:root {
  --bg: #12141a;
  --panel: #1b1e26;
  --line: #2a2e39;
  --text: #eef0f4;
  --muted: #9aa0ad;
  --accent: #4f8ff7;
  --link: #7fb0ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }

header.site {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
header.site a.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
header.site .mark { width: 32px; height: 32px; border-radius: 8px; }
header.site nav { display: flex; gap: 6px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 14px; border-radius: 8px; }
header.site nav a:hover { color: var(--text); }
header.site nav a.on { background: var(--accent); color: #fff; }
@media (max-width: 560px) {
  header.site { grid-template-columns: 1fr; justify-items: center; }
}

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.game {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 16px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.game .icon { width: 110px; height: 110px; border-radius: 24px; border: 3px solid #000; }
.game h2 { margin: 0; font-size: 17px; }
.badge {
  display: flex; align-items: center; gap: 8px; width: 150px; padding: 6px 12px;
  border: 1px solid #a6a6a6; border-radius: 8px; background: #000; color: #fff; text-decoration: none; text-align: left;
}
.badge svg { width: 20px; height: 20px; flex: none; }
.badge span { display: flex; flex-direction: column; font-size: 17px; line-height: 1.1; font-weight: 600; }
.badge small { font-size: 9px; font-weight: 500; letter-spacing: .04em; }
.badge.off { opacity: .35; }

.doc { max-width: 760px; margin: 0 auto; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.updated { color: var(--muted); margin-bottom: 22px; }

footer.site { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
footer.site a { color: var(--muted); }
