@font-face { font-family: 'Cormorant Garamond'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 300; font-style: italic; font-display: swap; src: url('/fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 300; font-display: swap; src: url('/fonts/montserrat-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url('/fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url('/fonts/montserrat-latin-500-normal.woff2') format('woff2'); }

:root {
  --preto: #050706;
  --preto-2: #0b100e;
  --ouro: #d9b562;
  --ouro-claro: #f8e7ae;
  --ouro-fundo: #94702a;
  --verde: #14b67a;
  --texto: #ece7da;
  --texto-2: #a9a595;
  --fio: rgba(217, 181, 98, .28);
  --serifa: 'Cormorant Garamond', 'Times New Roman', serif;
  --sem: 'Montserrat', system-ui, sans-serif;
  --foil: linear-gradient(105deg, #94702a 0%, #f8e7ae 26%, #c9a24b 44%, #fff6d6 58%, #b38d3c 76%, #f1dc9c 100%);
  --mx: 50%;
  --my: 30%;
  --rx: 0deg;
  --ry: 0deg;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { background: var(--preto); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--preto);
  color: var(--texto);
  font-family: var(--sem);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body[data-fase='selo'], body[data-fase='abrindo'], body[data-fase='filme'] { overflow: hidden; }
.defs { position: absolute; }

.foil {
  background: var(--foil);
  background-size: 220% 100%;
  background-position: var(--mx) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rotulo {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ouro);
}

/* Fundo: fachos de projetor e poeira de ouro */
#poeira { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
#fachos {
  position: fixed;
  inset: -20%;
  z-index: 0;
  opacity: .55;
  background:
    radial-gradient(ellipse 60% 40% at 50% 46%, rgba(20, 182, 122, .16), transparent 70%),
    conic-gradient(from 168deg at 50% -8%, transparent 0deg, rgba(217, 181, 98, .10) 5deg, transparent 11deg, rgba(20, 182, 122, .09) 16deg, transparent 22deg);
  animation: fachos 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes fachos { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

/* Selo */
#selo {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.6rem;
  padding: 24px;
  text-align: center;
  animation: surge 1.6s ease both;
  transition: opacity .35s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
body[data-fase='abrindo'] #selo { opacity: 0; }
@keyframes surge { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.selo-topo { font-size: .68rem; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--ouro); padding-left: .42em; }
.selo-dica { font-family: var(--serifa); font-style: italic; font-size: 1.35rem; color: var(--texto); animation: respira 2.8s ease-in-out infinite; }
.selo-dica.insiste { animation: none; color: var(--ouro-claro); }
@keyframes respira { 50% { opacity: .5; } }
#abrir {
  position: relative;
  width: min(58vw, 240px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 181, 98, .10), transparent 66%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  transform: scale(calc(1 - var(--aperto, 0) * .08));
}
#abrir:focus-visible { outline: 1px solid var(--ouro-claro); outline-offset: 10px; }
.anel { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.anel circle { fill: none; stroke-width: 1.4; }
.anel-fundo { stroke: var(--fio); }
.anel-luz { stroke-width: 2.4 !important; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 5px rgba(248, 231, 174, .8)); }
.marca-selo {
  position: absolute;
  left: 53%;
  top: 50%;
  width: 40%;
  height: 46%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 calc(10px + var(--aperto, 0) * 34px) rgba(248, 231, 174, calc(.25 + var(--aperto, 0) * .7)));
  animation: pulsa 2.8s ease-in-out infinite;
}
@keyframes pulsa { 50% { opacity: .78; } }

/* Atravessando o play */
#iris { position: fixed; inset: 0; z-index: 6; pointer-events: none; display: grid; place-items: center; overflow: hidden; visibility: hidden; }
#iris.ativo { visibility: visible; }
.iris-triangulo {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #fff6d6, #d9b562 55%, #14b67a);
  clip-path: polygon(14% 0, 100% 50%, 14% 100%);
  transform: scale(.4);
}
#iris.ativo .iris-triangulo { animation: atravessa 1.9s linear forwards; }
@keyframes atravessa { 0% { transform: scale(.4); animation-timing-function: cubic-bezier(.75, 0, .9, .35); } 50% { transform: scale(46); opacity: 1; } 56%, 100% { transform: scale(46); opacity: 0; } }
.iris-luz { position: absolute; inset: 0; background: #fff6d6; opacity: 0; }
#iris.ativo .iris-luz { animation: clarao 1.9s ease forwards; }
@keyframes clarao { 0%, 42% { opacity: 0; } 52% { opacity: 1; } 100% { opacity: 0; } }

/* Filme */
#filme { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.barra { position: absolute; left: 0; right: 0; height: 11dvh; background: #000; transition: transform 1.1s cubic-bezier(.7, 0, .2, 1); }
.barra-topo { top: 0; transform: translateY(-100%); box-shadow: 0 1px 0 var(--fio); }
.barra-base { bottom: 0; transform: translateY(100%); box-shadow: 0 -1px 0 var(--fio); }
#filme.com-barras .barra { transform: none; }
.legenda { position: absolute; left: 24px; right: 24px; text-align: center; opacity: 0; }
.legenda-centro { top: 50%; transform: translateY(-50%); }
.legenda-topo { top: 30dvh; }
.legenda-base { bottom: 25dvh; }
.legenda.entra { animation: legendaEntra 1.5s cubic-bezier(.2, .7, .2, 1) forwards; }
.legenda.sai { animation: legendaSai .7s ease forwards; }
@keyframes legendaEntra { from { opacity: 0; filter: blur(8px); letter-spacing: .02em; } to { opacity: 1; filter: blur(0); } }
@keyframes legendaSai { from { opacity: 1; } to { opacity: 0; filter: blur(6px); } }
.legenda-logo { width: min(54vw, 260px); height: auto; display: block; margin: 0 auto 1.1rem; }
.legenda-pequena { font-size: .72rem; font-weight: 400; letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--ouro); }
.legenda-grande { font-family: var(--serifa); font-weight: 300; font-size: clamp(2.1rem, 9vw, 4rem); line-height: 1.12; color: var(--texto); }
.legenda-grande em { font-style: italic; color: var(--ouro-claro); }
.legenda-titulo { font-family: var(--serifa); font-style: italic; font-weight: 300; font-size: clamp(1.35rem, 5.4vw, 2.2rem); line-height: 1.2; color: var(--ouro-claro); }
.legenda-data { margin-top: .5rem; font-size: .72rem; letter-spacing: .14em; color: var(--texto-2); }

/* Convite */
#convite { position: relative; z-index: 2; padding: max(28px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }
.previa { text-align: center; font-size: .68rem; color: var(--ouro-claro); border: 1px solid var(--fio); border-radius: 99px; padding: 5px 12px; width: fit-content; max-width: 100%; margin: 0 auto 18px; }
.grade { display: grid; gap: 34px; justify-items: center; }
.coluna-cartao, .coluna-info { width: 100%; max-width: 420px; }
.cartao-nota { margin-top: 16px; text-align: center; font-family: var(--serifa); font-style: italic; font-size: 1rem; color: var(--texto-2); }

.cartao-cena { perspective: 1100px; touch-action: pan-y; }
#convite.entrando .cartao-cena { animation: cartaoSobe 1.5s cubic-bezier(.16, .8, .2, 1) both; }
@keyframes cartaoSobe { from { opacity: 0; transform: translateY(70px) rotateX(46deg) scale(.9); } to { opacity: 1; transform: none; } }
#convite.entrando .coluna-info, #convite.entrando .cartao-nota, #convite.entrando .previa { animation: surgeAbaixo 1.1s .7s ease both; }
@keyframes surgeAbaixo { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cartao {
  position: relative;
  aspect-ratio: 5 / 7.6;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 50% 0%, #17231d 0%, #0a0f0c 55%, #060807 100%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 70px -30px rgba(20, 182, 122, .55), inset 0 0 0 1px rgba(248, 231, 174, .16);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transform-style: preserve-3d;
  will-change: transform;
}
.guilloche { position: absolute; left: 50%; top: 50%; width: 138%; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .3; -webkit-mask: radial-gradient(circle, transparent 34%, #000 62%); mask: radial-gradient(circle, transparent 34%, #000 62%); }
.guilloche svg { width: 100%; height: 100%; display: block; animation: gira 180s linear infinite; }
.guilloche path { fill: none; stroke: #d9b562; stroke-width: .1; }
@keyframes gira { to { transform: rotate(360deg); } }
.cartao-brilho {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 244, 205, .13) 0%, rgba(217, 181, 98, .05) 28%, transparent 58%),
    linear-gradient(115deg, transparent 30%, rgba(20, 182, 122, .07) 46%, rgba(248, 231, 174, .09) 52%, transparent 66%);
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, var(--mx) 0;
}
.cartao-moldura {
  position: absolute;
  inset: 11px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--foil) border-box;
  background-size: 220% 100%;
  background-position: var(--mx) 0;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.cartao-conteudo { position: absolute; inset: 0; padding: 32px 30px 28px; display: flex; flex-direction: column; background: linear-gradient(to top, rgba(6, 8, 7, .92) 0%, rgba(6, 8, 7, .72) 24%, transparent 40%), linear-gradient(to bottom, rgba(6, 8, 7, .7) 0%, transparent 18%); }
.cartao-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartao-logo { width: 104px; height: auto; display: block; }
.cartao-numero { font-family: var(--serifa); font-size: 1.05rem; color: var(--ouro-claro); letter-spacing: .06em; white-space: nowrap; }
.cartao-meio { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: 0; padding: 12px 0; }
.cartao-nome { font-family: var(--serifa); font-weight: 500; font-size: clamp(2.5rem, 12vw, 3.25rem); line-height: 1.05; margin-top: 14px; overflow-wrap: anywhere; padding-bottom: .06em; }
.cartao-nome.longo { font-size: clamp(2rem, 9.4vw, 2.6rem); }
.cartao-nome.muito-longo { font-size: clamp(1.65rem, 7.6vw, 2.1rem); }
.cartao-empresa { margin-top: 6px; font-size: .78rem; color: var(--texto-2); }
.fio { display: block; width: 54px; height: 1px; margin: 20px auto 16px; background: var(--foil); }
.cartao-titulo { font-family: var(--serifa); font-style: italic; font-size: 1.32rem; line-height: 1.2; color: var(--texto); }
.cartao-dados { display: grid; gap: 11px; padding-top: 16px; border-top: 1px solid var(--fio); }
.cartao-dados div { display: grid; grid-template-columns: 74px 1fr; align-items: baseline; gap: 8px; }
.cartao-dados dt { font-size: .58rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ouro); }
.cartao-dados dd { margin: 0; font-family: var(--serifa); font-size: 1.1rem; line-height: 1.18; color: var(--texto); }
.cartao-dados dd.breve { font-style: italic; color: var(--texto-2); }
.carimbo {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 92px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 50%;
  border: 1px solid var(--ouro);
  box-shadow: inset 0 0 0 3px #0a0f0c, inset 0 0 0 4px var(--fio), 0 8px 26px rgba(0, 0, 0, .7);
  background: radial-gradient(circle at 35% 30%, #1f2a22, #0b100d);
  transform: rotate(-12deg);
  text-align: center;
  font-size: .42rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ouro-claro);
}
.carimbo svg { width: 17px; height: 20px; }
.cartao.confirmado .cartao-numero { visibility: hidden; }
.carimbo.batendo { animation: carimba .55s cubic-bezier(.3, 1.4, .6, 1) both; }
@keyframes carimba { from { opacity: 0; transform: rotate(8deg) scale(2.6); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }

/* Blocos de informacao */
.coluna-info { display: flex; flex-direction: column; gap: 28px; }
.bloco { padding-top: 16px; border-top: 1px solid var(--fio); }
.bloco-destaque { margin-top: 8px; font-family: var(--serifa); font-size: 1.6rem; line-height: 1.18; color: var(--texto); }
.bloco-texto { margin-top: 8px; font-size: .92rem; color: var(--texto-2); white-space: pre-line; }
.contagem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.contagem div { text-align: center; }
.contagem b { display: block; font-family: var(--serifa); font-weight: 300; font-size: clamp(2.2rem, 11vw, 2.9rem); line-height: 1.05; color: var(--ouro-claro); font-variant-numeric: lining-nums tabular-nums; }
.contagem span { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--texto-2); }

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--sem);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.botao:active { transform: scale(.98); }
.botao:focus-visible, .passo button:focus-visible, .campo input:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 2px; }
.botao:disabled { opacity: .55; cursor: default; }
.botao-ouro { background: var(--foil); background-size: 220% 100%; background-position: var(--mx) 0; color: #16110a; font-weight: 600; }
.botao-linha { background: rgba(255, 255, 255, .02); border-color: var(--fio); color: var(--ouro-claro); }
@media (hover: hover) { .botao-linha:hover { border-color: var(--ouro); background: rgba(217, 181, 98, .07); } }
.acoes { display: flex; flex-direction: column; margin-top: -14px; }
.resposta-titulo { margin-top: 10px; font-family: var(--serifa); font-size: 1.55rem; line-height: 1.2; color: var(--texto); }
.resposta-detalhe { margin-top: 4px; font-size: .86rem; color: var(--texto-2); overflow-wrap: anywhere; }
.erro { margin-top: 10px; color: #f1a58f; font-size: .84rem; }
.passo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.passo-rotulo { font-size: .88rem; color: var(--texto); }
.passo-rotulo small { display: block; font-size: .72rem; color: var(--texto-2); }
.passo-controle { display: flex; align-items: center; gap: 12px; }
.passo button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fio); background: transparent; color: var(--ouro-claro); font-size: 1.25rem; cursor: pointer; }
.passo button:disabled { opacity: .3; cursor: default; }
.passo output { min-width: 22px; text-align: center; font-family: var(--serifa); font-size: 1.6rem; color: var(--ouro-claro); font-variant-numeric: lining-nums; }
.campo { display: block; margin-top: 14px; font-size: .78rem; color: var(--texto-2); }
.campo input { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--fio); background: rgba(255, 255, 255, .03); color: var(--texto); font: 400 16px var(--sem); }
.link-rever { align-self: center; padding: 10px; background: none; border: 0; color: var(--texto-2); font: italic 300 1rem var(--serifa); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Aviso */
#aviso { position: fixed; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; animation: surge 1.4s ease both; }
.aviso-marca { width: 66px; height: 76px; margin-bottom: 14px; filter: drop-shadow(0 0 14px rgba(248, 231, 174, .35)); }
#aviso h1 { font-family: var(--serifa); font-weight: 300; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.1; }
#aviso p { max-width: 340px; color: var(--texto-2); font-size: .94rem; }
#aviso .botao { max-width: 240px; }

/* Som e pular */
.controle {
  position: fixed;
  z-index: 7;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--fio);
  background: rgba(0, 0, 0, .55);
  color: var(--texto-2);
  font: 400 .66rem var(--sem);
  letter-spacing: .12em;
  cursor: pointer;
}
.controle-pular { left: auto; right: 16px; }

@media (min-width: 960px) {
  #convite { padding-top: 48px; padding-bottom: 64px; }
  .grade { grid-template-columns: 440px minmax(0, 460px); justify-content: center; align-items: start; gap: 72px; }
  .coluna-cartao { max-width: 440px; position: sticky; top: 40px; }
  .coluna-info { max-width: 460px; }
  .barra { height: 13dvh; }
}

@media (prefers-reduced-motion: reduce) {
  #fachos, .guilloche svg, .selo-dica, .marca-selo { animation: none; }
  #convite.entrando .cartao-cena, #convite.entrando .coluna-info, #convite.entrando .cartao-nota, #convite.entrando .previa { animation: surgeAbaixo .4s ease both; }
  .carimbo.batendo { animation: none; }
}
