/* 2 Zombie Games — built from the design system tokens.json + bundle.css */
:root {
  --night-950: #0a0f1c;
  --night-900: #10182a;
  --night-800: #162235;
  --night-700: #243352;
  --night-600: #33456c;
  --line: #243054;
  --line-strong: #5a6a92;
  --ink: #eef1f7;
  --ink-muted: #9aa2b8;
  --ink-subtle: #8089a6;
  --toxic: #b7f34d;
  --toxic-soft: #d4fa8f;
  --toxic-glow: rgba(183, 243, 77, 0.16);
  --on-toxic: #0a0f1c;
  --ember: #ff7a2f;
  --ember-glow: rgba(255, 122, 47, 0.12);
  --frost: #a9c4dc;
  --scrim: rgba(10, 15, 28, 0.78);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --cut-xs: 6px;
  --cut-sm: 10px;
  --cut-lg: 22px;
  --container-max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-top: clamp(24px, 3.5vw, 52px);
  --section-bottom: clamp(48px, 6vw, 84px);
  --section-top-next: clamp(40px, 5.5vw, 78px);
  --nav-h: 68px;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
html,body{margin:0;background:var(--night-950)}

/* 2 Zombie Games — components. Mobile-first; breakpoints 520 / 720 / 960 / 1200. */

/* ---------- base ---------- */
html:has(.z-page) { scroll-padding-top: var(--nav-h); scroll-behavior: smooth; }
.z-page {
  background: var(--night-950);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100%;
}
:where(.z-page) *, :where(.z-page) *::before, :where(.z-page) *::after { box-sizing: border-box; }
:where(.z-page) img { max-width: 100%; display: block; }
:where(.z-page) a { color: inherit; text-decoration: none; }
:where(.z-page) p { margin: 0; }
:where(.z-page) :is(h1, h2, h3, h4) { margin: 0; }
.z-page ::selection { background: var(--toxic); color: var(--on-toxic); }
.z-page :focus-visible { outline: 2px solid var(--toxic); outline-offset: 3px; }

.z-wrap { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
/* hero → first section: section-bottom + section-top; every later seam is a little roomier: section-bottom + section-top-next */
.z-section { padding: var(--section-top) 0 var(--section-bottom); position: relative; }
.z-section + .z-section { padding-top: var(--section-top-next); }

/* section heading mark: the hero grid with a lime glow behind a section's kicker and title, fading out on every side */
.z-gridmark { position: relative; isolation: isolate; }
.z-gridmark::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(var(--space-16) * -1.5); top: calc(var(--space-16) * -1.25);
  width: min(760px, 100vw); height: calc(100% + var(--space-16) * 2.5);
  background-image:
    radial-gradient(38% 42% at 32% 50%, var(--toxic-glow), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, var(--space-16) var(--space-16), var(--space-16) var(--space-16);
  -webkit-mask-image: radial-gradient(55% 55% at 34% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(55% 55% at 34% 50%, #000 20%, transparent 100%);
}

/* the brand chamfer: top-left and bottom-right corners cut */
.z-cut {
  --cut: var(--cut-lg);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* grid + lime glow backdrop (same recipe as the hero), for a section that needs a lift; fades out before every edge */
.z-glowgrid { isolation: isolate; overflow: hidden; }
.z-glowgrid::before, .z-glowgrid::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.z-glowgrid::before {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--space-16) var(--space-16);
  -webkit-mask-image: radial-gradient(60% 55% at 70% 38%, #000 10%, transparent 80%);
  mask-image: radial-gradient(60% 55% at 70% 38%, #000 10%, transparent 80%);
  opacity: 0.55;
}
.z-glowgrid::after { background: radial-gradient(42% 45% at 70% 38%, var(--toxic-glow), transparent 70%); }

/* ---------- type ---------- */
.z-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--toxic);
}
.z-kicker::before { content: ""; width: 20px; height: 2px; background: currentColor; flex: none; }
.z-display {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 0.9;
}
.z-h-hero { display: flex; flex-direction: column; gap: 0.14em; font-size: clamp(46px, 6vw, 84px); line-height: 0.95; letter-spacing: 0; }
.z-h-hero__sub { font-size: 0.58em; font-weight: 800; line-height: 1.05; letter-spacing: 0.01em; color: var(--toxic); }
.z-h1 { font-size: clamp(48px, 7vw, 88px); }
.z-h2 { font-size: clamp(44px, 6vw, 72px); font-weight: 800; line-height: 0.92; }
.z-h3 { font-size: clamp(34px, 3.4vw, 40px); font-weight: 800; line-height: 0.95; }
.z-accent { color: var(--toxic); }
.z-accent-ember { color: var(--ember); }
.z-accent-frost { color: var(--frost); }
.z-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-muted); }
.z-meta {
  font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle);
}

/* ---------- button ---------- */
.z-btn {
  --cut: var(--cut-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: 0.01em;
  border: 0; cursor: pointer; white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.z-btn:active { transform: translateY(1px); }
/* clip-path cuts off box-shadow, so hover is a fill change plus a lift, never a glow */
.z-btn--primary { background: var(--toxic); color: var(--on-toxic); }
.z-btn--primary:hover { background: var(--ink); transform: translateY(-2px); }
.z-btn--primary:active { background: var(--toxic-soft); transform: translateY(0); }
.z-btn--secondary { background: var(--night-700); color: var(--ink); }
.z-btn--secondary:hover { background: var(--night-600); transform: translateY(-2px); }
.z-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.z-btn svg { width: 18px; height: 18px; flex: none; }

.z-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; line-height: 20px; font-weight: 600; color: var(--toxic);
  min-height: 44px;
}
.z-arrow::after { content: "→"; transition: transform .2s; }
.z-arrow:hover::after { transform: translateX(4px); }
.z-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- tag (status) / chip ---------- */
.z-tag {
  --cut: var(--cut-xs);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  font-family: var(--font-mono); font-size: 11px; line-height: 14px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.z-tag::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--ink-muted); flex: none; }
.z-tag--live::before { background: var(--toxic); box-shadow: 0 0 0 4px var(--toxic-glow); }
.z-tag--dev::before { background: var(--ember); box-shadow: 0 0 0 4px var(--ember-glow); }
.z-tag--demo::before { background: var(--toxic); box-shadow: 0 0 0 4px var(--toxic-glow); }
.z-tag--dlc { color: var(--frost); }
.z-tag--dlc::before { background: var(--frost); }

.z-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; list-style: none; }
.z-chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px;
  font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-muted); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}

.z-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.z-tags .z-tag { background: var(--night-700); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- nav ---------- */
.z-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--scrim); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
.z-nav__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
/* the rule under the nav spans the content column only, not the viewport */
.z-nav__inner::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); }
.z-nav__brand { display: flex; align-items: center; gap: 12px; flex: none; }
.z-nav__brand img { height: 44px; width: auto; }
.z-nav__brand span { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; display: none; }
.z-nav__links { display: none; gap: 36px; margin: 0 auto 0 0; padding: 0 0 0 24px; list-style: none; }
.z-nav__links a { font-size: 15px; font-weight: 500; color: var(--ink-muted); transition: color .2s; padding: 10px 0; }
.z-nav__links a:hover { color: var(--ink); }
.z-nav__cta { display: none; }
.z-nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.z-nav__toggle svg { width: 26px; height: 26px; }
.z-nav__menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--night-900); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card);
  padding: 8px var(--gutter) 24px;
}
.z-nav__menu[hidden] { display: none; }
.z-nav__menu ul { list-style: none; margin: 0; padding: 0; }
.z-nav__menu li a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0;
  font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.z-nav__menu li a::after { content: "→"; font-family: var(--font-sans); font-size: 22px; color: var(--toxic); }
.z-nav__menu .z-btn { width: 100%; margin-top: 20px; }
@media (min-width: 520px) { .z-nav__brand span { display: inline; } }
@media (min-width: 860px) {
  .z-nav__links { display: flex; }
  .z-nav__cta { display: inline-flex; }
  .z-nav__toggle, .z-nav__menu { display: none !important; }
}

/* ---------- hero ---------- */
.z-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(32px, 6vw, 88px) 0 var(--section-bottom);
  background:
    radial-gradient(45% 50% at 78% 32%, var(--toxic-glow), transparent 70%),
    radial-gradient(35% 40% at 4% 52%, var(--ember-glow), transparent 70%),
    var(--night-950);
}
.z-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--space-16) var(--space-16);
  -webkit-mask-image: radial-gradient(80% 62% at 66% 22%, #000 12%, transparent 80%);
  mask-image: radial-gradient(80% 62% at 66% 22%, #000 12%, transparent 80%);
  opacity: 0.55;
}
.z-hero__grid { display: grid; gap: 28px; align-items: center; }
.z-hero__art { order: -1; justify-self: center; width: min(62vw, 300px); position: relative; }
.z-hero__art img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); animation: z-float 7s ease-in-out infinite; }
.z-hero__copy { display: flex; flex-direction: column; gap: 22px; }
.z-hero__copy .z-lead { max-width: 46ch; }
.z-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 6px; }
@media (max-width: 519px) { .z-hero__actions .z-btn { flex: 1 1 100%; } }
@media (min-width: 960px) {
  .z-hero__grid { grid-template-columns: 1.6fr 1fr; gap: 48px; }
  .z-hero__art { order: 0; width: 100%; max-width: 460px; }
}
@keyframes z-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- spotlight (featured game) ---------- */
.z-spot { display: grid; grid-template-areas: "media" "body" "shots"; background: var(--night-900); position: relative; }
.z-spot__media { grid-area: media; position: relative; aspect-ratio: 1232 / 706; overflow: hidden; background: var(--night-800); }
.z-spot__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.z-spot:hover .z-spot__media img { transform: scale(1.03); }
.z-spot__body {
  grid-area: body;
  padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; justify-content: center;
  background: radial-gradient(80% 60% at 100% 100%, var(--ember-glow), transparent 70%);
}
.z-spot__body .z-lead { max-width: 40ch; }
.z-spot__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
@media (max-width: 519px) { .z-spot__actions .z-btn { flex: 1 1 100%; } }
.z-spot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.z-play { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); transition: color .2s; }
.z-play svg { width: 28px; height: 28px; padding: 7px; border-radius: var(--radius-pill); background: var(--ember); color: var(--on-toxic); flex: none; }
.z-play:hover { color: var(--ember); }
.z-spot__shots { grid-area: shots; align-self: start; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin: 0; padding: 0 var(--space-2) var(--space-2); list-style: none; }
.z-spot__shots li:first-child { grid-column: 1 / -1; }
.z-spot__shots a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-800); }
.z-spot__shots img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.z-spot__shots a:hover img { opacity: 1; transform: scale(1.04); }
@media (min-width: 720px) {
  .z-spot__shots { grid-template-columns: repeat(3, 1fr); }
  .z-spot__shots li:first-child { grid-column: auto; }
}
@media (min-width: 960px) {
  .z-spot__body { padding: 36px 40px; gap: 16px; }
  .z-spot { grid-template-columns: 3fr 2fr; grid-template-rows: auto 1fr; grid-template-areas: "media body" "shots body"; }
  .z-spot__shots { padding: var(--space-2) 0 0; }
}

.z-dl { display: grid; gap: 14px; margin: 4px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.z-dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.z-dl dt { font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.z-dl dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink); }

/* ---------- section head ---------- */
.z-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: var(--space-12); }
.z-head > div:not(.z-tags) { display: flex; flex-direction: column; gap: 16px; }
.z-head .z-lead { max-width: 44ch; }

/* ---------- game card ---------- */
.z-games { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.z-game { position: relative; display: flex; flex-direction: column; background: var(--night-900); transition: background-color .3s, transform .3s; }
.z-game:hover { background: var(--night-800); transform: translateY(-4px); }
.z-game__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-800); }
.z-game__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.z-game:hover .z-game__media img { transform: scale(1.05); }
.z-game__body { display: flex; flex-direction: column; gap: 14px; padding: var(--space-6); flex: 1; }
.z-game__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.z-game__body p:not(.z-meta) { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.z-game__foot { margin-top: auto; padding-top: 8px; display: flex; }
.z-game__cta::after { content: "→"; transition: transform .2s; }
.z-game:hover .z-game__cta { background: var(--toxic); color: var(--on-toxic); }
.z-game:hover .z-game__cta::after { transform: translateX(3px); }
@media (min-width: 720px) {
  .z-games { grid-template-columns: repeat(2, 1fr); }
  .z-games > .z-game:first-child { grid-column: 1 / -1; }
  .z-games > .z-game:first-child .z-game__media { aspect-ratio: 21 / 9; }
}
@media (min-width: 1200px) {
  .z-games { grid-template-columns: repeat(3, 1fr); }
  .z-games > .z-game:first-child { grid-column: auto; }
  .z-games > .z-game:first-child .z-game__media { aspect-ratio: 16 / 9; }
}

/* ---------- awards ---------- */
.z-awards__grid { display: grid; gap: var(--space-12); align-items: center; }
.z-awards__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.z-awards__text .z-lead { max-width: 44ch; }
.z-laurels {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6) var(--space-4);
  margin: 0; padding: 0; list-style: none;
}
.z-laurels li { flex: 0 0 calc(50% - var(--space-2)); }
.z-laurels img { width: 100%; height: auto; transition: transform .3s; }
.z-laurels li:hover img { transform: scale(1.04); }
@media (min-width: 720px) { .z-laurels li { flex-basis: calc((100% - 2 * var(--space-4)) / 3); } }
/* same columns as .z-about__grid below, so the laurels span exactly the width of the About text */
@media (min-width: 960px) { .z-awards__grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }

/* ---------- about ---------- */
.z-about { background: radial-gradient(40% 45% at 0% 50%, var(--toxic-glow), transparent 70%), var(--night-950); }
.z-about__grid { display: grid; gap: 40px; }
.z-about__mark { display: flex; flex-direction: column; gap: 20px; }
.z-about__mark img { width: clamp(140px, 22vw, 240px); height: auto; margin-left: -12px; }
.z-about__text { display: flex; flex-direction: column; gap: 20px; }
.z-about__text p:first-child { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; color: var(--ink); font-weight: 500; }
.z-about__text p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-muted); }
@media (min-width: 960px) {
  .z-about__grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); align-items: start; }
  /* start the text level with the visible 2Z letters: kicker (16px) + gap (20px) + the PNG's empty top margin (~27% of its width) */
  .z-about__text { padding-top: calc(36px + min(22vw, 240px) * 0.27); }
}

/* ---------- contact ---------- */
.z-contact { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.z-card { background: var(--night-900); padding: var(--space-6); display: flex; flex-direction: column; gap: 12px; transition: background-color .3s, transform .3s; }
.z-card:hover { background: var(--night-800); transform: translateY(-4px); }
.z-card h3 { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-subtle); }
.z-card__mail { font-size: clamp(19px, 2vw, 22px); line-height: 1.3; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; transition: color .2s; }
.z-card__mail:hover { color: var(--toxic); }
.z-card p { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.z-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: auto; padding-top: 8px; }
.z-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0; padding: 0; list-style: none; }
.z-socials a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid var(--line); font-weight: 500; transition: color .2s; }
.z-socials a::after { content: "↗"; color: var(--ink-subtle); }
.z-socials a:hover { color: var(--toxic); }
@media (min-width: 720px) { .z-contact { grid-template-columns: repeat(2, 1fr); } .z-card { padding: var(--space-8); } }
@media (min-width: 1200px) { .z-contact { grid-template-columns: repeat(4, 1fr); } }

/* ---------- game page ---------- */
.z-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: var(--space-4);
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); transition: color .2s;
}
.z-back::before { content: "←"; font-family: var(--font-sans); font-size: 16px; letter-spacing: 0; transition: transform .2s; }
.z-back:hover { color: var(--toxic); }
.z-back:hover::before { transform: translateX(-3px); }

.z-gamehero { position: relative; padding: clamp(16px, 3vw, 40px) 0 var(--section-bottom); }
.z-gamehero.z-glowgrid::before, .z-gamehero.z-glowgrid::after { inset: 0; }
.z-gamehero__grid { display: grid; gap: 28px; align-items: center; }
.z-gamehero__art { order: -1; display: block; overflow: hidden; background: var(--night-800); }
.z-gamehero__art img { width: 100%; height: auto; }
.z-gamehero__copy { display: flex; flex-direction: column; gap: 20px; }
.z-gamehero__copy .z-lead { max-width: 44ch; }
.z-gamehero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 519px) { .z-gamehero__actions .z-btn { flex: 1 1 100%; } }
@media (min-width: 960px) {
  .z-gamehero__grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); }
  .z-gamehero__art { order: 0; max-width: 480px; justify-self: end; width: 100%; }
  /* a 2:3 poster is taller than Nighthold's 748×896 capsule: narrow it so both heroes stand ~575px tall */
  .z-gamehero__art--poster { max-width: 384px; }
  /* landscape key art (no vertical capsule): the art takes the wider column */
  .z-gamehero--wide .z-gamehero__grid { grid-template-columns: 5fr 7fr; gap: var(--space-12); }
  .z-gamehero--wide .z-gamehero__art { max-width: none; }
}

/* trailer: a poster that turns into the YouTube player on click (outside the design-system preview) */
.z-video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-800); }
.z-video img, .z-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.z-video::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, transparent 30%, rgba(10, 15, 28, 0.55)); pointer-events: none; transition: opacity .3s; }
.z-video__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--toxic); color: var(--on-toxic);
  transition: transform .25s, background-color .25s;
}
.z-video__play svg { width: 42%; height: 42%; margin-left: 6%; }
.z-video:hover .z-video__play { transform: translate(-50%, -50%) scale(1.08); background: var(--ink); }
.z-video__label { position: absolute; left: var(--space-6); bottom: var(--space-4); z-index: 1; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.z-video.is-playing::after, .z-video.is-playing .z-video__play, .z-video.is-playing .z-video__label { display: none; }

.z-split { display: grid; gap: var(--space-8); align-items: start; }
.z-prose { display: flex; flex-direction: column; gap: 20px; max-width: 62ch; }
.z-prose p:first-child { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--ink); }
.z-prose p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-muted); }

.z-panel { background: var(--night-900); padding: var(--space-6) var(--space-6) var(--space-4); }
.z-panel .z-dl { margin: 0; padding: 0; border: 0; }
.z-panel .z-dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.z-panel .z-dl div:last-child { border-bottom: 0; }
/* buttons keep their usual size inside panels, like everywhere else; full width only on phones, as in the hero */
.z-panel__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-4) 0 var(--space-2); }
@media (max-width: 519px) { .z-panel__actions .z-btn { flex: 1 1 100%; } }
@media (min-width: 960px) { .z-split { grid-template-columns: 7fr 5fr; gap: var(--space-16); } }

.z-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.z-shot { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: var(--night-800); cursor: zoom-in; }
.z-shot img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .3s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.z-shot:hover img { opacity: 1; transform: scale(1.04); }
@media (min-width: 720px) { .z-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .z-gallery { grid-template-columns: repeat(4, 1fr); } }
/* six-shot sets fill two even rows of three */
@media (min-width: 1200px) { .z-gallery--3 { grid-template-columns: repeat(3, 1fr); } }

.z-stores { display: grid; gap: var(--space-4); }
.z-store { display: flex; flex-direction: column; gap: 6px; padding: var(--space-6) var(--space-8); background: var(--night-900); transition: background-color .3s, transform .3s; }
.z-store:hover { background: var(--night-800); transform: translateY(-4px); }
.z-store__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 3.4vw, 44px); line-height: 1; text-transform: uppercase; }
.z-store__action { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--toxic); }
.z-store__action::after { content: "↗"; transition: transform .2s; }
.z-store:hover .z-store__action::after { transform: translate(2px, -2px); }
@media (min-width: 720px) { .z-stores { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .z-stores--3 { grid-template-columns: repeat(3, 1fr); } }
.z-video--inset { margin-top: var(--space-12); }
/* DLC: the spotlight card with a square key art; the art fills the card's height, cropped from the sides */
.z-spot--square .z-spot__media { aspect-ratio: 1 / 1; }
.z-spot--square .z-spot__media img { object-position: center top; }
.z-spot__note { font-size: 15px; line-height: 1.6; color: var(--ink-muted); max-width: 56ch; }
@media (min-width: 960px) {
  .z-spot--square { grid-template-columns: 5fr 7fr; grid-template-rows: auto; grid-template-areas: "media body"; }
  .z-spot--square .z-spot__media { aspect-ratio: auto; min-height: 100%; }
  .z-spot--square .z-spot__body { padding: 40px 48px; }
}
.z-gallery--inset { margin-top: var(--space-2); }

@media (min-width: 720px) { .z-contact--pair { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .z-contact--pair { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) {
  .z-games--pair > .z-game:first-child { grid-column: auto; }
  .z-games--pair > .z-game:first-child .z-game__media { aspect-ratio: 16 / 9; }
}
@media (min-width: 1200px) { .z-games--pair { grid-template-columns: repeat(2, 1fr); } }

/* ---------- legal pages ---------- */
.z-legal-hero { position: relative; padding: clamp(16px, 3vw, 40px) 0 clamp(32px, 4vw, 56px); }
.z-legal-hero .z-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.z-legal-hero .z-back { margin-bottom: 0; }
.z-legal { padding-top: 0; }
.z-legal__grid { display: grid; gap: var(--space-8); align-items: start; }
.z-toc { display: flex; flex-direction: column; gap: 12px; padding: var(--space-6); background: var(--night-900); }
.z-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; }
.z-toc li { counter-increment: toc; }
.z-toc li a { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); transition: color .2s; }
.z-toc li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; line-height: 20px; color: var(--ink-subtle); flex: none; }
.z-toc li a:hover { color: var(--toxic); }
.z-toc .z-arrow { margin-top: 4px; }
.z-legal__body { max-width: 72ch; }
.z-legal__body h2 { margin: 48px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--ink); scroll-margin-top: calc(var(--nav-h) + 24px); }
.z-legal__body h2:first-child { margin-top: 0; }
.z-legal__body h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.z-legal__body p, .z-legal__body li { font-size: 16px; line-height: 1.75; color: var(--ink-muted); }
.z-legal__body p { margin: 0 0 14px; }
.z-legal__body ul, .z-legal__body ol { margin: 0 0 14px; padding-left: 22px; }
.z-legal__body li { margin: 6px 0; }
.z-legal__body li::marker { color: var(--toxic); }
.z-legal__body strong { color: var(--ink); font-weight: 600; }
.z-legal__body a { color: var(--toxic); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.z-legal__body blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--toxic); color: var(--ink-muted); }
@media (min-width: 960px) {
  .z-legal__grid { grid-template-columns: 4fr 8fr; gap: var(--space-16); }
  .z-toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; }
}

/* 404 */
.z-notfound { min-height: 62vh; display: flex; align-items: center; }
.z-notfound .z-lead { max-width: 46ch; }

/* ---------- lightbox ---------- */
.z-lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 56px 16px 72px;
  background: rgba(5, 8, 15, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.z-lightbox[hidden] { display: none; }
.z-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(100%, 1600px); }
.z-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; box-shadow: var(--shadow-card); }
.z-lightbox__close, .z-lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; cursor: pointer;
  background: var(--night-700); color: var(--ink); transition: background-color .2s, color .2s;
}
.z-lightbox__close:hover, .z-lightbox__nav:hover { background: var(--toxic); color: var(--on-toxic); }
.z-lightbox__close svg, .z-lightbox__nav svg { width: 24px; height: 24px; }
.z-lightbox__close { top: 12px; right: 12px; }
.z-lightbox__nav { bottom: 16px; }
.z-lightbox__nav--prev { left: calc(50% - 60px); }
.z-lightbox__nav--next { right: calc(50% - 60px); }
@media (min-width: 720px) {
  .z-lightbox { padding: 64px 88px; }
  .z-lightbox__nav { bottom: auto; top: 50%; transform: translateY(-50%); }
  .z-lightbox__nav--prev { left: 20px; }
  .z-lightbox__nav--next { right: 20px; }
}
html.z-lock, html.z-lock body { overflow: hidden; }

/* ---------- footer ---------- */
.z-footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.z-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.z-footer__brand { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-muted); }
.z-footer__brand img { height: 32px; width: auto; }
.z-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.z-footer__links a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; color: var(--ink-muted); transition: color .2s; }
.z-footer__links a:hover { color: var(--toxic); }

@media (prefers-reduced-motion: reduce) {
  .z-page *, .z-page *::before, .z-page *::after { animation: none !important; transition: none !important; }
}
