* { box-sizing: border-box; }
:root {
  --ink: #f1eee5;
  --paper: #f3f0e7;
  --line: #f1eee535;
  --orange-ink: #b23d00;
  --hud: #17313cce;
  --hud-line: #f3eee433;
  --ui: 'Space Grotesk', sans-serif;
  --mono: 'Space Mono', monospace;
  --serif: 'EB Garamond', Georgia, serif;
  --surface: linear-gradient(145deg, #fffef5f2, #f3f4f0ed 58%, #eaf0f7ed);
  --surface-header: #f6f7f2f5;
  --surface-raised: #fffefa9c;
  --surface-ink: #344b49;
  --surface-muted: #52645f;
  --surface-line: #617c7b1c;
  --surface-edge: #ffffffa6;
  --surface-wash: #7d9aa00a;
  --surface-selected: #e1ebe7;
  --surface-selected-line: #718c8329;
  --surface-response: #cbdedb;
  --surface-focus: #537c70;
  --surface-shadow: 0 8px 36px #344e6312, inset 0 1px 0 #fff8;
  color-scheme: light;
  font-family: var(--ui);
  color: var(--ink);
}
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #243e49; }
body { font-size: 14px; }
body[data-mood=dusk] {
  --surface: linear-gradient(145deg, #fff9f3f2, #f4eff3ef 58%, #eaeef7ef);
  --surface-header: #f7f2f4f5;
  --surface-raised: #fffafa9c;
  --surface-wash: #a494b40b;
  --surface-selected: #e7e7ee;
  --surface-selected-line: #8b8a9f2b;
  --surface-response: #d9d5e8;
}
body.night {
  --surface: linear-gradient(145deg, #f5f6fff0, #eaeff5ed 58%, #e6eaf5ed);
  --surface-header: #f0f3faf5;
  --surface-raised: #fafbff9c;
  --surface-ink: #384b60;
  --surface-muted: #505f76;
  --surface-line: #60779220;
  --surface-wash: #7f94b80d;
  --surface-selected: #dfe8ee;
  --surface-selected-line: #6e86a02b;
  --surface-response: #c8d9ee;
  --surface-shadow: 0 8px 36px #0d193527, inset 0 1px 0 #fff8;
}
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, canvas:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
button:disabled { opacity: .4; cursor: default; }
button svg, a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
#world, #scene, .vignette, #landmark-labels { position: absolute; inset: 0; width: 100%; height: 100%; }
#scene { display: block; touch-action: none; cursor: grab; outline-offset: -5px; }
#scene:focus-visible { outline: 1px solid #f1eee580; }
#scene:active { cursor: grabbing; }
#scene.is-hovering { cursor: pointer; }
.vignette { z-index: 1; pointer-events: none; background: linear-gradient(0deg, #11273180, transparent 35%), linear-gradient(90deg, #15283328, transparent 48%); }
#landmark-labels { pointer-events: none; z-index: 3; overflow: hidden; }
.world-header { position: absolute; z-index: 10; left: 32px; right: 32px; top: max(26px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 32px; pointer-events: none; }
.world-header > * { pointer-events: auto; }
.wordmark { font: 500 28px/1 var(--serif); letter-spacing: -.7px; text-decoration: none; display: flex; align-items: baseline; color: var(--orange); text-shadow: 0 2px 18px #152c4080; }
.wordmark span { font: 600 .68em/1 var(--ui); letter-spacing: -.03em; margin-left: .18em; color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button { height: 38px; width: 38px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; font-size: 16px; }
.icon-button:hover { background: #f3eee41c; }
.index-button { border: 1px solid #f4eee435; background: #18313a40; border-radius: 30px; display: flex; align-items: center; gap: 18px; height: 38px; padding: 0 16px; font-size: 11px; }
.index-button svg { width: 17px; }
.index-button:hover, .index-button[aria-expanded=true] { background: var(--paper); color: #253b40; }
.world-intro { position: absolute; z-index: 4; left: 32px; bottom: 150px; max-width: 400px; pointer-events: none; transition: opacity .6s, transform .6s; text-shadow: 0 2px 24px #112c4060; }
.world-intro > * { pointer-events: auto; }
.eyebrow { font: 8px/1.5 var(--mono); letter-spacing: 1.8px; display: flex; gap: 10px; align-items: center; }
.world-intro h1 { font: 400 clamp(56px, 6vw, 84px)/1.02 var(--serif); letter-spacing: -2.5px; margin: 0 0 18px; }
.world-intro h1 em { font-weight: 400; }
.world-intro p { font-size: 12px; line-height: 1.7; opacity: .76; margin: 0; }
.explore-button { font-size: 11px; display: inline-flex; align-items: center; gap: 28px; color: var(--paper); border-bottom: 1px solid #f3eee465; padding: 8px 0; min-height: 40px; margin-top: 22px; }
.explore-button span { font-size: 18px; color: var(--orange); transition: transform .2s; }
.explore-button:hover span { transform: translate(2px,-2px); }
.world-intro.dismissed { opacity: 0; transform: translateY(12px); pointer-events: none; }
.world-intro.dismissed > * { pointer-events: none; }
.world-footer { position: absolute; z-index: 10; left: 32px; right: 32px; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; pointer-events: none; }
.world-footer > * { pointer-events: auto; }
.location { display: flex; align-items: center; gap: 13px; min-width: 225px; }
.location > div { display: flex; flex-direction: column; gap: 6px; }
.location span:not(.compass) { font: 8px var(--mono); letter-spacing: 1.2px; }
.coordinates { opacity: .5; }
.compass { width: 26px; height: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
#compass-needle { display: block; font-size: 21px; line-height: 1; }
.compass small { font: 6px var(--mono); opacity: .6; }
.travel-hint { display: flex; gap: 10px; align-items: center; font-size: 9px; opacity: .65; }
.travel-hint i { font-style: normal; margin: 0 7px; opacity: .5; }
.mouse-icon { display: inline-block; border: 1px solid currentColor; border-radius: 6px; width: 10px; height: 15px; position: relative; }
.mouse-icon:before { content: ''; position: absolute; top: 3px; left: 4px; height: 3px; border-left: 1px solid; }
.room-exit { font: 10px var(--ui); color: var(--surface-ink); padding: 0 12px; min-height: 32px; border-radius: 12px; background: var(--surface); border: 1px solid var(--surface-line); }
.room-exit:hover { background: var(--surface-header); }
.panel-open .room-exit, .exhibit-open .room-exit { display: none; }
.footer-actions { display: flex; gap: 3px; min-width: 225px; justify-content: flex-end; }
.landmark-label { position: absolute; top: 0; left: 0; pointer-events: auto; white-space: nowrap; padding: 4px 10px 4px 4px; display: flex; align-items: center; gap: 8px; color: var(--surface-ink); background: #f0f3efcf; border: 1px solid #ffffff78; border-radius: 20px; font-size: 10px; box-shadow: 0 2px 16px #314d5b0a; transition: background .3s, border-color .3s, opacity .3s; }
.marker-number { display: grid; place-items: center; width: 21px; height: 21px; font: 8px var(--mono); color: var(--surface-ink); }
.landmark-label:after { content: ''; position: absolute; height: 15px; width: 1px; background: #f5f7f0a0; top: 100%; left: 50%; }
.landmark-label:before { content: ''; position: absolute; width: 3px; height: 3px; background: #f5f7f0c2; border-radius: 50%; top: calc(100% + 13px); left: calc(50% - 1px); }
.landmark-label:hover, .landmark-label:focus-visible, .landmark-label.active { background: var(--surface-header); color: var(--surface-ink); border-color: #ffffffcc; z-index: 2; }
.landmark-label:hover .marker-number, .landmark-label:focus-visible .marker-number { color: var(--surface-ink); }
.landmark-label.active .marker-number { color: #466c60; }
.landmark-label:focus-visible { outline: 2px solid var(--surface-focus); outline-offset: 3px; }
/* Keep the numbered anchor fixed: hover names must not change collision bounds. */
.landmark-label.compact { width: 29px; height: 29px; padding: 3px; gap: 0; }
.landmark-label.compact .marker-number { flex-shrink: 0; }
.landmark-label.compact .marker-name { position: absolute; top: var(--marker-name-y, -1px); left: var(--marker-name-x, 34px); width: max-content; max-width: calc(100vw - 24px); height: 29px; display: flex; align-items: center; padding: 0 11px; background: var(--surface-header); border: 1px solid #ffffffcc; border-radius: 20px; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.landmark-label.compact.show-name .marker-name { opacity: 1; visibility: visible; }
/* A transparent bridge keeps the name clickable across the small visual gap. */
.landmark-label.compact .marker-name:before { content: ''; position: absolute; pointer-events: auto; }
.landmark-label[data-name-side=right] .marker-name:before { right: 100%; top: -1px; width: 8px; height: calc(100% + 2px); }
.landmark-label[data-name-side=left] .marker-name:before { left: 100%; top: -1px; width: 8px; height: calc(100% + 2px); }
.landmark-label[data-name-side=above] .marker-name:before { top: 100%; left: 50%; transform: translateX(-50%); width: 29px; height: 8px; }
.landmark-label[data-name-side=below] .marker-name:before { bottom: 100%; left: 50%; transform: translateX(-50%); width: 29px; height: 8px; }
.scenic-mode .landmark-label { opacity: .45; }
.scenic-mode .landmark-label:hover, .scenic-mode .landmark-label:focus-visible { opacity: 1; }
.glass-panel { --ink: var(--surface-ink); --line: var(--surface-line); position: absolute; z-index: 20; background: var(--surface); color: var(--ink); border: 1px solid var(--surface-edge); box-shadow: var(--surface-shadow); border-radius: 18px; backdrop-filter: blur(20px); animation: panel-in .38s ease both; scrollbar-width: thin; scrollbar-color: #a9b6ad70 transparent; overscroll-behavior: contain; }
.panel-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); min-height: 51px; gap: 15px; }
.panel-bar > span { font: 10px var(--ui); letter-spacing: .025em; color: var(--surface-muted); text-transform: lowercase; }
.close-button { font: 300 23px/1 var(--ui); width: 32px; height: 32px; border-radius: 50%; color: var(--surface-muted); transition: background .18s, color .18s; }
.close-button:hover, .exhibit-navigation button:hover { color: var(--surface-ink); background: #70877a0c; }
.glass-panel :is(button, a, input, select, summary):focus-visible,
.landscape-note button:focus-visible, .exhibit-dock button:focus-visible,
.journey-bar button:focus-visible, .room-exit:focus-visible { outline: 2px solid var(--surface-focus); outline-offset: 3px; }
.index-panel { right: 32px; top: 83px; width: 350px; padding: 0 24px 22px; max-height: calc(100dvh - 170px); overflow-y: auto; }
.index-panel h2 { font: 400 36px/1 var(--serif); letter-spacing: -1px; margin: 22px 0 18px; }
.index-divider { font: 11px var(--ui); letter-spacing: .01em; margin: 23px 0 10px; color: var(--surface-muted); text-transform: lowercase; }
.destination-button { width: 100%; display: flex; align-items: center; padding: 12px 10px; margin: 2px 0; border: 1px solid transparent; border-radius: 11px; text-align: left; gap: 14px; transition: background .2s, border-color .2s; }
.destination-button > span:first-child { font: 8px var(--mono); opacity: .45; }
.destination-button strong { font-weight: 500; font-size: 13px; display: block; }
.destination-button small { display: block; font-size: 10px; line-height: 1.5; color: var(--surface-muted); margin-top: 3px; }
.destination-button .arrow { margin-left: auto; font-size: 17px; opacity: .5; }
.destination-button:hover, .vista-button:hover { background: var(--surface-raised); border-color: var(--surface-line); }
.destination-button.visited > span:first-child { opacity: .75; }
.destination-button.active { background: var(--surface-selected); border-color: var(--surface-selected-line); }
.destination-button.active strong { color: var(--surface-ink); }
.vista-button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 10px; margin: 2px 0; border: 1px solid transparent; border-radius: 11px; text-align: left; font-size: 12px; transition: background .2s, border-color .2s; }
.vista-button > span:first-child { font: 8px var(--mono); opacity: .4; }
.vista-button > span:nth-child(2) { flex: 1; }
.vista-button small { display: block; font-size: 10px; line-height: 1.5; color: var(--surface-muted); margin-top: 3px; }
.vista-button:hover, .overview-link:hover { color: #102b30; }
.vista-button[aria-current=location] { color: var(--surface-ink); background: var(--surface-selected); border-color: var(--surface-selected-line); }
.vista-button.experienced > span:first-child { opacity: .75; }
.vista-button.experienced > span:last-child { opacity: .6; }
#landscape-divider { display: flex; justify-content: space-between; gap: 8px; opacity: 1; color: #647870; }
#landscape-progress { color: #647870; white-space: nowrap; }
.overview-link { font-size: 10px; margin-top: 20px; padding: 0; }
.atlas-map { height: 290px; position: relative; background: linear-gradient(160deg, #e9eee7, #dee9e9); border: 1px solid var(--surface-edge); border-radius: 13px; }
.atlas-map svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.atlas-water { fill: #bdcbc5; stroke: #a2b6b0; stroke-width: 2; }
.atlas-shore { fill: #bdcbc5; stroke: #a2b6b0; stroke-width: 2; }
.atlas-route { fill: none; stroke: #f3f0e7; stroke-width: 2; }
#atlas-player { fill: var(--orange); stroke: #f3f0e7; stroke-width: 2; }
.atlas-node { position: absolute; transform: translate(-50%,-50%); width: 21px; height: 21px; border-radius: 50%; border: 1px solid #54685e60; background: #f3f0e7; color: #304f4e; font: 7px var(--mono); padding: 0; }
.atlas-node:hover, .atlas-node.active { background: #304f4e; color: #f3f0e7; }
.atlas-node.active { background: #273b3d; border-color: #273b3d; color: var(--paper); }
.atlas-place { width: 17px; height: 17px; border-radius: 3px; background: #70847a; border-color: #f3f0e7; color: #fff; font-size: 13px; line-height: 1; }
.atlas-place:hover, .atlas-place.active { background: #273b3d; border-color: #273b3d; color: var(--paper); }
.atlas-filter { position: sticky; top: 0; z-index: 2; display: flex; gap: 3px; margin: 0 0 12px; padding: 4px; border: 1px solid transparent; border-radius: 12px; background: var(--surface-header); }
.atlas-filter button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 5px; padding: 9px 3px; font: 10px var(--ui); border-radius: 8px; color: var(--surface-muted); transition: background .18s, color .18s, box-shadow .18s; }
.atlas-filter button[aria-pressed=true] { background: var(--surface-raised); color: var(--surface-ink); box-shadow: inset 0 0 0 1px var(--surface-edge); }
.atlas-filter i { width: 6px; height: 6px; border: 1px solid currentColor; }
.key-collection { border-radius: 50%; background: #f3f0e7; }
.key-landscape { border-radius: 1px; background: #70847a; }
.settings-panel { right: 32px; top: 83px; width: 350px; padding: 0 24px 23px; max-height: calc(100dvh - 170px); overflow-y: auto; }
.mood-field { border: 0; padding: 0; margin: 18px 0; }
.mood-field legend { font: 30px/1.1 var(--serif); padding: 0; margin-bottom: 17px; letter-spacing: -.4px; }
.mood-options { display: flex; gap: 3px; border: 1px solid transparent; padding: 4px; border-radius: 12px; background: var(--surface-wash); }
.mood-options button { flex: 1; font-size: 10px; border-radius: 8px; padding: 11px 4px; color: var(--surface-muted); transition: background .18s, color .18s, box-shadow .18s; }
.mood-options button[aria-pressed=true] { background: var(--surface-raised); color: var(--surface-ink); box-shadow: inset 0 0 0 1px var(--surface-edge); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 12px; }
.setting-row select { border: 1px solid var(--surface-line); border-radius: 9px; padding: 7px 9px; background: var(--surface-raised); color: var(--ink); font-size: 11px; max-width: 140px; }
.setting-row button { min-height: 32px; font-size: 11px; padding: 6px 12px; background: var(--surface-raised); border: 1px solid #ffffff70; border-radius: 10px; transition: background .25s, border-color .25s; }
.setting-row button[aria-pressed=true] { background: var(--surface-selected); border-color: var(--surface-selected-line); }
.setting-row button:hover { background: var(--surface-header); border-color: var(--surface-selected-line); }
.settings-panel > .setting-row { padding: 11px 0; }
.sound-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) 30px; align-items: center; gap: 14px; font-size: 10px; }
.sound-controls input { width: 100%; margin: 0; min-height: 28px; accent-color: #6d8979; cursor: pointer; }
.sound-controls output { text-align: right; font: 9px var(--mono); font-variant-numeric: tabular-nums; }
.sound-place { margin: 5px 0 15px; padding: 8px 0; color: var(--surface-muted); font-size: 10px; line-height: 1.8; }
.settings-note { font-size: 10px; line-height: 1.9; color: var(--surface-muted); margin: 12px 0 0; }
.settings-help { padding-top: 14px; border-top: 1px solid var(--surface-line); color: var(--surface-muted); font-size: 11px; }
.settings-help summary { cursor: pointer; padding: 4px 0; }
.exhibit-panel { right: 32px; bottom: 92px; width: min(372px, 39vw); max-height: calc(100dvh - 180px); overflow-y: auto; padding: 0 20px 18px; }
.exhibit-panel[data-kind=toy] { width: min(480px, 44vw); }
.exhibit-panel.is-expanded { width: min(760px, 64vw); }
.exhibit-panel .panel-bar { position: sticky; top: 0; z-index: 5; background: var(--surface-header); min-height: 49px; margin: 0 -20px; padding: 0 12px 0 20px; border-radius: 18px 18px 0 0; border-bottom-color: transparent; }
.exhibit-panel { z-index: 20; opacity: 1; transform: translateY(0); transition: opacity .32s ease, transform .32s cubic-bezier(.2,.65,.3,1), border-color .6s ease; }
.exhibit-panel.is-responding { border-color: var(--surface-response); }
.exhibit-panel .panel-bar > span { font-size: 9px; letter-spacing: .02em; white-space: nowrap; }
.exhibit-navigation { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.exhibit-navigation > button { width: 29px; height: 29px; font-size: 17px; border-radius: 50%; }
.exhibit-navigation > button:hover { background: #273b3d0a; color: #273b3d; }
.exhibit-navigation > button[aria-pressed=true] { background: var(--surface-selected); color: var(--surface-ink); }
.exhibit-navigation #exhibit-expand svg { width: 14px; height: 14px; }
.exhibit-navigation .close-button { margin-left: 7px; font-size: 24px; }
.exhibit-navigation #exhibit-minimize { margin-left: 4px; }
.exhibit-navigation #exhibit-minimize svg { width: 15px; height: 15px; }
.exhibit-panel.is-minimized { z-index: 19; transform: translateY(4px); opacity: 0; pointer-events: none; animation: none; }
.exhibit-dock { position: absolute; z-index: 12; left: 50%; bottom: 91px; transform: translateX(-50%); display: flex; align-items: center; border: 1px solid var(--surface-edge); border-radius: 14px; background: var(--surface); color: var(--surface-ink); box-shadow: var(--surface-shadow); backdrop-filter: blur(12px); }
.exhibit-dock #exhibit-reopen { display: flex; align-items: center; gap: 15px; padding: 10px 15px; text-align: left; }
.exhibit-dock #exhibit-reopen > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.exhibit-dock small { font: 9px var(--ui); letter-spacing: .015em; color: var(--surface-muted); text-transform: lowercase; }
.exhibit-dock strong { font-size: 11px; font-weight: 400; }
.exhibit-dock #exhibit-dock-close { padding: 8px 14px; border-left: 1px solid var(--surface-line); font-size: 20px; color: var(--surface-muted); }
.exhibit-dock button:hover { color: #385c4c; }
.dock-indicator { width: 5px; height: 5px; border-radius: 50%; background: #8ba28b; box-shadow: 0 0 0 4px #8ba28b12; }
.exhibit-minimized:not(.scenic-mode) .journey-bar { display: none; }
.exhibit-minimized.scenic-mode .exhibit-dock { left: 32px; transform: none; }
.panel-open .exhibit-dock { visibility: hidden; }
#exhibit-content { padding-top: 18px; }
.exhibit-panel h2 { font: 400 46px/1 var(--serif); letter-spacing: -1.7px; margin: 0 0 10px; }
.exhibit-panel p { font-size: 12px; line-height: 1.8; }
.exhibit-panel a:hover { opacity: .75; }
.exhibit-panel ul { padding-left: 18px; font-size: 12px; line-height: 1.7; }
.exhibit-panel button, .exhibit-panel input, .exhibit-panel select { max-width: 100%; }
.journey-bar { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); z-index: 8; display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--surface); border: 1px solid var(--surface-edge); border-radius: 30px; color: var(--surface-ink); box-shadow: var(--surface-shadow); backdrop-filter: blur(12px); }
.journey-bar button { font-size: 10px; color: inherit; padding: 8px 13px; }
.journey-bar button:hover { color: #385c4c; background: #70877a0a; border-radius: 20px; }
.journey-bar .journey-arrow { font-size: 17px; width: 31px; padding: 0; }
.journey-caption { display: flex; flex-direction: column; gap: 3px; padding-right: 16px; border-right: 1px solid var(--surface-line); }
.journey-caption span:first-child { font: 7px var(--mono); letter-spacing: 1.5px; opacity: .55; }
.journey-caption span:last-child { font-size: 11px; white-space: nowrap; }
.journey-bar:not(.is-touring) .journey-arrow, .journey-bar:not(.is-touring) .journey-caption { display: none; }
.journey-bar.is-touring #journey-toggle { font-size: 9px; min-width: 73px; }
.exhibit-open .journey-bar, .panel-open .journey-bar { display: none; }
.landscape-note { position: absolute; left: 32px; bottom: 158px; width: 272px; z-index: 8; padding: 14px 17px 15px; color: var(--surface-ink); background: var(--surface); border: 1px solid var(--surface-edge); border-radius: 16px; box-shadow: var(--surface-shadow); backdrop-filter: blur(12px); animation: panel-in .38s ease both; }
.landscape-note-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.landscape-note-bar > span { font: 10px var(--ui); letter-spacing: .015em; color: var(--surface-muted); text-transform: lowercase; }
.landscape-note-bar > button { font-size: 21px; line-height: 1; width: 24px; height: 24px; margin: -5px -8px 0 0; opacity: .7; }
.landscape-note h2 { font: 400 27px/1.05 var(--serif); letter-spacing: -.4px; margin: 9px 0; }
.landscape-note p { font-size: 11px; line-height: 1.7; color: var(--surface-muted); margin: 0 0 13px; }
.landscape-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--surface-line); padding: 12px 0 0; min-height: 32px; width: 100%; text-align: left; font-size: 11px; }
.landscape-action > span:last-child { font-size: 17px; opacity: .65; }
.landscape-action kbd { margin-left: auto; font: 8px var(--mono); opacity: .4; }
.landscape-action:hover > span:last-child { color: #385c4c; opacity: 1; }
.landscape-note-bar > button:hover { color: #385c4c; }
.panel-open .landscape-note, .exhibit-open .landscape-note { display: none; }
.scene-hint { position: absolute; z-index: 7; bottom: 150px; left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 1.6; background: var(--surface); color: var(--surface-ink); border: 1px solid var(--surface-edge); border-radius: 13px; padding: 10px 16px; max-width: calc(100% - 40px); width: max-content; text-align: center; box-shadow: var(--surface-shadow); pointer-events: none; animation: hint-in .35s ease-out both; }
#notice { position: absolute; z-index: 35; top: 82px; left: 20px; transform: translateY(3px); background: var(--surface); color: var(--surface-ink); border: 1px solid var(--surface-edge); padding: 11px 18px; border-radius: 13px; font-size: 11px; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity .38s, transform .38s; width: max-content; max-width: min(420px, calc(100% - 40px)); text-align: center; box-shadow: var(--surface-shadow); }
#notice.visible { opacity: 1; transform: translateY(0); }
#notice.is-waiting { visibility: hidden; }
.notice-open .scene-hint, .landscape-note-open .scene-hint { display: none; }
#touch-controls { display: none; position: absolute; right: 19px; bottom: 97px; z-index: 5; gap: 6px; flex-direction: column; }
#touch-controls button { background: #17313ccf; border: 1px solid #f3eee445; color: #f3eee4; width: 38px; height: 38px; border-radius: 50%; font-size: 20px; touch-action: none; }
.panel-open #touch-controls, .exhibit-open #touch-controls { display: none; }
.loading { position: absolute; z-index: 50; inset: 0; background: #e2e4d9; color: #304b4c; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 25px; transition: opacity .6s; }
.loading-mark { font: italic 100px/.8 var(--serif); color: var(--orange); }
.loading > span { font: 8px var(--mono); letter-spacing: 2px; opacity: .6; }
.loading-track { width: 110px; height: 1px; background: #304b4c20; overflow: hidden; }
.loading-track i { display: block; width: 45%; height: 1px; background: var(--orange); animation: loading 1.4s infinite ease-in-out; }
.fallback { position: absolute; inset: 0; z-index: 60; padding: 10vh 8vw; background: radial-gradient(ellipse at 70% 60%, #8ca3ad, transparent 65%), linear-gradient(#b4bec5, #e8e1cd); color: #243e49; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.fallback h1 { font: 400 clamp(54px, 8vw, 110px)/.95 var(--serif); letter-spacing: -3px; margin: 30px 0; }
.fallback p { max-width: 370px; line-height: 1.8; font-size: 13px; }
.fallback > a { margin: 20px 0; }
.fallback > div { display: flex; gap: 24px; font-size: 12px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hint-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes loading { from { transform: translateX(-110%); } to { transform: translateX(330%); } }
@media (pointer: coarse) { #touch-controls { display: flex; } .travel-hint { display: none; } }
@media (max-width: 1050px) { .travel-hint { display: none; } .exhibit-panel { width: 42vw; } }
@media (max-width: 800px) {
  .world-header { left: 20px; right: 20px; top: max(21px, env(safe-area-inset-top)); gap: 15px; }
  .wordmark { font-size: 25px; }
  .index-button { height: 37px; gap: 17px; padding: 0 13px; font-size: 10px; }
  .header-actions { gap: 4px; }
  .world-intro { left: 20px; right: 20px; bottom: 172px; }
  .world-intro h1 { font-size: 56px; letter-spacing: -2px; margin: 0 0 16px; }
  .world-intro p { font-size: 11px; }
  .world-footer { left: 20px; right: 20px; bottom: max(18px, env(safe-area-inset-bottom)); padding-top: 12px; }
  .location { min-width: 0; gap: 9px; }
  .location span:not(.compass) { font-size: 7px; }
  .footer-actions { min-width: 0; }
  .index-panel, .settings-panel { right: 16px; top: 74px; width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 158px); }
  .exhibit-panel, .exhibit-panel[data-kind=toy], .exhibit-panel.is-expanded { left: 12px; right: 12px; top: auto; bottom: 79px; width: auto; max-height: 53dvh; padding: 0 16px 16px; border-radius: 16px; }
  .exhibit-panel.is-expanded { max-height: calc(100dvh - 166px); }
  .exhibit-panel .panel-bar { margin: 0 -16px; padding-left: 16px; }
  .exhibit-panel .panel-bar { min-height: 45px; }
  .exhibit-panel.is-minimized { transform: translateY(6px); }
  .exhibit-dock { bottom: 96px; left: 20px; transform: none; }
  .exhibit-minimized.scenic-mode .exhibit-dock { left: 20px; bottom: 151px; }
  #exhibit-content { padding-top: 14px; }
  .landmark-label { font-size: 9px; }
  .marker-number { width: 21px; height: 21px; font-size: 7px; }
  .journey-bar { bottom: 96px; max-width: calc(100% - 40px); gap: 3px; }
  .journey-bar.is-touring { left: 20px; transform: none; max-width: calc(100% - 87px); }
  .journey-caption { padding-right: 7px; }
  .journey-caption span:last-child { font-size: 9px; }
  .journey-bar.is-touring #journey-toggle { min-width: 48px; font-size: 8px; padding: 7px; }
  .journey-bar .journey-arrow { width: 22px; }
  .landscape-note { left: 20px; bottom: 158px; width: min(272px, calc(100% - 88px)); padding: 12px 14px 13px; }
  .landscape-note h2 { font-size: 22px; margin: 7px 0; }
  .exhibit-minimized.scenic-mode .landscape-note { bottom: 220px; }
  .landscape-note p { display: none; }
  .landscape-action { font-size: 9px; padding-top: 9px; }
  .landscape-action kbd { display: none; }
  #notice { font-size: 10px; line-height: 1.6; }
  #touch-controls { display: flex; }
}
@media (max-width: 400px) { .world-header { left: 18px; right: 18px; } }
@media (max-height: 600px) and (min-width: 801px) { .world-intro h1 { font-size: 60px; } .world-intro { bottom: 125px; } }
@media (max-height: 650px) { .landscape-note { bottom: 146px; } .landscape-note p { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
