:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --text: #1d1b16;
  --muted: #6b6558;
  --line: #e8e2d4;
  --accent: #e8a317;
  --accent-ink: #3a2a00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --surface: #1f1c17;
    --text: #f2ede2;
    --muted: #a59d8c;
    --line: #333027;
    --accent: #f2b733;
    --accent-ink: #1d1500;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header { padding: 48px 0 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.brand-name { font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.tagline { color: var(--muted); margin: 16px 0 0; }

h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 40px 0 12px; }

.games { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.game {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px;
}
.game-title { font-weight: 650; }
.game-id { color: var(--muted); font-size: 13px; word-break: break-all; }
.store {
  flex-shrink: 0; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}

footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0 48px; color: var(--muted); font-size: 14px; }
footer a { margin-right: 16px; }

.doc h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 4px; }
.doc h2 { text-transform: none; letter-spacing: 0; font-size: 20px; color: var(--text); margin: 32px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }

@media (max-width: 520px) {
  .game { flex-direction: column; align-items: flex-start; }
  .doc table { font-size: 14px; }
}
