/* ==========================================================================
   pistons.css: the Pistons playoff tracker in the Woodward system (Edition 2, Claude Opus 5.5)

   Cascade layers, lowest to highest:
   woodward   the design system (imported here so Edition 1 class names that
              collide with Woodward's, like .num and .row, keep their meaning)
   skeleton   ALIASES (Edition 1 token names re-pointed at Woodward tokens) and the
              Edition 1 stylesheet with its visual language removed by
              ~/app-redesign/tools/reskin.mjs. GENERATED: edit ports-src/ and run
              ~/app-redesign/tools/assemble-port.sh (see ports-src/README.md).
   ports      woodward-ports.css, the skin shared with the Tigers page
   page       the Pistons-only skin below
   ========================================================================== */
@layer woodward, skeleton, ports, page;
@import url("woodward.css") layer(woodward);
@import url("woodward-ports.css") layer(ports);

@layer skeleton {
/* ---------- aliases ---------- */
body[data-team="pistons"] {
  --pistons-red: var(--team); --pistons-red-bright: var(--team); --pistons-red-deep: var(--team);
  --pistons-blue: var(--team-2); --pistons-blue-bright: var(--team-2); --pistons-blue-deep: var(--team-2);
  --pistons-white: var(--ink); --pistons-chrome: var(--ink-3);
  --pistons-red-glow: transparent; --pistons-red-glow-soft: var(--team-soft);
  --pistons-blue-glow: transparent; --pistons-blue-glow-soft: color-mix(in srgb, var(--team-2) 10%, transparent);
  --red: var(--team); --blue: var(--team-2); --red-glow: transparent; --blue-glow: transparent;
  --white: var(--ink);
  --bg: var(--ground); --bg-deep: var(--ground-2); --bg-surface: var(--ground-2); --bg-card: var(--paper);
  --bg-card-alt: var(--ground-2); --bg-elevated: var(--paper);
  --border: var(--hair); --border-bright: color-mix(in srgb, var(--ink) 30%, transparent);
  --text: var(--ink); --text-dim: var(--ink-2); --text-muted: var(--ink-3);
  --gold: #A87900; --silver: var(--ink-3);
  --court: #E4D3B8; --court-dark: #C9B08A; --paint: color-mix(in srgb, var(--team-2) 12%, transparent); --three-line: var(--ink-3);
  --grad-pistons: var(--team); --grad-pistons-vert: var(--team); --grad-pistons-soft: var(--team-soft);
  --grad-red-fade: none; --grad-scorebug: var(--paper); --grad-card: none; --grad-card-elevated: none;
  --font-display: var(--f-display); --font-stats: var(--f-mono); --font-body: var(--f-text);
  --radius: 0px; --radius-lg: 0px;
  --glass-bg: transparent; --glass-border: var(--hair); --glass-highlight: var(--hair); --glass-blur: 0px; --glass-shadow: none;
  font-stretch: 87.5%;
}
/* ---------- generated skeleton ---------- */
/* ═══════════════════════════════════════════════════════
   DETROIT PISTONS 2026 PLAYOFF TRACKER
   Design: NBA broadcast overlay aesthetic
   ═══════════════════════════════════════════════════════ */

/* === DESIGN TOKENS === */

/* === RESET & BASE === */
:where(.app-container, .modal-overlay, .search-dropdown) :where(*, *::before, *::after) { margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
/* Two radial spotlights: red top-left, blue bottom-right: behind everything */
/* Subtle masked grid texture on top of spotlights */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-size: 56px 56px;
}
:where(.app-container, .modal-overlay, .search-dropdown) a { color: var(--pistons-red); text-decoration: none; }
:where(.app-container, .modal-overlay, .search-dropdown) a:hover { color: var(--pistons-red-bright); }
img { max-width: 100%; display: block; }
::selection { color: var(--ink); }

/* === ANIMATIONS === */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes courtGlow {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.15; }
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes liveRipple {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.75; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}
@keyframes redGlowPulse {
}
@keyframes tabUnderlineIn {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes ambientGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}
@keyframes dotGamePulse {
}

/* === LAYOUT === */
.app-container { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.main-content {
  flex: 1; max-width: 1400px; width: 100%; margin: 0 auto; padding: 16px 20px 100px;
  position: relative;
}
.main-content::before, .main-content::after {
  content: ''; position: fixed; border-radius: 50%; pointer-events: none; z-index: -1; opacity: 0.1;
}
.main-content::before { width: 500px; height: 500px; top: -100px; right: -100px; }
.main-content::after { width: 600px; height: 600px; bottom: -150px; left: -150px; }

/* === SCOREBUG === */
.scorebug {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(29,66,186,0.45);
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}
/* Red top accent seam */
.scorebug::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
/* Blue bottom accent seam */
.scorebug::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  opacity: 0.85;
}
.scorebug.hidden { max-height: 0; padding: 0; border: none; opacity: 0; pointer-events: none; }
.scorebug-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; gap: 16px;
  position: relative; z-index: 1;
}
.scorebug-teams { display: flex; align-items: center; gap: 18px; }
.scorebug-team {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.05em;
}
.scorebug-team img {
  width: 42px; height: 42px;
}
.scorebug-team .abbrev { min-width: 40px; }
.scorebug-team .score {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 400;
  min-width: 36px; text-align: center; line-height: 1;
  letter-spacing: 0.02em;
}
.scorebug-team.possession .abbrev { color: var(--pistons-red); }
.scorebug-divider { width: 1px; height: 44px; }
.scorebug-quarter {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--font-stats); font-size: 0.65rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.scorebug-quarter .num { font-size: 1.3rem; color: var(--text); font-weight: 700; font-family: var(--font-display); letter-spacing: 0.04em; }
.scorebug-clock {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--text); letter-spacing: 0.06em;
  min-width: 72px; text-align: center;
  padding: 4px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
}
.scorebug-series {
  font-family: var(--font-stats); font-size: 0.65rem;
  color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.12em;
}
.scorebug-status {
  font-family: var(--font-stats); font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 5px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.scorebug-status.live {
  color: var(--ink);
}
.scorebug-status.live::before {
  content: ''; position: relative;
  display: inline-block; width: 7px; height: 7px;
  background: #22C55E; border-radius: 50%;
  animation: livePulse 1.6s ease-in-out infinite;
}
.scorebug-status.live::after {
  content: ''; position: absolute; left: 12px; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  border: 2px solid rgba(34,197,94,0.7); pointer-events: none;
  transform: translate(-50%, -50%);
  animation: liveRipple 1.8s ease-out infinite;
}
.scorebug-status.final { color: var(--text); border: 1px solid var(--hair); }
.scorebug-status.preview { color: var(--ink); border: 1px solid var(--hair); }
.scorebug-updated {
  font-family: var(--font-stats); font-size: 0.5rem;
  color: var(--text-muted); letter-spacing: 0.08em;
  opacity: 0.6;
}

/* === TAB BAR === */
.tab-bar {
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 90;
}
.scorebug:not(.hidden) ~ .tab-bar { position: relative; }
.tab-bar-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  position: relative;
  font-family: var(--font-stats); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 14px 22px;
  color: var(--text-dim);
  background: transparent; border: none; cursor: pointer;
  border-bottom: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.tab-btn::after {
  content: ''; position: absolute;
  left: 12px; right: 12px; bottom: 0; height: 3px;
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.tab-btn:hover { color: var(--text); }
.tab-btn:hover::after { transform: scaleX(0.4); opacity: 0.5; }
.tab-btn.active {
  color: var(--pistons-red);
}
.tab-btn.active::before {
  content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 1px;
  opacity: 0.6;
}
.tab-btn.active::after { transform: scaleX(1); }

/* === CARDS & PANELS === */
.card {
  border: 1px solid var(--hair);
  overflow: hidden;
  position: relative;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  opacity: 0.5;
  z-index: 1;
}
.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-stats); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim);
}
.card-body { padding: 16px; }
.section-title {
  font-family: var(--font-display); font-size: 2.25rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 60px; height: 3px;
}

/* === STAT TABLES === */
.stat-table { width: 100%; border-collapse: collapse; font-family: var(--font-stats); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.stat-table th {
  padding: 8px 6px; text-align: right;
  font-weight: 400; color: var(--text-muted);
  border-bottom: 1px solid var(--hair);
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.65rem;
}
.stat-table th:first-child { text-align: left; }
.stat-table td {
  padding: 6px 6px; text-align: right;
  color: var(--text-dim); border-bottom: 1px solid var(--hair);
}
.stat-table td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.stat-table .highlight { color: var(--red); font-weight: 600; }
.stat-table th.sortable { cursor: pointer; user-select: none; transition: color 0.15s; }
.stat-table th.sortable:hover { color: var(--red); }
.stat-table th.sorted { color: var(--red); }
.stat-table th.sorted::after { content: ' ▼'; font-size: 0.5rem; }
.stat-table th.sorted.asc::after { content: ' ▲'; }

/* === KPI CARDS === */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi-card {
  border: 1px solid var(--hair); padding: 16px 10px; text-align: center;
  position: relative; overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0.85;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200,16,46,0.45);
}
.kpi-value { font-family: var(--font-display); font-size: 2.1rem; color: var(--text); letter-spacing: 0.04em; line-height: 1.1; }
.kpi-label { font-family: var(--font-stats); font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }

/* === RECORD STRIP === */
.record-strip {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px;
}
.record-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid var(--hair); padding: 12px 18px 12px 20px; min-width: 84px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.record-item::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
}
.record-item:hover { transform: translateY(-1px); border-color: rgba(200,16,46,0.35); }
.record-value { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.03em; }
.record-label { font-family: var(--font-stats); font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }

/* === PLAYER CARDS === */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.player-card {
  position: relative; border: 1px solid var(--hair); padding: 14px;
  display: flex; gap: 14px; align-items: center;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s, background 0.22s;
  cursor: pointer;
  overflow: hidden;
}
.player-card:hover {
  border-color: var(--pistons-red);
  transform: translateY(-2px);
}
.player-card:hover .headshot { border-color: var(--pistons-red); }
.player-card .headshot {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--hair);
  object-fit: cover;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.player-card .info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.player-card .name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-card .position { font-family: var(--font-stats); font-size: 0.65rem; color: var(--pistons-red); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.player-card .stat-line { font-family: var(--font-stats); font-size: 0.65rem; color: var(--text-dim); margin-top: 4px; }
.player-card.starter {
  border-left: 3px solid var(--pistons-red);
}
.player-card.starter::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  opacity: 0.6;
}
.player-card.hot {
  border-color: var(--pistons-red);
}

/* === PLAYOFF BRACKET === */
.bracket-container {
  width: 100%; overflow-x: auto; padding: 20px 0;
  -webkit-overflow-scrolling: touch;
}
.bracket-grid {
  display: grid;
  grid-template-columns: 260px 40px 260px 40px 260px 40px 260px;
  gap: 0;
  min-width: 1160px;
  align-items: center;
}
.bracket-round {
  display: flex; flex-direction: column; gap: 16px;
}
.bracket-round-label {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--text); text-transform: uppercase;
  letter-spacing: 0.16em; text-align: center;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 10px;
}
.bracket-round-label::after {
  content: ''; position: absolute;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 32px; height: 2px;
}
.bracket-matchup {
  position: relative; border: 1px solid var(--hair); overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.bracket-matchup:hover { border-color: var(--hair); transform: translateY(-2px); }
.bracket-matchup.active {
  border-color: var(--pistons-red);
  transform: translateY(-1px);
}
.bracket-matchup.active::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
}
.bracket-matchup.pistons-won { border-color: var(--win); }
.bracket-matchup.pistons-lost { border-color: var(--loss); opacity: 0.7; }
.bracket-team {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 12px;
  font-family: var(--font-stats); font-size: 0.75rem;
  border-bottom: 1px solid var(--hair);
  transition: background 0.2s;
}
.bracket-team:last-child { border-bottom: none; }
.bracket-team.loser { opacity: 0.5; }
.bracket-team.pistons {
  font-weight: 700; color: var(--text);
}
.bracket-team img { width: 22px; height: 22px; }
.bracket-seed {
  font-size: 0.55rem; color: var(--text-muted);
  min-width: 14px; text-align: center;
}
.bracket-team-name { flex: 1; }
.bracket-team-wins {
  font-family: var(--font-display); font-size: 1.1rem;
  min-width: 16px; text-align: center;
}
.bracket-connector {
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; height: 100%;
}

/* === SERIES CARDS === */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.series-card {
  position: relative; border: 1px solid var(--hair); overflow: hidden;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.series-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}
.series-card:hover { border-color: var(--hair); transform: translateY(-3px); }
.series-card.active {
  border-color: var(--pistons-red);
}
.series-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
}
.series-round-badge {
  font-family: var(--font-stats); font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 10px; color: var(--ink);
}
.series-status-badge {
  font-family: var(--font-stats); font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 10px;
}
.series-teams {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
}
.series-team {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.series-team img { width: 48px; height: 48px; }
.series-team-name { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.04em; }
.series-team-record { font-family: var(--font-stats); font-size: 0.6rem; color: var(--text-dim); }
.series-vs {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.series-score {
  font-family: var(--font-display); font-size: 2.5rem;
  display: flex; align-items: center; gap: 8px;
}
.series-score .sep { color: var(--text-muted); font-size: 1.5rem; }
.series-games {
  display: flex; justify-content: center; gap: 6px;
  padding: 0 16px 12px;
}
.series-game-dot {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-stats); font-size: 0.65rem; font-weight: 700;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.series-game-dot:hover { transform: scale(1.15) translateY(-1px); }
.series-game-dot.win { background: linear-gradient(135deg, #2DD36F, var(--win)); color: white; }
.series-game-dot.loss { background: linear-gradient(135deg, #F97272, var(--loss)); color: white; }
.series-game-dot.upcoming { border: 1px solid var(--hair); color: var(--text-muted); }
.series-game-dot.current {
  color: var(--ink);
  border: 2px solid var(--pistons-red);
  animation: dotGamePulse 1.6s ease-in-out infinite;
}

/* === SHOT CHART === */
.court-container { position: relative; max-width: 470px; margin: 0 auto; }
.court-svg { width: 100%; height: auto; }
.shot-dot { transition: r 0.15s; cursor: pointer; }
.shot-dot:hover { r: 6; }
.shot-dot.made { fill: var(--win); opacity: 0.8; }
.shot-dot.missed { fill: var(--loss); opacity: 0.5; }

/* === MATCHUP BAR === */
.matchup-bar {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--blue);
  border-right: 3px solid var(--red);
  padding: 0; margin-bottom: 16px; overflow: hidden;
}
.matchup-side {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; flex: 1;
}
.matchup-side.away-side { justify-content: flex-start; }
.matchup-side.home-side { justify-content: flex-end; }
.matchup-headshot-lg {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--hair); object-fit: cover; flex-shrink: 0;
}
.matchup-info { min-width: 0; }
.matchup-role {
  font-family: var(--font-stats); font-size: 0.55rem;
  color: var(--red); text-transform: uppercase;
  letter-spacing: 0.15em; font-weight: 600;
}
.matchup-name-lg {
  font-family: var(--font-body); font-weight: 700;
  font-size: 1rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.matchup-center {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 8px 20px;
  border-left: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  flex-shrink: 0;
}
.matchup-score-big {
  font-family: var(--font-display); font-size: 2rem;
  display: flex; align-items: center; gap: 4px;
}
.matchup-score-big .sep { color: var(--text-muted); font-size: 1.2rem; }

/* === QUARTER SCORES === */
.quarter-scores {
  display: flex; gap: 2px; justify-content: center;
  font-family: var(--font-stats); font-size: 0.65rem;
}
.quarter-score {
  padding: 4px 8px; text-align: center; border: 1px solid var(--hair);
  min-width: 32px;
}
.quarter-score.current { color: var(--red); border-color: var(--red); }
.quarter-score .q-label { color: var(--text-muted); font-size: 0.5rem; display: block; }

/* === PLAY-BY-PLAY === */
.plays-log { max-height: 400px; overflow-y: auto; }
.play-entry {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hair);
  font-size: 0.82rem; color: var(--text-dim);
  transition: background 0.15s, border-left-color 0.15s;
  border-left: 3px solid transparent;
}
.play-entry .quarter-tag {
  font-family: var(--font-stats); font-size: 0.6rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  margin-right: 8px;
}
.play-entry .clock-tag {
  font-family: var(--font-stats); font-size: 0.6rem;
  color: var(--text-muted); margin-right: 8px;
}
.play-entry .result { color: var(--text); }
.play-entry.scoring { border-left-color: var(--pistons-red); }
.play-entry .play-score {
  font-family: var(--font-stats); font-size: 0.68rem; color: var(--text); font-weight: 600;
  margin-left: 8px; float: right;
}

/* === GAME DAY: LIVE SCOREBUG (large) === */
.gd-live-card {
  position: relative; overflow: hidden; padding: 0;
  border: 1px solid rgba(200,16,46,0.28) !important;
}
.gd-live-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  z-index: 2;
}
.gd-final-card {
  position: relative; overflow: hidden; padding: 0;
}
.gd-final-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0.7;
  z-index: 2;
}
.gd-live-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--hair);
  font-family: var(--font-stats); font-size: 0.6rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  position: relative; z-index: 1;
}
.gd-live-chip {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); padding: 4px 12px; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.18em; font-size: 0.6rem;
  animation: pulse-live 2s infinite;
}
.gd-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.gd-final-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; font-weight: 700; letter-spacing: 0.18em;
}
.gd-final-chip.win { background: var(--win); color: white; }
.gd-final-chip.loss { background: var(--loss); color: white; }
.gd-live-venue, .gd-live-series { color: var(--text-dim); }
.gd-live-score {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px; padding: 22px 16px;
  position: relative; z-index: 1;
}
.gd-live-team {
  display: flex; align-items: center; gap: 14px; min-width: 0;
}
.gd-live-team img { width: 60px; height: 60px; flex-shrink: 0; }
.gd-live-team-info { min-width: 0; }
.gd-live-team-role {
  font-family: var(--font-stats); font-size: 0.55rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600;
}
.gd-live-team-name {
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gd-live-team-score {
  font-family: var(--font-display); font-size: 3.2rem; line-height: 1;
  margin-left: auto;
  letter-spacing: 0.02em;
}
.gd-live-clock {
  text-align: center; padding: 6px 14px;
  border-left: 1px solid var(--hair); border-right: 1px solid var(--hair);
}
.gd-live-quarter {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--pistons-red);
  letter-spacing: 0.08em;
}
.gd-live-time {
  font-family: var(--font-stats); font-size: 0.9rem; color: var(--text);
  font-variant-numeric: tabular-nums; font-weight: 600;
}

/* === GAME DAY: QUARTER SCORING TABLE === */
.gd-qs-table { overflow: hidden; }
.gd-qs-table th, .gd-qs-table td { text-align: center; padding: 10px 6px; }
.gd-qs-table td.gd-qs-current {
  color: var(--pistons-red); font-weight: 700;
}

/* === GAME DAY: TOP PERFORMERS === */
.gd-tp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px;
}
.gd-tp-card {
  margin-bottom: 0;
  border: 1px solid var(--hair);
  position: relative; overflow: hidden;
}
.gd-tp-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0.7;
}

/* === GAME DAY: TEAM STATS BARS === */
.gd-ts-row {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center; gap: 10px; padding: 10px 6px;
  border-bottom: 1px solid var(--hair);
  transition: background 0.18s;
}
.gd-ts-row:last-child { border-bottom: none; }
.gd-ts-val {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--text-muted);
}
.gd-ts-val:first-child { text-align: right; }
.gd-ts-val.win { color: var(--text); font-weight: 600; }
.gd-ts-center { text-align: center; }
.gd-ts-label {
  font-family: var(--font-stats); font-size: 0.6rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 5px; font-weight: 600;
}
.gd-ts-bar {
  display: flex; height: 5px; overflow: hidden;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.gd-ts-bar-a { height: 100%; }
.gd-ts-bar-h { height: 100%; }

/* === MOBILE: stack top-performers + smaller live card === */
@media (max-width: 520px) {
  .gd-tp-grid { grid-template-columns: 1fr; }
  .gd-live-team img { width: 44px; height: 44px; }
  .gd-live-team-score { font-size: 2.2rem; }
  .gd-live-team-name { font-size: 0.95rem; }
  .gd-live-score { padding: 14px 10px; gap: 8px; }
  .gd-live-clock { padding: 0 6px; }
  .gd-live-quarter { font-size: 1.1rem; }
}

/* === PLAYER MODAL === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content { border: 1px solid var(--hair); max-width: 700px; width: 100%; max-height: 85vh;
  overflow-y: auto; position: relative;
  animation: fadeSlideIn 0.3s ease;
}
.modal-content::before {
  content: ''; position: sticky; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  z-index: 3;
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--hair);
  color: var(--text-dim); font-size: 1.2rem; cursor: pointer; z-index: 4;
  line-height: 1; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
}
.modal-close:hover { color: var(--ink); border-color: var(--pistons-red); transform: scale(1.05); }
.modal-hero {
  display: flex; align-items: center; gap: 20px; padding: 30px 24px 20px;
  border-bottom: 1px solid var(--hair);
}
.modal-headshot {
  width: 96px; height: 96px; border-radius: 50%;
  border: 3px solid var(--pistons-red); object-fit: cover;
  flex-shrink: 0;
}
.modal-player-name { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.04em; }
.modal-player-meta { font-family: var(--font-stats); font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; }
.modal-section {
  padding: 16px 24px; border-bottom: 1px solid var(--hair);
}
.modal-section:last-child { border-bottom: none; }
.modal-section-title {
  font-family: var(--font-stats); font-size: 0.65rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px;
}
.modal-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin-bottom: 12px; }
.modal-kpi { text-align: center; padding: 8px; border: 1px solid var(--hair); }
.modal-kpi-val { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.modal-kpi-label { font-family: var(--font-stats); font-size: 0.5rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* === SEARCH BAR === */
.search-bar {
  font-family: var(--font-stats); font-size: 0.7rem; border: 1px solid var(--hair);
  color: var(--text); padding: 6px 12px;
  outline: none; width: 140px; transition: width 0.3s, border-color 0.2s;
}
.search-bar:focus { width: 200px; border-color: var(--red); }
.search-bar::placeholder { color: var(--text-muted); }
.search-dropdown {
  display: none; position: fixed; z-index: 300; border: 1px solid var(--hair); min-width: 260px; overflow: hidden;
}
.search-result {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  cursor: pointer; transition: background 0.15s;
}
.search-result + .search-result { border-top: 1px solid var(--hair); }

/* === TEAM LEADERS === */
.leaders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.leader-card { border: 1px solid var(--hair);
  padding: 12px;
  position: relative; overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.leader-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0.85;
}
.leader-card:hover {
  transform: translateY(-2px);
  border-color: var(--pistons-red);
}
.leader-category { font-family: var(--font-stats); font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; font-weight: 600; }
.leader-entry {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  padding: 3px 4px;
  transition: background 0.18s;
}
.leader-entry:first-of-type .leader-rank { color: var(--pistons-red); }
.leader-rank { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-muted); min-width: 16px; letter-spacing: 0.04em; }
.leader-headshot { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hair); transition: border-color 0.2s, box-shadow 0.2s; }
.leader-entry:hover .leader-headshot { border-color: var(--pistons-red); }
.leader-name { font-size: 0.72rem; color: var(--text); flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-value { font-family: var(--font-stats); font-size: 0.78rem; color: var(--pistons-red); font-weight: 700; flex-shrink: 0; }

/* === NEWS FEED === */
.news-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.news-filter-chip {
  font-family: var(--font-stats); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 6px 14px; border: 1px solid var(--hair);
  color: var(--text-dim); cursor: pointer; transition: all 0.2s;
}
.news-filter-chip:hover { color: var(--text); border-color: var(--hair); }
.news-filter-chip.active { border-color: var(--red); color: var(--ink); }
.news-feed { display: flex; flex-direction: column; gap: 8px; }
.news-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; border: 1px solid var(--hair); transition: border-color 0.2s;
  animation: fadeSlideIn 0.3s ease both;
}
.news-item:hover { border-color: var(--hair); }
.news-badge {
  font-family: var(--font-stats); font-size: 0.5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 2px 8px; white-space: nowrap; flex-shrink: 0;
}

/* === CADE CUNNINGHAM ZONE === */
@keyframes cadeGlow {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.05); }
}
.cade-hero {
  position: relative; text-align: center; padding: 50px 20px 36px;
  border: 1px solid rgba(200,16,46,0.35); margin-bottom: 22px; overflow: hidden;
}
.cade-hero::before {
  content: ''; position: absolute; inset: -10%; pointer-events: none;
}
.cade-hero::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.cade-hero-img {
  width: 150px; height: 150px; border-radius: 50%;
  border: 4px solid var(--pistons-red); object-fit: cover;
  margin: 0 auto 18px; position: relative; z-index: 1;
}
.cade-title {
  font-family: var(--font-display); font-size: 3.5rem;
  letter-spacing: 0.08em; position: relative; z-index: 1;
}
.cade-subtitle {
  font-family: var(--font-stats); font-size: 0.8rem;
  color: var(--text-dim); letter-spacing: 0.2em; text-transform: uppercase;
  position: relative; z-index: 1; margin-top: 4px;
}
.cade-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px; margin-bottom: 20px;
}
.cade-stat-card { border: 1px solid var(--hair); padding: 14px 8px; text-align: center;
  position: relative; overflow: hidden;
}
.cade-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: 0.6;
}
.cade-stat-val { font-family: var(--font-display); font-size: 2rem; color: var(--text); }
.cade-stat-label { font-family: var(--font-stats); font-size: 0.5rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* === MOMENTUM CHART === */
.momentum-container { width: 100%; }

/* === RADAR CHART === */
.radar-container { max-width: 320px; margin: 0 auto; }

/* === GAME DETAIL === */
.game-detail-expand { border: 1px solid var(--hair); margin: 4px 0 12px;
  overflow: hidden; animation: fadeSlideIn 0.3s ease;
}

/* === ABOUT FEATURE GRID === */
.about-feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px;
}
.about-feature {
  display: flex; gap: 12px; padding: 12px; border: 1px solid var(--hair); animation: fadeSlideIn 0.3s ease both;
}
.about-icon { font-size: 1.3rem; flex-shrink: 0; }
.about-feature-title { font-weight: 600; font-size: 0.8rem; margin-bottom: 2px; }
.about-feature-desc { font-size: 0.7rem; color: var(--text-dim); line-height: 1.4; }
.about-credits {
  text-align: center; padding: 30px 20px;
  font-family: var(--font-stats); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.1em;
}

/* === STORYLINES === */
.storylines-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.storyline-card {
  padding: 18px 22px;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--red);
  transition: border-color 0.3s, background 0.3s;
}
.storyline-card:hover { border-left-color: var(--blue); }
.storyline-headline {
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.04em;
  color: var(--text); margin-bottom: 8px;
}
.storyline-body { font-size: 0.8rem; line-height: 1.65; color: var(--text-dim); }
.storyline-meta {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  font-family: var(--font-stats); font-size: 0.55rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.storyline-fresh { opacity: 0.6; }
.storyline-fresh.stale { opacity: 0.35; }
.storyline-record-badge { border: 1px solid rgba(200,16,46,0.25);
  color: var(--red); padding: 2px 8px;
  font-family: var(--font-stats); font-size: 0.55rem; letter-spacing: 0.08em;
}

/* === WEATHER BAR === */
.weather-bar {
  font-family: var(--font-stats); font-size: 0.65rem;
  color: var(--text-dim); padding: 8px 0; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.weather-bar .venue { color: var(--text); font-weight: 600; }
.weather-bar .sep { color: var(--text-muted); }

/* === LOADING === */
.loading {
  font-family: var(--font-stats); font-size: 0.75rem;
  color: var(--text-dim); text-align: center; padding: 40px 20px;
  letter-spacing: 0.1em;
}
.loading::after {
  content: ''; display: inline-block; width: 80px; height: 3px;
  background-size: 200% 100%; margin-top: 12px; display: block; margin-left: auto; margin-right: auto;
}
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { font-size: 0.85rem; color: var(--text-dim); }

/* === PREVIEW GAME HERO === */
.preview-hero {
  position: relative; overflow: hidden; margin-bottom: 20px;
  border: 1px solid var(--hair);
}
.preview-hero .stadium-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.95;
}
.preview-hero .stadium-overlay {
  position: absolute; inset: 0;
}
.preview-hero .preview-top-bar,
.preview-hero .preview-team-name,
.preview-hero .preview-record,
.preview-hero .preview-vs,
.preview-hero .preview-time,
.preview-hero .preview-date,
.preview-hero .preview-stat-pill {
  color: var(--ink) !important;
}
.preview-hero .preview-stat-pill { border-color: var(--hair) !important; }
.arena-bg-card { color: var(--ink); }
.arena-bg-card .series-team-record,
.arena-bg-card .series-team-name,
.arena-bg-card [style*="color:var(--text-muted)"],
.arena-bg-card [style*="color:var(--text-dim)"] { color: color-mix(in srgb, var(--ink) 95%, transparent) !important; }
.arena-bg-card .series-score { color: var(--ink) !important; }
.preview-top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; position: relative; z-index: 1;
  font-family: var(--font-stats); font-size: 0.6rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.preview-live-dot {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block;
  margin-right: 6px; vertical-align: middle;
}
.preview-matchup {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  padding: 30px 20px; position: relative; z-index: 1;
}
.preview-team {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.preview-logo { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.preview-logo img { width: 72px; height: 72px; }
.preview-team-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.05em; }
.preview-record { font-family: var(--font-stats); font-size: 0.7rem; color: var(--text-dim); }
.preview-vs {
  font-family: var(--font-display); font-size: 2rem;
  color: var(--text-muted); letter-spacing: 0.15em;
}
.preview-time-banner {
  text-align: center; padding: 12px; position: relative; z-index: 1;
  border-top: 1px solid var(--hair);
}
.preview-time {
  font-family: var(--font-display); font-size: 2rem;
  letter-spacing: 0.1em;
}
.preview-date {
  font-family: var(--font-stats); font-size: 0.7rem;
  color: var(--text-dim); letter-spacing: 0.1em; margin-top: 2px;
}
.preview-bottom-strip {
  display: flex; justify-content: center; gap: 12px;
  padding: 8px 16px; position: relative; z-index: 1;
}
.preview-stat-pill {
  font-family: var(--font-stats); font-size: 0.55rem;
  color: var(--text-dim); padding: 3px 10px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid var(--hair);
}

/* === WIN PROBABILITY === */
.wp-card { margin-bottom: 16px; }
.wp-card .card-header { display: flex; justify-content: space-between; }
.wp-header {
  padding: 8px 16px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-stats); font-size: 0.65rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.1em;
  background: color-mix(in srgb, var(--ink) 2%, transparent); border-bottom: 1px solid var(--hair);
}
.wp-pct { color: var(--red); font-weight: 700; }

/* === GAMEDAY GRID === */
.gameday-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .gameday-grid { grid-template-columns: 1fr; }
  .bracket-grid { grid-template-columns: 1fr; min-width: auto; }
  .matchup-bar { flex-direction: column; }
  .matchup-side { justify-content: center !important; }
  .matchup-center { flex-direction: row; gap: 12px; border: none; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); width: 100%; justify-content: center; }
  .tab-btn { padding: 12px 16px; font-size: 0.68rem; }
  .preview-matchup { gap: 16px; }
  .section-title { font-size: 1.85rem; }
}
@media (max-width: 600px) {
  .scorebug-inner { padding: 8px 12px; gap: 10px; }
  .scorebug-team { font-size: 1.3rem; gap: 8px; }
  .scorebug-team img { width: 36px; height: 36px; }
  .scorebug-team .score { font-size: 1.9rem; }
  .scorebug-clock { font-size: 1.25rem; min-width: 60px; padding: 3px 10px; }
  .main-content { padding: 12px 12px 100px; }
  .player-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
  .series-teams { flex-direction: column; gap: 12px; }
  .cade-title { font-size: 2.4rem; }
  .cade-hero-img { width: 120px; height: 120px; }
}
@media (max-width: 400px) {
  .scorebug-inner { padding: 6px 10px; gap: 8px; }
  .scorebug-team { font-size: 1.15rem; gap: 6px; }
  .scorebug-team img { width: 32px; height: 32px; }
  .scorebug-team .score { font-size: 1.5rem; min-width: 28px; }
  .scorebug-clock { font-size: 1.3rem; min-width: 54px; padding: 2px 8px; letter-spacing: 0.04em; }
  .scorebug-divider { display: none; }
  .scorebug-quarter .num { font-size: 1.05rem; }
  .tab-btn { padding: 10px 12px; font-size: 0.62rem; letter-spacing: 0.1em; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 1.7rem; }
  .section-title { font-size: 1.35rem; }
  .section-title::after { width: 44px; height: 2px; }
  .cade-title { font-size: 2rem; }
  .cade-hero-img { width: 104px; height: 104px; border-width: 3px; }
  .gd-live-team img { width: 40px; height: 40px; }
  .gd-live-team-score { font-size: 2rem; }
  .gd-live-team-name { font-size: 0.95rem; }
}

.clickable-name { cursor: pointer; transition: color 0.15s; }
.clickable-name:hover { color: var(--pistons-red); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  :where(.app-container, .modal-overlay, .search-dropdown) :where(*, *::before, *::after) {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
}

@layer page {
/* chrome: Pistons wraps #main-content in a second .main-content */
#main-content { max-width: none; padding: 0; }

/* scorebug: a board under the marquee */
.scorebug { background: var(--paper); border: 0; border-bottom: 8px solid var(--rule); }
.scorebug::before, .scorebug::after { display: none; }
.scorebug-inner { max-width: var(--max); padding-left: var(--gut); padding-right: var(--gut); }
.scorebug-team .abbrev { font: 800 28px/0.95 var(--f-display); color: var(--ink); font-stretch: normal; }
.scorebug-team .score { font: 900 52px/0.85 var(--f-display); color: var(--ink); font-feature-settings: "tnum"; font-stretch: normal; }
.scorebug-team.possession .abbrev { color: var(--team); }
.scorebug-divider { background: var(--hair); }
.scorebug-quarter .num, .scorebug-clock { font-family: var(--f-display); color: var(--ink); font-stretch: normal; }
.scorebug-status { background: var(--live); color: #fff; }
.scorebug-status.final { background: var(--ink); color: var(--ground); }
.scorebug-status.preview { background: none; color: var(--ink-2); border: 1px solid var(--ink-2); }

/* bracket: rounds as ruled columns, the Pistons path in team colour */
.bracket-round-label { font: 700 18px/1 var(--f-display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); border-top: var(--bar) solid var(--rule); padding-top: 8px; }
.bracket-round-label::after { display: none; }
.bracket-matchup { background: none; border: 0; border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--hair); }
.bracket-matchup:hover { background: var(--ground-2); }
.bracket-matchup.active, .bracket-matchup.pistons-won, .bracket-matchup.pistons-lost { border-top: var(--bar) solid var(--team); }
.bracket-matchup.active::before { display: none; }
.bracket-team { border-bottom: 1px solid var(--hair); color: var(--ink-2); }
.bracket-team.winner { color: var(--ink); font-weight: 700; }
.bracket-team.loser { color: var(--ink-3); }
.bracket-team.pistons { background: var(--team-soft); color: var(--ink); }
.bracket-team-wins { font: 800 22px/1 var(--f-display); font-stretch: normal; }
.bracket-seed { font-family: var(--f-mono); color: var(--ink-3); }
.bracket-connector { border-color: var(--ink-3); }

/* series cards */
.series-card { background: none; border: 0; border-top: var(--bar) solid var(--rule); }
.series-card::before { display: none; }
.series-card:hover { background: var(--ground-2); }
.series-card.active { border-top: 8px solid var(--team); }
.series-score { font: 900 56px/0.85 var(--f-display); color: var(--ink); font-stretch: normal; }
.series-score .sep { color: var(--ink-3); }
.series-team-name { font: 700 20px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); font-stretch: normal; }
.series-round-badge, .series-status-badge { background: none; border: 1px solid currentColor; font: 600 10px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 6px 3px; }
.series-game-dot { border-radius: 0; background: var(--ground-2); border: 1px solid var(--hair); color: var(--ink-2); }
.series-game-dot.win { background: var(--win); border-color: var(--win); color: #fff; }
.series-game-dot.loss { background: var(--loss); border-color: var(--loss); color: #fff; }
.series-game-dot.current { outline: 2px solid var(--ink); }

/* game day: live and final cards, quarter table, top performers, team stats */
.gd-live-card, .gd-final-card { background: none; border: 0; border-top: 8px solid var(--rule); border-bottom: var(--bar) solid var(--rule); }
.gd-live-card::before, .gd-final-card::before { display: none; }
.gd-live-chip { background: var(--live); color: #fff; }
.gd-final-chip { background: var(--ink); color: var(--ground); }
.gd-final-chip.win { background: var(--win); color: #fff; } .gd-final-chip.loss { background: var(--loss); color: #fff; }
.gd-live-team-name { font: 800 24px/1 var(--f-display); text-transform: uppercase; color: var(--ink); font-stretch: normal; }
.gd-live-team-score { font: 900 clamp(64px, 10vw, 120px)/0.8 var(--f-display); color: var(--ink); font-feature-settings: "tnum"; font-stretch: normal; }
.gd-live-quarter, .gd-live-time { font-family: var(--f-display); font-stretch: normal; }
.gd-qs-table { font-family: var(--f-mono); }
.gd-qs-table th { color: var(--ink-3); border-bottom: var(--bar) solid var(--rule); }
.gd-qs-table td { border-bottom: 1px solid var(--hair); }
.gd-qs-table td.gd-qs-current { background: var(--team-soft); }
.gd-tp-card { background: none; border: 0; border-top: var(--bar) solid var(--rule); }
.gd-tp-card::before { display: none; }
.gd-ts-row { border-bottom: 1px solid var(--hair); }
.gd-ts-row:hover { background: var(--ground-2); }
.gd-ts-bar { background: var(--ground-2); }
.gd-ts-bar-a { background: var(--ink-3); } .gd-ts-bar-h { background: var(--team); }
.gd-ts-val.win { color: var(--ink); font-weight: 700; }
.quarter-score { background: none; border-top: 1px solid var(--hair); }
.quarter-score.current { border-top: var(--bar) solid var(--team); }
.matchup-bar { background: none; border-top: var(--bar) solid var(--rule); }
.matchup-score-big { font: 900 48px/0.9 var(--f-display); font-stretch: normal; }
.play-entry { border-bottom: 1px solid var(--hair); }
.play-entry:hover { background: var(--ground-2); }
.play-entry .quarter-tag, .play-entry .clock-tag { background: none; color: var(--ink-3); font-family: var(--f-mono); }
.play-entry.pistons-play { box-shadow: inset 4px 0 0 var(--team); }

/* court: a flat drawing */
.court-svg { background: var(--court); }
.shot-dot.made { fill: var(--team); } .shot-dot.missed { fill: none; stroke: var(--ink-3); }

/* preview hero and series cards: the arena photos are gone (removed from the templates) */
.preview-hero .stadium-overlay, .arena-bg-card::before, .arena-bg-card::after { display: none; }
.arena-bg-card { background: none; }

/* the Cade page: the red slab, the number huge */
.cade-hero { background: var(--team); color: #fff; border-bottom: 8px solid var(--team-2); --ink: #fff; --ink-2: rgba(255,255,255,.8); --ink-3: rgba(255,255,255,.6); --hair: rgba(255,255,255,.2); }
.cade-hero::before, .cade-hero::after { display: none; }
.cade-title { font: 900 clamp(56px, 10vw, 120px)/0.85 var(--f-display); text-transform: uppercase; color: #fff; font-stretch: normal; }
.cade-subtitle { font-family: var(--f-mono); color: rgba(255,255,255,.8); }
.cade-stat-card { background: none; border: 0; border-top: var(--bar) solid var(--rule); }
.cade-stat-card::before { display: none; }
.cade-stat-val { font: 800 44px/0.9 var(--f-display); color: var(--ink); font-stretch: normal; }
.cade-stat-label { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* live dot and weather */
.weather-bar { background: none; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
}
