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

:root {
  --bg: hsl(0, 0%, 6%);
  --text: hsl(0, 0%, 88%);
  --text-muted: hsl(0, 0%, 53%);
  --hue: 215;
  --surface: hsl(var(--hue), 35%, 9%);
  --surface-hover: hsl(var(--hue), 35%, 13%);
  --border: hsl(var(--hue), 38%, 20%);
  --accent: hsl(calc(var(--hue) - 7), 80%, 40%);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.game-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.game-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.game-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

footer {
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
