:root{--bg: #0d1b2e;--surface: #142844;--surface-2: #1b3355;--text: #e6eefb;--muted: #8fa6c6;--border: #254468;--accent: #ffb547;--accent-2: #f09a1e;--accent-ink: #2a1a00;--accent-soft: #3a2d14;--btn-edge: #b36f0c;--good: #62d6b0;--good-soft: #123a33;--bad: #ff8a7a;--bad-soft: #47201f;--warn: #ffcf7a;--warn-soft: #3a2d14;--people: #c3a6ff;--process: #62d6b0;--business: #ffb547;--focus: #ffffff;--gold: #ffb547;--edge: #081424;--radius: 20px;--shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 14px 30px rgba(3, 10, 22, .45);--shadow-lg: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 26px 54px rgba(3, 10, 22, .6);--font: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--serif: var(--font);color-scheme:dark}:root[data-theme=light]{--bg: #eef2f8;--surface: #ffffff;--surface-2: #e6ecf5;--text: #0d1b2e;--muted: #52647d;--border: #cbd6e4;--accent: #a35f00;--accent-2: #8a4f00;--accent-ink: #ffffff;--accent-soft: #fff1d6;--btn-edge: #6b3d00;--good: #177a55;--good-soft: #dff3ea;--bad: #c2372a;--bad-soft: #fbe3df;--warn: #96620a;--warn-soft: #fbf0d2;--people: #6b46c9;--process: #0c7f74;--business: #a35f00;--focus: #0d1b2e;--gold: #d99a00;--edge: #c3cddb;--shadow: 0 1px 2px rgba(13, 27, 46, .06), 0 10px 24px rgba(13, 27, 46, .1);--shadow-lg: 0 2px 4px rgba(13, 27, 46, .08), 0 22px 46px rgba(13, 27, 46, .18);color-scheme:light}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.55;-webkit-text-size-adjust:100%}a{color:var(--accent)}h1,h2,h3,h4{line-height:1.25;margin:0 0 .5em}h1{font-size:1.6rem}h2{font-size:1.25rem;margin-top:1.2em}h3{font-size:1.05rem;margin-top:1em}p{margin:0 0 .8em}:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.skip{position:absolute;left:-999px;top:0;background:var(--accent);color:var(--accent-ink);padding:8px 12px;z-index:100}.skip:focus{left:8px;top:8px}.app{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--surface);border-right:1px solid var(--border);padding:16px 10px;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{font-weight:700;font-size:1.05rem;padding:4px 10px 14px;color:var(--accent)}.brand small{display:block;color:var(--muted);font-weight:400;font-size:.75rem}.nav a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:var(--text);text-decoration:none;font-size:.95rem}.nav a:hover{background:var(--surface-2)}.nav a.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.nav .badge{margin-left:auto}main{padding:24px clamp(16px,4vw,40px) 96px;max-width:980px;width:100%;min-width:0}.grid>*,.card,details{min-width:0}.flow .step,.quadrant div{min-width:0;overflow-wrap:anywhere}.bottombar{display:none}@media (max-width: 760px){.app{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.sidebar.open{display:block;position:fixed;top:0;right:0;bottom:64px;left:0;z-index:50;height:auto}.bottombar{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--border);z-index:60;padding-bottom:env(safe-area-inset-bottom)}.bottombar a,.bottombar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 2px;font-size:.72rem;color:var(--muted);text-decoration:none;background:none;border:0;font-family:inherit;min-height:56px;justify-content:center}.bottombar a.active{color:var(--accent);font-weight:600}main{padding:16px 16px 96px}h1{font-size:1.35rem}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow);margin-bottom:14px}.card h2:first-child,.card h3:first-child{margin-top:0}.grid{display:grid;gap:14px}.grid-2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.grid-3{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.spread{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.muted{color:var(--muted)}.small{font-size:.86rem}.tiny{font-size:.76rem}.stack>*+*{margin-top:10px}.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:9px 14px;border-radius:8px;font:inherit;font-size:.95rem;cursor:pointer;min-height:42px;display:inline-flex;align-items:center;gap:6px;text-decoration:none;max-width:100%;text-align:left}.btn:hover{background:var(--surface-2)}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}.btn.primary:hover{filter:brightness(1.08)}.btn.danger{color:var(--bad);border-color:var(--bad)}.btn.ghost{border-color:transparent;background:transparent}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.sm{padding:5px 10px;min-height:34px;font-size:.86rem}.pill{display:inline-block;padding:1px 8px;border-radius:999px;font-size:.75rem;background:var(--surface-2);color:var(--muted);border:1px solid var(--border);white-space:nowrap}.pill.people{color:var(--people);border-color:currentColor;background:transparent}.pill.process{color:var(--process);border-color:currentColor;background:transparent}.pill.business{color:var(--business);border-color:currentColor;background:transparent}.pill.good{color:var(--good);background:var(--good-soft);border-color:transparent}.pill.bad{color:var(--bad);background:var(--bad-soft);border-color:transparent}.pill.warn{color:var(--warn);background:var(--warn-soft);border-color:transparent}.badge{background:var(--accent);color:var(--accent-ink);border-radius:999px;font-size:.72rem;padding:0 7px;font-weight:600}.notice{border-left:4px solid var(--accent);background:var(--accent-soft);padding:10px 14px;border-radius:6px;margin-bottom:14px}.notice.warn{border-color:var(--warn);background:var(--warn-soft)}.notice.bad{border-color:var(--bad);background:var(--bad-soft)}.notice.good{border-color:var(--good);background:var(--good-soft)}.progress{height:8px;background:var(--surface-2);border-radius:999px;overflow:hidden;border:1px solid var(--border)}.progress>span{display:block;height:100%;background:var(--accent)}.kpi{font-size:1.6rem;font-weight:700;line-height:1.1}.kpi small{font-size:.8rem;font-weight:400;color:var(--muted)}table{border-collapse:collapse;width:100%;font-size:.92rem}th,td{border-bottom:1px solid var(--border);padding:7px 8px;text-align:left;vertical-align:top}th{background:var(--surface-2);font-weight:600}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}input[type=text],input[type=date],input[type=number],input[type=search],select,textarea{font:inherit;font-size:16px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);min-height:42px;max-width:100%}textarea{width:100%;min-height:80px}label.field{display:flex;flex-direction:column;gap:4px;font-size:.9rem}fieldset{border:1px solid var(--border);border-radius:var(--radius);padding:10px 14px;margin:0 0 12px}legend{font-weight:600;padding:0 6px}details>summary{cursor:pointer;font-weight:600;padding:4px 0}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:14px;overflow-x:auto}.tabs button{background:none;border:0;border-bottom:3px solid transparent;padding:8px 12px;font:inherit;color:var(--muted);cursor:pointer;white-space:nowrap;min-height:42px}.tabs button[aria-selected=true]{color:var(--accent);border-color:var(--accent);font-weight:600}.q-stem{font-size:1.04rem;margin-bottom:12px}.q-meta{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.opt{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;padding:11px 13px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;cursor:pointer;margin-bottom:8px;min-height:48px}.opt:hover:not(:disabled){border-color:var(--accent)}.opt[aria-pressed=true],.opt[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.opt .letter{flex:0 0 26px;height:26px;border-radius:50%;border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:600;background:var(--surface-2)}.opt.correct{border-color:var(--good);background:var(--good-soft)}.opt.incorrect{border-color:var(--bad);background:var(--bad-soft)}.opt:disabled{cursor:default}.rationale{font-size:.88rem;color:var(--muted);margin:-4px 0 10px 36px}.feedback{border-radius:var(--radius);padding:12px 14px;margin-top:12px}.feedback.good{background:var(--good-soft)}.feedback.bad{background:var(--bad-soft)}.case-box{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;margin-bottom:12px;max-height:50vh;overflow-y:auto}.match-row{display:grid;grid-template-columns:1fr minmax(160px,1fr);gap:10px;align-items:center;padding:6px 0;border-bottom:1px dashed var(--border)}@media (max-width: 560px){.match-row{grid-template-columns:1fr}}.dropdown-text select{margin:2px 4px;min-height:36px;padding:4px 8px}.hot-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.hot-grid button{min-width:64px}.graphic{margin:8px 0 14px}.graphic figcaption{font-size:.82rem;color:var(--muted);margin-top:4px}.graphic svg{width:100%;height:auto;max-height:420px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.graphic .gtitle{font-weight:600;font-size:.92rem;margin-bottom:4px}.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(130px,1fr);gap:8px;overflow-x:auto}.board .col{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:8px}.board .col h4{font-size:.85rem;margin:0 0 6px}.board .kcard{background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:5px 7px;font-size:.82rem;margin-bottom:5px}.matrix{display:grid;gap:3px;font-size:.8rem}.matrix .cell{min-width:0;overflow-wrap:anywhere;min-height:54px;border-radius:4px;padding:4px;border:1px solid var(--border)}.matrix .hdr{font-weight:600;display:flex;align-items:center;justify-content:center;text-align:center;padding:2px}.sel{outline:3px solid var(--focus);outline-offset:-3px}.lesson-section{margin-bottom:18px}.lesson-section>h2{display:flex;align-items:center;gap:8px}.step-no{display:inline-flex;width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:.82rem;align-items:center;justify-content:center;font-weight:700;flex:none}.flow{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}.flow .step{flex:1 1 150px;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:8px 10px;position:relative}.flow .step b{display:block;font-size:.9rem}.flow .step span{font-size:.82rem;color:var(--muted)}.quadrant{display:grid;grid-template-columns:1fr 1fr;gap:6px}.quadrant div{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:10px;font-size:.88rem}.tree ul{list-style:none;padding-left:18px;border-left:2px solid var(--border);margin:4px 0}.tree li{margin:6px 0}.tree .node{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:6px 10px;display:inline-block;font-size:.9rem}.tree .branch{font-size:.78rem;color:var(--accent);font-weight:600;margin-right:6px}.md table{margin:8px 0}.md ul,.md ol{padding-left:22px;margin:0 0 .8em}.md code{background:var(--surface-2);padding:1px 5px;border-radius:4px;font-size:.9em}.flash{min-height:220px;display:flex;flex-direction:column;justify-content:center;font-size:1.08rem}.rate{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.rate .btn{flex-direction:column;justify-content:center}.rate .btn small{color:var(--muted);font-size:.75rem}.exam-bar{position:sticky;top:0;z-index:30;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px 12px;margin-bottom:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.timer{font-variant-numeric:tabular-nums;font-weight:700}.timer.low{color:var(--bad)}.qnav{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:5px}.qnav button{min-height:36px;border:1px solid var(--border);background:var(--surface);border-radius:6px;font-size:.8rem;cursor:pointer;color:var(--text)}.qnav button.answered{background:var(--accent-soft);border-color:var(--accent)}.qnav button.flagged{box-shadow:inset 0 -3px 0 var(--warn)}.qnav button.current{outline:2px solid var(--text)}.bar-chart .bar{display:grid;grid-template-columns:150px 1fr 48px;gap:8px;align-items:center;margin:4px 0;font-size:.86rem}@media (max-width: 560px){.bar-chart .bar{grid-template-columns:96px 1fr 42px}}.bar-chart .track{background:var(--surface-2);border-radius:4px;height:14px;overflow:hidden}.bar-chart .fill{height:100%;background:var(--accent)}.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.cal .d{min-height:64px;border:1px solid var(--border);border-radius:6px;padding:4px;font-size:.72rem;background:var(--surface);overflow:hidden}.cal .d.off{background:repeating-linear-gradient(45deg,var(--surface-2),var(--surface-2) 6px,var(--surface) 6px,var(--surface) 12px)}.cal .d.today{outline:2px solid var(--accent)}.cal .d .m{display:block;margin-top:2px;padding:1px 3px;border-radius:3px;background:var(--accent-soft);color:var(--accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal .d .m.mock{background:var(--warn-soft);color:var(--warn);font-weight:600}.cal .d .m.done{background:var(--good-soft);color:var(--good)}.cal .hdr{font-size:.75rem;text-align:center;color:var(--muted)}@media (max-width: 560px){.cal .d{min-height:44px}.cal .d .m{font-size:.6rem}}h1,h2,.brand,.kpi,.stat-num,.ring-num{font-family:var(--serif)}.hero{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:flex-start;margin-bottom:14px}.hero h1{margin-bottom:0}.countdown{display:flex;gap:14px;align-items:center;margin-top:6px}.ring{width:118px;height:118px;flex:none}.ring-bg{fill:none;stroke:var(--surface-2);stroke-width:10}.ring-fg{fill:none;stroke:var(--accent);stroke-width:10;stroke-linecap:round;transition:stroke-dashoffset 1s ease}.ring-num{font-size:34px;font-weight:700;fill:var(--text)}.ring-lbl{font-size:12px;fill:var(--muted)}.stats{display:flex;gap:10px;flex-wrap:wrap}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px 14px;box-shadow:var(--shadow);display:flex;flex-direction:column;min-width:150px;max-width:220px}.stat-num{font-size:1.5rem;font-weight:700}.tip{background:var(--surface-2);border-radius:10px;padding:10px 12px;border-left:4px solid var(--border);min-width:0}.tip.people{border-color:var(--people)}.tip.process{border-color:var(--process)}.tip.business{border-color:var(--business)}.tip p{margin:6px 0;font-size:.93rem}.flipcard{perspective:1400px;cursor:pointer;margin-bottom:14px;border-radius:18px}.flip-inner{display:grid;transition:transform .55s cubic-bezier(.4,.1,.2,1);transform-style:preserve-3d}.is-flipped .flip-inner{transform:rotateY(180deg)}.flip-face{grid-area:1 / 1;backface-visibility:hidden;-webkit-backface-visibility:hidden;min-height:280px;padding:34px 26px 22px;border-radius:18px;border:1px solid var(--border);box-shadow:0 2px 4px #3c281414,0 14px 30px #3c28141f;display:flex;flex-direction:column;justify-content:center;gap:12px;text-align:center;font-size:1.12rem}.flip-front{background:linear-gradient(var(--bad) 0 0) 0 26px / 100% 2px no-repeat,repeating-linear-gradient(var(--surface) 0 31px,var(--border) 31px 32px);background-color:var(--surface)}.flip-back{transform:rotateY(180deg);background:var(--accent-soft);text-align:left}.flip-face .md ul,.flip-face .md ol{text-align:left}@media (prefers-reduced-motion: reduce){.flip-inner,.ring-fg{transition:none}}.light-card{display:flex;gap:18px;align-items:flex-start}.light{background:#2f261d;border-radius:22px;padding:10px;display:flex;flex-direction:column;gap:8px;flex:none}.lamp{width:34px;height:34px;border-radius:50%;opacity:.22}.lamp.red{background:#d2492f}.lamp.amber{background:#e3a11c}.lamp.green{background:#5d9a3c}.lamp.on{opacity:1;box-shadow:0 0 14px currentColor}.lamp.red.on{color:#d2492f}.lamp.amber.on{color:#e3a11c}.lamp.green.on{color:#5d9a3c}.pace{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:var(--muted)}.pace-track{flex:0 0 120px;height:6px;background:var(--surface-2);border-radius:999px;overflow:hidden}.pace-track span{display:block;height:100%;background:var(--good);transition:width 1s linear}.pace.over{color:var(--bad)}.pace.over .pace-track span{background:var(--bad)}.reason{margin-top:12px;padding:10px 12px;border:1px dashed var(--border);border-radius:10px}code.formula{font-size:.95rem;white-space:normal}body{background:radial-gradient(1200px 500px at 80% -10%,var(--accent-soft),transparent 60%) fixed,var(--bg)}h1,h2,.brand,.kpi,.stat-num{letter-spacing:-.02em;font-weight:800}h1{font-size:1.8rem}.sidebar{background:#151922;border-right:0;color:#e8ecf2;box-shadow:4px 0 24px #1018282e}.brand{color:#fff}.brand small{color:#9aa4b2}.nav a{color:#c9d1dc;transition:background .15s,transform .15s,color .15s}.nav a:hover{background:#222833;color:#fff;transform:translate(3px)}.nav a.active{background:linear-gradient(135deg,#2952e3,#1b3bb8);color:#fff;box-shadow:0 6px 16px #2952e373}.bottombar{box-shadow:0 -6px 20px #1018281f}.card,.stat,.tip{transition:transform .18s ease,box-shadow .18s ease}.grid>.card:hover,.stat:hover,.tip:hover,.badge-tile.earned:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}.btn{border-radius:10px;font-weight:600;box-shadow:0 3px 0 var(--edge);transition:transform .08s ease,box-shadow .08s ease,background .15s,filter .15s}.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 0 var(--edge)}.btn:active:not(:disabled){transform:translateY(3px);box-shadow:0 0 0 var(--edge)}.btn.primary{background:linear-gradient(180deg,var(--accent),var(--accent-2));border-color:var(--accent-2);box-shadow:0 3px #142c8c,0 8px 18px #2952e34d}.btn.primary:hover:not(:disabled){box-shadow:0 4px #142c8c,0 10px 22px #2952e361}.btn.primary:active:not(:disabled){box-shadow:0 0 #142c8c}.btn.ghost,.btn.ghost:hover:not(:disabled){box-shadow:none}.btn:disabled{box-shadow:none}.opt{border-width:2px;border-radius:12px;box-shadow:0 3px 0 var(--edge);transition:transform .08s ease,box-shadow .08s ease,border-color .15s,background .15s}.opt:hover:not(:disabled){transform:translateY(-1px)}.opt:active:not(:disabled){transform:translateY(3px);box-shadow:0 0 0 var(--edge)}.opt[aria-pressed=true],.opt[aria-checked=true]{box-shadow:0 3px 0 var(--accent)}.opt.correct{box-shadow:0 3px 0 var(--good);animation:pop .35s}.opt.incorrect{box-shadow:0 3px 0 var(--bad);animation:shake .35s}.progress{height:10px;border:0;background:var(--surface-2);box-shadow:inset 0 1px 2px #10182826}.progress>span,.bar-chart .fill{background:linear-gradient(90deg,var(--accent),#6f8cff);transition:width .5s cubic-bezier(.2,.8,.2,1);border-radius:999px}.ring-fg{filter:drop-shadow(0 2px 6px rgba(41,82,227,.45))}.exam-bar{box-shadow:var(--shadow-lg)}.flip-face{box-shadow:0 2px 4px #1018281a,0 18px 40px #10182833}.light{background:#151922;box-shadow:var(--shadow-lg),inset 0 2px 6px #00000080}.kpi{font-size:1.8rem}.page>*>*{animation:rise .35s ease both}.page>*>*:nth-child(2){animation-delay:.04s}.page>*>*:nth-child(3){animation-delay:.08s}.page>*>*:nth-child(n+4){animation-delay:.12s}@keyframes rise{0%{opacity:0;transform:translateY(10px)}}@keyframes pop{50%{transform:scale(1.03)}}@keyframes shake{25%{transform:translate(-5px)}75%{transform:translate(5px)}}@keyframes bump{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.35)}}.hud-top{display:flex;align-items:center;gap:10px;line-height:1.2}.hud-icon{font-size:1.7rem}.hud.side{margin:0 4px 14px;padding:12px;border-radius:12px;background:#1e2430;border:1px solid #2e3542}.hud.side .hud-xp,.hud.side .hud-next{color:#9aa4b2}.stat.hud .hud-xp,.stat.hud .hud-next{color:var(--muted)}.hud-mute{margin-left:auto;background:none;border:0;font-size:1.1rem;cursor:pointer;min-width:36px;min-height:36px;border-radius:8px}.hud-mute:hover{background:#2e3542}.xpbar{height:8px;border-radius:999px;background:#7f899947;overflow:hidden;margin:8px 0 4px}.xpbar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--gold),#ffd866);box-shadow:0 0 10px #f1c84bb3;transition:width .6s cubic-bezier(.2,.8,.2,1)}.combo{font-weight:800;color:var(--warn);animation:bump .4s;display:inline-block}.xp-gain{font-weight:800;color:var(--gold);animation:bump .4s;display:inline-block}.badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:12px}.badge-tile{display:flex;flex-direction:column;gap:2px;align-items:center;text-align:center;padding:12px 8px;border-radius:12px;border:1px dashed var(--border);background:var(--surface-2);transition:transform .18s ease,box-shadow .18s ease}.badge-tile .badge-icon{font-size:1.9rem;filter:grayscale(1);opacity:.35}.badge-tile.earned{border:1px solid var(--gold);background:linear-gradient(180deg,var(--warn-soft),var(--surface));box-shadow:var(--shadow)}.badge-tile.earned .badge-icon{filter:none;opacity:1}.toasts{position:fixed;top:14px;left:50%;transform:translate(-50%);z-index:200;display:flex;flex-direction:column;gap:8px;width:min(340px,calc(100vw - 32px));pointer-events:none}.toast{display:flex;gap:12px;align-items:center;background:#151922;color:#fff;border:1px solid var(--gold);border-radius:14px;padding:12px 16px;box-shadow:var(--shadow-lg);animation:rise .35s ease both}.toast-icon{font-size:1.9rem}.confetti{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:190;overflow:hidden}.confetti i{position:absolute;top:-14px;width:9px;height:14px;border-radius:2px;animation:fall linear both}@keyframes fall{to{top:105%;rotate:720deg}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important}.confetti{display:none}}.tour{position:fixed;top:0;right:0;bottom:0;left:0;z-index:300}.tour-hole{position:fixed;border-radius:14px;box-shadow:0 0 0 9999px #0a0d14a8,0 0 0 3px var(--gold),0 0 24px 4px #f1c84b8c;pointer-events:none;transition:top .3s ease,left .3s ease,width .3s ease,height .3s ease}.tour-hole.none{inset:50% auto auto 50%;width:0;height:0;box-shadow:0 0 0 9999px #0a0d14a8}.tour-card{position:fixed;width:min(360px,calc(100vw - 24px));background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;padding:16px 18px;box-shadow:var(--shadow-lg);animation:rise .3s ease both}.tour-card p{margin:8px 0 12px;font-size:.95rem}.tour-title{font-size:1.1rem;letter-spacing:-.01em}.tour-dots{display:flex;gap:4px;margin-bottom:12px}.tour-dots i{flex:1;height:4px;border-radius:999px;background:var(--surface-2)}.tour-dots i.on{background:var(--accent)}.setup{min-height:100vh;display:grid;place-items:center;max-width:none;padding:24px 16px}.setup .card{width:min(480px,100%);padding:26px 24px;box-shadow:var(--shadow-lg);animation:rise .35s ease both}.setup .btn.primary{width:100%;justify-content:center}.terms{margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);border-left:4px solid var(--gold)}.terms dl{margin:8px 0 0;display:grid;gap:8px}.terms dt{font-weight:700;font-size:.9rem}.terms dd{margin:0;font-size:.88rem;color:var(--muted)}.glossary{margin:0;display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.glossary .card{margin:0}.glossary dt{font-weight:800;font-size:1.02rem;margin-bottom:4px}.glossary dd{margin:0;font-size:.93rem}.az{margin-top:10px;gap:6px}.az .btn[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent-2)}body{background:radial-gradient(1000px 520px at 60% -12%,color-mix(in srgb,var(--surface-2) 85%,#3b6db0),transparent 70%) fixed,var(--bg)}.card,.stat{background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 88%,#fff),var(--surface))}.sidebar{background:#0a1626;box-shadow:4px 0 30px #030a1680}.nav a{border-radius:999px;padding:8px 14px;color:#8fa6c6}.nav a:hover{background:#142844;color:#e6eefb}.nav a.active{background:#e6eefb;color:#0d1b2e;font-weight:700;box-shadow:none}.hud.side{background:#142844;border-color:#254468;border-radius:16px}.hud-mute:hover{background:#254468}.btn{border-radius:12px}.btn.primary{background:linear-gradient(180deg,var(--accent),var(--accent-2));border-color:var(--accent-2);color:var(--accent-ink);font-weight:800;box-shadow:0 3px 0 var(--btn-edge),0 10px 26px color-mix(in srgb,var(--accent) 35%,transparent)}.btn.primary:hover:not(:disabled){box-shadow:0 4px 0 var(--btn-edge),0 12px 30px color-mix(in srgb,var(--accent) 45%,transparent)}.btn.primary:active:not(:disabled){box-shadow:0 0 0 var(--btn-edge)}.progress>span,.bar-chart .fill{background:linear-gradient(90deg,var(--accent-2),var(--accent))}.ring-fg{filter:drop-shadow(0 2px 8px color-mix(in srgb,var(--accent) 50%,transparent))}.az .btn[aria-pressed=true]{color:var(--accent-ink)}.toast,.light{background:#0a1626}.flip-face{box-shadow:var(--shadow-lg)}.bottombar{background:#0a1626;border-color:#254468}.bottombar a,.bottombar button{color:#8fa6c6}.bottombar a.active{color:#ffb547}.hero{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.4fr);gap:16px;align-items:stretch}.hero>.card{margin:0;border-radius:22px;padding:22px;box-shadow:var(--shadow-lg)}@media (max-width: 760px){.hero{grid-template-columns:minmax(0,1fr)}}.dial{text-align:center}.dial svg{width:100%;max-width:320px;margin:0 auto;display:block}.dial-track{fill:none;stroke:var(--bg);stroke-width:16;stroke-linecap:round}.dial-arc{fill:none;stroke-width:16;stroke-linecap:round;transition:stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1)}.dial-tick{stroke-width:4;stroke-linecap:round}.dial-num{font-size:4.4rem;font-weight:900;line-height:1;margin-top:-5.4rem;letter-spacing:-.03em}.dial .green{color:var(--good);stroke:var(--good)}.dial .amber{color:var(--accent);stroke:var(--accent)}.dial .red{color:var(--bad);stroke:var(--bad)}.dial .grey{color:var(--muted);stroke:var(--muted)}.dial-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.dial-facts div{background:var(--bg);border:1px solid var(--border);border-radius:14px;padding:10px}.dial-facts b{display:block;font-size:1.7rem;font-weight:900;line-height:1.1}.queue{list-style:none;padding:0;margin:0 0 16px}.queue li{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border)}.queue .n{width:34px;height:34px;border-radius:50%;border:2px solid var(--border);display:grid;place-items:center;font-size:.85rem;color:var(--muted)}.queue li.next .n{border-color:var(--accent);color:var(--accent);box-shadow:0 0 18px color-mix(in srgb,var(--accent) 45%,transparent)}.queue li.done .n{border-color:var(--good);color:var(--good)}.queue a{color:var(--text);text-decoration:none;font-weight:600}.queue a:hover{text-decoration:underline}.queue .xp{color:var(--gold);font-weight:800;font-size:.86rem;white-space:nowrap;text-align:right}.queue-card .btn.primary{width:100%;justify-content:center;font-size:1.05rem;padding:13px}.road{position:relative;height:84px;margin:18px 6px 8px}.road:before{content:"";position:absolute;left:0;right:0;top:40px;height:4px;border-radius:4px;background:var(--border)}.road-done{position:absolute;left:0;top:40px;height:4px;border-radius:4px;background:var(--accent);box-shadow:0 0 12px color-mix(in srgb,var(--accent) 60%,transparent);transition:width 1.1s cubic-bezier(.2,.8,.2,1)}.road-stop{position:absolute;top:31px;transform:translate(-50%);font-size:.78rem;color:var(--muted);white-space:nowrap;text-align:center}.road-stop:before{content:"";display:block;width:16px;height:16px;margin:0 auto;background:var(--bg);border:3px solid var(--muted);transform:rotate(45deg)}.road-stop span{position:absolute;left:50%;transform:translate(-50%);top:26px}.road-stop.up span{top:-24px}.road-stop.now{color:var(--accent);font-weight:800}.road-stop.now:before{background:var(--accent);border-color:var(--accent);box-shadow:0 0 14px var(--accent)}.road-stop.hit:before{background:var(--good);border-color:var(--good)}.road-stop.end{transform:translate(-100%)}.road-stop.end span{left:auto;right:0;transform:none}.welcome,.gate{min-height:100vh;max-width:none}.welcome{display:grid;place-items:center;padding:24px 16px}.gate{max-width:860px;margin:0 auto;padding:28px 16px 60px}.welcome-card{width:min(520px,100%);background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 88%,#fff),var(--surface));border:1px solid var(--border);border-radius:26px;padding:26px;box-shadow:var(--shadow-lg);animation:rise .4s ease both}.welcome-card h1{font-size:1.9rem;margin:6px 0 8px}.welcome-card p{color:var(--muted);margin-bottom:18px}.welcome-art{height:190px;display:grid;align-items:center;margin-bottom:6px}.w-road{margin:0 14px}.w-road .road-done{animation:w-grow 1.6s ease-out both}.w-road .road-stop{animation:w-pop .4s ease both}.w-sweep{animation:w-sweep 1.4s cubic-bezier(.2,.8,.2,1) both}.w-pop{animation:w-pop .5s .9s ease both}.w-xp{padding:0 10px}.w-rank{display:flex;justify-content:space-between;font-size:1.9rem}.w-rank span{animation:w-pop .4s ease both}.w-rank span:nth-child(2){animation-delay:.3s}.w-rank span:nth-child(3){animation-delay:.6s}.w-rank span:nth-child(4){animation-delay:.9s}.w-rank span:nth-child(5){animation-delay:1.2s}.w-fill{width:100%;animation:w-grow 1.6s ease-out both}.w-gains{display:flex;gap:14px;justify-content:center;margin-top:12px;color:var(--gold)}.w-gains b{animation:w-pop .4s ease both}.w-gains b:nth-child(2){animation-delay:.5s}.w-gains b:nth-child(3){animation-delay:1s}.w-steps{margin:0;padding-left:22px;display:grid;gap:12px}.w-steps li{animation:rise .4s ease both}.w-steps li:nth-child(2){animation-delay:.25s}.w-steps li:nth-child(3){animation-delay:.5s}.w-steps b{display:block}.w-steps span{color:var(--muted);font-size:.92rem}@keyframes w-grow{0%{width:0}}@keyframes w-sweep{0%{stroke-dashoffset:283}to{stroke-dashoffset:62}}@keyframes w-pop{0%{opacity:0;scale:.4}70%{scale:1.2}}.w-sweep{stroke-dashoffset:62}.advice .dial-facts{max-width:420px}.advice>.btn.primary{margin-top:6px;width:100%;justify-content:center;font-size:1.05rem;padding:13px}.mini-stats{display:flex;gap:18px;flex-wrap:wrap;margin:6px 0 0;color:var(--muted);font-size:.9rem}.mini-stats b{color:var(--text);font-weight:800}.dial-facts.one{grid-template-columns:1fr}.resource{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.resource h3{margin:8px 0 2px;font-size:1.12rem}.resource-group{margin:26px 0 12px}.resource .btn{margin-top:auto}.w-road .road-done{width:100%}
