/* ============================================================
   代码之下 — 合同 / 黑暗 / 柜台 / 修电脑 / Win98 / 打印 / 结束
   ============================================================ */

/* ============================================================
   3. 合同场景
   ============================================================ */
#screen-contract { background: #000; }
.ct-scene { position: absolute; inset: 0; overflow: hidden; background: #000; }
.ct-rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; }

/* --- 机械化欢迎 --- */
.ct-voice {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: #000; opacity: 0; pointer-events: none;
  transition: opacity .8s;
}
.ct-voice.on { opacity: 1; }
.voice-line {
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 40px);
  letter-spacing: .42em; text-indent: .42em; color: #d9efe4;
  text-shadow: 0 0 24px rgba(53,255,139,.55), 0 0 70px rgba(53,255,139,.25);
  white-space: nowrap;
}
.voice-line .vch {
  display: inline-block; opacity: 0;
  animation: vchIn .5s ease forwards;
  filter: blur(3px);
}
@keyframes vchIn { to { opacity: 1; filter: blur(0); } }

/* --- 房间 --- */
.ct-room { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.ct-room.on { opacity: 1; }
.ct-farwall {
  position: absolute; inset: 0 0 34% 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 100%, rgba(30,60,45,.5), transparent 70%),
    linear-gradient(180deg, #02040300, #040806 60%, #020403);
}
.ct-farwall::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(53,255,139,.045) 0 1px, transparent 1px 46px);
}

.ct-desk {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(880px, 88vw); height: 46%;
}
.desk-top {
  position: absolute; left: 0; right: 0; top: 0; height: 21%;
  background: linear-gradient(180deg, #241a12, #170f0a);
  box-shadow: 0 -2px 0 rgba(120,200,160,.12), inset 0 2px 14px rgba(0,0,0,.8);
  transform: perspective(700px) rotateX(58deg); transform-origin: bottom;
}
.desk-front {
  position: absolute; left: 0; right: 0; top: 20%; bottom: 0;
  background: linear-gradient(180deg, #120c08, #0a0705 60%, #050302);
  border-top: 1px solid rgba(120,200,160,.1);
}
.desk-lamp {
  position: absolute; left: 50%; top: -8%; width: 380px; height: 300px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(200,255,225,.14), transparent 66%);
  pointer-events: none;
}

.contract-paper {
  position: absolute; left: 50%; top: 8%; transform: translateX(-50%) rotate(-1.4deg) scale(.9);
  width: 300px; height: 214px;
  background: linear-gradient(170deg, #f5f0e2, #ded5c0);
  box-shadow: 0 16px 40px rgba(0,0,0,.85), inset 0 0 40px rgba(150,130,90,.25);
  padding: 16px 18px; opacity: 0;
  transition: opacity .5s, transform .5s;
}
.contract-paper.on { opacity: 1; transform: translateX(-50%) rotate(-1.4deg) scale(1); }
.cp-head { font-family: var(--serif); font-size: 11px; letter-spacing: .3em; text-align: center; color: #2c2418; margin-bottom: 14px; }
.cp-line { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 10px; color: #3a3226; }
.cp-line span { width: 30px; flex: 0 0 30px; }
.cp-line i { flex: 1; height: 1px; background: #9a8f78; display: block; }
.cp-line .cp-print { height: 12px; background: none; border-bottom: 1px solid #9a8f78; }
.cp-foot { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 8px; letter-spacing: .18em; color: #8a7f68; }

/* --- 人影 --- */
.ct-figure {
  position: absolute; left: 50%; bottom: 38%;
  transform: translateX(-50%) scale(.4); opacity: 0;
  width: 70px; height: 150px;
  transition: opacity .3s, transform .3s;
}
.ct-figure.on { opacity: 1; transform: translateX(-50%) scale(1); }
.fig-head {
  width: 42px; height: 52px; margin: 0 auto;
  background: radial-gradient(ellipse at 50% 40%, #0d1210, #000);
  border-radius: 46% 46% 40% 40%;
  box-shadow: 0 0 26px rgba(0,0,0,.9);
}
.fig-body {
  width: 70px; height: 98px; margin-top: -6px;
  background: linear-gradient(180deg, #0a0f0d, #000);
  border-radius: 34% 34% 8% 8%;
}

/* 近景：瞬移后 */
.ct-figure-near {
  position: absolute; inset: 0; z-index: 15;
  display: none; align-items: center; justify-content: center;
  pointer-events: none;
}
.ct-figure-near.on { display: flex; }
.fig-near-head {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  width: min(38vw, 320px); aspect-ratio: 4/5;
  background: radial-gradient(ellipse at 50% 34%, #131a16 0%, #050806 55%, #000 100%);
  border-radius: 48% 48% 42% 42%;
  box-shadow: 0 0 120px 40px rgba(0,0,0,.95);
  filter: blur(.6px);
}
.fig-near-body {
  position: absolute; bottom: -10%; left: 50%; transform: translateX(-50%);
  width: min(62vw, 560px); height: 62%;
  background: linear-gradient(180deg, #060a08 0%, #000 70%);
  border-radius: 42% 42% 0 0;
  box-shadow: 0 -40px 90px rgba(0,0,0,.9);
}
/* 头身分离瞬间 */
.ct-figure-near.sep .fig-near-head { animation: headSep .42s ease-out both; }
@keyframes headSep {
  0% { transform: translate(-50%, 0) rotate(0); }
  30% { transform: translate(-58%, -9%) rotate(-9deg); }
  60% { transform: translate(-44%, 6%) rotate(6deg); }
  100% { transform: translate(-50%, 0) rotate(0); }
}
.ct-figure-near.sep .fig-near-body { animation: bodySep .42s ease-out both; }
@keyframes bodySep {
  0% { transform: translate(-50%, 0); }
  35% { transform: translate(-42%, 4%) scaleY(1.03); }
  100% { transform: translate(-50%, 0); }
}

.ct-hint {
  position: absolute; left: 0; right: 0; bottom: 7%; text-align: center;
  font-family: var(--serif); font-size: 13.5px; letter-spacing: .2em; color: #7fa593;
  opacity: 0; transition: opacity .8s; z-index: 18;
}
.ct-hint.on { opacity: 1; }

/* --- 合同表单 --- */
.form-wrap {
  position: absolute; inset: 0; z-index: 30; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.82); backdrop-filter: blur(2px);
}
.form-wrap.on { display: flex; }

.contract-doc {
  position: relative;
  width: min(620px, 90vw); max-height: 88vh; overflow: auto;
  background: linear-gradient(168deg, #f7f2e4 0%, #e8dfc9 55%, #ded3ba 100%);
  padding: 40px 46px 34px;
  box-shadow: 0 30px 90px rgba(0,0,0,.95), inset 0 0 90px rgba(160,140,100,.28);
  font-family: var(--serif); color: #1d1a13;
  animation: docIn .6s cubic-bezier(.2,.9,.2,1) both;
}
@keyframes docIn { from { opacity: 0; transform: translateY(24px) scale(.97) rotate(-.6deg); } to { opacity: 1; transform: none; } }

.doc-title { text-align: center; font-size: 20px; letter-spacing: .34em; text-indent: .34em; margin-bottom: 8px; }
.doc-sub { text-align: center; font-size: 11px; letter-spacing: .3em; color: #8a7f68; margin-bottom: 26px; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th {
  width: 86px; text-align: left; font-weight: 400; font-size: 13px;
  letter-spacing: .2em; padding: 14px 0; border-bottom: 1px solid rgba(90,80,60,.28);
  vertical-align: middle; color: #4a4335;
}
.doc-table td { padding: 14px 0; border-bottom: 1px solid rgba(90,80,60,.28); vertical-align: middle; }
.cell-val { position: relative; }
.doc-input {
  width: 100%; background: transparent; border: 0; outline: 0;
  font-family: var(--serif); font-size: 15px; letter-spacing: .16em;
  color: #17140e; padding: 2px 0;
  border-bottom: 1px dashed rgba(90,80,60,.45);
}
.doc-input::placeholder { color: #b3a992; letter-spacing: .1em; font-size: 13px; }
.sex-pick { display: inline-flex; align-items: center; gap: 5px; margin-right: 26px; cursor: pointer; font-size: 14px; letter-spacing: .1em; }
.sex-pick input { accent-color: #7a2b2b; }

/* 姓名划红 + 三十六 */
.redline {
  position: absolute; left: 0; top: 52%; height: 2px; width: 0;
  background: #b8201c; transform-origin: left; opacity: 0;
  box-shadow: 0 0 6px rgba(184,32,28,.5);
}
.redline.on { animation: drawRed .55s cubic-bezier(.6,.05,.4,1) forwards; }
@keyframes drawRed { 0% { width: 0; opacity: 1; } 100% { width: 78%; opacity: 1; } }
.red-36 {
  position: absolute; right: 0; top: -14px;
  font-family: "KaiTi", "STKaiti", var(--serif); font-size: 26px; color: #b8201c;
  transform: rotate(-9deg) scale(.4); opacity: 0; letter-spacing: .06em;
  text-shadow: 0 0 2px rgba(184,32,28,.4);
}
.red-36.on { animation: stamp36 .45s .35s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes stamp36 { to { transform: rotate(-9deg) scale(1); opacity: 1; } }

/* 性别整行消失 */
.row-sex.gone { animation: rowGone 1.1s forwards; }
@keyframes rowGone {
  0% { opacity: 1; filter: none; }
  30% { opacity: .7; filter: blur(1px) contrast(1.6); }
  55% { opacity: .35; filter: blur(3px); }
  70% { opacity: 1; filter: blur(0); transform: translateX(3px); }
  80% { opacity: .4; filter: blur(5px) invert(.08); }
  100% { opacity: 0; filter: blur(8px); }
}
.row-sex.vanished { opacity: 0; height: 0; padding: 0; overflow: hidden; border: 0; }
.erase-mark {
  position: absolute; right: 8px; top: 50%; width: 0; height: 3px; background: rgba(60,60,60,.5);
  transform: rotate(-2deg); pointer-events: none;
}

.job-flag {
  display: none; margin-left: 10px; font-size: 10.5px; color: #b8201c;
  letter-spacing: .14em; font-family: var(--ui);
}
.job-flag.on { display: inline; animation: flickIn .6s both; }

/* 指纹 */
.fp-box {
  position: relative; width: 66px; height: 66px; display: grid; place-items: center;
  cursor: pointer; border: 1px solid rgba(90,80,60,.4); border-radius: 50%;
  overflow: hidden;
}
.fp-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#7a2b2b 0deg, #7a2b2b 0deg, transparent 0deg);
  opacity: .85; transition: none;
}
.fp-box::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: #e8dfc9;
}
.fp-icon { position: relative; z-index: 2; font-size: 26px; color: rgba(60,50,35,.5); transition: color .3s; }
.fp-box.filled .fp-icon { color: #b8201c; text-shadow: 0 0 14px rgba(184,32,28,.7); }
.fp-tip { position: absolute; bottom: -2px; z-index: 3; font-size: 9px; letter-spacing: .2em; color: #8a7f68; }
.fp-box.filled .fp-tip { display: none; }
.fp-box.pressing { box-shadow: 0 0 0 3px rgba(184,32,28,.16); }

.fp-code {
  display: none; margin-top: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: #8a2b22; line-height: 1.9; word-break: break-all;
}
.fp-code.on { display: block; animation: flickIn .8s both; }

.doc-agree { margin-top: 26px; font-size: 11px; color: #6d6455; letter-spacing: .12em; line-height: 1.9; }
.doc-submit {
  display: block; margin: 22px auto 0; padding: 12px 52px;
  font-family: var(--serif); font-size: 14px; letter-spacing: .5em; text-indent: .5em;
  background: transparent; color: #2a2418; cursor: pointer;
  border: 1px solid rgba(70,60,40,.6); transition: all .3s;
}
.doc-submit:disabled { opacity: .3; cursor: not-allowed; }
.doc-submit:not(:disabled):hover { background: #1d1a13; color: #f0e9d8; letter-spacing: .62em; }

/* 签署完成的定格 */
.contract-doc.signed { filter: saturate(.92); }
.contract-doc.signed .doc-input { border-bottom-color: transparent; pointer-events: none; }

/* ============================================================
   4. 黑暗 20 秒
   ============================================================ */
#screen-dark { background: #000; }
.dark-room { position: absolute; inset: 0; background: #000; cursor: crosshair; }
.dark-hint {
  position: absolute; left: 0; right: 0; bottom: 12%; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .4em; color: #101010;
  transition: color .6s;
}
.dark-room:hover .dark-hint { color: #1e1e1e; }

/* ============================================================
   5. 突脸
   ============================================================ */
#screen-doll { background: #000; }
.doll-stage { position: absolute; inset: 0; animation: dollJump .28s steps(1) 3; }
@keyframes dollJump { 0%,100% { transform: none; } 50% { transform: scale(1.06) translate(1%, -1%); } }
.doll-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: contrast(1.15) saturate(.85) brightness(.92);
  animation: dollZoom .5s cubic-bezier(.2,1,.3,1) both;
}
@keyframes dollZoom { from { transform: scale(1.4); } to { transform: scale(1.02); } }
.doll-noise {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.5) 0 2px, transparent 2px 4px);
  animation: noiseShift .12s infinite steps(2);
  mix-blend-mode: overlay;
}
@keyframes noiseShift { 0% { transform: translateY(0); } 50% { transform: translateY(1px); } 100% { transform: translateY(-1px); } }

/* ============================================================
   6. 柜台场景
   ============================================================ */
#screen-counter { background: #050403; }
.counter-scene {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 42% at 50% 34%, rgba(255,214,150,.13), transparent 72%),
    radial-gradient(ellipse at 50% 100%, #14100c 0%, #070605 60%, #000 100%);
}
.cs-wall {
  position: absolute; inset: 0 0 46% 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,220,170,.028) 0 2px, transparent 2px 78px),
    linear-gradient(180deg, #0a0806, #0f0c09 70%, #0a0806);
}
.cs-wall::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 60% at 50% 20%, rgba(255,230,190,.07), transparent 70%);
}

/* 长椅：露在老人身后的椅背 */
.cs-bench {
  position: absolute; left: 50%; bottom: 24%; transform: translateX(-50%);
  width: min(360px, 26vw); height: 27%;
  background: linear-gradient(180deg, #2c1f15, #160f09 68%, #0b0705);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -14px 60px rgba(0,0,0,.9), inset 0 2px 0 rgba(255,220,170,.06);
  z-index: 2;
}
.cs-bench::before {
  content: ""; position: absolute; inset: 16% 7%;
  background: repeating-linear-gradient(180deg, rgba(255,220,170,.05) 0 2px, transparent 2px 24%);
  border-radius: 4px;
}

.cs-oldman {
  position: absolute; left: 50%; bottom: 23%; transform: translateX(-50%);
  width: min(215px, 16.5vw); z-index: 3;
  filter: drop-shadow(0 -8px 34px rgba(255,200,130,.1));
  animation: oldBreathe 5.5s ease-in-out infinite;
}
@keyframes oldBreathe { 0%,100% { transform: translateX(-50%) translateY(0) scale(1); } 50% { transform: translateX(-50%) translateY(-2px) scale(1.006); } }
.cs-oldman img { width: 100%; display: block; }
.cs-oldman-shadow {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 90%; height: 22px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.85), transparent 70%);
  z-index: -1;
}

/* 前景柜台 */
.cs-counter {
  position: absolute; left: 3%; width: 59%; bottom: 0; height: 34%;
  z-index: 8;
}
.cs-counter-top {
  height: 9%;
  background: linear-gradient(180deg, #523a25, #2b1e14);
  border-top: 1px solid rgba(255,220,170,.18);
  box-shadow: 0 -2px 14px rgba(255,200,130,.05);
}
.cs-counter-face {
  height: 91%;
  background: linear-gradient(180deg, #1a120b, #0a0605 64%, #050303);
  box-shadow: inset 0 26px 70px rgba(0,0,0,.85);
  border-top: 1px solid rgba(0,0,0,.9);
}

/* 物件热区 */
.hotspot { position: absolute; cursor: pointer; z-index: 5; }
.hs-mark {
  position: absolute; inset: -8px; border: 1px solid transparent;
  transition: border-color .25s;
}
.hotspot:hover .hs-mark { border-color: rgba(255,220,160,.5); box-shadow: 0 0 26px rgba(255,200,130,.14) inset; }

/* 柜子 */
.hs-cabinet { left: 4%; bottom: 26%; width: 13%; height: 36%; z-index: 4; }
.cabinet-body {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #2a1e14, #1a120c 60%, #241a12);
  border: 1px solid #3b2a1c;
  box-shadow: inset 0 0 40px rgba(0,0,0,.7), 0 14px 30px rgba(0,0,0,.6);
  display: flex;
}
.cab-door {
  flex: 1; border-right: 1px solid rgba(0,0,0,.6);
  background: repeating-linear-gradient(0deg, rgba(255,220,170,.022) 0 6px, transparent 6px 15px);
}
.cab-door:last-child { border-right: 0; }
.cab-knob {
  position: absolute; left: 50%; top: 48%; width: 8px; height: 8px; margin-left: -4px;
  background: radial-gradient(circle at 30% 30%, #c9a45c, #6b5324);
  border-radius: 50%; box-shadow: 0 0 8px rgba(201,164,92,.4);
}
.hs-cabinet.open .cab-door:first-child { transform-origin: left; transform: perspective(400px) rotateY(-42deg); transition: transform .7s; }

/* 电脑桌 */
.hs-pc { left: 64%; right: 2%; bottom: 6%; height: 58%; z-index: 6; }
.pc-desk-top {
  position: absolute; left: -2%; right: -2%; top: 9%; bottom: 0;
  background: linear-gradient(180deg, #33241a 0%, #221709 5%, #120c08 22%, #080503 100%);
  border-top: 2px solid #43301f;
  box-shadow: inset 0 18px 40px rgba(0,0,0,.5), 0 -6px 30px rgba(0,0,0,.7);
}
.pc-monitor { position: absolute; left: 6%; top: 10%; width: 46%; height: 36%; z-index: 2; }
.pc-screen {
  position: absolute; inset: 0 0 18% 0;
  background: #0b0e0c;
  border: 6px solid #17130f;
  border-radius: 4px;
  box-shadow: inset 0 0 24px rgba(0,0,0,.9), 0 0 0 1px #000;
  overflow: hidden;
}
.pc-screen.on { background: #0a1a12; box-shadow: inset 0 0 40px rgba(53,255,139,.25), 0 0 26px rgba(53,255,139,.28); }
.pc-screen.glitch { animation: scrGlitch .1s steps(2) infinite; }
@keyframes scrGlitch {
  0% { background: #123; filter: contrast(2) hue-rotate(90deg); }
  50% { background: #2a0a0a; filter: invert(.15); }
  100% { background: #0a1a12; }
}
.pc-stand {
  position: absolute; left: 34%; right: 34%; bottom: 4%; height: 14%;
  background: #17130f;
}
.pc-stand::after {
  content: ""; position: absolute; left: -60%; right: -60%; bottom: 0; height: 6px;
  background: #1c1712; border-radius: 3px;
}

.pc-case {
  position: absolute; right: 5%; top: 12%; width: 27%; height: 33%; z-index: 2;
  background: linear-gradient(100deg, #23201c, #14110e 60%, #1c1916);
  border: 1px solid #332c26;
  box-shadow: inset 0 0 30px rgba(0,0,0,.85), 0 10px 26px rgba(0,0,0,.6);
  cursor: pointer; transition: transform .12s;
}
.pc-case:active { transform: translateY(1px); }
.pc-case.hit { animation: caseHit .18s; }
@keyframes caseHit { 0%,100% { transform: none; } 40% { transform: translate(2px,-2px) rotate(.4deg); } }
.case-vent {
  position: absolute; left: 12%; right: 12%; top: 16%; height: 46%;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 7px);
}
.case-led {
  position: absolute; left: 16%; bottom: 10%; width: 6px; height: 6px; border-radius: 50%;
  background: #2a1a1a; box-shadow: none; transition: all .3s;
}
.case-led.on { background: #35ff8b; box-shadow: 0 0 12px rgba(53,255,139,.9); }

.pc-keyboard {
  position: absolute; left: 6%; top: 49%; width: 56%; height: 9.5%; z-index: 3;
  background: linear-gradient(180deg, #2a241e, #16120e);
  border: 1px solid #382f27; border-radius: 3px;
  padding: 3px 4px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.7);
}
.kb-rows { display: flex; flex-direction: column; gap: 2px; height: 100%; }
.kb-row { display: flex; gap: 2px; flex: 1; }
.kb-key {
  flex: 1; background: #362e27; border-radius: 2px;
  font-family: var(--mono); font-size: 5px; color: #5a4e42;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.kb-key.wide { flex: 2.2; }

.cs-dialogue {
  position: absolute; left: 50%; top: 5%; transform: translateX(-50%);
  max-width: min(760px, 84vw); z-index: 12;
  font-family: var(--serif); font-size: 15px; line-height: 2.2; letter-spacing: .12em;
  color: #c9b79c; text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,.95);
  opacity: 0; transition: opacity .8s;
  white-space: pre-line;
}
.cs-dialogue.on { opacity: 1; }
.cs-hint {
  position: absolute; left: 0; right: 0; bottom: 3%; text-align: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: #3a332b;
  z-index: 12;
}

/* ============================================================
   7a. 节奏
   ============================================================ */
#screen-rhythm { background: #020604; }
.rh-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 7vw; }
.rh-head { text-align: center; margin-bottom: 42px; }
.rh-title { font-family: var(--mono); font-size: 13px; letter-spacing: .42em; color: #4e8f72; }
.rh-sub { margin-top: 12px; font-size: 12px; letter-spacing: .18em; color: #61786d; font-family: var(--serif); }

.rh-track {
  position: relative; height: 128px;
  border-top: 1px solid #123526; border-bottom: 1px solid #123526;
  background: linear-gradient(180deg, rgba(53,255,139,.03), transparent, rgba(53,255,139,.03));
  overflow: hidden;
}
.rh-line {
  position: absolute; left: 16%; top: 0; bottom: 0; width: 2px;
  background: #35ff8b; box-shadow: 0 0 18px rgba(53,255,139,.8);
  z-index: 3;
}
.rh-line::after {
  content: ""; position: absolute; left: -5px; top: -4px; width: 12px; height: 12px;
  border: 2px solid #35ff8b; border-radius: 50%; opacity: .5;
}
.rh-hits { position: absolute; inset: 0; }
.rh-note {
  position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; margin-left: -8px;
  border-radius: 50%; border: 2px solid rgba(53,255,139,.55);
  background: rgba(53,255,139,.1);
  transition: none;
}
.rh-note.hit { animation: noteHit .3s forwards; }
@keyframes noteHit {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; border-color: #fff; box-shadow: 0 0 30px #35ff8b; }
}
.rh-note.miss { border-color: #ff4b4b; opacity: .3; }
.rh-cursor {
  position: absolute; left: 16%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.15);
}

.rh-meter { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.rh-combo { font-family: var(--mono); font-size: 15px; color: #4e8f72; letter-spacing: .2em; }
.rh-feedback {
  font-family: var(--serif); font-size: 15px; letter-spacing: .24em; color: #9fd8bb;
  min-height: 24px; transition: all .2s;
}
.rh-feedback.bad { color: #ff5a5a; }
.rh-tip { margin-top: 34px; text-align: center; font-size: 11px; color: #33473c; letter-spacing: .16em; }
.rh-tip kbd {
  font-family: var(--mono); border: 1px solid #2c4034; padding: 2px 8px; color: #5e7d6c;
  font-size: 10px; margin: 0 4px;
}

/* ============================================================
   7b. 撬机箱
   ============================================================ */
#screen-pry { background: #060504; }
.pry-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.pry-head { text-align: center; }
.pry-title { font-family: var(--serif); font-size: 20px; letter-spacing: .44em; text-indent: .44em; color: #c8beb0; }
.pry-sub { margin-top: 12px; font-size: 12px; color: #6d6459; letter-spacing: .16em; }

.pry-case {
  position: relative; width: min(560px, 78vw); aspect-ratio: 4/3;
  background: linear-gradient(150deg, #201d19, #0e0c0a 60%, #191612);
  border: 1px solid #322b24;
  box-shadow: inset 0 0 80px rgba(0,0,0,.9), 0 24px 60px rgba(0,0,0,.8);
  cursor: crosshair;
}
.pry-plate {
  position: absolute; inset: 8%;
  border: 1px solid rgba(255,255,255,.045);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 3px, transparent 3px 12px);
}
.corner {
  position: absolute; width: 62px; height: 62px; cursor: pointer;
  display: grid; place-items: center;
  z-index: 3;
}
.c-tl { left: 4%; top: 4%; } .c-tr { right: 4%; top: 4%; }
.c-br { right: 4%; bottom: 4%; } .c-bl { left: 4%; bottom: 4%; }
.corner-hole {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #4a4238, #0b0a08 70%);
  box-shadow: inset 0 0 8px #000, 0 0 0 1px rgba(255,255,255,.06);
  transition: all .12s;
}
.corner.open .corner-hole { background: radial-gradient(circle at 35% 32%, #7a6a52, #241d15 75%); box-shadow: inset 0 0 12px #000, 0 0 16px rgba(255,190,110,.35); transform: scale(1.28) rotate(18deg); }
.corner-num {
  position: absolute; bottom: -4px; font-family: var(--mono); font-size: 9px;
  color: #4b443b; opacity: 0; transition: opacity .2s;
}
.corner:hover .corner-num { opacity: 1; }
.corner.pried .corner-num { opacity: .8; color: #8a7350; }

.pry-scratch {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(74deg, rgba(255,255,255,.05) 0 1px, transparent 1px 240px);
  transition: opacity .3s; opacity: 0;
}
.pry-scratch.on { opacity: 1; }

.hidden-spot {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  left: 40%; top: 40%; cursor: pointer; opacity: 0; z-index: 4;
}

.pry-foot { display: flex; gap: 30px; align-items: center; font-size: 12px; color: #5e564c; letter-spacing: .14em; }
.pry-count { font-family: var(--mono); font-size: 11px; color: #7c6b52; }

/* 灰尘喷嚏 */
.dust-burst {
  position: absolute; inset: 0; pointer-events: none; z-index: 60;
  background: radial-gradient(circle at 50% 50%, rgba(190,175,150,.5), rgba(140,125,100,.25) 45%, transparent 72%);
  opacity: 0;
}
.dust-burst.on { animation: dustPuff 1.4s ease-out forwards; }
@keyframes dustPuff {
  0% { opacity: 0; transform: scale(.6); }
  18% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* ============================================================
   7c. 密码
   ============================================================ */
#screen-lock { background: #04070a; }
.lock-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 60px; }

.lock-case {
  width: min(600px, 74vw);
  background: linear-gradient(160deg, #1a1e21, #0c0f11);
  border: 1px solid #2b3238;
  box-shadow: 0 30px 80px rgba(0,0,0,.9), inset 0 0 60px rgba(0,0,0,.8);
  padding: 34px 38px 30px;
  position: relative;
}
.lock-title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .36em; color: #46645a;
  text-align: center; margin-bottom: 20px;
}
.lock-display {
  font-family: var(--mono); font-size: 34px; letter-spacing: .5em; text-align: center;
  color: #35ff8b; text-shadow: 0 0 20px rgba(53,255,139,.7);
  background: #05100b; border: 1px solid #163425; padding: 14px 0 14px .5em;
  margin-bottom: 26px; min-height: 66px;
  transition: color .2s;
}
.lock-display.err { color: #ff4b4b; text-shadow: 0 0 20px rgba(255,75,75,.7); animation: shakeX .3s; }
@keyframes shakeX { 0%,100% { transform: none; } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

.lock-keys { display: flex; flex-direction: column; gap: 6px; }
.lk-row { display: flex; gap: 6px; justify-content: center; }
.lk-key {
  width: 46px; height: 44px; flex: 0 0 46px;
  background: linear-gradient(180deg, #23282c, #151a1d);
  border: 1px solid #313a40; border-radius: 3px;
  font-family: var(--mono); font-size: 14px; color: #9db0b8;
  display: grid; place-items: center; cursor: pointer;
  transition: all .12s; position: relative; overflow: hidden;
}
.lk-key:hover { background: linear-gradient(180deg, #2c3438, #1b2125); color: #d5e5eb; }
.lk-key:active { transform: translateY(2px); }
.lk-key.pressed { background: #35ff8b; color: #04200f; border-color: #35ff8b; box-shadow: 0 0 18px rgba(53,255,139,.6); }
.lk-key.wide { flex: 0 0 100px; width: 100px; font-size: 11px; letter-spacing: .1em; }
.lk-key .fp-num {
  position: absolute; top: 2px; right: 4px; font-size: 8px; color: #ff8a3d;
  opacity: 0; transition: opacity .5s; text-shadow: 0 0 8px rgba(255,138,61,.9);
}
.lk-key.uv .fp-num { opacity: 1; }
.lk-key.uv { border-color: rgba(255,138,61,.4); }

.lock-hint { margin-top: 20px; text-align: center; font-size: 11.5px; color: #4a5a63; letter-spacing: .16em; }

.lock-side { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.uv-lamp {
  width: 54px; height: 150px; position: relative; cursor: pointer;
  background: linear-gradient(180deg, #2a2436, #14111c);
  border: 1px solid #3b3450; border-radius: 6px;
  display: grid; place-items: end center; padding-bottom: 12px;
  box-shadow: 0 0 0 rgba(150,80,255,0);
  transition: all .3s;
}
.uv-lamp:not(.got) { opacity: .25; cursor: not-allowed; }
.uv-lamp.got { opacity: 1; box-shadow: 0 0 30px rgba(140,90,255,.35); }
.uv-lamp.active { background: linear-gradient(180deg, #4a3d6b, #1d1730); box-shadow: 0 0 50px rgba(150,90,255,.6); }
.uv-beam {
  position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(180deg, rgba(150,90,255,.28), rgba(90,40,180,.12));
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.uv-lamp.active .uv-beam { opacity: 1; }
.uv-body { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: #7a6a9e; }
.uv-note { font-size: 11px; color: #4d5860; letter-spacing: .1em; max-width: 150px; text-align: center; line-height: 1.8; }

/* ============================================================
   8. Windows 98
   ============================================================ */
#screen-win98 { background: #008080; }
.w98 { position: absolute; inset: 0; }
.w98-desktop {
  position: absolute; inset: 0;
  background: #008080;
  overflow: hidden;
}
.w98-desktop::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px);
}

.w98-icons { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.w98-icon { width: 76px; padding: 4px; text-align: center; cursor: pointer; }
.w98-icon:hover { background: rgba(0,0,128,.28); }
.ico-folder {
  width: 34px; height: 27px; margin: 0 auto 4px;
  background: linear-gradient(180deg, #ffe89a, #e8b32a);
  border: 1px solid #8a6a10; border-radius: 2px; position: relative;
}
.ico-folder::before {
  content: ""; position: absolute; left: 2px; top: -5px; width: 14px; height: 6px;
  background: #ffe89a; border: 1px solid #8a6a10; border-bottom: 0;
}
.ico-bin {
  width: 30px; height: 30px; margin: 0 auto 4px;
  background: linear-gradient(180deg, #d8d8d8, #9a9a9a);
  border: 1px solid #555; border-radius: 2px 2px 4px 4px;
  position: relative;
}
.ico-bin::before {
  content: ""; position: absolute; left: -3px; top: -5px; right: -3px; height: 5px;
  background: #c0c0c0; border: 1px solid #555;
}
.ico-label {
  font-size: 11px; color: #fff; line-height: 1.3;
  text-shadow: 1px 1px 0 #000; word-break: break-all;
}

.w98-win {
  position: absolute; left: 130px; top: 60px; width: min(720px, 70vw); height: min(520px, 72vh);
  background: var(--sys); border: 2px solid;
  border-color: var(--sys-l) #404040 #404040 var(--sys-l);
  box-shadow: 4px 4px 0 rgba(0,0,0,.4);
  display: none; flex-direction: column;
  z-index: 5; font-size: 12px; color: #000;
}
.w98-win.open { display: flex; }
.w98-titlebar {
  flex: 0 0 24px; height: 24px; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, #000080, #1084d0); color: #fff;
  padding: 0 5px; font-weight: 700; cursor: default;
}
.w98-ticon { font-size: 12px; }
.w98-ttitle { flex: 1; font-size: 12px; }
.w98-tbtns { display: flex; gap: 2px; }
.w98-tbtns i {
  width: 18px; height: 16px; background: var(--sys); color: #000; font-style: normal;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  border: 1px solid; border-color: var(--sys-l) #404040 #404040 var(--sys-l); cursor: pointer;
}
.w98-menu {
  flex: 0 0 20px; height: 20px; display: flex; gap: 14px; align-items: center;
  padding: 0 8px; border-bottom: 1px solid #808080; background: var(--sys);
}
.w98-addr {
  flex: 0 0 24px; height: 24px; display: flex; align-items: center;
  padding: 0 8px; background: var(--sys); border-bottom: 1px solid #808080;
  font-size: 11px; color: #333;
}
.w98-content {
  flex: 1; background: #fff; margin: 2px; padding: 12px;
  display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start;
  overflow: auto;
}
.w98-file {
  width: 90px; padding: 6px 4px; text-align: center; cursor: pointer;
  border: 1px dotted transparent;
}
.w98-file:hover { background: #e8eef8; }
.w98-file.sel { background: #000080; color: #fff; }
.w98-file.sel .ico-label2 { color: #fff; }
.ico-pdf {
  width: 34px; height: 40px; margin: 0 auto 5px;
  background: linear-gradient(180deg, #fff, #eee);
  border: 1px solid #888; position: relative;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 8px; font-weight: 700; color: #c00;
}
.ico-pdf::after {
  content: ""; position: absolute; right: -1px; top: -1px;
  border: 7px solid #eee; border-left-color: #999; border-bottom-color: #999;
}
.ico-label2 { font-size: 11px; color: #000; line-height: 1.3; word-break: break-all; }
.w98-status {
  flex: 0 0 20px; height: 20px; display: flex; align-items: center; padding: 0 8px;
  border-top: 1px solid #808080; font-size: 11px; color: #333; background: var(--sys);
}

.w98-taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: var(--sys); border-top: 2px solid var(--sys-l);
  display: flex; align-items: center; padding: 0 3px; gap: 4px; z-index: 60;
  font-size: 11px; color: #000;
}
.w98-start {
  display: flex; align-items: center; gap: 5px; font: inherit; font-weight: 700;
  padding: 3px 10px; background: var(--sys); color: #000; cursor: pointer;
  border: 2px solid; border-color: var(--sys-l) #404040 #404040 var(--sys-l);
}
.w98-tasks { flex: 1; display: flex; gap: 3px; }
.w98-taskchip {
  padding: 3px 10px; background: var(--sys); font-size: 11px; max-width: 160px;
  border: 1px solid; border-color: #404040 var(--sys-l) var(--sys-l) #404040;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w98-tray {
  padding: 3px 8px; border: 1px solid; border-color: #808080 var(--sys-l) var(--sys-l) #808080;
  font-size: 11px; font-family: var(--mono);
}

/* 右键菜单 */
.ctx-menu {
  position: absolute; display: none; z-index: 900;
  background: var(--sys); border: 2px solid;
  border-color: var(--sys-l) #404040 #404040 var(--sys-l);
  padding: 2px; min-width: 132px; box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.ctx-menu.on { display: block; }
.ctx-item { padding: 4px 18px 4px 22px; font-size: 12px; color: #000; cursor: pointer; }
.ctx-item:hover { background: #000080; color: #fff; }
.ctx-sep { height: 2px; margin: 3px 2px; border-top: 1px solid #808080; border-bottom: 1px solid #fff; }
.ctx-dis { color: #888; pointer-events: none; }

/* ============================================================
   9. 打印机
   ============================================================ */
#screen-print { background: #070604; }
.pr-wrap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px;
}
.pr-printer {
  position: relative; width: min(420px, 60vw); aspect-ratio: 5/4;
  background: linear-gradient(160deg, #232323, #101010);
  border: 1px solid #333; border-radius: 6px;
  box-shadow: 0 26px 60px rgba(0,0,0,.85), inset 0 0 60px rgba(0,0,0,.7);
}
.pr-slot {
  position: absolute; left: 12%; right: 12%; top: 22%; height: 10px;
  background: #050505; border-radius: 3px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.9);
}
.pr-paper {
  position: absolute; left: 14%; right: 14%; top: 24%;
  height: 0; overflow: hidden;
  background: #f2eee2;
  box-shadow: 0 10px 30px rgba(0,0,0,.7);
  transition: height 1.6s cubic-bezier(.4,0,.3,1);
  z-index: 3;
}
.pr-paper.out { height: 62%; }
.pr-paper-inner { padding: 14px 16px; color: #111; font-family: var(--serif); }
.pp-title { font-size: 10.5px; letter-spacing: .22em; text-align: center; margin-bottom: 10px; border-bottom: 1px solid #ccc; padding-bottom: 8px; }
.pp-body { font-size: 9px; line-height: 1.85; color: #222; white-space: pre-line; }
.pr-led {
  position: absolute; right: 10%; bottom: 12%; width: 8px; height: 8px; border-radius: 50%;
  background: #2a1a1a;
}
.pr-led.on { background: #35ff8b; box-shadow: 0 0 14px rgba(53,255,139,.9); animation: ledBlink .9s infinite; }
.pr-led.err { background: #ff4b4b; box-shadow: 0 0 14px rgba(255,75,75,.9); }
@keyframes ledBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.pr-status { font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; color: #4a5a50; }
.pr-hint { font-size: 12px; color: #6b6357; letter-spacing: .12em; min-height: 20px; }
.pr-paper.takeable { cursor: pointer; }
.pr-paper.takeable:hover { box-shadow: 0 0 40px rgba(255,240,200,.2), 0 10px 30px rgba(0,0,0,.8); }

/* ============================================================
   10. 结束
   ============================================================ */
#screen-end { background: #000; }
.end-wrap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 40px;
}
.end-text {
  font-family: var(--serif); font-size: clamp(14px, 1.6vw, 18px);
  line-height: 2.4; letter-spacing: .18em; color: #7f8d87; text-align: center;
  white-space: pre-line; max-width: 680px;
}
.end-restart {
  font-family: var(--mono); font-size: 11px; letter-spacing: .4em;
  padding: 11px 34px; background: transparent; color: #3d4b45;
  border: 1px solid #1d2a24; cursor: pointer; transition: all .3s;
  opacity: 0;
}
.end-restart.on { opacity: 1; }
.end-restart:hover { color: #9fd8bb; border-color: #2f5c48; }

/* 响应式 */
@media (max-width: 900px) {
  .mailapp-body { grid-template-columns: 120px 1fr; }
  .mail-list { display: none; }
  .dl-wrap { grid-template-columns: 1fr; gap: 24px; overflow: auto; align-content: start; }
  .dl-cover { max-height: 34vh; aspect-ratio: auto; }
  .lock-wrap { flex-direction: column; gap: 26px; }
  .lock-case { width: 92vw; padding: 22px; }
  .lk-key { width: 34px; height: 34px; flex: 0 0 34px; font-size: 12px; }
  .lk-key.wide { width: 74px; flex: 0 0 74px; }
}

/* ============================================================
   补充：撬棍 / 洋娃娃兜底 / 返回按钮
   ============================================================ */
.pc-crowbar {
  position: absolute; right: -6%; bottom: 11%;
  width: 10px; height: 58%; cursor: pointer; z-index: 6;
  transform: rotate(14deg); transform-origin: bottom center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.9));
  transition: transform .2s, opacity .3s;
}
.pc-crowbar:hover { transform: rotate(14deg) translateY(-3px); }
.pc-crowbar .cb-shaft {
  position: absolute; left: 3px; top: 22%; bottom: 0; width: 4px;
  background: linear-gradient(90deg, #4a3320, #8a6a44 40%, #3a2718);
  border-radius: 2px;
}
.pc-crowbar .cb-hook {
  position: absolute; left: -2px; top: 0; width: 16px; height: 30%;
  border: 4px solid #7a5c3a; border-right-color: transparent; border-bottom-color: transparent;
  border-radius: 10px 10px 0 0; transform: rotate(-18deg);
}
.pc-crowbar.taken { opacity: 0; pointer-events: none; transform: rotate(14deg) translateY(-40px); }

/* 洋娃娃兜底（图片缺失时） */
.doll-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #1a120e, #050403 70%);
}
.df-face {
  position: relative; width: min(52vw, 480px); aspect-ratio: 3/4;
  background: radial-gradient(ellipse at 46% 32%, #efe0cf 0%, #d9c3ae 45%, #9c8270 78%, #4a3a30 100%);
  border-radius: 48% 48% 44% 44%;
  box-shadow: inset -18px -22px 60px rgba(60,40,30,.75), inset 14px 10px 40px rgba(255,240,220,.35),
              0 0 100px rgba(0,0,0,.9);
  animation: dollZoom .5s cubic-bezier(.2,1,.3,1) both;
}
.df-eye {
  position: absolute; top: 38%; width: 21%; height: 15%;
  background: radial-gradient(circle at 42% 38%, #fff 0%, #e8e4dc 40%, #b9b2a6 78%, #6d6659 100%);
  border-radius: 50%; box-shadow: 0 6px 10px rgba(40,25,15,.5), inset 0 -3px 6px rgba(0,0,0,.25);
}
.df-eye.l { left: 14%; } .df-eye.r { right: 14%; }
.df-eye::after {
  content: ""; position: absolute; left: 34%; top: 26%; width: 42%; height: 46%;
  background: radial-gradient(circle at 30% 30%, #4a3a2a, #0a0705 70%);
  border-radius: 50%; box-shadow: 0 0 6px rgba(0,0,0,.6);
}
.df-mouth {
  position: absolute; left: 50%; top: 68%; transform: translateX(-50%);
  width: 26%; height: 7%;
  background: linear-gradient(180deg, #6b2a2a, #2a0d0d);
  border-radius: 0 0 60% 60% / 0 0 100% 100%;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.8);
}
.df-mouth::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: repeating-linear-gradient(90deg, #d9c8b4 0 3px, #8a7562 3px 4px);
}
.df-line { position: absolute; width: 1px; background: rgba(90,60,45,.45); }
.df-line.a { left: 18%; top: 22%; height: 14%; transform: rotate(38deg); box-shadow: 0 0 0 .6px rgba(90,60,45,.25); }
.df-line.b { right: 20%; top: 55%; height: 16%; transform: rotate(-52deg); }
.df-blush {
  position: absolute; width: 18%; height: 9%; top: 56%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(200,90,90,.42), transparent 70%);
}
.df-blush.l { left: 8%; } .df-blush.r { right: 8%; }

/* Lock 返回 */
.lock-back {
  margin-top: 14px; font-size: 11.5px; color: #6a7c86; letter-spacing: .16em;
  cursor: pointer; text-decoration: underline; text-underline-offset: 4px; display: none;
}
.lock-back.on { display: inline-block; }

/* ============================================================
   补充：PDF 查看 / 洋娃娃纸条
   ============================================================ */
.pdfview {
  width: 100%; height: 100%; overflow: auto;
  display: flex; justify-content: center; padding: 10px 0 30px;
  background: #5a5a5a;
}
.pdfpage {
  position: relative;
  width: min(460px, 86%); background: #fbfaf6;
  box-shadow: 0 6px 22px rgba(0,0,0,.55);
  padding: 26px 30px 34px;
  font-family: var(--serif); color: #111;
}
.pdfhead {
  font-size: 11px; letter-spacing: .26em; text-align: center;
  padding-bottom: 10px; border-bottom: 1px solid #ccc; margin-bottom: 14px;
  color: #333;
}
.pdfbody p { font-size: 10.5px; line-height: 2.05; margin-bottom: 3px; white-space: pre-wrap; }
.pdfbody p:nth-child(2), .pdfbody p:nth-child(4) { color: #a11; }
.pdfstamp {
  position: absolute; right: 26px; bottom: 26px;
  font-family: var(--serif); font-size: 13px; letter-spacing: .2em;
  color: rgba(170,30,30,.62); border: 2px solid rgba(170,30,30,.5);
  padding: 5px 10px; transform: rotate(-13deg); border-radius: 2px;
}

/* 洋娃娃与纸条 */
.doll-note {
  position: fixed; inset: 0; z-index: 9600;
  background: rgba(0,0,0,.96);
  display: flex; align-items: center; justify-content: center; gap: 4vw;
  opacity: 0; transition: opacity .6s;
  padding: 4vh 4vw;
}
.doll-note.on { opacity: 1; }
.dn-doll { width: min(34vw, 300px); aspect-ratio: 3/4; overflow: hidden; flex: 0 0 auto; }
.dn-doll img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.2) saturate(.7) brightness(.8); }
.dn-doll.broken {
  background: radial-gradient(ellipse at 46% 32%, #e8d8c6 0%, #b89e89 55%, #4a3a30 100%);
  border-radius: 48% 48% 44% 44%;
  box-shadow: inset -18px -22px 60px rgba(60,40,30,.8), 0 0 80px rgba(0,0,0,.9);
}
.dn-paper {
  width: min(34vw, 320px); aspect-ratio: 1/1.34;
  background: linear-gradient(150deg, #efe9da, #ded4bf);
  box-shadow: 0 20px 60px rgba(0,0,0,.9);
  display: grid; place-items: center; padding: 8%;
  transform: rotate(2.5deg);
}
.dn-text {
  font-family: var(--serif); font-size: clamp(15px, 1.9vw, 22px);
  letter-spacing: .28em; line-height: 2.2; color: #2a2419; text-align: center;
  transition: filter .35s;
}
.dn-text.flip { color: #8a1f1f; letter-spacing: .16em; }

/* ============================================================
   素材融合
   ============================================================ */
.doll-img {
  object-position: 50% 52%;
  filter: contrast(1.12) saturate(.8) brightness(.86);
}
.doll-stage::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 220px; height: 100px; pointer-events: none;
  background: radial-gradient(ellipse 90% 90% at 100% 100%, #000 34%, rgba(0,0,0,.7) 58%, transparent 78%);
}
.cs-oldman img {
  filter: brightness(.88) contrast(1.08) saturate(.86);
  -webkit-mask-image: radial-gradient(ellipse 78% 76% at 50% 56%, #000 52%, rgba(0,0,0,.6) 74%, transparent 94%);
  mask-image: radial-gradient(ellipse 78% 76% at 50% 56%, #000 52%, rgba(0,0,0,.6) 74%, transparent 94%);
}
.dn-doll img { object-position: 50% 44%; }
.dn-doll::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 100px; height: 46px;
  background: radial-gradient(ellipse at 100% 100%, #000 40%, transparent 76%);
}
.dn-doll { position: relative; }

/* 撬棍位置修正（放在机箱左侧桌上） */
.hs-pc .pc-crowbar {
  right: 34%; top: 30%; bottom: auto; height: 30%; width: 8px;
  transform: rotate(-16deg);
}
.hs-pc .pc-crowbar:hover { transform: rotate(-16deg) translateY(-3px); }
.hs-pc .pc-crowbar.taken { transform: rotate(-16deg) translateY(-40px); opacity: 0; }

/* ============================================================
   修订：指纹图标 / 紫光模式 / 撬机箱 / 打印机 / 老人融合
   ============================================================ */
.fp-icon {
  width: 34px; height: 42px; font-size: 0;
  color: rgba(58,48,32,.45);
  transition: color .35s, filter .35s;
}
.fp-box.filled .fp-icon {
  color: #a81c18;
  filter: drop-shadow(0 0 9px rgba(184,32,28,.65));
}

/* 紫光模式 */
.lock-case.uvmode {
  border-color: #4a3a6a;
  box-shadow: 0 30px 80px rgba(0,0,0,.9),
              inset 0 0 80px rgba(90,40,160,.2),
              0 0 110px rgba(120,60,200,.28);
}
.lock-case.uvmode .lk-key {
  background: linear-gradient(180deg, #251d36, #161022);
  border-color: #3d3158; color: #8b7aad;
}
.lock-case.uvmode .lk-key.uv {
  border-color: #b78dff;
  background: linear-gradient(180deg, #31264d, #1b1433);
  box-shadow: 0 0 20px rgba(160,110,255,.5);
  color: #e2d3ff;
}
.lock-case.uvmode .lock-display {
  color: #c9a6ff; background: #0b0616; border-color: #3b2a5c;
  text-shadow: 0 0 22px rgba(160,110,255,.75);
}
.lock-case.uvmode .lock-title { color: #7a63a8; }
.lock-case.uvmode .lock-hint { color: #7d6ea0; }

.lk-key .fp-num {
  top: auto; bottom: 2px; right: 0; left: 0;
  text-align: center; font-size: 10.5px; font-weight: 700;
  color: #ffa22e;
  text-shadow: 0 0 10px rgba(255,140,20,.95), 0 0 22px rgba(255,90,0,.6);
}
.lk-key.uv { padding-bottom: 13px; }

/* 撬机箱提亮 */
#screen-pry { background: radial-gradient(ellipse 70% 60% at 50% 42%, #15110d, #060504 72%); }
.pry-case {
  background: linear-gradient(152deg, #38322a, #1b1814 52%, #2c261f);
  border-color: #4e4539;
  box-shadow: inset 0 0 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.09),
              0 24px 60px rgba(0,0,0,.85);
}
.pry-plate {
  border-color: rgba(255,255,255,.09);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 3px, transparent 3px 12px);
}
.corner-hole {
  width: 26px; height: 26px;
  box-shadow: inset 0 0 10px #000, 0 0 0 1px rgba(255,255,255,.13), 0 1px 3px rgba(0,0,0,.8);
}
.pry-title { color: #d8cdbe; }
.pry-sub { color: #8a7f70; }

/* 打印机提亮 */
#screen-print { background: radial-gradient(ellipse 60% 55% at 50% 44%, #17130f, #060504 72%); }
.pr-printer {
  background: linear-gradient(160deg, #3c3c3c, #1b1b1b 55%, #2a2a2a);
  border-color: #4d4d4d;
  box-shadow: 0 26px 60px rgba(0,0,0,.85), inset 0 2px 0 rgba(255,255,255,.1),
              inset 0 0 60px rgba(0,0,0,.55);
}
.pr-slot { box-shadow: inset 0 3px 8px rgba(0,0,0,.95), 0 -1px 0 rgba(255,255,255,.06); }

/* 老人与场景融合 */
.cs-oldman img {
  filter: brightness(.96) contrast(1.04) saturate(.9);
  -webkit-mask-image: radial-gradient(ellipse 33% 37% at 50% 63%, #000 40%, rgba(0,0,0,.9) 62%, rgba(0,0,0,.45) 80%, transparent 94%);
  mask-image: radial-gradient(ellipse 33% 37% at 50% 63%, #000 40%, rgba(0,0,0,.9) 62%, rgba(0,0,0,.45) 80%, transparent 94%);
}
.cs-counter-face {
  background:
    repeating-linear-gradient(90deg, rgba(255,220,170,.028) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, #1d140d, #0b0706 62%, #050303);
}

/* 老人：压掉室内背景，收紧椭圆遮罩 */
.cs-oldman { width: min(238px, 17.5vw); bottom: 22%; }
.cs-oldman img {
  filter: brightness(.8) contrast(1.3) saturate(.85);
  -webkit-mask-image: radial-gradient(ellipse 30% 33% at 50% 64%, #000 26%, rgba(0,0,0,.92) 50%, rgba(0,0,0,.35) 70%, transparent 84%);
  mask-image: radial-gradient(ellipse 30% 33% at 50% 64%, #000 26%, rgba(0,0,0,.92) 50%, rgba(0,0,0,.35) 70%, transparent 84%);
}
.cs-counter-top {
  background: linear-gradient(180deg, #3f2c1c, #241810);
  border-top-color: rgba(255,220,170,.12);
}

/* 柜台：整体提亮，让可交互物看得见 */
.counter-scene {
  background:
    radial-gradient(ellipse 64% 52% at 50% 30%, rgba(255,214,150,.2), transparent 74%),
    radial-gradient(ellipse at 50% 100%, #191410 0%, #080605 62%, #000 100%);
}
.cs-wall {
  background:
    repeating-linear-gradient(90deg, rgba(255,220,170,.032) 0 2px, transparent 2px 78px),
    linear-gradient(180deg, #0d0a08, #14100c 70%, #0c0908);
}
.pc-screen {
  background: linear-gradient(165deg, #171b18 0%, #0a0d0b 60%);
  box-shadow: inset 0 0 24px rgba(0,0,0,.9), 0 0 0 1px #000, inset 0 2px 6px rgba(180,220,200,.05);
}
.pc-case {
  background: linear-gradient(100deg, #2b2723, #191512 60%, #221e1a);
  border-color: #3b332c;
}
.cabinet-body {
  background: linear-gradient(100deg, #35261a, #201610 60%, #2c2016);
  border-color: #463222;
}
.pc-crowbar .cb-shaft {
  background: linear-gradient(90deg, #3d2a1a, #6f5537 40%, #30200f);
}
.pc-crowbar .cb-hook { border-color: #6b503a; border-right-color: transparent; border-bottom-color: transparent; }

/* 撬机箱：螺丝高光 + 可点提示 */
.corner-hole {
  background: radial-gradient(circle at 34% 30%, #5d5446, #0a0908 72%);
  box-shadow: inset 0 0 8px #000, 0 0 0 1px rgba(255,255,255,.18), 0 1px 4px rgba(0,0,0,.9);
}
.corner:hover .corner-hole { transform: scale(1.14); box-shadow: inset 0 0 8px #000, 0 0 0 1px rgba(255,220,170,.5), 0 0 22px rgba(255,190,110,.35); }
.corner-num {
  position: absolute; bottom: -16px; font-family: var(--mono); font-size: 10.5px;
  color: #c8a06a; opacity: 0; transition: opacity .2s; white-space: nowrap;
  text-shadow: 0 0 10px rgba(0,0,0,.9);
}
.corner.pried .corner-num { opacity: 1; }
.pry-foot { color: #8c8172; }
.pry-count { color: #c8a06a; font-size: 12px; }

/* ---- 场景光源：吊灯与光锥 ---- */
.counter-scene::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 74%; height: 58%;
  transform: translateX(-50%); pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(255,224,175,.1), rgba(255,214,150,.028) 55%, transparent 92%);
  clip-path: polygon(39% 0, 61% 0, 100% 100%, 0 100%);
  filter: blur(16px);
}
.counter-scene::after {
  content: ""; position: absolute; left: 50%; top: -2px;
  width: 46px; height: 10px; transform: translateX(-50%);
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, #4a3a26, #2a1f10);
  box-shadow: 0 6px 26px rgba(255,200,120,.5), 0 0 60px rgba(255,190,110,.28);
  pointer-events: none; z-index: 2;
}

/* ---- 机箱前面板细节 ---- */
.pc-case::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 7%; height: 11%;
  background: linear-gradient(180deg, #40382f, #241e19);
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.7);
}
.pc-case::after {
  content: ""; position: absolute; right: 15%; bottom: 15%;
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #514840, #14110e);
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 0 10px rgba(0,0,0,.8);
}
.case-vent { top: 24%; height: 38%; }

/* ---- 键盘按键提亮 ---- */
.kb-key { background: #453b32; color: #6b5b4c; box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 1px 0 rgba(0,0,0,.7); }

/* ---- 撬机箱盖：风扇位 + 折边 + 磨损 ---- */
.pry-case::before {
  content: ""; position: absolute; inset: 5.5%; pointer-events: none;
  border: 1px solid rgba(0,0,0,.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045), 0 0 0 1px rgba(255,255,255,.025);
}
.pry-plate::before {
  content: ""; position: absolute; left: 50%; top: 36%;
  width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, #1d1a16 0deg 21deg, #0e0c0a 21deg 30deg);
  box-shadow: inset 0 0 0 7px #29241e, inset 0 0 0 8px rgba(255,255,255,.07),
              inset 0 0 34px rgba(0,0,0,.95), 0 2px 10px rgba(0,0,0,.7);
  opacity: .95;
}
.pry-plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 22% 78%, rgba(120,85,50,.16), transparent 26%),
    radial-gradient(circle at 78% 22%, rgba(120,85,50,.12), transparent 22%),
    radial-gradient(circle at 62% 66%, rgba(0,0,0,.35), transparent 30%);
  mix-blend-mode: overlay;
}

/* ---- 节奏关可读性 ---- */
.rh-title { color: #6fb894; }
.rh-sub { color: #83998c; }
.rh-tip { color: #4f675b; }
.rh-tip kbd { color: #7ea391; border-color: #3a5247; }
.rh-combo { color: #62a986; }
.rh-note {
  width: 20px; height: 20px; margin-top: -10px; margin-left: -10px;
  border-color: rgba(53,255,139,.8);
  background: rgba(53,255,139,.15);
  box-shadow: 0 0 16px rgba(53,255,139,.5), inset 0 0 8px rgba(53,255,139,.4);
}
.rh-line { box-shadow: 0 0 26px rgba(53,255,139,.95), 0 0 60px rgba(53,255,139,.4); }
.rh-track {
  border-top-color: #1c4a35; border-bottom-color: #1c4a35;
  background: linear-gradient(180deg, rgba(53,255,139,.05), rgba(53,255,139,.01) 45%, rgba(53,255,139,.05));
}

/* ---- 邮件里的下载链接更醒目 ---- */
.fake-link {
  animation: linkPulse 2.6s ease-in-out infinite;
  font-size: 1.06em;
}
@keyframes linkPulse {
  0%, 100% { background: transparent; }
  50% { background: rgba(255,233,168,.55); }
}

/* ============================================================
   体验优化：密码对照 / 撬角进度 / 节奏退路
   ============================================================ */

/* --- 键位：字母居中，目标值在下，你按出来的值在上 --- */
.lk-key { padding: 0; }
.lk-key .lk-ch { position: relative; z-index: 2; line-height: 1; }
.lk-key .fp-num {
  position: absolute; left: 0; right: 0; bottom: 1px; top: auto;
  text-align: center; font-size: 9.5px; font-weight: 700; line-height: 1.1;
  color: #ffa22e; opacity: 0;
  text-shadow: 0 0 9px rgba(255,140,20,.95);
}
.lk-key .my-num {
  position: absolute; left: 0; right: 0; top: 1px;
  text-align: center; font-size: 9.5px; font-weight: 700; line-height: 1.1;
  color: #4fd39a; opacity: 0; transition: opacity .15s;
  text-shadow: 0 0 9px rgba(60,220,150,.8);
}
.lk-key .my-num:not(:empty) { opacity: 1; }
.lk-key.over { border-color: rgba(255,86,86,.8); box-shadow: inset 0 0 16px rgba(255,60,60,.2); }
.lk-key.over .my-num { color: #ff5b5b; text-shadow: 0 0 10px rgba(255,60,60,.9); }
.lk-key.ok { border-color: rgba(53,255,139,.55); }
.lk-key.ok .my-num { color: #a8ffd0; }

/* 双位数/三位数时目标值再小一点 */
.lk-key.uv { padding: 0; }
.lock-case.uvmode .lk-key .fp-num { font-size: 9.5px; }

/* 位数多时键盘整体收紧一点 */
.lock-keys { margin-top: -4px; }

.lock-hint { line-height: 1.9; padding: 0 8px; }
.lock-display { line-height: 1.5; word-break: break-all; }

/* --- 撬角进度环 --- */
.corner::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  background: conic-gradient(#c8a06a calc(var(--p, 0) * 1%), rgba(255,255,255,.055) 0);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
  pointer-events: none; opacity: .5; transition: opacity .2s;
}
.corner:hover::after, .corner.pried::after { opacity: 1; }
.corner.open::after {
  background: conic-gradient(#35ff8b 100%, #35ff8b 0);
  opacity: .85; filter: drop-shadow(0 0 8px rgba(53,255,139,.5));
}

/* --- 节奏关退路 --- */
.rh-escape {
  margin-top: 26px; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .14em; color: #4b6157; cursor: pointer;
  border-bottom: 1px dashed rgba(75,97,87,.5); padding-bottom: 3px;
  display: none; transition: color .2s;
}
.rh-escape.on { display: inline-block; }
.rh-escape:hover { color: #9fd8bb; }

/* 键位加高，上下两个数字不压边框（仅桌面端，移动端保持紧凑） */
@media (min-width: 720px) {
  .lk-key { height: 54px; }
  .lk-key.wide { height: 40px; }
}
.lk-key .lk-ch { transform: translateY(.5px); }
.lk-key .fp-num,
.lk-key .my-num { font-size: 9px; letter-spacing: .02em; }
.lk-key .fp-num { bottom: 3px; }
.lk-key .my-num { top: 3px; }
.lk-key { overflow: hidden; }
.rh-escape.on { display: block; width: max-content; margin-left: auto; margin-right: auto; }

/* ============================================================
   第二章 · 掌柜 / 抽屉 / 门 / 对话 / 账本 / 胶片 / 天平
   ============================================================ */

/* ---------- 掌柜 · 艾（可点） ---------- */
.cs-npc {
  position: absolute; left: 50%; bottom: 36%; transform: translateX(-50%);
  width: 150px; height: 150px; z-index: 9; cursor: pointer;
  display: grid; place-items: center;
}
.npc-ring {
  position: absolute; inset: 20px 32px 30px; border-radius: 50%;
  border: 1px solid rgba(255, 220, 160, .16);
  box-shadow: inset 0 0 34px rgba(255, 200, 130, .08);
  transition: border-color .3s, box-shadow .3s;
  animation: npcPulse 3.6s ease-in-out infinite;
}
@keyframes npcPulse {
  0%, 100% { opacity: .45; transform: scale(.99); }
  50% { opacity: 1; transform: scale(1.02); }
}
.cs-npc:hover .npc-ring {
  border-color: rgba(255, 220, 160, .6);
  box-shadow: inset 0 0 34px rgba(255, 200, 130, .22), 0 0 26px rgba(255, 200, 130, .12);
}
.npc-tip {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 10.5px; letter-spacing: .26em;
  color: #7d6a4e; white-space: nowrap; text-shadow: 0 2px 10px #000;
  transition: color .25s;
}
.cs-npc:hover .npc-tip { color: #e6cf92; }

/* ---------- 门（第二章显形） ---------- */
.cs-door {
  position: absolute; left: 22%; bottom: 45%; width: 11%; height: 29%;
  z-index: 4; opacity: 0; pointer-events: none; cursor: pointer;
  transition: opacity 1.4s ease;
}
.cs-door.on { opacity: 1; pointer-events: auto; }
.cs-door::before {
  content: ""; position: absolute; inset: -14px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 220, 170, .06), transparent 70%);
}
.dr-frame {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #1b120b, #2a1c12 45%, #140e08);
  border: 1px solid #3a2718;
  box-shadow: inset 0 0 44px rgba(0, 0, 0, .92), 0 10px 30px rgba(0, 0, 0, .7);
}
.dr-panel {
  position: absolute; inset: 7px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 220, 170, .028) 0 2px, transparent 2px 30px),
    linear-gradient(180deg, #20160e, #0d0907);
  border: 1px solid rgba(255, 220, 170, .05);
  transform-origin: left center;
  transition: transform 2.4s cubic-bezier(.2, .8, .2, 1), filter 2s;
}
.dr-seam {
  position: absolute; left: -1px; top: 7px; bottom: 7px; width: 2px;
  background: rgba(255, 220, 170, .1);
  transition: background .8s, box-shadow .8s;
}
.cs-door.open .dr-seam { background: rgba(53, 255, 139, .45); box-shadow: 0 0 16px rgba(53, 255, 139, .55); }
.cs-door.opening .dr-panel { transform: perspective(760px) rotateY(-68deg); filter: brightness(1.25); }
.cs-door.light::after {
  content: ""; position: absolute; inset: -30% -180% -30% 30%; pointer-events: none;
  background: radial-gradient(ellipse at 0% 50%, rgba(53, 255, 139, .3), rgba(53, 255, 139, .05) 40%, transparent 72%);
  animation: doorLight 2s ease-out;
}
@keyframes doorLight { from { opacity: 0; } to { opacity: 1; } }
.dr-tip {
  position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%);
  font-family: var(--serif); font-size: 10px; letter-spacing: .3em; color: #5c4c38;
}

/* ---------- 抽屉 ---------- */
.cs-drawer {
  position: absolute; left: 8.5%; bottom: 1.2%; width: 13%; height: 15%;
  z-index: 9; opacity: 0; pointer-events: none; cursor: pointer;
  transition: opacity .9s ease;
}
.cs-drawer.on { opacity: 1; pointer-events: auto; }
.dw-face {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #2b1e14, #170f0a);
  border: 1px solid #3a2a1c;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, .08), 0 6px 18px rgba(0, 0, 0, .7);
  display: grid; place-items: center;
  transition: border-color .25s, box-shadow .25s;
}
.cs-drawer:hover .dw-face {
  border-color: #6b5334;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, .16), 0 0 26px rgba(255, 200, 130, .14);
}
.dw-handle {
  width: 40%; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #7a5f34, #c9a45c, #7a5f34);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}
.dw-label {
  position: absolute; right: 7px; bottom: 4px;
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: #6b5c48;
}
.dw-gap { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 220, 170, .04); pointer-events: none; }

/* ---------- 状态条 ---------- */
.cs-hud {
  position: absolute; left: 20px; top: 16px; z-index: 13;
  opacity: 0; transition: opacity .8s; font-family: var(--mono);
}
.cs-hud.on { opacity: 1; }
.hud-row { display: flex; gap: 10px; align-items: baseline; font-size: 10px; letter-spacing: .18em; color: #55483a; margin-bottom: 7px; }
.hud-k { width: 58px; }
.hud-v { font-size: 12px; letter-spacing: .1em; color: #c9b79c; text-shadow: 0 0 12px rgba(255, 200, 130, .25); }

/* ---------- 对话面板 ---------- */
.cs-dlg {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%) translateY(20px);
  width: min(940px, 96vw); z-index: 20;
  opacity: 0; pointer-events: none;
  transition: opacity .32s ease, transform .32s ease;
}
.cs-dlg.on { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dlg-panel {
  position: relative; padding: 22px 28px 14px; min-height: 176px; cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 11, 8, .95), rgba(7, 6, 5, .98));
  border: 1px solid #3a2a1c; border-bottom: 0;
  box-shadow: 0 -20px 70px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 220, 170, .08);
}
.dlg-name {
  position: absolute; top: -15px; left: 22px; padding: 3px 15px;
  font-family: var(--serif); font-size: 12px; letter-spacing: .3em;
  background: #1a1209; border: 1px solid #4a3624; color: #e2c894;
}
.dlg-name.me { color: #93bacb; border-color: #2f4650; background: #0b1114; letter-spacing: .3em; }
.dlg-text {
  font-family: var(--serif); font-size: 15px; line-height: 2.05; letter-spacing: .1em;
  color: #cdbda2; min-height: 92px; white-space: pre-line;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}
.dlg-choices { display: none; flex-direction: column; gap: 7px; padding: 4px 0 2px; max-height: 42vh; overflow-y: auto; }
.dlg-choices.on { display: flex; }
.dlg-choice {
  text-align: left; background: transparent; border: 1px solid #3a2a1c;
  color: #c2b096; font-family: var(--serif); font-size: 13.5px; letter-spacing: .08em;
  padding: 9px 14px; cursor: pointer; transition: all .18s;
}
.dlg-choice::before { content: "▸ "; color: #7a6a52; }
.dlg-choice:hover {
  border-color: #8d6f42; color: #f0dcb4;
  background: rgba(255, 200, 130, .06); transform: translateX(3px);
}
.dlg-choice:hover::before { color: #e6cf92; }
.dlg-foot {
  display: flex; justify-content: space-between; margin-top: 4px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: #4a4034;
}
.dlg-caret { animation: caretBob 1.4s ease-in-out infinite; }
@keyframes caretBob { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(2px); } }

/* ============================================================
   账本 · 抽屉锁
   ============================================================ */
#screen-ledger { background: radial-gradient(ellipse 62% 58% at 46% 44%, #1b1511, #060504 76%); }
.lg-wrap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 40px; padding: 4vh 4vw;
}
.lg-book {
  position: relative; display: flex;
  width: min(660px, 60vw); height: min(660px, 86vh);
  background: linear-gradient(180deg, #2a1d12, #1a120b);
  border: 1px solid #4a3320;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .92), inset 0 0 70px rgba(0, 0, 0, .6);
}
.lg-spine {
  width: 15px; flex: none;
  background: linear-gradient(90deg, #0e0905, #3a2618 45%, #0d0906);
  border-right: 1px solid #000;
}
.lg-page {
  flex: 1; padding: 26px 30px; overflow-y: auto;
  background:
    repeating-linear-gradient(180deg, rgba(255, 220, 170, .016) 0 1px, transparent 1px 30px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 200, 130, .07), transparent 62%);
}
.lg-title { font-family: var(--serif); font-size: 21px; letter-spacing: .5em; text-indent: .5em; color: #e5cfa6; text-align: center; }
.lg-sub { text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: #6d5c44; margin: 10px 0 18px; }
.lg-rule {
  font-family: var(--serif); font-size: 11.5px; line-height: 2; color: #8d7a5e;
  border-top: 1px dashed #382818; border-bottom: 1px dashed #382818;
  padding: 12px 2px; margin-bottom: 6px;
}
.lg-row {
  display: grid; grid-template-columns: 62px 1fr 88px; gap: 12px; align-items: center;
  padding: 13px 0; border-bottom: 1px dotted #33251a;
}
.lg-no { font-family: var(--serif); font-size: 12.5px; letter-spacing: .08em; color: #a89070; }
.lg-mem { font-family: var(--serif); font-size: 12.5px; line-height: 1.95; color: #b7a68b; }
.lg-key {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 6px; cursor: pointer; font-family: var(--serif);
  font-size: 12px; letter-spacing: .12em; color: #8a7658;
  background: transparent; border: 1px solid #3d2d20;
  transition: all .2s;
}
.lg-key:hover { border-color: #8d6f42; color: #e8d3ac; }
.lg-key.set { color: var(--kc); border-color: var(--kc); background: rgba(255, 220, 170, .03); }
.lg-key-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; box-shadow: 0 0 9px currentColor; }
.lg-clues { margin-top: 16px; }
.lg-clues-h { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: #5c4c38; margin-bottom: 8px; }
.lg-clue { position: relative; padding-left: 15px; font-family: var(--serif); font-size: 12px; line-height: 2; color: #9e8b6e; }
.lg-clue::before { content: "—"; position: absolute; left: 0; color: #5c4c38; }
.lg-clue.soft { color: #7d6d55; }

.lg-lock { width: min(252px, 26vw); align-self: center; }
.lg-lock-h { font-family: var(--mono); font-size: 10px; letter-spacing: .34em; color: #7a684e; text-align: center; margin-bottom: 16px; }
.lg-slots { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; }
.lg-slot {
  width: 52px; height: 62px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; color: #5c4c38;
  background: linear-gradient(180deg, #1b140e, #0d0907);
  border: 1px solid #3a2a1c; box-shadow: inset 0 0 16px rgba(0, 0, 0, .85);
  transition: transform .4s, color .3s, border-color .3s;
}
.lg-slot.set { box-shadow: inset 0 0 16px rgba(0, 0, 0, .85), 0 0 16px rgba(255, 200, 130, .12); }
.lg-lock.open .lg-slot { transform: translateY(-5px); }
.lg-lock-tip { font-family: var(--serif); font-size: 10.5px; line-height: 1.95; color: #5c4c38; text-align: center; margin-bottom: 16px; }
.lg-msg { min-height: 32px; text-align: center; font-family: var(--serif); font-size: 11.5px; line-height: 1.8; color: #a06a5a; margin-bottom: 12px; }
.lg-msg.good { color: #7fc8a0; }
.lg-btn {
  display: block; width: 100%; padding: 12px; cursor: pointer;
  background: #1c140c; border: 1px solid #4a3624; color: #d9c49a;
  font-family: var(--serif); font-size: 13px; letter-spacing: .32em; text-indent: .32em;
  transition: all .2s;
}
.lg-btn:hover { background: #241a10; border-color: #8d6f42; color: #f5e2bb; }
.lg-btn-ghost { margin-top: 8px; background: transparent; border-color: #2c2118; color: #6d5c44; font-size: 11px; letter-spacing: .18em; }
.lg-hint { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: #4e4234; line-height: 1.9; }

/* ============================================================
   记忆胶片
   ============================================================ */
#screen-film { background: radial-gradient(ellipse 62% 58% at 50% 42%, #13110e, #050404 76%); }
.fm-wrap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 3vh 4vw;
}
.fm-head { text-align: center; margin-bottom: 20px; }
.fm-title { font-family: var(--mono); font-size: 12px; letter-spacing: .4em; color: #907e60; }
.fm-sub { margin-top: 11px; font-family: var(--serif); font-size: 11.5px; letter-spacing: .1em; color: #5f5342; }
.fm-strips { width: min(760px, 94vw); display: flex; flex-direction: column; gap: 7px; }
.fm-strip {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center;
  padding: 11px 16px; cursor: pointer;
  background: linear-gradient(90deg, rgba(31, 25, 18, .92), rgba(15, 11, 8, .92));
  border: 1px solid #2f251b; border-left: 3px solid #3a2c1f;
  transition: all .18s;
}
.fm-strip:hover { border-color: #5a442e; border-left-color: #8d6f42; transform: translateX(2px); }
.fm-strip.sel {
  border-color: #c9a45c; border-left-color: #e6cf92;
  background: linear-gradient(90deg, rgba(58, 44, 26, .96), rgba(22, 16, 10, .96));
  box-shadow: 0 0 26px rgba(255, 200, 130, .13);
}
.fm-no { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #5c4c38; }
.fm-strip.sel .fm-no { color: #e6cf92; }
.fm-tx { font-family: var(--serif); font-size: 13px; line-height: 1.95; letter-spacing: .05em; color: #bcab90; }
.fm-strip.sel .fm-tx { color: #efe0c2; }
.fm-foot {
  width: min(760px, 94vw); margin-top: 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center;
}
.fm-detail { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: #6d5c44; }
.fm-msg { font-family: var(--serif); font-size: 11.5px; color: #8d7a5e; min-height: 18px; }
.fm-msg.bad { color: #a06a5a; }
.fm-msg.good { color: #7fc8a0; }
.fm-btns { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 10px; align-items: center; }
.fm-btn {
  padding: 12px 26px; cursor: pointer; white-space: nowrap;
  background: #1c140c; border: 1px solid #4a3624; color: #d9c49a;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .24em; text-indent: .24em;
  transition: all .2s;
}
.fm-btn:hover { background: #241a10; border-color: #8d6f42; color: #f5e2bb; }
.fm-btn-ghost { background: transparent; border-color: #2c2118; color: #6d5c44; font-size: 11px; letter-spacing: .1em; text-indent: 0; padding: 12px 14px; }

/* ============================================================
   愿望天平
   ============================================================ */
#screen-scale { background: radial-gradient(ellipse 58% 54% at 50% 38%, #181411, #050404 78%); }
.sc-wrap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; padding: 4vh 4vw; overflow-y: auto;
}
.sc-head { text-align: center; margin-bottom: 20px; }
.sc-title { font-family: var(--mono); font-size: 12px; letter-spacing: .4em; color: #907e60; }
.sc-sub { margin-top: 11px; font-family: var(--serif); font-size: 11.5px; letter-spacing: .08em; color: #6d5c44; }
.sc-wishes { display: flex; gap: 14px; width: min(880px, 94vw); margin-bottom: 20px; }
.sc-wish {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px 14px; text-align: left; cursor: pointer;
  background: linear-gradient(180deg, rgba(32, 26, 18, .95), rgba(14, 11, 8, .95));
  border: 1px solid #3a2c1f; color: #c2b096;
  font-family: var(--serif); font-size: 12.5px; line-height: 1.85; letter-spacing: .05em;
  transition: all .22s;
}
.sc-wish:hover:not(:disabled) { border-color: #7a5f3a; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, .65); }
.sc-wish:disabled { cursor: default; opacity: .38; }
.sc-wish.taken { opacity: 1; border-color: #8d6f42; box-shadow: 0 0 34px rgba(255, 200, 130, .13); }
.sc-wish.taken::after {
  content: "已押"; position: absolute; top: 8px; right: 10px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em; color: #c9a45c;
}
.sc-wish.burn { animation: burnOut 1.8s forwards; }
@keyframes burnOut {
  0% { filter: none; }
  55% { filter: brightness(1.9) sepia(.9); transform: scale(.995); }
  100% { filter: brightness(.35) sepia(1); opacity: .12; transform: translateY(8px) scale(.96); }
}
.sc-wish-note { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: #6d5c44; }
.sc-stage { width: min(620px, 94vw); opacity: 0; transition: opacity .7s; }
.sc-stage.on { opacity: 1; }
.sc-beam {
  position: relative; height: 190px; margin-top: 10px;
  transform-origin: 50% 44px;
  transition: transform .55s cubic-bezier(.25, .8, .25, 1);
}
.sc-rod {
  position: absolute; left: 6%; right: 6%; top: 34px; height: 6px; border-radius: 3px;
  background: linear-gradient(180deg, #c9a45c, #6b5324);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.sc-pivot {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-bottom: 20px solid #8d6f42;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .85));
}
.sc-arm { position: absolute; top: 37px; width: 0; height: 0; transition: transform .55s cubic-bezier(.25, .8, .25, 1); }
.sc-arm-l { left: 6%; }
.sc-arm-r { right: 6%; }
.sc-cord {
  position: absolute; left: -1px; top: 0; width: 2px; height: 52px;
  background: linear-gradient(180deg, rgba(220, 200, 160, .65), rgba(140, 120, 90, .25));
}
.sc-pan {
  position: absolute; left: -58px; top: 52px; width: 116px; height: 46px;
  border: 1px solid #7a6444; border-top: 0;
  border-radius: 0 0 58px 58px / 0 0 46px 46px;
  background: linear-gradient(180deg, rgba(160, 130, 80, .22), rgba(40, 30, 20, .55));
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: #d9c49a;
}
.sc-poise { margin: 2px 0 18px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #7a684e; }
.sc-poise.ok { color: #7fc8a0; text-shadow: 0 0 16px rgba(53, 255, 139, .35); }
.sc-stones { display: flex; gap: 10px; justify-content: center; }
.sc-stone {
  width: 64px; height: 64px; cursor: pointer;
  border: 1px solid #3a2c1f; border-radius: 6px;
  background: linear-gradient(160deg, #2a2118, #15100b);
  color: #8d7a5e; font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  transition: all .2s;
}
.sc-stone:hover { border-color: #7a5f3a; color: #e0cba4; }
.sc-stone.on {
  border-color: #c9a45c; color: #f0dcb4; transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(255, 200, 130, .3), inset 0 0 22px rgba(255, 200, 130, .12);
}
.sc-stones-tip { margin-top: 12px; text-align: center; font-family: var(--serif); font-size: 10.5px; letter-spacing: .06em; color: #4e4234; }

/* ---------- 小屏适配 ---------- */
@media (max-width: 900px) {
  .lg-wrap { flex-direction: column; gap: 16px; padding: 3vh 3vw; overflow-y: auto; }
  .lg-book { width: 94vw; height: auto; max-height: none; }
  .lg-page { padding: 18px 16px; overflow: visible; }
  .lg-lock { width: 94vw; }
  .lg-slots { margin-bottom: 10px; }
  .sc-wishes { flex-direction: column; gap: 9px; }
  .sc-wish { font-size: 12px; }
  .dlg-text { font-size: 13.5px; line-height: 1.95; min-height: 76px; }
  .dlg-panel { padding: 18px 16px 12px; min-height: 156px; }
  .cs-npc { width: 110px; height: 116px; bottom: 38%; }
  .cs-drawer { left: 6%; width: 18%; height: 12%; }
  .cs-door { left: 20%; width: 15%; }
  .fm-strip { grid-template-columns: 30px 1fr; gap: 10px; padding: 9px 11px; }
  .fm-tx { font-size: 12px; }
  .fm-foot { grid-template-columns: 1fr; }
  .fm-btns { grid-column: 1; grid-row: auto; justify-content: flex-end; }
  .sc-stone { width: 52px; height: 52px; font-size: 10px; }
  .hud-row { font-size: 9px; }
}

/* ---------- 密码锁：对照进度 ---------- */
.lk-prog {
  margin-top: 12px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .12em; color: #4a5a52; text-align: center; line-height: 1.8;
  transition: color .3s;
}
.lk-prog.done { color: #7fc8a0; text-shadow: 0 0 14px rgba(53, 255, 139, .35); }
.lock-case.uvmode .lk-prog { color: #7d6ea0; }
.lock-case.uvmode .lk-prog.done { color: #9fe0b8; }

/* ---------- 第二章：滚动条 / 选项密度 ---------- */
.dlg-choices { max-height: 46vh; gap: 6px; }
.dlg-choice { padding: 8px 13px; font-size: 13px; }
.dlg-choices::-webkit-scrollbar,
.lg-page::-webkit-scrollbar,
.sc-wrap::-webkit-scrollbar { width: 6px; }
.dlg-choices::-webkit-scrollbar-track,
.lg-page::-webkit-scrollbar-track,
.sc-wrap::-webkit-scrollbar-track { background: rgba(255, 220, 170, .04); }
.dlg-choices::-webkit-scrollbar-thumb,
.lg-page::-webkit-scrollbar-thumb,
.sc-wrap::-webkit-scrollbar-thumb { background: #4a3a26; border-radius: 3px; }
.dlg-choices::-webkit-scrollbar-thumb:hover,
.lg-page::-webkit-scrollbar-thumb:hover,
.sc-wrap::-webkit-scrollbar-thumb:hover { background: #6b5334; }

/* ---------- 第二章：可读性 / 细节修正 ---------- */
.lg-mem { color: #c6b592; }
.lg-clue { color: #ab9673; }
.lg-clue.soft { color: #8a7a62; }
.lg-rule { color: #9c8867; }
.lg-sub { color: #7d6a50; }
.fm-tx { font-size: 13.5px; color: #c9b89a; }
.fm-detail { color: #7d6a50; }

/* 撕掉的三页 */
.lg-gap {
  position: relative; margin: 20px 0 4px; padding: 18px 0;
  text-align: center; font-family: var(--serif);
  font-size: 11px; letter-spacing: .18em; color: #6a5741;
}
.lg-gap::before, .lg-gap::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, #3a2a1c 0 6px, transparent 6px 13px);
}
.lg-gap::before { top: 6px; }
.lg-gap::after { bottom: 6px; }

/* 天平整体居中 */
.sc-wrap { justify-content: center; }
@media (max-width: 900px) { .sc-wrap { justify-content: flex-start; } }

/* 掌柜标签放到柜台面上，看得见 */
.cs-npc .npc-tip { bottom: -20px; color: #9c8461; font-size: 10px; }
.cs-npc .npc-ring { border-color: rgba(255, 220, 160, .26); }

/* 门更靠近柜台，别像挂画 */
.cs-door { bottom: 40%; height: 34%; }
.sc-wishes.gone { opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity 1.4s ease, transform 1.4s ease; }

/* ---------- 天平：一开始就看得见 ---------- */
.sc-stage { opacity: 1; }
.sc-stage.on { opacity: 1; }
.sc-stone:disabled { opacity: .28; cursor: default; transform: none !important; box-shadow: none; }
.sc-stone:disabled:hover { border-color: #3a2c1f; color: #8d7a5e; }

/* ---------- 门：门板细节 ---------- */
.dr-panel::before, .dr-panel::after {
  content: ""; position: absolute; left: 12%; right: 12%; height: 26%;
  border: 1px solid rgba(255, 220, 170, .07);
  background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(255, 220, 170, .02));
}
.dr-panel::before { top: 9%; }
.dr-panel::after { top: 46%; }
.dr-hole {
  right: 9%; top: 50%; width: 9px; height: 9px;
  background: radial-gradient(circle at 32% 30%, #d9b978, #6b5324 70%, #2a1f10);
  box-shadow: inset 0 0 3px #000, 0 0 10px rgba(201, 164, 92, .35);
}

/* ---------- 小屏：溢出与秤盘 ---------- */
@media (max-width: 900px) {
  .lg-wrap { justify-content: flex-start; align-items: center; }
  .lg-book { flex: none; }
  .sc-pan {
    width: 74px; left: -37px; top: 50px;
    border-radius: 0 0 37px 37px / 0 0 34px 34px;
    font-size: 9.5px;
  }
  .sc-arm-l, .sc-rod { left: 10%; }
  .sc-arm-r, .sc-rod { right: 10%; }
  .sc-beam { height: 168px; }
  .sc-cord { height: 50px; }
  .sc-stage { margin-top: 4px; }
}
body.dlging .inventory { opacity: 0 !important; pointer-events: none !important; transition: opacity .25s; }
body.dlging .cs-hint { opacity: 0; }

/* ---------- 账本：贴着内容收边 / 第三十六行 ---------- */
.lg-book { height: auto; max-height: 86vh; }
.lg-row.mine { border-bottom: 0; opacity: .9; }
.lg-row.mine .lg-mem { color: #8a7a62; font-style: italic; }
.lg-key-ro {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 6px; font-family: var(--serif); font-size: 12px;
  letter-spacing: .12em; color: #4e4234;
  border: 1px dashed #33251a;
}

/* 抽屉挪开背包，别被压住 */
.cs-drawer { left: 20%; }
@media (max-width: 900px) { .cs-drawer { left: 38%; width: 16%; height: 11%; } }

/* ============================================================
   第三章 · 店里的东西 / 证物册 / 叫魂
   ============================================================ */

/* ---------- 柜台上的器物 ---------- */
.omen { position: absolute; z-index: 7; cursor: pointer; }
.om-tip {
  position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em;
  color: #3d352b; transition: color .25s; pointer-events: none;
}
.omen:hover .om-tip { color: #c9a45c; }

/* 长明灯 */
.om-lamp { left: 18.5%; bottom: 35%; width: 36px; height: 54px; }
.om-bowl-base {
  position: absolute; left: 0; bottom: 0; width: 36px; height: 17px;
  border-radius: 3px 3px 18px 18px / 3px 3px 13px 13px;
  background: linear-gradient(180deg, #d8b878, #7a5f34 40%, #3f2d18);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .65), 0 0 20px rgba(255, 180, 80, .22);
}
.om-flame {
  position: absolute; left: 50%; bottom: 15px; width: 9px; height: 21px;
  transform: translateX(-50%);
  border-radius: 50% 50% 42% 42% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fff6cc, #ffb340 46%, rgba(255, 120, 20, .12) 72%);
  box-shadow: 0 0 24px rgba(255, 170, 60, .55);
  animation: flameBob 2.1s ease-in-out infinite;
}
@keyframes flameBob {
  0%, 100% { transform: translateX(-50%) scale(1, 1); }
  50% { transform: translateX(-53%) scale(.94, 1.07); }
}
.omen:hover .om-flame { box-shadow: 0 0 38px rgba(255, 195, 95, .8); }

/* 油添过了：灯比原来亮一档，回来也认得出 */
.om-lamp.full .om-flame { width: 10px; height: 24px; box-shadow: 0 0 44px rgba(255, 195, 85, .85); }
.om-lamp.full .om-bowl-base { box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .6), 0 0 34px rgba(255, 190, 80, .42); }
.om-lamp.full::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 120px; height: 120px;
  transform: translateX(-50%); pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 185, 75, .16), rgba(255, 160, 50, .05) 46%, transparent 72%);
}

/* 水碗立筷 */
.om-bowl { left: 26%; bottom: 35.2%; width: 42px; height: 30px; }
.om-water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 21px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, #2f4040, #0c1413);
  border: 1px solid rgba(255, 220, 170, .16);
  box-shadow: inset 0 4px 10px rgba(130, 190, 180, .12);
}
.om-stick {
  position: absolute; left: 50%; bottom: 6px; width: 2px; height: 40px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #cbb28a, #6b5334);
  box-shadow: 0 0 6px rgba(0, 0, 0, .9);
}
.omen:hover .om-stick { box-shadow: 0 0 10px rgba(255, 220, 170, .35); }

/* 一叠纸钱 */
.om-joss { left: 36.5%; bottom: 34.8%; width: 56px; height: 24px; }
.om-paper {
  position: absolute; width: 46px; height: 17px;
  background: linear-gradient(160deg, #d3af68, #8d6f42);
  border: 1px solid #6b5324; opacity: .82;
}
.om-paper::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  transform: translate(-50%, -50%);
  background: #241a10; box-shadow: inset 0 0 3px #000;
}
.om-paper.p1 { left: 0; bottom: 0; transform: rotate(-3.5deg); }
.om-paper.p2 { left: 4px; bottom: 4px; transform: rotate(2deg); }
.om-paper.p3 { left: 8px; bottom: 8px; transform: rotate(-1deg); }
.omen:hover .om-paper { opacity: 1; }

/* 黄历 */
.om-cal { left: 35%; bottom: 47.5%; width: 46px; height: 66px; }
.om-cal-leaf {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #e9ddc2, #c6b492);
  border: 1px solid #a89474;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .85), inset 0 0 22px rgba(120, 90, 40, .28);
  transform: rotate(-1.6deg);
}
.om-cal-leaf::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 30px; height: 1px;
  background: rgba(120, 90, 40, .45);
}
.om-cal-leaf::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 12px; bottom: 8px;
  border: 2px solid rgba(170, 45, 35, .55);
  border-radius: 50% 46% 52% 48% / 44% 52% 46% 56%;
  transform: rotate(-4deg);
}
.om-cal-num {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%);
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 12.5px;
  letter-spacing: .1em; color: #6d2a1e; z-index: 1; opacity: .9;
}
.om-cal .om-tip { bottom: -16px; }

/* 柜台底下 */
.om-under { left: 20.5%; bottom: 5%; width: 104px; height: 46px; z-index: 9; }
.om-under-txt {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em;
  color: #453a2b; border: 1px dashed rgba(255, 220, 170, .1);
  opacity: .45; transition: all .25s;
}
.omen.om-under:hover .om-under-txt { opacity: 1; color: #c9a45c; border-color: rgba(255, 220, 170, .38); }

/* ---------- 状态条：多一行 ---------- */
#hud-lie { }

/* ============================================================
   证物册
   ============================================================ */
#screen-stash { background: radial-gradient(ellipse 60% 56% at 50% 42%, #14110d, #050404 78%); }
.ps-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 4vh 4vw; }
.ps-head { text-align: center; margin-bottom: 18px; }
.ps-title { font-family: var(--mono); font-size: 12px; letter-spacing: .44em; color: #907e60; }
.ps-sub { margin-top: 10px; font-family: var(--serif); font-size: 11.5px; letter-spacing: .08em; color: #6d5c44; }
.ps-count { margin-left: 14px; font-family: var(--mono); font-size: 10.5px; color: #a89070; }
.ps-list { width: min(880px, 94vw); flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 6px; }
.ps-item {
  padding: 14px 18px; border: 1px solid #2f251b; border-left: 3px solid #3a2c1f;
  background: linear-gradient(180deg, rgba(31, 25, 18, .94), rgba(14, 11, 8, .94));
}
.ps-item.done { border-left-color: #5b8f74; }
.ps-line { display: flex; align-items: baseline; gap: 12px; }
.ps-ic {
  width: 22px; height: 22px; display: grid; place-items: center; flex: none;
  font-family: var(--serif); font-size: 11px; color: #c9a45c; border: 1px solid #4a3624;
}
.ps-nm { font-family: var(--serif); font-size: 14px; letter-spacing: .14em; color: #e0cba4; }
.ps-where { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: #5c4c38; }
.ps-tx { margin-top: 9px; font-family: var(--serif); font-size: 12.5px; line-height: 1.95; color: #ab9673; white-space: pre-line; }
.ps-claim { margin-top: 10px; padding-top: 9px; border-top: 1px dashed #33251a; font-family: var(--serif); font-size: 12.5px; line-height: 1.9; color: #8d7a5e; }
.ps-q { color: #a06a5a; margin-right: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; }
.ps-st { margin-top: 7px; font-family: var(--serif); font-size: 11.5px; line-height: 1.85; color: #7d6d55; }
.ps-st.ok { color: #7fc8a0; }
.ps-empty { font-family: var(--serif); font-size: 12.5px; line-height: 2; color: #6d5c44; text-align: center; padding: 46px 10px; }
.ps-foot { margin-top: 16px; display: flex; align-items: center; gap: 22px; }
.ps-btn {
  padding: 11px 34px; cursor: pointer;
  background: #1c140c; border: 1px solid #4a3624; color: #d9c49a;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .3em; text-indent: .3em;
  transition: all .2s;
}
.ps-btn:hover { background: #241a10; border-color: #8d6f42; color: #f5e2bb; }
.ps-note { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: #4e4234; }

/* ============================================================
   叫魂
   ============================================================ */
#screen-soul { background: #030303; }
.sl-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4vh 5vw; }
.sl-head { text-align: center; margin-bottom: 18px; }
.sl-title { font-family: var(--mono); font-size: 12px; letter-spacing: .46em; color: #7a6a52; }
.sl-sub { margin-top: 9px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: #4e4234; }
.sl-door {
  position: relative; width: min(210px, 46vw); height: 148px;
  background: linear-gradient(180deg, #241a12, #0c0806);
  border: 1px solid #2f251b;
  box-shadow: inset 0 0 60px #000, 0 20px 50px rgba(0, 0, 0, .8);
}
.sl-gap {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 240, 200, .04), rgba(255, 240, 200, .2) 50%, rgba(255, 240, 200, .04));
  box-shadow: 0 0 34px rgba(255, 220, 160, .16);
  transition: width 1.6s ease, background 1.6s, box-shadow 1.6s;
}
.sl-gap.wide { width: 24px; background: linear-gradient(180deg, rgba(255, 240, 200, .1), rgba(255, 240, 200, .34) 50%, rgba(255, 240, 200, .1)); }
.sl-gap.wrong { animation: gapWrong .8s; }
@keyframes gapWrong {
  0% { box-shadow: 0 0 34px rgba(255, 220, 160, .16); }
  40% { box-shadow: 0 0 46px rgba(190, 60, 40, .55); }
  100% { box-shadow: 0 0 34px rgba(255, 220, 160, .16); }
}
.sl-shadow { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #000; transform: translateX(-50%); }
.sl-text {
  margin-top: 22px; max-width: min(720px, 88vw); min-height: 128px;
  font-family: var(--serif); font-size: 15px; line-height: 2.15; letter-spacing: .1em;
  color: #c9b79c; text-align: center; white-space: pre-line;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .95);
  opacity: 0; transition: opacity .4s;
}
.sl-text.on { opacity: 1; }
.sl-acts { margin-top: 18px; display: flex; gap: 16px; opacity: 0; pointer-events: none; transition: opacity .32s; }
.sl-acts.on { opacity: 1; pointer-events: auto; }
.sl-btn {
  padding: 12px 30px; cursor: pointer;
  background: #1c140c; border: 1px solid #4a3624; color: #d9c49a;
  font-family: var(--serif); font-size: 13px; letter-spacing: .26em; text-indent: .26em;
  transition: all .2s;
}
.sl-btn:hover { background: #241a10; border-color: #8d6f42; color: #f5e2bb; }
.sl-btn.sl-no { border-color: #2c2118; color: #8a7658; }
.sl-btn.sl-no:hover { color: #d9c49a; }
.sl-tip { margin-top: 24px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: #3f372d; }

/* ---------- 小屏 ---------- */
@media (max-width: 900px) {
  .om-lamp { left: 8%; bottom: 33%; transform: scale(.82); }
  .om-bowl { left: 17%; bottom: 33%; transform: scale(.82); }
  .om-joss { left: 28%; bottom: 33%; transform: scale(.82); }
  .om-cal { left: 30%; bottom: 52%; transform: scale(.85); }
  .om-under { left: 30%; bottom: 4%; width: 80px; height: 38px; }
  .sl-text { font-size: 13.5px; line-height: 2; min-height: 140px; }
  .sl-door { height: 118px; }
  .ps-item { padding: 12px 13px; }
  .ps-nm { font-size: 13px; }
  .ps-tx { font-size: 12px; }
}

/* ---------- 对话面板：选项多的时候在面板内部滚动，别顶出屏幕 ---------- */
.cs-dlg { display: flex; max-height: 92vh; }
.dlg-panel { display: flex; flex-direction: column; width: 100%; max-height: 92vh; }
.dlg-text { flex: 0 0 auto; }
.dlg-choices { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
.dlg-foot { flex: 0 0 auto; }
/* 摆出一堆物证的时候，正文可以矮一点 */
.cs-dlg.choosing .dlg-text { min-height: 0; }
.ps-list::-webkit-scrollbar { width: 6px; }
.ps-list::-webkit-scrollbar-track { background: rgba(255, 220, 170, .04); }
.ps-list::-webkit-scrollbar-thumb { background: #4a3a26; border-radius: 3px; }
.ps-list::-webkit-scrollbar-thumb:hover { background: #6b5334; }

/* ---------- 叫魂：把黑补出层次 ---------- */
#screen-soul {
  background:
    radial-gradient(ellipse 46% 38% at 50% 40%, rgba(255, 235, 200, .05), transparent 72%),
    radial-gradient(ellipse 84% 62% at 50% 100%, rgba(70, 46, 24, .16), transparent 70%),
    #030303;
}
.sl-door::after {
  content: ""; position: absolute; left: -12%; right: -12%; bottom: -22px; height: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, .95), transparent 72%);
}
.sl-gap {
  background: linear-gradient(180deg,
    rgba(255, 240, 200, .02),
    rgba(255, 240, 200, .42) 46%,
    rgba(255, 240, 200, .06) 78%,
    rgba(255, 240, 200, .02));
  filter: blur(.3px);
}

/* ---------- 叫魂：门改成竖的，加门框与把手 ---------- */
.sl-door { width: min(148px, 34vw); height: 200px; border-width: 6px; border-color: #1c140d; border-style: solid; box-shadow: inset 0 0 60px #000, 0 0 0 1px #0a0705, 0 26px 60px rgba(0, 0, 0, .9); }
.sl-door::before {
  content: ""; position: absolute; right: 9px; top: 50%; width: 7px; height: 7px;
  transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #c9a45c, #6b5324 70%, #241a10);
  box-shadow: 0 1px 3px #000;
}
@media (max-width: 900px) {
  .sl-door { width: min(120px, 32vw); height: 168px; }
}

/* ---------- 结局：长文要能滚，短的时候还是居中 ---------- */
.end-wrap {
  justify-content: flex-start; overflow-y: auto;
  padding: 5vh 6vw 7vh; gap: 26px;
}
.end-text { flex: 0 0 auto; margin: auto 0; }
.end-restart { flex: 0 0 auto; }
.end-wrap::-webkit-scrollbar { width: 6px; }
.end-wrap::-webkit-scrollbar-track { background: rgba(255, 255, 255, .03); }
.end-wrap::-webkit-scrollbar-thumb { background: #22302a; border-radius: 3px; }

/* ---------- 门沉到柜台后面，别像立在台面上 ---------- */
.cs-door { bottom: 26%; height: 50%; }
/* 黄历：纸别太白，字要大一点 */
.om-cal { width: 52px; height: 76px; left: 34.5%; bottom: 47%; }
.om-cal-leaf { background: linear-gradient(180deg, #cfc0a0, #a8977a); border-color: #8d7a5c; }
.om-cal-num { font-size: 14px; top: 13px; letter-spacing: .12em; }
.om-cal-leaf::after { border-color: rgba(150, 40, 32, .5); }
@media (max-width: 900px) {
  .cs-door { bottom: 24%; height: 52%; }
  .om-cal { width: 42px; height: 62px; }
}

/* ============================================================
   小屏重排：柜台、器物、抽屉、独白
   ============================================================ */
@media (max-width: 900px) {
  /* 独白下移，别和左上角状态条打架 */
  .cs-dialogue { top: 13%; font-size: 13px; line-height: 1.95; max-width: 92vw; }
  /* 器物排到柜台右侧那段台面上 */
  .om-lamp { left: 36%; bottom: 34.5%; transform: scale(.86); }
  .om-bowl { left: 45%; bottom: 34.5%; transform: scale(.86); }
  .om-joss { left: 53%; bottom: 34.5%; transform: scale(.86); }
  /* 黄历挂到左墙、柜子上方 */
  .om-cal { left: 4%; bottom: 62%; width: 42px; height: 60px; }
  /* 抽屉和“柜台底下”抬到持有栏上面 */
  .cs-drawer { left: 44%; bottom: 24%; width: 16%; height: 10%; }
  .om-under { left: 5%; bottom: 12%; width: 84px; height: 38px; }
}
@media (max-width: 900px) {
  .om-lamp { left: 37%; transform: scale(.68); }
  .om-bowl { left: 45.5%; transform: scale(.68); }
  .om-joss { left: 53%; transform: scale(.68); }
}

/* 关键选项：摊牌那一句 */
.dlg-choice.dlg-key {
  color: #e6cf92; border-color: #6d5230;
  background: linear-gradient(90deg, rgba(255, 200, 130, .08), transparent);
  letter-spacing: .1em;
}
.dlg-choice.dlg-key::before { content: "◆ "; color: #c9a45c; }
.dlg-choice.dlg-key:hover { border-color: #c9a45c; color: #fff0cc; background: rgba(255, 200, 130, .13); }
/* 抽屉挪到 20% 之后，“柜台底下”要让开，别叠在抽屉上 */
.om-under { left: 33.5%; bottom: 5.5%; }
.inv-item.inv-book { color: #c9a45c; border-color: #4a3624; }
.inv-item.inv-book:hover { border-color: #8d6f42; color: #f0dcb4; }
.inv-item.inv-book { color: #c9a45c; border-color: #4a3624; }
.inv-item.inv-book:hover { border-color: #8d6f42; color: #f0dcb4; }

/* ============================================================
   开发者模式 · 终端
   ============================================================ */
.dev {
  position: fixed; inset: 0; z-index: 9000;
  display: none; align-items: center; justify-content: center;
  background: rgba(2, 2, 2, .58);
}
.dev.on { display: flex; }
.dev-box {
  width: min(790px, 95vw); height: min(548px, 84vh);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(11, 9, 6, .99), rgba(5, 4, 3, .995));
  border: 1px solid #3a2a1c;
  box-shadow: 0 40px 130px #000, inset 0 1px 0 rgba(255, 220, 170, .06);
}
.dev-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-bottom: 1px solid #2a1f16;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: #c9a45c;
}
.dev-badge-mini { color: #4e4234; letter-spacing: .1em; }
.dev-x {
  margin-left: auto; background: transparent; border: 1px solid #33251a;
  color: #8d7a5e; width: 24px; height: 22px; cursor: pointer; line-height: 1;
}
.dev-x:hover { color: #e6cf92; border-color: #6b5334; }
.dev-out {
  flex: 1; overflow-y: auto; padding: 14px 16px 6px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
  color: #a89a84; white-space: pre-wrap; word-break: break-word;
}
.dev-out::-webkit-scrollbar { width: 6px; }
.dev-out::-webkit-scrollbar-thumb { background: #3a2c1f; }
.dev-out > div { margin-bottom: 1px; }
.dev-cmd { color: #7fc8a0; margin-top: 7px; }
.dev-err { color: #b46a58; }
.dev-dim { color: #54483a; }
.dev-hot { color: #e6cf92; }
.dev-in-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px 12px; border-top: 1px solid #241a12;
}
.dev-p { font-family: var(--mono); font-size: 13px; color: #7fc8a0; }
#dev-input {
  flex: 1; background: transparent; border: 0; outline: 0;
  font-family: var(--mono); font-size: 13px; color: #e6dfd0; caret-color: #7fc8a0;
}
.dev-foot {
  padding: 0 16px 10px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .1em; color: #3f372d;
}

/* ============================================================
   第四章 · 渲染层
   ============================================================ */
#screen-layer {
  background:
    radial-gradient(ellipse 60% 50% at 50% 34%, rgba(70, 84, 92, .1), transparent 72%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(20, 26, 30, .5), transparent 70%),
    #050607;
}
.ly-wrap { position: absolute; inset: 0; overflow: hidden; }

/* ---------- 走廊：只有正面 ---------- */
.ly-room {
  position: absolute; inset: 0;
  perspective: 900px; perspective-origin: 50% 46%;
}
.ly-backwall {
  position: absolute; left: 18%; right: 18%; top: 14%; bottom: 26%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, #101315, #07090a);
  border: 1px solid #1a2024;
  box-shadow: inset 0 0 90px #000;
  transform: translateZ(-140px);
}
.ly-floor {
  position: absolute; left: 6%; right: 6%; bottom: 0; height: 34%;
  background:
    repeating-linear-gradient(90deg, rgba(140, 170, 170, .05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(180deg, rgba(140, 170, 170, .035) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, rgba(24, 30, 32, .9), rgba(6, 8, 9, .98));
  transform: rotateX(64deg); transform-origin: 50% 100%;
  opacity: .8;
}
.ly-wall {
  position: absolute; left: 12%; right: 12%; top: 10%; bottom: 22%;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .3) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #1a1714, #0b0908 60%, #060505);
  border: 1px solid #241d16;
  box-shadow: inset 0 0 120px #000, 0 20px 60px rgba(0, 0, 0, .8);
  opacity: .97;
  transition: opacity .55s ease, filter .55s ease;
}
.ly-wall.thin { opacity: .18; filter: brightness(.7); }
.ly-wall-line { position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: rgba(150, 190, 180, .35); }

.ly-figure {
  position: absolute; left: 50%; bottom: 22%; width: 118px; height: 300px;
  transform: translateX(-50%);
  transition: transform .9s cubic-bezier(.3, .9, .2, 1), opacity .6s, filter .6s;
  opacity: .55; filter: grayscale(.4);
}
.ly-figure .fg-front {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 12% at 50% 8%, #8b7b64, transparent 70%),
    linear-gradient(180deg, rgba(120, 104, 84, .55) 0 16%, rgba(60, 52, 42, .7) 16% 62%, rgba(24, 20, 16, .5) 62% 100%);
  border-radius: 44% 44% 30% 30% / 16% 16% 8% 8%;
  filter: blur(.6px);
}
.ly-figure .fg-edge {
  position: absolute; left: 50%; top: 4%; bottom: 0; width: 1px;
  background: rgba(180, 210, 200, .0);
  transition: background .5s;
}
.ly-figure.seen { opacity: 1; filter: none; }
.ly-figure.flip { transform: translateX(-50%) rotateY(88deg); }
.ly-figure.flip .fg-edge { background: rgba(180, 210, 200, .7); box-shadow: 0 0 18px rgba(150, 200, 190, .45); }

/* ---------- 检查器 ---------- */
.ly-ins {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%) translateX(14px);
  width: 236px; z-index: 40;
  background: linear-gradient(180deg, rgba(12, 14, 15, .96), rgba(6, 7, 8, .97));
  border: 1px solid #263034;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .8);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.ly-ins.on { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.ly-ins-h {
  padding: 9px 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em;
  color: #7f9aa0; border-bottom: 1px solid #1d2529; background: rgba(120, 160, 170, .05);
}
.ly-ins-list { padding: 6px 0; }
.ly-row {
  display: grid; grid-template-columns: 1fr 28px 62px; align-items: center;
  gap: 8px; padding: 6px 12px; font-family: var(--mono); font-size: 11px;
  color: #6f8b90;
}
.ly-row.hot { background: rgba(255, 200, 130, .045); }
.ly-lname { color: #89a6ab; }
.ly-lz { text-align: center; color: #c9b79c; }
.ly-lbtns { display: flex; gap: 4px; justify-content: flex-end; }
.ly-lbtns button {
  width: 26px; height: 22px; cursor: pointer;
  background: #0d1214; border: 1px solid #23302f; color: #9fb8b8;
  font-family: var(--mono); font-size: 12px; line-height: 1;
}
.ly-lbtns button:hover:not(:disabled) { border-color: #4d7570; color: #d8f0e8; }
.ly-lbtns button:disabled { opacity: .25; cursor: default; }
.ly-ins-f {
  padding: 8px 12px; border-top: 1px solid #1d2529;
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: #45585c;
}

/* ---------- 独白 ---------- */
.ly-nar {
  position: absolute; left: 50%; top: 7%; transform: translateX(-50%);
  width: min(620px, 88vw); z-index: 30;
  font-family: var(--serif); font-size: 15px; line-height: 2.1; letter-spacing: .09em;
  color: #cfe0dd; text-align: center; white-space: pre-line;
  text-shadow: 0 3px 20px #000, 0 0 40px rgba(0, 0, 0, .9);
  opacity: 0; transition: opacity .45s;
  pointer-events: none;
}
.ly-nar.on { opacity: 1; }

/* ---------- 断点 · 走廊追逐 ---------- */
.ly-run {
  position: absolute; inset: 0; z-index: 45;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, #07090a, #020303 76%);
}
.ly-wrap[data-stage="run"] .ly-run { display: flex; }
.ly-wrap[data-stage="run"] .ly-room,
.ly-wrap[data-stage="run"] .ly-ins { display: none; }

.ly-lane {
  position: relative; width: min(760px, 92vw); height: 132px; margin-top: 40px;
  border-top: 1px solid #1e2a2c; border-bottom: 1px solid #1e2a2c;
  background:
    repeating-linear-gradient(90deg, rgba(140, 175, 175, .06) 0 1px, transparent 1px 10.5%),
    linear-gradient(180deg, rgba(20, 28, 30, .6), rgba(4, 6, 7, .9));
  overflow: visible;
}
.ly-frame {
  position: absolute; right: 10px; top: -26px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: #3f514f;
}
.ly-me, .ly-it {
  position: absolute; bottom: 0; width: 26px; height: 74px;
  transform: translateX(-50%); transition: left .28s ease, opacity .3s;
}
.ly-me {
  background: linear-gradient(180deg, rgba(201, 183, 156, .85), rgba(90, 78, 60, .5));
  clip-path: polygon(50% 0, 78% 18%, 66% 42%, 100% 100%, 0 100%, 34% 42%, 22% 18%);
  filter: drop-shadow(0 0 12px rgba(255, 220, 170, .2));
}
.ly-it {
  opacity: 0; height: 92px; border: 1px dashed rgba(180, 220, 210, .75);
  background:
    repeating-linear-gradient(180deg, rgba(140, 200, 190, .18) 0 1px, transparent 1px 6px);
  box-shadow: 0 0 30px rgba(120, 190, 180, .25);
}
.ly-door2 {
  position: absolute; right: 0; bottom: 0; width: 26px; height: 118px;
  background: linear-gradient(180deg, #161c1d, #070a0a);
  border: 1px solid #2a3739; box-shadow: 0 0 30px rgba(120, 190, 180, .12);
}
.ly-run.frozen { filter: saturate(.25) contrast(1.1); }
.ly-run.frozen .ly-frame { color: #9fe0b8; }
.ly-hud {
  margin-top: 26px; display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: #6f8b90;
}
.ly-btn {
  padding: 11px 22px; cursor: pointer;
  background: #0d1416; border: 1px solid #26383a; color: #b9d2cf;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .2em;
  transition: all .18s;
}
.ly-btn:hover:not(:disabled) { background: #122023; border-color: #3f6b66; color: #e6f6f1; }
.ly-btn:disabled { opacity: .3; cursor: default; }
.ly-btn-go { border-color: #3a4f4a; }
.ly-hit {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(60, 0, 0, .42);
  font-family: var(--serif); font-size: 26px; letter-spacing: .3em; color: #e9c9c0;
  text-shadow: 0 0 30px #000;
}
.screen.ly-grab { animation: lyGrab .5s steps(2) 3; }
@keyframes lyGrab {
  0%, 100% { filter: none; transform: none; }
  50% { filter: contrast(1.6) hue-rotate(-20deg); transform: translateX(6px) scale(1.01); }
}

/* ---------- 门 · 没有 onclick ---------- */
.ly-doorwrap {
  position: absolute; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 60% 54% at 50% 46%, #0a0c0d, #020303 78%);
}
.ly-wrap[data-stage="door"] .ly-doorwrap { display: flex; }
.ly-wrap[data-stage="door"] .ly-room,
.ly-wrap[data-stage="door"] .ly-ins { display: none; }
.ly-door3 {
  position: relative; width: min(180px, 40vw); height: 260px; cursor: pointer;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #131110, #080706);
  border: 1px solid #241d17;
  box-shadow: inset 0 0 70px #000, 0 26px 70px rgba(0, 0, 0, .9);
  transition: box-shadow .4s, transform .5s;
}
.ly-door3:hover { box-shadow: inset 0 0 70px #000, 0 0 40px rgba(160, 190, 190, .12); }
.ly-door-knob { display: none; }   /* 门没有把手 */
.ly-door3.open { transform: perspective(760px) rotateY(-14deg); box-shadow: inset 0 0 40px #000, -30px 0 80px rgba(120, 200, 180, .25); }
.ly-door3.open::after {
  content: ""; position: absolute; right: -34%; top: -12%; bottom: -12%; width: 120%;
  background: linear-gradient(90deg, rgba(53, 255, 139, .28), transparent 68%);
  pointer-events: none;
}
.ly-door-hint {
  margin-top: 26px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .22em; color: #45585c;
}
.ly-badge {
  position: absolute; right: 22px; bottom: 20px;
  padding: 7px 12px; border: 1px solid #2c3a3c;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: #7f9aa0;
  opacity: 0; pointer-events: none; transition: opacity .6s;
  cursor: pointer;
}
.ly-badge.on { opacity: 1; animation: badgePulse 2.4s ease-in-out infinite; }
.ly-badge.done { opacity: .4; animation: none; border-color: #2a3a30; color: #5f8f70; }
@keyframes badgePulse {
  0%, 100% { border-color: #2c3a3c; color: #7f9aa0; }
  50% { border-color: #557c78; color: #cfeae4; box-shadow: 0 0 24px rgba(120, 190, 180, .18); }
}

/* ============================================================
   第五章 · 根目录
   ============================================================ */
#screen-root {
  background:
    radial-gradient(ellipse 66% 46% at 50% 0%, rgba(90, 110, 120, .1), transparent 70%),
    #040506;
}
.rt-wrap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; padding: 5vh 4vw 4vh;
}
.rt-head { text-align: center; margin-bottom: 14px; }
.rt-title { font-family: var(--mono); font-size: 12px; letter-spacing: .44em; color: #8aa0a6; }
.rt-sub { margin-top: 9px; font-family: var(--serif); font-size: 11px; letter-spacing: .1em; color: #566a6e; }
.rt-list {
  width: min(860px, 94vw); height: min(430px, 44vh);
  overflow: hidden; position: relative;
  border: 1px solid #1c2426;
  background: linear-gradient(180deg, rgba(12, 16, 17, .96), rgba(4, 6, 7, .98));
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .9);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 7%, #000 92%, transparent);
}
.rt-list.fast { border-color: #2a1f16; }
.rt-row {
  display: grid; grid-template-columns: 74px 1fr 128px 96px;
  align-items: center; gap: 10px;
  width: 100%; height: 34px; padding: 0 18px;
  background: transparent; border: 0; border-bottom: 1px solid rgba(120, 150, 150, .06);
  text-align: left; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: #7d9498;
  transition: background .12s, color .12s;
}
.rt-row:hover { background: rgba(150, 200, 190, .07); color: #d8ece7; }
.rt-no { color: #4e6468; }
.rt-nm { font-family: var(--serif); font-size: 13.5px; letter-spacing: .12em; color: #b9c9c6; }
.rt-th { color: #6f858a; }
.rt-st { color: #5d7d6d; text-align: right; }
.rt-row.wrong { background: rgba(140, 30, 20, .38); color: #f0c8c0; }
.rt-row.found { background: rgba(255, 200, 130, .12); box-shadow: inset 2px 0 0 #c9a45c; }
.rt-row.found .rt-nm { color: #f0dcb4; }
.rt-row.found .rt-st { color: #e6cf92; }

.rt-nar {
  width: min(700px, 92vw); margin-top: 18px; min-height: 54px;
  font-family: var(--serif); font-size: 14px; line-height: 2; letter-spacing: .1em;
  color: #c2d3cf; text-align: center; white-space: pre-line;
  opacity: 0; transition: opacity .4s;
}
.rt-nar.on { opacity: 1; }

/* ---------- 记录卡 ---------- */
.rt-detail {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -48%) scale(.98);
  width: min(560px, 92vw); z-index: 30;
  background: linear-gradient(180deg, rgba(10, 13, 14, .985), rgba(4, 5, 6, .99));
  border: 1px solid #2a3639;
  box-shadow: 0 40px 120px #000;
  opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s;
}
.rt-detail.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.rt-dh {
  padding: 10px 16px; border-bottom: 1px solid #1d2529;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; color: #7f9aa0;
  background: rgba(120, 160, 170, .04);
}
.rt-json {
  margin: 0; padding: 18px 20px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.95; color: #a8c0bc;
  white-space: pre-wrap; min-height: 210px;
}
.rt-json::selection { background: rgba(120, 190, 180, .3); }

/* ---------- 输名字 ---------- */
.rt-confirm {
  position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%) translateY(12px);
  width: min(520px, 92vw); z-index: 35; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s;
}
.rt-confirm.on { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.rt-q { font-family: var(--serif); font-size: 14px; letter-spacing: .12em; color: #cfdcd8; margin-bottom: 12px; }
.rt-in-row { display: flex; gap: 0; justify-content: center; }
#rt-name {
  width: min(300px, 56vw); padding: 12px 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid #2c3a3c; border-right: 0;
  color: #eaf0ee; font-family: var(--serif); font-size: 14px; letter-spacing: .18em;
  outline: 0;
}
#rt-name:focus { border-color: #4d7570; background: rgba(120, 190, 180, .05); }
#rt-name.err { border-color: #8a3a2c; background: rgba(120, 30, 20, .16); animation: rtNo .3s; }
@keyframes rtNo { 0%, 100% { transform: none; } 50% { transform: translateX(-4px); } }
#rt-send {
  padding: 12px 22px; cursor: pointer;
  background: #0e1617; border: 1px solid #2c3a3c; color: #b9d2cf;
  font-family: var(--serif); font-size: 13px; letter-spacing: .2em;
}
#rt-send:hover { background: #142224; border-color: #4d7570; color: #e6f6f1; }
.rt-msg { margin-top: 12px; min-height: 20px; font-family: var(--serif); font-size: 12px; line-height: 1.9; color: #b46a58; white-space: pre-line; }
.rt-tries { margin-top: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: #46595c; }

/* ---------- 三个键 ---------- */
.rt-choice {
  position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%) translateY(12px);
  width: min(680px, 94vw); z-index: 36;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s;
}
.rt-choice.on { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.rt-c {
  flex: 1; min-width: 132px; padding: 16px 10px; cursor: pointer;
  background: linear-gradient(180deg, rgba(20, 26, 27, .96), rgba(8, 10, 11, .96));
  border: 1px solid #2c3a3c; color: #b9d2cf;
  font-family: var(--serif); font-size: 15px; letter-spacing: .34em; text-indent: .34em;
  transition: all .2s;
}
.rt-c:hover { border-color: #6b8f88; color: #f0fffb; box-shadow: 0 0 40px rgba(120, 190, 180, .14); transform: translateY(-2px); }
.rt-c-true {
  display: none; flex-basis: 100%;
  border-color: #4a3a26; color: #c9a45c; font-size: 12.5px; letter-spacing: .2em;
}
.rt-c-true.on { display: block; }
.rt-c-true:hover { border-color: #8d6f42; color: #f5e2bb; box-shadow: 0 0 40px rgba(255, 200, 130, .16); }

/* 抓错时的脸 */
.rt-face {
  position: absolute; inset: 0; z-index: 60;
  display: grid; place-items: center; background: rgba(0, 0, 0, .92);
  animation: rtFace .12s steps(2) 10;
}
.rt-face img {
  height: 96%; opacity: .92; filter: contrast(1.25) saturate(.35) brightness(.9);
  mix-blend-mode: screen;
}
@keyframes rtFace { 0%, 100% { opacity: .92; } 50% { opacity: 1; } }
.screen.rt-grab { animation: lyGrab .4s steps(2) 3; }

/* ---------- 小屏 ---------- */
@media (max-width: 900px) {
  .dev-box { width: 96vw; height: 80vh; }
  .dev-out { font-size: 11.5px; }
  .ly-ins { width: 60vw; right: 10px; top: 12%; transform: none; }
  .ly-ins.on { transform: none; }
  .ly-nar { top: 4%; font-size: 13.5px; line-height: 2; }
  .ly-lane { height: 110px; }
  .ly-me, .ly-it { height: 62px; }
  .ly-it { height: 76px; }
  .ly-hud { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .ly-door3 { height: 210px; }
  .rt-list { height: 40vh; }
  .rt-row { grid-template-columns: 56px 1fr 82px 74px; padding: 0 10px; font-size: 11px; }
  .rt-nm { font-size: 12.5px; }
  .rt-json { font-size: 11.5px; padding: 14px; min-height: 180px; }
  .rt-choice { bottom: 4vh; gap: 9px; }
  .rt-c { font-size: 13.5px; padding: 13px 6px; letter-spacing: .24em; }
  .rt-confirm { bottom: 4vh; }
  .rt-nar { font-size: 13px; }
}

/* ============================================================
   第四章 · 可读性修正（走廊要有层次）
   ============================================================ */
.ly-room::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: radial-gradient(ellipse 34% 70% at 18% 100%, rgba(255, 170, 60, .10), transparent 72%);
  pointer-events: none;
}
.ly-backwall {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 32px),
    radial-gradient(ellipse 62% 46% at 50% 78%, #182022, #0a0e10 72%);
  border-color: #222b2e;
  box-shadow: inset 0 0 120px #000, 0 0 60px rgba(90, 120, 120, .06);
}
.ly-floor {
  background:
    repeating-linear-gradient(90deg, rgba(150, 180, 180, .07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(180deg, rgba(150, 180, 180, .05) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, rgba(34, 42, 44, .95), rgba(8, 10, 11, .99));
  opacity: .95;
}
.ly-wall {
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .26) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, rgba(255, 240, 210, .016) 0 1px, transparent 1px 58px),
    linear-gradient(180deg, #302719, #1a140d 52%, #0d0a07);
  border-color: #4a3c28;
  box-shadow: inset 0 0 130px #000, inset 0 1px 0 rgba(255, 220, 170, .1), 0 24px 70px rgba(0, 0, 0, .9);
}
.ly-wall.thin { opacity: .16; }
.ly-wall-line { background: rgba(255, 210, 150, .18); }

/* 人形：头 / 肩 / 身 */
.ly-figure { width: 132px; height: 318px; }
.ly-figure .fg-front {
  background:
    radial-gradient(ellipse 34% 7% at 50% 9%, #b9a184, transparent 76%),
    linear-gradient(180deg, #6d5c46 0 18%, #3c3327 18% 64%, #191510 64% 100%);
  clip-path: polygon(50% 0%, 61% 2%, 66% 9%, 64% 16%, 71% 22%, 85% 33%, 89% 100%, 11% 100%, 15% 33%, 29% 22%, 36% 16%, 34% 9%, 39% 2%);
  border-radius: 0;
  filter: blur(.4px) brightness(1.55);
}
.ly-figure.flip .fg-front { filter: brightness(.4); }

/* ---------- 追逐：站位与可读性 ---------- */
.ly-lane { height: 148px; }
.ly-me { height: 96px; width: 30px; filter: drop-shadow(0 0 16px rgba(255, 220, 170, .34)); }
.ly-me::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 46px; height: 10px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .85), transparent 72%);
}
.ly-it { height: 104px; width: 34px; }
.ly-door2 { height: 132px; width: 30px; box-shadow: 0 0 34px rgba(120, 200, 180, .22); }
.ly-door2::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: #c9a45c; box-shadow: 0 0 8px rgba(255, 200, 130, .6);
}
.ly-hud { margin-top: 30px; }

/* ---------- 第五章：列表要看得清 ---------- */
.rt-list { height: min(470px, 47vh); background: linear-gradient(180deg, rgba(14, 18, 19, .98), rgba(5, 7, 8, .99)); }
.rt-row { color: #90a5a9; }
.rt-row:nth-child(even) { background: rgba(140, 180, 180, .022); }
.rt-no { color: #62797d; }
.rt-nm { color: #cbd8d5; }
.rt-th { color: #8ba1a5; }
.rt-st { color: #79a08b; }
.rt-row:hover { background: rgba(150, 200, 190, .1); }
.rt-row.found { background: rgba(255, 200, 130, .14); }
.rt-json { color: #c3d6d2; }
.rt-detail { width: min(600px, 92vw); }
.rt-list-hint {
  margin-top: 12px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .14em; color: #3f4f52;
}

/* ---------- 走廊：墙上该有一点人的影子 ---------- */
.ly-room {
  background:
    linear-gradient(90deg, rgba(28, 34, 36, .62), transparent 16%),
    linear-gradient(270deg, rgba(28, 34, 36, .62), transparent 16%);
}
.ly-wall { opacity: .93; }
.ly-figure { filter: brightness(2.4) contrast(1.1); }
.ly-figure.seen { filter: brightness(1.15); }
.ly-me {
  clip-path: polygon(50% 0%, 60% 1%, 66% 6%, 67% 12%, 64% 17%, 74% 21%, 83% 30%, 87% 58%, 85% 100%, 15% 100%, 13% 58%, 17% 30%, 26% 21%, 36% 17%, 33% 12%, 34% 6%, 40% 1%);
}

/* ---------- 小屏修正：列表不要溢出 / 检查器别压独白 ---------- */
.rt-row { box-sizing: border-box; }
@media (max-width: 900px) {
  .ly-ins {
    left: 50%; right: auto; top: auto; bottom: 5%;
    width: 84vw; transform: translateX(-50%) translateY(10px);
  }
  .ly-ins.on { transform: translateX(-50%) translateY(0); }
  .ly-ins-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; }
  .ly-row { grid-template-columns: 1fr 20px 54px; padding: 5px 9px; font-size: 10px; }
  .ly-ins-h { padding: 7px 9px; font-size: 9px; }
  .ly-nar { top: 3%; max-width: 94vw; }
  .rt-row { grid-template-columns: 46px 1fr 68px 62px; gap: 6px; padding: 0 8px; font-size: 10.5px; }
  .rt-nm { font-size: 12px; letter-spacing: .06em; }
  .rt-st { font-size: 10px; }
}

/* 被追上：只闪半秒的脸 */
.ly-face {
  position: absolute; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .55);
  animation: lyFaceIn .1s steps(2) 5;
  pointer-events: none;
}
.ly-face img {
  height: 120%; opacity: .95;
  filter: contrast(1.4) saturate(.2) brightness(.85) blur(.4px);
  mix-blend-mode: screen;
}
@keyframes lyFaceIn { 0%, 100% { opacity: .95; } 50% { opacity: 1; transform: translateX(-3px); } }

/* ---------- 门：太暗，看不见就等于没做 ---------- */
#screen-layer .ly-doorwrap {
  background:
    radial-gradient(ellipse 40% 34% at 50% 62%, rgba(120, 160, 150, .07), transparent 74%),
    radial-gradient(ellipse 60% 54% at 50% 46%, #0b0e0f, #020303 78%);
}
.ly-door3 {
  width: min(214px, 44vw); height: 330px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(90deg, rgba(255, 240, 210, .014) 0 1px, transparent 1px 52px),
    linear-gradient(180deg, #221d18, #0e0b09);
  border: 1px solid #3d3125;
  box-shadow: inset 0 0 70px #000, inset 0 1px 0 rgba(255, 220, 170, .12),
    0 30px 80px rgba(0, 0, 0, .9), 0 0 90px rgba(120, 200, 180, .05);
}
.ly-door3::before {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -2px; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(90, 220, 160, .45), transparent);
  filter: blur(1px);
}
.ly-door-hint { color: #5f7679; font-size: 10.5px; letter-spacing: .24em; }
@media (max-width: 900px) { .ly-door3 { height: 250px; } }

.ly-door-hint { color: #7d9498; }

/* ============================================================
   v11.0 · 序章登录 / 记忆核验 / 墨韵 / 终章 / 透视 / 档案
   ============================================================ */

/* ------------------------------------------------------------
   A. 序章 · 登录地球online
   ------------------------------------------------------------ */
#screen-login { background: #03060a; }
.lg-page {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background:
    radial-gradient(900px 520px at 50% 20%, rgba(28, 74, 66, .22), transparent 72%),
    radial-gradient(600px 400px at 80% 90%, rgba(90, 14, 14, .12), transparent 70%),
    #03060a;
  font-family: var(--mono);
}
.lg-grid {
  position: absolute; inset: 0; opacity: .28;
  background:
    repeating-linear-gradient(90deg, rgba(53, 255, 139, .05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(53, 255, 139, .04) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%);
}
.lg-box {
  position: relative; width: min(460px, 88vw);
  background: rgba(6, 12, 12, .92);
  border: 1px solid #17433a;
  padding: 28px 30px 22px;
  box-shadow: 0 0 0 1px rgba(53, 255, 139, .06), 0 30px 90px rgba(0, 0, 0, .8),
    inset 0 0 60px rgba(53, 255, 139, .03);
}
.lg-box::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 14px; height: 14px;
  border-left: 1px solid var(--green); border-top: 1px solid var(--green);
}
.lg-box::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px;
  border-right: 1px solid var(--green); border-bottom: 1px solid var(--green);
}
.lg-top { display: flex; align-items: baseline; justify-content: space-between; }
.lg-brand { font-family: var(--serif); font-size: 26px; letter-spacing: .3em; color: #d9efe4; }
.lg-ver { font-size: 10px; letter-spacing: .18em; color: #3f6b5e; }
.lg-sub {
  font-size: 9.5px; letter-spacing: .34em; color: #2f5a4e; margin: 8px 0 22px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(53, 255, 139, .12);
}
.lg-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; }
.lg-row label { width: 44px; color: #4b7a6c; letter-spacing: .2em; flex: 0 0 auto; }
.lg-ro { color: #8fb3a8; letter-spacing: .06em; }
.lg-ro b { color: #2f5a4e; font-weight: 400; font-size: 10.5px; margin-left: 6px; }
#lg-pass {
  flex: 1; background: rgba(0, 0, 0, .55); border: 1px solid #1c4a3f;
  color: #b8f5d6; font-family: var(--mono); font-size: 14px; letter-spacing: .3em;
  padding: 9px 12px; outline: none; transition: .2s;
}
#lg-pass:focus { border-color: var(--green); box-shadow: 0 0 0 1px rgba(53, 255, 139, .2), 0 0 22px rgba(53, 255, 139, .12); }
#lg-pass::placeholder { color: #2a4d43; letter-spacing: .12em; font-size: 11.5px; }
.lg-err {
  min-height: 34px; font-family: var(--serif); font-size: 11.5px; line-height: 1.8;
  color: #b4564e; letter-spacing: .06em; white-space: pre-line;
}
.lg-btns { display: flex; gap: 10px; }
.lg-btn {
  flex: 1; padding: 11px; background: rgba(53, 255, 139, .08); color: #b8f5d6;
  border: 1px solid #1f5a4b; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .3em; cursor: pointer; transition: .25s;
}
.lg-btn:hover { background: rgba(53, 255, 139, .18); border-color: var(--green); color: #eafff2; }
.lg-btn.ghost { background: transparent; color: #3f6b5e; border-color: #14342c; }
.lg-btn.ghost:hover { color: #7fa89a; border-color: #1f5a4b; }
.lg-status {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(53, 255, 139, .1);
  font-size: 10.5px; letter-spacing: .12em; color: #3d6b5d; min-height: 16px;
}
.lg-status.err { color: #c0574c; }
.lg-status.ok { color: var(--green); }
.lg-status.busy { color: #d8b24a; }
.lg-status.hint { color: #8a7a52; }
.lg-foot {
  display: flex; justify-content: space-between; margin-top: 16px;
  font-size: 9.5px; letter-spacing: .12em; color: #24443b;
}
#lg-hint { cursor: pointer; text-decoration: underline dotted; }
#lg-hint:hover { color: #6a9686; }
.lg-copy {
  position: absolute; bottom: 34px; left: 0; right: 0; text-align: center;
  font-family: var(--serif); font-size: 11.5px; letter-spacing: .4em; color: #1f3a34;
}
.lg-loading {
  position: absolute; inset: 0; background: rgba(3, 6, 10, .96);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 18px; padding: 40px; opacity: 0; pointer-events: none; transition: .4s;
}
.lg-loading.on { opacity: 1; pointer-events: auto; }
#lg-form.dim { opacity: .25; transition: .4s; }
.lgl-line { font-family: var(--serif); font-size: 12.5px; letter-spacing: .16em; color: #9fd8bb; text-align: center; min-height: 20px; }
.lgl-bar { width: 82%; height: 2px; background: rgba(53, 255, 139, .12); }
.lgl-fill { height: 100%; width: 0; background: var(--green); box-shadow: 0 0 14px rgba(53, 255, 139, .7); transition: width .45s; }
.lgl-pct { font-family: var(--mono); font-size: 10px; color: #2f5a4e; letter-spacing: .2em; }
.lgl-incense { position: absolute; bottom: 46px; display: flex; gap: 16px; }
.lgl-incense i {
  width: 1px; height: 34px; background: linear-gradient(180deg, #7a3a1a, #2a1410);
  position: relative; opacity: .8;
}
.lgl-incense i::after {
  content: ""; position: absolute; left: -1px; top: -2px; width: 3px; height: 3px;
  border-radius: 50%; background: #ff7a2a; box-shadow: 0 0 8px #ff5a1a;
  animation: incense 3.2s ease-in-out infinite;
}
.lgl-incense i:nth-child(2)::after { animation-delay: .7s; }
.lgl-incense i:nth-child(3)::after { animation-delay: 1.5s; }
@keyframes incense { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

body.penetrate #app { animation: penetrate 1.1s cubic-bezier(.6, 0, .3, 1); }
@keyframes penetrate {
  0% { transform: scale(1); filter: blur(0); }
  55% { transform: scale(1.06); filter: blur(2px) brightness(1.6); }
  100% { transform: scale(1); filter: none; }
}

/* ------------------------------------------------------------
   B. 柜台上那张空白抵押单
   ------------------------------------------------------------ */
.om-form {
  right: 20%; bottom: 15%; width: 62px; height: 44px;
  transform: rotate(-4deg);
}
.om-form-paper {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(60, 40, 20, .18) 0 1px, transparent 1px 8px),
    linear-gradient(160deg, #d9cbab, #b3a184);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .6), inset 0 0 18px rgba(90, 60, 20, .3);
  border: 1px solid rgba(40, 26, 12, .4);
}
.om-form-paper::after {
  content: ""; position: absolute; left: 8px; bottom: 8px; width: 22px; height: 2px;
  background: rgba(120, 20, 20, .6);
}
.om-form:hover .om-form-paper { transform: translateY(-2px); transition: .2s; }
.om-form .om-tip {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  font-family: var(--serif); font-size: 10px; letter-spacing: .2em; color: #6b5a3a;
  opacity: 0; transition: .2s;
}
.om-form:hover .om-tip { opacity: 1; }

/* ------------------------------------------------------------
   C. 抵押 · 记忆核验
   ------------------------------------------------------------ */
#screen-verify {
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(70, 52, 30, .35), transparent 70%),
    linear-gradient(180deg, #0a0806, #050403);
}
.vf-page { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 26px 34px 22px; }
.vf-head { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #241b12; }
.vf-h-t { font-family: var(--serif); font-size: 20px; letter-spacing: .34em; color: #cbb894; display: block; }
.vf-h-s { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: #5a4a35; display: block; margin-top: 8px; }
.vf-back {
  background: transparent; border: 1px solid #2c2317; color: #7a6a52;
  font-family: var(--serif); font-size: 11px; letter-spacing: .26em; padding: 9px 18px;
  cursor: pointer; transition: .25s;
}
.vf-back:hover { color: #d3c19c; border-color: #554628; }
.vf-body { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; padding-top: 22px; min-height: 0; }
.vf-left { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.vf-paper {
  background:
    repeating-linear-gradient(0deg, rgba(60, 44, 24, .06) 0 1px, transparent 1px 30px),
    linear-gradient(170deg, #efe6d0, #ded0b2);
  border: 1px solid #8c7a56; box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
  padding: 16px 18px 14px; transform: rotate(-.35deg);
}
.vf-p-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif); font-size: 11.5px; letter-spacing: .18em; color: #5b4a30;
  border-bottom: 1px solid rgba(90, 70, 40, .3); padding-bottom: 8px;
}
.vf-count { font-family: var(--mono); font-size: 10px; color: #7a6746; }
.vf-count.low { color: #a33a2a; }
.vf-count.high { color: #8a6a2a; }
#vf-ta {
  width: 100%; height: clamp(130px, 22vh, 210px); margin-top: 10px;
  background: transparent; border: none; outline: none; resize: none;
  font-family: var(--serif); font-size: 15px; line-height: 2; letter-spacing: .06em;
  color: #1e1810;
}
#vf-ta::placeholder { color: #9a8763; }
.vf-p-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.vf-samples { display: flex; gap: 6px; flex-wrap: wrap; }
.vf-sample, .vf-wipe {
  background: transparent; border: 1px solid rgba(90, 70, 40, .45); color: #6b5838;
  font-family: var(--serif); font-size: 10.5px; letter-spacing: .08em; padding: 5px 9px; cursor: pointer;
}
.vf-sample:hover, .vf-wipe:hover { background: rgba(90, 70, 40, .12); color: #3b2f1c; }
.vf-run {
  background: #2a2014; color: #e8dcc0; border: 1px solid #4a3a22;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .3em; padding: 10px 26px;
  cursor: pointer; transition: .25s;
}
.vf-run:hover { background: #3a2c1a; color: #fff6e0; }
.vf-run:disabled { opacity: .5; cursor: default; }
.vf-stage {
  flex: 0 0 auto; max-height: 132px; overflow: auto; padding: 10px 12px;
  border-left: 1px solid #2a2116; background: rgba(0, 0, 0, .25);
  font-family: var(--mono); font-size: 10.5px; line-height: 1.95; color: #5c4c36;
  opacity: 0; transition: .3s;
}
.vf-stage.on { opacity: 1; }
.vf-st.run { color: #b9a67e; }
.vf-st.dim { color: #4a3f2c; }
.vf-st.warn { color: #a8743a; }
.vf-hist-wrap { flex: 1; min-height: 0; overflow: auto; border-top: 1px solid #221a11; padding-top: 10px; }
.vf-hist-h { font-family: var(--serif); font-size: 10.5px; letter-spacing: .26em; color: #4d4030; margin-bottom: 8px; }
.vf-hist-row {
  display: grid; grid-template-columns: 44px 34px 1fr; gap: 8px; align-items: baseline;
  font-family: var(--mono); font-size: 10px; color: #5a4c39; padding: 5px 0;
  border-bottom: 1px dashed rgba(90, 74, 50, .18);
}
.vf-hist-row .s { color: #8e7a55; }
.vf-hist-row .t { font-family: var(--serif); font-size: 11px; color: #6b5c44; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-hist-empty { font-family: var(--serif); font-size: 11px; color: #453a2a; }
.vf-right { min-height: 0; overflow: auto; }
.vf-result { min-height: 100%; display: flex; align-items: stretch; }
.vf-empty {
  margin: auto; font-family: var(--serif); font-size: 12.5px; line-height: 2.2;
  letter-spacing: .1em; color: #4e4231; text-align: center; padding: 30px;
}
/* 空单待核验：把右栏撑起来，别留一大片空 */
.vf-idle {
  width: 100%; align-self: stretch; border: 1px dashed #2e2517;
  background: rgba(10, 8, 5, .34); padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 18px;
}
.vf-idle-top { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(120, 100, 66, .2); }
.vf-idle-k { font-family: var(--serif); font-size: 15px; letter-spacing: .34em; color: #6b5838; }
.vf-idle-s { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: #463a28; }
.vf-bars-idle { opacity: .5; }
.vf-bars-idle .b-t { background: rgba(160, 130, 80, .1); }
.vf-bars-idle .b-v { color: #57492f; }
.vf-idle-tip {
  margin-top: auto; font-family: var(--serif); font-size: 12.5px; line-height: 2.1;
  letter-spacing: .08em; color: #59492f;
}
.vf-idle-note {
  font-family: var(--serif); font-size: 11px; line-height: 1.9; letter-spacing: .04em;
  color: #43371f; padding-left: 12px; border-left: 2px solid #28200f;
}
.vf-result:not(.on) .vf-card { display: none; }
.vf-card {
  width: 100%; border: 1px solid #2e2416; background: rgba(10, 8, 5, .7);
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 16px;
  animation: vfIn .5s ease both;
}
@keyframes vfIn { from { opacity: 0; transform: translateY(10px); } }
.vf-card.ok { border-color: #3d3520; }
.vf-card.no { border-color: #4a1a16; }
/* 卡片撑满右栏时，把真名压到底部，中间不空出一截 */
.vf-card .vf-name { margin-top: auto; }
.vf-score { display: flex; align-items: center; gap: 14px; }
.vf-score b { font-family: var(--serif); font-size: 54px; line-height: 1; font-weight: 600; letter-spacing: .02em; }
.vf-score span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: #5c4c36; }
.vf-seal {
  margin-left: auto; font-style: normal; font-family: var(--serif); font-size: 15px;
  letter-spacing: .3em; padding: 8px 10px; border: 1px solid; writing-mode: vertical-rl;
}
.vf-bars { display: flex; flex-direction: column; gap: 9px; }
.vf-bar { display: grid; grid-template-columns: 88px 1fr 30px 32px; gap: 9px; align-items: center; }
.b-l { font-family: var(--serif); font-size: 11px; letter-spacing: .12em; color: #8a7756; white-space: nowrap; }
.b-t { height: 3px; background: rgba(160, 130, 80, .16); display: block; }
.b-t i { display: block; height: 100%; background: linear-gradient(90deg, #6b5730, #c9a961); transition: width .7s ease; }
.b-v { font-family: var(--mono); font-size: 11px; color: #b9a67e; text-align: right; }
.b-h { font-family: var(--mono); font-size: 9px; color: #453a28; }
.vf-warns { display: flex; flex-direction: column; gap: 6px; }
.vf-w {
  font-family: var(--serif); font-size: 11.5px; line-height: 1.8; letter-spacing: .04em;
  color: #6f6047; padding-left: 12px; border-left: 2px solid #2c2417;
}
.vf-w.lv1 { color: #8a7550; border-color: #4a3a20; }
.vf-w.lv2 { color: #b08a4a; border-color: #6b5220; }
.vf-w.lv3 { color: #c0574c; border-color: #5a1e18; }
.vf-proof { border: 1px dashed #4a3c24; padding: 12px 14px; background: rgba(180, 150, 90, .05); }
.vf-proof.bad { border-color: #4a1c17; background: rgba(120, 20, 14, .06); }
.vp-k { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: #d8c39a; }
.vf-proof.bad .vp-k { color: #a85a4e; }
.vp-s { font-family: var(--mono); font-size: 10px; color: #6b5a3c; margin-top: 6px; letter-spacing: .08em; }
.vf-name { font-family: var(--mono); font-size: 9.5px; color: #3f3524; letter-spacing: .1em; word-break: break-all; }

/* ------------------------------------------------------------
   D. 墨韵 · 科技卷轴（宣纸）
   ------------------------------------------------------------ */
#screen-moyun { background: #0b0906; }
.my-page {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background:
    radial-gradient(1000px 600px at 50% -10%, rgba(154, 123, 63, .14), transparent 72%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .4) 0 1px, transparent 1px 4px),
    #0b0906;
}
.my-scroll {
  width: min(1180px, 100%); height: min(92vh, 860px);
  background: #f5efe0; color: #1d1913; position: relative;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .5);
  font-family: var(--serif);
}
.my-scroll::before, .my-scroll::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px; z-index: 4;
  background: linear-gradient(180deg, #4a3823, #7d6242 45%, #2b2013);
}
.my-scroll::before { top: 0; }
.my-scroll::after { bottom: 0; }
.my-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 18px;
  padding: 24px 34px 14px; border-bottom: 1px solid #cbbda2;
}
.my-title { font-size: 26px; letter-spacing: .4em; color: #17130d; }
.my-sub { font-size: 10px; letter-spacing: .3em; color: #6d5f47; margin-top: 7px; }
.my-seal {
  margin-left: auto; border: 1px solid #8b0000; color: #8b0000; font-size: 18px;
  padding: 4px 7px; letter-spacing: .2em;
}
.my-back {
  background: transparent; border: 1px solid #b8a685; color: #5b4c34;
  font-family: var(--serif); font-size: 11px; letter-spacing: .26em; padding: 8px 16px; cursor: pointer;
}
.my-back:hover { background: rgba(29, 25, 19, .08); color: #1d1913; }
.my-body { flex: 1; display: grid; grid-template-columns: 250px 1fr 270px; min-height: 0; }
.my-left { border-right: 1px solid #d4c7ae; padding: 16px 14px; overflow: auto; }
.my-l-h { font-size: 10px; letter-spacing: .3em; color: #7b6b4f; margin-bottom: 10px; }
.my-item {
  display: grid; grid-template-columns: 1fr 16px; gap: 2px 6px; width: 100%;
  background: transparent; border: 1px solid transparent; border-bottom: 1px dashed #d8cbaf;
  padding: 9px 8px; text-align: left; cursor: pointer; font-family: inherit;
}
.my-item:hover { background: rgba(29, 25, 19, .05); }
.my-item.on { background: rgba(29, 25, 19, .08); border-color: #a08a63; }
.my-item.done .mi-l { color: #3f6b34; }
.mi-n { font-size: 12.5px; letter-spacing: .06em; color: #2a2318; }
.mi-s { grid-column: 1; font-size: 9.5px; color: #8b7a5c; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-l { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #a89066; font-size: 12px; }
.my-l-note { margin-top: 14px; font-size: 10px; line-height: 1.9; color: #8b7a5c; }
.my-mid { padding: 16px 24px; overflow: auto; display: flex; flex-direction: column; }
.my-m-title { font-size: 16px; letter-spacing: .16em; color: #1d1913; }
.my-m-place { font-size: 9.5px; letter-spacing: .16em; color: #8b7a5c; margin: 5px 0 12px; font-family: var(--mono); }
.my-cipher {
  border: 1px solid #c2b294; background: rgba(255, 255, 255, .4);
  padding: 13px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.9;
  color: #2f281c; word-break: break-all; max-height: 132px; overflow: auto;
  cursor: copy;
}
.my-hint { font-size: 11px; line-height: 1.85; color: #6b5b40; margin: 10px 0 4px; }
.my-keys { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.my-key {
  flex: 1; min-width: 70px; border: 1px solid #bfae8c; background: transparent;
  font-family: var(--serif); font-size: 11px; letter-spacing: .1em; padding: 7px 4px;
  color: #5b4c34; cursor: pointer;
}
.my-key.on { background: #1d1913; color: #f5efe0; border-color: #1d1913; }
.my-keyval { font-family: var(--mono); font-size: 9px; color: #93825f; margin-top: 7px; word-break: break-all; }
.my-algs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.my-alg {
  border: 1px solid #c2b294; background: transparent; font-family: var(--serif);
  font-size: 11.5px; letter-spacing: .08em; padding: 8px 4px; color: #3b3122; cursor: pointer;
}
.my-alg:hover { background: rgba(29, 25, 19, .07); }
.my-solve {
  margin-top: 12px; padding: 10px; background: #1d1913; color: #f5efe0; border: none;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .26em; cursor: pointer;
}
.my-solve:hover { background: #332a1f; }
.my-cands { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.my-scan { font-size: 10.5px; color: #7b6b4f; letter-spacing: .06em; }
.my-scan.bad { color: #8b0000; }
.my-cand {
  display: grid; grid-template-columns: 66px 34px 1fr; gap: 6px; align-items: center;
  border: 1px solid #cabb9c; background: transparent; padding: 6px 8px; cursor: pointer;
  font-family: inherit; text-align: left;
}
.my-cand:hover { background: rgba(29, 25, 19, .06); }
.mc-a { font-size: 10.5px; letter-spacing: .08em; }
.mc-s { font-family: var(--mono); font-size: 9.5px; color: #8b0000; }
.mc-t { font-family: var(--mono); font-size: 10px; color: #5f523a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-input-row { display: flex; gap: 6px; margin-top: 10px; }
.my-input-row input {
  flex: 1; background: rgba(255, 255, 255, .45); border: 1px solid #c2b294;
  padding: 7px 9px; font-family: var(--serif); font-size: 12px; color: #1d1913; outline: none;
}
.my-input-row button {
  border: 1px solid #bfae8c; background: transparent; padding: 0 12px; cursor: pointer;
  font-family: var(--serif); color: #5b4c34;
}
.my-alg-tip { font-size: 10.5px; color: #8b0000; margin-top: 8px; min-height: 15px; }
.my-right { border-left: 1px solid #d4c7ae; padding: 16px 16px; display: flex; flex-direction: column; overflow: auto; }
.my-r-h { font-size: 10px; letter-spacing: .3em; color: #7b6b4f; margin-bottom: 10px; }
.my-out {
  border: 1px solid #c2b294; min-height: 150px; flex: 1; padding: 13px;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(29, 25, 19, .07) 27px 28px),
    rgba(255, 255, 255, .35);
  display: flex; flex-direction: column;
}
.my-plain { font-size: 15px; line-height: 1.95; letter-spacing: .06em; color: #1d1913; word-break: break-all; }
.my-reward { margin-top: auto; font-size: 10.5px; line-height: 1.85; color: #6b4224; }
.my-clip {
  margin-top: 10px; align-self: flex-start; border: 1px solid #bfae8c; background: transparent;
  font-family: var(--serif); font-size: 10px; letter-spacing: .2em; padding: 5px 12px;
  color: #5b4c34; cursor: pointer;
}
.my-r-note { margin-top: 14px; font-size: 10px; line-height: 2; color: #8b7a5c; }
body.moyun-flash #screen-moyun { animation: myFlash .9s ease; }
@keyframes myFlash { 0% { filter: none; } 20% { filter: brightness(1.5) contrast(1.1); } 100% { filter: none; } }

/* ------------------------------------------------------------
   E. 终章 · 回响
   ------------------------------------------------------------ */
#screen-final { background: #000; }
.fn-page {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(760px 520px at 50% 40%, rgba(90, 60, 24, .22), transparent 72%),
    radial-gradient(1200px 800px at 50% 120%, rgba(30, 10, 8, .5), transparent 70%),
    #000;
  overflow: auto;
  align-items: flex-start;
}
.fn-inner { width: min(760px, 90vw); padding: 34px 0 40px; margin: auto; }
.fn-cap {
  font-family: var(--mono); font-size: 10px; letter-spacing: .6em; color: #4a4136;
  text-align: center; margin-bottom: 34px;
}
.fn-text {
  font-family: var(--serif); font-size: clamp(14px, 1.5vw, 17px); line-height: 2.5;
  letter-spacing: .14em; color: #b9a98c; text-align: center; white-space: pre-line;
  min-height: 60px; transition: opacity .5s;
}
.fn-choice { display: none; flex-direction: column; gap: 7px; margin-top: 22px; }
.fn-choice.on { display: flex; animation: fnIn .6s ease both; }
@keyframes fnIn { from { opacity: 0; transform: translateY(14px); } }
.fn-q { font-family: var(--serif); font-size: 12.5px; letter-spacing: .24em; color: #6b5c44; text-align: center; margin-bottom: 6px; }
.fn-opt {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  background: rgba(20, 16, 11, .55); border: 1px solid #2b2318; padding: 10px 18px;
  transition: .25s;
}
.fn-opt b { font-family: var(--serif); font-size: 13.5px; letter-spacing: .1em; color: #cbb894; font-weight: 400; }
.fn-opt span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: #5c5040; }
.fn-opt:hover { border-color: #6b5636; background: rgba(60, 44, 22, .28); transform: translateX(3px); }
.fn-opt:hover b { color: #f0e0bc; }
.fn-idle { text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: #3f3628; margin-top: 12px; }
.fn-idle b { color: #8a6a3a; }
.fn-end { display: none; }
.fn-end.on { display: block; }
.fn-end-top { display: flex; align-items: baseline; gap: 16px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.fn-end-no { font-family: var(--mono); font-size: 10px; letter-spacing: .26em; color: #4a4136; }
.fn-end-name { font-family: var(--serif); font-size: 26px; letter-spacing: .3em; }
.fn-end-tone { font-family: var(--serif); font-size: 11px; letter-spacing: .2em; color: #6b5c44; }
.fn-end-text {
  font-family: var(--serif); font-size: clamp(13.5px, 1.4vw, 16px); line-height: 2.4;
  letter-spacing: .1em; color: #a99b83;
}
.fn-line { opacity: 0; transform: translateY(6px); transition: .7s ease; }
.fn-line.on { opacity: 1; transform: none; }
.fn-tag { color: #d8c39a; letter-spacing: .24em; margin-top: 16px; }
.fn-card {
  margin-top: 24px; border: 1px solid #2b2318; padding: 14px 16px;
  display: none; flex-direction: column; gap: 7px;
}
.fn-card { display: none; }
.fn-card:not(:empty) { display: flex; }
.fnc-row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10px; color: #5c5040; }
.fnc-row b { color: #c2b295; font-weight: 400; letter-spacing: .08em; text-align: right; word-break: break-all; }
.fnc-sig { color: #b06a4a !important; }
.fnc-foot { margin-top: 6px; border-top: 1px dashed #2b2318; padding-top: 8px; font-family: var(--serif); font-size: 11px; color: #6b5c44; letter-spacing: .12em; }
.fn-btns { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.fn-b {
  background: transparent; border: 1px solid #332a1d; color: #9c8c70;
  font-family: var(--serif); font-size: 11.5px; letter-spacing: .2em; padding: 10px 20px; cursor: pointer;
}
.fn-b:hover { color: #e8d8b4; border-color: #6b5636; }
.fn-b.ghost { color: #4a4136; border-color: #221c13; }
.fn-page[data-stage="end"] .fn-text,
.fn-page[data-stage="choice"] .fn-text { display: none; }
.fn-page[data-stage="choice"] .fn-cap { margin-bottom: 12px; }
#end-echo { margin-top: -28px; color: #6b5a3a; border-color: #3a2f1e; }
#end-echo:hover { color: #e0c08a; border-color: #6b5636; }

/* ------------------------------------------------------------
   F. 代码透视
   ------------------------------------------------------------ */
.persp {
  position: fixed; inset: 0; z-index: 7000; display: none;
  background:
    radial-gradient(900px 600px at 50% 45%, rgba(0, 255, 65, .07), transparent 70%),
    rgba(1, 4, 2, .88);
  font-family: var(--mono);
}
.persp.on { display: block; animation: ppIn .35s ease both; }
@keyframes ppIn { from { opacity: 0; } }
.pp-grid {
  position: absolute; inset: 0; opacity: .5;
  background:
    repeating-linear-gradient(90deg, rgba(0, 255, 65, .05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(0, 255, 65, .04) 0 1px, transparent 1px 48px);
}
.pp-lines { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s; }
.pp-lines line { stroke: rgba(0, 255, 65, .3); stroke-width: .12; vector-effect: non-scaling-stroke; stroke-dasharray: 1.2 .9; animation: ppDash 22s linear infinite; }
@keyframes ppDash { to { stroke-dashoffset: -40; } }
.pp-nodes { position: absolute; inset: 0; transition: transform .5s; }
.pp-node {
  position: absolute; transform: translate(-50%, -50%); cursor: pointer;
  padding: 6px 9px; border: 1px solid rgba(0, 255, 65, .28);
  background: rgba(2, 8, 4, .82); display: flex; align-items: center; gap: 7px;
  transition: .2s; white-space: nowrap;
}
.pp-node i { width: 5px; height: 5px; border-radius: 50%; background: #00ff41; box-shadow: 0 0 8px #00ff41; flex: 0 0 auto; }
.pp-node b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; color: #7dffb0; }
.pp-node em { font-style: normal; font-size: 8.5px; letter-spacing: .1em; color: #2f7a4f; }
.pp-node:hover { border-color: #00ff41; box-shadow: 0 0 24px rgba(0, 255, 65, .25); }
.pp-node.sel { border-color: #d8ffa0; background: rgba(10, 28, 14, .95); }
.pp-mod b { color: #ffd700; }
.pp-mod i { background: #ffd700; box-shadow: 0 0 8px #ffd700; }
.pp-lock { border-color: rgba(200, 30, 30, .5); }
.pp-lock i { background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; }
.pp-lock b { color: #c98a8a; }
.pp-del { border-color: rgba(120, 120, 120, .35); opacity: .55; }
.pp-del i { background: #6d6d6d; box-shadow: none; }
.pp-del b { color: #7a7a7a; text-decoration: line-through; }
.pp-stared { box-shadow: 0 0 40px rgba(180, 0, 0, .6); border-color: #b00; }
.pp-hud {
  position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between;
  align-items: center; padding: 16px 22px; border-bottom: 1px solid rgba(0, 255, 65, .15);
  background: linear-gradient(180deg, rgba(0, 8, 3, .9), transparent);
}
.pp-hud-l { display: flex; flex-direction: column; gap: 4px; }
.pp-hud-l b { color: #7dffb0; font-size: 12px; letter-spacing: .24em; font-weight: 500; }
.pp-hud-l span { color: #2f7a4f; font-size: 9.5px; letter-spacing: .14em; }
.pp-hud-r { display: flex; align-items: center; gap: 10px; }
.pp-lv { color: #ffd700; font-size: 10.5px; letter-spacing: .14em; }
.pp-n { color: #2f7a4f; font-size: 9.5px; letter-spacing: .1em; }
.pp-rot, .pp-code, .pp-x {
  background: transparent; border: 1px solid rgba(0, 255, 65, .25); color: #6fdc95;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; padding: 6px 12px; cursor: pointer;
}
.pp-rot:hover, .pp-code:hover, .pp-x:hover { border-color: #00ff41; color: #baffd4; }
.pp-code { border-color: rgba(255, 215, 0, .4); color: #ffd700; }
.pp-panel {
  position: absolute; right: 22px; top: 88px; width: 302px; max-height: 62vh; overflow: auto;
  border: 1px solid rgba(0, 255, 65, .25); background: rgba(2, 9, 4, .94);
  padding: 14px; display: none;
}
.pp-panel.on { display: block; animation: ppIn .25s ease both; }
.pp-p-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 9px; border-bottom: 1px solid rgba(0, 255, 65, .14); }
.pp-p-h b { color: #baffd4; font-size: 12px; letter-spacing: .1em; font-weight: 500; }
.pp-tag { font-size: 8.5px; letter-spacing: .1em; padding: 2px 5px; border: 1px solid; }
.pp-tag.pp-ro { color: #4a9a6a; border-color: #2f7a4f; }
.pp-tag.pp-mod { color: #ffd700; border-color: #6b5a10; }
.pp-tag.pp-lock { color: #c98a8a; border-color: #5a1e1e; }
.pp-tag.pp-del { color: #8a8a8a; border-color: #3a3a3a; }
.pp-id { margin-left: auto; color: #2f7a4f; font-size: 8.5px; letter-spacing: .1em; }
.pp-p-d { color: #6f9a80; font-size: 10.5px; line-height: 1.9; margin: 10px 0; }
.pp-p-k { color: #3f7a5a; font-size: 9.5px; line-height: 1.9; word-break: break-all; border-left: 1px solid #1a4a2e; padding-left: 9px; }
.pp-p-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ppc {
  background: transparent; border: 1px solid rgba(0, 255, 65, .25); color: #6fdc95;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; padding: 6px 10px; cursor: pointer;
}
.ppc:hover { border-color: #00ff41; color: #baffd4; }
.ppc.danger { border-color: rgba(200, 40, 40, .5); color: #d97a7a; }
.ppc.danger:hover { border-color: #ff3b3b; color: #ffb0b0; }
.pp-p-out { margin-top: 10px; }
.pp-quote { color: #8ab89a; font-family: var(--serif); font-size: 11.5px; line-height: 2; letter-spacing: .08em; }
.pp-opts { display: flex; flex-direction: column; gap: 6px; }
.pp-opt { display: flex; flex-direction: column; gap: 3px; text-align: left; background: transparent;
  border: 1px solid rgba(0, 255, 65, .2); padding: 7px 9px; cursor: pointer; font-family: var(--mono); }
.pp-opt b { color: #ffd700; font-size: 10px; font-weight: 400; }
.pp-opt span { color: #4a9a6a; font-size: 9px; }
.pp-opt:hover { background: rgba(0, 255, 65, .06); }
.pp-attr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pp-attr > div { border: 1px solid rgba(0, 255, 65, .14); padding: 5px 7px; display: flex; justify-content: space-between; gap: 6px; }
.pp-attr span { color: #2f7a4f; font-size: 8px; letter-spacing: .1em; }
.pp-attr b { color: #9fe8bb; font-size: 9px; font-weight: 400; }
.pp-hint {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center; padding: 12px;
  font-size: 9px; letter-spacing: .16em; color: #245a3a;
  background: linear-gradient(0deg, rgba(0, 6, 2, .9), transparent);
}
body.wall-open #screen-counter .cs-wall { opacity: .15; transition: .6s; }
body.npc-paper #cs-npc { filter: sepia(.7) brightness(1.2); }
body.npc-paper #cs-npc::after {
  content: "纸"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: rgba(120, 20, 20, .5); font-size: 28px;
}
body.persp-on .dock { opacity: .25; }
body.glitch-once #app { animation: glitchOnce .42s steps(3) 2; }
@keyframes glitchOnce {
  0% { transform: none; filter: none; }
  30% { transform: translate(4px, -2px); filter: hue-rotate(40deg) contrast(1.4); }
  60% { transform: translate(-5px, 1px); filter: invert(.12); }
  100% { transform: none; filter: none; }
}

/* ------------------------------------------------------------
   G. 代码编辑器
   ------------------------------------------------------------ */
.codeed {
  position: fixed; inset: 0; z-index: 7300; display: none;
  align-items: center; justify-content: center; background: rgba(0, 3, 1, .72);
  font-family: var(--mono);
}
.codeed.on { display: flex; }
.ce-win {
  width: min(860px, 92vw); height: min(600px, 86vh); display: flex; flex-direction: column;
  background: #040805; border: 1px solid #1d4a30; box-shadow: 0 30px 90px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 255, 65, .08);
}
.ce-bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-bottom: 1px solid #143322; background: #06100a; }
.ce-dot { width: 8px; height: 8px; border-radius: 50%; }
.ce-dot.r { background: #a33; } .ce-dot.y { background: #a83; } .ce-dot.g { background: #3a3; }
.ce-bar b { font-size: 10px; letter-spacing: .14em; color: #5fa87a; font-weight: 400; margin-left: 8px; }
.ce-path { margin-left: auto; font-size: 9px; color: #2f6a48; letter-spacing: .1em; }
.ce-x { background: transparent; border: none; color: #3f7a5a; font-size: 16px; cursor: pointer; padding: 0 4px; }
.ce-x:hover { color: #9fe8bb; }
.ce-body { flex: 1; display: grid; grid-template-columns: 1fr 300px; min-height: 0; }
.ce-left { display: flex; min-height: 0; border-right: 1px solid #143322; }
.ce-nums {
  padding: 12px 8px; text-align: right; color: #1f4a32; font-size: 11px; line-height: 1.65;
  white-space: pre; background: #030604; user-select: none; overflow: hidden;
}
#ce-code {
  flex: 1; background: transparent; border: none; outline: none; resize: none;
  padding: 12px 10px; color: #8ef0b4; font-family: var(--mono); font-size: 11.5px; line-height: 1.65;
  caret-color: #00ff41; tab-size: 2;
}
.ce-out { padding: 12px; overflow: auto; background: #020503; font-size: 10.5px; line-height: 1.9; color: #4f9a6e; }
.ce-ok { color: #9fe8bb; }
.ce-dim { color: #2f6a48; }
.ce-err { color: #d97a7a; }
.ce-end { color: #ffd700; letter-spacing: .08em; }
.ce-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid #143322; background: #06100a; }
.ce-run {
  background: rgba(0, 255, 65, .1); border: 1px solid #1f7a48; color: #9fe8bb;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; padding: 8px 20px; cursor: pointer;
}
.ce-run:hover { background: rgba(0, 255, 65, .2); }
.ce-clear { background: transparent; border: 1px solid #143322; color: #3f7a5a; font-family: var(--mono); font-size: 10px; padding: 8px 12px; cursor: pointer; }
.ce-tip { margin-left: auto; font-size: 9px; color: #1f4a32; letter-spacing: .1em; }

/* ------------------------------------------------------------
   H. 侧边坞 + 档案册
   ------------------------------------------------------------ */
.dock {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 6500; display: flex; flex-direction: column; gap: 10px;
}
.dock-b {
  width: 46px; height: 52px; background: rgba(8, 10, 8, .72);
  border: 1px solid #2a2a20; color: #9c8c6a; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--serif); transition: .25s;
}
.dock-b span { font-size: 17px; letter-spacing: .04em; }
.dock-b i { font-style: normal; font-family: var(--mono); font-size: 8px; color: #4a4535; letter-spacing: .1em; }
.dock-b:hover { color: #e8d8b4; border-color: #6b5636; background: rgba(30, 24, 14, .85); }
.dock-b.locked { opacity: .45; }
.dock-b b {
  position: absolute; top: -6px; right: -6px; min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 8px; background: #1a1a14; color: #5a5540; font-family: var(--mono);
  font-size: 8.5px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #2a2a20;
}
.dock-b b.on { background: #8b0000; color: #f0e0c0; border-color: #8b0000; }

.archive {
  position: fixed; inset: 0; z-index: 7200; display: none;
  align-items: center; justify-content: center; background: rgba(0, 0, 0, .78);
  font-family: var(--mono);
}
.archive.on { display: flex; }
.ar-win {
  width: min(760px, 92vw); height: min(640px, 88vh); display: flex; flex-direction: column;
  background: #080705; border: 1px solid #332a1d; box-shadow: 0 30px 90px rgba(0, 0, 0, .9);
}
.ar-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #241c12; }
.ar-bar b { font-family: var(--serif); font-size: 14px; letter-spacing: .3em; color: #cbb894; font-weight: 400; }
.ar-sub { font-size: 9px; letter-spacing: .16em; color: #4a4136; }
.ar-x { margin-left: auto; background: transparent; border: none; color: #6b5c44; font-size: 18px; cursor: pointer; }
.ar-x:hover { color: #e8d8b4; }
.ar-tabs { display: flex; border-bottom: 1px solid #241c12; }
.ar-t {
  flex: 1; background: transparent; border: none; border-right: 1px solid #1a1510;
  color: #6b5c44; font-family: var(--serif); font-size: 12px; letter-spacing: .2em;
  padding: 11px 0; cursor: pointer; transition: .2s;
}
.ar-t.on { color: #f0e0bc; background: rgba(80, 60, 30, .18); }
.ar-t:hover { color: #cbb894; }
.ar-body { flex: 1; overflow: auto; padding: 18px; }
.ar-count { font-size: 9.5px; letter-spacing: .16em; color: #5c5040; margin-bottom: 12px; }
.ar-sec { font-family: var(--serif); font-size: 11px; letter-spacing: .24em; color: #6b5c44; margin: 18px 0 10px; border-top: 1px dashed #241c12; padding-top: 12px; }
.ar-mem { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(80, 64, 40, .2); }
.ar-mem b { font-family: var(--mono); font-size: 9px; color: #8a6a3a; flex: 0 0 28px; }
.ar-mem span { font-family: var(--serif); font-size: 11.5px; line-height: 1.85; color: #8a7c64; }
.ar-empty { font-family: var(--serif); font-size: 11.5px; color: #4a4136; padding: 10px 0; }
.ar-note { margin-top: 18px; font-family: var(--serif); font-size: 10.5px; line-height: 2; color: #5c5040; letter-spacing: .06em; }

.tn-card { border: 1px solid #33291a; padding: 16px; background: rgba(60, 44, 20, .1); }
.tn-head { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 12px; letter-spacing: .16em; color: #cbb894; padding-bottom: 10px; border-bottom: 1px solid #2b2318; }
.tn-no { color: #8b0000; font-family: var(--mono); font-size: 10px; }
.tn-sigil {
  font-family: var(--mono); font-size: 30px; letter-spacing: .3em; color: #d8c39a;
  text-align: center; padding: 14px 0 16px; opacity: .85;
}
.tn-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(80, 64, 40, .22); }
.tn-k { font-family: var(--serif); font-size: 10.5px; letter-spacing: .16em; color: #6b5c44; flex: 0 0 auto; }
.tn-v { font-family: var(--mono); font-size: 11px; color: #c2b295; letter-spacing: .12em; word-break: break-all; cursor: copy; text-align: right; }
.tn-v:hover { color: #ffd700; }
.tn-row.wide .tn-v { font-size: 9.5px; }
.tn-foot { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 9px; color: #4a4136; }
.tn-ancient { color: #8b0000; letter-spacing: .2em; }
.tn-tip { margin-top: 12px; font-family: var(--serif); font-size: 10.5px; color: #6b5c44; letter-spacing: .06em; }

.eg-list, .fu-list, .en-list { display: flex; flex-direction: column; gap: 3px; }
.eg-row { display: grid; grid-template-columns: 26px 120px 1fr; gap: 8px; padding: 5px 6px; border-bottom: 1px dashed rgba(80, 64, 40, .16); opacity: .45; }
.eg-row.on { opacity: 1; background: rgba(120, 90, 30, .08); }
.eg-no, .fu-id { font-family: var(--mono); font-size: 9px; color: #5c5040; }
.eg-row.on .eg-no { color: #ffd700; }
.eg-n { font-family: var(--serif); font-size: 11.5px; color: #a99b83; }
.eg-row.on .eg-n { color: #e8d8b4; }
.eg-how { font-family: var(--serif); font-size: 10px; color: #7a6a50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-row { display: grid; grid-template-columns: 32px 86px 1fr 1.05fr; gap: 8px; padding: 5px 6px; border-bottom: 1px dashed rgba(80, 64, 40, .16); font-size: 10px; color: #6b5f4a; align-items: baseline; }
.fu-row.on { color: #c2b295; }
.fu-need { font-family: var(--mono); font-size: 9px; color: #6b5c44; letter-spacing: .14em; }
.fu-eff { font-family: var(--serif); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-row.on .fu-n { color: #ffd700; }
.en-row { display: flex; gap: 12px; padding: 9px 8px; border-bottom: 1px dashed rgba(80, 64, 40, .18); opacity: .4; }
.en-row.on { opacity: 1; }
.en-no { font-family: var(--mono); font-size: 10px; color: #4a4136; flex: 0 0 20px; }
.en-row.on .en-no { color: var(--en, #ffd700); }
.en-body { display: flex; flex-direction: column; gap: 3px; }
.en-body b { font-family: var(--serif); font-size: 12.5px; color: #a99b83; font-weight: 400; letter-spacing: .14em; }
.en-row.on .en-body b { color: var(--en, #e8d8b4); }
.en-body i { font-style: normal; font-family: var(--serif); font-size: 9.5px; color: #6b5c44; letter-spacing: .14em; }
.en-body em { font-style: normal; font-family: var(--serif); font-size: 10px; color: #4a4136; }
.en-count { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em; color: #5c5040; }
.perm-list { display: flex; flex-direction: column; gap: 6px; }
.perm-row { display: grid; grid-template-columns: 40px 70px 1fr 1fr; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #1f1912; opacity: .4; }
.perm-row.on { opacity: 1; border-color: #3d3222; background: rgba(120, 90, 30, .06); }
.perm-row b { font-family: var(--mono); font-size: 10px; color: #ffd700; }
.perm-row span { font-family: var(--serif); font-size: 11.5px; color: #cbb894; letter-spacing: .1em; }
.perm-row i { font-style: normal; font-family: var(--serif); font-size: 10px; color: #8a7c64; }
.perm-row em { font-style: normal; font-family: var(--mono); font-size: 8.5px; color: #4a4136; letter-spacing: .06em; }

/* ------------------------------------------------------------
   I. 彩蛋特效 / 弹幕
   ------------------------------------------------------------ */
body.egg-fx-1, body.egg-fx-1 * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='34'><rect x='7' y='3' width='14' height='26' fill='%23e8e2d4' stroke='%23888' stroke-width='1'/><circle cx='12' cy='10' r='1.4' fill='%23333'/><circle cx='17' cy='10' r='1.4' fill='%23333'/><path d='M12 18q3 3 6 0' stroke='%23333' fill='none'/></svg>") 8 2, auto !important; }
body.egg-fx-13::after, body.egg-fx-38::after, body.egg-fx-17::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9500;
  background: radial-gradient(circle, transparent 42%, rgba(120, 0, 0, .55) 100%);
  animation: redBleed 5s ease both;
}
@keyframes redBleed { 0% { opacity: 0; } 25% { opacity: .9; } 100% { opacity: 0; } }
body.egg-fx-42::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9400;
  background: linear-gradient(180deg, rgba(255, 140, 20, .35), rgba(200, 60, 0, .55));
  animation: lcl 6s ease both;
}
@keyframes lcl { 0% { opacity: 0; transform: translateY(30%); } 30% { opacity: .9; } 100% { opacity: .2; transform: translateY(0); } }
body.egg-fx-3::after {
  content: "魂 归 来 兮"; position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 9400; pointer-events: none; color: rgba(200, 30, 30, .5); font-family: var(--serif);
  font-size: clamp(30px, 8vw, 90px); letter-spacing: .3em; transform: rotate(180deg);
  animation: talis 4.2s ease both;
}
@keyframes talis { 0% { opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
body.egg-fx-8::after, body.egg-fx-9::after, body.egg-fx-10::after, body.egg-fx-11::after, body.egg-fx-12::after {
  content: "旧 闻"; position: fixed; left: 40px; bottom: 40px; z-index: 9400; pointer-events: none;
  font-family: var(--serif); font-size: 12px; letter-spacing: .4em; color: rgba(200, 180, 140, .5);
  border-left: 1px solid rgba(200, 180, 140, .3); padding-left: 14px;
}
.danmaku { position: fixed; inset: 0; z-index: 8800; pointer-events: none; display: none; overflow: hidden; }
.danmaku.on { display: block; }
.dm-item {
  position: absolute; right: -20%; white-space: nowrap; font-family: var(--ui);
  font-size: 15px; color: rgba(235, 240, 235, .75); text-shadow: 0 1px 3px #000;
  animation: dm linear forwards;
}
@keyframes dm { from { transform: translateX(0); } to { transform: translateX(-160vw); } }
/* 禁忌系融合：三重 / 禁忌之书 / 禁忌之夜 —— 暗红从边缘压进来 */
body.fus-M16::after, body.fus-M20::after, body.fus-M22::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9300;
  background: radial-gradient(circle, transparent 38%, rgba(80, 0, 0, .38) 100%);
  animation: tabooIn 1s ease both;
}
@keyframes tabooIn { from { opacity: 0; } to { opacity: 1; } }
body.fus-M17 #app { filter: contrast(1.1) saturate(.92); }
body.fus-heavy #app { animation: heavy .8s steps(2) 4; }
@keyframes heavy { 50% { filter: hue-rotate(18deg) saturate(1.3); } }

.mail-pw { font-family: var(--mono); font-size: 14px; letter-spacing: .3em; color: #7a1a1a; background: rgba(120, 20, 20, .08); padding: 1px 6px; }

/* ------------------------------------------------------------
   J. 打磨（v11 首轮联调后修正）
   ------------------------------------------------------------ */
/* 侧边坞只在店内出现 */
.dock { display: none; }
body.in-game .dock { display: flex; }

/* 登录框略宽，状态行更清楚 */
.lg-box { width: min(510px, 90vw); padding: 32px 34px 24px; }
.lg-brand { font-size: 29px; }
.lg-status { font-size: 11px; letter-spacing: .1em; color: #4d8a76; }
.lg-err { font-size: 12px; }
#lg-pass { font-size: 15px; }

/* 记忆核验：让纸更长、字更大，右侧结果区不再空荡 */
#screen-verify { overflow: hidden; }
.vf-page { padding: 30px 40px 26px; }
.vf-h-t { font-size: 23px; }
.vf-h-s { font-size: 10.5px; color: #6b5842; }
.vf-paper { display: flex; flex-direction: column; flex: 0 0 auto; padding: 18px 22px 16px; }
#vf-ta { flex: 1; height: auto; min-height: clamp(180px, 30vh, 300px); font-size: 16px; line-height: 2.05; }
.vf-p-head { font-size: 12.5px; }
.vf-sample, .vf-wipe { font-size: 11px; padding: 6px 10px; }
.vf-run { font-size: 13.5px; padding: 11px 30px; }
.vf-stage { font-size: 11px; max-height: 150px; }
.vf-hist-h { font-size: 11px; color: #6b5c44; }
.vf-hist-row { font-size: 10.5px; }
.vf-hist-row .t { font-size: 11.5px; }
.vf-empty { font-size: 13.5px; color: #6b5a42; }
.vf-card { padding: 26px 26px 22px; gap: 18px; background: rgba(12, 9, 6, .82); }
.vf-score b { font-size: 62px; }
.b-l { font-size: 12px; }
.b-v { font-size: 12px; }
.vf-w { font-size: 12.5px; }
.vp-k { font-size: 14px; }
.vp-s { font-size: 10.5px; }
.vf-name { font-size: 10px; color: #4d4030; }
.vf-right { display: flex; }

/* 终章：正文更大，选项更醒目 */
.fn-cap { font-size: 11px; color: #6b5a3e; letter-spacing: .7em; }
.fn-text { font-size: clamp(15px, 1.65vw, 18.5px); color: #cbb99a; line-height: 2.6; }
.fn-q { font-size: 13.5px; color: #8a7756; }
.fn-opt { padding: 15px 20px; }
.fn-opt b { font-size: 14.5px; }
.fn-opt span { font-size: 10px; color: #6b5c44; }
.fn-opt.pre { border-color: #8a6a3a; background: rgba(90, 66, 30, .18); }
.fn-end-name { font-size: 30px; }
.fn-end-text { font-size: clamp(14px, 1.5vw, 17px); color: #b9a98c; }
.fn-card:empty { display: none; }

/* 代码透视：线要看得见，节点别钻到 HUD 底下 */
.pp-lines line { stroke-width: 1px; stroke: rgba(0, 255, 65, .26); }
.pp-hud { background: linear-gradient(180deg, rgba(0, 8, 3, .96) 40%, rgba(0, 8, 3, .55) 80%, transparent); }

/* 记忆核验：补两块说明，把空处填成"信息" */
.vf-right { display: flex; flex-direction: column; gap: 12px; }
.vf-grades { display: flex; gap: 8px; flex-wrap: wrap; }
.vf-grades span {
  font-family: var(--serif); font-size: 10.5px; letter-spacing: .12em;
  color: var(--g); border: 1px solid color-mix(in srgb, var(--g) 40%, transparent);
  padding: 5px 9px; opacity: .85;
}
.vf-result { flex: 1; min-height: 0; overflow: auto; }
.vf-legend { border-top: 1px solid #221a11; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.vf-l-h { font-family: var(--serif); font-size: 11px; letter-spacing: .26em; color: #6b5c44; margin-bottom: 2px; }
.vf-l-row { display: flex; gap: 9px; font-family: var(--serif); font-size: 11.5px; color: #7a6a52; line-height: 1.8; }
.vf-l-row b { color: #a89268; font-weight: 400; flex: 0 0 14px; }
.vf-l-note { margin-top: 4px; font-family: var(--serif); font-size: 10.5px; color: #5c4c36; letter-spacing: .04em; }

/* 空态占位，别让面板看起来坏了 */
.my-plain:empty::before { content: "解出来的东西会落在这一页上。"; color: #9c8f7c; font-size: 12px; letter-spacing: .06em; }
.ce-out:empty::before { content: "// 输出"; color: #1f4a32; }
.fn-cap { color: #7a6a4c; }

/* 墨韵中栏的水印，填掉大片空白 */
.my-mid { position: relative; }
.my-mid::after {
  content: "墨"; position: absolute; right: 26px; bottom: 14px;
  font-family: var(--serif); font-size: 150px; line-height: 1; color: #1d1913;
  opacity: .035; pointer-events: none;
}

/* 档案册字号抬一点 */
.tn-v { font-size: 12px; }
.tn-k { font-size: 11px; }
.tn-row.wide .tn-v { font-size: 10.5px; }
.ar-mem span { font-size: 12px; }
.ar-note { font-size: 11.5px; }
.ar-count { font-size: 10.5px; }
.eg-n, .fu-n { font-size: 12px; }
.eg-how, .fu-eff { font-size: 10.5px; }
.en-body b { font-size: 13px; }
.en-body em { font-size: 10.5px; }

/* 抵押单挪到柜台面上，别飘在桌上 */
.om-form { right: 30%; bottom: 33%; }
@media (max-width: 900px) { .om-form { right: 24%; bottom: 30%; } }

/* 抵押单：放在柜台面正中偏右，别压到纸钱和那只手 */
.om-form { left: 43.5%; right: auto; bottom: 35%; }
@media (max-width: 900px) { .om-form { left: 38%; right: auto; bottom: 32%; } }

/* ------------------------------------------------------------
   K. 未竟之事（支线）+ 彩蛋分类 + 融合分级
   ------------------------------------------------------------ */
/* 档案册：未竟列表 */
.q-list { display: flex; flex-direction: column; gap: 8px; }
.q-row { border: 1px solid #241d13; padding: 10px 12px; position: relative; background: rgba(40, 30, 14, .16); }
.q-row.take { border-color: #3a3020; }
.q-row.done { border-color: #3d3520; background: rgba(120, 90, 30, .07); }
.q-row.done::after {
  content: "完"; position: absolute; right: 10px; bottom: 10px;
  font-family: var(--serif); font-size: 12px; letter-spacing: .1em;
  color: rgba(180, 40, 30, .62); border: 1px solid rgba(180, 40, 30, .38);
  padding: 1px 5px; transform: rotate(-6deg);
}
.q-h { display: flex; align-items: baseline; gap: 10px; }
.q-no { font-family: var(--mono); font-size: 9.5px; color: #7a1a1a; }
.q-who { font-family: var(--serif); font-size: 12.5px; letter-spacing: .1em; color: #cbb894; }
.q-job { font-family: var(--serif); font-size: 11.5px; color: #a99b83; flex: 1; }
.q-st { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; color: #7d6c4c; }
.q-row.done .q-st { color: #8a7a3a; }
.q-brief { margin-top: 7px; font-family: var(--serif); font-size: 10.5px; line-height: 1.95; color: #8a7b5e; }
.q-hint { margin-top: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: #6d5d43; }
.q-line { margin-top: 7px; font-family: var(--serif); font-size: 10.5px; line-height: 1.95; color: #9a8a68; }
.q-line i { font-style: normal; display: block; margin-top: 4px; font-family: var(--mono); font-size: 8.5px; color: #6a5a34; letter-spacing: .1em; }
.q-take {
  position: absolute; right: 10px; bottom: 9px;
  background: transparent; border: 1px solid #3a3020; color: #8a7c64;
  font-family: var(--serif); font-size: 10px; letter-spacing: .22em; padding: 4px 10px; cursor: pointer;
}
.q-take:hover { border-color: #8b0000; color: #d8c8a4; }

/* 彩蛋按分类分组 */
.eg-cat { margin-bottom: 14px; }
.eg-cat-h {
  font-family: var(--serif); font-size: 10.5px; letter-spacing: .3em; color: #8a7a58;
  padding: 6px 0 5px; border-bottom: 1px solid #241c12; display: flex; justify-content: space-between;
}
.eg-cat-h i { font-style: normal; font-family: var(--mono); font-size: 8.5px; color: #4c4130; letter-spacing: .1em; }
.eg-row { grid-template-columns: 26px 92px 1fr; row-gap: 2px; padding: 6px; }
.eg-fx {
  grid-column: 3; font-family: var(--serif); font-size: 9.5px; color: #8a7b5c;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.eg-row.on .eg-fx { color: #8a7c5a; }

/* 融合分级：左缘一条色 */
.fu-lv1 { border-left: 2px solid rgba(120, 100, 66, .35); }
.fu-lv2 { border-left: 2px solid rgba(150, 120, 60, .45); }
.fu-lv3 { border-left: 2px solid rgba(180, 140, 50, .55); }
.fu-lv4 { border-left: 2px solid rgba(200, 120, 40, .65); }
.fu-lv5 { border-left: 2px solid rgba(140, 30, 24, .8); }
.fu-row { padding-left: 8px; }

/* 新增几个彩蛋的可见效果 */
/* #2 红绣鞋：脚边一闪 */
body.egg-fx-2::after {
  content: "👠"; position: fixed; left: 8%; bottom: 6%; z-index: 9450; pointer-events: none;
  font-size: 44px; filter: sepia(1) saturate(6) hue-rotate(-20deg) brightness(.85);
  animation: shoe 2.6s ease both;
}
@keyframes shoe {
  0% { opacity: 0; transform: translateX(-20px) scale(.8); }
  25% { opacity: .95; transform: translateX(0) scale(1); }
  70% { opacity: .5; }
  100% { opacity: 0; transform: translateX(30px) scale(.9); }
}
/* #4 纸扎 NPC / #6 腐坏：整屏褪色一瞬 */
body.egg-fx-4 #app, body.egg-fx-6 #app { filter: saturate(.35) contrast(1.15) sepia(.25); }
/* #7 / #17 倒影：画面比你先走一步，又慢半拍回来 */
body.egg-fx-7 #app, body.egg-fx-17 #app { animation: echoLag 4s ease both; }
@keyframes echoLag {
  0%, 100% { filter: none; }
  22% { filter: brightness(.82) blur(.7px) saturate(.7); transform: translateY(1px); }
  50% { filter: none; transform: none; }
  66% { filter: brightness(.9) blur(.4px); }
}
/* #22 / #23：角落里的数字 */
body.egg-fx-22::after, body.egg-fx-23::after {
  position: fixed; right: 5vw; bottom: 6vh; z-index: 9450; pointer-events: none;
  font-family: var(--mono); font-size: 64px; color: rgba(200, 30, 30, .18);
  animation: numIn 1.8s ease both;
}
body.egg-fx-22::after { content: "39"; }
body.egg-fx-23::after { content: "42"; }
@keyframes numIn { 0% { opacity: 0; transform: scale(1.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
/* #27 静默：整屏压黑十秒 */
body.egg-fx-27::after {
  content: ""; position: fixed; inset: 0; background: #000; z-index: 9600; pointer-events: none;
  animation: mute 10s linear both;
}
@keyframes mute { 0% { opacity: 0; } 6% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
/* #31 黑方块：闪一下 */
body.egg-fx-31::after {
  content: ""; position: fixed; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px;
  background: #000; box-shadow: 0 0 40px rgba(255, 255, 255, .5); z-index: 9450; pointer-events: none;
  animation: blk 1.4s ease both;
}
@keyframes blk { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }
/* #51 卷轴回响：一行竖排的诗 */
body.egg-fx-51::after {
  content: "墨落成韵\A 韵外无字\A 字外有人"; white-space: pre; position: fixed; right: 6vw; top: 12vh;
  writing-mode: vertical-rl; z-index: 9450; pointer-events: none;
  font-family: var(--serif); font-size: 15px; letter-spacing: .5em; line-height: 2.4;
  color: rgba(210, 190, 150, .55); animation: poem 3.6s ease both;
}
@keyframes poem { 0% { opacity: 0; transform: translateY(-10px); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* 大厅那块黑（#31 锈湖的落点） */
.hall-black {
  position: absolute; left: 22%; top: 74%; width: 28px; height: 28px;
  background: #050505; border: 1px solid rgba(120, 110, 90, .16); cursor: pointer;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow .4s ease;
}
.hall-black:hover { box-shadow: 0 0 24px rgba(255, 255, 255, .28); }

/* 柜台角落的册子 */
.om-book { left: 30%; right: auto; bottom: 33.5%; width: 46px; height: 34px; }
.om-book-cover {
  position: absolute; inset: 0; display: block;
  background: linear-gradient(160deg, #6b5a3c, #3a2f1e);
  border: 1px solid #1c150c; box-shadow: 1px 2px 6px rgba(0, 0, 0, .6);
  transform: rotate(-7deg);
}
.om-book-cover::after {
  content: ""; position: absolute; left: 3px; top: 3px; bottom: 3px; width: 2px;
  background: rgba(210, 190, 150, .28);
}
.om-book .om-tip { right: auto; left: 0; }
@media (max-width: 900px) { .om-book { left: 26%; bottom: 32%; } }

/* 玩家手册 */
.manual {
  position: fixed; inset: 0; z-index: 9200; display: none;
  align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(4, 3, 2, .82); backdrop-filter: blur(3px);
}
.manual.on { display: flex; animation: mnIn .35s ease both; }
@keyframes mnIn { from { opacity: 0; } }
.mn-page {
  width: min(760px, 100%); max-height: 92vh; overflow: auto;
  background: linear-gradient(168deg, #efe6d0, #dcd0b4 60%, #d2c3a2);
  border: 1px solid #8c7a56; box-shadow: 0 30px 70px rgba(0, 0, 0, .75);
  padding: 26px 30px 22px; transform: rotate(-.25deg);
  color: #2a2218;
}
.mn-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid rgba(60, 40, 20, .38); }
.mn-t { font-family: var(--serif); font-size: 20px; letter-spacing: .34em; color: #2a2218; }
.mn-s { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: #6b5a3f; flex: 1; }
.mn-x {
  background: transparent; border: 1px solid rgba(60, 40, 20, .4); color: #3a2c1c;
  font-family: var(--mono); font-size: 14px; line-height: 1; padding: 3px 8px; cursor: pointer;
}
.mn-body { padding-top: 14px; }
.mn-lead { font-family: var(--serif); font-size: 13.5px; line-height: 2; color: #43331f; letter-spacing: .04em; }
.mn-list { margin: 14px 0 0; padding-left: 22px; }
.mn-list li { font-family: var(--serif); font-size: 13px; line-height: 2.1; color: #322615; margin-bottom: 8px; }
.mn-list li b { color: #6b1a12; font-weight: 600; }
.mn-foot {
  margin-top: 18px; padding-top: 12px; border-top: 1px dashed rgba(60, 40, 20, .3);
  font-family: var(--serif); font-size: 11px; color: #5a4830; letter-spacing: .04em;
}
.mn-foot i { font-style: normal; color: #7a1a12; }
@media (max-width: 900px) {
  .mn-page { padding: 20px 18px 16px; }
  .mn-t { font-size: 16px; letter-spacing: .24em; }
  .mn-list li { font-size: 11.5px; line-height: 1.95; }
}

/* ------------------------------------------------------------
   L. 三件新器物（柜台）
   ------------------------------------------------------------ */
.om-oil { left: 12%; bottom: 34.8%; width: 30px; height: 42px; }
.om-oil-body {
  position: absolute; left: 0; bottom: 0; width: 30px; height: 26px;
  border-radius: 42% 42% 46% 46% / 58% 58% 42% 42%;
  background: linear-gradient(170deg, #5d4a2c, #2b2013 70%);
  border: 1px solid #1a1208;
  box-shadow: inset 0 6px 10px rgba(255, 220, 150, .14), 0 6px 14px rgba(0, 0, 0, .7);
  transition: box-shadow .25s;
}
.om-oil-spout {
  position: absolute; left: 50%; bottom: 22px; width: 8px; height: 16px;
  transform: translateX(-50%) rotate(14deg);
  background: linear-gradient(180deg, #6b5433, #2f2415);
  border-radius: 3px 3px 1px 1px;
}
.omen:hover .om-oil-body { box-shadow: inset 0 6px 10px rgba(255, 220, 150, .3), 0 0 22px rgba(255, 190, 90, .2); }

.om-clock { left: 57%; bottom: 58%; width: 62px; height: 62px; }
.om-clock-face {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #e8dcc0, #b9a684 68%, #6f6047);
  border: 2px solid #2a2115;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .8), inset 0 0 14px rgba(90, 70, 40, .45);
}
.om-clock-face::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px solid rgba(60, 45, 25, .35);
}
.om-clock-h, .om-clock-m {
  position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%;
  background: #241b10; border-radius: 2px;
}
.om-clock-h { width: 3px; height: 16px; margin-left: -1.5px; transform: rotate(96deg); }
.om-clock-m { width: 2px; height: 23px; margin-left: -1px; transform: rotate(78deg); }
.om-clock .om-tip { bottom: -16px; }
.omen:hover .om-clock-face { box-shadow: 0 10px 26px rgba(0, 0, 0, .8), 0 0 24px rgba(255, 200, 120, .22); }

.om-seam { left: 47%; bottom: 12%; width: 96px; height: 22px; }
.om-seam-line {
  position: absolute; inset: 0; transform: rotate(-2deg);
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, .95) 50%, rgba(150, 124, 86, .13) 58%, transparent 66%);
  transition: background .3s;
  opacity: .85;
}
.omen:hover .om-seam-line {
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .98) 47%, rgba(255, 200, 120, .2) 56%, transparent 66%);
  opacity: 1;
}

/* ------------------------------------------------------------
   M. 灯油
   ------------------------------------------------------------ */
#screen-oil {
  background:
    radial-gradient(ellipse 70% 60% at 50% 44%, rgba(70, 50, 22, .5), transparent 70%),
    linear-gradient(180deg, #070604, #0a0805 60%, #050403);
}
.oil-wrap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 4vh 4vw;
}
.oil-head { text-align: center; }
.oil-t { font-family: var(--serif); font-size: 24px; letter-spacing: .4em; text-indent: .4em; color: #e2d0aa; }
.oil-s { margin-top: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: #8a7a58; }

.oil-bowls { display: flex; align-items: flex-end; gap: clamp(28px, 5vw, 72px); margin: 6px 0 2px; }
.oil-bowl {
  background: transparent; border: 0; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ob-shell {
  position: relative; width: 92px; height: 146px;
  border: 1px solid rgba(210, 186, 140, .18);
  border-radius: 6px 6px 14px 14px / 4px 4px 26px 26px;
  background: linear-gradient(180deg, rgba(30, 24, 14, .5), rgba(12, 9, 5, .8));
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .8);
  overflow: hidden; transition: border-color .25s, box-shadow .25s;
}
.ob-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #e8b558, #b17a22 46%, #6d4610);
  box-shadow: inset 0 8px 12px rgba(255, 240, 190, .35), 0 0 22px rgba(255, 170, 60, .25);
  transition: height .34s cubic-bezier(.3, .9, .4, 1);
}
.ob-fill::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 235, 180, .1) 0 1px, transparent 1px 9px);
}
.ob-ticks {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 21px, rgba(220, 200, 160, .12) 21px 22px);
}
.ob-n { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: #a08d68; }
.ob-v { font-family: var(--serif); font-size: 19px; color: #d9c69a; }
.ob-v i { margin-left: 3px; font-family: var(--mono); font-style: normal; font-size: 10.5px; letter-spacing: .08em; color: #96835c; }
.oil-bowl.on .ob-shell {
  border-color: rgba(255, 200, 120, .75);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .8), 0 0 26px rgba(255, 190, 90, .3);
}
.oil-bowl.on .ob-v { color: #ffe3ab; }
.oil-bowl:hover .ob-shell { border-color: rgba(255, 200, 120, .42); }

.oil-note {
  max-width: 560px; text-align: center;
  font-family: var(--serif); font-size: 11.5px; line-height: 2; color: #8b7b5c; letter-spacing: .04em;
}
.oil-msg {
  min-height: 22px; text-align: center;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .06em; color: #a08e6a;
}
.oil-msg.good { color: #e8cf9a; text-shadow: 0 0 18px rgba(255, 190, 90, .35); }
.oil-btns { display: flex; align-items: center; gap: 12px; }
.oil-b {
  background: transparent; border: 1px solid #3d3322; color: #b3a17c;
  font-family: var(--serif); font-size: 11px; letter-spacing: .28em; padding: 7px 16px; cursor: pointer;
  transition: all .22s;
}
.oil-b:hover { border-color: #8b0000; color: #f0dcb4; }
.oil-b.ghost { border-color: #2a2318; color: #6f6248; }
.oil-b.ghost:hover { border-color: #4a3d28; color: #b3a17c; }
.oil-steps { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: #4f4531; }

/* ------------------------------------------------------------
   N. 墙上的钟
   ------------------------------------------------------------ */
#screen-clock {
  background:
    radial-gradient(ellipse 60% 55% at 30% 45%, rgba(60, 44, 20, .45), transparent 70%),
    linear-gradient(180deg, #060504, #090705 70%, #040302);
}
.cl-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(40px, 8vw, 120px); padding: 4vh 5vw;
}
.cl-left { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cl-face {
  position: relative; width: clamp(200px, 26vw, 268px); aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #efe4c8, #c3b08c 62%, #7d6b4e);
  border: 3px solid #241b10;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .85), inset 0 0 40px rgba(90, 70, 40, .45);
}
.cl-ticks { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.cl-tick { position: absolute; inset: 0; }
.cl-tick::before {
  content: ""; position: absolute; left: 50%; top: 5.5%; width: 2px; height: 9px;
  margin-left: -1px; border-radius: 1px; background: rgba(44, 32, 18, .78);
}
.cl-tick.big::before { width: 3px; height: 15px; margin-left: -1.5px; background: rgba(30, 21, 12, .9); }
.cl-hand {
  position: absolute; left: 50%; bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: 3px; transition: transform .18s cubic-bezier(.2, 1.4, .5, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.cl-h { width: 6px; height: 27%; margin-left: -3px; background: linear-gradient(180deg, #322516, #120c06); }
.cl-m { width: 4px; height: 38%; margin-left: -2px; background: linear-gradient(180deg, #4a3823, #1a1209); }
.cl-pin {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%;
  background: radial-gradient(circle, #e8d7b0, #6b5433);
  box-shadow: 0 0 8px rgba(0, 0, 0, .8);
}
.cl-read {
  font-family: var(--mono); font-size: 15px; letter-spacing: .24em; color: #d9c69a;
}
.cl-ampm {
  background: transparent; border: 1px solid #4a3d28; color: #c9b48a;
  font-family: var(--serif); font-size: 11px; letter-spacing: .3em; padding: 6px 14px; cursor: pointer;
  transition: all .22s;
}
.cl-ampm.pm { border-color: #6b3a2a; color: #c98f6a; }
.cl-ampm:hover { border-color: #8b0000; color: #f0dcb4; }

.cl-right { width: min(360px, 42vw); display: flex; flex-direction: column; gap: 14px; }
.cl-t { font-family: var(--serif); font-size: 20px; letter-spacing: .38em; color: #e2d0aa; }
.cl-notes { border-left: 1px solid #2f2617; padding-left: 14px; }
.cl-notes p {
  margin: 0 0 9px; font-family: var(--serif); font-size: 11.5px; line-height: 1.95; color: #8b7b5c;
}
.cl-notes b { color: #d9c69a; font-weight: 500; }
.cl-pad { display: flex; gap: 8px; }
.cl-k {
  flex: 1; background: transparent; border: 1px solid #332b1d; color: #a89876;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 8px 4px; cursor: pointer;
  transition: all .2s;
}
.cl-k:hover { border-color: #8b0000; color: #f0dcb4; }
.cl-msg { min-height: 40px; font-family: var(--serif); font-size: 11.5px; line-height: 1.95; color: #97875f; }
.cl-msg.good { color: #e8cf9a; text-shadow: 0 0 18px rgba(255, 190, 90, .35); }
.cl-btns { display: flex; gap: 10px; }
.cl-b {
  background: transparent; border: 1px solid #3d3322; color: #b3a17c;
  font-family: var(--serif); font-size: 11px; letter-spacing: .26em; padding: 7px 14px; cursor: pointer;
  transition: all .22s;
}
.cl-b:hover { border-color: #8b0000; color: #f0dcb4; }
.cl-b.ghost { border-color: #2a2318; color: #6f6248; }
.cl-b.ghost:hover { border-color: #4a3d28; color: #b3a17c; }

/* ------------------------------------------------------------
   O. 地板上的刻痕
   ------------------------------------------------------------ */
#screen-scratch {
  background:
    radial-gradient(ellipse 60% 50% at 34% 55%, rgba(56, 42, 22, .45), transparent 72%),
    linear-gradient(180deg, #060504, #080604 70%, #040302);
}
.kh-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(30px, 5vw, 70px); padding: 4vh 5vw;
}
.kh-plane {
  position: relative; width: min(520px, 48vw); aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(95deg, rgba(255, 230, 180, .04) 0 2px, transparent 2px 30px),
    repeating-linear-gradient(88deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #7b5d37, #5b4325 52%, #3d2a12);
  border: 1px solid #3f2f19;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .85), inset 0 0 90px rgba(0, 0, 0, .8);
  border-radius: 3px;
}
.kh-groups {
  position: absolute; inset: 8% 6%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 4% 2%; place-items: center;
}
.kh-g { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kh-g-marks { display: flex; align-items: flex-end; gap: 10px; height: 62px; }
.kh-n {
  display: block; width: 9px; border-radius: 1px 1px 2px 2px;
  background: #1a1208;
}
.kh-n.deep {
  height: 50px;
  background: linear-gradient(180deg, #0a0603, #1d1409 70%, #2a1d0f);
  box-shadow: inset 0 -1px 0 rgba(255, 226, 170, .35), 0 0 0 1px rgba(0, 0, 0, .45);
}
.kh-n.shal {
  height: 14px;
  background: linear-gradient(180deg, rgba(255, 240, 208, .82), rgba(206, 180, 134, .5));
  box-shadow: 0 0 6px rgba(255, 230, 180, .16);
}
.kh-g-n { margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: #f2e4c2; text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 8px rgba(0, 0, 0, .75); }
.kh-hatch {
  position: absolute; left: 50%; bottom: 6%; width: 34%; height: 18%;
  transform: translateX(-50%) translateY(0);
  border: 1px dashed rgba(255, 210, 140, .3);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 10px; letter-spacing: .3em; color: rgba(255, 220, 170, .45);
  opacity: 0; transition: opacity .8s, transform .8s;
}
.kh-hatch.open { opacity: 1; transform: translateX(-50%) translateY(-6px); }

.kh-side { width: min(340px, 38vw); display: flex; flex-direction: column; gap: 14px; }
.kh-t { font-family: var(--serif); font-size: 19px; letter-spacing: .32em; color: #e2d0aa; }
.kh-legend { border: 1px solid #2f2617; padding: 12px 14px; background: rgba(30, 22, 12, .35); }
.kh-row { display: flex; align-items: flex-end; gap: 8px; height: 56px; margin-bottom: 8px; }
.kh-row b { font-family: var(--serif); font-size: 14px; color: #d9c69a; margin-left: 6px; }
.kh-note { font-family: var(--serif); font-size: 10.5px; line-height: 1.9; color: #8b7b5c; }
.kh-in-row { display: flex; gap: 8px; }
.kh-in-row input {
  flex: 1; background: rgba(0, 0, 0, .5); border: 1px solid #332b1d; color: #e8d7b0;
  font-family: var(--mono); font-size: 17px; letter-spacing: .42em; padding: 8px 12px; outline: none;
}
.kh-in-row input:focus { border-color: #8b0000; }
.kh-in-row button {
  background: transparent; border: 1px solid #4a3d28; color: #c9b48a;
  font-family: var(--serif); font-size: 13px; letter-spacing: .2em; padding: 0 18px; cursor: pointer;
}
.kh-in-row button:hover { border-color: #8b0000; color: #f0dcb4; }
.kh-msg { min-height: 40px; font-family: var(--serif); font-size: 11.5px; line-height: 1.95; color: #97875f; }
.kh-msg.good { color: #e8cf9a; }
.kh-btns { display: flex; gap: 10px; }
.kh-b {
  background: transparent; border: 1px solid #3d3322; color: #b3a17c;
  font-family: var(--serif); font-size: 11px; letter-spacing: .26em; padding: 7px 14px; cursor: pointer;
}
.sc-b:hover { border-color: #8b0000; color: #f0dcb4; }
.kh-b.ghost { border-color: #2a2318; color: #6f6248; }
.kh-b.ghost:hover { border-color: #4a3d28; color: #b3a17c; }

/* ------------------------------------------------------------
   P. 七行假记录
   ------------------------------------------------------------ */
.rt-anom {
  display: block; margin: 10px auto 0; background: transparent; border: 0;
  font-family: var(--serif); font-size: 10.5px; letter-spacing: .18em;
  color: #6b5b3c; cursor: pointer; padding: 4px 8px; transition: color .2s;
}
.rt-anom:hover { color: #d8c8a4; text-decoration: underline; text-underline-offset: 4px; }

#screen-anomaly { background: #040506; }
.an-wrap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 3.2vh 3.4vw 2vh;
}
.an-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #1b1a17; }
.an-t { font-family: var(--serif); font-size: 19px; letter-spacing: .34em; color: #d7dee5; }
.an-s { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: #5d6673; flex: 1; }
.an-count { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: #8b94a1; }
.an-body { flex: 1; display: flex; gap: 20px; min-height: 0; padding-top: 12px; }

.an-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.an-th {
  display: grid; grid-template-columns: 46px 96px 108px 108px 1fr 26px;
  gap: 10px; padding: 0 10px 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: #6d7787;
  border-bottom: 1px solid #1a1e24;
}
.an-th .an-th-d { text-align: right; }
.an-list {
  flex: 1; min-height: 0; overflow: auto; padding-right: 6px;
  border: 1px solid #14161a;
  background: linear-gradient(180deg, rgba(10, 12, 15, .9), rgba(6, 7, 9, .95));
  scrollbar-width: thin; scrollbar-color: #23272e transparent;
}
.an-list::-webkit-scrollbar { width: 6px; }
.an-list::-webkit-scrollbar-thumb { background: #23272e; }
.an-row {
  display: grid; grid-template-columns: 46px 96px 108px 108px 1fr 26px;
  gap: 10px; align-items: center; width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid rgba(60, 66, 76, .16);
  padding: 7px 10px; cursor: pointer; text-align: left;
  font-family: var(--mono); font-size: 11px; color: #8c96a3;
  transition: background .18s, color .18s;
}
.an-row:hover { background: rgba(120, 140, 170, .07); color: #c8d2dd; }
.an-row .an-no { color: #4f5866; }
.an-row .an-name { color: #a9b4c1; }
.an-row .an-col { color: #7f8a98; }
.an-row .an-state { color: #6f7a88; }
.an-row .an-date { color: #5b6472; text-align: right; }
.an-row .an-flag { font-family: var(--serif); font-size: 11px; color: #c4463a; text-align: center; }
.an-row.on {
  background: rgba(150, 30, 24, .14);
  box-shadow: inset 2px 0 0 #8b1a12;
  color: #e4d6c4;
}
.an-row.on .an-no, .an-row.on .an-date { color: #b08a6a; }
.an-row.bad { animation: anBad .9s ease; }
@keyframes anBad {
  0%, 100% { background: rgba(150, 30, 24, .1); }
  40% { background: rgba(200, 40, 30, .34); }
}

.an-side {
  width: min(300px, 28vw); display: flex; flex-direction: column; gap: 12px;
  border-left: 1px solid #1b1a17; padding-left: 18px;
}
.an-rule-t { font-family: var(--serif); font-size: 11px; letter-spacing: .3em; color: #8b7b58; }
.an-rule { margin: 0; padding-left: 16px; }
.an-rule li {
  font-family: var(--serif); font-size: 10.5px; line-height: 1.95; color: #7e7563; margin-bottom: 5px;
}
.an-reveal {
  white-space: pre-wrap; font-family: var(--mono); font-size: 10px; line-height: 1.95;
  color: #9aa6b4; padding: 10px; border: 1px dashed #23272e; min-height: 0;
}
.an-reveal:empty { display: none; }
.an-msg {
  min-height: 38px; font-family: var(--serif); font-size: 11px; line-height: 1.95; color: #97875f;
}
.an-msg.good { color: #cfd6de; }
.an-btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.an-b {
  background: transparent; border: 1px solid #2b313a; color: #98a2b0;
  font-family: var(--serif); font-size: 10.5px; letter-spacing: .22em; padding: 6px 12px; cursor: pointer;
  transition: all .2s;
}
.an-b:hover { border-color: #8b0000; color: #e4d6c4; }
.an-b.ghost { border-color: #1e232a; color: #6b7480; }
.an-b.ghost:hover { border-color: #333a44; color: #98a2b0; }

/* ------------------------------------------------------------
   Q. 店里的平面图（自由走动）
   ------------------------------------------------------------ */
.roam {
  position: fixed; inset: 0; z-index: 9300; display: none;
  align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(3, 3, 2, .84); backdrop-filter: blur(4px);
}
.roam.on { display: flex; animation: roamIn .28s ease both; }
@keyframes roamIn { from { opacity: 0; transform: scale(.99); } }
.roam-page {
  width: min(900px, 100%); max-height: 90vh; overflow: auto;
  background: linear-gradient(168deg, #14110c, #0d0b08 60%, #0a0907);
  border: 1px solid #3a3020;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .85), inset 0 0 80px rgba(90, 60, 20, .07);
  padding: 24px 28px 18px;
}
.roam-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #251e13; }
.roam-t { font-family: var(--serif); font-size: 17px; letter-spacing: .34em; color: #e2d0aa; }
.roam-s { font-family: var(--serif); font-size: 11px; color: #7e6f52; flex: 1; letter-spacing: .04em; }
.roam-x {
  background: transparent; border: 1px solid #3a3020; color: #b3a17c;
  font-family: var(--mono); font-size: 12px; padding: 3px 10px; cursor: pointer;
}
.roam-x:hover { border-color: #8b0000; color: #f0dcb4; }
.roam-body { padding-top: 16px; }
.roam-zone {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .3em; color: #94805a;
}
.roam-zone span { flex: none; }
.roam-zone::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #2a2317, transparent); }
.roam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.roam-p {
  position: relative; text-align: left; padding: 10px 12px; cursor: pointer;
  background: rgba(40, 30, 14, .18); border: 1px solid #241d13;
  transition: all .2s; overflow: hidden;
}
.roam-p:hover { border-color: #6b4a1a; background: rgba(70, 50, 20, .24); }
.roam-p .rp-n {
  display: block; font-family: var(--serif); font-size: 12.5px; letter-spacing: .1em; color: #cbb894;
}
.roam-p .rp-d {
  display: block; margin-top: 4px; font-family: var(--serif); font-size: 10px;
  line-height: 1.7; color: #8f8163;
}
.roam-p.lock { cursor: not-allowed; opacity: .42; }
.roam-p.lock:hover { border-color: #241d13; background: rgba(40, 30, 14, .18); }
.roam-p .rp-k {
  position: absolute; right: 8px; top: 8px;
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: #4f4632;
}
.roam-foot {
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed #251e13;
  font-family: var(--serif); font-size: 10px; color: #6b5c3f; letter-spacing: .04em; text-align: center;
}
.roam-foot b { color: #b3a17c; font-weight: 500; }
@media (max-width: 900px) {
  .roam-grid { grid-template-columns: repeat(2, 1fr); }
  .roam-page { padding: 18px 16px 14px; }
}

/* ============================================================
   4. 里间 —— 七只柜子，三十五件东西，六个还站着的人
   ============================================================ */
#screen-space { background: #050605; }
.sp-wrap {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(96,110,96,.13), transparent 62%),
    radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.9), transparent 60%),
    #050605;
  perspective: 900px; perspective-origin: 50% 46%;
  user-select: none;
}
.sp-hall {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background:
    repeating-linear-gradient(90deg, rgba(190,180,150,.05) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, rgba(18,20,17,0), #0b0d0a 60%);
}
.sp-fog {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(120,140,120,.06), transparent 40%),
    radial-gradient(ellipse at 82% 38%, rgba(120,140,120,.05), transparent 38%);
  animation: spFog 26s ease-in-out infinite alternate;
}
@keyframes spFog {
  from { opacity: .55; transform: translate3d(-1%,0,0) }
  to { opacity: 1; transform: translate3d(1.5%,-1%,0) }
}

/* --- 七只柜子 --- */
.sp-cases {
  position: absolute; left: 50%; top: 12%; transform: translateX(-50%);
  display: flex; gap: 14px; align-items: flex-end;
  transition: transform .9s cubic-bezier(.2,.9,.2,1), filter .6s;
}
.sp-case {
  position: relative; width: 108px;
  transition: transform .9s cubic-bezier(.2,.9,.2,1), opacity .7s;
}
.sp-case-body {
  position: relative; height: 342px;
  border: 1px solid rgba(214,206,180,.16);
  border-top: none;
  background:
    linear-gradient(180deg, rgba(214,206,180,.05), rgba(214,206,180,.01) 40%, rgba(0,0,0,.4)),
    rgba(10,12,10,.55);
  box-shadow: inset 0 0 34px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.6);
  display: flex; flex-direction: column-reverse; justify-content: flex-start;
  align-items: center; gap: 11px; padding: 16px 6px;
}
.sp-case-top {
  height: 10px; border: 1px solid rgba(214,206,180,.22);
  background: linear-gradient(180deg, rgba(214,206,180,.16), rgba(214,206,180,.04));
}
.sp-case-plate {
  margin-top: 8px; text-align: center;
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  color: #5d5747;
}
.sp-empty .sp-case-body {
  border-style: dashed; border-color: rgba(214,206,180,.1);
  background: rgba(0,0,0,.25);
  align-items: center; justify-content: center;
}
.sp-case-empty {
  font-family: var(--serif); font-size: 11px; line-height: 2.2;
  letter-spacing: .2em; color: #4a4436; text-align: center;
}
.sp-case-empty i { font-style: normal; font-size: 9px; color: #383326; letter-spacing: .3em }

/* 从侧面看：柜子侧过去 */
.sp-wrap[data-view="side"] .sp-cases {
  transform: translateX(-50%) rotateY(-16deg) translateZ(-30px);
  filter: brightness(.92);
}
.sp-wrap[data-view="side"] .sp-case:nth-child(odd) { transform: translateY(26px) }
.sp-wrap[data-view="side"] .sp-case:nth-child(even) { transform: translateY(-18px) }

/* 倒吊看：整排翻过来 */
.sp-wrap[data-view="hang"] .sp-cases {
  transform: translateX(-50%) rotate(178deg) scale(.92);
  filter: brightness(.86) hue-rotate(-8deg);
}
.sp-wrap[data-view="hang"] .sp-case-plate { opacity: 0 }
.sp-wrap[data-view="hang"] .sp-relic { transform: rotate(178deg) }
.sp-wrap[data-view="hang"] .sp-tip {
  transform: rotate(178deg) translateY(-30px);
}

/* 错位：第七只接上第八只 */
.sp-wrap[data-shift="1"] .sp-case[data-case="6"] { transform: translateY(38px) }
.sp-wrap[data-shift="1"] .sp-case[data-case="7"] { transform: translateY(-190px) }
.sp-wrap[data-shift="1"] .sp-case[data-case="7"] .sp-case-top {
  background: linear-gradient(180deg, rgba(127,220,192,.5), rgba(127,220,192,.1));
  border-color: rgba(127,220,192,.7);
  box-shadow: 0 0 24px rgba(127,220,192,.35);
}

/* --- 一件东西 --- */
.sp-relic {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(214,206,180,.2);
  background: radial-gradient(circle at 38% 32%, rgba(214,206,180,.16), rgba(0,0,0,.5));
  color: #c9c0a6; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: transform .25s, box-shadow .25s, opacity .5s, border-color .25s;
}
.sp-relic:hover {
  transform: scale(1.14); border-color: rgba(214,206,180,.6);
  box-shadow: 0 0 18px rgba(214,206,180,.25);
}
.sp-relic.read { border-color: rgba(214,206,180,.42) }
.sp-relic.got {
  border-color: rgba(127,220,192,.7); color: #a8e8d2;
  box-shadow: inset 0 0 12px rgba(127,220,192,.22);
}
.sp-tip {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  margin-top: 4px; white-space: nowrap;
  font-family: var(--serif); font-size: 9px; letter-spacing: .06em; color: #8d8471;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.sp-relic:hover .sp-tip { opacity: 1 }

/* 视角可见性：正面看不见侧面与倒吊的东西 */
.sp-wrap[data-view="front"] .sp-relic[data-vis="side"],
.sp-wrap[data-view="front"] .sp-relic[data-vis="hang"],
.sp-wrap[data-view="front"] .sp-relic[data-vis="shift"] { opacity: 0; pointer-events: none }
.sp-wrap[data-view="side"] .sp-relic[data-vis="front"],
.sp-wrap[data-view="side"] .sp-relic[data-vis="hang"],
.sp-wrap[data-view="side"] .sp-relic[data-vis="shift"] { opacity: .12; pointer-events: none }
.sp-wrap[data-view="hang"] .sp-relic[data-vis="front"],
.sp-wrap[data-view="hang"] .sp-relic[data-vis="side"] { opacity: .08; pointer-events: none }
.sp-wrap[data-view="hang"][data-shift="1"] .sp-relic[data-vis="shift"] {
  opacity: 1; pointer-events: auto;
  border-color: rgba(127,220,192,.85);
  animation: spPulse 2.4s ease-in-out infinite;
}
@keyframes spPulse {
  0%,100% { box-shadow: 0 0 0 rgba(127,220,192,0) }
  50% { box-shadow: 0 0 26px rgba(127,220,192,.5) }
}

/* --- 六个纸人 --- */
.sp-figs {
  position: absolute; left: 0; right: 0; bottom: 74px; height: 300px;
  pointer-events: none;
}
.sp-fig {
  position: absolute; bottom: 0; left: calc(6% + var(--i) * 14.6%);
  width: 64px; height: 244px; pointer-events: auto; cursor: pointer;
  opacity: .62; transition: opacity .3s, transform .3s, filter .3s;
}
.sp-fig:hover { opacity: 1; transform: translateY(-6px) }
.sp-fig-body {
  position: absolute; left: 8px; right: 8px; bottom: 0; top: 42px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(0,0,0,.55) 49.5%, transparent 51%),
    linear-gradient(180deg, rgba(226,220,200,.3), rgba(226,220,200,.16) 30%, rgba(226,220,200,.05));
  clip-path: polygon(26% 0, 74% 0, 86% 46%, 80% 46%, 88% 100%, 12% 100%, 20% 46%, 14% 46%);
  box-shadow: 0 0 26px rgba(226,220,200,.08);
}
.sp-fig-head {
  position: absolute; left: 50%; top: 6px; width: 30px; height: 34px; margin-left: -15px;
  background: rgba(226,220,200,.34); border-radius: 50% 50% 44% 44%;
  box-shadow: 0 0 18px rgba(226,220,200,.12);
}
.sp-fig-head::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; width: 1px; height: 10px;
  background: rgba(226,220,200,.25); transform: translateX(-50%);
}
.sp-fig:nth-child(2n) { transform: rotate(-1.2deg) }
.sp-fig:nth-child(3n) { transform: rotate(1.6deg) }
.sp-fig-tip {
  position: absolute; left: 50%; top: -20px; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--serif); font-size: 10px;
  color: #9a917c; opacity: 0; transition: opacity .2s;
}
.sp-fig:hover .sp-fig-tip { opacity: 1 }
.sp-fig.torn { opacity: .12; filter: grayscale(1) blur(1px); pointer-events: none }

/* --- HUD --- */
.sp-hud {
  position: absolute; left: 0; right: 0; bottom: 0; height: 74px;
  display: flex; align-items: center; gap: 22px; padding: 0 30px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  z-index: 30;
}
.sp-views { display: flex; gap: 8px }
.sp-vb {
  position: relative; padding: 7px 14px; cursor: pointer;
  background: rgba(214,206,180,.04); border: 1px solid rgba(214,206,180,.16);
  color: #8d8471; font-family: var(--serif); font-size: 12px; letter-spacing: .18em;
  transition: all .25s;
}
.sp-vb b { font-weight: 400 } .sp-vb i { font-style: normal; font-size: 8px; opacity: .5; margin-left: 7px }
.sp-vb:hover { color: #d6ceb4; border-color: rgba(214,206,180,.4) }
.sp-vb.on { color: #d6ceb4; background: rgba(214,206,180,.12); border-color: rgba(214,206,180,.55) }
.sp-count {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: #6d6553;
}
.sp-count b { color: #c9c0a6; font-weight: 400 }
.sp-acts { margin-left: auto; display: flex; gap: 10px }
.sp-shift, .sp-back {
  padding: 8px 18px; cursor: pointer;
  background: transparent; border: 1px solid rgba(214,206,180,.22);
  color: #9a917c; font-family: var(--serif); font-size: 12px; letter-spacing: .2em;
  transition: all .25s;
}
.sp-shift:hover:not(:disabled), .sp-back:hover { color: #d6ceb4; border-color: rgba(214,206,180,.6) }
.sp-shift:disabled { opacity: .3; cursor: default }
.sp-shift:not(:disabled) { color: #7fdcc0; border-color: rgba(127,220,192,.5) }

/* --- 卡片：一件东西的一生 --- */
.sp-card {
  position: absolute; right: 34px; top: 50px; width: 430px; max-height: 74%;
  overflow-y: auto; padding: 20px 22px 18px;
  background: linear-gradient(180deg, rgba(14,15,13,.97), rgba(9,10,9,.98));
  border: 1px solid rgba(214,206,180,.2);
  box-shadow: 0 30px 70px rgba(0,0,0,.7), inset 0 0 60px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none;
  transition: all .35s cubic-bezier(.2,.9,.2,1); z-index: 40;
}
.sp-card.on { opacity: 1; transform: none; pointer-events: auto }
.sp-card::-webkit-scrollbar { width: 3px }
.sp-card::-webkit-scrollbar-thumb { background: #3a352a }
.spc-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px }
.spc-ic {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1px solid rgba(214,206,180,.3); color: #d6ceb4;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.spc-id b { display: block; font-family: var(--serif); font-size: 17px; color: #e2dac2; letter-spacing: .1em; font-weight: 400 }
.spc-id i { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9px; font-style: normal; color: #6d6553; letter-spacing: .06em }
.spc-x {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: #6d6553; font-size: 20px; line-height: 1; padding: 0 2px;
}
.spc-x:hover { color: #d6ceb4 }
.spc-relic { padding: 12px 0 14px; border-top: 1px solid rgba(214,206,180,.1); border-bottom: 1px solid rgba(214,206,180,.1) }
.spc-relic span { font-family: var(--mono); font-size: 9px; color: #5d5747; letter-spacing: .14em }
.spc-relic b { display: block; margin: 6px 0 4px; font-family: var(--serif); font-size: 14px; color: #cfc7ad; font-weight: 400 }
.spc-relic p { font-family: var(--serif); font-size: 11px; line-height: 1.7; color: #8d8471 }
.spc-logs { padding: 12px 0 }
.spc-log {
  position: relative; padding-left: 20px; margin: 0 0 12px;
  font-family: var(--serif); font-size: 12px; line-height: 1.95; color: #b3aa93;
}
.spc-log i {
  position: absolute; left: 0; top: 2px;
  font-family: var(--mono); font-size: 9px; font-style: normal; color: #4f4632;
}
.spc-last {
  margin-top: 6px; padding-top: 12px; border-top: 1px dashed rgba(214,206,180,.14);
  font-family: var(--serif); font-size: 12px; line-height: 1.9; color: #9a917c; letter-spacing: .04em;
}
.spc-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px }
.spc-acts button {
  padding: 8px 16px; cursor: pointer;
  background: rgba(214,206,180,.05); border: 1px solid rgba(214,206,180,.24);
  color: #b3aa93; font-family: var(--serif); font-size: 11px; letter-spacing: .16em;
  transition: all .22s;
}
.spc-acts button:hover { color: #e2dac2; border-color: rgba(214,206,180,.6); background: rgba(214,206,180,.1) }
.spc-acts button.spc-tear { color: #b06a5a; border-color: rgba(176,106,90,.35) }
.spc-acts button.spc-tear:hover { color: #e08d7a; border-color: rgba(176,106,90,.8) }
.spc-got { font-family: var(--mono); font-size: 9px; color: #7fdcc0; letter-spacing: .1em; align-self: center }
.spc-opts button { flex: 1 1 46% }

/* --- 旁白 --- */
.sp-say {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  max-width: 620px; text-align: center;
  font-family: var(--serif); font-size: 13px; line-height: 2; color: #cfc7ad;
  text-shadow: 0 2px 18px rgba(0,0,0,.95); white-space: pre-line;
  opacity: 0; transition: opacity .6s; pointer-events: none; z-index: 35;
}
.sp-say.on { opacity: 1 }

@media (max-width: 1100px) {
  .sp-card { width: 360px; right: 16px }
  .sp-cases { gap: 8px; transform: translateX(-50%) scale(.86) }
}

/* ============================================================
   5. 对局 —— 他出题，你答
   ============================================================ */
.duel {
  position: fixed; inset: 0; z-index: 9500;
  display: none; align-items: center; justify-content: center;
  background: rgba(2,3,2,.82); backdrop-filter: blur(3px);
}
.duel.on { display: flex }
.duel-in {
  width: min(560px, 92vw); padding: 26px 28px 22px;
  background: linear-gradient(180deg, #14150f, #0a0b08);
  border: 1px solid rgba(214,206,180,.22);
  box-shadow: 0 40px 90px rgba(0,0,0,.8);
}
.duel-top {
  display: flex; align-items: center; gap: 8px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(214,206,180,.12);
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: #6d6553;
}
.duel-top b { color: #d6ceb4; font-weight: 400; font-size: 18px; margin-left: auto }
.duel-top i { font-style: normal; font-size: 10px; color: #4f4632 }
.duel-x { margin-left: 12px; background: none; border: none; color: #5d5747; font-size: 20px; cursor: pointer }
.duel-x:hover { color: #d6ceb4 }
.duel-q {
  padding: 20px 0 18px; font-family: var(--serif); font-size: 15px; line-height: 1.9;
  color: #e2dac2; letter-spacing: .03em;
}
.duel-opts { display: grid; gap: 9px }
.duel-opts button {
  padding: 12px 16px; text-align: left; cursor: pointer;
  background: rgba(214,206,180,.03); border: 1px solid rgba(214,206,180,.16);
  color: #b3aa93; font-family: var(--serif); font-size: 13px; letter-spacing: .04em;
  transition: all .2s;
}
.duel-opts button:hover:not(:disabled) { color: #e2dac2; border-color: rgba(214,206,180,.5); background: rgba(214,206,180,.08) }
.duel-opts button.ok { color: #9ee8cc; border-color: rgba(127,220,192,.6); background: rgba(127,220,192,.08) }
.duel-opts button.no { color: #d08a76; border-color: rgba(176,106,90,.6); background: rgba(176,106,90,.07) }
.duel-opts button:disabled { cursor: default; opacity: .75 }
.duel-ft {
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(214,206,180,.1);
  font-family: var(--serif); font-size: 11px; line-height: 1.8; color: #6d6553;
}

/* 终章：你留下多少痕迹 */
.fn-state {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px;
  margin: 12px 0 2px; padding: 12px 0;
  border-top: 1px dashed rgba(214,206,180,.12);
  border-bottom: 1px dashed rgba(214,206,180,.12);
}
.fn-state span { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.fn-state i { font-family: var(--mono); font-size: 8px; font-style: normal; color: #4f4632; letter-spacing: .1em }
.fn-state b {
  font-family: var(--mono); font-size: 11px; font-weight: 400; color: #9a917c;
  line-height: 1.55; overflow-wrap: anywhere;
}
.duel-opts button.duel-end { text-align: center; letter-spacing: .3em; color: #7fdcc0; border-color: rgba(127,220,192,.45) }
.duel-ft { white-space: pre-line }

/* 档案册 · 里间页签 */
.ar-sp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 4px }
.ar-spcase {
  border-left: 1px solid rgba(138,106,58,.28); padding: 2px 0 2px 10px;
}
.ar-spcase b { display: block; font-family: var(--mono); font-size: 9px; font-weight: 400; color: #8a6a3a; letter-spacing: .1em }
.ar-spcase i { display: block; font-family: var(--serif); font-size: 9.5px; font-style: normal; color: #463c2c; margin-bottom: 6px; letter-spacing: .14em }
.ar-spcase.empty { border-left-style: dashed; opacity: .8 }
.ar-spcase.empty i { line-height: 1.7; letter-spacing: .04em }
.ar-spm {
  display: flex; align-items: baseline; gap: 7px; padding: 3px 0;
  border-bottom: 1px dashed rgba(80,64,40,.13);
}
.ar-spm span { font-family: var(--mono); font-size: 8.5px; color: #4a4136; flex: 0 0 18px }
.ar-spm em { font-family: var(--serif); font-size: 10.5px; font-style: normal; color: #4a4136; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ar-spm u { font-family: var(--mono); font-size: 8px; text-decoration: none; color: #8a6a3a; letter-spacing: .1em }
.ar-spm.on em { color: #a8977a }
.ar-spm.on span { color: #8a6a3a }
.ar-spm.got em { color: #7fdcc0 }
.ar-spm.got span { color: #7fdcc0 }
.ar-spgo { position: sticky; bottom: -18px; margin-top: 12px; padding: 14px 0 18px;
  background: linear-gradient(180deg, rgba(8,7,5,0) 0%, #080705 34%); }
.ar-spgo button {
  width: 100%; cursor: pointer; background: none; padding: 9px 0;
  border: 1px solid rgba(214,206,180,.22); color: #a8977a;
  font-family: var(--serif); font-size: 11.5px; letter-spacing: .3em;
  transition: .3s;
}
.ar-spgo button:hover { color: #e8dfc6; border-color: rgba(214,206,180,.5); background: rgba(214,206,180,.05) }

/* 对局：题干可能两行 */
.duel-q { white-space: pre-line }

/* 里间 · 墙上的剪报 */
.sp-clips {
  margin-left: 18px; padding: 7px 14px; cursor: pointer;
  background: transparent; border: 1px dashed rgba(214,206,180,.18);
  color: #7a715c; font-family: var(--serif); font-size: 11px; letter-spacing: .12em;
  transition: all .25s;
}
.sp-clips b { color: #c9c0a6; font-weight: 400; font-family: var(--mono) }
.sp-clips:hover { color: #d6ceb4; border-color: rgba(214,206,180,.5); background: rgba(214,206,180,.04) }
.sp-clips.all { color: #7fdcc0; border-color: rgba(127,220,192,.4) }
.sp-clips.all b { color: #7fdcc0 }

.nw-wrap {
  position: fixed; inset: 0; z-index: 7700; display: none;
  align-items: center; justify-content: center;
  background: rgba(3,3,2,.93);
}
.nw-wrap.on { display: flex; animation: nwIn .5s ease both }
@keyframes nwIn { from { opacity: 0 } to { opacity: 1 } }

.nw-paper {
  position: relative;
  width: min(880px, 93vw); height: min(86vh, 780px); overflow: auto;
  background:
    radial-gradient(circle at 18% 12%, rgba(120,96,58,.16), transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(120,96,58,.13), transparent 44%),
    linear-gradient(178deg, #e8dfc9 0%, #e2d8c0 46%, #d9cdb2 100%);
  color: #2c2418; padding: 32px 44px 40px;
  box-shadow: 0 40px 120px rgba(0,0,0,.92), inset 0 0 90px rgba(120,96,58,.18);
  font-family: var(--serif);
}
.nw-paper::-webkit-scrollbar { width: 6px }
.nw-paper::-webkit-scrollbar-thumb { background: rgba(80,64,40,.35) }

.nw-mast {
  text-align: center; font-size: 26px; letter-spacing: .34em; color: #241d13;
  padding-left: .34em; font-weight: 400;
}
.nw-rule {
  height: 3px; margin: 8px 0 0; background: #2c2418;
  box-shadow: 0 3px 0 -1px #2c2418;
}
.nw-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin: 10px 0 4px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .16em; color: #6b5c44;
}
.nw-close {
  position: absolute; top: 14px; right: 18px; cursor: pointer;
  background: transparent; border: 1px solid rgba(44,36,24,.3); color: #4a3f2c;
  font-family: var(--serif); font-size: 10.5px; letter-spacing: .14em; padding: 5px 10px;
}
.nw-close:hover { background: #2c2418; color: #e8dfc9; border-color: #2c2418 }

.nw-list { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px }
.nw-item { break-inside: avoid; padding-top: 10px; border-top: 1px solid rgba(44,36,24,.22) }
.nw-date { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: #7a6a4e }
.nw-head { font-size: 14px; line-height: 1.5; margin: 6px 0 7px; color: #1f1a11; letter-spacing: .02em }
.nw-body { font-size: 10.5px; line-height: 1.95; color: #453a26; text-align: justify }
.nw-edge {
  margin-top: 9px; padding-left: 10px; border-left: 2px solid rgba(120,64,32,.4);
  font-size: 11px; line-height: 1.85; color: #6b3a22; font-style: italic;
}
.nw-cut { margin-top: 8px; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; color: #8d7d5e; line-height: 1.8 }

.nw-item.off { border-top-style: dashed; opacity: .55 }
.nw-item.off .nw-void {
  margin: 8px 0 4px; font-size: 10.5px; line-height: 1.9; color: #8d7d5e; font-style: italic;
}
.nw-foot {
  margin-top: 26px; padding-top: 16px; border-top: 1px dashed rgba(44,36,24,.3);
  font-size: 11px; line-height: 2.1; color: #5a4c34; white-space: pre-line; letter-spacing: .02em;
}

/* ============================================================
   第六章 · 收 摊（最后一班）
   ============================================================ */
#screen-duty { background: #07060a; }

.dt-wrap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; padding: 3.4vh 4vw 2.4vh;
  background:
    radial-gradient(ellipse 62% 46% at 50% 8%, rgba(196,132,54,.13), transparent 68%),
    radial-gradient(ellipse 90% 60% at 50% 108%, rgba(120,74,30,.10), transparent 70%),
    linear-gradient(180deg, #08060a 0%, #0a0806 42%, #060508 100%);
}

/* --- 灯 --- */
.dt-lamp {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2px; height: 15vh; pointer-events: none;
}
.dt-lamp i {
  position: absolute; left: -13px; top: 0; width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd9a0 0%, #e8a94e 34%, rgba(200,120,40,.16) 66%, transparent 74%);
  filter: blur(.6px);
  animation: dtFlame 2.6s ease-in-out infinite;
}
.dt-lamp b {
  position: absolute; left: -110px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(224,160,74,.20) 0%, rgba(190,120,50,.07) 42%, transparent 68%);
}
@keyframes dtFlame {
  0%, 100% { transform: scale(1) translateY(0); opacity: .92 }
  34% { transform: scale(1.07) translateY(-1px); opacity: 1 }
  61% { transform: scale(.95) translateY(1px); opacity: .86 }
}
.dt-lamp[data-lvl="low"] b { opacity: .55 }
.dt-lamp[data-lvl="dim"] b { opacity: .78 }
.dt-lamp[data-lvl="good"] b { opacity: 1 }

/* --- 顶部：第几位 --- */
.dt-top { text-align: center; min-height: 58px; flex: 0 0 auto }
.dt-no {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .42em;
  color: #7a6544; opacity: 0; transition: opacity .5s;
}
.dt-wrap[data-stage="say"] .dt-no,
.dt-wrap[data-stage="ask"] .dt-no,
.dt-wrap[data-stage="write"] .dt-no,
.dt-wrap[data-stage="stamp"] .dt-no { opacity: 1 }
.dt-name {
  margin-top: 8px; font-family: var(--serif); font-size: 25px; letter-spacing: .3em;
  text-indent: .3em; color: #ecdfc4;
  text-shadow: 0 0 26px rgba(226,166,88,.26);
}
.dt-meta {
  margin-top: 7px; font-family: var(--serif); font-size: 11px; letter-spacing: .16em;
  color: #857054;
}

/* --- 押品条 --- */
.dt-relic {
  margin-top: 12px; display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; min-height: 26px;
  opacity: 0; transition: opacity .6s .2s;
}
.dt-wrap[data-stage="say"] .dt-relic,
.dt-wrap[data-stage="ask"] .dt-relic,
.dt-wrap[data-stage="write"] .dt-relic,
.dt-wrap[data-stage="stamp"] .dt-relic { opacity: 1 }
.dt-rl-k {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em;
  color: #6b5a42; border: 1px solid rgba(160,130,80,.26); padding: 3px 7px;
}
.dt-rl-v { font-family: var(--serif); font-size: 12px; letter-spacing: .1em; color: #c9b795 }
.dt-rl-v + .dt-rl-k { margin-left: 12px }

/* --- 独白 --- */
.dt-say {
  width: min(720px, 94vw); flex: 1 1 auto; min-height: 0;
  margin-top: 12px; overflow-y: auto; padding-right: 8px;
  flex: 1 1 0;
  display: flex; flex-direction: column; justify-content: safe center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 100%);
  scrollbar-width: thin; scrollbar-color: rgba(160,130,80,.3) transparent;
}
.dt-say::-webkit-scrollbar { width: 4px }
.dt-say::-webkit-scrollbar-thumb { background: rgba(160,130,80,.28) }
.dt-l {
  font-family: var(--serif); font-size: 15px; line-height: 2.15; letter-spacing: .06em;
  color: #ded2b8; margin: 0 0 7px; white-space: pre-line;
  opacity: 0; animation: dtLine .85s ease forwards;
}
@keyframes dtLine { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

.dt-l.dt-q { color: #a89373; margin-top: 16px; }
.dt-l.dt-r { color: #cbb995; padding-left: 14px; border-left: 1px solid rgba(160,130,80,.24) }
.dt-l.dt-r.dt-flat { color: #7d6f58 }
.dt-l.dt-rv { color: #f0e4c8; }
.dt-l.dt-rv:nth-child(1) { margin-top: 4px }
.dt-l.dt-line { color: #7f7158; font-size: 12.5px; letter-spacing: .14em; margin-top: 14px }

/* --- 操作区 --- */
.dt-acts { width: min(720px, 94vw); margin-top: 12px; min-height: 56px;
  flex: 0 0 auto; max-height: 46vh; overflow-y: auto; }
.dt-acts::-webkit-scrollbar { width: 4px }
.dt-acts::-webkit-scrollbar-thumb { background: rgba(160,130,80,.28) }
.dt-ask-h {
  font-family: var(--mono); font-size: 9px; letter-spacing: .36em;
  color: #6f5e44; margin-bottom: 9px;
}
.dt-ask-warn { font-family: var(--serif); font-size: 10.5px; font-style: normal; letter-spacing: .04em; color: #8a6a3a; margin-left: 8px }

.dt-opts { display: flex; flex-direction: column; gap: 7px; }
.dt-opt {
  text-align: left; cursor: pointer; padding: 10px 14px;
  background: linear-gradient(180deg, rgba(24,19,14,.9), rgba(12,10,8,.94));
  border: 1px solid rgba(160,130,80,.2); color: #cbbda1;
  font-family: var(--serif); font-size: 13px; letter-spacing: .06em; line-height: 1.6;
  transition: all .2s;
}
.dt-opt:hover:not(:disabled) {
  border-color: rgba(212,168,96,.6); color: #f2e6cc;
  background: linear-gradient(180deg, rgba(40,31,20,.94), rgba(20,16,11,.96));
  transform: translateX(3px);
}
.dt-opt:disabled { opacity: .3; cursor: not-allowed }

.dt-opts-w .dt-w { padding: 9px 14px }
.dt-w b {
  display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 400;
  letter-spacing: .24em; color: #b08c52; margin-bottom: 4px;
}
.dt-w i { display: block; font-style: normal; font-size: 11.5px; line-height: 1.7; color: #93866e }
.dt-w:hover:not(:disabled) i { color: #c4b696 }
.dt-w-rule b { color: #8fa89c }
.dt-w-theirs b { color: #a8766a }
.dt-w-refuse b { color: #7f8a74 }

.dt-lg-hint {
  margin-top: 8px; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .1em; color: #5e5138;
}

/* --- 戳 --- */
.dt-stamp { text-align: center; padding: 6px 0; animation: dtStamp .55s cubic-bezier(.2,1.5,.4,1) both }
@keyframes dtStamp { from { opacity: 0; transform: scale(1.5) rotate(-6deg) } to { opacity: 1; transform: none } }
.dt-stamp-k { font-family: var(--mono); font-size: 9px; letter-spacing: .3em; color: #6f5e44 }
.dt-stamp-v {
  margin-top: 8px; display: inline-block; padding: 5px 20px;
  font-family: var(--serif); font-size: 17px; letter-spacing: .36em; text-indent: .36em;
  border: 1px solid currentColor;
}
.dt-stamp-kept .dt-stamp-v { color: #7fdcc0 }
.dt-stamp-stripped .dt-stamp-v { color: #c9a45c }
.dt-stamp-voided .dt-stamp-v { color: #b06a5c }
.dt-stamp-refused .dt-stamp-v { color: #8a9a80 }
.dt-stamp-seat .dt-stamp-v { color: #d9c9a4 }

/* --- 账面 --- */
.dt-ledger {
  width: min(720px, 94vw); margin-top: 12px;
  display: flex; align-items: center; gap: 11px;
}
.dt-lg-k { font-family: var(--mono); font-size: 8.5px; letter-spacing: .22em; color: #6b5a42 }
.dt-lg-track {
  flex: 1; height: 2px; background: rgba(160,130,80,.14); position: relative; overflow: hidden;
}
.dt-lg-track i {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, rgba(200,140,60,.5), #e8b268);
  transition: width .6s cubic-bezier(.3,1,.4,1);
}
.dt-lg-n { font-family: var(--mono); font-size: 10px; color: #b08c52; min-width: 22px; text-align: right }

/* --- 开场那张纸 --- */
.dt-note {
  width: min(430px, 90vw); margin: 2vh auto 0; padding: 26px 30px;
  background: linear-gradient(178deg, #e6dcc4 0%, #dcd0b4 100%);
  color: #241d13; box-shadow: 0 26px 70px rgba(0,0,0,.85), inset 0 0 50px rgba(120,96,58,.14);
  transform: rotate(-.7deg);
  animation: dtNote .9s ease both;
}
@keyframes dtNote { from { opacity: 0; transform: rotate(-.7deg) translateY(14px) } to { opacity: 1 } }
.dt-note-t {
  font-family: var(--serif); font-size: 15px; letter-spacing: .4em; text-indent: .4em;
  text-align: center; color: #2a2116;
}
.dt-note-b {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(40,32,20,.24);
  font-family: var(--serif); font-size: 12.5px; line-height: 2.1; color: #3a2f20; letter-spacing: .04em;
}
.dt-note-s {
  margin-top: 16px; font-family: var(--serif); font-size: 10.5px; color: #6b5b40;
  font-style: italic; text-align: right;
}

/* --- 按钮 --- */
.dt-btn {
  cursor: pointer; background: none; padding: 12px 46px;
  border: 1px solid rgba(200,160,96,.34); color: #cbb08a;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .4em; text-indent: .4em;
  transition: all .25s;
}
.dt-btn:hover { color: #f6ead0; border-color: rgba(216,178,110,.8); background: rgba(200,160,96,.07) }
.dt-btn-go { display: block; margin: 0 auto }

/* --- 打烊结算 --- */
.dt-sum {
  position: absolute; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center;
  background: rgba(4,3,3,.95); padding: 3vh 4vw;
}
.dt-sum.on { display: flex; animation: dtSumIn .7s ease both }
@keyframes dtSumIn { from { opacity: 0 } to { opacity: 1 } }
.dt-sum-in {
  width: min(780px, 96vw); max-height: 92vh; overflow-y: auto;
  padding: 30px 34px 26px; border: 1px solid rgba(160,130,80,.22);
  background: linear-gradient(180deg, rgba(16,13,10,.98), rgba(8,7,6,.99));
  box-shadow: 0 40px 120px #000;
}
.dt-sum-h {
  font-family: var(--serif); font-size: 22px; letter-spacing: .5em; text-indent: .5em;
  color: #ecdfc4; text-align: center;
}
.dt-sum-sub {
  margin-top: 8px; text-align: center; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .2em; color: #7a6544;
}
.dt-sum-list { margin-top: 20px; border-top: 1px solid rgba(160,130,80,.16) }
.dt-sum-row {
  display: flex; align-items: baseline; gap: 12px; cursor: pointer;
  padding: 9px 4px; border-bottom: 1px dashed rgba(160,130,80,.14);
  transition: background .2s;
}
.dt-sum-row:hover { background: rgba(200,160,96,.05) }
.dt-sr-no { font-family: var(--mono); font-size: 8.5px; color: #6b5a42; flex: 0 0 18px }
.dt-sr-name { font-family: var(--serif); font-size: 12.5px; color: #ded2b8; flex: 0 0 116px; letter-spacing: .06em }
.dt-sr-relic { font-family: var(--serif); font-size: 11px; color: #9a8b70; flex: 1 1 auto }
.dt-sr-w { font-family: var(--mono); font-size: 8.5px; color: #8a7350; flex: 0 0 auto; letter-spacing: .1em }
.dt-sr-f { font-family: var(--serif); font-size: 11px; flex: 0 0 48px; text-align: right }
.dt-f-kept { color: #7fdcc0 }
.dt-f-stripped { color: #c9a45c }
.dt-f-voided { color: #b06a5c }
.dt-f-refused { color: #8a9a80 }
.dt-f-seat { color: #d9c9a4 }

.dt-sum-after {
  display: none; padding: 2px 4px 12px 34px;
  font-family: var(--serif); font-size: 12px; line-height: 2; color: #a89b80;
  border-bottom: 1px solid rgba(160,130,80,.08);
}
.dt-sum-after.on { display: block; animation: dtLine .6s ease both }

.dt-sum-lamp {
  margin-top: 20px; text-align: center;
  font-family: var(--serif); font-size: 13.5px; letter-spacing: .16em; color: #d8c5a0;
}
.dt-sum-tail {
  margin-top: 12px; text-align: center;
  font-family: var(--serif); font-size: 11.5px; line-height: 2.1; color: #857054;
}
.dt-sum-go { margin-top: 22px }

/* --- 窄屏 --- */
@media (max-width: 720px) {
  .dt-name { font-size: 20px }
  .dt-l { font-size: 13.5px; line-height: 2 }
  .dt-sr-name { flex: 0 0 84px }
  .dt-sr-relic { display: none }
  .dt-sr-w { font-size: 8px }
  .dt-sum-in { padding: 22px 18px }
}

/* ============================================================
   第六章 · 人性的账（油 / 账 双指标、偷看、改判）
   ============================================================ */

/* --- 底部：你的油 + 账 --- */
.dt-lg-gap { flex: 0 0 14px }
.dt-lg-book {
  font-family: var(--mono); font-size: 11px; color: #8fa89c;
  min-width: 30px; text-align: right; letter-spacing: .04em;
}
.dt-ledger[data-low="1"] .dt-lgk,
.dt-ledger[data-low="1"] .dt-lg-k { color: #b06a5c }
.dt-ledger[data-low="1"] .dt-lg-track i {
  background: linear-gradient(90deg, rgba(150,60,48,.6), #b06a5c);
}
.dt-ledger[data-low="1"] .dt-lg-n { color: #b06a5c }

/* 油条从右往左退：视觉上像油在沉下去 */
.dt-lg-track i { transform-origin: left center; }

/* --- 选项上的价格 --- */
.dt-w b { position: relative; padding-right: 62px }
.dt-w-cost {
  position: absolute; right: 0; top: 0;
  font-family: var(--mono); font-size: 8.5px; font-style: normal;
  letter-spacing: .08em; color: #7a6544;
  border: 1px solid rgba(160,130,80,.24); padding: 1px 5px;
}
.dt-w-cost.poor { color: #b06a5c; border-color: rgba(176,106,92,.4) }

/* --- 偷看 --- */
.dt-ask-h2 { margin-top: 14px; color: #5e5138 }
.dt-peek {
  border-style: dashed !important;
  border-color: rgba(150,110,80,.34) !important;
  background: linear-gradient(180deg, rgba(22,16,12,.86), rgba(11,9,8,.9)) !important;
}
.dt-peek b {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .2em;
  color: #b08c72; margin-bottom: 4px;
}
.dt-peek-c {
  font-family: var(--mono); font-size: 8.5px; font-style: normal;
  letter-spacing: .08em; color: #8a6a5a;
}
.dt-peek i {
  display: block; font-style: normal;
  font-size: 11px; line-height: 1.75; color: #7d6f5e;
}
.dt-peek:hover:not(:disabled) b { color: #d8b49a }
.dt-peek-l { color: #c0a486 !important }

/* --- 改判 --- */
.dt-opts-r .dt-rw b {
  display: block; font-family: var(--serif); font-size: 12.5px;
  font-weight: 400; color: #cbbda1; letter-spacing: .06em; margin-bottom: 3px;
}
.dt-opts-r .dt-rw i {
  display: block; font-style: normal; font-size: 10.5px; color: #8a7d68;
}
.dt-opts-r .dt-rw:hover:not(:disabled) i { color: #b8a98e }
.dt-w-skip { border-style: dashed !important }
.dt-w-skip b { color: #8a9a80 !important }

/* --- 结算：统计条 --- */
.dt-sum-tally {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px; padding-top: 13px;
  border-top: 1px solid rgba(160,130,80,.16);
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: #6b5a42;
}
.dt-sum-tally b { font-weight: 400; margin-left: 5px; font-size: 12px }
.dt-t-kept { color: #7fdcc0 }
.dt-t-hurt { color: #c9a45c }
.dt-t-void { color: #b06a5c }
.dt-t-ref { color: #8a9a80 }

.dt-sum-moral {
  margin-top: 14px; text-align: center;
  font-family: var(--serif); font-size: 13px; line-height: 1.95;
  letter-spacing: .1em; color: #d8c5a0;
}

/* --- 结算：被划掉的行 --- */
.dt-sum-row.rewritten .dt-sr-w { text-decoration: line-through; text-decoration-color: rgba(176,106,92,.7) }
.dt-sum-row.rewritten .dt-sr-name { color: #b8a98e }

/* --- 旁白：暗一档（油尽、划掉） --- */
.dt-l.dt-dark { color: #8a7268 }

/* --- 开场纸条里的加粗 --- */
.dt-note-b b { font-weight: 400; color: #1c1610; border-bottom: 1px solid rgba(40,32,20,.5) }

/* 改判：六行压成两列，别把「不划了」挤出屏幕 */
.dt-wrap[data-stage="review"] .dt-acts { max-height: 56vh }
.dt-wrap[data-stage="review"] .dt-say { justify-content: flex-end; padding-bottom: 4px }
.dt-wrap[data-stage="review"] .dt-say .dt-l:first-child { margin-top: 0 }
.dt-opts-r {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  max-height: 40vh; overflow-y: auto; padding-right: 4px;
}
.dt-opts-r::-webkit-scrollbar { width: 4px }
.dt-opts-r::-webkit-scrollbar-thumb { background: rgba(160,130,80,.26) }
.dt-opts-r .dt-rw { padding: 8px 11px }
.dt-opts-r .dt-w-skip { grid-column: 1 / -1 }
.dt-opts-r .dt-rw i { font-size: 10px; letter-spacing: .02em }

/* 底部指标：多了「账」之后要重新分配宽度 */
.dt-ledger { gap: 8px; padding: 0 2px }
.dt-lg-k { font-size: 9px; letter-spacing: .18em; color: #8a7350; flex: 0 0 auto }
.dt-lg-track { min-width: 40px }
.dt-lg-n { font-size: 12px; min-width: 18px; color: #d8b268 }
.dt-lg-book { font-size: 12px; color: #8fa89c; flex: 0 0 auto }

/* 改判：旁白居中，别全部堆在顶上留一大片空 */
.dt-wrap[data-stage="review"] .dt-say { justify-content: center }
.dt-wrap[data-stage="review"] .dt-ask-h { color: #8a7350 }

/* 结算单：被划掉那行的小标记，不要撑爆写法列 */
.dt-sr-w { white-space: nowrap }
.dt-sum-row.rewritten .dt-sr-w {
  text-decoration: none; color: #c9a45c;
}
.dt-sum-row.rewritten .dt-sr-w::first-letter { font-size: 11px }
.dt-sum-row.rewritten .dt-sr-name { text-decoration: line-through; text-decoration-color: rgba(176,106,92,.5) }
.dt-sum-sub { color: #9a8258 }
.dt-sum-sub { font-size: 10px }

/* 写一行：油量提示改成一行小字，别占底部 */
.dt-oil-line {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em;
  color: #6f5e44; margin: -3px 0 8px;
}
.dt-oil-line b { font-weight: 400; color: #d8b268; font-size: 10.5px; margin: 0 1px }

/* 第三条路：拿自己的东西抵 */
.dt-w-selfpay { border-color: rgba(217,201,164,.3) !important }
.dt-w-selfpay b { color: #d9c9a4 !important }
.dt-w-selfpay i { color: #9a8b70 }
.dt-w-selfpay:hover:not(:disabled) i { color: #c4b696 }
.dt-f-paid { color: #d9c9a4 }
.dt-stamp-paid .dt-stamp-v { color: #d9c9a4 }
.dt-t-paid { color: #d9c9a4 }

/* --- 矮屏（720p 上下）：五个选项要放得下 --- */
@media (max-height: 790px) {
  .dt-wrap { padding: 2.2vh 4vw 1.6vh }
  .dt-top { min-height: 46px }
  .dt-name { font-size: 20px; margin-top: 4px }
  .dt-meta { margin-top: 4px; font-size: 10px }
  .dt-relic { margin-top: 8px; min-height: 20px }
  .dt-say { margin-top: 8px }
  .dt-l { font-size: 13.5px; line-height: 1.9; margin-bottom: 5px }
  .dt-ask-h { margin-bottom: 7px }
  .dt-oil-line { margin-bottom: 6px }
  .dt-opts { gap: 5px }
  .dt-opt { padding: 8px 13px; font-size: 12.5px }
  .dt-w b { margin-bottom: 3px }
  .dt-w i { font-size: 10.5px; line-height: 1.65 }
  .dt-acts { margin-top: 8px; max-height: 54vh }
  .dt-ledger { margin-top: 8px }
  .dt-ask-h2 { margin-top: 10px }
  .dt-peek b { margin-bottom: 3px }
  .dt-peek i { font-size: 10.5px; line-height: 1.6 }
}

/* ============================================================
   chapter.js — 票根（开章卡）
   ------------------------------------------------------------
   一张纸，一枚章。纸的上下两沿是撕过的齿孔。
   z-index 压在扫描线（9000）下面，让它也被"拍"一遍。
   ============================================================ */
.cc {
  position: fixed; inset: 0; z-index: 8900;
  display: none; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 70% 62% at 50% 44%, rgba(28,22,17,.92), rgba(5,5,6,.98) 72%),
    #050506;
  opacity: 0; transition: opacity .55s ease;
  cursor: pointer;
}
.cc.on { display: flex; }
.cc.in { opacity: 1; }
.cc.out { opacity: 0; }

/* 纸纤维 */
.cc-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background:
    repeating-linear-gradient(0deg, rgba(255,244,230,.018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255,244,230,.012) 0 1px, transparent 1px 7px);
}

.cc-body {
  position: relative; width: min(700px, 86vw);
  padding: 52px 60px 36px;
  background:
    linear-gradient(180deg, rgba(20,17,14,.94), rgba(9,8,7,.97));
  border-left: 1px solid rgba(200,69,47,.14);
  border-right: 1px solid rgba(200,69,47,.14);
  box-shadow: 0 30px 90px rgba(0,0,0,.72), inset 0 0 90px rgba(0,0,0,.5);
  transition: opacity .5s ease, transform .5s ease;
}
/* 齿孔：上下两沿 */
.cc-body::before, .cc-body::after {
  content: ""; position: absolute; left: -1px; right: -1px; height: 7px;
  background:
    radial-gradient(circle at 5px 3.5px, transparent 3px, rgba(200,69,47,.30) 3.4px, transparent 4.2px) 0 0/14px 7px repeat-x;
  opacity: .85;
}
.cc-body::before { top: -4px; }
.cc-body::after { bottom: -4px; }

.cc-no {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .62em;
  color: #b8492f; text-indent: .62em;
  opacity: 0; transform: translateY(5px);
  animation: ccUp .7s ease .12s forwards;
}

.cc-name {
  margin-top: 16px;
  font-family: var(--serif); font-size: clamp(30px, 4.6vw, 50px);
  letter-spacing: .14em; line-height: 1.24; color: #e9e3d8;
  text-shadow: 0 2px 22px rgba(0,0,0,.8);
  white-space: nowrap;
}
.cc-name span { display: inline-block; opacity: 0; filter: blur(5px); transform: translateY(9px); animation: ccCh .62s cubic-bezier(.18,.72,.24,1) forwards; }
.cc-name i { display: inline-block; }
.cc-name .en { letter-spacing: .03em; margin: 0 .16em 0 .06em; font-family: var(--serif); font-size: .82em; color: #cfc8bc; }

@keyframes ccCh { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes ccUp { to { opacity: 1; transform: none; } }

.cc-rule {
  height: 1px; margin: 22px 0 20px;
  background: linear-gradient(90deg, rgba(200,69,47,.62), rgba(200,69,47,.34) 52%, rgba(200,69,47,.06));
  transform: scaleX(0); transform-origin: left;
  animation: ccRule .85s cubic-bezier(.3,.7,.2,1) .88s forwards;
}
@keyframes ccRule { to { transform: scaleX(1); } }

.cc-epi p {
  font-family: var(--serif); font-size: 14.5px; line-height: 2.15;
  letter-spacing: .06em; color: #a3a9b0;
  opacity: 0; transform: translateY(4px);
  animation: ccUp .8s ease 1.16s forwards;
}
.cc-epi p + p { animation-delay: 1.34s; }

.cc-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 30px; padding-top: 13px;
  border-top: 1px dashed rgba(255,244,230,.09);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  color: #6b7177;
  opacity: 0; animation: ccUp .8s ease 1.5s forwards;
}

/* 章 */
.cc-stamp {
  position: absolute; right: -32px; top: 38px;
  width: 74px; height: 74px; border: 2px solid rgba(190,52,34,.6); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-9deg) scale(1.55); opacity: 0;
  box-shadow: 0 0 0 1px rgba(190,52,34,.22), inset 0 0 18px rgba(190,52,34,.12);
  animation: ccStamp .34s cubic-bezier(.2,.9,.3,1.4) 1.62s forwards;
}
.cc-stamp b {
  font-family: var(--serif); font-size: 40px; line-height: 1; color: rgba(200,60,40,.86);
  text-shadow: 0 0 14px rgba(200,60,40,.28);
  letter-spacing: 0;
}
.cc-stamp::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(190,52,34,.35);
  border-radius: 2px;
}
@keyframes ccStamp {
  from { opacity: 0; transform: rotate(-9deg) scale(1.55); }
  to   { opacity: 1; transform: rotate(-9deg) scale(1); }
}

.cc-tip {
  position: absolute; left: 0; right: 0; bottom: clamp(18px, 5vh, 46px);
  text-align: center; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .3em; color: #4e545a;
  opacity: 0; animation: ccUp .9s ease 2.3s forwards;
}
.cc[data-short="1"] .cc-tip { display: none; }
.cc[data-short="1"] .cc-name span,
.cc[data-short="1"] .cc-no,
.cc[data-short="1"] .cc-epi p,
.cc[data-short="1"] .cc-foot,
.cc[data-short="1"] .cc-rule,
.cc[data-short="1"] .cc-stamp { animation-duration: .3s; animation-delay: .02s; }

.cc.out .cc-body { opacity: 0; transform: translateY(-7px) scale(1.012); }

@media (max-height: 720px) {
  .cc-body { padding: 30px 40px 24px; }
  .cc-name { margin-top: 10px; font-size: clamp(24px, 3.4vw, 34px); }
  .cc-rule { margin: 14px 0 13px; }
  .cc-epi p { font-size: 13px; line-height: 1.95; }
  .cc-foot { margin-top: 18px; }
  .cc-stamp { width: 60px; height: 60px; }
  .cc-stamp b { font-size: 32px; }
}

/* --- 档案册 · 票根 --- */
.ar-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ar-card { position: relative; height: 112px; cursor: pointer; }
.ar-card-in { position: absolute; inset: 0; }
.ar-card-f, .ar-card-b {
  position: absolute; inset: 0; padding: 12px 14px;
  border: 1px solid rgba(120,92,52,.34);
  background: linear-gradient(180deg, rgba(40,31,19,.86), rgba(18,14,9,.94));
}
.ar-card-f { transition: opacity .3s ease, transform .34s ease, visibility 0s 0s; }
.ar-card-b { opacity: 0; visibility: hidden; transform: rotateY(-16deg) scale(.97); pointer-events: none;
  transition: opacity .3s ease, transform .34s ease, visibility 0s .3s; }
.ar-card.flip .ar-card-f { opacity: 0; visibility: hidden; transform: rotateY(16deg) scale(.97);
  transition: opacity .3s ease, transform .34s ease, visibility 0s .3s; }
.ar-card.flip .ar-card-b { opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .3s ease .1s, transform .34s ease .1s, visibility 0s 0s; }
.ar-card-f b { display: block; font-family: var(--mono); font-size: 8.5px; font-weight: 400; letter-spacing: .3em; color: #a8823f; }
.ar-card-f i { display: block; font-family: var(--serif); font-style: normal; font-size: 15px; letter-spacing: .16em; color: #e2d2ae; margin-top: 7px; }
.ar-card-f span { display: block; font-family: var(--serif); font-size: 9.5px; line-height: 1.75; color: #7d6d52; margin-top: 7px; }
.ar-card-f u {
  position: absolute; right: 10px; top: 10px; width: 26px; height: 26px;
  border: 1px solid rgba(190,60,40,.5); display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-family: var(--serif); font-size: 15px;
  color: rgba(200,70,48,.82); transform: rotate(-8deg);
}
.ar-card-b { background: linear-gradient(180deg, rgba(26,20,13,.96), rgba(12,9,7,.97)); border-color: rgba(120,92,52,.5); }
.ar-card-b em { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .24em; color: #7a6238; font-style: normal; }
.ar-card-b p { font-family: var(--serif); font-size: 9.5px; line-height: 1.72; color: #8e7f63; margin-top: 7px; }
.ar-card.lock { opacity: .46; cursor: default; }
.ar-card.lock .ar-card-f { display: flex; flex-direction: column; justify-content: center; border-style: dashed; }
.ar-card.lock .ar-card-f i { color: #5c5040; font-size: 12px; }
.ar-card:not(.lock):hover .ar-card-f { border-color: rgba(180,140,80,.6); }

/* ============================================================
   archive.js —  「当班」页签：那张纸
   ============================================================ */
.ar-dt { display: flex; flex-direction: column; gap: 6px }
.ar-dt-row {
  padding: 9px 11px 9px 10px;
  border: 1px solid rgba(80, 64, 40, .26);
  border-left: 2px solid rgba(140, 108, 60, .42);
  background: rgba(20, 16, 11, .5);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.ar-dt-row:hover { border-color: rgba(180, 140, 80, .5); background: rgba(26, 20, 13, .66) }
.ar-dt-row.rw { border-left-color: rgba(200, 69, 47, .58) }
.ar-dt-h { display: flex; align-items: baseline; gap: 8px }
.ar-dt-no { font-family: var(--mono); font-size: 8.5px; color: #6b5636; letter-spacing: .1em; flex: 0 0 auto }
.ar-dt-name { font-family: var(--serif); font-size: 13px; font-weight: 400; color: #ddceac; letter-spacing: .12em }
.ar-dt-relic {
  font-family: var(--serif); font-style: normal; font-size: 9.5px; color: #857758;
  letter-spacing: .06em; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ar-dt-r { display: flex; align-items: baseline; gap: 12px; flex: 0 0 auto; margin-left: 10px }
.ar-dt-door { font-family: var(--serif); font-size: 8.5px; text-decoration: none; color: #5f7f74; letter-spacing: .06em; white-space: nowrap }
.ar-dt-k { font-family: var(--mono); font-style: normal; font-size: 8.5px; letter-spacing: .08em; color: #7d6a48; white-space: nowrap }
.ar-dt-f { font-family: var(--mono); font-style: normal; font-size: 8.5px; letter-spacing: .1em; flex: 0 0 auto; white-space: nowrap }
.ar-dt-f.f-kept { color: #9fb98c }
.ar-dt-f.f-stripped { color: #c08a5a }
.ar-dt-f.f-voided { color: #8a7c74 }
.ar-dt-f.f-refused { color: #a08d6a }
.ar-dt-f.f-paid { color: #c8452f }
.ar-dt-w {
  margin-top: 7px; font-family: var(--serif); font-size: 11px; line-height: 1.85;
  color: #7d7059; letter-spacing: .02em;
  border-left: 1px dashed rgba(110, 88, 54, .34); padding-left: 9px;
}
.ar-dt-a {
  display: none; margin-top: 10px; padding-left: 9px;
  border-left: 1px solid rgba(120, 92, 52, .16);
}
.ar-dt-row.on .ar-dt-a { display: block }
.ar-dt-lab {
  display: block; font-family: var(--mono); font-style: normal; font-size: 8px;
  letter-spacing: .28em; color: #5f5443; margin-bottom: 7px;
}
.ar-dt-a p { font-family: var(--serif); font-size: 11px; line-height: 1.95; color: #a3947a; letter-spacing: .04em }
.ar-dt-a p:first-child { margin-top: 0 }
@media (max-height: 760px) {
  .ar-dt-row { padding: 7px 9px }
  .ar-dt-name { font-size: 12px }
  .ar-dt-w, .ar-dt-a p { font-size: 10px; line-height: 1.78 }
}

/* 票根页签在窄屏下换一行 */
@media (max-width: 620px) {
  .ar-cards { grid-template-columns: 1fr; }
}
@media (max-height: 760px) {
  .ar-card { height: 96px; }
  .ar-card-f { padding: 9px 12px; }
  .ar-card-f i { margin-top: 5px; font-size: 14px; }
  .ar-card-f span { margin-top: 5px; font-size: 9px; }
  .ar-card-b { padding: 9px 12px; }
  .ar-card-b p { font-size: 9px; line-height: 1.62; margin-top: 5px; }
}

/* ============================================================
   save.js — 上次的门票
   ============================================================ */
.rs {
  position: fixed; inset: 0; z-index: 8950;
  display: none; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 70% 62% at 50% 46%, rgba(24,19,15,.94), rgba(4,4,5,.99) 74%), #050506;
  opacity: 0; transition: opacity .42s ease;
}
.rs.on { display: flex; opacity: 1; }
.rs-paper {
  width: min(540px, 86vw); padding: 40px 44px 34px;
  background: linear-gradient(180deg, rgba(27,22,17,.97), rgba(11,10,8,.98));
  border: 1px solid rgba(200,69,47,.2);
  box-shadow: 0 26px 80px rgba(0,0,0,.72);
  position: relative;
}
.rs-paper::before, .rs-paper::after {
  content: ""; position: absolute; left: -1px; right: -1px; height: 7px;
  background: radial-gradient(circle at 6px 3.5px, transparent 3.2px, rgba(200,69,47,.26) 3.6px, transparent 4.4px) 0 0/16px 7px repeat-x;
}
.rs-paper::before { top: -4px; }
.rs-paper::after { bottom: -4px; }
.rs-t { font-family: var(--mono); font-size: 11px; letter-spacing: .5em; color: #c2532f; text-indent: .5em; }
.rs-stamp {
  position: absolute; right: -26px; top: 16px; width: 58px; height: 58px;
  border: 2px solid rgba(190,52,34,.55); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-9deg);
}
.rs-stamp b { font-family: var(--serif); font-size: 31px; font-weight: 400; color: rgba(200,60,40,.8); }
.rs-ch {
  margin-top: 16px; font-family: var(--serif); font-size: clamp(24px, 2.9vw, 34px);
  letter-spacing: .12em; color: #ece6db; line-height: 1.4;
}
.rs-meta {
  margin-top: 12px; font-family: var(--serif); font-size: 13px;
  letter-spacing: .05em; color: #9aa1a8; line-height: 1.9;
}
.rs-line { height: 1px; margin: 22px 0 20px; background: linear-gradient(90deg, rgba(200,69,47,.5), rgba(200,69,47,.06)); }
.rs-btns { display: flex; gap: 12px; align-items: center; }
.rs-btns button {
  font-family: var(--ui); font-size: 13px; letter-spacing: .18em;
  padding: 11px 24px; cursor: pointer; background: transparent;
  border: 1px solid rgba(200,69,47,.42); color: #d8c6b4;
  transition: background .2s, color .2s, border-color .2s;
}
.rs-btns .rs-go:hover { background: rgba(200,69,47,.16); color: #f2e3d4; border-color: rgba(200,69,47,.8); }
.rs-btns .rs-new { border-color: rgba(255,255,255,.13); color: #6d7378; }
.rs-btns .rs-new:hover { border-color: rgba(255,255,255,.3); color: #a9b0b6; }
.rs-note {
  margin-top: 20px; font-family: var(--serif); font-size: 11.5px;
  line-height: 1.95; letter-spacing: .04em; color: #6b7177;
}
@media (max-height: 700px) {
  .rs-paper { padding: 26px 30px 22px; }
  .rs-line { margin: 14px 0 13px; }
  .rs-note { margin-top: 12px; }
}

/* ============================================================
   ledger.js — 柜台底下那本册子
   ------------------------------------------------------------
   第十张纸不显眼。它一直在那里，只是折了个角。
   ============================================================ */
.fn-opt.fold {
  position: relative; padding-right: 26px;
  border-style: dashed; border-color: #342a1c;
  background: rgba(13, 11, 8, .52);
}
.fn-opt.fold::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 17px; height: 17px;
  background: linear-gradient(225deg, #060504 50%, transparent 50%);
  box-shadow: -1px 1px 0 rgba(200, 69, 47, .16);
}
.fn-opt.fold b { color: #b8a382; }
.fn-opt.fold:hover { border-color: #57452c; }
.fn-opt.fold:hover b { color: #e2cfab; }

/* 合上之后 */
.fn-seal {
  position: fixed; inset: 0; z-index: 9600;
  display: flex; align-items: center; justify-content: center;
  background: #040405; opacity: 0; pointer-events: none;
  transition: opacity 1.7s ease;
}
.fn-seal.on { opacity: 1; pointer-events: auto; }
.fs-in { text-align: center; font-family: var(--serif); }
.fs-in p {
  font-size: clamp(15px, 1.8vw, 19px); letter-spacing: .36em;
  color: #6d6860; line-height: 2.3; text-indent: .36em;
}
.fs-in .fs-b { color: #46423b; }
.fs-in em {
  display: block; margin-top: clamp(34px, 8vh, 64px);
  font-style: normal; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .3em; color: #504b43;
  text-indent: .3em;
  animation: fsIn 1.4s ease 2.6s both;
}
@keyframes fsIn { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------
   终章选项：纸多了以后，矮屏让它自己滚
   ------------------------------------------------------------
   账目（记忆物件 / 今日当班 / 这本册子）是选之前要看的依据，
   不能被选项挤到屏幕外。所以滚的只有纸，账目钉在下面。
   ------------------------------------------------------------ */
.fn-scroll { display: flex; flex-direction: column; gap: 7px; min-height: 0; }
.fn-scroll.more {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 30px), transparent 100%);
}
.fn-scroll::-webkit-scrollbar { width: 4px; }
.fn-scroll::-webkit-scrollbar-track { background: transparent; }
.fn-scroll::-webkit-scrollbar-thumb { background: rgba(200, 169, 110, .22); border-radius: 2px; }

@media (max-height: 1000px) {
  .fn-scroll {
    max-height: calc(100vh - 320px);
    overflow-y: auto; overflow-x: hidden; padding-right: 8px;
  }
}
@media (max-height: 820px) {
  .fn-choice { gap: 6px; margin-top: 14px; }
  .fn-scroll { max-height: calc(100vh - 292px); gap: 5px; }
  .fn-opt { padding: 8px 14px; gap: 3px; }
  .fn-opt b { font-size: 12.5px; }
  .fn-opt span { font-size: 9px; }
  .fn-q { margin-bottom: 3px; font-size: 11.5px; }
  .fn-state { gap: 5px 12px; margin: 9px 0 2px; padding: 9px 0; }
  .fn-state i { font-size: 7.5px; }
  .fn-state b { font-size: 10px; }
  .fn-idle { margin-top: 8px; }
}
@media (max-height: 740px) {
  .fn-scroll { max-height: calc(100vh - 270px); }
  .fn-opt { padding: 7px 13px; }
  .fn-opt b { font-size: 12px; }
  .fn-opt span { font-size: 8.5px; }
  .fn-state { grid-template-columns: repeat(3, 1fr); }
}

/* 结局页底部：册子记得的事 */
.en-book {
  margin-top: 12px; padding-top: 11px;
  border-top: 1px dashed rgba(214, 206, 180, .1);
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  color: #4d4636; text-align: center;
}

/* ============================================================
   notes.js — 柜台给你的那张便条（H）
   ------------------------------------------------------------
   一张不打折的纸，压在屏幕中间。不解释气氛，只说明白事。
   ============================================================ */
.nt {
  position: fixed; inset: 0; z-index: 9200;
  display: none; place-items: center;
  background: rgba(4, 4, 6, .84);
  opacity: 0; transition: opacity .26s ease;
}
.nt.on { display: grid; opacity: 1; }

.nt-wrap {
  width: min(680px, 90vw); max-height: 86vh; overflow-y: auto;
  padding: 38px 48px 26px;
  background:
    linear-gradient(180deg, rgba(26, 22, 17, .97), rgba(11, 9, 8, .98));
  border: 1px solid rgba(200, 69, 47, .17);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .78);
  transform: translateY(6px); transition: transform .26s ease;
}
.nt.on .nt-wrap { transform: none; }
.nt-wrap::-webkit-scrollbar { width: 4px; }
.nt-wrap::-webkit-scrollbar-thumb { background: rgba(200, 169, 110, .2); }

.nt-tab { display: flex; gap: 18px; margin-bottom: 20px; }
.nt-tab button {
  padding: 0 0 5px; background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .28em;
  color: #837a6d; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nt-tab button.on { color: #dda86f; border-bottom-color: rgba(200, 69, 47, .62); }
.nt-tab button:hover { color: #c4b6a2; }

.nt-no {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .5em;
  color: #cd5b34; text-indent: .5em;
}
.nt-name {
  margin-top: 8px; font-family: var(--serif);
  font-size: clamp(24px, 2.9vw, 32px); letter-spacing: .1em; color: #f0eae0;
}
.nt-rule { height: 1px; margin: 16px 0 18px; background: linear-gradient(90deg, rgba(200, 69, 47, .48), rgba(200, 69, 47, .04)); }

.nt-sec {
  margin: 22px 0 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: #948871;
}
.nt-goal { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.nt-goal li {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--serif); font-size: 16px; line-height: 1.8; color: #ddd5c6;
}
.nt-goal li i {
  flex: 0 0 14px; height: 14px; margin-top: 4px;
  border: 1px solid rgba(200, 169, 110, .28); border-radius: 1px;
  font-style: normal; font-size: 10px; line-height: 12px; text-align: center;
  color: #8fae7a;
}
.nt-goal li.done { color: #8b8377; }
.nt-goal li.done span { text-decoration: line-through; text-decoration-color: rgba(120, 110, 95, .5); }
.nt-goal li.done i { border-color: rgba(143, 174, 122, .5); background: rgba(143, 174, 122, .08); }

.nt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; }
.nt-facts span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px dashed rgba(255, 244, 230, .12); padding-bottom: 5px; }
.nt-facts i { font-family: var(--serif); font-style: normal; font-size: 13px; color: #9a8f7c; white-space: nowrap; }
.nt-facts b { font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: #cfb58c; text-align: right; }

.nt-keys {
  font-family: var(--mono); font-size: 11.5px; line-height: 2;
  letter-spacing: .04em; color: #c0b7a6;
  padding: 11px 14px; background: rgba(255, 244, 230, .04);
  border-left: 2px solid rgba(200, 69, 47, .3);
}

.nt-warn {
  margin-top: 14px; padding: 2px 0 2px 12px;
  border-left: 1px solid rgba(200, 169, 110, .22);
  font-family: var(--serif); font-size: 13.5px; line-height: 2; color: #a2978a;
}

.nt-foot {
  margin-top: 24px; padding-top: 12px;
  border-top: 1px dashed rgba(255, 244, 230, .08);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: #6f6659;
}

.nt-empty {
  padding: 24px 0; font-family: var(--serif);
  font-size: 13.5px; line-height: 2.1; color: #6f675b;
}
.nt-log { display: flex; flex-direction: column; gap: 12px; max-height: 56vh; overflow-y: auto; padding-right: 6px; }
.nt-log::-webkit-scrollbar { width: 4px; }
.nt-log::-webkit-scrollbar-thumb { background: rgba(200, 169, 110, .2); }
.nt-line i {
  display: block; margin-bottom: 3px; font-style: normal;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: #9b8664;
}
.nt-line.me i { color: #6d7d8a; }
.nt-line p { font-family: var(--serif); font-size: 15px; line-height: 2; color: #cdc4b4; white-space: pre-wrap; }
.nt-line.me p { color: #9aa7b2; }

.dlg-logkey {
  margin-left: 12px; font-family: var(--mono);
  font-size: 9px; letter-spacing: .16em; color: #4c5257;
}

@media (max-height: 760px) {
  .nt-wrap { padding: 22px 28px 16px; max-height: 88vh; }
  .nt-name { font-size: 21px; }
  .nt-rule { margin: 11px 0 12px; }
  .nt-sec { margin: 13px 0 7px; }
  .nt-goal li { font-size: 13px; line-height: 1.65; }
  .nt-log { max-height: 48vh; }
  .nt-foot { margin-top: 15px; }
}

/* 「再按一次」的按钮：临时状态，不喧哗 */
.armed { border-color: rgba(200, 69, 47, .7) !important; color: #f0dcc8 !important; }

/* 键位表 */
.nt-keys2 { display: flex; flex-direction: column; gap: 2px; }
.nt-keys2 > div {
  display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px dashed rgba(255, 244, 230, .08);
}
.nt-keys2 kbd {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  color: #e0c9a4; padding: 3px 7px; text-align: center;
  border: 1px solid rgba(200, 169, 110, .3); border-radius: 2px;
  background: rgba(200, 169, 110, .06);
}
.nt-keys2 span { font-family: var(--serif); font-size: 13.5px; line-height: 1.7; color: #c0b7a6; }

/* 右下角的角标：一直在，但不喊 */
.nt-hint {
  position: fixed; right: 18px; bottom: 16px; z-index: 8600;
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 8px;
  border: 1px solid rgba(200, 169, 110, .13);
  background: rgba(10, 9, 8, .6);
  font-family: var(--serif); font-size: 10.5px; letter-spacing: .12em;
  color: #5f5749; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease, color .2s, border-color .2s;
}
.nt-hint.on { opacity: 1; }
/* 不接鼠标：只做提示，绝不挡底下的按钮。要打开就按 H。 */
.nt-hint b {
  font-family: var(--mono); font-weight: 400; font-size: 9.5px;
  color: #8d7c5f; border: 1px solid rgba(200, 169, 110, .26);
  padding: 2px 5px; border-radius: 2px;
}
.nt-hint:hover { color: #a2957f; border-color: rgba(200, 169, 110, .3); }
.nt-hint:hover b { color: #cfb083; }

.nt-sub {
  margin-top: 10px;
  font-family: var(--serif); font-size: 12.5px; line-height: 1.85;
  letter-spacing: .03em; color: #8d8375;
}

/* ------------------------------------------------------------
   O. 柜台底下的木箱 —— 六件手上的活
   ------------------------------------------------------------ */
#screen-hands {
  background:
    radial-gradient(ellipse 76% 62% at 50% 40%, rgba(64, 46, 20, .46), transparent 72%),
    linear-gradient(180deg, #060504, #0a0805 58%, #050403);
}
.hx-wrap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 1.6vh, 16px); padding: 3vh 4vw;
}
.hx-head { text-align: center; }
.hx-t {
  font-family: var(--serif); font-size: clamp(19px, 2.4vh, 24px);
  letter-spacing: .42em; text-indent: .42em; color: #e2d0aa;
}
.hx-s {
  margin-top: 7px; font-family: var(--serif); font-size: 11px; line-height: 1.9;
  letter-spacing: .05em; color: #8a7a58;
}

/* ---- 六格 ---- */
.hx-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 14px);
  width: min(940px, 92vw);
}
.hx-grid.gone { display: none; }
.hx-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  height: clamp(84px, 12.4vh, 124px); padding: 11px 14px 10px;
  background: linear-gradient(180deg, rgba(40, 33, 21, .74), rgba(15, 12, 8, .88));
  border: 1px solid rgba(200, 169, 110, .2);
  cursor: pointer; text-align: left; overflow: hidden;
  transition: border-color .24s, background .24s, transform .24s;
}
.hx-card:hover { border-color: rgba(200, 169, 110, .42); transform: translateY(-2px); }
.hx-card.lock { opacity: .4; cursor: default; }
.hx-card.lock:hover { border-color: rgba(200, 169, 110, .16); transform: none; }
.hx-card.done { border-color: rgba(120, 150, 110, .28); }
.hx-cap {
  position: absolute; right: 8px; bottom: -6px;
  font-family: var(--serif); font-size: clamp(48px, 7vh, 66px); line-height: 1;
  color: rgba(200, 169, 110, .06); pointer-events: none;
}
.hx-card.done .hx-cap { color: rgba(120, 150, 110, .1); }
.hx-no {
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: #6f6248;
}
.hx-tip {
  margin-top: auto; font-family: var(--serif); font-size: 10px;
  letter-spacing: .04em; color: #7f7358; line-height: 1.6;
}
.hx-nm {
  margin-top: 4px; font-family: var(--serif); font-size: clamp(13px, 1.8vh, 15px);
  letter-spacing: .16em; color: #dfcda4;
}
.hx-st {
  margin-top: 5px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .1em; color: #7b6d52;
}
.hx-st .ok { color: #7fa06a; font-style: normal; }

/* ---- 单件 ---- */
.hx-stage { display: none; width: min(940px, 92vw); }
.hx-stage.on { display: block; }
.hx-hd {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(200, 169, 110, .13);
}
.hx-hd-no { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: #8d7c5f; }
.hx-hd-nm { font-family: var(--serif); font-size: clamp(15px, 2vh, 18px); letter-spacing: .26em; color: #e2d0aa; }
.hx-hd-who { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: #6f6248; }
.hx-brief {
  margin-top: 9px; font-family: var(--serif); font-size: 12px; line-height: 1.95;
  letter-spacing: .03em; color: #a2957f;
}
.hx-goal {
  margin-top: 6px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .1em; color: #8b7b5c;
}
.hx-board {
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(176px, 27vh, 250px); margin: 10px 0 4px;
}
.hx-msg {
  min-height: 20px; text-align: center;
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .05em; color: #a08e6a;
}
.hx-msg.bad { color: #c08a6a; }
.hx-msg.good { color: #e8cf9a; text-shadow: 0 0 16px rgba(255, 190, 90, .3); }
.hx-msg.narr { color: #74838f; font-style: italic; letter-spacing: .04em; }
.hx-tools { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; }
.hx-b {
  background: transparent; border: 1px solid #3d3322; color: #b3a17c;
  font-family: var(--serif); font-size: 11px; letter-spacing: .26em;
  padding: 7px 16px; cursor: pointer; transition: all .22s;
}
.hx-b:hover { border-color: #8b0000; color: #f0dcb4; }
.hx-b.ghost { border-color: #2a2318; color: #6f6248; }
.hx-b.ghost:hover { border-color: #4a3d28; color: #b3a17c; }
.hx-tries { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: #554b36; }
.hx-foot { display: flex; align-items: center; gap: 16px; }
.hx-count { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: #6f6248; }
.hx-tail {
  font-family: var(--serif); font-size: 11px; letter-spacing: .1em;
  color: #8b7b5c; min-height: 16px; opacity: 0; transition: opacity .6s;
}
.hx-tail.on { opacity: 1; }

/* ---- 补记 / 处置 ---- */
.hx-end { width: 100%; }
.hx-end-t {
  font-family: var(--mono); font-size: 9px; letter-spacing: .3em;
  color: #8d7c5f; margin-bottom: 8px;
}
.hx-note {
  font-family: var(--serif); font-size: 12.5px; line-height: 2.05;
  letter-spacing: .03em; color: #b3a68c; text-align: justify;
}
.hx-acts { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.hx-done {
  font-family: var(--serif); font-size: 12px; letter-spacing: .05em;
  color: #9aa88f; text-align: center; line-height: 1.9;
}

/* ---- 一 · 蜡 ---- */
.hx-cn { width: min(380px, 84vw); display: flex; flex-direction: column; align-items: center; }
.hx-cn-wall {
  position: relative; width: 100%; height: clamp(120px, 19vh, 168px);
  border-bottom: 1px solid rgba(200, 169, 110, .12);
  background:
    repeating-linear-gradient(90deg, rgba(255, 240, 210, .022) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 30%, rgba(60, 46, 24, .5), transparent 72%),
    linear-gradient(180deg, #0c0a06, #120d08);
  overflow: hidden;
}
.hx-cn-sheet {
  position: absolute; left: 50%; top: 12px; width: 108px; height: 132px;
  transform: translateX(-50%) rotate(-1.6deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(96, 78, 52, .16) 19px 20px),
    linear-gradient(160deg, #cfc1a4, #b8a988);
  box-shadow: 0 6px 26px rgba(0, 0, 0, .7);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cn-line {
  font-family: var(--serif); font-size: 15px; letter-spacing: .5em; text-indent: .5em;
  color: #4a3a28; opacity: 0; transition: opacity .5s;
}
.cn-line.on { opacity: .9; }
.cn-line.struck { text-decoration: line-through; text-decoration-thickness: 2px; }
.cn-fold {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(90, 72, 48, .28);
  box-shadow: 0 1px 0 rgba(255, 245, 220, .3);
}
.hx-cn-shadow {
  position: absolute; left: 50%; bottom: 6px; width: 120px; height: 20px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .82), transparent 72%);
  transition: width .4s, opacity .4s;
}
.hx-cn[data-pos="1"] .hx-cn-shadow { width: 190px; opacity: .8; }
.hx-cn[data-pos="2"] .hx-cn-shadow { width: 300px; opacity: .38; }
.hx-cn-floor {
  display: flex; align-items: flex-end; justify-content: center; gap: 14px;
  width: 100%; padding-top: 10px; height: clamp(84px, 12vh, 106px);
  border-top: 2px solid rgba(196, 162, 104, .3);
  box-shadow: 0 -2px 0 rgba(255, 240, 205, .05), inset 0 10px 22px rgba(0, 0, 0, .6);
  background:
    repeating-linear-gradient(90deg, rgba(255, 240, 210, .012) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #1b1409, #090705);
}
.hx-cn-candle {
  position: relative; width: 34px; height: 82px;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}
.cn-stick {
  position: absolute; left: 9px; bottom: 0; width: 16px; height: 60px;
  background: linear-gradient(90deg, #d8c8a6, #a8977a 60%, #7d6e56);
  border-radius: 2px 2px 1px 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}
.cn-wick {
  position: absolute; left: 16px; bottom: 60px; width: 2px; height: 8px;
  background: #241d14;
}
.cn-flame {
  position: absolute; left: 50%; bottom: 66px; width: 13px; height: 22px;
  transform: translateX(-50%) scale(.2);
  background: radial-gradient(ellipse at 50% 72%, #fff6d0, #ffc25a 46%, rgba(255, 120, 20, .1) 78%);
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  filter: blur(.4px); opacity: 0;
  transition: opacity .35s, transform .35s;
}
.hx-cn-candle.lit .cn-flame {
  opacity: 1; transform: translateX(-50%) scale(1);
  animation: cnFlick 1.7s ease-in-out infinite;
}
.hx-cn-candle.lit::after {
  content: ""; position: absolute; left: 50%; bottom: 28px;
  width: 190px; height: 190px; transform: translate(-50%, 0);
  background: radial-gradient(circle, rgba(255, 176, 74, .26), transparent 64%);
  pointer-events: none;
}
@keyframes cnFlick { 0%,100% { transform: translateX(-50%) scale(1) } 50% { transform: translateX(-50%) scale(1.08, .94) } }
.hx-cn-tag { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: #6f6248; padding-bottom: 4px; }

/* ---- 二 · 纸 ---- */
.hx-pp { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hx-pp-sheet {
  display: flex; gap: 0; padding: 16px 14px;
  background: linear-gradient(170deg, #cfc1a4, #b3a484);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .7), inset 0 0 40px rgba(90, 76, 50, .28);
  transition: transform .18s;
}
.hx-pp-sheet.wrinkle { transform: rotate(1.4deg) scale(.99); filter: brightness(.9); }
.hx-pp-cell {
  position: relative; width: clamp(30px, 3.4vw, 40px); height: clamp(118px, 18vh, 176px);
  background: transparent; border: 0; border-right: 1px dashed rgba(90, 72, 48, .34);
  cursor: pointer; padding: 0;
  box-shadow: inset -1px 0 0 rgba(255, 250, 235, .18);
}
.hx-pp-cell:first-child { box-shadow: inset 1px 0 0 rgba(255, 250, 235, .18), inset -1px 0 0 rgba(255, 250, 235, .18); }
.hx-pp-cell:last-child { border-right: 0; box-shadow: inset -1px 0 0 rgba(255, 250, 235, .18); }
.hx-pp-cell span {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  font-family: var(--serif); font-size: clamp(21px, 3vh, 28px); color: #3f301e;
  opacity: 0; transition: opacity .35s;
  writing-mode: vertical-rl; letter-spacing: .1em;
}
.hx-pp-cell.on span { opacity: .85; }
.hx-pp-cell.on::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(60, 48, 30, .07) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.hx-pp-cell:hover { background: rgba(90, 72, 48, .1); }
.hx-pp-cell.on { background: rgba(74, 58, 38, .07); }
.hx-pp-foot { font-family: var(--serif); font-size: 11px; letter-spacing: .1em; color: #8b7b5c; }
.hx-pp-foot b { color: #c9b287; font-weight: 400; letter-spacing: .2em; }

/* ---- 三 · 带 ---- */
.hx-tp { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hx-tp-case {
  position: relative; width: 210px; height: 116px;
  background: linear-gradient(160deg, #2a2419, #14110c);
  border: 1px solid rgba(200, 169, 110, .22); border-radius: 4px;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .8);
}
.hx-tp-reel {
  position: absolute; top: 32px; width: 46px; height: 46px; border-radius: 50%;
  border: 5px solid rgba(210, 190, 150, .5);
  box-shadow: inset 0 0 0 8px rgba(20, 17, 12, .9), inset 0 0 0 10px rgba(200, 178, 132, .3);
}
.hx-tp-reel.r1 { left: 24px; }
.hx-tp-reel.r2 { right: 24px; }
.hx-tp-win {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: 88px; height: 14px; border: 1px solid rgba(200, 178, 132, .2);
  background: rgba(0, 0, 0, .5);
}
.hx-tp-tag {
  position: absolute; right: -8px; top: -9px; padding: 2px 6px;
  background: #d3c4a4; color: #3a2f1e; font-family: var(--mono); font-size: 8.5px;
  transform: rotate(3deg); box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.hx-tp-bar {
  position: relative; width: min(300px, 76vw); height: 6px;
  background: rgba(200, 169, 110, .1); border: 1px solid rgba(200, 169, 110, .16);
}
.hx-tp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #8a6a34, #e0b96a); }
.hx-tp-bar .tk { position: absolute; top: -4px; width: 1px; height: 12px; background: rgba(200, 169, 110, .35); }
.hx-tp-time { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: #6f6248; }
.hx-tp-line {
  min-height: 20px; font-family: var(--serif); font-size: 12px;
  letter-spacing: .06em; color: #b3a68c;
}
.hx-tp-btns { display: flex; gap: 10px; }

/* ---- 四 · 片 ---- */
.hx-cd { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hx-cd-row { display: flex; gap: 20px; }
.hx-card.hx-card { }
.hx-cd .hx-card {
  position: relative; width: clamp(88px, 11vw, 118px); height: clamp(120px, 18vh, 156px);
  background: linear-gradient(160deg, rgba(206, 194, 168, .1), rgba(20, 17, 12, .7));
  border: 1px solid rgba(200, 169, 110, .26); cursor: pointer; padding: 0;
  transition: border-color .24s, box-shadow .24s;
}
.hx-cd .hx-card:hover { border-color: rgba(200, 169, 110, .55); }
.cd-no {
  position: absolute; left: 7px; top: 5px;
  font-family: var(--mono); font-size: 8.5px; color: #6f6248;
}
.cd-dig {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: clamp(34px, 5.2vh, 46px); color: #d8c49a;
  text-shadow: 0 0 22px rgba(255, 200, 120, .28);
}
.cd-notch {
  position: absolute; left: 50%; top: 50%; width: 74px; height: 74px;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  border: 1px dashed rgba(200, 169, 110, .42); border-radius: 50%;
  transition: transform .3s;
}
.cd-notch::after {
  content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px;
  margin-left: -4px; background: rgba(232, 200, 140, .9);
}
.hx-cd-row.aligned .hx-cd .hx-card { border-color: rgba(150, 190, 120, .55); box-shadow: 0 0 26px rgba(150, 220, 120, .12); }
.hx-cd-rule {
  font-family: var(--serif); font-size: 11.5px; line-height: 1.9;
  letter-spacing: .06em; color: #8b7b5c; text-align: center;
}

/* ---- 五 · 孔 ---- */
.hx-pu { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hx-pu-tape {
  display: flex; gap: 3px; padding: 10px 12px;
  background: linear-gradient(180deg, #cfc1a4, #b6a785);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .7);
  transition: opacity .5s;
}
.hx-pu-tape.cut { opacity: .55; }
.hx-pu-col {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: transparent; border: 0; cursor: pointer; padding: 4px 5px;
  border-right: 1px dashed rgba(90, 72, 48, .2);
}
.hx-pu-col:last-child { border-right: 0; }
.hx-pu-col:hover { background: rgba(90, 72, 48, .07); }
.hx-pu-col.cut { background: rgba(139, 0, 0, .12); }
.hx-pu-holes { display: flex; flex-direction: column; gap: 9px; }
.hx-pu-holes i {
  width: clamp(12px, 1.5vw, 15px); height: clamp(12px, 1.5vw, 15px); border-radius: 50%;
  background: transparent; box-shadow: inset 0 0 0 1px rgba(90, 72, 48, .18);
}
.hx-pu-holes i.on {
  background: #14100a; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 245, 220, .22);
}
.hx-pu-no { font-family: var(--mono); font-size: 9px; color: #6b5c42; letter-spacing: .1em; }
.hx-pu-chk { font-family: var(--serif); font-size: 9px; color: #8b2f22; }
.hx-pu-rule { font-family: var(--serif); font-size: 11.5px; letter-spacing: .04em; color: #8b7b5c; text-align: center; line-height: 1.9; }
.hx-pu-rule b { color: #c0a878; font-weight: 400; }

/* ---- 六 · 表 ---- */
.hx-rs { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.hx-rs-rules {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px;
  font-family: var(--serif); font-size: 11px; letter-spacing: .04em; color: #8b7b5c;
}
.hx-rs-beds {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px; width: 100%;
}
.hx-bed {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: clamp(88px, 13vh, 112px); padding: 8px 4px 6px;
  background: linear-gradient(180deg, rgba(28, 23, 15, .55), rgba(10, 8, 5, .8));
  border: 1px solid rgba(200, 169, 110, .14);
  cursor: pointer; transition: border-color .22s, background .22s;
}
.hx-bed:hover { border-color: rgba(200, 169, 110, .38); }
.hx-bed.sel { border-color: rgba(200, 169, 110, .8); background: rgba(60, 46, 22, .5); }
.hx-bed-no {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: #9a8a69;
  align-self: flex-start;
}
.hx-bed-n {
  font-family: var(--serif); font-size: clamp(15px, 2vh, 18px); color: #d8c49a;
}
.hx-bed-m {
  font-family: var(--serif); font-size: 8.5px; line-height: 1.6; text-align: center;
  letter-spacing: .02em; color: #7d6f57;
}
.hx-rs-foot { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: #5f5749; }

/* 矮屏：把票根那套压缩再用一遍 */
@media (max-height: 780px) {
  .hx-brief { font-size: 11px; line-height: 1.85; }
  .hx-board { min-height: 168px; margin: 6px 0 2px; }
  .hx-pp-cell { height: 92px; }
  .hx-cd .hx-card { height: 112px; }
  .hx-bed { min-height: 82px; }
  .hx-cn-wall { height: 112px; }
}

/* ------------------------------------------------------------
   P. 先放着 —— 解谜屏的公共出口
   ------------------------------------------------------------
   右下角一个很小的按钮，Esc 同效。
   不影响任何屏自己的布局：fixed 定位，只在四处出现。
   ------------------------------------------------------------ */
.pause-b {
  position: fixed; right: 18px; bottom: 56px; z-index: 8660;
  display: none; align-items: center; gap: 9px;
  padding: 7px 12px 7px 14px;
  background: rgba(10, 9, 8, .74);
  border: 1px solid rgba(200, 169, 110, .2);
  color: #a2957f;
  font-family: var(--serif); font-size: 11px; letter-spacing: .2em;
  text-indent: .2em;
  cursor: pointer;
  transition: color .22s, border-color .22s, background .22s;
}
.pause-b.on { display: inline-flex; }
.pause-b i {
  font-family: var(--mono); font-style: normal; font-size: 9px;
  letter-spacing: .04em; text-indent: 0;
  color: #6f6248; border: 1px solid rgba(200, 169, 110, .22);
  padding: 1px 4px; border-radius: 2px;
}
.pause-b:hover {
  color: #f0dcb4; border-color: #8b0000;
  background: rgba(34, 12, 8, .84);
}
.pause-b:hover i { color: #cfb083; border-color: rgba(200, 169, 110, .4); }

/* 矮屏往上让一点，别压住底部那行提示 */
@media (max-height: 760px) {
  .pause-b { bottom: 46px; padding: 5px 9px 5px 11px; font-size: 10px; }
}

/* 触屏：把 Esc 那个角标藏掉，按钮本身够大 */
@media (pointer: coarse) {
  .pause-b i { display: none; }
  .pause-b { padding: 9px 14px; }
}

/* ------------------------------------------------------------
   Q. 第七章 · 门 外
   ------------------------------------------------------------
   天亮之前的街。冷灰，雾，一盏不肯灭的路灯。
   五个门，每个门后面是一个人 —— 你昨晚写下的那七行字里的五个。
   这里的配色故意和店里不一样：店里是暖的，街上没有暖的。
   ------------------------------------------------------------ */
#screen-street {
  background:
    radial-gradient(ellipse 90% 60% at 22% 88%, rgba(84, 96, 112, .2), transparent 68%),
    radial-gradient(ellipse 70% 50% at 78% 92%, rgba(120, 92, 56, .14), transparent 72%),
    linear-gradient(180deg, #080a0d 0%, #0d1116 42%, #12161b 74%, #0a0c0f 100%);
}
.st-wrap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 4.4vh 4vw 3vh;
}
.st-head { text-align: center; flex: none; }
.st-t {
  font-family: var(--serif); font-size: clamp(19px, 2.4vh, 25px);
  letter-spacing: .5em; text-indent: .5em; color: #cfd6de;
}
.st-s {
  margin-top: 9px; font-family: var(--serif); font-size: 11.5px;
  line-height: 1.9; letter-spacing: .04em; color: #6d7a88;
}

/* ---------- 街 ---------- */
.st-run {
  position: relative; flex: 1;
  display: none; align-items: flex-end; justify-content: center;
  gap: clamp(8px, 1.4vw, 22px);
  padding: 2vh 0 7vh;
  min-height: 0;
}
.st-run.on { display: flex; }
/* 五个门并排 —— 这个容器自己不排，靠里面的 flex 排 */
.st-houses {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: stretch; justify-content: center;
  gap: clamp(6px, 1.1vw, 14px);
}
.st-fog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(150, 166, 184, .07) 60%, rgba(150, 166, 184, .1));
  pointer-events: none;
}

.st-house {
  position: relative; flex: 0 1 168px;
  display: flex; flex-direction: column; align-items: center;
  height: clamp(200px, 30vh, 268px);
  padding: 12px 10px 12px;
  background: linear-gradient(180deg, rgba(24, 29, 36, .9), rgba(11, 14, 18, .96));
  border: 1px solid rgba(140, 158, 178, .16);
  cursor: pointer; overflow: hidden;
  transition: border-color .26s, transform .26s, background .26s;
}
.st-house:hover {
  border-color: rgba(180, 200, 222, .46);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(34, 41, 50, .94), rgba(14, 18, 23, .97));
}
.st-house.done { opacity: .46; cursor: default; }
.st-house.done:hover { transform: none; border-color: rgba(140, 158, 178, .16); }
.st-h-no {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: #56636f;
  align-self: flex-start;
}
.st-h-win {
  display: flex; gap: 9px; margin: 14px 0 auto;
}
.st-h-win i {
  width: 15px; height: 19px; display: block;
  background: rgba(120, 140, 160, .1);
  box-shadow: inset 0 0 0 1px rgba(140, 158, 178, .16);
  transition: background .3s, box-shadow .3s;
}
.st-house:hover .st-h-win i:nth-child(2) { background: rgba(232, 190, 120, .3); box-shadow: 0 0 14px rgba(232, 190, 120, .2); }
.st-house.done .st-h-win i { background: rgba(40, 46, 54, .5); }
.st-h-name {
  font-family: var(--serif); font-size: clamp(13px, 1.8vh, 16px);
  letter-spacing: .18em; color: #c2ccd6;
}
.st-h-tx {
  margin-top: 8px; font-family: var(--serif); font-size: 10.5px; line-height: 1.7;
  letter-spacing: .02em; color: #6b7885; text-align: center;
  min-height: 34px;
}
.st-h-fate {
  margin-top: 9px; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .04em; color: #5d6a77;
}
.st-h-fate.f-kept { color: #5f7d5a; }
.st-h-fate.f-stripped { color: #8a6a4a; }
.st-h-fate.f-voided { color: #7a4a4a; }

/* 街尽头 */
.st-end {
  position: relative; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: clamp(96px, 10vw, 138px); align-self: flex-end;
  justify-content: center; padding-bottom: 0;
  opacity: .34; transition: opacity .5s;
  cursor: default;
}
.st-end.on { opacity: 1; cursor: pointer; }
.st-end.on:hover .st-case { border-color: rgba(232, 190, 120, .6); }
.st-case {
  position: relative; width: 100%; flex: 0 0 auto;
  height: clamp(96px, 17vh, 146px);
  border: 1px solid rgba(140, 158, 178, .22);
  background: linear-gradient(180deg, rgba(30, 38, 47, .7), rgba(12, 15, 19, .9));
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .8);
  transition: border-color .3s;
}
.st-case i {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: 40%; height: 3px; background: rgba(232, 190, 120, .14);
  box-shadow: 0 -6px 0 rgba(232, 190, 120, .09), 0 -12px 0 rgba(232, 190, 120, .06);
}
.st-end.on .st-case i { background: rgba(232, 190, 120, .5); box-shadow: 0 -7px 0 rgba(232, 190, 120, .3), 0 -14px 0 rgba(232, 190, 120, .18); }
.st-end-t {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em; color: #56636f;
}

/* ---------- 单站 ---------- */
.st-stop {
  display: none; flex: 1; flex-direction: column; align-items: center;
  justify-content: flex-end; gap: 1.2vh;
  min-height: 0; padding: 1vh 0 5vh;
}
.st-stop.on { display: flex; }
/* 开场那几句：只有字，没有景，也没有按钮 */
.st-wrap[data-stage="intro"] .st-stop { display: flex; justify-content: center; }
.st-wrap[data-stage="intro"] .st-scene,
.st-wrap[data-stage="intro"] .st-acts { display: none; }
.st-wrap[data-stage="intro"] .st-text { max-height: 56vh; }
.st-wrap[data-stage="intro"] .st-text .st-l {
  font-size: clamp(13px, 1.8vh, 15.5px); line-height: 2.4; color: #93a1ae;
}

.st-scene {
  position: relative; flex: none;
  width: min(880px, 92vw);
  flex: none; height: clamp(190px, 40vh, 370px);
}
.st-pool {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(460px, 74%); height: 62%;
  background: radial-gradient(ellipse at 50% 86%, rgba(196, 214, 232, .11), transparent 68%);
  pointer-events: none;
}
.st-fig {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  width: 58px; height: 166px;
}
.st-fig .hd {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 26px; height: 30px; border-radius: 50% 50% 46% 46%;
  background: #05070a;
  box-shadow: 0 0 0 1px rgba(170, 190, 210, .14);
}
.st-fig .bd {
  position: absolute; left: 50%; top: 30px; transform: translateX(-50%);
  width: 56px; height: 130px;
  background: #05070a;
  /* 肩宽、腰收、下摆略宽 —— 一个站着的人，不是一根柱子 */
  clip-path: polygon(50% 0, 72% 3%, 88% 13%, 96% 30%, 100% 52%, 94% 100%, 6% 100%, 0 52%, 4% 30%, 12% 13%, 28% 3%);
  filter: drop-shadow(0 0 1px rgba(170, 190, 210, .28)) drop-shadow(0 6px 22px rgba(0, 0, 0, .9));
}
.st-prop {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  pointer-events: none;
}
/* 长椅 */
.st-prop.p-bench::before {
  content: ""; position: absolute; left: -120px; bottom: 0;
  width: 240px; height: 4px; background: rgba(160, 178, 196, .2);
  box-shadow: 0 16px 0 -1px rgba(160, 178, 196, .1);
}
/* 一排塑料椅 */
.st-prop.p-chair::before {
  content: ""; position: absolute; left: -110px; bottom: 0;
  width: 220px; height: 3px; background: rgba(160, 178, 196, .18);
  box-shadow: 0 13px 0 -2px rgba(160, 178, 196, .09), 42px 0 0 rgba(160, 178, 196, .1);
}
/* 花坛 */
.st-prop.p-planter::before {
  content: ""; position: absolute; left: -90px; bottom: 0;
  width: 180px; height: 22px;
  background: rgba(46, 54, 62, .8);
  box-shadow: inset 0 0 0 1px rgba(160, 178, 196, .12);
}
.st-prop.p-planter::after {
  content: ""; position: absolute; left: -74px; bottom: 22px;
  width: 148px; height: 12px; border-radius: 50% 50% 0 0;
  background: rgba(58, 74, 62, .45);
}
/* 早点摊 */
.st-prop.p-stall::before {
  content: ""; position: absolute; left: -110px; bottom: 0;
  width: 220px; height: 4px; background: rgba(200, 178, 148, .24);
  box-shadow: 0 20px 0 -1px rgba(160, 178, 196, .1);
}
.st-prop.p-stall::after {
  content: ""; position: absolute; left: -50px; bottom: 12px;
  width: 100px; height: 46px;
  background: radial-gradient(ellipse at 40% 90%, rgba(232, 190, 120, .14), transparent 70%);
}
/* 电动车 */
.st-prop.p-bike::before,
.st-prop.p-bike::after {
  content: ""; position: absolute; bottom: 0; width: 22px; height: 22px;
  border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(160, 178, 196, .26);
}
.st-prop.p-bike::before { left: -60px; }
.st-prop.p-bike::after { left: 36px; }
/* 街尽头这一站没有人：柜子里没有一个是站着的 */
.st-scene[data-prop="case"] .st-fig { display: none; }
.st-scene[data-prop="case"] .st-pool { opacity: .6; }

/* 玻璃柜（街尽头） */
.st-prop.p-case::before {
  content: ""; position: absolute; left: -90px; bottom: 0;
  width: 180px; height: 122px;
  border: 1px solid rgba(170, 190, 210, .3);
  background: linear-gradient(180deg, rgba(40, 50, 60, .4), rgba(10, 13, 17, .8));
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .8), 0 0 30px rgba(140, 180, 220, .06);
}
.st-prop.p-case::after {
  content: ""; position: absolute; left: -62px; bottom: 30px;
  width: 124px; height: 2px; background: rgba(232, 190, 120, .34);
  box-shadow: 0 -10px 0 rgba(232, 190, 120, .2), 0 -20px 0 rgba(232, 190, 120, .12);
}

/* 文本 */
.st-text {
  width: min(620px, 86vw); flex: 0 1 auto;
  min-height: 3.4em; max-height: 26vh; overflow-y: auto;
  text-align: center;
}
.st-text::-webkit-scrollbar { width: 0; }
.st-text .st-l {
  font-family: var(--serif); font-size: clamp(12.5px, 1.6vh, 14.5px);
  line-height: 2.1; letter-spacing: .035em; color: #a8b4c0;
  opacity: 0; animation: stIn .7s ease forwards;
}
.st-text .st-l + .st-l { margin-top: 2px; }
.st-text .st-l.narr { color: #6f7d8b; font-style: italic; }
.st-text .st-l.say { color: #dbe3ec; }
.st-text .st-l.back { color: #cdbb96; }
@keyframes stIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 三个姿态 */
.st-acts {
  display: flex; gap: clamp(8px, 1.2vw, 16px); justify-content: center;
  margin-top: 1.6vh; flex-wrap: wrap;
}
.st-a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 108px; padding: 9px 18px 8px;
  background: transparent;
  border: 1px solid rgba(150, 172, 194, .22);
  cursor: pointer; transition: all .22s;
}
.st-a b {
  font-family: var(--serif); font-weight: 400; font-size: 12.5px;
  letter-spacing: .22em; text-indent: .22em; color: #b9c6d2;
}
.st-a i {
  font-family: var(--serif); font-style: normal; font-size: 9.5px;
  letter-spacing: .06em; color: #5f6c79;
}
.st-a:hover { border-color: rgba(210, 226, 242, .6); background: rgba(40, 50, 62, .5); }
.st-a:hover b { color: #eef4fa; }
.st-a.ghost { border-color: rgba(150, 172, 194, .1); }
.st-a.ghost b { color: #7d8a97; }

.st-foot {
  flex: none; display: flex; align-items: center; gap: 18px;
  padding-top: 1.4vh;
}
.st-n { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: #56636f; }
.st-paper { font-family: var(--serif); font-size: 10px; letter-spacing: .06em; color: #4e5a66; }
.st-b {
  background: transparent; border: 1px solid #2c343d; color: #8b98a5;
  font-family: var(--serif); font-size: 11px; letter-spacing: .24em;
  padding: 6px 14px; cursor: pointer; transition: all .22s;
}
.st-b:hover { border-color: #6b7c8c; color: #d6e0e8; }
.st-b.ghost { border-color: #222a32; color: #5a6672; }

@media (max-height: 760px) {
  .st-wrap { padding: 3vh 4vw 2vh; }
  .st-run { padding: 1vh 0 4vh; }
  .st-house { height: 246px; }
  .st-scene { height: clamp(160px, 34vh, 240px); }
  .st-text { max-height: 21vh; }
  .st-text .st-l { line-height: 1.95; }
}
