:root {
  --bg: #0d0f0a;
  --bg-alt: #14170f;
  --card: #1a1e14;
  --line: #2b3121;
  --text: #ecefe4;
  --muted: #a9b09a;
  --lime: #b8f02a;
  --lime-dark: #9bd60f;
  --ink: #10130a;
  --radius: 16px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(13, 15, 10, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { flex: none; display: inline-flex; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 2px solid var(--lime);
  transition: background .15s, transform .15s; text-align: center;
}
.btn:hover { background: var(--lime-dark); border-color: var(--lime-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--muted); }
.btn-small { padding: 9px 16px; font-size: 14px; flex: none; }
.btn-big { padding: 18px 30px; font-size: 19px; }

/* Hero */
.hero { padding: 88px 0 56px; background: radial-gradient(900px 420px at 85% -10%, rgba(184, 240, 42, 0.16), transparent 70%); }
.eyebrow { color: var(--lime); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow a { text-decoration: none; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; max-width: 15ch; }
.hero h1 span { color: var(--lime); }
.lead { color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 62ch; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; border-top: 1px solid var(--line); padding-top: 28px; }
.facts li { display: flex; gap: 14px; align-items: baseline; }
.facts strong { font-size: 40px; font-weight: 800; color: var(--lime); line-height: 1; }
.facts span { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* Sections */
.section { padding: 88px 0; }
.section.tight { padding: 24px 0 72px; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; max-width: 22ch; }
.h-small { font-size: 14px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; max-width: none !important; }
.section .btn { margin-top: 40px; }

.grid { display: grid; gap: 18px; margin-top: 40px; }
.section.tight .grid { margin-top: 0; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.work { grid-template-columns: repeat(6, 1fr); }
.grid.work > * { grid-column: span 3; }
.grid.work > :last-child { grid-column: 1 / -1; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); }
.link-card { position: relative; display: block; color: var(--text); text-decoration: none; padding-bottom: 58px; transition: border-color .15s, transform .15s; }
.link-card:hover, .work-card:hover { border-color: var(--lime); transform: translateY(-2px); }
.arrow { position: absolute; left: 26px; bottom: 20px; color: var(--lime); font-size: 22px; }

/* Games */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; margin-top: 48px; }
.checks li { position: relative; padding: 0 0 14px 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px; background: var(--lime); clip-path: polygon(14% 50%, 0 65%, 40% 100%, 100% 22%, 86% 8%, 38% 68%); }
.formats li { border-top: 1px solid var(--line); padding: 18px 0; }
.formats li:last-child { border-bottom: 1px solid var(--line); }
.format-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.formats h4 { font-size: 20px; }
.formats p { color: var(--muted); }
.tag { flex: none; font-size: 13px; font-weight: 700; color: var(--lime); border: 1px solid var(--lime); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }

/* Work */
.work-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.work-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--line); }
.grid.work > :last-child { flex-direction: row; }
.work-plain { flex: 0 0 38%; display: grid; place-items: center; min-height: 190px; background: linear-gradient(135deg, #0b1525, #10253a); color: #ff6b00; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.04em; }
.work-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.kind { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.go { margin-top: auto; padding-top: 16px; color: var(--lime); font-weight: 700; }

/* Case */
.case { margin-top: 28px; border: 1px solid var(--lime); border-radius: var(--radius); padding: 28px; background: rgba(184, 240, 42, 0.05); }
.case h3 { font-size: 22px; margin-bottom: 10px; }
.case p { color: var(--muted); max-width: 70ch; margin-bottom: 14px; }
.case a { font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--lime); padding-top: 18px; }
.steps li::before { content: "0" counter(step); color: var(--lime); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.steps h3 { font-size: 20px; margin: 8px 0; }
.steps p { color: var(--muted); font-size: 16px; }

.contact { text-align: center; background: radial-gradient(700px 320px at 50% 120%, rgba(184, 240, 42, 0.18), transparent 70%); }
.contact h2, .contact .lead { margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; color: var(--muted); font-size: 15px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { margin-top: 12px; max-width: 36ch; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--lime); }
.legal { margin-top: 28px; font-size: 13px; }

/* Blog and text pages */
.prose-wrap { padding-top: 64px; }
.post-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.meta { color: var(--muted); font-size: 15px; margin-top: 16px; }
.prose { margin-top: 36px; font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h1 { font-size: clamp(30px, 4.6vw, 44px); }
.prose h2 { font-size: 28px; margin-top: 1.8em; max-width: none; }
.prose h3 { font-size: 23px; margin-top: 1.8em; }
.prose h4 { font-size: 19px; margin-top: 1.6em; }
.prose p, .prose li { color: #d6dbc9; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose blockquote { margin: 1.4em 0 0; padding-left: 18px; border-left: 3px solid var(--lime); color: var(--muted); }
.prose code { background: var(--card); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.document header p { color: var(--muted); }
.post-cta { margin-top: 56px; }

.post-list { margin-top: 40px; display: grid; gap: 18px; }
.post-list a { display: block; color: var(--text); text-decoration: none; transition: border-color .15s; }
.post-list a:hover { border-color: var(--lime); }
.post-list h2 { font-size: 24px; max-width: none; margin-bottom: 8px; }
.post-list .kind { margin-bottom: 10px; }

@media (max-width: 900px) {
  .bar { flex-wrap: wrap; justify-content: space-between; gap: 0 24px; padding-top: 10px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; padding: 10px 0 12px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 120px; }
  .hero { padding-top: 56px; }
  .facts, .grid.three, .grid.two, .split { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid.work > * { grid-column: 1 / -1; }
  .grid.work > :last-child { flex-direction: column; }
  .work-plain { flex: none; min-height: 130px; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .format-head { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
