:root {
  --bg: #06070b;
  --bg-soft: #0d1017;
  --panel: rgba(14, 17, 24, 0.72);
  --panel-strong: rgba(20, 24, 33, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #efe8e1;
  --muted: #aaa4a1;
  --soft: #7d7a78;
  --accent: #c65a5a;
  --accent-soft: rgba(198, 90, 90, 0.18);
  --accent-glow: rgba(198, 90, 90, 0.28);
  --gold: #d9b27b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 780px;
  --pointer-x: 50vw;
  --pointer-y: 30vh;
  --progress: 0%;
  --scene-depth: 0.08;
  --focus-y: 50vh;
  --reading-depth: 0;
  --phase-energy: 0;
  --sound-presence: 0;
  --volume-level: 0.72;
  --matte-size: 26px;
  --hud-glow: 20px;
  --spotlight-opacity: 0;
  --scroll-velocity: 0;
  --camera-shift: 0;
  --camera-drift: 0;
  --focus-pulse: 0;
  --aftershock-strength: 0;
  --audio-bass: 0;
  --audio-mid: 0;
  --audio-high: 0;
  --audio-energy: 0;
  --audio-flare: 0;
  --cue-progress: 0;
  --event-intensity: 0;
  --immersion-level: 0.68;
  --mood-suspense: 0;
  --mood-intimacy: 0;
  --mood-distortion: 0;
  --mood-resonance: 0;
}

body[data-sound-profile="mist"] {
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --accent-glow: rgba(139, 92, 246, 0.32);
  --gold: #c7b6ff;
}

body[data-sound-profile="signal"] {
  --accent: #6c8cff;
  --accent-soft: rgba(108, 140, 255, 0.18);
  --accent-glow: rgba(108, 140, 255, 0.32);
  --gold: #bbd0ff;
}

body[data-sound-profile="embers"] {
  --accent: #d86a49;
  --accent-soft: rgba(216, 106, 73, 0.18);
  --accent-glow: rgba(216, 106, 73, 0.32);
  --gold: #f0b38b;
}

body[data-sound-profile="wall"] {
  --accent: #67a99b;
  --accent-soft: rgba(103, 169, 155, 0.18);
  --accent-glow: rgba(103, 169, 155, 0.3);
  --gold: #9fd6ca;
}

body[data-sound-profile="archive"] {
  --accent: #c65a5a;
  --accent-soft: rgba(198, 90, 90, 0.18);
  --accent-glow: rgba(198, 90, 90, 0.28);
  --gold: #d9b27b;
}

body[data-sound-profile="pulse"] {
  --accent: #b46cff;
  --accent-soft: rgba(180, 108, 255, 0.2);
  --accent-glow: rgba(180, 108, 255, 0.34);
  --gold: #d8c0ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-browser-family="edge"] {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, #06070b 0%, #090b12 40%, #0b0e15 100%);
  font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Serif SC", serif;
  line-height: 1.9;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(calc(320px + var(--mood-intimacy) * 120px) circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, calc(0.06 + var(--mood-intimacy) * 0.08)), transparent 72%),
    radial-gradient(circle at 20% 20%, var(--accent-soft), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, calc(0.03 + var(--mood-distortion) * 0.06)), transparent 24%);
  opacity: calc(0.34 + var(--audio-energy) * 0.12 + var(--mood-suspense) * 0.08);
  pointer-events: none;
  z-index: 0;
  transform:
    translate3d(calc(var(--camera-shift) * -10px), calc(var(--camera-drift) * -6px), 0)
    scale(calc(1 + var(--camera-drift) * 0.02 + var(--audio-flare) * 0.018));
  transition: opacity 0.3s ease, transform 0.28s ease-out;
}

body.theater-mode::before {
  opacity: 0.54;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, transparent 45%, rgba(4, 5, 8, 0.58) 100%);
  pointer-events: none;
  z-index: 0;
  opacity: calc(0.92 + var(--camera-drift) * 0.08 + var(--audio-bass) * 0.06 + var(--mood-resonance) * 0.06);
  transition: opacity 0.28s ease-out;
}

body[data-page-kind="story"]::before {
  opacity: calc(0.34 + var(--aftershock-strength) * 0.18 + var(--audio-energy) * 0.12 + var(--mood-suspense) * 0.08 + var(--immersion-level) * 0.04);
}

body[data-page-kind="story"]::after {
  opacity: calc(0.92 + var(--camera-drift) * 0.08 + var(--aftershock-strength) * 0.08 + var(--audio-bass) * 0.06 + var(--mood-resonance) * 0.08);
}

.cinema-matte {
  position: fixed;
  left: 0;
  right: 0;
  height: var(--matte-size);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(2, 3, 6, 0.98), rgba(2, 3, 6, 0.78) 58%, transparent),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
  transition: opacity 0.45s ease, height 0.55s ease, box-shadow 0.45s ease;
}

.cinema-matte--top {
  top: 0;
}

.cinema-matte--bottom {
  bottom: 0;
  transform: rotate(180deg);
}

body[data-page-kind="story"] .cinema-matte {
  opacity: 0.34;
}

body.theater-mode .cinema-matte {
  opacity: 0.92;
}

body.phase-transition .cinema-matte {
  box-shadow: 0 0 70px var(--accent-glow);
}

body[data-aftershock-state="live"] .cinema-matte {
  box-shadow: 0 0 84px var(--accent-glow);
}

main,
header,
footer,
.atmosphere,
.progress-rail,
.floating-dock {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

textarea,
input {
  font: inherit;
}

.is-hidden {
  display: none !important;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.03);
  z-index: 30;
}

.progress-fill {
  display: block;
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow:
    0 0 calc(22px + var(--audio-flare) * 26px) var(--accent-glow),
    0 0 calc(6px + var(--audio-high) * 18px) rgba(255, 255, 255, 0.14);
}

.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(calc(var(--camera-shift) * (8px + var(--immersion-level) * 2px)), calc(var(--camera-drift) * -8px), 0) scale(calc(1 + var(--camera-drift) * 0.012 + var(--immersion-level) * 0.004));
  transition: transform 0.28s ease-out, opacity 0.28s ease-out, filter 0.28s ease-out;
  filter: saturate(calc(1 + var(--mood-distortion) * 0.12 + var(--immersion-level) * 0.06));
}

.atmosphere-grid,
.atmosphere-glow,
.atmosphere-noise,
.atmosphere-scan,
.atmosphere-particles,
.atmosphere-shadow {
  position: absolute;
  inset: -12%;
}

.atmosphere-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  opacity: calc(0.12 + var(--audio-mid) * 0.08 + var(--mood-suspense) * 0.08 + var(--immersion-level) * 0.04);
}

.atmosphere-glow {
  background:
    radial-gradient(circle at 20% 18%, var(--accent-soft), transparent 28%),
    radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.06), transparent 22%),
    radial-gradient(circle at 60% 82%, rgba(217, 178, 123, 0.08), transparent 24%);
  filter: blur(calc(32px + var(--audio-mid) * 18px + var(--mood-resonance) * 10px)) saturate(calc(1 + var(--audio-high) * 0.42 + var(--immersion-level) * 0.1));
  animation: driftGlow 14s ease-in-out infinite alternate;
  opacity: calc(0.7 + var(--audio-energy) * 0.18 + var(--mood-intimacy) * 0.08 + var(--immersion-level) * 0.06);
}

.atmosphere-noise {
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.024) 0, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.022) 0, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 190px 190px, 240px 240px;
  mix-blend-mode: screen;
  opacity: calc(0.1 + var(--audio-high) * 0.14 + var(--mood-distortion) * 0.08);
  animation: grainShift 10s linear infinite;
}

.atmosphere-scan {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.022), transparent);
  transform: translateY(-100%);
  animation: scan 12s linear infinite;
  opacity: calc(0.14 + var(--audio-high) * 0.38 + var(--mood-suspense) * 0.08);
}

.atmosphere-particles,
.atmosphere-shadow {
  opacity: calc(0.06 + var(--scene-depth) * 0.2 + var(--audio-mid) * 0.06 + var(--immersion-level) * 0.06);
}

body[data-scene="mist-city"] .atmosphere-particles {
  background:
    radial-gradient(circle at 20% 35%, rgba(139, 92, 246, 0.18), transparent 22%),
    radial-gradient(circle at 78% 30%, rgba(108, 140, 255, 0.12), transparent 18%),
    radial-gradient(circle at 55% 75%, rgba(217, 178, 123, 0.08), transparent 20%);
  filter: blur(30px);
  animation: driftGlow 18s ease-in-out infinite alternate;
}

body[data-scene="mist-city"] .atmosphere-shadow {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  opacity: calc(0.04 + var(--scene-depth) * 0.08);
}

body[data-scene="rain-signal"] .atmosphere-particles {
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(108, 140, 255, 0.14) 47%, transparent 48%),
    linear-gradient(112deg, transparent 0 60%, rgba(187, 208, 255, 0.12) 61%, transparent 62%);
  background-size: 170px 170px, 210px 210px;
  animation: rainFall 12s linear infinite;
  opacity: calc(0.08 + var(--scene-depth) * 0.18);
}

body[data-scene="rain-signal"] .atmosphere-shadow {
  background:
    linear-gradient(180deg, rgba(108, 140, 255, 0.08), transparent 34%),
    radial-gradient(circle at 70% 20%, rgba(108, 140, 255, 0.16), transparent 26%);
  filter: blur(18px);
}

body[data-scene="embers"] .atmosphere-particles {
  background-image:
    radial-gradient(circle at 22% 80%, rgba(216, 106, 73, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 30%, rgba(255, 210, 160, 0.42) 0 1.3px, transparent 2px),
    radial-gradient(circle at 80% 60%, rgba(216, 106, 73, 0.28) 0 1px, transparent 2px);
  background-size: 180px 180px, 230px 230px, 260px 260px;
  animation: emberFloat 15s ease-in-out infinite alternate;
  opacity: calc(0.1 + var(--scene-depth) * 0.2);
}

body[data-scene="embers"] .atmosphere-shadow {
  background:
    radial-gradient(circle at 50% 85%, rgba(216, 106, 73, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 180, 120, 0.06), transparent 26%);
  filter: blur(22px);
}

body[data-scene="corridor"] .atmosphere-particles {
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(103, 169, 155, 0.08) 16%, transparent 17%, transparent 46%, rgba(255, 255, 255, 0.03) 47%, transparent 48%, transparent 76%, rgba(103, 169, 155, 0.08) 77%, transparent 78%),
    linear-gradient(180deg, rgba(103, 169, 155, 0.05), transparent 40%);
  animation: corridorShift 12s ease-in-out infinite alternate;
  opacity: calc(0.08 + var(--scene-depth) * 0.16);
}

body[data-scene="corridor"] .atmosphere-shadow {
  background:
    radial-gradient(circle at 50% 20%, rgba(103, 169, 155, 0.12), transparent 18%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.34));
  filter: blur(14px);
}

body[data-scene="archive-room"] .atmosphere-particles {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(217, 178, 123, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px);
  background-size: 240px 240px, 180px 180px;
  animation: grainShift 16s linear infinite;
}

body[data-scene="archive-room"] .atmosphere-shadow {
  background:
    linear-gradient(180deg, rgba(217, 178, 123, 0.08), transparent 18%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 24%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(8, 10, 15, calc(0.64 + var(--audio-mid) * 0.08)), rgba(8, 10, 15, calc(0.46 + var(--audio-energy) * 0.06)));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-mark {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.06rem;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.floating-dock {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 24;
  transition: transform 0.28s ease-out;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 13, 18, 0.82);
  color: var(--text);
  box-shadow: var(--shadow), 0 0 calc(8px + var(--audio-flare) * 18px) rgba(255, 255, 255, 0.04);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  width: min(220px, calc(100vw - 32px));
}

.dock-btn:hover,
.dock-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-glow);
  background: rgba(14, 17, 24, 0.96);
}

.dock-btn.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow), 0 0 calc(14px + var(--audio-flare) * 22px) var(--accent-glow);
}

.dock-meta {
  color: var(--gold);
  font-size: 0.86rem;
}

.dock-audio-panel {
  position: relative;
  width: min(280px, calc(100vw - 32px));
  padding: 13px 14px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 15, 22, 0.88), rgba(8, 10, 15, 0.78));
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), 0 0 calc(8px + var(--audio-mid) * 22px) var(--accent-glow);
  overflow: hidden;
}

.dock-audio-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.dock-audio-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dock-audio-label {
  color: var(--text);
  font-size: 0.94rem;
}

.dock-audio-value {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dock-audio-mode {
  position: relative;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dock-volume {
  position: relative;
  width: 100%;
  margin-top: 12px;
  appearance: none;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.16));
  outline: none;
}

.dock-volume::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #fff;
  box-shadow: 0 0 0 5px var(--accent-soft), 0 6px 16px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.dock-volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #fff;
  box-shadow: 0 0 0 5px var(--accent-soft), 0 6px 16px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.dock-volume::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.16));
}

.dock-immersion {
  position: relative;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dock-immersion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dock-immersion-label,
.dock-immersion-value {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dock-immersion-label {
  color: var(--muted);
}

.dock-immersion-value {
  color: var(--gold);
}

.dock-immersion-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.dock-immersion-pill {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.24s ease, color 0.24s ease, background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.dock-immersion-pill:hover,
.dock-immersion-pill:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.dock-immersion-pill.is-active {
  color: #fff9f0;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 18px var(--accent-glow);
}

.dock-device {
  position: relative;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dock-device::before {
  content: "";
  position: absolute;
  inset: 12px 0 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.08), transparent 48%, rgba(217, 178, 123, 0.08));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.dock-device-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dock-device-label,
.dock-device-value {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dock-device-label {
  color: var(--muted);
}

.dock-device-value {
  color: var(--gold);
  text-align: right;
  transition: color 0.24s ease, text-shadow 0.24s ease;
}

.dock-device-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.dock-device-pill {
  min-height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.24s ease, color 0.24s ease, background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
}

.dock-device-pill:hover,
.dock-device-pill:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.dock-device-pill.is-active {
  color: #fff9f0;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.22), rgba(217, 178, 123, 0.18));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 18px rgba(108, 140, 255, 0.24);
}

.dock-device-pill:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dock-device-note {
  position: relative;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.66;
}

body.is-device-link-ready .dock-device::before,
body.is-haptics-enabled .dock-device::before,
body.is-wakelock-enabled .dock-device::before {
  opacity: 1;
}

body.is-haptics-enabled .dock-device-value,
body.is-wakelock-enabled .dock-device-value {
  color: #fff8ed;
  text-shadow: 0 0 16px rgba(108, 140, 255, 0.28);
}

body[data-device-signal="phase"] .dock-device,
body[data-device-signal="reveal"] .dock-device,
body[data-device-signal="confession"] .dock-device,
body[data-device-signal="shock"] .dock-device,
body[data-device-signal="ending"] .dock-device {
  border-top-color: rgba(255, 255, 255, 0.14);
}

body[data-device-signal="phase"] .dock-device::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.16), transparent 56%, rgba(255, 255, 255, 0.08));
}

body[data-device-signal="reveal"] .dock-device::before,
body[data-device-signal="confession"] .dock-device::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(103, 169, 155, 0.12), transparent 46%, rgba(217, 178, 123, 0.12));
}

body[data-device-signal="shock"] .dock-device::before,
body[data-device-signal="ending"] .dock-device::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 111, 145, 0.18), rgba(108, 140, 255, 0.08), rgba(217, 178, 123, 0.18));
}

.hero {
  padding: 84px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 22px;
}

.hero-card,
.glass-card,
.story-shell,
.about-shell,
.footer-panel,
.story-card,
.feature-card {
  background: linear-gradient(180deg, rgba(17, 21, 30, 0.84), rgba(12, 15, 21, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.glass-card::before,
.story-shell::before,
.about-shell::before,
.story-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 32%);
  pointer-events: none;
}

.hero-copy {
  padding: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--gold);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 0;
  color: #d9d2cc;
  font-size: 1.06rem;
}

.hero-sub {
  margin: 16px 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button {
  color: #fff8f8;
  background: linear-gradient(135deg, var(--accent), rgba(255, 255, 255, 0.08));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--accent-soft);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
}

.button:hover,
.button-secondary:hover,
.button:focus-visible,
.button-secondary:focus-visible {
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stat-pill {
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 8px;
  font-size: 1.22rem;
  font-weight: 700;
}

.hero-side {
  display: grid;
  gap: 22px;
}

.glass-card {
  padding: 28px;
}

.glass-card--preview {
  position: relative;
  overflow: hidden;
}

.glass-card--preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, var(--accent-soft), transparent 24%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  opacity: 0.78;
  pointer-events: none;
}

.glass-card--preview.is-previewing {
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.42), 0 0 40px var(--accent-glow);
}

.preview-stage {
  position: relative;
  margin: 16px 0 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 9, 14, 0.86), rgba(12, 15, 22, 0.72)),
    radial-gradient(circle at 18% 18%, rgba(108, 140, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(217, 178, 123, 0.16), transparent 30%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 38px rgba(0, 0, 0, 0.2);
}

.preview-stage-beam,
.preview-stage-grid,
.preview-stage-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preview-stage-beam {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.06) 48%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.82;
}

.preview-stage-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, black, transparent 92%);
  opacity: 0.24;
}

.preview-stage-noise {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.03) 0 1px, transparent 2px);
  background-size: 120px 120px, 170px 170px;
  opacity: 0.36;
}

.preview-stage-screen,
.preview-cue-strip {
  position: relative;
}

.preview-stage-screen {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.07), transparent 34%);
  backdrop-filter: blur(18px);
}

.preview-stage-screen-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preview-stage-scene {
  display: grid;
  gap: 4px;
}

.preview-stage-scene-label,
.preview-stage-tone,
.preview-stage-counter,
.preview-stage-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.preview-stage-scene-label,
.preview-stage-counter {
  color: var(--gold);
  font-size: 0.76rem;
}

.preview-stage-tone {
  color: #d9d1cb;
  font-size: 0.72rem;
}

.preview-stage-kicker {
  margin-top: 18px;
  color: #d7d0c9;
  font-size: 0.74rem;
}

.preview-stage-title {
  margin: 8px 0 0;
  font-size: 1.18rem;
  line-height: 1.28;
}

.preview-stage-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.preview-stage-signal {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  height: 28px;
  margin-top: 18px;
  align-items: end;
}

.preview-stage-signal span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), var(--accent));
  box-shadow: 0 0 18px var(--accent-glow);
  opacity: 0.84;
  transform-origin: bottom;
  animation: spectrumLift 2.8s ease-in-out infinite;
}

.preview-stage-signal span:nth-child(1) { height: 34%; animation-delay: 0s; }
.preview-stage-signal span:nth-child(2) { height: 78%; animation-delay: 0.16s; }
.preview-stage-signal span:nth-child(3) { height: 46%; animation-delay: 0.28s; }
.preview-stage-signal span:nth-child(4) { height: 92%; animation-delay: 0.4s; }
.preview-stage-signal span:nth-child(5) { height: 54%; animation-delay: 0.54s; }
.preview-stage-signal span:nth-child(6) { height: 72%; animation-delay: 0.68s; }

.preview-cue-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preview-cue {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #e8e0d8;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
}

.preview-cue.is-reached {
  opacity: 0.82;
}

.preview-cue.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 18px var(--accent-glow);
}

.preview-cue.is-reveal.is-active {
  background: linear-gradient(135deg, rgba(103, 169, 155, 0.22), rgba(255, 255, 255, 0.05));
}

.preview-cue.is-shock.is-active {
  background: linear-gradient(135deg, rgba(255, 111, 145, 0.22), rgba(255, 255, 255, 0.05));
}

.preview-cue.is-confession.is-active {
  background: linear-gradient(135deg, rgba(217, 178, 123, 0.24), rgba(255, 255, 255, 0.05));
}

.preview-cue.is-ending.is-active {
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.24), rgba(255, 255, 255, 0.05));
}

.preview-resonance {
  position: relative;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.06), transparent 30%),
    radial-gradient(circle at 86% 14%, var(--accent-soft), transparent 34%);
  overflow: hidden;
}

.preview-resonance::before,
.preview-resonance::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preview-resonance::before {
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.06) 52%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%);
  opacity: 0.75;
}

.preview-resonance::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black, transparent 92%);
  opacity: 0.22;
}

.preview-resonance-top,
.preview-meter,
.preview-meter-top,
.preview-poster {
  position: relative;
}

.preview-resonance-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.preview-resonance-kicker,
.preview-meter-label,
.preview-poster-index,
.preview-poster-scene,
.preview-resonance-cue {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.preview-resonance-kicker {
  color: var(--gold);
  font-size: 0.74rem;
}

.preview-resonance-title {
  margin: 8px 0 0;
  font-size: 1.08rem;
  line-height: 1.34;
}

.preview-resonance-cue {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e7dfd8;
  font-size: 0.72rem;
}

.preview-resonance-copy {
  position: relative;
  margin: 14px 0 0;
  color: #d3cbc4;
  line-height: 1.75;
}

.preview-meter-grid {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.preview-meter {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.preview-meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preview-meter-label {
  color: #d7d0ca;
  font-size: 0.72rem;
}

.preview-meter-value {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.preview-meter-track {
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.preview-meter-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), var(--accent));
  box-shadow: 0 0 18px var(--accent-glow);
  transition: width 0.45s ease, filter 0.35s ease;
}

.preview-poster-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.preview-poster {
  min-height: 118px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.94), rgba(10, 13, 20, 0.88)),
    radial-gradient(circle at top right, var(--accent-soft), transparent 34%);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.preview-poster::before,
.preview-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preview-poster::before {
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.06) 56%, transparent 64%),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.08), transparent 24%);
  opacity: 0.8;
}

.preview-poster::after {
  inset: auto 14px 0 14px;
  height: 42px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04));
}

.preview-poster:hover,
.preview-poster:focus-visible,
.preview-poster.is-active {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3), 0 0 24px var(--accent-glow);
}

.preview-poster.is-active {
  background:
    linear-gradient(180deg, rgba(22, 28, 40, 0.98), rgba(12, 16, 24, 0.92)),
    radial-gradient(circle at top right, var(--accent-soft), transparent 34%);
}

.preview-poster-index,
.preview-poster-scene,
.preview-poster-tone {
  display: block;
  font-size: 0.7rem;
}

.preview-poster-index {
  color: var(--gold);
}

.preview-poster-scene {
  margin-top: 8px;
  color: #d3ccc5;
}

.preview-poster strong {
  position: relative;
  display: block;
  margin-top: 10px;
  font-size: 0.96rem;
  line-height: 1.42;
}

.preview-poster-tone {
  position: relative;
  margin-top: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e3ddd7;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-title {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.panel-headline {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}

.panel-copy {
  margin: 12px 0 0;
  color: var(--muted);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.meta-grid--preview {
  margin-top: 18px;
}

.meta-chip {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d8d1cc;
}

.meta-chip strong {
  display: block;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.preview-phase-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  scrollbar-width: none;
}

.preview-phase-strip::-webkit-scrollbar {
  display: none;
}

.preview-phase {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f0eae4;
  font-size: 0.84rem;
}

.preview-phase.is-active {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 18px var(--accent-glow);
}

.home-preview-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.preview-note {
  color: var(--muted);
  line-height: 1.7;
}

body[data-page-kind="home"][data-home-preview] .hero-card,
body[data-page-kind="home"][data-home-preview] .glass-card--preview {
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.42), 0 0 46px var(--accent-glow);
}

body[data-page-kind="home"][data-home-preview-phase="2"] .preview-stage,
body[data-page-kind="home"][data-home-preview-phase="3"] .preview-stage,
body[data-page-kind="home"][data-home-preview-phase="4"] .preview-stage {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 38px rgba(0, 0, 0, 0.2), 0 0 28px var(--accent-glow);
}

body[data-page-kind="home"][data-home-preview-phase="3"] .preview-resonance,
body[data-page-kind="home"][data-home-preview-phase="4"] .preview-resonance {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), 0 0 22px var(--accent-glow);
}

body[data-page-kind="home"][data-home-preview-cue-kind="shock"] .preview-stage,
body[data-page-kind="home"][data-home-preview-cue-kind="ending"] .preview-stage {
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-page-kind="home"][data-home-preview-cue-kind="shock"] .preview-resonance,
body[data-page-kind="home"][data-home-preview-cue-kind="ending"] .preview-resonance {
  border-color: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 26px 0 58px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.story-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.story-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.story-card,
.feature-card {
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
}

.story-card-link {
  display: grid;
  gap: 16px;
  height: 100%;
}

.story-card.is-active {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(22, 27, 37, 0.96), rgba(12, 15, 21, 0.82));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42), 0 0 34px var(--accent-glow);
}

.story-card::after,
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--card-x, 50%) var(--card-y, 50%), rgba(255, 255, 255, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.story-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(19, 23, 32, 0.94), rgba(12, 15, 21, 0.8));
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.4);
}

.story-card:hover::after,
.feature-card:hover::after {
  opacity: 1;
}

.story-index,
.story-tone,
.feature-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}

.story-tone {
  margin-top: 10px;
  color: #d8d1cc;
  letter-spacing: 0.14em;
}

.story-card-poster {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 20, 29, 0.95), rgba(10, 13, 19, 0.9)),
    radial-gradient(circle at top right, var(--accent-soft), transparent 36%);
  overflow: hidden;
}

.story-card-poster-noise,
.story-card-poster-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.story-card-poster-noise {
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 66%, rgba(255, 255, 255, 0.04) 0 1px, transparent 2px);
  background-size: 140px 140px, 180px 180px;
  opacity: 0.46;
}

.story-card-poster-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, black, transparent 90%);
  opacity: 0.18;
}

.story-card-poster-top,
.story-card-cues,
.story-card-echo {
  position: relative;
}

.story-card-poster-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.story-card-scene {
  color: #d7d0c9;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-card h3,
.feature-card h3 {
  margin: 12px 0;
  font-size: 1.34rem;
  line-height: 1.32;
}

.story-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
}

.story-card-cues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.story-card-cue {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e8dfd8;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.story-card-cue.is-reveal {
  background: linear-gradient(135deg, rgba(103, 169, 155, 0.16), rgba(255, 255, 255, 0.04));
}

.story-card-cue.is-shock {
  background: linear-gradient(135deg, rgba(255, 111, 145, 0.16), rgba(255, 255, 255, 0.04));
}

.story-card-cue.is-confession {
  background: linear-gradient(135deg, rgba(217, 178, 123, 0.18), rgba(255, 255, 255, 0.04));
}

.story-card-cue.is-ending {
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.story-card-cue.is-idle {
  color: #d1cac4;
}

.story-card-spectrum {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  height: 28px;
  margin-top: 18px;
  align-items: end;
}

.story-card-spectrum span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--accent));
  transform-origin: bottom;
  box-shadow: 0 0 16px var(--accent-glow);
  opacity: 0.74;
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
}

.story-card-spectrum span:nth-child(1) { height: 32%; }
.story-card-spectrum span:nth-child(2) { height: 72%; }
.story-card-spectrum span:nth-child(3) { height: 48%; }
.story-card-spectrum span:nth-child(4) { height: 88%; }
.story-card-spectrum span:nth-child(5) { height: 58%; }

.story-card.is-active .story-card-spectrum span {
  opacity: 1;
  filter: saturate(1.18) brightness(1.08);
  animation: spectrumLift 2.1s ease-in-out infinite;
}

.story-card.is-active .story-card-spectrum span:nth-child(2) {
  animation-delay: 0.16s;
}

.story-card.is-active .story-card-spectrum span:nth-child(3) {
  animation-delay: 0.28s;
}

.story-card.is-active .story-card-spectrum span:nth-child(4) {
  animation-delay: 0.42s;
}

.story-card.is-active .story-card-spectrum span:nth-child(5) {
  animation-delay: 0.54s;
}

.story-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #d8d1cc;
  font-size: 0.9rem;
}

.story-card-echo {
  gap: 6px;
  padding-top: 2px;
}

.story-card-echo-kicker {
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-card-echo-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.story-card-echo-copy {
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.94rem;
}

.story-card.is-active .story-card-poster,
.story-card:hover .story-card-poster {
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28), 0 0 22px var(--accent-glow);
}

.story-card.is-active .story-card-cue,
.story-card:hover .story-card-cue {
  border-color: rgba(255, 255, 255, 0.14);
}

.story-shell,
.about-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 40px auto 80px;
  padding: 34px min(4vw, 42px) 44px;
}

.story-header {
  position: relative;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.story-kicker {
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.story-title {
  margin: 14px 0 12px;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.12;
}

.story-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.immersive-panel {
  margin-top: 24px;
  padding: 18px 18px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, calc(0.04 + var(--audio-high) * 0.08)), transparent 30%),
    radial-gradient(circle at 82% 14%, var(--accent-soft), transparent 38%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12), 0 0 calc(8px + var(--audio-flare) * 24px) rgba(255, 255, 255, 0.04);
}

.immersive-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

.story-overture {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 18px;
  margin-top: 26px;
}

.story-overture-stage,
.story-overture-echo,
.story-overture-meter,
.story-overture-note {
  position: relative;
}

.story-overture-stage {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(12, 16, 24, 0.94), rgba(7, 10, 16, 0.88)),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.05), transparent 24%),
    radial-gradient(circle at 86% 12%, var(--accent-soft), transparent 32%);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.story-overture-beam,
.story-overture-grid,
.story-overture-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.story-overture-beam {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.06), transparent 16%),
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.07) 48%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.82;
}

.story-overture-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, black, transparent 92%);
  opacity: 0.22;
}

.story-overture-noise {
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.04) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 66%, rgba(255, 255, 255, 0.03) 0 1px, transparent 2px);
  background-size: 130px 130px, 170px 170px;
  opacity: 0.42;
}

.story-overture-screen,
.story-overture-phase-strip,
.story-overture-cue-strip {
  position: relative;
}

.story-overture-screen {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 34%);
  backdrop-filter: blur(18px);
}

.story-overture-screen-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.story-overture-scene {
  display: grid;
  gap: 4px;
}

.story-overture-scene-label,
.story-overture-tone,
.story-overture-counter,
.story-overture-kicker,
.story-overture-echo-kicker,
.story-overture-meter-label,
.story-overture-cue-status {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.story-overture-scene-label,
.story-overture-counter,
.story-overture-echo-kicker,
.story-overture-meter-label {
  color: var(--gold);
  font-size: 0.76rem;
}

.story-overture-tone {
  color: #d8d1ca;
  font-size: 0.72rem;
}

.story-overture-kicker {
  margin-top: 18px;
  color: #ddd5ce;
  font-size: 0.74rem;
}

.story-overture-title {
  margin: 8px 0 0;
  font-size: 1.34rem;
  line-height: 1.28;
}

.story-overture-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.76;
}

.story-overture-signal {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  height: 30px;
  margin-top: 18px;
  align-items: end;
}

.story-overture-signal span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--accent));
  box-shadow: 0 0 18px var(--accent-glow);
  transform-origin: bottom;
  animation: spectrumLift 2.4s ease-in-out infinite;
}

.story-overture-signal span:nth-child(1) { height: 34%; animation-delay: 0s; }
.story-overture-signal span:nth-child(2) { height: 78%; animation-delay: 0.16s; }
.story-overture-signal span:nth-child(3) { height: 44%; animation-delay: 0.28s; }
.story-overture-signal span:nth-child(4) { height: 92%; animation-delay: 0.4s; }
.story-overture-signal span:nth-child(5) { height: 56%; animation-delay: 0.54s; }
.story-overture-signal span:nth-child(6) { height: 70%; animation-delay: 0.68s; }

.story-overture-phase-strip,
.story-overture-cue-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.story-overture-phase,
.story-overture-cue {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f2ebe5;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}

.story-overture-phase.is-active,
.story-overture-cue.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 20px var(--accent-glow);
}

.story-overture-phase.is-active {
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.05));
}

.story-overture-cue.is-reached {
  opacity: 0.84;
}

.story-overture-cue.is-reveal.is-active {
  background: linear-gradient(135deg, rgba(103, 169, 155, 0.22), rgba(255, 255, 255, 0.05));
}

.story-overture-cue.is-shock.is-active {
  background: linear-gradient(135deg, rgba(255, 111, 145, 0.22), rgba(255, 255, 255, 0.05));
}

.story-overture-cue.is-confession.is-active {
  background: linear-gradient(135deg, rgba(217, 178, 123, 0.24), rgba(255, 255, 255, 0.05));
}

.story-overture-cue.is-ending.is-active {
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.24), rgba(255, 255, 255, 0.05));
}

.story-overture-cue.is-idle {
  cursor: default;
}

.story-overture-side {
  display: grid;
  gap: 14px;
}

.story-overture-echo {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top right, var(--accent-soft), transparent 34%);
  overflow: hidden;
}

.story-overture-echo-title {
  margin: 10px 0 0;
  font-size: 1.08rem;
  line-height: 1.4;
}

.story-overture-echo-copy,
.story-overture-note {
  margin: 12px 0 0;
  color: #d4ccc5;
  line-height: 1.74;
}

.story-overture-echo-note {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.68;
}

.story-overture-cue-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e9e1da;
  font-size: 0.7rem;
}

.story-overture-meter-grid {
  display: grid;
  gap: 12px;
}

.story-overture-meter {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.story-overture-meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.story-overture-meter-value {
  color: #f7eee7;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
}

.story-overture-meter-track {
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.story-overture-meter-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), var(--accent));
  box-shadow: 0 0 18px var(--accent-glow);
  transition: width 0.35s ease;
}

.story-overture-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.story-overture-actions .button {
  grid-column: 1 / -1;
}

.story-overture-actions .button-secondary.is-active {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 22px var(--accent-glow);
}

.story-overture-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.immersive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.immersive-tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d9d2cc;
  font-size: 0.9rem;
}

.story-body {
  font-size: 1.06rem;
  color: #f2ece6;
}

.story-body h2,
.story-body h3 {
  margin-top: 2.4em;
  margin-bottom: 0.86em;
  line-height: 1.35;
}

.story-body p {
  position: relative;
  margin: 1.12em 0;
  text-indent: 2em;
  transition: opacity 0.35s ease, color 0.35s ease, text-shadow 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.story-body p[data-cue-kind]::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0.6em;
  width: 4px;
  height: calc(100% - 1.2em);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0.42;
  transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.story-body p[data-cue-kind="reveal"]::before {
  background: linear-gradient(180deg, rgba(108, 140, 255, 0.95), rgba(108, 140, 255, 0.08));
}

.story-body p[data-cue-kind="shock"]::before {
  background: linear-gradient(180deg, rgba(255, 238, 210, 0.95), rgba(198, 90, 90, 0.1));
}

.story-body p[data-cue-kind="confession"]::before {
  background: linear-gradient(180deg, rgba(216, 106, 73, 0.92), rgba(216, 106, 73, 0.08));
}

.story-body p[data-cue-kind="ending"]::before {
  background: linear-gradient(180deg, rgba(198, 90, 90, 0.98), rgba(217, 178, 123, 0.14));
}

.story-body p.no-indent,
.story-body blockquote p,
.story-body li p {
  text-indent: 0;
}

.story-body ul {
  padding-left: 1.45em;
  color: var(--muted);
}

.story-body li + li {
  margin-top: 0.65em;
}

.story-body blockquote {
  margin: 1.8em 0;
  padding: 1.2em 1.35em;
  border-radius: 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  color: #f4d6d6;
}

.story-body strong {
  color: #fff8f8;
}

.story-body a {
  color: var(--gold);
}

.story-body p.is-focus {
  color: #fffdfa;
  text-shadow:
    0 0 calc(12px + var(--audio-high) * 18px + var(--mood-intimacy) * 10px) rgba(255, 255, 255, 0.08),
    0 0 calc(6px + var(--audio-flare) * 12px + var(--mood-resonance) * 10px) var(--accent-glow);
  transform: translateX(4px);
}

.story-body p.is-focus[data-cue-kind]::before,
.story-body p.is-cued::before {
  opacity: 1;
  transform: scaleY(1.02);
  box-shadow: 0 0 18px var(--accent-glow);
}

.story-body p.is-cued {
  animation: cueFlash 1s ease;
}

.story-body p.is-shifting::after {
  content: "";
  position: absolute;
  inset: -0.28em -0.45em;
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 255, 255, calc(0.06 + var(--focus-pulse) * 0.18 + var(--audio-mid) * 0.08 + var(--mood-intimacy) * 0.08)), transparent 60%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 42%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
  animation: paragraphPulse 0.82s ease;
}

body.theater-mode .story-body p {
  opacity: 0.42;
  filter: saturate(0.7);
}

body.theater-mode .story-body p.is-focus {
  opacity: 1;
  filter: saturate(1);
}

body[data-focus-cue="shock"] .story-shell,
body[data-focus-cue="ending"] .story-shell,
body.endgame-mode .story-shell {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.46), 0 0 36px var(--accent-glow);
}

body[data-focus-cue="confession"] .reader-hud,
body.endgame-mode .reader-hud {
  background: linear-gradient(180deg, rgba(11, 13, 19, 0.92), rgba(8, 10, 14, 0.84));
}

body.is-kinetic .progress-fill {
  box-shadow: 0 0 32px var(--accent-glow), 0 0 72px rgba(255, 255, 255, 0.06);
}

body.is-kinetic .floating-dock {
  transform: translate3d(0, calc(var(--camera-shift) * -6px), 0);
}

body.endgame-mode .footer-panel {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.05);
}

body.endgame-mode .phase-chip.is-active {
  transform: translateY(-2px) scale(1.02);
}

body[data-aftershock-state="near"] .story-body p[data-cue-kind="ending"],
body[data-aftershock-state="live"] .story-body p[data-cue-kind="ending"] {
  color: #fffdfa;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
  transform: translateX(6px);
}

body[data-aftershock-state="live"] .reader-hud-bars span {
  box-shadow: 0 0 24px var(--accent-glow);
}

body[data-story-overture-phase="2"] .story-overture-stage,
body[data-story-overture-phase="3"] .story-overture-stage,
body[data-story-overture-phase="4"] .story-overture-stage {
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.34), 0 0 26px var(--accent-glow);
}

body[data-story-overture-cue-kind="shock"] .story-overture-stage,
body[data-story-overture-cue-kind="ending"] .story-overture-stage,
.story-overture.is-aftershock-live .story-overture-stage {
  border-color: rgba(255, 255, 255, 0.14);
}

.story-overture.is-aftershock-armed .story-overture-echo,
.story-overture.is-aftershock-live .story-overture-echo {
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28), 0 0 26px var(--accent-glow);
}

body.theater-mode .story-body blockquote,
body.theater-mode .story-body h2,
body.theater-mode .story-body h3 {
  opacity: 0.9;
}

.story-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.story-nav a,
.story-nav-empty {
  display: block;
  min-height: 104px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.story-nav a:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.story-nav-label {
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.story-nav-title {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.5;
}

.hud-aftershock {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, var(--accent-soft), transparent 62%);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.hud-aftershock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hud-aftershock-state {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hud-aftershock-meter {
  width: 0;
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), var(--accent));
  box-shadow: 0 0 18px var(--accent-glow);
  transition: width 0.35s ease;
}

.hud-aftershock-copy {
  margin: 12px 0 0;
  color: #f1ebe5;
  font-size: 0.92rem;
  line-height: 1.78;
}

.hud-aftershock.is-armed,
.hud-aftershock.is-live {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 calc(20px + var(--aftershock-strength) * 34px) var(--accent-glow);
}

.hud-aftershock.is-live {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, var(--accent-soft), transparent 54%);
}

.mood-matrix {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, calc(0.08 + var(--mood-suspense) * 0.08));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(255, 255, 255, calc(0.03 + var(--mood-intimacy) * 0.06)), transparent 48%),
    radial-gradient(circle at bottom right, var(--accent-soft), transparent 54%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.2),
    0 0 calc(14px + var(--mood-resonance) * 28px) rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.mood-matrix-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mood-matrix-kicker,
.mood-row-label {
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mood-matrix-title {
  margin-top: 4px;
  font-size: 1rem;
  color: #fff9f3;
}

.mood-matrix-status {
  max-width: 46%;
  text-align: right;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mood-matrix-phase {
  margin-top: 10px;
  color: #f0ebe6;
  font-size: 0.9rem;
  line-height: 1.7;
}

.mood-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mood-row {
  padding: 10px 12px 11px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.mood-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mood-row-value {
  color: #fff8f2;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mood-row-bar {
  margin-top: 10px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.mood-row-bar span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), var(--accent));
  box-shadow: 0 0 16px var(--accent-glow);
  transition: width 0.28s ease;
}

.mood-row[data-mood-row="suspense"] .mood-row-bar span {
  background: linear-gradient(90deg, #fff3ea, #ff8c71);
  box-shadow: 0 0 18px rgba(255, 140, 113, 0.3);
}

.mood-row[data-mood-row="intimacy"] .mood-row-bar span {
  background: linear-gradient(90deg, #fff8f6, #f0b38b);
  box-shadow: 0 0 18px rgba(240, 179, 139, 0.28);
}

.mood-row[data-mood-row="distortion"] .mood-row-bar span {
  background: linear-gradient(90deg, #f4f1ff, #8b5cf6);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.32);
}

.mood-row[data-mood-row="resonance"] .mood-row-bar span {
  background: linear-gradient(90deg, #f6fbff, #6c8cff);
  box-shadow: 0 0 18px rgba(108, 140, 255, 0.32);
}

.aftershock-panel {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 17, 24, 0.9), rgba(9, 11, 16, 0.82)),
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.04), transparent 34%);
  box-shadow: 0 24px 82px rgba(0, 0, 0, 0.34);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.aftershock-panel::before,
.aftershock-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aftershock-panel::before {
  background:
    radial-gradient(circle at 84% 12%, var(--accent-soft), transparent 26%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent 68%);
  opacity: calc(0.34 + var(--aftershock-strength) * 0.32);
}

.aftershock-panel::after {
  inset: auto -12% -36% -12%;
  height: 62%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, calc(0.06 + var(--aftershock-strength) * 0.12)), transparent 62%);
  filter: blur(18px);
  opacity: 0.58;
}

.aftershock-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.aftershock-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.aftershock-title {
  margin: 10px 0 0;
  font-size: clamp(1.42rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.aftershock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f3ece6;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.aftershock-copy {
  position: relative;
  margin: 16px 0 0;
  color: #efe8e1;
  font-size: 1rem;
  line-height: 1.92;
  max-width: 760px;
}

.aftershock-meter-block {
  position: relative;
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.aftershock-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aftershock-meter-track {
  margin-top: 14px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.aftershock-meter-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), var(--accent));
  box-shadow: 0 0 20px var(--accent-glow);
  transition: width 0.35s ease;
}

.aftershock-note {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.78;
}

.aftershock-fragments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.aftershock-fragment {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0.52;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.aftershock-fragment:hover,
.aftershock-fragment:focus-visible {
  opacity: 0.88;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
}

.aftershock-fragment.is-discovered {
  opacity: 0.76;
}

.aftershock-fragment.is-active {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(17, 22, 31, 0.92), rgba(12, 15, 22, 0.84));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), 0 0 28px var(--accent-glow);
}

.aftershock-fragment[data-aftershock-kind="reveal"] {
  box-shadow: inset 3px 0 0 rgba(108, 140, 255, 0.44);
}

.aftershock-fragment[data-aftershock-kind="shock"] {
  box-shadow: inset 3px 0 0 rgba(255, 226, 198, 0.42);
}

.aftershock-fragment[data-aftershock-kind="confession"] {
  box-shadow: inset 3px 0 0 rgba(216, 106, 73, 0.46);
}

.aftershock-fragment[data-aftershock-kind="ending"] {
  box-shadow: inset 3px 0 0 rgba(198, 90, 90, 0.5);
}

.aftershock-fragment.is-active[data-aftershock-kind="reveal"] {
  box-shadow: inset 3px 0 0 rgba(108, 140, 255, 0.44), 0 18px 42px rgba(0, 0, 0, 0.26), 0 0 28px var(--accent-glow);
}

.aftershock-fragment.is-active[data-aftershock-kind="shock"] {
  box-shadow: inset 3px 0 0 rgba(255, 226, 198, 0.42), 0 18px 42px rgba(0, 0, 0, 0.26), 0 0 28px var(--accent-glow);
}

.aftershock-fragment.is-active[data-aftershock-kind="confession"] {
  box-shadow: inset 3px 0 0 rgba(216, 106, 73, 0.46), 0 18px 42px rgba(0, 0, 0, 0.26), 0 0 28px var(--accent-glow);
}

.aftershock-fragment.is-active[data-aftershock-kind="ending"] {
  box-shadow: inset 3px 0 0 rgba(198, 90, 90, 0.5), 0 18px 42px rgba(0, 0, 0, 0.26), 0 0 28px var(--accent-glow);
}

.aftershock-fragment-label {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aftershock-fragment-text {
  display: block;
  margin-top: 10px;
  color: #f1ebe4;
  line-height: 1.8;
}

.aftershock-panel.is-armed,
.aftershock-panel.is-live {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 96px rgba(0, 0, 0, 0.4), 0 0 calc(24px + var(--aftershock-strength) * 44px) var(--accent-glow);
}

.aftershock-panel.is-live {
  transform: translateY(-2px);
}

.community-panel {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 17, 24, 0.88), rgba(9, 11, 16, 0.8)),
    radial-gradient(circle at top right, var(--accent-soft), transparent 30%);
  box-shadow: 0 24px 88px rgba(0, 0, 0, 0.34);
}

.community-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.04), transparent 68%);
  opacity: 0.8;
  pointer-events: none;
}

.community-panel-top,
.community-thread-head,
.community-thread-tools,
.community-compose-foot,
.community-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.community-title {
  margin: 10px 0 0;
  font-size: clamp(1.42rem, 2vw, 1.92rem);
  line-height: 1.2;
}

.community-status-pill,
.community-thread-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f2ece5;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-status-pill[data-tone="success"],
.community-thread-status[data-tone="success"],
.community-auth-message[data-tone="success"],
.community-admin-status[data-tone="success"] {
  color: #d6f0e9;
}

.community-status-pill[data-tone="error"],
.community-thread-status[data-tone="error"],
.community-auth-message[data-tone="error"],
.community-admin-status[data-tone="error"] {
  color: #ffd0d0;
}

.community-copy {
  position: relative;
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 780px;
}

.community-echo-hub {
  position: relative;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 84% 12%, var(--accent-soft), transparent 28%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.community-echo-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.05) 54%, transparent 66%);
  opacity: 0.8;
  pointer-events: none;
}

.community-echo-head,
.community-spectrum-top,
.community-filter-strip,
.community-spotlight-chip {
  position: relative;
}

.community-echo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.community-echo-title,
.community-echo-block-title {
  margin-top: 8px;
  font-size: 1.06rem;
  color: #fff8f2;
  line-height: 1.32;
}

.community-echo-status,
.community-echo-block-kicker,
.community-spectrum-label,
.community-spotlight-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.community-echo-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #eee5dd;
  font-size: 0.72rem;
  white-space: nowrap;
}

.community-echo-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 14px;
  margin-top: 16px;
}

.community-spectrum-card,
.community-focus-card {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.community-echo-block-kicker,
.community-spectrum-label {
  color: var(--gold);
  font-size: 0.72rem;
}

.community-spectrum-rows {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.community-spectrum-row {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.community-spectrum-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-spectrum-value,
.community-focus-meta {
  color: #efe6de;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.community-spectrum-track {
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.community-spectrum-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), var(--accent));
  box-shadow: 0 0 18px var(--accent-glow);
  transition: width 0.3s ease;
}

.community-spectrum-row[data-community-spectrum-row="shock"] .community-spectrum-track span {
  background: linear-gradient(90deg, #fff3ea, #ff9070);
  box-shadow: 0 0 18px rgba(255, 144, 112, 0.28);
}

.community-spectrum-row[data-community-spectrum-row="chill"] .community-spectrum-track span {
  background: linear-gradient(90deg, #f5f1ff, #8b5cf6);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.3);
}

.community-spectrum-row[data-community-spectrum-row="blade"] .community-spectrum-track span {
  background: linear-gradient(90deg, #fff8f3, #f0b38b);
  box-shadow: 0 0 18px rgba(240, 179, 139, 0.28);
}

.community-spectrum-row[data-community-spectrum-row="density"] .community-spectrum-track span {
  background: linear-gradient(90deg, #f4fffb, #67a99b);
  box-shadow: 0 0 18px rgba(103, 169, 155, 0.28);
}

.community-focus-meta {
  margin-top: 10px;
  color: var(--muted);
}

.community-focus-copy {
  margin: 12px 0 0;
  color: #f0e7df;
  line-height: 1.76;
}

.community-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.community-filter-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #ebe2da;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.community-filter-btn:hover,
.community-filter-btn:focus-visible,
.community-filter-btn.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 22px var(--accent-glow);
}

.community-filter-btn.is-active {
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.06));
}

.community-spotlight-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.community-spotlight-chip {
  min-height: 88px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.94), rgba(10, 13, 20, 0.88)),
    radial-gradient(circle at top right, var(--accent-soft), transparent 34%);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.community-spotlight-chip:hover,
.community-spotlight-chip:focus-visible,
.community-spotlight-chip.is-active {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), 0 0 22px var(--accent-glow);
}

.community-spotlight-chip.is-empty {
  cursor: default;
  opacity: 0.72;
}

.community-spotlight-label {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
}

.community-spotlight-text {
  display: block;
  margin-top: 10px;
  color: #f2e9e1;
  line-height: 1.62;
}

body[data-community-tone="shock"] .community-echo-hub,
body[data-community-tone="chill"] .community-echo-hub,
body[data-community-tone="blade"] .community-echo-hub,
body[data-community-tone="spoiler"] .community-echo-hub {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24), 0 0 26px var(--accent-glow);
}

.community-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.community-auth-card,
.community-thread-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.community-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.community-auth-tab {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, color 0.24s ease, background 0.24s ease;
}

.community-auth-tab:hover,
.community-auth-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.community-auth-tab.is-active {
  color: #fff7f5;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.06));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 24px var(--accent-glow);
}

.community-auth-message,
.community-thread-status,
.community-admin-status,
.community-compose-note,
.community-account-note {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.community-auth-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.community-field {
  display: grid;
  gap: 8px;
}

.community-field span {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.community-field input,
.community-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(7, 9, 14, 0.7);
  color: var(--text);
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.community-field input::placeholder,
.community-field textarea::placeholder {
  color: #7f7a78;
}

.community-field input:focus,
.community-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 24px var(--accent-glow);
  background: rgba(9, 12, 18, 0.84);
}

.community-field textarea:disabled {
  opacity: 0.66;
  cursor: not-allowed;
}

.community-spoiler-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at right top, rgba(176, 90, 89, 0.12), transparent 42%);
  color: #e8dfd8;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.community-spoiler-toggle:hover,
.community-spoiler-toggle:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.community-spoiler-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #caa782;
}

.community-spoiler-toggle input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.community-spoiler-toggle span {
  color: inherit;
  font-size: 0.92rem;
  line-height: 1.7;
}

.community-account-kicker,
.community-thread-kicker {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.community-account-name {
  margin-top: 8px;
  font-size: 1.24rem;
  line-height: 1.3;
}

.community-account-meta {
  margin-top: 12px;
  color: #ddd5cf;
  letter-spacing: 0.08em;
}

.community-compose-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.community-thread-tools {
  margin-top: 16px;
}

.community-admin-panel {
  position: relative;
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 23, 32, 0.9), rgba(10, 12, 18, 0.78)),
    radial-gradient(circle at right top, rgba(201, 126, 103, 0.12), transparent 36%);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.community-admin-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.04), transparent 65%);
  opacity: 0.66;
  pointer-events: none;
}

.community-admin-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.community-admin-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.community-admin-title {
  margin-top: 8px;
  font-size: 1.12rem;
  color: #f7f0ea;
  letter-spacing: 0.04em;
}

.community-admin-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.community-admin-subtitle {
  margin-top: 8px;
  font-size: 1rem;
  color: #f4ede7;
}

.community-admin-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #efe5dc;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.community-admin-list {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.community-admin-report-queue,
.community-admin-comment-section {
  position: relative;
  margin-top: 18px;
}

.community-admin-report-list {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.community-comment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.community-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.community-comment-card {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 22, 31, 0.86), rgba(11, 14, 20, 0.78));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease, background 0.26s ease;
}

.community-comment-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.26);
}

.community-comment-card.is-spotlit {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28), 0 0 24px var(--accent-glow);
}

.community-comment-card.is-pinned {
  border-color: rgba(202, 167, 130, 0.32);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(202, 167, 130, 0.14);
}

.community-comment-card.is-pinned::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(202, 167, 130, 0.14), transparent 28%, transparent 72%, rgba(202, 167, 130, 0.08));
  pointer-events: none;
}

.community-comment-card.is-hidden-comment {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(13, 15, 21, 0.92), rgba(8, 10, 15, 0.82));
}

.community-comment-card.is-hidden-comment .community-comment-body {
  color: rgba(239, 233, 226, 0.82);
}

.community-comment-card.is-spoiler {
  border-color: rgba(176, 90, 89, 0.2);
}

.community-comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.community-comment-author-wrap,
.community-comment-meta-wrap {
  display: grid;
  gap: 6px;
}

.community-comment-meta-wrap {
  justify-items: end;
}

.community-comment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f2ebe4;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.community-badge[data-tone="gold"] {
  border-color: rgba(202, 167, 130, 0.24);
  background: rgba(202, 167, 130, 0.12);
  color: #f8e5c6;
}

.community-badge[data-tone="warning"] {
  border-color: rgba(176, 90, 89, 0.24);
  background: rgba(176, 90, 89, 0.12);
  color: #ffd6d6;
}

.community-badge[data-tone="success"] {
  border-color: rgba(132, 196, 172, 0.22);
  background: rgba(132, 196, 172, 0.12);
  color: #d7f2e9;
}

.community-badge[data-tone="muted"] {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #c4bbb5;
}

.community-badge[data-tone="accent"] {
  border-color: rgba(236, 164, 129, 0.24);
  background: rgba(236, 164, 129, 0.12);
  color: #ffe2d0;
}

.community-comment-author {
  color: #fff7f2;
  font-size: 1rem;
}

.community-comment-context {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.community-comment-handle {
  margin-top: 4px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-comment-meta {
  color: var(--soft);
  font-size: 0.82rem;
  white-space: nowrap;
}

.community-comment-body {
  margin: 14px 0 0;
  color: #efe9e2;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.community-reaction-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.community-reaction-bar.is-loading {
  opacity: 0.76;
}

.community-reaction-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 44%);
  color: #e9e1da;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, opacity 0.22s ease;
}

.community-reaction-chip:hover,
.community-reaction-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.community-reaction-chip:disabled {
  cursor: default;
}

.community-reaction-chip[data-reaction-type="shock"] {
  border-color: rgba(236, 164, 129, 0.16);
}

.community-reaction-chip[data-reaction-type="chill"] {
  border-color: rgba(108, 140, 255, 0.16);
}

.community-reaction-chip[data-reaction-type="blade"] {
  border-color: rgba(198, 90, 90, 0.16);
}

.community-reaction-chip.is-active[data-reaction-type="shock"] {
  color: #fff2ea;
  border-color: rgba(236, 164, 129, 0.32);
  background:
    linear-gradient(135deg, rgba(236, 164, 129, 0.18), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 44%);
  box-shadow: 0 0 0 1px rgba(236, 164, 129, 0.08), 0 0 20px rgba(236, 164, 129, 0.14);
}

.community-reaction-chip.is-active[data-reaction-type="chill"] {
  color: #edf2ff;
  border-color: rgba(108, 140, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(108, 140, 255, 0.18), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 44%);
  box-shadow: 0 0 0 1px rgba(108, 140, 255, 0.08), 0 0 20px rgba(108, 140, 255, 0.14);
}

.community-reaction-chip.is-active[data-reaction-type="blade"] {
  color: #fff0f0;
  border-color: rgba(198, 90, 90, 0.34);
  background:
    linear-gradient(135deg, rgba(198, 90, 90, 0.18), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 44%);
  box-shadow: 0 0 0 1px rgba(198, 90, 90, 0.08), 0 0 20px rgba(198, 90, 90, 0.14);
}

.community-reaction-label,
.community-reaction-count {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.community-reaction-count {
  color: var(--gold);
  min-width: 2ch;
  text-align: right;
}

.community-comment-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.community-comment-tool-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.community-report-trigger.is-active {
  border-color: rgba(198, 90, 90, 0.22);
  color: #ffe2e2;
  box-shadow: 0 0 0 1px rgba(198, 90, 90, 0.08), 0 0 18px rgba(198, 90, 90, 0.1);
}

.community-comment-replies-meta {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.community-comment-children {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-left: 18px;
}

.community-comment-children::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.community-comment-card.is-reply {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.9), rgba(10, 12, 18, 0.82));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.community-comment-card.is-reply:hover {
  transform: translateY(-1px);
}

.community-inline-reply {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 38%);
}

.community-inline-report {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top right, rgba(198, 90, 90, 0.1), transparent 38%);
}

.community-inline-reply-head {
  display: grid;
  gap: 6px;
}

.community-inline-report-head {
  display: grid;
  gap: 6px;
}

.community-inline-reply-title {
  color: #f7efe8;
  font-size: 0.92rem;
}

.community-inline-reply-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.68;
}

.community-inline-report-title {
  color: #f7efe8;
  font-size: 0.92rem;
}

.community-inline-report-note,
.community-inline-report-meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.68;
}

.community-report-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.community-report-reason {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #efe7e0;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.community-report-reason:hover,
.community-report-reason:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
}

.community-report-reason.is-active {
  border-color: rgba(198, 90, 90, 0.28);
  background: linear-gradient(135deg, rgba(198, 90, 90, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 0 1px rgba(198, 90, 90, 0.08), 0 0 18px rgba(198, 90, 90, 0.12);
}

.community-report-reason-label {
  font-size: 0.84rem;
}

.community-inline-reply-input {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(7, 9, 14, 0.72);
  color: var(--text);
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.community-inline-reply-input::placeholder {
  color: #7f7a78;
}

.community-inline-reply-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 24px var(--accent-glow);
  background: rgba(9, 12, 18, 0.84);
}

.community-inline-report-input {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(7, 9, 14, 0.72);
  color: var(--text);
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.community-inline-report-input::placeholder {
  color: #7f7a78;
}

.community-inline-report-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 24px var(--accent-glow);
  background: rgba(9, 12, 18, 0.84);
}

.community-spoiler-toggle--inline {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
}

.community-inline-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.community-inline-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.community-inline-reply-actions .button,
.community-inline-reply-actions .button-secondary {
  min-height: 40px;
  padding: 0 16px;
}

.community-inline-report-actions .button,
.community-inline-report-actions .button-secondary {
  min-height: 40px;
  padding: 0 16px;
}

.community-spoiler-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(176, 90, 89, 0.18);
  background:
    linear-gradient(135deg, rgba(176, 90, 89, 0.12), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at right center, rgba(255, 255, 255, 0.05), transparent 30%);
}

.community-spoiler-label {
  color: #f2d8d8;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-spoiler-btn {
  min-height: 38px;
  padding: 0 14px;
}

.community-spoiler-body {
  margin-top: 12px;
  padding: 2px 2px 0;
  opacity: 1;
  max-height: 600px;
  overflow: hidden;
  transition: opacity 0.24s ease, max-height 0.32s ease, transform 0.24s ease;
}

.community-spoiler-body.is-hidden {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.community-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.community-report-card {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 22, 31, 0.88), rgba(11, 14, 20, 0.8)),
    radial-gradient(circle at top right, rgba(198, 90, 90, 0.12), transparent 34%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.community-report-card.is-pending {
  border-color: rgba(198, 90, 90, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(198, 90, 90, 0.08);
}

.community-report-card.is-comment-hidden {
  border-style: dashed;
}

.community-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.community-report-info {
  display: grid;
  gap: 6px;
}

.community-report-title {
  color: #fff3ef;
  font-size: 1rem;
}

.community-report-meta,
.community-report-comment-meta {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.community-report-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.community-report-comment {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.community-report-comment-body,
.community-report-note,
.community-report-resolution {
  margin-top: 8px;
  color: #efe9e2;
  line-height: 1.78;
  white-space: pre-wrap;
  word-break: break-word;
}

.community-report-resolution {
  color: #dcefe8;
}

.community-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.community-report-actions .button,
.community-report-actions .button-secondary {
  min-height: 40px;
  padding: 0 16px;
}

.community-admin-actions .button-secondary {
  min-height: 40px;
  padding: 0 16px;
}

.community-admin-actions .button-secondary:disabled {
  opacity: 0.55;
  transform: none;
  cursor: wait;
}

.footer {
  padding: 0 0 50px;
}

.footer-panel {
  padding: 24px;
  color: var(--muted);
}

.footer-panel strong {
  color: var(--text);
}

.empty-state {
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.reduce-motion [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

body.reduce-motion .atmosphere-glow,
body.reduce-motion .atmosphere-noise,
body.reduce-motion .atmosphere-scan {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .atmosphere-glow,
  .atmosphere-noise,
  .atmosphere-scan {
    animation: none;
  }
}

body.theater-mode .story-shell,
body.theater-mode .about-shell {
  width: min(720px, calc(100% - 32px));
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.96), rgba(8, 10, 15, 0.88));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.56);
}

body.theater-mode .story-shell--story {
  width: min(1180px, calc(100% - 32px));
}

body.theater-mode .site-header {
  background: rgba(6, 8, 12, 0.78);
}

body.is-sound-armed .dock-btn[data-sound-toggle] {
  border-color: var(--accent);
}

body.is-sound-on .dock-audio-panel {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 var(--hud-glow) var(--accent-glow);
}

body.phase-transition .reader-hud {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

@keyframes driftGlow {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 2%, 0) scale(1.08);
  }
}

@keyframes grainShift {
  from {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-1%, 2%, 0);
  }
  50% {
    transform: translate3d(2%, -1%, 0);
  }
  75% {
    transform: translate3d(-2%, -2%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scan {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(120%);
  }
}

@keyframes rainFall {
  from {
    transform: translate3d(0, -6%, 0);
  }
  to {
    transform: translate3d(-4%, 10%, 0);
  }
}

@keyframes emberFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -5%, 0) scale(1.06);
  }
}

@keyframes corridorShift {
  from {
    transform: translate3d(-1%, 0, 0);
  }
  to {
    transform: translate3d(2%, 0, 0);
  }
}

@keyframes phaseOverlayReveal {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  14% {
    opacity: 1;
    transform: scale(1);
  }
  78% {
    opacity: 0.92;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.985);
  }
}

@keyframes cueFlash {
  0% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transform: translateX(0);
  }
  35% {
    text-shadow: 0 0 26px var(--accent-glow);
    transform: translateX(8px);
  }
  100% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
  }
}

@keyframes cueNodeBreath {
  0%, 100% {
    transform: translateY(-1px) scale(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 14px 34px rgba(0, 0, 0, 0.22),
      0 0 calc(12px + var(--audio-flare) * 18px) var(--accent-glow);
  }
  50% {
    transform: translateY(-2px) scale(1.012);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 18px 38px rgba(0, 0, 0, 0.24),
      0 0 calc(18px + var(--audio-flare) * 26px) var(--accent-glow);
  }
}

@keyframes eventSurge {
  0% {
    opacity: 0.18;
    transform: scale(0.92);
    filter: blur(12px);
  }
  38% {
    opacity: 1;
    transform: scale(1.02);
    filter: blur(4px);
  }
  100% {
    opacity: 0.42;
    transform: scale(1.08);
    filter: blur(18px);
  }
}

@keyframes paragraphPulse {
  0% {
    opacity: 0;
    transform: scaleX(0.98);
  }
  28% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1.02);
  }
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .site-header .container,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-poster-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-resonance-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  main {
    padding-bottom: calc(236px + env(safe-area-inset-bottom));
  }

  .site-header .container {
    gap: 10px;
    padding: 14px 0 12px;
  }

  .brand {
    gap: 3px;
  }

  .brand-mark {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 0.94rem;
  }

  .container {
    width: min(calc(100% - 24px), 1160px);
  }

  .hero {
    padding-top: 62px;
  }

  .hero-copy,
  .glass-card,
  .story-card,
  .feature-card,
  .story-shell,
  .about-shell,
  .footer-panel {
    border-radius: 20px;
  }

  .hero-copy,
  .glass-card,
  .story-card,
  .feature-card {
    padding: 22px;
  }

  .story-shell,
  .about-shell {
    width: min(calc(100% - 24px), var(--content-width));
    padding: 24px 18px calc(176px + env(safe-area-inset-bottom));
  }

  body[data-page-kind="story"] .story-shell {
    padding-bottom: calc(196px + env(safe-area-inset-bottom));
  }

  .floating-dock {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }

  .dock-btn,
  .dock-audio-panel {
    width: 100%;
  }

  .dock-btn {
    min-height: 42px;
    padding: 0 14px;
  }

  .dock-btn[data-theater-toggle] {
    grid-column: 2;
  }

  .dock-meta {
    font-size: 0.8rem;
  }

  body[data-page-kind="story"] .floating-dock {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 6px;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  }

  body[data-page-kind="story"] .dock-btn {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 18px;
    background: rgba(8, 10, 15, 0.9);
  }

  body[data-page-kind="story"] .dock-meta {
    font-size: 0.76rem;
  }

  body[data-page-kind="story"] .dock-audio-panel {
    border-radius: 16px;
  }

  body[data-page-kind="story"] .dock-audio-label {
    font-size: 0.84rem;
  }

  body[data-page-kind="story"] .dock-audio-mode {
    font-size: 0.7rem;
  }

  .dock-audio-panel {
    grid-column: 1 / -1;
    max-height: 0;
    padding: 0;
    border-width: 0;
    border-color: transparent;
    border-radius: 18px;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease, border-color 0.22s ease;
  }

  body.is-sound-panel-open .dock-audio-panel,
  body.is-sound-armed .dock-audio-panel,
  body.is-sound-on .dock-audio-panel {
    max-height: 360px;
    padding: 11px 12px 12px;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.12);
    opacity: 1;
    pointer-events: auto;
  }

  .dock-audio-top {
    gap: 10px;
  }

  .dock-audio-label {
    font-size: 0.88rem;
  }

  .dock-audio-mode {
    margin-top: 5px;
    font-size: 0.74rem;
  }

  .dock-volume {
    margin-top: 10px;
  }

  .dock-immersion {
    margin-top: 10px;
    padding-top: 10px;
  }

  .dock-immersion-pills {
    gap: 6px;
  }

  .dock-immersion-pill {
    min-height: 32px;
    font-size: 0.82rem;
  }

  .dock-device {
    margin-top: 10px;
    padding-top: 10px;
  }

  .dock-device-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .dock-device-pill {
    min-height: 32px;
    font-size: 0.82rem;
  }

  .dock-device-note {
    margin-top: 8px;
    font-size: 0.76rem;
  }

  .reader-hud {
    top: calc(68px + env(safe-area-inset-top));
    padding: 14px 12px 12px;
    border-radius: 18px;
  }

  .reader-hud-kicker,
  .reader-hud-label,
  .reader-hud-progress,
  .dock-audio-mode {
    letter-spacing: 0.12em;
  }

  .reader-hud-title {
    margin: 10px 0 8px;
    font-size: 1.02rem;
  }

  .reader-hud-copy {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .reader-hud-value {
    font-size: 0.9rem;
  }

  .hud-aftershock {
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
  }

  .hud-aftershock-copy {
    font-size: 0.88rem;
    line-height: 1.72;
  }

  .mood-matrix {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
  }

  .mood-matrix-status {
    max-width: 50%;
    font-size: 0.7rem;
  }

  .mood-matrix-phase {
    font-size: 0.86rem;
  }

  .mood-row {
    padding: 9px 10px 10px;
    border-radius: 14px;
  }

  .phase-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .meta-grid,
  .story-nav {
    grid-template-columns: 1fr;
  }

  .community-echo-hub {
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
  }

  .community-echo-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-echo-status {
    width: 100%;
    justify-content: center;
  }

  .community-echo-grid {
    grid-template-columns: 1fr;
  }

  .community-filter-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .community-filter-strip::-webkit-scrollbar {
    display: none;
  }

  .community-filter-btn {
    white-space: nowrap;
  }

  .community-spotlight-rail {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .community-spotlight-chip {
    flex: 0 0 220px;
    min-height: 84px;
    scroll-snap-align: start;
  }

  .story-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(84vw, 1fr);
    overflow-x: auto;
    padding: 2px 2px 6px;
    margin-inline: -2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .story-card {
    scroll-snap-align: start;
  }

  .glass-card--preview {
    padding: 20px;
  }

  .preview-badge {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .panel-headline {
    font-size: 1.2rem;
  }

  .panel-copy,
  .preview-note {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .meta-grid--preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .preview-stage {
    margin: 14px 0 16px;
    padding: 14px;
    border-radius: 18px;
  }

  .preview-stage-screen {
    padding: 14px;
    border-radius: 16px;
  }

  .preview-stage-screen-top {
    flex-direction: column;
    gap: 8px;
  }

  .preview-stage-title {
    font-size: 1.02rem;
  }

  .preview-stage-copy {
    font-size: 0.88rem;
  }

  .preview-stage-signal {
    gap: 6px;
    height: 22px;
    margin-top: 14px;
  }

  .preview-resonance {
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
  }

  .preview-resonance-title {
    font-size: 0.98rem;
  }

  .preview-resonance-copy {
    font-size: 0.88rem;
  }

  .preview-resonance-cue {
    width: 100%;
    justify-content: center;
  }

  .preview-meter {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .preview-cue-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .preview-cue {
    white-space: nowrap;
  }

  .meta-grid--preview .meta-chip {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .meta-grid--preview .meta-chip strong {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .preview-phase-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -4px;
    padding: 2px 4px 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .preview-phase {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.78rem;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .preview-poster-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .preview-poster {
    flex: 0 0 208px;
    min-height: 108px;
    scroll-snap-align: start;
  }

  .home-preview-actions {
    gap: 10px;
  }

  .home-preview-actions .button {
    width: 100%;
  }

  .story-card-spectrum {
    gap: 6px;
    height: 22px;
  }

  .story-card-meta {
    gap: 8px;
    font-size: 0.86rem;
  }

  .story-card-poster {
    padding: 16px;
    border-radius: 18px;
  }

  .story-card-cues {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .story-card-echo-title {
    font-size: 0.94rem;
  }

  .story-card-echo-copy {
    font-size: 0.88rem;
  }

  .aftershock-panel {
    margin-top: 22px;
    padding: 20px;
    border-radius: 20px;
  }

  .aftershock-panel-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .aftershock-title {
    font-size: 1.24rem;
  }

  .aftershock-copy,
  .aftershock-note {
    font-size: 0.92rem;
    line-height: 1.78;
  }

  .aftershock-meter-block {
    padding: 15px;
    border-radius: 18px;
  }

  .aftershock-fragments {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .aftershock-fragment {
    padding: 14px;
    border-radius: 16px;
  }

  .community-panel {
    margin-top: 22px;
    padding: 20px;
    border-radius: 20px;
  }

  .community-panel-top,
  .community-thread-head,
  .community-thread-tools,
  .community-compose-foot,
  .community-account-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-copy,
  .community-auth-message,
  .community-thread-status,
  .community-admin-status,
  .community-compose-note,
  .community-account-note,
  .community-comment-body {
    font-size: 0.92rem;
    line-height: 1.78;
  }

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

  .community-echo-grid {
    grid-template-columns: 1fr;
  }

  .community-spotlight-rail {
    grid-template-columns: 1fr;
  }

  .community-auth-card,
  .community-thread-card,
  .community-compose-card,
  .community-comment-card {
    padding: 18px;
    border-radius: 18px;
  }

  .community-auth-tabs {
    gap: 8px;
  }

  .community-auth-tab {
    min-height: 40px;
  }

  .community-field input,
  .community-field textarea {
    padding: 13px 14px;
    border-radius: 16px;
  }

  .community-spoiler-toggle,
  .community-spoiler-box,
  .community-admin-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .community-comment-head,
  .community-admin-head,
  .community-spoiler-box,
  .community-report-head,
  .community-admin-subhead {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-reaction-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .community-admin-metrics,
  .community-report-badges {
    justify-content: flex-start;
  }

  .community-report-reasons {
    grid-template-columns: 1fr;
  }

  .community-comment-tools,
  .community-inline-reply-actions,
  .community-inline-report-actions,
  .community-report-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .community-comment-children {
    padding-left: 12px;
  }

  .community-comment-meta-wrap,
  .community-comment-badges {
    justify-items: start;
    justify-content: flex-start;
  }

  .community-admin-actions {
    width: 100%;
  }

  .community-admin-actions .button-secondary,
  .community-spoiler-btn,
  .community-inline-reply-actions .button,
  .community-inline-reply-actions .button-secondary,
  .community-inline-report-actions .button,
  .community-inline-report-actions .button-secondary,
  .community-report-actions .button,
  .community-report-actions .button-secondary {
    width: 100%;
  }
}

.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: calc(0.56 + var(--immersion-level) * 0.24 + var(--mood-distortion) * 0.08);
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--camera-shift) * 5px), calc(var(--camera-drift) * -10px), 0) scale(calc(1 + var(--camera-drift) * 0.018 + var(--immersion-level) * 0.008));
  transition: transform 0.28s ease-out, opacity 0.28s ease-out;
}

.reading-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease;
  background:
    radial-gradient(ellipse calc(52% + var(--mood-resonance) * 10%) calc(14% + var(--mood-suspense) * 4%) at 52% var(--focus-y), rgba(255, 255, 255, calc(0.07 + var(--mood-intimacy) * 0.09 + var(--mood-distortion) * 0.04)), transparent 70%),
    radial-gradient(circle at 52% var(--focus-y), rgba(255, 255, 255, calc(0.02 + var(--mood-resonance) * 0.05)), transparent calc(18% + var(--mood-resonance) * 8%)),
    linear-gradient(180deg, rgba(2, 3, 6, 0.38), transparent 16%, transparent 84%, rgba(2, 3, 6, 0.42));
}

body.theater-mode .reading-spotlight {
  opacity: calc(var(--spotlight-opacity) + var(--immersion-level) * 0.08);
}

body.phase-transition .reading-spotlight {
  opacity: calc(var(--spotlight-opacity) + 0.08);
}

body.endgame-mode .reading-spotlight {
  opacity: calc(var(--spotlight-opacity) + 0.12);
  background:
    radial-gradient(ellipse calc(54% + var(--mood-resonance) * 8%) calc(16% + var(--mood-distortion) * 4%) at 52% var(--focus-y), rgba(255, 255, 255, calc(0.1 + var(--mood-resonance) * 0.1)), transparent 72%),
    radial-gradient(circle at 52% var(--focus-y), rgba(255, 255, 255, calc(0.04 + var(--mood-distortion) * 0.06)), transparent calc(22% + var(--mood-resonance) * 10%)),
    linear-gradient(180deg, rgba(2, 3, 6, 0.46), transparent 14%, transparent 82%, rgba(2, 3, 6, 0.58));
}

body.reduce-motion .scene-canvas {
  opacity: 0.42;
}

.story-shell--story {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: min(940px, calc(100% - 40px));
  align-items: start;
  transform: none;
  transition: box-shadow 0.28s ease-out, border-color 0.28s ease-out;
  box-shadow: var(--shadow), 0 0 calc(10px + var(--audio-flare) * 20px + var(--mood-resonance) * 18px) rgba(255, 255, 255, 0.04);
}

.story-shell--story > .story-header,
.story-shell--story > .story-overture,
.story-shell--story > .aftershock-panel,
.story-shell--story > .community-panel {
  scroll-margin-top: 96px;
}

.phase-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.phase-ribbon--hud {
  margin-top: 14px;
}

.cue-map {
  position: relative;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, calc(0.04 + var(--audio-high) * 0.08)), transparent 32%),
    radial-gradient(circle at 88% 12%, var(--accent-soft), transparent 34%);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.18),
    0 0 calc(8px + var(--audio-flare) * 20px) rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.cue-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.04), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.cue-map-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cue-map-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cue-map-title {
  margin-top: 6px;
  color: #f7efe7;
  font-size: 1rem;
  line-height: 1.3;
}

.cue-map-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ddd4cc;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cue-map-track {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cue-map-track::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, calc(0.08 + var(--cue-progress) * 0.24)), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.cue-node {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px 11px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
}

.cue-node:hover,
.cue-node:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.cue-node:disabled {
  cursor: default;
  pointer-events: none;
}

.cue-node.is-locked {
  opacity: 0.6;
}

.cue-node.is-reached {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at right center, rgba(255, 255, 255, 0.05), transparent 26%);
}

.cue-node.is-live {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at right center, rgba(255, 255, 255, 0.08), transparent 26%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 34px rgba(0, 0, 0, 0.22),
    0 0 calc(12px + var(--audio-flare) * 22px) var(--accent-glow);
  transform: translateY(-1px);
}

.cue-node.is-disabled {
  opacity: 0.3;
}

.cue-node-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.cue-node.is-reached .cue-node-index,
.cue-node.is-live .cue-node-index {
  color: #fffaf5;
  background: linear-gradient(135deg, var(--accent), rgba(255, 255, 255, 0.14));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 18px var(--accent-glow);
}

.cue-node-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cue-node-title {
  color: #f6ede6;
  font-size: 0.92rem;
  line-height: 1.35;
}

.cue-node-hint {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.is-audio-reactive .cue-node.is-live {
  animation: cueNodeBreath 2.8s ease-in-out infinite;
}

.reading-radar {
  position: relative;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.014)),
    radial-gradient(circle at 14% 18%, rgba(108, 140, 255, 0.14), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(217, 178, 123, 0.12), transparent 32%);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.18),
    0 0 calc(8px + var(--audio-flare) * 18px) rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.reading-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.04), transparent 72%);
  pointer-events: none;
  opacity: 0.56;
}

.reading-radar-head,
.reading-radar-track-shell,
.reading-radar-actions,
.reading-radar-status {
  position: relative;
}

.reading-radar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reading-radar-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reading-radar-title {
  margin-top: 6px;
  color: #f7efe7;
  font-size: 1rem;
  line-height: 1.3;
}

.reading-radar-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ddd4cc;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.reading-radar-status {
  margin-top: 10px;
  color: #ddd3ca;
  font-size: 0.88rem;
  line-height: 1.62;
}

.reading-radar-track-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.reading-radar-anchor,
.reading-radar-jump {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.reading-radar-anchor {
  min-width: 58px;
  padding: 0 12px;
  color: var(--muted);
}

.reading-radar-jump {
  padding: 0 12px;
}

.reading-radar-anchor:hover,
.reading-radar-anchor:focus-visible,
.reading-radar-jump:hover,
.reading-radar-jump:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.reading-radar-track {
  position: relative;
  min-height: 62px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 56%);
  cursor: pointer;
  overflow: hidden;
}

.reading-radar-track-base,
.reading-radar-progress,
.reading-radar-phase-stops,
.reading-radar-cue-stops {
  position: absolute;
  left: 12px;
  right: 12px;
}

.reading-radar-track-base,
.reading-radar-progress {
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
}

.reading-radar-track-base {
  background: rgba(255, 255, 255, 0.08);
}

.reading-radar-progress {
  overflow: hidden;
}

.reading-radar-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(108, 140, 255, 0.86), rgba(217, 178, 123, 0.9));
  box-shadow: 0 0 18px rgba(108, 140, 255, 0.28), 0 0 14px rgba(217, 178, 123, 0.16);
}

.reading-radar-phase-stops,
.reading-radar-cue-stops {
  top: 0;
  bottom: 0;
}

.reading-radar-stop,
.reading-radar-thumb {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
}

.reading-radar-stop {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease, background 0.24s ease;
}

.reading-radar-stop--phase {
  top: 19px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}

.reading-radar-stop--cue {
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 10, 15, 0.9);
}

.reading-radar-stop--cue.is-reveal {
  border-color: rgba(103, 169, 155, 0.74);
}

.reading-radar-stop--cue.is-shock {
  border-color: rgba(255, 111, 145, 0.82);
}

.reading-radar-stop--cue.is-confession {
  border-color: rgba(217, 178, 123, 0.82);
}

.reading-radar-stop--cue.is-ending {
  border-color: rgba(108, 140, 255, 0.88);
}

.reading-radar-stop.is-reached {
  opacity: 0.94;
}

.reading-radar-stop.is-live,
.reading-radar-stop:hover,
.reading-radar-stop:focus-visible {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), 0 0 18px var(--accent-glow);
}

.reading-radar-thumb {
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffaf6, rgba(255, 255, 255, 0.82));
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04), 0 0 20px var(--accent-glow), 0 10px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.reading-radar-thumb:hover,
.reading-radar-thumb:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

.reading-radar-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

body.is-audio-reactive .reading-radar-thumb {
  animation: cueNodeBreath 2.8s ease-in-out infinite;
}

body[data-focus-cue="shock"] .reading-radar-progress span,
body[data-focus-cue="ending"] .reading-radar-progress span {
  box-shadow: 0 0 18px rgba(255, 111, 145, 0.26), 0 0 18px rgba(108, 140, 255, 0.2);
}

.phase-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.phase-chip.is-active {
  color: #fff8f8;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 32px rgba(0, 0, 0, 0.18), 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.reader-hud {
  position: relative;
  top: auto;
  width: 100%;
  padding: 20px 18px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, calc(0.1 + var(--audio-mid) * 0.06 + var(--mood-suspense) * 0.06));
  background: linear-gradient(180deg, rgba(10, 13, 19, 0.88), rgba(7, 9, 14, 0.78));
  backdrop-filter: blur(18px);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    0 0 calc(var(--hud-glow) + var(--audio-flare) * 24px + var(--mood-resonance) * 24px) var(--accent-glow),
    0 0 calc(8px + var(--audio-high) * 18px) rgba(255, 255, 255, 0.04);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  z-index: 2;
}

.reader-hud::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 34%);
  pointer-events: none;
}

.reader-hud::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%, transparent 76%, rgba(255, 255, 255, 0.03));
  opacity: 0.8;
  pointer-events: none;
}

.phase-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  text-align: center;
  z-index: 28;
  opacity: 0;
}

.phase-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, calc(0.08 + var(--audio-flare) * 0.16)), transparent 46%),
    linear-gradient(180deg, rgba(4, 5, 9, 0.7), rgba(4, 5, 9, 0.22), rgba(4, 5, 9, 0.78));
  opacity: 0;
}

.phase-overlay-kicker,
.phase-overlay-title,
.phase-overlay-copy {
  position: relative;
}

.phase-overlay-kicker {
  color: var(--gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.phase-overlay-title {
  margin-top: 14px;
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 32px var(--accent-glow);
}

.phase-overlay-copy {
  width: min(720px, calc(100vw - 48px));
  margin-top: 12px;
  color: rgba(239, 232, 225, 0.82);
  font-size: clamp(0.96rem, 1.24vw, 1.08rem);
  line-height: 1.9;
}

.phase-overlay.is-active {
  animation: phaseOverlayReveal 1.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phase-overlay.is-active::before {
  opacity: 1;
}

.event-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 27;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.event-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse calc(40% + var(--mood-resonance) * 6%) calc(15% + var(--mood-distortion) * 3%) at 52% var(--focus-y), rgba(255, 255, 255, calc(0.02 + var(--event-intensity) * 0.14 + var(--mood-intimacy) * 0.06)), transparent 72%),
    linear-gradient(180deg, rgba(4, 5, 9, calc(0.12 + var(--event-intensity) * 0.12)), transparent 18%, transparent 82%, rgba(4, 5, 9, calc(0.18 + var(--event-intensity) * 0.16)));
  opacity: 0.86;
}

.event-stage-beam,
.event-stage-rings,
.event-stage-noise {
  position: absolute;
  inset: -12%;
}

.event-stage-beam {
  background:
    linear-gradient(112deg, transparent 0 44%, rgba(255, 255, 255, calc(0.02 + var(--event-intensity) * 0.08)) 50%, transparent 56%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, calc(0.015 + var(--audio-high) * 0.05)), transparent);
  filter: blur(calc(10px + var(--event-intensity) * 12px));
  transform: translate3d(calc(var(--camera-shift) * -14px), calc(var(--camera-drift) * 6px), 0) scale(calc(1 + var(--event-intensity) * 0.08));
}

.event-stage-rings {
  background:
    radial-gradient(circle at 52% var(--focus-y), rgba(255, 255, 255, calc(0.04 + var(--event-intensity) * 0.1)) 0 2px, transparent 10%),
    radial-gradient(circle at 52% var(--focus-y), var(--accent-soft) 0, transparent calc(18% + var(--event-intensity) * 10% + var(--mood-resonance) * 8%));
  opacity: calc(0.2 + var(--event-intensity) * 0.54 + var(--mood-resonance) * 0.08);
  filter: blur(calc(8px + var(--event-intensity) * 18px));
}

.event-stage-noise {
  background-image:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, calc(0.01 + var(--event-intensity) * 0.03)) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, calc(0.02 + var(--audio-high) * 0.04)), transparent);
  mix-blend-mode: screen;
  opacity: calc(0.14 + var(--event-intensity) * 0.28);
}

.event-stage-caption {
  position: absolute;
  left: clamp(260px, 30vw, 420px);
  bottom: max(194px, calc(env(safe-area-inset-bottom) + 172px));
  width: min(420px, calc(100vw - 36px));
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, calc(0.08 + var(--event-intensity) * 0.08));
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.84), rgba(8, 10, 15, 0.62)),
    radial-gradient(circle at top left, var(--accent-soft), transparent 62%);
  backdrop-filter: blur(18px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.3),
    0 0 calc(14px + var(--audio-flare) * 22px + var(--event-intensity) * 18px) var(--accent-glow);
  transform: translate3d(0, 18px, 0);
  opacity: 0;
  transition: transform 0.34s ease, opacity 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.event-stage-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.event-stage-title {
  margin-top: 10px;
  color: #fffaf5;
  font-size: clamp(1.08rem, 1.6vw, 1.42rem);
  line-height: 1.28;
  text-shadow: 0 0 24px var(--accent-glow);
}

.event-stage-copy {
  margin-top: 8px;
  color: rgba(239, 232, 225, 0.84);
  font-size: 0.92rem;
  line-height: 1.76;
}

.event-stage.is-active {
  opacity: 1;
}

.event-stage.is-active .event-stage-caption {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

body.is-audio-reactive .event-stage.is-active .event-stage-rings,
body.story-event-endgame .event-stage.is-active .event-stage-rings {
  animation: eventSurge 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body[data-event-mode="phase"] .event-stage-caption {
  top: 112px;
  bottom: auto;
  right: clamp(18px, 4vw, 54px);
  left: auto;
  width: min(360px, calc(100vw - 36px));
}

body.story-event-endgame .event-stage::before {
  opacity: 1;
}

body.story-event-endgame .event-stage-caption {
  border-color: rgba(255, 255, 255, 0.14);
}

body[data-event-kind="reveal"] .event-stage-rings,
body[data-event-kind="reveal"] .event-stage-caption {
  color: #dce6ff;
}

body[data-event-kind="shock"] .event-stage::before {
  background:
    radial-gradient(ellipse 42% 16% at 52% var(--focus-y), rgba(255, 240, 218, calc(0.08 + var(--event-intensity) * 0.18)), transparent 72%),
    linear-gradient(180deg, rgba(14, 8, 8, calc(0.18 + var(--event-intensity) * 0.14)), transparent 18%, transparent 82%, rgba(14, 8, 8, calc(0.22 + var(--event-intensity) * 0.18)));
}

body[data-event-kind="shock"] .event-stage-caption {
  background:
    linear-gradient(180deg, rgba(16, 11, 10, 0.86), rgba(12, 9, 9, 0.66)),
    radial-gradient(circle at top left, rgba(255, 238, 210, 0.16), transparent 58%);
}

body[data-event-kind="confession"] .event-stage-caption {
  background:
    linear-gradient(180deg, rgba(16, 10, 8, 0.84), rgba(12, 8, 7, 0.66)),
    radial-gradient(circle at top left, rgba(216, 106, 73, 0.18), transparent 58%);
}

body[data-event-kind="ending"] .event-stage::before {
  background:
    radial-gradient(ellipse 46% 18% at 52% var(--focus-y), rgba(255, 245, 234, calc(0.1 + var(--event-intensity) * 0.2)), transparent 72%),
    linear-gradient(180deg, rgba(18, 9, 9, calc(0.2 + var(--event-intensity) * 0.16)), transparent 18%, transparent 78%, rgba(18, 9, 9, calc(0.28 + var(--event-intensity) * 0.2)));
}

body[data-event-kind="ending"] .event-stage-caption {
  background:
    linear-gradient(180deg, rgba(16, 9, 10, 0.88), rgba(10, 8, 9, 0.68)),
    radial-gradient(circle at top left, rgba(198, 90, 90, 0.2), transparent 56%);
}

.reader-hud-kicker {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.reader-hud-title {
  margin: 12px 0 10px;
  font-size: 1.22rem;
  line-height: 1.3;
}

.reader-hud-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.reader-hud-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reader-hud-label {
  color: var(--soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.reader-hud-value {
  color: var(--text);
  text-align: right;
}

.reader-hud-meter {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.reader-hud-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reader-hud-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  height: 42px;
  align-items: end;
}

.reader-hud-bars span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transform-origin: bottom;
  transform: scaleY(0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), var(--accent));
  box-shadow: 0 0 calc(14px + var(--audio-high) * 16px) var(--accent-glow);
}

body[data-page-kind="story"] .story-shell {
  width: min(840px, calc(100% - 40px));
}

body[data-page-kind="story"] .story-shell--story {
  width: min(940px, calc(100% - 40px));
}

body[data-page-kind="story"] main {
  box-sizing: border-box;
}

body[data-page-kind="story"] .floating-dock {
  gap: 8px;
}

body[data-page-kind="story"] .dock-btn {
  width: min(196px, calc(100vw - 32px));
}

body[data-page-kind="story"] .dock-audio-panel {
  width: min(252px, calc(100vw - 32px));
}

.story-shell--story > .story-header {
  order: 1;
}

.story-shell--story > .reader-hud {
  order: 2;
}

.story-shell--story > .story-body {
  order: 3;
}

.story-shell--story > .aftershock-panel {
  order: 4;
}

.story-shell--story > .community-panel {
  order: 5;
}

.story-shell--story > .story-nav {
  order: 6;
}

@media (min-width: 1180px) {
  body[data-page-kind="story"] main {
    padding-right: min(320px, 24vw);
  }
}

.story-shell--story > .story-header,
.story-shell--story > .story-overture,
.story-shell--story > .story-body,
.story-shell--story > .story-nav {
  grid-column: 1;
}

body[data-page-kind="story"][data-phase-index="2"] .story-shell,
body[data-page-kind="story"][data-phase-index="3"] .story-shell,
body[data-page-kind="story"][data-phase-index="4"] .story-shell {
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-page-kind="story"][data-phase-index="3"] .story-shell::before,
body[data-page-kind="story"][data-phase-index="4"] .story-shell::before {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 30%);
}

@media (max-width: 1320px) {
  .reader-hud {
    width: 100%;
  }
}

@media (max-width: 1040px) {
  .glass-card--preview {
    padding: 24px;
  }

  .preview-stage {
    padding: 16px;
  }

  .preview-stage-title {
    font-size: 1.08rem;
  }

  .preview-badge {
    min-height: 31px;
    padding: 0 11px;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
  }

  .panel-headline {
    font-size: 1.38rem;
  }

  .meta-grid--preview {
    gap: 10px;
  }

  .preview-phase-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .preview-phase {
    white-space: nowrap;
  }

  .story-card-spectrum {
    height: 24px;
    gap: 6px;
  }

  .aftershock-fragments {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .story-shell--story {
    grid-template-columns: 1fr;
    width: min(calc(100% - 24px), 840px);
  }

  .story-shell--story > .story-header,
  .story-shell--story > .story-overture,
  .story-shell--story > .aftershock-panel,
  .story-shell--story > .community-panel {
    scroll-margin-top: calc(116px + env(safe-area-inset-top));
  }

  .reader-hud {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0;
    top: auto;
    padding: 16px 14px 14px;
    border-radius: 20px;
    z-index: 1;
    overflow: hidden;
  }

  .event-stage-caption {
    left: 12px;
    right: 12px;
    bottom: max(116px, calc(env(safe-area-inset-bottom) + 92px));
    width: auto;
    padding: 14px 14px 15px;
    border-radius: 18px;
  }

  body[data-event-mode="phase"] .event-stage-caption {
    top: calc(82px + env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    width: auto;
  }

  .event-stage-title {
    font-size: 1rem;
  }

  .event-stage-copy {
    font-size: 0.84rem;
    line-height: 1.68;
  }

  .reader-hud-copy {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .reader-hud-meta {
    margin-top: 12px;
    padding-top: 12px;
  }

  .reader-hud-meter {
    margin-top: 12px;
    padding: 12px;
  }

  .reader-hud-bars {
    height: 30px;
    gap: 6px;
  }

  .cue-map,
  .reading-radar,
  .hud-aftershock,
  .mood-matrix {
    display: none;
  }

  .cue-map {
    margin-top: 12px;
    padding: 12px;
  }

  .cue-map-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cue-map-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cue-map-track::before {
    display: none;
  }

  .cue-node {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }

  .cue-node-index {
    width: 32px;
    height: 32px;
  }

  .cue-node-title {
    font-size: 0.84rem;
  }

  .cue-node-hint,
  .cue-map-status {
    font-size: 0.66rem;
  }

  .reading-radar {
    margin-top: 12px;
    padding: 12px;
  }

  .reading-radar-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .reading-radar-meta {
    min-height: 28px;
    font-size: 0.66rem;
  }

  .reading-radar-status {
    font-size: 0.82rem;
  }

  .reading-radar-track-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reading-radar-track {
    order: 3;
    grid-column: 1 / -1;
    min-height: 58px;
  }

  .reading-radar-anchor,
  .reading-radar-jump {
    min-height: 32px;
    font-size: 0.82rem;
  }

  .reading-radar-actions {
    gap: 6px;
    margin-top: 10px;
  }

  .phase-ribbon--hud {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .phase-ribbon--hud::-webkit-scrollbar {
    display: none;
  }

  .phase-ribbon--hud .phase-chip {
    white-space: nowrap;
    min-height: 32px;
  }

  body[data-page-kind="story"] .story-shell {
    width: min(calc(100% - 24px), 840px);
  }

  .story-shell--story > .story-header,
  .story-shell--story > .story-overture,
  .story-shell--story > .story-body,
  .story-shell--story > .story-nav {
    grid-column: 1;
  }
}

@media (max-width: 1040px) {
  .story-overture {
    grid-template-columns: 1fr;
  }

  .story-overture-phase-strip,
  .story-overture-cue-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .story-overture-phase-strip::-webkit-scrollbar,
  .story-overture-cue-strip::-webkit-scrollbar {
    display: none;
  }

  .story-overture-phase,
  .story-overture-cue {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .story-overture {
    gap: 14px;
    margin-top: 20px;
  }

  .story-overture-stage,
  .story-overture-echo,
  .story-overture-note {
    padding: 14px;
    border-radius: 18px;
  }

  .story-overture-screen {
    padding: 14px;
    border-radius: 16px;
  }

  .story-overture-screen-top {
    flex-direction: column;
    gap: 8px;
  }

  .story-overture-title {
    font-size: 1.04rem;
  }

  .story-overture-copy,
  .story-overture-echo-copy,
  .story-overture-note {
    font-size: 0.9rem;
  }

  .story-overture-signal {
    height: 22px;
    gap: 6px;
    margin-top: 14px;
  }

  .story-overture-cue-status {
    width: 100%;
    justify-content: center;
    font-size: 0.64rem;
  }

  .story-overture-meter {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .story-overture-actions {
    grid-template-columns: 1fr;
  }

  .story-overture-actions .button,
  .story-overture-actions .button-secondary {
    width: 100%;
  }
}

body[data-performance-mode="adaptive"]::before {
  background:
    radial-gradient(circle at 22% 18%, var(--accent-soft), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.035), transparent 24%);
  transform: none;
}

body[data-performance-mode="lite"]::before {
  background: radial-gradient(circle at 22% 18%, var(--accent-soft), transparent 32%);
  opacity: 0.26;
  transform: none;
}

body[data-performance-mode="adaptive"]::after,
body[data-performance-mode="lite"]::after {
  opacity: 0.88;
}

body[data-performance-mode="adaptive"] .scene-canvas,
body[data-performance-mode="lite"] .scene-canvas {
  mix-blend-mode: normal;
}

body[data-performance-mode="adaptive"] .scene-canvas {
  opacity: 0.52;
}

body[data-performance-mode="lite"] .scene-canvas {
  opacity: 0.32;
}

body[data-performance-mode="adaptive"] .atmosphere-glow,
body[data-performance-mode="adaptive"] .atmosphere-noise,
body[data-performance-mode="adaptive"] .atmosphere-scan,
body[data-performance-mode="adaptive"] .atmosphere-particles,
body[data-performance-mode="adaptive"] .event-stage-noise,
body[data-performance-mode="adaptive"] .story-overture-noise,
body[data-performance-mode="adaptive"] .story-overture-signal span {
  animation: none;
}

body[data-performance-mode="adaptive"] .atmosphere-glow,
body[data-performance-mode="adaptive"] .event-stage-beam,
body[data-performance-mode="adaptive"] .event-stage-rings,
body[data-performance-mode="adaptive"] .reading-spotlight {
  filter: none;
}

body[data-performance-mode="adaptive"] .atmosphere-noise,
body[data-performance-mode="adaptive"] .event-stage-noise,
body[data-performance-mode="adaptive"] .story-overture-beam,
body[data-performance-mode="adaptive"] .story-overture-grid,
body[data-performance-mode="adaptive"] .story-overture-noise {
  opacity: 0.06;
  mix-blend-mode: normal;
}

body[data-performance-mode="adaptive"] .glass-card,
body[data-performance-mode="adaptive"] .story-shell,
body[data-performance-mode="adaptive"] .dock-audio-panel,
body[data-performance-mode="adaptive"] .reader-hud,
body[data-performance-mode="adaptive"] .event-stage-caption,
body[data-performance-mode="adaptive"] .story-overture-screen,
body[data-performance-mode="adaptive"] .community-echo-hub {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

body[data-performance-mode="adaptive"] .story-shell,
body[data-performance-mode="adaptive"] .reader-hud,
body[data-performance-mode="adaptive"] .story-overture-screen,
body[data-performance-mode="adaptive"] .event-stage-caption,
body[data-performance-mode="adaptive"] .community-echo-hub {
  contain: paint;
}

body[data-performance-mode="adaptive"] .phase-overlay::before,
body[data-performance-mode="adaptive"] .event-stage::before {
  background:
    linear-gradient(180deg, rgba(4, 5, 9, 0.66), rgba(4, 5, 9, 0.22), rgba(4, 5, 9, 0.72));
}

body[data-performance-mode="adaptive"] .reader-hud-bars span {
  box-shadow: none;
}

body[data-platform-family="windows"][data-performance-mode="adaptive"] .atmosphere-grid {
  mask-image: none;
  opacity: 0.06;
}

body[data-platform-family="windows"][data-performance-mode="adaptive"] .scene-canvas {
  opacity: 0.4;
}

body[data-platform-family="windows"][data-performance-mode="adaptive"] .reading-spotlight {
  display: none;
}

body[data-performance-mode="adaptive"] .story-shell--story > .aftershock-panel,
body[data-performance-mode="adaptive"] .story-shell--story > .community-panel,
body[data-performance-mode="adaptive"] .story-shell--story > .story-nav,
body[data-performance-mode="lite"] .story-shell--story > .aftershock-panel,
body[data-performance-mode="lite"] .story-shell--story > .community-panel,
body[data-performance-mode="lite"] .story-shell--story > .story-nav {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

body[data-performance-mode="lite"] .atmosphere-grid,
body[data-performance-mode="lite"] .atmosphere-glow,
body[data-performance-mode="lite"] .atmosphere-noise,
body[data-performance-mode="lite"] .atmosphere-scan,
body[data-performance-mode="lite"] .atmosphere-particles,
body[data-performance-mode="lite"] .atmosphere-shadow,
body[data-performance-mode="lite"] .event-stage-beam,
body[data-performance-mode="lite"] .event-stage-rings,
body[data-performance-mode="lite"] .event-stage-noise,
body[data-performance-mode="lite"] .story-overture-beam,
body[data-performance-mode="lite"] .story-overture-grid,
body[data-performance-mode="lite"] .story-overture-noise,
body[data-performance-mode="lite"] .reading-spotlight {
  display: none;
}

body[data-performance-mode="lite"] .scene-canvas,
body[data-performance-mode="lite"] .phase-overlay,
body[data-performance-mode="lite"] .event-stage,
body[data-performance-mode="lite"] .reader-hud-bars,
body[data-performance-mode="lite"] .story-overture-signal {
  display: none;
}

body[data-performance-mode="lite"] [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

body[data-performance-mode="lite"] .glass-card,
body[data-performance-mode="lite"] .story-shell,
body[data-performance-mode="lite"] .dock-audio-panel,
body[data-performance-mode="lite"] .reader-hud,
body[data-performance-mode="lite"] .event-stage-caption,
body[data-performance-mode="lite"] .story-overture-screen,
body[data-performance-mode="lite"] .community-echo-hub {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

body[data-performance-mode="lite"] .reader-hud-bars span {
  box-shadow: none;
}

body[data-story-tracking="disabled"] .reader-hud {
  position: relative;
  top: auto;
}

body[data-story-tracking="disabled"] .reader-hud-meter,
body[data-story-tracking="disabled"] .cue-map,
body[data-story-tracking="disabled"] .reading-radar,
body[data-story-tracking="disabled"] .hud-aftershock,
body[data-story-tracking="disabled"] .mood-matrix {
  display: none;
}

body[data-story-tracking="disabled"] .story-overture {
  grid-template-columns: 1fr;
}

body[data-story-tracking="disabled"] .story-body p {
  transition: none;
}

body[data-story-tracking="disabled"] .story-body p.is-focus {
  transform: none;
  text-shadow: none;
}

body[data-story-tracking="disabled"] .story-body p.is-cued {
  animation: none;
}

body[data-story-tracking="disabled"] .story-body p.is-shifting::after {
  display: none;
}

body[data-story-tracking="disabled"] .story-shell--story > .aftershock-panel,
body[data-story-tracking="disabled"] .story-shell--story > .community-panel,
body[data-story-tracking="disabled"] .story-shell--story > .story-nav {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

body[data-browser-family="edge"]::before,
body[data-browser-family="edge"]::after {
  transform: none;
  transition: opacity 0.18s ease-out;
}

body[data-browser-family="edge"] .dock-audio-panel,
body[data-browser-family="edge"] .reader-hud,
body[data-browser-family="edge"] .cue-map,
body[data-browser-family="edge"] .reading-radar,
body[data-browser-family="edge"] .story-overture-screen,
body[data-browser-family="edge"] .event-stage-caption,
body[data-browser-family="edge"] .community-echo-hub {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-browser-family="edge"] .cue-node,
body[data-browser-family="edge"] .reading-radar-anchor,
body[data-browser-family="edge"] .reading-radar-jump,
body[data-browser-family="edge"] .reading-radar-stop,
body[data-browser-family="edge"] .reading-radar-thumb,
body[data-browser-family="edge"] .phase-chip,
body[data-browser-family="edge"] .story-overture-phase,
body[data-browser-family="edge"] .story-overture-cue {
  transition: none;
}

body[data-browser-family="edge"] .cue-node:hover,
body[data-browser-family="edge"] .cue-node:focus-visible,
body[data-browser-family="edge"] .reading-radar-anchor:hover,
body[data-browser-family="edge"] .reading-radar-anchor:focus-visible,
body[data-browser-family="edge"] .reading-radar-jump:hover,
body[data-browser-family="edge"] .reading-radar-jump:focus-visible,
body[data-browser-family="edge"] .reading-radar-stop.is-live,
body[data-browser-family="edge"] .reading-radar-stop:hover,
body[data-browser-family="edge"] .reading-radar-stop:focus-visible,
body[data-browser-family="edge"] .reading-radar-thumb:hover,
body[data-browser-family="edge"] .reading-radar-thumb:focus-visible,
body[data-browser-family="edge"] .phase-chip.is-active {
  transform: none;
}

body[data-browser-family="edge"] .cue-node.is-live,
body[data-browser-family="edge"] .phase-chip.is-active,
body[data-browser-family="edge"] .reading-radar-progress span,
body[data-browser-family="edge"] .reading-radar-thumb,
body[data-browser-family="edge"] .reading-radar-stop.is-live,
body[data-browser-family="edge"] .reader-hud,
body[data-browser-family="edge"] .story-overture-screen {
  box-shadow: none;
}

body[data-browser-family="edge"] .cue-map::before,
body[data-browser-family="edge"] .reading-radar::before,
body[data-browser-family="edge"] .reader-hud::before,
body[data-browser-family="edge"] .reader-hud::after,
body[data-browser-family="edge"] .story-overture-beam,
body[data-browser-family="edge"] .story-overture-grid,
body[data-browser-family="edge"] .story-overture-noise,
body[data-browser-family="edge"] .event-stage-beam,
body[data-browser-family="edge"] .event-stage-rings,
body[data-browser-family="edge"] .event-stage-noise {
  display: none;
}

body[data-browser-family="edge"] .story-overture-signal span,
body[data-browser-family="edge"] .cue-node.is-live,
body[data-browser-family="edge"] .reading-radar-thumb {
  animation: none;
}

body[data-browser-family="edge"] .reader-hud {
  position: static;
  top: auto;
}

body[data-platform-family="windows"][data-browser-family="edge"] .scene-canvas,
body[data-platform-family="windows"][data-browser-family="edge"] .reading-spotlight,
body[data-platform-family="windows"][data-browser-family="edge"] .phase-overlay,
body[data-platform-family="windows"][data-browser-family="edge"] .event-stage,
body[data-platform-family="windows"][data-browser-family="edge"] .story-overture-signal {
  display: none;
}

body[data-platform-family="windows"][data-browser-family="edge"] .story-shell--story > .aftershock-panel,
body[data-platform-family="windows"][data-browser-family="edge"] .story-shell--story > .community-panel,
body[data-platform-family="windows"][data-browser-family="edge"] .story-shell--story > .story-nav,
body[data-platform-family="windows"][data-browser-family="edge"] .cue-map,
body[data-platform-family="windows"][data-browser-family="edge"] .reading-radar {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

@keyframes spectrumLift {
  0%, 100% {
    transform: scaleY(0.88);
  }
  50% {
    transform: scaleY(1.1);
  }
}
