@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;font-family:Inter,system-ui,sans-serif;color:#e5eef5;background:#090e17}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 0,#192f4b,transparent 55%),#090e17}main{max-width:1460px;margin:auto;padding:22px 32px}button,a{ -webkit-tap-highlight-color:transparent}button{font:700 12px Inter,system-ui;color:#d9e7f1;background:#192637;border:1px solid #45566d;padding:12px 16px;cursor:pointer;border-radius:5px;transition:background .15s,transform .15s}button:hover{background:#294566}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #7eeaff;outline-offset:3px}button:disabled{opacity:.42;cursor:default}header{display:flex;align-items:center;gap:20px;justify-content:space-between;border-bottom:1px solid #344456;padding-bottom:14px;font-size:10px;letter-spacing:2px;color:#91a3b6}header a{color:#c5d8eb;text-decoration:none;font-weight:800}.title{display:flex;align-items:center;justify-content:space-between;margin:24px 0}.title small,article small,.briefing>small{color:#ee635e;letter-spacing:3px;font-size:10px;font-weight:800}.title h1{font-family:'Barlow Condensed',Impact,sans-serif;font-size:clamp(34px,4.5vw,62px);line-height:.85;margin:13px 0 0;letter-spacing:1px}.title h1 span{color:#8eb5d6;margin-left:12px}.title p{font-size:13px;line-height:1.6;color:#9db0c2;border-left:3px solid #b84248;padding-left:18px}.command{display:flex;align-items:center;gap:36px;background:#111c29;border:1px solid #33475d;border-bottom:0;padding:12px 20px;border-radius:8px 8px 0 0}.command div{min-width:90px}.command small{display:block;font-size:9px;letter-spacing:2px;color:#849bb3;margin-bottom:3px}.command strong{font-family:'Barlow Condensed',Impact,sans-serif;font-size:25px}.command button{margin-left:auto}.arena{position:relative;border:1px solid #51657b;background:#122735;overflow:hidden;aspect-ratio:1200/680;border-radius:0 0 8px 8px}.arena canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.location{position:absolute;top:14px;left:18px;font-size:10px;letter-spacing:3px;padding:8px 10px;background:#06121ecc;border-left:3px solid #72d6ed;pointer-events:none}.alert{position:absolute;top:65px;width:100%;text-align:center;font:800 clamp(18px,3vw,36px) 'Barlow Condensed',Impact;letter-spacing:2px;color:#ffdf95;text-shadow:3px 3px #090e17;pointer-events:none}.overlay{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(90deg,#030a15e8,#07132491)}.overlay[hidden]{display:none}.briefing{max-width:660px;margin:18px;padding:30px;border:1px solid #7293ad;background:linear-gradient(120deg,#0c1c2af5,#101b2ff0);box-shadow:8px 8px 0 #0008;border-radius:5px}.briefing h2{font:800 clamp(25px,4vw,44px)/1 'Barlow Condensed',Impact;margin:14px 0 18px;letter-spacing:1px}.briefing p{font-size:13px;line-height:1.75;color:#b7c8d7;margin:0 0 18px}.briefing .actions{display:flex;gap:10px;flex-wrap:wrap}#start{background:#b93542;color:white;border:1px solid #ff7b7b;padding:14px 22px}#start:hover{background:#d9414c}#overlay-note{font-size:10px;color:#87a7bb;margin:16px 0 0}#upgrades{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 16px}#upgrades:empty{display:none}#upgrades button{text-align:left;padding:10px}#upgrades b{display:block;margin-bottom:5px}#upgrades span{font-size:10px;color:#a5bdcc;display:block}.controls{display:flex;gap:10px;align-items:center;margin-top:12px}.batteries{display:flex;gap:6px;margin-right:auto}.batteries .active{color:#8feaff;background:#164059;border-color:#75d7ee}.batteries b{margin-left:8px;color:#ffffff}.controls #pulse{border-color:#bb575a;background:#3b1d2d}.controls #pulse span{font-size:9px;margin-left:10px;color:#ffbb91}.instructions{font-size:11px;line-height:1.8;color:#8fa7bb}.instructions b{font-size:9px;letter-spacing:1px;color:#c1d2df}.lore{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:34px;padding-top:24px;border-top:1px solid #2d4055}.lore h3{font:700 24px 'Barlow Condensed',Impact;margin:12px 0}.lore p{font-size:12px;line-height:1.9;color:#9cb0c3}footer{display:flex;gap:15px;flex-wrap:wrap;justify-content:space-between;font-size:10px;color:#71889d;margin:24px 0}.arena:fullscreen{width:100vw;height:100dvh;aspect-ratio:auto;display:grid;place-items:center}.arena:fullscreen canvas{width:auto;height:auto;max-width:100vw;max-height:100dvh;aspect-ratio:1200/680}@media(max-width:760px){main{padding:12px}.title{margin:18px 0}.title h1 span{display:block;margin:8px 0 0}.title p{font-size:11px}.command{gap:12px;padding:10px}.command div{min-width:0}.command strong{font-size:20px}.command button{font-size:10px;padding:8px}.controls{flex-wrap:wrap}.batteries{width:100%;justify-content:space-between}.batteries button{padding:10px;flex:1;font-size:10px}.lore{grid-template-columns:1fr;gap:12px}.briefing{padding:18px;max-height:95%;overflow:auto}.briefing p{font-size:11px;margin-bottom:10px}.briefing h2{margin:8px 0;font-size:25px}.briefing>small{font-size:8px}.location{font-size:8px;top:8px;left:8px}.arena{aspect-ratio:1.35}.arena canvas{object-fit:contain;background:#07121d}header span{font-size:8px;letter-spacing:1px}#upgrades button{font-size:10px}#overlay-note{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Compact command station: size the battlefield around the entire panel. */
main{max-width:1120px;padding:8px 18px}header{padding-bottom:6px;gap:12px;font-size:9px;min-height:25px}header button{padding:6px 10px;font-size:10px}.title{margin:8px 0;min-height:42px}.title h1{font-size:34px;margin:6px 0 0}.title small{font-size:8px;letter-spacing:2px}.title p{margin:0;font-size:10px;line-height:1.4;padding-left:12px}.command{padding:6px 12px;gap:25px;min-height:39px}.command small{font-size:8px;margin:0}.command strong{font-size:21px}.command button{padding:7px 12px;font-size:10px}.arena{aspect-ratio:auto;height:clamp(210px,calc(100dvh - 265px),500px)}.arena canvas{object-fit:contain;background:#07121d}.controls{margin-top:6px;gap:6px}.controls button{padding:7px 10px;font-size:10px}.batteries button{min-height:30px}.instructions{font-size:10px;line-height:1.4;margin:6px 0}.lore{gap:18px;margin-top:9px;padding-top:8px}.lore small{font-size:8px;letter-spacing:1.5px}.lore h3{font-size:18px;margin:3px 0}.lore p{font-size:10px;line-height:1.45;margin:4px 0}.lore article{min-width:0}footer{margin:8px 0 0;gap:6px;font-size:9px}.briefing{padding:20px;max-width:600px;max-height:96%;overflow:auto}.briefing h2{font-size:32px;margin:8px 0}.briefing p{font-size:12px;line-height:1.55;margin-bottom:12px}#upgrades{gap:6px;margin-bottom:10px}#upgrades button{padding:8px}#start{padding:10px 17px}.location{top:7px;left:8px;padding:5px 8px;font-size:9px}.alert{top:43px;font-size:26px}.arena:fullscreen{height:100dvh}
@media(max-width:760px){main{padding:8px}.title h1{font-size:27px}.title h1 span{display:inline;margin-left:7px}.title p{display:none}.command{gap:14px}.command strong{font-size:19px}.arena{height:clamp(225px,calc(100dvh - 320px),450px)}.controls .batteries{gap:4px}.batteries button{padding:8px 5px}.lore{grid-template-columns:repeat(3,1fr);gap:8px}.lore small{font-size:7px;letter-spacing:0}.lore h3{font-size:15px}.lore p{font-size:9px}.briefing h2{font-size:25px}.briefing p{font-size:11px}.instructions{font-size:9px}footer{font-size:8px}.controls{gap:5px}}
@media(max-width:440px){.lore{grid-template-columns:1fr;gap:4px}.lore article{display:grid;grid-template-columns:120px 1fr;gap:6px}.lore small{display:none}.lore h3{margin:3px 0}.lore p{margin:3px 0}.title h1{font-size:24px}.arena{height:clamp(220px,calc(100dvh - 360px),420px)}}
#upgrades{grid-template-columns:repeat(3,1fr)}@media(max-width:580px){#upgrades{grid-template-columns:1fr 1fr}}header a{letter-spacing:1px}.briefing .actions{position:sticky;bottom:0;background:#101b2f;padding-top:5px}

#upgrade-tabs{display:flex;gap:5px;margin:10px 0;position:sticky;top:-20px;background:#101b2f;z-index:2;padding:6px 0}#upgrade-tabs[hidden]{display:none}#upgrade-tabs button{flex:1;padding:8px 5px;font-size:12px;border:1px solid #506e88;background:#172538;color:#b9cbdc}#upgrade-tabs button[aria-selected=true]{background:#244a6a;color:#fff;border-color:#80dbec}#upgrade-tabs button:focus-visible{outline:2px solid #ffd082;outline-offset:2px}

/* Larger controls and a separate, readable ground theater. */
main{max-width:1280px}header{font-size:11px}.command small{font-size:10px}.command strong{font-size:25px}.command button,.controls button{font-size:12px;padding:9px 12px}.batteries button{min-height:36px}.instructions{font-size:11px}.briefing p{font-size:13px}#upgrades span{font-size:11px}@media(max-width:760px){.command strong{font-size:21px}.command small{font-size:9px}.controls button{font-size:11px;padding:8px}.instructions{font-size:10px}}

/* One continuous, proportionate battlefield; no detached ground strip or letterboxing. */
main{max-width:1440px}.arena{height:auto;aspect-ratio:1200/680}.arena canvas{width:100%;height:100%;object-fit:fill}.arena:fullscreen{height:100dvh;aspect-ratio:auto}.arena:fullscreen canvas{width:auto;height:auto;object-fit:contain}@media(max-width:760px){.arena{height:auto;aspect-ratio:1200/680}.briefing{margin:8px;padding:12px}.briefing h2{font-size:20px}.briefing p{font-size:11px}}
