/* The shell every page after the home page wears: type, ground, weave canvas,
   nav, footer, marks. It lived inlined in seven files and drifted four times in
   one day - what-is-saga shipped without the weave, privacy/terms/make lost their
   full-width footer, /what/ missed the flex column. One file cannot drift from
   itself. (2026-08-10, after jscpd put the repo over its 3% duplication ceiling
   and was right to.) */

/* THE TYPE. Saga Text, drawn for Saga (source and rebuild: tools/type/README.md). One family,
   two weights, two sizes; every page and component reads these tokens and nothing else.
   - --font: Saga Text, its stand-in face while it loads (below), then the system face for any
     character the font does not draw.
   - two sizes, each with its line height: header 24/32 (page titles, section headings, card
     titles), text 18/28.
     Small things (links, labels, meta, footer) are text size and dimmer, never smaller.
     Two things sit outside the two sizes: avatar initials (sized from their tile) and the player
     (/play/), whose type scales with the stage by --u.
   - --type-regular everywhere by default; --type-bold for emphasis (card titles, <b>/<strong>).
   - three brightness levels for text on the dark ground: --ink (titles, body), --ink-dim
     (secondary), --ink-quiet (meta, labels, footer). New quiet text uses --ink-quiet rather than
     anything dimmer; some older labels still sit at .34-.5.
   The regular face is preloaded by every page; bold loads only where something uses it. */
@font-face { font-family:'Saga Text'; font-weight:400; font-style:normal; font-display:swap;
  src:url('/assets/saga-text-regular.woff2') format('woff2'); }
@font-face { font-family:'Saga Text'; font-weight:700; font-style:normal; font-display:swap;
  src:url('/assets/saga-text-bold.woff2') format('woff2'); }
/* THE FACE SHOWN WHILE SAGA TEXT LOADS. Saga Text is font-display:swap, so first paint is in the
   next font down the stack and the text re-measures when the real one lands; with the system face
   there, lines changed height and centred text on the phone's /make/ page jumped 40px. 'Saga Text
   Fallback' sits second in the stack: a local Arial (Liberation Sans on Linux, which has Arial's
   advances) scaled so its average advance over this site's own copy matches Saga Text's, with
   Saga Text's vertical metrics (ascent .75em, descent .25em, line gap 0) divided by the scale, so a
   line is as tall and its baseline as low before the swap as after it. size-adjust per weight =
   sum of Saga Text widths / sum of Arial widths over every visible string in apps/web (measured in
   Chromium at 16px and at 18px: regular 91.97%, bold 91.88%); ascent/descent = metric / size-adjust,
   rounded up to the next .05%: at 18px Saga Text's ascent and descent fall on half pixels (13.5,
   4.5), which the browser rounds up to a 19px glyph box, and the stand-in must round the same way
   or a label's box sits a pixel apart before and after the swap. This
   scales the stand-in only; Saga Text itself is never scaled. An average cannot make every string
   equal (single words differ by a pixel or two), so the few centred controls the swap would move
   pin their own width (below and in tabbar.css). A browser without a matching local font skips this
   face and falls to the system font. */
@font-face { font-family:'Saga Text Fallback'; font-weight:400;
  src:local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans');
  size-adjust:91.97%; ascent-override:81.6%; descent-override:27.25%; line-gap-override:0%; }
@font-face { font-family:'Saga Text Fallback'; font-weight:700;
  src:local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold');
  size-adjust:91.88%; ascent-override:81.65%; descent-override:27.25%; line-gap-override:0%; }
:root {
  --font: 'Saga Text', 'Saga Text Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --type-head: 24px; --type-head-lh: 32px;
  --type-text: 18px; --type-text-lh: 28px;
  --type-regular: 400; --type-bold: 700;
  --ink: #fff; --ink-dim: rgba(255,255,255,.72); --ink-quiet: rgba(255,255,255,.55);
}
b, strong { font-weight: var(--type-bold); }
h1, h2, h3, h4, h5, h6, th { font-weight: var(--type-regular); }
button, input, select, textarea { font-family: var(--font); }

:root { --red: #eb3e28; }
/* The white primary button of the sign-in flow and the account-settings boxes. Every use
   carries a literal fallback, because account-panel.css and the JS-injected sign-in CSS can
   load without this file. Sign out and delete stay --red. */
:root { --btn-bg: #fff; --btn-ink: #0b0a09; --btn-bg-hover: #e9e6e2; --btn-bg-active: #d6d2cd;
  --btn-bg-off: rgba(255,255,255,.14); --btn-ink-off: rgba(255,255,255,.45); }
/* Spec 0120: the one place the button shape is written down. `--pill-k` is the divisor
   applied to a control's own height to get its corner radius. Chrome draws the squircle
   Saaim picked (2026-09-19, of three side-by-side renders): curve 1.8, radius height/3.
   Safari and Firefox cannot draw `corner-shape` yet and fall back to a plain circular
   radius of height/6 (the spec's recommended fallback, measured against the real curve
   at under a pixel off at button sizes) via the un-gated declaration below, overridden by
   the `@supports` block only where the browser can actually draw the curve. */
:root { --pill-k: 6; --pill-shape: round; }
@supports (corner-shape: superellipse(1.8)) {
  :root { --pill-k: 3; --pill-shape: superellipse(1.8); }
}
/* Pixel corners: the stepped (stair) corner Saaim chose from the pixel-polish prototype, 2px
   steps, three per corner, crisp, no shadow. It is the corner of the sign-in and account
   boxes and of the go buttons (scripts/test-web-buttons-shape.py lists the buttons).
   `--px-clip` is the outer silhouette; `--px-ring` is that silhouette minus the same stair
   inset 1px, one contour that walks the outer stair, crosses to the inner one and walks it,
   and returns along the same line, so evenodd leaves a 1px stepped stroke and the crossing
   has no area. */
:root { --px-step: 2px; --px-s1: var(--px-step); --px-s2: calc(var(--px-step) * 2); --px-s3: calc(var(--px-step) * 3); }
:root {
  --px-clip: polygon(
    var(--px-s3) 0, calc(100% - var(--px-s3)) 0, calc(100% - var(--px-s3)) var(--px-s1),
    calc(100% - var(--px-s2)) var(--px-s1), calc(100% - var(--px-s2)) var(--px-s2),
    calc(100% - var(--px-s1)) var(--px-s2), calc(100% - var(--px-s1)) var(--px-s3), 100% var(--px-s3),
    100% calc(100% - var(--px-s3)), calc(100% - var(--px-s1)) calc(100% - var(--px-s3)),
    calc(100% - var(--px-s1)) calc(100% - var(--px-s2)), calc(100% - var(--px-s2)) calc(100% - var(--px-s2)),
    calc(100% - var(--px-s2)) calc(100% - var(--px-s1)), calc(100% - var(--px-s3)) calc(100% - var(--px-s1)),
    calc(100% - var(--px-s3)) 100%, var(--px-s3) 100%, var(--px-s3) calc(100% - var(--px-s1)),
    var(--px-s2) calc(100% - var(--px-s1)), var(--px-s2) calc(100% - var(--px-s2)),
    var(--px-s1) calc(100% - var(--px-s2)), var(--px-s1) calc(100% - var(--px-s3)), 0 calc(100% - var(--px-s3)),
    0 var(--px-s3), var(--px-s1) var(--px-s3), var(--px-s1) var(--px-s2), var(--px-s2) var(--px-s2),
    var(--px-s2) var(--px-s1), var(--px-s3) var(--px-s1));
  --px-ring: polygon(evenodd,
    var(--px-s3) 0, calc(100% - var(--px-s3)) 0, calc(100% - var(--px-s3)) var(--px-s1),
    calc(100% - var(--px-s2)) var(--px-s1), calc(100% - var(--px-s2)) var(--px-s2),
    calc(100% - var(--px-s1)) var(--px-s2), calc(100% - var(--px-s1)) var(--px-s3), 100% var(--px-s3),
    100% calc(100% - var(--px-s3)), calc(100% - var(--px-s1)) calc(100% - var(--px-s3)),
    calc(100% - var(--px-s1)) calc(100% - var(--px-s2)), calc(100% - var(--px-s2)) calc(100% - var(--px-s2)),
    calc(100% - var(--px-s2)) calc(100% - var(--px-s1)), calc(100% - var(--px-s3)) calc(100% - var(--px-s1)),
    calc(100% - var(--px-s3)) 100%, var(--px-s3) 100%, var(--px-s3) calc(100% - var(--px-s1)),
    var(--px-s2) calc(100% - var(--px-s1)), var(--px-s2) calc(100% - var(--px-s2)),
    var(--px-s1) calc(100% - var(--px-s2)), var(--px-s1) calc(100% - var(--px-s3)), 0 calc(100% - var(--px-s3)),
    0 var(--px-s3), var(--px-s1) var(--px-s3), var(--px-s1) var(--px-s2), var(--px-s2) var(--px-s2),
    var(--px-s2) var(--px-s1), var(--px-s3) var(--px-s1), var(--px-s3) 0, calc(var(--px-s3) + 1px) 1px,
    calc(100% - var(--px-s3) - 1px) 1px, calc(100% - var(--px-s3) - 1px) calc(var(--px-s1) + 1px),
    calc(100% - var(--px-s2) - 1px) calc(var(--px-s1) + 1px),
    calc(100% - var(--px-s2) - 1px) calc(var(--px-s2) + 1px),
    calc(100% - var(--px-s1) - 1px) calc(var(--px-s2) + 1px),
    calc(100% - var(--px-s1) - 1px) calc(var(--px-s3) + 1px), calc(100% - 1px) calc(var(--px-s3) + 1px),
    calc(100% - 1px) calc(100% - var(--px-s3) - 1px),
    calc(100% - var(--px-s1) - 1px) calc(100% - var(--px-s3) - 1px),
    calc(100% - var(--px-s1) - 1px) calc(100% - var(--px-s2) - 1px),
    calc(100% - var(--px-s2) - 1px) calc(100% - var(--px-s2) - 1px),
    calc(100% - var(--px-s2) - 1px) calc(100% - var(--px-s1) - 1px),
    calc(100% - var(--px-s3) - 1px) calc(100% - var(--px-s1) - 1px),
    calc(100% - var(--px-s3) - 1px) calc(100% - 1px), calc(var(--px-s3) + 1px) calc(100% - 1px),
    calc(var(--px-s3) + 1px) calc(100% - var(--px-s1) - 1px),
    calc(var(--px-s2) + 1px) calc(100% - var(--px-s1) - 1px),
    calc(var(--px-s2) + 1px) calc(100% - var(--px-s2) - 1px),
    calc(var(--px-s1) + 1px) calc(100% - var(--px-s2) - 1px),
    calc(var(--px-s1) + 1px) calc(100% - var(--px-s3) - 1px), 1px calc(100% - var(--px-s3) - 1px),
    1px calc(var(--px-s3) + 1px), calc(var(--px-s1) + 1px) calc(var(--px-s3) + 1px),
    calc(var(--px-s1) + 1px) calc(var(--px-s2) + 1px), calc(var(--px-s2) + 1px) calc(var(--px-s2) + 1px),
    calc(var(--px-s2) + 1px) calc(var(--px-s1) + 1px), calc(var(--px-s3) + 1px) calc(var(--px-s1) + 1px),
    calc(var(--px-s3) + 1px) 1px);
}
/* `.px` is a bordered pixel box: the clip cuts the stair, `::before` paints the stroke in
   `--px-line`, and a state changes only that variable. An input cannot carry `::before`,
   so it sits in a `.px` span that carries the box, the fill and the stroke. */
.px { position: relative; clip-path: var(--px-clip); border: 0; --px-line: rgba(255,255,255,.14); }
.px::before { content: ""; position: absolute; inset: 0; background: var(--px-line);
  clip-path: var(--px-ring); pointer-events: none; }
html { background: #0b0a09; overscroll-behavior-y: none; }
/* the marks END the page. On a page shorter than the screen they used to stop
   mid-window with bare ground below, so the bleed stopped reading as a bleed. */
body { margin: 0; background: #0b0a09; color: #fff; overscroll-behavior-y: none;
  min-height: 100vh; display: flex; flex-direction: column;
  font: var(--type-regular) var(--type-text)/1.5556 var(--font); color: var(--ink); -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision; }
/* 1.5556 is --type-text-lh over --type-text (28/18) as a ratio, so anything that changes its size without setting its own
   line height scales its lines with it rather than inheriting a fixed 28px. */
/* geometricPrecision: Saga Text is drawn on a 1/16em grid, so at 18px a cell is 1.125px and most
   advances are fractions of a pixel. Linux Chromium otherwise rounds every glyph's advance to a whole
   pixel ("home" 40px instead of its 39.375), so a word's width differs by up to 2px between the Mac and
   Linux, and the label width pins in em (below) cannot fit both. With it, every platform lays text out at
   the font's own advances (tests/web/test_label_pins.py, run on Linux in CI). */
a { color: inherit; }
#weave { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0;
         display: block; pointer-events: none;
         /* 100lvh, the LARGE viewport: on iOS Safari 100vh is already that, but it is the
            toolbar-proof height by name, and weave.js sizes its bitmap from this box so the
            toolbar sliding does not redraw the weave. 100vh above is the fallback. */
         /* pixel art: the canvas is capped at 2x, so a 3x phone upscales it 1.5x. Nearest
            neighbour keeps the sprite pixels square (weave.js sets this too, for pages
            that do not load this file). */
         image-rendering: pixelated; }
/* border-box + width:100% because body is a flex column and margin:0 auto on a
   flex item shrink-wraps it, which once dragged the nav and footer into the
   reading column on three pages at once. */
.hm-page { position: relative; z-index: 1; max-width: 1880px; margin: 0 auto;
           padding: 0 clamp(14px, 3.2vw, 56px); flex: 1 0 auto;
           box-sizing: border-box; width: 100%;
           display: flex; flex-direction: column; }
/* THE FOOTER SITS ON THE FLOOR, on every page. .hm-page grows to fill the window (flex: 1
   above) but as a block it stacked its children from the top, so a short page left the footer
   mid-window with bare ground under it (/yours/ with one saga: 45% down). It is a column, and
   .hm-foot's auto top margin takes the spare height. A column does not stretch a child that
   has an auto side margin (`margin: 0 auto` on a reading column), so each child is full width
   unless its own rule says otherwise - :where() so any page's width wins. */
:where(.hm-page) > :where(*) { width: 100%; box-sizing: border-box; }

.hm-nav { --navh: 38px;
  display: flex; align-items: center; gap: 16px; padding: 30px 0 18px; }
.hm-wm { height: var(--navh); width: auto; display: block; }
.hm-icons { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hm-nw { display: inline-flex; align-items: center; height: var(--navh);
  color: #fff; font-weight: var(--type-regular); font-size: var(--type-text); padding: 0 0.95rem;
  --h: var(--navh);
  border-radius: calc(var(--h) / var(--pill-k, 0.5));
  corner-shape: var(--pill-shape, round);
  background: rgba(255,255,255,.16); text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease; }
.hm-nw:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
/* a pill in this nav means "a destination" - the pills read as places you can go.
   back is not a destination, it is an exit, so it does not get to look like one.
   it borrows the footer link's 55% white instead: quieter than a pill, present
   enough to find without hunting. */
.hm-back { display: inline-flex; align-items: center; gap: 8px; height: var(--navh);
  padding: 0 0.95rem; margin-left: -0.95rem;
  clip-path: var(--px-clip);
  color: var(--ink-quiet); font-weight: var(--type-regular); font-size: var(--type-text);
  text-decoration: none; transition: color 0.15s ease, background 0.15s ease; }
/* THE BOX IS THE INK. The chevron is pixel art (spec 0148 follow-up): a 4 x 7 cell grid
   (assets/pixel/nav-back.svg) drawn at 2px a cell, so the svg's width IS the glyph's width
   and every gap in this rule means what it says. */
.hm-back svg { width: 8px; height: 14px; flex: none; display: block; }
/* LABEL WIDTH PINS. A centred or boxed label keeps its Saga Text width while the stand-in face
   draws it, so its box does not move when Saga Text lands (see THE FACE SHOWN WHILE SAGA TEXT
   LOADS above; tests/web/test_font_swap_no_shift.py). The width belongs to the WORD, not the
   class: the markup carries it next to the label as `style="--label-w:<advance>em"` (the word's
   advance in Saga Text, from the font's own metrics), and a label without one sizes to its text.
   The back link reads "home" on most pages and "explore" on the pilot page, so one number here
   would be wrong somewhere. tests/web/test_label_pins.py checks every pinned box against its
   text once Saga Text has landed, and the back link's padding on every page. */
.hm-back span { display: inline-block; width: var(--label-w); white-space: nowrap; }
.hm-back:hover { color: #fff; background: rgba(255,255,255,.07); }
.hm-back:focus-visible { color: #fff; background: transparent;
  outline: 2px solid rgba(255,255,255,.45); outline-offset: -4px; }
.hm-back:focus:not(:focus-visible) { outline: none; }
/* TEXT LINKS, NOT A PILL (Saaim, 2026-09-20): the white "new saga" fill is gone. "make a
   saga" is now a plain text link, styled identically to "my sagas" next to it - same
   weight, size and colour, two equal nav links beside the wordmark. Both share this one
   rule rather than two copies that could drift apart.
   The hover backdrop is the bell's own (.hm-nw:hover, below): same fill and the same
   stepped pixel corner (`--px-clip`, above) - the transition is its own
   (background + color, no lift), a text link deliberately not borrowing the bell's
   translateY(-1px). Horizontal padding gives the backdrop room around the text; an equal
   negative margin on both sides pulls the box back so the TEXT's own resting position
   does not move - only its invisible hit/hover box grows into the nav's existing gap. */
.hm-make, .hm-yours { display: inline-flex; align-items: center; height: var(--navh);
  color: rgba(255,255,255,.7); font-weight: var(--type-regular); font-size: var(--type-text); text-decoration: none;
  padding: 0 0.5rem; margin: 0 -0.5rem;
  clip-path: var(--px-clip);
  transition: background 0.15s ease, color 0.15s ease; }
.hm-make:hover, .hm-yours:hover { background: rgba(255,255,255,.28); color: #fff; }
/* THE TWO LINKS KEEP THE WIDTH OF THEIR SAGA TEXT LABEL, whichever font is drawing it (LABEL
   WIDTH PINS above: the number sits on the link in index.html). nowrap: the stand-in's text can
   be a hair wider than the box, and a wrapped label is a visible jump. */
.hm-make, .hm-yours { justify-content: center; white-space: nowrap; width: var(--label-w); }
/* ROOM TO BREATHE (Saaim, 2026-11-23: "they're literally next to each other... the
   spacing has to feel right"). Text to text, the two links sit 40px off the wordmark
   and 40px off each other (Saaim: "it needs to feel the same"), one even rhythm across
   the row, on the nav's 8px steps. Each margin is the nav's 16px
   gap topped up to that distance, less the 0.5rem hover pad the box already pulls in.
   Only a desktop concern: under 900px the nav is hidden and the tab bar takes over. */
.hm-make { margin-left: calc(40px - 16px - 0.5rem); }
.hm-yours { margin-left: calc(40px - 16px - 0.5rem); }
@media (max-width: 430px) {
  .hm-nav { gap: 10px; }
  .hm-icons { gap: 7px; }
  .hm-nw, .hm-make { padding: 0 0.55rem; }
  .hm-back { padding: 0 0.55rem; margin-left: -0.55rem; }
}
@media (max-width: 380px) {
  .hm-nav { --navh: 34px; }
  .hm-nw, .hm-make { padding: 0 0.5rem; }
  .hm-back { padding: 0 0.5rem; margin-left: -0.5rem; }
  .hm-back svg { width: 6.5px; height: 11px; }
}

/* footer, matching home. The same file serves the home page since spec 0148 (it used to
   keep a private copy inline, and the two drifted). */
.hm-foot { margin-top: auto; padding: 56px 0 8px; border-top: 0; }
/* ONE CENTRED ROW at every width (spec 0148). Four short labels, so it always fits: 18px
   text, 207px of Saga Text plus three 26px gaps is 285px, inside the 292px a 320px phone
   has between its gutters. `nowrap` on both the row and each link is the tripwire: a
   fifth link or a longer label overflows loudly (tests/web/test_web_shell.py fails on
   sideways scroll) instead of quietly wrapping back into the ragged two-row footer. */
.hm-fcols { display: flex; flex-wrap: nowrap; justify-content: center; gap: 10px 26px;
  padding: 26px 0 30px; border-top: 1px solid rgba(255,255,255,.08); }
.hm-fcols a { font-size: var(--type-text); font-weight: var(--type-regular); white-space: nowrap;
  color: var(--ink-quiet); text-decoration: none; }
.hm-fcols a:hover { color: #fff; }
.hm-frule { font-size: var(--type-text); color: rgba(255,255,255,.88); }
.hm-frule span, .hm-foot span { color: rgba(255,255,255,.88); }
.hm-flockwrap { position: relative; z-index: 1; overflow: hidden; margin-top: 30px;
  flex: none; }
/* The footer marks are pixel art (assets/pixel/mark-blob.svg 48x48 grid, mark-word.svg
   64x26), drawn smaller by Saaim's choice (2026-11-30: smaller marks, a smaller footer). The
   wordmark is three quarters of its earlier size: 4.5px a cell on a desktop (288 wide, 117 tall),
   2.25px on a phone (144), 1.5px on a small phone (96). The blob is sized so its drawing, rows 1 to
   47 of its 48, stands exactly as tall as the wordmark (Saaim, same day: "become levelled"): 117 /
   46 x 48 = 122.09 on a desktop, 61.04 on a phone, 40.7 on a small phone, about 29% under its
   earlier size. Neither mark's cells land on whole screen pixels, so their squares are slightly
   uneven; he accepted that for the blob in October. The width and height attributes on each <img>
   are the desktop size, rounded (122, 288x117), so the box is reserved before the file arrives; the
   CSS below carries the exact value and the phone sizes override it. Never a fluid clamp(). */
.hm-flock { display: flex; align-items: flex-end; justify-content: center; gap: 36px;
  margin-bottom: 0; color: rgba(255,255,255,.12); pointer-events: none; }
.hm-fblob, .hm-fword { flex: none; image-rendering: pixelated; }
.hm-fblob { width: 122.09px; height: 122.09px; }
.hm-fword { width: 288px; height: 117px; }
@media (max-width: 900px) {
  .hm-flock { gap: 21px; }
  .hm-fblob { width: 61.04px; height: 61.04px; }
  .hm-fword { width: 144px; height: 58.5px; }
}
/* Under ~360px the wordmark steps down to a 1.5px cell (96) and the blob to 40.7, so the pair
   (40.7 + 15 + 96) fits the page instead of scrolling sideways. */
@media (max-width: 360px) {
  .hm-flock { gap: 15px; }
  .hm-fblob { width: 40.7px; height: 40.7px; }
  .hm-fword { width: 96px; height: 39px; }
}

/* THE PHONE FADE at the foot of the page (after the 900px sizes above, so source order wins).

   This is the only copy of this reasoning; the home page no longer carries a short version.
   iOS Safari's toolbar strip is painted with the flat background colour and the fixed
   #weave canvas can't reach under it, so the weave used to stop on a hard line, and
   separately the old -24px crop on the marks landed on a line that sits above the true
   screen edge once the toolbar eats its share (Saaim, screenshot 2026-09-16) - two
   defects, one seam. Fix: the fade dissolves the weave into the flat colour instead of
   cutting it; overflow:visible plus the mask on .hm-flock does the same for the marks,
   trading a crop for a dissolve so no edge is left to show at any toolbar height.

   The fade lives on .hm-flockwrap::after, not body::after, because /play/ links this
   file with no .hm-flockwrap, no marks, and none of the z-index that would keep a
   body-level fade off real content - it would have painted a bare gradient over the
   player. .hm-flock needs its own position:relative; z-index:1 for the same reason: a
   non-positioned element paints below ANY positioned z-index:0 sibling regardless of DOM
   order, so without it the fade painted over the marks and dimmed them (caught in
   review, fixed here, verified in the PR).

   position:absolute (not fixed) anchors the fade to the wrapper's own box, i.e. only at
   the document's end, where the seam actually is - a fixed strip exists at every scroll
   position and was overlaying body text on long reading pages mid-scroll (caught by the
   judge on PR #1884). left:50%/translateX(-50%)/width:100vw undoes .hm-page's centred
   max-width column so the fade still spans the full device width from inside it. */
@media (max-width: 900px) {
  .hm-flockwrap::after { content: ''; position: absolute; bottom: 0; left: 50%;
    width: 100vw; transform: translateX(-50%); height: 150px;
    pointer-events: none; z-index: 0;
    background: linear-gradient(to bottom, rgba(11,10,9,0), #0b0a09); }
  .hm-flockwrap { overflow: visible; }
  .hm-flock { position: relative; z-index: 1; margin-bottom: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-nw, .hm-make, .hm-yours, .hm-back { transition: none; }
}


/* ---- THE SPINNER (Saaim, 2026-08-29) ---------------------------------------------
   It used to say "loading…" in text. Two things wrong with that, and he named both:
   it is ugly, and a product does not narrate its own machinery to you.

   THE DELAY IS THE WHOLE DESIGN. A spinner that appears the instant a page starts
   loading is WORSE than no spinner: on a fast load it flashes for 150ms and reads as
   jank, which is exactly the flicker he screenshotted. So this is invisible for its
   first 400ms. A load that finishes inside that window shows nothing at all - the
   content simply appears, which is what he described wanting: "it feels normal, like
   oh it's just appearing". Only a genuinely slow load ever reveals it, which is when
   a person actually wants to be told something is happening.

   Two animations doing two jobs: `sg-reveal` holds it at zero opacity and then fades
   it in once, `sg-turn` rotates forever. The element is usually removed before the
   first one has finished waiting. */
.sg-load {
  /* CENTRED IN THE SCREEN, which is what was asked for - not centred in whatever box
     happens to contain it. The first version was `min-height: 42vh` inside the content
     column, so the ring inherited its container's width and offset: measured at 414px it
     sat 178px left and 173px above the middle of the viewport, and on desktop 315px left.
     A ring that is nearly a third of the screen off-centre reads as a stray dot.
     Fixed to the viewport is immune to whatever container the screen puts it in, which is
     the whole reason the first one drifted. pointer-events stay off so it never eats a tap. */
  position: fixed;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.sg-load::after {
  content: ""; display: block;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .13);
  border-top-color: var(--red);
  opacity: 0;
  animation: sg-reveal .18s ease 400ms forwards, sg-turn .7s linear infinite;
}
@keyframes sg-turn { to { transform: rotate(360deg); } }
@keyframes sg-reveal { to { opacity: 1; } }

/* Reduced motion gets a still ring rather than a spin - the point is "something is
   happening", and a person who asked for less movement should still be told that. */
@media (prefers-reduced-motion: reduce) {
  .sg-load::after {
    animation: sg-reveal .18s ease 400ms forwards;
    border-top-color: var(--red);
  }
}