body:has(#battle:not([hidden])){margin:0;padding:0;overflow:hidden}body:has(#battle:not([hidden])) main{width:100%;max-width:none;margin:0}body:has(#battle:not([hidden])) header{z-index:5;pointer-events:none;height:36px;margin:0;padding:0;position:fixed;top:8px;left:12px;right:12px}body:has(#battle:not([hidden])) header h1{font-size:20px}:is(body:has(#battle:not([hidden])) header .subtitle,body:has(#battle:not([hidden])) header .match-info){display:none}body:has(#battle:not([hidden])) #mode-menu{pointer-events:auto;min-height:32px}#battle{isolation:isolate;width:100%;max-width:none;height:100dvh;position:relative;overflow:hidden}#battle .arenas{border:0;position:absolute;inset:0}#battle .arena-side{width:100%;height:100%}#battle .arena-label{display:none}#battle .arena-side canvas{aspect-ratio:auto;width:100%;height:100%}#battle .scoreboard{z-index:2;background:#152338ed;border-radius:10px;flex-wrap:wrap;gap:12px;max-width:calc(100% - 220px);padding:8px 12px;display:flex;position:absolute;top:50px;left:12px}#battle .scoreboard .team{gap:5px;font-size:11px}#battle .scoreboard .timer{min-width:35px;font-size:12px}#battle .controls{z-index:3;width:300px;max-width:calc(100% - 24px);margin:0;display:block;position:absolute;top:100px;left:12px}#battle .player-panel{background:#152338ed;border:1px solid #557087;border-radius:12px;padding:9px 12px}#battle .player-heading{margin:0}#battle .player-title{font-size:12px}#battle .actions,#battle .panel-footer,#battle .team-status{display:none}#battle[data-context=totem] .controls{background:#152338f5;border-radius:12px;width:380px;max-height:calc(100% - 200px);inset:auto 12px 145px auto;overflow-y:auto}#battle[data-context=totem] .actions{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px;display:grid}#battle[data-context=totem] .team-status{display:block}#close-context{width:100%}#battle .actions [data-build-defense]{display:none}#battle .defense-toolbar{z-index:2;background:#152338ed;border:1px solid #557087;border-radius:12px;gap:8px;margin:0;padding:10px;position:absolute;bottom:12px;left:12px;right:12px}#battle .defense-toolbar button,#battle .defense-toolbar select{min-height:40px}#battle #tower-path,#battle #upgrade-tower,#battle #upgrade-details,#battle #sell-tower,#battle #hero-slots{display:none}#battle #build-hint{font-size:11px}#battle #battle-notice:empty,#battle .help{display:none}#battle .bottom-row{z-index:2;margin:0;position:absolute;bottom:145px;left:12px}#battle .bottom-row button{min-height:32px;font-size:11px}.structure-menu{z-index:4;background:#152338f5;border:1px solid #7596af;border-radius:14px;width:360px;max-width:calc(100% - 24px);max-height:calc(100% - 200px);padding:14px;position:absolute;bottom:145px;right:12px;overflow:auto;box-shadow:0 12px 36px #0006}.structure-menu .menu-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.structure-menu p{color:#c2d3e5;font-size:12px}.structure-menu>button{text-align:left;width:100%;margin-top:8px;padding:10px;line-height:1.5;display:block}@media (width<=600px){#battle .scoreboard{gap:6px;max-width:calc(100% - 175px);padding:6px;top:48px}#battle .controls{width:270px;top:118px}#battle .defense-toolbar{gap:5px;padding:7px;bottom:6px;left:6px;right:6px}#battle .defense-toolbar button,#battle .defense-toolbar select{min-height:36px;font-size:11px}#battle #wave-info{font-size:11px}#battle #tower-kind{max-width:180px}#battle #build-hint{display:none}#battle[data-context=totem] .controls,.structure-menu{max-height:calc(100% - 195px);bottom:150px}#battle .bottom-row{bottom:150px}}@media (height<=500px){#battle .controls{top:92px}#battle[data-context=totem] .controls,.structure-menu{max-height:calc(100% - 115px);bottom:100px}#battle .bottom-row{bottom:100px}#battle #build-hint{display:none}}#battle{position:fixed;inset:0}body:has(#battle:not([hidden])) #mode-menu{z-index:6;margin:0;position:fixed;top:8px;left:250px}body:has(#battle:not([hidden])) .brand-mark{border-radius:9px;width:32px;height:32px;font-size:20px}@media (width<=600px){:is(body:has(#battle:not([hidden])) .brand-mark,body:has(#battle:not([hidden])) .version-badge){display:none}body:has(#battle:not([hidden])) #mode-menu{padding:6px;font-size:11px;left:120px}}#battle[data-context=totem] .controls,#battle .structure-menu{bottom:var(--hud-clearance,145px);max-height:calc(100% - var(--hud-clearance,145px) - 15px)}#battle .bottom-row{bottom:var(--hud-clearance,145px)}.hero-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0;display:grid}.hero-choices .camp-choice{--camp:#82c9ff;text-align:left;min-height:140px}.hero-choices .camp-choice[aria-pressed=true]{background:#244664;border-color:#91d4ff;box-shadow:0 0 0 2px #91d4ff55}.solo-actions{justify-content:space-between;gap:12px;display:flex}.solo-actions button{padding:10px 22px}#solo-start{background:#285c80;border-color:#91d4ff}@media (width<=540px){.hero-choices{grid-template-columns:1fr}.hero-choices .camp-choice{min-height:100px}}#winner{z-index:100}#winner .dialog{max-height:calc(100dvh - 40px);overflow:auto}#winner-standings{font-size:13px}#winner-standings:empty{display:none}
