:root {
  --ink-night: #061716;
  --ink-deep: #0a211f;
  --indigo: #123331;
  --indigo-soft: #1c4540;
  --moon: #f2ead8;
  --moon-soft: #d8d1be;
  --gold: #c6a56b;
  --gold-bright: #e1c78f;
  --gold-dark: #745d34;
  --herb: #6d8268;
  --cinnabar: #86483a;
  --title-font: "STZhongsong", "FZSong", "Songti SC", "SimSun", serif;
  --display-font: "FZKai-Z03", "STKaiti", "KaiTi", serif;
  --body-font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

html.redesign-pending body {
  visibility: hidden;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--moon);
  background: var(--ink-night);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: none;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.atlas-shell,
.atlas-shell * {
  box-sizing: border-box;
}

.atlas-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 640px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 17%, rgba(202, 178, 122, 0.13), transparent 23%),
    radial-gradient(circle at 24% 30%, rgba(61, 102, 91, 0.2), transparent 31%),
    linear-gradient(125deg, #0b2422 0%, #081b1b 46%, #061414 100%);
}

.atlas-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.2;
  background:
    repeating-linear-gradient(93deg, rgba(238, 227, 199, 0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(2deg, rgba(238, 227, 199, 0.025) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
}

.atlas-shell::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 9, 9, 0.42), transparent 14%, transparent 82%, rgba(1, 8, 8, 0.34)),
    linear-gradient(180deg, rgba(2, 11, 11, 0.16), transparent 27%, transparent 76%, rgba(2, 10, 10, 0.5));
}

.stage-frame {
  position: absolute;
  inset: 24px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(199, 169, 107, 0.26);
}

.stage-frame::before,
.stage-frame::after {
  position: absolute;
  width: 86px;
  height: 86px;
  content: "";
}

.stage-frame::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
}

.stage-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.world {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.landmark-photo {
  position: absolute;
  top: 8%;
  right: 15%;
  bottom: 13%;
  left: 31%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.2;
  transform: scale(1.015);
  transform-origin: 58% 58%;
  filter: saturate(0.32) contrast(1.16) brightness(0.46) sepia(0.12);
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 55% 52%, #000 0%, rgba(0, 0, 0, 0.96) 47%, rgba(0, 0, 0, 0.5) 64%, transparent 82%);
  mask-image: radial-gradient(ellipse 78% 78% at 55% 52%, #000 0%, rgba(0, 0, 0, 0.96) 47%, rgba(0, 0, 0, 0.5) 64%, transparent 82%);
  transition: opacity 850ms ease, transform 1100ms cubic-bezier(0.2, 0.72, 0.24, 1), filter 850ms ease;
}

.landmark-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(6, 23, 22, 0.48) 0%, transparent 30%, rgba(6, 20, 19, 0.16) 58%, rgba(5, 18, 17, 0.76) 100%),
    linear-gradient(90deg, rgba(6, 23, 22, 0.82) 0%, transparent 27%, transparent 72%, rgba(6, 20, 19, 0.48) 100%),
    rgba(22, 53, 49, 0.18);
}

.landmark-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

body[data-mode="market"] .landmark-photo {
  opacity: 0.48;
  transform: translateY(-8px) scale(1.055);
  filter: saturate(0.5) contrast(1.13) brightness(0.58) sepia(0.08);
}

.world-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.world-art .moon-disc,
.world-art .cloud-line,
.world-art .mountain-far,
.world-art .mountain-mid,
.world-art .mountain-near,
.world-art .market-architecture,
.world-art .city-architecture,
.world-art .herb-line,
.world-art .medicine-grid {
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.world-art .mountain-far {
  fill: #254943;
  opacity: 0.42;
}

.world-art .mountain-mid {
  fill: #143530;
  opacity: 0.76;
}

.world-art .mountain-near {
  fill: #09201e;
  opacity: 0.98;
}

.world-art .cloud-line {
  fill: none;
  stroke: rgba(224, 211, 178, 0.22);
  stroke-width: 2;
}

.world-art .medicine-grid {
  opacity: 0.1;
}

.world-art .city-architecture {
  opacity: 0.76;
  transform-origin: 25% 74%;
}

.world-art .market-architecture {
  visibility: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transform-origin: 61% 76%;
}

.world-art .herb-line {
  opacity: 0.48;
}

body[data-mode="market"] .world-art .medicine-grid {
  opacity: 0.22;
  transform: translateY(-12px);
}

body[data-mode="market"] .world-art .city-architecture {
  opacity: 0.34;
  transform: translateX(-18px);
}

body[data-mode="market"] .world-art .market-architecture {
  opacity: 0;
  transform: translateY(-8px) scale(1.025);
}

body[data-mode="market"] .world-art .herb-line {
  opacity: 0.68;
}

.mist-band {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 16%;
  height: 25%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  filter: blur(18px);
  background:
    radial-gradient(ellipse at 32% 52%, rgba(211, 218, 196, 0.14), transparent 45%),
    radial-gradient(ellipse at 72% 42%, rgba(209, 206, 178, 0.12), transparent 41%);
  transition: transform 900ms ease, opacity 700ms ease;
}

body[data-mode="market"] .mist-band {
  opacity: 0.38;
  transform: translateY(24px);
}

.vertical-inscription {
  position: absolute;
  top: 29%;
  right: 30px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(225, 206, 162, 0.56);
  font-family: var(--title-font);
  font-size: 13px;
  letter-spacing: 0.32em;
  writing-mode: vertical-rl;
}

.vertical-inscription::before {
  width: 1px;
  height: 74px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.topbar {
  position: absolute;
  top: clamp(38px, 5vh, 58px);
  left: clamp(52px, 6.2vw, 126px);
  right: clamp(52px, 6.2vw, 126px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}

.identity-seal {
  position: relative;
  display: grid;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(215, 186, 126, 0.72);
  background: rgba(78, 50, 31, 0.16);
  font-family: var(--display-font);
  font-size: 28px;
  line-height: 1;
  box-shadow: inset 0 0 0 5px rgba(196, 162, 96, 0.06);
}

.identity-seal::before,
.identity-seal::after {
  position: absolute;
  content: "";
  background: var(--gold);
}

.identity-seal::before {
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 1px;
  opacity: 0.18;
}

.identity-seal::after {
  top: 50%;
  right: 6px;
  left: 6px;
  height: 1px;
  opacity: 0.18;
}

.identity-copy {
  min-width: 0;
}

.identity-copy p,
.identity-copy h2,
.state-copy span,
.state-copy strong {
  margin: 0;
}

.identity-copy p {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.identity-copy h2 {
  margin-top: 7px;
  color: rgba(242, 234, 216, 0.92);
  font-family: var(--title-font);
  font-size: clamp(18px, 1.45vw, 26px);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.state-copy {
  display: grid;
  min-width: 132px;
  gap: 5px;
  padding-left: 18px;
  border-left: 1px solid rgba(198, 165, 107, 0.35);
}

.state-copy span {
  color: rgba(216, 209, 190, 0.56);
  font-size: 10px;
  letter-spacing: 0.24em;
}

.state-copy strong {
  color: var(--moon);
  font-family: var(--title-font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.back-button {
  display: inline-flex;
  min-width: 154px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  color: var(--moon);
  cursor: pointer;
  border: 1px solid rgba(199, 169, 107, 0.48);
  background: rgba(7, 25, 24, 0.7);
  letter-spacing: 0.08em;
  transition: color 180ms ease, background 180ms ease, transform 120ms ease;
}

.back-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.back-button:hover,
.back-button:focus-visible {
  color: var(--ink-night);
  outline: none;
  background: var(--gold-bright);
}

.back-button:active {
  transform: scale(0.97);
}

body[data-mode="city"] .back-button {
  display: none;
}

.hero-stage {
  position: absolute;
  top: clamp(150px, 17vh, 190px);
  left: clamp(56px, 6.8vw, 138px);
  z-index: 7;
  width: min(640px, 39vw);
}

.hero-content {
  transition: opacity 240ms ease, transform 360ms ease;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--gold);
  font-size: clamp(11px, 0.78vw, 14px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  width: 52px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}

.hero-title {
  margin: clamp(16px, 2vh, 22px) 0 0;
  color: var(--moon);
  font-family: var(--title-font);
  font-weight: 600;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.hero-title span,
.hero-title strong {
  display: block;
}

.hero-title span {
  color: rgba(231, 215, 180, 0.88);
  font-size: clamp(26px, 2.25vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.3em;
}

.hero-title strong {
  margin-top: 5px;
  font-size: clamp(78px, 6.9vw, 126px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.12em;
}

body[data-mode="market"] .hero-title span {
  letter-spacing: 0.18em;
}

body[data-mode="market"] .hero-title strong {
  font-size: clamp(66px, 6.2vw, 114px);
  letter-spacing: 0.08em;
}

.hero-tagline {
  margin: clamp(20px, 2.6vh, 30px) 0 0;
  color: var(--moon);
  font-family: var(--display-font);
  font-size: clamp(20px, 1.55vw, 29px);
  line-height: 1.5;
  letter-spacing: 0.13em;
}

.hero-summary {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(216, 209, 190, 0.62);
  font-size: clamp(14px, 0.93vw, 17px);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.city-entry {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(20px, 2.6vh, 30px);
}

.primary-entry {
  position: relative;
  display: inline-flex;
  width: min(390px, 31vw);
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px 16px 28px;
  overflow: hidden;
  color: #14201b;
  cursor: pointer;
  border: 0;
  background: linear-gradient(135deg, #e4cf9c 0%, #b99354 100%);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 249, 224, 0.45);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  transition: filter 180ms ease, transform 120ms ease, box-shadow 180ms ease;
}

.primary-entry::before {
  position: absolute;
  top: -42px;
  bottom: -42px;
  left: -34%;
  width: 26%;
  content: "";
  opacity: 0;
  background: rgba(255, 255, 255, 0.28);
  transform: skewX(-18deg);
  transition: left 500ms ease, opacity 180ms ease;
}

.primary-entry:hover::before,
.primary-entry:focus-visible::before {
  left: 116%;
  opacity: 1;
}

.primary-entry:hover,
.primary-entry:focus-visible {
  outline: 2px solid rgba(237, 211, 157, 0.68);
  outline-offset: 5px;
  filter: brightness(1.04);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.primary-entry:active {
  transform: translateY(2px) scale(0.985);
}

.primary-entry-copy {
  display: grid;
  gap: 5px;
  text-align: left;
}

.primary-entry-copy small {
  color: rgba(33, 34, 26, 0.56);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.primary-entry-copy strong {
  font-family: var(--title-font);
  font-size: clamp(19px, 1.3vw, 25px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.entry-arrow {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(33, 40, 31, 0.36);
  border-radius: 50%;
}

.entry-arrow svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.touch-hint {
  max-width: 120px;
  margin: 0;
  color: rgba(218, 207, 181, 0.52);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.14em;
}

body[data-mode="market"] .city-entry {
  display: none;
}

.market-ready {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: clamp(24px, 3vh, 34px);
  color: rgba(226, 216, 191, 0.7);
}

.market-ready::before {
  width: 54px;
  height: 1px;
  content: "";
  background: var(--gold);
}

.market-ready span {
  display: block;
  color: var(--gold-bright);
  font-family: var(--title-font);
  font-size: 16px;
  letter-spacing: 0.13em;
}

.market-ready small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

body[data-mode="market"] .market-ready {
  display: flex;
}

body[data-mode="market"] .hero-stage {
  top: clamp(152px, 17vh, 188px);
  width: min(430px, 27vw);
}

body[data-mode="market"] .hero-title span {
  font-size: clamp(22px, 1.7vw, 32px);
}

body[data-mode="market"] .hero-title strong {
  font-size: clamp(52px, 4.8vw, 84px);
  line-height: 1;
}

body[data-mode="market"] .hero-summary {
  display: -webkit-box;
  max-width: 390px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.city-preface {
  position: absolute;
  top: clamp(390px, 45vh, 510px);
  right: clamp(420px, 25vw, 520px);
  left: clamp(640px, 42vw, 790px);
  z-index: 9;
  display: grid;
  grid-template-columns: 40px 1px minmax(0, 1fr);
  gap: clamp(12px, 0.9vw, 18px);
  min-width: 0;
  padding: 16px 20px 16px 0;
  color: var(--moon);
  background:
    linear-gradient(90deg, rgba(5, 22, 20, 0.04), rgba(5, 22, 20, 0.52) 18%, rgba(7, 28, 26, 0.42) 72%, transparent),
    linear-gradient(180deg, transparent, rgba(198, 165, 107, 0.08), transparent);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
  transform: none;
  transition: opacity 360ms ease, transform 520ms ease, visibility 360ms ease;
}

.city-preface::before,
.city-preface::after {
  position: absolute;
  right: 4%;
  left: 56px;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(198, 165, 107, 0.54), rgba(198, 165, 107, 0.12), transparent);
}

.city-preface::before {
  top: 0;
}

.city-preface::after {
  bottom: 0;
}

.preface-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--gold-bright);
  font-family: var(--title-font);
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.preface-title span,
.preface-title strong {
  display: block;
}

.preface-title span {
  color: rgba(205, 187, 148, 0.48);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.preface-title strong {
  font-size: clamp(18px, 1.2vw, 23px);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.preface-divider {
  width: 1px;
  height: 100%;
  min-height: 104px;
  background: linear-gradient(180deg, transparent, rgba(198, 165, 107, 0.76) 15%, rgba(198, 165, 107, 0.24) 78%, transparent);
}

.preface-content {
  align-self: center;
}

.preface-kicker {
  margin: 0 0 13px;
  color: rgba(202, 183, 142, 0.46);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.preface-copy {
  margin: 0;
  color: rgba(230, 222, 202, 0.68);
  font-family: var(--title-font);
  font-size: clamp(14px, 0.88vw, 17px);
  line-height: 1.92;
  letter-spacing: 0.06em;
}

.preface-copy strong {
  color: rgba(231, 207, 156, 0.82);
  font-weight: 600;
}

body[data-mode="market"] .city-preface {
  display: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
}

.market-map-stage {
  position: absolute;
  top: clamp(206px, 22.8vh, 268px);
  right: clamp(434px, 25.8vw, 534px);
  bottom: clamp(164px, 18vh, 204px);
  left: clamp(504px, 31.9vw, 644px);
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 320ms ease, transform 420ms ease, visibility 320ms ease;
}

body[data-mode="market"] .market-map-stage {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.map-frame {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--moon);
  border: 1px solid rgba(198, 165, 107, 0.5);
  background:
    linear-gradient(135deg, rgba(6, 24, 22, 0.9), rgba(10, 34, 31, 0.72)),
    rgba(7, 27, 25, 0.72);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.26);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.map-frame::before {
  position: absolute;
  inset: 11px;
  z-index: 3;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(232, 203, 142, 0.18);
}

.map-head {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(198, 165, 107, 0.22);
  background: linear-gradient(90deg, rgba(5, 20, 19, 0.86), rgba(8, 31, 28, 0.62));
}

.map-head p,
.map-head h2 {
  margin: 0;
}

.map-head p {
  color: rgba(203, 190, 159, 0.56);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3em;
}

.map-head h2 {
  margin-top: 6px;
  color: var(--gold-bright);
  font-family: var(--title-font);
  font-size: clamp(19px, 1.4vw, 26px);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.map-reset {
  min-width: 72px;
  min-height: 42px;
  padding: 0 16px;
  color: rgba(242, 234, 216, 0.78);
  cursor: pointer;
  border: 1px solid rgba(198, 165, 107, 0.42);
  background: rgba(3, 16, 15, 0.52);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.map-reset:hover,
.map-reset:focus-visible {
  color: #15201b;
  outline: none;
  background: var(--gold-bright);
}

.map-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(198, 165, 107, 0.08), transparent 44%),
    #051513;
}

.map-viewport:active {
  cursor: grabbing;
}

.map-canvas {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  will-change: transform;
}

.map-canvas::before {
  content: none;
}

.map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.78);
  user-select: none;
  pointer-events: none;
}

.map-canvas::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 52%, transparent 38%, rgba(5, 18, 17, 0.12) 64%, rgba(3, 13, 12, 0.48) 100%),
    linear-gradient(180deg, rgba(3, 16, 15, 0.18), transparent 34%, rgba(3, 16, 15, 0.2));
}

.map-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.map-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: rgba(231, 220, 193, 0.68);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.map-note::before {
  width: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(225, 199, 143, 0.78), transparent);
}

.map-note::after {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: rgba(225, 199, 143, 0.92);
  box-shadow: 0 0 12px rgba(225, 199, 143, 0.32);
}

.map-note.note-east {
  color: rgba(214, 202, 172, 0.6);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.map-note.note-east::before {
  width: 14px;
  background: linear-gradient(90deg, rgba(225, 199, 143, 0.44), transparent);
}

.map-note.note-east::after {
  background: rgba(225, 199, 143, 0.5);
  box-shadow: none;
}

.map-hotspot {
  position: absolute;
  display: grid;
  min-width: 86px;
  min-height: 58px;
  place-items: center;
  padding: 0;
  color: #f1e7cc;
  cursor: pointer;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, color 180ms ease, filter 180ms ease;
}

.map-hotspot.hall {
  min-width: 92px;
  min-height: 60px;
  color: #fff3d3;
}

.map-hotspot.facility {
  min-width: 82px;
  min-height: 52px;
  color: #ffe7da;
}

.map-hotspot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(237, 211, 157, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 165, 107, 0.12) 0 34%, transparent 36% 100%);
  transform: translate(-50%, -50%);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.map-hotspot.hall::before {
  border-color: rgba(225, 199, 143, 0.38);
}

.map-hotspot.facility::before {
  border-color: rgba(244, 177, 145, 0.34);
}

.map-hotspot::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: #f0d79b;
  box-shadow: 0 0 14px rgba(225, 199, 143, 0.3);
  transform: translate(-50%, -50%);
}

.map-hotspot.hall::after {
  width: 10px;
  height: 10px;
  background: #f7dfaa;
}

.map-hotspot.facility::after {
  background: #ffd8c3;
  box-shadow: 0 0 12px rgba(210, 111, 91, 0.24);
}

.map-hotspot span {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  min-width: 74px;
  padding: 5px 10px;
  color: rgba(245, 236, 214, 0.9);
  border: 1px solid rgba(198, 165, 107, 0.22);
  background: rgba(4, 18, 17, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transform: translateX(-50%);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.map-hotspot.hall span {
  min-width: 56px;
  color: #fff6dc;
  border-color: rgba(225, 199, 143, 0.28);
  background: rgba(61, 42, 17, 0.72);
  font-size: 12px;
}

.map-hotspot.facility span {
  color: #ffe9de;
  border-color: rgba(210, 111, 91, 0.28);
  background: rgba(61, 29, 25, 0.74);
}

.map-hotspot:hover,
.map-hotspot:focus-visible,
.map-hotspot.active {
  outline: none;
  color: #fff8e5;
  filter: brightness(1.05);
  transform: translate(-50%, -50%) scale(1.06);
}

.map-hotspot:hover::before,
.map-hotspot:focus-visible::before,
.map-hotspot.active::before {
  border-color: rgba(237, 211, 157, 0.58);
  box-shadow: 0 0 0 10px rgba(225, 199, 143, 0.1), 0 0 18px rgba(225, 199, 143, 0.2);
  background: radial-gradient(circle, rgba(198, 165, 107, 0.18) 0 34%, transparent 36% 100%);
}

.map-hotspot:hover::after,
.map-hotspot:focus-visible::after,
.map-hotspot.active::after {
  background: #fff0b8;
}

.map-hotspot.facility:hover::before,
.map-hotspot.facility:focus-visible::before,
.map-hotspot.facility.active::before {
  border-color: rgba(244, 177, 145, 0.48);
  box-shadow: 0 0 0 10px rgba(210, 111, 91, 0.08), 0 0 18px rgba(210, 111, 91, 0.18);
}

.map-hotspot.facility:hover::after,
.map-hotspot.facility:focus-visible::after,
.map-hotspot.facility.active::after {
  background: #ffd7c3;
}

.map-guide {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px 16px;
  color: rgba(218, 207, 181, 0.62);
  border-top: 1px solid rgba(198, 165, 107, 0.16);
  background: rgba(3, 16, 15, 0.56);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.map-guide span::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  content: "";
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(225, 199, 143, 0.48);
}

.exhibit-wrap {
  position: absolute;
  top: clamp(150px, 17vh, 190px);
  right: clamp(46px, 5.4vw, 104px);
  bottom: clamp(190px, 21vh, 238px);
  z-index: 8;
  width: clamp(310px, 19.5vw, 366px);
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.28));
  transition: opacity 260ms ease, transform 420ms ease;
}

.exhibit-panel {
  width: 100%;
  height: 100%;
  padding: 1px;
  background: linear-gradient(145deg, var(--gold-bright), rgba(109, 87, 48, 0.5) 54%, var(--gold));
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.panel-surface {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: clamp(24px, 1.75vw, 32px);
  overflow: hidden;
  color: #20302a;
  background:
    radial-gradient(circle at 90% 10%, rgba(193, 165, 105, 0.21), transparent 29%),
    repeating-linear-gradient(91deg, rgba(60, 70, 54, 0.025) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, rgba(245, 238, 219, 0.94), rgba(217, 210, 187, 0.92));
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.panel-surface::before {
  position: absolute;
  inset: 12px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(112, 88, 45, 0.22);
}

.panel-head,
.panel-body,
.panel-foot {
  position: relative;
  z-index: 1;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-index {
  color: rgba(92, 75, 43, 0.38);
  font-family: var(--title-font);
  font-size: clamp(30px, 2.2vw, 40px);
  line-height: 1;
}

.panel-seal {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: rgba(250, 237, 207, 0.94);
  border: 1px solid rgba(93, 39, 29, 0.54);
  background: var(--cinnabar);
  font-family: var(--display-font);
  font-size: 16px;
  box-shadow: inset 0 0 0 4px rgba(255, 237, 203, 0.08);
}

.panel-body {
  margin-top: clamp(18px, 2.1vh, 26px);
}

.panel-kicker {
  margin: 0;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.panel-title {
  margin: 10px 0 0;
  color: #19312a;
  font-family: var(--title-font);
  font-size: clamp(27px, 1.82vw, 34px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.08em;
}

.panel-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: clamp(16px, 2vh, 22px) 0;
}

.panel-rule::before,
.panel-rule::after {
  height: 1px;
  content: "";
  background: rgba(116, 93, 52, 0.32);
}

.panel-rule::before {
  width: 54px;
}

.panel-rule::after {
  flex: 1;
}

.panel-rule span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-dark);
  transform: rotate(45deg);
}

.panel-desc {
  margin: 0;
  color: rgba(31, 48, 41, 0.78);
  font-size: clamp(12px, 0.78vw, 14px);
  line-height: 1.86;
  letter-spacing: 0.035em;
}

.panel-facts {
  display: grid;
  margin: clamp(18px, 2.4vh, 28px) 0 0;
  border-top: 1px solid rgba(93, 76, 44, 0.2);
}

.fact-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  min-height: clamp(44px, 4.8vh, 54px);
  margin: 0;
  border-bottom: 1px solid rgba(93, 76, 44, 0.17);
}

.fact-row dt,
.fact-row dd {
  margin: 0;
}

.fact-row dt {
  color: rgba(85, 75, 52, 0.58);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.fact-row dd {
  color: #22372f;
  font-family: var(--title-font);
  font-size: clamp(14px, 0.92vw, 17px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.panel-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 18px;
}

.panel-signature {
  margin: 0;
  color: rgba(84, 70, 43, 0.55);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.8;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.panel-count {
  color: rgba(90, 74, 43, 0.5);
  font-family: var(--title-font);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.exhibit-wrap.panel-reveal .panel-body,
.exhibit-wrap.panel-reveal .panel-foot {
  animation: panel-reveal 420ms ease both;
}

@keyframes panel-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topic-dock {
  position: absolute;
  right: clamp(52px, 6.2vw, 126px);
  bottom: clamp(34px, 4.2vh, 48px);
  left: clamp(52px, 6.2vw, 126px);
  z-index: 11;
  display: flex;
  min-height: 96px;
  align-items: stretch;
  color: var(--moon);
  border-top: 1px solid rgba(198, 165, 107, 0.42);
  border-bottom: 1px solid rgba(198, 165, 107, 0.18);
  background: linear-gradient(90deg, rgba(5, 20, 19, 0.94), rgba(9, 31, 29, 0.78) 70%, rgba(5, 20, 19, 0.88));
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.2);
  transition: opacity 260ms ease, transform 420ms ease;
}

.dock-intro {
  display: flex;
  flex: 0 0 176px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 28px 14px 4px;
}

.dock-intro span,
.dock-intro strong {
  display: block;
}

.dock-intro span {
  color: rgba(203, 190, 159, 0.5);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.dock-intro strong {
  margin-top: 7px;
  color: var(--gold-bright);
  font-family: var(--title-font);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.topic-buttons {
  display: flex;
  flex: 1;
  min-width: 0;
}

.topic-button {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 94px;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(13px, 1.3vw, 25px);
  color: rgba(231, 224, 207, 0.66);
  text-align: left;
  cursor: pointer;
  border: 0;
  border-left: 1px solid rgba(198, 165, 107, 0.16);
  background: transparent;
  transition: color 180ms ease, background 180ms ease, transform 120ms ease;
}

.topic-button::after {
  position: absolute;
  right: 18%;
  bottom: -1px;
  left: 18%;
  height: 3px;
  content: "";
  opacity: 0;
  background: var(--gold-bright);
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 220ms ease;
}

.topic-button:hover,
.topic-button:focus-visible {
  color: var(--moon);
  outline: none;
  background: rgba(198, 165, 107, 0.08);
}

.topic-button:active {
  transform: scale(0.98);
}

.topic-button.active {
  color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(198, 165, 107, 0.13), rgba(198, 165, 107, 0.025));
}

.topic-button.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.topic-number {
  color: rgba(211, 189, 142, 0.42);
  font-family: var(--title-font);
  font-size: 13px;
}

.topic-label {
  font-family: var(--title-font);
  font-size: clamp(15px, 1.05vw, 20px);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.orientation-mark {
  position: absolute;
  left: clamp(56px, 6.8vw, 138px);
  bottom: clamp(148px, 16.5vh, 182px);
  z-index: 5;
  color: rgba(199, 169, 107, 0.35);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  transition: opacity 300ms ease;
}

.orientation-mark::before {
  display: inline-block;
  width: 42px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  content: "";
  background: currentColor;
}

body.is-changing .hero-content,
body.is-changing .exhibit-wrap,
body.is-changing .market-map-stage,
body.is-changing .topic-dock {
  opacity: 0;
  transform: translateY(12px);
}

body.is-changing .city-preface {
  opacity: 0;
  transform: translateY(12px);
}

body.is-changing .landmark-photo {
  opacity: 0;
  transform: scale(1.025);
}

@media (max-width: 1360px) {
  .topbar,
  .topic-dock {
    right: 42px;
    left: 42px;
  }

  .hero-stage,
  .orientation-mark {
    left: 54px;
  }

  .hero-stage {
    width: min(560px, 43vw);
  }

  .exhibit-wrap {
    right: 46px;
    width: 340px;
  }

  body[data-mode="market"] .hero-stage {
    width: 360px;
  }

  .city-preface {
    right: 390px;
    left: 560px;
  }

  .market-map-stage {
    right: 404px;
    left: 546px;
  }

  .dock-intro {
    flex-basis: 152px;
  }

  .topic-button {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-height: 800px) and (min-width: 981px) {
  .atlas-shell {
    min-height: 600px;
  }

  .topbar {
    top: 28px;
  }

  .hero-stage {
    top: 132px;
  }

  .hero-title span {
    font-size: 28px;
  }

  .hero-title strong {
    font-size: clamp(72px, 7vw, 102px);
  }

  body[data-mode="market"] .hero-title strong {
    font-size: clamp(60px, 5.8vw, 84px);
  }

  .hero-tagline {
    margin-top: 16px;
    font-size: 21px;
  }

  .hero-summary {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .city-entry {
    margin-top: 18px;
  }

  .city-preface {
    top: 368px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .preface-divider {
    min-height: 94px;
  }

  .preface-copy {
    font-size: 13px;
    line-height: 1.72;
  }

  .primary-entry {
    min-height: 76px;
  }

  .exhibit-wrap {
    top: 116px;
    bottom: 124px;
  }

  .market-map-stage {
    top: 202px;
    bottom: 118px;
  }

  .map-head {
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .map-guide {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .panel-surface {
    padding: 24px 28px;
  }

  .panel-body {
    margin-top: 12px;
  }

  .panel-rule {
    margin: 12px 0;
  }

  .panel-desc {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
  }

  .panel-facts {
    margin-top: 14px;
  }

  .fact-row {
    min-height: 43px;
  }

  .panel-foot {
    padding-top: 10px;
  }

  .topic-dock {
    bottom: 22px;
    min-height: 82px;
  }

  .topic-button {
    min-height: 80px;
  }

  .orientation-mark {
    bottom: 124px;
  }
}

@media (max-width: 980px) {
  .atlas-shell {
    min-height: 560px;
  }

  .stage-frame {
    inset: 10px;
  }

  .topbar {
    top: 22px;
    right: 22px;
    left: 22px;
  }

  .identity {
    gap: 12px;
  }

  .identity-seal {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .identity-copy p {
    font-size: 9px;
  }

  .identity-copy h2 {
    max-width: 220px;
    margin-top: 4px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .state-copy {
    display: none;
  }

  .back-button {
    min-width: 118px;
    min-height: 52px;
    padding: 0 14px;
  }

  .hero-stage {
    top: 104px;
    right: 22px;
    left: 22px;
    width: auto;
  }

  .hero-eyebrow {
    font-size: 9px;
  }

  .hero-title {
    margin-top: 10px;
  }

  .hero-title span {
    font-size: 19px;
  }

  .hero-title strong,
  body[data-mode="market"] .hero-title strong {
    margin-top: 3px;
    font-size: clamp(48px, 14vw, 72px);
  }

  .hero-tagline {
    margin-top: 12px;
    font-size: 17px;
  }

  .hero-summary {
    display: none;
  }

  .city-entry {
    margin-top: 18px;
  }

  .primary-entry {
    width: min(340px, 82vw);
    min-height: 68px;
    padding: 10px 14px 10px 20px;
  }

  .entry-arrow {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .touch-hint {
    display: none;
  }

  .market-ready {
    margin-top: 16px;
  }

  .city-preface {
    top: 300px;
    right: 22px;
    left: 22px;
    grid-template-columns: 34px 1px minmax(0, 1fr);
    gap: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 12px 16px 12px 0;
    transform: none;
  }

  .city-preface::before,
  .city-preface::after {
    left: 46px;
  }

  .preface-title span {
    display: none;
  }

  .preface-title strong {
    font-size: 18px;
  }

  .preface-divider {
    min-height: 72px;
  }

  .preface-kicker {
    margin-bottom: 6px;
    font-size: 7px;
  }

  .preface-copy {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body[data-mode="market"] .city-preface {
    transform: translateY(12px);
  }

  .exhibit-wrap {
    top: auto;
    right: 22px;
    bottom: 112px;
    left: 22px;
    width: auto;
    height: 190px;
  }

  .market-map-stage {
    top: 318px;
    right: 22px;
    bottom: 318px;
    left: 22px;
  }

  .map-head {
    padding: 12px 16px 10px;
  }

  .map-head p {
    font-size: 8px;
  }

  .map-head h2 {
    font-size: 18px;
  }

  .map-reset {
    min-width: 58px;
    min-height: 36px;
    padding: 0 12px;
  }

  .map-hotspot {
    min-width: 32px;
    min-height: 32px;
  }

  .map-hotspot::before {
    width: 22px;
    height: 22px;
  }

  .map-hotspot::after {
    width: 6px;
    height: 6px;
  }

  .map-hotspot span {
    min-width: 64px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .map-guide {
    padding: 8px 16px 10px;
    overflow-x: auto;
    font-size: 10px;
    white-space: nowrap;
  }

  .panel-surface {
    display: block;
    padding: 18px 22px;
  }

  .panel-head {
    position: absolute;
    top: 18px;
    right: 22px;
  }

  .panel-index {
    font-size: 30px;
  }

  .panel-seal {
    display: none;
  }

  .panel-body {
    max-width: calc(100% - 52px);
    margin-top: 0;
  }

  .panel-kicker {
    font-size: 8px;
  }

  .panel-title {
    margin-top: 5px;
    font-size: 25px;
  }

  .panel-rule {
    margin: 9px 0;
  }

  .panel-desc {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .panel-facts,
  .panel-foot {
    display: none;
  }

  .topic-dock {
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 96px;
    padding: 0 14px;
    border-bottom: 0;
  }

  .dock-intro {
    display: none;
  }

  .topic-buttons {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topic-buttons::-webkit-scrollbar {
    display: none;
  }

  .topic-button {
    flex: 0 0 148px;
    min-height: 94px;
  }

  .orientation-mark,
  .vertical-inscription {
    display: none;
  }

  .world-art .city-architecture {
    opacity: 0.34;
  }

  .world-art .market-architecture {
    opacity: 0;
  }

  .landmark-photo {
    top: 8%;
    right: -12%;
    bottom: 23%;
    left: 10%;
    opacity: 0.12;
  }

  body[data-mode="market"] .landmark-photo {
    opacity: 0.3;
  }
}

@media (max-width: 980px) and (max-height: 690px) {
  .hero-tagline {
    display: none;
  }

  .primary-entry {
    min-height: 60px;
  }

  .city-preface {
    top: 252px;
  }

  .preface-copy {
    -webkit-line-clamp: 2;
  }

  .exhibit-wrap {
    height: 156px;
  }

  .market-map-stage {
    top: 278px;
    bottom: 276px;
  }

  .panel-desc {
    -webkit-line-clamp: 1;
  }
}

@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;
  }
}
