/* Native clients place the level across the window. Controls float over the map. */
.player-app-controls[hidden],.player-app-controls button[hidden]{display:none!important}
.player-app-controls{position:fixed;z-index:85;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));display:flex;gap:6px;padding:4px;border:1px solid #8ea89c;border-radius:11px;background:#203e36ee;box-shadow:0 3px 14px #10251e55}
.player-app-controls button{border:1px solid #809e8d;border-radius:7px;background:#355747;color:#fff8dc;min-height:34px;padding:6px 13px;font:700 12px 'Segoe UI',sans-serif;cursor:pointer}
.player-app-controls button[aria-expanded=true]{color:#243f35;background:#f0df9f;border-color:#ead697}
body:not(.player-battle)>.player-app-controls{top:auto;left:auto;right:12px;bottom:max(12px,env(safe-area-inset-bottom))}
body.game-client.player-battle{height:100dvh;padding:0!important;overflow:hidden;background:#172f2a}
body.game-client.player-battle>.client-toolbar,body.game-client.player-battle>.page-footer{display:none!important}
body.game-client.player-battle #app{position:relative;width:100%;height:100dvh;max-width:none;margin:0;padding:0!important;overflow:hidden;flex:none}
body.game-client.player-battle #app>:is(.breadcrumb,.game-header,.pvp-history){display:none!important}
body.game-client.player-battle :is(.expedition-layout.game-layout,.raid-layout,.pvp-battle-layout){position:absolute;inset:0;display:block!important;width:100%;height:100%;margin:0;min-height:0}
body.game-client.player-battle :is(.expedition-layout,.raid-layout)>div{height:100%;min-height:0}
body.game-client.player-battle :is(.battle-panel,.raid-arena,.pvp-arena){position:relative;width:100%;height:100%;padding:0;margin:0;border:0;border-radius:0;overflow:hidden;background:#172f2a}
body.game-client.player-battle :is(.battle-map,.raid-canvas-wrap,.pvp-canvas-wrap){position:absolute;inset:0;width:100%;height:100%!important;max-width:none;aspect-ratio:auto!important;border:0;border-radius:0}
body.game-client.player-battle :is(#battle-canvas,#raid-canvas,#pvp-canvas){width:100%;height:100%;display:block}
body.game-client.player-battle :is(.battle-hud,.raid-boss-hud,.pvp-versus){position:absolute;z-index:9;top:max(56px,calc(env(safe-area-inset-top) + 48px));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));width:auto;margin:0;padding:7px 12px;gap:12px;border:1px solid #b5c9b2;border-radius:10px;background:#f4f8e8ed;box-shadow:0 2px 12px #10251e33}
body.game-client.player-battle .battle-hud{justify-content:flex-start;max-width:470px}
body.game-client.player-battle .battle-hud small{font-size:8px}body.game-client.player-battle .battle-hud b{font-size:14px}
body.game-client.player-battle .raid-boss-hud{display:flex;align-items:center;justify-content:space-between;max-width:720px}
body.game-client.player-battle .raid-boss-hud h2{font-size:16px;margin:0 0 3px}body.game-client.player-battle .raid-boss-hud .eyebrow{display:none}
body.game-client.player-battle :is(.battle-toolbar,.raid-arena-toolbar){position:absolute;z-index:10;bottom:max(8px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:5px 7px;gap:7px;border:1px solid #9ab2a1;border-radius:10px;background:#eef5e9ed;box-shadow:0 -2px 12px #10251e33}
body.game-client.player-battle :is(.battle-toolbar,.raid-arena-toolbar) .button{white-space:nowrap;min-height:35px;padding:6px 10px;font-size:11px;flex-shrink:0}
body.game-client.player-battle .battle-toolbar small{display:none}
body.game-client.player-battle .map-label{bottom:64px;left:10px;max-width:calc(100% - 24px);font-size:10px;pointer-events:none}
body.game-client.player-battle :is(.battle-conditions,.pvp-turn-help){position:absolute;z-index:8;bottom:62px;left:10px;max-width:calc(100% - 20px);max-height:52px;overflow:auto;margin:0}
body.game-client.player-battle .raid-scaling{display:none}
body.game-client.player-battle :is(.expedition-sidebar,.raid-controls-panel,.pvp-controls){display:none!important}
body.game-client.player-battle.player-team-open :is(.expedition-sidebar,.raid-controls-panel,.pvp-controls){position:fixed;display:block!important;z-index:75;top:max(56px,calc(env(safe-area-inset-top) + 48px));right:max(8px,env(safe-area-inset-right));bottom:max(62px,calc(env(safe-area-inset-bottom) + 54px));left:auto;width:min(360px,calc(100vw - 16px));height:auto;min-height:0;max-height:none;margin:0;padding:12px;border:2px solid #a7bfa9;border-radius:13px;overflow:auto;overscroll-behavior:contain;background:#f5f9eff7;box-shadow:0 8px 30px #10251e70}
body.game-client.player-battle .raid-controls-panel .raid-move-panel{margin:12px 0 0;padding:0;border:0;background:transparent}
body.game-client.player-battle .battle-tool-drawer:not([hidden]){position:absolute;z-index:72;left:10px;bottom:64px;max-height:55dvh;width:min(400px,calc(100% - 20px));overflow:auto;background:#f4f8ec;border:1px solid #abbf9c;border-radius:12px;padding:10px}
body.game-client.player-battle :is(#raid-search,#matchmaking-panel,#pvp-waiting):not([hidden]){position:fixed;z-index:65;left:8px;bottom:64px;width:min(600px,calc(100% - 16px));max-height:42dvh;overflow:auto;margin:0;padding:12px;background:#f5f8edee}
body.game-client.player-battle #pvp-result:not(:empty){position:fixed;z-index:90;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));top:65px;max-height:calc(100dvh - 90px);overflow:auto;padding:14px;border:2px solid #b0c59c;border-radius:15px;background:#f6f9edfa;box-shadow:0 8px 32px #10251e77}
body.game-client.player-battle #pvp-result .battle-result{margin:0}
body.game-client.player-battle .world-chat-widget{display:none!important}
body.game-client.player-battle.player-chat-open .world-chat-widget{display:block!important;position:fixed;z-index:78;left:8px;right:8px;bottom:62px;width:calc(100% - 16px)!important;max-height:50dvh;border-radius:12px;overflow:hidden;box-shadow:0 8px 28px #10251e66}
body.game-client.player-battle.player-chat-open .world-chat-body{max-height:calc(50dvh - 38px);overflow:auto}
body.game-client.player-battle .world-chat-log{height:min(140px,24dvh)}
body.game-client.player-battle .battle-camera-controls{z-index:12}
@media(max-height:500px){.player-app-controls{top:5px;padding:3px}.player-app-controls button{min-height:32px;padding:5px 11px;font-size:11px}body.game-client.player-battle :is(.battle-hud,.raid-boss-hud,.pvp-versus){top:max(48px,calc(env(safe-area-inset-top) + 43px));padding:5px 10px}body.game-client.player-battle .raid-boss-join-chance{font-size:9px;margin:2px 0}body.game-client.player-battle .raid-preparation-heading p{display:none}}
