/* =========================================================
   CONFIGURAÇÃO RÁPIDA → edite o bloco CONFIG em assets/script.js
   ========================================================= */
:root{
  --black:#000000;
  --ink:#ffffff;
  --muted:#a3a3a3;
  --line:#262626;
  --panel:#0d0d0d;
  --yellow:#ffe600;
  --amber:#ffb300;
  --orange:#ff7a00;
  --red:#ff3d00;
  --neon:linear-gradient(180deg,#fff45c 0%,#ffd000 38%,#ff9500 72%,#ff6a00 100%);
  --display:"Exo 2","Arial Black",Impact,sans-serif;
  --body:"Montserrat",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color-scheme:dark;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --black:#000; --ink:#fff; } }
:root[data-theme="dark"]{ --black:#000; --ink:#fff; }
html{ scroll-padding-top:env(safe-area-inset-top,0px); height:100%; }
*,*::before,*::after{ box-sizing:inherit; margin:0; }
body{
  min-height:100%;
  background:var(--black);
  color:var(--ink);
  font-family:var(--body);
  font-size:1rem;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
button,input{ font:inherit; color:inherit; }
:focus-visible{ outline:2px solid var(--yellow); outline-offset:3px; }

/* ---------- Neon wordmark ---------- */
.neon{
  font-family:var(--display);
  font-style:italic;
  font-weight:900;
  text-transform:uppercase;
  line-height:.95;
  letter-spacing:.01em;
  background:var(--neon);
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
  filter:drop-shadow(0 0 6px rgba(255,170,0,.55)) drop-shadow(0 0 22px rgba(255,110,0,.35));
}
.tx{
  font-family:var(--body);
  font-weight:300;
  letter-spacing:.14em;
  color:#fff;
}

/* ---------- Top bar (game HUD) ---------- */
.hud{
  position:sticky; top:env(safe-area-inset-top,0px); z-index:10;
  background:rgba(0,0,0,.86);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  display:none;
}
.hud.on{ display:block; }
.hud-inner{
  max-width:640px; margin:0 auto;
  padding:.75rem 1.25rem;
  display:flex; align-items:center; gap:1rem;
}
.hud-brand{ font-size:.7rem; white-space:nowrap; }
.track{
  flex:1; height:10px; border-radius:99px;
  background:#1a1a1a; overflow:hidden; position:relative;
}
.track-fill{
  height:100%; width:0%;
  background:linear-gradient(90deg,var(--orange),var(--yellow));
  box-shadow:0 0 12px rgba(255,190,0,.7);
  border-radius:99px;
  transition:width .5s cubic-bezier(.2,.8,.2,1);
}
.xp{
  font-family:var(--display); font-style:italic; font-weight:800;
  font-size:1rem; color:var(--yellow); white-space:nowrap;
  position:relative; min-width:4.5rem; text-align:right;
}
.xp-pop{
  position:absolute; right:0; top:0;
  color:var(--yellow); font-size:.9rem;
  animation:pop 1s ease-out forwards; pointer-events:none;
}
@keyframes pop{ from{ opacity:1; transform:translateY(0);} to{ opacity:0; transform:translateY(-26px);} }

/* ---------- Layout ---------- */
main{ max-width:640px; margin:0 auto; padding:0 1.25rem 3rem; }
.screen{ display:none; padding-top:2.25rem; }
.screen.active{ display:block; animation:enter .35s ease-out; }
@keyframes enter{ from{ opacity:0; transform:translateX(18px);} to{ opacity:1; transform:none;} }

/* ---------- Intro ---------- */
.intro{ text-align:center; padding-top:3.5rem; }
.intro .tx{ font-size:clamp(1.1rem,4.5vw,1.6rem); }
.intro .neon{ font-size:clamp(2.6rem,12vw,4.6rem); margin-top:.35rem; }
.intro h1{
  font-family:var(--body); font-weight:700;
  font-size:clamp(1.35rem,5vw,1.85rem); line-height:1.25;
  margin:2.5rem auto 0; max-width:22ch;
}
.intro p.lead{ color:var(--muted); margin:1rem auto 0; max-width:36ch; }
.proof{
  display:flex; justify-content:center; flex-wrap:wrap;
  gap:.5rem 1.5rem; margin-top:2.75rem;
  font-size:.85rem; color:var(--muted);
}
.proof b{ color:#fff; font-weight:600; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem; border:0; cursor:pointer;
  font-family:var(--display); font-style:italic; font-weight:800;
  text-transform:uppercase; letter-spacing:.03em;
  font-size:1.15rem; color:#000;
  padding:1.05rem 2rem; border-radius:14px;
  background:linear-gradient(180deg,#ffe94a,#ffb000 55%,#ff8a00);
  box-shadow:0 0 0 1px rgba(255,220,0,.4), 0 0 28px rgba(255,150,0,.45), inset 0 -3px 0 rgba(0,0,0,.18);
  transition:transform .12s, box-shadow .2s;
  width:100%; max-width:420px;
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 0 0 1px rgba(255,220,0,.6), 0 0 40px rgba(255,150,0,.6), inset 0 -3px 0 rgba(0,0,0,.18); }
.btn:active{ transform:translateY(1px); }
.btn:disabled{ opacity:.35; cursor:not-allowed; transform:none; box-shadow:none; }
.intro .btn{ margin-top:2.5rem; }
.note{ font-size:.8rem; color:var(--muted); margin-top:.9rem; }

/* ---------- Question ---------- */
.q-count{ font-size:.85rem; color:var(--amber); font-weight:600; }
.q-title{
  font-family:var(--body); font-weight:700;
  font-size:clamp(1.35rem,5.2vw,1.75rem); line-height:1.25;
  margin-top:.5rem; max-width:26ch;
}
.q-sub{ color:var(--muted); margin-top:.6rem; max-width:44ch; }
.opts{ display:grid; gap:.7rem; margin-top:1.75rem; }
.opts.grid2{ grid-template-columns:1fr 1fr; }
.opt{
  display:flex; align-items:center; gap:.9rem;
  text-align:left; cursor:pointer;
  background:var(--panel);
  border:1.5px solid var(--line);
  border-radius:14px;
  padding:1rem 1.1rem;
  font-weight:500; font-size:1rem; line-height:1.35;
  transition:border-color .15s, background .15s, transform .12s;
}
.opt:hover{ border-color:#5a4300; background:#141004; }
.opt.picked{
  border-color:var(--yellow);
  background:#1c1500;
  box-shadow:0 0 18px rgba(255,200,0,.25);
}
.opt .ico{ font-size:1.5rem; line-height:1; flex:none; }
.opts.grid2 .opt{ flex-direction:column; align-items:flex-start; padding:1.2rem 1rem; min-height:118px; justify-content:space-between; }
.opts.grid2 .opt .ico{ font-size:2rem; }

/* ---------- Price question (the hero moment) ---------- */
.tag{
  margin-top:1.9rem;
  border:1.5px solid var(--line);
  border-radius:18px;
  background:radial-gradient(120% 90% at 50% 0%,#1d1400 0%,#000 70%);
  padding:1.5rem 1.25rem 1.75rem;
  text-align:center;
}
.tag-cost{ font-size:.9rem; color:var(--muted); }
.tag-cost b{ color:#fff; }
.price-field{
  display:flex; align-items:baseline; justify-content:center; gap:.4rem;
  margin-top:1.1rem;
}
.price-field span{
  font-family:var(--display); font-style:italic; font-weight:800;
  font-size:clamp(1.8rem,8vw,2.6rem); color:var(--amber);
}
.price-field input{
  width:5.2ch; background:transparent; border:0;
  border-bottom:3px solid var(--amber);
  font-family:var(--display); font-style:italic; font-weight:900;
  font-size:clamp(3.2rem,16vw,5rem); line-height:1;
  color:var(--yellow); text-align:center;
  text-shadow:0 0 18px rgba(255,190,0,.55);
  padding:0 0 .1rem;
  -moz-appearance:textfield;
}
.price-field input::-webkit-outer-spin-button,.price-field input::-webkit-inner-spin-button{ -webkit-appearance:none; }
.price-field input::placeholder{ color:#3a2e00; text-shadow:none; }
.price-field input:focus{ outline:none; border-bottom-color:var(--yellow); }
.quick{ display:flex; flex-wrap:wrap; justify-content:center; gap:.5rem; margin-top:1.2rem; }
.chip{
  border:1px solid var(--line); background:#0a0a0a; border-radius:99px;
  padding:.4rem .9rem; font-size:.85rem; cursor:pointer; color:var(--muted);
}
.chip:hover{ color:#fff; border-color:#555; }
.actions{ margin-top:1.75rem; text-align:center; }

/* ---------- Reveal ---------- */
.reveal{ text-align:center; }
.reveal .q-title{ margin-left:auto; margin-right:auto; }
.duel{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  gap:.75rem; margin:2rem 0 0;
}
.duel-side{ border:1.5px solid var(--line); border-radius:16px; padding:1.1rem .5rem; }
.duel-side small{ display:block; font-size:.78rem; color:var(--muted); line-height:1.3; }
.duel-side .v{ font-family:var(--display); font-style:italic; font-weight:900; font-size:clamp(1.9rem,9vw,2.8rem); line-height:1.1; margin-top:.35rem; }
.duel-side.you .v{ color:#8a8a8a; }
.duel-side.us{ border-color:var(--amber); box-shadow:0 0 28px rgba(255,160,0,.25); background:#120c00; }
.duel-vs{ font-family:var(--display); font-style:italic; font-weight:800; color:var(--muted); }
.gap{
  margin-top:1.5rem; padding:1.25rem; border-radius:16px;
  background:#0d0d0d; border:1px dashed #4a3a00;
}
.gap p{ color:var(--muted); font-size:.95rem; }
.gap .big{ font-family:var(--display); font-style:italic; font-weight:900; font-size:clamp(2rem,10vw,3rem); line-height:1.1; margin:.3rem 0; }
.reveal .body{ margin:1.5rem auto 0; max-width:40ch; }

/* ---------- Insight toast (after answer) ---------- */
.insight{
  margin-top:1.25rem; padding:1rem 1.1rem;
  border-left:3px solid var(--amber);
  background:#100b00; border-radius:0 12px 12px 0;
  font-size:.95rem; display:none;
}
.insight.on{ display:block; animation:enter .3s ease-out; }
.insight b{ color:var(--yellow); }

/* ---------- Loading ---------- */
.loading{ text-align:center; padding-top:5rem; }
.ring{
  width:84px; height:84px; margin:0 auto; border-radius:50%;
  border:4px solid #1f1f1f; border-top-color:var(--yellow);
  box-shadow:0 0 30px rgba(255,180,0,.25);
  animation:spin .9s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg);} }
.loading-steps{ list-style:none; padding:0; margin-top:2rem; color:var(--muted); display:grid; gap:.5rem; }
.loading-steps li{ opacity:.3; transition:opacity .3s, color .3s; }
.loading-steps li.done{ opacity:1; color:#fff; }
.loading-steps li.done::before{ content:"✓ "; color:var(--yellow); }

/* ---------- Result ---------- */
.result-head{ text-align:center; }
.badge{
  display:inline-block; margin-top:1rem;
  padding:.4rem 1rem; border-radius:99px;
  border:1px solid var(--amber); color:var(--yellow);
  font-size:.85rem; font-weight:600;
}
.result-head .neon{ font-size:clamp(2.1rem,10vw,3.4rem); margin-top:.9rem; }
.result-head p{ color:var(--muted); margin:1rem auto 0; max-width:40ch; }
.meters{ display:grid; gap:1.1rem; margin-top:2.25rem; }
.meter-top{ display:flex; justify-content:space-between; font-size:.92rem; font-weight:600; }
.meter-top span:last-child{ color:var(--yellow); font-family:var(--display); font-style:italic; }
.meter-bar{ height:12px; background:#1a1a1a; border-radius:99px; overflow:hidden; margin-top:.4rem; }
.meter-bar i{
  display:block; height:100%; width:0;
  background:linear-gradient(90deg,var(--orange),var(--yellow));
  box-shadow:0 0 12px rgba(255,180,0,.6);
  border-radius:99px; transition:width 1.2s cubic-bezier(.2,.8,.2,1);
}
.findings{ list-style:none; padding:0; margin-top:2rem; display:grid; gap:.8rem; }
.findings li{
  padding:1rem 1.1rem; border-radius:14px;
  background:var(--panel); border:1px solid var(--line);
  font-size:.95rem;
}
.findings li b{ color:#fff; }
.offer{
  margin-top:2.5rem; padding:1.6rem 1.25rem;
  border-radius:20px; border:1.5px solid var(--amber);
  background:radial-gradient(120% 80% at 50% 0%,#1f1500 0%,#050300 75%);
  box-shadow:0 0 40px rgba(255,150,0,.18);
}
.offer h2{ font-size:1.35rem; line-height:1.3; }
.offer > p{ color:var(--muted); margin-top:.5rem; font-size:.95rem; }
.form{ display:grid; gap:.8rem; margin-top:1.4rem; }
.form label{ font-size:.85rem; font-weight:600; display:grid; gap:.35rem; }
.form input{
  background:#000; border:1.5px solid #333; border-radius:12px;
  padding:.9rem 1rem; font-size:1rem;
}
.form input:focus{ outline:none; border-color:var(--yellow); }
.form .btn{ margin-top:.6rem; max-width:none; }
.err{ color:#ff8a65; font-size:.85rem; min-height:1.2em; }
.foot{ text-align:center; color:#555; font-size:.75rem; margin-top:3rem; }

/* ---------- Diferenciais (múltipla seleção) ---------- */
.opts.multi .opt{ position:relative; padding-right:3rem; }
.opts.multi .opt::after{
  content:""; position:absolute; right:1.1rem; top:50%; transform:translateY(-50%);
  width:1.3rem; height:1.3rem; border-radius:6px; border:1.5px solid #444;
}
.opts.multi .opt.picked::after{
  content:"✓"; border-color:var(--yellow); background:var(--yellow); color:#000;
  font-weight:800; font-size:.85rem; display:grid; place-items:center;
}
.hint{ font-size:.85rem; color:var(--muted); margin-top:.9rem; }

/* ---------- Choque de realidade ---------- */
.reality{ text-align:center; }
.reality .q-title{ margin-left:auto; margin-right:auto; max-width:18ch; }
.reality .neon{ font-size:clamp(2.3rem,11vw,3.6rem); margin-top:.6rem; }
.stamps{ list-style:none; padding:0; display:grid; gap:.7rem; margin:2rem 0 0; text-align:left; }
.stamps li{
  position:relative; overflow:hidden;
  padding:1rem 1.1rem; border-radius:14px;
  background:var(--panel); border:1.5px solid var(--line);
  color:#7a7a7a; text-decoration:line-through; text-decoration-color:var(--red); text-decoration-thickness:2px;
}
.stamps li::after{
  content:attr(data-stamp);
  position:absolute; right:.9rem; top:50%;
  transform:translateY(-50%) rotate(-8deg) scale(1.6); opacity:0;
  font-family:var(--display); font-style:italic; font-weight:900; font-size:.85rem;
  color:var(--red); border:2px solid var(--red); border-radius:6px; padding:.15rem .5rem;
  text-decoration:none; display:inline-block;
  animation:stamp .35s ease-out forwards; animation-delay:var(--d,0s);
}
@keyframes stamp{ to{ opacity:1; transform:translateY(-50%) rotate(-8deg) scale(1);} }
.reality .body{ margin:1.75rem auto 0; max-width:40ch; font-size:1.05rem; }
.reality .body + .body{ color:var(--muted); font-size:1rem; margin-top:1rem; }

#confetti{ position:fixed; inset:0; pointer-events:none; z-index:50; }

@media (max-width:380px){ .opts.grid2{ grid-template-columns:1fr; } .opts.grid2 .opt{ min-height:0; flex-direction:row; align-items:center; } }
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none !important; transition:none !important; }
}
