/* Applied by capability, including Android WebViews with wide CSS viewports. */
body.mobile-hud.rpg-active #rpg-shell #autofarm-hud{position:fixed;right:var(--mobile-edge);bottom:calc(var(--hud-bottom) + var(--hud-bar-height) + 48px);padding:3px;gap:2px}
body.mobile-hud.rpg-active #autofarm-hud button{min-height:44px}
body.mobile-hud.rpg-active #autofarm-hud-toggle{padding:6px 8px;gap:6px;font-size:10px}
body.mobile-hud.rpg-active #autofarm-hud-settings{min-width:44px}
@media(orientation:portrait){body.mobile-hud.rpg-active #rpg-shell #autofarm-hud{bottom:calc(var(--hud-bottom) + var(--hud-bar-height) + 92px)}}
@media(orientation:landscape) and (max-height:500px){body.mobile-hud.rpg-active #rpg-shell #autofarm-hud{right:calc(var(--mobile-edge) + 96px)}}
body.mobile-hud.rpg-active{--mobile-edge:max(8px,env(safe-area-inset-right));--mobile-top-edge:max(8px,env(safe-area-inset-top));--phone-skill-width:min(468px,calc(100vw - 184px))!important;--hud-skill-bottom:var(--hud-bottom)!important;--hud-bar-height:99px!important;--touch-bar:99px!important}
body.mobile-hud.rpg-active #rpg-shell #rpg-bars{position:fixed!important;left:var(--hud-left)!important;top:var(--mobile-top-edge)!important;bottom:auto!important;width:168px!important;padding:4px 6px!important;font-size:10px!important}
body.mobile-hud.rpg-active #rpg-bars .resource{height:11px!important;margin:2px 0!important}
body.mobile-hud.rpg-active #rpg-bars .resource b{font-size:9px!important;line-height:11px!important}
body.mobile-hud.rpg-active #rpg-shell #target-hud{position:fixed!important;box-sizing:border-box;left:50%!important;right:auto!important;top:var(--mobile-top-edge)!important;bottom:auto!important;transform:translateX(-50%)!important;width:200px!important;padding:5px 8px!important;font:10px/1.25 system-ui!important;border-radius:6px!important;pointer-events:auto}
body.mobile-hud.rpg-active #target-hud .target-title{padding-right:12px;cursor:pointer;min-height:18px;display:flex;align-items:center;justify-content:center;gap:4px}
body.mobile-hud.rpg-active #target-hud [data-target-hud="name"]{font-size:11px!important;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mobile-hud.rpg-active #target-hud .resource{height:12px!important;margin:3px 0 0!important}
body.mobile-hud.rpg-active #target-hud .resource b{font-size:9px!important;line-height:12px!important}
body.mobile-hud.rpg-active #target-hud .target-drops-toggle{display:none!important}
body.mobile-hud.rpg-active #target-hud[data-has-drops="true"] .target-title:after{content:'⌄';position:absolute;right:7px;top:6px;color:#eed9a5}
body.mobile-hud.rpg-active #target-hud .target-guild{font-size:9px}
body.mobile-hud.rpg-active #target-hud :is(.target-status,.target-note):empty{display:none}
body.mobile-hud.rpg-active #target-hud .target-drops-panel{max-height:min(180px,40dvh);overflow:auto;overscroll-behavior:contain;text-align:left}
body.mobile-hud.rpg-active #active-effects{width:180px!important;max-width:calc(100vw - 24px)!important;max-height:91px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:auto;pointer-events:auto}
body.mobile-hud.rpg-active #active-effects .effects-label{display:none}
body.mobile-hud.rpg-active #active-effects .effects-grid{display:flex;flex-wrap:wrap;gap:3px!important}
body.mobile-hud.rpg-active #active-effects .effect-card{position:relative;flex:0 0 42px;width:42px;height:44px;min-height:44px;box-sizing:border-box;padding:3px 1px!important;display:flex;flex-direction:column;justify-content:center;gap:2px;touch-action:manipulation;cursor:pointer}
body.mobile-hud.rpg-active #active-effects .effect-symbol{flex:0 0 auto;font-size:20px;line-height:22px}
body.mobile-hud.rpg-active #active-effects .effect-info strong{display:none}
body.mobile-hud.rpg-active #active-effects .effect-info small{display:block;max-width:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;line-height:10px}
#effect-detail{position:fixed;z-index:90;box-sizing:border-box;width:220px;padding:10px;border:1px solid #b59a56;border-radius:6px;background:#162126f5;color:#f4e8c5;font:12px/1.4 system-ui;pointer-events:none}
#effect-detail[hidden]{display:none!important}
body.mobile-hud.rpg-active #rpg-shell #skillbar{left:auto!important;right:var(--mobile-edge)!important;bottom:var(--hud-bottom)!important;transform:none!important;width:var(--phone-skill-width)!important;max-width:none!important;grid-template-columns:minmax(0,1fr) 46px!important;padding:4px!important;gap:4px!important}
body.mobile-hud.rpg-active #rpg-shell #skillbar .skill-slots{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:3px!important}
body.mobile-hud.rpg-active #rpg-shell #skillbar button{height:44px!important;min-height:44px!important;padding:2px!important;touch-action:manipulation}
body.mobile-hud.rpg-active #rpg-shell #skillbar [data-hotbar]>b{display:none!important}
body.mobile-hud.rpg-active #rpg-shell #skillbar [data-hotbar] .skill-icon{min-height:28px!important;margin:0 auto!important}
body.mobile-hud.rpg-active #rpg-shell #skillbar [data-hotbar] .skill-art{width:28px!important;height:28px!important}
body.mobile-hud.rpg-active #rpg-shell #skillbar [data-potion]{height:44px!important;min-height:44px!important}
body.mobile-hud.rpg-active #rpg-shell #skillbar [data-potion] b{font-size:0!important}
body.mobile-hud.rpg-active #skillbar [data-potion="hp"] b:after{content:'♥';font-size:19px;color:#ff8199}
body.mobile-hud.rpg-active #skillbar [data-potion="mp"] b:after{content:'♦';font-size:19px;color:#6acaff}
body.mobile-hud.rpg-active #rpg-shell #skillbar [data-potion] small:last-child{font-size:9px!important}
body.mobile-hud.rpg-active #rpg-shell #pvp-toggle{left:auto!important;right:var(--mobile-edge)!important;bottom:calc(var(--hud-bottom) + var(--hud-bar-height) + 6px)!important;transform:none!important;min-width:58px!important;height:36px!important;min-height:36px!important;font-size:10px!important}
body.mobile-hud.rpg-active #rpg-shell #cash-shop-button{display:grid!important;top:var(--mobile-top-edge)!important;right:var(--mobile-edge)!important;width:36px!important;height:36px!important;min-height:36px!important;min-width:36px!important;padding:4px!important}
body.mobile-hud.rpg-active #cash-shop-button span{display:none!important}
body.mobile-hud.rpg-active #cash-shop-button svg{width:24px!important;height:24px!important}
body.mobile-hud.rpg-active #game-minimap.compact-mobile{width:88px!important;pointer-events:auto}
body.mobile-hud.rpg-active #game-minimap.compact-mobile canvas{pointer-events:auto;cursor:zoom-in;touch-action:manipulation}
body.mobile-hud.rpg-active #game-minimap.compact-mobile.map-expanded{width:min(200px,calc(100vw - 24px))!important;z-index:65}
body.mobile-hud.rpg-active #game-minimap.map-expanded canvas{cursor:zoom-out}
body.mobile-hud.rpg-active #game-minimap header{height:30px!important;min-height:30px!important;max-height:30px!important;padding:0 1px!important}
body.mobile-hud.rpg-active #game-minimap header button{width:30px!important;height:30px!important;flex:0 0 30px!important}
body.mobile-hud.rpg-active #rpg-chat{position:fixed;left:var(--hud-left);right:auto;top:auto;bottom:calc(var(--hud-bottom) + 48px);width:min(340px,calc(100vw - 16px));height:min(300px,calc(100dvh - 100px));min-height:0;z-index:70}
body.mobile-hud.rpg-active #rpg-chat[hidden]{display:none!important}
body.mobile-hud.rpg-active #rpg-chat .rpg-chat-head{height:36px;min-height:36px;flex:0 0 36px;box-sizing:border-box}
body.mobile-hud.rpg-active #rpg-chat.is-compact{left:var(--hud-left)!important;right:auto!important;top:auto!important;bottom:calc(var(--hud-bottom) + 48px)!important;width:190px!important;height:68px!important;min-height:0!important;box-shadow:none!important;background:#101b21c9!important;z-index:45}
body.mobile-hud.rpg-active #rpg-chat.is-compact :is(.rpg-chat-channels,.rpg-chat-compose,.rpg-chat-whisper,.rpg-chat-notice){display:none!important}
body.mobile-hud.rpg-active #rpg-chat.is-compact .rpg-chat-head{box-sizing:border-box;height:30px;min-height:30px;flex:0 0 30px;padding:1px 5px;font-size:9px;cursor:default}
body.mobile-hud.rpg-active #rpg-chat.is-compact .rpg-chat-head button{height:26px;min-height:26px;min-width:32px;padding:0;font-size:16px}
body.mobile-hud.rpg-active #rpg-chat.is-compact .rpg-chat-messages{padding:0 5px;overflow:hidden;min-height:32px;flex:0 0 32px}
body.mobile-hud.rpg-active #rpg-chat.is-compact time{display:none}
body.mobile-hud.rpg-active #rpg-chat.is-compact .rpg-chat-message{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;line-height:16px;margin:0;padding:0!important}
body.mobile-hud.rpg-active #rpg-chat .rpg-chat-head button{min-width:40px;min-height:36px}
body.mobile-hud.rpg-active #rpg-chat :is(input,.rpg-chat-compose button){min-height:40px;font-size:16px}
body.mobile-hud.rpg-active #rpg-chat-toggle{display:block!important;position:fixed!important;left:calc(var(--hud-left) + 150px)!important;right:auto!important;top:auto!important;bottom:var(--hud-bottom)!important;width:54px!important;min-height:36px!important;height:36px!important;padding:3px!important;font-size:9px!important;z-index:75}
body.mobile-hud.rpg-active #rpg-chat-toggle:not([hidden]){display:block!important}
body.mobile-hud.rpg-active #rpg-shell #functions-button{left:var(--hud-left)!important;right:auto!important;bottom:var(--hud-bottom)!important;width:66px!important;height:36px!important;min-height:36px!important;padding:3px!important;font-size:9px!important}
body.mobile-hud.rpg-active .gh-audio-panel{left:calc(var(--hud-left) + 70px)!important;bottom:var(--hud-bottom)!important;width:76px!important;max-width:76px!important;z-index:75}
body.mobile-hud.rpg-active .gh-audio-panel summary{box-sizing:border-box;width:76px!important;height:36px!important;min-height:36px!important;padding:3px!important;font-size:9px!important}
body.mobile-hud.rpg-active #rpg-shell #character-button{display:none!important}
body.mobile-hud.rpg-active #rpg-shell #notice{position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:calc(var(--hud-bottom) + var(--hud-bar-height) + 47px)!important;transform:translateX(-50%)!important;width:max-content;max-width:min(420px,calc(100vw - 32px));padding:5px 9px;border-radius:5px;background:#101b21d9;text-align:center!important;font:11px/1.3 system-ui!important;z-index:62;pointer-events:none}
body.mobile-hud.rpg-active #notice:empty{display:none!important}
body.mobile-hud.rpg-active:has(#party-live-hud:not([hidden])) #active-effects{left:calc(var(--effects-left) + 126px)!important}
body.mobile-hud.rpg-active:has(#party-live-hud:not([hidden])) #rpg-chat.is-compact{left:calc(var(--hud-left) + 126px)!important;bottom:auto!important;top:calc(var(--effects-top) + var(--mobile-effect-height,44px) + 10px)!important;width:180px!important}
@media(orientation:portrait){
 body.mobile-hud.rpg-active{--phone-skill-width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right))!important;--hud-bar-height:193px!important;--touch-bar:193px!important}
 body.mobile-hud.rpg-active #rpg-shell #skillbar{bottom:calc(var(--hud-bottom) + 44px)!important}
 body.mobile-hud.rpg-active #rpg-shell #skillbar .skill-slots{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body.mobile-hud.rpg-active #rpg-shell #skillbar .potion-slots{align-content:end}
 body.mobile-hud.rpg-active #rpg-shell #pvp-toggle{bottom:calc(var(--hud-bottom) + 44px + var(--hud-bar-height) + 6px)!important}
 body.mobile-hud.rpg-active #rpg-shell #rpg-bars{width:150px!important}
 body.mobile-hud.rpg-active #rpg-shell #target-hud{left:auto!important;right:52px!important;transform:none!important;width:calc(100vw - 220px)!important;min-width:126px;padding:4px!important}
 body.mobile-hud.rpg-active #target-hud [data-target-hud="name"]{font-size:10px!important}
 body.mobile-hud.rpg-active #rpg-chat.is-compact{bottom:calc(var(--hud-bottom) + 44px + var(--hud-bar-height) + 48px)!important}
 body.mobile-hud.rpg-active #rpg-chat:not(.is-compact){bottom:calc(var(--hud-bottom) + 44px);height:min(340px,calc(100dvh - 120px))}
 body.mobile-hud.rpg-active:has(#party-live-hud:not([hidden])) #active-effects{width:min(180px,calc(100vw - 232px))!important;min-width:88px}
 body.mobile-hud.rpg-active:has(#party-live-hud:not([hidden])) #rpg-chat.is-compact{top:max(calc(var(--effects-top) + var(--mobile-effect-height,44px) + 10px),calc(var(--mobile-top-edge) + 172px))!important}
 body.mobile-hud.rpg-active #rpg-shell #notice{bottom:calc(var(--hud-bottom) + var(--hud-bar-height) + 136px)!important}
}
@media(orientation:landscape) and (max-width:650px){
 body.mobile-hud.rpg-active{--phone-skill-width:calc(100vw - 128px)!important;--hud-skill-bottom:calc(var(--hud-bottom) + 40px)!important}
 body.mobile-hud.rpg-active #rpg-shell #skillbar{bottom:var(--hud-skill-bottom)!important}
 body.mobile-hud.rpg-active #rpg-shell #pvp-toggle{bottom:var(--hud-bottom)!important}
 body.mobile-hud.rpg-active:has(#party-live-hud:not([hidden])) #rpg-chat.is-compact{left:calc(var(--hud-left) + 310px)!important;top:var(--effects-top)!important;width:clamp(128px,calc(100vw - 420px),180px)!important}
}
@media(max-height:260px){
 body.mobile-hud.rpg-active #rpg-chat:not(.is-compact):focus-within{top:8px!important;bottom:8px!important;height:calc(100dvh - 16px)!important;z-index:90}
 body.mobile-hud.rpg-active #rpg-chat:focus-within .rpg-chat-messages{display:none}
}
