:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --ink: #f4f1ea;
  --muted: #9a948a;
  --gold: #cba86a;
  --gold-soft: rgba(203, 168, 106, .55);
  --line: rgba(244, 241, 234, .16);
  --line-soft: rgba(244, 241, 234, .08);
  --card: rgba(255, 255, 255, .025);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --display: "Anton", Impact, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #12100c 0%, var(--bg) 55%, #020202 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .5;
  z-index: 0;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.convite { position: relative; z-index: 1; }

/* ============ CAPA ============ */
#capa {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 22px 64px;
  overflow: hidden;
}

#convite.aberto #capa { display: none; }

.borda-dupla {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.borda-dupla::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-soft);
}

.anel {
  position: absolute;
  top: 50%; left: 50%;
  width: min(88vw, 620px);
  height: min(88vw, 620px);
  border: 1px solid rgba(203, 168, 106, .12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.anel + .anel {
  width: min(72vw, 500px);
  height: min(72vw, 500px);
  border-color: rgba(244, 241, 234, .06);
}

.estrela {
  position: absolute;
  width: 14px; height: 14px;
  color: rgba(244, 241, 234, .75);
  pointer-events: none;
  animation: twinkle 4s ease-in-out infinite;
}
.estrela::before,
.estrela::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.estrela::before { width: 1px; height: 14px; }
.estrela::after {
  width: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.estrela::before { background: linear-gradient(180deg, transparent, currentColor, transparent); }

.clarao {
  position: absolute;
  top: 34%; left: 50%;
  width: min(120vw, 720px);
  height: min(120vw, 720px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(203, 168, 106, .16), transparent 62%);
  filter: blur(14px);
  pointer-events: none;
  animation: clarao 9s ease-in-out infinite;
}

.laco { color: var(--ink); display: block; }
.lavo-anim { animation: flutuar 6s ease-in-out infinite; }
.laco-capa { margin-bottom: 4px; filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .6)); }

.sobre {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.nome {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(58px, 21vw, 138px);
  line-height: .92;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin: 10px 0 0;
  text-shadow: 0 0 40px rgba(203, 168, 106, .18);
}

.anos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 0;
}
.fio {
  display: block;
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.fio.fim { background: linear-gradient(90deg, var(--gold), transparent); }
.txt-anos {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--ink);
  white-space: nowrap;
}

.para {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin: 14px 0 0;
}
.para strong { color: var(--ink); font-weight: 500; font-style: normal; }

.maquina { position: relative; }
.maquina::after {
  content: "";
  display: inline-block;
  width: 1px; height: 1em;
  margin-left: 2px;
  background: var(--gold);
  vertical-align: -2px;
  animation: piscar 1.1s steps(1) infinite;
}

/* poster */
.poster-moldura {
  position: relative;
  width: min(64vw, 218px);
  aspect-ratio: 2 / 3;
  margin: 30px auto 0;
  border: 1px solid rgba(244, 241, 234, .22);
  background: linear-gradient(180deg, #16110f 0%, #08080a 70%, #0d0a08 100%);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9), inset 0 0 60px rgba(0, 0, 0, .5);
}
#posterImg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.laco-poster {
  position: absolute;
  top: -26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .7));
}

.poster-recriacao {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 10px 14px;
  text-align: center;
  color: #efe9dd;
}
.pr-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .1em;
  color: #d9b46f;
}
.pr-linha {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: .18em;
  color: rgba(239, 233, 221, .75);
  margin-top: 6px;
}
.pr-centro {
  flex: 1;
  display: grid;
  place-items: center;
  margin: 8px 0;
}
.pr-silo {
  width: 62%;
  height: 74%;
  background: linear-gradient(180deg, rgba(217, 180, 111, .28), rgba(217, 180, 111, .02) 70%);
  border: 1px solid rgba(217, 180, 111, .35);
  border-radius: 50% 50% 6px 6px / 60% 60% 6px 6px;
  box-shadow: inset 0 0 30px rgba(217, 180, 111, .18);
}
.pr-nome {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .12em;
  color: #efe9dd;
}
.poster-brilho {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .12) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: brilho-suave 6.5s ease-in-out infinite;
  pointer-events: none;
}

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background .35s ease, border-color .35s ease, color .35s ease, transform .2s ease;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #14100a; }
.btn:active { transform: translateY(1px); }

#btnAbrir {
  margin-top: 30px;
  padding: 16px 40px;
  border-color: var(--gold);
  letter-spacing: .3em;
}
.btn.pulsar { animation: pulsar 2.8s ease-in-out infinite; }

.link-mini {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(244, 241, 234, .25);
  text-underline-offset: 4px;
  transition: color .3s ease;
}
.link-mini:hover { color: var(--gold); }

/* ============ CONTEÚDO ============ */
#conteudo { display: none; }
#convite.aberto #conteudo { display: block; animation: aparecer .7s ease both; }

.bloco {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 76px 24px;
  text-align: center;
}
.bloco + .bloco::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.revelar {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s ease;
}
.revelar.visivel { opacity: 1; transform: none; }

.titulo-secao {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 28px;
}

.frase {
  position: relative;
  max-width: 26ch;
  margin: 28px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 5.6vw, 27px);
  line-height: 1.5;
  color: rgba(244, 241, 234, .94);
}
.aspas {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -.22em;
  display: inline-block;
}

/* decorações */
.decor-linha {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 38px;
  margin: 40px 0 0;
}
.deco {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  transition: transform .3s ease, filter .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.deco svg { width: 100%; height: 100%; overflow: visible; }
.deco:hover { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 0 10px rgba(203, 168, 106, .45)); }
.deco:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; border-radius: 4px; }
.deco-grande { width: 100px; height: 100px; }

.dica-decor {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 0;
}

.msg-bolha {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 150px;
  max-width: 220px;
  padding: 9px 13px;
  background: rgba(244, 241, 234, .96);
  color: #17130d;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  border-radius: 7px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  z-index: 5;
}
.msg-bolha::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(244, 241, 234, .96);
}
.deco.ativo .msg-bolha { opacity: 1; transform: translateX(-50%) translateY(0); }

/* animações dos enfeites ao toque */
.deco.ativo[data-anim="tilim"] svg { animation: tilim .8s ease; }
.deco.ativo[data-anim="balancar"] svg { animation: balancar .9s ease; }
.deco.ativo[data-anim="voar"] svg { animation: voar 1.3s ease; }
.deco.ativo[data-anim="girar"] svg { animation: girar 1s ease; }
.deco.ativo[data-anim="amarrar"] svg { animation: amarrar .9s ease; }
.deco.ativo[data-anim="explodir"] svg { animation: explodir .9s ease; }
.deco.ativo[data-anim="abrir"] .tampa { animation: abrir .9s ease both; transform-origin: center bottom; }
.deco.ativo[data-anim="apagar"] .chama { animation: apagar .9s ease both; }
.deco.ativo[data-anim="brilhar"] .ponto-t { animation: ponto .55s ease-in-out infinite alternate; }

.chama { transform-origin: center 22px; animation: tremular 1.4s ease-in-out infinite alternate; }
.coracao-batendo { transform-origin: center; animation: bater 1.6s ease-in-out infinite; }
.ponto-t { animation: ponto 2.4s ease-in-out infinite; animation-delay: var(--pd, 0s); }
.fsc { animation: ponto 2s ease-in-out infinite; }
.brilho-ponto { animation: ponto 3s ease-in-out infinite; }

/* ============ CONTADOR ============ */
.contador {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.caixa-tempo {
  min-width: 68px;
  padding: 16px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
}
.caixa-tempo .num {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.caixa-tempo .rot {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.nota-data {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

/* ============ INFO ============ */
.info-lista {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--line);
}
.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
}
.info-icone { flex: none; opacity: .85; }
.info-item .rot {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-item .val {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 2px;
}
.info-item .val small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  margin-top: 4px;
}

.btns-linha {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.aviso {
  max-width: 360px;
  margin: 12px auto 0;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(203, 168, 106, .6);
}
.aviso[hidden] { display: none; }

/* ============ MÚSICA ============ */
.botao-musica {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-top: 34px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, .02);
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease;
}
.botao-musica:hover { border-color: var(--gold); background: rgba(203, 168, 106, .08); }
.onda { display: flex; align-items: center; gap: 3px; height: 20px; }
.onda i {
  display: block;
  width: 2px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
  animation: onda 1s ease-in-out infinite;
  animation-play-state: paused;
  opacity: .55;
}
.onda i:nth-child(2) { animation-delay: .15s; }
.onda i:nth-child(3) { animation-delay: .3s; }
.onda i:nth-child(4) { animation-delay: .45s; }
.botao-musica.tocando .onda i { animation-play-state: running; opacity: 1; }
.botao-musica.tocando { border-color: var(--gold); box-shadow: 0 0 24px -6px rgba(203, 168, 106, .6); }
.musica-rot {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ FIM ============ */
.laco-reveal { display: grid; place-items: center; }
.fim-nome {
  font-family: var(--display);
  font-size: clamp(38px, 12vw, 60px);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 18px;
}
.fim-anos {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  margin-top: 8px;
}
.rodape {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin: 22px 0 0;
}

/* ============ PAINEL ============ */
.painel {
  max-width: 520px;
  margin: 0 auto 70px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  text-align: left;
}
.painel .titulo-secao { text-align: center; }
.painel label {
  display: block;
  margin: 16px 0 6px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.painel input,
.painel textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  transition: border-color .25s ease;
}
.painel textarea { resize: vertical; min-height: 70px; }
.painel input:focus,
.painel textarea:focus { border-color: var(--gold); }
.painel-nota {
  margin: 8px 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.painel-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.btn-mini {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.btn-mini:hover { border-color: var(--gold); color: var(--gold); }

#listaConvidados { margin-top: 12px; }
.convidado-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.convidado-item .nome-c {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.convidado-item .acoes { display: flex; gap: 8px; flex: none; }
.convidado-item button {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 5px 8px;
  cursor: pointer;
}
.convidado-item button:hover { color: var(--gold); border-color: var(--gold); }

/* ============ ANIMAÇÕES ============ */
@keyframes twinkle {
  0%, 100% { opacity: .12; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes clarao {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes pulsar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(203, 168, 106, .35); }
  50% { box-shadow: 0 0 0 9px rgba(203, 168, 106, 0); }
}
@keyframes piscar { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes brilho-suave {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes aparecer {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes tremular {
  from { transform: scaleY(.92) translateY(1px); opacity: .8; }
  to { transform: scaleY(1.08) translateY(-1px); opacity: 1; }
}
@keyframes bater {
  0%, 100% { transform: scale(1); }
  18% { transform: scale(1.09); }
  36% { transform: scale(1); }
  54% { transform: scale(1.06); }
}
@keyframes ponto {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}
@keyframes onda {
  0%, 100% { height: 5px; }
  50% { height: 19px; }
}
@keyframes tilim {
  0% { transform: rotate(0); }
  25% { transform: rotate(-9deg) translateY(-2px); }
  50% { transform: rotate(7deg); }
  75% { transform: rotate(-4deg); }
  100% { transform: rotate(0); }
}
@keyframes balancar {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-7deg); }
  80% { transform: rotate(5deg); }
}
@keyframes voar {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-22px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes girar {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes abrir {
  0%, 100% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(-7px) rotate(-4deg); }
  70% { transform: translateY(-3px) rotate(3deg); }
}
@keyframes amarrar {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  65% { transform: scale(.96); }
  100% { transform: scale(1); }
}
@keyframes explodir {
  0% { transform: scale(1); }
  30% { transform: scale(1.22); }
  55% { transform: scale(.94); }
  75% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes apagar {
  0% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(.2) translateY(4px); }
}

/* ============ RESPONSIVO ============ */
@media (max-width: 420px) {
  .bloco { padding: 62px 20px; }
  .decor-linha { gap: 26px; }
  .caixa-tempo { min-width: 60px; padding: 13px 4px 10px; }
  .caixa-tempo .num { font-size: 28px; }
  .fio { width: 40px; }
  .poster-moldura { width: min(64vw, 190px); }
}

@media (min-width: 900px) {
  .bloco { max-width: 620px; padding: 92px 24px; }
}

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

/* ============================================================
   FUNDO VIVO + SEQUÊNCIA DE ABERTURA
   ============================================================ */

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(70px) saturate(120%);
  opacity: .5;
}
.aurora span {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora span:nth-child(1) {
  top: -18%; left: -10%;
  background: radial-gradient(circle, rgba(203, 168, 106, .34), transparent 65%);
  animation: aurora-a 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  bottom: -22%; right: -14%;
  background: radial-gradient(circle, rgba(150, 110, 200, .26), transparent 65%);
  animation: aurora-b 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  top: 26%; right: 8%;
  width: 44vmax; height: 44vmax;
  background: radial-gradient(circle, rgba(214, 140, 120, .2), transparent 65%);
  animation: aurora-c 19s ease-in-out infinite alternate;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
}

/* ---------- cena de abertura ---------- */
.cena-abertura {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}
.cena-abertura[hidden] { display: none; }

/* palco escuro: cobre a capa, revela so no fim */
.palco {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(40, 32, 20, .92), rgba(4, 3, 2, .99) 70%),
    #050403;
  opacity: 1;
}
#cenaAbertura.ativa .palco { animation: palco-sai 1.1s ease 3.05s forwards; }

/* feixe de luz dourada que cresce no vao das cortinas */
.feixe-luz {
  position: absolute;
  top: -10%;
  left: 50%;
  z-index: 2;
  width: 46vw;
  height: 120%;
  transform: translateX(-50%) scaleX(.2);
  background: linear-gradient(90deg, transparent, rgba(255, 236, 190, .34) 46%, rgba(255, 246, 220, .5) 50%, rgba(255, 236, 190, .34) 54%, transparent);
  filter: blur(18px);
  opacity: 0;
}
#cenaAbertura.ativa .feixe-luz { animation: feixe-cresce 2.4s cubic-bezier(.4, 0, .3, 1) .35s forwards, feixe-sai 1s ease 3s forwards; }

/* cortinas que se abrem devagar */
.cortina {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 3;
  width: 51%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .55) 0 14px, rgba(28, 22, 14, .92) 14px 46px),
    linear-gradient(180deg, #17120c, #050403);
  box-shadow: inset 0 0 130px rgba(0, 0, 0, .92);
  transform: translateX(0);
}
.cortina-esq { left: 0; border-right: 1px solid rgba(203, 168, 106, .35); }
.cortina-dir { right: 0; border-left: 1px solid rgba(203, 168, 106, .35); }
#cenaAbertura.ativa .cortina-esq { animation: cortina-esq 1.9s cubic-bezier(.62, .02, .2, 1) .3s forwards; }
#cenaAbertura.ativa .cortina-dir { animation: cortina-dir 1.9s cubic-bezier(.62, .02, .2, 1) .3s forwards; }

/* estrelas dentro da cena */
.cena-estrela { z-index: 4; color: var(--gold); opacity: 0; }
#cenaAbertura.ativa .cena-estrela { animation: piscar-suave 3.2s ease-in-out infinite; }

/* centro da cena: titulo e selo empilhados na mesma celula */
.cena-centro {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 0 24px;
}
.cena-centro > * { grid-area: 1 / 1; }

/* cartao de titulo cinematografico */
.titulo-cena {
  position: relative;
  z-index: 7;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  opacity: 0;
}
.titulo-cena > * { opacity: 0; }
#cenaAbertura.ativa .titulo-cena { animation: titulo-base 3.2s ease forwards; }

.titulo-para {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(13px, 3.6vw, 18px);
  letter-spacing: .22em;
  text-transform: lowercase;
  color: rgba(244, 241, 234, .82);
}
.titulo-nome {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(52px, 15vw, 116px);
  line-height: 1;
  letter-spacing: .14em;
  padding-left: .14em;
  margin: 2px 0;
  background: linear-gradient(100deg, #8f7338 0%, #f6ecd0 26%, #cba86a 48%, #fff7e2 66%, #b8924a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(203, 168, 106, .45));
}
.titulo-anos {
  font-family: var(--serif);
  font-size: clamp(18px, 4.6vw, 28px);
  letter-spacing: .5em;
  padding-left: .5em;
  text-transform: uppercase;
  color: var(--gold);
}
.titulo-frase {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(12px, 3.2vw, 16px);
  letter-spacing: .16em;
  color: rgba(244, 241, 234, .66);
}

#cenaAbertura.ativa .titulo-para { animation: titulo-sobe .8s ease .9s forwards; }
#cenaAbertura.ativa .titulo-nome { animation: titulo-nome .9s cubic-bezier(.2, .8, .2, 1) 1.1s forwards, brilho-nome 2.8s linear 1.1s infinite; }
#cenaAbertura.ativa .titulo-anos { animation: titulo-sobe .8s ease 1.5s forwards; }
#cenaAbertura.ativa .titulo-frase { animation: titulo-sobe .8s ease 1.75s forwards; }

/* selo (laco) */
.selo-abertura {
  position: relative;
  z-index: 6;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0;
  transform: scale(.6);
}
#cenaAbertura.ativa .selo-abertura {
  animation:
    selo-entra 1s cubic-bezier(.2, .9, .3, 1.35) .15s forwards,
    selo-pulsa 1.2s ease-in-out .8s forwards,
    selo-sai .8s ease 1.05s forwards;
}
.selo-abertura svg { filter: drop-shadow(0 0 22px rgba(203, 168, 106, .8)); }
.anel-selo {
  position: absolute;
  width: 158px; height: 158px;
  border: 1px solid rgba(203, 168, 106, .5);
  border-radius: 50%;
  opacity: 0;
}
.anel-selo-2 { width: 118px; height: 118px; border-color: rgba(244, 241, 234, .35); }
#cenaAbertura.ativa .anel-selo {
  animation:
    anel-selo 1.4s ease-out .2s forwards,
    anel-sai .8s ease 1.05s forwards;
}
#cenaAbertura.ativa .anel-selo-2 {
  animation:
    anel-selo 1.2s ease-out .5s forwards,
    anel-sai .8s ease 1.05s forwards;
}

/* flash + faixas de cinema */
.flash-abertura {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: radial-gradient(circle at 50% 46%, #fff6df 0%, rgba(255, 240, 200, .55) 22%, transparent 58%);
  opacity: 0;
}
#cenaAbertura.ativa .flash-abertura { animation: flash-abrir 1.6s ease 2.7s forwards; }

.faixa-cinema {
  position: absolute;
  left: 0; right: 0;
  z-index: 8;
  height: 12vh;
  background: linear-gradient(180deg, #000 60%, rgba(0, 0, 0, .0));
}
.faixa-topo { top: 0; transform: translateY(-100%); }
.faixa-base { bottom: 0; transform: translateY(100%) scaleY(-1); }
#cenaAbertura.ativa .faixa-topo { animation: faixa-entra-topo 1s cubic-bezier(.5, 0, .2, 1) .1s forwards, faixa-sai-topo .8s ease 3s forwards; }
#cenaAbertura.ativa .faixa-base { animation: faixa-entra-base 1s cubic-bezier(.5, 0, .2, 1) .1s forwards, faixa-sai-base .8s ease 3s forwards; }

#convite.aberto #conteudo { animation: conteudo-entra .9s cubic-bezier(.2, .8, .2, 1) 2.9s both; }

@keyframes aurora-a {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(14vw, 8vh, 0) scale(1.18); }
}
@keyframes aurora-b {
  0% { transform: translate3d(0, 0, 0) scale(1.1); }
  100% { transform: translate3d(-12vw, -10vh, 0) scale(.95); }
}
@keyframes aurora-c {
  0% { transform: translate3d(0, 0, 0) scale(.9); }
  100% { transform: translate3d(-8vw, 12vh, 0) scale(1.2); }
}
@keyframes cortina-esq {
  0% { transform: translateX(0); }
  100% { transform: translateX(-102%); }
}
@keyframes cortina-dir {
  0% { transform: translateX(0); }
  100% { transform: translateX(102%); }
}
@keyframes selo-entra {
  0% { opacity: 0; transform: scale(.55) rotate(-12deg); }
  70% { opacity: 1; transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes selo-sai {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); filter: blur(6px); }
}
@keyframes anel-selo {
  0% { opacity: 0; transform: scale(.4); }
  40% { opacity: .9; }
  100% { opacity: 0; transform: scale(2.4); }
}
@keyframes anel-sai {
  to { opacity: 0; }
}
@keyframes flash-abrir {
  0% { opacity: 0; }
  12% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes conteudo-entra {
  0% { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: none; }
}
@keyframes palco-sai {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes feixe-cresce {
  0% { opacity: 0; transform: translateX(-50%) scaleX(.2); }
  35% { opacity: .85; }
  100% { opacity: .55; transform: translateX(-50%) scaleX(1.4); }
}
@keyframes feixe-sai {
  0% { opacity: .55; }
  100% { opacity: 0; }
}
@keyframes piscar-suave {
  0%, 100% { opacity: .15; }
  50% { opacity: .9; }
}
@keyframes titulo-base {
  0% { opacity: 0; }
  20% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes titulo-sobe {
  0% { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes titulo-nome {
  0% { opacity: 0; transform: translateY(22px) scale(.94); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes brilho-nome {
  0% { background-position: 200% 50%; }
  100% { background-position: -60% 50%; }
}
@keyframes selo-pulsa {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes faixa-entra-topo {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}
@keyframes faixa-entra-base {
  0% { transform: translateY(100%) scaleY(-1); }
  100% { transform: translateY(0) scaleY(-1); }
}
@keyframes faixa-sai-topo {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
@keyframes faixa-sai-base {
  0% { transform: translateY(0) scaleY(-1); }
  100% { transform: translateY(100%) scaleY(-1); }
}

/* ============================================================
   EFEITOS DENTRO DO CONVITE
   ============================================================ */

.progresso-leitura {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 95;
  background: linear-gradient(90deg, rgba(203, 168, 106, .1), var(--gold));
  box-shadow: 0 0 12px rgba(203, 168, 106, .7);
  pointer-events: none;
  transition: width .12s linear;
}

.titulo-secao { position: relative; }
.titulo-secao::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width .9s cubic-bezier(.2, .8, .2, 1);
}
.revelar.visivel .titulo-secao::after { width: 120px; }

.info-lista { perspective: 900px; }
.info-item {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .6s ease, transform .6s ease, background .3s ease;
  transition-delay: calc(var(--i, 0) * .09s);
}
.revelar.visivel .info-item { opacity: 1; transform: none; }
.info-item:hover {
  background: linear-gradient(90deg, rgba(203, 168, 106, .07), transparent);
}
.info-item:hover .val { color: var(--gold); }
.info-item .val { transition: color .3s ease; }

.poster-moldura {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out;
  will-change: transform;
}
.poster-moldura::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .18), transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
  mix-blend-mode: soft-light;
}
.poster-moldura:hover::after { opacity: 1; }

/* mini confete nos enfeites */
.deco::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(203, 168, 106, .45);
  opacity: 0;
  transform: scale(.6);
  pointer-events: none;
}
.deco.ativo::after { animation: onda-deco .9s ease-out; }
@keyframes onda-deco {
  0% { opacity: .9; transform: scale(.6); }
  100% { opacity: 0; transform: scale(1.9); }
}

/* fumaça das velas */
.fumaca {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(230, 226, 220, .55);
  filter: blur(2px);
  pointer-events: none;
  animation: fumaca 1.6s ease-out forwards;
}
@keyframes fumaca {
  0% { opacity: 0; transform: translateY(0) scale(.5); }
  20% { opacity: .7; }
  100% { opacity: 0; transform: translateY(-46px) scale(1.9); }
}

/* brilho que segue o toque/ponteiro */
.brilho-toque {
  position: fixed;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 92;
  background: radial-gradient(circle, rgba(255, 246, 223, .95), rgba(203, 168, 106, .5) 45%, transparent 70%);
  animation: brilho-toque .75s ease-out forwards;
}
@keyframes brilho-toque {
  0% { opacity: 1; transform: scale(.6); }
  100% { opacity: 0; transform: scale(2.6); }
}

/* brilho varrendo os títulos e o botão */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: none;
}
.btn:hover::after { animation: varrer .8s ease; }
@keyframes varrer {
  0% { left: -60%; }
  100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .poster-moldura { transform: none !important; }
  .progresso-leitura { transition: none; }
}

/* abertura funciona mesmo com "reduzir movimento" ativo */
@media (prefers-reduced-motion: reduce) {
  #cenaAbertura.ativa .palco { animation: palco-sai .5s ease 1.1s forwards !important; }
  #cenaAbertura.ativa .feixe-luz { animation: feixe-cresce .6s ease .1s forwards !important; }
  #cenaAbertura.ativa .cortina-esq { animation: cortina-esq .6s ease .1s forwards !important; }
  #cenaAbertura.ativa .cortina-dir { animation: cortina-dir .6s ease .1s forwards !important; }
  #cenaAbertura.ativa .cena-estrela { animation: piscar-suave 2s ease-in-out infinite !important; }
  #cenaAbertura.ativa .titulo-cena { animation: titulo-base 1.6s ease forwards !important; }
  #cenaAbertura.ativa .titulo-cena > * { animation: titulo-sobe .4s ease .3s forwards !important; }
  #cenaAbertura.ativa .titulo-nome { animation: titulo-sobe .4s ease .35s forwards !important; }
  #cenaAbertura.ativa .selo-abertura {
    animation: selo-entra .5s ease .05s forwards, selo-sai .45s ease .55s forwards !important;
  }
  #cenaAbertura.ativa .anel-selo {
    animation: anel-selo .7s ease-out .05s forwards, anel-sai .45s ease .55s forwards !important;
  }
  #cenaAbertura.ativa .flash-abertura { animation: flash-abrir .8s ease 1s forwards !important; }
  #cenaAbertura.ativa .faixa-topo { animation: faixa-entra-topo .4s ease forwards !important; }
  #cenaAbertura.ativa .faixa-base { animation: faixa-entra-base .4s ease forwards !important; }
}

/* ============ RSVP + ADMIN BANCO ============ */
.opcao-rsvp {
  flex: 1;
  justify-content: center;
  padding: 12px 10px;
  opacity: .55;
  transition: opacity .25s ease, border-color .25s ease, color .25s ease, background .25s ease;
}
.opcao-rsvp.ativo {
  opacity: 1;
  color: #14100a;
  background: var(--gold);
  border-color: var(--gold);
}
.opcao-rsvp#rsvpNao.ativo {
  color: var(--ink);
  background: transparent;
  border-color: rgba(214, 140, 120, .8);
}
.painel input[readonly] { opacity: .75; cursor: not-allowed; }

#rsvpStatus { margin-top: 14px; font-size: 13px; }
#rsvpStatus[data-tipo="sucesso"] { color: #a8d8a0; }
#rsvpStatus[data-tipo="erro"] { color: #e79a8c; }

.db-resumo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
.db-pill {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
}
.db-pill.db-ok { color: #a8d8a0; border-color: rgba(168, 216, 160, .4); }
.db-pill.db-no { color: #e79a8c; border-color: rgba(231, 154, 140, .4); }
.db-erro { color: #e79a8c; font-size: 12px; }

.db-lista { margin-top: 12px; }
.db-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.db-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.db-item-info strong { font-weight: 400; font-size: 14px; }
.db-token {
  font-family: monospace;
  font-size: 10.5px;
  color: var(--muted);
  word-break: break-word;
}
.db-item-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
