/* Quiz · uma pergunta por tela, celular primeiro */
.quiz { max-width: 480px; margin: 0 auto; padding: 6px 20px 8px; min-height: calc(100dvh - 160px); }

/* Telas e transição */
.tela { display: none; }
.tela.ativa { display: block; animation: entrar .38s ease both; }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Tela inicial */
h1 {
  margin: 10px 0 18px; text-align: center;
  font-family: var(--f-destaque); font-weight: 500; font-size: clamp(23px, 6.4vw, 28px); line-height: 1.22; color: var(--bordo);
}
h1 em, h2 em { color: var(--bordo-claro); }
.tela[data-tela="intro"] h1 { margin-bottom: 10px; }
.subtitulo { margin: 0 0 18px; text-align: center; font-size: 17px; line-height: 1.45; color: var(--tinta-suave); }
.tela[data-tela="intro"] .video { margin-bottom: 20px; }
/* o vídeo encolhe em telas baixas para o botão "Começar agora" aparecer sem rolar */
.tela[data-tela="intro"] .video { width: min(100%, max(180px, calc((100vh - 450px) * .8))); }
@supports (height: 100dvh) {
  .tela[data-tela="intro"] .video { width: min(100%, max(180px, calc((100dvh - 450px) * .8))); }
}
.nota { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--tinta-suave); }
.sem-video { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; padding: 14px; border-radius: var(--raio); background: rgba(255,250,240,.7); border: 1px solid rgba(201,154,69,.45); }
.sem-video img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ouro); flex: none; }
.sem-video p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--tinta-suave); }
.sem-video b { display: block; font-family: var(--f-titulo); font-size: 13px; letter-spacing: .1em; color: var(--bordo); }

/* Progresso */
.progresso {
  position: sticky; top: 0; z-index: 5; padding: 8px 20px 12px; max-width: 480px; margin: 0 auto;
  background: rgba(246,238,220,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.progresso__linha { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.voltar { border: 0; background: none; padding: 4px 6px 4px 0; cursor: pointer; font-size: 15px; color: var(--ouro-escuro); }
.voltar[hidden] { display: inline-block !important; visibility: hidden; }
.progresso__texto { font-family: var(--f-titulo); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro-escuro); }
.progresso__barra { height: 6px; border-radius: 6px; background: var(--creme-3); overflow: hidden; }
.progresso__barra span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--ouro), var(--bordo-claro)); transition: width .45s ease; }

/* Pergunta e opções */
h2 {
  margin: 14px 0 22px; text-align: center;
  font-family: var(--f-destaque); font-weight: 500; font-size: clamp(22px, 6vw, 26px); line-height: 1.25; color: var(--bordo);
}
.pergunta__ajuda { margin: -12px 0 18px; text-align: center; font-family: var(--f-destaque); font-style: italic; font-size: 16px; line-height: 1.4; color: var(--ouro-escuro); }
.opcoes { display: grid; gap: 12px; }
.opcao {
  position: relative; width: 100%; min-height: 60px; padding: 15px 16px 15px 56px; cursor: pointer; text-align: left;
  font-size: 18px; line-height: 1.32; color: var(--tinta);
  background: #FFFAF0; border: 1.5px solid rgba(201,154,69,.55); border-radius: var(--raio);
  box-shadow: 0 2px 8px rgba(58,14,22,.05); transition: background .2s, border-color .2s, color .2s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.opcao::before {
  content: attr(data-letra); position: absolute; left: 14px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-titulo); font-size: 13px; font-weight: 700; color: var(--ouro-escuro); border: 1.5px solid rgba(201,154,69,.7);
}
.opcao:active { transform: scale(.985); }
@media (hover: hover) { .opcao:hover { border-color: var(--ouro); background: #FFF6E4; } }
.opcao.marcada { background: var(--bordo); border-color: var(--bordo); color: #FFF8EA; }
.opcao.marcada::before { color: var(--bordo); background: var(--ouro-claro); border-color: var(--ouro-claro); }

/* Grade de signos */
.opcoes--grade { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opcoes--grade .opcao { min-height: 66px; padding: 10px 4px; text-align: center; font-size: 16px; }
.opcoes--grade .opcao::before { display: none; }
.opcoes--grade .opcao small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--tinta-suave); }
.opcoes--grade .opcao.marcada small { color: var(--creme-3); }

/* Tela intermediária */
.sem-video--foto { justify-content: center; margin: 18px 0 0; padding: 0; background: none; border: 0; }
.sem-video--foto img { width: 120px; height: 120px; box-shadow: 0 0 0 2px var(--ouro), 0 0 0 7px rgba(201,154,69,.15), 0 0 40px rgba(235,197,122,.45); }
.tela[data-tela="pausa"] .video { margin-top: 8px; }
.pausa__texto { margin: 20px 0 8px; text-align: center; font-size: 22px; line-height: 1.35; color: var(--bordo); }
.pausa__sub { margin: 0 0 20px; text-align: center; font-size: 17px; line-height: 1.45; color: var(--tinta-suave); }
.pausa__texto em { font-size: 25px; }

/* Análise */
.tela[data-tela="analise"] { text-align: center; padding-top: 6vh; }
.vela { width: 150px; margin: 0 auto 16px; }
.vela svg { width: 100%; height: auto; overflow: visible; }
.vela__chama { transform-origin: 60px 74px; animation: chama 1.3s ease-in-out infinite alternate; }
.vela__halo { transform-origin: 60px 58px; animation: halo 1.3s ease-in-out infinite alternate; }
@keyframes chama { 0% { transform: scale(1, 1) rotate(-1.5deg); } 50% { transform: scale(.94, 1.06) rotate(1.5deg); } 100% { transform: scale(1.03, .96) rotate(-.5deg); } }
@keyframes halo { from { opacity: .7; transform: scale(.95); } to { opacity: 1; transform: scale(1.06); } }
.analise__frase { min-height: 64px; margin: 0; font-family: var(--f-destaque); font-style: italic; font-size: 23px; color: var(--bordo); transition: opacity .3s; }
.analise__frase.saindo { opacity: 0; }

/* Captura */
.captura {
  margin-top: 8px; padding: 22px 18px 18px; border-radius: 18px;
  background: #FFFAF0; border: 1px solid rgba(201,154,69,.55); box-shadow: var(--sombra);
}
.captura h2 { margin-top: 0; margin-bottom: 6px; }
.captura__sub { margin: 0 0 18px; text-align: center; font-size: 16px; color: var(--tinta-suave); }
.campo { display: block; margin-bottom: 14px; }
.campo span { display: block; margin-bottom: 6px; font-family: var(--f-titulo); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ouro-escuro); }
.campo input {
  width: 100%; min-height: 54px; padding: 0 14px; font: inherit; font-size: 18px; color: var(--tinta);
  background: #fff; border: 1.5px solid rgba(138,93,36,.35); border-radius: 12px; outline: none;
}
.campo input:focus { border-color: var(--ouro); box-shadow: 0 0 0 4px rgba(201,154,69,.18); }
.campo input.invalido { border-color: #B3261E; }
.consentimento { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 10px; cursor: pointer; font-size: 15px; line-height: 1.4; color: var(--tinta-suave); }
.consentimento input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; }
.consentimento__caixa { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid rgba(138,93,36,.55); background: #fff; display: flex; align-items: center; justify-content: center; }
.consentimento input:checked + .consentimento__caixa { background: var(--bordo); border-color: var(--bordo); }
.consentimento input:checked + .consentimento__caixa::after { content: ""; width: 7px; height: 13px; border: solid #FFF8EA; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.consentimento input:focus-visible + .consentimento__caixa { box-shadow: 0 0 0 4px rgba(201,154,69,.3); }
.consentimento.invalido .consentimento__caixa { border-color: #B3261E; }
.erro { min-height: 0; margin: 0 0 10px; font-size: 15px; color: #B3261E; }
.erro:empty { display: none; }
.nota--sigilo { display: flex; align-items: center; justify-content: center; gap: 6px; }
.nota--sigilo svg { width: 14px; height: 14px; fill: var(--ouro-escuro); }
