/* =================================================================
   CONCISE SUMMER CHALLENGE – Stylesheet
   Brand: Concise Gray #333333 · Concise Yellow #f2e61a
   Typeface: Switzer (corporate) / Arial (fallback)
   Mobile-first.
   ================================================================= */

/* ── Switzer – Concise corporate typeface ───────────────────────
   Place the Switzer .woff2 files downloaded from the company drive
   into the /fonts/ folder next to this CSS file's parent directory.
   Expected filenames: Switzer-Regular.woff2, Switzer-Medium.woff2,
   Switzer-Semibold.woff2, Switzer-Bold.woff2, Switzer-Extrabold.woff2
   ---------------------------------------------------------------- */
@font-face {
  font-family: 'Switzer';
  src: local('Switzer'), local('Switzer-Regular'),
       url('../fonts/Switzer-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: local('Switzer Medium'), local('Switzer-Medium'),
       url('../fonts/Switzer-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: local('Switzer Semibold'), local('Switzer-Semibold'),
       url('../fonts/Switzer-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: local('Switzer Bold'), local('Switzer-Bold'),
       url('../fonts/Switzer-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: local('Switzer Extrabold'), local('Switzer-Extrabold'),
       url('../fonts/Switzer-Extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  /* ── Concise brand ── */
  --yellow:         #f2e61a;
  --yellow-dark:    #d4c900;
  --yellow-bg:      rgba(242, 230, 26, 0.10);
  --yellow-border:  rgba(242, 230, 26, 0.30);
  --dark:           #333333;
  --dark-muted:     rgba(51, 51, 51, 0.65);

  /* ── Semantic status (keep universal meaning) ── */
  --success:        #27AE60;
  --success-bg:     #EAF9F0;
  --warning:        #E67E22;
  --warning-bg:     #FFF3E0;
  --danger:         #E74C3C;

  /* ── Neutral ── */
  --gray:           #9CA3AF;
  --gray-bg:        #F3F4F6;

  /* ── Surface ── */
  --bg:             #FAFAFA;
  --surface:        #FFFFFF;
  --surface-2:      #F5F5F5;
  --border:         #E5E7EB;
  --border-dark:    #D1D5DB;

  /* ── Text ── */
  --text:           #333333;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;

  /* ── Type ── */
  --font:           'Switzer', 'Arial', sans-serif;

  /* ── Shape ── */
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      16px;
  --radius-full:    9999px;

  /* ── Elevation ── */
  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow:         0 2px 8px rgba(0, 0, 0, 0.10);
  --shadow-md:      0 4px 16px rgba(0, 0, 0, 0.12);

  /* ── Motion ── */
  --ease:           0.2s ease;
  --ease-progress:  0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 72px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--dark); text-decoration: none; }
/* a:hover { text-decoration: underline; } */
img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon { font-size: 1.2rem; }
.brand-name { display: none; }

@media (min-width: 420px) { .brand-name { display: inline; } }

/* Desktop nav */
.nav-links {
  display: none;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}

.nav-link:hover {
  color: var(--dark);
  background: var(--yellow-bg);
  text-decoration: none;
}

@media (min-width: 640px) { .nav-links { display: flex; } }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}

@media (min-width: 640px) { .nav-toggle { display: none; } }

/* Mobile nav open */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  z-index: 199;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  color: white;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-sports {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.4rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: white;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 460px;
  margin: 0 auto 1.75rem;
}

.hero-meta {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badge {
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--ease);
  border: none;
  text-decoration: none;
  font-family: var(--font);
}

/* Primary CTA: Concise Yellow */
.btn-primary {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 2px 12px rgba(242, 230, 26, 0.35);
}

.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(242, 230, 26, 0.45);
  text-decoration: none;
  color: var(--dark);
}

.hero-update {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Sections ───────────────────────────────────────────────────── */
.section {
  padding: 3.5rem 0;
}

/* Animate the inner container, not the section itself — keeping the
   section free of transform/opacity so that position:sticky on <thead>
   remains viewport-relative and doesn't get clipped to the section. */
.section > .container {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section.in-view > .container {
  opacity: 1;
  transform: translateY(0);
}

.section-alt { background: var(--surface-2); }

.section-header { margin-bottom: 2rem; }

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.loading {
  color: var(--text-light);
  font-style: italic;
  padding: 1rem 0;
}

/* ── Week Tabs ──────────────────────────────────────────────────── */
.week-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.week-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--ease);
  font-family: var(--font);
  flex-shrink: 0;
}

.week-tab:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.week-tab.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--yellow);
}

.week-date { font-size: 0.68rem; font-weight: 400; opacity: 0.75; }

.tab-live {
  display: inline-block;
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  margin-left: 2px;
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* ── Table meta ─────────────────────────────────────────────────── */
.table-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Dark bg / yellow text — Concise brand badge */
.badge-primary { background: var(--dark); color: var(--yellow); }
.badge-muted   { background: var(--border); color: var(--text-muted); }

.table-meta-info { font-size: 0.85rem; color: var(--text-muted); }

/* ── Tables ─────────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 380px;
}

.leaderboard-table thead {
  position: sticky;
  z-index: 10;
}

.leaderboard-table th {
  background: var(--dark);
  color: var(--yellow);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 2px solid var(--dark);
  white-space: nowrap;
}

.leaderboard-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}

.leaderboard-table tbody tr:last-child td { border-bottom: none; }

.leaderboard-table tbody tr { transition: background var(--ease); }
.leaderboard-table tbody tr:hover { background: var(--bg); }

/* Row states */
.row-leader {
  background: var(--yellow-bg) !important;
  border-left: 3px solid var(--yellow);
}

.row-eligible { background: var(--success-bg); }

/* Column widths */
.col-rank     { width: 3.25rem; text-align: center; }
.col-name     { min-width: 160px; }
.col-points   { width: 7rem; text-align: right; }
.col-status   { min-width: 140px; }
.col-weeks    { width: 8rem; text-align: center; }
.col-progress { min-width: 220px; }

/* Rank chips */
.rank-icon { font-size: 1.2rem; }
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Participant cell */
.participant-cell { display: flex; align-items: center; gap: 0.6rem; }

/* Avatar: dark circle, yellow initials — Concise identity */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-sm { width: 28px; height: 28px; font-size: 0.62rem; }

.participant-name { font-weight: 500; }

/* Leader badge: yellow bg, dark text */
.leader-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: var(--yellow);
  color: var(--dark);
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Status labels */
.status-eligible {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--success-bg);
  color: var(--success);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-not-eligible {
  color: var(--text-light);
  font-size: 0.82rem;
}

.weeks-count {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--surface-2);
  color: var(--text-muted);
}

/* Qualified weeks: yellow tint */
.weeks-qualified {
  background: var(--yellow-bg);
  color: var(--dark);
  border: 1.5px solid var(--yellow);
}

/* ── Progress bars ──────────────────────────────────────────────── */
.progress-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-wrap.large { height: 12px; }

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width var(--ease-progress);
}

/* Default (in progress): Concise dark */
.progress-default { background: var(--dark); }
/* Qualified: green (semantic) */
.progress-success { background: linear-gradient(90deg, #27AE60, #1E8449); }
/* Almost there: Concise yellow */
.progress-warning { background: var(--yellow); }
/* Cannot qualify: light gray */
.progress-gray    { background: var(--border-dark); }

.progress-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 2.5rem;
}

/* ── Personal widget ────────────────────────────────────────────── */
.personal-search {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.select-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.participant-select {
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  min-width: 200px;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: auto;
}

.participant-select:focus {
  outline: none;
  border-color: var(--dark);
  box-shadow: 0 0 0 3px var(--yellow-bg);
}

.personal-placeholder {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-light);
}

.placeholder-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.personal-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.personal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.personal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.personal-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); }

.rank-chip {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.15rem 0.65rem;
  background: var(--yellow-bg);
  color: var(--dark);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--yellow);
}

.personal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 600;
}

.stat-badge-success { background: var(--success-bg); color: var(--success); }
.stat-badge-warning { background: var(--warning-bg); color: var(--warning); }

.grand-prize-progress {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.gp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gp-title { font-weight: 700; font-size: 0.95rem; color: var(--dark); }
.gp-fraction { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }

.gp-status-text { margin-top: 0.75rem; font-size: 0.85rem; }
.status-qualified { color: var(--success); font-weight: 600; }
.status-close     { color: var(--dark);    font-weight: 600; }
.status-progress  { color: var(--text-muted); }

/* Week dots */
.week-history {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.week-history h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

.week-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.week-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: default;
}

/* Yellow dot for achieved — brand color */
.dot-success { background: var(--yellow); color: var(--dark); }
.dot-miss    { background: var(--gray-bg); color: var(--text-light); }
.dot-future  { background: var(--surface-2); color: var(--border-dark); font-size: 1rem; }
.dot-current { box-shadow: 0 0 0 2.5px var(--dark); }

.week-dots-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Weekly Winners ─────────────────────────────────────────────── */
.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.winner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}

.winner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Current week: yellow left-border accent */
.winner-card-current {
  border-color: var(--yellow);
  border-left-width: 3px;
  box-shadow: var(--shadow);
}

.winner-card-future { opacity: 0.5; }

.winner-week {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.winner-date {
  display: block;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.68rem;
  margin-top: 2px;
}

.winner-trophy { font-size: 1.75rem; margin-bottom: 0.5rem; }

/* Winner avatar: yellow bg, dark text */
.winner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 auto 0.5rem;
}

.future-avatar {
  background: var(--surface-2);
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 400;
}

.winner-name       { font-weight: 700; font-size: 0.88rem; margin-bottom: 0.25rem; color: var(--dark); }
.winner-name-future { color: var(--text-light); }

.winner-points       { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.winner-points-future { color: var(--text-light); font-size: 1rem; font-weight: 600; }

.current-label {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  color: var(--danger);
  font-weight: 600;
  animation: live-pulse 1.8s ease-in-out infinite;
}

/* ── Grand Prize Tracker ────────────────────────────────────────── */
.gp-legend {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.legend-chip {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid transparent;
}

/* Legend chips use Concise palette where applicable */
.legend-chip.qualified   { background: var(--success-bg); color: var(--success);   border-color: var(--success); }
.legend-chip.close       { background: var(--yellow-bg);  color: var(--dark);      border-color: var(--yellow); }
.legend-chip.in-progress { background: var(--surface-2);  color: var(--text-muted); border-color: var(--border); }
.legend-chip.impossible  { background: var(--gray-bg);    color: var(--text-light); border-color: var(--border); }

.gp-tracker-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gp-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), background var(--ease);
}

.gp-row:hover { border-color: var(--border-dark); }

/* Status row modifiers */
.gp-row.qualified  { border-color: var(--yellow);  background: var(--yellow-bg); }
.gp-row.close      { border-color: var(--yellow-dark); }
.gp-row.impossible { opacity: 0.6; }

.gp-participant {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.gp-name {
  font-weight: 500;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-progress-cell { min-width: 0; }

.gp-fraction {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.gp-row .gp-status-text {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  min-width: 100px;
  color: var(--text-muted);
}

.gp-row.qualified  .gp-status-text { color: var(--success); }
.gp-row.close      .gp-status-text { color: var(--dark); }
.gp-row.impossible .gp-status-text { color: var(--text-light); }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer brand: yellow accent */
.footer-brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--yellow);
}

.footer-info {
  font-size: 0.82rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-sep { opacity: 0.3; }

/* ── Fetch error state ──────────────────────────────────────────── */
.fetch-error {
  padding: 2rem;
  background: var(--surface);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.fetch-error strong {
  display: block;
  color: var(--dark);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.fetch-error p { margin-bottom: 1rem; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--yellow);
  text-decoration: none;
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .section > .container { opacity: 1; transform: none; transition: none; }
  .progress-bar     { transition: none; }
  .hero-sports      { animation: none; }
  .tab-live         { animation: none; }
  .current-label    { animation: none; }
  .btn-primary:hover { transform: none; }
  .winner-card:hover { transform: none; }
}

/* ── Mobile responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .gp-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.6rem 0.75rem;
  }

  .gp-progress-cell {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .gp-fraction { display: none; }

  .winners-grid  { grid-template-columns: repeat(2, 1fr); }
  .col-progress  { min-width: 160px; }
}

@media (max-width: 400px) {
  .winners-grid { grid-template-columns: 1fr; }
}
