:root {
  color-scheme: light;
  --ink: #132b36; --paper: #f6f5f0; --white: #fff; --muted: #64757d;
  --line: #dcddd4; --graphite: #102735; --light: #f6f5f0; --dim: #b8c9cf;
  --accent: #ad3e30; --accent-hover: #913429; --dark-line: #ffffff1f; --focus: #86c8ec;
  --font: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 3.3vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--font); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .42; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -90px; left: 20px; z-index: 99; background: var(--paper); color: var(--ink); padding: 12px 20px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* A quiet masthead keeps the exhibition itself in the first viewport. */
.site-header { min-height: 68px; padding: 8px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); color-scheme: light; }
.museum-brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-size: 18px; font-weight: 650; letter-spacing: .03em; flex-shrink: 0; }
.museum-brand img { width: 34px; height: 34px; }
.museum-brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: .06em; line-height: 1.6; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 24px; font-size: 14px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-header nav a span { margin-left: 10px; color: var(--accent); }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; padding: 8px 2px; background: transparent; font-size: 14px; line-height: 1.5; }
.site-header nav a:hover, .site-header .text-button:hover { color: var(--accent); }
.site-header :is(a, button):focus-visible { outline-color: var(--accent); }
.eyebrow { font-size: 12px; line-height: 1.6; letter-spacing: .13em; color: var(--dim); }
.exhibition-heading { display: flex; align-items: flex-end; justify-content: space-between; padding: 20px var(--gutter) 22px; gap: 24px; }
.exhibition-heading .eyebrow { margin: 0 0 6px; color: var(--muted); letter-spacing: .11em; }
.exhibition-title-line { display: flex; align-items: center; gap: 28px; }
.exhibition-heading h1 { margin: 0; font-size: clamp(28px, 2.6vw, 38px); font-weight: 650; line-height: 1.25; letter-spacing: .025em; }
.subtitle { margin: 0; padding-left: 25px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.85; letter-spacing: .035em; }
.exhibition-edition { padding-bottom: 3px; text-align: right; }
.exhibition-edition > span:first-child { color: var(--ink); font-size: 14px; }
.edition-line { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; font-size: 12px; line-height: 1.5; letter-spacing: .08em; color: var(--muted); }
.edition-line i { width: 35px; height: 1px; background: var(--accent); }

/* The scene and directory share one frame; controls stay distinct from it. */
.gallery-shell { display: block; margin: 0 var(--gutter); border: 1px solid var(--line); border-radius: 4px; overflow: clip; background: var(--paper); }
.scene-column { min-width: 0; display: flex; flex-direction: column; }
.scene-stage { position: relative; flex: 1 0 auto; height: clamp(440px, calc(100dvh - 280px), 820px); overflow: hidden; isolation: isolate; background: #213641; color: var(--light); color-scheme: dark; }
.scene-stage:after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(#07162130, transparent 18% 77%, #0716215c); }
#viewport { position: absolute; inset: 0; z-index: 0; touch-action: none; outline-offset: -5px !important; }
#viewport canvas { display: block; width: 100%; height: 100%; }
#viewport canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: -5px; }
.view-crosshair { position: absolute; left: 50%; top: 50%; z-index: 3; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: #ffffffbb; box-shadow: 0 0 0 2px #10273566; transform: translate(-50%, -50%); pointer-events: none; }
.mouse-look-prompt { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100% - 36px); padding: 10px; border: 1px solid #ffffff55; border-radius: 4px; background: var(--ink); color: #fff; }
.resume-look { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; max-width: 100%; padding: 12px 16px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #fff; }
.resume-look strong { font-size: 16px; font-weight: 550; }
.resume-look span { max-width: 340px; color: var(--dim); font-size: 12px; text-align: center; line-height: 1.7; }
.resume-look:hover { background: #234b60; border-color: #d7e7ee; }
.drag-look-button { min-height: 44px; padding: 9px 16px; border: 1px solid #d7e7ee66; border-radius: 4px; background: #234b60; color: #fff; font-size: 14px; }
.drag-look-button:hover { background: #326278; border-color: #d7e7ee; }
.mouse-locked .move-pad { visibility: hidden; }
.scene-label { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 225px); min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff30; border-radius: 4px; background: var(--ink); color: var(--light); font-size: 14px; pointer-events: none; }
.live-dot { width: 2px; height: 14px; border-radius: 0; background: #d77869; flex-shrink: 0; }
#view-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scene-type { padding-left: 10px; border-left: 1px solid #ffffff30; color: var(--dim); font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.scene-tools { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 2px; padding: 2px; border: 1px solid #ffffff22; border-radius: 4px; background: var(--ink); }
.scene-tools button { min-height: 44px; min-width: 60px; padding: 8px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--light); font-size: 13px; }
.scene-tools button:hover:not(:disabled) { background: #ffffff16; }
.scene-bottom { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; pointer-events: none; }
.minimap { width: 78px; padding: 10px 7px 7px; border: 1px solid #ffffff22; border-radius: 4px; background: var(--ink); text-align: center; }
.minimap svg { display: block; width: 50px; height: 76px; margin: auto; }
.minimap > span { color: #d7e1e5; font-size: 12px; }
.map-room { fill: #263e4a; stroke: #9db4bf; stroke-width: 1; }
.map-plinth { fill: #5d7783; }
.map-route { fill: none; stroke: #d59186; stroke-width: 1; stroke-dasharray: 3 3; }
.map-board { fill: #93aab4; }
.map-board.active { fill: #f09a8e; }
#map-camera { fill: var(--paper); }
.scene-hint { display: flex; gap: 12px; padding: 8px 12px; border: 1px solid #ffffff30; border-radius: 4px; color: #e3eaed; font-size: 12px; background: var(--ink); }
.scene-hint span + span { padding-left: 12px; border-left: 1px solid #ffffff30; }
.move-pad { display: grid; grid-template-columns: repeat(3, 46px); gap: 4px; pointer-events: auto; }
.move-pad button { height: 46px; padding: 0; border: 1px solid #cadce44d; border-radius: 4px; background: var(--ink); color: var(--light); font: 20px/1 system-ui; user-select: none; touch-action: none; }
.move-pad button:first-child { grid-column: 2; }
.move-pad button:nth-child(2) { grid-column: 1; }
.move-pad button:hover:not(:disabled) { background: #234b60; border-color: #d7e7ee; }
.move-pad button:active:not(:disabled), .move-pad button.pressed { background: var(--accent); border-color: #e79086; }
.scene-stage[data-state="error"] .scene-bottom { display: none; }
.scene-stage[data-state="loading"] .scene-bottom { opacity: .35; }
.scene-message { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; background: radial-gradient(ellipse at 50% 44%, #234657f5, #102735 70%); color: var(--light); text-align: center; }
.scene-message strong { font-size: 24px; font-weight: 600; line-height: 1.5; }
.scene-message p { max-width: 440px; margin: 12px 0; font-size: 16px; color: #b8cbd4; }
.loader { width: 32px; height: 32px; margin-bottom: 24px; border: 2px solid #d0dfe52e; border-top-color: #e77b6e; border-radius: 50%; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fallback-icon { margin-bottom: 12px; color: #e77b6e; font-size: 38px; }
.button-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid #d5e2e44d; border-radius: 4px; background: transparent; color: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.button:hover:not(:disabled) { background: #ffffff12; border-color: #d5e2e4; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.square { width: 44px; padding: 8px; flex-shrink: 0; }
.tour-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; padding: 14px 20px; border-top: 1px solid var(--dark-line); background: var(--ink); color: var(--light); color-scheme: dark; }
.tour-bar > div:first-child { min-width: 0; }
.tour-bar .eyebrow { color: var(--dim); font-size: 12px; letter-spacing: .08em; }
.tour-bar strong { display: block; margin-top: 5px; color: var(--light); font-size: 16px; font-weight: 550; line-height: 1.6; }
.tour-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tour-buttons .text-button { padding-inline: 8px; color: var(--dim); }
.tour-buttons .text-button:hover { color: #fff; }
.exhibition-sidebar { display: block; min-width: 0; padding: 24px; border-top: 1px solid var(--line); background: var(--paper); color: var(--ink); color-scheme: light; }
.directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.directory-heading .eyebrow { color: var(--muted); }
.directory-heading h2 { margin: 5px 0 0; font-size: 21px; font-weight: 600; line-height: 1.4; }
.directory-heading #read-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reading-progress { height: 3px; margin-top: 16px; overflow: hidden; border-radius: 3px; background: var(--line); }
#read-progress { display: block; width: 0; height: 100%; background: var(--accent); transition: width .3s ease; }
.directory-tip { margin: 10px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
#exhibition-list { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; padding-bottom: 14px; scroll-snap-type: x proximity; }
.board-stop { position: relative; display: flex; flex-direction: column; flex: 0 0 224px; scroll-snap-align: start; min-height: 0; padding: 0; overflow: hidden; border: 1px solid transparent; border-bottom: 2px solid var(--line); border-radius: 4px; background: transparent; text-align: left; transition: background .18s ease, border-color .18s ease; }
.board-stop strong { display: block; color: var(--ink); margin-top: 5px; font-size: 14px; font-weight: 550; line-height: 1.65; }
.board-stop .visit-dot { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border: 1px solid #fff; border-radius: 50%; background: #102735; box-shadow: 0 0 0 3px #102735; }
.board-stop.visited .visit-dot { background: var(--accent); border-color: var(--accent); }
.board-stop:hover { background: #ecece4; border-bottom-color: #b2b9b7; }
.board-stop:focus-visible { outline-color: var(--accent); outline-offset: -3px; }

.board-stop[aria-current="true"] strong { color: var(--ink); font-weight: 650; }
.selected-summary { display: flex; align-items: center; gap: 20px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.selected-summary .eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .025em; }
.selected-summary p { flex: 1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.selected-summary .button { width: auto; flex-shrink: 0; border-color: var(--ink); color: var(--ink); }
.selected-summary .button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }

.exhibition-followup { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 28px var(--gutter); border-top: 1px solid var(--line); background: var(--paper); color: var(--ink); color-scheme: light; }
.exhibition-followup-copy { min-width: 0; }
.exhibition-followup h2 { margin: 0 0 6px; font-size: 24px; font-weight: 600; line-height: 1.5; }
.exhibition-followup p { margin: 0; color: var(--muted); font-size: 16px; }
.exhibition-followup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.followup-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 550; line-height: 1.5; transition: border-color .18s ease, background .18s ease; }
.followup-action span { color: var(--accent); }
.followup-action:hover { border-color: var(--accent); color: var(--accent); }
.followup-action:focus-visible { outline-color: var(--accent); }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px var(--gutter); border-top: 1px solid var(--line); }
.page-footer strong { display: block; color: var(--ink); font-size: 14px; font-weight: 550; }
.page-footer span { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.page-footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.page-footer .text-button { color: var(--ink); }
.page-footer .text-button:hover { color: var(--accent); }

.board-stop > img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 1px solid var(--line); flex-shrink: 0; }
.stop-copy { display: block; flex: 1; padding: 11px 12px 14px; }
.stop-index { color: var(--muted); font-size: 12px; }
.board-stop[aria-current="true"] { border-color: var(--accent); background: #efe9e1; }
.board-stop[aria-current="true"] .stop-index { color: var(--accent); }
.selected-summary > .eyebrow { max-width: 200px; flex-shrink: 0; }
.reader-title > .eyebrow { display: block; color: var(--accent); margin-bottom: 10px; }
.reader-discussion { margin-top: 26px; padding: 24px; border-radius: 4px; border: 1px solid var(--line); background: #eeefe8; }
.reader-discussion .eyebrow { color: var(--accent); }
.reader-discussion h3 { margin: 5px 0 16px; font-size: 18px; line-height: 1.7; }
.reader-choice-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.reader-choice-buttons button { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 48px; padding: 11px 17px; border: 1px solid #b6c8ca; border-radius: 4px; background: #fff; color: var(--ink); font-size: 14px; text-align: left; }
.reader-choice-buttons button:hover, .reader-choice-buttons button[aria-pressed="true"] { border-color: var(--accent); background: #f3e8e3; }
.reader-choice-buttons button span { color: var(--accent); }
#reader-feedback { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #c2d3ce; color: var(--ink); font-size: 15px; }
/* Reading is a paper surface, with readable text and persistent navigation. */
dialog { width: min(1100px, calc(100% - 48px)); max-height: 92dvh; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); color-scheme: light; box-shadow: 0 32px 100px #06131b70; }
dialog::backdrop { background: #081b26bf; }
body:has(dialog[open]) { overflow: hidden; }
dialog :is(a, button, summary):focus-visible { outline-color: var(--accent); }
.dialog-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dialog-toolbar .eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.icon-button { width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 28px/1 system-ui; }
.icon-button:hover { color: var(--accent); background: #ad3e300c; }
#reader-content { padding: 32px 40px; }
.reader-title h2 { margin: 0 0 12px; font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; line-height: 1.4; letter-spacing: .015em; }
.reader-title > p { max-width: 850px; margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.reader-image-link { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.reader-image { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: #e8edef; }
.reader-image-caption { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.reader-details { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; margin-top: 32px; }
.reader-points { margin: 0; padding: 0; list-style: none; }
.reader-points li + li { margin-top: 24px; }
.reader-points strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; font-weight: 600; }
.reader-points p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.reader-note { margin: 0 0 20px; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0; background: #eef2f2; color: #526872; font-size: 14px; line-height: 1.9; }
.reader-links { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--accent); font-size: 14px; }
.reader-links a { display: inline-flex; align-items: center; min-height: 44px; }
.reader-sources { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); }
.reader-sources summary { min-height: 44px; padding-block: 8px; cursor: pointer; color: var(--ink); font-size: 14px; }
.source-item { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.source-item a { display: inline-block; padding-block: 5px; color: var(--accent); font-size: 14px; }
.source-item p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.reader-navigation { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 28px; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 14px; }
dialog .button { border-color: #bdcbd1; color: var(--ink); }
dialog .button:hover:not(:disabled) { border-color: var(--ink); background: #eaf0f2; }
dialog .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
dialog .button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.small-dialog { width: min(650px, calc(100% - 40px)); }
.help-body { padding: 30px 38px 36px; }
.help-body h2 { margin: 0 0 24px; font-size: 28px; font-weight: 600; line-height: 1.5; }
.help-body p { color: var(--muted); font-size: 16px; line-height: 1.9; }
.help-body a:not(.button) { color: var(--accent); overflow-wrap: anywhere; }
.help-body ol { margin: 0 0 28px; padding-left: 23px; }
.help-body li { margin-bottom: 20px; padding-left: 8px; font-size: 16px; }
.help-body li::marker { color: var(--accent); font-weight: 600; }
.help-body li strong { color: var(--ink); font-weight: 600; }
.help-body li p { margin: 6px 0; }
.help-body kbd { display: inline-block; min-width: 23px; padding: 0 5px; border: 1px solid #b8c1bf; border-radius: 3px; background: #fff; color: var(--ink); font: 12px/1.9 system-ui, sans-serif; text-align: center; vertical-align: 1px; }
.no-script { padding: 20px; background: var(--paper); color: var(--ink); text-align: center; }

@media (min-width: 1650px) { .exhibition-sidebar { padding: 28px; } }
@media (max-width: 1200px) {

  .scene-type, .scene-hint { display: none; }
  .tour-bar { flex-wrap: wrap; }
  .tour-buttons { justify-content: flex-start; }
  .exhibition-sidebar { padding: 24px 20px; }
  .exhibition-title-line { gap: 20px; }
  .subtitle { padding-left: 20px; }
  .exhibition-edition { display: none; }
}
@media (max-width: 960px) {
  .gallery-shell { display: block; }
  .scene-stage { height: 60dvh; min-height: 430px; max-height: 760px; }
  .tour-bar { flex-wrap: nowrap; }
  .tour-buttons { justify-content: flex-end; }
  .exhibition-sidebar { border-left: 0; border-top: 1px solid var(--line); padding: 24px; }
  .directory-heading > div { display: flex; align-items: center; gap: 20px; }
  .directory-heading h2 { margin: 0; }

  .selected-summary { flex-wrap: wrap; gap: 12px; }

  .selected-summary > span { width: 100%; }
  .exhibition-followup { flex-wrap: wrap; }
  .page-footer { flex-wrap: wrap; }
  .page-footer .text-button { margin-left: auto; }
}
@media (max-width: 680px) {
  .site-header { padding-block: 12px; align-items: flex-start; }
  .site-header nav { gap: 0 14px; }
  .museum-brand { font-size: 16px; gap: 9px; }
  .museum-brand img { width: 30px; height: 30px; }
  .museum-brand small { font-size: 12px; letter-spacing: 0; }
  .exhibition-heading { padding-block: 18px; }
  .exhibition-title-line { display: block; }
  .exhibition-heading h1 { font-size: clamp(29px, 6vw, 38px); }
  .subtitle { margin-top: 12px; padding-left: 0; border: 0; }
  .subtitle br { display: none; }
  .gallery-shell { margin-inline: 12px; border-radius: 4px; }
  .scene-stage { height: 54dvh; min-height: 360px; max-height: 610px; }
  .scene-label { top: 12px; left: 12px; max-width: calc(100% - 169px); padding-inline: 10px; font-size: 13px; gap: 7px; }
  .scene-tools { top: 12px; right: 12px; padding: 2px; gap: 2px; }
  .scene-tools button { padding-inline: 9px; min-width: 55px; font-size: 13px; }
  .scene-bottom { left: 12px; right: 12px; bottom: 12px; }
  .minimap { padding: 8px 6px 6px; width: 74px; }
  .minimap svg { height: 66px; width: 44px; }
  .move-pad { grid-template-columns: repeat(3, 46px); }
  .tour-bar { display: block; padding: 18px; }
  .tour-buttons { margin-top: 14px; justify-content: flex-start; }
  .tour-buttons .button { padding-inline: 13px; }
  .tour-buttons .text-button { padding-inline: 4px; }
  .exhibition-sidebar { padding: 22px 18px; }
  .directory-heading > div { gap: 12px; }
  .directory-heading h2 { font-size: 22px; }
  .directory-heading .eyebrow { letter-spacing: .04em; }
  #exhibition-list { gap: 12px; }
  .board-stop { flex-basis: 190px; }
  .selected-summary { display: block; }
  .selected-summary .button { width: 100%; margin-top: 16px; }
  .exhibition-followup { display: block; margin-top: 28px; padding-block: 28px; }
  .exhibition-followup h2 { font-size: 22px; }
  .exhibition-followup-actions { margin-top: 18px; gap: 10px; }
  .followup-action { flex: 1 1 100%; }
  .page-footer { gap: 16px; padding-block: 25px; }
  .page-footer p { width: 100%; order: 3; }
  .scene-message { padding: 24px; }
  .scene-message strong { font-size: 22px; }
  dialog { width: calc(100% - 16px); max-height: 94dvh; border-radius: 4px; }
  .dialog-toolbar { padding: 10px 16px; gap: 12px; }
  .dialog-toolbar .eyebrow { font-size: 12px; letter-spacing: .035em; }
  #reader-content { padding: 24px 20px; }
  .reader-title h2 { font-size: 27px; }
  .reader-details { grid-template-columns: 1fr; gap: 26px; }
  .reader-navigation { padding: 12px; gap: 7px; }
  .reader-navigation .button { padding-inline: 12px; }
  .small-dialog { width: calc(100% - 20px); }
  .help-body { padding: 24px; }
  .help-body h2 { font-size: 25px; }
}
@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .site-header { flex-wrap: wrap; gap: 3px 16px; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .gallery-shell { margin-inline: 8px; }
  .scene-label { max-width: calc(100% - 166px); }
  .tour-bar, .exhibition-sidebar { padding-inline: 15px; }
  .tour-buttons { gap: 7px; }
  .tour-buttons .button { padding-inline: 11px; }
  .directory-heading > div { display: block; }
  .directory-heading h2 { margin-top: 4px; }
  #exhibition-list { column-gap: 6px; }

  .scene-message .button-row { width: 100%; }
  .scene-message .button-row .button { width: 100%; }
  .reader-navigation .button { padding-inline: 10px; font-size: 13px; }
}
.scene-stage:fullscreen, .scene-stage.is-expanded { width: 100%; height: 100dvh; max-height: none; min-height: 0; }
.scene-stage.is-expanded { position: fixed; inset: 0; z-index: 40; width: 100vw; }
.scene-expanded { overflow: hidden; }
.scene-expanded .scene-hint { display: flex; }
@media (max-width: 680px) { .scene-expanded .scene-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .board-stop[aria-current="true"] { border-color: Highlight; }
  .visit-dot { forced-color-adjust: none; }
  .button, .scene-tools, .scene-label, .minimap, .move-pad button { border: 1px solid ButtonText; }
}

@media(max-width:680px){.reader-discussion{padding:18px}.reader-choice-buttons button{width:100%}.stop-copy{padding:12px}.selected-summary>.eyebrow{max-width:none}}
