/* Madame do Luar · site de consultas. Mobile primeiro: tudo é desenhado para 360–430 px de largura. */
:root {
  --azul: #0e112a;
  --azul-2: #17204a;
  --ouro: #f3d79b;
  --ouro-2: #c6a15b;
  --rosa: #fe2c55;
  --texto: #f6f1e7;
  --suave: rgba(246, 241, 231, .74);
  --linha: rgba(243, 215, 155, .3);
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --topo: env(safe-area-inset-top, 0px);
  --base: env(safe-area-inset-bottom, 0px);
  --contorno: 0 0 1px #05060f, 0 2px 0 rgba(5, 6, 15, .9), 2px 0 0 rgba(5, 6, 15, .9), -2px 0 0 rgba(5, 6, 15, .9),
    0 -2px 0 rgba(5, 6, 15, .9), 2px 2px 0 rgba(5, 6, 15, .9), -2px 2px 0 rgba(5, 6, 15, .9),
    2px -2px 0 rgba(5, 6, 15, .9), -2px -2px 0 rgba(5, 6, 15, .9), 0 6px 18px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { background: var(--azul); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--texto); font-family: var(--sans); background: var(--azul);
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
body.imersivo { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
img { display: block; max-width: 100%; }
a { color: var(--ouro); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }

/* ===================================================================== PALCO */
#palco { position: relative; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; isolation: isolate; background: var(--azul); }
body.imersivo #palco { position: fixed; inset: 0; height: auto; z-index: 20; }
.fundo, .fundo > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.fundo { background: var(--azul) url(/midia/poster-mini.webp) center / cover; }
.fundo > * { object-fit: cover; object-position: 50% 30%; }
.clipe { opacity: 0; transition: opacity .25s linear; }
.clipe.on { opacity: 1; }
.vinheta {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: background .6s;
  background:
    radial-gradient(120% 70% at 50% 35%, transparent 55%, rgba(8, 10, 28, .55) 100%),
    linear-gradient(to bottom, rgba(8, 10, 28, .6) 0, transparent 17%, transparent 42%, rgba(8, 10, 28, .72) 70%, rgba(10, 12, 32, .97) 100%);
}
body[data-tela="t-pergunta"] .vinheta, body[data-tela="t-pix"] .vinheta, body[data-tela="t-ajuda"] .vinheta {
  background: linear-gradient(to bottom, rgba(8, 10, 28, .55), rgba(8, 10, 28, .82));
}
#particulas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 12; pointer-events: none; }

/* ===================================================================== TOPO */
.topo {
  position: absolute; z-index: 25; top: 0; left: 0; right: 0;
  padding: calc(var(--topo) + 10px) 12px 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: start;
}
.marca { grid-column: 1 / -1; grid-row: 1; text-align: center; pointer-events: none; }
.topo .icone { position: relative; z-index: 1; }
.pilula-titulo {
  display: inline-block; padding: 7px 18px 6px; border: 1.5px solid rgba(198, 161, 91, .9); border-radius: 999px;
  background: rgba(14, 17, 42, .78); color: var(--ouro); font: 700 15px/1 var(--serif); letter-spacing: .14em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.aviso-ia { margin: 6px 0 0; font-size: 10.5px; font-weight: 600; color: rgba(235, 228, 214, .88); text-shadow: 0 1px 3px #000; white-space: nowrap; }
.icone {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: rgba(14, 17, 42, .55); border: 1px solid rgba(243, 215, 155, .35); backdrop-filter: blur(6px);
}
.icone svg { width: 22px; height: 22px; fill: none; stroke: var(--ouro); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#b-fechar { grid-column: 1; grid-row: 1; }
#b-som { grid-column: 3; grid-row: 1; }
#b-som .sem-som, #b-som[aria-pressed="false"] .com-som { display: none; }
#b-som[aria-pressed="false"] .sem-som { display: block; }
#faixa-teste {
  position: absolute; z-index: 26; top: calc(var(--topo) + 78px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--rosa); color: #fff; font: 800 9.5px var(--sans); letter-spacing: .08em; padding: 3px 9px; border-radius: 999px;
}

/* ===================================================================== TELAS */
.tela {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column;
  padding: calc(var(--topo) + 96px) 18px calc(var(--base) + 18px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease, visibility 0s linear .45s;
}
.tela.ativa { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }

/* --------------------------------------------------------------- início */
#t-inicio { justify-content: flex-end; }
.bloco-gancho { margin-bottom: 22px; }
.gancho {
  margin: 0; text-align: center; color: #fff; font: 900 clamp(31px, 8.8vw, 46px)/1.1 var(--sans); letter-spacing: -.01em;
  text-shadow: var(--contorno); text-wrap: balance;
}
.gancho .p { display: inline-block; opacity: 0; transform: translateY(16px) scale(.86); animation: surgir .55s cubic-bezier(.2, 1.4, .4, 1) forwards; animation-delay: calc(var(--i) * 85ms + .2s); }
.gancho .p.ouro { color: var(--ouro); }
@keyframes surgir { to { opacity: 1; transform: none; } }
.sub { margin: 12px auto 0; max-width: 320px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--texto); text-shadow: 0 1px 6px #000; }
.acoes { display: grid; gap: 12px; }
.rolar { display: flex; justify-content: center; align-items: center; gap: 4px; color: var(--suave); font-size: 13px; font-weight: 600; text-decoration: none; padding: 4px; }
.rolar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; animation: quicar 1.8s infinite; }
@keyframes quicar { 50% { transform: translateY(4px); } }
#retomar button { width: 100%; }

/* --------------------------------------------------------------- botões */
.cta {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 100%; min-height: 60px; padding: 10px 20px; border: 0; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, #ff5a80 0%, var(--rosa) 55%, #df1c47 100%); color: #fff;
  font: 800 18px/1.15 var(--sans); letter-spacing: .01em;
  box-shadow: 0 10px 28px rgba(254, 44, 85, .42), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: pulso 2.6s ease-in-out infinite;
}
.cta small { font-size: 12.5px; font-weight: 700; opacity: .92; letter-spacing: .02em; }
.cta.grande { min-height: 68px; font-size: 20px; }
.cta:active { transform: scale(.97); }
.cta[disabled] { opacity: .55; animation: none; }
@keyframes pulso {
  0%, 100% { box-shadow: 0 10px 28px rgba(254, 44, 85, .42), 0 0 0 0 rgba(254, 44, 85, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
  50% { box-shadow: 0 10px 28px rgba(254, 44, 85, .42), 0 0 0 10px rgba(254, 44, 85, 0), inset 0 1px 0 rgba(255, 255, 255, .35); }
}
.secundario {
  width: 100%; min-height: 52px; padding: 10px 18px; border-radius: 999px; background: rgba(14, 17, 42, .58);
  border: 1.5px solid rgba(243, 215, 155, .72); color: var(--ouro); font-weight: 700; font-size: 15px; backdrop-filter: blur(6px);
}
.secundario:active { background: rgba(243, 215, 155, .12); }
.link { background: none; border: 0; color: var(--suave); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 10px; }
.centro { display: block; margin-left: auto; margin-right: auto; text-align: center; }

/* --------------------------------------------------------------- folhas (pergunta, pix, ajuda) */
.folha-tela { justify-content: flex-end; padding: calc(var(--topo) + 84px) 0 0; }
.folha {
  max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(23, 32, 74, .95), rgba(12, 15, 38, .985) 40%);
  border-top: 1px solid rgba(243, 215, 155, .4); border-radius: 26px 26px 0 0;
  padding: 10px 20px calc(var(--base) + 20px); box-shadow: 0 -24px 60px rgba(0, 0, 0, .5);
  transform: translateY(105%); transition: transform .55s cubic-bezier(.2, .85, .25, 1);
}
.tela.ativa .folha { transform: none; }
.pegador { width: 42px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); margin: 0 auto 14px; }
.folha h2 { margin: 2px 0 14px; text-align: center; color: var(--ouro); font: 700 21px/1.25 var(--serif); letter-spacing: .03em; }
.temas { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 12px; padding: 0 20px 2px; scrollbar-width: none; }
.temas::-webkit-scrollbar { display: none; }
.tema {
  flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linha);
  background: rgba(255, 255, 255, .05); font-weight: 600; font-size: 14px; color: var(--texto);
}
.tema.ativo { background: var(--ouro); border-color: var(--ouro); color: var(--azul); }
.campo { display: block; position: relative; margin: 0 0 10px; }
.campo.curto { margin-top: 4px; }
.rotulo { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--suave); }
.rotulo em { font-style: normal; opacity: .7; }
textarea, input {
  width: 100%; font: 500 16px/1.4 var(--sans); color: var(--texto); background: rgba(255, 255, 255, .06);
  border: 1.5px solid var(--linha); border-radius: 16px; padding: 14px; outline: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 104px; resize: none; padding-bottom: 28px; }
textarea:focus, input:focus { border-color: var(--ouro); box-shadow: 0 0 0 4px rgba(243, 215, 155, .13); }
::placeholder { color: rgba(246, 241, 231, .42); }
.contador { position: absolute; right: 12px; bottom: 9px; font-size: 12px; color: var(--suave); }
.dica { margin: -2px 0 12px; font-size: 13px; color: var(--suave); line-height: 1.4; }
.erro { margin: 0 0 12px; color: #ff9fb2; font-weight: 700; font-size: 14px; line-height: 1.4; }
.erro:empty { display: none; }
.nota { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--suave); text-align: center; }

/* --------------------------------------------------------------- escolha das cartas */
#t-cartas { justify-content: flex-end; padding-left: 0; padding-right: 0; }
.vagas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(78%, 300px); margin: 0 auto 34px; }
.vaga {
  position: relative; aspect-ratio: 3 / 5; border: 1.5px dashed rgba(243, 215, 155, .5); border-radius: 9px;
  background: rgba(14, 17, 42, .38); transition: border-color .3s, box-shadow .4s;
}
.vaga span {
  position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); white-space: nowrap;
  font: 700 10.5px var(--serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ouro); text-shadow: 0 1px 4px #000;
}
.vaga.cheia { border-style: solid; border-color: var(--ouro); box-shadow: 0 0 22px rgba(243, 215, 155, .5); }
.vaga.cheia::after {
  content: ""; position: absolute; inset: 0; border-radius: 8px; background: url(/cartas/verso.webp) center / cover;
  animation: assentar .4s ease-out;
}
@keyframes assentar { from { transform: scale(1.12); filter: brightness(1.8); } }
.instrucao {
  margin: 0 18px 8px; min-height: 2.6em; text-align: center; font: 800 18px/1.3 var(--sans); color: #fff; text-shadow: var(--contorno);
}
.leque { position: relative; height: clamp(220px, 60vw, 270px); touch-action: none; transition: opacity .5s, transform .6s; }
.leque.recolhido { opacity: 0; transform: translateY(50px); pointer-events: none; }
.cl {
  position: absolute; left: 50%; bottom: 52px; width: var(--w); aspect-ratio: 3 / 5; margin-left: calc(var(--w) / -2);
  border-radius: 7px; background: url(/cartas/verso.webp) center / cover; box-shadow: -2px 0 8px rgba(0, 0, 0, .45);
  transform-origin: 50% var(--raio); transform: rotate(var(--a, 0deg)) translateY(var(--y, 0px));
  transition: transform .45s cubic-bezier(.2, .9, .3, 1), opacity .3s, filter .2s;
}
.cl.mira { --y: -20px; filter: brightness(1.25) drop-shadow(0 0 10px rgba(243, 215, 155, .9)); z-index: 30; }
.cl.usada { opacity: 0; pointer-events: none; }
.leque.embaralhando .cl:nth-child(odd) { animation: mistura-e .5s ease-in-out 3; }
.leque.embaralhando .cl:nth-child(even) { animation: mistura-d .5s ease-in-out 3; }
@keyframes mistura-e { 50% { transform: translateX(-46px) rotate(-9deg); } }
@keyframes mistura-d { 50% { transform: translateX(46px) rotate(9deg); } }
.voando { position: absolute; z-index: 40; border-radius: 7px; background: url(/cartas/verso.webp) center / cover; pointer-events: none;
  transition: transform .6s cubic-bezier(.3, .9, .3, 1); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.acoes-cartas { padding: 0 18px; animation: subir .5s ease-out; }
@keyframes subir { from { opacity: 0; transform: translateY(20px); } }

/* --------------------------------------------------------------- pix */
.mini-cartas { display: flex; justify-content: center; gap: 8px; margin: 0 0 10px; }
.mini-cartas i {
  width: 38px; aspect-ratio: 3 / 5; border-radius: 4px; background: url(/cartas/verso.webp) center / cover;
  box-shadow: 0 0 14px rgba(243, 215, 155, .55); animation: respirar 2.4s ease-in-out infinite;
}
.mini-cartas i:nth-child(2) { animation-delay: .3s; } .mini-cartas i:nth-child(3) { animation-delay: .6s; }
@keyframes respirar { 50% { box-shadow: 0 0 26px rgba(243, 215, 155, .9); transform: translateY(-3px); } }
.valor { margin: 0; text-align: center; color: #fff; font: 900 40px/1 var(--sans); }
.valor b { font-weight: 900; }
.sub-pix { margin: 6px 0 16px; text-align: center; color: var(--suave); font-size: 14px; }
.passos-pix { margin: 16px 0 8px; padding: 0 0 0 22px; font-size: 14.5px; line-height: 1.5; }
.passos-pix li { margin: 0 0 6px; }
.passos-pix li::marker { color: var(--ouro); font-weight: 800; }
.qr { margin: 8px 0; font-size: 13.5px; color: var(--suave); }
.qr summary { cursor: pointer; text-align: center; padding: 6px; }
.qr img { width: 200px; margin: 10px auto; border-radius: 12px; background: #fff; padding: 8px; }
.aguardando { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-weight: 700; font-size: 14px; color: var(--ouro); }
.pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--ouro); animation: piscar 1.2s infinite; }
@keyframes piscar { 50% { opacity: .2; } }
.aviso-teste { text-align: center; color: #ff9fb2; font-weight: 700; font-size: 14px; margin: 0 0 12px; }

/* --------------------------------------------------------------- espera */
#t-espera { justify-content: flex-end; }
.mesa-espera { display: flex; justify-content: center; gap: 14px; margin: 0 0 26px; }
.mesa-espera i {
  width: 24vw; max-width: 104px; aspect-ratio: 3 / 5; border-radius: 8px; background: url(/cartas/verso.webp) center / cover;
  animation: respirar 2.2s ease-in-out infinite; box-shadow: 0 0 18px rgba(243, 215, 155, .5);
}
.mesa-espera i:nth-child(2) { animation-delay: .35s; } .mesa-espera i:nth-child(3) { animation-delay: .7s; }
#acoes-pronto { animation: subir .5s ease-out; }

/* --------------------------------------------------------------- revelação */
.mesa { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.carta {
  position: absolute; left: 0; top: 0; width: var(--W, 200px);
  transform: translate(var(--x, 50vw), var(--y, 50vh)) translate(-50%, -50%) scale(var(--s, 1));
  transition: transform .75s cubic-bezier(.2, .85, .25, 1), opacity .5s; will-change: transform;
}
.carta.entrando { opacity: 0; }
.carta .halo {
  position: absolute; inset: -38%; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(closest-side, rgba(255, 226, 160, .55), rgba(243, 215, 155, .18) 55%, transparent);
}
.carta.destaque .halo { opacity: 1; animation: halo 2.8s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.08); opacity: .75; } }
.miolo { position: relative; aspect-ratio: 3 / 5; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.25, .45, 1); }
.carta.virada .miolo { transform: rotateY(180deg); }
.verso, .frente {
  position: absolute; inset: 0; border-radius: 7% / 4.2%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: center / cover no-repeat; box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.verso { background-image: url(/cartas/verso.webp); }
.frente { transform: rotateY(180deg); border: 4px solid #fbf7ee; }
.carta.invertida .frente { transform: rotateY(180deg) rotate(180deg); }
.clarao {
  position: absolute; inset: -30%; pointer-events: none; opacity: 0; border-radius: 50%;
  background: radial-gradient(closest-side, #fff, rgba(255, 236, 190, .8) 30%, transparent 70%); mix-blend-mode: screen;
}
.carta.virando .clarao { animation: clarao .9s ease-out; }
@keyframes clarao { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
.fita {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: 94%; text-align: center;
  background: rgba(14, 17, 42, .97); border: 1.5px solid var(--ouro-2); border-radius: 999px; padding: 6px 10px 7px;
  opacity: 0; transition: opacity .4s .5s;
}
.fita b { display: block; font: 700 13px/1.15 var(--serif); letter-spacing: .06em; color: var(--ouro); text-transform: uppercase; }
.fita span { display: block; font-size: 11.5px; font-weight: 700; color: #fff; }
.carta.virada.grande .fita { opacity: 1; }
.controles {
  position: absolute; z-index: 18; left: 12px; right: 12px; top: calc(var(--topo) + 62px);
  display: flex; justify-content: space-between; align-items: center; flex-direction: row-reverse;
}
.controles .link { font-size: 13px; text-shadow: 0 1px 4px #000; }
#b-pausa .i-play, #b-pausa.pausado .i-pausa { display: none; }
#b-pausa.pausado .i-play { display: block; }
#b-pausa .i-play { fill: var(--ouro); }

/* --------------------------------------------------------------- legenda karaokê */
.legenda {
  position: absolute; z-index: 16; left: 14px; right: 14px; top: 74%; text-align: center; pointer-events: none;
  color: #fff; font: 900 clamp(23px, 6.6vw, 31px)/1.18 var(--sans); text-shadow: var(--contorno);
  opacity: 0; transition: opacity .25s;
}
.legenda.on { opacity: 1; }
body[data-tela="t-pergunta"] .legenda, body[data-tela="t-pix"] .legenda, body[data-tela="t-ajuda"] .legenda,
body[data-tela="t-cartas"] .legenda, body[data-tela="resultado"] .legenda, body[data-tela="t-inicio"] .legenda { display: none; }
body[data-tela="t-espera"] .legenda { top: 42%; }
.legenda .w { display: inline-block; margin: 0 .12em; transition: color .08s, transform .12s; }
.legenda .w.ativa { color: var(--ouro); transform: scale(1.06); }

/* --------------------------------------------------------------- carta do dia e painel CTA */
.painel-cta {
  background: rgba(14, 17, 42, .9); border: 1.5px solid rgba(198, 161, 91, .85); border-radius: 22px;
  padding: 18px 16px 12px; text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.painel-cta p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; color: var(--texto); }
.painel-cta .painel-titulo { margin: 0 0 8px; font: 700 15px/1.3 var(--serif); letter-spacing: .07em; color: var(--ouro); }
.painel-cta .painel-titulo b { color: #fff; }
#cta-dia { position: absolute; z-index: 19; left: 16px; right: 16px; bottom: calc(var(--base) + 16px); animation: subir .6s ease-out; }

/* --------------------------------------------------------------- ajuda */
.texto-ajuda { font-size: 16px; line-height: 1.55; margin: 0 0 18px; }

/* --------------------------------------------------------------- toast */
.toast {
  position: absolute; z-index: 50; left: 50%; bottom: calc(var(--base) + 96px); transform: translate(-50%, 20px);
  max-width: calc(100% - 40px); background: var(--ouro); color: var(--azul); font-weight: 800; font-size: 14px;
  padding: 12px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ===================================================================== RESULTADO */
#resultado {
  /* começa abaixo do cabeçalho: o X e o som continuam tocáveis e o texto some suave ao rolar */
  position: fixed; inset: 0; top: calc(var(--topo) + 64px); z-index: 30; overflow-y: auto; overscroll-behavior: contain;
  padding: 30px 18px calc(var(--base) + 30px);
  background: linear-gradient(180deg, rgba(10, 12, 32, .7), rgba(10, 12, 32, .94) 30%, rgba(10, 12, 32, .98));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30px); mask-image: linear-gradient(180deg, transparent 0, #000 30px);
  animation: aparecer .6s ease-out;
}
@keyframes aparecer { from { opacity: 0; } }
#resultado > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.res-rotulo { margin: 0; text-align: center; font: 700 12.5px var(--serif); letter-spacing: .22em; color: var(--ouro); }
.res-pergunta { margin: 8px 0 20px; text-align: center; font: 800 20px/1.3 var(--sans); color: #fff; }
.res-cartas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.res-carta { text-align: center; }
.res-carta .img { aspect-ratio: 3 / 5; border-radius: 8px; border: 3px solid #fbf7ee; background: center / cover; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.res-carta.invertida .img { transform: rotate(180deg); }
.res-carta b { display: block; margin-top: 8px; font: 700 10.5px var(--serif); letter-spacing: .08em; color: var(--ouro); text-transform: uppercase; }
.res-carta span { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.res-secao { margin: 0 0 20px; }
.res-secao h3 { margin: 0 0 6px; font: 700 13px/1.3 var(--serif); letter-spacing: .1em; color: var(--ouro); text-transform: uppercase; }
.res-secao p { margin: 0; font-size: 16px; line-height: 1.62; color: var(--texto); }
.res-secao.conselho { padding: 14px 16px; border-left: 3px solid var(--ouro); background: rgba(243, 215, 155, .07); border-radius: 0 14px 14px 0; }
.res-frase { margin: 26px 0; padding: 0 8px; text-align: center; font: 800 22px/1.32 var(--sans); color: #fff; }
.res-frase::before, .res-frase::after { content: "“"; color: var(--ouro); font-family: var(--serif); font-size: 1.4em; line-height: 0; vertical-align: -.3em; margin-right: .1em; }
.res-frase::after { content: "”"; margin: 0 0 0 .1em; }
.res-frase:empty { display: none; }
.res-acoes { display: grid; gap: 10px; margin: 0 0 24px; }
#resultado .painel-cta { margin-bottom: 18px; }
.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 14px; }
.redes:empty { display: none; }
.redes a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--linha); color: var(--texto); font-weight: 700; font-size: 14px; background: rgba(255, 255, 255, .05);
}

/* ===================================================================== CONTEÚDO */
#saiba {
  position: relative; padding: 36px 20px calc(var(--base) + 30px); max-width: 560px; margin: 0 auto;
  background: radial-gradient(80% 40% at 50% 0, rgba(23, 32, 74, .7), transparent);
}
.secao { margin: 0 0 52px; }
.sobretitulo { margin: 0; font: 700 12px var(--serif); letter-spacing: .22em; color: var(--ouro); }
.secao h2 { margin: 6px 0 18px; font: 900 26px/1.2 var(--sans); color: #fff; text-wrap: balance; }
.passos { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.passos li { display: flex; gap: 14px; align-items: flex-start; }
.passos li > b {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--ouro-2); color: var(--ouro); font: 700 17px var(--serif); background: rgba(243, 215, 155, .06);
}
.passos h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 800; }
.passos p { margin: 0; color: var(--suave); font-size: 15px; line-height: 1.5; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.posicao { text-align: center; padding: 14px 8px; border-radius: 16px; border: 1px solid var(--linha); background: rgba(255, 255, 255, .035); }
.posicao span { display: block; font: 700 22px var(--serif); color: var(--ouro); }
.posicao h3 { margin: 4px 0; font: 700 12.5px var(--serif); letter-spacing: .07em; color: var(--ouro); text-transform: uppercase; }
.posicao p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--suave); }
.beneficios { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.beneficios li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.beneficios li::before { content: "✦"; position: absolute; left: 0; color: var(--ouro); }
.exemplos { display: flex; flex-wrap: wrap; gap: 8px; }
.exemplos button {
  text-align: left; padding: 11px 14px; border-radius: 16px; border: 1px solid var(--linha); background: rgba(255, 255, 255, .05);
  font-size: 14.5px; font-weight: 600; line-height: 1.35;
}
.exemplos button:active { background: rgba(243, 215, 155, .14); }
.honestidade { padding: 20px 18px; border: 1px solid var(--linha); border-radius: 20px; background: rgba(23, 32, 74, .45); }
.honestidade p { font-size: 15px; line-height: 1.6; color: var(--suave); margin: 0 0 10px; }
.honestidade b { color: var(--texto); }
details { border-bottom: 1px solid rgba(255, 255, 255, .1); }
summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative; font-weight: 700; font-size: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--ouro); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; color: var(--suave); line-height: 1.55; font-size: 15px; }
.final { text-align: center; }
.gancho-final { font-size: 30px !important; text-shadow: var(--contorno); }
.final .cta { margin-bottom: 18px; }
footer { text-align: center; font-size: 13px; color: var(--suave); border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; }
footer p { margin: 0 0 10px; }
.marca-rodape { font: 700 16px var(--serif); color: var(--ouro); letter-spacing: .08em; }
.miudo { font-size: 11.5px; line-height: 1.5; opacity: .85; }

/* ===================================================================== TELAS GRANDES */
@media (min-width: 640px) {
  body { background: radial-gradient(60% 60% at 50% 30%, #1b2453, var(--azul)) fixed; }
  #palco { width: 480px; margin: 0 auto; box-shadow: 0 0 80px rgba(0, 0, 0, .6); }
  body.imersivo #palco { left: calc(50% - 240px); right: auto; width: 480px; }
  /* no modo imersivo, as laterais ficam com o fundo da marca (a página por trás não aparece) */
  body.imersivo::before {
    content: ""; position: fixed; inset: 0; z-index: 19; pointer-events: none;
    background: radial-gradient(60% 60% at 50% 30%, #1b2453, var(--azul));
  }
  #resultado { left: calc(50% - 240px); right: auto; width: 480px; }
}

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

/* ===================================================================== PÁGINAS DE TEXTO (termos, privacidade) */
body.doc { background: radial-gradient(80% 40% at 50% 0, var(--azul-2), var(--azul) 70%) fixed; }
body.doc main { max-width: 640px; margin: 0 auto; padding: calc(var(--topo) + 24px) 20px calc(var(--base) + 48px); line-height: 1.65; font-size: 16px; }
body.doc h1 { margin: 6px 0 4px; font: 900 30px/1.2 var(--sans); color: #fff; }
body.doc h2 { margin: 30px 0 8px; font: 700 15px/1.3 var(--serif); letter-spacing: .08em; color: var(--ouro); text-transform: uppercase; }
body.doc p, body.doc li { color: var(--suave); }
body.doc b { color: var(--texto); }
body.doc ul { padding-left: 20px; }
body.doc .voltar { display: inline-block; margin-bottom: 18px; font-weight: 700; text-decoration: none; }

/* o selo de modo teste só aparece antes do pagamento (depois ele cobriria os controles da leitura) */
body[data-tela="t-espera"] #faixa-teste, body[data-tela="t-leitura"] #faixa-teste,
body[data-tela="t-dia"] #faixa-teste, body[data-tela="resultado"] #faixa-teste { display: none; }

/* carta do dia: quando o convite aparece, a legenda sobe para o espaço entre a carta e o painel */
body[data-tela="t-dia"]:has(#cta-dia:not([hidden])) .legenda { top: 52%; }

/* dados do comprador exigidos pela processadora do Pix */
.campos-lado { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.campos-lado .campo { min-width: 0; }
.nota-dados { margin: -2px 0 10px; font-size: 12px; line-height: 1.45; color: var(--suave); text-align: center; }
