:root {
  color-scheme: light dark;
  --bg: #101214;
  --surface: #181b1f;
  --surface-alt: #20252b;
  --text: #f4f1ea;
  --muted: #b8b2a8;
  --accent: #2aa876;
  --accent-strong: #45c98f;
  --line: #343a40;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  border-color: var(--line);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 18, 20, 0.92);
}

.nav,
.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a,
.button {
  text-decoration: none;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.page {
  padding: 48px 0 56px;
}

.hero,
.game-hero {
  display: grid;
  gap: 20px;
  padding: 36px 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #06120c;
  font-weight: 800;
}

.section {
  padding: 28px 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.game-card {
  display: grid;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.game-card:hover {
  border-color: var(--accent);
}

.game-card img,
.cover img,
.screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.game-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-alt);
}

.game-card-body {
  padding: 16px;
}

.game-card h2,
.game-card h3 {
  margin-bottom: 6px;
}

.game-card p,
.meta-list,
.empty {
  color: var(--muted);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.player-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050607;
}

.game-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.screenshot-grid img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer .page {
  padding: 24px 0;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .game-layout {
    grid-template-columns: 1fr;
  }
}

