:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #65717e;
  --line: #d9dee5;
  --accent: #0f766e;
  --accent-soft: #d9f2ef;
  --warn: #9f580a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.1;
}

h2 {
  font-size: 16px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tab {
  min-width: 74px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: var(--accent);
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 16px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.span-2 {
  grid-row: span 2;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.games,
.rankings {
  display: grid;
  gap: 8px;
}

.game,
.team-row {
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.game {
  grid-template-columns: 96px 1fr auto;
}

.date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.matchup {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
}

.venue,
.meta {
  color: var(--muted);
  font-size: 12px;
}

.team-row {
  grid-template-columns: 34px 1fr auto;
}

.rank {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.chance {
  color: var(--accent);
  font-weight: 800;
}

.accuracy {
  display: grid;
  gap: 10px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.metric-value {
  font-size: 30px;
  font-weight: 800;
}

.empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}

@media (max-width: 820px) {
  .topbar,
  .grid {
    display: block;
  }

  .tabs {
    margin-top: 14px;
  }

  .panel {
    margin-bottom: 16px;
  }

  .game {
    grid-template-columns: 1fr;
  }
}
