/* ==========================================================================
   omegagamesonline.com — the one stylesheet.
   Order: fonts, tokens, reset, base, layout, components, utilities, media.
   Dark arcade base; one cyan accent, one magenta accent used sparingly.
   Body text is >= 4.5:1 on its background everywhere.
   ========================================================================== */

/* --------------------------------------------------------------- 1. fonts */
/* Exo and Anton, SIL Open Font License 1.1. Licence text lives beside the
   files: /assets/fonts/Exo-OFL.txt and /assets/fonts/Anton-OFL.txt          */
@font-face {
  font-family: "Exo";
  src: url("/assets/fonts/exo-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Exo";
  src: url("/assets/fonts/exo-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Exo";
  src: url("/assets/fonts/exo-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* -------------------------------------------------------------- 2. tokens */
:root {
  /* surfaces, darkest to lightest */
  --c-bg:        #090c13;
  --c-surface:   #0e1320;
  --c-raised:    #151c2c;
  --c-raised-2:  #1d2637;
  --c-line:      #26314a;
  --c-line-soft: #1a2233;

  /* ink — contrast against --c-bg / --c-surface
     ink 17.1:1 · ink-2 10.1:1 · ink-3 6.3:1 — worst case, on --c-raised-2,
     is 13.3 / 7.8 / 4.9, all past 4.5:1                                   */
  --c-ink:    #eaf0fa;
  --c-ink-2:  #aebbd0;
  --c-ink-3:  #8493ab;

  /* accents */
  --c-accent:      #5ce1ff;   /* cyan    — 12.7:1 on --c-bg */
  --c-accent-deep: #22b8dd;
  --c-accent-2:    #ff63b8;   /* magenta —  7.2:1 on --c-bg */
  --c-on-accent:   #041019;   /* on cyan 12.5:1, on magenta 7.1:1 */
  --c-warn:        #ffc65c;

  /* type */
  --ff-body: "Exo", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
             Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-display: "Anton", "Exo", ui-sans-serif, system-ui, "Segoe UI",
                Impact, sans-serif;
  --ff-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
             "Liberation Mono", monospace;

  --fs-xs:  0.8125rem;
  --fs-sm:  0.9375rem;
  --fs-base: 1.0625rem;                       /* 17px */
  --fs-lg:  clamp(1.125rem, 0.35vw + 1.05rem, 1.3125rem);
  --fs-h3:  clamp(1.25rem, 0.7vw + 1.1rem, 1.5rem);
  --fs-h2:  clamp(1.6rem, 1.6vw + 1.2rem, 2.25rem);
  --fs-h1:  clamp(2.1rem, 4.2vw + 1.15rem, 3.5rem);
  --fs-display: clamp(2.6rem, 6vw + 1rem, 4.5rem);

  --lh-tight: 1.1;
  --lh-head: 1.18;
  --lh-body: 1.65;
  --tracking-display: 0.01em;
  --tracking-caps: 0.14em;

  /* space — 4px base */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.75rem;  --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* radii */
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 18px; --r-pill: 999px;

  /* shadows + glow */
  --sh-1: 0 1px 2px rgb(0 0 0 / .40);
  --sh-2: 0 6px 18px -6px rgb(0 0 0 / .55);
  --sh-3: 0 18px 44px -14px rgb(0 0 0 / .70);
  --glow: 0 0 0 1px rgb(92 225 255 / .35), 0 8px 30px -10px rgb(92 225 255 / .35);

  /* layout */
  --w-container: 72rem;   /* 1152px */
  --w-prose: 44rem;       /* readable measure for policy pages */
  --gutter: var(--sp-5);
  --header-h: 60px;

  --t-fast: 120ms; --t: 200ms; --t-slow: 380ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------- 3. reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }
:target { scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }

/* ---------------------------------------------------------------- 4. base */
html { color-scheme: dark; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--c-bg);
  background-image:
    radial-gradient(1200px 520px at 50% -180px, rgb(92 225 255 / .10), transparent 70%),
    radial-gradient(900px 420px at 100% 0, rgb(255 99 184 / .06), transparent 65%);
  background-repeat: no-repeat;
  color: var(--c-ink-2);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4 { color: var(--c-ink); line-height: var(--lh-head); text-wrap: balance; }
h1 { font-family: var(--ff-display); font-size: var(--fs-h1); font-weight: 400;
     letter-spacing: var(--tracking-display); line-height: var(--lh-tight); }
h2 { font-family: var(--ff-display); font-size: var(--fs-h2); font-weight: 400;
     letter-spacing: var(--tracking-display); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-lg); font-weight: 600; }

p, li { text-wrap: pretty; }
strong, b { color: var(--c-ink); font-weight: 700; }
small { font-size: var(--fs-sm); }
hr { border: 0; border-top: 1px solid var(--c-line-soft); margin: var(--sp-6) 0; }

a { color: var(--c-accent); text-decoration-color: rgb(92 225 255 / .45);
    text-underline-offset: 0.18em; transition: color var(--t-fast) var(--ease); }
a:hover { color: #b6f1ff; text-decoration-color: currentColor; }

code, kbd, samp { font-family: var(--ff-mono); font-size: 0.9em;
  background: var(--c-raised); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-1); padding: 0.1em 0.35em; }

/* focus — always visible, never removed */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-1);
}
:focus:not(:focus-visible) { outline: none; }

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

.skip-link {
  position: absolute; left: var(--sp-3); top: var(--sp-3); z-index: 100;
  transform: translateY(-200%);
  background: var(--c-accent); color: var(--c-on-accent);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-2);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* -------------------------------------------------------------- 5. layout */
.container {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 84rem; }
.container--prose { max-width: var(--w-prose); }

.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-6); }
.section--lead { padding-block: var(--sp-7) var(--sp-8); }
.section + .section { padding-top: 0; }
.section--edge { border-top: 1px solid var(--c-line-soft); padding-top: var(--sp-8); }

.stack > * + * { margin-top: var(--sp-4); }
.stack--lg > * + * { margin-top: var(--sp-6); }
.stack--sm > * + * { margin-top: var(--sp-2); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.cluster--between { justify-content: space-between; }

/* readable body copy for policy / about pages */
.prose { color: var(--c-ink-2); }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--sp-3); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--sp-2); }
.prose li::marker { color: var(--c-accent-deep); }
.prose a { font-weight: 600; }

.section-head { margin-bottom: var(--sp-5); }
.section-head p { color: var(--c-ink-2); max-width: 46ch; margin-top: var(--sp-2); }

.eyebrow {
  display: block;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--c-accent); margin-bottom: var(--sp-2);
}

/* ---------------------------------------------------------- 6. header/nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--header-h);
  background: rgb(9 12 19 / .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line-soft);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; margin-right: auto; padding-block: var(--sp-2); }
.brand img { height: 30px; width: auto; }
.brand:hover { filter: brightness(1.12); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-line); border-radius: var(--r-2);
  color: var(--c-ink); font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--c-accent-deep); }
.nav-toggle__bars { display: block; width: 18px; height: 2px;
  background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: currentColor; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-nav ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.site-nav a {
  display: block; padding: var(--sp-3) var(--sp-3);
  color: var(--c-ink); text-decoration: none; font-weight: 600;
  border-radius: var(--r-2);
}
.site-nav a:hover { background: var(--c-raised); color: var(--c-accent); }
.site-nav a[aria-current="page"] { color: var(--c-accent); }
.site-nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--c-accent); border-radius: var(--r-pill);
}

/* mobile: the nav collapses behind the toggle */
@media (max-width: 47.99em) {
  .site-nav {
    display: none;
    padding: var(--sp-2) 0 var(--sp-4);
    border-top: 1px solid var(--c-line-soft);
  }
  .site-nav.is-open { display: block; }
}

/* ---------------------------------------------------------------- 7. hero */
.hero { padding-block: var(--sp-8) var(--sp-7); }
.hero__title { font-size: var(--fs-display); }
.hero__lede { font-size: var(--fs-lg); color: var(--c-ink-2); max-width: 54ch;
  margin-top: var(--sp-4); }
.hero__actions { margin-top: var(--sp-6); }

.hero--game { display: grid; gap: var(--sp-6); align-items: center; }
.hero--game .hero__art {
  border-radius: var(--r-4); overflow: hidden;
  border: 1px solid var(--c-line); box-shadow: var(--sh-3);
}
.hero--game .hero__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* --------------------------------------------------------------- 8. cards */
.card {
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: var(--sh-2);
  transition: transform var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.card:hover, .card:focus-within {
  transform: translateY(-3px);
  border-color: var(--c-accent-deep);
  box-shadow: var(--sh-3);
}
.card__media { position: relative; background: var(--c-raised); }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column;
  gap: var(--sp-3); flex: 1; }
.card__title { font-size: var(--fs-h3); font-weight: 700; color: var(--c-ink); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--c-accent); }
.card__text { color: var(--c-ink-2); font-size: var(--fs-sm); flex: 1; }
.card__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: auto; padding-top: var(--sp-2); }

/* a bare panel: same skin, no hover lift */
.panel {
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-4);
  padding: var(--sp-5);
}
.panel--accent { border-color: var(--c-accent-deep);
  box-shadow: inset 0 0 0 1px rgb(92 225 255 / .10); }

.notice {
  border-left: 3px solid var(--c-warn);
  background: var(--c-raised);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
}

/* ------------------------------------------------------------- 9. buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;                 /* comfortable touch target */
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-accent); color: var(--c-on-accent);
  box-shadow: 0 6px 20px -8px rgb(92 225 255 / .8);
}
.btn--primary:hover { background: #8aecff; color: var(--c-on-accent); }

.btn--play {
  background: linear-gradient(100deg, var(--c-accent), var(--c-accent-2));
  color: var(--c-on-accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding-inline: var(--sp-6);
  box-shadow: 0 8px 26px -10px rgb(255 99 184 / .75);
}
.btn--play:hover { color: var(--c-on-accent); filter: brightness(1.08); }

.btn--ghost {
  border-color: var(--c-line); color: var(--c-ink); background: var(--c-raised);
}
.btn--ghost:hover { border-color: var(--c-accent-deep); color: var(--c-accent);
  background: var(--c-raised-2); }

.btn--quiet { color: var(--c-ink-2); padding-inline: var(--sp-3); }
.btn--quiet:hover { color: var(--c-accent); }

.btn--lg { min-height: 52px; font-size: var(--fs-base); padding-inline: var(--sp-6); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--c-raised); color: var(--c-ink-3);
  border-color: var(--c-line-soft); box-shadow: none;
  cursor: not-allowed; pointer-events: none;
}

/* --------------------------------------------------------------- 10. pill */
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.25rem var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-raised);
  color: var(--c-ink-2);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill--accent { border-color: var(--c-accent-deep); color: var(--c-accent); }
.pill--soon { border-style: dashed; color: var(--c-ink-3); }
.pill-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ------------------------------------------------------------ 11. gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--sp-3);
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-3);
  border: 1px solid var(--c-line-soft);
  background: var(--c-raised);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.gallery a { display: block; border-radius: var(--r-3); }
.gallery a:hover img { border-color: var(--c-accent); transform: scale(1.015); }
.gallery figcaption { font-size: var(--fs-xs); color: var(--c-ink-3);
  margin-top: var(--sp-2); }

/* Portrait shots (Necrowave is a portrait phone game). The base .gallery
   locks every frame to 16/9 and object-fit: cover, which crops a 540x1170
   screenshot down to a letterbox strip. This modifier narrows the columns
   and swaps in the phone aspect. Nothing outside .gallery--portrait moves. */
.gallery--portrait {
  /* 8.5rem keeps two portrait frames side by side on a 360px phone; the
     16/9 gallery's 15rem minimum would drop to a single 676px-tall image. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
}
.gallery--portrait img { aspect-ratio: 540 / 1170; object-fit: contain; }

/* Hero art wider than 16/9 (Necrowave's cover is 2.05:1, from the Play
   feature graphic). Cover-cropping it to 16/9 clips the wordmark, so this
   one keeps its own ratio. */
.hero--game .hero__art--wide img { aspect-ratio: 1280 / 625; object-fit: contain; }

/* lightbox — progressive enhancement; without JS the links open the image */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: none; place-items: center;
  background: rgb(4 6 10 / .92);
  padding: var(--sp-5);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img { max-width: min(100%, 1100px); max-height: 82vh;
  width: auto; border-radius: var(--r-3); box-shadow: var(--sh-3); }
.lightbox__close {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  min-height: 44px; min-width: 44px;
  border-radius: var(--r-pill); border: 1px solid var(--c-line);
  background: var(--c-surface); color: var(--c-ink);
  font-size: 1.25rem; cursor: pointer;
}
.lightbox__caption { color: var(--c-ink-2); font-size: var(--fs-sm);
  text-align: center; margin-top: var(--sp-3); }

/* --------------------------------------------------------------- 12. data */
.facts { border: 1px solid var(--c-line-soft); border-radius: var(--r-3);
  overflow: hidden; }
.facts th, .facts td {
  text-align: left; padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-line-soft); font-size: var(--fs-sm);
  vertical-align: top;
}
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { color: var(--c-ink); font-weight: 600; white-space: nowrap;
  background: var(--c-surface); width: 12rem; }
.facts td { color: var(--c-ink-2); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative;
  padding-left: 3rem; min-height: 2rem; }
.steps li + li { margin-top: var(--sp-4); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.1em;
  display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: var(--r-pill);
  background: var(--c-raised); border: 1px solid var(--c-accent-deep);
  color: var(--c-accent); font-weight: 700; font-size: var(--fs-sm);
  line-height: 1;
}

/* ------------------------------------------------------------- 13. footer */
.site-footer {
  margin-top: var(--sp-9);
  border-top: 1px solid var(--c-line-soft);
  background: var(--c-surface);
  padding-block: var(--sp-7) var(--sp-6);
  font-size: var(--fs-sm);
}
.site-footer__grid { display: grid; gap: var(--sp-6); }
.site-footer h2 {
  font-family: var(--ff-body); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--c-ink-3); margin-bottom: var(--sp-3);
}
.site-footer ul { display: grid; gap: var(--sp-2); }
.site-footer a { color: var(--c-ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; }
.site-footer__brand img { height: 40px; width: auto; margin-bottom: var(--sp-3); }
.site-footer__brand p { color: var(--c-ink-3); max-width: 34ch; }
.site-footer__legal {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line-soft);
  color: var(--c-ink-3); font-size: var(--fs-xs);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
}

/* --------------------------------------------------- 14. the /play/ frame */
.play-body { display: flex; flex-direction: column; height: 100vh;
  height: 100dvh; overflow: hidden; background: #000; }
.play-bar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line-soft);
  font-size: var(--fs-sm);
}
.play-bar a { color: var(--c-ink); text-decoration: none; font-weight: 600; }
.play-bar a:hover { color: var(--c-accent); }
.play-bar__title { color: var(--c-ink-3); margin-right: auto; }
.play-stage { flex: 1 1 auto; min-height: 0; }
.play-stage iframe { width: 100%; height: 100%; border: 0; display: block;
  background: #000; }

/* --------------------------------------------------------- 15. utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.text-center { text-align: center; }
.text-muted { color: var(--c-ink-3); }
.text-accent { color: var(--c-accent); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.full-bleed-img { width: 100%; border-radius: var(--r-4);
  border: 1px solid var(--c-line-soft); }

/* ---------------------------------------------------------- 16. responsive */
@media (min-width: 36em) {
  :root { --gutter: var(--sp-6); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 48em) {
  :root { --header-h: 68px; }
  .site-nav { display: block !important; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--sp-2); }
  .site-nav a { padding: var(--sp-2) var(--sp-3); }
  .nav-toggle { display: none; }
  .brand img { height: 34px; }
  .hero--game { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 62em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hero--game { grid-template-columns: 1.05fr 1fr; }
}

/* ----------------------------------------------------------- 17. a11y/print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .card:focus-within { transform: none; }
  .gallery a:hover img { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --c-ink-2: #d3ddec; --c-ink-3: #a9b6cc; --c-line: #3a4a6b; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .btn, .lightbox { display: none !important; }
  a { color: #000; text-decoration: underline; }
}

/* ------------------------------------------- 14b. play bar, added details
   Appended for the /play/<slug>/ shells: the back link carries the omega
   mark beside its label, so it needs to be a flex row; and the bar's own
   buttons sit tighter than a page button without dropping under 44px.     */
.play-bar a { display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; }
.play-bar .btn { padding-inline: var(--sp-3); font-size: var(--fs-xs); }
/* footer and policy-row links are plain text; give them a 44px-tall hit area
   without changing how the rows look. */
.site-footer li > a { display: inline-flex; align-items: center; min-height: 44px; }

/* ------------------------------------------- 15b. centring utilities, added
   The home hero and the 404 page centre a lede and a button row. Two small
   utilities so neither page needs an inline style; tokens only, no new
   colours or sizes.                                                        */
.cluster--center { justify-content: center; }
.mx-auto { margin-inline: auto; }

/* --------------------------------------- 13b. header & footer lists, added
   The reset only strips markers from ul[class], but the nav and footer lists
   in templates/page.html are plain <ul> — so every page was rendering bullet
   points and the browser's default list padding in the header and footer.
   And .site-footer ul { display: grid } outranked .cluster, which stacked the
   policy row vertically instead of laying it out in a line. Fixed here rather
   than by hanging classes off the shared template.                         */
.site-nav ul, .site-footer ul { list-style: none; padding-left: 0; }
.site-footer ul.cluster { display: flex; }
