/* 看见真相 · 界面样式 */
:root {
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --panel: rgba(16, 18, 26, 0.92);
  --panel2: rgba(30, 34, 46, 0.95);
  --line: #3c4150;
  --gold: #ffd84a;
  --cyan: #7fe7ff;
  --text: #f2f2f2;
  --muted: #a3a9b8;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: var(--text); font-family: var(--font); -webkit-user-select: none; user-select: none; -webkit-font-smoothing: antialiased; }
#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; }
#ui { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
#ui > * { position: absolute; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
img.pix, .face img, .slot img, .itm img, #items img { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- 按钮 ---------- */
.btn {
  font-family: var(--font); font-size: 16px; font-weight: 600; color: #fff; cursor: pointer;
  padding: 9px 16px; min-height: 40px; background: #5d6170; border: 2px solid #000; border-radius: 0;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.28), inset -2px -3px 0 rgba(0, 0, 0, 0.35);
  text-shadow: 1px 1px 0 #222; pointer-events: auto; transition: background 0.08s;
}
.btn:hover { background: #6d7bc0; }
.btn:active { box-shadow: inset -2px -2px 0 rgba(255, 255, 255, 0.2), inset 2px 3px 0 rgba(0, 0, 0, 0.4); }
.btn:disabled { opacity: 0.45; cursor: default; background: #4a4d58; }
.btn.big { font-size: 20px; min-height: 50px; }
.btn.sm { font-size: 13px; min-height: 30px; padding: 4px 12px; }
.btn.on, .btn.primary { background: #3f8a4a; }
.btn.on:hover, .btn.primary:hover { background: #4fa85c; }
.btn small { display: block; font-size: 12px; font-weight: 400; opacity: 0.85; margin-top: 2px; }
.t-row { display: flex; gap: 10px; }
.t-row .btn { flex: 1; }

/* ---------- 标签 ---------- */
.tag { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 7px; border-radius: 3px; font-weight: 700; color: #fff; vertical-align: 2px; white-space: nowrap; letter-spacing: 0.5px; }
.tag-pub { background: #1e5fa8; }
.tag-court { background: #a8321e; }
.tag-heyi { background: #c9a227; color: #2a2000; }
.tag-game { background: #6b4fb3; }

/* ---------- 标志 ---------- */
.logo { text-align: center; position: relative; }
.logo .l1 { font-size: 104px; font-weight: 900; letter-spacing: 10px; color: #f4f4f4; line-height: 1.05;
  text-shadow: 0 4px 0 #9a9a9a, 0 8px 0 #6a6a6a, 0 10px 0 #000, 0 18px 30px rgba(0, 0, 0, 0.6); }
.logo .l2 { font-size: 28px; font-weight: 800; color: var(--gold); margin-top: 14px; letter-spacing: 4px; text-shadow: 2px 2px 0 #3a2c00, 0 0 20px rgba(0, 0, 0, 0.8); }
.splash { position: absolute; right: -40px; top: 92px; color: #ffff3c; font-weight: 800; font-size: 20px; transform: rotate(-16deg); text-shadow: 2px 2px 0 #3f3f00; animation: splash 0.9s ease-in-out infinite alternate; white-space: nowrap; }
@keyframes splash { from { transform: rotate(-16deg) scale(0.94); } to { transform: rotate(-16deg) scale(1.06); } }

/* ---------- 加载 ---------- */
#loading { inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; pointer-events: auto;
  background: radial-gradient(ellipse at 50% 40%, #2b3a55 0%, #121724 60%, #07090f 100%); transition: opacity 0.6s; }
#loading.gone { opacity: 0; }
.ld-box { width: min(620px, 90vw); text-align: center; }
.ld-bar { margin: 46px auto 12px; height: 14px; border: 2px solid #000; background: #2a2f3c; box-shadow: inset 0 0 0 2px #444a5a; }
.ld-bar i { display: block; height: 100%; width: 0; background: linear-gradient(#8fe07a, #4fa83c); transition: width 0.2s; }
.ld-msg { font-size: 16px; color: #dfe3ec; }
.ld-tip { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* ---------- 标题 ---------- */
#title { inset: 0; z-index: 50; display: none; pointer-events: auto; background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.55)); }
#title.on { display: block; animation: fadein 0.6s; }
.t-inner { position: absolute; left: 50%; top: 12vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7vh; }
.t-menu { width: 420px; display: flex; flex-direction: column; gap: 10px; }
.t-foot { position: absolute; left: 16px; bottom: 12px; font-size: 13px; color: #e8e8e8; text-shadow: 1px 1px 0 #000; }
.t-ver { position: absolute; right: 16px; bottom: 12px; font-size: 13px; color: #e8e8e8; text-shadow: 1px 1px 0 #000; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 选角 ---------- */
#select { inset: 0; z-index: 52; display: none; pointer-events: auto; background: rgba(6, 8, 14, 0.72); align-items: center; justify-content: center; }
#select.on { display: flex; }
.sel-box { width: min(1040px, 96vw); background: var(--panel); border: 3px solid #000; box-shadow: inset 0 0 0 2px var(--line), 0 20px 60px rgba(0, 0, 0, 0.6); padding: 20px 24px; }
.sel-box h2, .pn-head h2 { margin: 0 0 14px; color: var(--gold); font-size: 24px; text-shadow: 2px 2px 0 #3a2c00; }
.sel-main { display: flex; gap: 20px; }
.sel-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 52vh; overflow: auto; align-content: start; padding-right: 4px; }
.sel-side { width: 320px; display: flex; flex-direction: column; gap: 8px; }
.sel-side .pv-host { height: 300px; background: radial-gradient(circle at 50% 40%, #34405c, #151a26); border: 2px solid #000; }
.sel-name { font-size: 20px; font-weight: 800; color: var(--gold); }
.sel-desc { font-size: 14px; color: #d6dae4; line-height: 1.6; max-height: 120px; overflow: auto; }
.sel-modes { display: flex; gap: 12px; margin-top: 16px; }
.sel-modes .btn { flex: 1; text-align: left; }
.sel-warn { margin-top: 10px; color: #ffb37a; font-size: 14px; }
.sel-btns { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; background: #262b38; border: 2px solid #000; color: #fff; font-family: var(--font); font-size: 12px; cursor: pointer; pointer-events: auto; }
.face img { width: 64px; height: 64px; border: 2px solid #000; background: #111; }
.face span { line-height: 1.25; text-align: center; }
.face:hover { background: #343b4e; }
.face.on { background: #3f5a8a; box-shadow: inset 0 0 0 2px var(--gold); }
.face.unmet img { filter: grayscale(0.85) brightness(0.7); }
canvas.pv { display: block; cursor: grab; }

/* ---------- HUD ---------- */
#hud { inset: 0; }
#hud.off > *:not(#toasts) { display: none; }
#hud.talk #crosshair, #hud.talk #hint, #hud.talk #held { display: none; }
#crosshair { left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; position: absolute; mix-blend-mode: difference; }
#crosshair::before, #crosshair::after { content: ''; position: absolute; background: #fff; }
#crosshair::before { left: 10px; top: 0; width: 2px; height: 22px; }
#crosshair::after { left: 0; top: 10px; width: 22px; height: 2px; }
#hint { position: absolute; left: 50%; top: calc(50% + 30px); transform: translateX(-50%); padding: 5px 12px; background: rgba(0, 0, 0, 0.55); font-size: 15px; white-space: nowrap; text-shadow: 1px 1px 0 #000; }
#hint b { color: var(--gold); }
#tracker { position: absolute; left: 14px; top: 14px; max-width: 380px; padding: 9px 12px 10px; background: rgba(0, 0, 0, 0.5); border-left: 4px solid var(--gold); text-shadow: 1px 1px 0 #000; }
.tr-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cfd4de; }
.tr-year { display: inline-block; background: var(--gold); color: #1a1400; font-weight: 900; padding: 0 7px; text-shadow: none; font-size: 13px; line-height: 20px; }
.tr-goal { font-size: 17px; font-weight: 700; margin-top: 5px; line-height: 1.35; }
.tr-dist { margin-top: 5px; font-size: 14px; color: var(--cyan); display: flex; align-items: center; gap: 7px; }
.tr-arrow { display: inline-block; font-size: 15px; color: #ff4fd8; transition: transform 0.08s linear; }
#mini { position: absolute; right: 14px; top: 14px; text-align: center; text-shadow: 1px 1px 0 #000; }
#mini canvas { display: block; width: 150px; height: 150px; border: 3px solid rgba(0, 0, 0, 0.8); image-rendering: pixelated; }
.mi-zone { margin-top: 4px; font-size: 14px; font-weight: 700; }
.mi-xyz { font-size: 12px; color: #cfd4de; }
#hotbar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 0; padding: 3px; background: rgba(0, 0, 0, 0.55); border: 2px solid #000; }
.slot { position: relative; width: 52px; height: 52px; background: rgba(120, 120, 130, 0.35); border: 2px solid rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; }
.slot img { width: 38px; height: 38px; }
.slot .n { position: absolute; right: 3px; bottom: 1px; font-size: 13px; font-weight: 800; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
.slot .k { position: absolute; left: 3px; top: 1px; font-size: 10px; color: rgba(255, 255, 255, 0.55); }
.slot.sel { outline: 3px solid #fff; outline-offset: -1px; z-index: 1; background: rgba(160, 160, 170, 0.45); }
.slot.empty img { opacity: 0.35; }
#held { position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%); font-size: 16px; font-weight: 700; text-shadow: 2px 2px 0 #000; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
#held.on { opacity: 1; }
#toasts { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toast { padding: 6px 14px; background: rgba(0, 0, 0, 0.66); font-size: 15px; white-space: nowrap; animation: toastin 0.25s; transition: opacity 0.5s; text-shadow: 1px 1px 0 #000; }
.toast.out { opacity: 0; }
@keyframes toastin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
#items { position: absolute; left: calc(50% - 270px); bottom: 16px; transform: translateX(-100%); display: flex; gap: 6px; }
#items span { display: flex; align-items: center; gap: 2px; padding: 3px 6px; background: rgba(0, 0, 0, 0.55); font-size: 13px; font-weight: 700; }
#items img { width: 28px; height: 28px; }
#fps { position: absolute; right: 14px; bottom: 12px; font-size: 13px; color: #9f9; text-shadow: 1px 1px 0 #000; display: none; }
#debug { position: absolute; left: 14px; bottom: 80px; white-space: pre; font-size: 12px; font-family: Menlo, monospace; background: rgba(0, 0, 0, 0.5); padding: 6px 8px; display: none; }
#water { inset: 0; background: rgba(20, 70, 190, 0.28); display: none; }
#water.on { display: block; }
#resume { inset: 0; z-index: 25; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.35); pointer-events: auto; cursor: pointer; }
#resume.on { display: flex; }
#resume div { text-align: center; padding: 18px 30px; background: rgba(0, 0, 0, 0.6); border: 2px solid #000; }
#resume b { display: block; font-size: 22px; }
#resume small { display: block; margin-top: 6px; color: var(--muted); }

/* ---------- 横幅与成就 ---------- */
#banner { left: 0; right: 0; top: 17vh; text-align: center; opacity: 0; z-index: 12; }
#banner.on { animation: banner 3.8s ease forwards; }
.b-t { font-size: 46px; font-weight: 900; letter-spacing: 3px; text-shadow: 3px 3px 0 #000, 0 0 30px rgba(0, 0, 0, 0.7); }
.b-s { font-size: 20px; color: var(--gold); margin-top: 8px; text-shadow: 2px 2px 0 #000; }
@keyframes banner { 0% { opacity: 0; transform: translateY(-10px); } 12% { opacity: 1; transform: none; } 78% { opacity: 1; } 100% { opacity: 0; } }
#achs { right: 14px; top: 214px; display: flex; flex-direction: column; gap: 8px; z-index: 13; }
.ach { display: flex; gap: 10px; align-items: center; width: 300px; padding: 10px 12px; background: #20232c; border: 2px solid #000; box-shadow: inset 0 0 0 2px #555b6b; animation: achin 0.35s ease; transition: opacity 0.5s, transform 0.5s; }
.ach.out { opacity: 0; transform: translateX(30px); }
.ach img { width: 40px; height: 40px; image-rendering: pixelated; }
.a-k { font-size: 13px; color: var(--gold); font-weight: 800; }
.a-t { font-size: 16px; font-weight: 800; }
.a-d { font-size: 13px; color: var(--muted); }
@keyframes achin { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 对话 ---------- */
#dialog { left: 50%; bottom: 84px; transform: translateX(-50%); width: min(900px, 94vw); min-height: 150px; display: none; gap: 16px; padding: 14px 16px; z-index: 20; pointer-events: auto;
  background: var(--panel); border: 3px solid #000; box-shadow: inset 0 0 0 2px var(--line), 0 14px 40px rgba(0, 0, 0, 0.55); }
#dialog.on { display: flex; animation: dlgin 0.18s ease; }
@keyframes dlgin { from { transform: translate(-50%, 10px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.d-por { position: relative; width: 132px; height: 132px; flex: none; border: 3px solid #000; background: #111; overflow: hidden; box-shadow: 0 0 0 2px var(--gold); }
.d-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-face { position: absolute; right: 3px; bottom: 3px; width: 40px; height: 40px; border: 2px solid #000; image-rendering: pixelated; background: #111; }
.d-phone { position: absolute; left: 0; right: 0; top: 0; background: rgba(0, 160, 90, 0.9); font-size: 12px; font-weight: 800; text-align: center; display: none; }
#dialog.phone .d-phone { display: block; }
#dialog.phone .d-por { box-shadow: 0 0 0 2px #2fd07a; }
.d-body { flex: 1; position: relative; min-width: 0; }
.d-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.d-name { font-size: 20px; font-weight: 900; color: var(--gold); text-shadow: 2px 2px 0 #3a2c00; }
.d-title { font-size: 13px; color: var(--muted); }
.d-text { font-size: 19px; line-height: 1.65; margin-top: 8px; min-height: 60px; white-space: pre-wrap; }
#dialog.narr .d-name { color: var(--cyan); text-shadow: 2px 2px 0 #00303a; }
#dialog.narr .d-text { color: #e6f6ff; }
.d-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.d-choices { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.d-choice { padding: 7px 12px; background: #2a2f3e; border: 2px solid #000; font-size: 16px; cursor: pointer; }
.d-choice b { display: inline-block; width: 22px; color: var(--gold); }
.d-choice.on { background: #3f5a8a; box-shadow: inset 0 0 0 2px var(--gold); }
.d-next { position: absolute; right: 2px; bottom: -4px; color: var(--gold); font-size: 14px; animation: blink 0.8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 卡片 ---------- */
#card { inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); pointer-events: auto; }
#card.on { display: flex; }
.c-box { width: min(640px, 92vw); padding: 26px 30px 22px; text-align: center; background: linear-gradient(#232838, #161a25); border: 3px solid #000; box-shadow: inset 0 0 0 2px #4a5166, 0 20px 60px rgba(0, 0, 0, 0.7); animation: cardin 0.3s ease; }
.c-box.shard { box-shadow: inset 0 0 0 2px #3fb5d0, 0 0 60px rgba(127, 231, 255, 0.35); }
@keyframes cardin { from { transform: scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
.c-icon { width: 96px; height: 96px; image-rendering: pixelated; animation: float 1.6s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
.c-kicker { font-size: 14px; color: var(--cyan); font-weight: 800; letter-spacing: 2px; }
.c-title { font-size: 32px; font-weight: 900; color: var(--gold); margin-top: 6px; text-shadow: 2px 2px 0 #3a2c00; }
.c-sub { font-size: 16px; color: #d0d4de; margin-top: 4px; }
.c-lines { margin-top: 14px; text-align: left; }
.c-lines p { font-size: 16px; line-height: 1.7; margin: 8px 0; }
.c-foot { margin-top: 12px; font-size: 14px; color: var(--muted); }
.c-btn { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.c-btn small { color: var(--muted); font-size: 12px; }

/* ---------- 面板 ---------- */
#panel { inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(4, 6, 12, 0.62); pointer-events: auto; }
#panel.on { display: flex; }
.pn-box { width: min(1000px, 95vw); max-height: 90vh; display: flex; flex-direction: column; background: var(--panel); border: 3px solid #000; box-shadow: inset 0 0 0 2px var(--line), 0 20px 60px rgba(0, 0, 0, 0.6); animation: cardin 0.2s ease; }
.pn-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.pn-head h2 { margin: 0; }
.pn-head .x { min-height: 34px; padding: 2px 12px; }
.pn-body { padding: 14px 18px 18px; overflow: auto; }
.pn-body h3 { color: var(--gold); font-size: 16px; margin: 16px 0 8px; }
.pn-body h4 { color: var(--cyan); font-size: 14px; margin: 12px 0 4px; }
.pn-body p { line-height: 1.7; font-size: 15px; margin: 6px 0; }
.p-pause .pn-box { width: min(560px, 94vw); }
.pause-grid { display: flex; flex-direction: column; gap: 10px; }
.keys { margin-top: 16px; padding: 10px 12px; background: rgba(0, 0, 0, 0.3); border: 2px solid #000; }
.keys p { font-size: 13px !important; color: #cfd4de; margin: 4px 0 !important; }
.keys b { color: var(--gold); }

.inv-items { display: flex; flex-wrap: wrap; gap: 8px; }
.itm { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: #262b38; border: 2px solid #000; max-width: 300px; }
.itm img { width: 40px; height: 40px; }
.itm b { display: block; font-size: 14px; }
.itm span { font-size: 12px; color: var(--muted); }
.inv-tabs { display: flex; gap: 6px; margin: 14px 0 10px; flex-wrap: wrap; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, 52px); gap: 4px; max-height: 40vh; overflow: auto; padding: 4px; background: rgba(0, 0, 0, 0.25); border: 2px solid #000; }
.inv-grid .slot, .inv-hot .slot { cursor: pointer; }
.inv-grid .slot:hover, .inv-hot .slot:hover { background: rgba(160, 170, 200, 0.5); }
.inv-hint { margin: 12px 0 6px; font-size: 13px; color: var(--muted); }
.inv-hot { display: flex; gap: 4px; }

.jr-now { padding: 10px 12px; background: rgba(0, 0, 0, 0.3); border-left: 4px solid var(--gold); }
.jr-now b { font-size: 17px; margin-left: 6px; }
.jr-goal { margin-top: 6px; font-size: 15px; }
.jr-stats { margin-top: 8px; font-size: 14px; color: var(--muted); }
.jr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shard { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-bottom: 1px solid #2c3140; opacity: 0.55; }
.shard.got { opacity: 1; }
.shard img { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.shard:not(.got) img { filter: grayscale(1); }
.sh-t { font-weight: 800; font-size: 15px; }
.sh-d { font-size: 13px; color: #d6dae4; margin-top: 3px; line-height: 1.55; }
.sh-p { margin-left: 8px; font-size: 11px; background: #2f7a45; padding: 0 6px; font-weight: 700; }
.achs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ach-i { display: flex; gap: 8px; align-items: center; padding: 6px; background: #20242f; border: 2px solid #000; opacity: 0.45; }
.ach-i.got { opacity: 1; }
.ach-i img { width: 28px; height: 28px; image-rendering: pixelated; }
.ach-i:not(.got) img { filter: grayscale(1); }
.ach-i b { display: block; font-size: 13px; }
.ach-i span { font-size: 11px; color: var(--muted); }
.timeline { max-height: 46vh; overflow: auto; padding-right: 6px; }
.tl { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid #2c3140; font-size: 13px; line-height: 1.55; }
.tl b { flex: none; width: 92px; color: var(--cyan); }
.legend { font-size: 13px !important; line-height: 2 !important; }

.map-wrap { display: flex; gap: 18px; }
.map-box { flex: none; }
.map-cv { width: min(64vh, 620px); height: min(64vh, 620px); border: 3px solid #000; image-rendering: pixelated; display: block; }
.map-side { flex: 1; min-width: 180px; }
.ft { display: flex; flex-direction: column; gap: 6px; }
.ft .btn small { display: inline; margin-left: 6px; }
.legend2 { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.legend2 i { display: inline-block; width: 12px; height: 12px; border: 2px solid #000; margin-right: 8px; vertical-align: -2px; }

.set .row { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid #2c3140; }
.set .row > span { width: 170px; font-size: 15px; }
.set .row input[type=range] { width: 260px; pointer-events: auto; accent-color: var(--gold); }
.set .row em { font-style: normal; font-size: 13px; color: var(--muted); }

.cx { display: flex; gap: 18px; }
.cx-list { width: 430px; flex: none; max-height: 72vh; overflow: auto; padding-right: 6px; }
.cx-list h3 { margin-top: 4px; }
.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cx-detail { flex: 1; min-width: 0; max-height: 72vh; overflow: auto; }
.cx-top { display: flex; gap: 12px; align-items: flex-start; }
.cx-top .pv-host { width: 260px; height: 300px; flex: none; background: radial-gradient(circle at 50% 40%, #34405c, #151a26); border: 2px solid #000; }
.cx-ref { width: 130px; text-align: center; font-size: 12px; color: var(--muted); }
.cx-ref img { width: 130px; height: 130px; object-fit: cover; border: 2px solid #000; display: block; margin-bottom: 4px; }
.cx-ref.none span { display: flex; align-items: center; justify-content: center; height: 130px; border: 2px dashed #555; }
.cx-name { font-size: 22px; font-weight: 900; color: var(--gold); margin-top: 10px; }
.cx-title { font-size: 13px; color: var(--muted); }
.cx-detail .q { font-style: italic; color: #e6e9f0; }
.cx-detail .btn { margin-top: 8px; }
.about ul.src, .cr ul.src { padding-left: 20px; margin: 6px 0; }
.about li, .cr li { font-size: 13px; line-height: 1.7; color: #d6dae4; }

/* ---------- 片尾 ---------- */
#credits { inset: 0; z-index: 65; display: none; background: rgba(0, 0, 0, 0.88); overflow: hidden; pointer-events: auto; }
#credits.on { display: block; animation: fadein 1s; }
.cr-roll { position: absolute; left: 50%; width: min(720px, 92vw); margin-left: calc(min(720px, 92vw) / -2); text-align: center; will-change: transform; }
.cr .logo .l1 { font-size: 72px; }
.cr .logo .l2 { font-size: 22px; }
.cr h3 { color: var(--gold); margin: 40px 0 12px; font-size: 20px; }
.cr p { font-size: 16px; line-height: 1.8; margin: 8px 0; }
.cr ul.src { text-align: left; display: inline-block; }
.cr-q { font-size: 22px !important; margin-top: 40px !important; }
.cr-end { font-size: 34px !important; font-weight: 900; margin: 80px 0 40vh !important; color: var(--gold); }
.cr-skip { position: absolute; right: 18px; bottom: 18px; }

/* ---------- 渐变 ---------- */
#fade { inset: 0; background: #000; opacity: 0; transition: opacity 0.4s; z-index: 80; }
#fade.on { opacity: 1; }

@media (max-width: 1100px) {
  .logo .l1 { font-size: 76px; }
  .splash { right: -24px; top: 50px; font-size: 16px; }
  .cx { flex-direction: column; }
  .cx-list { width: auto; max-height: 30vh; }
  .faces { grid-template-columns: repeat(6, 1fr); }
  .map-wrap { flex-direction: column; }
  .jr-cols { grid-template-columns: 1fr; }
  #items { left: 14px; bottom: 80px; transform: none; }
}

/* 钱包入口在标题菜单和调查基金内共用同一连接。 */
.title-wallet { position: absolute; top: 20px; right: 22px; }
.p-wallet .pn-box { width: min(480px, 90vw); }
.p-wallet .pn-body { display: grid; gap: 8px; overflow-wrap: anywhere; }

.cx-ref img.wordmark, .d-photo.wordmark { object-fit: contain; background: #fff; }

.city-directory select { display: block; width: 100%; padding: 6px 4px; font: inherit; color: #fff; background: #252a36; border: 1px solid var(--line); }
.city-directory { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.city-directory .btn { margin: 2px 4px 2px 0; }
