/* One layout owner for all HUD layers. This stylesheet intentionally loads last. */
#worldUI{--hud-bottom:20px;--hud-action-h:0px;--hud-action-w:0px;--hud-skill-w:360px;--hud-skill-h:64px;--hud-skill-bottom:20px;--hud-context-bottom:96px;--hud-header-height:50px;--hud-info-top:62px;--hud-move-size:88px}
#worldUI .world-header{height:calc(var(--hud-header-height) + env(safe-area-inset-top));min-height:0;padding:env(safe-area-inset-top) 12px 0;background:#182436a8;z-index:60;align-items:center}#worldUI .world-header nav{display:flex;position:static;flex-wrap:nowrap;gap:5px;max-width:none;align-items:center}#toggleHud{display:inline-flex;min-height:40px;align-items:center;justify-content:center;font-size:11px}#sandboxMenu summary{min-height:40px;font-size:11px}#worldUI .world-header .logo>span{font-size:13px;letter-spacing:1px}.world-header .logo i,.world-header .logo small,.world-badge{display:none}
#hudDrawer{position:fixed;z-index:90;top:calc(var(--hud-header-height) + 10px + env(safe-area-inset-top));bottom:12px;right:12px;width:min(340px,calc(100vw - 24px));overflow:auto;padding:17px;border-radius:18px;border:1px solid #b9c5d34a;background:#213044f7;box-shadow:0 15px 50px #10182b66}#hudDrawer[hidden]{display:none!important}#hudDrawer>header{display:flex;align-items:center;justify-content:space-between;gap:12px}#hudDrawer h2{font-size:19px;margin:4px 0 15px}#hudDrawer>header button{min-width:44px;min-height:44px}.hud-drawer-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.hud-drawer-tools button{min-height:44px;font-size:12px}#hudDrawer .wallet,#hudDrawer .quest-card,#hudDrawer .camera-controls,#hudDrawer .weapon-bar{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:12px 0;padding:12px;visibility:visible!important;opacity:1}#hudDrawer .wallet{display:flex!important;gap:10px;font-size:12px}#hudDrawer .wallet button{font-size:11px;min-height:40px}#hudDrawer .quest-card,#hudDrawer .camera-controls{display:block!important}#hudDrawer .quest-card h2{font-size:19px}#hudDrawer .quest-card p{font-size:12px;line-height:1.7}#hudDrawer .camera-controls{bottom:auto!important;right:auto!important}#hudDrawer .camera-controls button{min-height:40px}#hudDrawer .weapon-bar{display:flex!important;flex-wrap:wrap;gap:5px}#hudDrawer .weapon-bar button{width:46px;min-height:48px}#hudDrawer .sandbox-shortcuts{flex-wrap:wrap}
#worldUI .player-card{top:calc(var(--hud-info-top) + env(safe-area-inset-top));left:12px;width:160px;padding:8px;border-radius:12px;background:#202d40b8}.player-card .meter-label{font-size:7px}#soulDock{position:fixed;top:calc(var(--hud-info-top) + env(safe-area-inset-top));right:12px;bottom:auto;left:auto;transform:none;width:210px;padding:8px;background:#202d40b8}#soulTargetHint{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:26px;overflow:hidden}#soulDock .soul-dock-actions button{min-height:40px}#worldUI #waypointHud{top:calc(var(--hud-info-top) + 116px + env(safe-area-inset-top));left:50%;right:auto;transform:translateX(-50%);max-width:calc(100vw - 24px);font-size:10px;padding:6px 12px;pointer-events:none}#worldUI .mini{display:none}
#skillDock{position:fixed;right:12px;left:auto;bottom:calc(var(--hud-skill-bottom) + env(safe-area-inset-bottom));width:var(--hud-skill-w);height:var(--hud-skill-h);max-width:none;box-sizing:border-box;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px;z-index:34}#skillDock button{min-width:0;min-height:0;padding:4px;display:grid;align-content:center;gap:3px}#skillDock b{font-size:11px;white-space:nowrap}#skillDock small{font-size:10px}#skillDock kbd{font-size:8px}#movementPad{left:12px;bottom:calc(var(--hud-bottom) + env(safe-area-inset-bottom));padding:8px;width:140px;max-height:148px}#worldUI #interactPrompt{position:fixed;left:50%;right:auto;bottom:calc(var(--hud-context-bottom) + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:min(290px,calc(100vw - 24px));min-height:40px;font-size:11px;padding:8px 12px;white-space:normal;z-index:35}
#sandboxDock{left:50%;right:auto;bottom:calc(var(--hud-skill-bottom) + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100vw - 24px);width:max-content;padding:6px}#sandboxDock button{min-height:40px;font-size:11px}#fishDock{position:fixed;right:12px;left:auto;bottom:calc(var(--hud-skill-bottom) + env(safe-area-inset-bottom));width:min(290px,calc(100vw - 24px));max-width:none;padding:10px;font-size:11px}#fishDock small{font-size:11px;margin-bottom:6px}#fishDock button{font-size:11px;min-height:40px;padding:7px}#homeTools,#galleryTools{position:fixed;top:calc(var(--hud-header-height) + 12px + env(safe-area-inset-top));left:50%;right:auto;transform:translateX(-50%);max-width:calc(100vw - 24px);width:max-content;display:flex;flex-wrap:wrap;justify-content:center;gap:5px;padding:6px}#homeTools button,#galleryTools button{font-size:11px;min-height:40px;padding:7px}
#worldUI .world-footer{position:fixed;left:50%;right:auto;bottom:calc(var(--hud-bottom) + env(safe-area-inset-bottom));transform:translateX(-50%);padding:0;border:0;background:none}#worldUI .world-footer>span{display:none}#worldUI .world-footer button{width:44px;min-width:44px;height:40px;min-height:40px;padding:4px;font-size:9px;overflow:hidden}#worldUI .district-label{position:fixed;bottom:calc(2px + env(safe-area-inset-bottom));left:50%;right:auto;top:auto;transform:translateX(-50%);pointer-events:none}#worldUI .district-label h2{font-size:9px;margin:0;max-width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#worldUI .district-label small,#worldUI .district-label span{display:none}
#worldUI[data-activity=shore] #skillDock,#worldUI[data-activity=fishing] #skillDock,#worldUI[data-activity=swimming] #skillDock,#worldUI[data-activity=vehicle] #skillDock,#worldUI[data-activity=driving] #skillDock,#worldUI[data-activity=shore] #soulDock,#worldUI[data-activity=fishing] #soulDock,#worldUI[data-activity=swimming] #soulDock,#worldUI[data-activity=home] #soulDock,#worldUI.in-shop>.player-card,#worldUI.in-shop>#soulDock{display:none!important}#worldUI[data-activity=shore] #interactPrompt,#worldUI[data-activity=fishing] #interactPrompt,#worldUI[data-activity=vehicle] #interactPrompt,#worldUI[data-activity=driving] #interactPrompt{display:none!important}.driving-mode #sandboxDock{left:auto;right:12px;bottom:calc(var(--hud-bottom) + env(safe-area-inset-bottom));transform:none;width:min(260px,calc(100vw - var(--hud-move-size) - 36px));max-width:none;justify-content:space-between}.driving-mode #driveButtons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:4px}.driving-mode #driveButtons button{min-width:0;padding:7px 3px;font-size:10px}.driving-mode .world-footer{display:none!important}#worldUI.overlay-open>#soulDock,#worldUI.overlay-open>.player-card,#worldUI.overlay-open>#skillDock,#worldUI.overlay-open>#fishDock,#worldUI.overlay-open>#homeTools,#worldUI.overlay-open>#galleryTools,#worldUI.overlay-open>#sandboxDock,#worldUI.overlay-open>#interactPrompt,#worldUI.overlay-open>#joystick,#worldUI.overlay-open>.touch-actions,#worldUI.overlay-open>.world-footer{visibility:hidden;pointer-events:none}
@media(max-width:700px),(pointer:coarse) and (max-width:1100px){#worldUI .world-header .logo>span{font-size:11px}#toggleHud,#sandboxMenu summary,#openMap{font-size:10px;min-height:40px;padding:5px 8px}#sandboxMenu .sandbox-menu-items{top:calc(var(--hud-header-height) + 6px + env(safe-area-inset-top))}#worldUI .player-card{width:128px;padding:6px 8px}.player-line b{max-width:72px;font-size:9px}#soulDock{width:128px;padding:6px}#soulProgressButton{font-size:8px}#soulProgress{font-size:9px}#soulDock .soul-dock-actions button{font-size:9px;padding:4px 2px;min-height:40px}#soulTargetHint{font-size:8px}#skillDock b{font-size:10px}#skillDock kbd{display:none}#movementPad{display:none}#worldUI #joystick{position:fixed;display:grid;left:12px;bottom:calc(var(--hud-bottom) + env(safe-area-inset-bottom));width:var(--hud-move-size);height:var(--hud-move-size)}#worldUI .touch-actions{position:fixed;right:12px;bottom:calc(var(--hud-bottom) + env(safe-area-inset-bottom));width:var(--hud-action-w);height:var(--hud-action-h)}.touch-actions button{position:absolute;width:42px;height:42px;min-height:0;padding:4px}.touch-actions #touchSprint{left:0;top:0;width:46px;height:36px}.touch-actions #touchDodge{right:0;top:0;width:44px;height:36px}.touch-actions #touchTalk{left:0;top:46px;width:42px;height:42px}.touch-actions #touchJump{right:0;top:46px;width:42px;height:42px}.touch-actions #touchGuard{left:0;bottom:0;top:auto}.touch-actions #touchAttack{right:0;bottom:0;top:auto;width:58px;height:56px}.driving-mode .touch-actions{display:none!important}.swimming-mode #touchTalk{display:none!important}}
@media(max-height:480px){#worldUI>.player-card,#worldUI>#soulDock,#worldUI>#waypointHud{display:none!important}#worldUI .world-header{height:calc(44px + env(safe-area-inset-top))}#worldUI .touch-actions #touchSprint,#worldUI .touch-actions #touchDodge{height:30px;top:0}#worldUI .touch-actions #touchTalk,#worldUI .touch-actions #touchJump{top:35px;width:36px;height:36px}#worldUI .touch-actions #touchAttack{width:48px;height:44px}#worldUI .touch-actions #touchGuard{width:36px;height:36px}#skillDock b{font-size:9px}#skillDock small{font-size:9px}#worldUI #interactPrompt{min-height:36px;padding:6px 10px}#hudDrawer{top:50px}#homeTools button,#galleryTools button{min-height:36px;font-size:10px}}
