:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#e5edf3;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--bg:#08121d;--panel:#101e2b;--panel-2:#142534;--line:#97b8ca26;--muted:#8299a9;--mint:#72d6b8;--gold:#e8b66a;background:#08121d;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body{background:var(--bg);min-width:320px;min-height:100%;margin:0}body{min-height:100dvh}button{font:inherit}#app{width:min(1600px,100%);margin:0 auto;padding:20px 24px 14px}.topbar{z-index:40;background:var(--bg);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;padding:0 0 18px;display:flex;position:sticky;top:0}.brand{color:inherit;align-items:center;gap:11px;min-width:190px;text-decoration:none;display:flex}.brand-mark{width:38px;height:38px;color:var(--mint);background:#72d6b814;border:1px solid #72d6b873;border-radius:11px;place-items:center;font-size:22px;font-weight:800;display:grid}.brand b{letter-spacing:.2em;font-size:15px;display:block}.brand small{color:var(--muted);letter-spacing:.16em;margin-top:3px;font-size:8px;display:block}.metrics,.top-actions{display:none}body.game-started .metrics{gap:9px;display:flex}body.game-started .top-actions{align-items:center;gap:8px;display:flex}.metric{background:var(--panel);border:1px solid var(--line);border-radius:9px;min-width:106px;padding:8px 13px}.metric small{color:var(--muted);letter-spacing:.12em;white-space:nowrap;font-size:8px;display:block}.metric strong{font-variant-numeric:tabular-nums;margin-top:3px;font-size:19px;display:block}.metric.resource strong{color:var(--gold)}.status,.zone{color:#a4c4c9;letter-spacing:.12em;white-space:nowrap;font-size:9px}.status{padding-right:9px}.control,.subtle{color:#c8d6df;background:var(--panel-2);border:1px solid var(--line);cursor:pointer;border-radius:8px;padding:9px 13px;font-size:11px}.control:hover,.subtle:hover{border-color:#72d6b880}.icon-control{place-items:center;width:36px;height:34px;padding:0;display:inline-grid}.icon-control svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:17px;height:17px}.icon-control[aria-pressed=true]{color:var(--mint)}.game-layout{grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:17px;padding-top:19px;display:grid}.battle-column{min-width:0}.battle-pinned{top:calc(var(--topbar-height,0px) + 12px);position:sticky}.command-panel{top:calc(var(--topbar-height,0px) + 12px);max-height:calc(100dvh - var(--topbar-height,0px) - 24px);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8299a959 transparent;flex-direction:column;gap:12px;padding-right:3px;display:flex;position:sticky;overflow-y:auto}.battle-heading{align-items:center;padding:0 2px 12px;display:flex}.battle-location{color:var(--mint);letter-spacing:.14em;text-transform:uppercase;margin:0;font-size:12px;font-weight:800;line-height:1.2}.eyebrow{color:var(--mint);letter-spacing:.18em;font-size:9px}.battle-heading h1{letter-spacing:-.025em;margin:4px 0 0;font-size:20px;font-weight:600}.zone{color:var(--muted);font-size:8px}.zone i{background:var(--mint);border-radius:50%;width:5px;height:5px;margin:0 7px 1px;display:inline-block}.stage-wrap{aspect-ratio:5/3;background:radial-gradient(at 50% 45%,#142b38 0%,#0b1724 72%);border:1px solid #97b8ca33;border-radius:12px;width:100%;position:relative;overflow:hidden;box-shadow:0 18px 55px #00000038}#stage{touch-action:none;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}#stage canvas{touch-action:none;display:block;width:100%!important;height:100%!important}.battle-footer{background:var(--panel);border:1px solid var(--line);color:var(--muted);border-radius:9px;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;padding:11px 13px;font-size:11px;display:flex}.primary{color:#071710;background:var(--mint);border:1px solid var(--mint);cursor:pointer;border-radius:8px;padding:10px 15px;font-size:11px;font-weight:750;transition:filter .15s,transform .15s}.primary:hover{filter:brightness(1.08)}.primary:active{transform:translateY(1px)}.primary:disabled{opacity:.45;cursor:not-allowed}.panel-section{background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:14px}.section-heading{color:#d0dce4;letter-spacing:.1em;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:10px;display:flex}.section-heading small{color:var(--muted);letter-spacing:.12em;font-size:8px}.shop{grid-template-columns:1fr 1fr;gap:7px;display:grid}.tower-choice{color:#dce6eb;text-align:left;background:var(--panel-2);border:1px solid var(--line);cursor:pointer;border-radius:8px;align-items:center;gap:7px;min-width:0;padding:9px 7px;display:flex}.tower-choice:hover:not(:disabled),.tower-choice.active:not(:disabled){border-color:var(--mint);background:#72d6b814}.tower-choice:disabled{opacity:.35;filter:grayscale(.8);cursor:not-allowed}.tower-choice:disabled strong{color:var(--muted)}.unit-dot{background:var(--unit);width:9px;height:9px;box-shadow:0 0 10px color-mix(in srgb, var(--unit), transparent 55%);border-radius:50%;flex:0 0 9px}.tower-choice span:nth-child(2){flex:1;min-width:0}.tower-choice b{white-space:nowrap;font-size:10px;display:block}.tower-choice small{color:var(--muted);margin-top:3px;font-size:8px;line-height:1.25;display:block}.tower-choice strong{color:var(--gold);font-size:10px}.hint,.muted{color:var(--muted);font-size:10px;line-height:1.55}.hint{margin:10px 0 0}.muted{margin:0}.unit-title{justify-content:space-between;align-items:center;font-size:13px;display:flex}.unit-title span{color:var(--gold);font-size:10px}#inspector .muted{margin:5px 0 10px}.statline{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;padding:6px 0;font-size:10px;display:flex}.statline b{color:#dce6eb;font-variant-numeric:tabular-nums}.actions{grid-template-columns:1fr 1fr;gap:6px;margin-top:10px;display:grid}.actions button{padding:8px 5px;font-size:9px}.actions .primary{grid-column:span 2}.legend{color:var(--muted);grid-template-columns:1fr 1fr;gap:9px;padding:12px 14px;font-size:9px;display:grid}.legend span{align-items:center;gap:7px;display:flex}.dot{background:#e3a85d;border-radius:50%;width:7px;height:7px}.dot.virus{background:#8d9dff}.dot.capsule{background:#69c99c}.dot.boss{background:#e56f79}#toast{z-index:20;opacity:0;pointer-events:none;color:#dff8ed;background:#10251f;border:1px solid #72d6b859;border-radius:8px;padding:10px 15px;font-size:11px;transition:all .2s;position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px)}#toast.visible{opacity:1;transform:translate(-50%)}.footnote{color:#607889;letter-spacing:.1em;justify-content:space-between;gap:12px;padding:15px 2px 0;font-size:8px;display:flex}.stage-overlay{z-index:12;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#040b12c7;place-items:center;padding:12px;display:grid;position:absolute;inset:0;overflow-y:auto}.stage-overlay.hidden{display:none}.menu-card{text-align:center;background:#101f2c;border:1px solid #97b8ca38;border-radius:13px;width:min(460px,100%);max-height:100%;padding:22px 24px;overflow-y:auto;box-shadow:0 18px 50px #00000061}.menu-card h2{letter-spacing:-.035em;margin:0 0 8px;font-size:clamp(22px,4vw,30px)}.menu-sub{color:#9cb0bd;max-width:440px;margin:0 auto 14px;font-size:12px;line-height:1.5}.menu-actions{flex-wrap:wrap;justify-content:center;gap:9px;display:flex}.menu-actions button{min-width:112px}.help-card{text-align:left}.help-card h2{text-align:center}.help-card ul{color:#9cb0bd;margin:10px 0 16px;padding-left:19px;font-size:11px;line-height:1.55}.help-card li+li{margin-top:5px}.help-card .menu-actions{justify-content:center}@media (width<=1050px){#app{padding:14px}.game-layout{grid-template-columns:minmax(0,1fr) 270px;gap:11px}.topbar{flex-wrap:wrap}}@media (width<=760px){body{min-height:100lvh}#app{flex-direction:column;min-height:100lvh;padding:0 10px 10px;display:flex}.game-layout{display:contents}.topbar{z-index:40;background:var(--bg);padding-top:calc(env(safe-area-inset-top,0px) + 4px);flex:none;gap:10px;padding-bottom:8px;position:sticky;top:0;box-shadow:0 10px 18px #08121deb}.battle-column{min-width:0}.battle-pinned{top:calc(var(--topbar-height,0px) + 8px);z-index:30;background:var(--bg);margin-top:8px;padding-bottom:8px;position:sticky}.command-panel{top:calc(var(--topbar-height,0px) + var(--battle-column-height,0px) + 16px);z-index:35;max-height:max(120px, calc(100lvh - var(--topbar-height,0px) - var(--battle-column-height,0px) - 72px));overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#8299a959 transparent;flex:none;align-self:stretch;margin-top:8px;position:sticky;overflow-y:auto}#stage,#stage canvas{touch-action:pan-y!important}.brand{min-width:auto}.metrics{order:3;width:100%}.metric{flex:1;min-width:0;padding:7px 9px}.metric small{font-size:7px}.top-actions{margin-left:auto}.status{display:none}.command-panel{grid-template-columns:1fr 1fr;display:grid}.panel-section:first-child,.legend{grid-column:span 2}.shop{grid-template-columns:repeat(4,minmax(0,1fr))}.tower-choice{flex-direction:column;align-items:flex-start}.tower-choice strong{margin-left:auto}.battle-heading h1{font-size:17px}.footnote{flex:none}.footnote span:nth-child(2){display:none}}@media (width<=460px){.brand b{font-size:12px}.brand small{font-size:7px}.brand-mark{width:32px;height:32px}.metric strong{font-size:16px}.battle-heading{flex-direction:column;align-items:start;gap:6px}.battle-footer{flex-direction:column;align-items:stretch}.battle-footer .primary{width:100%}.command-panel{display:flex}.shop{grid-template-columns:1fr 1fr}.tower-choice{flex-direction:row}.menu-card{padding:14px 16px}.menu-sub{margin-bottom:9px;font-size:10px}.menu-actions{gap:6px}.menu-actions button{min-width:96px;padding:8px 11px}.help-card ul{margin:7px 0 10px;font-size:10px}.intro-facts{gap:12px}}.next-wave-panel{border-color:#e8b66a47}.next-wave-panel .section-heading small{color:var(--gold);font-variant-numeric:tabular-nums}.wave-preview{flex-wrap:wrap;gap:6px;min-height:28px;margin:2px 0 12px;display:flex}.wave-chip{border:1px solid var(--line);background:var(--panel-2);color:#cbd9e1;white-space:nowrap;border-radius:7px;align-items:center;gap:6px;padding:5px 8px;font-size:9px;display:inline-flex}.wave-chip i{background:var(--chip);border-radius:50%;width:7px;height:7px}.wave-chip.boss{border-color:#e56f7980}.wave-launch{width:100%;min-height:40px;font-size:11px;display:none}body.game-started .wave-launch{display:block}.next-wave-panel .hint{margin-bottom:0}.footer-note{color:#607889;letter-spacing:.04em;font-size:9px}@media (width<=760px){.next-wave-panel{grid-column:span 2}}@media (width<=460px){.next-wave-panel{grid-column:auto}.footer-note{display:none}}:root:fullscreen{width:100%;height:100%;overflow:hidden}:root:fullscreen body{width:100%;height:100%;overflow:hidden}:root:fullscreen #app{min-height:100dvh}@media (width<=760px){:root:fullscreen .command-panel{max-height:max(120px, calc(100dvh - var(--topbar-height,0px) - var(--battle-column-height,0px) - 72px))}}
