/* 首杀 · 世界页（线上第一步：只逛不玩。Fable，2026-11-14）
   依赖设计系统 /design/tokens.css、firstblood.css，顶栏的账号那一段是 /account/ 的。自己的类都以 wd- 开头。
   三种摆法由 body[data-mode] 定（world.js 按窗口算）：wide 电脑和平板横着；tall 手机竖着；low 手机横着。
   手感照艺人页的「门槛翻页」：每一级屏幕底下一条门槛（下一级的颜色，纯平铺，上沿 3px 亮边），
   跨门槛 = 色块 520ms 涨满 → 亮一拍大标题 → 560ms 从顶上离场。 */

:root {
  --wd-top: 44px;          /* 走进去以后，全站顶栏底下多出来的那条窄的：你在哪儿、几点、线索本 */
  --wd-y: 112px;           /* 舞台顶边离屏幕顶多远：world.js 量了写进来（顶栏在手机上是两行，高度不固定） */
  --wd-sill: 72px;         /* 门槛：电脑 72 / 竖屏 56 / 横屏 44（跟艺人页一个数） */
  --wd-ink-on: #0a0d0f;    /* 门槛和色块上的字：地方的颜色都是亮的霓虹色，字用夜色 */
  --wd-rise: 520ms;  --wd-rise-ease: cubic-bezier(.25, 1, .5, 1);    /* 色块涨上来：ease-out-quart */
  --wd-leave: 560ms; --wd-leave-ease: cubic-bezier(.65, 0, .2, 1);   /* 盖满以后离场 */
  --wd-gold: #d8b25a;      /* 旧金：董事会那间屋的金是二手的，不用荣誉金 #f2c14e */
}
body[data-mode="tall"] { --wd-top: 44px; --wd-sill: 56px; }
body[data-mode="low"] { --wd-top: 36px; --wd-sill: 44px; }

html, body { height: 100%; }
body.wd { margin: 0; height: 100dvh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); overscroll-behavior: none; }
.wd [hidden] { display: none !important; }
.wd button { -webkit-tap-highlight-color: transparent; }

/* ───────── 顶栏：全站壳子（header.fb-shell，一直是细条）每一级都在；走进去以后，底下多一条窄的 ───────── */
body.wd > .fb-shell { grid-row: 1; }
.wd-top { grid-row: 2; display: none; align-items: center; gap: 12px; height: var(--wd-top); padding: 0 16px; background: rgba(10,13,15,.9); border-bottom: 1px solid var(--fb-line); position: relative; z-index: 5; }
body:not([data-view="city"]) .wd-top { display: flex; }
.wd-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font: 500 14px/20px var(--font-body); color: var(--fb-ink-3); white-space: nowrap; overflow: hidden; }
.wd-crumbs a { color: var(--fb-ink-2); padding: 8px 2px; }
.wd-crumbs a:hover { color: var(--fb-ink); }
.wd-crumbs b { color: var(--fb-ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.wd-crumbs i { font-style: normal; color: var(--fb-ink-off); }
.wd-clock { margin: 0; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius-sm); font: 500 12px/16px var(--font-mono); color: var(--fb-ink-2); white-space: nowrap; flex: none; }
.wd-clock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 8px #ffd27a; }
body[data-time="night"] .wd-clock::before { background: #8fb4ff; box-shadow: 0 0 8px #8fb4ff; }
.wd-clock em { font-style: normal; color: var(--fb-ink-3); }
.wd-bookbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--fb-line-strong); border-radius: var(--fb-radius-sm); font: 500 13px/18px var(--font-body); color: var(--fb-ink); flex: none; }
.wd-bookbtn .fb-ico { width: 18px; height: 18px; }
.wd-bookbtn b { font: 400 12px/16px var(--font-latin); min-width: 18px; text-align: center; padding: 1px 4px; background: var(--fb-surface-3); border-radius: 3px; color: var(--fb-ink-2); }
.wd-bookbtn.is-new b { background: var(--fb-neon-cyan); color: var(--fb-on-cyan); }
.wd-bookbtn.is-bump { animation: wd-bump 420ms var(--fb-ease-pop); }
@keyframes wd-bump { 40% { transform: scale(1.12); } }
body[data-mode="tall"] .wd-bookbtn span { display: none; }
body[data-mode="tall"] .wd-clock em, body[data-mode="tall"] .wd-clock span { display: none; }
body[data-mode="low"] .wd-clock, body[data-mode="low"] .wd-bookbtn { height: 28px; }

/* ───────── 舞台和每一级 ───────── */
.wd-stage { grid-row: 3; position: relative; overflow: hidden; background: var(--fb-night-deep); }
.wd-stage:focus, .wd-stage:focus-visible { outline: none; box-shadow: none; }   /* 换了一屏，焦点落在舞台上，不画圈 */
.wd-view { position: absolute; inset: 0; display: block; }

/* 门槛：下一级露在屏幕底的一截 */
/* 取色照艺人页定稿：色块 = 本色提亮一档；字色按色块亮度自动取深浅；上沿 3px 亮边比色块亮 .1。
   老一点的浏览器不认 oklch(from …)：退回本色配夜色的字（地方的颜色都是亮的霓虹色，深字读得清）。 */
.wd-sill, .wd-wipe { --blk: var(--z, #ff2fd1); --blk-ink: var(--wd-ink-on); --blk-edge: rgba(255,255,255,.5); }
@supports (color: oklch(from red l c h)) {
  .wd-sill, .wd-wipe { --blk: oklch(from var(--z, #ff2fd1) calc(l * .86 + .09) min(.21, calc(c * 1.1)) h); --blk-ink: oklch(from var(--blk) clamp(.2, calc((.66 - l) * 100), .99) .04 h); --blk-edge: oklch(from var(--blk) calc(l + .1) c h); }
}
.wd-sill { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: var(--wd-sill); display: flex; align-items: center; gap: 14px; padding: 0 28px; background: var(--blk); color: var(--blk-ink); box-shadow: inset 0 3px 0 var(--blk-edge), 0 -10px 28px rgba(0,0,0,.45); text-align: left; transition: transform var(--fb-dur-press), filter var(--fb-dur-state); }
.wd-sill small { font: 700 12px/16px var(--font-body); letter-spacing: .12em; opacity: .72; flex: none; }
.wd-sill b { font: 400 30px/36px var(--font-display); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-sill span { font: 500 14px/20px var(--font-body); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wd-sill svg { margin-left: auto; width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.wd-sill:active { transform: translateY(3px); }
@media (hover: hover) { .wd-sill:hover { filter: brightness(1.08); } .wd-sill:hover svg { transform: translateX(4px); } }
.wd-sill svg { transition: transform var(--fb-dur-state) var(--fb-ease-out); }
.wd-sill[disabled] { background: var(--fb-surface-3); color: var(--fb-ink-3); box-shadow: inset 0 3px 0 rgba(255,255,255,.08); cursor: default; }
.wd-sill[disabled] svg { display: none; }
body[data-mode="tall"] .wd-sill { padding: 0 16px; gap: 10px; } body[data-mode="tall"] .wd-sill b { font-size: 24px; line-height: 30px; }
body[data-mode="low"] .wd-sill { padding: 0 16px; } body[data-mode="low"] .wd-sill b { font-size: 22px; line-height: 28px; }
body[data-mode="tall"] .wd-sill span { display: none; }

/* 跨门槛的那块色 */
.wd-wipe { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--blk); color: var(--blk-ink); box-shadow: inset 0 3px 0 var(--blk-edge); transform: translateY(101%); pointer-events: none; }
.wd-wipe small { font: 700 13px/18px var(--font-body); letter-spacing: .16em; opacity: .7; }
.wd-wipe b { font: 400 clamp(56px, 12vw, 132px)/1.05 var(--font-display); letter-spacing: .04em; text-align: center; padding: 0 16px; }
.wd-wipe.is-from-top { transform: translateY(-101%); }
.wd-wipe.is-cover { transform: none; transition: transform var(--wd-rise) var(--wd-rise-ease); pointer-events: auto; }
.wd-wipe.is-off { transform: translateY(-101%); transition: transform var(--wd-leave) var(--wd-leave-ease); }
.wd-wipe.is-off.is-from-top { transform: translateY(101%); }

/* ───────── 第零级：整座城 ───────── */
.wd-city__body { position: absolute; inset: 0 0 var(--wd-sill) 0; display: grid; grid-template-columns: auto minmax(0, 520px); gap: 56px; padding: 24px 48px; align-items: stretch; justify-content: center; overflow-y: auto; overscroll-behavior: contain; }  /* 屏矮、字放大时右边那栏比一屏高：能滚，不被门槛压住（老板 11-15 04:2x 截图：底下的人被挡住了没法点） */
.wd-sec { position: relative; height: 100%; aspect-ratio: 1000 / 1792; border-radius: var(--fb-radius-lg); overflow: hidden; background: #000; box-shadow: var(--fb-shadow-pop); flex: none; }
.wd-sec > img { width: 100%; height: 100%; object-fit: cover; }
.wd-band { position: absolute; left: 0; right: 0; display: flex; align-items: flex-end; padding: 0 0 6px 8px; transition: background var(--fb-dur-state); }
.wd-band span { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 8px; background: rgba(10,13,15,.78); border-left: 3px solid var(--z); font: 700 13px/20px var(--font-body); color: var(--fb-ink); }
.wd-band span i { font: 400 10px/14px var(--font-latin); font-style: normal; color: var(--z); }
.wd-band.is-on { outline: 2px solid var(--z); outline-offset: -2px; box-shadow: 0 0 0 2000px rgba(5,6,8,.5); z-index: 1; }
.wd-band.is-on span { background: var(--z); color: var(--wd-ink-on); } .wd-band.is-on span i { color: var(--wd-ink-on); }
@media (hover: hover) { .wd-band:hover { background: color-mix(in srgb, var(--z) 16%, transparent); } }
.wd-city__side { display: flex; flex-direction: column; gap: 14px; max-width: 520px; min-width: 0; align-self: start; align-self: safe center; }  /* 高过一屏时从顶上排起（safe），不往上被切 */
.wd-city__side h1 { font-size: 64px; line-height: 68px; }
.wd-lead { font: 400 17px/28px var(--font-body); color: var(--fb-ink-2); text-wrap: pretty; }
.wd-floors { display: grid; gap: 2px; margin-top: 6px !important; }
.wd-floors button { display: grid; grid-template-columns: 30px 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: var(--fb-radius-sm); border-left: 3px solid transparent; color: var(--fb-ink-2); font: 500 14px/20px var(--font-body); }
.wd-floors button i { font: 400 11px/14px var(--font-latin); font-style: normal; color: var(--fb-ink-3); }
.wd-floors button b { font-weight: 700; color: var(--fb-ink); }
.wd-floors button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fb-ink-3); font-size: 13px; }
.wd-floors button em { font: 500 11px/16px var(--font-body); font-style: normal; color: var(--fb-ink-off); }
.wd-floors button.is-on { background: var(--fb-surface-2); border-left-color: var(--z); }
.wd-floors button.is-open em { color: var(--fb-neon-green); }
@media (hover: hover) { .wd-floors button:hover { background: var(--fb-surface-1); } }
.wd-fcard { padding: 16px 18px; border: 1px solid var(--fb-line); border-top: 3px solid var(--z); border-radius: var(--fb-radius-lg); background: var(--fb-surface-1); display: grid; gap: 8px; }
.wd-fcard h2 { font: 400 28px/34px var(--font-display); letter-spacing: .02em; }
.wd-fcard h2 small { font: 500 12px/16px var(--font-body); color: var(--fb-ink-3); margin-left: 8px; letter-spacing: 0; }
.wd-fcard p { color: var(--fb-ink-2); font-size: 14px; line-height: 22px; }
.wd-fcard dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; line-height: 20px; }
.wd-fcard dt { color: var(--fb-ink-3); } .wd-fcard dd { margin: 0; color: var(--fb-ink); }
.wd-from { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.wd-from span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fb-ink-2); }

body[data-mode="tall"] .wd-city__body { display: flex; flex-direction: column; overflow-y: auto; padding: 16px 16px 0; gap: 0; justify-content: flex-start; }
body[data-mode="tall"] .wd-city__head { order: -2; } body[data-mode="tall"] .wd-lead { order: -1; margin-bottom: 14px; }
body[data-mode="tall"] .wd-city__side { display: contents; }
body[data-mode="tall"] .wd-city__head { margin-bottom: 12px; }
body[data-mode="tall"] .wd-city__side h1 { font-size: 40px; line-height: 46px; }
body[data-mode="tall"] .wd-lead { font-size: 15px; line-height: 24px; }
body[data-mode="tall"] .wd-sec { width: 100%; height: auto; }
body[data-mode="tall"] .wd-floors { display: none; }
body[data-mode="tall"] .wd-fcard { position: sticky; bottom: 0; margin: -8px -16px 0; border-radius: 12px 12px 0 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: 0 -18px 30px rgba(0,0,0,.6); z-index: 2; padding: 12px 16px 14px; }
body[data-mode="tall"] .wd-fcard h2 { font-size: 24px; line-height: 30px; }
body[data-mode="low"] .wd-city__body { gap: 20px; padding: 10px 16px; }
body[data-mode="low"] .wd-city__side { gap: 8px; max-width: none; align-self: stretch; }
body[data-mode="low"] .wd-city__head { display: flex; align-items: baseline; gap: 12px; } body[data-mode="low"] .wd-city__head .fb-kicker, body[data-mode="low"] .wd-lead { display: none; }
body[data-mode="low"] .wd-city__side h1 { font-size: 28px; line-height: 32px; }
body[data-mode="low"] .wd-floors { grid-template-columns: 1fr 1fr; margin-top: 0 !important; }
body[data-mode="low"] .wd-floors button { height: 32px; grid-template-columns: 24px minmax(0, 1fr) auto; } body[data-mode="low"] .wd-floors button span { display: none; }
body[data-mode="low"] .wd-fcard { padding: 8px 12px; gap: 2px; } body[data-mode="low"] .wd-fcard h2 { font-size: 20px; line-height: 26px; } body[data-mode="low"] .wd-fcard dl, body[data-mode="low"] .wd-from { display: none; }
body[data-mode="low"] .wd-band span { font-size: 10px; line-height: 14px; padding: 0 4px; } body[data-mode="low"] .wd-band span i { display: none; } body[data-mode="low"] .wd-band { padding: 0 0 2px 2px; }

/* ───────── 第一级：一层的地图 ───────── */
.wd-floor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; padding-bottom: var(--wd-sill); }
.wd-map { position: relative; overflow: auto; display: flex; padding: 16px; scrollbar-width: none; background: radial-gradient(120% 90% at 50% 40%, #11161a 0%, var(--fb-night-deep) 70%); }
.wd-map::-webkit-scrollbar { display: none; }
/* 地图尽量整张摆进窗口；窗口太矮（小笔记本）就不再往下缩，留 800 宽，上下滚着看。margin: auto 让它有空的时候居中、放不下的时候从头排（不会有滚不到的一截）。
   --px：牌子和头像跟着地图一起缩放的单位，地图 1000 宽的时候是 1px（world.js 的 scaleMap 量了写进来），这样不管地图多大，牌子之间的相对位置都一样 */
.wd-map__canvas { --px: 1px; position: relative; width: max(800px, min(100%, calc((100dvh - var(--wd-y) - var(--wd-sill) - 32px) * 1.3396))); aspect-ratio: 2000 / 1493; flex: none; margin: auto; }
.wd-map__canvas > img { width: 100%; height: 100%; border-radius: 8px; transition: filter 600ms; user-select: none; -webkit-user-drag: none; }
.wd-plate { position: absolute; transform: translate(-50%, -100%); display: grid; justify-items: start; padding: calc(4 * var(--px)) calc(9 * var(--px)) calc(5 * var(--px)) calc(8 * var(--px)); background: rgba(10,13,15,.88); border: 1px solid color-mix(in srgb, var(--z) 55%, transparent); border-left: 3px solid var(--z); border-radius: 3px; white-space: nowrap; z-index: 2; transition: filter var(--fb-dur-state), background var(--fb-dur-state), border-color var(--fb-dur-state); }
.wd-plate::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: calc(12 * var(--px)); background: var(--z); }
.wd-plate::before { content: ""; position: absolute; left: 50%; top: calc(100% + 10 * var(--px)); width: 7px; height: 7px; margin-left: -3px; background: var(--z); }
.wd-plate b { font: 700 calc(13 * var(--px))/calc(18 * var(--px)) var(--font-body); color: var(--fb-ink); }
.wd-plate small { font: 400 calc(11 * var(--px))/calc(14 * var(--px)) var(--font-body); color: var(--fb-ink-3); }
/* 牌子挂在点的下面：别盖住这块地方本身（糖糖那块最亮的屏、包子摊的蒸笼） */
.wd-plate--below { transform: translate(-50%, calc(16 * var(--px))); }
.wd-plate--below::after { top: auto; bottom: 100%; }
.wd-plate--below::before { top: auto; bottom: calc(100% + 10 * var(--px)); }
.wd-plate.is-on { background: var(--z); border-color: var(--z); z-index: 3; }
.wd-plate.is-on b, .wd-plate.is-on small { color: var(--wd-ink-on); }
.wd-plate--gold { border-color: var(--wd-gold); box-shadow: 0 0 18px rgba(216,178,90,.45); }
.wd-plate--gold::before { box-shadow: 0 0 10px 3px rgba(255,205,110,.9); animation: wd-breathe var(--fb-dur-breathe) ease-in-out infinite; }
/* 11-14 老板：点牌子「抖动太不自然……卡几下」——悬停时牌子上挪 3px，鼠标停在边上就一进一出来回抖；改成牌子不动，只亮、描边换色 */
@media (hover: hover) { .wd-plate:hover { filter: brightness(1.18); border-color: var(--z); } }
.wd-plate:active { filter: brightness(.92); }
.wd-face { position: absolute; width: calc(30 * var(--px)); height: calc(30 * var(--px)); margin: calc(-15 * var(--px)) 0 0 calc(-15 * var(--px)); border-radius: 50%; box-shadow: 0 0 0 2px var(--a), 0 2px 8px rgba(0,0,0,.7); z-index: 1; transition: transform var(--fb-dur-state) var(--fb-ease-out); }
.wd-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wd-face.is-zz::after { content: "z"; position: absolute; right: -7px; top: -9px; font: 400 12px/1 var(--font-latin); color: #b9d0ff; text-shadow: 0 1px 0 #000; }
.wd-face.is-zz img { filter: brightness(.6) saturate(.6); }
@media (hover: hover) { .wd-face:hover { transform: scale(1.18); z-index: 4; } }
.wd-map__hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(10,13,15,.82); border: 1px solid var(--fb-line); color: var(--fb-ink-2); font-size: 12px; line-height: 18px; pointer-events: none; display: none; z-index: 3; white-space: nowrap; }
@keyframes wd-breathe { 50% { opacity: .45; } }

.wd-side { overflow-y: auto; padding: 22px 22px 28px; border-left: 1px solid var(--fb-line); background: var(--fb-night); display: flex; flex-direction: column; gap: 16px; }
.wd-side__head h2 { font: 400 40px/46px var(--font-display); letter-spacing: .02em; color: var(--fb-tube); text-shadow: var(--fb-glow-magenta); }
.wd-side__head p { margin-top: 6px; color: var(--fb-ink-2); font-size: 14px; line-height: 22px; }
.wd-now { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--fb-line); border-radius: var(--fb-radius-md); font-size: 13px; line-height: 20px; color: var(--fb-ink-2); }
.wd-now b { color: var(--fb-ink); font-weight: 700; }
.wd-now a { color: var(--fb-ink); border-bottom: 1px solid var(--fb-line-strong); margin-left: 6px; white-space: nowrap; }
.wd-pcard { display: grid; gap: 10px; padding: 0 0 14px; border-bottom: 1px solid var(--fb-line); }
.wd-pcard__img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--fb-radius-md); overflow: hidden; background: #000; border-bottom: 3px solid var(--z); }
.wd-pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.wd-pcard h3 { font: 400 28px/34px var(--font-display); letter-spacing: .02em; }
.wd-pcard h3 small { font: 500 12px/16px var(--font-body); color: var(--z); margin-left: 8px; letter-spacing: 0; }
.wd-pcard p { color: var(--fb-ink-2); font-size: 14px; line-height: 22px; text-wrap: pretty; }
.wd-who { display: grid; gap: 8px; }
.wd-who__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; }
.wd-who__row b { display: block; font-weight: 700; color: var(--fb-ink); font-size: 14px; line-height: 20px; }
.wd-who__row > span:last-child > span { display: block; color: var(--fb-ink-2); font-size: 13px; line-height: 19px; }
.wd-who__row u { text-decoration: none; color: var(--fb-ink); border-bottom: 1px solid var(--fb-line-strong); }
.wd-who__row .fb-avatar { box-shadow: 0 0 0 2px var(--a); }
.wd-none { color: var(--fb-ink-3); font-size: 13px; }
.wd-plist { display: grid; gap: 2px; }
.wd-plist button { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 38px; padding: 4px 8px; border-radius: var(--fb-radius-sm); font-size: 14px; color: var(--fb-ink-2); }
.wd-plist button > i { width: 8px; height: 8px; background: var(--z); }
.wd-plist button b { color: var(--fb-ink); font-weight: 500; } .wd-plist button small { color: var(--fb-ink-3); font-size: 12px; margin-left: 6px; }
.wd-plist button.is-on { background: var(--fb-surface-2); }
@media (hover: hover) { .wd-plist button:hover { background: var(--fb-surface-1); } }
.wd-plist .fb-avatar { --s: 22px; }
.wd-h { font: 700 12px/16px var(--font-body); letter-spacing: .12em; color: var(--fb-ink-3); }

body[data-mode="tall"] .wd-floor { display: block; padding-bottom: 0; }
body[data-mode="tall"] .wd-map { position: absolute; inset: 0 0 calc(var(--wd-sill) + 132px) 0; display: block; padding: 60px 40px 60px; }
body[data-mode="tall"] .wd-map__canvas { width: 1000px; margin: 0; }
body[data-mode="tall"] .wd-map__hint { display: block; top: 10px; }
body[data-mode="tall"] .wd-side { position: absolute; left: 0; right: 0; bottom: var(--wd-sill); height: 132px; padding: 10px 14px; border-left: 0; border-top: 1px solid var(--fb-line); overflow: hidden; gap: 0; }
body[data-mode="tall"] .wd-side__head, body[data-mode="tall"] .wd-now, body[data-mode="tall"] .wd-plist, body[data-mode="tall"] .wd-side > .wd-h, body[data-mode="tall"] .wd-pcard p, body[data-mode="tall"] .wd-pcard .wd-h { display: none; }
body[data-mode="tall"] .wd-pcard { grid-template-columns: 148px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 4px; border: 0; padding: 0; align-items: start; }
body[data-mode="tall"] .wd-pcard__img { grid-row: 1 / 3; }
body[data-mode="tall"] .wd-pcard h3 { font-size: 22px; line-height: 28px; } body[data-mode="tall"] .wd-pcard h3 small { display: block; margin: 0; }
body[data-mode="tall"] .wd-pcard .wd-who__row > span:last-child > span { display: none; } body[data-mode="tall"] .wd-who { display: flex; flex-wrap: wrap; gap: 4px 10px; } body[data-mode="tall"] .wd-pcard .wd-who__row { gap: 6px; } body[data-mode="tall"] .wd-pcard .wd-who__row .fb-avatar { --s: 24px; }
body[data-mode="low"] .wd-floor { grid-template-columns: minmax(0, 1fr) 290px; }
body[data-mode="low"] .wd-map { display: block; padding: 40px 30px; } body[data-mode="low"] .wd-map__canvas { width: 900px; margin: 0; }
body[data-mode="low"] .wd-side { padding: 10px 14px 14px; gap: 10px; } body[data-mode="low"] .wd-side__head, body[data-mode="low"] .wd-now { display: none; }
body[data-mode="low"] .wd-pcard h3 { font-size: 22px; line-height: 28px; } body[data-mode="low"] .wd-pcard__img { display: none; }

/* ───────── 第二级：一个地方 ───────── */
.wd-scene { --zone: var(--fb-neon-cyan); }
.wd-pan { position: absolute; inset: 0 0 var(--wd-sill) 0; overflow: hidden; background: #000; }
.wd-pic { position: absolute; }
.wd-pic > img { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.wd-pic.is-peek > img { filter: brightness(.5) saturate(.7); }
.wd-pic.is-peek::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(0,0,0,.55) 0 2px, transparent 2px 14px), repeating-linear-gradient(-45deg, rgba(0,0,0,.55) 0 2px, transparent 2px 14px); pointer-events: none; }
.wd-pan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to top, rgba(5,6,8,.85), transparent); pointer-events: none; }
/* 能点的东西：青色呼吸圈（青＝看这里） */
.wd-hs { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; z-index: 2; }
.wd-hs i { width: 14px; height: 14px; border-radius: 50%; background: var(--fb-neon-cyan); box-shadow: 0 0 0 3px rgba(10,13,15,.7), 0 0 12px var(--fb-neon-cyan); position: relative; transition: transform var(--fb-dur-state) var(--fb-ease-pop); }
.wd-hs i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--fb-neon-cyan); opacity: .7; animation: wd-ring var(--fb-dur-breathe) ease-out infinite; }
@keyframes wd-ring { from { transform: scale(.5); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.wd-hs.is-seen i { background: var(--fb-ink-2); box-shadow: 0 0 0 3px rgba(10,13,15,.7); } .wd-hs.is-seen i::after { display: none; }
.wd-hs.is-on i { transform: scale(1.35); background: var(--fb-tube); }
.wd-hs--gold i { background: #ffd27a; box-shadow: 0 0 0 3px rgba(10,13,15,.6), 0 0 22px 6px rgba(255,200,100,.8); } .wd-hs--gold i::after { border-color: #ffd27a; }
@media (hover: hover) { .wd-hs:hover i { transform: scale(1.25); } }
/* 物件的小卡 */
.wd-pop { position: absolute; z-index: 6; width: min(340px, calc(100% - 24px)); padding: 14px 16px 14px; border: 1px solid var(--fb-line-strong); border-radius: var(--fb-radius-lg); background: rgba(10,13,15,.95); box-shadow: var(--fb-shadow-pop); display: grid; gap: 8px; animation: wd-pop var(--fb-dur-enter) var(--fb-ease-out); }
@keyframes wd-pop { from { opacity: 0; transform: translateY(6px); } }
.wd-pop h4 { margin: 0; font: 700 16px/24px var(--font-body); color: var(--fb-ink); padding-right: 28px; }
.wd-pop p { margin: 0; font-size: 15px; line-height: 25px; color: var(--fb-ink-2); text-wrap: pretty; }
.wd-pop__x { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; color: var(--fb-ink-3); font-size: 20px; line-height: 36px; text-align: center; }
.wd-pop__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wd-clue { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--fb-radius-xs); background: var(--fb-cyan-tint); color: var(--fb-neon-cyan); font: 500 12px/18px var(--font-body); }
.wd-clue--lock { background: var(--fb-surface-3); color: var(--fb-ink-3); }
.wd-clue svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
/* 留在桌上的条子（人不在的时候） */
.wd-note { position: absolute; z-index: 2; transform: translate(-50%, -50%) rotate(-2deg); width: min(300px, 46%); padding: 12px 14px; background: #ece4cf; color: #1d1a14; border-radius: 2px; box-shadow: 0 10px 24px rgba(0,0,0,.6); font-size: 14px; line-height: 22px; }
.wd-note b { display: block; font-weight: 700; font-size: 12px; letter-spacing: .08em; color: #6a5f47; margin-bottom: 2px; }

/* 这个地方的卡：谁在、能干什么、这儿发生过的事 */
.wd-card { position: absolute; z-index: 3; top: 20px; width: 372px; max-height: calc(100% - var(--wd-sill) - 40px); overflow-y: auto; padding: 18px 20px 20px; border: 1px solid var(--fb-line); border-top: 3px solid var(--zone); border-radius: var(--fb-radius-lg); background: rgba(10,13,15,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--fb-shadow-pop); display: grid; gap: 14px; align-content: start; scrollbar-width: thin; }
.wd-card--right { right: 20px; } .wd-card--left { left: 20px; }
.wd-card__k { font: 700 12px/16px var(--font-body); letter-spacing: .12em; color: var(--zone); }
.wd-card h1 { font: 400 40px/46px var(--font-display); letter-spacing: .02em; color: var(--fb-tube); text-shadow: 0 0 2px #fff, 0 0 12px var(--zone), 0 0 36px color-mix(in srgb, var(--zone) 55%, transparent); text-wrap: balance; }
.wd-card__line { color: var(--fb-ink-2); font-size: 15px; line-height: 25px; text-wrap: pretty; }
.wd-card section { display: grid; gap: 8px; }
.wd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-last { font-size: 14px; line-height: 22px; color: var(--fb-ink-2); padding-left: 10px; border-left: 2px solid var(--fb-line-strong); }
.wd-last a { color: var(--fb-ink); border-bottom: 2px solid var(--fb-line-strong); margin-left: 4px; white-space: nowrap; }
.wd-exits { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-exits button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--fb-line-strong); border-radius: var(--fb-radius-sm); font-size: 13px; color: var(--fb-ink); }
.wd-exits button i { width: 7px; height: 7px; background: var(--z); }
@media (hover: hover) { .wd-exits button:hover { background: var(--fb-surface-2); border-color: var(--z); } }
.wd-find { font-size: 13px; line-height: 20px; color: var(--fb-ink-3); }
.wd-find b { color: var(--fb-neon-cyan); font-weight: 500; }
/* 她不说的事：三道门的小牌 */
.wd-doors { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px dashed var(--fb-line-strong); border-radius: var(--fb-radius-md); text-align: left; width: 100%; }
.wd-doors .wd-doors__d { display: flex; gap: 4px; }
.wd-doors__d i { width: 14px; height: 20px; border: 2px solid var(--fb-ink-3); border-radius: 7px 7px 1px 1px; position: relative; }
.wd-doors__d i::after { content: ""; position: absolute; right: 2px; top: 9px; width: 2px; height: 2px; background: var(--fb-ink-3); }
.wd-doors__d i.is-ready { border-color: var(--fb-neon-cyan); animation: wd-breathe var(--fb-dur-breathe) ease-in-out infinite; }
.wd-doors b { display: block; font-size: 13px; line-height: 18px; color: var(--fb-ink); font-weight: 700; } .wd-doors > span > span { display: block; font-size: 12px; line-height: 18px; color: var(--fb-ink-3); }
.wd-doors em { font: 400 12px/16px var(--font-latin); font-style: normal; color: var(--fb-neon-cyan); }
@media (hover: hover) { .wd-doors:hover { border-color: var(--fb-ink-2); } }

body[data-mode="tall"] .wd-pan { inset: 0 0 auto 0; height: 46%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
body[data-mode="tall"] .wd-pan::-webkit-scrollbar { display: none; }
body[data-mode="tall"] .wd-pan::after { display: none; }
body[data-mode="tall"] .wd-card { position: absolute; inset: 46% 0 var(--wd-sill) 0; width: auto; max-height: none; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; padding: 14px 16px 20px; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--fb-night); gap: 12px; }
body[data-mode="tall"] .wd-card h1 { font-size: 30px; line-height: 36px; }
/* 手机上小卡不压画面：竖屏钉在画面底下那块卡的头上，横屏钉在右边那一栏里 */
body[data-mode="tall"] .wd-pop { left: 10px; right: 10px; top: calc(46% + 10px); width: auto; background: #0c1114; }
.wd-swipe { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); top: calc(46% - 30px); padding: 2px 10px; border-radius: 999px; background: rgba(10,13,15,.8); color: var(--fb-ink-2); font-size: 11px; line-height: 18px; pointer-events: none; display: none; }
body[data-mode="tall"] .wd-swipe { display: block; }
body[data-mode="low"] .wd-pan { inset: 0 290px var(--wd-sill) 0; } body[data-mode="low"] .wd-pan::after { display: none; }
body[data-mode="low"] .wd-card { top: 0; right: 0; left: auto; width: 290px; height: calc(100% - var(--wd-sill)); max-height: none; border-radius: 0; border: 0; border-left: 1px solid var(--fb-line); border-top: 3px solid var(--zone); padding: 10px 14px 14px; gap: 10px; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--fb-night); }
body[data-mode="low"] .wd-card h1 { font-size: 26px; line-height: 32px; } body[data-mode="low"] .wd-card__line { font-size: 13px; line-height: 20px; }
body[data-mode="low"] .wd-pop { right: 8px; top: 8px; width: 274px; padding: 10px 12px; background: #0c1114; } body[data-mode="low"] .wd-pop p { font-size: 13px; line-height: 21px; }

/* ───────── 走廊尽头那扇门：钥匙孔里看进去 ───────── */
.wd-peek { position: fixed; inset: 0; z-index: 40; background: #050608; display: grid; place-items: center; align-content: center; gap: 18px; padding: 20px; animation: wd-fade 300ms; }
@keyframes wd-fade { from { opacity: 0; } }
.wd-peek__hole { position: relative; width: min(46vh, 70vw); aspect-ratio: 5 / 8; overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'%3E%3Ccircle cx='50' cy='52' r='38'/%3E%3Cpath d='M37 80h26l15 76H22z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'%3E%3Ccircle cx='50' cy='52' r='38'/%3E%3Cpath d='M37 80h26l15 76H22z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wd-peek__hole > img { position: absolute; top: -4%; left: 50%; height: 108%; width: auto; max-width: none; transform: translateX(-50%); }
.wd-peek p { max-width: 30em; text-align: center; color: var(--fb-ink-2); font-size: 15px; line-height: 25px; text-wrap: pretty; }
.wd-peek p b { color: #ffd98a; font-weight: 500; }
/* ───────── 线索本（抽屉）───────── */
.wd-drawer { position: fixed; inset: 0; z-index: 20; display: grid; justify-items: end; background: rgba(5,6,8,.6); animation: wd-fade 200ms; }
.wd-book { width: min(460px, 100%); height: 100%; overflow-y: auto; grid-auto-rows: max-content; background: var(--fb-night); border-left: 1px solid var(--fb-line); padding: 20px 22px 40px; display: grid; gap: 18px; align-content: start; animation: wd-slide 320ms var(--fb-ease-out); }
@keyframes wd-slide { from { transform: translateX(40px); opacity: 0; } }
.wd-book__head { display: flex; align-items: flex-start; gap: 12px; }
.wd-book__head h2 { font: 400 34px/40px var(--font-display); letter-spacing: .02em; flex: 1; }
.wd-x { width: 40px; height: 40px; flex: none; border-radius: 50%; color: var(--fb-ink-2); font-size: 22px; line-height: 40px; text-align: center; }
@media (hover: hover) { .wd-x:hover { background: var(--fb-surface-2); color: var(--fb-ink); } }
.wd-fine { font-size: 13px; line-height: 20px; color: var(--fb-ink-3); text-wrap: pretty; }
.wd-fine b { color: var(--fb-ink-2); font-weight: 500; }
.wd-bk { border: 1px solid var(--fb-line); border-radius: var(--fb-radius-lg); overflow: hidden; }
.wd-bk__who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; background: var(--fb-surface-1); border-bottom: 1px solid var(--fb-line); }
.wd-bk__who b { font: 400 24px/30px var(--font-display); letter-spacing: .02em; } .wd-bk__who span { display: block; font-size: 13px; line-height: 20px; color: var(--fb-ink-2); }
.wd-bk__who .fb-avatar { box-shadow: 0 0 0 2px var(--a); }
.wd-gate { padding: 14px 16px 16px; display: grid; gap: 10px; border-bottom: 1px solid var(--fb-line); }
.wd-gate:last-child { border-bottom: 0; }
.wd-gate__h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.wd-gate__h i { font: 400 11px/16px var(--font-latin); font-style: normal; color: var(--fb-ink-3); letter-spacing: .08em; }
.wd-gate__h b { font: 700 16px/24px var(--font-body); color: var(--fb-ink); }
.wd-gate__h em { font: 500 12px/18px var(--font-body); font-style: normal; color: var(--fb-ink-3); white-space: nowrap; }
.wd-gate.is-ready .wd-gate__h em { color: var(--fb-neon-cyan); }
.wd-gate.is-locked { opacity: .6; }
.wd-gate > p { font-size: 14px; line-height: 22px; color: var(--fb-ink-2); }
.wd-cl { display: grid; gap: 6px; }
.wd-cl li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 8px 10px; border-radius: var(--fb-radius-sm); background: var(--fb-surface-1); font-size: 13px; line-height: 20px; color: var(--fb-ink-2); }
.wd-cl li::before { content: "？"; color: var(--fb-ink-off); font-weight: 700; }
.wd-cl li.is-got::before { content: ""; width: 12px; height: 12px; margin-top: 4px; background: var(--fb-neon-cyan); clip-path: polygon(0 45%, 18% 28%, 40% 52%, 80% 8%, 100% 26%, 42% 92%); }
.wd-cl li b { display: block; color: var(--fb-ink); font-weight: 700; } .wd-cl li small { color: var(--fb-ink-3); font-size: 12px; }
.wd-cl li.is-got small { color: var(--fb-neon-cyan); }
.wd-others { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 6px; }
.wd-others div { display: grid; justify-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--fb-ink-3); }
.wd-others .fb-avatar { --s: 40px; filter: grayscale(.7) brightness(.7); }

/* ───────── 弹层：小本本、钥匙 ───────── */
.wd-modal { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 20px; background: rgba(5,6,8,.72); animation: wd-fade 200ms; overflow-y: auto; }
.wd-sheet { grid-auto-rows: max-content; position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 22px 24px 24px; border: 1px solid var(--fb-line-strong); border-top: 3px solid var(--zone, var(--fb-neon-cyan)); border-radius: var(--fb-radius-xl); background: var(--fb-night); box-shadow: var(--fb-shadow-pop); display: grid; gap: 14px; align-content: start; animation: wd-pop var(--fb-dur-enter) var(--fb-ease-out); }
.wd-sheet > .wd-x { position: absolute; right: 8px; top: 8px; }
.wd-sheet h2 { font: 400 30px/36px var(--font-display); letter-spacing: .02em; padding-right: 40px; }
.wd-sheet h2 small { display: block; font: 700 12px/16px var(--font-body); letter-spacing: .12em; color: var(--zone, var(--fb-ink-3)); margin-bottom: 2px; }
.wd-sheet p { font-size: 15px; line-height: 25px; color: var(--fb-ink-2); text-wrap: pretty; }
body[data-mode="tall"] .wd-modal { place-items: end center; padding: 0; } body[data-mode="tall"] .wd-sheet { border-radius: 16px 16px 0 0; max-height: 88dvh; padding: 18px 16px 22px; }
body[data-mode="low"] .wd-modal { padding: 8px; } body[data-mode="low"] .wd-sheet { width: min(720px, 100%); max-height: calc(100dvh - 16px); padding: 14px 18px 16px; gap: 10px; }
/* 小本本 */
.wd-ledger { display: grid; gap: 2px; }
.wd-ledger li { display: grid; grid-template-columns: auto 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 8px; border-radius: var(--fb-radius-sm); font-size: 14px; line-height: 20px; }
.wd-ledger li:nth-child(odd) { background: var(--fb-surface-1); }
.wd-ledger .fb-avatar { --s: 26px; } .wd-ledger b { font-weight: 700; color: var(--fb-ink); } .wd-ledger span { color: var(--fb-ink-2); }
.wd-ledger li.is-blank span::after { content: "好感分：＿＿"; margin-left: 10px; color: var(--fb-ink-3); font-size: 12px; }
.wd-count { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 12px; border: 1px dashed var(--fb-line-strong); border-radius: var(--fb-radius-md); font-size: 14px; line-height: 22px; color: var(--fb-ink); }
.wd-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-pick button { display: grid; justify-items: center; gap: 2px; width: 58px; padding: 6px 0; border-radius: var(--fb-radius-md); border: 1px solid var(--fb-line); font-size: 12px; line-height: 16px; color: var(--fb-ink-2); }
.wd-pick button .fb-avatar { --s: 34px; }
.wd-pick button.is-no { opacity: .35; }
@media (hover: hover) { .wd-pick button:hover { border-color: var(--fb-ink-2); } }
.wd-page { padding: 10px 12px; border-left: 3px solid var(--fb-artist-tangtang); background: var(--fb-surface-1); font-size: 14px; line-height: 22px; color: var(--fb-ink-2); }
.wd-page b { color: var(--fb-ink); }
.wd-page a { color: var(--fb-ink); border-bottom: 1px solid var(--fb-line-strong); margin-left: 4px; white-space: nowrap; }
/* 说一句的小条 */
.wd-toast { position: fixed; left: 50%; top: calc(var(--wd-y) + 14px); z-index: 45; transform: translate(-50%, -20px); padding: 8px 14px; border-radius: var(--fb-radius-md); background: var(--fb-neon-cyan); color: var(--fb-on-cyan); font: 700 14px/20px var(--font-body); opacity: 0; pointer-events: none; transition: transform 280ms var(--fb-ease-out), opacity 280ms; white-space: nowrap; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
.wd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 没开 JavaScript 的时候 */
.wd-nojs { grid-row: 3; align-self: center; padding: 40px 16px; text-align: center; color: var(--fb-ink-2); }
.wd-nojs a { color: var(--fb-ink); border-bottom: 1px solid var(--fb-line-strong); }

@media (prefers-reduced-motion: reduce) {
  .wd *, .wd *::before, .wd *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .wd-wipe { display: none; }
}
