/* ============================================================
   2026 NCAA Statistical Bracket — Stylesheet
   Aesthetic: Sports editorial, dark & precise
   ============================================================ */

:root {
  --bg:         #0d0f12;
  --bg-card:    #161920;
  --bg-surface: #1e2229;
  --bg-hover:   #252b34;
  --border:     rgba(255,255,255,0.11);
  --border-em:  rgba(255,255,255,0.22);

  --text-primary:   #f0f2f5;
  --text-secondary: #b0b8c8;
  --text-muted:     #7a8494;

  --blue:       #3b82f6;
  --blue-dark:  #1d4ed8;
  --blue-glow:  rgba(59,130,246,0.15);
  --blue-light: #93c5fd;
  --gold:       #f59e0b;
  --gold-light: #fcd34d;
  --gold-bg:    rgba(245,158,11,0.12);
  --red:        #ef4444;
  --green:      #22c55e;

  --winner-bg:    #1d3a6e;
  --winner-text:  #93c5fd;
  --winner-seed:  #60a5fa;

  --font-display: 'Bebas Neue', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --transition: 0.18s ease;
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg:         #f4f5f7;
  --bg-card:    #ffffff;
  --bg-surface: #eef0f3;
  --bg-hover:   #e4e7eb;
  --border:     rgba(0,0,0,0.08);
  --border-em:  rgba(0,0,0,0.16);

  --text-primary:   #111318;
  --text-secondary: #4b5260;
  --text-muted:     #8a919e;

  --blue:       #1d4ed8;
  --blue-dark:  #1e3a8a;
  --blue-glow:  rgba(29,78,216,0.08);
  --blue-light: #1d4ed8;
  --gold:       #b45309;
  --gold-light: #92400e;
  --gold-bg:    rgba(180,83,9,0.08);
  --red:        #dc2626;
  --green:      #16a34a;

  --winner-bg:    #dbeafe;
  --winner-text:  #1e3a8a;
  --winner-seed:  #1d4ed8;
}

[data-theme="light"] .header-bg {
  background:
    radial-gradient(ellipse 80% 60% at 60% -10%, rgba(29,78,216,0.07) 0%, transparent 70%),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(0,0,0,0.025) 79px, rgba(0,0,0,0.025) 80px);
}

[data-theme="light"] .tab-bar {
  background: rgba(244,245,247,0.95);
}

[data-theme="light"] .matchup:hover { border-color: var(--border-em); }

[data-theme="light"] .is-final { border-color: rgba(22,163,74,0.3); }
[data-theme="light"] .is-live  { border-color: rgba(220,38,38,0.3); }

[data-theme="light"] .status-final { background: rgba(22,163,74,0.1); color: #15803d; }
[data-theme="light"] .status-live  { background: rgba(220,38,38,0.1); color: #dc2626; }
[data-theme="light"] .live-dot     { background: #dc2626; }

[data-theme="light"] .scores-bar   { background: #1d4ed8; border-color: #1e3a8a; }
[data-theme="light"] .scores-bar-label { background: rgba(255,255,255,0.2); color: #fff; }
[data-theme="light"] .ticker-game  { border-color: rgba(255,255,255,0.2); color: #e0eaff; }
[data-theme="light"] .ticker-teams { color: #fff; }
[data-theme="light"] .ticker-score { color: #bfdbfe; }
[data-theme="light"] .ticker-status-live  { color: #fcd34d; }
[data-theme="light"] .ticker-status-final { color: #bbf7d0; }
[data-theme="light"] .scores-refresh { color: rgba(255,255,255,0.7); }
[data-theme="light"] .scores-refresh:hover { color: #fff; }
[data-theme="light"] .ticker-loading { color: rgba(255,255,255,0.6); }

[data-theme="light"] .ff-champ-wrap { border-color: rgba(180,83,9,0.3); }
[data-theme="light"] .ff-champ-wrap::before { background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(180,83,9,0.05) 0%, transparent 70%); }
[data-theme="light"] .ff-result { border-color: rgba(29,78,216,0.2); }
[data-theme="light"] .ff-result-name { color: #1e3a8a; }
[data-theme="light"] .ff-result-sub  { color: #2563eb; }

[data-theme="light"] .total-display { border-color: rgba(29,78,216,0.2); }
[data-theme="light"] .total-val { color: #1e3a8a; }
[data-theme="light"] .total-label, [data-theme="light"] .total-range { color: #2563eb; }

[data-theme="light"] .tab-btn.active { color: var(--blue); }
[data-theme="light"] .tab-btn--ff.active { color: var(--gold); }
[data-theme="light"] .tab-btn--model.active { color: #16a34a; }

[data-theme="light"] .badge-kp-win { background: rgba(29,78,216,0.1); color: #1d4ed8; }
[data-theme="light"] .badge-kp     { background: var(--bg-surface); color: var(--text-muted); }
[data-theme="light"] .badge-elite  { background: var(--gold-bg); color: var(--gold); }

[data-theme="light"] .stat-kp { background: rgba(29,78,216,0.1); color: #1d4ed8; }
[data-theme="light"] .stat-or { background: rgba(180,83,9,0.1);  color: #b45309; }
[data-theme="light"] .stat-dr { background: rgba(22,163,74,0.1); color: #16a34a; }

[data-theme="light"] .slider-row input[type=range] { background: var(--bg-hover); }
[data-theme="light"] .slider-row input[type=range]::-webkit-slider-thumb { background: var(--blue); }
[data-theme="light"] .slider-row input[type=range]::-moz-range-thumb { background: var(--blue); }

[data-theme="light"] .r1 { background: rgba(180,83,9,0.1);  color: #b45309; }
[data-theme="light"] .r2 { background: rgba(29,78,216,0.1); color: #1d4ed8; }
[data-theme="light"] .r3 { background: rgba(22,163,74,0.1); color: #16a34a; }

[data-theme="light"] .first-four-banner { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .ff-tag { background: var(--gold-bg); color: var(--gold); }
[data-theme="light"] .progress-note { background: rgba(29,78,216,0.06); border-color: rgba(29,78,216,0.15); }

/* THEME TRANSITION */
body, header, .tab-bar, .matchup, .profile-card, .model-team-block,
.result-card, .total-display, .ff-champ-wrap, .ff-result, .scores-bar {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* HEADER */
header {
  position: relative;
  padding: 4rem 2rem 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.header-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% -10%, rgba(59,130,246,0.12) 0%, transparent 70%),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.02) 79px, rgba(255,255,255,0.02) 80px);
  pointer-events: none;
}
.header-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.header-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.header-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.header-sub {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* TABS */
.tab-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,18,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.tab-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-inner::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--blue); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn--ff.active { color: var(--gold); }
.tab-btn--ff.active::after { background: var(--gold); }
.tab-btn--model.active { color: var(--green); }
.tab-btn--model.active::after { background: var(--green); }

/* MAIN */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* REGION */
.region-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.region-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.04em;
}
.region-advances {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.region-advances span { color: var(--blue); font-weight: 500; }

/* LEGEND */
.legend-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* ROUNDS */
.round-block { margin-bottom: 2.25rem; }
.round-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a96a8;
  margin-bottom: 8px;
  padding-left: 2px;
}
.matchups-grid { display: grid; gap: 10px; }
.matchups-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.matchups-grid.cols-1 { grid-template-columns: 1fr; }

/* MATCHUP */
.matchup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.matchup:hover { border-color: var(--border-em); }
.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}
.team-row.winner { background: var(--winner-bg); }
.team-row.loser  { opacity: 0.3; }
.team-divider { height: 1px; background: var(--border); }
.seed {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.team-row.winner .seed { color: var(--winner-seed); }
.team-name { font-size: 13px; flex: 1; color: var(--text-primary); }
.team-row.winner .team-name { color: var(--winner-text); font-weight: 500; }
.team-badges { display: flex; gap: 5px; flex-shrink: 0; }
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}
.badge-elite  { background: var(--gold-bg); color: var(--gold); }
.badge-kp     { background: var(--bg-surface); color: #9aa3b2; }
.badge-kp-win { background: rgba(59,130,246,0.22); color: #bdd5fb; }
.match-note {
  font-size: 11px;
  color: #9aa3b2;
  padding: 5px 2px 0;
  line-height: 1.5;
  font-style: italic;
}

/* FINAL FOUR */
.ff-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.ff-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.ff-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ff-semis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 2rem;
}
.ff-semi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.ff-champ-wrap {
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.ff-champ-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.ff-champ-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
}
.ff-result {
  background: var(--winner-bg);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-top: 14px;
  border: 1px solid rgba(59,130,246,0.2);
}
.ff-result-name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.06em;
  color: #e0eeff;
  line-height: 1;
}
.ff-result-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--winner-seed);
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ff-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1.5rem;
}
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.profile-name { font-size: 14px; font-weight: 500; }
.profile-role { font-family: var(--font-mono); font-size: 10px; }
.profile-role.champ  { color: var(--gold); }
.profile-role.runner { color: var(--blue-light); }
.profile-role.ff     { color: var(--text-muted); }
.profile-stats { display: flex; gap: 5px; flex-wrap: wrap; }
.stat-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
}
.stat-kp { background: rgba(59,130,246,0.14); color: var(--blue-light); }
.stat-or { background: rgba(245,158,11,0.14); color: var(--gold-light); }
.stat-dr { background: rgba(34,197,94,0.12);  color: #86efac; }

/* SCORING MODEL */
.model-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.model-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.model-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.predictor-list { list-style: none; margin-bottom: 2rem; }
.predictor-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: #b0b8c8;
  line-height: 1.5;
}
.predictor-list li:last-child { border-bottom: none; }
.rank-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}
.r1 { background: var(--gold-bg); color: var(--gold); }
.r2 { background: rgba(59,130,246,0.14); color: var(--blue-light); }
.r3 { background: rgba(34,197,94,0.12); color: #86efac; }
.r4 { background: var(--bg-surface); color: var(--text-muted); }

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 1.25rem;
}
.model-team-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.model-team-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.model-team-name .badge { margin-left: auto; }
.slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.slider-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  width: 50px;
  flex-shrink: 0;
}
.slider-row input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  height: 3px;
  background: var(--bg-hover);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
}
.slider-row input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  cursor: pointer;
}
.slider-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 38px;
  text-align: right;
}
.tempo-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.tempo-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.formula-block {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9aa3b2;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.formula-eq { color: var(--text-primary); display: block; margin: 2px 0; }
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.result-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}
.result-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.result-val { font-size: 24px; font-weight: 500; }
.result-sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.total-display {
  background: var(--winner-bg);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-bottom: 10px;
}
.total-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.total-val {
  font-family: var(--font-display);
  font-size: 3rem;
  color: #e0eeff;
  letter-spacing: 0.04em;
  line-height: 1;
}
.total-range {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-light);
  margin-top: 4px;
}
.model-note {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}
.compare-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.compare-label { font-size: 13px; color: var(--text-secondary); }
.compare-val { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--blue-light); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.footer-method { font-size: 12px; color: #8a96a8; max-width: 520px; line-height: 1.6; }
.footer-note { font-family: var(--font-mono); font-size: 11px; color: #7a8494; font-style: italic; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .matchups-grid.cols-2 { grid-template-columns: 1fr; }
  .ff-semis { grid-template-columns: 1fr; }
  .ff-profiles { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.view-enter { animation: fadeUp 0.2s ease forwards; }

/* ── SCORE & STATUS ADDITIONS ────────────────────────────── */
.matchup-header {
  min-height: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.matchup-header:empty { display: none; }

.status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 5px 0;
}
.status-final {
  background: rgba(34,197,94,0.12);
  color: #86efac;
}
.status-live {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.is-final { border-color: rgba(34,197,94,0.25); }
.is-live  { border-color: rgba(239,68,68,0.25); }

.team-score {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 24px;
  text-align: right;
  flex-shrink: 0;
}
.team-row.winner .team-score { color: #e0eeff; }
.team-row.loser  .team-score { color: var(--text-muted); }

.score-win  { font-weight: 500; color: var(--text-primary); }
.score-loss { color: var(--text-muted); }
.score-sep  { color: var(--text-muted); margin: 0 3px; }

/* First Four banner */
.first-four-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 11px;
}
.first-four-banner + .matchup {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.ff-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gold-bg);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.ff-result-text {
  color: var(--text-secondary);
  font-size: 11px;
}
.ff-result-text strong { color: var(--text-primary); }

/* Progress note */
.progress-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  margin-bottom: 1rem;
  padding: 8px 12px;
  background: var(--blue-glow);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59,130,246,0.2);
}

/* Region tag inline */
.region-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 5px;
}
.team-row.winner .region-tag { color: var(--winner-seed); }

/* ── THEME TOGGLE ────────────────────────────────────────── */
.tab-spacer { flex: 1; }

.theme-toggle {
  background: none;
  border: 0.5px solid var(--border-em);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.theme-icon { line-height: 1; font-style: normal; }

/* ── SCORES BAR ──────────────────────────────────────────── */
.scores-bar {
  background: #0f172a;
  border-bottom: 1px solid rgba(59,130,246,0.2);
  overflow: hidden;
}

.scores-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
}

.scores-bar-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  background: rgba(239,68,68,0.2);
  color: #fca5a5;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}

.scores-ticker {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  cursor: default;
}

.ticker-teams {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #c7d2e7;
  font-weight: 500;
}

.ticker-score {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #93c5fd;
  font-weight: 500;
}

.ticker-status-live  {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ticker-status-live::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1s infinite;
}

.ticker-status-final {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #86efac;
}

.ticker-status-scheduled {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6b7280;
}

.ticker-loading {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  padding: 0 12px;
}

.ticker-error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fca5a5;
  padding: 0 12px;
}

.ticker-clock {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6b7280;
}

.scores-refresh {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.3s;
  line-height: 1;
}
.scores-refresh:hover { color: rgba(255,255,255,0.8); }
.scores-refresh.spinning { transform: rotate(360deg); }

/* ── LIVE INSIGHTS PANEL ─────────────────────────────────── */
.insights-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.insights-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.insights-updated {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.insight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.insight-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border-left: 3px solid transparent;
}

.insight-card.upsets   { border-left-color: #ef4444; }
.insight-card.live     { border-left-color: #f59e0b; }
.insight-card.dominant { border-left-color: #22c55e; }
.insight-card.tight    { border-left-color: #3b82f6; }

.insight-type {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.insight-headline {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.35;
}

.insight-detail {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.no-insights {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

/* ── GCE TOGGLE BUTTON ───────────────────────────────────── */
.gce-toggle {
  background: none;
  border: 0.5px solid var(--border-em);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  height: 34px;
  padding: 0 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: auto 0 auto 6px;
  flex-shrink: 0;
  transition: all var(--transition);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.gce-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.gce-toggle.gce-active {
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-color: #f97316;
  color: #fff;
}
.gce-icon { font-size: 14px; line-height: 1; }
.gce-label { font-size: 10px; }

/* ── GCE MODE — ROOT OVERRIDES ───────────────────────────── */
[data-mode="gce"] {
  --gce-orange:  #f97316;
  --gce-red:     #ef4444;
  --gce-yellow:  #fbbf24;
  --gce-purple:  #a855f7;
  --gce-green:   #22c55e;
  --gce-font:    'Permanent Marker', cursive;
}

[data-mode="gce"] body {
  font-family: var(--font-body);
}

/* GCE header */
[data-mode="gce"] .header-eyebrow {
  color: var(--gce-orange);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

[data-mode="gce"] .header-title {
  font-family: var(--gce-font);
  font-size: clamp(3rem, 9vw, 6.5rem);
  background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.01em;
}

[data-mode="gce"] .header-sub {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
}

[data-mode="gce"] .header-bg {
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(249,115,22,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(168,85,247,0.1) 0%, transparent 60%),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.02) 79px, rgba(255,255,255,0.02) 80px);
}

/* GCE scores bar */
[data-mode="gce"] .scores-bar-label {
  background: rgba(249,115,22,0.2);
  color: #f97316;
  animation: none;
}

/* GCE tab bar */
[data-mode="gce"] .tab-btn.active { color: var(--gce-orange); }
[data-mode="gce"] .tab-btn.active::after { background: var(--gce-orange); }
[data-mode="gce"] .tab-btn--ff.active { color: var(--gce-yellow); }
[data-mode="gce"] .tab-btn--ff.active::after { background: var(--gce-yellow); }
[data-mode="gce"] .tab-btn--model.active { color: var(--gce-purple); }
[data-mode="gce"] .tab-btn--model.active::after { background: var(--gce-purple); }

/* GCE region header */
[data-mode="gce"] .region-title {
  font-family: var(--gce-font);
  font-size: 2.8rem;
  letter-spacing: 0.02em;
}

[data-mode="gce"] .region-advances { color: var(--text-secondary); }
[data-mode="gce"] .region-advances span { color: var(--gce-orange); }

/* GCE round labels */
[data-mode="gce"] .round-label {
  color: var(--gce-orange);
  letter-spacing: 0.06em;
  font-size: 11px;
}

/* GCE matchup cards */
[data-mode="gce"] .matchup {
  border-color: rgba(249,115,22,0.15);
}
[data-mode="gce"] .matchup:hover {
  border-color: rgba(249,115,22,0.35);
}

[data-mode="gce"] .team-row.winner {
  background: linear-gradient(90deg, #7c1d1d, #1d3a6e);
}

/* GCE match notes — make them pop */
[data-mode="gce"] .match-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: #c0c8d8;
  font-style: normal;
  font-weight: 400;
  background: rgba(249,115,22,0.05);
  border-left: 2px solid rgba(249,115,22,0.4);
  padding: 5px 8px;
  border-radius: 0 4px 4px 0;
  margin-top: 5px;
}

/* GCE badges */
[data-mode="gce"] .badge-elite {
  background: rgba(168,85,247,0.15);
  color: #c084fc;
}

[data-mode="gce"] .badge-kp-win {
  background: rgba(249,115,22,0.18);
  color: #fb923c;
}

/* GCE legend */
[data-mode="gce"] .legend-bar {
  border-color: rgba(249,115,22,0.15);
  background: rgba(249,115,22,0.04);
}

/* GCE progress note */
[data-mode="gce"] .progress-note {
  background: rgba(249,115,22,0.08);
  border-color: rgba(249,115,22,0.2);
  color: var(--gce-orange);
}

/* GCE Final Four */
[data-mode="gce"] .ff-title {
  font-family: var(--gce-font);
  font-size: 2.8rem;
  background: linear-gradient(135deg, #f97316, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-mode="gce"] .ff-champ-wrap {
  border-color: rgba(249,115,22,0.4);
  background: linear-gradient(180deg, rgba(249,115,22,0.04) 0%, var(--bg-card) 60%);
}

[data-mode="gce"] .ff-champ-label { color: var(--gce-orange); font-size: 13px; }

[data-mode="gce"] .ff-result {
  background: linear-gradient(135deg, #7c2d12, #1d3a6e);
  border-color: rgba(249,115,22,0.3);
}

[data-mode="gce"] .ff-result-name {
  font-family: var(--gce-font);
  font-size: 3rem;
  color: #fff;
  -webkit-text-fill-color: unset;
}

[data-mode="gce"] .ff-result-sub { color: #fdba74; }

/* GCE profile cards */
[data-mode="gce"] .profile-role.champ  { color: var(--gce-orange); }
[data-mode="gce"] .profile-role.runner { color: #93c5fd; }
[data-mode="gce"] .stat-kp { background: rgba(249,115,22,0.12); color: #fb923c; }

/* GCE scoring model */
[data-mode="gce"] .model-title {
  font-family: var(--gce-font);
  font-size: 2.8rem;
  color: var(--text-primary);
}

[data-mode="gce"] .rank-badge.r1 { background: rgba(249,115,22,0.15); color: #fb923c; }
[data-mode="gce"] .rank-badge.r2 { background: rgba(168,85,247,0.15); color: #c084fc; }
[data-mode="gce"] .rank-badge.r3 { background: rgba(34,197,94,0.12);  color: #86efac; }

[data-mode="gce"] .total-display {
  background: linear-gradient(135deg, #7c2d12, #1d3a6e);
  border-color: rgba(249,115,22,0.3);
}
[data-mode="gce"] .total-label { color: #fdba74; }
[data-mode="gce"] .total-val   { color: #fff; font-family: var(--gce-font); font-size: 4rem; -webkit-text-fill-color: unset; }
[data-mode="gce"] .total-range { color: #fdba74; }

[data-mode="gce"] .slider-row input[type=range]::-webkit-slider-thumb { background: var(--gce-orange); }
[data-mode="gce"] .slider-row input[type=range]::-moz-range-thumb     { background: var(--gce-orange); }

/* GCE footer */
[data-mode="gce"] .footer-label { color: var(--gce-orange); }

/* GCE insights */
[data-mode="gce"] .insight-card.upsets   { border-left-color: var(--gce-red); }
[data-mode="gce"] .insight-card.live     { border-left-color: var(--gce-yellow); }
[data-mode="gce"] .insight-card.dominant { border-left-color: var(--gce-green); }
[data-mode="gce"] .insight-card.tight    { border-left-color: var(--gce-purple); }
[data-mode="gce"] .insights-title        { color: var(--gce-orange); }

/* GCE ff semi labels */
[data-mode="gce"] .ff-semi-label { color: var(--gce-orange); }

/* GCE light mode compat */
[data-theme="light"][data-mode="gce"] .header-title {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 50%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"][data-mode="gce"] .match-note {
  color: #374151;
  background: rgba(234,88,12,0.06);
  border-left-color: rgba(234,88,12,0.4);
}
[data-theme="light"][data-mode="gce"] .team-row.winner {
  background: linear-gradient(90deg, #fef2f2, #dbeafe);
}
[data-theme="light"][data-mode="gce"] .team-row.winner .team-name  { color: #1e1e2e; }
[data-theme="light"][data-mode="gce"] .team-row.winner .seed       { color: #374151; }
[data-theme="light"][data-mode="gce"] .team-row.winner .team-score { color: #1e1e2e; }
[data-theme="light"][data-mode="gce"] .ff-result { background: linear-gradient(135deg, #fff7ed, #eff6ff); }
[data-theme="light"][data-mode="gce"] .ff-result-name { color: #1e1e2e; -webkit-text-fill-color: unset; }
[data-theme="light"][data-mode="gce"] .total-display  { background: linear-gradient(135deg, #fff7ed, #eff6ff); }
[data-theme="light"][data-mode="gce"] .total-val      { color: #1e1e2e; -webkit-text-fill-color: unset; }
[data-theme="light"][data-mode="gce"] .total-label,
[data-theme="light"][data-mode="gce"] .total-range    { color: #ea580c; }
