/* Touch keeps native document scrolling. Fine-pointer desktops follow the scroll route. */
body[data-page=hall]{--hall-paper:oklch(95.41% .0053 247.88);--hall-ink:oklch(25% .014 248);--hall-muted:oklch(43% .018 248);--lgz-bg:var(--hall-paper);--lgz-ink:var(--hall-ink)}
:root[data-theme=dark] body[data-page=hall]{--hall-paper:oklch(16% .01 248);--hall-ink:oklch(94% .006 248);--hall-muted:oklch(76% .012 248)}
#load-status{border:1px solid var(--hall-line);background:var(--hall-paper);padding:12px 18px;z-index:var(--z-overlay)}
#load-status::before{animation:route-pulse 1s ease-in-out infinite;transform-origin:left}@keyframes route-pulse{50%{transform:scaleX(.35);opacity:.5}}
.hall-3d body{background:var(--hall-paper)}
.hall-3d .lgz-gbar{position:relative;inset:auto;min-height:68px}
.hall-3d .lgz-mbar,.hall-3d .hall-intro{display:none}
.hall-3d #hall-track{display:none}
.hall-3d #hall-stage{position:relative;inset:auto;width:100%;height:calc(100svh - 68px - env(safe-area-inset-top));min-height:530px;z-index:var(--z-base);background:oklch(22% .015 190);color:oklch(96% .005 248);isolation:isolate;pointer-events:auto;overflow:hidden;scroll-margin:0}
.hall-3d #hall-canvas{position:absolute;inset:0 0 166px;width:100%;height:calc(100% - 166px);touch-action:pan-y;outline:none}
.hall-3d #photo-walls{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.hall-3d .hall-footer{display:flex;margin-top:0;padding-top:32px}
.walk-top{position:absolute;inset:18px max(24px,env(safe-area-inset-right)) auto max(24px,env(safe-area-inset-left));display:flex;justify-content:space-between;align-items:start;gap:16px;pointer-events:none;z-index:var(--z-sticky)}
.walk-top>*{pointer-events:auto}
#hall-stage #hall-hud{position:static;inset:auto;display:flex;align-items:center;gap:16px;background:oklch(19% .012 190 / .94);color:oklch(96% .005 248);border:1px solid oklch(60% .015 190 / .5);padding:8px 18px;text-align:left;min-height:48px}
#hall-stage #hud-album{font:400 24px/1.2 var(--hall-display)}
#hall-stage #hud-wing,#hall-stage #hud-count{font:12px/1.4 var(--lgz-f-body);color:oklch(86% .008 248)}
.walk-top-actions{display:flex;gap:8px}
.walk-top button,#hall-stage .walk-map button{border-radius:2px;min-height:48px;min-width:48px;background:oklch(19% .012 190 / .96);color:oklch(96% .005 248);border:1px solid oklch(60% .015 190);padding:10px 16px;font-size:13px}
#hall-stage #scene-caption{position:absolute;inset:auto 0 0;display:grid;grid-template-columns:minmax(180px,1fr) minmax(330px,500px) minmax(160px,1fr);align-items:center;gap:20px;width:100%;max-width:none;height:166px;padding:22px max(28px,env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));background:oklch(19% .012 190);border-top:1px solid oklch(46% .015 190);z-index:var(--z-sticky)}
#scene-caption .caption-copy{min-width:0}#hall-stage #scene-caption h2{font:400 clamp(18px,1.8vw,26px)/1.4 var(--lgz-f-body);letter-spacing:0;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#hall-stage #scene-caption p{font-size:12px;line-height:1.5;margin:0;color:oklch(83% .01 248)}
#hall-stage #tour-controls{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;margin:0}
#hall-stage #tour-controls button{min-height:52px;border:1px solid oklch(64% .02 160);padding:12px 16px;background:transparent;color:oklch(96% .005 248);border-radius:3px;font-size:14px}
#hall-stage #tour-controls #tour-next{background:oklch(92% .014 160);color:oklch(23% .014 160);border-color:transparent}
#hall-stage #tour-count{min-width:52px;align-self:center;font:12px var(--lgz-f-mono);font-variant-numeric:tabular-nums;color:oklch(89% .01 248)}
#hall-stage .tour-details{justify-content:end;gap:8px}#hall-stage .tour-details button,#hall-stage .tour-details a{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;line-height:1.3;color:oklch(91% .005 248);border:1px solid oklch(54% .01 190);padding:8px 12px;border-radius:3px;background:none;white-space:nowrap;text-decoration:none}
#hall-stage #journey-progress{position:absolute;bottom:0;height:3px;z-index:var(--z-sticky);background:oklch(76% .095 60)}
#route-map{position:fixed;inset:0;margin:auto;width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:24px;background:var(--hall-paper);color:var(--hall-ink);border:1px solid var(--hall-line);border-radius:8px;overscroll-behavior:contain;overflow:auto}
#route-map::backdrop{background:oklch(10% .01 248 / .76)}
.map-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.map-heading h2{font:400 26px var(--hall-display)}#map-close{border:1px solid var(--hall-line);min-height:44px;min-width:60px;background:transparent;color:inherit}
#route-map #mini-map{position:relative;inset:auto;width:100%;padding:0;border:0;background:none;color:inherit}
#route-map #mini-map text{font-size:26px}#route-map #hall-rail{position:relative;inset:auto;display:grid;grid-template-columns:1fr 1fr;max-width:100%;gap:8px;overflow:visible;padding:16px 0 0}
#route-map #hall-rail button{min-height:48px;min-width:0;background:var(--hall-paper);color:var(--hall-ink);border:1px solid var(--hall-line);border-radius:3px;padding:10px 14px}
#route-map #hall-rail button[aria-current]{border:2px solid var(--hall-accent)}
.hall-3d #hall-status{position:relative;inset:auto;background:var(--hall-paper);color:var(--hall-ink);padding:8px 20px}.hall-3d #hall-status:empty{display:none}
#photo-notice{position:absolute;left:16px;right:16px;bottom:calc(220px + env(safe-area-inset-bottom));z-index:var(--z-toast);padding:12px;background:oklch(19% .012 190);color:oklch(96% .005 248);border:1px solid oklch(70% .01 248);display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px}#photo-notice button{flex-shrink:0;color:inherit;border:1px solid currentColor;min-height:44px}
@media(hover:hover) and (pointer:fine){#hall-canvas{cursor:default}.walk-top button:hover,#tour-controls button:hover,.tour-details button:hover{filter:brightness(1.13)}}
@media(max-width:1000px){#hall-stage #scene-caption{grid-template-columns:1fr 1.2fr;height:182px;padding:16px 24px}.caption-copy{grid-row:1/3}.tour-details{grid-column:2}#hall-stage #hall-canvas{bottom:182px;height:calc(100% - 182px)}}
@media(max-width:767px){
 .hall-3d .lgz-gbar{min-height:60px;height:calc(60px + env(safe-area-inset-top))}.hall-3d #hall-stage{height:calc(100svh - 60px - env(safe-area-inset-top));min-height:560px}
 .walk-top{inset:12px max(12px,env(safe-area-inset-right)) auto max(12px,env(safe-area-inset-left));gap:8px}
 #hall-stage #hall-hud{padding:9px 12px;display:grid;grid-template-columns:auto auto;gap:3px 8px;min-height:64px}
 #hall-stage #hud-album{font-size:20px;grid-column:1/3;grid-row:1}#hall-stage #hud-wing,#hall-stage #hud-count{font-size:10px}
 .walk-top-actions{gap:8px}.walk-top button{padding:10px;font-size:12px;min-height:48px}
 #hall-stage #hall-canvas{bottom:calc(204px + env(safe-area-inset-bottom));height:calc(100% - 204px - env(safe-area-inset-bottom))}
 #hall-stage #scene-caption{height:calc(204px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:10px;padding:12px max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
 #hall-stage #scene-caption h2{font-size:16px;margin-bottom:3px;line-height:1.4;-webkit-line-clamp:1}
 #hall-stage #scene-caption p{font-size:11px}
 #hall-stage #tour-controls{gap:8px}#hall-stage #tour-controls button{font-size:13px;padding:10px 12px;min-height:52px}
 #hall-stage #tour-count{min-width:48px;font-size:11px}#hall-stage .tour-details{justify-content:center;gap:8px}#hall-stage .tour-details button,#hall-stage .tour-details a{font-size:11px;padding:8px 10px;flex:1}
 #route-map{padding:18px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 .hall-3d .hall-footer{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
}
@media(max-height:500px) and (min-width:600px){
 .hall-3d .lgz-gbar{display:none}.hall-3d #hall-stage{height:100svh;min-height:320px}
 .walk-top{left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top))}
 #hall-stage #hall-hud{padding:8px 12px;min-height:44px}#hall-stage #hud-album{font-size:20px}#hud-count{display:none!important}
 #hall-stage #hall-canvas{inset:0 276px 0 0;width:calc(100% - 276px);height:100%}
 #hall-stage #scene-caption{inset:70px 0 0 auto;width:276px;height:auto;padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) 12px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:12px;border-top:0}
 #hall-stage #scene-caption h2{font-size:16px;line-height:1.5}#hall-stage #tour-controls{gap:8px;grid-template-columns:1fr 1fr}#hall-stage #tour-count{grid-column:1/3;grid-row:1}#hall-stage #tour-controls button{padding:8px;font-size:12px;min-height:48px}
 #hall-stage .tour-details{gap:8px;justify-content:start}#hall-stage .tour-details button,#hall-stage .tour-details a{font-size:11px;padding:8px}#hall-stage .caption-copy{min-height:44px}
}
@media(prefers-reduced-motion:reduce){#load-status::before{animation:none}#hall-stage *{transition:none!important}}
.hall-scroll .lgz-gbar{display:none}
.hall-scroll #hall-stage{height:100svh;min-height:0}
.hall-scroll{scroll-behavior:auto;overflow-anchor:none}
.hall-scroll body{overflow-anchor:none}
