* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #1b1446; color: #fff;
  font-family: "Baloo 2", system-ui, sans-serif;
  touch-action: none; user-select: none; -webkit-user-select: none;
  overscroll-behavior: none;
}
canvas { position: fixed; inset: 0; display: block; }

.screen {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4vh;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  opacity: 0; pointer-events: none; transition: opacity .5s;
}
.screen.show { opacity: 1; pointer-events: auto; }

.kicker {
  margin: 0; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #b6f04a; font-size: clamp(14px, 3.6vw, 20px);
}

/* ---------- Tela inicial ---------- */
#title { justify-content: flex-start; }
#title .play { margin-top: auto; }
/* modo imagem de prévia (?og): título à esquerda, Filippo à direita */
body.og #title { align-items: flex-start; justify-content: center; padding-left: 6vw; }
body.og .title-box { text-align: left; margin: 0; }
body.og .play, body.og .skip, body.og .mute { display: none !important; }
.title-box { text-align: center; margin-top: 4vh; }
h1 {
  margin: .1em 0 0; font-family: "Luckiest Guy", "Baloo 2", sans-serif; font-weight: 400;
  font-size: clamp(44px, 13vw, 96px); line-height: .95;
  color: #fff; text-shadow: 0 4px 0 #6a3fc2, 0 8px 0 #2b1a66, 0 0 30px rgba(140,90,255,.7);
}
h1 span { color: #b6f04a; }
.sub { margin: .6em 0 0; font-size: clamp(18px, 5vw, 26px); font-weight: 700; }
.play {
  width: clamp(96px, 26vw, 140px); height: clamp(96px, 26vw, 140px); border-radius: 50%;
  border: 6px solid #fff; background: radial-gradient(circle at 35% 30%, #c8ff6a, #5fb31b);
  color: #fff; font-size: clamp(44px, 12vw, 64px); padding-left: .18em;
  box-shadow: 0 8px 0 #2f6b07, 0 0 40px rgba(182,240,74,.6);
  animation: pulse 1.2s ease-in-out infinite; cursor: pointer; margin-bottom: 2vh;
}
@keyframes pulse { 50% { transform: scale(1.1); } }
.skip {
  background: none; border: none; color: rgba(255,255,255,.65);
  font: 600 15px "Baloo 2", sans-serif; text-decoration: underline; padding: 8px; cursor: pointer;
}

/* ---------- Convite ---------- */
#card { background: rgba(15, 8, 45, .55); overflow-y: auto; justify-content: safe center; touch-action: pan-y; }
.invite {
  width: min(420px, 100%); text-align: center; position: relative;
  background: linear-gradient(170deg, #ffffff 0%, #f1ecff 100%); color: #2b1a66;
  border-radius: 28px; padding: 22px 20px 18px; margin: auto 0;
  border: 5px solid #6a3fc2; box-shadow: 0 0 0 5px #b6f04a, 0 18px 50px rgba(0,0,0,.5);
  transform: scale(.6) translateY(40px); transition: transform .6s cubic-bezier(.2,1.6,.4,1);
}
#card.show .invite { transform: none; }
.invite .kicker { color: #4f9a10; }
.photo {
  width: 120px; height: 120px; margin: 10px auto 4px; border-radius: 50%; overflow: hidden;
  border: 5px solid #6a3fc2; background: #ffd9b8; box-shadow: 0 0 0 4px #b6f04a;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
h2 {
  margin: 6px 0 0; font-family: "Luckiest Guy", "Baloo 2", sans-serif; font-weight: 400;
  font-size: clamp(30px, 9vw, 40px); line-height: 1.05; color: #6a3fc2;
}
.age {
  display: inline-block; color: #fff; background: #e8343f; border-radius: 50%;
  width: 1.3em; height: 1.3em; line-height: 1.4em; text-align: center; transform: rotate(-8deg);
}
.lead { margin: 6px 0 10px; font-weight: 700; font-size: 17px; }
.info { list-style: none; padding: 0; margin: 0 0 14px; text-align: left; }
.info li {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; margin: 6px 0;
  background: #fff; border-radius: 14px; border: 2px solid #e2d8ff; font-size: 16px; line-height: 1.25;
}
.info .ic { font-size: 20px; line-height: 1; }
#c-data::first-letter { text-transform: uppercase; }
.buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 6px 8px; border-radius: 16px; border: none; cursor: pointer;
  font: 800 15px/1.1 "Baloo 2", sans-serif; text-decoration: none; color: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.25);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.maps { background: #3b82f6; }
.zap { background: #25a244; }
.cal { background: #8b5cf6; }
.again { background: #f59e0b; }
.again small { font-weight: 600; font-size: 12px; opacity: .9; }
.btn { flex-direction: column; }
.rec { margin: 10px 0 0; font-weight: 800; color: #b45309; }
.tag { margin: 12px 0 0; font-family: "Luckiest Guy", sans-serif; color: #6a3fc2; font-size: 18px; }

.mute {
  position: fixed; top: max(10px, env(safe-area-inset-top)); right: 10px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.25); font-size: 20px; cursor: pointer; display: none;
}
.mute.show { display: block; }
