:root {
  color-scheme: dark;
  --ink: #17211c;
  --ink-soft: #35443a;
  --forest: #17271f;
  --forest-deep: #0b1511;
  --moss: #727442;
  --paper: #efe5cc;
  --paper-deep: #d8c9a7;
  --ivory: #f6f0e2;
  --amber: #d89a50;
  --sun: #f1bf72;
  --oxblood: #4f1918;
  --rust: #a84a2f;
  --sky: #bfd5ef;
  --line-light: rgba(246, 240, 226, 0.38);
  --line-dark: rgba(23, 33, 28, 0.28);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--forest-deep);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--forest-deep);
  color: var(--ivory);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-layer-open {
  overflow: hidden;
}

button,
a,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 4px;
}

button:disabled {
  cursor: not-allowed;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 14px;
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 clamp(20px, 3.6vw, 64px);
  border-bottom: 1px solid rgba(246, 240, 226, 0.22);
  background: rgba(11, 21, 17, 0.26);
  color: var(--ivory);
  backdrop-filter: blur(12px);
  transition: background-color 260ms ease, color 260ms ease, border-color 260ms ease;
}

.site-header[data-active-scene="01"],
.site-header[data-active-scene="04"] {
  border-color: rgba(23, 33, 28, 0.18);
  background: rgba(238, 224, 196, 0.28);
  color: var(--ink);
}

.site-mark {
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.site-mark > span {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.18em;
}

.site-mark small,
.sound-toggle__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.journey-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-nav__item {
  display: inline-flex;
  min-width: 72px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.58;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.journey-nav__item:hover,
.journey-nav__item.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.journey-nav__item > span {
  font-family: var(--serif);
  font-size: 18px;
}

.journey-nav__item small {
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.journey-nav__line {
  width: clamp(18px, 3vw, 48px);
  height: 1px;
  background: currentColor;
  opacity: 0.32;
}

.sound-toggle {
  display: inline-flex;
  justify-self: end;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.66;
}

main {
  position: relative;
}

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scene__image,
.scene__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.scene-media .scene__image {
  z-index: 0;
}

.scene-media .scene__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: inherit;
  opacity: 0;
  transition: opacity 800ms var(--ease);
}

.scene-media.is-video-ready .scene__video {
  opacity: 1;
}

.scene__image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  transform: scale(1.005);
}

.scene--opening .scene__image {
  object-position: 70% 52%;
}

.scene--opening .scene__video {
  object-position: 70% 52%;
}

.scene--01 .scene__image {
  object-position: 66% 58%;
}

.scene__veil {
  z-index: -2;
  pointer-events: none;
}

.scene__veil--02 {
  background:
    linear-gradient(180deg, rgba(8, 18, 15, 0.24) 0%, transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(246, 240, 226, 0.86) 0%, rgba(246, 240, 226, 0.28) 25%, transparent 48%),
    linear-gradient(0deg, rgba(10, 18, 14, 0.62) 0%, transparent 32%);
}

.scene__veil--opening {
  background:
    linear-gradient(180deg, rgba(7, 25, 47, 0.25) 0%, transparent 24%),
    linear-gradient(90deg, rgba(10, 58, 108, 0.28) 0%, transparent 57%),
    linear-gradient(0deg, rgba(18, 35, 42, 0.38) 0%, transparent 30%);
}

.scene__veil--01 {
  background:
    linear-gradient(180deg, rgba(238, 232, 207, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 22% 24%, rgba(238, 232, 207, 0.34) 0%, transparent 34%),
    linear-gradient(0deg, rgba(48, 38, 23, 0.28) 0%, transparent 34%);
}

.scene__veil--03 {
  background:
    linear-gradient(180deg, rgba(4, 10, 8, 0.36) 0%, transparent 20%),
    linear-gradient(90deg, rgba(7, 16, 12, 0.36) 0%, transparent 46%),
    linear-gradient(0deg, rgba(4, 9, 7, 0.48) 0%, transparent 32%);
}

.scene__veil--04 {
  background:
    linear-gradient(180deg, rgba(15, 28, 41, 0.2) 0%, transparent 28%),
    radial-gradient(circle at 14% 22%, rgba(240, 225, 197, 0.36) 0%, transparent 34%),
    linear-gradient(0deg, rgba(73, 42, 23, 0.34) 0%, transparent 36%);
}

.scene-copy {
  position: absolute;
  z-index: 4;
}

.scene-copy--02 {
  top: clamp(130px, 15vh, 180px);
  right: clamp(48px, 6vw, 108px);
  width: min(39vw, 590px);
  color: var(--ink);
  text-align: right;
}

.scene-copy--opening {
  top: clamp(146px, 18vh, 200px);
  left: clamp(48px, 6vw, 108px);
  width: min(40vw, 620px);
  color: var(--ivory);
}

.scene-copy--01 {
  top: clamp(126px, 14vh, 160px);
  left: clamp(48px, 7vw, 122px);
  width: min(40vw, 620px);
  color: var(--ink);
}

.scene-copy--03 {
  top: clamp(128px, 16vh, 170px);
  left: clamp(40px, 5.6vw, 98px);
  width: min(39vw, 620px);
  color: var(--paper);
}

.scene-copy--04 {
  top: clamp(130px, 15vh, 165px);
  left: clamp(40px, 5vw, 88px);
  width: min(38vw, 560px);
  color: #3c281d;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: clamp(10px, 0.75vw, 13px);
  font-weight: 650;
  letter-spacing: 0.22em;
}

.scene-copy h1,
.scene-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.scene-copy h1 {
  font-size: clamp(58px, 7vw, 112px);
  line-height: 0.92;
}

.scene-copy--opening h1 {
  max-width: 8ch;
  font-size: clamp(70px, 8vw, 126px);
}

.scene-copy--01 h2 {
  max-width: 8ch;
  font-size: clamp(66px, 7.3vw, 116px);
}

.scene-copy h2 {
  max-width: 12ch;
  font-size: clamp(48px, 5.8vw, 92px);
  line-height: 0.92;
}

.scene-copy--02 h1 {
  margin-left: auto;
}

.scene-copy__cn {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 34px);
  letter-spacing: 0.08em;
}

.scene-copy__lead {
  max-width: 34em;
  margin: 24px 0 28px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.8;
}

.scene-copy--02 .scene-copy__lead {
  margin-left: auto;
}

.primary-action,
.text-action,
.map-shortcut,
.next-scene {
  border: 0;
  background: none;
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 24px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: 0.08em;
  transition: transform 220ms var(--ease), background-color 220ms ease, color 220ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
}

.primary-action--paper {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(36, 34, 19, 0.18);
}

.primary-action--sun {
  background: #f0c754;
  color: #17314a;
  box-shadow: 0 16px 42px rgba(26, 61, 94, 0.22);
}

.primary-action--sun:hover {
  background: var(--ivory);
}

.primary-action--moss {
  background: #536743;
  color: var(--ivory);
  box-shadow: 0 16px 42px rgba(36, 49, 27, 0.22);
}

.primary-action--moss:hover {
  background: var(--ivory);
  color: var(--ink);
}

.primary-action--ink {
  background: var(--ink);
  color: var(--paper);
}

.primary-action--outline {
  border: 1px solid rgba(239, 229, 204, 0.65);
  color: var(--paper);
}

.primary-action--outline:hover {
  background: var(--paper);
  color: var(--forest);
}

.primary-action--sunrise {
  border: 1px solid rgba(60, 40, 29, 0.58);
  color: #3c281d;
}

.primary-action--sunrise:hover {
  background: rgba(246, 240, 226, 0.7);
}

.scene-index {
  position: absolute;
  right: clamp(24px, 3vw, 52px);
  bottom: 32px;
  z-index: 3;
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  opacity: 0.72;
}

.next-scene {
  position: absolute;
  left: clamp(24px, 3vw, 52px);
  bottom: 22px;
  z-index: 6;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--ivory);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  opacity: 0.8;
  transition: opacity 180ms ease;
}

.next-scene:hover {
  opacity: 1;
}

.scene--04 .scene-index,
.scene--04 .next-scene {
  color: #3c281d;
}

.scene--01 .scene-index,
.scene--01 .next-scene {
  color: var(--ink);
}

.opening-route {
  position: absolute;
  top: calc(100% + 4px);
  left: 220px;
  display: block;
  width: min(34vw, 500px);
  height: 82px;
  border-top: 1px solid rgba(246, 240, 226, 0.74);
  border-radius: 50% 50% 0 0;
  transform: rotate(-4deg);
  pointer-events: none;
}

.opening-route::before,
.opening-route::after {
  position: absolute;
  border-radius: 50%;
  background: #f0c754;
  content: "";
}

.opening-route::before {
  top: -4px;
  left: -3px;
  width: 8px;
  height: 8px;
}

.opening-route::after {
  top: -7px;
  right: -6px;
  width: 13px;
  height: 13px;
}

.fork-route {
  position: absolute;
  z-index: 3;
  top: 52%;
  left: 55%;
  width: 25%;
  height: 25%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.scene--01:hover .fork-route,
.scene--01:focus-within .fork-route {
  opacity: 0.68;
}

.fork-route span {
  position: absolute;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(246, 240, 226, 0.92);
  transform-origin: left center;
}

.fork-route__stem {
  bottom: 12%;
  left: 42%;
  width: 42%;
  transform: rotate(-151deg);
}

.fork-route__left {
  bottom: 39%;
  left: 42%;
  width: 55%;
  transform: rotate(-163deg);
}

.fork-route__right {
  bottom: 39%;
  left: 42%;
  width: 51%;
  transform: rotate(-24deg);
}

.fork-route span::after {
  position: absolute;
  top: -4px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(246, 240, 226, 0.92);
  border-right: 2px solid rgba(246, 240, 226, 0.92);
  content: "";
  transform: rotate(45deg);
}

.fork-route i {
  position: absolute;
  bottom: calc(39% - 5px);
  left: calc(42% - 5px);
  width: 12px;
  height: 12px;
  border: 2px solid rgba(246, 240, 226, 0.9);
  border-radius: 50%;
  background: rgba(83, 103, 67, 0.9);
}

.scene-copy--01 {
  transition: opacity 260ms ease, transform 360ms var(--ease);
}

.scene--01.is-exploring .scene-copy--01 {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-24px);
}

.scene--01.is-exploring .fork-route {
  opacity: 0;
}

.life-path-menu {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.life-path-menu[hidden] {
  display: none !important;
}

.scene--01.is-exploring .life-path-menu {
  opacity: 1;
  pointer-events: auto;
}

.scene--01.is-life-panel-open .life-path-menu {
  opacity: 0.2;
  pointer-events: none;
}

.life-path {
  position: absolute;
  display: grid;
  min-width: 188px;
  gap: 3px;
  padding: 14px 18px 15px;
  border: 0;
  border-left: 2px solid #536743;
  background: rgba(241, 231, 207, 0.9);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 16px 38px rgba(42, 38, 26, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 280ms ease, transform 360ms var(--ease), background-color 180ms ease;
}

.scene--01.is-exploring .life-path {
  opacity: 1;
  transform: translateY(0);
}

.scene--01.is-exploring .life-path--career {
  transition-delay: 70ms;
}

.scene--01.is-exploring .life-path--interests {
  transition-delay: 140ms;
}

.life-path:hover,
.life-path:focus-visible,
.life-path.is-active {
  background: #536743;
  color: var(--ivory);
  transform: translateY(-3px);
}

.life-path span,
.life-path small {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.life-path strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.life-path small {
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.life-path--profile {
  top: 59%;
  left: 33%;
}

.life-path--career {
  top: 25%;
  left: 66%;
}

.life-path--interests {
  bottom: 10%;
  left: 52%;
}

.life-path-menu__back {
  position: absolute;
  left: clamp(48px, 7vw, 122px);
  bottom: 70px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.life-panel {
  position: absolute;
  top: 96px;
  bottom: 66px;
  left: clamp(32px, 4vw, 64px);
  z-index: 10;
  width: min(520px, 42vw);
  padding: clamp(26px, 3vw, 44px);
  overflow-y: auto;
  background: rgba(239, 229, 204, 0.97);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(35, 33, 22, 0.26);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-100% - 80px));
  transition: opacity 240ms ease, transform 480ms var(--ease);
}

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

.life-panel__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
}

.life-panel__header p,
.life-view__number {
  margin: 0 0 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.life-panel__header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 500;
}

.life-panel__close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(23, 33, 28, 0.24);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.life-panel__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 34px;
  border-bottom: 1px solid rgba(23, 33, 28, 0.2);
}

.life-panel__tabs button {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.5;
  cursor: pointer;
}

.life-panel__tabs button:hover,
.life-panel__tabs button[aria-selected="true"] {
  border-bottom-color: #536743;
  opacity: 1;
}

.life-view {
  animation: life-view-in 360ms var(--ease) both;
}

.life-view[hidden] {
  display: none;
}

.life-view h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 4.1vw, 64px);
  font-weight: 500;
  line-height: 0.98;
}

.life-view h4:focus {
  outline: none;
}

.life-view__lead {
  max-width: 36em;
  margin: 18px 0 30px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.life-view__lead > span {
  display: block;
}

.life-view__lead > span + span {
  margin-top: 8px;
}

.life-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
  margin: 0;
}

.life-facts div {
  min-width: 0;
}

.life-facts dt {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.life-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.5;
}

.life-facts .life-fact--wide {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 33, 28, 0.16);
}

.life-facts dd > span {
  display: block;
}

.career-trail {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-trail li {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 70px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 33, 28, 0.16);
}

.career-trail li:last-child {
  border-bottom: 0;
}

.career-trail span {
  grid-row: 1 / span 2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.career-trail strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.career-trail small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.interest-lines {
  display: grid;
  gap: 1px;
  background: rgba(23, 33, 28, 0.16);
}

.interest-lines p {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: 17px 18px;
  background: var(--paper);
}

.interest-lines span {
  grid-row: 1 / span 2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.interest-lines strong {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.interest-lines small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

@keyframes life-view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hotspot,
.dialogue-tab,
.object-hotspot,
.place-balloon,
.map-node {
  position: absolute;
  z-index: 5;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dialogue-tab {
  top: 37%;
  left: 14.5%;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(246, 240, 226, 0.82);
  background: rgba(16, 27, 21, 0.84);
  color: var(--ivory);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 28px rgba(6, 14, 10, 0.22);
  transition:
    top 620ms var(--ease),
    left 620ms var(--ease),
    opacity 240ms ease,
    transform 220ms var(--ease),
    background-color 180ms ease;
}

.dialogue-tab::after {
  position: absolute;
  bottom: -7px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(246, 240, 226, 0.82);
  border-bottom: 1px solid rgba(246, 240, 226, 0.82);
  background: rgba(16, 27, 21, 0.94);
  content: "";
  transform: rotate(45deg);
}

.dialogue-tab:hover,
.dialogue-tab:focus-visible {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-3px);
}

.dialogue-tab:hover::after,
.dialogue-tab:focus-visible::after {
  background: var(--paper);
}

.dialogue-tab.is-at-jean {
  top: 41%;
  left: 33.5%;
}

.dialogue-tab.is-at-friend-b {
  top: 43%;
  left: 58.5%;
}

.dialogue-tab.is-complete {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.dialogue-tab__dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(246, 240, 226, 0.1);
}

.hotspot {
  width: 76px;
  height: 76px;
  padding: 0;
}

.hotspot--friend-a {
  top: 37%;
  left: 16.5%;
}

.hotspot--jean {
  top: 42%;
  left: 35%;
}

.hotspot--friend-b {
  top: 44%;
  left: 60.5%;
}

.hotspot__ring {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(246, 240, 226, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(246, 240, 226, 0.12);
  transition: transform 220ms var(--ease), box-shadow 220ms ease, background-color 220ms ease;
}

.hotspot__ring::after {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--ivory);
  content: "";
}

.hotspot__label {
  position: absolute;
  top: 60px;
  left: 50%;
  padding: 7px 10px;
  background: rgba(14, 23, 18, 0.82);
  color: var(--ivory);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hotspot:hover .hotspot__ring,
.hotspot:focus-visible .hotspot__ring {
  background: rgba(239, 229, 204, 0.2);
  box-shadow: 0 0 0 16px rgba(246, 240, 226, 0.13);
  transform: scale(1.08);
}

.hotspot:hover .hotspot__label,
.hotspot:focus-visible .hotspot__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dialogue-panel {
  position: absolute;
  z-index: 12;
  right: clamp(34px, 7vw, 120px);
  bottom: clamp(78px, 10vh, 112px);
  width: min(520px, calc(100vw - 48px));
  padding: 28px 30px 26px;
  border-left: 3px solid var(--paper);
  background: rgba(18, 31, 24, 0.92);
  color: var(--ivory);
  box-shadow: 0 24px 80px rgba(3, 10, 7, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 260ms ease, transform 320ms var(--ease);
}

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

.dialogue-panel__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dialogue-panel__speaker {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.dialogue-panel__line {
  min-height: 3.2em;
  margin: 0;
  padding-right: 22px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.6;
}

.dialogue-panel__hint {
  margin: 18px 0 0;
  color: rgba(246, 240, 226, 0.56);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.dialogue-panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.text-action {
  min-height: 44px;
  padding: 0;
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.72;
}

.text-action:hover {
  opacity: 1;
}

.travel-book-trigger {
  position: absolute;
  z-index: 13;
  right: clamp(34px, 7vw, 120px);
  bottom: clamp(76px, 9vh, 96px);
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  min-width: min(360px, calc(100vw - 48px));
  min-height: 70px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(23, 33, 28, 0.26);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 0 0 0 rgba(241, 191, 114, 0), 0 24px 70px rgba(7, 16, 12, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 280ms ease, transform 420ms var(--ease), box-shadow 360ms ease;
}

.travel-book-trigger.is-ready {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  box-shadow: 0 0 0 8px rgba(241, 191, 114, 0.2), 0 24px 70px rgba(7, 16, 12, 0.32);
}

.travel-book-trigger:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 12px rgba(241, 191, 114, 0.2), 0 28px 80px rgba(7, 16, 12, 0.36);
}

.travel-book-trigger > span:not(.travel-book-trigger__book) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--serif);
  font-size: 18px;
}

.travel-book-trigger small {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.travel-book-trigger b {
  font-size: 20px;
  font-weight: 400;
}

.travel-book-trigger__book {
  position: relative;
  width: 38px;
  height: 48px;
  border: 1px solid rgba(239, 229, 204, 0.42);
  background: var(--oxblood);
  box-shadow: inset 6px 0 rgba(24, 12, 10, 0.2);
}

.travel-book-trigger__book::after {
  position: absolute;
  top: 7px;
  right: 6px;
  bottom: 7px;
  left: 10px;
  border: 1px solid rgba(239, 229, 204, 0.52);
  content: "";
}

.object-hotspot--letter {
  right: 2.8%;
  bottom: 21%;
  width: 260px;
  height: 120px;
  padding: 0;
  color: var(--paper);
}

.object-hotspot__line {
  position: absolute;
  top: 0;
  right: 43%;
  width: 1px;
  height: 58px;
  background: var(--paper);
  transform-origin: bottom;
  transition: transform 240ms var(--ease);
}

.object-hotspot__line::before,
.object-hotspot__line::after {
  position: absolute;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.object-hotspot__line::before {
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
}

.object-hotspot__line::after {
  right: -4px;
  bottom: -4px;
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 10px rgba(239, 229, 204, 0.12);
}

.object-hotspot__label {
  position: absolute;
  top: -6px;
  right: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.object-hotspot:hover .object-hotspot__line,
.object-hotspot:focus-visible .object-hotspot__line {
  transform: scaleY(1.15);
}

.object-hotspot:hover .object-hotspot__label,
.object-hotspot:focus-visible .object-hotspot__label {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.balloon-route {
  position: absolute;
  z-index: 3;
  top: 15%;
  left: 31%;
  width: 36%;
  height: 29%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 800ms var(--ease);
  pointer-events: none;
}

.balloon-route span {
  display: block;
  width: 100%;
  height: 100%;
  border-right: 1px dashed rgba(60, 40, 29, 0.46);
  border-bottom: 1px dashed rgba(60, 40, 29, 0.46);
  border-radius: 0 0 72% 0;
  transform: rotate(7deg);
}

.scene--04.is-exploring .balloon-route {
  opacity: 1;
  transform: translateY(0);
}

.place-balloon {
  width: 118px;
  height: 118px;
  padding: 0;
  color: #503829;
  opacity: 0;
  pointer-events: none;
  transform: translateY(44px);
  transition: opacity 420ms ease, transform 720ms var(--ease);
}

.scene--04.is-exploring .place-balloon {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.place-balloon--africa {
  top: 12%;
  left: 32%;
  transition-delay: 80ms;
}

.place-balloon--guangzhou {
  top: 21%;
  left: 44%;
  transition-delay: 160ms;
}

.place-balloon--beijing {
  top: 29%;
  left: 54%;
  transition-delay: 240ms;
}

.place-balloon--dali {
  top: 36%;
  left: 63%;
  transition-delay: 320ms;
}

.place-balloon__shape {
  position: absolute;
  top: 4px;
  left: 43px;
  width: 32px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50% 50% 46% 46%;
  background: rgba(168, 74, 47, 0.7);
  box-shadow: inset -8px 0 rgba(114, 116, 66, 0.4);
  transition: transform 240ms var(--ease), background-color 240ms ease;
}

.place-balloon__shape::before {
  position: absolute;
  bottom: -11px;
  left: 12px;
  width: 7px;
  height: 8px;
  border: 1px solid currentColor;
  background: rgba(80, 56, 41, 0.82);
  content: "";
}

.place-balloon__shape::after {
  position: absolute;
  right: 14px;
  bottom: -5px;
  width: 1px;
  height: 7px;
  background: currentColor;
  box-shadow: -10px 0 currentColor;
  content: "";
}

.place-balloon__label {
  position: absolute;
  top: 54px;
  left: 50%;
  padding: 5px 7px;
  background: rgba(246, 240, 226, 0.66);
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.05em;
  transform: translateX(-50%);
}

.place-balloon:hover .place-balloon__shape,
.place-balloon:focus-visible .place-balloon__shape {
  background: var(--rust);
  transform: translateY(-6px) scale(1.08);
}

.map-shortcut {
  position: absolute;
  z-index: 6;
  left: clamp(40px, 5vw, 88px);
  bottom: clamp(76px, 9vh, 100px);
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 16px;
  padding: 0;
  color: #3c281d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 320ms var(--ease);
}

.scene--04.is-exploring .map-shortcut {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

dialog {
  margin: 0;
  padding: 0;
  border: 0;
}

dialog::backdrop {
  background: rgba(6, 11, 9, 0.78);
  backdrop-filter: blur(8px);
}

.close-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(23, 33, 28, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.close-button:hover {
  background: rgba(23, 33, 28, 0.08);
  transform: rotate(4deg);
}

.close-button--light {
  border-color: rgba(246, 240, 226, 0.36);
  color: var(--ivory);
}

.book-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  background: transparent;
  color: var(--ink);
}

.book-shell {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 252, 242, 0.34), transparent 38%),
    #2e3c31;
  perspective: 1800px;
}

.book-shell > .close-button {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 8;
  border-color: rgba(246, 240, 226, 0.38);
  color: var(--ivory);
}

.book-cover {
  position: relative;
  display: flex;
  width: min(460px, calc(100vw - 48px));
  aspect-ratio: 0.72;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid rgba(239, 229, 204, 0.32);
  background: #772d23;
  color: var(--paper);
  box-shadow: 28px 32px 80px rgba(4, 12, 8, 0.36), inset 12px 0 rgba(65, 21, 18, 0.28);
  transform: rotateY(-5deg) rotateZ(-1.5deg);
  transform-origin: left center;
  transition: opacity 400ms ease, transform 650ms var(--ease);
}

.book-cover::before,
.book-cover::after {
  position: absolute;
  content: "";
}

.book-cover::before {
  inset: 20px;
  border: 1px solid rgba(239, 229, 204, 0.46);
}

.book-cover::after {
  top: 0;
  bottom: 0;
  left: 25px;
  width: 1px;
  background: rgba(239, 229, 204, 0.42);
}

.book-cover__number {
  position: absolute;
  top: 38px;
  right: 38px;
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}

.book-cover__kicker {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.book-cover h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.book-cover__subtitle {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
}

.book-cover__open {
  position: absolute;
  right: 38px;
  bottom: 38px;
  z-index: 2;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.book-dialog.is-open-book .book-cover {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-42%) rotateY(-78deg);
}

.open-book {
  position: relative;
  display: grid;
  width: min(1180px, calc(100vw - 88px));
  min-height: min(720px, calc(100dvh - 112px));
  grid-template-columns: 0.92fr 1.08fr;
  background: var(--paper);
  box-shadow: 0 36px 100px rgba(3, 10, 7, 0.45);
}

.open-book[hidden] {
  display: none;
}

.open-book::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46%;
  width: 24px;
  background: linear-gradient(90deg, rgba(61, 48, 31, 0), rgba(61, 48, 31, 0.16), rgba(61, 48, 31, 0));
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.book-page {
  position: relative;
  min-width: 0;
  padding: clamp(42px, 5vw, 74px);
  color: var(--ink);
}

.book-page--index {
  border-right: 1px solid rgba(62, 48, 31, 0.14);
  background: #e3d4b5;
}

.book-page--stories {
  display: flex;
  flex-direction: column;
  background: #f2ead7;
}

.book-page__folio {
  margin: 0 0 28px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.book-page h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.28;
}

.book-page__intro,
.book-page__description {
  color: rgba(23, 33, 28, 0.74);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
}

.book-page__intro {
  margin: 24px 0 32px;
}

.book-page__note {
  position: absolute;
  bottom: 32px;
  left: clamp(42px, 5vw, 74px);
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.58;
}

.book-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-dark);
}

.book-tab {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: padding-left 180ms ease, color 180ms ease;
}

.book-tab:hover,
.book-tab.is-active {
  padding-left: 8px;
  color: var(--rust);
}

.book-tab__number {
  font-family: var(--serif);
  font-size: 13px;
}

.book-tab__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.book-tab__label strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.book-tab__label small {
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.book-page__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.book-page__heading > span {
  font-family: var(--serif);
  font-size: 18px;
}

.book-page__description {
  max-width: 42em;
  margin: 20px 0 26px;
}

.story-list {
  border-top: 1px solid var(--line-dark);
}

.story-link {
  display: grid;
  grid-template-columns: 94px 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink);
  text-decoration: none;
  transition: padding-left 180ms ease, color 180ms ease;
}

.story-link:hover {
  padding-left: 8px;
  color: var(--rust);
}

.story-link time {
  font-family: var(--serif);
  font-size: 12px;
  opacity: 0.62;
}

.story-link strong {
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 400;
  line-height: 1.5;
}

.story-link > span {
  font-size: 18px;
}

.book-page__turner {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
}

.book-page__turner button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.book-page__turner button:disabled {
  opacity: 0.28;
}

.bar-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  background: var(--forest-deep);
  color: var(--paper);
}

.bar-portal {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: 58px minmax(0, 1fr);
  overflow: hidden;
  background: #11120e;
}

.bar-portal__header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(18px, 3vw, 48px);
  border-bottom: 1px solid rgba(239, 229, 204, 0.18);
  background: rgba(17, 18, 14, 0.96);
}

.bar-portal__header p {
  margin: 0;
  color: rgba(239, 229, 204, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.bar-portal__header > span {
  justify-self: end;
  color: rgba(239, 229, 204, 0.52);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.bar-portal__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #11120e;
}

.bar-h5 {
  position: relative;
  display: grid;
  min-height: 100%;
  grid-template-rows: 72px 1fr 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(146, 58, 38, 0.42), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(114, 116, 66, 0.22), transparent 30%),
    var(--forest-deep);
}

.bar-h5::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(239, 229, 204, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 229, 204, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
}

.bar-h5__header,
.bar-h5__body,
.bar-h5__nav {
  position: relative;
  z-index: 1;
}

.bar-h5__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(239, 229, 204, 0.18);
}

.bar-h5__header > p {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.bar-back {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.bar-h5__step {
  justify-self: end;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.bar-h5__body {
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 44px 24px;
}

.bar-view {
  width: min(720px, 100%);
}

.bar-view[hidden] {
  display: none;
}

.bar-view__eyebrow {
  margin: 0 0 22px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.bar-view h2 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.bar-view__lead {
  max-width: 38em;
  margin: 24px 0 32px;
  color: rgba(239, 229, 204, 0.74);
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.8;
}

.bar-primary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 22px;
  border: 1px solid rgba(239, 229, 204, 0.46);
  background: transparent;
  color: var(--paper);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.bar-primary:hover {
  background: var(--paper);
  color: var(--forest);
  transform: translateY(-2px);
}

.bar-article-link {
  display: flex;
  width: min(560px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(239, 229, 204, 0.18);
  border-bottom: 1px solid rgba(239, 229, 204, 0.18);
  color: rgba(239, 229, 204, 0.82);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}

.bar-article-link:hover {
  color: var(--sun);
}

.bar-h5__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(239, 229, 204, 0.18);
}

.bar-h5__nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(239, 229, 204, 0.12);
  background: rgba(6, 13, 10, 0.42);
  color: rgba(239, 229, 204, 0.54);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.bar-h5__nav button:last-child {
  border-right: 0;
}

.bar-h5__nav button:hover,
.bar-h5__nav button.is-active {
  background: rgba(113, 42, 31, 0.52);
  color: var(--paper);
}

.bar-h5__nav span {
  font-family: var(--serif);
  font-size: 17px;
}

.mood-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(239, 229, 204, 0.24);
  border-left: 1px solid rgba(239, 229, 204, 0.24);
}

.mood-picker button {
  min-height: 72px;
  border: 0;
  border-right: 1px solid rgba(239, 229, 204, 0.24);
  border-bottom: 1px solid rgba(239, 229, 204, 0.24);
  background: transparent;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 19px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.mood-picker button:hover,
.mood-picker button.is-selected {
  background: var(--oxblood);
  color: var(--ivory);
}

.drink-result {
  min-height: 92px;
  margin: 22px 0;
  padding: 20px 22px;
  border-left: 2px solid var(--amber);
  background: rgba(239, 229, 204, 0.06);
}

.drink-result p {
  margin: 0;
  color: rgba(239, 229, 204, 0.78);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}

.postscript-card {
  position: relative;
  display: grid;
  width: min(520px, 100%);
  min-height: 230px;
  place-items: center;
  margin: 30px 0;
  padding: 32px;
  border: 1px solid rgba(239, 229, 204, 0.42);
  background: #d8c9a7;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  box-shadow: 18px 18px 0 rgba(79, 25, 24, 0.56);
  transition: transform 260ms var(--ease), box-shadow 260ms ease;
}

.postscript-card:hover {
  box-shadow: 10px 12px 0 rgba(79, 25, 24, 0.66);
  transform: translate(4px, 4px);
}

.postscript-card__front {
  position: absolute;
  top: 20px;
  left: 22px;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
}

.postscript-card__back {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.5;
}

.postscript-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.postscript-form textarea {
  display: block;
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 24px;
  border: 1px solid rgba(239, 229, 204, 0.34);
  border-radius: 0;
  background: rgba(239, 229, 204, 0.06);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
}

.postscript-form textarea::placeholder {
  color: rgba(239, 229, 204, 0.34);
}

.postscript-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.postscript-form__footer small {
  color: rgba(239, 229, 204, 0.48);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.form-status {
  min-height: 1.6em;
  margin: 18px 0 0;
  color: var(--sun);
  font-family: var(--serif);
  font-size: 15px;
}

.map-layer {
  position: absolute;
  z-index: 20;
  top: 31%;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px clamp(24px, 4vw, 70px) 34px;
  background: rgba(10, 24, 19, 0.97);
  color: var(--ivory);
  opacity: 0;
  pointer-events: none;
  transform: translateY(102%);
  transition: transform 650ms var(--ease), opacity 420ms ease;
}

.map-layer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.map-layer__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.map-layer__header .eyebrow {
  margin-bottom: 8px;
  color: var(--sun);
}

.map-layer__header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
}

.atlas {
  display: grid;
  height: calc(100% - 86px);
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.62fr);
  border-top: 1px solid rgba(246, 240, 226, 0.2);
}

.atlas__map {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-right: 1px solid rgba(246, 240, 226, 0.2);
  background: #12241c;
}

.atlas__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 240, 226, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 240, 226, 0.055) 1px, transparent 1px);
  background-size: 8.33% 20%;
}

.continent {
  position: absolute;
  background: rgba(239, 229, 204, 0.11);
  box-shadow: inset 0 0 0 1px rgba(239, 229, 204, 0.08);
}

.continent--americas {
  top: 18%;
  left: 10%;
  width: 19%;
  height: 65%;
  border-radius: 46% 54% 58% 42% / 27% 36% 64% 73%;
  transform: rotate(12deg);
  clip-path: polygon(18% 0, 100% 6%, 72% 28%, 93% 44%, 58% 54%, 66% 100%, 37% 86%, 23% 55%, 0 39%);
}

.continent--eurasia {
  top: 13%;
  left: 45%;
  width: 43%;
  height: 34%;
  border-radius: 42% 58% 38% 62% / 48% 45% 55% 52%;
  transform: rotate(-2deg);
  clip-path: polygon(3% 28%, 24% 0, 55% 10%, 77% 4%, 100% 26%, 88% 72%, 62% 100%, 44% 72%, 19% 92%, 0 61%);
}

.continent--africa {
  top: 43%;
  left: 53%;
  width: 18%;
  height: 38%;
  border-radius: 58% 42% 54% 46% / 42% 49% 51% 58%;
  clip-path: polygon(20% 0, 85% 10%, 100% 38%, 70% 100%, 42% 88%, 18% 54%, 0 22%);
}

.continent--oceania {
  right: 7%;
  bottom: 17%;
  width: 14%;
  height: 17%;
  border-radius: 56% 44% 50% 50%;
  transform: rotate(-9deg);
  clip-path: polygon(0 32%, 35% 3%, 100% 28%, 72% 100%, 18% 81%);
}

.atlas__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.atlas__route path {
  fill: none;
  stroke: rgba(241, 191, 114, 0.6);
  stroke-dasharray: 7 8;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.map-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(10, 24, 19, 0.7);
  color: rgba(246, 240, 226, 0.76);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: color 180ms ease, transform 180ms ease;
}

.map-node span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--sun);
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 7px rgba(241, 191, 114, 0.1);
}

.map-node:hover,
.map-node.is-active {
  color: var(--sun);
  transform: translateY(-2px);
}

.map-node--africa {
  top: 62%;
  left: 57%;
}

.map-node--guangzhou {
  top: 43%;
  left: 77%;
}

.map-node--beijing {
  top: 26%;
  left: 77%;
}

.map-node--dali {
  top: 49%;
  left: 72%;
}

.place-detail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 4vw, 58px);
  overflow-y: auto;
  background: #0c1a14;
  scrollbar-color: rgba(241, 191, 114, 0.45) transparent;
  scrollbar-width: thin;
}

.place-detail__counter {
  margin: 0 0 24px;
  color: var(--amber);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.place-detail__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
}

.place-detail__kicker {
  margin: 0 0 18px;
  color: var(--sun);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

.place-detail__body {
  margin: 0 0 20px;
  color: rgba(246, 240, 226, 0.66);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.75;
}

.place-detail__gallery {
  display: grid;
  min-height: 196px;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, 94px);
  gap: 8px;
  margin: 0 0 24px;
}

.place-detail__gallery[hidden] {
  display: none;
}

.place-photo {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(246, 240, 226, 0.08);
}

.place-photo--hero {
  grid-row: 1 / -1;
}

.place-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transform: scale(1.01);
  transition: filter 360ms ease, transform 520ms var(--ease);
}

.place-photo:hover img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.045);
}

.place-detail__links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(246, 240, 226, 0.18);
}

.place-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  border-bottom: 1px solid rgba(246, 240, 226, 0.18);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.place-link:hover {
  color: var(--sun);
}

.prototype-note {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(390px, calc(100vw - 36px));
  padding: 16px 48px 16px 18px;
  border-left: 2px solid var(--sun);
  background: rgba(11, 21, 17, 0.9);
  color: var(--ivory);
  box-shadow: 0 18px 50px rgba(3, 8, 6, 0.26);
  backdrop-filter: blur(10px);
  transition: opacity 220ms ease, transform 240ms var(--ease);
}

.prototype-note.is-dismissed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.prototype-note > span {
  grid-column: 1;
  color: var(--sun);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.prototype-note p {
  grid-column: 1;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.prototype-note button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 22px;
  cursor: pointer;
}

.noscript-message {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 999;
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 1024px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .journey-nav {
    justify-self: end;
  }

  .sound-toggle {
    display: none;
  }

  .scene-copy--02 {
    width: min(44vw, 470px);
  }

  .scene-copy--03,
  .scene-copy--04 {
    width: min(43vw, 470px);
  }

  .hotspot--friend-a {
    left: 14%;
  }

  .hotspot--jean {
    left: 34%;
  }

  .hotspot--friend-b {
    left: 59%;
  }

  .object-hotspot--letter {
    right: 1%;
    bottom: 20%;
  }

  .atlas {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  }

  .open-book {
    width: calc(100vw - 52px);
  }

  .life-panel {
    width: min(560px, 52vw);
  }

  .life-path--profile {
    left: 34%;
  }

  .life-path--career {
    left: 65%;
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: none;
  }

  .site-header {
    height: 60px;
    padding: 0 16px;
  }

  .site-mark small,
  .journey-nav__item small,
  .journey-nav__line {
    display: none;
  }

  .site-mark > span {
    font-size: 16px;
  }

  .journey-nav__item {
    min-width: 46px;
    min-height: 44px;
    padding: 0 8px;
  }

  .journey-nav__item > span {
    font-size: 16px;
  }

  .scene {
    min-height: 100svh;
  }

  .scene__image {
    top: 60px;
    bottom: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    transform: none;
  }

  .scene-media .scene__video {
    display: none;
  }

  .scene--02,
  .scene--03 {
    background: var(--forest-deep);
  }

  .scene--opening {
    background: #105da1;
  }

  .scene--01 {
    background: #d6ad72;
  }

  .scene--04 {
    background: #dca767;
  }

  .scene__veil--02 {
    background:
      linear-gradient(180deg, rgba(7, 15, 12, 0.44) 0%, rgba(7, 15, 12, 0.02) 38%),
      linear-gradient(0deg, rgba(7, 15, 12, 0.78) 0%, transparent 55%);
  }

  .scene__veil--opening {
    background:
      linear-gradient(180deg, rgba(7, 25, 47, 0.24) 0%, transparent 36%),
      linear-gradient(0deg, rgba(7, 25, 47, 0.72) 0%, transparent 54%);
  }

  .scene__veil--01 {
    background:
      linear-gradient(180deg, rgba(235, 221, 190, 0.24) 0%, transparent 34%),
      linear-gradient(0deg, rgba(90, 62, 33, 0.48) 0%, transparent 52%);
  }

  .scene__veil--03 {
    background: linear-gradient(0deg, rgba(5, 12, 9, 0.88) 0%, rgba(5, 12, 9, 0.14) 68%);
  }

  .scene__veil--04 {
    background:
      linear-gradient(180deg, rgba(228, 215, 189, 0.42) 0%, transparent 34%),
      linear-gradient(0deg, rgba(58, 37, 25, 0.72) 0%, transparent 52%);
  }

  .scene-copy {
    top: auto;
    right: 20px;
    bottom: 92px;
    left: 20px;
    width: auto;
    text-align: left;
  }

  .scene-copy--02 {
    color: var(--ivory);
  }

  .scene-copy--opening {
    color: var(--ivory);
  }

  .scene-copy--01 {
    color: #38281c;
  }

  .scene-copy h1,
  .scene-copy h2 {
    max-width: 9.5ch;
    font-size: clamp(42px, 13vw, 62px);
  }

  .scene-copy--02 h1 {
    margin-left: 0;
  }

  .scene-copy__cn {
    margin-top: 10px;
    font-size: 19px;
  }

  .scene-copy__lead {
    display: none;
  }

  .scene-copy .primary-action {
    margin-top: 22px;
  }

  .primary-action {
    min-height: 50px;
    gap: 18px;
    padding: 0 18px;
    font-size: 12px;
  }

  .primary-action--sunrise {
    border-color: rgba(246, 240, 226, 0.72);
    color: var(--ivory);
  }

  .opening-route,
  .fork-route {
    display: none;
  }

  .life-path-menu {
    top: calc(60px + 56.25vw);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 18px 20px;
    overflow-y: auto;
    background: #d6ad72;
  }

  .scene--01.is-life-panel-open .life-path-menu {
    opacity: 0;
  }

  .scene--01.is-exploring .scene-index,
  .scene--01.is-exploring .next-scene {
    opacity: 0;
    pointer-events: none;
  }

  .life-path {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    min-height: 70px;
    grid-template-columns: 94px 1fr;
    align-content: center;
    padding: 10px 14px;
    border-left-width: 3px;
    background: rgba(240, 229, 203, 0.76);
    box-shadow: none;
    backdrop-filter: none;
  }

  .life-path span {
    grid-row: 1 / span 2;
    align-self: center;
  }

  .life-path strong {
    font-size: 21px;
  }

  .life-path:hover,
  .life-path:focus-visible,
  .life-path.is-active {
    transform: none;
  }

  .life-path-menu__back {
    position: static;
    min-height: 46px;
    flex: 0 0 auto;
    text-align: left;
  }

  .life-panel {
    top: calc(60px + 56.25vw);
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 22px 20px 38px;
    box-shadow: 0 -20px 60px rgba(42, 35, 23, 0.18);
    backdrop-filter: none;
    transform: translateY(100%);
  }

  .scene--01.is-life-panel-open .life-panel {
    transform: translateY(0);
  }

  .life-panel__header h3 {
    font-size: 28px;
  }

  .life-panel__tabs {
    position: sticky;
    top: -1px;
    z-index: 2;
    margin: 20px 0 24px;
    background: rgba(239, 229, 204, 0.99);
  }

  .life-view h4 {
    font-size: 43px;
  }

  .life-view__lead {
    margin: 14px 0 22px;
    font-size: 13px;
  }

  .life-facts {
    gap: 18px 20px;
  }

  .career-trail li {
    min-height: 78px;
  }

  .friend-hotspots,
  .object-hotspot {
    display: none;
  }

  .dialogue-tab {
    top: 19%;
    left: 7%;
    min-height: 44px;
    padding-right: 12px;
  }

  .dialogue-tab.is-at-jean {
    top: 21%;
    left: 35%;
  }

  .dialogue-tab.is-at-friend-b {
    top: 22%;
    left: 61%;
  }

  .dialogue-panel {
    right: 16px;
    bottom: 72px;
    left: 16px;
    width: auto;
    padding: 24px 20px 20px;
  }

  .dialogue-panel__line {
    min-height: 4.5em;
    padding-right: 12px;
    font-size: 19px;
  }

  .dialogue-panel__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialogue-panel__actions .primary-action,
  .dialogue-panel__actions .text-action {
    width: 100%;
  }

  .travel-book-trigger {
    right: 16px;
    bottom: 78px;
    left: 16px;
    min-width: 0;
    width: auto;
  }

  .scene--02.dialogue-complete .dialogue-panel {
    bottom: 168px;
  }

  .scene-index {
    right: 18px;
    bottom: 18px;
  }

  .next-scene {
    left: 18px;
    bottom: 8px;
  }

  .place-balloon {
    width: 86px;
    height: 92px;
  }

  .place-balloon--africa {
    top: 14%;
    left: 12%;
  }

  .place-balloon--guangzhou {
    top: 22%;
    left: 35%;
  }

  .place-balloon--beijing {
    top: 30%;
    left: 55%;
  }

  .place-balloon--dali {
    top: 39%;
    left: 72%;
  }

  .place-balloon__shape {
    left: 29px;
    width: 27px;
    height: 36px;
  }

  .place-balloon__label {
    top: 48px;
    font-size: 10px;
  }

  .balloon-route {
    top: 15%;
    left: 17%;
    width: 61%;
    height: 31%;
  }

  .map-shortcut {
    right: 20px;
    bottom: 72px;
    left: auto;
    color: var(--ivory);
  }

  .book-shell > .close-button {
    top: 14px;
    right: 14px;
  }

  .book-cover {
    width: min(360px, calc(100vw - 44px));
  }

  .open-book {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  .open-book::after {
    display: none;
  }

  .book-page {
    padding: 34px 22px;
  }

  .book-page--index {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(62, 48, 31, 0.2);
  }

  .book-page--index h3,
  .book-page__intro,
  .book-page__note {
    display: none;
  }

  .book-page__folio {
    margin-bottom: 18px;
  }

  .book-tabs {
    overflow-x: auto;
    flex-direction: row;
    border-top: 0;
    gap: 8px;
    scrollbar-width: none;
  }

  .book-tab {
    display: flex;
    min-width: max-content;
    min-height: 46px;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--line-dark);
  }

  .book-tab:hover,
  .book-tab.is-active {
    padding-left: 12px;
    background: var(--ink);
    color: var(--paper);
  }

  .book-tab__label small {
    display: none;
  }

  .book-page--stories {
    min-height: calc(100% - 132px);
  }

  .story-link {
    grid-template-columns: 1fr auto;
    min-height: 92px;
    gap: 14px;
  }

  .story-link time {
    display: none;
  }

  .bar-h5 {
    grid-template-rows: 60px 1fr 70px;
  }

  .bar-portal {
    grid-template-rows: 54px minmax(0, 1fr);
  }

  .bar-portal__header {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .bar-portal__header p {
    display: none;
  }

  .bar-h5__header {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .bar-h5__header > p {
    display: none;
  }

  .bar-h5__body {
    align-items: start;
    padding: 34px 20px 46px;
  }

  .bar-view h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .bar-h5__nav button {
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
  }

  .bar-h5__nav span {
    font-size: 13px;
  }

  .mood-picker button {
    min-height: 64px;
    font-size: 17px;
  }

  .postscript-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .postscript-form__footer .bar-primary {
    width: 100%;
  }

  .map-layer {
    top: 22%;
    padding: 20px 16px 0;
  }

  .map-layer__header {
    margin-bottom: 14px;
  }

  .map-layer__header h3 {
    font-size: 25px;
  }

  .atlas {
    display: block;
    height: calc(100% - 76px);
    overflow-y: auto;
  }

  .atlas__map {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid rgba(246, 240, 226, 0.2);
  }

  .place-detail {
    min-height: 330px;
    padding: 28px 20px 40px;
  }

  .place-detail__counter {
    margin-bottom: 22px;
  }

  .place-detail__title {
    margin-top: 0;
  }

  .place-detail__gallery {
    min-height: 214px;
    grid-template-rows: repeat(2, 103px);
  }

  .prototype-note {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media (max-width: 430px) {
  .scene-copy h1,
  .scene-copy h2 {
    font-size: 44px;
  }

  .scene-copy--03 h2 {
    font-size: 42px;
  }

  .book-cover h2 {
    font-size: 38px;
  }

  .book-cover__open {
    right: 30px;
    bottom: 30px;
  }

  .map-node {
    padding: 6px;
    font-size: 9px;
  }

  .life-path-menu {
    padding-right: 16px;
    padding-left: 16px;
  }

  .life-path {
    grid-template-columns: 82px 1fr;
  }

  .life-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .life-panel {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
