@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --green: #7dc242;
  --blue: #27aae1;
  --gold: #d9a441;
  --bg: #0a0e15;
  --surface: #111927;
  --surface-2: #18212f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef5;
  --muted: #9aa8b8;
  --faint: #6b7889;
  --grad: linear-gradient(100deg, var(--green) 0%, var(--blue) 100%);
  --maxw: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(125, 194, 66, 0.10), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(39, 170, 225, 0.10), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(10, 14, 21, 0.72); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: 0.04em; }
.brand img { width: 28px; height: 28px; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 88px 0 56px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin: 0 0 18px; }
.hero h1 { font: 700 clamp(40px, 7vw, 76px)/1.02 var(--display); letter-spacing: -0.02em; margin: 0 0 22px; max-width: 14ch; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; margin: 0; }

/* Game cards */
.games { display: grid; gap: 28px; padding-bottom: 96px; }
.game { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.game:hover { border-color: rgba(255,255,255,0.16); transform: translateY(-2px); }
.game:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.game:nth-child(even) .game-media { order: 2; }
.game-media { position: relative; min-height: 320px; background: #05070b; }
.game-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-media .status { position: absolute; top: 16px; left: 16px; }
.game-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.game h2 { font: 700 clamp(34px, 4.5vw, 48px)/1 var(--display); margin: 0; letter-spacing: -0.01em; }
.game .tagline { font: 500 18px/1.4 var(--display); color: var(--text); margin: 0; }
.game p { margin: 0; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.meta li { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; }
.status { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: rgba(10,14,21,0.8); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.live { color: var(--green); }
.status.released { color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 15px/1 var(--sans); padding: 14px 20px; border-radius: 12px; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: #07110a; }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: rgba(255,255,255,0.24); }
.game.tawla { --accent: var(--gold); }
.game.tawla .btn.primary { background: linear-gradient(100deg, #e0b458, #b8792c); color: #1a1006; }
.game.tawla h2 { color: #f1e4c9; }

.game.karnakoid .btn.primary { background: linear-gradient(100deg, #3b63e0, #27b6d6); color: #f4f8ff; }
.game.karnakoid h2 { color: #f2d27a; }

/* Coming soon */
.soon { padding-bottom: 72px; }
.status.soon { color: var(--gold); }
.game.ttp h2 { color: #f4d58d; }

/* Follow */
.follow { padding: 0 0 72px; }
.follow h3 { font: 600 22px/1.3 var(--display); margin: 0 0 6px; }
.follow p { margin: 0 0 8px; color: var(--muted); }

/* Engine strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(17, 25, 39, 0.5); }
.strip .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 40px 0; }
.strip h3 { font: 600 22px/1.3 var(--display); margin: 0 0 6px; }
.strip p { margin: 0; color: var(--muted); max-width: 64ch; }

/* Detail page */
.crumbs { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-top: 40px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.detail-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 40px 0 64px; }
.detail-hero h1 { font: 700 clamp(48px, 8vw, 88px)/0.95 var(--display); margin: 0 0 18px; letter-spacing: -0.02em; }
.detail-hero .lede { margin-bottom: 24px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #05070b; }
.shot img { width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 64px; }
.facts div { background: var(--surface); padding: 22px 24px; }
.facts dt { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.facts dd { margin: 0; font: 600 17px/1.3 var(--display); }
.prose { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 72px; }
.prose h2 { font: 600 26px/1.2 var(--display); margin: 0 0 14px; }
.prose p { color: var(--muted); margin: 0 0 14px; }
.steam-embed { padding-bottom: 96px; }
.steam-embed iframe { width: 100%; max-width: 646px; height: 190px; border: 0; border-radius: 12px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }

@media (max-width: 860px) {
  .game, .game:nth-child(even) { grid-template-columns: 1fr; }
  .game:nth-child(even) .game-media { order: 0; }
  .game-media { min-height: 0; aspect-ratio: 16 / 9; }
  .strip .wrap { grid-template-columns: 1fr; }
  .detail-hero, .prose { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .nav a.hide-sm { display: none; }
  .hero { padding: 56px 0 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
