/* V23 — controles separados e perfil gráfico leve, exclusivamente mobile. */
@media (max-width:950px),(hover:none) and (pointer:coarse){
  body.mobile-landscape-game .mobile-utility [data-action="interact"]{display:none!important}

  /* O ataque normal fica isolado; poderes e consumíveis formam uma fileira legível. */
  body.mobile-landscape-game .actions{right:var(--koc-safe-r)!important;bottom:var(--koc-safe-b)!important;width:286px!important;height:112px!important;transform:scale(.88)!important;transform-origin:right bottom!important}
  body.mobile-landscape-game .actions .mobile-attack{left:auto!important;right:0!important;top:auto!important;bottom:4px!important;width:70px!important;height:70px!important;border-width:3px!important}
  body.mobile-landscape-game .actions button:not(.mobile-attack){top:0!important;bottom:auto!important;width:39px!important;height:39px!important;padding:4px!important}
  body.mobile-landscape-game .actions button[data-action="skill1"]{left:0!important}
  body.mobile-landscape-game .actions button[data-action="heavy"]{left:41px!important;right:auto!important}
  body.mobile-landscape-game .actions button[data-action="skill2"]{left:82px!important}
  body.mobile-landscape-game .actions button[data-action="skill3"]{left:123px!important}
  body.mobile-landscape-game .actions button[data-action="ultimate"]{left:164px!important}
  body.mobile-landscape-game .actions button[data-action="defend"]{left:205px!important;right:auto!important}
  body.mobile-landscape-game .actions button[data-action="potion"]{left:82px!important;top:43px!important}
  body.mobile-landscape-game .actions button[data-action="mana"]{left:123px!important;top:43px!important}
  body.mobile-landscape-game .actions button img{filter:none!important}
  body.mobile-landscape-game .actions button:not(.pressed):not(.active){box-shadow:0 2px 6px #000a!important}

  /* A interação útil continua sendo o aviso contextual #interaction. */
  body.mobile-landscape-game #interaction:not(.hidden){display:flex!important;pointer-events:auto!important}
  body.mobile-landscape-game canvas{image-rendering:auto}

  /* A barra numérica inferior era a experiência desktop duplicada. */
  body.mobile-landscape-game .xp-header{display:none!important}

  /* Janelas ocupam a camada de interação; HUD e controles não atravessam o painel. */
  body.mobile-landscape-game #panel:not(.hidden){
    position:fixed!important;z-index:260!important;pointer-events:auto!important;
    box-shadow:0 0 0 100vmax rgba(0,0,0,.76),0 18px 52px #000!important;
  }
  body.mobile-landscape-game:has(#panel:not(.hidden)) #mobile,
  body.mobile-landscape-game:has(#panel:not(.hidden)) .hud-left-stack,
  body.mobile-landscape-game:has(#panel:not(.hidden)) .hud-right-stack,
  body.mobile-landscape-game:has(#panel:not(.hidden)) #bossHud,
  body.mobile-landscape-game:has(#panel:not(.hidden)) #interaction,
  body.mobile-landscape-game:has(#panel:not(.hidden)) #kocBlessingGameplayHud,
  body.mobile-landscape-game:has(#panel:not(.hidden)) #worldChat,
  body.mobile-landscape-game:has(#panel:not(.hidden)) #worldChatToggle,
  body.mobile-landscape-game:has(#panel:not(.hidden)) .player-ui-dock,
  body.mobile-landscape-game:has(#panel:not(.hidden)) .game-utility-bar,
  body.mobile-landscape-game:has(.modal:not(.hidden)) #mobile,
  body.mobile-landscape-game:has(.modal:not(.hidden)) .hud-left-stack,
  body.mobile-landscape-game:has(.modal:not(.hidden)) .hud-right-stack,
  body.mobile-landscape-game:has(.modal:not(.hidden)) #interaction,
  body.mobile-landscape-game:has(.modal:not(.hidden)) #kocBlessingGameplayHud,
  body.mobile-landscape-game:has(.modal:not(.hidden)) #worldChatToggle,
  body.mobile-landscape-game:has(.modal:not(.hidden)) .player-ui-dock,
  body.mobile-landscape-game:has(#playerSettingsPanel:not(.hidden)) #mobile,
  body.mobile-landscape-game:has(#playerSettingsPanel:not(.hidden)) .hud-left-stack,
  body.mobile-landscape-game:has(#playerSettingsPanel:not(.hidden)) .hud-right-stack,
  body.mobile-landscape-game:has(#playerSettingsPanel:not(.hidden)) #interaction,
  body.mobile-landscape-game:has(#playerSettingsPanel:not(.hidden)) #kocBlessingGameplayHud,
  body.mobile-landscape-game:has(#playerSettingsPanel:not(.hidden)) #worldChatToggle{
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  }
  body.mobile-landscape-game.dialogue-open #mobile,
  body.mobile-landscape-game.dialogue-open .hud-left-stack,
  body.mobile-landscape-game.dialogue-open .hud-right-stack,
  body.mobile-landscape-game.dialogue-open #interaction,
  body.mobile-landscape-game.dialogue-open #kocBlessingGameplayHud,
  body.mobile-landscape-game.dialogue-open #worldChatToggle,
  body.mobile-landscape-game.dialogue-open .player-ui-dock{
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  }
  body.mobile-landscape-game #dialogue:not(.hidden),
  body.mobile-landscape-game .modal:not(.hidden),
  body.mobile-landscape-game #playerSettingsPanel:not(.hidden){z-index:270!important}
}
