/* Scoreboard board styles. Values resolve to --29d-* tokens from the
   design system; the board accent comes from the document theme. */
.sb-board {
  --sb-accent: #C7471F;
  --sb-accent-dark: #FB7E54;
  font-family: var(--29d-font-ui, "Inter", system-ui, sans-serif);
  color: var(--29d-text-1, #1E2A30);
  width: 100%;
}
.sb-block {
  border: 1px solid var(--29d-border, rgba(30, 42, 48, 0.16));
  border-radius: 8px;
  background: var(--29d-surface, #FFFDF8);
  padding: 16px;
  margin: 0 0 12px;
}
.sb-header { display: flex; align-items: center; gap: 16px; }
.sb-header.sb-logo-center { flex-direction: column; text-align: center; }
.sb-logo { width: 56px; height: 56px; border-radius: 8px; object-fit: contain; flex: none; }
.sb-logo-text {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sb-accent); color: #FFFFFF;
  font-family: var(--29d-font-display, "Nunito", system-ui, sans-serif);
  font-weight: 800; font-size: 22px;
}
[data-theme="dark"] .sb-logo-text { background: var(--sb-accent-dark); color: #1E2A30; }
.sb-title {
  font-family: var(--29d-font-display, "Nunito", system-ui, sans-serif);
  font-size: clamp(26px, 5vw, 44px); line-height: 1.05; margin: 0; font-weight: 800;
}
.sb-sub { margin: 4px 0 0; font-size: clamp(13px, 2vw, 17px); color: var(--29d-text-3, #5A6B72); }
.sb-score { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: center; }
.sb-side { flex: 1; min-width: 0; }
.sb-team { font-size: clamp(15px, 2.6vw, 24px); font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.sb-num {
  font-size: clamp(56px, 13vw, 128px); line-height: 1; margin: 4px 0 0; font-weight: 800;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.sb-vs {
  flex: none; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--29d-text-3, #5A6B72); border: 1px solid var(--29d-border, rgba(30,42,48,0.16));
  border-radius: 999px; padding: 6px 12px; margin: 0;
}
.sb-matchup .sb-num { color: var(--sb-accent); }
[data-theme="dark"] .sb-matchup .sb-num { color: var(--sb-accent-dark); }
.sb-h2 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--29d-text-3, #5A6B72); margin: 0 0 8px; font-weight: 700;
}
.sb-rows { list-style: none; margin: 0; padding: 0; }
.sb-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-top: 1px solid var(--29d-border, rgba(30, 42, 48, 0.16));
}
.sb-row:first-child { border-top: none; }
.sb-rank {
  flex: none; width: 28px; height: 28px; border-radius: 999px; text-align: center;
  line-height: 28px; font-weight: 700; font-size: 13px;
  background: var(--29d-sunken, #EFEAE0); font-variant-numeric: tabular-nums;
}
.sb-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sb-row-label { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.sb-row-sub { font-size: 13px; color: var(--29d-text-3, #5A6B72); }
.sb-row-value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.sb-time { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; min-width: 76px; }
.sb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; background: none; border: none; padding: 0; }
.sb-kpi {
  border: 1px solid var(--29d-border, rgba(30, 42, 48, 0.16)); border-radius: 8px;
  background: var(--29d-surface, #FFFDF8); padding: 16px;
}
.sb-kpi-value { font-size: clamp(34px, 6vw, 56px); font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; line-height: 1; }
.sb-kpi-label { margin: 8px 0 0; font-weight: 600; font-size: 14px; }
.sb-kpi-delta { margin: 4px 0 0; font-size: 13px; color: var(--29d-text-3, #5A6B72); }
.sb-announce { text-align: center; padding: 40px 20px; }
.sb-announce p {
  font-family: var(--29d-font-display, "Nunito", system-ui, sans-serif);
  font-size: clamp(26px, 5.4vw, 52px); font-weight: 800; line-height: 1.15; margin: 0;
}
.sb-footer {
  text-align: center; font-size: 13px; color: var(--29d-text-3, #5A6B72);
  background: none; border: none; padding: 4px;
}
