/* kcrump.me 主站 · 和查分站是一家：白底、藏青、雾蓝、宋体标题、双线、千鸟格。
   查分站是 Yume 上班的地方（白天、通行证）；这里是她下班以后（夜里、取景器）。
   布局：页眉双线 → 一个夜色的取景器（左字右人，底下一条读数）→ 三个拨盘 → 斜条幅 → 印样（一格一篇笔记）→ 去查分处的通行证 → 页脚。
   会自己动的只有：开场、条幅、光环；其余的动都是回应你的操作。 */
:root {
  --bg: #fbfcfe; --card: #ffffff; --ink: #1b2a4a; --mute: #56637d; --line: #b9c2d3; --hair: #d8deea;
  --mist: #e6effa; --fog: #8fb2d9; --fog-deep: #5f86b5; --on-ink: #ffffff;
  --gold: #e3c16a; --gold-ink: #86661a;
  --night: #0e1627; --film: #16223d; --on-night: #f3f6fb; --dim-night: #9fb0cc;   /* 取景器和胶片：深浅色模式下都是夜色 */
  --hound: rgba(143, 178, 217, .30);
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", STSong, SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --io: cubic-bezier(.7, 0, .2, 1); --pop: cubic-bezier(.3, 1.5, .5, 1);
  --gut: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1626; --card: #162036; --ink: #eef2f9; --mute: #9aa6bd; --line: #3d4a66; --hair: #27324b;
    --mist: #1a2640; --fog-deep: #a9c6e6; --on-ink: #0f1626; --gold-ink: #e3c16a;
    --night: #080d18; --film: #0a101e; --hound: rgba(143, 178, 217, .16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1626; --card: #162036; --ink: #eef2f9; --mute: #9aa6bd; --line: #3d4a66; --hair: #27324b;
  --mist: #1a2640; --fog-deep: #a9c6e6; --on-ink: #0f1626; --gold-ink: #e3c16a;
  --night: #080d18; --film: #0a101e; --hound: rgba(143, 178, 217, .16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--fog-deep); outline-offset: 2px; }
img { max-width: 100%; }

.page { max-width: 1040px; margin: 0 auto; padding: 24px var(--gut) 40px; }

/* ---------- 页眉：品牌行 + 一粗一细两条线（和查分站同一个页眉） ---------- */
.bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mute); }
.brand { color: var(--mute); text-decoration: none; letter-spacing: .08em; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--mute); text-decoration: none; letter-spacing: .08em; padding: 2px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .brand:hover { color: var(--ink); }
.nav a:hover { border-bottom-color: var(--ink); }
.rule { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.rule i { display: block; height: 1.5px; background: var(--ink); }

/* ---------- 取景器 ---------- */
.finder { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.vf { position: relative; height: min(118vw, 500px); background: var(--night); color: var(--on-night); overflow: hidden; border-radius: 4px; isolation: isolate; }

/* 取景器里的世界：背景 + 人 + 噪点。曝光只改这一层的亮度，字和框线不跟着变 */
.vf-world { position: absolute; inset: 0; filter: brightness(var(--br, 1)); transition: filter .35s var(--ease); }
.vf-scene { position: absolute; inset: 0; filter: blur(var(--blur, 6.5px)); transition: filter .35s var(--ease); }
/* 人站的那个画框：背景里的拱窗、人、对焦框三样都用这一个位置 */
.sbox { position: absolute; right: -8%; bottom: 34px; height: 78%; aspect-ratio: 476 / 525; }
.arch {
  position: absolute; left: 50%; bottom: 0; width: 70%; height: 88%; border-radius: 999px 999px 0 0; transform: translateX(-50%);
  background-color: rgba(143, 178, 217, .10);
  background-image:
    linear-gradient(-45deg, transparent 25%, transparent 25%, transparent 75%, var(--hound) 75%),
    linear-gradient(-45deg, var(--hound) 25%, transparent 25%),
    linear-gradient(45deg, var(--hound) 17%, transparent 17%, transparent 25%, var(--hound) 25%,
      var(--hound) 36%, transparent 36%, transparent 64%, var(--hound) 64%,
      var(--hound) 75%, transparent 75%, transparent 83%, var(--hound) 83%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px, 8px 8px;
}
/* 背景里的几盏灯：光圈开大就化成一个个光斑 */
.bk { position: absolute; width: var(--s, 14px); height: var(--s, 14px); border-radius: 50%; background: var(--c, var(--gold)); opacity: var(--o, .8);
      transform: scale(var(--bk, 1.7)); transition: transform .35s var(--ease); }
.b1 { left: 9%; top: 60%; --s: 16px; } .b2 { left: 21%; top: 71%; --s: 10px; --c: var(--fog); }
.b3 { left: 33%; top: 56%; --s: 12px; --c: #fff; --o: .55; } .b4 { left: 47%; top: 15%; --s: 11px; --c: var(--fog); --o: .7; }
.b5 { left: 62%; top: 8%; --s: 15px; --o: .6; } .b6 { left: 90%; top: 22%; --s: 12px; --c: #fff; --o: .5; }
.b7 { left: 15%; top: 84%; --s: 9px; --o: .6; }

.vf-subject { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vf-subject img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.girl { filter: blur(var(--mb, 0px)); transition: filter .3s; }
/* 快门太慢：左右各拖一个影子 */
.ghost { opacity: var(--gh, 0); transition: opacity .3s, transform .3s var(--ease); }
.g1 { transform: translateX(calc(var(--sx, 0px) * -1)); } .g2 { transform: translateX(var(--sx, 0px)); }
/* 下班的光环：细、有点歪、不怎么亮 */
.halo { position: absolute; left: 36.5%; top: 9.5%; width: 30%; overflow: visible; transform: rotate(-7deg); pointer-events: none; }
.halo ellipse { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .72; }
.vf-noise { position: absolute; inset: 0; opacity: var(--nz, 0); mix-blend-mode: screen; background-size: 128px 128px; transition: opacity .3s; pointer-events: none; }
.vf-veil { position: absolute; inset: 0; pointer-events: none; opacity: var(--veil, 0); background: #fff; transition: opacity .35s var(--ease); }

/* 四个角的框线和对焦框 */
.vf-marks { position: absolute; inset: 0; pointer-events: none; }
.vf-marks .c { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(243, 246, 251, .8); }
.c1 { left: 12px; top: 12px; border-width: 1.5px 0 0 1.5px; } .c2 { right: 12px; top: 12px; border-width: 1.5px 1.5px 0 0; }
.c3 { left: 12px; bottom: 46px; border-width: 0 0 1.5px 1.5px; } .c4 { right: 12px; bottom: 46px; border-width: 0 1.5px 1.5px 0; }
.af { position: absolute; left: 37%; top: 25%; width: 29%; height: 26%;
      background:
        linear-gradient(var(--afc), var(--afc)) left top / 10px 1.5px, linear-gradient(var(--afc), var(--afc)) left top / 1.5px 10px,
        linear-gradient(var(--afc), var(--afc)) right top / 10px 1.5px, linear-gradient(var(--afc), var(--afc)) right top / 1.5px 10px,
        linear-gradient(var(--afc), var(--afc)) left bottom / 10px 1.5px, linear-gradient(var(--afc), var(--afc)) left bottom / 1.5px 10px,
        linear-gradient(var(--afc), var(--afc)) right bottom / 10px 1.5px, linear-gradient(var(--afc), var(--afc)) right bottom / 1.5px 10px;
      background-repeat: no-repeat; --afc: var(--gold); }

.vf-text { position: absolute; left: 20px; top: 26px; max-width: 40%; z-index: 2; pointer-events: none; }
.hello { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(27px, 7.6vw, 64px); line-height: 1.24; letter-spacing: .04em; white-space: nowrap;
         text-shadow: 0 0 14px rgba(8, 13, 24, .9), 0 0 5px rgba(8, 13, 24, .9), 0 1px 2px rgba(8, 13, 24, .8); }
.hello-sub { margin: 14px 0 0; max-width: 21em; font-size: 12.5px; line-height: 1.75; color: #c3cfe3; text-shadow: 0 0 8px rgba(8, 13, 24, .95), 0 0 4px rgba(8, 13, 24, .95), 0 1px 2px rgba(8, 13, 24, .9); }

/* 台词框：视觉小说那种。点她或点框都换下一句 */
.vn { position: absolute; left: 14px; bottom: 50px; z-index: 3; max-width: min(62%, 300px); width: max-content; padding: 13px 13px 10px; border-radius: 3px;
      background: var(--on-night); color: #1b2a4a; font-size: 13px; line-height: 1.6; letter-spacing: .03em; cursor: pointer;
      opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.vn.on { opacity: 1; transform: none; pointer-events: auto; }
.vn-name { position: absolute; left: 10px; top: -10px; padding: 0 8px; background: var(--fog); color: #1b2a4a; font-size: 11px; font-weight: 600; line-height: 19px; letter-spacing: .1em; }
.vn-line::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; background: var(--fog-deep); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.vn-tip, .vn-tap { display: none; }
.vn.on .vn-tip { display: block; position: absolute; right: 22px; bottom: -10px; padding: 0 8px; background: var(--gold); color: #1b2a4a; font-size: 11px; font-weight: 600; line-height: 19px; letter-spacing: .12em; }
.vn.on .vn-tap { display: block; position: absolute; right: -4px; bottom: -26px; width: 25px; height: 30px; overflow: visible; pointer-events: none; }
.vn-tap .cur { fill: #fff; stroke: #1b2a4a; stroke-width: 1.5; stroke-linejoin: round; }
.vn-tap .rip { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; }
.vf.tapped .vn-tip, .vf.tapped .vn-tap { display: none; }

/* 取景器底下那条读数 */
.lcd { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 0 14px;
       background: #05080f; color: var(--on-night); font-size: 12.5px; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lcd-v.hit { animation: hit .3s var(--ease); }
.meter { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--dim-night); }
.meter b { font-weight: 400; }
.meter-scale { position: relative; width: min(100%, 120px); height: 12px; display: flex; justify-content: space-between; align-items: flex-end; }
.meter-scale i { width: 1.5px; height: 6px; background: var(--dim-night); }
.meter-scale i.z { height: 12px; background: var(--on-night); }
.meter-scale em { position: absolute; left: calc(50% + var(--m, 0) * 16.6667%); top: -3px; width: 9px; height: 7px; margin-left: -4.5px; background: var(--gold);
                  clip-path: polygon(0 0, 100% 0, 50% 100%); transition: left .3s var(--pop), background-color .2s; }
.meter.off em { background: #ff8f7a; }
.lcd-n { color: var(--dim-night); }
/* 快门帘：上下各一半，按快门时合上再打开 */
.vf-curtain { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(#05080f, #05080f) top / 100% 50% no-repeat, linear-gradient(#05080f, #05080f) bottom / 100% 50% no-repeat; background-size: 100% 0, 100% 0; }
.vf.snap .vf-curtain { animation: snap .34s var(--io); }

/* ---------- 三个拨盘 ---------- */
.dials { display: grid; grid-template-columns: 1fr; gap: 16px; }
.dial { display: grid; gap: 6px; min-width: 0; }
.dial label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dial b { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: .14em; }
.dial output { font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.dial p { margin: 0; font-size: 12.5px; color: var(--mute); }
.dial input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --n: 6;
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px calc((100% - 1.5px) / var(--n)));
  background-size: calc(100% - 20px) 1.5px, calc(100% - 20px) 9px; background-position: 10px 50%, 10px 50%; background-repeat: no-repeat; }
#d-s { --n: 7; }
.dial input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--ink); }
.dial input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--ink); }
.dial input::-moz-range-track { background: transparent; }
.shoot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--on-ink);
         font-size: 15px; letter-spacing: .2em; transition: transform .15s var(--ease); }
.shoot i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--on-ink); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 8px var(--gold); }
.shoot:active { transform: scale(.97); }

/* ---------- 斜条幅（查分站那条的同款） ---------- */
.band { margin: 34px 0 0 calc(50% - 50vw); width: 100vw; overflow: hidden; background: var(--ink); color: var(--on-ink);
        transform: rotate(-1.1deg) scaleX(1.03); font-size: 13px; letter-spacing: .14em; line-height: 1; }
.band-run { display: flex; width: max-content; animation: run 32s linear infinite; }
.band-set { display: flex; align-items: center; gap: 20px; padding: 11px 20px 11px 0; white-space: nowrap; }
.band-set b { font-weight: 600; }
.band-set em { font-style: normal; opacity: .78; }
.band-set i { width: 11px; height: 11px; background: var(--fog); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }

/* ---------- 小节标题 ---------- */
.sec { margin-top: 48px; scroll-margin-top: 16px; }
.sec-head { display: grid; gap: 8px; margin-bottom: 24px; }
.pick { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: .2em; display: flex; align-items: center; gap: 10px; }
.pick::before { content: ""; flex: none; width: 13px; height: 13px; background: var(--fog-deep); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.sec-lead { margin: 0; max-width: 34em; font-size: 14px; line-height: 1.8; color: var(--mute); }

/* ---------- 印样：一条胶片，一格一篇 ---------- */
.sheet { background: var(--film); color: var(--on-night); border-radius: 4px; padding: 0 14px; }
.perf { display: block; height: 22px;
        background: repeating-linear-gradient(90deg, transparent 0 9px, var(--bg) 9px 19px, transparent 19px 28px) center / auto 9px no-repeat; opacity: .9; }
.frames { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.fr { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-content: start; min-width: 0; }
.fr-link { display: contents; color: inherit; text-decoration: none; }
.fr-pic { grid-column: 1 / -1; position: relative; display: block; aspect-ratio: 3 / 2; margin-bottom: 6px; background: #e6effa; color: #1b2a4a; }
.fr-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.fr-pic svg:not(.ring) { fill: none; }
.sheet-empty { margin: 0; padding: 34px 0; text-align: center; font-family: var(--serif); letter-spacing: .2em; color: var(--dim-night); }
.fr.draft .fr-pic::after { content: "草稿"; }
.fr:not(.done) .ring { display: none; }
.fr-no { font-size: 12px; line-height: 23px; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.fr-title { font-family: var(--serif); font-size: 16px; line-height: 23px; letter-spacing: .08em; }
.fr-desc { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.65; color: var(--dim-night); }
/* 没写完的格子：暗一点，右上角一张「待写」的小签 */
.fr:not(.done) .fr-pic { opacity: .5; }
.fr:not(.done) .fr-pic::after { content: "待写"; position: absolute; right: 6px; top: 6px; padding: 0 6px; background: #1b2a4a; color: #fff; font-size: 11px; line-height: 18px; letter-spacing: .1em; }
/* 写完的：金色蜡笔圈一圈 */
.fr-pic .ring { inset: -7% -5%; width: 110%; height: 114%; stroke: var(--gold); stroke-width: 2.6; stroke-dasharray: 100; stroke-dashoffset: 0; }
.fr-pic .ring path { vector-effect: non-scaling-stroke; }
.fr.done:hover .ring, .fr.done .fr-link:focus-visible .ring { animation: circle .7s var(--ease); }
.fr.done:hover .fr-title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 去查分处：一张通行证 ---------- */
.pass { position: relative; display: grid; grid-template-columns: 1fr; gap: 6px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; padding: 26px 22px 0; overflow: visible; }
.bow { position: absolute; left: 20px; top: -16px; }
.bow-wing { fill: var(--ink); } .bow-gem { fill: var(--fog); stroke: var(--card); stroke-width: 1.2; }
.pass-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pass-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: .12em; }
.pass-desc { margin: 0; max-width: 30em; font-size: 14px; line-height: 1.8; color: var(--mute); }
.shift { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.shift button { padding: 6px 18px; border: 0; background: transparent; font-size: 14px; letter-spacing: .16em; }
.shift button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.shift-say { margin: 0; min-height: 1.7em; font-size: 13.5px; color: var(--mute); }
.go { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 4px; background: var(--ink); color: var(--on-ink); text-decoration: none; font-size: 15px; letter-spacing: .16em; }
.go::after { content: ""; width: 11px; height: 11px; background: var(--gold); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); transition: transform .4s var(--pop); }
.go:hover::after { transform: rotate(180deg) scale(1.3); }
.pass-note { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--mute); }
.twin { position: relative; justify-self: center; width: min(78%, 300px); aspect-ratio: 476 / 525; margin-top: 4px; }
.twin .arch { width: 74%; height: 84%; background-color: var(--mist); }
.twin img { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-on, .t-flash { opacity: 0; }
.t-off, .t-on { transition: opacity .2s linear .2s; }
.t-flash { filter: brightness(0) invert(1); }
.pass.on .t-off { opacity: 0; } .pass.on .t-on { opacity: 1; }
.pass.morph .t-flash { animation: flash .56s var(--ease); }
.t-halo { position: absolute; left: 36.5%; top: 9.5%; width: 30%; overflow: visible; transform: rotate(-7deg); transition: transform .5s var(--pop), top .5s var(--pop); }
.t-halo ellipse { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .6; transition: opacity .3s, stroke-width .3s; }
.t-halo path { fill: var(--gold); opacity: 0; transition: opacity .3s .3s; }
.pass.on .t-halo { transform: rotate(0deg); top: 6.5%; }
.pass.on .t-halo ellipse { opacity: 1; stroke-width: 3; }
.pass.on .t-halo path { opacity: 1; }
.pass.morph .t-halo ellipse { animation: spin .56s var(--io); transform-origin: 60px 20px; }

/* ---------- 笔记页 ---------- */
.note { max-width: 36em; margin: 30px auto 0; font-size: 16px; line-height: 1.95; }
.back { display: inline-block; font-size: 13px; letter-spacing: .1em; color: var(--mute); text-decoration: none; border-bottom: 1.5px solid var(--line); }
.back:hover { color: var(--ink); border-bottom-color: var(--ink); }
.note-meta { margin: 26px 0 0; display: flex; gap: 0; font-size: 12.5px; letter-spacing: .1em; color: var(--mute); }
.note-meta span + span { margin-left: 12px; padding-left: 12px; border-left: 1.5px solid var(--line); }
.note-sub { margin: 6px 0 0; font-family: var(--serif); font-size: 17px; letter-spacing: .08em; color: var(--mute); }
.note-title { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 6.4vw, 40px); line-height: 1.35; letter-spacing: .04em; text-wrap: balance; }
.note-warn { margin: 20px 0 6px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--mist); font-size: 13.5px; line-height: 1.75; color: var(--mute); }
.note h2 { margin: 38px 0 0; font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: .1em; line-height: 1.5; }
.note p { margin: 14px 0 0; }
.note ul, .note ol { margin: 12px 0 0; padding-left: 1.4em; }
.note li + li { margin-top: 4px; }
.fig { margin: 28px 0 0; }
.fig img { display: block; width: 100%; height: auto; background: var(--mist); }
.slot-box { aspect-ratio: 3 / 2; display: grid; place-items: center; border: 1.5px dashed var(--line); background: var(--mist); color: var(--mute); font-size: 13px; letter-spacing: .12em; }
.fig figcaption { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; font-size: 13px; line-height: 1.7; color: var(--mute); }
.exif { display: inline-flex; font-variant-numeric: tabular-nums; }
.exif b { font-weight: 400; padding: 0 8px; border-left: 1.5px solid var(--line); }
.exif b:first-child { padding-left: 0; border-left: 0; }
.tbl { margin-top: 18px; overflow-x: auto; }
.note table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.note th { text-align: left; font-weight: 400; font-size: 12.5px; letter-spacing: .1em; color: var(--mute); padding: 6px 12px 6px 0; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.note td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.note td:last-child { white-space: normal; color: var(--mute); }
.note blockquote { margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--fog); color: var(--mute); }
.note h3 { margin: 26px 0 0; font-size: 16px; font-weight: 600; letter-spacing: .06em; }
.note-foot { margin: 40px 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

/* ---------- 写笔记（只有站长能进） ---------- */
.linkish { flex: none; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--mute); font-size: 13px; letter-spacing: .1em; border-bottom: 1.5px solid var(--line); }
.linkish:hover { color: var(--ink); border-bottom-color: var(--ink); }
button.go { border: 0; }
.gate { max-width: 30em; margin: 44px auto 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.w-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 7vw, 40px); letter-spacing: .1em; }
.w-lead { margin: 0; font-size: 15px; color: var(--mute); }
.gate-steps { margin: 4px 0 6px; padding-left: 1.4em; display: grid; gap: 8px; font-size: 15px; line-height: 1.7; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--mist); padding: 1px 5px; border-radius: 3px; }
.gate .go { font-size: 14px; letter-spacing: .06em; }

.desk { margin-top: 26px; }
.desk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.desk-yume { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bust { flex: none; position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--night); }
.bust img { position: absolute; left: -59px; top: -43px; width: 166px; max-width: none; }
.desk-yume p { margin: 0; padding: 7px 12px; border-radius: 3px; background: var(--mist); font-size: 13.5px; line-height: 1.5; }
.tabs { display: inline-flex; margin-top: 18px; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.tabs button { padding: 5px 20px; border: 0; background: transparent; font-size: 14px; letter-spacing: .2em; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.desk-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.desk-grid .pvw { display: none; }
.desk-grid.show-p .pvw { display: block; }
.desk-grid.show-p .form { display: none; }
.form { display: grid; gap: 22px; align-content: start; min-width: 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .lab { font-size: 12.5px; letter-spacing: .14em; color: var(--mute); }
.field input[type="text"] { width: 100%; padding: 6px 0 8px; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; }
#f-title { font-family: var(--serif); font-size: 24px; letter-spacing: .06em; }
.field input::placeholder, .field textarea::placeholder { color: var(--line); }
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-color: var(--fog-deep); box-shadow: 0 1.5px 0 var(--fog-deep); }
.err { margin: 0; font-size: 13px; color: #c2452f; }
.cats, .tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cats button, .tools button { padding: 4px 13px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-size: 13.5px; letter-spacing: .08em; }
.cats button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.tools button { border-radius: 3px; color: var(--mute); }
.tools button:hover { border-color: var(--ink); color: var(--ink); }
.field textarea { width: 100%; min-height: 300px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card); color: var(--ink); font: 15px/1.85 var(--sans); resize: vertical; }
.drop { display: grid; gap: 6px; justify-items: center; padding: 22px 16px; border: 1.5px dashed var(--line); border-radius: 4px; background: var(--mist); text-align: center; cursor: pointer; font-size: 14.5px; transition: border-color .15s, background-color .15s; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--fog-deep); outline-offset: 2px; }
.drop small { max-width: 30em; font-size: 12.5px; line-height: 1.6; color: var(--mute); }
.drop.over, .drop:hover { border-color: var(--ink); }
.drop.over { background: var(--card); }
.photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ph { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.ph-img { width: 84px; height: 56px; object-fit: cover; background: var(--mist); }
.ph-main { display: grid; gap: 4px; min-width: 0; }
.ph-name { margin: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.field input.ph-cap { font-size: 14px; padding: 3px 0 5px; border-bottom-color: var(--line); }
.ph-acts { grid-column: 1 / -1; display: flex; gap: 16px; }
.ph-acts button { padding: 0; border: 0; background: none; font-size: 13px; letter-spacing: .06em; color: var(--mute); border-bottom: 1.5px solid var(--line); }
.ph-acts button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.acts { display: flex; gap: 12px; align-items: center; }
.quiet { padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: 4px; background: transparent; font-size: 15px; letter-spacing: .16em; }
.pvw { min-width: 0; }
.pvw-cap { margin: 0 0 4px; font-size: 12.5px; letter-spacing: .14em; color: var(--mute); }
.pvw .note { margin: 0; max-width: none; padding: 4px 0 0; }
.pvw .note-meta { margin-top: 10px; }
.fr-cover { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

@media (min-width: 860px) {
  .tabs { display: none; }
  .desk-grid, .desk-grid.show-p { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .desk-grid .pvw, .desk-grid.show-p .pvw { display: block; position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 22px 26px; border: 1.5px solid var(--hair); border-radius: 4px; background: var(--card); }
  .desk-grid.show-p .form { display: grid; }
}

/* ---------- 页脚 ---------- */
.foot { margin-top: 64px; padding-top: 18px; border-top: 1.5px solid var(--ink); position: relative; font-size: 12.5px; color: var(--mute); }
.foot p { margin: 4px 0 0; }
.whale { position: absolute; right: 8px; top: -19px; }
.w-body { fill: #141c2e; stroke: var(--fog); stroke-width: .9; } .w-belly { fill: #fff; } .w-eye { fill: #fff; }
.replay + .replay { margin-left: 16px; }
.replay { padding: 0; border: 0; background: none; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }
.replay:hover { color: var(--ink); }

/* ---------- 开场 ---------- */
.op { display: none; position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--on-night); cursor: pointer; }
.op-run .op { display: block; animation: op-bg 2.15s linear both; }
.op-frame i { position: absolute; width: 26px; height: 26px; border: 0 solid var(--on-night); opacity: 0; }
.op-frame i:nth-child(1) { left: 6vw; top: 6vh; border-width: 1.5px 0 0 1.5px; } .op-frame i:nth-child(2) { right: 6vw; top: 6vh; border-width: 1.5px 1.5px 0 0; }
.op-frame i:nth-child(3) { left: 6vw; bottom: 14vh; border-width: 0 0 1.5px 1.5px; } .op-frame i:nth-child(4) { right: 6vw; bottom: 14vh; border-width: 0 1.5px 1.5px 0; }
.op-title { position: absolute; left: 0; right: 0; top: 45%; margin: 0; transform: translateY(-50%); text-align: center; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 10vw, 76px); line-height: 1.24; letter-spacing: .06em; }
.op-af { position: absolute; left: 50%; top: 45%; width: min(74vw, 520px); height: min(40vh, 300px); transform: translate(-50%, -50%); color: var(--on-night); }
.op-af i { position: absolute; width: 16px; height: 16px; border: 0 solid currentColor; }
.op-af i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; } .op-af i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.op-af i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; } .op-af i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.op-ok { position: absolute; left: 0; right: 0; top: calc(45% + min(20vh, 150px) + 14px); margin: 0; text-align: center; font-size: 12.5px; letter-spacing: .4em; color: var(--gold); opacity: 0; }
.op-lcd { position: absolute; left: 0; right: 0; bottom: 8vh; display: flex; justify-content: center; gap: 22px; font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--dim-night); }
.op-skip { position: absolute; left: 0; right: 0; bottom: 3.5vh; text-align: center; font-size: 12px; letter-spacing: .1em; color: var(--dim-night); opacity: .7; }
.op-blade { position: absolute; left: 0; right: 0; height: 51%; background: #05080f; }
.op-blade-a { top: 0; transform: translateY(-101%); } .op-blade-b { bottom: 0; transform: translateY(101%); }
.op-run .op-frame i { animation: op-in .5s var(--ease) .05s both, op-out .01s linear 1.6s forwards; }
.op-run .op-title { animation: op-focus 1.15s var(--ease) .15s both, op-out .01s linear 1.6s forwards; }
.op-run .op-af { animation: op-af 1.3s var(--ease) .15s both, op-out .01s linear 1.6s forwards; }
.op-run .op-ok { animation: op-in .2s linear 1.12s both, op-out .01s linear 1.6s forwards; }
.op-run .op-lcd, .op-run .op-skip { animation: op-out .01s linear 1.6s forwards; }
.op-run .op-blade-a { animation: op-blade-a .7s var(--io) 1.4s both; }
.op-run .op-blade-b { animation: op-blade-b .7s var(--io) 1.4s both; }

/* ---------- 关键帧 ---------- */
@keyframes run { to { transform: translateX(-33.3333%); } }
@keyframes hit { 0% { color: var(--gold); transform: translateY(-2px); } 100% { transform: none; } }
@keyframes snap { 0%, 100% { background-size: 100% 0, 100% 0; } 45%, 55% { background-size: 100% 51%, 100% 51%; } }
@keyframes circle { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes flash { 0% { opacity: 0; } 35%, 50% { opacity: 1; } 100% { opacity: 0; } }
@keyframes spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(-1); } 50% { transform: scaleX(1); } 75% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes bob { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-5.5deg) translateY(-3px); } }
@keyframes tap { 0%, 55%, 100% { transform: translate(0, 0); } 65% { transform: translate(-2px, -3px) scale(.9); } 75% { transform: translate(0, 0); } }
@keyframes rip { 0%, 62% { opacity: 0; transform: scale(.4); } 68% { opacity: .9; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes op-in { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: none; } }
@keyframes op-out { to { opacity: 0; visibility: hidden; } }
@keyframes op-focus { 0% { filter: blur(18px); opacity: 0; } 22% { filter: blur(14px); opacity: 1; } 48% { filter: blur(2px); } 66% { filter: blur(8px); } 84%, 100% { filter: blur(0); opacity: 1; } }
@keyframes op-af { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); color: var(--on-night); } 30% { opacity: 1; } 72% { transform: translate(-50%, -50%) scale(1); color: var(--on-night); } 76%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); color: var(--gold); } }
@keyframes op-blade-a { 0% { transform: translateY(-101%); } 32%, 46% { transform: none; } 100% { transform: translateY(-101%); } }
@keyframes op-blade-b { 0% { transform: translateY(101%); } 32%, 46% { transform: none; } 100% { transform: translateY(101%); } }
@keyframes op-bg { 0%, 76% { background-color: var(--night); } 77%, 100% { background-color: transparent; } }

.fx .halo { animation: bob 5.2s ease-in-out infinite; }
.fx .vn.on .vn-tap .cur { animation: tap 1.5s var(--ease) infinite; transform-origin: 3px 2px; }
.fx .vn.on .vn-tap .rip { animation: rip 1.5s linear infinite; transform-origin: 3px 2px; }

/* ---------- 宽屏 ---------- */
@media (min-width: 860px) {
  .page { padding-top: 28px; }
  .vf { height: 520px; }
  .sbox { right: 7%; height: 93%; }
  .vf-text { left: 48px; top: 64px; }
  .vf-text { max-width: 47%; }
  .hello-sub { font-size: 14px; margin-top: 20px; }
  .vn { left: 48px; bottom: 74px; font-size: 14px; }
  .lcd { padding: 0 24px; gap: 22px; font-size: 13px; }
  .c1, .c3 { left: 20px; } .c2, .c4 { right: 20px; } .c1, .c2 { top: 20px; } .c3, .c4 { bottom: 54px; }
  .dials { grid-template-columns: 1fr 1fr 1fr auto; gap: 30px; align-items: end; }
  .shoot { align-self: center; padding: 14px 26px; }
  .frames { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
  .sheet { padding: 0 22px; }
  .fr-title { font-size: 18px; }
  .pass { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 34px 34px 0; align-items: end; }
  .pass-body { padding-bottom: 30px; }
  .twin { width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-run { animation: none; }
  *, *::before, *::after { transition-duration: .01s !important; }
}

/* 写笔记：草稿和待写的列表 */
.shelf { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.shelf .quiet { padding: 6px 14px; font-size: 14px; letter-spacing: .1em; }
.shelf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shelf-list button { padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; }
.shelf-list button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.shelf-list small { margin-left: 6px; opacity: .65; }
.acts { flex-wrap: wrap; }
.linkish.danger { color: #c2452f; border-bottom-color: #c2452f; margin-left: auto; }
.ph.busy { opacity: .5; }
