/*
 * Culture Day — Forbidden City + Summer Palace
 *
 * This stylesheet is intentionally isolated from the regular guide. Every
 * component is rooted in .culture-page / .cd-*; the only global switch is the
 * route-owned body.culture-mode class.
 */

body.culture-mode {
  --cd-red: #9c211b;
  --cd-red-deep: #62130f;
  --cd-cinnabar: #c63c28;
  --cd-gold: #d7a84e;
  --cd-gold-pale: #f4ddb0;
  --cd-ink: #211712;
  --cd-paper: #f5ecdc;
  --cd-paper-light: #fffaf0;
  --cd-jade: #376b65;
  --cd-lake: #427c88;
  --cd-night: #120d0b;
  --cd-ease: cubic-bezier(.22, .78, .24, 1);
  --cd-serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  background: #efe6d6;
  background-image:
    radial-gradient(110% 52% at 50% -8%, rgba(198, 60, 40, .20), transparent 62%),
    linear-gradient(180deg, #f7efe1 0%, #ece0ce 100%);
  padding-bottom: 0;
}

/* The intro can be opened before the hash route settles. */
.culture-page,
.cd-intro,
.cd-media {
  --cd-red: #9c211b;
  --cd-red-deep: #62130f;
  --cd-cinnabar: #c63c28;
  --cd-gold: #d7a84e;
  --cd-gold-pale: #f4ddb0;
  --cd-ink: #211712;
  --cd-paper: #f5ecdc;
  --cd-paper-light: #fffaf0;
  --cd-jade: #376b65;
  --cd-lake: #427c88;
  --cd-night: #120d0b;
  --cd-ease: cubic-bezier(.22, .78, .24, 1);
  --cd-serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

body.culture-mode .topbar,
body.culture-mode .tabbar {
  display: none;
}

body.culture-mode .wrap {
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding: 0;
}

body.culture-mode::after {
  opacity: .045;
}

body.cd-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

/* ===== Guide page ===== */

.culture-page {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  color: var(--cd-ink, #211712);
  background:
    radial-gradient(72% 35% at 94% 11%, rgba(215, 168, 78, .17), transparent 72%),
    linear-gradient(180deg, rgba(255, 250, 240, .88), rgba(239, 230, 214, .96));
}

/* Author display rules on map controls must never override native hidden. */
.culture-page [hidden] {
  display: none !important;
}

.culture-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(98, 19, 15, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 19, 15, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 52%);
}

.cd-guide-shell {
  width: min(100%, 760px);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(30px + env(safe-area-inset-bottom));
}

.cd-guide-topbar {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 17px;
}

.cd-guide-title {
  min-width: 0;
  text-align: center;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(33, 23, 18, .66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-icon-button,
.cd-guide-back,
.cd-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(98, 19, 15, .13);
  border-radius: 50%;
  color: var(--cd-ink);
  background: rgba(255, 250, 240, .78);
  box-shadow: 0 10px 30px -20px rgba(33, 23, 18, .62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .25s var(--cd-ease), border-color .25s ease, background-color .25s ease;
}

.cd-icon-button svg,
.cd-guide-back svg,
.cd-replay svg {
  width: 19px;
  height: 19px;
}

.cd-guide-back {
  justify-self: start;
}

.cd-replay {
  justify-self: end;
}

.cd-icon-button:active,
.cd-guide-back:active,
.cd-replay:active {
  transform: scale(.92);
}

.cd-guide-hero {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 4px 4px 22px;
  text-align: center;
}

.cd-guide-kicker {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(156, 33, 27, .17);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cd-red-deep);
  background: rgba(255, 250, 240, .58);
}

.cd-guide-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cd-cinnabar);
  box-shadow: 0 0 0 4px rgba(198, 60, 40, .10);
}

.cd-guide-heading {
  max-width: 620px;
  margin: 0 auto;
  font-family: var(--cd-serif);
  font-size: clamp(34px, 10vw, 58px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.045em;
  color: var(--cd-red-deep);
  text-wrap: balance;
}

.cd-guide-heading small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-d);
  font-size: clamp(13px, 3.7vw, 17px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .02em;
  color: rgba(33, 23, 18, .72);
}

.cd-guide-lede {
  max-width: 530px;
  margin: 4px auto 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(33, 23, 18, .63);
}

/* ===== Chapter switcher ===== */

.cd-chapters {
  position: relative;
}

.cd-tablist {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(98, 19, 15, .10);
  border-radius: 19px;
  background: rgba(255, 250, 240, .70);
  box-shadow: 0 20px 44px -32px rgba(33, 23, 18, .68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cd-tab {
  position: relative;
  min-width: 0;
  min-height: 50px;
  padding: 7px 9px;
  border: 0;
  border-radius: 14px;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(33, 23, 18, .60);
  background: transparent;
  cursor: pointer;
  transition: color .3s ease, background-color .3s ease, box-shadow .3s ease, transform .2s var(--cd-ease);
}

.cd-tab span {
  display: block;
  margin-top: 2px;
  font-family: var(--cd-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  color: inherit;
  opacity: .66;
}

.cd-tab[aria-selected="true"],
.cd-tab.active {
  color: #fffaf0;
  background: linear-gradient(145deg, var(--cd-red), var(--cd-red-deep));
  box-shadow: 0 10px 24px -14px rgba(98, 19, 15, .78), inset 0 1px rgba(255, 255, 255, .22);
}

.cd-tab[data-site="summer-palace"][aria-selected="true"],
.cd-tab[data-site="summer-palace"].active {
  background: linear-gradient(145deg, #4f8580, #285d5a);
  box-shadow: 0 10px 24px -14px rgba(40, 93, 90, .78), inset 0 1px rgba(255, 255, 255, .22);
}

.cd-tab:active {
  transform: scale(.98);
}

.cd-chapter-panel {
  padding-top: 16px;
  animation: cd-panel-in .48s var(--cd-ease) both;
}

.cd-chapter-panel[hidden] {
  display: none !important;
}

@keyframes cd-panel-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Map card ===== */

.cd-map-card {
  position: relative;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(98, 19, 15, .12);
  border-radius: 28px;
  background: rgba(255, 250, 240, .76);
  box-shadow:
    0 30px 64px -42px rgba(50, 30, 20, .72),
    inset 0 1px rgba(255, 255, 255, .75);
}

.cd-map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .44), transparent 25%, transparent 75%, rgba(156, 33, 27, .045));
}

.cd-map-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 12px;
}

.cd-map-heading {
  min-width: 0;
}

.cd-map-heading h2 {
  margin: 0;
  font-family: var(--cd-serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--cd-red-deep);
}

.cd-map-heading p {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(33, 23, 18, .57);
}

.cd-map-badge {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid rgba(156, 33, 27, .15);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  color: var(--cd-red-deep);
  background: rgba(244, 221, 176, .38);
}

.cd-chapter-panel[data-site="summer-palace"] .cd-map-heading h2 {
  color: #285d5a;
}

.cd-chapter-panel[data-site="summer-palace"] .cd-map-badge {
  color: #285d5a;
  border-color: rgba(40, 93, 90, .18);
  background: rgba(66, 124, 136, .10);
}

.cd-map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(98, 19, 15, .10);
  border-radius: 22px;
  background: #eadbbe;
  box-shadow: inset 0 0 42px rgba(90, 55, 25, .10);
}

.cd-map-stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  aspect-ratio: 7 / 10;
  overflow: hidden;
  isolation: isolate;
}

.cd-map-stage--summer,
.cd-map-stage[data-site="summer-palace"] {
  min-height: 350px;
  aspect-ratio: 4 / 3;
  background: #dbe7df;
}

.cd-map-stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(78, 43, 19, .13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 24%),
    radial-gradient(circle at 50% 48%, transparent 46%, rgba(78, 43, 19, .065) 100%);
}

.cd-map-art,
.cd-map-stage > svg,
.cd-map-stage > img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.cd-map-route {
  fill: none;
  stroke: rgba(244, 221, 176, .92);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2.5 4.2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgba(98, 19, 15, .28));
}

/* Hotspots are positioned with style="--x: 50%; --y: 30%". */
.cd-hotspot {
  --cd-pin: var(--cd-red);
  position: absolute;
  z-index: 7;
  left: var(--x, 50%);
  top: var(--y, 50%);
  display: grid;
  grid-template-columns: 44px;
  align-items: center;
  justify-items: center;
  min-width: 44px;
  min-height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 8px 8px rgba(54, 23, 14, .20));
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cd-hotspot[data-site="summer-palace"] {
  --cd-pin: #285d5a;
}

.cd-hotspot__pin {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 29px;
  border: 1px solid rgba(255, 250, 240, .92);
  border-radius: 10px 10px 13px 13px;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--cd-pin) 22%, #fff6e6),
      color-mix(in srgb, var(--cd-pin) 84%, #2f2018));
  box-shadow:
    0 5px 12px rgba(54, 23, 14, .24),
    inset 0 1px rgba(255, 255, 255, .28);
  transition: transform .24s var(--cd-ease), box-shadow .24s ease;
}

.cd-hotspot__pin::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7px;
  border: 1px solid rgba(156, 33, 27, .30);
  border-color: color-mix(in srgb, var(--cd-pin) 46%, transparent);
  border-radius: 14px;
  animation: cd-pin-breathe 2.7s ease-out infinite;
}

.cd-hotspot__pin svg {
  width: 13px;
  height: 13px;
}

.cd-hotspot__label {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  width: max-content;
  max-width: 112px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 250, 240, .38);
  border-radius: 7px;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
  color: #fffaf0;
  background: rgba(33, 23, 18, .78);
  box-shadow: 0 6px 14px rgba(33, 23, 18, .16);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transform: translateX(-50%);
  pointer-events: none;
  white-space: normal;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .32);
}

.cd-hotspot__label small {
  display: block;
  margin-top: 1px;
  font-family: var(--cd-serif);
  font-size: 8px;
  font-weight: 500;
  color: rgba(255, 250, 240, .72);
}

.cd-hotspot:hover .cd-hotspot__pin,
.cd-hotspot:focus-visible .cd-hotspot__pin {
  transform: translateY(-3px) rotate(-1deg) scale(1.05);
  box-shadow:
    0 8px 16px rgba(54, 23, 14, .28),
    inset 0 1px rgba(255, 255, 255, .32);
}

.cd-hotspot:active .cd-hotspot__pin {
  transform: translateY(1px) scale(.98);
}

@keyframes cd-pin-breathe {
  0%, 20% { opacity: 0; transform: scale(.66); }
  45% { opacity: .72; }
  82%, 100% { opacity: 0; transform: scale(1.18); }
}

.cd-map-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px 10px;
}

.cd-map-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(33, 23, 18, .59);
}

.cd-map-hint::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cd-cinnabar);
  box-shadow: 0 0 0 4px rgba(198, 60, 40, .10);
}

.cd-chapter-panel[data-site="summer-palace"] .cd-map-hint::before {
  background: var(--cd-jade);
  box-shadow: 0 0 0 4px rgba(55, 107, 101, .10);
}

.cd-map-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid rgba(55, 107, 101, .15);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 9.5px;
  font-weight: 700;
  color: #376b65;
  background: rgba(55, 107, 101, .08);
}

.cd-map-status.is-offline {
  color: #795918;
  border-color: rgba(121, 89, 24, .18);
  background: rgba(215, 168, 78, .12);
}

.cd-guide-note {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(98, 19, 15, .10);
  border-radius: 18px;
  background: rgba(255, 250, 240, .56);
}

.cd-guide-note__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 18px;
  background: rgba(215, 168, 78, .18);
}

.cd-guide-note strong {
  display: block;
  font-family: var(--font-d);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--cd-ink);
}

.cd-guide-note p {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.52;
  color: rgba(33, 23, 18, .56);
}

/* ===== Full-screen paper-cut intro ===== */

.cd-intro {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fffaf0;
  background: #110b09;
  overflow: hidden;
  overscroll-behavior: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .42s ease, visibility 0s linear .42s;
}

.cd-intro[aria-hidden="false"],
.cd-intro.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.cd-intro__ambient {
  position: absolute;
  inset: -10%;
  background-position: center;
  background-size: cover;
  filter: blur(44px) saturate(.8) brightness(.45);
  transform: scale(1.08);
  opacity: .56;
}

.cd-intro__frame {
  position: relative;
  width: min(100vw, calc(100svh * .5625));
  height: min(100svh, calc(100vw * 1.7778));
  max-height: 100svh;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(80% 55% at 50% 28%, rgba(215, 168, 78, .22), transparent 72%),
    linear-gradient(180deg, #6d1713 0%, #2b110e 54%, #120d0b 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, .66);
}

.cd-intro__frame::after {
  content: "";
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 5, 4, .10), transparent 22%, transparent 62%, rgba(7, 5, 4, .75) 100%),
    radial-gradient(circle at 50% 40%, transparent 45%, rgba(7, 5, 4, .22));
}

.cd-intro__media,
.cd-intro__media video,
.cd-intro__media img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-intro__media video {
  background: #2b110e;
}

.cd-intro__paper-layer {
  position: absolute;
  z-index: var(--layer, 3);
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translate3d(0, var(--layer-y, 0), 0) scale(var(--layer-scale, 1));
  transform-origin: 50% 80%;
  filter: drop-shadow(0 12px 12px rgba(27, 9, 7, .24));
  animation: cd-paper-settle 1.1s var(--cd-ease) both;
  animation-delay: var(--delay, 0s);
}

@keyframes cd-paper-settle {
  from { opacity: 0; transform: translate3d(0, calc(var(--layer-y, 0) + 34px), 0) scale(calc(var(--layer-scale, 1) * .97)); }
  to { opacity: 1; transform: translate3d(0, var(--layer-y, 0), 0) scale(var(--layer-scale, 1)); }
}

.cd-intro__chrome {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    calc(17px + env(safe-area-inset-top))
    max(17px, env(safe-area-inset-right))
    calc(22px + env(safe-area-inset-bottom))
    max(17px, env(safe-area-inset-left));
  pointer-events: none;
}

.cd-intro__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cd-intro__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 250, 240, .76);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
}

.cd-intro__mark::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cd-gold);
}

.cd-intro__skip {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 240, .26);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 10.5px;
  font-weight: 700;
  color: #fffaf0;
  background: rgba(20, 13, 11, .30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  pointer-events: auto;
}

.cd-intro__copy {
  display: grid;
  gap: 8px;
  text-align: left;
  pointer-events: none;
}

.cd-intro__eyebrow {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cd-gold-pale);
}

.cd-intro__title {
  max-width: 92%;
  font-family: var(--cd-serif);
  font-size: clamp(35px, 10.7vw, 54px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .56);
}

.cd-intro__subtitle {
  max-width: 92%;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 250, 240, .73);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .52);
}

.cd-intro__enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 6px 7px 6px 19px;
  border: 1px solid rgba(255, 250, 240, .32);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--cd-red-deep);
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .72);
  cursor: pointer;
  pointer-events: auto;
  transition: transform .24s var(--cd-ease), background-color .24s ease;
}

.cd-intro__enter::after {
  content: "\2192";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  color: #fffaf0;
  background: linear-gradient(145deg, var(--cd-red), var(--cd-red-deep));
}

.cd-intro__enter:active {
  transform: scale(.985);
}

.cd-intro__progress {
  position: absolute;
  z-index: 24;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}

.cd-intro__progress > span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--cd-gold-pale);
  transition: width .12s linear;
}

/* ===== Full-screen media viewer ===== */

.cd-media {
  position: fixed;
  z-index: 10030;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100svh;
  color: #fffaf0;
  background:
    radial-gradient(80% 42% at 50% 34%, rgba(156, 33, 27, .22), transparent 75%),
    #100d0c;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.cd-media[aria-hidden="false"],
.cd-media.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.cd-media__topbar {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: calc(62px + env(safe-area-inset-top));
  padding: calc(10px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(16, 13, 12, .92), rgba(16, 13, 12, 0));
}

.cd-media__close,
.cd-media__sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 250, 240, .18);
  border-radius: 50%;
  color: #fffaf0;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.cd-media__close {
  justify-self: start;
}

.cd-media__sound {
  justify-self: end;
}

.cd-media__close svg,
.cd-media__sound svg {
  width: 18px;
  height: 18px;
}

.cd-media__title {
  min-width: 0;
  padding: 0 8px;
  text-align: center;
}

.cd-media__title strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #fffaf0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-media__title span {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  font-size: 9.5px;
  line-height: 1.3;
  color: rgba(255, 250, 240, .52);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-media__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}

.cd-media__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--poster, none);
  background-position: center;
  background-size: cover;
  filter: blur(28px) brightness(.36) saturate(.8);
  transform: scale(1.12);
  opacity: .46;
}

.cd-media__video {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, calc(100svh * .62));
  height: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #080706;
  box-shadow: 0 0 54px rgba(0, 0, 0, .58);
}

.cd-media__loading,
.cd-media__error {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  color: rgba(255, 250, 240, .68);
  background: rgba(16, 13, 12, .78);
}

.cd-media__loading[hidden],
.cd-media__error[hidden] {
  display: none;
}

.cd-media__spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border: 2px solid rgba(255, 250, 240, .18);
  border-top-color: var(--cd-gold-pale);
  border-radius: 50%;
  animation: cd-spin .8s linear infinite;
}

@keyframes cd-spin {
  to { transform: rotate(1turn); }
}

.cd-media__error strong {
  font-family: var(--font-d);
  font-size: 14px;
  color: #fffaf0;
}

.cd-media__error p {
  max-width: 300px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.55;
}

.cd-media__retry {
  min-width: 44px;
  min-height: 44px;
  margin: 2px auto 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 240, .24);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  color: #fffaf0;
  background: rgba(255, 255, 255, .10);
  cursor: pointer;
}

.cd-media__footer {
  position: relative;
  z-index: 7;
  min-height: calc(118px + env(safe-area-inset-bottom));
  padding: 12px max(18px, env(safe-area-inset-right)) calc(15px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: linear-gradient(0deg, rgba(16, 13, 12, .98) 48%, rgba(16, 13, 12, 0));
}

.cd-captions {
  width: min(100%, 620px);
  min-height: 57px;
  margin: 0 auto;
  padding: 7px 10px;
  border-radius: 10px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .9);
}

.cd-caption-en {
  font-family: var(--font-d);
  font-size: clamp(14px, 4.1vw, 18px);
  font-weight: 700;
  line-height: 1.34;
  color: #fff;
  text-wrap: balance;
}

.cd-caption-zh {
  margin-top: 3px;
  font-family: var(--cd-serif);
  font-size: clamp(12px, 3.45vw, 15px);
  font-weight: 600;
  line-height: 1.34;
  color: rgba(255, 250, 240, .76);
  text-wrap: balance;
}

.cd-media__timeline {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 620px);
  margin: 7px auto 0;
  font-family: var(--font-d);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 250, 240, .46);
}

.cd-media__track {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 250, 240, .14);
  overflow: hidden;
}

.cd-media__track > span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--cd-gold-pale);
}

/* ===== Focus, reduced motion, responsive behavior ===== */

.culture-page button:focus-visible,
.cd-intro button:focus-visible,
.cd-media button:focus-visible {
  outline: 3px solid var(--cd-gold-pale, #f4ddb0);
  outline-offset: 3px;
}

@media (max-width: 374px) {
  .cd-guide-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cd-guide-heading {
    font-size: 32px;
  }

  .cd-map-header {
    gap: 8px;
    padding-left: 11px;
    padding-right: 11px;
  }

  .cd-map-heading h2 {
    font-size: 22px;
  }

  .cd-map-badge {
    padding-left: 8px;
    padding-right: 8px;
  }

  .cd-hotspot__label {
    max-width: 94px;
    font-size: 8.5px;
  }
}

@media (min-width: 760px) {
  .culture-page {
    padding: 0 24px;
  }

  .cd-guide-shell {
    padding-top: calc(26px + env(safe-area-inset-top));
    padding-bottom: calc(46px + env(safe-area-inset-bottom));
  }

  .cd-guide-topbar {
    margin-bottom: 24px;
  }

  .cd-guide-hero {
    padding-bottom: 30px;
  }

  .cd-tablist {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .cd-chapter-panel {
    padding-top: 22px;
  }

  .cd-map-card {
    padding: 8px;
  }

  .cd-map-header {
    padding: 17px 18px 15px;
  }

  .cd-map-stage {
    min-height: 620px;
    aspect-ratio: 5 / 6;
  }

  .cd-map-stage--summer,
  .cd-map-stage[data-site="summer-palace"] {
    min-height: 500px;
    aspect-ratio: 4 / 3;
  }

  .cd-hotspot__pin {
    width: 36px;
    height: 36px;
  }

  .cd-hotspot__label {
    max-width: 145px;
    font-size: 10px;
  }

  .cd-map-footer {
    padding: 14px 17px 13px;
  }

  .cd-intro {
    padding: 18px;
  }

  .cd-intro__frame {
    height: calc(100svh - 36px);
    width: calc((100svh - 36px) * .5625);
    max-width: calc(100vw - 36px);
    border: 1px solid rgba(255, 250, 240, .12);
    border-radius: 24px;
  }

  .cd-media {
    grid-template-columns: minmax(0, 1fr) min(52vw, 620px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .cd-media__topbar,
  .cd-media__footer {
    grid-column: 1 / -1;
  }

  .cd-media__stage {
    grid-column: 2;
    border: 1px solid rgba(255, 250, 240, .08);
    border-radius: 20px;
  }

  .cd-media__video {
    width: 100%;
    border-radius: 20px;
  }

  .cd-media__footer {
    min-height: 130px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .cd-intro {
    padding: 0 20px;
  }

  .cd-intro__frame {
    width: calc(100svh * .5625);
    height: 100svh;
  }

  .cd-intro__title {
    font-size: clamp(29px, 7.5vh, 42px);
  }

  .cd-intro__subtitle {
    display: none;
  }

  .cd-intro__enter {
    min-height: 48px;
  }

  .cd-intro__enter::after {
    width: 36px;
    height: 36px;
  }

  .cd-media__footer {
    min-height: 88px;
    padding-top: 4px;
  }

  .cd-captions {
    min-height: 44px;
  }

  .cd-caption-en {
    font-size: 13px;
  }

  .cd-caption-zh {
    font-size: 11px;
  }
}

/* Scene-to-object learning bridge and final readable type scale. */
.cd-media__index {
  font-size: 10px;
}

.cd-media__story .cd-caption-en {
  font-size: 15px;
  line-height: 1.62;
}

.cd-media__story .cd-caption-zh {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 250, 240, .68);
}

.cd-media__story .cd-captions > span {
  min-height: 30px;
  font-size: 9px;
}

.cd-media__soon {
  padding: 12px 13px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(244, 221, 176, .78);
}

.cd-scene-objects {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 221, 176, .14);
}

.cd-scene-objects > span {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--cd-gold-pale);
}

.cd-scene-objects button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(244, 221, 176, .17);
  border-radius: 14px;
  color: #fffaf0;
  text-align: left;
  background: rgba(244, 221, 176, .065);
  cursor: pointer;
}

.cd-scene-objects button:hover,
.cd-scene-objects button:focus-visible {
  border-color: rgba(244, 221, 176, .52);
  background: rgba(244, 221, 176, .11);
}

.cd-scene-object__symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(244, 221, 176, .28);
  border-radius: 50%;
  font-family: var(--cd-serif);
  font-size: 19px;
  color: var(--cd-gold-pale);
  background: rgba(156, 33, 27, .34);
}

.cd-scene-objects button > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.cd-scene-objects button b,
.cd-scene-objects button small {
  display: block;
}

.cd-scene-objects button b {
  font-family: var(--cd-serif);
  font-size: 13px;
  line-height: 1.35;
}

.cd-scene-objects button small {
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 250, 240, .58);
}

.cd-scene-objects button i {
  font-size: 19px;
  font-style: normal;
  color: var(--cd-gold-pale);
}

/* ===== Culture Day learning museum refinements ===== */

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

button.evt.culture-evt {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  color: inherit;
  text-align: left;
  background: transparent;
  appearance: none;
}

button.evt.culture-evt:last-child {
  border-bottom: 0;
}

button.evt.culture-evt:focus-visible {
  outline: 3px solid #9c211b;
  outline-offset: 3px;
  border-radius: 8px;
}

.culture-page button:focus-visible,
.culture-page a:focus-visible,
.culture-page [tabindex]:focus-visible {
  outline: 3px solid var(--cd-accent);
  outline-offset: 3px;
}

.cd-intro button:focus-visible,
.cd-media button:focus-visible,
.cd-media a:focus-visible {
  outline: 3px solid var(--cd-gold-pale);
  outline-offset: 3px;
}

.cd-chapters .cd-tab[aria-pressed="true"] {
  color: #fffaf0;
  background: linear-gradient(145deg, var(--cd-accent), color-mix(in srgb, var(--cd-accent) 68%, #1f1511));
}

.cd-origin-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, .34fr);
  grid-template-areas:
    "label era visual"
    "copy copy visual"
    "cta cta visual";
  gap: 8px 16px;
  width: 100%;
  margin: 0 0 18px;
  padding: 18px 19px 17px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cd-accent) 46%, #f4ddb0);
  border-radius: 18px;
  color: #fffaf0;
  text-align: left;
  background:
    radial-gradient(circle at 90% 12%, rgba(244, 221, 176, .22), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--cd-accent) 88%, #35100d), #211411 76%);
  box-shadow: 0 22px 50px -34px color-mix(in srgb, var(--cd-accent) 72%, #211411);
  cursor: pointer;
  isolation: isolate;
}

.cd-origin-card::before,
.cd-origin-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.cd-origin-card::before {
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255, 250, 240, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000, transparent 84%);
}

.cd-origin-card::after {
  top: -30px;
  right: -16px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(244, 221, 176, .25);
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgba(244, 221, 176, .035), inset 0 0 0 24px rgba(244, 221, 176, .025);
}

.cd-origin-card__label {
  grid-area: label;
  align-self: center;
  font-family: var(--font-d);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .13em;
  color: var(--cd-gold-pale);
  text-transform: uppercase;
}

.cd-origin-card__era {
  grid-area: era;
  align-self: center;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255, 250, 240, .68);
}

.cd-origin-card__copy {
  grid-area: copy;
  min-width: 0;
}

.cd-origin-card__copy b,
.cd-origin-card__copy small,
.cd-origin-card__copy em {
  display: block;
}

.cd-origin-card__copy b {
  max-width: 650px;
  font-family: var(--cd-serif);
  font-size: clamp(25px, 6.8vw, 38px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.cd-origin-card__copy small {
  margin-top: 4px;
  font-family: var(--cd-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  color: rgba(255, 250, 240, .70);
}

.cd-origin-card__copy em {
  max-width: 760px;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.58;
  color: rgba(255, 250, 240, .76);
}

.cd-origin-card__cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-top: 3px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
  color: var(--cd-gold-pale);
}

.cd-origin-card__cta i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-style: normal;
  color: #291713;
  background: var(--cd-gold-pale);
  transition: transform .25s var(--cd-ease);
}

.cd-origin-card:hover .cd-origin-card__cta i,
.cd-origin-card:focus-visible .cd-origin-card__cta i {
  transform: translateX(4px);
}

.cd-origin-card__visual {
  position: relative;
  z-index: 2;
  grid-area: visual;
  min-width: 0;
  min-height: 194px;
  margin: -10px -11px -10px 0;
  overflow: hidden;
  border: 1px solid rgba(244, 221, 176, .22);
  border-radius: 12px;
  background: #160f0d;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .82);
}

.cd-origin-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 13, 11, .28), transparent 28%),
    linear-gradient(0deg, rgba(20, 13, 11, .62), transparent 42%);
}

.cd-origin-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  transition: transform .7s var(--cd-ease), filter .3s ease;
}

.cd-origin-card:hover .cd-origin-card__visual img,
.cd-origin-card:focus-visible .cd-origin-card__visual img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.03);
}

.cd-origin-card__visual > span {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 9px;
  left: 10px;
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .09em;
  color: #fffaf0;
  text-transform: uppercase;
}

.cd-origin-card__visual.is-placeholder {
  background:
    radial-gradient(circle at 54% 42%, rgba(244, 221, 176, .16), transparent 34%),
    #160f0d;
}

.cd-atlas-layout {
  display: grid;
  gap: 18px;
}

.cd-map-actions {
  grid-template-columns: 44px 50px 44px minmax(64px, auto);
  min-height: 44px;
}

.cd-map-actions button {
  min-height: 44px;
}

.cd-map-viewport {
  width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  aspect-ratio: 16 / 10;
}

.cd-map-canvas {
  width: var(--cd-map-width, 100%);
  min-width: 100%;
}

.cd-map-links a {
  min-height: 44px;
  font-size: 10px;
}

.cd-route-note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(52, 38, 31, .72);
}

.cd-map-credit {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(52, 38, 31, .68);
}

.cd-stop-card__copy small {
  font-size: 13px;
  color: rgba(33, 23, 18, .72);
}

.cd-stop-card__copy em {
  font-size: 11px;
  color: rgba(33, 23, 18, .66);
}

.cd-media__era {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 5px 8px;
  border: 1px solid rgba(244, 221, 176, .18);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  color: rgba(244, 221, 176, .82);
}

.cd-media__source {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 13px;
  padding: 8px 10px;
  border: 1px solid rgba(244, 221, 176, .18);
  border-radius: 10px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cd-gold-pale);
  background: rgba(244, 221, 176, .06);
  text-decoration: none;
}

.cd-intro__motion-play {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(79px + env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 250, 240, .28);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 750;
  color: #fffaf0;
  background: rgba(20, 13, 11, .52);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

@media (max-width: 430px) {
  .cd-map-links a {
    min-height: 44px;
  }

  .cd-origin-card {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "era" "visual" "copy" "cta";
    gap: 5px;
    padding: 16px;
  }

  .cd-origin-card__visual {
    min-height: 0;
    margin: 8px 0 7px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .cd-origin-card__copy em {
    display: grid;
    gap: 8px;
  }

  .cd-origin-card__copy em > span {
    display: block;
  }

  .cd-map-viewport {
    aspect-ratio: 16 / 10.5;
  }

  .cd-intro__fallback img,
  .cd-intro__video {
    object-fit: contain;
  }
}

@media (min-width: 900px) {
  .culture-page {
    width: min(100%, 1180px);
    padding-right: 28px;
    padding-left: 28px;
  }

  .cd-origin-card {
    margin-bottom: 24px;
    padding: 22px 24px 21px;
  }

  .cd-atlas-layout {
    grid-template-columns: minmax(0, 2.15fr) minmax(310px, .85fr);
    align-items: start;
    gap: 20px;
  }

  .cd-stop-list {
    display: block;
    position: sticky;
    top: 18px;
  }

  .cd-stop-list__head {
    grid-column: auto;
  }

  .cd-stop-card:nth-child(even) {
    border-right: 0;
  }
}

/* Interactive object cabinet: image-first, three details, one gentle question. */
.cd-object-cabinet {
  position: relative;
  margin-top: 30px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(98, 19, 15, .13);
  border-radius: 24px;
  background:
    radial-gradient(70% 45% at 92% 2%, rgba(215, 168, 78, .16), transparent 72%),
    rgba(255, 250, 240, .78);
  box-shadow: 0 28px 62px -48px rgba(50, 30, 20, .75);
}

.cd-object-cabinet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.cd-object-cabinet__head > div > span {
  display: block;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .14em;
  color: var(--cd-accent);
}

.cd-object-cabinet__head h2 {
  margin: 6px 0 0;
  font-family: var(--cd-serif);
  font-size: clamp(25px, 6vw, 36px);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #34261f;
}

.cd-object-cabinet__head p {
  max-width: 650px;
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.58;
  color: rgba(52, 38, 31, .70);
}

.cd-object-progress {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid color-mix(in srgb, var(--cd-accent) 32%, #d8c8aa);
  border-radius: 50%;
  color: var(--cd-accent);
  background: rgba(255, 250, 240, .86);
  box-shadow: inset 0 0 0 5px rgba(215, 168, 78, .08);
}

.cd-object-progress b,
.cd-object-progress small {
  display: block;
  font-family: var(--font-d);
  text-align: center;
}

.cd-object-progress b {
  align-self: end;
  font-size: 15px;
  line-height: 1;
}

.cd-object-progress small {
  align-self: start;
  margin-top: 4px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}

.cd-object-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cd-object-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-areas:
    "visual copy"
    "visual status";
  gap: 0 14px;
  min-height: 148px;
  padding: 8px 12px 8px 8px;
  overflow: hidden;
  border: 1px solid rgba(65, 42, 29, .13);
  border-radius: 17px;
  color: #34261f;
  text-align: left;
  background: rgba(255, 252, 245, .86);
  box-shadow: 0 14px 34px -28px rgba(52, 38, 31, .64);
  cursor: pointer;
  transition: transform .25s var(--cd-ease), border-color .25s ease, box-shadow .25s ease;
}

.cd-object-card:hover,
.cd-object-card:focus-visible {
  z-index: 2;
  border-color: color-mix(in srgb, var(--object-accent, var(--cd-accent)) 42%, #d8c8aa);
  box-shadow: 0 22px 40px -28px rgba(52, 38, 31, .70);
  transform: translateY(-2px);
}

.cd-object-card__visual {
  grid-area: visual;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--object-accent) 13%, #fffaf0), transparent 62%),
    linear-gradient(145deg, #efe1c8, #fffaf0);
  isolation: isolate;
}

.cd-object-card__visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(65, 42, 29, .08), inset 0 0 28px rgba(80, 44, 24, .07);
}

.cd-object-card__visual img {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: cover;
  object-position: center;
  transition: transform .55s var(--cd-ease);
}

.cd-object-card.is-photo .cd-object-card__visual {
  background: #e9dfcf;
}

.cd-object-card.is-photo .cd-object-card__visual img {
  padding: 0;
  object-fit: cover;
}

.cd-object-card.is-local-reference .cd-object-card__visual {
  background: #e9dfcf;
}

.cd-object-card.is-local-reference .cd-object-card__visual img {
  padding: 0;
  object-fit: cover;
}

.cd-object-card.is-photo-pending .cd-object-card__visual,
.cd-object-card.is-reconstruction-pending .cd-object-card__visual {
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(65, 42, 29, .055) 46% 54%, transparent 54% 100%),
    linear-gradient(145deg, #eadcc1, #fffaf0);
  background-size: 18px 18px, auto;
}

.cd-object-card.is-photo-pending .cd-object-card__fallback,
.cd-object-card.is-reconstruction-pending .cd-object-card__fallback {
  font-size: 42px;
  opacity: .72;
}

.cd-object-card:hover .cd-object-card__visual img {
  transform: scale(1.035);
}

.cd-object-card__fallback {
  position: relative;
  z-index: 1;
  font-family: var(--cd-serif);
  font-size: 50px;
  font-weight: 700;
  color: color-mix(in srgb, var(--object-accent) 56%, #d4bd93);
  text-shadow: 0 2px rgba(255, 255, 255, .72);
}

.cd-object-card__visual:has(> img) .cd-object-card__fallback {
  display: none;
}

.cd-object-card__recon {
  position: absolute;
  z-index: 4;
  right: 5px;
  bottom: 5px;
  left: 5px;
  padding: 4px 5px;
  border-radius: 6px;
  font-family: var(--font-d);
  font-size: 5.8px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .04em;
  color: rgba(255, 250, 240, .88);
  background: rgba(33, 23, 18, .66);
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.cd-object-card.is-photo-pending .cd-object-card__recon,
.cd-object-card.is-reconstruction-pending .cd-object-card__recon {
  color: rgba(52, 38, 31, .78);
  background: rgba(255, 250, 240, .88);
  box-shadow: 0 1px 0 rgba(65, 42, 29, .08);
}

.cd-object-card.is-local-reference .cd-object-card__recon {
  color: rgba(255, 250, 240, .94);
  background: rgba(33, 23, 18, .72);
}

.cd-object-card__copy {
  grid-area: copy;
  align-self: center;
  min-width: 0;
  padding-top: 5px;
}

.cd-object-card__copy > * {
  display: block;
}

.cd-object-card__copy em {
  font-family: var(--font-d);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .10em;
  color: var(--object-accent, var(--cd-accent));
}

.cd-object-card__copy b {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  font-family: var(--cd-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cd-object-card__copy small {
  margin-top: 3px;
  font-family: var(--cd-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(52, 38, 31, .68);
}

.cd-object-card__copy > span {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.4;
  color: rgba(52, 38, 31, .57);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cd-object-card__status {
  grid-area: status;
  align-self: end;
  justify-self: start;
  margin-bottom: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(65, 42, 29, .11);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .05em;
  color: rgba(52, 38, 31, .66);
  background: rgba(255, 250, 240, .72);
}

.cd-object-card.is-complete {
  border-color: color-mix(in srgb, var(--object-accent, var(--cd-accent)) 34%, #d8c8aa);
  background: color-mix(in srgb, var(--object-accent, var(--cd-accent)) 4%, #fffaf0);
}

.cd-object-card.is-complete .cd-object-card__status {
  color: #fffaf0;
  background: var(--object-accent, var(--cd-accent));
}

.cd-object-note {
  max-width: 820px;
  margin: 15px auto 0;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(52, 38, 31, .62);
  text-align: center;
}

/* Object learning dialog. */
.cd-object-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(310px, 48svh) minmax(0, 1fr);
  width: min(100%, 760px);
  height: 100svh;
  overflow: hidden;
  background: #14100e;
  box-shadow: 0 0 70px rgba(0, 0, 0, .58);
}

.cd-object-panel > .cd-media__close {
  position: absolute;
  z-index: 30;
  top: calc(12px + env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  background: rgba(16, 13, 12, .48);
}

.cd-object-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--object-accent) 12%, #fffaf0), transparent 57%),
    linear-gradient(155deg, #ead8b8, #fffaf0 53%, #e7d2ab);
}

.cd-object-stage[data-media-kind="photo"] {
  background: linear-gradient(155deg, #d9cbb4, #fffaf0 54%, #ddc9a5);
}

.cd-object-stage[data-media-kind="local-reference"] {
  background: linear-gradient(155deg, #d9cbb4, #fffaf0 54%, #ddc9a5);
}

.cd-object-stage[data-media-kind$="-pending"] {
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--object-accent) 10%, #fffaf0), transparent 48%),
    repeating-linear-gradient(135deg, #eadcc1 0 12px, #f5ead5 12px 24px);
}

.cd-object-stage::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.cd-object-image {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cd-object-image img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 14px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(65, 42, 29, .20));
}

.cd-object-image__fallback {
  z-index: 1;
  font-family: var(--cd-serif);
  font-size: min(33vw, 160px);
  font-weight: 700;
  color: color-mix(in srgb, var(--object-accent) 48%, #d2b886);
  text-shadow: 0 2px rgba(255, 255, 255, .66);
}

.cd-object-hotspot {
  position: absolute;
  z-index: 12;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fffaf0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.cd-object-hotspot::before,
.cd-object-hotspot::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.cd-object-hotspot::before {
  inset: 5px;
  border: 1px solid rgba(255, 250, 240, .85);
  background: color-mix(in srgb, var(--object-accent) 83%, #211712);
  box-shadow: 0 5px 15px rgba(33, 23, 18, .32);
}

.cd-object-hotspot::after {
  inset: 1px;
  border: 1px solid color-mix(in srgb, var(--object-accent) 42%, transparent);
  opacity: .74;
  animation: cd-object-pulse 2.2s ease-out infinite;
}

.cd-object-hotspot span {
  position: relative;
  z-index: 2;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
}

.cd-object-hotspot.is-active::before {
  background: #fffaf0;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--object-accent) 20%, transparent), 0 6px 18px rgba(33, 23, 18, .35);
}

.cd-object-hotspot.is-active span {
  color: var(--object-accent);
}

.cd-object-hotspot.is-visited::after {
  opacity: 0;
  animation: none;
}

.cd-object-hotspot.is-visited:not(.is-active)::before {
  background: color-mix(in srgb, var(--object-accent) 56%, #376b65);
  box-shadow: 0 0 0 3px rgba(255, 250, 240, .52), 0 5px 15px rgba(33, 23, 18, .28);
}

@keyframes cd-object-pulse {
  from { opacity: .72; transform: scale(.72); }
  to { opacity: 0; transform: scale(1.25); }
}

.cd-object-recon {
  position: static;
  flex: 0 0 auto;
  z-index: 16;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  padding: 8px 14px;
  border-top: 1px solid rgba(65, 42, 29, .14);
  background: rgba(245, 236, 220, .94);
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .04em;
  color: rgba(52, 38, 31, .86);
  text-align: center;
}

.cd-object-recon__label {
  display: inline-block;
}

.cd-object-recon a {
  display: inline-block;
  color: color-mix(in srgb, var(--object-accent) 78%, #34261f);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cd-object-photo-pending {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(244, 221, 176, .20);
  border-left: 3px solid #d3a85e;
  border-radius: 12px;
  background: rgba(255, 250, 240, .055);
}

.cd-object-photo-pending.is-reconstruction {
  border-left-color: #b85a4c;
  background: rgba(184, 90, 76, .08);
}

.cd-object-photo-pending b {
  display: block;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  color: #f0d69f;
}

.cd-object-photo-pending p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.58;
  color: rgba(255, 250, 240, .72);
}

.cd-object-stage[data-media-kind="context-photo"] .cd-object-image {
  background: #e9dfcc;
}

.cd-object-stage[data-media-kind="context-photo"] .cd-object-image img {
  object-fit: cover;
  object-position: 50% 46%;
}

.cd-object-fact-list {
  display: grid;
  gap: 10px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: object-fact;
}

.cd-object-fact-list li {
  position: relative;
  min-height: 52px;
  padding: 12px 12px 12px 46px;
  border: 1px solid rgba(244, 221, 176, .15);
  border-radius: 10px;
  background: rgba(255, 250, 240, .045);
  counter-increment: object-fact;
}

.cd-object-fact-list li::before {
  content: counter(object-fact);
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(240, 214, 159, .48);
  border-radius: 50%;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 850;
  color: #f0d69f;
  background: rgba(211, 168, 94, .12);
}

.cd-object-fact-list b {
  font-family: var(--font-d);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .04em;
  color: #fff6e2;
}

.cd-object-fact-list p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.58;
  color: rgba(255, 250, 240, .70);
}

.cd-object-bilingual-copy {
  display: grid;
  gap: 6px;
}

.cd-object-bilingual-copy span {
  display: block;
}

.cd-object-bilingual-copy > span[lang="zh-CN"] {
  font-size: .88em;
  line-height: 1.55;
  color: rgba(255, 250, 240, .66);
}

.cd-object-reference {
  margin: 14px 0 18px;
  padding: 14px 15px;
  border: 1px solid rgba(244, 221, 176, .17);
  border-radius: 12px;
  background: rgba(255, 250, 240, .045);
}

.cd-object-reference b {
  display: block;
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .10em;
  color: #e8c789;
}

.cd-object-reference p {
  margin: 7px 0 10px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 250, 240, .68);
}

.cd-object-reference a {
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  color: #f2d59f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cd-object-story {
  min-height: 0;
  overflow-y: auto;
  padding: 21px 20px calc(28px + env(safe-area-inset-bottom));
  color: #fffaf0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 250, 240, .16) transparent;
}

.cd-object-story h2 {
  margin: 7px 0 0;
  font-family: var(--cd-serif);
  font-size: clamp(24px, 6.8vw, 36px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #fffaf0;
  text-wrap: balance;
}

.cd-object-story h3 {
  margin: 5px 0 0;
  font-family: var(--cd-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .04em;
  color: rgba(255, 250, 240, .65);
}

.cd-object-museum {
  margin: 9px 0 0;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--cd-gold-pale);
}

.cd-object-intro {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 250, 240, .78);
}

.cd-object-observation-status {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 28px;
  margin: 12px 0 0;
  padding: 5px 9px;
  border: 1px solid rgba(244, 221, 176, .18);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .03em;
  color: var(--cd-gold-pale);
  background: rgba(244, 221, 176, .07);
}

.cd-object-detail {
  margin-top: 14px;
  padding: 13px 14px;
  border-left: 3px solid var(--cd-gold);
  border-radius: 0 12px 12px 0;
  background: rgba(244, 221, 176, .07);
}

.cd-object-detail > span {
  display: block;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--cd-gold-pale);
}

.cd-object-detail p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.58;
  color: rgba(255, 250, 240, .68);
}

.cd-object-quiz {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 250, 240, .10);
}

.cd-object-quiz > span:first-child {
  display: block;
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(244, 221, 176, .72);
}

.cd-object-quiz h4 {
  margin: 7px 0 0;
  font-family: var(--cd-serif);
  font-size: 16px;
  line-height: 1.35;
  color: #fffaf0;
}

.cd-object-choices {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.cd-object-choice {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 250, 240, .13);
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 250, 240, .76);
  text-align: left;
  background: rgba(255, 250, 240, .045);
  cursor: pointer;
}

.cd-object-choice__letter {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 800;
  color: var(--cd-gold-pale);
  background: rgba(244, 221, 176, .10);
}

.cd-object-choice__copy {
  min-width: 0;
  gap: 2px;
}

.cd-object-choice__copy > span {
  width: auto;
  height: auto;
}

.cd-object-choice:hover,
.cd-object-choice:focus-visible {
  border-color: rgba(244, 221, 176, .48);
  color: #fffaf0;
}

.cd-object-choice:disabled {
  cursor: not-allowed;
}

.cd-object-quiz.is-locked .cd-object-choices {
  opacity: .48;
}

.cd-object-quiz.is-complete .cd-object-choice:not(.is-correct) {
  opacity: .50;
}

.cd-object-choice.is-correct {
  border-color: rgba(112, 181, 143, .62);
  color: #e7fff0;
  background: rgba(76, 145, 106, .16);
}

.cd-object-choice.is-wrong {
  border-color: rgba(215, 168, 78, .50);
  color: #fff0cf;
}

.cd-object-answer {
  min-height: 0;
  margin: 9px 0 0;
  font-size: 10.5px;
  line-height: 1.55;
  color: rgba(255, 250, 240, .68);
}

.cd-object-answer.is-correct {
  color: #aee0c2;
}

.cd-object-answer.is-learning {
  color: var(--cd-gold-pale);
}

.cd-object-stamp {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px dashed rgba(244, 221, 176, .26);
  border-radius: 4px;
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .10em;
  color: rgba(244, 221, 176, .48);
  transform: rotate(-1deg);
}

.cd-object-stamp.is-earned {
  border-style: solid;
  border-color: #b94a3d;
  color: #f3c1b7;
  background: rgba(185, 74, 61, .12);
}

.cd-object-source-bilingual {
  gap: 10px;
}

.cd-object-source-bilingual > .cd-object-bilingual-copy {
  min-width: 0;
  gap: 2px;
}

.cd-object-source-bilingual > i {
  margin-left: auto;
  font-style: normal;
}

@media (min-width: 620px) {
  .cd-object-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .cd-object-card__copy b {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 760px) {
  .cd-object-panel {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    grid-template-rows: minmax(0, 1fr);
    width: min(100%, 1080px);
    height: min(840px, calc(100svh - 36px));
    border: 1px solid rgba(255, 250, 240, .10);
    border-radius: 24px;
  }

  .cd-object-story {
    padding: 36px 34px calc(34px + env(safe-area-inset-bottom));
  }

  .cd-object-image img {
    padding: 26px;
  }
}

@media (min-width: 1050px) {
  .cd-object-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cd-object-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-object-hotspot::after {
    animation: none;
  }
}

/* Interactive atlas — the illustrated paper world sits above a verified,
   north-up OSM footprint. Native scrolling keeps the guide dependable offline. */
.cd-map-tools {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  padding: 0 12px 12px;
}

.cd-real-shape {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 8px 14px 8px 8px;
  color: #fff7e7;
  background: #34261f;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
}

.cd-real-shape > svg {
  grid-column: 1;
  grid-row: 1;
  width: 52px;
  height: 52px;
  padding: 6px;
  overflow: visible;
}

.cd-real-shape > svg path {
  fill: color-mix(in srgb, var(--cd-accent) 76%, #f0b95b);
  stroke: rgba(255, 247, 231, .88);
  stroke-width: 1.25;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .25));
}

.cd-real-shape > span:last-child {
  grid-column: 2;
  min-width: 0;
}

.cd-real-shape > span:last-child b,
.cd-real-shape > span:last-child small {
  display: block;
}

.cd-real-shape > span:last-child b {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #f1bd68;
}

.cd-real-shape > span:last-child small {
  margin-top: 4px;
  font-family: var(--cd-serif);
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 247, 231, .72);
}

.cd-compass {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 247, 231, .82);
  border-radius: 50%;
  font-family: var(--font-d);
  font-size: 7px;
  color: #fff7e7;
  background: rgba(52, 38, 31, .78);
}

.cd-compass i {
  position: absolute;
  top: 4px;
  width: 0;
  height: 0;
  border-right: 3px solid transparent;
  border-bottom: 7px solid #f1bd68;
  border-left: 3px solid transparent;
  transform: translateY(-5px);
}

.cd-compass b {
  transform: translateY(3px);
}

.cd-map-actions {
  display: grid;
  grid-template-columns: 44px 50px 44px minmax(64px, auto);
  align-items: stretch;
  justify-content: end;
  min-height: 38px;
  border: 1px solid rgba(65, 42, 29, .13);
  background: rgba(255, 250, 240, .66);
}

.cd-map-actions button,
.cd-map-actions > span {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(65, 42, 29, .10);
  font-family: var(--font-d);
  color: #34261f;
  background: transparent;
}

.cd-map-actions button {
  min-height: 44px;
  padding: 0;
  font-size: 19px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, opacity .18s ease;
}

.cd-map-actions > span {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
}

.cd-map-actions button:hover,
.cd-map-actions button:focus-visible {
  color: #fffaf0;
  background: var(--cd-accent);
}

.cd-map-actions button:disabled {
  opacity: .28;
  cursor: default;
}

.cd-map-actions .cd-map-reset {
  border-right: 0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .10em;
}

.cd-map-layer-switch {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 12px 10px;
}

.cd-map-layer-switch button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid rgba(65, 42, 29, .13);
  border-radius: 9px;
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(52, 38, 31, .68);
  background: rgba(255, 250, 240, .72);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.cd-map-layer-switch button i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid color-mix(in srgb, var(--cd-accent) 28%, transparent);
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  color: var(--cd-accent);
  background: color-mix(in srgb, var(--cd-accent) 7%, #fffaf0);
}

.cd-map-layer-switch button span {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-map-layer-switch button b {
  min-width: 20px;
  font-size: 9px;
  color: inherit;
  text-align: right;
}

.cd-map-layer-switch button:hover,
.cd-map-layer-switch button:focus-visible {
  color: var(--cd-accent);
  border-color: color-mix(in srgb, var(--cd-accent) 40%, transparent);
  transform: translateY(-1px);
}

.cd-map-layer-switch button[aria-pressed="true"] {
  color: #fffaf0;
  border-color: var(--cd-accent);
  background: var(--cd-accent);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--cd-accent) 22%, transparent);
}

.cd-map-layer-switch button[aria-pressed="true"] i {
  color: var(--cd-accent);
  border-color: rgba(255, 250, 240, .72);
  background: #fffaf0;
}

.cd-map-viewport {
  position: relative;
  z-index: 2;
  width: calc(100% - 24px);
  height: auto;
  margin: 0 12px;
  box-sizing: border-box;
  aspect-ratio: 5504 / 3072;
  overflow: auto;
  border: 1px solid rgba(65, 42, 29, .22);
  border-radius: 3px;
  outline: 0;
  background: #d8c49f;
  box-shadow:
    inset 0 0 0 5px rgba(255, 250, 240, .25),
    inset 0 0 52px rgba(80, 44, 24, .18),
    0 14px 30px rgba(73, 43, 25, .12);
  scrollbar-color: color-mix(in srgb, var(--cd-accent) 55%, #c9ad7a) rgba(52, 38, 31, .08);
  scrollbar-width: thin;
  overscroll-behavior: contain;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.cd-map-viewport:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cd-accent) 38%, transparent), 0 14px 30px rgba(73, 43, 25, .12);
}

.cd-map-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.cd-map-canvas {
  position: relative;
  width: max(100%, var(--cd-map-width, 900px));
  aspect-ratio: 5504 / 3072;
  overflow: hidden;
  isolation: isolate;
  background: #ead7ae;
}

.cd-map-canvas::before,
.cd-map-canvas::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.cd-map-canvas::before {
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.cd-map-canvas::after {
  z-index: 4;
  box-shadow: inset 0 0 56px rgba(68, 34, 18, .18), inset 0 0 0 1px rgba(255, 250, 240, .30);
}

.cd-map-canvas .cd-map-art {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transform-origin: 50% 50%;
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.cd-map-viewport.is-dragging .cd-map-art {
  transform: scale(1.008);
}

.cd-map-correction-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  container-type: inline-size;
  pointer-events: none;
  transform: scale(1.001);
  transform-origin: 50% 50%;
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}

.cd-map-viewport.is-dragging .cd-map-correction-layer {
  transform: scale(1.008);
}

/* One shared duplicate of the illustrated map becomes a local paper relief.
   It lifts the actual building pixels instead of drawing another pin on top. */
.cd-map-relief {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.cd-map-relief > img,
.cd-map-relief__corrections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: var(--cd-relief-clip, ellipse(var(--cd-relief-rx, 7.2%) var(--cd-relief-ry, 11.5%) at var(--cd-relief-x, 50%) var(--cd-relief-y, 50%)));
  -webkit-mask-image: radial-gradient(ellipse var(--cd-relief-rx, 7.2%) var(--cd-relief-ry, 11.5%) at var(--cd-relief-x, 50%) var(--cd-relief-y, 50%), #000 34%, rgba(0, 0, 0, .82) 57%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--cd-relief-rx, 7.2%) var(--cd-relief-ry, 11.5%) at var(--cd-relief-x, 50%) var(--cd-relief-y, 50%), #000 34%, rgba(0, 0, 0, .82) 57%, transparent 100%);
  transform-origin: var(--cd-relief-x, 50%) var(--cd-relief-y, 50%);
  will-change: transform, filter, opacity;
}

.cd-map-canvas[data-relief-shape="polygon"] .cd-map-relief > img,
.cd-map-canvas[data-relief-shape="polygon"] .cd-map-relief__corrections {
  -webkit-mask-image: none;
  mask-image: none;
}

.cd-map-canvas[data-relief-shape="polygon"] .cd-map-relief > img {
  filter: brightness(1.025) saturate(1.02) drop-shadow(0 6px 4px rgba(44, 25, 16, .30));
}

.cd-map-relief > img {
  z-index: 2;
  display: block;
  object-fit: cover;
  transform: translateY(0) scale(1.001);
  filter: brightness(1.012) saturate(1.01);
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), filter .42s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.cd-map-relief__shadow {
  position: absolute;
  z-index: 1;
  left: var(--cd-relief-x, 50%);
  top: calc(var(--cd-relief-y, 50%) + 2%);
  width: var(--cd-relief-shadow-w, 10%);
  height: var(--cd-relief-shadow-h, 5%);
  border-radius: 50%;
  background: rgba(44, 25, 16, .42);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.82);
  filter: blur(9px);
  transition: opacity .24s ease, transform .42s cubic-bezier(.16, 1, .3, 1), filter .42s ease;
}

.cd-map-relief__corrections {
  z-index: 3;
  transform: translateY(0) scale(1.001);
  transition: transform .42s cubic-bezier(.16, 1, .3, 1);
}

.cd-map-canvas.is-relief-active .cd-map-relief {
  opacity: 1;
}

.cd-map-canvas.is-relief-active .cd-map-relief > img,
.cd-map-canvas.is-relief-active .cd-map-relief__corrections {
  transform: perspective(700px) translateY(-2px) rotateX(1.2deg) scale(1.006);
}

.cd-map-canvas.is-relief-active .cd-map-relief__shadow {
  opacity: .28;
  transform: translate(-50%, -50%) scale(1);
}

.cd-map-canvas.is-relief-open .cd-map-relief > img,
.cd-map-canvas.is-relief-open .cd-map-relief__corrections {
  transform: perspective(700px) translateY(-7px) rotateX(2.4deg) scale(1.016);
}

.cd-map-canvas.is-relief-open .cd-map-relief > img {
  filter: brightness(1.045) saturate(1.025);
}

.cd-map-canvas.is-relief-open .cd-map-relief__shadow {
  opacity: .38;
  transform: translate(-50%, -50%) translateY(7px) scale(1.12);
  filter: blur(11px);
}

.cd-map-correction {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  writing-mode: vertical-rl;
  text-orientation: upright;
  pointer-events: none;
  font-family: var(--cd-serif);
  font-size: clamp(5px, 1.02cqw, 18px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  color: #5a291b;
  background: linear-gradient(#fbe4af, #efc78d);
  border: .13cqw solid #b87d52;
  border-radius: .28cqw;
  box-shadow: 0 0 0 .12cqw #e0a66f;
}

.cd-map-correction.is-dark {
  color: #f3dca8;
  background: linear-gradient(180deg, #493025, #302019);
  border-color: #b88a52;
  box-shadow: 0 0 0 .12cqw rgba(246, 211, 145, .55), 0 .25cqw .55cqw rgba(44, 23, 14, .26);
}

.cd-route-overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cd-route-shadow,
.cd-route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cd-route-shadow {
  stroke: rgba(52, 38, 31, .50);
  stroke-width: 1.35;
  opacity: .48;
}

.cd-route-line {
  stroke: #fff4d8;
  stroke-width: .62;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 1px 0 var(--cd-accent));
}

.cd-map-canvas.is-ready .cd-route-line {
  animation: cd-route-draw 1.8s cubic-bezier(.16, 1, .3, 1) .18s forwards;
}

@keyframes cd-route-draw {
  to { stroke-dashoffset: 0; }
}

.cd-map-canvas .cd-hotspot {
  --cd-pin: var(--cd-accent);
  z-index: 8;
  opacity: 0;
}

.cd-map-canvas.is-ready .cd-hotspot {
  animation: cd-map-pin-in .62s cubic-bezier(.16, 1, .3, 1) var(--pin-delay, .72s) both;
}

@keyframes cd-map-pin-in {
  from { opacity: 0; transform: translateY(10px) scale(.72); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cd-discovery-hotspot {
  position: absolute;
  z-index: 7;
  left: var(--x, 50%);
  top: var(--y, 50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fffaf0;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* In the combined layer the smaller discovery marker must remain the visible
   tap target; story buildings are still available around it and in the list. */
.cd-map-canvas[data-layer="all"] .cd-discovery-hotspot {
  z-index: 9;
}

.cd-map-canvas.is-ready .cd-discovery-hotspot {
  animation: cd-map-pin-in .48s cubic-bezier(.16, 1, .3, 1) var(--pin-delay, 1s) both;
}

.cd-discovery-hotspot__dot {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 250, 240, .94);
  border-radius: 4px;
  color: #fffaf0;
  background: color-mix(in srgb, var(--cd-accent) 88%, #3b2b22);
  box-shadow: 0 4px 11px rgba(33, 23, 18, .34), 0 0 0 1px color-mix(in srgb, var(--cd-accent) 72%, transparent);
  transform: rotate(45deg);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.cd-discovery-hotspot__dot i {
  font-family: var(--font-d);
  font-size: 8px;
  font-style: normal;
  line-height: 1;
  transform: rotate(-45deg);
}

.cd-discovery-hotspot[data-kind="object"] .cd-discovery-hotspot__dot,
.cd-discovery-hotspot[data-kind="water"] .cd-discovery-hotspot__dot,
.cd-discovery-hotspot[data-kind="garden"] .cd-discovery-hotspot__dot {
  border-radius: 50%;
  transform: none;
}

.cd-discovery-hotspot[data-kind="object"] .cd-discovery-hotspot__dot i,
.cd-discovery-hotspot[data-kind="water"] .cd-discovery-hotspot__dot i,
.cd-discovery-hotspot[data-kind="garden"] .cd-discovery-hotspot__dot i {
  transform: none;
}

.cd-discovery-hotspot__label {
  position: absolute;
  z-index: 4;
  top: calc(100% - 4px);
  left: 50%;
  width: max-content;
  max-width: 142px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 250, 240, .42);
  border-radius: 7px;
  color: #fffaf0;
  background: rgba(33, 23, 18, .88);
  box-shadow: 0 7px 16px rgba(33, 23, 18, .24);
  opacity: 0;
  transform: translateX(-50%) translateY(-3px) scale(.94);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  text-align: center;
}

.cd-discovery-hotspot__label b,
.cd-discovery-hotspot__label small {
  display: block;
  font-family: var(--font-d);
  font-size: 8px;
  line-height: 1.22;
}

.cd-discovery-hotspot__label small {
  margin-top: 2px;
  font-family: var(--cd-serif);
  font-size: 7px;
  font-weight: 500;
  color: rgba(255, 250, 240, .72);
}

.cd-discovery-hotspot:hover .cd-discovery-hotspot__dot,
.cd-discovery-hotspot:focus-visible .cd-discovery-hotspot__dot,
.cd-discovery-hotspot.is-active .cd-discovery-hotspot__dot {
  background: #f0b553;
  transform: rotate(45deg) scale(1.14);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--cd-accent) 22%, transparent), 0 7px 16px rgba(33, 23, 18, .34);
}

.cd-discovery-hotspot[data-kind="object"]:hover .cd-discovery-hotspot__dot,
.cd-discovery-hotspot[data-kind="object"]:focus-visible .cd-discovery-hotspot__dot,
.cd-discovery-hotspot[data-kind="object"].is-active .cd-discovery-hotspot__dot,
.cd-discovery-hotspot[data-kind="water"]:hover .cd-discovery-hotspot__dot,
.cd-discovery-hotspot[data-kind="water"]:focus-visible .cd-discovery-hotspot__dot,
.cd-discovery-hotspot[data-kind="water"].is-active .cd-discovery-hotspot__dot,
.cd-discovery-hotspot[data-kind="garden"]:hover .cd-discovery-hotspot__dot,
.cd-discovery-hotspot[data-kind="garden"]:focus-visible .cd-discovery-hotspot__dot,
.cd-discovery-hotspot[data-kind="garden"].is-active .cd-discovery-hotspot__dot {
  transform: scale(1.14);
}

.cd-discovery-hotspot:hover .cd-discovery-hotspot__label,
.cd-discovery-hotspot:focus-visible .cd-discovery-hotspot__label,
.cd-discovery-hotspot.is-active .cd-discovery-hotspot__label,
.cd-discovery-hotspot.is-focused .cd-discovery-hotspot__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.cd-discovery-hotspot.is-visited:not(.is-active) .cd-discovery-hotspot__dot::after {
  content: "✓";
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 11px;
  height: 11px;
  border: 1px solid #fffaf0;
  border-radius: 50%;
  font-family: var(--font-d);
  font-size: 6px;
  color: #fffaf0;
  background: #2f7468;
  transform: rotate(-45deg);
}

.cd-discovery-hotspot[data-kind="object"].is-visited .cd-discovery-hotspot__dot::after,
.cd-discovery-hotspot[data-kind="water"].is-visited .cd-discovery-hotspot__dot::after,
.cd-discovery-hotspot[data-kind="garden"].is-visited .cd-discovery-hotspot__dot::after {
  transform: none;
}

.cd-map-canvas .cd-hotspot.is-focused .cd-hotspot__pin {
  transform: translateY(-3px) scale(1.18);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--cd-accent) 20%, transparent), 0 10px 22px rgba(54, 23, 14, .42);
}

.cd-map-canvas .cd-hotspot.is-focused .cd-hotspot__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* The map points remain semantic buttons, but no longer look like UI buttons.
   A small route tab identifies the stop while the building carries the action. */
.cd-map-canvas .cd-hotspot {
  grid-template-columns: 68px;
  width: 68px;
  height: 60px;
  min-width: 68px;
  min-height: 60px;
  margin: -30px 0 0 -34px;
  border-radius: 18px;
  filter: none;
  outline: 0;
}

@media (max-width: 640px) {
  .cd-map-canvas[data-layer="all"] .cd-hotspot {
    grid-template-columns: 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin: -18px 0 0 -18px;
  }

  .cd-map-canvas[data-layer="all"] .cd-discovery-hotspot {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
  }
}

.culture-page .cd-map-canvas .cd-hotspot:focus-visible {
  outline: 0;
}

.cd-map-canvas .cd-hotspot__pin {
  position: absolute;
  right: 4px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border: 1px solid color-mix(in srgb, var(--cd-pin) 58%, #7a5b3b);
  border-radius: 3px 3px 6px 3px;
  font-size: 7.5px;
  color: color-mix(in srgb, var(--cd-pin) 82%, #34261f);
  background: color-mix(in srgb, var(--cd-pin) 12%, #fff1cf);
  box-shadow: 0 3px 7px rgba(54, 23, 14, .22), inset 0 1px rgba(255, 255, 255, .48);
  opacity: 0;
  transform: translateY(6px) scale(.72);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1), box-shadow .32s ease, background .32s ease;
}

.cd-map-canvas .cd-hotspot__pin::before {
  inset: -5px;
  border-width: 1px;
  border-radius: 7px;
  opacity: 0;
  animation: none;
  transition: opacity .2s ease, transform .32s cubic-bezier(.16, 1, .3, 1);
}

.cd-map-canvas .cd-hotspot:hover .cd-hotspot__pin,
.cd-map-canvas .cd-hotspot:focus-visible .cd-hotspot__pin,
.cd-map-canvas .cd-hotspot.is-focused .cd-hotspot__pin {
  opacity: .72;
  transform: translateY(-5px) rotate(-3deg) scale(1.02);
  box-shadow: 0 7px 13px rgba(54, 23, 14, .24), inset 0 1px rgba(255, 255, 255, .28);
}

.cd-map-canvas .cd-hotspot:focus-visible .cd-hotspot__pin {
  opacity: .88;
  box-shadow: 0 0 0 2px #fff8e8, 0 0 0 4px var(--cd-accent), 0 8px 14px rgba(54, 23, 14, .28);
}

.cd-map-canvas .cd-hotspot:hover .cd-hotspot__pin::before,
.cd-map-canvas .cd-hotspot:focus-visible .cd-hotspot__pin::before,
.cd-map-canvas .cd-hotspot.is-focused .cd-hotspot__pin::before,
.cd-map-canvas .cd-hotspot.is-relief-open .cd-hotspot__pin::before {
  opacity: .72;
  transform: scale(1.08);
}

.cd-map-canvas .cd-hotspot.is-relief-open .cd-hotspot__pin {
  opacity: .96;
  color: #3b2419;
  background: #f1bd68;
  transform: translateY(-10px) rotate(-4deg) scale(1.12);
  box-shadow: 0 11px 18px rgba(54, 23, 14, .36), inset 0 1px rgba(255, 255, 255, .42);
}

.cd-map-canvas .cd-hotspot:active .cd-hotspot__pin {
  transform: translateY(-7px) scale(.98);
}

.cd-map-canvas .cd-hotspot__label,
.cd-map-canvas .cd-discovery-hotspot__label {
  color: #34261f;
  border-color: rgba(90, 44, 26, .22);
  background: rgba(255, 247, 228, .95);
  box-shadow: 0 9px 18px rgba(54, 23, 14, .22), inset 0 0 0 1px rgba(255, 255, 255, .50);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  text-shadow: none;
}

.cd-map-canvas .cd-hotspot__label small,
.cd-map-canvas .cd-discovery-hotspot__label small {
  color: rgba(52, 38, 31, .62);
}

.cd-map-canvas .cd-hotspot.is-relief-open .cd-hotspot__label {
  opacity: 1;
  transform: translateX(-50%) translateY(-11px) scale(1);
  box-shadow: 0 13px 20px rgba(54, 23, 14, .20), inset 0 0 0 1px rgba(255, 255, 255, .40);
}

/* Discoveries become small cartographic seals. Their 44px hit areas stay
   comfortable for touch, while the visual mark no longer reads as a button. */
.cd-map-canvas .cd-discovery-hotspot__dot {
  width: 13px;
  height: 13px;
  border-width: 1px;
  border-radius: 3px;
  color: var(--cd-accent);
  background: rgba(255, 247, 228, .92);
  box-shadow: 0 3px 7px rgba(54, 23, 14, .26), 0 0 0 1px color-mix(in srgb, var(--cd-accent) 52%, transparent);
}

.cd-map-canvas .cd-discovery-hotspot__dot i {
  font-size: 6px;
}

.cd-map-canvas .cd-discovery-hotspot:hover .cd-discovery-hotspot__dot,
.cd-map-canvas .cd-discovery-hotspot:focus-visible .cd-discovery-hotspot__dot,
.cd-map-canvas .cd-discovery-hotspot.is-active .cd-discovery-hotspot__dot {
  color: #34261f;
  background: #f1bd68;
  transform: rotate(45deg) translate(-1px, -1px) scale(1.08);
  box-shadow: 0 5px 9px rgba(54, 23, 14, .26), 0 0 0 3px color-mix(in srgb, var(--cd-accent) 11%, transparent);
}

.cd-map-canvas .cd-discovery-hotspot[data-kind="object"]:hover .cd-discovery-hotspot__dot,
.cd-map-canvas .cd-discovery-hotspot[data-kind="object"]:focus-visible .cd-discovery-hotspot__dot,
.cd-map-canvas .cd-discovery-hotspot[data-kind="object"].is-active .cd-discovery-hotspot__dot,
.cd-map-canvas .cd-discovery-hotspot[data-kind="water"]:hover .cd-discovery-hotspot__dot,
.cd-map-canvas .cd-discovery-hotspot[data-kind="water"]:focus-visible .cd-discovery-hotspot__dot,
.cd-map-canvas .cd-discovery-hotspot[data-kind="water"].is-active .cd-discovery-hotspot__dot,
.cd-map-canvas .cd-discovery-hotspot[data-kind="garden"]:hover .cd-discovery-hotspot__dot,
.cd-map-canvas .cd-discovery-hotspot[data-kind="garden"]:focus-visible .cd-discovery-hotspot__dot,
.cd-map-canvas .cd-discovery-hotspot[data-kind="garden"].is-active .cd-discovery-hotspot__dot {
  transform: translateY(-2px) scale(1.08);
}

.cd-map-canvas .cd-discovery-hotspot.is-visited:not(.is-active) .cd-discovery-hotspot__dot::after {
  right: -6px;
  bottom: -6px;
  width: 9px;
  height: 9px;
  font-size: 5px;
}

.cd-route-end {
  position: absolute;
  z-index: 7;
  left: var(--x);
  top: var(--y);
  padding: 3px 6px;
  border: 1px solid rgba(255, 248, 229, .75);
  font-family: var(--font-d);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #fff8e5;
  background: rgba(52, 38, 31, .80);
  box-shadow: 0 4px 9px rgba(52, 38, 31, .20);
  pointer-events: none;
}

.cd-route-start { transform: translate(-50%, 24px); }
.cd-route-finish { transform: translate(-50%, -35px); }

.cd-map-instruction {
  position: sticky;
  z-index: 12;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: -43px 10px 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 248, 229, .28);
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255, 248, 229, .88);
  background: rgba(52, 38, 31, .82);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.cd-map-instruction span {
  font-size: 15px;
  color: #f1bd68;
}

.cd-discovery-panel {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: start;
  margin: 10px 12px 0;
  padding: 14px 12px 14px 14px;
  border: 1px solid color-mix(in srgb, var(--cd-accent) 24%, rgba(65, 42, 29, .12));
  border-left: 4px solid var(--cd-accent);
  border-radius: 11px;
  color: #34261f;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cd-accent) 6%, #fffaf0), rgba(255, 250, 240, .96));
  box-shadow: 0 12px 28px rgba(73, 43, 25, .10);
}

.cd-discovery-panel[hidden] {
  display: none;
}

.cd-discovery-panel__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--cd-accent) 34%, transparent);
  border-radius: 10px;
  font-family: var(--font-d);
  font-size: 18px;
  color: var(--cd-accent);
  background: color-mix(in srgb, var(--cd-accent) 8%, #fffaf0);
}

.cd-discovery-panel__copy {
  min-width: 0;
}

.cd-discovery-panel__copy > span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-d);
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: .13em;
  color: var(--cd-accent);
}

.cd-discovery-panel__copy h3,
.cd-discovery-panel__copy h4,
.cd-discovery-panel__copy p {
  margin: 0;
}

.cd-discovery-panel__copy h3 {
  font-family: var(--cd-serif);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.08;
}

.cd-discovery-panel__copy h4 {
  margin-top: 3px;
  font-family: var(--cd-song);
  font-size: 14px;
  font-weight: 500;
  color: color-mix(in srgb, var(--cd-accent) 72%, #34261f);
}

.cd-discovery-panel__copy p {
  margin-top: 8px;
  font-family: var(--cd-serif);
  font-size: 11px;
  line-height: 1.52;
  color: rgba(52, 38, 31, .75);
}

.cd-discovery-panel__copy p[lang="zh-CN"] {
  margin-top: 4px;
  font-family: var(--cd-song);
  color: rgba(52, 38, 31, .62);
}

.cd-discovery-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.cd-discovery-panel__actions button,
.cd-discovery-panel__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--cd-accent) 28%, transparent);
  border-radius: 7px;
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--cd-accent);
  background: rgba(255, 250, 240, .84);
  cursor: pointer;
  text-decoration: none;
}

.cd-discovery-panel__actions button:hover,
.cd-discovery-panel__actions button:focus-visible,
.cd-discovery-panel__actions a:hover,
.cd-discovery-panel__actions a:focus-visible {
  color: #fffaf0;
  background: var(--cd-accent);
}

.cd-discovery-panel__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 50%;
  color: rgba(52, 38, 31, .64);
  background: rgba(255, 250, 240, .74);
  cursor: pointer;
}

.cd-discovery-panel__close svg {
  width: 18px;
  height: 18px;
}

.cd-map-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 10px 12px 0;
  background: rgba(65, 42, 29, .12);
}

.cd-map-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 41px;
  padding: 9px 11px;
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #34261f;
  background: rgba(255, 250, 240, .78);
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.cd-map-links a:hover,
.cd-map-links a:focus-visible {
  color: #fffaf0;
  background: var(--cd-accent);
}

.cd-map-credit {
  margin: -5px 14px 12px;
  font-size: 8.5px;
  line-height: 1.45;
  color: rgba(52, 38, 31, .45);
  text-align: center;
}

.cd-map-credit a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--cd-accent) 46%, transparent);
  text-underline-offset: 2px;
}

@media (min-width: 620px) {
  .cd-map-tools {
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: stretch;
  }

  .cd-map-actions {
    align-self: stretch;
    min-width: 206px;
  }

  .cd-real-shape {
    max-width: 430px;
  }
}

@media (max-width: 430px) {
  .cd-map-tools,
  .cd-map-viewport,
  .cd-map-layer-switch,
  .cd-discovery-panel {
    margin-right: 9px;
    margin-left: 9px;
  }

  .cd-map-tools {
    padding-right: 0;
    padding-left: 0;
  }

  .cd-map-viewport {
    width: calc(100% - 18px);
    height: auto;
    aspect-ratio: 5504 / 3072;
  }

  .cd-map-links {
    grid-template-columns: 1fr;
    margin-right: 9px;
    margin-left: 9px;
  }

  .cd-map-links a {
    min-height: 44px;
  }

  .cd-map-layer-switch {
    gap: 4px;
  }

  .cd-map-layer-switch button {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .cd-map-layer-switch button i {
    display: none;
  }

  .cd-map-layer-switch button b {
    display: block;
    min-width: 14px;
    font-size: 11px;
  }

  .cd-discovery-panel {
    grid-template-columns: 38px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 12px 8px 12px 10px;
  }

  .cd-discovery-panel__mark {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .cd-discovery-panel__actions button,
  .cd-discovery-panel__actions a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-map-canvas.is-ready .cd-route-line,
  .cd-map-canvas.is-ready .cd-hotspot,
  .cd-map-canvas.is-ready .cd-discovery-hotspot {
    animation: none;
  }

  .cd-route-line {
    stroke-dashoffset: 0;
  }

  .cd-map-canvas .cd-hotspot,
  .cd-map-canvas .cd-discovery-hotspot {
    opacity: 1;
  }

  .cd-map-canvas .cd-map-art {
    transition: none;
  }

  .cd-map-relief,
  .cd-map-relief > img,
  .cd-map-relief__corrections,
  .cd-map-relief__shadow,
  .cd-map-canvas .cd-hotspot__pin {
    transition: none;
  }

  .cd-map-canvas.is-relief-active .cd-map-relief > img,
  .cd-map-canvas.is-relief-active .cd-map-relief__corrections,
  .cd-map-canvas.is-relief-open .cd-map-relief > img,
  .cd-map-canvas.is-relief-open .cd-map-relief__corrections {
    transform: none;
  }
}

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

  .cd-hotspot__pin::before {
    display: none;
  }
}

@media (forced-colors: active) {
  .cd-tab[aria-selected="true"],
  .cd-tab.active,
  .cd-hotspot__pin,
  .cd-intro__enter::after {
    border: 2px solid ButtonText;
  }

  .cd-hotspot__label {
    border: 1px solid CanvasText;
  }
}

/*
 * ===== Runtime markup compatibility =====
 * app.js keeps the Culture Day DOM intentionally small. These selectors bind
 * that exact markup to the component system above without affecting any other
 * route.
 */

/* The only Culture Day affordance shown inside the regular agenda. */
.cd-entry-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 5px 0 0 0;
  padding: 3px 8px;
  border: 1px solid rgba(182, 56, 47, .18);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  color: #8d2d26;
  background: rgba(182, 56, 47, .08);
  vertical-align: middle;
}

.cd-entry-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #b6382f;
}

.culture-evt .cd-entry-badge {
  display: flex;
  width: max-content;
  max-width: 100%;
}

/* Page scaffold and actual hero. */
.culture-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding:
    calc(14px + env(safe-area-inset-top))
    16px
    calc(34px + env(safe-area-inset-bottom));
}

.cd-hero {
  position: relative;
  padding: 0 2px 24px;
  text-align: center;
}

.cd-hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 18px;
}

.cd-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.cd-soundscape {
  display: grid;
  grid-template-columns: 22px auto 7px;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 4px 3px 4px 6px;
  border: 0;
  border-bottom: 1px solid rgba(98, 19, 15, .24);
  border-radius: 0;
  color: rgba(52, 38, 31, .70);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color .22s ease, border-color .22s ease;
}

.cd-soundscape > span:first-child {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.cd-soundscape svg {
  width: 17px;
  height: 17px;
}

.cd-soundscape b,
.cd-soundscape small {
  display: block;
  font-family: var(--font-d);
  line-height: 1.15;
  white-space: nowrap;
}

.cd-soundscape b {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
}

.cd-soundscape small {
  margin-top: 3px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: .11em;
  color: rgba(52, 38, 31, .42);
}

.cd-soundscape i {
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--cd-accent) 30%, transparent);
}

.cd-soundscape:hover,
.cd-soundscape:focus-visible,
.cd-soundscape.is-playing {
  color: var(--cd-accent);
  border-bottom-color: var(--cd-accent);
}

.cd-soundscape.is-playing i {
  border-color: var(--cd-accent);
  background: #f1bd68;
  animation: cd-score-breathe 2.2s ease-out infinite;
}

.cd-soundscape.is-playing small {
  color: var(--cd-accent);
}

.cd-soundscape.is-unavailable {
  opacity: .42;
}

@keyframes cd-score-breathe {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cd-accent) 30%, transparent); }
  55% { box-shadow: 0 0 0 5px transparent; }
}

.cd-back,
.cd-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(98, 19, 15, .13);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  color: var(--cd-ink);
  background: rgba(255, 250, 240, .72);
  box-shadow: 0 10px 30px -20px rgba(33, 23, 18, .62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  white-space: nowrap;
}

.cd-back svg {
  width: 17px;
  height: 17px;
}

.cd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--cd-accent) 18%, transparent);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cd-accent);
  background: rgba(255, 250, 240, .54);
}

.cd-hero__eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cd-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cd-accent) 10%, transparent);
}

.cd-hero > h1 {
  max-width: 650px;
  margin: 13px auto 0;
  font-family: var(--cd-serif);
  font-size: clamp(34px, 10.2vw, 58px);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -.047em;
  color: var(--cd-red-deep);
  text-wrap: balance;
}

.cd-hero__zh {
  margin: 8px auto 0;
  font-family: var(--cd-serif);
  font-size: clamp(15px, 4.2vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .08em;
  color: rgba(33, 23, 18, .72);
}

.cd-hero__lede {
  max-width: 530px;
  margin: 10px auto 0;
  font-size: 12.5px;
  line-height: 1.62;
  color: rgba(33, 23, 18, .58);
  text-wrap: balance;
}

/* app.js uses .cd-chapters itself as the tab list. */
.cd-chapters {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid rgba(98, 19, 15, .10);
  border-radius: 19px;
  background: rgba(255, 250, 240, .72);
  box-shadow: 0 20px 44px -32px rgba(33, 23, 18, .68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cd-chapters .cd-tab {
  min-height: 52px;
}

.cd-chapters .cd-tab > span {
  display: block;
  margin: 0;
  overflow: hidden;
  font-family: var(--font-d);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-chapters .cd-tab > small {
  display: block;
  margin-top: 3px;
  font-family: var(--cd-serif);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .10em;
  color: inherit;
  opacity: .67;
}

.cd-chapters .cd-tab[aria-selected="true"],
.cd-chapters .cd-tab.is-active {
  color: #fffaf0;
  background: var(--cd-accent);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--cd-accent) 76%, #211712), inset 0 1px rgba(255, 255, 255, .22);
}

/* Actual map header and route note. */
.cd-map-shell {
  margin: 0;
}

.cd-map-meta {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 13px 13px;
}

.cd-map-meta > div {
  min-width: 0;
}

.cd-map-meta > div > span {
  display: block;
  overflow: hidden;
  font-family: var(--font-d);
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cd-accent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-map-meta h2 {
  margin: 5px 0 0;
  font-family: var(--cd-serif);
  font-size: clamp(22px, 6.3vw, 30px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--cd-ink);
}

.cd-map-meta p {
  margin: 3px 0 0;
  font-size: 10.5px;
  line-height: 1.35;
  color: rgba(33, 23, 18, .53);
}

.cd-map-key {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  margin-top: 1px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--cd-accent) 16%, transparent);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cd-accent);
  background: color-mix(in srgb, var(--cd-accent) 8%, #fffaf0);
  white-space: nowrap;
}

.cd-map-key i {
  width: 7px;
  height: 7px;
  border: 2px solid rgba(255, 250, 240, .78);
  border-radius: 50%;
  background: var(--cd-accent);
  box-shadow: 0 0 0 1px var(--cd-accent);
}

.cd-map-shell .cd-map-stage {
  min-height: 0;
  aspect-ratio: 720 / 1060;
  margin: 0;
  border: 1px solid rgba(98, 19, 15, .10);
  border-radius: 22px;
  background: #eadbbe;
}

.cd-map-shell .cd-map-art {
  object-fit: cover;
}

.cd-map-shell .cd-hotspot {
  --cd-pin: var(--cd-accent);
}

/* The illustrated maps already carry bilingual names; keep the canvas calm
   until a pointer or keyboard focus asks for the floating label. */
.cd-map-shell .cd-hotspot__label {
  opacity: 0;
  transform: translateX(-50%) translateY(-2px) scale(.94);
  transition: opacity .2s ease, transform .2s var(--cd-ease);
}

.cd-map-shell .cd-hotspot:hover .cd-hotspot__label,
.cd-map-shell .cd-hotspot:focus-visible .cd-hotspot__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.cd-route-note {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 12px 14px 11px;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(33, 23, 18, .52);
  text-align: center;
}

.cd-route-note::before {
  content: "\2191";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  font-family: var(--font-d);
  font-size: 10px;
  color: var(--cd-accent);
  background: color-mix(in srgb, var(--cd-accent) 9%, #fffaf0);
  vertical-align: -4px;
}

/* Story index below the map. */
.cd-stop-list {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(98, 19, 15, .10);
  border-radius: 22px;
  background: rgba(255, 250, 240, .66);
  box-shadow: 0 22px 48px -38px rgba(33, 23, 18, .66);
}

.cd-stop-list__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 15px 11px;
  border-bottom: 1px solid rgba(98, 19, 15, .08);
}

.cd-stop-list__head > span {
  font-family: var(--cd-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cd-ink);
}

.cd-stop-list__head > small {
  font-size: 8.5px;
  font-weight: 650;
  line-height: 1.3;
  color: rgba(33, 23, 18, .43);
  text-align: right;
}

.cd-stop-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 66px;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid rgba(98, 19, 15, .075);
  color: var(--cd-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color .24s ease, transform .2s var(--cd-ease);
}

.cd-stop-card:last-child {
  border-bottom: 0;
}

.cd-stop-card:active {
  transform: scale(.992);
  background: color-mix(in srgb, var(--cd-accent) 5%, transparent);
}

.cd-stop-card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid color-mix(in srgb, var(--cd-accent) 30%, transparent);
  border-radius: 50%;
  font-family: var(--font-d);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--cd-accent);
  background: color-mix(in srgb, var(--cd-accent) 7%, #fffaf0);
}

.cd-stop-card__copy {
  min-width: 0;
}

.cd-stop-card__copy b {
  display: block;
  overflow: hidden;
  font-family: var(--font-d);
  font-size: 11.5px;
  font-weight: 720;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-stop-card__copy small {
  display: inline-block;
  margin-top: 2px;
  font-family: var(--cd-serif);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(33, 23, 18, .57);
}

.cd-stop-card__copy em {
  display: inline-block;
  margin: 3px 0 0 7px;
  padding: 2px 6px;
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.3;
  color: rgba(33, 23, 18, .48);
  background: rgba(33, 23, 18, .055);
  vertical-align: 1px;
}

.cd-stop-card[data-status="ready"] .cd-stop-card__copy em {
  color: #2e685f;
  background: rgba(46, 104, 95, .10);
}

.cd-stop-card[data-status="ready"] .cd-stop-card__arrow {
  color: #fffaf0;
  background: var(--cd-accent);
}

.cd-stop-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--font-d);
  font-size: 9px;
  color: var(--cd-accent);
  background: color-mix(in srgb, var(--cd-accent) 8%, #fffaf0);
}

.cd-footer {
  display: grid;
  gap: 12px;
  padding: 22px 4px 2px;
  text-align: center;
}

.cd-footer p {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: rgba(33, 23, 18, .43);
}

.cd-footer button {
  justify-self: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(98, 19, 15, .13);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--cd-ink);
  background: rgba(255, 250, 240, .62);
  cursor: pointer;
}

/* Actual intro: full-bleed 9:16 visual with copy/actions over the film. */
.cd-intro {
  display: block;
}

.cd-intro__visual {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100vw, calc(100svh * .5625));
  overflow: hidden;
  background:
    radial-gradient(80% 54% at 50% 28%, rgba(215, 168, 78, .20), transparent 72%),
    linear-gradient(180deg, #6d1713 0%, #2b110e 56%, #120d0b 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, .66);
  transform: translateX(-50%);
}

.cd-intro__visual::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 5, 4, .08), transparent 24%, transparent 46%, rgba(7, 5, 4, .70) 72%, rgba(7, 5, 4, .98) 100%),
    radial-gradient(circle at 50% 38%, transparent 45%, rgba(7, 5, 4, .23));
}

.cd-intro__fallback,
.cd-intro__fallback img,
.cd-intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-intro__fallback {
  z-index: 1;
}

.cd-intro__fallback picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.cd-intro__fallback img {
  animation: cd-intro-drift 11s ease-out both;
}

.cd-intro__fallback.is-placeholder {
  background:
    radial-gradient(circle at 50% 32%, rgba(244, 221, 176, .18), transparent 32%),
    linear-gradient(145deg, #4e1714, #11100f 72%);
}

.cd-map-canvas.is-fallback .cd-map-art {
  object-fit: contain;
  transform: none;
  background: #eadbbe;
}

.cd-map-canvas.is-fallback .cd-map-correction-layer {
  display: none;
}

.cd-intro__video {
  z-index: 2;
  opacity: 0;
  background: #2b110e;
  transition: opacity .5s ease;
}

.cd-intro.has-video .cd-intro__video {
  opacity: 1;
}

.cd-intro__grain {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

@keyframes cd-intro-drift {
  from { transform: scale(1.035); }
  to { transform: scale(1.10) translateY(-.8%); }
}

.cd-intro__tools {
  position: absolute;
  z-index: 20;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: min(100vw, calc(100svh * .5625));
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  transform: translateX(-50%);
  pointer-events: none;
}

.cd-intro__close,
.cd-intro__sound {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 250, 240, .25);
  border-radius: 50%;
  color: #fffaf0;
  background: rgba(20, 13, 11, .30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  pointer-events: auto;
}

.cd-intro__close svg,
.cd-intro__sound svg {
  width: 17px;
  height: 17px;
}

.cd-intro__sound {
  border-radius: 999px;
}

.cd-intro__sound i {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 250, 240, .72);
  border-radius: 50%;
  background: rgba(20, 13, 11, .72);
}

.cd-intro__sound.is-playing {
  color: #ffe09c;
  border-color: rgba(255, 224, 156, .72);
  background: rgba(91, 39, 25, .58);
}

.cd-intro__sound.is-playing i {
  border-color: #fff1c8;
  background: #e6ae4e;
  box-shadow: 0 0 0 3px rgba(230, 174, 78, .22);
}

.cd-intro__sound.is-suspended {
  color: rgba(255, 250, 240, .62);
}

.cd-intro > .cd-intro__copy,
.cd-intro__actions {
  position: absolute;
  z-index: 18;
  left: 50%;
  width: min(100vw, calc(100svh * .5625));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  transform: translateX(-50%);
}

.cd-intro > .cd-intro__copy {
  bottom: calc(106px + env(safe-area-inset-bottom));
  display: block;
  text-align: left;
}

.cd-intro__copy h1 {
  max-width: 92%;
  margin: 8px 0 0;
  font-family: var(--cd-serif);
  font-size: clamp(34px, 10.4vw, 52px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.045em;
  color: #fffaf0;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .58);
}

.cd-intro__copy p {
  margin: 7px 0 0;
  font-family: var(--cd-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
  color: rgba(255, 250, 240, .72);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .52);
}

.cd-intro__actions {
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.cd-intro__actions .cd-intro__skip {
  min-width: 78px;
  padding: 0 13px;
}

.cd-intro__actions .cd-intro__enter {
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 6px 8px 6px 15px;
  font-size: 11.5px;
}

.cd-intro__actions .cd-intro__enter::after {
  display: none;
}

.cd-intro__actions .cd-intro__enter > span {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  color: #fffaf0;
  background: linear-gradient(145deg, var(--cd-red), var(--cd-red-deep));
}

/* Actual stop viewer. */
.cd-media {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.cd-media__panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(270px, 47svh) minmax(0, 1fr);
  width: min(100%, 760px);
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(80% 35% at 50% 0%, rgba(156, 33, 27, .19), transparent 80%),
    #14100e;
  box-shadow: 0 0 70px rgba(0, 0, 0, .54);
}

.cd-media__panel > .cd-media__close {
  position: absolute;
  z-index: 20;
  top: calc(12px + env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  background: rgba(16, 13, 12, .42);
}

.cd-media__video-wrap,
.cd-media__preview {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #090807;
}

.cd-media__video-wrap::after,
.cd-media__preview::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(0deg, #14100e, transparent);
}

.cd-media__video-wrap video,
.cd-media__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090807;
}

.cd-media__preview img {
  object-fit: cover;
  opacity: .86;
}

.cd-media__review {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #090807;
}

.cd-media__review-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(156, 33, 27, .16), transparent 44%),
    #090807;
}

.cd-media__review-screen video {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #090807;
}

.cd-media__review-badge,
.cd-media__review-current {
  position: static;
  flex: 0 0 auto;
  z-index: 5;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.cd-media__review-badge {
  padding: max(12px, env(safe-area-inset-top)) 60px 10px 14px;
  border-left: 3px solid var(--cd-gold-pale);
  border-bottom: 1px solid rgba(244, 221, 176, .12);
  color: #fffaf0;
  background: #14100e;
}

.cd-media__review-badge b,
.cd-media__review-current b {
  font-family: var(--font-d);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .08em;
  color: #fffaf0;
}

.cd-media__review-badge small,
.cd-media__review-current small {
  margin-top: 2px;
  font-family: var(--font-d);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .08em;
  color: rgba(255, 250, 240, .64);
}

.cd-media__review-current {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(244, 221, 176, .12);
  background: #14100e;
}

.cd-media__review-current b {
  font-family: var(--cd-serif);
  font-size: 15px;
  letter-spacing: -.01em;
}

.cd-media__review-current small {
  margin-top: 0;
  font-size: 10px;
  color: rgba(244, 221, 176, .82);
  text-transform: uppercase;
}

.cd-media__review-error {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 34px;
  text-align: center;
  color: #fffaf0;
  background: #14100e;
}

.cd-media__review-error[hidden] {
  display: none;
}

.cd-media__review-error b {
  font-family: var(--font-d);
  font-size: 12px;
}

.cd-media__review-error span {
  max-width: 300px;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255, 250, 240, .56);
}

.cd-media__review-switcher {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(244, 221, 176, .14);
  background: #100d0b;
}

.cd-media__review-switcher button {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-areas: "number title" "number status";
  align-items: center;
  gap: 1px 9px;
  min-width: 0;
  min-height: 72px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid rgba(244, 221, 176, .12);
  border-radius: 0;
  color: rgba(255, 250, 240, .68);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.cd-media__review-switcher button:last-child {
  border-right: 0;
}

.cd-media__review-switcher button > span {
  grid-area: number;
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(244, 221, 176, .14);
  font-family: var(--cd-serif);
  font-size: 17px;
  color: rgba(244, 221, 176, .68);
}

.cd-media__review-switcher button > b,
.cd-media__review-switcher button > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-media__review-switcher button > b {
  grid-area: title;
  font-family: var(--font-d);
  font-size: 9px;
  letter-spacing: .02em;
}

.cd-media__review-switcher button > small {
  grid-area: status;
  font-size: 8px;
  color: rgba(255, 250, 240, .42);
}

.cd-media__review-switcher button[aria-pressed="true"] {
  color: #fffaf0;
  background: linear-gradient(180deg, rgba(156, 33, 27, .32), rgba(156, 33, 27, .10));
  box-shadow: inset 0 3px 0 var(--cd-gold-pale);
}

.cd-media__review-switcher button[aria-pressed="true"] > span {
  color: var(--cd-gold-pale);
}

.cd-media__preview.is-placeholder {
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--cd-accent) 24%, transparent), transparent 38%),
    linear-gradient(145deg, #291c18, #090807 72%);
}

.cd-media__preview > span {
  position: absolute;
  z-index: 6;
  left: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 250, 240, .24);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 250, 240, .86);
  background: rgba(16, 13, 12, .40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cd-media__unavailable {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px;
  text-align: center;
  background: #14100e;
}

.cd-media__unavailable[hidden] {
  display: none;
}

.cd-media__unavailable b {
  font-family: var(--font-d);
  font-size: 13px;
  color: #fffaf0;
}

.cd-media__unavailable span {
  max-width: 310px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 250, 240, .54);
}

.cd-media__story {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 19px 20px calc(24px + env(safe-area-inset-bottom));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 250, 240, .16) transparent;
}

.cd-media__index {
  display: block;
  padding-right: 50px;
  font-family: var(--font-d);
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cd-gold-pale);
}

.cd-media__story h2 {
  margin: 6px 0 0;
  font-family: var(--cd-serif);
  font-size: clamp(25px, 7.3vw, 38px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #fffaf0;
  text-wrap: balance;
}

.cd-media__story h3 {
  margin: 5px 0 0;
  font-family: var(--cd-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .06em;
  color: rgba(255, 250, 240, .62);
}

.cd-media__story .cd-caption-en {
  margin: 14px 0 0;
  padding: 0;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.56;
  color: rgba(255, 250, 240, .82);
  text-align: left;
  text-shadow: none;
}

.cd-media__story .cd-caption-zh {
  margin: 8px 0 0;
  padding: 0;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 250, 240, .50);
  text-align: left;
  text-shadow: none;
}

.cd-media__story .cd-captions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  margin: 14px 0 0;
  padding: 0;
  text-align: left;
  text-shadow: none;
}

.cd-media__story .cd-captions > span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid rgba(244, 221, 176, .18);
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: 7.5px;
  font-weight: 750;
  letter-spacing: .08em;
  color: rgba(244, 221, 176, .72);
  background: rgba(244, 221, 176, .06);
}

.cd-media__soon {
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid rgba(244, 221, 176, .13);
  border-radius: 12px;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(244, 221, 176, .62);
  background: rgba(244, 221, 176, .055);
}

.cd-media__review-note {
  margin-top: 14px;
  padding: 12px 0 0 13px;
  border-top: 1px solid rgba(244, 221, 176, .16);
  border-left: 3px solid rgba(244, 221, 176, .62);
}

.cd-media__review-note b {
  display: block;
  font-family: var(--font-d);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--cd-gold-pale);
}

.cd-media__review-note p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.58;
  color: rgba(255, 250, 240, .60);
}

@media (max-width: 759px) {
  .cd-media__panel.has-local-review {
    grid-template-rows: minmax(340px, 58svh) minmax(0, 1fr);
  }
}

@media (max-width: 374px) {
  .culture-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cd-back span {
    display: none;
  }

  .cd-hero__actions {
    gap: 5px;
  }

  .cd-soundscape {
    grid-template-columns: 22px 6px;
    width: 38px;
    min-height: 38px;
    padding-right: 2px;
    padding-left: 2px;
  }

  .cd-soundscape > span:nth-child(2) {
    display: none;
  }

  .cd-hero > h1 {
    font-size: 31px;
  }

  .cd-map-key {
    font-size: 8px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .cd-intro > .cd-intro__copy {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .cd-intro__copy h1 {
    font-size: 31px;
  }

  .cd-intro__actions {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (min-width: 760px) {
  .cd-intro__visual {
    left: 0;
    width: 100vw;
    transform: none;
  }

  .cd-intro > .cd-intro__copy,
  .cd-intro__actions {
    width: min(calc(100vw - 48px), 1180px);
  }

  .cd-intro__tools {
    left: 0;
    width: 100vw;
    transform: none;
  }

  .culture-page {
    padding:
      calc(26px + env(safe-area-inset-top))
      24px
      calc(46px + env(safe-area-inset-bottom));
  }

  .cd-chapters {
    width: min(100%, 560px);
    margin-right: auto;
    margin-bottom: 22px;
    margin-left: auto;
  }

  .cd-map-meta {
    padding: 17px 18px 15px;
  }

  .cd-map-shell .cd-map-stage {
    aspect-ratio: 720 / 1020;
  }

  .cd-stop-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cd-stop-list__head {
    grid-column: 1 / -1;
  }

  .cd-stop-card:nth-child(even) {
    border-right: 1px solid rgba(98, 19, 15, .075);
  }

  .cd-media {
    align-items: center;
    padding: 18px;
  }

  .cd-media__panel {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
    grid-template-rows: minmax(0, 1fr);
    width: min(100%, 1040px);
    height: min(820px, calc(100svh - 36px));
    border: 1px solid rgba(255, 250, 240, .10);
    border-radius: 24px;
  }

  .cd-media__story {
    padding: 36px 34px calc(34px + env(safe-area-inset-bottom));
  }
}

/* Keep the intended atlas + sticky story rail on wide screens. These rules
   must follow the tablet scaffold above so the later cascade cannot collapse
   the desktop map back into the 760px/two-card layout. */
@media (min-width: 900px) {
  .cd-stop-list {
    display: block;
    position: sticky;
    top: 18px;
  }

  .cd-stop-list__head {
    grid-column: auto;
  }

  .cd-stop-card:nth-child(even) {
    border-right: 0;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .cd-intro > .cd-intro__copy {
    bottom: 74px;
  }

  .cd-intro__copy p {
    display: none;
  }

  .cd-intro__actions {
    bottom: 10px;
  }

  .cd-media__panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    grid-template-rows: minmax(0, 1fr);
  }
}

/* Keep story copy readable after the compact modal layout overrides above. */
.cd-media__index {
  font-size: 10px;
}

.cd-media__story .cd-caption-en {
  font-size: 15px;
  line-height: 1.62;
}

.cd-media__story .cd-caption-zh {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 250, 240, .68);
}

.cd-media__story .cd-captions > span {
  min-height: 30px;
  font-size: 9px;
}

.cd-media__soon {
  padding: 12px 13px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(244, 221, 176, .78);
}


/* ===== 2026-07-19 local polish overrides ===== */

/* Both sites now rely on lifted buildings, not a stitched polyline route. */
.cd-route-overlay,
.cd-route-end {
  display: none !important;
}

/* Keep controls readable and less noisy without redesigning the map. */
.cd-map-tools,
.cd-map-layer-switch,
.cd-map-actions,
.cd-map-links {
  position: relative;
  z-index: 3;
}

.cd-map-tools,
.cd-map-layer-switch {
  background: color-mix(in srgb, #fffaf0 82%, transparent);
  box-shadow: 0 10px 24px -22px rgba(33, 23, 18, .34);
}

.cd-map-layer-switch button,
.cd-map-actions button,
.cd-map-actions .cd-map-reset,
.cd-map-actions #cdzoomvalue {
  min-height: 44px;
}

.cd-map-layer-switch button {
  border-color: rgba(98, 19, 15, .12);
  background: rgba(255, 250, 240, .88);
}

.cd-map-actions button,
.cd-map-actions .cd-map-reset {
  box-shadow: none;
}

.cd-map-links a {
  min-height: 44px;
  padding: 11px 12px;
  font-size: 10px;
}

.cd-map-credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 6px;
  margin: -8px -6px;
}

#cdsound.cd-soundscape,
.cd-soundscape {
  min-height: 44px;
}

.cd-map-jump {
  display: none;
}

/* Forward-compatible first-stop cue; only activates if JS adds a state hook. */
.cd-map-canvas.is-first-stop-hint .cd-hotspot[data-stop-order="1"] .cd-hotspot__pin,
.cd-map-canvas.is-first-stop-hint .cd-hotspot[data-sequence="1"] .cd-hotspot__pin,
.cd-map-canvas.is-first-stop-hint .cd-hotspot[data-stop-index="0"] .cd-hotspot__pin,
.cd-map-canvas .cd-hotspot.is-primary .cd-hotspot__pin {
  opacity: .96;
  transform: translateY(-8px) rotate(-3deg) scale(1.08);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--cd-accent) 14%, transparent), 0 10px 18px rgba(54, 23, 14, .26);
}

.cd-map-canvas.is-first-stop-hint .cd-hotspot[data-stop-order="1"] .cd-hotspot__pin::before,
.cd-map-canvas.is-first-stop-hint .cd-hotspot[data-sequence="1"] .cd-hotspot__pin::before,
.cd-map-canvas.is-first-stop-hint .cd-hotspot[data-stop-index="0"] .cd-hotspot__pin::before,
.cd-map-canvas .cd-hotspot.is-primary .cd-hotspot__pin::before {
  opacity: .8;
  transform: scale(1.12);
  animation: cd-first-stop-breathe 2.8s ease-in-out infinite;
}

@keyframes cd-first-stop-breathe {
  0%,
  100% {
    opacity: .26;
    transform: scale(1.02);
  }
  50% {
    opacity: .72;
    transform: scale(1.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-map-canvas.is-first-stop-hint .cd-hotspot[data-stop-order="1"] .cd-hotspot__pin::before,
  .cd-map-canvas.is-first-stop-hint .cd-hotspot[data-sequence="1"] .cd-hotspot__pin::before,
  .cd-map-canvas.is-first-stop-hint .cd-hotspot[data-stop-index="0"] .cd-hotspot__pin::before,
  .cd-map-canvas .cd-hotspot.is-primary .cd-hotspot__pin::before {
    animation: none;
  }
}

@media (max-width: 759px) {
  .cd-map-jump {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin: -4px 0 12px;
    padding: 9px 13px;
    border: 1px solid color-mix(in srgb, var(--cd-accent) 24%, transparent);
    border-radius: 10px;
    font-family: var(--font-d);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    color: var(--cd-accent);
    background: color-mix(in srgb, var(--cd-accent) 6%, #fffaf0);
    text-decoration: none;
    text-align: left;
    appearance: none;
    cursor: pointer;
  }

  .cd-map-jump::after {
    content: "↓";
    font-size: 15px;
  }

  #cd-map-title {
    scroll-margin-top: 16px;
  }

  .cd-hero__lede,
  .cd-origin-card__copy em,
  .cd-map-meta p,
  .cd-route-note,
  .cd-stop-card__copy b,
  .cd-stop-card__copy small,
  .cd-object-cabinet__head p,
  .cd-object-card__copy em,
  .cd-object-card__copy small,
  .cd-object-note,
  .cd-object-intro,
  .cd-object-detail p,
  .cd-object-reference p,
  .cd-object-photo-pending p,
  .cd-object-story h3,
  .cd-media__story p,
  .cd-media__summary,
  .cd-media__source {
    font-size: 14px;
    line-height: 1.6;
  }

  .cd-stop-card__copy em,
  .cd-map-meta > div > span,
  .cd-map-key,
  .cd-stop-list__head > small,
  .cd-map-credit,
  .cd-map-links a,
  .cd-soundscape b,
  .cd-soundscape small {
    font-size: 10px;
    line-height: 1.45;
  }

  .cd-map-shell,
  .cd-stop-list,
  .cd-origin-card {
    box-shadow: 0 20px 42px -34px rgba(33, 23, 18, .58);
  }

  .cd-map-credit {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.5;
  }

  .cd-map-meta {
    padding-bottom: 12px;
  }

  .cd-map-meta p {
    margin-top: 6px;
  }

  .cd-route-note {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .cd-stop-list__head {
    align-items: flex-start;
  }

  .cd-stop-list__head > small {
    max-width: 120px;
    text-align: right;
  }

  #cdsound.cd-soundscape,
  .cd-soundscape {
    min-width: 44px;
    padding: 6px 4px 6px 8px;
  }
}

@media (max-width: 374px) {
  #cdsound.cd-soundscape,
  .cd-soundscape {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 4px 3px;
  }
}

/* ============================================================
   Ambient idle life on the map: the marble boat rocks gently and
   lake / river water ripples without any interaction.
   Same duplicate-the-map technique as .cd-map-relief, soft-masked
   so the moving patch blends seamlessly over the still artwork.
   ============================================================ */
.cd-map-ambient-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.cd-map-ambient--boat {
  position: absolute;
  inset: 0;
}

.cd-map-ambient--boat > i {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--amb-bg) center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse var(--amb-rx, 4.2%) var(--amb-ry, 3.4%) at var(--amb-x, 50%) var(--amb-y, 50%), #000 44%, rgba(0, 0, 0, .85) 64%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--amb-rx, 4.2%) var(--amb-ry, 3.4%) at var(--amb-x, 50%) var(--amb-y, 50%), #000 44%, rgba(0, 0, 0, .85) 64%, transparent 100%);
  transform-origin: var(--amb-x, 50%) var(--amb-y, 50%);
  animation: cd-amb-boat 7.5s ease-in-out var(--amb-d, 0s) infinite;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes cd-amb-boat {
  0%, 100% { transform: rotate(-1.2deg) translateY(.3%); }
  50% { transform: rotate(1.2deg) translateY(-.55%); }
}

.cd-map-ambient--ripple {
  position: absolute;
  width: 9%;
  aspect-ratio: 2.6 / 1;
  transform: translate(-50%, -50%) scale(var(--amb-s, 1));
}

.cd-map-ambient--ripple i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .7);
  box-shadow: 0 0 8px rgba(255, 255, 255, .22);
  opacity: 0;
  transform: scale(.2);
  animation: cd-amb-ripple 5.4s linear infinite;
  animation-delay: var(--amb-d, 0s);
}

.cd-map-ambient--ripple i:nth-child(2) { animation-delay: calc(var(--amb-d, 0s) + 1.8s); }
.cd-map-ambient--ripple i:nth-child(3) { animation-delay: calc(var(--amb-d, 0s) + 3.6s); }

@keyframes cd-amb-ripple {
  0% { opacity: 0; transform: scale(.2); }
  14% { opacity: .65; }
  72% { opacity: .22; }
  100% { opacity: 0; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .cd-map-ambient-layer { display: none; }
}

/* ============================================================
   Intro cover ambient life: once the opening film ends (or when
   no film plays), the poster's boats bob and the lake sways.
   Masks are SVGs sharing the poster's viewBox with mask-size:cover,
   so they stay glued to the artwork at any viewport ratio.
   ============================================================ */
.cd-intro__alive {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.cd-intro__alive-layer {
  position: absolute;
  inset: 0;
  display: block;
}

.cd-intro__alive-layer picture,
.cd-intro__alive-layer img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep the copies pixel-locked to the drifting fallback poster. */
.cd-intro__alive-layer img {
  animation: cd-intro-drift 11s ease-out both;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-position: center;
  -webkit-mask-position: center;
}

.cd-intro__alive--water {
  animation: cd-amb-intro-water 9s ease-in-out infinite;
}

.cd-intro__alive--boats {
  animation: cd-amb-intro-boats 6s ease-in-out infinite;
}

.cd-intro__alive--boats img {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1080 2340'%3E%3Cdefs%3E%3Cfilter id='b' x='-60%25' y='-60%25' width='220%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='14'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='white' filter='url(%23b)'%3E%3Cellipse cx='472' cy='599' rx='46' ry='38'/%3E%3Cellipse cx='616' cy='723' rx='46' ry='38'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1080 2340'%3E%3Cdefs%3E%3Cfilter id='b' x='-60%25' y='-60%25' width='220%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='14'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='white' filter='url(%23b)'%3E%3Cellipse cx='472' cy='599' rx='46' ry='38'/%3E%3Cellipse cx='616' cy='723' rx='46' ry='38'/%3E%3C/g%3E%3C/svg%3E");
}

.cd-intro__alive--water img {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1080 2340'%3E%3Cdefs%3E%3Cfilter id='w' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur stdDeviation='50'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23w)'%3E%3Cellipse fill='white' cx='650' cy='560' rx='310' ry='170'/%3E%3Cellipse fill='black' cx='472' cy='599' rx='60' ry='50'/%3E%3Cellipse fill='black' cx='616' cy='723' rx='60' ry='50'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1080 2340'%3E%3Cdefs%3E%3Cfilter id='w' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur stdDeviation='50'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23w)'%3E%3Cellipse fill='white' cx='650' cy='560' rx='310' ry='170'/%3E%3Cellipse fill='black' cx='472' cy='599' rx='60' ry='50'/%3E%3Cellipse fill='black' cx='616' cy='723' rx='60' ry='50'/%3E%3C/g%3E%3C/svg%3E");
}

@media (min-width: 760px) {
  .cd-intro__alive--boats img {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 1080'%3E%3Cdefs%3E%3Cfilter id='b' x='-60%25' y='-60%25' width='220%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='16'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='white' filter='url(%23b)'%3E%3Cellipse cx='1031' cy='421' rx='48' ry='40'/%3E%3Cellipse cx='1121' cy='528' rx='62' ry='48'/%3E%3Cellipse cx='1207' cy='640' rx='46' ry='40'/%3E%3Cellipse cx='1201' cy='737' rx='52' ry='44'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 1080'%3E%3Cdefs%3E%3Cfilter id='b' x='-60%25' y='-60%25' width='220%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='16'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='white' filter='url(%23b)'%3E%3Cellipse cx='1031' cy='421' rx='48' ry='40'/%3E%3Cellipse cx='1121' cy='528' rx='62' ry='48'/%3E%3Cellipse cx='1207' cy='640' rx='46' ry='40'/%3E%3Cellipse cx='1201' cy='737' rx='52' ry='44'/%3E%3C/g%3E%3C/svg%3E");
  }
  .cd-intro__alive--water img {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 1080'%3E%3Cdefs%3E%3Cfilter id='w' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur stdDeviation='60'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23w)'%3E%3Cellipse fill='white' cx='1190' cy='520' rx='340' ry='240'/%3E%3Cellipse fill='black' cx='1031' cy='421' rx='62' ry='52'/%3E%3Cellipse fill='black' cx='1121' cy='528' rx='76' ry='60'/%3E%3Cellipse fill='black' cx='1207' cy='640' rx='60' ry='52'/%3E%3Cellipse fill='black' cx='1201' cy='737' rx='66' ry='56'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 1080'%3E%3Cdefs%3E%3Cfilter id='w' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur stdDeviation='60'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23w)'%3E%3Cellipse fill='white' cx='1190' cy='520' rx='340' ry='240'/%3E%3Cellipse fill='black' cx='1031' cy='421' rx='62' ry='52'/%3E%3Cellipse fill='black' cx='1121' cy='528' rx='76' ry='60'/%3E%3Cellipse fill='black' cx='1207' cy='640' rx='60' ry='52'/%3E%3Cellipse fill='black' cx='1201' cy='737' rx='66' ry='56'/%3E%3C/g%3E%3C/svg%3E");
  }
}

@keyframes cd-amb-intro-boats {
  0%, 100% { transform: translateY(.25%) rotate(.16deg); }
  50% { transform: translateY(-.5%) rotate(-.16deg); }
}

@keyframes cd-amb-intro-water {
  0%, 100% { transform: translateX(-.28%) translateY(.12%); }
  50% { transform: translateX(.28%) translateY(-.16%); }
}

/* The film covers the ambient layer while it plays; when it ends we
   fade the film away so the living poster takes over. */
.cd-intro.is-ended .cd-intro__video {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cd-intro__alive { display: none; }
}

/* ============================================================
   Mobile map: a tall 4:5 window instead of a thin landscape strip,
   with a deeper minimum zoom so buildings read at phone size.
   ============================================================ */
@media (max-width: 640px) {
  .cd-map-viewport,
  .cd-map-viewport:focus {
    aspect-ratio: 4 / 5;
    height: auto;
  }
}

/* ============================================================
   Home-page Culture Day promo banner: the intro poster as a
   full-bleed clickable card that leads straight into the guide.
   ============================================================ */
.cdpromo {
  position: relative;
  display: block;
  width: 100%;
  min-height: 148px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: #2b1a10;
  box-shadow: 0 10px 26px rgba(43, 26, 16, .28);
}

.cdpromo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 38%;
  transform: scale(1.02);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.cdpromo:active img { transform: scale(1.06); }

.cdpromo__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(24, 12, 5, .84) 0%, rgba(24, 12, 5, .55) 46%, rgba(24, 12, 5, .08) 78%);
}

.cdpromo__txt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px;
  color: #fdf6ea;
}

.cdpromo__txt em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .14em;
  color: #f6c66b;
  font-weight: 700;
}

.cdpromo__txt b {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.cdpromo__txt > span {
  font-size: 12.5px;
  opacity: .88;
}

.cdpromo__txt i {
  font-style: normal;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f6c66b;
  letter-spacing: .06em;
}

/* ============================================================
   Mythology PBR light-card bonus entry: a dark lacquer banner
   after the cabinet, linking to the same-origin shenhua page.
   ============================================================ */
.cd-shenhua { margin-top: 26px; }

.cd-shenhua__card {
  position: relative;
  display: block;
  min-height: 170px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: radial-gradient(120% 120% at 80% 20%, #3a1c12 0%, #1b0c09 60%, #0d0605 100%);
  box-shadow: 0 12px 30px rgba(10, 4, 3, .4);
}

.cd-shenhua__card img {
  position: absolute;
  right: -4%;
  top: 50%;
  width: 42%;
  max-width: 240px;
  transform: translateY(-50%) rotate(6deg);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
}

.cd-shenhua__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(13, 6, 5, .92) 34%, rgba(13, 6, 5, .3) 70%, transparent 100%);
}

.cd-shenhua__txt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 40% 20px 20px;
  color: #f3e6d2;
}

.cd-shenhua__txt em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #d4a84b;
}

.cd-shenhua__txt b { font-size: 18px; font-weight: 800; }

.cd-shenhua__txt > span { font-size: 12.5px; line-height: 1.55; opacity: .85; }

.cd-shenhua__txt i {
  font-style: normal;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #d4a84b;
  letter-spacing: .08em;
}

/* ============================================================
   2026-07-25 现场反馈修复包:
   1) 故事弹层关闭钮避开状态栏/刘海且常驻可点
   2) 手机端地图前置信息压缩(标题不挤断、提示丸下移)
   3) 地图横屏全图模式
   4) 细节热点「点亮保持」
   5) 盖章动效
   ============================================================ */

/* 1) 关闭钮:安全区偏移 + 固定右上,滚动不丢 */
.cd-media { padding-top: env(safe-area-inset-top, 0px); }
.cd-media__close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: 12px;
  left: auto;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 13, 12, .62);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 250, 240, .25);
}

/* 2) 手机端:标题区全宽、提示丸独立成行、罗盘与缩放行瘦身 */
@media (max-width: 640px) {
  .cd-map-meta { display: block; }
  .cd-map-meta h2 { font-size: 30px; line-height: 1.08; }
  .cd-map-meta > div > p { font-size: 13px; margin-top: 6px; }
  .cd-map-key { display: inline-flex; margin-top: 10px; }
  .cd-compass-strip, .cd-map-orientation { padding-top: 8px; padding-bottom: 8px; }
}

/* 3) 横屏全图 */
.cd-landscape {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: #17110c;
}
.cd-landscape__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
}
@media (orientation: landscape) {
  /* 设备已经横过来了就不再旋转 */
  .cd-landscape__frame { width: 100vw; height: 100vh; transform: translate(-50%, -50%); }
}
.cd-landscape #cdmapview.is-landscape {
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #17110c;
}
.cd-landscape #cdmapview.is-landscape .cd-map-canvas { flex: none; }
.cd-landscape #cdmapview.is-landscape .cd-map-instruction { display: none; }
.cd-landscape__exit {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 14px;
  z-index: 5;
  padding: 10px 16px;
  border: 1px solid rgba(244, 221, 176, .4);
  border-radius: 999px;
  background: rgba(23, 17, 12, .72);
  color: #f4ddb0;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
body.cd-landscape-lock { overflow: hidden; }
.cd-map-landscape {
  border: 1px solid rgba(65, 42, 29, .3);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fffaf0;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #6b4a33;
}
@media (min-width: 641px) {
  .cd-map-landscape { display: none; } /* 桌面无需横屏模式 */
}

/* 4) 已看过的细节热点:保持点亮(暖金填充),与当前激活(白)形成两档 */
.cd-object-hotspot.is-visited:not(.is-active)::before {
  background: #f4ddb0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--object-accent) 26%, transparent), 0 5px 15px rgba(33, 23, 18, .3);
}
.cd-object-hotspot.is-visited:not(.is-active) span {
  color: color-mix(in srgb, var(--object-accent) 82%, #211712);
}

/* 5) 盖章动效:徽章落章 + 舞台大印 splash */
.cd-object-stamp.is-earned {
  animation: cd-stamp-hit .62s cubic-bezier(.2, 1.5, .38, 1) both;
}
@keyframes cd-stamp-hit {
  0% { transform: rotate(-14deg) scale(2.1); opacity: 0; }
  52% { opacity: 1; }
  70% { transform: rotate(2deg) scale(.94); }
  100% { transform: rotate(-1deg) scale(1); }
}
.cd-stamp-splash {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 4px solid #b0281e;
  border-radius: 12px;
  color: #b0281e;
  background: rgba(255, 250, 240, .07);
  font-family: var(--font-d);
  font-size: 52px;
  font-weight: 900;
  pointer-events: none;
  animation: cd-stamp-splash 1.35s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes cd-stamp-splash {
  0% { transform: translate(-50%, -50%) rotate(-18deg) scale(2.6); opacity: 0; }
  30% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; }
  46% { transform: translate(-50%, -50%) rotate(-10deg) scale(1.06); }
  60% { transform: translate(-50%, -50%) rotate(-9deg) scale(1); opacity: .96; }
  100% { transform: translate(-50%, -50%) rotate(-9deg) scale(.98); opacity: 0; }
}

/* 纯图查看器:无热点标记,双击/按钮放大,可下载 */
.cd-object-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 250, 240, .4);
  border-radius: 50%;
  background: rgba(16, 13, 12, .55);
  color: #fffaf0;
  font-size: 16px;
  backdrop-filter: blur(4px);
}
.cd-imgview {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(10, 8, 7, .96);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.cd-imgview__scroll {
  overflow: auto;
  display: grid;
  place-items: center;
  -webkit-overflow-scrolling: touch;
}
.cd-imgview img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  transition: max-width .25s ease;
}
.cd-imgview.is-zoomed img { max-width: 220%; max-height: none; width: 220%; }
.cd-imgview__bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 14px);
}
.cd-imgview__btn {
  padding: 10px 18px;
  border: 1px solid rgba(244, 221, 176, .4);
  border-radius: 999px;
  background: rgba(244, 221, 176, .1);
  color: #f4ddb0;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
}

/* 故事集入口:与光影卡入口并列的第二张卡 */
.cd-shenhua { display: grid; gap: 12px; }
.cd-shenhua__card--deck { background: radial-gradient(120% 120% at 20% 20%, #14263a 0%, #0a1420 60%, #060b12 100%); }
.cd-shenhua__card--deck img { left: -4%; right: auto; transform: translateY(-50%) rotate(-6deg); }
.cd-shenhua__card--deck .cd-shenhua__scrim { background: linear-gradient(265deg, rgba(6, 11, 18, .92) 34%, rgba(6, 11, 18, .3) 70%, transparent 100%); }
.cd-shenhua__card--deck .cd-shenhua__txt { padding: 22px 20px 20px 40%; text-align: right; align-items: flex-end; }

/* 图片可整体点按放大;署名为纯文本不可点 */
.cd-object-imgtap { position:absolute; inset:0; z-index:2; display:block; width:100%; height:100%; padding:0; border:0; background:none; cursor:zoom-in; }
.cd-object-imgtap img { display:block; width:100%; height:100%; }
.cd-object-credit-plain { display:inline-block; opacity:.82; font-size:11px; font-weight:600; letter-spacing:.02em; line-height:1.4; }
/* 盖章不再压书缝:落在右下角,小一号,印泥叠色 */
.cd-stamp-splash {
  left: auto; right: 10%; top: auto; bottom: 12%;
  width: 76px; height: 76px; font-size: 42px;
  mix-blend-mode: multiply;
  transform-origin: center;
}
@keyframes cd-stamp-splash {
  0% { transform: rotate(-18deg) scale(2.4); opacity: 0; }
  30% { transform: rotate(-8deg) scale(1); opacity: 1; }
  46% { transform: rotate(-10deg) scale(1.06); }
  60% { transform: rotate(-9deg) scale(1); opacity: .96; }
  100% { transform: rotate(-9deg) scale(.98); opacity: 0; }
}

/* 真·印章素材(Lovart):白底以 multiply 融进画面 */
.cd-stamp-splash {
  background: url("assets/culture-day/stamp-seal.webp") center/contain no-repeat;
  border: 0;
  color: transparent;
  font-size: 0;
  width: 84px;
  height: 84px;
}

/* ===== Standalone Top Bar & Visitor Tips Cabinet ===== */
.cd-hero__bar {
  flex-wrap: wrap;
  row-gap: 8px;
}

.cd-hero__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.cd-hero__actions {
  flex-wrap: wrap;
}

.cd-hero__bar .cd-back,
.cd-hero__bar .cd-replay {
  min-height: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.cd-tips-cabinet {
  width: min(100%, 1180px);
  margin: 28px auto 0;
  padding: 24px 20px 26px;
  border: 1px solid rgba(98, 19, 15, .14);
  border-radius: 22px;
  background:
    radial-gradient(85% 45% at 100% 0%, rgba(215, 168, 78, .12), transparent 65%),
    rgba(255, 250, 240, .86);
  box-shadow: 0 18px 40px -28px rgba(33, 23, 18, .42);
}

.cd-tips-cabinet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 18px;
}

.cd-tips-cabinet__eyebrow {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cd-accent, #9b342d);
}

.cd-tips-cabinet__head h2 {
  margin-top: 6px;
  font-family: var(--cd-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--cd-ink);
}

.cd-tips-cabinet__sub {
  margin-top: 6px;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(33, 23, 18, .72);
}

.cd-weather-strip {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(98, 19, 15, .12);
  border-radius: 16px;
  background: rgba(245, 236, 220, .72);
  font-variant-numeric: tabular-nums;
}

.cd-weather-strip__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.cd-weather-strip__now {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cd-weather-strip__temp {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 800;
  color: var(--cd-ink);
}

.cd-weather-strip__meta {
  font-size: 14px;
  color: rgba(33, 23, 18, .78);
}

.cd-weather-strip__days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.cd-weather-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 6px;
  border: 1px solid rgba(98, 19, 15, .10);
  border-radius: 12px;
  background: rgba(255, 250, 240, .86);
  text-align: center;
  font-size: 12px;
  color: rgba(33, 23, 18, .78);
}

.cd-weather-day.is-today {
  border-color: var(--cd-accent, #9b342d);
  background: rgba(255, 250, 240, 1);
}

.cd-weather-day__temps {
  font-family: var(--font-d);
  font-weight: 700;
  color: var(--cd-ink);
}

.cd-weather-strip__note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(33, 23, 18, .68);
}

.cd-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cd-tips-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(98, 19, 15, .12);
  border-radius: 16px;
  background: rgba(255, 253, 249, .92);
  box-shadow: 0 10px 24px -20px rgba(33, 23, 18, .35);
}

.cd-tips-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(98, 19, 15, .16);
  background: rgba(155, 52, 45, .07);
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cd-accent, #9b342d);
}

.cd-tips-card h3 {
  font-family: var(--cd-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cd-ink);
}

.cd-tips-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.cd-tips-card__item {
  padding-top: 10px;
  border-top: 1px solid rgba(98, 19, 15, .09);
}

.cd-tips-card__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.cd-tips-card__label {
  display: block;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--cd-ink);
  margin-bottom: 3px;
}

.cd-tips-card__body {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(33, 23, 18, .78);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .cd-tips-cabinet {
    padding: 18px 14px 20px;
    border-radius: 18px;
  }

  .cd-tips-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
