/* =========================================================
   BETWEEN US — a private orbital archive
   Palette: deep ink, warm ivory, dust rose, old copper.
   ========================================================= */

:root {
  color-scheme: dark;
  --ink: #0b0a10;
  --ink-soft: #121019;
  --ink-raised: #17131e;
  --ivory: #f3e8da;
  --rose: #c88c86;
  --copper: #d9b47c;
  --jade: #8fae9f;
  --blue: #8298c0;
  --line: rgba(243, 232, 218, 0.13);
  --line-soft: rgba(243, 232, 218, 0.07);
  --muted: rgba(243, 232, 218, 0.48);
  --faint: rgba(243, 232, 218, 0.28);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body,
#root {
  height: 100%;
}

html {
  background: var(--ink);
  scrollbar-color: rgba(243, 232, 218, 0.22) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  overscroll-behavior: none;
}

::selection {
  background: var(--rose);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--copper);
}

:focus-visible {
  outline: 1px solid var(--copper);
  outline-offset: 4px;
}

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

.icon-flip {
  transform: scaleX(-1);
}

/* The native cursor is replaced by an orbital ring on precise pointers. */
@media (pointer: fine) {
  body,
  button,
  a,
  summary,
  label,
  [data-cursor] {
    cursor: none;
  }

  input,
  textarea {
    cursor: text;
  }
}

/* =========================================================
   Stage
   ========================================================= */

.app {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 540px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 62% 46%, rgba(52, 40, 66, 0.34), transparent 70%),
    radial-gradient(ellipse 50% 40% at 18% 82%, rgba(116, 64, 62, 0.12), transparent 70%),
    var(--ink);
  isolation: isolate;
}

.app::after {
  content: "";
  position: fixed;
  inset: 14px;
  z-index: 6;
  border: 1px solid rgba(243, 232, 218, 0.07);
  pointer-events: none;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.scene__canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

.scene__canvas.is-dragging {
  cursor: grabbing;
}

.scene > .scene-labels {
  z-index: 2;
}

.scene-labels.is-blocked .orbit-label {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* The intro owns the first impression; labels arrive with the orbit. */
.scene-labels:not(.is-entered) .orbit-label {
  opacity: 0 !important;
  animation: none;
  pointer-events: none !important;
}

.scene-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.scene-fallback__orbit {
  position: absolute;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(243, 232, 218, 0.12);
  border-radius: 50%;
  animation: fallback-spin 38s linear infinite;
}

.scene-fallback__orbit::before,
.scene-fallback__orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 18px var(--copper);
}

.scene-fallback__orbit::before {
  top: 16%;
  left: 12%;
}

.scene-fallback__orbit::after {
  right: 18%;
  bottom: 9%;
  background: var(--rose);
  box-shadow: 0 0 18px var(--rose);
}

.scene-fallback__orbit--two {
  width: min(48vw, 520px);
  transform: rotate(58deg) scaleY(0.62);
  animation-duration: 26s;
  animation-direction: reverse;
  border-color: rgba(243, 232, 218, 0.08);
}

/* 阅读层淡入的那 0.65s 里，如果星图还在下面画着，会从半透明的阅读层里透出来，
   看上去就是"闪一下"。打开阅读层时让星图先迅速沉下去，退出时再慢慢回来。 */
.scene {
  transition: opacity 0.42s var(--ease-out);
}

.app.is-reading .scene {
  opacity: 0;
  transition-duration: 0.16s;
  transition-timing-function: linear;
}


.grain {
  position: fixed;
  inset: -10%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  /* 颗粒层原来用 soft-light 混合 + steps 位移：整屏混合层每帧都要重算背景，
     在部分显卡上会周期性闪一下。改成普通叠加（透明度很低，肉眼看不出差别）且不位移。 */
}

/* =========================================================
   Orbit labels (rendered by CSS2DRenderer)
   ========================================================= */

.orbit-label {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 8px 6px;
  color: rgba(243, 232, 218, 0.72);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  background: rgba(11, 10, 16, 0.44);
  border: 1px solid rgba(243, 232, 218, 0.1);
  border-radius: 2px;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: auto;
  transition:
    opacity 0.5s var(--ease),
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
  animation: label-in 0.8s var(--ease) forwards;
}

.orbit-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -15px;
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, transparent, rgba(243, 232, 218, 0.22));
}

.orbit-label:hover,
.orbit-label:focus-visible,
.orbit-label.is-active {
  color: var(--ivory);
  border-color: rgba(217, 180, 124, 0.45);
  background: rgba(17, 14, 23, 0.82);
  outline: none;
}

.orbit-label__number {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.orbit-label__title {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* =========================================================
   Top bar
   ========================================================= */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 86px;
  padding: 0 clamp(20px, 3.4vw, 56px);
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--copper);
  opacity: 0.9;
}

.brand__mark svg {
  width: 32px;
  height: 32px;
  animation: slow-spin 60s linear infinite;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__text strong {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(243, 232, 218, 0.9);
}

.brand__text small {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--faint);
  white-space: nowrap;
}

.topbar__center {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.26em;
  color: rgba(243, 232, 218, 0.3);
  white-space: nowrap;
}

.topbar__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.7;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 10, 16, 0.3);
  backdrop-filter: blur(14px);
  color: rgba(243, 232, 218, 0.66);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}

.topbar__button svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.topbar__button:hover,
.topbar__button.is-open {
  color: var(--ivory);
  border-color: rgba(217, 180, 124, 0.42);
  background: rgba(24, 20, 31, 0.72);
}

.topbar__button.is-on .topbar__button-text {
  color: rgba(243, 232, 218, 0.88);
}

.topbar__button-text {
  white-space: nowrap;
}

/* =========================================================
   Spectrum
   ========================================================= */

.spectrum {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 17px;
  height: 13px;
}

.spectrum span {
  width: 1.5px;
  height: 13px;
  background: var(--copper);
  border-radius: 2px;
  opacity: 0.7;
  transform: scaleY(0.18);
  transform-origin: center;
  transition:
    transform 0.15s linear,
    opacity 0.4s;
}

.spectrum.is-playing span {
  opacity: 0.95;
}

/* =========================================================
   Intro
   ========================================================= */

.intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 96px 0 0 clamp(24px, 6.6vw, 118px);
  transition:
    opacity 1s var(--ease),
    visibility 1s;
}

.intro.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 52% at 71% 42%, transparent 0%, rgba(11, 10, 16, 0.18) 52%, rgba(11, 10, 16, 0.76) 100%),
    linear-gradient(90deg, rgba(11, 10, 16, 0.94) 0%, rgba(11, 10, 16, 0.76) 27%, rgba(11, 10, 16, 0.14) 58%, transparent 78%),
    linear-gradient(0deg, rgba(11, 10, 16, 0.78), transparent 42%);
  pointer-events: none;
}

.intro__copy {
  position: relative;
  z-index: 2;
  width: min(620px, 52vw);
  margin-top: -1.5vh;
}

.intro__eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: rgba(243, 232, 218, 0.42);
}

.intro__eyebrow-line {
  width: 42px;
  height: 1px;
  background: rgba(217, 180, 124, 0.5);
}

.intro__title {
  position: relative;
  margin: 30px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.intro__title-small {
  display: block;
  margin-left: 5px;
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(243, 232, 218, 0.62);
}

.intro__title-large {
  display: block;
  margin-top: 14px;
  font-size: clamp(54px, 7vw, 108px);
  letter-spacing: 0.055em;
  color: var(--ivory);
  text-shadow: 0 2px 40px rgba(10, 8, 14, 0.65);
  white-space: nowrap;
}

.intro__title-mark {
  display: inline-flex;
  width: clamp(30px, 3.2vw, 46px);
  margin-left: clamp(12px, 1.6vw, 24px);
  color: var(--copper);
  vertical-align: 0.3em;
  opacity: 0.78;
}

.intro__title-mark svg {
  width: 100%;
  height: auto;
  animation: slow-spin 44s linear infinite;
}

.intro__lede {
  max-width: 380px;
  margin: 30px 0 0;
  font-size: 14px;
  line-height: 2.05;
  letter-spacing: 0.045em;
  color: rgba(243, 232, 218, 0.58);
}

.intro__actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 34px);
  margin-top: 38px;
}

.enter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  height: 58px;
  padding: 8px 20px 8px 8px;
  overflow: hidden;
  border: 1px solid rgba(217, 180, 124, 0.42);
  border-radius: 999px;
  background: rgba(17, 14, 23, 0.5);
  backdrop-filter: blur(16px);
  color: var(--ivory);
  transition:
    border-color 0.45s,
    background 0.45s,
    transform 0.45s var(--ease);
}

.enter-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(200, 140, 134, 0.18), rgba(217, 180, 124, 0.08) 55%, transparent);
  transform: translateX(-101%);
  transition: transform 0.7s var(--ease);
}

.enter-button:hover {
  border-color: rgba(217, 180, 124, 0.85);
  background: rgba(24, 20, 31, 0.66);
  transform: translateY(-1px);
}

.enter-button:hover::before {
  transform: translateX(0);
}

.enter-button__orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(217, 180, 124, 0.42);
  border-radius: 50%;
}

.enter-button__orbit::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 8px;
  border: 1px solid rgba(243, 232, 218, 0.42);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.enter-button__orbit span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 10px rgba(217, 180, 124, 0.9);
}

.enter-button__label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.enter-button__arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: var(--copper);
  transition: transform 0.4s var(--ease);
}

.enter-button__arrow svg {
  width: 17px;
  height: 17px;
}

.enter-button:hover .enter-button__arrow {
  transform: translateX(4px);
}

.intro__footnote {
  max-width: 168px;
  margin: 0;
  font-size: 10px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: rgba(243, 232, 218, 0.34);
}

.intro__margin {
  position: absolute;
  top: 50%;
  right: clamp(18px, 2.4vw, 38px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.36em;
  color: rgba(243, 232, 218, 0.24);
}

.intro__margin-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.7;
}

.intro__meta {
  position: absolute;
  left: clamp(24px, 6.6vw, 118px);
  right: clamp(24px, 6.6vw, 118px);
  bottom: clamp(24px, 4.2vh, 44px);
  z-index: 2;
  display: flex;
  gap: clamp(30px, 5vw, 70px);
  padding-top: 13px;
  border-top: 1px solid rgba(243, 232, 218, 0.08);
}

.intro__meta > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.intro__meta .meta-label {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.26em;
  color: rgba(243, 232, 218, 0.28);
}

.intro__meta > div > span:last-child {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(243, 232, 218, 0.52);
}

/* =========================================================
   Reveal choreography
   ========================================================= */

.reveal {
  opacity: 0;
  animation: reveal-up 1.1s var(--ease-out) forwards;
}

.reveal-1 {
  animation-delay: 0.1s;
}
.reveal-2 {
  animation-delay: 0.22s;
}
.reveal-3 {
  animation-delay: 0.34s;
}
.reveal-4 {
  animation-delay: 0.52s;
}
.reveal-5 {
  animation-delay: 0.64s;
}

/* =========================================================
   Orbit HUD
   ========================================================= */

.orbit-ui {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.9s var(--ease) 0.5s,
    visibility 0.9s 0.5s;
}

/* Quiet the starfield where the HUD lives, so the type stays readable. */
.orbit-ui::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 7, 12, 0.46) 0%, transparent 13%),
    radial-gradient(62% 54% at 0% 100%, rgba(6, 5, 10, 0.78), transparent 72%),
    radial-gradient(46% 44% at 100% 100%, rgba(6, 5, 10, 0.56), transparent 74%);
}

.orbit-ui.is-visible {
  opacity: 1;
  visibility: visible;
}

.orbit-ui > * {
  pointer-events: auto;
}

/* --- chapter index --------------------------------------- */

.index {
  position: fixed;
  left: clamp(20px, 3.4vw, 56px);
  bottom: clamp(38px, 5vh, 56px);
  width: 286px;
}

.index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(243, 232, 218, 0.1);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.24em;
  color: rgba(243, 232, 218, 0.46);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.index__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.index__item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 8px 10px 10px;
  color: rgba(243, 232, 218, 0.62);
  text-align: left;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
  transition:
    color 0.3s,
    background 0.3s;
}

.index__item::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 1px;
  background: var(--item-color, var(--copper));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}

.index__item:hover,
.index__item.is-hover,
.index__item.is-active {
  color: var(--ivory);
  background: linear-gradient(90deg, rgba(243, 232, 218, 0.035), transparent 88%);
}

.index__item:hover::before,
.index__item.is-hover::before,
.index__item.is-active::before {
  transform: scaleY(1);
}

.index__number {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: rgba(243, 232, 218, 0.42);
  transition: color 0.3s;
}

.index__item:hover .index__number,
.index__item.is-active .index__number {
  color: var(--item-color, var(--copper));
}

.index__title {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 14.5px;
  letter-spacing: 0.13em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.index__date {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  color: rgba(243, 232, 218, 0.26);
  white-space: nowrap;
}

.index__track {
  display: block;
  width: 18px;
  height: 1px;
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition:
    opacity 0.35s,
    transform 0.45s var(--ease);
}

.index__item:hover .index__track,
.index__item.is-active .index__track {
  opacity: 0.8;
  transform: scaleX(1);
}

.index__note {
  margin: 14px 0 0 10px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.3);
}

/* --- selected signal ------------------------------------- */

.coordinate {
  position: fixed;
  right: clamp(20px, 3.4vw, 56px);
  bottom: clamp(40px, 5.4vh, 64px);
  width: 252px;
  padding-left: 16px;
  border-left: 1px solid rgba(243, 232, 218, 0.1);
}

.coordinate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.24em;
  color: rgba(243, 232, 218, 0.42);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.coordinate__tick {
  width: 16px;
  height: 1px;
  background: rgba(243, 232, 218, 0.18);
}

.coordinate__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: coordinate-in 0.5s var(--ease-out) both;
}

.coordinate__number {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 0.95;
  color: var(--signal);
  opacity: 0.82;
}

.coordinate h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(243, 232, 218, 0.9);
}

.coordinate p {
  margin: 5px 0 0;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(243, 232, 218, 0.52);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.coordinate__meta {
  display: flex;
  gap: 11px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(243, 232, 218, 0.36);
}

.coordinate__empty p {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(243, 232, 218, 0.48);
}

.coordinate__empty span {
  display: block;
  margin-top: 8px;
  font-size: 9.5px;
  line-height: 1.8;
  color: rgba(243, 232, 218, 0.34);
}

/* --- viewport hint --------------------------------------- */

.viewport-hint {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: rgba(243, 232, 218, 0.38);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  pointer-events: none;
}

.viewport-hint__mouse {
  position: relative;
  display: block;
  width: 13px;
  height: 19px;
  margin-right: 2px;
  border: 1px solid rgba(243, 232, 218, 0.28);
  border-radius: 7px;
}

.viewport-hint__mouse span {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 1px;
  height: 4px;
  margin-left: -0.5px;
  background: var(--copper);
  animation: wheel-hint 2.4s var(--ease) infinite;
}

.viewport-hint__sep {
  opacity: 0.35;
}

/* =========================================================
   Reader
   ========================================================= */

.reader {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 62% 64% at 18% 18%, rgba(200, 140, 134, 0.055), transparent 62%),
    radial-gradient(ellipse 50% 50% at 86% 84%, rgba(130, 152, 192, 0.045), transparent 62%),
    linear-gradient(160deg, rgba(12, 10, 16, 0.97), rgba(8, 7, 11, 0.985));
  opacity: 0;
  animation: reader-in 0.65s var(--ease) forwards;
  scrollbar-width: thin;
}

.reader__ambient {
  position: fixed;
  inset: -14%;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.14;
  filter: blur(105px) saturate(1.25);
  transform: scale(1.08);
  pointer-events: none;
}

.reader__scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
}

.reader__header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(8, 7, 11, 0.88), transparent);
  pointer-events: none;
}

.reader__header > * {
  pointer-events: auto;
}

.reader__counter {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: rgba(243, 232, 218, 0.34);
}

.reader__counter-label {
  color: rgba(243, 232, 218, 0.26);
}

.reader__counter-number {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--copper);
}

.reader__counter-total {
  color: rgba(243, 232, 218, 0.26);
}

.reader__counter-line {
  width: 34px;
  height: 1px;
  background: rgba(243, 232, 218, 0.14);
}

.reader__stage {
  color: rgba(217, 180, 124, 0.55);
  transition: color 0.6s;
}

.reader__stage.is-done {
  color: rgba(143, 174, 159, 0.65);
}

.reader__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(243, 232, 218, 0.14);
  border-radius: 999px;
  background: rgba(11, 10, 16, 0.32);
  color: rgba(243, 232, 218, 0.6);
  font-size: 10px;
  letter-spacing: 0.14em;
  backdrop-filter: blur(10px);
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}

.reader__close:hover {
  color: var(--ivory);
  border-color: rgba(200, 140, 134, 0.5);
  background: rgba(24, 20, 31, 0.7);
}

.reader__close svg {
  width: 13px;
  height: 13px;
}

.reader__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  align-items: start;
  gap: clamp(40px, 7vw, 112px);
  width: min(1400px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 118px clamp(24px, 6vw, 92px) 132px;
}

/* --- image plate ----------------------------------------- */

.reader__visual {
  position: sticky;
  top: 112px;
  align-self: start;
  justify-self: end;
  width: min(440px, 40vw, calc((100dvh - 250px) * 0.8));
  margin: 0;
}

.plate {
  --rot-x: 0deg;
  --rot-y: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  transform: perspective(1200px) rotateX(var(--rot-x)) rotateY(var(--rot-y));
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

.plate__index {
  position: absolute;
  top: -0.28em;
  left: -0.24em;
  z-index: 0;
  font-family: var(--serif);
  font-size: clamp(120px, 12vw, 190px);
  font-weight: 500;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 232, 218, 0.14);
  pointer-events: none;
  user-select: none;
}

.plate__frame {
  position: relative;
  z-index: 1;
  padding: 9px;
  background: rgba(18, 15, 24, 0.82);
  border: 1px solid rgba(243, 232, 218, 0.2);
  box-shadow:
    0 48px 90px -38px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(243, 232, 218, 0.035);
}

.plate__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #17131d;
}

.plate__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 14, 0.24), transparent 22%, transparent 74%, rgba(10, 8, 14, 0.42)),
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(10, 8, 14, 0.26));
  pointer-events: none;
}

.plate__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02) brightness(0.95);
  user-select: none;
  animation: develop 2.4s var(--ease-out) both;
}

.plate__scan {
  position: absolute;
  top: -30%;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(243, 232, 218, 0.14) 62%, rgba(217, 180, 124, 0.05));
  mix-blend-mode: screen;
  pointer-events: none;
  animation: scan-pass 2.7s 0.3s var(--ease) both;
}

.plate__shine {
  position: absolute;
  inset: 9px;
  z-index: 4;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 247, 235, 0.13), transparent 42%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.plate:hover .plate__shine {
  opacity: 1;
}

.plate__corner {
  position: absolute;
  z-index: 5;
  width: 17px;
  height: 17px;
  border-color: rgba(243, 232, 218, 0.45);
  border-style: solid;
  pointer-events: none;
}

.plate__corner--tl {
  top: 2px;
  left: 2px;
  border-width: 1px 0 0 1px;
}
.plate__corner--tr {
  top: 2px;
  right: 2px;
  border-width: 1px 1px 0 0;
}
.plate__corner--bl {
  bottom: 2px;
  left: 2px;
  border-width: 0 0 1px 1px;
}
.plate__corner--br {
  right: 2px;
  bottom: 2px;
  border-width: 0 1px 1px 0;
}

.plate__stamp {
  position: absolute;
  right: 18px;
  bottom: 17px;
  z-index: 5;
  padding: 3px 6px;
  border: 1px solid rgba(243, 232, 218, 0.16);
  background: rgba(11, 10, 16, 0.42);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.14em;
  color: rgba(243, 232, 218, 0.55);
  backdrop-filter: blur(6px);
}

.reader__caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: 92%;
  margin-top: 17px;
  font-size: 9.5px;
  line-height: 1.75;
  letter-spacing: 0.055em;
  color: rgba(243, 232, 218, 0.34);
}

.reader__caption-mark {
  flex: none;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--copper);
  opacity: 0.8;
}

/* --- copy ------------------------------------------------ */

.reader__copy {
  padding-top: 6px;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1s var(--ease) 0.05s,
    transform 1.1s var(--ease-out) 0.05s;
}

.reader.is-text .reader__copy {
  opacity: 1;
  transform: none;
}

.reader__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(243, 232, 218, 0.35);
}

.reader__date {
  color: var(--copper);
  opacity: 0.85;
}

.reader__place::before {
  content: "/";
  margin-right: 14px;
  color: rgba(243, 232, 218, 0.2);
}

.reader__title {
  margin: 18px 0 8px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 66px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.035em;
  color: var(--ivory);
}

.reader__subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: rgba(243, 232, 218, 0.42);
}

.reader__quote {
  position: relative;
  margin: 30px 0 0;
  padding-left: 20px;
  border-left: 1px solid var(--accent);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.9;
  letter-spacing: 0.035em;
  color: rgba(243, 232, 218, 0.72);
}

.reader__quote::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.reader__rule {
  position: relative;
  height: 1px;
  margin: 34px 0;
  background: rgba(243, 232, 218, 0.09);
}

.reader__rule span {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 1px;
  background: var(--accent);
  opacity: 0.75;
}

.reader__body {
  max-width: 640px;
}

.reader__body p {
  margin: 0 0 19px;
  font-size: 14.5px;
  line-height: 2.1;
  letter-spacing: 0.035em;
  color: rgba(243, 232, 218, 0.66);
}

.reader__body p:last-child {
  margin-bottom: 0;
}

.reader__footer {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 232, 218, 0.075);
}

.reader__closing {
  max-width: 480px;
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: 0.09em;
  color: rgba(243, 232, 218, 0.46);
}

.reader__footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
}

.reader__hint {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: rgba(243, 232, 218, 0.24);
}

.reader__next {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(217, 180, 124, 0.45);
  color: rgba(243, 232, 218, 0.78);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition:
    color 0.3s,
    gap 0.35s var(--ease),
    border-color 0.3s;
}

.reader__next svg {
  width: 15px;
  height: 15px;
  color: var(--copper);
}

.reader__next:hover {
  gap: 14px;
  border-color: var(--copper);
  color: var(--ivory);
}

/* --- bottom navigation ----------------------------------- */

.reader__nav {
  position: fixed;
  right: 0;
  bottom: 6px;
  left: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 72px) 38px;
  background: linear-gradient(0deg, rgba(8, 7, 11, 0.94) 26%, rgba(8, 7, 11, 0.5) 70%, transparent);
  pointer-events: none;
}

.reader__nav-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(243, 232, 218, 0.46);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-align: left;
  transition: color 0.3s;
  pointer-events: auto;
}

.reader__nav-button.is-right {
  text-align: right;
}

.reader__nav-button small {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.22em;
  color: rgba(243, 232, 218, 0.24);
}

.reader__nav-button svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: rgba(217, 180, 124, 0.6);
  transition: transform 0.35s var(--ease);
}

.reader__nav-button:hover {
  color: var(--ivory);
}

.reader__nav-button:hover svg {
  transform: translateX(-3px);
}

.reader__nav-button.is-right:hover svg {
  transform: translateX(3px);
}

.reader__nav-ticks {
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
}

.reader__nav-ticks span {
  width: 13px;
  height: 1px;
  background: rgba(243, 232, 218, 0.18);
  transition:
    width 0.4s var(--ease),
    background 0.4s;
}

.reader__nav-ticks span.is-current {
  width: 30px;
  background: var(--copper);
}

/* =========================================================
   Editor
   ========================================================= */

.editor-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.editor-scrim {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(6, 5, 9, 0.52);
  backdrop-filter: blur(9px);
  border: 0;
  animation: scrim-in 0.4s var(--ease) both;
}

.editor {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(560px, 100vw);
  background:
    radial-gradient(ellipse 100% 40% at 100% 0%, rgba(200, 140, 134, 0.05), transparent 60%),
    #110e17;
  border-left: 1px solid rgba(243, 232, 218, 0.14);
  box-shadow: -40px 0 100px -50px rgba(0, 0, 0, 0.95);
  animation: drawer-in 0.55s var(--ease-out) both;
}

.editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 28px 20px;
  border-bottom: 1px solid rgba(243, 232, 218, 0.08);
}

.editor__kicker {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.24em;
  color: rgba(217, 180, 124, 0.6);
}

.editor__head h2 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: rgba(243, 232, 218, 0.94);
}

.editor__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(243, 232, 218, 0.14);
  border-radius: 50%;
  color: rgba(243, 232, 218, 0.55);
  transition:
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}

.editor__close:hover {
  color: var(--ivory);
  border-color: rgba(200, 140, 134, 0.5);
  transform: rotate(90deg);
}

.editor__close svg {
  width: 13px;
  height: 13px;
}

.editor__tabs {
  display: flex;
  flex: none;
  gap: 5px;
  overflow-x: auto;
  padding: 13px 28px;
  border-bottom: 1px solid rgba(243, 232, 218, 0.07);
  scrollbar-width: none;
}

.editor__tabs::-webkit-scrollbar {
  display: none;
}

.editor__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(243, 232, 218, 0.1);
  border-radius: 2px;
  color: rgba(243, 232, 218, 0.42);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}

.editor__tab > span {
  font-family: var(--mono);
  font-size: 7px;
  color: rgba(243, 232, 218, 0.28);
}

.editor__tab:hover {
  color: var(--ivory);
  border-color: rgba(243, 232, 218, 0.24);
}

.editor__tab.is-active {
  color: var(--ivory);
  border-color: var(--tab-color, var(--copper));
  background: rgba(243, 232, 218, 0.035);
}

.editor__tab.is-active > span {
  color: var(--tab-color, var(--copper));
}

.editor__tab.is-add {
  border-style: dashed;
  color: rgba(243, 232, 218, 0.34);
}

.editor__body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px 34px;
  scrollbar-color: rgba(243, 232, 218, 0.18) transparent;
  scrollbar-width: thin;
}

.editor__cover {
  margin-bottom: 26px;
  border: 1px solid rgba(243, 232, 218, 0.1);
  border-radius: 2px;
  background: rgba(243, 232, 218, 0.018);
}

.editor__cover summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: rgba(243, 232, 218, 0.6);
  font-size: 11px;
  letter-spacing: 0.1em;
  list-style: none;
  transition: color 0.3s;
}

.editor__cover summary::-webkit-details-marker {
  display: none;
}

.editor__cover summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(243, 232, 218, 0.32);
  transition: transform 0.3s;
}

.editor__cover[open] summary::after {
  transform: rotate(45deg);
}

.editor__cover summary:hover {
  color: var(--ivory);
}

.editor__summary-hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(243, 232, 218, 0.24);
}

.editor__cover-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 14px 16px;
  border-top: 1px solid rgba(243, 232, 218, 0.06);
}

.editor__cover-body > .field:first-child,
.editor__cover-body > .field-grid:first-child {
  margin-top: 14px;
}

.editor__section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 18px;
  padding-top: 2px;
}

.editor__section-number {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: rgba(217, 180, 124, 0.5);
}

.editor__section-head h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(243, 232, 218, 0.82);
}

.editor__bloom-note {
  margin: -4px 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 180, 124, 0.22);
  border-radius: 10px;
  background: rgba(217, 180, 124, 0.06);
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(243, 232, 218, 0.52);
}

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

.field-grid.is-two {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field > span,
.field-label {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.34);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(243, 232, 218, 0.11);
  border-radius: 2px;
  background: rgba(243, 232, 218, 0.025);
  color: rgba(243, 232, 218, 0.86);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(243, 232, 218, 0.22);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(217, 180, 124, 0.5);
  background: rgba(243, 232, 218, 0.04);
  box-shadow: 0 0 0 1px rgba(217, 180, 124, 0.08);
}

.field textarea {
  resize: vertical;
  min-height: 58px;
}

.field__body {
  min-height: 210px !important;
  line-height: 1.95 !important;
}

.editor__image-block {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 15px;
  margin: 4px 0 18px;
  padding: 13px;
  border: 1px solid rgba(243, 232, 218, 0.08);
  background: rgba(243, 232, 218, 0.015);
}

.editor__image-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #19141f;
  border: 1px solid rgba(243, 232, 218, 0.1);
}

.editor__image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor__image-preview > span {
  font-size: 9px;
  color: rgba(243, 232, 218, 0.25);
}

.editor__image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

.editor__image-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor__image-copy p {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.8;
  color: rgba(243, 232, 218, 0.34);
}

.editor__image-copy code {
  padding: 1px 3px;
  background: rgba(243, 232, 218, 0.06);
  font-family: var(--mono);
  font-size: 8.5px;
  color: rgba(217, 180, 124, 0.7);
}

.editor__image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(243, 232, 218, 0.15);
  border-radius: 2px;
  color: rgba(243, 232, 218, 0.7);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}

.ghost-button svg {
  width: 13px;
  height: 13px;
}

.ghost-button:hover:not(:disabled) {
  color: var(--ivory);
  border-color: rgba(217, 180, 124, 0.42);
  background: rgba(243, 232, 218, 0.03);
}

.ghost-button:disabled {
  opacity: 0.4;
  cursor: wait;
}

.ghost-button.is-quiet {
  border-color: transparent;
  color: rgba(243, 232, 218, 0.38);
}

.ghost-button.is-quiet:hover:not(:disabled) {
  border-color: rgba(243, 232, 218, 0.12);
  color: rgba(243, 232, 218, 0.8);
}

.swatches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.swatch {
  position: relative;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(243, 232, 218, 0.1);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch.is-active {
  box-shadow:
    0 0 0 2px #110e17,
    0 0 0 3px rgba(243, 232, 218, 0.65);
}

.swatch.is-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 25px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(243, 232, 218, 0.04);
  box-shadow: none;
}

.swatch.is-custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.swatch.is-custom span {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: rgba(243, 232, 218, 0.5);
}

.editor__danger {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 232, 218, 0.07);
}

.text-button {
  color: rgba(200, 140, 134, 0.75);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  transition: color 0.3s;
}

.text-button:hover {
  color: var(--rose);
}

.editor__danger span {
  font-size: 8.5px;
  color: rgba(243, 232, 218, 0.24);
}

.editor__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: none;
  padding: 14px 28px;
  border-top: 1px solid rgba(243, 232, 218, 0.09);
  background: rgba(13, 11, 18, 0.94);
  backdrop-filter: blur(18px);
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: rgba(243, 232, 218, 0.34);
}

.save-state__dot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--copper);
  transition: background 0.3s;
}

.save-state.is-saving .save-state__dot {
  background: var(--blue);
  animation: pulse-dot 1s ease-in-out infinite;
}

.save-state.is-saved .save-state__dot {
  background: var(--jade);
}

.save-state.is-error .save-state__dot {
  background: var(--rose);
}

.save-state.is-error {
  color: rgba(200, 140, 134, 0.8);
}

.editor__foot-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================
   Audio panel
   ========================================================= */

.audio-scrim {
  position: fixed;
  inset: 0;
  z-index: 79;
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(5, 4, 8, 0.22);
  border: 0;
  backdrop-filter: blur(2px);
  animation: scrim-in 0.35s var(--ease) both;
}

.audio-panel {
  position: fixed;
  top: 74px;
  right: clamp(20px, 3.4vw, 56px);
  z-index: 80;
  width: min(366px, calc(100vw - 32px));
  padding: 21px;
  background:
    radial-gradient(ellipse 100% 60% at 100% 0%, rgba(200, 140, 134, 0.07), transparent 65%),
    rgba(18, 15, 24, 0.94);
  border: 1px solid rgba(243, 232, 218, 0.15);
  border-radius: 3px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px);
  animation: panel-in 0.42s var(--ease-out) both;
}

.audio-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.audio-panel__kicker {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.24em;
  color: rgba(217, 180, 124, 0.62);
}

.audio-panel__head h2 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(243, 232, 218, 0.92);
}

.audio-panel__close {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border: 1px solid rgba(243, 232, 218, 0.12);
  border-radius: 50%;
  color: rgba(243, 232, 218, 0.45);
  transition:
    color 0.3s,
    border-color 0.3s;
}

.audio-panel__close:hover {
  color: var(--ivory);
  border-color: rgba(200, 140, 134, 0.45);
}

.audio-panel__close svg {
  width: 11px;
  height: 11px;
}

.audio-now {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 17px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(243, 232, 218, 0.08);
  border-bottom: 1px solid rgba(243, 232, 218, 0.08);
}

.audio-now__disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 232, 218, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(217, 180, 124, 0.08), transparent 64%);
}

.audio-now__disc::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 12px rgba(217, 180, 124, 0.7);
}

.audio-now.is-playing .audio-now__disc {
  animation: slow-spin 12s linear infinite;
}

.audio-now__pulse {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(217, 180, 124, 0.22);
  border-radius: 50%;
}

.audio-now.is-playing .audio-now__pulse {
  animation: disc-pulse 2.8s var(--ease) infinite;
}

.audio-now__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.audio-now__label {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.2em;
  color: rgba(143, 174, 159, 0.7);
}

.audio-now__text strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(243, 232, 218, 0.84);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.audio-now__text > span:last-child {
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(243, 232, 218, 0.3);
}

.audio-now .spectrum {
  width: 22px;
  height: 20px;
}

.audio-now .spectrum span {
  height: 20px;
}

.audio-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.audio-toggle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 38px;
  border: 1px solid rgba(217, 180, 124, 0.38);
  border-radius: 2px;
  background: rgba(217, 180, 124, 0.07);
  color: rgba(243, 232, 218, 0.85);
  font-size: 10px;
  letter-spacing: 0.12em;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.audio-toggle:hover {
  border-color: rgba(217, 180, 124, 0.68);
  background: rgba(217, 180, 124, 0.12);
}

.audio-toggle__glyph {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--copper);
}

.audio-source {
  height: 32px;
  border: 1px solid rgba(243, 232, 218, 0.12);
  border-radius: 2px;
  color: rgba(243, 232, 218, 0.48);
  font-size: 9px;
  letter-spacing: 0.06em;
  transition:
    color 0.3s,
    border-color 0.3s;
}

.audio-source:hover:not(:disabled) {
  color: var(--ivory);
  border-color: rgba(243, 232, 218, 0.28);
}

.audio-source:disabled {
  color: rgba(217, 180, 124, 0.72);
  border-color: rgba(217, 180, 124, 0.3);
  background: rgba(217, 180, 124, 0.05);
}

.audio-panel__note {
  margin: 15px 0 0;
  font-size: 9.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: rgba(243, 232, 218, 0.38);
}

.audio-panel__note.is-dim {
  margin-top: 8px;
  color: rgba(243, 232, 218, 0.23);
}

/* =========================================================
   Cursor
   ========================================================= */

.cursor {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  pointer-events: none;
}

@media (pointer: fine) {
  .cursor {
    display: block;
  }
}

.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(243, 232, 218, 0.78);
  border-radius: 50%;
  /* 内亮外暗：深色页面上是光圈，浅色画面（视频、照片）上也压得住 */
  box-shadow:
    0 0 0 1px rgba(8, 6, 11, 0.45),
    0 0 14px rgba(243, 232, 218, 0.16);
  transition:
    width 0.32s var(--ease),
    height 0.32s var(--ease),
    border-color 0.3s,
    background-color 0.3s,
    opacity 0.3s;
  will-change: transform;
}

.cursor__ring.is-link {
  width: 42px;
  height: 42px;
  border-color: rgba(217, 180, 124, 0.62);
  background: rgba(217, 180, 124, 0.035);
}

.cursor__ring.is-field {
  width: 7px;
  height: 23px;
  border-radius: 2px;
  border-color: rgba(217, 180, 124, 0.55);
  background: transparent;
}

.cursor.is-node .cursor__ring {
  width: 68px;
  height: 68px;
  border-color: rgba(217, 180, 124, 0.72);
  background: rgba(217, 180, 124, 0.055);
}

.cursor__label {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.16em;
  color: rgba(217, 180, 124, 0.9);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.3s,
    transform 0.3s;
  white-space: nowrap;
}

.cursor.is-node .cursor__label {
  opacity: 1;
  transform: none;
}

.cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(243, 232, 218, 0.9);
  box-shadow:
    0 0 0 1px rgba(8, 6, 11, 0.34),
    0 0 8px rgba(243, 232, 218, 0.45);
  transition:
    opacity 0.2s,
    width 0.2s,
    height 0.2s;
  will-change: transform;
}

.cursor__dot.is-field {
  opacity: 0;
}



/* =========================================================
   Toast
   ========================================================= */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 17px;
  transform: translateX(-50%);
  border: 1px solid rgba(217, 180, 124, 0.28);
  border-radius: 2px;
  background: rgba(18, 15, 24, 0.95);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: rgba(243, 232, 218, 0.7);
  animation: toast-in 0.4s var(--ease-out) both;
}

.toast__dot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 8px rgba(217, 180, 124, 0.6);
}

/* =========================================================
   Scrollbars
   ========================================================= */

.reader::-webkit-scrollbar,
.editor__body::-webkit-scrollbar {
  width: 5px;
}

.reader::-webkit-scrollbar-track,
.editor__body::-webkit-scrollbar-track {
  background: transparent;
}

.reader::-webkit-scrollbar-thumb,
.editor__body::-webkit-scrollbar-thumb {
  background: rgba(243, 232, 218, 0.16);
  border-radius: 99px;
}

/* =========================================================
   Keyframes
   ========================================================= */

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes label-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes reader-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes develop {
  0% {
    opacity: 0;
    transform: scale(1.14);
    filter: blur(24px) saturate(0.6) brightness(1.25);
    clip-path: inset(0 0 100% 0);
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1.01);
    filter: blur(0) saturate(0.9) contrast(1.02) brightness(0.95);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes scan-pass {
  0% {
    top: -35%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 0.8;
  }
  100% {
    top: 105%;
    opacity: 0;
  }
}

@keyframes scrim-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(46px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes coordinate-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fallback-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes grain-shift {
  0% {
    background-position: 0 0;
  }
  20% {
    background-position: -30px 12px;
  }
  40% {
    background-position: 22px -18px;
  }
  60% {
    background-position: -12px 26px;
  }
  80% {
    background-position: 18px 8px;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes wheel-hint {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes disc-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .topbar__center,
  .coordinate {
    display: none;
  }

  .readonly-hide {
    display: none;
  }

  .intro__copy {
    width: min(600px, 58vw);
  }

  .intro__title-large {
    font-size: clamp(50px, 6.6vw, 92px);
  }
}

@media (max-width: 900px) {
  .app::after {
    inset: 8px;
  }

  .intro {
    padding-left: clamp(22px, 7vw, 56px);
  }

  .intro__copy {
    width: min(560px, 72vw);
  }

  .intro__title-large {
    font-size: clamp(46px, 7.6vw, 74px);
  }

  .intro__meta {
    left: clamp(22px, 7vw, 56px);
    right: clamp(22px, 7vw, 56px);
  }

  .index {
    width: 252px;
    left: 22px;
  }

  .reader__inner {
    grid-template-columns: minmax(250px, 0.84fr) minmax(300px, 1.16fr);
    gap: 42px;
    padding-right: 40px;
    padding-left: 40px;
  }

  .reader__visual {
    width: min(380px, 42vw, calc((100dvh - 250px) * 0.8));
  }

  .editor {
    width: min(520px, 100vw);
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 66px;
    padding: 0 16px;
  }

  .brand__mark {
    width: 28px;
    height: 28px;
  }

  .brand__mark svg {
    width: 27px;
    height: 27px;
  }

  .brand__text strong {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .brand__text small {
    display: none;
  }

  .topbar__actions {
    gap: 5px;
  }

  .topbar__button {
    height: 32px;
    padding: 0 10px;
    gap: 6px;
  }

  .topbar__button svg {
    width: 14px;
    height: 14px;
  }

  .topbar__button-text {
    display: none;
  }

  .topbar__button .spectrum {
    width: 15px;
  }

  .intro {
    align-items: flex-start;
    padding: 104px 22px 0;
  }

  .intro__veil {
    background:
      linear-gradient(90deg, rgba(11, 10, 16, 0.9) 0%, rgba(11, 10, 16, 0.62) 52%, rgba(11, 10, 16, 0.2) 100%),
      linear-gradient(0deg, rgba(11, 10, 16, 0.9), transparent 58%);
  }

  .intro__copy {
    width: 100%;
    margin-top: 0;
  }

  .intro__eyebrow {
    gap: 10px;
    font-size: 7px;
    letter-spacing: 0.17em;
  }

  .intro__eyebrow-line {
    width: 28px;
  }

  .intro__title {
    margin-top: 24px;
  }

  .intro__title-small {
    font-size: 22px;
    margin-left: 2px;
  }

  .intro__title-large {
    margin-top: 12px;
    font-size: clamp(46px, 12vw, 68px);
    letter-spacing: 0.03em;
  }

  .intro__title-mark {
    width: 26px;
    margin-left: 10px;
  }

  .intro__lede {
    max-width: 300px;
    margin-top: 22px;
    font-size: 12.5px;
    line-height: 1.95;
  }

  .intro__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
  }

  .enter-button {
    height: 52px;
    padding: 6px 17px 6px 6px;
  }

  .enter-button__orbit {
    width: 38px;
    height: 38px;
  }

  .intro__footnote {
    max-width: 240px;
    font-size: 9px;
    line-height: 1.6;
  }

  .intro__margin,
  .intro__meta {
    display: none;
  }

  .index {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
    padding: 6px;
    border: 1px solid rgba(243, 232, 218, 0.1);
    border-radius: 3px;
    background: rgba(11, 10, 16, 0.6);
    backdrop-filter: blur(16px);
  }

  .index__head,
  .index__note {
    display: none;
  }

  .index__list {
    flex-direction: row;
    gap: 4px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-right: 18px;
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }

  .index__list::-webkit-scrollbar {
    display: none;
  }

  .index__item {
    grid-template-columns: 18px minmax(0, 1fr);
    min-width: 116px;
    padding: 8px 9px;
    border: 1px solid transparent;
    scroll-snap-align: start;
  }

  .orbit-label {
    gap: 5px;
    padding: 4px 6px 5px;
    font-size: 9px;
    letter-spacing: 0.08em;
    background: rgba(11, 10, 16, 0.62);
  }

  .orbit-label::after {
    display: none;
  }

  .orbit-label__number {
    font-size: 7px;
  }

  .index__item:hover,
  .index__item.is-hover,
  .index__item.is-active {
    border-color: rgba(243, 232, 218, 0.1);
    background: rgba(243, 232, 218, 0.03);
  }

  .index__item::before {
    display: none;
  }

  .index__title {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .index__date,
  .index__track {
    display: none;
  }

  .viewport-hint {
    display: none;
  }

  .reader__header {
    padding: 16px 18px;
  }

  .reader__stage,
  .reader__counter-line {
    display: none;
  }

  .reader__close {
    height: 32px;
    padding: 0 10px;
  }

  .reader__close span {
    display: none;
  }

  .reader__inner {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 82px 20px 128px;
  }

  .reader__visual {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 420px;
    align-self: center;
  }

  .plate__index {
    font-size: 96px;
    top: -0.22em;
    left: -0.16em;
  }

  .plate__frame {
    padding: 6px;
  }

  .plate__shine {
    inset: 6px;
  }

  .reader__caption {
    max-width: 100%;
    margin-top: 12px;
    font-size: 9px;
  }

  .reader__copy {
    width: 100%;
    padding-top: 0;
  }

  .reader__title {
    margin-top: 14px;
    font-size: clamp(34px, 9.4vw, 46px);
  }

  .reader__subtitle {
    font-size: 11px;
  }

  .reader__quote {
    margin-top: 24px;
    padding-left: 15px;
    font-size: 17px;
    line-height: 1.85;
  }

  .reader__rule {
    margin: 26px 0;
  }

  .reader__body p {
    font-size: 14px;
    line-height: 2.05;
  }

  .reader__footer {
    margin-top: 30px;
  }

  .reader__footer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .reader__nav {
    padding: 12px 18px max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(8, 7, 11, 0.99) 46%, rgba(8, 7, 11, 0.88) 72%, transparent);
  }

  .reader__nav-ticks {
    display: none;
  }

  .reader__nav-button span {
    font-size: 9px;
  }

  .reader__nav-button small {
    display: none;
  }

  .reader__nav-button svg {
    width: 18px;
    height: 18px;
  }

  .editor {
    width: 100%;
  }

  .editor__head {
    padding: 20px 18px 16px;
  }

  .editor__head h2 {
    font-size: 21px;
  }

  .editor__tabs {
    padding: 10px 18px;
  }

  .editor__body {
    padding: 18px 18px 28px;
  }

  .editor__foot {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 18px max(12px, env(safe-area-inset-bottom));
  }

  .editor__foot-actions {
    margin-left: auto;
  }

  .field-grid.is-two {
    grid-template-columns: 1fr;
  }

  .editor__image-block {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .audio-panel {
    top: 62px;
    right: 16px;
  }

  .toast {
    bottom: 92px;
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .intro__title-large {
    font-size: 44px;
  }

  .intro__title-mark {
    width: 22px;
  }

  .enter-button__label {
    font-size: 11px;
  }

  .reader__inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .editor__image-block {
    grid-template-columns: 1fr;
  }

  .editor__image-preview {
    width: 96px;
  }

  .editor__foot-actions .ghost-button {
    padding: 0 8px;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .intro {
    padding-top: 82px;
  }

  .intro__title {
    margin-top: 22px;
  }

  .intro__title-small {
    font-size: 26px;
  }

  .intro__title-large {
    font-size: clamp(44px, 5.7vw, 78px);
  }

  .intro__lede {
    margin-top: 22px;
    line-height: 1.9;
  }

  .intro__actions {
    margin-top: 26px;
  }

  .intro__meta {
    display: none;
  }

  .reader__inner {
    padding-top: 96px;
    padding-bottom: 108px;
  }

  .reader__visual {
    top: 92px;
    width: min(380px, 36vw, calc((100dvh - 200px) * 0.8));
  }

  .reader__title {
    font-size: clamp(34px, 3.7vw, 52px);
  }

  .reader__quote {
    margin-top: 20px;
    font-size: 17px;
  }

  .reader__rule {
    margin: 24px 0;
  }
}

/* =========================================================
   Warp · 点击星球时的「对焦 → 光圈 → 显影」转场
   从被点中的星球屏幕坐标张开，纯展示层，不拦截交互
   ========================================================= */

.warp {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  pointer-events: none;
}

.warp__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 40vmax at var(--warp-x) var(--warp-y),
    transparent 0%,
    rgba(8, 7, 11, 0.18) 34%,
    rgba(8, 7, 11, 0.66) 72%,
    rgba(8, 7, 11, 0.92) 100%
  );
  animation: warp-veil 1.15s var(--ease) forwards;
}

/* 从星球位置向外张开的光圈 */
.warp__rings {
  position: absolute;
  left: var(--warp-x);
  top: var(--warp-y);
  width: 0;
  height: 0;
}

.warp__ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border: 1px solid var(--warp-color);
  border-radius: 50%;
  opacity: 0;
  animation: warp-ring 1.05s var(--ease-out) forwards;
}

.warp__ring--1 {
  animation-delay: 0s;
}
.warp__ring--2 {
  animation-delay: 0.1s;
}
.warp__ring--3 {
  animation-delay: 0.2s;
}
.warp__ring--4 {
  animation-delay: 0.3s;
}

/* 星球中心那一下过曝的核 */
.warp__core {
  position: absolute;
  left: var(--warp-x);
  top: var(--warp-y);
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--warp-color);
  box-shadow: 0 0 24px 6px var(--warp-color);
  opacity: 0;
  animation: warp-core 0.9s var(--ease-out) forwards;
}

/* 锁定坐标的十字准星与四角 */
.warp__reticle {
  position: absolute;
  left: var(--warp-x);
  top: var(--warp-y);
  width: 0;
  height: 0;
  color: var(--warp-color);
  animation: warp-reticle 0.85s var(--ease) forwards;
}

.warp__reticle-ring,
.warp__reticle-h,
.warp__reticle-v,
.warp__reticle-corner {
  position: absolute;
  display: block;
}

.warp__reticle-ring {
  left: -34px;
  top: -34px;
  width: 68px;
  height: 68px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.8;
}

.warp__reticle-h,
.warp__reticle-v {
  background: currentColor;
  opacity: 0.55;
}

.warp__reticle-h {
  left: -52px;
  top: 0;
  width: 104px;
  height: 1px;
}

.warp__reticle-v {
  left: 0;
  top: -52px;
  width: 1px;
  height: 104px;
}

.warp__reticle-corner {
  width: 14px;
  height: 14px;
  border-color: currentColor;
  border-style: solid;
  border-width: 0;
  opacity: 0.9;
}

.warp__reticle-corner--tl {
  left: -44px;
  top: -44px;
  border-top-width: 1px;
  border-left-width: 1px;
}
.warp__reticle-corner--tr {
  left: 30px;
  top: -44px;
  border-top-width: 1px;
  border-right-width: 1px;
}
.warp__reticle-corner--bl {
  left: -44px;
  top: 30px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
.warp__reticle-corner--br {
  left: 30px;
  top: 30px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* 「定位中」的档案字幕 */
.warp__caption {
  position: absolute;
  left: var(--warp-x);
  top: calc(var(--warp-y) + 92px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-align: center;
  animation: warp-caption 1.15s var(--ease) forwards;
}

.warp__caption-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--warp-color);
}

.warp__caption-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.14em;
  color: var(--ivory);
  text-shadow: 0 0 24px rgba(8, 7, 11, 0.9);
}

.warp__caption-line {
  width: 42px;
  height: 1px;
  margin-top: 4px;
  background: var(--warp-color);
  opacity: 0.7;
  transform-origin: center;
  animation: warp-caption-line 0.5s var(--ease-out) 0.24s both;
}

@keyframes warp-veil {
  0% {
    opacity: 0;
  }
  28% {
    opacity: 0.72;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes warp-ring {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  100% {
    width: 150vmax;
    height: 150vmax;
    margin-left: -75vmax;
    margin-top: -75vmax;
    opacity: 0;
  }
}

@keyframes warp-core {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  22% {
    opacity: 1;
    transform: scale(2.4);
  }
  100% {
    opacity: 0;
    transform: scale(5.5);
  }
}

@keyframes warp-reticle {
  0% {
    opacity: 0;
    transform: scale(1.35);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  58% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes warp-caption {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  30% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
}

@keyframes warp-caption-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reader__copy {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .plate__image-wrap img {
    clip-path: none;
    transform: none;
  }

  .grain {
    animation: none;
  }
}

/* =========================================================
   Reader · rolling film reel
   ========================================================= */

.app {
  background:
    radial-gradient(ellipse 82% 62% at 62% 44%, rgba(72, 55, 90, 0.42), transparent 70%),
    radial-gradient(ellipse 55% 44% at 16% 84%, rgba(148, 84, 82, 0.18), transparent 72%),
    radial-gradient(ellipse 42% 36% at 86% 12%, rgba(92, 112, 150, 0.16), transparent 70%),
    var(--ink);
}

.reader {
  background:
    radial-gradient(ellipse 62% 58% at 16% 8%, rgba(200, 140, 134, 0.21), transparent 62%),
    radial-gradient(ellipse 54% 54% at 88% 82%, rgba(130, 152, 192, 0.23), transparent 64%),
    radial-gradient(ellipse 78% 66% at 52% 48%, rgba(92, 70, 112, 0.44), transparent 74%),
    linear-gradient(158deg, rgba(38, 30, 50, 0.88), rgba(17, 13, 24, 0.92));
  backdrop-filter: blur(20px) saturate(1.18);
}

.reader__ambient {
  opacity: 0.34;
  filter: blur(118px) saturate(1.4) brightness(1.24);
}

.reader__nebula {
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 28%, rgba(200, 140, 134, 0.12), transparent 26%),
    radial-gradient(circle at 76% 66%, rgba(130, 152, 192, 0.13), transparent 30%),
    conic-gradient(from 210deg at 54% 44%, transparent 0deg, rgba(217, 180, 124, 0.05) 70deg, transparent 150deg, rgba(143, 174, 159, 0.045) 240deg, transparent 330deg);
  filter: blur(34px);
  opacity: 0.9;
  animation: reader-nebula 34s ease-in-out infinite alternate;
}

.reader__dust {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.reader__scrim {
  background: radial-gradient(ellipse 70% 70% at 50% 46%, transparent 44%, rgba(8, 7, 12, 0.3) 100%);
}

.reader__header {
  background: linear-gradient(180deg, rgba(14, 12, 20, 0.74), rgba(14, 12, 20, 0.2) 62%, transparent);
}

.reader__nav {
  background: linear-gradient(0deg, rgba(12, 10, 18, 0.92) 30%, rgba(12, 10, 18, 0.44) 72%, transparent);
}

.reader__inner {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.82fr);
  align-items: start;
  gap: clamp(34px, 5.2vw, 82px);
  padding: 104px clamp(24px, 5.4vw, 82px) 128px;
}

/* --- 樱花：骤雨奔腾这一章的飘落花瓣 ---------------------- */

.sakura {
  position: absolute;
  inset: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --- click particles ------------------------------------- */

.click-burst {
  position: fixed;
  inset: 0;
  z-index: 95;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* --- editor roll ----------------------------------------- */

.editor__roll {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 232, 218, 0.075);
}

.editor__roll-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.editor__roll-head p {
  max-width: 360px;
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: rgba(243, 232, 218, 0.38);
}

.editor__roll-count {
  flex: none;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--copper);
}

.editor__roll-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 14px;
}

.editor__roll-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 13px;
  padding: 10px;
  border: 1px solid rgba(243, 232, 218, 0.09);
  background: rgba(14, 11, 21, 0.5);
}

.editor__roll-item.is-cover {
  border-color: rgba(217, 180, 124, 0.24);
  background: rgba(217, 180, 124, 0.035);
}

.editor__roll-thumb {
  position: relative;
  width: 88px;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  background: #0a080f;
  border: 1px solid rgba(243, 232, 218, 0.1);
}

.editor__roll-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.88);
  transition:
    filter 0.3s,
    transform 0.45s var(--ease);
}

.editor__roll-thumb:hover img {
  filter: saturate(1) brightness(1);
  transform: scale(1.03);
}

.editor__roll-thumb-no {
  position: absolute;
  left: 5px;
  bottom: 4px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
  color: rgba(243, 232, 218, 0.65);
  text-shadow: 0 1px 5px #000;
}

.editor__roll-thumb-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 6, 12, 0.58);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ivory);
  opacity: 0;
  transition: opacity 0.3s;
}

.editor__roll-thumb:hover .editor__roll-thumb-hover {
  opacity: 1;
}

.editor__roll-fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.editor__roll-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.14em;
  color: rgba(243, 232, 218, 0.3);
}

.editor__roll-actions {
  display: flex;
  gap: 12px;
}

.editor__roll-actions .text-button {
  font-size: 9px;
}

.editor__roll-actions .text-button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.field.is-compact {
  gap: 3px;
}

.field.is-compact > span {
  font-size: 7px;
  letter-spacing: 0.12em;
  color: rgba(243, 232, 218, 0.32);
}

.field.is-compact input {
  height: 31px;
  font-size: 11px;
}

.editor__roll-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.editor__roll-foot > span {
  max-width: 58%;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(243, 232, 218, 0.3);
}

@keyframes reader-nebula {
  from {
    transform: rotate(-2deg) scale(1.02);
  }
  to {
    transform: rotate(2deg) scale(1.08);
  }
}

/* --- responsive reader ----------------------------------- */

@media (max-width: 1180px) {
  .reader__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
    gap: 40px;
    padding-right: 44px;
    padding-left: 44px;
  }
}

@media (max-width: 980px) {
  .reader__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 92px 32px 126px;
  }

  .reader__copy {
    width: min(680px, 100%);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .reader__inner {
    gap: 26px;
    padding: 78px 18px 120px;
  }

  .editor__roll-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
  }

  .editor__roll-thumb {
    width: 74px;
  }

  .editor__roll-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .editor__roll-foot > span {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .reader__inner {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .reader__inner {
    padding-top: 88px;
    padding-bottom: 108px;
  }
}

@media (max-width: 760px) {
  .reader__inner {
    padding-bottom: 148px;
  }

  .reader__nav {
    background: linear-gradient(0deg, rgba(12, 10, 18, 0.98) 38%, rgba(12, 10, 18, 0.86) 74%, rgba(12, 10, 18, 0.42) 100%);
    backdrop-filter: blur(12px);
  }
}

/* Netlify 免费计划会在页面尾部注入「Powered by Netlify」徽标 iframe（200×64，fixed 右下角），
   还会盖住影像页/胶片页右下角的按钮。这里把它隐掉；迁到无徽标托管后这段可以删。 */
#nl-badge-frame {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* =========================================================
   Rolling reel · a strip of film that keeps threading through
   ========================================================= */

.reel {
  --frame-w: 190px;
  --gap: 25px;
  position: sticky;
  top: 96px;
  width: min(760px, 100%);
  margin: 0;
  justify-self: end;
  perspective: 1500px;
  user-select: none;
  -webkit-user-select: none;
}

.reel.is-dragging .reel__viewport {
  cursor: grabbing;
}

.reel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: rgba(243, 232, 218, 0.36);
}

.reel__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reel__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.reel__viewport {
  position: relative;
  height: calc(var(--frame-w) * 1.62);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.reel__stage {
  position: absolute;
  inset: 0;
  transform: rotateX(7deg);
  transform-style: preserve-3d;
}

.reel__track {
  position: absolute;
  top: 50%;
  left: 0;
  height: calc(var(--frame-w) * 1.28);
  margin-top: calc(var(--frame-w) * -0.64);
  display: flex;
  align-items: center;
  will-change: transform;
}

/* the strip itself, drawn once and carried along by the track */
.reel__band {
  position: absolute;
  top: -9px;
  bottom: -9px;
  left: 0;
  right: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(12, 9, 17, 0.98), rgba(27, 21, 34, 0.94) 12%, rgba(16, 12, 22, 0.96) 50%, rgba(30, 23, 38, 0.94) 88%, rgba(10, 8, 15, 0.98));
  border-top: 1px solid rgba(243, 232, 218, 0.14);
  border-bottom: 1px solid rgba(243, 232, 218, 0.14);
  box-shadow:
    0 34px 60px -30px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.reel__band::before,
.reel__band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-image: radial-gradient(ellipse 4.4px 3.2px at 15px 50%, rgba(243, 232, 218, 0.28) 96%, transparent 100%);
  background-size: 30px 100%;
  background-repeat: repeat-x;
  background-position: 0 50%;
}

.reel__band::before {
  top: 1px;
}

.reel__band::after {
  bottom: 1px;
}

.reel__frame {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--frame-w);
  width: var(--frame-w);
  height: calc(var(--frame-w) * 1.28);
  margin: 0 var(--gap) 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform:
    translateY(calc(var(--k, 0) * 10px))
    scale(calc(1 - var(--k, 0) * 0.07));
  opacity: calc(1 - var(--k, 0) * 0.36);
  will-change: transform, opacity;
}

.reel__mat {
  position: absolute;
  inset: 0;
  padding: 7px;
  background: linear-gradient(160deg, rgba(243, 232, 218, 0.1), rgba(243, 232, 218, 0.015) 42%, rgba(243, 232, 218, 0.06));
  border: 1px solid rgba(243, 232, 218, 0.16);
  box-shadow: 0 26px 44px -26px rgba(0, 0, 0, 0.98);
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

.reel__mat img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 0.4s var(--ease);
}

.reel__frame:hover .reel__mat {
  border-color: color-mix(in srgb, var(--accent) 70%, rgba(243, 232, 218, 0.4));
  box-shadow:
    0 32px 54px -24px rgba(0, 0, 0, 0.98),
    0 0 34px -10px var(--accent);
}

.reel__frame:hover .reel__mat img {
  filter: saturate(1.05) contrast(1.04) brightness(1.04);
}

.reel__frame:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

.reel__no {
  position: absolute;
  left: 15px;
  bottom: 13px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.62);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.reel__focus {
  display: none;
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: 50%;
  z-index: 3;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(243, 232, 218, 0.24) 22%, rgba(243, 232, 218, 0.24) 78%, transparent);
  opacity: 0.7;
}

.reel__focus::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -3px;
  border: 3.5px solid transparent;
  border-top-color: var(--accent);
}

.reel__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 13%;
  pointer-events: none;
}

.reel__fade--left {
  left: 0;
  background: linear-gradient(90deg, rgba(25, 19, 33, 0.92), rgba(25, 19, 33, 0));
}

.reel__fade--right {
  right: 0;
  background: linear-gradient(270deg, rgba(25, 19, 33, 0.92), rgba(25, 19, 33, 0));
}

.reel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.34);
}

.reel__hint {
  color: rgba(243, 232, 218, 0.42);
}

.reel__date {
  color: rgba(243, 232, 218, 0.3);
}

/* ---------- the photograph, held at the centre of the screen ---------- */

.reel-view {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 84px 5vw 96px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, rgba(86, 64, 104, 0.32), transparent 72%),
    rgba(9, 7, 13, 0.72);
  backdrop-filter: blur(22px) saturate(1.2);
}

.reel-view__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.reel-view__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 4.2vw, 56px);
}

.reel-view__meta {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: rgba(243, 232, 218, 0.48);
}

.reel-view__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(243, 232, 218, 0.18);
  border-radius: 999px;
  background: rgba(12, 10, 17, 0.36);
  color: rgba(243, 232, 218, 0.75);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.reel-view__close:hover {
  border-color: var(--accent);
  color: var(--ivory);
}

.reel-view__plate {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: min(66vw, 680px);
  margin: 0;
}

.reel-view__glow {
  position: absolute;
  inset: 8% -8% 18%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, var(--accent), transparent 68%);
  opacity: 0.18;
  filter: blur(60px);
}

.reel-view__mat {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 9px;
  background: linear-gradient(160deg, rgba(243, 232, 218, 0.14), rgba(243, 232, 218, 0.02) 46%, rgba(243, 232, 218, 0.08));
  border: 1px solid rgba(243, 232, 218, 0.28);
  box-shadow:
    0 60px 120px -44px rgba(0, 0, 0, 0.98),
    0 0 90px -34px var(--accent);
}

.reel-view__mat img {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.reel-view__sheen {
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 34%, transparent 68%, rgba(255, 255, 255, 0.05));
  mix-blend-mode: soft-light;
}

.reel-view__corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(243, 232, 218, 0.6);
}

.reel-view__corner--tl {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}

.reel-view__corner--tr {
  top: 14px;
  right: 14px;
  border-left: 0;
  border-bottom: 0;
}

.reel-view__corner--bl {
  bottom: 14px;
  left: 14px;
  border-right: 0;
  border-top: 0;
}

.reel-view__corner--br {
  right: 14px;
  bottom: 14px;
  border-left: 0;
  border-top: 0;
}

.reel-view__caption {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: min(560px, 100%);
  animation: reel-caption-in 0.9s 0.14s var(--ease-out) both;
}

.reel-view__counter {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
}

.reel-view__caption p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.85;
  color: rgba(243, 232, 218, 0.86);
}

.reel-view__nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateX(-50%);
}

.reel-view__nav > button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(243, 232, 218, 0.18);
  border-radius: 50%;
  background: rgba(12, 10, 17, 0.4);
  color: rgba(243, 232, 218, 0.72);
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.reel-view__nav > button:hover {
  border-color: var(--accent);
  color: var(--ivory);
  transform: scale(1.06);
}

.reel-view__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.reel-view__dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(243, 232, 218, 0.28);
  transition:
    width 0.3s var(--ease),
    background 0.3s var(--ease);
}

.reel-view__dots i.is-current {
  width: 18px;
  border-radius: 2px;
  background: var(--accent);
}

@keyframes reel-view-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes reel-photo-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(14px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes reel-caption-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .reel {
    width: min(660px, 100%);
  }
}

@media (max-width: 980px) {
  .reel {
    position: relative;
    top: 0;
    width: min(720px, 100%);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .reel {
    width: 100%;
  }

  .reel__meta {
    font-size: 6px;
    letter-spacing: 0.12em;
  }

  .reel__meta span:last-child,
  .reel__date {
    display: none;
  }

  .reel__viewport {
    height: calc(var(--frame-w) * 1.62);
  }

  .reel__foot {
    font-size: 6px;
  }

  .reel-view {
    padding: 74px 14px 92px;
  }

  .reel-view__bar {
    padding: 18px 16px;
  }

  .reel-view__meta {
    max-width: 62vw;
    font-size: 6px;
    line-height: 1.7;
  }

  .reel-view__plate {
    max-width: 100%;
  }

  .reel-view__mat img {
    max-width: 86vw;
    max-height: 56vh;
  }

  .reel-view__caption {
    width: 86vw;
    gap: 12px;
  }

  .reel-view__counter {
    font-size: 22px;
  }
}
/* =========================================================
   True 3D ribbon · WebGL film strip
   ========================================================= */

.reel--three {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: none;
}

.reel--three .reel__canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.reel--three .reel__canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
}

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

.reel--three .reel__meta,
.reel--three .reel__foot {
  z-index: 30;
  pointer-events: none;
}

.reel--three .reel__meta {
  top: 58px;
}

.reel--three .reel__aura {
  z-index: 2;
}

.reel--three .reel__fade {
  z-index: 9;
}

.reader__dust {
  z-index: 2 !important;
}

@media (max-width: 980px) {
  .reel--three .reel__meta {
    top: 52px;
  }
}


.reel__ribbon {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.55));
}

.reel__band-edge {
  opacity: 0.5;
}

.reel__perf {
  stroke: rgba(243, 232, 218, 0.46);
  stroke-linecap: butt;
  animation: reel-perf 8s linear infinite;
}

.reel__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 44%, transparent 30%, rgba(7, 5, 12, 0.3) 100%),
    linear-gradient(90deg, rgba(7, 5, 12, 0.42), transparent 12%, transparent 88%, rgba(7, 5, 12, 0.42));
}

@keyframes reel-perf {
  to {
    stroke-dashoffset: -260;
  }
}

/* the empty cells that wait for the user's own photographs */
.reel__empty {
  position: absolute;
  inset: 5px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  border: 1px dashed rgba(243, 232, 218, 0.11);
  background:
    radial-gradient(circle at 50% 45%, rgba(217, 180, 124, 0.05), transparent 62%),
    linear-gradient(160deg, rgba(24, 19, 31, 0.4), rgba(8, 6, 13, 0.56));
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.3);
}

.reel__empty i {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(10px, 1.2vw, 16px);
  color: rgba(217, 180, 124, 0.3);
  text-shadow: 0 0 14px rgba(217, 180, 124, 0.18);
}

.reel__empty em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 6px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.22);
}

.reel__frame.is-empty {
  cursor: default;
}

.reel__frame.is-empty .reel__mat {
  background: rgba(11, 8, 16, 0.74);
  border-color: rgba(243, 232, 218, 0.1);
  box-shadow:
    3px 4px 0 rgba(3, 2, 7, 0.55),
    0 22px 34px -30px rgba(0, 0, 0, 0.9);
}

@media (min-width: 981px) {
  .reader {
    overflow: hidden;
    background:
      radial-gradient(ellipse 80% 70% at 18% 8%, rgba(114, 82, 128, 0.2), transparent 62%),
      radial-gradient(ellipse 70% 60% at 88% 82%, rgba(171, 104, 92, 0.15), transparent 66%),
      linear-gradient(145deg, #0b0811 0%, #171021 44%, #24172a 100%);
  }

  .reader__inner {
    display: block;
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .reader__ambient {
    display: none;
  }

  .reader__header {
    z-index: 40;
  }

  .reader__nav {
    z-index: 40;
  }

  .reel {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    justify-self: stretch;
    perspective: none;
  }

  .reel__meta {
    position: absolute;
    top: 58px;
    left: clamp(28px, 5vw, 78px);
    right: clamp(28px, 5vw, 78px);
    z-index: 30;
    margin: 0;
  }

  .reel__viewport {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .reel__foot {
    position: absolute;
    left: clamp(28px, 5vw, 78px);
    right: clamp(28px, 5vw, 78px);
    bottom: 104px;
    z-index: 30;
    margin: 0;
  }

  .reel__stage {
    transform: none;
    perspective: none;
  }

  .reel__frame {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--frame-w);
    height: calc(var(--frame-w) * 1.25);
    margin: 0;
    will-change: transform, opacity;
  }

  .reel__mat {
    padding: 5px;
    background: linear-gradient(160deg, #17121f, #0b0810);
    border-color: rgba(243, 232, 218, 0.22);
    box-shadow:
      0 26px 38px -26px rgba(0, 0, 0, 0.92),
      inset 0 0 0 1px rgba(243, 232, 218, 0.04);
  }

  .reel__fade {
    width: 7%;
    opacity: 0.55;
  }

  .reel__veil,
  .reader__copy {
    display: none;
  }
}

@media (max-width: 980px) {
  .reader__inner {
    display: block;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 0;
  }

  .reader__ambient {
    display: none;
  }

  .reel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    justify-self: stretch;
  }

  .reel__viewport {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .reel__meta {
    position: absolute;
    top: 52px;
    left: 20px;
    right: 20px;
    z-index: 30;
    margin: 0;
  }

  .reel__foot {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 92px;
    z-index: 30;
    margin: 0;
  }

  .reel__stage {
    transform: none;
  }

  .reel__frame {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--frame-w);
    height: calc(var(--frame-w) * 1.25);
    margin: 0;
  }

  .reel__mat {
    padding: 3px;
  }

  .reel__fade {
    width: 5%;
  }

  .reel__veil,
  .reader__copy {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel__perf {
    animation: none;
  }
}

/* ── editor · 38 contact-sheet slots ───────────────────────── */
.editor__slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(243, 232, 218, 0.09);
  background: rgba(8, 6, 12, 0.42);
  max-height: 322px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 180, 124, 0.35) transparent;
}

.editor__slot {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid rgba(243, 232, 218, 0.12);
  background: #0b0810;
  cursor: pointer;
  overflow: hidden;
}

.editor__slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) brightness(0.82);
  transition: filter 0.25s var(--ease);
}

.editor__slot:hover img,
.editor__slot.is-active img {
  filter: saturate(1) brightness(1);
}

.editor__slot.is-active {
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper), 0 0 18px -6px rgba(217, 180, 124, 0.5);
}

.editor__slot.is-empty {
  border-style: dashed;
  color: rgba(243, 232, 218, 0.22);
}

.editor__slot-plus {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: var(--serif);
  font-size: 20px;
  color: rgba(217, 180, 124, 0.42);
}

.editor__slot-no {
  position: absolute;
  left: 5px;
  bottom: 4px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: rgba(243, 232, 218, 0.48);
  text-shadow: 0 1px 6px #000;
}

.editor__slot-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(217, 180, 124, 0.16);
  background: rgba(243, 232, 218, 0.025);
}

.reel-view__story {
  width: min(620px, calc(100vw - 48px));
  margin: 0 auto;
  text-align: center;
}

.reel-view__story-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(243, 232, 218, 0.16);
  border-radius: 999px;
  background: rgba(10, 8, 16, 0.35);
  color: rgba(243, 232, 218, 0.62);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.reel-view__story-toggle:hover {
  color: var(--ivory);
  border-color: var(--copper);
}

.reel-view__story-body {
  max-height: 34vh;
  margin-top: 12px;
  padding: 16px 20px;
  overflow-y: auto;
  text-align: left;
  background: rgba(8, 6, 13, 0.72);
  border: 1px solid rgba(243, 232, 218, 0.1);
  backdrop-filter: blur(16px);
}

.reel-view__story-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(243, 232, 218, 0.42);
}

.reel-view__story-body h2 {
  margin: 8px 0 2px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
}

.reel-view__story-sub {
  margin: 0 0 12px;
  color: rgba(243, 232, 218, 0.52);
  font-size: 12px;
}

.reel-view__story-body blockquote {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 1px solid var(--accent);
  color: rgba(243, 232, 218, 0.78);
  font-family: var(--serif);
  font-size: 14px;
}

.reel-view__story-body p {
  margin: 0 0 10px;
  color: rgba(243, 232, 218, 0.66);
  font-size: 13px;
  line-height: 1.85;
}

.reel-view__story-body footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(243, 232, 218, 0.1);
  color: rgba(243, 232, 218, 0.42);
  font-size: 11px;
}

@media (max-width: 760px) {
  .editor__slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 286px;
  }

  .reel-view__story-body {
    max-height: 30vh;
  }
}

.reel-view__story {
  position: relative;
  z-index: 4;
}

.reel-view__nav {
  z-index: 5;
}

/* story drawer inside the lightbox */
.reel-view__plate {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), filter 0.4s var(--ease);
}

.reel-view.is-story .reel-view__plate {
  opacity: 0.72;
  transform: translateY(-7vh) scale(0.96);
  filter: brightness(0.86) blur(0.5px);
}

.reel-view.is-story .reel-view__nav {
  opacity: 0;
  pointer-events: none;
}

.reel-view__story.is-open {
  position: fixed;
  left: 50%;
  bottom: 72px;
  z-index: 8;
  width: min(720px, 92vw);
  max-height: 64vh;
  padding: 14px;
  overflow-y: auto;
  transform: translateX(-50%);
  border: 1px solid rgba(243, 232, 218, 0.14);
  background: rgba(10, 8, 15, 0.94);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(22px) saturate(1.2);
}

.reel-view__story.is-open .reel-view__story-body {
  max-height: 44vh;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 760px) {
  .reel-view__story.is-open {
    bottom: 68px;
    width: 92vw;
    max-height: 62vh;
  }

  .reel-view__story.is-open .reel-view__story-body {
    max-height: 42vh;
  }
}

/* a warmer, deeper sky behind the strip */
.reader__nebula {
  opacity: 1;
  background:
    radial-gradient(ellipse 42% 38% at 22% 20%, rgba(200, 140, 134, 0.24), transparent 70%),
    radial-gradient(ellipse 40% 45% at 82% 28%, rgba(130, 152, 192, 0.22), transparent 72%),
    radial-gradient(ellipse 55% 40% at 52% 88%, rgba(217, 180, 124, 0.14), transparent 74%),
    radial-gradient(ellipse 60% 60% at 50% 45%, rgba(143, 174, 159, 0.07), transparent 78%);
  filter: blur(28px) saturate(1.15);
  animation: reel-nebula 32s ease-in-out infinite alternate;
}

@keyframes reel-nebula {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader__nebula {
    animation: none;
  }
}

/* ---------- quiet night sky · no violet wash ---------- */

.reader {
  background:
    radial-gradient(ellipse 62% 52% at 50% 38%, rgba(20, 30, 43, 0.5), transparent 72%),
    linear-gradient(158deg, #04050a 0%, #07080d 46%, #030407 100%);
}

.reader__ambient {
  opacity: 0.1;
  filter: blur(100px) saturate(0.35);
}

.reader__nebula {
  opacity: 0.5;
  background:
    radial-gradient(ellipse 44% 38% at 26% 18%, rgba(94, 124, 150, 0.12), transparent 72%),
    radial-gradient(ellipse 38% 42% at 80% 24%, rgba(180, 150, 116, 0.06), transparent 74%),
    radial-gradient(ellipse 55% 42% at 50% 88%, rgba(46, 70, 92, 0.1), transparent 76%);
  filter: blur(40px) saturate(0.7);
}

/* the stage is the film — chrome is reduced to two arrows and one close control */
.reader__close span,
.reader__nav-button > span,
.reader__nav-ticks,
.reader__counter {
  display: none;
}

.reader__header {
  justify-content: flex-end;
}

.reader__close {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
}

.reader__nav {
  bottom: 26px;
}

.reader__nav-button {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  opacity: 0.55;
}

.reader__nav-button:hover {
  opacity: 1;
}

@media (max-width: 760px) {
  .reader__nav {
    bottom: 18px;
  }

  .reader__close {
    width: 38px;
    height: 38px;
  }
}

/* ---------- 3D projection · the strip has thickness, the sky has depth ---------- */

.reel {
  perspective: 1600px;
  perspective-origin: 50% 44%;
}

.reel__viewport {
  perspective: 1500px;
  perspective-origin: 50% 44%;
  transform-style: preserve-3d;
}

.reel__stage {
  transform-style: preserve-3d;
  transform:
    translate3d(var(--stage-sx, 0px), var(--stage-sy, 0px), 0)
    rotateX(var(--stage-rx, 5.5deg))
    rotateY(var(--stage-ry, -2.5deg));
  transition: transform 0.32s var(--ease-out);
  will-change: transform;
}

.reel__ribbon {
  transform: translateZ(-16px);
  filter:
    drop-shadow(0 38px 48px rgba(0, 0, 0, 0.6))
    drop-shadow(0 2px 0 rgba(243, 232, 218, 0.1));
}

.reel__band-glow {
  stroke: rgba(217, 180, 124, 0.1);
  filter: blur(14px);
}

.reel__band-depth {
  stroke: rgba(3, 2, 7, 0.96);
  opacity: 0.9;
}

.reel__band-fill {
  filter: drop-shadow(0 1px 0 rgba(243, 232, 218, 0.08));
}

.reel__rim {
  stroke: var(--accent);
  opacity: 0.5;
  filter: drop-shadow(0 0 5px var(--accent));
}

.reel__perf {
  filter: drop-shadow(0 0 4px rgba(243, 232, 218, 0.25));
}

.reel__aura {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 0;
  width: min(68vw, 960px);
  height: min(52vw, 620px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 44% at 38% 44%, rgba(200, 140, 134, 0.16), transparent 72%),
    radial-gradient(ellipse 46% 42% at 68% 58%, rgba(130, 152, 192, 0.14), transparent 74%),
    radial-gradient(ellipse 38% 36% at 52% 34%, rgba(217, 180, 124, 0.1), transparent 76%);
  filter: blur(26px);
  mix-blend-mode: screen;
  animation: reel-aura 16s ease-in-out infinite alternate;
}

.reel__light {
  position: absolute;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: radial-gradient(
    circle 360px at var(--light-x, 50%) var(--light-y, 42%),
    rgba(255, 240, 220, 0.13),
    rgba(217, 180, 124, 0.05) 38%,
    transparent 72%
  );
  mix-blend-mode: screen;
  transition: background 0.12s linear;
}

@keyframes reel-aura {
  from {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.94);
  }
  to {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.reel__frame {
  transform-style: preserve-3d;
}

.reel__mat {
  overflow: hidden;
  box-shadow:
    5px 6px 0 rgba(3, 2, 7, 0.72),
    0 42px 56px -30px rgba(0, 0, 0, 0.98),
    0 8px 20px -12px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(243, 232, 218, 0.05);
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.reel__mat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.16), transparent 28%, transparent 68%, rgba(200, 140, 134, 0.1)),
    linear-gradient(0deg, rgba(5, 4, 9, 0.32), transparent 34%);
  mix-blend-mode: screen;
}

.reel__frame:hover .reel__mat {
  transform: translateZ(26px) scale(1.055);
  box-shadow:
    0 52px 68px -30px rgba(0, 0, 0, 1),
    0 0 46px -8px var(--accent);
}

.reel__frame:focus-visible .reel__mat {
  transform: translateZ(18px) scale(1.035);
}

.reel__frame:not(.is-empty) .reel__mat {
  border-color: rgba(243, 232, 218, 0.32);
  box-shadow:
    5px 6px 0 rgba(3, 2, 7, 0.72),
    0 42px 56px -30px rgba(0, 0, 0, 0.98),
    0 0 32px -14px var(--accent),
    inset 0 0 0 1px rgba(243, 232, 218, 0.06);
}

.reel__frame.is-empty .reel__mat {
  background: rgba(8, 6, 13, 0.36);
  border-color: rgba(243, 232, 218, 0.08);
  box-shadow:
    3px 4px 0 rgba(3, 2, 7, 0.4),
    0 24px 36px -30px rgba(0, 0, 0, 0.82);
}

@media (max-width: 980px) {
  .reel {
    perspective: 1100px;
  }

  .reel__viewport {
    perspective: 1000px;
  }

  .reel__stage {
    transform: rotateX(var(--stage-rx, 2deg)) rotateY(var(--stage-ry, 0deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel__aura {
    animation: none;
  }
}
/* Restored frame-carousel reading room: purple air, one horizontal film strip,
   the chapter text back on the right. */
.reader.reader--classic {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  /* 光从左上斜切进来,颜色取当前章节的 accent;不再拿照片虚化当底(会糊成一团色块) */
  background:
    radial-gradient(115% 76% at 4% -14%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 58%),
    radial-gradient(72% 58% at 104% 110%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 62%),
    linear-gradient(158deg, #1d1627 0%, #141019 48%, #0a0810 100%);
  color: var(--ivory);
}

.reader--classic .reader__ambient {
  display: none;
}

.reader--classic .reader__nebula {
  z-index: 0;
  opacity: 0.36;
}

.reader--classic .reader__dust {
  z-index: 1;
  opacity: 0.55;
}

.reader--classic .reader__header {
  display: none;
}

.reader--classic .reader__scrim {
  background: transparent;
  z-index: 0;
}

/* ── 「爱的信号」的整页底图（压暗、去饱和，只当氛围底）─────────── */
.reader--classic .classic__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.84;
  transform: scale(1.06);
  filter: saturate(0.95) brightness(0.95) contrast(1.02) blur(0.5px);
  pointer-events: none;
}

/* 再压一层：右侧正文列、上下两端更暗，保证文字读得清 */
.reader--classic .classic__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(126% 96% at 14% 8%, rgba(8, 6, 11, 0) 0%, rgba(8, 6, 11, 0.26) 66%, rgba(8, 6, 11, 0.5) 100%),
    linear-gradient(90deg, rgba(8, 6, 11, 0.02) 0%, rgba(8, 6, 11, 0.3) 56%, rgba(8, 6, 11, 0.62) 100%),
    linear-gradient(164deg, rgba(29, 22, 39, 0.22) 0%, rgba(12, 9, 18, 0.42) 100%);
}

.reader--classic.reader--backdrop {
  background-color: #0a0810;
}

.reader--backdrop .reader__nebula {
  opacity: 0.22;
}

/* ── 流光粒子 ───────────────────────────────────────── */
.classic__flow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.95;
}

.classic__flow canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* 第二层：浮在照片和正文之上的一层薄光，别压住文字，所以越往右越淡 */
.classic__flow--front {
  z-index: 12;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(100deg, #000 0 52%, rgba(0, 0, 0, 0.55) 68%, rgba(0, 0, 0, 0.22) 100%);
  mask-image: linear-gradient(100deg, #000 0 52%, rgba(0, 0, 0, 0.55) 68%, rgba(0, 0, 0, 0.22) 100%);
}

.classic__bar {
  position: relative;
  z-index: 20;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  padding: 30px 38px 0;
  pointer-events: none;
}

.classic__bar > * {
  pointer-events: auto;
}

.classic__memory {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(243, 232, 218, 0.55);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.classic__memory b {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--copper);
}

.classic__memory em {
  font-style: normal;
  color: rgba(243, 232, 218, 0.34);
}

.classic__bar-line {
  width: 62px;
  height: 1px;
  background: rgba(243, 232, 218, 0.25);
}

.classic__bar-note {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(243, 232, 218, 0.55);
}

.classic__bar .reader__close {
  margin-left: auto;
}

.classic__grid {
  position: relative;
  z-index: 10;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1.45fr) minmax(410px, 0.9fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  min-height: 0;
  overflow: hidden;
  padding: 8px 54px 4px 74px;
}

/* ── left: one horizontal strip with three exposed frames ───────────── */
.classic__film {
  --plate: min(88%, clamp(120px, calc((100dvh - 260px) * 0.8), 520px));
  position: relative;
  min-width: 0;
  min-height: 0;
  align-self: start;
  padding-top: 36px;
}

.classic__film-head,
.classic__film-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(243, 232, 218, 0.48);
  text-transform: uppercase;
}

.classic__film-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.classic__film-head i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.classic__band {
  position: relative;
  height: clamp(300px, 38vw, 390px);
  margin: 16px 0 15px;
  background:
    linear-gradient(180deg, #151117, #09070b 22%, #08060a 78%, #141017),
    #09070b;
  border-top: 1px solid rgba(243, 232, 218, 0.09);
  border-bottom: 1px solid rgba(243, 232, 218, 0.09);
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 244, 228, 0.07) inset;
  perspective: 1100px;
  overflow: hidden;
  touch-action: pan-y;
}

.classic__band::before,
.classic__band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  z-index: 5;
  opacity: 0.45;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(235, 220, 200, 0.9) 2.2px, transparent 2.6px);
  background-size: 27px 14px;
  background-repeat: repeat-x;
}

.classic__band::before {
  top: 9px;
}
.classic__band::after {
  bottom: 9px;
}

.classic__perf {
  display: none;
}

.classic__frames {
  position: absolute;
  inset: 0;
}

.classic__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(168px, 14.4vw, 218px);
  height: clamp(220px, 19.2vw, 282px);
  padding: 0;
  border: 0;
  background: #050407;
  cursor: pointer;
  overflow: hidden;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--offset) * 52%))
    rotate(calc(var(--offset) * 1.6deg))
    scale(calc(1 - abs(var(--offset)) * 0.07));
  opacity: calc(1 - abs(var(--offset)) * 0.55);
  filter: brightness(calc(1 - abs(var(--offset)) * 0.28)) saturate(calc(1 - abs(var(--offset)) * 0.2));
  z-index: calc(4 - abs(var(--offset)));
  transition: transform 0.55s var(--ease-out), opacity 0.55s ease, filter 0.55s ease;
  box-shadow:
    0 0 0 1px rgba(243, 232, 218, 0.28),
    0 18px 34px rgba(0, 0, 0, 0.55);
}

.classic__frame.is-active {
  z-index: 6;
  box-shadow:
    0 0 0 1px rgba(243, 232, 218, 0.55),
    0 0 0 7px rgba(10, 8, 13, 0.72),
    0 26px 52px rgba(0, 0, 0, 0.62),
    0 0 40px color-mix(in srgb, var(--accent) 22%, transparent);
}

.classic__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: saturate(0.92) contrast(1.02);
}

.classic__frame-index {
  position: absolute;
  left: 9px;
  bottom: 7px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.72);
  text-shadow: 0 1px 7px #000;
}

.classic__film-foot {
  margin-top: 4px;
}

.classic__hint {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(243, 232, 218, 0.44);
}

/* ── right: the chapter, back where it was ──────────────────────────── */
.classic__copy {
  max-height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px 18px 26px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 180, 124, 0.3) transparent;
}

.classic__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.17em;
  color: rgba(243, 232, 218, 0.5);
  text-transform: uppercase;
}

.classic__meta i {
  width: 18px;
  height: 1px;
  background: rgba(243, 232, 218, 0.28);
}

.classic__copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 4.7vw, 68px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #f1e8dc;
}

.classic__subtitle {
  margin: 9px 0 25px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(243, 232, 218, 0.55);
}

.classic__copy blockquote {
  position: relative;
  margin: 0 0 22px;
  padding-left: 24px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.22vw, 21px);
  line-height: 1.85;
  color: rgba(243, 232, 218, 0.92);
}

.classic__copy blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--accent);
}

.classic__copy blockquote::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.classic__rule {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 232, 218, 0.25), transparent);
  margin-bottom: 22px;
}

.classic__paragraphs p {
  margin: 0 0 15px;
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: rgba(243, 232, 218, 0.7);
}

.classic__closing {
  margin: 4px 0 24px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(243, 232, 218, 0.42);
}

.classic__next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid rgba(217, 180, 124, 0.55);
  background: transparent;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.classic__next svg {
  width: 15px;
  height: 15px;
}

/* ── bottom navigation sits in the flow, so the room stays one screen ── */
.reader--classic .reader__nav {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  z-index: 30;
  padding: 18px 40px 22px;
  background: linear-gradient(180deg, transparent, rgba(12, 9, 17, 0.94) 58%);
}

@media (max-width: 1080px) {
  .classic__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 30px;
    padding-left: 40px;
    padding-right: 36px;
  }

  .classic__frame {
    width: clamp(140px, 15vw, 180px);
    height: clamp(184px, 20vw, 236px);
  }
}

@media (max-width: 860px) {
  /* 手机上恢复自然整页滚动:一屏放不下的内容宁可滚动,也不该被裁掉 */
  .reader.reader--classic {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .classic__bar {
    padding: 22px 22px 0;
  }

  .classic__bar-line,
  .classic__bar-note {
    display: none;
  }

  .classic__grid {
    display: block;
    min-height: 0;
    overflow: visible;
    padding: 18px 20px 130px;
  }

  .classic__film,
  .reader--plate .classic__film {
    --plate: min(430px, 92%);
    padding-top: 14px;
  }

  .classic__band {
    height: 300px;
    margin-bottom: 12px;
  }

  .classic__frame {
    width: 148px;
    height: 198px;
  }

  .classic__copy {
    max-height: none;
    overflow: visible;
    padding: 28px 2px 10px;
  }

  .classic__copy h1 {
    font-size: 38px;
  }

  .classic__copy blockquote {
    font-size: 16px;
  }

  .classic__paragraphs p {
    font-size: 13px;
  }

  .reader--classic .reader__nav {
    position: fixed;
    inset: auto 0 0;
    padding: 12px 18px 18px;
  }

  .reader--classic .reader__nav-button span {
    font-size: 9px;
  }
}

@media (max-height: 720px) and (min-width: 861px) {
  .classic__band {
    height: 280px;
  }

  .classic__frame {
    width: 152px;
    height: 204px;
  }

  .classic__copy {
    max-height: 100%;
  }
}

/* ── the restored carousel, built on the original Filmstrip component ── */
.classic__film .film-stage {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 0;
}

/* 胶片模式:只有「骤雨奔腾」这类章节会用到,单张相框章节不受影响
   横向裁掉两侧伸出去的格子(否则最外几格会跑到右栏正文底下),纵向不裁,
   免得把胶片底下的投影和大号编号切平 */
.reader--plate .classic__film.is-film {
  justify-content: center;
  padding-top: 0;
  overflow-x: clip;
  overflow-y: visible;
}

.reader--plate .classic__film.is-film .classic__film-head,
.reader--plate .classic__film.is-film .classic__film-foot {
  width: min(780px, 100%);
}

.classic__film .film-stage__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 232, 218, 0.5);
}

.classic__film .film-stage__meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.classic__film .film-stage__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.classic__film .film {
  position: relative;
  /* 格子宽度同时受视口宽高约束,胶片高度再由格子尺寸反推 —— 这样矮屏(1366×650)
     和手机都不会出现格子比胶片还高、从黑条上下探出来的情况 */
  --frame-w: clamp(150px, min(15.5vw, calc(58dvh - 205px)), 232px);
  height: calc(var(--frame-w) * 1.69 + 43px);
  margin: 14px 0 8px;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--film-rx, 4deg)) rotateY(var(--film-ry, -4deg));
  transition: transform 0.3s ease-out;
}

.classic__film .film__glow {
  position: absolute;
  inset: 8% 0;
  background: radial-gradient(ellipse 52% 70% at 50% 50%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%);
  filter: blur(34px);
  pointer-events: none;
}

.classic__film .film__band {
  position: absolute;
  inset: 13% -4%;
  overflow: hidden;
  background:
    linear-gradient(180deg, #171218, #09070a 16%, #070509 84%, #151017);
  box-shadow:
    0 30px 55px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 244, 228, 0.09) inset,
    0 -1px 0 rgba(255, 244, 228, 0.06) inset;
}

.classic__film .film__perf {
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  opacity: 0.55;
  background-image: radial-gradient(circle, rgba(240, 226, 208, 0.82) 2px, transparent 2.5px);
  background-size: 26px 15px;
  background-repeat: repeat-x;
  animation: classic-perf 42s linear infinite;
}

.classic__film .film__perf--top {
  top: 8px;
}
.classic__film .film__perf--bottom {
  bottom: 8px;
}

@keyframes classic-perf {
  to {
    background-position-x: -260px;
  }
}

.classic__film .film__edge {
  position: absolute;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.22em;
  color: rgba(243, 232, 218, 0.24);
  pointer-events: none;
}
.classic__film .film__edge--left {
  left: 8px;
}
.classic__film .film__edge--right {
  right: 8px;
}

.classic__film .film__sweep {
  position: absolute;
  inset: 0;
  z-index: 22;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 42%, rgba(255, 244, 228, 0.08) 48%, transparent 54%);
  transform: translateX(-20%);
  animation: classic-sweep 9s ease-in-out infinite;
}

@keyframes classic-sweep {
  50% {
    transform: translateX(22%);
  }
}

.classic__film .film__track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.classic__film .film__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--frame-w, 232px);
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform:
    translate(-50%, calc(-50% + var(--frame-y, 0px)))
    translateX(calc(var(--offset) * 82%))
    rotateY(calc(var(--offset) * -7deg))
    scale(var(--scale, 1));
  opacity: var(--frame-opacity, 1);
  z-index: var(--z, 1);
  transition: transform 0.62s var(--ease-out), opacity 0.45s ease, filter 0.45s ease;
}

.classic__film .film__frame:not(.is-active) {
  filter: saturate(0.68) brightness(0.62);
}
.classic__film .film__frame:not(.is-active):hover {
  filter: saturate(0.85) brightness(0.82);
  opacity: 0.95;
}

.classic__film .film__mat {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  background: #080609;
  box-shadow:
    0 0 0 1px rgba(243, 232, 218, 0.26),
    0 18px 35px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.classic__film .film__frame.is-active .film__mat {
  box-shadow:
    0 0 0 1px rgba(243, 232, 218, 0.56),
    0 0 0 6px rgba(8, 6, 10, 0.68),
    0 26px 56px rgba(0, 0, 0, 0.6),
    0 0 40px color-mix(in srgb, var(--accent) 22%, transparent);
}

.classic__film .film__mat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94);
}

.classic__film .film__mat-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.classic__film .film__frame-no {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: rgba(243, 232, 218, 0.72);
  text-shadow: 0 1px 7px #000;
}

.classic__film .film__frame-corner {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: rgba(243, 232, 218, 0.55);
  border-style: solid;
  pointer-events: none;
}
.classic__film .film__frame-corner--tl {
  left: 7px;
  top: 7px;
  border-width: 1px 0 0 1px;
}
.classic__film .film__frame-corner--tr {
  right: 7px;
  top: 7px;
  border-width: 1px 1px 0 0;
}
.classic__film .film__frame-corner--bl {
  left: 7px;
  bottom: 7px;
  border-width: 0 0 1px 1px;
}
.classic__film .film__frame-corner--br {
  right: 7px;
  bottom: 7px;
  border-width: 0 1px 1px 0;
}

.classic__film .film__index {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(26px, 3.6dvh, 40px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 232, 218, 0.13);
  pointer-events: none;
}

/* 矮屏和手机上,黑条和图注之间没有那么大空位,大号编号会压到图注上 —— 直接不显示 */
@media (max-width: 860px), (max-height: 760px) {
  .classic__film .film__index {
    display: none;
  }
}

.classic__film .film-caption {
  margin-top: 14px;
  border-top: 1px solid rgba(243, 232, 218, 0.14);
  padding-top: 12px;
}

.classic__film .film-caption__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.48);
}

.classic__film .film-caption__text {
  margin: 9px 0 12px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(243, 232, 218, 0.9);
}

.classic__film .film-caption__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.classic__film .film-caption__arrow {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 232, 218, 0.24);
  border-radius: 50%;
  background: transparent;
  color: rgba(243, 232, 218, 0.7);
  cursor: pointer;
}

.classic__film .film-caption__arrow svg {
  width: 13px;
  height: 13px;
}

.classic__film .film-caption__dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.classic__film .film-caption__dots button {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 232, 218, 0.22);
  cursor: pointer;
}

.classic__film .film-caption__dots button.is-active {
  width: 18px;
  border-radius: 4px;
  background: var(--accent);
}

.classic__film .film-caption__dots button.is-empty {
  background: transparent;
  box-shadow: 0 0 0 1px rgba(243, 232, 218, 0.22) inset;
}

.classic__film .film-caption__dots button.is-empty.is-active {
  background: transparent;
  box-shadow: 0 0 0 1px var(--accent) inset;
}

/* 没放照片的格子:一格还没显影的胶片 */
.classic__film .film__frame.is-empty {
  display: block;
  cursor: default;
}

.classic__film .film__frame.is-empty .film__mat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(243, 232, 218, 0.045) 0 1px, transparent 1px 9px),
    linear-gradient(160deg, #131018, #0a080d 62%, #12100f);
  box-shadow:
    0 0 0 1px rgba(243, 232, 218, 0.14),
    0 18px 30px rgba(0, 0, 0, 0.42);
}

.classic__film .film__empty-mark {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: rgba(243, 232, 218, 0.3);
}

.classic__film .film__empty-label {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgba(243, 232, 218, 0.42);
}

.classic__film .film__frame.is-empty.is-active .film__mat {
  box-shadow:
    0 0 0 1px rgba(243, 232, 218, 0.42),
    0 0 0 6px rgba(8, 6, 10, 0.7),
    0 22px 44px rgba(0, 0, 0, 0.5);
}

.classic__film .film-caption__text.is-empty {
  color: rgba(243, 232, 218, 0.56);
  font-size: 13px;
}

@media (max-width: 860px) {
  .classic__film .film {
    --frame-w: 145px;
    height: calc(var(--frame-w) * 1.69 + 43px);
    transform: perspective(900px) rotateX(3deg) rotateY(-2deg);
  }

  /* 手机上只留前后三格,避免十格挤成一团 */
  .classic__film .film__frame[data-depth="3"],
  .classic__film .film__frame[data-depth="4"],
  .classic__film .film__frame[data-depth="5"],
  .classic__film .film__frame[data-depth="6"],
  .classic__film .film__frame[data-depth="7"],
  .classic__film .film__frame[data-depth="8"],
  .classic__film .film__frame[data-depth="9"] {
    display: none;
  }

  .classic__film .film-caption__text {
    font-size: 13px;
  }
}

/* single-plate reading room */
.reader--plate .classic__film {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

.reader--plate .classic__film-head,
.reader--plate .classic__film-foot {
  width: min(560px, 92%);
}

.classic__plate {
  --plate-rx: 0deg;
  --plate-ry: 0deg;
  --shine-x: 50%;
  --shine-y: 42%;
  position: relative;
  width: var(--plate, min(520px, 88%));
  aspect-ratio: 4 / 5;
  margin: 16px auto 20px;
  padding: 11px;
  background: #100c14;
  border: 1px solid rgba(243, 232, 218, 0.2);
  box-shadow:
    0 0 0 8px rgba(9, 7, 12, 0.55),
    0 34px 80px rgba(0, 0, 0, 0.5),
    0 0 60px color-mix(in srgb, var(--accent) 12%, transparent);
  transform: perspective(900px) rotateX(var(--plate-rx)) rotateY(var(--plate-ry));
  transition: transform 0.4s var(--ease-out);
  overflow: hidden;
}

.classic__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.03);
  animation: plate-develop 0.9s var(--ease-out) 0.05s both;
}

/* 换章时照片像在暗房里慢慢显影 */
@keyframes plate-develop {
  from {
    opacity: 0.2;
    transform: scale(1.03);
    filter: saturate(0.2) brightness(0.35) blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: saturate(0.94) brightness(1) contrast(1.03) blur(0);
  }
}

/* 右栏文字分块上浮,总时长控制在 0.9s 内 */
.classic__copy > * {
  animation: copy-rise 0.6s var(--ease) both;
}

.classic__copy > :nth-child(1) {
  animation-delay: 0.06s;
}

.classic__copy > :nth-child(2) {
  animation-delay: 0.1s;
}

.classic__copy > :nth-child(3) {
  animation-delay: 0.15s;
}

.classic__copy > :nth-child(4) {
  animation-delay: 0.2s;
}

.classic__copy > :nth-child(5) {
  animation-delay: 0.25s;
}

.classic__copy > :nth-child(6) {
  animation-delay: 0.3s;
}

.classic__copy > :nth-child(7) {
  animation-delay: 0.36s;
}

.classic__copy > :nth-child(8) {
  animation-delay: 0.42s;
}

.classic__paragraphs p {
  animation: copy-rise 0.6s var(--ease) both;
}

.classic__paragraphs p:nth-child(1) {
  animation-delay: 0.3s;
}

.classic__paragraphs p:nth-child(2) {
  animation-delay: 0.37s;
}

.classic__paragraphs p:nth-child(3) {
  animation-delay: 0.44s;
}

.classic__paragraphs p:nth-child(4) {
  animation-delay: 0.5s;
}

.classic__paragraphs p:nth-child(5) {
  animation-delay: 0.55s;
}

.classic__paragraphs p:nth-child(n + 6) {
  animation-delay: 0.6s;
}

.classic__film-head,
.classic__film-foot {
  animation: copy-rise 0.6s var(--ease) 0.12s both;
}

@keyframes copy-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.classic__plate::before,
.classic__plate::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(243, 232, 218, 0.45);
  pointer-events: none;
  z-index: 2;
}

.classic__plate::before {
  top: 19px;
  left: 19px;
  border-right: 0;
  border-bottom: 0;
}

.classic__plate::after {
  right: 19px;
  bottom: 19px;
  border-left: 0;
  border-top: 0;
}

.classic__plate-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle 220px at var(--shine-x) var(--shine-y),
    rgba(255, 242, 225, 0.16),
    transparent 70%
  );
  mix-blend-mode: screen;
}

.classic__plate-index {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.72);
  text-shadow: 0 1px 8px #000;
}

.classic__plate figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: calc(100% + 14px);
  z-index: 3;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: rgba(243, 232, 218, 0.42);
}

@media (max-width: 860px) {
  .classic__plate {
    width: min(430px, 92%);
    margin-bottom: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .classic__plate img,
  .classic__copy > *,
  .classic__paragraphs p,
  .classic__film-head,
  .classic__film-foot {
    animation: none !important;
  }
}

/* 手机上阅读层是整页滚动：底图与流光用 sticky 钉在视口里，
   负的 margin-bottom 让它们不占布局高度，正文照常从顶部开始 */
@media (max-width: 860px) {
  .reader--classic .classic__backdrop,
  /* 手机上第二层太费性能，只留背后那层 */
  .classic__flow--front {
    display: none;
  }

  .reader--classic .classic__backdrop,
  .classic__flow {
    position: sticky;
    top: 0;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 100dvh;
    margin-bottom: -100dvh;
    transform: none;
  }

  /* 手机上照片离眼睛更近，再压暗一点，正文才不吵 */
  .reader--classic .classic__backdrop {
    opacity: 0.72;
    filter: saturate(0.9) brightness(0.8) contrast(1.02) blur(0.6px);
  }
}
/* ─────────────────────────────────────────────────────────────
   联系表（contact sheet）—— 骤雨奔腾这一章的阅读层
   一条贯穿视口的 35mm 胶片 + 右侧叙事，中间清晰、两侧虚化
   ───────────────────────────────────────────────────────────── */

.reader.reader--sheet {
  --sheet-fw: clamp(220px, min(44vw, 68dvh), 600px);
  --sheet-fh: calc(var(--sheet-fw) / 1.5);
  --mx: 0;
  --my: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  color: var(--ivory);
  /* 暗紫豆沙：深紫打底，左上角留一小片放映机的暖光 */
  background:
    radial-gradient(48% 42% at 8% -8%, rgba(255, 198, 146, 0.13), transparent 66%),
    radial-gradient(118% 104% at 50% 46%, transparent 50%, rgba(9, 6, 12, 0.42) 100%),
    radial-gradient(96% 74% at 84% -14%, rgba(198, 154, 168, 0.22), transparent 60%),
    radial-gradient(78% 64% at 96% 104%, rgba(158, 106, 98, 0.2), transparent 62%),
    radial-gradient(104% 84% at 0% 108%, rgba(120, 96, 138, 0.18), transparent 66%),
    radial-gradient(70% 54% at 46% 46%, rgba(214, 182, 190, 0.07), transparent 74%),
    linear-gradient(158deg, #2b2131 0%, #372932 46%, #47353a 100%);
}

/* 空气雾霭：几团很大的柔光，极慢地呼吸，只做氛围不抢内容 */
.reader--sheet::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(44% 36% at 24% 26%, rgba(228, 200, 210, 0.11), transparent 68%),
    radial-gradient(52% 42% at 76% 62%, rgba(206, 172, 188, 0.1), transparent 70%),
    radial-gradient(46% 38% at 48% 96%, rgba(176, 146, 164, 0.08), transparent 70%);
  /* 光斑本身就是渐变出来的，不再套 blur：那一层滤镜每帧重算很贵 */
  animation: sheet-haze 52s ease-in-out infinite alternate;
}

@keyframes sheet-haze {
  from {
    transform: translate3d(-1.5%, -1%, 0);
  }
  to {
    transform: translate3d(1.5%, 1.5%, 0);
  }
}

/* 细腻胶片噪点：极淡一层压在最上面，只加质感不加暗 */
.reader--sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  /* 同上：去掉 overlay 混合与 steps 位移，避免整屏重绘闪烁 */
}

/* ── 放映机的光：从左上斜向胶片，不压右栏 ───────────────────── */
.sheet__beam {
  position: absolute;
  inset: -14% -6% -6% -14%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(114deg, transparent 10%, rgba(255, 218, 176, 0.11) 24%, rgba(255, 230, 200, 0.055) 40%, transparent 62%),
    radial-gradient(46% 34% at 4% 0%, rgba(255, 202, 150, 0.2), transparent 72%);
  background-size: 120% 120%, 100% 100%;
  filter: blur(16px);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, #000 0 58%, transparent 78%);
  mask-image: linear-gradient(90deg, #000 0 58%, transparent 78%);
  opacity: 0;
  transform: translate3d(calc(var(--mx, 0) * -8px), calc(var(--my, 0) * -6px), 0);
  animation:
    sheet-beam-on 0.9s ease-out 0.06s forwards,
    sheet-beam-drift 22s ease-in-out 0.96s infinite alternate;
}

/* 光里的微尘：画在光束上、内容下面 */
.projector-dust {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  animation: sheet-dust-in 2.4s ease-out 0.35s forwards;
}

/* 暗角：只压边缘，不挡顶栏/底栏 */
.sheet__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 76% 70% at 42% 47%, transparent 40%, rgba(5, 3, 8, 0.26) 72%, rgba(4, 2, 7, 0.56) 100%),
    linear-gradient(180deg, rgba(4, 3, 8, 0.34), transparent 18%, transparent 82%, rgba(4, 3, 8, 0.42));
  opacity: 0;
  animation: sheet-vignette-in 1.4s ease-out 0.2s forwards;
}

/* 底色压暗以后，次要文字回到原来的透明度就够隐了 */
.reader--sheet .sheet__memory,
.reader--sheet .sheet__top-date,
.reader--sheet .sheet__roll,
.reader--sheet .sheet__count,
.reader--sheet .sheet__hint,
.reader--sheet .sheet__meta,
.reader--sheet .sheet__film-hint {
  color: rgba(243, 232, 218, 0.5);
}

/* 顶栏：MEMORY 编号 · 状态 · 日期 · 关闭 */
.sheet__top {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 78px;
  padding: 0 clamp(18px, 3vw, 42px);
}

.sheet__memory {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: rgba(243, 232, 218, 0.5);
}

.sheet__memory b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ivory);
}

.sheet__memory em {
  font-style: normal;
  opacity: 0.55;
}

.sheet__dash {
  width: clamp(40px, 8vw, 130px);
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.sheet__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: rgba(243, 232, 218, 0.45);
}

.sheet__note::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 10px var(--copper);
}

.sheet__top-date {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(243, 232, 218, 0.55);
}

.sheet__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: rgba(243, 232, 218, 0.6);
  background: rgba(11, 10, 16, 0.4);
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}

.sheet__close:hover {
  color: var(--ivory);
  border-color: var(--copper);
  transform: rotate(90deg);
}

/* 胶片抬头 */
.sheet__roll {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 3vw, 42px) 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(243, 232, 218, 0.34);
}

/* 主体：胶片 + 右栏 */
.sheet__main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 404px);
}

.sheet__stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  transform: translate3d(calc(var(--mx, 0) * 4px), calc(var(--my, 0) * 3px), 0);
  will-change: transform;
}

.sheet__stage.is-dragging {
  cursor: grabbing;
}

/* 胶片本体 */
.sheet__band {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: calc(var(--sheet-fh) + 74px);
  transform: translateY(-50%);
  background: linear-gradient(180deg, #2a1d26 0%, #1e141c 46%, #150e15 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(243, 232, 218, 0.04);
}

/* 光束落在片基上的一层受光，不盖照片细节 */
.sheet__band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(108deg, rgba(255, 215, 176, 0.16), transparent 42%),
    radial-gradient(44% 70% at 12% 12%, rgba(255, 220, 184, 0.1), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.sheet__perf {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  height: 22px;
  background-image: linear-gradient(90deg, rgba(243, 232, 218, 0.1) 0 12px, transparent 12px 26px);
  background-size: 26px 100%;
  background-repeat: repeat-x;
  opacity: 0.75;
}

.sheet__perf--top {
  top: 8px;
}

.sheet__perf--bottom {
  bottom: 8px;
}

.sheet__edge {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  padding-left: 16px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(217, 180, 124, 0.4);
  box-sizing: border-box;
}

.sheet__edge span {
  position: relative;
  transform: translateX(var(--edge-x, 0px));
}

.sheet__track {
  position: absolute;
  z-index: 1;
  inset: 0;
}

/* 单格 */
.sheet-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--sheet-fw);
  height: var(--sheet-fh);
  margin-left: calc(var(--sheet-fw) / -2);
  margin-top: calc(var(--sheet-fh) / -2);
  will-change: transform, opacity;
}

/* 当前这一格的 halation：只渲染一张同图，向外柔开；不挡照片本身 */
.sheet-frame__halo {
  position: absolute;
  inset: -7%;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  border-radius: 2px;
  filter: blur(24px) saturate(1.12) brightness(1.08);
  mix-blend-mode: screen;
  opacity: 0.24;
  transform: scale(1.035);
  animation: sheet-halo-in 0.7s ease-out both;
  /* 只有当前这一格需要光晕：34 格各压一层 24px 模糊的大图，
     等于同一时刻让显卡反复重算 34 张整幅模糊，画面就会闪。 */
  display: none;
}

.sheet-frame.is-active .sheet-frame__halo {
  display: block;
}

.sheet-frame__mat {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background: #0b0910;
  box-shadow: inset 0 0 0 1px rgba(243, 232, 218, 0.07), inset 0 0 26px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.45s var(--ease-out);
}

/* 竖构图的照片用 contain 会留出两侧：垫一层同图的虚焦回声，别出现生硬黑边 */
.sheet-frame__back {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.72) saturate(1.05);
  opacity: 1;
}

.sheet-frame__img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 这一章统一压一点饱和、加一点对比，照片和背景才像同一条胶片上的 */
  filter: saturate(0.9) contrast(1.05) brightness(0.96) sepia(0.03);
}

/* 主动格比相邻格亮一点，像被放映机正好照到 */
.sheet-frame.is-active .sheet-frame__img {
  filter: saturate(0.98) contrast(1.06) brightness(1.02);
}

/* 胶片是匀速滑的，铜边会随着某一格穿过正中而亮起来（--near 由脚本按距离写入） */
.sheet-frame.is-active .sheet-frame__mat {
  box-shadow:
    inset 0 0 0 1px rgba(217, 180, 124, calc(0.1 + 0.5 * var(--near, 1))),
    0 0 calc(14px + 40px * var(--near, 1)) rgba(217, 180, 124, calc(0.05 + 0.12 * var(--near, 1)));
}

/* 呼吸只作用在光晕的亮度上，不移动命中区域 */
.sheet-frame.is-active .sheet-frame__halo {
  animation: sheet-halo-in 0.7s ease-out both, sheet-halo-breathe 9s ease-in-out infinite;
}

.sheet-frame__no {
  position: absolute;
  left: 7px;
  bottom: 6px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.sheet-frame.is-active .sheet-frame__no {
  opacity: 1;
}

/* 还没放照片的格子：一片待显影的暗底，等你自己往第 N 格里加图 */
.sheet-frame.is-empty .sheet-frame__mat {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(243, 232, 218, 0.028) 0 8px,
      transparent 8px 16px
    ),
    #0a0810;
  box-shadow: inset 0 0 0 1px rgba(243, 232, 218, 0.05);
}

.sheet-frame__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(243, 232, 218, 0.4);
}

.sheet-frame__empty b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.sheet-frame__empty i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(243, 232, 218, 0.3);
}

/* 右栏叙事 */
.sheet__copy {
  position: relative;
  min-width: 0;
  padding: 0 clamp(18px, 2.4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--line-soft);
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 180, 124, 0.28) transparent;
}

/* 入场像放映机点亮后字幕才慢慢显出来 */
.sheet__copy:not(.is-editing) > * {
  animation: sheet-copy-in 0.75s var(--ease-out) both;
}

.sheet__copy:not(.is-editing) > *:nth-child(1) { animation-delay: 0.05s; }
.sheet__copy:not(.is-editing) > *:nth-child(2) { animation-delay: 0.1s; }
.sheet__copy:not(.is-editing) > *:nth-child(3) { animation-delay: 0.15s; }
.sheet__copy:not(.is-editing) > *:nth-child(4) { animation-delay: 0.2s; }
.sheet__copy:not(.is-editing) > *:nth-child(5) { animation-delay: 0.25s; }
.sheet__copy:not(.is-editing) > *:nth-child(6) { animation-delay: 0.3s; }
.sheet__copy:not(.is-editing) > *:nth-child(7) { animation-delay: 0.35s; }
.sheet__copy:not(.is-editing) > *:nth-child(8) { animation-delay: 0.4s; }

.sheet__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.48);
}

.sheet__meta i {
  width: 22px;
  height: 1px;
  background: var(--copper);
  opacity: 0.5;
}

.sheet__title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--ivory);
}

.sheet__subtitle {
  margin: 0 0 18px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(243, 232, 218, 0.55);
}

.sheet__quote {
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 1px solid rgba(217, 180, 124, 0.6);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.85;
  color: rgba(243, 232, 218, 0.84);
}

.sheet__rule {
  display: block;
  width: 64px;
  height: 1px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, rgba(217, 180, 124, 0.7), transparent);
}

.sheet__paragraphs p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 2;
  color: rgba(243, 232, 218, 0.74);
}

.sheet__closing {
  margin: 4px 0 18px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(217, 180, 124, 0.72);
}

.sheet__copy-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet__edit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: rgba(243, 232, 218, 0.6);
  background: rgba(11, 10, 16, 0.35);
  transition: color 0.3s, border-color 0.3s;
}

/* 图标必须自己带尺寸：Icons.tsx 里的 svg 没有宽高属性，靠这里给 */
.sheet__edit svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.sheet__edit:hover {
  color: var(--ivory);
  border-color: rgba(217, 180, 124, 0.6);
}

/* 底栏的「上一段」：和编辑胶囊同高，但只放一个箭头，所以是圆的 */
.sheet__prev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(243, 232, 218, 0.62);
  background: rgba(11, 10, 16, 0.35);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.sheet__prev svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.sheet__prev:hover {
  color: var(--ivory);
  border-color: rgba(217, 180, 124, 0.6);
  background: rgba(217, 180, 124, 0.1);
}

/* 就地编辑：右栏原地变成输入框 */
.sheet__copy.is-editing {
  justify-content: flex-start;
}

.sheet__form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0 8px;
}

.sheet__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet__field--body {
  flex: 1 1 auto;
  min-height: 0;
}

.sheet__field--body textarea {
  flex: 1 1 auto;
  min-height: 96px;
  resize: none;
}

.sheet__field > span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: rgba(243, 232, 218, 0.38);
}

.sheet__field input,
.sheet__field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(9, 8, 13, 0.6);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.sheet__field input:focus,
.sheet__field textarea:focus {
  border-color: rgba(217, 180, 124, 0.55);
  background: rgba(9, 8, 13, 0.85);
}

.sheet__field textarea {
  min-height: 56px;
  font-size: 13px;
  line-height: 1.85;
}

.sheet__form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.sheet__save,
.sheet__cancel,
.sheet__more {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.sheet__save {
  height: 32px;
  padding: 0 18px;
  border: 1px solid rgba(217, 180, 124, 0.6);
  border-radius: 999px;
  background: rgba(217, 180, 124, 0.14);
  color: var(--ivory);
  transition: background 0.3s, border-color 0.3s;
}

.sheet__save:hover {
  background: rgba(217, 180, 124, 0.26);
  border-color: var(--copper);
}

.sheet__cancel {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(243, 232, 218, 0.55);
}

.sheet__cancel:hover {
  color: var(--ivory);
  border-color: rgba(243, 232, 218, 0.28);
}

.sheet__more {
  margin-left: auto;
  font-size: 8.5px;
  color: rgba(217, 180, 124, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet__more:hover {
  color: var(--copper);
}

/* 底栏 */
.sheet__dock {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  height: 74px;
  padding: 0 clamp(18px, 3vw, 42px);
  border-top: 1px solid var(--line-soft);
}

.sheet__count {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(243, 232, 218, 0.5);
  white-space: nowrap;
}

.sheet__count b {
  color: var(--ivory);
  font-weight: 400;
}

.sheet__dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sheet__dot {
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: rgba(243, 232, 218, 0.22);
  transition: background 0.35s, width 0.35s var(--ease-out), box-shadow 0.35s;
}

.sheet__dot.is-active {
  width: 20px;
  background: var(--copper);
  box-shadow: 0 0 12px rgba(217, 180, 124, 0.5);
}

/* 格数多的时候(三十八格)不画一排点,换成一根进度线 */
.sheet__progress {
  position: relative;
  display: block;
  width: clamp(120px, 22vw, 320px);
  height: 2px;
  border-radius: 2px;
  background: rgba(243, 232, 218, 0.16);
  overflow: hidden;
}

.sheet__progress-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(217, 180, 124, 0.5), var(--copper));
  box-shadow: 0 0 12px rgba(217, 180, 124, 0.35);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
}

.sheet__hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: rgba(243, 232, 218, 0.3);
  white-space: nowrap;
}

.sheet__next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(217, 180, 124, 0.42);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ivory);
  background: rgba(217, 180, 124, 0.07);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}

.sheet__next:hover {
  background: rgba(217, 180, 124, 0.16);
  border-color: var(--copper);
  transform: translateX(2px);
}

.sheet__next svg {
  width: 15px;
  height: 15px;
}

/* 大图 */
.sheet-lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vh, 18px);
  padding: clamp(14px, 2.4vw, 34px);
}

.sheet-lb__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(92% 72% at 50% 0%, rgba(74, 52, 64, 0.94), rgba(32, 22, 30, 0.97) 72%);
  backdrop-filter: blur(14px) saturate(1.05);
  animation: sheet-fade 0.35s var(--ease-out);
}

/* 大图这一层也漂花瓣，但压在照片下面，不挡画面 */
.sheet-lb__petals {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  animation: sheet-fade 0.5s var(--ease-out);
}

.sheet-lb__petals .sakura {
  z-index: 0;
}

.sheet-lb__figure {
  --mat: clamp(9px, 0.9vw, 16px);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  animation: sheet-pop 0.45s var(--ease-out);
}

/* 相框：卡纸 + 深色木框 + 一道铜线，照片镶在里面 */
.sheet-lb__frame {
  position: relative;
  padding: var(--mat) var(--mat) calc(var(--mat) * 1.5);
  background:
    linear-gradient(158deg, #f2e9db 0%, #e6d8c6 46%, #d8c8b3 100%);
  border: 1px solid rgba(217, 180, 124, 0.55);
  box-shadow:
    0 0 0 1px rgba(9, 7, 12, 0.9),
    0 0 0 7px #2b212b,
    0 0 0 8px rgba(217, 180, 124, 0.38),
    0 34px 84px rgba(0, 0, 0, 0.66),
    0 0 80px rgba(255, 190, 150, 0.1);
  transform-origin: center center;
  touch-action: none;
  cursor: grab;
  will-change: transform;
  transition: transform 0.18s var(--ease-out);
}

/* 卡纸上的细微纸纹与压边，让它像一张真正的装裱卡纸 */
.sheet-lb__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%),
    repeating-linear-gradient(90deg, rgba(120, 96, 74, 0.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: 0.7;
}

.sheet-lb__frame.is-zoomed {
  cursor: grabbing;
  transition: none;
}

.sheet-lb__frame img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: calc(min(94vw, 1400px) - var(--mat) * 2);
  max-height: calc(70dvh - var(--mat) * 2.5);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(72, 56, 44, 0.55),
    0 8px 20px rgba(56, 40, 28, 0.32);
  user-select: none;
}

/* 编辑说明的时候照片让一让，别把输入框顶到底栏上 */
.sheet-lb.is-editing .sheet-lb__frame img {
  max-height: calc(50dvh - var(--mat) * 2);
}

/* 图片正下方那一行说明：点一下就能改，宽度跟着照片走 */
.sheet-lb__note {
  position: relative;
  z-index: 1;
  width: min(86vw, 760px);
  animation: sheet-fade 0.5s 0.06s var(--ease-out) both;
}

.sheet-lb__note-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px 2px 0;
  border-top: 1px solid rgba(243, 232, 218, 0.12);
  text-align: left;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
  color: rgba(243, 232, 218, 0.86);
  transition: color 0.3s, border-color 0.3s;
}

.sheet-lb__note-line span {
  flex: 0 1 auto;
}

.sheet-lb__note-line span.is-empty {
  color: rgba(255, 236, 242, 0.46);
}

.sheet-lb__note-line svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 6px;
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}

.sheet-lb__note-line:hover {
  color: var(--ivory);
  border-color: rgba(217, 180, 124, 0.5);
}

.sheet-lb__note-line:hover svg {
  opacity: 1;
  color: var(--copper);
}

.sheet-lb__note textarea {
  width: 100%;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(8, 7, 12, 0.7);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.85;
  resize: vertical;
  transition: border-color 0.3s;
}

.sheet-lb__note textarea:focus {
  outline: none;
  border-color: rgba(217, 180, 124, 0.6);
}

.sheet-lb__note-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.sheet-lb__note-hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(243, 232, 218, 0.36);
}

.sheet-lb__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(12px, 2.6vw, 28px);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 3vw, 44px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(243, 232, 218, 0.58);
  animation: sheet-fade 0.5s 0.1s var(--ease-out) both;
}

.sheet-lb__cap {
  color: rgba(243, 232, 218, 0.86);
}

.sheet-lb__tip {
  margin-left: auto;
}

/* 「已保存」提示 */
.sheet__flash {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(217, 180, 124, 0.8);
  animation: sheet-fade 0.4s var(--ease-out) both;
}

.sheet-lb__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: rgba(243, 232, 218, 0.7);
  background: rgba(11, 10, 16, 0.5);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.sheet-lb__close:hover {
  color: var(--ivory);
  border-color: var(--copper);
  transform: rotate(90deg);
}

.sheet-lb__close svg {
  width: 13px;
  height: 13px;
}

@keyframes sheet-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheet-pop {
  from {
    opacity: 0;
    transform: scale(0.965);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sheet-grain-shift {
  from { background-position: 0 0; }
  to { background-position: 180px 90px; }
}

@keyframes sheet-beam-on {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-beam-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 4% 2%, 0 0; }
}

@keyframes sheet-dust-in {
  from { opacity: 0; }
  to { opacity: 0.9; }
}

@keyframes sheet-vignette-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-halo-in {
  from { opacity: 0; }
  to { opacity: 0.24; }
}

/* 呼吸只改透明度和缩放：改 filter 会让整块模糊每帧重新光栅化，是老显卡闪屏的经典成因 */
@keyframes sheet-halo-breathe {
  0%, 100% { opacity: 0.24; transform: scale(1.035); }
  50% { opacity: 0.32; transform: scale(1.05); }
}

@keyframes sheet-copy-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 只在桌面、且不要求减少动态时，让胶片有 1° 的物理倾斜 */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .sheet__band {
    transform: translateY(-50%) perspective(1400px) rotateY(-1.1deg) rotateX(0.7deg);
  }
}

/* 窄屏：竖着排，胶片在上 */
/* 手机上的合成降级
   这几层原本都用了 screen 混合 / 逐帧变化的阴影，在移动 GPU 上每帧都要和底下的
   画面重新混合、重画阴影，表现就是隔一会儿闪一下。手机上换成普通叠加 + 静态铜边。 */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .sheet__beam,
  .projector-dust,
  .sheet__band::after,
  .sheet-frame__halo,
  .sheet__glow {
    mix-blend-mode: normal;
  }

  .sheet-frame {
    will-change: auto;
  }

  .sheet-frame.is-active {
    will-change: transform, opacity;
  }

  .sheet-frame.is-active .sheet-frame__mat {
    box-shadow:
      inset 0 0 0 1px rgba(217, 180, 124, 0.58),
      0 0 26px rgba(217, 180, 124, 0.16);
  }

  .reader--sheet::before {
    animation: none;
  }

  .sheet-lb__scrim {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 900px) {
  .reader.reader--sheet {
    --sheet-fw: clamp(200px, 66vw, 420px);
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .sheet__top {
    height: 62px;
    gap: 10px;
    padding: 0 16px;
  }

  .sheet__memory {
    flex: 0 0 auto;
    gap: 7px;
    font-size: 9px;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  .sheet__memory b {
    font-size: 24px;
  }

  .sheet__note,
  .sheet__dash {
    display: none;
  }

  .sheet__top-date {
    min-width: 0;
    overflow: hidden;
    font-size: 8.5px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sheet__close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin-left: 0;
  }

  .sheet__roll {
    padding: 0 16px 8px;
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .sheet__main {
    display: block;
    flex: none;
    min-height: auto;
  }

  .sheet__stage {
    height: calc(var(--sheet-fh) + 74px);
    transform: none;
  }

  .sheet__beam {
    filter: blur(13px);
  }

  .sheet__vignette {
    background:
      radial-gradient(ellipse 78% 72% at 44% 46%, transparent 46%, rgba(5, 3, 8, 0.2) 78%, rgba(4, 2, 7, 0.42) 100%),
      linear-gradient(180deg, rgba(4, 3, 8, 0.24), transparent 20%, transparent 84%, rgba(4, 3, 8, 0.32));
  }

  .sheet__band {
    transform: translateY(-50%);
  }

  .sheet-frame__halo,
  .sheet-frame.is-active .sheet-frame__halo {
    filter: blur(16px) saturate(1.06) brightness(1.04);
    opacity: 0.18;
    animation: none;
  }

  .sheet__copy {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding: 22px 18px 26px;
    overflow: visible;
  }

  .sheet__dock {
    position: relative;
    z-index: 5;
    height: 62px;
    padding: 0 14px;
    gap: 10px;
    background: linear-gradient(180deg, rgba(10, 8, 16, 0.2), rgba(10, 8, 16, 0.94) 55%);
    backdrop-filter: blur(10px);
  }

  .sheet__count {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .sheet__hint {
    display: none;
  }

  .sheet__dots {
    gap: 5px;
  }

  .sheet__dot {
    width: 5px;
  }

  .sheet__prev {
    width: 30px;
    margin-left: auto;
  }

  .sheet__next {
    height: 34px;
    margin-left: 0;
    padding: 0 13px;
    font-size: 9px;
    white-space: nowrap;
  }

  /* 手机上大图 + 详述要挤进一屏 */
  .sheet-lb {
    gap: 9px;
    padding: 12px;
  }

  .sheet-lb__frame img {
    max-height: calc(44dvh - var(--mat) * 2.5);
  }

  /* 手机上底栏只留帧号和关闭，别让说明文字把按钮挤散 */
  .sheet-lb__tip {
    display: none;
  }

  .sheet-lb__cap {
    font-size: 8.5px;
    white-space: nowrap;
  }

  .sheet-lb__note {
    width: 100%;
  }

  .sheet-lb__note-line {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .sheet-lb__note textarea {
    min-height: 64px;
    font-size: 13.5px;
  }

  .sheet-lb__note-hint {
    display: none;
  }

  .sheet-lb__bar {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet-frame {
    filter: none !important;
  }

  /* 雾霭不再飘，花瓣照旧飘（这一章要的就是落花） */
  .reader--sheet::before {
    animation: none;
  }

  /* 放映室保持最终的打光，但不点亮、不漂移 */
  .sheet__beam,
  .projector-dust,
  .sheet__vignette,
  .sheet__copy:not(.is-editing) > *,
  .sheet-frame__halo,
  .reader--sheet::after {
    animation: none !important;
  }

  .sheet__beam {
    opacity: 1;
    transform: none;
  }

  .projector-dust {
    opacity: 0.75;
  }

  .sheet__vignette {
    opacity: 1;
  }

  .sheet__copy:not(.is-editing) > * {
    opacity: 1;
    transform: none;
  }

  .sheet-frame__halo,
  .sheet-frame.is-active .sheet-frame__halo {
    opacity: 0.2;
    animation: none;
  }

  .sheet__stage {
    transform: none !important;
  }

  .sheet__band {
    transform: translateY(-50%) !important;
  }

  .sheet-lb__figure,
  .sheet-lb__scrim,
  .sheet-lb__bar,
  .sheet-lb__note {
    animation: none;
  }
}
/* ── 03「为你绽放」：手势粒子阅读层 ─────────────────────────── */

.bloom-reader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  overflow: hidden;
  background: #050409;
  color: var(--ivory);
}

.bloom-reader__bar {
  /* 悬浮在粒子之上：不铺底色、不做毛玻璃，整屏都交给粒子画面，
     文字和按钮直接浮在上面（原来那条不透明的栏把上方的粒子全挡掉了）。 */
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 28px 0;
  pointer-events: none;
  background: none;
}

.bloom-reader__bar > * {
  pointer-events: auto;
}

/* 左上角：和粒子页自己的角标（ROSE · CANDLE … / 安❤席 / 摄像头状态）保持一致 */
.bloom-reader__brand {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.bloom-reader__kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(255, 107, 138, 0.62);
  white-space: nowrap;
}

.bloom-reader__title {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.1;
  color: #ffdfe6;
  text-shadow: 0 0 26px rgba(255, 45, 85, 0.45);
  white-space: nowrap;
}

.bloom-reader__heart {
  margin: 0 2px;
  font-family: var(--sans);
  font-size: 0.62em;
  letter-spacing: 0;
  color: #ff4d6d;
  text-shadow: 0 0 18px rgba(255, 45, 85, 0.85);
  vertical-align: 0.12em;
}

.bloom-reader__state {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 107, 138, 0.55);
}

.bloom-reader__source {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 230, 236, 0.42);
  white-space: nowrap;
}

.bloom-reader__memory {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(243, 232, 218, 0.52);
}

.bloom-reader__memory b {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--copper);
}

.bloom-reader__memory em {
  font-style: normal;
  color: rgba(243, 232, 218, 0.3);
}

.bloom-reader__rule {
  width: 48px;
  height: 1px;
  flex: 0 0 auto;
  background: rgba(243, 232, 218, 0.2);
}

.bloom-reader__heading {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 14px;
}

.bloom-reader__heading h1 {
  overflow: hidden;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bloom-reader__heading span {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(243, 232, 218, 0.34);
}

.bloom-reader__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.bloom-reader__step,
.bloom-reader__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 232, 218, 0.16);
  border-radius: 999px;
  color: rgba(243, 232, 218, 0.72);
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease);
}

.bloom-reader__step {
  width: 36px;
  height: 36px;
}

.bloom-reader__step svg {
  width: 17px;
  height: 17px;
}

.bloom-reader__close {
  gap: 8px;
  min-height: 36px;
  padding: 0 13px 0 15px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.bloom-reader__close svg {
  width: 14px;
  height: 14px;
}

.bloom-reader__step:hover,
.bloom-reader__close:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ivory);
}

.bloom-reader__step:focus-visible,
.bloom-reader__close:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.bloom-reader__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.bloom-reader__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.bloom-reader__loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(52% 46% at 50% 46%, rgba(242, 168, 191, 0.1), transparent 74%),
    #050409;
  pointer-events: none;
  text-align: center;
}

.bloom-reader__loader p {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(243, 232, 218, 0.62);
}

.bloom-reader__loader a {
  pointer-events: auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding-bottom: 3px;
}

.bloom-reader__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  animation: bloom-pulse 1.8s ease-out infinite;
}

@keyframes bloom-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 42%, transparent);
  }
  70% {
    box-shadow: 0 0 0 18px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (max-width: 760px) {
  .bloom-reader__bar {
    gap: 10px;
    padding: calc(14px + env(safe-area-inset-top)) 14px 0;
  }

  .bloom-reader__memory {
    display: none;
  }

  .bloom-reader__rule,
  .bloom-reader__heading span {
    display: none;
  }

  .bloom-reader__heading h1 {
    font-size: 19px;
    letter-spacing: 0.1em;
  }

  .bloom-reader__step {
    width: 33px;
    height: 33px;
  }

  .bloom-reader__close {
    min-height: 33px;
    padding: 0 11px;
  }

  .bloom-reader__close span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bloom-reader__pulse {
    animation: none;
  }
}

/* 手机上把角标压缩，别把右侧的上一段/下一段/关闭挤掉 */
@media (max-width: 760px) {
  /* 手机上一行放不下三行字：只留名字 + 摄像头状态，角标收起来 */
  .bloom-reader__kicker {
    display: none;
  }

  .bloom-reader__bar {
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  .bloom-reader__brand {
    gap: 3px;
  }

  .bloom-reader__title {
    font-size: 19px;
    letter-spacing: 0.1em;
  }

  .bloom-reader__state {
    margin-left: 9px;
    font-size: 8.5px;
    letter-spacing: 0.2em;
  }

  .bloom-reader__source {
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: rgba(255, 230, 236, 0.5);
  }
}

/* 顶栏下面原本有一条 1px 实线；改成留白，让粒子画面直接顶到栏底 */
.bloom-reader__bar::after {
  display: none;
}

/* 悬浮顶栏：文字直接压在粒子上，加一点阴影保证可读 */
.bloom-reader__kicker,
.bloom-reader__title,
.bloom-reader__source {
  text-shadow: 0 1px 10px rgba(6, 4, 9, 0.85), 0 0 24px rgba(6, 4, 9, 0.6);
}
/* ─────────────────────────────────────────────────────────────
   「还在继续」的视频阅读层：整页浅暖底 + 一段影像 + 右栏文字。

   和另外三章（暗紫底、单张相框/胶片）刻意反过来：这一章要「亮起来」，
   所以底色走奶油 → 蜜桃 → 暮紫，文字改用深墨色，铜色只做细线和小点缀。
   所有规则都收在 .reader--video 里，不影响别的阅读层。
   ───────────────────────────────────────────────────────────── */

.reader.reader--video {
  --v-ink: #f3e8da;
  --v-soft: rgba(243, 232, 218, 0.62);
  --v-faint: rgba(243, 232, 218, 0.38);
  --v-line: rgba(243, 232, 218, 0.14);
  --v-panel: rgba(20, 14, 20, 0.62);

  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  color: var(--v-ink);
  background:
    radial-gradient(92% 74% at 86% -10%, rgba(255, 186, 138, 0.3) 0%, rgba(255, 186, 138, 0) 62%),
    radial-gradient(84% 68% at 2% 106%, rgba(214, 132, 164, 0.23) 0%, rgba(214, 132, 164, 0) 64%),
    radial-gradient(70% 58% at 48% 46%, rgba(126, 84, 104, 0.34) 0%, rgba(126, 84, 104, 0) 72%),
    linear-gradient(158deg, #3f2d38 0%, #2e212a 46%, #211821 100%);
}

/* 一层很浅的雾，让渐变不生硬；不加 blur，避免整页模糊 */
.video__sky {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    /* 暗角：往外压一圈，画面才有"镜头"的感觉 */
    radial-gradient(118% 96% at 50% 46%, rgba(8, 5, 10, 0) 42%, rgba(8, 5, 10, 0.42) 88%, rgba(6, 4, 8, 0.62) 100%),
    radial-gradient(38% 34% at 22% 26%, rgba(255, 206, 164, 0.16), transparent 70%),
    radial-gradient(34% 30% at 78% 68%, rgba(226, 150, 178, 0.14), transparent 72%);
  animation: video-sky 34s ease-in-out infinite alternate;
}

@keyframes video-sky {
  from {
    transform: translate3d(-1.2%, 0.8%, 0) scale(1.02);
  }
  to {
    transform: translate3d(1.6%, -1.2%, 0) scale(1.06);
  }
}

/* 细颗粒：和胶片章节用的是同一种 feTurbulence 噪点，只是更淡 */
.video__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.bubbles.video__bubbles {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 泡泡压在文字与视频下面，只当背景层的玻璃质感 */
.video__main,
.video__bar,
.reader--video .reader__nav {
  position: relative;
  z-index: 5;
}

/* 前景散景泡：压在画面上，但只出现在左半边（右侧文字区用遮罩挡掉） */
.bubbles.video__bubbles--front {
  z-index: 6;
  mix-blend-mode: screen;
  mask-image: linear-gradient(100deg, #000 0 34%, rgba(0, 0, 0, 0.4) 54%, transparent 70%);
  -webkit-mask-image: linear-gradient(100deg, #000 0 34%, rgba(0, 0, 0, 0.4) 54%, transparent 70%);
}

.motes.video__motes {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
}

/* ── 顶栏 ── */
.video__bar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  height: 78px;
  padding: 0 clamp(20px, 4vw, 54px);
}

.video__memory {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--v-soft);
  white-space: nowrap;
}

.video__memory b {
  margin: 0 3px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--v-ink);
}

.video__memory em {
  font-style: normal;
  color: var(--v-faint);
}

.video__bar-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 232, 218, 0.22), rgba(243, 232, 218, 0));
}

.video__bar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--v-soft);
  white-space: nowrap;
}

.video__bar-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #d9a6b4);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent, #d9a6b4) 70%, transparent);
}

.video__edit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(243, 232, 218, 0.16);
  border-radius: 999px;
  background: rgba(20, 14, 20, 0.5);
  color: var(--v-soft);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}

.video__edit svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.video__edit:hover {
  color: var(--v-ink);
  border-color: rgba(243, 232, 218, 0.34);
  background: rgba(30, 22, 30, 0.82);
}

.video__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  margin-left: 2px;
  border: 1px solid rgba(243, 232, 218, 0.18);
  border-radius: 50%;
  background: rgba(20, 14, 20, 0.5);
  color: var(--v-soft);
  transition:
    transform 0.4s var(--ease-out),
    color 0.3s,
    border-color 0.3s;
}

.video__close svg {
  width: 14px;
  height: 14px;
}

.video__close:hover {
  color: var(--v-ink);
  border-color: rgba(243, 232, 218, 0.4);
  transform: rotate(90deg);
}

/* ── 主区 ── */
.video__main {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 372px);
  gap: clamp(22px, 3vw, 44px);
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
  padding: 2px clamp(18px, 3.2vw, 44px) 6px clamp(18px, 3.6vw, 52px);
}

.video__frame {
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video__screen {
  position: relative;
  /* 宽度同时受列宽和视口高度约束，这样 16:9 永远不会被 max-height 压变形 */
  width: min(100%, calc((100dvh - 296px) * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: #1a1420;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 0 0 1px rgba(243, 232, 218, 0.14),
    0 26px 56px rgba(0, 0, 0, 0.45),
    0 70px 130px rgba(0, 0, 0, 0.32),
    /* 屏幕往下洒的一层暖光：画面才像"亮着的东西" */
    0 40px 96px rgba(255, 172, 132, 0.12);
}

/* 视频按 contain 显示，不裁切也不变形 */
.video__el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0e0a11;
}

.video__screen.is-playing {
  cursor: default;
}

/*
 * 视频播放时把装饰层让出来：720p 解码已经要占一份 GPU/合成，
 * 三层画布 + 全屏天空动画 + overlay 颗粒同时跑，弱机器就会偶发卡顿。
 * 画面本身的调色、暗角、边框都保留，只停“会动/会混合”的那几层。
 */
.video__grain,
.motes.video__motes,
.bubbles.video__bubbles {
  transition: opacity 0.45s ease;
}

.reader--video.is-playing .video__sky {
  animation-play-state: paused;
}

.reader--video.is-playing .video__grain {
  opacity: 0.045;
}

.reader--video.is-playing .video__motes {
  opacity: 0.55;
}

/* 播放时前景泡泡不隐藏，只压暗一点，画面不会糊住视频 */
.reader--video.is-playing .video__bubbles--front {
  opacity: 0.55;
}

.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(20, 14, 20, 0.26), rgba(20, 14, 20, 0.08) 72%);
  color: #fdf6ec;
  transition: background 0.4s;
}

.video__play:hover {
  background: radial-gradient(60% 60% at 50% 50%, rgba(20, 14, 20, 0.18), rgba(20, 14, 20, 0.04) 72%);
}

.video__play[hidden] {
  display: none;
}

.video__play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(253, 246, 236, 0.5);
  border-radius: 50%;
  background: rgba(14, 9, 14, 0.3);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow:
    0 0 0 1px rgba(255, 246, 236, 0.1),
    0 10px 34px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(255, 196, 150, 0.16);
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.3s;
}

.video__play-icon svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 12px rgba(255, 226, 196, 0.45));
}

.video__play-icon svg path {
  stroke: currentColor;
}

.video__play:hover .video__play-icon {
  transform: scale(1.06);
  border-color: rgba(253, 246, 236, 0.95);
}

.video__play-text {
  /* 贴到画面下缘，别压在中间的人脸上 */
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  padding: 4px 11px 4px 12px;
  border-radius: 999px;
  background: rgba(20, 13, 20, 0.28);
  backdrop-filter: blur(6px);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(253, 246, 236, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.video__spinner {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 16px;
  height: 16px;
  border: 1.4px solid rgba(253, 246, 236, 0.3);
  border-top-color: rgba(253, 246, 236, 0.9);
  border-radius: 50%;
  animation: video-spin 0.9s linear infinite;
}

@keyframes video-spin {
  to {
    transform: rotate(360deg);
  }
}

.video__error {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 220, 220, 0.9);
}

/* 控制条：细、低对比，不跟画面抢注意力 */
.video__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
  color: var(--v-soft);
}

.video__mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  color: var(--v-soft);
  transition:
    color 0.3s,
    background 0.3s;
}

.video__mini svg {
  width: 15px;
  height: 15px;
}

.video__mini:hover {
  color: var(--v-ink);
  background: rgba(243, 232, 218, 0.08);
}

.video__time {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: rgba(243, 232, 218, 0.55);
  font-variant-numeric: tabular-nums;
}

.video__track {
  position: relative;
  flex: 1 1 auto;
  height: 22px;
  cursor: pointer;
  outline: none;
}

.video__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: rgba(243, 232, 218, 0.16);
  transform: translateY(-50%);
}

.video__track-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent, #d9a6b4), #d9b47c);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.12s linear;
}

.video__track-knob {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #e9c9d3;
  box-shadow: 0 0 0 3px rgba(20, 14, 20, 0.75);
  transform: translateY(-50%);
  transition: left 0.12s linear;
}

.video__track:focus-visible::before {
  background: rgba(243, 232, 218, 0.3);
}

/* ── 右栏 ── */
.video__copy {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 232, 218, 0.24) transparent;
}

.video__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--v-faint);
}

.video__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent, #d9a6b4);
}

.video__title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--v-ink);
}

.video__subtitle {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--v-soft);
}

.video__quote {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 1px solid color-mix(in srgb, var(--accent, #d9a6b4) 62%, transparent);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
  color: var(--v-soft);
}

.video__rule {
  display: block;
  width: 54px;
  height: 1px;
  margin: 18px 0 16px;
  background: linear-gradient(90deg, rgba(243, 232, 218, 0.36), rgba(243, 232, 218, 0));
}

.video__paragraphs p {
  margin: 0 0 13px;
  font-size: 12.5px;
  line-height: 2.05;
  color: rgba(243, 232, 218, 0.78);
}

.video__closing {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--v-soft);
}

.video__next {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 4px;
  padding: 9px 15px 9px 17px;
  border: 1px solid rgba(243, 232, 218, 0.24);
  border-radius: 999px;
  color: var(--v-ink);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.video__next svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.video__next:hover {
  background: rgba(30, 22, 30, 0.7);
  border-color: rgba(243, 232, 218, 0.42);
}

/* ── 底栏：沿用阅读层的两段导航，只把颜色改成深墨 ── */
.reader--video .reader__nav {
  position: relative;
  inset: auto;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 0 0 auto;
  padding: 14px clamp(20px, 4vw, 54px) 20px;
  border-top: 1px solid rgba(243, 232, 218, 0.07);
  background: none;
  pointer-events: auto;
}

.reader--video .reader__nav-button {
  flex: 0 0 auto;
  gap: 9px;
  white-space: nowrap;
  color: rgba(243, 232, 218, 0.72);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  transition: color 0.3s var(--ease-out);
}

.reader--video .reader__nav-ticks {
  flex: 0 0 auto;
  margin: 0 auto;
}

.reader--video .reader__nav-button svg {
  color: rgba(243, 232, 218, 0.5);
}

.reader--video .reader__nav-button:hover {
  color: var(--v-ink);
}

.reader--video .reader__nav-ticks span {
  background: rgba(243, 232, 218, 0.22);
}

.reader--video .reader__nav-ticks span.is-current {
  background: var(--accent, #d9a6b4);
}

/* ── 窄屏：改成自然滚动，视频在上、文字在下 ── */
@media (max-width: 900px) {
  .reader.reader--video {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .video__bar {
    height: 62px;
    padding: 0 16px;
    gap: 10px;
  }

  .video__bar-note {
    display: none;
  }

  .video__edit {
    height: 30px;
    padding: 0 11px;
  }

  .video__main {
    display: block;
    padding: 0 16px 24px;
  }

  .video__screen {
    width: 100%;
  }

  .video__copy {
    max-height: none;
    overflow: visible;
    padding: 26px 2px 8px;
  }

  .video__title {
    font-size: clamp(30px, 8vw, 38px);
  }

  .reader--video .reader__nav-ticks {
    display: none;
  }

  .reader--video .reader__nav {
    position: sticky;
    bottom: 0;
    padding: 12px 16px 14px;
    background: linear-gradient(180deg, rgba(22, 16, 22, 0), rgba(22, 16, 22, 0.92) 46%);
    backdrop-filter: blur(6px);
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .video__title {
    font-size: clamp(28px, 2.6vw, 36px);
  }

  .video__paragraphs p {
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 10px;
  }

  .video__quote {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video__sky {
    animation: none;
  }

  .video__close,
  .video__play-icon {
    transition: none;
  }
}