/* Quiz "Qual Kaluci é pra sua rotina?" — v1.1
   Preto puro · branco · lima neon. Mobile-first, uma tela por vez.
   Toda animação é transform/opacity (não trava celular) e respeita prefers-reduced-motion. */

:root {
  --ground: #000000;
  --surface: #0b0b0b;
  --surface2: #121212;
  --surface3: #1a1a1a;
  --ink: #ffffff;
  --ink2: #d6d6d6;
  --muted: #8f8f8f;
  --line: #1f1f1f;
  --line2: #2a2a2a;
  --lime: #c8ff1a;
  --lime-2: #a6e600;
  --lime-ink: #0a1200;
  --lime-glow: rgba(200, 255, 26, .35);
  --lime-soft: rgba(200, 255, 26, .10);
  --whats: #25d366;
  --alerta: #ff3b3b;
  --alerta-glow: rgba(255, 59, 59, .45);
  --down: #ff6b57;
  --r: 14px;
  --pad: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* "expo out": rápido no início, assenta suave */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* leve overshoot pra seleção e reveal */
  --dur: .42s;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; background: var(--ground); }
body {
  margin: 0; min-height: 100dvh; background: var(--ground); color: var(--ink);
  font-family: "Barlow", -apple-system, system-ui, sans-serif; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { font-family: "Oswald", "Barlow", sans-serif; font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
button { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.mono { font-family: "Space Mono", monospace; font-variant-numeric: tabular-nums; }
.lime { color: var(--lime); }

/* brilho de fundo que respira — só atmosfera, nunca disputa com o conteúdo */
body::before {
  content: ""; position: fixed; inset: -20% -20% auto -20%; height: 60vh; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(200, 255, 26, .10), transparent 70%);
  animation: respira 9s ease-in-out infinite alternate;
}
@keyframes respira { from { opacity: .55; transform: translateY(-2%); } to { opacity: 1; transform: translateY(2%); } }

.app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 0 var(--pad) 120px; }

/* ---------- topo ---------- */
.topo { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 10px; }
.marca { font-family: "Oswald"; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 1rem; }
.marca b { color: var(--lime); text-shadow: 0 0 18px var(--lime-glow); }
.passo { font-family: "Space Mono", monospace; font-size: .68rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; transition: color .3s; }
.passo.lit { color: var(--lime); }

.barra { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime-2), var(--lime)); box-shadow: 0 0 14px var(--lime-glow); transition: width .55s var(--ease-out); }

/* ---------- telas (entrada/saída) ---------- */
.tela { animation: telaEntra var(--dur) var(--ease-out) both; }
.tela.saindo { animation: telaSai .22s ease-in both; pointer-events: none; }
@keyframes telaEntra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes telaSai { to { opacity: 0; transform: translateY(-10px); } }

.ey { font-family: "Space Mono", monospace; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }

/* ---------- capa ---------- */
/* capa ocupa a altura útil (svh = sem a barra do Safari) e centraliza: o "Começar" cai na zona do polegar */
.tela.capa { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 190px); }
/* line-height folgado: Oswald em caixa alta + acento ("É") encosta na linha de cima com menos que 1.2 no Safari */
.capa h1 { font-size: clamp(2.3rem, 11.5vw, 3.2rem); text-transform: uppercase; letter-spacing: .005em; line-height: 1.24; padding-top: .08em; }
.capa h1 .l { display: block; animation: sobe .7s var(--ease-out) both; }
.capa h1 .l:nth-child(2) { animation-delay: .08s; }
.capa h1 .l:nth-child(3) { animation-delay: .16s; }
.capa h1 span.g { color: var(--lime); text-shadow: 0 0 16px rgba(200, 255, 26, .22); }
@keyframes sobe { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.capa p { color: var(--ink2); font-size: 1.08rem; margin: 18px 0 24px; animation: sobe .7s .22s var(--ease-out) both; }
.capa .btn { animation: sobe .7s .38s var(--ease-out) both; }

/* ---------- perguntas ---------- */
.pergunta h2 { font-size: clamp(1.55rem, 7.2vw, 2rem); margin-bottom: 18px; }
.opcoes { display: grid; gap: 10px; }
.opcao {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r);
  padding: 16px 52px 16px 18px; cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .25s, transform .12s var(--ease-spring), opacity .25s;
  animation: cardEntra .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes cardEntra { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.opcao:hover, .opcao:focus-visible { border-color: #3a3a3a; background: var(--surface2); outline: none; }
.opcao:active { transform: scale(.975); }
.opcao .t { font-family: "Oswald"; font-size: 1.15rem; font-weight: 500; letter-spacing: .01em; }
.opcao .s { font-size: .86rem; color: var(--muted); }
.opcao .chk {
  position: absolute; right: 16px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%) scale(.6);
  border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .35s var(--ease-spring), background .2s, border-color .2s;
}
.opcao .chk svg { width: 14px; height: 14px; stroke: var(--lime-ink); stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s .1s var(--ease-out); }
.opcao.marcada { border-color: var(--lime); background: var(--lime-soft); box-shadow: 0 0 0 1px var(--lime), 0 10px 40px -10px var(--lime-glow); }
.opcao.marcada .t { color: var(--lime); }
.opcao.marcada .chk { opacity: 1; transform: translateY(-50%) scale(1); background: var(--lime); border-color: var(--lime); }
.opcao.marcada .chk svg { stroke-dashoffset: 0; }
.opcoes.travada .opcao:not(.marcada) { opacity: .35; }

.voltar { background: none; border: 0; color: var(--muted); padding: 16px 0 0; cursor: pointer; font-size: .9rem; transition: color .2s; }
.voltar:hover { color: var(--ink); }

/* ---------- análise ---------- */
.analise { text-align: center; padding-top: 12px; }
.radar { position: relative; width: 150px; height: 150px; margin: 8px auto 26px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, var(--lime-glow) 92%, var(--lime) 100%); animation: gira 1.3s linear infinite; -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); mask: radial-gradient(circle, transparent 46%, #000 47%); }
.radar .num { position: relative; font-family: "Oswald"; font-weight: 700; font-size: 2rem; color: var(--ink); z-index: 1; }
@keyframes gira { to { transform: rotate(360deg); } }
.analise h2 { font-size: 1.6rem; margin-bottom: 20px; }
.etapas { display: grid; gap: 10px; text-align: left; max-width: 340px; margin: 0 auto; }
.etapa { display: flex; align-items: center; gap: 12px; font-family: "Space Mono", monospace; font-size: .8rem; color: var(--muted); opacity: 0; transform: translateX(-8px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), color .3s; }
.etapa.on { opacity: 1; transform: none; }
.etapa.ok { color: var(--ink); }
.etapa i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.etapa i svg { width: 10px; height: 10px; stroke: var(--lime-ink); stroke-width: 3; fill: none; opacity: 0; transition: opacity .2s; }
.etapa.ok i { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 12px var(--lime-glow); }
.etapa.ok i svg { opacity: 1; }
.insight { margin: 26px auto 0; max-width: 360px; padding: 16px 18px; border: 1px solid var(--line2); border-left: 3px solid var(--lime); border-radius: 10px; background: var(--surface); text-align: left; font-size: .96rem; color: var(--ink2); opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.insight.on { opacity: 1; transform: none; }
.insight b { color: var(--lime); }

/* ---------- resultado ---------- */
.resultado .eco { font-size: clamp(1.5rem, 6.8vw, 1.9rem); margin: 4px 0 8px; animation: sobe .6s var(--ease-out) both; }
.resultado .eco em { color: var(--lime); font-style: normal; text-shadow: 0 0 22px var(--lime-glow); }
.resultado .sub { color: var(--muted); font-size: .95rem; margin: 0 0 18px; animation: sobe .6s .06s var(--ease-out) both; }

.heroi { background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -40px var(--lime-glow); animation: heroiEntra .7s .1s var(--ease-out) both; }
@keyframes heroiEntra { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.heroi .foto { position: relative; background: #fff; aspect-ratio: 1; }
.heroi .foto img { width: 100%; height: 100%; object-fit: contain; }
.heroi .foto::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line2); }
.heroi .selo { position: absolute; top: 14px; left: 14px; font-family: "Space Mono", monospace; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 700; box-shadow: 0 0 18px var(--lime-glow); }
.heroi .corpo { padding: 4px 18px 18px; }
.heroi .linha { font-family: "Space Mono", monospace; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.heroi h3 { font-size: 1.9rem; margin: 2px 0 12px; text-transform: uppercase; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.badges span { font-family: "Space Mono", monospace; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line2); border-radius: 999px; color: var(--ink2); animation: cardEntra .45s var(--ease-out) both; animation-delay: calc(.35s + var(--i, 0) * 70ms); }
.heroi .resumo { color: var(--ink2); font-size: .96rem; margin: 0 0 16px; }

.match { margin: 0 0 16px; }
.match .row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px; font-family: "Space Mono", monospace; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.match .row b { color: var(--lime); font-size: .82rem; }
.match .track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.match .fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--lime-2), var(--lime)); box-shadow: 0 0 12px var(--lime-glow); transition: width 1.1s .5s var(--ease-out); }
.match .fill.alt { background: var(--line2); box-shadow: none; }

.preco { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.preco .de { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.preco .por { font-family: "Oswald"; font-size: 2.2rem; font-weight: 700; line-height: 1; }
.preco .off { font-family: "Space Mono", monospace; font-size: .7rem; color: var(--lime); font-weight: 700; padding: 3px 8px; border: 1px solid var(--lime); border-radius: 6px; }
.condicoes { font-family: "Space Mono", monospace; font-size: .74rem; color: var(--muted); margin: 8px 0 0; line-height: 1.7; }
.condicoes b { color: var(--ink); }

.confianca { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.confianca div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-family: "Space Mono", monospace; font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }
.confianca svg { width: 20px; height: 20px; stroke: var(--lime); stroke-width: 1.8; fill: none; }

.prova { margin: 26px 0 0; animation: sobe .6s .25s var(--ease-out) both; }
.prova .lbl { font-family: "Space Mono", monospace; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.prova .lead { font-family: "Oswald"; font-size: 1.25rem; margin-bottom: 12px; }
.prova .vwrap { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); }
.prova video { width: 100%; background: #000; aspect-ratio: 9 / 16; max-height: 72vh; object-fit: cover; }
.prova .vwrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.prova .leg { font-size: .86rem; color: var(--muted); margin: 8px 0 0; }
.argumento { background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r); padding: 16px; margin: 16px 0 0; font-size: .97rem; color: var(--ink2); }
.argumento b { color: var(--lime); }

/* cupom censurado */
.cupom-card { margin: 26px 0 0; padding: 16px 18px; border: 1px dashed var(--lime); border-radius: var(--r); background: var(--lime-soft); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; position: relative; overflow: hidden; animation: sobe .6s .3s var(--ease-out) both; }
.cupom-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%); transform: translateX(-100%); animation: brilho 3.2s 1s ease-in-out infinite; pointer-events: none; }
@keyframes brilho { to { transform: translateX(100%); } }
.cupom-card .lbl { font-family: "Space Mono", monospace; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.cupom-card .cod { font-family: "Space Mono", monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
.cupom-card .cod .blur { filter: blur(6px); user-select: none; }
.cupom-card .val { font-family: "Oswald"; font-size: 1.6rem; font-weight: 700; color: var(--lime); text-align: right; line-height: 1; }
.cupom-card .val small { display: block; font-family: "Space Mono"; font-size: .58rem; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }

.acoes { display: grid; gap: 10px; margin: 14px 0 0; }
.acoes .nota { text-align: center; font-size: .84rem; color: var(--muted); }

/* ---------- botões ---------- */
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  border: 0; border-radius: var(--r); padding: 18px; cursor: pointer; overflow: hidden;
  font-family: "Oswald"; font-size: 1.12rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  transition: transform .12s var(--ease-spring), box-shadow .25s, filter .2s;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 34px -10px var(--lime-glow); }
.btn.lime:hover { box-shadow: 0 14px 40px -8px var(--lime-glow); filter: brightness(1.04); }
.btn.lime::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); }
.btn.lime:hover::after { animation: brilho .8s ease-out; }
.btn.whats { background: var(--whats); color: #03210f; box-shadow: 0 10px 34px -10px rgba(37, 211, 102, .4); }
.btn.fantasma { background: transparent; border: 1px solid var(--line2); color: var(--ink); }
.btn.fantasma:hover { border-color: var(--muted); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* CTA fixo (aparece quando o botão da página sai da tela) */
.cta-fixo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(0,0,0,.98) 60%, transparent); transform: translateY(110%); transition: transform .45s var(--ease-out); }
.cta-fixo.on { transform: none; }
.cta-fixo .btn { max-width: 440px; margin: 0 auto; padding: 15px; font-size: 1.02rem; }

/* alternativa */
.alt { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r); padding: 12px; margin: 22px 0 0; text-decoration: none; color: inherit; transition: border-color .2s, transform .12s; animation: sobe .6s .35s var(--ease-out) both; }
.alt:hover { border-color: var(--muted); }
.alt .fig { position: relative; display: block; width: 84px; height: 84px; }
.alt img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 8px; }
/* selo neutro de propósito: o do herói é lime. Ler os dois juntos tem que dizer "1ª e 2ª", não "duas ofertas". */
.alt .selo2 { position: absolute; top: -7px; left: -7px; font-family: "Space Mono", monospace; font-size: .58rem; letter-spacing: .06em; font-weight: 700; padding: 4px 7px; border-radius: 999px; background: var(--surface3); color: var(--ink); border: 1px solid var(--line2); }
.alt .lbl { font-family: "Space Mono", monospace; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
/* o verde carrega o olho por "2ª ... SUAS RESPOSTAS": o miolo cinza vira ligação, não leitura. */
.alt .lbl b { color: var(--lime); font-weight: 700; }
.alt .nm { font-family: "Oswald"; font-size: 1.1rem; }
.alt .pr { font-size: .84rem; color: var(--muted); }
.alt .why { font-size: .72rem; color: var(--ink2); margin-top: 3px; letter-spacing: .02em; }

/* ---------- captura ---------- */
.captura { background: var(--surface); border: 1px solid rgba(37, 211, 102, .5); border-radius: 18px; padding: 20px; margin: 18px 0 0; box-shadow: 0 30px 70px -40px rgba(37, 211, 102, .5); animation: heroiEntra .5s var(--ease-out) both; }
.captura h3 { font-size: 1.4rem; margin-bottom: 4px; }
.captura p { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.campo { margin-bottom: 12px; }
.campo label { display: block; font-family: "Space Mono", monospace; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.campo input, .campo select {
  width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--line2); background: #000; color: var(--ink);
  font-family: "Space Mono", monospace; font-size: 1.05rem; letter-spacing: .03em; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.campo input:focus, .campo select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.campo select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.campo .erro { color: var(--down); font-size: .84rem; margin-top: 6px; min-height: 1.2em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin-bottom: 14px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--lime); width: 18px; height: 18px; flex: none; }
.consent a { color: var(--ink2); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.antibot { margin: 0 0 12px; min-height: 65px; }
.antibot:empty { background: var(--surface2); border-radius: 8px; }

/* ---------- bottom sheet (perda) ---------- */
.veu { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); z-index: 40; opacity: 0; transition: opacity .3s; }
.veu.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 520px; margin: 0 auto; background: var(--surface2); border: 1px solid var(--line2); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 14px var(--pad) calc(24px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .5s var(--ease-out); }
.sheet.on { transform: none; }
.sheet .alca { width: 44px; height: 4px; border-radius: 999px; background: var(--line2); margin: 0 auto 18px; }
.sheet .ey { margin-bottom: 8px; }
.sheet h3 { font-size: 1.7rem; margin-bottom: 8px; }
.sheet h3 em { color: var(--lime); font-style: normal; text-shadow: 0 0 22px var(--lime-glow); }
.sheet p { color: var(--ink2); margin: 0 0 18px; }
.sheet .btn { margin-bottom: 10px; }
.sheet .seguir { display: block; text-align: center; color: var(--muted); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- v2 · pergunta visual (estilo: 3 cards com foto) ---------- */
.opcoes.visual { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opcoes.visual .opcao { padding: 0 0 12px; align-items: center; text-align: center; gap: 4px; overflow: hidden; }
.opcoes.visual .opcao img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; display: block; margin-bottom: 6px; transition: transform .35s var(--ease-out); }
.opcoes.visual .opcao:hover img, .opcoes.visual .opcao.marcada img { transform: scale(1.06); }
.opcoes.visual .opcao .t { font-size: 1rem; padding: 0 6px; }
.opcoes.visual .opcao .s { font-size: .7rem; padding: 0 8px; line-height: 1.25; }
.opcoes.visual .opcao .chk { top: 8px; right: 8px; transform: scale(.6); }
.opcoes.visual .opcao.marcada .chk { transform: scale(.85); }

/* ---------- v2 · bolinhas de cor no herói ---------- */
.cores { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 12px; }
.cores[hidden] { display: none; }
.cor { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--line2); border-radius: 999px; padding: 5px 10px 5px 5px; color: var(--muted); cursor: pointer; font-family: "Space Mono", monospace; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; transition: border-color .18s, color .18s, box-shadow .25s, transform .12s var(--ease-spring); }
.cor i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 0 0 2px #000; }
.cor:active { transform: scale(.95); }
.cor.on { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 6px 24px -8px var(--lime-glow); }
.heroi .foto img { transition: opacity .18s, transform .3s var(--ease-out); }
.heroi .foto img.troca { opacity: 0; transform: scale(.97); }
.heroi.escolhido .selo { background: var(--ink); color: #000; box-shadow: none; }
.heroi.pop { animation: heroiPop .5s var(--ease-spring); }
@keyframes heroiPop { 0% { transform: scale(.98); } 60% { transform: scale(1.012); } 100% { transform: none; } }

/* ---------- v2 · "Não é bem isso?" ---------- */
.naoe { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line2); animation: sobe .6s .4s var(--ease-out) both; }
.naoe h3 { font-size: 1.5rem; margin: 0 0 14px; }
.saida { display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; color: inherit; cursor: pointer; transition: border-color .18s, background .18s, transform .12s var(--ease-spring); }
.saida:hover, .saida:focus-visible { border-color: #3a3a3a; background: var(--surface2); outline: none; }
.saida:active { transform: scale(.985); }
.saida .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--lime-soft); display: grid; place-items: center; }
.saida .ic svg { width: 20px; height: 20px; stroke: var(--lime); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.saida b { display: block; font-family: "Oswald"; font-weight: 500; font-size: 1.05rem; }
.saida small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.saida i { font-style: normal; color: var(--muted); font-size: 1.3rem; transition: transform .25s var(--ease-out); }
.saida.aberto { border-color: var(--lime); }
.saida.aberto i { transform: rotate(90deg); color: var(--lime); }
.saida[hidden] { display: none; }

/* carrossel do ranking: rola na horizontal, um card quase inteiro por vez */
.ranking { margin: -2px 0 12px; animation: sobe .4s var(--ease-out) both; }
.ranking[hidden] { display: none; }
.trilho { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.trilho::-webkit-scrollbar { display: none; }
.rk { flex: 0 0 78%; scroll-snap-align: start; text-align: left; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r); padding: 12px; color: inherit; cursor: pointer; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto auto auto auto; column-gap: 12px; align-content: start; transition: border-color .18s, transform .12s var(--ease-spring); animation: cardEntra .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.rk:hover, .rk:focus-visible { border-color: var(--lime); outline: none; }
.rk:active { transform: scale(.985); }
.rk img { grid-row: 1 / span 5; width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 8px; }
.rk .pos { font-family: "Space Mono", monospace; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.rk .nm { font-family: "Oswald"; font-size: 1.15rem; text-transform: uppercase; line-height: 1.1; }
.rk .ln { font-size: .74rem; color: var(--muted); }
.rk .pq { font-size: .82rem; color: var(--ink2); margin: 6px 0 4px; line-height: 1.35; }
.rk .pr { font-size: .8rem; color: var(--ink); }
.rk .pegar { grid-column: 1 / -1; margin-top: 10px; text-align: center; font-family: "Oswald"; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--lime); color: var(--lime); border-radius: 10px; padding: 8px; transition: background .18s, color .18s; }
.rk:hover .pegar { background: var(--lime); color: var(--lime-ink); }

/* ---------- v3 · cupom liberado na página ---------- */
.liberado { background: var(--surface); border: 1px solid var(--lime); border-radius: 18px; padding: 20px; margin: 18px 0 0; box-shadow: 0 0 0 1px var(--lime), 0 30px 80px -40px var(--lime-glow); animation: heroiEntra .5s var(--ease-out) both; }
.liberado[hidden] { display: none; }
.liberado h3 { font-size: 1.35rem; margin: 0 0 14px; }
.codigo-box { display: grid; grid-template-columns: 1fr auto; align-items: stretch; gap: 8px; }
.codigo { font-size: clamp(1.9rem, 9vw, 2.6rem); font-weight: 700; letter-spacing: .12em; color: var(--lime); background: #000; border: 1px dashed var(--lime); border-radius: 12px; padding: 12px 14px; text-align: center; text-shadow: 0 0 24px var(--lime-glow); user-select: all; }
.copiar { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 84px; background: var(--lime); color: var(--lime-ink); border: 0; border-radius: 12px; font-family: "Oswald"; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: transform .12s var(--ease-spring), background .2s; }
.copiar svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.copiar:active { transform: scale(.95); }
.copiar.ok { background: var(--ink); }
.relogio { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; margin: 14px 0 8px; padding: 12px 14px; background: rgba(255, 59, 59, .10); border: 1px solid rgba(255, 59, 59, .55); border-radius: 12px; color: var(--ink2); font-size: .88rem; box-shadow: 0 0 0 1px rgba(255, 59, 59, .15), 0 12px 40px -18px var(--alerta-glow); }
.relogio svg { width: 22px; height: 22px; stroke: var(--alerta); stroke-width: 2; fill: none; stroke-linecap: round; flex: none; grid-row: 1 / span 2; }
.relogio b { color: var(--ink); }
.relogio .mono { display: block; color: var(--alerta); font-size: 1.9rem; font-weight: 700; line-height: 1.05; letter-spacing: .06em; text-shadow: 0 0 18px var(--alerta-glow); }
.relogio .ate { grid-column: 2; font-size: .8rem; color: var(--muted); }
.relogio .lbl-resta { font-family: "Space Mono", monospace; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--alerta); }
.liberado.urgente .relogio { animation: alerta 1s ease-in-out infinite; }
.liberado.urgente .relogio .mono { animation: pisca 1s steps(2) infinite; }
@keyframes pisca { to { opacity: .35; } }
@keyframes alerta { 0%, 100% { border-color: rgba(255, 59, 59, .55); } 50% { border-color: var(--alerta); box-shadow: 0 0 0 1px var(--alerta), 0 12px 40px -14px var(--alerta-glow); } }
.liberado-sub { color: var(--muted); font-size: .84rem; margin: 0 0 14px; }
.liberado .btn { margin-top: 4px; flex-direction: column; gap: 2px; line-height: 1.1; }
.liberado .btn #btn-produto-modelo { display: block; font-family: "Space Mono", monospace; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.liberado .nota { margin-top: 8px; }
.liberado.expirado { border-color: var(--line2); box-shadow: none; }
.liberado.expirado .codigo { color: var(--muted); border-color: var(--line2); text-shadow: none; filter: blur(3px); }
.liberado.expirado .copiar { display: none; }
.liberado.expirado .relogio { background: none; border-color: var(--line2); box-shadow: none; animation: none; }
.liberado.expirado .relogio svg, .liberado.expirado .relogio .mono, .liberado.expirado .relogio .ate { grid-column: 2; font-size: .8rem; color: var(--muted); }
.relogio .lbl-resta { color: var(--muted); stroke: var(--muted); text-shadow: none; animation: none; }
.cupom-card[hidden] { display: none; }

/* ---------- v3 · catálogo dos 9 ---------- */
.catalogo { margin: -2px 0 12px; animation: sobe .4s var(--ease-out) both; }
.catalogo[hidden] { display: none; }
.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ct { background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r); padding: 0 0 10px; color: inherit; cursor: pointer; text-align: center; overflow: hidden; transition: border-color .18s, transform .12s var(--ease-spring); animation: cardEntra .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.ct:hover, .ct:focus-visible { border-color: var(--lime); outline: none; }
.ct:active { transform: scale(.97); }
.ct img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; display: block; margin-bottom: 8px; }
.ct .nm { font-family: "Oswald"; font-size: .95rem; text-transform: uppercase; line-height: 1.1; padding: 0 6px; }
.ct .ln { font-size: .66rem; color: var(--muted); padding: 0 6px; }
.ct .pr { font-size: .74rem; color: var(--ink2); margin-top: 4px; }
.ct.atual { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.ct.atual .nm { color: var(--lime); }

.rodape { margin-top: 36px; font-family: "Space Mono", monospace; font-size: .62rem; color: var(--muted); line-height: 1.7; }
.rodape a { color: var(--muted); }

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  body::before { animation: none; }
}
