@font-face {
  font-family: 'Oxanium';
  src: url('/fonts/oxanium-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --lime: #d9f53e;
  --ink: #07090c;
  --panel: #101b24;
  --panel-2: #182c38;
  --line: #26303a;
  --text: #e8edf2;
  --muted: #9aa8b4;
  --display: 'Oxanium', ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--text); font-family: var(--display); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { font-size: 19px; font-weight: 600; }
.brand b span { color: var(--lime); font-weight: 800; margin-left: 4px; }
.site-head nav { margin-left: auto; font-size: 14px; color: var(--muted); }
.site-head nav a { text-decoration: none; }
.site-head nav a:hover { color: var(--text); }

main { flex: 1; }

.intro { padding: 56px 0 28px; }
.intro h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.02; font-weight: 700; letter-spacing: -0.01em; max-width: 14ch; }
.intro p { margin: 0; max-width: 58ch; color: var(--muted); font-size: 16px; line-height: 1.55; }
.intro p + p { margin-top: 10px; }

.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding: 12px 0 64px; }
.tile { display: flex; flex-direction: column; background: var(--panel); border-radius: 18px; overflow: hidden; text-decoration: none; outline-offset: 3px; transition: background 120ms; }
.tile:hover, .tile:focus-visible { background: var(--panel-2); }
.tile:focus-visible { outline: 2px solid var(--lime); }
.tile .shot { aspect-ratio: 4 / 3; background: #0a2434; overflow: hidden; }
.tile .shot img { width: 100%; height: 100%; object-fit: cover; }
.tile .copy { padding: 14px 16px 16px; display: grid; gap: 6px; }
.tile h2 { margin: 0; font-size: 20px; font-weight: 700; }
.tile p { margin: 0; color: #becdd8; font-size: 13px; line-height: 1.4; }
.tile .meta { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }

.game { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding: 44px 0 64px; align-items: start; }
.game .shot { border-radius: 22px; overflow: hidden; background: #0a2434; aspect-ratio: 4 / 3; }
.game .shot img { width: 100%; height: 100%; object-fit: cover; }
.game .back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 14px; text-decoration: none; }
.game .back:hover { color: var(--text); }
.game h1 { margin: 0 0 10px; font-size: clamp(32px, 5vw, 48px); line-height: 1.04; font-weight: 700; }
.game .summary { margin: 0 0 18px; font-size: 18px; line-height: 1.45; color: #d4dde4; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 26px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; }
.button.primary { background: var(--lime); color: var(--ink); }
.button.secondary { background: #233340; color: var(--text); }
.button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.how { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 52ch; }
.how b { color: var(--text); font-weight: 600; }

.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-foot .wrap { padding: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

@media (max-width: 760px) {
  .game { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .intro { padding-top: 36px; }
}

.prose { max-width: 680px; padding: 48px 0 64px; font-size: 16px; line-height: 1.6; color: #d4dde4; }
.prose h1 { margin: 0 0 18px; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; color: var(--text); }
.prose h2 { margin: 30px 0 8px; font-size: 19px; color: var(--text); }
.prose a, .how a, .site-foot a { color: var(--lime); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
