/* Shared HUD regions supersede the older independent fixed offsets. */
:root{--hud-top:116px;--hud-bottom:126px}
#hud-status{position:fixed;z-index:36;left:max(16px,env(safe-area-inset-left));bottom:var(--hud-bottom);width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - var(--hud-top) - var(--hud-bottom) - 20px);display:flex;flex-direction:column;gap:10px;overflow:auto;pointer-events:none;scrollbar-width:thin}
#hud-status>*{pointer-events:auto;flex-shrink:0;box-sizing:border-box}
#hud-status .location-label,#hud-status #reception-brief,#hud-status #quest-tracker,#hud-status .community-launch,#hud-status #toast{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important}
#hud-status #reception-brief{max-height:none;overflow:visible;padding:16px}
#hud-status #quest-tracker{font-size:13px;line-height:1.5;text-align:left;padding:12px 16px;white-space:normal}
#hud-status:has(#reception-brief:not([hidden])) .location-label,#hud-status:has(#quest-tracker:not([hidden])) .location-label{display:none}
body[data-reception-phase="walking"] #reception-brief{display:none}
#hud-status #toast{display:none;background:#24351f;color:#f7f9ed;padding:12px 16px;font-size:12px;line-height:1.5;border-radius:12px}
#hud-status #toast.visible{display:block;opacity:1}
#look-hint,.camera-mode-hint{display:none!important}
.app-header{top:max(12px,env(safe-area-inset-top))!important;left:16px!important;right:16px!important;gap:16px}
.app-header .header-actions{min-width:0;overflow-x:auto;max-width:100%;scrollbar-width:thin}
.app-header .header-actions>*{flex-shrink:0}
.app-header .azes-domain{position:absolute!important;left:0!important;top:calc(100% + 4px)!important;bottom:auto!important;font-size:10px!important;margin:0}
.explore-panel{top:var(--hud-top)!important;left:16px!important;max-height:calc(100dvh - var(--hud-top) - 100px)!important;overflow:auto}
#hud-tools{position:fixed;z-index:32;top:var(--hud-top);right:16px;width:min(240px,40vw);display:flex;flex-direction:column;gap:8px;pointer-events:none}
#hud-tools>*{pointer-events:auto}
#hud-tools #azes-services .service-launchers,#hud-tools #life-launch{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important}
#hud-tools #azes-services .service-launchers{display:flex;flex-direction:column;gap:8px}
#hud-tools #life-launch{box-sizing:border-box;font-size:12px!important;padding:12px!important}
#hud-tools .service-launch{min-height:40px;width:100%}
.life-panel{position:fixed!important;top:var(--hud-top)!important;bottom:16px!important;right:16px!important;max-height:none!important;width:min(440px,calc(100vw - 32px))!important;z-index:80!important}
#life-shade{z-index:79!important}
#life-panel>button{background:#c8ff62;color:#17251b;border:1px solid #78994a;border-radius:8px;padding:12px 16px;font:600 13px/1.4 inherit;cursor:pointer}
#info-card,#plan-panel{top:var(--hud-top)!important;bottom:auto!important;max-height:calc(100dvh - var(--hud-top) - 24px)!important;overflow:auto;z-index:65}
body.reception-locked .experience-toolbar{visibility:visible!important;pointer-events:auto!important}
body.reception-locked #hud-tools,body.reception-locked #sections,body.reception-locked #spatial-pins{visibility:hidden;pointer-events:none}
body.reception-locked #hud-status{bottom:var(--hud-bottom)}
body.ui-hidden #hud-status,body.ui-hidden #hud-tools{display:none}
.mission-instruction{font-size:13px;line-height:1.6;color:#d3dfc8}
.mission-choices{display:flex;flex-direction:column;gap:10px}
.mission-choices .mission-reset{margin-top:24px;align-self:flex-start;background:transparent;color:#d7e4c5;border:1px dashed #889a70;border-radius:8px;padding:10px 16px;font-size:13px}
.mission-reset::before{content:'↺ ';font-size:18px}
.mission-dialog,.role-panel,.modal{max-height:calc(100dvh - 24px)!important;overflow:auto!important;box-sizing:border-box}
#touch-sprint{grid-column:1/-1!important;grid-row:3!important;width:100%!important;font-size:12px!important;line-height:1.2;padding:6px!important;border-radius:10px}
#touch-sprint[aria-pressed="true"]{background:#c8ff62;color:#17251b}
#touch-controls{bottom:var(--hud-bottom)!important;left:16px!important;z-index:40}
.experience-toolbar{z-index:45!important;max-width:calc(100vw - 24px)!important;bottom:max(12px,env(safe-area-inset-bottom))!important}
@media(max-width:1024px){.app-header .header-status,.app-header .brand-copy{display:none}.app-header{gap:10px}.app-header .header-actions{gap:5px}.app-header .header-actions button,.app-header .header-actions a{padding:10px!important;min-height:42px}.explore-panel{width:min(300px,calc(100vw - 32px))!important}.explore-panel.collapsed{width:140px!important;padding:12px!important}.explore-panel .panel-topline{min-height:24px}.experience-toolbar{width:calc(100vw - 24px)!important;padding:6px!important;display:flex!important;flex-direction:row!important;gap:6px!important;overflow-x:auto;justify-content:flex-start!important}.primary-controls,.secondary-controls{display:flex!important;flex-direction:row!important;flex-shrink:0;gap:4px!important;border:0!important;padding:0!important}.tool-button{min-width:70px!important;width:70px!important;min-height:58px!important;padding:6px!important}.tool-button span{font-size:10px!important;white-space:normal;line-height:1.2}.life-live-copy{display:none}.life-panel{left:auto!important}body.walking #hud-status{bottom:calc(var(--hud-bottom) + 175px);max-height:calc(100dvh - var(--hud-top) - var(--hud-bottom) - 195px)}.location-label h2{font-size:18px}}
@media(max-width:500px){.app-header{left:12px!important;right:12px!important}.app-header .brand{min-width:65px}.app-header .brand-mark{font-size:27px}.app-header .header-actions button,.app-header .header-actions a{padding:8px!important;min-width:36px}.explore-panel{left:12px!important}.explore-panel.collapsed{width:132px!important}#hud-tools{right:12px;width:calc(100vw - 172px)}#hud-tools #life-launch{padding:9px!important;font-size:10px!important}#hud-tools .service-launch{font-size:10px!important;min-height:36px;padding:9px!important}#hud-status{left:12px;width:calc(100vw - 24px);gap:8px}#hud-status #reception-brief{padding:12px}#reception-brief p{font-size:12px!important;line-height:1.5!important}#reception-brief strong{font-size:17px!important}#reception-brief>div{flex-wrap:wrap}#reception-brief button{font-size:12px!important;min-height:42px}#hud-status #quest-tracker{font-size:12px}.mission-dialog{padding:20px!important}.mission-dialog h1{font-size:28px!important}.mission-dialog h2{font-size:22px!important;line-height:1.3}.quest-target{display:none}}
@media(max-height:500px){.app-header .brand-copy,.header-status{display:none}#hud-tools{width:180px}#hud-status{left:auto;right:12px;width:min(320px,45vw);max-height:calc(100dvh - var(--hud-bottom) - 80px)}body.walking #hud-status{bottom:var(--hud-bottom);max-height:calc(100dvh - var(--hud-bottom) - 90px)}#hud-tools{display:none}.explore-panel{width:260px!important}.experience-toolbar{left:50%!important;right:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 190px)!important;margin-left:75px}#touch-controls{bottom:12px!important}#touch-controls button{width:38px!important;height:38px!important}.tool-button{min-height:48px!important}.app-header .header-actions{max-width:75vw}}

#camera-style{position:static!important;inset:auto!important;height:auto!important;width:auto!important}
@media(max-width:500px){#camera-style{font-size:0!important;min-width:45px!important}#camera-style:after{content:'Omuz';font-size:10px}#camera-style[aria-pressed="true"]:after{content:'Mimari'}}

#hud-status #quest-tracker:disabled{opacity:1!important;cursor:progress}
#hud-tools #info-btn{position:static!important;inset:auto!important;transform:none!important;width:100%;padding:10px;box-sizing:border-box}
body:has(#sections:not(.collapsed)) #hud-tools{visibility:hidden;pointer-events:none}
body:has(#info-card:not([hidden])) #hud-tools,body:has(#plan-panel:not([hidden])) #hud-tools{visibility:hidden;pointer-events:none}
#hud-status button[hidden]{display:none!important}

@media(max-width:500px){.app-header .brand{width:65px!important;min-width:65px!important;flex-shrink:0}.app-header .brand svg{width:65px!important;height:auto!important}}

#hud-tools>summary{display:none;pointer-events:auto;list-style:none;cursor:pointer;padding:12px 14px;border-radius:12px;color:#eff6e6;background:#24391d;font:600 12px/1.3 'Segoe UI',sans-serif}
#hud-tools>summary:after{content:'⌄';float:right;margin-left:12px}
#hud-tools[open]>summary:after{content:'⌃'}
#hud-tools>summary::-webkit-details-marker{display:none}
@media(max-width:760px){#hud-tools>summary{display:block}#hud-tools[open]>*{margin-bottom:8px!important}body:has(#hud-tools[open]) #hud-status,body:has(#hud-tools[open]) #touch-controls{visibility:hidden;pointer-events:none}body.walking #hud-status{max-height:max(40px,calc(100dvh - var(--hud-top) - var(--hud-bottom) - 275px))}body.walking #hud-status .location-label{padding:8px 12px}body.walking #hud-status .location-kicker,body.walking #hud-status .location-label p{display:none}body.walking #hud-status .location-label h2{font-size:14px;line-height:1.3;margin:0}}
@media(max-height:500px){#hud-tools{display:block;right:12px;top:var(--hud-top);width:160px}#hud-tools>summary{display:block}body:has(#hud-tools[open]) #hud-status{visibility:hidden}body.walking #hud-status{bottom:var(--hud-bottom);max-height:calc(100dvh - var(--hud-bottom) - 160px)}}
