/* BOOM WORLD 1.7.2 — map + dedicated control deck */
@media (max-width:820px), (pointer:coarse) {
  /* The map occupies its natural 320:288 area. Everything else gets its own deck below. */
  .world-mobile-dock{display:block;position:fixed;left:0;right:0;top:90vw;bottom:0;z-index:20;background:radial-gradient(circle at 50% 20%,rgba(29,62,110,.3),transparent 46%),linear-gradient(180deg,#071027,#020611 75%);border-top:1px solid rgba(82,234,255,.24);box-shadow:inset 0 18px 45px rgba(0,0,0,.3);pointer-events:none}
  .world-mobile-dock:before{content:"TRAINER CONTROL DECK";position:absolute;left:14px;top:13px;color:rgba(158,172,203,.72);font:800 7px Orbitron,sans-serif;letter-spacing:.14em}

  /* Header is only a slim command strip and no longer dominates the map. */
  .world-command{height:44px!important;min-height:44px!important;padding:5px 7px!important;border-radius:13px!important}.world-ball{width:29px!important;height:29px!important}.world-brand-copy strong{font-size:10px!important}.world-brand-copy span{font-size:5px!important}.world-quick button{width:29px!important;height:29px!important;min-width:29px!important;min-height:29px!important;border-radius:8px!important;font-size:.68rem!important}
  .world-telemetry{top:calc(90vw + 46px)!important;left:12px!important;right:12px!important;z-index:32!important;justify-content:center!important}.world-chip{background:rgba(9,20,44,.88)!important;border-color:rgba(82,234,255,.16)!important}.world-chip:nth-child(2),.world-chip:nth-child(3){flex:1 1 0!important;text-align:center!important;padding:6px 8px!important}.world-chip b{font-size:8px!important}

  /* Remove every large overlay from the map itself. */
  .boom-world #game-frame:before{display:none!important}.boom-world #status{top:calc(90vw + 8px)!important;left:12px!important;right:12px!important;z-index:32!important;min-height:30px!important;max-height:34px!important;background:rgba(9,20,44,.88)!important;border-color:rgba(82,234,255,.17)!important;text-align:center!important;justify-content:center!important}.boom-world #npc-float{bottom:12px!important;width:min(225px,62vw)!important}.boom-world #npc-float .nf-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* Smaller controls in the dedicated lower deck, never covering the player or NPCs. */
  .boom-world .dpad-wrap{top:calc(45vw + 50dvh - 62px)!important;bottom:auto!important;width:124px!important;height:124px!important;z-index:33!important}
  .boom-world .dpad{grid-template-columns:38px 38px 38px!important;grid-template-rows:38px 38px 38px!important;gap:5px!important;width:124px!important;height:124px!important}.boom-world .dpad button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:11px!important;font-size:.72rem!important;background:rgba(15,31,64,.92)!important}.boom-world .dpad .mid{background:radial-gradient(circle,#ff526b 0 24%,#fff 26% 42%,rgba(15,31,64,.95) 44%)!important}
  .boom-world .bn-launch{left:13px!important;right:auto!important;top:calc(45vw + 50dvh - 29px)!important;bottom:auto!important;width:46px!important;height:46px!important;border-radius:13px!important;z-index:75!important}

  /* Three-member party radar uses otherwise empty deck space. */
  .world-mobile-party{display:flex;position:fixed;right:13px;top:calc(45vw + 50dvh - 62px);z-index:31;flex-direction:column;gap:5px;width:50px;pointer-events:none}.world-mobile-party .wmp-mon{position:relative;width:50px;height:38px;border:1px solid rgba(82,234,255,.18);border-radius:11px;background:rgba(15,31,64,.88);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 15px rgba(0,0,0,.24)}.world-mobile-party img{width:35px;height:35px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 5px 4px rgba(0,0,0,.6))}.world-mobile-party .wmp-lv{position:absolute;right:3px;bottom:2px;color:var(--w-green);font:800 6px Orbitron,sans-serif}.world-mobile-party .wmp-empty{color:var(--w-muted);font:800 7px Orbitron,sans-serif}.world-mobile-party:before{content:"PARTY";position:absolute;right:3px;top:-14px;color:rgba(158,172,203,.72);font:800 6px Orbitron,sans-serif;letter-spacing:.1em}

  /* Overlay states still hide the complete control deck. */
  .boom-world.world-layer-open .world-mobile-dock,.boom-world.world-battle-open .world-mobile-dock,.boom-world.world-layer-open .world-mobile-party,.boom-world.world-battle-open .world-mobile-party{opacity:0!important;pointer-events:none!important}.boom-world.world-layer-open #status,.boom-world.world-layer-open .world-telemetry{opacity:0!important}.boom-world.world-battle-open .world-telemetry{opacity:0!important}
}

@media (max-width:380px) and (max-height:700px){
  .world-command{height:40px!important;min-height:40px!important}.world-telemetry{top:calc(90vw + 41px)!important}.boom-world #status{top:calc(90vw + 5px)!important}
}

@media (min-width:821px) and (pointer:fine){.world-mobile-dock,.world-mobile-party{display:none!important}}
