:root {
  color-scheme: light dark;
  --bg: #f4f1e8;
  --ink: #1d2a24;
  --muted: #55635b;
  --card: #ffffff;
  --accent: #c2410c;
  --ring: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161c19;
    --ink: #f1efe6;
    --muted: #a9b5ad;
    --card: #222b26;
    --accent: #fb923c;
    --ring: #93c5fd;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede {
  margin: 8px 0 32px;
  color: var(--muted);
}

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.game {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 120px;
  padding: 20px;
  border-radius: 12px;
  border-bottom: 4px solid var(--accent);
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

.game:hover { transform: translateY(-2px); }
.game:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

.game-title { font-size: 1.35rem; font-weight: 700; }
.game-pitch { color: var(--muted); }
.empty { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .game:hover { transform: none; }
}
