/* ==========================================================================
   NEBULA ARCADE — Shared Design System (Cabinet Edition)
   Pure CSS. Zero dependencies beyond Google Fonts. Matches the homepage's
   arcade-cabinet aesthetic: black lacquer, mono labels, lime/magenta/cyan
   accents, square corners, subtle film grain.

   Policy-critical values (do not reduce):
     --ad-gap: 32px          buffer around ad slots
     --canvas-buffer: 48px   buffer around the game canvas
   All ad slots are reserved with min-height → zero layout shift.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&family=Press+Start+2P&display=swap');

:root {
  /* palette — mirrors the homepage reskin exactly */
  --bg: #0a0a0c;
  --bg-raised: #101014;
  --bg-card: #121217;
  --border: #222228;
  --border-strong: #2f2f38;
  --text: #ededf1;
  --text-muted: #8b8b96;
  --accent: #c8ff3e;        /* lime */
  --accent-strong: #d9ff70;
  --accent-warm: #ff3dbe;  /* magenta */
  --cy: #4df0ff;            /* cyan */
  --success: #c8ff3e;
  --danger: #ff5d5d;

  /* type */
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --px: 'Press Start 2P', monospace;

  /* geometry — square edges, cabinet style */
  --radius: 0px;
  --radius-sm: 0px;
  --maxw: 1280px;

  /* AdSense placement buffers — never reduce these */
  --ad-gap: 32px;
  --canvas-buffer: 48px;

  /* Display Safe Area variables */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* film grain — decorative, same as homepage */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 300;
  pointer-events: none;
  opacity: .03;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

img, canvas, video, svg { max-width: 100%; }

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

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

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

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.site-header {
  background: rgba(10, 10, 12, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--text);
}

.brand .logo {
  font-family: var(--px);
  font-size: 10px;
  color: #000;
  background: var(--accent);
  padding: 5px 6px;
  line-height: 1;
  border-radius: 0;
}

.brand-img, .logo__img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--accent, #c8ff3e);
  box-shadow: 0 0 10px rgba(200, 255, 62, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  vertical-align: middle;
}

.brand:hover .brand-img, .logo:hover .logo__img {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 16px rgba(200, 255, 62, 0.5);
}

.brand small {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--cy);
  letter-spacing: .3em;
  font-weight: 400;
}

.main-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-left: auto;
}

.main-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color .2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.main-nav a:hover::after { width: 100%; }

/* --------------------------------------------------------------------------
   Hero (guides hub)
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(40px, 6vh, 64px) 0 clamp(28px, 4vh, 44px);
  background: transparent;
  position: relative;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  margin: 14px 0 10px;
  max-width: 26ch;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.hero .lede {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 22px;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Cards & catalog grid (guides hub)
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}

.section-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); text-transform: uppercase; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .3s, transform .3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.game-card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  position: relative;
}

.game-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.15) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.game-card .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.game-card h3 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; }

.game-card h3 a { color: var(--text); }
.game-card h3 a:hover { color: var(--accent); }

.game-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.55;
  flex: 1;
}

.game-card .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tag.is-active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

/* Category filter bar (homepage legacy / guides) */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.filter-bar button {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 9px 14px;
  cursor: pointer;
  transition: color .12s ease, background .12s ease;
}

.filter-bar button:hover { color: var(--text); border-color: var(--accent); }

.filter-bar button[aria-pressed="true"] {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

#catalogStatus {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  margin: -14px 0 18px;
}

/* --------------------------------------------------------------------------
   Article / editorial layer
   -------------------------------------------------------------------------- */

.page-title {
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.02;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.article-body {
  font-size: 16.5px;
  color: var(--text);
}

.article-body h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin: 2.2em 0 .6em;
  scroll-margin-top: 84px;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.article-body h3 {
  font-size: 1.1rem;
  margin: 1.8em 0 .5em;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.article-body p { margin: 0 0 1em; }

.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: .5em; }

.article-body strong { color: var(--accent-strong); }
.article-body a { color: var(--cy); border-bottom: 1px solid rgba(77, 240, 255, .35); }
.article-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Controls / spec tables */
.controls-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.6em;
  font-size: .92rem;
}

.controls-table th, .controls-table td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.controls-table thead th {
  background: var(--bg-raised);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
}

.controls-table td kbd {
  font-family: var(--mono);
  font-size: .82rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  padding: 2px 8px;
  white-space: nowrap;
  color: var(--cy);
}

/* FAQ accordion — real content in DOM for crawlers; JS only toggles */
.faq-item { border-bottom: 1px solid var(--border); }

.faq-item h3 { margin: 0; text-transform: none; letter-spacing: 0; }

.faq-item .faq-q {
  font: inherit;
  font-weight: 700;
  width: 100%;
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
  padding: 16px 44px 16px 2px;
  cursor: pointer;
  position: relative;
}

.faq-item .faq-q::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[data-open="true"] .faq-q::after { content: "–"; }

.faq-item .faq-a {
  padding: 0 8px 18px 2px;
  color: var(--text-muted);
  margin: 0;
}

.faq-item[data-open="false"] .faq-a { display: none; }

/* Breadcrumbs */
.breadcrumbs {
  padding: 18px 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--border-strong);
}


/* Hard separation between canvas and page chrome — GamePix/Poki dynamic scaling */
.canvas-zone {
  margin-block: 18px;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(8px, 2vw, 24px);
  box-sizing: border-box;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* Touch containment & gesture prevention — GamePix/Poki mobile standards */
.canvas-zone,
.canvas-zone canvas,
.mobile-touch-bar {
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;
}

/* All Zenzi Arcade canvases are 960×600 (16:10) logical — keep native ratio
   un-stretched while scaling fluidly across 320px–430px+ OLED viewports. */
.canvas-zone canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 75vh;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Fullscreen API styling — letterboxed black margins on OLED displays */
.canvas-zone:fullscreen,
.canvas-zone:-webkit-full-screen {
  background: #000;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
  margin: 0;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  gap: 12px;
}

.canvas-zone:fullscreen canvas,
.canvas-zone:-webkit-full-screen canvas {
  /* min() keeps the 16:10 ratio inside the viewport: width capped so the
     derived height (width ÷ 1.6) never exceeds 100vh → true letterbox fill */
  width: min(100vw, 160vh) !important;
  height: auto !important;
  max-width: 100vw;
  max-height: 100vh;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 0;
}

/* Cabinet corner brackets on the play zone (decorative) */
.canvas-zone::before,
.canvas-zone::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  z-index: 2;
  pointer-events: none;
}
.canvas-zone::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.canvas-zone::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

/* --------------------------------------------------------------------------
   Mobile Touch Action Bar (injected by mobile-enhancements.js)
   WCAG 2.2 AAA touch targets: min 48×48px per control.
   -------------------------------------------------------------------------- */

.mobile-touch-bar {
  display: none; /* hidden on desktop; shown on touch/coarse pointers below */
  width: 100%;
  margin: 10px auto 2px;
  padding: 4px;
  background: transparent;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.mobile-touch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 16px;
  background: #141419;
  border: 1px solid #2f2f38;
  border-radius: 6px;
  color: #ededf1;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
  transition: background .15s, border-color .15s, color .15s;
}

.mobile-touch-btn span:first-child {
  font-size: 17px;
  line-height: 1;
}

.mobile-touch-btn:hover,
.mobile-touch-btn:active {
  background: #252530;
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-touch-btn.primary {
  background: #1e2a10;
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-touch-btn.primary:hover,
.mobile-touch-btn.primary:active {
  background: #2b3a18;
}

/* Show the mobile bar only on touch devices / narrow screens */
@media (pointer: coarse), (max-width: 768px) {
  .mobile-touch-bar { display: flex; }

  /* WCAG 2.2 AAA touch targets: HUD ghost buttons (Undo / Restart / Mode)
     must present ≥48px hit boxes on touch contexts. Desktop styling above
     is untouched — this block only augments coarse pointers. */
  .game-hud .btn {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   Per-game verb controls (injected by mobile-enhancements.js from each
   page's [data-controls] JSON). Holds BLOW/HEAT/MARVER, FLASH, LAUNCH,
   course/sight steppers etc. Each button dispatches the engine's existing
   keyboard handler — zero engine-logic changes.
   -------------------------------------------------------------------------- */

.game-touch-controls {
  display: none; /* hidden on desktop; shown on touch/coarse pointers below */
  width: 100%;
  margin: 2px auto 0;
  padding: 2px;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.game-touch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px; /* WCAG AAA target at CSS scale — never downscaled by canvas */
  padding: 10px 18px;
  background: #141419;
  border: 1px solid #2f2f38;
  border-radius: 6px;
  color: #ededf1;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
  transition: background .15s, border-color .15s, color .15s;
}

.game-touch-btn.is-active {
  background: #1e2a10;
  border-color: var(--accent);
  color: var(--accent);
}

.game-touch-btn:hover,
.game-touch-btn:active {
  background: #252530;
  border-color: var(--accent);
  color: var(--accent);
}

@media (pointer: coarse), (max-width: 768px) {
  .game-touch-controls { display: flex; }
}

/* --------------------------------------------------------------------------
   Orientation Reminder Banner (GamePix style, portrait reminder)
   -------------------------------------------------------------------------- */

.orientation-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  padding-bottom: calc(14px + var(--sab, 0px));
  background: #131320;
  border-top: 2px solid var(--accent-warm);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  max-width: 100vw;
  box-sizing: border-box;
}

.orientation-banner.show {
  display: flex;
}

.orientation-dismiss {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 14px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.orientation-dismiss:hover {
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

.canvas-hint {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  margin: 0;
}

.canvas-hint kbd {
  font-family: var(--mono);
  font-size: .85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  padding: 1px 7px;
  color: var(--cy);
}

/* --------------------------------------------------------------------------
   Two-column game page layout
   -------------------------------------------------------------------------- */

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}

.game-main-col { min-width: 0; }

.game-side-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 84px;
}

.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
}

.side-card h2, .side-card h3 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.side-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-muted);
  font-size: .9rem;
}

.side-card li { margin-bottom: 6px; }
.side-card li a { color: var(--text-muted); transition: color .2s, padding-left .2s; }
.side-card li a:hover { color: var(--accent); padding-left: 6px; }

@media (max-width: 980px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-side-col { position: static; }
}

/* --------------------------------------------------------------------------
   Prose blocks, notes, buttons
   -------------------------------------------------------------------------- */

.note {
  background: rgba(200, 255, 62, .05);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: .95rem;
  margin: 1.2em 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 15px 24px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}

.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost { background: transparent; }

.btn--ghost:hover { background: transparent; }

/* HUD ghost buttons inside the canvas zone are smaller */
.game-hud .btn {
  padding: 8px 14px;
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   Footer — cabinet edition with the CONTINUE? signature
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-block: clamp(40px, 7vh, 68px) 26px;
}

.site-footer h2 {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent-warm);
  margin: 0 0 16px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.site-footer ul a {
  color: var(--text-muted);
  transition: color .2s, padding-left .2s;
}

.site-footer ul a:hover { color: var(--accent); padding-left: 6px; }

/* the signature — same word as the homepage */
.foot__word {
  font-weight: 900;
  font-size: clamp(2.2rem, 10vw, 8rem);
  line-height: .9;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  user-select: none;
  transition: color .6s, -webkit-text-stroke .6s;
  padding-block: 24px 8px;
}

.foot__word:hover { color: var(--accent); -webkit-text-stroke: 1px var(--accent); }

.site-footer .bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .site-footer .inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 12px;
  z-index: 400;
}

.skip-link:focus { left: 8px; }

.center { text-align: center; }
.muted { color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  body::after { animation: none; }
}
