/* King of Chaos — camada final de jogabilidade mobile. Mantida isolada para
   evitar regressões nas telas, sprites e ferramentas administrativas. */
@media (max-width:900px), (hover:none) and (pointer:coarse) {
 html body.mobile-landscape-game .hud-right-stack .gamer-menu{display:grid!important;position:fixed!important;top:max(7px,env(safe-area-inset-top))!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;grid-template-columns:repeat(6,38px)!important;grid-template-rows:38px!important;gap:5px!important;width:max-content!important;max-width:calc(100vw - 270px)!important;margin:0!important;padding:4px!important;z-index:88!important;border:1px solid rgba(180,139,76,.64)!important;border-radius:10px!important;background:linear-gradient(180deg,rgba(38,27,18,.94),rgba(10,8,7,.92))!important;box-shadow:0 7px 20px rgba(0,0,0,.58)!important;overflow:visible!important;pointer-events:auto!important}
 html body.mobile-landscape-game .hud-right-stack .gamer-menu button{display:grid!important;place-items:center!important;position:relative!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;margin:0!important;border-radius:8px!important;pointer-events:auto!important;touch-action:manipulation!important}
 html body.mobile-landscape-game .hud-right-stack .gamer-menu button i{display:block!important;color:#ffe2a0!important;font-size:17px!important;line-height:1!important}
 html body.mobile-landscape-game .hud-right-stack .gamer-menu button span{display:none!important}
 html body.mobile-landscape-game #worldChat.hidden{display:none!important}
 html body.mobile-landscape-game #worldChat:not(.hidden){display:flex!important;flex-direction:column!important;left:auto!important;right:max(7px,env(safe-area-inset-right))!important;bottom:calc(max(7px,env(safe-area-inset-bottom)) + 52px)!important;width:min(300px,46vw)!important;max-height:min(230px,55dvh)!important;border-radius:10px!important;overflow:hidden!important}
 html body.mobile-landscape-game #worldChatMessages{height:min(112px,27dvh)!important;max-height:min(112px,27dvh)!important}
 html body.mobile-landscape-game #worldChatToggle{width:46px!important;min-width:46px!important;height:42px!important;padding:0!important;justify-content:center!important;border-radius:50%!important}
 html body.mobile-landscape-game #worldChatToggle b{display:none!important}
 html body.mobile-landscape-game #mobile .mobile-power:not(.locked){border-color:#d8af58!important;box-shadow:inset 0 0 10px rgba(255,226,139,.18),0 0 13px rgba(101,168,255,.34),0 5px 13px rgba(0,0,0,.75)!important}
 html body.mobile-landscape-game #mobile .mobile-power img{width:84%!important;height:84%!important;filter:saturate(1.25) contrast(1.08) drop-shadow(0 0 5px rgba(113,196,255,.72))!important}
}
@media (hover:none) and (pointer:coarse) and (orientation:landscape) and (max-width:700px){
 html body.mobile-landscape-game .hud-right-stack .gamer-menu{grid-template-columns:repeat(6,34px)!important;grid-template-rows:34px!important;gap:3px!important;max-width:calc(100vw - 245px)!important}
 html body.mobile-landscape-game .hud-right-stack .gamer-menu button{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important}
 html body.mobile-landscape-game .hud-right-stack .gamer-menu button i{font-size:15px!important}
}
@media (min-width:901px){
 #skillBar .action-slot:not(.locked) img{filter:saturate(1.2) contrast(1.06) drop-shadow(0 0 6px rgba(105,181,255,.58))}
 #skillBar .action-slot:not(.locked):hover{border-color:#e2bd69!important;box-shadow:inset 0 0 18px rgba(255,210,112,.13),0 0 15px rgba(83,151,255,.34)!important}
}

/* Combate mais impactante e leitura imediata do dano. */
.combat-power{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0;padding:3px 7px;border:1px solid #9a6936;border-radius:5px;background:linear-gradient(90deg,#24130d,#08090d);box-shadow:inset 0 0 12px #ff8b2920,0 0 10px #0008}
.combat-power span{color:#efb96d;font-size:8px;font-weight:900;letter-spacing:.06em}.combat-power b{color:#fff1b0!important;font-size:14px!important;text-shadow:0 0 8px #ff762d}
.enemy-attack-power{border-color:#a43d42;background:linear-gradient(90deg,#2d0d12,#09080b)}.enemy-attack-power span{color:#ff8b83}.enemy-attack-power b{color:#ffcf8c!important}
@media(min-width:901px){#skillBar .action-row{gap:10px!important}#skillBar .action-slot{width:72px!important;height:72px!important}#skillBar .action-slot img{width:48px!important;height:48px!important}}

@media(max-width:900px), (hover:none) and (pointer:coarse){
 html body #worldChat.hidden{display:none!important}
 html body #worldChat:not(.hidden){display:flex!important;position:fixed!important;z-index:190!important;flex-direction:column!important;left:auto!important;right:max(7px,env(safe-area-inset-right))!important;bottom:calc(max(7px,env(safe-area-inset-bottom)) + 54px)!important;width:min(330px,72vw)!important;max-height:min(250px,55dvh)!important;border-radius:10px!important;overflow:hidden!important}
 html body #worldChatMessages{height:min(125px,29dvh)!important;max-height:min(125px,29dvh)!important}
 html body #worldChat>header{display:flex!important;position:relative!important;flex:0 0 40px!important;min-height:40px!important;align-items:center!important;justify-content:space-between!important;padding:0 6px 0 12px!important;overflow:visible!important}
 html body #worldChatClose{display:grid!important;position:relative!important;z-index:3!important;place-items:center!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:1px solid #a86767!important;border-radius:8px!important;background:#3b171be8!important;color:#fff!important;font-size:24px!important;line-height:1!important;visibility:visible!important;pointer-events:auto!important;touch-action:manipulation!important}
 html body #worldChatToggle{display:flex!important;position:fixed!important;z-index:191!important;right:max(8px,env(safe-area-inset-right))!important;bottom:max(8px,env(safe-area-inset-bottom))!important;width:46px!important;min-width:46px!important;height:42px!important;padding:0!important;justify-content:center!important;border-radius:50%!important}
 html body #worldChatToggle b{display:none!important}
 html body #hud:not(.hidden)~.game-utility-bar{display:flex!important;position:fixed!important;right:max(8px,env(safe-area-inset-right))!important;top:calc(max(8px,env(safe-area-inset-top)) + 142px)!important;bottom:auto!important;z-index:109!important;flex-direction:column!important;gap:5px!important}
 html body .game-utility-bar button{min-width:32px!important;width:32px!important;height:32px!important;padding:0!important;border-radius:7px!important}
 html body .game-utility-bar button b{display:none!important}
 html body #mobile .mobile-power{width:56px!important;height:56px!important;border-width:2px!important;box-shadow:inset 0 0 14px #fff2a91f,0 0 18px #4da8ff66,0 7px 16px #000c!important}
 html body #mobile .mobile-power img{width:90%!important;height:90%!important}
 .combat-power{padding:2px 5px}.combat-power span{font-size:7px}.combat-power b{font-size:12px!important}
}
