#shared-phaser-presentation{position:fixed;inset:0;pointer-events:none;z-index:35;width:100vw;height:100vh;overflow:hidden}#shared-phaser-presentation canvas{position:absolute;left:0;top:0;pointer-events:none}body.phaser-presentation-ready .fixed-facility-cast[data-phaser-ready=true]:not([data-cast-type=mining]){visibility:hidden}body.phaser-presentation-ready .room-scene[data-phaser-ready=true]>.room-fx{visibility:hidden}body.phaser-presentation-ready .combat-weapon>img,body.phaser-presentation-ready .combat-weapon>.combat-aim,body.phaser-presentation-ready .enemy-body,body.phaser-presentation-ready .combat-canvas{opacity:0!important}body.phaser-presentation-ready .right-rail{z-index:60}body.phaser-presentation-ready #battle-hud,body.phaser-presentation-ready #battle-result{position:relative;z-index:45}dialog #shared-phaser-presentation{z-index:1}dialog .fixed-cast-heading,dialog .facility-view-toolbar{position:relative;z-index:2}@media(max-width:650px){.candidate-banner{padding:0 6px;gap:6px;font-size:8px}.candidate-banner>span:not(#phaser-status){display:none}.candidate-banner strong{font-size:8px}.candidate-banner #phaser-status{font-size:8px}}@media(prefers-reduced-motion:reduce){#shared-phaser-presentation{scroll-behavior:auto}}

body.phaser-presentation-ready .wm-resident[data-phaser-hidden=true]{opacity:0!important;pointer-events:none!important}

/* Placement is a view preference: the core pad count/cost/combat stay authoritative. */
.battle-pad[data-tower-box=true]{min-width:0!important;max-width:none!important;padding:0!important;touch-action:none}.battle-pad[data-tower-box=true] .combat-weapon{width:100%!important;height:100%!important}.battle-pad[data-tower-box=true]>small{position:absolute;top:100%;left:0;width:100%;line-height:1.2;font-size:9px;white-space:nowrap;pointer-events:none}.battle-pad[data-tower-box=true]>span{position:absolute;top:90%;left:0;width:100%;font-size:8px;line-height:1.1;pointer-events:none;opacity:.65}.tower-layout-overlay{position:absolute;inset:0;pointer-events:none;z-index:45}.tower-layout-overlay.editing:before{content:'';position:absolute;left:var(--floor-left);top:var(--floor-top);width:var(--floor-width);height:var(--floor-height);border:1px dashed #9ee0bd88;background:repeating-linear-gradient(0deg,#72dca20a,#72dca20a 18px,#82dec51a 19px,#82dec51a 20px);pointer-events:none}.tower-position-handle{position:absolute;transform:translate(-50%,-50%) scale(var(--perspective,1));width:30px;height:22px;min-height:22px!important;padding:0!important;border:1px solid #94cebc!important;border-radius:50%!important;background:#142e3ccc!important;color:#dff7ed!important;font:10px monospace!important;cursor:grab;pointer-events:auto;touch-action:none}.tower-position-handle.selected{border-color:#ffcf71!important;box-shadow:0 0 0 3px #ffcd5d44}.tower-position-handle:not(.occupied){border-style:dashed!important;opacity:.7}.tower-layout-toolbar{position:absolute;left:10px;right:10px;bottom:4px;z-index:48;pointer-events:auto;padding:5px 7px;background:#081722ce;border:1px solid #42606b99;border-radius:6px;max-width:650px}.tower-layout-buttons{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.tower-layout-toolbar button,.tower-layout-toolbar select{min-height:27px!important;padding:4px 7px!important;font:10px 'Malgun Gothic',sans-serif!important;border:1px solid #446773;border-radius:4px;background:#142c39;color:#cfeced}.tower-layout-toolbar button[aria-pressed=true]{border-color:#ffd078;color:#ffd078}.tower-layout-toolbar button:disabled{opacity:.4;cursor:not-allowed}.tower-layout-toolbar p{font:9px/1.4 'Malgun Gothic',sans-serif;color:#b0c7cb;margin:3px 0 0;min-height:12px}.tower-layout-toolbar select{max-width:175px}.tower-layout-editing{cursor:crosshair}.tower-layout-editing .battle-pad{pointer-events:none}@media(max-width:600px){.tower-layout-toolbar{left:5px;right:5px;bottom:3px;padding:4px}.tower-layout-toolbar button,.tower-layout-toolbar select{font-size:8px!important;padding:3px 5px!important;min-height:25px!important}.tower-layout-buttons{gap:3px}.tower-layout-toolbar select{max-width:112px}.tower-layout-toolbar p{font-size:8px}.battle-pad[data-tower-box=true]>small{font-size:7px}}

@media(max-width:600px){body:not(:has(.app-shell)) #battle-view{aspect-ratio:auto;min-height:340px}body:not(:has(.app-shell)) #world-viewport:has(#battle-view:not([hidden])){min-height:340px}body:not(:has(.app-shell)) .tower-layout-toolbar{top:6px;bottom:auto}.app-shell .tower-layout-toolbar{top:128px;bottom:auto}}

/* SD is the only facility character style, including during renderer startup. */

