:root{--bar-height:44px;--bg:#1f2430;--panel:#2a3040;--text:#e8ebf2;--muted:#a7afc2;--accent:#3b82f6;--accent-text:#fff;--ok:#34d399;--danger:#ef4444;--border:#3a4256;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}[hidden]{display:none!important}html,body{background:var(--bg);height:100%;color:var(--text);margin:0;font:15px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,sans-serif;overflow:hidden}.bar{height:var(--bar-height);border-bottom:1px solid var(--border);white-space:nowrap;background:#161a23;align-items:center;gap:8px;padding:0 8px;display:flex}.heading{align-items:baseline;gap:10px;min-width:0;display:flex;overflow:hidden}.heading strong{text-overflow:ellipsis;overflow:hidden}.status{color:var(--muted);font-size:13px}.status.done{color:var(--ok)}.spacer{flex:1}.credit{color:var(--muted);font-size:12px}.btn{appearance:none;border:1px solid var(--border);background:var(--panel);height:32px;color:var(--text);font:inherit;cursor:pointer;border-radius:6px;align-items:center;padding:0 12px;text-decoration:none;display:inline-flex}.btn:hover:not(:disabled){filter:brightness(1.15)}.btn:disabled{opacity:.5;cursor:default}.btn:focus-visible{outline-offset:1px;outline:3px solid #93c5fd}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn.big{height:44px;padding:0 24px;font-size:17px;font-weight:600}.start{height:calc(100dvh - var(--bar-height));text-align:center;padding:8vh 16px 40px;overflow-y:auto}.start>*{max-width:560px;margin-left:auto;margin-right:auto}.start>.course{max-width:960px}.start>.task-intro{max-width:680px}.start h1{margin-top:0;margin-bottom:8px;font-size:26px}.start p{color:var(--muted)}.start-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.loading{margin-top:32px}.loading #loading-text{color:var(--text);font-variant-numeric:tabular-nums;font-size:17px}.meter{background:var(--panel);border-radius:6px;height:12px;overflow:hidden}.meter-fill{background:var(--accent);width:0;height:100%;transition:width .3s linear}.meter.busy .meter-fill{width:30%;transition:none;animation:1.4s ease-in-out infinite meter-run}@keyframes meter-run{0%{transform:translate(-100%)}to{transform:translate(340%)}}@media (prefers-reduced-motion:reduce){.meter.busy .meter-fill{opacity:.5;width:100%;animation:none}}.hint{font-size:13px}.error{color:#fca5a5!important}.notice{background:#422006;border:1px solid #a16207;border-radius:6px;padding:8px 12px;color:#fde68a!important}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.task-intro,.course{text-align:left;margin-top:24px}.task-intro h2,.course h2{margin:24px 0 8px;font-size:19px}.steps{gap:10px;margin:0;padding:0;list-style:none;display:grid}.step{border:1px solid var(--border);background:var(--panel);border-radius:8px;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.step-mark{background:var(--bg);border:1px solid var(--border);border-radius:50%;flex:none;place-items:center;width:26px;height:26px;font-size:13px;font-weight:700;display:inline-grid}.step.done{border-color:#166534}.step.done .step-mark{background:var(--ok);border-color:var(--ok);color:#052e16}.step-body{min-width:0}.step-text{white-space:pre-line;overflow-wrap:anywhere;margin:2px 0 0;color:var(--text)!important}.step-hint{color:var(--muted);margin-top:6px;font-size:14px}.step-hint summary{cursor:pointer;color:#93c5fd;width:fit-content}.step-hint summary:focus-visible{outline-offset:2px;outline:3px solid #93c5fd}.step-hint p,.step-hint li{white-space:pre-wrap;tab-size:2;overflow-wrap:anywhere}.step-hint p{margin:6px 0}.how{margin:6px 0 0;padding-left:20px}.how li+li{margin-top:4px}.course-list{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin:12px 0 0;padding:0;list-style:none;display:grid}.course-item{border:1px solid var(--border);background:var(--panel);border-radius:10px;flex-direction:column;gap:4px;padding:12px;display:flex}.course-item h3{margin:0;font-size:17px}.course-head{color:var(--muted);justify-content:space-between;gap:8px;font-size:13px;display:flex}.course-status{color:var(--ok)}.course-steps{margin:0 0 8px;font-size:13px}.course-links{flex-wrap:wrap;gap:8px;margin-top:auto;display:flex}.task-panel{--panel-width:340px;top:var(--bar-height);z-index:2;width:var(--panel-width);border-left:1px solid var(--border);background:#161a23;max-width:85vw;padding:10px 12px 24px;position:fixed;bottom:0;right:0;overflow-y:auto}.panel-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;display:flex}.panel-lead,.panel-foot{color:var(--muted);font-size:13px}.panel-foot a{color:#93c5fd}.task-panel .step{padding:8px 10px}.task-panel .step-text{font-size:14px}.editor canvas{outline:none;display:block}.game{z-index:3;inset:var(--bar-height) 0 0 0;background:#000;flex-direction:column;display:flex;position:fixed}.game-bar{background:#161a23;justify-content:space-between;align-items:center;padding:4px 8px;display:flex}.game-host{flex:1;min-height:0}.game-host canvas{outline:none;width:100%;height:100%;display:block}.dialog{border:1px solid var(--border);background:var(--panel);max-width:420px;color:var(--text);border-radius:10px}.dialog::backdrop{background:#00000080}.actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}@media (width<=640px){.credit,.status{display:none}}
