:root {
  color-scheme: light dark;
  --bg: #f6f6f9;
  --card: #ffffff;
  --ink: #171a22;
  --muted: #5d6270;
  --line: rgba(20, 24, 40, 0.1);
  --accent: #8090cd;
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.06), 0 8px 24px rgba(20, 24, 40, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141418;
    --card: #1d1d21;
    --ink: #f1f1f4;
    --muted: #a3a6b2;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 50% -180px, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    var(--bg) no-repeat;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}
.top, main, .foot { max-width: 880px; margin: 0 auto; }
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.top__mark { flex: none; }
h1 { margin: 0; font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; }
.top p { margin: 4px 0 0; color: var(--muted); }
.category { margin-bottom: 28px; }
h2 { margin: 0 0 12px; font-size: 0.85rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.game {
  display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
a.game:hover, a.game:focus-visible { transform: translateY(-2px); border-color: var(--accent); }
a.game:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.game--soon { opacity: 0.62; }
.game__icon { flex: none; border-radius: 12px; }
.top > div { min-width: 0; }
.game__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.game__name { font-weight: 700; font-size: 1.05rem; }
.game__about { color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.game__badge {
  margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  font-size: 0.7rem; font-weight: 650; background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.foot { margin-top: 36px; font-size: 0.85rem; }
.foot a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .game { transition: none; } }
