/* Local system fonts only; no network assets. */
:root{color-scheme:dark;--bg:#0c1416;--panel:#131e21;--line:#2a383b;--ink:#edf4ef;--muted:#a4b5b5;--mint:#bcf575;--coral:#ff9390;font-family:'Segoe UI',Arial,sans-serif;background:var(--bg);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;display:block;min-height:100vh;background:radial-gradient(ellipse at 90% 5%,#243a302e,transparent 55%),var(--bg)}[hidden]{display:none!important}button,a,textarea,summary{touch-action:manipulation}button{font:inherit;letter-spacing:0;cursor:pointer;border-radius:8px;transition:background .15s,border-color .15s,transform .15s}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,a:focus-visible,summary:focus-visible,.feed:focus-visible{outline:2px solid var(--mint);outline-offset:4px}button:active:not(:disabled){transform:translateY(1px)}button:hover:not(:disabled){background:#263c32}a{color:inherit;text-decoration:none}.primary{background:var(--mint);color:#16200f;border:1px solid var(--mint);padding:15px 22px;font-weight:750}.primary:hover:not(:disabled){background:#d0ff98}.secondary{background:#23322c;border:1px solid #597348;color:var(--ink);padding:11px 20px}.quiet{background:transparent;border:1px solid transparent;color:var(--muted);padding:8px 10px;font-size:13px}.quiet:hover:not(:disabled){color:var(--ink)}.shell{width:min(1100px,calc(100% - 64px));margin:auto}.masthead{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.wordmark{font-weight:800;letter-spacing:3px;font-size:17px}.wordmark>span:first-child{color:var(--mint)}.edition{font-size:10px;font-weight:500;color:var(--muted);letter-spacing:1.8px}.header-actions{display:flex;gap:20px;align-items:center}.offline{font:10px Consolas,monospace;letter-spacing:1px;color:var(--muted)}.offline i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--mint);margin-right:6px}.eyebrow,.small-label{font:10px/1.6 Consolas,'Courier New',monospace;letter-spacing:1.6px;color:var(--muted)}.eyebrow{margin:0 0 14px}.hero{display:flex;align-items:center;justify-content:space-between;gap:36px;padding:53px 0 38px}h1,h2,p{margin-top:0}h1{font-size:clamp(40px,5.8vw,68px);line-height:1.04;letter-spacing:-3px;margin-bottom:20px;font-weight:700}h1 em{font-style:normal;color:var(--mint)}.cursor-mark{color:var(--mint);font-weight:400}.lead{font-size:16px;line-height:1.65;color:var(--muted);margin:0}.hero-score{width:260px;padding:28px 0 28px 38px;border-left:1px solid var(--line);flex-shrink:0}.hero-score>strong{font:64px/1.4 Consolas,monospace;letter-spacing:-4px;display:block;color:var(--mint)}.hero-score>strong span{font-size:20px;letter-spacing:-1px;color:#778a87}.hero-score>span:last-of-type{font-size:13px;color:var(--muted)}.collection-track{height:3px;background:#2a3b35;margin-top:20px}.collection-track>div{height:100%;background:var(--mint)}.selection-layout{display:grid;grid-template-columns:.95fr 1.05fr;gap:32px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px}.featured{padding:30px}.featured h2{font-size:29px;letter-spacing:-.8px;margin-bottom:10px}.muted{color:var(--muted);font-size:13px;line-height:1.65}.featured>.muted{min-height:43px;margin-bottom:22px}.level-facts{display:flex;gap:25px;margin-bottom:26px;flex-wrap:wrap}.level-facts .small-label{display:block;font-size:9px}.level-facts strong{font:14px/2 Consolas,monospace}.featured>.primary{width:100%;display:flex;justify-content:space-between}.start-hint{text-align:center;font-size:11px;color:var(--muted);margin:12px 0 23px}.personal{padding-top:20px;border-top:1px solid var(--line)}.personal>div{margin-top:8px;font:13px/1.8 Consolas,monospace;color:var(--ink)}.personal .small-label{font-size:9px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:4px 0 19px}.section-head h2{font-size:16px;font-weight:600;margin:0}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.level-tile{min-width:0;height:74px;position:relative;text-align:left;padding:10px 12px;background:#111b1e;border:1px solid var(--line);color:var(--ink)}.level-tile .num{display:block;font:20px Consolas,monospace}.tile-stars{display:block;letter-spacing:1px;font:11px/1.8 Consolas,monospace;color:#5e6d65}.tile-stars .earned{color:var(--mint)}.level-tile.selected{border-color:var(--mint);background:#223027}.level-tile.selected:after{content:'';position:absolute;width:5px;height:5px;border-radius:50%;right:9px;top:10px;background:var(--mint)}.level-tile:disabled{opacity:.45}.lock{font:9px Consolas,monospace;letter-spacing:.5px;color:var(--muted)}.picker-hint{font-size:11px;margin:14px 0}.howto{margin:25px 0 34px;padding:17px 22px}.howto summary{cursor:pointer;list-style:none;font-size:13px;display:flex;justify-content:space-between}.howto summary::-webkit-details-marker{display:none}.howto summary span{color:var(--mint)}.howto p{font-size:13px;color:var(--muted);line-height:1.8;margin:16px 0 0}.play-heading{padding:32px 0 24px;display:flex;justify-content:space-between;align-items:center;gap:15px}.play-heading .eyebrow{margin-bottom:8px}.play-heading h1{font-size:31px;letter-spacing:-1px;margin:0}.hud{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.metric{padding:16px 22px;border:1px solid var(--line);border-radius:10px;background:#111c1f}.metric .small-label{display:block}.metric strong{display:block;font:36px/1.3 Consolas,monospace;letter-spacing:-1px;margin-top:4px}.metric:first-child strong{color:var(--mint)}.metric.low strong{color:var(--coral)}.typing-board{overflow:hidden}.board-top{display:flex;justify-content:space-between;gap:12px;padding:15px 22px;border-bottom:1px solid var(--line);font:10px Consolas,monospace;letter-spacing:1px;color:var(--muted)}#runStatus{color:var(--mint)}.feed{height:230px;overflow:auto;position:relative;scrollbar-width:thin;scrollbar-color:#47634d transparent;padding:25px 26px 45px;background:#101a1c}.source-text{font:20px/1.9 Consolas,'Courier New',monospace;letter-spacing:.2px;white-space:pre-wrap;overflow-wrap:anywhere;color:#aab8b8}.source-line{min-height:38px}.char.correct{color:var(--mint)}.char.wrong{color:#ffd4d2;background:#773e405e;text-decoration:underline;text-decoration-color:var(--coral)}.char.current{background:#b7eb7833;border-bottom:2px solid var(--mint);color:#f3ffdf}.char.break{font-size:13px;color:#637c78}.char.break.wrong{color:var(--coral)}.typing-area{padding:18px 22px;background:#152124;border-top:1px solid var(--line)}.typing-area label{display:block;font:9px Consolas,monospace;letter-spacing:1.5px;color:var(--muted);margin-bottom:10px}textarea{display:block;width:100%;height:94px;resize:none;background:#0b1518;color:var(--ink);border:1px solid #3b5050;border-radius:8px;padding:13px 15px;outline:none;font:17px/1.5 Consolas,monospace;caret-color:var(--mint);scrollbar-width:thin}textarea:focus{border-color:var(--mint);box-shadow:0 0 0 2px #b7eb7810}textarea::placeholder{color:#7e9493}textarea:disabled{opacity:.65}.typing-bottom{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font:10px/1.6 Consolas,monospace;margin-top:10px}.run-progress{height:3px;background:#2b3932}.run-progress>div{background:var(--mint);height:100%;width:0;transition:width .1s}.play-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:17px 0 36px}.play-actions>p{font-size:12px;color:var(--muted);margin:0}.play-actions>div{display:flex;gap:8px;flex-shrink:0}.results{max-width:770px;margin:45px auto;padding:40px;text-align:center}.results h1{font-size:43px;letter-spacing:-1.5px;margin:20px 0 14px}.result-stars{color:#4e5e53;font-size:46px;letter-spacing:10px;line-height:1.4}.result-stars .earned{color:var(--mint)}.record-badge{display:inline-block;border:1px solid #5e7c3e;color:var(--mint);background:#263923;padding:7px 13px;border-radius:5px;font:10px Consolas,monospace;letter-spacing:1px;margin:5px 0 20px}.result-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:23px 0;margin:20px 0}.result-metrics strong{display:block;font:28px/1.6 Consolas,monospace}.result-metrics>div:first-child strong{color:var(--mint)}.result-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:24px}footer{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:66px;font:9px/1.8 Consolas,monospace;letter-spacing:1px;color:var(--muted);margin:28px 0 10px}.footer-divider{color:#536d5e;margin:0 10px}footer button{font-size:10px!important}.storage-notice{font-size:12px;color:var(--coral);line-height:1.5}.pause-overlay{position:fixed;inset:0;display:grid;place-items:center;background:#071012e8;padding:20px;z-index:50;backdrop-filter:blur(6px)}.pause-card{width:min(440px,100%);padding:35px;text-align:center}.pause-card h2{font-size:42px;letter-spacing:-1px;margin:0 0 15px}.pause-card p:not(.eyebrow){color:var(--muted);font-size:14px;line-height:1.7}.pause-card button{display:block;width:100%;margin-top:12px}#boot{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#060a0a;padding:24px}#stage{width:min(900px,100%)}#bootSkip{margin-top:18px}
@media(max-width:760px){.shell{width:calc(100% - 32px)}.edition,.offline{display:none}.masthead{height:70px}.hero{padding:32px 0;gap:20px}.hero h1{font-size:49px}.hero-score{width:180px;padding-left:22px}.hero-score>strong{font-size:48px}.hero-score>strong span{font-size:13px}.selection-layout{grid-template-columns:1fr;gap:26px}.featured>.muted{min-height:0}.level-grid{gap:10px}.level-tile{height:70px}.hud{gap:7px}.metric{padding:12px}.metric strong{font-size:28px}.source-text{font-size:18px}.play-heading h1{font-size:25px}.results{padding:26px}.results h1{font-size:35px}.play-actions{align-items:flex-start}.play-actions>div{gap:0}.metric .small-label{font-size:8px;letter-spacing:1px}}
@media(max-width:450px){.hero{align-items:flex-start}.hero h1{font-size:39px;letter-spacing:-2px}.hero .eyebrow{font-size:8px;letter-spacing:1px}.hero-score{width:105px;padding:10px 0 10px 15px}.hero-score>strong{font-size:38px}.hero-score>strong span{font-size:13px}.hero-score>span{font-size:9px!important}.lead{font-size:13px}.featured{padding:22px}.level-facts{gap:20px}.level-tile{padding:10px;height:65px}.tile-stars{font-size:10px}.hud{grid-template-columns:repeat(2,1fr)}.metric strong{font-size:27px}.metric{display:flex;align-items:center;justify-content:space-between;gap:7px}.feed{height:200px;padding:17px}.typing-area{padding:15px}.typing-bottom{font-size:9px}.board-top{padding:12px;font-size:9px}.play-actions{flex-direction:column;gap:12px}.result-metrics{grid-template-columns:repeat(2,1fr)}.result-actions{flex-direction:column}.result-actions button{width:100%}footer{align-items:flex-start;padding-top:15px}.footer-divider{margin:0 3px}}
.results h1:focus{outline:none}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
