body.mobile-headset-ready #spatial-toolbar{display:none!important}
/* The desktop spatial stylesheet reserves a different title rail. Keep the
   mobile title below the language picker and the preview-only banner. */
body.mobile-headset-ready:has(#mobile-preview-controls) #title{top:calc(env(safe-area-inset-top,0px) + 130px)}
#mobile-headset-menu{box-sizing:border-box;width:min(92vw,520px);max-height:90dvh;overflow:auto;color:#f5eedc;background:#10262d;border:1px solid #a78b55;border-radius:18px;padding:24px;font:15px/1.6 system-ui}
#mobile-headset-menu::backdrop{background:#000a}#mobile-headset-menu h2{margin-top:0}#mobile-headset-menu button{display:block;margin:10px 0;white-space:normal;min-height:44px;width:100%}#mobile-headset-menu .headset-limit{font-size:12px;color:#cbd6d1}
#mobile-headset-menu #headset-rotate{color:#f5d996}#mobile-headset-menu [hidden]{display:none}
#mobile-headset-controls{position:fixed;inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px;z-index:10020;padding:8px;display:flex;align-items:center;flex-wrap:wrap;gap:6px;border:1px solid #a78b55;border-radius:12px;background:#10262df0;color:#f5eedc;font:12px/1.4 system-ui}
#mobile-headset-controls[hidden]{display:none}#mobile-headset-controls p{margin:0 6px;flex-basis:100%}#mobile-headset-controls button{white-space:normal;min-height:36px;font-size:12px}#mobile-headset-controls button[hidden]{display:none}
body.mobile-headset-active :is(#mobile-preview-controls,.language-picker,.exp-launch,#hint,#title,#bar,#skip){display:none!important}
body.mobile-headset-active :is(#hazard-panel,#story-panel,#event-replay-panel,#field-trip-panel,#coach,#notify-prompt,#app-prompt,#photo-panel,#about-panel,#era-caption){display:none!important}
body.mobile-headset-active #tabletop-reading{left:8px;right:auto;top:8px;bottom:auto;max-height:40dvh;overflow:auto;width:min(380px,60vw);box-sizing:border-box;padding:12px;font-size:12px}
body.mobile-headset-active #tabletop-reading h2{font-size:18px;margin:0 0 6px}
body.mobile-phone-viewer #tabletop-reading{display:none!important}
body.mobile-phone-viewer::after{content:'';position:fixed;left:50%;top:0;bottom:0;width:1px;background:#0008;pointer-events:none;z-index:10000}
body.mobile-phone-viewer #mobile-headset-controls{opacity:.92;inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px;padding:4px;background:#10262dc9}body.mobile-phone-viewer #mobile-headset-controls button{min-height:32px;padding:5px 8px;font-size:11px}body.mobile-phone-viewer #mobile-headset-controls p{font-size:10px}
body.mobile-phone-viewer #mobile-headset-controls{flex-wrap:nowrap;overflow-x:auto}
body.mobile-phone-viewer #mobile-headset-controls button{flex-shrink:0;white-space:nowrap}
body.mobile-phone-viewer #mobile-headset-controls p{position:fixed;left:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 52px);max-width:calc(100vw - 24px);padding:2px 6px;margin:0;background:#10262dc9;border-radius:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.mobile-phone-viewer #headset-exit{order:-4;position:sticky;left:0;z-index:1;background:#f1d69f;color:#10262d}
body.mobile-phone-viewer #headset-motion{order:-3}body.mobile-phone-viewer #headset-center{order:-2}body.mobile-phone-viewer #headset-more{order:-1}
body.mobile-phone-viewer #mobile-headset-controls:not(.headset-expanded) :is(#headset-action-0,#headset-action-1,#headset-action-2,#headset-fullscreen){display:none}
@media(max-height:450px){body.mobile-headset-active #tabletop-reading{width:32vw;max-height:60vh}#mobile-headset-controls p{flex-basis:auto}}
