/* Keep the view clear and bound controls to the actual world container. */
body:not(.mobile-game) #world .park-top-hud{top:12px;left:12px;right:12px;display:grid;grid-template-columns:minmax(0,1fr);gap:7px;justify-items:start}
body:not(.mobile-game) #world .park-top-actions{max-width:100%;display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}
body:not(.mobile-game) #world .park-top-actions>*{flex:0 0 auto;white-space:nowrap;min-height:38px}
body:not(.mobile-game) #world .live-indicator{padding:5px 9px;font-size:10px;max-width:100%;overflow-wrap:anywhere}
body:not(.mobile-game) #world .fps-telemetry,body:not(.mobile-game) #world .scene-weather{display:none}
.world-controller-panel{position:absolute;right:12px;top:112px;bottom:124px;width:min(310px,calc(100% - 24px));z-index:75;overflow:auto;padding:14px;background:#08182ff5;border:1px solid #8fcee1;border-radius:14px;color:#eefaff;box-sizing:border-box;overscroll-behavior:contain}
.world-controller-panel[hidden]{display:none!important}.world-controller-panel h2{font:700 17px/1.3 system-ui;margin:0 0 12px}.controller-panel-close{padding:9px 12px;border:1px solid #9acadc;border-radius:8px;background:#183c50;color:#fff;margin-bottom:12px}
#world .world-controller-panel .touch-controls{position:static!important;inset:auto!important;width:100%;max-width:100%;padding:8px;box-sizing:border-box;background:transparent;backdrop-filter:none;box-shadow:none}
#world .world-controller-panel .walk-help{position:static;width:100%;max-width:100%;max-height:none;overflow:visible;box-sizing:border-box;margin:0 0 12px;padding:12px 28px 12px 12px;box-shadow:none;backdrop-filter:none}
#world .world-controller-panel .walk-help #walk-help-close{position:static;align-self:flex-end}
body:not(.mobile-game) #world .cinematic-quick{right:12px!important;bottom:38px!important;display:grid;grid-template-columns:1fr 1fr;max-width:196px;gap:5px}
body:not(.mobile-game) #world .cinematic-quick button{padding:10px 8px;font-size:10px;min-width:0;letter-spacing:0}
body:not(.mobile-game) #world .map-wrap{top:112px;left:12px;right:auto!important;bottom:auto!important;max-width:168px;padding:9px}
body:not(.mobile-game) #world .map-wrap canvas{width:148px;height:auto;max-width:100%}
body:not(.mobile-game) #world .nearby-panel,body:not(.mobile-game) #world .npc-dialogue{left:12px!important;bottom:38px!important;max-width:min(380px,calc(100% - 230px))!important;max-height:180px;overflow:auto;transform:none!important;overflow-wrap:anywhere}
#world .world-explore-menu{position:absolute!important;top:112px!important;left:190px!important;max-width:min(340px,calc(100% - 214px))!important;max-height:calc(100% - 142px);overflow:auto;font-size:12px!important;z-index:70!important}
#world .world-toolbar-extra{position:static!important;inset:auto!important;max-width:100%;font-size:11px!important;padding:7px 10px!important}
body:not(.mobile-game) #world .world-bottom{display:none}
#world .world-model-credit{position:absolute!important;bottom:9px!important;left:12px!important;right:auto!important;font:10px/1.3 system-ui;background:#08182fe0;padding:4px 7px;border-radius:5px;max-width:calc(100% - 24px)}
#world .world-status-note{position:absolute!important;bottom:46px!important;left:12px!important;max-width:min(380px,calc(100% - 230px))!important;max-height:120px;overflow:auto;box-sizing:border-box;font:12px/1.4 system-ui!important;overflow-wrap:anywhere}
#world:has(.nearby-panel:not([hidden])) .world-status-note,#world:has(.npc-dialogue:not([hidden])) .world-status-note{display:none}
@media(max-height:600px){.world-controller-panel{top:104px;bottom:110px}body:not(.mobile-game) #world .map-wrap{max-width:132px}body:not(.mobile-game) #world .map-wrap canvas{width:112px}}
@media(max-width:900px){body:not(.mobile-game) #world .park-top-actions{width:100%}#world .world-explore-menu{left:12px!important;top:108px!important;max-width:calc(100% - 24px)!important}.mobile-game #world .world-controller-panel{display:none!important}}

/* Map and destination controls follow the toolbar instead of fixed screen offsets. */
#world .world-hud-navigation{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;max-width:100%;min-width:0;pointer-events:none}
#world .world-hud-navigation>*{pointer-events:auto;box-sizing:border-box;min-width:0}
body #world .park-top-hud .world-hud-navigation>.map-wrap{position:relative!important;inset:auto!important;max-width:min(168px,100%)!important;flex:0 0 auto}
#world .world-hud-navigation>.world-explore-menu{position:relative!important;inset:auto!important;max-width:min(340px,100%)!important;max-height:45dvh}
@media(max-width:900px){
 body.fsc-game-view #world .park-top-hud{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start}
 body.fsc-game-view #world .park-top-hud>.live-indicator{max-width:100%}
 #world .world-hud-navigation{grid-column:1/-1;grid-row:2}
 #world .fsc-mobile-world-options{grid-column:2;grid-row:1;max-width:min(52vw,260px)}
}
