:root {
  --bg: #120a24;
  --ink: #f6eefe;
  --muted: #b9a7d6;
  --pink: #ff4fa3;
  --gold: #ffd166;
  --line: #3a2563;
  --font: 'Press Start 2P', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font);
  background: radial-gradient(ellipse at top, #3a1563 0%, var(--bg) 60%) fixed, var(--bg);
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

header { text-align: center; margin-bottom: 40px; }

.kicker {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--pink);
  animation: blink 1.2s steps(1) infinite;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 56px);
  color: var(--gold);
  text-shadow: 4px 4px 0 #8b3fd9, 8px 8px 0 #2a1747;
  letter-spacing: 2px;
}

.sub { margin: 20px 0 0; font-size: 12px; color: var(--muted); }

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

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: rgba(18, 8, 38, 0.78);
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 #000;
  transition: transform 80ms steps(2), border-color 80ms;
}

a.card:hover, a.card:focus-visible {
  border-color: var(--gold);
  transform: translate(-2px, -2px);
  outline: none;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  image-rendering: pixelated;
  border-bottom: 4px solid var(--line);
}

.body { display: flex; flex-direction: column; gap: 12px; padding: 16px; flex: 1; }
.title { font-size: 12px; line-height: 1.6; color: var(--gold); }
.blurb { font-size: 9px; line-height: 1.8; color: var(--muted); flex: 1; }
.play { font-size: 10px; color: var(--pink); }
a.card:hover .play, a.card:focus-visible .play { animation: blink 0.6s steps(1) infinite; }

.card.empty {
  min-height: 260px;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}

.slot { font-size: 10px; line-height: 2; text-align: center; color: var(--line); }

.back { text-align: center; font-size: 12px; }
.back a { color: var(--pink); }

@keyframes blink { 50% { opacity: 0; } }

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