@media(max-width:900px) and (orientation:portrait){
 body.r2-mobile-compact{background:#08111e!important;padding-top:0!important}
 body.r2-mobile-compact .page{padding:4px!important;max-width:none!important}
 body.r2-mobile-compact .page>.top-bar{display:none!important}
 body.r2-mobile-compact main.layout{display:flex!important;flex-direction:column!important;padding:0!important;gap:8px!important;margin:0!important}
 body.r2-mobile-compact .loc-side-stack{display:none!important}
 body.r2-mobile-compact #locMainPanel{padding:6px!important;margin:0!important;border-radius:10px!important;gap:5px!important;width:100%!important;box-sizing:border-box!important}
 body.r2-mobile-compact .loc-map-head{min-height:32px!important;padding:0!important}
 body.r2-mobile-compact .loc-map-head-top{min-height:32px!important}
 body.r2-mobile-compact .loc-mobile-quick-actions,body.r2-mobile-compact #locMusicBar,body.r2-mobile-compact #locationMapSubtitle{display:none!important}
 body.r2-mobile-compact .loc-stack-map{order:3!important}
 body.r2-mobile-compact #locationMapWrap{aspect-ratio:1.5!important;min-height:0!important}
 body.r2-mobile-compact .loc-field-arrow{width:24px!important;min-width:24px!important}
 body.r2-mobile-compact .loc-stack-fieldlabel{order:4!important;margin:0!important}
 body.r2-mobile-compact .loc-stack-side{order:5!important}
 body.r2-mobile-compact .loc-vital-bar{height:20px!important}
 body.r2-mobile-compact .loc-vital-exp{height:14px!important}
 body.r2-mobile-compact .r2-mobile-actions{display:flex!important;order:6;gap:4px}
 body.r2-mobile-compact .r2-mobile-actions>button{position:static!important;flex:1;min-width:0;min-height:44px!important;height:44px!important;padding:4px!important;border-radius:8px!important;font-size:11px!important;box-sizing:border-box;white-space:normal!important;display:flex!important;align-items:center;justify-content:center}
 body.r2-mobile-compact .r2-mobile-actions>button[hidden]{display:none!important}
 body.r2-mobile-compact .r2-mobile-actions .loc-mobile-inv-btn__icon{display:none}
 body.r2-mobile-compact .r2-mobile-actions .loc-mobile-inv-btn__label{font-size:11px!important}
 body.r2-mobile-compact .loc-stack-chat{order:7!important}
 body.r2-mobile-compact .loc-stack-chat .chat-window{height:92px!important;min-height:92px!important;max-height:92px!important}
 body.r2-mobile-compact .loc-stack-chat nav[aria-label]{display:none!important}
 body.r2-mobile-compact .loc-chat-tab{min-height:36px!important}
 body.r2-mobile-compact #monstersSidePanel{padding:10px!important}
 body.r2-mobile-compact #locInventoryOverlay #locInventoryHub.loc-inventory-overlay__panel{top:56px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;max-height:calc(100dvh - 68px)!important;overflow:auto!important}
}

@media(max-width:900px) and (orientation:portrait){
html.auth-playing body.r2-mobile-compact .page>header.top-bar{display:none!important}
body.r2-mobile-compact .location-map-stage{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
body.r2-mobile-compact #locationMapWrap{width:100%!important;aspect-ratio:1.65!important}
body.r2-mobile-compact .r2-mobile-field-nav{display:flex!important;align-items:center;justify-content:space-between;gap:8px;order:4;width:100%}
body.r2-mobile-compact .r2-mobile-field-nav .loc-field-arrow{position:static!important;transform:none!important;min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important;flex:0 0 44px}
body.r2-mobile-compact .r2-mobile-field-nav #locationFieldLabel{margin:0!important;text-align:center;flex:1}
}
.r2-mobile-field-nav{display:none}

@media(max-width:900px) and (orientation:portrait){
body.r2-mobile-compact .page>header.top-bar:has(#userPanel){display:none!important}
body.r2-mobile-compact .r2-mobile-field-nav #locationFieldLabel,body.r2-mobile-compact .r2-mobile-field-nav .loc-field-arrow{order:0!important}
}

@media(max-width:900px) and (orientation:portrait){
body.r2-mobile-compact main.layout.is-village-loc #locationMapWrap{aspect-ratio:auto!important;min-height:420px!important}
}
.r2-mobile-actions{display:none}

/* Keep the command menu in the portrait action row. */
body #locBtnBackDomains{display:none!important}
@media(max-width:900px) and (orientation:portrait){
 body.r2-mobile-compact.r2-desktop-menu-enabled .r2-mobile-actions #locBtnOpenInventory:not([hidden]){display:flex!important}
 body.r2-mobile-compact .r2-mobile-actions>.r2-desktop-menu{position:relative;left:auto;bottom:auto;flex:1;min-width:0;z-index:200010}
 body.r2-mobile-compact .r2-mobile-actions .r2-desktop-menu-toggle{width:100%;height:44px;min-height:44px;justify-content:center;padding:4px;font-size:12px;gap:4px}
 body.r2-mobile-compact .r2-mobile-actions .r2-desktop-menu-toggle>span{width:24px;height:24px;font-size:14px}
 body.r2-mobile-compact .r2-mobile-actions .r2-desktop-commands{left:auto;right:0;bottom:50px;width:min(260px,calc(100vw - 28px));max-height:min(440px,60dvh)}
 body.r2-mobile-compact .r2-mobile-actions .r2-desktop-command{min-height:44px}
}
body.r2-desktop-menu-enabled .r2-mobile-actions>.r2-macro-menu-fallback{display:none!important}
