/* 9.1: readable controls at the visitor's viewport size, without scaling the 3D canvas. */
:root{--ui-text:clamp(16px,1vw,24px);--ui-small:clamp(13px,.8vw,18px);--ui-nav:clamp(16px,1vw,26px);--ui-title:clamp(44px,3.4vw,82px)}
body{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
#startup-poster{position:fixed;inset:0;z-index:-1;background:#123329 url('assets/display93/posters/museum-preview.webp') center/cover no-repeat;pointer-events:none}
.panorama-tour:not(.exploring){--home-header:clamp(76px,5vw,112px);--home-chapters:clamp(94px,6vw,132px);--home-footer:44px;--home-gutter:clamp(24px,3.5vw,100px)}
.panorama-tour .topbar{padding-inline:var(--home-gutter,3.5vw)!important;gap:clamp(16px,2vw,42px)!important}
.panorama-tour .brand{font-size:clamp(26px,1.8vw,44px)!important;letter-spacing:2px!important;gap:14px!important}
.panorama-tour .brand-mark{width:44px!important;height:48px!important;font-size:25px!important}
.panorama-tour .brand small{font-size:clamp(9px,.55vw,13px)!important;letter-spacing:1.2px!important}
.panorama-tour .edition9-tag{font-size:12px!important;padding:5px 7px!important}
.panorama-tour .topbar nav{gap:clamp(20px,2vw,48px)!important;margin-right:8px!important}
.panorama-tour .topbar .nav-btn,.panorama-tour .topbar #nav-map{font-size:var(--ui-nav)!important;min-height:44px;letter-spacing:.5px!important}
.panorama-tour .voice-control{font-size:var(--ui-nav)!important;min-width:146px!important;height:auto!important;min-height:46px;padding:10px 18px!important}
.panorama-tour:not(.exploring) .intro{width:clamp(370px,29vw,660px);padding:clamp(24px,2vw,42px);bottom:calc(var(--home-chapters) + var(--ownership-height,var(--home-footer)) + 28px);border-left-width:3px}
.panorama-tour:not(.exploring) .intro .eyebrow{font-size:var(--ui-small);line-height:1.5;margin:0 0 16px;letter-spacing:2px;color:#e3c793}
.panorama-tour:not(.exploring) .intro h1{font-size:var(--ui-title);line-height:1.19;letter-spacing:2px}
.panorama-tour:not(.exploring) .intro .lead{font-size:var(--ui-text);line-height:1.7;margin:18px 0 22px;color:#e0e7dd}
.panorama-tour:not(.exploring) .home-details{display:inline-block;font-size:var(--ui-small);line-height:1.7;margin-top:7px;color:#c7d6c8}
.panorama-tour:not(.exploring) .intro-actions{gap:16px;flex-wrap:wrap}
.panorama-tour:not(.exploring) #enter{font-size:var(--ui-nav);min-height:48px;min-width:186px;padding:13px 18px;gap:16px}
.panorama-tour:not(.exploring) #map-intro{font-size:var(--ui-small);min-height:44px;padding:10px 0}
.panorama-tour:not(.exploring) .chapter{grid-template-columns:36px minmax(0,1fr) clamp(90px,7vw,160px);gap:20px;padding:14px 28px}
.panorama-tour:not(.exploring) .chapter-number{font-size:clamp(26px,1.6vw,38px)}
.panorama-tour:not(.exploring) .chapter-copy strong{font-size:clamp(24px,1.6vw,36px);line-height:1.3;letter-spacing:2px;margin-top:6px}
.panorama-tour:not(.exploring) .chapter-copy small{font-size:clamp(11px,.7vw,16px);color:#bfd0c0;letter-spacing:1px}
.panorama-tour:not(.exploring) .chapter-art{width:100%;height:clamp(58px,4vw,88px)}
.panorama-tour .product-ownership--root{font-size:var(--ui-small)!important;min-height:44px!important;line-height:1.65!important;padding:7px 18px!important;color:#f1d398}
.panorama-tour:not(.exploring) .home-scene-note{padding:10px 14px;right:var(--home-gutter);top:20px}
.panorama-tour:not(.exploring) .home-scene-note small{font-size:var(--ui-small);letter-spacing:.3px}
.panorama-tour:not(.exploring) #guide-host{width:clamp(170px,11.5vw,290px);height:clamp(270px,18vw,440px);bottom:calc(var(--home-chapters) + var(--ownership-height,var(--home-footer)) + 28px)}
.panorama-tour #guide-label strong{font-size:var(--ui-small)!important;letter-spacing:1px!important;white-space:normal!important}
.panorama-tour #guide-label small{font-size:clamp(12px,.7vw,16px)!important;color:#d0decf}
.panorama-tour.exploring{--viewer-header:clamp(76px,5vw,112px);--viewer-controls:68px}
.panorama-tour.exploring #viewer-current{padding-left:18px;min-width:0}
.panorama-tour.exploring #viewer-current #tour-name{font-size:var(--ui-text);max-width:25vw}
.panorama-tour.exploring #viewer-current #tour-image-mode{font-size:var(--ui-small);color:#c9d6c5}
.panorama-tour.exploring #tour-hud{padding:10px 24px;gap:10px;flex-wrap:wrap}
.panorama-tour.exploring #tour-hud>button,.panorama-tour.exploring #tour-scene-select{font-size:var(--ui-small)!important;height:auto;min-height:44px;padding:9px 13px}
.panorama-tour.exploring #tour-scene-select{flex:0 1 300px;width:300px;max-width:360px}
.panorama-tour.exploring #tour-hud #tour-back{width:44px}
.panorama-tour.exploring #tour-hud .scene-tools button{height:auto;min-height:44px;padding:9px 12px;font-size:19px}
.panorama-tour.exploring #tour-hud .scene-tools span,.viewer-gesture{font-size:var(--ui-small)}
.panorama-tour.exploring .tour-point,.panorama-tour.exploring .tour-point.travel{width:44px;height:44px}
.panorama-tour.exploring .tour-point i,.panorama-tour.exploring .tour-point.travel i{font-size:20px}
.panorama-tour.exploring .tour-point>span{font-size:var(--ui-small);line-height:1.6;max-width:min(280px,calc(50vw - 35px));padding:9px 12px}
.panorama-tour.exploring #guide-host{width:clamp(130px,8vw,200px);height:clamp(215px,13vw,330px)}
#viewer-panel{width:clamp(380px,28vw,580px);padding:22px}
.viewer-panel-heading h2{font-size:26px}
#viewer-panel p,#viewer-panel label,#viewer-panel #narration-status,#viewer-panel #viewer-guide-link a{font-size:var(--ui-small);line-height:1.8}
#viewer-panel button,#viewer-option-buttons button,#viewer-panel #tour-eras button,#viewer-panel .tour-museum-nav button{font-size:var(--ui-small);min-height:44px;padding:10px 12px}
#viewer-panel .narration-heading strong{font-size:var(--ui-text)}
#viewer-panel h3,#viewer-panel small,#viewer-panel .tour-museum-nav small,#viewer-panel #tour-eras>small{font-size:var(--ui-small)!important;line-height:1.7}
#viewer-panel #narration-copy p{font-size:var(--ui-text);line-height:1.9}
.voice-mode9{font-size:var(--ui-small)}.voice-mode9 button{font-size:var(--ui-small)}
#journey-ribbon{gap:12px;padding:10px 14px;max-width:calc(100% - 32px);flex-wrap:wrap;justify-content:center}
#journey-ribbon button,.journey-caption{font-size:var(--ui-small)}
#journey-ribbon button{min-height:40px}
.journey-shell>header h2{font-size:32px}.journey-shell>header p,.journey-stop p,.journey-summary{font-size:var(--ui-small);line-height:1.8}
.journey-stop strong{font-size:24px}.journey-stop small,.journey-shell>header>small{font-size:13px}.journey-actions .gold-btn{font-size:16px;min-height:46px}
#content-map{width:min(2100px,97vw)}
#content-map .map-body{grid-template-columns:minmax(0,1fr) clamp(340px,24vw,500px)}
#content-map .map-head h2{font-size:clamp(30px,2vw,44px)}
#content-map .map-head small,#content-map .map-head p,#content-map .map-description,#content-map .map-index>label,#content-map .map-filter,#content-map .map-parts button,#content-map .map-list strong,#content-map .map-model-tools>p{font-size:var(--ui-small);line-height:1.75}
#content-map .map-name{font-size:clamp(26px,1.7vw,36px)}
#content-map .map-category,#content-map .map-section-title>span,#content-map .map-progress,#content-map .map-list h4{font-size:13px}
#content-map .map-viewbar button,#content-map .map-controls button,#content-map .map-enter,#content-map .map-run,#content-map .map-model-actions button{font-size:var(--ui-small);min-height:44px;padding:10px 14px}
#content-map .map-section-title h3{font-size:22px}
#content-map .map-pin b{width:34px;height:34px;font-size:13px}
#content-map .map-pin span{font-size:14px}
#content-map .map-scene-badge strong{font-size:clamp(22px,1.3vw,30px)}
#content-map .map-scene-badge b,#content-map .map-scene-badge>span,#content-map .map-instruction,#content-map .map-simulation label,#content-map .map-speed{font-size:13px;line-height:1.7}
#content-map .map-shell>footer{font-size:12px!important;line-height:1.7}
#content-map .map-close,.close,#viewer-panel-close{min-width:44px;min-height:44px}
.study-body{grid-template-columns:minmax(0,1fr) clamp(340px,27vw,500px)}
.study-shell>header h2{font-size:32px}.study-shell>header small,.study-shell>header p,.study-view-hint,.study-phase>small,.study-time,.study-disclaimer{font-size:13px;line-height:1.75}
.study-phase h3{font-size:26px}.study-feedback,.study-parts small,.study-result p{font-size:var(--ui-small);line-height:1.8}.study-parts b{font-size:var(--ui-text)}
.study-controls>.gold-btn,.study-play,.study-view-tools button,.study-result button{font-size:var(--ui-small);min-height:46px;padding:11px 14px}
.study-view-title strong{font-size:22px}.study-view-title b{font-size:12px}
.info-dialog p,.info-dialog li,.detail-body p,.reader-shell p{font-size:16px;line-height:1.85}
.info-dialog h2{font-size:30px}.info-dialog h3{font-size:23px}.info-dialog a{overflow-wrap:anywhere}
.product-ownership #sources{font-size:var(--ui-small);min-height:32px;padding:4px 8px}
.reader-head h2{font-size:28px}.reader-head small,.reader-size,.reader-source{font-size:var(--ui-small);line-height:1.7}
.reader-controls button,.reader-actions button,.reader-close{font-size:var(--ui-small);min-height:44px;min-width:44px;padding:9px 13px}
@media(max-width:1200px){
 .panorama-tour .topbar nav{display:none!important}.panorama-tour.exploring #viewer-current{display:none}
 .panorama-tour:not(.exploring) .chapter{grid-template-columns:28px minmax(0,1fr) 85px;gap:12px;padding-inline:16px}
 .panorama-tour:not(.exploring) .chapter-copy strong{font-size:23px}.panorama-tour:not(.exploring) .chapter-copy small{font-size:10px}
 .viewer-gesture{display:none}
}
@media(min-width:761px) and (max-height:780px){
 .panorama-tour:not(.exploring){--home-header:72px;--home-chapters:82px;--ui-title:clamp(36px,3vw,54px)}
 .panorama-tour:not(.exploring) .intro{width:360px;padding:22px;bottom:calc(var(--home-chapters) + var(--ownership-height,44px) + 18px)}
 .panorama-tour:not(.exploring) .intro .eyebrow{margin-bottom:10px}.panorama-tour:not(.exploring) .intro .lead{margin:12px 0 14px;font-size:16px}
 .panorama-tour:not(.exploring) #guide-host{width:150px;height:240px}
 .panorama-tour:not(.exploring) .chapter-copy strong{font-size:22px}.panorama-tour:not(.exploring) .chapter-art{height:52px}
}
@media(max-width:760px){
 :root{--ui-text:16px;--ui-small:14px;--ui-nav:15px;--ui-title:32px}
 .panorama-tour:not(.exploring){--home-header:72px;--home-chapters:70px;--home-footer:68px;--home-gutter:4%}
 .panorama-tour .topbar{height:72px!important;padding-inline:4%!important;gap:10px!important}
 .panorama-tour .brand{font-size:25px!important;gap:10px!important;letter-spacing:1px!important}
 .panorama-tour .brand-mark{width:35px!important;height:40px!important;font-size:20px!important}
 .panorama-tour .brand small{font-size:8px!important;letter-spacing:.5px!important}
 .panorama-tour .edition9-tag{font-size:10px!important;padding:4px!important;margin-left:0!important}
 .panorama-tour .voice-control{font-size:14px!important;min-width:104px!important;min-height:44px;padding:8px 10px!important}
 .panorama-tour .product-ownership--root{font-size:12px!important;min-height:58px!important;padding:6px 9px!important;gap:2px 10px!important}
 .panorama-tour:not(.exploring) .intro{width:calc(92vw - 112px);padding:18px 16px;left:4%;bottom:calc(var(--home-chapters) + var(--ownership-height,68px) + 14px)}
 .panorama-tour:not(.exploring) .intro .eyebrow{font-size:12px;line-height:1.5;letter-spacing:1px;margin-bottom:12px}
 .panorama-tour:not(.exploring) .intro h1{font-size:32px;line-height:1.22;letter-spacing:0}
 .panorama-tour:not(.exploring) .intro .lead{font-size:14px;line-height:1.65;margin:13px 0 16px}
 .panorama-tour:not(.exploring) .home-details{font-size:12px;line-height:1.65;margin-top:6px}
 .panorama-tour:not(.exploring) .intro-actions{flex-wrap:wrap;gap:6px}
 .panorama-tour:not(.exploring) #enter{font-size:14px;min-height:46px;min-width:0;width:100%;padding:11px 12px;justify-content:space-between}
 .panorama-tour:not(.exploring) #map-intro{font-size:14px;min-height:40px;padding:6px 0}
 .panorama-tour:not(.exploring) .home-scene-note{right:4%;top:12px;padding:7px 9px}
 .panorama-tour:not(.exploring) .home-scene-note small{font-size:11px;line-height:1.5}
 .panorama-tour:not(.exploring) .chapters{padding-inline:4%;height:70px}
 .panorama-tour:not(.exploring) .chapter,.panorama-tour:not(.exploring) .chapter:first-child,.panorama-tour:not(.exploring) .chapter:last-child{display:flex;align-items:center;justify-content:center;gap:0;padding:12px 6px;min-height:48px}
 .panorama-tour:not(.exploring) .chapter-number,.panorama-tour:not(.exploring) .chapter-art,.panorama-tour:not(.exploring) .chapter-copy small{display:none}
 .panorama-tour:not(.exploring) .chapter-copy strong{font-size:17px;line-height:1.4;margin:0;letter-spacing:0}
 .panorama-tour:not(.exploring) #guide-host{right:4%;width:100px;height:185px;bottom:calc(var(--home-chapters) + var(--ownership-height,68px) + 14px)}
 .panorama-tour #guide-label strong{font-size:12px!important;line-height:1.6;white-space:nowrap!important;letter-spacing:0!important}
 .panorama-tour:not(.exploring) #guide-label small{display:none}
 .panorama-tour.exploring{--viewer-header:72px;--viewer-controls:128px}
 .panorama-tour.exploring #tour-hud{padding:8px 10px;gap:7px;justify-content:flex-start}
 .panorama-tour.exploring #tour-hud>button,.panorama-tour.exploring #tour-scene-select{min-height:42px;font-size:14px!important;padding:8px 10px}
 .panorama-tour.exploring #tour-scene-select{order:0;flex:1 1 calc(100% - 87px);max-width:none;min-width:0}
 .panorama-tour.exploring #tour-hud #tour-clean{order:1;width:80px;font-size:13px!important}
 .panorama-tour.exploring #viewer-settings-toggle,.panorama-tour.exploring #guide-toggle{font-size:13px!important;padding:8px!important}
 .panorama-tour.exploring #journey-open{font-size:13px!important}
 .panorama-tour.exploring #tour-hud .scene-tools button{min-height:44px;height:auto;width:44px;gap:4px;padding:5px 2px}
 .panorama-tour.exploring #tour-hud .scene-tools span{font-size:11px}
 .panorama-tour.exploring #guide-host{width:92px;height:160px;right:12px}
 .panorama-tour.exploring .tour-point>span{font-size:13px;max-width:calc(50vw - 36px);padding:8px}
 #viewer-panel{right:10px;width:calc(100vw - 20px);max-width:calc(100vw - 20px);padding:17px;max-height:calc(100svh - 270px)}
 #viewer-panel .narration-heading>div{min-width:100px}
 #journey-ribbon{top:12px;gap:6px;padding:7px 9px;max-width:calc(100% - 20px)}
 #journey-ribbon button,.journey-caption{font-size:12px}
 #journey-ribbon .journey-action{max-width:115px;white-space:normal}
 #content-map .map-body{display:flex;flex-direction:column;overflow:auto}
 #content-map .map-head{padding:14px}#content-map .map-head h2{font-size:28px}
 #content-map .map-head small,#content-map .map-head p{font-size:12px}
 #content-map .map-viewport{height:66dvh;min-height:470px;max-height:none;flex:none}
 #content-map .map-scene-badge{top:83px;left:14px;max-width:calc(100% - 28px)}
 #content-map .map-scene-badge strong{font-size:20px}#content-map .map-scene-badge b,#content-map .map-scene-badge>span{font-size:11px}
 #content-map .map-viewbar{left:12px;right:12px;display:flex}
 #content-map .map-viewbar button{padding:10px 9px;font-size:13px;flex:1}
 #content-map .map-simulation{bottom:100px;left:12px;max-width:calc(100% - 24px);gap:7px;flex-wrap:wrap}
 #content-map .map-controls{left:12px;right:12px;bottom:47px;display:flex;justify-content:flex-start}
 #content-map .map-controls button{padding:9px 10px;min-width:40px;font-size:13px}
 #content-map .map-instruction{font-size:11px;bottom:10px;left:14px;max-width:90%}
 #content-map .map-card{display:block}#content-map .map-preview{width:100%;height:180px;min-height:0}
 #content-map .map-parts{grid-template-columns:repeat(2,minmax(0,1fr))}#content-map .map-parts button{font-size:14px}
 #content-map .map-shell>footer{font-size:10px!important}
 .study-body{display:flex;flex-direction:column;overflow:auto}.study-viewport{min-height:280px;flex:none}.study-controls{overflow:visible;flex:none}
 #headframe-study{height:94dvh}.study-shell>header{padding:15px}.study-shell>header h2{font-size:25px}.study-view-title strong{font-size:17px}
 .study-view-tools{bottom:45px;left:14px}.study-view-hint{left:14px;bottom:12px;font-size:11px}
 .study-controls{padding:18px}.study-parts b{font-size:16px}.study-feedback,.study-parts small{font-size:14px}
}
@media(max-width:350px){
 .panorama-tour .brand{font-size:22px!important;gap:7px!important}.panorama-tour .brand small{font-size:7px!important}
 .panorama-tour .brand-mark{width:31px!important;height:37px!important}.panorama-tour .voice-control{min-width:92px!important;font-size:13px!important}
 .panorama-tour .edition9-tag{display:none}
 .panorama-tour:not(.exploring) .intro{width:calc(92vw - 104px);padding:15px 12px}
 .panorama-tour:not(.exploring) .intro h1{font-size:29px}.panorama-tour:not(.exploring) #guide-host{width:90px;height:170px}
 .panorama-tour:not(.exploring) .chapter-copy strong{font-size:16px}
}
@media(max-height:620px){
 .panorama-tour:not(.exploring){--home-header:62px;--home-chapters:64px}
 .panorama-tour .topbar{height:62px!important}.panorama-tour.exploring{--viewer-header:62px}
 .panorama-tour:not(.exploring) .intro{max-height:calc(100svh - 220px);overflow:auto;padding:14px 18px}
 .panorama-tour:not(.exploring) .intro h1{font-size:32px}.panorama-tour:not(.exploring) .intro .lead{font-size:14px;margin:10px 0}
 .panorama-tour:not(.exploring) .intro .eyebrow,.panorama-tour:not(.exploring) .home-details{display:none}
 .panorama-tour:not(.exploring) .intro-actions{margin-top:12px}
 .panorama-tour:not(.exploring) #guide-host{height:150px;width:95px}
 .panorama-tour:not(.exploring) .chapters{height:64px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition-duration:.01ms!important}}
@media(max-height:500px) and (max-width:1000px){
 .panorama-tour:not(.exploring) .intro{width:min(430px,54vw);max-height:none;padding:13px 16px;overflow:visible}
 .panorama-tour:not(.exploring) .intro h1{font-size:28px;line-height:1.3;letter-spacing:0}
 .panorama-tour:not(.exploring) .intro h1 br{display:none}
 .panorama-tour:not(.exploring) .intro .lead,.panorama-tour:not(.exploring) .home-scene-note{display:none}
 .panorama-tour:not(.exploring) .intro-actions{flex-wrap:nowrap;align-items:center;gap:12px;margin-top:13px}
 .panorama-tour:not(.exploring) #enter{width:auto;min-width:158px;font-size:14px;min-height:44px;padding:10px 12px}
 .panorama-tour:not(.exploring) #map-intro{font-size:13px}
 .panorama-tour:not(.exploring) #guide-label small{display:none}
 .panorama-tour:not(.exploring) #guide-label strong{font-size:11px!important;white-space:nowrap!important;letter-spacing:0!important}
 .panorama-tour:not(.exploring) #guide-host{width:110px;height:160px}
}

/* v92: explicit compact back label; prevent hidden-text and pseudo-arrow overlap. */
.panorama-tour.exploring #tour-hud #tour-back{width:auto;min-width:72px;flex:0 0 auto;padding:9px 12px;gap:6px;white-space:nowrap;line-height:1.4}
.panorama-tour.exploring #tour-hud #tour-back:not([hidden]){display:inline-flex;align-items:center;justify-content:center}
.panorama-tour.exploring #tour-hud #tour-back::before{content:none}
.panorama-tour.exploring #tour-hud>button{flex-shrink:0;white-space:nowrap}
@media(max-width:760px){.panorama-tour.exploring #tour-hud #tour-back{min-width:64px;padding:8px 10px;gap:5px}}


.home-scene-note #panorama-hd-status{font-size:var(--ui-small);line-height:1.5}.home-scene-note #panorama-hd-retry{pointer-events:auto;font-size:13px;padding:6px 9px;border:1px solid #d8b77d88;margin-left:9px}
@media(max-width:760px){.home-scene-note #panorama-hd-status{font-size:11px}}
