:root{color-scheme:dark;--bg:#0d171b;--panel:#17252a;--border:#35474b;--text:#e9eee6;--muted:#a0b1ab;--mint:#8be4bd;--amber:#f6c579;font-family:'Barlow','Segoe UI',sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(at 70% -20%,#243b3d,transparent 63%),var(--bg);min-height:100vh;color:var(--text)}header{height:66px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 max(4vw,18px);background:#101c21}.brand{display:flex;align-items:center;gap:7px;font-weight:900;letter-spacing:2px;font-size:17px}.brand b{font-size:11px;color:var(--muted);letter-spacing:2.2px;margin-top:3px}.mark{height:28px;display:flex;gap:3px;transform:skew(-21deg);align-items:center;margin-right:9px}.mark i{background:var(--mint);width:6px;height:20px}.mark i:nth-child(2){height:28px}.tools{display:flex;gap:6px}button,select{font:inherit;color:var(--text);background:#24353b;border:1px solid #43575a;border-radius:4px;cursor:pointer}button{min-height:42px;padding:8px 14px;font-size:14px;font-weight:650}button:hover:enabled,select:hover{border-color:var(--mint);background:#2b4044}button:focus-visible,select:focus-visible{outline:2px solid var(--amber);outline-offset:2px}button:disabled{opacity:.48;cursor:default}.tools button{width:40px;height:38px;min-height:38px;padding:4px;color:#c7d6cd}main{max-width:1580px;margin:auto;padding:clamp(18px,3.2vw,45px) max(4vw,18px) 24px}.heading,.hud,.console,.controls,.strip,.bottom,.padline{display:flex}.heading{align-items:end;justify-content:space-between;margin-bottom:20px;gap:10px}small,.strip,.padline label,.version,.eyebrow{font:600 10px/1.4 ui-monospace,Consolas,monospace;letter-spacing:1.55px;color:var(--muted)}.heading>div>small{color:var(--mint)}h1{font:700 clamp(27px,3.5vw,52px)/1.12 'Barlow Condensed','Arial Narrow','Segoe UI',sans-serif;margin:5px 0 0;letter-spacing:-1.6px}.hud{gap:0}.hud>div{min-width:85px;border-left:1px solid var(--border);padding-left:18px;margin-left:15px}.hud small,.hud b{display:block}.hud b{font:700 22px/1.25 ui-monospace,Consolas,monospace}.hud #cash{color:var(--amber)}.hud #hp{color:var(--mint)}.console{align-items:stretch;gap:12px}.arena,aside{border:1px solid var(--border);border-radius:6px;overflow:hidden;background:var(--panel)}.arena{flex:1;min-width:0}.strip{justify-content:space-between;align-items:center;min-height:34px;padding:7px 15px;background:#1b2a30;border-bottom:1px solid var(--border);color:#cad6cf;font-size:10px}.dot{display:inline-block;background:var(--mint);width:6px;height:6px;border-radius:50%;margin-right:6px}.strip span+span{color:var(--mint);font-size:9px}.board{position:relative;background:#27383d}canvas#board{width:100%;aspect-ratio:24/13;display:block;touch-action:none;cursor:crosshair}.controls{gap:8px;padding:11px;align-items:center}.spacer{flex:1}.primary,button.primary:hover:enabled{background:var(--mint);color:#102b25;border-color:var(--mint)}#flight{color:var(--amber)}aside{width:clamp(225px,21%,290px)}.asidebody{padding:15px}.padline{align-items:center;justify-content:space-between;gap:5px}.padline select{padding:6px 7px;font:600 12px monospace}h2{font-size:22px;letter-spacing:-.7px;margin:14px 0 4px}p{line-height:1.5;color:#b7c6c1;font-size:14px;margin:5px 0 14px}.shop{width:100%;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:7px;text-align:left;margin-top:8px;padding:8px;font-size:13px}.shop canvas{width:38px;height:38px;background:#19292d;border-radius:3px}.shop b,.upgrade b{color:var(--amber);font:700 13px monospace}.shop em{font:normal 10px/1.25 sans-serif;color:#b2c4bd;display:block;margin-top:3px}.upgrade{display:flex;justify-content:space-between;width:100%;margin:5px 0;align-items:center;font-size:12px}.minor{font-size:12px;margin:3px 4px 1px 0;padding:6px 9px}.bottom{align-items:center;justify-content:space-between;gap:12px;margin-top:13px;color:#c2d2ca;font-size:13px}.version{white-space:nowrap;color:#8da19d}.signal{letter-spacing:2px}#overlay{position:absolute;left:50%;bottom:4%;transform:translateX(-50%);background:#102127f2;border:1px solid #65897f;box-shadow:0 3px 20px #0006;padding:10px 15px;border-radius:5px;text-align:center;min-width:220px;max-width:96%;font-size:14px}#overlay button{margin:5px 3px 0}#overlay strong{display:block}dialog{background:#18282d;color:var(--text);border:1px solid #58716e;border-radius:8px;max-width:440px;padding:22px}dialog::backdrop{background:#060c10ab}dialog h2{margin-top:0}dialog label{display:block;margin:14px 0}dialog button{margin-right:6px}dialog input{accent-color:var(--mint)}
@media(max-width:840px){main{padding:14px 12px}.console{gap:7px}aside{width:211px}.asidebody{padding:10px}.controls{padding:6px;gap:4px}.controls button{padding:6px 9px}.brand{font-size:14px}header{height:45px}.heading{margin-bottom:10px}.hud>div{min-width:62px;padding-left:10px;margin-left:5px}.hud b{font-size:17px}.shop{padding:5px;grid-template-columns:29px 1fr auto}.shop canvas{width:29px;height:29px}.bottom{margin-top:6px}}
@media(max-width:650px) and (orientation:portrait){.console{display:block}aside{width:100%;margin-top:8px}.heading{align-items:center}.hud>div{min-width:42px;padding-left:5px}.hud small{font-size:8px}.hud b{font-size:15px}.heading>div>small{font-size:8px}h1{font-size:24px}.version{display:none}.bottom{padding:6px 0}.shop{min-height:46px}}
@media(orientation:landscape) and (max-height:550px){header{height:32px}.tools button{min-height:28px;height:28px}.brand{font-size:12px}.mark{transform:scale(.7) skew(-21deg)}main{padding:3px 8px}.heading{margin:0 0 4px;align-items:center}.heading>div>small{display:none}h1{font-size:21px;margin:0}.hud>div{display:flex;align-items:center;gap:6px}.hud b{font-size:14px}.strip{min-height:20px;font-size:8px;padding:3px 8px}.console{max-width:calc((100svh - 125px)*1.847 + 220px);margin:auto}aside{width:192px;max-height:calc(100svh - 83px);overflow:auto}.asidebody{padding:6px}.shop{margin-top:4px}.asidebody h2{font-size:16px;margin:5px 0}.asidebody p{font-size:11px;margin:3px 0}.controls{min-height:41px;padding:2px}.controls button{min-height:36px;font-size:12px}.bottom{font-size:11px}.version{font-size:8px}}
