/* 分领域样式 · world（FE-WORLD）：居民页、心事件播放器、送礼、回忆与来信（wd-*）；图鉴 12 章与规则书（cx5-*）。
 * 只用 tokens.css 的令牌；昼夜两套主题（.device[data-theme="night"]）；字号一律 rem / --fs-*（最小 --fs-cap = 12px）；
 * 可点元素 ≥44×44；状态双编码（形状 / 图标 + 颜色）；减少动态（系统设置与应用内设置）时去掉动画。 */

/* ================================================================ 通用 */
.wd-fine, .cx5-fine { font: 500 var(--fs-cap)/var(--lh-cap) var(--font-text); color: var(--muted); }
.wd-kicker, .cx5-kicker { font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--muted); letter-spacing: .02em; }
.wd-skel { padding: 20px 4px; font: 500 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--muted); }
.wd-sec, .cx5-sec { margin: 18px 2px 8px; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); color: var(--ink-2); }
.wd-npc-note { margin: 16px 2px 4px; font: 500 var(--fs-cap)/var(--lh-cap) var(--font-text); color: var(--faint); }
/* 「居民·NPC」标签：kit Tag tone energy；FE-CORE 的 .tag-resident 到位前用这里的兜底样式 */
.tag.wd-res-tag { height: auto; min-height: 20px; padding: 2px 7px; font-size: var(--fs-cap); flex: none; }
.wd-res-tag { margin-left: 6px; vertical-align: middle; }

/* ================================================================ 居民页（弹层，高 640） */
.sheet.wd-res-sheet .sheet-body { padding-top: 0; }
.wd-res { display: flex; flex-direction: column; gap: 12px; }
.wd-head { display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.wd-head-name { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.wd-name { margin: 0; font: 750 var(--fs-title)/var(--lh-title) var(--font-ui); color: var(--ink); }
.wd-close { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.wd-res-hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; }
.wd-portrait {
  position: relative; width: 132px; height: 150px; border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(120% 90% at 50% 100%, rgba(255, 226, 122, .5), transparent 65%), var(--surface-2); border: 1px solid var(--line);
}
.device[data-theme="night"] .wd-portrait { background: radial-gradient(120% 90% at 50% 100%, rgba(46, 230, 214, .22), transparent 65%), var(--surface-2); }
.wd-portrait svg { width: 100%; height: 100%; display: block; }
.wd-portrait.silhouette svg, .wd-row-art.silhouette svg { filter: brightness(0) saturate(0); opacity: .3; }
.device[data-theme="night"] .wd-portrait.silhouette svg, .device[data-theme="night"] .wd-row-art.silhouette svg { filter: brightness(0) invert(1); opacity: .22; }
.wd-portrait.has-event::after {
  content: "!"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 800 var(--fs-call)/1 var(--font-ui); color: #5A3A00; background: var(--banana-400); box-shadow: 0 0 0 3px rgba(255, 212, 71, .35), 0 0 14px rgba(255, 190, 30, .7);
  animation: wd-glow 1.8s var(--ease-in-out) infinite;
}
@keyframes wd-glow { 50% { box-shadow: 0 0 0 6px rgba(255, 212, 71, .18), 0 0 20px rgba(255, 190, 30, .85); } }
.wd-res-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.wd-hearts { display: inline-flex; gap: 2px; color: var(--rose-500); }
.wd-heart { width: 22px; height: 22px; display: inline-flex; }
.wd-heart svg { width: 100%; height: 100%; }
.wd-heart:not(.on) { color: var(--faint); }
.device[data-theme="night"] .wd-hearts { color: #FF8FA3; }
.wd-res-where { display: flex; align-items: flex-start; gap: 4px; font: 550 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink-2); }
.wd-res-where > span { flex: none; margin-top: 1px; color: var(--muted); }
.wd-confidant-btn { min-height: 44px; }
.wd-bubble {
  position: relative; padding: 12px 14px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.wd-bubble::before { content: ""; position: absolute; top: -7px; left: 52px; width: 14px; height: 14px; background: var(--surface-solid); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.wd-bubble-who { display: flex; align-items: center; gap: 2px; margin-bottom: 4px; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); color: var(--ink); }
.wd-say { margin: 4px 0 0; font: 500 var(--fs-body)/var(--lh-body) var(--font-text); color: var(--ink); }
.wd-say.muted { color: var(--muted); }
.wd-say.wd-done { color: var(--muted); font-size: var(--fs-call); }
.wd-play { min-height: 48px; position: relative; }
.wd-event-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--banana-400); box-shadow: 0 0 8px rgba(255, 190, 30, .9); margin-right: 6px; flex: none; }
.wd-facts { display: flex; flex-direction: column; gap: 8px; }
.wd-fact { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.wd-fact-k { font: 700 var(--fs-cap)/var(--lh-call) var(--font-ui); color: var(--muted); }
.wd-fact-v { font: 550 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink); min-width: 0; }
.wd-fact-v b { font-weight: 750; }
.wd-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wd-actions .btn { min-height: 48px; }
@media (min-width: 420px) { .wd-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wd-letters {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 12px; border-radius: 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer;
}
.wd-letters b { display: block; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.wd-letters-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); flex: none; }
.wd-unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--banana-500); flex: none; }
.wd-letters .chev, .wd-row .chev, .wd-mem-row .chev { color: var(--faint); display: inline-flex; flex: none; }

/* ---------------------------------------------------------------- 居民列表 */
.wd-list { display: flex; flex-direction: column; gap: 8px; }
.wd-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 6px 12px 6px 6px; border-radius: 18px; text-align: left;
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer;
}
.wd-row.away { background: var(--surface-2); border-style: dashed; }
.wd-row-art { width: 56px; height: 60px; border-radius: 14px; overflow: hidden; flex: none; background: var(--surface-2); display: flex; align-items: flex-end; }
.wd-row-art svg { width: 100%; height: 100%; }
.wd-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wd-row-l1 { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font: 700 var(--fs-body)/var(--lh-body) var(--font-ui); }
.wd-row-l2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wd-row .wd-heart { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- 送礼 */
.wd-gifts { display: flex; flex-direction: column; gap: 6px; }
.wd-gift-list { display: flex; flex-direction: column; gap: 6px; }
.wd-gift {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 12px 6px 6px; border-radius: 16px; text-align: left;
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer;
}
.wd-gift:disabled { cursor: default; opacity: .7; }
.wd-gift.busy { opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); }
.wd-gift-art { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex: none; }
.wd-gift-art svg { width: 40px; height: 40px; }
.wd-gift-art.sm { width: 36px; height: 36px; }
.wd-gift-art.sm svg { width: 30px; height: 30px; }
.wd-gift-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wd-gift-main b { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.wd-gift-q { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--line-strong); color: var(--muted); font: 800 var(--fs-call)/1 var(--font-ui); flex: none; }
.wd-att { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 2px 8px; border-radius: var(--r-pill); font: 700 var(--fs-cap)/1 var(--font-ui); flex: none; border: 1px solid transparent; }
.wd-att svg { width: 14px; height: 14px; }
.wd-att.att-love { background: rgba(229, 86, 107, .14); color: #B23A4E; border-color: rgba(229, 86, 107, .35); }
.wd-att.att-like { background: rgba(245, 190, 30, .18); color: #7A5600; border-color: rgba(245, 190, 30, .4); }
.wd-att.att-plain { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); border-style: dashed; }
.device[data-theme="night"] .wd-att.att-love { color: #FF9AA9; }
.device[data-theme="night"] .wd-att.att-like { color: var(--banana-300); }
.wd-gift-res { padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.wd-gift-res.ok { border-color: rgba(62, 164, 78, .35); }
.wd-gift-res.no { border-style: dashed; }
.wd-gift-res-l1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.wd-gift-res .wd-say { font-size: var(--fs-call); }
.modal.wd-reveal { overflow: hidden; }
.wd-reveal-body { padding: 22px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 226, 122, .45), transparent 65%), var(--bg-1); }
.wd-reveal-body.att-love { background: radial-gradient(120% 70% at 50% 0%, rgba(229, 86, 107, .28), transparent 65%), var(--bg-1); }
.device[data-theme="night"] .wd-reveal-body { background: radial-gradient(120% 70% at 50% 0%, rgba(46, 230, 214, .2), transparent 65%), var(--bg-1); }
.wd-reveal-art { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.wd-reveal-portrait { width: 96px; height: 108px; display: flex; }
.wd-reveal-portrait svg { width: 100%; height: 100%; }
.wd-reveal-item { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--surface-solid); box-shadow: var(--shadow-1); animation: wd-pop var(--t-slow) var(--ease-spring); }
.wd-reveal-item svg { width: 44px; height: 44px; }
@keyframes wd-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.wd-reveal-title { margin: 0; font: 750 var(--fs-head)/var(--lh-head) var(--font-ui); }
.wd-reason { color: var(--ink-2); font-style: italic; }
.wd-reveal-who { display: flex; align-items: center; gap: 2px; font: 700 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--muted); }
.wd-reveal-body .btn { margin-top: 6px; min-height: 48px; }

/* ---------------------------------------------------------------- 回忆与来信 */
.wd-seg { margin: 2px 0 12px; }
.wd-seg button { min-height: 44px; }
.wd-mem-list { display: flex; flex-direction: column; gap: 6px; }
.wd-mem-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 10px; border-radius: 16px; text-align: left;
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--ink); font: inherit;
}
.wd-mem-row.press { cursor: pointer; }
.wd-mem-row b { display: block; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.wd-mem-row .btn { min-height: 44px; flex: none; }
.wd-mem-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); flex: none; }
.wd-mem-inbox { margin-top: 12px; min-height: 48px; }
.modal.wd-letter { max-height: calc(100% - var(--safe-top) - 24px); display: flex; flex-direction: column; top: calc(50% + var(--safe-top) / 2); }
.wd-letter-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.wd-letter-from { display: flex; align-items: center; gap: 10px; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.wd-letter-av { flex: none; width: 40px; height: 40px; display: flex; }
.wd-letter-av svg { width: 40px; height: 40px; border-radius: 12px; }
.wd-letter-title { margin: 0; font: 750 var(--fs-head)/var(--lh-head) var(--font-ui); }
.wd-letter-paper {
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: repeating-linear-gradient(180deg, transparent 0 calc(var(--lh-body) - 1px), var(--line) calc(var(--lh-body) - 1px) var(--lh-body)), var(--surface-solid);
  font: 500 var(--fs-body)/var(--lh-body) var(--font-text); color: var(--ink);
}
.wd-letter-paper p { margin: 0 0 var(--lh-body); }
.wd-letter-paper p:last-child { margin-bottom: 0; }
.wd-letter-ps { color: var(--ink-2); font-style: italic; }
.wd-letter-actions { display: flex; gap: 8px; }
.wd-letter-actions .btn { min-height: 48px; }

/* ================================================================ 心事件播放器（全屏） */
.overlay-layer .modal.wd-player {
  left: 0; right: 0; top: 0; bottom: 0; transform: none; border-radius: 0; animation: wd-fade var(--t-slow) var(--ease-out); background: var(--bg-0);
  display: flex; flex-direction: column;
}
.overlay-layer .modal.wd-player.closing { animation: fadeout var(--t-fast) ease forwards; }
@keyframes wd-fade { from { opacity: 0; } to { opacity: 1; } }
.wd-pl { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; color: var(--ink);
  --pl-sky: #F7E7C2; --pl-ground: #C9A27A; --pl-glow: rgba(255, 226, 122, .55); }
.wd-pl.tone-day.place-sands { --pl-sky: #DDF3F1; --pl-ground: #B9D7E0; --pl-glow: rgba(123, 241, 232, .5); }
.wd-pl.tone-dusk { --pl-sky: #F6C9A0; --pl-ground: #8A5E3B; --pl-glow: rgba(240, 138, 36, .45); }
.wd-pl.tone-dawn { --pl-sky: #F3D9E8; --pl-ground: #B49AB8; --pl-glow: rgba(255, 196, 222, .5); }
.wd-pl.tone-night { --pl-sky: #1B1727; --pl-ground: #2F2945; --pl-glow: rgba(46, 230, 214, .28); color: #F2EFFA; }
.wd-pl.place-board { --pl-ground: #A97C52; }
.wd-pl-bg { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(90% 55% at 50% 72%, var(--pl-glow), transparent 70%), linear-gradient(180deg, var(--pl-sky) 0 58%, var(--pl-ground) 58% 100%); }
.wd-pl-bg svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.wd-pl-top { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 8px; padding: calc(var(--safe-top) + 8px) 16px 6px; }
.wd-pl-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 16px; background: var(--glass-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); }
.wd-pl-title b { font: 750 var(--fs-head)/var(--lh-head) var(--font-ui); }
.wd-pl-ctl { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--glass-strong); color: var(--ink); font: 650 var(--fs-cap)/1 var(--font-ui); cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.wd-pl-ctl svg { width: 16px; height: 16px; }
.wd-pl-ctl[aria-pressed="false"] { border-style: dashed; color: var(--muted); }
.wd-pl-stage { position: relative; z-index: 1; flex: 1; min-height: 160px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 6% 4px; cursor: pointer; }
.wd-pl-fig { width: 46%; max-width: 240px; aspect-ratio: 52 / 82; display: flex; align-items: flex-end; transition: transform var(--t-med) var(--ease-out), opacity var(--t-med), filter var(--t-med); }
.wd-pl-fig svg { width: 100%; height: 100%; display: block; }
.wd-pl-fig.right { width: 34%; max-width: 176px; transform: scaleX(-1); }
.wd-pl-fig.speaking { transform: translateY(-6px) scale(1.04); filter: drop-shadow(0 6px 16px var(--pl-glow)); }
.wd-pl-fig.right.speaking { transform: scaleX(-1) translateY(-6px) scale(1.04); }
.wd-pl-fig.dim { opacity: .62; filter: saturate(.7); }
.wd-pl-bottom { position: relative; z-index: 2; padding: 0 12px calc(16px + env(safe-area-inset-bottom)); }
.wd-pl-sub {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 22px; min-height: 120px;
  background: var(--surface-solid); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-3); cursor: default;
}
.wd-pl-sub[role="button"] { cursor: pointer; }
.wd-pl-who { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font: 750 var(--fs-call)/var(--lh-call) var(--font-ui); }
.wd-pl-text { margin: 0; font: 550 var(--fs-head)/1.55 var(--font-text); color: var(--ink); }
.wd-pl-text.stage { font-style: italic; color: var(--ink-2); font-size: var(--fs-body); }
.wd-pl-hint { display: flex; justify-content: space-between; gap: 8px; font: 550 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--muted); }
.wd-pl-choices { display: flex; flex-direction: column; gap: 8px; }
.wd-pl-choice {
  min-height: 52px; padding: 10px 14px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  font: 650 var(--fs-body)/var(--lh-body) var(--font-text); text-align: left; cursor: pointer;
}
.wd-pl-choice.on { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.wd-pl-choice:disabled { cursor: default; }
.wd-pl-rule { background: radial-gradient(120% 80% at 0% 0%, rgba(139, 107, 255, .18), transparent 60%), var(--surface-solid); }
.wd-pl-rule-title { font: 750 var(--fs-head)/var(--lh-head) var(--font-ui); }
.wd-why { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 650 var(--fs-cap)/1 var(--font-ui); cursor: pointer; }
.wd-why[aria-expanded="true"] svg { transform: rotate(180deg); }
.wd-pl-sub .btn { min-height: 48px; }
.wd-pl-end b { font: 750 var(--fs-head)/var(--lh-head) var(--font-ui); }

/* ================================================================ 图鉴（cx5-*） */
.cx5-screen .screen-scroll { padding-bottom: 40px; }
.cx5-top { display: flex; align-items: flex-end; gap: 10px; }
.cx5-top .icon-btn { width: 44px; height: 44px; margin-bottom: 16px; flex: none; }
.cx5-top .screen-header { flex: 1; min-width: 0; }
.cx5-growth { margin-bottom: 10px; }
.cx5-hero { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 0% 0%, rgba(92, 193, 100, .2), transparent 60%), var(--surface); }
.device[data-theme="night"] .cx5-hero { background: radial-gradient(120% 100% at 0% 0%, rgba(46, 230, 214, .14), transparent 60%), var(--surface); }
.cx5-ring { position: relative; width: 80px; height: 80px; flex: none; }
.cx5-ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 7; }
.cx5-ring-fg { fill: none; stroke: var(--leaf-500); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset var(--t-slow) var(--ease-out); }
.device[data-theme="night"] .cx5-ring-fg { stroke: var(--cyan-400); }
.cx5-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 var(--fs-head)/1 var(--font-ui); color: var(--ink); }
.cx5-hero-num { font: 750 var(--fs-head)/var(--lh-head) var(--font-ui); color: var(--ink); margin-bottom: 2px; }
.cx5-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 14px -16px 12px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cx5-tabs::-webkit-scrollbar { display: none; }
.cx5-tab { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; min-width: 52px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font: 650 var(--fs-call)/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.cx5-tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cx5-tab.off:not(.on) { border-style: dashed; color: var(--muted); }
.cx5-tab svg { width: 12px; height: 12px; }

/* 总览：规则书首屏 + 12 章入口 */
.cx5-rb-card { padding: 14px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-solid); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cx5-rb-card-head { display: flex; align-items: center; gap: 6px; font: 750 var(--fs-body)/var(--lh-body) var(--font-ui); color: var(--ink); }
.cx5-rb-card .btn { min-height: 44px; }
.cx5-core { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cx5-core li { display: flex; gap: 10px; align-items: flex-start; font: 550 var(--fs-body)/var(--lh-body) var(--font-text); color: var(--ink); }
.cx5-core.compact li { font-size: var(--fs-call); line-height: var(--lh-call); }
.cx5-core-n { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font: 800 var(--fs-cap)/1 var(--font-ui);
  background: var(--accent); color: var(--accent-ink); margin-top: 1px; }
.cx5-chapters { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 440px) { .cx5-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cx5-chap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 92px; padding: 12px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface-solid); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cx5-chap.off { background: var(--surface-2); border-style: dashed; }
.cx5-chap-ic { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); }
.cx5-chap.off .cx5-chap-ic { color: var(--muted); background: var(--surface-3); }
.cx5-chap-name { font: 750 var(--fs-call)/var(--lh-call) var(--font-ui); }
.cx5-chap-bar { width: 100%; display: flex; align-items: center; gap: 6px; }
.cx5-chap-bar .progress { flex: 1; }

/* 章节 */
.cx5-ch { display: flex; flex-direction: column; gap: 8px; }
.cx5-ch-head { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.cx5-ch-title { margin: 0; font: 750 var(--fs-title)/var(--lh-title) var(--font-ui); color: var(--ink); }
.cx5-ch-num { font: 800 var(--fs-head)/1 var(--font-ui); color: var(--ink-2); }
.cx5-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 440px) { .cx5-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cx5-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 104px; padding: 10px 6px 8px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface-solid); color: var(--ink); font: inherit; text-align: center; cursor: pointer; }
.cx5-tile.static { cursor: default; }
.cx5-tile.got { border-color: rgba(62, 164, 78, .45); }
.device[data-theme="night"] .cx5-tile.got { border-color: rgba(46, 230, 214, .45); }
.cx5-tile.no { border-style: dashed; background: var(--surface-2); }
.cx5-tile.no .cx5-tile-art svg { filter: grayscale(1); opacity: .35; }
.cx5-tile.off { opacity: .72; }
.cx5-tile-art { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.cx5-tile-art svg { max-width: 100%; max-height: 100%; }
.cx5-tile-name { font: 700 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--ink); word-break: break-word; }
.cx5-tile-sub { display: inline-flex; align-items: center; gap: 2px; font: 550 var(--fs-cap)/var(--lh-cap) var(--font-text); color: var(--muted); }
.cx5-tile-tag { margin: 0; }
.cx5-tile-mark { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); }
.cx5-tile.got .cx5-tile-mark { background: var(--done-fill); color: #fff; }
.cx5-hidden-art { font: 800 1.25rem/1 var(--font-ui); color: var(--violet-500); border-radius: 14px; background: rgba(139, 107, 255, .12); border: 1.5px dashed rgba(139, 107, 255, .45); }
.device[data-theme="night"] .cx5-hidden-art { color: #BBA8FF; }
.cx5-tile .cx5-hidden-art { width: 52px; height: 52px; }
.cx5-clues { display: inline-flex; align-items: center; gap: 3px; }
.cx5-clue-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--violet-500); background: transparent; }
.cx5-clue-dot.on { background: var(--violet-500); }
.cx5-clues-txt { margin-left: 4px; font: 650 var(--fs-cap)/1 var(--font-ui); color: var(--ink-2); }
.cx5-tile .cx5-clues-txt { display: none; }
/* 土的兜底色块（W1-ART 的土格面到位前）：图案 + 颜色双编码 */
.cx5-soil { display: block; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); }
.cx5-detail-art .cx5-soil { width: 96px; height: 96px; border-radius: 22px; }
.cx5-soil.soil-black { background: repeating-linear-gradient(45deg, #3B2A1C 0 6px, #4C3524 6px 12px); }
.cx5-soil.soil-slag { background: radial-gradient(circle at 30% 30%, #9C9584 0 2px, transparent 3px) 0 0/10px 10px, #6E6A61; }
.cx5-soil.soil-mud { background: repeating-radial-gradient(circle at 50% 120%, #6B5A45 0 4px, #7D6A50 4px 8px); }
.cx5-soil.soil-crystal { background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%) 0 0/14px 14px, #9FE3E6; }
.cx5-soil.soil-spring { background: radial-gradient(circle, #9ED8F5 0 30%, #4FB3FF 31% 45%, #2B6E9E 46%); }
.cx5-soil.soil-fertile { background: repeating-linear-gradient(0deg, #2E4A22 0 5px, #3C5C2A 5px 10px); }

/* 条目详情 */
.modal.cx5-modal { max-height: calc(100% - var(--safe-top) - 24px); display: flex; flex-direction: column; top: calc(50% + var(--safe-top) / 2); }
.cx5-detail { padding: 22px 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; overflow-y: auto; }
.cx5-detail-art { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 28px; background: var(--surface-2); }
.cx5-detail-art svg { max-width: 100%; max-height: 100%; }
.cx5-detail-art.shadow svg { filter: grayscale(1); opacity: .35; }
.cx5-detail-title { margin: 0; font: 750 var(--fs-title)/var(--lh-title) var(--font-ui); }
.cx5-detail-meta { font: 550 var(--fs-cap)/var(--lh-cap) var(--font-text); color: var(--muted); }
.cx5-detail-body { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 500 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink); }
.cx5-detail-body p { margin: 0; }
.cx5-detail .btn { margin-top: 8px; min-height: 48px; }
.cx5-rule { font: 650 var(--fs-body)/var(--lh-body) var(--font-ui); display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: center; }
.cx5-rule svg { width: 18px; height: 18px; vertical-align: middle; }
.cx5-lore { font: 550 var(--fs-body)/var(--lh-body) var(--font-text); color: var(--ink-2); font-style: italic; }
.cx5-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cx5-found { display: inline-flex; align-items: center; gap: 4px; font: 650 var(--fs-call)/var(--lh-call) var(--font-ui); color: var(--ink-2); }
.cx5-found-self { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cx5-clue-lines { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.cx5-clue-lines li { padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--violet-500); display: flex; flex-direction: column; gap: 2px; }
.cx5-clue-src { display: inline-flex; align-items: center; gap: 4px; font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--muted); }
.cx5-clue-text { font: 550 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink); }
.cx5-res-tagrow { display: flex; align-items: center; justify-content: center; gap: 2px; font: 750 var(--fs-body)/var(--lh-body) var(--font-ui); }
.cx5-gift-list { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.cx5-gift { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); text-align: left; }
.cx5-gift svg { width: 28px; height: 28px; }
.cx5-gift .wd-att svg { width: 14px; height: 14px; }

/* 老农手记 */
.cx5-notes { display: flex; flex-direction: column; gap: 8px; }
.cx5-note { display: flex; gap: 10px; align-items: flex-start; width: 100%; min-height: 64px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface-solid); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cx5-note.off { background: var(--surface-2); border-style: dashed; }
.cx5-note.got { border-color: rgba(62, 164, 78, .45); }
.cx5-note-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--banana-600); flex: none; }
.cx5-note.got .cx5-note-ic { color: var(--leaf-600); }
.cx5-note-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cx5-note-main b { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.cx5-note-bar { display: flex; align-items: center; gap: 8px; width: 100%; }
.cx5-note-bar .progress { flex: 1; }
.cx5-note-bar .num { font: 650 var(--fs-cap)/1 var(--font-ui); color: var(--ink-2); white-space: nowrap; }

/* 规则书 */
.cx5-rb { display: flex; flex-direction: column; gap: 10px; }
.cx5-vrules { display: flex; flex-direction: column; gap: 6px; }
.cx5-vrule { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font: 550 var(--fs-call)/var(--lh-call) var(--font-text); }
.cx5-vrule > span { flex: none; color: var(--accent); margin-top: 1px; }
.cx5-concepts { display: flex; flex-direction: column; gap: 6px; }
.cx5-concept { border-radius: 14px; border: 1px solid var(--line); background: var(--surface-solid); overflow: hidden; }
.cx5-concept.off { background: var(--surface-2); border-style: dashed; }
.cx5-concept-l1 { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; background: transparent; color: var(--ink);
  font: 650 var(--fs-call)/var(--lh-call) var(--font-ui); text-align: left; cursor: pointer; }
.cx5-concept-ic { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); flex: none; }
.cx5-concept.off .cx5-concept-ic { color: var(--muted); }
.cx5-concept-why { display: inline-flex; align-items: center; gap: 2px; font: 650 var(--fs-cap)/1 var(--font-ui); color: var(--muted); flex: none; }
.cx5-concept-l1[aria-expanded="true"] .cx5-concept-why svg { transform: rotate(180deg); }
.cx5-concept-l2 { margin: 0; padding: 0 12px 12px 42px; font: 500 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink-2); }
.cx5-sayings { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); }
.cx5-sayings .cx5-lore { margin: 0; }

/* 纪念与标本 */
.cx5-specs { display: flex; flex-direction: column; gap: 6px; }
.cx5-spec { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-solid); }
.cx5-spec b { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); display: block; }
.cx5-spec .btn { min-height: 44px; flex: none; }
.cx5-spec-art { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; flex: none; }
.cx5-spec-art svg { max-width: 100%; max-height: 100%; }

/* ================================================================ 减少动态：与 base.css 同一口径（<html data-motion>：reduce 一律去掉；system 跟随系统；full 不跟随系统）
 * base.css 已把动画时长压到 1ms；这里再把循环光点、弹入、立绘位移直接关掉，免得最后一帧停在半路 */
html[data-motion='reduce'] .wd-portrait.has-event::after, html[data-motion='reduce'] .wd-reveal-item,
html[data-motion='reduce'] .overlay-layer .modal.wd-player { animation: none; }
html[data-motion='reduce'] .wd-pl-fig { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion='full']) .wd-portrait.has-event::after, html:not([data-motion='full']) .wd-reveal-item,
  html:not([data-motion='full']) .overlay-layer .modal.wd-player { animation: none; }
  html:not([data-motion='full']) .wd-pl-fig { transition: none; }
}

/* 好奇点弹层 */
.cx5-curio-actions { width: 100%; display: flex; gap: 8px; margin-top: 8px; }
.cx5-curio-actions .btn { min-height: 48px; margin-top: 0; }

/* ================================================================ v0.5b（W2-FE-WORLD）：心事件的图纸与贡献者、图鉴 b 期三章、明信片册（pc-*）、庭院编辑（ye-*） */
/* ---------------------------------------------------------------- 心事件补充 */
.wd-pl-contrib { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.wd-pl-c { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 8px 2px 2px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14);
  font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: inherit; }
.wd-pl-c.self { box-shadow: inset 0 0 0 1.5px var(--banana-400); }
.wd-pl-c-av.sil { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); opacity: .7; }
.wd-pl-c .avatar { width: 28px; height: 28px; }
.wd-pl-bp { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 4px 0; border-radius: 16px; background: rgba(255, 212, 71, .16); border: 1px solid rgba(255, 212, 71, .45); text-align: left; }
.wd-pl-bp-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .22); flex: none; }
.wd-pl-bp .btn { min-height: 44px; flex: none; }
.wd-pl-fig .wd-mk-fallback { width: 70%; height: auto; margin: auto; color: var(--banana-400); }
.wd-pl.place-alley, .wd-pl.place-observatory { --wd-pl-sky: #1B1640; }
.wd-pl.place-radio .wd-pl-bg { background: linear-gradient(180deg, #9ED8F5, #F6F1E6); }
.wd-pl.place-radio.tone-night .wd-pl-bg, .wd-pl.place-observatory .wd-pl-bg { background: linear-gradient(180deg, #14123A, #3A2F6E); }
.wd-pl.place-stage .wd-pl-bg { background: radial-gradient(90% 70% at 50% 100%, rgba(255, 190, 30, .45), transparent 70%), linear-gradient(180deg, #3A2F6E, #8A5E3B); }
.wd-pl.place-cart .wd-pl-bg { background: linear-gradient(180deg, #F2B48A, #C9A27A); }
.wd-pl.place-well .wd-pl-bg { background: linear-gradient(180deg, #4C2F1C, #1B1727); }

/* ---------------------------------------------------------------- 图鉴：远行手册、原型、遗物 */
.cx5-hb-rules { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin: 8px 0 4px; border-radius: 16px; background: var(--surface-2); }
.cx5-hb-rules p { margin: 0; display: flex; align-items: flex-start; gap: 6px; font: 550 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink-2); }
.cx5-hb-rules p > span:first-child { flex: none; margin-top: 2px; color: var(--muted); }
.cx5-hb-group { display: flex; flex-direction: column; gap: 8px; }
.cx5-hb-group .cx5-sec { display: flex; align-items: center; gap: 4px; }
.cx5-hz {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; border-radius: 18px; text-align: left;
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer;
}
.cx5-hz.no { border-style: dashed; }
.cx5-hz-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); flex: none; color: var(--ink-2); }
.cx5-hz-ic svg { max-width: 40px; max-height: 40px; }
.cx5-hz-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cx5-hz-l1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 var(--fs-body)/var(--lh-body) var(--font-ui); }
.cx5-hz-facts { display: flex; flex-direction: column; gap: 4px; }
.cx5-hz-facts .cx5-fine { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.cx5-hz-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cx5-hz-k { font: 700 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--muted); }
.cx5-kits { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.cx5-kit { display: inline-flex; align-items: center; gap: 3px; min-height: 26px; padding: 2px 8px 2px 4px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line);
  font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--ink); }
.cx5-kit.vow { border-color: rgba(139, 107, 255, .45); background: rgba(139, 107, 255, .1); }
.cx5-kit-ic { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.cx5-kit-ic svg { width: 18px; height: 18px; }
.cx5-kit-vow { margin-left: 4px; padding: 0 6px; border-radius: var(--r-pill); background: rgba(139, 107, 255, .16); color: #5B3FD0; font: 700 var(--fs-cap)/1.4 var(--font-ui); }
.device[data-theme="night"] .cx5-kit-vow { color: #C6B6FF; }
.cx5-hz-var { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; margin-top: 2px; border-radius: 14px; background: var(--surface-2); border-left: 3px solid var(--sky-500); }
.cx5-hz-var.no { border-left-style: dashed; }
.cx5-hz-var b { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.cx5-hz-var-ic { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex: none; }
.cx5-hz-var-ic svg { max-width: 26px; max-height: 26px; }
.cx5-kit-table { margin-top: 8px; }
.cx5-kit-list { display: flex; flex-direction: column; gap: 6px; }
.cx5-kit-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--line); }
.cx5-kit-row.vow { border-color: rgba(139, 107, 255, .35); }
.cx5-kit-row b { display: flex; align-items: center; flex-wrap: wrap; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.cx5-kit-art { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); flex: none; }
.cx5-kit-art svg { max-width: 30px; max-height: 30px; }
.cx5-relic-lines { margin: 6px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cx5-relic-lines li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }

/* ---------------------------------------------------------------- 明信片册 */
.pc-top { display: flex; align-items: flex-end; gap: 6px; }
.pc-top .screen-header { flex: 1; min-width: 0; }
.pc-fine { margin: 4px 2px 10px; font: 500 var(--fs-cap)/var(--lh-cap) var(--font-text); color: var(--muted); }
.pc-unread { display: flex; align-items: center; gap: 4px; color: var(--ink-2); }
.pc-filters { margin: 2px 0 6px; }
.pc-filters button { min-height: 44px; }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
@media (min-width: 560px) { .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pc-page { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-thumb {
  position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 6px; border-radius: 14px; text-align: left; min-height: 44px;
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow-1);
}
.pc-thumb-art { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.pc-thumb-art svg { width: 100%; height: 100%; display: block; }
.pc-thumb.is-back .pc-thumb-art { box-shadow: inset 0 0 0 2px rgba(240, 138, 36, .55); }
.pc-thumb-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.pc-thumb-name { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pc-thumb-tags { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--muted); }
.pc-mini { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 6px; background: var(--surface-2); }
.pc-count { font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--muted); }
.pc-new { position: absolute; top: 10px; left: 10px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--banana-400); color: #5A3A00; font: 800 var(--fs-cap)/1.5 var(--font-ui); font-style: normal; }
.pc-sec { margin: 14px 2px 8px; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); color: var(--ink-2); }
.pc-empty-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pc-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; border-radius: 10px; border: 1.5px dashed var(--line-strong);
  font: 800 var(--fs-head)/1 var(--font-ui); color: var(--faint); }
.pc-page-more { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 0 8px; border-radius: 12px; border: 0; background: transparent;
  color: var(--accent); font: 700 var(--fs-cap)/var(--lh-cap) var(--font-ui); cursor: pointer; }
.pc-skel { aspect-ratio: 3 / 2; border-radius: 14px; }
.modal.pc-modal { width: min(400px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.pc-view { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.pc-view-head { display: flex; align-items: center; gap: 8px; }
.pc-view-head b { font: 700 var(--fs-body)/var(--lh-body) var(--font-ui); }
.pc-kicker { font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--muted); }
.pc-x { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.pc-flip { position: relative; width: 100%; aspect-ratio: 358 / 239; perspective: 1200px; }
.pc-face { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform var(--t-slow) var(--ease-in-out); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.pc-front { padding: 0; border: 0; background: var(--surface-2); cursor: pointer; display: block; width: 100%; }
.pc-front .pc-art, .pc-front .pc-art svg { display: block; width: 100%; height: 100%; }
.pc-back { transform: rotateY(180deg); background: #FFFBF0; color: #3A2F22; }
.device[data-theme="night"] .pc-back { background: #2A2438; color: var(--ink); }
.pc-flip.is-back .pc-front { transform: rotateY(-180deg); }
.pc-flip.is-back .pc-back { transform: rotateY(0deg); }
.pc-back-in { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; height: 100%; padding: 12px; overflow-y: auto; }
.pc-back-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; border-right: 1px dashed rgba(90, 58, 34, .3); padding-right: 10px; }
.pc-back-r { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-caption { margin: 0; font: 600 var(--fs-body)/var(--lh-body) var(--font-text); }
.pc-record { padding: 6px 8px; border-radius: 10px; background: rgba(240, 138, 36, .1); border-left: 3px solid var(--amber-500); }
.pc-record p { margin: 2px 0 0; font: 550 var(--fs-cap)/var(--lh-cap) var(--font-text); }
.pc-record-k { display: flex; align-items: center; gap: 4px; font: 700 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: #8A4A0A; }
.device[data-theme="night"] .pc-record-k { color: #FFC07A; }
.pc-cf { font-style: italic; }
.pc-branch, .pc-clue { margin: 0; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px; font: 550 var(--fs-cap)/var(--lh-cap) var(--font-text); }
.pc-hand { font-family: "Kaiti SC", "STKaiti", "KaiTi", var(--font-text); font-size: var(--fs-call); }
.pc-wx { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-wx-i { display: inline-flex; align-items: center; gap: 2px; font: 600 var(--fs-cap)/var(--lh-cap) var(--font-ui); }
.pc-wx-i svg { width: 18px; height: 18px; }
.pc-back .pc-fine { margin: 0; color: inherit; opacity: .8; display: flex; align-items: center; gap: 4px; }
.pc-stamp { width: 64px; height: 76px; border-radius: 4px; border: 2px dashed rgba(90, 58, 34, .45); display: flex; align-items: center; justify-content: center; color: #8A5E3B; background: rgba(255, 255, 255, .5); }
.pc-mark { width: 88px; min-height: 88px; border-radius: 50%; border: 1.5px solid rgba(90, 58, 34, .45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 6px; text-align: center; font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); transform: rotate(-8deg); color: #6B4429; }
.device[data-theme="night"] .pc-mark, .device[data-theme="night"] .pc-stamp { color: var(--ink-2); border-color: var(--line-strong); }
.pc-sign { margin: auto 0 0; font: 700 var(--fs-cap)/var(--lh-cap) var(--font-ui); text-align: center; }
.pc-view-actions { display: flex; align-items: center; gap: 8px; }
.pc-view-actions .btn { min-height: 48px; }
.pc-nav { width: 48px; padding: 0; flex: none; justify-content: center; }
.pc-share-in { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pc-share-art { width: 100%; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.pc-share-art svg { width: 100%; height: auto; display: block; }
.pc-share-actions { display: flex; flex-direction: column; gap: 8px; }
.pc-share-actions .btn { min-height: 48px; }
@media (max-width: 360px) { .pc-back-in { grid-template-columns: minmax(0, 1fr) 76px; } .pc-mark { width: 72px; min-height: 72px; } }

/* ---------------------------------------------------------------- 庭院编辑 */
.ye-screen { background: var(--bg-1); }
.ye-top { padding: calc(var(--safe-top) + 4px) var(--sp-3) 8px; background: var(--glass-strong); border-bottom: 1px solid var(--line); flex: none; }
.ye-head { display: flex; flex-direction: column; gap: 6px; }
.ye-head-row { display: flex; align-items: center; gap: 4px; }
.ye-back { flex: none; }
.ye-done { min-height: 44px; flex: none; margin-left: 4px; }
.ye-head-title { flex: 1; min-width: 0; display: flex; flex-direction: column; font: 700 var(--fs-head)/var(--lh-head) var(--font-ui); color: var(--ink); }
.ye-dirty { display: inline-flex; align-items: center; gap: 4px; font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: #8A4A0A; }
.ye-dirty i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--amber-500); }
.device[data-theme="night"] .ye-dirty { color: #FFC07A; }
.ye-undo, .ye-redo { width: 44px; height: 44px; flex: none; }
.ye-redo span { display: inline-flex; transform: scaleX(-1); }
.icon-btn.is-off { opacity: .38; }
.ye-tabs button { flex: 1; min-height: 44px; padding: 0 12px; }
.ye-scroll { padding-top: 10px; }
.ye-skel { padding: 24px 4px; font: 500 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--muted); }
.ye-yard { display: flex; flex-direction: column; gap: 8px; }
.ye-hint { margin: 0; }
.ye-link { min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--accent); font: 700 var(--fs-call)/1 var(--font-ui); cursor: pointer; }
.ye-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ye-count { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-2); font: 700 var(--fs-cap)/1 var(--font-ui); color: var(--ink-2); }
.ye-count.full { background: rgba(240, 138, 36, .16); color: #8A4A0A; }
.ye-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-solid);
  color: var(--ink); font: 650 var(--fs-cap)/1 var(--font-ui); cursor: pointer; }
.ye-chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ye-canvas-wrap { width: 100%; overflow: auto; border-radius: 18px; border: 1px solid var(--line); background:
  radial-gradient(120% 80% at 50% 0%, rgba(158, 216, 245, .45), transparent 70%), linear-gradient(180deg, #EAF4E2, #D9EBCB); -webkit-overflow-scrolling: touch; }
.device[data-theme="night"] .ye-canvas-wrap { background: radial-gradient(120% 80% at 50% 0%, rgba(58, 47, 110, .7), transparent 70%), linear-gradient(180deg, #1B2230, #141A26); }
.ye-canvas { display: block; height: auto; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
.ye-canvas-wrap.fit .ye-canvas { width: 100%; }
.ye-ground { fill: #A8CF8A; stroke: #5A3A22; stroke-width: 1; }
.device[data-theme="night"] .ye-ground { fill: #3E5A44; }
.ye-grid { fill: none; stroke: rgba(58, 48, 30, .22); stroke-width: .6; pointer-events: none; }
.device[data-theme="night"] .ye-grid { stroke: rgba(220, 230, 255, .18); }
.ye-house-foot { fill: rgba(90, 58, 34, .16); stroke: rgba(90, 58, 34, .35); stroke-width: .8; stroke-dasharray: 3 2; pointer-events: none; }
.ye-house { pointer-events: none; }
.ye-piece { cursor: pointer; outline: none; }
.ye-foot { fill: transparent; stroke: none; }
.ye-piece.is-sel { touch-action: none; }
.ye-piece.is-sel .ye-foot { stroke: var(--cyan-500); stroke-width: 1.6; stroke-dasharray: 4 2.5; fill: rgba(46, 230, 214, .14); }
.ye-piece.is-bad .ye-foot { stroke: var(--rose-500); stroke-width: 1.8; stroke-dasharray: 2 2; fill: rgba(229, 86, 107, .16); }
.ye-piece:focus-visible .ye-foot { stroke: var(--violet-500); stroke-width: 2; fill: rgba(139, 107, 255, .14); }
.ye-hang.is-sel g { filter: drop-shadow(0 0 3px rgba(46, 230, 214, .95)); }
.ye-canvas.focus-lower .layer-object, .ye-canvas.focus-lower .ye-layer-top, .ye-canvas.focus-lower .ye-house { opacity: .32; pointer-events: none; }
.ye-ghost { pointer-events: none; }
.ye-ghost-art { opacity: .62; }
.ye-ghost-foot { stroke-width: 1.6; stroke-dasharray: 4 2.5; }
.ye-ghost.ok .ye-ghost-foot { fill: rgba(62, 164, 78, .2); stroke: var(--leaf-600); }
.ye-ghost.no .ye-ghost-foot { fill: rgba(229, 86, 107, .2); stroke: var(--rose-500); }
.ye-ghost-x path { stroke: var(--rose-500); }
.ye-hook { cursor: pointer; }
.ye-hook circle { fill: rgba(255, 255, 255, .85); stroke: var(--cyan-600); stroke-width: 1.6; stroke-dasharray: 3 2; }
.ye-hook.ok circle { animation: ye-pulse 1.4s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
.ye-hook.no circle { stroke: var(--faint); stroke-dasharray: none; }
.ye-hook-n { font: 800 12px/1 var(--font-ui); fill: #0B6A64; }
.ye-hook.no .ye-hook-n { fill: var(--faint); }
@keyframes ye-pulse { 50% { transform: scale(1.18); } }
.ye-say { margin: 0; min-height: 2.5em; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); font: 550 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink-2); }
.ye-say.tone-warn { background: rgba(240, 138, 36, .14); color: #7A3E00; }
.ye-say.tone-good { background: rgba(62, 164, 78, .14); color: var(--leaf-700); }
.device[data-theme="night"] .ye-say.tone-warn { color: #FFC07A; }
.device[data-theme="night"] .ye-say.tone-good { color: var(--leaf-300); }
.ye-tools { display: flex; gap: 8px; align-items: stretch; }
.ye-pad { display: grid; grid-template-columns: repeat(2, 48px); grid-template-rows: repeat(2, 48px); gap: 4px; flex: none; }
.ye-acts { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(44px, 1fr)); gap: 6px; }
.ye-acts .ye-tool { min-height: 100px; }
.ye-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 48px; padding: 2px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); font: inherit; cursor: pointer; }
.ye-tool:disabled { opacity: .4; cursor: default; }
.ye-tool[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ye-tool-main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ye-tool-l { font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); white-space: nowrap; }
.ye-arrow { display: inline-flex; }
.ye-arrow-ne { transform: rotate(90deg); }
.ye-arrow-se { transform: rotate(180deg); }
.ye-arrow-sw { transform: rotate(-90deg); }
.ye-layers .ly-top { fill: currentColor; }
.ye-layers .ly-low-fill { fill: transparent; }
.ye-layers.lower .ly-top { fill: none; }
.ye-layers.lower .ly-low-fill { fill: currentColor; opacity: .85; }
.ye-drawer { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ye-drawer-tabs button { min-height: 44px; }
.ye-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ye-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 108px; padding: 6px 4px; border-radius: 14px; text-align: center;
  border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); font: inherit; cursor: pointer; }
.ye-tile.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.ye-tile.is-cat { background: var(--surface-2); }
.ye-tile.off { border-style: dashed; }
.ye-tile.off .ye-tile-art { opacity: .45; filter: grayscale(.6); }
.ye-tile-art { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface-2); }
.ye-tile-art svg { max-width: 56px; max-height: 56px; }
.ye-tile-name { font: 700 var(--fs-cap)/var(--lh-cap) var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ye-tile-src { font: 500 var(--fs-cap)/var(--lh-cap) var(--font-text); color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%; }
.ye-tile-n { position: absolute; top: 4px; right: 4px; min-width: 22px; padding: 1px 5px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg-1); font: 700 var(--fs-cap)/1.4 var(--font-ui); }
.ye-tile-lock { position: absolute; top: 6px; right: 6px; color: var(--muted); }
.ye-drawer-empty { margin: 4px 2px; }
.ye-fine { margin: 0; font: 500 var(--fs-cap)/var(--lh-cap) var(--font-text); color: var(--muted); }
.ye-list { display: flex; flex-direction: column; gap: 6px; }
.ye-list-row { display: flex; }
.ye-list-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 52px; padding: 6px 12px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); font: inherit; cursor: pointer; }
.ye-list-btn.on { border-color: var(--cyan-500); box-shadow: inset 0 0 0 2px var(--cyan-500); }
.ye-list-name { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.ye-closed { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.modal.ye-modal { width: min(380px, calc(100vw - 24px)); }
.ye-dlg { padding: 20px 18px 16px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.ye-dlg-ic, .ye-dlg-art { align-self: center; width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink-2); }
.ye-dlg-art { width: 96px; height: 96px; }
.ye-dlg-title { margin: 0; font: 750 var(--fs-head)/var(--lh-head) var(--font-ui); }
.ye-dlg-body { margin: 0; font: 500 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink-2); }
.ye-dlg-actions { display: flex; gap: 8px; margin-top: 4px; }
.ye-dlg-actions .btn { min-height: 48px; }
.ye-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ye-sec { margin: 14px 2px 6px; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); color: var(--ink-2); text-align: left; }
.ye-dlg .ye-sec { margin: 4px 0 0; }
.ye-src-list { margin: 0; padding-left: 1.2em; text-align: left; font: 550 var(--fs-call)/var(--lh-call) var(--font-text); }
/* 农舍页签 */
.ye-house-tab { display: flex; flex-direction: column; gap: 8px; }
.ye-house-prev { width: 100%; aspect-ratio: 240 / 175; max-height: 260px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% 0%, rgba(158, 216, 245, .5), transparent 70%), var(--surface-2); }
.ye-house-prev svg { display: block; }
.ye-part-row { display: grid; grid-template-columns: 4em minmax(0, 1fr); align-items: center; gap: 8px; }
.ye-part-k { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); color: var(--ink-2); }
.ye-part-opts, .ye-sets { display: flex; flex-wrap: wrap; gap: 6px; }
.ye-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 4px 12px 4px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-solid);
  color: var(--ink); font: 650 var(--fs-call)/var(--lh-call) var(--font-ui); cursor: pointer; text-align: left; }
.ye-opt .ye-fine { margin-left: 2px; }
.ye-opt.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.ye-opt.locked { border-style: dashed; color: var(--ink-2); }
.ye-opt:disabled { cursor: default; opacity: .6; }
.ye-opt-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; }
.ye-opt-ic svg { max-width: 22px; max-height: 22px; }
.ye-pals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ye-pal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 6px 2px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-solid); color: var(--ink); font: inherit; cursor: pointer; }
.ye-pal.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.ye-pal-sw { display: inline-flex; width: 30px; height: 30px; }
.ye-pal-name { font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); text-align: center; }
.ye-pal-on { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); }
.ye-season { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); }
.ye-season b { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.ye-season .btn { min-height: 44px; flex: none; }
.ye-season-ic { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface-solid); flex: none; color: var(--rose-500); }
html[data-motion='reduce'] .ye-hook.ok circle, html[data-motion='reduce'] .pc-face { animation: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion='full']) .ye-hook.ok circle, html:not([data-motion='full']) .pc-face { animation: none; transition: none; }
}
.cx5-hz-facts .cx5-hz-line { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 4px; align-items: start; }
.cx5-hz-line-ic { display: inline-flex; margin-top: 1px; color: var(--muted); }
.cx5-hz-line-ic svg { width: 14px; height: 14px; }
.ye-hit { fill: transparent; stroke: none; }
.ye-back.icon-btn, .pc-top .icon-btn, .cx5-top .icon-btn { width: 44px; height: 44px; flex: none; }
.ye-canvas-wrap.zoom { max-height: min(46vh, 380px); overscroll-behavior: contain; }
.ye-opt-art { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface-2); flex: none; overflow: hidden; }
.ye-opt-art svg { width: 40px; height: 40px; }
.ye-opt.locked .ye-opt-art { opacity: .55; filter: grayscale(.5); }
.ye-part-row { grid-template-columns: 1fr; gap: 4px; }
.ye-part-k { margin: 6px 2px 0; }
.ye-part-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ye-part-opts .ye-opt { width: 100%; padding: 4px 8px 4px 4px; }
.ye-opt-art { position: relative; }
.ye-opt-img { display: inline-flex; width: 40px; height: 40px; }
.ye-opt-img svg { width: 40px; height: 40px; }
.ye-opt-badge { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-solid); border: 1px solid var(--line-strong); color: var(--ink-2); }
.ye-opt-badge.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ye-opt-txt { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.ye-opt-txt b { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ye-share-actions { display: flex; flex-direction: column; gap: 8px; }
.ye-share-actions .btn { min-height: 48px; }

/* ================================================================ v0.5c（W3-FE-WORLD）复垦馆 museum（mu-*）：2 厅 × 12 位，3 列网格；空位剪影 + 一句需要什么
 * 状态双编码：已放上 = 实线框 + ✓ 角标 + 捐赠者名；可以捐 = 暖色描边 + ＋ 角标 + 「可以捐」；没开门 = 虚线 + 锁 */
.mu-top { display: flex; align-items: flex-end; gap: 6px; }
.mu-top .screen-header { flex: 1; min-width: 0; }
.mu-top .icon-btn { width: 44px; height: 44px; margin-bottom: 16px; flex: none; }
.mu-fine { font: 500 var(--fs-cap)/var(--lh-cap) var(--font-text); color: var(--muted); margin: 0; }
/* 复垦馆未开门：「去雾图点灯」按钮的阴影（0 6px 14px）不压下面那行小字（W4 QA-09） */
.mu-closed > .btn + .mu-fine, .mu-closed > button + .mu-fine { margin-top: 14px; }
.mu-kicker { font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--muted); letter-spacing: .02em; }
.mu-sec { margin: 14px 2px 8px; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); color: var(--ink-2); }
.mu-skel-banner { height: 120px; border-radius: 20px; margin-bottom: 12px; }
.mu-skel-slot { height: 112px; border-radius: 16px; }
.mu-foot-note { margin: 18px 2px 8px; color: var(--faint); }

.mu-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 12px; }
.mu-tab {
  min-height: 52px; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface-solid); color: var(--ink-2); font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); text-align: left;
}
.mu-tab .mu-tab-name { flex: 1; min-width: 0; }
.mu-tab .mu-tab-n { font: 650 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--muted); }
.mu-tab-ic { display: inline-flex; color: var(--muted); flex: none; }
.mu-tab.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--ink); background: var(--surface); }
.mu-tab.st-locked { border-style: dashed; }
.mu-tab.st-done .mu-tab-ic { color: var(--done-fill); }

.mu-banner { width: 100%; aspect-ratio: 3 / 1; border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.mu-banner svg { width: 100%; height: 100%; display: block; }
.mu-b-wall { fill: #EFE3CC; }
.mu-b-vault { fill: #D9C29A; }
.mu-b-col { fill: #C9AE84; }
.mu-b-floor { fill: #B89870; }
.mu-b-niche { fill: #DCCBAA; stroke: #A8875C; stroke-width: 1.2; }
.mu-b-niche.on { fill: #FFF4D2; stroke: #C8901E; }
.mu-b-item { fill: #8A8F98; }
.mu-b-sprout { fill: none; stroke: #3EA44E; stroke-width: 2; stroke-linecap: round; }
.mu-b-ribbon { fill: #FFD447; stroke: #C8901E; stroke-width: 1.2; }
.device[data-theme="night"] .mu-b-wall { fill: #2A2540; }
.device[data-theme="night"] .mu-b-vault { fill: #3A3358; }
.device[data-theme="night"] .mu-b-col, .device[data-theme="night"] .mu-b-floor { fill: #463E66; }
.device[data-theme="night"] .mu-b-niche { fill: #312B4A; stroke: #5D5486; }
.device[data-theme="night"] .mu-b-niche.on { fill: #4A4170; stroke: #2EE6D6; }

.mu-hall { display: flex; flex-direction: column; gap: 10px; }
.mu-hall-head { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; }
.mu-hall-title { margin: 0 0 2px; font: 750 var(--fs-title)/var(--lh-title) var(--font-ui); color: var(--ink); }
.mu-prog { display: flex; align-items: center; gap: 10px; }
.mu-prog .progress { flex: 1; height: 10px; }
.mu-prog-n { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); color: var(--ink-2); flex: none; }
.mu-quote { margin: 2px 0; padding: 10px 12px; border-left: 3px solid var(--banana-500); border-radius: 8px; background: rgba(255, 212, 71, .12);
  font: 550 var(--fs-body)/var(--lh-body) var(--font-text); color: var(--ink); }
.mu-unlock, .mu-cap { display: flex; align-items: flex-start; gap: 4px; }
.mu-unlock > span:first-child, .mu-cap > span:first-child { flex: none; margin-top: 1px; }

/* 井口条件 */
.mu-well { padding: 12px 14px; border-radius: 18px; border: 1px dashed var(--line-strong); background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.mu-well.open { border-style: solid; border-color: rgba(20, 196, 184, .5); background: rgba(20, 196, 184, .08); }
.mu-well-head { display: flex; align-items: center; gap: 6px; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); color: var(--ink); }
.mu-well-ic { display: inline-flex; color: var(--muted); }
.mu-well.open .mu-well-ic { color: var(--energy); }
.mu-well-text { margin: 0; font: 550 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink-2); }
.mu-well .btn { align-self: flex-start; min-height: 44px; }
.mu-conds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mu-cond { display: flex; align-items: flex-start; gap: 8px; }
.mu-cond-ic { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); }
.mu-cond.done .mu-cond-ic { background: var(--done-fill); color: #fff; }
.mu-cond-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mu-cond-l { font: 650 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink); }
.mu-cond.done .mu-cond-l { color: var(--ink-2); }

/* 网格 */
.mu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mu-cell { min-width: 0; display: flex; }
.mu-slot {
  position: relative; width: 100%; min-height: 112px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 8px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); text-align: center;
}
.mu-slot.empty { border-style: dashed; background: var(--surface-2); }
.mu-slot.can { border: 2px solid var(--banana-500); background: rgba(255, 212, 71, .1); }
.mu-slot.locked { opacity: .78; }
.mu-slot.filled { border-color: rgba(62, 164, 78, .45); }
.device[data-theme="night"] .mu-slot.filled { border-color: rgba(46, 230, 214, .45); }
.mu-slot-art { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.mu-slot-art svg { max-width: 100%; max-height: 100%; }
.mu-slot-art.sil svg { filter: grayscale(1) brightness(.85); opacity: .38; }
.device[data-theme="night"] .mu-slot-art.sil svg { filter: grayscale(1) brightness(1.4); opacity: .3; }
.mu-slot-name { font: 700 var(--fs-cap)/var(--lh-cap) var(--font-ui); word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mu-slot-sub { display: inline-flex; align-items: center; gap: 3px; font: 550 var(--fs-cap)/var(--lh-cap) var(--font-text); color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-slot-sub.can { color: #8A6200; font-weight: 700; }
.device[data-theme="night"] .mu-slot-sub.can { color: var(--banana-300); }
.mu-slot-rub { display: inline-flex; color: var(--violet-500); }
.mu-slot-mark { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); }
.mu-slot.filled .mu-slot-mark { background: var(--done-fill); color: #fff; }
.mu-slot.can .mu-slot-mark { background: var(--banana-400); color: #5A3A00; }
.mu-slot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 位的详情（底部弹层） */
.sheet.mu-sheet .sheet-body { padding-top: 4px; }
.mu-detail { display: flex; flex-direction: column; gap: 10px; }
.mu-detail-head { display: flex; align-items: center; gap: 14px; }
.mu-detail-art { width: 96px; height: 96px; flex: none; border-radius: 24px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.mu-detail-art svg { max-width: 88%; max-height: 88%; }
.mu-detail-art.sil svg { filter: grayscale(1) brightness(.85); opacity: .4; }
.mu-detail-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.mu-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; font: 650 var(--fs-call)/var(--lh-call) var(--font-ui); }
.mu-donor { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; font: 650 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink); }
.mu-donor > span:first-child { display: inline-flex; color: var(--muted); }
.mu-rub { margin-left: 4px; }
.mu-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font: 500 var(--fs-body)/var(--lh-body) var(--font-text); color: var(--ink); }
.mu-need { margin: 0; font: 550 var(--fs-body)/var(--lh-body) var(--font-text); color: var(--ink); }
.mu-ins { display: flex; flex-direction: column; gap: 4px; }
.mu-ins-lines { margin: 0; padding: 0 0 0 4px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mu-ins-lines li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.mu-ins-text { font: 500 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink); }
.mu-link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 2px; padding: 0 4px; border: 0; background: none;
  color: var(--accent); font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.mu-opts { display: flex; flex-direction: column; gap: 6px; }
.mu-opt { min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface-solid); color: var(--ink); text-align: left; }
.mu-opt.on { border: 2px solid var(--accent); background: var(--surface); }
.mu-opt.short { opacity: .6; }
.mu-opt-radio { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line-strong); color: transparent; }
.mu-opt.on .mu-opt-radio { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mu-opt-art { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; }
.mu-opt-art svg { max-width: 100%; max-height: 100%; }
.mu-opt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mu-opt-main b { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.mu-none { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.mu-none p { margin: 0; font: 550 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink-2); }
.mu-none .btn, .mu-tree .btn { min-height: 44px; }
.mu-foot { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.mu-foot .btn { min-height: 48px; }

/* 补齐弹层 */
.modal.mu-modal { max-height: calc(100% - var(--safe-top) - 24px); overflow-y: auto; top: calc(50% + var(--safe-top) / 2); }
.mu-complete { display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; padding: 0 18px 18px; }
.mu-complete .notice { text-align: left; }
.mu-complete-art { margin: 0 -18px 4px; aspect-ratio: 3 / 1; overflow: hidden; }
.mu-complete-art svg { width: 100%; height: 100%; display: block; }
.mu-complete-title { margin: 0; font: 750 var(--fs-title)/var(--lh-title) var(--font-ui); color: var(--ink); }
.mu-complete-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mu-complete-actions .btn { min-height: 48px; }

/* 种谱厅：晶仔的黑板 + 村谱树（图鉴村谱章共用 cx5-bb 的同一套配色） */
.mu-bb, .cx5-bb { margin-top: 6px; padding: 12px 14px; border-radius: 16px; background: #2F4A3E; color: #EAF5EC; border: 6px solid #8A6A44; box-shadow: var(--shadow-1); }
.mu-bb.skeleton { min-height: 80px; border: 0; background: var(--surface-2); }
.mu-bb-art, .cx5-bb-art { margin: -4px -4px 6px; border-radius: 8px; overflow: hidden; }
.mu-bb-art svg, .cx5-bb-art svg { width: 100%; height: auto; display: block; }
.mu-bb-head, .cx5-bb-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; justify-content: space-between; font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.mu-bb-who { display: inline-flex; align-items: center; gap: 2px; font: 600 var(--fs-cap)/var(--lh-cap) var(--font-ui); }
.mu-bb-lines, .cx5-bb-lines { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mu-bb-lines li, .cx5-bb-lines li { display: flex; align-items: baseline; gap: 8px; font: 500 var(--fs-call)/var(--lh-call) var(--font-text); }
.mu-bb-k, .cx5-bb-k { flex: none; min-width: 2.2em; font: 700 var(--fs-cap)/var(--lh-cap) var(--font-mono); color: #FFE27A; }
.mu-bb-empty, .cx5-bb-empty { margin: 8px 0 4px; font: 500 var(--fs-call)/var(--lh-call) var(--font-text); color: #CFE6D5; }
.mu-bb .mu-fine, .cx5-bb .cx5-fine { color: #BFD8C6; }
.mu-bb .tag, .cx5-bb .tag { background: rgba(255, 255, 255, .14); color: #F2EFFA; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.mu-tree { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font: 550 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink-2); }
.mu-tree.open { background: rgba(62, 164, 78, .1); color: var(--ink); }
.mu-tree-ic { display: inline-flex; color: var(--muted); flex: none; }
.mu-tree.open .mu-tree-ic { color: var(--leaf-500); }

/* ================================================================ v0.5c 明信片册：地下与河谷 3 组 */
.pc-zones { margin-top: 4px; }
.pc-zone-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pc-zone-wrap { min-width: 0; display: flex; }
.pc-zone { width: 100%; min-height: 96px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); text-align: left; }
.pc-zone.none { border-style: dashed; background: var(--surface-2); align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.pc-zone-art { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 3 / 2; border-radius: 9px; overflow: hidden; background: #2E4246; color: #CFE3E6; font: 700 var(--fs-head)/1 var(--font-ui); }
.pc-zone.none .pc-zone-art { background: var(--surface-3); color: var(--muted); }
.pc-zone.z-river .pc-zone-art { background: #6FB49C; }
.pc-zone-art svg { width: 100%; height: 100%; display: block; }
.pc-zone-name { font: 700 var(--fs-cap)/var(--lh-cap) var(--font-ui); }
.pc-water { display: flex; align-items: center; gap: 4px; margin: 4px 0 0; font: 600 var(--fs-cap)/var(--lh-cap) var(--font-text); color: var(--sky-500); }
.device[data-theme="night"] .pc-water { color: var(--sky-300); }

/* ================================================================ v0.5c 居民：预告卡、5 章看完 */
.wd-pl-teaser { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 4px 0; border-radius: 16px; background: rgba(111, 180, 156, .18); border: 1px solid rgba(111, 180, 156, .5); text-align: left; }
.wd-pl-teaser-art { width: 96px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; }
.wd-pl-teaser-art svg { width: 100%; height: 100%; display: block; }
.wd-pl-teaser-text { margin: 2px 0 0; font: 550 var(--fs-call)/var(--lh-call) var(--font-text); }
.wd-fact-done .wd-fact-v { color: var(--ink-2); }

/* ================================================================ v0.5c 图鉴村谱章（cx5-lineage）、晶花配图 */
.cx5-legend-art { background: radial-gradient(circle at 50% 45%, rgba(127, 227, 216, .35), transparent 70%), var(--surface-2); }
.cx5-tree { margin: 8px 0 4px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-solid); display: flex; flex-direction: column; gap: 8px; }
.cx5-tree.locked { flex-direction: row; align-items: center; border-style: dashed; background: var(--surface-2); }
.cx5-tree.locked b { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.cx5-tree.locked .btn { min-height: 44px; flex: none; }
.cx5-tree-ic { display: inline-flex; color: var(--muted); flex: none; }
.cx5-tree-art { width: 100%; }
.cx5-tree-art svg { width: 100%; height: auto; display: block; max-height: 180px; }
.cx5-tree-trunk { fill: none; stroke: #8A5E3B; stroke-width: 7; stroke-linecap: round; }
.cx5-tree-branch { fill: none; stroke: #A97C52; stroke-width: 3; stroke-linecap: round; }
.cx5-tree-g1 { fill: #FFE27A; stroke: #C8901E; stroke-width: 1.5; }
.cx5-tree-g1.got { fill: #8BD889; stroke: #2B8540; }
.cx5-tree-leaf { fill: #5CC164; }
.cx5-tree-star { fill: #8B6BFF; }
.device[data-theme="night"] .cx5-tree-trunk { stroke: #C9A27A; }
.device[data-theme="night"] .cx5-tree-star { fill: #BBA8FF; }
.cx5-tree-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cx5-tree-list li { display: flex; align-items: center; gap: 6px; font: 550 var(--fs-call)/var(--lh-call) var(--font-text); color: var(--ink-2); }
.cx5-tree-list li.got { color: var(--ink); }
.cx5-strains { display: flex; flex-direction: column; gap: 6px; }
.cx5-strain { min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); text-align: left; }
.cx5-strain.got { border-color: rgba(62, 164, 78, .45); }
.cx5-strain-art { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; }
.cx5-strain-art svg { max-width: 100%; max-height: 100%; }
.cx5-strain-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cx5-strain-main b { font: 700 var(--fs-call)/var(--lh-call) var(--font-ui); }
.cx5-strain-traits { display: flex; flex-wrap: wrap; gap: 4px; }
.cx5-mini { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 8px; background: var(--surface-2); font: 600 var(--fs-cap)/var(--lh-cap) var(--font-ui); color: var(--ink-2); }
.cx5-bb .cx5-res-tagrow { display: inline-flex; align-items: center; gap: 2px; font: 600 var(--fs-cap)/var(--lh-cap) var(--font-ui); }
.cx5-tile.kind-secret.no .cx5-tile-name { color: var(--muted); }
/* 美术模块（art/museum.js）到位时：内景按它的 390×300 画幅；展位小景自己画剪影，外层不再套灰度；黑板由画面承担板框 */
.mu-banner.art, .mu-complete-art.art { aspect-ratio: 390 / 300; }
.mu-banner.art { background: transparent; border: 0; }
.mu-banner.art svg, .mu-complete-art.art svg { width: 100%; height: 100%; }
.mu-slot-art.by-art { width: 64px; height: 64px; }
.mu-slot-art.by-art svg, .mu-detail-art.by-art svg { filter: none !important; opacity: 1 !important; }
.mu-bb.has-art, .cx5-bb.has-art { padding: 0; background: none; border: 0; box-shadow: none; color: var(--ink); }
.mu-bb.has-art .mu-bb-art, .cx5-bb.has-art .cx5-bb-art { margin: 0 0 6px; }
.mu-bb.has-art .mu-fine, .cx5-bb.has-art .cx5-fine { color: var(--muted); }
.mu-bb.has-art .tag, .cx5-bb.has-art .tag { background: rgba(139,107,255,.12); color: #5B3FCC; box-shadow: inset 0 0 0 1px rgba(139,107,255,.35); }
.device[data-theme="night"] .mu-bb.has-art .tag, .device[data-theme="night"] .cx5-bb.has-art .tag { color: #C9BAFF; }
.mu-bb.has-art .mu-bb-head, .cx5-bb.has-art .cx5-bb-head { justify-content: flex-end; }
