:root {
  color-scheme: dark;
  --museum-bg: #060810;
  --museum-panel: #0b101a;
  --museum-panel-soft: #101724;
  --museum-line: rgba(226, 210, 168, 0.18);
  --museum-line-strong: rgba(226, 210, 168, 0.36);
  --museum-text: #f5f0e4;
  --museum-muted: #aaa89f;
  --museum-gold: #dec27d;
  --museum-gold-soft: #f0d99d;
  --museum-danger: #f4a790;
  --active-accent: #b78cff;
  --active-accent-rgb: 183, 140, 255;
  --header-height: 76px;
  --content-max: 1500px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--museum-bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--museum-text);
  background:
    radial-gradient(circle at 12% 24%, rgba(87, 121, 177, 0.09), transparent 28rem),
    radial-gradient(circle at 85% 62%, rgba(var(--active-accent-rgb), 0.08), transparent 30rem),
    var(--museum-bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.4px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.4px),
    radial-gradient(circle at 38% 82%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.4px);
  background-position: 0 0, 47px 67px, 91px 23px, 137px 109px;
  background-size: 173px 173px, 211px 211px, 257px 257px, 293px 293px;
  opacity: 0.35;
  pointer-events: none;
  content: "";
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  color: #10131a;
  border-radius: 999px;
  background: var(--museum-gold-soft);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #a7f2f1;
  outline-offset: 4px;
}

.museum-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 10px clamp(18px, 3vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.94), rgba(4, 6, 12, 0.72));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(1.15);
}

.museum-brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 12px;
  color: var(--museum-text);
  text-decoration: none;
}

.museum-brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--museum-gold-soft);
  border: 1px solid rgba(222, 194, 125, 0.44);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(222, 194, 125, 0.22), transparent 58%);
  font-family: Georgia, serif;
  font-size: 23px;
  box-shadow: inset 0 0 0 5px rgba(222, 194, 125, 0.04);
}

.museum-brand strong,
.museum-brand small {
  display: block;
}

.museum-brand strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.museum-brand small {
  margin-top: 4px;
  color: var(--museum-muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.museum-nav,
.museum-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
}

.museum-nav a,
.museum-footer nav a {
  position: relative;
  color: #cac7be;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 180ms ease;
}

.museum-nav a::after,
.museum-footer nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--museum-gold);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.museum-nav a:hover,
.museum-footer nav a:hover {
  color: #fff;
}

.museum-nav a:hover::after,
.museum-footer nav a:hover::after {
  transform: scaleX(1);
}

.museum-nav .museum-nav-atlas {
  color: #9fe0e2;
  font-weight: 620;
}

.museum-nav .museum-nav-atlas::after {
  background: #73d8df;
}

.museum-nav .museum-nav-primary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #11151c;
  border: 1px solid var(--museum-gold-soft);
  border-radius: 999px;
  background: var(--museum-gold);
  font-weight: 720;
}

.museum-nav .museum-nav-primary::after {
  display: none;
}

.museum-nav .museum-nav-primary:hover {
  color: #080b10;
  background: var(--museum-gold-soft);
}

.mobile-navigation-toggle,
.mobile-navigation {
  display: none;
}

.museum-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  align-items: end;
  isolation: isolate;
}

.hero-mosaic {
  position: absolute;
  inset: 0;
  z-index: -5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #060810;
}

.hero-panel {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0d14;
  cursor: pointer;
}

.hero-panel:last-child {
  border-right: 0;
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(2, 4, 9, 0.08) 20%, rgba(2, 4, 9, 0.86) 100%),
    linear-gradient(90deg, rgba(2, 4, 9, 0.22), transparent 50%, rgba(2, 4, 9, 0.26));
  content: "";
  transition: background 400ms ease;
}

.hero-panel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.66);
  transform: scale(1.04);
  transition: filter 600ms ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-panel:hover .hero-panel-image,
.hero-panel:focus-visible .hero-panel-image {
  filter: saturate(1) brightness(0.82);
  transform: scale(1.095);
}

.hero-panel:hover::before,
.hero-panel:focus-visible::before {
  background:
    linear-gradient(180deg, rgba(2, 4, 9, 0.02) 10%, rgba(2, 4, 9, 0.76) 100%),
    linear-gradient(90deg, rgba(2, 4, 9, 0.12), transparent 50%, rgba(2, 4, 9, 0.16));
}

.hero-panel-copy {
  position: absolute;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(26px, 4vw, 62px);
  left: clamp(14px, 2vw, 28px);
  z-index: 3;
  display: grid;
  gap: 6px;
  text-align: left;
  opacity: 0.72;
  transition: opacity 250ms ease, transform 250ms ease;
}

.hero-panel:hover .hero-panel-copy,
.hero-panel:focus-visible .hero-panel-copy {
  opacity: 1;
  transform: translateY(-8px);
}

.hero-panel-copy small {
  color: var(--district-accent);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.hero-panel-copy strong {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(15px, 1.5vw, 24px);
  font-weight: 500;
}

.hero-panel-copy em {
  overflow: hidden;
  color: #c7c5bf;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, 0.94) 0%, rgba(3, 5, 10, 0.77) 32%, rgba(3, 5, 10, 0.18) 63%, rgba(3, 5, 10, 0.4) 100%),
    linear-gradient(180deg, rgba(3, 5, 10, 0.52) 0%, transparent 28%, rgba(3, 5, 10, 0.36) 74%, rgba(3, 5, 10, 0.92) 100%);
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(222, 194, 125, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--museum-gold-soft);
  box-shadow: 0 0 18px var(--museum-gold);
  content: "";
}

.hero-orbit-one {
  top: 13%;
  left: 8%;
  width: min(62vw, 900px);
  aspect-ratio: 1;
  transform: rotate(-22deg);
  animation: orbit-drift 26s linear infinite;
}

.hero-orbit-one::after {
  top: 20%;
  right: 7%;
}

.hero-orbit-two {
  top: 37%;
  left: 29%;
  width: min(38vw, 600px);
  aspect-ratio: 1;
  border-color: rgba(131, 216, 224, 0.14);
  transform: rotate(38deg);
  animation: orbit-drift-reverse 34s linear infinite;
}

.hero-orbit-two::after {
  bottom: 11%;
  left: 16%;
  background: #9be6ec;
  box-shadow: 0 0 18px #7bcbd3;
}

@keyframes orbit-drift {
  to { transform: rotate(338deg); }
}

@keyframes orbit-drift-reverse {
  to { transform: rotate(-322deg); }
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(760px, calc(100% - 40px));
  margin: 0 0 clamp(66px, 10vh, 112px) clamp(20px, 7vw, 118px);
}

.hero-eyebrow,
.section-index {
  margin: 0 0 15px;
  color: var(--museum-gold);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(52px, 8.7vw, 126px);
  font-weight: 420;
  letter-spacing: -0.07em;
  line-height: 0.86;
  text-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.hero-lead {
  max-width: 670px;
  margin: 30px 0 0;
  color: #d7d3ca;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(15px, 1.3vw, 19px);
  letter-spacing: 0.04em;
  line-height: 1.95;
}

.hero-actions,
.stage-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  color: #10141b;
  border-color: var(--museum-gold-soft);
  background: var(--museum-gold);
  box-shadow: 0 12px 38px rgba(222, 194, 125, 0.16);
}

.button-gold:hover {
  background: var(--museum-gold-soft);
}

.button-ghost {
  color: #e8e3d8;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 11, 18, 0.34);
  backdrop-filter: blur(12px);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: flex;
  margin: 40px 0 0;
  gap: clamp(25px, 4vw, 60px);
}

.hero-stats div {
  display: grid;
  gap: 6px;
}

.hero-stats dt,
.wing-stats dt {
  color: var(--museum-muted);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero-stats dd,
.wing-stats dd {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.4vw, 38px);
}

.museum-coverage-summary {
  margin: 18px 0 0;
  color: rgba(230, 238, 238, 0.68);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-scroll-cue {
  position: absolute;
  right: clamp(22px, 4vw, 66px);
  bottom: 34px;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #bcb9b1;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.hero-scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.hero-scroll-cue i::after {
  position: absolute;
  top: -50%;
  left: 0;
  width: 1px;
  height: 50%;
  background: var(--museum-gold-soft);
  content: "";
  animation: scroll-cue 2s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(0); }
  100% { transform: translateY(300%); }
}

.museum-state {
  width: min(760px, calc(100% - 36px));
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  margin: 80px auto;
  padding: 34px;
  color: var(--museum-muted);
  border: 1px solid var(--museum-line);
  border-radius: 24px;
  background: rgba(12, 17, 27, 0.74);
  text-align: center;
}

.museum-state strong {
  color: var(--museum-text);
  font-size: 20px;
}

.museum-state p {
  margin: 0;
}

.museum-state-error {
  border-color: rgba(244, 167, 144, 0.35);
}

.museum-loader {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(222, 194, 125, 0.2);
  border-top-color: var(--museum-gold);
  border-radius: 50%;
  animation: museum-spin 800ms linear infinite;
}

@keyframes museum-spin {
  to { transform: rotate(360deg); }
}

.museum-section {
  position: relative;
  width: min(var(--content-max), calc(100% - clamp(32px, 8vw, 120px)));
  margin: 0 auto;
  padding: clamp(86px, 10vw, 150px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 520px);
  align-items: end;
  gap: 60px;
  margin-bottom: clamp(38px, 5vw, 70px);
}

.section-heading-wide {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 600px);
}

.section-heading h2,
.wing-heading h2,
.quality-chamber h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 420;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-heading > p,
.quality-chamber p,
.wing-description {
  margin: 0;
  color: #aaa9a3;
  font-size: 14px;
  line-height: 1.9;
}

.route-section {
  padding-bottom: clamp(70px, 8vw, 120px);
}

.route-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--museum-line);
  border-bottom: 1px solid var(--museum-line);
}

.route-tab {
  position: relative;
  display: grid;
  min-height: 140px;
  align-content: center;
  gap: 8px;
  padding: 25px;
  border: 0;
  border-right: 1px solid var(--museum-line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 220ms ease;
}

.route-tab:last-child {
  border-right: 0;
}

.route-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--district-accent);
  content: "";
  transform: scaleX(0);
  transition: transform 220ms ease;
}

.route-tab:hover,
.route-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.035);
}

.route-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.route-tab-index {
  color: var(--district-accent);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.route-tab strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(17px, 1.55vw, 23px);
  font-weight: 500;
}

.route-tab small {
  color: var(--museum-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.civilization-constellation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.civilization-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--museum-line);
  border-radius: 22px;
  background: var(--museum-panel);
}

.civilization-card.active {
  border-color: color-mix(in srgb, var(--civ-accent) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--civ-accent) 24%, transparent), 0 24px 60px rgba(0, 0, 0, 0.28);
}

.civilization-card-open {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 30vw, 430px);
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #080b12;
  cursor: pointer;
  text-align: left;
}

.civilization-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.76);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}

.civilization-card-open:hover .civilization-card-image,
.civilization-card-open:focus-visible .civilization-card-image {
  filter: saturate(1) brightness(0.88);
  transform: scale(1.06);
}

.civilization-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 28%, rgba(4, 6, 11, 0.12) 48%, rgba(4, 6, 11, 0.95) 100%),
    linear-gradient(90deg, rgba(4, 6, 11, 0.25), transparent 70%);
}

.civilization-card-copy {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 6px;
}

.civilization-card-copy small {
  overflow: hidden;
  color: var(--civ-accent);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.civilization-card-copy strong {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 430;
}

.civilization-card-copy em,
.civilization-card-copy i {
  color: #c9c7c0;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.civilization-card-copy i {
  width: fit-content;
  margin-top: 4px;
  padding: 5px 8px;
  color: #f2c2ae;
  border: 1px solid rgba(239, 149, 116, 0.32);
  border-radius: 999px;
  background: rgba(94, 35, 24, 0.4);
}

.civilization-card-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(5, 7, 12, 0.38);
  backdrop-filter: blur(10px);
}

.civilization-wing {
  width: 100%;
  padding: clamp(88px, 10vw, 152px) max(clamp(20px, 5vw, 80px), calc((100vw - var(--content-max)) / 2));
  overflow: hidden;
  border-top: 1px solid var(--museum-line);
  border-bottom: 1px solid var(--museum-line);
  background:
    radial-gradient(circle at 88% 20%, rgba(var(--active-accent-rgb), 0.19), transparent 31rem),
    linear-gradient(180deg, rgba(13, 18, 29, 0.82), rgba(7, 10, 16, 0.96));
}

.wing-atmosphere {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(var(--active-accent-rgb), 0.1) 50%, transparent 50.15%),
    linear-gradient(0deg, transparent 49.85%, rgba(var(--active-accent-rgb), 0.08) 50%, transparent 50.15%);
  background-size: 90px 90px;
  mask-image: linear-gradient(180deg, transparent, black 15%, black 78%, transparent);
  pointer-events: none;
}

.wing-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 50px;
  max-width: var(--content-max);
  margin: 0 auto clamp(46px, 6vw, 84px);
}

.wing-english {
  margin: 0 0 12px;
  color: var(--active-accent);
  font-family: Georgia, serif;
  font-size: clamp(13px, 1.2vw, 18px);
  letter-spacing: 0.12em;
}

.wing-description {
  max-width: 760px;
  margin-top: 22px;
  font-size: 15px;
}

.wing-branch-note {
  max-width: 760px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(126, 214, 211, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(111, 225, 198, 0.1), rgba(8, 16, 24, 0.55)),
    rgba(6, 12, 18, 0.72);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.wing-branch-note p {
  margin: 0;
  color: #d7ebe6;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.wing-branch-note .button {
  margin-top: 12px;
}

.wing-stats {
  display: flex;
  gap: clamp(22px, 3vw, 46px);
  margin: 0;
}

.wing-stats div {
  min-width: 80px;
}

.wing-stats dd {
  margin-top: 7px;
  color: var(--active-accent);
}

.immersive-stage {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: var(--content-max);
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.65fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  margin: 0 auto;
}

.stage-figure {
  min-width: 0;
  margin: 0;
}

.stage-image-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #030509;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5), 0 0 70px rgba(var(--active-accent-rgb), 0.1);
}

.stage-image-shell::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.stage-image-shell > img,
.stage-image-shell > video.stage-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #030509;
  display: block;
}

.stage-image-shell > video.stage-video {
  object-fit: cover;
  background: #030509;
}

.stage-image-shell > video.stage-video[hidden],
.stage-image-shell > img[hidden] {
  display: none;
}

.stage-quality.hall-cinematic {
  color: #e8f0ff;
  border-color: rgba(170, 200, 255, 0.55);
  background: rgba(18, 28, 52, 0.88);
}

.stage-thumb-cinematic .stage-thumb-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 1;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.82);
  border: 1px solid rgba(214, 190, 120, 0.55);
  color: #f0d58f;
  font-size: 9px;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-align: center;
}

.stage-quality,
.stage-counter {
  position: absolute;
  z-index: 2;
  top: 16px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(4, 6, 10, 0.72);
  font-size: 9px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(12px);
}

.stage-quality {
  left: 16px;
}

.stage-quality.low-free {
  color: #ffd0ba;
  border-color: rgba(239, 149, 116, 0.4);
  background: rgba(73, 29, 21, 0.8);
}

.stage-quality.high-quality {
  color: #f0d58f;
  border-color: rgba(226, 190, 102, 0.58);
  background: rgba(18, 16, 12, 0.84);
}

.stage-counter {
  right: 16px;
  color: #d9d7d1;
}

.stage-image-failure {
  min-height: 480px;
  display: grid;
  place-items: center;
  color: var(--museum-muted);
}

.stage-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(58px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.stage-thumb {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #05070b;
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.stage-thumb:hover,
.stage-thumb.active {
  border-color: var(--active-accent);
  opacity: 1;
  transform: translateY(-3px);
}

.stage-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stage-dossier {
  min-width: 0;
}

.stage-dossier-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
  color: var(--active-accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.stage-english-title {
  margin: 26px 0 8px;
  color: var(--museum-muted);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.stage-dossier h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 3.2vw, 50px);
  font-weight: 480;
  line-height: 1.2;
}

.stage-civilizations {
  margin: 13px 0 0;
  color: var(--active-accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.stage-metadata {
  display: grid;
  gap: 18px;
  margin: 32px 0;
}

.stage-metadata div {
  display: grid;
  gap: 7px;
}

.stage-metadata dt,
.dialog-metadata dt {
  color: var(--museum-muted);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.stage-metadata dd,
.dialog-metadata dd {
  margin: 0;
  color: #d9d6ce;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  line-height: 1.75;
}

.round-control {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.round-control:hover {
  border-color: var(--active-accent);
  background: rgba(var(--active-accent-rgb), 0.1);
}

.text-link {
  display: inline-block;
  margin-top: 25px;
  color: #cfcdc7;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-underline-offset: 5px;
}

.chronicle-section {
  padding-bottom: clamp(95px, 10vw, 150px);
}

.epoch-rail {
  display: grid;
  grid-template-columns: repeat(9, minmax(116px, 1fr));
  overflow-x: auto;
  border-top: 1px solid var(--museum-line);
  border-bottom: 1px solid var(--museum-line);
  scrollbar-width: thin;
  scrollbar-color: var(--active-accent) transparent;
}

.epoch-button {
  position: relative;
  display: grid;
  min-height: 118px;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--museum-line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease;
}

.epoch-button:last-child {
  border-right: 0;
}

.epoch-button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--active-accent);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.epoch-button:hover,
.epoch-button.active {
  background: rgba(var(--active-accent-rgb), 0.07);
}

.epoch-button.active::after {
  transform: scaleX(1);
}

.epoch-button-index {
  color: var(--active-accent);
  font-family: Georgia, serif;
  font-size: 10px;
}

.epoch-button strong {
  font-size: 12px;
  font-weight: 600;
}

.epoch-button small {
  color: var(--museum-muted);
  font-size: 9px;
}

.topic-browser {
  margin-top: 16px;
  border: 1px solid var(--museum-line);
  background: rgba(255, 255, 255, 0.018);
}

.topic-browser summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
}

.topic-browser summary::-webkit-details-marker {
  display: none;
}

.topic-browser summary span {
  color: var(--museum-muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.topic-browser summary strong {
  color: var(--active-accent);
  font-size: 11px;
  font-weight: 560;
}

.topic-rail {
  display: grid;
  grid-auto-columns: minmax(120px, 1fr);
  grid-auto-flow: column;
  overflow-x: auto;
  border-top: 1px solid var(--museum-line);
}

.topic-button {
  display: grid;
  min-height: 64px;
  align-content: center;
  gap: 5px;
  padding: 10px 14px;
  border: 0;
  border-right: 1px solid var(--museum-line);
  background: transparent;
  color: var(--museum-muted);
  cursor: pointer;
  text-align: left;
}

.topic-button:hover,
.topic-button.active {
  background: rgba(var(--active-accent-rgb), 0.08);
  color: #f0eadf;
}

.topic-button strong {
  font-size: 11px;
  font-weight: 560;
}

.topic-button small {
  color: var(--museum-muted);
  font-size: 8px;
}

.archive-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(34px, 5vw, 68px);
}

.museum-archive-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--museum-line);
  border-radius: 18px;
  background: rgba(12, 17, 27, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.museum-archive-open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.museum-archive-image-shell {
  position: relative;
  display: block;
  overflow: hidden;
  background: #030509;
}

.museum-archive-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter 300ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.museum-archive-open:hover .museum-archive-image,
.museum-archive-open:focus-visible .museum-archive-image {
  filter: saturate(1.08) brightness(1.06);
  transform: scale(1.045);
}

.museum-archive-image-error {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--museum-muted);
  background: #0b0e15;
  font-size: 11px;
}

.museum-archive-card.image-error .museum-archive-image {
  visibility: hidden;
}

.museum-archive-card.image-error .museum-archive-image-error {
  display: grid;
}

.quality-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  color: #d9d6ce;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(4, 6, 10, 0.72);
  font-size: 8px;
  letter-spacing: 0.07em;
  backdrop-filter: blur(10px);
}

.museum-archive-image-shell > .quality-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.quality-badge.low-free {
  color: #ffd0ba;
  border-color: rgba(239, 149, 116, 0.4);
  background: rgba(73, 29, 21, 0.84);
}

.quality-badge.high-quality {
  color: #f0d58f;
  border-color: rgba(226, 190, 102, 0.58);
  background: rgba(18, 16, 12, 0.84);
}

.quality-badge[hidden],
.stage-quality[hidden] {
  display: none;
}

.museum-archive-copy {
  display: grid;
  gap: 9px;
  padding: 20px;
}

.museum-archive-kicker {
  color: var(--active-accent);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.museum-archive-copy strong {
  min-height: 2.7em;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 520;
  line-height: 1.35;
}

.museum-archive-copy small {
  overflow: hidden;
  color: var(--museum-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-wall-more {
  display: grid;
  justify-items: center;
  gap: 15px;
  margin-top: 44px;
  color: var(--museum-muted);
  font-size: 11px;
}

.source-room {
  width: 100%;
  padding-right: max(clamp(20px, 5vw, 80px), calc((100vw - var(--content-max)) / 2));
  padding-left: max(clamp(20px, 5vw, 80px), calc((100vw - var(--content-max)) / 2));
  border-top: 1px solid var(--museum-line);
  background: linear-gradient(180deg, rgba(12, 17, 27, 0.62), rgba(7, 10, 16, 0.18));
}

.source-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.source-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 250px;
  align-content: start;
  gap: 13px;
  padding: 26px;
  border: 1px solid var(--museum-line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(var(--active-accent-rgb), 0.08), transparent 48%),
    rgba(9, 13, 21, 0.88);
}

.source-card-number {
  color: var(--active-accent);
  font-family: Georgia, serif;
  font-size: 12px;
}

.source-card h3 {
  margin: 4px 0 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 20px;
  font-weight: 520;
  line-height: 1.4;
}

.source-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--museum-muted);
  font-size: 11px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.source-card small {
  color: #d5d2ca;
  font-size: 10px;
}

.source-card-link {
  appearance: none;
  width: fit-content;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--active-accent);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.quality-chamber {
  display: grid;
  width: min(var(--content-max), calc(100% - clamp(32px, 8vw, 120px)));
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  margin: clamp(60px, 8vw, 130px) auto;
  padding: clamp(28px, 4vw, 55px);
  border: 1px solid rgba(222, 194, 125, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 50%, rgba(222, 194, 125, 0.12), transparent 26rem),
    rgba(11, 15, 24, 0.88);
}

.quality-chamber-mark {
  display: grid;
  width: clamp(60px, 7vw, 90px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--museum-gold);
  border: 1px solid rgba(222, 194, 125, 0.3);
  border-radius: 50%;
  font-size: 28px;
}

.quality-chamber h2 {
  max-width: 820px;
  font-size: clamp(26px, 3vw, 44px);
}

.quality-chamber p:not(.section-index) {
  max-width: 920px;
  margin-top: 14px;
}

.museum-footer {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--museum-line);
  background: #05070b;
}

.museum-footer > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.museum-footer p {
  margin: 0;
}

.museum-footer strong,
.museum-footer small {
  display: block;
}

.museum-footer strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 15px;
  font-weight: 520;
}

.museum-footer small {
  margin-top: 5px;
  color: var(--museum-muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.archive-dialog {
  width: min(1450px, calc(100vw - 34px));
  max-width: none;
  max-height: calc(100dvh - 34px);
  padding: 0;
  overflow: hidden;
  color: var(--museum-text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: #080b12;
  box-shadow: 0 50px 160px rgba(0, 0, 0, 0.78);
}

.archive-dialog::backdrop {
  background: rgba(1, 3, 7, 0.88);
  backdrop-filter: blur(16px);
}

.archive-dialog-shell {
  display: grid;
  max-height: calc(100dvh - 36px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.archive-dialog-toolbar,
.archive-dialog-navigation {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--museum-line);
}

.archive-dialog-toolbar p {
  margin: 0;
  color: var(--museum-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.dialog-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}

.archive-dialog-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.7fr);
  overflow: auto;
}

.archive-dialog-figure {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  background: #030509;
}

.archive-dialog-figure img {
  width: 100%;
  max-height: calc(100dvh - 190px);
  object-fit: contain;
}

.archive-dialog-figure figcaption {
  color: var(--museum-muted);
}

.archive-dialog-copy {
  min-width: 0;
  padding: clamp(26px, 4vw, 56px);
  overflow-y: auto;
  border-left: 1px solid var(--museum-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--active-accent-rgb), 0.13), transparent 25rem),
    #0a0e16;
}

.dialog-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dialog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-badges > span:not(.quality-badge) {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--active-accent);
  border: 1px solid rgba(var(--active-accent-rgb), 0.35);
  border-radius: 999px;
  font-size: 9px;
}

.dialog-english-title {
  margin: 30px 0 9px;
  color: var(--museum-muted);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.archive-dialog-copy h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 480;
  line-height: 1.24;
}

.dialog-civilizations {
  margin: 12px 0 0;
  color: var(--active-accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dialog-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 36px 0;
}

.dialog-metadata div {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--museum-line);
}

.dialog-metadata-wide {
  grid-column: 1 / -1;
}

.dialog-metadata dd {
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.dialog-certificate {
  margin: 24px 0 0;
  color: #777a7f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.archive-dialog-navigation {
  justify-content: flex-end;
  border-top: 1px solid var(--museum-line);
  border-bottom: 0;
  background: #070a10;
}

.noscript-message {
  margin: 120px auto;
  padding: 24px;
  color: #11151c;
  background: var(--museum-gold-soft);
  text-align: center;
}

@media (max-width: 1180px) {
  .museum-nav {
    gap: 18px;
  }

  .route-tabs,
  .civilization-constellation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-tab:nth-child(2) {
    border-right: 0;
  }

  .route-tab:nth-child(-n + 2) {
    border-bottom: 1px solid var(--museum-line);
  }

  .immersive-stage {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 34px;
  }

  .archive-wall,
  .source-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-chamber {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .quality-chamber .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .museum-nav {
    display: none;
  }

  .mobile-navigation-toggle {
    position: relative;
    display: block;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: transparent;
  }

  .mobile-navigation-toggle::before,
  .mobile-navigation-toggle::after,
  .mobile-navigation-toggle > span:first-child {
    position: absolute;
    right: 12px;
    left: 12px;
    height: 1px;
    background: #e7e3da;
    content: "";
    transition: transform 180ms ease, top 180ms ease;
  }

  .mobile-navigation-toggle::before { top: 15px; }
  .mobile-navigation-toggle > span:first-child { top: 22px; }
  .mobile-navigation-toggle::after { top: 29px; }

  .mobile-navigation-toggle[aria-expanded="true"]::before {
    top: 22px;
    transform: rotate(45deg);
  }

  .mobile-navigation-toggle[aria-expanded="true"]::after {
    top: 22px;
    transform: rotate(-45deg);
  }

  .mobile-navigation-toggle[aria-expanded="true"] > span:first-child {
    opacity: 0;
  }

  .mobile-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    padding: 12px 18px 20px;
    border-bottom: 1px solid var(--museum-line);
    background: rgba(5, 7, 12, 0.97);
    backdrop-filter: blur(20px);
  }

  .mobile-navigation a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
  }

  .hero-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .hero-panel-copy {
    right: 10px;
    bottom: 12px;
    left: 10px;
    gap: 2px;
    opacity: 1;
    transform: none;
  }

  .hero-panel-copy strong {
    font-size: 13px;
  }

  .hero-panel-copy em {
    display: none;
  }

  .hero-veil {
    background:
      linear-gradient(90deg, rgba(3, 5, 10, 0.88), rgba(3, 5, 10, 0.48)),
      linear-gradient(180deg, rgba(3, 5, 10, 0.54), transparent 28%, rgba(3, 5, 10, 0.92));
  }

  .hero-content {
    margin-left: 24px;
  }

  .section-heading,
  .section-heading-wide,
  .wing-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .wing-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .immersive-stage {
    grid-template-columns: 1fr;
  }

  .stage-dossier {
    max-width: 760px;
  }

  .archive-dialog-layout {
    grid-template-columns: 1fr;
  }

  .archive-dialog-copy {
    border-top: 1px solid var(--museum-line);
    border-left: 0;
  }

  .archive-dialog-figure img {
    max-height: 60svh;
  }

  .museum-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .museum-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .museum-brand-mark {
    width: 40px;
    height: 40px;
  }

  .museum-brand strong {
    font-size: 12px;
  }

  .museum-brand small {
    font-size: 8px;
  }

  .museum-hero {
    min-height: 100svh;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 18px 52px;
  }

  .hero-content h1 {
    font-size: clamp(48px, 18vw, 72px);
    line-height: 0.92;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 12px;
  }

  .hero-stats dt {
    font-size: 8px;
  }

  .hero-stats dd {
    font-size: 24px;
  }

  .hero-scroll-cue,
  .hero-orbit {
    display: none;
  }

  .museum-section {
    width: calc(100% - 32px);
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .wing-heading h2 {
    font-size: 38px;
  }

  .route-tabs {
    display: flex;
    overflow-x: auto;
    border: 0;
    gap: 10px;
    scroll-snap-type: x mandatory;
  }

  .route-tab {
    min-width: min(78vw, 280px);
    min-height: 120px;
    flex: 0 0 auto;
    border: 1px solid var(--museum-line) !important;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .civilization-constellation {
    display: flex;
    overflow-x: auto;
    grid-template-columns: none;
    padding: 2px 0 12px;
    scroll-snap-type: x mandatory;
  }

  .civilization-card {
    width: min(82vw, 330px);
    min-width: min(82vw, 330px);
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: center;
  }

  .civilization-card-open {
    min-height: 390px;
  }

  .civilization-wing,
  .source-room {
    padding-right: 16px;
    padding-left: 16px;
  }

  .wing-stats {
    justify-content: space-between;
    gap: 12px;
  }

  .wing-stats div {
    min-width: 0;
  }

  .stage-image-shell {
    border-radius: 14px;
  }

  .stage-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
  }

  .stage-thumb {
    min-width: 90px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .stage-controls {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .archive-wall,
  .source-cards {
    grid-template-columns: 1fr;
  }

  .museum-archive-copy strong {
    min-height: 0;
    font-size: 20px;
  }

  .source-card {
    min-height: 220px;
  }

  .quality-chamber {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    margin-top: 70px;
    margin-bottom: 70px;
  }

  .quality-chamber .button {
    grid-column: auto;
    justify-self: stretch;
  }

  .museum-footer nav {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .archive-dialog {
    width: 100vw;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .archive-dialog-shell {
    max-height: 100dvh;
  }

  .archive-dialog-layout {
    overflow: auto;
  }

  .archive-dialog-figure {
    padding: 0;
  }

  .archive-dialog-figure img {
    max-height: none;
  }

  .archive-dialog-copy {
    padding: 26px 18px 34px;
  }

  .dialog-metadata {
    grid-template-columns: 1fr;
  }

  .dialog-metadata-wide {
    grid-column: auto;
  }

  .archive-dialog-navigation {
    position: sticky;
    bottom: 0;
    justify-content: space-between;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .archive-dialog-navigation .button {
    min-height: 44px;
    padding: 0 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.telemetry-disclosure {
  display: block;
  margin-top: 0.35rem;
  color: rgba(204, 214, 210, 0.55);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.5;
}
