:root {
  color-scheme: dark;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  background: #101712;
  color: #f7f1df;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #f7f1df;
  --muted: #c7c2b4;
  --red: #a73529;
  --red-bright: #d45a41;
  --gold: #d5ae66;
  --green: #1d3a2d;
  --panel: rgba(17, 23, 18, 0.92);
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 320px;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.tour-shell,
.scene-stage,
.scene-canvas {
  width: 100%;
  height: 100%;
}

.scene-stage {
  position: relative;
  overflow: hidden;
  background: #9eb69d;
  isolation: isolate;
}

.scene-stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 17, 12, 0.52) 0%, transparent 24%),
    linear-gradient(90deg, rgba(9, 16, 12, 0.42) 0%, transparent 26%, transparent 74%, rgba(9, 16, 12, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 13, 10, 0.48) 0%, transparent 28%);
}

.scene-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.scene-canvas canvas:active {
  cursor: grabbing;
}

.topbar {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  pointer-events: none;
}

.brand,
.top-actions {
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.brand {
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(93, 24, 20, 0.84);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  color: #f5d895;
  font-size: 22px;
  font-weight: 700;
}

.brand-kicker {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  letter-spacing: 0;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.top-actions {
  gap: 8px;
}

.icon-button,
.about-button,
.view-button,
.panel-close {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(18, 25, 20, 0.62);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: 180ms ease;
}

.icon-button {
  width: 42px;
  height: 42px;
}

.icon-button:hover,
.about-button:hover,
.view-button:hover,
.panel-close:hover {
  border-color: rgba(213, 174, 102, 0.7);
  background: rgba(30, 43, 34, 0.88);
}

.icon-button svg,
.about-button svg,
.view-button svg,
.panel-close svg,
.primary-button svg,
.route-next svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.about-button {
  grid-auto-flow: column;
  gap: 8px;
  height: 42px;
  padding: 0 15px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.scene-hud {
  position: absolute;
  z-index: 5;
  top: 104px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: right 280ms ease;
}

.view-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(18, 25, 20, 0.68);
  backdrop-filter: blur(14px);
}

.view-button {
  grid-auto-flow: column;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.view-button.is-active {
  background: #f1e7cc;
  color: #2e342d;
}

.scene-controls {
  display: flex;
  gap: 6px;
}

.glass {
  background: rgba(18, 25, 20, 0.68);
}

.scene-caption {
  position: absolute;
  z-index: 5;
  bottom: 120px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  pointer-events: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74c78c;
  box-shadow: 0 0 0 4px rgba(116, 199, 140, 0.14);
}

.caption-separator {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
}

.welcome {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 7vw;
  width: min(410px, 38vw);
  transform: translateY(-46%);
  transition: 450ms ease;
}

.welcome.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translate(-20px, -46%);
}

.welcome-kicker,
.panel-eyebrow {
  margin: 0 0 12px;
  color: #e3c07a;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.welcome h2 {
  margin: 0;
  font-size: clamp(34px, 4.3vw, 64px);
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
}

.welcome > p:not(.welcome-kicker) {
  max-width: 390px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 19px;
  border: 1px solid #e3c07a;
  background: #a73529;
  color: white;
  box-shadow: 0 12px 36px rgba(86, 25, 19, 0.28);
  cursor: pointer;
  transition: 180ms ease;
}

.primary-button:hover {
  background: #bd4635;
  transform: translateY(-2px);
}

.spot-rail {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(15, 22, 17, 0.83);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.spot-rail-title {
  padding: 0 10px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.spot-rail-title span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.spot-rail-title strong {
  display: block;
  margin-top: 3px;
  color: #e8c67d;
  font-size: 20px;
  font-weight: 500;
}

.spot-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.spot-list::-webkit-scrollbar {
  display: none;
}

.spot-button {
  position: relative;
  display: grid;
  min-width: 92px;
  height: 58px;
  padding: 8px 9px;
  overflow: hidden;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.76);
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.spot-button:hover,
.spot-button.is-active {
  border-color: rgba(213, 174, 102, 0.52);
  background: rgba(213, 174, 102, 0.12);
  color: white;
}

.spot-number {
  color: #d9b66e;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 9px;
}

.spot-name {
  align-self: end;
  font-size: 13px;
  white-space: nowrap;
}

.spot-button.is-visited::after {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #75c38c;
  content: "";
}

.info-panel {
  position: absolute;
  z-index: 8;
  top: 92px;
  right: 28px;
  bottom: 112px;
  display: flex;
  width: min(390px, calc(100vw - 56px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: 320ms ease;
}

.info-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.panel-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
}

.panel-image-wrap {
  position: relative;
  height: 34%;
  min-height: 160px;
  overflow: hidden;
  background: #273129;
}

.panel-image-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  content: "";
  background: linear-gradient(transparent, rgba(17, 23, 18, 0.86));
}

.panel-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-index {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 14px;
  color: #f0d69e;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.panel-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.panel-content h2,
.about-card h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 500;
}

.panel-summary,
.about-card > p {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.8;
}

.panel-facts {
  display: grid;
  gap: 10px;
  margin: 8px 0 20px;
}

.fact {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #d8d5cc;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

.fact svg {
  width: 15px;
  color: #d5ae66;
}

.route-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid rgba(213, 174, 102, 0.5);
  background: transparent;
  color: #f0d69e;
  cursor: pointer;
}

.real-entry,
.interior-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin: 2px 0 10px;
  border: 1px solid #d5ae66;
  background: #9f3027;
  color: #fff8e7;
  cursor: pointer;
  transition: 180ms ease;
}

.real-entry {
  border-color: #e0bd73;
  background: #a43127;
  color: #fff8e7;
}

.real-entry:hover {
  background: #bd4434;
  transform: translateY(-1px);
}

.interior-entry {
  border-color: rgba(213, 174, 102, 0.46);
  background: rgba(213, 174, 102, 0.08);
  color: #efd79f;
}

.interior-entry[hidden] {
  display: none;
}

.interior-entry:hover {
  background: rgba(213, 174, 102, 0.16);
  transform: translateY(-1px);
}

.real-entry svg,
.interior-entry svg {
  width: 18px;
  height: 18px;
}

.route-next:hover {
  background: rgba(213, 174, 102, 0.1);
}

.interior-mode-ui {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
}

.interior-mode-ui[hidden] {
  display: none;
}

.interior-heading {
  position: absolute;
  top: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 15px;
  pointer-events: auto;
}

.interior-heading p {
  margin: 0 0 3px;
  color: #d9b76f;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 10px;
}

.interior-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.interior-back {
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 16, 12, 0.78);
  color: #fff8e7;
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.interior-back:hover {
  border-color: #d5ae66;
  background: rgba(68, 33, 24, 0.9);
}

.interior-back svg {
  width: 17px;
}

.walk-controls {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(2, 44px);
  gap: 5px;
  pointer-events: auto;
}

.walk-controls button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 16, 12, 0.74);
  color: #f5dfaa;
  backdrop-filter: blur(12px);
  cursor: pointer;
  touch-action: none;
}

.walk-controls button:hover,
.walk-controls button.is-pressed {
  border-color: #d5ae66;
  background: rgba(116, 48, 35, 0.92);
}

.walk-controls button[data-move="forward"] {
  grid-column: 2;
}

.walk-controls button[data-move="left"] {
  grid-column: 1;
  grid-row: 2;
}

.walk-controls button[data-move="backward"] {
  grid-column: 2;
  grid-row: 2;
}

.walk-controls button[data-move="right"] {
  grid-column: 3;
  grid-row: 2;
}

.walk-controls svg {
  width: 21px;
  height: 21px;
}

.scene-stage.is-interior .brand,
.scene-stage.is-interior .scene-hud,
.scene-stage.is-interior .scene-caption,
.scene-stage.is-interior .welcome,
.scene-stage.is-interior .spot-rail,
.scene-stage.is-interior .info-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.scene-stage.is-interior .scene-canvas canvas {
  cursor: move;
}

.real-tour {
  position: absolute;
  z-index: 30;
  inset: 0;
  overflow: hidden;
  background: #0b0d0a;
  color: #fffaf0;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.real-tour[hidden] {
  display: none;
}

.real-photo-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.real-photo-layer.is-dragging {
  cursor: grabbing;
}

.real-photo-layer.is-dragging .real-photo {
  transition: none;
}

.real-photo {
  display: block;
  width: 100%;
  height: 100%;
  background: #090a08;
  object-fit: cover;
  transform-origin: center;
  transition:
    object-position 500ms ease,
    transform 240ms ease,
    opacity 220ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.real-photo.is-contain {
  padding: 78px 0 118px;
  object-fit: contain;
}

.real-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 6, 0.7), transparent 23%),
    linear-gradient(90deg, rgba(5, 7, 5, 0.35), transparent 30%, transparent 68%, rgba(5, 7, 5, 0.44)),
    linear-gradient(0deg, rgba(5, 7, 5, 0.8), transparent 31%);
}

.real-topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 26px;
  pointer-events: none;
}

.real-back,
.real-top-actions,
.real-brand {
  pointer-events: auto;
}

.real-back {
  display: inline-flex;
  width: max-content;
  height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 14, 11, 0.72);
  color: #fff9e9;
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.real-back:hover {
  border-color: #dfbd76;
  background: rgba(45, 35, 25, 0.88);
}

.real-back svg {
  width: 17px;
}

.real-brand {
  display: grid;
  justify-items: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.real-brand span {
  color: #e1bd73;
  font-size: 10px;
  font-weight: 600;
}

.real-brand strong {
  margin-top: 2px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 21px;
  font-weight: 500;
}

.real-top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.real-hotspots {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.real-hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffaf0;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.real-hotspot-dot {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(139, 42, 32, 0.9);
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.42);
  transition: 180ms ease;
}

.real-hotspot-dot::before {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  content: "";
  animation: hotspot-pulse 2.4s ease-out infinite;
}

.real-hotspot svg {
  width: 17px;
  height: 17px;
}

.real-hotspot-label {
  max-width: 150px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 15, 12, 0.78);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.26);
  font-size: 11px;
  line-height: 1.35;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.real-hotspot:hover .real-hotspot-dot {
  border-color: #f2d290;
  background: #b34332;
  transform: scale(1.1);
}

.real-story {
  position: absolute;
  z-index: 6;
  top: 104px;
  right: 26px;
  display: flex;
  width: min(370px, calc(100vw - 52px));
  max-height: calc(100vh - 244px);
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 18, 14, 0.9);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transition:
    opacity 220ms ease,
    transform 260ms ease;
}

.real-story.is-collapsed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 30px));
}

.real-story-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.real-story-head p {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
}

.real-story-head p span {
  padding: 4px 7px;
  border: 1px solid rgba(224, 189, 115, 0.35);
  color: #e7c67d;
  font-size: 9px;
}

.real-story h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.24;
}

.real-story-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: white;
  cursor: pointer;
}

.real-story-close:hover {
  border-color: #e0bd73;
}

.real-story-close svg {
  width: 16px;
}

.real-summary {
  margin: 18px 0 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.8;
}

.real-facts {
  display: grid;
  gap: 8px;
}

.real-facts > div {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #d8d7cf;
  font-size: 11px;
  line-height: 1.55;
}

.real-facts svg {
  width: 14px;
  color: #dcb86e;
}

.real-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  text-decoration: none;
}

.real-source:hover {
  color: #f0d18e;
}

.real-source svg {
  width: 14px;
}

.real-gesture {
  position: absolute;
  z-index: 5;
  bottom: 126px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 13, 10, 0.68);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.real-gesture svg {
  width: 14px;
}

.real-scene-rail {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: 108px;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 12, 9, 0.91);
  backdrop-filter: blur(18px);
}

.real-scene-list {
  display: flex;
  min-width: 0;
  gap: 7px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.real-scene-list::-webkit-scrollbar {
  display: none;
}

.real-scene-button {
  position: relative;
  width: 148px;
  height: 78px;
  flex: 0 0 148px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #182019;
  color: white;
  cursor: pointer;
  text-align: left;
}

.real-scene-button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 6, 0.88));
}

.real-scene-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: 180ms ease;
}

.real-scene-button:hover,
.real-scene-button.is-active {
  border-color: #dfbd76;
}

.real-scene-button:hover img,
.real-scene-button.is-active img {
  opacity: 1;
  transform: scale(1.04);
}

.real-scene-number,
.real-scene-name {
  position: absolute;
  z-index: 1;
  left: 9px;
}

.real-scene-number {
  top: 7px;
  color: #efd18e;
  font-size: 8px;
}

.real-scene-name {
  right: 8px;
  bottom: 8px;
  overflow: hidden;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-step {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #ecd092;
  cursor: pointer;
}

.real-step:hover {
  border-color: #dfbd76;
  background: rgba(213, 174, 102, 0.12);
}

.real-step svg {
  width: 18px;
}

.scene-stage.is-real > .scene-canvas,
.scene-stage.is-real > .topbar,
.scene-stage.is-real > .scene-hud,
.scene-stage.is-real > .scene-caption,
.scene-stage.is-real > .info-panel,
.scene-stage.is-real > .welcome,
.scene-stage.is-real > .spot-rail,
.scene-stage.is-real > .interior-mode-ui {
  visibility: hidden;
}

@keyframes hotspot-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.82);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}

.about-dialog {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 10, 7, 0.76);
  backdrop-filter: blur(8px);
}

.about-dialog[hidden] {
  display: none;
}

.about-card {
  position: relative;
  width: min(520px, 100%);
  padding: 40px;
  border: 1px solid rgba(213, 174, 102, 0.3);
  background: #182019;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

.source-list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.source-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e7d5aa;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  text-decoration: none;
}

.source-list a:hover {
  border-color: rgba(213, 174, 102, 0.5);
}

.source-list svg {
  width: 16px;
}

.scene-label {
  display: flex;
  min-width: 66px;
  transform: translate(-50%, -100%);
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(80, 25, 21, 0.82);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  color: #fff5de;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  transition: 160ms ease;
}

.scene-label::after {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(80, 25, 21, 0.82);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.scene-label:hover,
.scene-label.is-active {
  border-color: #f0d69e;
  background: #b84634;
  transform: translate(-50%, -100%) translateY(-3px);
}

.scene-stage:has(.info-panel.is-open) .scene-label {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 901px) {
  .scene-stage:has(.info-panel.is-open) .scene-hud {
    right: min(438px, calc(100vw - 180px));
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand h1 {
    font-size: 20px;
  }

  .brand-kicker {
    display: none;
  }

  .about-button span {
    display: none;
  }

  .about-button {
    width: 42px;
    padding: 0;
  }

  .scene-hud {
    top: 82px;
    right: 18px;
  }

  .welcome {
    top: auto;
    bottom: 126px;
    left: 18px;
    width: min(420px, calc(100vw - 36px));
    transform: none;
  }

  .welcome.is-hidden {
    transform: translateY(18px);
  }

  .welcome h2 {
    font-size: 35px;
  }

  .welcome > p:not(.welcome-kicker) {
    margin: 13px 0 17px;
    font-size: 12px;
  }

  .scene-caption {
    display: none;
  }

  .spot-rail {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
  }

  .spot-rail-title {
    padding: 0 5px;
  }

  .spot-list {
    grid-template-columns: repeat(8, 88px);
  }

  .spot-button {
    min-width: 88px;
    height: 54px;
  }

  .info-panel {
    top: auto;
    right: 12px;
    bottom: 84px;
    left: 12px;
    width: auto;
    max-height: min(590px, calc(100vh - 164px));
    transform: translateY(24px);
  }

  .info-panel.is-open {
    transform: translateY(0);
  }

  .panel-image-wrap {
    height: 180px;
  }

  .panel-content {
    padding: 20px;
  }

  .interior-heading {
    top: 18px;
    left: 18px;
  }

  .walk-controls {
    bottom: 18px;
    left: 18px;
  }

  .real-topbar {
    padding: 14px;
  }

  .real-back {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .real-back span {
    display: none;
  }

  .real-story {
    top: auto;
    right: 12px;
    bottom: 102px;
    left: 12px;
    width: auto;
    max-height: min(46vh, 390px);
    padding: 18px;
  }

  .real-story.is-collapsed {
    transform: translateY(calc(100% + 24px));
  }

  .real-story h2 {
    font-size: 25px;
  }

  .real-summary {
    margin: 12px 0;
    font-size: 12px;
    line-height: 1.65;
  }

  .real-source {
    margin-top: 12px;
  }

  .real-gesture {
    display: none;
  }

  .real-scene-rail {
    height: 90px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 5px;
    padding: 8px;
  }

  .real-step {
    width: 36px;
    height: 36px;
  }

  .real-scene-button {
    width: 116px;
    height: 66px;
    flex-basis: 116px;
  }

  .real-photo.is-contain {
    padding: 70px 0 100px;
  }

  .real-hotspot-dot {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .real-hotspot-label {
    max-width: 108px;
    padding: 5px 7px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
  }
}

@media (max-width: 520px) {
  .top-actions .icon-button:first-child {
    display: none;
  }

  .view-button {
    width: 42px;
    padding: 0;
  }

  .view-button span {
    display: none;
  }

  .scene-controls {
    flex-direction: column;
  }

  .welcome h2 {
    font-size: 29px;
  }

  .welcome-kicker {
    margin-bottom: 8px;
  }

  .welcome > p:not(.welcome-kicker) {
    display: none;
  }

  .primary-button {
    height: 44px;
  }

  .spot-rail {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .spot-rail-title span {
    font-size: 10px;
  }

  .spot-rail-title strong {
    font-size: 17px;
  }

  .info-panel {
    max-height: calc(100vh - 154px);
  }

  .panel-image-wrap {
    min-height: 138px;
    height: 138px;
  }

  .panel-content h2 {
    font-size: 26px;
  }

  .panel-summary {
    margin-bottom: 4px;
  }

  .about-card {
    padding: 32px 24px 24px;
  }

  .interior-heading {
    align-items: flex-start;
  }

  .interior-heading h2 {
    font-size: 20px;
  }

  .interior-back {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .interior-back span {
    display: none;
  }

  .walk-controls {
    grid-template-columns: repeat(3, 48px);
    grid-template-rows: repeat(2, 48px);
  }

  .real-brand strong {
    font-size: 17px;
  }

  .real-brand span {
    font-size: 8px;
  }

  .real-story-head p {
    margin-bottom: 7px;
  }

  .real-story h2 {
    font-size: 22px;
  }

  .real-facts {
    display: none;
  }

  .real-hotspot-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
