:root {
  --bg: #0b0b10;
  --panel: #15151d;
  --line: #262633;
  --fg: #f4f4f7;
  --muted: #a0a0b4;
  --accent: #c6ff3d;
  --accent-ink: #11140a;
  --r: 18px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.wordmark { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.zf { width: 34px; height: 34px; flex: none; }
.top nav { display: flex; gap: 20px; }
@media (max-width: 420px) { .top nav { gap: 14px; font-size: 15px; } .wordmark { font-size: 15px; } }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--fg); }

/* Hero */
.hero { padding: clamp(40px, 9vw, 110px) 0 clamp(36px, 6vw, 72px); }
h1 { font-size: clamp(38px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; max-width: 14ch; }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 52ch; margin: 22px 0 0; }

h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 500; margin: 0 0 18px; }

/* Games */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 20px; }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.art { position: relative; display: block; aspect-ratio: 16 / 9; background: #1c1c26; overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
a.art:hover img { transform: scale(1.03); }
.art.placeholder { display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #2a2a3a, #14141c); }
.art.placeholder > span:first-child { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; color: #3c3c50; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.head { display: flex; gap: 14px; align-items: center; }
.icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.tag { margin: 3px 0 0; color: var(--accent); font-weight: 500; }
.body > p { margin: 0; color: var(--muted); }
.links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: auto 0 0; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 15px; }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); background: transparent; }
.btn.off { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* Contact and footer */
.contact { padding: clamp(56px, 8vw, 96px) 0 24px; }
.contact p { font-size: clamp(18px, 2.4vw, 24px); margin: 0; }
.contact a { color: var(--accent); }
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; margin-top: 48px; color: var(--muted); font-size: 14px; }
.foot-logo { width: min(260px, 70%); margin: 0 0 16px; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .art img { transition: none; } }
