:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #8a8a8a;
  --tile: #0d0d0d;
  --tile-border: #222222;
  --ice: #5fd8ec;
  --fire: #ff8a3d;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 16px 3rem;
}

.logo { margin: 0; }
.logo img {
  display: block;
  width: min(480px, 80vw);
  max-height: 50vh;
  height: auto;
  object-fit: contain;
}

.games {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}

.games a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 112px;
  color: inherit;
  text-decoration: none;
}

.games img {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  background: var(--tile);
  border: 1px solid var(--tile-border);
  object-fit: cover;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.games a:hover img,
.games a:focus-visible img {
  transform: translateY(-4px) scale(1.05);
  border-color: transparent;
  box-shadow:
    -6px 0 22px -4px rgb(95 216 236 / 0.55),
     6px 0 22px -4px rgb(255 138 61 / 0.55);
}

.games a:focus-visible { outline: none; }
.games a:focus-visible img { outline: 2px solid var(--ice); outline-offset: 4px; }

.games span {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  color: #e6e6e6;
}

.empty { color: var(--muted); }

@media (max-width: 480px) {
  .games { gap: 1rem; }
  .games a, .games img { width: 84px; }
  .games img { height: 84px; border-radius: 18px; }
}
