/* REKT ARCADE - Academy, new game pieces, learning links, records. Same neon-arcade tokens as the rest of the site. */

/* ---------- shared bits ---------- */
.btn.sm { min-height: 44px; padding: 0 14px; font-size: .78rem; }
.btn.mag { --c: var(--mag); --d: var(--mag-d); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.warnc { color: var(--gold); }
.band.token-band { padding: 30px 0; }
.token-title { margin: 10px 0 8px; font-size: clamp(2.2rem, 10vw, 4.2rem); line-height: .95; color: var(--text); text-shadow: 3px 3px 0 var(--mag), 6px 6px 0 var(--mag-d); transform: skewX(-5deg); transform-origin: left bottom; }
.token-title span { display: block; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .4em; color: var(--lime); text-shadow: none; margin-top: 12px; transform: none; }

/* ---------- terminal frame (academy identity) ---------- */
.term { position: relative; border: 2px solid var(--mag); border-radius: 6px 18px 6px 18px; background: linear-gradient(160deg, rgba(255,43,214,.10), rgba(16,14,46,.92) 40%), var(--panel); box-shadow: 0 0 0 4px #05041a, 0 0 0 5px var(--line2), 0 0 50px rgba(255,43,214,.16); overflow: hidden; }
.term::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.025) 3px 4px); }
.term-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #0a0820; border-bottom: 1px solid var(--line2); font-family: var(--f-mono); font-size: .7rem; color: var(--dim); }
.term-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); } .term-head i:nth-child(2) { background: var(--gold); } .term-head i:nth-child(3) { background: var(--lime); } .term-head span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { position: relative; z-index: 1; padding: 20px 18px 22px; }
@media (min-width: 720px) { .term-body { padding: 28px 30px 30px; } }

/* home academy band */
.academy-sec { position: relative; border: 2px solid var(--mag); border-radius: 6px 22px 6px 22px; background: linear-gradient(135deg, rgba(255,43,214,.14), rgba(16,14,46,.95) 45%), var(--panel); box-shadow: 0 0 0 4px #05041a, 0 0 0 5px var(--line2), 0 0 60px rgba(255,43,214,.18); overflow: hidden; }
.academy-sec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(115deg, var(--mag) 0 14px, #05041a 14px 28px); z-index: 2; }
.academy-body { display: grid; gap: 24px; padding: 22px 18px 24px; }
@media (min-width: 860px) { .academy-body { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 34px 34px 32px; gap: 36px; } }
.academy-copy p { color: #dcd9ff; max-width: 52ch; }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: m; }
.mod-list a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px 6px 6px; background: rgba(5,4,26,.6); border: 1px solid var(--line2); border-radius: 8px; color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.mod-list a:hover { border-color: var(--mag); transform: translateX(3px); }
.mod-list b { display: grid; place-items: center; height: 32px; font-family: var(--f-display); color: #0a0820; background: var(--mag); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.mod-list span { font-size: .9rem; font-weight: 700; } .mod-list em { font-style: normal; font-family: var(--f-mono); font-size: .75rem; color: var(--dim); }
.mod-list li.done b { background: var(--lime); } .mod-list li.done em { color: var(--lime); }

/* academy index */
.academy-hero { margin-bottom: 28px; }
.academy-hero h1 { color: var(--text); text-shadow: 3px 3px 0 var(--mag), 6px 6px 0 var(--mag-d); }
.mod { margin: 30px 0; scroll-margin-top: calc(var(--top-h) + var(--safe-t) + 16px); }
.mod.focus .mod-head { border-color: var(--mag); box-shadow: 0 0 30px rgba(255,43,214,.25); }
.mod-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line2); border-left: 5px solid var(--mag); border-radius: 10px; }
.mod-head h2 { margin: 0; font-size: 1.15rem; } .mod-head p { margin: 2px 0 0; font-size: .85rem; }
.mod-code { display: grid; place-items: center; width: 44px; height: 44px; font-family: var(--f-display); font-size: 1.4rem; color: #0a0820; background: var(--mag); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.mod-prog { font-style: normal; font-family: var(--f-mono); color: var(--dim); font-size: .8rem; }
.lesson-grid { display: grid; gap: 10px; margin-top: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lesson-grid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1000px) { .lesson-grid { grid-template-columns: repeat(3, 1fr); } }
.lesson-card { --accent: var(--mag); display: grid; gap: 4px; align-content: start; padding: 14px; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-top: 3px solid var(--accent); border-radius: 10px; color: var(--text); text-decoration: none !important; transition: transform .15s, border-color .15s; min-height: 120px; }
.lesson-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.lesson-card small { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; color: var(--dim); } .lesson-card.done small { color: var(--lime); }
.lesson-card b { font-family: var(--f-display); text-transform: uppercase; font-size: .95rem; line-height: 1.15; }
.lesson-card span { color: var(--dim); font-size: .85rem; } .lesson-card em { font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--accent); margin-top: 4px; }

/* lesson page */
.lesson .term h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.l-p { color: #e2dfff; max-width: 66ch; } .l-p b, .l-list b, .l-ex b, .l-key b { color: var(--lime); }
.l-list { padding-left: 1.2em; color: #e2dfff; } .l-list li { margin: 6px 0; }
.l-key { padding: 12px 14px; background: rgba(183,255,42,.08); border-left: 4px solid var(--lime); border-radius: 4px; color: #f2f0ff; }
.l-key > b { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; margin-right: 6px; }
.l-ex { padding: 12px 14px; margin: 14px 0; background: #05041a; border: 1px solid var(--line2); border-radius: 8px; }
.l-ex small { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; color: var(--cyan); } .l-ex p { margin: 6px 0 0; color: #e2dfff; }
.l-adv { margin: 14px 0; padding: 10px 14px; background: rgba(155,107,255,.08); border: 1px dashed var(--purple); border-radius: 8px; }
.l-adv summary { cursor: pointer; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; color: var(--purple); min-height: 32px; display: flex; align-items: center; } .l-adv p { margin: 8px 0 2px; color: #dcd9ff; }
.widget { margin: 16px 0; padding: 14px; background: #05041a; border: 2px solid var(--cyan); border-radius: 10px; box-shadow: 0 0 24px rgba(43,228,255,.12); display: grid; gap: 10px; }
.w-title { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; color: var(--cyan); }
.w-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: .85rem; } .w-row > b { font-family: var(--f-mono); color: var(--gold); } .w-row .slider, .w-row .seg { grid-column: 1 / -1; }
.seg-row { grid-template-columns: 1fr; }
.slider { width: 100%; height: 40px; accent-color: var(--lime); background: transparent; touch-action: pan-y; }
.flips { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; } .flips i { aspect-ratio: 1; border-radius: 2px; background: var(--mag); } .flips i.t { background: var(--cyan); }
.quiz { display: grid; gap: 14px; }
.q-card { padding: 16px; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-left: 5px solid var(--mag); border-radius: 12px; display: grid; gap: 10px; }
.q-card.ok { border-left-color: var(--lime); } .q-card.miss { border-left-color: var(--red); }
.q-card small { font-family: var(--f-mono); color: var(--mag); letter-spacing: .1em; } .q-card h3 { margin: 0; text-transform: none; font-family: var(--f-body); font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.choice.truth { border-color: var(--good); box-shadow: inset 0 0 0 2px var(--good); opacity: 1; } .choice.picked { border-color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); opacity: 1; }
.l-after { margin-top: 18px; }

/* ---------- learning links on results / intro ---------- */
.learn-card { text-align: left; margin: 24px 0; padding: 18px; border: 2px solid var(--mag); border-radius: 6px 18px 6px 18px; background: linear-gradient(135deg, rgba(255,43,214,.14), var(--panel) 60%); box-shadow: 0 0 40px rgba(255,43,214,.14); }
.learn-card h2 { margin: 0 0 12px; font-size: 1.3rem; } .learn-card.lose .kicker { color: var(--red); }
.learn-list { display: grid; gap: 8px; }
.learn-link { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(5,4,26,.7); border: 1px solid var(--line2); border-radius: 8px; color: var(--text); text-decoration: none !important; }
.learn-link:hover { border-color: var(--mag); }
.ll-mod { display: grid; place-items: center; height: 36px; font-family: var(--f-display); color: #0a0820; background: var(--mag); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.ll-t { display: grid; } .ll-t b { font-size: .95rem; } .ll-t small { color: var(--dim); }
.learn-link em { font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--mag); }
.learn-mini { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 14px 0 6px; padding: 10px 12px; border: 1px dashed var(--mag); border-radius: 8px; color: var(--text); text-decoration: none !important; background: rgba(255,43,214,.06); }
.learn-mini span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; color: var(--mag); } .learn-mini em { font-style: normal; color: var(--dim); font-size: .85rem; }

/* difficulty picker */
.diff-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0 10px; }
@media (min-width: 560px) { .diff-pick { grid-template-columns: repeat(4, 1fr); } }
.dp { display: grid; gap: 4px; align-content: start; text-align: left; min-height: 74px; padding: 10px; background: var(--panel2); color: var(--text); border: 2px solid var(--line2); border-radius: 10px; cursor: pointer; touch-action: manipulation; font-family: var(--f-body); }
.dp b { font-family: var(--f-display); font-size: .82rem; letter-spacing: .06em; } .dp small { color: var(--dim); font-size: .7rem; line-height: 1.25; }
.dp .pips { display: flex; gap: 3px; } .dp .pips i { width: 12px; height: 6px; background: var(--line2); transform: skewX(-14deg); } .dp .pips i.on { background: var(--accent); }
.dp.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel2)); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.hud-title .hud-diff, .hud-diff { background: none; font-style: normal; font-family: var(--f-mono); font-size: .62rem; padding: 1px 6px; margin-left: 8px; border: 1px solid currentColor; color: var(--cyan); }
.hud-diff.d-degen { color: var(--lime); } .hud-diff.d-veteran { color: var(--gold); } .hud-diff.d-terminal { color: var(--red); }

/* results additions */
.top-cta { justify-content: center; }
.insights { text-align: left; margin: 20px 0; } .insights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ins { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; font-size: .9rem; color: #e2dfff; }
.ins b { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; padding: 3px 6px; border-radius: 3px; background: var(--line2); color: var(--text); white-space: nowrap; }
.ins.mattered b { background: var(--lime); color: #0a0820; } .ins.misleading b { background: var(--purple); color: #fff; } .ins.mistake b { background: var(--red); color: #fff; } .ins.good b { background: var(--cyan); color: #0a0820; } .ins.tip b { background: var(--gold); color: #1a1100; }
details.recap { text-align: left; margin: 18px 0; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; }
details.recap > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-family: var(--f-display); text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; }
.result .stats dd { font-size: 1.05rem; }

/* records */
.diff-matrix { margin: 16px 0; } .diff-matrix td.g-s { color: var(--gold); } .diff-matrix td.g-a { color: var(--lime); } .diff-matrix td.g-b { color: var(--cyan); } .diff-matrix td.g-c { color: var(--purple); } .diff-matrix td.g-d { color: #ff7d92; }
.pod.filled { border-style: solid; color: var(--text); } .pod.filled span { font-family: var(--f-mono); font-size: .8rem; }

/* ---------- RUG ESCAPE ---------- */
.rug-chart .chart { height: auto; }
.price .pl { font-size: .6rem; margin: 0 6px 0 0; color: var(--dim); letter-spacing: .1em; }
.risk-read { display: grid; gap: 4px; } .risk-read:empty { display: none; }
.rr-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line2); }
.rr-head small { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; color: var(--dim); } .rr-head b { font-family: var(--f-display); }
.rr-head.lvl-low b { color: var(--lime); } .rr-head.lvl-elevated { border-color: var(--gold); } .rr-head.lvl-elevated b { color: var(--gold); } .rr-head.lvl-high { border-color: var(--red); background: rgba(255,51,85,.1); } .rr-head.lvl-high b { color: var(--red); }
.risk-read ul { margin: 0; padding-left: 1.2em; font-size: .8rem; color: #e2dfff; } .risk-read p { margin: 0; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.feed li { font-size: .85rem; padding: 7px 10px; border-left: 3px solid var(--line2); background: rgba(16,14,46,.7); border-radius: 0 6px 6px 0; color: #dcd9ff; }
.feed li.warn { border-left-color: var(--gold); color: #ffe39a; background: rgba(255,201,51,.08); } .feed li.decoy { border-left-color: var(--purple); } .feed li.quiet { color: var(--dim); }
.rug-clues, .rug-acct { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rug-clues .clue, .rug-acct .clue, .acct.slim .clue { padding: 6px 4px; } .rug-clues .clue b, .rug-acct .clue b { font-size: .85rem; }
.actions.four-up { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.actions.four-up .act { min-height: 60px; padding: 6px 4px; } .actions.four-up .act b { font-size: .8rem; } .actions.four-up .act small { font-size: .58rem; line-height: 1.2; }
@media (max-width: 380px) { .actions.four-up .act small { display: none; } }

/* ---------- SPOT THE BOT / NARRATIVE ---------- */
.actions.grid2 { grid-template-columns: repeat(2, 1fr); gap: 8px; } @media (min-width: 760px) { .actions.grid2 { grid-template-columns: repeat(4, 1fr); } }
.actions.grid2 .act { min-height: 56px; } .act.cy { border-color: rgba(43,228,255,.7); background: rgba(43,228,255,.08); }
.wdot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.wallet-intel { background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 10px; } .wallet-intel summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; font-family: var(--f-display); font-size: .82rem; text-transform: uppercase; }
.wallet-intel .tx-wrap { margin: 6px 0 4px; } .wtable td { font-size: .72rem; }
.chip.ev-link { border-color: var(--red); color: #ff9aaa; } .chip.ev-auto { border-color: var(--cyan); color: var(--cyan); } .chip.ev-group { border-color: var(--gold); color: var(--gold); } .chip.ev-weak { color: var(--dim); }
.feedback p { color: #e2dfff; font-size: .9rem; }
.chain-panel { padding: 10px; background: #05041a; border: 1px solid var(--line2); border-radius: 10px; display: grid; gap: 6px; } .chain-panel > small { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; color: var(--cyan); }
.acct.slim { grid-template-columns: repeat(3, 1fr); gap: 6px; } .acct.slim .clue b { font-size: .8rem; word-break: break-word; }
@media (min-width: 640px) { .acct.slim { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } }
.chain-note { margin: 0; color: var(--gold); font-size: .82rem; }
.post-feed { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; padding-right: 2px; overscroll-behavior: contain; }
.post { padding: 9px 11px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; animation: rowIn .3s both; animation-delay: calc(var(--i) * 35ms); }
.post-h { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .74rem; font-family: var(--f-mono); } .post-h b { color: var(--cyan); }
.post p { margin: 4px 0; font-size: .9rem; } .post-f { font-family: var(--f-mono); font-size: .7rem; }

/* ---------- CANDLE ---------- */
.depth-wrap .depth-svg, .depth { width: 100%; display: block; }
.depth-wrap { margin-top: -6px; }

/* ---------- RISK ---------- */
.risk-card h2 { font-size: 1.05rem; }
.setup-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-family: var(--f-mono); font-size: .74rem; color: #cfccff; } .setup-info li::before { content: "› "; color: var(--accent); }
.seg-wrap { display: grid; gap: 4px; } .seg-l { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; color: var(--dim); }
.seg { display: grid; gap: 6px; } .seg-btn { min-height: 46px; font-size: .78rem; padding: 0 4px; }
.ticket { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; } @media (min-width: 640px) { .ticket { grid-template-columns: repeat(3, 1fr); } }
.ticket .clue { padding: 6px; } .ticket .clue b { font-size: .82rem; }
.res-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.tagx { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; padding: 4px 8px; border: 1px solid var(--line2); border-radius: 4px; color: var(--dim); } .tagx.good { border-color: var(--lime); color: var(--lime); } .tagx.bad { border-color: var(--red); color: #ff7d92; }
.fill { margin: 0; font-family: var(--f-mono); font-size: .78rem; color: #cfccff; }
.jnotes { margin: 0; padding-left: 1.2em; font-size: .85rem; color: #ffd76a; }

/* ---------- LAUNCH ---------- */
.launch-meters { grid-template-columns: repeat(2, 1fr); gap: 8px 12px; } @media (min-width: 760px) { .launch-meters { grid-template-columns: repeat(4, 1fr); } }
.launch-meters .meter .m-top { font-size: .72rem; }
.fx-hint { font-family: var(--f-mono); font-size: .68rem !important; color: var(--cyan) !important; }
.shock { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--purple); border-radius: 8px; background: rgba(155,107,255,.1); font-size: .85rem; } .shock b { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: var(--purple); }

/* ---------- DETECTIVE ---------- */
.case-card.solved { border-color: rgba(183,255,42,.5); } .case-card.solved small { color: var(--lime); }
.claims { display: grid; gap: 8px; }
.claim { padding: 10px; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; display: grid; gap: 6px; } .claim.bad { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); } .claim p { margin: 0; font-size: .9rem; }
.claim-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cbtn { min-height: 44px; padding: 4px; background: var(--panel2); color: var(--dim); border: 1px solid var(--line2); border-radius: 6px; cursor: pointer; font: 700 .7rem var(--f-body); touch-action: manipulation; }
.cbtn.sel.c-fact { background: var(--cyan); color: #0a0820; border-color: var(--cyan); } .cbtn.sel.c-inference { background: var(--gold); color: #1a1100; border-color: var(--gold); } .cbtn.sel.c-unsupported { background: var(--red); color: #fff; border-color: var(--red); }
.cbtn[disabled] { cursor: default; }

/* ---------- SLIPPAGE ---------- */
.slip-card h2 { font-size: 1.02rem; }
.curve-host .chart { height: auto; }
.slider-box { display: grid; gap: 8px; }
.slip-opts .choice b { font-family: var(--f-body); font-weight: 700; text-transform: none; font-size: .92rem; }

/* home hero: cabinet slideshow scales with the number of games */
.cab-slide { animation-duration: calc(var(--n, 6) * 3s); animation-name: slideN; }
@keyframes slideN { 0% { opacity: 0; } 2%, 11% { opacity: 1; } 13%, 100% { opacity: 0; } }

/* layout guard: wide tables scroll inside their wrapper instead of stretching the page */
.play-area { grid-template-columns: minmax(0, 1fr); }
.play-area > *, .bot, .narrative, .rug, .risk, .candle, .launch, .detective, .slippage { min-width: 0; max-width: 100%; }
.bot, .narrative, .slippage, .rug, .risk, .candle, .launch, .detective { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.sticky-ctrl { position: sticky; bottom: calc(6px + var(--safe-b)); z-index: 12; background: linear-gradient(to top, var(--bg) 70%, rgba(7,6,26,0)); margin: 0 calc(-1 * max(14px, var(--safe-l))); padding: 10px max(14px, var(--safe-r)) 4px max(14px, var(--safe-l)); }
.sticky-ctrl .timer { margin: 0 0 6px; }
.sticky-ctrl .actions { position: static; background: none; margin: 0; padding: 0; }
.locked > .actions { position: static; background: none; margin: 0; padding: 0; }
.graph .nlabel, .graph .elabel { paint-order: stroke; stroke: #05041a; stroke-width: 3px; stroke-linejoin: round; }
.slip-opts.short { display: grid; grid-template-columns: repeat(3, 1fr); } .slip-opts.short .choice { text-align: center; padding: 8px 4px; }
.slip-opts.short .choice:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (min-width: 1180px) { .cabinets { grid-template-columns: repeat(4, 1fr); } .cabinet .concept { font-size: .86rem; } }
.academy-copy .lvl small { grid-column: 2; }
.page.result { overflow-x: clip; }
.preopen { height: 190px; display: grid; place-content: center; text-align: center; gap: 6px; background: repeating-linear-gradient(to bottom, transparent 0 46px, rgba(255,255,255,.05) 46px 47px); }
.preopen span { font-family: var(--f-display); letter-spacing: .3em; color: var(--accent); animation: blink 2.2s steps(1) infinite; } .preopen small { color: var(--dim); font-family: var(--f-mono); font-size: .7rem; }
@media (min-width: 700px) { .preopen { height: 260px; } }
.chart-wrap .chart { max-height: 320px; } .curve-host .chart { max-height: 240px; }

/* ---------- final pass: Rug Escape mobile hierarchy ---------- */
.market-head { align-items: flex-end; }
.mh-left { display: grid; gap: 2px; } .mh-left small { font-size: .66rem; }
.mcap-head { display: grid; justify-items: end; line-height: 1.05; }
.mcap-head small { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; color: var(--dim); }
.mcap-head b { font-family: var(--f-display); font-size: clamp(1.25rem, 6vw, 1.7rem); font-variant-numeric: tabular-nums; }
.mcap-head em { font-style: normal; font-family: var(--f-mono); font-size: .75rem; }
.mcap-head .up { color: var(--good); } .mcap-head .down { color: var(--bad); }
/* Sticky controls are an opaque panel that sits in the document flow: the space is reserved at the end of the
   game area, so scrolling always brings every stat fully above it. Nothing reads through it. */
.sticky-ctrl { bottom: 0; background: var(--bg); border-top: 1px solid var(--line2); box-shadow: 0 -12px 18px -10px rgba(5,4,26,.95); padding-top: 10px; padding-bottom: calc(10px + var(--safe-b)); margin-top: 4px; }
.in-game .stage { padding-bottom: 0; }
.in-game .view, html.in-game-root { scroll-padding-bottom: 150px; }
.actions.four-up .act[disabled] { opacity: .38; border-style: dashed; filter: grayscale(.7); }
.actions.four-up .act[disabled] small { color: var(--dim); }
/* compact in-game header on phones: title + buttons on one row, score + context on the next */
@media (max-width: 1099px) {
  .hud { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 10px; padding-bottom: 6px; }
  .hud-title { grid-column: 1; grid-row: 1; }
  .hud-btns { grid-column: 2; grid-row: 1 / span 2; }
  .hud-score { grid-column: 1; grid-row: 2; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .hud-score .counter { font-size: 1.5rem; }
  .hud-sub { grid-column: 1; grid-row: 3; font-size: .66rem; }
  .hud-btns .icon-btn { min-width: 44px; min-height: 44px; }
}
.rug { gap: 8px; }
.in-game .view { padding-bottom: var(--safe-b); }
.rug .feed li { padding: 5px 10px; }
.risk-read ul { margin: 2px 0 0; }
.turn-secs { margin-left: 8px; font-family: var(--f-mono); font-size: .72rem; color: var(--dim); font-variant-numeric: tabular-nums; }
/* Short screens cannot fit the board above a sticky bar without covering stats: controls return to the flow,
   directly under the position panel, and the turn countdown stays visible in the market header. */
@media (max-height: 720px) { .sticky-ctrl { position: static; box-shadow: none; } }
@media (max-width: 360px) { .hud-title b { font-size: .8rem; } .hud-sub { display: none; } .hud-btns { gap: 4px; } }
.spot-note { margin: 0; font-size: .8rem; color: var(--dim); } .spot-note b { font-family: var(--f-mono); font-size: .7rem; color: var(--cyan); margin-right: 6px; }
.seg.n3 { grid-template-columns: repeat(3, 1fr); } .seg.n4 { grid-template-columns: repeat(4, 1fr); } .seg.n7 { grid-template-columns: repeat(7, 1fr); }
/* seven size buttons do not fit 320-400px at a 44px tap target: wrap to two rows */
@media (max-width: 420px) { .seg.n7 { grid-template-columns: repeat(4, 1fr); } .seg-btn { min-height: 44px; } }
.seg > * { min-width: 0; }
body.arming #main a, body.arming #main button, body.arming .tabbar, body.arming .topbar, body.arming .drawer { pointer-events: none; }

/* ---- academy assessment (mastery model) ---- */
.q-intro { margin: 0 0 4px; }
.quiz .choice.sel { border-color: var(--mag); box-shadow: inset 0 0 0 2px var(--mag); }
.q-num-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.q-num-row > span { font-family: var(--f-mono); font-size: .85rem; color: var(--dim); }
.q-num-row > b { flex-basis: 100%; font-family: var(--f-mono); font-size: .85rem; } .q-num-row > b.good { color: var(--good); } .q-num-row > b.bad { color: var(--bad); }
.q-num { width: 11em; max-width: 100%; min-height: 48px; padding: 0 12px; font: 700 1.05rem var(--f-mono); color: var(--text); background: var(--panel2); border: 2px solid var(--line2); border-radius: 8px; }
.q-num:focus { outline: none; border-color: var(--mag); }
.q-cls { display: grid; gap: 12px; }
.q-cls-row { display: grid; gap: 6px; padding-left: 10px; border-left: 3px solid var(--line2); }
.q-cls-row.ok { border-left-color: var(--good); } .q-cls-row.miss { border-left-color: var(--bad); }
.q-cls-row p { margin: 0; font-size: .92rem; line-height: 1.35; }
.q-seg .seg-btn { font-size: .74rem; line-height: 1.15; padding: 4px; overflow-wrap: anywhere; }
.q-seg .seg-btn.truth { border-color: var(--good); box-shadow: inset 0 0 0 2px var(--good); opacity: 1; }
@media (max-width: 420px) { .q-seg.n4 { grid-template-columns: repeat(2, 1fr); } }
.learn-card.miss { border-color: var(--red); } .learn-card.miss .kicker { color: var(--red); }
.lesson-card.tried small { color: var(--gold); }
.q-card .fb-head span { display: block; margin-top: 4px; text-transform: none; font-family: var(--f-body); font-weight: 500; color: var(--text); line-height: 1.45; }
.l-src { margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed var(--line2); font-size: .78rem; line-height: 1.5; color: var(--dim); overflow-wrap: anywhere; } .l-src b { font-family: var(--f-mono); letter-spacing: .1em; color: var(--mag); }

/* Controls that float over scrolling content (sticky answer bars) must be opaque: tints sit on a solid base and
   disabled buttons are dimmed with a filter instead of opacity, so table text never shows through them. */
.act.good { background: linear-gradient(rgba(183,255,42,.08), rgba(183,255,42,.08)) var(--panel2); }
.act.warn { background: linear-gradient(rgba(255,201,51,.08), rgba(255,201,51,.08)) var(--panel2); }
.act.bad { background: linear-gradient(rgba(255,51,85,.1), rgba(255,51,85,.1)) var(--panel2); }
.act.cy { background: linear-gradient(rgba(43,228,255,.08), rgba(43,228,255,.08)) var(--panel2); }
.act[disabled] { opacity: 1; filter: brightness(.5) saturate(.6); } .act.truth[disabled], .act.picked[disabled] { filter: none; }
.ach-toast { cursor: pointer; }

/* ---- official token + season leaderboard notice (home, records) ---- */
.token-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .token-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.token-card, .season-card { min-width: 0; padding: 20px; border-radius: 6px 18px 6px 18px; }
.token-card { border: 2px solid var(--lime); background: linear-gradient(135deg, rgba(183,255,42,.10), rgba(255,43,214,.06)), var(--panel); box-shadow: var(--shadow-neon); }
.token-card h2, .season-card h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 5vw, 1.8rem); }
.token-card .cta-row { margin: 14px 0 8px; } .token-card .cta-row .btn { flex: 1 1 220px; }
.ca-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; margin-top: 12px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; }
.ca-row small { grid-column: 1 / -1; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; color: var(--dim); }
.ca-text { font-family: var(--f-mono); font-size: .82rem; color: var(--lime); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.ca-row .btn { min-height: 44px; white-space: nowrap; }
.token-card.soon { border-color: #ffd21f; background: linear-gradient(135deg, rgba(255,210,31,.10), rgba(255,43,214,.05)), var(--panel); box-shadow: 0 0 0 1px rgba(255,210,31,.35), 0 0 24px rgba(255,210,31,.15); }
.token-card.soon h2 { color: #ffd21f; } .token-warn { margin: 12px 0 8px; padding: 10px 12px; border-left: 3px solid var(--red); background: rgba(255,51,85,.08); color: #ffd1d9; font-weight: 600; }
.season-card { border: 2px dashed var(--gold); background: linear-gradient(135deg, rgba(255,201,51,.08), transparent), var(--panel); }
.season-card .kicker { color: var(--gold); } .season-card p { margin: 0; color: #d9d6ff; line-height: 1.55; }
.page > .season-card { margin: 4px 0 18px; }
@media (max-width: 380px) { .ca-row { grid-template-columns: minmax(0, 1fr); } .ca-row .btn { width: 100%; } }
