/* ============================================================
   God of War III PC Port - "Olympus in Ashes" design system
   Hand written CSS. No framework, no build step.
   Palette: near-black surfaces, forged gold, vermillion accent.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0a0a0d;
  --bg-2: #0d0d12;
  --surface: #14141a;
  --surface-2: #1b1b23;
  --surface-3: #23232d;

  --red: #e23a2e;
  --red-hot: #d8382b;
  --red-deep: #8e1d14;
  --red-glow: rgba(226, 58, 46, 0.42);
  /* --red is 4.59:1 on --bg but only 4.26:1 on --surface, so small red text uses
     this lighter tint instead. Decorative marks keep --red. */
  --red-text: #f2564a;

  --gold: #c9a227;
  --gold-dim: rgba(201, 162, 39, 0.34);
  --gold-faint: rgba(201, 162, 39, 0.12);

  --text: #ededf0;
  --muted: #9a9aa5;
  /* #85858f is the darkest grey that still clears WCAG AA (4.5:1) on every
     surface in the palette, including --surface. Do not darken it. */
  --muted-2: #85858f;

  --line: rgba(237, 237, 240, 0.1);
  --line-strong: rgba(237, 237, 240, 0.18);

  /* Type: Cinzel for display, Barlow for body, Oswald for numerals.
     Self hosted in /assets/fonts/fonts.css (no third party font requests). */
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-num: "Oswald", "Barlow", sans-serif;

  /* Shape rule: everything is sharp (0-2px). Status chips and badges are the
     only pill shaped elements, because they read as HUD tags. */
  --r: 2px;
  --r-chip: 999px;

  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.55);
  --shadow-red: 0 10px 34px rgba(142, 29, 20, 0.42);

  --maxw: 1220px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --nav-h: 68px;

  --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}

img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:target { scroll-margin-top: calc(var(--nav-h) + 16px); }

::selection { background: var(--red-deep); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

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

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.2; }
h4 { font-size: 1.0625rem; line-height: 1.3; }

p { max-width: 68ch; }
strong { font-weight: 600; color: #fff; }
small { font-size: 0.8125rem; }

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}

.muted { color: var(--muted); }
.num {
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

code, kbd, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
}

kbd {
  display: inline-block;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8125em;
  line-height: 1.5;
  white-space: nowrap;
}

/* Inline path / file chip used through the guide and requirement tables */
.chip {
  display: inline-block;
  padding: 0.08em 0.5em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface-2);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125em;
  white-space: nowrap;
}

a.chip:hover { border-color: var(--gold-dim); color: var(--gold); }

/* Keeps a chip and its trailing punctuation on the same line, so a sentence
   never ends with a lone "." or "," on a line of its own. The chip's right
   padding is tightened so the punctuation reads as attached to the chip
   instead of floating inside the box's padding. */
.nb { white-space: nowrap; }
.nb > .chip:first-child { padding-inline-end: 0.2em; }

/* ---------- 4. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.25rem, 7vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
  max-width: 62ch;
}
.section-head p { color: var(--muted); }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--gold-dim), rgba(201, 162, 39, 0.06) 45%, transparent);
}

/* Omega mark: the site's visual anchor, used as a divider ornament */
.omega {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.omega::before,
.omega::after {
  content: "";
  width: clamp(28px, 8vw, 92px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.omega::after { background: linear-gradient(270deg, transparent, var(--gold-dim)); }

/* Same gold kicker voice as .omega but without the flanking hairlines, for
   narrow columns (footer) where the hairlines would crowd the text. */
.kicker {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Blade slash divider (clip-path), the signature section break */
.blade {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--red-deep) 18%, var(--red) 50%, var(--red-deep) 82%, transparent);
  clip-path: polygon(0 40%, 46% 0, 54% 0, 100% 60%, 100% 100%, 54% 40%, 46% 40%, 0 100%);
  opacity: 0.85;
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid-2,
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(180deg, var(--red-hot), var(--red-deep));
  color: #fff;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* Desktop only line break inside the hero headline */
.br-lg { display: none; }
@media (min-width: 901px) { .br-lg { display: inline; } }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: linear-gradient(180deg, var(--red-hot), var(--red-deep));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-red), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}
.btn:hover { filter: brightness(1.09); box-shadow: 0 14px 40px rgba(226, 58, 46, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn:active { transform: translateY(1px) scale(0.995); }

.btn--ghost {
  --btn-bg: linear-gradient(180deg, rgba(237, 237, 240, 0.08), rgba(237, 237, 240, 0.03));
  border-color: var(--line-strong);
  box-shadow: none;
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold-dim); color: #fff; box-shadow: 0 0 0 1px var(--gold-faint); }

.btn--gold {
  --btn-bg: linear-gradient(180deg, #ddb43a, #96751a);
  color: #17130a;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--gold:hover { color: #0c0a05; }

.btn--sm { padding: 0.55rem 0.95rem; min-height: 40px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid var(--gold-faint);
  padding-bottom: 1px;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.link-arrow:hover { border-bottom-color: var(--gold); color: #f0d98a; }
.link-arrow::after { content: "\2192"; transition: transform 0.18s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- 6. Header ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav[data-stuck="true"] {
  border-bottom-color: var(--line);
  background: rgba(8, 8, 11, 0.94);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: 0.6rem; flex: none; }
/* The emblem from /favicon.svg, so the site mark and the tab icon are the
   same artwork. One cached request, no duplicated inline SVG. */
.brand__mark {
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.42), 0 3px 14px rgba(0, 0, 0, 0.6);
}
.brand__mark img { display: block; width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand__sub {
  color: var(--muted-2);
  font-family: var(--font-num);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.4vw, 1.15rem);
  margin-inline-start: auto;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__cta { flex: none; margin-inline-start: 0.5rem; }
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-inline-start: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text);
}

.nav__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--gold));
}
@supports (animation-timeline: scroll()) {
  .nav__progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

@media (max-width: 1080px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(8, 8, 11, 0.985);
    border-bottom: 1px solid transparent;
    transition: max-height 0.32s var(--ease), border-color 0.3s var(--ease);
  }
  .nav__links[data-open="true"] {
    max-height: 70dvh;
    overflow-y: auto;
    border-bottom-color: var(--line);
  }
  .nav__links a {
    padding: 0.95rem var(--gutter);
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__links a::after { display: none; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__toggle { display: grid; }
  .nav__cta { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(94dvh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(2rem, 5vh, 4.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(58% 62% at 78% 38%, rgba(226, 58, 46, 0.24), transparent 68%),
    radial-gradient(48% 58% at 12% 82%, rgba(201, 162, 39, 0.13), transparent 70%),
    linear-gradient(180deg, #08080b 0%, #0a0a0d 55%, #0a0a0d 100%);
}
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 62%;
  opacity: 0.42;
  filter: saturate(0.78) contrast(1.06) blur(1px);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0a0a0d 2%, rgba(10, 10, 13, 0.92) 34%, rgba(10, 10, 13, 0.44) 64%, rgba(10, 10, 13, 0.78) 100%),
    linear-gradient(180deg, #0a0a0d 0%, rgba(10, 10, 13, 0.94) 13%, rgba(10, 10, 13, 0.4) 32%, rgba(10, 10, 13, 0.15) 52%, rgba(10, 10, 13, 0.72) 84%, #0a0a0d 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/texture-grain.webp");
  background-size: 256px 256px;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-bottom: clamp(1rem, 2.5vw, 2rem);
}

.hero__copy { max-width: 40rem; padding-bottom: 0; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.75rem 0.3rem 0.55rem;
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-chip);
  background: rgba(201, 162, 39, 0.07);
  color: var(--gold);
  font-family: var(--font-num);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__eyebrow b { color: var(--red); font-weight: 600; }

.hero h1 {
  font-size: clamp(2.25rem, 1.15rem + 4.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: 0.004em;
  margin-bottom: 1.15rem;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.75);
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 42px rgba(226, 58, 46, 0.5);
}

.hero__sub {
  max-width: 34rem;
  color: #c6c6ce;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.1875rem);
  line-height: 1.58;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.hero__art {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 640px;
  margin-inline-end: clamp(-5rem, -3vw, 0rem);
  margin-bottom: -1px;
}
.hero__art img {
  width: 100%;
  /* radial mask so the artwork bleeds into the page instead of reading as a
     pasted rectangle. Falls back to no mask, which is only a cosmetic loss. */
  -webkit-mask-image: radial-gradient(96% 94% at 54% 46%, #000 34%, rgba(0, 0, 0, 0.6) 62%, transparent 84%);
  mask-image: radial-gradient(96% 94% at 54% 46%, #000 34%, rgba(0, 0, 0, 0.6) 62%, transparent 84%);
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.7)) saturate(1.04);
}
@supports (animation-timeline: scroll()) {
  .hero__art { animation: hero-parallax linear both; animation-timeline: scroll(root block); animation-range: 0 70vh; }
  @keyframes hero-parallax { to { transform: translateY(-3.5%) scale(1.02); } }
}

.hero__rail {
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.72), rgba(10, 10, 13, 0.94));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__rail-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem clamp(0.85rem, 2vw, 1.9rem);
  padding-block: 0.85rem;
  font-family: var(--font-num);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__rail b { color: var(--text); font-weight: 600; }
.hero__rail .sep { width: 1px; height: 15px; background: var(--line-strong); flex: none; }
.hero__rail .live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-inline-start: auto;
  color: var(--gold);
}
.hero__rail .live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--red-glow); }
  70% { box-shadow: 0 0 0 9px rgba(226, 58, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 58, 46, 0); }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 1.75rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero__art {
    max-width: 320px;
    justify-self: center;
    order: -1;
    margin-bottom: 0;
  }
  .hero__art img {
    -webkit-mask-image: radial-gradient(112% 104% at 50% 48%, #000 48%, rgba(0, 0, 0, 0.5) 72%, transparent 90%);
    mask-image: radial-gradient(112% 104% at 50% 48%, #000 48%, rgba(0, 0, 0, 0.5) 72%, transparent 90%);
  }
  .hero__copy { padding-bottom: 0.5rem; }
  .hero__bg img { object-position: 58% 34%; opacity: 0.3; }
  .hero__rail-inner { font-size: 0.75rem; gap: 0.5rem 0.9rem; }
  .hero__rail .live { margin-inline-start: 0; width: 100%; }
}

/* ---------- 8. Stats strip (below hero, outside it) ---------- */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.strip__cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem clamp(0.85rem, 2vw, 1.5rem);
  background: var(--bg-2);
}
.strip__cell b {
  font-family: var(--font-num);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}
.strip__cell span {
  color: var(--muted-2);
  font-family: var(--font-num);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 9. Panels & cards ---------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
}
.panel--flush { padding: 0; overflow: hidden; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.28s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.card:hover {
  border-color: rgba(226, 58, 46, 0.34);
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(226, 58, 46, 0.12);
}
.card:hover::before { opacity: 1; }

.card__head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.card__head > .badge { margin-inline-start: auto; }
.card__title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; }
.card__body { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.card__foot { margin-top: auto; padding-top: 0.35rem; }

.platform {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
}
.platform svg { width: 20px; height: 20px; }

.spec {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  font-size: 0.875rem;
}
.spec dt { color: var(--muted-2); font-family: var(--font-num); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; padding-top: 0.2rem; }
.spec dd { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .spec { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .spec dt { padding-top: 0.55rem; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--live { border-color: rgba(226, 58, 46, 0.4); background: rgba(226, 58, 46, 0.1); color: #ff9d94; }
.badge--gold { border-color: var(--gold-dim); background: var(--gold-faint); color: var(--gold); }
.badge--ok { border-color: rgba(120, 190, 130, 0.34); background: rgba(120, 190, 130, 0.09); color: #9ad3a4; }

/* Warning / notice */
.notice {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(226, 58, 46, 0.34);
  border-left-width: 3px;
  border-radius: var(--r);
  background: linear-gradient(90deg, rgba(142, 29, 20, 0.22), rgba(142, 29, 20, 0.05));
}
.notice__icon { flex: none; color: var(--red); font-size: 1.15rem; line-height: 1.35; }
.notice p { color: #dcc9c6; font-size: 0.9375rem; }
.notice strong { color: #fff; }
.notice--gold { border-color: var(--gold-dim); background: linear-gradient(90deg, rgba(201, 162, 39, 0.14), rgba(201, 162, 39, 0.03)); }
.notice--gold .notice__icon { color: var(--gold); }
.notice--gold p { color: #d9d2bd; }

/* ---------- 10. Guide ---------- */
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }

.guide__rail { position: sticky; top: calc(var(--nav-h) + 24px); }
.guide__rail ol { display: flex; flex-direction: column; gap: 0.1rem; margin-top: 1rem; }
.guide__rail a {
  display: flex;
  gap: 0.65rem;
  padding: 0.42rem 0.6rem;
  border-left: 2px solid transparent;
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--muted-2);
  font-size: 0.875rem;
  line-height: 1.35;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.guide__rail a b { font-family: var(--font-num); font-weight: 600; color: var(--muted-2); font-size: 0.75rem; padding-top: 0.12rem; }
.guide__rail a:hover { color: var(--text); background: rgba(237, 237, 240, 0.04); }
.guide__rail a[aria-current="true"] { border-left-color: var(--red); background: rgba(226, 58, 46, 0.08); color: #fff; }
.guide__rail a[aria-current="true"] b { color: var(--red-text); }
.guide__progress {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.guide__progress-track { height: 3px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-top: 0.6rem; }
.guide__progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--red-deep), var(--red)); transition: width 0.3s var(--ease); }

.steps { display: flex; flex-direction: column; gap: clamp(1rem, 2.4vw, 1.75rem); counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.step:target { border-color: rgba(226, 58, 46, 0.45); }

.step__num {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  color: var(--red-text);
  font-family: var(--font-num);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.step__num::after { content: ""; width: 34px; height: 1px; background: var(--red-deep); }
.step h3 { margin-bottom: 0.55rem; }
.step p { color: var(--muted); font-size: 0.9375rem; }
.step p + p { margin-top: 0.6rem; }
.step__media { position: relative; align-self: start; }
.step__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r);
  filter: saturate(0.95);
}
.step__ui {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.step__ui .chip { font-size: 0.75rem; background: rgba(35, 35, 45, 0.85); }

@media (max-width: 1080px) {
  .guide { grid-template-columns: 1fr; }
  .guide__rail { position: static; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
  .guide__rail ol { flex-direction: row; flex-wrap: wrap; gap: 0.35rem; }
  .guide__rail a { border: 1px solid var(--line); border-left-width: 1px; border-radius: var(--r-chip); padding: 0.3rem 0.7rem; }
  .guide__rail a span { display: none; }
  .guide__progress { display: none; }
}
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; }
  .step__media { order: 0; }
}

/* ---------- 11. Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.9rem, 1.8vw, 1.35rem); }
.video {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.video:hover { border-color: rgba(226, 58, 46, 0.4); transform: translateY(-3px); }
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  width: 100%;
  padding: 0;
  display: block;
}
.video__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.25s var(--ease), transform 0.5s var(--ease);
}
.video__frame:hover img { opacity: 1; transform: scale(1.03); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(10, 10, 13, 0.15), rgba(10, 10, 13, 0.6));
}
.video__play i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(226, 58, 46, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.video__play i::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.video__frame:hover .video__play i { transform: scale(1.08); background: var(--red); }
.video__meta { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.video__meta h3 { font-size: 0.9375rem; font-family: var(--font-body); font-weight: 600; line-height: 1.35; color: var(--text); }
.video__meta p { color: var(--muted-2); font-size: 0.8125rem; }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }

/* ---------- 12. Requirements / game panel ---------- */
.req { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
@media (max-width: 880px) { .req { grid-template-columns: minmax(0, 1fr); } }

.panel-game {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(35, 35, 45, 0.7), rgba(13, 13, 18, 0.9));
  overflow: hidden;
}
.panel-game__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 13, 0.6);
}
.panel-game__head h3 { font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-num); font-weight: 500; }
.panel-game__body { padding: 1.1rem; }
.panel-game .spec { gap: 0.65rem 1.1rem; }
.panel-game .spec dt { padding-top: 0.35rem; }
.panel-game .spec dd { font-size: 0.9375rem; }

.bench { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bench__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.05rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.bench__row span { color: var(--muted); font-size: 0.875rem; }
.bench__row b {
  font-family: var(--font-num);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.bench__row b small { display: block; font-size: 0.6875rem; color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.25rem; font-weight: 500; }

.issues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.1rem); }
.issue {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--red-deep);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(20, 20, 26, 0.6);
}
.issue h4 { margin-bottom: 0.35rem; font-size: 0.9375rem; }
.issue p { color: var(--muted); font-size: 0.875rem; }
@media (max-width: 900px) { .issues { grid-template-columns: 1fr; } }

/* ---------- 13. Setup Lab (choice inputs + verdict + settings output) ---------- */
.lab { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
@media (max-width: 980px) { .lab { grid-template-columns: minmax(0, 1fr); } }

.lab__form { display: flex; flex-direction: column; gap: 1.15rem; }
.lab__form fieldset { border: 0; padding: 0; margin: 0; }
.lab__form legend {
  padding: 0;
  margin-bottom: 0.55rem;
  color: var(--muted-2);
  font-family: var(--font-num);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.picks { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pick { position: relative; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.pick > span {
  display: block;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.pick input:hover + span { border-color: var(--line-strong); color: var(--text); }
.pick input:checked + span {
  border-color: var(--red);
  background: rgba(226, 58, 46, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(226, 58, 46, 0.25);
}
.pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.lab__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.25rem; }
.lab__saved { color: var(--muted-2); font-size: 0.8125rem; }

.lab__out {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}
.lab__verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--muted-2);
  background: rgba(10, 10, 13, 0.5);
}
.lab__verdict[data-verdict="yes"] { border-left-color: #6fbf7f; }
.lab__verdict[data-verdict="maybe"] { border-left-color: var(--gold); }
.lab__verdict[data-verdict="no"] { border-left-color: var(--red-text); }
.lab__verdict h3 { font-size: 1.1rem; line-height: 1.25; }
.lab__verdict p { color: var(--muted); font-size: 0.875rem; flex-basis: 100%; }
.lab__verdict .badge { margin-inline-start: auto; }
.lab__body { padding: 1.15rem; display: flex; flex-direction: column; gap: 1.25rem; }
.lab__block h4 {
  margin-bottom: 0.6rem;
  color: var(--muted-2);
  font-family: var(--font-num);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lab__note { color: var(--muted-2); font-size: 0.8125rem; max-width: 70ch; }

table.settings { font-size: 0.875rem; }
table.settings th,
table.settings td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.settings tr:last-child th,
table.settings tr:last-child td { border-bottom: 0; }
table.settings th { color: var(--muted-2); font-weight: 500; font-size: 0.8125rem; white-space: nowrap; width: 42%; }
table.settings td { color: var(--text); }
table.settings td b { color: var(--gold); font-weight: 600; }

.flaglist { display: flex; flex-direction: column; gap: 0.5rem; }
.flaglist li {
  position: relative;
  padding: 0.6rem 0.8rem 0.6rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(20, 20, 26, 0.55);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.flaglist li::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.95rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-text);
}
.flaglist li[data-sev="info"]::before { background: var(--gold); }
.flaglist li strong { color: var(--text); }
.flaglist:empty::after {
  content: "Nothing here applies to your setup. That is a good sign.";
  color: var(--muted-2);
  font-size: 0.875rem;
}

/* ---------- 13b. Pre-flight checklist ---------- */
.preflight {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold-dim);
  border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.06), transparent 60%);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
}
.preflight__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.preflight__head h3 { margin: 0; }
.preflight__count {
  margin-inline-start: auto;
  font-family: var(--font-num);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.preflight__count b { color: var(--gold); }
.preflight__bar { height: 3px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 1.1rem; }
.preflight__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-deep), var(--gold)); transition: width 0.35s var(--ease); }
.preflight ol { display: flex; flex-direction: column; gap: 0.15rem; }
.preflight li { border-bottom: 1px solid var(--line); }
.preflight li:last-child { border-bottom: 0; }
.preflight label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0.2rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
.preflight label:hover { color: var(--text); }
.preflight input { position: absolute; opacity: 0; width: 0; height: 0; }
.preflight__box {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface-2);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.preflight__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #17130a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.18s var(--ease);
}
.preflight input:checked + .preflight__box { background: var(--gold); border-color: var(--gold); }
.preflight input:checked + .preflight__box::after { transform: rotate(45deg) scale(1); }
.preflight input:focus-visible + .preflight__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.preflight input:checked ~ span:last-child { color: var(--text); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.preflight__done {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(120, 190, 130, 0.3);
  border-radius: var(--r);
  background: rgba(120, 190, 130, 0.07);
  color: #a9d9b2;
  font-size: 0.9375rem;
}
.preflight__done[hidden] { display: none; }

/* ---------- 13c. Fix finder ---------- */
.finder__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
}
.finder__search {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}
.finder__search input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}
.finder__search input::placeholder { color: var(--muted-2); }
.finder__search input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-dim); }
.finder__search svg {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: var(--muted-2);
  pointer-events: none;
}
.finder__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.finder__tags button {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.16s var(--ease);
}
.finder__tags button:hover { color: var(--text); border-color: var(--gold-dim); }
.finder__tags button[aria-pressed="true"] { background: rgba(226, 58, 46, 0.14); border-color: var(--red); color: #fff; }

.finder__list { display: flex; flex-direction: column; gap: 0.5rem; }
.fix {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.fix[open] { border-color: rgba(201, 162, 39, 0.3); }
.fix > summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.05rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.fix > summary::-webkit-details-marker { display: none; }
.fix > summary:hover { color: var(--gold); }
.fix__sev {
  flex: none;
  margin-top: 0.15rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: var(--surface-2);
  color: var(--muted-2);
  font-family: var(--font-num);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fix__sev[data-sev="fixed"] { border-color: rgba(120, 190, 130, 0.4); color: #9ad3a4; }
.fix__sev[data-sev="workaround"] { border-color: var(--gold-dim); color: var(--gold); }
.fix__sev[data-sev="report"] { border-color: rgba(226, 58, 46, 0.4); color: #ff9d94; }
.fix > summary::after {
  content: "+";
  flex: none;
  margin-inline-start: auto;
  color: var(--red-text);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.22s var(--ease);
}
.fix[open] > summary::after { transform: rotate(45deg); }
.fix__body { padding: 0 1.05rem 1.05rem; }
.fix__body p { color: var(--muted); font-size: 0.9375rem; }
.fix__body p + p { margin-top: 0.55rem; }
.fix__body ol { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.55rem; counter-reset: fixstep; }
.fix__body ol li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: 0.9375rem; }
.fix__body ol li::before {
  counter-increment: fixstep;
  content: counter(fixstep);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.1rem;
  color: var(--gold);
  font-family: var(--font-num);
  font-size: 0.75rem;
}
.fix__empty {
  padding: 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  text-align: center;
  color: var(--muted-2);
  font-size: 0.9375rem;
}
.fix__empty[hidden] { display: none; }
.fix[hidden] { display: none; }

/* Compatibility strip */
.compat { display: flex; flex-direction: column; gap: 0.4rem; }
.compat__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(20, 20, 26, 0.5);
  font-size: 0.875rem;
}
.compat__row b { color: var(--text); font-weight: 500; }
.compat__row small { display: block; color: var(--muted-2); font-size: 0.8125rem; }
.compat__row[data-match="true"] { border-color: var(--gold-dim); background: rgba(201, 162, 39, 0.07); }
.compat__row[data-match="true"] b::after {
  content: "your pick";
  margin-inline-start: 0.5rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-chip);
  color: var(--gold);
  font-family: var(--font-num);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* Updates filter */
.tlfilter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.tlfilter button {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.16s var(--ease);
}
.tlfilter button:hover { color: var(--text); border-color: var(--gold-dim); }
.tlfilter button[aria-pressed="true"] { background: rgba(226, 58, 46, 0.14); border-color: var(--red); color: #fff; }
.tl[hidden] { display: none; }

/* ---------- 14. Tables (compare) ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
table.compare { min-width: 640px; font-size: 0.9375rem; }
table.compare th,
table.compare td { padding: 0.85rem 1.05rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
table.compare thead th.is-target { color: var(--gold); background: linear-gradient(180deg, rgba(201, 162, 39, 0.14), var(--surface-2)); }
table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody th { color: var(--muted-2); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.04em; white-space: nowrap; }
table.compare tbody tr:hover td { background: rgba(237, 237, 240, 0.025); }
table.compare td.is-target { background: rgba(201, 162, 39, 0.05); color: #fff; }
.cell-yes { color: #9ad3a4; }
.cell-no { color: #e08a83; }

/* ---------- 15. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 0.55rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq__item[open] { border-color: rgba(201, 162, 39, 0.3); }
.faq__item summary {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.18s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold); }
.faq__item summary::after {
  content: "+";
  flex: none;
  margin-inline-start: auto;
  color: var(--red-text);
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  padding-top: 0.15rem;
  transition: transform 0.22s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.15rem 1.15rem; }
.faq__a p { color: var(--muted); font-size: 0.9375rem; }
.faq__a p + p { margin-top: 0.6rem; }
.faq__a a { color: var(--gold); border-bottom: 1px solid var(--gold-faint); }
.faq__a a:hover { border-bottom-color: var(--gold); }

/* ---------- 16. Updates timeline ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 120px 20px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1.6rem;
}
.tl:last-child { padding-bottom: 0; }
.tl__date { color: var(--muted-2); font-family: var(--font-num); font-size: 0.8125rem; letter-spacing: 0.08em; padding-top: 0.15rem; text-align: right; }
.tl__dot { position: relative; }
.tl__dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--muted-2);
  z-index: 1;
}
.tl__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.9rem;
  bottom: -1.6rem;
  width: 1px;
  margin-left: -0.5px;
  background: var(--line);
}
.tl:last-child .tl__dot::after { display: none; }
.tl--latest .tl__dot::before { background: var(--red-text); box-shadow: 0 0 0 4px rgba(226, 58, 46, 0.2); }
.tl--linux .tl__dot::before { background: var(--gold); }
.tl__card { border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: 1rem 1.15rem; }
.tl--latest .tl__card { border-color: rgba(226, 58, 46, 0.28); }
.tl__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; margin-bottom: 0.6rem; }
.tl__ver { font-family: var(--font-num); font-size: 1.0625rem; font-weight: 600; color: var(--gold); letter-spacing: 0.02em; }
.tl__card ul { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.75rem; }
.tl__card li { position: relative; padding-left: 1rem; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.tl__card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 4px; height: 1px; background: var(--red-deep); }
@media (max-width: 700px) {
  .tl { grid-template-columns: 20px minmax(0, 1fr); gap: 0.75rem; }
  .tl__date { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 0.35rem; }
  .tl__dot { grid-row: 1 / span 2; }
  .tl__card { grid-column: 2; }
}

/* ---------- 17. Related games ---------- */
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.9rem, 2vw, 1.5rem); }
.rel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
}
.rel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; z-index: -2; transition: opacity 0.3s var(--ease), transform 0.5s var(--ease); }
.rel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 13, 0.35), rgba(10, 10, 13, 0.94)); }
.rel:hover img { opacity: 0.7; transform: scale(1.03); }
.rel__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.rel__body h3 { font-size: 1.25rem; }
.rel__body p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } .rel { min-height: 200px; } }

/* ---------- 18. Ads ---------- */
.ad {
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px dashed rgba(237, 237, 240, 0.09);
  border-radius: var(--r);
  background: rgba(20, 20, 26, 0.4);
  color: var(--muted-2);
  font-family: var(--font-num);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  overflow: hidden;
}
/* Ad slots ship hidden and reserve an exact footprint, so enabling them later
   causes no layout shift. site.js un-hides a slot only when a zone loads. */
.ad[data-ad-state="reserved"][hidden] { display: none !important; }
.ad[data-ad-slot="home-top-728x90"] { width: min(728px, 100%); min-height: 90px; margin-block: clamp(1.25rem, 3vw, 2rem); }
.ad[data-ad-slot^="home-inline"],
.ad[data-ad-slot^="inner-inline"] { width: min(300px, 100%); min-height: 250px; margin-block: clamp(1.5rem, 3vw, 2.25rem); }
.ad[data-ad-slot="home-faq-smartlink"] { width: 100%; min-height: 60px; }
/* Mobile dock slot. Off by default: the sticky download CTA owns that screen
   edge. Enabled via CFG.ads.mobileSticky in site.js. */
.ad[data-ad-slot="mobile-sticky"] {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(58px + env(safe-area-inset-bottom));
  z-index: 89;
  width: 100%;
  min-height: 50px;
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
}
.ad[data-ad-slot="mobile-sticky"][data-ad-state="loaded"] { display: grid; }
.ad[hidden] { display: none !important; }
.ad > span { opacity: 0.5; }
@media (max-width: 700px) {
  .ad[data-ad-slot="home-top-728x90"] { display: none; }
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 0.6rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 11, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}
.mobile-cta[data-visible="true"] { transform: translateY(0); }
.mobile-cta .btn { flex: 1; }
.mobile-cta .btn:last-child { flex: 0 0 auto; }
@media (max-width: 760px) { .mobile-cta { display: flex; } }

/* ---------- 19. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(142, 29, 20, 0.12), transparent 70%),
    var(--bg-2);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.footer__cta h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); }
.footer__cta p { color: var(--muted); margin-top: 0.4rem; font-size: 0.9375rem; }
.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}
.footer__cols h3 {
  margin-bottom: 0.85rem;
  color: var(--muted-2);
  font-family: var(--font-num);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer__cols ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__cols a { color: var(--muted); font-size: 0.9375rem; }
.footer__cols a:hover { color: var(--gold); }
.footer__about p { color: var(--muted); font-size: 0.875rem; max-width: 42ch; }
.footer__legal {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer__legal p { max-width: 92ch; }
.footer__legal a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.footer__legal a:hover { color: var(--gold); }
@media (max-width: 860px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer { padding-bottom: 76px; }
}

/* ---------- 20. Motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.hero [data-reveal] { animation: rise 0.85s var(--ease) both; animation-delay: var(--d, 0ms); opacity: 1; transform: none; transition: none; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .hero [data-reveal] { animation: none; }
}

/* ---------- 21. Inner page specifics ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; opacity: 0.36; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(226, 58, 46, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 13, 0.72), rgba(10, 10, 13, 0.97));
}
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); margin-bottom: 1rem; max-width: 22ch; }
.page-hero .lead { max-width: 46rem; margin-bottom: 1.5rem; }

/* Visible freshness + provenance line. Search engines and readers both use it. */
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem clamp(0.6rem, 1.6vw, 1.1rem);
  margin-top: 1.15rem;
  font-family: var(--font-num);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.page-meta b { color: var(--gold); font-weight: 600; }
.page-meta .sep { width: 1px; height: 13px; background: var(--line-strong); flex: none; }

.crumbs { display: flex; gap: 0.5rem; align-items: center; color: var(--muted-2); font-size: 0.8125rem; margin-bottom: 1.1rem; font-family: var(--font-num); letter-spacing: 0.08em; }
/* WCAG 2.5.8: breadcrumb links are not inline-in-sentence, so they need a
   24x24 minimum target. A 21px text box plus padding gets there. */
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; padding-inline: 2px; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { opacity: 0.5; }

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: rgba(20, 20, 26, 0.8);
  font-family: var(--font-num);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

.prose { display: flex; flex-direction: column; gap: 1rem; }
.prose h2 { margin-top: 0.5rem; }
.prose ul li,
.prose-list li { position: relative; padding-left: 1.2rem; color: var(--muted); }
.prose ul li::before,
.prose-list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 1px; background: var(--red); }
.prose ul li strong,
.prose-list li strong { color: var(--text); }
.prose-list { display: flex; flex-direction: column; gap: 0.65rem; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { display: flex; flex-direction: column; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; }
.checklist li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
  border: 1px solid var(--gold-dim);
  border-radius: var(--r);
  background:
    linear-gradient(45deg, transparent 42%, var(--gold) 42%, var(--gold) 58%, transparent 58%) no-repeat 3px 8px / 6px 2px,
    linear-gradient(-45deg, transparent 42%, var(--gold) 42%, var(--gold) 58%, transparent 58%) no-repeat 7px 6px / 9px 2px,
    var(--gold-faint);
}
.checklist span { color: var(--muted); }
.checklist strong { color: var(--text); }

.callout {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.08), transparent);
}
.callout h3 { margin-bottom: 0.4rem; }
.callout p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- 22. Utilities ---------- */
.stack { display: flex; flex-direction: column; gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; }
.mt-l { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.mt-m { margin-top: clamp(1rem, 2vw, 1.5rem); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
}
.copy-btn[data-done="true"] { color: #9ad3a4; border-color: rgba(120, 190, 130, 0.4); }
