:root {
  --bg-surface: #0a1630;
  --bg-mid: #07122a;
  --bg-deep: #020713;
  --text-main: #e7f1ff;
  --text-muted: #93a9c4;
  --accent-hot: #ff6a82;
  --accent-cold: #85dfff;
  --accent-bio: #89f3d8;
  --font-display: "Cormorant Garamond", "Noto Serif SC", serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", serif;
  --font-ui: "Manrope", "Noto Sans SC", sans-serif;
  --layer-accent: #ff7f98;
  --layer-accent-bright: #ffd8e3;
  --layer-border: rgba(255, 150, 178, 0.44);
  --layer-glow: rgba(255, 102, 136, 0.3);
  --layer-card-a: rgba(40, 13, 31, 0.76);
  --layer-card-b: rgba(16, 8, 20, 0.74);
  --layer-card-c: rgba(8, 12, 23, 0.45);
  --layer-quote: #ffe3ec;
  --layer-hint: #f4bfd1;
  --layer-title-top: #fff6ff;
  --layer-title-mid: #ffd4de;
  --layer-title-bottom: #ffc3d0;
  --depth-tone-hot: #ff6f88;
  --depth-tone-mid: #81adff;
  --depth-tone-cold: #7fedd8;
  --brand-r: 129;
  --brand-g: 173;
  --brand-b: 255;
  --progress: 0;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --hud-top: 14px;
  --hud-gap: 8px;
  --hud-height: 54px;
  --hud-col-1: 130px;
  --hud-col-2: 130px;
  --hud-col-3: 356px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--text-main);
  background: #020713;
  letter-spacing: 0.01em;
}

body.layer-fault {
  --text-muted: #b69eb0;
  --layer-accent: #ff7f98;
  --layer-accent-bright: #ffd8e3;
  --layer-border: rgba(255, 150, 178, 0.44);
  --layer-glow: rgba(255, 102, 136, 0.3);
  --layer-card-a: rgba(40, 13, 31, 0.76);
  --layer-card-b: rgba(16, 8, 20, 0.74);
  --layer-card-c: rgba(8, 12, 23, 0.45);
  --layer-quote: #ffe3ec;
  --layer-hint: #f4bfd1;
  --layer-title-top: #fff6ff;
  --layer-title-mid: #ffd4de;
  --layer-title-bottom: #ffc3d0;
}

body.layer-archive {
  --text-muted: #8aa8cf;
  --layer-accent: #89aefe;
  --layer-accent-bright: #dbe7ff;
  --layer-border: rgba(137, 174, 254, 0.48);
  --layer-glow: rgba(94, 140, 255, 0.34);
  --layer-card-a: rgba(13, 31, 74, 0.8);
  --layer-card-b: rgba(8, 18, 46, 0.76);
  --layer-card-c: rgba(7, 12, 31, 0.48);
  --layer-quote: #dbe8ff;
  --layer-hint: #aec9ff;
  --layer-title-top: #f0f6ff;
  --layer-title-mid: #c6d8ff;
  --layer-title-bottom: #a9c0ff;
}

body.layer-abyss {
  --text-muted: #93c9c1;
  --layer-accent: #8de9d5;
  --layer-accent-bright: #d9fff4;
  --layer-border: rgba(141, 233, 213, 0.44);
  --layer-glow: rgba(87, 213, 185, 0.3);
  --layer-card-a: rgba(11, 37, 44, 0.78);
  --layer-card-b: rgba(8, 22, 28, 0.74);
  --layer-card-c: rgba(6, 17, 20, 0.44);
  --layer-quote: #d9fff4;
  --layer-hint: #abf1df;
  --layer-title-top: #ecfff9;
  --layer-title-mid: #c9f6e8;
  --layer-title-bottom: #9de9d5;
}

.site {
  position: fixed;
  inset: 0;
}

.site--hidden {
  visibility: visible;
  pointer-events: none;
}

body.is-locked .hud,
body.is-locked .depth-rail,
body.is-locked .viewport,
body.is-locked .brand-mark,
body.is-locked .descent-note {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(137, 217, 255, 0.16), transparent 32%),
    radial-gradient(circle at 52% 10%, rgba(88, 135, 255, 0.36), transparent 46%),
    radial-gradient(circle at 48% 112%, rgba(133, 238, 222, 0.2), transparent 50%),
    linear-gradient(180deg, #132349 0%, #0b1a39 34%, #071128 68%, #020713 100%);
  filter: saturate(calc(1.14 - var(--progress) * 0.18)) brightness(calc(1.06 - var(--progress) * 0.12));
  transition: filter 220ms linear;
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 84%, rgba(167, 218, 255, 0.16), transparent 40%),
    radial-gradient(circle at 78% 88%, rgba(126, 211, 255, 0.12), transparent 36%),
    linear-gradient(180deg, transparent 0%, rgba(2, 10, 22, 0.4) 60%, rgba(1, 6, 12, 0.7) 100%);
  opacity: 0.92;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(210, 230, 255, 0.2) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  opacity: calc(0.09 + var(--progress) * 0.05);
  animation: grain 180ms steps(3) infinite;
}

.aurora {
  position: absolute;
  left: -10%;
  width: 120%;
  border-radius: 999px;
  filter: blur(16px) saturate(1.12);
  mix-blend-mode: screen;
  pointer-events: none;
}

.aurora--a {
  top: -18vh;
  height: 34vh;
  background: linear-gradient(90deg, rgba(130, 247, 234, 0), rgba(130, 245, 224, 0.58), rgba(100, 195, 255, 0));
  transform: rotate(-8deg);
  animation: aurora-drift-a 16s ease-in-out infinite alternate;
}

.aurora--b {
  top: -12vh;
  height: 42vh;
  background: linear-gradient(90deg, rgba(170, 216, 255, 0), rgba(129, 176, 255, 0.48), rgba(137, 236, 255, 0));
  transform: rotate(6deg);
  animation: aurora-drift-b 20s ease-in-out infinite alternate;
}

.aurora--c {
  top: -4vh;
  height: 26vh;
  background: linear-gradient(90deg, rgba(156, 255, 232, 0), rgba(99, 223, 255, 0.34), rgba(140, 214, 255, 0));
  transform: rotate(-2deg);
  animation: aurora-drift-c 14s ease-in-out infinite alternate;
}

.storm-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    112deg,
    rgba(218, 245, 255, 0) 0 10px,
    rgba(180, 214, 255, 0.05) 10px 12px,
    rgba(218, 245, 255, 0) 12px 24px
  );
  opacity: 0.36;
  animation: snow-sweep 9s linear infinite;
  pointer-events: none;
}

body.layer-fault .atmosphere {
  box-shadow: inset 0 0 240px rgba(247, 76, 110, 0.24);
}

body.layer-archive .atmosphere {
  box-shadow: inset 0 0 280px rgba(72, 128, 255, 0.26);
}

body.layer-abyss .atmosphere {
  box-shadow: inset 0 0 280px rgba(93, 233, 201, 0.2);
}

.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle-field__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: calc(0.7 + (1 - var(--progress)) * 0.24);
  filter: saturate(1.08) contrast(1.04);
}

body.layer-fault .particle-field__canvas {
  filter: saturate(1.14) contrast(1.06);
}

body.layer-archive .particle-field__canvas {
  filter: saturate(1.02) contrast(1.05);
}

body.layer-abyss .particle-field__canvas {
  filter: saturate(1.08) contrast(1.02);
}

body.is-lowperf .aurora {
  filter: blur(10px) saturate(1.04);
}

body.is-lowperf .storm-lines {
  opacity: 0.22;
  animation-duration: 16s;
}

body.is-lowperf .particle-field__canvas {
  filter: none;
  opacity: 0.72;
}

body.is-lowperf .atmosphere::after,
body.is-lowperf .tremor-overlay__veil::before,
body.is-lowperf .airlock::after {
  animation: none;
}

body.is-lowperf .hud__block,
body.is-lowperf .audio-toggle,
body.is-lowperf .lang-switch,
body.is-lowperf .question-overlay__card {
  backdrop-filter: none;
}

.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 252, 255, 0.95) 0, rgba(160, 235, 255, 0.4) 56%, transparent 100%);
  opacity: var(--alpha);
  box-shadow: 0 0 12px rgba(175, 243, 255, 0.45);
  animation: particle-drift var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.world {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.layer {
  min-height: 170vh;
  width: min(1080px, 100% - 30px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  position: relative;
  --focus: 0.34;
  opacity: calc(0.45 + var(--focus) * 0.55);
  transform: translate3d(0, calc((1 - var(--focus)) * 24px), 0);
  filter: saturate(calc(0.74 + var(--focus) * 0.58));
  transition: opacity 260ms linear, transform 360ms ease-out, filter 280ms linear;
}

.layer::before {
  display: none;
}

.layer--surface::before {
  background: none;
}

.layer--archive::before {
  display: none;
}

.layer--abyss::before {
  background: none;
}

.layer--archive {
  min-height: 208vh;
}

.layer--abyss {
  min-height: 236vh;
}

.layer__content {
  position: relative;
  z-index: 2;
  padding: clamp(58px, 8vh, 122px) 0;
}

.layer__kicker {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.layer__title {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.3vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(
    180deg,
    var(--layer-title-top) 0%,
    var(--layer-title-mid) 45%,
    var(--layer-title-bottom) 78%,
    #f3faff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 20px rgba(118, 174, 255, 0.28), 0 0 52px rgba(84, 146, 255, 0.16);
}

.layer__desc {
  margin: 0 0 28px;
  color: #cfdef1;
  line-height: 1.82;
  max-width: 66ch;
  font-size: clamp(0.94rem, 1.35vw, 1.05rem);
}

.layer__desc:empty {
  display: none;
}

.layer--surface {
  min-height: 218vh;
}

.layer--surface .layer__content {
  padding-top: clamp(260px, 52vh, 620px);
}

.layer--surface .layer__title {
  background: linear-gradient(180deg, #fff6fb 0%, #ffd9e3 38%, #ffc2d1 70%, #ffe8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 28px rgba(255, 103, 130, 0.42), 0 0 66px rgba(255, 83, 110, 0.18);
}

.layer--archive .layer__title {
  background: linear-gradient(180deg, #f2f7ff 0%, #ccddff 40%, #b0c6ff 72%, #edf4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 28px rgba(118, 163, 255, 0.34), 0 0 66px rgba(77, 117, 237, 0.2);
}

.layer--abyss .layer__title {
  background: linear-gradient(180deg, #edfff9 0%, #c9f8eb 42%, #a8ead9 72%, #ebfff8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 28px rgba(109, 221, 191, 0.34), 0 0 66px rgba(77, 182, 164, 0.18);
}

.hud {
  position: fixed;
  top: calc(var(--hud-top) + var(--safe-top));
  left: calc(14px + var(--safe-left));
  right: auto;
  width: max-content;
  z-index: 26;
  display: grid;
  grid-template-columns: var(--hud-col-1) var(--hud-col-2) var(--hud-col-3);
  gap: var(--hud-gap);
}

.hud__block {
  padding: 10px 12px;
  min-height: var(--hud-height);
  border: 1px solid rgba(162, 204, 255, 0.28);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(10px) saturate(1.08);
  background: linear-gradient(160deg, rgba(8, 22, 50, 0.86), rgba(5, 12, 29, 0.84));
  box-shadow: inset 0 0 0 1px rgba(215, 232, 255, 0.14), 0 12px 24px rgba(2, 7, 20, 0.32);
}

.hud__block--climate {
  width: var(--hud-col-3);
  min-height: calc(var(--hud-height) + 8px);
  display: grid;
  align-content: center;
}

.hud__label {
  margin: 0 0 3px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: #95b1d4;
  text-transform: uppercase;
}

.hud__value {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.82rem;
  color: #e9f2ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud__block--climate .hud__value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.22;
}

.audio-toggle {
  min-height: var(--hud-height);
  min-width: 146px;
  padding: 0 14px;
  border: 1px solid rgba(164, 207, 255, 0.34);
  background: linear-gradient(160deg, rgba(8, 22, 50, 0.86), rgba(5, 12, 29, 0.84));
  color: #e5f1ff;
  border-radius: 999px;
  backdrop-filter: blur(10px) saturate(1.08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(220, 235, 255, 0.14), 0 12px 24px rgba(2, 7, 20, 0.32);
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  transition: border-color 220ms, box-shadow 220ms, transform 220ms;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
  border-color: rgba(188, 223, 255, 0.86);
  box-shadow: 0 0 20px rgba(108, 170, 255, 0.34);
  transform: translateY(-1px);
}

.audio-toggle.is-active {
  border-color: rgba(191, 226, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(214, 236, 255, 0.26),
    0 0 20px rgba(126, 188, 255, 0.4);
}

.audio-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.audio-toggle--hifi {
  min-width: 102px;
}

.listen-toggle {
  min-width: 146px;
}

.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;
}

.top-actions {
  position: fixed;
  top: calc(var(--hud-top) + var(--safe-top));
  right: calc(12px + var(--safe-right));
  z-index: 130;
  display: flex;
  gap: 6px;
  align-items: stretch;
  transition: opacity 220ms ease, transform 220ms ease;
}

.social-dock {
  position: fixed;
  right: calc(16px + var(--safe-right));
  bottom: calc(14px + var(--safe-bottom));
  z-index: 134;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dock-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(164, 207, 255, 0.34);
  background: linear-gradient(160deg, rgba(8, 22, 50, 0.86), rgba(5, 12, 29, 0.84));
  color: #d8e8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(10px) saturate(1.08);
  box-shadow: inset 0 0 0 1px rgba(220, 235, 255, 0.14), 0 10px 20px rgba(2, 7, 20, 0.32);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.dock-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.dock-icon__img {
  width: 17px;
  height: 17px;
  display: block;
}

.dock-icon:hover,
.dock-icon:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(188, 223, 255, 0.86);
  box-shadow: 0 0 16px rgba(106, 170, 255, 0.32);
}

.dock-icon.is-placeholder {
  opacity: 0.88;
}

.dock-icon--subscribe {
  color: #edf6ff;
  border-color: rgba(193, 226, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(214, 236, 255, 0.24),
    0 0 16px rgba(126, 188, 255, 0.34);
}

body.is-locked .social-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.subscribe-panel {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.subscribe-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.subscribe-panel__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(73, 125, 222, 0.24), rgba(3, 9, 24, 0.84) 62%);
  backdrop-filter: blur(4px);
}

.subscribe-panel__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 540px);
  max-height: min(86dvh, 760px);
  overflow: auto;
  border-radius: 18px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(158, 204, 255, 0.36);
  background: linear-gradient(155deg, rgba(9, 25, 58, 0.92), rgba(5, 13, 34, 0.94));
  box-shadow: inset 0 0 0 1px rgba(223, 237, 255, 0.12), 0 24px 42px rgba(1, 6, 18, 0.56);
}

.subscribe-panel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #d1e2fb;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 6px;
}

.subscribe-panel__kicker {
  margin: 0 0 8px;
  color: #95b7e2;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.subscribe-panel__title {
  margin: 0;
  color: #eef5ff;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.8vw, 1.72rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.02em;
}

.subscribe-panel__desc {
  margin: 10px 0 14px;
  color: #ccddf7;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  line-height: 1.5;
}

.subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.subscribe-form__input {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(161, 205, 255, 0.4);
  background: rgba(8, 20, 44, 0.8);
  color: #f0f7ff;
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.subscribe-form__input::placeholder {
  color: rgba(201, 221, 247, 0.8);
}

.subscribe-form__input:focus-visible {
  border-color: rgba(194, 226, 255, 0.86);
  box-shadow: 0 0 0 2px rgba(124, 187, 255, 0.2);
}

.subscribe-form__submit {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(164, 207, 255, 0.46);
  background: linear-gradient(145deg, rgba(22, 84, 160, 0.82), rgba(10, 53, 111, 0.84));
  color: #eaf3ff;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.subscribe-form__submit:hover,
.subscribe-form__submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(96, 166, 255, 0.34);
}

.subscribe-form__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.subscribe-panel__feedback {
  margin: 10px 2px 0;
  min-height: 1.2em;
  color: #b8cfea;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.subscribe-panel__feedback.is-success {
  color: #9deecf;
}

.subscribe-panel__feedback.is-error {
  color: #ffc1d2;
}

.subscribe-panel__feedback.is-pending {
  color: #c8dcff;
}

.subscribe-panel__micro {
  margin: 8px 2px 0;
  color: rgba(186, 206, 230, 0.92);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.lang-switch {
  --lang-btn-size: calc(var(--hud-height, 54px) - 8px);
  position: static;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: var(--hud-height, 54px);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(164, 207, 255, 0.34);
  background: linear-gradient(160deg, rgba(8, 22, 50, 0.86), rgba(5, 12, 29, 0.84));
  backdrop-filter: blur(10px) saturate(1.08);
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(220, 235, 255, 0.14), 0 12px 24px rgba(2, 7, 20, 0.32);
}

.hud__block::before,
.audio-toggle::before,
.lang-switch::before {
  content: "";
  position: absolute;
  inset: -38%;
  background:
    radial-gradient(circle at 20% 24%, rgba(205, 233, 255, 0.42), transparent 36%),
    radial-gradient(circle at 78% 76%, rgba(122, 215, 255, 0.3), transparent 44%),
    linear-gradient(116deg, rgba(255, 255, 255, 0) 36%, rgba(166, 214, 255, 0.3) 48%, rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen;
  opacity: 0.46;
  animation: ui-light-drift 15s ease-in-out infinite alternate;
  pointer-events: none;
}

.hud__block::after,
.audio-toggle::after,
.lang-switch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    118deg,
    rgba(205, 228, 255, 0) 0 12px,
    rgba(205, 228, 255, 0.1) 12px 13px,
    rgba(205, 228, 255, 0) 13px 26px
  );
  opacity: 0.18;
  mix-blend-mode: screen;
  animation: ui-light-sweep 11s linear infinite;
  pointer-events: none;
}

.hud__block > *,
.lang-switch__btn {
  position: relative;
  z-index: 1;
}

.lang-switch__btn {
  border: 1px solid transparent;
  background: transparent;
  color: #d3e6ff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  width: var(--lang-btn-size);
  height: var(--lang-btn-size);
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms, background 180ms, color 180ms;
}

.lang-switch__btn.is-active {
  border-color: rgba(185, 219, 255, 0.82);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(122, 180, 255, 0.36), 0 0 12px rgba(122, 180, 255, 0.26);
  color: #f2f8ff;
}

.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
  border-color: rgba(185, 219, 255, 0.56);
}

.depth-rail {
  position: fixed;
  right: calc(22px + var(--safe-right));
  top: 96px;
  bottom: calc(92px + var(--safe-bottom));
  width: 56px;
  z-index: 25;
  pointer-events: none;
}

.depth-rail__track {
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--depth-tone-hot), var(--depth-tone-mid), var(--depth-tone-cold));
  opacity: 0.9;
  box-shadow: 0 0 14px rgba(127, 183, 255, 0.38);
}

.depth-rail__needle {
  position: absolute;
  right: -4px;
  top: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(214, 231, 255, 0.95);
  background: rgba(157, 208, 255, 0.9);
  box-shadow: 0 0 16px rgba(131, 183, 255, 0.5);
  transform: translateY(-50%);
}

.depth-rail__mark {
  position: absolute;
  right: 18px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(215, 232, 255, 0.84);
}

.depth-rail__mark--top {
  top: -4px;
}

.depth-rail__mark--high {
  top: 13.5%;
}

.depth-rail__mark--mid {
  top: 54%;
}

.depth-rail__mark--bottom {
  bottom: -4px;
}

.card {
  border: 0;
  border-radius: 18px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  padding: clamp(18px, 3vw, 28px);
}

.tremor-card {
  max-width: 640px;
  border: 1px solid var(--card-border, var(--layer-border));
  background: linear-gradient(155deg, var(--card-a, var(--layer-card-a)), var(--card-b, var(--layer-card-b))),
    var(--card-c, var(--layer-card-c));
  box-shadow: inset 0 0 0 1px rgba(229, 236, 255, 0.08), 0 22px 42px rgba(2, 8, 22, 0.48);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 360ms ease, border-color 360ms ease, background 360ms ease;
}

.tremor-card:hover,
.tremor-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--card-border-hover, var(--layer-accent-bright));
  box-shadow: inset 0 0 0 1px rgba(232, 240, 255, 0.14), 0 26px 46px var(--card-glow, var(--layer-glow));
}

.tremor-card__hint {
  margin: 0 0 6px;
  color: var(--card-hint, var(--layer-hint));
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 360ms ease;
}

#tremorCard {
  --card-border: rgba(255, 142, 169, 0.72);
  --card-border-hover: rgba(255, 199, 219, 0.92);
  --card-glow: rgba(255, 108, 142, 0.34);
  --card-a: rgba(60, 16, 35, 0.86);
  --card-b: rgba(27, 9, 20, 0.84);
  --card-c: rgba(15, 8, 17, 0.56);
  --card-hint: #f5bfd1;
}

#tremorCard .quote {
  color: #ffe7ee;
  text-shadow: 0 0 16px rgba(255, 108, 142, 0.4);
}

.tremor-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.tremor-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tremor-overlay__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 40, 0.84), rgba(3, 8, 21, 0.9));
  backdrop-filter: blur(2px) saturate(1.03);
}

.tremor-overlay__veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(216, 234, 255, 0.22) 0.7px, transparent 0.8px);
  background-size: 4px 4px;
  opacity: 0.2;
  mix-blend-mode: screen;
  animation: grain 200ms steps(3) infinite;
}

.tremor-overlay__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 52% 44%, rgba(154, 222, 255, 0.12), transparent 48%);
  mix-blend-mode: screen;
  opacity: 0.36;
  animation: ui-light-drift 14s ease-in-out infinite alternate;
}

.breath-overlay__veil {
  background: linear-gradient(180deg, rgba(6, 24, 67, 0.82), rgba(2, 11, 31, 0.9));
}

.tremor-overlay__frame {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: clamp(84px, 12vh, 128px) clamp(16px, 3.2vw, 44px) clamp(118px, 16vh, 164px);
  gap: clamp(12px, 2.2vh, 22px);
}

.tremor-overlay__grid {
  --stage-w: clamp(240px, 25vw, 388px);
  flex: 0 0 auto;
  position: relative;
  min-height: min(64vh, 640px);
  max-height: min(64vh, 640px);
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
  align-items: stretch;
  gap: 0;
}

.media-card {
  min-height: 280px;
}

.media-card__kicker {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #95afd1;
}

.media-card__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  color: #e8f2ff;
}

.tremor-stage,
.tremor-audio {
  min-height: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  padding: clamp(15px, 1.8vw, 22px);
}

.tremor-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: none;
}

.tremor-stage__media {
  position: relative;
  margin: 0;
  --poster-w: var(--stage-w);
  width: var(--poster-w);
  height: calc(var(--poster-w) * 1.333333);
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

#tremorStage .tremor-stage__media {
  --stage-bg-image: url("./assets/images/vostok-hero.jpg");
}

#breathStage .tremor-stage__media {
  --stage-bg-image: url("./assets/images/vostok-breath.jpg");
}

.tremor-stage__media::before {
  content: none;
}

.tremor-stage__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(154, 206, 255, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(2, 7, 17, 0.05), rgba(2, 7, 17, 0.26));
  pointer-events: none;
  border-radius: 22px;
}

.tremor-stage__image,
.tremor-stage__video {
  position: absolute;
  object-fit: cover;
}

.tremor-stage__image {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 22px;
  border: 1px solid rgba(194, 227, 255, 0.42);
  filter: saturate(1.08) contrast(1.04) brightness(0.95);
  box-shadow:
    0 20px 42px rgba(2, 10, 28, 0.5),
    0 0 26px rgba(146, 200, 255, 0.22);
}

.tremor-stage__video {
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.tremor-stage.is-image-missing .tremor-stage__image {
  display: none;
}

.tremor-stage.is-video-missing .tremor-stage__video {
  display: none;
}

.tremor-audio {
  position: relative;
  z-index: 2;
  height: 100%;
  display: block;
  padding: 0;
}

.lyrics-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: min(980px, 96%);
  margin: 0;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.lyrics-panel--center {
  animation: none;
  justify-self: auto;
  align-self: auto;
}

.lyrics-panel__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: clamp(178px, 26vh, 288px);
  overflow: visible;
}

.lyrics-panel__line {
  position: absolute;
  inset: 0;
  min-height: 100%;
  padding: 0 clamp(8px, 2.2vw, 28px);
  color: rgba(230, 244, 255, 0.12);
  line-height: 1.52;
  font-size: 1rem;
  text-align: center;
  display: grid;
  place-items: center;
  gap: 8px;
  opacity: 0;
  filter: blur(1px);
  transform: translateY(16px) scale(0.985);
  transition: color 300ms ease, text-shadow 300ms ease, transform 300ms ease, opacity 300ms ease, filter 300ms ease;
}

.lyrics-panel__line.is-past {
  opacity: 0;
  filter: blur(1.2px);
  transform: translateY(-14px) scale(0.98);
}

.lyrics-panel__line.is-future {
  opacity: 0;
  filter: blur(1.2px);
  transform: translateY(14px) scale(0.98);
}

.lyrics-panel__line.is-active {
  color: #f8fdff;
  text-shadow:
    0 0 22px rgba(154, 212, 255, 0.72),
    0 0 44px rgba(133, 190, 255, 0.28);
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.lyrics-panel__line-en {
  display: block;
  font-family: "Cinzel", var(--font-display);
  font-size: clamp(1.2rem, 2.14vw, 1.7rem);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0.03em;
  color: rgba(244, 252, 255, 0.98);
  -webkit-text-stroke: 0.3px rgba(201, 231, 255, 0.72);
  max-width: min(980px, 94vw);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.lyrics-panel__line-zh {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.42vw, 1.14rem);
  font-weight: 600;
  line-height: 1.42;
  color: rgba(235, 247, 255, 0.96);
  -webkit-text-stroke: 0.22px rgba(191, 222, 248, 0.56);
  max-width: min(980px, 94vw);
  text-wrap: balance;
}

.lyrics-panel__line.is-long .lyrics-panel__line-en {
  font-size: clamp(1.12rem, 1.98vw, 1.52rem);
}

.lyrics-panel__line.is-long .lyrics-panel__line-zh {
  font-size: clamp(0.92rem, 1.3vw, 1.06rem);
}

.lyrics-panel__line.is-xlong .lyrics-panel__line-en {
  font-size: clamp(1.04rem, 1.74vw, 1.36rem);
}

.lyrics-panel__line.is-xlong .lyrics-panel__line-zh {
  font-size: clamp(0.88rem, 1.16vw, 1rem);
}

.player-dock {
  position: absolute;
  left: 50%;
  top: calc(50% + (var(--stage-w) * 0.666666) - clamp(26px, 3.8vh, 44px));
  transform: translateX(-50%);
  width: min(980px, 94%);
  z-index: 4;
  display: grid;
  gap: 10px;
  padding-top: 0;
}

.track-progress {
  position: relative;
  width: 100%;
  height: clamp(7px, 0.95vw, 10px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(18, 46, 98, 0.58), rgba(11, 29, 72, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(149, 201, 255, 0.24),
    inset 0 0 18px rgba(9, 22, 48, 0.58),
    0 0 16px rgba(126, 188, 255, 0.24);
  overflow: hidden;
  pointer-events: none;
}

.track-progress__fill {
  position: absolute;
  inset: 0;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--layer-accent) 72%, #91cfff 28%) 0%,
    color-mix(in srgb, var(--layer-accent-bright) 86%, #e3f8ff 14%) 52%,
    color-mix(in srgb, var(--layer-glow) 62%, #f6fdff 38%) 100%
  );
  box-shadow:
    0 0 14px color-mix(in srgb, var(--layer-accent) 62%, transparent),
    0 0 30px color-mix(in srgb, var(--layer-glow) 58%, transparent);
  transition: transform 120ms linear;
}

.main-player {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}

.main-player::-webkit-media-controls-panel {
  background: linear-gradient(140deg, rgba(8, 24, 56, 0.92), rgba(6, 17, 40, 0.94));
}

.main-player::-webkit-media-controls-current-time-display,
.main-player::-webkit-media-controls-time-remaining-display {
  color: #d9e8ff;
}

.player-hint {
  margin: 0;
  text-align: center;
  font-family: "Cinzel", var(--font-display);
  font-size: clamp(1.56rem, 3vw, 2.48rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(241, 250, 255, 0.99);
  text-shadow:
    0 0 18px rgba(155, 212, 255, 0.48),
    0 0 38px rgba(109, 176, 255, 0.34);
}

.tremor-close {
  display: none;
}

.quote {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--layer-quote);
  text-shadow: 0 0 14px var(--layer-glow);
  transition: color 360ms ease, text-shadow 360ms ease;
}

.state-text {
  color: #d2e6f2;
  min-height: 24px;
  margin-top: 0;
}

.action {
  border-radius: 999px;
  border: 1px solid transparent;
  color: #f5fcff;
  background: transparent;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 9px 18px;
  cursor: pointer;
  transition: transform 180ms, box-shadow 180ms, border-color 180ms, background 180ms;
}

.action:hover,
.action:focus-visible {
  transform: translateY(-1px);
}

.action--calm {
  border-color: rgba(165, 208, 255, 0.74);
  box-shadow: 0 0 20px rgba(99, 152, 255, 0.22);
}

.action--calm.is-active {
  background: rgba(103, 156, 255, 0.18);
  box-shadow: 0 0 28px rgba(108, 162, 255, 0.34);
}

.action--ghost {
  border-color: rgba(164, 207, 255, 0.58);
}

.wave {
  margin-top: 18px;
  height: 78px;
  display: grid;
  grid-template-columns: repeat(36, 1fr);
  align-items: end;
  gap: 4px;
}

.wave span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--layer-accent-bright), var(--layer-accent));
  height: 12%;
  box-shadow: 0 0 11px var(--layer-glow);
  opacity: 0.86;
  will-change: height, transform, opacity;
  transition: height 86ms cubic-bezier(0.24, 0.76, 0.28, 1), transform 86ms cubic-bezier(0.24, 0.76, 0.28, 1),
    opacity 110ms linear;
}

.breath-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  max-width: 760px;
}

.breath-music-card {
  margin-top: 12px;
  max-width: 760px;
}

.breath-pulse {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(124, 233, 255, 0.7);
  background:
    radial-gradient(circle at 34% 30%, rgba(203, 255, 247, 0.78), rgba(103, 226, 255, 0.22) 47%, transparent 68%),
    rgba(7, 30, 38, 0.38);
  box-shadow: 0 0 34px rgba(98, 238, 255, 0.2);
}

.counter {
  margin: 8px 0 0;
  color: #b3f2ff;
}

.archive-fade {
  position: relative;
  margin-top: 14px;
  min-height: 94px;
}

.archive-fade__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(4px);
  animation: archive-fade-cycle 12s ease-in-out infinite;
}

.archive-fade__item--1 {
  animation-delay: 0s;
}

.archive-fade__item--2 {
  animation-delay: 4s;
}

.archive-fade__item--3 {
  animation-delay: 8s;
}

.archive-fade__year {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #d4f6ff;
}

.archive-fade__text {
  margin: 0;
  color: #d9f0fa;
  font-size: 0.92rem;
  line-height: 1.68;
}

.echo-cloud {
  max-width: 1020px;
}

.echo-cloud__label {
  margin: 0 0 10px;
  color: #cefbe9;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.noise-cloud {
  position: relative;
  min-height: clamp(360px, 58vh, 650px);
  max-width: 1020px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.noise-cloud__empty {
  margin: 0;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(191, 220, 245, 0.82);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.glass-bubble {
  border: 0;
  border-radius: 50%;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.78), rgba(231, 245, 255, 0.28) 36%, rgba(166, 219, 255, 0.08) 64%, rgba(166, 219, 255, 0) 100%),
    radial-gradient(circle at 78% 82%, rgba(250, 227, 255, 0.18), rgba(250, 227, 255, 0) 60%),
    conic-gradient(
      from 180deg at 65% 70%,
      rgba(154, 216, 255, 0.18),
      rgba(255, 208, 236, 0.12),
      rgba(173, 246, 225, 0.12),
      rgba(154, 216, 255, 0.18)
    );
  box-shadow:
    inset 0 -20px 30px rgba(118, 177, 236, 0.18),
    inset 0 14px 22px rgba(255, 255, 255, 0.1),
    0 12px 24px rgba(74, 141, 219, 0.2),
    0 0 26px rgba(201, 232, 255, 0.2);
  backdrop-filter: blur(7px) saturate(1.08);
}

.glass-bubble::before,
.glass-bubble::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glass-bubble::before {
  inset: 11% 12% 54% 17%;
  background: radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  filter: blur(0.2px);
  opacity: 0.86;
}

.glass-bubble::after {
  inset: -8%;
  background:
    linear-gradient(
      126deg,
      rgba(255, 255, 255, 0) 34%,
      rgba(219, 243, 255, 0.2) 44%,
      rgba(255, 214, 240, 0.14) 49%,
      rgba(255, 255, 255, 0) 60%
    ),
    radial-gradient(circle at 72% 70%, rgba(255, 235, 247, 0.16), rgba(255, 235, 247, 0) 52%);
  mix-blend-mode: screen;
  opacity: 0.66;
  animation: bubble-sheen 10.4s linear infinite;
  animation-delay: var(--sheen-delay, 0s);
}

.noise-bubble {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  color: rgba(244, 251, 255, 0.99);
  font-size: clamp(0.74rem, 1.16vw, 0.9rem);
  font-weight: 600;
  line-height: 1.2;
  padding: 10px;
  text-align: center;
  text-shadow: 0 0 10px rgba(54, 106, 170, 0.44), 0 0 1px rgba(255, 255, 255, 0.96);
  cursor: pointer;
  animation: bubble-drift var(--float-duration, 11.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.noise-bubble:hover,
.noise-bubble:focus-visible {
  box-shadow:
    inset 0 -12px 22px rgba(146, 198, 250, 0.26),
    0 14px 28px rgba(112, 176, 247, 0.32),
    0 0 34px rgba(209, 236, 255, 0.34);
  filter: saturate(1.12) brightness(1.04);
  transform: translate(-50%, -53%);
}

.noise-bubble.is-popping {
  animation: noise-bubble-pop 320ms ease-out forwards;
  pointer-events: none;
}

.bubble-fragment {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(188, 221, 255, 0.92);
  box-shadow: 0 0 8px rgba(138, 193, 255, 0.45);
  animation: bubble-fragment-burst 420ms ease-out forwards;
  pointer-events: none;
}

.question-cloud {
  position: relative;
  min-height: clamp(440px, 62vh, 760px);
  max-width: 1020px;
}

.question-bubble {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: min(100%, var(--chip-w, 252px));
  min-height: 0;
  transform: translate(-50%, -50%);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 50px 8px 8px;
  text-align: center;
  color: rgba(245, 251, 255, 0.99);
  cursor: pointer;
  line-height: 1.28;
  text-shadow: 0 0 12px rgba(74, 128, 194, 0.36), 0 0 1px rgba(255, 255, 255, 0.92);
  animation: aspiration-drift var(--float-duration, 12.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease, text-shadow 220ms ease;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.question-bubble::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 44% 40%, rgba(238, 250, 255, 0.95), rgba(184, 228, 255, 0.82) 54%, rgba(118, 190, 255, 0.72) 100%);
  background: radial-gradient(
    circle at 44% 40%,
    color-mix(in srgb, var(--layer-accent-bright) 78%, white 22%),
    color-mix(in srgb, var(--layer-accent) 84%, #bfe3ff 16%) 54%,
    color-mix(in srgb, var(--layer-accent) 72%, #5ea8ff 28%) 100%
  );
  box-shadow:
    inset 0 0 6px rgba(228, 246, 255, 0.36),
    0 0 12px rgba(148, 210, 255, 0.62),
    0 0 24px rgba(118, 188, 255, 0.34);
  box-shadow:
    inset 0 0 6px color-mix(in srgb, var(--layer-accent-bright) 44%, transparent),
    0 0 12px color-mix(in srgb, var(--layer-accent) 62%, #9fd0ff 38%),
    0 0 24px color-mix(in srgb, var(--layer-glow) 86%, transparent);
}

.question-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(168, 219, 255, 0.4);
  box-shadow: 0 0 12px rgba(118, 188, 255, 0.28);
  border: 1px solid color-mix(in srgb, var(--layer-accent-bright) 56%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--layer-glow) 74%, transparent);
  animation: ring 3200ms linear infinite;
  opacity: 0.72;
}

.question-bubble:hover,
.question-bubble:focus-visible {
  filter: saturate(1.1);
  text-shadow: 0 0 18px rgba(155, 212, 255, 0.46);
}

.question-bubble__topic {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(0.6rem, 0.96vw, 0.72rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(222, 241, 255, 0.94);
}

.question-bubble__text {
  font-size: clamp(0.8rem, 1.04vw, 0.92rem);
  font-weight: 600;
  line-height: 1.2;
  color: rgba(243, 251, 255, 0.98);
}

.question-bubble__text.is-single-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(94vw, 420px);
}

.aspiration-stream {
  position: relative;
  min-height: clamp(220px, 36vh, 420px);
  max-width: 1020px;
}

.aspiration-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: min(100%, var(--chip-w, 248px));
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(236, 248, 255, 0.98);
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 52px 8px 8px;
  cursor: pointer;
  backdrop-filter: none;
  transform: translate(-50%, -50%);
  animation: aspiration-drift var(--float-duration, 11.6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: transform 200ms ease, text-shadow 220ms ease, opacity 220ms ease;
}

.aspiration-node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 42% 38%, rgba(249, 255, 255, 0.96), rgba(197, 232, 255, 0.82) 52%, rgba(126, 186, 255, 0.72) 100%);
  box-shadow:
    inset 0 0 8px rgba(229, 246, 255, 0.42),
    0 0 14px rgba(151, 210, 255, 0.72),
    0 0 30px rgba(120, 188, 255, 0.46);
}

.aspiration-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 40px;
  height: 40px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(168, 219, 255, 0.44);
  box-shadow: 0 0 14px rgba(134, 196, 255, 0.24);
  animation: ring 3000ms linear infinite;
  opacity: 0.74;
}

.aspiration-node:hover,
.aspiration-node:focus-visible {
  text-shadow: 0 0 18px rgba(155, 212, 255, 0.48);
  filter: saturate(1.08);
}

.aspiration-node__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(0.62rem, 0.92vw, 0.74rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(224, 244, 255, 0.94);
}

.aspiration-node__subtitle {
  font-size: clamp(0.82rem, 1.08vw, 0.96rem);
  font-weight: 600;
  color: rgba(245, 251, 255, 0.98);
  text-shadow: 0 0 12px rgba(60, 112, 176, 0.36);
}

.abyss-thoughts {
  position: relative;
  margin-top: clamp(56px, 20vh, 260px);
  max-width: 1020px;
  padding-bottom: clamp(120px, 20vh, 260px);
}

.abyss-manifesto {
  margin: 0 0 clamp(34px, 8vh, 84px);
}

.abyss-section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.24vw, 1.04rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, rgba(231, 245, 255, 0.96) 0%, rgba(195, 220, 245, 0.9) 60%, rgba(185, 240, 225, 0.88) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 14px rgba(122, 176, 255, 0.24);
}

.aspiration-stream + .abyss-section-title {
  margin-top: clamp(40px, 11vh, 92px);
}

.question-overlay {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.8vh, 34px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.question-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.question-overlay__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(167, 210, 255, 0.24), transparent 34%),
    radial-gradient(circle at 80% 82%, rgba(143, 236, 214, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(7, 16, 38, 0.84), rgba(2, 8, 19, 0.92));
  backdrop-filter: blur(8px) saturate(1.04);
}

.question-overlay__card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(86vh, 780px);
  margin: 0;
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: 22px;
  border: 0;
  background:
    radial-gradient(circle at 24% 16%, rgba(175, 217, 255, 0.2), transparent 36%),
    radial-gradient(circle at 82% 78%, rgba(150, 240, 219, 0.16), transparent 34%),
    linear-gradient(165deg, rgba(9, 22, 50, 0.8), rgba(4, 10, 23, 0.86));
  box-shadow: 0 26px 56px rgba(3, 8, 20, 0.48);
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.question-overlay__close {
  justify-self: end;
  margin: 0;
}

.question-overlay__topic {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(176, 211, 244, 0.88);
}

.question-overlay__prompt {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.12rem, 2.6vw, 1.64rem);
  letter-spacing: 0.04em;
  color: rgba(230, 242, 255, 0.96);
}

.question-overlay__poem {
  display: grid;
  gap: 4px;
  padding: 6px 0 10px;
}

.question-overlay__poem-line {
  margin: 0;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  line-height: 1.7;
  color: rgba(195, 220, 244, 0.94);
}

.question-chat {
  min-height: 0;
  display: grid;
  gap: 10px;
}

.question-chat__feed {
  border-radius: 14px;
  padding: 12px 12px 10px;
  max-height: min(36vh, 280px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(145, 189, 235, 0.44) transparent;
  background: rgba(8, 20, 46, 0.42);
}

.question-chat__line {
  margin: 0 0 8px;
  line-height: 1.58;
  font-size: 0.9rem;
}

.question-chat__line:last-child {
  margin-bottom: 0;
}

.question-chat__line--assistant {
  color: rgba(198, 224, 248, 0.96);
}

.question-chat__line--user {
  color: rgba(235, 244, 255, 0.98);
}

.question-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.question-chat__input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(236, 246, 255, 0.96);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  background: rgba(13, 29, 58, 0.72);
  box-shadow: inset 0 0 0 1px rgba(167, 205, 244, 0.28);
}

.question-chat__input:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(196, 224, 255, 0.52), 0 0 0 2px rgba(112, 170, 235, 0.22);
}

.question-chat__send {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  color: rgba(237, 246, 255, 0.98);
  background: linear-gradient(150deg, rgba(108, 172, 249, 0.52), rgba(90, 210, 198, 0.42));
  box-shadow: 0 8px 18px rgba(76, 150, 229, 0.3);
  cursor: pointer;
}

.airlock {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(143, 188, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(16, 35, 77, 0.34) 0%, rgba(9, 20, 48, 0.42) 65%, rgba(4, 11, 23, 0.58) 100%);
  backdrop-filter: blur(3px) saturate(1.06);
}

.airlock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(216, 235, 255, 0) 0 20%, rgba(216, 235, 255, 0.08) 20% 22%, rgba(216, 235, 255, 0) 22% 100%);
  mix-blend-mode: screen;
  animation: snow-sweep 10s linear infinite;
  pointer-events: none;
}

.airlock::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(215, 235, 255, 0.18) 0.8px, transparent 0.9px);
  background-size: 4px 4px;
  opacity: 0.4;
  animation: grain 210ms steps(3) infinite;
  pointer-events: none;
}

.airlock--exiting {
  animation: airlock-out 1000ms cubic-bezier(0.2, 0.72, 0.26, 0.98) forwards;
}

.airlock__inner {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100% - 48px));
  text-align: center;
  transition: opacity 420ms ease, transform 420ms ease;
}

.airlock.is-intro .airlock__inner {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.airlock-intro {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 48px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.airlock.is-intro .airlock-intro {
  opacity: 1;
}

.airlock-intro__line {
  position: absolute;
  width: min(920px, calc(100% - 24px));
  margin: 0;
  text-align: center;
  line-height: 1.85;
  letter-spacing: 0.01em;
  font-size: clamp(1rem, 2vw, 1.38rem);
  color: #e1ecff;
  text-shadow: 0 0 24px rgba(136, 177, 255, 0.32), 0 0 56px rgba(102, 150, 255, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.airlock-intro__line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.airlock__label {
  margin: 20px 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: #dae8ff;
}

.thaw-button {
  width: clamp(104px, 13vw, 142px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: none;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.thaw-button--skip {
  position: absolute;
  right: clamp(16px, 2.6vw, 34px);
  bottom: clamp(16px, 3.4vh, 34px);
  width: clamp(52px, 6.2vw, 68px);
  z-index: 3;
  opacity: 0.78;
  transition: opacity 220ms ease, transform 220ms ease;
}

.thaw-button--skip:hover,
.thaw-button--skip:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.airlock:not(.is-intro) .thaw-button--skip {
  opacity: 0;
  pointer-events: none;
}

.thaw-button__core {
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.94), rgba(214, 236, 255, 0.42) 44%, rgba(130, 188, 255, 0.2) 66%, rgba(130, 188, 255, 0.06) 100%),
    conic-gradient(
      from 180deg at 65% 72%,
      rgba(162, 219, 255, 0.22),
      rgba(220, 236, 255, 0.14),
      rgba(159, 241, 230, 0.14),
      rgba(162, 219, 255, 0.22)
    );
  border: 1px solid rgba(206, 233, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(248, 252, 255, 0.44),
    inset 0 -16px 26px rgba(118, 177, 236, 0.22),
    0 0 36px rgba(123, 171, 255, 0.44);
  animation: pulse-dot 2200ms ease-in-out infinite;
}

.thaw-button__ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(173, 214, 255, 0.48);
  box-shadow: 0 0 16px rgba(146, 198, 255, 0.3);
  animation: ring 2800ms linear infinite;
}

.thaw-button__ring--secondary {
  inset: 0;
  animation-duration: 3600ms;
  opacity: 0.54;
}

.hold-meter {
  margin: 0 auto;
  width: min(260px, 100%);
  height: 8px;
  background: rgba(154, 190, 236, 0.26);
  border-radius: 999px;
  overflow: hidden;
}

.hold-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(124, 176, 255, 0.78), rgba(230, 239, 255, 1));
  box-shadow: 0 0 10px rgba(136, 188, 255, 0.55);
  transition: width 60ms linear;
}

.brand-mark {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 120;
  transform: translateX(-50%);
  pointer-events: none;
  text-align: center;
  opacity: calc(1 - var(--progress) * 0.42);
}

.brand-mark__title {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
  font-family: "Cinzel", var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: 0.1em;
  color: rgb(var(--brand-r), var(--brand-g), var(--brand-b));
  text-shadow:
    0 0 24px rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.5),
    0 0 64px rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.24);
  transition: color 220ms linear, text-shadow 220ms linear;
}

.brand-mark__word,
.brand-mark__suffix {
  display: inline-block;
  line-height: 0.9;
}

.brand-mark__suffix {
  font-size: 0.78em;
  letter-spacing: 0.03em;
  transform: translateY(-0.03em);
}

.brand-mark__tag {
  margin: 2px 0 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(0.92rem, 1.8vw, 1.28rem);
  color: rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.82);
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.3);
  transition: color 220ms linear, text-shadow 220ms linear;
}

.descent-note {
  position: fixed;
  left: calc(14px + var(--safe-left));
  bottom: calc(10px + var(--safe-bottom));
  z-index: 23;
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(187, 208, 230, 0.52);
  text-shadow: 0 0 8px rgba(114, 160, 236, 0.2);
  pointer-events: none;
  user-select: none;
}

.is-shaking .atmosphere {
  animation: shake 80ms steps(2) infinite;
}

.is-breathing .world {
  animation: breathe-scene 8000ms ease-in-out infinite;
}

.is-breathing .breath-pulse {
  animation: breath-pulse 8000ms ease-in-out infinite;
}

body.is-hovered .descent-note {
  color: rgba(241, 203, 220, 0.72);
  text-shadow: 0 0 12px rgba(255, 122, 156, 0.34);
}

body.is-tremor-open .descent-note {
  color: rgba(220, 241, 252, 0.32);
  text-shadow: 0 0 8px rgba(132, 218, 255, 0.16);
}

body.is-breath-open .descent-note {
  color: rgba(220, 241, 252, 0.32);
  text-shadow: 0 0 8px rgba(132, 218, 255, 0.16);
}

@keyframes particle-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
  }
  50% {
    transform: translate3d(var(--dx), calc(var(--dy) * -1), 0) scale(1);
  }
  100% {
    transform: translate3d(calc(var(--dx) * 2), calc(var(--dy) * -2), 0) scale(0.82);
  }
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1px, 1px);
  }
  50% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes ui-light-drift {
  0% {
    transform: translate3d(-6%, -3%, 0) rotate(-4deg);
  }
  100% {
    transform: translate3d(7%, 4%, 0) rotate(3deg);
  }
}

@keyframes ui-light-sweep {
  from {
    transform: translate3d(-10%, 0, 0);
  }
  to {
    transform: translate3d(10%, 0, 0);
  }
}

@keyframes aurora-drift-a {
  from {
    transform: translateX(-4%) rotate(-8deg);
  }
  to {
    transform: translateX(3%) rotate(-5deg);
  }
}

@keyframes aurora-drift-b {
  from {
    transform: translateX(2%) rotate(6deg);
  }
  to {
    transform: translateX(-2%) rotate(9deg);
  }
}

@keyframes aurora-drift-c {
  from {
    transform: translateX(-2%) rotate(-2deg);
  }
  to {
    transform: translateX(4%) rotate(2deg);
  }
}

@keyframes snow-sweep {
  from {
    transform: translate3d(-3%, -2%, 0);
  }
  to {
    transform: translate3d(3%, 2%, 0);
  }
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) scale(0.94);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-180px) scale(1.12);
    opacity: 0;
  }
}

@keyframes bubble-drift {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--float-rotate, 0deg) * -1));
  }
  30% {
    transform: translate(calc(-50% + var(--float-x, 6px)), calc(-50% - var(--float-y, 10px)))
      rotate(var(--float-rotate, 0deg));
  }
  62% {
    transform: translate(calc(-50% - var(--float-x, 6px) * 0.5), calc(-50% + var(--float-y, 10px) * 0.4))
      rotate(calc(var(--float-rotate, 0deg) * 0.6));
  }
}

@keyframes bubble-sheen {
  0% {
    transform: translate3d(-8%, -6%, 0) rotate(-12deg);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(8%, 8%, 0) rotate(14deg);
    opacity: 0.76;
  }
  100% {
    transform: translate3d(-8%, -6%, 0) rotate(-12deg);
    opacity: 0.35;
  }
}

@keyframes aspiration-drift {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  35% {
    transform: translate(calc(-50% + var(--drift-x, 6px)), calc(-50% + var(--drift-y, -4px)));
  }
  70% {
    transform: translate(
      calc(-50% + (var(--drift-x, 6px) * -0.58)),
      calc(-50% + (var(--drift-y, -4px) * -0.42))
    );
  }
}

@keyframes noise-bubble-float {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, -54%);
  }
}

@keyframes noise-bubble-pop {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    filter: saturate(1);
  }
  100% {
    transform: translate(-50%, -56%) scale(1.26);
    opacity: 0;
    filter: saturate(1.35);
  }
}

@keyframes bubble-fragment-burst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.95;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.6);
    opacity: 0;
  }
}

@keyframes airlock-out {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 0;
    clip-path: inset(50% 0 50% 0);
    visibility: hidden;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1px, 0);
  }
  50% {
    transform: translate(1px, -1px);
  }
  75% {
    transform: translate(-1px, 1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes breathe-scene {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.012;
  }
}

@keyframes breath-pulse {
  0%,
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 24px rgba(98, 238, 255, 0.2);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 40px rgba(98, 238, 255, 0.45);
  }
}

@keyframes lyrics-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes archive-fade-cycle {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  12% {
    opacity: 1;
    transform: translateY(0);
  }
  72% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes abyss-thought-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.78;
  }
  35% {
    transform: translate3d(1px, -2px, 0);
    opacity: 0.96;
  }
  70% {
    transform: translate3d(-1px, 1px, 0);
    opacity: 1;
  }
}

@keyframes abyss-manifesto-flow {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
  }
  45% {
    transform: translate3d(1px, -1px, 0);
    opacity: 1;
  }
  75% {
    transform: translate3d(-1px, 0, 0);
    opacity: 0.9;
  }
}

@media (max-width: 1320px) and (min-width: 981px) {
  .hud {
    --hud-col-1: 120px;
    --hud-col-2: 120px;
    --hud-col-3: 320px;
  }

  .top-actions {
    right: calc(8px + var(--safe-right));
    gap: 5px;
  }

  .audio-toggle {
    min-width: 128px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .listen-toggle {
    min-width: 128px;
  }

  .audio-toggle--hifi {
    min-width: 88px;
  }
}

@media (max-width: 980px) {
  .question-overlay {
    padding: calc(var(--safe-top) + 8px) 8px calc(var(--safe-bottom) + 8px);
    place-items: start center;
  }

  .hud {
    --hud-height: 48px;
    top: calc(var(--safe-top) + 58px);
    left: calc(8px + var(--safe-left));
    right: calc(8px + var(--safe-right));
    width: auto;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .hud__block--climate {
    width: auto;
    grid-column: span 2;
  }

  .hud__block {
    padding: 8px 10px;
  }

  .hud__label {
    font-size: 0.56rem;
    letter-spacing: 0.15em;
  }

  .hud__value {
    font-size: 0.76rem;
  }

  .breath-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .layer {
    min-height: 185vh;
  }

  .layer--archive {
    min-height: 225vh;
  }

  .layer--abyss {
    min-height: 255vh;
  }

  .abyss-thoughts {
    margin-top: clamp(32px, 13vh, 130px);
    padding-bottom: 124px;
  }

  .abyss-manifesto {
    margin-bottom: 24px;
  }

  .abyss-section-title {
    font-size: 0.82rem;
    letter-spacing: 0.13em;
  }

  .noise-cloud {
    min-height: 360px;
  }

  .noise-bubble {
    font-size: 0.74rem;
    padding: 8px 10px;
  }

  .aspiration-stream {
    min-height: 320px;
  }

  .aspiration-node {
    width: min(66vw, var(--chip-w, 232px));
    padding-top: 48px;
  }

  .question-cloud {
    min-height: 460px;
  }

  .question-bubble {
    width: min(82vw, var(--chip-w, 248px));
    padding: 46px 8px 8px;
  }

  .question-overlay__card {
    width: min(100%, 680px);
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 16px);
    border-radius: 16px;
    padding: 14px 12px;
    overflow: auto;
  }

  .question-chat__feed {
    max-height: 30vh;
  }

  .tremor-overlay__frame {
    padding: calc(var(--safe-top) + 72px) 10px calc(var(--safe-bottom) + 96px);
    gap: 10px;
  }

  .tremor-overlay__grid {
    --stage-w: clamp(186px, 68vw, 300px);
    min-height: min(66dvh, 600px);
    max-height: min(66dvh, 600px);
  }

  .tremor-stage__media {
    --poster-w: var(--stage-w);
    width: var(--poster-w);
    height: calc(var(--poster-w) * 1.333333);
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .tremor-stage__image {
    border-radius: 16px;
  }

  .lyrics-panel__line-en {
    font-size: clamp(1.02rem, 4.3vw, 1.34rem);
  }

  .lyrics-panel__line-zh {
    font-size: clamp(0.88rem, 3.6vw, 1.04rem);
  }

  .player-dock {
    top: calc(50% + (var(--stage-w) * 0.666666) - 18px);
    width: min(96vw, 700px);
    gap: 10px;
  }

  .player-hint {
    font-size: clamp(1.1rem, 5.4vw, 1.6rem);
    letter-spacing: 0.09em;
    line-height: 1.1;
  }

  .lyrics-panel__list {
    min-height: clamp(148px, 24vh, 236px);
  }

  .depth-rail {
    display: block;
    right: calc(12px + var(--safe-right));
    top: calc(var(--safe-top) + 118px);
    bottom: calc(var(--safe-bottom) + 92px);
    width: 34px;
  }

  .depth-rail__track {
    right: 4px;
    width: 2px;
  }

  .depth-rail__needle {
    right: -3px;
    width: 8px;
    height: 8px;
  }

  .depth-rail__mark {
    right: 10px;
    font-size: 0.5rem;
  }

  .top-actions {
    top: calc(var(--safe-top) + 8px);
    left: calc(8px + var(--safe-left));
    right: calc(8px + var(--safe-right));
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
  }

  .social-dock {
    right: calc(10px + var(--safe-right));
    bottom: calc(10px + var(--safe-bottom));
    gap: 6px;
  }

  .dock-icon {
    width: 34px;
    height: 34px;
  }

  .dock-icon svg {
    width: 15px;
    height: 15px;
  }

  .dock-icon__img {
    width: 15px;
    height: 15px;
  }

  .subscribe-panel {
    padding: calc(var(--safe-top) + 10px) 10px calc(var(--safe-bottom) + 10px);
    place-items: start center;
  }

  .subscribe-panel__card {
    width: min(100%, 600px);
    margin-top: 48px;
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 20px);
    border-radius: 16px;
    padding: 16px 14px 14px;
  }

  .subscribe-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .subscribe-form__input,
  .subscribe-form__submit {
    min-height: 40px;
    font-size: 0.74rem;
  }

  .subscribe-panel__desc {
    font-size: 0.78rem;
  }

  .audio-toggle {
    min-height: 40px;
    min-width: 0;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .audio-toggle--hifi {
    min-width: 112px;
  }

  .lang-switch {
    --lang-btn-size: 32px;
    min-height: 40px;
    padding: 4px;
  }

  .lang-switch__btn {
    width: 32px;
    height: 32px;
    font-size: 0.68rem;
  }

  .audio-toggle::before,
  .audio-toggle::after,
  .lang-switch::before,
  .lang-switch::after {
    display: none;
  }

  .brand-mark {
    bottom: calc(8px + var(--safe-bottom));
    width: min(94vw, 700px);
  }

  .brand-mark__tag {
    font-size: 0.88rem;
  }

  .descent-note {
    left: calc(10px + var(--safe-left));
    bottom: calc(6px + var(--safe-bottom));
    font-size: 0.68rem;
  }

  body.is-lowperf .layer__title,
  body.is-lowperf .player-hint,
  body.is-lowperf .brand-mark__title {
    text-shadow: 0 0 12px rgba(120, 170, 240, 0.26);
  }

  body.is-lowperf .tremor-stage__image {
    filter: saturate(1.02) contrast(1.01) brightness(0.98);
    box-shadow: 0 10px 18px rgba(2, 10, 28, 0.4);
  }
}

@media (max-width: 980px) and (orientation: landscape) {
  .top-actions {
    left: auto;
    right: calc(8px + var(--safe-right));
    flex-wrap: nowrap;
    gap: 6px;
  }

  .audio-toggle {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .audio-toggle--hifi {
    min-width: 98px;
  }

  .lang-switch {
    --lang-btn-size: 28px;
    min-height: 36px;
  }

  .lang-switch__btn {
    width: 28px;
    height: 28px;
  }

  .social-dock {
    gap: 6px;
    right: calc(10px + var(--safe-right));
    bottom: calc(8px + var(--safe-bottom));
  }

  .dock-icon {
    width: 30px;
    height: 30px;
  }

  .dock-icon svg {
    width: 13px;
    height: 13px;
  }

  .dock-icon__img {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 640px) {
  .airlock-intro__line {
    width: min(94vw, 620px);
    font-size: clamp(0.94rem, 3.8vw, 1.12rem);
    line-height: 1.72;
  }

  .layer--surface .layer__content {
    padding-top: clamp(290px, 54vh, 620px);
  }

  .lyrics-panel {
    width: min(96vw, 720px);
  }

  .lyrics-panel__line-en {
    font-size: clamp(0.98rem, 4vw, 1.22rem);
  }

  .lyrics-panel__line-zh {
    font-size: clamp(0.84rem, 3.4vw, 0.96rem);
  }

  .lyrics-panel__line.is-long .lyrics-panel__line-en {
    font-size: clamp(0.92rem, 3.5vw, 1.12rem);
  }

  .lyrics-panel__line.is-long .lyrics-panel__line-zh {
    font-size: clamp(0.8rem, 3vw, 0.92rem);
  }
}
