/* ============================================================
 * 4. 通用 panel 基础
 * ============================================================ */

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: 0;
  padding: 10px 14px;
  margin-bottom: var(--gap-module);
}

/* ============================================================
 * 5. Team Profile + Coach Scout
 * ============================================================ */

#team-profile {
  background: var(--bg-panel);
  border: none;
  border-left: 3px solid var(--green);
  border-radius: 0;
  padding: 10px 14px;
  margin-bottom: var(--gap-module);
  font-size: 12px;
  line-height: 1.6;
}

#coach-scout {
  background: var(--bg-panel);
  border: none;
  border-left: 3px solid var(--gold-primary);
  border-radius: 0;
  padding: 10px 14px;
  margin-bottom: var(--gap-module);
  font-size: 12px;
  line-height: 1.6;
}

/* side-* 内文字类（render.js 用这套渲染 team-profile / coach-scout 内文字） */
#team-profile .side-mini-title {
  color: var(--green);
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
}

#coach-scout .side-mini-title {
  color: var(--gold-primary);
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
}

#team-profile .side-line,
#coach-scout .side-line {
  color: var(--text-main);
  font-size: 12px;
  line-height: 1.6;
}

#team-profile .side-section,
#coach-scout .side-section {
  margin-top: 6px;
}

#team-profile .side-muted,
#coach-scout .side-muted {
  color: var(--text-dim);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

/* run-identity-return：上一场带来的身份卡（内嵌式 panel） */
.run-identity-return {
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--bg-base);
  border-left: 2px solid var(--gold-primary);
  border-radius: 0;
}

.run-identity-return b {
  display: block;
  color: var(--gold-primary);
  font-size: 12px;
  margin-bottom: 2px;
}

.run-identity-return span {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
  font-style: italic;
}

/* ============================================================
 * 6. HUD（#header）
 * ============================================================ */

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: 0;
  margin-bottom: var(--gap-module);
}

.hud-team,
.hud-opponent {
  flex: 0 0 auto;
}

.hud-score {
  flex: 1;
  text-align: center;
}

.hud-team-line {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-team-line.away {
  justify-content: flex-end;
}

.hud-badge {
  /* 不显示圆形 badge */
  display: none;
}

.hud-team-name {
  color: var(--text-dim);
  font-size: 12px;
}

.hud-opponent .hud-team-name {
  color: var(--text-main);
  font-size: 12px;
}

.hud-opp-style {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 2px;
}

/* 你的球队风格（涌现流派），跟 .hud-opp-style 对称，左对齐 */
.hud-team-style {
  font-size: 11px;
  color: var(--text-muted);
  text-align: left;
  margin-top: 2px;
}

.score {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 6px;
  color: var(--text-main);
  line-height: 1.1;
}

.meta-line {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: baseline;
}

.meta-line #clock {
  color: var(--text-dim);
  font-size: 11px;
}

/* energy 系统：v1.2 起从 HUD 移到 hand-bar，与决策环（卡牌+回合按钮）聚合 */
.energy-bar {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* hand-bar 内的能量条：信息层（无边框，与可点击按钮视觉区分）
 * 设计原则：信息显示 = 无边框 + 大字号；可点击操作 = 有边框 + uppercase
 * 视觉重量靠字号和粗细，不靠边框
 */
#hand-bar .energy-bar {
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-mono);
  letter-spacing: 0.4px;
  margin-right: 18px;
}

#hand-bar .energy-bar .energy-label {
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
}

#hand-bar .energy-bar .energy-core {
  font-size: 17px;
}

.energy-label {
  font-size: 12px;
  color: var(--text-dim);
}

.energy-pips {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.energy-core {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
}

.energy-core.is-on::before {
  content: "◆";
  color: var(--gold-primary);
}

.energy-core.is-off::before {
  content: "◇";
  color: var(--text-muted);
}

/* ============================================================
 * 7. Match Stage
 * ============================================================ */

#match-stage {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 var(--gap-module) 0;
  display: block;
}
