/* ============================================================
   style.css —— 《花落谁家 · 花博会调包案》
   视觉基因：粉樱金 + 墨绿宣纸；春日花博会明亮基调
   移动端优先（规范：100dvh / 输入框≥16px / 触控≥58px / 媒体查询置后）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --ink: #14231d;
  --pine: #1f6350;
  --pine-2: #2c8468;
  --gold: #d4869f;
  --gold-lt: #f3cbd8;
  --paper: #fdf6ec;
  --jade: #8fd0b2;
  --danger: #c05b4d;
  --shadow: 0 10px 40px rgba(20,35,29,.35);
}
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--ink); color: var(--paper);
  overflow: hidden;
}
#bg {
  position: fixed; inset: 0; z-index: -2;
  background: url("../assets/bg/expoSite.jpg") center/cover no-repeat;
  filter: brightness(.6) saturate(1.15);
}
#bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(20,35,29,.55) 80%); }
.hidden { display: none !important; }
button { font-family: inherit; }
input { font-size: 16px; font-family: inherit; } /* ≥16px 防 iOS 聚焦缩放 */

/* ---------- HUD ---------- */
#hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-size: 14px; letter-spacing: .06em;
  background: linear-gradient(180deg, rgba(20,35,29,.92), rgba(20,35,29,0));
}
#hudRoom { color: var(--gold); font-weight: 700; }
#hudStage { color: var(--gold-lt); }
#hudTimer { font-variant-numeric: tabular-nums; color: var(--jade); font-weight: 700; }
#hudTimer.urgent { color: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- 屏幕通用 ---------- */
.scr {
  position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 56px 16px 110px;
  animation: fadeUp .45s cubic-bezier(.25,.1,.25,1);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.scr-title { font-size: 24px; color: var(--gold-lt); margin: 6px 0 4px; letter-spacing: .1em; }
.scr-title small { font-size: 13px; color: var(--jade); margin-left: 10px; letter-spacing: 0; }
.scr-hint { font-size: 13px; color: rgba(244,234,214,.62); margin-bottom: 14px; line-height: 1.7; }
.center-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 10px; background: linear-gradient(0deg, rgba(20,35,29,.95) 55%, transparent); z-index: 20; }

/* ---------- 按钮 ---------- */
.btn {
  min-height: 48px; min-width: 58px; padding: 0 22px;
  border: 1px solid rgba(201,168,106,.55); border-radius: 10px;
  background: rgba(44,132,104,.72); color: var(--paper); font-size: 16px; letter-spacing: .08em;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.96); }
.btn.gold { background: linear-gradient(160deg, var(--gold), #a5834a); color: #241a08; font-weight: 700; border-color: var(--gold-lt); box-shadow: 0 4px 18px rgba(201,168,106,.35); }
.btn.dim { background: transparent; border-color: rgba(244,234,214,.25); color: rgba(244,234,214,.6); }
.btn:disabled { opacity: .38; pointer-events: none; }

/* ---------- 首页 ---------- */
#scr-home { display: flex; align-items: center; justify-content: center; }
.home-box { width: 100%; max-width: 460px; text-align: center; background: rgba(31,99,80,.82); border: 1px solid rgba(201,168,106,.35); border-radius: 18px; padding: 26px 22px 22px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.home-cover { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(201,168,106,.4); margin-bottom: 14px; }
.home-box h1 { font-size: 26px; color: var(--gold-lt); letter-spacing: .12em; margin-bottom: 6px; }
.home-sub { font-size: 12px; color: var(--jade); margin-bottom: 12px; letter-spacing: .14em; }
.home-brief { font-size: 13px; line-height: 1.9; color: rgba(244,234,214,.78); text-align: justify; margin-bottom: 18px; }
#nickInput, #roomInput {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(201,168,106,.4);
  background: rgba(20,35,29,.7); color: var(--paper); outline: none;
}
#nickInput { margin-bottom: 12px; }
.home-row { display: flex; flex-direction: column; gap: 10px; }
.join-wrap { display: flex; gap: 10px; }
.join-wrap #roomInput { flex: 1; text-transform: uppercase; letter-spacing: .3em; text-align: center; font-weight: 700; }
.join-wrap .btn { flex: 1.2; }
.home-tip { margin-top: 14px; font-size: 11px; color: rgba(244,234,214,.42); }
.home-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}
.home-note.warn {
  background: rgba(192,91,77,.14);
  border: 1px dashed rgba(192,91,77,.55);
  color: #f8d3cb;
}
.home-note.ok {
  background: rgba(143,208,178,.12);
  border: 1px solid rgba(143,208,178,.35);
  color: #e0f3ea;
}

/* ---------- 角色卡网格 ---------- */
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
.role-card {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 2px solid rgba(201,168,106,.3); background: var(--pine);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.role-card:active { transform: scale(.97); }
.role-card img { width: 100%; height: 168px; object-fit: cover; object-position: top; display: block; filter: saturate(.92); }
.role-card .rc-body { padding: 10px 12px 12px; }
.role-card h3 { font-size: 17px; color: var(--gold-lt); letter-spacing: .08em; }
.role-card .rc-title { font-size: 12px; color: var(--jade); margin: 3px 0 6px; }
.role-card .rc-tag { font-size: 12px; color: rgba(244,234,214,.66); line-height: 1.6; font-style: italic; }
.role-card.taken { pointer-events: none; }
.role-card.taken img { filter: grayscale(.85) brightness(.55); }
.role-card.taken::after {
  content: attr(data-taken); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,35,29,.55); color: var(--gold-lt); font-size: 14px; letter-spacing: .2em; font-weight: 700;
}
.role-card.mine { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,106,.35), 0 8px 26px rgba(201,168,106,.25); }
.role-card.mine::before { content: "我的角色"; position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--gold); color: #241a08; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.lobby-bar { display: flex; gap: 10px; justify-content: center; padding-bottom: 8px; }

/* ---------- 个人剧本 ---------- */
.script-card { max-width: 560px; margin: 0 auto; background: rgba(244,234,214,.96); color: #2b2118; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.script-card .sc-head { display: flex; gap: 14px; padding: 18px; background: var(--pine); align-items: center; }
.script-card .sc-head img { width: 84px; height: 112px; object-fit: cover; object-position: top; border-radius: 10px; border: 2px solid var(--gold); }
.script-card .sc-head h2 { color: var(--gold-lt); font-size: 24px; letter-spacing: .1em; }
.script-card .sc-head .sc-title { color: var(--jade); font-size: 13px; margin-top: 4px; }
.script-card .sc-head .sc-tag { color: rgba(244,234,214,.7); font-size: 12px; margin-top: 8px; font-style: italic; line-height: 1.6; }
.script-card .sc-sec { padding: 14px 18px; border-top: 1px dashed rgba(43,33,24,.2); }
.script-card .sc-sec h4 { font-size: 13px; color: #7a5b23; letter-spacing: .2em; margin-bottom: 8px; }
.script-card .sc-sec p { font-size: 14px; line-height: 2; text-align: justify; }
.script-card .sc-sec.secret { background: rgba(192,91,77,.1); }
.script-card .sc-sec.secret h4 { color: var(--danger); }
.script-card .sc-sec ul { padding-left: 20px; font-size: 14px; line-height: 2; }
.sc-killer { display: inline-block; background: var(--danger); color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 20px; letter-spacing: .2em; margin-bottom: 6px; }
.sc-partner { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 20px; font-size: 12px; color: #fff; background: var(--gold); }

/* ---------- 游戏主屏 ---------- */
#playMain { max-width: 720px; margin: 0 auto; }
#mapWrap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(143,208,178,.45); box-shadow: var(--shadow); }
#mapImg { width: 100%; display: block; }
#hotspotLayer { position: absolute; inset: 0; }
.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  min-width: 58px; min-height: 58px; padding: 6px 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 30px; border: 2px solid rgba(201,168,106,.8);
  background: rgba(31,99,80,.78); color: var(--gold-lt); font-size: 12px; font-weight: 700; letter-spacing: .05em;
  cursor: pointer; animation: pulse 2.4s infinite; backdrop-filter: blur(2px);
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,168,106,.45); } 50% { box-shadow: 0 0 0 12px rgba(201,168,106,0); } }
.hotspot.empty { opacity: .35; animation: none; border-style: dashed; }
.hotspot.locked { opacity: .3; animation: none; filter: grayscale(.8); pointer-events: none; }
#apBadge {
  position: absolute; top: 10px; right: 10px; padding: 6px 14px; border-radius: 20px;
  background: rgba(20,35,29,.85); border: 1px solid var(--gold); color: var(--gold-lt); font-size: 13px; font-weight: 700;
}

/* ---------- 线索 ---------- */
.clue-card { background: rgba(244,234,214,.95); color: #2b2118; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; border-left: 4px solid var(--gold); }
.clue-card h4 { font-size: 14px; color: #7a5b23; margin-bottom: 5px; }
.clue-card p { font-size: 13px; line-height: 1.9; text-align: justify; }
.clue-card .clue-who { font-size: 11px; color: #8a6f45; margin-top: 6px; }
.clue-card.private { border-left-color: var(--danger); background: rgba(244,234,214,.88); }
.wall-title { font-size: 13px; color: var(--jade); letter-spacing: .2em; margin: 4px 0 10px; }

/* ---------- 指证 ---------- */
#accuseBar { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
#accuseLeft { font-size: 12px; color: rgba(244,234,214,.6); }
.accuse-card { background: rgba(44,132,104,.8); border: 1px solid rgba(201,168,106,.4); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.accuse-card .ac-line { font-size: 13px; line-height: 1.8; }
.accuse-card .ac-line b { color: var(--gold-lt); }
.accuse-card .ac-reply { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(201,168,106,.3); font-size: 13px; color: var(--jade); line-height: 1.8; }
.accuse-card .ac-reply.pending { color: rgba(244,234,214,.45); font-style: italic; }

/* ---------- 聊天抽屉 ---------- */
#chatDock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: rgba(20,35,29,.94); border-top: 1px solid rgba(201,168,106,.4);
  display: flex; flex-direction: column; max-height: 42vh; backdrop-filter: blur(6px);
}
#chatFlow { flex: 1; overflow-y: auto; padding: 10px 14px; min-height: 86px; }
.chat-line { font-size: 13px; line-height: 1.7; margin-bottom: 6px; word-break: break-all; }
.chat-line b { color: var(--gold); margin-right: 6px; }
.chat-line.sys { color: var(--jade); font-style: italic; }
.chat-line.sys b { color: var(--jade); }
#chatInputRow { display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
#chatInput { flex: 1; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(201,168,106,.4); background: rgba(31,99,80,.8); color: var(--paper); outline: none; }
#chatInputRow .btn { min-height: 44px; }

/* ---------- 弹层 ---------- */
#modal { position: fixed; inset: 0; z-index: 60; background: rgba(20,35,29,.78); display: flex; align-items: center; justify-content: center; padding: 20px; }
#modalBox { width: 100%; max-width: 440px; max-height: 80vh; overflow-y: auto; background: var(--paper); color: #2b2118; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); animation: fadeUp .3s; }
#modalBox h3 { color: #7a5b23; margin-bottom: 10px; font-size: 17px; }
#modalBox p { font-size: 14px; line-height: 2; text-align: justify; }
#modalBox .m-row { display: flex; gap: 10px; margin-top: 16px; }
#modalBox .m-row .btn { flex: 1; }
#modalBox select, #modalBox textarea { width: 100%; font-size: 16px; padding: 10px; border-radius: 8px; border: 1px solid #b99c68; background: #fffdf6; color: #2b2118; margin-top: 8px; font-family: inherit; }
#modalBox textarea { min-height: 74px; resize: vertical; }

/* ---------- Toast ---------- */
#toast { position: fixed; top: 54px; left: 50%; transform: translateX(-50%); z-index: 80; background: rgba(31,99,80,.95); border: 1px solid var(--gold); color: var(--gold-lt); padding: 10px 20px; border-radius: 24px; font-size: 13px; box-shadow: var(--shadow); animation: fadeUp .25s; max-width: 86vw; text-align: center; }
#toast.err { border-color: var(--danger); color: #ffd9d2; }

/* ---------- 复盘 ---------- */
#revealBox { max-width: 620px; margin: 0 auto; }
.rv-banner { text-align: center; padding: 22px 16px; border-radius: 16px; margin-bottom: 16px; background: rgba(31,99,80,.85); border: 1px solid rgba(201,168,106,.5); }
.rv-banner h2 { font-size: 26px; letter-spacing: .14em; color: var(--gold-lt); }
.rv-banner .rv-sub { margin-top: 8px; font-size: 13px; color: var(--jade); line-height: 1.8; }
.rv-banner.caught h2 { color: var(--jade); }
.rv-banner.escaped h2 { color: var(--danger); }
.rv-sec { margin: 18px 0 8px; font-size: 15px; color: var(--gold); letter-spacing: .24em; border-left: 3px solid var(--gold); padding-left: 10px; }
.rv-vote { font-size: 13px; line-height: 2; color: rgba(244,234,214,.85); }
.rv-vote b { color: var(--gold-lt); }
.rv-round-vote { font-size: 13px; line-height: 2; color: rgba(244,234,214,.85); padding: 8px 10px; border-radius: 8px; background: rgba(44,132,104,.3); margin-bottom: 8px; }
.rv-round-vote b { color: var(--gold-lt); }
.rv-ejected { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 10px; }
.rv-e { position: relative; border-radius: 12px; padding: 12px; border: 1px solid rgba(143,208,178,.3); background: rgba(20,35,29,.5); }
.rv-e.yes { border-color: rgba(192,91,77,.55); background: rgba(192,91,77,.15); }
.rv-e.no  { border-color: rgba(143,208,178,.45);  background: rgba(143,208,178,.12); }
.rv-e .rve-r { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.rv-e .rve-n { font-size: 16px; font-weight: 700; color: var(--paper); }
.rv-e .rve-s { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 20px; margin-top: 8px; letter-spacing: .18em; }
.rv-e .rve-s.yes { background: var(--danger); color: #fff; }
.rv-e .rve-s.no  { background: var(--pine-2); color: #fff; }
.rv-e .rve-v { font-size: 12px; color: rgba(244,234,214,.7); margin-top: 6px; }

/* 投票页已出局卡 */
.round-ejected { margin: 10px 0 18px; padding: 12px; border-radius: 12px; background: rgba(20,35,29,.55); border: 1px solid rgba(143,208,178,.25); }
.round-ejected .re-title { font-size: 12px; color: var(--jade); letter-spacing: .18em; margin-bottom: 10px; }
.round-ejected .re-card { display: inline-block; margin: 0 8px 8px 0; padding: 8px 12px; border-radius: 10px; background: rgba(31,99,80,.35); border: 1px solid rgba(143,208,178,.3); }
.round-ejected .re-card.yes { border-color: rgba(192,91,77,.55); background: rgba(192,91,77,.18); }
.round-ejected .re-name { font-size: 14px; font-weight: 700; color: var(--paper); }
.round-ejected .re-stamp { display: inline-block; margin-top: 4px; font-size: 11px; letter-spacing: .18em; padding: 2px 8px; border-radius: 16px; color: #fff; background: var(--pine-2); }
.round-ejected .re-card.yes .re-stamp { background: var(--danger); }
.round-ejected .re-sub { font-size: 11px; color: rgba(244,234,214,.7); margin-top: 4px; }
.tl-item { position: relative; padding: 0 0 16px 22px; border-left: 2px solid rgba(212,134,159,.45); margin-left: 8px; animation: fadeUp .5s both; }
.tl-item::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(212,134,159,.7); }
.tl-item .tl-t { font-size: 12px; color: var(--jade); font-weight: 700; letter-spacing: .1em; }
.tl-item .tl-x { font-size: 13px; line-height: 1.9; color: rgba(244,234,214,.88); margin-top: 3px; text-align: justify; }
.secret-card { background: rgba(44,132,104,.75); border: 1px solid rgba(143,208,178,.35); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.secret-card h4 { color: var(--gold-lt); font-size: 14px; }
.secret-card h4 .killer-mark { color: var(--danger); margin-left: 8px; font-size: 12px; }
.secret-card p { font-size: 12px; color: rgba(244,234,214,.75); line-height: 1.9; margin-top: 6px; text-align: justify; }
.law-card { background: rgba(244,234,214,.95); color: #2b2118; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; border-top: 4px solid var(--pine-2); }
.law-card h4 { font-size: 14px; color: var(--pine); }
.law-card .law-tag { display: inline-block; font-size: 11px; color: #5a3b55; background: rgba(212,134,159,.22); padding: 2px 8px; border-radius: 12px; margin: 6px 0; }
.law-card p { font-size: 12px; line-height: 1.9; text-align: justify; color: #4a3b28; }
.score-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.score-table td, .score-table th { padding: 8px 6px; border-bottom: 1px solid rgba(143,208,178,.25); text-align: left; }
.score-table th { color: var(--jade); font-size: 12px; letter-spacing: .1em; }
.grade { display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; font-weight: 700; background: var(--gold); color: #2b1d24; }
.grade.S { background: linear-gradient(160deg, #f3cbd8, var(--gold)); box-shadow: 0 0 12px rgba(212,134,159,.8); }
.rv-again { text-align: center; margin: 22px 0 10px; }

/* ---------- 桌面端增强（置后，同特异性后者胜） ---------- */
@media (min-width: 760px) {
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  #playMain { max-width: 860px; }
  #chatDock { left: auto; right: 18px; bottom: 18px; width: 380px; border: 1px solid rgba(201,168,106,.4); border-radius: 16px; overflow: hidden; }
  .scr { padding-bottom: 60px; }
  .center-bar { background: none; position: static; margin-top: 14px; }
}

/* ============================================================
   v2.0 新增：HUD 工具 / 剧本选择卡 / 法条库 / 新手引导 / 观战角标
   ============================================================ */

/* ---------- HUD 工具 ---------- */
.hud-tools { display: flex; gap: 6px; margin-left: auto; margin-right: 10px; }
.hud-btn {
  min-width: 34px; height: 30px; padding: 0 8px;
  border: 1px solid rgba(201,168,106,.45); border-radius: 8px;
  background: rgba(31,99,80,.7); color: var(--gold-lt); font-size: 14px; cursor: pointer;
}
.hud-btn:active { transform: scale(.94); }
.hud-tag {
  padding: 3px 10px; border-radius: 20px; font-size: 11px; letter-spacing: .2em;
  background: rgba(212,134,159,.25); border: 1px solid var(--gold); color: var(--gold-lt); font-weight: 700;
  animation: blink 1.6s infinite;
}

/* ---------- 首页：封面与剧本选择 ---------- */
.home-cover-wrap { margin-bottom: 12px; }
.home-cover { width: 100%; height: 168px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(201,168,106,.4); }
.case-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.case-card {
  position: relative; text-align: left; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid rgba(201,168,106,.28); background: rgba(20,35,29,.6);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.case-card:active { transform: scale(.97); }
.case-card img { width: 100%; height: 92px; object-fit: cover; display: block; filter: saturate(.9); }
.case-card .cc-body { padding: 9px 11px 11px; }
.case-card h3 { font-size: 15px; color: var(--gold-lt); letter-spacing: .04em; line-height: 1.4; }
.case-card .cc-tag { font-size: 10px; color: var(--jade); margin: 3px 0 6px; line-height: 1.5; }
.case-card .cc-brief { font-size: 11px; color: rgba(244,234,214,.6); line-height: 1.7; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-card .cc-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 10px; color: rgba(244,234,214,.55); }
.case-card .cc-meta span { border: 1px solid rgba(201,168,106,.3); border-radius: 12px; padding: 1px 8px; }
.case-card.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,106,.3), 0 6px 20px rgba(201,168,106,.22); }
.case-card.selected::after {
  content: "已选"; position: absolute; top: 6px; right: 6px; z-index: 2;
  background: var(--gold); color: #241a08; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 16px;
}
.home-row2 { display: flex; gap: 10px; margin-top: 10px; }
.home-row2 .btn { flex: 1; font-size: 14px; }

/* ---------- 法条知识库 ---------- */
#scr-laws { display: flex; flex-direction: column; align-items: center; }
#lawsBox { width: 100%; max-width: 640px; }
.law-card .law-src { display: inline-block; font-size: 11px; color: var(--gold); margin-left: 8px; }
#scr-laws .center-bar { position: fixed; }

/* ---------- 新手引导 ---------- */
#guideOverlay { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
#guideOverlay:not(.hidden) { pointer-events: auto; }
.guide-mask { position: absolute; inset: 0; background: rgba(10,20,16,.78); }
.guide-glow { position: absolute; border: 3px solid var(--gold); border-radius: 14px; box-shadow: 0 0 0 2px rgba(201,168,106,.35), 0 0 30px rgba(212,134,159,.55); pointer-events: none; transition: all .28s ease; z-index: 1; }
.guide-bubble {
  position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%);
  width: min(92vw, 430px); background: var(--paper); color: #2b2118; border-radius: 16px; padding: 18px 18px 14px; box-shadow: var(--shadow); z-index: 2;
}
.guide-title { font-size: 16px; color: #7a5b23; font-weight: 700; margin-bottom: 8px; }
.guide-text { font-size: 13px; line-height: 1.9; text-align: justify; }
.guide-nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.guide-nav .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.guide-nav #guideNext { margin-left: auto; }
.guide-count { font-size: 12px; color: #8a6f45; }
