:root {
  color-scheme: light dark;
  --background: #fafbfc;
  --surface: #fff;
  --text: #0b1f3a;
  --muted: #46576f;
  --line: #d5dce7;
  --accent: #264cdc;
  --button: #f0f3ff;
  --button-hover: #e3eaff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--background);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #080f1d;
    --surface: #102039;
    --text: #eef2f9;
    --muted: #abb9cc;
    --line: #344763;
    --accent: #b6c4ff;
    --button: #1a2e54;
    --button-hover: #253e6d;
  }
}

* { box-sizing: border-box; }

body { margin: 0; }

.site-header, main {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}

.site-header {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand img { display: block; }

main { padding-block: clamp(24px, 5vw, 48px) 48px; }

.intro { margin-bottom: 22px; }

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.intro p {
  max-width: 46ch;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.games {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.game-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

.game h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.game p {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.45;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.stores a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 8px;
  background: var(--button);
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.stores a:hover { background: var(--button-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (min-width: 580px) {
  .game {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px 18px;
    padding: 20px;
  }
  .game-icon { grid-row: span 2; }
  .stores { grid-column: 2; }
}
