/* Scrapship's website: the rule sheet (CLEANUP phase 2). Every page that is not the game links this file first and
   follows these rules; a page keeps in its own <style> only what is its own (the landing page's hero and sections).

   TYPE    The pixel face (the game's 5x7, drawn by landing.js from data-px) is for the logo and the page headings,
           h1 and h2, and nothing else. Everything else, card titles, questions, nav, labels, buttons and body, is
           plain text in one face (--body), at one of four sizes (--t1 to --t4).
   SPACE   One spacing scale (--s1 to --s5).
   BUTTONS One primary (blue: .play, .btn.go) per screen; every other button is quiet (.btn, .play.quiet). The bar's
           PLAY is the page's primary; while another primary is on screen it turns quiet (landing.js).
   COLOUR  The palette below, named once. The five block colours are for blocks only.
   LAYOUT  One page width (--page) and gutter (--gut); every page's content fills that column; prose keeps to
           --measure. One header on every page (.site-bar): brand, the pages, sign in, PLAY.
   SCRAP   The site is built from the game's salvage (scrap.js paints it with gkit.js; see the Scrap section at the end):
           the bar and footer are hull, a section or a page is a housing, a panel or card is one plate round a calm
           face, buttons are the game's keys (the primary is the lit key, blue, hazard stripes), small labels are tape,
           boards are screens. Words always sit on a calm fill; wear, rust, wires and pipes keep to rims and gutters. */
/* The body face: IBM Plex Sans (SIL Open Font License), served from this site, one variable file for every weight. */
@font-face { font-family: "Scrap5"; font-display: swap; src: url("/scrapship/art/fonts/scrap5.otf") format("opentype"); }
@font-face { font-family: "m5x7"; font-display: swap; src: url("/scrapship/art/fonts/m5x7.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("/scrapship/art/fonts/plex-sans.woff2") format("woff2"); }
:root {
  /* Colour */
  --bg: #0a0e16; --panel: #171c21; --panel-hi: #1f262c; --edge: #0e1012; --line: #2f3437; --line-soft: #1d2226;
  --dim: #59626e; --mid: #7d8794; --hi: #a3adba; --white: #fff;
  --you: #4285f4; --you-lit: #5b9bff; --you-edge: #2e5dab; --gold: #ffd27a; --bad: #ff8a73; --live: #9cdfff;
  /* The five blocks, for blocks only */
  --shield: #7fe9ff; --engine: #ffa23c; --cannon: #ff4d7a;
  /* Type: one face, four sizes */
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t1: 13px; --t2: 15px; --t3: 17px; --t4: 21px;
  /* Space */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 72px;
  /* Layout */
  --page: 1160px; --measure: 68ch; --gut: 40px;
}
@media (max-width: 699px) { :root { --gut: 16px; --t3: 16px; --t4: 19px; --s5: 56px; } }

html { background: var(--bg); color-scheme: dark; }
body { margin: 0; color: var(--hi); font: var(--t3)/1.65 var(--body); overflow-x: hidden; }
canvas { image-rendering: crisp-edges; image-rendering: pixelated; }
a { color: var(--white); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
p { margin: 0 0 var(--s2); }
h3 { font: 700 var(--t3)/1.35 var(--body); color: var(--white); margin: 0 0 var(--s1); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pxc { display: block; }
html:not(.js) [data-px] { font-weight: bold; color: var(--white); letter-spacing: 1px; text-transform: uppercase; }
#sky { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; z-index: -1; display: block; }
.kicker { color: var(--dim); font-size: var(--t1); letter-spacing: 3px; margin: 0 0 var(--s2); }
.note { color: var(--dim); font-size: var(--t1); }
.gold { color: var(--gold); }

/* ---- The header: the same on every page. Signed out: SIGN IN; signed in: your ship, your name, SIGN OUT. PLAY last. ---- */
.site-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); padding: 12px var(--gut); background: #2f3437; box-shadow: 0 3px 0 #0b0d0e; }
.site-bar .brand { text-decoration: none; }
.site-bar .brand .pxc { display: inline-block; vertical-align: middle; }
.site-bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) 20px; margin-right: auto; }
.site-bar nav a, .site-bar .who a, .site-bar .who button { color: var(--mid); text-decoration: none; font-size: var(--t1); letter-spacing: 1px; }
.site-bar nav a:hover, .site-bar .who a:hover, .site-bar .who button:hover, .site-bar nav a[aria-current="page"] { color: var(--white); }
.site-bar .who { display: flex; align-items: center; gap: 10px; }
.site-bar .who canvas { width: 30px; height: 30px; }
.site-bar .who .name { color: var(--white); }
.site-bar .who button { font-family: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 1100px) { .site-bar .wide { display: none; } }
@media (max-width: 699px) {
  .site-bar { gap: 10px var(--s2); padding-top: 10px; padding-bottom: 10px; }
  .site-bar nav { gap: 8px; flex-wrap: nowrap; }
  .site-bar nav a { letter-spacing: 0.5px; white-space: nowrap; }
  @media (max-width: 374px) { .site-bar nav a { font-size: 12px; letter-spacing: 0; } }
  .site-bar .who { margin-left: 0; }
  .site-bar .who canvas { display: none; }
}

/* ---- Buttons: a hull block, flat fill and a darker right and bottom edge; hovered it lights, pressed it sinks.
   Primary: blue. Quiet: the panel, with a line round it. ---- */
.play, .btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); box-sizing: border-box;
  font: 700 var(--t2)/1.2 var(--body); letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; }
.play, .btn.go { color: var(--white); background: var(--you); box-shadow: inset -5px -5px 0 var(--you-edge); }
.play:hover, .btn.go:hover { background: var(--you-lit); }
.play { min-height: 56px; padding: 14px 30px 18px 26px; font-size: var(--t3); }
.play.small, .btn { min-height: 44px; padding: 10px 18px 13px 16px; }
.play.small { font-size: var(--t2); box-shadow: inset -4px -4px 0 var(--you-edge); padding-left: 24px; padding-right: 24px; }
.btn, .play.quiet { color: var(--hi); background: var(--panel); box-shadow: inset -4px -4px 0 var(--edge), 0 0 0 1px var(--line); }
.btn:hover, .play.quiet:hover { color: var(--white); background: var(--panel-hi); }
.btn.go { box-shadow: inset -4px -4px 0 var(--you-edge); }
.play:active, .btn:active { transform: translate(2px, 2px); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn.small { min-height: 36px; padding: 6px 12px 8px; font-size: var(--t1); }
.btn-link { color: var(--mid); font-size: var(--t1); letter-spacing: 2px; }
/* A risky action (REMOVE, BLOCK, START OVER in the confirm): a quiet button whose word is the warning colour. */
.btn.warn { color: var(--bad); }
.btn.warn:hover { color: var(--white); }

/* ---- The site's one confirm (site.js ask): a panel over the dimmed page; CANCEL, then the action. On a phone the
   panel keeps the gutter and the two keys share the row, or stack when they cannot. ---- */
.ask { padding: 0; border: 0; background: none; color: var(--hi); box-sizing: border-box; width: calc(100% - 2 * var(--gut)); max-width: 460px; }
.ask::backdrop { background: rgba(10, 14, 22, 0.8); }
.ask-panel { background: var(--panel); box-shadow: inset -5px -5px 0 var(--edge), 0 0 0 1px var(--line); padding: var(--s3); }
.ask-panel p { margin: 0 0 var(--s3); color: var(--white); font-size: var(--t3); line-height: 1.5; }
.ask-keys { display: flex; flex-wrap: wrap; gap: 12px; }
.ask-keys .btn { flex: 1 1 140px; }

/* ---- A page: one width, one column; the page's own words keep to the measure ---- */
.page { max-width: min(var(--page), calc(100% - 16px)); margin: var(--s3) auto 0; padding: var(--s5) var(--gut) var(--s4); box-sizing: border-box; }
.page h1 { color: var(--white); margin: 0 0 var(--s3); }
.page h2 { color: var(--white); margin: var(--s4) 0 var(--s2); }
.intro { color: var(--mid); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.panel { background: var(--panel); box-shadow: 0 0 0 1px var(--line); padding: var(--s2) 20px; box-sizing: border-box; }
.row-gap { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.status { min-height: 1.65em; color: var(--mid); }
.status.bad { color: var(--bad); }
.again { margin: var(--s4) 0 0; }
footer { padding: var(--s3) max(var(--gut), calc((100% - var(--page)) / 2 + var(--gut))) var(--s4); color: var(--mid); font-size: var(--t1); line-height: 1.9; margin: var(--s4) 0 0; box-sizing: border-box; background: #2f3437; box-shadow: 0 -3px 0 #0b0d0e; }
footer a { color: var(--hi); }
/* ---- Leaderboards: the board fills the column; a pilot's card opens beside it ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s2); padding: 0; list-style: none; }
.tabs button { font: var(--t1) var(--body); letter-spacing: 1px; color: var(--hi); background: var(--panel); border: 0; box-shadow: inset -3px -3px 0 var(--edge), 0 0 0 1px var(--line); padding: 8px 12px 10px; cursor: pointer; min-height: 40px; }
.tabs button[aria-selected="true"] { color: var(--white); background: var(--panel-hi); box-shadow: inset -3px -3px 0 var(--you-edge), 0 0 0 1px var(--you); }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line-soft); }
.board li .rank { color: var(--dim); text-align: right; }
.board li button { font: inherit; color: var(--white); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 32px; }
.board li button:hover { text-decoration: underline; }
.board li .val { color: var(--hi); white-space: nowrap; }
.board li.you { background: var(--panel-hi); }
.board li.you button::after { content: " (YOU)"; color: var(--you-lit); }
.board li button .ttl { display: block; color: var(--dim); font-size: 0.8em; line-height: 1.2; }
.card .ttl { color: var(--gold); margin: -6px 0 12px; }
.badge { color: var(--gold); font-size: var(--t1); margin-left: 6px; }
.card h2 { margin-top: 0; }
.card dl { display: grid; grid-template-columns: auto auto; gap: 4px 18px; margin: 0; }
.card dt { color: var(--dim); }
.card dd { margin: 0; color: var(--white); text-align: right; }
/* A pilot's face (the owner 2026-11-19): the game's 64x64 portrait, drawn small and crisp; a dark square until it is drawn. */
img.face { display: inline-block; flex: none; width: 32px; height: 32px; image-rendering: pixelated; background: #0b1418; box-shadow: 0 0 0 1px #24323a; vertical-align: middle; }
img.face[width="40"] { width: 40px; height: 40px; }
img.face[width="48"] { width: 48px; height: 48px; }
img.face[width="128"] { width: 128px; height: 128px; }
/* The one leaderboard: rank, face, pilot, then four numbers; the column it is sorted by is lit. The head lines up with
   the rows (the glass pads 12px, a row 8px). */
.lb { --lb-cols: 2.4em 40px minmax(0, 1fr) repeat(7, 5.2em); min-width: 0; container-type: inline-size; }
.lb-head { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) repeat(7, 5.2em); column-gap: 12px; align-items: end; padding: 0 20px 8px; }
.lb-head > span { color: var(--dim); font-size: var(--t1); letter-spacing: 1px; }
.lb-head .rank { text-align: right; }
.lb-head .pilot { padding-left: calc(40px + 12px); }
.lb-head .sort { font: var(--t1) var(--body); letter-spacing: 1px; color: var(--mid); background: none; border: 0; padding: 6px 0; cursor: pointer; text-align: right; min-height: 40px; line-height: 1.2; }
.lb-head .sort:hover { color: var(--white); }
.lb-head .sort[aria-pressed="true"] { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lb-head .sort:focus-visible, .pilots .row:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.lb .status { min-height: 0; margin: 0; }
.lb .status:not(:empty) { margin: 0 0 8px; }
.board.pilots li { display: block; padding: 0; }
.board.pilots li.none { padding: 18px 8px; color: var(--mid); }
.pilots .row { display: grid; grid-template-columns: var(--lb-cols); column-gap: 12px; align-items: center; width: 100%; padding: 8px; font: inherit; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; min-height: 56px; white-space: normal; overflow: visible; }
.pilots .row:hover { background: rgba(136, 246, 220, 0.06); text-decoration: none; }
.pilots li.open .row { background: rgba(136, 246, 220, 0.1); }
.pilots .rank { text-align: right; font-size: var(--t3); }
.pilots .pilot { min-width: 0; display: flex; flex-direction: column; }
.pilots .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t3); }
.pilots .ttl { color: var(--dim); font-size: var(--t1); line-height: 1.3; text-shadow: none; }
.pilots li.you .name::after { content: " (YOU)"; color: var(--you-lit); text-shadow: none; }
.pilots .val { text-align: right; opacity: 0.55; font-variant-numeric: tabular-nums; }
.pilots .val.on { opacity: 1; font-size: var(--t3); }
.card-head { display: flex; gap: 16px; align-items: center; margin: 0 0 var(--s2); }
.card-head h2 { margin: 0; overflow-wrap: anywhere; }
.card-head .ttl { margin: 4px 0 0; }
/* A narrow board (a phone, or the card open beside it): rank, face, pilot and the lit number; the head becomes the
   four sorts in a row. Measured on the board itself, so the card opening narrows it too. */
@container (max-width: 899px) {
  .lb-head, .pilots { --lb-cols: 1.6em 40px minmax(0, 1fr) auto; }
  .lb-head { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 4px 8px; }
  .lb-head > span { display: none; }
  .lb-head::before { content: "SORT BY"; color: var(--dim); font-size: var(--t1); letter-spacing: 1px; align-self: center; width: 100%; }
  .lb-head .sort { min-height: 36px; text-align: left; }
  .pilots .row { column-gap: 10px; padding: 8px 4px; }
  .pilots .val { display: none; }
  .pilots .val.on { display: block; }
  .pilots .val.on::after { content: attr(data-label); display: block; font-size: 10px; letter-spacing: 1px; opacity: 0.7; text-shadow: none; }
}
@media (max-width: 639px) { img.face[width="128"] { width: 96px; height: 96px; } }
/* Two columns where a page has two things side by side; one while the second is hidden. */
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-items: start; }
.two:has(> :nth-child(2):not([hidden])) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 799px) { .two:has(> :nth-child(2):not([hidden])) { grid-template-columns: minmax(0, 1fr); } }


/* ---- About: Philip, the photo beside the words; square bullets ---- */
.me { display: grid; grid-template-columns: 240px minmax(0, var(--measure)); gap: var(--s4); align-items: start; }
.me img { width: 240px; height: 300px; object-fit: cover; display: block; box-shadow: 0 0 0 1px var(--line), 8px 8px 0 var(--panel); }
.list { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.list li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; background: var(--mid); box-shadow: inset -2px -2px 0 var(--dim); }
.list strong { color: var(--white); }
.list.links li::before { background: var(--you); box-shadow: inset -2px -2px 0 var(--you-edge); }
@media (max-width: 699px) { .me { grid-template-columns: minmax(0, 1fr); gap: var(--s3); } .me img { width: 200px; height: 250px; } }

/* ---- Privacy and terms: the legal words, plain sections ---- */
.legal h2 { margin-top: var(--s4); }
.legal ul { padding-left: 20px; }
.legal .dim { color: var(--mid); font-size: var(--t1); }
#analytics-choice { margin-left: 6px; }

/* ---- Scrap (SCRAP-SITE): what scrap.js paints, and the fills shown until it has (and where it never runs). Each painted
   part carries its pictures as variables (--scrap-<kind>, --scrap-size) and the class .scrapped; a rule here picks the
   variant, so a key that turns quiet or a tab that is chosen swaps picture with no repaint. Pixels: pixelated, whole. ---- */
/* A part's own shorthand (.tabs button, .btn:hover) would reset these, and the picture must stay one, whole, centred. */
.scrapped { background-size: var(--scrap-size) !important; background-repeat: no-repeat !important; background-position: center !important; image-rendering: pixelated; }
.scrap-hull.scrapped { background-image: var(--scrap-hull); }
/* Keys: the worn key, and the lit one for the primary and a chosen tab. Hover lights the cap; focus keeps its ring. */
.scrap-keys.scrapped, .scrap-keys.scrapped:hover { background-color: transparent; box-shadow: none; background-image: var(--scrap-key); }
.play.scrap-keys.scrapped, .btn.go.scrap-keys.scrapped, .tabs button[aria-selected="true"].scrap-keys.scrapped { background-image: var(--scrap-go); color: var(--white); }
.play.quiet.scrap-keys.scrapped { background-image: var(--scrap-key); color: var(--hi); }
.scrap-keys.scrapped:hover { filter: brightness(1.2); color: var(--white); }
.scrap-keys.scrapped[aria-pressed="true"] { background-image: var(--scrap-go); color: var(--white); }
/* Tape: a label is a strip of old tape with the words inked on. */
.scrap-tape { display: inline-block; line-height: 21px; padding: 0 9px 0 7px; }
p.kicker.scrap-tape, h4.scrap-tape, .looks-label.scrap-tape { display: table; }
.scrap-tape.scrapped, .site-bar .scrap-tape.scrapped, .site-bar .who .scrap-tape.scrapped, .site-bar .scrap-tape.scrapped:hover, .site-bar nav a.scrap-tape.scrapped[aria-current="page"] { color: #23262a; background-image: var(--scrap-tape); }
.site-bar .scrap-tape.scrapped:hover { filter: brightness(1.12); }
.site-bar nav a.scrap-tape[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 699px) { .site-bar nav a.scrap-tape { padding: 0 5px; letter-spacing: 0; } }
@media (max-width: 374px) { .site-bar nav { gap: 4px; } .site-bar nav a.scrap-tape { padding: 0 3px; font-size: 11px; } }
/* Screens: the boards read like the game's glass, phosphor text with its glow. */
/* A chosen tab is the lit key: its hazard stripes need room at both ends. */
.tabs button.scrap-keys { padding-left: 22px; padding-right: 22px; }
@media (prefers-reduced-motion: reduce) { .scrap-keys.scrapped:active { transform: none; } }

/* PROFILE-BOARDS-PLAN: the faction and bracket filters, a pilot's side under their name, SEASONS, the card's characters */
.lb-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 10px; }
.lb-filter .pill { font: var(--t1) var(--body); letter-spacing: 1px; color: var(--mid); background: #0b0f12; border: 2px solid var(--side, #3a4045); padding: 6px 10px; min-height: 36px; cursor: pointer; }
.lb-filter .pill:hover { color: var(--white); }
.lb-filter .pill[aria-pressed="true"] { color: #0b0f12; background: var(--side, var(--gold)); border-color: var(--side, var(--gold)); }
.lb-filter .pill:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.pilots .ttl[data-side-of] { color: var(--side, var(--dim)); }
.seasons { display: grid; gap: 10px; }
.seasons .season { border: 2px solid #2a3036; background: #0b0f12; padding: 10px 12px; }
.seasons h3 { margin: 0 0 6px; font-size: var(--t3); }
.seasons .won { color: var(--side, var(--gold)); }
.seasons p { margin: 2px 0; color: var(--mid); font-size: var(--t1); overflow-wrap: anywhere; }
.card .chars { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 var(--s2); }
.card .chars .char { display: inline-flex; align-items: center; gap: 6px; color: var(--side, var(--mid)); font-size: var(--t1); letter-spacing: 1px; }
/* The faction marks (FACTION-MARKS-PLAN D11, scrap.js): a side's sigil or banner beside its name, painted by the game's
   baked marks. Decoration only (aria-hidden, the name stays in words); with scripts off it takes no room. */
.mark { display: none; }
.mark.marked { display: inline-block; flex: none; width: var(--mark-px, 14px); height: var(--mark-px, 14px); vertical-align: middle; background: var(--mark) center / 100% 100% no-repeat; image-rendering: pixelated; }
.lb-filter .pill { display: inline-flex; align-items: center; gap: 6px; }
.lb-filter .pill .mark.marked { background-color: #0b0f12; box-shadow: 0 0 0 2px #0b0f12; }
.lb .ttl .mark.marked, .card .chars .mark.marked, .seasons .lords .mark.marked { margin: -2px 4px 0 0; }
.seasons h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card { position: relative; }
.card > .card-sigil.marked { position: absolute; top: 12px; right: 12px; }
.standings .who .mark.marked, .war-log .mark.marked { margin: -2px 6px 0 0; }
.where .mark.marked { margin: -2px 6px 0 0; }
.chars .mark.marked { margin: -2px 4px 0 0; }
.sides-row { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 4px 0 10px; padding: 0; list-style: none; }
.sides-row li { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--t1); letter-spacing: 1px; color: var(--side, var(--mid)); }

/* SITE-PLAN mock: the scrap glass is gone, so the board sits on a plain panel (no stars through the rows). */
.board { background: var(--bg); }

/* ==== SITE-PLAN round 2 (mock): the game's type and colour. Short words in Scrap5 (the game's 5x7, whole multiples of
   7 px: 14, 21, 28), reading words in m5x7 (whole multiples of 16 px), the HUD phosphors, panels as the game's glass. ==== */
:root { --px: "Scrap5", monospace; --read: "m5x7", monospace; --am: #ffc66b; --cy: #88f6dc; --gr: #9bff7c; --pa: #b9b6a7; --lit: #ffb22e; --glass: #050c0e; }
body { font: 32px/1 var(--read); color: var(--pa); -webkit-font-smoothing: none; }
p, li, dd { line-height: 1; }
h1, h2, h3, h4, .kicker, .note, .sub, .btn, .play, .site-bar nav a, .site-bar .who a, footer, .tabs button, .live, .banners b, .banners .held, .banners .tag, .aces b, .aces .val, .aces .title, .aces .place, .status, .lb-head, .board, .lb-filter button { font-family: var(--px); font-weight: normal; letter-spacing: 0; text-transform: uppercase; }
h2 { font-size: 28px; line-height: 1.2; color: var(--white); }
h3 { font-size: 14px; line-height: 1.4; color: var(--white); }
.kicker, .sub, .note { font-size: 14px; color: var(--am); letter-spacing: 0; }
.sub { color: var(--dim); }
.hero .dim, .intro { font: 32px/1 var(--read); color: var(--pa); }
.live { font-size: 14px; color: var(--cy); text-shadow: 0 0 4px rgba(136, 246, 220, 0.45); }
.live li.warn { color: var(--am); text-shadow: 0 0 4px rgba(255, 198, 107, 0.4); }
.btn, .play.small { font-size: 14px; }
.play { font-size: 21px; }
.site-bar nav a, .site-bar .who a { font-size: 14px; }
footer { font-size: 14px; line-height: 2; color: var(--dim); }
footer a { color: var(--pa); }
.glass { background: var(--glass) repeating-linear-gradient(180deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px); box-shadow: 0 0 0 3px #3a4045, 0 0 0 4px #0b0d0e, inset 0 0 0 1px #13282a; }
.banners b { font-size: 14px; }
.banners .held { font-size: 14px; color: var(--cy); text-shadow: 0 0 4px rgba(136, 246, 220, 0.45); }
.banners .tag { font-size: 14px; color: #23262a; }
.banners .tag.lead { background: var(--am); }
.banners .tag.need { background: var(--cy); }
.aces b { font-size: 14px; color: var(--cy); text-shadow: 0 0 4px rgba(136, 246, 220, 0.45); }
.aces .val { font-size: 14px; color: var(--am); margin-top: 6px; }
.aces .title { font-size: 14px; color: var(--dim); margin-top: 4px; }
.aces .place { font-size: 14px; }
.faq .qs summary h3 { font-size: 14px; color: var(--white); }
.faq .qs p { font: 32px/1 var(--read); color: var(--pa); }
.play, .btn.go { color: #1a1206; background: var(--lit); box-shadow: inset -5px -5px 0 #8a5a12; }
.play:hover, .btn.go:hover { background: #ffc35a; }
.play.scrap-keys.scrapped, .btn.go.scrap-keys.scrapped { color: var(--lit); text-shadow: 0 0 6px rgba(255, 178, 46, 0.5); }
.board { background: none; }
.board li { font-size: 14px; }
/* Pixel words that wrap need room between lines (Scrap5 has no descenders; 1.5 of 14 px is 21, three pixels of 7). */
.kicker, .sub, .note, .live, .live li, .banners a, .banners b, .banners span, .aces li, .aces b, .aces span, footer, h3 { line-height: 1.5; }
@media (max-width: 699px) {
  .site-bar { flex-wrap: nowrap; gap: 8px; }
  .site-bar nav { order: 0; width: auto; margin-right: auto; }
  .site-bar .play.small { padding-left: 14px; padding-right: 14px; }
  .banners .held { font-size: 14px; }
  .site-bar nav a, .site-bar .who a { white-space: nowrap; }
}
/* A phone: the bar keeps one row; signed out, SIGN IN waits inside the game (SITE-PLAN phase 3), signed in the face stays. */
@media (max-width: 480px) { .site-bar .who [data-signin] { display: none; } }
/* The leaderboard: header and rows in one face and size, so the em columns line up; names and titles get room. */
.lb-head, .lb-head > span, .lb-head .sort, .pilots .row, .pilots .rank, .pilots .name, .pilots .ttl, .pilots .val, .pilots .val.on { font-family: var(--px); font-size: 14px; letter-spacing: 0; text-transform: uppercase; }
.pilots .name { line-height: 1.5; } .pilots .ttl { line-height: 1.5; }
.pilots .val.on { color: var(--am); }
.lb-filter button { font-family: var(--px); font-size: 14px; letter-spacing: 0; }
/* The board's columns in px: the page's body face is 32px m5x7, so an em here is no longer a letter of the rows. */
.lb { --lb-nums: 56px 64px 156px 76px 64px 52px 64px; --lb-cols: 34px 40px minmax(0, 1fr) var(--lb-nums); }
.lb-head { grid-template-columns: 34px minmax(0, 1fr) var(--lb-nums); }
.lb-head .sort { white-space: nowrap; min-height: 0; }
@container (max-width: 899px) { .lb-head, .pilots { --lb-cols: 28px 40px minmax(0, 1fr) auto; } }
.lb-head { padding: 0 8px 8px; }
/* SITE-PLAN: the live bands (the landing and /leaderboards): the band, the live line, the six banners. */
main > section { position: relative; }
.band { padding: var(--s4) var(--gut); max-width: min(var(--page), calc(100% - 16px)); margin: var(--s4) auto 0; box-sizing: border-box; scroll-margin-top: 72px; }
.band h2 { margin: 0 0 6px; }
.band .sub { margin: 0 0 var(--s3); }
/* The live line beside PLAY: each part hidden when empty. */
.live { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: var(--s2) 0 var(--s2); padding: 0; list-style: none; }
.live li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; background: var(--cy); box-shadow: 0 0 6px var(--cy); vertical-align: middle; }
.live li.warn::before { background: var(--am); box-shadow: 0 0 6px var(--am); }
/* The war right now: six banners on their chains, each its side's state under it. */
.banners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.banners a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; padding: 10px 4px 14px; }
.banners a:hover { background: #0e1a1c; }
.banners canvas { width: 93px; height: 93px; display: block; margin: 0 0 10px; }
.banners .chain { width: 62px; height: 12px; border-left: 2px dotted #6b7686; border-right: 2px dotted #6b7686; box-sizing: border-box; }
.banners .held { margin-top: 6px; }
.banners .tag { margin-top: 8px; padding: 2px 6px; }
@media (max-width: 860px) { .banners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .banners canvas { width: 62px; height: 62px; } .banners .chain { width: 42px; } }
/* The narrowest phones (320): the bar's three keys fit with tighter gutters; the banners go two to a row. */
@media (max-width: 360px) { .site-bar { padding-left: 8px; padding-right: 8px; gap: 6px; } .site-bar nav a.scrap-tape { padding: 0 4px; } .site-bar .play.small { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 420px) { .banners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* SITE-PLAN D7 on a phone: signed in, the bar shows your face (your ship) only; SIGN OUT is in the game's Settings. */
@media (max-width: 480px) { .site-bar .who .name, .site-bar .who [data-signout] { display: none; } }

/* The SNN link (SNN-PLAN) leaves the bar on a phone: with it the bar was wider than 320 to 430 px screens (PLAYABLE-PLAN fix; SNN stays one tap away in the game, the HQ wall) */
@media (max-width: 439px) { .site-bar nav a[href="/snn"] { display: none; } }
