@font-face {
  font-family: 'LionKing';
  src: url('/fonts/lion-king.ttf') format('truetype');
  unicode-range: U+0021-007E; /* sem acentos (ã, á, ç caem na Cinzel) e o espaço dela tem um traço */
  font-display: swap;
}
@font-face {
  font-family: 'Waltograph';
  src: url('/fonts/waltograph.ttf') format('truetype');
  unicode-range: U+0020-007E;
  font-display: swap;
}

:root {
  --wood-1: #a8652f;
  --wood-2: #7d4420;
  --wood-dark: #4e2812;
  --gold-1: #fff1a8;
  --gold-2: #ffc83d;
  --gold-3: #d48a12;
  --red: #8c2a1a;
  --parchment: #fbf1d9;
  --parchment-2: #f3e1b8;
  --ink: #3b2314;
  --ink-soft: #6e4a32;
  --green: #3f9a36;
  --night-1: #0e0b26;
  --night-2: #3a1d4a;
  --radius: 18px;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--night-2);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }

/* fundo atrás do "cartão" em telas largas */
.backdrop {
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 110%, #f0764a55, transparent 60%),
    radial-gradient(circle at 20% 20%, #b8426e44, transparent 40%),
    linear-gradient(#24143f, #3a1d4a 60%, #6b2f4a);
}

.stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 520px) and (min-height: 700px) {
  .stage {
    height: min(940px, calc(100dvh - 40px));
    margin-top: max(20px, calc((100dvh - 940px) / 2));
    border-radius: 28px;
    box-shadow: 0 30px 80px #0008, 0 0 0 6px #ffffff14;
  }
}

/* ---------- cenário ---------- */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.scene .night { transition: opacity 2.6s ease .3s; }
.stage.awake .scene .night { opacity: 0; }
.scene .sun { transition: transform 2.8s cubic-bezier(.2, .7, .2, 1); transform: translateY(260px); }
.stage.awake .scene .sun { transform: translateY(0); }
.rays { animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.beams { mix-blend-mode: screen; animation: beam 6s ease-in-out infinite; }
.beams .beam2 { animation: beam 7s 1s ease-in-out infinite; }
.beams .beam3 { animation: beam 5s 2s ease-in-out infinite; }
@keyframes beam { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.herd { animation: herd 70s linear infinite; }
.walker { animation: walk .9s ease-in-out infinite; }
.walker.w2 { animation-delay: -.3s; }
.walker.w3 { animation-delay: -.6s; animation-duration: 1.2s; }
@keyframes herd { from { transform: translateX(-180px); } to { transform: translateX(120px); } }
@keyframes walk { 50% { transform: translateY(-1.2px); } }

.cloud { animation: drift 38s ease-in-out infinite alternate; }
.cloud.c2 { animation-duration: 46s; animation-direction: alternate-reverse; }
.cloud.c3 { animation-duration: 54s; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }

.bird { animation: fly 22s linear infinite; }
.bird.b1 { animation-delay: -2s; }
.bird.b2 { animation-delay: -9s; animation-duration: 26s; }
.bird.b3 { animation-delay: -15s; animation-duration: 30s; }
@keyframes fly {
  0%   { transform: translate(-40px, 300px); }
  50%  { transform: translate(200px, 250px); }
  100% { transform: translate(440px, 280px); }
}

.vines { position: absolute; top: -10px; width: 52%; max-width: 240px; z-index: 1; pointer-events: none; }
.vines svg { width: 100%; display: block; }
.vines-left  { left: -10px; transform-origin: 0 0; animation: sway 6s ease-in-out infinite; }
.vines-right { right: -16px; width: 40%; transform: scaleX(-1); transform-origin: 100% 0; animation: sway-r 7s ease-in-out infinite; }
@keyframes sway   { 50% { transform: rotate(2.5deg); } }
@keyframes sway-r { 0%, 100% { transform: scaleX(-1) rotate(0); } 50% { transform: scaleX(-1) rotate(2.5deg); } }

.sparkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sparkles i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #fff6c9; box-shadow: 0 0 8px 2px #ffe27a;
  opacity: 0; animation: float-up var(--d, 9s) linear infinite; animation-delay: var(--delay, 0s);
}
@keyframes float-up {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translate(var(--x, 20px), -260px); opacity: 0; }
}

.grass {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; pointer-events: none;
}
.grass svg { width: 100%; height: 100%; display: block; }
.blade { transform-box: fill-box; transform-origin: 50% 100%; animation: blade 4s ease-in-out infinite; }
@keyframes blade { 50% { transform: rotate(var(--r, 4deg)); } }

/* ---------- conteúdo ---------- */
.content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 58px 18px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  scrollbar-width: none;
}
.content::-webkit-scrollbar { display: none; }

.plaque {
  position: relative;
  width: min(100%, 370px);
  margin-top: 14px;
  padding: 22px 24px 20px;
  text-align: center;
  border-radius: 18px;
  background:
    repeating-linear-gradient(178deg, #00000014 0 2px, transparent 2px 10px),
    radial-gradient(120% 90% at 50% 0%, #c0482a, #7e2414 75%);
  border: 4px solid var(--gold-2);
  box-shadow:
    inset 0 0 0 3px #5a1a0e,
    inset 0 0 0 5px #e0a63a99,
    inset 0 0 40px #0005,
    0 8px 0 #5a1a0e,
    0 18px 26px #0007;
  transform-origin: 50% -60px;
}
.stage.awake .plaque { animation: drop .9s .6s var(--ease-bounce) both, swing 6s 1.6s ease-in-out infinite; }
@keyframes swing { 0%, 100% { rotate: -.8deg; } 50% { rotate: .8deg; } }

/* cordas que prendem a placa às folhas */
.rope {
  position: absolute; bottom: 100%; width: 5px; height: 90px;
  background: repeating-linear-gradient(160deg, #d9b27c 0 4px, #8a6236 4px 7px);
  border-radius: 3px;
  box-shadow: 1px 0 0 #0003;
}
.rope::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; width: 13px; height: 13px; margin-left: -6.5px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #b8860b);
  box-shadow: 0 2px 2px #0005;
}
.rope-l { left: 16%; }
.rope-r { right: 16%; }

.sprig { position: absolute; width: 64px; pointer-events: none; filter: drop-shadow(0 3px 3px #0004); }
.sprig-tl { left: -22px; top: -18px; }
.sprig-br { right: -22px; bottom: -14px; transform: rotate(180deg); }

.tribal {
  width: 78%; height: 9px; margin: 14px auto 0;
  background: conic-gradient(from 135deg at 50% 0, var(--gold-2) 90deg, #0000 0) 50% 0 / 14px 100% repeat-x;
  opacity: .85;
}
.plaque-kicker {
  margin: 0 0 4px;
  font-family: 'LionKing', 'Cinzel', serif; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: 14px; color: #ffd98c;
}
.name {
  margin: 0;
  font-family: 'LionKing', 'Cinzel', serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 11vw, 50px); line-height: 1; letter-spacing: .01em;
  padding-top: .22em; margin-top: -.12em; /* espaço para o til: o degradê só pinta dentro da caixa */
  background: linear-gradient(var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #5a1a0e) drop-shadow(0 0 12px #ffb34777);
}
.age {
  display: inline-block; margin-top: 10px; padding: 4px 18px 6px;
  font-family: 'Waltograph', 'Lilita One', sans-serif; font-size: clamp(28px, 8.6vw, 38px); color: #fff;
  background: #6b1d10; border: 3px solid var(--gold-2); border-radius: 12px;
  text-shadow: 0 0 10px #ffd98c, 0 0 22px #ff8a4c;
}

.when {
  margin-top: 18px;
  display: flex; align-items: center; gap: 14px;
  color: #2a160c; text-shadow: 0 0 10px #fff9, 0 0 2px #fff;
}
.when-day { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.when-num { font-family: 'Lilita One', sans-serif; font-size: 54px; }
.when-month { font-family: 'Lilita One', sans-serif; font-size: 18px; letter-spacing: .04em; }
.when-sep { width: 0; height: 58px; border-left: 3px dashed #2a160c; opacity: .8; }
.when-time { display: flex; flex-direction: column; font-family: 'Lilita One', sans-serif; font-size: 24px; line-height: 1.1; }
.when-time b { font-weight: 400; color: var(--red); }

.bottom {
  flex: 1 1 auto; width: 100%;
  min-height: 290px;
  display: grid; grid-template-columns: 1fr minmax(150px, 46%);
  align-items: end; gap: 4px;
  margin-bottom: 6px;
}
.hero {
  position: relative;
  height: 100%; min-height: 240px;
  display: flex;
}
.cub-wrap {
  position: relative;
  flex: 1; width: 100%;
  margin: 0; padding: 0; border: 0; background: none;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero.has-cast .cub-wrap { display: none; }

/* personagens (PNGs em /img/personagens) */
.cast { position: absolute; top: 0; bottom: -10px; left: -18px; right: -30px; pointer-events: none; }
.char {
  position: absolute; bottom: 0;
  width: auto; max-width: 110%;
  object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 8px 10px #0005);
  pointer-events: auto; cursor: pointer;
  animation: bob 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.6s);
  transform-origin: 50% 100%;
}
.char.hop { animation: char-hop .6s var(--ease-bounce); }
@keyframes char-hop { 40% { transform: translateY(-22px) scale(1.04); } }
.slot-grupo           { left: -2%; height: auto; width: 112%; max-width: none; max-height: 100%; z-index: 4; }
.slot-centro          { left: 48%; translate: -50% 0; height: 82%; z-index: 4; }
.slot-esquerda        { left: -6%;  height: 64%; z-index: 3; }
.slot-direita         { right: 0;   height: 60%; z-index: 3; }
.slot-frente-direita  { right: 6%;  height: 42%; z-index: 5; bottom: -2%; }
.slot-fundo-esquerda  { left: -4%;  height: 92%; z-index: 1; bottom: 16%; }
.slot-fundo-direita   { right: -6%; height: 88%; z-index: 1; bottom: 18%; }
.cub { height: 100%; max-height: 240px; width: auto; overflow: visible; filter: drop-shadow(0 8px 10px #0005); animation: bob 3.4s ease-in-out infinite; }
.cub-head { transform-box: fill-box; transform-origin: 50% 90%; animation: tilt 5s ease-in-out infinite; }
.cub-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: wag 1.6s ease-in-out infinite; }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.crown { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bob   { 50% { transform: translateY(-6px); } }
@keyframes tilt  { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes wag   { 50% { transform: rotate(-14deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.cub-wrap.roaring .cub-head { animation: roar .7s var(--ease-bounce); }
.cub-wrap.roaring .crown { animation: hop .7s var(--ease-bounce); }
@keyframes roar { 30% { transform: scale(1.12) rotate(-4deg); } 60% { transform: scale(1.08) rotate(4deg); } }
@keyframes hop { 40% { transform: translateY(-14px) rotate(-8deg); } }
.roar {
  position: absolute; top: 4px; right: 4%;
  padding: 6px 12px; border-radius: 14px 14px 14px 2px;
  background: #fff; color: var(--red);
  font-family: 'Lilita One', sans-serif; font-size: 18px;
  box-shadow: 0 4px 12px #0004;
  opacity: 0; transform: scale(.4) rotate(-8deg); transition: .3s var(--ease-bounce);
  pointer-events: none;
}
.cub-wrap.roaring .roar { opacity: 1; transform: scale(1) rotate(-4deg); }

.countdown {
  position: relative; z-index: 6;
  display: flex; gap: 8px; margin: 12px 0 0;
}
.countdown .unit {
  min-width: 58px; padding: 6px 4px 4px; text-align: center;
  background: #fbf1d9e6; border-radius: 12px;
  box-shadow: 0 4px 0 #c99b5a, 0 8px 14px #0004;
}
.countdown .unit b { display: block; font-family: 'Lilita One', sans-serif; font-size: 24px; color: var(--red); line-height: 1; }
.countdown .unit small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.countdown .party-now {
  padding: 8px 16px; background: #fbf1d9e6; border-radius: 12px;
  font-family: 'Lilita One', sans-serif; font-size: 18px; color: var(--red);
}

/* placas de madeira */
.signs {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  position: relative; z-index: 6;
  padding-bottom: 8px;
}
.sign {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 8px 10px 8px 14px;
  text-align: left; line-height: 1.05;
  border: 0; border-radius: 10px;
  background:
    repeating-linear-gradient(178deg, #ffffff10 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, transparent 0 40px, #00000014 40px 42px),
    linear-gradient(var(--wood-1), var(--wood-2));
  color: #fff6e0;
  font-family: 'Lilita One', sans-serif; font-size: 16px; letter-spacing: .02em;
  text-shadow: 0 2px 0 var(--wood-dark);
  box-shadow: inset 0 0 0 2px #ffffff22, inset 0 -6px 0 #00000030, 0 6px 0 var(--wood-dark), 0 12px 18px #0006;
  transition: transform .2s var(--ease-bounce);
}
.sign::before, .sign::after {
  content: ''; position: absolute; top: 50%; margin-top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: #3a1f0f; box-shadow: inset 1px 1px 0 #ffffff40;
}
.sign::before { left: 5px; } .sign::after { right: 5px; }
.sign:nth-child(2) { rotate: -2deg; }
.sign:nth-child(3) { rotate: 1.5deg; }
.sign:nth-child(4) { rotate: -1deg; }
.sign:hover { transform: translateY(-3px) rotate(-1deg); }
.sign:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px #ffffff22, 0 2px 0 var(--wood-dark), 0 4px 8px #0006; }
.sign-icon {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fdf3dc; border: 2px solid #2a160c;
  box-shadow: 0 2px 0 #0004;
}
.sign-icon svg { width: 21px; height: 21px; fill: none; stroke: #2a160c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sign-main {
  min-height: 62px;
  font-size: 17px;
  background:
    repeating-linear-gradient(178deg, #ffffff14 0 2px, transparent 2px 9px),
    linear-gradient(#c97a2e, #8f4a1d);
  animation: pulse 2.4s ease-in-out infinite;
}
.sign-main .sign-icon { width: 40px; height: 40px; }
.sign-main .sign-icon svg { width: 23px; height: 23px; }
@keyframes pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px #ffffff22, inset 0 -6px 0 #00000030, 0 6px 0 var(--wood-dark), 0 12px 18px #0006, 0 0 0 0 #ffd98c00; }
  50%      { box-shadow: inset 0 0 0 2px #ffffff22, inset 0 -6px 0 #00000030, 0 6px 0 var(--wood-dark), 0 12px 18px #0006, 0 0 0 8px #ffd98c55; }
}
.sign:focus-visible, .btn:focus-visible, .intro-btn:focus-visible, .cub-wrap:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 3px; }

/* entrada em cascata */
.plaque, .when, .hero, .countdown, .signs > * { opacity: 0; }
.stage.awake .when       { animation: rise .6s 1.1s ease-out both; }
.stage.awake .hero       { animation: pop .8s 1.4s var(--ease-bounce) both; }
.stage.awake .countdown  { animation: rise .6s 1.7s ease-out both; }
.stage.awake .signs > *  { animation: rise .6s ease-out both; }
.stage.awake .signs > :nth-child(1) { animation-delay: 1.9s; }
.stage.awake .signs > :nth-child(2) { animation-delay: 2.05s; }
.stage.awake .signs > :nth-child(3) { animation-delay: 2.2s; }
.stage.awake .sign-main { animation: rise .6s 1.9s ease-out both, pulse 2.4s 2.6s ease-in-out infinite; }
@keyframes drop { from { opacity: 0; transform: translateY(-120px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop  { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

/* ---------- abertura ---------- */
.intro {
  position: absolute; inset: 0; z-index: 10;
  display: grid; place-items: center;
  place-items: start center;
  background: linear-gradient(#12081c 0%, #3d1226 32%, #8e2a1f 56%, #d9531e 74%, #f59a2a 88%);
  transition: opacity 1.2s ease, visibility 1.2s;
}
.intro.gone { opacity: 0; visibility: hidden; }
.stars { position: absolute; inset: 0 0 50% 0; }
.intro-sun {
  position: absolute; left: 50%; bottom: 12%;
  width: 560px; height: 560px; margin-left: -280px; margin-bottom: -130px; border-radius: 50%;
  background: radial-gradient(circle closest-side, #ffe7a3 0 15%, #ffc04d 28%, #ff8a2a 37%, #ff9a3a77 38%, #ff9a3a33 60%, #ff9a3a00 100%);
  animation: sunrise 5s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes sunrise { from { transform: translateY(200px); filter: saturate(1.6) brightness(.8); } }
.intro-land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: 1; }
.stars i { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: twinkle var(--d, 3s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes twinkle { 50% { opacity: .15; } }
.intro-inner { position: relative; padding: 15vh 24px 24px; text-align: center; color: #fdeccf; text-shadow: 0 2px 12px #000a; }
.intro-line {
  margin: 0 0 10px; font-family: 'LionKing', 'Cinzel', serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(21px, 6vw, 27px); line-height: 1.3;
  opacity: 0; animation: rise 1.2s ease-out forwards;
}
.intro-line.l1 { animation-delay: .3s; }
.intro-line.l2 { animation-delay: 1.5s; color: var(--gold-2); }
.intro-line.l3 { animation-delay: 2.7s; font-size: clamp(15px, 4.2vw, 18px); font-family: 'Nunito', sans-serif; font-weight: 700; text-transform: none; }
.intro-btn {
  margin-top: 26px; padding: 14px 26px;
  border: 0; border-radius: 999px;
  background: linear-gradient(var(--gold-2), #f0973a); color: #4a1d0c;
  font-family: 'Waltograph', 'Lilita One', sans-serif; font-size: 24px;
  box-shadow: 0 6px 0 #a35a12, 0 0 30px #ffc83d66;
  opacity: 0; animation: rise .8s 3.6s ease-out forwards, glow 2s 4.4s ease-in-out infinite;
}
.intro-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #a35a12; }
@keyframes glow { 50% { box-shadow: 0 6px 0 #a35a12, 0 0 50px #ffc83daa; } }

/* ---------- janelas ---------- */
.sheet {
  width: min(100%, 460px); max-width: 100%; max-height: 88dvh;
  margin: auto auto 0; padding: 0;
  border: 0; border-radius: 26px 26px 0 0;
  background: var(--parchment); color: var(--ink);
  box-shadow: 0 -10px 40px #0006;
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .35s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: #1b0d24aa; backdrop-filter: blur(3px); }
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (min-width: 520px) and (min-height: 700px) {
  .sheet { margin: auto; border-radius: 26px; }
  .sheet[open] { animation-name: sheet-pop; }
  @keyframes sheet-pop { from { transform: scale(.92); opacity: 0; } }
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px 14px;
  background:
    repeating-linear-gradient(178deg, #ffffff10 0 2px, transparent 2px 9px),
    linear-gradient(var(--wood-1), var(--wood-2));
  color: #fff6e0;
}
.sheet-head h2 { margin: 0; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 22px; text-shadow: 0 2px 0 var(--wood-dark); }
.x { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: #00000030; color: #fff; font-size: 16px; }
.sheet-body { padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; }
.lead { margin: 0 0 14px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.note { margin: -6px 0 14px; padding: 10px 12px; border-radius: 12px; background: #fff7e3; border: 1px dashed #d8b26e; font-size: 14px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-weight: 800; font-size: 14px; }
.field small, .stepper-label small { font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid #e0c48f; border-radius: 12px;
  background: #fffdf6; color: var(--ink);
  font: inherit; font-size: 16px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: #d4692b; box-shadow: 0 0 0 4px #d4692b26; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.choice legend { padding: 0; margin-bottom: 6px; font-weight: 800; font-size: 14px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; padding: 12px 8px; text-align: center;
  border: 2px solid #e0c48f; border-radius: 14px; background: #fffdf6;
  font-weight: 800; transition: .2s;
}
.choice input:checked + span { border-color: #d4692b; background: #ffe7c2; box-shadow: 0 3px 0 #d4692b; transform: translateY(-2px); }
.choice input:focus-visible + span { outline: 3px solid #d4692b66; outline-offset: 2px; }

.if-going { transition: opacity .25s; }
.if-going[hidden] { display: none; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stepper { padding: 10px; border: 2px solid #e0c48f; border-radius: 14px; background: #fffdf6; }
.stepper-label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.stepper-ctrl { display: flex; align-items: center; justify-content: space-between; }
.stepper-ctrl button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f0a33c; color: #fff; font-size: 22px; font-weight: 800; line-height: 1; }
.stepper-ctrl button:disabled { opacity: .35; cursor: default; }
.stepper-ctrl output { font-family: 'Lilita One', sans-serif; font-size: 26px; color: var(--red); }

.form-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #ffe1dc; color: #8c1d10; font-weight: 700; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 16px;
  border: 0; border-radius: 14px;
  font-weight: 800; font-size: 15px; text-decoration: none; text-align: center;
  transition: transform .15s;
}
.btn:active { transform: translateY(2px); }
.btn-primary {
  width: 100%; margin-top: 4px;
  background: linear-gradient(#e2833a, #c4581f); color: #fff;
  font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 19px; letter-spacing: .02em;
  box-shadow: 0 5px 0 #8f3a12;
}
.btn-primary:disabled { opacity: .6; }
.btn-ghost { background: #fff7e3; color: var(--ink); border: 2px solid #e0c48f; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.btn-row.three { grid-template-columns: repeat(3, 1fr); }

.success { text-align: center; padding: 10px 0 4px; }
.success-icon { font-size: 64px; animation: pop .7s var(--ease-bounce); }
.success-icon img { height: 150px; width: auto; filter: drop-shadow(0 6px 8px #0003); }
.success h3 { margin: 6px 0 6px; font-family: 'Waltograph', 'Lilita One', sans-serif; font-weight: 400; font-size: 38px; color: var(--red); }
.success p { margin: 0 auto; max-width: 320px; line-height: 1.5; color: var(--ink-soft); }

.photo { width: min(72%, 260px); margin: 4px auto 18px; padding: 8px 8px 30px; background: #fff; border-radius: 4px; rotate: -1.5deg; box-shadow: 0 8px 20px #0003; position: relative; }
.photo img { display: block; width: 100%; aspect-ratio: .82; object-fit: cover; object-position: 49% 50%; border-radius: 2px; } /* corta os rabiscos das bordas da imagem */
.photo::after { content: 'Hakuna Matata!'; position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-family: 'Waltograph', 'Lilita One', sans-serif; font-size: 18px; color: var(--red); }
.on-rock { animation: none; }
.place { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.place strong { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 22px; color: var(--red); }
.place span { color: var(--ink-soft); }
.map { border-radius: 16px; overflow: hidden; border: 3px solid #e0c48f; aspect-ratio: 4 / 3; background: var(--parchment-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }


.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: #fffdf6; border: 1px solid #ecd6a8; }
.list .ico { font-size: 26px; line-height: 1; }
.list strong { display: block; margin-bottom: 2px; }
.list p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }


.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1000; overflow: hidden; }
.confetti i {
  position: absolute; top: -40px; font-style: normal;
  animation: fall var(--d, 2.6s) cubic-bezier(.3, .6, .6, 1) forwards; animation-delay: var(--delay, 0s);
}
@keyframes fall { to { transform: translate(var(--x, 0), 110vh) rotate(var(--rot, 360deg)); } }

/* telas baixinhas */
@media (max-height: 700px) {
  .content { padding-top: 46px; }
  .plaque { padding: 16px 18px 16px; }
  .when { margin-top: 12px; }
  .when-num { font-size: 44px; }
  .bottom { min-height: 250px; }
  .hero { min-height: 200px; }
  .countdown .unit { min-width: 52px; padding: 4px; }
  .sign { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .plaque, .when, .hero, .countdown, .signs > *, .intro-line, .intro-btn { opacity: 1 !important; }
}
