:root {
  color-scheme: dark;
  --ivory: #f8f2eb;
  --ivory-2: #ece0d5;
  --ink: #2b2027;
  --ink-soft: #6f626a;
  --plum: #5d3049;
  --plum-2: #81516a;
  --rose: #c8899f;
  --gold: #c6a067;
  --sage: #91a497;
  --glass: rgba(34, 23, 29, 0.56);
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 80px rgba(20, 12, 16, 0.3);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible {
  outline: 2px solid #f3d594;
  outline-offset: 3px;
}

.app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  background: #2d2228;
  isolation: isolate;
}

.stage,
#vr-canvas,
.fallback-panorama,
.decal-layer,
.stage-vignette,
.scene-wash {
  position: absolute;
  inset: 0;
}

.stage {
  cursor: grab;
  background: #2d2228;
  touch-action: none;
}

.stage.is-dragging {
  cursor: grabbing;
}

#vr-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  transition: opacity 0.55s ease, filter 0.55s ease;
}

.fallback-panorama {
  display: none;
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 50% 50%;
  transform: none;
  filter: contrast(1.035) saturate(1.025);
  transition: background-image 0.45s ease;
}

.app.is-fallback #vr-canvas {
  display: none;
}

.app.is-fallback .fallback-panorama {
  display: block;
}

.stage-vignette {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 13, 17, 0.5) 0%, transparent 23%, transparent 64%, rgba(20, 13, 17, 0.72) 100%),
    linear-gradient(90deg, rgba(18, 11, 15, 0.3), transparent 22%, transparent 75%, rgba(18, 11, 15, 0.23));
}

.scene-wash {
  pointer-events: none;
  opacity: 0;
  background: #efe4da;
  transition: opacity 0.36s ease;
}

.stage.is-switching .scene-wash {
  opacity: 0.82;
}

.loading-state {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 14px;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.stage.is-loading .loading-state {
  opacity: 1;
}

.loading-orbit {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top-color: #efd293;
  border-radius: 50%;
  animation: orbit 1.1s linear infinite;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(22px, env(safe-area-inset-top)) 28px 0;
  pointer-events: none;
}

.topbar button {
  pointer-events: auto;
}

.brand-home {
  width: 230px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 6px 20px rgba(29, 17, 23, 0.22));
  transition: transform 0.25s ease;
}

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

.brand-lockup-ui {
  --mark-size: 72px;
  --name-size: 30px;
  --tag-size: 9px;
  display: grid;
  grid-template-columns: var(--mark-size) 1px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 22px 10px 10px;
  border: 1px solid rgba(198, 160, 103, 0.84);
  border-radius: 999px;
  color: var(--plum);
  background: rgba(255, 250, 245, 0.97);
  box-shadow: 0 14px 36px rgba(31, 17, 24, 0.16);
}

.brand-lockup-ui > img {
  display: block;
  width: var(--mark-size);
  height: var(--mark-size);
}

.brand-divider {
  width: 1px;
  height: 70%;
  background: rgba(198, 160, 103, 0.65);
}

.brand-words {
  display: grid;
  align-content: center;
  min-width: 0;
}

.brand-words strong {
  overflow: hidden;
  font-family: "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
  font-size: var(--name-size);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.22;
  white-space: nowrap;
}

.brand-words > i {
  display: block;
  width: 100%;
  height: 1px;
  margin: 3px 0 5px;
  background: linear-gradient(90deg, var(--gold), rgba(198, 160, 103, 0.18));
}

.brand-words small {
  overflow: hidden;
  color: #8a6a77;
  font-size: var(--tag-size);
  font-style: normal;
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.brand-lockup-ui--header {
  --mark-size: 43px;
  --name-size: 20px;
  --tag-size: 7px;
  gap: 9px;
  padding: 5px 13px 5px 5px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-button,
.icon-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(35, 23, 30, 0.56);
  box-shadow: 0 10px 32px rgba(18, 10, 14, 0.12);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.tool-button:hover,
.icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 210, 147, 0.64);
  background: rgba(71, 42, 57, 0.82);
}

.tool-button.is-active {
  border-color: rgba(239, 210, 147, 0.54);
  background: rgba(93, 48, 73, 0.86);
}

#gyro-button.is-active {
  box-shadow:
    0 0 0 4px rgba(231, 199, 134, 0.14),
    0 10px 32px rgba(18, 10, 14, 0.18);
}

#gyro-button.is-active > span {
  animation: gyro-ready 1.8s ease-in-out infinite;
}

@keyframes gyro-ready {
  0%, 100% { opacity: 0.72; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

.tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.brand-dot {
  background: #e7c786;
  box-shadow: 0 0 0 4px rgba(231, 199, 134, 0.16);
}

.icon-button {
  width: 44px;
  padding: 0;
  font-size: 19px;
}

.scene-copy {
  position: absolute;
  z-index: 10;
  left: 32px;
  bottom: 156px;
  width: min(520px, calc(100vw - 64px));
  pointer-events: none;
  text-shadow: 0 2px 20px rgba(20, 11, 16, 0.42);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.stage.is-switching ~ .scene-copy {
  opacity: 0;
  transform: translateY(9px);
}

.scene-kicker,
.intro-eyebrow,
.detail-kind {
  margin: 0 0 12px;
  color: #ecd39e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scene-copy h1 {
  margin: 0 0 12px;
  font-family: "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.scene-copy > p:last-child {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.85;
}

.view-hint {
  position: absolute;
  z-index: 10;
  right: 30px;
  bottom: 158px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(35, 23, 30, 0.48);
  backdrop-filter: blur(14px);
  font-size: 11px;
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.view-hint.is-hidden {
  opacity: 0;
}

.drag-glyph {
  color: #efd293;
  font-size: 17px;
}

.scene-rail {
  position: absolute;
  z-index: 16;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 0 28px max(22px, env(safe-area-inset-bottom));
}

.scene-buttons {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 176px);
  gap: 12px;
  max-width: calc(100vw - 190px);
  padding-top: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}

.scene-buttons::-webkit-scrollbar {
  display: none;
}

.scene-button {
  position: relative;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #fff;
  background: #4a3841;
  cursor: pointer;
  isolation: isolate;
  scroll-snap-align: start;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.scene-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(23, 14, 19, 0.82));
}

.scene-button img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) brightness(0.86);
  transition: transform 0.5s ease, filter 0.3s ease;
}

.scene-button span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.scene-button small {
  color: #efd293;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.scene-button:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 210, 147, 0.52);
}

.scene-button:hover img {
  transform: scale(1.05);
  filter: saturate(0.95) brightness(0.92);
}

.scene-button.is-current {
  border-color: #e4c27f;
  box-shadow: 0 0 0 1px rgba(228, 194, 127, 0.22), 0 15px 32px rgba(18, 10, 14, 0.24);
}

.scene-button.is-current::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #e4c27f;
  box-shadow: 0 0 16px #e4c27f;
}

.rail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.17em;
}

.rail-line {
  width: 96px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.rail-line i {
  display: block;
  width: 25%;
  height: 100%;
  background: #e4c27f;
  transition: width 0.35s ease;
}

.decal-layer,
.hotspot-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.decal-layer {
  z-index: 7;
}

.hotspot-layer {
  z-index: 8;
}

.scene-decal {
  position: absolute;
  left: var(--decal-x, 50%);
  top: var(--decal-y, 50%);
  width: min(var(--decal-width, 120px), 42vw);
  color: #5d3049;
  opacity: 0;
  transform: var(--decal-transform, translate(-50%, -50%));
  transform-origin: center;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(45, 25, 34, 0.2));
  transition: opacity 0.18s ease;
  will-change: left, top, transform;
}

.scene-decal.is-visible {
  opacity: 0.92;
}

.scene-decal--mark img {
  display: block;
  width: 100%;
  height: auto;
}

.scene-decal--lockup {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  gap: clamp(6px, 0.8vw, 11px);
  padding: clamp(6px, 0.7vw, 10px) clamp(10px, 1.1vw, 16px) clamp(6px, 0.7vw, 10px) clamp(7px, 0.8vw, 11px);
  border: 1px solid rgba(184, 138, 79, 0.72);
  border-radius: 999px;
  background: rgba(253, 248, 242, 0.9);
  box-shadow: 0 6px 18px rgba(45, 25, 34, 0.12);
}

.scene-decal--lockup > img {
  flex: 0 0 27%;
  width: 27%;
}

.scene-decal--lockup > span {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.1;
}

.scene-decal strong {
  font-family: "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.scene-decal--lockup strong {
  font-size: clamp(8px, 1.05vw, 24px);
}

.scene-decal--lockup small {
  margin-top: 5%;
  color: #8a6a77;
  font-size: clamp(4px, 0.38vw, 9px);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.scene-decal--wordmark {
  text-align: center;
  color: #5d3049;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.scene-decal--wordmark strong {
  font-size: clamp(10px, 1.3vw, 24px);
}

.scene-decal.tone-fabric,
.scene-decal.tone-wood,
.scene-decal.tone-metal,
.scene-decal.tone-glass,
.scene-decal.tone-gold {
  mix-blend-mode: multiply;
}

.scene-decal.tone-fabric {
  opacity: 0;
  filter: saturate(0.78) contrast(0.9) drop-shadow(0 1px 1px rgba(45, 25, 34, 0.18));
}

.scene-decal.tone-fabric.is-visible {
  opacity: 0.72;
}

.scene-decal.tone-fabric.scene-decal--lockup {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scene-decal.tone-fabric.scene-decal--lockup small {
  display: none;
}

.scene-decal.tone-glass.is-visible {
  opacity: 0.52;
}

.scene-decal.tone-metal.is-visible,
.scene-decal.tone-gold.is-visible {
  opacity: 0.78;
}

.hotspot {
  position: absolute;
  left: var(--hotspot-x, 50%);
  top: var(--hotspot-y, 50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: #fff;
  background: none;
  opacity: 0;
  margin-left: var(--hotspot-shift-x, 0px);
  margin-top: var(--hotspot-shift-y, 0px);
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hotspot.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.hotspot-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(93, 48, 73, 0.87);
  box-shadow: 0 6px 26px rgba(29, 15, 23, 0.36);
  backdrop-filter: blur(10px);
}

.hotspot-core::before,
.hotspot-core::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(239, 210, 147, 0.34);
  border-radius: 50%;
  animation: pulse 2.5s ease-out infinite;
}

.hotspot-core::after {
  animation-delay: 1.15s;
}

@keyframes pulse {
  0% { opacity: 0; transform: scale(0.72); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.45); }
}

.hotspot-core img {
  width: 25px;
  height: 25px;
}

.hotspot-label {
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  text-align: left;
  background: rgba(35, 23, 30, 0.72);
  box-shadow: 0 6px 24px rgba(20, 11, 16, 0.22);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hotspot.is-brand .hotspot-label {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.hotspot.is-brand:hover .hotspot-label,
.hotspot.is-brand:focus-visible .hotspot-label,
.hotspot.is-brand:focus-within .hotspot-label {
  opacity: 1;
  transform: translateX(0);
}

.hotspot-label strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hotspot-label small {
  color: #e6ca91;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.hotspot.is-edge-right {
  flex-direction: row-reverse;
}

.hotspot.is-edge-right .hotspot-label {
  text-align: right;
}

.hotspot.is-jump {
  flex-direction: column-reverse;
  gap: 8px;
  transform: translate(-50%, calc(-100% - var(--jump-lift-y, 0px))) scale(0.8);
  transform-origin: center bottom;
}

.hotspot.is-jump.is-visible {
  transform: translate(-50%, calc(-100% - var(--jump-lift-y, 0px))) scale(1);
}

.hotspot.is-jump .hotspot-core {
  display: flex;
  width: 132px;
  height: 86px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(93, 48, 73, 0.64) 0 24%, rgba(93, 48, 73, 0.2) 52%, transparent 73%);
  box-shadow: none;
  backdrop-filter: none;
  transform: perspective(170px) rotateX(49deg);
  transform-origin: center bottom;
}

.hotspot.is-jump .hotspot-core::before {
  inset: 5px 8px;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  animation: ground-pulse 1.9s ease-out infinite;
}

.hotspot.is-jump .hotspot-core::after {
  display: none;
}

.ground-chevron {
  display: block;
  width: 76px;
  height: 34px;
  flex: 0 0 auto;
  background: #fff;
  clip-path: polygon(0 66%, 50% 8%, 100% 66%, 84% 84%, 50% 44%, 16% 84%);
  filter: drop-shadow(0 3px 4px rgba(34, 19, 27, 0.58));
}

.ground-chevron:first-child {
  opacity: 0.64;
  transform: translateY(8px) scale(0.82);
}

.ground-chevron:last-child {
  transform: translateY(-3px);
}

@keyframes ground-pulse {
  0% { opacity: 0; transform: scale(0.58); }
  35% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1.16); }
}

.hotspot.is-jump .hotspot-label {
  padding: 8px 14px;
  border-radius: 999px;
  text-align: center;
  background: rgba(38, 25, 32, 0.84);
  box-shadow: 0 8px 24px rgba(20, 11, 16, 0.3);
}

.hotspot.is-jump .hotspot-label strong {
  font-size: 14px;
}

.hotspot.is-jump .hotspot-label small {
  display: none;
}

.app:not(.show-brand-hotspots) .hotspot.is-brand {
  display: none;
}

.map-panel,
.detail-panel,
.brand-guide {
  position: absolute;
  z-index: 40;
  color: var(--ink);
  background: rgba(250, 246, 241, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.mobile-help-panel {
  width: min(430px, calc(100vw - 32px));
}

.mobile-help-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mobile-step;
}

.mobile-help-steps li {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 9px 10px 9px 48px;
  border: 1px solid rgba(93, 48, 73, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  counter-increment: mobile-step;
}

.mobile-help-steps li::before {
  content: counter(mobile-step);
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--plum);
  font-size: 11px;
}

.mobile-help-steps strong {
  color: var(--plum);
  font-size: 12px;
}

.mobile-help-steps span,
.mobile-help-note {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

.mobile-help-note {
  margin: 12px 2px 14px;
}

.mobile-share-button {
  width: 100%;
  justify-content: space-between;
}

.map-panel {
  top: 84px;
  right: 28px;
  width: min(520px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  opacity: 0;
  transform: translateX(28px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel-heading p {
  margin: 0 0 4px;
  color: var(--plum-2);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.panel-heading h2,
.detail-panel h2,
.brand-guide h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.panel-heading h2 {
  font-size: 23px;
}

.panel-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(93, 48, 73, 0.13);
  border-radius: 50%;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.floor-map {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(93, 48, 73, 0.1);
  border-radius: 15px;
  background: #efe7df;
}

.floor-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-shell {
  fill: #f8f3ee;
  stroke: #bea98f;
  stroke-width: 2;
}

.map-wall {
  fill: none;
  stroke: #c3afa0;
  stroke-width: 1.3;
}

.map-curve {
  fill: none;
  stroke: #c69878;
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.map-path {
  fill: none;
  stroke: rgba(184, 138, 79, 0.78);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}

.map-door {
  fill: none;
  stroke: #8f5f75;
  stroke-width: 5;
  stroke-linecap: round;
}

.floor-map text {
  fill: #9b898b;
  font-size: 10px;
  letter-spacing: 1px;
  text-anchor: middle;
}

.floor-map .map-zone {
  fill: #69565f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.floor-map .map-dim {
  fill: #a17b8c;
  font-size: 9px;
  text-anchor: start;
}

.floor-map .map-front {
  fill: #5d3049;
  font-size: 11px;
  font-weight: 700;
}

.map-fixtures rect,
.map-fixtures circle {
  fill: rgba(210, 190, 176, 0.38);
  stroke: #b79e90;
  stroke-width: 1.2;
}

.map-fixtures .map-bed {
  fill: rgba(239, 222, 211, 0.72);
  stroke: #9b7182;
}

.map-fixtures .map-cabinet {
  fill: rgba(201, 177, 145, 0.4);
  stroke: #a88666;
}

.map-fixtures text {
  fill: #78676d;
  font-size: 8px;
  letter-spacing: 0;
}

.map-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  color: #6f626a;
  background: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: 8px;
  white-space: nowrap;
}

.map-node span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #a9989e;
  box-shadow: 0 3px 10px rgba(46, 31, 38, 0.18);
  font-size: 9px;
}

.map-node:hover span,
.map-node.is-current span {
  background: var(--plum);
  box-shadow: 0 0 0 5px rgba(93, 48, 73, 0.13);
}

.map-node.is-current {
  color: var(--plum);
  font-weight: 700;
}

.map-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  color: #7b6d73;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-current { background: var(--plum); }
.legend-brand { background: var(--gold); }

.detail-panel {
  top: 50%;
  right: 28px;
  width: min(360px, calc(100vw - 32px));
  padding: 30px;
  border-radius: 24px;
  opacity: 0;
  transform: translate(32px, -50%);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.detail-panel.is-open {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.detail-mark {
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid rgba(198, 160, 103, 0.38);
  border-radius: 50%;
  background: #fffaf4;
}

.detail-mark img {
  width: 100%;
  height: 100%;
}

.detail-panel h2 {
  margin-bottom: 13px;
  color: var(--plum);
  font-size: 28px;
}

.detail-panel > p:not(.detail-kind) {
  margin: 0;
  color: #6c6066;
  font-size: 13px;
  line-height: 1.9;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.detail-spec {
  padding: 12px;
  border-radius: 12px;
  background: #eee5dd;
}

.detail-spec span,
.detail-spec strong {
  display: block;
}

.detail-spec span {
  margin-bottom: 4px;
  color: #99898f;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.detail-spec strong {
  color: var(--plum);
  font-size: 11px;
  font-weight: 600;
}

.intro {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  padding: 7vw;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(35, 23, 30, 0.95) 0%, rgba(35, 23, 30, 0.82) 39%, rgba(35, 23, 30, 0.22) 75%),
    linear-gradient(180deg, rgba(35, 23, 30, 0.12), rgba(35, 23, 30, 0.55));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease, visibility 0s linear 0.75s;
  visibility: hidden;
}

.app.is-intro .intro {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.app.is-intro .topbar,
.app.is-intro .scene-copy,
.app.is-intro .scene-rail,
.app.is-intro .view-hint,
.app.is-intro .hotspot-layer {
  opacity: 0;
  pointer-events: none;
}

.intro-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.intro-content {
  position: relative;
  z-index: 2;
  width: min(620px, 70vw);
}

.intro-logo {
  width: min(360px, 65vw);
  margin: 0 0 40px;
}

.intro-content h2 {
  margin: 0 0 22px;
  font-family: "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
  font-size: clamp(42px, 5.5vw, 78px);
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.3;
}

.intro-copy {
  max-width: 500px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 2;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.primary-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--plum);
  box-shadow: 0 13px 35px rgba(31, 15, 24, 0.25);
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: gap 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.primary-button:hover {
  gap: 54px;
  transform: translateY(-2px);
  background: #6f3b57;
}

.primary-button.compact {
  gap: 24px;
  margin-top: 10px;
}

.text-button {
  padding: 14px 12px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.text-button:hover {
  color: #efd293;
}

.intro-notes {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.intro-notes span + span::before {
  content: "·";
  margin-right: 16px;
  color: #c6a067;
}

.mobile-guide {
  width: min(520px, 100%);
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.intro-seal {
  position: absolute;
  right: 6vw;
  bottom: -15vw;
  width: min(45vw, 700px);
  opacity: 0.12;
  filter: saturate(0);
  transform: rotate(-9deg);
}

.intro-seal img {
  width: 100%;
}

.brand-guide {
  z-index: 70;
  inset: 50% auto auto 50%;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(330px, 1.1fr);
  width: min(940px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  overflow: auto;
  border-radius: 28px;
  opacity: 0;
  transform: translate(-50%, -47%) scale(0.97);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.brand-guide.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.brand-guide-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.brand-guide-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: linear-gradient(145deg, #e9ddd2, #f8f2eb);
}

.brand-guide-visual .brand-lockup-ui {
  --mark-size: 82px;
  --name-size: 35px;
  --tag-size: 10px;
  width: 100%;
  transform: rotate(-4deg);
}

.brand-guide-visual p {
  margin: 28px 0 0;
  color: #806f76;
  font-size: 12px;
  line-height: 1.8;
}

.brand-guide-copy {
  padding: 58px 54px;
}

.brand-guide h2 {
  margin-bottom: 18px;
  color: var(--plum);
  font-size: 31px;
  line-height: 1.45;
}

.brand-guide-copy > p:not(.detail-kind) {
  margin: 0;
  color: #6f6268;
  font-size: 13px;
  line-height: 2;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
}

.swatches span {
  padding: 38px 8px 9px;
  border-radius: 10px;
  color: #fff;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.swatches span:last-child {
  color: #64545b;
}

.brand-guide ul {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: #6f6268;
  font-size: 12px;
  line-height: 2;
}

.brand-guide li::before {
  content: "—";
  margin-right: 10px;
  color: var(--gold);
}

.toast {
  position: absolute;
  z-index: 90;
  left: 50%;
  bottom: 28px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(35, 23, 30, 0.82);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .brand-home { width: 190px; }
  .tool-button { padding: 0 12px; }
  .scene-buttons { grid-auto-columns: minmax(115px, 150px); max-width: 100%; }
  .scene-button { height: 68px; }
  .scene-rail { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rail-meta { display: none; }
  .scene-copy { bottom: 136px; }
  .view-hint { bottom: 137px; }
  .brand-guide { grid-template-columns: 1fr; }
  .brand-guide-visual { padding: 44px 60px 32px; }
  .brand-guide-visual .brand-lockup-ui { width: min(480px, 100%); margin: auto; }
}

@media (max-width: 640px) {
  .topbar {
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  }
  .brand-home { flex: 0 0 190px; width: 190px; }
  .top-actions {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(70px + max(14px, env(safe-area-inset-bottom)));
    left: max(14px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: rgba(35, 23, 30, 0.7);
    box-shadow: 0 14px 38px rgba(18, 10, 14, 0.24);
    backdrop-filter: blur(20px);
  }
  .tool-button {
    width: auto;
    min-width: 0;
    min-height: 48px;
    gap: 5px;
    justify-content: center;
    padding: 0 7px;
    overflow: hidden;
    font-size: clamp(10px, 2.8vw, 12px);
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    touch-action: manipulation;
  }
  .top-actions .tool-button {
    box-shadow: none;
    backdrop-filter: none;
  }
  .tool-button span:not(.tool-dot) { flex: 0 0 auto; font-size: 15px; line-height: 1; }
  .tool-button .tool-dot { flex: 0 0 auto; width: 7px; height: 7px; }
  .tool-button:hover { transform: none; }
  .tool-button:active { transform: scale(0.97); }
  #fullscreen-button { display: none; }
  .scene-copy { left: 18px; bottom: clamp(232px, 31svh, 264px); width: calc(100vw - 36px); }
  .scene-copy h1 { font-size: 34px; }
  .scene-copy > p:last-child { display: none; }
  .scene-kicker { margin-bottom: 8px; }
  .view-hint { right: 18px; bottom: 181px; font-size: 0; width: 42px; height: 42px; justify-content: center; padding: 0; }
  .scene-rail { padding: 0 14px max(14px, env(safe-area-inset-bottom)); }
  .scene-buttons { grid-auto-columns: 112px; max-width: 100%; gap: 8px; scrollbar-width: none; }
  .scene-buttons::-webkit-scrollbar { display: none; }
  .scene-button { height: 60px; border-radius: 11px; }
  .scene-button span { left: 9px; right: 9px; bottom: 8px; font-size: 10px; }
  .scene-button small { display: none; }
  .hotspot-label { display: none; }
  .hotspot-core { width: 34px; height: 34px; }
  .hotspot.is-jump .hotspot-core { width: 146px; height: 92px; }
  .hotspot.is-jump .hotspot-label { display: none; }
  .map-panel { top: 72px; right: 16px; padding: 18px; }
  .mobile-help-panel { max-height: calc(100svh - 92px); overflow-y: auto; }
  .detail-panel { left: 16px; right: 16px; top: auto; bottom: 98px; width: auto; padding: 22px; transform: translateY(24px); }
  .detail-panel.is-open { transform: translateY(0); }
  .detail-mark { width: 54px; height: 54px; margin-bottom: 12px; }
  .detail-panel h2 { font-size: 23px; }
  .detail-panel > p:not(.detail-kind) { line-height: 1.7; }
  .detail-specs { margin-top: 14px; }
  .intro { padding: 26px; background: linear-gradient(180deg, rgba(35, 23, 30, 0.78), rgba(35, 23, 30, 0.95)); }
  .intro-content { flex: 0 0 calc(100vw - 52px); width: calc(100vw - 52px); max-width: calc(100vw - 52px); }
  .intro-logo { width: 285px; max-width: 88vw; margin-bottom: 38px; }
  .intro-logo { --mark-size: 58px; --name-size: 23px; --tag-size: 7px; gap: 10px; padding: 7px 15px 7px 7px; }
  .intro-content h2 { width: 100%; max-width: 100%; font-size: clamp(34px, 10.5vw, 46px); letter-spacing: 0.035em; }
  .intro-copy { width: 100%; max-width: 100%; padding-right: 8px; overflow-wrap: anywhere; font-size: 12px; }
  .intro-actions { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; max-width: 100%; justify-content: space-between; }
  .text-button { text-align: left; }
  .intro-notes { flex-wrap: wrap; gap: 7px 12px; margin-top: 28px; }
  .intro-notes span + span::before { margin-right: 12px; }
  .mobile-guide { margin-top: 12px; font-size: 10px; line-height: 1.65; }
  .toast { bottom: calc(132px + max(14px, env(safe-area-inset-bottom))); }
  .brand-guide { width: calc(100vw - 24px); max-height: calc(100svh - 24px); border-radius: 20px; }
  .brand-guide-visual { padding: 50px 26px 24px; }
  .brand-guide-visual p { margin-top: 12px; }
  .brand-guide-copy { padding: 30px 26px 34px; }
  .brand-guide h2 { font-size: 26px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 340px) and (orientation: portrait) {
  .tool-button {
    gap: 3px;
    padding: 0 4px;
    font-size: 9.5px;
    letter-spacing: 0;
  }

  .tool-button span:not(.tool-dot) {
    font-size: 13px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .topbar {
    align-items: flex-start;
    padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  }

  .brand-home {
    flex: 0 0 154px;
    width: 154px;
  }

  .top-actions {
    position: static;
    display: flex;
    width: auto;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    gap: 6px;
  }

  .tool-button {
    width: auto;
    min-width: 0;
    min-height: 40px;
    gap: 5px;
    padding: 0 9px;
    overflow: hidden;
    font-size: 10px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .tool-button span:not(.tool-dot) {
    font-size: 14px;
  }

  #fullscreen-button {
    display: none;
  }

  .scene-copy {
    left: 28px;
    bottom: 126px;
    width: 34vw;
  }

  .scene-copy h1 {
    font-size: clamp(30px, 4.2vw, 42px);
  }

  .scene-copy > p:last-child {
    display: none;
  }

  .scene-kicker {
    margin-bottom: 7px;
  }

  .toast {
    bottom: 82px;
  }
}

@media (max-width: 560px) and (max-height: 500px) and (orientation: landscape) {
  .brand-home {
    flex-basis: 132px;
    width: 132px;
  }

  .tool-button {
    min-height: 38px;
    padding: 0 6px;
    font-size: 9px;
  }

  .tool-button span:not(.tool-dot) {
    font-size: 12px;
  }
}

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