@font-face{font-family:Inter;src:url(./assets/fonts/inter-regular.woff2) format("woff2");font-weight:400 550;font-display:swap}
@font-face{font-family:Inter;src:url(./assets/fonts/inter-bold.woff2) format("woff2");font-weight:600 900;font-display:swap}
:root{font-family:Inter,Arial,sans-serif;color:#fff9ed;background:#29251f;--paper:#f9f2e5;--gold:#e6ca90;--line:rgba(255,245,220,.22);--surface:rgba(36,32,26,.87);--edge:clamp(19px,3.1vw,58px);color-scheme:dark}
*{box-sizing:border-box}
body{margin:0}
button,input{font:inherit}
button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:disabled{opacity:.34;cursor:default}
button:focus-visible,input:focus-visible{outline:2px solid #ffe3a6;outline-offset:4px}
button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.icon-library{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
::selection{background:#e6ca90;color:#28241c}
#experience{height:100svh;height:100dvh;min-height:360px;position:relative;overflow:hidden;isolation:isolate;background:#28231e}
#world,.vignette{position:absolute;inset:0;width:100%;height:100%}
/* Chrome's retracting toolbar changes dvh. Keep the 3D projection steady
   while the containing interface and its controls follow the visible area. */
@media(pointer:coarse){#world{height:max(100%,100lvh)}}
#world canvas{display:block;width:100%;height:100%;touch-action:none}
.vignette{z-index:2;pointer-events:none;background:linear-gradient(180deg,rgba(15,15,13,.52),transparent 18%,transparent 67%,rgba(15,14,11,.64) 100%)}
.topbar,.footbar{position:absolute;z-index:3;left:var(--edge);right:var(--edge);display:flex;align-items:center;justify-content:space-between;gap:16px}
.topbar{top:max(23px,env(safe-area-inset-top));pointer-events:none}
.identity,.head-actions{display:flex;align-items:center;gap:12px}
.identity{text-shadow:0 1px 9px #1c1718a3}
.identity>img{height:42px;width:42px}
.identity h1{font-size:clamp(17px,1.36vw,24px);letter-spacing:-.04em;line-height:1.16;margin:0;font-weight:700}
.identity p{margin:4px 0 0;font-size:12px;line-height:1.2;letter-spacing:.015em;color:#efece2}
.chrome{border:1px solid var(--line);background:var(--surface);box-shadow:0 5px 19px #17110932;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.head-actions{gap:8px;pointer-events:auto}
.pill,.icon-only,.route-control,.minor-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;background-color:transparent}
.head-actions .chrome,.route-control.chrome{background:var(--surface)}
.pill,.icon-only,.route-control{border-radius:10px}
.pill{padding:0 14px;height:41px;font-size:13px}
.icon-only{padding:0;width:41px;height:41px}
.chrome:is(button):hover,.minor-action:hover,.close:hover{background:#4c4437}
.scene-caption{position:absolute;left:var(--edge);bottom:calc(max(25px,env(safe-area-inset-bottom)) + 83px);z-index:3;text-shadow:0 2px 15px #20190db3;pointer-events:none}
.scene-caption{transition:opacity .32s ease}
.wall-closeup .scene-caption{opacity:0}
#experience:not(.live) .scene-caption{display:none}
.scene-caption h2{font-size:clamp(36px,4.2vw,74px);font-weight:550;line-height:1.04;letter-spacing:-.043em;margin:0}
.footbar{bottom:max(25px,env(safe-area-inset-bottom));align-items:flex-end;pointer-events:none}
.playback,.route-control{pointer-events:auto}
.playback{display:flex;align-items:center;gap:18px;padding:7px;border-radius:14px;min-height:58px}
.play-button{border:0;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:0 15px;background:var(--gold);color:#2d261b;font-weight:650;font-size:13px;white-space:nowrap}
.play-button:hover{background:#f4dbab}
.play-button svg{width:16px;height:16px}
.play-button.loading svg{animation:pulse 1s ease-in-out infinite alternate}
@keyframes pulse{to{opacity:.3}}
.scrubber{display:flex;align-items:center;gap:11px}
.clock{font-variant-numeric:tabular-nums;font-size:11px;letter-spacing:.035em}
.total{color:#d2cabe}
.range-wrap{position:relative;width:clamp(105px,13vw,245px);height:30px;display:flex;align-items:center}
.ticks{position:absolute;top:calc(50% - 1.5px);height:3px;left:5px;right:5px;border-radius:2px;background:linear-gradient(90deg,#e8cd95 var(--progress,0%),#817b70 var(--progress,0%));pointer-events:none}
.ticks i{position:absolute;top:-1px;width:1px;height:5px;background:#e2d2bc;pointer-events:none}
input[type=range]{position:absolute;inset:0;width:100%;height:100%;margin:0;appearance:none;background:transparent;cursor:pointer;touch-action:pan-y}
input[type=range]::-webkit-slider-runnable-track{height:3px;background:transparent}
input[type=range]::-moz-range-track{height:3px;background:transparent}
input[type=range]::-webkit-slider-thumb{appearance:none;width:9px;height:9px;border:0;border-radius:50%;background:#f2e4cb;margin-top:-3px}
input[type=range]::-moz-range-thumb{width:9px;height:9px;border:0;border-radius:50%;background:#f2e4cb}
.skip{display:flex;align-items:center;border-left:1px solid var(--line);padding-left:5px;gap:2px}
.skip button,.close{border:0}
.skip button{width:32px;height:36px;color:#f8f1e4}
.skip button:enabled:hover{background:#ffffff14}
.skip svg{width:14px;height:14px}
.route-control{height:48px;padding:0 16px;gap:9px;font-size:13px}
.tiny{width:13px;height:13px}
.status{position:absolute;z-index:4;top:50%;left:50%;transform:translate(-50%,-50%);width:max-content;max-width:calc(100% - 40px);box-sizing:border-box;margin:0;border:1px solid var(--line);background:#29251def;padding:13px 18px;border-radius:10px;font-size:14px;line-height:1.5;text-align:center;color:#f5e8cb;font-variant-numeric:tabular-nums}
.live .status{top:85px;transform:translateX(-50%)}
.sheet{color:var(--paper);padding:0;background:#282621;border:1px solid #655e4f;border-radius:17px;box-shadow:0 15px 80px #110f0aa6;width:min(920px,calc(100% - 32px));max-height:calc(100dvh - 32px);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#756a57 #292621}
.sheet::backdrop{background:#15130f77;backdrop-filter:blur(5px)}
.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0;padding:17px 22px;border-bottom:1px solid var(--line)}
.sheet-head h2{margin:0;letter-spacing:-.04em;font-size:23px;font-weight:600}
.sheet-tools{display:flex;align-items:center;gap:14px}
.minor-action{color:#e8d4ad;border:1px solid var(--line);border-radius:7px;height:34px;padding:0 10px;font-size:12px}
.minor-action svg{width:15px;height:15px}
.close{width:35px;height:35px}
.route-sheet{width:min(760px,calc(100% - 32px));margin:auto auto max(15px,env(safe-area-inset-bottom))}
.stations{list-style:none;padding:15px 18px 18px;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.station{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;width:100%;padding:10px 12px;background:transparent;border:1px solid var(--line);border-radius:7px;color:#f5ede0;text-align:left}
.station:hover{background:#ffffff0c}
.station[aria-current=true]{background:#e6ca9014;border-color:var(--gold)}
.station-name{font-size:14px;font-weight:600;line-height:1.3}
.station-time{color:#c5bbab;font-size:11px;font-variant-numeric:tabular-nums}
.details{max-width:540px}
.detail-body{padding:22px 25px 26px}
.detail-body h3{margin:0 0 12px;font-size:24px;letter-spacing:-.04em}
.detail-body p{line-height:1.55;font-size:14px;color:#e2d9c9;margin:9px 0}
.detail-body dl{margin:20px 0 0;padding:0;font-size:13px}
.detail-body dl div{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:10px 0 3px;gap:8px;margin-top:7px}
.detail-body dt{color:#c2b9a7}
.detail-body dd{margin:0}
.plan-sheet{width:min(900px,calc(100% - 25px))}
.plan-sheet img{display:block;width:100%;max-height:calc(100dvh - 104px);object-fit:contain;background:#f4f4ed}
@media(max-width:720px){
  .topbar{top:max(16px,env(safe-area-inset-top))}
  .head-actions{gap:6px}
  .head-actions .pill{width:39px;height:39px;padding:0}
  .head-actions .pill span{display:none}
  .head-actions .icon-only{width:39px;height:39px}
  .identity{gap:9px}
  .identity>img{width:36px;height:36px}
  .identity p{font-size:11px;margin-top:3px}
  .scene-caption{bottom:calc(max(15px,env(safe-area-inset-bottom)) + 82px)}
  .footbar{bottom:max(15px,env(safe-area-inset-bottom));gap:9px;align-items:center}
  .playback{gap:12px;flex:1;min-width:0;padding:6px;min-height:52px}
  .play-button{min-height:38px;min-width:38px;padding:0 9px}
  .play-button span{display:none}
  .scrubber{gap:6px;flex:1}
  .range-wrap{width:auto;flex:1}
  .skip{gap:0;padding-left:3px}
  .skip button{width:26px;height:35px}
  .route-control{padding:0 10px;height:52px;border-radius:13px}
  .route-control span,.route-control .tiny{display:none}
  .sheet-head{padding:14px}
  .sheet-head h2{font-size:21px}
  .stations{grid-template-columns:1fr;padding:12px}
  .route-sheet{width:calc(100% - 20px);max-height:calc(100dvh - 40px)}
}
@media(max-width:370px){.total{display:none}.playback{gap:6px}.identity h1{font-size:15px}.scene-caption h2{font-size:31px}}
@media(max-height:550px) and (min-width:600px){.scene-caption{bottom:88px}.scene-caption h2{font-size:32px}.footbar{bottom:14px}.topbar{top:14px}.stations{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
[hidden]{display:none!important}

.look-hint{display:none;font-size:12px;line-height:1.3;color:#f0e7d8;margin:7px 0 0}
.live:not(.playing) .look-hint{display:block}
.live:not(.playing) #world canvas{cursor:grab}
.live:not(.playing) #world canvas:active{cursor:grabbing}

.speed{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:54px;height:34px;padding:0 6px;border-radius:6px;color:var(--paper);font-size:13px;font-variant-numeric:tabular-nums;background:#ffffff0d}
.speed:hover,.speed:focus-within{background:#ffffff20}
.speed:has(:focus-visible){outline:2px solid var(--gold);outline-offset:2px}
.rate-arrow{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;transform:rotate(180deg)}
.speed select{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;font:inherit;color:var(--paper);background:#302c25}
@media(max-width:720px){.playback{gap:6px}.scrubber{min-width:0}.speed{min-width:38px;padding:0 3px;font-size:12px}.rate-arrow{width:9px}.sheet-head{position:sticky;top:0;z-index:2;background:#282621}}
@media(max-width:420px){.total{display:none}}
@media(max-width:370px){:root{--edge:12px}.footbar{gap:6px}.scrubber .clock{display:none}.playback{gap:5px}}

@media(min-width:721px){.route-sheet .sheet-head{position:sticky;top:0;background:#282621;z-index:2}}

#retry{border:0;background:transparent;color:var(--gold);text-decoration:underline;text-underline-offset:2px;padding:2px 4px;font-size:inherit}
#direct-tour:not([hidden]){display:block;color:var(--gold);text-underline-offset:3px;margin-top:5px}
.live #direct-tour{display:none}
