:root {
  --rosa: #c8185f;
  --rosa-escuro: #8e0f45;
  --rosa-claro: #fbd5e5;
  --rosa-bebe: #fdeaf2;
  --amarelo: #ffd93b;
  --amarelo-escuro: #f0b20b;
  --jeans: #2f5d9b;
  --jeans-escuro: #213f6b;
  --ceu: #e8eff9;
  --tinta: #3a1430;
  --cinza: #7b6772;
  --branco: #fff;
  --sombra: 0 18px 40px -18px rgba(142, 15, 69, .45);
  --raio: 26px;
  --script: 'Kaushan Script', cursive;
  --gorda: 'Lilita One', 'Arial Black', sans-serif;
  --texto: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--texto);
  color: var(--tinta);
  background: var(--ceu);
  line-height: 1.5;
  overflow-x: hidden;
}
body.com-intro { overflow: hidden; height: 100vh; height: 100dvh; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   PERSONAGEM (desenhado em CSS) — use data-mini no HTML ou criarMini() no JS
   ============================================================ */
.mini {
  --s: 110px;
  --pele: #ffd93b;
  position: relative;
  width: var(--s);
  height: calc(var(--s) * 1.6);
  flex: none;
}
.mini-cabelo {
  position: absolute; left: 50%; top: calc(var(--s) * -.12);
  width: 40%; height: 16%; transform: translateX(-50%);
}
.mini-cabelo i {
  position: absolute; bottom: 0; left: 50%; width: 2px; height: 100%;
  background: #2a1d14; border-radius: 2px; transform-origin: bottom center;
}
.mini-cabelo i:nth-child(1) { transform: rotate(-32deg); }
.mini-cabelo i:nth-child(2) { transform: rotate(-12deg); height: 115%; }
.mini-cabelo i:nth-child(3) { transform: rotate(10deg); height: 110%; }
.mini-cabelo i:nth-child(4) { transform: rotate(30deg); }
.mini-corpo {
  position: absolute; inset: 0 0 12% 0;
  background: radial-gradient(circle at 32% 22%, #fff7b0 0, var(--pele) 38%, var(--amarelo-escuro) 100%);
  border-radius: calc(var(--s) * .5) calc(var(--s) * .5) calc(var(--s) * .38) calc(var(--s) * .38);
  overflow: hidden;
  box-shadow: inset calc(var(--s) * -.06) calc(var(--s) * -.05) 0 rgba(160, 90, 0, .14);
}
.mini-faixa {
  position: absolute; left: 0; right: 0; top: 26%; height: 8%; background: #2b2523;
}
.mini-oculos {
  position: absolute; top: 13%; left: 50%; width: 54%; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%; padding: 10%;
  background: linear-gradient(145deg, #f4f6f8, #8f99a3 60%, #6a737c);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
}
.mini.dois-olhos .mini-oculos { width: 40%; }
.mini.dois-olhos .mini-oculos.o1 { left: 29%; }
.mini.dois-olhos .mini-oculos.o2 { left: 71%; }
.mini-olho {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 50%;
  background: #fff; overflow: hidden; box-shadow: inset 0 4px 6px rgba(0, 0, 0, .18);
}
.mini-iris {
  position: absolute; width: 44%; height: 44%; left: 28%; top: 28%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #120b07 0 34%, #6b3d1d 36% 100%);
  transition: transform .12s ease-out;
}
.mini-iris::after {
  content: ''; position: absolute; width: 28%; height: 28%; top: 18%; left: 22%;
  border-radius: 50%; background: #fff; opacity: .9;
}
.mini-olho::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 2;
  background: var(--amarelo-escuro); transition: height .08s;
}
.mini.piscando .mini-olho::before { height: 100%; }
.mini.assustado .mini-iris { transform: scale(.6) !important; }
.mini-boca {
  position: absolute; top: 58%; left: 50%; width: 30%; height: 9%;
  transform: translateX(-50%);
  border-bottom: max(3px, calc(var(--s) * .035)) solid #5a2c12;
  border-radius: 0 0 50% 50%;
}
.mini.assustado .mini-boca, .mini.gritando .mini-boca {
  width: 20%; height: 12%; border: 0; border-radius: 50%; background: #5a2c12;
}
.mini-macacao {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(#3a6bae, var(--jeans));
}
.mini-macacao::before {
  content: ''; position: absolute; left: 30%; right: 30%; top: -30%; height: 45%;
  background: var(--jeans); border-radius: 4px 4px 0 0;
}
.mini-macacao::after {
  content: ''; position: absolute; left: 50%; top: -18%; width: 18%; height: 30%;
  transform: translateX(-50%); border: 2px dashed rgba(255, 255, 255, .35); border-radius: 0 0 6px 6px;
}
.mini-bracos { position: absolute; inset: 0; pointer-events: none; }
.mini-bracos i {
  position: absolute; top: 60%; width: 10%; height: 24%; background: var(--pele);
  border-radius: 99px; transform-origin: top center;
}
.mini-bracos i::after {
  content: ''; position: absolute; bottom: -18%; left: -15%; width: 130%; height: 34%;
  background: #2b2523; border-radius: 50%;
}
.mini-bracos i:first-child { left: -4%; transform: rotate(18deg); }
.mini-bracos i:last-child { right: -4%; transform: rotate(-18deg); }
.mini.acenando .mini-bracos i:last-child { animation: aceno .5s ease-in-out infinite alternate; }
.mini.comemorando .mini-bracos i { animation: bracosCima .35s ease-in-out infinite alternate; }
.mini-pernas {
  position: absolute; bottom: 0; left: 28%; right: 28%; height: 14%;
  display: flex; justify-content: space-between;
}
.mini-pernas i {
  width: 34%; height: 100%; background: var(--jeans-escuro); position: relative;
  border-radius: 0 0 4px 4px;
}
.mini-pernas i::after {
  content: ''; position: absolute; bottom: -20%; left: -20%; width: 150%; height: 45%;
  background: #1c1715; border-radius: 50% 50% 30% 30%;
}
.mini.correndo { animation: quica .32s ease-in-out infinite alternate; }
.mini.correndo .mini-pernas i:first-child { animation: perna .32s ease-in-out infinite alternate; }
.mini.correndo .mini-pernas i:last-child { animation: perna .32s ease-in-out infinite alternate-reverse; }
.mini.correndo .mini-bracos i:first-child { animation: bracoCorre .32s ease-in-out infinite alternate; }
.mini.correndo .mini-bracos i:last-child { animation: bracoCorre .32s ease-in-out infinite alternate-reverse; }

@keyframes aceno { from { transform: rotate(-150deg); } to { transform: rotate(-110deg); } }
@keyframes bracosCima { from { transform: rotate(160deg); } to { transform: rotate(200deg); } }
@keyframes quica { from { transform: translateY(0); } to { transform: translateY(-8%); } }
@keyframes perna { from { transform: translateY(0); } to { transform: translateY(-35%); } }
@keyframes bracoCorre { from { transform: rotate(40deg); } to { transform: rotate(-40deg); } }

/* ============================================================
   ABERTURA
   ============================================================ */
#intro {
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  color: #fff; user-select: none;
  transition: transform 1s cubic-bezier(.7, 0, .2, 1), opacity 1s;
}
#intro.saindo { transform: translateY(-105%); }
#intro.escondido { display: none; }
.ceu {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #120d33 0%, #2a1c5c 55%, #4b2a72 100%);
  transition: background 1.6s;
}
.ceu::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s;
  background: linear-gradient(180deg, #ffd0e3 0%, #fbe3ee 45%, #e9f0fb 100%);
}
#intro.dia .ceu::after { opacity: 1; }
.estrelas { position: absolute; inset: 0; transition: opacity 1.2s; }
#intro.dia .estrelas { opacity: 0; }
.estrelas i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff;
  animation: pisca var(--t, 3s) ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes pisca { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

.lua {
  position: absolute; top: 9%; right: 12%; width: min(26vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe8, #f5e6b0 70%, #e6cf86);
  box-shadow: 0 0 60px 10px rgba(255, 244, 200, .35);
  transition: transform 1.4s cubic-bezier(.5, -.4, .4, 1.4), background .8s, border-radius .8s, box-shadow .8s, top 1.4s, right 1.4s;
}
.lua i { position: absolute; border-radius: 50%; background: rgba(190, 160, 90, .35); transition: opacity .5s; }
.lua i:nth-child(1) { width: 22%; height: 22%; top: 22%; left: 50%; }
.lua i:nth-child(2) { width: 14%; height: 14%; top: 58%; left: 28%; }
.lua i:nth-child(3) { width: 10%; height: 10%; top: 62%; left: 64%; }
#intro.puxando .lua { transform: translate(-6vw, 4vh) scale(.82) rotate(-12deg); }
#intro.dia .lua {
  top: 6%; right: 50%; transform: translateX(50%) scale(.75);
  background: radial-gradient(circle at 32% 30%, #fff 0, #ffb3d1 25%, #f06a9f 100%);
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  box-shadow: 0 0 0 transparent;
  animation: flutua 3s ease-in-out infinite;
}
#intro.dia .lua i { opacity: 0; }
#intro.dia .lua::after {
  content: ''; position: absolute; top: 100%; left: 50%; width: 2px; height: 90px;
  background: rgba(200, 24, 95, .5); transform: translateX(-50%);
}
@keyframes flutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.pular {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 5;
  padding: 8px 14px; border-radius: 99px; font-size: .85rem; font-weight: 800;
  background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25); transition: background .2s;
}
.pular:hover { background: rgba(255, 255, 255, .28); }
#intro.dia .pular { color: var(--rosa-escuro); background: rgba(255, 255, 255, .6); border-color: rgba(200, 24, 95, .25); }

.palco {
  position: absolute; left: 16px; right: 16px; top: 30%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.fala {
  font-family: var(--gorda); font-size: clamp(1.7rem, 6.4vw, 3.8rem); line-height: 1.12;
  max-width: 16ch; min-height: 2.3em; letter-spacing: .01em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .25);
  color: var(--amarelo);
}
.fala .cursor { display: inline-block; width: .08em; height: .9em; background: currentColor; margin-left: .05em; vertical-align: -.08em; animation: cursor .7s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }
.fala.pop { animation: pop .55s cubic-bezier(.3, 1.8, .5, 1) both; }
.fala.treme { animation: treme .09s linear 6; }
.fala.balanca { animation: balanca .5s ease-in-out 3; }
.fala .agnes { font-family: var(--script); color: var(--rosa); font-size: 1.25em; text-shadow: 0 3px 0 #fff; }
.fala .riscado { position: relative; color: #ffe98a; }
.fala .riscado::after {
  content: ''; position: absolute; left: -4%; right: -4%; top: 52%; height: .12em; border-radius: 9px;
  background: var(--rosa); transform-origin: left; animation: risca .35s ease-out both;
}
#intro.dia .fala { color: var(--rosa); text-shadow: 0 4px 0 #fff, 0 10px 24px rgba(200, 24, 95, .25); }
#intro.dia .fala .riscado { color: var(--rosa); opacity: .55; }
@keyframes pop { from { transform: scale(.3) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes treme { 0% { transform: translate(0, 0); } 25% { transform: translate(-6px, 3px); } 50% { transform: translate(5px, -3px); } 75% { transform: translate(-3px, -4px); } 100% { transform: translate(0, 0); } }
@keyframes balanca { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) scale(1.05); } 75% { transform: rotate(4deg) scale(1.05); } }
@keyframes risca { from { transform: scaleX(0); } to { transform: scaleX(1); } }

#intro.chacoalha .palco, #intro.chacoalha .turma { animation: treme .08s linear 5; }

.carimbo {
  display: none; flex-direction: column; align-items: center;
  font-family: var(--gorda); text-transform: uppercase; color: var(--rosa);
  font-size: clamp(1.4rem, 5.5vw, 2.6rem); line-height: 1.05;
  border: 6px solid var(--rosa); border-radius: 14px; padding: 10px 22px;
  background: rgba(255, 255, 255, .7);
  transform: rotate(-8deg);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .7);
  mask-image: radial-gradient(circle at 20% 30%, #000 60%, rgba(0, 0, 0, .75) 61%, #000 75%);
}
.carimbo.mostra { display: flex; animation: carimba .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes carimba { from { transform: rotate(-20deg) scale(3); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }

.btn-abrir {
  opacity: 0; pointer-events: none; transform: translateY(20px);
  font-family: var(--gorda); font-size: 1.35rem; letter-spacing: .02em;
  padding: 16px 30px; border-radius: 99px; color: var(--tinta);
  background: var(--amarelo); box-shadow: 0 6px 0 var(--amarelo-escuro), 0 18px 30px -10px rgba(142, 15, 69, .5);
  transition: opacity .5s, transform .5s;
}
.btn-abrir.mostra { opacity: 1; pointer-events: auto; transform: none; animation: chama 1.6s ease-in-out 1s infinite; }
.btn-abrir:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--amarelo-escuro); }
@keyframes chama { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }

.turma {
  position: absolute; left: 0; right: 0; bottom: -2%; z-index: 2;
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 24px);
}
.turma .mini { transform: translateY(110%); transition: transform .7s cubic-bezier(.3, 1.5, .5, 1); }
.turma .mini:nth-child(2) { transition-delay: .12s; }
.turma .mini:nth-child(3) { transition-delay: .24s; }
#intro.turma-sobe .turma .mini { transform: translateY(18%); }
#intro.turma-pula .turma .mini { animation: pulinho .4s ease-in-out 3 alternate; }
#intro.turma-sai .turma .mini { transform: translate(140vw, 18%) !important; transition: transform 1.3s ease-in; }
#intro.turma-sai .turma .mini:nth-child(1) { transition-delay: .25s; }
#intro.turma-sai .turma .mini:nth-child(2) { transition-delay: .1s; }
#intro.turma-sai .turma .mini:nth-child(3) { transition-delay: 0s; }
@keyframes pulinho { to { translate: 0 -22%; } }

.horda { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.horda .mini {
  position: absolute; bottom: var(--y, 4%); left: 0;
  animation: quica .3s ease-in-out infinite alternate, atravessa var(--dur, 2.6s) linear var(--atraso, 0s) both;
}
@keyframes atravessa { from { left: -25vw; } to { left: 115vw; } }

.dica-toque {
  position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; z-index: 4;
  font-size: .72rem; opacity: .5; letter-spacing: .12em; text-transform: uppercase;
}
#intro.dia .dica-toque { color: var(--rosa-escuro); }

/* ============================================================
   CONVITE
   ============================================================ */
/* clip (e não hidden) para o foco nos campos não rolar o contêiner de lado */
#convite { position: relative; min-height: 100vh; isolation: isolate; overflow: clip; }
.raios {
  position: absolute; left: 50%; top: 30vh; width: 260vmax; height: 260vmax; z-index: -1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(251, 213, 229, .75) 0 12deg, transparent 12deg 30deg);
  animation: gira 90s linear infinite;
  mask-image: radial-gradient(circle, #000 0 18%, transparent 42%);
}
@keyframes gira { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero {
  position: relative; text-align: center;
  padding: clamp(56px, 10vh, 100px) 16px 30px;
  min-height: min(100vh, 760px);
  display: flex; flex-direction: column; align-items: center;
}
.sobre {
  font-weight: 800; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rosa-escuro);
  background: rgba(255, 255, 255, .7); padding: 6px 16px; border-radius: 99px;
}
.nome {
  font-family: var(--script); font-weight: 400; color: var(--rosa);
  font-size: clamp(5rem, 24vw, 11rem); line-height: 1; margin-top: 10px;
  text-shadow: 3px 3px 0 #fff, 6px 7px 0 rgba(142, 15, 69, .25);
}
.nome span { display: inline-block; padding: 0 .12em; }
.faz {
  font-family: var(--script); color: var(--rosa); font-size: clamp(2.4rem, 10vw, 4.6rem); line-height: 1;
  text-shadow: 2px 2px 0 #fff;
  margin-top: -.15em;
}
.um {
  display: inline-block; font-family: var(--gorda); font-weight: 400; color: var(--amarelo);
  font-size: 1.45em; vertical-align: -.12em; margin: 0 .05em;
  -webkit-text-stroke: 3px var(--rosa); paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--rosa-escuro);
  animation: umPula 2.4s ease-in-out infinite;
}
@keyframes umPula { 0%, 80%, 100% { transform: rotate(-6deg); } 88% { transform: rotate(8deg) translateY(-14px); } }

.convite-pronto .nome span { animation: letra .9s cubic-bezier(.3, 1.6, .5, 1) both; }
.convite-pronto .faz { animation: pop .8s .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes letra { from { transform: translateY(40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.espiao { position: absolute; top: 26%; z-index: 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.espiao .mini { --s: clamp(80px, 16vw, 140px); }
.espiao-esq { left: 0; transform: translateX(-58%) rotate(90deg); }
.espiao-dir { right: 0; transform: translateX(58%) rotate(-90deg); }
.espiao.escondido.espiao-esq { transform: translateX(-150%) rotate(90deg); }
.espiao.escondido.espiao-dir { transform: translateX(150%) rotate(-90deg); }

.baloes { position: relative; width: 100%; max-width: 720px; height: 240px; margin-top: 10px; }
.balao {
  position: absolute; bottom: 0; width: 64px; height: 80px; padding: 0;
  border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0 8%, var(--cor) 30%, var(--cor-esc) 100%);
  animation: sobeBalao var(--dur, 7s) ease-in-out infinite alternate;
  animation-delay: var(--atraso, 0s);
  cursor: crosshair;
  transition: scale .15s;
}
.balao::before {
  content: ''; position: absolute; bottom: -6px; left: 50%; width: 10px; height: 8px;
  transform: translateX(-50%); background: var(--cor-esc); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.balao::after {
  content: ''; position: absolute; top: calc(100% + 2px); left: 50%; width: 1.5px; height: 60px;
  background: linear-gradient(rgba(142, 15, 69, .45), transparent);
}
.balao:hover { scale: 1.08; }
.balao.estourado { animation: estoura .22s ease-out forwards; pointer-events: none; }
@keyframes sobeBalao { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-110px) rotate(5deg); } }
@keyframes estoura { to { scale: 1.6; opacity: 0; } }
.pedacinho {
  position: absolute; width: 8px; height: 8px; border-radius: 2px; pointer-events: none;
  animation: voa .6s ease-out forwards;
}
@keyframes voa { to { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0; } }
.placar {
  font-weight: 800; color: var(--rosa-escuro); font-size: .95rem;
  background: rgba(255, 255, 255, .75); padding: 6px 16px; border-radius: 99px; margin-top: 6px;
  transition: transform .2s;
}
.placar.bump { transform: scale(1.12); }

.bloco { padding: 40px 16px; max-width: 1060px; margin: 0 auto; }
.detalhes { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .detalhes { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }

.cartao-convite {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(142, 15, 69, .55), 0 0 0 8px #fff;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-2deg);
  transition: transform .25s ease-out;
  max-width: 440px; margin: 0 auto; width: 100%;
}
.cartao-convite img { width: 100%; height: auto; }
.brilho {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 30%), rgba(255, 255, 255, .7), transparent 50%);
}

.infos { display: flex; flex-direction: column; gap: 14px; }
.info {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--sombra);
}
.info-icone {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.6rem; background: var(--rosa-bebe);
}
.info strong { display: block; font-family: var(--gorda); font-weight: 400; font-size: 1.35rem; color: var(--rosa); line-height: 1.15; }
.info span { color: var(--cinza); font-size: .95rem; }

.contagem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.contagem div {
  background: var(--rosa); color: #fff; border-radius: 18px; padding: 12px 4px 10px; text-align: center;
  box-shadow: 0 6px 0 var(--rosa-escuro);
}
.contagem b { display: block; font-family: var(--gorda); font-weight: 400; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1; }
.contagem small { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; font-weight: 800; }
.contagem.festa div { background: var(--amarelo); color: var(--tinta); box-shadow: 0 6px 0 var(--amarelo-escuro); }

.acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.acoes .btn { flex: 1 1 180px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 99px; font-weight: 800; text-decoration: none; text-align: center;
  transition: transform .12s, box-shadow .12s, background .2s;
}
.btn-sec { background: #fff; color: var(--rosa); box-shadow: 0 4px 0 var(--rosa-claro), 0 0 0 2px var(--rosa-claro) inset; }
.btn-sec:hover { background: var(--rosa-bebe); }
.btn-sec:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--rosa-claro), 0 0 0 2px var(--rosa-claro) inset; }
.btn-pri {
  width: 100%; font-family: var(--gorda); font-weight: 400; font-size: 1.3rem; letter-spacing: .02em;
  padding: 16px; color: var(--tinta); background: var(--amarelo); box-shadow: 0 6px 0 var(--amarelo-escuro);
}
.btn-pri:hover { background: #ffe25e; }
.btn-pri:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--amarelo-escuro); }
.btn-pri[disabled] { opacity: .7; cursor: progress; }
.btn.treme { animation: treme .09s linear 5; }

.aviso {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--gorda); font-size: 1.05rem; color: var(--rosa-escuro); letter-spacing: .01em;
  background: repeating-linear-gradient(-45deg, var(--amarelo) 0 14px, #ffe678 14px 28px);
  border-radius: 16px; padding: 12px 16px; transform: rotate(-1deg);
  box-shadow: 0 4px 0 var(--amarelo-escuro);
}
.aviso span { font-size: 1.4rem; }

/* RSVP */
.rsvp { padding-top: 30px; padding-bottom: 70px; }
.rsvp-caixa {
  position: relative; max-width: 560px; margin: 160px auto 0; background: #fff; border-radius: 32px;
  padding: 36px clamp(18px, 5vw, 40px) 34px; box-shadow: 0 40px 80px -30px rgba(142, 15, 69, .5);
}
.rsvp-caixa::before {
  content: ''; position: absolute; inset: 10px; border: 2px dashed var(--rosa-claro); border-radius: 24px; pointer-events: none;
}
.rsvp-topo { text-align: center; margin-bottom: 26px; }
.mini-cabeca { position: absolute; left: 50%; top: 0; transform: translate(-50%, calc(-100% + 6px)); }
.mini-cabeca .mini { --s: 104px; }
.rsvp-topo h2 { font-family: var(--script); font-weight: 400; color: var(--rosa); font-size: clamp(2.4rem, 9vw, 3.2rem); line-height: 1.1; }
.rsvp-topo p { color: var(--cinza); }

form { display: flex; flex-direction: column; gap: 18px; position: relative; }
.campo { display: flex; flex-direction: column; gap: 6px; border: 0; min-width: 0; }
.campo > span, .campo legend { font-weight: 800; font-size: .95rem; color: var(--rosa-escuro); margin-bottom: 4px; }
.campo input:not([type=radio]):not([type=hidden]) {
  font: inherit; font-size: 1.05rem; color: var(--tinta);
  padding: 14px 16px; border-radius: 16px; border: 2px solid #f1dbe5; background: #fffafc;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.campo input:focus { border-color: var(--rosa); background: #fff; box-shadow: 0 0 0 5px rgba(200, 24, 95, .12); }
.campo.invalido input { border-color: #e0335e; }
.erro { font-style: normal; font-size: .85rem; color: #d0244f; font-weight: 600; min-height: 0; }
.erro:empty { display: none; }

.escolhas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.escolha {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 8px 14px; border-radius: 20px; border: 2px solid #f1dbe5; background: #fffafc;
  cursor: pointer; transition: transform .15s, border-color .2s, background .2s, box-shadow .2s;
  text-align: center;
}
.escolha input { position: absolute; opacity: 0; pointer-events: none; }
.escolha-cara { font-size: 2.2rem; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); filter: grayscale(.5); }
.escolha-txt { font-weight: 800; }
.escolha:hover { transform: translateY(-2px); }
.escolha:has(input:focus-visible) { box-shadow: 0 0 0 5px rgba(200, 24, 95, .2); }
.escolha.sim:has(input:checked) { border-color: var(--rosa); background: var(--rosa); color: #fff; box-shadow: 0 6px 0 var(--rosa-escuro); }
.escolha.nao:has(input:checked) { border-color: #9fb2cd; background: #e6edf7; box-shadow: 0 6px 0 #c4d1e3; }
.escolha:has(input:checked) .escolha-cara { transform: scale(1.25) rotate(-8deg); filter: none; }

.campo-criancas {
  display: grid; justify-items: center; gap: 10px;
  background: var(--ceu); border-radius: 22px; padding: 16px;
  transition: opacity .3s, max-height .4s, padding .4s, margin .4s;
  max-height: 400px; overflow: hidden;
}
.campo-criancas legend { float: left; width: 100%; text-align: center; margin: 0; }
.campo-criancas.fechado { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -18px; pointer-events: none; }
.contador { display: flex; align-items: center; gap: 18px; }
.passo {
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1; font-weight: 800;
  background: #fff; color: var(--jeans); box-shadow: 0 4px 0 #c4d1e3;
  transition: transform .1s, opacity .2s;
}
.passo:active { transform: translateY(3px); box-shadow: 0 1px 0 #c4d1e3; }
.passo:disabled { opacity: .35; cursor: not-allowed; }
.contador output { font-family: var(--gorda); font-size: 3rem; line-height: 1; color: var(--jeans); min-width: 1.2em; text-align: center; }
.contador output.bump { animation: pop .35s cubic-bezier(.3, 1.8, .5, 1); }
.pimpolhos { display: flex; gap: 10px; height: 54px; align-items: flex-end; }
.pimpolhos span {
  width: 30px; height: 40px; position: relative; border-radius: 15px 15px 10px 10px;
  background: #d3dcea; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), background .25s;
}
.pimpolhos span::before {
  content: ''; position: absolute; left: 50%; top: 9px; width: 14px; height: 14px; transform: translateX(-50%);
  border-radius: 50%; background: #fff; border: 3px solid #b8c3d4;
}
.pimpolhos span.on { background: var(--amarelo); transform: translateY(-8px); }
.pimpolhos span.on::before { border-color: #8f99a3; background: radial-gradient(circle, #3b2414 0 30%, #fff 32%); }
.pimpolhos span.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 13px; background: var(--jeans); border-radius: 0 0 10px 10px;
}
.legenda { font-size: .9rem; font-weight: 600; color: var(--cinza); }

.obrigado { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.obrigado[hidden] { display: none; }
.obrigado-emoji { font-size: 4rem; animation: pop .6s cubic-bezier(.3, 1.8, .5, 1) both; }
.obrigado h3 { font-family: var(--script); font-weight: 400; color: var(--rosa); font-size: 2.4rem; line-height: 1.1; }
.obrigado p { color: var(--cinza); max-width: 38ch; margin-bottom: 8px; }
.obrigado b { color: var(--tinta); }

.rodape { text-align: center; padding: 10px 16px 40px; color: var(--cinza); font-size: .9rem; }
.rodape button { text-decoration: underline; color: var(--rosa); font-weight: 600; }

#confete { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

@media (max-width: 480px) {
  .baloes { height: 200px; }
  .balao { width: 54px; height: 68px; }
  .espiao { top: 34%; }
  .info strong { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
