:root {
  --bg: #0f0e0c;
  --bg-2: #171512;
  --panel: #1d1a16;
  --line: #2e2a24;
  --text: #f1ebe1;
  --muted: #b3a998;
  --beak: #f39a3d;
  --beak-2: #ffb766;
  --green: #7fc48a;
  --sky: #8fbcff;
  --radius: 14px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 65px;
  /* Side padding that puts full-width blocks (header, banners, footer) on the same column as the
     centred sections: the centred column's margin plus the gutter. % = the block's own width. */
  --edge: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter));
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--beak); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--beak); color: #14110d; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Header and tabs ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
  padding: 0 var(--edge);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.mark { width: 32px; height: 32px; flex: none; }
.tabs { display: flex; align-self: stretch; gap: clamp(4px, 1.5vw, 12px); }
.tabs a {
  display: flex; align-items: center; padding: 0 10px;
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--beak); }
.tabs .tab-ext { color: color-mix(in srgb, var(--muted) 80%, transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--beak); color: #14110d; }
.btn-primary:hover { background: var(--beak-2); }
.btn-ghost { border-color: color-mix(in srgb, var(--text) 35%, transparent); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-block { width: 100%; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--beak); margin-bottom: 14px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: color-mix(in srgb, var(--text) 82%, transparent); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: min(76vh, 740px);
  margin-top: calc(-1 * var(--header-h));
  padding: 130px var(--edge) clamp(28px, 5vw, 56px);
  display: grid; align-content: end; gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(15,14,12,.92) 0%, rgba(15,14,12,.55) 45%, rgba(15,14,12,.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15,14,12,0) 40%),
    var(--hero) center 40% / cover no-repeat;
}
.hero-inner { max-width: 640px; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 800; margin-bottom: 20px; }
.hero-feature {
  display: grid; gap: 2px; text-decoration: none;
  padding: 16px 20px; min-width: 220px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-left: 3px solid var(--beak);
  border-radius: 10px;
  transition: border-color .15s ease;
}
.hero-feature:hover { border-color: var(--beak); }
.hero-feature-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-feature-title { font-family: var(--display); font-weight: 800; font-size: 26px; }
.hero-feature-pitch { color: var(--sky); font-size: 14px; }

/* ---------- Sections ---------- */
.band { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 0; }
.band-tight { padding-top: 8px; }
main > .band:last-child { padding-bottom: clamp(56px, 8vw, 96px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; }
.more { color: var(--beak-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* Page title for inner pages */
.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(42px, 6.5vw, 80px); font-weight: 800; margin-bottom: 16px; }
.page-head .lede { margin: 0; }

/* ---------- Game cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.grid-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--beak) 60%, var(--line)); }
.card-link { display: block; aspect-ratio: 63 / 50; overflow: hidden; background: var(--bg-2); }
.card-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-link img { transform: scale(1.04); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-genre { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.card h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card { position: relative; }
.card h3 a:hover { color: var(--beak-2); }
.card-pitch { color: color-mix(in srgb, var(--text) 80%, transparent); font-size: 15px; flex: 1; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0 0; }
.chip { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.chip-status { color: var(--beak-2); border-color: color-mix(in srgb, var(--beak) 45%, var(--line)); }
.chip-status[data-status="released"] { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.chip-steam { color: var(--sky); border-color: color-mix(in srgb, var(--sky) 45%, var(--line)); }

/* ---------- Home: what's next ---------- */
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.next-card {
  display: grid; gap: 8px; padding: 18px 20px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, transform .15s ease;
}
.next-card:hover { border-color: color-mix(in srgb, var(--beak) 60%, var(--line)); transform: translateY(-2px); }
.next-game { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.next-game em { font-style: normal; color: var(--sky); letter-spacing: .04em; text-transform: none; margin-left: 6px; }
.next-label { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.15; }
.next-card .pill { justify-self: start; }

/* ---------- Game page ---------- */
.game-hero {
  margin-top: calc(-1 * var(--header-h));
  min-height: min(70vh, 640px);
  display: grid; align-items: end;
  padding: 130px var(--edge) clamp(28px, 5vw, 56px);
  background:
    linear-gradient(90deg, rgba(15,14,12,.94) 0%, rgba(15,14,12,.6) 50%, rgba(15,14,12,.15) 80%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15,14,12,0) 45%),
    var(--hero) center / cover no-repeat;
}
.game-hero-inner { width: 100%; }
.game-hero h1 { font-size: clamp(42px, 7vw, 88px); font-weight: 800; max-width: 12em; }
.game-tagline { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 2.2vw, 24px); color: var(--beak-2); margin: 10px 0 16px; }
.game-hero .chips { margin-bottom: 20px; }
.crumb { display: inline-flex; gap: 6px; margin-bottom: 22px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.crumb:hover { color: var(--text); }

.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.game-text h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 14px; }
.game-text > p { color: color-mix(in srgb, var(--text) 86%, transparent); max-width: 40em; }
.features { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 22px; color: color-mix(in srgb, var(--text) 86%, transparent); }
.features li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--beak); transform: rotate(45deg); }
.facts { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.facts dl { margin: 0 0 18px; display: grid; gap: 12px; }
.facts dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; font-size: 14.5px; text-align: right; }
.facts .steam-dd { color: var(--sky); }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--bg-2); cursor: zoom-in; aspect-ratio: 16 / 9;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.03); }

/* ---------- Roadmap ---------- */
.road-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; align-items: start; }
.road-single { grid-template-columns: minmax(0, 720px); }
.road-anchor { scroll-margin-top: 90px; }
.road-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.road-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.road-head img { width: 72px; height: 57px; object-fit: cover; border-radius: 8px; flex: none; }
.road-head h3 { font-size: 24px; font-weight: 800; }
.road-head h3 a { text-decoration: none; }
.road-head h3 a:hover { color: var(--beak-2); }
.road-steam { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--sky); }
.road-items { list-style: none; margin: 0; padding: 0; }
.road-item { padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--line); }
.road-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.road-title { min-width: 0; }
.road-label { font-weight: 600; font-size: 15.5px; }
/* ---------- Progress meters ---------- */
@property --pv { syntax: "<number>"; inherits: false; initial-value: 0; }

.meter {
  --fill-a: #d9741c; --fill-b: var(--beak); --fill-c: #ffc27a; --glow: rgba(243,154,61,.55);
  display: flex; align-items: center; gap: 12px;
}
.meter[data-state="done"] { --fill-a: #4f9b5d; --fill-b: #6fbd7c; --fill-c: #a8e2b1; --glow: rgba(127,196,138,.5); }
.meter[data-state="planned"] { --fill-a: #4b6fa8; --fill-b: #6f95d6; --fill-c: #a9c8ff; --glow: rgba(143,188,255,.45); }
.bar {
  position: relative; flex: 1; height: 14px; border-radius: 999px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255,255,255,.07) calc(10% - 1px) 10%),
    linear-gradient(180deg, #0b0a09, #1a1714);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.7), 0 0 0 1px var(--line);
}
.bar span {
  position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.08) 45%, rgba(0,0,0,.12) 100%),
    linear-gradient(90deg, var(--fill-a), var(--fill-b) 60%, var(--fill-c));
  box-shadow: 0 0 14px var(--glow), inset 0 -1px 0 rgba(0,0,0,.25);
  transition: width 1.3s cubic-bezier(.2, .8, .2, 1);
}
/* A slow shimmer of stripes on work that's in progress */
.meter[data-state="active"] .bar span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.16) 0 7px, transparent 7px 14px);
  animation: stripes 1.4s linear infinite;
}
@keyframes stripes { to { background-position: 19.8px 0; } }
/* A bright cap on the leading edge */
.bar span::before {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; border-radius: 999px;
  background: rgba(255,255,255,.75); filter: blur(3px); opacity: .7;
}
.meter[data-state="done"] .bar span::before { display: none; }
.pct {
  min-width: 3.4em; text-align: right; font-family: var(--display); font-weight: 800; font-size: 20px;
  line-height: 1; font-variant-numeric: tabular-nums; color: var(--fill-c);
}
.pct small { font-size: 12px; margin-left: 1px; opacity: .8; }

/* Grow in when scrolled into view (main.js adds .in); without JS the bars just show full. */
.js .bar span { width: 0; }
.js .bar.in span { width: var(--p); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--beak-2); background: color-mix(in srgb, var(--beak) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--beak) 40%, transparent);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill[data-state="done"] { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.pill[data-state="done"]::before { display: none; }
.pill[data-state="planned"] { color: var(--sky); background: color-mix(in srgb, var(--sky) 12%, transparent); border-color: color-mix(in srgb, var(--sky) 38%, transparent); }

/* Overall ring on each roadmap card */
.ring {
  --pv: var(--target); --size: 68px;
  position: relative; flex: none; width: var(--size); height: var(--size); border-radius: 50%;
  margin-left: auto; display: grid; place-content: center; text-align: center;
  background: conic-gradient(from -90deg, var(--beak) 0, var(--beak-2) calc(var(--pv) * 1%), #0b0a09 0);
  box-shadow: 0 0 18px rgba(243,154,61,.25), 0 0 0 1px var(--line);
  transition: --pv 1.5s cubic-bezier(.2, .8, .2, 1);
}
.js .ring { --pv: 0; }
.js .ring.in { --pv: var(--target); }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ring span, .ring em { position: relative; }
.ring span { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1; }
.ring span small { font-size: 10px; }
.ring em { font-style: normal; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .meter[data-state="active"] .bar span::after { animation: none; }
  .js .bar span { width: var(--p); }
  .js .ring { --pv: var(--target); }
}
.road-item p { margin: 8px 0 0; font-size: 14.5px; color: color-mix(in srgb, var(--text) 78%, transparent); }

/* ---------- Workshop ---------- */
.wip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.wip-teaser { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.wip { margin: 0; }
.wip .shot { position: relative; }
.wip-tag {
  position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(15,14,12,.78); color: var(--beak-2); border: 1px solid color-mix(in srgb, var(--beak) 50%, transparent);
}
.wip figcaption { margin-top: 10px; font-size: 14.5px; color: color-mix(in srgb, var(--text) 84%, transparent); line-height: 1.45; }
.wip figcaption span { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* ---------- AI disclosure ---------- */
.ai-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 8px;
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .02em;
  color: var(--sky); background: color-mix(in srgb, var(--sky) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sky) 45%, transparent);
}
.notice {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--sky) 6%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--sky) 28%, var(--line));
}
.notice p { flex: 1 1 320px; margin: 0; font-size: 15px; color: color-mix(in srgb, var(--text) 86%, transparent); }
.notice strong { color: var(--text); }
.ai-note { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.ai-note .ai-badge { width: 26px; height: 26px; font-size: 11.5px; }
.ai-note a, .site-footer p a { color: var(--sky); white-space: nowrap; }
.ai-panel {
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius);
  background: color-mix(in srgb, var(--sky) 5%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--sky) 25%, var(--line));
  scroll-margin-top: 90px;
}
#ai { scroll-margin-top: 90px; }
.ai-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ai-panel-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.ai-panel p { max-width: 46em; color: color-mix(in srgb, var(--text) 86%, transparent); }
.ai-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; max-width: 46em; }
.ai-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ai-list a { font-weight: 600; text-decoration: none; }
.ai-list a:hover { color: var(--beak-2); }
.ai-list span { color: var(--muted); text-align: right; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.about-mark .mark { width: clamp(72px, 10vw, 120px); height: auto; }
.about p { max-width: 40em; color: color-mix(in srgb, var(--text) 86%, transparent); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-2);
  padding: 32px var(--edge); display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 14px;
}
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brand { color: var(--text); font-size: 16px; }
.site-footer .mark { width: 26px; height: 26px; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); width: 100%; color: var(--text); }
.lightbox::backdrop { background: rgba(8,7,6,.88); }
.lightbox figure { margin: 0; }
.lb-stage { position: relative; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; text-align: center; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.lb-count { color: var(--beak-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-count:empty { display: none; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(15,14,12,.72); color: var(--text); cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.lb-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-nav:hover { background: var(--beak); color: #14110d; border-color: var(--beak); }
.lb-nav:active { transform: translateY(-50%) scale(.94); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lightbox.single .lb-nav { display: none; }
@media (max-width: 640px) {
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}
.lightbox-close {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: rgba(15,14,12,.75); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer;
}

/* ---------- 404 ---------- */
.notfound { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 14vw, 160px) var(--gutter); min-height: 60vh; }
.notfound h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 800; margin-bottom: 16px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto;
    background:
      linear-gradient(0deg, var(--bg) 8%, rgba(15,14,12,.6) 60%, rgba(15,14,12,.35) 100%),
      var(--hero) 30% center / cover no-repeat; }
  .hero-feature { justify-self: start; }
  .game-hero { min-height: auto;
    background:
      linear-gradient(0deg, var(--bg) 6%, rgba(15,14,12,.84) 55%, rgba(15,14,12,.62) 100%),
      var(--hero) center / cover no-repeat; }
  .game-body { grid-template-columns: 1fr; }
  .facts { position: static; }
}

/* Phones: brand on the first row, the tabs on a second row */
@media (max-width: 640px) {
  :root { --header-h: 104px; }
  .site-header { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .brand { font-size: 17px; padding-bottom: 6px; }
  .tabs { justify-content: space-between; gap: 0; min-height: 44px; }
  .tabs a { flex: 1; justify-content: center; padding: 0 4px; font-size: 14.5px; }
  .tabs .tab-ext { display: none; }
  .hero, .game-hero { padding-top: calc(var(--header-h) + 40px); }
  .site-header { padding: 10px var(--edge) 0; }
  .about { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
