/* ==========================================================================
   Night Class Games — main stylesheet
   One shared file for every page. Sections map to future Astro components.
   Night: deep blue-black, warm off-white text, moonlight accent, and a colour
   per game. Restrained, but not colourless.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  color-scheme: dark;

  --bg: #0b0e14;              /* night sky, not pure black */
  --surface: #141a24;
  --text: #ecebe6;            /* ~16:1 on --bg */
  --muted: #8f96a3;           /* ~6:1 on --bg */
  --line: rgba(236, 235, 230, 0.12);
  --line-strong: rgba(236, 235, 230, 0.28);
  --accent: #f3c969;          /* moonlight: the dot, moon, hovers, focus */

  /* Each game sets --game on its slide/tab (see "Game colours" below) */
  --game: var(--accent);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-space: clamp(5rem, 12vw, 9rem);

  /* Faint squared grid for empty screenshot screens */
  --grid-paper:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(236, 235, 230, 0.035) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(236, 235, 230, 0.035) 23px 24px);
}

/* ---- Base -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(60rem 36rem at 85% -12%, rgba(110, 140, 220, 0.10), transparent 65%),
    var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

::selection { background: var(--accent); color: var(--bg); }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* The accent full stop: "after dark." */
.dot { color: var(--accent); }

/* Underlined text link; the line turns accent on hover */
.text-link {
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.15s;
}
.text-link:hover { border-color: var(--accent); }

/* ---- Buttons ----------------------------------------------------------- */
/* Anything you can press or that leads somewhere important is a .btn,
   so actions are easy to tell apart from text. */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.875rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 600 0.9375rem/1 var(--font);
  color: var(--text);
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
a.btn:hover { border-color: var(--text); background: rgba(236, 235, 230, 0.06); }

/* Main action: moonlight fill */
.btn--primary { background: var(--accent); border-color: var(--accent); color: #1a1406; }
a.btn--primary:hover { background: #f8d98d; border-color: #f8d98d; }

/* Store links once live: filled in the game's own colour */
.btn--game { background: var(--game); border-color: var(--game); color: #0b0e14; }
a.btn--game:hover { background: color-mix(in srgb, var(--game) 80%, #fff); border-color: transparent; }

/* Not available yet: dashed, tinted in the game's colour, not clickable */
.btn--soon {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--game) 55%, transparent);
  background: color-mix(in srgb, var(--game) 10%, transparent);
  color: color-mix(in srgb, var(--game) 65%, var(--text));
  font-weight: 500;
  cursor: default;
}

.btn--sm { min-height: 2.375rem; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; }

/* ---- Site header ------------------------------------------------------- */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand svg { width: 1.375rem; height: 1.375rem; flex: none; }

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 26rem) {
  .brand-name { display: none; } /* logo mark only on small phones */
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(6rem, 18vw, 13rem) clamp(4rem, 10vw, 7rem);
}
.hero > :not(.hero-sky) { position: relative; z-index: 1; }

/* Moon and stars behind the headline */
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.hero-sky .stars { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--text); }
.hero-sky .moon {
  position: absolute;
  top: clamp(2.5rem, 9vw, 6rem);
  right: 0;
  width: clamp(9rem, 24vw, 16rem);
  color: var(--accent);
}
@media (max-width: 40rem) {
  .hero-sky .moon { top: 0; width: 5.5rem; }
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.hero p {
  max-width: 30rem;
  margin: 2.25rem 0 0;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--muted);
}
.hero .btn-row { margin-top: 2.25rem; }

/* Sky state, set by sky.js from the time in Sligo. Night is the default. */
.hero-sky .stars,
.hero-sky .moon { transition: opacity 1.2s ease, transform 1.2s ease; }
.hero[data-sky="day"] .stars { opacity: 0.2; }
.hero[data-sky="day"] .moon { opacity: 0.3; transform: translateY(1.5rem); }

@media (prefers-reduced-motion: no-preference) {
  .hero[data-sky="night"] .stars g > * { animation: twinkle 5s ease-in-out infinite; }
  .hero[data-sky="night"] .stars g > :nth-child(2n) { animation-duration: 7s; animation-delay: -2s; }
  .hero[data-sky="night"] .stars g > :nth-child(3n) { animation-duration: 4s; animation-delay: -3s; }
}
@keyframes twinkle { 50% { opacity: 0.1; } }

/* "It's 23:40 in Sligo." The lamp is lit after dark. */
.hero .sky-clock {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.sky-clock::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  vertical-align: 0.05em;
}
.hero[data-sky="night"] .sky-clock::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0.6rem color-mix(in srgb, var(--accent) 70%, transparent);
}

/* ---- Sections ---------------------------------------------------------- */
.section { padding-bottom: var(--section-space); }

/* Section label: small text on a hairline, with an index number */
.label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

/* Content sits in the right two-thirds on wide screens */
.split { display: grid; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 3.5rem; }
  .split > * { grid-column: 2; }
}

.statement {
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ---- Game colours ------------------------------------------------------ */
/* One colour per game, set on its slide and its tab. Pick each from the game's
   own art (the RPG's is still a placeholder). */
[data-theme="grave-harvest"] { --game: #69c7df; }  /* spectral cyan, from the raised skeletons */
[data-theme="rpg"]           { --game: #9a86ff; }  /* arcane violet */

/* ---- Games carousel ---------------------------------------------------- */
/* Swipe/scroll and the tab links work with CSS alone; carousel.js adds the
   arrow buttons, keeps the active tab in sync and dims the peeking cards. */

/* Tabs: one per game, so it's obvious there's more than one */
.carousel-nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.game-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1rem;
  flex: 1;
  max-width: 36rem;
}
.game-tabs a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--line);
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.game-tabs a:hover { color: var(--text); }
.game-tabs a[aria-current="true"] { color: var(--text); border-top-color: var(--game); }
.game-tab-index {
  grid-row: span 2;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
.game-tabs a[aria-current="true"] .game-tab-index { color: var(--game); }
.game-tab-title { font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-tab-meta { font-size: 0.8125rem; color: var(--muted); }

.carousel-arrows { display: flex; gap: 0.5rem; }
.carousel-arrows[hidden] { display: none; }
@media (max-width: 40rem) { .carousel-arrows { display: none; } } /* phones swipe */
.carousel-arrows button {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 1.125rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, opacity 0.15s;
}
.carousel-arrows button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.carousel-arrows button:disabled { opacity: 0.3; cursor: default; }

/* Track: cards are narrower than the track, so the next/previous card peeks in */
.carousel-track {
  --peek: clamp(2.5rem, 7vw, 5.5rem); /* half of it must fit in --gutter */
  position: relative; /* slides' offsetLeft is measured from here */
  display: flex;
  gap: 1rem;
  padding-inline: calc(var(--peek) / 2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(var(--peek) / 2);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  margin-inline: calc(var(--peek) / -2); /* let the peek use the gutter */
}
@media (prefers-reduced-motion: no-preference) {
  .carousel-track { scroll-behavior: smooth; }
}
.carousel.is-enhanced .carousel-track { scrollbar-width: none; }
.carousel.is-enhanced .carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 calc(100% - var(--peek));
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: opacity 0.3s;
}
.carousel.is-enhanced .carousel-slide:not(.is-active) { opacity: 0.4; cursor: pointer; }
.carousel.is-enhanced .carousel-slide:not(.is-active):hover { opacity: 0.6; }

/* ---- Game card ---------------------------------------------------------- */
.game {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  align-content: start;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--game) 22%, var(--line));
  border-radius: 1rem;
  background:
    radial-gradient(40rem 26rem at 20% 0%, color-mix(in srgb, var(--game) 14%, transparent), transparent 70%),
    linear-gradient(180deg, #161d29, #10151e);
}
@media (min-width: 56rem) {
  .game { align-content: center; } /* side by side: centre shorter cards vertically */
  .game--mobile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
  .game--pc { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; }
}

/* Device frames around screenshots. Put an <img> inside .device-screen when ready. */
.device { position: relative; isolation: isolate; justify-self: center; width: 100%; }
/* Soft glow in the game's colour behind the device */
.device::before {
  content: "";
  position: absolute;
  inset: -10% -18%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--game) 26%, transparent), transparent);
}
.device-screen {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    var(--grid-paper),
    linear-gradient(160deg, color-mix(in srgb, var(--game) 20%, var(--surface)), var(--surface) 70%);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}
.device-screen:not(:has(img)) { border: 1px dashed var(--line-strong); } /* empty slot */
.device-screen img { width: 100%; height: 100%; object-fit: cover; }

.device--phone {
  max-width: 12.5rem;
  padding: 0.5rem;
  background: #050506;
  border: 1px solid var(--line-strong);
  border-radius: 2rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.device--phone .device-screen { aspect-ratio: 9 / 19.5; border-radius: 1.5rem; }
@media (min-width: 56rem) { .device--phone { max-width: 15rem; } }

.device--monitor { max-width: 40rem; }
.device-bezel {
  padding: 0.5rem;
  background: #050506;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.device--monitor .device-screen { aspect-ratio: 16 / 9; border-radius: 0.3rem; }
.device-neck {
  width: 14%;
  height: clamp(1.25rem, 4vw, 2.25rem);
  margin-inline: auto;
  background: #111113;
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}
.device-foot {
  width: 34%;
  height: 0.5rem;
  margin-inline: auto;
  background: #18181a;
  border-top: 1px solid var(--line-strong);
  border-radius: 0.5rem 0.5rem 0.2rem 0.2rem;
}

.game-title {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
/* Pixel-art game logo: a 1x image shown at a whole-number scale so pixels stay square */
.game-title--logo { margin-bottom: 1.25rem; }
.game-logo {
  width: 292px; /* 2× the 146px Grave Harvest file */
  height: auto;
  image-rendering: pixelated;
}
.game-pitch { margin-bottom: 2rem; color: var(--muted); }

/* Key/value list on hairlines; also used for the press fact sheet */
.facts { margin: 0 0 2rem; font-size: 0.9375rem; }
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { flex: none; color: var(--muted); }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

.status::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--game);
  vertical-align: 0.1em;
}


/* ---- Contact ----------------------------------------------------------- */
.contact-email {
  display: inline-block;
  font-size: clamp(1.25rem, 3.6vw, 2.75rem); /* sized to stay on one line */
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--line);
  transition: border-color 0.15s;
}
.contact-email:hover { border-color: var(--accent); }

.social-links { margin-top: 2rem; }
/* Placeholder links stay visibly unfinished until real URLs go in */
.social-links a[data-placeholder] { border-style: dashed; color: var(--muted); }

/* ---- Inner pages ------------------------------------------------------- */
.page-header { padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 7vw, 5rem); }
.page-header h1 {
  margin-bottom: 0.4em;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.page-header p { max-width: 36rem; margin: 0; color: var(--muted); }
.page-header a { border-bottom: 1px solid var(--line-strong); }
.page-header a:hover { border-color: var(--accent); }

.page-body { padding-bottom: var(--section-space); }

/* Long-form text: privacy policy, press copy */
.prose { max-width: 42rem; }
.prose > :first-child,
.prose > :first-child > h2:first-child { margin-top: 0; }
.prose h2 {
  margin: 3.5rem 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
}
.prose h3 { margin: 2.25rem 0 0.75rem; font-size: 1.0625rem; letter-spacing: -0.01em; }
.prose p,
.prose li { color: #cfcec9; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { border-bottom: 1px solid var(--line-strong); }
.prose a:hover { border-color: var(--accent); }
.prose ul,
.prose ol { margin: 0 0 1em; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--muted); }

.table-wrap { margin: 1.25rem 0 1.5rem; overflow-x: auto; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.prose table.table--wide { min-width: 32rem; } /* scrolls sideways in .table-wrap on phones */
.prose th,
.prose td {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 400; color: var(--muted); }
.prose thead th { border-bottom-color: var(--line-strong); }

/* Author notes. Remove each one once it's dealt with. */
.callout {
  margin: 0 0 2.5rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--accent);
  font-size: 0.9375rem;
}
.callout > :last-child { margin-bottom: 0; }

/* Fill-in-the-blank values: grep for class="fill" before launch */
mark.fill {
  padding: 0 0.2em;
  background: rgba(243, 201, 105, 0.14);
  color: var(--accent);
}

/* ---- Press kit --------------------------------------------------------- */
.press-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* stops wide content stretching the column */
  gap: clamp(3rem, 6vw, 4rem);
}
@media (min-width: 56rem) {
  .press-layout { grid-template-columns: 17rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .press-layout > aside { position: sticky; top: 2rem; }
}
.press-layout > aside .label { margin-bottom: 0.5rem; }
.press-layout > aside .facts > div { display: block; }
.press-layout > aside .facts dd { text-align: left; }

/* Empty asset slots, replaced by <img> as assets arrive */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}
.slot-grid--portrait { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
.slot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1rem;
  background: var(--surface);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}
.slot--portrait { aspect-ratio: 9 / 16; }
.slot--square { aspect-ratio: 1; }
.slot--light { background: var(--text); color: #4a4a46; }

/* Downloadable asset: a thumbnail and caption linking to the full-size file */
.prose a.asset { border: 0; }
.asset {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}
.asset img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  transition: border-color 0.15s;
}
.asset:hover img { border-color: var(--accent); }
.asset strong { font-weight: 500; color: var(--text); }
.asset--portrait img { aspect-ratio: 9 / 16; }
.asset--logo img { object-fit: contain; padding: 1.5rem; image-rendering: pixelated; }

/* ---- Game page (/grave-harvest) ---------------------------------------- */
/* The banner is the one boxed, glowing element; the rest stays flat like the homepage. */
.game-hero { padding-block: 0.5rem var(--section-space); }
.game-banner img {
  width: 100%;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--game) 30%, var(--line));
  border-radius: 1rem;
  box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--game) 45%, transparent);
}

.game-intro { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 56rem) {
  .game-intro { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 4rem; align-items: start; }
  .game-intro .game-logo { width: 438px; } /* 3× */
}
.game-intro h1 { margin: 0 0 1.5rem; }
.game-summary { max-width: 34rem; margin-bottom: 2rem; color: var(--muted); }
.lede {
  max-width: 34rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* Gameplay clips, each in a phone frame */
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 3rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clip-grid li { display: grid; justify-items: center; gap: 1.25rem; }
.clip-grid p { margin: 0; max-width: 15rem; font-size: 0.875rem; text-align: center; color: var(--muted); }

.feature-list {
  display: grid;
  gap: 2.5rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) { .feature-list { grid-template-columns: 1fr 1fr; } } /* 2×2 for four features */
.feature-list li { padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--game) 50%, var(--line)); }
.feature-list h3 { margin-bottom: 0.6rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.feature-list p { margin: 0; color: var(--muted); }

/* FAQ: native <details>, so it opens without JS. The + turns to × when open. */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.15rem;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--game);
  transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: color-mix(in srgb, var(--game) 35%, var(--text)); }
.faq details > p { max-width: 38rem; margin: 0 0 1.4rem; color: #cfcec9; }
.faq a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.15s; }
.faq a:hover { border-color: var(--game); }

.game-press-links { margin-top: 2rem; }

/* ---- 404 --------------------------------------------------------------- */
.not-found {
  min-height: 70vh;
  padding-block: clamp(4rem, 14vw, 10rem) var(--section-space);
}
.not-found h1 {
  margin-bottom: 0.4em;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}
.not-found p:not(.label) { max-width: 30rem; color: var(--muted); }
.not-found .btn-row { margin-top: 2rem; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { font-size: 0.875rem; color: var(--muted); }
.site-footer .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem 2.5rem;
}
/* Hairline inset to the content width, matching the section labels */
.site-footer .container::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: var(--gutter);
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; }
.site-footer ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a:hover { color: var(--text); }
