/* 幻笙·斗罗 · 网页重构版 — 视觉层 */
@font-face { font-family: 'XinWei'; src: url('/assets/font/STXINWEI.TTF'); font-display: swap; }
@font-face { font-family: 'LiSu'; src: url('/assets/font/SIMLI.TTF'); font-display: swap; }

:root {
  --ink: #070a11;
  --ink2: #0d1420;
  --panel: rgba(13, 19, 30, 0.94);
  --panel2: rgba(20, 28, 42, 0.92);
  --gold: #d9b25f;
  --gold-2: #f0d79a;
  --gold-dim: #8a6f38;
  --jade: #6fe0b4;
  --crimson: #c04747;
  --text: #e8e2d2;
  --muted: #98a2b3;
  --line: rgba(217, 178, 95, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #04060a;
  color: var(--text);
  font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  overflow: hidden;
  user-select: none;
}
button, input, select { font-family: inherit; color: inherit; outline: none; }
.hidden { display: none !important; }

#app { position: fixed; inset: 0; overflow: hidden; }
#frame {
  position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px;
  transform-origin: center center;
  background: #060910;
  box-shadow: 0 0 120px rgba(0, 0, 0, 0.9);
}
#stage { position: absolute; inset: 0; width: 1600px; height: 900px; }
.layer { position: absolute; inset: 0; }

/* ---------- 通用按钮 ---------- */
.btn {
  position: relative;
  padding: 10px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(40, 52, 70, 0.9), rgba(16, 23, 34, 0.95));
  color: var(--text);
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 2px;
  transition: all .18s ease;
  font-size: 14px;
}
.btn:hover { border-color: var(--gold); color: #fff6dd; box-shadow: 0 0 18px rgba(217, 178, 95, 0.25) inset; }
.btn.primary {
  background: linear-gradient(180deg, #c9a24d, #8d6a26);
  border-color: #f3ddab; color: #1a1206; font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.primary:hover { filter: brightness(1.12); box-shadow: 0 0 24px rgba(217, 178, 95, 0.45); }
.btn.ghost { background: rgba(8, 12, 18, .6); }
.btn.big { padding: 14px 30px; font-size: 18px; letter-spacing: 6px; }
.btn.small { padding: 6px 14px; font-size: 12px; letter-spacing: 1px; }
.settings-pane .btn.active { border-color: var(--gold); color: #ffe0a0; background: rgba(217, 178, 95, .12); }
.auto-potion-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border: 1px solid rgba(217, 178, 95, .18);
  background: linear-gradient(180deg, rgba(24, 33, 46, .72), rgba(9, 14, 22, .82));
}
.auto-potion-copy { min-width: 0; line-height: 1.8; }
.auto-potion-note { color: #7d8798; font-size: 11px; line-height: 1.7; margin-top: 4px; }
.auto-potion-card .btn { flex: 0 0 auto; min-width: 88px; }
.btn.tiny { padding: 4px 10px; font-size: 12px; letter-spacing: 1px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }

input, select {
  background: rgba(4, 8, 14, .86);
  border: 1px solid rgba(217, 178, 95, .22);
  padding: 10px 12px;
  border-radius: 2px;
  color: var(--gold-2);
  font-size: 14px;
  width: 100%;
}
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(217, 178, 95, .12); }
input::placeholder { color: #5c6675; }

/* 登录框：白底黑字，兼容浏览器自动填充 */
#login .login-form input:not([type="checkbox"]) {
  background: #fff;
  color: #111;
  -webkit-text-fill-color: #111;
  caret-color: #111;
  border-color: rgba(217, 178, 95, .55);
}
#login .login-form input:not([type="checkbox"])::placeholder { color: #7c8390; }
#login .login-form input:not([type="checkbox"]):focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 178, 95, .16);
}
#login .login-form input:not([type="checkbox"]):-webkit-autofill,
#login .login-form input:not([type="checkbox"]):-webkit-autofill:hover,
#login .login-form input:not([type="checkbox"]):-webkit-autofill:focus {
  -webkit-text-fill-color: #111;
  box-shadow: 0 0 0 1000px #fff inset;
}

/* ---------- 登录 ---------- */
#login { overflow: hidden; }
.login-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 45%, rgba(6, 10, 18, .15), rgba(4, 7, 12, .86) 70%),
    linear-gradient(90deg, rgba(3, 5, 9, .96) 0%, rgba(3, 5, 9, .55) 45%, rgba(3, 5, 9, .1) 70%);
}
.login-box { position: absolute; left: 110px; top: 138px; width: 520px; }
.brand { position: relative; margin-bottom: 34px; }
.brand-sub { color: var(--gold); letter-spacing: 8px; font-size: 13px; margin-bottom: 10px; }
.brand-title {
  font-family: 'XinWei', 'LiSu', serif;
  font-size: 78px; line-height: 1; letter-spacing: 6px;
  white-space: nowrap;
  color: #f2dfae;
  text-shadow: 0 0 40px rgba(217, 178, 95, .45), 0 6px 0 rgba(60, 38, 8, .8), 0 14px 40px rgba(0, 0, 0, .9);
}
.brand-line { display: flex; align-items: center; gap: 12px; color: #b9a77b; font-size: 13px; letter-spacing: 4px; margin-top: 16px; }
.brand-line span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.login-form { display: flex; flex-direction: column; gap: 16px; width: 380px; }
.login-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #a99a76; letter-spacing: 3px; }
.server-row { display: flex; align-items: center; gap: 12px; }
.server-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--line); background: rgba(10, 16, 25, .8);
  color: var(--text); cursor: pointer; border-radius: 2px; font-size: 13px;
}
.server-btn i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5d5d; box-shadow: 0 0 8px rgba(255, 93, 93, .85);
  transition: background .2s ease, box-shadow .2s ease;
}
.server-btn.is-online i { background: #56d364; box-shadow: 0 0 9px rgba(86, 211, 100, .9); }
.server-btn.is-offline i { background: #ff5d5d; box-shadow: 0 0 8px rgba(255, 93, 93, .85); }
.server-btn em { font-style: normal; font-size: 10px; color: #1b1408; background: var(--gold); padding: 1px 5px; border-radius: 2px; }
.server-online { font-size: 12px; color: var(--muted); }
.server-online.ok { color: #7fe39a; }
.server-online.bad { color: #ff7b7b; }
.login-settings-link {
  margin-left: auto; padding: 4px 0; border: 0; background: transparent; cursor: pointer;
  color: var(--gold-dim); font-size: 11px; letter-spacing: 1px;
}
.login-settings-link:hover { color: var(--gold); }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.login-form .remember-check {
  display: flex; flex-direction: row; align-items: center; gap: 7px;
  margin: 0; color: #a99a76; font-size: 11px; letter-spacing: 0; cursor: pointer; user-select: none;
}
.login-form .remember-check input[type="checkbox"] {
  width: 15px; height: 15px; min-width: 15px; margin: 0; padding: 0;
  accent-color: var(--gold); cursor: pointer;
}
.login-server-host {
  overflow: hidden; max-width: 58%; color: #5f6a7a; font-size: 10px;
  letter-spacing: .4px; text-align: right; text-overflow: ellipsis; white-space: nowrap;
}
.server-settings-form { display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.server-settings-form p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.server-settings-form label { display: flex; flex-direction: column; gap: 8px; color: #a99a76; font-size: 11px; letter-spacing: 2px; }
.server-settings-form .server-settings-tip { color: var(--gold-dim); font-size: 11px; line-height: 1.7; }
.server-settings-form .server-settings-actions { display: flex; gap: 10px; justify-content: flex-end; }
.server-settings-form .server-settings-actions .btn { min-width: 112px; }
.login-tip { font-size: 11px; color: #5f6a7a; line-height: 1.7; letter-spacing: .5px; }
.login-foot {
  position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
  font-size: 11px; letter-spacing: 3px; color: #6c7686;
}
.login-foot span { color: #4d5666; margin-left: 14px; }

/* ---------- 创建角色 ---------- */
#create {
  background: radial-gradient(ellipse at 50% 30%, rgba(26, 36, 55, .85), rgba(4, 7, 12, .97) 70%);
  padding: 44px 70px;
}
.panel-head h2 {
  font-family: 'XinWei', 'LiSu', serif; font-size: 40px; letter-spacing: 8px; color: #f2dfae;
  text-shadow: 0 0 24px rgba(217, 178, 95, .35);
}
.panel-head p { color: var(--muted); font-size: 13px; margin-top: 8px; letter-spacing: 1px; }
.wuhun-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.wuhun-card {
  position: relative; padding: 20px 20px 16px; cursor: pointer;
  border: 1px solid rgba(217, 178, 95, .18);
  background: linear-gradient(160deg, rgba(28, 38, 55, .9), rgba(9, 14, 22, .95));
  border-radius: 3px; transition: all .2s ease; overflow: hidden;
}
.wuhun-card:hover { transform: translateY(-3px); border-color: rgba(217, 178, 95, .55); }
.wuhun-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 12px 40px rgba(0, 0, 0, .6); }
.wuhun-card .glow {
  position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  filter: blur(28px); opacity: .28;
}
.wuhun-card h3 { font-family: 'XinWei', serif; font-size: 26px; letter-spacing: 3px; color: #f6e7c4; }
.awaken-art {
  float: left; width: 64px; height: 64px; margin: 1px 12px 4px 0; padding: 3px;
  border: 1px solid color-mix(in srgb, var(--wuhun-color, #d9b25f) 55%, transparent);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--wuhun-color, #d9b25f) 22%, #101722), #070b11 72%);
}
.awaken-art img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--wuhun-color, #d9b25f) 35%, transparent)); }
.awaken-trait {
  display: flex; align-items: flex-start; gap: 6px; margin: 7px 0 0; padding: 6px 8px;
  border-left: 2px solid rgba(217, 178, 95, .55); background: rgba(217, 178, 95, .055);
  color: #b9c0cc; font-size: 10px; line-height: 1.45;
}
.awaken-trait b { flex: none; color: #e8c87a; font-weight: 500; letter-spacing: .5px; }
.awaken-trait span { color: #c9c1ad; }
.wuhun-card .wt { font-size: 11px; letter-spacing: 2px; margin-top: 4px; }
.wuhun-card p.desc { font-size: 12px; color: #8e98a8; margin: 10px 0 12px; line-height: 1.6; }
.wuhun-card ul { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #b9c0cc; }
.wuhun-card ul li { display: flex; justify-content: space-between; gap: 8px; }
.wuhun-card ul li em { font-style: normal; color: #7d8798; }
.awaken-intro {
  grid-column: 1 / -1; min-height: 390px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  border: 1px solid rgba(217, 178, 95, .18);
  background: radial-gradient(ellipse at 50% 25%, rgba(217, 178, 95, .09), rgba(9, 14, 22, .9) 65%);
}
.awaken-sigil {
  width: 86px; height: 86px; display: grid; place-items: center;
  border: 1px solid rgba(217, 178, 95, .55); border-radius: 50%;
  color: var(--gold); font-family: 'XinWei', serif; font-size: 42px;
  box-shadow: 0 0 40px rgba(217, 178, 95, .2), 0 0 0 10px rgba(217, 178, 95, .035);
}
.awaken-title { margin-top: 20px; color: #f2dfae; font-family: 'XinWei', serif; font-size: 26px; letter-spacing: 6px; }
.awaken-intro p { margin-top: 12px; color: #9aa5b5; font-size: 13px; line-height: 1.9; }
.awaken-intro p b { color: var(--gold-2); font-weight: 500; }
.awaken-intro .btn { margin-top: 22px; min-width: 230px; }
.awaken-note { margin-top: 14px; color: #6f7a8a; font-size: 11px; letter-spacing: 1px; }
.faction-pick { max-width: 1100px; margin: 22px auto 0; }
.faction-pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.faction-pick-head b { color: #e8c87a; font-family: 'XinWei', serif; font-size: 16px; font-weight: 500; letter-spacing: 3px; }
.faction-pick-head span { color: #7d8798; font-size: 11px; }
.faction-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.faction-option {
  --faction: #d9b25f;
  display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 16px;
  text-align: left; cursor: pointer; color: #d8deea;
  border: 1px solid rgba(217, 178, 95, .18);
  background: linear-gradient(150deg, rgba(26, 36, 52, .78), rgba(8, 13, 21, .9));
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.faction-option:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--faction) 65%, transparent); }
.faction-option.active {
  border-color: var(--faction);
  background: linear-gradient(150deg, color-mix(in srgb, var(--faction) 14%, rgba(18, 26, 40, .9)), rgba(8, 13, 21, .94));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--faction) 45%, transparent), 0 8px 24px rgba(0, 0, 0, .28);
}
.faction-option[data-faction="103"] { --faction: #8fb7ff; }
.faction-option[data-faction="102"] { --faction: #d98f75; }
.faction-seal {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--faction) 70%, transparent);
  color: var(--faction); font-family: 'XinWei', serif; font-size: 20px; font-style: normal;
  background: radial-gradient(circle, color-mix(in srgb, var(--faction) 18%, transparent), rgba(5, 9, 15, .8) 72%);
}
.faction-option strong { display: block; color: #f0e2c2; font-size: 15px; font-weight: 500; letter-spacing: 2px; }
.faction-option small { display: block; margin-top: 3px; color: #8490a1; font-size: 10px; letter-spacing: .5px; }
.awaken-toolbar {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 14px; border: 1px solid rgba(217, 178, 95, .22);
  background: rgba(12, 18, 28, .72);
}
.awaken-progress { display: flex; flex-direction: column; gap: 3px; }
.awaken-progress b { color: var(--gold-2); font-family: 'XinWei', serif; font-size: 14px; font-weight: 500; letter-spacing: 2px; }
.awaken-progress span { color: #7f8a9b; font-size: 11px; }
.awaken-toolbar .btn { min-width: 190px; }
.awaken-toolbar .btn:disabled { opacity: .5; cursor: not-allowed; }
.awaken-badge {
  position: absolute; right: 14px; top: 14px; padding: 3px 8px;
  border: 1px solid rgba(217, 178, 95, .35); color: #d9c28d; font-size: 10px;
  background: rgba(8, 12, 19, .75);
}
.awaken-badge b { color: var(--gold-2); font-size: 13px; }
.awaken-stats {
  clear: both;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 8px;
  margin: 10px 0 2px; padding: 9px 0; border-top: 1px solid rgba(217, 178, 95, .12);
  border-bottom: 1px solid rgba(217, 178, 95, .12);
}
.awaken-stats span { color: #d8deea; font-size: 12px; }
.awaken-stats em { display: block; color: #7d8798; font-style: normal; font-size: 10px; margin-bottom: 2px; }
.awaken-growth {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px;
  margin: 8px 0 0; padding: 7px 0 0; border-top: 1px solid rgba(217, 178, 95, .1);
  color: #b9a576; font-size: 10px;
}
.awaken-growth em { flex: none; color: #7d8798; font-style: normal; letter-spacing: 1px; }
.awaken-growth span { color: #cfc0a0; }
.awaken-ring-state {
  display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 7px 9px;
  border: 1px dashed rgba(217, 178, 95, .22); background: rgba(217, 178, 95, .03);
  font-size: 10px; color: #8d97a7;
}
.awaken-ring-state b { color: #d9c28d; font-weight: 500; letter-spacing: 1px; }
.awaken-ring-state span { color: #7d8798; }
.wuhun-card .desc { max-height: 62px; overflow: auto; }
.wuhun-card .pick-btn { width: 100%; margin-top: 12px; }
.wuhun-card.active .pick-btn { border-color: var(--gold); color: #1b160c; background: var(--gold); }
.create-foot .btn:disabled { opacity: .35; cursor: not-allowed; }
.create-foot { display: flex; align-items: flex-end; gap: 16px; margin-top: 26px; }
.create-foot label { display: flex; flex-direction: column; gap: 8px; width: 340px; font-size: 12px; color: #a99a76; letter-spacing: 3px; }
.create-tip { margin-top: 12px; color: #d06a6a; font-size: 12px; }

/* ---------- 领地入口 ---------- */
.territory-panel { display: flex; flex-direction: column; gap: 15px; }
.territory-hero {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 22px;
  border: 1px solid rgba(217, 178, 95, .22);
  background: radial-gradient(ellipse at 12% 20%, rgba(217, 178, 95, .13), rgba(10, 16, 26, .92) 62%);
}
.territory-seal {
  width: 74px; height: 74px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(217, 178, 95, .7); color: var(--gold-2); font-family: 'XinWei', serif; font-size: 34px;
  background: radial-gradient(circle, rgba(217, 178, 95, .2), rgba(7, 12, 19, .9) 70%);
  box-shadow: 0 0 26px rgba(217, 178, 95, .12);
}
.territory-title { flex: 1; min-width: 0; }
.territory-title h3 { color: #f2dfae; font-family: 'XinWei', serif; font-size: 24px; font-weight: 500; letter-spacing: 3px; }
.territory-title p { margin-top: 7px; color: #9ba6b5; font-size: 12px; line-height: 1.7; }
.territory-badge {
  align-self: flex-start; padding: 4px 9px; border: 1px solid rgba(217, 178, 95, .35);
  color: #d9c28d; font-size: 10px; letter-spacing: 1px; white-space: nowrap;
}
.territory-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.territory-stats div { padding: 13px 15px; border: 1px solid rgba(217, 178, 95, .13); background: rgba(7, 12, 20, .62); }
.territory-stats em { display: block; color: #778293; font-size: 10px; font-style: normal; letter-spacing: 1px; }
.territory-stats b { display: block; margin-top: 5px; color: #ead9ae; font-size: 15px; font-weight: 500; }
.territory-note { padding: 11px 14px; border-left: 2px solid rgba(217, 178, 95, .45); background: rgba(217, 178, 95, .045); color: #aeb6c3; font-size: 11px; line-height: 1.75; }
.territory-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 3px; }
.territory-foot span { color: #6f7a8a; font-size: 11px; }
.territory-foot .btn { min-width: 180px; }
.territory-foot .btn:disabled { opacity: .45; cursor: not-allowed; }
.win-foot .territory-foot-bar { flex: 1; padding-top: 0; }

/* ---------- 势力领地：每日轮换 ---------- */
.faction-territory { --tf: #d9b25f; }
.territory-hero.faction {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 112px; gap: 20px;
  overflow: hidden; padding: 21px 22px;
  border-color: color-mix(in srgb, var(--tf) 35%, rgba(217, 178, 95, .2));
  background:
    radial-gradient(ellipse at 4% 0%, color-mix(in srgb, var(--tf) 20%, transparent), transparent 52%),
    radial-gradient(ellipse at 96% 94%, rgba(217, 178, 95, .07), transparent 45%),
    linear-gradient(118deg, rgba(13, 21, 35, .98), rgba(6, 10, 18, .98));
}
.territory-hero.faction::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 16px, rgba(255, 255, 255, .012) 16px 17px);
}
.territory-emblem {
  position: relative; width: 88px; height: 88px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--tf) 70%, transparent);
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tf) 18%, transparent), rgba(4, 8, 14, .92) 72%);
  box-shadow: 0 0 30px color-mix(in srgb, var(--tf) 16%, transparent), inset 0 0 18px rgba(0, 0, 0, .6);
}
.territory-emblem::before, .territory-emblem::after {
  content: ''; position: absolute; width: 7px; height: 7px; border: 1px solid var(--tf); transform: rotate(45deg); opacity: .65;
}
.territory-emblem::before { left: 9px; top: 9px; }
.territory-emblem::after { right: 9px; bottom: 9px; }
.territory-emblem b { color: var(--tf); font-family: 'XinWei', serif; font-size: 40px; font-weight: 400; line-height: 1; text-shadow: 0 0 18px color-mix(in srgb, var(--tf) 55%, transparent); }
.territory-emblem span { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); color: color-mix(in srgb, var(--tf) 78%, #fff); font-size: 8px; letter-spacing: 1px; white-space: nowrap; }
.territory-kicker { margin-bottom: 5px; color: color-mix(in srgb, var(--tf) 72%, #fff); font-size: 10px; letter-spacing: 2px; }
.territory-hero.faction .territory-title h3 { font-size: 28px; letter-spacing: 5px; color: #f4e7c9; }
.territory-hero.faction .territory-title p { max-width: 540px; margin-top: 6px; color: #94a2b3; }
.territory-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.territory-tags span {
  padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025);
  color: #9eabb9; font-size: 9px; letter-spacing: .8px;
}
.territory-tags span:first-child { border-color: color-mix(in srgb, var(--tf) 40%, transparent); color: color-mix(in srgb, var(--tf) 82%, #fff); }
.territory-counter {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 92px; padding: 10px 8px; border: 1px solid color-mix(in srgb, var(--tf) 26%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tf) 10%, transparent), rgba(4, 8, 14, .5));
}
.territory-counter::before {
  content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tf), transparent); opacity: .7;
}
.territory-counter b { color: var(--tf); font-family: 'XinWei', serif; font-size: 34px; font-weight: 400; line-height: 1; }
.territory-counter span { margin-top: 5px; color: #d7dde6; font-size: 11px; letter-spacing: 2px; }
.territory-counter em { margin-top: 2px; color: #6f7d8e; font-size: 9px; font-style: normal; letter-spacing: 1px; }
.territory-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 1px 2px 0; }
.territory-section-head h4 { color: #e9d6a6; font-family: 'XinWei', serif; font-size: 16px; font-weight: 400; letter-spacing: 2px; }
.territory-section-head p { margin-top: 4px; color: #6f7c8c; font-size: 10px; }
.territory-section-tag { flex: none; padding: 3px 7px; border: 1px solid rgba(217, 178, 95, .15); color: #80745e; font-size: 9px; letter-spacing: 1px; }
.territory-boss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.territory-boss {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 7px 9px;
  padding: 10px 11px 9px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(145deg, rgba(17, 27, 42, .86), rgba(7, 12, 20, .78));
}
.territory-boss::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--tf); opacity: .7; }
.territory-boss::after { content: ''; position: absolute; right: -26px; top: -26px; width: 62px; height: 62px; transform: rotate(45deg); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tf) 5%, transparent)); pointer-events: none; }
.tb-index { grid-row: 1; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid color-mix(in srgb, var(--tf) 32%, transparent); color: color-mix(in srgb, var(--tf) 82%, #fff); font-size: 10px; letter-spacing: .5px; background: rgba(0, 0, 0, .18); }
.tb-main { min-width: 0; align-self: center; }
.tb-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f0e4ca; font-family: 'XinWei', serif; font-size: 16px; font-weight: 400; letter-spacing: 1px; }
.tb-main span { display: block; margin-top: 3px; color: #7f8d9d; font-size: 9.5px; }
.tb-main span i { color: #4e5a68; font-style: normal; }
.tb-loot { grid-column: 1 / -1; min-width: 0; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .055); }
.tb-loot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.tb-loot-head em { color: #80745e; font-size: 9px; font-style: normal; letter-spacing: 1px; }
.tb-loot-head span { color: #5d6875; font-size: 8.5px; }
.tb-loot-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tb-loot-item {
  display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 2px 6px 2px 3px;
  border: 1px solid rgba(255, 255, 255, .075); background: rgba(0, 0, 0, .18);
  color: #b8c3cf; font-size: 9.5px;
}
.tb-loot-item .item-img { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.tb-loot-item b { font-weight: 400; white-space: nowrap; }
.tb-loot-item em { margin-left: 1px; color: #738290; font-size: 8px; font-style: normal; white-space: nowrap; }
.tb-loot-empty { color: #875e5e; font-size: 9.5px; }
.territory-pool { border: 1px solid rgba(217, 178, 95, .13); background: rgba(7, 12, 20, .45); }
.territory-pool summary {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none;
  color: #c9b685; font-size: 11px; letter-spacing: 1px;
}
.territory-pool summary::-webkit-details-marker { display: none; }
.territory-pool summary span { color: #d8c79d; }
.territory-pool summary em { flex: 1; color: #687585; font-size: 9px; font-style: normal; letter-spacing: .4px; }
.territory-pool summary i { color: var(--tf); font-size: 13px; font-style: normal; transition: transform .18s ease; }
.territory-pool[open] summary i { transform: rotate(180deg); }
.territory-pool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; max-height: 230px; overflow: auto; padding: 1px; background: rgba(255, 255, 255, .045); }
.tp-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 32px; padding: 5px 8px; background: #0b111b; }
.tp-no { color: #596574; font-size: 8px; }
.tp-main { min-width: 0; }
.tp-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cbd4de; font-size: 10px; font-weight: 400; }
.tp-main em { display: block; margin-top: 1px; color: #65717f; font-size: 8px; font-style: normal; }
.tp-drop { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #897c63; font-size: 8.5px; text-align: right; }
.faction-territory .territory-foot .btn { border-color: color-mix(in srgb, var(--tf) 55%, #d9b25f); box-shadow: 0 0 18px color-mix(in srgb, var(--tf) 12%, transparent); }

/* ---------- HUD ---------- */
#hud { pointer-events: none; }
#hud > * { pointer-events: auto; }
.hud-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; padding: 18px 24px; gap: 20px; }
.player-card {
  display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px;
  background: linear-gradient(120deg, rgba(10, 15, 24, .92), rgba(10, 15, 24, .55));
  border: 1px solid var(--line); border-radius: 3px; min-width: 470px;
  backdrop-filter: blur(6px); cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease;
}
.player-card:hover { border-color: rgba(217, 178, 95, .68); box-shadow: 0 0 22px rgba(217, 178, 95, .1) inset; }
.avatar {
  width: 62px; height: 62px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 50% 35%, #3b4a66, #0b111c 70%);
  border: 1px solid var(--gold);
  display: grid; place-items: center; overflow: hidden;
}
.avatar::after { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(217, 178, 95, .35); border-radius: 50%; }
.avatar span { font-family: 'XinWei', serif; font-size: 26px; color: var(--gold-2); }
.player-meta { flex: 1; }
.player-meta .row1 { display: flex; align-items: center; gap: 10px; }
.player-meta strong { font-size: 17px; letter-spacing: 1px; color: #f4ead2; }
.lv { font-size: 11px; color: var(--gold); border: 1px solid rgba(217, 178, 95, .4); padding: 1px 7px; border-radius: 2px; }
.lv b { font-size: 13px; }
.wuhun-tag { font-size: 11px; color: var(--jade); }
.bars { display: flex; flex-direction: column; gap: 4px; margin-top: 7px; width: 300px; }
.bar { position: relative; height: 13px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .06); border-radius: 2px; overflow: hidden; }
.bar i { position: absolute; inset: 0; transform-origin: left; transition: width .35s ease; display: block; }
.bar.hp i { background: linear-gradient(90deg, #7d1f1f, #d94b4b); }
.bar.mp i { background: linear-gradient(90deg, #1f3d6d, #4b8ad9); }
.bar.exp i { background: linear-gradient(90deg, #8a6a1f, #e3c363); }
.bar span { position: absolute; inset: 0; font-size: 9px; text-align: center; line-height: 12px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 2px #000; letter-spacing: .5px; }
.money { text-align: right; font-size: 12px; color: var(--gold-2); padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .08); }
.money em { display: block; font-style: normal; font-size: 10px; color: #7f8896; letter-spacing: 2px; margin-bottom: 3px; }
.money b { font-size: 17px; }

.map-title { flex: 1; text-align: center; padding-top: 6px; }
.map-title span {
  display: block; font-family: 'XinWei', serif; font-size: 30px; letter-spacing: 8px; color: #f3e3bd;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9), 0 0 30px rgba(217, 178, 95, .25);
}
.map-title em { font-style: normal; font-size: 11px; color: #9aa5b5; letter-spacing: 4px; }
.hud-actions { display: flex; align-items: flex-start; gap: 10px; flex: none; }
.hud-action { position: relative; }
.hud-action b { font-size: 13px; letter-spacing: 1px; }
.hud-action em { font-size: 10px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 2px; cursor: pointer;
  background: rgba(10, 15, 24, .8); border: 1px solid var(--line); color: var(--gold-2);
  font-size: 16px; display: grid; place-items: center;
}
.icon-btn:hover { border-color: var(--gold); background: rgba(30, 40, 55, .9); }
.dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; background: #e05a5a; border-radius: 50%; box-shadow: 0 0 6px #e05a5a; }

.hud-left { position: absolute; left: 24px; top: 128px; width: 240px; display: flex; flex-direction: column; gap: 12px; }
.player-panel, .team-panel, .target-panel {
  background: linear-gradient(160deg, rgba(10, 15, 24, .9), rgba(8, 12, 20, .7));
  border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; backdrop-filter: blur(6px);
}
.player-panel.hidden { display: none; }
.player-panel .panel-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.player-panel .panel-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-panel .panel-label em { font-style: normal; color: #8d97a7; font-size: 10px; letter-spacing: 1px; flex: none; }
.player-row { display: flex; align-items: center; gap: 5px; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.player-row:last-child { border: 0; }
.faction-icon { width: 15px; height: 15px; flex: none; display: inline-grid; place-items: center; color: #9aa5b5; }
.faction-icon svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.faction-icon.fx-wuhun { color: #b58cff; filter: drop-shadow(0 0 3px rgba(181, 140, 255, .4)); }
.faction-icon.fx-tiandou { color: #78c8ff; filter: drop-shadow(0 0 3px rgba(120, 200, 255, .35)); }
.faction-icon.fx-xingluo { color: #ff8b7c; filter: drop-shadow(0 0 3px rgba(255, 139, 124, .35)); }
.faction-icon.fx-none { color: #66707f; }
.player-row .player-name { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 4px; color: #f0e2c2; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-row .player-name .self-tag { color: #e3c363; font-size: 9px; flex: none; }
.player-row .player-name .player-lv { color: #8d97a7; font-size: 9.5px; font-style: normal; flex: none; }
.player-attack { flex: none; height: 19px; min-width: 34px; padding: 0 5px; border: 1px solid rgba(201, 185, 143, .42); border-radius: 2px; background: rgba(201, 185, 143, .08); color: #e3c363; font: 9.5px/1 "Microsoft YaHei"; cursor: pointer; letter-spacing: .5px; }
.player-attack:hover:not(:disabled) { border-color: #e3c363; background: rgba(201, 185, 143, .18); }
.player-attack:disabled { opacity: .32; cursor: default; }
.player-actions-btn { flex: none; width: 20px; height: 19px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 2px; background: rgba(255,255,255,.03); color: #9aa5b5; font: 13px/1 "Microsoft YaHei"; cursor: pointer; }
.player-actions-btn:hover { border-color: var(--gold-dim); color: var(--gold); }
.player-menu { position: fixed; z-index: 9999; width: 156px; padding: 6px; background: linear-gradient(160deg, rgba(13, 19, 30, .98), rgba(8, 12, 20, .98)); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
.player-menu-head { display: flex; align-items: center; gap: 5px; padding: 4px 5px 7px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
.player-menu-head b { min-width: 0; flex: 1; color: #f0e2c2; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-menu-head em { color: #8d97a7; font-size: 9.5px; font-style: normal; }
.player-menu button { width: 100%; display: flex; align-items: center; gap: 7px; padding: 6px 6px; border: 0; background: transparent; color: #c9d1dc; font: 11px/1.2 "Microsoft YaHei"; text-align: left; cursor: pointer; border-radius: 2px; }
.player-menu button:hover:not(:disabled) { background: rgba(201, 185, 143, .1); color: #f0e2c2; }
.player-menu button:disabled { opacity: .3; cursor: default; }
.player-menu button i { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(201,185,143,.3); border-radius: 2px; color: var(--gold-dim); font-style: normal; font-size: 9px; flex: none; }
.other-player-head { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.other-player-head .faction-icon { width: 26px; height: 26px; }
.other-player-head div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.other-player-head b { color: #f0e2c2; font-size: 18px; font-weight: 500; }
.other-player-head em { color: #8d97a7; font-size: 11px; font-style: normal; }
.other-team { color: var(--gold-dim); font-size: 10px; letter-spacing: 1px; }
.other-player-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 12px 0; }
.other-player-grid div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.other-player-grid span { color: #7d8798; }
.other-player-grid b { color: #e6dcc4; font-weight: 500; }
.other-player-equip-title { color: var(--gold-dim); font-size: 10px; letter-spacing: 2px; margin-bottom: 6px; }
.other-player-equip { display: flex; flex-wrap: wrap; gap: 6px; }
.other-equip { padding: 3px 6px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); color: #b9c2cf; font-size: 10px; }
.other-equip.muted { color: #66707f; }
.player-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .06); }
.player-pager button { min-width: 26px; height: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #c9b98f; cursor: pointer; font-size: 12px; line-height: 1; }
.player-pager button:hover:not(:disabled) { border-color: var(--gold-dim); color: var(--gold); }
.player-pager button:disabled { opacity: .3; cursor: default; }
.player-pager span { color: #8d97a7; font-size: 10px; letter-spacing: 1px; }
.player-empty { color: #7d8798; font-size: 11px; padding: 8px 0; }
.panel-label { font-size: 10px; letter-spacing: 3px; color: var(--gold-dim); margin-bottom: 8px; }
.team-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.team-row:last-child { border: 0; }
.team-row b { color: #f0e2c2; font-weight: 500; }
.team-row em { font-style: normal; margin-left: auto; color: #8d97a7; font-size: 11px; }

.hud-bottom { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; align-items: flex-end; gap: 22px; }
.chat { width: 470px; display: flex; flex-direction: column; gap: 6px; }
.chat-log {
  height: 132px; overflow-y: auto; font-size: 11.5px; line-height: 1.7; color: #b9c2cf;
  background: linear-gradient(180deg, rgba(4, 7, 12, 0), rgba(4, 7, 12, .72) 30%);
  padding: 12px 10px 6px; border-radius: 3px;
}
.chat-log p { margin: 0; word-break: break-all; }
.chat-log .who { color: #d9b25f; margin-right: 6px; }
.chat-log .sys { color: #79c7a2; }
.chat-log .err { color: #e07a7a; }
.chat-input { display: flex; gap: 6px; }
.chat-input select { width: 74px; padding: 6px 4px; font-size: 12px; }
.chat-input input { flex: 1; padding: 7px 10px; font-size: 12px; }
.dock { margin-left: auto; display: flex; gap: 10px; }
.dock-btn {
  width: 78px; height: 58px; cursor: pointer; border-radius: 3px;
  background: linear-gradient(180deg, rgba(24, 33, 47, .92), rgba(8, 13, 21, .95));
  border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: all .15s ease;
}
.dock-btn:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.dock-btn b { font-size: 14px; font-weight: 500; letter-spacing: 2px; color: #efe2c4; }
.dock-btn em { font-style: normal; font-size: 9px; color: #7d8798; letter-spacing: 1px; }

.scene-actions { position: absolute; right: 24px; top: 100px; display: flex; flex-direction: column; gap: 8px; }
.scene-actions .btn { min-width: 132px; text-align: left; font-size: 13px; padding: 9px 14px; }
.scene-actions .btn small { display: block; font-size: 9px; letter-spacing: 1px; color: #8d97a7; margin-top: 2px; }
/* ---------- 战斗 ---------- */
#battle-ui { pointer-events: none; }
#battle-ui > * { pointer-events: auto; }
.battle-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 18px; padding: 16px 26px; }
.battle-title { font-family: 'XinWei', serif; font-size: 26px; letter-spacing: 6px; color: #f0d79a; text-shadow: 0 2px 10px #000; }
.battle-turn { flex: 1; text-align: center; font-size: 13px; letter-spacing: 4px; color: #ffe9b0; text-shadow: 0 0 18px rgba(255, 210, 120, .6); }
.battle-auto { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.battle-auto label { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #c5cfdd; cursor: pointer; user-select: none; }
.battle-auto input { width: 14px; height: 14px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.battle-auto label:has(input:checked) { color: #ffe0a0; }
.battle-targets {
  position: absolute; left: 50%; transform: translateX(-50%); top: 78px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
  max-width: min(760px, 70vw); padding: 8px 10px;
  background: linear-gradient(160deg, rgba(11, 18, 29, .9), rgba(5, 9, 15, .84));
  border: 1px solid rgba(217, 178, 95, .22);
}
.battle-targets.hidden { display: none; }
.battle-targets .target-label { color: #8d97a7; font-size: 10px; letter-spacing: 2px; align-self: center; }
.battle-target-btn {
  border: 1px solid rgba(217, 178, 95, .24); background: rgba(22, 30, 42, .82);
  color: #dfe7f2; padding: 5px 9px; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.battle-target-btn.active { border-color: #ffd166; color: #ffe9b0; box-shadow: 0 0 12px rgba(255, 209, 102, .28); }
.battle-target-btn.dead { color: #ff7b7b; border-color: rgba(255, 80, 80, .38); text-decoration: line-through; cursor: not-allowed; opacity: .82; }
.battle-target-btn .target-sect { color: #8d97a7; font-size: 9px; margin-left: 4px; }
.battle-skills { position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.battle-skill-row { display: grid; grid-template-columns: repeat(9, 78px); gap: 8px; }
.battle-log, .battle-status {
  position: absolute; top: 86px; pointer-events: auto;
  background: linear-gradient(160deg, rgba(11, 18, 29, .91), rgba(5, 9, 15, .86));
  border: 1px solid rgba(217, 178, 95, .26);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .3) inset;
  backdrop-filter: blur(5px);
}
.battle-log { left: 24px; width: 330px; height: 218px; display: flex; flex-direction: column; }
.battle-status { right: 24px; width: 304px; max-height: 258px; display: flex; flex-direction: column; }
.battle-log::before, .battle-status::before {
  content: ''; position: absolute; left: -1px; top: -1px; width: 15px; height: 15px;
  border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); pointer-events: none;
}
.battle-log::after, .battle-status::after {
  content: ''; position: absolute; right: -1px; bottom: -1px; width: 15px; height: 15px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); pointer-events: none;
}
.battle-log-head, .battle-status-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px 8px;
  border-bottom: 1px solid rgba(217, 178, 95, .16);
  font-family: 'XinWei', serif; font-size: 15px; letter-spacing: 3px; color: #f0d79a;
}
.battle-log-head i {
  margin-left: auto; font-style: normal; font-family: 'Microsoft YaHei', sans-serif;
  font-size: 9px; letter-spacing: 2px; color: #7de0b0; display: inline-flex; align-items: center; gap: 5px;
}
.battle-log-head i::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: #7de0b0;
  box-shadow: 0 0 7px rgba(125, 224, 176, .9); animation: battle-live 1.6s ease-in-out infinite;
}
.battle-status-head em {
  margin-left: auto; font-style: normal; font-family: 'Microsoft YaHei', sans-serif;
  font-size: 10px; letter-spacing: 1px; color: #8d97a7;
}
.battle-log-list {
  flex: 1; overflow-y: auto; padding: 8px 11px 9px;
  font-size: 12.5px; line-height: 1.65; scrollbar-width: thin;
  scrollbar-color: rgba(217, 178, 95, .35) transparent;
}
.battle-log-line { display: flex; gap: 8px; margin: 0 0 3px; }
.battle-log-line time {
  flex: 0 0 auto; padding-top: 2px; color: #647184; font-size: 10px;
  font-variant-numeric: tabular-nums; letter-spacing: .2px;
}
.battle-log-line span { color: #c5cfdd; word-break: break-word; }
.battle-log-line.log-system span { color: #d9b25f; }
.battle-log-line.log-skill span { color: #ffe0a0; }
.battle-log-line.log-heal span, .battle-log-line.log-buff span { color: #7de0b0; }
.battle-log-line.log-dot span, .battle-log-line.log-death span, .battle-log-line.log-lose span, .battle-log-line.log-debuff span { color: #ff9696; }
.battle-log-line.log-control span { color: #ffd166; }
.battle-log-line.log-miss span { color: #9fd8ed; }
.battle-log-line.log-win span { color: #ffe3a1; }
.battle-status-list {
  padding: 7px 11px 9px; overflow-y: auto; max-height: 208px;
  scrollbar-width: thin; scrollbar-color: rgba(217, 178, 95, .35) transparent;
}
.battle-status-empty { padding: 8px 2px; color: #758194; font-size: 11.5px; letter-spacing: .5px; }
.battle-status-row { padding: 7px 0 8px; border-bottom: 1px dashed rgba(217, 178, 95, .12); }
.battle-status-row:last-child { border-bottom: 0; }
.battle-status-unit { display: flex; align-items: baseline; gap: 7px; margin-bottom: 5px; }
.battle-status-unit b { color: #e8e2d2; font-size: 12.5px; font-weight: 600; letter-spacing: .5px; }
.battle-status-row.me .battle-status-unit b { color: #ffe0a0; }
.battle-status-unit small { color: #758194; font-size: 9.5px; letter-spacing: 1px; }
.battle-status-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.status-chip {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 3px 7px;
  border: 1px solid; border-radius: 2px; font-size: 11px; line-height: 1.2; white-space: nowrap;
}
.status-chip b { font-weight: 500; letter-spacing: .5px; }
.status-chip em {
  font-style: normal; font-size: 10.5px; opacity: .92;
  font-variant-numeric: tabular-nums; letter-spacing: .2px;
}
.status-chip.status-stun {
  color: #ffd88a; border-color: rgba(255, 205, 95, .45);
  background: rgba(105, 72, 12, .30); box-shadow: 0 0 12px rgba(255, 190, 60, .08) inset;
}
.status-chip.status-dot {
  color: #ff9e9e; border-color: rgba(220, 85, 85, .5);
  background: rgba(95, 19, 24, .32); box-shadow: 0 0 12px rgba(220, 85, 85, .08) inset;
}
.status-chip.status-state {
  color: #d8c2ff; border-color: rgba(171, 139, 230, .45);
  background: rgba(55, 35, 86, .32);
}
.status-chip.status-buff {
  color: #9fe7b5; border-color: rgba(84, 198, 126, .48);
  background: rgba(19, 72, 46, .34); box-shadow: 0 0 12px rgba(90, 220, 140, .07) inset;
}
.status-chip.status-debuff {
  color: #ffae92; border-color: rgba(226, 106, 73, .5);
  background: rgba(86, 31, 22, .34); box-shadow: 0 0 12px rgba(240, 120, 80, .07) inset;
}
@keyframes battle-live { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.skill-btn {
  position: relative; width: 78px; height: 64px; cursor: pointer; border-radius: 4px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(48, 62, 84, .95), rgba(9, 14, 22, .98));
  border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: border-color .15s ease, transform .15s ease, opacity .15s ease;
}
.skill-btn:hover { border-color: var(--gold); transform: translateY(-3px); }
.skill-btn.disabled { opacity: .4; filter: grayscale(.7); cursor: not-allowed; pointer-events: none; transform: none; }
.skill-btn b { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: .5px; color: #f2e4c4; }
.skill-btn small { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8.5px; color: #8d97a7; }
.skill-btn .skill-key {
  position: absolute; top: 3px; left: 5px; z-index: 1; font-size: 9px; line-height: 1;
  color: #d9b25f; letter-spacing: .4px; text-shadow: 0 1px 3px #000;
}
.skill-btn.empty { border-style: dashed; background: rgba(10, 16, 25, .55); }
.skill-btn.empty b { color: #6d7787; font-size: 11px; }
.skill-btn.empty small { color: #586273; }
.battle-skills.editing .skill-btn { cursor: grab; border-color: rgba(217, 178, 95, .55); }
.battle-skills.editing .skill-btn.empty { cursor: pointer; border-color: rgba(125, 224, 176, .35); }
.battle-skills.editing .skill-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(217, 178, 95, .2), 0 8px 20px rgba(0, 0, 0, .35); }
.skill-btn.dragging { opacity: .45; }
.skill-btn.drag-over { border-color: #7de0b0; box-shadow: 0 0 0 1px rgba(125, 224, 176, .5), 0 0 18px rgba(125, 224, 176, .18); }
.skill-btn .cd { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); display: grid; place-items: center; font-size: 18px; color: #ffd98a; border-radius: 4px; }
.battle-auto .btn.active { border-color: var(--gold); color: #ffe0a0; background: rgba(217, 178, 95, .12); }

/* 战斗技能布置 */
.loadout-picker { display: flex; flex-direction: column; gap: 12px; }
.loadout-picker-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid rgba(217, 178, 95, .16); }
.loadout-picker-head > span { color: #f0d79a; font-family: 'XinWei', serif; font-size: 16px; letter-spacing: 1px; }
.loadout-picker-head > em { color: #7d8798; font-size: 10px; font-style: normal; }
.loadout-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.loadout-option {
  min-height: 66px; padding: 9px 10px; text-align: left; cursor: pointer;
  border: 1px solid rgba(217, 178, 95, .18); background: rgba(255, 255, 255, .025);
  display: flex; flex-direction: column; gap: 3px; color: #d9e1ec; font: inherit;
}
.loadout-option:hover { border-color: var(--gold); background: rgba(217, 178, 95, .07); }
.loadout-option.current { border-color: rgba(125, 224, 176, .55); background: rgba(125, 224, 176, .06); }
.loadout-option .lo-state { color: #8d97a7; font-size: 9px; letter-spacing: .5px; }
.loadout-option.current .lo-state { color: #7de0b0; }
.loadout-option b { color: #f2e4c4; font-size: 13px; font-weight: 500; letter-spacing: .5px; }
.loadout-option small { color: #7d8798; font-size: 9.5px; }
.loadout-empty { grid-column: 1 / -1; padding: 26px 16px; text-align: center; color: #7d8798; font-size: 12px; line-height: 1.9; border: 1px dashed rgba(217, 178, 95, .18); }
.loadout-picker-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(217, 178, 95, .12); }
.battle-result {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  min-width: 420px; padding: 26px 34px; text-align: center;
  background: rgba(8, 12, 20, .95); border: 1px solid var(--gold);
  box-shadow: 0 0 60px rgba(0, 0, 0, .8), 0 0 0 1px rgba(217, 178, 95, .2) inset;
}
.battle-result h3 { font-family: 'XinWei', serif; font-size: 34px; letter-spacing: 8px; color: #f5e2b4; margin-bottom: 12px; }
.battle-result p { font-size: 13px; color: #b9c2cf; line-height: 1.8; white-space: pre-line; }
.battle-result .loot { margin-top: 8px; color: var(--jade); font-size: 12px; }
.battle-result .auto-hint { margin-top: 16px; color: #8d97a7; font-size: 11px; letter-spacing: 1px; }

/* ---------- 窗口 ---------- */
.windows { position: absolute; inset: 0; pointer-events: none; }
.windows .win, .windows .window { pointer-events: auto; }
.window {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 900px; max-height: 720px; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(14, 20, 31, .98), rgba(7, 10, 17, .99));
  border: 1px solid rgba(217, 178, 95, .45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .6) inset;
  border-radius: 3px;
}
.window::before, .window::after {
  content: ''; position: absolute; width: 18px; height: 18px; border: 1px solid var(--gold); pointer-events: none;
}
.window::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.window::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.win-head {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid rgba(217, 178, 95, .18);
}
.win-head h3 { font-family: 'XinWei', serif; font-size: 24px; letter-spacing: 4px; color: #f2dfae; }
.win-head .sub { font-size: 11px; color: #8d97a7; letter-spacing: 1px; }
.win-close { margin-left: auto; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .12); color: #aab3c0; background: transparent; }
.win-close:hover { border-color: var(--crimson); color: #ffb4b4; }
.win-body { padding: 18px 20px; overflow: auto; }
.win-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid rgba(217, 178, 95, .18); }
.win-foot .right { margin-left: auto; display: flex; gap: 10px; }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.tab { padding: 6px 16px; font-size: 12px; letter-spacing: 1px; cursor: pointer; border: 1px solid transparent; color: #8d97a7; background: transparent; }
.tab.active { color: var(--gold-2); border-bottom-color: var(--gold); background: rgba(217, 178, 95, .06); }

/* 背包 */
.bag-toolbar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 10px;
  border: 1px solid rgba(217, 178, 95, .16); background: rgba(7, 12, 20, .42);
}
.bag-act-group { display: flex; gap: 8px; flex: none; }
.bag-act-hint {
  flex: 1; min-width: 0; margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #8d97a7; font-size: 11px;
}
.bag-toolbar .btn[disabled] { opacity: .38; cursor: not-allowed; }
.bag-wrap { display: flex; gap: 18px; }
.bag-grid { display: grid; grid-template-columns: repeat(6, 64px); grid-auto-rows: 64px; gap: 6px; }
.slot {
  position: relative; border: 1px solid rgba(217, 178, 95, .16); background: rgba(255, 255, 255, .025);
  border-radius: 2px; cursor: pointer; overflow: hidden; display: grid; place-items: center;
}
.slot:hover { border-color: var(--gold); background: rgba(217, 178, 95, .08); }
.slot.selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(217, 178, 95, .7), 0 0 14px rgba(217, 178, 95, .16); }
.slot.empty { cursor: default; background: rgba(0, 0, 0, .25); }
.slot.empty:hover { border-color: rgba(217, 178, 95, .16); background: rgba(0, 0, 0, .25); }
.slot .icon { font-size: 24px; opacity: .9; display: grid; place-items: center; width: 100%; height: 100%; }
.slot.bone-cell {
  border-color: color-mix(in srgb, var(--bone-q) 62%, rgba(217, 178, 95, .2));
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--bone-q) 38%, transparent) 0%, color-mix(in srgb, var(--bone-q) 14%, transparent) 48%, rgba(0, 0, 0, .30) 100%);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--bone-q) 24%, transparent);
}
.slot.bone-cell .item-img { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--bone-q) 72%, transparent)) drop-shadow(0 2px 3px rgba(0, 0, 0, .75)); }
.item-img { width: 46px; height: 46px; object-fit: contain; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .75)); }
.slot .item-img { width: 48px; height: 48px; margin-top: -2px; }
.item-img.bone-img { width: 44px; height: 44px; }
.item-icon-fallback { color: #8d97a7; font-size: 20px; }
.shop-row .item-img, .trade-row .item-img, .mail-row .item-img { width: 34px; height: 34px; }
.item-line .item-img { width: 20px; height: 20px; vertical-align: middle; margin-right: 4px; }
.slot .cnt { position: absolute; right: 3px; bottom: 2px; font-size: 10px; color: #f0e2c2; text-shadow: 0 1px 2px #000; }
.slot .refmark { position: absolute; left: 3px; top: 2px; font-size: 9px; color: #7de0b0; }
.slot .colmark { position: absolute; left: 3px; top: 2px; font-size: 9px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.slot .nm { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; text-align: center; background: rgba(0, 0, 0, .55); color: #cfd6e2; padding: 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .slot-lock {
  position: absolute; z-index: 3; right: 2px; top: 2px; width: 18px; height: 18px;
  display: grid; place-items: center; border-radius: 3px;
  border: 1px solid rgba(255, 212, 94, .75);
  background: rgba(9, 12, 16, .9); box-shadow: 0 0 7px rgba(255, 201, 92, .3);
  color: #ffd45e; pointer-events: none;
}
.slot .slot-lock svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.item-set { margin-top: 6px; padding: 5px 7px; border: 1px solid rgba(142, 240, 122, .18); background: rgba(91, 190, 122, .06); color: #9fe6b2; font-size: 11px; line-height: 1.55; }
.item-set.off { border-color: rgba(224, 160, 122, .22); background: rgba(224, 160, 122, .06); color: #e0a07a; }
.item-set b { color: #ffd45e; font-weight: 600; }
.item-set span { color: #b8c4d2; }
.bag-side { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.item-detail { border-top: 1px solid rgba(217, 178, 95, .18); padding-top: 12px; font-size: 12px; line-height: 1.8; color: #b9c2cf; min-height: 120px; }
.item-detail h4 { color: var(--gold-2); font-size: 15px; margin-bottom: 4px; letter-spacing: 1px; }
.item-detail .tags { color: #8d97a7; font-size: 11px; }
.item-detail .attrs { color: #7de0b0; }
.item-detail .ring-req { font-size: 11px; margin-top: 4px; }
.item-detail .ring-req.ok { color: #7de0b0; }
.item-detail .ring-req.bad { color: #e18b8b; }
.bind-note {
  margin-top: 8px; padding: 6px 8px; border-left: 2px solid rgba(217, 178, 95, .6);
  background: rgba(217, 178, 95, .06); color: #d9c28d; font-size: 11px;
}
.detail-actions { display: flex; gap: 8px; margin-top: 10px; }

/* 角色面板 */
.character-wrap {
  display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 18px; align-items: stretch;
}
.char-left, .char-right {
  position: relative; min-width: 0; padding: 0 16px 14px; overflow: hidden;
  border: 1px solid rgba(217, 178, 95, .17);
  background:
    linear-gradient(155deg, rgba(19, 28, 43, .72), rgba(7, 11, 18, .58)),
    radial-gradient(circle at 20% 0%, rgba(217, 178, 95, .035), transparent 42%);
}
.char-left::before, .char-right::before {
  content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 34px; pointer-events: none;
  border-left: 1px solid rgba(217, 178, 95, .5); border-top: 1px solid rgba(217, 178, 95, .5);
}
.char-left::after, .char-right::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; pointer-events: none;
  border-right: 1px solid rgba(217, 178, 95, .32); border-bottom: 1px solid rgba(217, 178, 95, .32);
}
.char-loading { padding: 40px 10px; text-align: center; color: #8d97a7; font-size: 12px; letter-spacing: 1px; }

.char-pane-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; border-bottom: 1px solid rgba(217, 178, 95, .2);
}
.char-pane-head h3 {
  font-family: 'XinWei', serif; font-size: 17px; font-weight: 400; letter-spacing: 3px;
  color: #f0d79a; text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}
.char-pane-head span { margin-left: 8px; color: #6f7a8a; font-size: 9px; letter-spacing: 1.5px; }
.char-pane-head > em {
  flex: none; padding: 2px 7px; border: 1px solid rgba(217, 178, 95, .32);
  color: #c9ab6b; font-size: 9px; font-style: normal; letter-spacing: 1px;
}

.char-hero { display: flex; align-items: center; gap: 14px; padding: 10px 0 8px; }
.char-avatar {
  position: relative; flex: none; width: 78px; height: 78px; display: grid; place-items: center;
  border: 1px solid var(--wuhun-color, #d9b25f);
  background:
    radial-gradient(circle at 50% 34%, rgba(217, 178, 95, .2), rgba(8, 12, 20, .94) 68%),
    linear-gradient(145deg, rgba(217, 178, 95, .08), transparent 60%);
  box-shadow: 0 0 24px rgba(217, 178, 95, .08), 0 0 0 3px rgba(217, 178, 95, .035) inset;
}
.char-avatar::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(217, 178, 95, .18); pointer-events: none; }
.char-avatar span { font-family: 'XinWei', serif; font-size: 38px; line-height: 1; color: #f5e2b4; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.char-avatar i { position: absolute; inset: 9px; border: 1px dashed rgba(217, 178, 95, .22); }
.char-avatar em {
  position: absolute; right: -1px; bottom: -1px; min-width: 22px; padding: 1px 4px;
  border: 1px solid rgba(217, 178, 95, .42); background: rgba(7, 11, 18, .95);
  color: #f0d79a; font-size: 9px; font-style: normal; text-align: center; letter-spacing: .5px;
}
.char-identity { flex: 1; min-width: 0; }
.char-title-row { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.char-title-row h2 {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: 'XinWei', serif; font-size: 28px; font-weight: 400; letter-spacing: 3px; color: #f5e2b4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.char-lv { flex: none; padding: 2px 7px; border: 1px solid rgba(217, 178, 95, .35); color: var(--gold-2); font-size: 10px; letter-spacing: 1px; }
.char-wuhun, .char-sect { display: flex; align-items: baseline; gap: 7px; min-width: 0; margin-top: 6px; font-size: 11px; color: #8d97a7; }
.char-wuhun span, .char-sect span { flex: none; color: #6f7a8a; font-size: 9px; letter-spacing: 2px; }
.char-wuhun b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; letter-spacing: 1px; }
.char-wuhun em { flex: none; color: #8d97a7; font-size: 10px; font-style: normal; }
.char-sect b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c6d0de; font-weight: 500; }

.char-growth {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
  padding: 5px 9px; border: 1px solid rgba(217, 178, 95, .12);
  background: linear-gradient(90deg, rgba(217, 178, 95, .05), transparent);
  color: #8a7a58; font-size: 9px; letter-spacing: .6px; white-space: nowrap;
}
.char-growth span { flex: none; color: #a99a76; }
.char-growth b { color: #d8c79f; font-size: 10px; font-weight: 500; }
.char-growth b + b { border-left: 1px solid rgba(217, 178, 95, .16); padding-left: 10px; }

.char-ledger {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px;
  padding: 2px 0 4px; border-top: 1px solid rgba(217, 178, 95, .12); border-bottom: 1px solid rgba(217, 178, 95, .12);
}.char-ledger-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0;
  padding: 5px 0; border-bottom: 1px dashed rgba(217, 178, 95, .09);
  color: #7d8798; font-size: 10px; letter-spacing: .5px;
}
.char-ledger-item:nth-last-child(-n+2) { border-bottom: 0; }
.char-ledger-item span { flex: none; color: #8a7a58; letter-spacing: 1px; }
.char-ledger-item b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e5dcc5; font-size: 11px; font-weight: 500; }

.char-attr-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(217, 178, 95, .12); }
.char-attr-group { min-width: 0; }
.char-attr-group h4 {
  display: flex; align-items: center; gap: 7px; margin-bottom: 3px;
  color: #d9b25f; font-size: 11px; font-weight: 500; letter-spacing: 2px;
}
.char-attr-group h4 span { width: 5px; height: 5px; transform: rotate(45deg); background: rgba(217, 178, 95, .75); box-shadow: 0 0 8px rgba(217, 178, 95, .35); }
.char-attr {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0;
  padding: 5px 0; border-bottom: 1px dashed rgba(217, 178, 95, .09);
  color: #7d8798; font-size: 10px;
}
.char-attr span { flex: none; letter-spacing: .8px; }
.char-attr b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eadfc6; font-size: 12px; font-weight: 500; text-align: right; }
.char-attr b em { margin-left: 2px; color: #7d8798; font-size: 9px; font-style: normal; }

.char-recovery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(217, 178, 95, .12); }
.char-recovery-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 6px 9px; border: 1px solid rgba(217, 178, 95, .14);
  background: linear-gradient(90deg, rgba(217, 178, 95, .04), transparent);
  color: #7d8798; font-size: 9px; letter-spacing: .8px;
}
.char-recovery-item b { color: #7de0b0; font-size: 11px; font-weight: 500; white-space: nowrap; }
.char-recovery-item b em { color: #6f7a8a; font-size: 8px; font-style: normal; }

.char-right { display: flex; flex-direction: column; }
.bone-count { display: flex; align-items: baseline; gap: 3px; flex: none; color: #7d8798; font-size: 10px; }
.bone-count b { font-family: 'XinWei', serif; font-size: 26px; font-weight: 400; line-height: 1; color: var(--gold-2); }
.bone-count em { margin-left: 3px; color: #6f7a8a; font-size: 9px; font-style: normal; }
.bone-map { position: relative; flex: 1; width: 100%; max-width: 540px; height: 520px; margin: 6px auto 0; }
.bone-silhouette {
  position: absolute; left: 50%; top: 8px; width: 228px; height: 440px; transform: translateX(-50%);
  pointer-events: none; opacity: .95;
}
.bone-slot {
  position: absolute; z-index: 2; width: 138px; min-height: 54px; padding: 5px 9px 6px;
  border: 1px solid rgba(217, 178, 95, .22);
  background: linear-gradient(145deg, rgba(15, 23, 36, .94), rgba(7, 11, 18, .84));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.bone-slot:hover { border-color: var(--gold); background: linear-gradient(145deg, rgba(24, 34, 49, .97), rgba(10, 15, 24, .9)); }
.bone-slot.filled { border-color: var(--bone-color); box-shadow: 0 4px 16px rgba(0, 0, 0, .3), 0 0 14px rgba(217, 178, 95, .07); cursor: pointer; }
.bone-slot.empty { border-style: dashed; border-color: rgba(217, 178, 95, .16); background: rgba(255, 255, 255, .012); }
.bone-slot .bone-pos { display: block; color: #8a6f38; font-size: 9px; letter-spacing: 2px; line-height: 1.2; }
.bone-slot b { display: block; min-width: 0; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e8dcc0; font-size: 12px; font-weight: 500; letter-spacing: .5px; }
.bone-slot em { display: block; min-width: 0; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6f7a8a; font-size: 9px; font-style: normal; }
.bone-slot.filled em { color: var(--bone-color); }
.bone-slot.empty b { color: #697587; }
.bone-ico { position: absolute; right: 8px; top: 4px; opacity: .55; font-size: 12px; line-height: 1; }
.bone-slot.head { left: 50%; top: 0; width: 190px; transform: translateX(-50%); }
.bone-slot.torso { left: 50%; top: 120px; width: 216px; min-height: 62px; transform: translateX(-50%); }
.bone-slot.arm-l { right: 0; top: 124px; width: 138px; }
.bone-slot.arm-r { left: 0; top: 124px; width: 138px; }
.bone-slot.leg-l { right: 64px; bottom: 92px; width: 138px; }
.bone-slot.leg-r { left: 64px; bottom: 92px; width: 138px; }
.bone-slot.ext1 { left: 0; bottom: 0; width: 154px; min-height: 54px; }
.bone-slot.ext2 { left: 50%; bottom: 0; width: 154px; min-height: 54px; transform: translateX(-50%); }
.bone-slot.ext3 { right: 0; bottom: 0; width: 154px; min-height: 54px; }
.bone-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(217, 178, 95, .14); color: #626e80; font-size: 9px; letter-spacing: .5px; }
.bone-legend { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bone-legend i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--cc); box-shadow: 0 0 7px color-mix(in srgb, var(--cc) 45%, transparent); }
.bone-legend em { margin-left: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #626e80; font-size: 9px; font-style: normal; }

/* 技能 */
.skill-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.skill-card { border: 1px solid rgba(217, 178, 95, .18); padding: 14px; background: rgba(255, 255, 255, .02); }
.skill-card.locked { opacity: .5; }
.skill-card h4 { color: #f2e4c4; font-size: 15px; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.skill-card .lvtag { font-size: 10px; color: var(--gold); border: 1px solid rgba(217, 178, 95, .4); padding: 0 5px; }
.skill-card p { font-size: 12px; color: #98a2b3; line-height: 1.7; margin-top: 6px; }
.skill-card .meta { display: flex; gap: 14px; font-size: 11px; color: #7d8798; margin-top: 8px; }
.skill-upgrade { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(217, 178, 95, .12); font-size: 10px; color: #8f9aab; }
.skill-upgrade b { font-weight: 500; }
.skill-upgrade b.ok { color: #83c98e; }
.skill-upgrade b.lack { color: #e07a5f; }
.skill-upgrade .btn { flex: none; padding: 5px 11px; font-size: 10px; letter-spacing: 1px; }
.skill-upgrade .btn:disabled { opacity: .45; cursor: not-allowed; }
.skill-upgrade.maxed { justify-content: flex-end; color: #8fd0e0; }
.skill-shell { display: flex; flex-direction: column; gap: 12px; }
.skill-ring-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border: 1px solid rgba(217, 178, 95, .24);
  background: linear-gradient(110deg, rgba(217, 178, 95, .08), rgba(12, 19, 29, .5));
}
.skill-ring-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.skill-ring-copy > span { color: #8f9aab; font-size: 10px; letter-spacing: 1px; }
.skill-ring-copy > b { color: #f0d79a; font-family: 'XinWei', serif; font-size: 18px; font-weight: 500; letter-spacing: 2px; }
.skill-ring-copy > em { color: #b7a57e; font-size: 10px; font-style: normal; }
.skill-ring-head .btn { flex: none; min-width: 132px; }
.skill-ring-head .btn:disabled { opacity: .4; cursor: not-allowed; }
.skill-empty {
  grid-column: 1 / -1; min-height: 190px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 8px;
  border: 1px dashed rgba(217, 178, 95, .2); background: rgba(217, 178, 95, .025);
}
.skill-empty-sigil {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(217, 178, 95, .35); color: #d9b25f;
  font-family: 'XinWei', serif; font-size: 22px; background: rgba(217, 178, 95, .06);
}
.skill-empty h4 { color: #d9c9a7; font-size: 16px; font-weight: 500; letter-spacing: 2px; }
.skill-empty p { max-width: 440px; color: #7f8a9b; font-size: 12px; line-height: 1.8; }
.skill-card.ring-skill { border-color: rgba(217, 178, 95, .28); background: linear-gradient(150deg, rgba(217, 178, 95, .045), rgba(255, 255, 255, .015)); }
.skill-card.passive-skill { border-color: rgba(111, 183, 206, .3); background: linear-gradient(150deg, rgba(111, 183, 206, .055), rgba(255, 255, 255, .012)); }
.skill-card .passive-tag { font-size: 10px; color: #8fd0e0; border: 1px solid rgba(111, 183, 206, .45); padding: 0 5px; letter-spacing: 1px; }
.skill-empty.compact { min-height: 82px; padding: 12px 16px; }
.skill-empty.compact h4 { font-size: 14px; letter-spacing: 1px; }
.skill-empty.compact p { max-width: none; }
.skill-loading { padding: 60px 0; text-align: center; color: #7d8798; font-size: 12px; letter-spacing: 2px; }

/* 组队 / 交易 */
.member-list { display: flex; flex-direction: column; gap: 6px; }
.member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(217, 178, 95, .14); font-size: 12px; }
.member b { color: #f0e2c2; font-weight: 500; }
.member .idx { width: 20px; color: var(--gold); text-align: center; }
.member .sp { margin-left: auto; color: #8d97a7; }
.forge-top { display: flex; align-items: center; gap: 12px; margin: -4px 0 12px; font-size: 12px; }
.forge-top .btn { margin-left: auto; }
.gold { color: var(--gold-2); }
.forge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.forge-card { border: 1px solid rgba(217, 178, 95, .16); padding: 12px; background: rgba(255, 255, 255, .02); }
.forge-card h4 { color: #f0e2c2; font-size: 14px; letter-spacing: 1px; margin-bottom: 4px; }
.forge-desc { font-size: 11px; color: #8d97a7; min-height: 18px; margin-bottom: 8px; }
.forge-ings { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 11px; }
.forge-ings .ok { color: #7de0b0; }
.forge-ings .no { color: #e07373; }
.forge-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; }
.forge-foot span:last-child { margin-left: auto; display: flex; gap: 6px; }
.forge-note { font-size: 11px; color: #7d8798; line-height: 1.9; margin-top: 10px; }
.forge-note b { color: var(--gold); font-weight: 500; }
.member .ref { color: #7de0b0; border: 1px solid rgba(125, 224, 176, .25); padding: 0 4px; font-size: 10px; }
.member .tag { color: #8d97a7; font-size: 10px; }
.forge-picks { display: flex; gap: 10px; margin: 6px 0 10px; }
.forge-select { flex: 1; padding: 8px 10px; font-size: 12px; }
.forge-filters { display: flex; flex-wrap: wrap; gap: 4px; margin: -2px 0 12px; }
.fchip { padding: 3px 10px; font-size: 11px; color: #8d97a7; border: 1px solid rgba(217, 178, 95, .18); background: transparent; cursor: pointer; }
.fchip.active { color: var(--gold-2); border-color: rgba(217, 178, 95, .55); background: rgba(217, 178, 95, .08); }
.forge-card .tag { color: #8d97a7; font-size: 10px; font-weight: 400; }
.forge-desc .muted { color: #6f7a8a; }
.color-chip { display: inline-block; padding: 1px 5px; border: 1px solid var(--cc, #e8edf5); color: var(--cc, #e8edf5); border-radius: 2px; font-size: 10px; line-height: 1.5; }
.melt-list { display: flex; flex-direction: column; gap: 6px; }
.melt-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(217, 178, 95, .14); font-size: 12px; cursor: pointer; }
.melt-row.sel { border-color: rgba(217, 178, 95, .55); background: rgba(217, 178, 95, .06); }
.melt-row input { accent-color: #d9b25f; }
.melt-row b { color: #f0e2c2; font-weight: 500; }
.melt-row .sp { margin-left: auto; color: #7de0b0; }
.melt-bar { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 8px 10px; border: 1px solid rgba(217, 178, 95, .2); font-size: 12px; color: #9aa5b5; }
.melt-bar .btn { margin-left: auto; }
.melt-bar b { color: var(--gold-2); font-weight: 500; }
.refine-row .idx { width: auto; }
.refine-row .dom { color: var(--gold-2); font-size: 11px; }
.refine-row .sp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.refine-row .next { color: #8d97a7; }
.up-cost { color: #8d97a7; font-size: 11px; }
.up-cost .ok { color: #7de0b0; }
.up-cost .no { color: #e07373; }
.trade-cols { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 14px; align-items: start; }
.trade-side { border: 1px solid rgba(217, 178, 95, .16); padding: 10px; }
.trade-side h4 { font-size: 13px; color: var(--gold-2); margin-bottom: 8px; letter-spacing: 1px; }
.trade-slots { display: grid; grid-template-columns: repeat(3, 52px); gap: 5px; min-height: 164px; }
.trade-money { display: flex; gap: 6px; margin-top: 10px; align-items: center; }
.trade-money input { flex: 0 0 150px; width: 150px; }
.trade-state { align-self: center; writing-mode: horizontal-tb; text-align: center; color: var(--gold); font-size: 12px; letter-spacing: 2px; opacity: .65; }

/* 宗门 */
.sect-body { min-height: 430px; }
.sect-loading { padding: 40px 10px; color: #8d97a7; text-align: center; font-size: 12px; }
.sect-hero { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid rgba(217,178,95,.22); background: linear-gradient(100deg, rgba(217,178,95,.09), rgba(217,178,95,.015)); }
.sect-hero-empty { margin-bottom: 14px; }
.sect-seal { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border: 1px solid rgba(217,178,95,.55); color: var(--gold-2); font-size: 26px; font-family: serif; background: rgba(217,178,95,.06); }
.sect-hero-copy { min-width: 0; flex: 1; }
.sect-kicker { color: #9c8b67; font-size: 10px; letter-spacing: 2px; }
.sect-hero h3 { margin: 4px 0 5px; color: #f0e2c4; font-size: 20px; font-weight: 500; letter-spacing: 2px; }
.sect-hero p { margin: 0; color: #9aa5b4; font-size: 12px; line-height: 1.7; }
.sect-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sect-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; margin-top: 14px; }
.sect-card, .sect-create-card, .sect-list-card { border: 1px solid rgba(217,178,95,.16); padding: 12px; }
.sect-upgrade-card { grid-column: 1 / -1; }
.sect-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sect-card-title b { flex: 0 0 auto; white-space: nowrap; color: var(--gold-2); font-size: 13px; font-weight: 500; letter-spacing: 1px; }
.sect-card-title span { flex: 1; min-width: 0; color: #7d8798; font-size: 10px; }
.sect-members, .sect-skills { display: flex; flex-direction: column; gap: 7px; }
.sect-member { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid rgba(255,255,255,.05); background: rgba(255,255,255,.012); }
.sect-member-dot { width: 6px; height: 6px; border-radius: 50%; background: #586272; flex: 0 0 6px; }
.sect-member.online .sect-member-dot { background: #62d6a0; box-shadow: 0 0 6px rgba(98,214,160,.7); }
.sect-member-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.sect-member-main b { color: #d7dde7; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sect-member-main span { color: #748091; font-size: 10px; white-space: nowrap; }
.sect-skill { padding: 10px; border: 1px solid rgba(217,178,95,.12); background: rgba(217,178,95,.018); }
.sect-skill.maxed { opacity: .72; }
.sect-skill-head { display: flex; align-items: center; gap: 7px; }
.sect-skill-head b { color: #e6dcc8; font-size: 12px; font-weight: 500; }
.sect-skill-head em { margin-left: auto; color: var(--gold-2); font-size: 10px; font-style: normal; }
.sect-skill-icon { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid rgba(217,178,95,.35); color: var(--gold-2); font-size: 10px; }
.sect-skill p { margin: 6px 0; color: #8f9aaa; font-size: 11px; line-height: 1.6; }
.sect-skill-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7d8798; font-size: 10px; }
.sect-reqs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sect-req { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border: 1px solid rgba(217,178,95,.12); font-size: 11px; color: #aeb8c6; }
.sect-req b { color: #e07373; font-weight: 500; }
.sect-req b.ok { color: #7de0b0; }
.sect-token-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: #9ba6b5; font-size: 11px; }
.sect-token-line b.ok { color: #7de0b0; }
.sect-token-line b.no { color: #e07373; }
.sect-create-row { display: flex; gap: 8px; }
.sect-create-row input { flex: 1; min-width: 0; }
.sect-create-card { margin-bottom: 14px; }
.sect-list-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.sect-list-row:last-child { border-bottom: 0; }
.sect-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sect-list-main b { color: #e3d9c7; font-size: 12px; font-weight: 500; }
.sect-list-main span, .sect-list-meta { color: #7d8798; font-size: 10px; }
.sect-list-meta { white-space: nowrap; }
.sect-empty, .sect-hint { padding: 12px 4px; color: #7d8798; font-size: 11px; line-height: 1.7; }
.sect-card .btn:disabled { opacity: .38; cursor: not-allowed; }
.sect-skill-pct { color: #7de0b0; font-weight: 500; }
.sect-donate-card { grid-column: 1 / -1; }
.sect-donate-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.sect-donate-item { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 7px 6px; border: 1px solid rgba(217,178,95,.14); background: rgba(255,255,255,.012); color: #d7dde7; cursor: pointer; font: inherit; text-align: left; }
.sect-donate-item:hover { border-color: rgba(217,178,95,.45); background: rgba(217,178,95,.07); }
.sect-donate-item:disabled { opacity: .4; cursor: not-allowed; }
.sect-donate-icon { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; overflow: hidden; }
.sect-donate-icon img { width: 100%; height: 100%; object-fit: contain; }
.sect-donate-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.sect-donate-count { color: #9ba6b5; font-size: 10px; white-space: nowrap; }

/* 宗门赛 */
.sect-war-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.sect-war-entry .sect-card-title { margin-bottom: 5px; }
.sect-war-entry-text { color: #8f9aaa; font-size: 11px; line-height: 1.7; }
.sect-war-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid rgba(217,178,95,.2); background: radial-gradient(circle at 12% 0%, rgba(217,178,95,.12), transparent 55%), rgba(10,16,26,.55); }
.sect-war-hero h3 { margin: 5px 0 6px; color: #f0e2c4; font-size: 23px; font-weight: 500; letter-spacing: 3px; }
.sect-war-hero p { margin: 0; color: #9aa5b4; font-size: 11px; line-height: 1.7; }
.sect-war-clock { flex: 0 0 108px; text-align: center; padding: 8px 10px; border-left: 1px solid rgba(217,178,95,.2); }
.sect-war-clock b { display: block; color: #ffe0a0; font: 500 30px/1.1 'XinWei', serif; letter-spacing: 2px; }
.sect-war-clock span { color: #7d8798; font-size: 10px; letter-spacing: 2px; }
.sect-war-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; color: #9aa5b4; font-size: 12px; }
.sect-war-toolbar > div { display: flex; gap: 8px; flex-wrap: wrap; }
.sect-war-live { color: #7de0b0; }
.sect-war-dead { color: #ff7b7b; }
.sect-war-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; }
.sect-war-players, .sect-war-sects { display: flex; flex-direction: column; gap: 5px; max-height: 300px; overflow: auto; }
.sect-war-player { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.05); background: rgba(255,255,255,.012); font-size: 11px; }
.sect-war-player b { color: #dfe7f2; font-weight: 500; }
.sect-war-player span { color: #8d97a7; }
.sect-war-player em { margin-left: auto; color: #7de0b0; font-size: 10px; font-style: normal; }
.sect-war-player.dead { border-color: rgba(255,80,80,.22); background: rgba(90,20,24,.15); }
.sect-war-player.dead b, .sect-war-player.dead span, .sect-war-player.dead em { color: #ff7b7b; }
.sect-war-player.me { border-color: rgba(217,178,95,.3); }
.sect-war-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #62d6a0; }
.sect-war-player.dead .sect-war-dot { background: #ff6b6b; box-shadow: 0 0 6px rgba(255,80,80,.5); }
.sect-war-sect { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid rgba(255,255,255,.05); font-size: 11px; }
.sect-war-sect b { flex: 0 0 26px; color: #7d8798; font-weight: 500; }
.sect-war-sect.top b { color: #ffe0a0; }
.sect-war-sect span { color: #dfe7f2; }
.sect-war-sect em { margin-left: auto; color: #8d97a7; font-size: 10px; font-style: normal; white-space: nowrap; }
.sect-war-result { margin: 12px 0; padding: 10px 12px; border: 1px solid rgba(217,178,95,.2); background: rgba(217,178,95,.045); }
.sect-war-result-title { color: #f0d79a; font-size: 12px; letter-spacing: 2px; margin-bottom: 6px; }
.sect-war-result-row { display: flex; gap: 10px; align-items: center; padding: 3px 0; color: #b9c2cf; font-size: 11px; }
.sect-war-result-row b { color: #ffe0a0; font-weight: 500; }
.sect-war-result-row em { margin-left: auto; color: #7de0b0; font-style: normal; }
.sect-war-note { margin-top: 12px; color: #7d8798; font-size: 10px; line-height: 1.7; }

/* 邮件 / 排行 / 商店 */
.list { display: flex; flex-direction: column; gap: 6px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(217, 178, 95, .14); font-size: 12px; cursor: pointer; }
.list-row:hover { border-color: rgba(217, 178, 95, .45); background: rgba(217, 178, 95, .05); }
.list-row.unread b { color: #ffe9b0; }
.list-row b { color: #d7dde7; font-weight: 500; }
.list-row .time { margin-left: auto; color: #748091; font-size: 11px; }
.mail-body { border-top: 1px solid rgba(217, 178, 95, .18); margin-top: 12px; padding-top: 12px; font-size: 12px; line-height: 1.9; color: #b9c2cf; white-space: pre-wrap; }
.goods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.goods .good { border: 1px solid rgba(217, 178, 95, .16); padding: 10px; font-size: 11px; }
.goods .good b { display: block; color: #e8dcc0; font-size: 12px; margin-bottom: 6px; }
.goods .good .price { color: var(--gold-2); margin: 8px 0; }
.goods .good button { width: 100%; }

/* 四类商城 */
.mall-wrap { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 18px; min-height: 510px; }
.mall-tabs { display: flex; flex-direction: column; gap: 8px; padding-right: 14px; border-right: 1px solid rgba(217, 178, 95, .16); }
.mall-tab {
  display: flex; align-items: center; gap: 10px; padding: 11px 10px; width: 100%;
  border: 1px solid transparent; border-radius: 2px; background: rgba(255, 255, 255, .015);
  color: #9ba6b5; cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.mall-tab:hover { border-color: rgba(217, 178, 95, .35); background: rgba(217, 178, 95, .04); transform: translateX(2px); }
.mall-tab.active { border-color: rgba(217, 178, 95, .55); background: linear-gradient(90deg, rgba(217, 178, 95, .12), rgba(217, 178, 95, .015)); }
.mall-tab-glyph {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%; font-size: 13px; color: #d9b25f;
  background: rgba(0, 0, 0, .2);
}
.mall-glyph-1 { color: #f0c56b; }
.mall-glyph-2 { color: #7fd6a6; }
.mall-glyph-3 { color: #e4a35d; }
.mall-glyph-4 { color: #b69bff; }
.mall-tab-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mall-tab-copy b { font-size: 13px; color: #d8dde5; font-weight: 500; letter-spacing: 1px; }
.mall-tab.active .mall-tab-copy b { color: #f2dfae; }
.mall-tab-copy em { font-style: normal; font-size: 10px; color: #7d8798; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mall-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.mall-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(217, 178, 95, .16); }
.mall-kicker { font-size: 10px; color: var(--gold-dim); letter-spacing: 3px; }
.mall-head-copy h4 { font-family: 'XinWei', serif; font-size: 22px; color: #f2dfae; letter-spacing: 3px; margin-top: 3px; }
.mall-head-copy p { font-size: 11px; color: #7d8798; margin-top: 4px; line-height: 1.6; }
.mall-wallet { flex: none; min-width: 118px; padding: 8px 12px; border: 1px solid rgba(217, 178, 95, .3); background: rgba(217, 178, 95, .035); text-align: right; }
.mall-wallet span { display: block; font-size: 9px; color: #7d8798; letter-spacing: 2px; }
.mall-wallet b { display: block; font-size: 21px; color: var(--gold-2); font-family: 'XinWei', serif; margin-top: 2px; }
.mall-wallet em { display: block; font-style: normal; font-size: 9px; color: #8d97a7; margin-top: 1px; letter-spacing: 1px; }
.mall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 472px; overflow-y: auto; padding-right: 4px; align-content: start; }
.mall-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 168px;
  padding: 12px; border: 1px solid rgba(217, 178, 95, .16); background: linear-gradient(180deg, rgba(24, 33, 47, .45), rgba(7, 10, 17, .35));
  cursor: pointer; text-align: left; color: inherit; font-family: inherit;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.mall-card:hover { border-color: var(--gold); transform: translateY(-2px); background: linear-gradient(180deg, rgba(30, 41, 57, .62), rgba(9, 13, 21, .5)); }
.mall-card.poor { opacity: .72; }
.mall-card-art { height: 50px; display: grid; place-items: center; }
.mall-card-art .item-img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); }
.mall-card-main b { display: block; color: #efe2c4; font-size: 12.5px; line-height: 1.4; font-weight: 500; }
.mall-card-main em { display: block; color: #8d97a7; font-style: normal; font-size: 10px; margin-top: 3px; letter-spacing: .5px; }
.mall-card-meta { font-size: 10px; color: #748091; border-top: 1px dashed rgba(217, 178, 95, .14); padding-top: 6px; margin-top: auto; }
.mall-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.mall-price { font-size: 14px; color: var(--gold-2); font-family: 'XinWei', serif; }
.mall-price i { font-style: normal; font-size: 9px; color: #8d97a7; margin-left: 2px; font-family: inherit; }
.mall-buy { font-size: 10px; color: #0b111a; background: linear-gradient(180deg, #e8c982, #c49a4e); padding: 4px 9px; border-radius: 2px; letter-spacing: 1px; }
.mall-card.poor .mall-buy { background: transparent; border: 1px solid rgba(255, 255, 255, .14); color: #8d97a7; }
.mall-empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: #7d8798; font-size: 12px; letter-spacing: 2px; }

/* 地图 */
.map-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.map-card { border: 1px solid rgba(217, 178, 95, .16); padding: 12px; cursor: pointer; font-size: 11px; }
.map-card:hover { border-color: var(--gold); background: rgba(217, 178, 95, .05); }
.map-card.locked { opacity: .45; cursor: not-allowed; }
.map-card b { display: block; font-size: 14px; color: #efe2c4; margin-bottom: 4px; letter-spacing: 1px; }
.map-card em { font-style: normal; color: #8d97a7; }

/* 提示 */
.toasts { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 8px 18px; background: rgba(6, 10, 17, .92); border: 1px solid rgba(217, 178, 95, .4);
  font-size: 13px; color: #f0e2c2; letter-spacing: .5px; border-radius: 2px;
  animation: toastIn .22s ease, toastOut .3s ease 2.4s forwards;
}
.toast.err { border-color: rgba(200, 80, 80, .7); color: #ffc0c0; }
.toast.good { border-color: rgba(110, 210, 160, .6); color: #b6f4d8; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }
.tooltip {
  position: absolute; z-index: 60; max-width: 280px; padding: 10px 12px; font-size: 11.5px; line-height: 1.7;
  background: rgba(6, 10, 17, .97); border: 1px solid rgba(217, 178, 95, .5); color: #cfd6e2; pointer-events: none;
}
.tooltip b { color: var(--gold-2); font-size: 12.5px; }
.tooltip .a { color: #7de0b0; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(217, 178, 95, .3); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* 城市热点 */
.hotspot {
  position: absolute; transform: translate(-50%, -50%); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: auto;
}
.hotspot .pin {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(217, 178, 95, .35), rgba(10, 16, 26, .9) 70%);
  border: 1px solid rgba(217, 178, 95, .65); color: #ffe9b0; font-size: 15px;
  box-shadow: 0 0 22px rgba(217, 178, 95, .28); transition: all .18s ease;
}
.hotspot:hover .pin { transform: scale(1.12); box-shadow: 0 0 34px rgba(217, 178, 95, .55); }
.hotspot .label {
  font-size: 12px; letter-spacing: 1px; color: #f0e2c2; text-shadow: 0 1px 4px #000;
  background: rgba(4, 8, 14, .55); padding: 2px 8px; border-radius: 2px; border: 1px solid rgba(217, 178, 95, .18);
}
.hotspot .label small { display: block; text-align: center; font-size: 9px; color: #9aa5b5; letter-spacing: .5px; }

/* 怪物卡 */
.monster-card {
  position: absolute; width: 210px; padding: 10px; transform: translate(-50%, -50%);
  background: linear-gradient(160deg, rgba(10, 16, 26, .88), rgba(5, 9, 15, .92));
  border: 1px solid rgba(217, 178, 95, .22); border-radius: 3px; cursor: pointer;
  transition: all .18s ease;
}
.monster-card:hover { border-color: var(--gold); transform: translate(-50%, -52%); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.monster-card.dead { opacity: .45; filter: grayscale(1); cursor: not-allowed; }
.monster-card .mrow { display: flex; align-items: center; gap: 8px; }
.monster-card b { font-size: 13px; color: #f2e4c4; font-weight: 500; }
.monster-card em { font-style: normal; font-size: 10px; color: var(--gold); margin-left: auto; }
.monster-card .hpbar { height: 6px; background: rgba(0, 0, 0, .6); margin-top: 8px; border-radius: 3px; overflow: hidden; }
.monster-card .hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #7d1f1f, #d94b4b); }
.monster-card .tag { font-size: 10px; color: #8d97a7; margin-top: 6px; display: flex; justify-content: space-between; }

/* ==================== 角色面板（原版双栏还原） ==================== */
.character-window {
  width: 1180px !important; max-height: none; background: transparent; border: 0; box-shadow: none;
}
.character-window .win-head {
  height: 36px; padding: 0 14px;
  background: linear-gradient(180deg, rgba(47, 39, 27, .96), rgba(15, 12, 9, .98));
  border: 1px solid rgba(211, 173, 90, .55); border-bottom: 0;
}
.character-window .win-head { height: 28px; min-height: 0; padding: 2px 6px; border: 0; background: linear-gradient(180deg, rgba(28, 23, 16, .92), rgba(10, 8, 7, .98)); justify-content: flex-end; }
.character-window .win-head h3, .character-window .win-head .sub { display: none; }
.character-window .win-close { width: 22px; height: 22px; border-color: rgba(224, 185, 99, .32); color: #d9c79f; font-size: 12px; }
.character-window .win-body { padding: 0; overflow: visible; }

.char-ref-wrap {
  position: relative; display: grid; grid-template-columns: 48.2% 51.8%;
  min-height: 600px;
  background:
    radial-gradient(80% 60% at 50% 35%, rgba(108, 82, 42, .12), transparent 70%),
    linear-gradient(160deg, rgba(25, 22, 17, .985), rgba(11, 10, 9, .995) 48%, rgba(7, 7, 7, 1));
  border: 1px solid rgba(211, 173, 90, .62);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .75),
    inset 0 0 80px rgba(0, 0, 0, .55),
    0 18px 48px rgba(0, 0, 0, .55);
}
.char-ref-wrap::before,
.char-ref-wrap::after {
  content: ''; position: absolute; left: 10px; right: 10px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(231, 198, 119, .55), transparent);
}
.char-ref-wrap::before { top: 4px; }
.char-ref-wrap::after { bottom: 4px; }

.char-ref-wrap .char-left,
.char-ref-wrap .char-right {
  min-width: 0; display: flex; flex-direction: column; background: transparent;
  padding: 0; border: 0; overflow: visible;
}
.char-ref-wrap .char-left { border-right: 1px solid rgba(211, 173, 90, .30); }
.char-ref-wrap .char-left::before,
.char-ref-wrap .char-left::after,
.char-ref-wrap .char-right::before,
.char-ref-wrap .char-right::after { display: none; }

.char-pane-head {
  position: relative; height: 40px; min-height: 0; margin: 4px 14px 0; display: grid; place-items: center; flex: none;
  border-bottom: 0;
}
.char-pane-head::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 173, 90, .50) 18%, rgba(211, 173, 90, .50) 82%, transparent);
}
.char-pane-head h3 {
  position: relative; z-index: 1; padding: 0 15px; background: #12100c;
  color: #f3dfae; font-family: 'XinWei', serif; font-size: 23px; font-weight: 400;
  letter-spacing: 7px; line-height: 1.4; text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}
.char-pane-head h3::before,
.char-pane-head h3::after {
  content: '◆'; position: absolute; top: 50%; transform: translateY(-50%);
  color: rgba(211, 173, 90, .6); font-size: 7px;
}
.char-pane-head h3::before { left: -2px; }
.char-pane-head h3::after { right: -2px; }

.char-left-body { flex: 1; display: flex; flex-direction: column; padding: 2px 16px 8px; min-height: 0; }

.char-top { display: flex; gap: 12px; padding: 0 0 6px; flex: none; }
.char-wuhun-art {
  position: relative; width: 138px; height: 138px; flex: none; padding: 5px;
  border: 1px solid rgba(211, 173, 90, .55); background: #010203;
  box-shadow: inset 0 0 0 1px rgba(211, 173, 90, .16), 0 0 18px rgba(0, 0, 0, .6);
}
.char-wuhun-art::before,
.char-wuhun-art::after {
  content: ''; position: absolute; width: 12px; height: 12px; border-color: #e0b963; border-style: solid; pointer-events: none;
}
.char-wuhun-art::before { left: -4px; top: -4px; border-width: 1px 0 0 1px; }
.char-wuhun-art::after { right: -4px; bottom: -4px; border-width: 0 1px 1px 0; }
.char-wuhun-art img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 0 10px rgba(91, 146, 255, .18)); }

.char-ring-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.char-ring-label { color: #d8c39a; font-size: 12px; letter-spacing: 2px; line-height: 16px; }
.char-rings { display: flex; flex-wrap: wrap; width: 300px; max-width: 100%; gap: 2px 12px; align-content: flex-start; }
.soul-ring {
  width: 50px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  flex: none; position: relative;
}
.soul-ring img { width: 50px; height: 30px; object-fit: contain; display: block; }
.soul-ring.filled::before {
  content: ''; position: absolute; left: 4px; right: 4px; top: 2px; bottom: 2px;
  border: 1px solid var(--ring-color); border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 7px 2px var(--ring-color), inset 0 0 5px var(--ring-color);
  opacity: .9;
}
.soul-ring.filled img {
  filter: brightness(1.15) contrast(1.25) drop-shadow(0 0 1px rgba(255,255,255,.85));
}
/* 万年黑色魂环保留深色环体，只提亮金属边缘，避免被白色泛光洗成灰白。 */
.soul-ring.filled[data-tier="black"] img {
  filter: brightness(1.12) contrast(1.42) drop-shadow(0 0 2px rgba(187,199,217,.38));
}
.soul-ring.filled[data-tier="black"]::before {
  border-color: rgba(219,227,240,.82);
  box-shadow: 0 0 5px rgba(160,175,198,.36), inset 0 0 7px rgba(0,0,0,.9);
  opacity: 1;
}
/* 十万年血红魂环：红绳与多色绳麻花缠绕；红色描边只做柔和收边。 */
.soul-ring.filled[data-tier="red"] img {
  filter: brightness(1.02) contrast(1.15) saturate(1.18) drop-shadow(0 0 2px rgba(255,42,66,.45));
}
.soul-ring.filled[data-tier="red"]::before {
  border-color: rgba(255,92,108,.22);
  box-shadow: 0 0 7px rgba(211,18,44,.38), inset 0 0 6px rgba(92,0,10,.32);
  opacity: 1;
}
.soul-ring.empty { opacity: .75; }
.soul-ring.empty::before {
  content: ''; position: absolute; left: 4px; right: 4px; top: 2px; bottom: 2px;
  border: 1px dashed rgba(170,182,200,.6); border-radius: 50%; pointer-events: none;
}
.soul-ring.empty img { opacity: .45; filter: grayscale(1) brightness(.9); }
.soul-ring.filled:hover img { transform: scale(1.06); }
.char-ring-foot {
  margin-top: 6px; width: 300px; max-width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; color: #d6c6a6; font-size: 12px; letter-spacing: .5px;
}
.char-ring-foot b { color: #8ef07a; font-weight: 500; }

.char-trait {
  flex: none; display: flex; align-items: center; gap: 8px; min-width: 0;
  margin: 2px 0 1px; padding: 5px 9px; border-left: 2px solid rgba(226, 186, 102, .65);
  background: linear-gradient(90deg, rgba(217, 178, 95, .10), rgba(217, 178, 95, .01));
  color: #b9c0cc; font-size: 11px; line-height: 1.35; white-space: nowrap;
}
.char-trait b { flex: none; color: #e8c87a; font-weight: 500; letter-spacing: 1px; }
.char-trait span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #c7bfa9; }

.char-info-grid {
  flex: none; margin-top: 4px; padding: 5px 0;
  border-top: 1px solid rgba(211, 173, 90, .18); border-bottom: 1px solid rgba(211, 173, 90, .18);
}
.char-info-row {
  display: grid; grid-template-columns: 68px minmax(0, 1fr) 76px minmax(0, 1fr);
  gap: 1px 5px; align-items: baseline; padding: 4px 0;
}
.ci-label { color: #c8c0ae; font-size: 12px; letter-spacing: 2px; white-space: nowrap; }
.ci-value {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #8ef07a; font-size: 14px; font-weight: 500; letter-spacing: .5px;
  text-shadow: 0 0 8px rgba(88, 210, 120, .12);
}

.char-vitals { flex: none; margin-top: 7px; display: flex; flex-direction: column; gap: 5px; }
.char-vital { display: grid; grid-template-columns: 32px minmax(0, 1fr) 126px; gap: 8px; align-items: center; }
.vital-label { color: #d8cdb7; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.vital-track {
  position: relative; height: 15px; overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .85); background: linear-gradient(180deg, #1b1d20, #050608);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .85), 0 0 0 1px rgba(211, 173, 90, .10);
}
.vital-track i { display: block; height: 100%; min-width: 0; transition: width .25s ease; }
.vital-track em {
  position: absolute; inset: 0; display: grid; place-items: center; color: #f5f1e6;
  font-size: 9px; font-style: normal; letter-spacing: .3px; text-shadow: 0 1px 2px #000;
}
.vital-track.hp i { background: linear-gradient(90deg, #5d0e0e, #d83535 56%, #ff8d76); }
.vital-track.mp i { background: linear-gradient(90deg, #0d245f, #276bd8 56%, #73b5ff); }
.vital-track.exp i { background: linear-gradient(90deg, #1c4915, #4da337 56%, #a3dc6d); }
.vital-track.spirit i { background: linear-gradient(90deg, #32124e, #7d35bd 56%, #c07dff); }
.vital-side { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #89d6a5; font-size: 11px; }
.vital-side b { color: #8ef07a; font-weight: 500; }

.char-left-foot {
  margin-top: 8px; padding-top: 8px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(211, 173, 90, .18);
}
.char-meta { color: #bfb49e; font-size: 11px; letter-spacing: .5px; white-space: nowrap; }
.char-meta b { color: #8ef07a; font-weight: 500; }
.char-foot-spacer { flex: 1; min-width: 4px; }

.char-gold-link {
  padding: 1px 0; border: 0; background: none; cursor: pointer;
  color: #ffd75e; font-size: 13px; font-weight: 500; letter-spacing: 1px;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 215, 94, .45);
  text-shadow: 0 0 10px rgba(255, 186, 36, .22);
  transition: color .15s ease, text-shadow .15s ease;
}
.char-gold-link:hover { color: #fff0a8; text-shadow: 0 0 14px rgba(255, 206, 73, .45); }
.char-gold-link:disabled { color: #6f7785; cursor: not-allowed; text-decoration: none; text-shadow: none; }

/* 右栏：属性 + 人体魂骨位 */
.char-right-body {
  flex: 1; min-height: 0; display: grid; grid-template-columns: 188px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 42px; column-gap: 4px; padding: 0 10px 8px;
}
.char-stat-col { min-width: 0; padding: 5px 2px 0 4px; overflow: hidden; }
.ref-stat-block { margin-bottom: 5px; }
.ref-stat-block h4 {
  display: flex; align-items: center; gap: 7px; margin: 0 0 2px;
  color: #e6c473; font-size: 13px; font-weight: 500; letter-spacing: 3px;
  text-shadow: 0 1px 4px #000;
}
.ref-stat-block h4 span {
  width: 5px; height: 5px; flex: none; transform: rotate(45deg);
  background: rgba(226, 186, 102, .85); box-shadow: 0 0 7px rgba(226, 186, 102, .35);
}
.ref-stat-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 4.5px 0; border-bottom: 1px dashed rgba(211, 173, 90, .13);
  color: #d2c9b7; font-size: 12.5px; letter-spacing: 1px;
}
.ref-stat-row b { color: #8ef07a; font-weight: 500; text-align: right; white-space: nowrap; }
.ref-stat-row b em { margin-left: 2px; color: #9ca8b8; font-size: 9px; font-style: normal; letter-spacing: 0; }

/* 魂骨套装：件数 / 激活状态 / 套装属性 */
.bone-set-box { margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(211, 173, 90, .16); max-height: 102px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(217, 178, 95, .35) transparent; }
.bone-set-box h4 {
  display: flex; align-items: center; gap: 7px; margin: 0 0 3px;
  color: #e6c473; font-size: 13px; font-weight: 500; letter-spacing: 3px;
}
.bone-set-box h4 span {
  width: 5px; height: 5px; flex: none; transform: rotate(45deg);
  background: rgba(226, 186, 102, .85); box-shadow: 0 0 7px rgba(226, 186, 102, .35);
}
.bone-set-row { margin-top: 4px; padding: 4px 5px; border: 1px solid rgba(143, 229, 167, .14); background: rgba(91, 190, 122, .045); }
.bone-set-row.off { border-color: rgba(160, 174, 190, .13); background: rgba(120, 132, 150, .035); }
.bone-set-line { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.bone-set-line i { width: 5px; height: 5px; flex: none; border-radius: 50%; background: #7de0a0; box-shadow: 0 0 6px rgba(125, 224, 160, .6); }
.bone-set-row.off .bone-set-line i { background: #a87863; box-shadow: none; }
.bone-set-line b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e8dcc0; font-size: 11px; font-weight: 500; }
.bone-set-line em { flex: none; color: #ffd45e; font-size: 11px; font-style: normal; }
.bone-set-line span { flex: none; margin-left: auto; color: #8ef07a; font-size: 10px; }
.bone-set-row.off .bone-set-line span { color: #e0a07a; }
.bone-set-row p { margin: 2px 0 0; color: #aebbc9; font-size: 10px; line-height: 1.4; word-break: break-all; }
.bone-set-empty { padding: 5px 2px; color: #7d8798; font-size: 11px; }

.char-ref-wrap .bone-map {
  position: relative; width: 100%; max-width: none; height: 100%; min-height: 500px; margin: 0;
}
.char-ref-wrap .bone-silhouette {
  position: absolute; left: 50%; top: 0; width: 292px; height: 528px;
  transform: translateX(-50%); pointer-events: none; opacity: .96;
}
.char-ref-wrap .bone-slot {
  position: absolute; z-index: 2; width: 58px; height: 58px; min-height: 0; padding: 5px;
  display: grid; place-items: center; box-sizing: border-box; transform: none;
  border: 1px solid rgba(211, 173, 90, .38); border-radius: 2px;
  background: radial-gradient(circle at 50% 45%, rgba(27, 39, 54, .92), rgba(4, 7, 12, .96));
  box-shadow: inset 0 0 12px rgba(80, 132, 178, .10), 0 4px 12px rgba(0, 0, 0, .55);
  cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.char-ref-wrap .bone-slot:hover { border-color: #e4bd6a; transform: translateY(-1px); }
.char-ref-wrap .bone-slot.filled {
  border-color: var(--bone-color);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--bone-color) 56%, #11151c) 0%, color-mix(in srgb, var(--bone-color) 30%, #070a0f) 58%, #04060a 100%);
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--bone-color) 26%, transparent), 0 0 14px color-mix(in srgb, var(--bone-color) 35%, transparent);
}
.char-ref-wrap .bone-slot.empty { border-style: dashed; border-color: rgba(157, 184, 214, .32); background: radial-gradient(circle at 50% 45%, rgba(31, 47, 68, .55), rgba(5, 9, 14, .72)); opacity: .92; }
.char-ref-wrap .bone-slot.active { border-color: #ffe39a; box-shadow: 0 0 18px rgba(255, 216, 120, .55); }
.char-ref-wrap .bone-art { width: 46px; height: 46px; object-fit: contain; display: block; pointer-events: none; filter: drop-shadow(0 2px 3px #000) brightness(1.18); }
.char-ref-wrap .bone-slot.filled .bone-art { filter: drop-shadow(0 0 5px var(--bone-color)) drop-shadow(0 2px 3px #000); }
.char-ref-wrap .bone-slot.empty .bone-art { opacity: .30; filter: grayscale(1); }
.char-ref-wrap .bone-art.flip { transform: scaleX(-1); }
.char-ref-wrap .bone-pip {
  position: absolute; right: 5px; bottom: 5px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bone-color); box-shadow: 0 0 7px var(--bone-color);
}

.char-ref-wrap .bone-slot.head { left: 50%; top: 2px; width: 64px; height: 64px; transform: translateX(-50%); }
.char-ref-wrap .bone-slot.arm-l { left: auto; right: 2px; top: 128px; }
.char-ref-wrap .bone-slot.arm-r { left: 2px; right: auto; top: 156px; }
.char-ref-wrap .bone-slot.torso { left: 50%; top: 220px; transform: translateX(-50%); }
.char-ref-wrap .bone-slot.leg-l { left: auto; right: 24px; top: auto; bottom: 118px; }
.char-ref-wrap .bone-slot.leg-r { left: 24px; right: auto; top: auto; bottom: 118px; }
.char-ref-wrap .bone-slot.ext1 { left: 2px; right: auto; top: auto; bottom: 2px; width: 54px; height: 54px; }
.char-ref-wrap .bone-slot.ext2 { left: 50%; right: auto; top: auto; bottom: 2px; width: 54px; height: 54px; transform: translateX(-50%); }
.char-ref-wrap .bone-slot.ext3 { left: auto; right: 2px; top: auto; bottom: 2px; width: 54px; height: 54px; }

.char-right-foot {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 20px;
  padding: 5px 8px 0; border-top: 1px solid rgba(211, 173, 90, .24);
}
.char-gold-btn {
  padding: 4px 18px; border: 2px solid #d4a63f; cursor: pointer;
  background: linear-gradient(180deg, #7a2414, #3a0d07 60%, #240604);
  color: #ffda70; font-size: 14px; font-weight: 500; letter-spacing: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 213, 110, .22), 0 0 12px rgba(0, 0, 0, .55);
  text-shadow: 0 1px 2px #000;
}
.char-gold-btn:hover { border-color: #f4cc6f; color: #fff0b0; }

.char-ref-wrap .bone-menu {
  position: absolute; z-index: 20; width: 280px; padding: 11px 12px 12px;
  background: linear-gradient(155deg, rgba(31, 26, 18, .99), rgba(9, 9, 10, .995));
  border: 1px solid rgba(224, 185, 99, .78);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(0, 0, 0, .55);
}
.char-ref-wrap .bone-menu.hidden { display: none; }
.char-ref-wrap .bone-menu-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.char-ref-wrap .bone-menu-head b { display: block; color: #f2e4c4; font-size: 15px; font-weight: 500; letter-spacing: .5px; max-width: 185px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-ref-wrap .bone-menu-head span { display: block; margin-top: 3px; color: #9aa6b6; font-size: 11px; letter-spacing: 1px; }
.char-ref-wrap .bone-menu-head em { flex: none; margin-top: 1px; font-size: 10px; font-style: normal; letter-spacing: 1px; }
.char-ref-wrap .bone-menu-sub { margin: 7px 0 8px; padding-bottom: 7px; border-bottom: 1px solid rgba(211, 173, 90, .16); color: #9aa6b6; font-size: 11px; }
.char-ref-wrap .bone-menu-stats {
  display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 9px; padding: 7px 8px;
  border: 1px solid rgba(211, 173, 90, .14); background: rgba(0, 0, 0, .24);
  color: #9fe6b2; font-size: 11px; line-height: 1.3;
}
.char-ref-wrap .bone-menu-stats span { padding: 1px 4px; border: 1px solid rgba(143, 229, 167, .16); background: rgba(91, 190, 122, .06); }
.char-ref-wrap .bone-menu-set { margin: 0 0 9px; padding: 6px 7px; border: 1px solid rgba(143, 229, 167, .18); background: rgba(91, 190, 122, .06); }
.char-ref-wrap .bone-menu-set.off { border-color: rgba(160, 174, 190, .16); background: rgba(120, 132, 150, .05); }
.char-ref-wrap .bone-menu-set-line { display: flex; align-items: baseline; gap: 6px; }
.char-ref-wrap .bone-menu-set-line span { color: #dce7f2; font-size: 11px; }
.char-ref-wrap .bone-menu-set-line b { margin-left: auto; color: #ffd45e; font-size: 11px; font-weight: 500; }
.char-ref-wrap .bone-menu-set-line em { color: #8ef07a; font-size: 10px; font-style: normal; }
.char-ref-wrap .bone-menu-set.off .bone-menu-set-line em { color: #e0a07a; }
.char-ref-wrap .bone-menu-set p { margin: 3px 0 0; color: #aebbc9; font-size: 10px; line-height: 1.45; word-break: break-all; }
.char-ref-wrap .bone-menu { width: 300px; }
.char-ref-wrap .bone-menu-act {
  width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 7px 7px;
  border: 1px solid rgba(211, 173, 90, .28); background: rgba(211, 173, 90, .045);
  color: #e9dcc2; text-align: left; cursor: pointer; transition: all .15s ease;
}
.char-ref-wrap .bone-menu-act:hover:not(:disabled) { border-color: #d9b25f; background: rgba(211, 173, 90, .13); }
.char-ref-wrap .bone-menu-act:disabled { opacity: .38; cursor: not-allowed; }
.char-ref-wrap .bone-menu-act i {
  width: 25px; height: 25px; flex: none; display: grid; place-items: center;
  border: 1px solid rgba(222, 183, 98, .45); border-radius: 50%;
  color: #ffd75e; font-size: 12px; font-style: normal;
}
.char-ref-wrap .bone-menu-act span { min-width: 0; }
.char-ref-wrap .bone-menu-act b { display: block; color: #f0d79a; font-size: 14px; font-weight: 500; }
.char-ref-wrap .bone-menu-act em { display: block; margin-top: 2px; color: #9aa5b5; font-size: 11px; font-style: normal; line-height: 1.35; }

/* 原版面板在 1600x900 框中按比例显示，避免底部被窗口裁切 */
@media (max-height: 900px) {
  .char-ref-wrap { min-height: 600px; }
  .char-ref-wrap .bone-silhouette { height: 520px; }
  .char-ref-wrap .bone-slot.arm-l { top: 120px; }
  .char-ref-wrap .bone-slot.arm-r { top: 148px; }
  .char-ref-wrap .bone-slot.torso { top: 210px; }
  .char-ref-wrap .bone-slot.leg-l, .char-ref-wrap .bone-slot.leg-r { bottom: 112px; }
}

/* ===== 角色面板紧凑化：压缩留白，不缩小字号与点击区 ===== */
.char-ref-wrap { min-height: 536px; }
.char-pane-head { height: 32px; margin: 2px 14px 0; }
.char-pane-head h3 { font-size: 21px; letter-spacing: 5px; }
.char-left-body { padding: 0 16px 4px; }
.char-top { gap: 10px; padding-bottom: 2px; }
.char-wuhun-art { width: 124px; height: 124px; padding: 4px; }
.char-rings { gap: 1px 10px; }
.soul-ring { width: 48px; height: 27px; }
.soul-ring img { width: 48px; height: 27px; }
.char-ring-foot { margin-top: 4px; }
.char-trait { margin: 1px 0 0; padding: 4px 8px; }
.char-info-grid { margin-top: 2px; padding: 3px 0; }
.char-info-row { padding: 2.5px 0; }
.char-vitals { margin-top: 5px; gap: 4px; }
.char-left-foot { margin-top: 5px; padding-top: 5px; }
.char-right-body {
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 38px;
  padding: 0 8px 4px;
}
.char-stat-col { padding: 3px 2px 0 6px; }
.ref-stat-block { margin-bottom: 3px; }
.ref-stat-row { padding: 3.5px 0; }
.char-ref-wrap .bone-map { min-height: 440px; }
.char-ref-wrap .bone-silhouette { width: 260px; height: 444px; }
.char-ref-wrap .bone-slot.head { top: 2px; }
.char-ref-wrap .bone-slot.arm-l { top: 96px; right: 4px; }
.char-ref-wrap .bone-slot.arm-r { top: 118px; left: 4px; }
.char-ref-wrap .bone-slot.torso { top: 165px; }
.char-ref-wrap .bone-slot.leg-l, .char-ref-wrap .bone-slot.leg-r { bottom: 88px; }
.char-ref-wrap .bone-slot.ext1, .char-ref-wrap .bone-slot.ext2, .char-ref-wrap .bone-slot.ext3 { bottom: 0; }
.char-right-foot { padding: 3px 8px 0; }

/* ===== 魂师学院：课程与签到日历 ===== */
.window.academy-window { max-height: 820px; }
.academy-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 2px 2px 11px; border-bottom: 1px solid rgba(217, 178, 95, .18);
  background: radial-gradient(ellipse at 18% 0%, rgba(217, 178, 95, .08), transparent 58%);
}
.academy-kicker { font-family: 'XinWei', serif; font-size: 23px; letter-spacing: 3px; color: #f0d79a; }
.academy-sub { margin-top: 5px; font-size: 11px; letter-spacing: .6px; color: #8d97a7; }
.academy-total { flex: none; text-align: right; color: #8d97a7; font-size: 11px; }
.academy-total b { margin: 0 4px 0 7px; font-family: 'XinWei', serif; font-size: 30px; font-weight: 400; color: #f0d79a; line-height: 1; }
.academy-total small { color: #8d97a7; font-size: 10px; }
.academy-tabs { display: flex; gap: 3px; margin: 13px 0 14px; border-bottom: 1px solid rgba(217, 178, 95, .16); }
.academy-tab {
  position: relative; padding: 8px 28px 9px; border: 0; background: transparent;
  color: #8d97a7; font-size: 13px; letter-spacing: 2px; cursor: pointer;
}
.academy-tab:hover { color: #e8d7ae; }
.academy-tab.active { color: #f0d79a; background: linear-gradient(180deg, rgba(217, 178, 95, .10), transparent); }
.academy-tab.active::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: #d9b25f; box-shadow: 0 0 8px rgba(217, 178, 95, .6); }
.academy-page { min-height: 438px; }
.academy-empty { padding: 80px 0; text-align: center; color: #7d8798; font-size: 12px; letter-spacing: 1px; }

.course-list { display: flex; flex-direction: column; gap: 8px; }
.course-card {
  display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 10px 13px;
  border: 1px solid rgba(217, 178, 95, .20);
  background: linear-gradient(100deg, rgba(217, 178, 95, .055), rgba(10, 15, 23, .52) 48%, rgba(195, 148, 67, .035));
  transition: border-color .15s ease, background .15s ease;
}
.course-card:hover { border-color: rgba(217, 178, 95, .45); background: linear-gradient(100deg, rgba(217, 178, 95, .10), rgba(10, 15, 23, .52) 48%, rgba(195, 148, 67, .05)); }
.course-card.working { border-color: rgba(111, 224, 180, .38); background: linear-gradient(100deg, rgba(111, 224, 180, .075), rgba(10, 15, 23, .52) 48%, rgba(195, 148, 67, .035)); }
.course-seal {
  width: 47px; height: 47px; flex: none; display: grid; place-items: center;
  border: 1px solid rgba(217, 178, 95, .55); border-radius: 50%;
  font-family: 'XinWei', serif; font-size: 21px; color: #f0d79a;
  background: radial-gradient(circle at 50% 35%, rgba(217, 178, 95, .22), rgba(8, 11, 17, .1) 70%);
  box-shadow: inset 0 0 14px rgba(217, 178, 95, .14), 0 0 10px rgba(0, 0, 0, .4);
}
.course-info { flex: 1; min-width: 0; }
.course-title { display: flex; align-items: baseline; gap: 11px; }
.course-title b { font-family: 'XinWei', serif; font-size: 19px; font-weight: 400; letter-spacing: 2px; color: #f2e4c4; }
.course-title span { font-size: 11px; color: #d9b25f; letter-spacing: .5px; }
.course-title i { color: #788394; font-style: normal; font-size: 10px; }
.course-desc { margin-top: 3px; color: #8d97a7; font-size: 11px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-gain { margin-top: 3px; color: #6fe0b4; font-size: 11px; letter-spacing: .3px; }
.course-gain::before { content: '◆'; margin-right: 5px; font-size: 8px; opacity: .75; }
.course-action { width: 158px; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.course-cost { width: 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: #e6c979; font-size: 12px; line-height: 1.3; text-align: right; }
.course-cost span { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.course-cost b { font-weight: 400; color: #f0d79a; font-variant-numeric: tabular-nums; }
.course-cost small { color: #8d97a7; font-size: 9px; }
.course-cost-done { color: #6fe0b4; font-size: 12px; letter-spacing: .5px; }
.course-study { color: #7d8798; font-size: 10px; line-height: 1.35; text-align: right; white-space: nowrap; }
.course-countdown { color: #6fe0b4; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.course-countdown.is-done { color: #f0d79a; }
.course-btn { min-width: 92px; padding: 5px 12px; font-size: 12px; letter-spacing: 1px; }
.academy-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(217, 178, 95, .12); color: #6f7b8d; font-size: 10px; letter-spacing: .5px; }

.calendar-head { display: flex; align-items: center; justify-content: space-between; padding: 1px 2px 9px; }
.calendar-head b { display: block; font-family: 'XinWei', serif; font-size: 20px; font-weight: 400; letter-spacing: 2px; color: #f0d79a; }
.calendar-head span { display: block; margin-top: 3px; color: #8d97a7; font-size: 10px; letter-spacing: .5px; }
.calendar-legend { display: flex; align-items: center; gap: 6px; color: #8d97a7; font-size: 10px; }
.calendar-legend .dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-left: 8px; }
.calendar-legend .dot:first-child { margin-left: 0; }
.dot.stone { background: #b9b0ff; box-shadow: 0 0 7px rgba(185, 176, 255, .7); }
.dot.todo { border: 1px solid #677384; background: transparent; }
.calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-bottom: 3px; }
.calendar-week span { padding: 4px 0 5px; border-bottom: 1px solid rgba(217, 178, 95, .14); color: #7d8798; font-size: 10px; text-align: center; letter-spacing: 1px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-cell {
  min-height: 55px; padding: 5px 7px 4px; border: 1px solid rgba(217, 178, 95, .13);
  background: linear-gradient(160deg, rgba(22, 30, 44, .62), rgba(8, 12, 19, .54)); border-radius: 2px;
}
.cal-cell.cal-blank { border-color: transparent; background: transparent; }
.cal-date { display: flex; align-items: center; justify-content: space-between; color: #b9c2cf; font-size: 13px; line-height: 1; }
.cal-date em { padding: 2px 4px; border: 1px solid rgba(217, 178, 95, .48); color: #f0d79a; font-size: 8px; font-style: normal; letter-spacing: .5px; }
.cal-reward { margin-top: 5px; font-size: 10px; line-height: 1.2; }
.cal-reward.rw-mon-thu { color: #e6c979; }
.cal-reward.rw-fri { color: #c8c2ff; text-shadow: 0 0 8px rgba(185, 176, 255, .35); }
.cal-reward.rw-sat { color: #dbe8ff; }
.cal-reward.rw-sun { color: #f0b87a; }
.cal-reward.stone { color: #c8c2ff; text-shadow: 0 0 8px rgba(185, 176, 255, .35); }
.cal-reward.todo { color: #6f7b8d; }
.cal-state { margin-top: 3px; color: #6f7b8d; font-size: 9px; letter-spacing: .5px; }
.cal-cell.today { border-color: rgba(240, 215, 154, .72); background: linear-gradient(160deg, rgba(217, 178, 95, .15), rgba(15, 19, 28, .64)); box-shadow: 0 0 12px rgba(217, 178, 95, .12) inset; }
.cal-cell.signed { background: linear-gradient(160deg, rgba(111, 224, 180, .10), rgba(8, 16, 18, .64)); }
.cal-cell.signed .cal-state { color: #6fe0b4; }
.cal-cell.missed { opacity: .50; border-style: dashed; }
.calendar-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(217, 178, 95, .16); }
.calendar-tip { color: #8d97a7; font-size: 10px; line-height: 1.6; }
.calendar-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.calendar-actions .btn { min-width: 138px; padding-left: 12px; padding-right: 12px; font-size: 11px; }

.monthly-rewards { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(217, 178, 95, .16); }
.monthly-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.monthly-head b { color: #f0d79a; font-family: 'XinWei', serif; font-size: 17px; font-weight: 400; letter-spacing: 1px; }
.monthly-head span { color: #7d8798; font-size: 10px; }
.monthly-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.monthly-card {
  min-height: 58px; padding: 7px 8px 6px; border: 1px solid rgba(217, 178, 95, .16);
  background: linear-gradient(160deg, rgba(22, 30, 44, .55), rgba(8, 12, 19, .5));
}
.monthly-card.claimable { border-color: rgba(111, 224, 180, .62); background: linear-gradient(160deg, rgba(111, 224, 180, .10), rgba(8, 15, 17, .55)); box-shadow: 0 0 10px rgba(111, 224, 180, .08) inset; }
.monthly-card.claimed { opacity: .52; }
.monthly-top { display: flex; align-items: baseline; gap: 6px; }
.monthly-top b { flex: none; color: #f0d79a; font-size: 12px; }
.monthly-top span { color: #c6cedb; font-size: 10px; line-height: 1.35; }
.monthly-card.claimed .monthly-top span { color: #7d8798; }
.monthly-foot { margin-top: 5px; color: #6f7b8d; font-size: 9px; text-align: right; }
.monthly-card.claimable .monthly-foot { color: #6fe0b4; }
.monthly-btn { padding: 3px 10px; font-size: 10px; min-width: 52px; }


/* ==================== 成神试炼 ==================== */
.god-trial-entry {
  flex: none; margin-top: 6px; padding: 6px 8px; display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(217, 178, 95, .28);
  background: linear-gradient(100deg, rgba(217, 178, 95, .12), rgba(8, 12, 19, .32));
}
.god-trial-entry.done { border-color: rgba(111, 224, 180, .45); background: linear-gradient(100deg, rgba(111, 224, 180, .11), rgba(8, 15, 17, .35)); }
.god-trial-entry > i {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center;
  border: 1px solid rgba(240, 215, 154, .55); border-radius: 50%;
  color: #f0d79a; font-family: 'XinWei', serif; font-size: 15px; font-style: normal;
  background: radial-gradient(circle at 40% 30%, rgba(255, 225, 150, .22), rgba(15, 22, 33, .9));
}
.god-trial-entry.done > i { color: #8ef0c0; border-color: rgba(111, 224, 180, .55); }
.god-trial-entry > div { flex: 1; min-width: 0; }
.god-trial-entry b { display: block; color: #f0d79a; font-size: 12px; font-weight: 500; letter-spacing: 1px; }
.god-trial-entry.done b { color: #8ef0c0; }
.god-trial-entry span { display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8d97a7; font-size: 10px; }
.god-trial-entry .btn { flex: none; }

.god-trial-panel { min-height: 280px; padding: 2px 4px 8px; }
.god-trial-loading { padding: 30px 10px; color: #8d97a7; text-align: center; font-size: 13px; }
.god-trial-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid rgba(217, 178, 95, .24);
  background: linear-gradient(110deg, rgba(217, 178, 95, .12), rgba(10, 15, 23, .7) 42%, rgba(10, 15, 23, .35));
}
.god-trial-head.done { border-color: rgba(111, 224, 180, .45); background: linear-gradient(110deg, rgba(111, 224, 180, .12), rgba(10, 18, 20, .72) 42%, rgba(10, 18, 20, .35)); }
.god-trial-mark {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(240, 215, 154, .58); color: #f5dc9a;
  font-family: 'XinWei', serif; font-size: 27px;
  background: radial-gradient(circle at 38% 28%, rgba(255, 228, 154, .26), rgba(21, 27, 37, .96) 68%);
  box-shadow: 0 0 18px rgba(217, 178, 95, .16);
}
.god-trial-head.done .god-trial-mark { color: #8ef0c0; border-color: rgba(111, 224, 180, .6); }
.god-trial-copy { flex: 1; min-width: 0; }
.god-trial-copy b { display: block; color: #f0d79a; font-family: 'XinWei', serif; font-size: 20px; font-weight: 400; letter-spacing: 2px; }
.god-trial-head.done .god-trial-copy b { color: #8ef0c0; }
.god-trial-copy span { display: block; margin-top: 4px; color: #aab4c2; font-size: 12px; }
.god-trial-wallet { flex: none; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; color: #9aa5b5; font-size: 11px; }
.god-trial-wallet b { color: #f0d79a; font-weight: 500; }
.god-trial-note { margin: 9px 2px 10px; color: #7d8798; font-size: 11px; line-height: 1.6; }
.god-seat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.god-seat {
  min-width: 0; padding: 10px 11px 9px; border: 1px solid rgba(217, 178, 95, .18);
  background: linear-gradient(155deg, rgba(22, 30, 44, .66), rgba(7, 11, 18, .62));
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .16);
}
.god-seat.ready { border-color: color-mix(in srgb, var(--seat-color) 62%, transparent); box-shadow: inset 0 0 24px color-mix(in srgb, var(--seat-color) 10%, transparent), 0 0 12px color-mix(in srgb, var(--seat-color) 8%, transparent); }
.god-seat.current { border-color: rgba(111, 224, 180, .6); }
.god-seat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.god-seat-head > div { min-width: 0; }
.god-seat-head b { display: block; color: var(--seat-color); font-family: 'XinWei', serif; font-size: 17px; font-weight: 400; letter-spacing: 1px; }
.god-seat-head span { display: block; margin-top: 1px; color: #7d8798; font-size: 10px; }
.god-seat-head em { flex: none; color: #f0d79a; font-size: 11px; font-style: normal; }
.god-seat.current .god-seat-head em { color: #8ef0c0; }
.god-seat-set { margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(217, 178, 95, .1); color: #c6bda8; font-size: 11px; }
.god-seat-set span { float: right; color: #f0d79a; }
.god-piece-grid { margin-top: 7px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.god-piece { min-width: 0; padding: 4px 5px; border: 1px solid rgba(125, 135, 152, .18); background: rgba(8, 12, 19, .34); }
.god-piece i { float: left; width: 13px; color: #596272; font-size: 11px; font-style: normal; line-height: 1.25; }
.god-piece span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #707b8d; font-size: 10px; }
.god-piece em { display: block; margin-top: 1px; color: #6fe0b4; font-size: 8px; font-style: normal; }
.god-piece.owned { border-color: color-mix(in srgb, var(--seat-color) 40%, transparent); background: color-mix(in srgb, var(--seat-color) 8%, rgba(8, 12, 19, .34)); }
.god-piece.owned i { color: var(--seat-color); }
.god-piece.owned span { color: #d8dfe9; }
.god-seat-foot { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8d97a7; font-size: 10px; }
.god-seat-foot b { color: #d87171; font-weight: 500; }
.god-seat-foot b.ok { color: #6fe0b4; }
.god-seat-foot .btn { flex: none; min-width: 78px; }
@media (max-width: 720px) {
  .god-seat-grid { grid-template-columns: 1fr; }
  .god-trial-head { align-items: flex-start; flex-wrap: wrap; }
  .god-trial-wallet { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ==================== 武魂真身 ==================== */
.truebody-panel { padding: 18px 20px 20px; color: var(--text); }
.truebody-loading { padding: 38px 0; text-align: center; color: var(--muted); letter-spacing: 2px; }
.tb-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(217, 178, 95, .2); }
.tb-mark { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border: 1px solid rgba(217, 178, 95, .65); border-radius: 50%; color: var(--gold); font-size: 26px; font-family: 'XinWei', 'Microsoft YaHei', sans-serif; background: radial-gradient(circle, rgba(217, 178, 95, .16), rgba(8, 10, 14, .2)); box-shadow: 0 0 22px rgba(217, 178, 95, .12) inset; }
.tb-head-copy { min-width: 0; }
.tb-head-copy b { display: block; color: #f3e6c8; font-family: 'XinWei', 'Microsoft YaHei', sans-serif; font-size: 18px; font-weight: 500; letter-spacing: 1px; }
.tb-head-copy span { display: block; margin-top: 4px; color: #9ba5b4; font-size: 11px; line-height: 1.6; }
.tb-wallet { margin-left: auto; display: flex; gap: 12px; flex: none; }
.tb-wallet span { padding: 5px 9px; border: 1px solid rgba(217, 178, 95, .24); color: #9fa9b7; font-size: 10px; letter-spacing: 1px; }
.tb-wallet b { margin-left: 4px; color: #f0d79a; font-weight: 500; }
.tb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tb-card { min-width: 0; padding: 13px 14px; border: 1px solid rgba(217, 178, 95, .22); background: linear-gradient(150deg, rgba(27, 24, 18, .74), rgba(10, 12, 15, .86)); }
.tb-trait-card { grid-column: 1 / -1; }
.tb-card h4 { margin: 0 0 8px; color: #e8d8b5; font-family: 'XinWei', 'Microsoft YaHei', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 2px; }
.tb-copy { margin: 0 0 10px; color: #8993a2; font-size: 10px; line-height: 1.7; }
.tb-trait { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 10px 12px; border: 1px solid rgba(217, 178, 95, .28); background: rgba(217, 178, 95, .055); }
.tb-trait b { color: #f2dfb4; font-size: 13px; font-weight: 500; }
.tb-trait span { flex: 1; min-width: 200px; color: #b8c1cf; font-size: 11px; line-height: 1.6; }
.tb-trait em { color: #d9b25f; font-style: normal; font-size: 10px; letter-spacing: 1px; }
.tb-note { margin: 10px 0 0; color: #737f90; font-size: 9px; line-height: 1.7; }
.tb-draw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.tb-draw-row span { color: #a8b2c0; font-size: 10px; line-height: 1.6; }
.tb-list { max-height: 236px; overflow-y: auto; padding-right: 3px; }
.tb-skill-row, .tb-bone-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(217, 178, 95, .1); }
.tb-skill-row:first-child, .tb-bone-row:first-child { border-top: 0; }
.tb-skill-row > div, .tb-bone-row > div { min-width: 0; }
.tb-skill-row b, .tb-bone-row b { display: block; overflow: hidden; color: #d9dfe8; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tb-skill-row span, .tb-bone-row span { display: block; margin-top: 2px; color: #7f8a99; font-size: 9px; letter-spacing: .5px; }
.tb-skill-row em, .tb-bone-row em { flex: none; color: #d9b25f; font-style: normal; font-size: 10px; }
.tb-skill-row em.ok, .tb-bone-row em.ok { color: #83c98e; }
.tb-skill-row .btn, .tb-bone-row .btn { flex: none; padding: 4px 9px; font-size: 9px; letter-spacing: .5px; }
.tb-empty { margin: 12px 0; color: #717d8d; font-size: 10px; text-align: center; }
.tb-card > .btn { margin-top: 4px; }

@media (max-width: 760px) {
  .truebody-panel { padding: 12px; }
  .tb-head { flex-wrap: wrap; gap: 10px; }
  .tb-wallet { width: 100%; margin-left: 0; justify-content: flex-end; flex-wrap: wrap; }
  .tb-grid { grid-template-columns: 1fr; }
  .tb-trait-card { grid-column: auto; }
  .tb-draw-row { flex-wrap: wrap; }
  .tb-list { max-height: 220px; }
}

/* ---------- 新版大陆地图（预览） ---------- */
.window.worldmap-window { width: min(1120px, 94vw) !important; max-height: 92vh; }
.worldmap-window .win-head { padding: 10px 16px; }
.worldmap-window .win-head h3 { font-size: 21px; }
.worldmap-window .win-body { padding: 0; overflow: hidden; flex: 1; min-height: 0; display: block; }
.worldmap-shell {
  width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% 10%, rgba(22, 48, 65, .45), transparent 58%), #071019;
}
.worldmap-toolbar {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 7px 14px;
  border-bottom: 1px solid rgba(217, 178, 95, .2);
  background: linear-gradient(180deg, rgba(19, 30, 43, .96), rgba(9, 15, 23, .92));
}
.worldmap-tabs { display: flex; gap: 4px; }
.worldmap-tab {
  padding: 5px 13px; border: 1px solid transparent; background: transparent; cursor: pointer;
  color: #8d9aaa; font-size: 11px; letter-spacing: 1px;
}
.worldmap-tab.active { color: #f0d698; border-bottom-color: #d9b25f; background: rgba(217, 178, 95, .08); }
.worldmap-tab:hover { color: #f7e7bc; }
.worldmap-status { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.worldmap-status span { color: #e2c98f; font-size: 10px; white-space: nowrap; }
.worldmap-status em { font-style: normal; color: #738396; font-size: 9px; letter-spacing: .4px; white-space: nowrap; }
.worldmap-stage-wrap { flex: 1; min-height: 0; overflow: auto; padding: 10px 12px 0; }
.worldmap-stage {
  position: relative; width: 100%; aspect-ratio: 2048 / 1152; overflow: hidden;
  border: 1px solid rgba(217, 178, 95, .34); background: #08101a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .65) inset, 0 10px 30px rgba(0, 0, 0, .35);
}
.worldmap-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill;
  filter: saturate(.86) brightness(.8) contrast(1.04); user-select: none;
}
.worldmap-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 43%, transparent 34%, rgba(3, 7, 12, .26) 72%, rgba(3, 7, 12, .68) 100%),
    linear-gradient(180deg, rgba(3, 7, 12, .32), transparent 18%, transparent 82%, rgba(3, 7, 12, .48));
}
.worldmap-region {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  z-index: 2; text-align: center; pointer-events: none; white-space: nowrap; opacity: .94;
}
.worldmap-region b {
  display: block; font-family: 'XinWei', serif; font-weight: 400;
  font-size: clamp(13px, 1.3vw, 20px); letter-spacing: 4px;
  color: rgba(246, 225, 178, .9);
  text-shadow: 0 2px 4px #000, 0 0 16px rgba(0, 0, 0, .95);
}
.worldmap-region em {
  display: block; margin-top: 2px; font-style: normal; font-size: 7px;
  letter-spacing: 2px; color: rgba(143, 194, 211, .58);
}
.region-ice b { color: #c7eaff; }
.region-sea b { color: #9edcf1; }
.region-divine b { color: #ffb19e; }
.region-xingdou b { color: #a6e7bd; }
.region-xingluo b { color: #e7c681; }
.worldmap-point {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  z-index: 4; display: flex; align-items: center; gap: 5px; padding: 4px 2px;
  border: 0; background: transparent; color: #dce9f5; cursor: pointer; white-space: nowrap;
}
.worldmap-point.side-left { flex-direction: row-reverse; text-align: right; }
.wm-dot {
  position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: #8fe7ff; border: 1px solid rgba(5, 12, 20, .92);
  box-shadow: 0 0 0 2px rgba(6, 14, 22, .62), 0 0 8px rgba(90, 215, 255, .78);
}
.worldmap-point.major .wm-dot {
  width: 10px; height: 10px; background: #ffd178;
  box-shadow: 0 0 0 2px rgba(6, 14, 22, .7), 0 0 12px rgba(255, 190, 75, .9);
}
.worldmap-point.current .wm-dot {
  background: #fff0b3; box-shadow: 0 0 0 3px rgba(255, 217, 122, .18), 0 0 15px #ffd06a;
  animation: wmPulse 1.8s ease-in-out infinite;
}
.worldmap-point.selected .wm-name { color: #ffe5a8; }
.worldmap-point.locked .wm-dot { background: #65717f; box-shadow: 0 0 0 2px rgba(6, 14, 22, .65); }
.worldmap-point.locked .wm-name { color: #7f8a97; }
.wm-name {
  font-size: 10px; line-height: 1; letter-spacing: .3px; color: #d8e6ef;
  text-shadow: 0 1px 2px #000, 0 0 5px #000, 0 0 10px rgba(0, 0, 0, .9);
}
.worldmap-point.hide-label .wm-name { display: none; }
.worldmap-point.major .wm-name { font-size: 12px; font-weight: 700; color: #f6dda2; }
.worldmap-point:hover .wm-name { color: #fff1bd; }
.worldmap-compass {
  position: absolute; right: 13px; bottom: 13px; z-index: 3; width: 34px; height: 34px;
  display: grid; place-items: center; transform: rotate(45deg);
  border: 1px solid rgba(217, 178, 95, .42); background: rgba(5, 11, 18, .5);
  box-shadow: 0 0 18px rgba(0, 0, 0, .4) inset;
}
.worldmap-compass span {
  transform: rotate(-45deg); font-family: 'XinWei', serif; font-size: 12px;
  color: #e4ca91; letter-spacing: 0; text-shadow: 0 1px 2px #000;
}
.worldmap-detail {
  flex: none; display: flex; align-items: center; gap: 12px; min-height: 58px;
  padding: 8px 14px; border-top: 1px solid rgba(217, 178, 95, .22);
  background: linear-gradient(180deg, rgba(12, 20, 30, .96), rgba(6, 11, 18, .98));
}
.wm-detail-copy { min-width: 0; }
.wm-detail-copy b {
  display: block; color: #f2dfae; font-family: 'XinWei', serif; font-size: 15px;
  letter-spacing: 1px; line-height: 1.25;
}
.wm-detail-copy span { display: block; margin-top: 3px; color: #8797a8; font-size: 10px; line-height: 1.4; }
.wm-detail-tags { display: flex; align-items: center; gap: 5px; margin-left: auto; flex: none; }
.wm-tag {
  padding: 3px 7px; border: 1px solid rgba(122, 145, 164, .28); color: #8fa3b5;
  font-size: 9px; letter-spacing: .5px;
}
.wm-tag.ok { color: #8ad9b0; border-color: rgba(86, 190, 138, .35); background: rgba(37, 91, 64, .24); }
.wm-tag.locked { color: #e0a09a; border-color: rgba(190, 91, 84, .35); background: rgba(91, 37, 34, .24); }
.wm-enter { flex: none; margin-left: 4px; }
.wm-enter[disabled] { opacity: .42; cursor: not-allowed; }
.worldmap-mobile-list { display: none; }
@keyframes wmPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 217, 122, .16), 0 0 12px #ffd06a; }
  50% { box-shadow: 0 0 0 5px rgba(255, 217, 122, .04), 0 0 20px #ffe6a8; }
}
