
/* 字体全是本地子集（tools/assets/build_fonts.py），不连外网：正文像素字 SenzanPixel、键帽 SenzanKey、标题大字 SenzanTitle；缺字退到系统黑体 */
@font-face { font-family: "SenzanKey"; src: url("../assets/fonts/SenzanKey.woff") format("woff"); font-display: swap; }
@font-face { font-family: "SenzanPixel"; src: url("../assets/fonts/SenzanPixel.woff") format("woff"); font-display: swap; } /* 正文：缝合像素字体 12px 子集 */
@font-face { font-family: "SenzanTitle"; src: url("../assets/fonts/SenzanTitle.woff") format("woff"); font-display: swap; }
/* Layout: 霓虹机台——窄标题条 / 16:9 舞台（后期效果都在画布里）/ 操作、武器库两栏 */
:root {
  --pxs: 12px; /* 像素字体的字号取整步长：普通屏 12px 一格，高清屏 6px 也是整像素 */
  --bg: #0b0816;
  --panel: #151028;
  --edge: #2a2250;
  --fg: #efe8ff;
  --muted: #a39cc6;
  --cyan: #35f0ff;
  --pink: #ff3d8b;
  --pink-deep: #9a1f55;
  --ink: #0d0a17;
  --shadow: #05030c;
  --scrim: rgba(11, 8, 22, 0.78);
  --f-pixel: "SenzanKey", "SenzanPixel", "Noto Sans SC", "PingFang SC", ui-monospace, monospace;
  --f-key: "SenzanKey", "SenzanPixel", "Noto Sans SC", ui-monospace, monospace; /* 键帽：界面字体在小字号下字母认不出，单独用清晰的像素字体 */
  --f-body: "SenzanPixel", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: dark;
}
html, body { background: var(--bg); color: var(--fg); }
[hidden] { display: none !important; } /* .info、.chip 这类写了 display 的元素，hidden 也要真藏起来 */
@media (min-resolution: 1.5dppx) { :root { --pxs: 8px; } }
@media (min-resolution: 2dppx) { :root { --pxs: 6px; } }
@media (min-resolution: 3dppx) { :root { --pxs: 4px; } }
body { -webkit-font-smoothing: none; font-synthesis: none; } /* 像素字：不抗锯齿、不假粗 */
.talk > b, .radio b, .bark b, .tut b, .ach-toast b, .collect-h, .hitlist li, .intel-ch p b, .ach b, .go, .ghost, .chip, .ref-h b, .hitlist-did b, .eyebrow, .stats dd, .lv-card em b, .talk-ask button { text-shadow: .0833em 0 0 currentColor; } /* 像素字的粗体：往右错开正好一个点 */
.ending-roll h3, .boot b, .banner b, .ult b, .logo-cn, .story .story-title, .lv-card b { -webkit-font-smoothing: antialiased; } /* 黄油体大标题照常抗锯齿 */
body { margin: 0; }
body { font-family: var(--f-body); font-size: 15px; line-height: 1.6; }
.wrap { box-sizing: border-box; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 10px 16px; display: flex; flex-direction: column; gap: 10px; } /* 一屏装下：标题条 + 舞台，不出滚动条 */
.bar { width: 100%; max-width: 1120px; margin-inline: auto; }
.arena:fullscreen { background: #000; justify-content: center; }
.arena:fullscreen .stage { border: 0; box-shadow: none; }
.ref > summary { display: none; } /* 帮助从主页、暂停菜单的「帮助」按钮打开 */ .ref > summary::-webkit-details-marker { display: none; }
.lang-pick { position: relative; cursor: pointer; } .chip.lang-pick::before { content: "A文"; width: auto; height: auto; background: none; font: 12px/1 var(--f-body); color: var(--cyan); letter-spacing: 0; } /* 语言：界面包里没有地球图标 */
.lang-pick::after { content: "▾"; font: 12px/1 var(--f-body); color: var(--muted); pointer-events: none; }
.lang-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; appearance: none; -webkit-appearance: none; border: 0; margin: 0; font-size: 16px; cursor: pointer; } /* 透明地铺满整个按钮：点「A文」「▾」也能展开；16px 免得 iOS 聚焦时放大 */
.lang-pick select option { color: #e8e4ff; background: #1a1430; }
.lang-pick:focus-within { outline: 2px dashed var(--cyan); outline-offset: 3px; }
.ref > summary.chip::before { content: "?"; width: auto; height: auto; background: none; font: 12px/1 var(--f-key); color: var(--cyan); } /* 界面包里没有问号图标 */
.ref-panel { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); box-sizing: border-box; width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 16px; background: var(--bg); border: 2px solid var(--edge); box-shadow: 0 0 0 100vmax rgba(4, 2, 12, .72); -webkit-user-select: text; user-select: text; } /* 速查：浮在游戏上面，外面一圈压暗 */
.chip.ref-x::before { display: none; } .ref-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; } .ref-h b { font-size: 16px; } .ref-h small { color: var(--muted); font-size: 12px; } .ref-x { margin-left: auto; }
.tut { position: absolute; left: 50%; top: 2.5%; transform: translateX(-50%); width: max-content; max-width: 72%; background: rgba(10, 6, 24, .84); border: 2px solid var(--cyan); box-shadow: 0 0 0 1px var(--ink), 0 0 18px rgba(53, 240, 255, .35); padding: .5em 1em .55em; text-align: center; pointer-events: none; font-size: clamp(11px, 1.55cqw, 17px); line-height: 1.5; max-height: 94%; overflow: hidden; }
@container (max-width: 900px) { .tut { max-width: 92%; } } /* 手机横屏：矮，提示框放宽一点少折几行 */
@container (max-width: 420px) { .tut { max-width: 98%; padding: .35em .5em; line-height: 1.25; } .ending-lines p { line-height: 1.25; } }
.tut[hidden], .kill-tip[hidden] { display: none; }
/* 暗杀提示：跟着目标走的小键帽 */
.kill-tip { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: .3em; padding: .15em .45em .15em .2em; background: rgba(5, 12, 20, .82); border: 1px solid #8af0ff; box-shadow: 0 0 12px rgba(138, 240, 255, .45); color: #dffcff; font-weight: 900; font-size: clamp(10px, 1.4cqw, 14px); white-space: nowrap; pointer-events: none; animation: tipPulse .7s ease-in-out infinite alternate; }
.kill-tip .cap { font-size: max(8px, .72em); min-width: 1.9em; height: 1.9em; }
@keyframes tipPulse { from { box-shadow: 0 0 6px rgba(138, 240, 255, .3); } to { box-shadow: 0 0 16px rgba(138, 240, 255, .8); } }
.hud { position: absolute; inset: 0; pointer-events: none; font-size: clamp(10px, 1.3cqw, 15px); line-height: 1.3; color: #e8e4ff; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0, 0, 0, .85); }
.inputs { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 6; display: flex; gap: 3px; pointer-events: none; font: 10px/1 "SenzanKey", monospace; } /* 按键显示 */
.inputs span { min-width: 18px; padding: 3px 4px 2px; text-align: center; color: #8a86b0; background: rgba(8, 6, 18, .7); border: 1px solid #3c3170; }
.inputs span.on { color: #fff; background: #ff3d8b; border-color: #ffb0d4; }
.hl-strip { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0; } .hl-strip figure { margin: 0; width: 96px; } .hl-strip img { width: 96px; height: 54px; display: block; image-rendering: auto; border: 1px solid #3c3170; } .hl-strip figcaption { font-size: 11px; color: #ffd23f; text-align: center; line-height: 1.4; } /* 过关卡片上的高光截图 */
.train-list { display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: center; } .train-list span { color: #8a86b0; } .train-list span.ok { color: #7dff9a; } /* 练招房的清单 */
.hud[hidden] { display: none; }
.hud .lab { font-weight: 700; color: #fff; white-space: nowrap; letter-spacing: .04em; }
.hud .key { font-family: var(--f-key); font-size: .78em; line-height: 1; color: #0d0a17; background: #d6dcff; padding: .22em .4em .18em; box-shadow: 0 2px 0 #6a6690; text-shadow: none; }
.hud-l, .hud-bl { position: absolute; left: 1.2%; display: grid; gap: .4em; padding: .55em .9em .6em .75em; background: linear-gradient(90deg, rgba(8, 6, 22, .78), rgba(8, 6, 22, .35)); border-left: 2px solid var(--cyan); clip-path: polygon(0 0, 100% 0, 100% calc(100% - .7em), calc(100% - .7em) 100%, 0 100%); }
.hud-l { top: 2%; }
.hud-bl { bottom: 2.5%; border-left-color: #7dff9a; }
.hud-hp { display: flex; align-items: center; gap: .6em; }
.hud-hp .pips { display: flex; gap: .3em; }
.hud-hp i { width: 1.35em; height: .8em; background: #ff3d5a; transform: skewX(-20deg); box-shadow: 0 0 6px rgba(255, 61, 90, .75); }
.hud-hp i.off { background: rgba(255, 255, 255, .14); box-shadow: none; }
.ico { height: 1em; width: auto; image-rendering: pixelated; vertical-align: middle; } .ico.blade { height: .8em; } .hud-ult { font-size: .82em; line-height: 1.5; padding: 0 .45em; border: 1px solid rgba(255, 61, 90, .55); border-radius: 3px; color: #ffb8c4; white-space: nowrap; } .hud-meter.rage.full .hud-ult { color: #fff; border-color: #ff3d5a; background: rgba(255, 61, 90, .35); box-shadow: 0 0 8px rgba(255, 61, 90, .8); } /* 怒气条后面写着现在的大招，满了亮起来 */ .seg .ico { margin-right: .35em; } /* 刀、大招的小图标 */
.hud-blade { display: flex; align-items: baseline; gap: .6em; color: #b8f8ff; } .hud-blade b { color: #fff; font-weight: 700; } .hud-blade em { font-style: normal; font-size: .85em; color: #ff3d5a; animation: hudBlink .5s steps(2) infinite; } .hud-blade.ready em { color: #ffd23f; } /* 手里这把刀；村正渴血、野太刀蓄满时跟一句 */
.hud-meter { display: grid; grid-template-columns: 4.4em 8em auto; align-items: center; gap: .5em; } .hud-meter.rage { grid-template-columns: 4.4em 8em auto auto; justify-content: start; } /* 怒气条后面写着大招名字 */
.hud .bar { position: relative; height: .6em; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hud .bar b { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v, 0) * 100%); background: currentColor; box-shadow: 0 0 8px currentColor; transition: width .08s linear; }
.hud .bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), rgba(8, 6, 22, .95) calc(20% - 2px) 20%); }
.hud-meter.slow { color: #35f0ff; } .hud-meter.rage { color: #ff3d5a; } .hud-meter.dash { color: #7dff9a; }
.hud-meter.slow.on .bar b { animation: hudBlink .16s steps(2) infinite; }
.hud-meter .tip { display: none; grid-column: 1 / -1; font-style: normal; font-weight: 700; color: #ffd0d8; }
.hud-meter.rage.full .tip { display: block; animation: hudBlink .5s steps(2) infinite; }
.hud-meter.rage.full .bar b { background: #fff; box-shadow: 0 0 10px #ff3d5a; }
.hud-sword { font-size: .92em; color: #b8f8ff; }
.hud-sword b { color: #fff; }
.hud-sword.sheathed { color: #ffd23f; }
.settings { width: min(84cqw, 760px); }
.save-code { box-sizing: border-box; width: 100%; padding: .5em .6em; font: 16px/1.4 ui-monospace, monospace; color: #d8d4ee; background: rgba(0, 0, 0, .35); border: 1px solid var(--edge); resize: vertical; word-break: break-all; }
.save-msg { color: #ffd23f; }
.skin-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.lv-card.skin { padding: .4em .55em; } .lv-card.skin i { width: 100%; height: 4px; background: var(--c); box-shadow: 0 0 8px var(--c); margin-bottom: .3em; }
.lv-card.skin.on { border-color: var(--c, #ffd23f); } .lv-card.skin.locked { opacity: .45; } .lv-card.skin em { margin-top: .1em; font-size: 11px; }
@container (max-width: 560px) { .skin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bind-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lv-card.bind { flex-direction: row; justify-content: space-between; align-items: center; padding: .25em .5em; }
.lv-card.bind em { margin: 0; font-size: 12px; color: var(--fg); }
.lv-card.bind .cap { font-family: var(--f-key); font-size: 10px; color: #0d0a17; background: #d6dcff; padding: .3em .45em; box-shadow: 0 2px 0 #6a6690; }
.lv-card.bind.on { border-color: #ffd23f; } .lv-card.bind.on .cap { background: #ffd23f; }
@container (max-width: 560px) { .bind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.eyebrow .hard { color: #ff3d5a; }
.talk { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); width: min(78cqw, 640px); padding: .7em 1.1em .6em; background: rgba(8, 6, 22, .9); border: 2px solid var(--edge); border-left: 3px solid #ff3d5a; text-align: left; z-index: 4; cursor: pointer; }
.talk.has-face { padding-left: calc(1.1em + 58px); min-height: 62px; } .talk-face { position: absolute; left: .7em; top: .7em; width: 48px; height: 48px; image-rendering: pixelated; border: 2px solid var(--edge); } /* 对话头像 */
.talk[hidden] { display: none; }
.talk > b { display: block; margin-bottom: .25em; font-size: clamp(11px, 1.5cqw, 13px); color: #ff8aa8; letter-spacing: .08em; } .talk > b.me { color: #35f0ff; }
.talk p { margin: 0; min-height: 2.6em; font-size: clamp(14px, 2.1cqw, 18px); line-height: 1.5; color: #fff; }
.talk .caret { display: inline-block; width: .5em; height: 1em; margin-left: .1em; vertical-align: -.15em; background: #fff; animation: hudBlink .5s steps(2) infinite; }
.talk .cut { position: absolute; right: 1em; top: .6em; font-size: 11px; font-weight: 700; color: #ff3d5a; animation: hudBlink .4s steps(2) infinite; }
.talk .next { display: block; margin-top: .3em; text-align: right; font-size: 11px; color: var(--muted); }
.talk-ask { display: flex; gap: .6em; margin-top: .55em; }
.talk-ask button { flex: 1; padding: .45em .6em; font: inherit; font-size: clamp(12px, 1.7cqw, 15px); font-weight: 700; color: var(--fg); background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); cursor: pointer; }
.talk-ask button.on { color: #0d0a17; background: #35f0ff; border-color: #35f0ff; }
.radio { position: absolute; right: 1.2%; bottom: 3%; max-width: min(44cqw, 400px); padding: .45em .85em .5em; background: linear-gradient(270deg, rgba(8, 6, 22, .86), rgba(8, 6, 22, .55)); border-right: 3px solid #7dff9a; pointer-events: none; text-align: left; }
.radio[hidden], .bark[hidden] { display: none; }
.splits { position: absolute; right: 1.6%; top: 15%; min-width: 30%; padding: .4em .7em; background: rgba(8, 6, 22, .78); border-right: 3px solid #ffd23f; pointer-events: none; font-size: 12px; } /* 速通的分段计时 */
.splits small { display: block; color: #ffd23f; letter-spacing: .1em; margin-bottom: .2em; }
.splits p { display: flex; gap: .6em; margin: 0; color: #c8c4e8; } .splits p span { flex: 1; } .splits p.now { color: #fff; } .splits p.total { margin-top: .2em; border-top: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.splits i { font-style: normal; } .splits i.ahead { color: #7dff9a; } .splits i.behind { color: #ff6a7a; }
.photo-hint { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); padding: .4em .8em; background: rgba(8, 6, 22, .7); font-size: 12px; text-align: center; pointer-events: none; color: #e8e4ff; }
.ed-hint { top: 3%; bottom: auto; line-height: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bark { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); max-width: 70%; padding: .4em .9em .45em; background: rgba(8, 6, 22, .86); border-left: 3px solid #ff3d5a; pointer-events: none; text-align: left; } /* Boss 半血插的那句 */
.bark b { display: block; font-size: 12px; color: #ff8aa8; letter-spacing: .08em; } .bark p { margin: .15em 0 0; font-size: 1.8cqw; color: #fff; }
.bark.on { animation: barkIn 3.6s ease-out both; } @keyframes barkIn { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }
.radio b { display: flex; align-items: center; gap: .4em; font-size: clamp(9px, 1.15cqw, 12px); color: #7dff9a; letter-spacing: .08em; }
.radio b i { width: .5em; height: .5em; border-radius: 50%; background: #7dff9a; box-shadow: 0 0 6px #7dff9a; animation: hudBlink .8s steps(2) infinite; }
.radio p { margin: .15em 0 0; font-size: clamp(11px, 1.55cqw, 15px); line-height: 1.45; color: #e8f8ee; }
.hitlist { margin: .9em 0 .2em; padding: .6em .9em .55em; background: rgba(255, 240, 220, .05); border: 1px dashed rgba(255, 240, 220, .25); text-align: left; }
.hitlist-h { margin: 0 0 .35em; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.hitlist ol { display: flex; flex-wrap: wrap; gap: .25em .9em; margin: 0; padding: 0; list-style: none; counter-reset: hl; }
.hitlist li { position: relative; font-size: clamp(12px, 1.6cqw, 14px); font-weight: 700; color: #fff1e0; counter-increment: hl; }
.hitlist li::before { content: counter(hl) ". "; color: var(--muted); font-weight: 400; }
.hitlist li.done { color: rgba(255, 241, 224, .42); }
.hitlist li.done::after { content: ""; position: absolute; left: 1.1em; right: -.15em; top: 52%; height: 2px; background: #ff3d5a; transform-origin: left; }
.hitlist li.fresh::after { animation: hlStrike .5s .7s ease-out both; }
.hitlist li.focus:not(.done) { color: #ff8aa8; text-shadow: 0 0 10px rgba(255, 61, 90, .55); }
.hitlist li.spared { color: #b8d8ff; }
.hitlist li i { margin-left: .4em; font-style: normal; font-size: .75em; font-weight: 400; color: #b8d8ff; border: 1px solid currentColor; padding: 0 .3em; }
.hitlist-did { margin: .45em 0 0; font-size: clamp(12px, 1.5cqw, 14px); color: #d8d4ee; }
.hitlist-did b { color: #fff; }
@keyframes hlStrike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hitlist li.fresh::after { animation: none; } }
.ach-toast { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); display: grid; gap: .15em; padding: .55em 1.2em .6em; background: rgba(13, 10, 23, .88); border: 2px solid #ffd23f; box-shadow: 0 0 18px rgba(255, 210, 63, .35); text-align: center; pointer-events: none; z-index: 85; }
.ach-toast[hidden] { display: none; }
.ach-toast.on { animation: achIn .35s ease-out; }
.ach-toast small { font-size: 11px; font-weight: 700; color: #ffd23f; letter-spacing: .2em; }
.ach-toast b { font-size: clamp(15px, 2.2cqw, 20px); color: #fff; }
.ach-toast span { font-size: 11px; color: var(--muted); }
@keyframes achIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.collect { width: min(84cqw, 760px); }
.profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin: 0 0 6px; text-align: left; } .profile div { display: flex; justify-content: space-between; gap: 10px; } .profile dt { color: var(--muted); } .profile dd { margin: 0; color: #fff1c0; } /* 刀法档案 */
.photo-box { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; text-align: left; } .photo-img { width: min(288px, 46%); flex: none; image-rendering: pixelated; border: 4px solid #e8d8b8; box-shadow: 3px 3px 0 rgba(0, 0, 0, .5); transform: rotate(-1.5deg); } .photo-box p { margin: 0; color: #d8d4ee; }
.collect-h { margin: .6em 0 .4em; font-size: clamp(14px, 2cqw, 18px); color: #fff; } .collect-h b { color: #c8a0ff; }
.intel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; text-align: left; }
.intel-ch { padding: .5em .7em; background: rgba(13, 10, 23, .6); border-left: 2px solid #a070ff; }
.intel-ch small { display: block; margin-bottom: .3em; font-size: 11px; font-weight: 700; color: var(--muted); }
.intel-ch p { margin: 0 0 .4em; font-size: 12px; line-height: 1.5; color: #e8e4ff; } .intel-ch p b { margin-right: .5em; color: #c8a0ff; }
.intel-ch p.locked, .intel-ch p.locked b { color: rgba(255, 255, 255, .3); }
.ach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: left; }
.ach { display: grid; gap: .1em; padding: .45em .6em; background: rgba(13, 10, 23, .6); border: 1px solid rgba(255, 255, 255, .08); opacity: .45; }
.ach .end-thumb { width: 100%; aspect-ratio: 16 / 9; image-rendering: pixelated; border: 1px solid rgba(255, 255, 255, .15); margin-bottom: .25em; }
.ach.on { opacity: 1; border-color: #ffd23f; } .ach b { font-size: 13px; color: #fff; } .ach.on b { color: #ffd23f; } .ach span { font-size: 11px; color: var(--muted); }
@container (max-width: 560px) { .intel-grid, .ach-grid { grid-template-columns: 1fr; } }
.lv-card em.intel { margin-top: 0; color: #c8a0ff; }
.lv-card.secret { border-color: #b8d8ff; box-shadow: 0 0 14px rgba(184, 216, 255, .25); } .lv-card.locked { opacity: .5; }
.story.secret .story-title { color: #b8d8ff; }
.ending-roll .end-tag { margin: 0 0 .6em; font-weight: 900; color: #b8d8ff; letter-spacing: .3em; }
.ending { position: absolute; inset: 0; pointer-events: none; overflow: hidden; color: #fff4e0; text-align: center; text-shadow: 0 2px 0 #000, 0 0 12px rgba(0, 0, 0, .85); }
.ending[hidden] { display: none; }
.ending-lines { position: absolute; left: 0; right: 0; top: 28%; animation: endOut .8s ease-in forwards; }
.comic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: .7em 0 .5em; text-align: left; }
.comic.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comic .cpanel { margin: 0; display: flex; flex-direction: column; gap: .35em; }
.comic canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; border: 2px solid #05030c; box-shadow: 0 0 0 2px #fff4e0, 4px 4px 0 2px rgba(0, 0, 0, .5); }
.comic figcaption { font-size: .86em; line-height: 1.45; color: #d8d4ee; }
.ending-lines.has-art { top: 5%; }
.end-art { display: block; margin: 0 auto 1em; aspect-ratio: 16 / 9; image-rendering: pixelated; border: 2px solid rgba(255, 244, 224, .55); box-shadow: 0 0 0 1px #000, 0 6px 24px rgba(0, 0, 0, .6); opacity: 0; animation: endIn 1.6s ease-out .2s forwards; }
.ending-lines p { margin: .55em 0; font-size: clamp(14px, 2.4cqw, 22px); font-weight: 700; opacity: 0; animation: endIn 1.4s ease-out forwards; }
.ending-roll { position: absolute; left: 0; right: 0; top: 100%; animation: endRoll 17s linear forwards; }
.ending-roll h3 { margin: 0; font-family: "SenzanTitle", "Noto Sans SC", sans-serif; font-weight: 400; font-size: clamp(34px, 7cqw, 64px); line-height: 1; color: #fff; }
.ending-roll .px { margin: .2em 0 2em; font-family: var(--f-key); font-size: clamp(8px, 1.3cqw, 12px); color: #ffd27a; }
.ending-roll p { margin: 0 0 1.2em; font-size: clamp(11px, 1.6cqw, 15px); }
.ending-roll small { display: block; margin-bottom: .25em; font-size: .78em; font-weight: 700; color: #ffb878; letter-spacing: .1em; }
.ending-roll .end-thanks { margin-top: 2.2em; font-size: clamp(18px, 3.4cqw, 30px); font-weight: 900; color: #fff; }
.ending-skip { position: absolute; right: 2.5%; bottom: 13%; font-size: 11px; color: rgba(255, 255, 255, .55); }
@keyframes endIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes endOut { to { opacity: 0; } }
@keyframes endRoll { from { top: 100%; transform: translateY(0); } to { top: 0; transform: translateY(-100%); } }
.hud-item { font-size: .92em; color: #c8ffd8; } .hud-item:empty { display: none; } .hud-item b { color: #fff; }
.hud-key { color: #7dff9a; margin-left: .6em; } .hud-key::before { content: ''; display: inline-block; width: .8em; height: .55em; margin-right: .3em; vertical-align: middle; background: #1a3a2a; border: 1px solid #7dff9a; }
.hud-r { position: absolute; right: 1.6%; top: 2%; text-align: right; }
.hud-score { font-family: var(--f-pixel); font-size: 1.55em; letter-spacing: .08em; color: #fff1c0; }
.hud-score small { font-family: var(--f-body); font-size: .5em; font-weight: 700; color: #a8a3c8; margin-right: .6em; letter-spacing: 0; vertical-align: middle; }
.hud-combo { margin-top: .15em; font-weight: 900; color: #ff3d8b; }
.hud-combo b { font-size: 1.5em; }
.hud-c { position: absolute; left: 50%; top: 2%; transform: translateX(-50%); text-align: center; }
.hud-wave { padding: .3em .9em; background: rgba(8, 6, 22, .6); color: #ffb0c8; font-weight: 700; }
.hud-wave b { color: #fff; }
.hud-sneak { color: #8af0ff; }
.hud-alarm { color: #fff; background: rgba(160, 12, 36, .78); animation: hudBlink .5s steps(2) infinite; }
.ghost-tag { color: #8af0ff; font-weight: 900; letter-spacing: .2em; }
.hud-boss { display: grid; gap: .3em; width: 30cqw; font-weight: 900; color: #ff5c8a; letter-spacing: .1em; }
.hud-boss .bar { height: .8em; color: #ff3d5a; outline: 1px solid rgba(255, 92, 138, .6); outline-offset: 2px; }
.hud-boss .bar::after { display: none; }
@keyframes hudBlink { 50% { opacity: .45; } }
@media (pointer: coarse) { .tut small.kbd-only { display: none; } }
@media (pointer: coarse) and (orientation: landscape) { .hud-bl { bottom: auto; top: calc(2% + 7.5em); } .radio { bottom: auto; top: 24%; } } /* 横屏触屏按键盖在舞台下半截 */
.tut.ok { border-color: #7dff9a; box-shadow: 0 0 0 1px var(--ink), 0 0 18px rgba(125, 255, 154, .45); }
.tut .tut-top { display: flex; gap: .8em; justify-content: center; align-items: baseline; }
.tut .tut-n { font-size: .75em; color: var(--muted); }
.pirate { position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; background: #0b0818; color: #e8e0f8; text-align: center; font: 16px/1.6 var(--f-body, sans-serif); } .pirate b { font-size: 28px; color: #ff3d8b; } .pirate a { color: #35f0ff; font-size: 18px; }
.overlay > .ver { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: 11px; letter-spacing: .04em; color: var(--muted); opacity: .7; pointer-events: auto; } .ver-fb { font: inherit; color: var(--cyan); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; } /* 版本号后面的「反馈」 */
.card.fb .page-sec { text-align: left; } .card.page.fb .fb-row .seg { flex-wrap: wrap; row-gap: 6px; } .card.page.fb .fb-row { grid-template-columns: 3.2em minmax(0, 1fr); } .card.fb .fb-row, .card.fb .fb-opts, .card.fb .fb-text { width: 100%; box-sizing: border-box; } /* 反馈页：套二级页面的外壳，提交按钮在底栏 */ .fb-row { display: grid; grid-template-columns: 3.2em 1fr; gap: 10px; align-items: start; justify-items: start; margin: 6px 0; } .fb-k { color: var(--muted); font-size: 13px; line-height: 2.2; } .fb-row .seg { flex-wrap: wrap; row-gap: 6px; } .fb-opts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; } .fb-text { margin: 6px 0; min-height: 3.6em; } .fb-shot { width: 96px; height: auto; image-rendering: pixelated; border: 1px solid var(--edge); } .fb-link { font-size: 15px; } .fb-link a { color: var(--cyan); } /* 反馈 */ /* 主页右下角：版本号、发布时间 */
.tut .rack-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .3em .5em; margin: .35em 0 .2em; } .tut .rack-list span { padding: .05em .45em; border: 1px solid var(--edge); color: var(--muted); font-size: .85em; } .tut .rack-list span.on { border-color: var(--cyan); color: var(--cyan); background: rgba(53, 240, 255, .12); } /* 安全屋刀架：几把刀里正在用的那把 */
.tut b { font-size: 1.15em; color: #fff; }
.tut.ok b { color: #7dff9a; }
.tick { display: inline-block; width: .8em; height: .7em; margin-right: .35em; vertical-align: -.02em; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 7' shape-rendering='crispEdges' fill='%237dff9a'%3E%3Cpath d='M6 0h2v1H6zM5 1h2v1H5zM4 2h2v1H4zM0 3h1v1H0zM3 3h2v1H3zM0 4h2v1H0zM2 4h2v1H2zM1 5h2v1H1zM2 6h1v1H2z'/%3E%3C/svg%3E") no-repeat center / contain; }
/* 出错提示：盖在游戏画面中间 */
.err-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 90; width: min(92%, 560px); box-sizing: border-box; padding: 16px 18px; background: var(--ink); border: 2px solid #ff3d5a; box-shadow: 0 0 0 1px var(--ink), 0 0 24px rgba(255, 61, 90, .4); color: #fff; font: 12px/1.6 var(--f-pixel); }
.err-box b { display: block; font-size: 1.5em; color: #ff3d5a; margin-bottom: 4px; }
.err-box p { margin: 0 0 8px; color: var(--muted); }
.err-box textarea { width: 100%; box-sizing: border-box; font: 11px/1.5 ui-monospace, monospace; background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid var(--edge); resize: none; -webkit-user-select: text; user-select: text; }
.err-box .row { margin-top: 10px; }
.seg { display: inline-flex; flex-wrap: wrap; }
.seg button + button { margin-left: -1px; }
.seg button.on { border-color: var(--cyan); color: var(--cyan); }
/* 敌人图鉴：卡片上一张立绘，没遇到是黑影；详情页左边大图右边资料 */
.lv-grid.beast-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lv-card.beast-card { align-items: center; text-align: center; padding: .35em .3em .45em; gap: .15em; }
.lv-card.beast-card b { font-family: var(--f-body); font-weight: 900; font-size: 12px; letter-spacing: 0; line-height: 1.3; }
.lv-card.beast-card em { margin-top: 0; }
.beast-pic { display: flex; align-items: flex-end; justify-content: center; height: 64px; width: 100%; overflow: hidden; background: radial-gradient(ellipse at 50% 85%, rgba(53, 240, 255, .14), transparent 70%); }
.beast-card.unseen .beast-pic { background: rgba(0, 0, 0, .35); }
.beast-card.unseen b { color: var(--muted); }
.beast-pic img { image-rendering: pixelated; max-width: 100%; max-height: 100%; height: auto; }
.beast-pic.big { height: auto; min-height: 140px; min-width: 160px; width: auto; padding: 8px; }
.beast-pic.big img { max-height: none; }
.beast-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; text-align: left; }
.beast-head > div { flex: 1; min-width: 240px; }
.beast-en { margin: 0 0 8px; color: var(--cyan); font-size: 10px; letter-spacing: .12em; }
.beast-stats { margin: 0; display: grid; gap: 4px; }
.beast-stats div { display: flex; gap: 10px; }
.beast-stats dt { flex: none; width: 4.5em; color: var(--muted); }
.beast-stats dd { margin: 0; }
.beast-name { margin: 0; font-family: "SenzanTitle", "Noto Sans SC", sans-serif; font-weight: 400; font-size: 28px; line-height: 1.15; }
.beast-pic.big { min-height: 0; min-width: 0; }
.beast-more { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; text-align: left; margin-top: 2px; }
.beast-more .collect-h { text-align: left; margin: 6px 0 2px; }
.beast-list, .beast-tip { text-align: left; margin: 0 0 4px; padding-left: 1.1em; }
.beast-tip { padding-left: 0; }
.beast-list li { margin: 1px 0; }
.page-pop .beast-head { margin-top: 2px; }
.card.home { gap: 8px; }
/* 设置：左边标签、右边控件，对齐成两列；二选一的都是同样大小的分段按钮 */
.form { display: grid; grid-template-columns: max-content max-content; gap: 8px 18px; align-items: center; justify-content: center; text-align: left; margin: 2px 0 6px; }
.form-k { color: var(--muted); text-align: right; }
.form-v { display: flex; align-items: center; gap: 12px; }
.form-v small { color: var(--muted); font-size: 12px; }
.form .seg .ghost { min-width: 5.5em; padding: .35em .8em; }
/* 挑战：每行从左边排起，不满一行的卡片宽度和满行时一样 */
.lv-grid.ch-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; }
.lv-grid.ch-grid > .lv-card { flex: 0 0 calc((100% - 3 * clamp(6px, 1.4cqw, 12px)) / 4); box-sizing: border-box; }
.seg .ghost.on { background: rgba(53, 240, 255, .16); border-color: var(--cyan); color: var(--cyan); }
.form { gap: 6px 18px; }
.form input[type=range] { width: clamp(150px, 24cqw, 260px); accent-color: var(--cyan); cursor: pointer; margin: 0; }
.vol-n { display: inline-block; width: 3.6em; text-align: right; font-variant-numeric: tabular-nums; }
/* 二级菜单右上角的关闭：固定在舞台上，内容滚下去也点得到 */
.menu-x { position: absolute; top: 10px; right: 12px; z-index: 85; width: 34px; height: 34px; padding: 0; border: 2px solid var(--edge); background: rgba(13, 10, 23, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges' fill='%23e8e4ff'%3E%3Cpath d='M0 0h2v1H0zM1 1h2v1H1zM2 2h2v1H2zM3 3h3v3H3zM5 2h2v1H5zM6 1h2v1H6zM7 0h2v1H7zM2 6h2v1H2zM1 7h2v1H1zM0 8h2v1H0zM5 6h2v1H5zM6 7h2v1H6zM7 8h2v1H7z'/%3E%3C/svg%3E") no-repeat center / 16px; image-rendering: pixelated; cursor: pointer; box-shadow: 0 2px 0 var(--shadow); }
.menu-x:hover, .menu-x:focus-visible { border-color: var(--cyan); outline: none; }
/* 每章三颗星：过关卡片上一行三个目标，拿到的亮；选关卡片右下角小星星 */
.stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.star { color: var(--muted); opacity: .55; }
.star.had { opacity: .85; }
.star.on { color: #ffd23f; opacity: 1; text-shadow: 0 0 6px rgba(255, 210, 63, .6); }
.lv-grid .lv-card i.stars-mini { position: absolute; right: .55em; top: 1.9em; font-style: normal; line-height: 1; }
.lv-grid .lv-card i.stars-mini b { font: 400 11px/1 var(--f-body); letter-spacing: 1px; margin: 0; color: rgba(255, 255, 255, .2); text-shadow: none; -webkit-font-smoothing: auto; }
.lv-grid .lv-card i.stars-mini b.on { color: #ffd23f; }
/* 后来：通关后交代每个人的下场 */
.card.after { max-width: 640px; gap: 6px; padding-top: .8em; padding-bottom: .8em; }
.after-line { text-align: left; margin: 0; line-height: 1.5; }
.after-you { color: var(--cyan); }
/* 剧情回顾 */
.lore-talk { text-align: left; width: 100%; max-width: 640px; }
.lore-line { margin: 4px 0; }
.lore-line b { color: var(--cyan); margin-right: .6em; }
.lore-ask { margin: 0 0 6px 1.2em; color: var(--muted); font-size: 12px; }
/* 主页：背景是演示，菜单收在右边一列，左边留给画面 */
.overlay[data-view="title"] { place-items: center end; background: linear-gradient(90deg, rgba(8, 6, 22, 0) 38%, rgba(8, 6, 22, .55) 62%, rgba(8, 6, 22, .86)); }
.card.home { width: clamp(220px, 30cqw, 340px); align-items: stretch; background: none; border: 0; box-shadow: none; margin-right: 2cqw; padding: 0; }
.card.home::before, .card.home::after { display: none; }
.card.home .logo { margin: 0; }
.card.home .logo-cn { margin-top: -.4em; }
.home-menu { display: flex; flex-direction: column; gap: 6px; }
.home-menu .cp-tag { display: block; font-size: .78em; opacity: .75; margin-top: 2px; }
.home-menu button { width: 100%; word-break: keep-all; } /* 「继续 · 第五章 码头夜袭」在空格处折行，别把章名劈开 */
.home-foot { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.link { background: none; border: 0; padding: 2px 4px; font: inherit; color: var(--muted); cursor: pointer; }
.link.on { color: var(--cyan); }
.link:hover { color: var(--fg); }
/* 主页背景演示：游戏里冒出来的提示框、横幅、对话框、大招字幕都不显示 */
.bg-demo .tut, .bg-demo .bark, .bg-demo .radio, .bg-demo .ult, .bg-demo .banner, .bg-demo .talk, .bg-demo .death, .bg-demo #hud { display: none !important; }
/* 舞台矮（720p 屏开浏览器之类）：外框和卡片里的间距收小 */
.stage.short .overlay { padding: 1.4cqw; }
.stage.short .card { gap: clamp(3px, 1.1cqw, 10px); }
.stage.short .card.home { gap: 6px; }
.beast-pic.big { padding: 4px; }
.page-pop .beast-stats { gap: 1px; line-height: 1.45; }
.beast-more { font-size: 12px; line-height: 1.45; }
.tut .tut-keys { display: flex; gap: .35em; justify-content: center; align-items: center; margin: .35em 0 .2em; flex-wrap: wrap; }
.tut .tut-keys i { font-style: normal; color: var(--muted); }
.tut .cap { font-size: max(9px, .7em); min-width: 2.2em; height: 2.2em; }
.tut .cap.wide { font-family: var(--f-body); font-size: .85em; padding: 0 .8em; }
.tut p { margin: 0; color: #d8d4ee; }
.tut small { display: block; margin-top: .2em; font-size: .72em; color: var(--muted); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bar, .arena, .pad { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } /* 游戏里的字不让选中、长按不弹菜单；页面下方的速查照常能选 */
.arena textarea { -webkit-user-select: text; user-select: text; } /* 存档码要能复制粘贴 */
.brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.brand h1 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: .06em; line-height: 1.2; text-shadow: 2px 0 0 var(--pink-deep); }
.brand .en { margin: 0; font-family: var(--f-pixel); font-size: 9px; color: var(--cyan); letter-spacing: .1em; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font: 700 13px/1 var(--f-body); color: var(--fg); background: var(--panel); border: 1px solid var(--edge); padding: 9px 12px; box-shadow: 0 2px 0 var(--edge); cursor: pointer; }
.chip:hover { border-color: var(--cyan); }
.chip { white-space: nowrap; }
@media (max-width: 420px) { .tools { gap: 4px; } .tools .chip { padding: 1px 2px; font-size: 12px; gap: 4px; } .brand .en { display: none; } } /* 窄屏：四个按钮挤一行 */
button:focus-visible, body.pad-mode button:focus:not(.lv-card), body.pad-mode button.nav-on:not(.lv-card) { outline: 2px dashed var(--cyan); outline-offset: 3px; } /* nav-on：手柄选中的那个（窗口没激活时 :focus 不生效） */

.arena { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.stage { box-sizing: border-box; position: relative; container-type: inline-size; border: 3px solid var(--edge); box-shadow: 0 0 0 1px var(--pink-deep), 6px 6px 0 var(--shadow); background: var(--ink); max-width: 100%; }
/* container-type 让内容撑不开宽度：脚本跑起来之前（载入提示那几秒）先按窗口给个 16:9 的宽度，fit() 再用行内样式覆盖 */
.stage { width: min(100%, 992px, max(320px, calc((100vh - 150px) * 16 / 9 + 32px))); width: min(100%, 992px, max(320px, calc((100dvh - 150px) * 16 / 9 + 32px))); }
#game { display: block; touch-action: none; max-width: 100%; height: auto; } /* 脚本跑起来之前先按 16:9 占位 */
.boot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--ink); color: #fff; z-index: 5; } /* 单文件有 5MB 多：下载完、脚本跑起来之前先给个载入提示 */
.boot b { font: 400 clamp(36px, 8vw, 72px)/1 "SenzanTitle", "Noto Sans SC", sans-serif; letter-spacing: .12em; text-shadow: 3px 0 0 var(--pink-deep); }
.boot-bar { position: relative; width: min(46%, 320px); height: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.boot-bar i { position: absolute; top: 0; bottom: 0; width: 36%; background: linear-gradient(90deg, transparent, #35f0ff, #fff); animation: bootSlash 1.1s ease-in-out infinite; }
.boot small { font: 11px/1 var(--f-pixel); letter-spacing: .3em; color: var(--muted); }
@keyframes bootSlash { from { left: -40%; } to { left: 104%; } }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: var(--scrim); padding: 3cqw; text-align: center; overflow: auto; }
.overlay[hidden], .death[hidden], .ult[hidden], .banner[hidden] { display: none; }
.overlay.slow-in { animation: ovIn .7s ease-out both; } .overlay.slow-in > .card { animation: cardIn .6s .25s ease-out both; }
@keyframes ovIn { from { opacity: 0; } } @keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .overlay.slow-in, .overlay.slow-in > .card { animation: none; } }
/* 关卡名横幅：左右两道细线夹着大字，淡入淡出 */
.banner { position: absolute; left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; gap: .1em; pointer-events: none; color: #fff; text-shadow: 0 2px 0 #000, 0 0 18px rgba(255, 42, 74, .6); }
.banner small { font-family: var(--f-body); font-weight: 700; font-size: clamp(11px, 1.8cqw, 18px); letter-spacing: .4em; color: #ffb0c0; }
.banner b { font-family: "SenzanTitle", "Noto Sans SC", sans-serif; font-weight: 400; font-size: clamp(34px, 9cqw, 96px); line-height: 1.05; letter-spacing: .12em; }
.banner span { font-family: var(--f-key); font-size: clamp(8px, 1.3cqw, 13px); letter-spacing: .35em; color: #35f0ff; }
.banner::before, .banner::after { content: ""; width: min(60%, 520px); height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); }
.banner.on { animation: bannerIn 2.4s ease-out both; } /* 别用 .go：那是界面包的红色主按钮 */
@keyframes bannerIn { 0% { opacity: 0; transform: scale(1.08); } 12% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .banner.on { animation: none; } }
.stage > .ult { position: absolute; left: 0; right: 0; top: 8%; pointer-events: none; } /* 只管大招字幕：触屏的「奥」按钮也叫 .ult */
.ult-strip { display: flex; align-items: center; justify-content: center; gap: .7em; padding: .25em 0 .3em; background: linear-gradient(90deg, transparent, rgba(190, 16, 48, .9) 18%, rgba(230, 30, 64, .94) 50%, rgba(190, 16, 48, .9) 82%, transparent); border-block: 2px solid rgba(255, 255, 255, .85); transform: skewY(-3deg); box-shadow: 0 0 30px rgba(255, 42, 74, .45); }
.ult b { font-family: "SenzanTitle", "Noto Sans SC", sans-serif; font-weight: 400; font-size: clamp(34px, 8cqw, 84px); line-height: 1; letter-spacing: .08em; color: #fff; text-shadow: .04em .05em 0 #4a0012; }
.ult .meta { display: flex; flex-direction: column; align-items: flex-start; gap: .15em; color: #fff; }
.ult small { font-family: var(--f-pixel); font-size: clamp(9px, 1.5cqw, 14px); letter-spacing: .3em; color: #ffd0d8; }
.ult span { font-size: clamp(11px, 1.6cqw, 16px); font-weight: 700; }
.ult.go .ult-strip { animation: stripIn .16s ease-out both; }
.ult.out .ult-strip { animation: stripOut .18s ease-in both; }
@keyframes stripIn { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes stripOut { to { clip-path: inset(0 50% 0 50%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ult.go .ult-strip, .ult.out .ult-strip { animation: none; } }
.card { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 1.6cqw, 14px); }
.eyebrow { margin: 0; font-weight: 700; font-size: clamp(10px, 2cqw, 14px); letter-spacing: .12em; color: var(--cyan); }
.px { font-family: var(--f-pixel); font-weight: 400; font-size: .85em; letter-spacing: .08em; }
.logo-cn { margin: -.2em 0 0; font-family: "SenzanTitle", "Noto Sans SC", sans-serif; font-size: clamp(20px, 5cqw, 44px); line-height: 1; letter-spacing: .3em; color: #ff5c8a; text-shadow: .05em .05em 0 var(--ink); }
.logo { margin: 0; font-family: var(--f-pixel); font-weight: 400; font-size: clamp(18px, 7cqw, 52px); line-height: 1.2; color: var(--fg); text-shadow: -.06em 0 0 var(--cyan), .06em 0 0 var(--pink), .14em .14em 0 var(--ink); }
.big { margin: 0; font-size: clamp(20px, 6cqw, 44px); font-weight: 900; letter-spacing: .08em; line-height: 1.2; }
.lead { margin: 0; font-size: clamp(12px, 2.5cqw, 18px); }
.hint { margin: 0; font-size: clamp(10px, 1.8cqw, 13px); color: var(--muted); }
.rank { font-family: var(--f-pixel); font-size: clamp(34px, 12cqw, 90px); line-height: 1; color: var(--pink); text-shadow: -.05em 0 0 var(--cyan), .08em .08em 0 var(--ink); }
.go { font: 900 clamp(13px, 2.6cqw, 18px)/1 var(--f-body); letter-spacing: .1em; color: var(--ink); background: var(--cyan); border: 0; padding: .8em 1.8em; box-shadow: 0 4px 0 #1a8fb0, 4px 8px 0 var(--ink); cursor: pointer; }
.go:active { transform: translateY(3px); box-shadow: 0 1px 0 #1a8fb0; }
.ghost { font: 700 clamp(12px, 2.3cqw, 16px)/1 var(--f-body); color: var(--fg); background: transparent; border: 2px solid var(--edge); padding: .75em 1.3em; cursor: pointer; }
.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
/* 成绩卡片：评价像印章一样盖下来 */
/* 剧情卡 */
.story .story-title { margin: 0; font-family: "SenzanTitle", "Noto Sans SC", sans-serif; font-weight: 400; font-size: clamp(30px, 7cqw, 64px); letter-spacing: .12em; line-height: 1.1; text-shadow: .05em .05em 0 var(--ink), 0 0 18px rgba(255, 61, 139, .45); }
.story .lead { max-width: 30em; color: #d8d4ee; }
/* 难度页在矮横屏上放不下：只滚四张卡，标题和底下的按钮留着 */
.overlay[data-view="diff"] { grid-template-rows: minmax(0, 1fr); }
.overlay[data-view="diff"] > .card { max-height: 100%; min-height: 0; }
.overlay[data-view="diff"] > .card > :not(.lv-grid) { flex-shrink: 0; }
.overlay[data-view="diff"] .lv-grid { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 4px; }
.clear-head { display: flex; align-items: center; justify-content: center; gap: .5em; }
.rank.stamp { padding: .06em .22em .02em; border: .07em solid currentColor; transform: rotate(-8deg); animation: stamp .38s cubic-bezier(.2, 1.6, .4, 1) .8s both; }
.clear-head .rank.stamp { font-size: clamp(26px, 7cqw, 58px); }
.rank.r-S, .rank.r-金 { color: #ffd23f; } .rank.r-银 { color: #d8e0f0; } .rank.r-铜 { color: #d08a4a; }
.lv-card .t-name { font-family: var(--f-body); font-weight: 900; font-size: clamp(14px, 2.2cqw, 19px); }
.rank.r-S { color: #ffd23f; } .rank.r-A { color: var(--pink); } .rank.r-B { color: var(--cyan); } .rank.r-C { color: var(--muted); }
@keyframes stamp { from { opacity: 0; transform: scale(2.8) rotate(-22deg); } to { opacity: 1; transform: scale(1) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .rank.stamp { animation: none; } }
/* 选关：四张关卡卡片，右上角是这一关的最好评价 */
.seg .ghost:disabled, .lv-card:disabled { opacity: .4; cursor: not-allowed; } .lv-card .rank.other { opacity: .4; } /* 难度：还没解锁的噩梦、暂停里比现在高的档 */
.lv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.4cqw, 12px); width: min(86cqw, 760px, calc(94cqw - 32px - 2 * clamp(14px, 4cqw, 40px))); } /* 卡片有 16px 边框和左右内边距 */
.lv-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } /* 选关、竞速：十关排两行 */
.lv-grid.five .lv-card { padding: .55em .7em .6em; } .lv-grid.five .lv-card b { font-size: clamp(15px, 2.7cqw, 24px); letter-spacing: .02em; }
@container (max-width: 560px) { .lv-grid, .lv-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lv-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .2em; padding: .7em .8em .75em; background: rgba(13, 10, 23, .72); border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--shadow); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.lv-card:hover { border-color: #5d52a0; } /* 鼠标划过只是亮一点；真正选中（键盘 / 手柄的焦点）要一眼看得出来 */
.lv-card:focus { outline: none; }
.lv-card:focus-visible, body.pad-mode .lv-card:focus, body.pad-mode .lv-card.nav-on { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan), 0 0 18px rgba(53, 240, 255, .45), 0 3px 0 var(--shadow); transform: translateY(-2px); z-index: 1; }
.lv-card:focus-visible::before, body.pad-mode .lv-card:focus::before, body.pad-mode .lv-card.nav-on::before { content: ""; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 5px; background: var(--cyan); }
body.pad-mode .lv-card:hover:not(:focus):not(.nav-on) { border-color: var(--edge); } /* 用手柄时鼠标停在哪张卡上不算"选中" */
.lv-card small { font-size: clamp(10px, 1.5cqw, 12px); font-weight: 700; color: var(--muted); }
.lv-card b { font-family: "SenzanTitle", "Noto Sans SC", sans-serif; font-weight: 400; font-size: clamp(18px, 3.4cqw, 28px); line-height: 1.1; letter-spacing: .06em; }
.lv-card span { font-size: clamp(7px, 1cqw, 9px); color: var(--cyan); }
.lv-card em { font-style: normal; font-size: clamp(10px, 1.4cqw, 12px); color: var(--muted); margin-top: .3em; }
.lv-card .rank { position: absolute; right: .35em; top: .25em; font-size: clamp(18px, 3cqw, 26px); transform: rotate(-8deg); }
.mut-card b { font-family: var(--f-body); font-weight: 900; font-size: clamp(13px, 2cqw, 17px); letter-spacing: .02em; }
.mut-card.on { border-color: #ffd23f; box-shadow: 0 0 0 1px #ffd23f, 0 0 14px rgba(255, 210, 63, .35); }
.mut-card.on .new { color: #ffd23f; }
.mut-card.locked { opacity: .45; } .star-line b { color: #ffd23f; margin-right: .2em; }
.mut-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* 挑战：七种排两行 */
.ch-grid .lv-card em { font-size: clamp(9px, 1.25cqw, 11px); }
.lv-card.pick small { color: #ffd23f; } .lv-card.pick::after { content: ""; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent #ffd23f transparent transparent; } /* 今日推荐：右上角一个金色小角标，不再整圈金边（跟「选中」分不清） */
@container (max-width: 560px) { .ch-grid, .mut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hud-mut { margin-top: .1em; font-size: .85em; font-weight: 700; color: #ffd23f; }
.lv-card .new { position: absolute; right: .6em; top: .6em; font-style: normal; font-size: 11px; color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 3.4cqw, 34px); margin: 0; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats dt { font-size: clamp(10px, 1.7cqw, 13px); color: var(--muted); }
.stats dd { margin: 0; font-family: var(--f-pixel); font-size: clamp(11px, 2.4cqw, 17px); font-variant-numeric: tabular-nums; }
.death { position: absolute; left: 0; right: 0; top: 26%; text-align: center; pointer-events: none; }
.death p { margin: 0; font-weight: 900; font-size: clamp(18px, 5.5cqw, 42px); letter-spacing: .12em; color: var(--fg); text-shadow: -3px 0 0 var(--cyan), 3px 0 0 var(--pink); animation: glitch .18s steps(2) infinite; }
.death small { display: block; margin-top: .4em; font-family: var(--f-pixel); font-size: clamp(8px, 1.6cqw, 12px); color: var(--muted); letter-spacing: .2em; }
@keyframes glitch { 50% { transform: translateX(2px); text-shadow: 3px 0 0 var(--cyan), -3px 0 0 var(--pink); } }
@media (prefers-reduced-motion: reduce) { .death p { animation: none; } }

.pad { display: none; width: 100%; max-width: 620px; justify-content: space-between; align-items: center; gap: 12px; user-select: none; -webkit-user-select: none; touch-action: none; }
.stick { position: relative; width: 132px; height: 132px; border-radius: 50%; background: var(--panel); border: 2px solid var(--edge); touch-action: none; flex: none; }
.knob { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: var(--cyan); box-shadow: 0 3px 0 #1a8fb0; pointer-events: none; }
.btns { display: grid; grid-template-columns: repeat(4, 54px); grid-template-rows: repeat(2, 54px); gap: 9px; }
.tbtn.ult { color: #ff3d5a; border-color: #ff3d5a; }
.tbtn.cut { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.tbtn { border-radius: 50%; font: 900 17px/1 var(--f-body); color: var(--fg); background: var(--panel); border: 2px solid var(--edge); touch-action: none; }
.tbtn.fire { background: var(--pink); border-color: var(--pink); }
.tbtn.slow { color: var(--cyan); }
.tbtn.on { transform: scale(.93); filter: brightness(1.3); }
html[lang="en"] .tbtn { font-size: 11px; }
html[lang="en"] .lv-card b { font-size: clamp(14px, 2.4cqw, 21px); letter-spacing: 0; overflow-wrap: anywhere; } html[lang="en"] .lv-grid.five .lv-card b { font-size: clamp(12px, 1.9cqw, 17px); } html[lang="en"] .banner b.en { font-size: clamp(26px, 6.5cqw, 64px); letter-spacing: .04em; }

.info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--edge); padding: 16px; min-width: 0; }
.panel h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.keys { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.keys li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.cap { font-family: var(--f-key); font-size: 9px; min-width: 26px; height: 26px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--bg); border: 1px solid var(--edge); box-shadow: 0 2px 0 var(--edge); }
.keys .what { color: var(--muted); margin-left: 4px; font-size: 14px; }
.tips { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--edge); list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.tips b { color: var(--fg); font-weight: 700; }
.moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.moves li { display: flex; flex-direction: column; line-height: 1.45; }
.moves span { font-size: 13px; color: var(--muted); }
.credit { margin: 0; font-size: 12px; color: var(--muted); }

.touch-only, .pad-only { display: none; }
body.pad-mode .pad-only { display: revert; }
body.pad-mode .kbd-only { display: none; }
/* 手柄按键：面键按 Xbox 配色画成圆钮；肩键、方向键垫一层亮底，深色字才看得见 */
body.pad-mode [data-pad] { border-image: none !important; border: 1px solid rgba(0, 0, 0, .55) !important; border-radius: 999px; box-shadow: 0 2px 0 rgba(0, 0, 0, .5) !important; background: #d6dcff !important; color: #10121a !important; text-shadow: none; min-width: 1.9em; text-align: center; }
body.pad-mode [data-pad="A"] { background: #6ad86a !important; } body.pad-mode [data-pad="B"] { background: #ff6060 !important; }
body.pad-mode [data-pad="X"] { background: #58b0ff !important; } body.pad-mode [data-pad="Y"] { background: #ffd23f !important; }
body.pad-mode [data-pad="✕"] { background: #6a9cff !important; } body.pad-mode [data-pad="○"] { background: #ff6060 !important; } body.pad-mode [data-pad="□"] { background: #ff8ad8 !important; } body.pad-mode [data-pad="△"] { background: #5ad8a8 !important; } /* PS 手柄的四个键 */
body.pad-mode [data-pad="LT"], body.pad-mode [data-pad="RB"] { background: #3a3656 !important; color: #fff !important; }
.tut small.pad-only { display: none; } body.pad-mode .tut small.pad-only { display: block; } body.pad-mode .tut small.kbd-only { display: none; }
@media (max-width: 760px) { .info { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) { .stick { width: 96px; height: 96px; } .btns { grid-template-columns: repeat(4, 44px) !important; grid-template-rows: repeat(2, 44px) !important; gap: 6px !important; } }
@media (max-width: 420px) { .stick { width: 112px; height: 112px; } .btns { grid-template-columns: repeat(4, 48px); grid-template-rows: repeat(2, 48px); gap: 8px; } } /* 窄屏手机：摇杆和按键一行放得下 */
@media (pointer: coarse) {
  .pad { display: flex; }
  .touch-only { display: revert; }
  .kbd-only { display: none; }
}
@media (pointer: coarse) and (orientation: landscape) {
  .bar { height: 0; min-height: 0; margin: 0; padding: 0; overflow: visible; } .bar .brand { display: none; } /* 手机横屏：顶上那条标题让出来给游戏画面（速查面板是 fixed，照样能开） */
  .arena { position: relative; }
  .pad { position: absolute; left: 0; right: 0; bottom: 8px; max-width: none; padding-inline: 8px; pointer-events: none; }
  .pad > * { pointer-events: auto; opacity: .55; }
  .pad.idle > * { pointer-events: none; opacity: .12; } /* 菜单、对话、结局时按键让开，点得到下面的按钮 */
  .pad.idle.pz > .btns { opacity: 1; } .pad.idle.pz .tbtn { opacity: .12; } .pad.idle.pz .tbtn.pause { opacity: .55; pointer-events: auto; } /* 房间编辑器：只留暂停键开菜单 */
}

/* 像素字体的字号取整：只在支持 round() 的浏览器里生效（微信等老内核用上面的原值，不会因为 var() 整条失效） */
@supports (font-size: round(nearest, 1px, 1px)) {
  body { font-size: max(12px, round(nearest, 15px, var(--pxs))); }
  .ref-h b { font-size: max(12px, round(nearest, 16px, var(--pxs))); }
  .ref-h small { font-size: max(12px, round(nearest, 12px, var(--pxs))); }
  .tut { font-size: max(12px, round(nearest, clamp(11px, 1.55cqw, 17px), var(--pxs))); }
  .kill-tip { font-size: max(12px, round(nearest, clamp(10px, 1.4cqw, 14px), var(--pxs))); }
  .hud { font-size: max(12px, round(nearest, clamp(10px, 1.3cqw, 15px), var(--pxs))); }
  .hud-sword { font-size: max(12px, round(nearest, .92em, var(--pxs))); }
  .lv-card.skin em { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  .lv-card.bind em { font-size: max(12px, round(nearest, 12px, var(--pxs))); }
  .talk > b { font-size: max(12px, round(nearest, clamp(11px, 1.5cqw, 13px), var(--pxs))); }
  .talk p { font-size: max(12px, round(nearest, clamp(14px, 2.1cqw, 18px), var(--pxs))); }
  .talk .cut { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  .talk .next { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  .talk-ask button { font-size: max(12px, round(nearest, clamp(12px, 1.7cqw, 15px), var(--pxs))); }
  .bark p { font-size: max(12px, round(nearest, 1.8cqw, var(--pxs))); }
  .radio b { font-size: max(12px, round(nearest, clamp(9px, 1.15cqw, 12px), var(--pxs))); }
  .radio p { font-size: max(12px, round(nearest, clamp(11px, 1.55cqw, 15px), var(--pxs))); }
  .hitlist-h { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  .hitlist li { font-size: max(12px, round(nearest, clamp(12px, 1.6cqw, 14px), var(--pxs))); }
  .hitlist li i { font-size: max(12px, round(nearest, .75em, var(--pxs))); }
  .hitlist-did { font-size: max(12px, round(nearest, clamp(12px, 1.5cqw, 14px), var(--pxs))); }
  .ach-toast small { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  .ach-toast b { font-size: max(12px, round(nearest, clamp(15px, 2.2cqw, 20px), var(--pxs))); }
  .ach-toast span { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  .collect-h { font-size: max(12px, round(nearest, clamp(14px, 2cqw, 18px), var(--pxs))); }
  .intel-ch small { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  .intel-ch p { font-size: max(12px, round(nearest, 12px, var(--pxs))); }
  .ach b { font-size: max(12px, round(nearest, 13px, var(--pxs))); }
  .ach span { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  .ending-lines p { font-size: max(12px, round(nearest, clamp(14px, 2.4cqw, 22px), var(--pxs))); }
  .ending-roll p { font-size: max(12px, round(nearest, clamp(11px, 1.6cqw, 15px), var(--pxs))); }
  .ending-roll small { font-size: max(12px, round(nearest, .78em, var(--pxs))); }
  .ending-roll .end-thanks { font-size: max(12px, round(nearest, clamp(18px, 3.4cqw, 30px), var(--pxs))); }
  .ending-skip { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  .hud-item { font-size: max(12px, round(nearest, .92em, var(--pxs))); }
  .hud-score small { font-size: max(12px, round(nearest, .5em, var(--pxs))); }
  .hud-combo b { font-size: max(12px, round(nearest, 1.5em, var(--pxs))); }
  .tut .tut-n { font-size: max(12px, round(nearest, .75em, var(--pxs))); }
  .tut b { font-size: max(12px, round(nearest, 1.15em, var(--pxs))); }
  .tut small { font-size: max(12px, round(nearest, .72em, var(--pxs))); }
  .brand h1 { font-size: max(12px, round(nearest, 24px, var(--pxs))); }
  .chip { font: 700 max(12px, round(nearest, 13px, var(--pxs)))/1 var(--f-body); }
  @media (max-width: 420px) { .tools .chip { font-size: max(12px, round(nearest, 12px, var(--pxs))); } }
  .banner small { font-size: max(12px, round(nearest, clamp(11px, 1.8cqw, 18px), var(--pxs))); }
  .ult span { font-size: max(12px, round(nearest, clamp(11px, 1.6cqw, 16px), var(--pxs))); }
  .eyebrow { font-size: max(12px, round(nearest, clamp(10px, 2cqw, 14px), var(--pxs))); }
  .big { font-size: max(12px, round(nearest, clamp(20px, 6cqw, 44px), var(--pxs))); }
  .lead { font-size: max(12px, round(nearest, clamp(12px, 2.5cqw, 18px), var(--pxs))); }
  .hint { font-size: max(12px, round(nearest, clamp(10px, 1.8cqw, 13px), var(--pxs))); }
  .go { font: 900 max(12px, round(nearest, clamp(13px, 2.6cqw, 18px), var(--pxs)))/1 var(--f-body); }
  .ghost { font: 700 max(12px, round(nearest, clamp(12px, 2.3cqw, 16px), var(--pxs)))/1 var(--f-body); }
  .clear-head .rank.stamp { font-size: max(12px, round(nearest, clamp(26px, 7cqw, 58px), var(--pxs))); }
  .lv-card .t-name { font-size: max(12px, round(nearest, clamp(14px, 2.2cqw, 19px), var(--pxs))); }
  .lv-grid.five .lv-card b { font-size: max(12px, round(nearest, clamp(15px, 2.7cqw, 24px), var(--pxs))); }
  .lv-card small { font-size: max(12px, round(nearest, clamp(10px, 1.5cqw, 12px), var(--pxs))); }
  .lv-card span { font-size: max(12px, round(nearest, clamp(7px, 1cqw, 9px), var(--pxs))); }
  .lv-card em { font-size: max(12px, round(nearest, clamp(10px, 1.4cqw, 12px), var(--pxs))); }
  .lv-card .rank { font-size: max(12px, round(nearest, clamp(18px, 3cqw, 26px), var(--pxs))); }
  .mut-card b { font-size: max(12px, round(nearest, clamp(13px, 2cqw, 17px), var(--pxs))); }
  .ch-grid .lv-card em { font-size: max(12px, round(nearest, clamp(9px, 1.25cqw, 11px), var(--pxs))); }
  .hud-mut { font-size: max(12px, round(nearest, .85em, var(--pxs))); }
  .lv-card .new { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  .stats dt { font-size: max(12px, round(nearest, clamp(10px, 1.7cqw, 13px), var(--pxs))); }
  .death p { font-size: max(12px, round(nearest, clamp(18px, 5.5cqw, 42px), var(--pxs))); }
  .tbtn { font: 900 max(12px, round(nearest, 17px, var(--pxs)))/1 var(--f-body); }
  html[lang="en"] .tbtn { font-size: max(12px, round(nearest, 11px, var(--pxs))); }
  html[lang="en"] .lv-card b { font-size: max(12px, round(nearest, clamp(14px, 2.4cqw, 21px), var(--pxs))); }
  html[lang="en"] .lv-grid.five .lv-card b { font-size: max(12px, round(nearest, clamp(12px, 1.9cqw, 17px), var(--pxs))); }
  html[lang="en"] .banner b.en { font-size: max(12px, round(nearest, clamp(26px, 6.5cqw, 64px), var(--pxs))); }
  .panel h2 { font-size: max(12px, round(nearest, 13px, var(--pxs))); }
  .keys .what { font-size: max(12px, round(nearest, 14px, var(--pxs))); }
  .tips { font-size: max(12px, round(nearest, 13px, var(--pxs))); }
  .moves span { font-size: max(12px, round(nearest, 13px, var(--pxs))); }
  .credit { font-size: max(12px, round(nearest, 12px, var(--pxs))); }
}

/* 整关回放：盖在舞台上放录像，顶上写第几段，底下一排按钮 */
.lr-view { position: absolute; inset: 0; z-index: 30; background: #000; display: flex; align-items: center; justify-content: center; }
.lr-export { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 85; width: min(92%, 440px); box-sizing: border-box; padding: 12px 16px 10px; background: rgba(10, 6, 24, .95); border: 2px solid var(--cyan); box-shadow: 0 0 0 1px var(--ink), 0 0 18px rgba(53, 240, 255, .35); color: #fff; text-align: center; } /* 导出视频的进度框：一直开着，导完显示大小 */
.lr-export p { margin: .35em 0 .5em; color: var(--fg); font-variant-numeric: tabular-nums; } .lr-export small { display: block; margin-top: .5em; color: var(--muted); font-size: .85em; } .lr-export .row { justify-content: center; margin-top: .6em; }
.lr-prog { height: 8px; background: rgba(255, 255, 255, .1); border: 1px solid var(--edge); } .lr-prog i { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 8px rgba(53, 240, 255, .6); }
.card.page .form-k small { display: block; margin-top: .15em; color: var(--muted); font-size: .82em; } /* 设置项名字下面的一行说明 */
.lr-view video { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.lr-top { position: absolute; left: 14px; top: 10px; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; text-shadow: 0 1px 0 #000; pointer-events: none; }
.lr-top b { color: #ff3d5a; letter-spacing: .2em; animation: lrBlink 1.2s steps(2) infinite; } .lr-top b::before { content: "● "; }
@keyframes lrBlink { 50% { opacity: .35; } }
.lr-bar { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 8px; }
.lr-bar .ghost.on { color: var(--cyan); }
/* ===== 二级页面统一外壳（06zf-pages.js）：顶上标题、左边分栏、右边内容自己滚、底下一排按钮 ===== */
.overlay.full { right: auto; bottom: auto; z-index: 80; box-sizing: border-box; background: rgba(8, 6, 20, .94); } /* 手机：菜单铺满屏幕 */ .overlay.full[data-view="title"] { background: rgba(8, 6, 20, .5); } /* 主页：透出后面的演示 */
@media (orientation: portrait) { .overlay.full[data-view="title"] { place-items: center; background: rgba(8, 6, 20, .82); } } /* 手机竖屏：主页菜单放中间，别压在舞台和按键上 */
.overlay.paged { place-items: stretch center; grid-template-rows: minmax(0, 1fr); padding: clamp(10px, 2.2cqw, 26px); overflow: hidden; }
.card.page { width: min(100%, 1080px); max-width: none; min-height: 0; border: 0; border-image: none; padding: 0; gap: 0; align-items: stretch; text-align: left;
  background: linear-gradient(180deg, rgba(24, 18, 48, .97), rgba(11, 8, 24, .98)); box-shadow: 0 0 0 1px #3c3170, 0 0 0 4px rgba(8, 6, 18, .9), 0 0 0 5px #2a2250, 0 0 32px rgba(255, 61, 139, .16); }
.page-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: clamp(10px, 1.6cqw, 16px) clamp(14px, 2.4cqw, 26px) clamp(8px, 1.2cqw, 12px); border-bottom: 1px solid #2c2452;
  background: linear-gradient(90deg, rgba(255, 61, 139, .14), rgba(53, 240, 255, .04) 55%, transparent); }
.page-head::after { content: ""; position: absolute; left: clamp(14px, 2.4cqw, 26px); bottom: -1px; width: 120px; height: 2px; background: linear-gradient(90deg, var(--pink), var(--cyan)); }
.page-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.page-title b { font-family: "SenzanTitle", "Noto Sans SC", sans-serif; font-weight: 400; font-size: clamp(20px, 3.2cqw, 32px); line-height: 1.05; letter-spacing: .1em; color: #fff; text-shadow: .05em .05em 0 #4a1236; -webkit-font-smoothing: antialiased; }
.page-title .px { color: var(--cyan); font-size: clamp(8px, 1cqw, 11px); letter-spacing: .32em; }
.page-meta { color: var(--muted); font-size: clamp(11px, 1.5cqw, 14px); text-align: right; padding-right: 44px; } /* 右上角让给关闭按钮 */
.page-body { flex: 1; min-height: 0; display: flex; }
.page-body { position: relative; }
.page-pop { position: absolute; inset: 0; z-index: 5; isolation: isolate; display: flex; flex-direction: column; background: #120d26 linear-gradient(180deg, #181230, #0b0818); border-top: 1px solid #3c3170; } /* 图鉴、剧情回顾的详情：盖在这一页内容上 */
.page-pop-in { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: clamp(10px, 1.8cqw, 18px) clamp(14px, 2.4cqw, 26px); display: flex; flex-direction: column; gap: 6px; text-align: left; }
.page-pop .eyebrow { text-align: left; margin: 0; }
.perf { position: absolute; left: 1.2%; top: 26%; z-index: 6; padding: .3em .6em; background: rgba(8, 6, 22, .72); border-left: 3px solid var(--cyan); color: #e8e4ff; font-size: clamp(10px, 1.2cqw, 14px); line-height: 1.4; text-align: left; white-space: nowrap; pointer-events: none; } /* 性能数据：左上生命那一块的下面（top 由 perfFrame 对齐） */
.perf p { margin: 0; } .perf b { color: #7dff9a; font-weight: 700; } .perf b.mid { color: #ffd23f; } .perf b.bad { color: #ff3d5a; }
.perf canvas { display: block; width: 120px; height: 28px; margin: .25em auto .15em 0; image-rendering: pixelated; } .perf small { display: block; color: #a8a2d8; font-size: .9em; }
.beast-filter { margin: 0 0 10px; } .beast-filter small { opacity: .7; margin-left: .3em; } .lv-card.beast-card[hidden] { display: none; } /* 图鉴筛选 */
.save-h { margin: .8em 0 .2em; color: var(--cyan); font-size: clamp(12px, 1.5cqw, 14px); font-weight: 400; letter-spacing: .08em; text-align: left; } /* 设置 → 存档 里的小标题 */
.page-pop-row .go, .page-pop-row .ghost { font-size: clamp(12px, 1.5cqw, 14px); padding: .35em 1.2em; }
.page-pop-row { flex: none; justify-content: center !important; gap: 10px; padding: 8px clamp(14px, 2.4cqw, 26px) 10px; border-top: 1px solid rgba(58, 48, 110, .5); }
.page-pop .story-title { margin: 0; font-family: "SenzanTitle", "Noto Sans SC", sans-serif; font-weight: 400; font-size: clamp(22px, 4cqw, 36px); letter-spacing: .08em; line-height: 1.15; }
.page-pop .lead { text-align: left; margin: 0; }
.card.page:has(.page-pop) .page-foot { display: none; } /* 详情盖着：底栏的「返回」先藏起来，用详情里的「收起」 */
.page-tabs { flex: none; width: clamp(112px, 15cqw, 172px); display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-right: 1px solid #2c2452; overflow-y: auto; background: rgba(6, 4, 14, .35); }
.page-tab { display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: .7em 1.1em; font: 700 clamp(12px, 1.6cqw, 15px)/1.25 var(--f-body); color: var(--muted); cursor: pointer; }
.page-tab b { color: inherit; font-weight: 400; opacity: .8; }
.page-tab:hover { color: var(--fg); background: rgba(255, 255, 255, .03); }
.page-tab.on { color: #fff; border-left-color: var(--cyan); background: linear-gradient(90deg, rgba(53, 240, 255, .16), transparent); text-shadow: .0833em 0 0 currentColor; }
.page-tab:focus-visible, body.pad-mode button.page-tab:focus, body.pad-mode button.page-tab.nav-on { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); color: #fff; }
.page-tab.page-link { font-weight: 400; } /* 左栏最后几项：跳到别的页面 */
.page-tab.page-link::after { content: ''; float: right; width: .4em; height: .4em; margin: .45em 0 0 .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); opacity: .6; } /* 小箭头：用边框画，不占字体 */
.page-tab:not(.page-link) + .page-link { margin-top: .5em; box-shadow: 0 -1px 0 #2c2452; }
.page-tab:not(.page-link) + .page-link:focus-visible, body.pad-mode .page-tab:not(.page-link) + .page-link:focus, body.pad-mode .page-tab:not(.page-link) + .page-link.nav-on { box-shadow: inset 0 0 0 2px var(--cyan); }
.page-main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: clamp(10px, 1.8cqw, 18px) clamp(14px, 2.4cqw, 26px) clamp(14px, 2cqw, 22px); display: flex; flex-direction: column; gap: clamp(8px, 1.4cqw, 14px); scrollbar-width: thin; scrollbar-color: #4a3f7a transparent; }
.page-intro, .page-sec { display: flex; flex-direction: column; align-items: stretch; gap: clamp(8px, 1.2cqw, 12px); }
.page-sec[hidden] { display: none; }
.card.page:not(.notabs) .page-sec > .collect-h { display: none; } /* 分了栏：标题就是左边那一栏 */
.card.page.notabs .page-sec > .collect-h { margin: .4em 0 0; text-align: left; color: var(--cyan); font-size: clamp(12px, 1.6cqw, 15px); letter-spacing: .08em; }
.row.sub { gap: 8px; margin-top: -4px; } .row.sub .ghost { font-size: clamp(11px, 1.7cqw, 13px); padding: .15em .7em; } /* 过关卡片：回放、导出、分享这些次要的小一号 */
.page-foot-hint { margin-right: auto; display: flex; flex-direction: column; gap: 2px; } .page-foot-hint .hint { font-size: clamp(10px, 1.3cqw, 12px); }
.page-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; padding: clamp(8px, 1.2cqw, 12px) clamp(14px, 2.4cqw, 26px); border-top: 1px solid #2c2452; background: rgba(6, 4, 14, .4); }
.card.page .hint, .card.page .lead { text-align: left; }
.card.page .row { justify-content: flex-start; }
.card.page .lv-grid { width: 100%; }
.card.page .lv-grid.ch-grid > .lv-card { flex-basis: calc((100% - 2 * clamp(6px, 1.4cqw, 12px)) / 3); }
.card.page .lv-card { text-align: left; }
.card.page .form { display: grid; width: 100%; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 clamp(18px, 3cqw, 36px); margin: 0; }
.card.page .set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 2.6em; padding: 6px 2px; border-bottom: 1px solid rgba(58, 48, 110, .5); }
.card.page .form-k { text-align: left; color: var(--fg); font-size: clamp(12px, 1.5cqw, 14px); }
.card.page .form-v { justify-content: flex-end; }
.card.page .seg { flex-wrap: nowrap; } .card.page .seg .ghost { white-space: nowrap; } .card.page .set-row { flex-wrap: wrap; row-gap: 4px; } .card.page .set-row .form-k { flex: 1 1 8em; min-width: 0; } .card.page .set-row .form-v { margin-left: auto; } /* 按钮字不竖排；放不下就整组换到下一行，别把页面撑宽 */
.card.page .set-group { grid-column: 1 / -1; padding: 16px 2px 5px; color: var(--cyan); font-size: clamp(11px, 1.3cqw, 12px); letter-spacing: .14em; border-bottom: 1px solid rgba(53, 240, 255, .28); } .card.page .set-group:first-child { padding-top: 2px; } /* 通用里的小分组标题 */
.card.page .seg .ghost { border: 1px solid #3f3474; border-image: none; background: rgba(255, 255, 255, .03); min-width: 3.4em; padding: .45em .85em; font-size: clamp(11px, 1.4cqw, 13px); color: var(--muted); text-shadow: none; }
.card.page .seg .ghost + .ghost { margin-left: -1px; }
.card.page .seg .ghost:hover { color: var(--fg); filter: none; background: rgba(255, 255, 255, .07); }
.card.page .seg .ghost.on { background: var(--cyan); border-color: var(--cyan); color: #0b0816; text-shadow: none; }
.card.page .form input[type=range] { width: clamp(120px, 18cqw, 220px); }
.card.page .bind-grid, .card.page .skin-grid { width: 100%; }
.card.page .stats { justify-content: flex-start; }
.card.page .page-main .go { font-size: clamp(12px, 1.6cqw, 15px); padding: .2em 1em; align-self: flex-start; }
.card.page textarea.save-code { width: 100%; box-sizing: border-box; }
@container (max-width: 640px) {
  .page-body { flex-direction: column; }
  .page-tabs { width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0 8px; border-right: 0; border-bottom: 1px solid #2c2452; }
  .page-tab { width: auto; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: .7em .9em; }
  .page-tab.on { border-bottom-color: var(--cyan); background: linear-gradient(0deg, rgba(53, 240, 255, .16), transparent); }
  .page-tab:not(.page-link) + .page-link { margin-top: 0; box-shadow: -1px 0 0 #2c2452; }
  .card.page .lv-grid.ch-grid > .lv-card { flex-basis: calc((100% - clamp(6px, 1.4cqw, 12px)) / 2); }
}
/* 帮助（速查）：同一套样子，左边「操作 / 刀法」 */
.ref-panel { background: linear-gradient(180deg, #181230, #0b0818); border: 0; box-shadow: 0 0 0 1px #3c3170, 0 0 0 4px rgba(8, 6, 18, .9), 0 0 0 5px #2a2250, 0 0 0 100vmax rgba(4, 2, 12, .72); padding: 0; }
.ref-panel .ref-h { margin: 0; padding: 14px 22px 10px; border-bottom: 1px solid #2c2452; background: linear-gradient(90deg, rgba(255, 61, 139, .14), transparent 60%); align-items: center; }
.ref-panel .ref-h b { font-family: "SenzanTitle", "Noto Sans SC", sans-serif; font-weight: 400; font-size: 22px; letter-spacing: .1em; color: #fff; text-shadow: none; }
.ref-panel { height: min(680px, calc(100dvh - 32px)); display: flex; flex-direction: column; overflow: hidden; } /* 帮助：框的大小固定，换栏不变，只滚右边的内容 */
.ref-panel > .ref-h { flex: none; } .ref-panel > section.info:not([hidden]) { flex: 1; min-height: 0; }
.info.ref-tabbed { display: flex; gap: 0; min-height: 0; height: 100%; }
.info.ref-tabbed > .page-tabs { overflow-y: auto; }
.info.ref-tabbed > .page-tabs { padding: 12px 0; }
.info.ref-tabbed > .panel { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; background: none; border: 0; padding: 16px 22px 22px; }
.info.ref-tabbed > .panel[hidden] { display: none; }
.info.ref-tabbed > .panel > h2 { display: none; }
.info.ref-tabbed .keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 22px; }
.info.ref-tabbed .tips { margin: 0; padding: 0; border: 0; gap: 9px; font-size: 14px; line-height: 1.5; }
.info.ref-tabbed .moves { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 26px; }
