/* Last Control: Reclaim — the game's website
   Palette: Last Control brand (lc-www/shared/BRAND.md). Type: Archivo Black + JetBrains Mono only.
   Fonts are self-hosted (OFL, licences next to the files). The one third-party request is Google Analytics, loaded
   by /assets/analytics.js under Consent Mode (cookies only after "Accept"). */

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-black-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #14161A;
  --shadow: #3A3630;
  --ceramic: #EAE3D5;
  --sodium: #E9B25C;
  --crack: #A6382A;

  --f-display: "Archivo Black", Impact, "Arial Black", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* dark is the default mood of the game */
  color-scheme: dark light;
  --bg: #0F1114;
  --fg: var(--ceramic);
  --muted: #A59E91;
  --accent: var(--sodium);          /* accent TEXT colour (AA on bg) */
  --rule: #3A3630;
  --rule-strong: #5A544B;
  --panel: #16191E;
  --fill: var(--sodium);            /* accent FILL (CTA, highlight) */
  --on-fill: var(--ink);
  --crack-line: var(--crack);       /* decorative only */
  --focus: var(--sodium);
  --deco: var(--sodium);            /* decorative rules, dots, borders */
  --link-line: var(--sodium);       /* link underline */
  --link-hover: var(--sodium);      /* link hover TEXT colour (AA on bg) */
  --mark: var(--sodium);            /* directive numbers, FAQ +/- */
  --headline: var(--sodium);        /* the RECLAIM line of the hero */

  --measure: 46rem; /* ~70ch of the body mono */
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #EFE8D9;
    --fg: var(--ink);
    --muted: #5B564D;
    --accent: #8E2F22;              /* crack, darkened for AA text on paper: sparse fracture accents only */
    --rule: #CFC5B1;
    --rule-strong: #9C9382;
    --panel: #E7DFCE;
    --fill: var(--sodium);
    --on-fill: var(--ink);
    --focus: var(--ink);
    --deco: #A87420;                /* darkened sodium, 3.3:1 on paper */
    --link-line: #8A5E16;           /* darkened sodium, 4.7:1 on paper */
    --link-hover: var(--ink);
    --mark: var(--ink);
    --headline: var(--ink);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-mono);
  font-size: 0.9375rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

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

::selection { background: var(--sodium); color: var(--ink); }

.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--fill);
  color: var(--on-fill);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--on-fill); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- labels ---------- */

.label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.label .dot {
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-right: 0.6rem;
  background: var(--deco);
  vertical-align: 0.05em;
}

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark:hover { color: var(--fg); }
.wordmark .mark { width: 1.75rem; height: 1.75rem; flex: none; }
.wordmark .tag {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--on-fill);
  background: var(--fill);
  padding: 0.3em 0.5em 0.25em;
}

/* the fragile A: a hairline glyph standing in for the A of LAST */
.fa {
  display: inline-block;
  width: 0.62em;
  height: 0.78em;
  margin: 0 0.015em;
  vertical-align: -0.02em;
  overflow: visible;
}
.fa .stroke { stroke: currentColor; stroke-width: 1.5px; }
.fa .crack { stroke: var(--crack-line); stroke-width: 1px; }
.hero .fa .stroke { stroke-width: 2.5px; }
.hero .fa .crack { stroke-width: 1.5px; }
@media (max-width: 30rem) {
  .wordmark .fa .crack { display: none; }   /* too small to read as cracks on a phone */
  .hero .fa .crack { stroke-width: 1px; }
}

.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}
/* 44 px tap targets; the indicator is an underline so it stays close to the text */
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.55em;
}
.site-nav a:hover { color: var(--fg); text-decoration-color: var(--rule-strong); }
@media (max-width: 30rem) {
  /* six items (Planet, Roster, Devlog, Privacy, Support, Terms) spread over the full row, 44 px targets */
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0 0.25rem; justify-content: space-between; }
  .site-nav a { letter-spacing: 0.08em; font-size: 0.6875rem; min-width: 44px; justify-content: center; }
}
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--fg); text-decoration-color: var(--deco); }

/* ---------- headings ---------- */

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  overflow-wrap: break-word;
}

/* ---------- landing ---------- */

.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--headline); }
@media (prefers-color-scheme: light) {
  /* ink headline on paper, carried by a sodium bar instead of crack red */
  .hero h1 .accent {
    width: fit-content;
    padding-bottom: 0.08em;
    background: linear-gradient(var(--sodium), var(--sodium)) left bottom / 100% 0.12em no-repeat;
  }
}

.transmission {
  border-left: 2px solid var(--deco);
  padding: 0.1rem 0 0.1rem 1.25rem;
  max-width: 34rem;
  margin: 0 0 2.25rem;
}
.transmission .label { margin-bottom: 0.75rem; }
.transmission p { margin: 0 0 0.6rem; }
.transmission p:last-child { margin-bottom: 0; }
.transmission .sign { color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }

.cta {
  display: inline-block;
  background: var(--fill);
  color: var(--on-fill);
  border: 2px solid var(--fill);
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--rule-strong);
}
.cta:hover { background: var(--bg); color: var(--fg); }
.cta-quiet {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* live status head shared by the planet strip (HQ-2137, HQ-2672): title over status, always: the status text changes
   with the state and must not reflow the panel */
.readout-head {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--rule-strong);
}
.readout-head .label { line-height: 1.4; }
.readout-status {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-wrap: balance;
}
@keyframes readout-pulse { 0%, 78% { opacity: 1; } 89% { opacity: 0.3; } 100% { opacity: 1; } }
.readout-map { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.35rem; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px dashed var(--rule-strong); }
.section h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); margin: 0.75rem 0 1.75rem; }

.directives { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.directive {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 48rem) {
  .directive { grid-template-columns: 3.5rem minmax(0, 1fr) 14rem; gap: 0 2rem; padding: 2rem 0; }
}
.directive .idx { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; color: var(--mark); padding-top: 0.2rem; }
.directive h3 { font-size: clamp(1.15rem, 3.6vw, 1.5rem); line-height: 1.1; margin: 0 0 0.75rem; }
.directive p { margin: 0; max-width: 60ch; }
.directive .meta {
  grid-column: 2;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 48rem) {
  .directive .meta { grid-column: 3; margin-top: 0.25rem; text-align: right; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0; padding: 0; list-style: none;
}
.fact {
  border: 1px solid var(--rule-strong);
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--panel);
}
.fact strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.fact span { color: var(--muted); font-size: 0.875rem; }

.join { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 60rem) { .join { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.join p { margin: 0 0 1rem; max-width: 60ch; }
.join .fine { margin-top: 1rem; }
/* ---------- legal / support pages ---------- */

.doc { padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.doc .wrap > * { max-width: var(--measure); }
.doc h1 { font-size: clamp(2rem, 8vw, 3.5rem); margin: 0.9rem 0 1rem; }
.doc .updated { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.08em; margin: 0 0 2rem; }
.doc .lede { font-size: 1rem; margin: 0 0 2rem; }
.doc h2 {
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  line-height: 1.15;
  margin: 2.75rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--rule-strong);
}
.doc h3 { font-family: var(--f-mono); font-weight: 700; text-transform: none; font-size: 1rem; letter-spacing: 0.01em; line-height: 1.4; margin: 1.5rem 0 0.5rem; }
.doc p, .doc li { margin: 0 0 0.9rem; }
.doc ul, .doc ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li::marker { color: var(--accent); }
.doc code { font-family: inherit; font-size: inherit; font-weight: 700; }   /* cookie and storage names (HQ-2772) */
.doc dl { margin: 0 0 1rem; }
.doc dt { font-weight: 700; margin-top: 0.9rem; }
.doc dd { margin: 0.2rem 0 0; color: var(--fg); }
.doc .toc { border: 1px solid var(--rule); padding: 1rem 1.25rem; margin: 0 0 1rem; background: var(--panel); }
.doc .toc ol { margin: 0.5rem 0 0; padding: 0; list-style: none; counter-reset: toc; columns: 2 14rem; column-gap: 2rem; }
/* fixed-width, right-aligned counter so 10-12 line up with 1-9 */
.doc .toc li { margin: 0 0 0.35rem; break-inside: avoid; counter-increment: toc; display: grid; grid-template-columns: 3ch minmax(0, 1fr); column-gap: 0.6ch; }
.doc .toc li::before { content: counter(toc) "."; text-align: right; color: var(--accent); }

.callout {
  border: 2px solid var(--deco);
  padding: 1.25rem 1.35rem 0.5rem;
  margin: 1rem 0 1.5rem;
  background: var(--panel);
}

.faq { border-top: 1px solid var(--rule); margin: 0 0 1rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--mark);
  font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 0.75rem; }

/* ---------- roster: Name a unit (HQ-2119) ---------- */
.roster-rules { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }
.roster-hero { padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.roster-hero .wrap { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 60rem) { .roster-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.roster-hero h1 { font-size: clamp(2.4rem, 10vw, 4.75rem); line-height: 0.95; margin: 1rem 0 1.5rem; }
.roster-hero p { max-width: 60ch; }
.roster-hero .transmission { margin-bottom: 1.75rem; }
.roster-play { margin-top: 1.5rem; }
.roster-play p { margin: 0; }
.muted-note, .section-lede { color: var(--muted); font-size: 0.875rem; }
.section-lede { margin: -0.75rem 0 1.5rem; }
.plate-inline { white-space: nowrap; font-weight: 700; color: var(--accent); }

.requisition {
  border: 1px solid var(--rule-strong);
  background: var(--panel);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: 4px 4px 0 var(--rule);
  min-width: 0;
}
.kind-switch { border: 0; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kind-switch legend { margin-bottom: 0.6rem; width: 100%; }
.kind-switch label { position: relative; cursor: pointer; }
.kind-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind-switch span {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--rule-strong);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.kind-switch input:checked + span { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.kind-switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.field { margin: 0 0 1.15rem; }
.field label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.45rem; }
.field label em { font-style: normal; color: var(--muted); letter-spacing: 0.08em; text-transform: none; font-weight: 400; }
.field input, .field textarea {
  display: block; width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  font: inherit;
  font-size: 1rem; /* 16 px: no zoom-on-focus on iPhone */
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.hint { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.8125rem; }
.plate {
  margin: 0.75rem 0 0;
  display: inline-flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border: 1px dashed var(--deco);
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em;
  max-width: 100%; overflow-wrap: anywhere;
}
.plate .plate-class { color: var(--muted); }
.plate .plate-name { color: var(--accent); }
.plate .plate-name.is-placeholder { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.requisition .cta { cursor: pointer; font-family: var(--f-mono); width: 100%; margin-top: 0.25rem; }
@media (min-width: 30rem) { .requisition .cta { width: auto; } }
.requisition .cta:disabled { opacity: 0.6; cursor: progress; }
.fine { margin: 1rem 0 0; font-size: 0.75rem; color: var(--muted); }
.result:empty { display: none; }
.result { margin-top: 1rem; padding: 0.85rem 1rem; border-left: 2px solid var(--deco); background: var(--bg); }
.result p { margin: 0 0 0.4rem; }
.result p:last-child { margin-bottom: 0; }
.result.is-error { border-left-color: var(--crack-line); }
.result.is-ok p:first-child { color: var(--fg); }
.result .receipt { color: var(--muted); font-size: 0.8125rem; }
.result code { font-family: var(--f-mono); font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.result .vote { margin-top: 0.6rem; }

.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: ledger; }
.ledger-row {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--rule); counter-increment: ledger;
}
.ledger-row::before { content: counter(ledger, decimal-leading-zero); font-size: 0.8125rem; font-weight: 700; color: var(--mark); letter-spacing: 0.08em; align-self: start; padding-top: 0.15rem; }
.ledger-main { min-width: 0; }
.ledger-main p { margin: 0; }
.ledger-name { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1rem, 3.5vw, 1.3rem); line-height: 1.15; overflow-wrap: anywhere; }
.ledger-text { margin-top: 0.35rem !important; max-width: 62ch; }
.ledger-meta { margin-top: 0.3rem !important; color: var(--muted); font-size: 0.8125rem; overflow-wrap: anywhere; }
.ledger-empty { padding: 1.1rem 0; color: var(--muted); border-bottom: 1px solid var(--rule); }
.vote {
  min-height: 44px; min-width: 8.5rem;
  font-variant-numeric: tabular-nums;
  padding: 0 0.85rem;
  background: transparent; color: var(--fg);
  border: 1px solid var(--rule-strong);
  font-family: var(--f-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
}
.vote:hover { border-color: var(--deco); }
.vote.is-voted { border-color: var(--deco); color: var(--accent); cursor: default; }
.vote-cell { display: grid; justify-items: end; gap: 0.3rem; }
.report { margin-top: 0.15rem; font-size: 0.75rem; color: var(--muted); }
.report summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 0.3em;
}
.report summary::-webkit-details-marker { display: none; }
.report[open] summary { color: var(--fg); }
.report-reasons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.report-reason {
  min-height: 44px; padding: 0 0.7rem;
  background: transparent; color: var(--fg); border: 1px solid var(--rule-strong);
  font-family: var(--f-mono); font-size: 0.75rem; cursor: pointer;
}
.report-reason:hover { border-color: var(--crack-line); }
.report-reason:disabled { opacity: 0.55; cursor: default; }
.report-note { margin: 0.45rem 0 0 !important; color: var(--muted); }
.report-note:empty { display: none; }
.report-note:focus { outline: none; }
.ledger-row.is-gone .ledger-name, .ledger-row.is-gone .ledger-text { text-decoration: line-through; color: var(--muted); }
.vote-note { margin: 0; font-size: 0.75rem; color: var(--muted); max-width: 16rem; text-align: right; }
.vote-note:empty { display: none; }
@media (max-width: 30rem) { .ledger-row .vote-cell { grid-column: 2; justify-items: start; margin-top: 0.5rem; } .vote-note { text-align: left; } }
@media (max-width: 30rem) {
  .ledger-row { grid-template-columns: 1.75rem minmax(0, 1fr); }
}
.home-roster { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 60rem) { .home-roster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.home-roster p { margin: 0 0 1rem; max-width: 60ch; }
.home-roster .plate { justify-self: start; margin: 0; font-size: clamp(1rem, 3.2vw, 1.5rem); padding: 0.85rem 1.15rem; }
@media (min-width: 60rem) { .home-roster .plate { justify-self: center; } }

/* ---------- devlog (HQ-2119) ---------- */
.devlog .entry { border-top: 1px dashed var(--rule-strong); padding-top: 1.5rem; margin-top: 2rem; }
.devlog .entry h2 { border-top: 0; padding-top: 0; margin: 0.5rem 0 1.25rem; }
.devlog .devlog-part { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px dashed var(--rule-strong); }
.devlog .devlog-part + .entry { border-top: 0; padding-top: 0; margin-top: 0.75rem; }
.entry-meta { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.devlog .transmission { margin: 0 0 1.5rem; }
.devlog .cta { margin-top: 0.5rem; }
.devlog-intro { font-size: clamp(1rem, 3.6vw, 1.2rem); font-weight: 700; margin: 0 0 1.25rem; max-width: 46ch; }
/* Salvage Record entries (HQ-2136, rendered by tools/devlog/salvage_drop.py) */
.record-art { margin: 0 0 1.75rem; }
.record-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--rule-strong);
  background: var(--panel);       /* holds the frame while the image loads */
}
.record-art figcaption {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 30rem) { .record-art figcaption { letter-spacing: 0.1em; } }
.record-store { margin: 0; font-size: 0.875rem; color: var(--muted); }
.record-store a { color: var(--fg); font-weight: 700; }

/* ---------- press kit (HQ-2105) ---------- */
.doc .wrap > .wide { max-width: none; }
.doc .wrap > .wide > h2, .doc .wrap > .wide > .press-note { max-width: var(--measure); }
.press .actions { margin: 0 0 0.75rem; }
.press-note { color: var(--muted); font-size: 0.875rem; }
.press .sign { color: var(--accent); }
.press .transmission { margin: 0 0 1.5rem; }
.doc .play { margin: 0 0 2rem; }
.doc .play .play-note { margin: 0; }
.press .lede + .play { margin-bottom: 1.25rem; }

.doc .factsheet { margin: 0; border-top: 1px solid var(--rule); }
.factsheet > div { display: grid; gap: 0.15rem 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 40rem) { .factsheet > div { grid-template-columns: 12rem minmax(0, 1fr); } }
.doc .factsheet dt {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15rem;
}
.doc .factsheet dd { margin: 0; }

.press figure { margin: 0; min-width: 0; }
.press figure img { width: 100%; height: auto; border: 1px solid var(--rule-strong); background: var(--panel); }
.press figure > a { display: block; }
.press figure > a:hover img { border-color: var(--deco); }
.press figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.press figcaption .dl { white-space: nowrap; }
.press figcaption a { color: var(--fg); font-weight: 700; }

.gallery { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery > figure:first-child { grid-column: 1 / -1; }   /* five frames: one wide, then two rows of two */
}

.press-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 886;
  background: #000;
  border: 1px solid var(--rule-strong);
}

.art-row { display: grid; gap: 2rem 1.5rem; align-items: start; }
@media (min-width: 48rem) { .art-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.press .icon-fig { max-width: 16rem; }
.press .icon-fig img { border: 0; background: none; }

.logo-grid { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 48rem) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* fixed backgrounds: each wordmark shows on the ground it is made for, whatever the page scheme */
.logo-tile {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--rule-strong);
}
.logo-tile.on-dark { background: #0F1114; }
.logo-tile.on-light { background: #EFE8D9; }
.press .logo-tile img { border: 0; background: none; }
.press .mark-fig img { width: 6rem; }

/* ---------- 404 ---------- */

.lost { padding: clamp(4rem, 14vw, 9rem) 0; }
.lost h1 { font-size: clamp(2.4rem, 11vw, 5rem); margin: 1rem 0 1.25rem; }
.lost p { max-width: 46ch; margin: 0 0 2rem; }
.lost-play { margin-top: 2rem; }
.lost-play p { margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.site-footer .wrap { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--fg);
}
.site-footer nav a[aria-current="page"] { text-decoration-color: var(--deco); text-decoration-thickness: 2px; }
.site-footer p { margin: 0; }
.site-footer .legal { display: grid; gap: 0.3rem; }
/* "Cookie settings" (reopens the cookie bar) sits on the copyright line; a 44 px tap target like the nav links */
.site-footer .cookie-settings { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 48rem) { .site-footer .legal { text-align: right; } }
@media (max-width: 30rem) {
  /* seven items (with Planet and Press) on one row on a phone, spread like the header nav */
  .site-footer ul { gap: 0 0.25rem; justify-content: space-between; }
  .site-footer nav a { letter-spacing: 0; font-size: 0.6875rem; }
  /* the copyright line breaks before the address, without a dangling separator */
  .site-footer .legal-sep { display: none; }
  .site-footer .legal-mail { display: table; }
}

/* ---------- the planet page (HQ-2672) ---------- */

:root {
  --map-bg: #0C0D0F;                /* the tiles' sea: the map stays dark in light mode too */
  --ramp: linear-gradient(90deg, #A6382A 0%, #E9B25C 50%, #EAE3D5 100%);   /* contaminated -> clean, as on the map */
}

.planet-head { padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.planet-head h1 { font-size: clamp(2.4rem, 10vw, 4.5rem); line-height: 0.95; margin: 0.9rem 0 1rem; overflow-wrap: anywhere; }
.planet-lede { max-width: 60ch; margin: 0 0 1rem; }
.planet-game { margin: 0 0 clamp(1.5rem, 4vw, 2rem); }
.planet-game-line { margin: 0 0 0.75rem; font-size: 0.875rem; line-height: 1.45; max-width: 56ch; }

.planet-strip {
  border: 1px solid var(--rule-strong);
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--rule);
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.75rem);
}
.planet-strip.is-live .readout-head .dot { animation: readout-pulse 2.4s linear infinite; }
.planet-strip.is-down .readout-head .dot { background: var(--crack-line); }
.strip-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strip-cell {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.strip-cell dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.strip-cell dt .unit { text-transform: none; }
.strip-cell dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.strip-cell:last-child { grid-column: 1 / -1; }
@media (min-width: 48rem) {
  .strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip-cell { padding: 1rem 0.75rem 1rem 0.9rem; border-bottom: 0; border-left: 1px solid var(--rule); }
  .strip-cell dd { font-size: clamp(1.1rem, 1.85vw, 1.5rem); }
  .strip-cell:first-child { padding-left: 0; border-left: 0; }
  .strip-cell:last-child { grid-column: auto; }
}
.planet-strip.is-thin .strip-grid { display: none; }
.strip-line { margin: 0; padding-top: 0.85rem; color: var(--accent); font-size: 0.875rem; }

.planet-map { border-top: 1px dashed var(--rule-strong); padding-top: clamp(1.25rem, 3vw, 1.75rem); }
.map-tools {
  display: grid;
  gap: 1rem 2rem;
  align-items: end;
  padding-bottom: 1rem;
}
@media (min-width: 48rem) { .map-tools { grid-template-columns: minmax(0, 1fr) auto; } }
.find .label { display: block; margin-bottom: 0.5rem; }
.find-row { display: flex; gap: 0.5rem; max-width: 30rem; }
.find input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;           /* 16 px: no zoom-on-focus on iPhone */
}
.find input::placeholder { color: var(--muted); }
.find button {
  min-height: 44px;
  padding: 0 1rem;
  border: 2px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.find button:hover { border-color: var(--deco); }
.find-status, .share-status { margin: 0.5rem 0 0; min-height: 1.4em; font-size: 0.8125rem; color: var(--muted); }
.find-status a { display: inline-flex; align-items: center; min-height: 44px; }
.share-status { word-break: break-all; }
.share { display: grid; justify-items: start; }
@media (min-width: 48rem) {
  .share { justify-items: end; text-align: right; align-self: start; margin-top: calc(0.75rem * 1.65 + 0.5rem); }
  .map-tools { align-items: start; }
}
.share-button { cursor: pointer; font-family: inherit; }

.map-frame { position: relative; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.map {
  height: min(68vh, 34rem);
  min-height: 20rem;
  background: var(--map-bg);
}
@media (min-width: 60rem) { .map { height: min(72vh, 40rem); } }
.map-hint, .map-noscript {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  transform: translateX(-50%);
  z-index: 500;
  margin: 0;
  padding: 0.4rem 0.75rem;
  max-width: calc(100% - 2rem);
  background: #0F1114;
  border: 1px solid #5A544B;
  color: #EAE3D5;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
}
.map-noscript { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 0.75rem; padding-bottom: 0.5rem; }
.legend { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 0.75rem; color: var(--muted); }
.legend-ramp { order: 1; width: 6rem; height: 0.6rem; background: var(--ramp); border: 1px solid var(--rule-strong); }
.legend span:last-child { order: 2; }
.credit { margin: 0; font-size: 0.75rem; color: var(--muted); }

/* Leaflet, in the site's own clothes */
.planet .leaflet-container { background: var(--map-bg); font-family: var(--f-mono); }
.planet .leaflet-bar { border: 1px solid #5A544B; border-radius: 0; box-shadow: none; }
.planet .leaflet-bar a {
  width: 44px; height: 44px; line-height: 42px;
  background: #0F1114;
  color: #EAE3D5;
  border-bottom-color: #3A3630;
  border-radius: 0 !important;
  font-family: var(--f-mono);
}
.planet .leaflet-bar a:hover, .planet .leaflet-bar a:focus { background: #16191E; color: #E9B25C; }
.planet .leaflet-bar a.leaflet-disabled { background: #0F1114; color: #5A544B; }
.planet .leaflet-control-attribution {
  background: rgba(15, 17, 20, 0.8);
  color: #A59E91;
  font-size: 0.6875rem;
}
.planet .leaflet-control-attribution a { color: #EAE3D5; }
.planet .leaflet-container a.leaflet-popup-close-button { color: #EAE3D5; }
.planet .district-tip {
  background: #0F1114;
  color: #EAE3D5;
  border: 1px solid #5A544B;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.planet .district-tip::before { display: none; }
.planet .city-mark {
  background: transparent;
  border: 2px solid #E9B25C;
  box-shadow: 0 0 0 1px rgba(15, 17, 20, 0.8);
}
.planet .city-mark.is-ranked { background: #E9B25C; }
.planet .leaflet-marker-icon:focus-visible { outline: 2px solid #EAE3D5; outline-offset: 2px; }

.boards h3 { font-family: var(--f-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; line-height: 1.45; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
.boards-empty { font-family: var(--f-display); font-size: clamp(1.15rem, 4.2vw, 1.6rem); line-height: 1.2; text-transform: uppercase; color: var(--accent); max-width: 34ch; margin: 0 0 1.75rem; }
.board, .places { margin: 0 0 2rem; max-width: 52rem; }
.bars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.bar-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 9rem) minmax(0, 1fr) 5.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.bar-rank { font-weight: 700; color: var(--mark); font-variant-numeric: tabular-nums; }
.bar-name { display: block; min-height: 44px; line-height: 44px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { width: 100%; height: 0.75rem; }
.bar-track { fill: var(--panel); }
.bar-fill { fill: var(--deco); }
.bar-value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 30rem) {
  .bar-row { grid-template-columns: 1.75rem minmax(0, 1fr) 4.75rem; row-gap: 0.35rem; }
  .bar { grid-column: 2 / -1; grid-row: 2; }
}
.place-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.place-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--rule-strong);
  background: var(--panel);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.place-list a:hover { border-color: var(--deco); }
.boards .muted-note { max-width: 60ch; }
#thin-note { white-space: pre-line; }

/* founder counts (HQ-2684): one line on a place's strip, a card per place with founders on /planet */
.strip-founders {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--rule-strong);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
}
.strip-founders::before, .founder-line::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-right: 0.6rem;
  background: var(--deco);
  vertical-align: 0.05em;
}
.founders { margin: 0 0 2rem; max-width: 52rem; }
.founder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) { .founder-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.founder-card-item {
  border: 1px solid var(--rule-strong);
  background: var(--panel);
  padding: 0.25rem 1rem 0.85rem;
  min-width: 0;
}
.founder-place-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.founder-line { margin: 0; font-size: 0.8125rem; color: var(--muted); }

/* ---------- the founder share page /f/?n= (HQ-2684) ---------- */

.founder-head { padding: clamp(2rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3.5rem); }
.founder-head > .wrap > .label { margin-bottom: 1rem; }
.founder-card {
  max-width: 52rem;
  border: 1px solid var(--rule-strong);
  border-left: 6px solid var(--deco);
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--rule);
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
}
.founder-card[data-state="erased"], .founder-card[data-state="missing"], .founder-card[data-state="bad"],
.founder-card[data-state="error"] { border-left-color: var(--rule-strong); }
.founder-card[data-state="erased"] { border-left-color: var(--crack-line); }
.founder-card[data-state="loading"] .founder-status::after { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem;
  margin-left: 0.6rem; background: var(--deco); animation: readout-pulse 1.2s linear infinite; vertical-align: 0.05em; }
.founder-status { padding-bottom: 0.85rem; border-bottom: 1px dashed var(--rule-strong); }
.founder-card h1 {
  font-size: clamp(2.2rem, 11vw, 5rem);
  line-height: 0.95;
  margin: 1.1rem 0 0;
  overflow-wrap: anywhere;
}
.founder-card[data-state="erased"] h1, .founder-card[data-state="missing"] h1,
.founder-card[data-state="bad"] h1 { font-size: clamp(1.6rem, 7vw, 3rem); color: var(--muted); }
.founder-sub {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--f-mono);
  font-size: clamp(0.875rem, 3.2vw, 1.125rem);
  letter-spacing: 0.2em;
  color: var(--accent);
}
.founder-facts {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.founder-fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.founder-fact dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.founder-fact dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
/* the callsign has a row of its own and never breaks at its hyphen (WARDEN-7Q4); the founding date too on a phone,
   so no row is left half-ruled; a lone country (no city) spans the row it would otherwise share */
.founder-fact-callsign, .founder-fact-date, #founder-row-city[hidden] + #founder-row-country { grid-column: 1 / -1; }
.founder-fact-callsign dd {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 6vw, 2.25rem);
  line-height: 1.05;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}
@media (min-width: 48rem) {
  .founder-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .founder-fact { padding: 1rem 0.75rem 1rem 0.9rem; border-bottom: 0; border-left: 1px solid var(--rule); }
  .founder-fact-callsign { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .founder-fact-callsign + .founder-fact, .founder-fact-callsign + [hidden] + .founder-fact { padding-left: 0; border-left: 0; }
  .founder-fact-date, #founder-row-city[hidden] + #founder-row-country { grid-column: auto; }
}
.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0.6rem 0.9rem;
  background: var(--fill);
  color: var(--on-fill);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--rule-strong);
}
.founder-badge-mark { flex: none; width: 0.6rem; height: 0.6rem; background: var(--on-fill); transform: rotate(45deg); }
.founder-note { margin: 1.25rem 0 0; max-width: 60ch; color: var(--muted); font-size: 0.875rem; }
.founder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.25rem; }
.founder-actions:not(:has(> :not([hidden]))) { display: none; }
.founder-actions .cta { cursor: pointer; font-family: inherit; }
.founder-place { display: inline-flex; align-items: center; min-height: 44px; }
.founder .share-status:empty { display: none; }

/* ---------- the friend page /i/?c= (HQ-2787) ---------- */

.invite-head { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.invite-head > .wrap > .label { margin-bottom: 1rem; }
.invite-card {
  max-width: 60rem;
  border: 1px solid var(--rule-strong);
  border-left: 6px solid var(--deco);
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--rule);
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
}
.invite-card[data-state="invalid"], .invite-card[data-state="none"] { border-left-color: var(--rule-strong); }
.invite-status { padding-bottom: 0.85rem; border-bottom: 1px dashed var(--rule-strong); }
.invite-card[data-state="loading"] .invite-status::after { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem;
  margin-left: 0.6rem; background: var(--deco); animation: readout-pulse 1.2s linear infinite; vertical-align: 0.05em; }

/* who invited you: the neighbour picture over the callsign on a phone, beside it from tablet width */
.invite-who { display: grid; gap: 0.9rem; margin-top: 1.1rem; }
@media (min-width: 40rem) { .invite-who { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.5rem; } }
.invite-pic { width: 8.25rem; height: auto; overflow: visible; }
.np-grid rect { fill: none; stroke: var(--rule-strong); stroke-width: 1; }
.np-mine { fill: var(--fill); }
.np-flag { fill: none; stroke: var(--on-fill); stroke-width: 3; stroke-linejoin: miter; }
.np-yours { fill: none; stroke: var(--deco); stroke-width: 2.5; stroke-dasharray: 6 4; }
.np-plus { fill: none; stroke: var(--deco); stroke-width: 3; }
.np-arrow { fill: none; stroke: var(--muted); stroke-width: 2; }
.np-x { fill: none; stroke: var(--accent); stroke-width: 3; display: none; }
.invite-card[data-state="invalid"] .np-mine { fill: var(--rule-strong); }
.invite-card[data-state="invalid"] .np-flag { stroke: var(--panel); }
.invite-card[data-state="invalid"] .np-yours { stroke: var(--accent); }
.invite-card[data-state="invalid"] .np-plus { display: none; }
.invite-card[data-state="invalid"] .np-x { display: inline; }
.invite-card[data-state="none"] .np-mine, .invite-card[data-state="none"] .np-flag,
.invite-card[data-state="none"] .np-arrow { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .invite-card[data-state="valid"] .np-yours { animation: np-march 1.6s linear infinite; }
}
@keyframes np-march { to { stroke-dashoffset: -20; } }
.invite-name { min-width: 0; }
.invite-card h1 {
  font-size: clamp(2rem, 9.5vw, 4.25rem);
  line-height: 0.95;
  margin: 0;
  overflow-wrap: anywhere;
}
.invite-card[data-state="invalid"] h1, .invite-card[data-state="none"] h1 { color: var(--muted); }
/* a callsign fits one line at 390 px (SCRAPPER-2KD); a longer one breaks after its hyphen, never cut off; the other
   headings are smaller, so the steps barely move when the inviter arrives */
.invite-card[data-state="valid"] h1 { font-size: clamp(1.5rem, 8vw, 4.25rem); overflow-wrap: break-word; }
.invite-card:not([data-state="valid"]) h1 { font-size: clamp(1.6rem, 7vw, 3rem); }
.invite-sub {
  margin: 0.6rem 0 0;
  min-height: 1.5em;                /* kept while the invite is read, so the steps do not jump when it arrives */
  font-size: clamp(0.8125rem, 3vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-wrap: balance;
}

/* the three steps, each a number and a picture; the QR beside them on a desktop with a mouse */
.invite-body { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
@media (min-width: 48rem) { .invite-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; } }
/* the numbers count the steps shown that are actions: a spent code is shown, struck through, without a number */
.invite-steps { list-style: none; margin: 0; padding: 0; counter-reset: invite-step; }
.invite-step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
  counter-increment: invite-step;
}
.invite-step:not([hidden]) ~ .invite-step:not([hidden]) { border-top: 1px solid var(--rule); }
.invite-card[data-state="invalid"] #invite-step-code { counter-increment: none; }
.invite-card[data-state="invalid"] #invite-step-code .invite-num { visibility: hidden; }
.invite-num::before { content: counter(invite-step); }
.invite-num {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  margin-top: 0.55rem;
  border: 2px solid var(--deco);
  color: var(--mark);
  font-weight: 700;
  font-size: 0.875rem;
}
.invite-step-main { min-width: 0; }
.invite-step-main.play { min-height: 3.4rem; }

.invite-plate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}
.invite-code {
  margin: 0;
  display: inline-flex;
  gap: 0.45em;
  padding: 0.35rem 0.75rem;
  background: var(--bg);
  border: 1px dashed var(--rule-strong);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 8.5vw, 2.5rem);
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--fg);
  font-variant-numeric: tabular-nums slashed-zero;
  user-select: all;
  -webkit-user-select: all;
  white-space: nowrap;
}
.invite-card[data-state="invalid"] .invite-code { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent);
  text-decoration-thickness: 3px; }
.invite-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  background: var(--fill);
  color: var(--on-fill);
  border: 2px solid var(--fill);
  box-shadow: 3px 3px 0 var(--rule-strong);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.invite-copy:hover { background: var(--bg); color: var(--fg); }
.invite-copy svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.25; }
.invite-copy .ic-tick { display: none; stroke-width: 3; }
.invite-copy[data-copied="true"] .ic-copy { display: none; }
.invite-copy[data-copied="true"] .ic-tick { display: block; }
.invite-copy-status { margin: 0.4rem 0 0; min-height: 1.4em; font-size: 0.8125rem; color: var(--muted); text-wrap: balance; }
.invite-copy-status:empty { min-height: 0; margin: 0; }

.invite-paste { display: flex; align-items: center; gap: 0.9rem; }
.invite-phone { flex: none; width: 2.5rem; height: auto; }
.ph-body { fill: none; stroke: var(--fg); stroke-width: 2.25; }
.ph-field { fill: var(--bg); stroke: var(--deco); stroke-width: 2; stroke-dasharray: 3 2; }
.ph-arrow { fill: none; stroke: var(--deco); stroke-width: 2.5; }
.invite-step-text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* the QR only where it can be scanned by another device: a wide screen with a mouse */
.invite-qr { display: none; margin: 0; }
@media (min-width: 48rem) and (hover: hover) and (pointer: fine) {
  .invite-qr { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding-top: 1.25rem;
    margin-left: 2rem; }
}
.invite-qr[data-off] { display: none !important; }
.invite-qr svg { width: 11rem; height: 11rem; border: 1px solid var(--rule-strong); }
.qr-bg { fill: var(--ceramic); }
.qr-dots { fill: var(--ink); }
.invite-qr figcaption {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.invite-noscript { margin: 1rem 0 0; color: var(--muted); font-size: 0.875rem; }
.invite-clip { position: fixed; top: 0; left: -9999px; opacity: 0; }

.invite-world { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) { .invite-world { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; } }
.invite-world h2 { margin-bottom: 1rem; }
.invite-world p { max-width: 46ch; }
.invite-world img { width: 100%; height: auto; border: 1px solid var(--rule-strong); }

/* ---------- the landing hero: the live map and one call to action (HQ-2673) ---------- */

/* phone: name, map, button, totals; desktop: name and button beside the map, totals under both */
.hero-live { padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(2.25rem, 5vw, 3.5rem); }
.hero-live .hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "map" "cta" "strip";
  align-items: start;
}
.hero-title { grid-area: title; min-width: 0; }
.hero-map { grid-area: map; min-width: 0; }
.hero-cta { grid-area: cta; min-width: 0; }
.hero-strip { grid-area: strip; min-width: 0; margin-top: 0.5rem; }
@media (min-width: 60rem) {
  .hero-live .hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas: "title map" "cta map" "strip strip";
    grid-template-rows: auto 1fr auto;
    gap: 1.5rem clamp(2rem, 4vw, 3.5rem);
  }
  .hero-strip { margin-top: 0; }
}

.hero-live h1 {
  font-size: clamp(1.75rem, 8.6vw, 4.25rem);
  line-height: 0.92;
  margin: 0.7rem 0 0.75rem;
}
@media (max-width: 47.99rem) {
  /* LAST CONTROL: on one line, RECLAIM under it: two lines keep the map and the button above the fold */
  .hero-live h1 .line-a, .hero-live h1 .line-b { display: inline; }
}
.hero-lead {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
}
@media (min-width: 60rem) { .hero-lead { margin-top: 0.5rem; } }

.hero-live .map-frame { border: 1px solid var(--rule-strong); }
.hero-live .map { height: clamp(12rem, 54vw, 17rem); min-height: 0; }
@media (min-width: 60rem) { .hero-live .map { height: clamp(26rem, 58vh, 34rem); } }
.hero-live .map-hint { bottom: 1.85rem; font-size: 0.6875rem; letter-spacing: 0.1em; width: max-content; }
@media (max-width: 47.99rem) {
  /* pinch and the picker zoom a phone map; the buttons would cover a third of it */
  .hero-live .leaflet-control-zoom { display: none; }
}
.map-pick { position: absolute; top: 10px; right: 10px; z-index: 800; }
.map-pick select {
  min-height: 44px;
  max-width: 11.5rem;
  padding: 0 0.75rem;
  border: 1px solid #5A544B;
  border-radius: 0;
  background: #0F1114;
  color: #EAE3D5;
  font: inherit;
  font-size: 1rem;           /* 16 px: no zoom-on-focus on iPhone */
  font-weight: 700;
  cursor: pointer;
}
.map-pick select:hover { border-color: #E9B25C; }
.map-pick select:focus-visible { outline: 2px solid #E9B25C; outline-offset: 2px; }

/* the one call to action (rendered from web/assets/cta.json by tools/cta/build_cta.py) */
.play { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; }
.play-badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.play-badge img { width: 162px; height: 54px; }
.play-badge:focus-visible { outline-offset: 4px; }
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 3px 0 var(--rule-strong); }
@media (prefers-reduced-motion: reduce) {
  .play-badge:hover { transform: none; box-shadow: 0 0 0 2px var(--rule-strong); }
}
.play-note, .play-soon {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.play-soon { flex-basis: 100%; color: var(--fg); }
.play-button { min-height: 48px; display: inline-flex; align-items: center; }
.play-link { display: inline-flex; align-items: center; min-height: 44px; }
.join .play { margin-top: 0.5rem; }

/* ---------- landing: three benefit rows, then the closing call to action (HQ-2773) ---------- */
/* phone: headline, line, picture, stacked; desktop: picture and words side by side, the picture side alternating */
.benefits { padding-top: clamp(1rem, 3vw, 2rem); }
.benefit { display: grid; gap: 1rem 3rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.75rem) 0; }
.benefit + .benefit { border-top: 1px solid var(--rule); }
.benefit-copy { min-width: 0; }
.benefit-copy h2 { font-size: clamp(1.35rem, 5vw, 2.1rem); line-height: 1.05; margin: 0.6rem 0 0.75rem; }
.benefit-copy p { margin: 0; max-width: 40ch; }
.benefit-copy .fine { margin-top: 0.85rem; }
.benefit-shot { margin: 0; min-width: 0; }
.benefit-shot img { width: 100%; height: auto; border: 1px solid var(--rule-strong); background: var(--panel); }
@media (min-width: 48rem) {
  .benefit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .benefit:nth-child(even) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .benefit:nth-child(even) .benefit-shot { order: -1; }
}

.closer h2 { margin-bottom: 0.75rem; }
.closer-lead { margin: 0 0 1.25rem; font-size: clamp(1rem, 3.6vw, 1.25rem); font-weight: 700; }
.closer .studio { margin: 1.75rem 0 0; color: var(--muted); font-size: 0.875rem; }

.lore .transmission { margin: 0; }

/* ---------- the cookie bar (HQ-2772, drawn by /assets/analytics.js) ----------
   A compact bar fixed at the bottom: one sentence and two buttons; on a 390 px phone about 105 px tall. It docks at
   the top (.is-top) when an App Store badge in the first viewport would sit under it. Above Leaflet's panes (1000).
   analytics.js pads the body by the room it takes from its edge (height + 0.75rem + safe-area inset). */
.consent-bar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 2000;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--panel);
  color: var(--fg);
  border: 1px solid var(--rule-strong);
  box-shadow: 3px 3px 0 var(--rule-strong);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0;
}
.consent-bar.is-top { top: calc(0.75rem + env(safe-area-inset-top, 0px)); bottom: auto; }
.consent-text { flex: 1 1 auto; min-width: 0; margin: 0; }
.consent-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.consent-btn {
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--rule-strong);
  background: transparent;
  color: var(--fg);
}
.consent-btn:hover { border-color: var(--fg); }
.consent-decline { border-color: var(--muted); }   /* 3:1 control edge on the panel, both schemes */
.consent-decline:hover { border-color: var(--fg); }
.consent-accept { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.consent-accept:hover { background: var(--bg); color: var(--fg); border-color: var(--fill); }
@media (max-width: 40rem) {
  .consent-bar { flex-wrap: wrap; }
  .consent-text { flex-basis: 100%; }
  .consent-actions { flex: 1 1 100%; }
  .consent-decline { flex: 0 0 auto; }
  .consent-accept { flex: 1 1 auto; }
}

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

@media print {
  .site-nav, .skip-link, .actions, .consent-bar { display: none; }
  body { background: #fff; color: #000; }
}
