/* Lazy Friday Studio - global stylesheet.
   Everything shared by every page lives here. Page-specific rules go in
   that page's own folder only when they cannot be generalised.
   Breakpoints, here and in every page stylesheet: max-width 1080px, 820px and 560px. */

:root {
  --bg: #141414;
  --panel: #181818;
  --panel-2: #1f1f1f;
  --line: #2c2c2c;
  --line-strong: #3a3a3a;
  --text: #f2f2f3;
  --muted: rgb(var(--text-rgb) / 0.75);
  --faint: rgb(var(--text-rgb) / 0.5);
  --accent: #e07f2c;
  --accent-hi: #f0913c;
  --blue: #2c8de0;
  --green: #2ce07f;
  /* the same colours as channels, for tints: rgb(var(--text-rgb) / 0.72) */
  --text-rgb: 242 242 243;
  --accent-rgb: 224 127 44;
  --bg-rgb: 20 20 20;
  /* content width and side padding; a themed page sets its own on its root element */
  --shell: 1360px;
  --gutter: clamp(18px, 4vw, 56px);
  --section-y: clamp(28px, 3.4vw, 44px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-fast: 200ms;
  --dur-base: 300ms;
  --dur-slow: 700ms;
  /* spacing scale for margins, padding and gaps */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  /* type: heading sizes, largest first (studio sections; subheadings and card titles;
     sections on game, software and tool pages), small uppercase labels, running text */
  --fs-heading-1: clamp(28px, 4.4vw, 54px);
  --fs-heading-2: clamp(24px, 3.4vw, 42px);
  --fs-heading-3: clamp(22px, 2.8vw, 34px);
  --fs-label: 11px;
  --ls-label: 0.2em;
  --lh-copy: 1.6;
  --radius: 2px;
  /* shadows by height: resting, lifted, raised */
  --shadow-1: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-2: 0 8px 20px rgba(0,0,0,0.45);
  --shadow-3: 0 18px 34px rgba(0,0,0,0.42);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
/* dark-only: native scrollbars and controls follow. The ground colour goes on body only: the
   browser extends body's background to the whole canvas, but a background on html stops that,
   and body then paints over the dots field, which sits behind the page at z-index -1. */
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 400; line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
img { border-style: none; }
/* browsers give buttons their own small system font */
button { font: inherit; }
a { color: var(--accent); }
a:is(:hover, :focus-visible) { color: var(--accent-hi); }
::selection { background: rgb(var(--accent-rgb) / 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── layout helpers ─────────────────────────────────────────────── */
.page { position: relative; z-index: 1; min-height: 100vh; background: transparent; }
.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { border-top: 1px solid var(--line); }
/* the hero already fades out into the page, so it needs no rule under it */
.hero + .section { border-top: 0; }
.section--tint { background: rgba(255,255,255,0.03); }
.section > .shell { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* in the document outline for screen readers and search engines, never drawn */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ── buttons ────────────────────────────────────────────────────── */
/* A themed page recolours buttons by setting these on an ancestor rather than
   restyling .btn: --btn-bg (resting fill), --btn-glow-rgb (hover glow, as
   "r g b"), and for .btn--primary --btn-from/--btn-to (gradient), --btn-hover
   (lighter end on hover) and --btn-ink (text). Unset, they fall back to the
   site's orange. */
.btn {
  position: relative; overflow: hidden; display: inline-block;
  background: linear-gradient(to top right, rgb(var(--bg-rgb) / 0.6), rgb(var(--bg-rgb) / 0.4)), var(--btn-bg, #2a2a2a);
  border: 1px solid rgb(var(--text-rgb) / 0.1); color: var(--text);
  border-radius: var(--radius); padding: 10px 18px; font: inherit; font-size: 13px;
  letter-spacing: 0.1em; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) ease,
              border-color var(--dur-base) ease, background var(--dur-base) ease, color var(--dur-base) ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--btn-glow-rgb, var(--accent-rgb)) / 0.28), transparent);
  transform: translateX(-100%); transition: transform var(--dur-slow) var(--ease);
}
.btn:is(:hover, :focus-visible) {
  transform: scale(1.06); border-color: rgb(var(--btn-glow-rgb, var(--accent-rgb)) / 0.5); color: var(--text);
  background: linear-gradient(to top right, rgb(var(--btn-glow-rgb, var(--accent-rgb)) / 0.12), rgb(var(--bg-rgb) / 0.4)), var(--btn-bg, #2a2a2a);
  box-shadow: 0 10px 28px rgb(var(--btn-glow-rgb, var(--accent-rgb)) / 0.22);
}
.btn:is(:hover, :focus-visible)::after { transform: translateX(100%); }
.btn:active { transform: scale(0.96); box-shadow: var(--shadow-1); }
.btn--primary {
  background: linear-gradient(to top right, var(--btn-from, var(--accent)), var(--btn-to, var(--accent-hi)));
  border-color: rgb(var(--btn-glow-rgb, var(--accent-rgb)) / 0.6); color: var(--btn-ink, var(--bg));
}
.btn--primary::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); }
.btn--primary:is(:hover, :focus-visible) {
  background: linear-gradient(to top right, var(--btn-to, var(--accent-hi)), var(--btn-hover, #ffa552));
  border-color: var(--btn-to, var(--accent-hi)); color: var(--btn-ink, var(--bg));
  box-shadow: 0 10px 28px rgb(var(--btn-glow-rgb, var(--accent-rgb)) / 0.4);
}
.btn--lg { padding: 13px 24px; font-size: 15px; }
/* .btn sets display, which would otherwise beat the hidden attribute */
.btn[hidden] { display: none; }

/* ── site header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: var(--space-5);
  padding: var(--space-5) var(--gutter);
  background: linear-gradient(180deg, rgba(26,26,26,0.96), rgba(16,16,16,0.94));
  border-bottom: 1px solid var(--line);
  transition: padding 320ms var(--ease), background 320ms ease, box-shadow 320ms ease;
}
/* motion.js adds .is-condensed once the page has scrolled past the hero */
.site-header.is-condensed { padding-top: 12px; padding-bottom: 12px; box-shadow: var(--shadow-2); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 34%, var(--blue) 50%, var(--green) 66%, var(--green) 100%);
  background-size: 220% 100%; background-position: 0 0; opacity: 0.9;
  transition: background-position 900ms var(--ease);
}
.site-header:hover::after { background-position: 100% 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 38px; display: block; transition: width 320ms var(--ease), height 320ms var(--ease), transform 420ms var(--ease); }
.site-header.is-condensed .brand img { width: 30px; height: 30px; }
.brand span { font-weight: 600; font-size: 17px; line-height: 1.02; letter-spacing: 0.04em; text-transform: uppercase; }
.site-nav { display: flex; gap: 20px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-left: auto; }
.site-nav a { position: relative; padding: 6px 2px; font-weight: 600; text-decoration: none; color: rgb(var(--text-rgb) / 0.75); transition: color var(--dur-fast) ease; }
.site-nav a:is(:hover, :focus-visible) { color: var(--accent); }
/* a rule draws in from the left under the hovered or focused link */
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-base) var(--ease); }
.site-nav a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--accent); }
.site-nav a.is-active::before {
  content: ""; position: absolute; left: 50%; top: -2px; width: 4px; height: 4px;
  margin-left: -2px; border-radius: 50%; background: var(--accent);
}
/* Narrow screens: the nav takes its own row under the brand instead of pushing
   every page wider than the screen, and wraps rather than overflows if it must. */
@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; gap: 8px 20px; padding-top: 14px; padding-bottom: 10px; }
  .site-header.is-condensed { padding-top: 8px; padding-bottom: 6px; }
  .site-nav { width: 100%; margin-left: 0; justify-content: space-between; flex-wrap: wrap;
    gap: 2px 8px; font-size: 12px; letter-spacing: 0.08em; }
}

/* ── page header band (Games / Mods / Tools / Software) ─────────── */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #161616; }
.page-head__field { position: absolute; inset: 0; background: var(--accent); clip-path: polygon(0 0, 57.75% 0, 45.75% 100%, 0 100%); }
.page-head__bars {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(108deg, rgb(var(--accent-rgb) / 0.5) 0 10px, transparent 10px 30px);
  -webkit-mask-image: linear-gradient(90deg, transparent 51.75%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 51.75%, #000 100%);
}
.page-head__row {
  position: relative; max-width: var(--shell); margin: 0 auto;
  padding: clamp(34px,4.6vw,70px) var(--gutter);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,0.66fr);
  gap: clamp(20px,3vw,64px); align-items: end;
}
.page-head h1 { font-size: clamp(42px,7.4vw,102px); line-height: 0.82; text-transform: uppercase; color: var(--bg); }
.page-head p { margin-bottom: 6px; font-size: 16px; line-height: var(--lh-copy); color: var(--muted); }
@media (max-width: 820px) { .page-head__row { grid-template-columns: 1fr; } }

/* ── section headings ───────────────────────────────────────────── */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-5); }
.section-head h2 { font-size: var(--fs-heading-1); text-transform: uppercase; color: #fff; }
/* a smaller heading for a section inside a page that already has its own */
.section-head--sub h2 { font-size: var(--fs-heading-2); }

/* ── tiles ──────────────────────────────────────────────────────── */
.tile-grid { display: grid; gap: clamp(14px,2vw,22px); grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 820px) { .tile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; border: 1px solid var(--line-strong); background: var(--panel); text-decoration: none; color: inherit; }
.tile__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
/* Logo tiles: the mark sits centred on the panel rather than bleeding to the
   edges, because .fill's object-fit:cover would crop a wordmark to pieces
   inside the 16/9 frame. The wash and label still work as on any other tile.
   The row is minmax(0,1fr) rather than auto: an auto track takes the image's
   full intrinsic height, and the max-height below - a percentage of the grid
   area - then resolves against that overflowing track instead of the 16/9
   frame, so it never clamps and overflow:hidden lops the bottom off the logo.
   1fr of a definite height is definite, so the clamp lands. */
.tile__art--logo { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr);
  place-items: center; padding: clamp(18px,3vw,34px); background: var(--panel-2); }
.tile__art--logo > img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.tile__art--logo > .tile__ph { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--faint); text-align: center; }
/* the name is not printed on the thumbnail - it rises in on hover */
.tile__wash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  /* dark enough under the label for the small accent cue to pass contrast over bright art */
  background: linear-gradient(0deg, rgba(12,12,12,0.92) 0%, rgba(12,12,12,0.82) 22%, rgba(12,12,12,0.45) 42%, rgba(12,12,12,0) 66%);
  transition: opacity 420ms var(--ease);
}
.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  /* lives inside .tile__art, which clips the slide-in */
  display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap;
  padding: 16px 20px; opacity: 0; transform: translate3d(0,12px,0);
  transition: opacity 380ms var(--ease), transform 460ms var(--ease);
}
.tile__label span {
  font-size: clamp(17px,1.6vw,23px); line-height: 1.1; font-weight: 700;
  text-transform: uppercase; color: #fff; min-width: 0;
}
.tile__label em {
  font-style: normal; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--accent); white-space: nowrap; flex: none;
  opacity: 0; transform: translate3d(-6px,0,0);
  transition: opacity 340ms var(--ease) 90ms, transform 420ms var(--ease) 90ms;
}
.tile:hover .tile__wash, .tile:focus-visible .tile__wash { opacity: 1; }
.tile:hover .tile__label, .tile:focus-visible .tile__label { opacity: 1; transform: translate3d(0,0,0); }
.tile:hover .tile__label em, .tile:focus-visible .tile__label em { opacity: 1; transform: translate3d(0,0,0); }

/* ── skill chips ────────────────────────────────────────────────── */
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-strong); background: var(--panel-2);
  padding: 11px 15px; display: flex; align-items: center; justify-content: center;
  min-width: 52px; font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  color: rgb(var(--text-rgb) / 0.82);
}
.chip img { width: 22px; height: 22px; display: block; opacity: 0.82; }

/* ── studio intro (home and about) ──────────────────────────────── */
.intro-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 10px; align-items: stretch; }
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; } }
/* on /about/ the intro opens the page rather than sitting in a .section */
.intro-grid--page { padding-top: clamp(34px,5vw,76px); padding-bottom: clamp(28px,3.4vw,44px); }
.intro__title { margin-bottom: 14px; font-size: var(--fs-heading-1); line-height: 0.96; text-transform: uppercase; color: #fff; }
.intro__text { margin-bottom: var(--space-3); color: rgb(var(--text-rgb) / 0.78); }
.intro__text:last-of-type { margin-bottom: 0; }
.intro__facts { display: flex; gap: clamp(24px,4vw,48px); flex-wrap: wrap; align-items: flex-start;
  margin-top: clamp(26px,3.4vw,42px); padding-top: clamp(22px,2.8vw,32px); border-top: 1px solid var(--line); }
.intro__stat { flex: none; }
.intro__stat-value { font-size: clamp(30px,4vw,46px); line-height: 1; font-weight: 700; color: var(--accent); }
.intro__stat-label, .intro__skills-label { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--faint); }
.intro__stat-label { margin-top: 6px; }
.intro__skills { flex: 1; min-width: min(220px, 100%); }
.intro__skills-label { margin-bottom: var(--space-3); }

/* ── portrait ───────────────────────────────────────────────────── */
.portrait { position: relative; overflow: visible; border: 1px solid var(--line); margin: 0 0 0 auto; width: 100%; max-width: 340px; display: flex; flex-direction: column; }
/* fills its grid column instead of stopping at 340px */
.portrait--fill { max-width: none; }
.portrait__inner { position: relative; flex: 1; min-height: 450px; overflow: hidden; }
.portrait__img { position: absolute; inset: 0; transition: transform 900ms var(--ease), filter var(--dur-slow) ease; }
.portrait__wash { position: absolute; inset: 0; pointer-events: none; opacity: 0.85; transition: opacity var(--dur-slow) ease;
  background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0) 40%, rgb(var(--bg-rgb) / 0.55) 100%); }
.portrait__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; display: flex; align-items: baseline; gap: 10px;
  transform: translate3d(0,14px,0); opacity: 0; pointer-events: none;
  transition: transform 640ms var(--ease), opacity 640ms ease; }
.portrait__caption b { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: #fff; }
.portrait__caption i { font-style: normal; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent); }

/* ── eyebrow, promo row and link card ───────────────────────────── */
/* the small uppercase kicker above a heading */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent); }
/* a text column beside a tile (home: Lazy Project Manager) */
.promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%),1fr)); gap: clamp(24px,4vw,60px); align-items: center; }
.promo__title { margin: 10px 0 12px; font-size: var(--fs-heading-2); text-transform: uppercase; color: #fff; }
.promo__text { max-width: 46ch; color: var(--muted); }
.promo__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }
/* a whole-row link with an icon, a few lines of text and a button-styled cue (about: GitHub) */
.link-card { display: flex; align-items: center; gap: clamp(20px,3vw,40px); flex-wrap: wrap; padding: clamp(24px,3.2vw,44px); }
.link-card__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 96px; height: 96px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); }
.link-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; }
.link-card__title { font-size: var(--fs-heading-2); font-weight: 700; text-transform: uppercase; color: #fff; }
.link-card__text { max-width: 52ch; font-size: 15px; color: rgb(var(--text-rgb) / 0.7); }
.link-card__btn { flex: none; }

/* ── game pages ─────────────────────────────────────────────────── */
/* Parts the Onslaught, Shapey Wave and Aetherscend pages share. Each page themes
   them from its body:has() block: --game-line (row rules), --game-line-hot
   (frames), --game-panel (card ground), --game-accent and --game-accent-alt
   (labels, corner marks and requirement tiers) and --game-text-rgb (spec and
   requirement text, as "r g b"). */
/* width and side padding come from the page's own --shell and --gutter, set on its root (.oaa, .swv),
   so the site header and footer keep the site values */
.game-shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
/* the trailer or showcase frame; no overflow:hidden, or the corner marks on its border are clipped */
.game-video { position: relative; margin-top: clamp(26px,3.4vw,44px); aspect-ratio: 16 / 9;
  border: 1px solid var(--game-line-hot, var(--line-strong)); background: #000; }
.game-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* corner registration marks on a framed video or card, echoing a game HUD */
.reg-mark { position: absolute; z-index: 3; width: 14px; height: 14px; pointer-events: none;
  border: 1px solid var(--game-accent, var(--accent)); opacity: 0.9; }
.reg-mark--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.reg-mark--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.reg-mark--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.reg-mark--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
/* the price (or play) card and the blurb, side by side under the video */
.game-under { display: grid; grid-template-columns: minmax(300px,0.72fr) minmax(0,1fr);
  gap: clamp(16px,2vw,26px); align-items: stretch; margin-top: clamp(24px,3vw,40px); }
@media (max-width: 820px) { .game-under { grid-template-columns: 1fr; } }
.game-card, .game-blurb { position: relative; padding: clamp(22px,2.6vw,32px) clamp(20px,2.4vw,30px);
  border: 1px solid var(--game-line-hot, var(--line-strong)); background: var(--game-panel, var(--panel)); }
.game-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.game-card__label { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--game-accent, var(--accent)); }
.game-card__price { font-size: clamp(34px,4.6vw,52px); line-height: 1; font-weight: 700; letter-spacing: 0.01em; color: #fff; }
.game-card__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; margin-top: 6px; font-size: clamp(14px,1.3vw,16px); }
.game-card__btn svg { flex: none; transform: translateY(-1px); }
.game-blurb { display: flex; align-items: center; }
.game-blurb p { font-size: clamp(15px,1.45vw,17px); line-height: var(--lh-copy); color: rgb(var(--text-rgb) / 0.8); }
/* details and system requirements, from assets/partials/game-details.php */
.game-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px,100%),1fr));
  gap: clamp(26px,4vw,60px); align-items: start; }
.game-details__title { margin-bottom: 34px; font-size: var(--fs-heading-3); text-transform: uppercase; color: #fff; }
.specs { margin: 0; }
/* the same 9px padding as .reqs__item, so a details row and a requirement row are the same height
   and their dividers line up across the two columns */
.specs__row { display: flex; gap: var(--space-4); padding: 9px 0; border-bottom: 1px solid var(--game-line, var(--line)); }
/* wide enough to keep the longest label in use ("Progression", 96px) on one line */
.specs__label { flex: none; width: 108px; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: rgb(var(--game-text-rgb, 242 242 243) / 0.55); }
.specs__value { margin: 0; font-size: 14px; color: rgb(var(--game-text-rgb, 242 242 243) / 0.86); }
/* 300px keeps long requirement lines on one row: Minimum and Recommended sit side by side only where
   the column has room, as on Aetherscend, and stack on Onslaught and Shapey Wave */
.reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%),1fr)); gap: clamp(20px,2.6vw,34px); }
/* the small label above the details rows matches the requirement tiers beside them */
.specs__heading, .reqs__tier { margin-bottom: var(--space-2); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--game-accent, var(--accent)); }
.reqs__tier--rec { color: var(--game-accent-alt, var(--blue)); }
.reqs__list { margin: 0; padding: 0; list-style: none; }
.reqs__item { padding: 9px 0; border-bottom: 1px solid var(--game-line, var(--line));
  font-size: 14px; line-height: 1.5; color: rgb(var(--game-text-rgb, 242 242 243) / 0.74); text-wrap: pretty; }
.reqs__foot { margin-top: var(--space-4); font-size: 13px; line-height: var(--lh-copy); color: rgb(var(--game-text-rgb, 242 242 243) / 0.6); }

/* ── footer ─────────────────────────────────────────────────────── */
/* z-index clears .page (z-index:1). Without it any page with a fixed overlay
   inside .page paints that overlay across the whole footer. Five page style
   blocks each carried their own copy of this before. */
/* a themed page sets --footer-from/--footer-to so the footer continues its own ground */
.site-footer { position: relative; z-index: 3; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--footer-from, var(--panel)), var(--footer-to, #111111)); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: 0.9;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--green)); }
.brand--footer img { width: 42px; height: 42px; }
.brand--footer span { font-size: 19px; font-weight: 700; letter-spacing: 0.05em; }
.site-footer__cols { max-width: var(--shell); margin: 0 auto; padding: clamp(32px,4vw,56px) var(--gutter) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: clamp(24px,4vw,56px); align-items: start; }
.site-footer__blurb { max-width: 34ch; font-size: 14px; line-height: var(--lh-copy); color: rgb(var(--text-rgb) / 0.6); }
.foot-col { display: flex; flex-direction: column; gap: var(--space-3); }
/* each column title takes its colour from --c on the element */
.foot-col__title { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c, var(--accent)); }
.foot-nav { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.foot-nav__link { text-decoration: none; color: rgb(var(--text-rgb) / 0.78); }
.foot-nav__link:is(:hover, :focus-visible) { color: var(--accent-hi); }
.socials { display: flex; gap: var(--space-2); flex-wrap: wrap; }
/* each link carries its brand colour as --c; the border and fill are tints of it */
.socials__link {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-base) ease, filter var(--dur-fast) ease;
}
.socials__link::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: translateX(-100%); transition: transform var(--dur-slow) var(--ease); }
/* colour restated so the site-wide a:hover colour does not replace the brand's */
.socials__link:is(:hover, :focus-visible) { color: var(--c); transform: scale(1.12) rotate(3deg); filter: brightness(1.3); box-shadow: var(--shadow-2); }
.socials__link:is(:hover, :focus-visible)::after { transform: translateX(100%); }
.socials__link:active { transform: scale(0.94) rotate(0deg); }
.site-footer__base { max-width: var(--shell); margin: clamp(28px,3.4vw,44px) auto 0; padding: 16px var(--gutter);
  border-top: 1px solid #242424; display: flex; gap: 14px var(--space-5); flex-wrap: wrap; align-items: center; }
.site-footer__base span { font-size: 11px; letter-spacing: 0.06em; color: var(--faint); }
.site-footer__base span + span { margin-left: auto; }

/* ── error pages ────────────────────────────────────────────────── */
.error { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error__body { max-width: 52ch; padding: clamp(40px,7vw,110px) var(--gutter); }
.error__code { font-size: clamp(72px,16vw,200px); line-height: 0.82; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.error__title { margin-top: clamp(14px,2vw,22px); font-size: var(--fs-heading-2); text-transform: uppercase; color: #fff; }
.error__body p { margin: 14px auto 0; max-width: 44ch; font-size: 16px; line-height: var(--lh-copy); color: var(--muted); }
.error__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; margin-top: clamp(22px,3vw,34px); }

/* ── home hero ──────────────────────────────────────────────────── */
.hero { position: relative; height: min(88vh + 100px, 920px); overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-slow) ease; }
.hero__slide.is-on { opacity: 1; }
.hero__slide > div { position: absolute; inset: 0; animation: lfsFloat 22s ease-in-out infinite; }
.hero__scrim-a { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(var(--bg-rgb) / 0.95) 0%, rgb(var(--bg-rgb) / 0.72) 42%, rgb(var(--bg-rgb) / 0.15) 75%, rgb(var(--bg-rgb) / 0.5) 100%); }
.hero__scrim-b { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 2%, rgb(var(--bg-rgb) / 0) calc(45% + 50px)); }
.hero__body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(22px,4vw,64px); gap: var(--space-4); pointer-events: none; }
.hero__body > * { pointer-events: auto; }
.hero__kicker { display: flex; align-items: center; gap: 10px; }
.hero__kicker span { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: rgb(var(--text-rgb) / 0.7); }
.hero p { max-width: 50ch; font-size: clamp(15px,1.5vw,19px); line-height: var(--lh-copy); color: rgb(var(--text-rgb) / 0.8); }
/* The rotating game name. Deliberately not the page's h1: that names the studio. */
.hero .hero__title { max-width: none; font-size: clamp(48px,10vw,150px); font-weight: 700; line-height: 0.86; letter-spacing: -0.02em; text-transform: uppercase; color: #fff; text-wrap: balance; }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: 6px; }
.hero__picker { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hero__picker .btn { border-color: var(--line); color: rgb(var(--text-rgb) / 0.7); background: transparent; font-size: 12px; letter-spacing: 0.08em; padding: 8px 14px; }
/* the selected slide: an underline as well as colour, so the
   state is not carried by colour alone */
.hero__picker .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: rgb(var(--accent-rgb) / 0.16); box-shadow: inset 0 -2px 0 var(--accent); }

@keyframes lfsFloat { 0%,100% { transform: scale(1.04) translate3d(0,0,0); } 50% { transform: scale(1.09) translate3d(-1%,-1%,0); } }

/* ── heading rule (motion.js adds one to every h2 and [data-rule]) ── */
/* a themed page sets --rule-color; otherwise it is the accent */
.heading-rule { display: block; width: 0; height: 2px; margin-top: 14px; background: var(--rule-color, var(--accent)); transition: width 760ms var(--ease); }
.heading-rule.is-drawn { width: 64px; }

/* ── screenshot lightbox (assets/js/lightbox.js builds the overlay) ─ */
[data-shot] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 28px; background: rgba(8,10,12,0.95); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
/* a page tints the frame with --lightbox-accent; the site accent otherwise */
.lightbox__img { display: block; max-width: min(1600px, 100%); max-height: 100%; object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--lightbox-accent, var(--accent)) 45%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── page opt-ins ───────────────────────────────────────────────── */
/* Art-directed pages set these on their .page element rather than each
   restating the same body:has() rules in its own <style> block.

   .page--chromeless  header floats transparent over the art, no nav
   .page--no-dots     page draws its own background, so hide the shared field

   Scroll reveals need no opt-in: motion.js hides and shows [data-reveal] with
   inline styles, so a browser without JS still sees every element. */
body:has(.page--chromeless) .site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  background: transparent; border-bottom: 0;
}
body:has(.page--chromeless) .site-header::after { display: none; }
body:has(.page--chromeless) .site-nav { display: none; }
body:has(.page--chromeless) .site-header,
body:has(.page--chromeless) .site-header.is-condensed {
  padding-top: var(--space-5); padding-bottom: var(--space-5); background: transparent;
  box-shadow: none; transition: none;
}
body:has(.page--chromeless) .site-header .brand img { width: 38px; height: 38px; }
/* the transparent header can sit over bright art: a dark halo keeps the focus ring visible */
body:has(.page--chromeless) .brand:focus-visible { box-shadow: 0 0 0 6px rgb(var(--bg-rgb) / 0.85); }

body:has(.page--no-dots) dots-field { display: none; }
