:root {
  --fundo: #120822;
  --fundo-2: #1d0d38;
  --roxo: #5b2a9a;
  --violeta: #9b6bff;
  --lilas: #c9b6ff;
  --ouro: #e9b44c;
  --ouro-claro: #ffd98a;
  --texto: #f7f2ff;
  --suave: #bfb2dc;
  --apagado: #8a7da8;
  --cartao: rgba(255, 255, 255, 0.06);
  --cartao-forte: rgba(255, 255, 255, 0.1);
  --borda: rgba(201, 182, 255, 0.18);
  --ok: #7be0b0;
  --alerta: #ff9f80;
  --raio: 20px;
  --sombra: 0 20px 60px rgba(0, 0, 0, 0.45);
  --titulo: "Poppins", system-ui, sans-serif;
  --corpo: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--corpo);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(155, 107, 255, 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(233, 180, 76, 0.16), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(91, 42, 154, 0.55), transparent 60%),
    linear-gradient(180deg, var(--fundo) 0%, var(--fundo-2) 100%);
}
#estrelas { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.7; }

h1, h2, h3 { font-family: var(--titulo); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 4.6vw, 30px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
a { color: var(--ouro-claro); }
strong { color: #fff; }
.ouro { color: var(--ouro); }
.suave { color: var(--suave); }
.pequeno { font-size: 14px; }
.centro { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- estrutura ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(18, 8, 34, 0.92), rgba(18, 8, 34, 0.6));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); }
.marca img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; mix-blend-mode: screen; }
.marca span { font-family: var(--titulo); font-weight: 600; font-size: 13px; letter-spacing: 0.22em; line-height: 1.2; }
.marca small { display: block; font-size: 10px; letter-spacing: 0.32em; color: var(--suave); font-weight: 500; }
.topo-acoes { display: flex; gap: 8px; }

main { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 16px 120px; }
.tela { animation: surgir 0.5s ease both; }
@keyframes surgir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cartao {
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 22px;
  margin: 0 0 16px;
  box-shadow: var(--sombra);
}
.cartao.destaque { background: linear-gradient(150deg, rgba(155, 107, 255, 0.22), rgba(233, 180, 76, 0.1)); }
.rotulo {
  display: inline-block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ouro); font-weight: 700; margin-bottom: 8px;
}

/* ---------- botões ---------- */
.botao {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--titulo); font-weight: 700; font-size: 16px;
  padding: 16px 26px; border-radius: 999px; min-height: 54px;
  background: linear-gradient(135deg, var(--ouro-claro), var(--ouro));
  color: #24123f;
  box-shadow: 0 10px 30px rgba(233, 180, 76, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}
.botao:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(233, 180, 76, 0.45); }
.botao:active { transform: translateY(1px); }
.botao:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.botao.largo { width: 100%; }
.botao.secundario { background: var(--cartao-forte); color: var(--texto); box-shadow: none; border: 1px solid var(--borda); }
.botao.fantasma { background: transparent; color: var(--suave); box-shadow: none; padding: 10px 14px; min-height: 40px; font-weight: 600; }
.botao.pequeno { padding: 10px 16px; min-height: 40px; font-size: 14px; }
.acoes { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
@media (min-width: 560px) { .acoes.linha { flex-direction: row; } .acoes.linha .botao { flex: 1; } }

/* ---------- formulário ---------- */
.campo { display: block; margin: 0 0 16px; }
.campo span { display: block; font-size: 14px; color: var(--suave); margin-bottom: 6px; font-weight: 600; }
.campo input, .campo textarea {
  width: 100%; font: inherit; color: var(--texto);
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--borda); border-radius: 14px;
  padding: 14px 16px; outline: none;
}
.campo input:focus, .campo textarea:focus { border-color: var(--violeta); box-shadow: 0 0 0 3px rgba(155, 107, 255, 0.25); }
.codigo-input { font-size: 30px !important; letter-spacing: 0.5em; text-align: center; font-family: var(--titulo) !important; }
.erro { color: var(--alerta); font-weight: 600; min-height: 1.4em; }
.aviso-ok { color: var(--ok); font-weight: 600; }

/* ---------- entrada ---------- */
.entrada { text-align: center; padding-top: 10px; }
.entrada .logo-grande { width: 190px; max-width: 60vw; mix-blend-mode: screen; border-radius: 24px; }
.heroi-img { width: 100%; border-radius: var(--raio); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); margin: -10px 0 -20px; }

/* ---------- jornada ---------- */
.jornada { list-style: none; padding: 0; margin: 0; counter-reset: passo; }
.jornada li {
  position: relative; padding: 16px 16px 16px 64px; margin: 0 0 10px;
  border-radius: 16px; background: var(--cartao); border: 1px solid var(--borda);
}
.jornada li::before {
  counter-increment: passo; content: counter(passo);
  position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--titulo); font-weight: 700;
  background: var(--cartao-forte); color: var(--suave); border: 1px solid var(--borda);
}
.jornada li.feito::before { content: ""; background: var(--ok); border-color: var(--ok); }
.jornada li.feito::after {
  content: ""; position: absolute; left: 28px; top: 25px; width: 10px; height: 16px;
  border: solid #10331f; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.jornada li.agora { border-color: var(--ouro); background: linear-gradient(150deg, rgba(233, 180, 76, 0.16), rgba(155, 107, 255, 0.12)); }
.jornada li.agora::before { background: var(--ouro); color: #24123f; border-color: var(--ouro); }
.jornada b { display: block; font-family: var(--titulo); }
.jornada small { color: var(--suave); }

/* ---------- respiração ---------- */
.respira { display: grid; place-items: center; margin: 26px auto; width: 240px; height: 240px; position: relative; }
.respira .bola {
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6dc, var(--ouro) 45%, var(--roxo) 100%);
  box-shadow: 0 0 60px rgba(233, 180, 76, 0.6), 0 0 120px rgba(155, 107, 255, 0.45);
  transition: transform 5s ease-in-out;
}
.respira .anel { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(201, 182, 255, 0.35); }
.respira.inspira .bola { transform: scale(2); }
.respira.segura-cheio .bola { transform: scale(2); }
.respira.expira .bola, .respira.segura-vazio .bola { transform: scale(1); }
.respira-texto { text-align: center; font-family: var(--titulo); font-size: 22px; font-weight: 700; min-height: 34px; }
.respira-num { text-align: center; font-size: 48px; font-family: var(--titulo); font-weight: 800; color: var(--ouro); min-height: 60px; }

/* ---------- diagnóstico ---------- */
.progresso { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; margin: 6px 0 18px; }
.progresso > i { display: block; height: 100%; background: linear-gradient(90deg, var(--violeta), var(--ouro)); border-radius: 99px; transition: width 0.5s ease; }
.progresso-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--suave); font-weight: 600; }
.area { font-family: var(--titulo); font-size: clamp(30px, 8vw, 46px); font-weight: 800; line-height: 1.1; background: linear-gradient(90deg, var(--ouro-claro), var(--lilas)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subpergunta { font-size: clamp(19px, 4.4vw, 23px); line-height: 1.5; font-weight: 600; min-height: 7.5em; }
.opcoes { display: grid; gap: 10px; margin-top: 18px; }
.opcao {
  appearance: none; cursor: pointer; text-align: left; font: inherit; color: var(--texto);
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--borda); background: var(--cartao);
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
}
.opcao:hover { border-color: var(--lilas); }
.opcao:active { transform: scale(0.99); }
.opcao .ponto { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--lilas); flex: none; position: relative; }
.opcao[data-v="1"] .ponto { border-color: var(--violeta); }
.opcao[data-v="2"] .ponto { border-color: var(--ouro); }
.opcao.marcada { background: var(--cartao-forte); border-color: var(--ouro); }
.opcao.marcada .ponto::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ouro); }
.opcao b { display: block; font-family: var(--titulo); font-size: 16px; }
.opcao small { color: var(--suave); font-size: 13px; }
.nota-grande { font-family: var(--titulo); font-size: 96px; font-weight: 800; line-height: 1; text-align: center; color: var(--ouro); text-shadow: 0 0 40px rgba(233, 180, 76, 0.5); }
.regua { width: 100%; accent-color: var(--ouro); height: 34px; }
.regua-legenda { display: flex; justify-content: space-between; font-size: 12px; color: var(--suave); }
.faixa-nota { text-align: center; color: var(--suave); min-height: 3.2em; }
.marcas-sub { display: flex; gap: 6px; justify-content: center; margin: 4px 0 0; flex-wrap: wrap; }
.marcas-sub i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.marcas-sub i.v1 { background: var(--violeta); }
.marcas-sub i.v2 { background: var(--ouro); }
.marcas-sub i.atual { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- calculando ---------- */
.scanner { position: relative; width: min(320px, 80vw); aspect-ratio: 1; margin: 30px auto; }
.scanner img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: saturate(1.2); animation: pulsar 2.4s ease-in-out infinite; }
.scanner::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; top: 0; background: linear-gradient(90deg, transparent, var(--ouro-claro), transparent); box-shadow: 0 0 24px var(--ouro); animation: varrer 2.2s ease-in-out infinite; }
@keyframes varrer { 0% { top: 5%; } 50% { top: 92%; } 100% { top: 5%; } }
@keyframes pulsar { 50% { transform: scale(1.03); filter: saturate(1.6) brightness(1.15); } }
.etapas-calc { list-style: none; padding: 0; text-align: center; color: var(--suave); }
.etapas-calc li { opacity: 0.3; transition: opacity 0.5s; margin: 6px 0; }
.etapas-calc li.on { opacity: 1; color: var(--texto); }

/* ---------- resultado ---------- */
.revelacao { text-align: center; padding: 30px 20px; }
.revelacao .nome-bloqueio { font-family: var(--titulo); font-weight: 800; font-size: clamp(40px, 11vw, 68px); line-height: 1; margin: 6px 0 14px; background: linear-gradient(90deg, var(--ouro-claro), var(--ouro), var(--lilas)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: brilho 3s ease-in-out infinite alternate; }
@keyframes brilho { to { filter: drop-shadow(0 0 18px rgba(233, 180, 76, 0.55)); } }
.selo { display: inline-block; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.selo.leve { background: rgba(123, 224, 176, 0.15); color: var(--ok); }
.selo.ativo { background: rgba(233, 180, 76, 0.18); color: var(--ouro-claro); }
.selo.critico { background: rgba(255, 159, 128, 0.18); color: var(--alerta); }
.podio { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .podio { grid-template-columns: repeat(3, 1fr); } }
.podio .item { padding: 16px; border-radius: 16px; background: var(--cartao); border: 1px solid var(--borda); text-align: center; }
.podio .item b { display: block; font-family: var(--titulo); font-size: 20px; }
.podio .pos { font-size: 12px; color: var(--ouro); letter-spacing: 0.15em; font-weight: 700; text-transform: uppercase; }
.barras { display: grid; gap: 10px; }
.barra { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: 10px; font-size: 14px; }
.barra .trilho { height: 12px; background: rgba(255, 255, 255, 0.07); border-radius: 99px; overflow: hidden; }
.barra .trilho i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--roxo), var(--violeta)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.barra.top .trilho i { background: linear-gradient(90deg, var(--violeta), var(--ouro)); }
.barra .valor { text-align: right; font-weight: 700; font-family: var(--titulo); }
@media (max-width: 420px) { .barra { grid-template-columns: 100px 1fr 46px; font-size: 13px; } }
.duas-colunas { display: grid; gap: 14px; }
@media (min-width: 600px) { .duas-colunas { grid-template-columns: 1fr 1fr; } }
.lista-emocoes { list-style: none; padding: 0; margin: 0; }
.lista-emocoes li { padding: 9px 0; border-bottom: 1px solid var(--borda); }
.lista-emocoes li:last-child { border-bottom: 0; }
.seta { color: var(--ouro); padding: 0 6px; }

/* ---------- protocolo ---------- */
.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 10px 0 4px; }
.dia { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-family: var(--titulo); font-weight: 700; font-size: 15px; background: var(--cartao); border: 1px solid var(--borda); color: var(--apagado); position: relative; }
.dia.parcial { color: var(--texto); border-color: var(--violeta); }
.dia.completo { background: linear-gradient(135deg, var(--violeta), var(--ouro)); color: #24123f; border: 0; }
.dia.hoje { outline: 2px solid var(--ouro-claro); outline-offset: 2px; color: var(--texto); }
.pratica { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.pratica h3 { margin: 0; }
.pratica .quando { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ouro); font-weight: 700; }
.check {
  appearance: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--borda); background: transparent; position: relative; flex: none;
}
.check.on { background: var(--ok); border-color: var(--ok); }
.check.on::after { content: ""; position: absolute; left: 15px; top: 9px; width: 10px; height: 18px; border: solid #10331f; border-width: 0 3px 3px 0; transform: rotate(45deg); }
audio { width: 100%; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--texto); padding: 8px 14px; border-radius: 99px; border: 1px solid var(--borda); background: var(--cartao); }
.chip.on { background: rgba(233, 180, 76, 0.2); border-color: var(--ouro); }
.escala { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.escala button { appearance: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; padding: 10px 0; border-radius: 10px; border: 1px solid var(--borda); background: var(--cartao); color: var(--texto); }
.escala button.on { background: var(--ouro); color: #24123f; border-color: var(--ouro); }
.escala-legenda { display: flex; justify-content: space-between; font-size: 12px; color: var(--suave); margin-top: 4px; }
.grafico { width: 100%; height: 160px; }

/* ---------- sessão guiada da técnica ---------- */
.sessao { position: fixed; inset: 0; z-index: 50; background: radial-gradient(900px 700px at 50% 0%, #2d1458, #0c0518 70%); overflow-y: auto; }
.sessao-topo { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; position: sticky; top: 0; background: rgba(12, 5, 24, 0.75); backdrop-filter: blur(8px); z-index: 2; }
.sessao-corpo { max-width: 680px; margin: 0 auto; padding: 20px 16px 140px; }
.sessao-rodape { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, #0c0518 60%, transparent); display: flex; gap: 10px; justify-content: center; z-index: 3; }
.sessao-rodape .botao { flex: 1; max-width: 340px; }
.fase-num { font-size: 12px; letter-spacing: 0.2em; color: var(--ouro); text-transform: uppercase; font-weight: 700; }
.fases-barra { display: flex; gap: 4px; }
.fases-barra i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
.fases-barra i.on { background: var(--ouro); }
.comando {
  font-family: var(--titulo); font-weight: 600; font-size: clamp(19px, 4.6vw, 24px); line-height: 1.55;
  padding: 24px; border-radius: var(--raio); border: 1px solid rgba(233, 180, 76, 0.4);
  background: linear-gradient(160deg, rgba(233, 180, 76, 0.12), rgba(155, 107, 255, 0.12));
}
.comando em { font-style: normal; color: var(--ouro-claro); }
.tapping { display: flex; align-items: center; gap: 12px; color: var(--suave); font-size: 14px; margin: 14px 0; }
.tapping i { width: 16px; height: 16px; border-radius: 50%; background: var(--ouro); box-shadow: 0 0 16px var(--ouro); animation: bater 0.17s ease-in-out infinite alternate; }
@keyframes bater { to { transform: scale(0.55); opacity: 0.6; } }
.hologramas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.holo { border-radius: 18px; padding: 16px; text-align: center; font-size: 14px; }
.holo.dor { filter: grayscale(1); opacity: 0.6; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); transform: scale(0.85); transition: all 1.4s ease; }
.holo.cura { background: linear-gradient(160deg, rgba(233, 180, 76, 0.3), rgba(155, 107, 255, 0.35)); border: 1px solid var(--ouro); box-shadow: 0 0 40px rgba(233, 180, 76, 0.35); }
.holo.dor.longe { transform: scale(0.2) translateX(-120%); opacity: 0; }
.holo h4 { margin: 0 0 6px; font-family: var(--titulo); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; }
.olhar { text-align: center; font-family: var(--titulo); font-size: 30px; font-weight: 800; min-height: 46px; margin: 18px 0; }
.olhar.esq { color: var(--apagado); transform: translateX(-20px); }
.olhar.dir { color: var(--ouro); transform: translateX(20px); }
.olhar { transition: all 0.4s ease; }
.paragrafos p { font-size: 18px; line-height: 1.7; }
.paragrafos em { font-style: normal; color: var(--ouro-claro); font-weight: 700; }
.decreto { text-align: center; font-family: var(--titulo); font-weight: 800; font-size: clamp(26px, 7vw, 38px); line-height: 1.3; color: var(--ouro-claro); margin: 18px 0; }
.decreto span { display: block; animation: surgir 0.8s ease both; }
.decreto span:nth-child(2) { animation-delay: 0.6s; }
.decreto span:nth-child(3) { animation-delay: 1.2s; }
.decreto span:nth-child(4) { animation-delay: 1.8s; }
.olhos-fechados { text-align: center; padding: 30px 10px; }
.olhos-fechados .tempo { font-family: var(--titulo); font-size: 54px; font-weight: 800; color: var(--ouro); }
#chuva { position: fixed; inset: 0; pointer-events: none; z-index: 55; }
.arco { height: 10px; border-radius: 99px; margin: 10px 0 18px; background: linear-gradient(90deg, #ff5a5a, #ff9d3d, #ffe14d, #5ee07a, #4da3ff, #5b5bd6, #a15bff); box-shadow: 0 0 30px rgba(255, 255, 255, 0.25); }

.rodape { text-align: center; font-size: 13px; color: var(--apagado); padding: 30px 16px calc(30px + env(safe-area-inset-bottom)); }
.rodape a { color: var(--suave); }
.carregando { display: grid; place-items: center; min-height: 60vh; }
.giro { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: var(--ouro); animation: girar 0.9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #2a1650; border: 1px solid var(--ouro); color: var(--texto); padding: 12px 20px; border-radius: 99px; z-index: 80; box-shadow: var(--sombra); animation: surgir 0.3s ease both; max-width: calc(100% - 32px); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

#resp { text-align: center; }
