:root {
  --bg: #17121f;
  --panel: #241c30;
  --text: #f1eadb;
  --muted: #b9ad98;
  --accent: #e0b25a;
  --link: #f0c878;
}

* { box-sizing: border-box; }

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

a { color: var(--link); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header.site {
  padding: 28px 0 12px;
}
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
header.site .brand { font-size: 1.5rem; font-weight: 700; color: var(--accent); text-decoration: none; letter-spacing: .02em; }
header.site nav a { margin-left: 18px; color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--text); }

.intro { padding: 24px 0 8px; color: var(--muted); max-width: 640px; }

h1, h2, h3 { line-height: 1.25; }

.games { display: grid; gap: 24px; padding: 16px 0 48px; }

.game {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
}
.game .cover { aspect-ratio: 16 / 7; background-size: cover; background-position: center; }
.game .body { display: flex; gap: 18px; padding: 20px; align-items: flex-start; }
.game .icon { width: 84px; height: 84px; flex: none; border-radius: 18px; background: #00000040; object-fit: contain; }
.game h2 { margin: 0 0 6px; font-size: 1.35rem; }
.game p { margin: 0 0 14px; color: var(--muted); }
.game .links { display: flex; gap: 12px; flex-wrap: wrap; }

.game h2 a { color: inherit; text-decoration: none; }
.game h2 a:hover { color: var(--accent); }
a.cover { display: block; }

.button {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #1d1626;
  font-weight: 600;
  text-decoration: none;
}
.button.ghost { background: transparent; color: var(--link); border: 1px solid #f0c87866; }

.doc { max-width: 760px; padding: 16px 0 48px; }
.doc h1 { margin-top: 8px; }
.doc h2 { margin-top: 36px; color: var(--accent); font-size: 1.3rem; }
.doc h3 { margin-top: 24px; font-size: 1.05rem; }
.doc .updated { color: var(--muted); }

footer.site { border-top: 1px solid #ffffff1a; padding: 20px 0 32px; color: var(--muted); font-size: .9rem; }
footer.site a { color: var(--muted); }

/* Game description pages (games/<game>/) */
.game-page { padding-bottom: 48px; }
.game-page .back { display: inline-block; margin: 8px 0 16px; color: var(--muted); text-decoration: none; }
.game-page .back:hover { color: var(--text); }
.game-page .hero { aspect-ratio: 16 / 7; background-size: cover; background-position: center; border-radius: 14px; }
.game-page .title-row { display: flex; gap: 20px; align-items: center; margin: 22px 0 8px; }
.game-page .title-row .icon { width: 104px; height: 104px; flex: none; border-radius: 22px; background: #00000040; object-fit: contain; }
.game-page h1 { margin: 0; font-size: 1.9rem; }
.game-page .tagline { margin: 2px 0 12px; color: var(--muted); }
.game-page .links { display: flex; gap: 12px; flex-wrap: wrap; }
.game-page h2 { margin-top: 36px; color: var(--accent); font-size: 1.3rem; }
.game-page .about { max-width: 720px; }
.game-page .about p { color: var(--text); }
.features { padding-left: 20px; max-width: 760px; }
.features li { margin: 6px 0; color: var(--muted); }
.features strong { color: var(--text); }
.trailer { width: 100%; max-width: 860px; border-radius: 12px; background: #000; display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery img { width: 100%; display: block; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery a:hover img { outline: 2px solid var(--accent); }

@media (max-width: 560px) {
  .game-page .title-row { flex-direction: column; align-items: flex-start; }
}
