/* Funil interativo do Código da Prosperidade */
:root {
  --bg: #0b0705;
  --ink: #fffaf0;
  --muted: rgba(255, 246, 228, .72);
  --gold: #d9b85a;
  --gold-2: #f3dc8a;
  --gold-3: #b28a2e;
  --green: #12a538;
  --green-2: #0b7f29;
  --glass: rgba(14, 10, 7, .66);
  --line: rgba(217, 184, 90, .42);
  --stage-w: 100vw;
  --stage-h: 133.333vw;
  --panel-top: 87vw;
  --fade: 380ms;
  --emoji: "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  color: var(--ink);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; }

#app {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  overflow: hidden;
  overflow: clip; /* o fundo desfocado passa da borda: nada pode rolar aqui dentro */
  background: radial-gradient(120% 70% at 50% 40%, #1d130b 0%, var(--bg) 70%);
}

/* fundo: o próprio quadro, desfocado, preenche o que sobra da tela */
.backdrop {
  position: absolute;
  top: -8%; right: -8%; bottom: -8%; left: -8%;
  background: url("img/abertura-fundo.jpg") center 30% / cover no-repeat;
  filter: blur(28px) saturate(1.1) brightness(.42);
  transform: scale(1.08);
  transition: background-image .6s ease;
  pointer-events: none;
}
.backdrop::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(11, 7, 5, 0) 30%, rgba(11, 7, 5, .55) 62%, var(--bg) 100%);
}

/* palco: o vídeo 3:4 em cima, ocupando a largura (no desktop vira coluna) */
.stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 2;
  background: #000;
  transition: width .45s ease, height .45s ease;
}
#app.sem-anim .stage, #app.sem-anim .panel { transition: none !important; }
.deck, .deck video, .stage-poster {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
}
.deck video, .stage-poster {
  object-fit: cover;
  object-position: center top;
  background: transparent;
}
.deck video {
  opacity: 0;
  transition: opacity var(--fade) ease;
  pointer-events: none;
}
.deck video.on { opacity: 1; }
.stage-poster { z-index: 0; transition: opacity .5s ease; pointer-events: none; }
.stage-poster.hide { opacity: 0; }
.abertura {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.abertura.hide { opacity: 0; }
.deck { z-index: 1; }

.shade-top, .shade-bottom { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 3; }
.shade-top { top: 0; height: 14%; background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.shade-bottom {
  bottom: -2px;
  height: 30%;
  /* curva suave (sem degrau visível) até a cor exata do fundo da página */
  background: linear-gradient(180deg,
    rgba(11, 7, 5, 0) 0%, rgba(11, 7, 5, .03) 12%, rgba(11, 7, 5, .1) 24%, rgba(11, 7, 5, .22) 36%,
    rgba(11, 7, 5, .38) 48%, rgba(11, 7, 5, .56) 60%, rgba(11, 7, 5, .73) 71%, rgba(11, 7, 5, .87) 81%,
    rgba(11, 7, 5, .96) 90%, var(--bg) 97%);
  transition: height .6s ease;
}
/* abaixo do vídeo a página é a mesma cor sólida em que o degradê termina: a borda some */
#app::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--stage-h) - 2px);
  bottom: 0;
  z-index: 1;
  background: var(--bg);
  pointer-events: none;
  transition: top .45s ease;
}
/* laterais do vídeo no computador também se dissolvem no fundo */
@media (min-width: 561px) {
  .stage::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, var(--bg) 0, rgba(11, 7, 5, 0) 9%, rgba(11, 7, 5, 0) 91%, var(--bg) 100%);
  }
}
/* abertura: o degradê sobe para o título não brigar com o leque de cartas do vídeo */
.is-start .shade-bottom { height: 36%; }

/* progresso das perguntas */
.progress {
  position: absolute;
  z-index: 6;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  width: min(72%, 300px);
  opacity: 0;
  transition: opacity .4s ease;
}
.progress.show { opacity: 1; }
.progress { display: none !important; }
.progress i {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
  position: relative;
}
.progress i::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  transition: transform .6s ease;
}
.progress i.done::after, .progress i.now::after { transform: scaleX(1); }
.progress i.now::after { animation: pulseBar 1.6s ease-in-out infinite; }
@keyframes pulseBar { 50% { opacity: .55; } }

/* barra da VSL (a "falsa", mais rápida no começo) */
.fakebar {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: rgba(255, 255, 255, .2);
  opacity: 0;
  transition: opacity .4s ease;
}
.fakebar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  box-shadow: 0 0 12px rgba(243, 220, 138, .85);
  transition: width .4s linear;
}
.is-vsl .fakebar { opacity: 1; }

.tap-layer {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 5;
  border: 0;
  background: transparent;
  padding: 0;
  display: none;
  cursor: pointer;
}
.is-vsl .tap-layer { display: block; }
.play-big {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 46%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: rgba(10, 7, 5, .55);
  border: 1px solid rgba(243, 220, 138, .5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.play-big span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 26px solid var(--gold-2);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}
.play-big.show { opacity: 1; transform: scale(1); }

.spinner {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 40%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 3px solid rgba(243, 220, 138, .25);
  border-top-color: var(--gold-2);
  animation: spin .9s linear infinite;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.spinner.show { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.sound-pill {
  position: absolute;
  z-index: 8;
  top: calc(22px + env(safe-area-inset-top, 0px));
  right: 12px;
  border: 1px solid rgba(243, 220, 138, .6);
  background: rgba(10, 7, 5, .7);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  display: none;
  animation: pill 1.8s ease-in-out infinite;
}
.sound-pill.show { display: block; }
@keyframes pill { 50% { box-shadow: 0 0 0 6px rgba(243, 220, 138, .15); } }

/* painel: entra por cima do tapete preto da mesa e segue até o fim da tela */
.panel {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: var(--panel-top);
  bottom: 0;
  width: var(--panel-w, min(100%, 520px));
  transform: translateX(-50%);
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
  transition: top .45s ease, width .45s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.panel::-webkit-scrollbar { display: none; }
.panel > * { flex: none; }
/* mais conteúdo do que cabe: o pé do painel some num degradê, sinal de que dá para rolar */
.panel.rola {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent);
}
/* caixa invisível onde o motor mede quanto cada tela ocupa */
.panel.medida {
  top: 0;
  bottom: auto;
  left: 0;
  transform: none;
  visibility: hidden;
  pointer-events: none;
  overflow: visible;
  z-index: -1;
  transition: none;
}

/* entrada e saída das peças */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.panel.leaving > * { opacity: 0 !important; transform: translateY(10px) !important; transition: opacity .3s ease, transform .3s ease; }

/* tela inicial */
.start { text-align: center; padding-top: 2px; }
.start .logo { display: block; width: 116px; height: auto; margin: 0 auto 6px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
.start h1 {
  margin: 0 auto 8px;
  max-width: 440px;
  text-wrap: balance;
  font-size: clamp(19px, 5.4vw, 24px);
  line-height: 1.22;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
.start p { margin: 0 auto 16px; max-width: 420px; font-size: clamp(15.5px, 4.3vw, 17.5px); line-height: 1.45; color: var(--muted); }
.start p b { color: var(--ink); }
.start .som { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.start .som .e { font-family: var(--emoji); margin-right: 4px; }

.cta {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 17px 18px;
  font-size: clamp(16px, 4.5vw, 19px);
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}
.cta.gold {
  color: #1d1406;
  background: linear-gradient(180deg, #f7e39b 0%, #dcb758 52%, #b78f31 100%);
  box-shadow: 0 10px 28px rgba(201, 168, 76, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.cta.green {
  color: #fff;
  background: linear-gradient(180deg, #24c24d 0%, var(--green) 55%, var(--green-2) 100%);
  box-shadow: 0 10px 28px rgba(18, 165, 56, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cta::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);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.cta.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.cta:active { filter: brightness(.95); }

/* perguntas */
.question { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.question .q {
  margin: 0 -6px 2px;
  padding: 5px 16px;
  text-align: center;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gold-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
  text-wrap: balance;
  background: linear-gradient(90deg, rgba(8, 5, 3, 0), rgba(8, 5, 3, .62) 18%, rgba(8, 5, 3, .62) 82%, rgba(8, 5, 3, 0));
}
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  text-align: left;
  font-size: clamp(15.5px, 4.3vw, 17px);
  font-weight: 500;
  line-height: 1.32;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1), background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.opt .e { flex: none; width: 32px; text-align: center; font-size: 24px; line-height: 1; font-family: var(--emoji); }
.opt:active { transform: scale(.985); }
.opt.sel {
  color: #1d1406;
  border-color: var(--gold-2);
  background: linear-gradient(135deg, #f7e39b, #d4ad4c 60%, #b88f31);
  box-shadow: 0 0 0 3px rgba(243, 220, 138, .22), 0 10px 26px rgba(201, 168, 76, .45);
}
.opt.sel::after { content: "✓"; margin-left: auto; font-weight: 700; padding-left: 8px; }
.opt.out { opacity: 0 !important; transform: translateY(8px) scale(.98) !important; pointer-events: none; }
.question.locked .opt { pointer-events: none; }
/* ela demorou para responder: as respostas brilham de leve, uma de cada vez */
.question.nudge .opt { animation: nudge 2.6s ease-in-out infinite; }
.question.nudge .opt:nth-of-type(2) { animation-delay: .3s; }
.question.nudge .opt:nth-of-type(3) { animation-delay: .6s; }
.question.nudge .opt:nth-of-type(4) { animation-delay: .9s; }
@keyframes nudge {
  0%, 60%, 100% { border-color: var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
  30% { border-color: rgba(243, 220, 138, .9); box-shadow: 0 0 0 2px rgba(243, 220, 138, .28), 0 0 24px rgba(243, 220, 138, .32); }
}

/* análise */
.analysis { text-align: center; padding-top: 10px; }
.analysis .t { text-wrap: balance; font-family: Cinzel, Georgia, serif; font-size: clamp(19px, 5.4vw, 23px); font-weight: 700; color: var(--gold-2); letter-spacing: .4px; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.bar { margin: 14px auto 10px; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .12); overflow: hidden; border: 1px solid rgba(243, 220, 138, .25); max-width: 420px; }
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2), var(--gold-3));
  background-size: 200% 100%;
  animation: flow 1.4s linear infinite;
  box-shadow: 0 0 14px rgba(243, 220, 138, .65);
}
@keyframes flow { to { background-position: -200% 0; } }
.analysis .sub { display: flex; justify-content: space-between; gap: 10px; max-width: 420px; margin: 0 auto; font-size: 15px; color: var(--muted); }
.analysis .sub b { color: var(--ink); font-variant-numeric: tabular-nums; }
.analysis .sub span { transition: opacity .3s ease; }

/* cartas */
.cards-wrap { position: relative; padding-top: 2px; }
.cards-wrap .t { text-wrap: balance; text-align: center; font-size: 17px; font-weight: 600; color: var(--gold-2); margin: 0 0 4px; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.cards-wrap .c { text-align: center; font-size: 14.5px; color: var(--muted); margin: 0 0 10px; }
.cards-wrap .c b { color: var(--ink); }
.grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 8px;
  max-width: 380px;
  margin: 8px auto 0;
}
.grid.tres { grid-template-columns: repeat(3, 1fr); max-width: 300px; gap: 14px; margin: 34px auto 8px; }
/* nas 3 escolhidas o número fica acima da carta, sem cobrir o algarismo do arcano */
.grid.tres .card .badge { top: calc(-8% - 30px); }
.card {
  position: relative;
  aspect-ratio: 236 / 329;
  perspective: 900px;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  touch-action: manipulation;
  opacity: 0;
  transform: translateY(-26px) scale(.7) rotate(var(--r, 0deg));
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .25, 1.1);
}
.card.dealt { opacity: 1; transform: none; }
.card .inner {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2, .75, .2, 1);
}
.card.flip .inner { transform: rotateY(180deg); }
.card .face {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border-radius: 7px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .55);
}
.card .back { background: linear-gradient(160deg, #e9cd74, #b8902f); }
.card .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .front { top: -8.03%; right: 0; bottom: -8.03%; left: 0; transform: rotateY(180deg); visibility: hidden; background: #1a120a; }
.card.flip .front { visibility: visible; transition: visibility 0s linear .1s; }
.card.flip .back { visibility: hidden; transition: visibility 0s linear .1s; }
.card .badge {
  position: absolute;
  z-index: 3;
  top: calc(-8% - 13px);
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  background: var(--gold-2);
  color: #1d1406;
  font: 700 13px/24px Cinzel, Georgia, serif;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .3s ease .35s, transform .35s cubic-bezier(.2, .9, .3, 1.4) .35s;
}
.card.flip .badge { opacity: 1; transform: none; }
.card.flip .face { box-shadow: 0 0 0 2px rgba(243, 220, 138, .85), 0 0 22px rgba(243, 220, 138, .55); }
.card.gone { opacity: 0 !important; transform: scale(.9) !important; pointer-events: none; transition: opacity .4s ease, transform .4s ease; }
.grid.locked .card { pointer-events: none; }
.card:not(.flip):active .inner { transform: scale(.96); }
.picked-name { text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; min-height: 16px; }

.spark {
  position: fixed;
  z-index: 50;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7d1 0%, #f3dc8a 45%, rgba(243, 220, 138, 0) 70%);
  pointer-events: none;
  animation: spark var(--d, .8s) ease-out forwards;
}
@keyframes spark {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; }
}

.result { margin-top: 14px; }

/* VSL */
.vsl-panel { padding-top: 12px; text-align: center; }
.vsl-panel .head { text-wrap: balance; font-size: clamp(16px, 4.6vw, 18.5px); line-height: 1.4; color: var(--muted); margin: 0 6px 12px; }
.vsl-panel .head b { color: var(--gold-2); font-weight: 700; }
.vsl-panel .secure { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.vsl-panel .secure .e { font-family: var(--emoji); }
.minhas { margin: 18px auto 0; max-width: 300px; }
.minhas .lbl { font-family: Cinzel, Georgia, serif; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.minhas .row { display: flex; justify-content: center; gap: 14px; }
.minhas .mini { position: relative; width: 64px; }
.minhas .mini img { display: block; width: 100%; aspect-ratio: 236 / 382; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1.5px rgba(243, 220, 138, .7), 0 6px 14px rgba(0, 0, 0, .55); }
.minhas .mini .n { position: absolute; top: -8px; left: 50%; margin-left: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-2); color: #1d1406; font: 700 11px/20px Cinzel, Georgia, serif; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.minhas .mini .nm { display: block; margin-top: 6px; font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.minhas.fora, .vsl-panel.sem-head .head { display: none; }
.soft-out { opacity: 0 !important; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
@media (max-height: 700px) { .minhas { display: none; } }

/* sobreposição (continuar de onde parou, toque para continuar) */
.overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 5, 3, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.overlay[hidden] { display: none; }
.sheet {
  width: min(100%, 380px);
  background: rgba(20, 14, 9, .92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.sheet h2 { font-family: Cinzel, Georgia, serif; font-size: 19px; color: var(--gold-2); margin: 0 0 6px; }
.sheet p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sheet .cta + .cta { margin-top: 10px; }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, .28); box-shadow: none; }
.cta.ghost::after { display: none; }

/* celular: opções um pouco mais compactas, para o painel das perguntas não subir sobre o vídeo */
@media (max-width: 560px) {
  .panel { padding-left: 13px; padding-right: 13px; }
  .opt { min-height: 48px; padding: 8px 12px 8px 10px; gap: 9px; font-size: clamp(14.5px, 3.85vw, 15.5px); line-height: 1.27; }
  .opt .e { width: 24px; font-size: 20px; }
  .question { gap: 7px; }
  .question .q { font-size: 16px; padding: 3px 14px; line-height: 1.3; }
}

/* telas baixas: aperta o espaço */
@media (max-height: 760px) {
  .start .logo { display: none; }
  .start p { margin-bottom: 12px; }
  .opt { min-height: 46px; padding: 7px 12px 7px 10px; gap: 9px; font-size: 15px; line-height: 1.26; }
  .opt .e { width: 24px; font-size: 20px; }
  .question { gap: 7px; }
  .question .q { font-size: 15.5px; padding: 4px 14px; }
}
/* tela baixa: cartas menores para as duas fileiras caberem */
@media (max-height: 700px) { .grid { max-width: 330px; } }
@media (max-height: 620px) { .grid { max-width: 290px; gap: 16px 7px; } .cards-wrap .c { margin-bottom: 6px; } }
@media (max-height: 600px) {
  .opt { min-height: 46px; padding: 7px 11px; font-size: 14.5px; }
  .question { gap: 6px; padding-top: 2px; }
  .question .q { font-size: 14px; line-height: 1.3; }
  .start p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cta.pulse, .cta::after, .progress i.now::after, .bar i, .question.nudge .opt { animation: none; }
  .card, .reveal, .opt, .stage, .panel { transition-duration: .01s; }
}

/* voltou no meio do quiz: opção discreta de recomeçar */
.start .recomecar {
  display: block;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* navegador antigo (iOS 13 a 14, Chrome abaixo do 88): sem aspect-ratio e sem gap no flex */
@supports not (aspect-ratio: 1 / 1) {
  .card::before { content: ""; display: block; padding-top: 139.4%; }
  .minhas .mini img { height: 104px; }
  .question > * + * { margin-top: 9px; }
  .opt .e { margin-right: 12px; }
  .minhas .row .mini + .mini { margin-left: 14px; }
  .progress i + i { margin-left: 6px; }
  .analysis .sub span { margin-right: 10px; }
}

/* na VSL o degradê do pé é mais curto: não escurece as cartas do vídeo */
.is-vsl .shade-bottom { height: 18%; }

/* VSL pausada: aviso de urgência por cima do vídeo (o toque passa para o vídeo e continua) */
.pausa-aviso {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(120% 90% at 50% 50%, rgba(8, 5, 3, .55), rgba(8, 5, 3, .82));
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
  pointer-events: none;
}
.pausa-aviso.show { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.pa-box { text-align: center; max-width: 330px; }
.pa-play {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
  background: rgba(10, 7, 5, .6); border: 2px solid var(--gold-2);
  display: flex; align-items: center; justify-content: center;
  animation: paPulse 1.4s ease-in-out infinite;
}
.pa-play span { width: 0; height: 0; margin-left: 6px; border-left: 24px solid var(--gold-2); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
@keyframes paPulse { 50% { box-shadow: 0 0 0 10px rgba(243, 220, 138, .16); } }
.pa-t { font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: clamp(22px, 6.4vw, 28px); color: var(--gold-2); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); margin-bottom: 8px; }
.pa-s { font-size: clamp(15px, 4.2vw, 17px); line-height: 1.45; color: var(--ink); text-shadow: 0 2px 10px rgba(0, 0, 0, .9); text-wrap: balance; }
.pa-b { margin-top: 14px; display: inline-block; padding: 10px 18px; border-radius: 999px; background: linear-gradient(180deg, #f7e39b, #c9a443); color: #1d1406; font-weight: 700; font-size: 15px; }

/* depois das 3 cartas: sem título e contador; cartas e botão com espaço entre si */
.cards-wrap.escolhidas .t, .cards-wrap.escolhidas .c { display: none; }
.cards-wrap.escolhidas .grid.tres { margin-top: 30px; margin-bottom: 0; }
.cards-wrap.escolhidas .result { margin-top: 30px; }

/* painel subiu sobre a mesa (celular baixo): escurecido suave atrás do texto, sem borda */
.stage::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: calc(var(--panel-top) - 90px);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(11, 7, 5, 0) 0, rgba(11, 7, 5, .55) 70px, rgba(11, 7, 5, .82) 150px, rgba(11, 7, 5, .9) 100%);
  transition: opacity .45s ease, top .45s ease;
}
.painel-alto .stage::before { opacity: 1; }

/* lista de exemplo da pergunta 1: só o formato, sem texto, sem toque */
.question.demo { position: relative; pointer-events: none; }
.question.demo .q { background: none; padding-top: 8px; padding-bottom: 8px; display: flex; justify-content: center; }
.question.demo .barra { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, rgba(243, 220, 138, .5), rgba(243, 220, 138, .22)); }
.question.demo .opt .tx { flex: 1; }
.question.demo .opt .barra { background: rgba(255, 250, 240, .22); }
.question.demo .opt.sel .barra { background: rgba(29, 20, 6, .35); }
.question.demo .bolinha { display: block; width: 22px; height: 22px; margin: 0 auto; border-radius: 50%; background: rgba(243, 220, 138, .35); }
.question.demo .opt.sel .bolinha { background: rgba(29, 20, 6, .35); }
.question.demo .opt.sel::after { content: none; }
.question.demo .dedo {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 6px rgba(255, 255, 255, .25), 0 4px 14px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(40px, 40px) scale(.8); transition: opacity .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.question.demo .dedo.in { opacity: 1; transform: none; }
.question.demo .dedo.toque { animation: dedoToque .5s ease; }
@keyframes dedoToque { 40% { transform: scale(.7); box-shadow: 0 0 0 14px rgba(255, 255, 255, .12), 0 4px 14px rgba(0, 0, 0, .5); } }

/* lembrete do som no pé das perguntas */
/* fica preso no pé da tela: a pergunta ocupa o painel inteiro e o aviso vai para o fim dele */
.question:not(.demo) { flex: 1 0 auto; }
.question .som { margin-top: auto; padding-top: 8px; text-align: center; font-size: 13.5px; color: var(--muted); }
.question .som .e { font-family: var(--emoji); margin-right: 4px; }
.question.locked .som { opacity: 0 !important; transition: opacity .3s ease; }

/* VSL no player do VSL Player: por cima do palco, escondida até a fala de passagem terminar */
.vp-host {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 0.001;
  pointer-events: none;
  transition: opacity .38s ease;
}
.vp-host.on { opacity: 1; pointer-events: auto; background: #000; }
.vp-host vsl-player { width: 100%; }
/* o título do player sai (o título fica no painel embaixo do vídeo) */
.vp-host vsl-player::part(headline) { display: none !important; }
/* com o player do VSL Player, a barra, o toque para pausar e o aviso de pausa são dele */
.usa-vp .fakebar, .usa-vp .tap-layer, .usa-vp .pausa-aviso { display: none !important; }
