/* Touch controls: thumb zones stay at the sides, inventory stays live. */
.mobile-only{display:none}
.fire-enabled{border-color:#eba66c!important;background:#503922!important}
@media(pointer:coarse){
 .mobile-only{display:block}
 #mobileMenuButton{min-width:48px;min-height:44px;border:1px solid #ae9a6170;background:#1b2c22d9;color:#e3d5b0;padding:7px;font-size:13px;white-space:nowrap}
 .topbar .menu{display:none}
 .quickbar{grid-template-columns:repeat(6,minmax(0,1fr));width:408px;max-width:calc(100% - 24px)}
 .slot .slot-icon{display:none!important}.slot b{font-size:13px}.slot{justify-content:flex-end;padding:18px 3px 7px}
 .mobile-menu-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}
 .mobile-menu-actions button{min-height:44px;border:1px solid #af9d6466;background:#23382a;color:#e2d8ba;font-size:15px;padding:8px}
 #meleeButton,#touchMapButton{display:none}
 #crouchButton:disabled{display:none}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:620px){
 #arena,#arena.is-practice{--top:calc(52px + env(safe-area-inset-top));--dock:0px}
 #playfield{top:var(--top);bottom:0;left:0;right:0}
 .topbar{height:var(--top);display:flex;gap:14px;padding:calc(5px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 5px max(12px,env(safe-area-inset-left));background:#101c18ef}
 .vitals{width:106px;min-width:106px;display:block}.vital-track{font-size:11px;margin-bottom:5px}.vital-track i{height:3px}.shield-value{font-size:11px;position:absolute;top:var(--top);left:max(12px,env(safe-area-inset-left));padding:2px 6px;background:#162a2aca;pointer-events:none}
 .location{flex:1;min-width:60px;max-width:none;gap:3px}.location>b{font-size:13px;white-space:nowrap}.location>span{font-size:11px}.location>span#stageName{display:none}.location #stealthText{font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .match{display:grid;grid-template-columns:auto auto;gap:3px 12px;min-width:124px;font-size:12px;line-height:16px;align-items:center}.match b{font-size:17px}.match small{grid-column:1/3;max-width:none;text-align:left;font-size:10px;white-space:nowrap}.match>span{white-space:nowrap}
 #mobileMenuButton{height:42px;min-height:42px;min-width:48px}
 .bottom-dock,#arena.is-practice .bottom-dock{position:absolute;inset:0;height:auto;pointer-events:none;padding:0;border:0;background:none}
 .bottom-dock button,.bottom-dock .stick{pointer-events:auto}
 .quickbar{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(10px + env(safe-area-inset-bottom));width:min(408px,calc(100% - 224px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-width:none;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
 .slot{height:48px;min-height:44px;padding:18px 3px 6px;gap:0;background:#15261ed4}.slot b{font-size:13px;line-height:17px;white-space:nowrap}.slot .quantity{font-size:12px;top:4px;right:6px}.slot.selected{background:#4c472bec}.slot kbd{display:none}
 .stick{width:82px;height:82px;bottom:calc(14px + env(safe-area-inset-bottom))}.move-stick{left:max(16px,env(safe-area-inset-left))}.aim-stick{right:max(16px,env(safe-area-inset-right))}.stick-rim{background:#15271ba8;border-color:#c5c69d77}.stick small{font-size:11px;color:#d5dfc6}
 .touch-actions{display:contents}
 .touch-actions button{position:absolute;height:40px;min-height:40px;width:82px;bottom:calc(105px + env(safe-area-inset-bottom));font-size:13px;background:#1a2c21b8}
 #sprintButton{left:max(16px,env(safe-area-inset-left))}#crouchButton{right:max(16px,env(safe-area-inset-right))}
 .notice{display:none;position:absolute;top:auto;bottom:calc(64px + env(safe-area-inset-bottom));left:132px;right:132px;height:20px;line-height:20px;font-size:11px;background:#13241dcc;pointer-events:none}
 .notice.active{display:block}
 .practice-bar{position:absolute;top:calc(var(--top) + 9px);bottom:auto;left:max(12px,env(safe-area-inset-left));width:auto;height:36px;padding:0;margin:0;border:0;background:none;pointer-events:auto}
 .practice-copy{display:none}
 #readyBattleButton{min-height:36px;height:36px;padding:5px 10px;font-size:12px;background:#c7ab6c;border-color:#e4cd8e}

}
@media(pointer:coarse) and (orientation:landscape) and (max-width:640px){
 .topbar{gap:9px}.vitals{width:94px;min-width:94px}.match{min-width:112px;gap:3px 8px;font-size:11px}.location>b{font-size:12px}.location #stealthText{font-size:10px}.match small{font-size:9px}
 .quickbar{width:calc(100% - 224px - env(safe-area-inset-left) - env(safe-area-inset-right));max-width:408px;gap:4px}.slot b{font-size:12px}
}

@media(pointer:coarse) and (orientation:portrait){
 #arena,#arena.is-practice{--top:calc(84px + env(safe-area-inset-top));--dock:190px}
 .topbar{display:grid;grid-template-columns:106px minmax(0,1fr) 50px;grid-template-rows:42px 20px;gap:3px 10px}
 .vitals{grid-column:1;grid-row:1/3}.location{grid-column:2;grid-row:1}.match{grid-column:2;grid-row:2;display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap}.match small,.location #stageName{display:none}.location #stealthText{font-size:10px;line-height:1.3}
 #mobileMenuButton{grid-column:3;grid-row:1/3;align-self:center}
 .bottom-dock,#arena.is-practice .bottom-dock{height:calc(190px + env(safe-area-inset-bottom));padding:0;pointer-events:none}
 .bottom-dock button,.bottom-dock .stick{pointer-events:auto}
 .quickbar{position:absolute;top:12px;bottom:auto;width:408px;left:50%;transform:translateX(-50%)}.slot{height:52px}
 .touch-actions{grid-template-columns:58px;bottom:calc(35px + env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%)}.touch-actions button{min-height:40px}
 .practice-bar{position:fixed;top:calc(var(--top) + 9px);left:12px;width:auto;height:36px;padding:0;background:none;border:0}.practice-copy{display:none}#readyBattleButton{min-height:36px;height:36px;font-size:12px;padding:5px 10px}
 .notice{display:none;top:-24px;height:20px;line-height:20px;background:#13241dcc}.notice.active{display:block}
}
