/* ================================================================== */
/* TAPE ROOM · 分层版画长页 / 全屏镜头版                                */
/* field → depth-scene → ink layers → paper panels → display type      */
/* ================================================================== */

html { height: auto; min-height: 100%; }
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
body.is-opening,
body.room-open {
  height: 100dvh;
  overflow: hidden;
}

.story {
  --s-red: #c81018;
  --s-red-deep: #6e0508;
  --s-ink: #0b0a08;
  --s-paper: #f1e9d5;
  --s-paper-2: #d9cfb6;
  --s-bone: #e7dec9;
  --s-grey: #8d8577;
  --s-display: "Bodoni MT", "Didot", "Playfair Display", "Times New Roman", "Songti SC", serif;
  --s-serif: "Songti SC", "STSong", "SimSun", "宋体", "Times New Roman", serif;
  --s-mono: "Courier New", ui-monospace, "Lucida Console", monospace;
  --s-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --header-h: 56px;
  position: relative;
  z-index: 10;
  isolation: isolate;
  background: var(--s-ink);
  color: var(--s-paper);
  font-family: var(--s-sans);
  opacity: 1;
  transition: opacity .7s ease, transform 1s cubic-bezier(.22,.8,.24,1), filter .7s ease;
}
body.is-opening .story {
  opacity: 0;
  transform: scale(1.04);
  filter: brightness(1.35) blur(1px);
  pointer-events: none;
}
body.room-open .story {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.story a { color: inherit; text-decoration: none; }
.story button { font-family: inherit; }

/* ---------- 顶部导航 ---------- */

.story__top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 40px);
  padding: 0 clamp(14px, 2.4vw, 32px);
  background: rgba(7, 6, 5, .94);
  border-bottom: 1px solid rgba(241, 233, 213, .18);
  backdrop-filter: blur(8px);
  transition: opacity .45s ease, visibility .45s;
}
.story__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.story__logo-script {
  font-family: var(--s-serif);
  font-style: italic;
  font-size: 26px;
  letter-spacing: -.035em;
  color: var(--s-paper);
}
.story__logo-sub {
  font-family: var(--s-mono);
  font-size: 6.5px;
  letter-spacing: .3em;
  color: var(--s-grey);
}
.story__issue {
  margin: 0;
  font-family: var(--s-mono);
  font-size: 6.5px;
  line-height: 1.9;
  letter-spacing: .26em;
  color: var(--s-grey);
}
.story__nav {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.nav-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 0 5px;
  background: none;
  color: var(--s-paper);
  border: 0;
  border-bottom: 1px solid rgba(241, 233, 213, .38);
  font-size: 8px;
  letter-spacing: .22em;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.nav-btn__cn {
  font-family: var(--s-sans);
  font-size: 8px;
  letter-spacing: .12em;
  opacity: .5;
}
.nav-btn:hover { color: var(--s-red); border-color: var(--s-red); }
.nav-btn--red { color: var(--s-red); border-color: var(--s-red); }
.nav-btn--red:hover { color: var(--s-paper); border-color: var(--s-paper); }
.story__progress-dot.is-on {
  height: 30px;
  background: #fff;
}
@keyframes fieldDrift {
  to { background-position: 0 70px, 3px 74px; }
}
.art {
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.city {
  position: absolute;
  inset: -5% -3%;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 32px,
      rgba(11, 10, 8, .16) 32px 33px,
      transparent 33px 64px),
    repeating-linear-gradient(0deg,
      transparent 0 42px,
      rgba(11, 10, 8, .12) 42px 43px,
      transparent 43px 86px),
    linear-gradient(90deg,
      rgba(11, 10, 8, .16) 0 16%, transparent 16% 24%,
      rgba(11, 10, 8, .22) 24% 45%, transparent 45% 66%,
      rgba(11, 10, 8, .14) 66% 84%, transparent 84%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95) 0 44%, rgba(0, 0, 0, .3) 68%, transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95) 0 44%, rgba(0, 0, 0, .3) 68%, transparent 88%);
  opacity: .92;
}
.city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(200, 16, 24, .55) 1.4px, transparent 2.2px);
  background-size: 66px 88px;
  background-position: 26px 40px;
  opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, #000 0 42%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0 42%, transparent 72%);
}
.stage--red .city { opacity: .66; }
.stage--red .city::after { opacity: .3; }

.rain {
  position: absolute;
  inset: -18% -25%;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(97deg, rgba(11, 10, 8, .5) 0 .9px, transparent .9px 37px),
    repeating-linear-gradient(94deg, rgba(11, 10, 8, .24) 0 1px, transparent 1px 61px);
  background-size: 240px 340px, 320px 420px;
  opacity: .15;
  animation: rainFall 1.5s linear infinite;
}
.stage--red .rain {
  background-image:
    repeating-linear-gradient(97deg, rgba(241, 233, 213, .55) 0 .9px, transparent .9px 37px),
    repeating-linear-gradient(94deg, rgba(241, 233, 213, .26) 0 1px, transparent 1px 61px);
}
@keyframes rainFall {
  to { background-position: -74px 340px, -42px 420px; }
}

.lamp {
  position: absolute;
  width: 66px;
  height: 172px;
  transform-origin: 50% 0;
  animation: lampSwing 7.4s ease-in-out infinite;
}
.lamp::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 112px;
  background: rgba(11, 10, 8, .82);
}
.lamp::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100px;
  width: 42px;
  height: 26px;
  translate: -50% 0;
  background: var(--s-ink);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 0 1px rgba(241, 233, 213, .14);
}
.lamp i {
  position: absolute;
  left: 50%;
  top: 126px;
  width: 9px;
  height: 9px;
  translate: -50% 0;
  border-radius: 50%;
  background: #f6efdd;
  box-shadow:
    0 0 18px 6px rgba(241, 233, 213, .34),
    0 0 46px 16px rgba(200, 16, 24, .18);
}
.lamp i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 250px;
  height: 340px;
  translate: -50% 0;
  background: linear-gradient(180deg, rgba(241, 233, 213, .16), rgba(241, 233, 213, 0) 72%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  opacity: .7;
}
@keyframes lampSwing {
  0%, 100% { rotate: -1.2deg; }
  50% { rotate: 1.4deg; }
}
.finale .scrap--1 { left: 50%; top: 7%; }
.finale .scrap--2 { right: 9%; top: 30%; }
.finale .scrap--3 { left: 24%; bottom: 16%; }
.finale .scrap--4 { right: 24%; top: 8%; }
@keyframes scrapFloat {
  from { translate: 0 -8px; }
  to { translate: 0 10px; }
}
@keyframes reelSpin {
  to { rotate: 360deg; }
}
body.scroll-up .fg--bar { box-shadow: inset -10px 0 22px rgba(0, 0, 0, .6), inset 8px 0 18px rgba(0, 0, 0, .5), 0 0 0 1px rgba(200, 16, 24, .5), 12px 0 40px rgba(10, 9, 8, .18); }
body.scroll-up .fg--veil { scale: -1 1; }
body.scroll-down .fg--veil { scale: 1 1; }
@keyframes chainSway {
  0%, 100% { rotate: -1.6deg; }
  50% { rotate: 2deg; }
}
@keyframes tapeSway {
  0%, 100% { rotate: -2.2deg; }
  50% { rotate: 1.8deg; }
}
@keyframes scrapFloat {
  0% { translate: 0 0; rotate: var(--sr, 0deg); }
  100% { translate: 6px -12px; rotate: calc(var(--sr, 0deg) + 8deg); }
}
body.scroll-up .fg--scraps { translate: calc(var(--fgl, 0px) + 30px) -20px; }
body.scroll-down .fg--scraps { translate: calc(var(--fgl, 0px) - 30px) 14px; }

body.scroll-up .fg--post { translate: 0 calc(var(--fgr, 0px) - 16px); }
body.scroll-down .fg--post { translate: 0 calc(var(--fgr, 0px) + 11px); }
body.scroll-up .fg--chain { translate: calc(var(--fgl, 0px) + 14px) 0; }
body.scroll-down .fg--chain { translate: calc(var(--fgl, 0px) - 9px) 0; }
body.scroll-up .fg--tape-hang { translate: 0 calc(var(--fgr, 0px) - 18px); }
body.scroll-down .fg--tape-hang { translate: 0 calc(var(--fgr, 0px) + 12px); }
body.scroll-up .fg--reel-edge { translate: calc(var(--fgr, 0px) - 20px) 14px; }
body.scroll-down .fg--reel-edge { translate: calc(var(--fgr, 0px) + 12px) -8px; }

body.scroll-up .fg--l { transform: translate3d(calc(var(--fgl, 0px) + 14px), 0, 0); }
body.scroll-up .fg--r { transform: translate3d(calc(var(--fgr, 0px) - 14px), 0, 0) scaleX(-1); }
body.scroll-down .fg--l { transform: translate3d(calc(var(--fgl, 0px) - 9px), 0, 0); }
body.scroll-down .fg--r { transform: translate3d(calc(var(--fgr, 0px) + 9px), 0, 0) scaleX(-1); }
body.scroll-down .stage__fg { --rainSpeed: .62s; }
body.scroll-up .stage__fg { --rainSpeed: 1.7s; }
body.scroll-down .fg--torn { filter: drop-shadow(0 8px 10px rgba(10, 9, 8, .25)); }
@keyframes portalTurn {
  to { transform: rotate(360deg) scale(1.05); }
}
.act--watcher .layer--cols,
.finale .layer--cols { display: block; }
@keyframes walkBob {
  from { translate: 0 0; }
  to { translate: 0 -4px; }
}
@keyframes recPulse {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: .15; }
}
@keyframes glitchA {
  0%, 90%, 100% { opacity: 0; }
  91% { opacity: .85; transform: translateX(-14px) scaleY(1); }
  93% { opacity: .85; transform: translateX(20px) scaleY(.6); }
  95% { opacity: 0; }
}
@keyframes glitchB {
  0%, 84%, 100% { opacity: 0; }
  85% { opacity: .85; transform: translateX(16px); }
  87% { opacity: .85; transform: translateX(-22px); }
  89% { opacity: 0; }
}
@keyframes eyeScan {
  0%, 62% { top: 4%; opacity: 0; }
  64% { opacity: .9; }
  84% { top: 94%; opacity: .9; }
  86%, 100% { top: 94%; opacity: 0; }
}
.floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: var(--s-paper);
  border-top: 1px solid var(--s-ink);
}
.floor::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='.5'/></svg>");
  mix-blend-mode: multiply;
}
@keyframes cueDrop {
  0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ---------- 终幕开箱面板 ---------- */

.finale__head {
  position: absolute;
  z-index: 7;
  left: clamp(20px, 5.4vw, 86px);
  top: clamp(84px, 10vh, 116px);
  right: clamp(20px, 5.4vw, 86px);
  max-width: 52vw;
}
.finale__head .display {
  margin-top: clamp(14px, 2vh, 22px);
  font-size: clamp(58px, 10.6vw, 164px);
}
.finale__head .act__cn {
  display: inline-block;
  margin-top: clamp(16px, 2vh, 22px);
  padding: 10px 14px 9px;
  background: var(--s-paper);
  color: var(--s-ink);
  opacity: 1;
  font-size: clamp(11px, .88vw, 12.5px);
  line-height: 1.95;
  letter-spacing: .14em;
  box-shadow: 8px 8px 0 rgba(11, 10, 8, .22);
  transform: rotate(.6deg);
}

.open-panel {
  position: absolute;
  z-index: 7;
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(52px, 8vh, 88px);
  width: min(310px, 26vw);
  padding: 20px 20px 22px;
  background: var(--s-paper);
  color: var(--s-ink);
  border: 1px solid var(--s-ink);
  box-shadow: 12px 12px 0 rgba(11, 10, 8, .22);
  transform: rotate(-.8deg);
}
.open-panel__meta {
  display: block;
  font-family: var(--s-mono);
  font-size: 7px;
  letter-spacing: .24em;
  opacity: .55;
}
.open-panel__note {
  margin: 12px 0 18px;
  font-family: var(--s-serif);
  font-size: 12.5px;
  line-height: 2;
  letter-spacing: .1em;
}
.open-panel__barcode {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 66px;
  height: 11px;
  background: repeating-linear-gradient(90deg,
    var(--s-ink) 0 1px, transparent 1px 3px,
    var(--s-ink) 3px 4px, transparent 4px 7px);
  opacity: .5;
}
.finale__hold {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hold-btn {
  position: relative;
  width: 108px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--s-ink);
  color: var(--s-paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  box-shadow:
    0 0 0 5px var(--s-paper),
    0 0 0 6px rgba(11, 10, 8, .5),
    0 18px 36px rgba(11, 10, 8, .35);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s, color .2s;
}
.hold-btn::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(11, 10, 8, .38);
  border-radius: 50%;
  transition: inset .3s, border-color .3s;
}
.hold-btn:hover { transform: scale(1.05); }
.hold-btn:hover::after { inset: -13px; border-color: var(--s-red); }
.hold-btn.is-nudge { animation: holdNudge .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes holdNudge {
  0%, 100% { transform: scale(1); }
  28% { transform: scale(1.11); }
  58% { transform: scale(.97); }
  80% { transform: scale(1.04); }
}
.hold-btn.is-holding .hold-btn__fill { transition: none; }
.hold-btn__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.hold-btn__track {
  fill: none;
  stroke: rgba(241, 233, 213, .28);
  stroke-width: 3.5;
}
.hold-btn__fill {
  fill: none;
  stroke: var(--s-red);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  transition: stroke-dashoffset .3s ease;
}
.hold-btn__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--s-mono);
  font-size: 8.5px;
  letter-spacing: .2em;
}
.hold-btn__text b {
  font-weight: 400;
  font-size: 9.5px;
  color: #f4e7cf;
}
.hold-btn.is-holding { background: var(--s-red); }
.hold-btn.is-done { background: var(--s-red); color: var(--s-paper); }
.finale__fine {
  margin: 0;
  font-family: var(--s-mono);
  font-size: 7px;
  letter-spacing: .16em;
  color: rgba(11, 10, 8, .7);
  white-space: nowrap;
}

/* ---------- 入场 / 出场 ---------- */

.hero__content,
.act__head,
.finale__head,
.note,
.open-panel {
  translate: var(--tx, 0px) var(--ty, 0px);
  rotate: var(--rot, 0deg);
  opacity: var(--op, 1);
}

/* 上滑时反向入场：字从上半部抽走，再从上沿落下 */
body.scroll-up [data-reveal]:not(.is-in) .display > span {
  clip-path: inset(106% 0 -12% 0);
  transform: translateY(-.36em);
}
body.scroll-up [data-reveal]:not(.is-in) .micro { clip-path: inset(0 0 0 100%); }
body.scroll-up [data-reveal]:not(.is-in) .act__cn { clip-path: inset(104% 0 0 0); }

[data-reveal].is-in .display > span {
  clip-path: inset(-12% -4% -12% 0);
  transform: translateY(0);
}
[data-reveal].is-in .micro { clip-path: inset(0 0 0 0); }
[data-reveal].is-in .act__cn { clip-path: inset(0 0 0 0); }
[data-reveal].is-in .note { scale: 1; }

[data-reveal] .open-panel {
  scale: .96;
  transition: scale 1s cubic-bezier(.18, .76, .2, 1) .16s;
}
[data-reveal].is-in .open-panel { scale: 1; }
.cursor-badge.is-live {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* ---------- 自定义指针：档案准星 ---------- */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 31;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  color: var(--s-paper);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, color .18s ease, scale .25s cubic-bezier(.2, .8, .2, 1);
  filter:
    drop-shadow(0 1px 0 rgba(11, 10, 8, .85))
    drop-shadow(0 0 2px rgba(11, 10, 8, .6));
  will-change: translate;
}
.cursor.is-live { opacity: 1; }
.cursor__ring {
  position: absolute;
  inset: 0;
  rotate: var(--spin, 0deg);
  transition: rotate .4s cubic-bezier(.2, .7, .2, 1), inset .25s ease;
}
.cursor__ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.cursor__ring::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .45;
}
.cursor__ring i {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 2px;
  height: 10px;
  margin-left: -1px;
  background: currentColor;
  transform-origin: 50% 29px;
}
.cursor__ring i:nth-child(2) { rotate: 90deg; }
.cursor__ring i:nth-child(3) { rotate: 180deg; }
.cursor__ring i:nth-child(4) { rotate: 270deg; }
.cursor__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--s-red);
  box-shadow:
    0 0 0 2px var(--s-paper),
    0 0 0 3px rgba(11, 10, 8, .55);
}
.cursor__label {
  position: absolute;
  left: 56px;
  top: 50%;
  translate: 0 -50%;
  padding: 3px 6px 2px;
  font-family: var(--s-mono);
  font-size: 7px;
  letter-spacing: .22em;
  line-height: 1;
  white-space: nowrap;
  color: var(--s-paper);
  background: var(--s-ink);
  border: 1px solid var(--s-red);
  box-shadow: 2px 2px 0 rgba(11, 10, 8, .45);
  opacity: 0;
  transition: opacity .18s ease, translate .25s ease;
}
.cursor.is-hot {
  color: var(--s-red);
  scale: 1.28;
}
.cursor.is-hot .cursor__dot {
  background: var(--s-paper);
  box-shadow:
    0 0 0 2px var(--s-red),
    0 0 0 3px rgba(11, 10, 8, .5);
}
.cursor.is-hot .cursor__label {
  opacity: 1;
  translate: 0 -50%;
  color: var(--s-ink);
  background: var(--s-paper);
  border-color: var(--s-ink);
}
.cursor.is-down { scale: .8; }
.cursor.is-down .cursor__ring::before { inset: 8px; }
.cursor.is-scrolling .cursor__ring i { background: var(--s-red); }
.cursor.is-scrolling .cursor__ring {
  rotate: calc(var(--spin, 0deg) + var(--scrollSpin, 0deg));
}
body.badge-live .cursor,
body.room-open .cursor { opacity: 0; }

@media (pointer: fine) {
  body.has-cursor .story,
  body.has-cursor .story * { cursor: none !important; }
}
@media (pointer: coarse) {
  .cursor { display: none; }
}
@media (pointer: coarse) {
  .cursor-badge { display: none; }
}
body.badge-live .finale,
body.badge-live .finale * { cursor: none !important; }

/* ---------- 画框 / 扫描帘 / 扫描线 ---------- */

.edge {
  position: fixed;
  inset: 10px;
  z-index: 15;
  pointer-events: none;
  border: 1px solid rgba(241, 233, 213, .14);
  mix-blend-mode: difference;
}
.edge::before,
.edge::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(241, 233, 213, .5);
}
.edge::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.edge::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.wipe {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  pointer-events: none;
  visibility: hidden;
}
.wipe i {
  display: block;
  flex: 1;
  background: linear-gradient(180deg, var(--s-ink) 94%, var(--s-red) 94%);
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.wipe.is-on { visibility: visible; }
.wipe.is-on i {
  animation: stripWipe .78s cubic-bezier(.76, 0, .24, 1) both;
}
@keyframes stripWipe {
  0% { transform: scaleY(0); transform-origin: 50% 0; }
  42%, 56% { transform: scaleY(1); transform-origin: 50% 0; }
  57% { transform-origin: 50% 100%; }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px);
  animation: scanShift 9s linear infinite;
}
@keyframes scanShift {
  to { background-position: 0 3px; }
}

/* ---------- 声音 ---------- */

.sound {
  position: fixed;
  left: clamp(12px, 2.4vw, 28px);
  bottom: 56px;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  background: var(--s-paper);
  color: var(--s-ink);
  border: 1px solid var(--s-ink);
  font-family: var(--s-mono);
  font-size: 7.5px;
  letter-spacing: .18em;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .3);
  transition: background .2s, color .2s;
}
.story__top .sound {
  position: static;
  left: auto;
  bottom: auto;
  margin-left: 2px;
  flex: 0 0 auto;
  background: none;
  color: var(--s-paper);
  border-color: rgba(241, 233, 213, .4);
  box-shadow: none;
}
.sound:hover { background: var(--s-red); color: var(--s-paper); border-color: var(--s-red); }
.story__top .sound:hover { background: var(--s-red); border-color: var(--s-red); }
.sound__short { display: none; }
.sound__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.sound__bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--s-red);
}
.sound:hover .sound__bars i { background: var(--s-paper); }
.sound.is-on .sound__bars i { animation: soundBar .9s ease-in-out infinite alternate; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: .16s; }
.sound.is-on .sound__bars i:nth-child(3) { animation-delay: .32s; }
.sound.is-on .sound__bars i:nth-child(4) { animation-delay: .48s; }
@keyframes soundBar {
  from { height: 3px; }
  to { height: 11px; }
}
.sound:not(.is-on) { animation: soundNudge 2.8s ease-in-out infinite; }
@keyframes soundNudge {
  0%, 100% { box-shadow: 4px 4px 0 rgba(0, 0, 0, .3); }
  50% { box-shadow: 4px 4px 0 rgba(0, 0, 0, .3), 0 0 0 3px rgba(200, 16, 24, .22); }
}
.story__top .sound:not(.is-on) { animation: none; }

/* ---------- 转场闪光 ---------- */

.room-flash {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 52%, #fffaf0 0%, #f1c9bd 16%, #c81018 46%, #4c0407 76%, #0a0505 100%);
}
body.is-opening .room-flash {
  animation: flashOpen 1.05s ease-out forwards;
}
@keyframes flashOpen {
  0% { opacity: 0; }
  14% { opacity: 1; }
  48% { opacity: .62; }
  100% { opacity: 0; }
}

/* ---------- 箱子内部 ---------- */

.room {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.035);
  transition:
    opacity .9s ease,
    transform 1.15s cubic-bezier(.2, .72, .2, 1),
    visibility 0s linear .9s;
}
body.is-opening .room {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: .3s, .3s, 0s;
}
body.room-open .room {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.back-story {
  position: fixed;
  left: 26px;
  bottom: 56px;
  z-index: 45;
  padding: 8px 12px;
  background: rgba(10, 8, 8, .82);
  border: 1px solid rgba(240, 232, 214, .32);
  color: #e8dfcb;
  font-family: var(--s-mono);
  font-size: 9px;
  letter-spacing: .14em;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.back-story:hover {
  color: #fff;
  border-color: var(--s-red);
  background: var(--s-red);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .hero__content { max-width: 62vw; }
  .open-panel { width: min(300px, 30vw); padding: 18px 18px 20px; }
  .hold-btn { width: 98px; }
  .act__head { max-width: 64vw; }
  .finale__head { max-width: 58vw; }
}

@media (max-width: 900px) {
  .story { --header-h: 52px; }
  .story__top {
    gap: 10px;
    padding: 0 13px;
  }
  .story__logo-script { font-size: 22px; }
  .story__logo-sub { font-size: 6px; letter-spacing: .22em; }
  .story__issue { display: none; }
  .nav-btn { font-size: 7.5px; gap: 5px; }
  .nav-btn__cn { font-size: 7.5px; }
  .story__progress { right: 10px; gap: 10px; }

  .layer--cols { display: block; }
  .art--arch { display: none; }
  .art--arch-big { width: 190%; left: -45%; bottom: -38%; opacity: .5; }

  .display { font-size: clamp(54px, 14vw, 120px); }
  .hero__content { left: 20px; right: 20px; bottom: 9vh; max-width: none; }
  .hero__lede { font-size: 12px; }
  .art--walker { width: 46vw; left: 64%; bottom: 16%; }
  .art--peek { display: none; }
  .portal--hero { width: min(58vh, 480px); left: 62%; }
  .hero__cue { margin-top: 18px; }

  .act__head,
  .act__head--right,
  .act__head--left,
  .finale__head,
  .act--watcher .act__head {
    left: 20px;
    right: 20px;
    max-width: none;
    top: 64px;
    bottom: auto;
  }
  .act__head .display,
  .act__head--right .display,
  .act--watcher .act__head .display,
  .finale__head .display { font-size: clamp(50px, 12.6vw, 110px); }
  .act__cn { font-size: 11.5px; max-width: 30em; }
  .note { width: min(300px, 64vw); }

  .eye-panel {
    left: 50%;
    right: auto;
    top: 48%;
    bottom: auto;
    width: 84vw;
    height: clamp(210px, 25vh, 280px);
    transform: translate(-50%, -50%) rotate(-1.2deg);
    box-shadow: 0 0 0 8px rgba(241, 233, 213, .06), 16px 22px 50px rgba(10, 9, 8, .28);
  }
  .art--follower-big { width: 42vw; bottom: -14%; }
  .act--watcher .note { bottom: 58px; left: 20px; }
  .col { width: 10vw; }

  .portal--grip { width: min(44vh, 380px); left: 68%; top: 34%; }
  .art--hand { width: 80vw; right: -14%; bottom: -8%; }
  .art--case-grip { width: 48vw; right: -4%; bottom: -18%; }
  .act--grip .note { bottom: 58px; left: 20px; }

  .art--case { width: 36vw; left: 50%; bottom: 12%; }
  .halo { width: min(46vh, 420px); left: 50%; bottom: 8%; }
  .floor { height: 20%; }
  .open-panel { width: min(300px, 38vw); right: 18px; bottom: 7vh; }
  .art--follower-final { left: 76%; bottom: 30%; }
}

@media (max-width: 680px) {
  .story__progress { display: none; }
  .nav-btn__cn { display: none; }
  .nav-btn { padding: 7px 0 6px; }
  .story__logo-script { font-size: 20px; }
  .story__logo-sub { display: none; }
  .sound { padding: 7px 8px; gap: 6px; }
  .story__top .sound { padding: 6px 7px; }
  .sound__text { display: none; }
  .sound__short { display: inline; font-size: 6.5px; letter-spacing: .16em; }

  .stage__field::before { inset: 9px; }
  .stage__no { display: none; }
  .hero .stage__no {
    display: block;
    top: 2vh;
    right: -3vw;
    font-size: 44vw;
    opacity: .14;
  }
  .display { font-size: clamp(56px, 17vw, 92px); line-height: .86; }
  .micro { font-size: 7px; letter-spacing: .24em; }
  .hero__content { bottom: 7vh; }
  .hero__lede { font-size: 11.5px; line-height: 2; letter-spacing: .1em; }
  .hero__cue { font-size: 6.5px; margin-top: 14px; }
  .hero__cue i { height: 18px; }
  .portal--hero { width: 64vw; left: 64%; top: 44%; }
  .art--walker { width: 52vw; left: 64%; bottom: 22%; }

  .act__head,
  .act__head--right,
  .act__head--left,
  .finale__head,
  .act--watcher .act__head { top: 54px; }
  .act__head .display,
  .act__head--right .display,
  .act--watcher .act__head .display,
  .finale__head .display { font-size: clamp(46px, 15.4vw, 86px); }
  .act__cn { font-size: 11px; line-height: 2; letter-spacing: .12em; }

  .eye-panel {
    top: 57%;
    width: 94vw;
    height: 28vh;
    min-height: 188px;
    transform: translate(-50%, -50%) rotate(-1deg);
    box-shadow: 0 0 0 6px rgba(241, 233, 213, .06), 12px 18px 34px rgba(10, 9, 8, .3);
  }
  .eye-panel__meta--a { font-size: 6px; }
  .eye-panel__meta--b { display: none; }
  .eye-barcode { width: 54px; top: 10px; right: 12px; }
  .eye-rec { left: 12px; bottom: 10px; font-size: 6px; }
  .art--follower-big { width: 48vw; bottom: -12%; }
  .act--watcher .note,
  .act--grip .note {
    left: 14px;
    right: 14px;
    bottom: 50px;
    width: auto;
    transform: none;
    padding: 11px 13px 22px;
  }
  .note p { font-size: 11px; }

  .art--hand { width: 122vw; right: -34%; bottom: -4%; }
  .art--case-grip { width: 64vw; right: -8%; bottom: -14%; }
  .portal--grip { width: 58vw; left: 70%; top: 56%; }
  .act--watcher .art--follower-big { display: none; }

  .art--case { width: 46vw; left: 50%; bottom: 34%; }
  .halo { width: 62vw; left: 50%; bottom: 30%; }
  .floor { height: 28%; }
  .art--follower-final { display: none; }

  .open-panel {
    left: 12px;
    right: 12px;
    bottom: 44px;
    width: auto;
    padding: 15px 15px 17px;
    box-shadow: 8px 8px 0 rgba(11, 10, 8, .22);
    transform: none;
  }
  .open-panel__note { margin: 8px 0 14px; font-size: 11.5px; line-height: 1.9; }
  .open-panel__barcode { display: none; }
  .finale__hold { flex-direction: row; align-items: center; gap: 16px; }
  .hold-btn { width: 82px; flex: 0 0 auto; }
  .finale__fine { font-size: 6.5px; white-space: normal; }
  .edge { inset: 6px; }

  .city, .archive-wall { opacity: .6; }
  .skyline { opacity: .1; }
  .posters, .shelf { display: none; }
  .lamp { scale: .62; transform-origin: 50% 0; }
  .lamp--watcher { right: 8%; }
  .lamp--finale { left: 6%; }
  .scrap { display: none; }
  .reel { width: 28vw; opacity: .34; }
  .reel--r { width: 20vw; }
  .tape-ribbon { opacity: .5; }
  .tape-stack { width: 36vw; left: 2%; bottom: 4%; opacity: .62; }
  .fg--bar { width: 18px; }
  .fg--bar::before { height: 3.4%; }
  .fg--rail { display: none; }
  .fg--hang { display: none; }
  .fg--curtain { height: 22vh; }
  .fg--torn { height: 3.4vh; }
  .fg--post { width: 62px; height: 66%; }
  .fg--post::after { width: 64px; height: 34px; font-size: 7px; padding-bottom: 5px; }
  .fg--chain { left: 2%; height: 26%; width: 24px; }
  .fg--tape-hang { display: none; }
  .fg--reel-edge { width: 64vw; right: -22%; top: -15%; border-width: 22px; }
  .fg--scraps i:nth-child(2),
  .fg--scraps i:nth-child(4) { display: none; }
  .cursor__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scanlines,
  .hero__cue i,
  .eye-glitch,
  .eye-scan,
  .rain,
  .lamp,
  .scrap,
  .reel,
  .fg--chain,
  .fg--tape-hang,
  .fg--scraps i,
  .portal::after,
  .art--walker,
  .stage__field::after { animation: none !important; transition: none !important; }
  .display > span,
  [data-reveal] .micro,
  [data-reveal] .act__cn { clip-path: none !important; transform: none !important; transition: none !important; }
}
