/* Compact visitor chrome, separate from authoring and camera playback. */
#scene-transition{position:fixed;inset:0;z-index:3;background:#080b08;opacity:0;pointer-events:none}
.settings-stack{display:flex;flex-direction:column;gap:5px}
#settings,#navigation-info{border-color:rgba(242,240,230,.34);background:rgba(12,16,12,.5)}
.settings-panel{position:fixed;z-index:45;top:126px;right:32px;width:min(240px,calc(100% - 32px));padding:16px;border:1px solid var(--line);border-radius:8px;background:#111611f5;box-shadow:0 12px 30px #0008}
.settings-panel h2{font:500 15px var(--sans);margin:0 0 10px;color:var(--brass)}
.settings-panel a{display:block;padding:12px;border:1px solid var(--line);border-radius:5px;text-decoration:none;color:var(--ivory);font-size:13px}
.settings-panel a:hover{background:#30382d}
body:not([data-authoring=true]) .transport{padding:7px 12px 7px 54px;min-height:78px}
body:not([data-authoring=true])[data-mode=exploring] .transport{display:block!important}
body:not([data-authoring=true]) .transport-main{grid-template-columns:44px minmax(0,1fr) auto;gap:12px;min-height:44px}
body:not([data-authoring=true]) .chapter-nav{min-height:36px;padding-bottom:5px;margin-bottom:5px;grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
body:not([data-authoring=true]) .chapter-nav>button{min-height:36px;padding:5px 7px;font-size:11px}
.transport-toggles{position:absolute;left:7px;bottom:6px;display:flex;flex-direction:column;border-right:1px solid var(--line);padding-right:5px;gap:0}
.transport-toggle{width:34px;height:32px;border-radius:4px;padding:5px}
#chapter-collapse[aria-expanded=false] svg{transform:rotate(180deg)}
body:not([data-authoring=true])[data-chapters-collapsed=true] .transport-main{min-height:62px}
.transport-toggle svg,.transport-restore svg{width:26px;height:26px;stroke-width:2}
#chapter-collapse svg{width:22px;height:22px}
#transport-collapse{padding:1px}
#transport-collapse svg,.transport-restore svg{width:28px;height:28px}
#sound{padding:8px}
#sound svg{width:26.4px;height:26.4px}
.cc-button span{transform:scale(1.2);transform-origin:center}
.transport-restore{position:fixed;z-index:5;left:50%;bottom:var(--collection-space);transform:translateX(-50%);width:min(1100px,calc(100% - 40px));height:44px;padding:7px 16px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-bottom:0;border-radius:8px 8px 0 0;background:rgba(17,22,17,.88);color:var(--ivory);backdrop-filter:blur(14px);cursor:pointer}
.transport-restore:hover{background:#30382d;color:var(--label-cream)}
body:not([data-authoring=true])[data-transport-collapsed=true] .transport{visibility:hidden;opacity:0;pointer-events:none}
body:not([data-authoring=true]) .captions{bottom:var(--visitor-caption-bottom,166px);transition:bottom .22s ease}
body[data-authoring=true] .collection-nav{display:none}
body[data-authoring=true] #navigation-info{display:none}
body[data-authoring=true] .viewer-header{z-index:24}
body[data-authoring=true] .settings-panel{top:126px}
body[data-authoring=true] #volume-control{align-self:flex-start;pointer-events:auto}
body[data-authoring=true] #sound{border-color:rgba(242,240,230,.34);background:rgba(12,16,12,.5)}
body[data-authoring=true] #volume-popover{top:calc(100% + 10px);bottom:auto;right:0}
body[data-authoring=true] #volume-popover::after{display:none}
#explore-surface:focus{outline:none}
#explore-surface:focus-visible{outline:1px solid #c7b47e66;outline-offset:-4px}
.navigation-help{position:fixed;z-index:8;top:76px;right:calc(max(32px,env(safe-area-inset-right)) + 58px);width:min(380px,calc(100% - max(32px,env(safe-area-inset-right)) - 78px));max-height:calc(100dvh - 92px);overflow-y:auto;overscroll-behavior:contain;padding:20px 22px 18px;border:1px solid #c7b47e66;border-radius:12px;background:#10170fee;box-shadow:0 16px 50px #0008;backdrop-filter:blur(16px)}
.navigation-help{transition:opacity .18s ease}
.navigation-help.is-leaving{opacity:0}

/* Two deliberate entry steps: navigation, then the story title and playback. */
body:not([data-authoring=true]) .intro{display:grid;grid-template-columns:minmax(0,640px);gap:28px;align-content:center;align-items:start;padding:76px max(6vw,24px) calc(32px + var(--collection-space,0px));overflow-y:auto}
body:not([data-authoring=true]) .intro-copy{margin:0}
body:not([data-authoring=true]) .intro h1{font-size:clamp(40px,5.6vw,82px);margin:20px 0}
body:not([data-authoring=true]) .intro-description{margin-bottom:0}
#entry-hint{display:none}
#intro-title:focus{outline:none}
.entry-guide{width:min(280px,100%)}
.entry-guide .start-button,.entry-navigation-dialog .start-button{width:100%;min-height:58px;border-radius:5px;font-size:22px;line-height:1.2}
.entry-guide .model-progress{width:100%}
.entry-navigation-dialog{inset:0;margin:auto;width:min(440px,calc(100vw - 36px));max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain;padding:clamp(24px,5vw,36px);border:1px solid #d4c6ab;border-radius:14px;background:#f2ead9;color:#29271f;box-shadow:0 24px 90px #0009}
.entry-navigation-dialog::backdrop{background:#071009b8;backdrop-filter:blur(3px)}
.entry-navigation-dialog h2{margin:0 0 22px;font:400 32px/1.15 var(--serif);color:#29271f}
.entry-navigation-dialog .navigation-desktop p{font-size:14px;line-height:1.55;color:#514b40}
.entry-navigation-dialog .navigation-desktop p span{color:#29271f}
.entry-navigation-dialog .navigation-touch{font-size:16px;line-height:1.65;color:#29271f}
.entry-navigation-dialog .navigation-return{border-color:#b9ad9580;margin:20px 0 24px;padding-top:16px;font-size:14px;line-height:1.6;color:#514b40}
.entry-navigation-dialog kbd{display:inline-block;min-width:20px;margin-right:2px;padding:0 3px;border:1px solid #b9ad95;border-radius:3px;font:12px/21px var(--sans);text-align:center}
.entry-navigation-dialog .start-button{border-color:#33392e;background:#33392e;color:#fffaf0}
.entry-navigation-dialog .start-button:hover{border-color:#4c5542;background:#4c5542}
.entry-navigation-dialog .start-button:focus-visible{outline:3px solid #806d3f;outline-offset:4px}
@media(max-width:760px){
  body:not([data-authoring=true]) .intro{gap:24px;align-content:center;padding:72px 24px calc(32px + var(--collection-space,0px))}
  body:not([data-authoring=true]) .intro h1{font-size:clamp(36px,8vw,54px);margin:16px 0}
  body:not([data-authoring=true]) .intro-description{max-width:none;font-size:14px;line-height:1.55}
}
@media(max-height:560px){
  body:not([data-authoring=true]) .intro{padding-top:64px;padding-bottom:20px;align-content:start;gap:18px}
  body:not([data-authoring=true]) .intro h1{font-size:42px;margin:12px 0}
  .entry-navigation-dialog{padding:20px 28px}
  .entry-navigation-dialog h2{font-size:26px;margin-bottom:14px}
  .entry-navigation-dialog .navigation-return{margin:12px 0 16px;padding-top:12px}
}

.navigation-help h2{margin:0 35px 16px 0;font:400 24px/1.2 var(--serif);color:var(--label-cream)}
#navigation-close{position:absolute;top:5px;right:5px;width:36px;height:36px}
.navigation-desktop p{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:10px 0;font-size:12px;line-height:1.5;color:var(--muted)}
.navigation-desktop p span{color:var(--ivory)}
.navigation-help kbd{display:inline-block;min-width:19px;margin-right:2px;padding:0 3px;border:1px solid #c7b47e55;border-radius:3px;font:11px/19px var(--sans);text-align:center}
.navigation-return{border-top:1px solid var(--line);padding-top:13px;margin:16px 0 0;font-size:12px;line-height:1.6;color:var(--label-cream)}
.navigation-touch{display:none;font-size:13px;line-height:1.6}
@media(pointer:coarse){.navigation-desktop{display:none}.navigation-touch{display:block}}
@media(max-width:600px){body:not([data-authoring=true]) .transport{padding-left:45px;padding-right:7px}body:not([data-authoring=true]) .transport-main{grid-template-columns:40px minmax(0,1fr) auto;gap:5px}.transport-toggles{left:3px;padding-right:3px}.transport-toggle{width:32px;padding:5px}.transport-restore{width:calc(100% - 16px);height:44px}.navigation-help{right:calc(max(14px,env(safe-area-inset-right)) + 58px);top:130px;width:min(360px,calc(100% - max(14px,env(safe-area-inset-right)) - 70px));max-height:calc(100dvh - 146px);padding:18px}.playback-options{gap:0}body:not([data-authoring=true]) .timeline .time{display:none}.settings-panel{right:12px;top:126px}}
@media(max-height:560px){.navigation-help{top:64px;max-height:calc(100dvh - 80px);padding:14px 20px}.navigation-help h2{font-size:20px;margin-bottom:8px}.navigation-desktop p{margin:5px 0}.navigation-return{margin-top:8px;padding-top:8px}}
@media(max-width:600px){.navigation-desktop p{flex-direction:column;align-items:flex-start;gap:2px}.navigation-desktop p span{max-width:100%;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.navigation-help{transition:none}body:not([data-authoring=true]) .captions{transition:none}}
