:root {
  color-scheme: dark;
  --bg: #0d0f1a;
  --panel: #171a2b;
  --panel-hover: #1e2338;
  --line: #2e3452;
  --text: #f2eee6;
  --muted: #a5abc6;
  --accent: #ff4fa3;
  --accent-2: #3fe0d0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #2a1740 0%, transparent 70%),
    var(--bg);
  color: var(--text);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

header { margin-bottom: 32px; }

.kicker {
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.05;
}

.lede { margin: 0; color: var(--muted); max-width: 40em; }

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

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--panel-hover);
}

.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 132;
  object-fit: cover;
  background: #000;
}

/* The pixel-art games keep crisp edges when scaled up. */
.card img.pixel { image-rendering: pixelated; }

.body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px 18px 18px;
}

.title { font-size: 1.3rem; font-weight: 700; }

.blurb { color: var(--muted); flex: 1; }

.play {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #12040b;
  font-weight: 700;
}

footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover, .card:focus-visible { transform: none; }
}
