:root {
  color-scheme: dark;
  --ink: #f4f1e9;
  --muted: rgba(232, 239, 241, 0.68);
  --line: rgba(215, 232, 235, 0.18);
  --glass: rgba(4, 11, 18, 0.56);
  --glass-strong: rgba(3, 8, 14, 0.76);
  --cyan: #98d9df;
  --gold: #e8be75;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "Microsoft YaHei", serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #010409;
}

body {
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button,
textarea { font: inherit; }
/* v29 uses the existing scenes and typewriter; controls remain secondary. */
.privacy-copy { color: rgba(215,232,235,.72); font-size: 12px; line-height: 1.7; max-width: 32em; margin: 16px auto 8px; }
.version-link { color: #a6d6df; font-size: 13px; text-underline-offset: 4px; }
.experience[data-mode="meditation"] > .safety-note { visibility: hidden; }
.input-label { display: grid; gap: 7px; color: rgba(225,239,241,.85); font-size: 13px; }
.optional-note { padding: 8px 0; }
.optional-note summary { padding: 8px 0; color: #abd4dd; cursor: pointer; font-size: 14px; }
.optional-note[open] summary { margin-bottom: 6px; }
.optional-note .text-input { min-height: 80px; }
.guided-custom { padding-block: 0; }
.guided-custom summary { min-height: 40px; }
.guided-custom .input-label { margin-bottom: 8px; }
.guided-custom .text-input { min-height: 90px; }
.story.panel { scrollbar-width: none; overflow-x: hidden; }
.story.panel::-webkit-scrollbar { display: none; width: 0; height: 0; }
.report-field dd, .record-details dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.intro.panel {
  max-height: calc(100svh - 156px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none;
}
.intro.panel::-webkit-scrollbar { display: none; width: 0; height: 0; }
:is(a, button, summary, textarea):focus-visible { outline: 2px solid #b7e4e8; outline-offset: 4px; }

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

.experience {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #02070d;
  --world-accent: 152, 217, 223;
}

.experience[data-world="emotion-fog"] { --world-accent: 163, 189, 205; }
.experience[data-world="loop-path"] { --world-accent: 121, 156, 184; }
.experience[data-world="belief-core"],
.experience[data-world="pressure"] { --world-accent: 102, 157, 188; }
.experience[data-world="open-exit"] { --world-accent: 232, 190, 117; }

.media,
.media video,
.fx-canvas,
.tint,
.fog-wash,
.grain,
.vignette,
.flash,
.echo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media { z-index: -8; background: #010409; }

.media video {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  filter: blur(2px) saturate(0.88) brightness(0.76);
  transition:
    opacity 420ms var(--ease-out),
    transform 700ms var(--ease-in-out),
    filter 420ms var(--ease-out);
}

.media video.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0) saturate(0.94) brightness(0.8);
}

.media video.surface-sequence-copy {
  transition: none;
}

.media video.echo-sequence-copy {
  transition: none;
}

.media video.loop-path-sequence-copy {
  transition: none;
}

.experience[data-world="surface"] .surface-sequence-copy {
  transform: translate3d(0, 4%, 0) scale(1.08);
  filter: blur(0) saturate(0.94) brightness(0.8);
}

.fx-canvas { z-index: -7; pointer-events: none; }

.tint {
  z-index: -6;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 5, 9, 0.2), rgba(2, 8, 13, 0.08) 38%, rgba(1, 5, 9, 0.72)),
    radial-gradient(circle at 50% 42%, rgba(var(--world-accent), 0.08), transparent 54%);
  transition: background-color 700ms var(--ease-in-out);
}

.fog-wash {
  z-index: -5;
  pointer-events: none;
  opacity: 0.16;
  transform: translate3d(-2%, 0, 0) scale(1.08);
  background: radial-gradient(ellipse at 38% 45%, rgba(182, 209, 217, 0.2), transparent 58%);
  animation: fog-drift 12s var(--ease-in-out) infinite alternate;
}

.grain {
  z-index: -4;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.vignette {
  z-index: -3;
  pointer-events: none;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.72);
}

.flash {
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  background: rgba(245, 211, 144, 0.42);
  transition: opacity 200ms var(--ease-out);
}

.flash.is-visible { opacity: 1; }

/* Indeterminate scene feedback: slow repeating waves, immediate response handoff. */
.echo-waiting {
  position: absolute;
  z-index: 5;
  top: 30%;
  left: 50%;
  width: min(200px, 48vw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0ms 220ms;
}
.is-awaiting-reflection .echo-waiting {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0ms;
}
.echo-waiting-halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--world-accent), 0.19), rgba(var(--world-accent), 0.05) 42%, transparent 70%);
  animation: echo-waiting-breathe 4s var(--ease-in-out) infinite;
}
.echo-waiting-ring {
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(var(--world-accent), 0.65);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(var(--world-accent), 0.07), inset 0 0 12px rgba(var(--world-accent), 0.04);
  animation: echo-waiting-wave 3.6s linear infinite;
}
.echo-waiting-ring:nth-of-type(3) { animation-delay: -1.2s; }
.echo-waiting-ring:nth-of-type(4) { animation-delay: -2.4s; }
.echo-waiting-core {
  position: absolute;
  inset: 43%;
  display: grid;
  place-items: center;
  animation: echo-waiting-breathe 4s var(--ease-in-out) infinite;
}
.echo-waiting-core i {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border: 1px solid rgba(var(--world-accent), 0.9);
  background: rgba(var(--world-accent), 0.22);
  box-shadow: 0 0 18px rgba(var(--world-accent), 0.42);
}
.echo-waiting-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(var(--world-accent), 0.85);
  box-shadow: 0 0 9px rgba(var(--world-accent), 0.6);
  animation: echo-waiting-drift 4s var(--ease-in-out) infinite;
}
.spark-one { left: 25%; top: 32%; }
.spark-two { left: 72%; top: 47%; animation-delay: -1.2s; }
.spark-three { left: 39%; top: 76%; animation-delay: -2.4s; }
.echo-waiting > * { animation-play-state: paused; }
.is-awaiting-reflection .echo-waiting > * { animation-play-state: running; }
@keyframes echo-waiting-wave {
  0% { transform: scale(0.9); opacity: 0; }
  18% { opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes echo-waiting-breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.45; }
  50% { transform: scale(1.06); opacity: 0.9; }
}
@keyframes echo-waiting-drift {
  0%, 100% { transform: translateY(4px); opacity: 0.15; }
  50% { transform: translateY(-4px); opacity: 0.75; }
}

.echo-layer { z-index: -1; overflow: hidden; pointer-events: none; }

.echo-word {
  position: absolute;
  max-width: 70vw;
  color: rgba(224, 242, 245, 0.22);
  font-size: clamp(13px, 3.4vw, 20px);
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.97);
  animation: echo-rise 5.2s var(--ease-out) forwards;
}

.topbar {
  position: absolute;
  z-index: 30;
  top: var(--safe-top);
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: auto minmax(110px, 240px) 42px;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(244, 241, 233, 0.82);
}

.brand-mark {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(var(--world-accent), 0.86);
  transform: rotate(45deg);
  box-shadow: 0 0 15px rgba(var(--world-accent), 0.5);
}

.journey {
  display: grid;
  gap: 7px;
  min-width: 0;
  opacity: 0.86;
}

.journey > span:first-child {
  overflow: hidden;
  color: rgba(236, 241, 238, 0.62);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-track {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.journey-track i {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, rgba(var(--world-accent), 0.4), rgba(var(--world-accent), 1));
  transform: scaleX(var(--journey-progress, 0));
  transform-origin: left center;
  transition: transform 600ms var(--ease-in-out);
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(3, 9, 15, 0.42);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    border-color 180ms ease,
    opacity 180ms ease;
}

.icon-button:active { transform: scale(0.96); }
.icon-button.is-muted { opacity: 0.48; }

.panel {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 38px);
  width: min(620px, calc(100% - 32px));
  max-height: calc(100svh - 140px);
  padding: clamp(22px, 5vw, 36px);
  overflow: auto;
  border: 1px solid rgba(215, 232, 235, 0.12);
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  scrollbar-width: thin;
  transform: translate3d(-50%, 0, 0) scale(1);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-out),
    visibility 0ms linear;
}

.panel.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, 14px, 0) scale(0.97);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out),
    visibility 0ms linear 200ms;
}

.story {
  width: min(560px, calc(100% - 48px));
  padding: clamp(18px, 4vw, 28px);
}

.intro {
  top: clamp(92px, 12svh, 136px);
  bottom: auto;
  width: min(570px, calc(100% - 32px));
  max-height: none;
  padding: 0 clamp(10px, 4vw, 26px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
}

.intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -36px -18px -44px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(1, 7, 13, 0.58), rgba(1, 7, 13, 0.2) 52%, transparent 76%);
}

.intro.is-hidden { transform: translate3d(-50%, -10px, 0) scale(0.98); }

.intro h1 {
  margin-bottom: 12px;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.72), 0 0 28px rgba(112, 183, 201, 0.12);
}

.intro .kicker { margin-bottom: 9px; }

.kicker {
  margin: 0 0 12px;
  color: rgba(var(--world-accent), 0.88);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
p,
blockquote { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 11vw, 68px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-shadow: 0 6px 35px rgba(0, 0, 0, 0.5);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 500;
  line-height: 1.28;
}

.dialogue-glyph {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.34em, 0) scale(0.96);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.dialogue-glyph.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.intro-lead,
.stage-body,
.hold-instruction,
.report-closing {
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: clamp(14px, 3.7vw, 17px);
  line-height: 1.9;
}

.intro-lead {
  margin-bottom: 18px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
}

.intro .primary-button {
  background: rgba(5, 18, 27, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.loading-copy {
  margin: 14px 0 0;
  color: rgba(232, 239, 241, 0.46);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.records-button {
  min-height: 38px;
  margin-top: 10px;
  padding: 8px 15px;
  border: 0;
  color: rgba(226, 236, 237, 0.68);
  background: transparent;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.records-button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-inline-start: 4px;
  padding-inline: 6px;
  border: 1px solid rgba(var(--world-accent), 0.25);
  border-radius: 999px;
  color: rgba(var(--world-accent), 0.9);
}

.primary-button,
.secondary-button,
.choice-button,
.chip {
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(var(--world-accent), 0.42);
  color: #f8f6ef;
  background: rgba(var(--world-accent), 0.15);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.secondary-button { border-color: var(--line); background: rgba(255, 255, 255, 0.035); }
.primary-button:active,
.secondary-button:active,
.choice-button:active,
.chip:active { transform: scale(0.97); }
.primary-button:disabled { cursor: wait; opacity: 0.42; }

.stage-controls { display: grid; gap: 11px; margin-top: 18px; }
.reflection-actions { display: flex; justify-content: space-between; gap: 16px; }
.reflection-link { border: 0; background: transparent; padding: 8px 2px; min-height: 36px; color: rgba(217, 236, 239, 0.65); font: inherit; font-size: 12px; cursor: pointer; }
.reflection-link:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.stage-controls[hidden],
.reflection-status[hidden],
.stage-reflection[hidden] { display: none; }

.reflection-status {
  margin-bottom: 12px;
  color: rgba(var(--world-accent), 0.88);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
  line-height: 1.6;
}

.stage-reflection {
  margin-bottom: 16px;
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  white-space: pre-line;
}

.stage-body { white-space: pre-line; }
.stage-reflection,
.stage-body,
.story h2 { overflow-wrap: anywhere; }

.text-input {
  width: 100%;
  min-height: 104px;
  resize: none;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.text-input:focus {
  border-color: rgba(var(--world-accent), 0.62);
  background: rgba(1, 6, 11, 0.16);
}

.text-input::placeholder { color: rgba(226, 234, 236, 0.42); }

.chips { display: grid; gap: 9px; }

.chip,
.choice-button {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  color: rgba(246, 245, 239, 0.76);
  background: rgba(255, 255, 255, 0.035);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.chip.is-selected,
.choice-button.is-selected {
  border-color: rgba(var(--world-accent), 0.64);
  color: #fff;
  background: rgba(var(--world-accent), 0.14);
}

.choice-grid { display: grid; gap: 12px; }

.choice-button strong,
.choice-button small { display: block; }
.choice-button strong { margin-bottom: 5px; font-size: 15px; font-weight: 500; }
.choice-button small { color: rgba(234, 239, 238, 0.48); font-size: 11px; }

.belief-quote {
  margin: 20px 0 0;
  padding: 15px 17px;
  border-left: 1px solid rgba(var(--world-accent), 0.58);
  color: rgba(241, 245, 242, 0.78);
  background: rgba(var(--world-accent), 0.055);
  font-size: 15px;
  line-height: 1.7;
}

.belief-quote.is-hidden { display: none; }

.hold-panel { text-align: center; }

.hold-panel h2 {
  margin-inline: auto;
  max-width: 500px;
  font-size: clamp(23px, 5.8vw, 36px);
}

.hold-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 22px auto 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: radial-gradient(circle, rgba(126, 189, 207, 0.19), rgba(2, 9, 15, 0.72) 62%);
  box-shadow: 0 0 0 1px rgba(166, 220, 227, 0.15), 0 0 42px rgba(89, 160, 180, 0.14);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 160ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    opacity 180ms ease;
}

.hold-orb svg { position: absolute; inset: 6px; width: 120px; height: 120px; transform: rotate(-90deg); }
.hold-orb circle { fill: none; stroke-width: 2; }
.hold-track { stroke: rgba(228, 240, 241, 0.12); }
.hold-progress {
  stroke: rgb(var(--world-accent));
  stroke-linecap: round;
  stroke-dasharray: 333;
  stroke-dashoffset: 333;
  filter: drop-shadow(0 0 5px rgba(var(--world-accent), 0.66));
}

.hold-orb span { font-family: "Microsoft YaHei", sans-serif; font-size: 13px; letter-spacing: 0.14em; }
.hold-orb.is-holding { transform: scale(0.97); box-shadow: 0 0 0 1px rgba(166, 220, 227, 0.36), 0 0 70px rgba(89, 160, 180, 0.28); }
.hold-orb.is-ready { box-shadow: 0 0 0 1px rgba(232, 190, 117, 0.5), 0 0 70px rgba(232, 190, 117, 0.28); }
.hold-orb:disabled { cursor: default; opacity: 0.72; }

.countdown { display: grid; gap: 2px; margin-top: 16px; }
.countdown.is-hidden { visibility: hidden; }
.countdown span { color: var(--gold); font-size: 28px; font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); font-family: "Microsoft YaHei", sans-serif; font-size: 11px; }

.report { text-align: left; }
.report-fields { display: grid; gap: 10px; margin: 20px 0; }
.report-field { padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.report-field dt { margin-bottom: 6px; color: rgba(var(--world-accent), 0.7); font-family: "Microsoft YaHei", sans-serif; font-size: 10px; letter-spacing: 0.14em; }
.report-field dd { margin: 0; color: rgba(245, 245, 240, 0.82); font-family: "Microsoft YaHei", sans-serif; font-size: 13px; line-height: 1.6; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-saved { margin: -8px 0 17px; color: rgba(var(--world-accent), 0.7); font-family: "Microsoft YaHei", sans-serif; font-size: 10px; text-align: center; }

.records-panel { width: min(600px, calc(100% - 40px)); }
.records-panel h2 { margin-bottom: 8px; }
.records-intro { margin-bottom: 18px; color: var(--muted); font-family: "Microsoft YaHei", sans-serif; font-size: 12px; line-height: 1.7; }
.records-list { display: grid; gap: 12px; }
.records-empty { margin: 28px 0; color: rgba(230, 237, 237, 0.5); font-family: "Microsoft YaHei", sans-serif; font-size: 12px; line-height: 1.7; text-align: center; }
.records-panel > .secondary-button { width: 100%; margin-top: 16px; }
.record-card { padding: 15px; border: 1px solid rgba(var(--world-accent), 0.18); border-radius: 18px; background: rgba(2, 8, 13, 0.22); }
.record-card-header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: rgba(var(--world-accent), 0.7); font-family: "Microsoft YaHei", sans-serif; font-size: 9px; letter-spacing: 0.08em; }
.record-card h3 { margin: 0 0 13px; font-size: 17px; font-weight: 500; line-height: 1.5; }
.record-details { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin: 0; font-family: "Microsoft YaHei", sans-serif; font-size: 11px; line-height: 1.6; }
.record-details dt { color: rgba(230, 237, 237, 0.42); }
.record-details dd { margin: 0; color: rgba(242, 244, 240, 0.72); }

.toast {
  position: absolute;
  z-index: 50;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 18px);
  max-width: calc(100% - 40px);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(249, 247, 240, 0.9);
  background: rgba(3, 9, 15, 0.82);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 8px, 0);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

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

.safety-note {
  position: absolute;
  z-index: 12;
  right: max(18px, env(safe-area-inset-right));
  bottom: var(--safe-bottom);
  left: max(18px, env(safe-area-inset-left));
  color: rgba(232, 238, 236, 0.34);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-align: center;
  pointer-events: none;
}

@keyframes fog-drift {
  to { transform: translate3d(3%, -1%, 0) scale(1.12); opacity: 0.26; }
}

@keyframes echo-rise {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.97); }
  15% { opacity: 1; }
  75% { opacity: 0.7; }
  100% { opacity: 0; transform: translate3d(0, -26px, 0) scale(1.02); }
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:not(:disabled):hover,
  .secondary-button:hover { transform: translateY(-2px); border-color: rgba(var(--world-accent), 0.72); }
  .chip:hover,
  .choice-button:hover { border-color: rgba(var(--world-accent), 0.42); background: rgba(var(--world-accent), 0.08); }
  .icon-button:hover { border-color: rgba(var(--world-accent), 0.55); }
}

@media (min-width: 900px) {
  .experience::before,
  .experience::after {
    content: "";
    position: absolute;
    z-index: -2;
    top: 0;
    bottom: 0;
    width: max(0px, calc((100vw - 760px) / 2));
    pointer-events: none;
    background: linear-gradient(90deg, rgba(1, 4, 8, 0.45), transparent);
  }
  .experience::before { left: 0; }
  .experience::after { right: 0; transform: scaleX(-1); }
  .panel { bottom: 64px; }
  .intro {
    top: 17vh;
    bottom: auto;
    width: min(520px, 42vw);
  }
  .story { left: auto; right: 7vw; width: min(460px, 38vw); transform: translate3d(0, 0, 0) scale(1); }
  .story.is-hidden { transform: translate3d(0, 14px, 0) scale(0.97); }
  .hold-panel { width: min(560px, 44vw); }
  .report { width: min(680px, 58vw); }
  .safety-note { text-align: left; }
}

@media (max-width: 520px) {
  .topbar { grid-template-columns: auto 1fr 40px; gap: 10px; }
  .brand { font-size: 11px; }
  .journey > span:first-child { display: none; }
  .panel { bottom: calc(var(--safe-bottom) + 30px); max-height: calc(100svh - 126px); border-radius: 24px; }
  .story { width: calc(100% - 40px); padding: 18px; }
  .intro {
    top: max(88px, calc(var(--safe-top) + 64px));
    bottom: auto;
    max-height: none;
    padding-inline: 10px;
  }
  .intro h1 { font-size: clamp(38px, 12vw, 50px); }
  .safety-note { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .echo-waiting,
  .is-awaiting-reflection .echo-waiting {
    transform: translate(-50%, -50%);
    transition: opacity 150ms var(--ease-out), visibility 0ms 150ms;
  }
  .is-awaiting-reflection .echo-waiting { transition-delay: 0ms; }
  .echo-waiting > * { animation: none; }
  .echo-waiting-ring { opacity: 0.18; transform: scale(0.9); }
  .echo-waiting-ring:nth-of-type(3) { transform: scale(1.35); }
  .echo-waiting-ring:nth-of-type(4) { transform: scale(1.8); }
  .echo-waiting-halo, .echo-waiting-core { opacity: 0.6; }
  .echo-waiting-spark { opacity: 0.3; }
  .dialogue-glyph,
  .dialogue-glyph.is-shown { opacity: 1; transform: none; transition: none; }
  .fog-wash { animation: none; }
  .echo-word { animation: none; opacity: 0.34; transform: none; }
  .media video,
  .panel,
  .panel.is-hidden,
  .journey-track i,
  .flash,
  .toast { transition-duration: 160ms; transform: none; }
  .panel,
  .panel.is-hidden { left: 50%; transform: translateX(-50%); }
  .story,
  .story.is-hidden { transform: translateX(-50%); }
  .intro,
  .intro.is-hidden { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
  .story, .story.is-hidden { left: auto; transform: none; }
}
