/* These new structural wrappers are layout-transparent on PC. All visual
   changes below require app-mobile; existing desktop rules are untouched. */
#mobileQuestGroup,#mobileQuestBody{display:contents}
.ui-v30.app-mobile:not(.app-home) #hud #mobileQuestGroup{display:block;position:absolute;left:var(--v30-safe-l);top:calc(var(--v30-safe-t) + 52px);width:162px;max-width:31vw;pointer-events:auto}
.ui-v30.app-mobile #hud #mobileQuestBody{display:block}
.ui-v30.app-mobile.app-home #hud #mobileQuestGroup{display:none}
.ui-v30.app-mobile #hud .mobile-hud-toggle{display:flex;align-items:center;justify-content:space-between;min-height:24px;height:24px;width:100%;padding:3px 7px;border:1px solid #b99c624d;border-radius:5px;background:#152119bc;color:#eddcaf;font-size:9px;font-weight:600;line-height:16px;letter-spacing:.15px;pointer-events:auto;box-shadow:none}
.ui-v30.app-mobile #hud #mobileQuestToggle{margin-bottom:3px}
.ui-v30.app-mobile.mobile-quests-folded #hud #mobileQuestGroup{width:89px}
.ui-v30.app-mobile.mobile-quests-folded #hud #mobileQuestToggle{margin-bottom:0}
.ui-v30.app-mobile:not(.app-home) #hud #mobileQuestBody .quest{position:relative;inset:auto;display:block!important;width:100%;max-width:none;max-height:92px;overflow-y:auto;margin:0;padding:5px 6px;background:linear-gradient(100deg,#142116c7,#19241880);border:0;border-radius:5px;box-shadow:none;backdrop-filter:none}
.ui-v30.app-mobile #hud #mobileQuestBody #objective{font-size:9px;line-height:12px;margin:0 0 3px}
.ui-v30.app-mobile #hud #mobileQuestBody #localGoal{font-size:8px;line-height:12px;max-height:25px;overflow:auto;margin:0}
.ui-v30.app-mobile #hud #mobileQuestBody #localGoal .destination-name{font-size:inherit;min-height:0;padding:0 2px!important}
.ui-v30.app-mobile #hud #mobileQuestBody .quest-travel{min-height:28px;padding:3px 5px;font-size:9px;line-height:12px;margin-top:4px;border-color:#c6a45d88;box-shadow:none}
.ui-v30.app-mobile #hud #mobileQuestBody .quest-travel b{font-size:15px}
.ui-v30.app-mobile:not(.app-home) #hud #mobileQuestBody #quickServices:not([hidden]){position:relative;inset:auto;transform:none;width:100%;max-width:none;display:block!important;margin:3px 0 0;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none}
.ui-v30.app-mobile #hud #mobileQuestBody #quickServices>div{gap:3px}
.ui-v30.app-mobile #hud #mobileQuestBody #quickServices button{min-height:28px;padding:3px 2px;font-size:8px;line-height:12px;border-radius:4px;background:#1a281dbd;border-color:#b39c6266;box-shadow:none}
.ui-v30.app-mobile #hud #mobileMapToggle{position:absolute;right:var(--v30-safe-r);top:calc(var(--v30-safe-t) + 31px);width:126px;height:22px;min-height:22px;z-index:4}
.ui-v30.app-mobile:not(.app-home) #hud .map-wrap{top:calc(var(--v30-safe-t) + 56px)}
.ui-v30.app-mobile #hud #appLocation{top:calc(var(--v30-safe-t) + 135px)}
.ui-v30.app-mobile #hud #appZoomIn{top:calc(var(--v30-safe-t) + 62px);width:26px;min-width:26px;height:26px;min-height:26px;font-size:17px}
.ui-v30.app-mobile #hud #appZoomOut{top:calc(var(--v30-safe-t) + 89px);width:26px;min-width:26px;height:26px;min-height:26px;font-size:17px}
.ui-v30.app-mobile.mobile-map-folded #hud #mobileMapToggle{width:60px}
.ui-v30.app-mobile.mobile-map-folded #hud #appLocation{display:none}
/* Zoom remains available when the minimap is folded. */
.ui-v30.app-mobile.mobile-map-folded #hud #appZoomIn{top:calc(var(--v30-safe-t) + 57px);right:var(--v30-safe-r)}
.ui-v30.app-mobile.mobile-map-folded #hud #appZoomOut{top:calc(var(--v30-safe-t) + 57px);right:calc(var(--v30-safe-r) + 30px)}
/* The opaque bar and square artwork corners were two separate backgrounds.
   Keep the authored circular emblems, and render no surrounding plate on mobile. */
.ui-v30.app-mobile:not(.app-home) #hud #pcHotbar{left:auto;right:var(--v30-safe-r);width:auto;max-width:calc(100vw - 104px);gap:2px;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none;overflow:visible}
.ui-v30.app-mobile #hud #pcHotbar button,.ui-v30.app-mobile #hud #pcHotbar .hotbar-utility{width:38px;min-width:38px;height:40px;min-height:40px;padding:3px;border:0;border-radius:0;background:none;box-shadow:none}
.ui-v30.app-mobile #hud #pcHotbar button:hover,.ui-v30.app-mobile #hud #pcHotbar button:active,.ui-v30.app-mobile #hud #pcHotbar button.ready{background:none;box-shadow:none;border:0}
.ui-v30.app-mobile #hud #pcHotbar img{width:28px;height:28px;filter:drop-shadow(0 1px 2px #0009)}
.ui-v30.app-mobile #hud #pcHotbar img[src^="assets/ui-v30/action-"]{border-radius:50%;clip-path:circle(46% at 50% 50%)}
.ui-v30.app-mobile #hud #pcHotbar .hotbar-utility img{width:25px;height:25px;top:-2px}
.ui-v30.app-mobile #hud #pcHotbar small{background:none;text-shadow:0 1px 2px #000,0 0 3px #000;font-size:8px;line-height:10px;bottom:0}
.ui-v30.app-mobile #hud #pcHotbar .mobile-utility-label{font-size:7px;text-shadow:0 1px 2px #000;bottom:0}
.ui-v30.app-mobile #hud #pcHotbar button.ready img{filter:drop-shadow(0 0 3px #ffe298)}
.ui-v30.app-mobile #hud #appAssist{bottom:calc(var(--v30-safe-b) + 43px)}
.ui-v30.app-mobile #hud #appCommandDock{bottom:calc(var(--v30-safe-b) + 45px)}
@media(max-width:700px){
 .ui-v30.app-mobile #hud #pcHotbar button,.ui-v30.app-mobile #hud #pcHotbar .hotbar-utility{width:34px;min-width:34px;height:38px;min-height:38px;padding:3px}
 .ui-v30.app-mobile #hud #pcHotbar img{width:27px;height:27px}
}
@media(max-width:560px){
 .ui-v30.app-mobile:not(.app-home) #hud #pcHotbar{width:min(236px,calc(100vw - 96px));max-width:calc(100vw - 96px);grid-template-columns:repeat(7,minmax(0,1fr));gap:1px}
 .ui-v30.app-mobile #hud #pcHotbar button,.ui-v30.app-mobile #hud #pcHotbar .hotbar-utility{width:100%;min-width:0;height:36px;min-height:36px}
 .ui-v30.app-mobile #hud #appAssist{bottom:calc(var(--v30-safe-b) + 78px)}
 .ui-v30.app-mobile #hud #appCommandDock{bottom:calc(var(--v30-safe-b) + 80px)}
}
@media(orientation:portrait){
 .ui-v30.app-mobile:not(.app-home) #hud #mobileQuestGroup{max-width:47vw}
}
