:root {
  color-scheme: dark;
  --bg: #0A0D1C;
  --surface: #131830;
  --line: #232A4A;
  --fg: #EEF2FA;
  --muted: #8F9AB8;
  --accent: #8FE6F0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
main.wrap { padding-top: 40px; padding-bottom: 72px; }
a { color: var(--accent); }
img { max-width: 100%; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--fg); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 40px; }
.site-footer p { margin: 0 0 6px; color: var(--muted); }

/* Text */
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, li { color: var(--fg); }
.lead { font-size: 19px; color: var(--muted); margin-top: 0; }
.kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.muted, .updated { color: var(--muted); }

/* Game cards */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}
.card {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color .15s;
}
.card:hover { border-color: var(--accent); }
.card img { width: 64px; height: 64px; border-radius: 15px; display: block; margin-bottom: 14px; }
.card .card-title { font-size: 18px; font-weight: 700; margin: 0; }
.card .card-genre { color: var(--accent); font-size: 13px; margin: 0 0 8px; }
.card .card-text { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }

/* Game pages */
.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.game-icon { width: 72px; height: 72px; border-radius: 17px; flex: none; }
.game-name { font-size: 22px; font-weight: 700; margin: 0; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.doc h3 + p { margin-top: 0; }
.contact-box {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.contact-box p { margin: 0; }
