/* ==========================================================================
 * 修仙·问道 — 主题变量（UI 方案 6.1 / 6.2 / 9.1）
 * 场景切换只改 CSS 变量，150ms 过渡由 layout.css 控制。
 * ========================================================================== */
:root {
  --bg: #1a1612;
  --surface: #241f1a;
  --surface-2: #2c2620;
  --text: #ece5d8;
  --text-dim: #9a9186;
  --accent: #d4a24a;
  --accent-soft: rgba(212, 162, 74, .16);
  --danger: #d15b4b;
  --success: #6fbf7f;
  --border: #3a332c;
  --border-strong: #554a3c;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font-body: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-title: "Source Han Serif SC Heavy", "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  --fs-body: 20px;
  --fs-small: 14px;
  --fs-title: 34px;
  --line-height: 1.7;
  --radius: 8px;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

[data-scene="default"] {
  --bg: #1a1612; --surface: #241f1a; --surface-2: #2c2620;
  --accent: #d4a24a; --accent-soft: rgba(212, 162, 74, .16);
  --border: #3a332c; --border-strong: #554a3c;
}
[data-scene="cave"] {
  --bg: #0f1a24; --surface: #142430; --surface-2: #1a2e3d;
  --accent: #6bb6d1; --accent-soft: rgba(90, 167, 196, .18);
  --border: #263b49; --border-strong: #3d5a6d;
}
[data-scene="fire"] {
  --bg: #24110c; --surface: #2f1711; --surface-2: #3b1d15;
  --accent: #e88a63; --accent-soft: rgba(224, 123, 84, .18);
  --border: #4a261c; --border-strong: #6b3a2a;
}
[data-scene="thunder"] {
  --bg: #1a1230; --surface: #22183d; --surface-2: #2b1f4c;
  --accent: #c193ef; --accent-soft: rgba(176, 122, 224, .2);
  --border: #372a56; --border-strong: #55407d;
}
[data-scene="demon"] {
  --bg: #1c0a0f; --surface: #250d13; --surface-2: #301118;
  --accent: #d65d52; --accent-soft: rgba(192, 57, 43, .2);
  --border: #45161f; --border-strong: #6a2432;
}
[data-scene="spirit"] {
  --bg: #0f1f18; --surface: #142a20; --surface-2: #1a362a;
  --accent: #6fd6a1; --accent-soft: rgba(90, 191, 138, .18);
  --border: #244534; --border-strong: #386650;
}
[data-scene="blood"] {
  --bg: #1c0f14; --surface: #26141b; --surface-2: #321b24;
  --accent: #e07084; --accent-soft: rgba(212, 85, 106, .18);
  --border: #43212b; --border-strong: #622f3d;
}
[data-scene="battle"] {
  --bg: #1d1410; --surface: #291b14; --surface-2: #35231a;
  --accent: #e88a63; --accent-soft: rgba(224, 123, 84, .18);
  --border: #453024; --border-strong: #66462f;
}
[data-scene="sect"] {
  --bg: #141a16; --surface: #1b241e; --surface-2: #223027;
  --accent: #b9e3c8; --accent-soft: rgba(168, 216, 185, .16);
  --border: #2b3a32; --border-strong: #44604f;
}
[data-scene="market"] {
  --bg: #1a1510; --surface: #241c14; --surface-2: #30251a;
  --accent: #e8c477; --accent-soft: rgba(224, 180, 90, .18);
  --border: #443424; --border-strong: #66512f;
}
[data-scene="holy"] {
  --bg: #1a1810; --surface: #242014; --surface-2: #302a1a;
  --accent: #f0dda0; --accent-soft: rgba(232, 212, 138, .16);
  --border: #453c24; --border-strong: #665a35;
}
[data-scene="evil"] {
  --bg: #160f14; --surface: #21141b; --surface-2: #2b1a23;
  --accent: #c45a6e; --accent-soft: rgba(160, 58, 74, .2);
  --border: #3d1f2a; --border-strong: #5d2c3d;
}
