@charset "utf-8";

/* =========================================================
   Kairós Kids — convite
   Infantil e colorido, nas cores da logo: céu azul, sol,
   pombinha, anjinho, cruz e corações.
   Cena 1: envelope lacrado · Cena 2: carta · Modal de resposta
   ========================================================= */

:root {
  --verde: #6fc22c;
  --verde-escuro: #3f8a12;
  --laranja: #ff8f1f;
  --laranja-escuro: #c85a05;
  --vermelho: #f2542d;
  --amarelo: #ffd23f;
  --rosa: #ff7fa6;
  --roxo: #7b4fe6;
  --roxo-escuro: #5a33bd;
  --azul: #1f8fee;
  --azul-escuro: #1668c4;
  --tinta: #37345f;
  --tinta-suave: #6b6890;
  --env-w: min(86vw, 430px);
  --titulo: 'Fredoka', 'Baloo 2', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --filete: linear-gradient(90deg, #ffb21f, #ffd84d 50%, #ffb21f);
  --moldura: linear-gradient(160deg, #ffdc55, #ff9a2e);
  /* contorno branco de "adesivo" em volta das letras */
  --contorno:
    0 .05em 0 #fff, 0 -.05em 0 #fff, .05em 0 0 #fff, -.05em 0 0 #fff,
    .035em .035em 0 #fff, -.035em .035em 0 #fff, .035em -.035em 0 #fff, -.035em -.035em 0 #fff,
    .046em .019em 0 #fff, -.046em .019em 0 #fff, .046em -.019em 0 #fff, -.046em -.019em 0 #fff,
    .019em .046em 0 #fff, -.019em .046em 0 #fff, .019em -.046em 0 #fff, -.019em -.046em 0 #fff;
  /* corações e bolinhas bem clarinhos no papel da carta */
  --rabiscos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='230'%3E%3Ccircle cx='126' cy='30' r='6' fill='%23ffefb8'/%3E%3Ccircle cx='66' cy='158' r='5' fill='%23dff5cc'/%3E%3Ccircle cx='204' cy='62' r='4.5' fill='%23ffe0cc'/%3E%3Ccircle cx='118' cy='206' r='5' fill='%23e9e1ff'/%3E%3Ccircle cx='34' cy='38' r='4.5' fill='%23d8edff'/%3E%3Cpath fill='%23ffdae5' d='M157 108c-5-4-7-6-7-9a3.5 3.5 0 0 1 7-1 3.5 3.5 0 0 1 7 1c0 3-2 5-7 9z'/%3E%3Cpath fill='%23ffdae5' d='M27 118c-5-4-7-6-7-9a3.5 3.5 0 0 1 7-1 3.5 3.5 0 0 1 7 1c0 3-2 5-7 9z'/%3E%3C/svg%3E");
  /* granulado colorido no papel do envelope */
  --granulado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke-width='5' stroke-linecap='round' opacity='.5'%3E%3Cpath stroke='%23ff8f1f' d='M14 20l8 5'/%3E%3Cpath stroke='%237ac63a' d='M62 12l3 9'/%3E%3Cpath stroke='%23a37bff' d='M98 34l9-3'/%3E%3Cpath stroke='%232fa3f5' d='M30 62l2 9'/%3E%3Cpath stroke='%23ff6a8f' d='M74 58l8 4'/%3E%3Cpath stroke='%23ffc533' d='M106 84l-6 7'/%3E%3Cpath stroke='%237ac63a' d='M16 100l9-2'/%3E%3Cpath stroke='%23a37bff' d='M58 96l5 8'/%3E%3C/g%3E%3C/svg%3E");
  --bandeirinhas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='30' viewBox='0 0 180 30'%3E%3Cpath d='M0 3h180' stroke='%23c9b8f0' stroke-width='2'/%3E%3Cg stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M4 5h22l-11 20z' fill='%23f2542d' stroke='%23f2542d'/%3E%3Cpath d='M34 5h22l-11 20z' fill='%232fa3f5' stroke='%232fa3f5'/%3E%3Cpath d='M64 5h22l-11 20z' fill='%23ffc533' stroke='%23ffc533'/%3E%3Cpath d='M94 5h22l-11 20z' fill='%237ac63a' stroke='%237ac63a'/%3E%3Cpath d='M124 5h22l-11 20z' fill='%23ff8d3f' stroke='%23ff8d3f'/%3E%3Cpath d='M154 5h22l-11 20z' fill='%238c5cf0' stroke='%238c5cf0'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--tinta);
  background: #86d0ff;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }

/* =========================================================
   Fundo: céu azul, sol, nuvens e gramado
   ========================================================= */

.fundo {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(85% 52% at 50% -6%, rgba(255, 243, 160, 1), rgba(255, 243, 160, 0) 72%),
    linear-gradient(180deg, #46b0f5 0%, #86d0ff 36%, #cdeeff 68%, #f1faff 100%);
}

/* gramado em morrinhos, como em desenho de criança */
.fundo::after {
  content: '';
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  height: clamp(74px, 15vh, 150px);
  background:
    radial-gradient(ellipse 46% 100% at 22% 100%, #9be05c 0 99.4%, transparent 100%),
    radial-gradient(ellipse 54% 84% at 80% 100%, #76cb3f 0 99.4%, transparent 100%);
}

.raios {
  position: absolute;
  left: 50%;
  top: calc(5vh - 90vmax);
  width: 180vmax;
  height: 180vmax;
  margin-left: -90vmax;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0) 0deg 6deg,
    rgba(255, 250, 200, .7) 8deg 11deg,
    rgba(255, 255, 255, 0) 13deg 18deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 56%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 56%);
  animation: girar 180s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.nuvem {
  position: absolute;
  width: var(--l);
  aspect-ratio: 2.6;
  opacity: var(--o, .95);
  background:
    radial-gradient(ellipse 21% 40% at 22% 68%, #fff 97%, transparent 100%),
    radial-gradient(ellipse 25% 52% at 42% 52%, #fff 97%, transparent 100%),
    radial-gradient(ellipse 23% 46% at 63% 58%, #fff 97%, transparent 100%),
    radial-gradient(ellipse 17% 32% at 81% 72%, #fff 97%, transparent 100%),
    linear-gradient(#fff, #fff) 50% 100% / 62% 34% no-repeat;
  filter: drop-shadow(0 8px 10px rgba(31, 100, 180, .16));
  animation: vagar var(--t) ease-in-out infinite alternate;
}
.n1 { left: -10%; top: 6%; --l: 40vmin; --t: 70s; --o: .9; }
.n2 { right: -12%; top: 15%; --l: 42vmin; --t: 95s; --o: .9; }
.n3 { left: -14%; bottom: 25%; --l: 56vmin; --t: 80s; }
.n4 { right: -8%; bottom: 34%; --l: 44vmin; --t: 110s; --o: .9; }
@keyframes vagar {
  from { transform: translateX(-4vw); }
  to { transform: translateX(7vw); }
}

#ceu, #fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#ceu { z-index: -1; }
#fx { z-index: 80; }

/* =========================================================
   Cena 1 — envelope
   ========================================================= */

.cena {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.8vh, 36px);
  padding: 20px 16px 30px;
  text-align: center;
  transition: opacity .6s ease, transform .9s ease;
}
.cena.saindo { opacity: 0; transform: scale(1.12); }

.destinatario,
.env-palco,
.dica {
  transition: opacity .9s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
}
.cena.carregando .destinatario { opacity: 0; transform: translateY(-14px); }
.cena.carregando .env-palco { opacity: 0; transform: translateY(26px) scale(.94); }
.cena.carregando .dica { opacity: 0; }
.env-palco { transition-delay: .15s; }
.dica { transition-delay: .5s; }

/* pombinha com o ramo de oliveira, na frente do sol */
.pomba {
  position: relative;
  width: clamp(164px, 47vw, 220px);
  margin: 0 auto clamp(8px, 1.8vh, 14px);
}
.pomba svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 5px 6px rgba(31, 84, 160, .22));
}
.pomba .ave { animation: pairar 4.5s ease-in-out infinite; }
.pomba .sol {
  transform-box: view-box;
  transform-origin: 150px 92px;
  animation: girar 40s linear infinite;
}
@keyframes pairar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.dest-pre {
  display: inline-block;
  margin: 0;
  padding: .3em 1.1em;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(43, 27, 102, .14);
  font-family: var(--titulo);
  font-weight: 600;
  font-size: clamp(.78rem, 3.2vw, .95rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--roxo-escuro);
}

/* nome da criança em letras coloridas, como na logo */
.dest-nome {
  margin: .14em 0 0;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: calc(clamp(2.7rem, 12.6vw, 4.3rem) * var(--escala-nome, 1));
  line-height: 1.1;
  color: var(--roxo);
  text-wrap: balance;
}
.dest-nome .palavra { display: inline-block; white-space: nowrap; }
.dest-nome .letra {
  --giro: -4deg;
  display: inline-block;
  transform: rotate(var(--giro));
  text-shadow: var(--contorno), 0 .1em .1em rgba(43, 27, 102, .3);
  animation: brotar .55s cubic-bezier(.3, 1.5, .5, 1) both;
  animation-delay: calc(var(--n, 0) * 55ms + 350ms);
}
.dest-nome .letra:nth-child(even) { --giro: 3deg; }
.dest-nome .letra:nth-child(3n) { --giro: -1.5deg; }
.cor0 { color: #6fc22c; }
.cor1 { color: #ff8f1f; }
.cor2 { color: #8c5cf0; }
.cor3 { color: #1f8fee; }
.cor4 { color: #f2542d; }
@keyframes brotar {
  0% { opacity: 0; transform: translateY(.3em) scale(.3) rotate(-18deg); }
  70% { opacity: 1; transform: translateY(-.06em) scale(1.12) rotate(var(--giro)); }
  100% { opacity: 1; transform: rotate(var(--giro)); }
}

.dest-cuidados {
  margin: .25em 0 0;
  font-weight: 800;
  font-size: clamp(1rem, 3.9vw, 1.14rem);
  color: #24418f;
  text-shadow: 0 0 10px rgba(255, 255, 255, .9), 0 0 3px rgba(255, 255, 255, .9);
}

/* ----- envelope ----- */

.env-palco { width: var(--env-w); }
.cena.aberta .env-palco {
  transform: translateY(15%);
  transition: transform 1.1s cubic-bezier(.3, .7, .2, 1);
}

.envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  perspective: 1400px;
  animation: flutuar 6s ease-in-out infinite;
}
.envelope.aberto { animation-play-state: paused; }
.envelope::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -16%;
  height: 14%;
  background: radial-gradient(ellipse, rgba(31, 84, 160, .34), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}

@keyframes flutuar {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50% { transform: translateY(-12px) rotate(1.4deg); }
}

/* forro listrado de amarelo por dentro */
.env-fundo {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: repeating-linear-gradient(135deg, #ffd95a 0 14px, #ffc533 14px 28px);
  box-shadow: inset 0 0 26px rgba(200, 110, 0, .35), 0 12px 28px rgba(31, 84, 160, .3);
}

.env-carta {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 4%;
  height: 92%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5%;
  padding-top: 5%;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 84, 160, .3), inset 0 0 0 3px #ffe08a;
  transition: transform 1.1s cubic-bezier(.22, .9, .3, 1);
}
.envelope.carta-saindo .env-carta { transform: translateY(-60%); }

.mini-cruz {
  width: 6.5%;
  fill: none;
  stroke: #f5a516;
  stroke-width: 4.2;
  stroke-linecap: round;
}
.mini-titulo {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: calc(var(--env-w) * .062);
  line-height: 1;
  color: var(--vermelho);
}
.mini-linha {
  width: 58%;
  height: 4px;
  border-radius: 4px;
  background: #c9b4ff;
}
.mini-linha.curta { width: 36%; background: #a9dc7c; }

.env-bolso {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 14px;
  overflow: hidden;
}
.env-bolso i,
.base-sombra {
  position: absolute;
  inset: 0;
}
.env-bolso .lado.esq {
  clip-path: polygon(0 0, 52% 55%, 0 100%);
  background: var(--granulado) 0 0 / 104px, linear-gradient(95deg, #ffffff, #e4ecfb);
}
.env-bolso .lado.dir {
  clip-path: polygon(100% 0, 48% 55%, 100% 100%);
  background: var(--granulado) 40px 30px / 104px, linear-gradient(265deg, #ffffff, #e4ecfb);
}
.base-sombra { filter: drop-shadow(0 -2px 3px rgba(31, 84, 160, .22)); }
.env-bolso .base {
  clip-path: polygon(3.2% 100%, 50% 45.4%, 96.8% 100%);
  background: var(--granulado) 20px 60px / 104px, linear-gradient(0deg, #ffffff, #f1f5fd);
}
/* filete amarelo nas dobras */
.env-bolso .base.fio {
  clip-path: polygon(0 100%, 50% 42%, 100% 100%);
  background: var(--filete);
}

.env-aba {
  position: absolute;
  inset: 0 0 auto 0;
  height: 60%;
  z-index: 4;
  transform-origin: 50% 0;
  filter: drop-shadow(0 4px 4px rgba(31, 84, 160, .3));
  transition: transform .95s cubic-bezier(.45, .05, .3, 1);
}
.env-aba span {
  position: absolute;
  inset: 0;
  border-radius: 14px 14px 0 0;
}
.env-aba .fio {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--filete);
}
.env-aba .papel {
  clip-path: polygon(3.2% 0, 96.8% 0, 50% 94.6%);
  background: var(--granulado) 60px 10px / 104px, linear-gradient(180deg, #ffffff 0%, #f4f7fe 62%, #e6edfb 100%);
}
.envelope.aberto .env-aba { transform: rotateX(180deg); }
.envelope.aba-atras .env-aba { z-index: 1; }
.envelope.aba-atras .env-aba .papel { background: repeating-linear-gradient(45deg, #ffd95a 0 14px, #ffc533 14px 28px); }

/* ----- selo amarelo com a cruz ----- */

.selo {
  position: absolute;
  left: 50%;
  top: 60%;
  z-index: 6;
  width: 31%;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.selo:hover { transform: translate(-50%, -50%) scale(1.06); }
.selo:active { transform: translate(-50%, -50%) scale(.95); }
.selo:focus-visible { outline: 3px solid var(--roxo); outline-offset: 6px; }
.selo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 4px 5px rgba(190, 90, 0, .45));
}

/* anéis chamando o toque */
.selo::before,
.selo::after {
  content: '';
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  border: 3px solid #ffb21f;
  opacity: 0;
  animation: pulsar 2.4s ease-out infinite;
  pointer-events: none;
}
.selo::after { animation-delay: 1.2s; }
@keyframes pulsar {
  0% { transform: scale(.92); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.etiqueta {
  position: absolute;
  left: 50%;
  top: 100%;
  padding: .34em 1.05em .38em;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7d48, #ec4526);
  box-shadow: 0 0 0 2.5px #fff, 0 4px 0 2px #b22d12, 0 9px 14px rgba(170, 50, 10, .35);
  font-family: var(--titulo);
  font-weight: 600;
  font-size: clamp(.82rem, 3.5vw, 1rem);
  white-space: nowrap;
  color: #fff;
  transform: translate(-50%, -45%);
  animation: chamar 1.8s ease-in-out infinite;
}
@keyframes chamar {
  0%, 100% { transform: translate(-50%, -45%); }
  50% { transform: translate(-50%, -20%); }
}

/* o selo se parte em dois */
.selo .metade {
  transform-box: view-box;
  transform-origin: 100px 100px;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1), opacity .55s ease .15s;
}
.selo.partido { pointer-events: none; }
.selo.partido::before,
.selo.partido::after,
.selo.partido .inteiro,
.selo.partido .etiqueta { display: none; }
.selo.partido .metade.esq { transform: translate(-46px, 30px) rotate(-26deg); opacity: 0; }
.selo.partido .metade.dir { transform: translate(46px, 34px) rotate(24deg); opacity: 0; }

.dica {
  margin: 4px 0 0;
  padding: .32em 1.1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 0 rgba(43, 27, 102, .12);
  font-family: var(--titulo);
  font-weight: 500;
  font-size: clamp(.95rem, 3.8vw, 1.08rem);
  color: var(--roxo-escuro);
}
.cena.aberta .dica { opacity: 0; transition-delay: 0s; transition-duration: .3s; }

/* convite não encontrado */
.aviso {
  max-width: 21em;
  padding: 22px 22px 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(31, 84, 160, .28);
  font-size: 1.1rem;
  color: var(--tinta);
}
.aviso-titulo { margin: 0 auto .5em; width: min(220px, 70%); }
.aviso-titulo img { display: block; width: 100%; height: auto; }
.aviso p { margin: 0; }

/* =========================================================
   Cena 2 — carta
   ========================================================= */

.carta {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(14px, 4vw, 44px) 12px 56px;
}

.pergaminho {
  position: relative;
  width: min(100%, 600px);
  margin: auto;
  padding: clamp(52px, 13vw, 66px) clamp(16px, 5.4vw, 52px) clamp(34px, 8vw, 48px);
  border: 7px solid transparent;
  border-radius: 34px;
  background:
    var(--rabiscos) 50% 0 / 230px padding-box,
    linear-gradient(#ffffff, #fffdf5) padding-box,
    var(--moldura) border-box;
  box-shadow: 0 24px 50px rgba(31, 84, 160, .34);
  text-align: center;
  opacity: 0;
  transform: translateY(46px) scale(.93);
  transition: opacity .8s ease, transform 1s cubic-bezier(.2, .9, .3, 1.08);
}
.carta.visivel .pergaminho { opacity: 1; transform: none; }

/* bandeirinhas de festa no alto da carta */
.pergaminho::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 20px;
  right: 20px;
  height: 44px;
  background: var(--bandeirinhas) 0 0 / 180px auto round no-repeat;
  pointer-events: none;
}

/* cada bloco da carta surge em sequência */
.pergaminho > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--i, 0) * 100ms + 450ms);
}
.carta.visivel .pergaminho > * { opacity: 1; transform: none; }

.logo { width: clamp(200px, 66vw, 284px); margin: -4px auto 4px; }
.logo img { display: block; width: 100%; height: auto; }

.sobre-titulo {
  margin: 0;
  font-family: var(--titulo);
  font-weight: 600;
  font-size: clamp(.78rem, 3.1vw, .95rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--roxo-escuro);
}
.lema {
  display: inline-block;
  margin: .5em 0 0;
  padding: .16em 1em;
  border-radius: 999px;
  background: #fff1b3;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: clamp(.98rem, 3.9vw, 1.1rem);
  color: #8a5300;
}

/* bolinhas coloridas com a cruz no meio */
.ornamento {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto 14px;
}
.ornamento span {
  width: min(27%, 104px);
  height: 8px;
  background: repeating-linear-gradient(270deg, #ffb21f 0 14px, #2fa3f5 14px 28px, #ff8f1f 28px 42px, #7ac63a 42px 56px);
  -webkit-mask: radial-gradient(circle 3px at 50% 50%, #000 96%, transparent 100%) 100% 0 / 14px 8px repeat-x;
  mask: radial-gradient(circle 3px at 50% 50%, #000 96%, transparent 100%) 100% 0 / 14px 8px repeat-x;
}
.ornamento span:last-child { transform: scaleX(-1); }
.ornamento svg {
  width: 20px;
  fill: none;
  stroke: #f5a516;
  stroke-width: 4;
  stroke-linecap: round;
}

.paz {
  margin: 0;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: clamp(.86rem, 3.4vw, 1rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vermelho);
}
.saudacao {
  margin: 0 0 .3em;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: clamp(1.9rem, 8.6vw, 2.6rem);
  line-height: 1.2;
  color: var(--azul);
  overflow-wrap: anywhere;
}

.texto {
  margin: 0 auto .85em;
  max-width: 34em;
  font-size: clamp(1.02rem, 4.1vw, 1.12rem);
  text-wrap: pretty;
}
.texto strong { font-weight: 800; color: var(--roxo); }

/* data, horário e local: um cartãozinho de cada cor */
.detalhes {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 22px auto;
  padding: 0;
  max-width: 25em;
  text-align: left;
}
.detalhes li {
  --cor: #8bd645;
  --cor2: #56a81c;
  --rotulo: #3f8a12;
  --fundo: #effbe3;
  --borda: #c4ec9f;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border: 2px solid var(--borda);
  border-radius: 20px;
  background: var(--fundo);
}
.detalhes li:nth-child(2) { --cor: #ffab45; --cor2: #f57a14; --rotulo: #c85a05; --fundo: #fff4e3; --borda: #ffd59b; }
.detalhes li:nth-child(3) { --cor: #4bb2f8; --cor2: #1878d8; --rotulo: #1668c4; --fundo: #e8f5ff; --borda: #b3dcfd; }
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--cor), var(--cor2));
  box-shadow: 0 3px 0 rgba(43, 27, 102, .14), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detalhes small {
  display: block;
  font-family: var(--titulo);
  font-weight: 600;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rotulo);
}
.detalhes strong {
  display: block;
  font-family: var(--titulo);
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.25;
  color: var(--tinta);
}
.detalhes em { display: block; font-style: normal; font-size: .98rem; color: var(--tinta-suave); }
.detalhes .pendente { font-weight: 500; color: var(--tinta-suave); }

/* atrações da festa */
.atracoes { margin: 0 auto 6px; max-width: 26em; }
.atracoes-titulo {
  margin: 0 0 12px;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: clamp(.86rem, 3.4vw, 1rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--roxo-escuro);
}
.atracoes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 8px;
}
.atracoes li {
  --f: #fff3bf;
  --b: #ffd23f;
  padding: .3em .9em;
  border: 2px solid var(--b);
  border-radius: 999px;
  background: var(--f);
  font-family: var(--titulo);
  font-weight: 500;
  font-size: 1.05rem;
  white-space: nowrap;
  color: var(--tinta);
  transform: rotate(-1.6deg);
}
.atracoes li:nth-child(even) { transform: rotate(1.6deg); }
.atracoes li:nth-child(5n + 2) { --f: #ffe3ec; --b: #ff9dbb; }
.atracoes li:nth-child(5n + 3) { --f: #e5f8d3; --b: #a4dd6f; }
.atracoes li:nth-child(5n + 4) { --f: #e0f1ff; --b: #86c9fb; }
.atracoes li:nth-child(5n + 5) { --f: #ede5ff; --b: #b9a0ff; }
.atracoes-fecho {
  margin: 12px 0 0;
  font-family: var(--titulo);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--laranja-escuro);
}

/* versículo, com o anjinho em cima */
.versiculo {
  position: relative;
  margin: 62px auto 22px;
  padding: 50px 18px 16px;
  max-width: 25em;
  border: 2.5px dashed #ffcb45;
  border-radius: 24px;
  background: #fff9dd;
}
.anjinho {
  position: absolute;
  left: 50%;
  top: -42px;
  width: 96px;
  margin-left: -48px;
  overflow: visible;
  filter: drop-shadow(0 4px 4px rgba(43, 27, 102, .16));
  animation: pairar 4s ease-in-out infinite;
}
.versiculo p {
  margin: 0;
  font-style: italic;
  font-weight: 700;
  font-size: 1.04rem;
  color: #5a4a1c;
  text-wrap: balance;
}
.versiculo span {
  font-style: normal;
  font-family: var(--titulo);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  color: var(--roxo);
}

.assinatura p { margin: 0; font-size: 1.05rem; }
.assinatura .bencao {
  margin-bottom: .45em;
  font-family: var(--titulo);
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--azul-escuro);
}
.assinatura .assina-nome {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: clamp(1.3rem, 5.6vw, 1.6rem);
  line-height: 1.25;
  color: var(--roxo);
}

.resposta-area { margin-top: 24px; }
.pergunta {
  margin: 0 0 14px;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: clamp(1.08rem, 4.4vw, 1.22rem);
  color: var(--tinta);
}

/* botão gordinho, de brinquedo */
.btn-confirmar {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: .74em 1.7em .8em;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #9a6cf2, #6d3fd6);
  box-shadow:
    0 0 0 3px #ffd23f,
    0 7px 0 3px #4a299f,
    0 16px 24px rgba(74, 41, 159, .36),
    inset 0 2px 0 rgba(255, 255, 255, .35);
  font-family: var(--titulo);
  font-weight: 600;
  font-size: clamp(1.1rem, 4.8vw, 1.28rem);
  letter-spacing: .01em;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  animation: pulinho 2.4s ease-in-out infinite;
}
.btn-confirmar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  animation: brilho 3.4s ease-in-out infinite;
}
.btn-confirmar:active {
  animation: none;
  transform: translateY(5px);
  box-shadow: 0 0 0 3px #ffd23f, 0 2px 0 3px #4a299f, 0 6px 12px rgba(74, 41, 159, .3), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.btn-confirmar:focus-visible { outline: 3px solid var(--azul); outline-offset: 7px; }
@keyframes pulinho {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes brilho {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}

.prazo { margin: 20px 0 0; font-size: .98rem; color: var(--tinta-suave); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 14px 20px;
  border-radius: 22px;
  border: 2px solid;
  text-align: left;
}
.status strong { display: block; font-family: var(--titulo); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.status p { margin: 2px 0 0; font-size: .98rem; }
.status-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(43, 27, 102, .14);
}
.status.sim { border-color: #a4dd6f; background: #effbe3; color: #2f6a0d; }
.status.sim .status-ico { background: linear-gradient(180deg, #8bd645, #56a81c); }
.status.nao { border-color: #ffb9ab; background: #fff1ed; color: #a5311b; }
.status.nao .status-ico { background: linear-gradient(180deg, #ff7d48, #ec4526); }

.link {
  display: block;
  margin: 12px auto 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--tinta-suave);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover { color: var(--roxo); }

/* só aparece na versão de teste, sem servidor */
.aviso-demo {
  margin: 22px auto 0;
  padding: .4em 1em;
  max-width: 24em;
  border-radius: 14px;
  background: #f1eefb;
  font-size: .86rem;
  color: var(--tinta-suave);
}

/* =========================================================
   Modal de resposta
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(40, 36, 110, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal.aberto { opacity: 1; }

.modal-cartao {
  position: relative;
  width: min(100%, 470px);
  padding: 30px clamp(18px, 5.6vw, 30px) 26px;
  border: 6px solid transparent;
  border-radius: 30px;
  background:
    linear-gradient(#ffffff, #fffdf5) padding-box,
    var(--moldura) border-box;
  box-shadow: 0 30px 70px rgba(20, 16, 80, .5);
  text-align: center;
  transform: translateY(24px) scale(.95);
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-cartao:focus { outline: none; }
.modal.aberto .modal-cartao { transform: none; }

.modal-fechar {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--tinta-suave);
  cursor: pointer;
}
.modal-fechar:hover { background: rgba(123, 79, 230, .12); }

.passo .passo-rotulo {
  margin: 0 0 4px;
  font-family: var(--titulo);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vermelho);
}
.passo h3 {
  margin: 0 0 .5em;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: clamp(1.5rem, 6.2vw, 1.8rem);
  line-height: 1.2;
  color: var(--azul);
}
.passo p { margin: 0 0 1em; font-size: 1.05rem; text-wrap: pretty; }
.passo p:last-child { margin-bottom: 0; }

.declaracao {
  padding: 16px 16px;
  border: 2.5px dashed #b9a0ff;
  border-radius: 20px;
  background: #f3eeff;
  font-size: 1.12rem !important;
  line-height: 1.5;
}
.declaracao strong { font-weight: 800; color: var(--roxo-escuro); }

.festa { font-size: 3rem; line-height: 1; margin-bottom: 6px; animation: pular .9s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pular {
  0% { transform: scale(0) rotate(-30deg); }
  100% { transform: scale(1) rotate(0); }
}

.acoes { display: grid; gap: 14px; margin-top: 18px; padding-bottom: 5px; }
.acoes.linha { grid-template-columns: auto 1fr; gap: 10px; }
.acoes.linha .btn { white-space: nowrap; }

.btn {
  --base: #c9c5e6;
  padding: .72em 1.2em .76em;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--base);
  font-family: var(--titulo);
  font-weight: 600;
  font-size: 1.06rem;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--base); }
.btn:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-sim {
  --base: #3c8414;
  background: linear-gradient(180deg, #8bd645, #58ab1e);
  color: #fff;
  font-size: 1.16rem;
  padding-block: .8em .84em;
  text-shadow: 0 1px 0 rgba(40, 90, 0, .35);
}
.btn-nao { --base: #ffc6ba; background: #fff; border-color: #ffb9ab; color: #c93a1c; }
.btn-nao:hover { background: #fff5f2; }
.btn-principal {
  --base: #4a299f;
  background: linear-gradient(180deg, #9a6cf2, #6d3fd6);
  color: #fff;
}
.btn-leve { --base: #dcd8f0; background: #fff; border-color: #d5d0ee; color: var(--tinta-suave); }

.opcoes { display: grid; gap: 8px; margin: 14px 0; text-align: left; }
.opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 2px solid #ddd8f3;
  border-radius: 16px;
  background: #fff;
  font-size: 1.02rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.opcao input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--roxo);
}
.opcao:has(input:checked) { border-color: var(--roxo); background: #f3eeff; }

.campo { display: block; margin-top: 14px; text-align: left; }
.campo > span { display: block; margin-bottom: 6px; font-size: 1.02rem; font-weight: 700; }
.campo em { font-style: normal; font-weight: 600; color: var(--tinta-suave); }
.campo textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #d5d0ee;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 1.02rem;
  color: var(--tinta);
  resize: vertical;
}
.campo textarea:focus { outline: none; border-color: var(--roxo); box-shadow: 0 0 0 3px rgba(123, 79, 230, .2); }

.erro, .ok { margin: 12px 0 0 !important; font-size: 1rem !important; font-weight: 700; }
.erro { color: #c62a1a; }
.ok { color: #2f7a12; }

/* =========================================================
   Quem prefere menos movimento
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
