/* bigfield.games – design system
   Studio shell: calm, dark, cinematic. Each game page re-skins it through [data-game] tokens. */

/* ---------- Fonts (self-hosted, Latin subsets, SIL OFL) ---------- */
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(../fonts/cinzel-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-medium-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Oswald"; src: url(../fonts/oswald-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(../fonts/source-serif-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/source-sans-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(../fonts/nunito-var.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Alegreya SC"; src: url(../fonts/alegreya-sc-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url(../fonts/alegreya-var.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url(../fonts/courier-prime-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url(../fonts/courier-prime-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0e13;
  --bg-raised: #11161d;
  --surface: #151b23;
  --line: rgba(236, 231, 222, .1);
  --line-strong: rgba(236, 231, 222, .2);
  --text: #ece7de;
  --muted: #a7b0ba;
  --accent: #d4b27a;
  --accent-ink: #1a1408;
  --game-bg: var(--bg);

  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", system-ui, sans-serif;
  --display-weight: 780;
  --display-stretch: 112%;
  --display-case: none;
  --display-track: -.015em;
  --display-leading: 1.02;
  --label: "Archivo", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}

[data-game="aurialis"] {
  /* Palette and type of the original Aurialis site: dark petrol, cream, gold; Alegreya for narration. */
  --accent: #e6b95f; --accent-2: #f4d99b; --accent-ink: #1d1407; --game-bg: #0c1b21;
  --surface: #11262c; --line: rgba(214, 186, 123, .2); --line-strong: rgba(214, 186, 123, .38);
  --text: #f4eed9; --muted: #b1bcb8;
  --display: "Alegreya", Georgia, serif; --display-weight: 500; --display-stretch: 100%;
  --display-track: -.005em; --display-leading: 1.08;
}
[data-game="badlife"] {
  --accent: #e8463c; --accent-ink: #ffffff; --game-bg: #0d0b0a;
  --display: "Oswald", "Archivo", sans-serif; --display-weight: 700; --display-stretch: 100%;
  --display-case: uppercase; --display-track: .01em; --display-leading: 1;
}
[data-game="beneath-mercy"] {
  --accent: #d9c49a; --accent-ink: #1a1408; --game-bg: #0c0a0f;
  --display: "Cinzel", Georgia, serif; --display-weight: 600; --display-stretch: 100%;
  --display-track: .03em; --display-leading: 1.12;
}
[data-game="gnadenturm"] {
  --accent: #e09a3e; --accent-ink: #1a1006; --game-bg: #080706;
  --display: "Cinzel", Georgia, serif; --display-weight: 600; --display-stretch: 100%;
  --display-track: .03em; --display-leading: 1.12;
}
[data-game="funkelwind"] {
  --accent: #f5c65b; --accent-ink: #1d1606; --game-bg: #0a1716;
  --display: "Nunito", system-ui, sans-serif; --display-weight: 900; --display-stretch: 100%;
  --display-track: -.01em; --display-leading: 1.04; --radius: 26px; --radius-sm: 16px;
}
[data-game="ai-world-manager"] {
  --accent: #3fd0e0; --accent-ink: #03181b; --game-bg: #070c14;
  --display: "Source Sans 3", system-ui, sans-serif; --display-weight: 600; --display-stretch: 100%;
  --display-track: -.015em; --display-leading: 1.02;
}
[data-game="real-world"] {
  --accent: #d2a85c; --accent-ink: #1a1306; --game-bg: #0e0c09;
  --display: "Alegreya SC", Georgia, serif; --display-weight: 500; --display-stretch: 100%;
  --display-track: .02em; --display-leading: 1.06;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--game-bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
img[style*="--pos"] { object-position: var(--pos); }
@media (max-width: 700px) { img[style*="--pos"] { object-position: var(--pos-m, var(--pos)); } }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.display {
  font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  text-transform: var(--display-case); letter-spacing: var(--display-track); line-height: var(--display-leading);
  font-size: clamp(2rem, 4.2vw, 3.6rem); text-wrap: balance;
}
.display--lg { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.display--xl { font-size: clamp(2.6rem, 7.5vw, 7rem); }
.eyebrow {
  font: 600 .75rem/1.3 var(--label); font-stretch: 105%; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.lead { font-size: clamp(1.125rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--text); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); margin: 0; font-size: 1.125rem; }

/* ---------- Buttons, chips, labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 650 .9rem/1 var(--label); font-stretch: 105%; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { color: var(--accent-ink); transform: translateY(-2px); filter: brightness(1.06); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(11, 14, 19, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); font: 600 .72rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  background: rgba(11, 14, 19, .45);
}
.chip--accent { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); }

.media-label {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; pointer-events: none;
  padding: 4px 8px; border-radius: 6px; background: rgba(6, 8, 11, .68); backdrop-filter: blur(4px);
  font: 600 .66rem/1.2 var(--label); letter-spacing: .08em; text-transform: uppercase; color: #d8d3ca;
}
.media-label--inline { position: static; display: inline-block; }

.todo { color: var(--muted); font-style: italic; }

/* ---------- Header & menu ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .35s, box-shadow .35s; }
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px; pointer-events: none;
  background: linear-gradient(rgba(5, 7, 10, .7), rgba(5, 7, 10, 0)); transition: opacity .35s;
}
.site-header.is-solid, .page-plain .site-header, .site-header.is-open {
  background: rgba(10, 13, 18, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid::before, .page-plain .site-header::before, .site-header.is-open::before { opacity: 0; }
.site-header__bar { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__word { font: 800 1.45rem/1 "Archivo", sans-serif; font-stretch: 115%; letter-spacing: -.03em; }
.brand__sub { font: 600 .56rem/1 "Archivo", sans-serif; letter-spacing: .52em; text-transform: uppercase; color: var(--accent); margin-top: 4px; padding-left: 1px; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: clamp(18px, 3vw, 40px); padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 30px; padding: 0 10px; border-radius: 999px;
  font: 600 .72rem/1 var(--label); letter-spacing: .12em; text-decoration: none; color: var(--muted); transition: color .2s, background-color .2s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }
.site-nav a, .site-nav__burger {
  font: 600 .82rem/1 var(--label); font-stretch: 105%; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
}
.site-nav a:hover, .site-nav a[aria-expanded="true"] { color: var(--accent); }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
[aria-expanded="true"] .caret { transform: translateY(2px) rotate(-135deg); }
.site-nav__burger { display: none; }
.burger { position: relative; width: 22px; height: 2px; background: currentColor; transition: background-color .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.site-nav__burger[aria-expanded="true"] .burger { background: transparent; }
.site-nav__burger[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.site-nav__burger[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

.site-menu { position: absolute; inset: 100% 0 auto; background: #0a0d12; border-top: 1px solid var(--line); box-shadow: var(--shadow); padding-block: 28px 36px; max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
.site-menu[hidden] { display: none; }
.site-menu__games { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.site-menu__games a { display: grid; gap: 10px; text-decoration: none; }
.site-menu__games img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s; }
.site-menu__games a:hover img { transform: translateY(-3px); border-color: var(--accent); }
.site-menu__games strong { display: block; font: 700 .95rem/1.2 var(--label); }
.site-menu__games small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.site-menu__links { display: none; }

@media (max-width: 1100px) {
  .site-menu__games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .lang-switch { margin-left: auto; margin-right: 18px; }
  .site-nav__burger { display: inline-flex; }
  .site-menu { min-height: calc(100svh - var(--header-h)); }
  .site-menu__games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-menu__links { display: grid; gap: 4px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
  .site-menu__links a { display: block; padding: 10px 0; font: 600 1rem/1.2 var(--label); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
}

.page-plain main { padding-top: var(--header-h); }

/* ---------- Game select (home intro) ---------- */
/* All games side by side as slanted panels: equal at rest, the hovered, focused or tapped one widens.
   Phones stack them as slanted strips. Everything stays visible if animations never run. */
.select {
  --s: clamp(28px, 3.2vw, 56px); /* slant of the panel edges */
  --g: 6px;                      /* dark seam between panels */
  --grow: 3;
  --calm: cubic-bezier(.45, .05, .2, 1); /* soft in, long settle */
  position: relative; display: flex; flex-direction: column; height: 100svh; min-height: 640px; max-height: 1120px;
  overflow: hidden; isolation: isolate; background: #05070a;
}
.select__track { position: relative; flex: 1; min-height: 0; display: flex; margin-inline: calc(var(--s) / -2); }
.select__panel {
  position: relative; flex: 1 1 0; min-width: 0; margin-left: calc(var(--g) - var(--s)); overflow: hidden;
  clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%);
  background: var(--game-bg); color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: flex-grow 1.15s var(--calm);
  contain: layout paint;
}
.select__panel:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
.select__panel:last-child { clip-path: polygon(var(--s) 0, 100% 0, 100% 100%, 0 100%); }
.select__panel:hover { color: var(--text); }
.select__panel:focus-visible { outline: none; }
.select__panel.is-active, html:not(.js) .select__panel:is(:hover, :focus-visible) { flex-grow: var(--grow); }

/* The art keeps one size while panels open and close: it spans the full image at panel height with the
   focal point (pulled slightly towards the middle, as object-position frames a narrow crop) on the panel's
   centre line, so a resize only changes the clip, never the image itself. */
.select__art { position: absolute; top: 0; bottom: 0; left: 50%; aspect-ratio: var(--ar, 16 / 9); min-width: 90vw; transform: translateX(calc(var(--fx, 50%) * -.85 - 7.5%)); }
.select__art img, .select__art .loop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-m, 50% 50%); }
.select__art img { transform: scale(1.02); transform-origin: var(--pos-m, 50% 50%); transition: transform 2.4s var(--calm); will-change: transform; }
.select__art .loop-video { opacity: 0; transition: opacity 1.2s var(--calm) .4s; }
.select__panel.is-looping .loop-video { opacity: 1; }
.select__shade, .select__shade::after { position: absolute; inset: 0; pointer-events: none; }
.select__shade {
  background:
    linear-gradient(0deg, rgba(5, 7, 10, .95) 0%, rgba(5, 7, 10, .62) 30%, rgba(5, 7, 10, 0) 58%),
    linear-gradient(180deg, rgba(5, 7, 10, .6) 0%, rgba(5, 7, 10, 0) 20%);
}
/* Closed panels dim through an overlay that only fades (no filter on the large images). */
.select__shade::after { content: ""; background: rgba(5, 7, 10, .42); opacity: 0; transition: opacity 1.1s var(--calm); }
.select__panel.is-active .select__art img { transform: scale(1.05); }
.select__track.has-active .select__panel:not(.is-active) .select__shade::after { opacity: 1; }
html:not(.js) .select__track:hover .select__panel:not(:hover) .select__shade::after { opacity: 1; }

/* Accent seam at the foot of the active panel and a single glint across it. */
.select__panel::before {
  content: ""; position: absolute; z-index: 3; inset: auto 0 0; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--calm);
}
.select__panel.is-active::before { transform: scaleX(1); }
.select__panel::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%);
}

.select__body {
  position: absolute; z-index: 2; inset: auto 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
  padding: 0 calc(var(--s) + 14px) clamp(26px, 4.5vh, 46px) 22px;
}
.select__panel:first-child .select__body { padding-left: calc(var(--s) / 2 + 22px); }
.select__meta { display: flex; align-items: baseline; gap: 10px; font: 650 .68rem/1.35 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.select__num { color: var(--text); opacity: .65; font-variant-numeric: tabular-nums; }
.select__genre { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: .12em; hyphens: auto; transition: opacity .6s var(--calm); }
.select__track.has-active .select__panel:not(.is-active) .select__genre { opacity: 0; }
.select__track.has-active .select__panel:not(.is-active) .media-label { opacity: 0; }
.select__panel .media-label { transition: opacity .6s var(--calm); }
.select__title { display: block; }
.select__title .display { font-size: clamp(1.5rem, 2.2vw, 2.4rem); }
.select__logo {
  display: block; width: auto; height: auto; max-width: 100%; max-height: clamp(46px, 7.5vh, 80px);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .7)); transition: max-height 1.15s var(--calm);
}
.select__panel.is-active .select__logo { max-height: clamp(64px, 12vh, 124px); }
.select__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 1s var(--calm), opacity .5s var(--calm); }
.select__more-inner { min-height: 0; overflow: hidden; display: grid; gap: 18px; width: min(380px, 30vw); }
.select__panel.is-active .select__more { grid-template-rows: 1fr; opacity: 1; transition-delay: .15s, .4s; }
.select__tagline { padding-top: 4px; font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.5; color: #e6e1d8; text-wrap: pretty; }
.select__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.select__panel .media-label {
  top: calc(var(--header-h) + 12px); bottom: auto; right: 14px; max-width: calc(100% - var(--s) - 20px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.select__panel:last-child .media-label { right: calc(var(--s) / 2 + 14px); }

.select__bar {
  flex: 0 0 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font: 650 .7rem/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.select__bar p { margin: 0; }
.select__hint { color: var(--accent); margin-left: .5em; }
.select__down { display: inline-flex; align-items: center; gap: .7em; min-height: 44px; color: var(--text); text-decoration: none; }
.select__down span { display: inline-block; }
.select__actions { display: flex; align-items: center; gap: 14px; }
.select__pause {
  position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer;
}
.select__pause::before, .select__pause::after { content: ""; position: absolute; top: 12px; width: 3px; height: 12px; border-radius: 1px; background: var(--text); }
.select__pause::before { left: 13px; }
.select__pause::after { left: 20px; }
.select__pause[aria-pressed="true"]::before { left: 14px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--text); }
.select__pause[aria-pressed="true"]::after { display: none; }

@media (min-width: 900px) and (max-width: 1179px) {
  .select__panel:not(.is-active) .select__genre { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .select__panel { animation: panel-in 1.4s var(--calm) backwards; animation-delay: calc(var(--i) * 85ms + 120ms); }
  .js .select__art img { animation: art-in 2.4s var(--calm) backwards; animation-delay: calc(var(--i) * 85ms + 120ms); }
  .select__panel.is-active::after { animation: glint 1.8s var(--calm) .3s; }
  .select__down span { animation: nudge 3.2s var(--calm) infinite; }
}
@keyframes panel-in { from { transform: translateY(102%); } }
@keyframes art-in { from { transform: scale(1.14); } }
@keyframes glint { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  .select__panel, .select__art img, .select__logo, .select__more, .select__panel::before, .select__shade::after { transition: none; }
}

/* Phones and narrow tablets: slanted strips stacked top to bottom; one is open and they take turns. */
@media (max-width: 899px) {
  .select { --s: 16px; --g: 5px; --grow: 4.4; height: 100svh; min-height: 700px; max-height: none; padding-top: var(--header-h); }
  .select__track { flex-direction: column; margin: 0; }
  .select__panel {
    flex: 1 1 0; min-height: 0; margin: calc(var(--g) - var(--s)) 0 0;
    clip-path: polygon(0 var(--s), 100% 0, 100% calc(100% - var(--s)), 0 100%);
  }
  .select__panel:first-child { margin-top: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s)), 0 100%); }
  .select__panel:last-child { clip-path: polygon(0 var(--s), 100% 0, 100% 100%, 0 100%); }
  /* Strips change height, so here the art keeps a fixed height around the vertical focal point. */
  .select__art { left: 0; right: 0; top: 50%; bottom: auto; height: max(64svh, 420px); min-width: 0; aspect-ratio: auto; transform: translateY(calc(var(--fy, 50%) * -1)); }
  .select__shade {
    background:
      linear-gradient(90deg, rgba(5, 7, 10, .88) 0%, rgba(5, 7, 10, .45) 55%, rgba(5, 7, 10, .15) 100%),
      linear-gradient(0deg, rgba(5, 7, 10, .7) 0%, rgba(5, 7, 10, 0) 45%);
  }
  .select__body, .select__panel:first-child .select__body { gap: 8px; padding: 0 18px 14px; }
  .select__panel.is-active .select__body { padding-bottom: 22px; }
  .select__meta { font-size: .62rem; }
  .select__panel:not(.is-active) .select__meta { display: none; }
  .select__cta .chip { display: none; }
  .select__genre { -webkit-line-clamp: 1; }
  .select__logo { max-height: 24px; max-width: min(62%, 240px); }
  .select__panel.is-active .select__logo { max-height: 66px; max-width: min(80%, 360px); }
  .select__more-inner { width: auto; gap: 14px; }
  .select__tagline { font-size: 1rem; }
  .select__panel .media-label, .select__panel:last-child .media-label { top: 8px; right: 12px; max-width: 46%; font-size: .56rem; }
  .select__track.has-active .select__panel:not(.is-active) .media-label { opacity: .7; }
  .select__bar { flex-basis: 56px; }
  .select__hint { display: none; }
}
@media (min-width: 560px) and (max-width: 899px) {
  .select__hint { display: inline; }
}

/* ---------- Home sections ---------- */
.intro { padding-bottom: clamp(32px, 5vw, 64px); }
.intro__grid { display: grid; gap: 0; max-width: 1100px; }
.intro__grid .lead { max-width: 760px; margin-top: 28px; color: #d9d4cb; }

.games__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.game-card {
  --card-accent: var(--accent);
  position: relative; grid-column: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 540px;
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); isolation: isolate;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
  transition: transform .45s var(--ease), border-color .45s;
}
.game-card--wide { grid-column: span 3; min-height: 440px; }
.game-card--full { grid-column: span 6; min-height: 440px; }
.game-card__media, .game-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-card__media img { object-fit: cover; transition: transform 1.2s var(--ease); }
.game-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 7, 10, .96) 0%, rgba(5, 7, 10, .65) 38%, rgba(5, 7, 10, 0) 72%); }
.game-card__body { position: relative; z-index: 1; display: grid; gap: 8px; padding: clamp(20px, 2.4vw, 32px); }
.game-card__body .eyebrow { margin: 0; }
.game-card__title { font: 780 clamp(1.9rem, 2.8vw, 2.8rem)/1 "Archivo", sans-serif; font-stretch: 112%; letter-spacing: -.02em; }
.game-card__logo { display: block; width: auto; height: auto; max-width: min(85%, 380px); max-height: 64px; margin: 4px 0 2px; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .7)); }
.related__logo { display: block; width: auto; height: auto; max-width: min(480px, 100%); max-height: 110px; }
.game-card__subtitle { color: var(--accent); font: 600 .95rem/1.2 var(--label); letter-spacing: .04em; margin-top: -2px; }
.game-card__text { color: #d4cfc6; max-width: 46ch; font-size: 1rem; line-height: 1.5; }
.game-card .chip { justify-self: start; margin-top: 6px; }
.game-card .media-label { top: 12px; bottom: auto; }
.game-card:hover { color: var(--text); transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.game-card:hover .game-card__media img { transform: scale(1.05); }
.game-card .loop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.game-card.is-looping .loop-video { opacity: 1; }
@media (max-width: 1050px) {
  .games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card, .game-card--wide, .game-card--full { grid-column: span 1; min-height: 460px; }
  .game-card:first-child, .game-card:last-child:nth-child(even) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .games__grid { grid-template-columns: 1fr; }
  .game-card, .game-card--wide, .game-card--full, .game-card:first-child, .game-card:last-child:nth-child(even) { grid-column: auto; min-height: 420px; }
}

.pair { position: relative; overflow: hidden; min-height: min(78svh, 860px); display: grid; align-items: center; isolation: isolate; }
.pair__media { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; z-index: -1; }
.pair__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.pair__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(8, 7, 10, .92) 0%, rgba(8, 7, 10, .75) 45%, rgba(8, 7, 10, .45) 100%); }
.pair__content > * { max-width: 760px; }
.pair__content h2 { margin-bottom: 24px; }
.pair__content .lead { color: #e2ddd4; }
.pair__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
@media (max-width: 700px) { .pair__media { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }

.studio__head { display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: clamp(48px, 7vw, 96px); }
.studio__text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; color: #d4cfc6; font-size: 1.15rem; max-width: 1100px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--line); padding-top: 40px; }
.principles h3 { font: 700 1.35rem/1.25 var(--label); font-stretch: 108%; margin: 14px 0 10px; }
.principles p { color: var(--muted); margin: 0; }
.principles__num { font: 600 .8rem/1 var(--label); letter-spacing: .14em; color: var(--accent); }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 7vw, 88px); }
.numbers div { display: flex; flex-direction: column-reverse; gap: 6px; border-left: 1px solid var(--line-strong); padding-left: 20px; }
.numbers dd { font: 800 clamp(2.4rem, 5vw, 4.4rem)/1 "Archivo", sans-serif; font-stretch: 118%; letter-spacing: -.03em; }
.numbers dt { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
  .studio__text, .principles, .numbers { grid-template-columns: 1fr; }
}

.press-teaser__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); background: linear-gradient(135deg, var(--surface), var(--bg)); }
.press-teaser__inner > div { max-width: 720px; }
.press-teaser__inner p:last-child { color: var(--muted); margin: 18px 0 0; }

/* ---------- Game hero ---------- */
.game-hero { position: relative; min-height: min(100svh, 1100px); display: flex; align-items: flex-end; overflow: hidden; background: #000; isolation: isolate; }
.game-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.game-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 5, 7, .82) 0%, rgba(4, 5, 7, .4) 42%, rgba(4, 5, 7, 0) 70%),
    linear-gradient(0deg, var(--game-bg) 0%, color-mix(in srgb, var(--game-bg) 60%, transparent) 22%, transparent 55%);
}
.game-hero--lantern .game-hero__shade {
  background:
    radial-gradient(circle at var(--mx, 64%) var(--my, 48%), rgba(8, 6, 4, 0) 0, rgba(8, 6, 4, .1) 11vmax, rgba(8, 6, 4, .86) 30vmax),
    linear-gradient(0deg, var(--game-bg) 0%, transparent 40%);
}
@media (max-width: 700px) {
  .game-hero__shade { background: linear-gradient(0deg, var(--game-bg) 0%, rgba(4, 5, 7, .78) 48%, rgba(4, 5, 7, .2) 100%); }
}
.game-hero__content { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(56px, 9vh, 110px); }
.game-hero__content > * { max-width: 680px; }
.game-hero__title { font-size: clamp(2.2rem, 9vw, 8.5rem); margin-bottom: 18px; overflow-wrap: break-word; }
.game-hero__title--wraps { font-size: clamp(2.8rem, 12vw, 8.5rem); }
.game-hero__subtitle { display: block; font: 600 clamp(.95rem, 1.4vw, 1.2rem)/1.3 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-top: 14px; }
.game-hero__logo { margin-bottom: 24px; }
.game-hero__logo img { width: auto; height: auto; max-width: min(640px, 100%); max-height: 170px; filter: drop-shadow(0 6px 28px rgba(0, 0, 0, .65)); }
.game-hero__tagline { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.5; color: #ebe6dd; margin-bottom: 22px; text-wrap: balance; }
.game-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 52px; z-index: 3; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(5, 7, 10, .5); font: 600 .7rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase;
}
.video-toggle:hover { border-color: var(--accent); color: var(--accent); }
.game-hero > .media-label { right: var(--gutter); bottom: 16px; }

/* ---------- Game sections ---------- */
.game-intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.game-intro__text { color: #d6d1c8; font-size: 1.1rem; }
.quote { margin: 36px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); }
.quote p { font: italic 500 clamp(1.3rem, 2vw, 1.7rem)/1.4 "Cormorant Garamond", Georgia, serif; color: var(--text); margin-bottom: 10px; }
.quote footer { font: 600 .72rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .game-intro__grid { grid-template-columns: 1fr; } }

.character { padding-top: 0; }
.character + .features { padding-top: clamp(24px, 4vw, 56px); }
.character__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.character__figure { position: relative; border-radius: var(--radius); background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); padding: 24px; }
.character__figure img { margin-inline: auto; max-height: 520px; width: auto; }
@media (max-width: 800px) { .character__grid { grid-template-columns: 1fr; } }

.features__list { display: grid; gap: clamp(64px, 9vw, 128px); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature__media img, .feature__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1s var(--ease); }
.feature__media:hover img { transform: scale(1.03); }
.feature__num { display: block; font: 600 .8rem/1 var(--label); letter-spacing: .16em; color: var(--accent); margin-bottom: 16px; }
.feature__text h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 18px; }
.feature__text p { color: #cfcac1; font-size: 1.1rem; margin: 0; max-width: 46ch; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

.compare__stage { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: var(--ratio, 16 / 9); }
.compare__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__b { clip-path: inset(0 0 0 var(--split)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 24px var(--accent); pointer-events: none; }
.compare__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__stage:has(.compare__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.compare__tag { position: absolute; top: 16px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(5, 7, 10, .65); font: 600 .72rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.compare__tag--a { left: 16px; } .compare__tag--b { right: 16px; }
@media (max-width: 700px) {
  .compare__stage { aspect-ratio: 4 / 3; }
  .compare__tag { top: 10px; font-size: .62rem; padding: 5px 8px; }
  .compare__tag--a { left: 10px; } .compare__tag--b { right: 10px; }
}

.world__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.world__grid figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.world__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1s var(--ease); }
.world__grid figure:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .world__grid { grid-template-columns: 1fr; } }
.world__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.world-card { display: grid; align-content: start; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.world-card figure { position: relative; overflow: hidden; }
.world-card img { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.world-card:hover img { transform: scale(1.05); }
.world-card__body { padding: 20px 22px 24px; }
.world-card__num { display: block; font: 600 .74rem/1 var(--label); letter-spacing: .16em; color: var(--accent); margin-bottom: 10px; }
.world-card h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-bottom: 10px; }
.world-card p { color: #cfcac1; margin: 0; font-size: 1rem; }
@media (max-width: 1000px) { .world__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .world__items { grid-template-columns: 1fr; } }

.anchor { display: block; height: 0; }

.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.gallery__grid li { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.gallery__grid li:hover img { transform: scale(1.05); }
.gallery__grid .media-label { right: 8px; bottom: 8px; }
@media (max-width: 1000px) { .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery__grid { grid-template-columns: 1fr; } }

.facts__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.facts__list { margin-top: 32px; border-top: 1px solid var(--line); }
.facts__list div { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 5fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts__list dt { font: 600 .74rem/1.6 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts__list dd { color: var(--text); }
.facts__side { display: grid; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.panel h3 { font: 700 1.05rem/1.3 var(--label); margin-bottom: 10px; color: var(--accent); }
.panel p { margin: 0; color: #d0cbc2; }
.panel--notice { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.panel--link { display: block; text-decoration: none; color: var(--text); transition: border-color .3s, transform .3s var(--ease); }
.panel--link:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.facts__subhead { font: 700 1.05rem/1.3 var(--label); margin: 40px 0 0; color: var(--accent); }
.facts__list--compact { margin-top: 16px; }
.facts__note { color: var(--muted); font-size: .92rem; margin: 14px 0 0; }
@media (max-width: 900px) { .facts__grid { grid-template-columns: 1fr; } .facts__list div { grid-template-columns: 1fr; gap: 4px; } }

.related { padding-top: 0; }
.related__card { position: relative; display: grid; min-height: 420px; align-items: end; padding: 0; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); isolation: isolate; border: 1px solid var(--line); max-width: calc(var(--maxw) - 2 * var(--gutter)); }
.related__card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.related__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 7, 10, .92), rgba(5, 7, 10, .45) 70%, rgba(5, 7, 10, .2)); }
.related__card:hover { color: var(--text); }
.related__card:hover > img { transform: scale(1.04); }
.related__body { display: grid; gap: 14px; justify-items: start; max-width: 620px; padding: clamp(28px, 4vw, 56px); }
.related__body .eyebrow { margin: 0; }
.related__title { font-size: clamp(2.2rem, 5vw, 4rem); }
@media (max-width: 760px) { .related__card { margin-inline: var(--gutter); width: auto; } }

.more { border-top: 1px solid var(--line); }
.more h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 32px; }
.more__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.more__list a { display: grid; gap: 10px; text-decoration: none; }
.more__list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s; }
.more__list a:hover img { transform: translateY(-4px); border-color: var(--accent); }
.more__list strong { display: block; font: 700 1rem/1.2 var(--label); }
.more__list small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
@media (max-width: 1000px) { .more__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 5, 7, .96); color: var(--text); }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { display: grid; gap: 14px; justify-items: center; padding: 64px 72px 24px; max-width: 100%; }
.lightbox__image { max-width: min(1800px, 100%); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: var(--muted); font-size: .95rem; text-align: center; max-width: 900px; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(10, 13, 18, .8); cursor: pointer; font-size: 1.2rem; display: grid; place-items: center; }
.lightbox__btn:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__figure { padding: 72px 12px 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}

/* ---------- Plain pages ---------- */
.prose { max-width: 820px; padding-block: clamp(56px, 8vw, 110px); }
.prose h1 { margin-bottom: 32px; }
.prose h2 { font: 700 1.3rem/1.3 var(--label); margin: 40px 0 12px; }
.prose p, .prose li { color: #d4cfc6; }
.prose a { color: var(--accent); }
.link-list { display: grid; gap: 6px; margin-bottom: 32px; }
.press-list { display: grid; gap: 18px; margin: 40px 0 56px; }
.press-item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.press-item__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.press-item h2 { margin: 0 0 4px; font-size: 1.4rem; }
.press-item h2 a { text-decoration: none; color: var(--text); }
.press-item p { margin: 6px 0 0; }
.press-item__meta { color: var(--muted) !important; font-size: .92rem; }
@media (max-width: 640px) { .press-item { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #080a0e; padding-top: clamp(48px, 6vw, 80px); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__brand p { color: var(--muted); margin-top: 18px; }
.site-footer h2 { font: 600 .74rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer li a { display: inline-block; padding: 5px 0; text-decoration: none; color: #d4cfc6; }
.site-footer li a:hover { color: var(--accent); }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer__base p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Rich game-page blocks (subnav, explorer, cinematic, pillars, status, specs, FAQ, closing) ---------- */
.hl { display: block; }
.hl--accent { color: var(--accent-2, var(--accent)); }
.text-link { display: inline-flex; align-items: center; gap: .5em; margin-top: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); text-decoration: none; font: 600 .95rem/1.2 var(--body); color: var(--text); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; max-width: none; }
.section-head--split > div .eyebrow { margin-bottom: 16px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

.has-backdrop { position: relative; isolation: isolate; overflow: hidden; }
.backdrop { position: absolute; inset: 0; z-index: -1; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.9) blur(1px); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--game-bg) 0%, color-mix(in srgb, var(--game-bg) 55%, transparent) 30%, color-mix(in srgb, var(--game-bg) 55%, transparent) 70%, var(--game-bg) 100%); }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--game-bg) 92%, transparent); backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.subnav__inner { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.subnav__brand { flex: none; display: flex; align-items: center; text-decoration: none; font: 600 1rem/1 var(--display); color: var(--text); }
.subnav__logo { width: auto; height: auto; max-height: 30px; max-width: 150px; }
.subnav__links { display: flex; gap: 26px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.subnav__links a { display: inline-block; padding: 8px 0; text-decoration: none; font: 600 .9rem/1 var(--body); color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav__links a:hover, .subnav__links a.is-current { color: var(--text); border-color: var(--accent); }
.subnav__cta { flex: none; }
@media (max-width: 760px) {
  .subnav__inner { gap: 16px; min-height: 52px; }
  .subnav__brand, .subnav__cta { display: none; }
  .subnav__links { margin-left: 0; gap: 20px; }
}

.game-hero__kicker { font: 500 clamp(1.25rem, 1.9vw, 1.6rem)/1.35 var(--display); color: var(--text); margin: 0 0 8px; }

.game-intro__grid--image { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.game-intro__grid--image .game-intro__text { margin-top: 28px; }
.game-intro__grid--image h2 { font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
.game-intro__closing { font: 500 clamp(1.3rem, 2vw, 1.6rem)/1.35 var(--display); color: var(--text); margin: 28px 0 18px; }
.framed { position: relative; padding: 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.framed::before { content: "✧"; position: absolute; top: -12px; right: -10px; color: var(--accent); font-size: 1.4rem; }
.framed img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.framed figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font: 600 .7rem/1.3 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .game-intro__grid--image { grid-template-columns: 1fr; } }

.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.feature-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card { display: grid; align-content: start; }
.feature-card figure { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1s var(--ease); }
.feature-card figure:hover img { transform: scale(1.04); }
.feature-card .media-label { top: 10px; left: 10px; right: auto; bottom: auto; }
.feature-card__body { position: relative; padding: 22px 4px 0; }
.feature-card__num { position: absolute; right: 4px; top: 18px; font: 400 2rem/1 var(--display); color: color-mix(in srgb, var(--accent) 45%, transparent); }
.feature-card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 10px; }
.feature-card p { color: #cfcac1; margin: 0 0 14px; }
.feature-card__tag { font: 600 .68rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 860px) { .feature-cards, .feature-cards--4 { grid-template-columns: 1fr; } }

.explorer { display: grid; gap: 0; }
.atlas { border: 1px solid var(--line-strong); border-radius: 4px; background: color-mix(in srgb, var(--surface) 75%, transparent); margin-bottom: 28px; }
.atlas summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; }
.atlas summary::-webkit-details-marker { display: none; }
.atlas strong { display: block; font: 500 1.35rem/1.2 var(--display); color: var(--text); }
.atlas small { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.atlas__star { color: var(--accent); font-size: 1.8rem; }
.atlas__plus { position: relative; width: 16px; height: 16px; }
.atlas__plus::before, .atlas__plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--accent); transition: transform .3s var(--ease); }
.atlas__plus::after { transform: rotate(90deg); }
.atlas[open] .atlas__plus::after { transform: rotate(0); }
.atlas__map { position: relative; margin: 0 24px 24px; border-radius: 4px; overflow: hidden; }
.atlas__map img { width: 100%; height: auto; }
.explorer__tabs { display: none; }
.js .explorer__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-bottom: 1px solid var(--line); }
.explorer__tabs button { display: grid; gap: 6px; padding: 14px 10px 16px; text-align: left; background: none; border: 1px solid transparent; border-bottom: 0; cursor: pointer; font: 500 .95rem/1.2 var(--body); color: var(--muted); }
.explorer__tabs button span { font: 500 .78rem/1 var(--display); color: var(--muted); }
.explorer__tabs button:hover { color: var(--text); }
.explorer__tabs button[aria-selected="true"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.explorer__tabs button[aria-selected="true"] span { color: var(--accent); }
.explorer__panel { position: relative; min-height: clamp(380px, 38vw, 520px); display: grid; align-items: end; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; isolation: isolate; }
.js .explorer__panel { margin-bottom: 0; border-top: 0; }
.js .explorer__panel[data-inactive] { display: none; }
.explorer__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.explorer__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 12, 14, .85) 0%, rgba(5, 12, 14, .45) 45%, rgba(5, 12, 14, 0) 75%), linear-gradient(0deg, rgba(5, 12, 14, .7), transparent 50%); }
.explorer__content { max-width: 520px; padding: clamp(24px, 4vw, 48px); }
.explorer__meta { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 .7rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.explorer__content h3 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 14px; }
.explorer__content p { color: #e7e2d5; }
.explorer__panel > .media-label { top: 12px; bottom: auto; }
.explorer__numeral { position: absolute; right: clamp(20px, 5vw, 64px); bottom: 10px; font: 400 clamp(6rem, 14vw, 12rem)/1 var(--display); color: rgba(244, 238, 217, .12); pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-bottom: 1px solid var(--line); }
.stats div { display: flex; align-items: center; gap: 14px; padding: 6px 18px 18px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dd { margin: 0; font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--display); color: var(--accent-2, var(--accent)); }
.stats dt { color: var(--muted); font-size: .88rem; line-height: 1.3; }
.explorer__note { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.explorer__note a { color: var(--accent); }
@media (max-width: 760px) {
  .js .explorer__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { border-left: 0; padding-left: 0; }
  .explorer__shade { background: linear-gradient(0deg, rgba(5, 12, 14, .92) 0%, rgba(5, 12, 14, .55) 55%, rgba(5, 12, 14, .15) 100%); }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font: 600 .82rem/1 var(--body); color: var(--muted); }
.filter span { margin-left: 6px; color: var(--accent); }
.filter:hover, .filter.is-active { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.gallery__grid--captions li { border: 0; background: none; overflow: visible; }
.gallery__grid--captions .zoom { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.gallery__grid li[hidden] { display: none; }
.gallery__caption { margin: 12px 2px 0; display: grid; gap: 4px; }
.gallery__caption strong { font: 500 1.15rem/1.25 var(--display); color: var(--text); }
.gallery__caption span { font: 600 .66rem/1.3 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.cinematic, .closing { position: relative; min-height: clamp(520px, 72vh, 820px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.cinematic__image, .closing__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cinematic__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 14, 17, .92) 0%, rgba(6, 14, 17, .65) 42%, rgba(6, 14, 17, .1) 75%), linear-gradient(0deg, var(--game-bg), transparent 30%), linear-gradient(180deg, var(--game-bg), transparent 30%); }
.cinematic__content > * { max-width: 760px; }
.cinematic__content h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.cinematic__content .lead { margin-top: 24px; color: #e7e2d5; }
.cinematic > .media-label, .closing > .media-label { right: var(--gutter); }
.closing { text-align: center; }
.closing__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(6, 14, 17, .55) 0%, rgba(6, 14, 17, .8) 70%), linear-gradient(180deg, var(--game-bg), transparent 28%); }
.closing__content { display: grid; justify-items: center; gap: 28px; }
.closing__content .eyebrow { margin: 0; }
@media (max-width: 760px) { .cinematic__shade { background: linear-gradient(0deg, rgba(6, 14, 17, .95) 0%, rgba(6, 14, 17, .7) 55%, rgba(6, 14, 17, .3) 100%); } }

.pillars__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin-bottom: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.pillar__visual { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 20px; border-radius: var(--radius-sm); overflow: hidden; color: var(--accent-2, var(--accent)); }
.pillar__visual img { width: 100%; height: 100%; object-fit: cover; }
.pillar__visual .icon { width: 72%; max-height: 80%; }
.pillar h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 10px; }
.pillar p { color: #cfcac1; margin: 0; }
@media (max-width: 860px) { .pillars__list { grid-template-columns: 1fr; } }

.status__grid, .specs__grid, .faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.status__grid .lead, .specs__grid .lead { color: #d6d1c8; margin: 24px 0; }
.release-card, .spec-card { border: 1px solid var(--line-strong); border-radius: 4px; padding: clamp(24px, 3vw, 36px); background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: var(--shadow); position: relative; }
.release-card::before, .spec-card::before { content: ""; position: absolute; left: clamp(24px, 3vw, 36px); top: -1px; width: 56px; height: 2px; background: var(--accent); }
.release-card__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 18px; font: 600 .7rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.release-card__version { font: 400 clamp(3rem, 6vw, 4.6rem)/1 var(--display); color: var(--text); margin: 0 0 16px; }
.release-card__version small { font: 600 .7rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); vertical-align: middle; margin-left: 10px; }
.release-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 12px; }
.release-card > p { color: #d0cbc2; }
.release-card__list { display: grid; gap: 12px; margin: 22px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.release-card__list li { position: relative; padding-left: 22px; color: #cfcac1; font-size: .98rem; }
.release-card__list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.release-card__list strong { display: block; color: var(--text); }
.release-card__note { margin: 16px 0 0; color: var(--muted); font-size: .88rem; }
.spec-card__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.spec-card__grid div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.spec-card__grid div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.spec-card__grid dt { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.spec-card__value { font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--display); color: var(--text); }
.spec-card__unit { font: 500 1rem/1 var(--display); color: var(--accent); }
.spec-card__grid small { display: block; color: var(--muted); font-size: .8rem; margin-top: 6px; }
@media (max-width: 900px) { .status__grid, .specs__grid, .faq__grid { grid-template-columns: 1fr; } }

.steam { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); padding-block: clamp(32px, 5vw, 56px); }
.steam__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.steam h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 10px; }
.steam p { color: var(--muted); margin: 0; max-width: 620px; }
.steam .eyebrow { margin-bottom: 10px; }
.steam__side { display: grid; gap: 14px; justify-items: end; }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font: 500 1.2rem/1.35 var(--display); color: var(--text); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item p { margin: 0 0 22px; color: #cfcac1; max-width: 64ch; }
.faq__plus { position: relative; flex: none; width: 14px; height: 14px; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--accent); transition: transform .3s var(--ease); }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: rotate(0); }

.lightbox__zoom { top: 16px; right: 80px; }
.lightbox__stage { max-width: 100%; max-height: calc(100dvh - 160px); overflow: hidden; border-radius: 8px; }
.lightbox__stage.is-zoomed { overflow: auto; cursor: grab; }
.lightbox__stage.is-zoomed .lightbox__image { max-width: none; max-height: none; width: auto; height: auto; }

/* ---------- Era timeline: the whole arc, the playable stretch lit, the 1.0 goal dashed ---------- */
.eras__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.era { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.era__mark { position: relative; display: grid; gap: 14px; margin: 0; padding: 0 12px; }
/* Each segment runs from this node to the next one and carries this era's state. */
.era__mark::before { content: ""; position: absolute; left: 19px; right: -19px; bottom: 6px; border-top: 2px solid var(--line-strong); }
.era:last-child .era__mark::before { right: 0; border-top-style: dotted; }
.era--playable .era__mark::before { border-top-color: var(--accent); }
.era--target .era__mark::before { border-top: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); }
.era__span { display: flex; align-items: flex-end; min-height: 2.6em; font: 600 .74rem/1.3 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.era--playable .era__span, .era--target .era__span { color: var(--accent); }
.era__node { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--game-bg); }
.era--target .era__node { border-color: var(--accent); }
.era--playable .era__node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 26px color-mix(in srgb, var(--accent) 65%, transparent); }
.era__card { display: flex; flex-direction: column; gap: 10px; margin: 18px 4px 0; padding: 18px 12px 20px; border: 1px solid transparent; border-radius: 14px; }
.era--playable .era__card { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 9%, rgba(11, 14, 19, .6)); }
.era__title { margin: 0; font: var(--display-weight) 1.1rem/1.15 var(--display); letter-spacing: var(--display-track); }
.era--planned .era__title { color: color-mix(in srgb, var(--text) 80%, transparent); }
.era__card p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.era__card .era__state { margin-top: auto; padding-top: 6px; }
.era--playable .chip { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.eras .backdrop img { opacity: .5; object-position: 70% 50%; }
.eras__note { max-width: 760px; margin: 36px 0 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 1199px) {
  .eras__list { grid-template-columns: 1fr; max-width: 760px; }
  .era { position: relative; grid-template-rows: none; padding-left: 34px; }
  .era::before { content: ""; position: absolute; left: 6px; top: 27px; bottom: -27px; border-left: 2px solid var(--line-strong); }
  .era:last-child::before { bottom: 0; border-left-style: dotted; }
  .era--playable::before { border-left-color: var(--accent); }
  .era--target::before { border-left: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); }
  .era__mark { padding: 20px 0 0; }
  .era__mark::before { display: none; }
  .era__span { min-height: 0; }
  .era__node { position: absolute; left: -34px; top: 20px; }
  .era__card { margin: 8px 0 0; padding: 0 0 8px; }
  .era--playable .era__card { margin: 14px 0 6px; padding: 18px 18px 20px; }
}

/* ---------- Game signatures ---------- */
/* Bad Life: feature numbers become pins on an investigator's wall, joined by a red thread. */
[data-game="badlife"] .feature__num { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); }
[data-game="badlife"] .feature__num::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #ff8f84, var(--accent) 55%, #7a1712);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
[data-game="badlife"] .feature__num::after { content: ""; width: 72px; height: 2px; background: var(--accent); transform: rotate(-4deg); opacity: .85; }
[data-game="badlife"] .facts { background: linear-gradient(180deg, transparent, rgba(232, 70, 60, .05)); }

/* Bad Life (RC11): the smuggler's desk at night. Rain and grain over the hero, a neon bar that flickers, typed paper,
   and the game's own painted kit (case folder, telegram, stamp, Polaroid) as frames. Effects only with data-effects="noir". */
[data-game="badlife"] { --type: "Courier Prime", "Courier New", monospace; --neon: #ff4a3d; --ink: #241811; --ink-red: #8e1f1f; --paper: #efe4cf; }
[data-game="badlife"] .eyebrow { font-family: var(--type); font-weight: 700; letter-spacing: .12em; }
[data-game="badlife"] .subnav__links a { font-family: var(--type); font-weight: 700; letter-spacing: .02em; }

/* Film grain over the whole page; it never takes a click. */
[data-effects="noir"]::after {
  content: ""; position: fixed; inset: -120px; z-index: 60; pointer-events: none; opacity: .085; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: bl-grain 1.1s steps(6) infinite;
}
@keyframes bl-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-36px, 22px); } 40% { transform: translate(28px, -30px); } 60% { transform: translate(-18px, 36px); } 80% { transform: translate(34px, 10px); } 100% { transform: translate(0, 0); } }

/* Hero: slow push-in on the key art, a little parallax, rain in two depths, a vignette like a lamp in the dark. */
[data-effects="noir"] .game-hero__media { transform-origin: 66% 40%; animation: bl-push 34s ease-in-out infinite alternate; translate: 0 var(--hero-shift, 0px); will-change: scale, translate; }
@keyframes bl-push { from { scale: 1.03; } to { scale: 1.13; } }
[data-effects="noir"] .game-hero__shade { background: radial-gradient(120% 90% at 70% 38%, transparent 30%, rgba(5, 3, 2, .55) 70%, rgba(5, 3, 2, .92) 100%), linear-gradient(90deg, rgba(8, 5, 4, .88) 0%, rgba(8, 5, 4, .45) 38%, transparent 62%), linear-gradient(0deg, var(--game-bg) 0%, transparent 34%); }
.fx-weather { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* Rain is drawn by site.js into a canvas (single drops in three depths, warm near the lamp); with reduced motion there is none. */
.fx-weather canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 74%, transparent 100%); }
/* A thin mist drifts low over the water. */
.fx-weather--rain::after {
  content: ""; position: absolute; left: -20%; right: -20%; bottom: 6%; height: 48%;
  background: radial-gradient(40% 60% at 30% 70%, rgba(170, 185, 205, .09), transparent 70%), radial-gradient(34% 50% at 76% 58%, rgba(255, 210, 160, .06), transparent 70%);
  filter: blur(22px); animation: bl-mist 48s ease-in-out infinite alternate;
}
@keyframes bl-mist { from { translate: -4% 0; } to { translate: 5% -2%; } }

/* The red bar of the wordmark lights up like a neon tube and stutters now and then (geometry of wordmarks/badlife.svg). */
[data-game="badlife"] .game-hero__logo { display: inline-block; position: relative; }
[data-effects="noir"] .game-hero__logo::after {
  content: ""; position: absolute; left: 1.1%; top: 91%; width: 37.2%; height: 5.7%; border-radius: 2px; pointer-events: none;
  background: #ff6a5f; box-shadow: 0 0 6px var(--neon), 0 0 18px rgba(255, 74, 61, .8), 0 0 46px rgba(255, 74, 61, .55), 0 0 90px rgba(255, 74, 61, .35);
  animation: bl-neon 8s infinite;
}
@keyframes bl-neon { 0%, 17%, 21%, 24%, 61%, 64%, 100% { opacity: 1; } 18%, 23%, 62% { opacity: .15; } 19.5% { opacity: .7; } }
/* The wordmark as a sign: now and then "BAD" stutters like a failing tube and "LIFE" tips on a loose screw.
   Two long cycles of different length (17 s, 29 s), so it stays rare and the two seldom meet; nothing moves with reduced motion. */
[data-game] .game-hero__logo.game-hero__logo--split { display: inline-flex; align-items: flex-start; }
.game-hero__logo--split .logo-part { display: block; }
.game-hero__logo--split .logo-part img { width: auto; height: min(160px, 26vw); max-height: none; }
[data-effects="noir"] .logo-part--1 { animation: bl-stutter 17s linear infinite; animation-delay: 4s; }
[data-effects="noir"] .logo-part--2 { transform-origin: 94% 6%; animation: bl-tip 29s infinite; animation-delay: 7s; }
@keyframes bl-stutter {
  0%, 61%, 61.8%, 62.5%, 63.6%, 100% { opacity: 1; }
  61.35% { opacity: .42; } 62.15% { opacity: .62; } 63.05% { opacity: .34; }
}
@keyframes bl-tip {
  0%, 78% { rotate: 0deg; animation-timing-function: cubic-bezier(.55, 0, .9, .5); }
  80% { rotate: 4.2deg; animation-timing-function: ease-out; }
  81% { rotate: 3.1deg; animation-timing-function: ease-in; }
  82% { rotate: 3.8deg; }
  88% { rotate: 3.8deg; animation-timing-function: cubic-bezier(.3, .6, .4, 1); }
  91% { rotate: -.5deg; }
  92.6% { rotate: .2deg; }
  94%, 100% { rotate: 0deg; }
}
[data-game="badlife"] .game-hero__kicker { font: 700 clamp(.95rem, 1.2vw, 1.1rem)/1.4 var(--type); letter-spacing: .06em; color: var(--paper); text-transform: none; }

/* Sections come up out of the dark as you reach them (JS sets data-reveal; without JS everything is simply there). */
[data-effects="noir"] [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--reveal-delay, 0s); }
[data-effects="noir"] [data-reveal].is-revealed { opacity: 1; transform: none; }
/* Pictures tilt toward the pointer like a print picked up from the desk. */
[data-effects="noir"] [data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
[data-effects="noir"] [data-tilt]:hover { box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 74, 61, .35), 0 0 40px -10px rgba(255, 74, 61, .35); }
/* The intro is typed (JS); the caret blinks while the keys strike. */
[data-typed].is-typing::after { content: "\258C"; margin-left: 2px; color: var(--accent); animation: bl-caret 1s steps(1) infinite; }
@keyframes bl-caret { 50% { opacity: 0; } }

/* Prints: screenshots sit like photos on the desk, a little crooked, straightened under the hand. */
[data-game="badlife"] .feature-card figure { border: 8px solid #efe8d8; border-radius: 3px; rotate: -.7deg; }
[data-game="badlife"] .feature-card:nth-child(even) figure { rotate: .8deg; }
[data-game="badlife"] .feature-card figure:hover { rotate: 0deg; }
[data-game="badlife"] .feature-card__num { font-family: var(--type); color: color-mix(in srgb, var(--accent) 60%, transparent); }
[data-game="badlife"] .feature-card__tag { font-family: var(--type); letter-spacing: .08em; }
[data-game="badlife"] .gallery__grid li { border-radius: 3px; border: 5px solid #e9e1cf; }
[data-game="badlife"] .feature-card .media-label { top: auto; left: auto; right: 8px; bottom: 8px; }

/* The main character as a Polaroid with tape, his three ages written on it. */
[data-game="badlife"] .character__figure {
  background: none; border-radius: 0; padding: 0; rotate: -2.2deg;
  border-style: solid; border-color: transparent; border-width: 26px 26px 92px;
  border-image: url(../badlife/polaroid.webp) 60 60 220 60 fill / 26px 26px 92px 26px stretch;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .6));
}
[data-game="badlife"] .character__figure img { max-height: 440px; border-radius: 0; }
[data-game="badlife"] .character__figure::before { content: ""; position: absolute; top: -44px; left: 50%; width: 170px; height: 44px; translate: -50% 0; rotate: -4deg; background: url(../badlife/tape.webp) center / 100% 100% no-repeat; opacity: .9; z-index: 2; }
[data-game="badlife"] .character__figure::after { content: "mit 22 \00B7  mit 40 \00B7  mit 65"; position: absolute; left: 0; right: 0; bottom: -70px; text-align: center; font: italic 400 1.35rem/1 "Source Serif 4", Georgia, serif; color: #263552; rotate: -1.5deg; }
[data-game="badlife"] .character__figure .media-label { display: none; }

/* The release card is the case folder of the build, with a red rubber stamp. */
[data-game="badlife"] .release-card {
  border-style: solid; border-color: transparent; border-width: 30px; border-radius: 0; box-shadow: none; padding: clamp(10px, 2vw, 22px);
  border-image: url(../badlife/folder.webp) 64 fill / 32px stretch; background: none; rotate: -.8deg; color: var(--ink);
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .6));
}
[data-game="badlife"] .release-card::before { display: none; }
[data-game="badlife"] .release-card__top { color: var(--ink-red); font-family: var(--type); letter-spacing: .1em; }
[data-game="badlife"] .release-card__version { color: var(--ink); font-family: var(--type); font-weight: 700; letter-spacing: -.02em; }
[data-game="badlife"] .release-card__version small { color: #5a4330; font-family: var(--type); }
[data-game="badlife"] .release-card h3 { color: var(--ink-red); }
[data-game="badlife"] .release-card > p, [data-game="badlife"] .release-card__list li, [data-game="badlife"] .release-card__note { color: var(--ink); font-family: var(--type); font-size: .98rem; }
[data-game="badlife"] .release-card__list li strong { color: var(--ink-red); }
[data-game="badlife"] .release-card .chip--accent {
  display: inline-block; padding: 12px 26px; border-radius: 0; rotate: -7deg; color: #a8261f; background: none;
  border-style: solid; border-color: transparent; border-width: 14px; border-image: url(../badlife/stamp.webp) 40 fill / 20px stretch;
  font: 700 1rem/1 "Oswald", sans-serif; letter-spacing: .14em;
}
/* The content notice arrives as a telegram. */
[data-game="badlife"] .panel--notice {
  border-style: solid; border-color: transparent; border-width: 20px; border-radius: 0; background: none; padding: 10px 14px;
  border-image: url(../badlife/telegram.webp) 40 fill / 20px stretch;
}
[data-game="badlife"] .panel--notice h3 { color: var(--ink-red); font-family: var(--type); letter-spacing: .06em; text-transform: uppercase; }
[data-game="badlife"] .panel--notice p { color: var(--ink); font-family: var(--type); font-size: .95rem; }
/* Facts are typed like the dossier at the end of a run; the timeline's nodes glow like the pins on the globe. */
[data-game="badlife"] .facts__list dt { font-family: var(--type); }
[data-game="badlife"] .era__node { background: radial-gradient(circle at 35% 35%, #ff8f84, var(--accent) 55%, #7a1712); box-shadow: 0 0 14px rgba(255, 74, 61, .6); border: 0; }
[data-game="badlife"] .era__span { font-family: var(--type); font-weight: 700; }
[data-game="badlife"] .explorer__tabs button { font-family: var(--type); }
[data-game="badlife"] .explorer__panel { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
[data-game="badlife"] .faq__item summary { font-family: var(--type); font-weight: 700; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
