/* ==========================================================
 * 指挥官 × 星光小站 · 产品原型规格书 样式
 * 风格：Linear / Vercel docs 类的专业规格文档
 * ========================================================== */

:root {
  /* —— 文档浅色：高对比 + 极淡灰线 —— */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-elev: #f5f5f4;
  --ink: #0a0a0a;
  --ink-2: #262626;
  --ink-3: #525252;
  --ink-dim: #737373;
  --ink-mute: #a3a3a3;
  --rule: rgba(10,10,10,0.08);
  --rule-soft: rgba(10,10,10,0.05);

  /* —— 主色：深靛蓝（点缀严格克制） —— */
  --brand: #1e1b4b;
  --brand-2: #4338ca;
  --brand-tint: #eef2ff;
  --link: #4338ca;

  /* —— 数据色 —— */
  --green: #10b981;
  --amber: #d97706;
  --red:   #b91c1c;

  /* —— 设备框深色（游戏HUD用） —— */
  --hoj-bg: #0c0a08;
  --hoj-surface: #14110d;
  --hoj-line: #2a2218;
  --hoj-gold: #c8a96a;
  --hoj-gold-2: #ffe18a;
  --hoj-blue: #6aaaca;
  --hoj-text: #f5ecd5;
  --hoj-mute: #8a7d5e;

  --sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Source Serif Pro", "Songti SC", Georgia, serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   顶部导航
   ============================================================ */
.doc-head {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 14px 32px; gap: 32px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.doc-head-l { display: flex; align-items: center; gap: 20px; min-width: 0; }
.doc-mark {
  display: flex; align-items: center; gap: 10px;
  padding-right: 16px; border-right: 1px solid var(--rule);
}
.doc-mark-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--brand); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: -0.02em;
}
.doc-mark-t {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.005em;
}
.doc-mark-t em {
  font-style: normal; color: var(--brand-2); margin: 0 4px;
}

.doc-crumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: -0.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crumb-sep { color: var(--ink-mute); opacity: 0.6; }
.crumb-current { color: var(--ink-2); }

.doc-head-c {
  display: flex; gap: 4px; align-items: center;
  padding: 4px; background: var(--bg-elev); border-radius: 8px;
}
.doc-nav-item {
  font-size: 13px; color: var(--ink-3); padding: 6px 12px; border-radius: 6px;
  text-decoration: none; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.doc-nav-item:hover { background: rgba(0,0,0,0.04); color: var(--ink); }

.doc-head-r { display: flex; gap: 16px; justify-content: flex-end; align-items: center; }
.doc-meta {
  display: flex; flex-direction: column; line-height: 1.2;
  padding: 4px 12px; border-left: 1px solid var(--rule);
}
.dm-label {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-mute); letter-spacing: 0.06em;
}
.dm-value {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink); font-weight: 600;
}

/* ============================================================
   章节框架
   ============================================================ */
.doc-section {
  max-width: 1280px; margin: 0 auto;
  padding: 64px 32px;
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  border-bottom: 1px solid var(--rule);
}
.doc-section:last-of-type { border-bottom: none; }

.sec-rail { position: relative; }
.rail-no {
  position: sticky; top: 88px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--brand); letter-spacing: 0;
  padding: 4px 10px;
  background: var(--brand-tint);
  border-radius: 12px;
  display: inline-block;
}
.rail-line {
  position: absolute; left: 50%; top: 32px; bottom: 0;
  width: 1px; background: var(--rule);
  transform: translateX(-50%);
}

.sec-body { min-width: 0; }
.sec-head { margin-bottom: 28px; }
.sec-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-2);
  margin-bottom: 12px;
}
.sec-title {
  font-family: var(--serif); font-weight: 700;
  font-size: 40px; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 16px;
}
.sec-title em { font-style: italic; color: var(--brand-2); }
.sec-h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 12px;
}
.sec-lead {
  font-size: 16px; line-height: 1.6; color: var(--ink-3);
  max-width: 720px; margin: 0 0 16px;
}

/* KPI 卡片 */
.sec-kpi {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 24px;
}
.kpi-card {
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--rule); border-radius: 10px;
}
.kpi-k {
  font-family: var(--serif); font-size: 32px; font-weight: 700;
  color: var(--ink); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.kpi-v { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* 立项摘要表 */
.proposal-meta {
  margin: 28px 0 0;
  border: 1px solid var(--rule); border-radius: 10px;
  overflow: hidden; background: var(--bg);
}
.pm-row {
  display: grid; grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--rule);
}
.pm-row:last-child { border-bottom: none; }
.pm-k {
  background: var(--bg-soft); padding: 14px 18px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.06em; font-weight: 600;
  border-right: 1px solid var(--rule);
  display: flex; align-items: center;
}
.pm-v {
  padding: 14px 20px;
  font-size: 14px; line-height: 1.6;
  color: var(--ink-2);
}
.pm-v b { color: var(--ink); font-weight: 600; }
code {
  font-family: var(--mono); font-size: 0.92em;
  background: var(--bg-elev); padding: 1px 6px; border-radius: 3px;
  color: var(--brand-2);
}

/* ============================================================
   §02 系统关系图
   ============================================================ */
.rel-graph {
  display: grid; grid-template-columns: 1fr auto 2fr; gap: 20px;
  align-items: center; margin: 28px 0;
}
.rel-node {
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--rule); border-radius: 10px;
  position: relative;
}
.rel-node.parent {
  border-color: var(--brand-2);
  background: var(--brand-tint);
}
.rel-children {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.rel-node.star {
  background: linear-gradient(135deg, #fffbeb, #fff);
  border-color: rgba(217,119,6,0.3);
}
.rn-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px;
  margin-bottom: 10px;
  background: var(--bg-elev); color: var(--ink-3);
}
.rel-node.parent .rn-tag { background: var(--brand); color: #fff; }
.rn-tag.star { background: var(--amber); color: #fff; }
.rn-tag.normal { background: var(--ink-2); color: #fff; }
.rn-name {
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.01em; margin-bottom: 6px;
}
.rn-desc { font-size: 13px; line-height: 1.55; color: var(--ink-3); margin-bottom: 12px; }
.rn-attr {
  padding-top: 10px; border-top: 1px dashed var(--rule);
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-mute); line-height: 1.6;
}
.rn-attr b { color: var(--ink-2); font-weight: 600; margin-right: 6px; }

.rel-arrow {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  text-align: center; letter-spacing: 0.08em;
}
.rel-arrow::before { content: "→"; display: block; font-size: 20px; color: var(--brand-2); margin-bottom: 4px; }

.rel-rules {
  background: var(--bg-soft);
  border: 1px solid var(--rule); border-radius: 10px;
  padding: 22px 26px; margin-top: 24px;
}
.rel-rules h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--ink); margin: 0 0 12px;
}
.rel-rules ol { padding-left: 20px; margin: 0; }
.rel-rules ol li { padding: 6px 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.rel-rules ol li b { color: var(--ink); font-weight: 600; }

/* —— 入口收编 callout —— */
.rel-merge-callout {
  margin-top: 24px; padding: 22px 26px;
  background: linear-gradient(135deg, rgba(67,56,202,0.04), rgba(255,255,255,0));
  border: 1px solid var(--rule); border-radius: 10px;
  border-left: 3px solid var(--brand-2);
}
.rmc-tag {
  display: inline-block; margin-bottom: 10px;
  padding: 2px 10px;
  background: var(--brand-2); color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  border-radius: 11px; font-weight: 600;
}
.rel-merge-callout h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  color: var(--ink); margin: 0 0 8px;
}
.rel-merge-callout > p {
  font-size: 14px; line-height: 1.65; color: var(--ink-2); margin: 0 0 16px;
}
.rel-merge-callout > p b { color: var(--ink); font-weight: 600; }
.rmc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.rmc-cell {
  padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 8px;
}
.rmc-h {
  font-family: var(--serif); font-size: 14px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.rmc-cell p {
  font-size: 13px; line-height: 1.55; color: var(--ink-3); margin: 0;
}
.rmc-cell p b { color: var(--brand-2); font-weight: 600; }

/* ============================================================
   §03 Tab & Device
   ============================================================ */
.flow-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 24px 0 0;
  border: 1px solid var(--rule);
  border-bottom: none;
  border-radius: 10px 10px 0 0; overflow: hidden;
  background: var(--bg);
}
.ft-tab {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: transparent; border: none;
  border-right: 1px solid var(--rule); cursor: pointer;
  text-align: left; transition: background 0.15s; font-family: inherit;
  color: var(--ink-3);
}
.ft-tab:last-child { border-right: none; }
.ft-tab:hover { background: var(--bg-elev); }
.ft-tab.active { background: var(--brand-tint); color: var(--ink); }
.ft-i {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg-elev); color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: -0.02em; flex: none;
}
.ft-tab.active .ft-i { background: var(--brand); color: #fff; }
.ft-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ft-t { font-size: 14px; font-weight: 600; color: inherit; }
.ft-s { font-size: 11px; color: var(--ink-mute); font-weight: 400; }

/* Device 框 */
.device {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--rule), 0 20px 40px -16px rgba(0,0,0,0.12);
}

/* 场景切换条（A 流程下使用） */
.scene-switch {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-soft);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.ss-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--ink-mute); letter-spacing: 0.06em;
  margin-right: 4px;
}
.ss-btn {
  font-family: var(--sans); font-size: 12px;
  color: var(--ink-3); background: var(--bg);
  border: 1px solid var(--rule); border-radius: 14px;
  padding: 4px 12px; cursor: pointer;
  transition: 0.15s;
}
.ss-btn:hover { border-color: var(--brand-2); color: var(--brand-2); }
.ss-btn.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.device-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--rule);
}
.dc-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dc-dot.r { background: #ef4444; }
.dc-dot.y { background: #f59e0b; }
.dc-dot.g { background: #22c55e; }
.dc-url {
  margin-left: 16px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  letter-spacing: -0.005em;
}
.proto-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--hoj-bg);
  overflow: hidden;
}
.device-cap {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute); letter-spacing: -0.005em;
}
.dc-i { color: var(--brand-2); font-weight: 700; }

/* ============================================================
   §04 三栏说明
   ============================================================ */
.spec-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.spec-col {
  background: var(--bg-soft);
  border: 1px solid var(--rule); border-radius: 10px;
  padding: 22px 24px;
}
.spec-h {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--brand-2);
  margin: 0 0 14px;
}
.spec-list { margin: 0; padding-left: 0; list-style: none; }
.spec-list li {
  position: relative; padding: 8px 0 8px 16px;
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
  border-bottom: 1px solid var(--rule-soft);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2);
}
.spec-list b { color: var(--ink); font-weight: 600; }

/* ============================================================
   Footer
   ============================================================ */
.doc-foot {
  max-width: 1280px; margin: 0 auto;
  padding: 32px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline;
}
.df-brand { font-size: 14px; font-weight: 700; color: var(--ink); }
.df-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-top: 4px; }
.df-r { display: flex; flex-direction: column; gap: 4px; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }

/* ============================================================
   设备内：开房间页（深色游戏 UI）
   ============================================================ */
.room, .flow-extra {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(200,169,106,0.12), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(120,30,30,0.3), transparent 60%),
    linear-gradient(180deg, #1a1208 0%, #0c0804 70%, #1a0f04 100%);
  color: var(--hoj-text); font-family: var(--serif);
  display: flex; flex-direction: column;
}
.room[hidden], .flow-extra[hidden] { display: none; }
.room::before, .flow-extra::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 80px);
}

/* TopBar */
.room-top {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
}
.rt-l, .rt-r { display: flex; align-items: center; gap: 12px; }
.rt-back { font-size: 12px; color: #aaa; cursor: pointer; }
.rt-back::before { content: "← "; }
.rt-title { font-family: var(--serif); font-size: 15px; color: var(--hoj-gold-2); letter-spacing: 0.08em; }
.rt-title::before { content: "◆ "; color: var(--hoj-gold); }
.rt-tag {
  font-family: var(--serif); font-size: 11px; color: var(--hoj-gold);
  padding: 2px 8px; border: 1px solid rgba(200,169,106,0.4); border-radius: 2px;
}

/* —— 难度选框（顶栏右侧）—— */
.diff-ctrl {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; cursor: pointer; transition: 0.15s;
  background: linear-gradient(90deg, rgba(58,44,24,0.55), rgba(20,14,8,0.55));
  border: 1px solid rgba(200,169,106,0.45); border-radius: 3px;
  font-family: var(--serif); font-size: 12px; color: var(--hoj-gold-2);
  position: relative;
  user-select: none;
  letter-spacing: 0.04em;
}
.diff-ctrl:hover { border-color: var(--hoj-gold-2); background: linear-gradient(90deg, rgba(78,60,32,0.6), rgba(30,22,12,0.6)); }
.diff-ctrl.diff-readonly { cursor: default; opacity: 0.85; }
.diff-ctrl.diff-readonly:hover { border-color: rgba(200,169,106,0.45); background: linear-gradient(90deg, rgba(58,44,24,0.55), rgba(20,14,8,0.55)); }
.diff-key { font-family: var(--mono); font-size: 10px; color: var(--hoj-mute); letter-spacing: 0.06em; }
.diff-val { font-weight: 500; }
.diff-arrow { font-size: 10px; color: var(--hoj-gold); margin-left: 2px; }
.diff-lock { font-size: 11px; opacity: 0.65; margin-left: 2px; }
.diff-host-tag {
  font-family: var(--mono); font-size: 9px;
  padding: 1px 5px; border: 1px solid rgba(200,169,106,0.4); border-radius: 9px;
  color: var(--hoj-mute); margin-left: 2px;
  letter-spacing: 0.04em;
}

/* 绝悟难度：红色字体 */
.diff-ctrl.diff-juewu .diff-val { color: #ff6b6b; text-shadow: 0 0 4px rgba(255,107,107,0.35); }
.diff-ctrl.diff-juewu { border-color: rgba(255,107,107,0.55); background: linear-gradient(90deg, rgba(80,30,30,0.6), rgba(30,15,15,0.6)); }
.diff-ctrl.diff-juewu:hover { border-color: #ff6b6b; }

/* 绝悟能量 */
.diff-energy {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px;
  font-family: var(--mono); font-size: 11px; color: var(--hoj-gold-2);
  background: rgba(255,225,138,0.1);
  border: 1px solid rgba(255,225,138,0.4); border-radius: 3px;
  letter-spacing: 0.04em;
}
.de-ico { color: #ffd24a; font-size: 11px; text-shadow: 0 0 4px rgba(255,210,74,0.6); }
.de-num { font-weight: 600; }

/* 难度下拉菜单 */
.diff-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 240px;
  background: rgba(20,14,8,0.98);
  border: 1px solid rgba(200,169,106,0.5); border-radius: 4px;
  z-index: 80;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  padding: 4px;
  animation: diffMenuIn 0.16s ease-out;
}
@keyframes diffMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.diff-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; cursor: pointer; transition: 0.12s;
  border-radius: 3px;
  font-family: var(--serif); font-size: 12px; color: var(--hoj-text);
  letter-spacing: 0.04em;
}
.diff-item:hover { background: rgba(200,169,106,0.15); }
.diff-item.active {
  background: rgba(200,169,106,0.2); color: var(--hoj-gold-2);
}
.diff-item.juewu .di-name { color: #ff6b6b; }
.diff-item.juewu.active { background: rgba(255,107,107,0.15); }
.di-cost {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 10px;
  color: var(--hoj-gold-2);
}
.diff-item.disabled { opacity: 0.4; cursor: not-allowed; }
.diff-item.disabled:hover { background: transparent; }
.diff-menu-foot {
  display: flex; justify-content: space-between;
  padding: 6px 10px 4px; margin-top: 2px;
  border-top: 1px dashed rgba(200,169,106,0.2);
  font-family: var(--mono); font-size: 9px;
  color: var(--hoj-mute); letter-spacing: 0.04em;
}
.dmf-l { color: var(--hoj-gold-2); }

.duo-banner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px; font-family: var(--serif); font-size: 12px;
  color: var(--hoj-gold-2); background: rgba(200,169,106,0.08);
  border-bottom: 1px solid rgba(200,169,106,0.25);
  transition: 0.25s;
}
.duo-banner b { color: var(--hoj-text); }
.duo-banner-l { display: flex; align-items: center; gap: 8px; flex: 1; text-align: left; }
.duo-banner-r { display: flex; align-items: center; gap: 6px; }
.duo-l-tag {
  padding: 1px 8px; border-radius: 2px;
  background: rgba(58,216,98,0.18); color: #3ad862;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em;
}
.duo-cd-label {
  font-family: var(--sans); font-size: 11px;
  color: var(--hoj-mute);
}
.duo-cd {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  color: var(--hoj-gold-2);
  min-width: 42px; text-align: right;
  letter-spacing: 0.02em;
}
.duo-banner.urgent {
  background: rgba(239,68,68,0.12);
  border-bottom-color: rgba(239,68,68,0.5);
}
.duo-banner.urgent .duo-cd {
  color: #ff6b6b;
  animation: cdPulse 0.8s ease-in-out infinite;
}
@keyframes cdPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.08); }
}

/* —— 新布局：左己方 + 中VS + 右敌方 —— */
.room-body {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 10px; padding: 10px 16px 4px;
  flex: 0 1 auto; min-height: 0;
}
.team-col {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  min-height: 0;
}
.team-col-label {
  font-family: var(--serif); font-size: 11px;
  color: var(--hoj-gold); letter-spacing: 0.08em;
  padding-bottom: 4px; border-bottom: 1px dashed rgba(200,169,106,0.25);
}
.team-col-label b { color: var(--hoj-gold-2); font-weight: 500; }

.lane-slot {
  display: grid; grid-template-columns: 30px 36px 1fr; gap: 8px; align-items: center;
  padding: 6px 9px;
  background: linear-gradient(90deg, rgba(58,44,24,0.5), rgba(26,18,8,0.55));
  border: 1px solid #5a4528; border-radius: 3px;
  cursor: pointer; position: relative;
  transition: 0.15s;
  min-width: 0;
}
.lane-slot:hover { border-color: #8a6a3a; }
.lane-slot.you {
  background: linear-gradient(90deg, rgba(26,58,90,0.6), rgba(10,32,48,0.6));
  border-color: var(--hoj-blue);
}
.lane-slot.star {
  background: linear-gradient(90deg, rgba(90,58,24,0.7), rgba(40,26,12,0.6));
  border: 2px solid var(--hoj-gold-2);
  box-shadow: inset 0 1px 0 rgba(255,235,170,0.15), 0 0 8px rgba(255,200,100,0.22);
  padding: 5px 8px;
}
.lane-slot.star::after {
  content: "★"; position: absolute; right: 6px; top: 3px;
  color: var(--hoj-gold-2); font-size: 10px;
}
.lane-slot.anon {
  opacity: 0.75; border-style: dashed;
  border-color: rgba(185,125,90,0.35);
  background: repeating-linear-gradient(45deg, rgba(60,35,25,0.45) 0 8px, rgba(35,22,15,0.45) 8px 16px);
  padding-right: 14px !important;
  cursor: default;
}
.lane-slot.anon .av-anon {
  background: linear-gradient(135deg, #3a2518, #0a0604) !important;
  border-color: rgba(185,125,90,0.45) !important;
  color: rgba(255,160,130,0.45) !important;
  font-family: var(--serif); font-size: 20px;
}
.lane-slot.anon .ls-name { color: rgba(255,200,180,0.68); }
.anon-tag {
  font-family: var(--mono); font-size: 9px;
  color: rgba(255,150,120,0.55);
  letter-spacing: 0.04em;
}
.lane-slot.empty {
  border-style: dashed; border-color: rgba(200,169,106,0.3);
  background: rgba(0,0,0,0.2);
}
.lane-slot.empty .ls-name { color: var(--hoj-mute); }
.lane-slot.empty .ls-sub { color: rgba(200,169,106,0.4); }
.lane-slot.empty:hover {
  border-color: var(--hoj-gold-2);
  background: rgba(255,225,138,0.06);
}
.av-empty {
  border-style: dashed !important; border-color: rgba(200,169,106,0.4) !important;
  background: transparent !important; color: var(--hoj-mute) !important;
  font-size: 16px !important;
}
.team-col.enemy .lane-slot {
  background: linear-gradient(90deg, rgba(90,30,30,0.45), rgba(40,20,20,0.55));
  border-color: #6a3030;
}
.ls-label {
  font-family: var(--serif); font-size: 10px; color: var(--hoj-mute);
  text-align: center; letter-spacing: 0.06em;
}
.av {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #3a2c18, #0a0604);
  border: 1.5px solid #8a6a3a; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px; color: var(--hoj-gold-2);
  flex: none;
}
.lane-slot.you .av { border-color: var(--hoj-blue); color: #cfe6ff; }
.lane-slot.star .av { border-color: var(--hoj-gold-2); border-width: 2px; }
.ls-info { min-width: 0; line-height: 1.25; }
.ls-name {
  font-family: var(--serif); font-size: 13px; color: var(--hoj-text);
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ls-sub {
  font-family: var(--sans); font-size: 10px; color: var(--hoj-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.lane-slot.star .ls-sub { color: var(--hoj-gold); }

/* —— 错位（off-lane）的隐晦视觉提示：饱和度降低 + 头像略灰 —— */
.lane-slot.off-lane .av {
  filter: saturate(0.55) brightness(0.92);
}
.lane-slot.off-lane .ls-name {
  color: rgba(245,236,213,0.82);
}

/* 熟练度星标（5 颗，本命满星，错位较少星） */
.proficiency {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--hoj-gold-2);
  text-shadow: 0 0 4px rgba(255,200,100,0.3);
}
/* 玩家自己用蓝色满星 */
.proficiency.you-mastery {
  color: var(--hoj-blue);
  text-shadow: 0 0 4px rgba(106,170,202,0.3);
}
.lane-slot.off-lane .proficiency {
  color: rgba(255,225,138,0.55);
  text-shadow: none;
}

/* 拖拽手柄 */
.ls-drag-handle {
  position: absolute; right: 4px; bottom: 3px;
  font-family: var(--mono); font-size: 11px;
  color: rgba(200,169,106,0.4);
  cursor: grab;
  letter-spacing: -2px;
  opacity: 0; transition: opacity 0.15s;
  user-select: none;
}
.lane-slot:hover .ls-drag-handle { opacity: 1; }
.lane-slot.dragging {
  opacity: 0.4; cursor: grabbing;
  outline: 1px dashed var(--hoj-gold-2);
}
.lane-slot.drop-target {
  outline: 2px dashed var(--hoj-gold-2);
  background: linear-gradient(90deg, rgba(120,90,40,0.6), rgba(60,40,20,0.5)) !important;
  box-shadow: inset 0 0 12px rgba(255,200,100,0.3);
}
.lane-slot.drop-forbidden {
  outline: 2px dashed #b91c1c;
  opacity: 0.6;
}
.lane-slot.drop-candidate {
  outline: 1px dashed rgba(255,225,138,0.35);
  outline-offset: 1px;
}

/* VS 柱的提示 */
.vs-drag-tip {
  margin-top: 14px; padding: 4px 10px;
  font-family: var(--mono); font-size: 9px;
  color: rgba(200,169,106,0.5);
  border: 1px dashed rgba(200,169,106,0.3);
  border-radius: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 8px 4px;
}

/* 中央 VS 柱 */
.vs-col {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding-top: 24px; gap: 6px;
}
.vs-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle, var(--hoj-gold), #3a2c18);
  border: 2px solid var(--hoj-gold-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px; color: #1a0f04; font-weight: 700;
  box-shadow: 0 0 12px rgba(255,200,100,0.4);
}
.vs-txt {
  font-family: var(--serif); font-size: 9px; color: var(--hoj-mute);
  letter-spacing: 0.1em; text-align: center;
}

/* AI 好友栏（独立行，跨整宽） */
.ai-friend-bar {
  position: relative; z-index: 2;
  margin: 6px 16px 4px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(200,169,106,0.22);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.aif-bar-head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.aif-bar-title {
  font-family: var(--serif); font-size: 11px;
  color: var(--hoj-gold-2); letter-spacing: 0.08em;
}
.aif-bar-title::before { content: "⟢ "; color: var(--hoj-mute); }
.aif-bar-meta {
  font-family: var(--mono); font-size: 10px;
  color: var(--hoj-mute);
}
.aif-bar-meta b { color: var(--hoj-text); font-weight: 600; }

.aif-bar-list {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.aif-bar-list::-webkit-scrollbar { height: 4px; }
.aif-bar-list::-webkit-scrollbar-thumb { background: rgba(200,169,106,0.3); border-radius: 2px; }

.aif-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 9px; flex: none;
  background: linear-gradient(90deg, rgba(58,44,24,0.4), rgba(20,14,8,0.5));
  border: 1px solid #3a2c18; border-radius: 18px;
  cursor: pointer; transition: 0.15s;
  position: relative;
}
.aif-chip.online:hover {
  border-color: var(--hoj-gold);
  background: linear-gradient(90deg, rgba(78,60,32,0.5), rgba(30,22,12,0.6));
}
.aif-chip.in-match { opacity: 0.55; }
.aif-chip.star { border-color: rgba(255,225,138,0.5); }
.aif-chip.star::before {
  content: "★"; position: absolute; top: -4px; left: 3px;
  color: var(--hoj-gold-2); font-size: 8px;
  text-shadow: 0 0 4px rgba(255,200,100,0.8);
}
.aif-chip-av {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #3a2c18, #0a0604);
  border: 1px solid #5a4528;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 11px; color: var(--hoj-gold-2);
  flex: none;
}
.aif-chip.star .aif-chip-av { border-color: var(--hoj-gold-2); }
.aif-chip-meta { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.aif-chip-name {
  font-family: var(--serif); font-size: 11px; color: var(--hoj-text);
  font-weight: 500;
  white-space: nowrap;
}
.aif-chip-lane {
  font-family: var(--mono); font-size: 9px;
  color: var(--hoj-mute); letter-spacing: 0.02em;
  white-space: nowrap; margin-top: 1px;
}
.aif-chip.star .aif-chip-lane { color: var(--hoj-gold); }

/* —— 未解锁星搭子：置灰锁定状态 —— */
.aif-chip.locked {
  background: linear-gradient(90deg, rgba(40,32,20,0.5), rgba(20,15,10,0.6));
  border-color: rgba(120,110,90,0.35);
  cursor: not-allowed;
  filter: saturate(0.25);
  opacity: 0.6;
}
.aif-chip.locked::before { content: none; }
.aif-chip.locked .aif-chip-av {
  background: linear-gradient(135deg, #2a2418, #0a0604);
  border-color: rgba(120,110,90,0.35);
  color: rgba(200,200,200,0.4);
  font-size: 12px;
}
.aif-chip.locked .aif-chip-name { color: rgba(200,200,200,0.55); font-weight: 400; }
.aif-chip.locked .aif-chip-lane { color: rgba(180,180,180,0.4); }
.aif-chip-state.locked {
  color: rgba(220,220,220,0.55); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.aif-chip.locked:hover {
  border-color: rgba(255,225,138,0.4);
  opacity: 0.85;
  filter: saturate(0.4);
}
.aif-chip-state {
  font-family: var(--mono); font-size: 9px; padding: 1px 5px;
  border-radius: 8px; letter-spacing: 0.04em;
}
.aif-chip-state.online { color: #3ad862; background: rgba(58,216,98,0.12); }
.aif-chip-state.in-match { color: var(--hoj-gold-2); background: rgba(255,225,138,0.1); }
.aif-chip-state.invited {
  color: #fff5b0; background: rgba(255,225,138,0.18);
  border: 1px dashed rgba(255,225,138,0.4);
  animation: chipInvitedBlink 1.2s ease-in-out infinite;
}
.aif-chip.invited { opacity: 0.75; }
@keyframes chipInvitedBlink {
  0%,100% { opacity: 0.7; }
  50%     { opacity: 1; }
}
.aif-bar-action {
  font-family: var(--serif); font-size: 11px; color: var(--hoj-gold-2);
  cursor: pointer; padding: 4px 8px; border: 1px dashed rgba(255,225,138,0.4);
  border-radius: 3px;
}
.aif-bar-action:hover { background: rgba(255,225,138,0.08); }

/* CTA 底部 */
.cta-bar {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: 1fr auto auto auto 1fr; gap: 12px;
  align-items: center; padding: 10px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
}
.cta-side { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cta-side-r { align-items: flex-end; }
.cta-l1 { font-family: var(--serif); font-size: 11px; color: var(--hoj-mute); letter-spacing: 0.06em; }
.cta-l2 {
  font-family: var(--serif); font-size: 13px; color: var(--hoj-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cta-l2 b { color: var(--hoj-gold-2); font-weight: 500; }

/* —— 玩家英雄卡（带切换角标）—— */
.cta-hero-card {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 12px 4px 4px;
  background: linear-gradient(90deg, rgba(26,58,90,0.5), rgba(10,32,48,0.4));
  border: 1px solid var(--hoj-blue); border-radius: 24px;
  cursor: pointer; transition: 0.15s;
}
.cta-hero-card:hover {
  border-color: var(--hoj-gold-2);
  background: linear-gradient(90deg, rgba(60,80,40,0.5), rgba(40,30,20,0.5));
}

/* —— 紧凑版玩家英雄按钮（只头像 + 切换角标）+ 聊天按钮 —— */
.cta-side-l { flex-direction: row !important; align-items: center; gap: 8px; }
.cta-hero-btn, .cta-chat-btn {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, rgba(26,58,90,0.55), rgba(10,32,48,0.45));
  border: 1.5px solid var(--hoj-blue); border-radius: 50%;
  cursor: pointer; transition: 0.15s;
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 0;
}
.cta-hero-btn:hover, .cta-chat-btn:hover {
  border-color: var(--hoj-gold-2); transform: translateY(-1px);
  filter: brightness(1.05);
}
.cta-hero-btn .cta-hero-av {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6aaaca, #1a3a4a);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px;
  border: none;
}
.cta-hero-btn .cta-hero-switch {
  position: absolute; right: -3px; bottom: -3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--hoj-gold-2); color: #1a0f04;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  border: 1px solid #fff5d8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.cta-chat-btn {
  background: linear-gradient(135deg, rgba(58,44,24,0.55), rgba(20,14,8,0.6));
  border-color: rgba(200,169,106,0.5);
}
.cta-chat-btn:hover { border-color: var(--hoj-gold-2); }
.ccb-icon { font-size: 18px; }
.ccb-unread {
  position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #ef4444; color: #fff;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  border: 1.5px solid #1a0f04; border-radius: 8px;
  line-height: 13px; text-align: center;
}

/* —— 原英雄卡（保留向后兼容，已不渲染但 CSS 留着）—— */
.cta-hero-av {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6aaaca, #1a3a4a);
  border: 1.5px solid var(--hoj-blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px;
  flex: none;
}
.cta-hero-card:hover .cta-hero-av { border-color: var(--hoj-gold-2); }
.cta-hero-switch {
  position: absolute; right: -3px; bottom: -3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--hoj-gold-2); color: #1a0f04;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  border: 1px solid #fff5d8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.cta-hero-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cta-hero-name {
  font-family: var(--serif); font-size: 13px; font-weight: 600;
  color: var(--hoj-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cta-hero-lane {
  font-family: var(--mono); font-size: 9px; color: var(--hoj-mute);
  letter-spacing: 0.04em; margin-top: 1px;
  white-space: nowrap;
}

/* —— 一键邀请按钮（与"开始训练"区分）—— */
.cta-primary.cta-fill {
  background: linear-gradient(180deg, #4338ca 0%, #312e81 50%, #1e1b4b 100%);
  color: #fff; border-color: #8478ff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 12px rgba(67,56,202,0.4);
}
.cta-primary.cta-fill:hover {
  filter: brightness(1.1);
}
.cta-secondary {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: rgba(0,0,0,0.4);
  border: 1px solid rgba(200,169,106,0.4); border-radius: 3px;
  font-family: var(--serif); font-size: 13px; color: var(--hoj-text);
  cursor: pointer; transition: 0.15s; white-space: nowrap;
}
.cta-secondary:hover { border-color: var(--hoj-gold); color: var(--hoj-gold-2); }
.cta-primary {
  height: 38px; padding: 0 28px; white-space: nowrap;
  background: linear-gradient(180deg, #ffe18a 0%, #c8a96a 50%, #8a6a3a 100%);
  color: #1a0f04; border: 2px solid #fff5d8; border-radius: 3px;
  cursor: pointer; font-family: var(--serif); font-size: 14px;
  letter-spacing: 0.14em; font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 12px rgba(255,200,100,0.3);
  transition: 0.2s;
}
.cta-primary:hover:not([disabled]) { filter: brightness(1.05); transform: translateY(-1px); }
.cta-primary[disabled] {
  background: linear-gradient(180deg, #5a4528 0%, #3a2c18 100%);
  color: #8a7d5e; border-color: #6a5028; cursor: not-allowed;
  text-shadow: none; box-shadow: none;
}

/* ============================================================
   星搭子入场 banner
   ============================================================ */
.star-banner {
  position: absolute; top: 50px; left: 50%; transform: translate(-50%, -20px);
  z-index: 100;
  display: flex; align-items: center;
  padding: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s, transform 0.5s;
}
.star-banner.show {
  opacity: 1; transform: translate(-50%, 0);
}
.star-banner.show.exit {
  opacity: 0; transform: translate(-50%, -20px);
}
.sb-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse at center, rgba(255,225,138,0.4), transparent 70%);
  pointer-events: none;
  animation: sbGlow 2.4s ease-in-out infinite;
}
@keyframes sbGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.sb-body {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 24px;
  background: linear-gradient(90deg, rgba(60,40,10,0.95), rgba(120,80,20,0.95), rgba(60,40,10,0.95));
  border: 1px solid var(--hoj-gold-2);
  border-radius: 4px;
  box-shadow: 0 0 24px rgba(255,200,100,0.4);
}
.sb-icon {
  font-size: 22px; color: var(--hoj-gold-2);
  text-shadow: 0 0 8px rgba(255,200,100,0.8);
  animation: sbIconSpin 3s linear infinite;
}
@keyframes sbIconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.sb-text { line-height: 1.2; }
.sb-line1 {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  color: var(--hoj-gold-2); letter-spacing: 0.04em;
}
.sb-line2 {
  font-family: var(--sans); font-size: 11px; color: var(--hoj-text);
  margin-top: 2px;
}
.sb-stars {
  display: flex; gap: 4px; margin-left: 8px;
}
.sb-stars span {
  color: var(--hoj-gold-2); font-size: 12px;
  animation: sbStarBlink 1.5s ease-in-out infinite;
}
.sb-stars span:nth-child(2) { animation-delay: 0.3s; }
.sb-stars span:nth-child(3) { animation-delay: 0.6s; }
@keyframes sbStarBlink {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* 入场分路席位 - 飞入动画 */
.lane-slot.entering {
  animation: laneSlotEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes laneSlotEnter {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
    box-shadow: 0 0 30px rgba(255,200,100,0.8);
  }
  60% {
    box-shadow: 0 0 30px rgba(255,200,100,0.6);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    box-shadow: inset 0 1px 0 rgba(255,235,170,0.15), 0 0 8px rgba(255,200,100,0.22);
  }
}

/* 再来一把轻提示 */
.reentry-hint {
  position: absolute; top: 60px; left: 50%; transform: translate(-50%, 0);
  z-index: 80;
  padding: 6px 16px;
  background: rgba(20,12,4,0.85);
  border: 1px solid rgba(200,169,106,0.4);
  border-radius: 2px;
  font-family: var(--serif); font-size: 11px;
  color: var(--hoj-mute); letter-spacing: 0.06em;
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.reentry-hint.show { opacity: 1; }
.reentry-hint b { color: var(--hoj-gold-2); font-weight: 600; }

/* 入场轻脉冲 */
.lane-slot.star.pulse-once {
  animation: starPulseOnce 1s ease-in-out;
}
@keyframes starPulseOnce {
  0% { box-shadow: inset 0 1px 0 rgba(255,235,170,0.15), 0 0 8px rgba(255,200,100,0.22); }
  50% { box-shadow: inset 0 1px 0 rgba(255,235,170,0.3), 0 0 18px rgba(255,200,100,0.6); }
  100% { box-shadow: inset 0 1px 0 rgba(255,235,170,0.15), 0 0 8px rgba(255,200,100,0.22); }
}

/* ============================================================
   Overlay (沿用旧的，略调)
   ============================================================ */
.overlay {
  position: absolute; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.overlay[hidden] { display: none; }
.overlay-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); }
.overlay-panel {
  position: relative; width: 640px; max-width: 94%;
  max-height: 86%; overflow-y: auto;
  background: linear-gradient(180deg, #1a1208, #0c0804);
  border: 1px solid var(--hoj-gold); border-radius: 6px;
  padding: 20px 24px; color: var(--hoj-text);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.op-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,169,106,0.25);
}
.op-head h3 { margin: 0; font-family: var(--serif); font-size: 18px; color: var(--hoj-gold-2); font-weight: 600; letter-spacing: 0.04em; }
.op-close { cursor: pointer; color: var(--hoj-mute); font-size: 20px; }
.op-close:hover { color: var(--hoj-text); }
.op-sub { font-family: var(--sans); font-size: 12px; color: var(--hoj-mute); margin-bottom: 14px; line-height: 1.5; }

/* AI 好友筛选 */
.aif-filter {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(200,169,106,0.15);
}
.aiff {
  background: rgba(58,44,24,0.4); border: 1px solid #3a2c18;
  color: var(--hoj-mute); padding: 4px 12px; border-radius: 14px;
  font-family: var(--sans); font-size: 11px; cursor: pointer;
  transition: 0.15s;
}
.aiff:hover { border-color: var(--hoj-gold); color: var(--hoj-text); }
.aiff.active { background: var(--hoj-gold); color: #1a0f04; border-color: var(--hoj-gold-2); font-weight: 600; }

/* Invite */
.invite-rule { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.rule-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 12px; background: rgba(200,169,106,0.06);
  border: 1px solid rgba(200,169,106,0.2); border-radius: 4px;
  font-family: var(--sans); font-size: 12px; color: var(--hoj-text); line-height: 1.5;
}
.rule-ico { color: var(--hoj-gold-2); flex: none; }
.rule-row b { color: var(--hoj-gold-2); }

.invite-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ch-card {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; cursor: pointer;
  background: linear-gradient(180deg, rgba(58,44,24,0.45), rgba(20,14,8,0.55));
  border: 1px solid #5a4528; border-radius: 4px;
  transition: 0.15s;
}
.ch-card:hover { border-color: var(--hoj-gold); background: linear-gradient(180deg, rgba(78,60,32,0.5), rgba(30,22,12,0.6)); }
.ch-card.featured { border-color: var(--hoj-blue); }
.ch-i { font-size: 22px; flex: none; }
.ch-t { font-family: var(--serif); font-size: 14px; color: var(--hoj-text); font-weight: 500; margin-bottom: 2px; }
.ch-card.featured .ch-t { color: #cfe6ff; }
.ch-s { font-family: var(--sans); font-size: 11px; color: var(--hoj-mute); line-height: 1.4; }

.match-rules { padding: 14px; background: rgba(106,170,202,0.08); border: 1px solid rgba(106,170,202,0.4); border-radius: 4px; margin-top: 4px; }
.mr-title { font-family: var(--serif); font-size: 13px; color: var(--hoj-blue); letter-spacing: 0.08em; margin-bottom: 10px; }
.mr-list { margin: 0; padding-left: 18px; font-family: var(--sans); font-size: 12px; color: var(--hoj-text); line-height: 1.7; }
.mr-list b { color: var(--hoj-gold-2); }
.mr-foot { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }

.btn {
  padding: 8px 18px; border-radius: 3px; cursor: pointer; font-family: var(--serif);
  font-size: 13px; letter-spacing: 0.06em; border: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--hoj-gold-2), var(--hoj-gold));
  color: #1a0f04; border: 1px solid #fff5d8; font-weight: 600;
}
.btn-ghost {
  background: transparent; color: var(--hoj-text);
  border: 1px solid rgba(200,169,106,0.4);
}

.invite-friends { margin-top: 6px; }
.if-title { font-family: var(--serif); font-size: 12px; color: var(--hoj-gold); margin: 12px 0 8px; letter-spacing: 0.08em; }
.invite-friend {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; margin-bottom: 6px; cursor: pointer;
  background: rgba(58,44,24,0.4); border: 1px solid #3a2c18; border-radius: 3px;
}
.invite-friend:hover { border-color: var(--hoj-gold); }
.if-av {
  width: 40px; height: 40px; border-radius: 4px;
  background: linear-gradient(135deg, #3a2c18, #0a0604);
  border: 1px solid var(--hoj-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: var(--hoj-gold-2); font-size: 14px;
}
.if-name { font-family: var(--serif); font-size: 13px; color: var(--hoj-text); }
.if-meta { font-family: var(--sans); font-size: 11px; color: var(--hoj-mute); margin-top: 2px; }
.if-btn { padding: 6px 14px; background: var(--hoj-gold); color: #1a0f04; border-radius: 3px; font-family: var(--serif); font-size: 12px; font-weight: 600; }

/* AI 好友选择网格（弹窗内） */
.kol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kol-card {
  position: relative; padding: 12px;
  background: linear-gradient(180deg, rgba(58,44,24,0.5), rgba(20,14,8,0.6));
  border: 1px solid #5a4528; border-radius: 4px;
  cursor: pointer; transition: 0.15s;
}
.kol-card:hover { border-color: var(--hoj-gold-2); }
.kol-card.selected {
  border-color: var(--hoj-gold-2);
  box-shadow: 0 0 8px rgba(255,200,100,0.4);
}
.kol-card.locked { opacity: 0.55; cursor: not-allowed; }
.kol-card.in-match { opacity: 0.55; cursor: not-allowed; }
.kol-card.star { border-color: rgba(255,225,138,0.5); }
.kc-tier {
  position: absolute; top: 8px; right: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 2px;
}
.kc-tier.star { background: var(--hoj-gold); color: #1a0f04; }
.kc-tier.normal { background: rgba(200,169,106,0.15); color: var(--hoj-gold); }
.kc-tier.shared { background: rgba(106,170,202,0.2); color: var(--hoj-blue); }
.kc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.kc-av {
  width: 38px; height: 38px; border-radius: 4px;
  background: radial-gradient(circle, var(--hoj-gold), #3a2c18);
  border: 1.5px solid var(--hoj-gold-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: #1a0f04; font-weight: 700; font-size: 16px;
}
.kc-name { font-family: var(--serif); font-size: 14px; color: var(--hoj-gold-2); font-weight: 500; }
.kc-team { font-family: var(--sans); font-size: 10px; color: var(--hoj-mute); }
.kc-lane { font-family: var(--sans); font-size: 11px; color: var(--hoj-text); line-height: 1.5; }
.kc-lane b { color: var(--hoj-gold-2); }
.kc-lane2 { font-family: var(--sans); font-size: 11px; color: var(--hoj-mute); line-height: 1.5; margin-top: 2px; }
.kc-quote { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 11px; color: #d8c89a; line-height: 1.5; }

/* —— 切换英雄面板 —— */
.hero-panel { width: 680px; }
.hero-picker {
  display: flex; flex-direction: column; gap: 14px;
}
.hp-group {
  display: flex; flex-direction: column; gap: 6px;
}
.hp-group-title {
  font-family: var(--serif); font-size: 12px;
  color: var(--hoj-gold); letter-spacing: 0.1em;
  padding-bottom: 4px; border-bottom: 1px dashed rgba(200,169,106,0.2);
}
.hp-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.hp-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px;
  background: linear-gradient(180deg, rgba(58,44,24,0.45), rgba(20,14,8,0.55));
  border: 1px solid #5a4528; border-radius: 4px;
  cursor: pointer; transition: 0.15s;
}
.hp-cell:hover {
  border-color: var(--hoj-gold-2);
  background: linear-gradient(180deg, rgba(78,60,32,0.55), rgba(30,22,12,0.6));
}
.hp-cell.active {
  border-color: var(--hoj-gold-2);
  background: rgba(255,225,138,0.12);
  box-shadow: 0 0 8px rgba(255,200,100,0.3);
}
.hp-cell.active::before {
  content: "✓"; position: absolute;
  font-family: var(--mono); font-size: 12px;
  color: var(--hoj-gold-2);
}
.hp-i {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.hp-n {
  font-family: var(--serif); font-size: 11px;
  color: var(--hoj-text);
  white-space: nowrap;
}
.hp-cell.active .hp-n { color: var(--hoj-gold-2); font-weight: 600; }

/* Tip overlay */
.tip-panel {
  position: relative; width: 420px; max-width: 90%;
  background: linear-gradient(180deg, #1a1208, #0c0804);
  border: 1px solid var(--hoj-gold); border-radius: 6px;
  padding: 24px; text-align: center;
}
.tip-ico { font-size: 32px; color: var(--hoj-gold-2); margin-bottom: 8px; }
.tip-panel h3 { margin: 0 0 10px; font-family: var(--serif); color: var(--hoj-gold-2); font-size: 18px; font-weight: 600; }
.tip-panel p { margin: 0 0 18px; color: var(--hoj-text); font-size: 13px; line-height: 1.6; font-family: var(--sans); }

/* Toast */
.toast {
  position: absolute; top: 24px; left: 50%; transform: translate(-50%, -10px);
  background: linear-gradient(180deg, #1a1208, #0c0804);
  border: 1px solid var(--hoj-gold-2);
  color: var(--hoj-gold-2);
  padding: 10px 22px; border-radius: 3px;
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transition: 0.25s; z-index: 9999;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
 * v0.5.0 追加：熟练度条 / invited 占位 / 移出按钮 / 聊天面板 / 复盘切换
 * ============================================================ */

/* —— 熟练度条（替代 ★ 星标）—— */
.prof-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 10px;
  color: var(--hoj-gold-2);
  letter-spacing: 0.02em;
}
.prof-num {
  white-space: nowrap; font-weight: 500;
}
.prof-bar {
  display: inline-block;
  width: 30px; height: 3px;
  background: rgba(200,169,106,0.18);
  border-radius: 1px;
  overflow: hidden;
}
.prof-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #c8a96a, #ffe18a);
  transition: width 0.3s;
}
.prof-you .prof-num { color: var(--hoj-blue); }
.prof-you .prof-bar i { background: linear-gradient(90deg, #4a8bb5, #6aaaca); }
.prof-bonus { position: relative; }
.prof-bonus .prof-bar i { background: linear-gradient(90deg, #c8a96a, #ffe18a, #fff5b0); box-shadow: 0 0 4px rgba(255,225,138,0.5); }
.prof-plus {
  font-family: var(--serif); font-size: 9px; color: var(--hoj-gold-2);
  margin-left: 1px; opacity: 0.85;
}
.lane-slot.off-lane .prof-tag { opacity: 0.65; }

/* —— invited 占位 —— */
.lane-slot.invited {
  border-style: dashed; border-color: rgba(200,169,106,0.45);
  background: linear-gradient(90deg, rgba(60,42,20,0.5), rgba(28,20,10,0.4));
}
.lane-slot.invited.invited-star {
  border-color: var(--hoj-gold-2);
  background: linear-gradient(90deg, rgba(120,90,40,0.4), rgba(60,42,20,0.4));
  animation: invitedStarPulse 1.4s ease-in-out infinite;
}
@keyframes invitedStarPulse {
  0%,100% { box-shadow: inset 0 0 4px rgba(255,225,138,0.2); }
  50%     { box-shadow: inset 0 0 12px rgba(255,225,138,0.5); }
}
.av-invited {
  background: rgba(0,0,0,0.4) !important;
  border-style: dashed !important; border-color: rgba(200,169,106,0.4) !important;
  color: rgba(200,169,106,0.6) !important;
  animation: avInvitedBlink 1s ease-in-out infinite;
}
@keyframes avInvitedBlink {
  0%,100% { opacity: 0.55; }
  50%     { opacity: 0.9; }
}
.invited-tag {
  font-family: var(--mono); font-size: 9px;
  color: var(--hoj-gold); letter-spacing: 0.04em;
}
.ls-name-pending {
  color: var(--hoj-mute) !important; font-style: italic;
  letter-spacing: 0.06em;
}

/* —— 落位动画 —— */
.lane-slot.just-seated {
  animation: justSeated 0.6s ease-out;
}
.lane-slot.star.just-seated {
  animation: justSeatedStar 0.7s ease-out;
}
@keyframes justSeated {
  0%   { transform: translateX(-12px); opacity: 0; }
  100% { transform: translateX(0);     opacity: 1; }
}
@keyframes justSeatedStar {
  0%   { transform: scale(0.94); box-shadow: 0 0 0 rgba(255,225,138,0); }
  50%  { box-shadow: 0 0 18px rgba(255,225,138,0.6); }
  100% { transform: scale(1);    box-shadow: 0 0 0 rgba(255,225,138,0); }
}

/* —— 席位「退出」图标按钮（低调风格，hover 才提示）—— */
.ls-remove {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(200,169,106,0.45);
  background: transparent;
  border: 1px solid rgba(200,169,106,0.22); border-radius: 3px;
  cursor: pointer; transition: 0.18s;
  z-index: 3; padding: 0;
}
.ls-remove:hover {
  color: #ff8b8b;
  border-color: rgba(255,139,139,0.65);
  background: rgba(185,28,28,0.12);
}
.ls-remove:active { transform: translateY(-50%) scale(0.92); }
.lane-slot { padding-right: 42px !important; }
.ls-drag-handle { right: 42px !important; }

/* —— AI 好友栏：一键清空 / 加成提示 —— */
.aif-clear {
  margin-left: 10px;
  padding: 3px 10px;
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,200,200,0.85);
  background: rgba(185,28,28,0.18);
  border: 1px solid rgba(185,28,28,0.55); border-radius: 3px;
  cursor: pointer; letter-spacing: 0.06em;
}
.aif-clear:hover {
  background: #b91c1c; color: #fff;
}
.aif-bonus-hint {
  display: inline-block; margin-left: 10px;
  padding: 1px 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--hoj-gold-2);
  background: rgba(255,225,138,0.08);
  border: 1px solid rgba(255,225,138,0.3); border-radius: 10px;
}
.aif-bonus-hint b { color: #fff5b0; font-weight: 600; }

/* —— 房间聊天面板 —— */
.room-chat {
  position: absolute;
  left: 16px; bottom: 70px;
  z-index: 25;
}
.room-chat.collapsed { display: none; }
.room-chat.expanded  { width: 280px; }

.chat-bubble {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px;
  background: linear-gradient(90deg, rgba(58,44,24,0.85), rgba(20,14,8,0.85));
  border: 1px solid rgba(200,169,106,0.4); border-radius: 22px;
  cursor: pointer; transition: 0.15s;
  font-family: var(--serif); font-size: 11px; color: var(--hoj-gold-2);
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}
.chat-bubble:hover { border-color: var(--hoj-gold-2); background: linear-gradient(90deg, rgba(78,60,32,0.9), rgba(30,22,12,0.9)); }
.chat-icon { font-size: 14px; }
.chat-unread {
  margin-left: auto;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #ef4444; color: #fff;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  border-radius: 8px; line-height: 16px; text-align: center;
}

.room-chat.expanded {
  display: flex; flex-direction: column;
  height: 320px;
  background: linear-gradient(180deg, rgba(20,14,8,0.95), rgba(10,8,4,0.95));
  border: 1px solid rgba(200,169,106,0.35);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(200,169,106,0.18);
}
.chat-head-t {
  font-family: var(--serif); font-size: 11px; color: var(--hoj-gold-2);
  letter-spacing: 0.06em;
}
.chat-close {
  width: 18px; height: 18px;
  background: transparent; color: var(--hoj-mute);
  border: 1px solid rgba(200,169,106,0.3); border-radius: 2px;
  cursor: pointer; font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
}
.chat-close:hover { color: var(--hoj-gold-2); border-color: var(--hoj-gold-2); }

.chat-list {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 8px 8px 4px;
  display: flex; flex-direction: column; gap: 8px;
}
.chat-list::-webkit-scrollbar { width: 4px; }
.chat-list::-webkit-scrollbar-thumb { background: rgba(200,169,106,0.25); border-radius: 2px; }

.chat-msg { display: flex; gap: 6px; }
.chat-msg-system { justify-content: center; }
.chat-system {
  font-family: var(--mono); font-size: 9px;
  color: var(--hoj-mute); letter-spacing: 0.04em;
  padding: 2px 8px;
  background: rgba(0,0,0,0.3); border-radius: 9px;
}
.chat-av {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #3a2c18, #0a0604);
  border: 1px solid #5a4528; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 10px; color: var(--hoj-gold-2);
}
.chat-av-star { border-color: var(--hoj-gold-2); box-shadow: 0 0 4px rgba(255,225,138,0.3); }
.chat-av-player {
  background: linear-gradient(135deg, #1a3a5a, #0a1a2a);
  border-color: var(--hoj-blue); color: #fff;
}
.chat-bd { flex: 1; min-width: 0; }
.chat-meta { display: flex; gap: 6px; align-items: baseline; margin-bottom: 1px; }
.chat-name {
  font-family: var(--serif); font-size: 10px; color: var(--hoj-text);
  font-weight: 500;
}
.chat-msg-star .chat-name { color: var(--hoj-gold-2); }
.chat-msg-player .chat-name { color: var(--hoj-blue); }
.chat-ts { font-family: var(--mono); font-size: 8px; color: var(--hoj-mute); }
.chat-bubble-text {
  font-family: var(--sans); font-size: 11px;
  color: rgba(245,236,213,0.92); line-height: 1.45;
  padding: 4px 8px;
  background: rgba(0,0,0,0.32); border-radius: 8px 8px 8px 2px;
  word-wrap: break-word;
}
.chat-msg-star .chat-bubble-text {
  background: linear-gradient(135deg, rgba(78,60,32,0.5), rgba(40,28,14,0.6));
  border: 1px solid rgba(200,169,106,0.3);
}
.chat-msg-player {
  flex-direction: row-reverse;
}
.chat-msg-player .chat-bubble-text {
  background: rgba(26,58,90,0.5);
  border-radius: 8px 8px 2px 8px;
}
.chat-msg-player .chat-meta { justify-content: flex-end; }
.chat-at-tag {
  display: inline-block; padding: 0 2px;
  color: var(--hoj-gold-2); font-weight: 500;
  background: rgba(255,225,138,0.12); border-radius: 2px;
}

.chat-input-wrap {
  display: flex; gap: 4px;
  padding: 6px 8px;
  border-top: 1px solid rgba(200,169,106,0.18);
  position: relative;
}
.chat-at-btn {
  width: 26px; height: 26px; flex: none;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(200,169,106,0.25); border-radius: 3px;
  color: var(--hoj-gold-2); cursor: pointer;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: 0.15s;
}
.chat-at-btn:hover {
  background: rgba(255,225,138,0.12);
  border-color: var(--hoj-gold-2);
}
.chat-input {
  flex: 1; min-width: 0;
  height: 26px; padding: 0 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(200,169,106,0.25); border-radius: 3px;
  color: var(--hoj-text);
  font-family: var(--sans); font-size: 11px;
  outline: none;
}
.chat-input:focus { border-color: var(--hoj-gold-2); }
.chat-input::placeholder { color: rgba(200,169,106,0.35); }
.chat-send {
  padding: 0 10px; height: 26px;
  background: linear-gradient(180deg, #c8a96a, #8a6a3a);
  border: 1px solid #fff5d8; border-radius: 3px;
  color: #1a0f04; cursor: pointer;
  font-family: var(--serif); font-size: 11px; font-weight: 600;
}
.chat-send:hover { filter: brightness(1.05); }

.chat-at-pop {
  position: absolute; left: 8px; bottom: 38px; right: 8px;
  max-height: 120px; overflow-y: auto;
  background: rgba(20,14,8,0.96);
  border: 1px solid rgba(200,169,106,0.4); border-radius: 3px;
  padding: 4px;
  z-index: 5;
  display: none;  /* 默认收起，靠 .is-open 显示 */
  flex-direction: column; gap: 2px;
  animation: atPopIn 0.16s ease-out;
}
.chat-at-pop.is-open { display: flex; }
@keyframes atPopIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-at-empty {
  padding: 8px 6px;
  font-family: var(--sans); font-size: 11px;
  color: var(--hoj-mute); text-align: center;
}
.chat-at-item {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; cursor: pointer;
  font-family: var(--serif); font-size: 11px; color: var(--hoj-text);
  border-radius: 2px;
}
.chat-at-item:hover { background: rgba(200,169,106,0.15); color: var(--hoj-gold-2); }
.chat-at-av {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #3a2c18, #0a0604);
  border: 1px solid #5a4528;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--hoj-gold-2);
}

/* —— 结算页：复盘切换条 —— */
.st-review-switcher {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(200,169,106,0.2);
}
.srs-label {
  font-family: var(--mono); font-size: 10px;
  color: var(--hoj-mute); letter-spacing: 0.04em;
  margin-right: 4px;
}
.srs-item {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 4px;
  background: rgba(58,44,24,0.4);
  border: 1px solid #5a4528; border-radius: 12px;
  cursor: pointer; transition: 0.15s;
  font-family: var(--serif); font-size: 11px; color: var(--hoj-text);
}
.srs-item:hover { border-color: var(--hoj-gold-2); }
.srs-item.active {
  background: linear-gradient(135deg, rgba(120,90,40,0.6), rgba(60,42,20,0.5));
  border-color: var(--hoj-gold-2);
  color: var(--hoj-gold-2);
}
.srs-av {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #3a2c18, #0a0604);
  border: 1px solid var(--hoj-gold-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 9px; color: var(--hoj-gold-2);
}
