:root{--bg:#04070f;--panel:#080e1cc7;--panel-border:#6e96dc38;--text:#dbe5f5;--muted:#8494b0;--accent:#5fd4ff;--amber:#f2b35c;--ok:#50e696;--warn:#f2b35c;--bad:#ff5f5f;--mono:ui-monospace, "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--text);font-family:var(--mono);margin:0;font-size:13px;overflow:hidden}#view{display:block;position:fixed;inset:0}button{font:inherit;color:var(--text);border:1px solid var(--panel-border);cursor:pointer;background:#1e2c46cc;border-radius:4px;padding:5px 10px}button:hover{border-color:var(--accent)}button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}button[aria-pressed=true]{border-color:var(--accent);color:#fff;background:#5fd4ff2e}.topbar{background:linear-gradient(#04070feb,#04070f00);flex-wrap:wrap;align-items:center;gap:16px;padding:10px 16px;display:flex;position:fixed;top:0;left:0;right:0}.brand{letter-spacing:.25em;color:#fff;background:0 0;border:none;padding:4px 0;font-weight:700}.mission{color:var(--muted);letter-spacing:.2em;font-size:11px}.brand .tag{letter-spacing:.1em;color:var(--accent);border:1px solid #5fd4ff66;border-radius:3px;margin-left:6px;padding:1px 5px;font-size:10px;font-weight:400}.config,.actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.actions{margin-left:auto}.seed{color:var(--muted);margin-right:6px;font-size:11px}.seed span{color:var(--text);overflow-wrap:anywhere}.replay-text{width:100%;min-height:70px;font:inherit;color:var(--text);border:1px solid var(--panel-border);overflow-wrap:anywhere;background:#00000059;border-radius:4px;margin-top:10px;font-size:11px;display:block}.hud{background:var(--panel);border:1px solid var(--panel-border);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:6px;width:230px;max-height:calc(100% - 110px);padding:10px 12px;position:fixed;top:60px;left:16px;overflow-y:auto}.hud-section+.hud-section{border-top:1px solid var(--panel-border);margin-top:10px;padding-top:8px}.hud-title{letter-spacing:.18em;color:var(--accent);margin-bottom:4px;font-size:10px}.hud-row{justify-content:space-between;line-height:1.55;display:flex}.hud-label{color:var(--muted)}.hud-value{font-variant-numeric:tabular-nums}.hud-row[data-level=ok] .hud-value{color:var(--ok)}.hud-row[data-level=warn] .hud-value{color:var(--warn)}.hud-row[data-level=bad] .hud-value{color:var(--bad)}.hud-bar{background:#ffffff14;border-radius:2px;height:4px;margin-top:4px;overflow:hidden}.hud-bar-fill{background:var(--accent);height:100%;transition:width .1s linear}.hud-bar-fill[data-low="1"]{background:var(--warn)}.hud-faults{color:var(--bad);min-height:1em;font-size:11px}.hud-gates{flex-wrap:wrap;gap:4px;display:flex}.gate{color:var(--bad);border:1px solid #ff5f5f80;border-radius:3px;padding:2px 6px;font-size:10px}.gate[data-ok="1"]{color:var(--ok);border-color:#50e69699}.help{color:var(--muted);pointer-events:none;flex-wrap:wrap;justify-content:center;gap:14px;font-size:11px;display:flex;position:fixed;bottom:10px;left:0;right:0}kbd{text-align:center;border:1px solid var(--panel-border);min-width:18px;color:var(--text);background:#1e2c4699;border-radius:3px;margin-right:2px;padding:0 4px;display:inline-block}.overlay{background:#02040a73;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.overlay[hidden]{display:none}.card{border:1px solid var(--panel-border);background:#080e1cf0;border-radius:8px;width:100%;max-width:440px;padding:20px 22px;box-shadow:0 10px 40px #00000080}.card[data-tone=success]{border-color:#50e69699}.card[data-tone=failure]{border-color:#ff5f5f99}.card h2{letter-spacing:.12em;color:#fff;margin:0 0 10px;font-size:16px}.card[data-tone=success] h2{color:var(--ok)}.card[data-tone=failure] h2{color:var(--bad)}.card p{color:var(--text);margin:0 0 8px;line-height:1.5}.card p.hint{color:var(--muted);margin-top:10px;font-size:11px}.card-actions{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.charts{background:var(--panel);border:1px solid var(--panel-border);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:6px;width:320px;max-height:calc(100% - 110px);padding:8px;position:fixed;top:60px;right:16px;overflow-y:auto}.charts[hidden]{display:none}.chart .u-title{letter-spacing:.18em;color:var(--accent);text-align:left;padding-left:4px;font-size:10px;font-weight:400}.replay-bar{background:var(--panel);border:1px solid var(--accent);color:var(--accent);white-space:nowrap;border-radius:6px;align-items:center;gap:8px;padding:6px 10px;display:flex;position:fixed;bottom:36px;left:50%;transform:translate(-50%)}.replay-bar[hidden],body[data-mode=replay] .help{display:none}.scores{border-top:1px solid var(--panel-border);margin-top:14px;padding-top:10px}.scores-title{letter-spacing:.18em;color:var(--accent);margin-bottom:6px;font-size:10px}.scores ol{margin:0;padding-left:22px}.scores li{justify-content:space-between;align-items:center;gap:8px;font-size:12px;line-height:1.9;display:flex}.scores li button{padding:1px 8px;font-size:11px}.touch-controls{display:none}body.touch-mode .touch-controls{pointer-events:none;touch-action:none;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:flex-end;padding:0 12px 14px;display:flex;position:fixed;bottom:0;left:0;right:0}body.touch-mode[data-mode=replay] .touch-controls,body.touch-mode .help{display:none}.touch-pad{pointer-events:auto;grid-template-columns:repeat(2,76px);gap:8px;display:grid}.touch-btn,.touch-cut{touch-action:none;background:#1e2c46bf;height:52px;font-size:12px}.touch-btn:active{background:#5fd4ff4d}.touch-throttle{pointer-events:auto;flex-direction:column;order:2;align-items:center;gap:6px;display:flex}.touch-label{letter-spacing:.15em;color:var(--muted);font-size:10px}.touch-track{border:1px solid var(--panel-border);touch-action:none;background:#1e2c4699;border-radius:8px;width:64px;height:min(38vh,240px);position:relative;overflow:hidden}.touch-fill{background:linear-gradient(#f2b35c80,#ff8a5cbf);position:absolute;bottom:0;left:0;right:0}.touch-cut{width:64px;color:var(--bad);border-color:#ff5f5f99}body.touch-mode .charts{max-height:calc(100% - 140px - min(38vh,240px))}body[data-phase=menu] .topbar,body[data-phase=menu] .hud,body[data-phase=menu] .charts,body[data-phase=menu] .help,body[data-phase=menu] .touch-controls,body[data-phase=menu] #view{display:none}.menu{color:#e8e8e6;--blink:1;background:#03060c;position:fixed;inset:0;overflow:hidden}.menu[hidden]{display:none}.menu-scene{width:100%;height:100%;position:absolute;inset:0}.menu-panel{max-width:calc(100% - 48px);max-height:calc(100% - 70px);position:absolute;top:clamp(24px,7vh,96px);left:clamp(24px,6vw,80px);overflow-y:auto}.menu-title{letter-spacing:.35em;color:#f6f6f3;margin:0;font-size:clamp(30px,5vw,48px);font-weight:400}.menu-tagline{letter-spacing:.3em;color:#8a919b;margin-top:6px;font-size:11px}.menu-rule{background:#8a919b;width:40px;height:1px;margin:14px 0 18px}.menu-levels{text-shadow:0 1px 6px #000000e6;grid-template-rows:repeat(3,auto);grid-template-columns:repeat(2,minmax(0,300px));grid-auto-flow:column;align-items:start;gap:4px 36px;display:grid}@media (max-width:560px){.menu-levels{grid-template-rows:none;grid-template-columns:minmax(0,1fr);grid-auto-flow:row}}.menu-item{color:#8a919b;text-align:left;letter-spacing:.2em;cursor:pointer;background:0 0;border:none;border-radius:0;align-items:center;gap:16px;padding:8px 0;display:flex}.menu-item:hover,.menu-item:focus-visible{color:#f6f6f3;outline:none}.menu-line{background:#f2f2ef;width:0;height:1px;transition:width .2s}.menu-item:hover .menu-line,.menu-item:focus-visible .menu-line,.menu-item:focus .menu-line{width:28px}.menu-item:focus{color:#f6f6f3}.menu-item[aria-pressed]{background:0 0;border:none}.menu-index{color:#4f5661;font-size:12px}.menu-text{flex-direction:column;gap:4px;display:flex}.menu-level-title{letter-spacing:.25em;font-size:clamp(18px,2.6vw,26px)}.menu-item.locked:hover .menu-line,.menu-item.locked:focus .menu-line{width:0}.menu-item.locked{cursor:default;color:#59616d}.menu-level .menu-index{align-self:flex-start;margin-top:8px}.menu-item.locked .menu-index,.menu-item.locked .menu-level-sub{color:#474e58}.menu-level-locked{letter-spacing:.2em;color:#8a919b;font-size:10px}.menu-level-sub{letter-spacing:.25em;color:#6b7380;font-size:11px}.menu-level-best{letter-spacing:.2em;color:var(--ok);font-size:11px}.menu-small{margin-top:18px;padding-left:44px;font-size:11px}.menu-footer{letter-spacing:.15em;color:#6b7380;justify-content:space-between;gap:12px;font-size:11px;display:flex;position:absolute;bottom:18px;left:clamp(24px,6vw,80px);right:clamp(24px,6vw,80px)}.menu-dot{vertical-align:1px;width:6px;height:6px;opacity:var(--blink);background:#f2f2ef;border-radius:50%;margin-right:8px;display:inline-block}@media (max-width:640px){.topbar{gap:8px;padding:8px 16px}.actions{margin-left:0}.hud{grid-template-columns:1fr 1fr;align-content:start;column-gap:16px;width:auto;max-height:32%;font-size:11px;display:grid;top:96px;left:16px;right:16px}.hud-section+.hud-section{border-top:none;margin-top:0;padding-top:0}.help{display:none}.charts{width:auto;max-height:40%;inset:auto 16px 10px}body.touch-mode .charts{max-height:32%;top:96px;bottom:auto}}.uplot,.uplot *,.uplot :before,.uplot :after{box-sizing:border-box}.uplot{width:min-content;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{-webkit-user-select:none;user-select:none;position:relative}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{width:100%;height:100%;display:block;position:relative}.u-axis{position:absolute}.u-legend{text-align:center;margin:auto;font-size:14px}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{pointer-events:none;background:#00000012;position:absolute}.u-cursor-x,.u-cursor-y{pointer-events:none;will-change:transform;position:absolute;top:0;left:0}.u-hz .u-cursor-x,.u-vt .u-cursor-y{border-right:1px dashed #607d8b;height:100%}.u-hz .u-cursor-y,.u-vt .u-cursor-x{border-bottom:1px dashed #607d8b;width:100%}.u-cursor-pt{pointer-events:none;will-change:transform;border:0 solid;border-radius:50%;position:absolute;top:0;left:0;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}
