:root {
  --ink: #f5eee3;
  --muted: #b7aa9a;
  --dim: #73695f;
  --ground: #080706;
  --panel: rgba(13, 12, 10, 0.76);
  --panel-soft: rgba(245, 238, 227, 0.08);
  --line: rgba(245, 238, 227, 0.2);
  --accent: #e55f3f;
  --accent-2: #7bd5c4;
  --label-tone: #7bd5c4;
  --shadow: rgba(0, 0, 0, 0.62);
  --motion-canvas-opacity: 0.62;
  --opening-drift-duration: 42s;
  --opening-image-opacity: 0.88;
  --idle-track-background-opacity: 0.7;
  --visualizer-shell-glow: 24%;
  --wave-glow-soft: 34%;
  --wave-glow-hard: 16%;
  --wave-glow-soft-playing: 52%;
  --wave-glow-hard-playing: 26%;
  --volumetric-opacity: 0.18;
  --volumetric-blur: 42px;
  --volumetric-duration: 1.54s;
  --volumetric-origin-x: 18%;
  --volumetric-origin-y: 44%;
  --volumetric-start-x: -26%;
  --volumetric-end-x: 22%;
  --volumetric-tilt: -6deg;
  --volumetric-tilt-end: 3deg;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--ground);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  overflow: hidden;
}

body.story-active {
  overflow: hidden;
}

body.is-idle {
  cursor: default;
}

body.is-idle.idle-cursor-hidden,
body.is-idle.idle-cursor-hidden * {
  cursor: none !important;
}

button,
input,
a {
  font: inherit;
}

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

button {
  border: 0;
}

.gallery-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.gallery-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 24%, rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.54) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08));
  opacity: 0;
}

body.room-beat-dim .gallery-shell::after {
  animation: galleryBeatDim 520ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes galleryBeatDim {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 0.24;
  }
  100% {
    opacity: 0;
  }
}

.image-field,
.backdrop-image,
.room-image,
#motionCanvas,
.volumetric-sweep,
.gallery-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.image-field {
  z-index: -5;
  background: #070606;
  overflow: hidden;
}

.backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  filter: saturate(0.9) contrast(1.12) brightness(0.42);
  transition:
    opacity 950ms ease,
    transform 7200ms ease;
}

.backdrop-image.is-visible {
  opacity: 0.54;
  transform: scale(1.02);
}

.room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(1.35);
  transform: scale(1.02);
  transition:
    opacity 900ms ease,
    filter 900ms ease,
    transform 1800ms cubic-bezier(0.19, 1, 0.22, 1);
}

.image-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.9), rgba(8, 7, 6, 0.28) 42%, rgba(8, 7, 6, 0.82)),
    linear-gradient(180deg, rgba(8, 7, 6, 0.48), rgba(8, 7, 6, 0.94));
}

#motionCanvas {
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: var(--motion-canvas-opacity, 0.62);
}

.volumetric-sweep {
  z-index: -1;
  inset: -10% -8%;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(var(--volumetric-blur, 42px));
  transform: translate3d(var(--volumetric-start-x, -26%), 0, 0) rotate(var(--volumetric-tilt, -6deg)) scale(1.12);
}

.volumetric-sweep::before,
.volumetric-sweep::after {
  content: "";
  position: absolute;
  inset: 0;
}

.volumetric-sweep::before {
  background:
    radial-gradient(ellipse at var(--volumetric-origin-x, 18%) var(--volumetric-origin-y, 44%), color-mix(in srgb, var(--accent) 18%, transparent), transparent 38%),
    linear-gradient(100deg, transparent 0 32%, color-mix(in srgb, var(--accent) 16%, transparent) 44%, rgba(245, 238, 227, 0.18) 52%, color-mix(in srgb, var(--accent-2) 16%, transparent) 60%, transparent 74%);
  opacity: 0.92;
}

.volumetric-sweep::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 238, 227, 0.1), transparent 52%),
    linear-gradient(180deg, rgba(245, 238, 227, 0.06), transparent 42%, rgba(245, 238, 227, 0.04));
  opacity: 0.58;
}

body.volumetric-sweeping .volumetric-sweep {
  animation: volumetricSweep var(--volumetric-duration, 1.54s) cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes volumetricSweep {
  0% {
    opacity: 0;
    transform: translate3d(var(--volumetric-start-x, -26%), 0, 0) rotate(var(--volumetric-tilt, -6deg)) scale(1.08);
  }
  18% {
    opacity: var(--volumetric-opacity, 0.18);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--volumetric-end-x, 22%), -1%, 0) rotate(var(--volumetric-tilt-end, 3deg)) scale(1.18);
  }
}

.gallery-grain {
  z-index: -2;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: overlay;
}

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

.site-header {
  position: relative;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 14px 34px;
  color: var(--ink);
  background: rgba(8, 7, 6, 0.82);
  border-bottom: 1px solid rgba(245, 238, 227, 0.14);
  backdrop-filter: blur(18px);
}

.site-header,
.listening-room,
.story-topbar,
.story-stage,
.idle-lyric-cinema {
  transition:
    opacity 900ms ease,
    filter 900ms ease,
    transform 900ms ease;
}

body.is-idle .site-header,
body.is-idle .listening-room,
body.is-idle.story-active .story-topbar,
body.is-idle.story-active .story-stage {
  opacity: 0;
  filter: blur(2px);
  pointer-events: none;
}

body.is-idle .backdrop-image.is-visible {
  opacity: 0;
  filter: saturate(1) contrast(1.08) brightness(0.52);
}

body.is-idle .backdrop-image {
  transition:
    opacity 180ms ease,
    transform 7200ms ease;
}

body.is-idle .room-image {
  opacity: 0;
  transition:
    opacity 460ms ease,
    filter 620ms ease,
    transform 1400ms cubic-bezier(0.19, 1, 0.22, 1);
}

body.is-idle .room-image.is-idle-track-background {
  opacity: var(--idle-track-background-opacity, 0.7);
  mix-blend-mode: normal;
  filter: saturate(1.02) contrast(1.06) brightness(0.82);
  transform: scale(1.01);
}

body.is-idle .image-field::after {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.72), rgba(8, 7, 6, 0.18) 44%, rgba(8, 7, 6, 0.72)),
    linear-gradient(180deg, rgba(8, 7, 6, 0.32), rgba(8, 7, 6, 0.76));
}

body.is-idle #motionCanvas {
  opacity: calc(var(--motion-canvas-opacity, 0.62) + 0.18);
}

body.is-idle .volumetric-sweep {
  filter: blur(calc(var(--volumetric-blur, 42px) * 1.05));
}

.idle-lyric-cinema {
  --idle-cinema-left: clamp(34px, 7vw, 118px);
  --idle-cinema-bottom: 8vh;
  --idle-meta-offset: clamp(72px, 7vh, 88px);
  --idle-lyric-offset: clamp(128px, 16vh, 176px);
  position: fixed;
  inset: 0;
  z-index: 6;
  display: block;
  padding: 0;
  box-sizing: border-box;
  color: var(--ink);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transform: translateY(28px);
}

.idle-lyric-cinema::before {
  content: none;
}

.idle-lyric-cinema::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 0 34%, color-mix(in srgb, var(--idle-room-flash-accent, var(--accent)) 30%, transparent) 48%, rgba(245, 238, 227, 0.18) 50%, transparent 66%),
    radial-gradient(circle at 50% 54%, color-mix(in srgb, var(--idle-room-flash-accent-2, var(--accent-2)) 18%, transparent), transparent var(--idle-room-flash-spread, 34%));
  mix-blend-mode: screen;
  transform: translateX(var(--idle-room-flash-start, -112%));
}

body.idle-room-flashing .idle-lyric-cinema::after {
  animation: idleRoomFlash 680ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.idle-room-title-flash {
  position: fixed;
  left: clamp(34px, 7vw, 118px);
  bottom: calc(8vh + clamp(210px, 24vh, 286px));
  max-width: min(560px, calc(100vw - 68px));
  color: rgba(245, 238, 227, 0.92);
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow:
    0 18px 56px rgba(0, 0, 0, 0.68),
    0 0 var(--idle-room-title-glow, 28px) color-mix(in srgb, var(--idle-room-flash-accent, var(--accent)) 46%, transparent);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  pointer-events: none;
}

body.idle-title-flashing .idle-room-title-flash {
  animation: idleRoomTitleFlash 1080ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.idle-lyric-meta {
  position: absolute;
  left: var(--idle-cinema-left);
  bottom: calc(var(--idle-cinema-bottom) + var(--idle-meta-offset));
  width: min(280px, 38vw);
  padding-top: 17px;
  border-top: 1px solid rgba(229, 95, 63, 0.82);
  box-shadow: 0 -1px 26px color-mix(in srgb, var(--accent) 24%, transparent);
  pointer-events: none;
}

.idle-lyric-cinema p {
  margin: 0;
  color: color-mix(in srgb, var(--accent-2) 72%, var(--ink));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.idle-lyric-cinema h2 {
  position: absolute;
  left: var(--idle-cinema-left);
  bottom: calc(var(--idle-cinema-bottom) + var(--idle-lyric-offset));
  max-width: 13ch;
  margin: 0;
  color: rgba(245, 238, 227, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.6rem;
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-shadow:
    0 1px 0 rgba(245, 238, 227, 0.08),
    0 34px 90px rgba(0, 0, 0, 0.68),
    0 0 34px color-mix(in srgb, var(--accent) 16%, transparent);
  opacity: var(--lyric-active-opacity, 1);
  filter: blur(var(--lyric-active-blur, 0px));
  transform: translateY(var(--lyric-active-lift, 0px));
  transition:
    opacity 220ms linear,
    filter 220ms linear,
    transform 220ms linear;
}

.idle-lyric-cinema.is-changing h2 {
  animation: cinematicLyricReveal 980ms cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

.idle-lyric-cinema.is-lyric-blank h2 {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(10px);
}

body.is-idle .idle-lyric-cinema {
  opacity: 1;
  filter: blur(0);
  pointer-events: none;
  transform: translateY(0);
}

body.story-active .idle-lyric-cinema {
  opacity: 0;
  pointer-events: none;
}

@keyframes cinematicLyricReveal {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(22px);
  }
  58% {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.idle-control-row {
  position: absolute;
  left: var(--idle-cinema-left);
  bottom: var(--idle-cinema-bottom);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  opacity: 0;
  filter: blur(9px);
  pointer-events: none;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 680ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 680ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 760ms cubic-bezier(0.19, 1, 0.22, 1);
}

.idle-control-row::before {
  content: "";
  position: absolute;
  inset: -18px -28px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 58%),
    linear-gradient(90deg, transparent, rgba(245, 238, 227, 0.1), transparent);
  opacity: 0;
  transform: translateY(10px) scaleX(0.72);
}

.idle-cinema-button,
.story-cinema-button,
.story-close-button {
  min-height: 44px;
  padding: 0 18px;
  color: #120f0c;
  background: rgba(245, 238, 227, 0.92);
  border: 1px solid rgba(245, 238, 227, 0.7);
  border-radius: 6px;
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(8, 7, 6, 0.08) inset;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 260ms ease,
    filter 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.idle-next-button {
  min-width: 116px;
}

.idle-room-nav-button,
.story-room-nav-button {
  min-width: 132px;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--label-tone, var(--accent-2)) 20%, transparent), rgba(245, 238, 227, 0.055)),
    rgba(8, 7, 6, 0.5);
  border-color: color-mix(in srgb, var(--label-tone, var(--accent-2)) 44%, rgba(245, 238, 227, 0.24));
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.32),
    0 0 22px color-mix(in srgb, var(--label-tone, var(--accent-2)) 16%, transparent);
}

.idle-pause-button,
.story-pause-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 82px;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), rgba(245, 238, 227, 0.06)),
    rgba(8, 7, 6, 0.48);
  border-color: color-mix(in srgb, var(--accent) 54%, rgba(245, 238, 227, 0.26));
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.32),
    0 0 24px color-mix(in srgb, var(--accent) 20%, transparent);
}

.idle-eq,
.story-eq {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  width: 17px;
  height: 14px;
}

.idle-eq i,
.story-eq i {
  width: 3px;
  height: 44%;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 56%, transparent);
  transform-origin: bottom;
  animation: idleEqPulse 780ms ease-in-out infinite;
}

.idle-eq i:nth-child(2),
.story-eq i:nth-child(2) {
  animation-delay: -260ms;
}

.idle-eq i:nth-child(3),
.story-eq i:nth-child(3) {
  animation-delay: -520ms;
}

.idle-pause-button.is-paused,
.story-pause-button.is-paused {
  color: #120f0c;
  background: color-mix(in srgb, var(--accent) 62%, var(--ink));
}

.idle-pause-button.is-paused .idle-eq i,
.story-pause-button.is-paused .story-eq i {
  animation: none;
  height: 34%;
  opacity: 0.68;
}

@keyframes idleEqPulse {
  0%,
  100% {
    height: 34%;
    opacity: 0.62;
  }
  48% {
    height: 100%;
    opacity: 1;
  }
}

body.idle-controls-visible .idle-control-row {
  opacity: 0.62;
  filter: blur(0);
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.idle-controls-visible.idle-controls-bright .idle-control-row {
  opacity: 1;
}

body.idle-controls-visible.idle-controls-bright .idle-control-row::before {
  animation: idleControlsProjectIn 980ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.idle-shortcut-hint {
  max-width: min(520px, calc(100vw - 68px));
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--ink) 64%, transparent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  transition:
    opacity 680ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 680ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 760ms cubic-bezier(0.19, 1, 0.22, 1);
}

body.idle-controls-visible .idle-shortcut-hint {
  opacity: 0.7;
  filter: blur(0);
  transform: translateY(0);
}

@keyframes idleControlsProjectIn {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(16px) scaleX(0.64);
  }
  38% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    filter: blur(0);
    transform: translateY(0) scaleX(1);
  }
}

@keyframes idleRoomFlash {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: translateX(var(--idle-room-flash-start, -112%)) scaleX(0.72);
  }
  34% {
    opacity: var(--idle-room-flash-alpha, 0.52);
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translateX(var(--idle-room-flash-end, 112%)) scaleX(1.08);
  }
}

@keyframes idleRoomTitleFlash {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
  }
  18%,
  58% {
    opacity: 0.86;
    filter: blur(0);
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(-8px);
  }
}

.idle-cinema-button:hover,
.idle-cinema-button:focus-visible,
.story-cinema-button:hover,
.story-cinema-button:focus-visible,
.story-close-button:hover,
.story-close-button:focus-visible {
  outline: 0;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cinema-sweep {
  position: fixed;
  inset: 0;
  z-index: 24;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 34%, rgba(245, 238, 227, 0.08) 44%, color-mix(in srgb, var(--accent) 30%, transparent) 50%, rgba(3, 3, 2, 0.84) 64%, transparent 76%),
    linear-gradient(180deg, rgba(3, 3, 2, 0), rgba(3, 3, 2, 0.36));
  transform: translateX(-110%);
}

body.cinema-sweeping .cinema-sweep {
  animation: cinemaSweep 1160ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes cinemaSweep {
  0% {
    opacity: 0;
    transform: translateX(-110%);
  }
  16% {
    opacity: 0.78;
  }
  62% {
    opacity: 0.56;
  }
  100% {
    opacity: 0;
    transform: translateX(110%);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #130f0c;
  background: var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.header-statement {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 12px 14px;
  min-width: 0;
}

.header-statement span {
  color: var(--header-kicker, var(--accent-2));
  font-size: 0.68rem;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 18px color-mix(in srgb, var(--header-kicker, var(--accent-2)) 28%, transparent);
}

.header-statement strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

.header-utility {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-self: end;
}

.gallery-purchase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  color: #f2c96d;
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 201, 109, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(242, 201, 109, 0.14), rgba(245, 238, 227, 0.025)),
    rgba(8, 7, 6, 0.64);
  border: 1px solid rgba(242, 201, 109, 0.32);
  border-radius: 999px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(242, 201, 109, 0.16),
    inset 0 1px rgba(245, 238, 227, 0.1);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.gallery-purchase-link:hover,
.gallery-purchase-link:focus-visible {
  color: #ffe4a3;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 228, 163, 0.32), transparent 36%),
    linear-gradient(135deg, rgba(242, 201, 109, 0.2), rgba(245, 238, 227, 0.04)),
    rgba(8, 7, 6, 0.7);
  border-color: rgba(255, 228, 163, 0.56);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.36),
    0 0 30px rgba(242, 201, 109, 0.26),
    inset 0 1px rgba(245, 238, 227, 0.16);
  outline: 0;
  transform: translateY(-2px);
}

.gallery-synthetic-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  color: color-mix(in srgb, #e4b872 82%, var(--ink));
  background:
    radial-gradient(circle at 18% 18%, rgba(228, 184, 114, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(155, 215, 202, 0.11), rgba(245, 238, 227, 0.025)),
    rgba(8, 7, 6, 0.52);
  border: 1px solid rgba(228, 184, 114, 0.22);
  border-radius: 999px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.26),
    0 0 20px rgba(228, 184, 114, 0.09),
    inset 0 1px rgba(245, 238, 227, 0.08);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.gallery-synthetic-link:hover,
.gallery-synthetic-link:focus-visible {
  color: #ffe4a3;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 228, 163, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(155, 215, 202, 0.15), rgba(245, 238, 227, 0.04)),
    rgba(8, 7, 6, 0.66);
  border-color: rgba(228, 184, 114, 0.5);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(228, 184, 114, 0.18),
    inset 0 1px rgba(245, 238, 227, 0.14);
  outline: 0;
  transform: translateY(-2px);
}

.synthetic-artist-icon {
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
  color: inherit;
  background: currentColor;
  filter: drop-shadow(0 0 8px rgba(228, 184, 114, 0.38));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v3'/%3E%3Cpath d='M12 19v3'/%3E%3Cpath d='M4.93 4.93l2.12 2.12'/%3E%3Cpath d='M16.95 16.95l2.12 2.12'/%3E%3Cpath d='M2 12h3'/%3E%3Cpath d='M19 12h3'/%3E%3Cpath d='M4.93 19.07l2.12-2.12'/%3E%3Cpath d='M16.95 7.05l2.12-2.12'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M9 21c.5-2.2 1.5-3.3 3-3.3s2.5 1.1 3 3.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v3'/%3E%3Cpath d='M12 19v3'/%3E%3Cpath d='M4.93 4.93l2.12 2.12'/%3E%3Cpath d='M16.95 16.95l2.12 2.12'/%3E%3Cpath d='M2 12h3'/%3E%3Cpath d='M19 12h3'/%3E%3Cpath d='M4.93 19.07l2.12-2.12'/%3E%3Cpath d='M16.95 7.05l2.12-2.12'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M9 21c.5-2.2 1.5-3.3 3-3.3s2.5 1.1 3 3.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.purchase-cart-icon {
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
  color: inherit;
  background: currentColor;
  filter: drop-shadow(0 0 8px rgba(242, 201, 109, 0.46));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.view-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  overflow: hidden;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.06), rgba(245, 238, 227, 0.02)),
    rgba(8, 7, 6, 0.4);
  border: 1px solid rgba(245, 238, 227, 0.12);
  border-radius: 999px;
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.view-indicator::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 10%, color-mix(in srgb, var(--accent) 18%, transparent) 34%, rgba(245, 238, 227, 0.24) 50%, color-mix(in srgb, var(--accent-2) 14%, transparent) 66%, transparent 90%);
  transform: translateX(-54%) scaleX(0.72);
}

.view-link,
.view-indicator span {
  position: relative;
  z-index: 1;
  transition:
    color 220ms ease,
    text-shadow 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.view-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}

.view-link:hover,
.view-link:focus-visible {
  color: var(--ink);
  outline: 0;
  transform: translateY(-0.5px);
}

.view-divider {
  opacity: 0.36;
}

.view-indicator[data-view="opening"] .view-main,
.view-indicator[data-view="rooms"] .view-rooms-label,
.view-link[aria-pressed="true"] {
  color: var(--ink);
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 24%, transparent);
}

.view-indicator[data-view="opening"] .view-rooms-label,
.view-indicator[data-view="rooms"] .view-main,
.view-link[aria-pressed="false"] {
  opacity: 0.46;
}

body.view-dissolving .view-indicator {
  animation: viewIndicatorBreathe 820ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

body.view-dissolving .view-indicator::after {
  animation: viewIndicatorSweep 820ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

body.view-dissolving .view-indicator[data-view="opening"] .view-main,
body.view-dissolving .view-indicator[data-view="rooms"] .view-rooms-label {
  animation: viewIndicatorLand 760ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes viewIndicatorBreathe {
  0% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-1px) scale(1.015);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes viewIndicatorSweep {
  0% {
    opacity: 0;
    transform: translateX(-58%) scaleX(0.68);
  }
  26% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translateX(58%) scaleX(0.86);
  }
}

@keyframes viewIndicatorLand {
  0% {
    opacity: 0.54;
    transform: translateY(4px) scale(0.98);
  }
  58% {
    opacity: 1;
    transform: translateY(0) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.info-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.06), rgba(245, 238, 227, 0.02)),
    rgba(8, 7, 6, 0.46);
  border: 1px solid rgba(245, 238, 227, 0.12);
  border-radius: 999px;
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    border-color 220ms ease;
}

.info-toggle:hover,
.info-toggle:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: color-mix(in srgb, var(--accent) 44%, rgba(245, 238, 227, 0.18));
}

.settings-panel {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  justify-items: end;
  padding: 88px 20px 20px;
  background: rgba(8, 7, 6, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.settings-panel-inner {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100svh - 112px);
  padding: 18px;
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.08), transparent 48%),
    rgba(8, 7, 6, 0.88);
  border: 1px solid rgba(245, 238, 227, 0.14);
  border-radius: 8px;
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(245, 238, 227, 0.07);
  backdrop-filter: blur(18px);
  transform: translateX(20px) scale(0.985);
  opacity: 0;
  transition:
    transform 260ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 220ms ease;
}

body.settings-open .settings-panel {
  opacity: 1;
  pointer-events: auto;
}

body.settings-open .settings-panel-inner {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.settings-panel-head,
.settings-actions,
.settings-control {
  display: grid;
  gap: 10px;
}

.settings-panel-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 238, 227, 0.08);
}

.settings-guide {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 15px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.08), transparent 52%),
    rgba(245, 238, 227, 0.03);
  border: 1px solid rgba(245, 238, 227, 0.1);
  border-radius: 6px;
}

.settings-guide-title {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 84%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.settings-guide-copy {
  margin: 0;
  color: color-mix(in srgb, var(--muted) 90%, transparent);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.settings-kicker {
  margin: 0 0 5px;
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.settings-panel-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
}

.settings-close,
.settings-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(245, 238, 227, 0.04)),
    rgba(8, 7, 6, 0.5);
  border: 1px solid rgba(245, 238, 227, 0.14);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    border-color 220ms ease;
}

.settings-close:hover,
.settings-close:focus-visible,
.settings-reset:hover,
.settings-reset:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: color-mix(in srgb, var(--accent) 40%, rgba(245, 238, 227, 0.2));
}

.settings-control-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.settings-control {
  padding: 13px 14px 14px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.06), transparent 48%),
    rgba(245, 238, 227, 0.02);
  border: 1px solid rgba(245, 238, 227, 0.1);
  border-radius: 6px;
}

.settings-control span,
.settings-control strong {
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.settings-control span {
  color: color-mix(in srgb, var(--ink) 84%, transparent);
}

.settings-control strong {
  justify-self: end;
  margin-top: -18px;
  color: var(--accent-2);
}

.settings-control input {
  width: 100%;
  margin-top: 4px;
}

.settings-actions {
  margin-top: 14px;
  justify-content: end;
}

.settings-group {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 238, 227, 0.08);
}

.settings-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.settings-group-title {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.settings-visualizer-copy {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.06), transparent 48%),
    rgba(245, 238, 227, 0.02);
  border: 1px solid rgba(245, 238, 227, 0.1);
  border-radius: 6px;
}

.settings-visualizer-copy span {
  color: color-mix(in srgb, var(--ink) 84%, transparent);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.settings-visualizer-copy strong {
  color: var(--accent-2);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.16;
}

.settings-visualizer-copy small {
  color: color-mix(in srgb, var(--muted) 90%, transparent);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.18;
}

.settings-visualizer-caption {
  display: inline-flex;
  width: fit-content;
  padding: 2px 0 0;
  color: color-mix(in srgb, var(--accent-2) 70%, var(--muted));
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.settings-visualizer-mode-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 8px;
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 10%, transparent)),
    rgba(8, 7, 6, 0.36);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, rgba(245, 238, 227, 0.12));
  border-radius: 999px;
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.settings-visualizer-mode-note::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 72%, white);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent);
}

.settings-visualizer-copy strong,
.settings-visualizer-copy small {
  transition:
    color 260ms ease,
    text-shadow 260ms ease,
    opacity 260ms ease,
    transform 260ms ease;
}

.settings-visualizer-copy.is-auto-shifted strong {
  animation: settingsVisualizerShift 880ms cubic-bezier(0.19, 1, 0.22, 1);
}

.settings-visualizer-copy.is-auto-shifted small {
  color: color-mix(in srgb, var(--accent-2) 62%, var(--muted));
}

.settings-visualizer-copy.is-auto-shifted .settings-visualizer-caption {
  color: color-mix(in srgb, var(--accent) 72%, var(--accent-2));
}

.settings-visualizer-preview {
  position: relative;
  overflow: hidden;
  height: 68px;
  margin-top: 10px;
  border: 1px solid rgba(245, 238, 227, 0.1);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.05), transparent 48%),
    rgba(8, 7, 6, 0.54);
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.06),
    0 16px 28px rgba(0, 0, 0, 0.16);
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease,
    background 260ms ease;
  cursor: ew-resize;
}

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

.settings-visualizer-preview::before {
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 54%),
    linear-gradient(90deg, transparent 0 16%, rgba(245, 238, 227, 0.06) 50%, transparent 84%);
  opacity: 0.66;
}

.settings-visualizer-preview::after {
  background:
    linear-gradient(180deg, rgba(245, 238, 227, 0.06), transparent 22%, transparent 78%, rgba(245, 238, 227, 0.04)),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(245, 238, 227, 0.03) 10px, transparent 13px);
  mix-blend-mode: screen;
  opacity: 0.44;
}

.settings-visualizer-preview[data-preference="auto"] {
  border-color: color-mix(in srgb, var(--accent) 28%, rgba(245, 238, 227, 0.12));
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.06),
    0 16px 30px rgba(0, 0, 0, 0.16),
    0 0 18px color-mix(in srgb, var(--accent) 8%, transparent);
}

.settings-visualizer-preview:hover,
.settings-visualizer-preview:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 36%, rgba(245, 238, 227, 0.14));
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.18),
    0 0 22px color-mix(in srgb, var(--accent) 10%, transparent);
}

.settings-visualizer-preview.is-auto-shifted {
  animation: settingsVisualizerPreviewShift 920ms cubic-bezier(0.19, 1, 0.22, 1);
}

.settings-visualizer-preview.is-style-transition {
  animation: settingsVisualizerStyleSwap 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.settings-visualizer-preview-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition:
    opacity 280ms ease,
    filter 280ms ease,
    transform 280ms ease;
}

.settings-visualizer-preview.is-style-transition .settings-visualizer-preview-canvas {
  animation: settingsVisualizerCanvasSwap 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.settings-visualizer-preview-stamp {
  position: absolute;
  left: 50%;
  top: 20%;
  z-index: 2;
  min-height: 22px;
  padding: 0 8px;
  color: color-mix(in srgb, white 88%, var(--ink));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), color-mix(in srgb, var(--accent-2) 10%, transparent)),
    rgba(8, 7, 6, 0.72);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, rgba(245, 238, 227, 0.16));
  border-radius: 999px;
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.18),
    0 0 18px color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.settings-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-visualizer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-visualizer {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 8px;
  min-height: 76px;
  padding: 12px;
  text-align: left;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.settings-visualizer-label {
  color: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.settings-visualizer.is-signature {
  border-color: color-mix(in srgb, var(--accent) 30%, rgba(245, 238, 227, 0.12));
}

.settings-visualizer-note {
  color: color-mix(in srgb, var(--muted) 92%, transparent);
  opacity: 0.6;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
  text-wrap: balance;
}

.settings-visualizer:hover .settings-visualizer-note,
.settings-visualizer:focus-visible .settings-visualizer-note {
  opacity: 0.9;
}

.settings-visualizer.is-active .settings-visualizer-note {
  color: color-mix(in srgb, var(--ink) 74%, var(--accent-2));
  opacity: 0.9;
}

.settings-visualizer-thumb {
  position: relative;
  width: 100%;
  height: 44px;
  overflow: hidden;
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.08), rgba(245, 238, 227, 0.02)),
    rgba(8, 7, 6, 0.62);
  border: 1px solid rgba(245, 238, 227, 0.08);
  transform: translateY(0) scale(1);
  transition:
    transform 260ms cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 260ms ease,
    border-color 260ms ease,
    filter 260ms ease;
}

.settings-visualizer-thumb::before,
.settings-visualizer-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  transition:
    transform 360ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 260ms ease,
    filter 260ms ease;
}

.settings-visualizer:hover .settings-visualizer-thumb,
.settings-visualizer:focus-visible .settings-visualizer-thumb {
  transform: translateY(-1px) scale(1.02);
  border-color: color-mix(in srgb, var(--accent) 44%, rgba(245, 238, 227, 0.18));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    0 0 18px color-mix(in srgb, var(--accent) 12%, transparent);
  filter: brightness(1.05);
}

.settings-visualizer:hover .settings-visualizer-thumb::before,
.settings-visualizer:focus-visible .settings-visualizer-thumb::before {
  transform: translateX(1.4%) scale(1.02);
}

.settings-visualizer:hover .settings-visualizer-thumb::after,
.settings-visualizer:focus-visible .settings-visualizer-thumb::after {
  transform: translateX(-1.8%) scale(1.03);
}

.settings-visualizer-thumb-auto::before {
  inset: 10px 8px;
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.86), transparent 26%),
    linear-gradient(90deg, #5bd8ff 0 20%, #f5eee3 20% 36%, #ff5d89 36% 58%, #ffcf68 58% 78%, #8fe86a 78% 100%);
  clip-path: polygon(0 56%, 12% 50%, 24% 24%, 36% 44%, 48% 70%, 60% 34%, 72% 54%, 84% 28%, 100% 48%, 100% 62%, 84% 42%, 72% 68%, 60% 46%, 48% 78%, 36% 52%, 24% 34%, 12% 58%, 0 64%);
  filter: blur(0.2px);
}

.settings-visualizer-thumb-auto::after {
  inset: auto 8px 13px;
  height: 1px;
  background: linear-gradient(90deg, rgba(91, 216, 255, 0.1), rgba(245, 238, 227, 0.7), rgba(255, 93, 137, 0.16));
}

.settings-visualizer-thumb-neon::before,
.settings-visualizer-thumb-ribbon::before,
.settings-visualizer-thumb-signal::before,
.settings-visualizer-thumb-aurora::before,
.settings-visualizer-thumb-mirage::before,
.settings-visualizer-thumb-halo::before {
  inset: auto 8px 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 238, 227, 0.88), transparent);
  transform: translateY(-50%);
}

.settings-visualizer-thumb-neon::after {
  inset: 9px 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92), transparent 18%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  clip-path: polygon(0 52%, 12% 48%, 24% 24%, 36% 10%, 50% 4%, 64% 12%, 76% 26%, 88% 48%, 100% 52%, 100% 60%, 88% 56%, 76% 36%, 64% 18%, 50% 10%, 36% 18%, 24% 34%, 12% 54%, 0 60%);
  box-shadow:
    0 0 10px rgba(122, 213, 196, 0.34),
    0 0 18px rgba(229, 95, 63, 0.22);
}

.settings-visualizer-thumb-prism::after {
  inset: 7px 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, white) 0 22%, var(--ink) 22% 42%, color-mix(in srgb, var(--accent-2) 68%, var(--accent)) 42% 68%, color-mix(in srgb, var(--accent) 48%, var(--ink)) 68% 100%);
  clip-path: polygon(0 100%, 0 86%, 10% 62%, 20% 34%, 30% 52%, 40% 16%, 50% 6%, 60% 22%, 70% 48%, 80% 28%, 90% 64%, 100% 42%, 100% 100%);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--accent) 22%, transparent),
    0 0 18px color-mix(in srgb, var(--accent-2) 14%, transparent);
}

.settings-visualizer-thumb-grid::after {
  inset: 6px 8px;
  background:
    linear-gradient(rgba(245, 238, 227, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 238, 227, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #ff5a33 0 18%, #f1db52 18% 34%, #8be24b 34% 100%);
  background-size: 100% 8px, 10px 100%, 100% 100%;
  clip-path: polygon(0 100%, 0 58%, 12% 34%, 24% 48%, 36% 64%, 48% 30%, 60% 56%, 72% 72%, 84% 40%, 100% 62%, 100% 100%);
}

.settings-visualizer-thumb-ribbon::after {
  inset: 10px 7px;
  background:
    linear-gradient(90deg, rgba(123, 213, 196, 0.12), rgba(245, 238, 227, 0.8), rgba(123, 213, 196, 0.12));
  clip-path: polygon(0 52%, 10% 46%, 20% 60%, 30% 28%, 40% 68%, 50% 18%, 60% 56%, 70% 36%, 80% 64%, 90% 42%, 100% 54%, 100% 60%, 90% 48%, 80% 72%, 70% 42%, 60% 62%, 50% 28%, 40% 76%, 30% 38%, 20% 68%, 10% 50%, 0 58%);
  box-shadow: 0 0 16px rgba(123, 213, 196, 0.3);
}

.settings-visualizer-thumb-signal::after {
  inset: 8px 9px;
  background:
    radial-gradient(circle at 22% 54%, color-mix(in srgb, var(--accent) 74%, white) 0 4%, transparent 8%),
    radial-gradient(circle at 44% 38%, rgba(245, 238, 227, 0.84) 0 4%, transparent 8%),
    radial-gradient(circle at 62% 62%, color-mix(in srgb, var(--accent-2) 76%, white) 0 5%, transparent 10%),
    radial-gradient(circle at 78% 46%, color-mix(in srgb, var(--accent) 54%, var(--ink)) 0 3%, transparent 8%),
    radial-gradient(ellipse at 54% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--accent) 16%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--accent-2) 10%, transparent);
}

.settings-visualizer-thumb-aurora::after {
  inset: 7px 8px;
  background:
    radial-gradient(circle at 20% 50%, rgba(91, 216, 255, 0.18), transparent 26%),
    linear-gradient(90deg, rgba(91, 216, 255, 0.18), rgba(170, 139, 255, 0.36), rgba(255, 128, 177, 0.24), rgba(145, 232, 106, 0.18));
  clip-path: polygon(0 64%, 10% 54%, 20% 24%, 30% 48%, 40% 30%, 50% 12%, 60% 36%, 70% 26%, 80% 56%, 90% 38%, 100% 52%, 100% 66%, 90% 54%, 80% 70%, 70% 34%, 60% 48%, 50% 22%, 40% 42%, 30% 58%, 20% 34%, 10% 62%, 0 70%);
  filter: blur(0.25px);
}

.settings-visualizer-thumb-monolith::after {
  inset: 7px 8px;
  background:
    linear-gradient(180deg, rgba(245, 238, 227, 0.92), rgba(245, 238, 227, 0.12));
  clip-path: polygon(4% 100%, 4% 76%, 16% 76%, 16% 18%, 30% 18%, 30% 86%, 44% 86%, 44% 6%, 56% 6%, 56% 92%, 70% 92%, 70% 26%, 84% 26%, 84% 80%, 96% 80%, 96% 100%);
  box-shadow:
    0 0 12px rgba(245, 238, 227, 0.18),
    0 0 20px rgba(229, 95, 63, 0.14);
}

.settings-visualizer-thumb-mirage::after {
  inset: 11px 8px;
  background:
    linear-gradient(90deg, rgba(123, 213, 196, 0.12), rgba(245, 238, 227, 0.84), rgba(123, 213, 196, 0.12));
  clip-path: polygon(0 56%, 14% 50%, 28% 58%, 42% 46%, 56% 54%, 70% 48%, 84% 58%, 100% 52%, 100% 58%, 84% 64%, 70% 54%, 56% 60%, 42% 52%, 28% 64%, 14% 56%, 0 62%);
  box-shadow: 0 0 14px rgba(123, 213, 196, 0.22);
}

.settings-visualizer-thumb-halo::after {
  inset: 8px 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 238, 227, 0.92) 0 12%, rgba(91, 216, 255, 0.14) 30%, transparent 46%),
    linear-gradient(90deg, rgba(91, 216, 255, 0.18), rgba(245, 238, 227, 0.88), rgba(255, 128, 177, 0.18));
  clip-path: polygon(0 52%, 18% 52%, 30% 30%, 42% 14%, 50% 10%, 58% 14%, 70% 30%, 82% 52%, 100% 52%, 100% 58%, 82% 58%, 70% 70%, 58% 82%, 50% 86%, 42% 82%, 30% 70%, 18% 58%, 0 58%);
  box-shadow:
    0 0 16px rgba(91, 216, 255, 0.18),
    0 0 18px rgba(255, 128, 177, 0.18);
}

.settings-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.06), transparent 48%),
    rgba(245, 238, 227, 0.02);
  border: 1px solid rgba(245, 238, 227, 0.1);
  border-radius: 6px;
  cursor: pointer;
}

.settings-toggle-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.settings-toggle-copy span,
.settings-toggle-copy strong {
  min-width: 0;
}

.settings-toggle-copy span {
  color: color-mix(in srgb, var(--ink) 84%, transparent);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.settings-toggle-copy strong {
  color: color-mix(in srgb, var(--muted) 88%, transparent);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.28;
}

.settings-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 28px;
}

.settings-toggle-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.settings-toggle-knob {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.08), rgba(245, 238, 227, 0.03)),
    rgba(8, 7, 6, 0.6);
  border: 1px solid rgba(245, 238, 227, 0.13);
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.settings-toggle-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(245, 238, 227, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  transition: transform 220ms ease;
}

.settings-toggle-switch input:checked + .settings-toggle-knob {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent)),
    rgba(8, 7, 6, 0.64);
  border-color: color-mix(in srgb, var(--accent) 52%, rgba(245, 238, 227, 0.18));
  box-shadow:
    0 0 22px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 1px rgba(245, 238, 227, 0.08);
}

.settings-toggle-switch input:checked + .settings-toggle-knob::after {
  transform: translateX(20px);
}

.settings-preset,
.settings-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.06), transparent 48%),
    rgba(245, 238, 227, 0.025);
  border: 1px solid rgba(245, 238, 227, 0.11);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.settings-preset:hover,
.settings-preset:focus-visible,
.settings-action:hover,
.settings-action:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(245, 238, 227, 0.18));
}

.settings-preset.is-active {
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent)),
    rgba(8, 7, 6, 0.52);
  border-color: color-mix(in srgb, var(--accent) 54%, rgba(245, 238, 227, 0.18));
  box-shadow:
    0 0 26px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 1px rgba(245, 238, 227, 0.08);
}

.settings-image-actions {
  display: grid;
  gap: 10px;
}

.settings-image-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.06), transparent 48%),
    rgba(245, 238, 227, 0.02);
  border: 1px solid rgba(245, 238, 227, 0.1);
  border-radius: 6px;
  transition:
    transform 240ms cubic-bezier(0.19, 1, 0.22, 1),
    border-color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease;
}

.settings-image-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(245, 238, 227, 0.14);
  border-radius: 4px;
  transform: translateY(0) scale(1);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(245, 238, 227, 0.08);
  transition:
    transform 300ms cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 280ms ease,
    border-color 280ms ease,
    filter 280ms ease;
}

.settings-image-row:hover,
.settings-image-row:focus-within {
  border-color: color-mix(in srgb, var(--accent) 24%, rgba(245, 238, 227, 0.14));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, rgba(245, 238, 227, 0.06)), transparent 52%),
    rgba(245, 238, 227, 0.03);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.18),
    0 0 18px color-mix(in srgb, var(--accent) 8%, transparent);
}

.settings-image-row:hover .settings-image-thumb,
.settings-image-row:focus-within .settings-image-thumb {
  transform: translateY(-1px) scale(1.04);
  border-color: color-mix(in srgb, var(--accent) 44%, rgba(245, 238, 227, 0.2));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 20px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 1px rgba(245, 238, 227, 0.1);
  filter: brightness(1.05) saturate(1.04);
}

.settings-image-row:hover .settings-image-copy strong,
.settings-image-row:focus-within .settings-image-copy strong {
  color: color-mix(in srgb, var(--accent-2) 78%, white);
}

@keyframes settingsVisualizerShift {
  0% {
    color: var(--accent-2);
    text-shadow: none;
    transform: translateY(0);
  }

  42% {
    color: color-mix(in srgb, white 78%, var(--accent-2));
    text-shadow:
      0 0 14px color-mix(in srgb, var(--accent) 16%, transparent),
      0 0 18px color-mix(in srgb, var(--accent-2) 18%, transparent);
    transform: translateY(-0.5px);
  }

  100% {
    color: var(--accent-2);
    text-shadow: none;
    transform: translateY(0);
  }
}

@keyframes settingsVisualizerPreviewShift {
  0% {
    border-color: rgba(245, 238, 227, 0.1);
    box-shadow:
      inset 0 1px rgba(245, 238, 227, 0.06),
      0 16px 28px rgba(0, 0, 0, 0.16);
  }

  34% {
    border-color: color-mix(in srgb, var(--accent) 42%, rgba(245, 238, 227, 0.14));
    box-shadow:
      inset 0 1px rgba(245, 238, 227, 0.08),
      0 18px 34px rgba(0, 0, 0, 0.18),
      0 0 24px color-mix(in srgb, var(--accent) 12%, transparent);
  }

  100% {
    border-color: rgba(245, 238, 227, 0.1);
    box-shadow:
      inset 0 1px rgba(245, 238, 227, 0.06),
      0 16px 28px rgba(0, 0, 0, 0.16);
  }
}

@keyframes settingsVisualizerStyleSwap {
  0% {
    border-color: rgba(245, 238, 227, 0.1);
    box-shadow:
      inset 0 1px rgba(245, 238, 227, 0.06),
      0 16px 28px rgba(0, 0, 0, 0.16);
  }

  40% {
    border-color: color-mix(in srgb, var(--accent) 38%, rgba(245, 238, 227, 0.14));
    box-shadow:
      inset 0 1px rgba(245, 238, 227, 0.08),
      0 18px 34px rgba(0, 0, 0, 0.18),
      0 0 26px color-mix(in srgb, var(--accent) 12%, transparent);
  }

  100% {
    border-color: rgba(245, 238, 227, 0.1);
    box-shadow:
      inset 0 1px rgba(245, 238, 227, 0.06),
      0 16px 28px rgba(0, 0, 0, 0.16);
  }
}

@keyframes settingsVisualizerCanvasSwap {
  0% {
    opacity: 0.58;
    filter: blur(5px) saturate(0.9);
    transform: scale(1.018);
  }

  52% {
    opacity: 1;
    filter: blur(0) saturate(1.06);
    transform: scale(1);
  }

  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
}

@keyframes openingOpacityBadgeShift {
  0% {
    transform: translateY(0) scale(1);
    border-color: rgba(245, 238, 227, 0.12);
    box-shadow: inset 0 1px rgba(245, 238, 227, 0.05);
    filter: saturate(1);
  }

  34% {
    transform: translateY(-1px) scale(1.035);
    border-color: color-mix(in srgb, var(--accent) 40%, rgba(245, 238, 227, 0.18));
    box-shadow:
      inset 0 1px rgba(245, 238, 227, 0.08),
      0 0 18px color-mix(in srgb, var(--accent) 10%, transparent);
    filter: saturate(1.08);
  }

  100% {
    transform: translateY(0) scale(1);
    border-color: rgba(245, 238, 227, 0.12);
    box-shadow: inset 0 1px rgba(245, 238, 227, 0.05);
    filter: saturate(1);
  }
}

.settings-image-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.settings-image-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.settings-image-meta strong {
  flex: 1 1 auto;
  min-width: 0;
}

.settings-image-copy span,
.settings-image-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-image-copy > span:not(.settings-image-meta) {
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.settings-image-copy strong {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.22;
}

.settings-image-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(245, 238, 227, 0.12);
  border-radius: 999px;
  color: color-mix(in srgb, var(--ink) 84%, transparent);
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.06), transparent 48%),
    rgba(245, 238, 227, 0.03);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(245, 238, 227, 0.05);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    color 260ms ease;
}

.settings-image-badge[data-tone="dim"] {
  color: color-mix(in srgb, var(--accent-2) 88%, white);
  border-color: color-mix(in srgb, var(--accent) 34%, rgba(245, 238, 227, 0.16));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent-2) 10%, transparent)),
    rgba(8, 7, 6, 0.44);
}

.settings-image-badge[data-tone="clear"] {
  color: color-mix(in srgb, white 84%, var(--ink));
  border-color: rgba(245, 238, 227, 0.18);
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.1), rgba(245, 238, 227, 0.03)),
    rgba(8, 7, 6, 0.38);
}

.settings-image-badge.is-switching {
  animation: openingOpacityBadgeShift 900ms cubic-bezier(0.19, 1, 0.22, 1);
}

.listening-room {
  position: relative;
  z-index: 1;
  width: min(1540px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0 34px;
  overflow: hidden;
}

.listening-room::before {
  content: "";
  position: absolute;
  inset: 0 -34px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent, rgba(245, 238, 227, 0.11), color-mix(in srgb, var(--accent) 22%, transparent), transparent),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(245, 238, 227, 0.05) 10px, transparent 12px);
  mix-blend-mode: screen;
  transform: translateX(-36%) scaleX(0.56);
}

body.view-dissolving .listening-room::before {
  animation: pageDissolve 980ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.listening-room::after {
  content: "";
  position: absolute;
  inset: 0 -34px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 0 26%, color-mix(in srgb, var(--shortcut-cue-accent, var(--accent)) 22%, transparent) 42%, rgba(245, 238, 227, 0.15) 50%, color-mix(in srgb, var(--shortcut-cue-accent-2, var(--accent-2)) 16%, transparent) 58%, transparent 74%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--shortcut-cue-accent, var(--accent)) 16%, transparent), transparent 44%);
  mix-blend-mode: screen;
  transform: translateX(-24%) scaleX(0.74);
}

body.shortcut-dissolving .listening-room::after {
  animation: shortcutDissolveCue 620ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.opening-screen {
  position: absolute;
  inset: 0 -34px;
  z-index: 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-bottom: 0;
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  pointer-events: auto;
  transition:
    opacity 980ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 980ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 1180ms cubic-bezier(0.19, 1, 0.22, 1),
    visibility 0s linear 0s;
}

.opening-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03) brightness(0.88);
  opacity: var(--opening-image-opacity, 0.88);
  transform: scale(1.01);
  transition:
    opacity 980ms ease,
    transform 3200ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.opening-screen img.is-loading {
  opacity: 0;
  transform: scale(1.04);
}

.opening-screen img.is-loaded {
  opacity: var(--opening-image-opacity, 0.88);
  transform: scale(1);
}

.opening-screen img.is-drifting {
  animation: openingGalleryDrift var(--opening-drift-duration, 42s) ease-in-out infinite alternate;
}

.opening-screen:has(.opening-enter-hit:hover) img,
.opening-screen:has(.opening-enter-hit:focus-visible) img {
  filter: saturate(1.1) contrast(1.04) brightness(0.96);
}

@keyframes openingGalleryDrift {
  0% {
    transform: scale(var(--opening-drift-scale-start, 1.012)) translate3d(var(--opening-drift-x-start, -0.45%), var(--opening-drift-y-start, -0.3%), 0);
  }
  48% {
    transform: scale(var(--opening-drift-scale-mid, 1.026)) translate3d(var(--opening-drift-x-mid, 0.3%), var(--opening-drift-y-mid, -0.55%), 0);
  }
  100% {
    transform: scale(var(--opening-drift-scale-end, 1.018)) translate3d(var(--opening-drift-x-end, 0.55%), var(--opening-drift-y-end, 0.38%), 0);
  }
}

.opening-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.3), rgba(8, 7, 6, 0.04) 58%, rgba(8, 7, 6, 0.24)),
    linear-gradient(180deg, rgba(8, 7, 6, 0), rgba(8, 7, 6, 0.44));
}

.opening-enter-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.opening-enter-hit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 36%),
    linear-gradient(180deg, transparent, rgba(8, 7, 6, 0.18));
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.opening-enter-hit span {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  color: rgba(245, 238, 227, 0.94);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), rgba(245, 238, 227, 0.055)),
    rgba(8, 7, 6, 0.54);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, rgba(245, 238, 227, 0.22));
  border-radius: 6px;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.42),
    0 0 34px color-mix(in srgb, var(--accent) 18%, transparent),
    inset 0 1px rgba(245, 238, 227, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 520ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 520ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 620ms cubic-bezier(0.19, 1, 0.22, 1);
}

.opening-enter-hit:hover::before,
.opening-enter-hit:focus-visible::before {
  opacity: 1;
}

.opening-enter-hit:hover span,
.opening-enter-hit:focus-visible span {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.opening-enter-hit:focus-visible {
  outline: 0;
}

.roulette-cue {
  position: fixed;
  inset: 0;
  z-index: 26;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
}

.roulette-cue-card {
  display: grid;
  grid-template-columns: 50px minmax(0, auto);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 9px 14px 9px 9px;
  color: rgba(245, 238, 227, 0.96);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--roulette-accent, var(--accent)) 26%, transparent), color-mix(in srgb, var(--roulette-accent-2, var(--accent-2)) 16%, transparent)),
    rgba(8, 7, 6, 0.58);
  border: 1px solid color-mix(in srgb, var(--roulette-accent, var(--accent)) 42%, rgba(245, 238, 227, 0.22));
  border-radius: 999px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 36px color-mix(in srgb, var(--roulette-accent, var(--accent)) 18%, transparent),
    inset 0 1px rgba(245, 238, 227, 0.08);
  font-size: clamp(0.76rem, 1.2vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px) scale(0.96);
}

.roulette-cue-card img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(245, 238, 227, 0.08);
}

.roulette-cue-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.roulette-cue-copy span,
.roulette-cue-copy strong {
  display: block;
  min-width: 0;
}

.roulette-cue-copy span {
  color: color-mix(in srgb, var(--ink) 76%, transparent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.roulette-cue-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 0.96;
  white-space: nowrap;
}

body.room-roulette .roulette-cue {
  opacity: 1;
}

body.room-roulette .roulette-cue-card {
  animation: rouletteCuePulse 150ms ease both;
}

body.room-roulette-settling .roulette-cue-card {
  animation: rouletteCueSettle 240ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

body.view-rooms .opening-screen {
  visibility: hidden;
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.026);
  pointer-events: none;
  transition:
    opacity 980ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 980ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 1180ms cubic-bezier(0.19, 1, 0.22, 1),
    visibility 0s linear 980ms;
}

.stage {
  position: absolute;
  inset: 0 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  grid-template-areas:
    "artwork projection"
    "dock dock";
  gap: 26px 38px;
  align-items: start;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 2.6vh, 42px) 0 clamp(20px, 4vh, 54px);
  opacity: 0;
  visibility: hidden;
  filter: blur(14px);
  pointer-events: none;
  transform: translateY(22px) scale(0.986);
  transition:
    opacity 860ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 900ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 980ms cubic-bezier(0.19, 1, 0.22, 1),
    visibility 0s linear 900ms;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 44%, rgba(245, 238, 227, 0.18)) transparent;
}

body.view-rooms .stage {
  visibility: visible;
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 180ms, 180ms, 180ms, 0s;
}

body.view-opening .stage {
  visibility: hidden;
}

@keyframes pageDissolve {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: translateX(-42%) scaleX(0.42);
  }
  36% {
    opacity: 0.86;
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translateX(42%) scaleX(1.16);
  }
}

@keyframes shortcutDissolveCue {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateX(-18%) scaleX(0.68);
  }
  36% {
    opacity: calc(0.28 + var(--shortcut-cue-alpha, 0.42) * 0.52);
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translateX(18%) scaleX(1.08);
  }
}

@keyframes rouletteCuePulse {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(16px) scale(0.94);
  }
  100% {
    opacity: calc(0.7 + var(--roulette-alpha, 0.42) * 0.28);
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes rouletteCueSettle {
  0% {
    opacity: 0.88;
    filter: blur(0);
    transform: translateY(0) scale(1.02);
  }
  100% {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(-10px) scale(1.03);
  }
}

.artwork-stack {
  grid-area: artwork;
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
}

.billboard {
  position: relative;
  width: min(100%, var(--poster-target-width, clamp(390px, 31vw, 486px)));
  aspect-ratio: 1 / 1;
  justify-self: center;
  align-self: start;
  overflow: hidden;
  background: rgba(8, 7, 6, 0.54);
  border: 1px solid rgba(245, 238, 227, 0.16);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
}

.billboard.is-playing {
  animation: roomPulse 5.8s ease-in-out infinite;
}

.billboard.is-playing img {
  animation: artworkBreath 9s ease-in-out infinite;
}

.billboard::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 46%, rgba(8, 7, 6, 0.76)),
    linear-gradient(90deg, rgba(8, 7, 6, 0.16), transparent 38%);
}

.billboard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.98) contrast(1.02);
}

@keyframes roomPulse {
  0%,
  100% {
    border-color: rgba(245, 238, 227, 0.16);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
  }
  50% {
    border-color: color-mix(in srgb, var(--accent) 62%, rgba(245, 238, 227, 0.18));
    box-shadow:
      0 28px 84px rgba(0, 0, 0, 0.48),
      0 0 42px color-mix(in srgb, var(--accent) 24%, transparent);
  }
}

@keyframes artworkBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.012);
  }
}

.billboard-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 1;
}

.billboard-copy p,
.room-number,
.plaque-label {
  margin: 0;
  color: var(--label-tone, var(--artwork-label, var(--accent-2)));
  font-size: 0.76rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.billboard-copy p {
  font-weight: 900;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.82),
    0 0 18px color-mix(in srgb, var(--artwork-label, var(--accent-2)) 38%, transparent);
}

.room-number,
.plaque-label {
  color: var(--label-tone, var(--accent-2));
  text-shadow: 0 0 16px color-mix(in srgb, var(--label-tone, var(--accent-2)) 34%, transparent);
}

.billboard-copy h1 {
  max-width: 12ch;
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 4.9vw, 4.35rem);
  line-height: 0.9;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.projection {
  grid-area: projection;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  padding: clamp(4px, 1.4vh, 22px) 0 0;
}

.room-number {
  color: var(--label-tone, var(--accent));
}

.projection h2 {
  max-width: 11ch;
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 7.2vw, 5.4rem);
  line-height: 0.9;
  font-weight: 500;
}

.question {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.28;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-line span {
  padding: 8px 12px;
  color: color-mix(in srgb, var(--label-tone, var(--ink)) 78%, var(--ink));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--label-tone, var(--ink)) 12%, transparent), rgba(245, 238, 227, 0.045)),
    rgba(8, 7, 6, 0.4);
  border: 1px solid color-mix(in srgb, var(--label-tone, var(--ink)) 28%, rgba(245, 238, 227, 0.17));
  border-radius: 999px;
  font-size: 0.82rem;
}

.room-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(132px, auto));
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.story-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, transparent), rgba(245, 238, 227, 0.045)),
    rgba(8, 7, 6, 0.62);
  border: 1px solid color-mix(in srgb, var(--accent) 46%, rgba(245, 238, 227, 0.18));
  border-radius: 6px;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(245, 238, 227, 0.08);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  white-space: nowrap;
}

.story-button.has-hover-cue::after {
  content: attr(data-hover-cue);
  position: absolute;
  left: 12px;
  top: calc(100% + 8px);
  z-index: 3;
  min-width: 220px;
  padding: 8px 10px;
  color: color-mix(in srgb, var(--ink) 92%, var(--accent-2));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(245, 238, 227, 0.06)),
    rgba(8, 7, 6, 0.86);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, rgba(245, 238, 227, 0.18));
  border-radius: 6px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.18),
    0 0 18px color-mix(in srgb, var(--accent) 10%, transparent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.28;
  white-space: normal;
  text-transform: none;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.story-button.has-hover-cue:hover::after,
.story-button.has-hover-cue:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.story-button.secondary-action {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent)),
    rgba(8, 7, 6, 0.58);
  border-color: color-mix(in srgb, var(--accent) 40%, rgba(245, 238, 227, 0.2));
}

.story-button.support-action {
  gap: 9px;
  color: #f2c96d;
  background:
    radial-gradient(circle at 22% 18%, rgba(242, 201, 109, 0.2), transparent 38%),
    linear-gradient(135deg, rgba(242, 201, 109, 0.18), rgba(245, 238, 227, 0.04)),
    rgba(8, 7, 6, 0.56);
  border-color: rgba(242, 201, 109, 0.42);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(242, 201, 109, 0.18),
    inset 0 1px rgba(245, 238, 227, 0.12);
}

.story-button.dark-action {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, transparent), rgba(245, 238, 227, 0.04)),
    rgba(8, 7, 6, 0.7);
  border-color: color-mix(in srgb, var(--accent) 58%, rgba(245, 238, 227, 0.18));
}

.story-button:hover,
.story-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: color-mix(in srgb, var(--accent) 60%, rgba(245, 238, 227, 0.26));
  outline: 0;
}

.story-button.support-action:hover,
.story-button.support-action:focus-visible {
  color: #ffe4a3;
  border-color: rgba(255, 228, 163, 0.64);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(242, 201, 109, 0.28),
    inset 0 1px rgba(245, 238, 227, 0.18);
  transform: translateY(-2px);
}

.room-visualizer {
  --visualizer-energy: 0.24;
  --visualizer-peak: 0.36;
  --visualizer-impact: 0.18;
  --visualizer-focus: 50%;
  --visualizer-peak-x: 50%;
  --visualizer-peak-y: 50%;
  --visualizer-bass: 0.2;
  --visualizer-mid: 0.2;
  --visualizer-high: 0.2;
  --visualizer-voice: 0.2;
  --visualizer-density: 0.4;
  --visualizer-shimmer: 0.42;
  --visualizer-lift: 1;
  position: relative;
  min-height: clamp(96px, 12vh, 148px);
  margin-top: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--visualizer-peak-x) var(--visualizer-peak-y), color-mix(in srgb, var(--accent) 18%, transparent), transparent 18%),
    radial-gradient(ellipse at var(--visualizer-focus) 52%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 34%),
    linear-gradient(90deg, rgba(245, 238, 227, 0.07), transparent 18%, transparent 82%, rgba(245, 238, 227, 0.045)),
    rgba(5, 6, 7, 0.74);
  border: 1px solid rgba(245, 238, 227, 0.16);
  border-top-color: color-mix(in srgb, var(--accent) 34%, rgba(245, 238, 227, 0.12));
  box-shadow:
    0 18px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(245, 238, 227, 0.08),
    inset 0 -1px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px) saturate(1.08);
  transform: translateZ(0) scale(var(--visualizer-lift));
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    filter 260ms ease,
    transform 260ms ease,
    background 260ms ease;
}

.room-visualizer.is-style-transition {
  animation: roomVisualizerStyleSwap 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.room-visualizer.is-playing {
  border-color: color-mix(in srgb, var(--accent) 66%, rgba(245, 238, 227, 0.2));
  box-shadow:
    0 22px 76px rgba(0, 0, 0, 0.3),
    0 0 52px color-mix(in srgb, var(--accent) var(--visualizer-shell-glow, 20%), transparent),
    inset 0 1px rgba(245, 238, 227, 0.12),
    inset 0 0 42px rgba(245, 238, 227, 0.035);
  filter: saturate(1.04) contrast(1.02);
}

.room-visualizer::before,
.room-visualizer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.room-visualizer::before {
  left: 22px;
  right: 22px;
  top: 50%;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(245, 238, 227, 0.22), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(245, 238, 227, 0.14) 18px 19px, transparent 19px 42px);
  transform: translateY(-50%);
  opacity: calc(0.18 + var(--visualizer-energy) * 0.34);
  box-shadow:
    0 0 16px color-mix(in srgb, var(--accent) 8%, transparent),
    0 0 34px color-mix(in srgb, var(--accent-2) 7%, transparent);
}

.room-visualizer::after {
  inset: 0;
  background:
    radial-gradient(circle at var(--visualizer-peak-x) var(--visualizer-peak-y), rgba(245, 238, 227, 0.18), transparent 8%),
    radial-gradient(circle at var(--visualizer-focus) 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 18%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.76), transparent 18%, transparent 82%, rgba(5, 6, 7, 0.76)),
    linear-gradient(180deg, rgba(245, 238, 227, 0.055), transparent 24%, transparent 76%, rgba(245, 238, 227, 0.04));
  opacity: calc(0.38 + var(--visualizer-energy) * 0.24);
  transform: translateX(0);
  mix-blend-mode: screen;
}

.room-visualizer.is-playing::after {
  animation: visualizerShellDrift 8.4s linear infinite;
}

.room-visualizer.is-style-transition .visualizer-grid,
.room-visualizer.is-style-transition .room-wave,
.room-visualizer.is-style-transition .room-wave-svg,
.room-visualizer.is-style-transition .room-wave-dots {
  animation: roomVisualizerElementsSwap 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes roomVisualizerStyleSwap {
  0% {
    filter: saturate(0.92) brightness(0.92);
    transform: translateZ(0) scale(1.014);
  }

  44% {
    filter: saturate(1.14) brightness(1.08);
    transform: translateZ(0) scale(1.002);
  }

  100% {
    filter: saturate(1) brightness(1);
    transform: translateZ(0) scale(var(--visualizer-lift));
  }
}

@keyframes roomVisualizerElementsSwap {
  0% {
    opacity: 0.42;
    filter: blur(8px) saturate(0.88);
    transform: scale(1.018);
  }

  54% {
    opacity: 1;
    filter: blur(0) saturate(1.08);
    transform: scale(1);
  }

  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
}

@keyframes visualizerShellDrift {
  0% {
    transform: translateX(-2.5%) scaleX(0.995);
    opacity: calc(0.42 + var(--visualizer-energy) * 0.28);
  }

  50% {
    transform: translateX(2.5%) scaleX(1.005);
    opacity: calc(0.52 + var(--visualizer-energy) * 0.36);
  }

  100% {
    transform: translateX(-2.5%) scaleX(0.995);
    opacity: calc(0.42 + var(--visualizer-energy) * 0.28);
  }
}

.visualizer-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(245, 238, 227, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 238, 227, 0.042) 1px, transparent 1px);
  background-size: 100% 22px, 38px 100%;
  background-position: 0 0, 0 0;
  overflow: hidden;
}

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

.visualizer-grid::before {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(245, 238, 227, 0.035) 0 1px,
      transparent 1px 5px
    );
  opacity: calc(0.24 + var(--visualizer-high) * 0.18);
  mix-blend-mode: screen;
}

.visualizer-grid::after {
  background:
    linear-gradient(90deg, transparent 0 36%, rgba(245, 238, 227, 0.11) 50%, transparent 64%),
    radial-gradient(circle at var(--visualizer-peak-x) var(--visualizer-peak-y), rgba(245, 238, 227, 0.12), transparent 10%),
    radial-gradient(circle at var(--visualizer-focus) 50%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 24%);
  transform: translateX(-48%);
  opacity: calc(0.06 + var(--visualizer-shimmer) * 0.16);
  mix-blend-mode: screen;
}

.room-visualizer.is-playing .visualizer-grid {
  animation: visualizerGridDrift 16s linear infinite;
}

.room-visualizer.is-playing .visualizer-grid::after {
  animation: visualizerGridSweep 9.6s linear infinite;
}

@keyframes visualizerGridDrift {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 0 24px, 32px 0;
  }
}

@keyframes visualizerGridSweep {
  0% {
    transform: translateX(-56%);
    opacity: calc(0.06 + var(--visualizer-shimmer) * 0.12);
  }

  14% {
    opacity: calc(0.14 + var(--visualizer-shimmer) * 0.18);
  }

  50% {
    transform: translateX(0%);
    opacity: calc(0.18 + var(--visualizer-shimmer) * 0.24);
  }

  86% {
    opacity: calc(0.12 + var(--visualizer-shimmer) * 0.12);
  }

  100% {
    transform: translateX(56%);
    opacity: calc(0.06 + var(--visualizer-shimmer) * 0.1);
  }
}

.room-wave-svg,
.room-wave-dots {
  position: absolute;
  inset: 14px 18px;
  pointer-events: none;
}

.room-wave-svg {
  z-index: 1;
  width: calc(100% - 36px);
  height: calc(100% - 28px);
  overflow: visible;
  opacity: 0;
  mix-blend-mode: screen;
  filter: saturate(1.05) brightness(1.03);
  transition: opacity 260ms ease, filter 260ms ease;
}

.room-wave-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.78;
}

.room-wave-path-primary {
  stroke: color-mix(in srgb, white 74%, var(--accent) 26%);
  stroke-width: 2.2;
  filter:
    drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 18%, transparent))
    drop-shadow(0 0 32px color-mix(in srgb, var(--accent-2) 12%, transparent));
}

.room-wave-path-secondary {
  stroke: color-mix(in srgb, var(--accent) 74%, white 18%);
  stroke-width: 1.45;
  opacity: 0.72;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 16%, transparent));
}

.room-wave-path-tertiary {
  stroke: color-mix(in srgb, var(--accent-2) 70%, white 18%);
  stroke-width: 1.1;
  stroke-dasharray: 1.2 4;
  opacity: 0.6;
}

.room-wave-dots {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.45vw, 6px);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 260ms ease;
}

.room-wave-dots i {
  flex: 1;
  max-width: 4px;
  height: 4px;
  border-radius: 999px;
  background: hsl(var(--dot-hue, 210) 100% 74% / 0.96);
  box-shadow:
    0 0 12px hsl(var(--dot-hue, 210) 100% 70% / 0.42),
    0 0 24px hsl(var(--dot-hue, 210) 100% 66% / 0.22);
  opacity: var(--dot-opacity, 0.2);
  transform: translateY(calc(var(--dot-offset, 0) * 1px)) scale(calc(var(--dot-scale, 0.6)));
}

.room-wave {
  position: absolute;
  inset: 18px 22px;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: clamp(2px, 0.36vw, 5px);
}

.room-wave span {
  position: relative;
  flex: 1;
  height: calc(8% + var(--wave, 0.18) * 84%);
  min-width: 2px;
  background:
    linear-gradient(
      180deg,
      rgba(245, 238, 227, 0.92) 0%,
      color-mix(in srgb, var(--accent) 56%, rgba(245, 238, 227, 0.86)) 34%,
      color-mix(in srgb, var(--accent-2) 72%, var(--ink)) 100%
    );
  border-radius: 4px 4px 1px 1px;
  box-shadow:
    0 0 12px color-mix(in srgb, var(--accent) var(--wave-glow-soft, 22%), transparent),
    0 0 30px color-mix(in srgb, var(--accent-2) var(--wave-glow-hard, 11%), transparent),
    inset 0 1px rgba(255, 255, 255, 0.24),
    inset 0 -8px 18px rgba(0, 0, 0, 0.16);
  opacity: calc(0.22 + var(--bar-opacity, var(--wave, 0.18)) * 0.68);
  transform-origin: bottom;
  transform: translateY(calc(var(--drift, 0) * 1px)) scaleY(var(--stretch, 1));
  transition:
    box-shadow 260ms ease,
    opacity 260ms ease,
    background 260ms ease,
    filter 260ms ease;
  isolation: isolate;
}

.room-wave span::before,
.room-wave span::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.room-wave span::before {
  top: -2px;
  width: calc(100% + 2px);
  height: 2px;
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 252, 239, 0.88), transparent);
  opacity: calc(0.18 + var(--wave, 0.18) * 0.68);
  transform: translateX(-50%);
  filter: blur(0.25px);
}

.room-wave span::after {
  top: 12%;
  width: calc(100% + 14px);
  height: calc(22px + var(--wave, 0.18) * 24px);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: calc(0.05 + var(--wave, 0.18) * 0.16);
  transform: translateX(-50%);
  filter: blur(12px);
}

.room-visualizer.is-playing .room-wave span {
  box-shadow:
    0 0 18px color-mix(in srgb, var(--accent) var(--wave-glow-soft-playing, 38%), transparent),
    0 0 46px color-mix(in srgb, var(--accent-2) var(--wave-glow-hard-playing, 18%), transparent),
    inset 0 1px rgba(255, 255, 255, 0.26),
    inset 0 -10px 20px rgba(0, 0, 0, 0.18);
  opacity: calc(0.36 + var(--bar-opacity, var(--wave, 0.18)) * 0.56);
}

.room-visualizer[data-style="neon-pulse"] .room-wave-svg,
.room-visualizer[data-style="neon-pulse"] .room-wave-dots {
  opacity: 1;
}

.room-visualizer[data-style="neon-pulse"] .room-wave {
  align-items: center;
}

.room-visualizer[data-style="neon-pulse"] .room-wave span {
  min-width: 3px;
  border-radius: 999px;
  transform-origin: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--accent) 52%, white) 34%, color-mix(in srgb, var(--accent-2) 68%, var(--ink)));
}

.room-visualizer[data-style="neon-pulse"] .room-wave::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(14px + var(--visualizer-impact) * 22px);
  height: calc(14px + var(--visualizer-impact) * 22px);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--accent) 48%, transparent) 46%, transparent 72%);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--accent) 22%, transparent),
    0 0 36px color-mix(in srgb, var(--accent-2) 14%, transparent);
  opacity: calc(0.2 + var(--visualizer-energy) * 0.38);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.room-visualizer[data-style="neon-pulse"] .room-wave-path-primary {
  stroke-width: 2.5;
  filter:
    drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 24%, transparent))
    drop-shadow(0 0 40px color-mix(in srgb, var(--accent-2) 16%, transparent));
}

.room-visualizer[data-style="neon-pulse"].is-playing .room-wave-svg {
  animation: visualizerPathPulse 4.8s ease-in-out infinite;
}

.room-visualizer[data-style="prism-spectrum"] {
  background:
    radial-gradient(circle at var(--visualizer-focus) 50%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 28%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.72), transparent 16%, transparent 84%, rgba(8, 7, 6, 0.72)),
    rgba(8, 7, 6, 0.58);
}

.room-visualizer[data-style="prism-spectrum"] .visualizer-grid {
  opacity: 0.1;
}

.room-visualizer[data-style="prism-spectrum"] .room-wave span {
  min-width: 2px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--prism-color, var(--accent)) 54%, rgba(245, 238, 227, 0.9)),
      color-mix(in srgb, var(--prism-color-2, var(--accent-2)) 66%, rgba(245, 238, 227, 0.16)) 54%,
      color-mix(in srgb, var(--ink) 78%, var(--prism-color, var(--accent)))
    );
  box-shadow:
    0 0 16px color-mix(in srgb, var(--prism-color, var(--accent)) 18%, transparent),
    0 0 38px color-mix(in srgb, var(--prism-color-2, var(--accent-2)) 14%, transparent);
  filter: saturate(0.96) brightness(1.02);
}

.room-visualizer[data-style="prism-spectrum"] .room-wave-svg,
.room-visualizer[data-style="prism-spectrum"] .room-wave-dots {
  opacity: 0;
}

.room-visualizer[data-style="prism-spectrum"]::before {
  opacity: calc(0.16 + var(--visualizer-energy) * 0.12);
}

.room-visualizer[data-style="prism-spectrum"].is-playing .room-wave {
  animation: visualizerSpectrumBreathe 5.8s ease-in-out infinite;
}

.room-visualizer[data-style="grid-eq"] {
  background:
    radial-gradient(circle at var(--visualizer-peak-x) 86%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 18%),
    linear-gradient(180deg, rgba(245, 238, 227, 0.035), rgba(245, 238, 227, 0)),
    rgba(6, 7, 7, 0.86);
}

.room-visualizer[data-style="grid-eq"]::before {
  top: auto;
  bottom: 14px;
  transform: none;
  opacity: 0.24;
}

.room-visualizer[data-style="grid-eq"] .visualizer-grid {
  opacity: 0.38;
  background-size: 100% 12px, 14px 100%;
}

.room-visualizer[data-style="grid-eq"] .room-wave {
  inset: 12px 14px 12px;
  align-items: end;
  gap: 2px;
}

.room-visualizer[data-style="grid-eq"] .room-wave span {
  min-width: 0;
  height: calc(8% + var(--wave, 0.18) * 82%);
  background:
    linear-gradient(
      180deg,
      rgba(255, 239, 199, 0.96) 0 11%,
      color-mix(in srgb, var(--accent) 82%, rgba(245, 238, 227, 0.56)) 11% 34%,
      rgba(245, 238, 227, 0.38) 34% 100%
    );
  border-radius: 2px 2px 0 0;
  box-shadow:
    0 0 10px color-mix(in srgb, var(--accent) 12%, transparent),
    inset 0 1px rgba(255, 255, 255, 0.2),
    inset 0 -8px 14px rgba(0, 0, 0, 0.2);
  opacity: calc(0.34 + var(--bar-opacity, var(--wave, 0.18)) * 0.54);
  transform: none;
}

.room-visualizer[data-style="grid-eq"] .room-wave span::before,
.room-visualizer[data-style="grid-eq"] .room-wave span::after {
  display: none;
}

.room-visualizer[data-style="grid-eq"] .room-wave-svg,
.room-visualizer[data-style="grid-eq"] .room-wave-dots {
  opacity: 0;
}

.room-visualizer[data-style="ribbon"] {
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 34%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.72), transparent 12%, transparent 88%, rgba(8, 7, 6, 0.72)),
    rgba(7, 7, 10, 0.62);
}

.room-visualizer[data-style="ribbon"] .visualizer-grid {
  opacity: 0.06;
}

.room-visualizer[data-style="ribbon"]::before {
  opacity: 0;
}

.room-visualizer[data-style="ribbon"] .room-wave {
  opacity: 0;
}

.room-visualizer[data-style="ribbon"] .room-wave-svg {
  opacity: 1;
  filter:
    saturate(1.18)
    brightness(1.05)
    drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 18%, transparent));
}

.room-visualizer[data-style="ribbon"] .room-wave-dots {
  opacity: 0;
}

.room-visualizer[data-style="ribbon"] .room-wave-path-primary {
  stroke-width: 2.6;
}

.room-visualizer[data-style="ribbon"] .room-wave-path-secondary {
  stroke-width: 1.8;
}

.room-visualizer[data-style="ribbon"] .room-wave-path-tertiary {
  stroke-width: 1.35;
  stroke-dasharray: none;
}

.room-visualizer[data-style="ribbon"].is-playing .room-wave-svg {
  animation: visualizerRibbonFloat 6.4s ease-in-out infinite;
}

.room-visualizer[data-style="signal-field"] {
  background:
    radial-gradient(ellipse at var(--visualizer-focus) 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28%),
    radial-gradient(circle at 52% 48%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 36%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.78), transparent 14%, transparent 86%, rgba(8, 7, 6, 0.78)),
    rgba(6, 8, 10, 0.62);
}

.room-visualizer[data-style="signal-field"] .visualizer-grid {
  opacity: 0.12;
  background-size: 100% 28px, 38px 100%;
}

.room-visualizer[data-style="signal-field"]::before {
  left: var(--visualizer-focus);
  right: auto;
  top: 50%;
  width: calc(14% + var(--visualizer-peak) * 22%);
  height: calc(42% + var(--visualizer-impact) * 28%);
  background: none;
  border: 1px solid color-mix(in srgb, var(--accent-2) 20%, transparent);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  opacity: calc(0.16 + var(--visualizer-energy) * 0.22);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--accent) 16%, transparent),
    inset 0 0 24px color-mix(in srgb, var(--accent-2) 12%, transparent);
}

.room-visualizer[data-style="signal-field"]::after {
  background:
    radial-gradient(circle at var(--visualizer-focus) 50%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 16%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.74), transparent 14%, transparent 86%, rgba(8, 7, 6, 0.74));
  opacity: calc(0.3 + var(--visualizer-energy) * 0.28);
}

.room-visualizer[data-style="signal-field"] .room-wave {
  inset: 14px 18px;
  display: block;
}

.room-visualizer[data-style="signal-field"] .room-wave span {
  position: absolute;
  left: var(--field-x, 50%);
  top: var(--field-y, 50%);
  width: calc(3px + var(--wave, 0.18) * 12px);
  height: calc(3px + var(--wave, 0.18) * 12px);
  min-width: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 45% 45%, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--field-color, var(--accent)) 74%, transparent) 58%, transparent 76%);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--field-color, var(--accent)) 24%, transparent),
    0 0 28px color-mix(in srgb, var(--accent-2) 12%, transparent);
  opacity: var(--field-opacity, 0.2);
  transform: translate(-50%, -50%) scale(var(--field-scale, 1));
  filter: saturate(1.04);
}

.room-visualizer[data-style="signal-field"] .room-wave span::before,
.room-visualizer[data-style="signal-field"] .room-wave span::after {
  display: none;
}

.room-visualizer[data-style="signal-field"] .room-wave-svg {
  opacity: 1;
  filter:
    saturate(1.02)
    brightness(1.02)
    drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 12%, transparent));
}

.room-visualizer[data-style="signal-field"] .room-wave-dots {
  display: block;
  opacity: 0.74;
}

.room-visualizer[data-style="signal-field"] .room-wave-dots i {
  position: absolute;
  left: var(--field-x, 50%);
  top: var(--field-y, 50%);
  flex: none;
  width: 3px;
  max-width: none;
  height: 3px;
  background: var(--field-color, var(--accent-2));
  box-shadow:
    0 0 10px color-mix(in srgb, var(--field-color, var(--accent-2)) 30%, transparent),
    0 0 20px color-mix(in srgb, var(--accent) 12%, transparent);
  transform: translate(-50%, calc(-50% + var(--dot-offset, 0) * 1px)) scale(var(--dot-scale, 0.6));
}

.room-visualizer[data-style="signal-field"] .room-wave-path-primary {
  stroke-width: 1.35;
  opacity: 0.46;
}

.room-visualizer[data-style="signal-field"] .room-wave-path-secondary {
  stroke-width: 1.05;
  opacity: 0.42;
}

.room-visualizer[data-style="signal-field"] .room-wave-path-tertiary {
  stroke-width: 0.9;
  opacity: 0.3;
  stroke-dasharray: 1 7;
}

.room-visualizer[data-style="signal-field"].is-playing .room-wave-svg {
  animation: visualizerSignalFloat 7.8s ease-in-out infinite;
}

.room-visualizer[data-style="aurora-field"] {
  background:
    radial-gradient(circle at 24% 50%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 28%),
    radial-gradient(circle at 78% 44%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 24%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.72), transparent 12%, transparent 88%, rgba(8, 7, 6, 0.72)),
    rgba(7, 7, 12, 0.56);
}

.room-visualizer[data-style="aurora-field"] .visualizer-grid {
  opacity: 0.1;
}

.room-visualizer[data-style="aurora-field"]::before {
  opacity: 0;
}

.room-visualizer[data-style="aurora-field"] .room-wave-svg,
.room-visualizer[data-style="aurora-field"] .room-wave-dots {
  opacity: 1;
}

.room-visualizer[data-style="aurora-field"] .room-wave span {
  opacity: calc(0.18 + var(--wave, 0.18) * 0.34);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 70%, white), color-mix(in srgb, var(--accent) 64%, var(--accent-2)) 48%, color-mix(in srgb, var(--accent) 42%, transparent));
}

.room-visualizer[data-style="aurora-field"] .room-wave::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 7%, transparent), color-mix(in srgb, var(--accent) 11%, transparent), color-mix(in srgb, var(--accent-2) 6%, transparent));
  filter: blur(18px);
  opacity: calc(0.28 + var(--visualizer-energy) * 0.24);
  pointer-events: none;
}

.room-visualizer[data-style="aurora-field"].is-playing .room-wave::after {
  animation: visualizerAuroraDrift 8.6s ease-in-out infinite;
}

.room-visualizer[data-style="aurora-field"] .room-wave-path-primary {
  stroke: rgba(255, 255, 255, 0.92);
}

.room-visualizer[data-style="aurora-field"] .room-wave-path-secondary {
  stroke: color-mix(in srgb, var(--accent-2) 74%, white);
}

.room-visualizer[data-style="aurora-field"] .room-wave-path-tertiary {
  stroke: color-mix(in srgb, var(--accent) 60%, transparent);
}

.room-visualizer[data-style="monolith"] {
  background:
    linear-gradient(180deg, rgba(245, 238, 227, 0.035), rgba(245, 238, 227, 0)),
    rgba(5, 5, 5, 0.88);
}

.room-visualizer[data-style="monolith"] .visualizer-grid {
  opacity: 0.08;
}

.room-visualizer[data-style="monolith"]::before {
  top: auto;
  bottom: 10px;
  left: 14px;
  right: 14px;
  height: 1px;
  transform: none;
  opacity: 0.18;
}

.room-visualizer[data-style="monolith"] .room-wave {
  inset: 10px 18px 10px;
  align-items: end;
  gap: 3px;
}

.room-visualizer[data-style="monolith"] .room-wave span {
  min-width: 3px;
  border-radius: 4px 4px 1px 1px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 238, 227, 0.38));
  box-shadow:
    0 0 12px rgba(245, 238, 227, 0.12),
    0 0 22px rgba(229, 95, 63, 0.16);
  transform: scaleY(var(--stretch, 1));
}

.room-visualizer[data-style="monolith"] .room-wave span::before {
  top: -1px;
  width: calc(100% + 2px);
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  filter: blur(0.3px);
}

.room-visualizer[data-style="monolith"] .room-wave span::after {
  top: 12%;
  width: calc(100% + 6px);
  height: calc(24px + var(--wave, 0.18) * 12px);
  background: linear-gradient(180deg, rgba(245, 238, 227, 0.18), transparent 72%);
}

.room-visualizer[data-style="monolith"] .room-wave-svg,
.room-visualizer[data-style="monolith"] .room-wave-dots {
  opacity: 0;
}

.room-visualizer[data-style="mirage-line"] {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.84), transparent 10%, transparent 90%, rgba(8, 7, 6, 0.84)),
    rgba(8, 10, 12, 0.54);
}

.room-visualizer[data-style="mirage-line"] .visualizer-grid {
  opacity: 0.08;
}

.room-visualizer[data-style="mirage-line"]::before {
  opacity: calc(0.08 + var(--visualizer-energy) * 0.1);
  box-shadow: none;
}

.room-visualizer[data-style="mirage-line"] .room-wave {
  inset: 18px 18px;
  gap: 3px;
}

.room-visualizer[data-style="mirage-line"] .room-wave span {
  height: calc(4% + var(--wave, 0.18) * 34%);
  opacity: calc(0.18 + var(--wave, 0.18) * 0.28);
}

.room-visualizer[data-style="mirage-line"] .room-wave span::after {
  opacity: calc(0.04 + var(--wave, 0.18) * 0.12);
}

.room-visualizer[data-style="mirage-line"] .room-wave-svg {
  opacity: 1;
}

.room-visualizer[data-style="mirage-line"] .room-wave-dots {
  opacity: 0.68;
}

.room-visualizer[data-style="mirage-line"] .room-wave-path-primary {
  stroke-width: 1.7;
}

.room-visualizer[data-style="mirage-line"] .room-wave-path-secondary {
  stroke-width: 1.05;
  opacity: 0.44;
}

.room-visualizer[data-style="mirage-line"] .room-wave-path-tertiary {
  opacity: 0.24;
}

.room-visualizer[data-style="halo-scan"] {
  background:
    radial-gradient(circle at var(--visualizer-focus) 50%, rgba(245, 238, 227, 0.08), transparent 18%),
    radial-gradient(circle at var(--visualizer-focus) 50%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 38%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.72), transparent 10%, transparent 90%, rgba(8, 7, 6, 0.72)),
    rgba(8, 9, 14, 0.58);
}

.room-visualizer[data-style="halo-scan"] .visualizer-grid {
  opacity: 0.12;
}

.room-visualizer[data-style="halo-scan"]::before {
  left: var(--visualizer-focus);
  right: auto;
  top: 50%;
  width: calc(18% + var(--visualizer-peak) * 18%);
  height: calc(54% + var(--visualizer-impact) * 22%);
  background: none;
  border: 1px solid color-mix(in srgb, var(--accent-2) 28%, rgba(245, 238, 227, 0.16));
  border-radius: 999px;
  transform: translate(-50%, -50%);
  opacity: calc(0.18 + var(--visualizer-energy) * 0.18);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--accent-2) 18%, transparent),
    0 0 44px color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--accent-2) 14%, transparent);
}

.room-visualizer[data-style="halo-scan"] .room-wave-svg,
.room-visualizer[data-style="halo-scan"] .room-wave-dots {
  opacity: 1;
}

.room-visualizer[data-style="halo-scan"] .room-wave span {
  opacity: calc(0.1 + var(--wave, 0.18) * 0.22);
  min-width: 2px;
  height: calc(4% + var(--wave, 0.18) * 28%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 70%, white), color-mix(in srgb, var(--accent-2) 34%, transparent));
}

.room-visualizer[data-style="halo-scan"]::after {
  background:
    repeating-radial-gradient(circle at var(--visualizer-focus) 50%, transparent 0 20px, color-mix(in srgb, var(--accent-2) 8%, transparent) 21px 22px, transparent 23px 44px),
    conic-gradient(from 0deg at var(--visualizer-focus) 50%, transparent 0deg, color-mix(in srgb, var(--accent-2) 16%, transparent) 22deg, transparent 46deg),
    radial-gradient(circle at var(--visualizer-focus) 50%, rgba(245, 238, 227, 0.1), transparent 10%),
    radial-gradient(circle at var(--visualizer-focus) 50%, color-mix(in srgb, var(--accent-2) 13%, transparent), transparent 24%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.72), transparent 10%, transparent 90%, rgba(8, 7, 6, 0.72)),
    linear-gradient(180deg, rgba(245, 238, 227, 0.05), transparent 24%, transparent 76%, rgba(245, 238, 227, 0.04));
  opacity: calc(0.34 + var(--visualizer-energy) * 0.3);
}

.room-visualizer[data-style="halo-scan"].is-playing::after {
  animation:
    visualizerShellDrift 8.4s linear infinite,
    visualizerHaloScan 6.8s ease-in-out infinite;
}

.room-visualizer[data-style="halo-scan"] .room-wave-path-primary {
  stroke-width: 1.9;
}

.room-visualizer[data-style="halo-scan"] .room-wave-path-secondary {
  stroke-width: 1.2;
  opacity: 0.56;
}

.room-visualizer[data-style="halo-scan"] .room-wave-path-tertiary {
  stroke-width: 0.95;
  opacity: 0.38;
}

.room-visualizer[data-visual="submarine"] {
  --visualizer-shell-glow: 30%;
}

.room-visualizer[data-visual="submarine"][data-style="halo-scan"] .visualizer-grid {
  opacity: 0.16;
  background-size: 100% 18px, 44px 100%;
}

.room-visualizer[data-visual="submarine"][data-style="halo-scan"]::before {
  width: calc(24% + var(--visualizer-peak) * 24%);
  height: calc(66% + var(--visualizer-impact) * 26%);
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(245, 238, 227, 0.14));
}

.room-visualizer[data-visual="grain"][data-style="signal-field"] {
  background:
    radial-gradient(circle at var(--visualizer-peak-x) var(--visualizer-peak-y), color-mix(in srgb, var(--accent) 14%, transparent), transparent 18%),
    repeating-radial-gradient(circle at 48% 52%, color-mix(in srgb, var(--accent-2) 8%, transparent) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, rgba(8, 7, 6, 0.8), transparent 16%, transparent 84%, rgba(8, 7, 6, 0.8)),
    rgba(7, 7, 7, 0.7);
}

.room-visualizer[data-visual="grain"][data-style="signal-field"] .room-wave span {
  width: calc(2px + var(--wave, 0.18) * 7px);
  height: calc(2px + var(--wave, 0.18) * 7px);
  opacity: var(--field-opacity, 0.2);
}

.room-visualizer[data-visual="thaler"][data-style="monolith"] {
  background:
    linear-gradient(90deg, rgba(240, 198, 91, 0.08), transparent 14%, transparent 86%, rgba(229, 95, 63, 0.06)),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(245, 238, 227, 0.04) 52px 53px, transparent 53px 104px),
    rgba(5, 5, 5, 0.9);
}

.room-visualizer[data-visual="thaler"][data-style="monolith"] .room-wave span {
  min-width: 4px;
  border-radius: 1px;
  background:
    linear-gradient(180deg, rgba(255, 242, 205, 0.94), color-mix(in srgb, var(--accent) 76%, rgba(245, 238, 227, 0.24)) 38%, rgba(229, 95, 63, 0.34));
  box-shadow:
    0 0 16px rgba(240, 198, 91, 0.12),
    0 0 26px rgba(229, 95, 63, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.24);
}

.room-visualizer[data-visual="hyperstition"][data-style="prism-spectrum"],
.room-visualizer[data-visual="hyperstition"][data-style="neon-pulse"] {
  background:
    radial-gradient(circle at var(--visualizer-peak-x) var(--visualizer-peak-y), color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 15%),
    linear-gradient(115deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 28%, color-mix(in srgb, var(--accent-2) 7%, transparent) 64%, transparent),
    rgba(6, 7, 7, 0.76);
}

.room-visualizer[data-visual="hyperstition"][data-style="prism-spectrum"] .visualizer-grid {
  opacity: calc(0.16 + var(--visualizer-high) * 0.14);
  background-size: 100% 17px, 23px 100%;
}

.room-visualizer[data-visual="lineage"][data-style="ribbon"] {
  background:
    linear-gradient(90deg, rgba(245, 238, 227, 0.08), transparent 20%, transparent 80%, rgba(240, 198, 91, 0.06)),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(245, 238, 227, 0.055) 70px 71px, transparent 71px 140px),
    rgba(7, 7, 7, 0.68);
}

.room-visualizer[data-visual="lineage"][data-style="ribbon"]::before,
.room-visualizer[data-visual="lineage"][data-style="mirage-line"]::before {
  opacity: calc(0.22 + var(--visualizer-energy) * 0.16);
  background:
    linear-gradient(90deg, transparent, rgba(245, 238, 227, 0.28), rgba(240, 198, 91, 0.18), transparent),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(245, 238, 227, 0.16) 52px 54px, transparent 54px 92px);
}

@keyframes visualizerPathPulse {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
    filter:
      saturate(1.04)
      brightness(1.02)
      drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 10%, transparent));
  }

  50% {
    transform: translateY(-1px) scaleY(1.018);
    filter:
      saturate(1.1)
      brightness(1.08)
      drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 16%, transparent))
      drop-shadow(0 0 30px color-mix(in srgb, var(--accent-2) 12%, transparent));
  }
}

@keyframes visualizerSpectrumBreathe {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
    filter: saturate(1.04) brightness(1);
  }

  50% {
    transform: translateY(-1px) scaleY(1.02);
    filter: saturate(1.14) brightness(1.06);
  }
}

@keyframes visualizerRibbonFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-1.5px) scale(1.012);
  }
}

@keyframes visualizerSignalFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.72;
  }

  50% {
    transform: translateY(-1px) scale(1.006);
    opacity: 0.92;
  }
}

@keyframes visualizerAuroraDrift {
  0%,
  100% {
    transform: translateX(-4%) scaleX(0.98);
    opacity: 0.24;
  }

  50% {
    transform: translateX(4%) scaleX(1.04);
    opacity: 0.42;
  }
}

@keyframes visualizerHaloScan {
  0%,
  100% {
    background-position: 0 0, 0 0, 0 0, 0 0;
    filter: saturate(1.02);
  }

  50% {
    background-position: 4% 0, 0 0, 0 0, 0 0;
    filter: saturate(1.12);
  }
}

.live-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0;
}

.text-plaque {
  position: relative;
  min-height: 132px;
  padding: 15px 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.08), transparent 46%),
    rgba(8, 7, 6, 0.7);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.lyric-plaque {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 148px;
  text-align: center;
}

.text-plaque::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0.84;
}

.text-plaque::after {
  content: "";
  position: absolute;
  inset: auto 18px 13px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.32;
}

.text-plaque:first-child::after {
  right: auto;
  width: calc((100% - 36px) * var(--lyric-progress, 0));
  opacity: 0.72;
}

.lyric-plaque::after {
  content: none;
}

.text-plaque:nth-child(2)::before {
  background: var(--label-tone, var(--accent-2));
}

.text-plaque:nth-child(2)::after {
  background: linear-gradient(90deg, var(--label-tone, var(--accent-2)), transparent);
  animation: factClock 30s linear infinite;
}

.fact-plaque::after {
  content: none;
  animation: none;
}

@keyframes factClock {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.text-plaque p {
  margin: 10px 0 0;
  font-size: clamp(0.96rem, 1.16vw, 1.08rem);
  line-height: 1.26;
  transition:
    opacity 340ms ease,
    filter 340ms ease,
    color 340ms ease,
    transform 340ms ease;
}

.text-plaque .lyric-current {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  min-height: clamp(3.2rem, 5.1vw, 4.5rem);
  overflow: hidden;
  font-size: clamp(1.42rem, 1.9vw, 1.82rem);
  font-weight: 650;
  line-height: 1.08;
  color: #f2c96d;
  text-align: center;
  opacity: 1;
  filter: none;
  transform: none;
  text-shadow:
    0 0 18px rgba(242, 201, 109, 0.2),
    0 1px 16px rgba(0, 0, 0, 0.24);
}

.lyric-current .lyric-active-line,
.lyric-current .lyric-ghost-line {
  display: block;
  width: 100%;
  max-width: 100%;
  text-wrap: balance;
  will-change: opacity, filter, transform;
}

.lyric-current .lyric-active-line {
  opacity: var(--lyric-active-opacity, 1);
  filter: blur(var(--lyric-active-blur, 0px));
  transform: translateY(var(--lyric-active-lift, 0px));
}

.lyric-current .lyric-ghost-line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 238, 227, 0.72);
  pointer-events: none;
  text-shadow:
    0 0 16px rgba(245, 238, 227, 0.08),
    0 1px 16px rgba(0, 0, 0, 0.24);
}

.lyric-plaque.is-changing .lyric-active-line {
  animation: lyricLineEnter 760ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.lyric-plaque.is-changing .lyric-ghost-line {
  animation: lyricLineExit 760ms cubic-bezier(0.32, 0, 0.12, 1) both;
}

.lyric-plaque.is-track-loading {
  min-height: 148px;
  border-color: color-mix(in srgb, var(--accent) 48%, rgba(245, 238, 227, 0.2));
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%),
    linear-gradient(135deg, rgba(245, 238, 227, 0.12), transparent 48%),
    rgba(8, 7, 6, 0.78);
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.28),
    0 0 34px color-mix(in srgb, var(--accent) 16%, transparent);
}

.lyric-plaque.is-track-loading::before {
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 42%, transparent);
}

.lyric-plaque.is-track-loading .lyric-current {
  flex-direction: column;
  gap: 4px;
  min-height: 3.4em;
  color: var(--ink);
  text-shadow:
    0 22px 60px rgba(0, 0, 0, 0.42),
    0 0 28px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: lyricLoadingPulse 1.2s ease-in-out infinite;
}

.lyric-loading-word {
  color: color-mix(in srgb, var(--accent-2) 72%, var(--ink));
  font-size: clamp(0.72rem, 0.92vw, 0.86rem);
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.lyric-loading-title {
  color: color-mix(in srgb, var(--ink) 92%, var(--accent));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3.2vw, 3.42rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

@keyframes lyricLoadingPulse {
  0%,
  100% {
    opacity: 0.88;
    filter: blur(0);
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    filter: blur(0.2px);
    transform: translateY(-1px);
  }
}

.text-plaque.is-lyric-blank .lyric-current {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(4px);
}

.text-plaque.is-lyric-blank .lyric-active-line,
.text-plaque.is-lyric-blank .lyric-ghost-line {
  animation: none;
}

.text-plaque.is-changing {
  animation: plaqueReveal 620ms ease both;
}

.lyric-plaque.is-changing {
  animation: none;
}

.fact-plaque.is-changing {
  animation: none;
}

@keyframes lyricLineEnter {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(82%) scale(0.992);
  }

  42% {
    opacity: 0.72;
    filter: blur(1.2px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes lyricLineExit {
  0% {
    opacity: 0.68;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(-82%) scale(0.988);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lyric-plaque.is-changing .lyric-active-line,
  .lyric-plaque.is-changing .lyric-ghost-line {
    animation-duration: 1ms;
  }
}

@keyframes plaqueReveal {
  from {
    opacity: 0.4;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.control-strip {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(120px, 160px);
  gap: 12px;
  align-items: center;
  margin: 18px 0 0;
  padding: 12px;
  background: rgba(8, 7, 6, 0.68);
  border: 1px solid rgba(245, 238, 227, 0.16);
  border-left: 2px solid var(--accent);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.audio-status {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 8px);
  z-index: 6;
  margin: 0;
  padding: 12px 14px;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(245, 238, 227, 0.04)),
    rgba(8, 7, 6, 0.62);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, rgba(245, 238, 227, 0.18));
  border-radius: 6px;
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.08),
    0 12px 34px rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
  line-height: 1.35;
  pointer-events: none;
}

.audio-status.is-visible {
  display: block;
  pointer-events: auto;
}

.audio-status.is-loading {
  border-color: color-mix(in srgb, var(--accent-2) 42%, rgba(245, 238, 227, 0.18));
}

.audio-status.is-loading::before {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 9px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  opacity: 0.8;
  vertical-align: -0.08em;
  animation: statusSpin 900ms linear infinite;
}

.audio-status.is-warning {
  border-color: rgba(229, 189, 123, 0.58);
}

.audio-status.is-error {
  background: rgba(229, 95, 63, 0.18);
  border-color: rgba(229, 95, 63, 0.52);
}

.audio-status a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}

@keyframes statusSpin {
  to {
    transform: rotate(1turn);
  }
}

.transport,
.timeline,
.volume-control {
  display: flex;
  align-items: center;
}

.transport {
  gap: 10px;
}

.icon-button,
.play-button {
  min-height: 46px;
  color: var(--ink);
  background: rgba(245, 238, 227, 0.1);
  border: 1px solid rgba(245, 238, 227, 0.22);
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.icon-button {
  width: 48px;
  font-size: 1.2rem;
}

.play-button {
  min-width: 148px;
  padding: 0 20px;
  color: #130f0c;
  background: var(--ink);
  font-weight: 700;
}

.icon-button:hover,
.play-button:hover,
.icon-button:focus-visible,
.play-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  outline: 0;
}

.play-button.is-playing {
  background: var(--accent);
  color: #160b07;
}

.timeline {
  gap: 12px;
  min-width: 0;
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 24px;
  --song-progress: 0;
  --song-progress-position: 0%;
}

.timeline-track input {
  position: relative;
  z-index: 3;
}

.playhead-aura {
  position: absolute;
  left: var(--song-progress-position);
  top: 50%;
  z-index: 2;
  width: 2px;
  height: 24px;
  pointer-events: none;
  background: rgba(245, 238, 227, 0.88);
  border-radius: 999px;
  box-shadow:
    0 0 14px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 38px color-mix(in srgb, var(--accent-2) 34%, transparent);
  opacity: 0.85;
  transform: translate(-1px, -50%);
  transition: left 120ms linear;
}

.playhead-aura::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: min(180px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 44%, transparent), rgba(245, 238, 227, 0.82));
  opacity: 0.7;
  transform: translateY(-50%);
}

.playhead-aura::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%);
  transform: translate(-50%, -50%);
}

.cue-markers {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 4;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.cue-marker {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 10px;
  background: color-mix(in srgb, var(--accent) 76%, var(--ink));
  border-radius: 999px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 42%, transparent);
  opacity: 0.5;
  transform: translate(-1px, -50%);
  transition:
    height 220ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.cue-marker.is-primary {
  height: 15px;
  opacity: 0.9;
}

.cue-marker.is-now {
  width: 4px;
  height: 22px;
  background:
    linear-gradient(180deg, var(--ink), var(--accent) 48%, color-mix(in srgb, var(--accent-2) 78%, var(--ink)));
  box-shadow:
    0 0 0 1px rgba(245, 238, 227, 0.22),
    0 0 18px color-mix(in srgb, var(--accent) 72%, transparent),
    0 0 40px color-mix(in srgb, var(--accent-2) 38%, transparent);
  opacity: 1;
  transform: translate(-2px, -50%) scaleY(1.05);
  animation: cueNowPulse 1.35s ease-in-out infinite;
}

@keyframes cueNowPulse {
  0%,
  100% {
    filter: brightness(1);
    transform: translate(-2px, -50%) scaleY(0.96);
  }
  50% {
    filter: brightness(1.32);
    transform: translate(-2px, -50%) scaleY(1.16);
  }
}

.timeline span,
.volume-control span {
  color: color-mix(in srgb, var(--label-tone, var(--muted)) 54%, var(--muted));
  font-size: 0.78rem;
  white-space: nowrap;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.volume-control {
  gap: 10px;
  min-width: 0;
}

.volume-control input {
  min-width: 0;
}

.gallery-dock {
  grid-area: dock;
  display: grid;
  gap: 10px;
  margin-top: -6px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(245, 238, 227, 0.1), rgba(245, 238, 227, 0.025)),
    rgba(8, 7, 6, 0.62);
  border: 1px solid rgba(245, 238, 227, 0.16);
  border-top: 2px solid var(--accent);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(245, 238, 227, 0.08);
  backdrop-filter: blur(18px);
}

.room-rail-frame {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: stretch;
}

.rail-glow-trail {
  position: absolute;
  top: var(--rail-glow-top, 0);
  left: 0;
  z-index: 1;
  width: var(--rail-glow-width, 196px);
  height: var(--rail-glow-height, 76px);
  pointer-events: none;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 64%);
  box-shadow:
    0 0 32px color-mix(in srgb, var(--accent) 22%, transparent),
    inset 0 0 24px color-mix(in srgb, var(--accent-2) 12%, transparent);
  opacity: var(--rail-glow-opacity, 0.74);
  transform: translateX(var(--rail-glow-left, 52px));
  transition:
    transform 220ms ease,
    width 220ms ease,
    height 220ms ease,
    opacity 220ms ease;
}

.rail-snap-target {
  position: absolute;
  top: 8px;
  bottom: 14px;
  left: 50%;
  z-index: 3;
  width: var(--snap-target-width, min(118px, 18%));
  pointer-events: none;
  border-radius: var(--snap-target-radius, 6px);
  background:
    var(--snap-target-extra, linear-gradient(transparent, transparent)),
    radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%),
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--label-tone, var(--accent-2)) 12%, transparent), transparent);
  clip-path: var(--snap-target-clip, none);
  opacity: 0.52;
  transform: translateX(-50%);
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    width 220ms ease,
    border-radius 220ms ease;
}

.rail-snap-target::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--label-tone, var(--ink)) 72%, transparent), transparent);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--label-tone, var(--ink)) 42%, transparent),
    0 0 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.rail-snap-target::after {
  content: "";
  position: absolute;
  inset: 14px 26%;
  border-top: 1px solid color-mix(in srgb, var(--label-tone, var(--ink)) 22%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  opacity: var(--snap-target-detail-opacity, 0.34);
}

.room-rail-frame[data-visual="annunciation"] {
  --snap-target-width: min(112px, 16%);
  --snap-target-radius: 999px;
}

.room-rail-frame[data-visual="textbook"] {
  --snap-target-width: min(96px, 15%);
  --snap-target-radius: 2px;
  --snap-target-extra: linear-gradient(90deg, transparent 48%, color-mix(in srgb, var(--label-tone) 14%, transparent) 49% 51%, transparent 52%);
}

.room-rail-frame[data-visual="standards"] {
  --snap-target-width: min(120px, 18%);
  --snap-target-radius: 3px;
  --snap-target-extra: repeating-linear-gradient(90deg, transparent 0 14px, color-mix(in srgb, var(--label-tone) 12%, transparent) 14px 15px);
}

.room-rail-frame[data-visual="submarine"] {
  --snap-target-width: min(132px, 20%);
  --snap-target-radius: 999px;
  --snap-target-extra: radial-gradient(circle at 50% 50%, transparent 0 24%, color-mix(in srgb, var(--label-tone) 18%, transparent) 25% 26%, transparent 27% 46%, color-mix(in srgb, var(--label-tone) 10%, transparent) 47% 48%, transparent 49%);
}

.room-rail-frame[data-visual="grain"] {
  --snap-target-width: min(124px, 18%);
  --snap-target-radius: 999px 7px 999px 7px;
}

.room-rail-frame[data-visual="verb"] {
  --snap-target-width: min(108px, 16%);
  --snap-target-radius: 999px;
  --snap-target-extra: radial-gradient(circle at 38% 50%, color-mix(in srgb, var(--label-tone) 10%, transparent), transparent 24%), radial-gradient(circle at 62% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 24%);
}

.room-rail-frame[data-visual="thaler"] {
  --snap-target-width: min(104px, 16%);
  --snap-target-radius: 4px;
  --snap-target-clip: polygon(12% 0, 88% 0, 100% 18%, 100% 82%, 88% 100%, 12% 100%, 0 82%, 0 18%);
}

.room-rail-frame[data-visual="sediment"] {
  --snap-target-width: min(128px, 19%);
  --snap-target-radius: 4px 4px 18px 18px;
  --snap-target-extra: repeating-linear-gradient(180deg, transparent 0 10px, color-mix(in srgb, var(--label-tone) 11%, transparent) 10px 11px);
}

.room-rail-frame[data-visual="hyperstition"] {
  --snap-target-width: min(106px, 16%);
  --snap-target-radius: 2px;
  --snap-target-clip: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.room-rail-frame[data-visual="lineage"] {
  --snap-target-width: min(138px, 20%);
  --snap-target-radius: 999px;
  --snap-target-extra: linear-gradient(90deg, transparent 13%, color-mix(in srgb, var(--label-tone) 18%, transparent) 14% 16%, transparent 17% 48%, color-mix(in srgb, var(--accent) 15%, transparent) 49% 51%, transparent 52% 82%, color-mix(in srgb, var(--label-tone) 18%, transparent) 83% 85%, transparent 86%);
}

.room-rail-frame[data-visual="submarine"] .rail-snap-target::before,
.room-rail-frame[data-visual="verb"] .rail-snap-target::before {
  top: 50%;
  bottom: auto;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--label-tone, var(--ink)) 42%, transparent);
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

.room-rail-frame[data-visual="textbook"] .rail-snap-target::before {
  transform: translateX(-50%) rotate(8deg);
}

.room-rail-frame[data-visual="grain"] .rail-snap-target::before,
.room-rail-frame[data-visual="sediment"] .rail-snap-target::before {
  top: 50%;
  bottom: auto;
  left: 24%;
  width: 52%;
  height: 1px;
  box-shadow:
    0 -8px 16px color-mix(in srgb, var(--label-tone, var(--ink)) 18%, transparent),
    0 8px 16px color-mix(in srgb, var(--accent) 14%, transparent);
}

.room-rail-frame.is-scrolling .rail-snap-target {
  opacity: 0.78;
  filter: brightness(1.18);
}

.room-rail-frame.is-scrolling .rail-glow-trail {
  opacity: var(--rail-glow-active-opacity, 1);
  box-shadow:
    0 0 44px color-mix(in srgb, var(--accent) 34%, transparent),
    inset 0 0 28px color-mix(in srgb, var(--accent-2) 16%, transparent);
}

.room-rail-frame::before,
.room-rail-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 6px;
  z-index: 3;
  width: 44px;
  pointer-events: none;
}

.room-rail-frame::before {
  left: 52px;
  background: linear-gradient(90deg, rgba(8, 7, 6, 0.72), transparent);
}

.room-rail-frame::after {
  right: 52px;
  background: linear-gradient(270deg, rgba(8, 7, 6, 0.72), transparent);
}

.rail-nav {
  position: relative;
  z-index: 4;
  min-height: 76px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 238, 227, 0.12), rgba(245, 238, 227, 0.04)),
    rgba(8, 7, 6, 0.74);
  border: 1px solid rgba(245, 238, 227, 0.18);
  border-radius: 6px;
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(245, 238, 227, 0.08);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.rail-nav:hover,
.rail-nav:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 62%, rgba(245, 238, 227, 0.28));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 20%, transparent), rgba(245, 238, 227, 0.05)),
    rgba(8, 7, 6, 0.82);
}

.rail-nav.is-disabled {
  opacity: 0.38;
  cursor: default;
}

.track-rail {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin-top: 0;
  padding: 0 0 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(245, 238, 227, 0.1);
}

.track-tab {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  flex: 0 0 178px;
  min-height: 66px;
  padding: 7px 8px 18px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.08), transparent 45%),
    rgba(245, 238, 227, 0.055);
  border: 1px solid rgba(245, 238, 227, 0.13);
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.track-tab::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 20%, color-mix(in srgb, var(--label-tone, var(--ink)) 26%, transparent) 44%, transparent 62%);
  opacity: 0;
  mix-blend-mode: screen;
  transform: translateX(-72%);
}

.track-tab:hover,
.track-tab:focus-visible {
  color: var(--ink);
  border-color: rgba(245, 238, 227, 0.36);
  outline: 0;
  transform: none;
}

.track-tab.is-active {
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), rgba(245, 238, 227, 0.04)),
    rgba(229, 95, 63, 0.18);
  border-color: rgba(229, 95, 63, 0.64);
}

.track-rail.is-playing .track-tab.is-active::after {
  opacity: calc(0.08 + var(--tab-energy, 0.22) * 0.24);
  animation: activeTabShimmer 2.7s ease-in-out infinite;
}

.room-rail-frame[data-mood="cinema"] .track-rail {
  gap: 10px;
}

.room-rail-frame[data-mood="cinema"] .track-tab {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), rgba(245, 238, 227, 0.035)),
    rgba(8, 7, 6, 0.52);
  border-color: color-mix(in srgb, var(--accent) 20%, rgba(245, 238, 227, 0.12));
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.18),
    inset 0 1px rgba(245, 238, 227, 0.05);
}

.room-rail-frame[data-mood="cinema"] .track-tab.is-active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, transparent), rgba(245, 238, 227, 0.04)),
    rgba(229, 95, 63, 0.14);
  border-color: color-mix(in srgb, var(--accent) 66%, rgba(245, 238, 227, 0.2));
  box-shadow:
    0 0 28px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 1px rgba(245, 238, 227, 0.07);
}

.room-rail-frame[data-mood="cinema"] .track-thumb {
  filter: saturate(0.9) contrast(1.06) brightness(0.94);
}

.room-rail-frame[data-mood="installation"] .track-rail {
  gap: 12px;
}

.room-rail-frame[data-mood="installation"] .track-tab {
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.09), transparent 48%),
    rgba(245, 238, 227, 0.07);
  border-color: color-mix(in srgb, var(--accent-2) 28%, rgba(245, 238, 227, 0.16));
  border-radius: 4px;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px rgba(245, 238, 227, 0.06);
}

.room-rail-frame[data-mood="installation"] .track-tab.is-active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 22%, transparent), rgba(245, 238, 227, 0.05)),
    rgba(123, 213, 196, 0.12);
  border-color: color-mix(in srgb, var(--accent-2) 64%, rgba(245, 238, 227, 0.2));
  box-shadow:
    0 0 28px color-mix(in srgb, var(--accent-2) 15%, transparent),
    inset 0 1px rgba(245, 238, 227, 0.08);
}

.room-rail-frame[data-mood="installation"] .track-thumb {
  border-radius: 3px;
  filter: saturate(0.98) contrast(1.04) brightness(0.98);
}

.track-tab.is-snap-breath {
  animation: railSnapBreath 560ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.track-tab.is-snap-breath .track-thumb {
  animation: railThumbBreath 560ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes railSnapBreath {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: none;
    border-color: color-mix(in srgb, var(--accent) 72%, rgba(245, 238, 227, 0.24));
    box-shadow: 0 0 28px color-mix(in srgb, var(--accent) var(--snap-glow, 22%), transparent);
  }
}

@keyframes railThumbBreath {
  0%,
  100% {
    filter: saturate(0.94) contrast(1.05);
    transform: none;
  }
  50% {
    filter: saturate(var(--thumb-saturate, 1.12)) contrast(var(--thumb-contrast, 1.12));
    transform: none;
  }
}

@keyframes activeTabShimmer {
  0% {
    transform: translateX(-72%);
  }
  46%,
  100% {
    transform: translateX(72%);
  }
}

.track-tab span {
  display: block;
}

.track-thumb {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(245, 238, 227, 0.18);
  border-radius: 4px;
  filter: saturate(0.94) contrast(1.05);
}

.track-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.track-index {
  color: var(--label-tone, var(--accent-2));
  font-size: 0.64rem;
  text-shadow: 0 0 12px color-mix(in srgb, var(--label-tone, var(--accent-2)) 28%, transparent);
}

.track-name {
  margin-top: 7px;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.track-detail {
  margin-top: 5px;
  color: color-mix(in srgb, var(--label-tone, var(--muted)) 34%, var(--muted));
  font-size: 0.62rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-wave {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 3px;
  height: 9px;
  opacity: 0;
  transition: opacity 220ms ease;
}

.track-wave i {
  flex: 1;
  height: calc(18% + var(--wave, 0.18) * 82%);
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent-2) 70%, var(--ink)));
  border-radius: 999px;
  transform-origin: bottom;
}

.track-tab.is-active .track-wave {
  opacity: 0.36;
}

.track-rail.is-playing .track-tab.is-active .track-wave {
  opacity: 1;
}

.story-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  color: var(--ink);
  background: #030302;
}

.story-overlay[hidden] {
  display: none;
}

.story-backdrop,
.story-backdrop img,
.story-backdrop::after {
  position: absolute;
  inset: 0;
}

.story-backdrop {
  z-index: 0;
  opacity: 0.54;
}

.story-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.12) brightness(0.36);
}

.story-backdrop::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 3, 2, 0.94), rgba(3, 3, 2, 0.36) 42%, rgba(3, 3, 2, 0.92)),
    linear-gradient(180deg, rgba(3, 3, 2, 0.18), rgba(3, 3, 2, 0.96) 78%),
    repeating-linear-gradient(90deg, rgba(245, 238, 227, 0.055), rgba(245, 238, 227, 0.055) 1px, transparent 1px, transparent 118px);
}

.story-ambience,
.story-ambience::before,
.story-ambience::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.story-ambience {
  z-index: 1;
  opacity: 0;
  overflow: hidden;
  transition: opacity 520ms ease;
}

.story-ambience::before,
.story-ambience::after {
  content: "";
}

.story-ambience::before {
  inset: -12%;
  background:
    radial-gradient(circle at 18% 26%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 28%),
    radial-gradient(circle at 74% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
    radial-gradient(circle at 62% 76%, rgba(122, 170, 214, 0.12), transparent 26%);
  filter: blur(42px);
  transform: translate3d(-2%, -1%, 0) scale(1.02);
  animation: storyAmbienceDrift 24s ease-in-out infinite alternate;
}

.story-ambience::after {
  inset: 0;
  background:
    linear-gradient(118deg, transparent 18%, rgba(170, 214, 240, 0.06) 42%, transparent 64%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.54;
  animation: storyAmbienceSweep 19s ease-in-out infinite;
}

@keyframes storyAmbienceDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.03);
  }
}

@keyframes storyAmbienceSweep {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(-5%);
  }
  50% {
    opacity: 0.58;
    transform: translateX(5%);
  }
}

.story-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  padding: 12px 22px 10px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(3, 3, 2, 0.9), rgba(3, 3, 2, 0.56));
  border-bottom: 1px solid rgba(245, 238, 227, 0.14);
  backdrop-filter: blur(18px);
}

.story-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}

.story-speed-control {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.story-speed-control.is-manual .story-speed-track {
  opacity: 0.54;
  filter: saturate(0.74);
}

.story-speed-control.is-manual .story-speed-value {
  color: color-mix(in srgb, var(--muted) 90%, var(--ink));
}

.story-speed-label {
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-speed-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: clamp(164px, 18vw, 220px);
  padding: 6px 10px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.06), rgba(245, 238, 227, 0.02)),
    rgba(8, 7, 6, 0.46);
  border: 1px solid rgba(245, 238, 227, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(245, 238, 227, 0.04);
}

.story-speed-range {
  --story-speed-progress: 20%;
  flex: 1 1 auto;
  width: clamp(108px, 12vw, 154px);
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.story-speed-range:focus-visible {
  outline: none;
}

.story-speed-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--accent) 82%, var(--ink)) 0%,
      color-mix(in srgb, var(--accent) 82%, var(--ink)) var(--story-speed-progress),
      rgba(245, 238, 227, 0.12) var(--story-speed-progress),
      rgba(245, 238, 227, 0.12) 100%);
  box-shadow: inset 0 0 0 1px rgba(245, 238, 227, 0.04);
}

.story-speed-range::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 238, 227, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 238, 227, 0.04);
}

.story-speed-range::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 82%, var(--ink));
}

.story-speed-range::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(245, 238, 227, 0.26));
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.08) 58%),
    color-mix(in srgb, var(--accent) 80%, var(--ink));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 28%, transparent);
}

.story-speed-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(245, 238, 227, 0.26));
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.08) 58%),
    color-mix(in srgb, var(--accent) 80%, var(--ink));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 28%, transparent);
}

.story-speed-value {
  min-width: 36px;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
}

.story-speed-saved {
  position: absolute;
  right: 10px;
  bottom: -28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  color: color-mix(in srgb, var(--ink) 88%, var(--accent-2));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(245, 238, 227, 0.06)),
    rgba(8, 7, 6, 0.74);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, rgba(245, 238, 227, 0.14));
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.story-speed-saved::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 26%, transparent);
}

.story-speed-saved.is-visible {
  animation: storySpeedSavedIn 1.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.story-scroll-mode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.06), rgba(245, 238, 227, 0.02)),
    rgba(8, 7, 6, 0.46);
  border: 1px solid rgba(245, 238, 227, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(245, 238, 227, 0.04);
}

.story-scroll-mode-button {
  min-width: 62px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  color: color-mix(in srgb, var(--muted) 90%, var(--ink));
  background: transparent;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.story-scroll-mode-button:hover,
.story-scroll-mode-button:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.story-scroll-mode-button.is-active {
  color: #120f0c;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 64%),
    color-mix(in srgb, var(--accent) 84%, var(--ink));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 22%, rgba(245, 238, 227, 0.16)),
    0 8px 20px color-mix(in srgb, var(--accent) 18%, transparent);
}

@keyframes storySpeedSavedIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  16%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.story-control-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.story-control-row::before {
  content: "";
  position: absolute;
  inset: -10px -12px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    linear-gradient(90deg, transparent, rgba(245, 238, 227, 0.08), transparent);
  opacity: 0.72;
}

.story-scroll-hint {
  position: relative;
  align-self: center;
  margin: 0;
  padding: 0 18px 0 0;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-scroll-hint::before {
  content: "";
  position: absolute;
  right: 7px;
  top: 50%;
  width: 1px;
  height: 22px;
  background: rgba(245, 238, 227, 0.32);
  transform: translateY(-50%);
}

.story-scroll-hint::after {
  content: "";
  position: absolute;
  right: 4px;
  top: calc(50% - 8px);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.38;
  }
  50% {
    transform: translateY(14px);
    opacity: 1;
  }
}

.story-topbar p {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
}

.story-topbar .story-scroll-hint {
  margin: 0;
  color: var(--muted);
}

.story-overlay[data-scroll-mode="manual"] .story-scroll-hint::after {
  animation: none;
  transform: translateY(14px);
  opacity: 0.78;
}

.story-topbar h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  font-weight: 500;
  line-height: 0.96;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-heading {
  display: none;
}

.story-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.story-source-label,
.story-docx-badge,
.story-refresh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.story-source-label {
  color: color-mix(in srgb, var(--ink) 62%, var(--accent-2));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 14%, transparent), rgba(245, 238, 227, 0.05)),
    rgba(8, 7, 6, 0.42);
  border: 1px solid color-mix(in srgb, var(--accent-2) 24%, rgba(245, 238, 227, 0.15));
}

.story-source-label::before {
  content: attr(data-format);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 18px;
  padding: 0 6px;
  color: #120f0c;
  background: color-mix(in srgb, var(--accent-2) 78%, var(--ink));
  border-radius: 999px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-2) 22%, transparent);
}

.story-docx-badge {
  color: color-mix(in srgb, var(--ink) 84%, rgba(166, 208, 255, 0.94));
  background:
    linear-gradient(135deg, rgba(104, 168, 255, 0.24), rgba(245, 238, 227, 0.06)),
    rgba(8, 11, 16, 0.5);
  border: 1px solid rgba(138, 190, 255, 0.34);
  box-shadow: 0 0 22px rgba(94, 151, 255, 0.12);
}

.story-docx-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px rgba(120, 178, 255, 0.34);
}

.story-refresh-badge {
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(245, 238, 227, 0.08)),
    rgba(8, 7, 6, 0.48);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, rgba(245, 238, 227, 0.18));
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 18%, transparent);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
}

.story-refresh-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 44%, transparent);
}

.story-refresh-badge.is-visible {
  animation: storyRefreshBadgeIn 2.2s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes storyRefreshBadgeIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(8px) scale(0.96);
  }
  18%,
  70% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(-6px) scale(1.015);
  }
}

.story-main-button {
  color: #120f0c;
}

.story-next-button {
  min-width: 106px;
}

.story-close-button {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), rgba(245, 238, 227, 0.08)),
    rgba(18, 15, 12, 0.5);
  border-color: color-mix(in srgb, var(--accent) 26%, rgba(245, 238, 227, 0.26));
  color: var(--ink);
}

.story-immersive-button {
  min-width: 108px;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 16%, transparent), rgba(245, 238, 227, 0.06)),
    rgba(8, 7, 6, 0.48);
  border-color: color-mix(in srgb, var(--accent-2) 32%, rgba(245, 238, 227, 0.2));
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.32),
    0 0 22px color-mix(in srgb, var(--accent-2) 14%, transparent);
}

.story-topbar .story-cinema-button,
.story-topbar .story-close-button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.62rem;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(8, 7, 6, 0.08) inset;
}

.story-stage {
  position: absolute;
  inset: 96px 0 0;
  z-index: 2;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(245, 238, 227, 0.08);
}

.story-topbar::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 58%, rgba(245, 238, 227, 0.16)), transparent);
  transform: scaleX(0.72);
  transform-origin: center;
}

.story-overlay.is-refresh-pulsing .story-topbar::after {
  animation: storyRefreshSweep 1.28s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes storyRefreshSweep {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: scaleX(0.64);
  }
  26%,
  62% {
    opacity: 0.92;
    filter: blur(0);
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    filter: blur(6px);
    transform: scaleX(1.08);
  }
}

.story-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(180deg, #030302 8%, rgba(3, 3, 2, 0));
}

.story-stage::after {
  content: "";
  position: absolute;
  left: clamp(36px, 8vw, 128px);
  right: clamp(24px, 7vw, 112px);
  top: 58%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(245, 238, 227, 0.28), transparent);
  opacity: 0.64;
}

.story-crawl {
  position: relative;
  width: min(860px, 84vw);
  min-height: 0;
  margin-left: clamp(34px, 12vw, 190px);
  padding: clamp(72px, 11vh, 128px) 0 22vh clamp(24px, 4vw, 58px);
  color: var(--ink);
  text-align: left;
  text-transform: none;
  transform-origin: 0 0;
  border-left: 1px solid rgba(245, 238, 227, 0.22);
}

.story-body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.story-title {
  max-width: 720px;
  margin: 0 0 0.85em;
  letter-spacing: -0.045em;
  color: rgba(255, 255, 255, 0.98);
}

.story-crawl::before {
  content: "";
  position: absolute;
  left: -1px;
  top: clamp(72px, 11vh, 128px);
  width: 1px;
  height: 28vh;
  background: var(--accent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 46%, transparent);
}

.story-crawl h3 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 7.2rem);
  line-height: 0.86;
  font-weight: 500;
}

.story-crawl h3 {
  position: relative;
  max-width: 9ch;
  text-wrap: balance;
}

.story-crawl h3::after {
  content: "";
  display: block;
  width: min(140px, 18vw);
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 54%, rgba(245, 238, 227, 0.18)), transparent);
}

.story-crawl p {
  margin: 0 0 24px;
  max-width: 68ch;
  padding-left: 18px;
  color: var(--muted);
  border-left: 2px solid transparent;
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  line-height: 1.56;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.52;
  transition:
    color 420ms ease,
    opacity 420ms ease,
    border-color 420ms ease,
    transform 420ms ease;
}

.story-crawl p:first-of-type {
  max-width: 42ch;
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 2.45rem);
  line-height: 1.12;
  opacity: 0.94;
}

.story-crawl p.is-current {
  color: var(--ink);
  border-color: var(--accent);
  opacity: 1;
  transform: translateX(8px);
}

.story-crawl .story-passage {
  position: relative;
  max-width: min(620px, calc(100% - 44px));
  margin: 0 0 32px;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.92);
  border-left: 1px solid rgba(245, 238, 227, 0.15);
  font-family: inherit;
  font-size: clamp(1.02rem, 1.18vw, 1.12rem);
  line-height: 1.75;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-wrap: pretty;
  opacity: 0.58;
  transition:
    color 420ms ease,
    opacity 420ms ease,
    border-color 420ms ease,
    transform 420ms ease,
    filter 600ms ease,
    text-shadow 420ms ease;
}

.story-status {
  max-width: min(620px, calc(100% - 44px));
  margin: 0 0 28px;
  padding: 13px 16px;
  color: color-mix(in srgb, var(--ink) 88%, var(--accent-2));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 10%, transparent), rgba(245, 238, 227, 0.035)),
    rgba(8, 7, 6, 0.54);
  border: 1px solid color-mix(in srgb, var(--accent-2) 28%, rgba(245, 238, 227, 0.14));
  border-left: 2px solid var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.story-status--loading::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 9px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  vertical-align: -0.08em;
  animation: statusSpin 900ms linear infinite;
}

.story-status--cached {
  color: color-mix(in srgb, var(--ink) 88%, var(--accent));
  border-color: rgba(229, 189, 123, 0.38);
  border-left: 2px solid #e5bd7b;
}

.story-status--unavailable {
  color: var(--ink);
  background: rgba(229, 95, 63, 0.16);
  border-color: rgba(229, 95, 63, 0.48);
  border-left: 2px solid #e55f3f;
}

[data-beat] {
  will-change: opacity, transform, filter;
}

.story-overlay.story-mode-manual .story-body [data-beat] {
  opacity: 1;
  transform: none;
  filter: none;
}

.story-overlay.story-mode-auto .story-body [data-beat].is-beat-hidden {
  opacity: 0 !important;
  transform: translateY(10px);
  filter: blur(6px);
  pointer-events: none;
}

.story-overlay.story-mode-auto .story-body [data-beat].is-visible,
.story-overlay.story-mode-auto .story-body [data-beat].is-beat-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    filter 900ms ease;
}

.story-break {
  height: clamp(32px, 5vw, 64px);
}

.story-rule {
  width: 52px;
  height: 1px;
  margin: clamp(32px, 5vw, 64px) 0;
  background: rgba(255, 255, 255, 0.28);
}

.story-crawl .story-passage.story-emphasis:not(.is-deck):not(.is-quote):not(.is-chapter) {
  margin: 40px 0;
  font-size: clamp(1.16rem, 1.7vw, 1.58rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.story-crawl .story-passage.story-soft:not(.is-current) {
  opacity: 0.44;
}

.story-crawl .story-passage.story-hit {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.story-crawl .story-passage.story-whisper {
  font-size: 0.92em;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.52);
}

@media (prefers-reduced-motion: reduce) {
  .story-overlay.story-mode-auto .story-body [data-beat],
  .story-overlay.story-mode-auto .story-body [data-beat].is-visible,
  .story-overlay.story-mode-auto .story-body [data-beat].is-beat-revealed {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.story-crawl .story-passage::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.82em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 36%, rgba(245, 238, 227, 0.18));
  opacity: 0.42;
  transform: scale(0.92);
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    background 420ms ease,
    box-shadow 420ms ease;
}

.story-crawl .story-passage::after {
  content: none;
  display: none;
}

.story-line {
  display: block;
}

.story-run {
  display: inline;
}

.story-run.is-bold {
  color: color-mix(in srgb, var(--ink) 88%, var(--accent-2));
  font-weight: 720;
}

.story-run.is-italic {
  color: color-mix(in srgb, var(--ink) 84%, var(--accent));
  font-style: italic;
}

.story-run.is-bold.is-italic {
  color: color-mix(in srgb, var(--ink) 92%, var(--accent));
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 16%, transparent);
}

.story-crawl .story-passage.is-multiline {
  display: grid;
  gap: 0.52rem;
}

.story-crawl .story-passage.is-deck {
  max-width: 34ch;
  padding-left: 0;
  color: color-mix(in srgb, var(--accent-2) 72%, var(--ink));
  border-left: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.48rem, 2.55vw, 2.44rem);
  line-height: 1.14;
  opacity: 0.96;
}

.story-crawl .story-passage.is-deck::before {
  display: none;
}

.story-crawl .story-passage.is-deck::after {
  left: 0;
}

.story-crawl .story-passage.is-chapter {
  max-width: 30ch;
  margin-top: 48px;
  padding: 0 0 12px;
  color: color-mix(in srgb, var(--accent-2) 74%, var(--ink));
  border-left: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 26%, rgba(245, 238, 227, 0.16));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.42rem, 2.35vw, 2.24rem);
  line-height: 1.18;
  opacity: 0.96;
}

.story-crawl .story-passage.is-chapter::before {
  display: none;
}

.story-crawl .story-passage.is-chapter::after {
  left: 0;
}

.story-crawl .story-passage.is-chapter[data-heading-level="1"] {
  max-width: 28ch;
  margin-top: 56px;
  padding-bottom: 14px;
  font-size: clamp(1.52rem, 2.55vw, 2.48rem);
  line-height: 1.12;
}

.story-crawl .story-passage.is-chapter[data-heading-level="2"] {
  max-width: 38ch;
  margin-top: 36px;
  padding-bottom: 10px;
  color: color-mix(in srgb, var(--ink) 84%, var(--accent-2));
  font-size: clamp(1rem, 1.34vw, 1.22rem);
  font-weight: 800;
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
  line-height: 1.34;
  text-transform: uppercase;
}

.story-crawl .story-passage.is-chapter[data-heading-level="2"]::after {
  color: color-mix(in srgb, var(--accent) 64%, var(--accent-2));
}

.story-crawl .story-passage.is-chapter[data-heading-level="3"],
.story-crawl .story-passage.is-chapter[data-heading-level="4"] {
  max-width: 42ch;
  margin-top: 30px;
  padding-bottom: 8px;
  color: color-mix(in srgb, var(--ink) 82%, var(--accent));
  font-size: clamp(0.94rem, 1.18vw, 1.08rem);
  font-weight: 800;
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.story-crawl .story-passage.is-lead {
  max-width: 31ch;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 1.9vw, 1.88rem);
  line-height: 1.36;
  opacity: 0.92;
}

.story-crawl .story-passage.is-pull {
  max-width: 28ch;
  margin-left: clamp(10px, 2vw, 30px);
  padding-top: 14px;
  color: color-mix(in srgb, var(--accent-2) 60%, var(--ink));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.62vw, 1.54rem);
  line-height: 1.46;
  border-left-color: color-mix(in srgb, var(--accent) 40%, rgba(245, 238, 227, 0.16));
}

.story-crawl .story-passage.is-pull .story-run.is-bold,
.story-crawl .story-passage.is-pull .story-run.is-italic {
  color: color-mix(in srgb, var(--ink) 92%, var(--accent));
}

.story-crawl .story-passage.is-quote {
  max-width: 26ch;
  margin: 24px 0 48px clamp(18px, 4vw, 54px);
  padding: 22px 24px 24px 28px;
  color: color-mix(in srgb, var(--ink) 92%, var(--accent-2));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(245, 238, 227, 0.04)),
    rgba(8, 7, 6, 0.36);
  border-left: 1px solid color-mix(in srgb, var(--accent) 38%, rgba(245, 238, 227, 0.18));
  border-radius: 0 10px 10px 0;
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.12),
    0 0 22px color-mix(in srgb, var(--accent) 10%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.24rem, 1.95vw, 1.86rem);
  line-height: 1.36;
  opacity: 0.98;
}

.story-crawl .story-passage.is-quote::before {
  left: 14px;
  top: 22px;
  width: 2px;
  height: calc(100% - 44px);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 78%, white),
    color-mix(in srgb, var(--accent-2) 42%, transparent) 72%,
    transparent
  );
  content: "";
  opacity: 0.82;
  transform: none;
  box-shadow:
    0 0 18px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 36px color-mix(in srgb, var(--accent-2) 10%, transparent);
}

.story-crawl .story-passage.is-quote::after {
  left: 28px;
}

.story-crawl .story-passage.is-quote .story-run.is-bold,
.story-crawl .story-passage.is-quote .story-run.is-italic {
  color: color-mix(in srgb, var(--ink) 96%, var(--accent));
}

.story-crawl .story-passage.is-list {
  max-width: 50ch;
  gap: 0.66rem;
  padding-left: calc(24px + clamp(0px, var(--story-list-level, 0) * 14px, 56px));
  color: color-mix(in srgb, var(--ink) 80%, var(--muted));
}

.story-crawl .story-passage.is-list .story-line {
  position: relative;
  padding-left: 16px;
}

.story-crawl .story-passage.is-list .story-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 68%, rgba(245, 238, 227, 0.28));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 24%, transparent);
}

.story-crawl .story-passage.is-list[data-list-kind="decimal"] .story-line::before {
  content: attr(data-list-marker);
  top: 0.02em;
  width: auto;
  height: auto;
  color: color-mix(in srgb, var(--ink) 94%, var(--accent));
  background: none;
  border: 0;
  box-shadow: none;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.story-crawl .story-passage.is-list[data-list-kind="decimal"] .story-line {
  padding-left: 26px;
}

.story-crawl .story-passage.is-list[data-list-kind="decimal"] .story-line.is-list-continuation::before {
  content: "";
  display: none;
}

.story-crawl .story-passage.is-closing {
  margin-top: 40px;
  max-width: 34ch;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.14rem, 1.7vw, 1.68rem);
  line-height: 1.42;
  opacity: 0.9;
}

.story-crawl .story-passage.is-current {
  color: var(--ink);
  border-left-color: color-mix(in srgb, var(--accent) 64%, rgba(245, 238, 227, 0.26));
  opacity: 1;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateX(10px);
}

.story-crawl .story-passage.is-current::before {
  opacity: 1;
  transform: scale(1.18);
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 36%, transparent);
}

.story-crawl .story-passage.is-current::after {
  color: color-mix(in srgb, var(--accent) 64%, var(--ink));
}

.story-overlay.is-album .story-crawl {
  width: min(940px, 84vw);
}

.story-overlay.is-album .story-topbar {
  background: linear-gradient(180deg, rgba(6, 10, 14, 0.8), rgba(4, 7, 10, 0.46));
  border-bottom-color: color-mix(in srgb, var(--accent-2) 22%, rgba(245, 238, 227, 0.1));
}

.story-overlay.is-album .story-control-row::before {
  opacity: 0.56;
  background:
    radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 68%),
    linear-gradient(90deg, transparent, rgba(245, 238, 227, 0.05), transparent);
}

.story-overlay.is-album .story-speed-track {
  border-color: color-mix(in srgb, var(--accent-2) 24%, rgba(245, 238, 227, 0.12));
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.04),
    0 0 22px color-mix(in srgb, var(--accent-2) 8%, transparent);
}

.story-overlay.is-album .story-scroll-mode {
  border-color: color-mix(in srgb, var(--accent-2) 24%, rgba(245, 238, 227, 0.12));
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.04),
    0 0 22px color-mix(in srgb, var(--accent-2) 8%, transparent);
}

.story-overlay.is-album .story-speed-range::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--accent-2) 80%, var(--ink)) 0%,
      color-mix(in srgb, var(--accent-2) 80%, var(--ink)) var(--story-speed-progress),
      rgba(245, 238, 227, 0.12) var(--story-speed-progress),
      rgba(245, 238, 227, 0.12) 100%);
}

.story-overlay.is-album .story-speed-range::-moz-range-progress {
  background: color-mix(in srgb, var(--accent-2) 80%, var(--ink));
}

.story-overlay.is-album .story-speed-range::-webkit-slider-thumb,
.story-overlay.is-album .story-speed-range::-moz-range-thumb {
  border-color: color-mix(in srgb, var(--accent-2) 34%, rgba(245, 238, 227, 0.26));
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.08) 58%),
    color-mix(in srgb, var(--accent-2) 80%, var(--ink));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent-2) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--accent-2) 26%, transparent);
}

.story-overlay.is-album .story-scroll-mode-button.is-active {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 64%),
    color-mix(in srgb, var(--accent-2) 82%, var(--ink));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-2) 22%, rgba(245, 238, 227, 0.16)),
    0 8px 20px color-mix(in srgb, var(--accent-2) 16%, transparent);
}

.story-overlay.is-album #storyRoom {
  display: none;
}

.story-overlay.is-album .story-scroll-hint::after {
  background: var(--accent-2);
}

.story-overlay.is-album .story-pause-button,
.story-overlay.is-album .story-close-button {
  border-color: color-mix(in srgb, var(--accent-2) 32%, rgba(245, 238, 227, 0.18));
}

.story-overlay.is-album .story-crawl h3 {
  max-width: 10ch;
}

.story-overlay.is-album .story-backdrop {
  opacity: 0.44;
}

.story-overlay.is-album .story-backdrop img {
  filter: saturate(0.95) contrast(1.08) brightness(0.42);
}

.story-overlay.is-album .story-ambience {
  opacity: 0.86;
}

.story-overlay.is-album .story-backdrop::after {
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.95), rgba(6, 10, 14, 0.4) 44%, rgba(5, 8, 12, 0.92)),
    linear-gradient(180deg, rgba(4, 8, 12, 0.12), rgba(3, 6, 10, 0.96) 78%),
    repeating-linear-gradient(90deg, rgba(162, 194, 223, 0.045), rgba(162, 194, 223, 0.045) 1px, transparent 1px, transparent 118px);
}

.story-overlay.is-album .story-source-label {
  color: color-mix(in srgb, var(--accent-2) 72%, var(--ink));
  border-color: color-mix(in srgb, var(--accent-2) 30%, rgba(245, 238, 227, 0.15));
}

.story-overlay.is-album .story-docx-badge {
  border-color: color-mix(in srgb, var(--accent-2) 36%, rgba(245, 238, 227, 0.18));
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent-2) 16%, transparent);
}

.story-overlay.is-album .story-refresh-badge {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 16%, transparent), rgba(245, 238, 227, 0.08)),
    rgba(8, 10, 14, 0.48);
  border-color: color-mix(in srgb, var(--accent-2) 32%, rgba(245, 238, 227, 0.18));
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent-2) 16%, transparent);
}

.story-overlay.is-album .story-immersive-button {
  border-color: color-mix(in srgb, var(--accent-2) 34%, rgba(245, 238, 227, 0.18));
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.32),
    0 0 24px color-mix(in srgb, var(--accent-2) 16%, transparent);
}

.story-overlay.is-album .story-crawl .story-passage {
  border-left-color: color-mix(in srgb, var(--accent-2) 20%, rgba(245, 238, 227, 0.14));
  color: color-mix(in srgb, var(--ink) 78%, rgba(198, 209, 220, 0.9));
}

.story-overlay.is-album .story-crawl .story-passage::before {
  background: color-mix(in srgb, var(--accent-2) 42%, rgba(245, 238, 227, 0.18));
}

.story-overlay.is-album .story-crawl .story-passage::after {
  color: color-mix(in srgb, var(--accent-2) 66%, var(--ink));
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent-2) 14%, transparent);
}

.story-overlay.is-album .story-crawl .story-passage.is-deck,
.story-overlay.is-album .story-crawl .story-passage.is-pull {
  color: color-mix(in srgb, var(--accent-2) 74%, var(--ink));
}

.story-overlay.is-album .story-crawl .story-passage.is-current {
  border-left-color: color-mix(in srgb, var(--accent-2) 62%, rgba(245, 238, 227, 0.2));
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent-2) 10%, transparent);
}

.story-overlay.is-album .story-crawl .story-passage.is-current::before {
  background: var(--accent-2);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-2) 34%, transparent);
}

.support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.07), rgba(245, 238, 227, 0.025)),
    rgba(8, 7, 6, 0.36);
  border: 1px solid color-mix(in srgb, var(--accent-2) 34%, rgba(245, 238, 227, 0.18));
  border-radius: 6px;
  box-shadow: inset 0 1px rgba(245, 238, 227, 0.07);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transition:
    transform 220ms ease,
    filter 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.support-btn:hover,
.support-btn:focus-visible {
  outline: 0;
  filter: brightness(1.08);
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-2) 58%, rgba(245, 238, 227, 0.24));
  box-shadow:
    inset 0 1px rgba(245, 238, 227, 0.1),
    0 0 28px color-mix(in srgb, var(--accent-2) 12%, transparent);
}

.support-btn.primary {
  color: #080706;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 62%, var(--ink)), var(--ink));
  border-color: color-mix(in srgb, var(--accent-2) 42%, var(--ink));
}

.support-btn.secondary {
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  border-color: rgba(245, 238, 227, 0.18);
}

.download-page {
  min-height: 100svh;
  overflow: auto;
  background: #070606;
}

.download-backdrop,
.download-backdrop img {
  position: fixed;
  inset: 0;
}

.download-backdrop {
  z-index: -2;
  overflow: hidden;
  background: #070606;
}

.download-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.86) contrast(1.16) brightness(0.5);
  transform: scale(1.04);
}

.download-backdrop::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 28% 24%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 34%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.94), rgba(8, 7, 6, 0.52) 48%, rgba(8, 7, 6, 0.9)),
    linear-gradient(180deg, rgba(8, 7, 6, 0.2), rgba(8, 7, 6, 0.92));
}

.download-shell {
  display: grid;
  align-content: center;
  gap: clamp(42px, 7vh, 72px);
  width: min(680px, calc(100vw - 36px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(32px, 7vh, 72px) 0;
}

.download-brand {
  width: fit-content;
}

.download-panel {
  padding: clamp(34px, 6vw, 58px);
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 48%),
    linear-gradient(135deg, rgba(245, 238, 227, 0.075), rgba(245, 238, 227, 0.025)),
    rgba(8, 7, 6, 0.7);
  border: 1px solid rgba(245, 238, 227, 0.16);
  border-left: 2px solid var(--accent-2);
  border-radius: 8px;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(245, 238, 227, 0.08);
  backdrop-filter: blur(18px);
}

.download-kicker,
.download-note {
  margin: 0;
  color: color-mix(in srgb, var(--accent-2) 78%, var(--ink));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.download-panel h1 {
  max-width: 9ch;
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 10vw, 6.3rem);
  line-height: 0.9;
  font-weight: 500;
}

.download-copy {
  max-width: 29ch;
  margin: 22px 0 0;
  color: color-mix(in srgb, var(--ink) 74%, var(--muted));
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  line-height: 1.42;
}

.download-actions {
  display: grid;
  gap: 12px;
  margin-top: 38px;
}

.download-note {
  margin-top: 28px;
  color: color-mix(in srgb, var(--ink) 54%, transparent);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
}

/* =========================
   PURCHASE PAGE
========================= */

.purchase-page {
  min-height: 100vh;
  overflow: auto;
  background: #07090d;
  color: rgba(255, 255, 255, 0.92);
}

.purchase-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.94), rgba(7, 9, 13, 0.64) 46%, rgba(7, 9, 13, 0.96)),
    linear-gradient(180deg, rgba(7, 9, 13, 0.58), #07090d 86%),
    url("../Audible Cover Images/Audible Cover Varience.jpg") center / cover;
  filter: saturate(0.82) contrast(1.12);
}

.purchase-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(245, 238, 227, 0.032), rgba(245, 238, 227, 0.032) 1px, transparent 1px, transparent 132px),
    linear-gradient(180deg, rgba(245, 238, 227, 0.035), transparent 28%, rgba(0, 0, 0, 0.28));
  opacity: 0.62;
}

.purchase-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.purchase-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(72px, 11vw, 116px);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.purchase-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.purchase-nav a:hover,
.purchase-nav a:focus-visible {
  color: #fff;
  outline: 0;
  transform: translateX(-2px);
}

.purchase-nav-label {
  text-align: right;
}

.purchase-hero {
  max-width: 760px;
  margin-bottom: clamp(72px, 10vw, 112px);
}

.purchase-kicker {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.purchase-title {
  margin: 0 0 28px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.92;
  text-wrap: balance;
}

.purchase-subtitle {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.36rem;
  line-height: 1.2;
  text-wrap: balance;
}

.purchase-body {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.75;
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.purchase-section-label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.purchase-intent {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  margin: 0 0 clamp(64px, 9vw, 104px);
  padding: clamp(34px, 5vw, 56px) 0;
  border-top: 1px solid rgba(245, 238, 227, 0.12);
  border-bottom: 1px solid rgba(245, 238, 227, 0.1);
}

.purchase-intent h2 {
  max-width: 13ch;
  margin: 0 0 22px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4.5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
}

.purchase-intent-copy p:last-child {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  line-height: 1.75;
}

.purchase-system {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(245, 238, 227, 0.12);
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.04), rgba(245, 238, 227, 0.012)),
    rgba(7, 9, 13, 0.46);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(245, 238, 227, 0.06);
  backdrop-filter: blur(18px);
}

.purchase-system-node {
  position: relative;
  display: grid;
  min-height: 178px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px 18px;
  text-align: center;
}

.purchase-system-node + .purchase-system-node {
  border-left: 1px solid rgba(245, 238, 227, 0.1);
}

.purchase-system-node span,
.purchase-system-node em {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.purchase-system-node strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1;
}

.purchase-system-node.featured {
  background:
    radial-gradient(circle at 50% 35%, rgba(218, 168, 104, 0.18), transparent 58%),
    rgba(245, 238, 227, 0.025);
}

.purchase-system-node.featured em {
  color: rgba(218, 168, 104, 0.9);
}

.purchase-intent-note {
  grid-column: 1 / -1;
  max-width: 560px;
  margin: -12px 0 0;
  padding-left: 22px;
  color: rgba(245, 238, 227, 0.78);
  border-left: 2px solid rgba(218, 168, 104, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.purchase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.055), rgba(245, 238, 227, 0.018)),
    rgba(7, 9, 13, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  box-shadow: inset 0 1px rgba(245, 238, 227, 0.07);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.purchase-btn:hover,
.purchase-btn:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.42);
  outline: 0;
  transform: translateY(-1px);
}

.purchase-btn.primary {
  color: #080706;
  background:
    linear-gradient(135deg, rgba(123, 213, 196, 0.82), var(--ink));
  border-color: rgba(255, 255, 255, 0.78);
}

.purchase-btn.secondary {
  color: rgba(255, 255, 255, 0.7);
}

.purchase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.purchase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.048), rgba(245, 238, 227, 0.018)),
    rgba(7, 9, 13, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.18),
    inset 0 1px rgba(245, 238, 227, 0.06);
  backdrop-filter: blur(18px);
}

.purchase-card.recommended {
  background:
    linear-gradient(135deg, rgba(245, 238, 227, 0.07), rgba(245, 238, 227, 0.022)),
    rgba(7, 9, 13, 0.72);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 30px 94px rgba(0, 0, 0, 0.26),
    0 0 44px rgba(123, 213, 196, 0.08),
    inset 0 1px rgba(245, 238, 227, 0.08);
}

.purchase-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.purchase-card-type {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.purchase-card-title {
  max-width: 14ch;
  margin: 0 0 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
}

.purchase-card-description {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
  line-height: 1.65;
}

.purchase-includes {
  margin: 0 0 28px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.7;
}

.purchase-includes li + li {
  margin-top: 4px;
}

.purchase-card .purchase-btn {
  width: 100%;
  margin-top: auto;
}

.purchase-support-note {
  max-width: 620px;
  margin: 56px auto 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: center;
}

.purchase-footer {
  margin-top: 80px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .purchase-title {
    font-size: 5.4rem;
  }

  .purchase-subtitle {
    font-size: 2rem;
  }

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

  .purchase-card.recommended {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .purchase-card.recommended .purchase-card-title,
  .purchase-card.recommended .purchase-card-description,
  .purchase-card.recommended .purchase-includes {
    max-width: 760px;
  }
}

@media (max-width: 820px) {
  .purchase-intent {
    grid-template-columns: 1fr;
  }

  .purchase-system {
    grid-template-columns: 1fr;
  }

  .purchase-system-node {
    min-height: 142px;
  }

  .purchase-system-node + .purchase-system-node {
    border-left: 0;
    border-top: 1px solid rgba(245, 238, 227, 0.1);
  }

  .purchase-intent-note {
    margin-top: 0;
  }
}

@media (min-width: 1120px) {
  .purchase-title {
    font-size: 6.5rem;
  }

  .purchase-subtitle {
    font-size: 2.12rem;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .header-statement {
    grid-template-columns: auto auto;
  }

  .stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "artwork"
      "dock"
      "projection";
    min-height: 0;
  }

  .billboard {
    width: min(100%, 448px);
  }

  .projection {
    min-height: 0;
    padding: 16px 0 0;
  }

  .projection h2 {
    font-size: 4.4rem;
  }

  .track-rail {
    margin-top: 0;
  }

  .room-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .track-tab {
    flex-basis: 168px;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .track-thumb {
    width: 44px;
    height: 44px;
  }

  .idle-lyric-cinema h2 {
    font-size: 4.1rem;
  }

  .story-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 14px 22px 12px;
  }

  .story-topbar-actions {
    justify-content: space-between;
    gap: 10px 12px;
  }

  .story-control-row {
    justify-content: flex-start;
  }

  .story-stage {
    inset: 134px 0 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 16px 18px;
  }

  .header-statement {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .header-utility {
    justify-self: start;
  }

  .view-indicator {
    margin-top: 2px;
  }

  .settings-panel {
    padding: 82px 12px 12px;
  }

  .settings-panel-inner {
    width: min(100%, 480px);
  }

  .settings-presets,
  .settings-image-row {
    grid-template-columns: 1fr;
  }

  .settings-visualizer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-visualizer {
    min-height: 102px;
  }

  .header-statement strong {
    white-space: normal;
  }

  .listening-room {
    padding: 0 16px;
  }

  .opening-screen {
    inset: 0 -16px;
    min-height: 0;
    margin: 0;
  }

  .stage {
    inset: 0 16px;
    padding: 16px 0 36px;
  }

  .billboard {
    width: min(100%, 360px);
  }

  .billboard-copy h1 {
    font-size: 2.8rem;
  }

  .projection h2 {
    max-width: 100%;
    font-size: clamp(2.72rem, 15vw, 3.1rem);
  }

  .question {
    margin-top: 12px;
    font-size: 1.04rem;
  }

  .live-text,
  .control-strip {
    grid-template-columns: 1fr;
  }

  .control-strip {
    gap: 10px;
    margin-top: 14px;
    padding: 10px;
  }

  .transport {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .icon-button,
  .play-button {
    min-height: 42px;
  }

  .icon-button {
    width: 42px;
  }

  .play-button {
    min-width: 0;
    padding: 0 12px;
  }

  .timeline {
    gap: 8px;
  }

  .text-plaque {
    min-height: 128px;
    padding: 15px;
  }

  .text-plaque p {
    font-size: 1rem;
  }

  .text-plaque .lyric-current {
    font-size: 1.32rem;
  }

  .lyric-plaque.is-track-loading {
    min-height: 142px;
  }

  .lyric-loading-title {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .track-rail {
    margin-top: 0;
  }

  .room-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .story-button {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .room-visualizer {
    min-height: 96px;
  }

  .room-rail-frame {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 6px;
  }

  .rail-snap-target {
    top: 9px;
    bottom: 13px;
    width: min(88px, 26%);
  }

  .rail-nav {
    min-height: 66px;
  }

  .room-rail-frame::before {
    left: 44px;
    width: 32px;
  }

  .room-rail-frame::after {
    right: 44px;
    width: 32px;
  }

  .idle-lyric-cinema {
    --idle-cinema-left: 18px;
    --idle-cinema-bottom: 7vh;
    --idle-meta-offset: 116px;
    --idle-lyric-offset: 168px;
  }

  .idle-lyric-meta {
    width: min(260px, calc(100vw - 36px));
  }

  .idle-lyric-cinema h2 {
    max-width: 12ch;
    font-size: clamp(2.12rem, 13vw, 2.55rem);
  }

  .idle-control-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-wrap: wrap;
    width: min(380px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    gap: 8px;
  }

  .idle-cinema-button,
  .story-cinema-button,
  .story-close-button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.68rem;
  }

  .idle-pause-button,
  .story-pause-button {
    min-width: 0;
  }

  .idle-room-nav-button,
  .story-room-nav-button {
    min-width: 0;
  }

  .idle-eq,
  .story-eq {
    width: 15px;
    height: 12px;
  }

  .story-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px 12px;
  }

  .story-topbar h2 {
    font-size: clamp(1.28rem, 6vw, 1.54rem);
    white-space: normal;
  }

  .story-meta-row {
    gap: 8px;
  }

  .story-source-label,
  .story-docx-badge,
  .story-refresh-badge {
    max-width: 100%;
    font-size: 0.58rem;
  }

  .story-topbar-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .story-speed-control {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .story-speed-track {
    min-width: min(100%, 320px);
    width: 100%;
  }

  .story-scroll-mode {
    width: 100%;
  }

  .story-scroll-mode-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .story-speed-range {
    width: 100%;
  }

  .story-control-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .story-scroll-hint {
    align-self: flex-start;
  }

  .story-stage {
    inset: 186px 0 0;
  }

  .story-crawl {
    width: calc(100vw - 36px);
    margin-left: 18px;
    padding-left: 22px;
  }

  .story-crawl h3 {
    max-width: 7ch;
  }

  .story-crawl .story-passage {
    max-width: calc(100% - 10px);
    padding-left: 16px;
  }

  .story-crawl .story-passage::after {
    left: 16px;
    top: -1.1rem;
    font-size: 0.54rem;
  }

  .story-crawl .story-passage.is-deck {
    font-size: clamp(1.36rem, 6.4vw, 1.98rem);
  }

  .story-crawl .story-passage.is-lead,
  .story-crawl .story-passage.is-pull,
  .story-crawl .story-passage.is-closing {
    max-width: 100%;
  }

  .story-crawl .story-passage.is-pull {
    margin-left: 6px;
  }

  .support-btn {
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.7rem;
  }
}
