#touch-controls{position:fixed;inset:0;z-index:18;pointer-events:none;touch-action:none;user-select:none;-webkit-user-select:none}#touch-controls[hidden]{display:none}.touch-stick{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));width:108px;height:108px;border-radius:50%;border:1px solid #bbc9db55;background:radial-gradient(circle,#28364c66,#0c16234d);box-shadow:inset 0 0 0 12px #ffffff03,0 4px 20px #0004;pointer-events:auto;touch-action:none}.touch-stick-move{left:max(18px,env(safe-area-inset-left))}.touch-stick-aim{right:max(18px,env(safe-area-inset-right))}.touch-stick-track{position:absolute;inset:20px;border:1px solid #b4c5d733;border-radius:50%}.touch-stick-knob{position:absolute;left:35px;top:35px;width:36px;height:36px;border-radius:50%;border:1px solid #c8d5e5aa;background:linear-gradient(135deg,#9cadc466,#2d4059aa);box-shadow:0 4px 12px #0007;will-change:transform;pointer-events:none}.touch-stick-label{position:absolute;left:0;right:0;bottom:8px;text-align:center;color:#b9c7d9;font:9px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.8px;pointer-events:none}.touch-stick.engaged{border-color:#efba62aa;background:#44392566}.touch-stick-aim.engaged .touch-stick-knob{border-color:#f3ca88;background:#c4974a88}.touch-actions{position:absolute;bottom:max(23px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:grid;grid-template-columns:44px 44px;gap:7px;pointer-events:auto}.touch-action{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;width:44px;min-width:44px;height:44px;padding:3px;border:1px solid #74849b88;border-radius:9px;background:#172333d9;color:#d7e2ef;touch-action:manipulation;letter-spacing:0;box-shadow:0 3px 12px #0004}.touch-action svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.touch-action span{font:8px system-ui,sans-serif}.touch-action.available{border-color:#efba62;color:#ffe0a9;background:#493b25e6;box-shadow:0 0 15px #efba6233}.touch-controls-enabled .crosshair{display:none}
/* Phone instruments use a single shallow row, leaving the center for play. */
.touch-controls-enabled .hud{--hud-scale:1;padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left))}
.touch-controls-enabled .hud>header{height:44px;align-items:center;padding-top:env(safe-area-inset-top)}
.touch-controls-enabled .brand{font-size:12px;letter-spacing:1.5px}
.touch-controls-enabled .hud-menu-controls{gap:5px}
.touch-controls-enabled .hud-menu-controls button{height:44px;padding:6px;background:#10162099}
.touch-controls-enabled .hud-menu-controls kbd{display:none}
.touch-controls-enabled #pause{font-size:0;width:44px}
.touch-controls-enabled #pause{display:inline-flex;align-items:center;justify-content:center}
.touch-controls-enabled #pause:before{content:'';display:block;width:22px;height:22px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%205v14M16%205v14%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%205v14M16%205v14%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.touch-controls-enabled .player-status{top:calc(56px + env(safe-area-inset-top));bottom:auto;left:max(8px,env(safe-area-inset-left));width:calc(100% - max(8px,env(safe-area-inset-left)) - max(8px,env(safe-area-inset-right)));max-width:520px;max-height:none;overflow:visible;grid-template-columns:64px minmax(0,1fr) 94px;gap:7px;padding:7px 8px;transform:none;background:#101620b8;box-shadow:none}
.touch-controls-enabled .player-status .status-caption{display:none}
.touch-controls-enabled .player-status .vital>strong,.touch-controls-enabled .player-status #ammo{font-size:19px;line-height:1.1}
.touch-controls-enabled .player-status strong small{font-size:8px}
.touch-controls-enabled .player-status .track{margin-top:4px;height:3px}
.touch-controls-enabled .armor-meter{margin-top:5px}
.touch-controls-enabled .player-status #armor{display:none}
.touch-controls-enabled .player-status .armor-track{margin:0;background:#284257}
.touch-controls-enabled #credits{font-size:10px;margin-top:5px;letter-spacing:0;gap:3px}
.touch-controls-enabled #credits>img{width:18px;height:13px}
.touch-controls-enabled .player-status .weapon-status{grid-template-columns:1fr;gap:0;padding-left:8px;align-content:center}
.touch-controls-enabled #weapon-preview{display:none}
.touch-controls-enabled .player-status #weapon{display:block;font-size:8px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:4px}
.touch-controls-enabled .player-status .reserve-count{font-size:9px;margin-top:4px}
.touch-controls-enabled .ammo-icon{width:15px;height:20px}
.touch-controls-enabled .ammo-readout{gap:4px}
.touch-controls-enabled .player-status .gear-line{grid-column:3;grid-row:1;border:0;padding:0;align-self:center}
.touch-controls-enabled .player-status .inventory-items{grid-template-columns:44px 44px;gap:4px}
.touch-controls-enabled .player-status .inventory-item{width:44px;height:44px;min-height:44px;padding:2px;grid-template-columns:1fr;grid-template-rows:24px 12px;gap:0;justify-items:center;background:#17233366}
.touch-controls-enabled .player-status .inventory-item img{width:23px;height:23px;grid-column:1;grid-row:1}
.touch-controls-enabled .player-status .inventory-item b{font-size:10px;grid-column:1;grid-row:2}
.touch-controls-enabled .player-status .inventory-item .item-name,.touch-controls-enabled .inventory-item kbd{display:none}
.touch-controls-enabled .player-status #switch-grenade{grid-column:1/-1;min-height:44px;height:44px;padding:2px;flex-direction:row}
.touch-controls-enabled #grenade-type-label{font-size:9px}
.touch-controls-enabled aside.mission-note,.touch-controls-enabled .hud:has(#horde-status:not([hidden])) .mission-note{left:max(8px,env(safe-area-inset-left));top:calc(64px + var(--combat-panel-height,78px) + env(safe-area-inset-top));width:calc(100% - 96px);max-width:360px;max-height:52px;padding:5px 7px;transform:none;background:#10172270;box-shadow:none}
.touch-controls-enabled aside.mission-note h2{font-size:10px;line-height:1.3;margin:0}
.touch-controls-enabled .mission-note label,.touch-controls-enabled aside.mission-note p,.touch-controls-enabled #intel{display:none}
.touch-controls-enabled #replay-guidance{position:absolute;right:0;top:0;width:44px;height:44px;margin:0;padding:0;font-size:0;background:#101722aa}
.touch-controls-enabled #replay-guidance:before{content:'';display:block;width:22px;height:22px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2018%2018%206M7%206h11v11%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2018%2018%206M7%206h11v11%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.touch-controls-enabled .mission-note:has(#replay-guidance:not([hidden])){padding-right:48px;min-height:44px}
.touch-controls-enabled .map-panel:not(.map-expanded),.touch-controls-enabled .hud:has(#horde-status:not([hidden])) .map-panel:not(.map-expanded){display:block;top:calc(64px + var(--combat-panel-height,78px) + env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));width:72px;height:64px;padding:3px;background:#10162080;box-shadow:none}
.touch-controls-enabled .map-panel:not(.map-expanded) .map-heading{display:none}
.touch-controls-enabled .map-panel:not(.map-expanded) #minimap{width:100%;height:100%;max-height:none;aspect-ratio:auto;border:0}
.touch-controls-enabled .map-panel:not(.map-expanded) #toggle-map{position:absolute;inset:0;margin:0;width:100%;height:100%;min-height:44px;padding:0;font-size:0;background:transparent;border:0}
.touch-controls-enabled .map-panel:not(.map-expanded) #toggle-map:before{content:'';position:absolute;bottom:3px;right:3px;width:16px;height:16px;background:#dce3ed;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%204H4v5M15%204h5v5M4%2015v5h5M15%2020h5v-5%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%204H4v5M15%204h5v5M4%2015v5h5M15%2020h5v-5%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.touch-controls-enabled .map-panel.map-expanded{top:50%}
.touch-controls-enabled #interact{display:none}
.touch-controls-enabled .hud-feedback{bottom:130px;max-height:90px;width:calc(100vw - 16px);left:8px}
.touch-controls-enabled #horde-status{top:auto;bottom:126px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 16px);font-size:9px;padding:4px 8px}
.touch-controls-enabled #controls-help{top:56px;bottom:130px;max-height:none;overflow:auto}
.touch-stick{width:96px;height:96px;bottom:max(12px,env(safe-area-inset-bottom));box-shadow:none;background:#16223533;border-color:#bbc9db44}
.touch-stick-move{left:max(10px,env(safe-area-inset-left))}
.touch-stick-aim{right:max(10px,env(safe-area-inset-right))}
.touch-stick-knob{left:29px;top:29px}
.touch-stick-label{font-size:8px;bottom:7px}
.touch-actions{bottom:max(14px,env(safe-area-inset-bottom));gap:5px}
.touch-action{background:#17233399;box-shadow:none}
@media(max-width:359px){.touch-stick{width:88px;height:88px}.touch-stick-knob{left:25px;top:25px}.touch-stick-move{left:6px}.touch-stick-aim{right:6px}.touch-actions{gap:4px}.touch-controls-enabled .player-status{grid-template-columns:58px minmax(0,1fr) 92px;gap:5px;padding:6px}.touch-controls-enabled .player-status #ammo{font-size:17px}}
@media(min-width:600px) and (max-height:520px){.touch-controls-enabled .player-status{width:310px;grid-template-columns:58px minmax(0,1fr) 94px}.touch-controls-enabled aside.mission-note,.touch-controls-enabled .hud:has(#horde-status:not([hidden])) .mission-note{top:12px;left:160px;max-width:calc(100vw - 290px);width:360px}.touch-controls-enabled .map-panel:not(.map-expanded),.touch-controls-enabled .hud:has(#horde-status:not([hidden])) .map-panel:not(.map-expanded){top:64px;width:88px;height:64px}.touch-actions{grid-template-columns:repeat(4,44px);gap:7px}.touch-controls-enabled #horde-status{bottom:116px}}

/* Training owns the feedback slot; a live wave counter stays out of its way. */
.touch-controls-enabled .hud:has(#tutorial:not([hidden])) #horde-status{display:none}
/* Keep training below the operator after rotating into a short landscape view. */
@media(min-width:600px) and (max-height:520px){.touch-controls-enabled .hud-feedback{bottom:68px;left:50%;transform:translateX(-50%);width:min(420px,calc(100vw - 240px));max-height:86px}}

/* A small silhouette identifies later weapons without bringing back a large HUD card. */
.touch-controls-enabled .player-status .weapon-status{grid-template-columns:32px minmax(0,1fr);gap:5px;padding-left:5px}
.touch-controls-enabled #weapon-preview{display:block;width:32px;height:24px;align-self:center}
/* Mirroring preserves the center action cluster and safe-area clearance. */
.touch-left-handed .touch-stick-move{left:auto;right:max(10px,env(safe-area-inset-right))}
.touch-left-handed .touch-stick-aim{right:auto;left:max(10px,env(safe-area-inset-left))}
.touch-large-controls .touch-stick{width:112px;height:112px}
.touch-large-controls .touch-stick-knob{left:37px;top:37px}
@media(max-width:359px){.touch-large-controls .touch-stick{width:96px;height:96px}.touch-large-controls .touch-stick-knob{left:29px;top:29px}.touch-left-handed .touch-stick-move{right:6px}.touch-left-handed .touch-stick-aim{left:6px}}
/* Keep the full ammo row below the silhouette/name so long magazines never
   compete with the supplies column in short landscape views. */
.touch-controls-enabled .player-status .ammo-status{display:contents}
.touch-controls-enabled #weapon-preview{grid-column:1;grid-row:1;height:14px}
.touch-controls-enabled .player-status #weapon{grid-column:2;grid-row:1;margin-bottom:0;align-self:center}
.touch-controls-enabled .player-status .ammo-readout{grid-column:1/-1;grid-row:2;min-width:0;gap:3px}
.touch-controls-enabled .player-status .reserve-count{grid-column:1/-1;grid-row:3;margin-top:0}
/* Compact phone cockpit: one shallow instrument panel, edge utilities, open center. */
@media(max-width:900px){
.touch-controls-enabled .hud>header{position:absolute;right:max(8px,env(safe-area-inset-right));top:calc(8px + env(safe-area-inset-top));width:44px;height:auto;padding:0;border:0;margin:0}
.touch-controls-enabled .brand{display:none}
.touch-controls-enabled .hud-menu-controls{display:flex;flex-direction:column-reverse;gap:4px}
.touch-controls-enabled .hud-menu-controls button{width:44px;height:44px;padding:0;min-width:44px;border-radius:10px;background:#10162088}
.touch-controls-enabled #help-button{font-size:0}
.touch-controls-enabled #help-button:before{content:'?';font:600 18px system-ui;color:#c0cddd}
.touch-controls-enabled .player-status{top:calc(8px + env(safe-area-inset-top));width:calc(100% - 68px);max-width:340px;grid-template-columns:55px minmax(0,1fr) 92px;gap:5px;padding:5px 6px;border-radius:10px;background:#101620a6}
.touch-controls-enabled .player-status .vital>strong,.touch-controls-enabled .player-status #ammo{font-size:18px}
.touch-controls-enabled .player-status .weapon-status{padding-left:5px;gap:3px}
.touch-controls-enabled #credits{margin-top:3px;font-size:9px}
.touch-controls-enabled aside.mission-note,.touch-controls-enabled .hud:has(#horde-status:not([hidden])) .mission-note{top:calc(18px + var(--combat-panel-height,64px) + env(safe-area-inset-top));left:8px;width:calc(100% - 76px);max-width:340px;padding:4px 6px;background:#10172255}
.touch-controls-enabled .map-panel:not(.map-expanded),.touch-controls-enabled .hud:has(#horde-status:not([hidden])) .map-panel:not(.map-expanded){top:calc(108px + env(safe-area-inset-top));width:56px;height:50px;padding:2px;border-radius:9px;background:#10162066}
.touch-controls-enabled:not(.touch-large-controls) .touch-stick{width:84px;height:84px;bottom:max(8px,env(safe-area-inset-bottom));background:#101b2922;border-color:#bbc9db33}
.touch-controls-enabled:not(.touch-large-controls) .touch-stick-knob{left:24px;top:24px;background:#6f849d66;border-color:#c8d5e588;box-shadow:none}
.touch-controls-enabled .touch-stick-track{inset:16px;border-color:#b4c5d722}
.touch-controls-enabled .touch-stick-label{font-size:7px;letter-spacing:.5px;bottom:5px;opacity:.65}
.touch-controls-enabled .touch-actions{bottom:max(8px,env(safe-area-inset-bottom));gap:4px}
.touch-controls-enabled .touch-action{background:#121e2b99;border-color:#74849b66}
.touch-controls-enabled .touch-action span{display:none}
.touch-controls-enabled .touch-action[data-action="interact"] span{display:block}
.touch-controls-enabled .hud-feedback{bottom:108px}
.touch-controls-enabled #horde-status{bottom:102px}
}
@media(min-width:392px) and (max-width:599px){.touch-controls-enabled:not(.touch-large-controls) .touch-actions{grid-template-columns:repeat(4,44px)}}
@media(min-width:600px) and (max-width:900px) and (max-height:520px){
.touch-controls-enabled .player-status{max-width:296px;width:296px;grid-template-columns:51px minmax(0,1fr) 92px}
.touch-controls-enabled aside.mission-note,.touch-controls-enabled .hud:has(#horde-status:not([hidden])) .mission-note{top:calc(18px + var(--combat-panel-height,64px) + env(safe-area-inset-top));max-width:296px;width:296px}
.touch-controls-enabled .map-panel:not(.map-expanded),.touch-controls-enabled .hud:has(#horde-status:not([hidden])) .map-panel:not(.map-expanded){top:calc(108px + env(safe-area-inset-top))}
.touch-controls-enabled #horde-status{bottom:56px}
}

/* Help and the full map temporarily own the interaction surface. */
.touch-controls-enabled #controls-help{left:max(8px,env(safe-area-inset-left));right:auto;top:calc(8px + env(safe-area-inset-top));bottom:max(8px,env(safe-area-inset-bottom));width:min(420px,calc(100vw - 76px));max-height:none;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px;scroll-padding:14px}
.touch-controls-enabled #controls-help>p{grid-column:1/-1;min-width:0;margin:0;overflow-wrap:anywhere;font-size:12px;line-height:1.6}
.touch-controls-enabled #controls-help>button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
.touch-controls-enabled .hud:has(#controls-help:not([hidden])) #touch-controls,.touch-controls-enabled .hud:has(.map-expanded) #touch-controls{visibility:hidden;pointer-events:none}
.touch-controls-enabled .hud:has(.map-expanded)>header,.touch-controls-enabled .hud:has(.map-expanded)>.player-status,.touch-controls-enabled .hud:has(.map-expanded)>aside.mission-note{visibility:hidden}
.touch-controls-enabled .map-expanded #toggle-map{min-height:44px}
/* Reserve explicit room for the ammunition line on 320–359px phones. */
@media(max-width:359px){.touch-controls-enabled .player-status{grid-template-columns:46px minmax(0,1fr) 92px;gap:4px}.touch-controls-enabled .player-status #ammo{font-size:14px}.touch-controls-enabled .ammo-icon{width:11px;height:17px}.touch-controls-enabled .player-status #weapon-preview{width:26px}.touch-controls-enabled .player-status .weapon-status{grid-template-columns:26px minmax(0,1fr);padding-left:4px}}


/* Keep the phone supplies at two fixed columns when a second grenade type
   becomes available. The desktop :has selector otherwise adds a phantom third
   column, squeezing the ammo readout and moving the surrounding HUD. */
.touch-controls-enabled .player-status .inventory-items:has(#switch-grenade:not([hidden])){grid-template-columns:44px 44px}
/* Counters must not change width as ammunition, health and cash tick down. */
.touch-controls-enabled .player-status{font-variant-numeric:tabular-nums}
.touch-controls-enabled .player-status .vital>strong{flex-wrap:nowrap}
.touch-controls-enabled .player-status #ammo{white-space:nowrap}
/* A captured stick can extend beyond its ring, but labels and the action
   cluster keep their fixed slots instead of reacting to pressed content. */
.touch-stick-label{line-height:1.2;white-space:nowrap}
.touch-action{flex-shrink:0}
@media(hover:none){
 .touch-action:hover{background:#121e2b99;border-color:#74849b66}
 .touch-action.available:hover{background:#493b25e6;border-color:#efba62}
 .touch-action:active{background:#314258}
}
/* Keep warning silhouettes inside the compact icon; a ready reload or medkit
   is indicated at the action itself instead of requiring mid-combat reading. */
.touch-controls-enabled .ammo-readout{--ammo-cue-size:15px}
.touch-controls-enabled:has(.ammo-status.empty-magazine:not(.out-of-ammo)) .touch-action[data-action="reload"]{
 border-color:#a8cfee;box-shadow:inset 0 0 0 1px #a8cfee;color:#d9edfc;
}
@media(max-width:359px){.touch-controls-enabled .ammo-readout{--ammo-cue-size:11px}}
.touch-controls-enabled aside.mission-note:has(.mission-guidance){width:min(296px,calc(100vw - 92px));max-height:58px}
.touch-controls-enabled aside.mission-note:has(.mission-guidance[open]){max-height:min(200px,calc(100dvh - 240px));background:#101722ed}
.touch-controls-enabled aside.mission-note .mission-guidance>summary{min-height:44px}
.touch-controls-enabled aside.mission-note .mission-guidance h2{font-size:11px;gap:6px}
.touch-controls-enabled aside.mission-note .mission-guidance[open]>#hint{display:block;font-size:12px;line-height:1.5}
/* Keep the disclosure and camera-lead control reachable while only the
   optional hint scrolls. A short landscape must not scroll its close target
   out of the panel just to reveal the last line of supporting text. */
.touch-controls-enabled aside.mission-note:has(.mission-guidance){overflow:hidden}
.touch-controls-enabled aside.mission-note:has(.mission-guidance[open]){
 --guidance-height:clamp(92px,calc(100dvh - var(--combat-panel-height,64px) - 130px),200px);
 max-height:none;
}
.touch-controls-enabled aside.mission-note .mission-guidance>summary{position:relative;padding-right:17px;gap:6px}
.touch-controls-enabled aside.mission-note .mission-guidance>summary::after{position:absolute;right:3px;top:50%;margin:-5px 0 0}
.touch-controls-enabled aside.mission-note .mission-guidance[open]>summary::after{margin-top:-1px}
.touch-controls-enabled aside.mission-note .mission-guidance h2{max-height:4.05em;overflow:hidden}
.touch-controls-enabled aside.mission-note .mission-guidance[open]>#hint{
 max-height:calc(var(--guidance-height) - 65px);overflow:auto;
 overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:3px;
 overflow-wrap:anywhere;-webkit-overflow-scrolling:touch;
}

/* Fire is a separate held action above the aiming thumbstick. */
.touch-fire{position:absolute;right:max(10px,env(safe-area-inset-right));bottom:calc(max(8px,env(safe-area-inset-bottom)) + 92px);width:52px;height:48px;pointer-events:auto;touch-action:none;border-color:#b7c9dc;background:#182635ed}
.touch-fire.held{background:#684b25;border-color:#efba62;color:#ffe0ad}
.touch-left-handed .touch-fire{right:auto;left:max(10px,env(safe-area-inset-left))}
.touch-large-controls .touch-fire{bottom:calc(max(20px,env(safe-area-inset-bottom)) + 120px)}
@media(max-width:359px){.touch-large-controls .touch-fire{bottom:calc(max(20px,env(safe-area-inset-bottom)) + 104px)}}

/* One combined movement/facing stick, opposite a dedicated fire control. */
.touch-controls-enabled .touch-stick-move{left:auto;right:max(10px,env(safe-area-inset-right))}
.touch-controls-enabled .touch-fire{left:max(10px,env(safe-area-inset-left));right:auto;bottom:max(8px,env(safe-area-inset-bottom));width:84px;height:84px;border-radius:50%}
.touch-controls-enabled.touch-left-handed .touch-stick-move{right:auto;left:max(10px,env(safe-area-inset-left))}
.touch-controls-enabled.touch-left-handed .touch-fire{left:auto;right:max(10px,env(safe-area-inset-right))}
.touch-controls-enabled.touch-large-controls .touch-fire{width:96px;height:96px;bottom:max(20px,env(safe-area-inset-bottom))}
/* Large thumb targets need the compact two-row utility cluster in portrait. */
.touch-controls-enabled.touch-large-controls .touch-actions{grid-template-columns:repeat(2,44px)}
@media(min-width:600px){.touch-controls-enabled.touch-large-controls .touch-actions{grid-template-columns:repeat(4,44px)}}
