:root {
  --bg: #0d1c14;
  --panel: #13281d;
  --panel-2: #173322;
  --text: #f4f2e8;
  --muted: #c8c2ac;
  --line: rgba(255,255,255,0.08);
  --gold: #d5b56f;
  --green-soft: #22422c;
  --green-bright: #2f6b41;
  --danger: #7c2f2f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(213,181,111,0.1), transparent 26%),
    linear-gradient(180deg, #0a1710 0%, #0d1c14 100%);
  color: var(--text);
}
.page-shell { max-width: 1280px; margin: 0 auto; padding: 24px; }
.hero, .section, .team-card {
  border: 1px solid var(--line);
  background: rgba(19,40,29,0.88);
  backdrop-filter: blur(8px);
}
.hero {
  border-radius: 24px;
  padding: 28px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.eyebrow, .section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-size: 12px;
  margin: 0 0 8px 0;
}
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; }
h2 { font-size: 1.5rem; }
.subhead, .section-note, .meta-label, .team-progress, .mini-meta {
  color: var(--muted);
}
.hero-meta {
  min-width: 220px;
  display: grid;
  gap: 12px;
}
.pill {
  padding: 10px 14px;
  background: var(--green-soft);
  border-radius: 999px;
  font-weight: 700;
  width: fit-content;
}
.meta-block { display: grid; gap: 4px; }
.refresh-btn {
  border: 1px solid rgba(213,181,111,0.35);
  background: #1f3828;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.section {
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 24px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.team-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.team-card {
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.team-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.team-rank {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: #20422b; color: var(--gold); font-weight: 800;
}
.team-score { font-size: 2.2rem; font-weight: 800; }
.team-progress { font-size: 0.92rem; }
.score-negative { color: #9ad39d; }
.score-positive { color: #f0b0b0; }
.score-even { color: var(--text); }
.team-player-list, .team-player-list li { list-style: none; padding: 0; margin: 0; }
.team-player-list { display: grid; gap: 8px; }
.team-player-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  font-size: 0.95rem;
}
.stat-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(23,51,34,0.85);
}
.stat-box strong { display: block; font-size: 1.35rem; margin-top: 4px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #21452d;
  border: 1px solid rgba(213,181,111,0.28);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.dim { color: var(--muted); }
.error { background: var(--danger); }
@media (max-width: 860px) {
  .hero, .section-header { flex-direction: column; align-items: flex-start; }
}
