:root {
      --bg: #080a0b;
      --surface: rgba(18, 21, 24, 0.88);
      --surface-deep: rgba(11, 13, 15, 0.94);
      --surface-hover: rgba(28, 32, 37, 0.94);
      --hairline: rgba(255, 255, 255, 0.07);
      --text: #e2dfd7;
      --text-dim: #9e9a90;
      --text-faint: #68645c;
      --gold: #cfb277;
      --crimson: #a23838;
      --lcd-bg: #243326;
      --lcd-lit: #699c62;
      --lcd-ink: #0f1a11;
      --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
      --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif;
      --font-mono: "SFMono-Regular", Consolas, monospace;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      background: radial-gradient(ellipse at 50% 0%, #15191d 0%, #080a0b 74%);
      color: var(--text);
      font-family: var(--font-sans);
      font-size: 16px;
      min-height: 100vh;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      line-height: 1.85;
    }

    .vignette {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 88;
      background:
        repeating-linear-gradient(to bottom, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 4px),
        radial-gradient(circle at 50% 45%, transparent 48%, rgba(0, 0, 0, 0.72) 100%);
    }

    #noise-canvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 87;
      opacity: 0.042;
      transition: opacity 0.2s;
    }

    body.glitch-flash #noise-canvas { opacity: 0.22; }
    body.glitch-flash { animation: vhs-jitter 0.3s steps(2, end); }
    @keyframes vhs-jitter {
      0% { transform: translate(0, 0); }
      35% { transform: translate(-3px, 1px); }
      70% { transform: translate(3px, -1px); }
      100% { transform: translate(0, 0); }
    }

    /* Comfort mode */
    body.comfort-mode {
      --bg: #171a20;
      --surface: rgba(31, 36, 44, 0.95);
      --surface-deep: rgba(23, 27, 34, 0.97);
      --surface-hover: rgba(41, 47, 57, 0.98);
      --text: #f0ece3;
      --text-dim: #c6c1b7;
      --text-faint: #989389;
      background: #171a20;
    }
    body.comfort-mode #noise-canvas,
    body.comfort-mode .vignette { display: none !important; }

    /* Topbar */
    .topbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 58px;
      padding: 0 26px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(to bottom, rgba(8, 10, 11, 0.96), rgba(8, 10, 11, 0));
      z-index: 60;
    }
    .deck-left { display: flex; align-items: center; gap: 16px; }
    .brand-mark {
      display: flex;
      align-items: center;
      gap: 9px;
      color: var(--text);
      font-family: var(--font-serif);
      cursor: pointer;
      background: none;
      border: none;
      font-size: 16px;
      letter-spacing: 0.22em;
    }
    .rec-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--gold);
      box-shadow: 0 0 10px rgba(207, 178, 119, 0.8);
      animation: blink 2s infinite;
    }
    @keyframes blink { 0%, 60% { opacity: 1; } 75%, 100% { opacity: 0.25; } }
    .timecode { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
    .top-actions { display: flex; align-items: center; gap: 16px; }
    .nav-link {
      background: none; border: none; color: var(--text-dim);
      font-size: 14px; font-family: var(--font-sans); letter-spacing: 0.08em;
      cursor: pointer; padding: 4px 2px; transition: color 0.2s; white-space: nowrap;
    }
    .nav-link:hover:not(:disabled) { color: var(--text); }
    .nav-link.active { color: var(--gold); }
    .nav-link:disabled { opacity: 0.24; cursor: not-allowed; }

    main {
      position: relative;
      z-index: 10;
      min-height: 100vh;
      padding: 84px 22px 76px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .view { display: none; width: 100%; max-width: 940px; margin: 0 auto; animation: fadeIn 0.5s ease; }
    .view.active { display: block; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

    /* Controls */
    .input-row { width: 100%; display: flex; gap: 12px; align-items: center; }
    .text-input {
      flex: 1; background: transparent; border: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.18);
      color: var(--text); padding: 11px 4px; font-size: 16px;
      outline: none; font-family: var(--font-serif); letter-spacing: 0.1em;
    }
    .text-input::placeholder { color: var(--text-faint); font-size: 14.5px; }
    .text-input:focus { border-bottom-color: var(--gold); }

    .btn {
      background: rgba(255, 255, 255, 0.055);
      border: none; color: var(--text-dim);
      padding: 9px 16px; font-size: 14px; letter-spacing: 0.1em;
      border-radius: 2px; cursor: pointer; transition: all 0.2s; white-space: nowrap;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
    .btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.11); color: var(--text); }
    .btn-primary {
      background: rgba(207, 178, 119, 0.14); color: var(--gold);
      box-shadow: inset 0 0 0 1px rgba(207, 178, 119, 0.34);
    }
    .btn-primary:hover:not(:disabled) { background: rgba(207, 178, 119, 0.24); color: #ebd39d; }
    .btn-crimson {
      background: rgba(162, 56, 56, 0.18); color: #e69595;
      box-shadow: inset 0 0 0 1px rgba(162, 56, 56, 0.38);
    }
    .btn.toggled { background: rgba(207, 178, 119, 0.24); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(207, 178, 119, 0.55); }
    .btn:disabled { opacity: 0.28; cursor: not-allowed; }

    .feedback-line { min-height: 24px; font-size: 14.5px; font-family: var(--font-serif); color: var(--text-dim); margin-top: 10px; }
    .feedback-line.error { color: #d87a7a; }
    .feedback-line.success { color: var(--gold); }

    .eyebrow { font-size: 12.5px; letter-spacing: 0.18em; color: var(--text-faint); margin-bottom: 6px; }
    .page-title { font-family: var(--font-serif); font-size: 27px; font-weight: 400; letter-spacing: 0.18em; color: var(--text); }
    .prose-lead { font-family: var(--font-serif); color: var(--text-dim); font-size: 15.5px; margin-bottom: 22px; line-height: 2; }

    .detail-panel {
      background: var(--surface);
      border-radius: 2px;
      padding: 28px 32px;
      box-shadow: 0 24px 72px rgba(0, 0, 0, 0.72);
    }
    .back-bar {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); gap: 12px;
    }
    .section-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hairline); }
    .controls-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
    .slider-row { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
    .slider-row input[type="range"] { flex: 1; accent-color: var(--gold); cursor: pointer; }

    .film-note {
      display: none; margin-top: 20px; padding: 14px 4px 2px;
      border-top: 1px solid var(--hairline); font-size: 15px; color: #ddd6c9; line-height: 1.95;
    }
    .film-note.visible { display: block; animation: fadeIn 0.45s ease; }
    .film-note-lead { display: block; font-size: 12.5px; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 6px; }

    /* HOME */
    .home-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
    .photo-plate {
      position: relative; width: 100%; aspect-ratio: 4 / 3;
      background: #040506; overflow: hidden; border-radius: 2px;
      box-shadow: 0 30px 85px rgba(0, 0, 0, 0.88);
    }
    .photo-plate img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.04) brightness(0.92); }
    .home-copy-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .vertical-poetry {
      writing-mode: vertical-rl; text-orientation: upright;
      font-family: var(--font-serif); font-size: 18.5px; letter-spacing: 0.28em; line-height: 2.3;
      color: var(--text); margin: 0 auto 30px; min-height: 245px; text-align: left;
    }
    .vertical-poetry .poetry-gap { margin-right: 20px; }

    /* HUB */
    .search-strip { background: var(--surface); padding: 20px 24px; border-radius: 2px; margin-bottom: 24px; box-shadow: 0 16px 46px rgba(0, 0, 0, 0.55); }
    .archive-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
    .archive-card {
      background: var(--surface); border: none; border-radius: 2px; padding: 22px;
      text-align: left; cursor: pointer; transition: transform 0.22s, background 0.22s, box-shadow 0.22s;
      display: flex; flex-direction: column; justify-content: space-between; min-height: 138px;
      color: var(--text-dim); box-shadow: 0 14px 34px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.04);
    }
    .archive-card:hover { background: var(--surface-hover); color: var(--text); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.65), inset 0 1px 0 rgba(207,178,119,0.3); }
    .archive-card.crimson-card { background: linear-gradient(160deg, rgba(162,56,56,0.16), rgba(18,21,24,0.9)); }
    .card-meta { font-size: 12.5px; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 8px; display: flex; justify-content: space-between; }
    .card-title { font-family: var(--font-serif); font-size: 19px; letter-spacing: 0.1em; color: var(--text); margin-bottom: 5px; }
    .card-sub { font-size: 13.5px; color: var(--text-dim); }

    /* 2006 BBS TIEBA THREAD (档 00) */
    .bbs-box {
      background: #14171c;
      border-radius: 2px;
      padding: 18px 20px;
      margin-top: 18px;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }
    .bbs-title { font-size: 16.5px; font-weight: 600; color: var(--gold); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
    .bbs-floor { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.045); font-size: 14.5px; }
    .bbs-floor:last-child { border-bottom: none; }
    .bbs-meta { font-size: 12px; color: var(--text-faint); margin-bottom: 4px; display: flex; justify-content: space-between; }
    .bbs-photo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px; }
    .bbs-photo-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; display: block; }

    /* MECHANIC 1: REALISTIC DARKROOM FLUORESCENT LIGHT TABLE + 3 AGED TRACING PAPERS */
    .lightbox-bezel {
      width: 316px;
      margin: 0 auto 22px;
      padding: 16px;
      background: linear-gradient(160deg, #222427 0%, #111315 100%);
      border-radius: 6px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255,255,255,0.08);
    }
    .lightbox-stage {
      position: relative;
      width: 284px;
      height: 284px;
      background:
        radial-gradient(ellipse at 50% 48%, #d7ccb4 0%, #bfb195 58%, #97896e 100%);
      border-radius: 2px;
      box-shadow: inset 0 0 28px rgba(32, 24, 14, 0.55), 0 0 26px rgba(215, 204, 180, 0.16);
      overflow: hidden;
      transition: box-shadow 0.5s ease;
    }
    .lightbox-stage.aligned {
      box-shadow: inset 0 0 18px rgba(32, 24, 14, 0.35), 0 0 40px rgba(215, 204, 180, 0.32);
    }
    .lightbox-grid-bg {
      position: absolute; inset: 0; pointer-events: none;
      background-image:
        linear-gradient(to right, rgba(42, 34, 24, 0.14) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(42, 34, 24, 0.14) 1px, transparent 1px),
        repeating-linear-gradient(0deg, rgba(40,30,18,0.03) 0px, rgba(40,30,18,0.03) 1px, transparent 1px, transparent 3px);
      background-size: 33.333% 33.333%, 33.333% 33.333%, 100% 3px;
    }
    .film-layer {
      position: absolute; inset: 0; width: 100%; height: 100%;
      transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
      pointer-events: none;
      mix-blend-mode: multiply;
    }
    .film-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
    .film-ctrl-card {
      background: var(--surface-deep); padding: 12px; border-radius: 2px; text-align: center;
    }

    /* MECHANIC 2: SNOWY CRT TV TUNER (档 02) */
    .crt-tv-box {
      position: relative; width: 100%; aspect-ratio: 16 / 9;
      background: #060708; border-radius: 10px; overflow: hidden;
      margin-bottom: 16px;
      box-shadow: 0 22px 60px rgba(0,0,0,0.85), inset 0 0 40px rgba(0,0,0,0.85);
    }
    #tv-snow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
    .tv-signal-img {
      position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
      opacity: 0; transition: opacity 0.2s; z-index: 2;
    }
    .tv-osd {
      position: absolute; top: 14px; right: 18px; z-index: 5;
      font-family: var(--font-mono); font-size: 18px; color: #7dff8b;
      text-shadow: 0 0 8px rgba(125, 255, 139, 0.65); pointer-events: none;
    }
    .tv-broadcast-caption {
      position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
      z-index: 5; font-family: var(--font-serif); font-size: 16px; color: #f4eedf;
      background: rgba(0,0,0,0.68); padding: 5px 14px; border-radius: 2px;
      opacity: 0; transition: opacity 0.25s; white-space: nowrap;
    }

    /* MECHANIC 3: FLASHLIGHT SHRINE & METEORITE (档 03) */
    .flashlight-box {
      position: relative; width: 100%; aspect-ratio: 4 / 3;
      background: #040506; border-radius: 2px; overflow: hidden;
      cursor: crosshair; user-select: none; margin-bottom: 16px;
    }
    .flashlight-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .flashlight-mask {
      position: absolute; inset: 0; pointer-events: none; z-index: 4;
      background: radial-gradient(circle 135px at var(--fx, 50%) var(--fy, 50%), rgba(0,0,0,0.04) 0%, rgba(4,5,6,0.95) 75%);
    }
    .flashlight-tag {
      position: absolute; z-index: 3; font-family: var(--font-serif); font-size: 14px;
      color: #f4e9d2; text-shadow: 0 2px 6px #000, 0 0 12px #000;
      pointer-events: none; padding: 4px 8px;
    }

    /* MECHANIC 4: 4-CAM TIMELINE & 1998 GREEN LCD PAGER (档 04) */
    .cam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
    .cam-tile {
      position: relative; aspect-ratio: 16 / 9; background: #07090b;
      border-radius: 2px; overflow: hidden; padding: 12px;
      display: flex; flex-direction: column; justify-content: space-between;
      font-family: var(--font-mono); font-size: 12px; color: #b7c2b9;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
    }
    .cam-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; z-index: 1; }
    .cam-tile > * { position: relative; z-index: 2; }
    .cam-event { font-family: var(--font-serif); font-size: 14px; color: #ece6d8; background: rgba(0,0,0,0.62); padding: 6px 8px; border-radius: 2px; }
    .cam-tile.alert { box-shadow: inset 0 0 0 1.5px rgba(207, 178, 119, 0.75); }

    /* Realistic 1998 Pager (BB机) */
    .pager-wrap {
      max-width: 420px; margin: 16px auto 0;
      background: linear-gradient(160deg, #25282e 0%, #14161a 100%);
      border-radius: 14px; padding: 18px 20px;
      box-shadow: 0 20px 50px rgba(0,0,0,0.82), inset 0 1px 0 rgba(255,255,255,0.12);
    }
    .pager-screen {
      background: var(--lcd-bg);
      color: #8ab886;
      font-family: var(--font-mono);
      padding: 16px 18px;
      border-radius: 6px;
      min-height: 98px;
      box-shadow: inset 0 3px 12px rgba(0,0,0,0.75);
      transition: background 0.25s, color 0.25s;
      margin-bottom: 14px;
    }
    .pager-screen.backlit {
      background: var(--lcd-lit);
      color: var(--lcd-ink);
      box-shadow: inset 0 2px 10px rgba(0,0,0,0.35), 0 0 24px rgba(105, 156, 98, 0.35);
    }
    .pager-code { font-size: 24px; letter-spacing: 0.2em; font-weight: 700; margin-top: 6px; }
    .pager-sticker {
      display: none; background: #cfc5ae; color: #241f18; padding: 14px 16px;
      border-radius: 4px; font-family: var(--font-serif); font-size: 14px; line-height: 1.9;
      margin-bottom: 14px;
    }
    .pager-sticker.visible { display: block; }

    /* MECHANIC 5: ALTAR RULES & WAVEFORM ALIGNER (档 05) */
    .altar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
    .altar-slot {
      background: var(--surface-deep); padding: 16px; border-radius: 2px; text-align: center;
      display: flex; flex-direction: column; gap: 10px; justify-content: space-between;
    }
    .wave-align-canvas {
      width: 100%; height: 96px; background: #07090b; border-radius: 2px;
      display: block; margin: 12px 0;
    }

    /* FINAL CONTRADICTION AMULETS */
    .evidence-pool { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 18px 0; }
    .ev-card {
      position: relative;
      background: linear-gradient(180deg, #1b1713 0%, #110e0c 100%);
      border: none; border-radius: 28px 28px 4px 4px; padding: 24px 20px 18px;
      text-align: center; cursor: pointer; color: #b7ae9e; transition: all 0.22s;
      box-shadow: 0 14px 32px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(207,178,119,0.22), inset 0 0 0 6px #12100d;
    }
    .ev-card.selected { color: #f4ebd8; box-shadow: 0 0 22px rgba(207,178,119,0.24), inset 0 0 0 1.5px rgba(207,178,119,0.78), inset 0 0 0 6px #1a150f; }
    .ev-card.matched { opacity: 0.62; color: #e2bebe; box-shadow: inset 0 0 0 1px rgba(162,56,56,0.55), inset 0 0 0 6px #140c0c; }
    .ev-tag { font-family: var(--font-serif); font-size: 13px; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.14em; }
    .ev-text { font-family: var(--font-serif); font-size: 14.5px; line-height: 1.75; }

    .choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
    .choice-btn {
      background: var(--surface-deep); border: none; padding: 16px; border-radius: 2px;
      text-align: left; cursor: pointer; color: var(--text); transition: all 0.2s;
      box-shadow: inset 0 0 0 1px rgba(207,178,119,0.22);
    }
    .choice-btn:hover:not(:disabled) { background: rgba(207,178,119,0.12); }
    .choice-btn.chosen { box-shadow: inset 0 0 0 1.5px var(--gold); background: rgba(207,178,119,0.14); }
    .choice-btn:disabled { opacity: 0.5; cursor: default; }

    /* Modals & Cinema Subtitle */
    .modal-backdrop {
      position: fixed; inset: 0; background: rgba(3,4,5,0.86); backdrop-filter: blur(6px);
      z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px;
    }
    .modal-backdrop.open { display: flex; }
    .modal-card { width: 100%; max-width: 480px; background: #12151a; border-radius: 2px; padding: 24px; box-shadow: 0 24px 70px rgba(0,0,0,0.85); }
    .notes-area { width: 100%; min-height: 190px; background: #07080a; border: none; color: var(--text); padding: 14px; font-size: 15px; line-height: 1.8; border-radius: 2px; outline: none; }

    .toast {
      position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%) translateY(6px);
      max-width: 84vw; text-align: center; color: #f3ede0; font-size: 18px; letter-spacing: 0.16em;
      opacity: 0; pointer-events: none; transition: opacity 0.6s ease, transform 0.6s ease; z-index: 120;
      text-shadow: 0 2px 6px #000, 0 0 16px #000;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


    /* BBS Multi-Thread Tabs */
    .bbs-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
    .bbs-pane { display: none; }
    .bbs-pane.active { display: block; animation: fadeIn 0.35s ease; }

    /* 1999 Pot-Crowd Photo Inspection */
    .crowd-frame {
      position: relative; width: 100%; aspect-ratio: 16 / 10;
      background: #050607; border-radius: 2px; overflow: hidden; margin-bottom: 16px;
      box-shadow: 0 20px 55px rgba(0,0,0,0.8);
    }
    .crowd-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.08); }
    .crowd-hotspot {
      position: absolute; top: 8%; left: 48%; width: 14%; height: 34%;
      background: transparent; border: 1px dashed rgba(207,178,119,0); cursor: crosshair; z-index: 4;
      transition: border-color 0.25s, background 0.25s;
    }
    .crowd-hotspot:hover, .crowd-hotspot.found {
      border-color: rgba(207,178,119,0.75);
      background: rgba(207,178,119,0.12);
    }

    /* 1998 UFO Triangulation Map */
    .ufo-map-wrap {
      background: #141310; border-radius: 2px; padding: 14px; margin: 16px 0;
      box-shadow: inset 0 0 36px rgba(0,0,0,0.85), inset 0 0 0 1px rgba(207,178,119,0.18);
    }
    .ufo-map-svg { width: 100%; height: auto; display: block; }
    .sight-line { opacity: 0; transition: opacity 0.45s ease; }
    .sight-line.on { opacity: 1; }


    /* Vintage Rotary TV Channel Knob (档 02) */
    .tv-knob-panel {
      display: flex; align-items: center; justify-content: center; gap: 28px;
      padding: 18px 20px; background: var(--surface-deep); border-radius: 2px;
      margin-bottom: 14px; flex-wrap: wrap;
    }
    .rotary-wrap {
      position: relative; width: 124px; height: 124px;
      display: flex; align-items: center; justify-content: center;
    }
    .rotary-ticks {
      position: absolute; inset: 0; border-radius: 50%;
      border: 1px dashed rgba(207, 178, 119, 0.35);
      pointer-events: none;
    }
    .rotary-knob {
      width: 92px; height: 92px; border-radius: 50%;
      background:
        radial-gradient(circle at 32% 30%, #3a3e46 0%, #1a1c20 65%, #0d0e10 100%);
      box-shadow: 0 10px 26px rgba(0,0,0,0.85), inset 0 1px 2px rgba(255,255,255,0.18), inset 0 -4px 8px rgba(0,0,0,0.8);
      position: relative; cursor: grab; user-select: none;
      transition: transform 0.12s ease-out;
      border: 2px solid #2b2f36;
    }
    .rotary-knob:active { cursor: grabbing; }
    .rotary-knob::after {
      content: ""; position: absolute; top: 8px; left: 50%;
      transform: translateX(-50%); width: 4px; height: 22px;
      background: #e6cfa0; border-radius: 2px;
      box-shadow: 0 0 6px rgba(230, 207, 160, 0.7);
    }

    /* 8-Direction Brass Compass (档 03) */
    .compass-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
      max-width: 460px; margin: 12px 0 16px;
    }
    .compass-btn {
      background: var(--surface-deep); border: none; padding: 11px 8px;
      color: var(--text-dim); font-family: var(--font-serif); font-size: 14.5px;
      border-radius: 2px; cursor: pointer; transition: all 0.2s;
      box-shadow: inset 0 0 0 1px rgba(207, 178, 119, 0.18);
    }
    .compass-btn:hover { background: var(--surface-hover); color: var(--text); }
    .compass-btn.active {
      background: rgba(207, 178, 119, 0.2); color: var(--gold);
      box-shadow: inset 0 0 0 1.5px var(--gold);
    }

    /* Dynamic Visual Overlays inside 4-Cam CCTV (档 04) */
    .cam-fx-layer {
      position: absolute; inset: 0; z-index: 2; pointer-events: none;
      transition: opacity 0.25s ease;
    }
    .cam-silhouette {
      position: absolute; bottom: 16%; left: 42%; width: 34px; height: 68px;
      background: radial-gradient(ellipse at 50% 18%, rgba(28,48,74,0.95) 0 11px, transparent 12px),
                  linear-gradient(180deg, rgba(22,42,68,0.92), rgba(10,18,30,0.95));
      border-radius: 16px 16px 4px 4px;
      box-shadow: 0 0 0 1.5px rgba(218, 76, 76, 0.9), 0 0 16px rgba(218, 76, 76, 0.45);
      opacity: 0; transition: opacity 0.2s;
    }
    .cam-silhouette::after {
      content: "移动侦测"; position: absolute; top: -18px; left: -10px;
      font-size: 10px; color: #ff7e7e; white-space: nowrap;
      font-family: var(--font-mono);
    }
    .cam-tile.show-figure .cam-silhouette { opacity: 1; }
    .cam-blackout {
      position: absolute; inset: 0; background: #040506; z-index: 3;
      display: flex; align-items: center; justify-content: center;
      color: #c86464; font-family: var(--font-mono); font-size: 13px;
      opacity: 0; pointer-events: none; transition: opacity 0.25s;
    }
    .cam-tile.blackout .cam-blackout { opacity: 0.96; }

    /* Cave Mural Interactive Hotspots (档 08) */
    .mural-frame {
      position: relative; width: 100%; aspect-ratio: 16 / 9;
      background: #040506; border-radius: 2px; overflow: hidden; margin-bottom: 16px;
      box-shadow: 0 22px 60px rgba(0,0,0,0.85);
    }
    .mural-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .mural-spot {
      position: absolute; background: transparent;
      border: 1px dashed rgba(207, 178, 119, 0.25);
      cursor: crosshair; z-index: 4; transition: all 0.25s;
    }
    .mural-spot:hover, .mural-spot.checked {
      border-color: rgba(207, 178, 119, 0.85);
      background: rgba(207, 178, 119, 0.14);
    }

    @media (max-width: 780px) {
      .home-layout, .archive-list, .cam-grid, .evidence-pool, .altar-grid, .choice-grid, .film-controls, .bbs-photo-row {
        grid-template-columns: 1fr;
      }
      .timecode { display: none; }
      .detail-panel { padding: 18px; }
      .topbar { padding: 0 12px; }
    }
  
    /* === 终章升级：暗房刮漆验胎 + 《天外通讯》红笔校对台 === */
    .final-stage-box {
      border: 1px solid var(--border);
      background: rgba(16, 15, 13, 0.72);
      padding: 18px;
      margin-bottom: 18px;
    }
    body.comfort-mode .final-stage-box {
      background: rgba(244, 240, 231, 0.85);
    }
    .scratch-wrap {
      position: relative;
      width: 100%;
      max-width: 460px;
      aspect-ratio: 4 / 3;
      margin: 14px auto 12px;
      border: 1px solid var(--border);
      background: #141210;
      overflow: hidden;
      user-select: none;
      -webkit-user-select: none;
      touch-action: none;
      cursor: crosshair;
    }
    .scratch-under-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      filter: contrast(1.06) brightness(0.92);
    }
    .scratch-under-tag {
      position: absolute;
      left: 10px;
      right: 10px;
      bottom: 10px;
      padding: 6px 10px;
      background: rgba(12, 11, 10, 0.84);
      border-left: 3px solid var(--crimson);
      color: #e6d7b8;
      font-size: 13px;
      letter-spacing: 0.06em;
      pointer-events: none;
    }
    #scratch-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      transition: opacity 0.65s ease;
    }
    #scratch-canvas.cleared {
      opacity: 0;
      pointer-events: none;
    }
    .scratch-bar-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      max-width: 460px;
      margin: 0 auto;
      font-size: 14px;
      color: var(--text-dim);
      flex-wrap: wrap;
    }

    /* 报纸大样校对台 */
    .paper-stage {
      display: none;
      margin-top: 18px;
    }
    .paper-stage.visible {
      display: block;
      animation: fadeSlideIn 0.5s ease;
    }
    @keyframes fadeSlideIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .newsprint-sheet {
      position: relative;
      border: 2px double var(--border);
      background: #191714;
      padding: 20px 18px;
      margin-bottom: 16px;
    }
    body.comfort-mode .newsprint-sheet {
      background: #f5f0e3;
      border-color: #9e9480;
    }
    .newsprint-head {
      text-align: center;
      border-bottom: 2px solid var(--border);
      padding-bottom: 12px;
      margin-bottom: 16px;
    }
    .newsprint-title {
      font-family: var(--font-serif);
      font-size: clamp(22px, 3.6vw, 30px);
      letter-spacing: 0.22em;
      color: var(--text);
      margin-bottom: 6px;
    }
    .newsprint-meta {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
      font-size: 12.5px;
      color: var(--text-faint);
      letter-spacing: 0.08em;
    }
    .paper-seal {
      position: absolute;
      top: 16px;
      right: 18px;
      padding: 6px 12px;
      border: 3px solid #b83333;
      color: #c93b3b;
      font-family: var(--font-serif);
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.18em;
      transform: rotate(-11deg) scale(1.3);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.32s cubic-bezier(0.2, 0.85, 0.3, 1.15), opacity 0.28s ease;
      background: rgba(184, 51, 51, 0.08);
    }
    .paper-seal.stamped {
      opacity: 0.94;
      transform: rotate(-11deg) scale(1);
    }
    .proof-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 14px;
    }
    .proof-slot {
      text-align: left;
      width: 100%;
      border: 1px dashed rgba(196, 88, 88, 0.55);
      background: rgba(255, 255, 255, 0.02);
      padding: 14px;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
      color: var(--text);
      font-family: inherit;
    }
    body.comfort-mode .proof-slot {
      background: rgba(255, 255, 255, 0.55);
    }
    .proof-slot:hover {
      border-color: var(--gold);
    }
    .proof-slot.selected {
      border: 1.5px solid var(--crimson);
      background: rgba(196, 88, 88, 0.12);
    }
    .proof-slot.proofed {
      border: 1px solid rgba(196, 88, 88, 0.45);
      background: rgba(196, 88, 88, 0.05);
      cursor: default;
    }
    .proof-col-label {
      font-size: 12.5px;
      color: var(--gold);
      letter-spacing: 0.12em;
      margin-bottom: 6px;
      display: flex;
      justify-content: space-between;
    }
    .proof-orig {
      font-family: var(--font-serif);
      font-size: 15px;
      line-height: 1.6;
      color: var(--text-dim);
    }
    .proof-slot.proofed .proof-orig {
      text-decoration: line-through;
      text-decoration-color: #c93b3b;
      text-decoration-thickness: 2px;
      opacity: 0.58;
    }
    .proof-fix {
      display: none;
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px dotted rgba(196, 88, 88, 0.45);
      color: #e06c6c;
      font-family: var(--font-serif);
      font-size: 15px;
      line-height: 1.65;
    }
    body.comfort-mode .proof-fix {
      color: #a62626;
    }
    .proof-slot.proofed .proof-fix {
      display: block;
    }
    .slip-tray-title {
      font-size: 13.5px;
      color: var(--gold);
      letter-spacing: 0.12em;
      margin-bottom: 10px;
    }
    .slip-tray {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }
    .proof-slip {
      text-align: left;
      padding: 12px 13px;
      border: 1px solid var(--border);
      background: rgba(24, 22, 19, 0.85);
      color: var(--text);
      font-family: inherit;
      font-size: 14px;
      line-height: 1.55;
      cursor: pointer;
      transition: border-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
    }
    body.comfort-mode .proof-slip {
      background: #fffdf8;
    }
    .proof-slip:hover:not(:disabled) {
      border-color: var(--gold);
      transform: translateY(-1px);
    }
    .proof-slip.selected {
      border-color: var(--crimson);
      background: rgba(196, 88, 88, 0.14);
    }
    .proof-slip.used {
      opacity: 0.36;
      text-decoration: line-through;
      cursor: default;
    }
    .slip-tag {
      font-size: 12px;
      color: var(--text-faint);
      margin-bottom: 4px;
      letter-spacing: 0.08em;
    }

  
    /* 老《飞碟探索》式期刊刊眉与版脚 */
    .mag-banner {
      border: 2px solid #9e3030;
      padding: 12px 14px;
      margin-bottom: 14px;
      background: rgba(158, 48, 48, 0.08);
    }
    .mag-colophon {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
      font-size: 12.5px;
      color: var(--text-faint);
      border-top: 1px dashed var(--border);
      padding-top: 8px;
      margin-top: 12px;
      letter-spacing: 0.08em;
    }

  
    /* === 1999 实体老杂志双页摊开复刻（致敬1984《飞碟探索》左泛黄双栏＋右橄榄绿套色图版） === */
    .mag-spread {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      border: 2px solid #4a4032;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
      margin-top: 12px;
      overflow: hidden;
    }
    @media (max-width: 760px) {
      .mag-spread { grid-template-columns: 1fr; }
    }
    .mag-page-left {
      background:
        radial-gradient(circle at 12% 14%, rgba(120, 88, 42, 0.14), transparent 55%),
        linear-gradient(90deg, #d7ccb2 0%, #e4dac2 92%, #bfb398 100%);
      color: #241f18;
      padding: 20px 18px 16px;
      border-right: 1px solid rgba(50, 40, 28, 0.35);
      font-family: var(--font-serif);
    }
    .mag-page-right {
      background:
        radial-gradient(circle at 85% 20%, rgba(40, 46, 18, 0.18), transparent 60%),
        linear-gradient(90deg, #5d6430 0%, #6f773b 12%, #6b7338 100%);
      color: #16180c;
      padding: 20px 18px 16px;
      font-family: var(--font-serif);
      position: relative;
    }
    .mag-kicker {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 0.28em;
      color: #362e24;
      border-bottom: 2px solid #4d4133;
      padding-bottom: 5px;
      margin-bottom: 12px;
      text-align: center;
    }
    .mag-cols {
      column-count: 2;
      column-gap: 16px;
      font-size: 13px;
      line-height: 1.72;
      text-align: justify;
    }
    @media (max-width: 520px) {
      .mag-cols { column-count: 1; }
    }
    .mag-art-title {
      font-size: 15px;
      font-weight: 700;
      margin: 0 0 6px;
      color: #1c1711;
      break-after: avoid;
    }
    .mag-art-byline {
      font-size: 11.5px;
      color: #544738;
      text-align: right;
      margin-bottom: 6px;
    }
    .mag-cols p {
      margin: 0 0 8px;
      text-indent: 2em;
    }
    .mag-foot-num {
      margin-top: 12px;
      font-size: 12px;
      color: #524536;
      letter-spacing: 0.16em;
    }
    .mag-plate-title {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-align: center;
      color: #14160a;
      margin: 0 0 12px;
    }
    .mag-halftone {
      width: 100%;
      border: 1px solid rgba(20, 22, 10, 0.55);
      filter: grayscale(1) contrast(1.25) brightness(0.95);
      display: block;
    }
    .mag-plate-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 10px;
      align-items: start;
      margin-top: 10px;
    }
    .mag-plate-cap {
      font-size: 12px;
      line-height: 1.6;
      color: #1b1d0f;
      margin-top: 6px;
    }
    .mag-plate-foot {
      margin-top: 12px;
      padding-top: 6px;
      border-top: 1px dashed rgba(20, 22, 10, 0.35);
      display: flex;
      justify-content: space-between;
      font-size: 11.5px;
      color: #1f2212;
      letter-spacing: 0.08em;
    }

  
    /* === 档06 无提示隐藏热点（点击后才红框圈出右上角林生） === */
    .crowd-hotspot {
      left: 85.5% !important;
      top: 1.5% !important;
      width: 13% !important;
      height: 22% !important;
      border: none !important;
      background: transparent !important;
      box-shadow: none !important;
      cursor: crosshair !important;
    }
    .crowd-hotspot.found {
      border: 2.5px solid #d93838 !important;
      background: rgba(217, 56, 56, 0.14) !important;
      box-shadow: 0 0 14px rgba(217, 56, 56, 0.65) !important;
      border-radius: 3px;
    }

    /* === 2006 实体金属数码录音笔造型 === */
    .recorder-shell {
      max-width: 310px;
      margin: 0 auto 18px;
      background: linear-gradient(145deg, #3a3d42 0%, #24262a 48%, #181a1d 100%);
      border: 2px solid #555961;
      border-radius: 18px;
      padding: 16px 18px 20px;
      box-shadow: 0 14px 32px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.18);
      color: #e6e8ec;
    }
    .rec-top-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      font-size: 11px;
      letter-spacing: 0.16em;
      color: #9ba0aa;
    }
    .rec-led {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #4b1d1d;
      border: 1px solid #222;
      display: inline-block;
      margin-right: 6px;
      vertical-align: middle;
    }
    .rec-led.playing {
      background: #ff3b30;
      box-shadow: 0 0 8px #ff3b30;
      animation: recBlink 1s infinite;
    }
    @keyframes recBlink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.35; }
    }
    .rec-lcd {
      background: linear-gradient(180deg, #8ca17a 0%, #768c64 100%);
      border: 3px solid #141618;
      border-radius: 6px;
      padding: 10px 12px;
      color: #162111;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      box-shadow: inset 0 2px 6px rgba(0,0,0,0.45);
      margin-bottom: 14px;
    }
    .rec-lcd-top {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      font-weight: 700;
      border-bottom: 1px solid rgba(22,33,17,0.28);
      padding-bottom: 4px;
      margin-bottom: 6px;
    }
    .rec-lcd-time {
      font-size: 22px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-align: center;
      margin: 2px 0 6px;
    }
    .rec-meter {
      display: grid;
      grid-template-columns: repeat(14, 1fr);
      gap: 3px;
      height: 12px;
      align-items: end;
    }
    .rec-meter span {
      display: block;
      background: rgba(22,33,17,0.22);
      height: 3px;
      transition: height 0.12s ease;
    }
    .rec-meter span.lit {
      background: #162111;
    }
    .rec-controls {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 14px;
      margin-bottom: 14px;
    }
    .rec-btn-main {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      border: 2px solid #767b85;
      background: radial-gradient(circle at 35% 30%, #52565e, #24262b);
      color: #f3e4b8;
      font-size: 18px;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.25);
    }
    .rec-btn-main:active { transform: scale(0.96); }
    .rec-btn-sub {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1.5px solid #5f646d;
      background: linear-gradient(145deg, #3c3f46, #222429);
      color: #cfd3db;
      font-size: 13px;
      cursor: pointer;
    }
    .rec-grille {
      height: 28px;
      border-radius: 6px;
      background-image: radial-gradient(#0d0e10 1.4px, transparent 1.5px);
      background-size: 6px 6px;
      background-color: #1c1e22;
      border: 1px solid #30333a;
    }
    .rec-lock-bar {
      text-align: center;
      padding: 12px 14px;
      border: 1px dashed var(--border);
      background: rgba(18, 16, 14, 0.55);
      font-size: 14px;
      color: var(--text-dim);
    }
    .rec-transcript-box {
      display: none;
      margin-top: 12px;
    }
    .rec-transcript-box.open {
      display: block;
    }

    /* === 档03 仰角与信号表 === */
    .signal-meter-bar {
      height: 12px;
      background: #141210;
      border: 1px solid var(--border);
      margin: 8px 0 10px;
      overflow: hidden;
    }
    .signal-meter-fill {
      height: 100%;
      width: 12%;
      background: linear-gradient(90deg, #6b5d42, #cfb277, #c45858);
      transition: width 0.25s ease;
    }
    .tilt-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 10px 0 12px;
    }

    /* === 档07 交互式方位角控制器 === */
    .ufo-ctrl-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
      gap: 10px;
      margin-top: 12px;
    }
    .ufo-station-card {
      border: 1px solid var(--border);
      background: rgba(20, 18, 15, 0.72);
      padding: 10px 12px;
    }
    body.comfort-mode .ufo-station-card {
      background: rgba(255, 252, 245, 0.85);
    }

  
    /* === 雁江人物关系板（动态红线档案网） === */
    .board-svg-wrap {
      border: 1px solid var(--border);
      background:
        radial-gradient(circle at 50% 50%, rgba(158, 48, 48, 0.08), transparent 70%),
        #13110e;
      padding: 10px;
      margin-bottom: 14px;
      overflow-x: auto;
    }
    body.comfort-mode .board-svg-wrap {
      background: #efe8d8;
    }
    .board-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 10px;
    }
    .char-card {
      border: 1px solid var(--border);
      background: rgba(20, 18, 15, 0.85);
      padding: 11px 12px;
      font-size: 13px;
      line-height: 1.6;
    }
    body.comfort-mode .char-card {
      background: #fffdf7;
    }
    .char-card.locked {
      opacity: 0.52;
      border-style: dashed;
    }
    .char-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 4px;
      border-bottom: 1px dashed rgba(207, 178, 119, 0.25);
      padding-bottom: 4px;
    }
    .char-name {
      font-family: var(--font-serif);
      font-size: 15px;
      font-weight: 700;
      color: var(--gold);
    }
    .char-role {
      font-size: 11.5px;
      color: var(--text-faint);
    }

  
    /* === 硬核机制升级样式：暗房5674转盘锁 / 人物关系板 / 供桌纯画面草图 / 报纸词块填空 === */
    .altar-sketch {
      background: #dfd5be;
      color: #241f18;
      border: 1px solid #6b5e49;
      padding: 12px;
      margin-bottom: 14px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    @media (max-width: 600px) { .altar-sketch { grid-template-columns: 1fr; } }
    .altar-sketch-cell {
      border: 1px dashed rgba(50, 40, 28, 0.4);
      padding: 8px;
      text-align: center;
      background: rgba(255, 252, 244, 0.35);
    }
    .dial-cabinet {
      max-width: 440px;
      margin: 14px auto;
      padding: 18px;
      border: 2px solid #595247;
      background: linear-gradient(180deg, #1b1a18 0%, #121110 100%);
      text-align: center;
    }
    body.comfort-mode .dial-cabinet {
      background: #e9e2d2;
      border-color: #8b7e68;
    }
    .dial-note {
      display: inline-block;
      padding: 8px 14px;
      margin-bottom: 14px;
      background: #d8cba8;
      color: #262017;
      font-family: var(--font-serif);
      font-size: 14px;
      border-left: 3px solid #9e3030;
      transform: rotate(-0.8deg);
    }
    .dial-row {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin: 14px 0 16px;
    }
    .dial-wheel {
      width: 62px;
      border: 1px solid var(--border);
      background: #0d0c0b;
      padding: 6px 4px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }
    body.comfort-mode .dial-wheel { background: #fbf8f0; }
    .dial-btn {
      width: 100%;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-dim);
      font-size: 13px;
      padding: 3px 0;
      cursor: pointer;
    }
    .dial-btn:hover { border-color: var(--gold); color: var(--gold); }
    .dial-num {
      font-family: var(--font-mono);
      font-size: 26px;
      font-weight: 700;
      color: var(--gold);
      line-height: 1.25;
      padding: 4px 0;
    }
    .board-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 12px;
      margin: 14px 0;
    }
    .board-card {
      border: 1px solid var(--border);
      background: rgba(20, 18, 15, 0.78);
      padding: 13px;
      position: relative;
    }
    body.comfort-mode .board-card { background: #fbf8f0; }
    .board-card.locked {
      border-color: #9e3030;
      background: rgba(158, 48, 48, 0.08);
    }
    .board-name {
      font-family: var(--font-serif);
      font-size: 17px;
      color: var(--gold);
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .board-select {
      width: 100%;
      padding: 8px 10px;
      background: #141210;
      color: var(--text);
      border: 1px solid var(--border);
      font-size: 14px;
      font-family: inherit;
    }
    body.comfort-mode .board-select { background: #fff; color: #221d16; }
    .board-card.locked .board-select { opacity: 0.72; pointer-events: none; }
    .cloze-blank {
      display: inline-block;
      min-width: 82px;
      padding: 1px 8px;
      margin: 0 2px;
      border: 1px dashed #c93b3b;
      background: rgba(196, 88, 88, 0.12);
      color: #f08a8a;
      font-family: var(--font-serif);
      font-size: 14px;
      cursor: pointer;
      vertical-align: baseline;
    }
    body.comfort-mode .cloze-blank { color: #a62626; }
    .cloze-blank.selected {
      border: 1.5px solid var(--gold);
      background: rgba(207, 178, 119, 0.22);
      color: var(--gold);
    }
    .cloze-blank.filled {
      border-style: solid;
      border-color: #c93b3b;
      color: #ff9c9c;
      font-weight: 700;
    }
    body.comfort-mode .cloze-blank.filled { color: #9c1d1d; }
    .cloze-chip-tray {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 12px 0 14px;
    }
    .cloze-chip {
      padding: 7px 12px;
      border: 1px solid var(--border);
      background: rgba(24, 22, 19, 0.9);
      color: var(--text);
      font-size: 14px;
      cursor: pointer;
      font-family: var(--font-serif);
    }
    body.comfort-mode .cloze-chip { background: #fffdf8; }
    .cloze-chip:hover { border-color: var(--gold); }
    .cloze-chip.selected { border-color: var(--crimson); background: rgba(196, 88, 88, 0.18); color: var(--gold); }
    .cloze-chip.used { opacity: 0.35; text-decoration: line-through; }
    .final-substage { display: none; }
    .final-substage.visible { display: block; animation: fadeSlideIn 0.45s ease; }
    .topbar-clock { cursor: pointer; user-select: none; }

  
    /* 老唐贴在旧彩电边框上的泛黄便签 */
    .tv-sticky-note {
      margin: 12px auto 0;
      max-width: 520px;
      padding: 10px 14px;
      background: rgba(226, 208, 152, 0.13);
      border-left: 3px solid var(--gold);
      border-top: 1px dashed rgba(207, 178, 119, 0.35);
      font-family: var(--font-serif);
      font-size: 14.5px;
      color: var(--gold);
      letter-spacing: 0.06em;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
    }
    body.comfort-mode .tv-sticky-note {
      background: #efe6cc;
      color: #6b4e16;
    }

    /* 灵窟供桌旁的铁皮功德箱（佛祖爱你） */
    .merit-box-wrap {
      margin-top: 18px;
      padding: 16px;
      border: 1px solid rgba(196, 88, 88, 0.45);
      background: linear-gradient(180deg, rgba(92, 18, 18, 0.32), rgba(22, 14, 14, 0.72));
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }
    body.comfort-mode .merit-box-wrap {
      background: linear-gradient(180deg, #f5e2de, #f4ece4);
    }
    .merit-box-body {
      flex: 1 1 240px;
      border: 2px solid #b5342b;
      background: #751814;
      padding: 12px 16px;
      text-align: center;
      position: relative;
      box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.45);
    }
    .merit-slot {
      width: 96px;
      height: 7px;
      background: #120908;
      border: 1px solid #d4a84c;
      margin: 0 auto 10px;
      border-radius: 2px;
    }
    .merit-title {
      font-family: var(--font-serif);
      font-size: 20px;
      font-weight: 700;
      letter-spacing: 0.22em;
      color: #ffd95a;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    }
    .merit-sub {
      font-size: 12px;
      color: #f0c98d;
      margin-top: 4px;
      letter-spacing: 0.12em;
    }

  
    @keyframes cardPulse {
      0% { box-shadow: 0 0 0 0 rgba(207, 178, 119, 0.75); border-color: var(--gold); }
      70% { box-shadow: 0 0 0 10px rgba(207, 178, 119, 0); border-color: var(--gold); }
      100% { box-shadow: 0 0 0 0 rgba(207, 178, 119, 0); }
    }
    .archive-card.just-found {
      animation: cardPulse 1.1s ease 2;
      border-color: var(--gold);
    }
