/* ============================================================
   EMPIRIAN INTERACTIVE — empirian.ca
   "Dispatch Terminal" — the site reads like the software the game
   is about: cool slate, information-first density, and gold demoted
   from the whole palette to a priority accent.
   ============================================================ */

/* ---------- Fonts (self-hosted latin subset; no third-party requests,
   which keeps the privacy policy's "we load nothing from elsewhere"
   claim true and avoids the EU Google Fonts problem entirely) -------- */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/assets/fonts/space-grotesk.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2'); }

/* ---------- Tokens ----------
   Every surface, line and text colour in this file and in the staff portal
   resolves through the block below, so the palette moves in one edit rather
   than a rule-by-rule rewrite. Anything that hardcodes a colour instead is
   either a semantic accent (a role badge, a status pill, a rarity tier) or a
   bug — the darkening passes kept finding stragglers that were the latter. */
:root {
  /* Surfaces — neutral black, zero hue. The previous palette carried a blue
     cast in every surface, which fought the gold and made the whole page read
     cooler than the brand. Stepped so panels still read as layers. */
  --ink-base:  #030303;   /* page ground */
  --ink-panel: #0E0E0E;   /* raised panel */
  --ink-deep:  #000000;   /* inset / recessed */
  --panel-head: #0A0A0A;   /* panel header strip */
  --line:       #242424;   /* panel border */
  --line-soft:  #171717;   /* internal divider */

  /* Text — neutral greys, no blue cast */
  --text-hi:   #F5F5F5;
  --text-body: #9E9E9E;
  /* Mono labels run at 10px, so --muted has to clear 4.5:1 against
     --ink-base as small text. Re-measured after the move to black. */
  --muted:     #8A8A8A;

  /* Gold — priority accent only. If it is on screen twice, question it. */
  --gold:       #D4AF37;
  --gold-light: #F0D97C;
  --gold-deep:  #8C6D1F;

  /* Dispatch status colours. Semantic, and separate from the accent:
     red is priority, amber is pending, green is clear, blue is police. */
  --red-alert:  #E5484D;
  --red-dim:    #4A1B1D;
  --red-text:   #F0736E;   /* AA-passing red for small text on slate */
  --amber:      #E8A33D;
  --blue:       #5B8DEF;
  --live-green: #3DD68C;
  /* EMS is white on the star-of-life icon, so it is white here too — the
     card rule and the artwork have to agree or the colour-coding is a lie. */
  --ems-white:  #EDEDED;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  /* Near-flat: the terminal direction wants painted metal, not jewellery. */
  --gold-gradient: linear-gradient(175deg, #E2C55F 0%, #D4AF37 55%, #B08D22 100%);
  --nav-h: 64px;

  /* Sharp radii — software, not cards */
  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink-base);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a { color: var(--text-hi); text-decoration: underline; text-decoration-color: var(--gold-deep); text-underline-offset: 3px; }
p a:hover { color: var(--gold); }
::selection { background: var(--gold); color: var(--ink-base); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink-base);
  padding: 10px 18px; font-weight: 600; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Type utilities ---------- */
/* Small labels are monospaced in this direction — they read as field names
   on a console rather than as small-caps on a certificate. */
.eyebrow {
  font: 400 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-body);
  display: inline-flex; align-items: center; gap: 8px;
}
.chapter-plate, .sec-label {
  font: 400 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.chapter-plate { text-align: center; }
.sec-head { display: flex; flex-direction: column; gap: 13px; }
.mono, .mono-plate { font-family: var(--font-mono); }
.mono-plate { font-weight: 400; letter-spacing: 0.14em; }

/* Sentence case, near-white, tight. The uppercase gold treatment was the
   jeweller's-case direction; here the heading is a statement, not an engraving. */
.section-heading {
  font: 700 clamp(1.7rem, 3.2vw, 2.35rem)/1.16 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-hi);
  text-wrap: balance;
}
.centered { text-align: center; }
.section-sub { font: 400 17px/1.6 var(--font-body); color: var(--text-body); }

.gold-clip {
  background: var(--gold-gradient);
  color: var(--gold);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .gold-clip {
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    text-shadow: none;
  }
}

/* ---------- Hallmark divider ---------- */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; max-width: 520px; margin: 18px auto 0;
}
.divider span {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  transform-origin: center;
}
.divider i {
  width: 9px; height: 9px; flex: none;
  border: 1px solid var(--gold); transform: rotate(45deg);
}
.divider-red span { background: linear-gradient(90deg, transparent, var(--red-dim), transparent); }
.divider-red i { border-color: var(--red-alert); }
.js-anim .chapter-plate:not(.in) + .divider span { transform: scaleX(0); }
.js-anim .divider span { transition: transform 0.7s ease-out 0.15s; }

/* ---------- Buttons ---------- */
/* Flat, sharp, sentence-case. The gold glow and lift belonged to the
   jeweller's-case direction; software buttons do not hover off the page. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.01em;
  padding: 16px 26px; border-radius: var(--r-md);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--ink-base); font-weight: 700; }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line); color: var(--text-hi);
}
.btn-ghost:hover { background: var(--ink-panel); border-color: #333333; }
.btn-pill { border-radius: 999px; padding: 9px 22px; font-size: 13px; }
.btn-big { padding: 18px 34px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn-closing { width: min(420px, 100%); padding: 20px 40px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(3, 3, 3, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-deep); opacity: 0; transition: opacity 0.3s ease;
}
.nav.scrolled::after { opacity: 0.6; }
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  padding: 0 24px; position: relative;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 17px/1 var(--font-display);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold);
}
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 34px;
}
.nav-links a {
  position: relative;
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-body); padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--text-hi); }
.nav-links a:hover::after { transform: scaleX(1); }
/* the section a subpage belongs to keeps its underline */
.nav-links a[aria-current="page"] { color: var(--text-hi); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-icon { color: var(--text-body); display: inline-flex; transition: color 0.2s ease; }
.nav-icon:hover { color: var(--gold); }
.nav-burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--gold); transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--ink-deep);
  display: flex; align-items: center; justify-content: center;
}
/* WebKit's UA [hidden] rule is not !important — guard explicitly */
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.mobile-menu a {
  font: 700 24px/1 var(--font-display);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-hi);
}
.mobile-menu a:hover { color: var(--gold); }

/* The vertical "canvas frame" rails that used to run down both sides of
   the page are gone: at wide viewports they boxed in empty space, and the
   horizontal section rules carry the structure on their own. */
.framed { position: relative; }
/* ============================================================
   HERO
   ============================================================ */
/* Sized to what it holds, not to the viewport: a 100vh opener pushes the
   stats ledger and the game section out of the first screen. */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 68px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Depth comes from a cool wash behind the panel side, not a gold halo. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 66% 58% at 72% 40%, rgba(212, 175, 55, 0.05), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: 58px; align-items: center;
}
.hero-lead { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.hero-eyebrow svg { color: var(--gold); }
a.hero-eyebrow { text-decoration: none; transition: color 0.2s ease; }
a.hero-eyebrow:hover, a.hero-eyebrow:focus-visible { color: var(--gold-light); }

.hero-h1 {
  font: 700 clamp(2.05rem, 4.4vw, 3.8rem)/1.03 var(--font-display);
  letter-spacing: -0.025em; color: var(--text-hi); text-wrap: balance;
}
.hero-lede {
  font: 400 17px/1.62 var(--font-body);
  color: var(--text-body); max-width: 30rem;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- CAD panel: the game's own console, as the hero's proof ---------- */
.cad {
  background: var(--ink-panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 26px 64px -32px rgba(0, 0, 0, 0.85);
}
.cad-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; padding: 0 16px;
  background: var(--panel-head); border-bottom: 1px solid var(--line);
}
.cad-title { font: 500 10px/1 var(--font-mono); letter-spacing: 0.18em; color: var(--text-body); }
.cad-clock { font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--amber); }
.cad-art { display: block; }
.cad-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cad-rows { list-style: none; display: flex; flex-direction: column; }
.cad-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
}
.cad-row:last-child { border-bottom: none; }
/* The game's own incident icons, at the size the board uses them. Coloured
   dots were a stand-in; these are the real artwork, so the board on the site
   and the board in the game agree. */
.svc { width: 20px; height: auto; flex-shrink: 0; display: block; }
.cad-call {
  flex-grow: 1; min-width: 0;
  font: 400 11.5px/1.35 var(--font-mono); text-transform: uppercase;
  color: var(--text-hi);
}
.cad-state {
  font: 400 10px/1.35 var(--font-mono); letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.cad-state.st-red { color: var(--red-text); }

@media (max-width: 900px) {
  .hero { padding: calc(var(--nav-h) + 40px) 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-lede { max-width: none; }
}

/* ============================================================
   THE LEDGER (stats)
   ============================================================ */
/* A data strip, not a trophy shelf: tabular mono on hairline rules, sized
   so the numbers read as instrument values rather than as the page's hero. */
.ledger { background: var(--ink-base); border-bottom: 1px solid var(--line); }
.ledger-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: 8px;
  padding: 30px 0 26px; text-align: left;
}
.tile + .tile { padding-left: 34px; border-left: 1px solid var(--line-soft); }
.num {
  font: 500 clamp(1.55rem, 2.9vw, 2.05rem)/1.1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-hi);
}
.num .stat { color: var(--text-hi); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--live-green);
  box-shadow: 0 0 10px rgba(61, 214, 140, 0.55);
}
.js-anim .live-dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.label {
  font: 400 10px/1.4 var(--font-mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.ledger-caption {
  font: 400 10px/1.4 var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 26px;
}

@media (max-width: 720px) {
  .ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 22px 0 20px; }
  .tile + .tile { padding-left: 0; border-left: none; }
  .tile:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line-soft); }
  .tile:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
}

/* ============================================================
   CHAPTER I — THE FLAGSHIP (red vault room)
   ============================================================ */
/* The grid earns its place here: this section is about a CAD map, so a map
   grid is the subject's own material rather than decoration. It stays, and
   reads stronger now that the red wash is not competing with it. */
.game {
  position: relative; background: var(--ink-deep);
  padding: 104px 0 0; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.game-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 25%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 35%, black 25%, transparent 82%);
}
/* Two washes in the dispatch palette rather than one red mood: it reads as
   active incidents on a board instead of a red-lit room. */
.game-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 14% 16%, rgba(229, 72, 77, 0.07), transparent 46%),
    radial-gradient(ellipse at 86% 70%, rgba(212, 175, 55, 0.045), transparent 46%);
}
.pin { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--red-dim); }
.pin::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 43, 43, 0.35), transparent 70%);
  opacity: 0.5;
}
.js-anim .pin::after { animation: pin-pulse 4s ease-in-out infinite; }
.pin-1 { top: 22%; left: 14%; }
.pin-2 { top: 58%; left: 82%; }
.pin-2::after { animation-delay: 1.3s; }
.pin-3 { top: 78%; left: 28%; }
.pin-3::after { animation-delay: 2.6s; }
@keyframes pin-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }

.game .container { position: relative; }
.game .mono-plate { color: var(--red-text); }
/* Left-aligned like everything else in this direction, and set as a line off
   a console rather than a centred quotation. */
.transcript {
  margin: 22px 0 56px; padding-left: 15px;
  border-left: 2px solid var(--red-alert);
  font: 400 clamp(1rem, 1.9vw, 1.22rem)/1.55 var(--font-mono);
  color: var(--text-hi); min-height: 1.6em;
}
.cursor {
  display: inline-block; width: 0.55em; height: 1.15em;
  background: var(--red-alert); vertical-align: text-bottom; margin-left: 3px;
  opacity: 0.85;
}
.js-anim .cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.game-id {
  display: grid; grid-template-columns: 11fr 9fr;
  gap: 56px; align-items: center; margin-bottom: 90px;
}
.game-title {
  font: 700 clamp(1.9rem, 4vw, 3rem)/1.12 var(--font-display);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-hi);
}
.red-rule { width: 64px; height: 2px; background: var(--red-alert); margin: 22px 0; }
.badge-mono {
  display: inline-block; font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-body); border: 1px solid var(--red-dim);
  padding: 7px 12px; border-radius: 3px; margin-bottom: 20px;
}
.one-liner { font: 500 20px/1.5 var(--font-body); color: var(--text-hi); margin-top: 10px; }
.status-line {
  font-size: 12px; letter-spacing: 0.16em; margin-top: 26px;
  color: var(--text-body);
}
.status-line.en-route { color: var(--red-text); }
.cad-ticket {
  display: inline-block; margin-top: 14px;
  font-size: 12px; letter-spacing: 0.08em; color: var(--text-hi);
  border: 1px solid rgba(224, 43, 43, 0.35);
  background: rgba(224, 43, 43, 0.06);
  padding: 12px 16px; border-radius: 4px;
}
.js-anim .game.prepped .cad-ticket { opacity: 0; transform: translateY(14px); }
.js-anim .game.run .cad-ticket {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease-out 0.4s, transform 0.5s ease-out 0.4s;
}
/* The newest Dispatch Log post, under the console column. Baked into the
   HTML and overwritten from /api/updates so it is never a stale headline. */
.latest-update {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  color: var(--text-body);
}
.lu-k { font: 400 10.5px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.lu-t { font: 600 14.5px/1.2 var(--font-body); color: var(--text-hi); }
.lu-t::after { content: ' \2192'; color: var(--gold-deep); }
.latest-update:hover .lu-t { color: var(--gold-light); }
.lu-d { font: 400 11.5px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }
.js-anim .game.prepped .latest-update { opacity: 0; transform: translateY(10px); }
.js-anim .game.run .latest-update {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease-out 0.8s, transform 0.5s ease-out 0.8s;
}

.monitor {
  background: #060606; padding: 8px; border-radius: 3px;
  border: 1px solid rgba(224, 43, 43, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.monitor img { border-radius: 4px; width: 100%; }
.monitor-hero {
  padding: 12px;
  border-color: rgba(224, 43, 43, 0.25);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 90px rgba(224, 43, 43, 0.1);
}
.game-art-link {
  display: block; position: relative; cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.game-art-link:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 43, 43, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 110px rgba(224, 43, 43, 0.2);
}
.game-art-overlay {
  position: absolute; inset: 12px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 6, 6, 0.6);
  opacity: 0; transition: opacity 0.25s ease;
}
.game-art-link:hover .game-art-overlay,
.game-art-link:focus-visible .game-art-overlay { opacity: 1; }
.game-art-play {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold-gradient); color: var(--ink-base);
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 3px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}
.monitor figcaption {
  font: 400 11px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  color: rgba(200, 200, 200, 0.72);
  padding: 9px 4px 2px; text-align: center; text-transform: uppercase;
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 90px; }
.js-anim .pillars .pillar:nth-child(2) { transition-delay: 0.12s; }
.js-anim .pillars .pillar:nth-child(3) { transition-delay: 0.24s; }
.pillar {
  background: var(--ink-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px 24px;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
/* Real dispatch colour-coding, carried on a top rule: blue police, red fire,
   green EMS. Order matches the markup, same as the stagger delays above. */
.pillars .pillar:nth-child(1) { border-top: 2px solid var(--blue); }
.pillars .pillar:nth-child(2) { border-top: 2px solid var(--red-alert); }
.pillars .pillar:nth-child(3) { border-top: 2px solid var(--ems-white); }
.pillars .pillar:nth-child(1) h3, .pillars .pillar:nth-child(1) h2 { color: var(--blue); }
.pillars .pillar:nth-child(2) h3, .pillars .pillar:nth-child(2) h2 { color: var(--red-text); }
.pillars .pillar:nth-child(3) h3, .pillars .pillar:nth-child(3) h2 { color: var(--ems-white); }
/* Logical properties so the hover never repaints the service-coloured top rule. */
.pillar:hover {
  border-inline-color: #333333; border-bottom-color: #333333;
  background: #131313;
}
/* Same artwork as the CAD rows, larger. Sized by width so the fire icon's
   slightly taller aspect is not squashed. */
.pillar-icon { width: 30px; height: auto; display: block; margin-bottom: 15px; }
.pillar h3, .pillar h2 {
  font: 700 18px/1.3 var(--font-display);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-hi);
}
.pillar > p:last-child { font-size: 15px; margin-top: 10px; }

.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 90px; }
/* Full frames, nothing cropped away — the source shots are all ~2.2:1. */
.triptych .monitor img { aspect-ratio: 2.2 / 1; object-fit: contain; background: #060606; }
.triptych .monitor.is-zoomable { cursor: zoom-in; position: relative; transition: border-color 0.2s ease, transform 0.2s ease; }
.triptych .monitor.is-zoomable:hover { border-color: rgba(224, 43, 43, 0.5); transform: translateY(-2px); }
.triptych .monitor.is-zoomable::after {
  content: "⤢"; position: absolute; top: 16px; right: 16px;
  width: 26px; height: 26px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 6, 6, 0.88); border: 1px solid rgba(224, 43, 43, 0.35);
  color: var(--text-hi); font-size: 13px;
  opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.triptych .monitor.is-zoomable:hover::after,
.triptych .monitor.is-zoomable:focus-visible::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 4, 4, 0.95);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; cursor: zoom-out;
}
.lightbox-figure { max-width: 1500px; width: 100%; cursor: default; }
.lightbox-figure img {
  width: 100%; height: auto; max-height: 82vh; object-fit: contain;
  border-radius: 3px; border: 1px solid rgba(224, 43, 43, 0.25);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.lightbox-figure figcaption {
  text-align: center; padding-top: 14px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(214, 214, 214, 0.9);
}
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  background: rgba(21, 21, 21, 0.9); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px; color: var(--text-hi); cursor: pointer;
  font-size: 16px; padding: 9px 14px;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
.js-anim .triptych img { opacity: 0.6; transition: opacity 0.9s ease-out 0.2s; }
.js-anim .triptych.in img { opacity: 1; }

.stakes { text-align: center; padding-bottom: 40px; }
.stakes-line { font-size: 17px; color: var(--text-body); }

.game-exit {
  position: relative; text-align: center;
  padding: 110px 24px 130px; margin-top: 20px;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0) 0%, var(--ink-base) 70%);
}

/* ============================================================
   CHAPTER II — THE STORY
   ============================================================ */
.story { padding: 104px 0; border-bottom: 1px solid var(--line); }
.story-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 60px; align-items: start;
}
.story-lead {
  display: flex; flex-direction: column; gap: 28px;
  position: sticky; top: calc(var(--nav-h) + 40px);
}
/* The founder block is an identity line, not a portrait card: the avatar
   sits beside the name at reading scale rather than in a framed plate. */
.founder { display: flex; align-items: center; gap: 18px; }
.founder img {
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.5);
  /* The avatar is black hat, black head, black suit: on a dark disc it
     vanished. A warm mid-tone spotlight gives the silhouette an edge. */
  background: radial-gradient(circle at 50% 42%, #7A6640 0%, #4A3D26 48%, #221C12 100%);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.07);
}
.founder-id { display: flex; flex-direction: column; gap: 6px; }
.founder-name {
  font: 700 22px/1.2 var(--font-display);
  letter-spacing: -0.015em; color: var(--text-hi);
}
.founder-role {
  font: 500 11.5px/1.3 var(--font-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.story-copy { display: flex; flex-direction: column; gap: 18px; }
.story-copy > p { max-width: 62ch; }
.story-copy strong { color: var(--text-hi); font-weight: 600; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  background: var(--ink-panel);
  border: 1px solid var(--line);
  padding: 9px 14px; border-radius: var(--r-sm);
}
.press-line { font-size: 15px; margin-top: 8px; }

@media (max-width: 900px) {
  .story { padding: 72px 0; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .story-lead { position: static; }
}

/* ============================================================
   COMMUNITY
   ============================================================ */
.community { padding: 130px 0; }
.community .section-heading { margin-top: 40px; margin-bottom: 10px; }
.community .section-sub { margin-bottom: 56px; }
.comm-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 520px));
  gap: 32px; justify-content: center;
}
.comm-card {
  position: relative; overflow: hidden;
  border: 1px solid transparent; border-radius: 4px;
  background:
    linear-gradient(var(--ink-deep), var(--ink-deep)) padding-box,
    linear-gradient(160deg, rgba(240, 217, 124, 0.4), rgba(140, 109, 31, 0.18)) border-box;
  padding: 38px 36px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  transition: transform 0.25s ease;
}
.comm-card::before {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 150px; height: 150px;
  background: url('/assets/img/logo-emblem-160.png') center / contain no-repeat;
  opacity: 0.05; pointer-events: none;
}
.comm-card:hover { transform: translateY(-2px); }
.comm-icon { color: var(--gold); }
.comm-card h3 {
  font: 700 20px/1.3 var(--font-display);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-hi);
}
.comm-count {
  font: 700 32px/1 var(--font-display);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 10px;
}
.comm-count .stat {
  background: var(--gold-gradient); color: var(--gold);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .comm-count .stat {
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
.comm-count-label {
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-body);
}
.comm-line { font-size: 15px; min-height: 2.8em; }
.comm-card .btn { margin-top: auto; }

/* ============================================================
   CHAPTER IV — THE TEAM
   ============================================================ */
.team { background: var(--ink-panel); padding: 130px 0; }
.team .section-heading { margin-top: 40px; margin-bottom: 10px; }
.team .section-sub { margin-bottom: 50px; }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px; max-width: 1040px; margin: 0 auto;
}
.team-card {
  background: var(--ink-deep);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px; padding: 26px 18px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.team-card:hover { transform: translateY(-2px); border-color: rgba(212, 175, 55, 0.45); }
.team-card img {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--ink-deep);
  border: 2px solid rgba(140, 109, 31, 0.5);
  margin-bottom: 10px;
}
.team-lead {
  background:
    linear-gradient(var(--ink-deep), var(--ink-deep)) padding-box,
    linear-gradient(160deg, rgba(240, 217, 124, 0.5), rgba(140, 109, 31, 0.2)) border-box;
  border: 1px solid transparent;
}
.team-lead img { border-color: var(--gold); }
.team-name { font: 600 16px/1.3 var(--font-body); color: var(--text-hi); }
.team-handle { font-size: 12px; color: var(--text-body); }
.team-role {
  margin-top: 10px;
  font: 700 10px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 12px;
}
/* Role colours mirror the Roblox group: red leadership, orange mods, green helpers. */
.r-founder, .r-manager, .r-lead { background: rgba(239, 83, 80, 0.16); color: #FF6B68; }
.r-dev { background: rgba(212, 175, 55, 0.16); color: var(--gold); }
.r-mod { background: rgba(255, 167, 38, 0.15); color: #FFB74D; }
.r-helper { background: rgba(61, 220, 132, 0.12); color: var(--live-green); }
.team-join { text-align: center; font-size: 15px; margin-top: 40px; }

/* Leadership cards sit centred; the moderation roster is a compact list
   underneath so sixteen volunteers don't outweigh the studio. */
.team-leads {
  grid-template-columns: repeat(auto-fit, 200px);
  justify-content: center;
}
.roster-label {
  max-width: 1040px; margin: 54px auto 14px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.team-roster {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 14px; max-width: 1040px; margin: 0 auto;
}
.roster-item {
  display: flex; align-items: center; gap: 11px; min-width: 0;
  padding: 8px 10px; border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.roster-item:hover { border-color: rgba(212, 175, 55, 0.35); background: var(--ink-deep); }
.roster-item img {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: var(--ink-deep);
  border: 1px solid rgba(140, 109, 31, 0.45);
}
.roster-name {
  font: 500 14px/1.3 var(--font-body); color: var(--text-hi);
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.roster-item .team-role { margin-top: 0; padding: 5px 9px; font-size: 9px; flex: 0 0 auto; }

/* Staff login — nav button + dropdown panel */
.staff-login-wrap { position: relative; }
.nav-staff-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-body); padding: 8px 4px;
  transition: color 0.2s ease;
}
.nav-staff-btn:hover, .nav-staff-btn[aria-expanded="true"] { color: var(--gold); }
.staff-login-panel {
  position: absolute; top: calc(100% + 14px); right: 0;
  width: 290px; z-index: 110;
  background:
    linear-gradient(var(--ink-panel), var(--ink-panel)) padding-box,
    linear-gradient(160deg, rgba(240, 217, 124, 0.45), rgba(140, 109, 31, 0.2)) border-box;
  border: 1px solid transparent; border-radius: 4px;
  padding: 22px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.staff-login-panel[hidden] { display: none; }
.staff-login-panel::before {
  content: ""; position: absolute; top: -5px; right: 22px;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--ink-panel);
  border-left: 1px solid rgba(240, 217, 124, 0.4);
  border-top: 1px solid rgba(240, 217, 124, 0.4);
}
.staff-login-panel form { display: grid; gap: 14px; }
.staff-login-panel .form-field label {
  display: block; font: 600 11px/1.4 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-body); margin-bottom: 7px;
}
.staff-login-panel input {
  width: 100%; background: var(--ink-deep);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 3px;
  color: var(--text-hi); font: 400 14px/1.5 var(--font-body); padding: 11px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.staff-login-panel input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.staff-login-panel .btn { border: 0; cursor: pointer; padding: 13px 20px; }
.staff-login-panel .form-status { font-size: 13px; margin: 0; }
.portal-alt { text-align: center; font-size: 12px; margin: 0; }
.portal-alt a { color: var(--text-body); text-decoration: underline; text-decoration-color: var(--gold-deep); text-underline-offset: 3px; }
.portal-alt a:hover { color: var(--gold); }

/* password show/hide */
.pw-row { position: relative; display: flex; }
.pw-row input { padding-right: 74px !important; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-deep); border-radius: 3px;
  color: var(--gold); cursor: pointer;
  font: 600 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 11px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.pw-toggle:hover { background: rgba(212, 175, 55, 0.2); border-color: var(--gold); }

/* ============================================================
   CHAPTER V — CONTACT
   ============================================================ */
.partner { padding: 150px 0; text-align: center; }
.partner-emblem { margin: 0 auto 20px; }
.partner .section-heading { margin-top: 40px; margin-bottom: 16px; }
.partner-line { max-width: 46ch; margin: 0 auto; }
.contact-form {
  max-width: 560px; margin: 40px auto 0;
  display: grid; gap: 20px; text-align: left;
}
.form-field label {
  display: block;
  font: 600 12px/1.4 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-body); margin-bottom: 8px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--ink-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: var(--text-hi);
  font: 400 15px/1.5 var(--font-body);
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field select { cursor: pointer; }
.form-field select option { background: var(--ink-deep); color: var(--text-hi); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.field-optional { color: rgba(200, 200, 200, 0.72); text-transform: none; letter-spacing: 0.02em; font-weight: 400; }
.file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 1px dashed rgba(212, 175, 55, 0.4); border-radius: 4px;
  background: rgba(212, 175, 55, 0.04);
  padding: 20px 16px; cursor: pointer; text-align: center;
  color: var(--gold);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.file-drop:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.09); }
.file-drop-text { font: 600 13px/1.3 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; }
.file-drop-hint { font: 400 12px/1.4 var(--font-body); color: var(--text-body); text-transform: none; letter-spacing: 0; }
.file-list { list-style: none; margin: 10px 0 0; display: grid; gap: 7px; }
.file-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-deep); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px; padding: 9px 12px;
}
.file-chip-name {
  flex: 1; min-width: 0; font-size: 13px; color: var(--text-hi);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-chip-size { font: 400 11px/1 var(--font-mono); color: var(--text-body); flex: none; }
.file-chip-remove {
  background: none; border: 0; cursor: pointer; flex: none;
  color: var(--text-body); font-size: 13px; padding: 3px 5px; line-height: 1;
}
.file-chip-remove:hover { color: #FF6B68; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; text-align: center; min-height: 1.5em; margin-top: -6px; }
.form-status.ok { color: var(--live-green); }
.form-status.err { color: var(--text-hi); }
.contact-form.sent .form-field, .contact-form.sent .btn { display: none; }
.form-field ::placeholder { color: rgba(206, 206, 206, 0.5); }
.contact-form .btn { justify-self: center; min-width: 220px; border: 0; cursor: pointer; }
.contact-alt { font-size: 14px; margin-top: 26px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.micro-facts { font-size: 13px; color: var(--text-body); margin-top: 44px; }
.micro-facts span { color: var(--gold); padding: 0 6px; }

/* ============================================================
   CLOSING
   ============================================================ */

.closing { text-align: center; padding: 170px 24px 190px; }
.closing-heading {
  font: 700 clamp(1.9rem, 4vw, 3rem)/1.2 var(--font-display);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 44px;
}
.closing-caption { font-size: 14px; color: var(--text-body); margin-top: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink-deep);
  border-top: 1px solid rgba(140, 109, 31, 0.3);
  padding: 80px 0 36px; text-align: center;
}
/* The full EMPIRIAN INTERACTIVE lockup as the studio signature. It is
   artwork on black, and the page ground is black, so it sits on the page
   rather than in a box. */
.foot-wordmark { display: block; width: min(330px, 76vw); height: auto; margin: 0 auto 16px; }
.foot-tagline { font-size: 14px; color: var(--text-body); margin-bottom: 52px; }
.foot-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; max-width: 760px; margin: 0 auto 60px;
  text-align: center;
}
.foot-cols h3 {
  font: 600 12px/1.4 var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.foot-cols a {
  display: block; font-size: 14px; color: var(--text-body);
  padding: 5px 0; transition: color 0.2s ease;
}
.foot-cols a:hover { color: var(--gold); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 26px; font-size: 12px; color: rgba(206, 206, 206, 0.75);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.foot-bottom a { color: inherit; }
.foot-bottom a:hover { color: var(--gold); }

/* ---------- Milestone banner ---------- */
.milestone-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: linear-gradient(90deg, rgba(11, 11, 11, 0.97), rgba(21, 21, 21, 0.97));
  border-top: 1px solid var(--gold-deep);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 13px 52px 13px 20px;
}
.milestone-bar.ms-hit { border-top-color: var(--gold); }
.milestone-inner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  font: 400 14px/1.4 var(--font-body); color: var(--text-body);
}
.milestone-inner strong {
  font: 700 14px/1.4 var(--font-display);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
}
.milestone-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  color: var(--text-body); font-size: 15px; padding: 6px 9px;
}
.milestone-close:hover { color: var(--gold); }
body.has-milestone .float-pill { bottom: 74px; }

/* ---------- Floating mobile Play pill ---------- */
.float-pill {
  display: none;
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 80; border-radius: 999px; padding: 14px 34px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 30px rgba(212, 175, 55, 0.25);
}
.float-pill:hover { transform: translateX(-50%) translateY(-1px); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.js-anim [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.js-anim [data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .game-id { gap: 40px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .game-id { grid-template-columns: 1fr; }
  .game-art { max-width: 620px; margin: 0 auto; }
  .story-grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait-card { position: static; max-width: 380px; margin: 0 auto; }
  .ledger-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .tile:nth-child(3)::before { display: none; }
  .pillars { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; margin-bottom: 90px; }
  .comm-grid { grid-template-columns: minmax(0, 520px); }
}
@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-actions .btn-pill, .nav-actions .nav-icon, .staff-login-wrap { display: none; }
  .float-pill { display: inline-flex; }
  .float-pill[hidden] { display: none; }
  .hero-dial { display: none; }
  .story, .community, .team, .game { padding-top: 80px; }
  .story, .community, .team { padding-bottom: 80px; }
  .partner { padding: 90px 0; }
  .closing { padding: 110px 24px 130px; }
  .triptych {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 16px; padding-bottom: 12px; margin-bottom: 70px;
    -webkit-overflow-scrolling: touch;
  }
  .triptych .monitor { flex: 0 0 88%; scroll-snap-align: center; }
  .lightbox { padding: 20px 12px; }
  .lightbox-figure img { max-height: 70vh; }
  .game-exit { padding: 80px 24px 100px; }
  body { padding-bottom: 70px; }
}
@media (min-width: 769px) {
  /* if the viewport grows past the breakpoint while the menu is open */
  .mobile-menu { display: none; }
}
@media (max-width: 560px) {
  .seal { width: 150px; }
  .cta-row { flex-direction: column; width: 100%; max-width: 340px; }
  .cta-row .btn { width: 100%; }
  .ledger-grid { column-gap: 8px; }
  .comm-card { padding: 30px 24px; }
}

/* ============================================================
   Apply page (/apply)
   ============================================================ */
.nav-plain-link {
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-body);
}
.nav-plain-link:hover { color: var(--gold); }
.apply-main { padding: 140px 0 110px; }
.apply-main .partner-emblem { margin: 0 auto 20px; display: block; }
.apply-main .section-heading { margin: 28px 0 30px; }
.apply-loading { text-align: center; color: var(--text-body); padding: 40px 0; }
.apply-warn {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
  border-radius: 4px; padding: 18px 22px;
  font-size: 15px; color: var(--text-hi);
  margin-bottom: 44px;
}
.apply-card {
  background: var(--ink-panel);
  border: 1px solid transparent; border-radius: 4px;
  background:
    linear-gradient(var(--ink-panel), var(--ink-panel)) padding-box,
    linear-gradient(160deg, rgba(240, 217, 124, 0.4), rgba(140, 109, 31, 0.18)) border-box;
  padding: 44px 36px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.apply-closed-title {
  font: 700 22px/1.3 var(--font-display);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold);
}
.apply-closed-line { max-width: 48ch; }
.apply-closed-line a { color: var(--text-hi); text-decoration: underline; text-decoration-color: var(--gold-deep); }
.apply-closed-line a:hover { color: var(--gold); }
.apply-card .btn { margin-top: 10px; }

.apply-section { margin-bottom: 54px; }
.apply-sec-eyebrow {
  font: 600 11px/1.4 var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.apply-sec-title {
  font: 700 20px/1.3 var(--font-display);
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-hi);
  border-bottom: 1px solid rgba(140, 109, 31, 0.3);
  padding-bottom: 12px; margin-bottom: 24px;
}
.q-card {
  background: var(--ink-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px; padding: 20px 22px; margin-bottom: 16px;
  transition: border-color 0.2s ease;
}
.q-card.q-invalid { border-color: rgba(224, 43, 43, 0.55); }
.q-label { display: block; font: 500 15px/1.5 var(--font-body); color: var(--text-hi); margin-bottom: 12px; }
.q-req { color: var(--gold); }
.q-help { font-size: 13px; color: var(--text-body); margin: -6px 0 10px; }
.q-error { font-size: 13px; color: #EF5350; margin-top: 8px; }
.q-card input[type="text"], .q-card input[type="url"], .q-card textarea {
  width: 100%;
  background: var(--ink-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px; color: var(--text-hi);
  font: 400 15px/1.5 var(--font-body);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.q-card textarea { resize: vertical; min-height: 96px; }
.q-card input:focus, .q-card textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.q-options { display: grid; gap: 4px; }

/* iOS Safari zooms the whole page when a focused input is under 16px, which
   throws people out of position mid-form. */
@media (max-width: 767px) {
  .q-card input[type="text"], .q-card input[type="url"], .q-card textarea,
  .q-other-text { font-size: 16px !important; }
}
/* min-height keeps each option at the 44px accessible touch target. The row
   is only ~25px of text, which is fiddly to tap on a phone — and most of the
   people filling this in are on one. */
.q-option {
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  cursor: pointer; font-size: 15px; color: var(--text-body);
}
.q-option input[type="radio"] { position: absolute; opacity: 0; }
.q-radio {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 1px solid var(--gold-deep);
  display: inline-block; position: relative;
  transition: border-color 0.15s ease;
}
.q-option input:checked + .q-radio { border-color: var(--gold); }
.q-option input:checked + .q-radio::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--gold);
}
.q-option input:focus-visible + .q-radio { outline: 2px solid var(--gold); outline-offset: 2px; }
.q-option:hover .q-radio { border-color: var(--gold); }

/* Multi-select. Square rather than round so it reads as "pick any" at a
   glance, next to the round radios that mean "pick one". */
.q-option input[type="checkbox"] { position: absolute; opacity: 0; }
.q-check {
  width: 18px; height: 18px; flex: none; border-radius: 4px;
  border: 1px solid var(--gold-deep);
  display: inline-block; position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.q-option input:checked + .q-check { border-color: var(--gold); background: var(--gold); }
.q-option input:checked + .q-check::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--ink-base); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.q-option input:focus-visible + .q-check { outline: 2px solid var(--gold); outline-offset: 2px; }
.q-option:hover .q-check { border-color: var(--gold); }

/* Hard eligibility gate. Gold-edged rather than red — it is a platform
   constraint to read before starting, not an error. */
.apply-req {
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 3px solid var(--gold);
  border-radius: 4px; padding: 20px 24px; margin-bottom: 20px;
}
.apply-req-title {
  font: 700 14px/1.35 var(--font-body); letter-spacing: 0.03em;
  color: var(--gold); margin-bottom: 9px;
}
.apply-req-body { font-size: 14px; line-height: 1.6; color: var(--text-hi); }
.apply-req-hint {
  font-size: 13px; line-height: 1.55; color: var(--text-body); margin-top: 9px;
}

/* Role explainer shown above a form that needs one. */
.apply-brief {
  background: var(--ink-panel); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px; padding: 26px 28px; margin-bottom: 26px;
}
.apply-brief-title {
  font: 700 15px/1.3 var(--font-display); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
/* min() keeps the three blocks on one row inside the narrow reading column
   rather than leaving the third orphaned on its own line, and still collapses
   to a single column on a phone. */
.apply-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  gap: 22px 20px;
}
.apply-brief-heading {
  font: 700 11px/1.3 var(--font-body); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-hi); margin-bottom: 9px;
}
.apply-brief-list { list-style: none; display: grid; gap: 8px; }
.apply-brief-list li {
  font-size: 14px; line-height: 1.55; color: var(--text-body);
  padding-left: 15px; position: relative;
}
.apply-brief-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep);
}

/* Staff / Playtester switcher above the application queue. */
.apps-types { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.apps-type {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-body); transition: color 0.15s ease, border-color 0.15s ease;
}
.apps-type:hover { color: var(--text-hi); border-color: var(--gold); }
.apps-type.active { color: var(--ink-base); background: var(--gold-gradient); border-color: transparent; }
.apps-type-count {
  min-width: 18px; padding: 2px 6px; border-radius: 999px;
  background: rgba(212, 175, 55, 0.2); color: var(--gold);
  font-size: 10px; line-height: 1.4;
}
.apps-type.active .apps-type-count { background: rgba(11, 11, 11, 0.22); color: var(--ink-base); }
.q-other-text {
  flex: 1; min-width: 120px;
  background: var(--ink-deep) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 3px !important; padding: 8px 10px !important;
}
.apply-submit { text-align: center; margin-top: 10px; display: grid; gap: 14px; justify-items: center; }

/* ============================================================
   Staff portal (/staff)
   ============================================================ */
.staff-body { background: var(--ink-base); }
.staff-main { padding: 100px 0 80px; }
.container.wide { max-width: 1100px; }
.staff-who {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-body);
}
.auth-card {
  max-width: 420px; margin: 60px auto 0;
  background:
    linear-gradient(var(--ink-panel), var(--ink-panel)) padding-box,
    linear-gradient(160deg, rgba(240, 217, 124, 0.4), rgba(140, 109, 31, 0.18)) border-box;
  border: 1px solid transparent; border-radius: 4px;
  padding: 40px 34px; text-align: center;
}
.auth-title {
  font: 700 clamp(1.4rem, 3vw, 1.8rem)/1.2 var(--font-display);
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold); margin: 22px 0 18px;
}
.auth-form { display: grid; gap: 16px; text-align: left; margin-top: 10px; }
.auth-form .form-field label {
  display: block; font: 600 12px/1.4 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-body); margin-bottom: 8px;
}
.auth-form input {
  width: 100%; background: var(--ink-deep);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 3px;
  color: var(--text-hi); font: 400 15px/1.5 var(--font-body); padding: 12px 14px;
}
.auth-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }
.auth-form .btn { border: 0; cursor: pointer; }
.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px;
  font: 600 11px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-body);
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.discord-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.auth-alt { margin-top: 20px; font-size: 14px; }
.auth-alt a { color: var(--text-body); text-decoration: underline; text-decoration-color: var(--gold-deep); }
.auth-alt a:hover { color: var(--gold); }

.staff-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(140, 109, 31, 0.3);
  padding-bottom: 0; margin-bottom: 30px;
}
.staff-tab {
  background: none; border: 0; cursor: pointer;
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-body); padding: 14px 18px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.staff-tab:hover { color: var(--text-hi); }
.staff-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.apps-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.apps-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.apps-chip {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(140, 109, 31, 0.5); border-radius: 999px;
  color: var(--text-body); cursor: pointer;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.05em;
  padding: 9px 16px; transition: color 0.15s ease, border-color 0.15s ease;
}
.apps-chip:hover { color: var(--text-hi); border-color: var(--gold); }
.apps-chip.active { color: var(--ink-base); background: var(--gold-gradient); border-color: transparent; font-weight: 700; }
.apps-controls { display: flex; gap: 10px; }
.apps-search, .apps-sort {
  background: var(--ink-deep); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px; color: var(--text-hi);
  font: 400 14px/1.4 var(--font-body); padding: 9px 14px;
}
.apps-search:focus, .apps-sort:focus { outline: none; border-color: var(--gold); }
.apps-list { display: grid; gap: 10px; }
.app-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--ink-panel);
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 4px;
  padding: 16px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.app-row:hover { border-color: rgba(212, 175, 55, 0.5); transform: translateY(-1px); }
.app-row-main { display: flex; align-items: center; gap: 14px; }
.app-row-names { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

/* Roblox identity chip */
.rb-chip { display: inline-flex; align-items: center; flex: none; }
.rb-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink-deep);
  border: 1px solid rgba(140, 109, 31, 0.45);
  object-fit: cover; display: block;
}
a.rb-chip:hover .rb-avatar { border-color: var(--gold); }
.rb-avatar-sm { width: 26px; height: 26px; }
.rb-avatar-lg { width: 56px; height: 56px; border-width: 2px; }

/* Role badges + selects */
.role-badge {
  font: 700 10px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 11px; white-space: nowrap;
}
.rb-owner { background: rgba(239, 83, 80, 0.18); color: #FF6B68; }
.rb-manager { background: rgba(239, 83, 80, 0.14); color: #FF8A87; }
.rb-admin { background: rgba(186, 104, 200, 0.16); color: #CE93D8; }
.rb-moderator { background: rgba(255, 167, 38, 0.15); color: #FFB74D; }
.rb-helper { background: rgba(61, 220, 132, 0.12); color: var(--live-green); }
.role-select {
  background: var(--ink-deep); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px; cursor: pointer;
  font: 700 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 12px; color: var(--text-hi);
}
.role-select:focus { outline: none; border-color: var(--gold); }
.rs-owner, .rs-manager { color: #FF8A87; border-color: rgba(239, 83, 80, 0.4); }
.rs-admin { color: #CE93D8; border-color: rgba(186, 104, 200, 0.4); }
.rs-moderator { color: #FFB74D; border-color: rgba(255, 167, 38, 0.4); }
.rs-helper { color: var(--live-green); border-color: rgba(61, 220, 132, 0.35); }
.acct-note { font-size: 12px; color: var(--text-body); font-style: italic; }
.create-form { display: grid; gap: 14px; width: 100%; max-width: 420px; }
.create-form .form-field label {
  display: block; font: 600 11px/1.4 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-body); margin-bottom: 7px;
}
.create-form input, .create-form select {
  width: 100%; background: var(--ink-deep);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 3px;
  color: var(--text-hi); font: 400 14px/1.5 var(--font-body); padding: 11px 13px;
}
.create-form input:focus, .create-form select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.create-form .btn { border: 0; cursor: pointer; justify-self: start; }

.detail-title { flex: 1; min-width: 0; }
.detail-identity { display: flex; align-items: center; gap: 16px; }
.detail-name-link { color: inherit; text-decoration: none; }
.detail-name-link:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.app-row-name { font: 600 16px/1.3 var(--font-body); color: var(--text-hi); }
a.app-row-name:hover { color: var(--gold-light); }
.q-help code { font: 400 0.92em/1 var(--font-mono); color: var(--text-hi); background: rgba(255, 255, 255, 0.06); padding: 2px 5px; border-radius: 3px; }
.app-row-discord { font-size: 13px; color: var(--text-body); }
.app-row-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.app-row-date { font-size: 12px; color: var(--text-body); }
.status-badge {
  font: 700 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 12px;
}
.s-pending { background: rgba(212, 175, 55, 0.15); color: var(--gold); }
.s-review { background: rgba(142, 163, 210, 0.15); color: #A9BCE8; }
.s-approved { background: rgba(61, 220, 132, 0.14); color: var(--live-green); }
.s-denied { background: rgba(224, 43, 43, 0.14); color: #EF5350; }
.apps-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.apps-page-label { font-size: 13px; color: var(--text-body); }

/* ============================================================
   Tickets — Discord-synced support inbox
   ============================================================ */
.tk-layout {
  display: grid; grid-template-columns: 340px 1fr; gap: 18px;
  align-items: start;
}
.tk-queue {
  display: grid; gap: 8px; max-height: 72vh; overflow-y: auto;
  padding-right: 4px;
}
.tk-row {
  width: 100%; text-align: left; cursor: pointer;
  background: var(--ink-panel);
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 4px;
  padding: 13px 15px;
  display: grid; gap: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tk-row:hover { border-color: rgba(212, 175, 55, 0.4); }
.tk-row.active {
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), var(--ink-panel) 70%);
}
.tk-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-num { font: 700 13px/1 var(--font-display); letter-spacing: 0.04em; color: var(--gold); }
.tk-tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.tk-tag {
  font: 700 9px/1 var(--font-body); letter-spacing: 0.09em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 9px; white-space: nowrap;
}
.tk-open { background: rgba(255, 167, 38, 0.16); color: #FFB74D; }
.tk-claimed { background: rgba(142, 163, 210, 0.16); color: #A9BCE8; }
.tk-esc { background: rgba(239, 83, 80, 0.18); color: #FF6B68; }
.tk-fr { background: rgba(186, 104, 200, 0.18); color: #CE93D8; }
.tk-owner { background: rgba(212, 175, 55, 0.18); color: #E5C158; }
.tk-closed { background: rgba(206, 206, 206, 0.14); color: var(--text-body); }
.tk-row-who { display: flex; align-items: center; gap: 8px; }
.tk-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--ink-deep); border: 1px solid rgba(140, 109, 31, 0.4); object-fit: cover;
}
.tk-opener { font: 600 13px/1.3 var(--font-body); color: var(--text-hi); }
.tk-preview {
  font-size: 12px; color: var(--text-body);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tk-time { font-size: 11px; color: rgba(200, 200, 200, 0.72); }

.tk-pane {
  background: var(--ink-panel);
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 4px;
  display: flex; flex-direction: column; min-height: 62vh; max-height: 78vh;
}
.tk-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 40px 20px;
}
.tk-empty-title { font: 700 16px/1.3 var(--font-display); letter-spacing: 0.05em; color: var(--text-body); text-transform: uppercase; }
.tk-empty-sub { font-size: 13px; color: rgba(206, 206, 206, 0.75); text-align: center; }
.tk-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}
.tk-title { font: 700 17px/1.3 var(--font-display); letter-spacing: 0.04em; color: var(--text-hi); }
.tk-head-meta { font-size: 12px; color: var(--text-body); margin-top: 3px; }
.tk-head-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.tk-thread { flex: 1; overflow-y: auto; padding: 18px 22px; display: grid; gap: 14px; align-content: start; }
.tk-msg { display: flex; gap: 11px; align-items: flex-start; }
.tk-msg .tk-avatar { width: 32px; height: 32px; margin-top: 2px; }
.tk-bubble {
  background: var(--ink-deep); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px 10px 10px 10px; padding: 11px 14px;
  max-width: 78%; min-width: 0;
}
.tk-msg-staff .tk-bubble {
  background: rgba(212, 175, 55, 0.07);
  border-color: rgba(212, 175, 55, 0.28);
}
.tk-bubble-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.tk-author { font: 600 13px/1.2 var(--font-body); color: var(--text-hi); }
.tk-staff-tag {
  font: 700 9px/1 var(--font-body); letter-spacing: 0.09em; text-transform: uppercase;
  background: rgba(212, 175, 55, 0.18); color: var(--gold);
  border-radius: 999px; padding: 4px 8px;
}
.tk-src-tag {
  font: 400 10px/1 var(--font-mono); color: rgba(206, 206, 206, 0.75);
}
/* .settings-card is a grid with justify-items:start, which collapses a
   content-less div to zero width — hence the explicit stretch. Spacing comes
   from the card's own gap, so no margin here. */
.quota-bar {
  width: 100%; justify-self: stretch;
  height: 8px; border-radius: 999px;
  background: rgba(8, 8, 8, 0.7); border: 1px solid var(--line); overflow: hidden;
}
.quota-fill { height: 100%; border-radius: 999px; transition: width 0.3s ease; }
.quota-fill.ok { background: linear-gradient(90deg, #4E8F63, #6FBF87); }
.quota-fill.warn { background: linear-gradient(90deg, #B8862B, #E5C158); }
.quota-fill.crit { background: linear-gradient(90deg, #A8382F, #EF5350); }

.tk-bot-tag {
  font: 700 9px/1 var(--font-body); letter-spacing: 0.09em; text-transform: uppercase;
  background: rgba(88, 101, 242, 0.22); color: #A3ADF5;
  border-radius: 999px; padding: 4px 8px;
}
.tk-msg-time { font-size: 11px; color: rgba(200, 200, 200, 0.72); margin-left: auto; }
/* pre-wrap is deliberately absent: <br> nodes carry the line breaks now, and
   pre-wrap would double them up around the rendered markup. */
.tk-body { font-size: 14px; color: var(--text-hi); overflow-wrap: anywhere; line-height: 1.5; }

/* ---------- Discord markup ---------- */
.tk-mention {
  border-radius: 4px; padding: 0 3px; font-weight: 500;
  background: rgba(212, 175, 55, 0.16); color: #E5C158;
}
.tk-mention-channel { background: rgba(120, 160, 220, 0.16); color: #9DBEEA; }
.tk-mention-emoji { background: none; color: var(--text-lo); }
.tk-ts { background: rgba(206, 206, 206, 0.14); border-radius: 4px; padding: 0 4px; }
.tk-body .tk-u, .tk-embed-desc .tk-u { text-decoration: underline; }
.tk-body .tk-s, .tk-embed-desc .tk-s { text-decoration: line-through; opacity: 0.75; }
.tk-link { color: var(--gold); text-decoration: none; overflow-wrap: anywhere; }
.tk-link:hover { text-decoration: underline; }
.tk-code-inline {
  font: 400 12px/1.4 var(--font-mono);
  background: rgba(8, 8, 8, 0.7); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px;
}
.tk-code-block {
  font: 400 12px/1.5 var(--font-mono); color: var(--text-hi);
  background: rgba(8, 8, 8, 0.75); border: 1px solid var(--line);
  border-radius: 3px; padding: 10px 12px; margin: 7px 0;
  white-space: pre-wrap; overflow-x: auto;
}

/* ---------- Discord embeds ---------- */
.tk-embed {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 9px; padding: 11px 14px;
  background: rgba(8, 8, 8, 0.5);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  max-width: 520px;
}
.tk-embed-main { flex: 1; min-width: 0; }
.tk-embed-author {
  display: flex; align-items: center; gap: 7px;
  font: 600 12px/1.3 var(--font-body); color: var(--text-hi); margin-bottom: 6px;
}
.tk-embed-icon { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.tk-embed-title {
  display: block; font: 600 14px/1.35 var(--font-body);
  color: var(--text-hi); margin-bottom: 5px;
}
a.tk-embed-title { color: var(--gold); }
.tk-embed-desc { font-size: 13px; line-height: 1.5; color: var(--text-mid); overflow-wrap: anywhere; }
.tk-embed-fields {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 12px; margin-top: 9px;
}
.tk-embed-field { min-width: 0; }
.tk-embed-field-full { grid-column: 1 / -1; }
.tk-embed-fname {
  font: 700 11px/1.3 var(--font-body); color: var(--text-hi);
  margin-bottom: 2px; overflow-wrap: anywhere;
}
.tk-embed-fval { font-size: 12.5px; line-height: 1.45; color: var(--text-mid); overflow-wrap: anywhere; }
.tk-embed-image { display: block; max-width: 100%; border-radius: 3px; margin-top: 9px; }
.tk-embed-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.tk-embed-footer {
  display: flex; align-items: center; gap: 7px; margin-top: 9px;
  font-size: 11px; color: rgba(206, 206, 206, 0.75);
}
.tk-embed-footer .tk-embed-icon { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .tk-embed-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-embed-thumb { width: 52px; height: 52px; }
}
.tk-atts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.tk-att-img {
  padding: 0; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 3px;
  background: none; cursor: zoom-in; overflow: hidden; line-height: 0;
}
.tk-att-img img { max-width: 190px; max-height: 140px; object-fit: cover; display: block; }
.tk-att-img:hover { border-color: var(--gold); }
.tk-att-file {
  font-size: 12px; color: var(--gold); border: 1px solid var(--gold-deep);
  border-radius: 3px; padding: 7px 11px;
}

.tk-composer { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 14px 18px; display: grid; gap: 10px; }
.tk-form { display: flex; gap: 10px; align-items: flex-end; }
.tk-form textarea {
  flex: 1; resize: vertical; min-height: 44px;
  background: var(--ink-deep); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px; color: var(--text-hi);
  font: 400 14px/1.5 var(--font-body); padding: 11px 13px;
}
.tk-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }
.tk-form .btn { border: 0; cursor: pointer; flex: none; }
.tk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-actions .btn { cursor: pointer; }
.tk-closed-note {
  border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 16px 22px;
  font-size: 13px; color: var(--text-body);
}
.tk-close-reason { font-style: italic; margin-top: 4px; color: var(--text-hi); }

@media (max-width: 900px) {
  .tk-layout { grid-template-columns: 1fr; }
  .tk-queue { max-height: 320px; }
  .tk-pane { max-height: none; }
  .tk-bubble { max-width: 88%; }
}

.detail-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(5, 5, 5, 0.8);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.detail-panel {
  width: min(860px, 100%);
  background: var(--ink-base);
  border: 1px solid rgba(140, 109, 31, 0.4); border-radius: 4px;
  padding: 34px 36px; margin-bottom: 40px;
}
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.detail-name { font: 700 24px/1.2 var(--font-display); letter-spacing: 0.04em; color: var(--gold); }
.detail-sub { font-size: 13px; color: var(--text-body); margin-top: 4px; }
.detail-close {
  background: none; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 3px;
  color: var(--text-body); cursor: pointer; font-size: 15px; padding: 8px 12px;
}
.detail-close:hover { color: var(--text-hi); border-color: var(--gold); }
.detail-status-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.status-btn {
  border-radius: 999px; cursor: pointer; padding: 10px 18px;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); color: var(--text-body);
  transition: all 0.15s ease;
}
.status-btn:hover { border-color: var(--gold); color: var(--text-hi); }
.status-btn.active.s-pending { background: rgba(212, 175, 55, 0.18); border-color: var(--gold); color: var(--gold); }
.status-btn.active.s-review { background: rgba(142, 163, 210, 0.18); border-color: #8EA3D2; color: #A9BCE8; }
.status-btn.active.s-approved { background: rgba(61, 220, 132, 0.15); border-color: var(--live-green); color: var(--live-green); }
.status-btn.active.s-denied { background: rgba(224, 43, 43, 0.15); border-color: #EF5350; color: #EF5350; }
.detail-notes { margin-bottom: 26px; display: grid; gap: 10px; justify-items: start; }
.detail-notes textarea {
  width: 100%; background: var(--ink-deep);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 3px;
  color: var(--text-hi); font: 400 14px/1.5 var(--font-body); padding: 12px 14px; resize: vertical;
}
.detail-notes textarea:focus { outline: none; border-color: var(--gold); }
.detail-section { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 22px; margin-top: 22px; }
.detail-sec-title {
  font: 700 15px/1.3 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.detail-qa { margin-bottom: 18px; }
.detail-q { font: 600 13px/1.5 var(--font-body); color: var(--text-body); margin-bottom: 5px; }
.detail-a { font-size: 15px; color: var(--text-hi); white-space: pre-wrap; overflow-wrap: break-word; }
.detail-a a { color: var(--gold); text-decoration: underline; }

/* stats */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat-tile {
  background: var(--ink-panel); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px; padding: 18px 20px;
}
.stat-tile-label {
  font: 600 11px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-body);
}
.stat-tile-num {
  font: 700 30px/1.2 var(--font-display); font-variant-numeric: tabular-nums;
  color: var(--gold); margin-top: 6px;
}
/* The change over the selected window is the part the period chips drive,
   so it reads as a value in its own right, not a footnote. */
.stat-tile-delta {
  font: 500 13px/1.4 var(--font-body); font-variant-numeric: tabular-nums;
  color: var(--text-hi); margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.stat-tile-note { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.stats-asof { font-size: 12px; color: rgba(200, 200, 200, 0.72); margin: 14px 0 26px; }
.stats-h2 {
  font: 700 18px/1.3 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-hi); margin: 34px 0 14px;
}
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.chart-card {
  background: var(--ink-panel); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px; padding: 18px 20px 10px;
}
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-title {
  font: 600 12px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-body); margin-bottom: 8px;
}
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-body); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend-swatch.dashed { border-top: 2px dashed; height: 0; }
.chart-plot { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-grid-line { stroke: rgba(206, 206, 206, 0.12); stroke-width: 1; }
.chart-tick { fill: rgba(206, 206, 206, 0.92); font: 400 10px var(--font-body); }
.chart-cross { stroke: rgba(212, 175, 55, 0.5); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip {
  position: absolute; top: 6px;
  background: var(--ink-deep); border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 3px; padding: 8px 12px;
  font-size: 12px; color: var(--text-body);
  pointer-events: none; white-space: nowrap;
}
.chart-tip strong { color: var(--text-hi); font-size: 14px; }
.chart-tip-second { display: block; margin-top: 3px; }
.milestone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.milestone-card {
  background:
    linear-gradient(var(--ink-panel), var(--ink-panel)) padding-box,
    linear-gradient(160deg, rgba(240, 217, 124, 0.35), rgba(140, 109, 31, 0.15)) border-box;
  border: 1px solid transparent; border-radius: 4px; padding: 18px 20px;
}
.milestone-target { font: 700 18px/1.3 var(--font-display); color: var(--gold); }
.milestone-eta { font: 500 14px/1.4 var(--font-body); color: var(--text-hi); margin-top: 6px; }
.milestone-days { font-size: 12px; color: var(--text-body); margin-top: 3px; }
.stats-table-wrap { overflow-x: auto; margin-top: 16px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats-table th, .stats-table td { text-align: right; padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.stats-table th { color: var(--text-body); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }
.stats-table td { color: var(--text-hi); font-variant-numeric: tabular-nums; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }

.account-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--ink-panel); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px; padding: 16px 20px; margin-bottom: 10px;
}
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.account-actions .btn { cursor: pointer; }
.acct-approve { border-color: rgba(61, 220, 132, 0.5); color: var(--live-green); background: rgba(61, 220, 132, 0.08); }
.acct-deny { border-color: rgba(224, 43, 43, 0.4); color: #EF5350; background: rgba(224, 43, 43, 0.06); }
.settings-card {
  background: var(--ink-panel); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px; padding: 28px 30px;
  display: grid; gap: 16px; justify-items: start; max-width: 640px;
}
.settings-card .btn { border: 0; cursor: pointer; }
.settings-state { font: 600 15px/1.5 var(--font-body); }
.settings-state.ok { color: var(--live-green); }
.settings-state.warn { color: #EF5350; }

@media (max-width: 700px) {
  .apps-bar { flex-direction: column; }
  .detail-panel { padding: 24px 18px; }
  .app-row { flex-direction: column; align-items: flex-start; }
  .app-row-meta { justify-content: flex-start; }
}

/* ============================================================
   Sub-pages (badges / codes / updates / leaderboard)
   ============================================================ */
.sub-main { padding: 130px 0 90px; }
.sub-main .chapter-plate { margin-bottom: 0; }
.sub-main .section-heading { margin: 26px 0 12px; }
.sub-main .section-sub { margin-bottom: 46px; }

/* --- badge wall --- */
.badge-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 34px;
}
.badge-stat {
  background: var(--ink-panel); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px; padding: 18px 20px; text-align: center;
}
.badge-stat-num {
  font: 700 clamp(1.5rem, 3vw, 2rem)/1.1 var(--font-display);
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.badge-stat-label {
  font: 600 11px/1.4 var(--font-body); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-body); margin-top: 6px;
}
.badge-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-top: 22px;
}
.badge-card {
  background: var(--ink-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.badge-card:hover { transform: translateY(-2px); }
.badge-card.r-mythic { border-color: rgba(239, 83, 80, 0.45); }
.badge-card.r-legendary { border-color: rgba(212, 175, 55, 0.45); }
.badge-card.r-epic { border-color: rgba(186, 104, 200, 0.4); }
.badge-card.r-rare { border-color: rgba(142, 163, 210, 0.4); }
.badge-top { display: flex; align-items: center; gap: 14px; }
.badge-icon {
  width: 56px; height: 56px; flex: none; border-radius: 4px;
  background: var(--ink-deep); border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}
.badge-icon-empty { display: block; }
.badge-head { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.badge-name { font: 600 16px/1.3 var(--font-body); color: var(--text-hi); }
.badge-rarity {
  align-self: flex-start;
  font: 700 10px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 10px;
}
.br-mythic { background: rgba(239, 83, 80, 0.18); color: #FF6B68; }
.br-legendary { background: rgba(212, 175, 55, 0.18); color: var(--gold); }
.br-epic { background: rgba(186, 104, 200, 0.18); color: #CE93D8; }
.br-rare { background: rgba(142, 163, 210, 0.18); color: #A9BCE8; }
.br-uncommon { background: rgba(61, 220, 132, 0.14); color: var(--live-green); }
.br-common { background: rgba(206, 206, 206, 0.13); color: var(--text-body); }
.badge-desc { font-size: 14px; color: var(--text-body); flex: 1; }
.badge-stats { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.badge-count { font: 600 14px/1 var(--font-body); color: var(--text-hi); font-variant-numeric: tabular-nums; }
.badge-pct { font: 400 13px/1 var(--font-mono); color: var(--text-body); }
.badge-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.badge-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--gold-gradient); }
.r-mythic .badge-bar-fill { background: linear-gradient(90deg, #FF6B68, #EF5350); }
.r-epic .badge-bar-fill { background: linear-gradient(90deg, #CE93D8, #BA68C8); }
.r-rare .badge-bar-fill { background: linear-gradient(90deg, #A9BCE8, #8EA3D2); }
.badge-cta { text-align: center; margin-top: 50px; display: grid; gap: 18px; justify-items: center; }

/* --- codes --- */
.codes-h2 {
  font: 700 clamp(1.1rem, 2.2vw, 1.4rem)/1.3 var(--font-display);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); margin: 36px 0 14px;
}
.code-list { display: grid; gap: 10px; }
.code-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ink-panel);
  border: 1px solid rgba(212, 175, 55, 0.28); border-radius: 4px;
  padding: 16px 18px;
}
.code-row.code-expired { border-color: rgba(255, 255, 255, 0.07); opacity: 0.62; }
.code-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.code-value {
  font: 500 17px/1.2 var(--font-mono); letter-spacing: 0.06em;
  color: var(--gold); word-break: break-all;
}
.code-expired .code-value { color: var(--text-body); text-decoration: line-through; }
.code-reward { font-size: 14px; color: var(--text-body); }
.code-right { flex: none; }
.code-copy {
  background: rgba(212, 175, 55, 0.12); border: 1px solid var(--gold-deep);
  border-radius: 3px; color: var(--gold); cursor: pointer;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 11px 16px; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.code-copy:hover { background: rgba(212, 175, 55, 0.22); border-color: var(--gold); }
.code-copy.copied { background: rgba(61, 220, 132, 0.16); border-color: var(--live-green); color: var(--live-green); }
.code-tag {
  font: 700 10px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(206, 206, 206, 0.13); color: var(--text-body);
  border-radius: 999px; padding: 6px 11px;
}
.codes-none { margin-bottom: 10px; }
.codes-how { margin-top: 50px; border-top: 1px solid rgba(140, 109, 31, 0.3); padding-top: 32px; }
.codes-steps { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 10px; }
.codes-steps li { font-size: 15px; color: var(--text-body); }
.codes-steps strong { color: var(--text-hi); }
.codes-note { font-size: 14px; color: var(--text-body); }

/* --- leaderboards --- */
.lb-section { margin-bottom: 54px; }
.lb-list { display: grid; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink-panel);
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 4px;
  padding: 12px 18px;
}
.lb-row.lb-top { border-color: rgba(212, 175, 55, 0.3); }
.lb-rank-1 { border-color: rgba(212, 175, 55, 0.6); background: linear-gradient(90deg, rgba(212, 175, 55, 0.07), var(--ink-panel) 60%); }
.lb-rank {
  font: 700 16px/1 var(--font-display); color: var(--text-body);
  min-width: 30px; text-align: center; font-variant-numeric: tabular-nums;
}
.lb-rank-1 .lb-rank { color: var(--gold); font-size: 20px; }
.lb-rank-2 .lb-rank, .lb-rank-3 .lb-rank { color: var(--gold-light); }
.lb-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--ink-deep); border: 1px solid rgba(140, 109, 31, 0.4);
  object-fit: cover;
}
.lb-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lb-name { font: 600 15px/1.3 var(--font-body); color: var(--text-hi); overflow-wrap: anywhere; }
.lb-sub { font-size: 12px; color: var(--text-body); }
.lb-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.lb-level {
  font: 700 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(212, 175, 55, 0.14); color: var(--gold);
  border-radius: 999px; padding: 5px 10px;
}
.lb-xp { font: 400 12px/1 var(--font-mono); color: var(--text-body); }

/* --- dispatch log --- */
.update-list { display: grid; gap: 22px; }
.update-item {
  background: var(--ink-panel);
  border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden;
}
/* Key art sits flush to the card edge, 16:9 reserved so nothing jumps when
   it lands. Older posts run it shorter so the log stays scannable. */
.update-hero {
  display: block; aspect-ratio: 16 / 9; background: var(--ink-deep);
  border-bottom: 1px solid var(--line-soft);
}
.update-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.is-collapsed .update-hero { aspect-ratio: 16 / 6; }
.update-inner { padding: 26px 30px 28px; }
.update-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.update-tag {
  font: 700 10px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 11px;
  background: rgba(212, 175, 55, 0.16); color: var(--gold);
}
.ut-hotfix { background: rgba(239, 83, 80, 0.16); color: #FF6B68; }
.ut-event { background: rgba(186, 104, 200, 0.16); color: #CE93D8; }
.ut-announcement { background: rgba(142, 163, 210, 0.16); color: #A9BCE8; }
.update-date { font: 400 12.5px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--text-body); }
.update-latest {
  font: 700 10px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(61, 220, 132, 0.14); color: var(--live-green);
  border-radius: 999px; padding: 6px 10px;
}
.update-title {
  font: 700 clamp(1.5rem, 3.2vw, 2.1rem)/1.2 var(--font-display);
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.update-title a { color: var(--text-hi); text-decoration: none; }
.update-title a:hover { color: var(--gold-light); }
.update-summary {
  font: 400 17px/1.55 var(--font-body); color: var(--text-body);
  margin-bottom: 22px; max-width: 60ch;
}
.update-content { border-top: 1px solid var(--line-soft); padding-top: 6px; }
.update-h {
  font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 24px 0 10px;
}
.update-h::before { content: '// '; color: var(--muted); }
.update-body { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.update-bullets { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.update-bullets li { font-size: 15px; line-height: 1.55; color: var(--text-body); }
.update-bullets li::marker { color: var(--gold-deep); }
.update-content strong { color: var(--text-hi); font-weight: 600; }
.update-actions {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-soft);
}
/* Collapsed: everything below the summary folds away; the actions row
   stays so the fold can be undone from where it was made. */
.is-collapsed .update-content { display: none; }
.is-collapsed .update-actions { margin-top: 4px; padding-top: 0; border-top: 0; }
.is-collapsed .update-summary { margin-bottom: 18px; }
@media (max-width: 600px) {
  .update-inner { padding: 20px 18px 22px; }
  .update-hero, .is-collapsed .update-hero { aspect-ratio: 16 / 9; }
}

/* ============================================================
   Document pages (privacy / terms / fan policy / 404)
   ============================================================ */
.doc-main { max-width: 760px; margin: 0 auto; padding: 150px 24px 110px; }
.doc-main h1 {
  font: 700 clamp(1.7rem, 3.5vw, 2.4rem)/1.2 var(--font-display);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold);
}
.doc-updated { font-size: 13px; opacity: 0.7; margin: 10px 0 40px; }
.doc-main h2 {
  font: 600 18px/1.4 var(--font-body);
  color: var(--text-hi); margin: 38px 0 12px;
}
.doc-main p, .doc-main li { max-width: 65ch; margin-bottom: 14px; }
.doc-main ul { padding-left: 22px; margin-bottom: 14px; }
.doc-main li { margin-bottom: 8px; }
.doc-footer { text-align: center; padding: 40px 24px 60px; font-size: 12px; color: rgba(206, 206, 206, 0.75); }
.doc-footer a { color: inherit; }
.doc-footer a:hover { color: var(--gold); }

.err-page {
  min-height: 100vh;
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 24px; gap: 8px;
}
.err-wordmark { width: min(300px, 74vw); height: auto; margin-bottom: 28px; }
.err-code { font: 400 13px/1 var(--font-mono); letter-spacing: 0.2em; color: var(--text-body); }
/* Was uppercase gold — the last heading still carrying the old direction. */
.err-page h1 {
  font: 700 clamp(1.8rem, 5vw, 2.6rem)/1.2 var(--font-display);
  letter-spacing: -0.02em; color: var(--text-hi);
}
.err-page p { margin: 10px 0 30px; }

/* ============================================================
   Reduced motion — kill everything
   ============================================================ */
@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;
  }
}

/* ============================================================
   FORUM
   Dense rows on hairlines rather than a grid of cards: a board is
   scanned down a column, and every card border you add is another
   edge competing with the titles.
   ============================================================ */
.forum-main { padding-top: calc(var(--nav-h) + 52px); padding-bottom: 88px; }
.forum-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 30px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.forum-loading, .forum-empty {
  font: 400 14px/1.6 var(--font-mono); color: var(--muted);
  padding: 40px 0; letter-spacing: 0.04em;
}

/* Session strip */
.forum-me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.me-id { display: flex; align-items: center; gap: 9px; }
.me-handle { font: 600 14px/1 var(--font-body); color: var(--text-hi); }
.av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--ink-deep); object-fit: cover;
}
.av-blank { display: block; }
.linkish {
  background: none; border: none; padding: 0; cursor: pointer;
  font: 400 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); transition: color 0.18s ease;
}
.linkish:hover { color: var(--gold); }
.linkish.back { margin-bottom: 22px; display: inline-block; }

/* Category filter */
.cat-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cat {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-panel); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 14px; cursor: pointer;
  font: 500 12.5px/1 var(--font-body); color: var(--text-body);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.cat:hover { color: var(--text-hi); border-color: #333333; }
.cat.is-on { color: var(--ink-base); background: var(--gold); border-color: var(--gold); font-weight: 700; }
.cat-n { font: 400 10px/1 var(--font-mono); opacity: 0.75; }

.board-actions { display: flex; justify-content: flex-end; margin-bottom: 18px; }

/* Thread list */
.th-list { list-style: none; border-top: 1px solid var(--line); }
.th {
  display: grid; grid-template-columns: minmax(0, 1fr) 84px 96px;
  gap: 18px; align-items: center;
  padding: 17px 4px; border-bottom: 1px solid var(--line-soft);
}
.th:hover { background: var(--ink-panel); }
.th-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.th-title {
  font: 600 16px/1.35 var(--font-body); color: var(--text-hi);
  text-decoration: none; overflow-wrap: anywhere;
}
.th-title:hover { color: var(--gold); }
.th-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font: 400 11.5px/1 var(--font-mono); color: var(--muted);
}
.th-meta .av { width: 18px; height: 18px; }
.dotsep { color: var(--line); }
.th-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.th-replies { font: 500 17px/1 var(--font-mono); color: var(--text-hi); font-variant-numeric: tabular-nums; }
.th-replies-l { font: 400 9.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.th-when {
  font: 400 11px/1 var(--font-mono); color: var(--muted);
  text-align: right; white-space: nowrap;
}
.th.is-locked .th-title { color: var(--text-body); }

.pill {
  display: inline-block; font: 400 9.5px/1 var(--font-mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: var(--r-sm);
  background: var(--ink-panel); border: 1px solid var(--line); color: var(--text-body);
}
.pill-mute { color: var(--amber); border-color: rgba(232, 163, 61, 0.4); }

/* Pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; }
.pager-n { font: 400 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Thread view */
.thread-head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.thread-title {
  font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.18 var(--font-display);
  letter-spacing: -0.02em; color: var(--text-hi); text-wrap: balance;
  overflow-wrap: anywhere;
}
.thread-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 13px;
  font: 400 11.5px/1 var(--font-mono); color: var(--muted);
}
.post-list { display: flex; flex-direction: column; }
.post { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.post-first { background: none; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.post-author { font: 600 14px/1 var(--font-body); color: var(--text-hi); }
.post-when { font: 400 11px/1 var(--font-mono); color: var(--muted); }
.post-head .report { margin-left: auto; opacity: 0; transition: opacity 0.18s ease, color 0.18s ease; }
.post:hover .report, .report:focus-visible { opacity: 1; }
.post-body { display: flex; flex-direction: column; gap: 13px; }
.post-body p {
  font: 400 15.5px/1.68 var(--font-body); color: var(--text-body);
  max-width: 74ch; overflow-wrap: anywhere;
}
.post-removed { font: 400 14px/1.6 var(--font-body); color: var(--muted); font-style: italic; }

/* Composer */
.composer {
  display: flex; flex-direction: column; gap: 11px;
  background: var(--ink-panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; margin-top: 30px;
}
.composer-h { font: 700 20px/1.2 var(--font-display); letter-spacing: -0.015em; color: var(--text-hi); margin-bottom: 6px; }
.lbl {
  font: 400 10px/1 var(--font-mono); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-top: 8px;
}
.inp {
  width: 100%; background: var(--ink-deep); color: var(--text-hi);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; font: 400 15px/1.55 var(--font-body);
}
.inp:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
textarea.inp { resize: vertical; min-height: 110px; }
.composer-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.composer-reply { margin-top: 34px; }

.reply-gate {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  background: var(--ink-panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; margin-top: 30px;
}
.reply-gate p { font: 400 15px/1.6 var(--font-body); color: var(--text-body); }

/* Notices — semantic colour, kept separate from the gold accent */
.forum-note {
  font: 400 14px/1.6 var(--font-body); padding: 14px 16px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--ink-panel); color: var(--text-body); margin-bottom: 22px;
}
.note-err  { border-color: rgba(229, 72, 77, 0.45);  color: var(--red-text); }
.note-warn { border-color: rgba(232, 163, 61, 0.45); color: var(--amber); }
.note-ok   { border-color: rgba(61, 214, 140, 0.45); color: var(--live-green); }
.note-mute { color: var(--muted); }

/* Your data */
.data-panel { max-width: 68ch; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.data-panel > p { font: 400 15.5px/1.68 var(--font-body); color: var(--text-body); }
.data-h { font: 700 17px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--text-hi); margin-top: 22px; }
.data-p { font: 400 15px/1.65 var(--font-body); color: var(--text-body); }
.data-caveat {
  border-left: 2px solid var(--amber); padding-left: 14px; color: var(--text-body);
}
.btn-danger { background: transparent; border: 1px solid var(--red-alert); color: var(--red-text); }
.btn-danger:hover { background: rgba(229, 72, 77, 0.12); }

@media (max-width: 720px) {
  .forum-main { padding-top: calc(var(--nav-h) + 30px); }
  .th { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .th-stats { flex-direction: row; align-items: baseline; gap: 5px; }
  .th-when { grid-column: 1 / -1; text-align: left; }
  .composer { padding: 20px; }
  .post-head .report { opacity: 1; }
}

/* ---------- Forum moderation ----------
   A queue, not a feed: each card is one decision, and the actions sit at the
   bottom in a fixed order so muscle memory works after the tenth report. */
.mod-list { display: flex; flex-direction: column; gap: 18px; }
.mod-card {
  background: var(--ink-panel); border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: var(--r-md); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 13px;
}
.mod-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mod-when, .mod-reporter { font: 400 11px/1 var(--font-mono); color: var(--muted); }
.mod-reporter { margin-left: auto; }
.mod-context {
  font: 400 12.5px/1.5 var(--font-mono); color: var(--muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.mod-thread { color: var(--text-body); text-decoration: underline; text-underline-offset: 3px; }
.mod-thread:hover { color: var(--gold); }
/* Reported text is the most hostile content on the site. Inset and bordered
   so it never reads as site chrome or as something staff wrote. */
.mod-body {
  background: var(--ink-deep); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); padding: 14px 16px;
  max-height: 320px; overflow-y: auto;
}
.mod-body p { font: 400 14.5px/1.6 var(--font-body); color: var(--text-body); overflow-wrap: anywhere; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 4px; }
.mod-actions .btn { padding: 10px 16px; font-size: 12.5px; }

.mod-log { list-style: none; border-top: 1px solid var(--line); }
.mod-log-row {
  display: grid; grid-template-columns: 120px 110px 150px 120px minmax(0, 1fr);
  gap: 14px; align-items: baseline;
  padding: 11px 4px; border-bottom: 1px solid var(--line-soft);
  font: 400 12px/1.5 var(--font-mono);
}
.mod-log-when { color: var(--muted); }
.mod-log-actor { color: var(--gold); }
.mod-log-action { color: var(--text-hi); }
.mod-log-target { color: var(--text-body); }
.mod-log-note { color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .mod-log-row { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 13px 4px; }
  .mod-reporter { margin-left: 0; }
}

/* ---------- Age gate ----------
   Three narrow fields rather than one date picker: a picker on mobile opens a
   calendar scrolled to this year, which quietly nudges toward a passing date. */
.age-gate { max-width: 44rem; }
.age-gate > p { font: 400 15px/1.6 var(--font-body); color: var(--text-body); }
.dob-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.dob-field { display: flex; flex-direction: column; gap: 6px; }
.dob-field .lbl { margin-top: 0; }
.inp-dob { width: 88px; font-variant-numeric: tabular-nums; }
.dob-year .inp-dob { width: 118px; }
.gate-small { font: 400 13px/1.55 var(--font-body); color: var(--muted); }

/* Forum closed notice — the whole page, not a banner: there is nothing else
   to look at, so anything else on screen would just be furniture. */
.forum-closed {
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
  max-width: 56ch; padding: 56px 0 40px;
}
.forum-closed p { font: 400 16px/1.68 var(--font-body); color: var(--text-body); }
.forum-closed .sec-label { color: var(--amber); }
.forum-closed .cta-row { margin-top: 14px; }

/* ---------- Player tools ----------
   Codes, badges and ranks are lookups, not destinations. They sit inside the
   game section where a reader wants them, rather than competing with the four
   real nav items for space in the header. */
.tools { display: flex; flex-direction: column; gap: 16px; margin-top: 56px; }
.tools-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool {
  display: flex; flex-direction: column; gap: 7px;
  padding: 20px 22px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--ink-panel);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.tool:hover { border-color: var(--gold-deep); background: #131313; }
.tool-name {
  font: 700 16px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--text-hi);
  display: flex; align-items: center; gap: 8px;
}
.tool-name::after {
  content: "→"; font-family: var(--font-body); color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
}
.tool:hover .tool-name::after { color: var(--gold); transform: translateX(3px); }
.tool-desc { font: 400 13.5px/1.55 var(--font-body); color: var(--text-body); }

/* Mobile menu: the four primary links first, then the lookups, then the rest. */
.mm-rule { display: block; height: 1px; background: var(--line); margin: 6px 0; }

@media (max-width: 760px) {
  .tools-row { grid-template-columns: minmax(0, 1fr); }
  .tools { margin-top: 40px; }
}

/* ---------- Brand wordmarks ----------
   The nav carries the EMPIRIAN wordmark itself rather than the name set in
   Space Grotesk — it is the real logotype, and at this size the bevel still
   reads. Height is pinned so the bar cannot shift as the image loads. */
.nav-wordmark { width: 112px; height: 19px; display: block; object-fit: contain; }
@media (max-width: 420px) {
  .nav-wordmark { width: 92px; height: 15px; }
}

/* Studio lockup on the staff sign-in card. Sits above the title, replacing
   the mono "// Staff portal" plate — one mark reads better than a label and
   a heading stacked on each other. */
.auth-wordmark { display: block; width: 240px; max-width: 82%; height: auto; margin: 0 auto 22px; }

/* ============================================================
   TWO-LEVEL SITE — studio home, game hub, Dispatch Log feed
   ============================================================ */

/* ---------- Studio hero ----------
   The studio lockup on black in a plain frame: it is the studio's own
   art, so it gets none of the game's red. */
.studio-panel {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: #000;
  box-shadow: 0 26px 64px -32px rgba(0, 0, 0, 0.85);
}
.studio-panel img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-studio .hero-eyebrow { color: var(--muted); }

/* ---------- Our games (studio home) ---------- */
.games { padding: 104px 0; border-bottom: 1px solid var(--line); background: var(--ink-base); }
.games .section-sub { margin-bottom: 44px; }
.game-card {
  display: grid; grid-template-columns: 11fr 9fr; gap: 48px; align-items: center;
}
.game-card-art { display: block; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.game-card-art img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-card-art:hover, .game-card-art:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(224, 43, 43, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 110px rgba(224, 43, 43, 0.2);
}
.game-card-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.game-card-copy .one-liner { margin-top: 0; }
.game-card-live {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-body);
}
.game-card-live .stat { color: var(--text-hi); font-variant-numeric: tabular-nums; }
.game-card-copy .latest-update { margin-top: 4px; width: 100%; }
.game-card-copy .cta-row { margin-top: 6px; }

/* ---------- Game hub ---------- */
.game-hub { padding-top: calc(var(--nav-h) + 64px); }
.game-hub .game-id { margin-bottom: 64px; }
.game-hub .cta-row.hub-cta { margin-top: 26px; }
.game-hub .cad { align-self: center; }
.game-hub .sec-label { margin-bottom: 18px; }
.game-hub .pillars { margin-bottom: 72px; }
.game-hub .triptych { margin-bottom: 40px; }
.game-hub .tools { margin-top: 0; }
/* Live numbers for this one game, framed inside the vault room. */
.hub-ledger {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 0 72px;
}
.hub-ledger .ledger-caption { padding-bottom: 22px; }
/* Scenes: same monitors as the triptych, but the grid grows as shots land. */
.scenes { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.support { display: flex; flex-direction: column; gap: 16px; margin-top: 56px; }
.support-alt { font-size: 14px; color: var(--text-body); }
.support-alt a { color: var(--text-hi); text-decoration: underline; text-underline-offset: 3px; }
.support-alt a:hover { color: var(--gold); }
.hub-team { margin-top: 72px; }
.hub-team .roster-label, .hub-team .team-roster { max-width: none; margin-left: 0; margin-right: 0; }
.hub-team .team-roster { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.hub-team .team-join { margin-top: 30px; }
.game-exit .closing-caption { margin-top: 16px; }

/* ---------- Dispatch Log index ---------- */
.log-featured {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; align-items: stretch;
  background: var(--ink-panel); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
  margin-bottom: 28px;
}
.log-featured:hover { border-color: rgba(212, 175, 55, 0.45); transform: translateY(-2px); }
.log-featured .log-copy { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.log-art { aspect-ratio: 16 / 9; background: var(--ink-deep); }
.log-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.log-art-empty {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 32px),
    var(--ink-deep);
}
.log-featured .log-art { height: 100%; aspect-ratio: auto; min-height: 280px; }
.log-title {
  font: 700 clamp(1.35rem, 2.6vw, 1.9rem)/1.2 var(--font-display);
  letter-spacing: -0.01em; color: var(--text-hi);
}
.log-summary { font: 400 15.5px/1.55 var(--font-body); color: var(--text-body); max-width: 52ch; }
.log-more { font: 600 13px/1 var(--font-body); color: var(--gold); margin-top: 6px; }
.log-more::after { content: ' \2192'; }
.log-featured .update-meta { margin-bottom: 0; }
.log-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.log-card {
  display: flex; flex-direction: column;
  background: var(--ink-panel); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.log-card:hover { border-color: rgba(212, 175, 55, 0.45); transform: translateY(-2px); }
.log-card .log-copy { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.log-card .log-title { font-size: 19px; }
.log-card .log-summary { font-size: 14.5px; }
.log-card .update-meta { margin-bottom: 0; }

/* ---------- Dispatch Log post ---------- */
.post { padding-bottom: 8px; }
.post .chapter-plate { text-align: left; margin-bottom: 22px; }
.post-crumb { color: inherit; text-decoration: none; }
.post-crumb:hover { color: var(--gold); }
.post-title {
  font: 700 clamp(1.9rem, 4vw, 2.7rem)/1.12 var(--font-display);
  letter-spacing: -0.015em; color: var(--text-hi);
  margin: 6px 0 14px; text-wrap: balance;
}
.post .update-summary { margin-bottom: 26px; }
.post-hero {
  margin: 0 0 30px; aspect-ratio: 16 / 9; background: var(--ink-deep);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.post-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-content { border-top: 0; padding-top: 0; }
.post-content .update-h { margin-top: 30px; }
.post-content .update-h:first-child { margin-top: 0; }
.post-content .update-body, .post-content .update-bullets li { font-size: 16px; }
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
}
.post-nav-link {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--ink-panel);
  transition: border-color 0.2s ease;
}
.post-nav-link:hover { border-color: rgba(212, 175, 55, 0.45); }
.post-nav-next { text-align: right; align-items: flex-end; }
.post-nav-k { font: 400 10px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.post-nav-t { font: 600 14.5px/1.35 var(--font-body); color: var(--text-hi); }

@media (max-width: 900px) {
  .game-card { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .game-card-art { max-width: 620px; }
  .log-featured { grid-template-columns: minmax(0, 1fr); }
  .log-featured .log-art { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .log-featured .log-copy { padding: 24px 24px 26px; }
  .games { padding: 80px 0; }
}
@media (max-width: 600px) {
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav-next { text-align: left; align-items: flex-start; }
  .game-hub { padding-top: calc(var(--nav-h) + 40px); }
}

/* ---------- /links — bio-link page ----------
   Reached by URL only. A single centred column of buttons in the site's
   own materials; no nav, nothing else to do here. */
.links-body { background: var(--ink-base); }
.links-page {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
}
.links-card { width: 100%; max-width: 420px; text-align: center; }
.links-brand { display: inline-block; }
.links-brand img { width: 84px; height: 84px; display: block; }
.links-name {
  font: 700 26px/1.15 var(--font-display); letter-spacing: -0.015em;
  color: var(--text-hi); margin-top: 18px;
}
.links-sub {
  font: 400 11px/1.5 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px;
}
.links-list { display: grid; gap: 12px; margin-top: 30px; }
.link-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: 6px;
  background: var(--ink-panel); border: 1px solid var(--line);
  color: var(--text-hi); text-decoration: none; text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.link-btn:hover, .link-btn:focus-visible { border-color: rgba(212, 175, 55, 0.55); transform: translateY(-1px); }
.link-btn .lb-icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--gold); }
.lb-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-name { font: 600 15px/1.2 var(--font-body); }
.lb-url { font: 400 11px/1.3 var(--font-mono); letter-spacing: 0.04em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-primary { background: var(--gold-gradient); border-color: transparent; color: var(--ink-base); }
.link-primary .lb-icon, .link-primary .lb-url { color: rgba(3, 3, 3, 0.7); }
.link-primary:hover, .link-primary:focus-visible { border-color: transparent; filter: brightness(1.04); }
.links-foot { margin-top: 28px; font: 400 12px/1 var(--font-mono); letter-spacing: 0.08em; }
.links-foot a { color: var(--muted); text-decoration: none; }
.links-foot a:hover { color: var(--gold); }

/* ---------- Changelog ----------
   A dated list, grouped by month. Entries are small by design; the page is
   a ledger, not a feed. */
.cl-month { margin-bottom: 44px; }
.cl-month-h {
  font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); padding-bottom: 10px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.cl-month-h::before { content: '// '; color: var(--muted); }
.cl-entry {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.cl-entry:last-child { border-bottom: 0; }
.cl-meta { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.cl-date { font: 500 13px/1.3 var(--font-mono); color: var(--text-hi); white-space: nowrap; }
.cl-version {
  font: 400 10.5px/1 var(--font-mono); letter-spacing: 0.08em;
  color: var(--muted); border: 1px solid var(--line); padding: 4px 7px; border-radius: 3px;
  align-self: flex-start;
}
.cl-summary { font: 500 15px/1.5 var(--font-body); color: var(--text-hi); margin-bottom: 8px; }
.cl-items { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.cl-items li { font-size: 14.5px; line-height: 1.55; color: var(--text-body); }
.cl-items li::marker { color: var(--gold-deep); }
.cl-items strong { color: var(--text-hi); font-weight: 600; }
@media (max-width: 560px) {
  .cl-entry { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cl-meta { flex-direction: row; align-items: center; gap: 10px; }
}
