:root {
  --bg: #f7f5fb;
  --surface: #ffffff;
  --ink: #17132a;
  --muted: #777290;
  --line: #e9e5f2;
  --soft: #f1edf9;
  --brand: #5b2bd1;
  --brand-ink: #3d1a9a;
  --brand-soft: #ece5ff;
  --saffron: #ff8a00;
  --saffron-soft: #fff1df;
  --good: #16a05a;
  --bad: #e5484d;
  --wa: #1fa855;
  --radius: 18px;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.45 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button { font: inherit; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }

.app { max-width: 540px; margin: 0 auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { margin: 0; display: flex; align-items: center; font: 400 30px/1 'Bagel Fat One', 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: 0; color: var(--brand); }
.logo .eyes { width: 1.27em; height: 0.83em; margin: 0 0.05em 0 0.04em; overflow: visible; transform: translateY(0.05em); }
.eye { transform-box: fill-box; transform-origin: center; transition: transform .2s var(--ease-spring); }
.eye .white { fill: #fff; stroke: #d4c6f6; stroke-width: 2; filter: drop-shadow(0 1px 1.5px rgba(91,43,209,.18)); }
.eye .pupil { fill: var(--ink); }
.logo.blink .eye { transform: scaleY(.1); transition-duration: .08s; }
.logo.wide .eye { transform: scale(1.3); }
.logo.squint .eye { transform: scaleY(.3); }

.pips { display: flex; gap: 6px; list-style: none; margin: 0 auto; padding: 0; }
.pips li {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700;
  transition: background .3s, transform .3s var(--ease-spring);
}
.pips li.done { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; }
.pips li.now { background: var(--brand); color: #fff; animation: pulse 1.8s ease-in-out infinite; }
.pips li.final:not(.done):not(.now) { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.pips li.pop { animation: pipPop .45s var(--ease-spring); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(91,43,209,.35); } 50% { box-shadow: 0 0 0 6px rgba(91,43,209,0); } }
@keyframes pipPop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

.meter { display: flex; align-items: baseline; gap: 2px; min-width: 64px; justify-content: flex-end; }
.meter b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.meter span { color: var(--muted); font-weight: 600; }

/* ---------- flight strip ---------- */
.strip {
  position: relative; height: clamp(210px, 38vh, 360px);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 rgba(23,19,42,.04), 0 8px 24px -12px rgba(23,19,42,.25);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.place {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700; transition: transform .3s var(--ease-spring);
}
.place.bump { transform: scale(1.12); }

/* ---------- views ---------- */
.col { padding-top: 22px; }
.view { animation: viewIn .45s var(--ease-out) both; }
.view.out { animation: viewOut .25s ease-in both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes viewOut { to { opacity: 0; transform: translateY(-10px); } }

.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.hero { margin: 0 0 22px; font-size: clamp(28px, 7vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -0.035em; }
.hl { color: var(--brand); }
.howto { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.howto li { display: flex; gap: 14px; align-items: flex-start; }
.howto span { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; }
.howto b { display: block; font-size: 15px; }
.howto div { font-size: 14px; color: var(--muted); }
.fine { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* buttons */
.primary, .secondary {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 54px;
  border: 0; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s var(--ease-spring), box-shadow .2s, background .2s;
}
.primary { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(23,19,42,.6); }
.primary:hover { transform: translateY(-1px); }
.primary:active, .secondary:active, .hit:active { transform: scale(.97); }
.primary:focus-visible, .secondary:focus-visible, .hit:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.secondary { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.primary.wa { background: var(--wa); box-shadow: 0 6px 16px -8px rgba(31,168,85,.7); }

/* ---------- ball ---------- */
.ball-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.chip { padding: 4px 10px; border-radius: 99px; background: var(--saffron-soft); color: #b85f00; font-size: 12px; }
.chip.final { background: var(--brand); color: #fff; }
.prompt { margin: 10px 0 20px; font-size: clamp(24px, 6vw, 30px); line-height: 1.18; font-weight: 800; letter-spacing: -0.03em; }

.ask { transition: opacity .25s, transform .3s var(--ease-out); }
.ask.gone { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.timer { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
#timerBar { height: 100%; width: 100%; background: var(--brand); border-radius: 99px; transform-origin: left; }
.timer.low #timerBar { background: var(--bad); }
.timer.low { animation: tick 1s steps(1) infinite; }
@keyframes tick { 50% { opacity: .55; } }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }

/* the bat */
.bat-row { display: flex; align-items: center; gap: 10px; }
.bat { flex: 1; display: flex; align-items: center; height: 56px; }
.grip { width: 44px; height: 16px; flex: none; border-radius: 8px 2px 2px 8px; background: repeating-linear-gradient(100deg, #2a2338 0 6px, #453b59 6px 9px); }
.neck { width: 14px; height: 20px; flex: none; background: linear-gradient(#e6cb93, #cfae70); clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 72%); }
.blade {
  flex: 1; height: 54px; border-radius: 8px 27px 27px 8px;
  background: repeating-linear-gradient(90deg, rgba(150,100,30,.06) 0 2px, transparent 2px 22px), linear-gradient(#f7e7c2, #edd5a1 60%, #dfc085);
  box-shadow: inset 0 -4px 0 rgba(120,80,20,.1), 0 4px 12px -6px rgba(90,60,10,.45);
  transition: box-shadow .2s;
}
.bat:focus-within .blade { box-shadow: inset 0 -4px 0 rgba(120,80,20,.1), 0 0 0 3px var(--brand-soft), 0 0 0 4.5px var(--brand); }
.blade input { width: 100%; height: 100%; border: 0; outline: none; background: transparent; padding: 0 22px 0 16px; font: 700 18px 'Plus Jakarta Sans', sans-serif; color: #2b1a06; }
.blade input::placeholder { color: rgba(43,26,6,.38); font-weight: 600; }
.bat { transform-origin: 6px 50%; }
.bat.swing { animation: chop .62s cubic-bezier(.3, 0, .2, 1); }
/* back-lift → hard downward chop → impact squash → spring back */
@keyframes chop {
  0%   { transform: rotate(0); }
  30%  { transform: rotate(-6deg); }
  44%  { transform: rotate(9deg) translateY(3px); animation-timing-function: ease-out; }
  52%  { transform: rotate(7deg) translateY(4px) scaleY(.94); }
  74%  { transform: rotate(-1.5deg); }
  100% { transform: rotate(0); }
}
.bat-row { position: relative; }
.bat-row .thwack {
  position: absolute; right: 70px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  border: 3px solid var(--saffron); opacity: 0; pointer-events: none;
}
.bat.swing ~ .thwack { animation: thwack .5s ease-out .26s; }
@keyframes thwack { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(4); } }
.hit { height: 54px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 800; transition: transform .15s var(--ease-spring); }
.hit:disabled { opacity: .45; }

/* ---------- reveal ---------- */
.reveal { display: grid; gap: 10px; margin-top: -6px; scroll-margin-bottom: 16px; }
.step { opacity: 0; transform: translateY(10px) scale(.98); }
.step.in { opacity: 1; transform: none; transition: opacity .35s var(--ease-out), transform .45s var(--ease-spring); }

.r-answer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 17px; }
.r-answer .mark { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; }
.r-answer.ok .mark { background: var(--good); }
.r-answer.bad .mark { background: var(--bad); }
.r-answer.bad #rText { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(229,72,77,.6); }

.r-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.r-rarity, .r-shot { padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.r-rarity b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.r-rarity span { font-size: 13px; color: var(--muted); font-weight: 600; }
.r-rarity.note b { font-size: 16px; letter-spacing: -0.01em; line-height: 1.3; }
.r-shot { display: flex; align-items: center; gap: 12px; }
.r-shot .emoji { font-size: 34px; line-height: 1; }
.r-shot b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.r-shot #rDist { font-size: 14px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.r-shot.big { background: var(--brand); box-shadow: 0 10px 24px -12px rgba(91,43,209,.8); color: #fff; }
.r-shot.big #rDist { color: #d9ccff; }
.r-shot.in.stamp { animation: stamp .55s var(--ease-spring); }
@keyframes stamp { 0% { transform: scale(1.35); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-radius: 10px; background: var(--soft); font-size: 14px; font-weight: 600; overflow: hidden; }
.bars li i { position: absolute; inset: 0 auto 0 0; width: 0; background: #e2d9fa; transition: width .7s var(--ease-out); }
.bars li span, .bars li b { position: relative; }
.bars li b { font-variant-numeric: tabular-nums; }
.bars li.mine { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); }
.bars li.mine i { background: #cdbcff; }
.bars li.mine span::after { content: 'You'; margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.bars li.gap { background: none; padding: 0 12px; height: 12px; color: var(--muted); line-height: 0; justify-content: center; }


/* ---------- results ---------- */
.sc-total { display: flex; align-items: baseline; gap: 6px; }
.sc-total b { font-size: clamp(64px, 18vw, 88px); font-weight: 800; letter-spacing: -0.06em; line-height: .95; font-variant-numeric: tabular-nums; color: var(--brand); }
.sc-total span { font-size: 22px; font-weight: 700; color: var(--muted); }
.sc-dist { margin: 18px 0 6px; padding: 14px 14px 8px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sc-dist svg { display: block; width: 100%; height: auto; overflow: visible; }
.sc-dist rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .6s var(--ease-out); transition-delay: var(--d, 0ms); }
.sc-dist svg.grown rect { transform: scaleY(1); }
.sc-dist rect.below { fill: #cdbcff; }
.sc-dist rect.above { fill: var(--line); }
.sc-dist rect.you { fill: var(--brand); }
.sc-dist .marker rect { fill: var(--ink); transform: none; transition: none; }
.sc-dist .marker text { fill: #fff; font: 700 10px 'Plus Jakarta Sans', sans-serif; text-anchor: middle; }
.sc-dist .marker { opacity: 0; transition: opacity .3s .55s; }
.sc-dist svg.grown .marker { opacity: 1; }
.sc-dist .axis { stroke: var(--line); }
.sc-dist .tick { fill: var(--muted); font: 600 9px 'Plus Jakarta Sans', sans-serif; }
.sc-beat { margin: 10px 0 18px; font-size: 17px; font-weight: 700; }
.sc-beat b { color: var(--brand); }
.sc-rows { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.sc-rows li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sc-rows .e { font-size: 20px; text-align: center; }
.sc-rows .t { min-width: 0; }
.sc-rows .t b { display: block; font-size: 14px; }
.sc-rows .t span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-rows .d { font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-rows li.best { box-shadow: inset 0 0 0 2px var(--saffron); background: #fffaf3; }
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share .wa { grid-column: 1 / -1; }
.share .secondary { height: 48px; }
.share .secondary.done { box-shadow: inset 0 0 0 2px var(--good); color: var(--good); }
.answers-unused { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.answers summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.ans-block { margin-top: 14px; font-size: 13.5px; }
.ans-block p { margin: 0 0 6px; font-weight: 700; }
.ans-block .bars li { padding: 6px 10px; font-size: 13px; }
.ans-block .deep { margin: 6px 0 0; color: var(--muted); }

@media (max-width: 420px) {
  .bar { gap: 8px; }
  .logo { font-size: 25px; }
  .pips { gap: 4px; }
  .pips li { width: 22px; height: 22px; font-size: 11px; }
  .meter b { font-size: 18px; }
  .grip { width: 28px; }
  .hit { padding: 0 14px; }
  .r-rarity b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

#nextBtn { scroll-margin-bottom: 20px; }
@media (max-height: 700px) { .strip { height: 190px; } .prompt { margin-bottom: 14px; } }

/* ---------- autocorrect note ---------- */
.r-txt { display: flex; flex-direction: column; min-width: 0; }
#rFix { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- answer explorer ---------- */
.explore { margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.explore h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.ex-balls { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ex-balls button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px; border: 0; border-radius: 10px; background: var(--soft); font-weight: 800; font-size: 14px; transition: background .2s, color .2s; }
.ex-balls button span { font-size: 9.5px; font-weight: 600; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-balls button[aria-selected="true"] { background: var(--ink); color: #fff; }
.ex-balls button[aria-selected="true"] span { color: rgba(255,255,255,.7); }
.ex-prompt { margin: 12px 0 10px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.ex-tiers { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ex-tiers::-webkit-scrollbar { display: none; }
.ex-tiers button { flex: none; padding: 7px 11px; border: 0; border-radius: 99px; background: var(--soft); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.ex-tiers button i { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 2px; }
.ex-tiers button[aria-checked="true"] { background: var(--brand); color: #fff; }
.ex-tiers button[aria-checked="true"] i { color: rgba(255,255,255,.75); }
.ex-tiers button:disabled { opacity: .4; cursor: default; }
.ex-search { width: 100%; margin: 10px 0 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--soft); font: 500 15px 'Plus Jakarta Sans', sans-serif; color: var(--ink); outline: none; }
.ex-search:focus { box-shadow: 0 0 0 2px var(--brand); background: var(--surface); }
.ex-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.ex-list li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ex-list li:last-child { border-bottom: 0; }
.ex-list .e { text-align: center; }
.ex-list .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ex-list b { font-variant-numeric: tabular-nums; font-size: 13px; }
.ex-list li.mine { background: var(--brand-soft); border-radius: 10px; border-bottom-color: transparent; }
.ex-list li.mine .n::after { content: 'You'; margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; }
.ex-list li.empty { display: block; color: var(--muted); text-align: center; padding: 18px 0; border: 0; }
.ex-count { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- rarity ladder ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ladder li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; padding: 8px 4px; border-radius: 12px; background: var(--soft); opacity: .55; transition: opacity .3s, transform .4s var(--ease-spring), background .3s; }
.ladder li span { font-size: 18px; line-height: 1.1; }
.ladder li b { font-size: 12px; font-weight: 800; }
.ladder li:not(:last-child)::after { content: ''; position: absolute; right: -6px; top: 50%; width: 6px; height: 2px; background: var(--line); }
.ladder li.on { opacity: 1; background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand); transform: translateY(-2px); }
.ladder li.on.t-heli { box-shadow: inset 0 0 0 2px #e0a400; background: linear-gradient(135deg, #fff6d6, #ffe08a); }
.intro-ladder { margin: -8px 0 24px; }
.intro-ladder li { opacity: 1; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.intro-ladder li.t-heli { background: linear-gradient(135deg, #fffaf0, #fff0c2); box-shadow: inset 0 0 0 1px #f0d27a; }

/* ---------- the golden Helicopter moment ---------- */
.r-shot.gold {
  color: #4a3300; box-shadow: 0 12px 30px -10px rgba(224,164,0,.8), inset 0 0 0 2px #f5c542;
  background: linear-gradient(115deg, #ffd34d 0%, #fff1b8 22%, #ffc21a 45%, #ffe89a 60%, #f5b400 100%);
  background-size: 250% 100%; animation: goldSheen 1.6s linear infinite;
}
.r-shot.gold #rDist { color: #7a4f00; }
.r-shot.gold.in.stamp { animation: stampGold .7s var(--ease-spring), goldSheen 1.6s linear infinite .7s; }
@keyframes goldSheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes stampGold { 0% { transform: scale(1.6) rotate(-4deg); opacity: 0; filter: brightness(2); } 60% { transform: scale(.96) rotate(1deg); opacity: 1; } 100% { transform: scale(1); filter: none; } }
.r-shot.big.in.stamp { animation: stamp .55s var(--ease-spring); }
body.gold-moment .strip { box-shadow: 0 0 0 3px #ffd34d, 0 0 40px 6px rgba(255,200,40,.55); transition: box-shadow .2s; }
body.gold-moment .meter b { color: #d99a00; transform: scale(1.12); }
.meter b { display: inline-block; transition: transform .3s var(--ease-spring), color .3s; }
.pips li.done.heli { background: linear-gradient(135deg, #fff1b8, #ffc21a); box-shadow: 0 0 0 2px #f5c542; }

.ladder li b { line-height: 1.15; }
.ladder li em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.ladder li.t-heli em { color: #b07a00; }

/* ---------- Bonus Googly ---------- */
.blade { position: relative; display: flex; align-items: center; }
.blade .unit { order: 2; flex: none; padding-right: 22px; font-weight: 700; font-size: 14px; color: rgba(43,26,6,.55); white-space: nowrap; }
.pips li.bonus:not(.done):not(.now) { box-shadow: inset 0 0 0 1.5px var(--saffron); color: #b85f00; background: var(--saffron-soft); }
.sc-rows li.bonus { background: #fffaf3; }
.numline { position: relative; height: 74px; margin: 4px 6px 0; }
.nl-track { position: absolute; left: 0; right: 0; top: 40px; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.nl-band { position: absolute; top: 0; bottom: 0; background: #cdbcff; border-radius: 99px; }
.nl-mark { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: left .9s var(--ease-out); }
.nl-mark b { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.nl-mark span { font-size: 10px; font-weight: 700; color: var(--muted); order: 3; margin-top: 18px; }
.nl-mark::after { content: ''; order: 2; width: 3px; height: 18px; margin-top: 2px; border-radius: 2px; }
.nl-mark.actual b { background: var(--ink); color: #fff; }
.nl-mark.actual::after { background: var(--ink); }
.nl-mark.guess b { background: var(--brand); color: #fff; }
.nl-mark.guess::after { background: var(--brand); }
.numline:not(.go) .nl-mark { left: 0 !important; opacity: 0; }
.numline .nl-mark { opacity: 1; transition: left .9s var(--ease-out), opacity .3s; }
.blade input { flex: 1; min-width: 0; width: auto; }

/* number line: your guess above the track, the actual answer below — never overlapping */
.numline { height: 92px; }
.nl-track { top: 40px; }
.nl-mark span { display: none; }
.nl-mark.guess { top: 4px; }
.nl-mark.guess b { order: 1; } .nl-mark.guess::after { order: 2; height: 14px; }
.nl-mark.actual { top: 44px; }
.nl-mark.actual::after { order: 1; height: 12px; margin: 0 0 2px; } .nl-mark.actual b { order: 2; }

/* ---------- side menu ---------- */
.menu-btn { width: 40px; height: 40px; flex: none; margin-left: -8px; border: 0; border-radius: 12px; background: transparent; display: grid; place-content: center; gap: 4px; }
.menu-btn span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease-out), opacity .2s; }
.menu-btn:hover { background: var(--soft); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(23,19,42,.35); opacity: 0; transition: opacity .25s; }
.scrim.open { opacity: 1; }
.drawer { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); padding: 22px 14px; background: var(--surface);
  box-shadow: 12px 0 40px -12px rgba(23,19,42,.35); transform: translateX(-104%); transition: transform .3s var(--ease-out); display: flex; flex-direction: column; gap: 6px; }
.drawer.open { transform: none; }
.drawer-title { margin: 4px 10px 14px; font: 400 26px/1 'Bagel Fat One', sans-serif; color: var(--brand); }
.drawer hr { border: 0; height: 1px; background: var(--line); margin: 8px 6px; width: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 14px; background: transparent; text-align: left; transition: background .2s; }
.nav-item:hover { background: var(--soft); }
.nav-item.active { background: var(--brand-soft); }
.nav-item .ni { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; }
.nav-item div { flex: 1; min-width: 0; }
.nav-item b { display: block; font-size: 15px; }
.nav-item small { display: block; font-size: 12px; color: var(--muted); }
.nav-item .lock { font-style: normal; font-size: 14px; }

/* ---------- sheets ---------- */
dialog.sheet { border: 0; padding: 0; width: min(420px, calc(100vw - 32px)); border-radius: 22px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(23,19,42,.5); }
dialog.sheet::backdrop { background: rgba(23,19,42,.45); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: viewIn .3s var(--ease-out); }
dialog.sheet form { padding: 26px 22px 22px; text-align: center; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft); font-size: 14px; color: var(--muted); }
.sheet-icon { font-size: 34px; }
dialog.sheet h3 { margin: 6px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sheet-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.price { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px;
  background: linear-gradient(115deg, #fff6d6, #ffe08a); box-shadow: inset 0 0 0 1.5px #f0cf6b; font-weight: 700; }
.price b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
dialog.sheet input, dialog.sheet textarea { width: 100%; margin-bottom: 10px; padding: 13px 14px; border: 0; border-radius: 12px; background: var(--soft);
  font: 500 15px 'Plus Jakarta Sans', sans-serif; color: var(--ink); outline: none; resize: vertical; }
dialog.sheet input:focus, dialog.sheet textarea:focus { box-shadow: 0 0 0 2px var(--brand); background: var(--surface); }
.form-msg { min-height: 1.2em; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.form-msg.err { color: var(--bad); }
.after-send { display: none; margin: 6px 0 4px; font-size: 18px; font-weight: 800; color: var(--good); }
.after-send small { font-size: 13px; font-weight: 600; color: var(--muted); }
form.sent .before-send { display: none; }
form.sent .after-send { display: block; animation: viewIn .3s var(--ease-out); }
@media (max-width: 420px) {
  .bar { gap: 6px; }
  .menu-btn { width: 32px; margin-left: -6px; }
  .menu-btn span { width: 18px; }
  .logo { font-size: 22px; }
  .pips { gap: 3px; }
  .pips li { width: 20px; height: 20px; font-size: 10px; }
  .pips li.done { font-size: 11px; }
  .meter { min-width: 0; }
  .meter b { font-size: 16px; }
}

/* ---------- ad slots (hidden until ads are switched on in js/ads.js) ---------- */
.ad-slot { display: block; width: 100%; margin: 14px 0; border-radius: 14px; background: var(--soft); overflow: hidden; }
.drawer-foot { margin: auto 0 0; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.drawer-foot a, .fine.legal a, .form-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.drawer-foot a:hover { color: var(--brand); }
.fine.legal { font-size: 11.5px; line-height: 1.5; margin-top: 10px; }
.form-legal { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.price { display: none; }

/* ---------- T20 ---------- */
.t20-btn { margin-top: 10px; }
.more-btn { margin: 4px 0 10px; background: var(--brand); box-shadow: 0 6px 16px -8px rgba(91,43,209,.7); }
body.t20 .daily-only { display: none; }
.pips li.count { width: auto; padding: 0 12px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; gap: 2px; display: inline-flex; }
.pips li.count b { font-weight: 800; }
.ex-balls { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
