:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#dfe9eb;background:#0c141a;font-synthesis:none;--line:#2b3b43;--muted:#91a6ad;--gold:#f4cd83}*{box-sizing:border-box}body{margin:0}button,summary{touch-action:manipulation}button{font:inherit;font-size:14px;font-weight:650;border:1px solid #3b4c55;border-radius:6px;color:#deeaec;background:#1a2932;min-height:42px;padding:9px 13px;cursor:pointer;transition:background .15s,border-color .15s}button:hover{background:#2a3c46;border-color:#95a7af}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button.primary{background:var(--gold);color:#202324;border-color:var(--gold)}button.primary:hover{background:#ffe0a6}button.subtle{background:transparent}.danger{color:#ff9d98;background:#34252a;border-color:#613f45}.icon-button{width:42px;font-size:20px}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:850;letter-spacing:1.5px}.brand svg{width:32px;fill:var(--gold)}.brand b{color:var(--gold)}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:2px;margin-top:3px;font-weight:600}#app{max-width:1560px;margin:auto;padding:0 28px}header{height:96px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.hud{display:flex;gap:45px;margin-left:auto;margin-right:32px}.hud div{min-width:58px}.hud small,.eyebrow{display:block;font-size:11px;letter-spacing:1.7px;color:var(--muted);font-weight:700}.hud strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:26px;line-height:1.6;font-weight:500}.hud div:first-child strong{color:var(--gold)}.hud em{font-size:13px;font-style:normal;color:var(--muted)}main{display:grid;grid-template-columns:minmax(0,1fr) 278px;gap:24px;padding-top:24px}.battlefield{min-width:0}.mapbar{display:flex;justify-content:space-between;align-items:center;height:42px;font-size:11px;color:var(--muted);letter-spacing:1.5px}.mapbar b{color:#cbd8db;margin-left:16px;font-weight:500}.mapbar i{display:inline-block;width:6px;height:6px;border-radius:100%;background:#85d5a5;margin-right:7px}.mapbar>div{display:flex;align-items:center;gap:7px}.mapbar button{min-height:30px;width:30px;padding:0;font-size:18px}.mapbar #zoom-level{font-size:10px;letter-spacing:0}#viewport{border:1px solid #3a4d55;border-radius:8px 8px 0 0;overflow:auto;position:relative;background:#101e25}canvas{display:block;width:100%;height:auto;touch-action:pan-x pan-y}canvas.building{cursor:crosshair}.field-footer{border:1px solid var(--line);border-top:0;border-radius:0 0 8px 8px;background:#15222a;padding:10px 13px;display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}.controls{display:flex;gap:8px;margin-top:16px}.controls .primary{flex:1}.controls button{min-height:46px}#notice{min-height:42px;padding:12px 0;color:#9cb2ba;font-size:13px}.panel-heading{display:flex;justify-content:space-between;align-items:baseline;padding:11px 0 15px}.panel-heading h2{margin:0;font-size:19px}.panel-heading span{font-size:9px;letter-spacing:1.1px;color:var(--muted)}.build-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.build-button{display:flex;align-items:center;gap:10px;text-align:left;padding:12px 9px;min-height:67px}.build-button .glyph{border:1px solid currentColor;border-radius:5px;display:grid;place-items:center;flex:0 0 26px;width:26px;height:30px;font:700 15px ui-monospace,monospace}.build-button .label{font-size:13px;line-height:1.3}.build-button small{display:block;color:#a1b1b8;font:12px ui-monospace,monospace;margin-top:4px}.build-button.active{background:#2c3540;border-color:var(--gold)}details{margin-top:15px;border-bottom:1px solid var(--line);padding-bottom:17px}summary{font-size:14px;cursor:pointer;padding:7px 0}summary span{display:block;font-size:11px;color:var(--muted);padding:4px 0 0 14px}details .build-grid{margin-top:12px}details .build-button{min-height:58px}details .glyph{display:none}#inspector{margin-top:20px}#inspector h2{font-size:20px;margin:8px 0}#selection-description{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 12px}#selected-stats{font:12px ui-monospace,monospace;color:#c4d1d6;line-height:1.6;margin-bottom:12px}#upgrades{display:grid;gap:7px}.upgrade{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:9px 11px}.upgrade small{color:var(--muted);font-weight:400}.upgrade .cost{font:13px ui-monospace,monospace;color:var(--gold)}#combo-status{font-size:12px;line-height:1.6;border-left:2px solid #91bd9d;background:#192c2b;padding:10px 12px;margin:14px 0;color:#bdd5c8}#combo-status:empty{display:none}#sell{width:100%;min-height:38px}#placement{display:flex;gap:8px;margin:12px 0}#placement>button:first-child{flex:1}.recipe-button{width:100%;margin-top:18px;display:flex;justify-content:space-between;font-size:13px;background:transparent}.recipe-button span{font-size:11px;font-weight:400;color:var(--muted)}.local-note{color:#78929c;font-size:11px;text-align:center;padding:15px 0}.overlay{position:fixed;inset:0;background:#061018ba;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:grid;place-items:center;z-index:10;padding:20px}.start-card{width:440px;max-width:100%;padding:40px;background:#14232c;border:1px solid #475452;border-radius:14px;box-shadow:0 30px 100px #0007}.start-card h1{font-size:66px;line-height:1;letter-spacing:-3px;margin:24px 0}.start-card h1 span{color:var(--gold)}.start-card p{color:#b3c4cb;font-size:16px;line-height:1.7}.briefing{display:grid;gap:12px;font-size:13px;margin:24px 0 28px}.briefing b{color:var(--gold);font:12px ui-monospace,monospace;margin-right:13px}.start-card button{width:100%;margin-bottom:9px;min-height:48px}.start-card>small{display:block;text-align:center;margin-top:15px;font-size:11px;color:var(--muted)}[hidden]{display:none!important}dialog{color:#dfe9eb;background:#14232c;border:1px solid #52636b;border-radius:12px;max-width:780px;width:calc(100% - 28px);max-height:88vh;padding:26px}dialog::backdrop{background:#000a;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-26px;background:#14232c;z-index:1}.dialog-heading h2{font-size:24px}dialog p{font-size:14px;line-height:1.7;color:#b9cbd1}.recipe{padding:14px 0;border-top:1px solid var(--line)}.recipe h3{font-size:16px;margin:0 0 8px}.recipe .parts{display:flex;gap:6px;flex-wrap:wrap}.recipe .parts span{font-size:11px;border:1px solid currentColor;border-radius:4px;padding:3px 6px}.recipe p{font-size:13px;margin:8px 0 0}.footnote{font-size:12px!important}.benchmark-badge{position:fixed;bottom:10px;left:10px;z-index:100;background:#111e;padding:12px;font:12px monospace}@media(min-width:1500px){main{grid-template-columns:minmax(0,1fr) 300px}#app{padding:0 40px}.build-button{min-height:78px}#selection-description{font-size:14px}}@media(max-width:1000px){#app{padding:0 16px}main{gap:16px;grid-template-columns:minmax(0,1fr) 246px}.hud{gap:22px;margin-right:0}.brand{font-size:17px}.brand svg{width:26px}.build-button{gap:6px;padding:10px 7px}.controls{flex-wrap:wrap}.controls #restart{font-size:12px}.field-footer{font-size:11px}.mapbar b{margin-left:8px}}@media(max-width:740px){#app{padding:0 12px}header{height:76px;gap:12px}.brand{font-size:14px;letter-spacing:.8px}.brand svg{display:none}.brand small{font-size:8px;letter-spacing:.8px}.hud{gap:15px}.hud div{min-width:30px}.hud small{font-size:8px;letter-spacing:.7px}.hud strong{font-size:21px}.hud em,.hud .best{display:none}.icon-button{width:34px;min-height:36px;padding:3px}main{grid-template-columns:1fr;gap:0;padding-top:8px}.mapbar{height:40px}.mapbar button{min-height:34px;min-width:34px}.controls{margin-top:10px;gap:6px}.controls button{min-height:44px;padding:8px 10px;font-size:13px}#notice{font-size:12px;min-height:35px;padding:9px 0}.panel-heading{padding:7px 0 12px}.build-grid{grid-template-columns:repeat(4,1fr);gap:6px}.build-button{display:block;padding:8px 5px;min-height:65px;text-align:center}.build-button .glyph{display:none}.build-button .label{font-size:13px;color:inherit}.build-button small{font-size:11px}details{margin-top:8px;padding-bottom:8px}details .build-grid{grid-template-columns:repeat(2,1fr)}summary span{display:inline;padding-left:8px}#inspector{margin-top:16px}#inspector h2{font-size:18px}#selection-description{margin-bottom:7px}#upgrades{grid-template-columns:repeat(3,1fr);gap:6px}.upgrade{display:block;text-align:center;padding:8px 4px;line-height:1.6;font-size:12px}.upgrade .cost{display:block}.upgrade small{font-size:11px}#selected-stats{margin-bottom:7px}.recipe-button{margin-top:12px}#combo-status{margin:10px 0;font-size:12px}.local-note{padding:12px}#placement{position:sticky;bottom:8px;z-index:2;background:#14232c;padding:6px;border-radius:8px}dialog{padding:18px}.start-card{padding:28px}.start-card h1{font-size:56px;margin:18px 0}.start-card p{font-size:14px}.briefing{margin:20px 0;gap:9px}.start-card>small{font-size:10px}}@media(max-height:600px)and (orientation:landscape){header{height:62px}main{padding-top:6px}#app{max-width:1100px}main{grid-template-columns:minmax(0,1fr) 235px;gap:15px}.start-card{padding:22px;width:600px}.start-card h1{font-size:40px;margin:14px 0}.start-card h1 br,.start-card p br{display:none}.briefing{display:flex;gap:12px;font-size:11px;margin:14px 0}.start-card>small{margin-top:4px}.hud .best{display:none}}header{position:sticky;top:0;z-index:5;background:#0c141af5}button:disabled{opacity:.6}#field-selection{color:#d0ddd9}@media(max-width:740px){.field-footer{flex-wrap:wrap;gap:5px}.field-footer #status{flex-basis:100%}#field-selection{font-size:11px}.hud{margin-left:auto}}#unlock-progress{font-size:12px;line-height:1.5;color:#b6c9d0;margin:12px 0 4px}.build-button .unlock-note{color:#e3bd80;font-size:10px;white-space:nowrap}.build-button.locked{border-style:dashed;opacity:.65}#modifier-list{grid-template-columns:repeat(2,minmax(0,1fr))}#modifier-list .glyph{display:none}#modifier-list .label{min-width:0}#modifier-list .unlock-note{white-space:normal}#upgrade-max{width:100%;margin-top:9px;min-height:44px;font-size:13px}#combo-picker{margin-top:15px;min-width:0}#combo-picker label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}#combo-choice{width:100%;min-width:0;min-height:44px;font:inherit;font-size:13px;color:#dfe9eb;background:#1a2932;border:1px solid #3b4c55;border-radius:6px;padding:9px 28px 9px 10px;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#a3b7bf 50%),linear-gradient(135deg,#a3b7bf 50%,transparent 50%);background-position:calc(100% - 16px) 19px,calc(100% - 11px) 19px;background-size:5px 5px;background-repeat:no-repeat}#combo-choice:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.start-card{max-height:calc(100dvh - 32px);overflow-y:auto}#score-form{text-align:left;border-block:1px solid #475452;margin:20px 0 10px;padding:16px 0 4px}#score-form label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}#player-name{width:100%;min-height:48px;padding:10px 12px;font:inherit;font-size:16px;border:1px solid #52636b;border-radius:6px;background:#101e25;color:#dfe9eb;margin-bottom:10px}#player-name:focus{outline:2px solid var(--gold);outline-offset:2px}#score-state{font-size:12px;line-height:1.5;margin:5px 0 10px;min-height:18px;color:var(--gold)}#leaderboard{max-width:650px}#ranking-state{min-height:44px;font-size:13px}.ranking-scroll{overflow-x:auto}.ranking-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}.ranking-table th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.7px;padding:12px 8px;border-bottom:1px solid #475452}.ranking-table td{padding:13px 8px;border-bottom:1px solid var(--line);font-size:14px;overflow-wrap:anywhere}.ranking-table td:first-child{color:var(--gold);width:44px}.ranking-table tr:first-child{color:#ffe0a6;background:#f4cd8315}.ranking-table th:nth-child(n+3),.ranking-table td:nth-child(n+3){text-align:right}#ranking-empty{text-align:center;padding:24px 0;color:var(--muted)}#refresh-ranking{margin-top:18px}#leaderboard .footnote{color:var(--muted)}@media(max-width:740px){header{gap:6px}.hud{gap:10px}.icon-button{width:32px;flex-shrink:0}.brand{font-size:13px}.brand small{letter-spacing:.2px;font-size:7px}.start-card{padding:24px}.start-card h1{font-size:50px}#score-form{margin-top:12px}#leaderboard{padding:16px}.ranking-table th,.ranking-table td{padding:11px 5px}.ranking-table th{font-size:10px}}.audio-controls{display:flex;align-items:center;gap:10px;margin-top:10px;color:var(--muted);font-size:12px}.audio-controls button{min-height:36px;font-size:12px;min-width:104px;padding:6px 9px}.audio-controls input{width:100px;max-width:30%;accent-color:var(--gold);min-height:36px}.audio-controls output{width:35px;font-variant-numeric:tabular-nums}.audio-controls label{font-size:12px}#special-list{grid-template-columns:repeat(2,minmax(0,1fr))}#special-list .unlock-note{white-space:normal}#special-list .label{min-width:0}kbd{font:600 10px ui-monospace,monospace;display:inline-block;border:1px solid #52636b;border-radius:3px;padding:1px 4px;line-height:1.4;color:#e6d3a8;background:#101e25}.build-key{vertical-align:1px;margin-left:2px}#hotkey-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0 26px;font-size:12px}#hotkey-list kbd{min-width:20px;text-align:center;margin-right:5px}
