:root {
  --ink: #0b1014;
  --paper: #f3eee5;
  --paper-dim: rgba(243, 238, 229, .62);
  --paper-faint: rgba(243, 238, 229, .34);
  --line: rgba(243, 238, 229, .18);
  --line-soft: rgba(243, 238, 229, .09);
  --accent: #8fdde0;
  --accent-rgb: 143, 221, 224;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, serif;
  --sans: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --latin: "Optima", "Cormorant Garamond", "Times New Roman", serif;
}

body[data-phase="foundation"] { --accent: #e6b172; --accent-rgb: 230, 177, 114; }
body[data-phase="structure"] { --accent: #de9a67; --accent-rgb: 222, 154, 103; }
body[data-phase="envelope"] { --accent: #d7b37a; --accent-rgb: 215, 179, 122; }
body[data-phase="landscape"] { --accent: #9fc39a; --accent-rgb: 159, 195, 154; }
body[data-phase="interior"] { --accent: #efc37d; --accent-rgb: 239, 195, 125; }
body[data-phase="completion"] { --accent: #f1c481; --accent-rgb: 241, 196, 129; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1014;
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body { cursor: default; }
body.is-dragging { cursor: grabbing; }

#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 78% 76% at 54% 47%, transparent 38%, rgba(4, 8, 11, .14) 68%, rgba(4, 8, 11, .52) 100%),
    linear-gradient(180deg, rgba(4, 8, 11, .38) 0%, transparent 16%, transparent 74%, rgba(4, 8, 11, .48) 100%);
  mix-blend-mode: multiply;
}

.warm-wash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse 64% 58% at 52% 58%, rgba(255, 164, 83, .13), transparent 62%);
  mix-blend-mode: screen;
  transition: opacity 1.2s ease;
}
body[data-phase="completion"] .warm-wash { opacity: 1; }

.grain {
  position: absolute;
  inset: -40%;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/></svg>");
  animation: grain-shift 1.1s steps(3) infinite;
  will-change: transform;
}
@keyframes grain-shift {
  0% { transform: translate3d(-1.5%, -1%, 0); }
  33% { transform: translate3d(1.2%, .8%, 0); }
  66% { transform: translate3d(-.6%, 1.4%, 0); }
  100% { transform: translate3d(1.4%, -.7%, 0); }
}

.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: #070b0e;
  opacity: .82;
}
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; }

#ui {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

#ui button,
#ui .track { pointer-events: auto; }

.topbar {
  position: absolute;
  top: 42px;
  left: 58px;
  right: 58px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-8px);
  animation: ui-enter .9s .35s cubic-bezier(.2,.7,.2,1) forwards;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 42px; height: 42px; color: var(--paper); opacity: .8; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.brand-cn {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .24em;
  line-height: 1;
  color: rgba(243,238,229,.92);
}
.brand-en {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .32em;
  color: rgba(243,238,229,.42);
  font-weight: 500;
}

.top-meta { display: flex; align-items: flex-start; gap: 34px; padding-top: 2px; }
.meta-cell { display: flex; flex-direction: column; gap: 6px; }
.meta-label {
  font-size: 7.5px;
  letter-spacing: .27em;
  color: rgba(243,238,229,.34);
  font-weight: 600;
}
.meta-value {
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(243,238,229,.72);
  font-weight: 500;
}
.build-state { flex-direction: row; align-items: center; gap: 8px; padding-top: 12px; }
.build-state #buildState {
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--accent);
  transition: color .7s ease;
}
.signal {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12), 0 0 12px rgba(var(--accent-rgb), .6);
  animation: signal 2.4s ease-in-out infinite;
}
@keyframes signal { 0%,100%{opacity:.55; transform:scale(.85)} 50%{opacity:1; transform:scale(1)} }

.side-index {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(243,238,229,.28);
  font-size: 8px;
  letter-spacing: .3em;
  white-space: nowrap;
  opacity: 0;
  animation: ui-fade 1.2s 1.1s ease forwards;
}
.side-index i { width: 26px; height: 1px; background: rgba(243,238,229,.2); display: block; }

.phase-panel {
  position: absolute;
  left: 58px;
  bottom: 182px;
  width: min(390px, 32vw);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
body.ready .phase-panel { opacity: 1; transform: translateY(0); }
.phase-panel.swap .phase-title,
.phase-panel.swap .phase-desc,
.phase-panel.swap .phase-specs {
  animation: phase-swap .7s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes phase-swap {
  0% { opacity: 0; transform: translateY(9px); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.phase-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(243,238,229,.44);
  font-size: 8px;
  letter-spacing: .23em;
  font-weight: 500;
}
.phase-count { color: var(--accent); font-size: 9px; letter-spacing: .14em; transition: color .7s; }
.phase-slash { opacity: .4; }
.phase-line { width: 34px; height: 1px; background: rgba(243,238,229,.25); margin: 0 6px; }
.phase-en { color: rgba(243,238,229,.5); font-size: 8px; }

.phase-title-row { display: flex; align-items: baseline; gap: 14px; margin-top: 12px; }
.phase-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1;
  letter-spacing: .14em;
  color: #f3eee5;
  text-shadow: 0 2px 30px rgba(0,0,0,.28);
}
.phase-year { font-size: 8px; letter-spacing: .2em; color: rgba(243,238,229,.3); }
.phase-desc {
  margin: 15px 0 0;
  max-width: 340px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .055em;
  color: rgba(243,238,229,.68);
  text-shadow: 0 1px 18px rgba(0,0,0,.4);
}
.phase-specs {
  display: flex;
  gap: 23px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}
.phase-specs div { display: flex; flex-direction: column; gap: 5px; }
.phase-specs span { font-size: 7.5px; letter-spacing: .18em; color: rgba(243,238,229,.32); }
.phase-specs b { font-size: 8.5px; letter-spacing: .1em; font-weight: 500; color: rgba(243,238,229,.61); }

.intro-card {
  position: absolute;
  left: 8.2vw;
  top: 27%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.intro-card.show { opacity: 1; transform: translateY(0); }
.intro-kicker {
  font-size: 8px;
  letter-spacing: .38em;
  color: var(--accent);
  margin-bottom: 22px;
  opacity: .85;
}
.intro-cn {
  font-family: var(--serif);
  font-size: clamp(48px, 5.8vw, 86px);
  line-height: 1.18;
  letter-spacing: .13em;
  color: rgba(248,244,236,.96);
  text-shadow: 0 4px 46px rgba(0,0,0,.4);
}
.intro-cn em { font-style: normal; color: rgba(248,244,236,.66); }
.intro-en {
  margin-top: 24px;
  font-size: 8px;
  letter-spacing: .48em;
  color: rgba(243,238,229,.34);
}

.completion-card {
  position: absolute;
  left: 8.2vw;
  top: 24%;
  width: 440px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.8s ease, transform 2s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.completion-card.show { opacity: 1; transform: translateY(0); }
.completion-rule {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 7.5px;
  letter-spacing: .34em;
  color: var(--accent);
  margin-bottom: 24px;
}
.completion-rule i { width: 44px; height: 1px; background: var(--accent); opacity: .55; }
.completion-cn {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1;
  letter-spacing: .14em;
  color: #f7f0e3;
  text-shadow: 0 4px 48px rgba(0,0,0,.46);
}
.completion-en {
  margin-top: 18px;
  font-size: 8px;
  letter-spacing: .34em;
  color: rgba(243,238,229,.48);
}
.completion-stats {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(243,238,229,.16);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: .18em;
  color: rgba(243,238,229,.52);
}
.completion-stats i { width: 3px; height: 3px; border-radius: 50%; background: rgba(243,238,229,.34); }

.hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 26px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(243,238,229,.14);
  background: rgba(8,12,15,.32);
  backdrop-filter: blur(8px);
  color: rgba(243,238,229,.48);
  font-size: 8px;
  letter-spacing: .18em;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.hint.show { opacity: 1; }
.hint-mouse {
  width: 9px; height: 13px; border: 1px solid rgba(243,238,229,.42); border-radius: 5px; position: relative;
}
.hint-mouse::after {
  content: ""; position: absolute; left: 50%; top: 3px; width: 1px; height: 3px; background: rgba(243,238,229,.6); transform: translateX(-50%);
}

.timeline {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 34px;
  padding-top: 12px;
  border-top: 1px solid rgba(243,238,229,.11);
  opacity: 0;
  transform: translateY(9px);
  animation: ui-enter 1s .7s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes ui-enter { to { opacity: 1; transform: translateY(0); } }
@keyframes ui-fade { to { opacity: 1; } }

.timeline-head { display: flex; align-items: center; justify-content: space-between; height: 17px; }
.timecode {
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: .18em;
  color: rgba(243,238,229,.55);
  font-variant-numeric: tabular-nums;
}
.timecode #timeNow { color: rgba(243,238,229,.9); }
.time-sep { margin: 0 7px; opacity: .3; }
.timeline-caption {
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: rgba(243,238,229,.43);
}
.timeline-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 7.5px; letter-spacing: .24em; color: rgba(243,238,229,.38);
}
.pulse { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb),.5); }

.track-wrap { padding: 12px 0 0; }
.track {
  position: relative;
  height: 38px;
  cursor: pointer;
}
.track::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 5px;
  height: 1px;
  background: rgba(243,238,229,.13);
}
.track-fill {
  position: absolute;
  left: 0; top: 5px; height: 1px;
  width: 0%;
  background: linear-gradient(90deg, rgba(var(--accent-rgb),.35), var(--accent));
  box-shadow: 0 0 10px rgba(var(--accent-rgb),.35);
}
.track-playhead {
  position: absolute;
  left: 0; top: 1px;
  width: 1px; height: 9px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb),.7);
}
.track-playhead::after {
  content: "";
  position: absolute;
  left: -2px; top: -3px;
  width: 5px; height: 5px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  background: rgba(10,14,17,.6);
}
.phase-nodes { position: absolute; inset: 0; }
.phase-node {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(243,238,229,.34);
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: color .4s ease;
}
.phase-node:first-child { transform: translateX(0); align-items: flex-start; }
.phase-node:last-child { transform: translateX(-100%); align-items: flex-end; }
.phase-node .pip {
  width: 5px; height: 5px;
  border: 1px solid rgba(243,238,229,.3);
  background: #0c1114;
  transform: rotate(45deg) translateY(-1px);
  transition: all .4s ease;
}
.phase-node .node-label {
  font-size: 7.5px;
  letter-spacing: .17em;
  transition: color .4s ease;
}
.phase-node .node-en {
  font-size: 6px;
  letter-spacing: .18em;
  color: rgba(243,238,229,.19);
  margin-top: -3px;
}
.phase-node.active { color: rgba(243,238,229,.92); }
.phase-node.active .pip { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb),.55); }
.phase-node.active .node-en { color: rgba(var(--accent-rgb),.6); }
.phase-node.past { color: rgba(243,238,229,.5); }
.phase-node.past .pip { background: rgba(243,238,229,.42); border-color: rgba(243,238,229,.42); }

.timeline-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.play-controls { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid rgba(243,238,229,.2);
  border-radius: 50%;
  background: rgba(8,12,15,.22);
  color: rgba(243,238,229,.82);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
  padding: 0;
}
.icon-btn:hover { border-color: rgba(var(--accent-rgb),.7); background: rgba(var(--accent-rgb),.08); transform: scale(1.04); }
.icon-btn svg { width: 15px; height: 15px; }
.icon-pause { display: none; }
body.paused .icon-play { display: block; }
body.paused .icon-pause { display: none; }
body:not(.paused) .icon-play { display: none; }
body:not(.paused) .icon-pause { display: block; }

.text-btn {
  display: flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 0;
  color: rgba(243,238,229,.43);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .18em;
  cursor: pointer;
  transition: color .25s ease;
}
.text-btn:hover { color: var(--accent); }
.text-btn svg { width: 12px; height: 12px; }
.walk-btn { padding: 8px 10px; margin: -8px -10px; }
.walk-btn svg { width: 13px; height: 13px; }
.mouse-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: 7.5px; letter-spacing: .16em; color: rgba(243,238,229,.25);
}
.mouse-hint span {
  display: block; width: 17px; height: 1px; background: rgba(243,238,229,.22); position: relative;
}
.mouse-hint span::after {
  content: ""; position: absolute; right: 0; top: -2px; width: 4px; height: 4px; border-top: 1px solid rgba(243,238,229,.3); border-right: 1px solid rgba(243,238,229,.3); transform: rotate(45deg);
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #0a0f12;
  transition: opacity 1s ease, visibility 1s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; }
.loader-mark { width: 64px; height: 64px; color: rgba(243,238,229,.66); margin-bottom: 26px; }
.ldraw {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 2.6s cubic-bezier(.4,0,.2,1) infinite;
}
.ldraw.two { animation-delay: .22s; }
@keyframes draw { 0%{stroke-dashoffset:260; opacity:.2} 45%{stroke-dashoffset:0; opacity:1} 78%{stroke-dashoffset:0; opacity:.7} 100%{stroke-dashoffset:-260; opacity:0} }
.loader-title { font-family: var(--serif); font-size: 23px; letter-spacing: .28em; color: rgba(243,238,229,.9); }
.loader-en { font-size: 7px; letter-spacing: .4em; color: rgba(243,238,229,.3); margin-top: 9px; }
.loader-bar { width: 120px; height: 1px; background: rgba(243,238,229,.1); margin-top: 28px; overflow: hidden; }
.loader-bar i { display: block; width: 46%; height: 100%; background: rgba(243,238,229,.6); animation: loadbar 1.5s ease-in-out infinite; }
@keyframes loadbar { 0%{transform:translateX(-110%)} 100%{transform:translateX(250%)} }
.loader-note { font-size: 7.5px; letter-spacing: .2em; color: rgba(243,238,229,.24); margin-top: 12px; }

#fallback {
  position: fixed; inset: 0; z-index: 30;
  display: none; place-items: center;
  background: #0a0f12; color: rgba(243,238,229,.7);
}
#fallback.show { display: grid; }
#fallback div { max-width: 440px; text-align: center; font-size: 13px; line-height: 1.8; }
#fallback strong { display: block; font-family: var(--serif); font-size: 24px; letter-spacing: .12em; margin-bottom: 12px; color: #f3eee5; }

body.capture .grain { animation: none; }
body.capture .intro-card, body.capture .completion-card { transition-duration: 1.2s; }
body.capture .text-btn, body.capture .icon-btn, body.capture .mouse-hint { display: none; }
body.capture .timeline-foot { display: none; }
body.capture .timeline { bottom: 32px; }
body.capture .hint { display: none; }

.cut-tag {
  position: absolute;
  left: 50%;
  top: 92px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity .7s ease;
  color: rgba(var(--accent-rgb), .82);
  font-size: 8px;
  letter-spacing: .3em;
  white-space: nowrap;
  text-shadow: 0 1px 18px rgba(0,0,0,.5);
}
.cut-tag.show { opacity: 1; }
.cut-line {
  display: block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .5));
}
.cut-tag .cut-line:last-child {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .5), transparent);
}

.room-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .7s ease;
}
.room-layer.show { opacity: 1; }
.room-label {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(248,242,232,.88);
  opacity: 0;
  transition: opacity .35s ease;
  text-shadow: 0 1px 16px rgba(0,0,0,.8);
  white-space: nowrap;
  will-change: left, top;
}
.room-label.visible { opacity: 1; }
.room-label b {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .24em;
  padding: 4px 10px;
  border: 1px solid rgba(248,242,232,.18);
  background: rgba(6,12,15,.38);
  backdrop-filter: blur(4px);
}
.room-label span {
  font-size: 6px;
  letter-spacing: .24em;
  color: rgba(var(--accent-rgb), .72);
}

.cut-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #d8d0c1;
  opacity: 0;
  mix-blend-mode: screen;
  z-index: 3;
  transition: opacity .18s ease;
}
.cut-flash.on { opacity: .16; }

body.inspect .phase-panel,
body.inspect .intro-card,
body.inspect .completion-card,
body.inspect .cut-tag,
body.inspect .room-layer {
  opacity: 0 !important;
  pointer-events: none;
}
body.inspect .hint {
  opacity: 1;
  z-index: 5;
}
body.inspect .timeline-caption { color: rgba(243,238,229,.55); }

@media (max-width: 900px) {
  .topbar { top: 28px; left: 24px; right: 24px; }
  .top-meta { display: none; }
  .phase-panel { left: 24px; bottom: 154px; width: 62vw; }
  .phase-desc { font-size: 12px; max-width: 300px; }
  .phase-specs { display: none; }
  .side-index { display: none; }
  .timeline { left: 24px; right: 24px; bottom: 26px; }
  .timeline-caption { display: none; }
  .intro-card { left: 24px; top: 23%; }
  .intro-cn { font-size: 44px; }
  .completion-card { left: 24px; top: 20%; width: 80vw; }
  .phase-node .node-en { display: none; }
  .phase-node .node-label { font-size: 7px; }
  .mouse-hint { display: none; }
}

@media (max-height: 700px) {
  .phase-panel { bottom: 144px; }
  .phase-desc { display: none; }
  .phase-specs { display: none; }
  .timeline { bottom: 24px; }
}

/* ---------------------------------------------------------------- walkthrough */
.walk-hud {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.walking .walk-hud { opacity: 1; visibility: visible; }

body.walking .topbar,
body.walking .side-index,
body.walking .phase-panel,
body.walking .timeline,
body.walking .intro-card,
body.walking .completion-card,
body.walking .cut-tag,
body.walking .room-layer,
body.walking .hint {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.walking #world { cursor: grab; }
body.walking.is-dragging #world { cursor: grabbing; }
body.walking .letterbox { opacity: .45; }

.walk-brand {
  position: absolute;
  top: 42px;
  left: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(243,238,229,.16);
  background: rgba(7,13,16,.52);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.walk-brand b {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .18em;
}
.walk-brand em {
  font-family: var(--latin);
  font-style: normal;
  font-size: 7px;
  letter-spacing: .24em;
  color: rgba(243,238,229,.42);
}
.walk-live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5);
  animation: walk-pulse 2.2s ease-out infinite;
}
@keyframes walk-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .45); }
  70% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.walk-exit {
  position: absolute;
  top: 42px;
  right: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(243,238,229,.2);
  background: rgba(7,13,16,.5);
  color: rgba(243,238,229,.82);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .14em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.walk-exit:hover {
  background: rgba(243,238,229,.1);
  border-color: rgba(243,238,229,.38);
  color: #fff;
}
.walk-exit kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(243,238,229,.2);
  color: rgba(243,238,229,.48);
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: .12em;
}

.walk-tip {
  position: absolute;
  top: 104px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 15px;
  border: 1px solid rgba(243,238,229,.12);
  background: rgba(7,13,16,.42);
  backdrop-filter: blur(10px);
  color: rgba(243,238,229,.66);
  font-size: 9px;
  letter-spacing: .16em;
  white-space: nowrap;
  transition: opacity .6s ease, transform .6s ease;
}
.walk-tip.dim { opacity: 0; transform: translate(-50%, -6px); }

.walk-foot {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.walk-zone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 13px;
  border-left: 1px solid rgba(var(--accent-rgb), .55);
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.walk-zone span {
  font-size: 7px;
  letter-spacing: .28em;
  color: rgba(243,238,229,.4);
}
.walk-zone b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .16em;
  color: rgba(248,242,232,.92);
}

.walk-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 20px;
  padding: 10px 14px;
  border: 1px solid rgba(243,238,229,.11);
  background: rgba(7,13,16,.4);
  backdrop-filter: blur(10px);
  color: rgba(243,238,229,.48);
  font-size: 8px;
  letter-spacing: .12em;
}
.walk-keys span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.walk-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid rgba(243,238,229,.22);
  color: rgba(243,238,229,.78);
  font-family: var(--sans);
  font-size: 7px;
}

.walk-stick {
  position: absolute;
  left: 30px;
  bottom: 132px;
  width: 96px;
  height: 96px;
  display: none;
  border: 1px solid rgba(243,238,229,.2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(243,238,229,.09), rgba(7,13,16,.35) 70%);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  touch-action: none;
}
.walk-stick i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid rgba(var(--accent-rgb), .55);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), .12);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), .12);
  will-change: transform;
}
.walk-stick span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  text-align: center;
  color: rgba(243,238,229,.3);
  font-size: 7px;
  letter-spacing: .24em;
}

@media (pointer: coarse) {
  body.walking .walk-stick { display: block; }
  .walk-tip { font-size: 0; }
  .walk-tip::after {
    content: "左侧摇杆移动 · 右侧拖动环视 · 入口位于露台左侧";
    font-size: 9px;
  }
}

@media (max-width: 900px) {
  .walk-brand { top: 22px; left: 20px; padding: 9px 12px; }
  .walk-brand em { display: none; }
  .walk-exit { top: 22px; right: 20px; height: 36px; padding: 0 11px; }
  .walk-exit kbd { display: none; }
  .walk-tip {
    top: 76px;
    max-width: calc(100vw - 40px);
    white-space: normal;
    text-align: center;
    line-height: 1.7;
  }
  .walk-foot {
    left: 20px;
    right: 20px;
    bottom: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .walk-zone b { font-size: 17px; }
  .walk-keys { width: 100%; justify-content: flex-start; gap: 8px 14px; padding: 8px 10px; }
  .walk-keys span:nth-child(3), .walk-keys span:nth-child(4) { display: none; }
  .walk-stick { left: 22px; bottom: 120px; }
}

@media (max-height: 620px) {
  .walk-tip { display: none; }
  .walk-foot { bottom: 18px; }
  .walk-keys { display: none; }
  .walk-stick { bottom: 90px; }
}