@import url("./fonts.css");
fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
:root {
  --gold: #ddc494;
  --muted: #bbc3c1;
  --border: rgba(231, 239, 230, 0.16);
  --panel: rgba(16, 29, 31, 0.83);
  font-family: "DM Sans", Arial, sans-serif;
  font-synthesis: none;
  color: #f0f1eb;
  background: #162326;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a,
input,
select {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
}
button {
  background: none;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a {
  color: inherit;
  text-decoration: none;
}
#app,
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#scene {
  display: block;
  touch-action: none;
  outline: 0;
}
.scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 21, 25, 0.75) 0%,
    rgba(8, 21, 25, 0.1) 25%,
    transparent 54%,
    rgba(9, 21, 24, 0.08) 65%,
    rgba(9, 20, 24, 0.94) 100%
  );
}
.scrim:after {
  position: absolute;
  inset: 85px 45% 32% 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(100deg, rgba(12, 25, 28, 0.43), transparent 88%);
}
.topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 27px 40px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.17em;
}
.brand-mark {
  color: var(--gold);
}
.brand-mark svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.3;
}
.brand-sub {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.24em;
  opacity: 0.63;
}
.project-mark {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 9px;
  color: #d0d5d0;
  letter-spacing: 0.15em;
}
.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.divider {
  margin: 0 3px;
  color: #8a9996;
}
.header-actions {
  display: flex;
  gap: 23px;
  align-items: center;
}
.quiet-button {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: #dce3de;
}
.quiet-button svg {
  width: 17px;
  height: 17px;
}
.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 23px;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background 0.2s;
}
.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}
.intro {
  position: absolute;
  top: 140px;
  left: 42px;
  pointer-events: none;
}
.eyebrow {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 8px;
  font-weight: 500;
  color: #d3d9d2;
  letter-spacing: 0.18em;
}
.short-rule {
  width: 20px;
  height: 1px;
  background: #d0c8ad;
  opacity: 0.7;
}
h1 {
  margin: 18px 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 68px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 15px #0a161822;
}
em {
  font-weight: inherit;
}
h1 em {
  font-weight: 500;
  color: #e5d7b7;
}
.intro-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #e0e3db;
  letter-spacing: 0.01em;
}
.facts {
  display: flex;
  gap: 21px;
  margin-top: 23px;
  font-size: 9px;
  color: #c3cbc6;
  letter-spacing: 0.015em;
}
.facts span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.facts b {
  font-size: 14px;
  font-weight: 500;
  color: #f2eedf;
}
dialog h2 {
  margin: 17px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
}
dialog > p {
  font-size: 12px;
  line-height: 1.85;
  color: #b9c7ba;
}
.view-card {
  position: absolute;
  right: 40px;
  bottom: 222px;
  width: 226px;
  padding-top: 18px;
  text-shadow: 0 1px 6px #08111466;
  border-top: 1px solid #ede9d554;
}
.view-overline {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 8px;
  color: #d0d8d0;
  letter-spacing: 0.12em;
}
.live-dot {
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.view-card h2 {
  margin: 12px 0 9px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}
.view-card p {
  max-width: 211px;
  margin: 0;
  font-size: 10px;
  line-height: 1.65;
  color: #d0d5cd;
}
.view-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  font-size: 9px;
  color: #d6d9c8;
  letter-spacing: 0.17em;
}
.view-card-foot button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #ffffff38;
  border-radius: 50%;
}
.view-card-foot svg {
  width: 16px;
  height: 16px;
}
.tools-rail {
  position: absolute;
  top: 128px;
  right: 40px;
  display: grid;
  gap: 10px;
}
.tools-rail .icon-button {
  width: 35px;
  height: 35px;
  background: #1b292744;
  backdrop-filter: blur(10px);
}
.tools-rail svg {
  width: 15px;
  height: 15px;
}
.bottom {
  position: absolute;
  right: 40px;
  bottom: 19px;
  left: 40px;
}
.bottom-top {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.view-tabs {
  display: flex;
  gap: 23px;
  align-items: center;
}
.view-tabs button {
  position: relative;
  padding: 11px 0;
  font-size: 10px;
  color: #bbc7c3;
  white-space: nowrap;
  transition: color 0.2s;
}
.view-tabs button.active {
  color: #e7d6b2;
}
.view-tabs button.active:after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
}
.view-tabs button:hover {
  color: #fff;
}
.mode-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(17, 33, 35, 0.34);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.mode-toggle button {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 13px;
  font-size: 10px;
  color: #bec6bf;
  border-radius: 3px;
}
.mode-toggle svg {
  width: 15px;
  height: 15px;
}
.mode-toggle .active {
  color: #f1ecdf;
  background: #e3e9d21a;
}
.platform-strip {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.platform-label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: #c9d0c8;
  white-space: nowrap;
}
.platform-label svg {
  width: 17px;
  height: 17px;
  color: #e3d2ab;
}
#platform-buttons {
  display: flex;
  flex: 1;
  gap: 5px;
  justify-content: center;
}
.cutaway-button {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  color: #d0d8ce;
  white-space: nowrap;
}
.cutaway-button svg {
  width: 16px;
  height: 16px;
}
.cutaway-button[aria-pressed="true"] {
  color: var(--gold);
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 8px;
  color: #a3b0aa;
  letter-spacing: 0.02em;
}
#navigation-hint {
  display: flex;
  gap: 7px;
  align-items: center;
}
.hint-separator {
  margin: 0 3px;
  color: #6c817a;
}
.mouse-icon {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 13px;
  margin-right: 3px;
  border: 1px solid #9aa9a0;
  border-radius: 5px;
}
.mouse-icon:after {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 1px;
  height: 3px;
  content: "";
  background: #a4b1a8;
}
.footnote {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 7px;
  letter-spacing: 0.12em;
}
.glass-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 10px 40px #0003;
  backdrop-filter: blur(22px);
}
.settings-panel {
  position: absolute;
  top: 92px;
  right: 40px;
  z-index: 6;
  width: 272px;
  padding: 20px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  font-size: 13px;
}
.panel-title .icon-button {
  width: 23px;
  height: 23px;
  border: 0;
}
.range-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #d5dace;
}
.range-label output {
  color: var(--gold);
}
input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 18px 0 12px;
  accent-color: var(--gold);
  cursor: pointer;
}
.range-endpoints {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 8px;
  color: #8faaa0;
}
.switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  font-size: 10px;
  color: #ccd5cc;
  cursor: pointer;
}
.switch-row input {
  position: absolute;
  right: 0;
  width: 29px;
  height: 18px;
  cursor: pointer;
  opacity: 0;
}
.switch {
  display: block;
  width: 29px;
  height: 16px;
  pointer-events: none;
  background: #697871;
  border-radius: 9px;
}
.switch:after {
  display: block;
  width: 10px;
  height: 10px;
  margin: 3px;
  content: "";
  background: #172426;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch-row input:checked + .switch {
  background: #d5c18f;
}
.switch-row input:checked + .switch:after {
  transform: translateX(13px);
}
.switch-row input:focus-visible + .switch {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.settings-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  margin-top: 22px;
  font-size: 10px;
  border-top: 1px solid var(--border);
}
.settings-bottom select {
  padding: 6px;
  font: inherit;
  color: #dddccf;
  background: #253734;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.reset-button {
  display: block;
  margin: 18px auto 0;
  font-size: 9px;
  color: #d9caad;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.platform-detail {
  position: absolute;
  bottom: 220px;
  left: 40px;
  display: flex;
  gap: 19px;
  align-items: center;
  max-width: 440px;
  padding: 21px 24px;
}
.platform-detail > div:first-child {
  padding-right: 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.platform-detail strong {
  display: block;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--gold);
}
.platform-detail .eyebrow {
  font-size: 7px;
}
dialog h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.platform-detail h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
}
.platform-detail p {
  max-width: 205px;
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: #adbbb2;
}
.platform-detail button:not(.icon-button) {
  padding: 12px 0 0;
  font-size: 10px;
  color: var(--gold);
}
.platform-detail .icon-button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  font-size: 19px;
  border: 0;
}
#toast {
  position: absolute;
  top: 95px;
  left: 50%;
  z-index: 10;
  padding: 12px 20px;
  font-size: 11px;
  color: #e5dec8;
  pointer-events: none;
  background: #122828e8;
  border: 1px solid var(--border);
  border-radius: 5px;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#npc-speech-bubble {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 25;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: min(320px, 85vw);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #fcfbf7;
  pointer-events: none;
  background: #102425f2;
  border: 1px solid var(--gold, #d5b863);
  border-radius: 12px;
  box-shadow: 0 6px 20px #00000073;
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.92);
  transition:
    opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, left, top;
}
#npc-speech-bubble.show {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 10px)) scale(1);
}
#npc-speech-bubble::after {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  content: "";
  background: #102425f2;
  border-right: 1px solid var(--gold, #d5b863);
  border-bottom: 1px solid var(--gold, #d5b863);
  transform: translateX(-50%) rotate(45deg);
}
.npc-speech-icon {
  flex-shrink: 0;
  font-size: 14px;
}
.npc-speech-text {
  flex: 1;
  text-shadow: 0 1px 2px #0009;
}
.sound-voices-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.sound-voices-row label {
  margin: 0;
}
#sound-voice-test {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #102425;
  cursor: pointer;
  background: var(--gold, #d5b863);
  border: none;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}
#sound-voice-test:hover {
  opacity: 0.85;
}
#loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 25%, #28413d, #152627 65%);
  transition: opacity 0.65s;
}
.loading-ticket {
  display: flex;
  width: min(440px, 100%);
  margin-top: 28px;
  overflow: hidden;
  text-align: left;
  background: #ebdfc6;
  border-radius: 7px;
  box-shadow: 0 12px 45px #0003;
}
.loading-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
#loading-start-fresh {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #203632;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 6px;
}
#loading-start-fresh:hover {
  background: #ebdfc6;
}
#loading-fresh-hint {
  font-size: 12px;
  line-height: 1.5;
  color: #b8c7bc;
}
.loading-service {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 24px;
  color: #203632;
}
.loading-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
#loading-operator {
  font-size: 19px;
  font-weight: 500;
}
#loading-origin {
  font-size: 12px;
  line-height: 1.4;
}
.loading-destination {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.5;
  color: #4e6256;
}
.loading-platform {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 18px;
  color: #263e38;
  border-left: 1px dashed #687a6655;
}
#loading-platform {
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}
.loading-journey {
  display: flex;
  justify-content: space-between;
  width: min(360px, 100%);
  margin-top: 38px;
  border-top: 1px solid #718a7359;
}
.loading-journey span {
  position: relative;
  padding-top: 14px;
  font-size: 10px;
  color: #a0b5a9;
}
.loading-journey span::before {
  position: absolute;
  top: -4px;
  left: calc(50% - 3px);
  width: 7px;
  height: 7px;
  content: "";
  background: #152627;
  border: 1px solid #91a48c;
  border-radius: 50%;
}
.loading-journey span:first-child::before,
[data-journey-stage="arriving"] .loading-journey span:nth-child(2)::before,
[data-journey-stage="arrived"] .loading-journey span::before {
  background: var(--gold);
  border-color: var(--gold);
}
.loading-mark svg {
  width: 70px;
  height: 70px;
  color: var(--gold);
  stroke-width: 0.8;
}
.loading-mark {
  margin-bottom: 20px;
}
.loading-line {
  width: 150px;
  height: 1px;
  margin-top: 28px;
  overflow: hidden;
  background: #ffffff1c;
}
.loading-line span {
  display: block;
  width: 50%;
  height: 1px;
  background: var(--gold);
  animation: load 1.7s ease-in-out infinite;
}
@keyframes load {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}
#loading.loaded {
  pointer-events: none;
  opacity: 0;
}
dialog {
  width: min(610px, calc(100vw - 35px));
  max-height: calc(100vh - 70px);
  padding: 41px 43px 30px;
  color: #dee4d8;
  background: #182b2c;
  border: 1px solid #a4b3a337;
  border-radius: 8px;
  box-shadow: 0 20px 160px #0008;
}
dialog::backdrop {
  background: rgba(4, 13, 17, 0.7);
  backdrop-filter: blur(10px);
}
.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
}
dialog h2 em {
  color: #d8c59b;
}
.source-facts {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  margin: 21px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.source-facts strong {
  display: block;
  font-size: 25px;
  font-weight: 400;
  color: #e0cfab;
}
.source-facts span {
  display: block;
  margin-top: 8px;
  font-size: 8px;
  color: #a9bbab;
}
.source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 11px;
  border-bottom: 1px solid #ffffff12;
}
.source-link small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.55;
  color: #a0b4a7;
}
.source-link:hover {
  color: var(--gold);
}
.accuracy-note {
  padding: 15px 19px;
  margin: 22px 0;
  background: #e2e3c809;
  border-radius: 4px;
}
.accuracy-note h3 {
  margin: 0 0 8px;
  color: #d7c59f;
}
.accuracy-note p {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.8;
  color: #b3c2b5;
}
.credits {
  font-size: 9px;
  line-height: 1.9;
  color: #829a8d;
}
.credits a {
  text-decoration: underline;
}
#exit-immersive {
  position: absolute;
  top: 25px;
  left: 25px;
  padding: 12px 17px;
  font-size: 11px;
  background: #132a2ae0;
  border: 1px solid var(--border);
  border-radius: 5px;
}
kbd {
  padding: 2px 5px;
  margin-left: 10px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.immersive .chrome,
.immersive .scrim {
  display: none;
}
.intro {
  transition: opacity 0.4s;
}
.platform-selected .intro {
  pointer-events: none;
  opacity: 0;
}
#walk-controls {
  position: absolute;
  bottom: 228px;
  left: 40px;
  z-index: 3;
  text-align: center;
}
#walk-controls div {
  display: flex;
}
.walk-help {
  padding: 5px 8px;
  margin: 7px 0 0;
  font-size: 11px;
  color: #f4f5ee;
  background: #183333e6;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .intro {
    top: 155px;
  }
  h1 {
    font-size: 80px;
  }
  .intro-copy {
    font-size: 13px;
  }
  .bottom {
    bottom: 25px;
  }
  .view-card {
    bottom: 245px;
  }
}
@media (max-height: 780px) {
  .intro {
    top: 108px;
  }
  h1 {
    font-size: 56px;
  }
  .intro-copy {
    font-size: 11px;
  }
  .facts {
    margin-top: 14px;
  }
  .view-card {
    bottom: 214px;
  }
  .settings-panel {
    top: 77px;
    padding: 15px;
  }
  .switch-row {
    margin: 13px 0;
  }
}
@media (max-width: 1000px) {
  .topbar {
    padding: 23px 25px;
  }
  .project-mark {
    display: none;
  }
  .intro {
    left: 26px;
  }
  h1 {
    font-size: 57px;
  }
  .bottom {
    right: 25px;
    left: 25px;
  }
  .view-tabs {
    gap: 17px;
  }
  .view-tabs button {
    font-size: 9px;
  }
  .platform-strip {
    gap: 14px;
  }
  .platform-label span {
    display: none;
  }
  #platform-buttons {
    gap: 3px;
  }
  .cutaway-button span {
    display: none;
  }
  .view-card,
  .tools-rail {
    right: 25px;
  }
  .settings-panel {
    right: 25px;
  }
  .footnote {
    font-size: 6px;
  }
  .platform-detail {
    left: 25px;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 20px;
  }
  .brand {
    font-size: 13px;
  }
  .brand-mark svg {
    width: 30px;
    height: 30px;
  }
  .brand-sub {
    font-size: 6px;
  }
  .header-actions {
    gap: 13px;
  }
  .quiet-button span {
    display: none;
  }
  .intro {
    top: 108px;
    left: 22px;
  }
  .eyebrow {
    gap: 7px;
    font-size: 6px;
  }
  h1 {
    margin: 16px 0 14px;
    font-size: 48px;
  }
  .intro-copy {
    font-size: 10px;
  }
  .facts {
    gap: 12px;
    font-size: 8px;
  }
  .facts b {
    font-size: 12px;
  }
  .view-card {
    display: none;
  }
  .tools-rail {
    top: 98px;
    right: 18px;
  }
  .tools-rail .icon-button {
    width: 32px;
    height: 32px;
  }
  .bottom {
    right: 18px;
    bottom: 17px;
    left: 18px;
  }
  .bottom-top {
    display: block;
    margin-bottom: 13px;
  }
  .view-tabs {
    gap: 18px;
    padding-bottom: 3px;
    margin-right: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .view-tabs button {
    font-size: 9px;
  }
  .mode-toggle {
    position: absolute;
    right: 0;
    bottom: 135px;
  }
  .mode-toggle button {
    padding: 7px 10px;
    font-size: 9px;
  }
  .platform-strip {
    gap: 9px;
    padding: 12px 0;
  }
  .platform-label {
    display: none;
  }
  #platform-buttons {
    gap: 1px;
    justify-content: space-between;
  }
  .cutaway-button {
    padding: 0;
  }
  footer {
    margin-top: 13px;
    font-size: 7px;
  }
  .footnote {
    display: none;
  }
  .hint-separator {
    margin: 0;
  }
  .settings-panel {
    top: 75px;
    right: 18px;
    width: 250px;
    max-height: calc(100vh - 250px);
    overflow: auto;
  }
  .platform-detail {
    right: 18px;
    bottom: 193px;
    left: 18px;
    padding: 17px;
  }
  .platform-detail p {
    font-size: 9px;
  }
  .platform-detail strong {
    font-size: 34px;
  }
  dialog {
    padding: 35px 26px 24px;
  }
  .source-facts span {
    font-size: 7px;
  }
  .source-facts strong {
    font-size: 21px;
  }
  #walk-controls {
    bottom: 189px;
    left: 20px;
  }
  .scrim:after {
    inset: 85px 15% 45% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
.view-card {
  padding: 19px 19px 14px;
  background: linear-gradient(
    135deg,
    rgba(13, 30, 32, 0.82),
    rgba(13, 30, 32, 0.5)
  );
  border-radius: 0 0 5px 5px;
  backdrop-filter: blur(9px);
}
.view-card p {
  color: #c9d4cb;
}
.view-card h2 {
  font-size: 20px;
}
.non-hall .intro {
  pointer-events: none;
  opacity: 0;
}
.walking .platform-detail {
  display: none;
}
#export-dialog {
  width: min(1050px, calc(100vw - 32px));
  padding: 32px;
}
#export-dialog h2 {
  margin: 13px 0 22px;
  font-size: 28px;
}
#export-image {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #0d1e21;
  border-radius: 4px;
}
.download-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 190px;
  padding: 12px 17px;
  margin: 22px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #172626;
  background: #ddc494;
  border-radius: 4px;
}
.download-button:hover {
  background: #ebd9b6;
}
.export-hint {
  margin: 12px 0 0;
  font-size: 10px !important;
  color: #98ad9e !important;
}
/* Concourse angles stay clear of the station-wide navigation and walking controls. */
.detail-views {
  display: flex;
  gap: 6px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 9px;
  margin-bottom: 20px;
  background: rgba(15, 30, 34, 0.78);
  border: 1px solid #ffffff24;
  border-radius: 4px;
  backdrop-filter: blur(12px);
}
.detail-views[hidden] {
  display: none;
}
.detail-views > span {
  padding: 0 8px;
  font-size: 8px;
  color: #caba96;
  letter-spacing: 1.5px;
}
.detail-views button {
  padding: 7px 10px;
  font: inherit;
  font-size: 11px;
  color: #d4dedc;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 3px;
}
.detail-views button[aria-pressed="true"] {
  color: #f0d8a6;
  background: #ffffff17;
}
.detail-views button:hover {
  background: #ffffff12;
}
.detail-views button[data-city^="gay"] {
  flex-shrink: 0;
  white-space: nowrap;
}
body:has(.detail-views:not([hidden])) #walk-controls {
  bottom: 284px;
}
@media (max-width: 700px) {
  .bottom:has(.detail-views:not([hidden])) .mode-toggle {
    position: static;
    width: max-content;
    margin: 10px 0 0 auto;
  }
  body:has(.detail-views:not([hidden])) #walk-controls {
    bottom: 300px;
  }
}
@media (max-width: 600px) {
  .detail-views {
    gap: 2px;
    max-width: 100%;
    padding: 5px;
    margin-bottom: 10px;
  }
  .detail-views > span {
    display: none;
  }
  .detail-views button {
    padding: 8px 9px;
    font-size: 10px;
  }
}

@media (max-width: 850px) {
  #entrance-views {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: max-content;
  }
  #entrance-views > span {
    display: none;
  }
  #entrance-views button {
    font-size: 10px;
    text-align: left;
  }
  .bottom:has(#entrance-views:not([hidden])) .mode-toggle {
    position: static;
    width: max-content;
    margin: 10px 0 0 auto;
  }
  body:has(#entrance-views:not([hidden])) #walk-controls {
    bottom: 346px;
  }
}
#reference-view {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#mayfield-history {
  padding: 19px 0 24px;
  margin: 20px 0 26px;
  scroll-margin-top: 12px;
  border-bottom: 1px solid var(--border);
}
#about > form {
  position: sticky;
  top: -22px;
  z-index: 2;
  height: 0;
}
#about .dialog-close {
  top: 0;
  right: -22px;
  background: #182b2c;
}
#mayfield-history h3 {
  margin: 12px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  line-height: 1.25;
  color: #e3cfaa;
}
#mayfield-history p {
  font-size: 12px;
  line-height: 1.8;
  color: #bdc9bd;
}
.history-timeline {
  padding: 0;
  margin: 22px 0;
  list-style: none;
  border-left: 1px solid #ddc49466;
}
.history-timeline li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 9px 0 9px 17px;
  font-size: 11px;
  line-height: 1.65;
}
.history-timeline strong {
  font-weight: 500;
  color: var(--gold);
}
.history-timeline span {
  color: #bdc9bd;
}
.mayfield-view .view-card {
  bottom: 280px;
}
.neighbourhood-view .view-card {
  bottom: 280px;
}
#landmark-history > form {
  position: sticky;
  top: -22px;
  z-index: 2;
  height: 0;
}
#landmark-history .dialog-close {
  top: 0;
  right: -22px;
  background: #182b2c;
}
#landmark-history section {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
#landmark-history h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.35;
  color: #e3cfaa;
}
@media (max-width: 700px) {
  #landmark-views {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  #landmark-views button {
    min-height: 36px;
    padding: 7px 4px;
    font-size: 10px;
  }
  .neighbourhood-view .view-card {
    top: 92px;
    right: 70px;
    bottom: auto;
    left: 18px;
    display: block;
    width: auto;
    padding: 10px 12px;
  }
  .neighbourhood-view .view-card h2 {
    margin: 7px 0;
    font-size: 17px;
  }
  .neighbourhood-view .view-card p,
  .neighbourhood-view .view-card-foot {
    display: none;
  }
  .neighbourhood-view #reference-view {
    margin-top: 5px;
    font-size: 9px;
  }
  body:has(#landmark-views:not([hidden])) #walk-controls {
    bottom: 345px;
  }
}
@media (max-width: 700px) {
  #mayfield-views {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  #mayfield-views > span {
    display: none;
  }
  .mayfield-view .view-card {
    top: 92px;
    right: 70px;
    bottom: auto;
    left: 18px;
    display: block;
    width: auto;
    padding: 10px 12px;
  }
  .mayfield-view .view-card h2 {
    margin: 7px 0;
    font-size: 17px;
  }
  .mayfield-view .view-card p,
  .mayfield-view .view-card-foot {
    display: none;
  }
  .mayfield-view #reference-view {
    margin-top: 5px;
    font-size: 9px;
  }
  .history-timeline li {
    grid-template-columns: 74px 1fr;
    gap: 8px;
    padding-left: 12px;
  }
  body:has(#mayfield-views:not([hidden])) #walk-controls {
    bottom: 345px;
  }
}
.view-tabs {
  gap: 19px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
#city-views {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
@media (max-width: 700px) {
  #city-views {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  #city-views button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 4px;
    font-size: 10px;
    white-space: nowrap;
  }
  .city-view .view-card {
    top: 92px;
    right: 70px;
    bottom: auto;
    left: 18px;
    display: block;
    width: auto;
    padding: 10px 12px;
  }
  .city-view .view-card h2 {
    margin: 7px 0;
    font-size: 17px;
  }
  .city-view .view-card p,
  .city-view .view-card-foot {
    display: none;
  }
  .city-view #reference-view {
    margin-top: 5px;
    font-size: 9px;
  }
  body:has(#city-views:not([hidden])) #walk-controls {
    bottom: 280px;
  }
}
.outside-view .view-card {
  bottom: 265px;
}
@media (max-width: 1100px) {
  #perimeter-views {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: max-content;
  }
  #perimeter-views > span {
    display: none;
  }
  #perimeter-views button {
    text-align: left;
  }
  .outside-view .view-card {
    bottom: 305px;
  }
}
@media (max-width: 700px) {
  #perimeter-views {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  body:has(#perimeter-views:not([hidden])) #walk-controls {
    bottom: 358px;
  }
  .outside-view .bottom-top .mode-toggle {
    position: static;
    margin: 8px 0 0 auto;
  }
  .outside-view .view-card {
    top: 92px;
    right: 70px;
    bottom: auto;
    left: 18px;
    display: block;
    width: auto;
    padding: 10px 12px;
  }
  .outside-view .view-card h2 {
    margin: 7px 0;
    font-size: 17px;
  }
  .outside-view .view-card p,
  .outside-view .view-card-foot {
    display: none;
  }
  .outside-view #reference-view {
    margin-top: 5px;
    font-size: 10px;
  }
}
/* Vehicle controls follow the shared explorer rules. */
/* A compact ride panel leaves the road and windscreen visible. */
#ride-nearest-bus {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
  color: #172728;
  white-space: nowrap;
  background: #f4d653;
  border: 1px solid #e6cc79;
  border-radius: 5px;
}
#ride-nearest-bus:hover {
  background: #ffe375;
}
#ride-nearest-bus svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 700px) {
  #ride-nearest-bus {
    width: 36px;
    padding: 7px;
  }
  #ride-nearest-bus span {
    display: none;
  }
  .topbar .header-actions {
    gap: 8px;
  }
  .topbar .brand {
    gap: 8px;
  }
  body .topbar {
    gap: 8px;
  }
}
#driver-panel {
  position: absolute;
  bottom: 25px;
  left: 50%;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px 22px;
  align-items: center;
  width: min(720px, calc(100% - 36px));
  padding: 17px 20px;
  background: rgba(15, 29, 32, 0.94);
  border: 1px solid #ffffff30;
  border-radius: 8px;
  box-shadow: 0 12px 40px #0005;
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.driver-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.driver-eyebrow {
  font-size: 8px;
  color: #ddc494;
  letter-spacing: 1.7px;
}
.driver-info strong {
  font-size: 16px;
  font-weight: 500;
}
#driver-road {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  color: #c0ccc9;
  white-space: nowrap;
}
.driver-speed {
  min-width: 35px;
  text-align: center;
}
.driver-speed strong {
  display: block;
  font-size: 25px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.driver-speed span {
  font-size: 10px;
  color: #b6c4be;
}
.driver-actions {
  display: flex;
  gap: 7px;
}
.driver-actions button {
  min-height: 42px;
  padding: 11px 12px;
  font-size: 11px;
  border: 1px solid #ffffff30;
  border-radius: 5px;
}
#driver-exit {
  color: #152828;
  background: #ddc494;
  border-color: #ddc494;
}
.driver-actions button:hover {
  filter: brightness(1.14);
}
#driver-panel p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 10px;
  color: #aebfba;
}
.driving .intro,
.driving .view-card,
.driving .bottom,
.driving .platform-detail,
.driving .tools-rail {
  display: none;
}
.driving .scrim {
  background: linear-gradient(
    180deg,
    #08151977,
    transparent 24%,
    transparent 80%,
    #09141844
  );
}
.driving .scrim:after {
  display: none;
}
#traffic-views {
  flex-wrap: wrap;
}
#traffic-views #ride-car,
#traffic-views #ride-bus {
  color: #ddc494;
  border: 1px solid #ddc49455;
}
@media (max-width: 700px) {
  #driver-panel {
    bottom: 15px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px;
  }
  .driver-actions {
    grid-column: 1 / -1;
  }
  .driver-actions button {
    flex: 1;
    padding: 11px 8px;
  }
  .driver-info strong {
    font-size: 15px;
  }
  .driver-speed strong {
    font-size: 23px;
  }
  #driver-panel p {
    font-size: 9px;
  }
  .driving #toast {
    width: max-content;
    max-width: calc(100vw - 40px);
    font-size: 10px;
  }
}
/* Specific component descendants follow their shared element styles. */
#city-views button {
  flex: 0 0 auto;
  white-space: nowrap;
}
#walk-controls button {
  width: 44px;
  height: 44px;
  margin: 3px;
  font-size: 20px;
  touch-action: none;
  background: #183333c4;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.platform-detail button span {
  margin-left: 7px;
}
.facts span + span {
  padding-left: 20px;
  border-left: 1px solid #ffffff25;
}
#platform-buttons button {
  width: 31px;
  height: 31px;
  font-size: 11px;
  color: #d7dcd2;
  border: 1px solid #ffffff13;
  border-radius: 3px;
  transition: background 0.15s;
}
#platform-buttons button:nth-child(13) {
  margin-left: 12px;
}
#platform-buttons button:hover,
#platform-buttons button.active {
  color: #152123;
  background: #dfc696;
  border-color: #dfc696;
}
#loading h2 {
  max-width: 550px;
  margin: 18px 0 5px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(29px, 4.5vw, 46px);
  font-weight: 500;
  color: #e7decb;
}
#loading p {
  max-width: 380px;
  min-height: 3.4em;
  margin: 15px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #b8c7bc;
}
@media (max-width: 1000px) {
  #platform-buttons button {
    width: 28px;
  }
}
@media (max-width: 700px) {
  .facts span + span {
    padding-left: 12px;
  }
  #platform-buttons button {
    width: 23px;
    height: 29px;
    font-size: 10px;
  }
  #platform-buttons button:nth-child(13) {
    margin-left: 4px;
  }
  #loading h2 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-line span {
    animation: none;
  }
}
