/* Cabina compacta: controles grandes para tocar y paneles pequeños que no se cruzan. */
@media (max-width:540px){
  html,body{width:100%;height:100%;min-height:100dvh;overflow:hidden}
  .hud-top{padding:7px 8px}.mission{max-width:92px;padding:5px 6px;font-size:6px;letter-spacing:.08em}.mission span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .radar-shell{top:7px;width:58px;height:58px}.score{padding:2px 6px 3px 10px}.score small{font-size:5px}.score strong{font-size:19px}
  .sound-button{left:7px;top:39px;padding:4px 6px;font-size:8px}.sound-button span{font-size:5px}
  .dimension-panel{left:6px;top:64px}.dimension-panel button{width:116px;height:44px;padding:2px}.dimension-panel img{width:38px;height:38px}.dimension-panel b{font-size:8px}.dimension-panel small{margin-top:3px;font-size:4px}
  .vehicle-panel{right:6px;top:64px}.vehicle-panel #vehicleButton{width:118px;height:44px;padding:2px}#vehicleButton img{width:48px;height:38px}#vehicleButton b{font-size:7px}#vehicleButton small{margin-top:3px;font-size:4px}.vehicle-panel #autopilotButton{width:108px;min-height:24px}.vehicle-panel #backseatButton{width:108px;padding:5px}
  .drone-command-panel{left:6px;top:114px}.drone-command-panel>button{width:112px;height:42px}.drone-command-panel>button img{width:36px;height:36px}.drone-command-panel>button b{font-size:7px}.drone-command-panel>button small{margin-top:3px;font-size:4px}.drone-command-menu{top:46px;width:210px;max-height:48dvh}
  .companion-drone{top:30%;width:78px;height:62px;transform:none}.companion-drone b{top:57px;font-size:5px}.companion-drone i{top:70%}.drone-centella{left:1%}.drone-ambar{right:1%}
  .objective-hud{top:72px;min-width:170px;padding:5px 8px}.objective-hud small{font-size:4px}.objective-hud b{font-size:9px}.objective-hud span{font-size:6px}.boss-hud{top:112px;width:58vw;padding:5px}.boss-hud b{font-size:12px}.coop-hud{bottom:194px;padding:5px}
  .vitals{left:8px;bottom:199px;width:142px}.vital-label{margin-bottom:3px;font-size:6px}.vital-label b{font-size:9px}.vital-track{height:6px}.ammo{margin-top:4px;padding-top:4px}.ammo small{font-size:5px}.ammo b{font-size:21px}.drone-status{display:none}
  .crosshair{width:32px;height:32px}.crosshair i:nth-child(1),.crosshair i:nth-child(2){top:15px}.crosshair i:nth-child(3),.crosshair i:nth-child(4){left:15px}.crosshair b{left:13px;top:13px}
  .camera-panel{left:6px;right:auto;bottom:121px;display:grid;width:82px;gap:2px;transform:none}#cameraButton{width:82px;height:42px}#cameraButton img{left:1px;top:3px;width:36px;height:36px}#cameraButton b,#cameraButton small{margin-left:32px}#cameraButton b{font-size:8px}#cameraButton small{margin-top:4px;font-size:4px}#archiveButton{width:82px;height:22px;padding:0;font-size:5px}
  .shop-button{left:94px;right:auto;bottom:121px;width:82px;height:42px;transform:none}.shop-button:hover{transform:translateY(-2px)}.shop-button>span{left:7px;top:8px;font-size:18px}.shop-button b,.shop-button small{margin-left:23px}.shop-button b{font-size:9px}.shop-button small{margin-top:4px;font-size:4px}
  .xray-panel{left:182px;right:auto;bottom:121px}.xray-panel button{width:82px;height:42px}.xray-panel button span{left:7px;top:8px;font-size:17px}.xray-panel button b,.xray-panel button small{margin-left:22px}.xray-panel button b{font-size:8px}.xray-panel button small{margin-top:4px;font-size:4px}
  .trap-panel{right:6px;bottom:121px}.trap-panel button{width:82px;height:42px}.trap-panel button>img{left:1px;top:3px;width:35px;height:35px}.trap-panel button>img~b,.trap-panel button>img~small{margin-left:30px}.trap-panel button b{font-size:7px}.trap-panel button small{margin-top:4px;font-size:4px}
  .move-pad{left:12px;bottom:max(10px,env(safe-area-inset-bottom));width:96px;height:96px}.move-pad i{left:29px;top:29px;width:36px;height:36px}
  .fire-button{right:14px;bottom:max(12px,env(safe-area-inset-bottom));width:76px;height:76px}.fire-button i{inset:20px}.reload-button{right:17px;bottom:92px;padding:6px 8px;font-size:6px}
  .briefing{justify-content:flex-start;padding:10px 8px max(16px,env(safe-area-inset-bottom));overflow-y:auto}.prism-mark{width:34px;height:30px;min-height:30px;margin:0}.prism-mark i{inset:6px 10px}.eyebrow{margin:2px;font-size:5px}.briefing h1{margin:2px 0 5px;font-size:34px;line-height:.78}.brief{max-width:94vw;margin:3px 0 7px;font-size:9px;line-height:1.25}
  .map-selector{grid-template-columns:repeat(2,1fr);gap:4px;width:96vw;margin-bottom:5px}.briefing .map-card{height:58px;padding:5px}.briefing .map-card span{left:5px;top:4px;font-size:6px}.briefing .map-card b{font-size:10px}.briefing .map-card small{margin-top:2px;font-size:4px}
  .mission-selector{grid-template-columns:repeat(2,1fr);gap:3px;width:96vw;margin-bottom:4px}.briefing .mission-card{padding:5px}.briefing .mission-card b{font-size:9px}.briefing .mission-card small{margin-top:2px;font-size:4px}.briefing .coop-toggle{min-width:210px;margin-bottom:4px;padding:5px 9px;font-size:5px}.briefing .coop-toggle span{width:18px;height:14px;font-size:6px}.briefing #startButton{min-width:210px;padding:9px 18px;font-size:8px}
  .weapon-shop,.camera-archive,.cyber-race{padding:3px}.shop-shell,.archive-shell,.race-shell{width:99vw;max-height:99dvh}.shop-shell>header{gap:8px;padding:8px}.shop-shell header p{font-size:5px;letter-spacing:.12em}.shop-shell h2{font-size:23px}.shop-wallet{padding-right:7px}.shop-wallet b{font-size:16px}#closeShop{width:32px;height:32px}.shop-tabs{padding:0;overflow-x:auto}.shop-tabs button{flex:0 0 auto;min-width:92px;padding:10px 7px;font-size:7px}.weapon-grid,.trap-grid{padding:6px;gap:6px}.weapon-grid img{height:92px}.camera-model-card{min-height:310px}.camera-model-art{height:135px}
  .archive-summary{grid-template-columns:repeat(3,1fr)}.archive-summary span{padding:6px;font-size:4px}.archive-summary b{font-size:12px}.camera-feeds{padding:5px}.feed-screen{height:105px}.recording-log{margin:0 5px 5px}
  .drone-explorer-picker{padding:5px}.drone-picker-shell{padding:10px}.drone-picker-shell h2{font-size:28px}.drone-picker-shell header p{margin:6px auto;font-size:8px}.drone-picker-grid button{grid-template-rows:auto 88px auto auto;min-height:190px;padding:6px}.drone-picker-grid img{height:88px}.drone-picker-grid b{font-size:24px}
}
@media (max-height:500px) and (orientation:landscape){
  .hud-top{padding:4px}.mission{font-size:5px}.radar-shell{top:3px;width:46px;height:46px}.sound-button{display:none}
  .dimension-panel{left:4px;top:42px}.vehicle-panel{right:4px;top:42px}.dimension-panel button,.vehicle-panel #vehicleButton{width:100px;height:36px}.dimension-panel img,#vehicleButton img{height:31px;width:38px}.dimension-panel small,#vehicleButton small{display:none}
  .drone-command-panel{top:82px;left:4px}.drone-command-panel>button{width:100px;height:34px}.drone-command-panel>button img{width:28px;height:28px}.companion-drone{display:none}
  .vitals{bottom:92px;width:125px}.camera-panel{left:132px;bottom:6px}.shop-button{left:220px;bottom:6px}.xray-panel{left:auto;right:92px;bottom:6px}.trap-panel{right:6px;bottom:6px}
  .move-pad{left:8px;bottom:6px;width:80px;height:80px}.move-pad i{left:24px;top:24px;width:30px;height:30px}.fire-button{right:8px;bottom:54px;width:66px;height:66px}.reload-button{right:8px;bottom:124px}
  .briefing{padding:5px}.prism-mark,.eyebrow,.brief{display:none}.briefing h1{font-size:28px}.map-selector{width:82vw;grid-template-columns:repeat(4,1fr)}.briefing .map-card{height:52px}.mission-selector{width:82vw;grid-template-columns:repeat(4,1fr)}.briefing .coop-toggle{margin:2px}.briefing #startButton{padding:7px}
}
