/* ---- 00-tokens.css */
/* THE GAME PAGE'S TOKENS (apps/game/client/gui/README.md; rules docs/ui-patterns.md). One sheet, read by every other
   ui/*.css and by the editor's Battle preview, which links this file on its own.

   Colour, faces, the window size and the HUD's tokens live here and nowhere else. The tools' sheet
   (packages/kit/public/gs.css, ops and the editor) keeps its own --gs-* set; the game reads none.

   Rule: every colour is a token. Literals in the old sheets move here surface by surface as each
   one is ported, not up front. */

:root {
  /* THE SAFE AREA (CLAUDE.md UI "Safe area"; check recipe docs/ui-patterns.md §4): the device's notch and home-bar insets, read here and in
     gui/mode.ts only. --s-hud/-win and --stage-w/-h-hud/-win (ui/10-base.css .stage) are mode.ts's:
     each layer's zoom and its stage (the glass less the insets) in design px, written before the
     first paint. */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --s-hud: 1;
  --s-win: 1;
}
/* iPhone Safari in landscape reports a 20 px home-bar inset while its toolbar is open and none once
   it has shrunk to the address pill, with the page's bottom on the same glass edge both times: the
   HUD's bottom row and the dial floated over the world in one state and not the other (iOS 26,
   2026-10-15). In the browser it is taken as none; an installed app keeps it. */
@supports (-webkit-touch-callout: none) {
  @media (display-mode: browser) and (orientation: landscape) { :root { --safe-b: 0px; } }
}

:root {
  /* MIDNIGHT ASTROLABE (owner, 2026-10-07: theme lab docs/ui-overhaul/themes t03): deep navy
     surfaces, star-white ink, ONE accent metal (pale brass), brass hairlines, starlight washes.
     The ladder first; every token below is a meaning that reads it. rgb triples beside the
     colours that are used at an alpha: rgba(var(--x-rgb), a). */
  --navy-0: #080d1a;                 /* the well: inputs, tile hollows, bar troughs */
  --navy-1: #0d1321;                 /* the slab: window ground, card ground */
  --navy-2: #141c2e;
  --navy-3: #1a2439;
  --navy-4: #223049;                 /* the lightest surface: a head band, a lit plate */
  --navy-0-rgb: 8, 13, 26;
  --navy-1-rgb: 13, 19, 33;
  --navy-2-rgb: 20, 28, 46;
  --navy-3-rgb: 26, 36, 57;
  --navy-4-rgb: 34, 48, 73;
  --wash-rgb: 6, 11, 24;             /* every translucent wash: the veil, the HUD rows, a count's plate */
  --sky: #c9d6f2;                    /* starlight: the selected row, a band, a hover, a lit edge */
  --sky-rgb: 201, 214, 242;
  --brass-pale: #f4e6c4;             /* THE accent metal, light to dark */
  --brass-hi: #e6cf9c;
  --brass: #d4b57a;
  --brass-dim: #7c6844;
  --brass-pale-rgb: 244, 230, 196;
  --brass-hi-rgb: 230, 207, 156;
  --brass-rgb: 212, 181, 122;
  /* The primary plate's navy: bluer than the slab, so a button reads as a thing on the surface. */
  --plate-navy: #18324c;
  --plate-navy-hi: #1e3c5a;
  --plate-navy-lo: #0f2135;

  /* surfaces and ink. Dark is the one tone (PLAN D8): the light parchment tone is gone, and the
     few surfaces that stay paper put their own values back (20-components.css PAPER SURFACES). */
  --paper: var(--navy-1);
  --paper-2: var(--navy-2);
  --ink: #e3e8f1;
  --ink-strong: #f4f6fb;
  --ink-strong-rgb: 244, 246, 251;
  --ink-mute: #9ba7bd;
  --ink-faint: #5f6b82;
  --white: var(--navy-4);
  --shadow-ink: 1, 3, 10;           /* rgba(var(--shadow-ink), a): every drop shadow */
  --ink-wash: var(--sky-rgb);       /* rgba(var(--ink-wash), a): hover and empty-slot washes */
  --error: #e0776a;

  /* THE ONE WINDOW SIZE, fixed, in design px: every dimension in the window system (and the cards,
     25-card.css) is an em against it. The scale is the stage's zoom (ui/10-base.css .stage, gui/mode.ts),
     never this number. The always-on HUD (40-hud.css) is design px of its own; the world layer's
     plates and damage numbers are px at camera pixels, never scaled. */
  --win-size: 14px;

  /* The window type ladder, five rungs in design px (11 / 12 / 14 / 16 / 18, body = --win-size).
     Text is sized off these, not the parent em, so a label reads the same in a small tile as
     in a big one: badge is counts and tags, small is captions, notes and secondary lines, body is
     the reading size, heading names a section or a card, title is the window's own name. */
  --fs-badge: 11px;
  --fs-small: 12px;
  --fs-heading: 16px;
  --fs-title: 18px;
  /* P15 (docs/ui-patterns.md): the four sizes a new rule uses - title, label, body, small - mapped
     onto the rungs above so nothing changes on screen yet; F-phase sweeps fold the rest into them. */
  --fs-label: var(--fs-heading);
  --fs-body: var(--win-size);

  /* type: sans for everything; the display face is for dramatic moments only */
  --face-ui: "Tamer Sans", "Nunito", "Segoe UI", system-ui, sans-serif;
  --face-weight: 600;
  --face-display: "Cinzel", "Tamer Sans", serif;
  --face-display-weight: 600;

  /* engraving overlays: a brass hairline inside a plate */
  --engrave-light: rgba(var(--brass-rgb), .24);
  --engrave-lift: .03em;

  /* button: a flat navy face in a 1px brass line (the square .btn, default, the action). The
     hexagon (.btn--special) lays a sheen over the face and a small brass sparkle at each end (--btn-orn,
     ui/btn-spark). The variants only swap face, rim and ink. */
  --btn-face: var(--plate-navy);
  --btn-rim: #c4a76f;
  --btn-text: #fbf4e2;
  --btn-text-shadow: rgba(var(--shadow-ink), .9);
  --btn-sheen: linear-gradient(180deg, rgba(var(--sky-rgb), .1), transparent 48%, rgba(var(--shadow-ink), .3));
  --art-btn-spark: url(/data/art/ui/btn-spark.4e969877.webp);
  --btn-orn:
    var(--art-btn-spark) left .65em center / .6em .6em no-repeat,
    var(--art-btn-spark) right .65em center / .6em .6em no-repeat;
  --btn2-face: var(--navy-3);        /* .btn--cream, the second action */
  --btn2-rim: var(--brass-dim);
  --btn2-text: var(--ink);
  --btn-bad-face: #5e2630;           /* .btn--rose, the one that destroys */
  --btn-bad-rim: #b07a6e;
  --btn-bad-text: #fbe7e2;
  --btn-ok-face: #24443a;            /* .btn--sage, the one that agrees */
  --btn-ok-rim: #8fae86;
  --btn-ok-text: #eef3e6;
  /* disabled: the same plate gone dim in the night, never grey */
  --btn-off-filter: saturate(.7) brightness(.62);
  --btn-off-opacity: .9;
  /* the wide primary (.btn--block): a navy plate in one thin brass line, the astrolabe ornament
     (cut from the old painted plate) at each end, a fifth of it past the edge */
  --btn-plate-orn: url(/data/art/ui/btn-orn.a3080b9d.webp);
  --btn-plate-line: rgba(var(--brass-rgb), .85);
  /* a ready button's orbiting light (.btn--charged): a star-white head, a pale-brass tail fading
     into starlight, a faint second spark; brass and star on navy, never amber */
  --btn-charge-hot: rgba(var(--brass-pale-rgb), 1);
  --btn-charge: rgba(var(--brass-hi-rgb), .85);
  --btn-charge-dim: rgba(var(--sky-rgb), .22);
  --btn-charge-soft: rgba(var(--sky-rgb), .45);

  /* button geometry, all relative to font-size */
  --btn-point: .65em;                 /* depth of the pointed end */
  --btn-rim-w: max(1px, .06em);      /* hairline rim */
  --btn-ring: .2em;                  /* inset of the inner line from the edge */
  --btn-line-fade: 1.7em;            /* the inner line is gone by here, where the ornament begins */
  --btn-pad-x: 1.94em;               /* the hexagon (.btn--special): room for the points */
  --btn-sq-pad-x: 1.1em;             /* the square (.btn) */
  --btn-pad-y: .6em;

  /* window chrome: the midnight panel, a double brass rim, a navy head with a flat title plate,
     a brass corner scale growing from the top-left and bottom-right corners, starlight selection */
  --win-face: var(--navy-1);           /* a solid navy: cards, lists, a strip that is not a window */
  --win-rim: rgba(var(--shadow-ink), .92);
  --rim: var(--navy-2);                /* a dark band round a framed thing that is not a window (the chat, the shell pill) */
  --rim-in: rgba(var(--brass-rgb), .3);  /* the brass hairline inside that band */
  --line: rgba(var(--brass-rgb), .18);   /* the inner content line in the body */
  --win-shadow: 0 30px 70px -8px rgba(var(--shadow-ink), .82), 0 10px 22px rgba(var(--shadow-ink), .5);
  /* The window's own paint (.win). Top to bottom: a faint star field in two offset tiles, a navy
     wash, the midnight panel at its own 1024 px, navy under it all so the body is opaque. The body
     and foot paint nothing (--win-body), so this is their ground. --win-arc lies over it on .win
     only (the chat's face shares --win-bg and stays plain): the login sky's astrolabe limb engraved
     into the panel, a double brass ring with half-degree ticks, numerals and zodiac glyphs. Its circle
     sits near the bottom-right (owner's sketch, 2026-10-09): centre .13 of the window's width in from
     the right and .108 up from the foot, outer ring .49 of the width, so only its upper-left quarter
     shows, rising from the foot at ~39% across and leaving through the right side, the compass at
     the middle of that span facing the window's middle. The art is just that segment with the
     window's bottom-right corner as its own, so it sits at `right bottom` and is 63.04% of the window
     wide at any size. It fades toward both edges; its quietness is baked into the art (line alpha
     .34 at most). */
  --art-panel: url(/data/art/ui/astro-panel.76e32d74.webp);
  --art-win-arc: url(/data/art/ui/win-astrolabe.be4a39b1.webp);
  --win-sky:
    radial-gradient(circle at 23px 31px, rgba(var(--sky-rgb), .5) 0 .7px, transparent 1.3px) 0 0 / 211px 173px,
    radial-gradient(circle at 141px 12px, rgba(var(--sky-rgb), .35) 0 .6px, transparent 1.2px) 0 0 / 211px 173px,
    radial-gradient(circle at 96px 88px, rgba(var(--brass-pale-rgb), .4) 0 .8px, transparent 1.4px) 0 0 / 211px 173px,
    radial-gradient(circle at 187px 131px, rgba(var(--sky-rgb), .3) 0 .5px, transparent 1.1px) 0 0 / 211px 173px,
    radial-gradient(circle at 52px 146px, rgba(var(--sky-rgb), .28) 0 .5px, transparent 1.1px) 0 0 / 211px 173px,
    radial-gradient(circle at 71px 59px, rgba(var(--sky-rgb), .38) 0 .6px, transparent 1.2px) 0 0 / 307px 241px,
    radial-gradient(circle at 160px 70px, rgba(var(--sky-rgb), .22) 0 .5px, transparent 1px) 0 0 / 307px 241px,
    linear-gradient(180deg, rgba(var(--navy-3-rgb), .62), rgba(var(--navy-2-rgb), .7) 40%, rgba(var(--navy-1-rgb), .84));
  --win-bg: var(--win-sky), var(--art-panel) 0 0 / 1024px 1024px, var(--navy-1);
  /* The typing bar's face (10-base.css .kb-dock, a field docked over the keys): the window's. A finger's
     device swaps the panel for its own flat colour (the media rule at the foot): the panel is one
     colour to within 1.5 levels under that wash, and it is a 1024 px picture (4 MB decoded) the
     always-on layer would hold for nothing. */
  --chat-bg: var(--win-bg);
  --art-panel-flat: #070d21;
  --win-arc: var(--art-win-arc) right bottom / 63.04% auto no-repeat;
  --win-body: transparent;
  /* The rim, outside the box: a dark line and one thin brass line (owner, 2026-10-09: thinner),
     a lit top edge, the deep cool drop, an inner vignette. */
  --win-ring:
    0 0 0 1px rgba(var(--shadow-ink), .92), 0 0 0 2px rgba(var(--brass-rgb), .44),
    inset 0 1px 0 rgba(var(--brass-pale-rgb), .2), var(--win-shadow), inset 0 0 80px rgba(var(--shadow-ink), .55);
  /* The engraved inner plane: a brass hairline 5px inside the rim, drawn with the corners. */
  --win-plane: rgba(var(--brass-rgb), .1);
  /* The corners (owner, 2026-10-09): a CORNER PIECE, never a medallion. An astrolabe's edge scale:
     a double brass hairline runs out along each edge with graduated ticks between, and on the
     corner point a small faceted lozenge under a slim crescent, its tip a short pointer down the
     diagonal. The art's own (0,0) is the window's corner point; top-left and bottom-right only (the
     second the same art turned half a turn). --corner-size is the art's side, in em of --win-size. */
  --art-corner-tl: url(/data/art/ui/corner-crest.212d8f8c.webp);
  --art-corner-br: url(/data/art/ui/corner-crest-br.c0aa305c.webp);
  --corner-size: 8.32em;
  --win-head-bg:
    linear-gradient(180deg, rgba(var(--sky-rgb), .05), transparent 55%),
    linear-gradient(90deg, rgba(var(--brass-rgb), .08), transparent 55%),
    linear-gradient(rgba(var(--navy-4-rgb), .86), rgba(var(--navy-3-rgb), .7));
  --win-head-lit: rgba(var(--brass-pale-rgb), .2);    /* the head's top edge */
  --win-title-shadow: 0 1px 0 rgba(var(--shadow-ink), .9), 0 0 .6em rgba(var(--sky-rgb), .2);
  /* The title plate: a flat navy that runs in from the window's left edge under the title. */
  --title-plate: #0d1929;
  --title-run: 3.6;                    /* how far the plate runs past the last letter, x --win-size */
  /* Dividers: a section head's plain brass hairline, fading out to the right (owner, 2026-10-09:
     no ornament). A section head paints `background: var(--divider-bg)` and keeps its own box. */
  --divider-bg:
    linear-gradient(90deg, rgba(var(--brass-rgb), .32), rgba(var(--brass-rgb), .14) 80%, transparent) left bottom / 100% 1px no-repeat;
  /* The ring for a round portrait (the HUD's to use: 40-hud.css). */
  --art-ring: url(/data/art/ui/astro-ring.bbeffbf9.webp);
  --parch: var(--navy-3);
  --parch-edge: var(--navy-2);
  /* The SELECTED fill: brass, with navy ink on it (a tag, a ticked box, a toggle that is on). */
  --tan: #c9aa70;
  --tan-rgb: var(--brass-rgb);         /* rgba(var(--tan-rgb), a): every soft brass wash and ring */
  --tan-rim: #8a7449;
  /* A name you can press: the brass lifted until it reads as ink rather than as a border. */
  --link-ink: #ebcf92;
  --tan-text: var(--navy-1);
  --hairline: rgba(var(--brass-rgb), .14);
  --field-border: rgba(var(--brass-rgb), .28);
  --field-face: var(--navy-0);
  /* A chosen row, a band, a hover: starlight over navy, never a brass wash (brass at .2 over navy
     cancels to khaki). The brass stays on rims and edges. */
  --row-on: linear-gradient(90deg, rgba(var(--sky-rgb), .17), rgba(var(--sky-rgb), .07) 60%, rgba(var(--sky-rgb), .03));
  --row-on-flat: rgba(var(--sky-rgb), .11);    /* the same, for a row drawn as separate cells */
  --row-hover: linear-gradient(90deg, rgba(var(--sky-rgb), .08), transparent 80%);
  --menu-hover: linear-gradient(90deg, rgba(var(--brass-rgb), .16), transparent);
  --band-bg: linear-gradient(90deg, rgba(var(--sky-rgb), .08), rgba(var(--sky-rgb), .03) 70%, transparent), rgba(var(--navy-3-rgb), .62);
  /* The selected tab: brass light rising from its foot, a starlight core, the brass underline. */
  --tab-on-bg: radial-gradient(ellipse 60% 90% at 50% 100%, rgba(var(--brass-rgb), .2), transparent 75%), radial-gradient(ellipse 40% 60% at 50% 100%, rgba(var(--sky-rgb), .09), transparent 75%), rgba(var(--navy-4-rgb), .7);
  --tab-on-ink: var(--brass-pale);
  --tab-on-ring: inset 0 0 0 1px rgba(var(--brass-rgb), .34);
  --tab-line: linear-gradient(90deg, transparent, var(--brass) 22%, var(--brass-pale) 50%, var(--brass) 78%, transparent);
  /* A card (tooltip, menu, toast, dropdown list): the navy plate in a brass rim, a dark gap and a
     faint second hairline; a lit top edge, a deep drop. */
  --card-bg: linear-gradient(var(--navy-3), var(--navy-0));
  --card-ring: 0 0 0 1px rgba(var(--brass-rgb), .55), 0 0 0 3px rgba(var(--shadow-ink), .8), 0 0 0 4px rgba(var(--brass-rgb), .16), inset 0 1px 0 rgba(var(--brass-pale-rgb), .2), 0 14px 34px rgba(var(--shadow-ink), .75);
  /* THE TOOLTIP (gui/tip.ts, owner 2026-10-29: every tooltip minimal). A name or a line: a small
     pill on the slab, no frame, a soft lift, the theme's ink at the HUD's small size. A rich card
     (an item, a skill, a pet) keeps its layout and loses only the brass frame for the same lift. */
  --tip-bg: var(--navy-1);
  --tip-lift: 0 2px 6px rgba(var(--shadow-ink), .45), 0 0 0 1px rgba(var(--shadow-ink), .35);
  --tip-fs: 11px;
  --card-number: #f0cf86;              /* a figure that matters inside a card's prose */
  /* The veil under a modal: clear through the middle, navy at the corners. */
  --veil: radial-gradient(circle at 50% 50%, rgba(var(--wash-rgb), 0) 33%, rgba(var(--wash-rgb), .64) 100%), rgba(var(--wash-rgb), .2);
  --count-bg: rgba(var(--wash-rgb), .85);   /* the plate under a stack count */
  --dot-ring: rgba(var(--brass-pale-rgb), .75);

  /* grey pills and strips, the dropdown's grey variant, the unlearned skill */
  --grey-pill: var(--navy-3);
  --grey-pill-2: var(--navy-4);
  --scroll-thumb: var(--brass-dim);
  --scroll-thumb-hover: #a08655;

  /* stepper and round buttons: a navy disc, a brass ring, a brass glyph */
  --cream: var(--navy-3);
  --cream-rim: rgba(var(--brass-rgb), .3);
  --cream-ink: var(--brass);
  --ibtn-on-ring: rgba(var(--navy-1-rgb), .45);
  /* A pill that says go or stop (the trade's agreement): state colours, kept bright on purpose. */
  --pill-stop-bg: #d62828;
  --pill-stop-ink: #fff;
  --pill-go-bg: #22c55e;
  --pill-go-ink: #0b3b1d;

  /* numbers */
  --green: #86c46a;
  --orange: #eba062;
  /* The stat blue, and it is the family's own: --bar-mp is the mana bar and this is one step
     brighter so it carries at 1em on the card's cream paper, where the bar's depth is meant to be
     read as a filled trough. A third hue beside green and orange rather than a fourth invention. */
  --blue: #79a3dc;
  --bar-hp: #9d3b34;
  --bar-mp: #3b5a86;
  --bar-exp: #c9a227;                /* gold: experience is the one bar that is a reward */
  --bar-sage: #3d6f30;
  --bar-gold: #d6a326;               /* the energy bar: brighter than --bar-exp, because it glows */
  --bar-track: #060a14;              /* the empty part of every bar is night ink */
  --bar-text: #fff8f0;               /* the engraving light at full alpha */

  /* over the world: the one place this system paints on grass, water and snow
     instead of on paper. The face is the engraving light, the outline is the
     darkest ink in the family rather than pure black, so a nameplate still
     reads as this game and not as a browser default. --world-rim is a hairline
     at small sizes and grows with the type, so a big cast line keeps its edge. */
  --world-text: #fdf6ec;
  --world-dark: 27, 15, 8;             /* one dark, used at four alphas: rim, halo, glow, plate */
  --world-outline: rgb(var(--world-dark));
  --world-rim: max(1px, .06em);
  --world-veil-loss: rgba(143, 42, 30, .6);   /* the dim behind a defeat, and only a defeat */
  --offline-wash: rgba(40, 40, 40, .55);      /* the freeze: the world and HUD greyed while the socket is down */
  /* The shell (ui/90-shell.css): the night behind the vista until its picture lands, the white chip a
     provider's own mark sits on (Google's G must stand on white), and the ink written straight on
     the vista (the build line). */
  --shell-sky: var(--navy-1);
  --provider-chip: #fff;
  --vista-ink: #fff;
  /* The fight's four figures. Every one of them is a panel colour lifted: the
     error red, the tan gold, the sage green and the paper grey are all too dark
     to read at speed over grass, so each gets its own token here rather than a
     filter or an opacity at the point of use. */
  --world-hit: #e0705a;                /* an ordinary blow */
  --world-crit: #f2c66a;               /* a critical, and the burst it fires */
  --world-crit-rgb: 242, 198, 106;     /* rgba(var(--world-crit-rgb), a): the burst and the orb */
  --world-heal: #8ecb63;               /* a heal, and an ally's health */
  --world-gold: #e0c68f;               /* the quiet gold of the facts beside a name: the level, the guild line */
  /* THE WORLD'S OWN QUALITY INKS. The paper palette's bands (--rarity-*) are inks
     for a parchment card and go dark on purpose; over the canvas, behind a dark
     halo, the deepest of them - the purple at 5.2 on paper - is close to
     invisible. Same bands, same classes, the palette this surface asks for; the
     rule the .chip--bare block below already states. */
  --world-q-green: #86d45f;
  --world-q-blue: #63b8ff;
  --world-q-gold: #ffa14a;
  --world-q-yellow: #ffe066;
  --world-q-purple: #c98bff;
  --world-q-prism: #e4e2ff;           /* prism, above purple (task #215): pale starlight */
  /* NADI (panels/nadi.ts, gui/hud/strip.ts): the six tiers wear the equipment qualities' inks in
     their order; white, which no item band has, is plain starlight. */
  --nadi-white: #eef2fb;
  --nadi-blue: var(--world-q-blue);
  --nadi-green: var(--world-q-green);
  --nadi-yellow: var(--world-q-yellow);
  --nadi-gold: var(--world-q-gold);
  --nadi-purple: var(--world-q-purple);
  /* An item's quality as the ground under its picture (owner, 2026-10-09): the band's ink sunk into
     the navy, one flat soft dark colour over the whole well (no shaded edge), so the grid reads its
     qualities without any one tile shouting.
     The window tiles (.tile--{band}) and the hotbar (.hud .slot.q-{band}) both stand on these. */
  --q-bg-green: color-mix(in srgb, var(--world-q-green) 24%, var(--navy-1));
  --q-bg-blue: color-mix(in srgb, var(--world-q-blue) 24%, var(--navy-1));
  --q-bg-yellow: color-mix(in srgb, var(--world-q-yellow) 20%, var(--navy-1));
  --q-bg-gold: color-mix(in srgb, var(--world-q-gold) 22%, var(--navy-1));
  --q-bg-purple: color-mix(in srgb, var(--world-q-purple) 24%, var(--navy-1));
  /* PRISM, the band above purple (task #215):
     the one band that moves. A night-blue well, a nebula smoke turning slowly over it (a pseudo
     layer, transform only) and five 1px stars breathing on it (opacity only), a starlight rim
     outside it. No filter and no image: no texture, no VRAM. The smoke is violet/indigo with a
     cyan wisp, so it never reads as purple's flat lilac ground. */
  --q-bg-prism: radial-gradient(circle at 50% 50%, #1a1838, #070a18 82%);
  --prism-rgb: 201, 182, 255;         /* the band as a triple, for a light in its colour */
  --prism-rim: rgba(186, 178, 255, .35);
  --prism-smoke:
    radial-gradient(ellipse 30% 22% at 34% 42%, rgba(126, 140, 255, .55), transparent 70%),
    radial-gradient(ellipse 26% 30% at 68% 60%, rgba(184, 118, 255, .45), transparent 70%),
    radial-gradient(ellipse 22% 16% at 56% 30%, rgba(110, 214, 255, .32), transparent 70%),
    radial-gradient(ellipse 20% 24% at 40% 72%, rgba(220, 150, 255, .25), transparent 70%);
  --prism-stars:
    radial-gradient(1px 1px at 18% 24%, #fff 50%, transparent),
    radial-gradient(1px 1px at 78% 18%, #dfe4ff 50%, transparent),
    radial-gradient(1.4px 1.4px at 84% 70%, #fff 50%, transparent),
    radial-gradient(1px 1px at 26% 82%, #e9ddff 50%, transparent),
    radial-gradient(1px 1px at 60% 88%, #fff 50%, transparent);
  /* The name's violet haze: static, so a list of prism names never repaints per frame. */
  --prism-glow: 0 0 6px rgba(150, 130, 255, .75), 0 0 14px rgba(110, 180, 255, .35);
  /* Whoever DID the thing being announced: a player, a guild, a team, or the boss
     that was felled. A lime of its own rather than the quality green above, so an
     actor and a green-band item are not the same word twice. */
  --world-name: #5cf04a;

  /* THE PLATES AND THE FIGHT (ui/45-plates.css, 50-battle.css). Px on purpose: the
     plate layer is never zoomed. --world-shadow is the halo every word on the world
     wears; --plate-rim the four-sided rim a name is cut out with. The world's own nameplates
     are painted by glplates.ts, which keeps its copies of these inks beside its drawing. */
  --world-shadow: 0 0 2px rgba(0, 0, 0, .95), 0 0 5px rgba(0, 0, 0, .75), 0 0 10px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .9);
  --plate-rim: #120a06;
  --plate-name-shadow: 1px 0 0 var(--plate-rim), -1px 0 0 var(--plate-rim), 0 1px 0 var(--plate-rim), 0 -1px 0 var(--plate-rim), 0 2px 4px rgba(0, 0, 0, .9);
  --plate-lift: 0 1px 2px rgba(0, 0, 0, .75);
  /* The one size of every line on a nameplate (glplates.ts TEXT; the fight plates, the quest
     tracker): 12px, 10px in far view (html.world-far, glplates.ts FAR). Screen px:
     a zoomed layer divides its zoom back out. */
  --plate-fs: 12px;
  /* The floating numbers (numbers.ts, ui/50-battle.css .fn): lifted inks, because a number sits
     on sand and sea as often as on a dark arena, cut out by one near-black outline. The kind is
     the colour, never a sign (#548): physical red, magic blue, heal green. A critical stays in its
     kind's family and runs hotter - physical red to a burning orange, magic blue to an electric cyan -
     landing in white with a red and cyan fringe either side. */
  --fn-outline: #0b0604;
  --fn-hit: #ff4b3e;
  --fn-crit: #ffa53a;
  --fn-magic: #2f7cff;
  --fn-magic-crit: #6fd8ff;
  --fn-flash: #ffffff;
  --fn-fringe-a: rgba(255, 64, 96, .6);
  --fn-fringe-b: rgba(72, 214, 255, .6);
  --fn-heal: #8fe86a;
  --fn-blood: #ff5c9e;                 /* a blood pact's blow: crimson-pink, apart from the physical red */
  --fn-zero: var(--sky);
  --plate-ink: #f6efe1;                /* a friend's name, and the shop board's face */
  --plate-foe: #ff9d86;                /* a foe's name, and a refusal under a body */
  --plate-stall-ink: #2a1a0e;
  --plate-stall-hover: #fffaf0;
  --bar-wash: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(255, 255, 255, .26));
  /* The gauges' paint (owner 2026-10-10: a worn painted strip, not a flat fill, and not bright): a
     gloss on the top half, a shade along the bottom edge, and the grunge grain (data/art/ui/bar-grain,
     tiled along, one tile high). Laid on an overlay ABOVE the fill, never on it - the fill is a
     scaleX, which would stretch the grain with the value - and blended `overlay`, which leaves the
     near-black empty track untouched: only the coloured part wears it. */
  --bar-sheen:
    linear-gradient(180deg, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, .08) 42%, transparent 52%, transparent 62%, rgba(0, 0, 0, .4) 100%),
    url(/data/art/ui/bar-grain.8ffc8f17.webp) 0 0 / auto 100% repeat-x;
  /* Over every gauge's own colour, so the fills sit a step down from the swatch. */
  --bar-dim: linear-gradient(rgba(0, 0, 0, .26), rgba(0, 0, 0, .26));
  --bar-gold-glow-rgb: 214, 163, 38;  /* the energy bar's halo */
  --bar-gold-core-rgb: 255, 236, 170;
  /* The fight's floats: a miss's grey, a defeat's banner, mana's blue, a status count's ground. */
  --stone-200: #a7a8aa;
  --ember-300: #fa9b83;
  --world-mana: #8fb6f0;
  --mark-count-bg: rgba(6, 9, 26, .82);
  /* The critical burst (warm, additive) and the soul orb (cold): rgb triples, used at alphas. */
  --fx-white-rgb: 255, 255, 255;
  --burst-cream: #ffefc4; --burst-spike: #ffeec8;
  --burst-amber-rgb: 255, 196, 92; --burst-orange-rgb: 255, 138, 48; --burst-ember-rgb: 255, 120, 40; --burst-tip-rgb: 255, 208, 120;
  --orb-lilac: #e6ccff;
  --orb-violet-rgb: 168, 92, 255; --orb-deep-rgb: 120, 48, 220; --orb-night-rgb: 96, 32, 190; --orb-ring-rgb: 198, 150, 255;

  /* item rarity: the tile's ground (--q-bg-*) and the card's name */
  --tile-face: #111a2b;
  /* The tile: a navy hollow lit from above its middle, a dark inset line, a soft inner vignette (a
     quality tile stands on its --q-bg-* instead, flat). The portrait's well is the same night. */
  --tile-bg: radial-gradient(circle at 50% 38%, var(--navy-3), var(--navy-0) 78%);
  --tile-empty-bg: radial-gradient(circle at 50% 40%, rgba(var(--navy-2-rgb), .9), var(--navy-0));
  --tile-rim-base: rgba(var(--shadow-ink), .9);
  --tile-vignette: inset 0 0 .9em rgba(var(--shadow-ink), .55);
  --tile-hover: 0 0 0 1px var(--brass-hi), 0 0 .7em rgba(var(--brass-hi-rgb), .3);
  --portrait-bg: radial-gradient(circle, rgba(var(--navy-2-rgb), .95) 60%, rgba(var(--navy-0-rgb), .9));
  --portrait-ring: rgba(var(--brass-hi-rgb), .45);
  --rarity-purple: #b393d6;
  --rarity-blue: #86a8d0;
  --rarity-gold: #f0964a;
  --rarity-yellow: #e3c456;
  --rarity-green: #93c283;
  --rarity-gold-text: #ffa15e;
  --rarity-yellow-text: #f2d35c;
  --rarity-blue-text: #86a8d0;
  --rarity-green-text: #93c283;
  /* Purple has a second tone for the same reason gold does: the rim and the NAME are read on
     different grounds, so each has its own token. */
  --rarity-purple-text: #c7a6ea;
  --rarity-prism: #c9b6ff;
  --rarity-prism-text: #e4e2ff;

  /* one size each, read by the item and by the grid that holds it.
     --tile is thirds of an em rather than a round figure because the target is
     40px at the 12px window size, and 3.33em would land at 39.96 and round a
     ten-column bag half a pixel short. It stays in em so it still follows
     --win-size like everything else. */
  --tile: calc(10em / 3);
  --node-w: 6.4em;


  /* ---------------------------------------------------------------- the HUD (40-hud.css)
     The always-on layer's own palette: text straight on the world under a soft wash. On :root
     rather than on .hud so a detached chat window and the world plates read the same values. */
  --hud-ink: rgba(var(--wash-rgb), .78);
  --hud-ink-2: rgba(var(--wash-rgb), .48);
  --hud-wash: linear-gradient(90deg, var(--hud-ink) 0%, var(--hud-ink-2) 55%, transparent 100%);
  --hud-wash-rev: linear-gradient(270deg, var(--hud-ink) 0%, var(--hud-ink-2) 55%, transparent 100%);
  --hud-text: #ffffff;
  --hud-dim: rgba(255, 255, 255, .62);
  --hud-gold: var(--brass-hi);
  --hud-blue: #86bcff;
  --hud-teal: #7de6da;
  /* The Pet Dealer's bench (ui/w-dealer.css): the energy line and its halo. */
  --fuse-ink: #3f9aa6;
  --fuse-glow: var(--hud-teal);
  --hud-hp: #e0453a;
  --hud-mp: #3f7dff;
  --hud-good: #6fcf6a;     /* the green that means live or healthy: a good ping, a war clock running */
  --hud-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 4px rgba(0, 0, 0, .6);
  /* The rail's face: the UI sans, for readouts and names alike. */
  --hud-face: var(--face-ui);
  --hud-edge: 10px;
  --hud-slot: 34px;
  /* Where every gauge in the left rail starts, measured from the rail's own left edge: you, your
     pet and each teammate spend whatever gap is left after their own padding and portrait. */
  --hud-gauge-x: 84px;
  /* The bars (gui/hud/bar.ts): a slot's navy well under its painted frame, the round toggles'
     backing, the lift under both, the key cap's figure, and the cover a cooldown or the turn
     clock wipes away. */
  --hud-slot-bg: linear-gradient(180deg, rgba(var(--sky-rgb), .12), transparent 45%),
    radial-gradient(circle at 50% 38%, rgba(var(--navy-3-rgb), .28), rgba(var(--navy-0-rgb), .34) 80%);
  --hud-knob-bg: rgba(var(--navy-0-rgb), .55);
  --hud-lift: 0 1px 3px rgba(0, 0, 0, .5);
  --hud-key: #d9dfeb;
  --hud-cover: rgba(0, 0, 0, .62);
  /* The HUD's own washes as triplets, rgba(var(--x), a), so 40-hud.css names no colour: the rail's
     dark (as --hud-ink), the round wells under faces and the pet ring, the account fan's night,
     the open tile's gold (as --hud-gold), the good dot's glow, and the live event tile's glow and
     motes. */
  --hud-ink-rgb: var(--wash-rgb);
  --hud-well-rgb: var(--navy-0-rgb);
  --hud-night-rgb: 6, 9, 26;
  --hud-gold-rgb: var(--brass-hi-rgb);
  --hud-good-glow-rgb: 125, 220, 133;
  --hud-event-hi-rgb: 255, 214, 110;
  --hud-event-rgb: 255, 190, 70;
  --hud-spark: #ffe7a0;
  --hud-spark-glow-rgb: 255, 196, 64;
  /* The chat (gui/hud/chat.ts): each channel's ink - the speaker's name, the lit tab's glow, the
     field's placeholder - lifted for text straight on the world (owner, 2026-10-09: all white, city
     (nearby) blue, party green, guild purple; 2026-10-10: world a darkish yellow, system white). The tab
     glyphs (Lucide, chat.ts) are stroked in the same ink. */
  --chan-all: #ffffff;
  --chan-nearby: #8cc4ff;
  --chan-world: #e0b83c;
  --chan-trade: #f0915a;   /* 2026-10-14: Trade, a warm orange apart from World yellow */
  --chan-team: #8fdc82;
  --chan-guild: #c9a8ff;
  --chan-private: #ff9fd6;
  --chan-system: #ffffff;
  /* The chat (gui/hud/chat.ts, owner 2026-10-29: no panel, no coloured borders) draws on the
     Midnight Astrolabe itself: the navy ladder for grounds and buttons (40-hud.css), star-white ink,
     brass the one accent. What it adds: the thin brass ring round what is being read (no blur: the
     faces are a scroller padded only 6px, which cuts a glow square; owner, 2026-10-29), the lift under each solid shape, and the pink that keeps private talk apart. */
  --chat-glow-on: 0 0 0 1.5px rgba(var(--brass-rgb), .8);
  --chat-hot: #ff3d6e;         /* a pink count: DMs unread */
  --chat-dm: #ff86c0;          /* a DM: its bar, its ring, its composer's ink */
  --chat-dm-deep: #c23d74;     /* my own DM bubble, the DM composer's letter */
  --chat-dm-dark: #3b1a2d;     /* their DM bubble, the DM chip, a new DM's note */
  --chat-dm-name: #ffd0e6;     /* the name on the DM bar */
  --chat-lift: 0 2px 6px rgba(var(--shadow-ink), .35);
  --chat-fade: linear-gradient(transparent, #000 22%);  /* the log's top fade (a mask: only alpha counts) */
  /* The faces' edges where more faces are scrolled away (masks), and the pink glow in a fade
     while an unread face hides beyond it. */
  --chat-fade-up: linear-gradient(transparent, #000 34px);
  --chat-fade-down: linear-gradient(#000 calc(100% - 34px), transparent);
  --chat-fade-both: linear-gradient(transparent, #000 34px, #000 calc(100% - 34px), transparent);
  --chat-glow-up: radial-gradient(60% 100% at 50% 0, rgba(255, 134, 192, .55), transparent);
  --chat-glow-down: radial-gradient(60% 100% at 50% 100%, rgba(255, 134, 192, .55), transparent);
  /* The plate under the chat, a desktop's corner and the phone's drawer alike (40-hud.css
     .hud-chat::before): the theme's wash, solid edges. */
  --chat-plate: rgba(var(--wash-rgb), .6);

  /* ---------------------------------------------------- what the old stone sheet still lends
     The values of the gs.css tokens the game's own sheets and scripts read, without the gs-
     prefix (PLAN 2.5 step 2). gs.css keeps its --gs-* originals for ops and the editor. */
  --gold-bright: var(--brass-hi);
  --text: #e8e9ea;
  --text-mute: #babbbd;
  --stamp-outline: #000000;
  --border-hard: #01030a;
  --border-width: 1px;
  --void: #060b18;
  --page-ground: var(--navy-1);  /* behind the renderer canvas while a map streams */
  --scrim: #060b18cc;
  --stone-50: #e8e9ea;
  --ember-400: #e0553d;
  --ember-500: #b8392a;
  --moss-400: #6ec344;
  --moss-500: #4e9130;

  /* ------------------------------------------------------------- the item card (25-card.css)
     The star rating's brass ramp and its light, and the socket marks. */
  --star-hi: #ecc472;
  --star-mid: #b8862f;
  --star-lo: #6b4c16;
  --star-glint: #fff6c2;
  --star-glow: #ecc472;
  --star-drop: #0b0b0c;
  --socket-full: var(--moss-400);

  /* ------------------------------------------------------------- type scale (PLAN 2.2)
     Six rungs, 10/12/14/16/18/24 design px; the stage's zoom scales them. No font-size literal in a
     ported sheet; out of scale on purpose: the world plates, combat floats, medal numbers and the
     loading curtain. */
  --fs-xs: 10px;
  --fs-sm: 12px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: 24px;
  /* The smallest thing a finger presses, design px. */
  --touch: 40px;
  /* A finger's hit area (docs/ui-patterns.md P10): 44 px on the glass at the design size; the mobile
     stages divide it by their layer's factor (below). */
  --hit: 44px;

  /* ------------------------------------------------------------- the layer table (PLAN 2.3)
     The same numbers as apps/game/client/gui/z.ts Z (windows and modals take theirs from the
     stack there, written per element; these are for everything at one fixed layer). */
  --z-plates: 0;
  --z-hud: 10;
  --z-shell: 30;
  --z-win: 100;
  --z-pinned: 190;
  --z-cast: 200;
  --z-procl: 201;
  --z-toast: 202;
  --z-modal: 300;
  --z-tip: 400;
  --z-menu: 410;
  --z-ghost: 420;
  --z-fx: 500;
  --z-loading: 600;
  --z-fs-ask: 650;
  --z-orient-curtain: 660;
  --z-offline: 700;
  --z-devstats: 900;
  --z-sim: 901;
  --z-gpulab: 902;

  /* windows */
  /* The window sheets' own (ui/w-*.css). A thing carried over a row or a place it can land on:
     starlight under it, the brass lifted on its edge (never a brass wash: khaki on navy). */
  --drop-on-bg: rgba(var(--sky-rgb), .1);
  --drop-on-rim: var(--brass-hi);
  /* The paid track (the Tamer Pass's Starward card): brass light falling on a lit navy plate, in a
     brass rim, never a solid brass-brown. */
  --prem-bg: radial-gradient(ellipse 90% 70% at 50% 0, rgba(var(--brass-rgb), .28), transparent 70%), linear-gradient(160deg, var(--navy-4), var(--navy-2));
  --prem-rim: rgba(var(--brass-rgb), .6);
  /* The light that runs round a premium rung and rises off a claimable one: the brass ladder. */
  --mote: radial-gradient(circle, var(--brass-pale) 0 20%, var(--brass-hi) 45%, var(--brass) 62%, transparent 74%);
  --mote-glow: rgba(var(--brass-hi-rgb), .8);
  /* The Tamer Pass meter (w-ev-pass.css): pale brass rising into star-white, a starlight halo. Not
     the EXP gold: that colour means experience and stays on the real EXP bars. */
  --pass-fill: linear-gradient(90deg, var(--brass-dim), var(--brass-hi) 75%, var(--brass-pale));
  --pass-glow: 0 0 .45em rgba(var(--sky-rgb), .2);
  /* A tag that says when (the grand prize's level): starlight, so it is not a second brass. */
  --tag-cool-bg: rgba(var(--sky-rgb), .1);
  --tag-cool-rim: rgba(var(--sky-rgb), .35);

  /* hud */
  /* MIDNIGHT ASTROLABE ON THE ALWAYS-ON LAYER (40-hud.css) and the shell's own surfaces
     (90-shell.css, 60-curtain.css). Still no boxes on the HUD: the brass goes on rings round the
     faces and the minimap, a thin name plate under a level and name, hairlines and the slot frames;
     text keeps its navy wash. */
  --hud-ring-out: 15%;                 /* the astro ring past a small portrait's edge, each side */
  /* A gauge's rim: a starlight hairline in, a brass hairline out. Experience is the one brass bar. */
  --hud-gauge-rim: inset 0 0 0 1px rgba(var(--sky-rgb), .08), 0 0 0 1px rgba(var(--brass-rgb), .34);
  --hud-xp-fill: linear-gradient(90deg, var(--brass-dim), var(--brass-hi) 75%, var(--brass-pale));
  /* The bar's slots (owner, 2026-10-28): a see-through navy hollow, no frame, no brass. A dark
     hairline parts two slots standing edge to edge, a starlight one just inside it and a sheen at the
     top (--hud-slot-bg) make it a glass well, its floor shaded. Starlight under the pointer. */
  --hud-slot-rim: inset 0 0 0 1px rgba(var(--shadow-ink), .45), inset 0 0 0 2px rgba(var(--sky-rgb), .12),
    inset 0 -12px 14px -8px rgba(var(--shadow-ink), .5);
  --hud-slot-hover: inset 0 0 0 1px rgba(var(--sky-rgb), .7), inset 0 0 10px rgba(var(--sky-rgb), .18);
  /* A round well that is a button (the account switch, the +): a brass hairline. */
  --hud-well-rim: 0 0 0 1px rgba(var(--brass-rgb), .34), 0 2px 6px rgba(var(--shadow-ink), .7);
  /* A framed thing outside the windows that is not a card (the shell's top bar): the window rim
     with a vignette its own height. */
  --bar-ring:
    0 0 0 1px rgba(var(--shadow-ink), .92), 0 0 0 2px rgba(var(--brass-rgb), .44), 0 0 0 5px rgba(var(--navy-1-rgb), .9), 0 0 0 6px rgba(var(--brass-rgb), .16),
    inset 0 1px 0 rgba(var(--brass-pale-rgb), .2), var(--win-shadow), inset 0 0 1.4em rgba(var(--shadow-ink), .4);
  /* The picked plinth on the home screen: lit brass. */
  --picked-ring: 0 0 0 1px rgba(var(--shadow-ink), .92), 0 0 0 .18em var(--brass-hi), 0 0 1.2em rgba(var(--brass-hi-rgb), .4), 0 .5em 1.2em rgba(var(--shadow-ink), .35);

  /* THE EVENTS HUB (ui/w-events.css): each event its own accent over the theme's navy and brass.
     -rgb is the accent at an alpha (rings, glows, the motif); -deep the dark of its own back plate.
     A machine with no row of its own reads the brass. */
  --ev-brass-rgb: var(--brass-hi-rgb);       --ev-brass-deep: #2a2414;
  --ev-wardrobe-rgb: 186, 160, 255;          --ev-wardrobe-deep: #1d1640;   /* starlight violet */
  --ev-fortune-rgb: 255, 196, 92;            --ev-fortune-deep: #3a1410;    /* temple gold on vermilion */
  --ev-fortune-2-rgb: 214, 72, 52;
  --ev-well-rgb: 108, 226, 196;              --ev-well-deep: #10302c;       /* jade water under sakura */
  --ev-well-2-rgb: 255, 160, 190;
  --ev-codex-rgb: 140, 214, 255;             --ev-codex-deep: #141a3a;      /* arcane ink on midnight vellum */
  --ev-codex-2-rgb: 196, 150, 255;
  --ev-topup-rgb: 255, 214, 140;             --ev-topup-deep: #241a3a;      /* lamplight gold on a night-violet bedroom */
  --ev-topup-2-rgb: 170, 150, 255;
  --ev-pass-rgb: 128, 196, 255;              --ev-pass-deep: #0f2244;       /* azure, the season's sky */
  --ev-signin-rgb: 255, 172, 128;            --ev-signin-deep: #3a1c22;     /* dawn coral */
  --ev-journey-rgb: 248, 206, 120;           --ev-journey-deep: #1e2a1c;    /* sunset gold over the meadow */
  --ev-night-rgb: 255, 138, 72;              --ev-night-deep: #1c1020;      /* Genderuwo's ember eyes in Kharugna's long night */
  --ev-night-2-rgb: 150, 110, 220;
  --ev-dim: saturate(.45) brightness(.72);   /* a card not picked */
  --ev-veil: rgba(var(--wash-rgb), .62);     /* the world under the page */
}

/* Far view (tier.ts FAR_K) stands back: the plate size comes down with its bodies (glplates.ts FAR). */
html.world-far { --plate-fs: 10px; }

/* A finger's device (tier.ts isTouch): the typing bar on the panel's flat colour (--chat-bg). */
@media (hover: none) and (pointer: coarse) {
  :root { --chat-bg: var(--win-sky), var(--art-panel-flat); }
}

/* Mobile mode's windows, tips and menus (the .75 window factor, gui/mode.ts LAYER): the small rungs
   keep their 10 px floor and --touch its 40 px and --hit its 44 px on the glass (/ .75), as before the stages. */
html.m-mobile .stage:not(.stage--hud) { --fs-xs: 13.3px; --fs-sm: 13.3px; --fs-badge: 13.3px; --fs-small: 13.3px; --tip-fs: 13.3px; --touch: 53.3px; --hit: 58.67px; }
/* Mobile mode's HUD (the .85 factor): a hit area 44 px on the glass. */
html.m-mobile .stage--hud { --hit: 51.76px; }

/* ---- 10-base.css */
/* THE PAGE ITSELF (PLAN 2.4): what the game page asks of the whole document, before any component.

   Selection: a drag is this game's main gesture, so nothing paints a text selection; fields keep
   theirs. Nor the blue box a phone browser flashes over whatever is tapped (owner, 2026-10-14). The colour scheme keeps the remaining form controls dark on a machine set to a light
   theme. The ground behind the renderer canvas is what a player sees while
   a map streams. The page never scrolls: everything on it is placed.

   Elsewhere: the cursor rules (20-components.css CURSORS; cursors.ts writes the --cur-* pictures),
   the scrollbars (20-components.css .scroll) and focus (40-hud.css: no ring on anything clicked). */
* { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable] { user-select: text; -webkit-user-select: text; }
/* No double tap zooms the page (Safari on an iPhone ignores the viewport's user-scalable=no; its pinch
   is refused in gui/mode.ts). Pans and a component's own touch-action still apply.
   The page itself never scrolls, so a swipe that runs off it does nothing: no pull-to-refresh
   reloading the game mid-fight (2026-10-27, #312), no edge swipe back, no glow. Only the page's own
   overscroll: every scroller inside still scrolls, and keeps its own overscroll-behavior. */
html { color-scheme: dark; touch-action: manipulation; overscroll-behavior: none; }
/* EVERY scroller on the page wears the game's bar unless it says otherwise: thin, the brass thumb,
   no track (owner, 2026-10-10: a pane that rolled its own overflow without .scroll showed the
   platform's grey bar). Zero specificity, so a component's own choice - scrollbar-width: none, the
   chat log's 3px bar - still wins. */
:where(*) { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
html, body { background: var(--page-ground); }
body { margin: 0; overflow: hidden; }
canvas { display: block; }

/* THE STAGE (CLAUDE.md UI "Safe area" and "Scale, never reflow"; gui/mode.ts; check recipe
   docs/ui-patterns.md §4): every UI root is the glass less the device's safe area (notch, home bar)
   in its layer's DESIGN px, clipped, zoomed by the layer's zoom (the screen scale x the layer's
   factor per mode), and everything in it is placed from the stage's edges. A stage sets --s (its
   zoom) and --stage-w/-h (its size) for everything inside: windows and the over stage are the `win`
   layer, the HUD (.stage--hud) the `hud` one. Inside, everything is design px and em of --win-size;
   client px -> stage px is (p - frame) / --s. Its own left/top are zoomed too, hence the insets
   divided by --s. Absolute, z auto, and zoom makes no stacking context and no containing block, so
   the window stack's z still interleaves with toasts, tips and modals (gui/z.ts). A stage root never
   takes a z-index (but .hud, and the shell's corner, one layer on purpose), transform, filter,
   opacity, contain or will-change: that would break the stack or the opt-out below. Explicit
   width/height, never inset: on iOS an absolute box's inset is the initial containing block, which
   need not be the visual viewport. */
.stage { --s: var(--s-win); --stage-w: var(--stage-w-win); --stage-h: var(--stage-h-win);
  position: absolute; left: calc(var(--safe-l) / var(--s)); top: calc(var(--safe-t) / var(--s));
  width: var(--stage-w); height: var(--stage-h); zoom: var(--s); overflow: clip; pointer-events: none; }
.stage--hud { --s: var(--s-hud); --stage-w: var(--stage-w-hud); --stage-h: var(--stage-h-hud); }
/* The over stage (gui/mode.ts overLayer: tips, menus, the drag ghost) lets presses through to what is
   under it; the pieces on it that are pressed take them back: the context and tap menu, the numpad,
   the install card. A hover card and the drag ghost stay see-through. (Since the stages landed,
   2026-11-02 #427, a menu row's press and hover fell to the bag cell under it.) */
.over > :is(.ctx, .numpad, .home-card) { pointer-events: auto; }
/* The opt-out: something that must draw to the screen's edge (a backdrop, a band's end, a curtain)
   is a .bleed DIRECT child of a stage or <body>. Fixed, so its containing block is the viewport
   and no frame clips it. Only this sheet's .stage and .bleed rules (and the probe) read --safe-*;
   nothing inside a stage adds the insets again (bun test P17). */
.bleed { position: fixed; }
/* A stage piece's own backdrop carried over the strip a side inset leaves (the mobile menu drawer on
   the right, the mobile chat drawer on the left, the notch beside them): a .bleed beside the piece,
   as wide as the inset in its stage's px. */
.bleed.bleed--r { top: 0; bottom: 0; right: 0; width: calc(var(--safe-r) / var(--s)); }
.bleed.bleed--l { top: 0; bottom: 0; left: 0; width: calc(var(--safe-l) / var(--s)); }
/* gui/mode.ts watches this box: insets that change with no resize (a cutout changing sides). */
.safe-probe { position: fixed; top: var(--safe-t); right: var(--safe-r); bottom: var(--safe-b); left: var(--safe-l);
  visibility: hidden; pointer-events: none; }
/* gui/mode.ts dock(): the typed field's row, docked as one bar above the on-screen keys. */
.kb-dock { position: relative; z-index: 1; background: var(--chat-bg); border-radius: 6px;
  box-shadow: 0 -2px 10px rgb(0 0 0 / .45); }
/* Its HUD piece rises over the others (the skill dial drew over the bar). */
.stage > .kb-lift { z-index: 100; }

/* ---- 20-components.css */
/* =====================================================================
   THE COMPONENTS: the window design system's source of truth (was
   apps/game/public/ui/20-components.css). Every window in the game is built
   from it. A component is one class plus modifiers; every dimension is in
   em so a component scales with its font-size and never needs a second
   drawing. The editor's Battle preview links this file on its own.
   ===================================================================== */

/* The tokens (colour, faces, the window size and its type ladder) live in
   apps/game/public/ui/00-tokens.css, the one token sheet of the game page. */

* { box-sizing: border-box; }

/* The one flag every window and every foldable block in the game is opened and
   closed by is el.hidden, and the browser's own [hidden] rule is display: block,
   which loses to any component that declares a display of its own: .win is flex,
   .rows and .tiles and .table are grid, .chip and .field are inline-flex. Without
   this line every panel is on screen from boot and open() does nothing visible.
   It carries !important on purpose: a component's display must never win over
   "this is not on screen". */
[hidden] { display: none !important; }

/* Pixel art is drawn at exact halves of a 2x master, so it is sampled, never
   smoothed. Anything painted (the plates, the class rings, the coins) must NOT
   take this: nearest-neighbour at an arbitrary scale is what makes art look
   cheap. This utility is for the few bitmaps that are magnified on purpose,
   such as the world map's walk-grid fallback. */
.px { image-rendering: pixelated; }
/* The type stack: every
   component reads --face-ui / --face-weight, so the game body sets them once and no component
   needs a font of its own. No background here: the world canvas is the game's background. */
body { color: var(--ink); font: var(--face-weight) 15px/1.45 var(--face-ui); }

/* A form control does not inherit type. The browser hands a <button>, <input>,
   <select> and <textarea> its own face - 13.333px Arial on this platform - and no
   component here declares one, so every button, field and pill in the game was
   drawn in a font that belongs to the browser and not to the game. The system
   says it once, here, and `font-size: 1em` on .btn finally means the em of the
   thing the button sits in rather than the em of Arial. */
button, input, select, textarea { font: inherit; letter-spacing: inherit; }

/* ---------------------------------------------------------------------
   Button. Two shapes (owner, 2026-10-09):
   .btn            THE SQUARE, every button by default: square corners, one 1px
                   line, a flat face. Cancel / OK pairs, rows of choices, tool
                   strips, list verbs, menus.
   .btn--special   THE HEXAGON, rare on purpose. Only the one call to action a
                   surface exists for, when it commits something the player
                   feels: it spends Lumi or money (Buy Tamer Ticket), takes a
                   reward (Claim, Claim all), seals a deal (trade's Confirm) or
                   starts the game (Enter world). At most one in sight: where
                   two qualify (the pass foot's Buy premium pass and Claim all)
                   the one the player comes back for wins. Never on Cancel,
                   Close, Back, a secondary (--cream) or a destroying (--rose /
                   --danger) verb, never in a tab row or a toolbar.
                   btn({ special: true }) in gui/c/controls.ts.
   Layers (both shapes):
   .btn      the line: `background` is --btn-rim, so the edge is the rim showing
             round the face (a light such as .btn--charged rides it).
   ::before  the face, inset 1px (the hexagon: --btn-rim-w).
   ::after   the hexagon's inner line only.
   Width is free; every dimension is in em.
   --------------------------------------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;        /* the pseudo layers sit under the label, over the line */
  display: inline-grid;
  place-items: center;
  padding: var(--btn-pad-y) var(--btn-sq-pad-x);
  border: 0;
  border-radius: 0;
  font-size: 1em; line-height: 1.2;
  letter-spacing: .03em;
  color: var(--btn-text);
  text-shadow: 0 .06em 0 var(--btn-text-shadow);
  background: var(--btn-rim);
  cursor: var(--cur-hand, pointer);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter .12s, transform .06s;
}
.btn::before, .btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.btn::before { inset: 1px; background: var(--btn-face); }
.btn::after { content: none; }

.btn:hover { filter: brightness(1.18); }
.btn:active { filter: brightness(.9); transform: translateY(.06em); }
.btn:focus-visible { outline: .12em solid var(--ink); outline-offset: .2em; }
.btn:disabled, .btn.is-disabled {
  cursor: var(--cur-arrow, default);
  filter: var(--btn-off-filter);
  opacity: var(--btn-off-opacity);
  transform: none;
}

/* THE HEXAGON (.btn--special): the rim clipped to a pointed hexagon, the face the same hexagon
   under a sheen with a brass sparkle at each end (--btn-orn), and a one-pixel hollow hexagon inset by
   --btn-ring that turns at the chamfer angle and fades out where the ornament begins. */
.btn--special {
  --hex: polygon(0 50%, var(--btn-point) 0, calc(100% - var(--btn-point)) 0, 100% 50%, calc(100% - var(--btn-point)) 100%, var(--btn-point) 100%);
  padding-inline: var(--btn-pad-x);
  clip-path: var(--hex);
  filter: drop-shadow(0 .1em .1em rgba(var(--shadow-ink), .22));
}
.btn--special::before {
  inset: var(--btn-rim-w);
  clip-path: var(--hex);
  background: var(--btn-orn), var(--btn-sheen), linear-gradient(var(--btn-face), var(--btn-face));
}
.btn--special::after {
  content: "";
  inset: var(--btn-ring);
  clip-path: polygon(evenodd,
    0 50%, var(--btn-point) 0, calc(100% - var(--btn-point)) 0, 100% 50%, calc(100% - var(--btn-point)) 100%, var(--btn-point) 100%, 0 50%,
    1px 50%, calc(var(--btn-point) + 1px) 1px, calc(100% - var(--btn-point) - 1px) 1px, calc(100% - 1px) 50%, calc(100% - var(--btn-point) - 1px) calc(100% - 1px), calc(var(--btn-point) + 1px) calc(100% - 1px), 1px 50%);
  background: var(--engrave-light);
  -webkit-mask: linear-gradient(to right, transparent calc(var(--btn-line-fade) - 1.2em), #000 var(--btn-line-fade), #000 calc(100% - var(--btn-line-fade)), transparent calc(100% - var(--btn-line-fade) + 1.2em));
  mask: linear-gradient(to right, transparent calc(var(--btn-line-fade) - 1.2em), #000 var(--btn-line-fade), #000 calc(100% - var(--btn-line-fade)), transparent calc(100% - var(--btn-line-fade) + 1.2em));
}
.btn--special:hover { filter: drop-shadow(0 .1em .1em rgba(var(--shadow-ink), .22)) brightness(1.07); }
.btn--special:active { filter: brightness(.94); }
.btn--special:disabled, .btn--special.is-disabled { filter: var(--btn-off-filter); }

/* sizes: font-size only, relative to the panel the button sits in - .8 / 1 / 1.33 / 1.87 of
   whatever --win-size is, so a button never carries a pixel figure of its own */
.btn--sm { font-size: var(--fs-small); }
.btn--md { font-size: 1em; }
.btn--lg { font-size: 1.33em; }
.btn--block { display: grid; width: 100%; }
/* THE WIDE PRIMARY: a navy plate in one thin brass line (owner, 2026-10-09), the astrolabe ornament
   at each end, pushed a fifth out past the edge and cut off there (the plate clips). ::before is the
   left one, ::after the same picture mirrored. Width is the container's: a wider menu, a wider
   plate. A coloured or special block is the plain square or the hexagon, full width. */
.btn--block:not(.btn--cream, .btn--rose, .btn--sage, .btn--special) {
  overflow: hidden;
  background: var(--plate-navy);
  box-shadow: inset 0 0 0 1px var(--btn-plate-line);
}
.btn--block:not(.btn--cream, .btn--rose, .btn--sage, .btn--special)::before,
.btn--block:not(.btn--cream, .btn--rose, .btn--sage, .btn--special)::after {
  content: ""; inset: 0 auto; height: 100%; aspect-ratio: 59 / 60;
  background: var(--btn-plate-orn) center / 100% 100% no-repeat;
}
.btn--block:not(.btn--cream, .btn--rose, .btn--sage, .btn--special)::before { left: 0; translate: -20% 0; }
.btn--block:not(.btn--cream, .btn--rose, .btn--sage, .btn--special)::after { right: 0; translate: 20% 0; transform: scaleX(-1); }
/* The same plate for a verb that destroys or drops something (menu.ts `danger`: Throw away,
   Release, Delete, Kick): the brass line and ornaments stay, the face is the destroy red. */
.btn--block.btn--danger { background: var(--btn-bad-face); --btn-text: var(--btn-bad-text); }

/* colour variants: only the face tokens change. --cream is the secondary (a muted line on a
   darker face), --rose / --danger the one that destroys (a red face), --sage the one that agrees. */
.btn--cream {
  --btn-face: var(--btn2-face);
  --btn-rim: var(--btn2-rim);
  --btn-text: var(--btn2-text);
}
.btn--rose, .btn--danger {
  --btn-face: var(--btn-bad-face);
  --btn-rim: var(--btn-bad-rim);
  --btn-text: var(--btn-bad-text);
}
.btn--sage {
  --btn-face: var(--btn-ok-face);
  --btn-rim: var(--btn-ok-rim);
  --btn-text: var(--btn-ok-text);
}

/* ---------------------------------------------------------------------
   Chrome glyphs: glyph() in gui/h.ts, a painting as img.ic.g, else an inline svg.ic (fill currentColor).
   --------------------------------------------------------------------- */
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.15em; }

/* A star that is a PICTURE and not a sprite. data/art/ui/star.svg and its
   three ranked cousins (star-empty, star-luxury, star-radiant) are whole files
   rather than inline glyph svgs, so they arrive as an <img> and cannot take
   .ic's currentColor fill. It sizes off the LINE it sits in, which is the whole
   of why a rating tier differs by font-size alone and never by a second
   drawing. A rating that is a count rather than a row of stars uses
   glyph("star") in a .chip instead: this is for the drawn ones. */
.star { width: 1em; height: 1em; flex: none; vertical-align: -.12em; }
/* Currency pictures are paintings, never glyphs: coin-gold, coin-lumi (gui/h.ts icon()).
   THE ORDER IS FIXED: the number first, then the coin. A price is a quantity and
   the coin is the unit it is quoted in, and a price column that opened every row
   with the same picture could not be scanned down. `chip()` in gui/c/layout.ts writes
   the pair. The exception is a coin used as a LABEL rather than a unit - the disc
   purse, a band's leading mark, the lead inside a Gold input - where the
   picture names the thing and no figure follows it. */
img.coin { width: 1.25em; height: 1.25em; object-fit: contain; flex: none; vertical-align: -.3em; }

/* ---------------------------------------------------------------------
   Item picture: one icon, one picture of its own (data/art/icons/<name>.png).
   The client writes the picture's URL INLINE (shared/icons.ts iconStyle),
   because the URL is content-hashed and a stylesheet may not assume a
   filename, and the picture fills the box (background-size 100%). THE CELL IS
   THE EM: the host says how big the picture should be with --ico-box, that
   becomes this element's font-size, and the box is 1em. So one icon fits a
   3.33em bag tile and a .7em party row with no second drawing and no per-host
   magic number, and it keeps working when a size modifier changes the host's
   font-size.

   It was `zoom: calc(var(--ico-box, 32px) / 32px)` once, over a shared sheet
   positioned in px. Dividing a length by a length is CSS Values 4 arithmetic
   only Blink implements: Gecko drops the whole declaration, so every icon in
   the game stood at its raw 32px in Firefox. The em carries the ratio instead.
   --------------------------------------------------------------------- */
.ico {
  display: block; flex: none;
  font-size: var(--ico-box, 32px);
  width: 1em; height: 1em;
  background-repeat: no-repeat;
  image-rendering: pixelated;         /* the picture is 2x and is drawn at an exact half */
}
/* the hosts, each saying how much room the picture gets. Inside a tile it is
   the same .3em inset the <img> takes, centred the way the lock glyph is. */
.tile > .ico { position: absolute; inset: 0; margin: auto; --ico-box: calc(var(--tile) - .6em); }
.tile.is-dim > .ico { filter: grayscale(1); opacity: .45; }
.portrait > .ico { position: absolute; inset: 0; margin: auto; border-radius: 50%; --ico-box: 4.6em; }
.item-row > .ico { --ico-box: 2.4em; }

/* The talent node's picture: the icon cell at 32px on the 12px window it was drawn for, in em so
   it grows with --win-size like every other picture in a window. 3.333em of the .8em .skill--sm
   node is that 32px. The box is said again because .skill__pic below sizes an <img> at 4.3em,
   and on an .ico that em is --ico-box itself: the talent icons stood four times too big. */
.skill__pic.ico { --ico-box: 3.333em; width: 1em; height: 1em; }

/* ---------------------------------------------------------------------
   Engraving. Every mask ornament is a black shape used
   as a mask: two pseudo layers share the mask, the light one (::before)
   sits --engrave-lift below the dark one (::after), so the tokens paint
   every engraving and retuning them retunes all of it.
   --------------------------------------------------------------------- */

/* ---------------------------------------------------------------------
   Window (Midnight Astrolabe). .win paints the whole ground (--win-bg: orbit
   arcs, star field, navy wash, the midnight panel); the head, body and foot
   lay their own thin paint over it, the body none at all (--win-body).
   The rim is outside the box (--win-ring: a thin brass rim, the deep drop).
   .win::after is the top layer: the engraved inner plane, a brass hairline
   5px inside the rim, and on the window layer (.wins) the brass corner
   scale, its crest on the top-left and bottom-right corner points.
   .win::before is the soft shadow strip the head casts down onto the body.
   A window's title sits on its cartouche (.win__title::before); the head's
   foot has no dividing line (owner, 2026-10-08).
   Every one of them is paint: no box here moves for the theme. */
.win {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 14em;
  padding: 3px;                        /* the outer band, under the panel */
  background: var(--win-arc), var(--win-bg);
  color: var(--ink);
  border-radius: 0;
  box-shadow: var(--win-ring);
  line-height: 1.3;
  font-size: var(--win-size);          /* the one window size; everything inside is in em */
}
.win::after {                          /* the engraved inner plane, 5px inside the rim */
  content: ""; position: absolute; inset: 5px;
  box-shadow: inset 0 0 0 1px var(--win-plane);
  pointer-events: none; z-index: 4;
}
/* A window on the window layer wears the brass corner scale in its top-left and bottom-right corners
   (owner, 2026-10-09: two corners). The layer's box is the window's own (inset 0), so each quarter
   is laid at 0,0 of its corner: the crest on the corner point, the rest of it cut away by the
   frame. One layer holds the corners and the plane as four 1px lines. Not on a card built from the
   window parts (the roster's plinths). */
.wins > .win::after, .shell__signin::after, .shell__section::after {
  --plane: 5px;
  inset: 0; box-shadow: none;
  background:
    var(--art-corner-tl) left top / var(--corner-size) var(--corner-size) no-repeat,
    var(--art-corner-br) right bottom / var(--corner-size) var(--corner-size) no-repeat,
    linear-gradient(var(--win-plane), var(--win-plane)) left var(--plane) top var(--plane) / calc(100% - 2 * var(--plane)) 1px no-repeat,
    linear-gradient(var(--win-plane), var(--win-plane)) left var(--plane) bottom var(--plane) / calc(100% - 2 * var(--plane)) 1px no-repeat,
    linear-gradient(var(--win-plane), var(--win-plane)) left var(--plane) top var(--plane) / 1px calc(100% - 2 * var(--plane)) no-repeat,
    linear-gradient(var(--win-plane), var(--win-plane)) right var(--plane) top var(--plane) / 1px calc(100% - 2 * var(--plane)) no-repeat;
}
/* Room for the bottom-right crest: the foot's last control stops short of it; the scale runs on under it. */
.wins > .win > .win__foot, .shell__section > .win__foot { padding-right: 2.9em; }
.win::before {                         /* the head's shadow cast down on the body */
  content: ""; position: absolute; left: 3px; right: 3px; top: calc(3px + 2.5em);
  height: .45em; z-index: 3; pointer-events: none;
  background: linear-gradient(rgba(var(--shadow-ink), .26), rgba(var(--shadow-ink), .06) 55%, rgba(var(--shadow-ink), 0));
}
.win__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: .45em;
  height: 2.5em;                       /* owner, 2026-10-10: was 3em, the title sat lost in it */
  padding: 0 1.2em;                    /* the same 1.2em rhythm as the inner line */
  background: var(--win-head-bg);
  background-origin: border-box;
  overflow: hidden;
  flex: none;
}
.win__head::before {                   /* highlight hairline along the head's top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--win-head-lit);
}
.win__head > * { position: relative; z-index: 1; }
.win__head > .ic { width: 1.5em; height: 1.5em; }
/* the title sits over the head band; a dark halo behind the letters keeps it readable */
/* A window's name is in the UI's sans (owner, 2026-10-09), bold. */
.win__title { font-family: var(--face-ui); font-weight: 700; font-size: var(--fs-title); letter-spacing: .03em; white-space: nowrap; color: var(--ink-strong); text-shadow: var(--win-title-shadow); }
/* The title plate (owner, 2026-10-09): no frame, only the plate's navy, the head's full height,
   from the window's edge to --title-run past the last letter, fading out there; no ornament
   (owner, 2026-10-09). Lengths in --win-size, because the title's own em is the bigger title
   rung. Behind the letters: the title is a stacking context (.win__head > *), so -1 is under its
   text and over the head. */
.wins > .win > .win__head > .win__title::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(-1.2 * var(--win-size) - 3px); right: calc(-1 * var(--title-run) * var(--win-size));
  top: 50%; height: calc(2.5 * var(--win-size)); translate: 0 -50%;
  background: linear-gradient(to right, var(--title-plate) calc(100% - 2 * var(--win-size)), transparent);
}
/* With a head glyph before it, the plate starts under the glyph's gap too. */
.wins > .win > .win__head > .ic + .win__title::before { left: calc(-3.15 * var(--win-size) - 3px); }
.win__close {
  display: grid; place-items: center; margin-left: auto;
  width: 2.4em; height: 2.4em; border: 0;
  background: transparent; color: var(--ink); cursor: var(--cur-hand, pointer); padding: 0;
  opacity: .9;
}
/* The close star is pale starlight (ui-close): hover lights it with a sky glow, a press sinks it. */
.win__close .ic { width: 1.75em; height: 1.75em; transition: filter .15s, transform .1s; }
.win__close:hover { opacity: 1; }
.win__close:hover .ic, .win__close:focus-visible .ic { filter: brightness(1.15) drop-shadow(0 0 .25em rgba(var(--sky-rgb), .75)); }
.win__close:active .ic { transform: scale(.9); filter: brightness(.95) drop-shadow(0 0 .15em rgba(var(--sky-rgb), .5)); }

.win__body { position: relative; flex: 1; padding: .9em 1.2em 1.1em; background: var(--win-body); }
.win__body:not(:last-child) { padding-bottom: .5em; }
.win__body > * { position: relative; z-index: 1; }
.win__foot { display: flex; align-items: center; gap: .6em; padding: 0 1.2em 1.1em; flex: none; background: var(--win-body); }
/* A HEADLESS WINDOW: the box with no title bar and no close, for a window
   that is a whole view and has nowhere to be closed to (the sign-in screen).
   The head's cast shadow - .win::before, a bar drawn 2.5em down - is switched
   off, because there is no head above it to cast one. That frees ::before on a headless window for whatever the view
   wants to paint there. */
.win--headless::before { content: none; }

/* The cover a modal sits on. A question the player must answer takes the whole
   screen away from the world until it is answered. It is a VIGNETTE, not a
   wash: clear through the middle third, dark at the corners, so the window
   still stands out of the world without the world being painted over. The ink
   is neutral and near-black - the old warm --shadow-ink read as red over a
   green map, and a modal is not an emotion. .scrim--loss is the one that is.
   It centres the one window it holds. Its layer is the top of the stack:
   windows 20, dialogs 80, floating cards 90, this 100, the menus above it 120.
   A stranded hover card must never float over a modal. */
.scrim {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--veil);
}

/* ---------------------------------------------------------------------
   Tabs: a navy well in a brass hairline; the selected tab is lit from its
   foot (brass light, a starlight core) with brass ink and the brass
   underline (::after). Hairlines between unselected tabs.
   --------------------------------------------------------------------- */
.tabs {
  --tabs-radius: 0;                    /* square: no rounding anywhere in a tab strip (owner, 2026-10-09) */
  display: inline-flex; flex: none;
  padding: 0;
  background: var(--field-face);
  border: 1px solid var(--field-border);
  border-radius: var(--tabs-radius);
}
.tabs__tab {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-width: 5.6em; height: 2.3em; padding: 0 1.4em;
  border: 0; border-radius: var(--tabs-radius); background-color: transparent;
  font: inherit; color: var(--ink); cursor: var(--cur-hand, pointer); white-space: nowrap;
}
.tabs__tab .ic { width: 1.35em; height: 1.35em; position: relative; z-index: 1; }
.tabs__tab + .tabs__tab:not(.is-on)::before { content: ""; position: absolute; left: 0; top: 28%; height: 44%; width: 1px; background: var(--hairline); }
.tabs__tab.is-on + .tabs__tab::before { display: none; }
.tabs__tab:hover:not(.is-on) { background-color: rgba(var(--ink-wash), .05); }
.tabs__tab.is-on {
  background: var(--tab-on-bg);
  color: var(--tab-on-ink);
  text-shadow: 0 .06em .2em rgba(var(--shadow-ink), .8);
  box-shadow: var(--tab-on-ring);
  padding: 0 1.7em;
  overflow: hidden;
}
/* The underline, and on it a small orbit: a brass ring round a star-white point. */
.tabs__tab.is-on::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: .5em; pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, var(--ink-strong) 0 .08em, var(--navy-1) .11em .2em, var(--brass-hi) .22em .28em, transparent .32em),
    var(--tab-line) left bottom / 100% 2px no-repeat;
  filter: drop-shadow(0 0 .25em rgba(var(--brass-hi-rgb), .55));
}
/* A page tab lit as a drag's drop target. The bag and the warehouse are three
   pages deep and only one page of cells is on screen, so a stack let go on a
   tab is how it crosses - and the tab has to say so while the item is still in
   the air. Read as .drop.is-over reads, the dashed brass edge over the same starlight
   wash, so one drawing means "let go here" wherever it turns up. The dash is
   an outline pulled inside the tab, because the strip owns the border and a
   tab has none of its own to colour. */
.tabs__tab.is-drop {
  background-color: var(--drop-on-bg);
  outline: 1px dashed var(--drop-on-rim);
  outline-offset: -.15em;
}
.tabs--text .tabs__tab { min-width: 7em; padding: 0 2.2em; }
.tabs--block { display: flex; }
.tabs--block .tabs__tab { flex: 1; }
/* A window's own tab strip stands centred over the pane it switches. A full-width block strip is
   already centred by filling the row. */
.win__body > .tabs:not(.tabs--block) { display: flex; width: fit-content; margin-inline: auto; }
.tabs--sm { font-size: var(--fs-small); }
/* A tab that is off is still worth reading: the quality ladder greyed while
   auto-sell is switched off says what it is set to, and a barred door in the
   instance list says the door exists. Faded, and the pointer does not promise
   anything. Both spellings, because one of these is a real <button> and the
   other is a div that says so with aria. */
.tabs__tab:disabled, .tabs__tab[aria-disabled="true"] { opacity: .45; cursor: var(--cur-arrow, default); }
.tabs__tab:disabled:hover, .tabs__tab[aria-disabled="true"]:hover { background-color: transparent; }

/* ---------------------------------------------------------------------
   Select: a custom dropdown, never a native <select>. The trigger is a
   real <button> (glyph, centred label, chevron-down); the popover list
   (.select__list, role listbox) opens under it, styled like the kv rows,
   with a check on the current option. .is-open on the root shows the
   list; the small script at the end of the page does click, arrow keys,
   Enter and Escape. --grey is the info variant.
   --------------------------------------------------------------------- */
.select { position: relative; display: inline-block; flex: none; min-width: 12em; color: var(--ink); }
.select__trigger {
  display: flex; align-items: center; gap: .3em; width: 100%;
  height: 2.2em; padding: 0 .5em;
  background: var(--field-face); color: inherit;
  border: 1px solid var(--hairline); border-radius: .35em;
  font: inherit; cursor: var(--cur-hand, pointer); text-align: center;
}
.select__trigger > .ic { width: 1.25em; height: 1.25em; }
.select__label { flex: 1; min-width: 0; padding: 0 .3em; text-align: left; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__trigger > .select__chev { width: .9em; height: .9em; }
.select__trigger:focus-visible, .select.is-open .select__trigger { border-color: var(--brass); outline: 0; }
.select__list {
  position: absolute; left: 0; right: 0; top: calc(100% + .25em); z-index: 20;
  display: none; margin: 0; padding: .2em .35em; list-style: none;
  background: var(--card-bg); color: var(--ink);
  border-radius: .4em; box-shadow: var(--card-ring);
}
.select.is-open .select__list { display: block; }
.select__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: .5em .35em; border-bottom: 1px solid var(--hairline); cursor: var(--cur-hand, pointer); white-space: nowrap;
}
.select__opt:last-child { border-bottom: 0; }
.select__opt .ic { width: 1em; height: 1em; visibility: hidden; }
.select__opt.is-on .ic { visibility: visible; }
.select__opt:hover, .select__opt.is-active { background: var(--menu-hover); border-radius: .3em; }
.select--block { display: block; }
.select--sm { font-size: var(--fs-small); }

/* ---------------------------------------------------------------------
   Band: a light grey information strip. Sparkle, label, green number,
   an optional centre item, an action at the right.
   --------------------------------------------------------------------- */
.band {
  display: flex; align-items: center; gap: .45em;
  min-height: 2.3em; padding: .3em .6em .3em .8em;
  background: var(--band-bg); color: var(--ink-mute); border-radius: .3em;
}
.band > .ic { width: 1.15em; height: 1.15em; color: var(--ink); }
.band__label { color: var(--ink); }
.band__num { color: var(--green); }
.band__num--orange { color: var(--orange); }
.band__mid { display: inline-flex; align-items: center; gap: .4em; margin: 0 auto; color: var(--ink); }
.band__mid img { width: 1.6em; height: 1.6em; }
.band__action { display: inline-flex; align-items: center; gap: .5em; margin-left: auto; }

/* ---------------------------------------------------------------------
   Key/value list: label muted at the left, value dark at the right,
   hairline between rows.
   --------------------------------------------------------------------- */
.kv { margin: 0; padding: 0; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding: .5em .25em; border-bottom: 1px solid var(--hairline); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { margin: 0; color: var(--ink-mute); }
.kv__val { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; } /* a value that wraps stays on the right edge */
.kv__val--hot { color: var(--orange); }
.kv__val--good { color: var(--green); }
/* THE GEAR STAT BLOCK reads in blue: the figures on an equipment card are what the piece grants,
   and giving them a hue of their own separates them from the label beside them and from the plain
   ink every other .kv in the game prints. items.ts statBlock marks the list.

   The orange is restated at this specificity ON PURPOSE: this selector outranks the bare
   `.kv__val--hot` above, so without the second line the blue would swallow the one signal the
   block carries about WHERE a number came from - a line drawn from an option band, which is what
   a recast redraws. Blue is the base colour here, not the only one.

   The green socket addition needs no such line. It is a nested span of a different class, so the
   blue never matches it, and its own rule beats the colour it would otherwise inherit. */
.kv[data-gear-stats] .kv__val { color: var(--blue); }
.kv[data-gear-stats] .kv__val--hot { color: var(--orange); }
/* A card's stat list (items.ts statBlock, the effect rows): the label at the left, the figure at the
   right in tabular digits so a column of numbers lines up, and no hairline per row - the card's
   sections carry the only lines. A socket addition stands beside its total ("191 +24"). */
.kv--stat > div { gap: .8em; padding: .08em 0; border-bottom: 0; }
.kv--stat dd { white-space: nowrap; }
.kv__bonus { margin-left: .3em; }
/* The comparison arrow at the end of a stat row (items.ts cmpArrow): a hovered piece against the one
   worn in its slot, up green where it is higher, down red where it is lower, nothing where equal. */
.kv__cmp { display: inline-flex; margin-left: .25em; vertical-align: -.12em; }
.kv__cmp-ic { width: .95em; height: .95em; stroke-width: 3; }
.kv[data-gear-stats] .kv__cmp--up { color: var(--green); }
.kv[data-gear-stats] .kv__cmp--down { color: var(--error); }
/* A kv value that DOES something: the "go and stand here" line in the quest panel. Underlined
   rather than coloured, because colour in this family already means pass or refuse and a third
   meaning on the same channel would be read as one of those two. Disabled when the place is on
   another map - it still names the map, it just cannot walk you there. */
/* A kv value that names an NPC: the name (the walk), then a map pin with the errand in its ring. */
.kv__npc { display: inline-flex; align-items: center; gap: .4em; }
.kv__npc { --pin-size: 1.75em; }
.kv__npc.is-dim .pin { opacity: .45; }

/* ---------------------------------------------------------------------
   Pin: gui/h.ts pin(), the forged map pin with a hole in its ring. The picture is
   data/art/ui/pin.png; the hole is measured on it in data/art/ui/pin.json
   and the builder writes the hole box from that as inline layout, so the
   sheet sizes the pin and nothing else. 1.25em tall by default, a text-line
   ornament that scales with the words beside it; a row that puts a picture in
   the ring asks for more, because the hole is half the pin's width and a glyph
   inside it needs 8 px or so to read.
   --------------------------------------------------------------------- */
.pin { position: relative; display: inline-block; flex: none; height: var(--pin-size, 1.25em); vertical-align: -.25em; line-height: 0; }
.pin__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pin__hole { position: absolute; display: grid; place-items: center; }
.pin__hole > .ic, .pin__hole > img { width: 100%; height: 100%; display: block; fill: currentColor; color: var(--ink); object-fit: contain; }

/* ---------------------------------------------------------------------
   Stat row: a grey pill. Glyph, short key, value columns, and the
   stepper: minus, plus, and the double-chevron disc that spends every
   remaining point on this stat. .stats is the stack; .stats__head its
   column caption row (its last span is as wide as the stepper).
   --------------------------------------------------------------------- */
.stat, .stats__head { display: grid; grid-template-columns: 1.4em 3.4em repeat(var(--stat-cols, 3), 1fr) auto; align-items: center; gap: .5em; }
.stat {
  min-height: 2.9em; padding: .3em .35em .3em .8em;
  background: var(--band-bg); border-radius: .7em; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.stat > .ic { width: 1.25em; height: 1.25em; color: var(--ink); }
.stat__key { color: var(--ink); letter-spacing: .04em; }
/* An attribute's name (gui/c/marks.ts statName, P8): the painted stat icon and its short word. */
.stat__name { display: inline-flex; align-items: center; gap: .35em; min-width: 0; white-space: nowrap; }
.stat__name > img.g { flex: none; width: 1.3em; height: 1.3em; object-fit: contain; }
.stat__name > .stat__key { font-size: var(--fs-small); font-weight: 700; }
.stat__val { text-align: center; }
.stat__val--dark { color: var(--ink); }
/* What a stepper has added but not yet committed, in the gain colour and beside the
   figure rather than in place of it: the base number stays where the eye left it and
   the green "+4" is the part that is still yours to take back. A single recoloured
   total said "this is different" without saying which way or by how much. */
.stat__val .stat__add { margin-left: .3em; color: var(--green); font-style: normal; }
.stat__stepper { display: inline-flex; gap: .45em; }
/* THE NUMBER INPUT (gui/c/input.ts numField): [−] [the typed number] [+], one row. */
.numf { align-items: center; }
.numf > .field { width: 5.5em; }
.numf > .field input { text-align: center; }
.numf--block { display: flex; width: 100%; }
.numf--block > .field { flex: 1; width: auto; }
.stats { display: grid; gap: .5em; }
.stats__head { padding: 0 .35em 0 .8em; color: var(--ink-mute); font-size: var(--fs-small); line-height: 1.1; text-align: center; }
.stats__head span { grid-column: span 1; }
.stats__head span:first-child { grid-column: 1 / 3; }

/* ---------------------------------------------------------------------
   Round icon button: a nearly flat cream disc, one faint ring, the glyph
   in pale tan; the stepper's minus, plus and double chevron, and the
   refresh action. --white is the plain disc with the dark glyph, --sq is
   the rounded square used at a skill node's side.
   --------------------------------------------------------------------- */
.ibtn {
  position: relative; flex: none;
  display: inline-grid; place-items: center;
  width: 2.1em; height: 2.1em; padding: 0;
  border: 1px solid var(--cream-rim); border-radius: 50%;
  background: var(--cream); color: var(--cream-ink);
  cursor: var(--cur-hand, pointer); font: inherit;
}
.ibtn::after { content: ""; position: absolute; inset: .16em; border: 1px solid var(--cream-rim); border-radius: inherit; opacity: .3; pointer-events: none; }
.ibtn .ic { width: 1em; height: 1em; }
.ibtn:hover { color: var(--ink-mute); filter: brightness(1.02); }
.ibtn:active { transform: translateY(.06em); }
.ibtn:disabled, .ibtn.is-disabled { opacity: .45; cursor: var(--cur-arrow, default); }
.ibtn--white { background: var(--field-face); border-color: var(--field-border); color: var(--ink); }
.ibtn--white::after { content: none; }
.ibtn--sq { border-radius: .3em; width: 1.8em; height: 1.8em; }
.ibtn--sm { font-size: .8em; }
/* The "?" (c/layout.ts helpTip): a surface's words live on its card, a title over short paragraphs. */
.card--help { display: grid; gap: .4em; }
.card--help > .card__title { font-size: var(--fs-lg); }
.card--help > .card__body { margin: 0; }

/* ---------------------------------------------------------------------
   Tile: an item slot. One neutral face for every item; the picture sits
   inside, a stack count at the bottom-right. Rarity is optional and
   only a thin coloured rim (--purple, --blue, --gold, --green), nothing
   louder. --empty is the bare slot with a faint inner line, --locked
   adds the lock glyph, .is-dim greys the picture (an unequipped preview).
   The server speaks seven quality bands and this system draws five rims: a white
   item wears no rim at all (it is the common case and a rim on everything is a
   rim on nothing) and yellow rides with gold. That is the ruling for the whole
   client, made once here. Prism (above purple, task #215) earned the fifth by
   being the one that moves: a nebula turning in its well, stars breathing on it,
   a starlight rim (00-tokens.css --prism-*). Any further colour still has to
   earn its place against these, not be added because a table has more rows.
   --------------------------------------------------------------------- */
.tile {
  --tile-rim: var(--tile-rim-base);
  --tile-ring: transparent;            /* the OUTER ring is the state channel, see below */
  position: relative;
  width: var(--tile); height: var(--tile); flex: none;
  background: var(--tile-bg);
  box-shadow: inset 0 0 0 max(1px, .1em) var(--tile-rim), 0 0 0 max(1px, .14em) var(--tile-ring), 0 0 0 1px var(--hairline), 0 .07em .14em rgba(var(--shadow-ink), .3), var(--tile-vignette);
  color: var(--ink);
  overflow: hidden;
}
/* The quality is the tile's whole ground, not its rim (00-tokens.css --q-bg-*): flat, no vignette. */
.tile:is(.tile--prism, .tile--purple, .tile--blue, .tile--gold, .tile--yellow, .tile--green) { --tile-vignette: 0 0 transparent; }
.tile--purple { --tile-bg: var(--q-bg-purple); }
.tile--blue { --tile-bg: var(--q-bg-blue); }
.tile--gold { --tile-bg: var(--q-bg-gold); }
.tile--yellow { --tile-bg: var(--q-bg-yellow); }
.tile--green { --tile-bg: var(--q-bg-green); }
/* Prism: the starlight rim in place of the hairline, and two pseudo layers under the picture. The
   tile is its own stacking context (isolation) so the layers sit at -1 above its ground and under
   the img and every badge (z 2), whatever the page around it stacks. Compositor work only: the
   smoke turns (transform), the stars breathe (opacity). Frozen in the mobile bag grid and under
   reduced motion (below); cards, chat, broadcasts and reward views keep them moving. */
.tile--prism {
  --tile-bg: var(--q-bg-prism);
  isolation: isolate;
  box-shadow: inset 0 0 0 max(1px, .1em) var(--tile-rim), 0 0 0 max(1px, .14em) var(--tile-ring), 0 0 0 1px var(--prism-rim), 0 .07em .14em rgba(var(--shadow-ink), .3);
}
.tile--prism::before, .tile--prism::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.tile--prism::before { inset: -60%; background: var(--prism-smoke); animation: prism-swirl 18s linear infinite; }
.tile--prism::after { inset: 0; background: var(--prism-stars); animation: prism-twinkle 3.6s ease-in-out infinite; }
.tile--lg.tile--prism::before { animation-duration: 24s; }
@keyframes prism-swirl { to { transform: rotate(360deg); } }
@keyframes prism-twinkle { 50% { opacity: .25; } }
html.m-mobile .bagw__grid .tile--prism::before, html.m-mobile .bagw__grid .tile--prism::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .tile--prism::before, .tile--prism::after { animation: none; } }
.tile > img { position: absolute; inset: .3em; width: calc(100% - .6em); height: calc(100% - .6em); object-fit: contain; }
.tile.is-dim > img { filter: grayscale(1); opacity: .45; }
.tile__count { position: absolute; z-index: 2; right: .2em; bottom: .2em; font-size: max(var(--fs-badge), .78em); line-height: 1.3; padding: 0 .35em; border-radius: .3em; background: var(--count-bg); color: var(--ink); }
/* The +N enhance (top left) and the worn E (bottom left) ride OVER the picture: the .ico is
   positioned, so an unpositioned label would be drawn under it. */
.tile > :is(.tile__en, .tile__eq) { position: absolute; z-index: 2; left: .2em; font-size: max(var(--fs-badge), .78em); font-weight: 700; line-height: 1.1;
  color: var(--brass-hi); text-shadow: 0 .06em 0 var(--btn-text-shadow), 0 0 .25em rgba(var(--shadow-ink), .9); pointer-events: none; }
.tile > .tile__en { top: .15em; }
.tile > .tile__eq { bottom: .15em; color: var(--ink-strong); }
.tile--empty, .tile--locked {
  background: var(--tile-empty-bg);
  box-shadow: inset 0 0 0 1px var(--tile-rim-base), 0 0 0 1px var(--hairline);
}
/* A tile is a square well and its rim: no painted frame, no engraving (owner, 2026-10-09). */
.tile:hover:not(.tile--empty, .tile--locked, .tile--bare) { box-shadow: inset 0 0 0 max(1px, .1em) var(--tile-rim), 0 0 0 max(1px, .14em) var(--tile-ring), var(--tile-hover), var(--tile-vignette); }
.tile--locked > .ic { position: absolute; inset: 0; margin: auto; width: 1.5em; height: 1.5em; color: rgba(var(--ink-wash), .22); }
/* A tile that is locked but NOT empty: a pet standing in a place the account is not entitled
   to, an item on a shut pack. The art stays - the thing is still owned, and hiding it would
   read as having lost it - and the padlock becomes a corner badge over it rather than the
   whole face. Pair with .is-dim for the grey. */
.tile--barred { --tile-rim: rgba(var(--ink-wash), .25); cursor: var(--cur-attack-far, not-allowed); }
.tile--barred > .ic { position: absolute; z-index: 2; inset: auto; right: .1em; top: .1em; width: .95em; height: .95em;
  color: var(--paper); background: rgba(var(--ink-wash), .72); border-radius: .3em; padding: .08em; }
/* Grey the picture, never the count or the badge: the reading has to stay legible. */
.tile--barred > :not(.ic):not(.tile__count) { filter: grayscale(1); opacity: .5; }
/* An item its owner LOCKED (note 221; gui/c/slots.ts `guard`): a brass padlock badge in the top
   right, the art untouched - the thing is fully there to look at, only refused to every use, sale
   and throw. On a shut pack the guard keeps the corner and the pack's own padlock moves left. */
.tile > :is(.tile__guard, .tile__mark, .tile__pick) {
  position: absolute; z-index: 2; top: .1em; width: .95em; height: .95em; padding: .08em; box-sizing: border-box;
  display: grid; place-items: center; border-radius: .3em;
}
.tile > :is(.tile__guard, .tile__mark, .tile__pick) > .ic { width: 100%; height: 100%; }
.tile > .tile__guard { right: .1em; background: rgba(var(--shadow-ink), .78); color: var(--brass-hi); box-shadow: 0 0 0 1px rgba(var(--brass-rgb), .5); }
.tile--barred.tile--guard > .ic:not(.tile__ok) { right: auto; left: .1em; }
/* The Lock mode is on and this item is not locked yet: an EMPTY brass box where the padlock will
   appear, the same size and corner, so a press reads as "fill this box". Marked for "Lock now": the
   padlock in the box on a pale wash - never the dark badge a real lock wears. */
.tile > .tile__mark { right: .1em; border: 1px solid var(--brass-hi); background: rgba(var(--shadow-ink), .35); }
.tile > .tile__mark:not(.is-on) > .ic { visibility: hidden; }
.tile > .tile__mark.is-on { background: var(--brass-pale); color: var(--navy-1); }
/* Picked in a selection (the bag's Throw mode): a small check in the top-left corner, no ring. */
.tile > .tile__pick { left: .1em; background: var(--brass-hi); color: var(--navy-1); }
/* The item card's line under a locked item: the padlock before the words. */
/* The owner's padlock, top right of an item card's head; its line is the hover (tip.ts). */
.card__lock { margin-left: auto; align-self: flex-start; display: grid; place-items: center; padding: .1em; cursor: var(--cur-arrow, default); }
.card__lock > .ic { width: 1.1em; height: 1.1em; color: var(--brass-hi); }
.tile--sm { font-size: .75em; }
.tile--lg { font-size: 1.4em; }
/* A skill or talent icon: the picture alone, no face, no rim, no ring. The art is the whole tile. */
.tile--bare { background: none; box-shadow: none; border-radius: 0; }
.tile--bare > .ico { --ico-box: var(--tile); }
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 5), max-content); gap: .4em; }

/* An item with no icon of its own still has to be recognisable, and a shelf
   of costumes or an archetype list is mostly that. The fallback is the first
   letters of its name, centred on the bare face. It is a type size, not a
   layout, so a panel cannot supply it inline. */
.tile__text { position: absolute; inset: .3em; display: grid; place-items: center; font-size: max(var(--fs-badge), .8em); line-height: 1.15; text-align: center; color: var(--ink-mute); font-variant-numeric: tabular-nums; overflow: hidden; }

/* Cooldown. The sweep is a dark wedge that unwinds clockwise as the skill comes
   back, --cd being how much of the circle is still owed, in degrees; the digits
   sit on top of it. Both live on the tile so a hotbar cell needs no wrapper. */
.tile--cool::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; background: conic-gradient(transparent var(--cd, 0deg), rgba(var(--ink-wash), .55) 0); }

/* The ring OUTSIDE a tile is its state; the rim inside it is the item's rarity,
   and the two never fight for the same pixel. .is-on is armed or picked (a
   socket the smith is working, the card you chose); --opener is the move the
   fight opens with and --opener-soft the one that has drifted out of first
   place; --good and --bad are a helpful and a harmful effect, which is a
   direction rather than a quality and must not read as a green or purple item. */
.tile.is-on { --tile-ring: var(--tan); }
.tile--opener { --tile-ring: var(--tan); }
.tile--opener-soft { --tile-ring: rgba(var(--tan-rgb), .45); }
.tile--good { --tile-ring: var(--green); }
.tile--bad { --tile-ring: var(--error); }

/* What the pointer says a tile is: a locked one cannot be taken, a drag source
   one can be picked up. Neither is a layout property, so neither can be inline. */
.tile--locked { cursor: var(--cur-attack-far, not-allowed); }
[data-drag] { cursor: var(--cur-grab, grab); }
[data-drag]:active { cursor: var(--cur-grabbing, grabbing); }

/* ---------------------------------------------------------------------
   Skill node: the picture, the level pill, the name. Nothing else: no
   frame, no connectors, no stepper (skills level with skill books).
   A learned node's pill is tan; .is-off (not learned yet) greys the
   picture and keeps the grey pill. .skills is the grid the skill panel
   lists them in, --cols wide.
   --------------------------------------------------------------------- */
.skill { position: relative; display: grid; align-content: start; justify-items: center; gap: .3em; width: var(--node-w); color: var(--ink); text-align: center; }
.skill__pic { display: block; width: 4.3em; height: 4.3em; object-fit: cover; }
.skill__name { font-size: max(var(--fs-small), .85em); line-height: 1.15; color: var(--ink-mute); }
.skill--sm .skill__name { font-size: var(--fs-badge); }
.skill:not(.is-off) .pill { background: var(--tan); color: var(--tan-text); }
.skill--sm { font-size: .8em; }
.skill.is-off .skill__name { color: var(--ink-faint); }
.skill.is-off .skill__pic { filter: grayscale(1); opacity: .45; }
/* A node a point can go into right now: mark its add button in green. */
.skill.is-ready [data-add] { box-shadow: 0 0 0 .14em var(--green), 0 0 .5em color-mix(in srgb, var(--green) 65%, transparent); }
.skills { display: grid; grid-template-columns: repeat(var(--cols, 4), var(--node-w)); gap: .8em .4em; align-content: start; }
/* A small node takes its whole lane: --node-w is em of the node, so in the grid a small one is a
   fifth narrower than its column and its name wraps for no reason. */
.skills > .skill--sm { width: auto; }

/* ---------------------------------------------------------------------
   Chips, tags, pills.
   .chip        plain grey counter, a number and nothing else ("8/300")
   .chip--disc  the chip with a disc hanging off its left end: the disc
                (.chip__disc, or a round .ibtn) is larger than the chip
                and overlaps it, the glyph inside the disc, the number
                in the pill. A purse is this one, and it is the only place
                a coin stands in front of its figure.
   .tag         small tan tag ("NEW")
   .pill        grey level pill ("5/5")
   --------------------------------------------------------------------- */
.chip {
  position: relative;
  display: inline-flex; flex: none; align-items: center; gap: .4em;
  min-width: 5em; height: 1.9em; padding: 0 .8em;
  background: var(--grey-pill); color: var(--ink-mute); border-radius: .3em;
  font-variant-numeric: tabular-nums;
}
.chip > .ic { width: 1.15em; height: 1.15em; color: var(--ink); }
.chip > img { width: 1.5em; height: 1.5em; object-fit: contain; }
/* An item paid as a currency (an event token, barter goods): its icon cell in the coin's place. */
.chip > .ico { --ico-box: 1.5em; flex: none; }
.chip__num { flex: 1; text-align: center; }
.chip--bare { background: transparent; min-width: 0; padding: 0 .3em; }
.chip--disc { margin-left: 1.25em; padding-left: 1.5em; min-width: 6.4em; overflow: visible; }
.chip--disc > .ibtn, .chip__disc { position: absolute; left: -1.25em; top: 50%; transform: translateY(-50%); width: 2.5em; height: 2.5em; }
.chip__disc {
  display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--cream-rim); border-radius: 50%;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 .07em .14em rgba(var(--shadow-ink), .14);
}
.chip__disc::after { content: ""; position: absolute; inset: .16em; border: 1px solid var(--cream-rim); border-radius: inherit; opacity: .3; pointer-events: none; }
.chip__disc > .ic { width: 1.3em; height: 1.3em; }
.chip__disc > img { width: 1.9em; height: 1.9em; object-fit: contain; }
/* An item tile standing in for the coin (a barter counter's purse): the same 1.9em as the coin. */
.chip__disc > [data-token] { display: grid; place-items: center; }
.chip__disc > [data-token][hidden] { display: none; }
.chip__disc > [data-token] > .ico { --ico-box: 1.9em; }
.chip--disc > .ibtn .ic { width: 1.2em; height: 1.2em; }
.tag { display: inline-block; flex: none; font-size: var(--fs-badge); line-height: 1.55; padding: 0 .45em; border-radius: .3em; background: var(--tan); color: var(--tan-text); text-shadow: 0 .06em 0 rgba(var(--shadow-ink), .25); letter-spacing: .02em; }
/* The System Gift stamp, in green (user, 2026-09-23): a gift is good news about the copy, not a
   warning, and green is also what sets it apart from the tan "Equipped" beside it. The fill is
   the same green thinned, so the text keeps its contrast in both themes. */
.tag--green { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); text-shadow: none; }
.pill { display: inline-block; flex: none; min-width: 3.2em; text-align: center; font-size: var(--fs-badge); line-height: 1.5; padding: 0 .6em; border-radius: .35em; background: var(--grey-pill-2); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.pill--tan { background: var(--tan); color: var(--tan-text); }
.pill--ink { background: var(--ink); color: var(--paper); }
button.pill { appearance: none; border: 0; font-family: inherit; cursor: var(--cur-hand, pointer); }
button.pill:hover:not(:disabled) { filter: brightness(1.1); }
button.pill:disabled { opacity: .5; cursor: var(--cur-arrow, default); }
/* A state a player is waiting on, said loudly: the two answers to "has this side
   agreed yet". Brighter and larger than an ordinary pill on purpose - the trade
   window's whole question is whether the other person has pressed the button, and
   it is read across the window rather than looked for. The two fills take
   different inks because the ratio decides it, not the pairing: white clears 5.0
   on this red and only 2.3 on a green bright enough to read as bright, where a
   deep green ink clears 5.6. */
.pill--go, .pill--stop { font-size: 1em; font-weight: 600; padding: .1em .7em; letter-spacing: .01em; }
.pill--stop { background: var(--pill-stop-bg); color: var(--pill-stop-ink); }
.pill--go { background: var(--pill-go-bg); color: var(--pill-go-ink); }

/* A READING on a chip: the HUD status line's latency is good, slow or bad, and
   which of the three it is changes while the player is looking at it. That is a
   state, not a variant, so it is .is-* and not --good / --warn / --bad: a
   modifier is what a thing IS and this is how it is DOING. Only the figure takes
   the colour - the grey face stays the same face whatever it says, because three
   coloured pills in the corner of the screen would be three alarms. */
.chip.is-good { color: var(--green); }
.chip.is-slow { color: var(--orange); }
.chip.is-bad { color: var(--error); }

/* ---------------------------------------------------------------------
   Field: text input in the same white box as the select.
   The leading glyph is markup, not a rule: whatever goes in front of the
   input (the search glyph, the painted coin on the trade window's Gold
   box) is written into the label and dressed by `.field > .ic`. What
   --search is FOR is the box's own behaviour, below: an <input
   type=search> is the one input the browser decorates from the outside,
   and none of that decoration is ours.
   --------------------------------------------------------------------- */
.field {
  display: inline-flex; flex: none; align-items: center; gap: .4em;
  height: 2.4em; min-width: 12em; padding: 0 .6em;
  background: var(--field-face); color: var(--ink);
  border: 1px solid var(--field-border); border-radius: .35em;
}
.field > .ic { width: 1.2em; height: 1.2em; color: var(--ink-mute); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; color: inherit; padding: 0; }
.field input::placeholder { color: var(--ink-mute); opacity: .7; }
.field:focus-within { border-color: var(--brass); box-shadow: 0 0 .45em rgba(var(--brass-rgb), .22); }
.field.is-disabled { opacity: .5; }
.field.is-error { border-color: var(--error); }
.field--block { display: flex; }
.field--sm { font-size: var(--fs-small); }

/* THE BROWSER'S OWN FURNITURE, ONE PART REDRAWN AND ONE TAKEN OFF.

   --search, once the player has typed, grows the OS cancel glyph. Clearing a
   search you have typed is worth a control, and the browser already knows when
   to show one and how to wire it - it appears with the first character, goes
   with the last, and clears the field and fires `input` on click, all without a
   line of script. So the glyph stays and only its DRAWING is ours: appearance
   off, then the design's own cross painted back as a mask in the field's own
   ink, at the field's own em. Nothing here is a second element in the markup.

   A NUMBER FIELD grows the spinner: two stacked arrows, drawn by the OS,
   painted over the box's right padding. There are sixteen number fields in
   the game and the worst of them is the count dialog, where a 4.5em field
   carries the OS arrows AND the design's own .stat__stepper right beside
   it - two ways to add one, a hair apart, one of them not ours. The
   stepper, the slider or an All button is always beside the figure, so the
   arrows are never the only way up. Off, in one rule, for all sixteen.
   Figures are tabular here for the same reason they are on a bar: a count
   the player is stepping must not jitter under its own digits. */
.field--search input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.field--search input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none;
  width: 1.1em; height: 1.1em; margin: 0 0 0 .4em; cursor: var(--cur-hand, pointer);
  background: url(/data/art/ui/ui-close.5c1656c2.webp) center / .8em .8em no-repeat;
  opacity: .6;
}
.field--search input[type=search]:hover::-webkit-search-cancel-button,
.field--search:hover input[type=search]::-webkit-search-cancel-button { opacity: 1; }
.field input[type=number] { appearance: textfield; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.field input[type=number]::-webkit-outer-spin-button,
.field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* ---------------------------------------------------------------------
   Scroll: a thin, light, round thumb.
   --------------------------------------------------------------------- */
.scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
.scroll::-webkit-scrollbar { width: .45em; height: .45em; }
.scroll::-webkit-scrollbar-track { background: transparent; }
.scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 1em; }
.scroll::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
/* A scroller whose rows go see-through at its top and bottom edges rather than being cut there
   (owner, 2026-10-10). The padding keeps the first and last rows clear of the fade at rest.
   --fade sets the depth; a parent may set it. */
.fade-edges {
  padding-block: var(--fade, 1.25em);
  -webkit-mask-image: linear-gradient(transparent, #000 var(--fade, 1.25em), #000 calc(100% - var(--fade, 1.25em)), transparent);
  mask-image: linear-gradient(transparent, #000 var(--fade, 1.25em), #000 calc(100% - var(--fade, 1.25em)), transparent);
}

/* ---------------------------------------------------------------------
   Bar: HP, MP, EXP, durability, progress. A black track, a fill of one
   solid dark colour set by --v (percent) with no gradient and no sheen
   over it, and the figure centred on top in whitish engraving light with
   no text shadow. Every fill is dark enough to carry that text over it.
   --sm is the thin bar with no text (party frames, pet rows).
   --------------------------------------------------------------------- */
.bar { --bar: var(--bar-sage); position: relative; isolation: isolate; height: 1.35em; border-radius: 99em; background: var(--bar-track); overflow: hidden; color: var(--bar-text); font-size: var(--fs-small); box-shadow: inset 0 0 0 1px rgba(var(--ink-wash), .22); }
/* The sheen and grain over fill and track alike; the figures stand above it. */
.bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bar-sheen); mix-blend-mode: overlay; pointer-events: none; }
/* The fill is squared off, and it is not flat: one horizontal wash over the
   colour, dark at the left and light at the right, so a full bar reads as a
   thing filling from the near end. The wash is alpha over var(--bar), so a
   new colour needs no second gradient written for it. */
.bar__fill { position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); background: var(--bar-dim), var(--bar); }
.bar__text { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 1px 1px rgba(var(--shadow-ink), .9), 0 0 2px rgba(var(--shadow-ink), .8); }
.bar--hp { --bar: var(--bar-hp); }
.bar--mp { --bar: var(--bar-mp); }
.bar--exp { --bar: var(--bar-exp); }
.bar--sage { --bar: var(--bar-sage); }
.bar--sm { height: .5em; font-size: 1em; }
/* --gold is the one bar that is LIT. Every other bar here is a trough with a
   flat fill; this one is a thing being charged.
   The halo is on the BAR, not on the fill, and that is not a preference: .bar
   is overflow:hidden so a glow drawn by the fill is clipped at the trough's
   own edge and never leaves it. So the outer light belongs to the track and
   the fill carries the inner one, which is what makes the charged part read as
   the lit part.
   `is-full` is written by the panel rather than derived from --v here, because
   99 percent must not be allowed to look finished.
   NO TEXT over this fill. The block above says every bar's fill is dark enough
   to carry whitish engraving light; gold is the one that is not, so the figure
   sits outside the bar. */
.bar--gold { --bar: var(--bar-gold); box-shadow: inset 0 0 0 1px rgba(var(--ink-wash), .22), 0 0 .45em rgba(var(--bar-gold-glow-rgb), .45); }
.bar--gold > .bar__fill { box-shadow: inset 0 0 .35em rgba(var(--bar-gold-core-rgb), .5); }
.bar--gold.is-full { box-shadow: inset 0 0 0 1px rgba(var(--ink-wash), .22), 0 0 .95em rgba(var(--bar-gold-glow-rgb), .95); animation: bar-gold-pulse 1.8s ease-in-out infinite; }
.bar--gold.is-full > .bar__fill { box-shadow: inset 0 0 .5em rgba(var(--bar-gold-core-rgb), .8); }
@keyframes bar-gold-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
@media (prefers-reduced-motion: reduce) { .bar--gold.is-full { animation: none; } }
.bar--lg { height: 1.7em; font-size: 1em; }

/* ---------------------------------------------------------------------
   Table: plain rows for rosters and boards. No cell borders and no cell
   boxes: the cells sit edge to edge so their shared bottom hairline reads
   as one line across the whole row, and the columns are separated by
   padding only. --cols is the grid template; a row is display:contents so
   .is-on washes the full width in one soft tone. The caption row is small
   capitals. --r1 .. --r6 right-align that column, for numbers.
   --------------------------------------------------------------------- */
.table { display: grid; grid-template-columns: var(--cols, 1fr 1fr); font-variant-numeric: tabular-nums; }
.table__row { display: contents; }
.table__row > * { display: flex; align-items: center; gap: .3em; min-width: 0; padding: .5em .7em; border-bottom: 1px solid var(--hairline); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table__row:last-child > * { border-bottom: 0; }
.table__head > * { font-size: var(--fs-small); font-variant: small-caps; letter-spacing: .04em; color: var(--ink-mute); padding-top: .1em; padding-bottom: .25em; }
.table__row.is-on > * { background: var(--row-on-flat); }
.table__row.is-on > :first-child { border-radius: .35em 0 0 .35em; }
.table__row.is-on > :last-child { border-radius: 0 .35em .35em 0; }

/* Well: the multi-line band. A grey box for prose, a section of a body, a guide. */
.well { padding: .7em .8em; background: var(--band-bg); border-radius: .5em; color: var(--ink); line-height: 1.4; }
/* P6's empty state (c/layout.ts empty({ icon, line, act })): the picture, one line, the one action
   that fills it, centred in the list's place. */
.gui-empty--way { display: grid; justify-items: center; align-content: center; gap: .5em; padding: 1.4em 1em; text-align: center; }
.gui-empty--way > img.g { width: 3em; height: 3em; object-fit: contain; }
.gui-empty__line { color: var(--ink); }
/* A section head: a plain brass hairline under it, fading to the right. */
.well__title { font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: .4em; background: var(--divider-bg); }
.cap { font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.note-line { font-size: var(--fs-small); color: var(--ink-mute); line-height: 1.3; }
.note-line--error { color: var(--error); }
.note-line--good { color: var(--green); }
.note-line--mute { color: var(--ink-mute); }

/* Check and range: the settings controls. The box is a small white tile
   that turns tan with the check glyph; the range is the grey track with
   a cream round thumb, the same disc as the stepper. The part of the track
   already travelled is tan, so a slider reads at a glance from across the
   screen (how much gold to stake, how loud the music is): --v is the same
   percentage the bar's fill uses, written by whoever moves the thumb, and a
   range that nobody drives just shows the grey track. */
.check { position: relative; display: inline-flex; align-items: center; gap: .5em; cursor: var(--cur-hand, pointer); color: var(--ink); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { display: grid; place-items: center; width: 1.3em; height: 1.3em; border: 1px solid var(--field-border); border-radius: .3em; background: var(--field-face); color: var(--tan-text); flex: none; }
.check__box .ic { width: .85em; height: .85em; visibility: hidden; }
.check input:checked + .check__box { background: var(--tan); border-color: var(--tan-rim); }
.check input:checked + .check__box .ic { visibility: visible; }
/* Some but not all (a Select all over a list): a bar instead of the tick. */
.check input:indeterminate + .check__box { border-color: var(--tan-rim); }
.check input:indeterminate + .check__box .ic { display: none; }
.check input:indeterminate + .check__box::after { content: ""; width: .6em; height: .15em; border-radius: .1em; background: var(--tan); }
.check input:focus-visible + .check__box { outline: .12em solid var(--ink); outline-offset: .15em; }
.check.is-disabled { opacity: .5; cursor: var(--cur-arrow, default); }
.range { -webkit-appearance: none; appearance: none; width: 12em; height: .5em; margin: .5em 0; border-radius: .25em; background: linear-gradient(to right, var(--tan) 0 var(--v, 0%), var(--grey-pill-2) var(--v, 0%) 100%); outline: 0; cursor: var(--cur-hand, pointer); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--cream); border: 1px solid var(--cream-rim); box-shadow: 0 .07em .14em rgba(var(--shadow-ink), .18); }
.range::-moz-range-thumb { width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--cream); border: 1px solid var(--cream-rim); }
.field--area { height: auto; align-items: flex-start; padding: .5em .6em; }
.field--area textarea { flex: 1; min-width: 0; min-height: 4em; border: 0; background: transparent; outline: 0; font: inherit; color: inherit; padding: 0; resize: vertical; }
.field__label { color: var(--ink-mute); white-space: nowrap; }

/* Paperdoll for the Character and Player screens: the front-view stand
   layers of data/art/avatar-front/front.0.png, each clipped to its own frame
   from the sidecar (never one background over the whole box). The atlas
   is 2x, so the 240x480 canvas is scaled by --s. Page-only helper. */
/* A caller sets --doll-w, the width it wants the figure to occupy IN EM, and
   the box is that wide and twice that tall - the 1:2 of the 240x480 canvas.
   The canvas is atlas pixels, so left alone the figure is the one thing in a
   window that ignores --win-size: shrink the system and it stays the size it
   was while the panel closes in around it. --doll-w is what stops that.

   The box used to be `--s: calc(var(--doll-w) / 240px)` with `.doll` a fixed
   240x480 scaled by it. Dividing a length by a length is CSS Values 4
   arithmetic only Blink implements: Gecko drops every declaration carrying it,
   so in Firefox the transform and the box's own width were both thrown away
   and the doll stood at the raw 240x480, unclipped, stretching the panel round
   it. Nothing here divides two lengths any more. `.doll` simply fills the box,
   and character.ts paintFront fits the figure to whatever it measures - the
   same arithmetic it always did, one step earlier. */
.doll-box { width: var(--doll-w, 8em); height: calc(var(--doll-w, 8em) * 2); overflow: hidden; }
/* The stage is only a positioning context now: the class emblem that used to
   hang behind the figure is gone, so the doll stands on the window's own
   paper. .doll-box still clips the canvas it sizes. */
.doll-stage { position: relative; }
.doll { position: relative; width: 100%; height: 100%; }
/* the figure is sampled, not smoothed: the atlas is a 2x master and the doll is
   drawn at an exact half of it, so nearest neighbour is the sharper picture.
   No atlas background default: the game never draws a layer: character.ts bakes each look into one small picture and
   paints it on a single <i>, and an atlas default here would be a whole shared
   sheet painted over a box larger than one frame (repo CLAUDE.md). */
.doll i { position: absolute; display: block; image-rendering: pixelated; }

/* ---------------------------------------------------------------------
   Card: a small popover, the item tooltip. Same face as a window, a
   head with the tile and name in the rarity colour, a body, a foot.
   --------------------------------------------------------------------- */
.card {
  width: 19em; padding: .7em .8em;   /* 19, not 17: the body reads at full size now */
  background: var(--card-bg); color: var(--ink);
  box-shadow: var(--card-ring);
}
.card__head { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; } /* wrap: a worn System Gift carries two tags */
/* The name takes the room beside the picture and wraps its own words there (owner, 2026-10-10): as a
   bare flex item a long name would not shrink, so the whole block wrapped under the picture. */
.card__name { display: grid; gap: .15em; flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
/* The item's own name line. .card__title is the class the client writes the
   name into (gui/tip.ts, items.ts itemCard, skill-card.ts) and
   the four --tone modifiers below colour it by rarity; a card whose name is
   written as plain markup says the same thing with a bare <b>
   inside .card__name. One rule for both, so the two spellings cannot drift.
   Size only, never colour: the tone modifiers own the colour, and a colour
   here would out-specify them on the descendant spelling. */
.card__title, .card__name b { font-size: var(--fs-heading); }
.card__name small { color: var(--ink-mute); font-size: var(--fs-small); }
/* The tier inks are doubled on purpose (0,2,0): a panel's own one-class name rule (.cmpw__named > b, .fuse__role...) must never out-ink a tier (owner, 2026-10-10: every tiered name wears its tier). */
.card__title--purple.card__title--purple { color: var(--rarity-purple-text); }
.card__title--prism.card__title--prism { color: var(--rarity-prism-text); text-shadow: var(--prism-glow); }

/* ---------------------------------------------------------------------
   THE GEAR CARD IS DARK WOOD, not parchment (user, 2026-09-18). Every other
   item hovers on the family's cream page; a piece of equipment hovers on the
   dark the world's own plates are cut from, so a stat block reads as a plate
   bolted to the frame rather than as a paragraph on a page.

   It repaints by REDEFINING THE TOKENS on the card root, never by restating a
   colour per element. --win-face is what .card already paints itself with, and
   --ink, --ink-mute, --hairline and --blue are what everything inside it reads,
   so the head, the caption, the description paragraphs, the stat rows, the
   durability note and the hairlines between them all turn over together and no
   part of the card can be left behind on the next thing added to it.

   THE FACE IS DARK (user, 2026-09-18, after trying the tab's own --tan and
   choosing this instead). It is the Backpack tab's brown taken down until a
   stat table can be read on it, which is further than a shade: --tan is a
   BUTTON face, and the game only ever makes it readable by putting one short
   light word on it behind a shadow. A card is ten rows of figures, so the face
   has to earn its own contrast - and at this depth it does, for every colour on
   it except one.

   THE NAME KEEPS THE PAPER INKS (user's standing call). Gold lands at 5.2:1
   here, green 6.0, blue 4.9. Purple is the one that pays for it, near 3.3:1 -
   legible, under the 4.5 the paper tones were mixed for. --world-q-purple
   (#c98bff) is the one-line swap if it is ever wanted.
   --------------------------------------------------------------------- */
.card--gear {
  /* A PROPORTION, not an amount: the two critical damages and the two damage reductions. Gold is
     the world's own critical colour (--world-crit), which is the same fact these lines carry. */
  --stat-pct: var(--world-crit);
  /* The card's HEAD is a header band, not a lighter patch of the face: the tile, the name and the
     line under it stand on their own pale ground, edge to edge, and the stats hang below it on the
     brown. It was a gradient into a lighter brown for one pass; a band says "this is the head"
     where a fade only says "this is the top".
     IT IS THE WINDOW HEAD'S OWN GROUND (user, 2026-09-19), the same parchment gradient .win__head
     is drawn on, so a tooltip's head and a panel's head are one surface said twice rather than two
     creams a stop apart. It was --cream, the family's stepper face, which was a colour the chrome
     already wore but a lighter one than any header in the game.
     The gradient's dark stop lands under the body strip. The head reaches .6em further down than
     its contents need, and ::after paints the brown back over that, so what a player sees is
     --parch flat with --parch-edge showing only in the two notches at the corners - which is
     exactly where a window head shows it too. */
  --head-face: var(--win-head-bg), var(--navy-2);
}
/* The label of a percentage line. On the CARD it is gold; anywhere else this block is drawn on
   paper the token is unset and the label keeps the ordinary muted ink, so nothing outside the gear
   card changes colour because a stat happens to be a proportion. */
.kv__pct { color: var(--stat-pct, inherit); }
.card__title--blue.card__title--blue { color: var(--rarity-blue-text); }
.card__title--gold.card__title--gold { color: var(--rarity-gold-text); }
.card__title--yellow.card__title--yellow { color: var(--rarity-yellow-text); }
.card__title--green.card__title--green { color: var(--rarity-green-text); }

/* The header band. It BLEEDS to the card's edges - the card carries .7em/.8em of padding and the
   head gives exactly that back as negative margin, then takes it again as its own - so the band
   reaches the corners instead of floating inset with the paper showing round it. Square, as the
   card is. Its ground is --parch, dark like every other card's head, and
   its inks are the card's own (user, 2026-09-26: the gear card reads like every other card). */
.card--gear .card__head {
  position: relative;
  margin: -.7em -.8em .25em;
  padding: .55em .8em;
  background: var(--head-face);
  color: var(--ink);
}
.card__body { font-size: 1em; color: var(--ink-mute); line-height: 1.4; }   /* the window's own size (owner, 2026-10-09: small was too small) */
.card--name > .card__body:only-child { color: var(--ink); }   /* a tooltip is its line alone */
.card__number { color: var(--card-number); font-weight: 700; }
.card__body .kv { font-size: 1em; }
/* --float is the same card lifted off the page and put wherever the pointer is (placed and
   layered in 25-card.css: fixed, above the windows, never eating a click). */
/* --name is the card with nothing in it but a name: what a HUD glyph answers with.
   One short line has no use for the reading column an item card holds, so it
   shrinks to its own label instead of standing 17em wide around three words. */
.card--name { width: max-content; max-width: 22em; } /* a long line wraps in a reading column */
/* the one floating card the player is meant to hit: the little menu a row opens.
   It is the same box in the same layer, it just answers the pointer. */
.card--float.card--pick { pointer-events: auto; }

/* ---------------------------------------------------------------------
   Portrait: the round medallion. The HUD status frames, the party rail,
   a pet row, a roster line. One neutral round face, a parchment rim and
   the picture filling it. --sigil hangs the class magic circle AROUND
   the medallion, and the avatar OVERLAYS it: the emblem is inked right
   through - the class weapon fills its middle - so the well has to cover
   that middle and leave only the outer band showing. The class is set by
   --sigil (warrior, mage, priest, ranger).
   --------------------------------------------------------------------- */
.portrait {
  --sigil: url(/data/art/ui/sigil-warrior.bdf39f22.webp);
  /* How far the ring hangs outside the well. One figure for all four, because
     the masters are cut tight to their own ink and land on the same 512
     canvas; the old art needed a different inset per class to cancel the dead
     margin each file shipped with.
     -36% is bounded on both sides. Below it the well swallows the emblem: the
     band sits at 0.7-0.9 of the art's half-width, so at the old -31% only a
     4px sliver cleared the rim. Above it the ring reaches into the row - this
     portrait is mostly used as a list-row picture (the friend list, the party
     invite), the ring is not in the row's reserved width, and at -42% it was
     printing over the name. The HUD's own sigil is a separate rule at -31%
     and does NOT want this number: its well is inset by the block's padding,
     so it already has the clearance this one has to buy. One number for every
     class, here and in the HUD: all four files are drawn edge to edge. */
  --sigil-in: -36%;
  /* block: most wells are a <span>, and an inline box ignores its width, so the face (absolute,
     4.6em) hung out of a zero-wide well over the name beside it (a pet row's head over its name). */
  display: block; position: relative; width: 4.6em; height: 4.6em; flex: none;
  border-radius: 50%;
  background: var(--portrait-bg);
  box-shadow: inset 0 0 0 max(1px, .11em) var(--portrait-ring), 0 0 0 1px var(--win-rim), 0 .1em .25em rgba(var(--shadow-ink), .5);
}
.portrait[hidden] { display: none; }
.portrait > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.portrait .pill { position: absolute; left: 50%; bottom: -.35em; transform: translateX(-50%); font-size: max(var(--fs-badge), .7em); white-space: nowrap; z-index: 2; }
/* ::before, not ::after, and that is the whole of it. A pseudo-element with
   z-index auto paints in tree order among its positioned siblings, and ::before
   is the first child while .head and > img are the rest - so this lands UNDER
   the face and over the medallion's own background. The old art was a hollow
   ring and could sit on top; this one has the class weapon through its middle,
   and on top it drew a sword across the player's face. */
.portrait--sigil::before {
  content: ""; position: absolute; inset: var(--sigil-in);
  background: var(--sigil) center / contain no-repeat;
  /* the same halo the HUD gives it, so the priest's holy white still reads */
  filter: drop-shadow(0 0 .06em rgba(var(--shadow-ink), .45));
  pointer-events: none;
}
/* The well has to be OPAQUE for the overlay to work. A head crop is a cut-out
   with gaps around the shoulders, and the medallion's own fill sits below the
   sigil, so without this the emblem's middle showed through beside the head.
   Same fill .portrait carries, so a portrait with no sigil is unchanged. */
.portrait--sigil > .head {
  background: var(--portrait-bg), var(--tile-face);
}
.portrait--mage { --sigil: url(/data/art/ui/sigil-mage.e69b7ab3.webp); }
.portrait--priest { --sigil: url(/data/art/ui/sigil-priest.99fb5271.webp); }
.portrait--ranger { --sigil: url(/data/art/ui/sigil-ranger.04e5640f.webp); }

/* The face itself, when the face is a PLAYER: the head crop of the front
   paperdoll, which is what the game puts in the well (character.ts headHtml,
   HEAD = 8, 0, 104, 104 on the 1x front canvas, so 16, 0, 208, 208 at 2x).
   An NPC has a painted bust and uses <img>; a player never does. The layers
   are percentages of the crop, so one head fits a well of any size, and the
   blow-up is the HUD's own: the round well would lose the square crop's
   corners, so the crop is enlarged about the face and the shoulders fall off
   the bottom edge. */
.head { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
/* no pixelated here, unlike the full doll: the head is blown up about the face
   by a figure that is not a whole ratio, and nearest neighbour at 1.38 makes a
   staircase of every eyelash. The doll is halved exactly and is sampled. */
.head i { position: absolute; display: block; }
.portrait > .head { transform: translateY(-11%) scale(1.38); transform-origin: 50% 36%; }
/* A sigil portrait standing as a LIST ROW's picture. The ring is deliberately
   hung OUTSIDE the medallion, and a row measures its picture column from the
   medallion - so the overhang lands on the name beside it, and on the rows above
   and below, neither of which reserved a pixel for it. The friend list is where
   this showed: a class emblem printed straight across "Pettest / Lv100 Warrior".
   In a row the emblem comes inside the well instead. It is smaller and the class
   still reads, which in a row is the whole of what it was ever saying - the row
   writes the class out in words underneath as well. */
.item-row .portrait--sigil { --sigil-in: -6%; }
/* And it greys with the rest of the row. `.is-dim` only ever reached the <img>,
   and a roster line has none - the server sends a name, a level and a class, no
   Appearance at all - so an offline friend wore a full-colour class badge beside
   their own greyed-out name. The halo goes with the colour, which is right: it
   was there to keep the priest's white readable, and a grey emblem is not being
   read for its class any more. */
.portrait.is-dim::before { filter: grayscale(1); opacity: .45; }
/* A presence dot, for the word it stands in front of. Two states and no third -
   a name is either reachable or it is not - so it is `.is-on` and not a family
   of variants, and the WORD beside it says which either way: the dot is the
   glance, never the only telling. */
.dot {
  display: inline-block; width: .5em; height: .5em; margin-right: .4em;
  border-radius: 50%; background: var(--ink-mute); vertical-align: baseline;
}
.dot.is-on { background: var(--green); }
.portrait--sm { font-size: .7em; }
.portrait--lg { font-size: 1.5em; }
.portrait.is-dim > img { filter: grayscale(1); opacity: .45; }

/* ---------------------------------------------------------------------
   Item row: the one list line the whole game is made of. A picture at
   the left, a name with a smaller second line under it, and an end
   column for the price, the count or the action. Rows sit in .rows and
   share one hairline; .is-on is the selected row's soft tan wash;
   --empty is the placeholder line ("not learned", "drop a pet here").
   Rarity on the name reuses the card title colours.
   --------------------------------------------------------------------- */
.rows { display: grid; align-content: start; min-width: 0; }
.item-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6em; align-items: center; min-width: 0; padding: .45em .5em; border-bottom: 1px solid var(--hairline); color: var(--ink); text-align: left; }
.rows > .item-row:last-child { border-bottom: 0; }
.item-row__name { display: grid; gap: .1em; min-width: 0; }
.item-row__name b { font-weight: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-row__sub { font-size: var(--fs-small); color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* THE NAME IN ITS OWN BAND, on a shelf. Opt-in per list (items.ts itemRow
   `tone`), and the counters are what opted in - a vendor's stock, a barter
   line, a buyback row, every Marketplace shelf - because those are lists a
   player is CHOOSING from and the band is what they sort by first. The inks are
   the card titles' own, so the name a shelf shows is the name its hover card
   raises, in the same colour. A bag or a mail attachment stays plain: there the
   tile's rim has already said it. */
.item-row--green .item-row__name b, .qs__item--green .qs__item-name { color: var(--rarity-green-text); }
.item-row--blue .item-row__name b, .qs__item--blue .qs__item-name { color: var(--rarity-blue-text); }
.item-row--gold .item-row__name b, .qs__item--gold .qs__item-name { color: var(--rarity-gold-text); }
.item-row--yellow .item-row__name b, .qs__item--yellow .qs__item-name { color: var(--rarity-yellow-text); }
.item-row--purple .item-row__name b, .qs__item--purple .qs__item-name { color: var(--rarity-purple-text); }
.item-row--prism .item-row__name b, .qs__item--prism .qs__item-name { color: var(--rarity-prism-text); text-shadow: var(--prism-glow); }
.item-row__end { display: flex; align-items: center; justify-content: flex-end; gap: .5em; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* A barter row's second line: what the counter takes, as PICTURES. Four stones
   spelled out ("5 x Ancestral Stone [Blue] + ...") is wider than the row and
   ends the item's own name in an ellipsis, so the sub line carries the icon
   cells and their counts instead and the full names are read once, in the
   confirmation. The row keeps its own ellipsis for a price with more pieces in
   it than the column can hold. */
/* A row spelled as a real <button> - the market's shelf list, the row menu a
   player or a bag cell opens. The browser paints its own button on those: a grey
   face and a 13px system label, which is neither the row's face nor the game's
   type. Chrome only, and no background of its own: :hover and .is-on are two
   classes and still out-rank this, so the row keeps its own states. */
button.item-row { appearance: none; -webkit-appearance: none; margin: 0; font: inherit; color: var(--ink); background: none; cursor: var(--cur-hand, pointer); border-top: 0; border-left: 0; border-right: 0; }
.item-row:hover { background: var(--row-hover); }
.item-row.is-on { background: var(--row-on); border-radius: .35em; }
.item-row--empty { color: var(--ink-faint); }
.item-row--empty:hover { background: none; }
/* A row that is still listed but cannot be used right now: a coach ride the
   player is barred from, a recipe short of a material. Dimmed as a whole, the
   same reading .is-dim gives a tile and a portrait, so one state word means one
   thing everywhere. */
.item-row.is-dim { opacity: .5; }
/* The same word on a button: a verb listed but unable to act now (the tap menu's dead verb). */
.btn.is-dim { opacity: .5; }

/* THE TAP MENU (gui/menu.ts tapMenu, owner 2026-10-08): the context card's touch face, opened by
   one tap on an item, a shelf row or a skill. The thing's card, its verbs beside it as buttons; on a
   landscape phone the height is the constraint, so the card scrolls and the buttons stay. */
.ctx.ctx--tap {
  display: flex; align-items: flex-start; gap: .5em;
  max-width: calc(var(--stage-w) - 8px); max-height: calc(var(--stage-h) - 8px);
}
.ctx--tap > .ctx__card { min-width: 0; max-height: calc(var(--stage-h) - 1.5em); overflow-y: auto; }
/* The thing's card is the menu's own ground: no second frame inside the menu's. */
.ctx__card > .card { box-shadow: none; background: none; }
/* The worn piece beside it: set apart by a hairline, a touch quieter (as .tip--cmp). */
.ctx--tap > .ctx__card--cmp { border-left: 1px solid var(--line, rgba(255,255,255,.12)); padding-left: .5em; opacity: .96; }
.ctx--tap > .ctx__acts { display: grid; gap: .35em; min-width: 10em; }
.ctx .item-row.is-danger b { color: var(--btn-bad-text); }

/* ---------------------------------------------------------------------
   Drop target: where a drag lands. A dashed tan outline and a line of
   guidance, nothing else. .drop is the area (mail attachments, a stall
   shelf, the blacksmith's equipment well); .tile--drop is the single
   dashed slot in a grid of tiles. .is-over is the lit state.
   --------------------------------------------------------------------- */
.drop { display: grid; place-items: center; align-content: center; gap: .35em; padding: 1em .8em; min-height: 4em; border: 1px dashed var(--tan-rim); border-radius: .5em; background: rgba(var(--ink-wash), .03); color: var(--ink-mute); font-size: var(--fs-small); text-align: center; }
.drop.is-over { border-color: var(--drop-on-rim); background: var(--drop-on-bg); }
.tile--drop { background: rgba(var(--ink-wash), .03); box-shadow: none; border: 1px dashed var(--tan-rim); }
.tile--drop::before { content: none; }
/* The lit slot. A tile is a drop target twice over: the dashed empty one and an
   ordinary filled one that will take a swap, so both light, and both light the
   same way the .drop area does. */
.tile--drop.is-over, .tile.is-over { border-color: var(--drop-on-rim); background: var(--drop-on-bg); --tile-ring: var(--drop-on-rim); }
/* The one cell a carried stack would land in (the bag): bright enough to find at a glance. */
.tiles .tile.is-over { background: rgba(var(--sky-rgb), .24); box-shadow: inset 0 0 0 2px var(--brass-pale), 0 0 .6em rgba(var(--brass-hi-rgb), .65); }
.drop, .tile--drop { cursor: var(--cur-grab, copy); }
/* A whole GRID of tiles as one drop area: the trade offer, where a stack and a pet land in the
   same twenty places and no single cell is the target. An outline rather than a border, because
   an outline is drawn outside the box and so cannot move forty tiles by a pixel. */
.tiles.is-over { outline: 1px dashed var(--drop-on-rim); outline-offset: .25em; }

/* A thing somebody dropped into what they said: an item, a pet, a place. It is
   coloured by the rarity title colours, which is the whole of its look, so all
   this owes is the promise that it can be clicked. */
.chat-link { cursor: var(--cur-hand, pointer); }
.chat-link:hover { text-decoration: underline; }

/* Equipment slot silhouettes: one frame of data/art/ui/equipment-empty.png
   drawn faintly inside an empty tile, so a bare slot says what belongs in
   it. The sheet is a 5 by 3 grid (the third row Glamorie's); the modifier
   picks the cell. */
.tile__slot { position: absolute; inset: .28em; background-image: url(/data/art/ui/equipment-empty.1c5b1de9.webp); background-repeat: no-repeat; background-size: 500% 300%; opacity: .3; }
.tile__slot--weapon { background-position: 0% 0%; }
.tile__slot--necklace { background-position: 25% 0%; }
.tile__slot--ring { background-position: 50% 0%; }
.tile__slot--coat { background-position: 75% 0%; }
.tile__slot--trousers { background-position: 100% 0%; }
.tile__slot--hat { background-position: 0% 50%; }
.tile__slot--shoes { background-position: 25% 50%; }
.tile__slot--bracelet { background-position: 50% 50%; }
.tile__slot--fashion { background-position: 75% 50%; }
/* The disguise (EQUIP_SLOTS 13) is a costume worn for its look: the costume's own silhouette. */
.tile__slot--disguise { background-position: 75% 50%; }
.tile__slot--aircraft { background-position: 100% 50%; }
.tile__slot--aura { background-position: 0% 100%; }
.tile__slot--trail { background-position: 25% 100%; }
.tile__slot--weaponskin { background-position: 50% 100%; }

/* The icon button's set state: a toggle that is on (a pinned skill, a
   filter that is applied) fills tan the way the checkbox does. */
.ibtn.is-on { background: var(--tan); border-color: var(--tan-rim); color: var(--tan-text); }
.ibtn.is-on::after { border-color: var(--ibtn-on-ring); opacity: .5; }

/* A window set: the tab variants of one panel stacked in the same place, one
   page shown at a time. The strip that pages them carries data-pages; every
   other strip on the page just moves its own mark. A page may hold more than
   one window when the panel has a second state worth showing (a fusion
   result, a roster mid-registration). */

/* ---------------------------------------------------------------------
   HUD strip: the menu row at the bottom-right of the screen, the painted
   data/art/ui/hud-*.png plates as they are, one .hud__btn each.
   --------------------------------------------------------------------- */
.hud { display: flex; gap: .3em; align-items: flex-end; }

/* Something in there wants you. One mark, always the same one, in the top right
   corner of whatever carries it: a menu plate with unread mail, a tab with a
   finished job behind it. Orange because nothing else in this system is, so it
   is the only thing on a quiet HUD that moves the eye. */
.dot {
  position: absolute; right: .2em; top: .2em;
  width: .55em; height: .55em; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 max(1px, .06em) var(--dot-ring);
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   On the world. The one text in the game that is not on paper: nameplates,
   damage figures, a guild name under a player, a stall sign, the broadcast
   line. It has to hold over grass, over snow, over water and over a white
   robe walking underneath, and no panel may be put behind it - a plate
   behind every name would wall the world off.
   So it is the reverse of the panel voice: the engraving light for the face
   and a hard dark rim on all four sides, one hairline thick and growing with
   the type, plus a soft halo to seat it. The rim is the darkest ink of this
   family, not black, so the world text still belongs to the same drawing.
   --glow is for a PICTURE over the world (a glyph, a plate art) where a text
   shadow has nothing to bite on; --plate is the last resort for a long line
   the halo alone cannot carry, and it drops the rim because the plate is the
   contrast then.
   --------------------------------------------------------------------- */
.on-world {
  color: var(--world-text);
  text-shadow:
    var(--world-rim) var(--world-rim) 0 var(--world-outline),
    calc(var(--world-rim) * -1) var(--world-rim) 0 var(--world-outline),
    var(--world-rim) calc(var(--world-rim) * -1) 0 var(--world-outline),
    calc(var(--world-rim) * -1) calc(var(--world-rim) * -1) 0 var(--world-outline),
    0 0 .4em rgba(var(--world-dark), .8);
}
/* a chip that rides inside a world line - a stall sign's price, a tracker count -
   is a piece of paper chrome and keeps its own crisp edges: the rim is for the
   loose words. A nameplate's level is NOT one of them any more: see below. */
.on-world .pill, .on-world .tag, .on-world .chip:not(.chip--bare) { text-shadow: none; }

/* A BARE CHIP IS NOT PAPER. Every other chip brings its own grey face and can
   sit anywhere; --bare threw the face away, so over the canvas it is loose words
   in panel ink, and over pale stonework it all but disappears.
   (The client's status line - clock, latency, FPS, build - used to be exactly
   that, printed straight on the world under the minimap. It is not any more: it
   rides its own slim ink strip above the map, in 40-hud.css. A reading in a panel
   still comes through here.)
   The fix is the one this section already exists to be: the row carries
   .on-world, and a bare chip inside it stops exempting itself from the rim and
   takes the engraving light like any other loose word. It is the only chip that
   does, because it is the only chip with nothing behind it.
   The three READINGS keep their meaning and change their colour: the panel
   green, gold and red are the same figures the fight found too dark to read at
   speed over grass, so a reading over the world takes the lifted world token
   instead. Same state, same class, the palette the surface asks for. */
.on-world .chip--bare { color: var(--world-text); }
.on-world .chip--bare.is-good { color: var(--world-heal); }
.on-world .chip--bare.is-slow { color: var(--world-crit); }
.on-world .chip--bare.is-bad { color: var(--world-hit); }
/* The broadcast ticker (gui/notice.ts cast): two thin rows over the world, each
   scrolling its own sentence right to left (owner, 2026-11-01 #373; two rows
   2026-11-08). A row is a faint ink wash with no edge of its own, the words fading
   out at both ends, shown only while something is on it. The words keep the
   colours they had before #373: the actor in the world's name lime, a thing in its
   own quality band, every joining word white. */
.cast { display: flex; flex-direction: column; gap: .25em; color: #fff; }
.cast__row {
  position: relative;
  height: 1.7em;
  line-height: 1.7em;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(var(--world-dark), .9);
  background: linear-gradient(90deg, rgba(var(--world-dark), 0), rgba(var(--world-dark), .45) 15%, rgba(var(--world-dark), .45) 85%, rgba(var(--world-dark), 0));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  opacity: 0;
  transition: opacity .3s;
}
.cast__row.is-on { opacity: 1; }
.cast .cast__name { color: var(--world-name); }
.cast .card__title--green { color: var(--world-q-green); }
.cast .card__title--blue { color: var(--world-q-blue); }
.cast .card__title--gold { color: var(--world-q-gold); }
.cast .card__title--yellow { color: var(--world-q-yellow); }
.cast .card__title--purple { color: var(--world-q-purple); }
.cast .card__title--prism.card__title--prism { color: var(--world-q-prism); text-shadow: 0 1px 2px rgba(var(--world-dark), .9), var(--prism-glow); }
.cast__line { position: absolute; left: 0; top: 0; }

/* ---------------------------------------------------------------------
   Proclamation. The band the world says something in: you arrived
   somewhere, you reached a level, somebody on this server did a thing
   worth everyone's attention, the operator is talking. One band across
   the upper third, edge to edge, in gold on an ink wash that has no edge
   of its own - it fades out top and bottom into the world rather than
   being a box laid on it - with the engraved flourish either side of the
   words, dense at the outer edge and gone before the text.

   It is a sentence that crosses the screen and leaves on its own, and it
   never takes a click.

   Tone lives on the WORDS and never on the band: --good for something that
   went right, --bad for something that did not. The band itself is always
   the same ink.

   Enter with a short fade and a 6px rise, hold, leave with a fade:
   .is-on is on for the hold and off for the leave, so nothing here needs
   a keyframe and the caller owns how long the hold is. Two
   seconds is the hold unless the caller has a number of its own (a
   server announcement carries how long it stands).

   WHERE it sits is .tl-procl at the end of this sheet, over the upper third,
   beside the broadcast ticker's .tl-cast.
   --------------------------------------------------------------------- */
.procl {
  display: flex; align-items: center; justify-content: center; gap: .4em;
  width: 100%; padding: .55em 0 .65em;
  /* No edge, top or bottom: the wash is strongest behind the words and
     dissolves into the world before it reaches anything with a corner. */
  background: linear-gradient(rgba(var(--world-dark), 0), rgba(var(--world-dark), .74) 42%, rgba(var(--world-dark), .74) 58%, rgba(var(--world-dark), 0));
  text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s linear, transform .22s ease-out;
}
.procl.is-on { opacity: 1; transform: none; }
/* The flourish, one asset both sides (--orn-procl is mirrored by the
   scaleX below). A mask and not a picture, so the engraving takes the
   band's own gold and changes with it. It shrinks to nothing on a narrow
   screen rather than pushing the words out of the middle. */
.procl::before, .procl::after {
  content: ""; flex: 0 1 8.1em; min-width: 0; height: 3.2em;
  background: var(--world-gold); opacity: .85;
  -webkit-mask: url(/data/art/ui/orn-procl.5b8af75a.svg) left center / auto 100% no-repeat;
  mask: url(/data/art/ui/orn-procl.5b8af75a.svg) left center / auto 100% no-repeat;
}
.procl::after { transform: scaleX(-1); }
/* The one line, in the display face, large and tracked out: this is the
   only place in the game where a sentence is set as an inscription. The
   rim is the world layer's, because the band's wash is thin at the words'
   own height and a name over snow still has to hold. */
.procl__text {
  flex: 0 1 auto; max-width: 60%;
  font: var(--face-display-weight) 2.1em/1.2 var(--face-display);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--world-gold);
  text-shadow: 0 .04em 0 rgba(255, 245, 230, .18), 0 .08em .3em rgba(var(--world-dark), .8);
}
.procl__text--good { color: var(--world-heal); }
/* A player's own notice: the same words, the same ink, nothing behind them.
   The wash and the flourish are the operator's announcement alone (owner,
   2026-09-16); without them the text's own rim is what holds it over the
   world, so the shadow is the world layer's full rim rather than the band's. */
.procl--plain { background: none; }
.procl--plain::before, .procl--plain::after { display: none; }
/* A notice that has pictures to show - the items a quest just paid. The band
   turns into a column so the row sits UNDER the words instead of competing
   with them for the middle; the tiles are the same small ones the quest sheet
   pays out with, so the thing that lands in the bag looks the same in both
   places. Only the plain notice ever stacks. */
.procl--stack { flex-direction: column; gap: .3em; }
/* A notable merged under a big moment (gui/notice.ts reward, P11): its line a size down, its
   pictures under it. */
.procl__sub { display: flex; flex-direction: column; align-items: center; gap: .25em; max-width: 90%; }
.procl .procl__sub > .procl__text--sub { font-size: 1.2em; } /* over the mobile rung (25-card.css) */
.procl__items {
  display: flex; flex-wrap: wrap; gap: .35em;
  align-items: center; justify-content: center; max-width: 90%;
}
.procl--plain .procl__text {
  max-width: 90%;
  text-shadow:
    var(--world-rim) var(--world-rim) 0 var(--world-outline),
    calc(var(--world-rim) * -1) var(--world-rim) 0 var(--world-outline),
    var(--world-rim) calc(var(--world-rim) * -1) 0 var(--world-outline),
    calc(var(--world-rim) * -1) calc(var(--world-rim) * -1) 0 var(--world-outline),
    0 0 .4em rgba(var(--world-dark), .8);
}

/* ---------------------------------------------------------------------
   Quest sheet. What a quest IS, drawn in two places off one component:
   inside the NPC conversation, in place of its choice rows, and in the
   quest log's detail column. One component and not two, because the same
   quest read in a window and read in a conversation that differ in any
   particular are two quests to the player.
   The name is the one dramatic line here so it takes the display face;
   the category and the level band are the muted line beside it; the
   objectives are ordinary rows carrying the step kind's glyph and n/m,
   which turns gold the moment that step is full; the payout is one line
   of exp, money and the reward tiles. The quest's own prose is NOT here -
   it is behind the ( i ) - because this sheet says what to DO.
   --------------------------------------------------------------------- */
.qs { display: grid; gap: .5em; align-content: start; min-width: 0; }
.qs__head { display: flex; align-items: baseline; gap: .6em; }
.qs__name { font: var(--face-display-weight) var(--fs-heading)/1.15 var(--face-display); letter-spacing: .02em; color: var(--ink-strong); }
.qs__meta { display: flex; align-items: center; gap: .4em; margin-left: auto; color: var(--ink-mute); font-size: var(--fs-small); text-align: right; }
/* The story: the `?` beside the name (P4), its whole text on the card. */
.qs__story { align-self: center; flex: none; }
/* The pay, one line: each figure with its coin, each item as a small tile with its name. The
   coins are one family at one size - gold, Lumi and the experience mark. */
.qs > .cap { font-weight: 700; color: var(--ink); }
.qs__pay { display: flex; align-items: center; flex-wrap: wrap; gap: .5em 1.2em; }
.qs__sums { display: inline-flex; align-items: center; gap: 1.2em; margin-left: auto; }
.qs__sum { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; font-variant-numeric: tabular-nums; }
.qs__item { display: inline-flex; align-items: center; gap: .45em; }
.qs__item-name { color: var(--ink); }
.qs .item-row > .ic { width: 1.15em; height: 1.15em; color: var(--ink-mute); }
.qs .item-row__end.is-done { color: var(--rarity-gold-text); }

/* The quest links (.qlink: walk, map) are ui/w-quest.css. */

/* The objective line, coloured to be read in one pass: the thing to do in ink, the count in the
   figures' own tone, and the whole row in gold the moment it is full - the count alone turning
   gold was a two-character signal at the far right of a row the eye scans from the left. */
.qs .item-row__end { color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.qs .item-row.is-done .item-row__name b { color: var(--rarity-gold-text); }
.qs .item-row.is-done > .ic { color: var(--rarity-gold-text); }
/* The pay reads as a reward: the figures in gold, the item name in its own rarity tone (the tile
   beside it already carries the band, and a name in plain ink under a purple rim said nothing). */
.qs__sum { color: var(--rarity-gold-text); }

/* ---------------------------------------------------------------------
   Loading screen: the curtain (Midnight Astrolabe, owner 2026-10-09). Not
   a window - a window is a thing you open and close, and this is the whole
   screen going away and coming back. The night key art (or a map's own
   picture, --art) under a navy vignette; the painted astrolabe turning
   slowly behind the logo; the title in the display face and the note
   under it; at the foot one brass hairline meter with what is loading at
   its left and the percentage at its right. No frame, no engraving, no
   close: there is nothing here to act on. The sky bleeds to the screen's
   edge; what stands on it is a stage of the windows' layer (.ldg__stage,
   ui/10-base.css). The turn curtain (orientation.ts, .ldg--turn) wears the
   same sky with no meter and no stage: it is up only while a phone is held
   upright, where no landscape design size applies, so its band stands in
   the sky's own px.
   --------------------------------------------------------------------- */
.ldg {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--ink);
  background: var(--navy-0) var(--art, url("/data/art/landing/shell-night.7dfe29ad.webp")) center 42% / cover no-repeat;
}
html.m-mobile .ldg { background-image: var(--art, url("/data/art/landing/shell-night-1x.533db8a8.webp")); }
/* The night closes in: deepest at the foot where the meter is read, and at the edges. */
.ldg::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(var(--navy-0-rgb), .96), rgba(var(--navy-0-rgb), .55) 28%, rgba(var(--navy-0-rgb), .35) 60%, rgba(var(--navy-0-rgb), .7)),
    radial-gradient(ellipse 70% 60% at 50% 44%, transparent 30%, rgba(var(--navy-0-rgb), .65));
}
.ldg__stage { display: grid; place-items: center; }
/* The astrolabe: the home screen's magic circle, face on, turning once in four minutes. */
.ldg__orrery {
  position: absolute; left: 50%; top: 44%;
  width: 700px; aspect-ratio: 1;
  translate: -50% -50%;
  background: url("/data/art/landing/astro-circle.86f1f5e9.webp") center / contain no-repeat;
  opacity: .34;
  filter: drop-shadow(0 0 .6em rgba(var(--brass-rgb), .35));
  animation: ldg-turn 240s linear infinite;
  pointer-events: none;
}
html.m-mobile .ldg__orrery { width: 446px; }
@keyframes ldg-turn { to { rotate: 360deg; } }
.ldg__band {
  position: relative;
  display: grid; justify-items: center; gap: .5em;
  margin-top: -48px;
  padding: 1em 2em;
  text-align: center;
}
/* The official logo, the centre of the circle: a hidden title under it leaves no gap. */
.ldg__logo { width: 24em; height: auto; filter: drop-shadow(0 .4em 1.2em rgba(var(--shadow-ink), .7)); }
html.m-mobile .ldg__logo { width: 18em; }
html.m-mobile .ldg__stage .ldg__band { margin-top: -31px; }
.ldg.ldg--turn .ldg__logo { width: 180px; }
.ldg__title[hidden], .ldg__note[hidden] { display: none; }
/* The one dramatic line on the screen, so it takes the display face. */
.ldg__title {
  font: var(--face-display-weight) 2.3em/1.1 var(--face-display);
  letter-spacing: .08em; color: var(--brass-pale);
  text-shadow: 0 .06em 0 rgba(var(--shadow-ink), .9), 0 0 .8em rgba(var(--brass-hi-rgb), .3);
}
html.m-mobile .ldg__stage .ldg__title { font-size: 1.6em; }
.ldg__note {
  font: var(--face-weight) var(--fs-md)/1.3 var(--face-ui);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute);
}
/* THE METER: what is loading and how far, at the foot of the screen. A hairline track with a
   brass fill whose head is a point of starlight; as wide as a reading line and no wider. */
.ldg__meter {
  position: absolute; left: 50%; bottom: 57px;
  translate: -50% 0;
  width: 34em;
  display: grid; gap: .5em;
}
html.m-mobile .ldg__meter { bottom: 36px; }
.ldg__meter[hidden] { display: none; }
.ldg__meter-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1em;
  font: var(--face-weight) var(--fs-sm)/1.2 var(--face-ui);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute);
}
.ldg__step { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ldg__pct {
  flex: none; font-variant-numeric: tabular-nums; letter-spacing: .06em;
  font-size: var(--fs-md); color: var(--brass-hi);
}
.ldg__track {
  position: relative; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--brass-rgb), .28) 8%, rgba(var(--brass-rgb), .28) 92%, transparent);
}
.ldg__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--v, 0%);
  background: linear-gradient(90deg, rgba(var(--brass-rgb), 0), var(--brass) 18%, var(--brass-pale));
  box-shadow: 0 0 .5em rgba(var(--brass-hi-rgb), .55);
  transition: width .25s ease-out;
}
.ldg__fill::after {
  content: ""; position: absolute; right: -.35em; top: 50%;
  width: .7em; height: .7em; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--sky-rgb), 1), rgba(var(--sky-rgb), .4) 45%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .ldg__orrery { animation: none; }
  .ldg__fill { transition: none; }
}

/* typeface: both faces are fixed on :root (Tamer Sans for the UI, Cinzel for display);
   the only control left is the preview toggle for the display face. */

/* ---------------------------------------------------------------- CURSORS
   The game's twelve cursors. The pictures are data/art/ui/cursor-*.png and
   data/art/ui/cursors.json holds the hotspot, the frame count and the native
   keyword for each; apps/game/client/cursors.ts reads that table and writes one
   --cur-<state> custom property per state onto <html> at boot.

   THE RULE: no sheet the game loads ever spells a bare cursor keyword. A component
   that presses writes `cursor: var(--cur-hand, pointer)`, one that rests writes
   `var(--cur-arrow, default)`, and so on - the drawn picture IS the meaning of the
   word, and the keyword after the comma is only what a page without the tokens
   (the editor, a sheet the script has not reached) falls back to. A bare keyword
   is the OS picture and nothing here can remap it, because `cursor` inherits but
   an element's own declaration always wins over what it inherits - which is why
   `cursor: default` is the worst offender: it reads as "back to normal" and shows
   the OS arrow. scripts/check-cursors.ts fails the build on any bare keyword.

   So this block is small: the page default, the elements that have no class and
   so no rule of their own, and the errand cursors that no component declares.
   Scoped to body.play so the editor keeps its native set. */
body.play { cursor: var(--cur-arrow, default); }
/* Bare elements a click presses: the UA sheet gives these `pointer` or nothing. */
body.play :is(a[href], button, summary, label, [role="button"]) { cursor: var(--cur-hand, pointer); }
/* A dropdown's open list wears the hand as one piece, padding between the rows included. */
body.play :is(.select__list) { cursor: var(--cur-hand, pointer); }
/* Typing, and the two gestures that move a thing rather than press it. */
body.play :is(textarea, [contenteditable="true"],
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="submit"])) { cursor: var(--cur-text, text); }
body.play :is(.win__head, .gs-slot) { cursor: var(--cur-grab, grab); }
body.play :is(.win__head, .gs-slot, [data-drag]):active { cursor: var(--cur-grabbing, grabbing); }
/* The corner grip keeps the browser's own resize arrow: it is the one gesture the
   system already says well, and a drawn one would have to be drawn eight times. */
/* The states with the errand drawn into them: a link to an NPC walks you over and talks.
   (The gathering Start button and the fight banner drops keep theirs in ui/w-gather.css and
   ui/50-battle.css.) */
body.play .chat-link { cursor: var(--cur-talk, pointer); }
/* A name that walks you to someone presses like anything else - the hand - and the dimmed one
   on another map says nothing, because a click there does nothing. */
body.play .kv__npc { cursor: var(--cur-hand, pointer); }
body.play .kv__npc.is-dim { cursor: var(--cur-arrow, default); }
body.play .kv__npc .chat-link { cursor: inherit; }
/* The curtain: the wait is the game's, not a click that did nothing. */
body.play :is(.ldg, [aria-busy="true"]) { cursor: var(--cur-busy, progress); }
/* Nothing to press, nothing to promise. */
body.play :is(button, .btn, .ibtn, .tabs__tab):disabled,
body.play :is([aria-disabled="true"], .is-disabled, .tile--locked, .gs-slot--empty) { cursor: var(--cur-arrow, default); }

/* ------------------------------------------------------------------ PAPER SURFACES
   The windows are dark (the one tone since 2026-10-05; the light tone is gone). Notices and
   broadcasts stay PAPER (the loading screen went night 2026-10-09, the guild's pages 2026-10-10): painted over the world
   or framed in wood, not in a window (user, 2026-09-23 / 2026-10-05). Every token the dark base
   sets is put back to its paper value on these roots; being custom properties, the values flow on
   to everything inside.
   Zero specificity on purpose: a component that sets its own colour or token (.on-world paints
   --world-text) must still win; `color` re-reads the ink the body would have handed down. */
:where(.procl, .toast, .cast, .on-world) {
  color: var(--ink);
  --paper: #f9f7f4;
  --paper-2: #f1ede6;
  --ink: #4a2b22;
  --ink-strong: #3d2018;
  --ink-mute: #8a6a5e;
  --ink-faint: #a9998f;
  --white: #ffffff;
  --shadow-ink: 60, 25, 12;
  --ink-wash: 70, 30, 15;
  --error: #c0574a;
  --engrave-light: rgba(255, 248, 240, .62);
  --btn-face: #b98a6e;
  --btn-rim: #9c6f57;
  --btn-text: #fbe6d0;
  --btn-text-shadow: rgba(60, 25, 12, .30);
  --win-face: #f6f3ee;
  --win-rim: rgba(74, 43, 34, .22);
  --rim: #fbf8f2;
  --rim-in: #c2b7a1;
  --line: rgba(120, 92, 62, .30);
  --win-shadow: 0 .5em 1.4em rgba(60, 25, 12, .28);
  --parch: #e6ddcc;
  --parch-edge: #d6c9b3;
  --tan: #c99a76;
  --tan-rgb: 201, 154, 118;
  --tan-rim: #a97b5a;
  --link-ink: #8c5a33;
  --tan-text: #fbe6d0;
  --hairline: rgba(74, 43, 34, .14);
  --field-border: rgba(74, 43, 34, .28);
  --field-face: #ffffff;
  --grey-pill: #ebe8e3;
  --grey-pill-2: #e1ddd6;
  --scroll-thumb: #d6cdc0;
  --scroll-thumb-hover: #c6bbab;
  --cream: #ece4d4;
  --cream-rim: rgba(140, 105, 75, .18);
  --cream-ink: #b8a27f;
  --green: #5f9d48;
  --orange: #d68a4c;
  --blue: #3f6ea8;
  --bar-track: #1d1613;
  --tile-face: #e9e4dc;
  --rarity-purple: #9c7bb9;
  --rarity-blue: #6d8db2;
  --rarity-gold: #e0823a;
  --rarity-yellow: #d9b43a;
  --rarity-green: #7ba76b;
  --rarity-gold-text: #a8480c;
  --rarity-yellow-text: #8a5d0c;
  --rarity-blue-text: #1f5fae;
  --rarity-green-text: #2a6e2f;
  --rarity-purple-text: #6a3ba8;
  --rarity-prism: #7d6fd6;
  --rarity-prism-text: #4b3bb0;
  --tile-bg: radial-gradient(120% 90% at 25% 15%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 60%), #e9e4dc;
  --tile-empty-bg: #ebe8e3;
  --tile-rim-base: rgba(255, 255, 255, .7);
  --tile-vignette: 0 0 0 transparent;
  --portrait-bg: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 60%), #e9e4dc;
  --portrait-ring: #e6ddcc;
  --row-on: rgba(201, 154, 118, .16);
  --row-on-flat: rgba(201, 154, 118, .16);
  --row-hover: rgba(70, 30, 15, .04);
  --menu-hover: rgba(70, 30, 15, .06);
  --band-bg: #ebe8e3;
  --tab-on-bg: #c99a76;
  --tab-on-ink: #fbe6d0;
  --tab-on-ring: inset 0 0 0 1px #a97b5a;
  --ibtn-on-ring: rgba(255, 255, 255, .45);
  --dot-ring: rgba(255, 248, 240, .75);
  --drop-on-bg: rgba(201, 154, 118, .14);  /* a drop target on paper keeps the tan wash */
  --drop-on-rim: #c99a76;
}
/* A stack count keeps its pale plate inside a paper surface, whose ink stays dark. Zero
   specificity and after .tile__count, so it wins on source order. */
:where(.procl, .toast, .cast, .on-world) .tile__count { background: rgba(255, 255, 255, .82); }

/* ---- 20-icons.css */
/* PAINTED CHROME ICONS (gui/h.ts glyph/icon). A painted glyph is `img.ic.g` standing where the
   sprite's `svg.ic` stood, so 20-components.css's `.ic` size rules size it; these are only what a picture
   needs that a currentColor drawing did not. Turning is the `rotate` property, never `transform`,
   so a component's own transform still composes with it. */
img.ic { object-fit: contain; }
.ic--down { rotate: 90deg; }
.ic--left { rotate: 180deg; }
.ic--up { rotate: -90deg; }
/* The empty-locked tile faded its padlock through `color`; a picture fades by opacity. */
.tile--locked > img.ic { opacity: .3; }
/* The tile's tick (TileProps.ok) sits in the corner over the art. */
.tile > .tile__ok { position: absolute; z-index: 2; right: .12em; bottom: .12em; width: 1em; height: 1em; }

/* ---- 25-card.css */
/* CARDS OVER EVERYTHING: the tooltip host, the context menu and the toasts (gui/tip.ts, menu.ts,
   toast.ts). The look is 20-components.css's .card; this places them and gives them their layer. */

/* The host for a card that follows the pointer (a hover card, the market's Lumi help): above every
   window and every question (a prize in the gacha result is hovered over its scrim) at --z-tip
   (PLAN 2.3), and never a hit target of its own. */
.card--float { position: absolute; z-index: var(--z-tip); pointer-events: none; }
.card--float.tip--menu { z-index: calc(var(--z-menu) + 1); }
/* The pull (gacha-fx.ts) stands at --z-fx, over --z-tip: while it covers the page, a hovered prize's
   card goes over it, or it opens unseen behind the overlay (owner, 2026-10-10). */
html.gfx-cover .card--float { z-index: calc(var(--z-fx) + 1); }

/* The tooltip host paints nothing: it is placed by `translate` from the top-left corner. */
.tip { left: 0; top: 0; }
/* EVERY TOOLTIP IS MINIMAL (owner, 2026-10-29). The simple one (data-tip-text, data-tip-head:
   .card--name) is a small pill: about 18px for one line, 2px 8px, the theme's ink at --tip-fs on the
   slab, no frame, a soft lift; a long line wraps in a reading column with the same padding. A rich
   card (item, worn, skill, buff, pet, pet skill, a caller's own) keeps its layout, sizes and stats
   and trades the brass frame for the same lift; an aura card keeps its own rim (its stars' look).
   Only cards in the tooltip host: a context menu, a help card and a toast keep the .card frame. */
.tip > .card { box-shadow: var(--tip-lift); }
.tip > .card--aura { box-shadow: var(--card-ring), 0 0 18px color-mix(in srgb, var(--aura-glow) 30%, transparent),
  inset 0 1px 12px color-mix(in srgb, var(--aura-mid) 14%, transparent); }
.tip > .card--name {
  min-height: 18px; padding: 2px 8px; border-radius: 9px;
  max-width: 24em;
  background: var(--tip-bg); font: 600 var(--tip-fs)/14px var(--face-ui); color: var(--ink);
}
.tip > .card--name > .card__body { font-size: inherit; line-height: inherit; }

/* The context menu: a card of rows, placed by `translate`. */
.ctx {
  /* At the UI size like the windows and the hover card (Settings > Size S/M/L, and the phone's
     height factor): it had the page's own 14px, so on Small the menu and its card stood larger
     than the bag they opened from. */
  font-size: var(--win-size, 14px);
  position: absolute; left: 0; top: 0; z-index: var(--z-menu);
  width: max-content; min-width: 10em; max-width: 22em;
  padding: .35em .4em;
}
.ctx .item-row { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: var(--cur-hand, pointer); }
.ctx .item-row:disabled { opacity: .45; cursor: var(--cur-arrow, default); }
.ctx .item-row:hover:not(:disabled) { background: var(--menu-hover); }
.ctx .item-row.is-on b { color: var(--link-ink); }
.ctx__ico { width: 1.5em; height: 1.5em; object-fit: contain; flex: none; }
/* A character in a picker menu (Bring into the world, P8): its face in the class ring, as the roster. */
.ctx .ctx__face { font-size: .5em; --sigil-in: -36%; margin: .85em 1em .85em .85em; }
.ctx__head { padding-bottom: .4em; margin-bottom: .3em; border-bottom: 1px solid var(--hairline); }
.ctx__sep { margin: .25em 0; border: 0; border-top: 1px solid var(--hairline); }
/* A row's "?" (its hover card says what the row does) and a toggle row's switch, at the right end. */
.ctx .item-row { display: flex; }
.ctx .item-row__name { flex: 1; }
.ctx__help { flex: none; display: grid; place-items: center; width: 1.6em; height: 1.6em; margin-left: .6em; border-radius: 50%; cursor: var(--cur-hand, pointer); opacity: .7; }
.ctx__help:hover { opacity: 1; background: rgba(var(--ink-wash), .08); }
.ctx__help > img.g { width: 1.15em; height: 1.15em; object-fit: contain; }
.ctx__switch { flex: none; position: relative; width: 2.2em; height: 1.2em; margin-left: .6em; border-radius: 1em;
  background: rgba(var(--shadow-ink), .55); box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .35); transition: background .15s; }
.ctx__switch::after { content: ""; position: absolute; top: .15em; left: .15em; width: .9em; height: .9em; border-radius: 50%;
  background: var(--ink-mute); transition: translate .15s, background .15s; }
.ctx__switch.is-on { background: rgba(var(--brass-hi-rgb), .35); }
.ctx__switch.is-on::after { translate: 1em 0; background: var(--brass-pale); }

/* Toasts: one short line on a small card, a column under the top of the safe frame (they stand in
   the windows' layer, gui/win.ts layer()). */
.wins > .toasts {
  position: absolute; left: 50%; top: 4.5em; z-index: var(--z-toast);
  display: grid; justify-items: center; gap: .35em;
  transform: translateX(-50%); pointer-events: none;
  font-size: var(--win-size, 14px);
}
.toast-line { width: auto; max-width: 28em; text-align: center; animation: toast-life 2.7s ease-out forwards; }
.toast-line.is-err { color: var(--error); }
@keyframes toast-life {
  0% { opacity: 0; transform: translateY(-4px); }
  8%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .toast-line { animation: none; }
}

/* ------------------------------------------------------------------ THE TOOLTIP HOSTS (gui/tip.ts)
   Two hosts, the card and the one it is compared against, both painting nothing: a card reads at
   the window size, so a tooltip and the window it came out of are one size on every scale. */
.tip { font-size: var(--win-size, 14px); }
.tip--cmp > .card { opacity: .96; } /* the worn piece is the reference, the hovered one the subject */

/* A HUD mark's card (gui/c/status.ts markCard): name, what it does, time left. Five lines at most
   in a narrow column: the name one line, the text three, the time one, so a long description
   never runs across a phone's short screen. */
.card--mark { width: max-content; max-width: 15em; display: grid; gap: .2em; }
.card--mark > .card__title { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card--mark__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card--mark__left { color: var(--card-number); font-weight: 700; }

/* ------------------------------------------------------------------ THE STAR RATING (items.ts starRow)
   One drawn star per rung, three tiers: plain under seven, luxury from seven (embossed, thicker
   flanking rules), radiant from ten (a breathing aura, a slow turn, nine sparks). The tiers differ
   by SIZE as well as colour, which is what a screenshot and a colour-blind reader keep. */
.card__stars {
  position: relative;
  min-height: 1.85em;
  display: grid;
  grid-template-columns: minmax(.85em, 1fr) auto minmax(.85em, 1fr);
  align-items: center;
  gap: .55em;
  color: var(--star-hi);
}
.card__stars::before, .card__stars::after { content: ""; height: 1px; background: var(--star-lo); }
.card__stars i { font-style: normal; font-size: .93em; line-height: 1; letter-spacing: 2px; text-shadow: 1px 1px 0 var(--stamp-outline); }
.card__star { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 2px; }
.card__stars.is-luxury { min-height: 2.15em; }
.card__stars.is-luxury::before, .card__stars.is-luxury::after { height: 2px; background: var(--star-mid); }
.card__stars.is-luxury i { font-size: 1.14em; letter-spacing: 3px; color: var(--star-hi); }
.card__stars.is-luxury .card__star {
  margin-right: 0;
  transform: translateY(-1px);
  filter:
    drop-shadow(0 -1px 0 color-mix(in srgb, var(--star-glint) 95%, transparent))
    drop-shadow(0 1px 0 var(--star-lo))
    drop-shadow(0 2px 1px color-mix(in srgb, var(--star-drop) 90%, transparent))
    drop-shadow(0 0 4px color-mix(in srgb, var(--star-glow) 90%, transparent));
}
.card__stars.is-radiant { min-height: 2.4em; grid-template-columns: minmax(0, 1fr); gap: 0; }
.card__stars.is-radiant::before, .card__stars.is-radiant::after { display: none; }
.card__stars.is-radiant i {
  position: relative; z-index: 1; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  padding: 4px 5px 6px;
  font-size: 1.29em; letter-spacing: 0;
  color: var(--star-hi);
}
/* The aura is its own layer, so neither the stars nor their box move while the light breathes.
   Two still blurs cross-fading (the soft one in as the tight one goes), never an animated blur:
   opacity alone runs on the compositor, a filter animation repaints every frame. */
.card__stars.is-radiant i::before, .card__stars.is-radiant i::after {
  content: ""; position: absolute; z-index: -1; inset: 5px 0 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--star-glow) 62%, transparent);
  pointer-events: none;
}
.card__stars.is-radiant i::before { filter: blur(5px); opacity: .34; animation: card-star-aura 1.35s ease-in-out infinite; }
.card__stars.is-radiant i::after { filter: blur(8px); opacity: 0; animation: card-star-aura-wide 1.35s ease-in-out infinite; }
.card__stars.is-radiant .card__star { animation: card-star-turn 30s linear infinite; }
/* Thirteen to fifteen icons need the full row: tighten them rather than clip the achievement. */
.card__stars.is-radiant:is([data-stars="13"], [data-stars="14"], [data-stars="15"]) i { padding-inline: 2px; font-size: 1.14em; }
/* More than ten stars are two rows, ten across, from the left edge (the card is 17em wide on every
   screen). Shrink-wrapped, so the sparks hug the stars; the light is cast from the icons
   themselves, so it follows two rows instead of pooling in the gap between them. */
.card__stars[data-star-rows] { display: block; width: max-content; max-width: 100%; }
.card__stars[data-star-rows]::before, .card__stars[data-star-rows]::after { display: none; }
.card__stars[data-stars][data-star-rows] i { display: grid; grid-template-columns: repeat(10, auto); justify-content: start; row-gap: 2px; }
.card__stars[data-star-rows].is-radiant i::before, .card__stars[data-star-rows].is-radiant i::after { display: none; }
.card__stars[data-star-rows].is-radiant i { animation: card-star-aura-cast 1.35s ease-in-out infinite; }
.card__stars[data-star-rows] .card__star-particles { bottom: auto; height: 52%; }
.card__star-particles { position: absolute; inset: 2px 12%; display: block; pointer-events: none; }
.card__star-particles b {
  position: absolute; width: 2px; height: 2px;
  background: var(--star-hi); box-shadow: 0 0 4px var(--star-mid); opacity: .72;
}
.card__star-particles b:nth-child(1) { left: 4%; top: 18%; }
.card__star-particles b:nth-child(2) { left: 16%; bottom: 6%; }
.card__star-particles b:nth-child(3) { left: 29%; top: 2%; }
.card__star-particles b:nth-child(4) { left: 41%; bottom: 0; }
.card__star-particles b:nth-child(5) { left: 50%; top: 0; }
.card__star-particles b:nth-child(6) { right: 39%; bottom: 4%; }
.card__star-particles b:nth-child(7) { right: 27%; top: 3%; }
.card__star-particles b:nth-child(8) { right: 14%; bottom: 8%; }
.card__star-particles b:nth-child(9) { right: 3%; top: 20%; }
@keyframes card-star-aura {
  0%, 100% { opacity: .3; }
  50% { opacity: 0; }
}
@keyframes card-star-aura-wide {
  0%, 100% { opacity: 0; }
  50% { opacity: .9; }
}
@keyframes card-star-aura-cast {
  0%, 100% { filter: drop-shadow(0 0 2px color-mix(in srgb, var(--star-glow) 55%, transparent)) drop-shadow(0 0 6px color-mix(in srgb, var(--star-glow) 30%, transparent)); }
  50% { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--star-glow) 85%, transparent)) drop-shadow(0 0 10px color-mix(in srgb, var(--star-glow) 70%, transparent)); }
}
@keyframes card-star-turn {
  from { transform: translateY(-1px) rotate(0deg); }
  to { transform: translateY(-1px) rotate(360deg); }
}
/* A phone's card is short: the rating comes down to the card's own type. */
:where(html.m-mobile) .card__stars[data-stars] { min-height: 0; }
:where(html.m-mobile) .card__stars[data-stars] i { font-size: .75em; letter-spacing: 1px; padding-block: 1px; }
:where(html.m-mobile) .card__stars[data-stars] .card__star { margin-right: 1px; }
@media (prefers-reduced-motion: reduce) {
  .card__stars.is-radiant i::before, .card__stars.is-radiant i::after, .card__stars.is-radiant .card__star, .card__stars[data-star-rows].is-radiant i { animation: none; }
}

/* ------------------------------------------------------------------ THE AURA CARD (items.ts itemCard)
   A piece past nine stars hovers in gold (user, 2026-10-25, after a WebGL mock-up): a rim of liquid
   gold flowing round the edge, a halo breathing outside it, embers rising off the four sides, gold
   corner brackets, and a sheen and a slight 3D tilt that follow the cursor over the piece (tip.ts
   sets --tx/--ty, -1..1). All CSS: the mock-up's second WebGL context would hold its own GPU
   memory for one tooltip. The layer is click-through and sits over the card's face but under no
   reading: the rim is the border line, the sheen is faint. */
@property --aura-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card--aura {
  --aura-hi: var(--star-hi);
  --aura-mid: var(--star-mid);
  --aura-glow: var(--star-glow);
  position: relative; isolation: isolate;
  box-shadow: var(--card-ring), 0 0 18px color-mix(in srgb, var(--aura-glow) 30%, transparent),
    inset 0 1px 12px color-mix(in srgb, var(--aura-mid) 14%, transparent);
  transform: perspective(70em) rotateX(calc(var(--ty, 0) * -5deg)) rotateY(calc(var(--tx, 0) * 5deg));
  transition: transform .18s cubic-bezier(.2, .85, .4, 1);
}
.card__aura { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
/* The rim: a conic sweep of gold turning round the border ring only (the mask cuts the middle). */
.card__aura::before {
  content: ""; position: absolute; inset: -1px; padding: 1.5px;
  background: conic-gradient(from var(--aura-turn),
    color-mix(in srgb, var(--aura-mid) 55%, transparent),
    var(--aura-hi) 12%, color-mix(in srgb, var(--aura-mid) 40%, transparent) 25%,
    color-mix(in srgb, var(--aura-mid) 70%, transparent) 50%,
    var(--aura-hi) 62%, color-mix(in srgb, var(--aura-mid) 40%, transparent) 75%,
    color-mix(in srgb, var(--aura-mid) 55%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: card-aura-turn 4.5s linear infinite;
}
/* The halo: gold light outside the edge, breathing. */
.card__aura::after {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--aura-glow) 65%, transparent),
    0 0 34px 7px color-mix(in srgb, var(--aura-mid) 34%, transparent);
  animation: card-aura-breathe 2.6s ease-in-out infinite;
}
.card__sheen {
  position: absolute; inset: 0;
  background: radial-gradient(18em circle at calc(50% + var(--tx, 0) * 40%) calc(25% + var(--ty, 0) * 40%),
    color-mix(in srgb, var(--aura-hi) 10%, transparent), color-mix(in srgb, var(--rarity-purple-text) 4%, transparent) 35%, transparent 75%);
}
.card__corners i { position: absolute; width: .6em; height: .6em; border: 2px solid var(--aura-hi); opacity: .85; }
.card__corners i:nth-child(1) { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card__corners i:nth-child(2) { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.card__corners i:nth-child(3) { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.card__corners i:nth-child(4) { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
/* Embers: gold motes born on the edge, drifting up and out, each on its own clock. */
.card__embers b {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: radial-gradient(circle, #fffef0 0 25%, var(--aura-hi) 45%, transparent 75%);
  box-shadow: 0 0 4px var(--aura-mid);
  opacity: 0; animation: card-aura-ember 3.2s ease-out infinite;
}
.card__embers b:nth-child(1)  { left: -2px; top: 82%; --ex: -10px; animation-delay: 0s; }
.card__embers b:nth-child(2)  { left: -2px; top: 48%; --ex: -12px; animation-delay: 1.1s; }
.card__embers b:nth-child(3)  { left: -2px; top: 16%; --ex: -8px;  animation-delay: 2.3s; }
.card__embers b:nth-child(4)  { right: -2px; top: 74%; --ex: 10px; animation-delay: .5s; }
.card__embers b:nth-child(5)  { right: -2px; top: 38%; --ex: 12px; animation-delay: 1.7s; }
.card__embers b:nth-child(6)  { right: -2px; top: 8%;  --ex: 8px;  animation-delay: 2.8s; }
.card__embers b:nth-child(7)  { top: -2px; left: 14%; --ex: -4px; animation-delay: .3s; }
.card__embers b:nth-child(8)  { top: -2px; left: 40%; --ex: 3px;  animation-delay: 1.4s; }
.card__embers b:nth-child(9)  { top: -2px; left: 66%; --ex: -3px; animation-delay: 2.1s; }
.card__embers b:nth-child(10) { top: -2px; left: 88%; --ex: 5px;  animation-delay: .9s; }
.card__embers b:nth-child(11) { bottom: -2px; left: 22%; --ex: -6px; animation-delay: 1.9s; }
.card__embers b:nth-child(12) { bottom: -2px; left: 52%; --ex: 4px;  animation-delay: .7s; }
.card__embers b:nth-child(13) { bottom: -2px; left: 78%; --ex: 7px;  animation-delay: 2.5s; }
.card__embers b:nth-child(14) { left: -2px; bottom: -2px; --ex: -9px; animation-delay: 1.3s; }
@keyframes card-aura-turn { to { --aura-turn: 360deg; } }
@keyframes card-aura-breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes card-aura-ember {
  0% { opacity: 0; transform: translate(0, 0) scale(.7); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--ex, 0), -26px) scale(1.15); }
}
/* A phone's card is small and has no cursor over it: the rim, halo and corners stay, the embers
   thin out and nothing tilts. */
:where(html.m-mobile) .card--aura { transform: none; }
:where(html.m-mobile) .card__embers b:nth-child(even) { display: none; }
@media (prefers-reduced-motion: reduce) {
  .card--aura { transform: none; transition: none; }
  .card__aura::before, .card__aura::after { animation: none; }
  .card__embers { display: none; }
}

/* ------------------------------------------------------------------ THE ITEM CARD'S SECTIONS (items.ts itemCard)
   Fixed order, one hairline between two sections and none inside one: the figures, the sockets, the
   meter, the item's own words, the foot. On the gear card the head is a band of its own, so the
   first section needs no line under it. */
.card__sec { margin-top: .5em; padding-top: .5em; border-top: 1px solid var(--hairline); }
.card--gear .card__head + .card__sec { margin-top: 0; padding-top: .15em; border-top: 0; }
/* Card sections set in a panel under its own titled hairline (the Exchange's gear well): the first
   needs no rule of its own, or the title reads double-ruled (owner, 2026-10-10). */
.well .card__sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.card__sec:not(.card__foot) > * + * { margin-top: .3em; }
.card__sec > .card__stars + .kv { margin-top: .15em; }
.card__effects .kv__val { color: var(--card-number); }

/* A meter (durability, charges, a vessel's capacity): the label, "left/max" at the right, a thin
   bar under both, filled to --share. Red from a fifth down. */
.card__meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .8em; row-gap: .25em; align-items: baseline; }
.card__meter > b { font-weight: inherit; color: var(--ink); font-variant-numeric: tabular-nums; }
.card__meter > i { grid-column: 1 / -1; height: 3px; background: var(--navy-0); box-shadow: inset 0 0 0 1px var(--hairline); }
.card__meter > i::after { content: ""; display: block; width: var(--share, 0%); height: 100%; background: var(--brass); }
.card__meter.is-low > b { color: var(--error); }
.card__meter.is-low > i::after { background: var(--error); }

/* SOCKETS (items.ts socketRows): six holes on one line - a stone (filled), an open hole (a ring), a
   hole not yet punched (a faint dashed ring) - then a green row per stone, its picture first. */
.card__holes { display: flex; gap: .3em; }
.card__hole { width: .8em; height: .8em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--brass); }
.card__hole.is-full { background: var(--socket-full); box-shadow: inset 0 0 0 1.5px var(--brass-hi); }
.card__hole.is-shut { box-shadow: none; border: 1px dashed var(--ink-faint); }
.card__gem { display: flex; align-items: center; gap: .45em; color: var(--green); }
.card__gem > .ico { --ico-box: 1.3em; }
.card__gem > span { flex: 1; min-width: 0; }
.card__gem > b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.card__gem.is-idle { color: var(--ink-mute); }
.card__sec > .card__gem + .card__gem { margin-top: .1em; }

/* THE ITEM'S OWN WORDS: muted prose, its "- " lines drawn as a list on a small brass diamond, the
   label of a "Label: value" line in the plain ink, a [bracketed] usage hint small and faint. */
.card__desc p { margin: 0; }
.card__desc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .1em; }
.card__desc li { position: relative; padding-left: .9em; }
.card__desc li::before { content: ""; position: absolute; left: .1em; top: .6em; width: .3em; height: .3em; background: var(--brass-dim); transform: rotate(45deg); }
.card__k { color: var(--ink); }
.card__hint { font-size: var(--fs-small); color: var(--ink-mute); }

/* WHAT A BOX HOLDS (items.ts boxBody, containers.json `peek`): a small tile, the name in its band's
   ink, the chance at the right. */
.card__box-head { color: var(--ink-mute); font-size: var(--fs-small); margin-bottom: .3em; }
.card__box-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .25em; }
.card__box-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5em; }
.card__box-list .tile { font-size: .7em; }
.card__box-name { line-height: 1.2; }
.card__box-pct { color: var(--ink-mute); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }

/* THE FOOT: small and quiet - what it takes to use (red when this character falls short), how it
   may change hands, and the stack at the right. */
.card__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .5em; font-size: var(--fs-small); color: var(--ink-mute); }
.card__foot > span:not(.card__qty) + span:not(.card__qty)::before { content: "·"; margin-right: .5em; color: var(--ink-faint); }
.card__req { color: var(--ink); }
.card__req.is-unmet { color: var(--error); }
.card__qty { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ A PET'S CARD (chatlink.ts)
   The growth caption over its two columns, and the score in a fixed cell so numbers line up. */
.card__growth { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6em; align-items: baseline; }
.card__score { display: inline-block; min-width: 2.6em; text-align: right; }
/* What the pet knows (a stall or trade pet, #403): one wrapping flow of icon + name + level, so
   eight skills cost two or three lines on a landscape phone, not eight. */
.card__skills { display: flex; flex-wrap: wrap; gap: .25em .7em; }
.card__skill { display: inline-flex; align-items: center; gap: .3em; }
.card__skill > .ico { --ico-box: 1.3em; }

/* ------------------------------------------------------------------ WHERE THE NOTICES STAND (gui/notice.ts)
   The broadcast ticker: centred under the top edge, one line, never a click target (it prints
   over the world while the player walks through it); above the windows, under the scrim. */
.wins > .tl-cast {
  position: absolute;
  left: 50%;
  top: 8em;
  font-size: 13px;
  transform: translateX(-50%);
  z-index: var(--z-cast);
  width: 32em;
  pointer-events: none;
}
/* The proclamation, edge to edge across the upper third (the wash has no edge of its own), one
   layer above the ladder (your own arrival outranks somebody else's luck), under the scrim. */
.tl-procl {
  position: fixed;
  left: 0;
  right: 0;
  top: 22%;
  z-index: var(--z-procl);
  pointer-events: none;
}
/* Mobile mode: both stand in the windows' stage (its .75 factor scales them): the band's words 15px. */
:where(html.m-mobile) .tl-procl { font-size: 15px; }
/* The ticker 11 px on the glass, just under the Hunt Mode button (40-hud.css: 6px edge + 44px at the
   HUD's .85; 66px in the windows' .75) (owner, 2026-11-01). */
:where(html.m-mobile) .wins > .tl-cast { font-size: 14.7px; top: 66px; width: 28em; }
:where(html.m-mobile) .tl-procl { top: 34%; }
:where(html.m-mobile) .tl-procl .procl__text { font-size: 1.6em; letter-spacing: .08em; }

/* ------------------------------------------------------------------ A CARD IN MOBILE MODE
   A floating card (a tooltip, a menu) reads at the window size, never taller than the screen; a
   worn piece's stat lines lose most of their air. */
:where(html.m-mobile) .card { font-size: var(--win-size); max-height: calc(var(--stage-h) - 16px); overflow: hidden; }
/* A tooltip or tap-menu card taller than that cap scrolls inside it (#195): a head over one body (a
   skill, a talent) keeps its head and scrolls the body, its edges faded as .fade-edges does; any
   other card scrolls whole. The tap menu's card shrinks into the menu's column rather than
   scrolling a second time (one scroller). A tapped tooltip takes the finger (.tip.is-kept,
   gui/tip.ts), so a swipe on it scrolls it and never reaches the world under it. In desktop mode
   only a card taller than the frame is capped (.tip.is-tall, gui/tip.ts: the others keep their
   aura halo unclipped), the same way, and the wheel over its thing scrolls it. */
:where(html.m-desktop) .tip.is-tall > .card { max-height: calc(var(--stage-h) - 14px); }
:is(:where(html.m-mobile) :is(.tip, .ctx__card), .tip.is-tall) > .card { overflow-y: auto; overscroll-behavior: contain; }
:is(:where(html.m-mobile) :is(.tip, .ctx__card), .tip.is-tall) > .card--split { display: flex; flex-direction: column; overflow: hidden; }
:is(:where(html.m-mobile) :is(.tip, .ctx__card), .tip.is-tall) > .card > .card__head { flex: none; }
:is(:where(html.m-mobile) :is(.tip, .ctx__card), .tip.is-tall) > .card > .card__head + .card__body:last-child {
  --fade: .6em;
  flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding-block: var(--fade); margin-bottom: calc(-1 * var(--fade));   /* the bottom fade sits in the card's own padding */
  -webkit-mask-image: linear-gradient(transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
:where(html.m-mobile) .ctx--tap > .ctx__card { display: flex; flex-direction: column; overflow: hidden; }
:where(html.m-mobile) .ctx__card > .card { min-height: 0; max-height: none; }
:where(html.m-mobile) .tip.is-kept { pointer-events: auto; }
:where(html.m-mobile) .card .kv > div { padding-block: .15em; }
:where(html.m-mobile) .card .item-row { padding-block: .15em; }
:where(html.m-mobile) .card .item-row--empty ~ .item-row--empty { display: none; }

/* The number pad (gui/c/input.ts, mobile mode): a card of keys in a bottom corner of the frame, away
   from the number field it types into, over every window and question. Placed by `translate`. Four
   rows of 2.5em: about a third of a landscape phone's height. Taps are square plates, a key that
   repeats when held is the stepper's round button, OK the full row. */
.numpad {
  font-size: var(--win-size, 14px);
  position: absolute; left: 0; top: 0; z-index: var(--z-menu);
  display: grid; grid-template-columns: repeat(5, 3.2em); grid-auto-rows: 2.5em; gap: .3em;
  width: max-content; padding: .4em;
  touch-action: none; user-select: none;
}
.numpad[hidden] { display: none; }
.numpad > .btn { padding: 0; font-size: 1.1em; font-variant-numeric: tabular-nums; }
.numpad > .ibtn { place-self: center; }
.numpad > .numpad__ok { grid-column: 1 / -1; font-size: 1em; }
/* The field the pad has just opened on: its first digit replaces this text. */
.field input.is-fresh { background: rgba(var(--brass-rgb), .16); }

/* ---- 30-win.css */
/* THE NEW WINDOWS (gui/win.ts) AND THE ONE LAYER TABLE (PLAN 2.3).

   A new window is 20-components.css's .win, standing in the `.wins` layer: a STAGE (ui/10-base.css
   .stage, the glass less the notch and the home bar in the windows' design px, clipped; absolute with
   z auto, so the windows' z still interleaves with the body's menus, tips and curtains), each window
   placed by `translate` from the stage's top-left corner, z written by the shared stack (gui/z.ts). Its width is --w, in em of
   --win-size like every old window. A modal's veil is 20-components.css's .scrim, one layer under it,
   and with the page dock it is a .bleed: the whole glass. */
:where(.wins) > * { pointer-events: auto; }
.wins > .win {
  position: absolute; left: 0; top: 0;
  width: var(--w); max-width: calc(var(--stage-w) - 16px);
  max-height: calc(var(--stage-h) - 32px);
}
.wins > .bleed { position: fixed; }
.wins > .win > .win__body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
/* The body's scrollbar in the window's brass (colour only: its width is the platform's). */
.wins > .win > .win__body { scrollbar-color: var(--scroll-thumb) transparent; }
/* Mobile mode: no window (the lobby's included) is taller than the screen less a gutter each end;
   its body is the scroller, so the head stays in reach to drag it by. */
:where(html.m-mobile) .win { max-height: calc(var(--stage-h) - 32px); }
:where(html.m-mobile) .win > .win__body { min-height: 0; overflow-y: auto; }
/* P7 (docs/ui-patterns.md), mobile mode: a window is at most the frame's height (win.ts setPos
   lets its gutter go so the head never rises above the frame's top); the head and foot never
   scroll, the body (or its one marked scroller) takes what is left. */
html.m-mobile .wins > .win { max-height: var(--stage-h); }
/* The marked scroller (defineWin `scroll: true`): the body stops scrolling, its direct .scroll
   child takes the rest of the height and is the only thing that scrolls; tabs, search, filters
   stay put. In mobile mode it keeps at least two touch rows however short the frame. */
.wins > .win--scroller > .win__body { display: flex; flex-direction: column; overflow: hidden; }
.wins > .win--scroller > .win__body > * { flex: none; }
.wins > .win--scroller > .win__body > .scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
html.m-mobile .wins > .win--scroller > .win__body > .scroll { min-height: calc(2 * var(--hit)); }
/* A pair split in mobile mode (win.ts pair): half the frame each, side by side, full height. */
html.m-mobile .wins > .win.is-split { max-width: calc(var(--stage-w) / 2); max-height: var(--stage-h); min-width: 0; }
/* P10, mobile mode, every window but the full-frame pages (Event Center, Fortuna, Sanctum keep their
   own sheets): controls are drawn compact (owner, 2026-11-01: 44 px drawings made each window a stack
   of slabs) and their hit areas reach 44 px without growing the drawing.
   - A tab is drawn 26 px (owner, 2026-11-01, again: still too big on a phone): its box is --hit (44 px on the glass) with a transparent border top and bottom making up the rest, the
     background clipped to the padding box (its ring is inset, its line and hairline sit in the
     padding box), and the border pulled back out of the layout by an equal negative margin. A strip
     whose tabs stack or wrap (a rail, a ladder) has no border: rows touch, each row is its own target.
   - A square or colour button is drawn 30 px, its unused ::after reaching --hit.
     The hexagon and the plate draw with both pseudos: they keep 40 px.
   - A select is drawn 30 px, its ::before reaching --hit (44 px on the glass), as a button's ::after.
   - The body and foot pad .6em/.8em, not the desktop's 1.2em rhythm: on a phone every em is screen.
   - A round icon button is drawn 28 px, its ::before (the ring is ::after) reaching 44 px; a foot
     keeps such buttons 10 px apart so no hit area covers a neighbour's drawing. */
html.m-mobile .wins > .win:not(.win--page) .tabs__tab {
  position: relative; z-index: 1;
  --tab-pad: calc((var(--hit) - 26px) / 2); min-height: var(--hit); border-block: var(--tab-pad) solid transparent; margin-block: calc(-1 * var(--tab-pad)); background-clip: padding-box;
}
html.m-mobile .wins > .win:not(.win--page) .tabs__tab.is-drop { outline-offset: calc(-1 * var(--tab-pad) - .15em); }
html.m-mobile .wins > .win:not(.win--page) .btn { min-height: 30px; }
html.m-mobile .wins > .win:not(.win--page) .btn:not(.btn--special, .btn--block)::after { content: ""; inset: calc((30px - var(--hit)) / 2) 0; pointer-events: auto; }
html.m-mobile .wins > .win:not(.win--page) :is(.btn--special, .btn--block) { min-height: var(--touch); }
html.m-mobile .wins > .win:not(.win--page) .select__trigger { position: relative; min-height: 30px; }
html.m-mobile .wins > .win:not(.win--page) .select__trigger::before { content: ""; position: absolute; inset: calc((30px - var(--hit)) / 2) 0; }
html.m-mobile .wins > .win:not(.win--page) > .win__body { padding: .6em .8em .7em; }
html.m-mobile .wins > .win:not(.win--page) > .win__body:not(:last-child) { padding-bottom: .4em; }
html.m-mobile .wins > .win:not(.win--page) > .win__foot { padding: 0 .8em .7em; }
html.m-mobile .wins > .win:not(.win--page) > .win__head { padding: 0 .8em; }
html.m-mobile .wins > .win:not(.win--page) .ibtn { min-width: 28px; min-height: 28px; }
html.m-mobile .wins > .win:not(.win--page) .ibtn > .ic { width: 1.2em; height: 1.2em; }
html.m-mobile .wins > .win:not(.win--page) .ibtn::before { content: ""; position: absolute; inset: -8px; }
html.m-mobile .wins > .win:not(.win--page) > .win__foot { column-gap: max(10px, .6em); }
/* Every window's close star, mobile mode: its hit area reaches --hit round the drawing. */
html.m-mobile .wins > .win > .win__head > .win__close::before { content: ""; position: absolute; inset: calc((1.75em - var(--hit)) / 2); }
/* The head's `?` (defineWin `help`): at the right, before the close, which then sits flush
   beside it as one group. */
.win__head > .win__help { margin-left: auto; }
.win__head > .win__help ~ .win__close { margin-left: 0; }
/* A refusal said beside its control (gui/say.ts): the window's own note line, taking the foot's
   room left of the buttons; hidden until a refusal, gone at the next press. */
.win__foot > .say-note { flex: 1; min-width: 0; }
.say-note[hidden] { display: none; }

/* A finger on the head drags the window (tablet, mobile mode): the browser must not claim the touch
   as a pan, or it cancels the pointer a few px in (pointercancel) and the window stops. */
.wins > .win:not(.win--modal):not(.win--popup):not(.win--page) > .win__head { cursor: var(--cur-grab, grab); touch-action: none; }
html.is-dragging, html.is-dragging * { cursor: var(--cur-grabbing, grabbing) !important; }
.wins > .win:not([hidden]) { animation: win-in .12s ease-out; }
@keyframes win-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .wins > .win:not([hidden]) { animation: none; }
}

/* The question frame (gui/ask.ts, the system alert): the old dialog's own layout. Every dialog's
   action row (ask.ts questions, the popups: a party invitation, a fusion result) stands at the
   RIGHT, its last button flush with the body's right edge (the same 1.2em), the main button last -
   ask.ts and every popup append Cancel / Refuse first. A little more room underneath keeps the
   last button clear of the bottom-right crest, which the window-wide 2.9em inset used to dodge. */
.wins > .win:is(.win--ask, .win--popup) > .win__foot { justify-content: flex-end; padding-right: 1.2em; padding-bottom: 1.7em; }
.ask { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7em; } /* never wider than the window */
.ask__q { display: grid; gap: .25em; }
/* A confirm's short points (gui/ask.ts askList): a plain dotted list, one line each. */
.ask__list { display: grid; gap: .3em; margin: 0; padding-left: 1.1em; list-style: disc; }
.ask__list > li::marker { color: var(--brass); }
.ask__count { display: flex; align-items: center; gap: .5em; }
/* The stepper takes what is left after the All button, which keeps its own width. */
.ask__count > .numf { flex: 1 1 auto; width: auto; min-width: 0; }
.ask__count > .numf > .field { min-width: 0; } /* .field's own 12em floor pushed All out of the window */
.ask__count > .btn { flex: none; }
/* A tickbox under the question (ask.yesNo tick): left aligned, a finger's height in mobile mode. */
.ask__tick { justify-self: start; }
:where(html.m-mobile) .ask__tick { min-height: var(--hit); }

/* Delete character (shell/home.ts remove): a size up from the alert, what is LOST leading. The
   name and level head it, the lost list is large and hot, the kept line is one quiet line, and
   Delete stands alone at the right of the foot like every dialog's main button (the close star is
   the way out). */
.win--delchar .ask { gap: 1em; font-size: var(--fs-heading); }
.win--delchar .note-line { font-size: var(--win-size); }
.delchar__head { display: grid; justify-items: center; gap: .2em; text-align: center; padding-bottom: .9em; border-bottom: 1px solid var(--hairline); }
.delchar__name { font-family: var(--face-display); font-weight: var(--face-display-weight); font-size: calc(var(--fs-title) * 1.35); color: var(--ink-strong); line-height: 1.1; overflow-wrap: anywhere; }
.delchar__lv { color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.delchar__cap { color: var(--error); font-size: var(--win-size); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2em; }
.delchar__lost .kv > div { padding: .55em .25em; }
.delchar__lost .kv dt { color: var(--ink); }
.delchar__lost .kv__val { font-size: var(--fs-title); white-space: nowrap; }
.delchar__confirm { display: grid; gap: .45em; }
.win--delchar [data-ok] { min-width: 12em; font-size: var(--fs-heading); }
.is-busy { cursor: var(--cur-busy, wait); }

/* THE LAYER TABLE, restated over the old sheets' numbers (gui/z.ts Z). Windows moved from 20+ to
   the shared stack's 100+; what stood between them and the old dialog layer moves with them, so the
   order on screen is the one it always was. */
.scrim { z-index: var(--z-modal); }                         /* a modal's veil */
.gfx { z-index: var(--z-fx); }                              /* the gacha pull (gacha-fx.ts) */
/* The curtains (loading, turn your device, offline) take their layers in ui/60-curtain.css. */

/* ---- 35-drag.css */
/* THE DRAG (gui/gesture.ts, PLAN 1.4): one engine for mouse, pen and finger.

   A drag source wears `data-drag`. A finger held on it must not pan the page: `touch-action: none`.
   In a list that scrolls (a bag grid on a phone sheet, a window's rows) it wears `data-drag="pan"`:
   a quick vertical swipe still scrolls, a held press (180 ms) carries, and the engine stops the pan
   once the press is armed (gesture.ts dragRoot). The grab hand is 20-components.css's [data-drag] rule.

   The ghost is a copy of what was pressed, riding the pointer by `transform` alone, over every
   window, card and menu (--z-ghost) and never in the way of the hit test under it. Under a mouse it
   IS the pointer: whole, not faint, centred on the hot spot, and the cursor is hidden while it
   rides (owner, 2026-10-09). The pressed thing itself stays put and goes faint while it is carried. */
html.is-carrying, html.is-carrying * { cursor: var(--cur-none, none) !important; }
[data-drag] { touch-action: none; }
[data-drag="pan"] { touch-action: pan-y; }

.ghost {
  position: absolute; left: 0; top: 0; z-index: var(--z-ghost);
  pointer-events: none; transform-origin: 0 0; will-change: transform;
}
.ghost * { pointer-events: none !important; }
/* The stand-ins carry their ancestors' classes for the rules only. A `display: contents` box still
   draws its ::before and ::after, which put a window's corner knot and head shadow on the copy. */
.ghost .ghost__stand::before, .ghost .ghost__stand::after { content: none !important; }
[data-drag].is-carried { opacity: .4; }
.is-carried [data-drag].is-carried { opacity: 1; } /* a row that fades as a whole (Pet Slot) */

/* ---- 40-hud.css */
/* THE ALWAYS-ON HUD, the blocks gui/hud/ builds (PLAN P09): the left rail (status line, your block,
   the Attack pet, the account fan), the boards' row and the run's reward, the minimap column (map,
   tile, tracker, presence), the menu tiles, and the bars (P10), the party rail (P12), the root, the stick and the
   chat: everything that was hud.css, with the same look.

   The language: no panels. No box, border or well on this layer: text and
   gauges straight on the world, a row on its own soft navy wash where it needs one, white type with
   a soft shadow, painted icons with a drop shadow. The Midnight Astrolabe's brass (owner, 2026-10-07)
   goes only where a box would not: a ring round a face and the minimap, a thin plate under a level
   and name, hairlines, the slot frames (tokens: 00-tokens.css "hud" block). Positions are keyed on the mode gui/mode.ts writes
   on <html> (html.m-mobile), never on a width. Every block is a direct child of .hud, a STAGE
   (ui/10-base.css .stage): every size here is design px, scaled with the whole UI by the stage's
   zoom; no block wears a zoom of its own (the minimap is sharp by its backing store, right.ts). */

/* --------------------------------------------------------------- THE ROOT */
/* The HUD's tokens (--hud-*) are ui/00-tokens.css's, on :root, so a detached chat window and the
   world plates read the same values as the rail. The root is a STAGE (ui/10-base.css .stage: the
   glass less the notch and the home bar, clipped, in design px): every block is placed from its
   edges, and only a .bleed child (the drawer, the dial's bands) reaches the screen's edge. */
.hud {
  position: fixed;
  pointer-events: none;
  user-select: none;
  z-index: 10;
  font-family: var(--hud-face);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--hud-text);
  text-shadow: var(--hud-shadow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --hud-menu-row: 50px;
}
/* The HUD's pictures are sampled, never smoothed (the look gs.css's `.gs img` gave it). */
.hud img { image-rendering: pixelated; }
/* Except the painted icons: 256 px art drawn at 44 px aliases when sampled, so they smooth. */
.hud .hud-ibtn img, .hud .hud-tgl img { image-rendering: auto; }
.hud > * { position: absolute; pointer-events: auto; z-index: 1; }
/* A .bleed block escapes the frame's clip (ui/10-base.css): fixed, its box the whole glass. */
.hud > .bleed { position: fixed; }
/* ONE COMPOSITOR LAYER PER BLOCK, never one for the HUD. Left alone, the blocks over the canvas
   fall into one shared layer as big as their union, the whole glass (2462 x 1081 device px, 10 MB,
   on a 2.75x phone, 2026-10-11): each block is its own small layer instead, the size of what it
   paints. The bottom strip is the screen's width, so its halves and its plate are layers of their
   own. The strip is a layer too though it paints nothing: left out, the HUD root stayed a
   full-screen layer to keep it in order over the canvas (phone, 2026-10-11). An empty layer costs
   no tiles. Nothing in a block is position: fixed, which this would pin to the block. */
.hud > *, .hud-strip__half, .hud-strip__plate { will-change: transform; }
.hud button { font: inherit; color: inherit; letter-spacing: inherit; text-shadow: inherit; }
/* Two thumbs on the glass - the stick and a slot - are play, not a pinch (a no-op for a mouse). */
.hud button { touch-action: none; }
/* Offline (main.ts, the freeze): the whole HUD is inert while the socket is down. Every block
   re-enables its own pointer events, so the kill has to reach them all. */
.hud.is-offline, .hud.is-offline * { pointer-events: none !important; }
/* No focus ring on the HUD or in a window: nothing here is reached with the keyboard (Tab walks the
   account's characters), and a ring left by a click reads as "still armed". The composer keeps
   its caret. */
.hud :focus, .hud :focus-visible, .win :focus, .win :focus-visible { outline: none; }

/* THE ROW: the one building block, a wash the height of its own content and nothing else. */
.hud-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  background: var(--hud-wash);
}
.hud-row--rev { background: var(--hud-wash-rev); }

/* THE STICK (joystick.ts), mobile mode: a faint ring bottom left and a knob that follows the thumb;
   see-through at rest, a step brighter under a thumb. The chat's drawer, out, covers it (a tap
   there shuts the drawer). The whole ring is the hit box (joystick.ts measures it). */
:where(html.m-mobile) .hud .hud-joy {
  /* 120 px (owner, 2026-10-11: 165 was too big and sat over the party list), a step in from the
     corner toward the middle (owner, 2026-10-30: a palm on the corner walked; 96 HUD px in) and
     up off the bottom (owner, 2026-11-01: 60 HUD px up, was 30). */
  left: calc(var(--hud-edge) + 96px); right: auto; top: auto; bottom: calc(var(--hud-edge) + 60px);
  width: 120px; height: 120px; border-radius: 50%; z-index: 2; touch-action: none;
  background: radial-gradient(circle, rgba(var(--fx-white-rgb), .05) 0 55%, rgba(var(--fx-white-rgb), .12) 70%, rgba(var(--fx-white-rgb), .02) 71%);
  box-shadow: inset 0 0 0 2px rgba(var(--fx-white-rgb), .22), 0 0 0 1px rgba(var(--shadow-ink), .25);
  opacity: .7; transition: opacity .15s linear;
}
:where(html.m-mobile) .hud .hud-joy.is-on { opacity: 1; }
:where(html.m-mobile) .hud-joy__knob {
  --jx: 0%; --jy: 0%;
  position: absolute; left: 50%; top: 50%; width: 40%; height: 40%; border-radius: 50%; pointer-events: none;
  transform: translate(calc(-50% + var(--jx) * 2.5), calc(-50% + var(--jy) * 2.5));
  background: radial-gradient(circle at 40% 35%, rgba(var(--fx-white-rgb), .55), rgba(var(--fx-white-rgb), .22) 70%);
  box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .35), 0 2px 6px rgba(var(--shadow-ink), .35);
}
:where(html.m-mobile) .hud-joy.is-on .hud-joy__knob { background: radial-gradient(circle at 40% 35%, rgba(var(--fx-white-rgb), .75), rgba(var(--fx-white-rgb), .35) 70%); }
/* THE STICK'S DEAD CORNER (joystick.ts): the frame's bottom-left corner up to the ring's centre,
   under the ring, takes a touch and does nothing with it: a palm or a thumb resting on the corner
   neither starts the stick nor walks on the world. The ring itself stays the stick where it
   overlaps. Drawn as nothing. */
:where(html.m-mobile) .hud .hud-joyguard {
  left: 0; right: auto; top: auto; bottom: 0; z-index: 1; touch-action: none;
  width: calc(var(--hud-edge) + 96px + 60px); height: calc(var(--hud-edge) + 60px + 60px);
}
/* A fight is turn based and walks nowhere (P12): the stick goes for the whole fight, result banner
   included (main.ts writes `.is-fight` on the root on the edge). */
.hud.is-fight :is(.hud-joy, .hud-joyguard) { display: none; }

/* The root's mobile numbers (every block's mobile layout is under MOBILE MODE below): the mode is
   the player's (gui/mode.ts), never a width; the safe area is the frame's (THE ROOT above). */
:where(html.m-mobile) .hud {
  --hud-edge: 6px;
  --hud-slot: 38px;
  /* The round buttons standing alone (the chat's, Fly, the menu tile, the account face): one size,
     a finger's 44px widened by a pseudo element, never by the drawing. */
  --m-btn: 32px;
  /* The column left of the map (the account face, Fortuna, the Event Center, the menu tile) a step
     smaller (owner, 2026-11-01), each still a 44px tap on its pseudo ring. */
  --m-side: 30px;
}

/* ------------------------------------------------------------- THE LEFT RAIL */
/* You and your team in one column, your deployed pet beside you, top-aligned. The pet column is
   fixed so your own gauges keep one width whether a pet is out or not. */
.hud-left {
  left: var(--hud-edge);
  top: var(--hud-edge);
  width: 540px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
/* Only the drawn blocks take a press. The row and the rail run as tall as the party list, so the
   open ground under the pet and under the party picture stays the world's. */
.hud-self, .hud-pet, .hud-party__frames, .hud-party__gear { pointer-events: auto; }
.hud-top { position: relative; display: flex; flex-direction: row; align-items: flex-start; gap: 6px; }
/* Sized as if the pet's 230px column and the gap were always there (owner, 2026-09-13). */
.hud-selfcol { flex: 0 0 calc(100% - 236px); min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hud-self { display: flex; flex-direction: column; gap: 2px; width: 100%; }

/* ------------------------------------------------------------- THE PARTY RAIL */
/* Your team under your own block (panels/party.ts): each teammate is your status block one size
   down, with no experience track and no class ring; the party picture stands right of the first.
   A press aims the next cast, right-click or a long press is the teammate's verbs. */
.hud-party { display: flex; flex-direction: column; gap: 2px; }
.hud-party__rail { display: flex; align-items: flex-start; gap: 4px; }
.hud-party__rail[hidden] { display: none; }
.hud-party__frames { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hud-party .hud-party__gear { flex: none; width: 40px; height: 40px; margin-top: 4px; }
.hud-party .hud-party__gear:disabled { opacity: .55; cursor: var(--cur-busy, progress); }
.hud-party__row { position: relative; cursor: var(--cur-hand, pointer); user-select: none; -webkit-touch-callout: none; }
/* The teammate the next cast is aimed at (in a fight): a light round the portrait. */
.hud-party__row.is-on .hud-portrait { box-shadow: 0 0 0 2px var(--hud-gold); }
/* The party leader: a navy coin ringed in brass, the gold star on it, on the portrait's top right, a teammate's and your own
   (owner 2026-11-05, Discord: the old 12 px star before the level was too hard to see). Above the
   ring (z 3); the Ticket emblem keeps the bottom left. */
.hud-lead {
  position: absolute; z-index: 5; top: -6px; right: -6px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; pointer-events: none;
  background: var(--navy-1); box-shadow: 0 0 0 2px var(--brass), 0 0 6px rgba(var(--hud-gold-rgb), .55), 0 1px 3px rgba(var(--shadow-ink), .8);
}
.hud-lead[hidden] { display: none; }
.hud-lead .ic { width: 15px; height: 15px; }
:where(html.m-desktop) .hud-self__block:not(.hud-self__block--sm) .hud-lead { top: -8px; right: -8px; width: 28px; height: 28px; }
:where(html.m-desktop) .hud-self__block:not(.hud-self__block--sm) .hud-lead .ic { width: 19px; height: 19px; }

/* The status block: a round portrait in its brass ring, and beside it one frame holding a slim
   header (level and name) over the two gauges, the figures inside the bar. The pet's is the same
   block a size down. A grid: the face and the frame centre on each other in the first row, the
   marks take a second row under the frame, so a buff never lifts the gauges (owner, 2026-10-10). */
.hud-self__block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  row-gap: 2px;
  --hud-pic: 60px;
  --hud-pad-l: 17px;
  /* The gauges start on the rail's one column however big the face beside them is. */
  column-gap: calc(var(--hud-gauge-x) - var(--hud-pad-l) - var(--hud-pic));
  /* The left and top padding are the ring's: it overhangs the portrait and the screen edge is
     right there. */
  padding: 12px 8px 8px var(--hud-pad-l);
  background: none;
}
.hud-self__rows { display: contents; }
/* The level and the name always share a line: a long name stays on the right of the level and ends
   in an ellipsis, never dropping under it (owner, 2026-10-10). */
.hud-self__id { position: relative; z-index: 0; display: flex; align-items: baseline; gap: 0 7px; min-height: 20px; margin-bottom: 4px; }
/* The level and the name in the UI sans, like every name (owner, 2026-10-08). */
.hud-self__lvl { flex: none; font-family: var(--hud-face); font-weight: var(--face-weight); color: var(--hud-gold); font-size: var(--fs-lg); letter-spacing: .02em; }
.hud-self__name { flex: 1 1 0; min-width: 0; font-family: var(--face-ui); font-weight: var(--face-weight); font-size: var(--fs-lg); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The Tamer Ticket emblem, a coin on the portrait's bottom-left edge, over the ring. */
.hud-self__ticket {
  --ico-box: 26px;
  position: absolute;
  z-index: 4;
  left: -9px;
  bottom: -9px;
  filter: drop-shadow(0 1px 2px rgba(var(--shadow-ink), .85));
  cursor: var(--cur-hand, pointer);
}
.hud-self__ticket[hidden] { display: none; }

/* A gauge: one bar shape in the game, a rounded strip; the fill its own colour under the sheen and
   grain (--bar-sheen, on the line's ::after, above the fill); its plain word (HP, MP, owner
   2026-10-09) inside at the left and the figures centred over it. The fill is a transform (--v,
   0..1), never a width. */
.hud-vital { display: flex; align-items: center; }
.hud-vital__bar { position: relative; flex: 1; min-width: 0; height: 13px; }
.hud-vital__k {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-family: var(--hud-face);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  color: rgba(var(--fx-white-rgb), .82);
  text-shadow: 0 1px 1px rgba(var(--shadow-ink), .9), 0 0 3px rgba(var(--shadow-ink), .7);
}
.hud-vital__line {
  position: absolute;
  inset: 0;
  background: rgba(var(--hud-well-rgb), .85);
  border: 1px solid rgba(var(--shadow-ink), .9);
  box-shadow: var(--hud-gauge-rim);
  border-radius: 99em;
  overflow: hidden;
  isolation: isolate;
}
.hud-vital__line::after { content: ""; position: absolute; inset: 0; background: var(--bar-sheen); mix-blend-mode: overlay; pointer-events: none; }
.hud-vital__fill { display: block; height: 100%; width: 100%; background: var(--bar-dim), var(--hud-hp); }
.hud-vital--mp .hud-vital__fill { background: var(--bar-dim), var(--hud-mp); }
.hud-vital__fill--x { width: 100%; transform: scaleX(var(--v, 0)); transform-origin: left center; transition: transform 200ms linear; }
@media (prefers-reduced-motion: reduce) { .hud-vital__fill--x { transition: none; } }
.hud-vital__v {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-family: var(--hud-face);
  font-size: var(--fs-xs);
  line-height: 1;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--hud-text);
  text-shadow: 0 1px 1px rgba(var(--shadow-ink), .9);
}

/* The portrait: a round navy face in the brass astro ring alone (no class sigil: owner,
   2026-10-09), every one the same: black out to the ring, no drop shadow, no hairline inside it
   (owner, 2026-10-10). z 1: the face and its ring stand over the gauges' frame, which starts
   behind it. */
.hud-portrait {
  position: relative;
  z-index: 1;
  display: block;
  flex: none;
  width: 60px;
  height: 60px;
  padding: 4px;
  border-radius: 50%;
  cursor: var(--cur-arrow, default);
}
/* The black disc out to the ring's inner edge: the ring hangs past the well, and nothing of the
   world shows between them. */
.hud-portrait::before {
  content: "";
  position: absolute;
  inset: calc(2px - var(--hud-ring-out));
  border-radius: 50%;
  background: var(--void);
}
.hud-portrait::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: calc(-1 * var(--hud-ring-out));
  background: var(--art-ring) center / 100% 100% no-repeat;
  pointer-events: none;
}
.hud-portrait__face { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: rgba(var(--hud-ink-rgb), .8); }
/* A player's head is drawn on black, not on the well colour. */
.hud-portrait__face.is-dark { background: var(--void); }
.hud-portrait__face img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
/* A pet with no bust: its head icon, filling the well. */
.hud-portrait__face > .ico { width: 100%; height: 100%; }
/* The head crop is a square of head, neck and shoulders: blown up about the face for the big well. */
.hud-portrait__crop { position: absolute; inset: 0; transform: translateY(-11%) scale(1.38); transform-origin: 50% 36%; }
.hud-portrait--sm img { transform: scale(1.15); transform-origin: 50% 40%; }
.hud-portrait--sm { width: 44px; height: 44px; padding: 2px; }

/* THE GAUGES' FRAME (owner, 2026-10-09, after the old client's status plate): your health and mana,
   and your Attack pet's, stacked in one slim navy frame with a brass hairline, both solid (owner,
   2026-10-10), its left end tucked behind the portrait's ring, its right end a shallow point. The hairline is
   the frame's own ground showing 1px round the navy (::before), both cut to the same point. The
   bars inside lose their own rim: the frame is it. The party's rows keep the bare gauges. */
:is(.hud-self, .hud-pet) .hud-self__gauges {
  --tuck: 24px;
  --tip: 9px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: calc(-1 * var(--tuck));
  padding: 5px calc(var(--tip) + 5px) 5px calc(var(--tuck) + 4px);
  background: rgba(var(--brass-rgb), .55);
  clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%);
}
:is(.hud-self, .hud-pet) .hud-self__gauges::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: rgba(var(--navy-2-rgb), .92);
  clip-path: polygon(0 0, calc(100% - var(--tip) + .5px) 0, 100% 50%, calc(100% - var(--tip) + .5px) 100%, 0 100%);
}
/* The frame's header: level and name on one slim line above the bars, ellipsised, no rule
   under it. */
:is(.hud-self, .hud-pet) .hud-self__gauges > .hud-self__id {
  flex-wrap: nowrap; align-items: center; min-height: 0; margin: 0; line-height: 1.1;
}
:is(.hud-self, .hud-pet) .hud-self__gauges > .hud-self__id :is(.hud-self__lvl, .hud-self__name) { font-size: var(--fs-md); text-shadow: 0 1px 1px rgba(var(--shadow-ink), .9); }
:is(.hud-self, .hud-pet) .hud-self__gauges > .hud-self__id .hud-self__name { min-width: 0; }
.hud-pet .hud-self__gauges > .hud-self__id :is(.hud-self__lvl, .hud-self__name) { font-size: var(--fs-sm); }
:is(.hud-self, .hud-pet) .hud-self__gauges .hud-vital__bar { height: 14px; }
:is(.hud-self, .hud-pet) .hud-self__gauges .hud-vital__line { border-color: rgba(var(--shadow-ink), .8); box-shadow: none; }
.hud-pet .hud-self__gauges { --tuck: 18px; --tip: 8px; gap: 2px; padding-top: 3px; padding-bottom: 3px; }
.hud-pet .hud-self__gauges .hud-vital__bar { height: 12px; }

/* The small block (the Attack pet): its gauges start a normal gap from its own portrait, one line
   for level and name. */
.hud-self__block--sm { --hud-pic: 44px; --hud-pad-l: 24px; column-gap: 8px; padding: 4px 8px 6px var(--hud-pad-l); }
.hud-self__block--sm .hud-self__id { flex-wrap: nowrap; min-height: 18px; margin-bottom: 3px; }
.hud-self__block--sm .hud-self__lvl, .hud-self__block--sm .hud-self__name { font-size: var(--fs-md); }
.hud-self__block--sm .hud-self__name { flex: 1 1 auto; min-width: 0; }
/* A member at 0 HP (status.ts is-fallen): the face and both bars in grey, still readable. */
.hud-self__block.is-fallen .hud-portrait__face,
.hud-self__block.is-fallen .hud-vital { filter: grayscale(1) brightness(.75); }
.hud-self__block--sm .hud-vital__bar { height: 13px; }
.hud-self__block--sm .hud-vital__v { font-size: var(--fs-xs); padding: 0 4px; }

/* The Attack pet's column, to the right of its owner. */
.hud-side { flex: 0 0 230px; min-width: 0; max-width: 230px; display: flex; flex-direction: column; gap: 6px; }
.hud-pet { flex: none; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hud-pet[hidden] { display: none; }

/* THE MARKS: a body's buffs and your boons, the block's second row, under the gauges. A picture and a number:
   15px, the meaning on the rim (helpful green, hostile red, a boon gold) over a dark ring that
   keeps it legible on grass; the time left (or a boon's multiplier) in the corner, sized to its
   digits. The words are the card. */
.hud-buffs { grid-column: 2; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.hud-buffs:empty { display: none; }
.hud-mark {
  position: relative;
  width: 15px;
  height: 15px;
  box-shadow: 0 0 0 1px var(--moss-400), 0 0 0 2px var(--border-hard);
  cursor: var(--cur-arrow, default);
}
.hud-mark.is-bad { box-shadow: 0 0 0 1px var(--ember-400), 0 0 0 2px var(--border-hard); }
.hud-mark.is-boon { box-shadow: 0 0 0 1px var(--hud-gold), 0 0 0 2px var(--border-hard); background: var(--border-hard); }
.hud-mark > .ico { --ico-box: 15px; }
/* A status with no picture of its own (a dozen buff rows carry none) is still a mark: the rim's
   colour fills it. */
.hud-mark > .ico[data-ico=""] { background-color: var(--moss-400); }
.hud-mark.is-bad > .ico[data-ico=""] { background-color: var(--ember-400); }
.hud-mark > img.g { display: block; width: 100%; height: 100%; object-fit: contain; }
.hud-mark > b {
  position: absolute;
  right: -3px;
  bottom: -3px;
  padding: 0 1px;
  border-radius: 2px;
  background: rgba(var(--hud-night-rgb), .82);
  color: var(--text);
  font-family: var(--face-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1;
  text-shadow: none;
}
.hud-mark > b:empty { display: none; }

/* ------------------------------------------------- THE ACCOUNT FAN */
/* The character being played, as a face in the astro ring with the switch badge on its edge: on
   desktop right over the menu, in mobile mode under the minimap (MOBILE MODE below).
   Pressed, the account's other characters unroll in a row to its LEFT over the world on a night
   wash with two fading brass hairlines (no box), each named over its ring and a little dimmed, the
   + the last, an empty seat in a dashed ring; the played face stays put, ringed and named in gold. gui/hud/left.ts
   writes each seat's --i and the count --n. */
/* Desktop (owner, 2026-10-24): at the top right, left of the map column (the map's width and an
   8px gap; the boards stand in the menu since 2026-10-28). The fan still unrolls to the left; the
   names sit under the rings here, the screen's edge being above. */
.hud .hud-switch {
  left: auto; bottom: auto; top: var(--hud-edge);
  right: calc(var(--hud-edge) + var(--map-w, 216px) + 8px);
  width: 44px; height: 44px; z-index: 3; --fan-step: 62px;
}
:where(html.m-desktop) .hud-switch .hud-account__name { bottom: auto; top: calc(100% + 5px); }
/* No panel on a desktop (owner, 2026-10-24: "hilangkan saja background"): the faces, their names
   (shadowed to read over the world), the + and the fold mark stand bare. The mobile wash is off here. */
:where(html.m-desktop) .hud .hud-switch::before { content: none; }
/* The fold mark: the bare painted chevron, no disc, at the row's far end or beside the face once
   rolled up; it points the way the row will go. */
.hud-switch__fold {
  appearance: none; position: absolute; left: 0; top: 0; width: 22px; height: 30px; padding: 0; margin: 0;
  border: 0; background: none; display: grid; place-items: center; cursor: var(--cur-hand, pointer);
  filter: drop-shadow(0 0 1px rgba(var(--shadow-ink), 1)) drop-shadow(0 1px 2px rgba(var(--shadow-ink), .9)); opacity: .9;
  transform: translate(-50%, -50%) translateX(-36px);
  transition: transform .18s ease-out, opacity .15s ease-out, filter .15s ease-out;
}
.hud-switch__fold > .ic { width: 15px; height: 15px; transition: transform .18s ease-out; }
.hud-switch__fold.is-shut > .ic { transform: scaleX(-1); }
.hud-switch__fold:hover { opacity: 1; filter: drop-shadow(0 0 1px rgba(var(--shadow-ink), 1)) drop-shadow(0 0 4px rgba(var(--hud-gold-rgb), .7)); }
.hud-switch.is-open .hud-switch__fold { transform: translate(-50%, -50%) translateX(calc(var(--n, 1) * var(--fan-step) * -1 - 36px)); }
:where(html.m-mobile) .hud-switch__fold { display: none; }
.hud-switch__btn, .hud-account__body, .hud-account__add {
  appearance: none; display: block; width: 44px; height: 44px; padding: 0; margin: 0; border: 0;
  border-radius: 50%; background: none; font: inherit; color: inherit; cursor: var(--cur-hand, pointer);
}
.hud-switch__btn { position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(var(--shadow-ink), .7)); }
.hud-switch__btn .hud-portrait, .hud-account__body .hud-portrait { cursor: inherit; transition: box-shadow .15s ease-out; }
.hud-switch__btn:hover .hud-portrait { box-shadow: 0 0 0 1px var(--hud-gold); }
/* The switch badge: the painted Switch tile, small, on the ring's lower left. */
.hud-switch__badge {
  position: absolute; z-index: 4; left: -9px; bottom: -7px; width: 22px; height: 22px;
  object-fit: contain; pointer-events: none; transition: opacity .15s ease-out;
}
.hud .hud-switch__badge { image-rendering: auto; }
.hud-switch.is-open .hud-switch__badge { opacity: 0; }
/* A pink count on a ring (left.ts, #357): private lines written to that character, unread, while
   another is played. The shut face carries the sum; open, each seat its own. */
.hud-account__n {
  position: absolute; z-index: 4; top: -3px; right: -3px; min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 7px; background: var(--chat-hot); box-shadow: 0 0 0 2px var(--navy-0);
  font: 700 var(--fs-xs)/14px var(--hud-face); font-style: normal; text-align: center; color: var(--ink-strong); text-shadow: none;
  pointer-events: none;
}
.hud-account__n[hidden], .hud-switch.is-open .hud-switch__btn > .hud-account__n { display: none; }
/* Open: the played face is lit gold (a glow past the ring), its name in gold behind a gold pip. */
.hud-switch.is-open .hud-switch__btn { filter: drop-shadow(0 0 5px rgba(var(--hud-gold-rgb), .85)) drop-shadow(0 0 2px rgba(var(--hud-gold-rgb), .6)); }
.hud-switch__btn .hud-account__name::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 4px 1px 0; vertical-align: middle;
  background: var(--hud-gold); transform: rotate(45deg); box-shadow: 0 0 4px rgba(var(--hud-gold-rgb), .9);
}
/* A name over each ring, shown only while the fan is open. */
.hud-account__name {
  position: absolute; left: 50%; bottom: calc(100% + 9px); max-width: calc(var(--fan-step) - 4px);
  transform: translateX(-50%); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: var(--hud-face); font-size: var(--fs-xs); font-weight: 600; line-height: 1.2;
  color: var(--hud-text); text-shadow: var(--hud-shadow); pointer-events: none;
  opacity: 0; transition: opacity .15s ease-out;
}
.hud-switch.is-open .hud-account__name { opacity: .85; }
.hud-switch.is-open .hud-switch__btn .hud-account__name { opacity: 1; color: var(--hud-gold); }
/* The wash: night fading out to the left, a brass hairline along its top and bottom fading with it. */
.hud-switch::before {
  content: "";
  position: absolute; right: -10px; top: 50%; height: 82px;
  width: calc(var(--n, 1) * var(--fan-step) + 70px);
  transform: translateY(calc(-50% - 7px)) scaleX(.2); transform-origin: right center;
  background:
    linear-gradient(270deg, rgba(var(--hud-gold-rgb), .5), rgba(var(--hud-gold-rgb), 0)) top / 100% 1px no-repeat,
    linear-gradient(270deg, rgba(var(--hud-gold-rgb), .5), rgba(var(--hud-gold-rgb), 0)) bottom / 100% 1px no-repeat,
    linear-gradient(270deg, rgba(var(--hud-night-rgb), .82) 0%, rgba(var(--hud-night-rgb), .6) 65%, rgba(var(--hud-night-rgb), 0) 100%);
  opacity: 0; pointer-events: none; transition: transform .18s ease-out, opacity .18s ease-out;
}
.hud-switch.is-open::before { opacity: 1; transform: translateY(calc(-50% - 7px)) scaleX(1); }
.hud-account, .hud-account__seats { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.hud-account__seats { left: 0; top: 0; }
.hud-account__body[hidden] { display: none; }
/* The others: a touch dimmed until pointed at. */
.hud-account__body .hud-portrait__face { filter: saturate(.6) brightness(.78); transition: filter .15s ease-out; }
.hud-account__body:hover .hud-portrait__face, .hud-account__body:focus-visible .hud-portrait__face { filter: none; }
.hud-account__body:hover .hud-portrait { box-shadow: 0 0 0 1px var(--hud-gold); }
.hud-account__body:hover .hud-account__name { opacity: 1; }
/* The +: an empty seat, as big as the faces, its ring dashed brass round a dim well. */
.hud-account__add {
  display: grid; place-items: center; box-sizing: border-box; color: var(--hud-gold);
  border: 2px dashed rgba(var(--hud-gold-rgb), .8);
  background: radial-gradient(circle, rgba(var(--hud-night-rgb), .7), rgba(var(--hud-night-rgb), .9));
  filter: drop-shadow(0 1px 2px rgba(var(--shadow-ink), .7));
}
.hud-account__add > .ic { width: 16px; height: 16px; opacity: .85; transition: opacity .15s ease-out; }
.hud-account__add:hover { border-style: solid; border-color: var(--hud-gold); box-shadow: 0 0 8px rgba(var(--hud-gold-rgb), .45); }
.hud-account__add:hover > .ic { opacity: 1; }
/* One seat every --fan-step to the left, nearest the button first; shut, folded behind it. */
.hud-account__body, .hud-account__add {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0; pointer-events: none;
  transition: transform .18s ease-out, opacity .18s ease-out;
  transition-delay: calc(var(--i, 0) * 20ms);
}
.hud-switch.is-open .hud-account__body, .hud-switch.is-open .hud-account__add {
  transform: translate(-50%, -50%) translateX(calc((var(--i, 0) + 1) * var(--fan-step) * -1));
  opacity: 1; pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .hud-switch::before, .hud-account__body, .hud-account__add, .hud-account__name, .hud-switch__badge { transition: none; }
}

/* ------------------------------------------------------------ THE MAP COLUMN */
/* The map's name, the minimap (the tile you stand on, the server clock and the client's own line
   in its corners), the quest tracker, presence: one column on the right edge. The minimap's
   backing store is device pixels (right.ts), so it stays sharp at any scale. */
.hud-mapcol {
  right: var(--hud-edge);
  top: var(--hud-edge);
  pointer-events: none;
  width: var(--map-w, 216px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.hud-mapcol > * { position: static; pointer-events: auto; }
/* The map's name and the map in one frame (owner, 2026-10-09): a soft navy wash the column's
   width, a brass hairline round it at low strength, so it sits with the world rather than over it. The name heads it in the display serif, between two
   hairlines that fade out from a small star. */
.hud-mapframe {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 4px 4px;
  background: linear-gradient(180deg, rgba(var(--hud-ink-rgb), .62), rgba(var(--hud-ink-rgb), .38));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .22), 0 2px 10px rgba(var(--shadow-ink), .35);
  border-radius: 3px;
}
.hud-mapframe > .hud-mapname {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-family: var(--face-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .06em;
  color: var(--brass-pale);
  text-shadow: var(--hud-shadow);
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  container-type: inline-size;
}
/* The name fits the frame by its length (owner, 2026-10-11): at most the full size, smaller as
   right.ts's --len grows, so the frame's width less the two stars and gaps holds about --len
   display-face letters (.8em each with the tracking); past the 9 px floor it ends in an ellipsis. */
.hud-mapname__t {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: max(9px, min(1em, calc((100cqi - 40px) / (var(--len, 8) * .8))));
}
/* The two hairlines either side of the name, each fading out from a small brass star. */
.hud-mapframe > .hud-mapname::before, .hud-mapframe > .hud-mapname::after {
  content: "\2726";
  flex: 1 1 0;
  min-width: 14px;
  font-family: var(--face-ui);
  font-size: 8px;
  line-height: 1;
  color: var(--brass-hi);
  text-shadow: none;
}
.hud-mapframe > .hud-mapname::before {
  text-align: right;
  background: linear-gradient(90deg, transparent, rgba(var(--brass-rgb), .55)) left center / calc(100% - 11px) 1px no-repeat;
}
.hud-mapframe > .hud-mapname::after {
  text-align: left;
  background: linear-gradient(270deg, transparent, rgba(var(--brass-rgb), .55)) right center / calc(100% - 11px) 1px no-repeat;
}
/* The whole map is the button that opens the world map. Square, a thin brass rim between two dark
   hairlines (the round ring's metal, drawn as lines), a soft shadow. Lit while hovered or open. */
.hud-map {
  --map-rim: rgba(var(--brass-rgb), .85);
  position: relative;
  appearance: none;
  padding: 0;
  border: 0;
  background: rgba(var(--hud-ink-rgb), .55);
  box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .7), 0 0 0 2px var(--map-rim), 0 0 0 3px rgba(var(--shadow-ink), .8), 0 2px 10px rgba(var(--shadow-ink), .55);
  line-height: 0;
  cursor: var(--cur-hand, pointer);
  overflow: hidden;
}
.hud-map canvas { display: block; }
.hud-map:hover { --map-rim: var(--brass-hi); }
.hud-map.is-open { --map-rim: var(--brass-pale); }
/* The server clock top right inside the map and the tile you stand on top left (owner, 2026-10-10:
   the clock's look): big enough to read at a glance, on a small dark backing so bright ground never
   eats it. The clock's card is the time to the daily reset; both are inside the button, so a press
   on either opens the world map like the rest of the map. */
.hud-clock, .hud-coord {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(var(--shadow-ink), .55);
  font-family: var(--hud-face);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  color: var(--hud-text);
  text-shadow: var(--hud-shadow);
}
.hud-clock[hidden] { display: none; }
/* The tile you stand on: the clock mirrored into the top left. */
.hud-coord { right: auto; left: 4px; pointer-events: none; }
.hud-coord:empty { display: none; }
/* The client talking about itself, bottom left inside the map: FPS and latency, one quiet line
   on the clock's dark backing, a size up from the old line under the map. */
.hud-map > .hud-conn {
  position: absolute;
  left: 4px;
  bottom: 4px;
  display: flex;
  gap: 6px;
  max-width: calc(100% - 8px);
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(var(--shadow-ink), .55);
  font-family: var(--hud-face);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--hud-dim);
  text-shadow: var(--hud-shadow);
  pointer-events: none;
}
/* The FPS is the device's figure: quiet while it keeps up, gold then red when the page draws
   slowly or reads the server late. The ms is the line's alone (#634). */
.hud-conn__fps.is-slow { color: var(--hud-gold); }
.hud-conn__fps.is-bad { color: var(--hud-hp); }
.hud-conn__ping.is-good { color: var(--hud-good); }
.hud-conn__ping.is-slow { color: var(--hud-gold); }
.hud-conn__ping.is-bad { color: var(--hud-hp); }

/* THE TRACKER: one slightly see-through black ground, square corners, no gradient washes (owner,
   2026-10-09). The head is quiet: the quest board's picture, the word in small semibold caps and a
   small target mark at the right, a thin divider under it; pressing it folds the list. Then each
   quest: its name, white (gold when pinned), and a line per objective in the muted ink - the step's
   picture, what to do, n/m right-aligned in tabular figures, and the walk mark. A full step turns
   gold with a check. Every line is the nameplate's one size (--plate-fs, owner 2026-10-10). */
.hud-track {
  font-size: var(--plate-fs);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  padding: 5px 9px 7px;
  background: rgba(0, 0, 0, .45);
  border-radius: 0;
}
.hud-track[hidden] { display: none; }
.hud-track__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(var(--fx-white-rgb), .14);
  font-size: var(--plate-fs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hud-dim);
  cursor: var(--cur-hand, pointer);
}
.hud-track__head:hover { color: var(--hud-text); }
.hud-track.is-folded .hud-track__head { padding-bottom: 0; border-bottom-color: transparent; }
.hud-track__head::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: url(/data/art/ui/hud-quests.5c771046.webp) center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(var(--shadow-ink), .7));
}
.hud-track__head-title { flex: 1; min-width: 0; }
.hud-track__mark { flex: none; width: 14px; height: 14px; object-fit: contain; opacity: .6; }
.hud-track__list { display: flex; flex-direction: column; gap: 4px; }
.hud-track__list[hidden] { display: none; }
.hud-track__q {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hud-track__title { font-size: var(--plate-fs); font-weight: 600; line-height: 1.25; color: var(--hud-text); cursor: var(--cur-hand, pointer); }
.hud-track__title:hover .hud-track__name { color: var(--hud-gold); }
.hud-track__link { cursor: var(--cur-hand, pointer); }
.hud-track__name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-track__q.is-pinned .hud-track__name { color: var(--hud-gold); }
/* P13: the one suggestion when nothing is carried (quest.ts nextOf): the name in gold, its line
   free to wrap, since it is the whole of what the tracker says. */
.hud-track__q.is-next .hud-track__name { color: var(--hud-gold); }
.hud-track__q.is-next .hud-track__what { white-space: normal; }
.hud-track__objs { display: flex; flex-direction: column; }
.hud-track__obj {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-left: 2px;
  font-size: var(--plate-fs);
  line-height: 1.35;
  color: var(--hud-dim);
}
.hud-track__ic { width: 16px; height: 16px; flex: none; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(var(--shadow-ink), .7)); }
.hud-track__obj.is-done { color: var(--hud-gold); }
.hud-track__what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-track__n { margin-left: auto; color: var(--hud-dim); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.hud-track__obj.is-done .hud-track__n { color: var(--hud-gold); }
/* Every objective met, the quest still to hand in (quest.ts trackerOf): the line is the call, so it
   is not in the finished steps' gold but in the HUD's teal, bold, its picture lit in the same teal,
   and the NPC's whole name shows: the line wraps instead of ending in an ellipsis. */
.hud-track__obj.is-hand { color: var(--hud-teal); font-weight: 700; }
.hud-track__obj.is-hand .hud-track__ic { filter: drop-shadow(0 0 3px var(--hud-teal)) drop-shadow(0 1px 1px rgba(var(--shadow-ink), .7)); }
.hud-track__obj.is-hand .hud-track__what { white-space: normal; overflow: visible; }
/* A line about a creature finds it on the world map: underlined under the pointer. */
.hud-track__link:hover { text-decoration: underline; text-underline-offset: 2px; }
.hud-track__walk {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  opacity: .7;
  cursor: var(--cur-hand, pointer);
}
.hud-track__walk > img.g { width: 16px; height: 16px; object-fit: contain; }
.hud-track__walk:hover { opacity: 1; }

/* Who walked in or out: a line on its own wash under the tracker, that removes itself. */
.hud-notes { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hud-note {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 10px 2px 8px;
  background: var(--hud-wash-rev);
  font-size: var(--fs-sm);
  color: var(--hud-dim);
  white-space: nowrap;
  animation: hud-note-in 140ms ease-out;
}
.hud-note b { font-weight: 600; color: var(--hud-text); }
.hud-note__dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: rgba(var(--fx-white-rgb), .38); }
.hud-note.is-on .hud-note__dot { background: var(--hud-good); box-shadow: 0 0 6px rgba(var(--hud-good-glow-rgb), .7); }
@keyframes hud-note-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hud-note { animation: none; } }

/* ------------------------------------------------------- THE RUN'S REWARD */
/* Left of the map column, under the account face and its name (a desktop's boards stand in the
   menu, so its row is empty here; in mobile mode they are in the drawer). */
.hud-primary {
  right: calc(var(--hud-edge) + var(--map-w, 216px) + 8px);
  top: calc(var(--hud-edge) + 72px);
  pointer-events: none; /* only its pieces take a press: the reward row widens the box over the world */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.hud-primary > * { position: static; pointer-events: auto; }
.hud-primary-menu { display: flex; flex-direction: column; gap: 4px; }
.hud-primary-menu:empty { display: none; }
/* Mobile mode's one menu and its drawer (MOBILE MODE below); a desktop has its rows. */
.hud .hud-menubtn, .hud .hud-drawer { display: none; }
/* Fortuna (panels/fortuna.ts), left of the minimap: on a desktop the column's first tile, under the
   account face, a bare painting a step larger than the menu's, with a slow gold breath behind it
   (opacity only); mobile mode's round button beside the menu's (MOBILE MODE below). */
/* Big enough not to be missed on any ground (owner, 2026-10-31): a 56 px star on a dark night halo
   (::after, so a thin gold star still reads on sand or snow) with the gold breath over it (::before),
   and every few seconds the star swells a little and glints (below). Like the Event Center's
   tile: the drop shadow on the paintings, not the button (on the button it re-blurred the moving
   breath every frame), three beats when the HUD comes up, then still; a finger's device never runs
   them (#238: an endless animation is a style recalc every frame, in fights too). */
.hud .hud-fortuna { width: 56px; height: 56px; isolation: isolate; }
.hud .hud-fortuna, .hud .hud-fortuna:hover { filter: none; }
.hud .hud-fortuna > img { filter: drop-shadow(0 1px 2px rgba(var(--shadow-ink), .7)); }
.hud .hud-fortuna:hover > img.g { filter: drop-shadow(0 1px 2px rgba(var(--shadow-ink), .7)) brightness(1.2); }
.hud .hud-fortuna::after {
  content: ""; position: absolute; inset: 2px; z-index: -2; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(10, 14, 38, .85), rgba(20, 16, 52, .6) 55%, rgba(20, 16, 52, 0));
}
.hud .hud-fortuna::before {
  content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--hud-gold-rgb), .55), rgba(186, 120, 255, .18) 60%, transparent);
  opacity: .8;
  animation: hud-fortuna 3.2s ease-in-out 3 alternate;
}
@keyframes hud-fortuna { from { opacity: .25; } to { opacity: .8; } }
/* The star's glint: frames 2 (the flare) and 3 (its fade) over frame 1, each faded in and out in
   turn on one 3.6 s beat; opacity only, so it never restyles or repaints the HUD. */
.hud .hud-fortuna > img.g { position: absolute; inset: 0; margin: auto; animation: hud-fortuna-swell 3.6s ease-in-out 3; }
@keyframes hud-fortuna-swell { 0%, 50%, 80%, 100% { transform: none; } 62% { transform: scale(1.12); } }
.hud .hud-fortuna > .hud-fortuna__f { opacity: 0; z-index: 1; pointer-events: none; animation: hud-fortuna-f2 3.6s linear 3, hud-fortuna-swell 3.6s ease-in-out 3; }
.hud .hud-fortuna > .hud-fortuna__f3 { animation-name: hud-fortuna-f3, hud-fortuna-swell; }
@keyframes hud-fortuna-f2 { 0%, 52% { opacity: 0; } 60% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes hud-fortuna-f3 { 0%, 62% { opacity: 0; } 70% { opacity: 1; } 84%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hud .hud-fortuna::before, .hud .hud-fortuna > img { animation: none; } }
@media (hover: none) and (pointer: coarse) { .hud .hud-fortuna::before, .hud .hud-fortuna > img { animation: none; } }
/* Fortuna and, right under it, the Event Center (owner, 2026-11-01): one column in both modes. The
   Event Center a painting a step smaller than the star, on the same dark night halo so it reads on
   any ground; its gold motes while an event's shop is open (.hud-ibtn--event, .hud-motes). */
.hud-feature { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.hud-feature > * { pointer-events: auto; }
.hud .hud-events { width: 46px; height: 46px; isolation: isolate; }
.hud .hud-events > img.g { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; }
.hud .hud-events::after {
  content: ""; position: absolute; inset: 2px; z-index: -2; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(10, 14, 38, .8), rgba(20, 16, 52, .55) 55%, rgba(20, 16, 52, 0));
}

/* A tile: a bare painted object (no plate); a drop shadow, a lift under the pointer, a dip when pressed,
   a gold glow while its window is open, and the red dot when something waits. */
.hud-ibtn {
  appearance: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  filter: drop-shadow(0 1px 2px rgba(var(--shadow-ink), .7));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: var(--cur-hand, pointer);
  transition: transform 80ms ease;
}
.hud-ibtn[hidden] { display: none; }
.hud-ibtn > img.g { width: 100%; height: 100%; object-fit: contain; }
.hud-ibtn:hover { filter: drop-shadow(0 1px 2px rgba(var(--shadow-ink), .7)) brightness(1.2); transform: translateY(-1px); }
.hud-ibtn.is-down { transform: translateY(1px) scale(.95); }
.hud-ibtn.is-open { filter: drop-shadow(0 0 4px rgba(var(--hud-gold-rgb), .85)); }
.hud-dot {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hud-hp);
  box-shadow: 0 0 0 1px var(--border-hard);
  pointer-events: none;
}
.hud-dot[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hud-ibtn, .hud-ibtn:hover, .hud-ibtn.is-down { transition: none; transform: none; } }

/* THE LIVE EVENT'S TILE GLITTERS (owner, 2026-09-26): a gold glow breathing behind the painting
   and six motes rising off it, never catching the pointer. The drop shadow goes on the painting,
   not the button: on the button it re-blurred the moving glow every frame (2026-09-28 trace).
   Three breaths when the tile comes up, then the still pose a finger's device always shows: an
   endless animation is a style recalc every frame and a layer per mote, the glow and motes alone
   40% of an idle desktop HUD's tile quads (#238, 2026-10-25 bench). */
.hud-ibtn--event { isolation: isolate; }
.hud .hud-ibtn--event, .hud .hud-ibtn--event:hover { filter: none; }
.hud-ibtn--event > img.g { filter: drop-shadow(0 1px 2px rgba(var(--shadow-ink), .7)); }
.hud-ibtn--event:hover > img.g { filter: drop-shadow(0 1px 2px rgba(var(--shadow-ink), .7)) brightness(1.2); }
.hud-ibtn--event::before {
  content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--hud-event-hi-rgb), .55) 0%, rgba(var(--hud-event-rgb), .18) 45%, transparent 70%);
  opacity: .8;
  animation: hud-event-glow 2.4s ease-in-out 3;
  pointer-events: none;
}
.hud-motes { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.hud-motes i {
  position: absolute; bottom: 6px; width: 3px; height: 3px; border-radius: 50%;
  background: var(--hud-spark); box-shadow: 0 0 4px 1px rgba(var(--hud-spark-glow-rgb), .85);
  opacity: .75; transform: translate(var(--drift, 3px), var(--rise));
  animation: hud-event-mote 2.6s ease-out 3 backwards;
}
.hud-motes i:nth-child(1) { left: 22%; animation-delay: 0s; }
.hud-motes i:nth-child(2) { left: 70%; animation-delay: .45s; width: 2px; height: 2px; }
.hud-motes i:nth-child(3) { left: 45%; animation-delay: .9s; }
.hud-motes i:nth-child(4) { left: 82%; animation-delay: 1.35s; width: 2px; height: 2px; }
.hud-motes i:nth-child(5) { left: 12%; animation-delay: 1.8s; width: 2px; height: 2px; }
.hud-motes i:nth-child(6) { left: 58%; animation-delay: 2.2s; }
.hud-motes i:nth-child(even) { --drift: -4px; }
/* Where each mote rests once its rise is over: caught along the way. */
.hud-motes i:nth-child(1) { --rise: -6px; }
.hud-motes i:nth-child(2) { --rise: -17px; }
.hud-motes i:nth-child(3) { --rise: -26px; opacity: .4; }
.hud-motes i:nth-child(4) { --rise: -11px; }
.hud-motes i:nth-child(5) { --rise: -21px; opacity: .55; }
.hud-motes i:nth-child(6) { --rise: -3px; }
@keyframes hud-event-glow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes hud-event-mote {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drift, 3px), -30px) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hud-ibtn--event::before { animation: none; opacity: .8; }
  .hud-motes { display: none; }
}
/* A finger's device (tier.ts isTouch, the test the art tier and the memory answer to, whatever the
   mode) keeps the glitter still from the start: every running glow and mote is a compositor layer. */
@media (hover: none) and (pointer: coarse) {
  .hud-ibtn--event::before, .hud-motes i { animation: none; }
}

/* The run's reward: label and value rows on the reversed wash. */
.hud-reward { display: flex; flex-direction: column; gap: 2px; min-width: 190px; font-size: var(--fs-sm); }
.hud-reward[hidden] { display: none; }
.hud-reward .hud-row { justify-content: space-between; }
.hud-reward .hud-row span:last-child { color: var(--hud-gold); }
.hud-reward.is-shut .hud-row span:last-child { color: var(--hud-dim); }
.hud-reward__k { color: var(--hud-dim); }
/* The run's stopwatch (gui/hud/right.ts): white digits that do not jiggle while they tick, gold and
   still once every boss is down, dim with a mark when the run cannot set a record (its card says why). */
.hud-reward .hud-runclock[hidden] { display: none; }
.hud-reward .hud-runclock span:last-child, .hud-reward.is-shut .hud-runclock span:last-child { color: var(--hud-text); font-variant-numeric: tabular-nums; }
.hud-reward .hud-runclock.is-done span:last-child { color: var(--hud-gold); }
.hud-reward .hud-runclock.is-void span:last-child { color: var(--hud-dim); }
.hud-runclock__void { margin-left: 2px; font-style: normal; color: var(--hud-dim); }
.hud-runclock__void[hidden] { display: none; }

/* ---------------------------------------------------------- THE BOTTOM STRIP */
/* gui/hud/strip.ts: one thin bar along the bottom edge, the screen's width. The left half is
   experience, filling from the left edge; the right half is energy, filling from the right edge;
   each half ticked every 10% from where it fills. A brass hairline on top. In the middle a small
   plate rises off it - a navy trapezoid on a brass hairline, the style medallion's seat between its two readouts - with
   the figures: EXP percent and the energy's percent of the game day. The halves are each half the
   stage's width. */
.hud-strip {
  left: 0; right: 0; bottom: 0; height: 0;
  /* The plate is the one flex item, centred and standing up off the bottom edge. */
  display: flex; justify-content: center; align-items: flex-end;
  pointer-events: none;
}
.hud-strip__half {
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 4px;
  overflow: hidden;
  background: rgba(var(--hud-well-rgb), .82);
  box-shadow: inset 0 1px 0 rgba(var(--brass-rgb), .4);
  pointer-events: auto;
}
.hud-strip__half--exp { left: 0; }
.hud-strip__half--en { right: 0; }
.hud-strip__fill {
  position: absolute;
  inset: 1px 0 0;
  transform: scaleX(var(--v, 0));
  transform-origin: left center;
  transition: transform 200ms linear;
  background: var(--hud-xp-fill);
}
.hud-strip__half--en .hud-strip__fill {
  transform-origin: right center;
  background: linear-gradient(270deg, var(--sky), rgba(var(--sky-rgb), .45));
}
/* The ticks, over the fill: one dark line every 10%, counted from the edge the half fills from. */
.hud-strip__half::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(var(--shadow-ink), .85) calc(10% - 1px) 10%);
}
/* Energy is the game day's progress: one tick per bar the day pays (--n, the day's cap). */
.hud-strip__half--en::after { background: repeating-linear-gradient(270deg, transparent 0 calc(100% / var(--n, 10) - 1px), rgba(var(--shadow-ink), .85) calc(100% / var(--n, 10) - 1px) calc(100% / var(--n, 10))); }
/* The day is done (every bar paid): it glows. Locked (under the level it opens at): dimmed. */
/* Three pulses when it fills, then held bright: an endless pulse was a recalc every frame (#238). */
.hud-strip__half--en.is-full .hud-strip__fill { filter: brightness(1.25); animation: hud-strip-full 1.8s ease-in-out 3; }
.hud-strip__half--en.is-locked { opacity: .45; }
@keyframes hud-strip-full { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
.hud-strip__plate {
  position: relative;
  flex: none;
  margin-bottom: 4px; /* it stands on the bar, never over its ends */
  isolation: isolate;
  /* Two equal sides round the seat, so the seat is the screen centre whatever the figures read:
     the style medallion is placed at 50% from the HUD root. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  height: 17px;
  padding: 1px 15px 0;
  font-family: var(--hud-face);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--hud-dim);
  text-shadow: 0 1px 1px rgba(var(--shadow-ink), .9);
  pointer-events: auto;
}
/* The plate's brass edge: the trapezoid cut on a pseudo of its own, not on the plate. A clip-path
   over the twinkling star made the strip an offscreen pass every frame (2026-10-14 trace); cut on
   static paint beside the star it costs nothing. */
.hud-strip__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(var(--brass-rgb), .5);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}
.hud-strip__plate::before {
  content: "";
  position: absolute;
  inset: 1px 1px 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(var(--navy-3-rgb), .95), rgba(var(--navy-0-rgb), .95));
  clip-path: polygon(9.5px 0, calc(100% - 9.5px) 0, 100% 100%, 0 100%);
}
.hud-strip__side { display: flex; align-items: baseline; gap: 5px; }
.hud-strip__side--exp { justify-self: end; }
.hud-strip__side--en { justify-self: start; }
.hud-strip__k { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--brass-rgb), .85); }
.hud-strip__n { font-weight: 700; color: var(--hud-text); }
.hud-strip__side--en .hud-strip__sub { color: var(--hud-text); }
/* The seat between the readouts: room for the hotbar style medallion (41-invoker.css .hud-hs), which
   stands in it from the HUD root and rises above the plate. */
.hud-strip__seat { width: 30px; height: 1px; }
@media (prefers-reduced-motion: reduce) {
  .hud-strip__fill { transition: none; }
  .hud-strip__half--en.is-full .hud-strip__fill { animation: none; filter: brightness(1.25); }
}

/* NADI on the strip (gui/hud/strip.ts; .is-nadi while the server's frame says on, else none of this
   applies and the strip is the plain energy bar). [data-nadi] is the tier's colour: the energy fill
   and the swatch beside the tier's number wear it (the Nadi window's too, ui/w-nadi.css). */
[data-nadi="white"] { --nadi: var(--nadi-white); }
[data-nadi="blue"] { --nadi: var(--nadi-blue); }
[data-nadi="green"] { --nadi: var(--nadi-green); }
[data-nadi="yellow"] { --nadi: var(--nadi-yellow); }
[data-nadi="gold"] { --nadi: var(--nadi-gold); }
[data-nadi="purple"] { --nadi: var(--nadi-purple); }
.hud-strip.is-nadi .hud-strip__half--en .hud-strip__fill { background: linear-gradient(270deg, var(--nadi), color-mix(in srgb, var(--nadi) 45%, transparent)); }
.hud-strip.is-nadi :is(.hud-strip__half--en, .hud-strip__side--en) { cursor: var(--cur-hand, pointer); }
.hud-strip__tier { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--hud-text); }
.hud-strip__tier[hidden] { display: none; }
.hud-strip__tier::before { content: ""; width: 6px; height: 6px; rotate: 45deg; background: var(--nadi); box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .9); }
/* The World's Heart: the hotbar style medallion's shape (41-invoker.css .hud-hs: a brass ring, a navy
   disc, the state as a picture, no text, no box), standing on the strip at the plate's energy end.
   The painting is the state; it beats at the state's pace, transform and opacity only (P16). */
.hud-nadi {
  position: absolute; left: calc(100% - 3px); bottom: -2px;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(from 200deg, var(--brass-dim), var(--brass-pale) 16%, var(--brass) 32%, var(--brass-hi) 50%, var(--brass-dim) 68%, var(--brass) 84%, var(--brass-dim));
  box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .9), 0 2px 6px rgba(var(--shadow-ink), .8);
  cursor: var(--cur-hand, pointer);
}
.hud-nadi[hidden] { display: none; }
.hud-nadi::before {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgb(var(--navy-4-rgb)), rgb(var(--navy-0-rgb)) 75%);
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .35), inset 0 2px 3px rgba(var(--shadow-ink), .7);
}
/* A finger's room in mobile mode (44 px on the glass), drawn as nothing. */
html.m-mobile .hud-nadi::after { content: ""; position: absolute; inset: calc((28px - var(--hit)) / 2); border-radius: 50%; }
.hud-nadi:hover { box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .9), 0 0 8px rgba(var(--brass-hi-rgb), .75), 0 2px 6px rgba(var(--shadow-ink), .8); }
.hud-nadi__pic { position: relative; display: grid; width: 19px; height: 19px; animation: nadi-beat 1.5s ease-in-out infinite; }
.hud-nadi__pic > img { width: 100%; height: 100%; object-fit: contain; }
.hud-nadi[data-heart="strong"] > .hud-nadi__pic { animation-duration: .85s; }
.hud-nadi[data-heart="faint"] > .hud-nadi__pic { animation-duration: 2.8s; opacity: .8; }
/* Two beats, then rest: a heart, not a pulse. */
@keyframes nadi-beat { 0%, 30%, 100% { transform: scale(1); } 8% { transform: scale(1.16); } 16% { transform: scale(1); } 23% { transform: scale(1.09); } }
/* This week's offering is still to make. */
.hud-nadi > .hud-dot { right: -1px; top: -1px; }
@media (prefers-reduced-motion: reduce) { .hud-nadi__pic { animation: none; } }

/* ---------------------------------------------------------------- THE MENU */
/* Bottom right: the systems and the boards, smaller, from the bottom up in rows of even length
   (owner, 2026-10-28; 7 + 6 since 2026-11-01), as few rows as fit beside the hotbar (gui/hud/menu.ts
   writes --menu-cols from the cached viewport and each tile's order, Settings at the bottom row's
   end). A short row stands against the right edge (owner, 2026-10-14). */
.hud-menu {
  right: var(--hud-edge);
  bottom: var(--hud-edge);
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  width: calc(var(--menu-cols, 9) * 33px - 3px);
  gap: 3px;
}
.hud-menu .hud-ibtn { width: 30px; height: 30px; }
/* Dial on a desktop: the rows stand right over the dial's box (THE DIAL below). */
:where(html.m-desktop) .hud[data-hs="dial"] > .hud-menu { bottom: calc(var(--dial-ro) + var(--dial-s) / 2 + 12px); }
.hud-menu .hud-dot { right: -1px; top: -1px; }

/* ---------------------------------------------------------------- THE BARS */
/* Bottom centre (gui/hud/bar.ts, P10): your twelve square slots edge to edge, the round toggles
   after the last one; the pet's strip a row above, its guide mark to its left. A slot is a
   see-through navy well with no frame (owner, 2026-10-28), an empty one shows the star (slot-star; the pet strip's a paw, slot-paw), the key sits bare inside the top left corner, the count
   bottom right. THE DEFAULT (PLAN D10) is a light running round the rim of the one slot the
   server stored as the next turn's action: exactly one per bar. The cooldown and the turn clock are
   one dark cover each, wiped away by a compositor animation (gui/c/slots.ts), never per frame. */
/* --hud-bar-b: the hotbar stands clear of the bottom strip and its style medallion (41-invoker.css .hud-hs). */
.hud { --hud-bar-b: 36px; }
.hud-bar { left: 50%; bottom: var(--hud-bar-b); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; }
.hud-bar__tray { display: flex; gap: 0; }
.hud-bar__knobs { display: flex; align-items: center; gap: 4px; }
/* THE PET'S STRIP (owner, 2026-10-24): at the bottom right over the menu's rows, rows of five - its
   nine slots 5 and 4 -
   its two switches stacked at its left. */
.hud-petbar {
  left: auto; right: var(--hud-edge); bottom: calc(var(--hud-edge) + var(--hud-menu-row) + 10px);
  display: flex; align-items: center; gap: 6px;
}
.hud-petbar > .hud-bar__tray { display: grid; grid-template-columns: repeat(5, var(--hud-slot)); gap: 0; }
.hud-petbar > .hud-bar__knobs { flex-direction: column; order: -1; }
/* THE INVOKER EXTRA STRIPS (gui/hud/overtake.ts, #256): the row's pieces here, where the strips
   stand and the Invoker main strip in ui/41-invoker.css. A body that is down is greyed. No key caps. */
.hud-ot[hidden] { display: none; }
.hud-ot__row { position: relative; flex: none; display: flex; align-items: center; gap: 4px; pointer-events: auto; }
:where(html.m-desktop) .hud > .hud-ot > .hud-ot__row { --hud-slot: 30px; }
.hud .hud-ot :is(.hud-tgl, .hud-ot__aim) { width: var(--hud-slot); height: var(--hud-slot); }
/* After the slots, as your own Auto and Fly stand after yours: (X) the body's auto switch, (O) its
   crosshair - pressed, it pulses until a target is clicked (auto or manual); grey and dead when down. */
.hud-ot__aim {
  appearance: none; position: relative; flex: none; width: 36px; height: 36px; margin: 0; padding: 0; border: 0;
  background: none; cursor: var(--cur-hand, pointer); touch-action: none;
}
.hud-ot__aim > img.g { position: relative; width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none; transition: filter .15s; }
.hud-ot__aim:hover > img.g { filter: brightness(1.15); }
/* Armed: the diamond lit with a gold rim, and a gold glow behind it pulsing until a fighter is
   picked. The glow is a layer of its own whose opacity alone animates (compositor only): an endless
   filter animation repainted the strip every frame. */
.hud-ot__aim::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(var(--hud-gold-rgb), .6), rgba(var(--hud-gold-rgb), .25) 60%, rgba(var(--hud-gold-rgb), 0));
}
.hud-ot__aim.is-armed > img.g { filter: brightness(1.2) drop-shadow(0 0 3px rgba(var(--hud-gold-rgb), .85)); }
.hud-ot__aim.is-armed::before { animation: hud-ot-armed 1s ease-in-out infinite; }
@keyframes hud-ot-armed { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.hud-ot__aim.is-off { cursor: var(--cur-arrow, default); }
.hud-ot__aim.is-off > img.g { filter: grayscale(1) brightness(.5); }
@media (prefers-reduced-motion: reduce) {
  .hud-ot__aim.is-armed::before { animation: none; }
  .hud-ot__aim.is-armed > img.g { filter: drop-shadow(0 0 5px rgba(var(--hud-gold-rgb), 1)); }
}
.hud-ot__tray { display: flex; gap: 4px; }
.hud .hud-ot .slot > .k { display: none; }
.hud .hud-ot__row.is-down :is(.slot, .hud-portrait) { filter: grayscale(1) brightness(.5); cursor: var(--cur-arrow, default); }
.hud .hud-ot__row.is-down .slot > .lit { display: none; }

.hud .slot {
  position: relative;
  flex: none;
  width: var(--hud-slot);
  height: var(--hud-slot);
  background: var(--hud-slot-bg);
  box-shadow: var(--hud-slot-rim);
  cursor: var(--cur-hand, pointer);
  touch-action: none;
}
.hud .slot.full:hover { box-shadow: var(--hud-slot-hover); }
.hud .slot.is-empty { cursor: var(--cur-arrow, default); }
.hud .slot.is-empty::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: url(/data/art/ui/slot-star.58379322.webp) center / 78% 78% no-repeat;
  opacity: .6; /* 40% see-through (owner, 2026-10-28) */
}
/* A pet's empty slot shows the paw instead of the star (owner, 2026-10-30): the pet strip here, the
   dial's pet ring below, the pet row on the main strip and the extra strips (41-invoker.css). */
.hud-petbar .slot.is-empty::after { background-image: url(/data/art/ui/slot-paw.94060037.webp); }
.hud .slot > .ico { position: absolute; inset: 0; margin: auto; --ico-box: calc(var(--hud-slot) - 6px); }
.hud .slot.is-locked > .ico { filter: grayscale(1) brightness(.6); }
/* A buff with a Smart Buff list (owner, 2026-10-14, panels/smart-buff.ts): a small green pip in
   the top-left corner, over the art and the frame, under nothing a press needs. */
.hud .slot.is-smart::after {
  content: ""; position: absolute; left: 4px; top: 4px; z-index: 4;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .65);
  pointer-events: none;
}
/* An item's quality, as the well's ground (00-tokens.css --q-bg-*), the same as a window's tile. */
.hud .slot.q-green { background: var(--q-bg-green); }
.hud .slot.q-blue { background: var(--q-bg-blue); }
.hud .slot.q-yellow { background: var(--q-bg-yellow); }
.hud .slot.q-gold { background: var(--q-bg-gold); }
.hud .slot.q-purple { background: var(--q-bg-purple); }
/* Prism on the hotbar is its night well only: the always-on HUD carries no moving layer. */
.hud .slot.q-prism { background: var(--q-bg-prism); }
/* The two covers, the turn clock under the cooldown; both shrink upward off the art. */
.hud .slot > .tc, .hud .slot > .cd { position: absolute; inset: 3px; z-index: 1; background: var(--hud-cover); transform-origin: 50% 0; pointer-events: none; }
.hud .slot.cooling > .tc { display: none; }
.hud .slot > .cdn {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-md); font-weight: 600; line-height: 1;
  color: var(--hud-text); text-shadow: var(--hud-shadow);
  pointer-events: none;
}
.hud .slot > .cdn:empty { display: none; }
/* THE DEFAULT'S LIGHT (owner, 2026-10-09: the travelling light of v0.13.36 / 079bd941 back in
   place of the painted frame). One bright arc runs round the default slot's rim, forever. The light
   is a conic gradient twice the slot's size, TURNED by transform so the compositor runs it -
   animating the gradient's own angle re-rastered the slot every frame on a Mali phone (2026-09-28
   trace). It shows through four strips as thick as the frame (top, bottom, left, right: the
   `span.lit > i` of gui/c/slots.ts), each an axis-aligned overflow clip, which the GPU does as a
   scissor; the ring mask it had was an offscreen pass every frame on a Mali phone (2026-10-14
   trace, #517). Each strip holds its own copy of the conic, centred on the slot. The arc is painted
   in the pale brass at the strength a screen blend of the gold gave over the frame, so it reads as
   light, not as a paler patch of metal, with no blend: a blend made the whole bar an offscreen group
   on the GPU (2026-10-11). Dim while the slot cools (on each strip: an opacity over one layer is no
   group). Around the slot, outside its edge, a still gold glow (the slot's own box-shadow, painted
   once): the bloom the light had in 079bd941, back without a filter (#542). With reduced motion
   the arc is gone and the glow alone marks the default: the still arc it had was a flat 3px band of
   brass over the rim, read as a fill on the icon (#542). */
/* The gold ring is drawn INSIDE the slot's edge (owner, 2026-11-21) and over the well's own hairline:
   the Invoker page window clips its sides (41-invoker.css), which cut an outside ring off the first
   and last slot of a page and left the default's frame open on one side. Only the bloom is outside. */
.hud { --hud-slot-glow: inset 0 0 0 1px rgba(var(--hud-gold-rgb), .85), 0 0 7px 1px rgba(var(--hud-gold-rgb), .55); }
.hud .slot.cooling, .hud .hud-ot__row.is-down .slot { --hud-slot-glow: inset 0 0 0 1px rgba(var(--hud-gold-rgb), .3), 0 0 7px 1px rgba(var(--hud-gold-rgb), .15); }
.hud .slot.opener.full:not(.is-locked) { z-index: 1; box-shadow: var(--hud-slot-glow), var(--hud-slot-rim); }
.hud .slot.opener.full:not(.is-locked):hover { box-shadow: var(--hud-slot-glow), var(--hud-slot-hover); }
.hud .slot > .lit {
  display: none;
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
}
.hud .slot.opener.full:not(.is-locked) > .lit { display: block; }
.hud .slot > .lit > i { position: absolute; overflow: hidden; --x: 0px; --y: 0px; }
.hud .slot > .lit > i:nth-child(1) { left: 0; top: 0; width: 100%; height: 3px; }
.hud .slot > .lit > i:nth-child(2) { left: 0; bottom: 0; width: 100%; height: 3px; --y: calc(var(--hud-slot) - 3px); }
.hud .slot > .lit > i:nth-child(3) { left: 0; top: 3px; width: 3px; bottom: 3px; --y: 3px; }
.hud .slot > .lit > i:nth-child(4) { right: 0; top: 3px; width: 3px; bottom: 3px; --x: calc(var(--hud-slot) - 3px); --y: 3px; }
.hud .slot > .lit > i::before {
  content: "";
  position: absolute;
  left: calc(var(--hud-slot) / -2 - var(--x)); top: calc(var(--hud-slot) / -2 - var(--y));
  width: calc(var(--hud-slot) * 2); height: calc(var(--hud-slot) * 2);
  background: conic-gradient(
    transparent 0 54%, rgba(var(--brass-pale-rgb), .24) 64%, rgba(var(--brass-pale-rgb), .78) 72%,
    #fffaf0 78%, rgba(var(--brass-pale-rgb), .78) 84%, rgba(var(--brass-pale-rgb), .24) 92%, transparent 100%);
  animation: hud-slot-lit 3.2s linear infinite;
}
@keyframes hud-slot-lit { to { transform: rotate(360deg); } }
.hud .slot.cooling > .lit > i { opacity: .28; }
@media (prefers-reduced-motion: reduce) { .hud .slot.opener.full:not(.is-locked) > .lit { display: none; } }
.hud .slot > .ct {
  position: absolute; right: 3px; bottom: 2px; z-index: 4;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1;
  color: var(--hud-text); text-shadow: var(--hud-shadow);
  pointer-events: none;
}
.hud .slot > .ct:empty { display: none; }
.hud .slot > .k {
  position: absolute; left: 3px; top: 2px; z-index: 4;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1;
  color: var(--hud-key); text-shadow: var(--hud-shadow);
  pointer-events: none;
}
.hud-petbar .slot > .k { display: none; }

/* The toggles: painted diamond badges, the badge IS the button. Bright when on, dimmed when
   off; the pet's rank swaps its picture and is never dimmed (back is an answer, not "off"). Busy
   while the ask is out (gui/req.ts): the answer, not the click, lights it. */
.hud-tgl {
  appearance: none; position: relative; flex: none;
  width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: none; box-shadow: none;
  display: flex; align-items: center; justify-content: center;
  cursor: var(--cur-hand, pointer);
}
.hud-tgl > img.g { width: 100%; height: 100%; display: block; object-fit: contain; transition: filter .15s; }
.hud-tgl:not(.is-on) > img.g { filter: brightness(.45) saturate(.6); }
.hud-tgl:not(.is-on):hover > img.g { filter: brightness(.7) saturate(.8); }
.hud-tgl.is-on:hover > img.g { filter: brightness(1.15); }
.hud-tgl--front > img.g, .hud-tgl--front:hover > img.g { filter: none; }
.hud-tgl.is-down { transform: scale(.94); }
.hud-tgl.is-busy { cursor: var(--cur-busy, progress); }
.hud-tgl.is-busy > img.g { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .hud-tgl > img.g { transition: none; } .hud-tgl.is-down { transform: none; } }

/* ---------------------------------------------------------------- THE CHAT */
/* Bottom left (gui/hud/chat.ts). No box (owner, 2026-10-29): the rail (the channel tabs, then the
   conversations), then the view - solid bubbles straight over the world under a fade at the top,
   the composer's pill under them. No coloured borders anywhere: a channel's colour is in a name, an
   icon only; DMs are pink. The Midnight Astrolabe's own palette (owner, 2026-10-29): the navy ladder
   for grounds and buttons, star-white ink, brass the one accent (a thin ring on what is being read,
   the send glyph, the counts). Sized to the HUD's density (30px faces and controls, 12px
   talk) like every block. Talk is read as
   prose, so the whole block takes the UI face. */
/* About 300 HUD px from the rail to the end of the tools (owner, 2026-10-29: narrower); bubbles
   keep their share of the log and wrap sooner. */
.hud-chat {
  left: var(--hud-edge);
  bottom: var(--hud-edge);
  width: 300px;
  font-family: var(--face-ui);
  font-weight: 600;
}
/* A desktop's corner chat, out, stands on one dark plate the size of the block (owner, 2026-10-29:
   darker behind the bubbles, and never a fading shadow): clean rounded edges, no fade, no glow, no
   border; it takes no press. Hidden or in the window, it is not drawn. */
:where(html.m-desktop) .hud .hud-chat:not(.is-hidden)::before {
  content: ""; position: absolute; z-index: -1; inset: -8px; border-radius: 14px;
  background: var(--chat-plate); pointer-events: none;
}
.hud-chat[hidden] { display: none; }
/* The rail and the view, side by side: what moves into the chat's window. The rail's sizes are per
   home (a desktop corner here; the drawer and the window below): a face, a channel tab and the gap
   between tabs, the tabs a row holds, the rail's width. */
/* min-width 0: the drawer's (or window's) width rules, never the log's. A line scrolled out of the
   log keeps the layout it last had (content-visibility, .hud-line), so lines laid out wide while a
   phone's keys were up asked for that width after the keys went down, and the log stood past its drawer, your own lines at the screen's edge (#369, phone
   video 2026-11-01). */
.hud-chat__in {
  position: relative; display: flex; gap: 8px; min-height: 0; min-width: 0;
  --chat-face: 30px; --chat-bar: 30px; --chat-tab: 26px; --chat-tab-gap: 6px; --chat-chan-cols: 1; --chat-rail: var(--chat-face);
}
/* One height on a desktop's corner: the 300px log of 2026-10-29 with the tab row's room it got back
   and the composer (the chat stands as tall as it did with the tabs over the composer); the desktop
   stage is always tall enough for it under the top HUD row. Never shorter than the rail's fixed part
   (the rail is in the flow). Hidden, the composer's height alone. */
:where(html.m-desktop) .hud-chat > .hud-chat__in:not(.is-hidden) { min-height: 364px; }
/* The view: its log or panel takes what the bar and the composer leave. */
.hud-chat__main { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }
/* THE TOOLS at the view's top right, over the log's faded top (chat.ts): the chat's settings, then
   pop out (a desktop corner's), round buttons the bar's height. A bar under them (the DM bar, a
   panel's) keeps its right end clear: two buttons on a desktop, the gear alone in the drawer. The
   window takes them into its head (THE CHAT IN A WINDOW). */
.hud-chat__main > .hud-chat__tools { position: absolute; z-index: 2; top: 0; right: 0; display: flex; gap: 6px; }
.hud-chat__tools > .hud-chat__btn { width: var(--chat-bar); height: var(--chat-bar); border-radius: 50%; background: var(--navy-2); box-shadow: var(--chat-lift); }
:where(html.m-desktop) .hud .hud-chat .hud-chat__dmbar { padding-right: calc(2 * var(--chat-bar) + 14px); }
:where(html.m-mobile) .hud .hud-chat .hud-chat__dmbar { padding-right: calc(var(--chat-bar) + 8px); }
/* Which view is up: the channel logs, or the conversation and its bar. */
.hud-chat__in[data-view="dm"] .hud-log:not(.hud-log--dm),
.hud-chat__in[data-view="chat"] .hud-log--dm,
.hud-chat__in[data-view="chat"] .hud-chat__main > .hud-chat__dmbar { display: none; }
/* A panel (chat.ts: the new-DM picker, the chat's settings) stands in place of the log, over either
   view; the picker takes the composer too (its field is the search). */
.hud-chat__panel { display: none; flex-direction: column; flex: 1 1 0px; min-height: 0; }
.hud-chat__in[data-panel="new"] .hud-chat__panel--new, .hud-chat__in[data-panel="set"] .hud-chat__panel--set { display: flex; }
.hud-chat__in[data-panel] :is(.hud-log, .hud-chat__main > .hud-chat__dmbar),
.hud-chat__in[data-panel="new"] .hud-composer { display: none; }

/* THE RAIL (owner, 2026-10-30): the channel tabs on top, fixed; a short dash; the conversations
   (+, then the faces, scrolled in the room left); the chat button at the foot beside the composer.
   In the flow, the view's height: its fixed part is its least height, and the faces add none
   (.hud-chat__dmsec), so fourteen faces never run up over the party HUD (owner, 2026-10-29). */
.hud-chat__heads {
  flex: none; width: calc(var(--chat-rail) + 6px); min-height: 0; padding-left: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
/* THE CHANNELS: a grid of tabs, --chat-chan-cols a row (one in the corner and in the drawer, all
   seven in the window's list), in the strip's order. */
.hud-chans {
  flex: none; display: grid; grid-template-columns: repeat(var(--chat-chan-cols), var(--chat-tab));
  gap: var(--chat-tab-gap); justify-content: center;
}
/* Between the sections: a short navy dash, not a line across. */
.hud-chat__sep { flex: none; width: 14px; height: 2px; border-radius: 1px; background: var(--navy-3); }
/* THE CONVERSATIONS' room: what the rail leaves, adding nothing to its height (contain: size), at
   least one face's so a short frame still shows the half that says "more". */
.hud-chat__dmsec { flex: 1 1 0px; min-height: var(--chat-face); contain: size; align-self: stretch; display: flex; flex-direction: column; align-items: center; }
/* EVERY conversation's face, scrolled with no bar (chat.ts: the wheel, a mouse drag, a finger's own
   pan-y). The box hugs the faces and is pulled back by the scroller's padding, so the scroll never
   clips a count, a ring or the lift. chat.ts caps the scroller's height so the last row in sight is
   cut about in half (it reads the face, the gaps, the padding and the row's faces off these rules).
   The edge with more beyond it fades (is-more-up / is-more-down), and glows pink while an unread
   face hides there. */
.hud-chat__facebox { position: relative; flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; margin: -6px -6px -6px -10px; }
.hud-chat__faces {
  position: relative; flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 6px 6px 10px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y;
}
.hud-chat__faces::-webkit-scrollbar { display: none; }
.hud-chat__faces.is-more-up { -webkit-mask-image: var(--chat-fade-up); mask-image: var(--chat-fade-up); }
.hud-chat__faces.is-more-down { -webkit-mask-image: var(--chat-fade-down); mask-image: var(--chat-fade-down); }
.hud-chat__faces.is-more-up.is-more-down { -webkit-mask-image: var(--chat-fade-both); mask-image: var(--chat-fade-both); }
.hud-chat__glow { position: absolute; left: 0; right: 0; height: 20px; pointer-events: none; }
.hud-chat__glow--up { top: 0; background: var(--chat-glow-up); }
.hud-chat__glow--down { bottom: 0; background: var(--chat-glow-down); }
.hud-chat__glow[hidden] { display: none; }
.hud-chat__head {
  appearance: none; position: relative; flex: none; display: grid; place-items: center;
  width: var(--chat-face); height: var(--chat-face); padding: 2px; border: 0; border-radius: 50%;
  background: var(--navy-3); color: var(--ink-strong); box-shadow: var(--chat-lift); text-shadow: none;
  cursor: var(--cur-hand, pointer); transition: transform 120ms ease, opacity .15s;
}
.hud-chat__head > .hud-glyph { width: 15px; height: 15px; color: inherit; }
/* The chat button: the composer bar's height beside it, still round, at the rail's foot. */
.hud-chat__head--chat { width: var(--chat-bar); height: var(--chat-bar); background: var(--navy-2); }
.hud-chat__head--add { background: var(--navy-2); color: var(--ink-mute); }
.hud-chat__head--add > .hud-glyph { width: 14px; height: 14px; }
/* + and the gear while their panel stands in place of the log (chat.ts setPanel). */
.hud-chat__head--add.is-on, .hud-chat__tools > .hud-chat__btn.is-on { background: var(--navy-4); color: var(--ink-strong); box-shadow: var(--chat-glow-on); }
/* What is being viewed, one item across the rail (owner, 2026-10-29: no white fill, no bar, no
   coloured ring, nothing see-through or dimmed): the channel tab read in the chat view, or the face
   of the DM in view, stands a step larger in the brass ring, both the same way. */
.hud-ch.is-on, .hud-chat__face.is-on { transform: scale(1.08); box-shadow: var(--chat-glow-on); }
.hud-chat__head:hover:not(.is-on) { filter: brightness(1.15); }
.hud-chat__head.is-down { transform: scale(.92); }
/* A new DM rings its face once (chat.ts animates it). */
.hud-chat__ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--chat-dm); opacity: 0; pointer-events: none; }
/* A face: the paperdoll's head blown up about the face, as the HUD portrait does it, else the
   initial. Positioned, so it is the containing block of headEl's absolute <i> and clips it. */
.hud-chat__av {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  border-radius: 50%; background: var(--navy-2); font-size: var(--fs-sm); color: var(--ink-mute);
}
.hud-chat__av.is-dark { background: var(--void); }
.hud-chat__av > i { transform: translateY(-11%) scale(1.38); transform-origin: 50% 36%; }
.hud-chat__av--sm, .hud-chat__av--xs { flex: none; width: 20px; height: 20px; }
/* A count: brass-dim for channel lines missed, pink for DMs unread; on a face's corner. */
.hud-chat__n {
  position: absolute; top: -3px; right: -3px; min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 7px; background: var(--brass-dim); box-shadow: 0 0 0 2px var(--navy-0);
  font: 700 var(--fs-xs)/14px var(--hud-face); font-style: normal; text-align: center; color: var(--ink-strong); text-shadow: none;
}
.hud-chat__n--dm { background: var(--chat-hot); }
.hud-chat__n[hidden] { display: none; }
/* A new DM's line beside its face, right of the rail (desktop, chat view), a few seconds; a press
   opens it. chat.ts writes its top off the face. */
.hud-chat__in > .hud-chat__note {
  position: absolute; left: calc(var(--chat-rail) + 14px); top: 0; z-index: 3; translate: 0 -50%;
  display: flex; align-items: center; gap: 5px; max-width: min(280px, 90%); height: 24px; padding: 0 10px;
  border: 0; border-radius: 3px 12px 12px 3px; background: var(--chat-dm-dark); box-shadow: 0 4px 12px rgba(var(--shadow-ink), .4);
  font: inherit; font-size: var(--fs-sm); color: var(--ink-strong); text-shadow: none; white-space: nowrap;
  cursor: var(--cur-hand, pointer); transition: opacity .4s ease-out;
}
.hud-chat__note > b { flex: none; color: var(--chat-dm); }
.hud-chat__note > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hud-chat__note.is-gone { opacity: 0; }
.hud-chat__note[hidden] { display: none; }

/* THE CHANNEL TABS, the rail's top: round buttons (a Lucide glyph each in its channel's ink,
   dimmed; the name on hover), the one being read in the chat view on a step lighter fill with its
   icon full white (and the step and ring above); a channel you are in neither of is dim and says
   why on hover; a line waiting on a tab marks it with a brass dot. */
/* A finger on a face still drags its scroller (`.hud button` takes no touch pan otherwise). */
.hud-chat__faces > .hud-chat__head { touch-action: pan-y; }
.hud-ch, .hud-chat__btn, .hud-chatbtn, .hud-chat__back, .hud-chat__chip {
  appearance: none; position: relative; flex: none; padding: 0; border: 0; background: none; box-shadow: none;
  display: flex; align-items: center; justify-content: center; color: var(--ink-strong);
  cursor: var(--cur-hand, pointer); transition: transform 80ms ease;
}
.hud-ch { width: var(--chat-tab); height: var(--chat-tab); border-radius: 50%; background: var(--navy-2); box-shadow: var(--chat-lift); }
/* The channel glyphs: Lucide strokes in currentColor, the channel's ink. */
.hud-glyph { display: block; flex: none; color: var(--chan-ink, var(--ink-strong)); overflow: visible; }
.hud-ch > .hud-glyph { width: 16px; height: 16px; opacity: .6; transition: opacity .15s; }
.hud-ch:not(.is-off):hover > .hud-glyph { opacity: .85; }
.hud-ch.is-on { background: var(--navy-4); }
.hud-ch.is-on > .hud-glyph { opacity: 1; color: var(--ink-strong); }
.hud-ch.is-off { cursor: var(--cur-arrow, default); }
.hud-ch.is-off > .hud-glyph { opacity: .35; color: var(--ink-mute); }
.hud-ch.has-new::after {
  content: ""; position: absolute; right: -1px; top: -1px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 2px var(--navy-0);
}
.hud-chat__btn[hidden] { display: none; }
/* Gear, size, pop, hide, send: Lucide glyphs in the HUD's text ink (chat.ts). */
.hud-chat__btn > .hud-glyph--btn { width: 14px; height: 14px; color: var(--ink-strong); transition: filter .15s, opacity .15s; }
.hud-chat__btn:hover > .hud-glyph--btn, .hud-chat__back:hover > .hud-glyph--btn { filter: brightness(1.2); }
.hud-ch.is-down, .hud-chat__btn.is-down, .hud-chatbtn.is-down, .hud-chat__back.is-down, .hud-chat__chip.is-down { transform: scale(.92); }
/* The chat gear switched others' activity off (chat.ts). */
.hud-log--sys.no-others > .is-others { display: none; }

/* One palette per channel (00-tokens.css --chan-*): the ink a line's name, a tab's picture and the
   field's placeholder read in. A DM's is pink. */
[data-tone="all"] { --chan-ink: var(--chan-all); }
[data-tone="nearby"], .hud-line--nearby { --chan-ink: var(--chan-nearby); }
[data-tone="world"], .hud-line--world { --chan-ink: var(--chan-world); }
[data-tone="trade"], .hud-line--trade { --chan-ink: var(--chan-trade); }
[data-tone="team"], .hud-line--team { --chan-ink: var(--chan-team); }
[data-tone="guild"], .hud-line--guild { --chan-ink: var(--chan-guild); }
[data-tone="private"], .hud-line--private { --chan-ink: var(--chan-private); }
[data-tone="system"], .hud-line--sys { --chan-ink: var(--chan-system); }
[data-tone="dm"], .hud-line--dm { --chan-ink: var(--chat-dm); }

/* THE LOG scrolls with no bar (owner, 2026-10-29: as the face column; the bar showed beside my own
   bubbles). Its top fades into the world (no box). The floor is the first child's auto margin (a column packed to its end would
   leave the backlog out of reach of the scroll), and on a channel tab, where that child may be
   hidden, a spacer does it. */
.hud-log {
  flex: 1 1 0px;
  min-height: 0;
  padding: 2px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-mask-image: var(--chat-fade);
  mask-image: var(--chat-fade);
  /* chat.ts tells which way a scroll went by the scrollTop it last saw (reading position), and takes
     no line from over a reader further up: the browser's own anchoring would move scrollTop under it. */
  overflow-anchor: none;
  /* A linked item's band, in the inks lifted for text on the world. */
  --rarity-purple-text: var(--world-q-purple);
  --rarity-prism-text: var(--world-q-prism);
  --rarity-gold-text: var(--world-q-gold);
  --rarity-yellow-text: var(--world-q-yellow);
  --rarity-blue-text: var(--world-q-blue);
  --rarity-green-text: var(--world-q-green);
}
.hud-log::-webkit-scrollbar { display: none; }
.hud-log[hidden] { display: none; }
.hud-log > :first-child { margin-top: auto; }
.hud-log[data-view]:not([data-view=""])::before { content: ""; margin-top: auto; }
.hud-log[data-view]:not([data-view=""]) > :first-child { margin-top: 0; }
/* A tab shows that channel's lines alone; All shows every one but Trade. Hidden, not dropped.
   EXCEPTION (owner, 2026-10-14): Trade lines stay off All so sell/buy spam does not drown the rest;
   they show on the Trade tab alone (chat.ts showView, and its unread/peek check), unless the chat
   gear's "Include Trade chat in All" puts `with-trade` on the log. */
.hud-log[data-view="all"]:not(.with-trade) > .hud-line--trade,
.hud-log[data-view="nearby"] > .hud-line:not(.hud-line--nearby),
.hud-log[data-view="world"] > .hud-line:not(.hud-line--world),
.hud-log[data-view="trade"] > .hud-line:not(.hud-line--trade),
.hud-log[data-view="team"] > .hud-line:not(.hud-line--team),
.hud-log[data-view="guild"] > .hud-line:not(.hud-line--guild) { display: none; }
/* Another of this page's characters' party or guild (chat.ts is-other): named on All, hidden on the
   Party and Guild tabs, which are the played character's own. */
.hud-log[data-view="team"] > .hud-line.is-other,
.hud-log[data-view="guild"] > .hud-line.is-other { display: none; }
.hud-line__for { display: none; margin-right: .3em; color: var(--ink-mute); font-size: var(--fs-xs); }
.hud-line.is-other .hud-line__for { display: inline; flex: none; }
/* The conversation's lines, and its empty state. */
.hud-chat__thread { display: flex; flex-direction: column; gap: 6px; }
.hud-chat__quiet { align-self: center; padding: 2px 8px; border-radius: 9px; background: var(--navy-1); font-size: var(--fs-xs); color: var(--ink-mute); text-shadow: none; }
.hud-chat__quiet[hidden] { display: none; }

/* A phone's messenger (owner, 2026-10-10; chat.ts lineEl): everyone else down the left behind their
   round face, a solid bubble holding the channel's picture and their name in the channel's ink
   over their words; my own down the right, the bubble alone, on the lit navy. In a DM
   no name: theirs dark pink, mine pink. The clock stands beside the bubble, at its foot. A system
   line (the System tab) is no speaker's: the clock, then the words on a quiet pill. */
.hud-line {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 0 4px 0 2px;
  font-size: var(--fs-sm); /* the composer's size: a line reads as it was typed (owner, 2026-10-10) */
  line-height: 1.25;
  color: var(--ink-strong);
  text-shadow: var(--hud-shadow);
  /* A line scrolled out of the log is neither styled, laid out nor painted, its last height kept:
     the log holds up to a hundred lines a channel and showed a handful (#238: the chat's layer
     -42%, restyles -17% under a 5 lines/s flood). */
  content-visibility: auto;
  contain-intrinsic-size: auto 34px;
}
.hud-line.is-mine { flex-direction: row-reverse; }
/* The face: the paperdoll's head blown up about the face, as the HUD portrait does it. Positioned,
   so it is the containing block of headEl's absolute <i> and clips it. */
.hud-line__face {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--navy-2);
  box-shadow: 0 2px 4px rgba(var(--shadow-ink), .4);
  display: grid;
  place-items: center;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}
.hud-line__face.is-dark { background: var(--void); }
/* A speaker's face opens their menu (main.ts chatFaceMenu): the hand, and a step brighter on hover. */
.hud-line__face[data-from] { cursor: var(--cur-hand, pointer); }
:where(html.m-desktop) .hud-line__face[data-from]:hover { filter: brightness(1.2); }
.hud-line__face > i { transform: translateY(-11%) scale(1.38); transform-origin: 50% 36%; }
/* THE TAMER CUP CHAT FRAME (owner, 2026-11-16; hud/common.ts cupFrameEl, protocol CUP_FRAMES): a
   painted ring round a speaker's face, 1.5 times the face (the master's hole is cut for that), laid
   over it from beside it since the face's well clips. --cf-face is the face it goes round. A line
   is its own paint box (content-visibility), so a framed line makes the room the ring needs inside
   itself, to the left and below, and gives the height back with a negative margin: the log's rhythm
   does not move. My own lines show no face, so no frame.
   The aura is css: frame 2 a still glow, 3 a breathing one, 4 a breath and a slow turning light,
   5 two colours turning faster. Mobile mode keeps every aura still (no animation on a phone's chat). */
.cf { position: absolute; z-index: 1; width: calc(var(--cf-face) * 1.5); height: calc(var(--cf-face) * 1.5); pointer-events: none; }
.cf > img { position: relative; display: block; width: 100%; height: 100%; }
.cf::after { content: ""; position: absolute; z-index: -1; inset: 9%; border-radius: 50%; }
.cf--2::after { box-shadow: 0 0 4px 1px rgba(240, 150, 85, .8); }
.cf--3::after { box-shadow: 0 0 5px 1px rgba(205, 228, 255, .85); }
.cf--4::after { box-shadow: 0 0 6px 1.5px rgba(255, 214, 110, .9); }
.cf--5::after { box-shadow: 0 0 6px 2px rgba(127, 227, 255, .9), 0 0 3px 1px rgba(255, 226, 140, .9); }
:where(html.m-desktop) :is(.cf--3, .cf--4, .cf--5)::after { animation: cf-breath 3s ease-in-out infinite; }
:where(html.m-desktop) :is(.cf--4, .cf--5)::before {
  content: ""; position: absolute; z-index: 1; inset: 5%; border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, transparent 60%, #000 64% 100%); mask-image: radial-gradient(closest-side, transparent 60%, #000 64% 100%);
}
:where(html.m-desktop) .cf--4::before {
  background: conic-gradient(rgba(255, 244, 207, 0) 0 60%, rgba(255, 244, 207, .75) 82%, rgba(255, 244, 207, 0) 100%);
  animation: cf-turn 6s linear infinite;
}
:where(html.m-desktop) .cf--5::before {
  background: conic-gradient(rgba(127, 227, 255, 0) 0 22%, rgba(127, 227, 255, .85) 36%, rgba(255, 255, 255, 0) 50% 72%, rgba(255, 244, 207, .9) 86%, rgba(255, 255, 255, 0) 100%);
  animation: cf-turn 3.2s linear infinite;
}
@keyframes cf-breath { 50% { opacity: .45; } }
@keyframes cf-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cf::before, .cf::after { animation: none !important; } }
.hud-line.has-frame { --cf-face: 22px; --cf-l: 7px; --cf-b: 5px; position: relative; }
.hud-line.has-frame:not(.is-mine) { padding-left: var(--cf-l); padding-bottom: var(--cf-b); margin-bottom: calc(var(--cf-b) * -1); }
.hud-line.has-frame > .cf { left: calc(var(--cf-l) - var(--cf-face) / 4); bottom: calc(var(--cf-b) - var(--cf-face) / 4); }
.hud-line.is-mine > .cf { display: none; }
:where(html.m-mobile) .hud-line.has-frame { --cf-face: 26px; --cf-l: 9px; --cf-b: 6px; }
/* A DM's face on the rail (centred in its round button) and in the chat window's list (a row). */
.hud-chat__face > .cf { --cf-face: calc(var(--chat-face) - 4px); left: calc(50% - var(--cf-face) * .75); top: calc(50% - var(--cf-face) * .75); }
.hud-chatwin .hud-chat__face > .cf { --cf-face: var(--chat-face); left: calc(4px - var(--chat-face) / 4); }
.hud-line__bubble {
  min-width: 0;
  max-width: 76%;
  padding: 4px 9px 5px;
  border-radius: 11px 11px 11px 3px;
  background: var(--navy-1);
  box-shadow: var(--chat-lift);
  text-shadow: none;
  overflow-wrap: anywhere;
}
/* My own: a navy-4 ground (no channel tint). */
.hud-line.is-mine .hud-line__bubble { border-radius: 11px 11px 3px 11px; background: var(--navy-4); }
.hud-line--dm .hud-line__bubble { background: var(--chat-dm-dark); }
.hud-line--dm.is-mine .hud-line__bubble { background: var(--chat-dm-deep); }
/* The bubble's head: the channel's picture (every tab, owner 2026-10-10: where it was said), the
   [character] tag, the name. My own bubble has no name: its picture stands inline before the words. */
.hud-line__head { display: flex; align-items: center; gap: 4px; min-width: 0; margin-bottom: 1px; font-size: var(--fs-xs); line-height: 1.35; }
.hud-line.is-mine .hud-line__face, .hud-line.is-mine :is(.hud-line__who, .hud-line__guild) { display: none; }
.hud-line.is-mine .hud-line__head { display: inline-flex; vertical-align: -1px; margin: 0 5px 0 0; }
.hud-line.is-mine .hud-line__body { display: inline; }
.hud-line__ch { flex: none; width: 10px; height: 10px; }
.hud-line__who { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--chan-ink, var(--ink-strong)); }
/* The speaker's guild (#637), in brackets after the name; it gives way before the name does. */
.hud-line__guild { flex: 0 100 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: inherit; font-weight: 500; color: var(--ink-mute); }
.hud-line__guild::before { content: "("; }
.hud-line__guild::after { content: ")"; }
.hud-line__body { display: block; }
/* Translation (#33, owner 2026-11-17): a said line's words run inline so its Translate chip stands
   after the last of them (chat.ts trBody): a small navy disc lit from above with a cast shadow
   under (the HUD's depth, no filter) holding the Languages glyph. Dim while the line shows its own
   words, lit in the channel's ink while it shows the translation. While the answer is on its way
   the words are one shimmering bar (.hud-line__skel), removed with the answer: a few passes at
   most, never left running. Shown only while the server translates (.hud-log.is-tr), never on my
   own line. Mobile: a slim drawing, its press widened to --hit by ::after. */
.hud-log.is-tr .hud-line__body.is-tr { display: inline; }
.hud-line__tr {
  position: relative; display: inline-grid; place-items: center; vertical-align: -3px;
  width: 16px; height: 16px; margin-left: 5px; padding: 0; border: 0; border-radius: 50%;
  background: linear-gradient(180deg, var(--navy-4), var(--navy-2));
  box-shadow: inset 0 1px 0 rgba(var(--ink-strong-rgb), .16), inset 0 -1px 0 rgba(var(--shadow-ink), .5), 0 1px 2px rgba(var(--shadow-ink), .6);
  color: var(--ink-mute); opacity: .5; cursor: var(--cur-hand, pointer);
}
.hud-log:not(.is-tr) .hud-line__tr, .hud-line.is-mine .hud-line__tr, .hud-chat__setrow[hidden] { display: none; }
.hud-line__tr > .hud-glyph { width: 10px; height: 10px; color: inherit; stroke-width: 2.4; }
.hud-line__tr.is-on { opacity: 1; color: var(--chan-ink, var(--ink-strong)); }
.hud-line__tr.is-wait { opacity: .3; pointer-events: none; }
:where(html.m-desktop) .hud-line__tr:not(.is-on):hover { opacity: .85; }
:where(html.m-desktop) .hud-line__tr.is-on:hover { color: var(--ink-strong); }
:where(html.m-mobile) .hud-chat .hud-line__tr { width: 18px; height: 18px; vertical-align: -4px; }
:where(html.m-mobile) .hud-chat .hud-line__tr > .hud-glyph { width: 12px; height: 12px; }
:where(html.m-mobile) .hud-chat .hud-line__tr::after { content: ""; position: absolute; inset: -4px calc((18px - var(--hit)) / 2); border-radius: 9px; /* wide, not tall: never under the lines above and below (P10) */ }
.hud-line__skel {
  display: inline-block; vertical-align: middle; width: calc(var(--n, 12) * .45em); min-width: 3em; max-width: 100%; height: .8em; border-radius: 4px;
  background: linear-gradient(90deg, rgba(var(--ink-strong-rgb), .08) 35%, rgba(var(--ink-strong-rgb), .24) 50%, rgba(var(--ink-strong-rgb), .08) 65%) 100% 0 / 300% 100%;
  animation: hud-line-skel 1.2s linear 7;
}
@keyframes hud-line-skel { to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .hud-line__skel { animation: none; } }
.hud-line__at { flex: none; padding-bottom: 2px; font-size: var(--fs-xs); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.hud-line--sys { align-items: baseline; padding-left: 4px; font-size: var(--fs-xs); }
.hud-line--sys .hud-line__text { min-width: 0; padding: 1px 8px; border-radius: 8px; background: var(--navy-1); text-shadow: none; overflow-wrap: anywhere; }
.hud-line--sys .hud-line__body { display: inline; color: var(--chan-system); }
.hud-line--sys .hud-line__at { min-width: 2.6em; padding-bottom: 0; }
.hud-line .chat-link { text-shadow: inherit; }
/* An prism link keeps the line's dark lift and wears its starlight haze over it. */
.hud-line .chat-link.card__title--prism { text-shadow: var(--hud-shadow), var(--prism-glow); }

/* THE DM BAR, over the conversation: who it is (face, name, Lv); the way back is a channel tab.
   The panels' bars wear the same pill. */
.hud-chat__dmbar {
  display: flex; align-items: center; gap: 6px; height: var(--chat-bar); padding: 0 3px; margin-bottom: 6px;
  border-radius: 15px; background: var(--navy-1); box-shadow: var(--chat-lift); font-size: var(--fs-sm);
}
.hud-chat__back { height: calc(var(--chat-bar) - 6px); padding: 0 6px; border-radius: 12px; background: var(--navy-3); }
.hud-chat__back > .hud-glyph--btn { width: 13px; height: 13px; color: var(--ink-strong); }
.hud-chat__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding-left: 4px; text-shadow: none; }
.hud-chat__name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--chat-dm-name); }
.hud-chat__lv { flex: none; font-size: var(--fs-xs); color: var(--ink-mute); }
.hud-chat__lv[hidden] { display: none; }
/* Their guild (#637), nothing outside one. On the bar it stands under the name (the window, mobile
   mode's drawer); the desktop corner's pill is one line, so there it follows the name in brackets,
   as it does in the window's list. The guild gives way before the name does. */
.hud-chat__ident { min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.hud-chat__guild { flex: 0 100 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-mute); }
.hud-chat__guild[hidden] { display: none; }
:where(html.m-desktop) .hud-chat__ident { flex-direction: row; align-items: baseline; gap: 4px; }
:where(html.m-desktop) .hud-chat__ident > .hud-chat__guild::before, .hud-chat__fhead > .hud-chat__guild::before { content: "("; }
:where(html.m-desktop) .hud-chat__ident > .hud-chat__guild::after, .hud-chat__fhead > .hud-chat__guild::after { content: ")"; }

/* THE PANELS' BARS AND ROWS: a back "‹", the picker's search field or the settings'
   title; then rows on the chat's solid navy, a face, a name, Lv and an online dot (the picker), or a
   label and the game's switch (settings). The picker's list scrolls with no bar (chat.ts: wheel,
   mouse drag, a finger's pan-y); the highlighted row (arrow keys) stands a step lighter. */
.hud-chat__title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-left: 4px; text-shadow: none; }
.hud-chat__pickbar .hud-chat__find {
  flex: 1; min-width: 0; height: calc(var(--chat-bar) - 6px); padding: 0 4px; border: 0; background: transparent; box-shadow: none;
  font: inherit; font-size: var(--fs-sm); color: var(--ink-strong); text-shadow: none; cursor: var(--cur-text, text);
}
.hud-chat__find::-webkit-search-decoration, .hud-chat__find::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.hud-chat__find::placeholder { color: var(--ink-mute); }
.hud-chat__find:focus { outline: 0; }
.hud-chat__picks, .hud-chat__setrows {
  position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 3px; padding: 2px 2px 4px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y;
}
.hud-chat__picks::-webkit-scrollbar, .hud-chat__setrows::-webkit-scrollbar { display: none; }
.hud-chat__picks > .hud-chat__pick, .hud-chat__setrows > .hud-chat__setrow {
  appearance: none; flex: none; display: flex; align-items: center; gap: 7px; width: 100%; min-height: 28px; padding: 3px 10px 3px 4px;
  border: 0; border-radius: 14px; background: var(--navy-1); box-shadow: var(--chat-lift);
  font: inherit; font-size: var(--fs-sm); color: var(--ink-strong); text-shadow: none; text-align: left;
  cursor: var(--cur-hand, pointer); touch-action: pan-y;
}
.hud-chat__setrows > .hud-chat__setrow { padding-left: 12px; }
.hud-chat__setrow > span { flex: 1; min-width: 0; }
/* A row that picks one of several (the language a line is translated into) names its pick where
   a switch would stand. */
.hud-chat__setval { flex: none; margin-left: .6em; font-weight: 600; color: var(--brass-pale); }
.hud-chat__picks > .hud-chat__pick.is-hi, .hud-chat__picks > .hud-chat__pick:hover, .hud-chat__setrows > .hud-chat__setrow:hover { background: var(--navy-4); }
.hud-chat__pickname { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hud-chat__pick--typed .hud-chat__pickname { color: var(--chat-dm-name); }
/* A typed name being asked about (chat.ts lookupTo): busy until the server answers. */
.hud-chat__picks > .hud-chat__pick.is-busy { cursor: var(--cur-busy, progress); }
.hud-chat__pick.is-busy > .hud-chat__av { animation: hud-chat-asking 1s ease-in-out infinite; }
@keyframes hud-chat-asking { 50% { transform: scale(.86); } }
@media (prefers-reduced-motion: reduce) { .hud-chat__pick.is-busy > .hud-chat__av { animation: none; } }
.hud-chat__panel > .hud-chat__why { flex: none; padding: 0 12px 6px; }
.hud-chat__av--glyph { background: var(--chat-dm-deep); }
.hud-chat__av--glyph > .hud-glyph--btn { width: 11px; height: 11px; color: var(--ink-strong); }
.hud-chat__online { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.hud-chat__online.is-on { background: var(--hud-good); }

/* THE COMPOSER: one solid pill - the send channel's picture (a press picks another; in a DM the
   letter, and a press picks a thing to link), the field, its placeholder naming where the line goes
   ("Say to World...", "Message Rein...") in that channel's ink, and the send glyph. On System it is
   shut: dim, and nothing in it answers. A DM's refusal wraps under the field, in the pill. */
.hud-composer {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px;
  min-height: var(--chat-bar); padding: 0 4px; border-radius: 15px; background: var(--navy-1); box-shadow: var(--chat-lift);
}
.hud-composer__ch { width: 22px; height: 22px; border-radius: 50%; background: var(--navy-3); }
.hud-composer__ch > .hud-glyph { width: 12px; height: 12px; }
.hud-composer[data-tone="dm"] .hud-composer__ch { background: var(--chat-dm-deep); }
.hud-composer[data-tone="dm"] .hud-composer__ch > .hud-glyph { color: var(--ink-strong); }
.hud-composer__ch:hover > .hud-glyph { filter: brightness(1.2); }
/* New lines below while the reader is further up (chat.ts `fresh`): a small pill over the log's
   foot, centred on the composer's top edge; a press goes down to them. */
.hud-composer > .hud-chat__new {
  position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 2; translate: -50% 0;
  display: flex; align-items: center; gap: 3px; height: 22px; padding: 0 6px 0 10px;
  border: 0; border-radius: 11px; background: var(--navy-1); box-shadow: var(--chat-lift);
  font: inherit; font-size: var(--fs-sm); color: var(--ink-strong); white-space: nowrap; cursor: var(--cur-hand, pointer);
}
.hud-chat__new[hidden] { display: none; }
.hud-chat__new > .hud-glyph { width: 14px; height: 14px; }
.hud-chat__new:hover { filter: brightness(1.2); }
.hud-send { width: 22px; height: 22px; }
/* The send glyph in pale brass, the accent. */
.hud-send > .hud-glyph--btn { width: 14px; height: 14px; color: var(--brass-pale); }
.hud-send.is-busy { cursor: var(--cur-busy, progress); }
.hud-send.is-busy > .hud-glyph--btn { opacity: .5; }
.hud-composer.is-shut .hud-composer__ch, .hud-composer.is-shut .hud-send { cursor: var(--cur-arrow, default); }
.hud-composer.is-shut .hud-composer__ch > .hud-glyph, .hud-composer.is-shut .hud-send > .hud-glyph { opacity: .35; filter: grayscale(1); }
.hud-composer .chat-input:disabled { cursor: var(--cur-arrow, default); }
.hud-composer .chat-input {
  flex: 1;
  min-width: 0;
  height: var(--chat-bar);
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: var(--fs-md);
  color: var(--ink-strong);
  text-shadow: none;
  cursor: var(--cur-text, text);
}
.hud-composer .chat-input::-webkit-search-decoration, .hud-composer .chat-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.hud-composer .chat-input::placeholder { color: var(--ink-mute); }
.hud-composer .chat-input:focus { outline: 0; }
.hud-chat__why { flex: 0 0 100%; padding: 0 8px 5px; font-size: var(--fs-xs); color: var(--hud-hp); text-shadow: none; }
.hud-chat__why[hidden] { display: none; }
/* HIDDEN, a desktop: the chat button (with the lines missed) and the composer beside it, at its end
   the newest unread conversation (with every unread DM). */
.hud-composer > .hud-chat__chip { display: none; gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 11px; background: var(--navy-3); font: inherit; font-size: var(--fs-xs); text-shadow: none; }
.hud-chat__chip > .hud-glyph--btn { width: 12px; height: 12px; color: var(--ink-strong); }
.hud-composer > .hud-chat__chip--dm { padding-left: 2px; background: var(--chat-dm-dark); }
:where(html.m-desktop) .hud-chat__in.is-hidden :is(.hud-chat__tools, .hud-chans, .hud-chat__sep, .hud-chat__head--add, .hud-chat__dmsec, .hud-chat__dmbar, .hud-chat__panel, .hud-log, .hud-chat__note, .hud-chat__new) { display: none; }
:where(html.m-desktop) .hud-chat__in.is-hidden .hud-chat__chip:not([hidden]) { display: flex; }
.hud-chat__chip:hover { filter: brightness(1.15); }

/* Mobile mode's round button and the drawer's scrim are built always and shown in mobile mode only. */
.hud-chatbtn { display: none; }
.hud > .hud-chatscrim { display: none; }
.hud > .hud-chat-edge { display: none; }

/* THE CHAT IN A WINDOW (owner, 2026-10-30: lighter, one edge): the same nodes in 20-components.css's
   window, pulled to size by its corner; the log grows with it. Size, pop and hide are the corner's:
   the window's head puts it back. It wears the corner chat's theme, not a window's: the corner's
   plate with its rounded edges, no rim, no brass corners or plane, no astrolabe or stars, no head
   shadow or title plate. A slim head (it drags the window): the title, and put-back as a small flat
   icon button at the right. Under it the list and the view, split by a hairline. */
.wins > .win.hud-chatwin {
  height: 24em;
  min-width: 30em; /* the list (220px with its gap) and a log beside it */
  min-height: 12em;
  resize: both;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0; border-radius: 14px; background: var(--chat-plate); box-shadow: none;
}
.wins > .win.hud-chatwin::before, .wins > .win.hud-chatwin::after { content: none; }
.wins > .win.hud-chatwin > .win__head { height: 36px; padding: 0 6px 0 12px; background: none; }
.wins > .win.hud-chatwin > .win__head::before, .wins > .win.hud-chatwin > .win__head > .win__title::before { content: none; }
.wins > .win.hud-chatwin > .win__head > .win__title { font-size: var(--fs-md); letter-spacing: 0; text-shadow: none; }
.wins > .win.hud-chatwin > .win__head > .win__close { width: 26px; height: 26px; place-items: center; border-radius: 7px; opacity: 1; transition: background .15s; }
.wins > .win.hud-chatwin > .win__head > .win__close:hover { background: rgba(255, 255, 255, .08); }
/* Put-back: a stroked glyph, never the .ic fill. */
.wins > .win.hud-chatwin > .win__head > .win__close > .hud-glyph { width: 15px; height: 15px; fill: none; color: var(--ink-mute); }
.wins > .win.hud-chatwin > .win__head > .win__close:hover > .hud-glyph { color: var(--ink-strong); }
.wins > .win.hud-chatwin > .win__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 10px 10px 12px;
  background: none;
  font-family: var(--face-ui);
  font-weight: 600;
  color: var(--ink-strong);
}
/* THE WINDOW'S LIST (owner, 2026-10-30): a column 208px wide, everything flush with the body's left
   edge. The seven channel tabs in one row, flat until hovered or read; a hairline; then flat rows:
   "+ New message", and each conversation (its face, its name over the last line's words, dim, its
   unread count at the row's end). A row lights a little on hover; the one in view wears the brass
   ring as the tab being read does (no scale in a list). Rows keep one height, so the half-cut
   sizing (chat.ts) holds. No chat button: the window does not hide, and a channel tab is the way
   back from a DM. The corner and the phone's drawer keep faces alone (the text is not shown there). */
.hud-chat__ftext, .hud-chat__hlabel { display: none; }
.hud-chatwin .hud-chat__in {
  flex: 1; gap: 12px;
  --chat-rail: 208px; --chat-face: 28px; --chat-tab: 26px; --chat-tab-gap: 4px; --chat-chan-cols: 7;
}
.hud-chatwin .hud-chat__heads {
  width: var(--chat-rail); padding: 0 12px 0 0; align-items: stretch; gap: 4px;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .07);
}
.hud-chatwin .hud-chans { justify-content: start; padding: 2px 0 6px; }
.hud-chatwin .hud-ch { background: none; box-shadow: none; }
.hud-chatwin .hud-ch:not(.is-off):not(.is-on):hover { background: rgba(255, 255, 255, .06); }
.hud-chatwin .hud-ch.is-on { background: var(--navy-3); box-shadow: var(--chat-glow-on); }
.hud-chatwin .hud-chat__sep { width: auto; height: 1px; margin-bottom: 4px; background: rgba(255, 255, 255, .07); }
.hud-chatwin .hud-chat__heads > .hud-chat__head--chat { display: none; }
.hud-chatwin .hud-chat__dmsec { align-items: stretch; }
.hud-chatwin .hud-chat__facebox { margin: -3px; }
.hud-chatwin .hud-chat__faces { align-items: stretch; gap: 2px; padding: 3px; }
.hud-chatwin .hud-chat__head {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: auto; height: 38px;
  padding: 0 8px 0 4px; border-radius: 8px; background: none; box-shadow: none; text-align: left;
  transition: background .15s;
}
.hud-chatwin .hud-chat__head:hover:not(.is-on) { filter: none; background: rgba(255, 255, 255, .06); }
.hud-chatwin .hud-chat__head--add { height: 32px; color: var(--ink-mute); }
.hud-chatwin .hud-chat__head--add > .hud-glyph { margin: 0 calc((var(--chat-face) - 14px) / 2); }
.hud-chatwin .hud-chat__head--add:hover > .hud-glyph { color: var(--ink-strong); }
.hud-chatwin .hud-chat__head--add.is-on { background: rgba(255, 255, 255, .06); box-shadow: none; }
.hud-chatwin .hud-chat__face > .hud-chat__av { flex: none; width: var(--chat-face); height: var(--chat-face); }
.hud-chatwin .hud-chat__face.is-on { transform: none; background: var(--navy-3); box-shadow: var(--chat-glow-on); }
.hud-chatwin .hud-chat__ring { border-radius: inherit; }
.hud-chatwin .hud-chat__ftext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.hud-chatwin :is(.hud-chat__fname, .hud-chat__fprev, .hud-chat__hlabel) { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hud-chatwin .hud-chat__fname { font-size: var(--fs-sm); color: var(--ink-strong); }
.hud-chatwin .hud-chat__fhead { min-width: 0; display: flex; align-items: baseline; gap: 4px; }
.hud-chatwin .hud-chat__ident { flex-direction: column; align-items: stretch; gap: 0; }
.hud-chatwin .hud-chat__ident > .hud-chat__guild::before, .hud-chatwin .hud-chat__ident > .hud-chat__guild::after { content: none; }
.hud-chatwin .hud-chat__fprev { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-mute); }
.hud-chatwin .hud-chat__hlabel { display: block; flex: 1; font-size: var(--fs-sm); color: inherit; }
.hud-chatwin .hud-chat__head > .hud-chat__n { position: static; flex: none; box-shadow: none; }
/* THE HEAD'S TOOLS (chat.ts moves them in): the gear, flat as the put-back beside it; pop out is
   the corner's. THE VIEW: the bars (the DM's, a panel's) flat over a hairline, not a pill. */
.hud-chatwin .hud-chat__dmbar { padding: 0 2px 4px; margin-bottom: 4px; border-radius: 0; background: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.wins > .win.hud-chatwin > .win__head > .hud-chat__tools { margin-left: auto; display: flex; }
.wins > .win.hud-chatwin > .win__head > .hud-chat__tools ~ .win__close { margin-left: 0; }
.hud-chatwin .hud-chat__pop { display: none; }
.hud-chatwin .hud-chat__tools > .hud-chat__btn { width: 26px; height: 26px; border-radius: 7px; background: none; box-shadow: none; transition: background .15s; }
.hud-chatwin .hud-chat__tools > .hud-chat__btn > .hud-glyph--btn { width: 15px; height: 15px; color: var(--ink-mute); }
.hud-chatwin .hud-chat__tools > .hud-chat__btn:hover { background: rgba(255, 255, 255, .08); }
.hud-chatwin .hud-chat__tools > .hud-chat__btn:hover > .hud-glyph--btn { color: var(--ink-strong); filter: none; }
.hud-chatwin .hud-chat__tools > .hud-chat__btn.is-on { background: var(--navy-3); box-shadow: var(--chat-glow-on); }
.hud-chatwin .hud-chat__tools > .hud-chat__btn.is-on > .hud-glyph--btn { color: var(--ink-strong); }
@media (prefers-reduced-motion: reduce) {
  .hud-chat, .hud-ch, .hud-chat__btn, .hud-chatbtn, .hud-chat__head, .hud-chat__note, .hud-ch > .hud-glyph, .hud-chat__btn > .hud-glyph--btn { transition: none; }
  .hud-ch.is-down, .hud-chat__btn.is-down, .hud-chatbtn.is-down, .hud-chat__head.is-down, .hud-chat__back.is-down, .hud-chat__chip.is-down { transform: none; }
}

/* --------------------------------------------------------------- MOBILE MODE */
/* ONE LANDSCAPE LAYOUT for every phone (667 x 375 to 894 x 392 alike, B50), drawn at the size the
   player picked: your block top left with the party under it; the minimap top right with the tile
   and the status line under it; ONE menu tile left of the map, the run's reward beside it; the hotbar's dial in the bottom-right corner (THE DIAL below),
   the switch fan under the minimap, the chat's round button bottom left beside the stick. The systems, the boards and
   the quest tracker stand in the menu's drawer, slid in from the right edge (gui/hud/menu.ts mountDrawer). The
   blocks stand --hud-edge in from the safe frame's edges (THE ROOT above). */
/* THE DIAL's sizes (below; Dial on a desktop reads these, a mouse's): the round slot, the inner and
   the outer ring's radius through the slots' centres, and a toggle's room. */
.hud { --dial-s: 38px; --dial-ri: 100px; --dial-ro: 148px; --dial-t: 38px; }
:where(html.m-mobile) .hud {
  /* Mobile mode's: a toggle's room at a finger's size. */
  --dial-s: 44px;
  --dial-ri: 120px;
  --dial-ro: 174px;
  --dial-t: var(--touch);
  /* The systems' row stands this far up off the bottom: the bottom strip's plate is under its middle. */
  --hud-strip-lift: 14px;
}
:where(html.m-mobile) .hud .hud-left { left: var(--hud-edge); top: var(--hud-edge); width: auto; }
:where(html.m-mobile) .hud .hud-selfcol { flex: 0 0 214px; }
/* Your block a size down (owner, 2026-10-11: too big on a phone): a smaller face, a narrower and
   slimmer frame, the header a step smaller; the figures stay in the bars. */
:where(html.m-mobile) .hud-self .hud-self__block { --hud-pic: 44px; --hud-pad-l: 11px; column-gap: 8px; padding: 8px 6px 5px var(--hud-pad-l); }
:where(html.m-mobile) .hud-self .hud-portrait { width: 44px; height: 44px; padding: 3px; }
:where(html.m-mobile) .hud-self .hud-self__ticket { --ico-box: 20px; left: -7px; bottom: -7px; }
:where(html.m-mobile) .hud-self .hud-lead { top: -6px; right: -6px; width: 20px; height: 20px; }
:where(html.m-mobile) .hud-self .hud-lead .ic { width: 14px; height: 14px; }
:where(html.m-mobile) .hud-party__row .hud-lead { top: -5px; right: -5px; width: 15px; height: 15px; box-shadow: 0 0 0 1.5px var(--brass); }
:where(html.m-mobile) .hud-party__row .hud-lead .ic { width: 11px; height: 11px; }
:where(html.m-mobile) .hud-self .hud-self__gauges { --tuck: 18px; --tip: 7px; gap: 2px; padding-top: 3px; padding-bottom: 3px; }
:where(html.m-mobile) .hud-self .hud-self__gauges > .hud-self__id :is(.hud-self__lvl, .hud-self__name) { font-size: var(--fs-sm); }
:where(html.m-mobile) .hud-self .hud-self__gauges .hud-vital__bar { height: 11px; }
:where(html.m-mobile) .hud-self .hud-vital__k { left: 5px; }
/* The team: a face, a name and two thin gauges, the figures left to the fight. Every teammate is
   on the glass, never scrolled (owner, 2026-10-11: the fourth was cut off): a full party is five,
   so four rows (panels/party.ts), each this tight so the four end above the stick. */
:where(html.m-mobile) .hud-party .hud-party__frames { gap: 1px; }
:where(html.m-mobile) .hud-party .hud-party__row { --hud-pic: 26px; --hud-pad-l: 10px; column-gap: 7px; row-gap: 0; padding: 1px 4px 1px var(--hud-pad-l); }
:where(html.m-mobile) .hud-party__row .hud-portrait--sm { width: 26px; height: 26px; padding: 1px; }
:where(html.m-mobile) .hud-party__row .hud-self__id { min-height: 0; margin-bottom: 1px; line-height: 1; }
:where(html.m-mobile) .hud-party__row .hud-self__lvl, :where(html.m-mobile) .hud-party__row .hud-self__name { font-size: var(--fs-xs); }
:where(html.m-mobile) .hud-party__row .hud-vital + .hud-vital { margin-top: 1px; }
:where(html.m-mobile) .hud-party__row .hud-vital__bar { height: 4px; width: 84px; flex: none; }
:where(html.m-mobile) .hud-party__row .hud-vital__v, :where(html.m-mobile) .hud-party__row .hud-vital__k { display: none; }
:where(html.m-mobile) .hud-party__row .hud-buffs { display: none; }
:where(html.m-mobile) .hud-party .hud-party__gear { width: 40px; height: 40px; margin-top: 0; }
:where(html.m-mobile) .hud .hud-mapcol { right: var(--hud-edge); top: var(--hud-edge); }
/* One column left of the map (owner, 2026-11-01): the account face at the top, then Fortuna, the
   Event Center and the menu's tile at its foot (index.ts seats the three in .hud-feature), every
   disc --m-side, 44px apart centre to centre so their 44px tap rings meet; the run's reward to its left. */
:where(html.m-mobile) .hud .hud-primary { right: calc(var(--hud-edge) + var(--map-w, 134px) + 8px); top: calc(var(--hud-edge) + 44px); }
:where(html.m-mobile) .hud .hud-primary { flex-direction: row-reverse; align-items: flex-start; }
:where(html.m-mobile) .hud .hud-feature { gap: calc(var(--hit) - var(--m-side)); }
:where(html.m-mobile) .hud-primary .hud-reward { min-width: 0; max-width: 160px; }
/* The one menu (owner, 2026-10-11: every icon menu slides in from the right): its tile left of the
   map, and the drawer. The rows the tiles stand in on a desktop are empty here, and hidden. */
:where(html.m-mobile) .hud .hud-primary-menu, :where(html.m-mobile) .hud .hud-menu { display: none; }
/* The discs: the chat button's navy, a step smaller. */
:where(html.m-mobile) .hud :is(.hud-menubtn, .hud-fortuna, .hud-events) {
  display: flex; flex: none; align-items: center; justify-content: center;
  width: var(--m-side); height: var(--m-side); background: var(--navy-2); box-shadow: 0 3px 10px rgba(var(--shadow-ink), .45); filter: none;
}
/* The tap ring: a see-through pseudo out to 44px (the ::before glows are Fortuna's breath and the
   event's light, so the ring is the ::after on those two, their halo being off here). */
:where(html.m-mobile) .hud .hud-menubtn::before,
:where(html.m-mobile) .hud :is(.hud-fortuna, .hud-events)::after {
  content: ""; position: absolute; inset: calc((var(--m-side) - var(--hit)) / 2); border-radius: 50%; background: none; pointer-events: auto;
}
/* The menu's glyph, drawn in code (owner, 2026-11-01: six dots, not the gear): two rows of three
   round dots in the HUD's text colour, shadowed like the paintings. */
.hud-menubtn__dots {
  display: block; width: 16px; height: 11px;
  background: radial-gradient(circle, var(--hud-text) 1.9px, transparent 2.4px) 0 0 / 5.333px 5.5px;
  filter: drop-shadow(0 1px 1px rgba(var(--shadow-ink), .8));
}
:where(html.m-mobile) .hud .hud-menubtn .hud-dot { right: 1px; top: 1px; }
:where(html.m-mobile) .hud .hud-fortuna > img.g { width: 88%; height: 88%; }
:where(html.m-mobile) .hud .hud-fortuna::before { inset: -3px; }
:where(html.m-mobile) .hud .hud-events > img.g { width: 80%; height: 80%; }
/* The drawer: full height on the stage's right edge on a flat, see-through night (owner, 2026-10-11:
   no gradient), a brass hairline down its left edge, its X top right; the tiles five to a row, each
   named under it (a finger has no card to read). Shut, it waits off the edge. Its night reaches the
   screen's edge (owner, 2026-10-11): `.hud-drawer-edge`, a .bleed over the right inset's strip, lit
   with it. */
:where(html.m-mobile) .hud .hud-drawer {
  display: flex; flex-direction: column; left: auto; right: 0; top: 0; bottom: 0; z-index: 5;
  padding: 8px 12px 14px 14px;
  overflow: hidden;
  background: rgba(var(--hud-night-rgb), .82);
  box-shadow: inset 1px 0 rgba(var(--hud-gold-rgb), .4);
  transform: translateX(100%); visibility: hidden; pointer-events: none;
  transition: transform .2s ease-out, visibility 0s linear .2s;
}
:where(html.m-mobile) .hud .hud-drawer.is-open { transform: none; visibility: visible; pointer-events: auto; transition: transform .2s ease-out; }
.hud .hud-drawer-edge { display: none; }
:where(html.m-mobile) .hud .hud-drawer-edge { display: block; z-index: 5; background: rgba(var(--hud-night-rgb), .82); visibility: hidden; }
:where(html.m-mobile) .hud .hud-drawer-edge.is-open { visibility: visible; }
.hud-drawer__head { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.hud-drawer__close {
  appearance: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0;
  background: none; color: var(--hud-text); cursor: var(--cur-hand, pointer); opacity: .9;
}
.hud-drawer__close > * { width: 24px; height: 24px; transition: filter .15s, transform .1s; }
.hud-drawer__close:hover > *, .hud-drawer__close:focus-visible > * { filter: brightness(1.15) drop-shadow(0 0 4px rgba(var(--sky-rgb), .75)); }
.hud-drawer__close:active > * { transform: scale(.9); }
/* Compact (owner, 2026-11-01: the icons were gigantic): five to a row, each tile a 44px tap holding
   a ~32px painting with its name tucked under it. */
.hud-drawer__grid { display: grid; grid-template-columns: repeat(5, 60px); gap: 6px 4px; justify-items: center; padding-bottom: 10px; }
.hud-drawer__grid .hud-ibtn { width: 60px; height: var(--hit); align-items: flex-start; border-radius: 8px; }
.hud-drawer__grid .hud-ibtn > img.g { width: 38px; height: 38px; }
.hud-drawer__grid .hud-ibtn > .hud-dot { right: 11px; top: 1px; }
.hud-drawer__grid .hud-ibtn::after {
  content: attr(aria-label); position: absolute; left: 50%; bottom: 0; max-width: 60px;
  transform: translateX(-50%); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: var(--hud-face); font-size: var(--fs-xs); font-weight: 600; line-height: 1.2;
  color: var(--hud-text); text-shadow: var(--hud-shadow); pointer-events: none;
}
.hud-drawer__grid .hud-ibtn.is-open::after { color: var(--hud-gold); }
@media (prefers-reduced-motion: reduce) { :where(html.m-mobile) .hud .hud-drawer, :where(html.m-mobile) .hud .hud-drawer.is-open { transition: none; } }
/* The switch left of the map at the top, the head of the column over Fortuna (owner, 2026-11-01),
   --m-side. The fan unrolls to its left, the names under the rings (the frame's top is over
   them); the played face's own name is left out, Fortuna being under it. */
:where(html.m-mobile) .hud .hud-switch {
  right: calc(var(--hud-edge) + var(--map-w, 134px) + 8px);
  width: var(--m-side); height: var(--m-side); --fan-step: 52px;
}
:where(html.m-mobile) .hud-switch :is(.hud-switch__btn, .hud-account__body, .hud-account__add) { width: var(--m-side); height: var(--m-side); }
:where(html.m-mobile) .hud-switch :is(.hud-switch__btn, .hud-account__body) .hud-portrait { width: 100%; height: 100%; }
:where(html.m-mobile) .hud-switch .hud-account__name { bottom: auto; top: calc(100% + 5px); }
:where(html.m-mobile) .hud-switch .hud-switch__btn .hud-account__name { display: none; }
:where(html.m-mobile) .hud-switch__btn::after { content: ""; position: absolute; inset: calc((var(--m-side) - var(--hit)) / 2); border-radius: 50%; }
/* Under the minimap, at its right edge: the chat's round button, Fly left of it (index.ts). */
.hud-undermap { display: flex; justify-content: flex-end; align-items: center; gap: 12px; pointer-events: none; }
.hud-undermap > * { position: relative; pointer-events: auto; }
/* The smaller map's corners a size down. */
:where(html.m-mobile) .hud-clock, :where(html.m-mobile) .hud-coord { top: 3px; padding: 1px 4px; font-size: var(--fs-sm); }
:where(html.m-mobile) .hud-clock { right: 3px; }
:where(html.m-mobile) .hud-coord { left: 3px; }
:where(html.m-mobile) .hud-map > .hud-conn { left: 3px; bottom: 3px; padding: 1px 4px; gap: 4px; font-size: var(--fs-xs); }
/* The tracker under the drawer's tiles (index.ts moves it), as wide as them, on the drawer's own
   night with a brass hairline over it; its text is still --plate-fs. Its head says it folds (minus out, plus folded). It takes
   the drawer's height under the tiles, and a long list scrolls inside it on the brass bar
   (10-base.css), the head and the tiles standing still (owner, 2026-10-11). */
:where(html.m-mobile) .hud-drawer .hud-track {
  width: calc(5 * 60px + 4 * 4px); padding: 8px 2px 4px; gap: 3px;
  flex: 0 1 auto; min-height: 0;
  background: none; box-shadow: inset 0 1px rgba(var(--hud-gold-rgb), .4);
}
:where(html.m-mobile) .hud-drawer .hud-track__head { flex: none; }
:where(html.m-mobile) .hud-drawer .hud-track__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
:where(html.m-mobile) .hud-drawer .hud-drawer__head, :where(html.m-mobile) .hud-drawer .hud-drawer__grid { flex: none; }
:where(html.m-mobile) .hud-track .hud-track__head { gap: 4px; }
/* The fold mark stands where the target mark does. */
:where(html.m-mobile) .hud-track .hud-track__mark { display: none; }
:where(html.m-mobile) .hud-track .hud-track__head::before { width: 14px; height: 14px; }
:where(html.m-mobile) .hud-track .hud-track__head::after { content: ""; flex: none; width: 11px; height: 11px; margin-left: auto; background: url(/data/art/ui/ui-minus.66b1c0e7.webp) center / contain no-repeat; opacity: .75; }
:where(html.m-mobile) .hud-track.is-folded .hud-track__head::after { background-image: url(/data/art/ui/ui-plus.bdb08960.webp); }
:where(html.m-mobile) .hud-track .hud-track__obj { gap: 4px; }
:where(html.m-mobile) .hud-track .hud-track__ic, :where(html.m-mobile) .hud-track .hud-track__walk > img.g { width: 12px; height: 12px; }
/* The Attack pet is its face alone in its own portrait ring, on your portrait's centre line (the
   ringed face was 52 px at 3 px down; the bare one is 36, so 11 down), a size down with your block
   (owner, 2026-10-11: no health and mana rings round it, the tap shows them). A tap on the face
   turns its rows beside it on or off, and they stay until the next tap (left.ts .is-open): the same frame as your own block - level and name over health
   and mana in figures - and its marks under it. */
/* The pet's column is a desktop box: in mobile mode the pet sits in the row itself, as before. */
:where(html.m-mobile) .hud .hud-side { display: contents; }
:where(html.m-mobile) .hud .hud-pet { flex: none; max-width: none; margin-top: 11px; position: relative; }
:where(html.m-mobile) .hud-pet .hud-self__rows { display: none; }
:where(html.m-mobile) .hud-pet.is-open .hud-self__rows {
  display: flex; flex-direction: column; gap: 2px; position: absolute; z-index: 0;
  left: calc(100% - 2px); top: 50%; width: 150px; transform: translateY(-50%);
}
:where(html.m-mobile) .hud-pet.is-open .hud-self__gauges { --tuck: 0px; padding-left: 7px; }
:where(html.m-mobile) .hud-pet.is-open .hud-buffs { margin-top: 0; }
:where(html.m-mobile) .hud-pet .hud-portrait { width: 36px; height: 36px; cursor: var(--cur-hand, pointer); }
:where(html.m-mobile) .hud-pet .hud-self__block--sm { padding: 0; gap: 0; }

/* THE DIAL: the bars in mobile mode (owner, 2026-10-11; gui/hud/bar.ts dial()). A quarter dial
   centred on the bottom-right corner: the inner ring is your twelve slots, the outer ring the pet's
   six (gone while no pet is out; owner, 2026-10-11: you under the thumb, the pet outside), round
   slots on their own (owner, 2026-10-14: no bands behind them), about three (inner) and four (outer) in the quarter and the rest past the
   edges. The root is a box on the corner; each ring is a disc round
   the corner (the disc is its hit box, the inner one over the outer), a slot stands on its ring at
   a0 + i * step, turned there and back so its art stays upright. THE TURN IS A SCROLL: each ring
   holds a hidden track whose scroll offset is the turn (0 = the first slot at the start, the end =
   the last slot at the end), and every slot's place is a transform animation on that track's
   timeline, so a drag writes one scroll offset a frame and the compositor moves the slots: no
   restyle, no layout, no paint (bar.ts dial(): a custom property restyled every slot's insides).
   The snap is a smooth scroll. A browser without scroll-driven animations reads --rot instead,
   with a 120 ms transition for the snap. Auto and Fly stand in the hub inside the inner ring, under the
   thumb; the pet's two switches just left of the dial's foot. The bars' desktop rows and the pet
   guide are not drawn here. */
.hud .hud-dial { display: none; }
:where(html.m-mobile) .hud .hud-ot__row { gap: 3px; }
:where(html.m-mobile) .hud .hud-ot__tray { gap: 2px; }
:where(html.m-mobile) .hud .hud-ot :is(.hud-tgl, .hud-ot__aim) { width: 26px; height: 26px; }
.hud[data-hs="dial"] > .hud-dial {
  /* ON THE FRAME'S CORNER, clipped by its own box: none of a ring's slots stands beside a notch or
     over the home bar. Not by the frame: Safari draws the slots, moved by the scroll timeline on the
     GPU, past the frame's clip (iPhone, 2026-10-15). The box reaches the outer ring's top and the
     pet's switches; it takes no press itself. */
  display: block; left: auto; top: auto; right: 0; bottom: 0;
  width: calc(var(--dial-ro) * .978 + var(--dial-s) / 2 + 8px + 2 * var(--dial-s) + 8px + 6px);
  height: calc(var(--dial-ro) + var(--dial-s) / 2 + 8px);
  overflow: hidden; pointer-events: none; --hud-slot: var(--dial-s);
}
.hud[data-hs="dial"] > .hud-dial > * { pointer-events: auto; }
.hud-dial__ring {
  /* --step and --span (the turn from the first slot to the last) are bar.ts's, written once. */
  --r: var(--dial-ro); --a0: 12deg; --rot: 0deg;
  --d: calc(2 * (var(--r) + var(--dial-s) / 2 + 6px));
  timeline-scope: --hud-dial;
  position: absolute; left: calc(100% - var(--d) / 2); top: calc(100% - var(--d) / 2); width: var(--d); height: var(--d);
  border-radius: 50%; touch-action: none; will-change: transform;
}
.hud-dial__ring--in { --r: var(--dial-ri); --a0: 15deg; --d: calc(2 * (var(--r) + var(--dial-s) / 2 + 5px)); }
/* A drag past an end pulls the ring (bar.ts writes its rotate); it springs back on release. */
.hud-dial__ring.is-back { transition: transform .18s ease-out; }
/* The ends: while slots wait past one, a brass rail along the ring (between the rings for the inner
   one, outside the outer one) and a thumb on it that moves with the turn: a curved scrollbar, start
   at the low end of the arc. The thumb rides the slots' own scroll timeline; without one it stays
   hidden and the rail alone says the ring turns. */
.hud-dial__rail, .hud-dial__thumb { position: absolute; pointer-events: none; opacity: 0; transition: opacity .2s linear; }
.hud-dial__ring { --rail: calc(var(--r) + var(--dial-s) / 2 + 5px); }
.hud-dial__rail {
  left: calc(50% - var(--rail)); top: calc(50% - var(--rail)); width: calc(2 * var(--rail)); height: calc(2 * var(--rail));
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(var(--hud-gold-rgb), .3), 0 0 0 1px rgba(var(--shadow-ink), .25);
}
.hud-dial__thumb {
  --t: 10deg; left: calc(50% - 2.5px); top: calc(50% - 9px); width: 5px; height: 18px; border-radius: 3px;
  background: rgba(var(--hud-gold-rgb), .95); box-shadow: 0 0 4px rgba(var(--shadow-ink), .9);
  transform: rotate(var(--t)) translateX(calc(-1 * var(--rail)));
}
.hud-dial__ring:is(.has-before, .has-after) > :is(.hud-dial__rail, .hud-dial__thumb) { opacity: .9; }
@supports (animation-timeline: scroll()) {
  .hud .hud-dial__thumb { animation: hud-dial-thumb linear both; animation-timeline: --hud-dial; }
}
@supports not (animation-timeline: scroll()) { .hud .hud-dial__thumb { display: none; } }
@keyframes hud-dial-thumb {
  from { transform: rotate(10deg) translateX(calc(-1 * var(--rail))); }
  to { transform: rotate(80deg) translateX(calc(-1 * var(--rail))); }
}
@media (prefers-reduced-motion: reduce) { .hud-dial__ring.is-back, .hud-dial__rail, .hud-dial__thumb { transition: none; } }
.hud-dial__track {
  position: absolute; left: 0; top: 0; width: 10px; height: 1px; overflow: hidden;
  visibility: hidden; pointer-events: none; scroll-timeline: --hud-dial x;
}
.hud-dial__track > i { display: block; width: 1010px; height: 1px; }
.hud .hud-dial__ring > .slot { border-radius: 50%; overflow: hidden; }
/* A slot's seat on the ring. Not the drag's copy (gesture.ts ghostOf: its ring is a .ghost__stand),
   which rides the finger by the .ghost's transform alone: seated, it stood half a slot up-left of
   the finger (left/top -50% of nothing). */
.hud .hud-dial__ring:not(.ghost__stand) > .slot {
  --b: calc(var(--a0) + var(--i) * var(--step));
  --a: calc(var(--b) + var(--rot));
  position: absolute; left: calc(50% - var(--dial-s) / 2); top: calc(50% - var(--dial-s) / 2);
  transform: rotate(var(--a)) translateX(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .hud .hud-dial__ring:not(.ghost__stand) > .slot { animation: hud-dial-turn linear both; animation-timeline: --hud-dial; }
}
@keyframes hud-dial-turn {
  from { transform: rotate(var(--b)) translateX(calc(-1 * var(--r))) rotate(calc(-1 * var(--b))); }
  to { transform: rotate(calc(var(--b) + var(--span))) translateX(calc(-1 * var(--r))) rotate(calc(-1 * (var(--b) + var(--span)))); }
}
.hud-dial__ring.is-snap > .slot { transition: transform .12s ease-out; }
@media (prefers-reduced-motion: reduce) { .hud-dial__ring.is-snap > .slot { transition: none; } }
/* Round: a brass hairline in place of the square frame art, the default's light a round rim, the
   count at the crown (the corners are cut off). No key caps (owner, 2026-10-11): a phone has no
   number keys. */
.hud .hud-dial .slot::before { background: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(var(--hud-gold-rgb), .9); }
/* The round rim's light is the arc drawn once as a ring picture and turned whole, with no mask: the
   conic under a ring mask was an offscreen pass every frame on a Mali phone (2026-10-14 trace). Turning a ring is the same travelling light; the square bar shows its conic through four clipped strips instead. */
.hud .hud-dial .slot > .lit > i { display: none; }
.hud .hud-dial .slot.cooling > .lit { opacity: .28; }
/* The round clip only while a cover shows (cooldown, turn clock): the turning light under a rounded
   clip was an offscreen pass every frame (2026-10-14 trace). The art rounds itself instead. */
.hud .hud-dial__ring > .slot:not(.cooling, .turning) { overflow: visible; }
.hud .hud-dial .slot > .ico { border-radius: 50%; overflow: hidden; }
.hud .hud-dial .slot > .lit::before { content: ""; position: absolute; animation: hud-slot-lit 3.2s linear infinite; inset: 0; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Ccircle id='c' cx='50' cy='50' r='45.5' pathLength='100'/%3E%3C/defs%3E%3Cg fill='none' stroke='%23f4e6c4' stroke-width='9' stroke-dasharray='2.2 97.8' transform='rotate(-90 50 50)'%3E%3Cuse href='%23c' stroke-opacity='0.05' stroke-dashoffset='-55'/%3E%3Cuse href='%23c' stroke-opacity='0.1' stroke-dashoffset='-57'/%3E%3Cuse href='%23c' stroke-opacity='0.14' stroke-dashoffset='-59'/%3E%3Cuse href='%23c' stroke-opacity='0.19' stroke-dashoffset='-61'/%3E%3Cuse href='%23c' stroke-opacity='0.24' stroke-dashoffset='-63'/%3E%3Cuse href='%23c' stroke-opacity='0.38' stroke-dashoffset='-65'/%3E%3Cuse href='%23c' stroke-opacity='0.51' stroke-dashoffset='-67'/%3E%3Cuse href='%23c' stroke-opacity='0.65' stroke-dashoffset='-69'/%3E%3Cuse href='%23c' stroke-opacity='0.78' stroke-dashoffset='-71'/%3E%3Cuse href='%23c' stroke-opacity='0.85' stroke-dashoffset='-73'/%3E%3Cuse href='%23c' stroke-opacity='0.93' stroke-dashoffset='-75'/%3E%3Cuse href='%23c' stroke-opacity='1' stroke-dashoffset='-77' stroke='%23fffaf0'/%3E%3Cuse href='%23c' stroke-opacity='0.93' stroke-dashoffset='-79' stroke='%23fffaf0'/%3E%3Cuse href='%23c' stroke-opacity='0.85' stroke-dashoffset='-81'/%3E%3Cuse href='%23c' stroke-opacity='0.78' stroke-dashoffset='-83'/%3E%3Cuse href='%23c' stroke-opacity='0.65' stroke-dashoffset='-85'/%3E%3Cuse href='%23c' stroke-opacity='0.51' stroke-dashoffset='-87'/%3E%3Cuse href='%23c' stroke-opacity='0.38' stroke-dashoffset='-89'/%3E%3Cuse href='%23c' stroke-opacity='0.24' stroke-dashoffset='-91'/%3E%3Cuse href='%23c' stroke-opacity='0.18' stroke-dashoffset='-93'/%3E%3Cuse href='%23c' stroke-opacity='0.12' stroke-dashoffset='-95'/%3E%3Cuse href='%23c' stroke-opacity='0.06' stroke-dashoffset='-97'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
:where(html.m-mobile) .hud .hud-dial .slot > .k { display: none; }
.hud .hud-dial .slot > .ct { right: auto; left: 50%; bottom: auto; top: 3px; translate: -50% 0; }
.hud .hud-dial__ring--out .slot.is-empty::after { background-image: url(/data/art/ui/slot-paw.94060037.webp); }
.hud-dial__hub { position: absolute; left: 100%; top: 100%; }
/* ONE GROUP (owner, 2026-10-30: it read scattered): every control on the dial is a slot's size; a
   finger's room on the toggles is widened by a pseudo element, never by the drawing. */
.hud .hud-dial .hud-tgl { width: var(--dial-s); height: var(--dial-s); }
:where(html.m-mobile) .hud .hud-dial .hud-tgl::before { content: ""; position: absolute; inset: calc((var(--dial-t) - var(--dial-s)) / -2); border-radius: 50%; }
.hud .hud-dial__hub > .hud-tgl {
  --r: calc(var(--dial-ri) - var(--dial-s) - 6px);
  position: absolute; left: calc(var(--dial-s) / -2); top: calc(var(--dial-s) / -2);
  transform: rotate(var(--a)) translateX(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
}
.hud .hud-dial__hub > .hud-tgl.is-down { scale: .94; }
.hud-dial__hub > .hud-tgl--auto { --a: 22deg; }
.hud-dial__hub.is-solo > .hud-tgl--auto { --a: 45deg; }
/* The pet's two switches on the floor, carrying the outer ring on to the left: their centres level
   with its lowest slot (at 12deg: .978 and .208 of its radius off the corner), a slot's gap apart. */
.hud-dial__pet {
  position: absolute; right: calc(var(--dial-ro) * .978 + var(--dial-s) / 2 + 8px);
  bottom: calc(var(--dial-ro) * .208 - var(--dial-s) / 2);
}
.hud-dial__pet > .hud-bar__knobs { flex-direction: row-reverse; gap: 8px; }

/* THE CHAT IN MOBILE MODE (owner, 2026-10-29): shut, one solid round button right under the
   minimap (owner, 2026-10-30; index.ts .hud-undermap), a grey count of the channel lines missed at its
   top right and a pink count of the unread DMs at its bottom right. Out, a DRAWER slid in from the
   frame's left, its full height, over a dark gradient that is not a panel (the scrim, a .bleed to
   the glass's edge; a tap on it only shuts the drawer). Its rail is one column of round icons
   (owner, 2026-11-02: the named rows filled a phone's height): the channels, a dash, the + and the
   conversations' faces, the whole rail scrolled when long. No chat button in it: the round button
   outside opens the drawer, a tap on the world or a swipe left shuts it, and a channel tab is the
   way back from a DM. */
:where(html.m-mobile) .hud .hud-chatbtn {
  display: flex; width: var(--m-btn); height: var(--m-btn); border-radius: 50%;
  background: var(--navy-2); box-shadow: 0 3px 10px rgba(var(--shadow-ink), .45);
}
:where(html.m-mobile) .hud .hud-chatbtn::before { content: ""; position: absolute; inset: calc((var(--m-btn) - var(--hit)) / 2); border-radius: 50%; }
/* The drawer out: the button stays, lit as pressed (a press puts the chat away), its map column over
   the drawer's scrim (the drawer opens from the left, the column stands right of it). */
:where(html.m-mobile) .hud .hud-chatbtn.is-on { background: var(--navy-4); box-shadow: var(--chat-glow-on), 0 3px 10px rgba(var(--shadow-ink), .45); }
/* Its counts are for a chat put away: with the drawer out the rail marks what is unread, and a
   count kept growing over an open chat (a DM up, the channels' lines counted missed: #367). */
:where(html.m-mobile) .hud .hud-chatbtn.is-on > .hud-chat__n { display: none; }
/* `.is-raised`: chat.ts apply() marks the column holding the button (index.ts seats it under the
   minimap) while the drawer is out. A class from JS, never a `:has()` (docs/ui-patterns.md P16:
   `.hud:has(> .hud-chatscrim:not([hidden]))` restyled the whole HUD every frame of a fight, #381). */
:where(html.m-mobile) .hud-mapcol.is-raised { z-index: 7; }
.hud-chatbtn > .hud-glyph--btn { width: 46%; height: 46%; color: var(--ink-strong); }
.hud-chatbtn > .hud-chat__n { top: -4px; right: -4px; }
.hud-chatbtn > .hud-chat__n--dm { top: auto; bottom: -4px; }
:where(html.m-mobile) .hud > .hud-chatscrim:not([hidden]) { display: block; inset: 0; z-index: 6; }
:where(html.m-mobile) .hud { --m-chat-w: 354px; }
:where(html.m-mobile) .hud .hud-chat {
  left: 0; top: 0; bottom: 0; z-index: 7;
  /* The log keeps its width (owner, 2026-10-30): the 394px drawer of the named rows, less the 40px
     the icon rail gave back (84px -> 44px). */
  width: var(--m-chat-w);
  padding: 10px 12px 10px 4px;
  display: flex; touch-action: pan-y;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
/* The drawer stands on the desktop corner's plate (owner, 2026-10-30), its open edge rounded; the
   scrim beside it is drawn as nothing and only takes the press that puts the chat away. */
:where(html.m-mobile) .hud .hud-chat::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 0 14px 14px 0;
  background: var(--chat-plate); pointer-events: none;
}
:where(html.m-mobile) .hud .hud-chat.is-hidden {
  transform: translateX(-102%); visibility: hidden; pointer-events: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
}
/* The plate goes on over the left inset's strip (the notch side) to the screen's edge:
   `.hud-chat-edge`, a .bleed beside the drawer (10-base.css `.bleed--l`), above the scrim, so a
   press there is the drawer's, never the world's or the scrim's. It slides with the drawer,
   by the drawer's own distance, and is gone with it. */
:where(html.m-mobile) .hud > .hud-chat-edge {
  display: block; z-index: 7; background: var(--chat-plate);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
:where(html.m-mobile) .hud > .hud-chat-edge.is-hidden {
  transform: translateX(calc(-1.02 * var(--m-chat-w))); visibility: hidden; pointer-events: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
}
/* Mobile mode's own sizes (the phone is its own UI, never the desktop scaled). One scale across the
   drawer (owner, 2026-10-30): the lines' type 13px, the composer a finger's 40px. THE RAIL (owner,
   2026-11-02): the corner's round tabs and faces, 36px, 4px apart, in a 44px column; each one's
   press reaches 44px (::before), the drawing stays 36. The counts and the brass dot on their corner
   as everywhere. The whole rail scrolls when long (chat.ts sizeFaces caps nothing here). The tab
   being read is named once over the log (.hud-chat__chan); a DM's bar names its conversation. */
:where(html.m-mobile) .hud-chat__in {
  flex: 1; height: 100%;
  --chat-face: 36px; --chat-bar: 40px; --chat-tab: 36px; --chat-tab-gap: 4px; --chat-chan-cols: 1;
  --chat-rail: 44px;
  --chat-fs: 13px;
}
:where(html.m-mobile) .hud-chat__heads {
  gap: var(--chat-tab-gap); padding-top: 4px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
:where(html.m-mobile) .hud-chat__heads::-webkit-scrollbar { display: none; }
/* A finger on any icon still scrolls the rail (`.hud button` takes no touch pan otherwise). */
:where(html.m-mobile) .hud-chat__heads button { touch-action: pan-y; }
:where(html.m-mobile) .hud-chat__dmsec { flex: none; contain: none; min-height: 0; }
/* The faces are no scroller of their own here: a finger on a face would latch on them and never
   scroll the rail back up to the channels (#367). */
:where(html.m-mobile) .hud-chat__faces { gap: var(--chat-tab-gap); overflow: visible; }
:where(html.m-mobile) .hud-chat :is(.hud-ch, .hud-chat__head)::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
:where(html.m-mobile) .hud-chat .hud-ch > .hud-glyph { width: 18px; height: 18px; }
:where(html.m-mobile) .hud-chat .hud-chat__head > .hud-glyph { width: 16px; height: 16px; }
/* Mobile mode has no hide-the-chat button in the rail (the HUD's chat button puts it away). */
:where(html.m-mobile) .hud-chat .hud-chat__head--chat { display: none; }
/* The chat view's title: the tab being read, in its channel's ink, one pill over the log (on the
   composer's ground: the drawer's plate is see-through and the HUD's own block stands under it),
   clear of the gear at the top right. Not over a panel, not in a DM (its bar says who). */
.hud-chat__chan { display: none; }
:where(html.m-mobile) .hud-chat > .hud-chat__in[data-view="chat"]:not([data-panel]) .hud-chat__chan {
  display: block; flex: none; align-self: flex-start; box-sizing: border-box; height: 24px;
  max-width: calc(100% - var(--chat-bar) - 8px); padding: 0 10px; border-radius: 12px; background: var(--chat-bg);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 700 12px/24px var(--hud-face); color: var(--chan-ink, var(--ink-strong)); text-shadow: var(--hud-shadow);
}
:where(html.m-mobile) .hud-chat .hud-line__bubble { max-width: 80%; }
:where(html.m-mobile) .hud-chat :is(.hud-composer, .hud-chat__dmbar) { border-radius: calc(var(--chat-bar) / 2); font-size: var(--chat-fs); }
:where(html.m-mobile) .hud-chat :is(.hud-composer__ch, .hud-send) { width: 30px; height: 30px; }
:where(html.m-mobile) .hud-chat :is(.hud-chat__picks > .hud-chat__pick, .hud-chat__setrows > .hud-chat__setrow) { min-height: var(--chat-bar); font-size: var(--chat-fs); }
:where(html.m-mobile) .hud-chat .hud-composer .chat-input { font-size: var(--chat-fs); }
:where(html.m-mobile) .hud-chat .hud-line { font-size: var(--chat-fs); }
:where(html.m-mobile) .hud-chat :is(.hud-line__head, .hud-line__for, .hud-line__at, .hud-chat__quiet) { font-size: 11px; }
:where(html.m-mobile) .hud-chat :is(.hud-chat__pop, .hud-chat__note) { display: none; }
:where(html.m-mobile) .hud-line__face { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) { :where(html.m-mobile) .hud .hud-chat, :where(html.m-mobile) .hud .hud-chat.is-hidden { transition: none; } }
/* CHAT PEEK (gui/hud/chat.ts): the last channel lines while the chat is put away. One button that
   brings the chat out; nothing inside is its own target but a desktop's bubbles. Each line is one
   shape (face, a bubble of the channel's picture and name over the words), drawn two ways:
   - Mobile mode: at the left, under the party list, where the chat opens (owner, 2026-10-11), not
     while the drawer is out (.is-under). One block on the chat's solid navy, no ring: four lines
     of "Name: words" (face and picture hidden), the name in its channel's ink, one ellipsised line
     each; ten seconds without a line the block fades (.is-idle).
   - A desktop (owner, 2026-10-29): only while the chat is hidden, just over the composer bar and
     left-aligned with it (in the chat's box, whose `is-hidden` says so); never in the window. No
     block: the newest three as bubbles like the log's, others' on the left behind a small face,
     mine on the right on the lit navy with no face, no clock; each fades on its own
     ten seconds after it came (.is-gone). */
.hud .hud-chatpeek {
  display: none; justify-items: start; gap: 1px; pointer-events: auto;
  padding: 5px 9px 6px; border: 0; border-radius: 8px;
  background: rgba(var(--navy-1-rgb), .78); box-shadow: var(--chat-lift); color: var(--ink-strong); text-align: left;
  font: 600 var(--fs-sm)/1.3 var(--face-ui); cursor: var(--cur-hand, pointer);
  transition: opacity .4s ease-out, visibility 0s;
}
.hud .hud-chatpeek.is-idle { opacity: 0; visibility: hidden; transition: opacity .4s ease-out, visibility 0s .4s; }
.hud-chatpeek * { pointer-events: none; }
.hud-chatpeek__line { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: var(--hud-shadow); }
.hud-chatpeek__head b { font-weight: 700; color: var(--chan-ink, var(--ink-strong)); }
/* Mobile: one line of "Name: words". */
:where(html.m-mobile) .hud .hud-chatpeek:not([hidden]) {
  display: grid; position: relative; align-self: flex-start;
  width: 304px;
}
:where(html.m-mobile) .hud .hud-chatpeek.is-under { display: none; }
:where(html.m-mobile) .hud-chatpeek__line.is-mine { justify-self: end; }
:where(html.m-mobile) :is(.hud-chatpeek__face, .hud-chatpeek__ch) { display: none; }
:where(html.m-mobile) :is(.hud-chatpeek__bubble, .hud-chatpeek__head, .hud-chatpeek__words) { display: inline; }
:where(html.m-mobile) .hud-chatpeek__head b { margin-right: .3em; }
:where(html.m-mobile) .hud-chatpeek__head b::after { content: ":"; }
/* Desktop: bubbles, no block. Only the bubbles take a press; the gaps between them are the world's. */
:where(html.m-desktop) .hud .hud-chat.is-hidden > .hud-chatpeek:not([hidden]) {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  position: absolute; left: 44px; bottom: calc(100% + 8px); width: calc(100% - 44px);
  padding: 0; border-radius: 0; background: none; box-shadow: none; pointer-events: none;
}
:where(html.m-desktop) .hud .hud-chatpeek > .hud-chatpeek__line {
  display: flex; align-items: flex-end; gap: 5px; max-width: 100%; overflow: visible; white-space: normal;
  text-shadow: none; pointer-events: auto; transition: opacity .4s ease-out, visibility 0s;
}
:where(html.m-desktop) .hud .hud-chatpeek > .hud-chatpeek__line:nth-last-child(n+4) { display: none; }
:where(html.m-desktop) .hud .hud-chatpeek > .hud-chatpeek__line.is-mine { align-self: flex-end; flex-direction: row-reverse; }
:where(html.m-desktop) .hud .hud-chatpeek > .hud-chatpeek__line.is-gone { opacity: 0; visibility: hidden; transition: opacity .4s ease-out, visibility 0s .4s; }
:where(html.m-desktop) .hud-chatpeek__face {
  position: relative; flex: none; display: grid; place-items: center; width: 18px; height: 18px; overflow: hidden;
  border-radius: 50%; background: var(--navy-2); box-shadow: 0 2px 4px rgba(var(--shadow-ink), .4);
  font-size: var(--fs-xs); color: var(--ink-mute);
}
:where(html.m-desktop) .hud-chatpeek__face.is-dark { background: var(--void); }
.hud-chatpeek__face > i { transform: translateY(-11%) scale(1.38); transform-origin: 50% 36%; }
:where(html.m-desktop) .hud-chatpeek__line.is-mine > .hud-chatpeek__face { display: none; }
:where(html.m-desktop) .hud-chatpeek__bubble {
  display: block; min-width: 0; padding: 3px 9px 4px; border-radius: 10px 10px 10px 3px;
  background: var(--navy-1); box-shadow: var(--chat-lift); overflow-wrap: anywhere;
}
:where(html.m-desktop) .hud-chatpeek__line.is-mine > .hud-chatpeek__bubble { border-radius: 10px 10px 3px 10px; background: var(--navy-4); }
:where(html.m-desktop) .hud-chatpeek__line.is-mine .hud-chatpeek__head b { color: var(--brass-pale); }
:where(html.m-desktop) .hud-chatpeek__head { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: var(--fs-xs); line-height: 1.35; }
:where(html.m-desktop) .hud-chatpeek__ch { flex: none; width: 10px; height: 10px; }
:where(html.m-desktop) .hud-chatpeek__words { display: block; font-size: var(--fs-sm); color: var(--ink-strong); }
@media (prefers-reduced-motion: reduce) { .hud .hud-chatpeek, .hud .hud-chatpeek.is-idle, .hud .hud-chatpeek > .hud-chatpeek__line { transition: none; } }

/* ------------------------------------------------------------ HUNT MODE */
/* The top middle, in a farm dungeon only (hunt-mode.ts, owner 2026-10-27): the painted sword and
   the words on a navy plate ringed in brass. On: the words go gold, the ring breathes and a light
   sweeps the plate as it switches on, then the glow holds while the body walks. No Ticket: the sword dims under a small lock, and a press
   says why. A button, not a panel: nothing else rides on it. In the top row when the screen has
   room between the left rail and the account fan (the stage always has it). */
.hud > .hud-hunt {
  left: 50%; top: var(--hud-edge); translate: -50% 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 150px; height: 34px; padding: 0 12px 0 3px; border: 0; border-radius: 17px;
  background: linear-gradient(180deg, rgba(var(--navy-2-rgb), .95), rgba(var(--navy-0-rgb), .9));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .8), inset 0 0 0 3px rgba(var(--shadow-ink), .55), 0 1px 4px rgba(var(--shadow-ink), .8);
  color: var(--brass-pale); font-family: var(--face-display); font-size: 15px; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap; text-shadow: 0 1px 2px rgba(var(--shadow-ink), .9);
  overflow: hidden; isolation: isolate;
  cursor: var(--cur-hand, pointer);
  transition: box-shadow .2s, color .2s;
}
.hud > .hud-hunt[hidden] { display: none; }
.hud > .hud-hunt:hover { box-shadow: inset 0 0 0 1px var(--hud-gold), inset 0 0 0 3px rgba(var(--shadow-ink), .55), 0 0 8px rgba(var(--hud-gold-rgb), .55); }
.hud-hunt__pic { position: relative; flex: none; width: 28px; height: 28px; }
.hud-hunt__pic > img.g { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(var(--shadow-ink), .8)); }
.hud-hunt__pic > img.hud-hunt__lock { position: absolute; right: -3px; bottom: -2px; width: 14px; height: 14px; display: none; }
.hud > .hud-hunt.is-locked { color: rgba(var(--brass-pale-rgb), .6); }
.hud > .hud-hunt.is-locked .hud-hunt__pic > img.g:first-child { filter: grayscale(.85) brightness(.75); }
.hud > .hud-hunt.is-locked .hud-hunt__pic > img.hud-hunt__lock { display: block; }
/* On for hours while the body walks: the ring holds its gold and a glow inside it (::before); on
   each switch on, the glow breathes and a light sweeps across the plate (::after) three times, then
   the glow holds still and the sweep is gone (#517, the rule the Fortuna and event tiles follow:
   an endless loop under the plate's rounded clip was an offscreen pass every frame, hours long in
   town). Opacity and transform only: animating box-shadow and background-position repainted the
   button every frame (#381, docs/ui-patterns.md P16). The breathe ends on its bright half, the
   glow's own opacity, so the hold does not jump. */
.hud > .hud-hunt.is-on {
  color: var(--hud-gold);
  box-shadow: inset 0 0 0 1px var(--hud-gold), inset 0 0 0 3px rgba(var(--shadow-ink), .55), 0 0 6px rgba(var(--hud-gold-rgb), .5);
}
.hud > .hud-hunt.is-on::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 10px rgba(var(--hud-gold-rgb), .7);
  animation: hud-hunt-breathe 1.8s ease-in-out 3.5;
}
.hud > .hud-hunt.is-on::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(var(--hud-gold-rgb), .28) 50%, transparent);
  opacity: 0;
  animation: hud-hunt-sweep 2.4s linear 3;
}
@keyframes hud-hunt-breathe { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes hud-hunt-sweep { from { opacity: 1; transform: translateX(-100%); } to { opacity: 1; transform: translateX(170%); } }
@media (prefers-reduced-motion: reduce) { .hud > .hud-hunt.is-on::before, .hud > .hud-hunt.is-on::after { animation: none; } }
/* Mobile mode: a finger's height, the same top middle. */
:where(html.m-mobile) .hud > .hud-hunt { height: 44px; border-radius: 22px; padding: 0 16px 0 6px; font-size: 14px; }
:where(html.m-mobile) .hud-hunt__pic { width: 32px; height: 32px; }

/* P13 first-time hint (apps/game/client/gui/hint.ts): the control met for the first time rings
   three times in brass, beside its one line. A ring, not a scale: the control keeps its seat. */
.hint-pulse { animation: hint-pulse 1s ease-out 3; }
@keyframes hint-pulse {
  from { box-shadow: 0 0 0 0 rgba(var(--brass-pale-rgb), .95); }
  to { box-shadow: 0 0 0 .9em rgba(var(--brass-pale-rgb), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hint-pulse { animation: none; outline: 2px solid rgba(var(--brass-pale-rgb), .9); outline-offset: 2px; }
}

/* ---- 41-invoker.css */
/* INVOKER (prototype, owner 2026-10-26, #256; gui/hud/invoker.ts, bar.ts, overtake.ts). Low
   fidelity on purpose: plain wells and rings, to try the flow and the layout. The HUD root carries
   the style (`data-hs`: simple, classic, invoker, dial), one layout per style in both modes. */

/* ------------------------------------------------------------ THE BAND'S BUTTONS */
/* HS: the hotbar style medallion (owner, 2026-10-27), seated in the middle of the experience and
   energy plate (40-hud.css .hud-strip__seat) and rising above it: a navy disc in a brushed brass ring,
   a picture of the current style (Simple: the plate's star, the screen left clear; Classic: one slot
   over three, the pet strip over the bar; Invoker: one strip per character; Dial: a hub and two arcs of
   dots round the corner), the picture alone (owner, 2026-10-30: no pips). Static
   paint only: no mask, no clip, no loop (a masked conic was an offscreen pass every frame on a Mali
   phone, 2026-10-14); the picture turns in once per change (hud/index.ts, WAAPI). */
.hud > .hud-hs {
  /* Centred with `translate`, not `transform`: the press pop (sfx.ts pressFx) animates transform, and
     owning it here made the medallion jump right for the length of the pop. */
  left: 50%; bottom: 2px; translate: -50% 0; z-index: 3;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  /* The ring: brushed brass, light from the top left. */
  background: conic-gradient(from 200deg, var(--brass-dim), var(--brass-pale) 16%, var(--brass) 32%, var(--brass-hi) 50%, var(--brass-dim) 68%, var(--brass) 84%, var(--brass-dim));
  box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .9), 0 2px 6px rgba(var(--shadow-ink), .8);
  cursor: var(--cur-hand, pointer);
}
/* The disc inside the ring, with a fine engraved inner line. */
.hud > .hud-hs::before {
  content: ""; position: absolute; inset: 2.5px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgb(var(--navy-4-rgb)), rgb(var(--navy-0-rgb)) 75%);
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .35), inset 0 2px 3px rgba(var(--shadow-ink), .7);
}
/* A finger's room in mobile mode (44 px), drawn as nothing. */
html.m-mobile .hud > .hud-hs::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.hud-hs__glyph {
  position: relative; width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4e6c4'/%3E%3Cstop offset='1' stop-color='%23d4b57a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)'%3E%3Cpolygon points='12,2 14,10 22,12 14,14 12,22 10,14 2,12 10,10'/%3E%3C/g%3E%3C/svg%3E") center / 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgba(var(--shadow-ink), .9));
}
.hud[data-hs="classic"] .hud-hs__glyph { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4e6c4'/%3E%3Cstop offset='1' stop-color='%23d4b57a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)'%3E%3Crect x='9.75' y='5' width='4.5' height='4.5' rx='1'/%3E%3Crect x='4' y='13.5' width='4.5' height='4.5' rx='1'/%3E%3Crect x='9.75' y='13.5' width='4.5' height='4.5' rx='1'/%3E%3Crect x='15.5' y='13.5' width='4.5' height='4.5' rx='1'/%3E%3C/g%3E%3C/svg%3E"); }
.hud[data-hs="invoker"] .hud-hs__glyph { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4e6c4'/%3E%3Cstop offset='1' stop-color='%23d4b57a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)'%3E%3Ccircle cx='5.5' cy='7' r='2'/%3E%3Crect x='9' y='5.5' width='11.5' height='3' rx='1.5'/%3E%3Ccircle cx='5.5' cy='12.5' r='2'/%3E%3Crect x='9' y='11' width='11.5' height='3' rx='1.5'/%3E%3Ccircle cx='5.5' cy='18' r='2'/%3E%3Crect x='9' y='16.5' width='11.5' height='3' rx='1.5'/%3E%3C/g%3E%3C/svg%3E"); }
.hud[data-hs="dial"] .hud-hs__glyph { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4e6c4'/%3E%3Cstop offset='1' stop-color='%23d4b57a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)'%3E%3Ccircle cx='20.5' cy='20.5' r='2.7'/%3E%3Ccircle cx='12.3' cy='18.7' r='2'/%3E%3Ccircle cx='14.6' cy='14.6' r='2'/%3E%3Ccircle cx='18.7' cy='12.3' r='2'/%3E%3Ccircle cx='5.4' cy='17.7' r='2'/%3E%3Ccircle cx='8.1' cy='11.6' r='2'/%3E%3Ccircle cx='13' cy='7.1' r='2'/%3E%3Ccircle cx='19.3' cy='5.1' r='2'/%3E%3C/g%3E%3C/svg%3E"); }
.hud > .hud-hs:hover { box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .9), 0 0 8px rgba(var(--brass-hi-rgb), .75), 0 2px 6px rgba(var(--shadow-ink), .8); }
.hud > .hud-hs:hover .hud-hs__glyph { filter: drop-shadow(0 0 3px rgba(var(--brass-hi-rgb), .8)); }
.hud > .hud-flyspot { z-index: 3; display: flex; gap: 4px; }
/* FLY: its own button just right of the chat, apart from it (owner, 2026-10-30). A desktop: past the
   corner chat's plate (300px and its 8px inset, 40-hud.css .hud-chat), level with the composer. */
html.m-desktop .hud > .hud-flyspot { left: calc(var(--hud-edge) + 318px); bottom: calc(var(--hud-edge) - 2px); }
html.m-desktop .hud > .hud-flyspot > .hud-tgl { width: 34px; height: 34px; }
/* Mobile mode: in the row under the minimap, left of the chat's round button (index.ts
   .hud-undermap, 40-hud.css), the same 40px as it, its finger's 44px drawn as nothing. */
html.m-mobile .hud-undermap > .hud-flyspot { display: flex; gap: 6px; }
html.m-mobile .hud-undermap > .hud-flyspot > .hud-tgl { width: var(--m-btn); height: var(--m-btn); }
html.m-mobile .hud-undermap > .hud-flyspot > .hud-tgl::before { content: ""; position: absolute; inset: calc((var(--m-btn) - var(--hit)) / 2); border-radius: 50%; }

/* ------------------------------------------------------------ WHAT EACH STYLE SHOWS */
/* Simple: no bar, no pet strip, no dial (the keys still press). The dial only in Dial (40-hud.css
   THE DIAL), the trays in every style but Dial. */
.hud[data-hs="simple"] > :is(.hud-bar, .hud-petbar) { display: none !important; }
.hud[data-hs="dial"] > :is(.hud-bar, .hud-petbar) { display: none !important; }
/* Invoker: the pet's bar is on the main strip. */
.hud[data-hs="invoker"] > .hud-petbar { display: none !important; }
/* Classic, both modes: the pet's strip in one row just on top of your bar, the two on one grid
   (owner, 2026-10-30): its ten slots over your first ten, its two switches a slot wide each over your
   eleventh and twelfth, so your Auto stands alone at the end. The row starts where your bar does:
   your bar is twelve slots, its 4px gap and Auto's 36px, centred. */
.hud[data-hs="classic"] > .hud-petbar {
  left: 50%; right: auto; bottom: calc(var(--hud-bar-b) + var(--hud-slot) + 4px);
  transform: translateX(calc((12 * var(--hud-slot) + 40px) / -2)); gap: 0;
}
.hud[data-hs="classic"] > .hud-petbar > .hud-bar__tray { grid-template-columns: repeat(10, var(--hud-slot)); }
.hud[data-hs="classic"] > .hud-petbar > .hud-bar__knobs { flex-direction: row; order: 0; gap: 0; }
.hud[data-hs="classic"] > .hud-petbar .hud-tgl { width: var(--hud-slot); height: var(--hud-slot); }
/* A slot the shown bar does not have (an extra strip's pet bar holds nine). */
.hud .slot.is-off { display: none !important; }
/* Mobile mode: Classic's two rows and Invoker's main strip a slot size down, so twelve fit between
   the stick and the right edge on a 667px phone. */
html.m-mobile .hud > :is(.hud-bar, .hud-petbar) { --hud-slot: 34px; }
html.m-mobile .hud[data-hs="classic"] > .hud-bar .hud-tgl { width: 34px; height: 34px; }
/* Mobile Classic stands at the bottom centre as on a desktop (.hud-bar's own place); the pet's row
   starts over your first slot: your bar is twelve slots, its 4px gap and Auto's 34px, centred. On a
   stage too narrow for that both rows step right just enough to keep 8px clear of the stick's ring
   (40-hud.css .hud-joy: edge + 96px in, 120px wide). */
html.m-mobile .hud[data-hs="classic"] > :is(.hud-bar, .hud-petbar) {
  left: max(50%, calc(var(--hud-edge) + 96px + 120px + 8px + (12 * var(--hud-slot) + 38px) / 2));
}
html.m-mobile .hud[data-hs="classic"] > .hud-petbar { transform: translateX(calc((12 * var(--hud-slot) + 38px) / -2)); }

/* ------------------------------------------------------------ THE MAIN STRIP */
/* [CP][a page of slots over PN][AA][RT][BF] at the bottom centre (.hud-bar's own place). */
.hud-inv__cp {
  appearance: none; position: relative; flex: none; width: calc(var(--hud-slot) + 4px); height: calc(var(--hud-slot) + 4px);
  margin: 0 2px 0 0; padding: 0; border: 0; border-radius: 50%; background: none;
  cursor: var(--cur-hand, pointer);
}
.hud-inv__cp .hud-portrait { width: 100%; height: 100%; padding: 2px; }
.hud .hud-bar > .hud-inv__rt { width: 36px; height: 36px; }
/* The pet's switch on the main strip only while the strip shows the pet's bar (bar.ts is-shown). */
.hud > .hud-bar > .hud-tgl--pet:not(.is-shown) { display: none !important; }
.hud > .hud-bar .hud-bar__tray--pet .slot.is-empty::after { background-image: url(/data/art/ui/slot-paw.94060037.webp); }

/* ------------------------------------------------------------ THE PAGE WINDOW */
/* Every strip's slots in one row, in a window that takes the room of the longer page (--inv-n,
   index.ts; the extra strips take their shown page, below), so a CP flip or a short last page moves nothing (owner, 2026-10-26), and shows one page:
   --pp slots wide (the shown bar's per page), the rest of the room a margin, clipped on its sides
   only, so the rim lights and key caps leave above and below. An axis-aligned overflow clip is a
   scissor on the GPU; the clip-path it was made an offscreen pass every frame a light ran or a
   cooldown swept (#517). The row stands at page --pg; a swipe moves it by hand, `.is-snap` slides
   it to its page (invoker.ts pager, owner 2026-10-27). The window takes every touch: no pan, no
   pull-to-refresh. */
.hud .hud-inv__win {
  --tg: 0px; --pp: 6;
  position: relative; flex: none; align-self: stretch; display: flex; align-items: center; touch-action: none;
  width: calc(var(--pp) * var(--hud-slot) + (var(--pp) - 1) * var(--tg));
  margin-right: calc((var(--inv-n, 6) - var(--pp)) * (var(--hud-slot) + var(--tg)));
  overflow-x: clip; overflow-y: visible;
}
.hud .hud-inv__win > .hud-bar__tray, .hud .hud-inv__win > .hud-ot__tray {
  flex: none; gap: var(--tg); justify-content: flex-start;
  transform: translateX(calc(var(--pg, 0) * var(--pp) * (var(--hud-slot) + var(--tg)) * -1));
}
.hud .hud-inv__win > .is-snap { transition: transform .22s cubic-bezier(.2, .8, .3, 1); }
/* PN (invoker.ts pageBar): a small dot a page, the shown one lit, in a row 3px under the shown
   page's slots at its left end, clear of the slot art (owner, 2026-10-30: it was a segment a page
   laid on the slots' edge, as wide as the page). Each dot's hit area starts at the edge, never over
   the slots. */
.hud .hud-inv__pages {
  position: absolute; z-index: 1; left: 0; top: calc(50% + var(--hud-slot) / 2);
  display: flex;
}
.hud .hud-inv__pages[hidden] { display: none; }
.hud-inv__page {
  appearance: none; flex: none; width: 8px; height: 13px; margin: 0; padding: 3px 2px 6px; border: 0; background: none;
  cursor: var(--cur-hand, pointer);
}
.hud-inv__page::before {
  content: ""; display: block; width: 4px; height: 4px; border-radius: 50%; background: rgba(var(--brass-rgb), .35);
  box-shadow: 0 0 2px rgba(var(--shadow-ink), .9);
}
.hud-inv__page:hover::before { background: rgba(var(--brass-rgb), .65); }
.hud-inv__page.is-on::before { background: var(--hud-gold); box-shadow: 0 0 2px rgba(var(--shadow-ink), .9), 0 0 4px rgba(var(--brass-rgb), .6); }

/* ------------------------------------------------------------ THE EXTRA STRIPS */
/* Over the main strip, column by column in two rows: 1 above it, 2 stacked, 3 = two left + one
   right, 4 = two by two (overtake.ts keeps the roster order). Each a step smaller than the main. */
.hud > .hud-ot {
  left: 50%; bottom: calc(var(--hud-bar-b) + var(--hud-slot) + 16px); transform: translateX(-50%);
  display: grid; grid-template-rows: auto auto; grid-auto-flow: column; align-content: end; gap: 6px 28px;
  width: max-content; pointer-events: none;
}
.hud > .hud-ot > .hud-ot__row { --hud-slot: 30px; }
/* An extra strip is as wide as its shown page (owner, 2026-10-29), its switches right after the last
   slot, each strip centred in its column; a CP flip resizes it. */
.hud > .hud-ot > .hud-ot__row > .hud-inv__win { margin-right: 0; }
.hud > .hud-ot { justify-items: center; }
/* Three or four strips on a desktop: two equal columns, so the gap between them is the screen's
   centre, the left column's strips against its right edge and the right column's against its left
   (owner, 2026-10-29: both sides anchored on the centre). */
html.m-desktop .hud > .hud-ot.is-two-cols { grid-template-columns: 1fr 1fr; }
html.m-desktop .hud > .hud-ot.is-two-cols > .hud-ot__row:nth-child(-n + 2) { justify-self: end; }
html.m-desktop .hud > .hud-ot.is-two-cols > .hud-ot__row:nth-child(n + 3) { justify-self: start; }
/* Mobile mode, in a fight only (overtake.ts): two left and two right, over the main strip. */
html.m-mobile .hud > .hud-ot {
  left: var(--hud-edge); right: var(--hud-edge); bottom: calc(26px + 34px + 10px); transform: none; width: auto;
  grid-template-columns: auto auto; justify-content: space-between; gap: 4px 8px;
}
html.m-mobile .hud > .hud-ot > .hud-ot__row { --hud-slot: 26px; gap: 2px; }
/* Mobile: the left column keeps to the left edge, the right one to the right. */
html.m-mobile .hud > .hud-ot { justify-items: start; }
html.m-mobile .hud > .hud-ot > .hud-ot__row:nth-child(n + 3) { justify-self: end; }
.hud-ot__row.is-pet .slot.is-empty::after { background-image: url(/data/art/ui/slot-paw.94060037.webp); }

/* ------------------------------------------------------------ THE PARTY-COLOUR RINGS */
/* A portrait of a body in your party (invoker.ts ringOf): the astro ring takes its party colour,
   keeping the ring's own light and shade (the colour laid over it in `color` blend, clipped to it). */
.hud-portrait.has-pc::after {
  background: linear-gradient(var(--pc), var(--pc)), var(--art-ring) center / 100% 100% no-repeat;
  background-blend-mode: color, normal;
  -webkit-mask: var(--art-ring) center / 100% 100% no-repeat;
  mask: var(--art-ring) center / 100% 100% no-repeat;
}

/* ---- 45-plates.css */
/* THE PLATE LAYER: the DOM over the world. The world's own nameplates - a character's name, a
   monster's, an NPC's and a pet's name, the costume and season boards, the fight mark - are not
   here: glplates.ts draws them on the canvas. What is left is what takes the pointer or is one of
   a few: the fight's plates (combat.ts, built by plate.ts buildPlate), the shop board over a
   trading body and your own gathering bar (main.ts stallBoardOn / gatherSwing), both placed on
   top of the body's drawn plate. Not a surface the windows dress: there is no face behind it, the
   background is whatever the world is painting.

   PX, and only here (with 50-battle.css): main.ts and combat.ts place at raw toScreen() pixels
   over a body whose size is a fact about the camera; the layer is never HUD-scaled.
   `html.world-far` is far view (tier.ts FAR_K, main.ts resize), which stands back: everything comes down
   with its bodies.

   A fight plate is the world's look in DOM: the colour of the NAME says what the body is to you,
   the level trails it in the quiet gold. */

/* Its own root on <body> (gui/hud/index.ts), a .bleed: the whole glass, never scaled (no stage);
   z 0, under the HUD and every open window. Its own compositor layer, as when it was a HUD block.
   The HUD's type, which it no longer inherits. */
.hud-plates { inset: 0; pointer-events: none; z-index: var(--z-plates, 0); will-change: transform;
  font-family: var(--hud-face); font-size: 14px; line-height: 1.35; letter-spacing: .01em;
  color: var(--hud-text); text-shadow: var(--hud-shadow); -webkit-font-smoothing: antialiased; user-select: none; }
.hud-plates img { image-rendering: pixelated; }
.hud-plates button { font: inherit; color: inherit; letter-spacing: inherit; text-shadow: inherit; touch-action: none; }
/* The plate layer goes with the swirl and with the wait before the arena is staged (main.ts). */
.hud-plates.cb-swap { opacity: 0; transition: opacity 120ms linear; }

/* Any text sitting directly on the world carries this; text inside a window does not. */
.gs-on-world { text-shadow: var(--world-shadow); }

.gs-plate { width: 92px; text-align: center; }
/* Placed by plate.ts placePlate with a transform from the layer's corner, on its own compositor
   layer, so walking and fighting never lay out or repaint it. `width: auto` so a long name never
   wraps; 92px stays the minimum, and it is the width every bar under the name is fixed to. */
.hud-plates .gs-plate {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  transform: translate(-50%, -100%);
  width: auto;
  min-width: 92px;
  white-space: nowrap;
}
.gs-plate__id { display: flex; align-items: center; justify-content: center; }
.gs-plate__lines { min-width: 0; }
/* The name row: the nickname and the level on one baseline, in the UI sans like every name
   (owner, 2026-10-08). 600: the one weight shipped. The four-sided rim carries the row over grass and snow. */
.gs-plate__name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-family: var(--face-ui);
  font-size: var(--plate-fs);
  font-weight: 600;
  color: var(--gs-plate-ink, var(--plate-ink));
  text-shadow: var(--plate-name-shadow);
}
/* The level AFTER the name ("Lv. 85", owner 2026-10-10), same face and size, in the world's gold:
   a fact about the body, not part of its name, and never the name's own hue. */
.gs-plate__lvl { color: var(--world-gold); font-weight: 600; }
.gs-plate__lvl[hidden] { display: none; }

/* The shop board over a trading body (main.ts stallBoardOn): a small paper sign in the world
   voice, and a BUTTON - pressing it walks up to the counter. The one thing in the layer that takes
   the pointer outside a fight. Its own compositor layer, placed by placePlate on top of the body's
   drawn plate. Spelled under .hud-plates: `.hud-plates button` outranks a lone class. */
.hud-plates .gs-plate__stall {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  display: block;
  max-width: 150px;
  padding: 1px 8px 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--plate-rim);
  border-radius: 5px;
  font-family: var(--face-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--plate-stall-ink);
  text-shadow: none;
  background: var(--plate-ink);
  box-shadow: var(--plate-lift);
  pointer-events: auto;
  cursor: var(--cur-hand, pointer);
}
.hud-plates .gs-plate__stall:hover { background: var(--plate-stall-hover); }

/* Who this body is to the reader, one token per kind, used by the name and the bar's ring. The
   target is said twice so it beats the plain kinds on the plate about to be hit. */
.gs-plate--ally, .gs-plate--player { --gs-plate-ink: var(--plate-ink); }
.gs-plate--hostile { --gs-plate-ink: var(--plate-foe); }
.gs-plate.is-targeted,
.hud-plates .gs-plate.is-targeted { --gs-plate-ink: var(--gold-bright); }

/* THE PLATE'S BAR (a fight's health, combat.ts): the game's one bar shape at a plate's height. The
   fill is full width drawn through scaleX, so a blow is a compositor animation, never a layout. */
.plate-bar {
  position: relative;
  height: 6px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bar-track);
  border: var(--border-width, 1px) solid var(--border-hard);
}
.plate-bar__fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  transform-origin: left;
  background: var(--bar-wash), var(--ember-500);
  box-shadow: inset 0 1px 0 0 var(--ember-400);
  transition: transform 180ms ease-out;
}
.gs-plate--ally .plate-bar__fill { background: var(--bar-wash), var(--moss-500); box-shadow: inset 0 1px 0 0 var(--moss-400); }
.gs-plate.is-targeted .plate-bar { box-shadow: inset 0 0 0 1px var(--gold-bright); }

/* The gathering cycle over your own head (main.ts gatherSwing): gui/c/marks.ts `bar` in gold, a
   clock counting up, not a pool draining. Fixed 92px, placed by placePlate on top of your plate,
   never a readout of name length. */
.hud-plates .gs-plate__siege { position: absolute; left: 0; top: 0; will-change: transform; width: 92px; height: 6px; }
.gs-plate__siege > .bar__fill { transition: none; }

/* THE FAR CAMERA (a phone, main.ts resize): bodies are half a desktop's height. Names come down
   through --plate-fs (10px), the shop board a size down with them. */
html.world-far .hud-plates .gs-plate__stall { max-width: 96px; padding: 0 5px 1px; border-radius: 3.5px; font-size: 9px; }

/* ---- 50-battle.css */
/* THE FIGHT'S DOM (combat.ts): the fight plate's bar and status marks, the floating numbers
   (numbers.ts, also the world's), the critical burst, the soul orb and the result banner. All of it lives in the plate
   layer (45-plates.css), never zoomed, at raw toScreen() pixels: px here, as there. The plate
   itself is the world's (plate.ts). */

.cb-plate,
.cb-crit {
  position: absolute;
  pointer-events: none;
}
/* The death clip ends on an empty frame, so a corpse has no body left to label. */
.cb-plate.cb-dead { display: none; }

/* Health under the name: ONE width for every body in the fight (92px, a plate's own width), never
   a readout of name length; a boss (Fighter.boss, a flag on the wire) wears 1.5x, still fixed. */
.cb-plate .cb-hp { margin-top: 2px; width: 92px; margin-inline: auto; }
.cb-plate.cb-boss .cb-hp { width: 138px; }

/* THE STATUS MARKS, under the health bar over every body in the fight. A mark is the buff's own
   picture, its seconds in the corner, its name, what it does and the time left in its card
   (gui/c/status.ts markCard, hover or a tap): the marks take the pointer for that, and nothing
   else on a plate does. Direction is the rim - the ally green, the
   hostile red - drawn outside the box over a dark ring, never a tint over the art. Wrapping beats
   clipping; an empty row has no height. */
.cb-plate .cb-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 4px; }
.cb-plate .cb-status:not(:empty) { margin-top: 4px; }
.cb-mark {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  pointer-events: auto;
  cursor: var(--cur-arrow, default);
}
.cb-mark--up { box-shadow: 0 0 0 1px var(--moss-400), 0 0 0 2px var(--border-hard); }
.cb-mark--down { box-shadow: 0 0 0 1px var(--ember-400), 0 0 0 2px var(--border-hard); }
/* The 32px atlas cell ZOOMED into the mark, never resized: --ico-box is the one knob. */
.cb-mark__ico { --ico-box: 15px; display: block; }
/* A status with no picture still makes a mark: filled with its rim's colour. */
.cb-mark--bare.cb-mark--up .cb-mark__ico { background: var(--moss-400); }
.cb-mark--bare.cb-mark--down .cb-mark__ico { background: var(--ember-400); }
/* The seconds, hanging off the corner on a ground sized to the digits (two fit beside a mark). */
.cb-mark__n {
  position: absolute;
  right: -3px;
  bottom: -3px;
  padding: 0 1px;
  border-radius: 2px;
  background: var(--mark-count-bg);
  color: var(--text);
  font-family: var(--face-ui);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.25;
}

/* THE FAR CAMERA (a phone, main.ts resize): its fight stands back and bodies are half their
   desktop height; a 92px bar was wider than two bodies side by side. Same one-width rule. */
html.world-far .cb-plate .cb-hp { width: 52px; height: 4px; }
html.world-far .cb-plate.cb-boss .cb-hp { width: 78px; }
html.world-far .cb-plate .cb-status { gap: 2px 3px; }
html.world-far .cb-mark { width: 11px; height: 11px; }
html.world-far .cb-mark__ico { --ico-box: 11px; }
/* An 11px mark is too small for a finger: the tap lands on a wider, unseen square around it. */
html.world-far .cb-mark::after { content: ""; position: absolute; inset: -5px -1px; }
/* Mobile mode: one size tier down whatever the camera (P12): the fight scene is fitted to a short
   screen, where a 92px bar spans two bodies. */
:where(html.m-mobile) .cb-plate .cb-hp { width: 52px; height: 4px; }
:where(html.m-mobile) .cb-plate.cb-boss .cb-hp { width: 78px; }
:where(html.m-mobile) .cb-plate .cb-status { gap: 2px 3px; }
:where(html.m-mobile) .cb-mark { width: 11px; height: 11px; }
:where(html.m-mobile) .cb-mark__ico { --ico-box: 11px; }
:where(html.m-mobile) .cb-mark::after { content: ""; position: absolute; inset: -5px -1px; }

/* THE FLOATING NUMBERS (numbers.ts): every damage, heal, mana and "miss" word, one component for
   the fight and the world. Pooled elements in their own layer over the plates; numbers.ts moves
   them with Web Animations on transform and opacity only, so nothing here animates. Legibility
   first: a hard dark outline and a soft halo cut every number out of sand, sea or a battle
   backdrop; the colour is the theme's. Tamer Sans ships at 600 alone, so a critical's weight is a
   thicker outline and a bigger size, never a faux bold. */
.fn-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fn {
  --fn-ink: var(--fn-hit);
  --fn-rim: var(--fn-outline);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}
.fn[hidden], .fn [hidden] { display: none; }
.fn__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, 0);
  opacity: 0;
  font-family: var(--face-ui);
  font-weight: 600;
  line-height: 1;
  color: var(--fn-ink);
  text-shadow:
    -1.5px -1.5px 0 var(--fn-rim), 1.5px -1.5px 0 var(--fn-rim), -1.5px 1.5px 0 var(--fn-rim), 1.5px 1.5px 0 var(--fn-rim),
    0 2px 0 var(--fn-rim), 0 0 6px rgba(0, 0, 0, .85), 0 2px 10px rgba(0, 0, 0, .6);
}
.fn__row { display: flex; align-items: center; gap: 4px; }
.fn__val { position: relative; font-size: 32px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
/* The white the critical lands in, over its own ink, faded off by numbers.ts. */
.fn__flash { position: absolute; inset: 0; color: var(--fn-flash); opacity: 0; }
.fn__pic { --ico-box: 22px; flex: none; }

.fn--heal { --fn-ink: var(--fn-heal); }
.fn--heal .fn__val, .fn--mana .fn__val { font-size: 26px; }
.fn--mana { --fn-ink: var(--world-mana); }
.fn--blood { --fn-ink: var(--fn-blood); }
.fn--blood .fn__val { font-size: 28px; }
.fn--zero { --fn-ink: var(--fn-zero); }
.fn--zero .fn__val { font-size: 21px; letter-spacing: 0.04em; }
/* A magic blow (the server's `magic` on the hit, #548): blue, where physical is red. */
.fn--magic { --fn-ink: var(--fn-magic); }

/* THE CRITICAL: bigger, a 2px outline, a red and a cyan edge either side (the chromatic fringe),
   the white flash, and its kind's ink run hot: physical red to burning orange, magic blue to
   electric cyan (#548). No glow, no ring: the ink is the heat. */
.fn--crit { --fn-ink: var(--fn-crit); }
.fn--crit.fn--magic { --fn-ink: var(--fn-magic-crit); }
.fn--crit .fn__body {
  text-shadow:
    -2px -2px 0 var(--fn-rim), 2px -2px 0 var(--fn-rim), -2px 2px 0 var(--fn-rim), 2px 2px 0 var(--fn-rim),
    0 2.5px 0 var(--fn-rim), -3px 0 0 var(--fn-fringe-a), 3px 0 0 var(--fn-fringe-b),
    0 0 8px rgba(0, 0, 0, .9);
}
.fn--crit .fn__val { font-size: 50px; letter-spacing: 0.01em; }
.fn--crit .fn__flash {
  text-shadow:
    -2px -2px 0 var(--fn-rim), 2px -2px 0 var(--fn-rim), -2px 2px 0 var(--fn-rim), 2px 2px 0 var(--fn-rim),
    0 0 14px rgba(255, 255, 255, .9);
}

/* The far camera (a phone): everything comes down with its bodies. */
html.world-far .fn__val { font-size: 24px; }
html.world-far .fn--heal .fn__val, html.world-far .fn--mana .fn__val { font-size: 20px; }
html.world-far .fn--zero .fn__val { font-size: 16px; }
html.world-far .fn--crit .fn__val { font-size: 37px; }
html.world-far .fn__pic { --ico-box: 17px; }

/* Mobile mode (a landscape phone, ~390 css px tall): the numbers are sized for the short screen,
   about half the desktop size, whatever the camera. After world-far and as specific, so it wins. */
html.m-mobile .fn__val { font-size: 18px; }
html.m-mobile .fn--heal .fn__val, html.m-mobile .fn--mana .fn__val { font-size: 15px; }
html.m-mobile .fn--zero .fn__val { font-size: 13px; }
html.m-mobile .fn--crit .fn__val { font-size: 27px; }
html.m-mobile .fn__pic { --ico-box: 13px; }


/* THE CRITICAL BURST: a flat star of light out of the body a critical landed on, behind every
   number and plate (combat.ts prepends it). A 0x0 point at the impact; `--r` the longest spike,
   `--spin` the star's turn, each spike its own `--a` angle and `--l` length. Screen-blended, so
   crossing spikes brighten. */
.gs-crit-burst {
  --r: 44px;
  --spin: 0deg;
  width: 0;
  height: 0;
  mix-blend-mode: screen;
}
.gs-crit-burst__core {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--r) * 0.62);
  height: calc(var(--r) * 0.62);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgb(var(--fx-white-rgb)) 0 9%,
    var(--burst-cream) 20%,
    rgba(var(--burst-amber-rgb), 0.55) 34%,
    rgba(var(--burst-orange-rgb), 0.22) 52%,
    rgba(var(--burst-ember-rgb), 0) 70%);
  animation: gs-crit-core 340ms cubic-bezier(0.1, 0.72, 0.3, 1) forwards;
}
.gs-crit-burst i {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--r) * var(--l, 1));
  height: calc(var(--r) * 0.065);
  margin-top: calc(var(--r) * -0.0325);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(var(--fx-white-rgb), 0.55) 0, rgb(var(--fx-white-rgb)) 22%, var(--burst-spike) 58%, rgba(var(--burst-tip-rgb), 0) 100%);
  clip-path: polygon(0 46%, 34% 0, 100% 50%, 34% 100%);
  animation: gs-crit-spike 300ms cubic-bezier(0.08, 0.78, 0.28, 1) forwards;
}
@keyframes gs-crit-core {
  from { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  40%  { opacity: 0.85; }
  to   { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}
/* The rotation restated in every frame: a keyframe replaces the whole transform. */
@keyframes gs-crit-spike {
  from { transform: rotate(calc(var(--spin) + var(--a))) scaleX(0.12); opacity: 0.85; }
  18%  { opacity: 1; }
  to   { transform: rotate(calc(var(--spin) + var(--a))) scaleX(1); opacity: 0; }
}

/* THE SOUL ORB: what a caught creature leaves where it stood - held, not killed. Violet, the one
   cold thing on a warm battlefield; rises as it fades; one shockwave ring. */
.gs-soul-orb {
  --r: 26px;
  width: 0;
  height: 0;
  mix-blend-mode: screen;
}
.gs-soul-orb__core {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgb(var(--fx-white-rgb)) 0 12%,
    var(--orb-lilac) 26%,
    rgba(var(--orb-violet-rgb), 0.72) 46%,
    rgba(var(--orb-deep-rgb), 0.30) 68%,
    rgba(var(--orb-night-rgb), 0) 82%);
  animation: gs-soul-orb-core 620ms cubic-bezier(0.16, 0.72, 0.3, 1) forwards;
}
.gs-soul-orb__ring {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
  border: 2px solid rgba(var(--orb-ring-rgb), 0.85);
  animation: gs-soul-orb-ring 420ms cubic-bezier(0.1, 0.7, 0.3, 1) forwards;
}
@keyframes gs-soul-orb-core {
  from { transform: translate(-50%, -50%) scale(0.25); opacity: 0; }
  22%  { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  55%  { transform: translate(-50%, -62%) scale(0.92); opacity: 0.95; }
  to   { transform: translate(-50%, -120%) scale(0.55); opacity: 0; }
}
@keyframes gs-soul-orb-ring {
  from { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
  to   { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}
/* Reduced motion keeps the FACT and drops the flourish: the orb is a still point, the burst goes
   (the number still turns gold and the body still flinches; numbers.ts drops its own slam). */
@media (prefers-reduced-motion: reduce) {
  .gs-soul-orb__ring { display: none; }
  .gs-soul-orb__core { animation: gs-soul-orb-still 500ms linear forwards; }
  @keyframes gs-soul-orb-still {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to   { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  }
  .gs-crit-burst { display: none; }
}

/* THE RESULT, modal over the field: the veil is the click trap (dismiss is the only thing a click
   can do while it is up), the banner the readout over the middle. A defeat colours its veil. */
.cb-veil {
  position: absolute;
  inset: 0;
  z-index: 2; /* over the numbers' layer */
  pointer-events: auto;
  background: var(--scrim);
  animation: cb-veil-in 200ms linear;
}
.cb-veil--loss { background: var(--world-veil-loss); }
@keyframes cb-veil-in { from { opacity: 0; } to { opacity: 1; } }
.gs-banner {
  font-family: var(--face-ui);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: var(--world-shadow);
}
.gs-banner--result {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.gs-banner--loss { color: var(--ember-300); }
.gs-banner--flee { color: var(--text-mute); }
/* A gain line: a picture and a number (exp, coin), or a drop: the item's tile, its name in its
   quality's world ink, the count. One centred list under the verdict. */
.gs-banner__gain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 4px;
  color: var(--stone-50);
}
.cb-gain__ic { width: 20px; height: 20px; flex: none; }
.cb-drop__ico { --ico-box: 24px; flex: none; }
.gs-banner__gain--drop { cursor: var(--cur-loot, default); }
.cb-drop__name--green  { color: var(--world-q-green); }
.cb-drop__name--blue   { color: var(--world-q-blue); }
.cb-drop__name--yellow { color: var(--world-q-yellow); }
.cb-drop__name--gold   { color: var(--world-q-gold); }
.cb-drop__name--purple { color: var(--world-q-purple); }
.cb-drop__name--prism { color: var(--world-q-prism); text-shadow: var(--prism-glow); }

/* MANUAL TARGETING (combat.ts drawAim, vault note 262). Owner 2026-10-17: a ring under the feet and
   an arrow over the head of the body the next turn hits, nothing else on the body. The arrow, the
   tag and the overtake lines are placed like a plate, by translate3d at raw screen px in the plate
   layer; the rings themselves are on the ground (below). */
.hud-plates .cb-aim { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform; }
.hud-plates .cb-aim[hidden] { display: none; }
/* An overtaken body's pick (combat.ts drawOvertake, owner 2026-10-23): a brass line from its feet to
   the feet of the body its next turn hits, green for an ally; dashed while its crosshair is dragged. */
.hud-plates .cb-otline {
  position: absolute; left: 0; top: 0; height: 3px; margin-top: -1.5px; transform-origin: 0 50%;
  pointer-events: none; will-change: transform; border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--brass-hi-rgb), .25), var(--brass-hi));
  box-shadow: 0 0 6px rgba(var(--brass-hi-rgb), .6);
}
.hud-plates .cb-otline[hidden] { display: none; }
.hud-plates .cb-otline--ally { background: linear-gradient(90deg, rgba(78, 145, 48, .25), var(--moss-400)); box-shadow: 0 0 6px rgba(78, 145, 48, .6); }
.hud-plates .cb-otline.is-drag { background: repeating-linear-gradient(90deg, var(--brass-hi) 0 10px, transparent 10px 16px); box-shadow: none; }
/* THE RINGS are on the arena's ground, under the bodies (combat.ts drawAim, fight-rings.ts; owner,
   2026-11-01): red for the pick, green on an ally, each character's party colour under Invoker,
   faint dashed brass for the options, the pointer's body and a pick that will not be hit. What
   stays here is the tag under that last one ("covered") and the arrow over the pick, in the
   ring's colour (--aim, written by combat.ts). */
.cb-ring__tag {
  position: absolute; left: 0; top: 2px; transform: translateX(-50%); white-space: nowrap;
  font-size: 12px; font-weight: 700; color: var(--brass-pale); text-shadow: var(--world-shadow);
}
/* Over the plate (placePlate stands it on the head, translate(-50%,-100%)), bobbing gently. The
   bob is the mark's own `translate` (combat.ts writes its `transform`), so the compositor moves the
   whole mark; its shadow is a picture under the triangle (a 3 px blur of the same triangle), not a
   filter: a drop-shadow on the bobbing layer was an offscreen pass every frame of your turn (#517). */
.cb-arrow { animation: cb-arrow-bob 1s ease-in-out infinite; }
.cb-arrow::before, .cb-arrow::after { content: ""; position: absolute; }
.cb-arrow::before {
  left: -15px; top: -67px; width: 30px; height: 23px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 23'%3E%3Cfilter id='b' x='-1' y='-1' width='3' height='3'%3E%3CfeGaussianBlur stdDeviation='1.5'/%3E%3C/filter%3E%3Cpath d='M5 5H25L15 18Z' fill='rgb(1,3,10)' fill-opacity='.9' filter='url(%23b)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.cb-arrow::after {
  left: -10px; top: -62px; width: 0; height: 0;
  border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 13px solid var(--aim, var(--ember-400));
}
.cb-arrow--low::before { top: -1px; }
.cb-arrow--low::after { top: 4px; }
@keyframes cb-arrow-bob { 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .cb-arrow { animation: none; } }

/* THE WORLD BOSS (combat.ts clock + world-boss.ts, vault note 297). The boss's health bar gives way to
   its battle clock: the time held over a thin ember bar that fills toward the cap (6:00), and the
   enrage level beside the time once it has one. The boss cannot die, so a health bar would only lie. */
.cb-plate.cb-timed .cb-hp { display: none; }
.cb-clock { width: 138px; margin: 2px auto 0; display: grid; gap: 2px; }
.cb-clock__row { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.cb-clock__time {
  font-family: var(--face-ui); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--gold-bright); text-shadow: var(--world-shadow);
}
.cb-clock__rage {
  padding: 0 5px; border-radius: 3px; font-family: var(--face-ui); font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.5;
  color: var(--stone-50); background: var(--ember-500); box-shadow: 0 0 0 1px var(--ember-300), 0 0 6px var(--ember-400);
}
.cb-clock__rage[hidden] { display: none; }
.cb-clock__bar { height: 4px; border-radius: 2px; overflow: hidden; background: var(--navy-0); box-shadow: 0 0 0 1px var(--border-hard); }
.cb-clock__fill {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-bright), var(--ember-400));
}
html.world-far .cb-clock { width: 96px; }
html.world-far .cb-clock__time { font-size: 13px; }
:where(html.m-mobile) .cb-clock { width: 96px; gap: 1px; }
:where(html.m-mobile) .cb-clock__time { font-size: 13px; }
:where(html.m-mobile) .cb-clock__rage { font-size: 9px; padding: 0 4px; }
:where(html.m-mobile) .cb-clock__bar { height: 3px; }

/* The world boss result: no verdict colour, the night's ember on the title, the time big under it,
   the pay as gain lines, then the server total and the tries left as two figures side by side. */
.gs-banner--boss { color: var(--gold-bright); }
.gs-banner--boss .wb-time { font-size: 44px; line-height: 1.05; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--stone-50); }
.gs-banner--boss .wb-who { font-size: 12px; font-weight: 500; color: var(--text-mute); }
.gs-banner--boss .wb-figs { display: flex; justify-content: center; gap: 22px; margin-top: 12px; letter-spacing: 0; text-transform: none; }
.gs-banner--boss .wb-fig { display: grid; grid-template-rows: auto 22px; justify-items: center; align-items: center; gap: 3px; }
.gs-banner--boss .wb-fig > small { font-size: 11px; font-weight: 500; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; }
.gs-banner--boss .wb-fig > b { font-size: 16px; color: var(--stone-50); }
:where(html.m-mobile) .gs-banner--boss { top: 50%; font-size: 22px; }
:where(html.m-mobile) .gs-banner--boss .wb-time { font-size: 34px; }
:where(html.m-mobile) .gs-banner--boss .gs-banner__gain { margin-top: 2px; font-size: 13px; }
:where(html.m-mobile) .gs-banner--boss .wb-figs { margin-top: 8px; gap: 18px; }

/* Shadow Soul has no item and no painting: a CSS orb, violet heart and ember rim (no texture). */
.wb-soul {
  display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f3e6ff 0 12%, #9a6ee6 38%, #3a1f66 70%, transparent 72%);
  box-shadow: 0 0 6px rgba(255, 138, 72, .75), inset 0 0 0 1px rgba(255, 170, 110, .5);
}
/* Tries as pips: lit = left today, hollow = spent. */
.wb-pips { display: inline-flex; gap: 5px; align-items: center; }
.wb-pip { width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--gold-bright); opacity: .45; }
.wb-pip.is-on { background: var(--gold-bright); opacity: 1; box-shadow: 0 0 5px rgba(255, 200, 90, .7); }

/* ---- 55-levelup.css */
/* YOUR LEVEL-UP: the centre medallion (apps/game/client/levelup-medal.ts), ported from the theme
   lab's #lvup (docs/ui-overhaul/themes css/fx.css, js/fx.js; t03 Midnight Astrolabe). The world
   ring under every levelling body is levelup.ts and stays.

   Every size is a share of --lvup-d, the medallion's diameter in the stage's design px (.lvup__stage,
   the windows' layer): the lab's 520 px at the desktop's design size, 364 px in mobile mode (273 px
   on the glass of a 390 high phone, 70% of it). The veil and the rays bleed (the flash is drawn on
   the rays' canvas: two screen-sized layers for the moment, #517). The
   number in the hollow is a medal number, out of the type scale on purpose (00-tokens.css). The
   lab's world-screenshot tunnel is a radial navy veil here. */

.lvup {
  --lvup-d: 520px;
  position: fixed; inset: 0; z-index: var(--z-fx);
  display: none; overflow: hidden;
  cursor: var(--cur-hand); touch-action: none; user-select: none;
}
html.m-mobile .lvup { --lvup-d: 364px; }
.lvup.is-on { display: block; }
/* Fading out it takes no press: the world is the player's again. Each part fades on its own, never
   the root: an opacity over the whole moment was a screen-sized offscreen pass every frame of the
   fade (#517). */
.lvup.is-out { pointer-events: none; }
.lvup.is-out > :not(.lvup__stage), .lvup.is-out > .lvup__stage > * { animation: lvup-out .5s forwards; }
@keyframes lvup-out { to { opacity: 0; } }
@keyframes lvup-fade { from { opacity: 0; } }

.lvup__veil {
  position: absolute; inset: 0; animation: lvup-fade .35s;
  background:
    radial-gradient(circle at 50% 49%, rgba(var(--navy-1-rgb), .7) 0, rgba(var(--navy-2-rgb), .5) 30%,
      rgba(var(--sky-rgb), .16) 48%, rgba(var(--wash-rgb), .8) 80%),
    linear-gradient(rgba(var(--navy-3-rgb), .35), rgba(var(--navy-3-rgb), .35));
}
.lvup__rays { position: absolute; inset: 0; width: 100%; height: 100%; }

/* The ring of words, turning slowly round the medallion. Sizes inside the svg are its own units
   (a 560 box), scaled with it. */
.lvup__runes {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--lvup-d) * 1.385); height: calc(var(--lvup-d) * 1.385);
  translate: -50% -50%;
  animation: lvup-runes 1s ease-out both;
}
.lvup__runes svg { display: block; width: 100%; height: 100%; animation: lvup-spin 60s linear infinite; }
.lvup__runes text {
  font-family: var(--face-display); font-weight: var(--face-display-weight); font-size: 16px;
  text-transform: uppercase;
  fill: rgba(var(--ink-strong-rgb), .5);
}
.lvup__runes circle { fill: none; stroke: rgba(var(--ink-strong-rgb), .28); stroke-width: 1; }
@keyframes lvup-runes { from { opacity: 0; transform: scale(.85) rotate(-20deg); } }
@keyframes lvup-spin { to { transform: rotate(360deg); } }

.lvup__medal, .lvup__spks {
  position: absolute; left: 50%; top: 50%;
  width: var(--lvup-d); height: var(--lvup-d);
  margin: calc(var(--lvup-d) / -2) 0 0 calc(var(--lvup-d) / -2);
}
/* Its shadow is a soft dark disc painted under the picture, not a filter: a drop-shadow on the
   animated medallion was an offscreen pass every frame of the moment (#517). It comes in by scale
   and opacity alone (the blur it came in with was the same pass). */
.lvup__medal {
  background: url(/data/art/ui/lvup-medallion.f2787336.webp) center / contain no-repeat,
    radial-gradient(closest-side, rgba(var(--shadow-ink), .5) 50%, rgba(var(--shadow-ink), 0) 58%);
  animation: lvup-medal .75s cubic-bezier(.16, 1.3, .4, 1) both;
}
@keyframes lvup-medal { 0% { opacity: 0; transform: scale(1.9); } 60% { opacity: 1; } }

/* The word and the new number, in the hollow. */
.lvup__core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -46%);
  text-align: center; white-space: nowrap;
  animation: lvup-core .6s .35s both;
}
@keyframes lvup-core { from { opacity: 0; transform: translate(-50%, -30%); } }
.lvup__core small {
  display: block;
  font-family: var(--face-display); font-weight: var(--face-display-weight);
  font-size: calc(var(--lvup-d) * .05); line-height: 1.35;
  letter-spacing: .03em;
  color: var(--ink-strong);
  text-shadow: 0 2px 8px rgba(var(--shadow-ink), 1);
}
.lvup__core b {
  position: relative; display: block;
  margin-top: 2px;
  font-family: var(--face-display); font-weight: var(--face-display-weight);
  font-size: calc(var(--lvup-d) * .215); line-height: 1;
  background: linear-gradient(180deg, var(--ink-strong) 0, var(--brass-pale) 46%, var(--brass-hi) 54%, var(--brass-pale) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The number's shadow: the same number (data-n, levelup-medal.ts) under it with text shadows, not
   a filter over it (#517); a text shadow on the gradient number itself would cover the gradient. */
.lvup__core b::before {
  content: attr(data-n); position: absolute; inset: 0; z-index: -1;
  text-shadow: 0 2px 3px rgba(var(--shadow-ink), .9), 0 0 14px rgba(var(--brass-hi-rgb), .35);
}
/* The glint under the number. */
.lvup__core b::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
  width: 120%; height: 2px; margin: 0 auto;
  transform: translateX(-8%);
  background: radial-gradient(closest-side, rgba(var(--brass-pale-rgb), .95), transparent);
  animation: lvup-glint 1.2s .8s both;
}
@keyframes lvup-glint { from { opacity: 0; transform: translateX(-8%) scaleX(.2); } }

/* Sparkles twinkling on the spike tips and the ring (placed by levelup-medal.ts in % of the box). */
.lvup__spk {
  position: absolute;
  width: calc(var(--lvup-d) * .05); height: calc(var(--lvup-d) * .05);
  translate: -50% -50%;
  background: radial-gradient(circle, var(--ink-strong) 0 6%, rgba(var(--brass-pale-rgb), .6) 14%, transparent 40%);
  opacity: 0;
  animation: lvup-twinkle 1.6s infinite;
}
.lvup__spk::before, .lvup__spk::after {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 2px; height: 100%; margin-left: -1px;
  background: linear-gradient(transparent, var(--ink-strong), transparent);
}
.lvup__spk::after { transform: rotate(90deg); }
@keyframes lvup-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1); } }

/* A line merged with the moment (gui/notice.ts reward, P11: a quest handed in with the level-up),
   with its pictures, just under the medallion: the notable's own words (20-components.css
   .procl__text), a size down, over the ring's faint letters. */
.lvup__subs {
  position: absolute; left: 50%; top: calc(50% + var(--lvup-d) * .5);
  translate: -50% 0; width: 90%;
  display: flex; flex-direction: column; align-items: center; gap: .3em;
  font-size: calc(var(--lvup-d) * .03);
  animation: lvup-fade .5s .5s both;
}
.lvup__subs:empty { display: none; }
.lvup__subs .procl__text--sub {
  max-width: none; font-size: 1.6em; letter-spacing: .08em;
  text-shadow: 0 0 .3em rgba(var(--shadow-ink), 1), 0 .08em .2em rgba(var(--shadow-ink), 1);
}
html.m-mobile .lvup__subs { font-size: calc(var(--lvup-d) * .036); }

/* Less motion: no rays, no flash, no sparkles, nothing turning; the veil, the medallion and the
   number simply fade in. */
@media (prefers-reduced-motion: reduce) {
  .lvup__rays, .lvup__spks { display: none; }
  .lvup__veil, .lvup__runes, .lvup__medal, .lvup__core { animation: lvup-fade .4s both; }
  .lvup__runes svg, .lvup__core b::after { animation: none; }
}

/* ---- 56-gfx.css */
/* THE PULL (gacha-fx.ts; moved from w-fortuna.css): `.gfx` on <body> at --z-fx (30-win.css), a .bleed
   whose safe part is a stage of the windows' layer (ui/10-base.css), so everything inside is design px
   and em of --win-size, one size per mode. Dark; one star climbs from the foot to the centre and breathes; a ring per tier opens out of it in
   the tier's colour (the colour code: S violet, A gold, B sky, C jade, D slate); it bursts and the
   cards fly out into a row, face up. Everything is an element moved on transform and opacity. */
.gfx {
  position: fixed; inset: 0; overflow: hidden; contain: strict;
  color: var(--ink); cursor: var(--cur-arrow, default);
  background: radial-gradient(ellipse at 50% 55%, #0a0f24, #020309 70%);
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gfx:not(.is-live) { opacity: 0; pointer-events: none; }
.gfx [hidden] { display: none !important; }
.gfx [data-tier], .gfx__star { --t: 244, 239, 228; }
.gfx [data-tier="D"] { --t: 155, 167, 189; }
.gfx [data-tier="C"] { --t: 120, 210, 170; }
.gfx [data-tier="B"] { --t: 110, 214, 255; }
.gfx [data-tier="A"] { --t: 232, 200, 114; }
.gfx [data-tier="S"] { --t: 186, 120, 255; }
/* the close, top right, only once the cards are out */
.gfx__close { position: absolute; z-index: 4; top: .8em; right: 1em; font-size: 1.3em; opacity: 0; pointer-events: none; transition: opacity .3s .2s; }
.gfx.is-out .gfx__close { opacity: 1; pointer-events: auto; }
.gfx__flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 3;
  background: radial-gradient(circle at 50% 50%, #fff, rgba(255, 248, 232, .85) 30%, rgba(255, 240, 210, 0) 78%);
}

/* the stage: the star and the rings, all centred on the safe frame's middle */
.gfx__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gfx.is-out .gfx__stage { visibility: hidden; }
.gfx__star { position: absolute; left: 50%; top: 50%; width: 1.4em; height: 1.4em; margin: -.7em 0 0 -.7em; }
/* the core: a white point in a halo of the current tier's colour, with a four-pointed glint */
.gfx__core {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, rgba(var(--t), .9) 45%, rgba(var(--t), 0) 72%);
  box-shadow: 0 0 1.2em .3em rgba(var(--t), .75), 0 0 3.2em 1em rgba(var(--t), .35);
  transition: box-shadow .25s;
}
.gfx__core::before, .gfx__core::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5.2em; height: 2px; translate: -50% -50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
}
.gfx__core::after { rotate: 90deg; }
/* the tail it climbs on: a streak of light below it, gone as it arrives */
.gfx__tail {
  position: absolute; left: 50%; top: 50%; width: .3em; height: 19.7em; translate: -50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(200, 220, 255, .35) 30%, transparent);
  border-radius: .2em; filter: blur(1px);
}
.gfx__star.is-held { animation: gfx-breathe 1.1s ease-in-out infinite alternate; }
@keyframes gfx-breathe { to { scale: 1.18; } }
/* the held breath before a top ring: the star draws in and dims, trembling faintly */
.gfx__star.is-hush { animation: gfx-hush .7s ease-out forwards, gfx-tremble .09s linear .7s infinite alternate; }
@keyframes gfx-hush { to { scale: .55; opacity: .55; } }
@keyframes gfx-tremble { from { scale: .55; opacity: .55; translate: -.03em 0; } to { scale: .58; opacity: .62; translate: .03em 0; } }
/* a ring: a thin bright circle in its tier's colour with a soft glow either side */
.gfx__ring {
  position: absolute; left: 50%; top: 50%; width: 40em; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: .22em solid rgb(var(--t));
  box-shadow: 0 0 1.8em .35em rgba(var(--t), .7), inset 0 0 1.8em .35em rgba(var(--t), .55);
  background: radial-gradient(closest-side, rgba(var(--t), .3), rgba(var(--t), .1) 60%, transparent 85%);
  opacity: 0;
}
.gfx__ring.is-top { border-width: .32em; box-shadow: 0 0 2.2em .4em rgba(var(--t), .7), inset 0 0 2em .4em rgba(var(--t), .55), 0 0 0 1.1em rgba(var(--t), .12); }
.gfx__shock {
  position: absolute; left: 50%; top: 50%; width: 48em; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 55%, rgba(255, 255, 255, .55) 70%, transparent 76%);
  opacity: 0;
}

/* The row: tall arched cards (312:1300, the frame painting), the same size for a single pull as for
   ten (owner, 2026-10-31): one width per mode so ten fit the stage, nearly touching (the painting
   keeps only a thin glow beside its edge); the gap is a share of the card (.03). */
.gfx { font-size: var(--win-size); --cw: 9.4em; --gap: calc(var(--cw) * .03); }
.gfx__row {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center; gap: var(--gap); padding: 0 2.4em;
}
/* Laid out (hidden) from the start so the fly-out reads its spot; no pointer until it is out, so a
   hover during the star and the rings never opens a prize's card. */
.gfx__card { position: relative; flex: none; width: var(--cw); aspect-ratio: 312 / 1300; opacity: 0; pointer-events: none; visibility: hidden; }
.gfx__card.is-in { opacity: 1; pointer-events: auto; visibility: visible; }
/* the idle: a little float, each card on its own beat */
.gfx__float {
  position: absolute; inset: 0; z-index: 1;
  animation: gfx-float 3.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.8s);
}
@keyframes gfx-float {
  from { transform: translate3d(0, calc(var(--cw) * -.03), 0); }
  to { transform: translate3d(0, calc(var(--cw) * .03), 0); }
}
/* The face is the frame painting to its edge (alpha-cut), its glow painted in; no filter inside the float. */
.gfx__face { position: absolute; inset: 0; }
.gfx__frame { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.gfx__win { position: absolute; z-index: 2; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; }
.gfx__glow { position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--rim-rgb), .55), rgba(var(--rim-rgb), 0)); }
.gfx__ico { position: relative; --ico-box: calc(var(--cw) * .5); image-rendering: auto; filter: drop-shadow(0 .2em .3em rgba(0, 0, 0, .6)); }
.gfx__qty {
  position: absolute; right: 4%; bottom: 0;
  font: 700 calc(var(--cw) * .13) / 1 var(--face-ui); color: var(--ink-strong);
  text-shadow: 0 1px 0 #000, 0 0 .4em #000;
}
.gfx__card { --rim-rgb: var(--sky-rgb); }
.gfx__card[data-rim="prism"] { --rim-rgb: var(--prism-rgb); }
.gfx__card[data-rim="purple"] { --rim-rgb: 179, 147, 214; }
.gfx__card[data-rim="blue"] { --rim-rgb: 134, 168, 208; }
.gfx__card[data-rim="gold"] { --rim-rgb: 240, 150, 74; }
.gfx__card[data-rim="yellow"] { --rim-rgb: 227, 196, 86; }
.gfx__card[data-rim="green"] { --rim-rgb: 147, 194, 131; }
/* THE TOP TWO CARDS' LIGHT (gold A, violet S; owner, 2026-10-31: clean, nearly free to draw, in the
   card's own column). Baked pictures, one pair per tier (data/art/ui/gacha/bloom-*.png, spark-*.png):
   a soft bloom and a few four-pointed sparkles drawn for the crest, the same picture flipped for the
   moon tip; violet's bloom reaches further and burns brighter, silver-blue cards have none. Only
   opacity moves: the bloom breathes, the sparkles twinkle, crest and tip each on their own beat. No
   filter, no mask (the drop-shadow glow, the 230% blooms and the masked rising sparks were refused).
   Siblings of the floating card at z 0, so one card's light never paints over its neighbour's face. */
.gfx__bloom, .gfx__spark { position: absolute; z-index: 0; left: -10%; width: 120%; height: 31.54%; display: block; pointer-events: none; }
.gfx__bloom.is-top, .gfx__spark.is-top { top: -11.54%; }
.gfx__bloom.is-foot, .gfx__spark.is-foot { bottom: -8.54%; scale: -1 -1; }
.gfx__card.is-in .gfx__bloom { animation: gfx-glow 2.2s ease-in-out infinite alternate; }
.gfx__card.is-in .gfx__bloom.is-foot { animation-delay: -1.1s; }
.gfx__card.is-in .gfx__spark { animation: gfx-twinkle 1.6s ease-in-out infinite alternate; }
.gfx__card.is-in .gfx__spark.is-foot { animation-duration: 2.1s; animation-delay: -.8s; }
@keyframes gfx-glow { from { opacity: .7; } to { opacity: 1; } }
@keyframes gfx-twinkle { from { opacity: .2; } to { opacity: 1; } }

/* Mobile mode: the same pull in the short stage. */
html.m-mobile .gfx { --cw: 7.1em; }
html.m-mobile .gfx__tail { height: 12.6em; }
html.m-mobile .gfx__ring { width: 28.2em; }
html.m-mobile .gfx__shock { width: 33.4em; }
@media (prefers-reduced-motion: reduce) {
  .gfx__float, .gfx__star.is-held, .gfx__star.is-hush, .gfx__card.is-in .gfx__bloom, .gfx__card.is-in .gfx__spark { animation: none; opacity: 1; }
}

/* While the pull covers the screen the page under it rests: nothing beneath is painted. */
html.gfx-cover :is(.hud, .hud-plates, .wins) { visibility: hidden; }

/* ---- 60-curtain.css */
/* THE CURTAINS (P32): what goes over the whole page, each on its own layer (gui/z.ts Z).

   - The loading curtain (loading-screen.ts): 20-components.css's `.ldg`; here its layer and its fade (the
     transition is FADE_MS in loading-screen.ts, which takes it out of the page when it ends).
   - The turn curtain (orientation.ts, `.ldg--turn`): the same look, over the loading curtain, on a
     phone held upright: its title is the Play now button where the page can go fullscreen, and the
     install offer (shell/install.ts installOffer) stands at its foot.
   - The fullscreen ask (orientation.ts, `.fs-ask`): Play full screen in the middle of a phone held
     sideways in a browser tab, under the turn curtain.
   - The offline veil (main.ts setOffline, `.offline-veil`): the freeze. The world and HUD stay on
     screen, greyed, with one line whose dots keep moving, over everything.
   Tokens only. */
.ldg { z-index: var(--z-loading); transition: opacity .18s linear; }
.ldg.is-going { opacity: 0; }
.ldg.ldg--turn { z-index: var(--z-orient-curtain); }
/* Play now stands apart from the logo, and the note sits under it as its caption. */
.ldg--turn .ldg__band > .btn { margin: 1.2em 0 .35em; padding-inline: 2.6em; }
.ldg[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ldg { transition: none; }
}

/* THE FULLSCREEN ASK: one plate in the middle of the frame (a stage of the windows' layer,
   ui/10-base.css); only the plate takes the press, the world around it stays live. */
.fs-ask { inset: 0; z-index: var(--z-fs-ask); pointer-events: none; }
.fs-ask__stage { display: grid; place-items: center; }
.fs-ask[hidden] { display: none; }
.fs-ask__card {
  pointer-events: auto;
  display: grid; justify-items: center; gap: .6em;
  padding: 1.1em 1.6em 1.2em;
  border-radius: .8em;
  background: linear-gradient(180deg, rgba(var(--navy-3-rgb), .97), rgba(var(--navy-1-rgb), .98));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .4), inset 0 1px 0 rgba(var(--brass-pale-rgb), .12), 0 .4em 1.6em rgba(var(--shadow-ink), .55);
}
.fs-ask__line { font: var(--face-weight) var(--fs-md)/1.3 var(--face-ui); color: var(--brass-pale); }
/* The wash bleeds to the screen's edge; the line stands in a stage of the windows' layer. */
.offline-veil {
  position: fixed; inset: 0; z-index: var(--z-offline);
  background: var(--offline-wash);
}
.offline-veil__stage { display: grid; place-items: center; }
.offline-veil__text {
  font: 600 var(--fs-2xl) var(--face-ui);
  letter-spacing: .04em; color: var(--hud-text);
  text-shadow: var(--hud-shadow);
}
/* The dots keep moving so the page reads as waiting rather than hung: opacity only, one per dot. */
.offline-veil__dots { display: inline-block; width: 1.2em; }
.offline-veil__dots > i { font-style: normal; opacity: 0; animation: offline-dot-1 1.2s steps(1, end) infinite; }
.offline-veil__dots > i:nth-child(2) { animation-name: offline-dot-2; }
.offline-veil__dots > i:nth-child(3) { animation-name: offline-dot-3; }
@keyframes offline-dot-1 { 0% { opacity: 0; } 25%, 100% { opacity: 1; } }
@keyframes offline-dot-2 { 0% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes offline-dot-3 { 0% { opacity: 0; } 75%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .offline-veil__dots > i { animation: none; opacity: 1; }
}

/* ---- 90-shell.css */
/* THE SHELL (P34): sign in, the home screen, the forge and the corner spinner
   (apps/game/client/shell/*). Moved from public/shell.css.

   The windows here are design-system components - `.win`, `.band`, `.rows`, `.item-row`, `.well`,
   `.field`, `.tabs`, `.btn`, `.doll-box`, `.chip` - and this sheet places them. What the shell
   draws itself is the front end's own staging on the night key art: the orrery behind the logo,
   the dais under the hero, the name plate and the roster lines. No corner ticks on any of it
   (owner rule): rings, hairlines that fade, starlight. Tokens only: colours, type (--fs-*) and
   layers (--z-*). Phone rules are `html.m-mobile` (gui/mode.ts), never a width query; a finger's
   screen in desktop mode (a tablet) is `(pointer: coarse)`. The account menu is the game's one
   context menu (gui/menu.ts) and every question the one dialog (gui/ask.ts), so neither is placed
   here. */

/* The night vista: the whole screen, no page scroll and no page chrome - this screen is the whole
   window, not a document in one. The key art (data/art/landing/shell-night, Midnight Astrolabe,
   2026-10-09) is drawn `cover`, to the screen's edge; the 1x tier on a phone. The night closes in at
   the top, the foot and the edges (::before) so type laid straight on the art reads. */
.shell {
  position: fixed;
  inset: 0;
  z-index: var(--z-shell);           /* over the canvas, under every window and question */
  font: var(--face-weight) var(--fs-md)/1.35 var(--face-ui);
  color: var(--ink);
  background: var(--shell-sky) url("/data/art/landing/shell-night.7dfe29ad.webp") center 42% / cover no-repeat;
}
html.m-mobile .shell { background-image: url("/data/art/landing/shell-night-1x.533db8a8.webp"); }
.shell[hidden] { display: none; }
/* What stands on it: a stage of the windows' layer (ui/10-base.css), the safe frame in design px. */
.shell__stage {
  display: grid;
  isolation: isolate;
  pointer-events: auto;
}
.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--navy-0-rgb), .72), rgba(var(--navy-0-rgb), 0) 16%),
    linear-gradient(0deg, rgba(var(--navy-0-rgb), .9), rgba(var(--navy-0-rgb), 0) 30%),
    radial-gradient(ellipse 85% 80% at 50% 46%, transparent 52%, rgba(var(--navy-0-rgb), .55));
}
/* The logo and the box under it, stacked and centred as a pair; the build line is pinned to the
   foot of the screen on its own, so it does not pull the pair off centre. */
.shell__stage--signin {
  place-items: center; align-content: center; gap: 1.1em;
  padding: 1em 1em 2.6em;
}   /* the foot's padding keeps the pair off the build line */
/* Two rows: the top bar and the vista. The strip lies OVER the vista in the bottom-right corner
   rather than in a row of its own, so its coming and going never moves the hero or the roster. */
.shell__stage--home { grid-template-rows: auto minmax(0, 1fr); }
.shell__stage--home > .shell__band { grid-row: 1; }
.shell__stage--home > .shell__vista { grid-row: 2; }

/* ------------------------------------------------------------- sign in */

/* THE ORRERY: a faint astrolabe on the night sky, centred on the logo and the box. Three thin
   rings: the outer one plain, the middle one a dial of fine ticks, the inner one turning slowly
   with two stars riding it. Quiet starlight and brass at low alpha: it frames, it never competes. */
.shell__orrery {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 760px;
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  pointer-events: none;
}
html.m-mobile .shell__orrery { width: 490px; }
.shell__orrery > i { position: absolute; border-radius: 50%; }
.shell__orrery > i:nth-child(1) {
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .2), 0 0 0 1px rgba(var(--navy-0-rgb), .25);
}
.shell__orrery > i:nth-child(2) {
  inset: 4.5%;
  background: repeating-conic-gradient(rgba(var(--brass-pale-rgb), .32) 0 .25deg, transparent .25deg 3deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px), #000 calc(100% - 1px), transparent);
  mask: radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px), #000 calc(100% - 1px), transparent);
}
.shell__orrery > i:nth-child(3) {
  inset: 15%;
  box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .13);
  animation: shell-turn 240s linear infinite;
}
.shell__orrery > i:nth-child(3)::before,
.shell__orrery > i:nth-child(3)::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: var(--brass-pale);
  box-shadow: 0 0 6px 2px rgba(var(--brass-hi-rgb), .45);
}
.shell__orrery > i:nth-child(3)::before { left: 14.64%; top: 14.64%; }
.shell__orrery > i:nth-child(3)::after { left: 100%; top: 50%; width: 3px; height: 3px; margin: -1.5px; background: var(--ink-strong); }
@keyframes shell-turn { to { rotate: 360deg; } }

/* The sign-in box is a HEADLESS window: the design system's .win minus the title bar, because a box
   that is the whole screen has nothing to be closed to. It holds the buttons and the two lines
   under them (why this box is up, whether the doors are open) and nothing else, so it is only as
   wide as the longest label on one line. */
.shell__signin { width: min(23em, 100%); min-width: 0; }
.shell__signin > .win__body { display: grid; gap: .8em; padding: 1.2em 1.1em 1.1em; }
.shell__signin .note-line { text-align: center; }
.shell__signin .note-line[hidden], .shell__signin .btn[hidden] { display: none; }
/* An app's own browser: the way out (signin.ts leaveApp) stands where the Google button would, its
   line above it wrapping freely (the box is as wide as one label). */
.shell__inapp { display: grid; gap: .8em; }
.shell__inapp .note-line { white-space: normal; }
/* THE LOGO stands on the night sky, over the box, at title-screen size, a starlight halo behind it
   so its warm gold sits on the navy rather than on a hole in it. */
.shell__crest {
  display: block;
  width: min(30em, 100%);
  height: auto;
  filter: drop-shadow(0 .6em 1.4em rgba(var(--shadow-ink), .6)) drop-shadow(0 0 2.2em rgba(var(--sky-rgb), .14));
  user-select: none;
}
/* Each button is the primary plate, full width, with the provider's own mark in it on a white chip
   (Google's branding asks for the four-colour G unaltered). The label never wraps. */
.shell__signin .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  white-space: nowrap;
  font-size: var(--fs-lg);
}
.shell__provider {
  width: 1.45em;
  height: 1.45em;
  padding: .2em;
  box-sizing: border-box;
  background: var(--provider-chip);
  border-radius: 50%;
  box-shadow: 0 .06em .12em rgba(var(--shadow-ink), .3);
  flex: none;
}
/* Shut (sign-in closed, maintenance, a provider with no keys): still the primary plate, only faded.
   The busy one (its consent window is up) keeps its face too, with the busy cursor. */
.shell__signin .btn:disabled { filter: none; opacity: .55; }
.shell__signin .btn.is-busy { opacity: .75; }
/* The build number, OUTSIDE the box at the foot of the screen: it is about the client, not about
   signing in. Letter-spaced starlight on the darkened foot. */
.shell__build {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .9em;
  margin: 0;
  text-align: center;
  font-size: var(--fs-sm);
  letter-spacing: .12em;
}
.shell__build .note-line {
  display: inline;
  color: var(--vista-ink);
  opacity: .7;
  text-shadow: 0 .06em .25em rgba(var(--shadow-ink), .7);
}

/* ---------------------------------------------------------- home: band */

/* THE ACCOUNT'S SHELF, straight across the top of the stage and frameless: no line under it
   (owner, 2026-10-09). Three cells, the outer two equal, so the middle sits on the screen's centre
   line. The purse and the account are the same small capsule: navy glass, a faint brass hairline,
   round ends. */
.shell__band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  margin: 0;
  min-height: 3.4em;
  padding: .7em 1.8em;
  gap: .7em;
  color: var(--ink);
  background: none;
  box-shadow: none;
}
.shell__band .band__mid { margin: 0; justify-self: center; }
/* The right cell is its whole column, packed to the right end: on a narrow phone the account's name
   is what gives way (ellipsis) when the Install capsule stands beside it, never the middle line. */
.shell__band .band__action { display: flex; align-items: center; justify-content: flex-end; gap: .6em; justify-self: stretch; min-width: 0; margin: 0; }
.shell__purse, .shell__who {
  display: inline-flex; align-items: center; min-width: 0;
  height: 2.5em; margin: 0; border: 0; border-radius: 1.25em;
  background: linear-gradient(180deg, rgba(var(--navy-3-rgb), .78), rgba(var(--navy-1-rgb), .82));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .32), inset 0 1px 0 rgba(var(--brass-pale-rgb), .12), 0 2px 10px rgba(var(--shadow-ink), .45);
  color: var(--ink-strong);
}
/* The purse: the coin standing out of the capsule's left end, the number, the + as a brass disc
   in its right end. */
.shell__purse { justify-self: start; gap: .5em; padding: 0 .3em 0 .25em; font-size: var(--fs-lg); }
.shell__purse .coin { order: -1; }
.shell__purse .chip { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; min-width: 2.5em; }
.shell__purse .chip .coin, .shell__purse .coin { width: 1.9em; height: 1.9em; }
.shell__purse > .ibtn { width: 1.8em; height: 1.8em; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(var(--brass-hi-rgb), .35), rgba(var(--brass-rgb), .12));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .6); }
.shell__purse > .ibtn:hover { box-shadow: inset 0 0 0 1px var(--brass-hi), 0 0 .6em rgba(var(--brass-hi-rgb), .35); }
/* Who is signed in, at the far right, and a button: it opens the account's menu. A brass-ringed
   disc with the account's first letter leads it. */
.shell__acct { position: relative; display: inline-flex; min-width: 0; }
.shell__who { gap: .55em; max-width: 22em; padding: 0 .9em 0 .25em; font: inherit; cursor: var(--cur-hand, pointer); }
.shell__who:hover, .shell__who.is-down { box-shadow: inset 0 0 0 1px rgba(var(--brass-hi-rgb), .7), 0 0 .8em rgba(var(--brass-hi-rgb), .2), 0 2px 10px rgba(var(--shadow-ink), .45); }
.shell__who > .ic { width: 1em; height: 1em; flex: none; color: var(--brass-hi); }
.shell__who-mark {
  display: grid; place-items: center; flex: none; width: 2em; height: 2em; border-radius: 50%;
  font: 700 var(--fs-md)/1 var(--face-display); color: var(--brass-pale); text-transform: uppercase;
  background: radial-gradient(circle at 50% 30%, rgba(var(--navy-4-rgb), 1), rgba(var(--navy-0-rgb), 1));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .75), 0 0 0 2px rgba(var(--navy-0-rgb), .6);
}
/* The address in the UI's face, not the display face: an email in a blackletter reads as a name it
   is not (user, 2026-09-24). */
.shell__who-name {
  font: var(--face-weight) var(--fs-lg)/1.1 var(--face-ui);
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------ home: the strip */

/* Up only when something is wrong: a newer build is live, the server did not answer, or the device
   has no room for the world. A quiet pill in the bottom-right corner, the twin of the download
   pill in the bottom-left (.shell__fetch): the same card face and ring, muted small type, the
   button the only bright thing in it. Under the roster's Delete, clear of Enter world. */
.shell__world {
  position: absolute;
  right: 1em;
  bottom: 1em;
  z-index: 2;
  max-width: min(32em, calc(100% - 2em));
  min-height: 0;
  flex-wrap: nowrap;
  gap: .7em;
  padding: .3em .3em .3em .9em;
  border-radius: 999px;
  background: var(--card-bg);
  box-shadow: var(--card-ring);
  font-size: var(--fs-sm);
}
.shell__world[hidden] { display: none; }
.shell__world .band__label { color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.shell__world .band__mid { flex: 1 1 auto; margin: 0; min-width: 0; color: var(--ink-mute); }
.shell__world .band__mid .note-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell__world .band__action { flex: none; margin-left: 0; align-self: stretch; display: flex; align-items: stretch; }
/* The pill's button (owner, 2026-10-30: a square box in a round pill read as a mess): the pill's
   inner height, rounded with the pill's end, so its edge runs concentric with the pill's at the same
   .3em all round. */
.shell__world .band__action > .btn { min-height: 0; padding: .3em 1.1em; border-radius: 999px; }
.shell__world .band__action > .btn::before { border-radius: inherit; }
/* Mobile mode's short stage has the roster reaching the foot: while the pill is up the roster ends
   above it, scrolling its places inside as it already does when short. */
html.m-mobile .shell__stage--home > .shell__world:not([hidden]) ~ .shell__vista .shell__roster { margin-bottom: 2.6em; max-height: calc(100% - 2.6em); }

/* ---------------------------------------------------- home: install */

/* THE INSTALL CAPSULE (shell/install.ts), on a phone or tablet in the browser: on the shelf, left
   of the account and the same capsule (owner 2026-10-14: a banner row under the shelf squashed the
   character). The app's icon standing out of the left end, Install, and Not now as a brass x disc
   in the right end, the purse's + mirrored. It never shrinks; the account's name gives way first.
   What there is to read drops as a card under it, over the vista, so nothing below it moves. */
.shell__install {
  position: relative; display: inline-flex; align-items: center; flex: none; gap: .3em;
  height: 2.5em; padding: 0 .25em 0 .2em; border-radius: 1.25em;
  background: linear-gradient(180deg, rgba(var(--navy-3-rgb), .78), rgba(var(--navy-1-rgb), .82));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .32), inset 0 1px 0 rgba(var(--brass-pale-rgb), .12), 0 2px 10px rgba(var(--shadow-ink), .45);
}
.shell__install[hidden], .shell__install-card[hidden], .shell__install-note[hidden] { display: none; }
.shell__install-go {
  display: inline-flex; align-items: center; gap: .45em; height: 100%; margin: 0; padding: 0 .2em 0 0;
  border: 0; background: none; color: var(--brass-pale);
  font: 700 var(--fs-md)/1 var(--face-ui); white-space: nowrap; cursor: var(--cur-hand, pointer);
}
.shell__install-go:hover { color: var(--brass-hi); }
.shell__install-icon {
  flex: none; width: 2em; height: 2em; border-radius: 22%;
  background: url("/data/art/site/apple-touch-icon.9989ff01.png") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(var(--brass-rgb), .45);
}
.shell__install > .ibtn { flex: none; width: 1.8em; height: 1.8em; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(var(--brass-hi-rgb), .35), rgba(var(--brass-rgb), .12));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .6); }
.shell__install > .ibtn .ic { width: .9em; height: .9em; }
/* The card: the strip's card face, under the capsule's right end, growing leftwards. */
.shell__install-card {
  position: absolute; top: calc(100% + .5em); right: 0; z-index: 3;
  display: grid; gap: .2em; width: 20em; padding: .6em .8em;
  border-radius: .6em; background: var(--card-bg); box-shadow: var(--card-ring);
  color: var(--brass-pale); font-size: var(--fs-sm); line-height: 1.3; white-space: normal;
}
.shell__install-title { font: 700 var(--fs-md)/1.2 var(--face-ui); color: var(--brass-pale); }
/* In an app's own browser the capsule is Open in browser (shell/inapp.ts), no x: the words end it. */
.shell__install--out { padding-right: .9em; }
.shell__install-line b { color: var(--ink-strong); }
.shell__install-note { font-size: var(--fs-xs); color: var(--ink-mute); }
/* THE TURN CURTAIN'S OFFER (installOffer, orientation.ts): at the foot of the curtain where the
   loading screen has its meter, one line of why and the square Install with the app's icon in it,
   a size under Play now. The steps open above it, so the button never moves. */
.turn-install {
  position: absolute; left: 50%; bottom: 4em; translate: -50% 0;
  display: grid; justify-items: center; gap: .7em;
  width: 22em; max-width: 84%;
  text-align: center;
}
.turn-install[hidden] { display: none; }
.turn-install__pitch { font: var(--face-weight) var(--fs-md)/1.4 var(--face-ui); color: var(--brass-pale); text-wrap: balance; }
.btn.turn-install__go { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; }
.turn-install__go .shell__install-icon { width: 1.4em; height: 1.4em; }
.turn-install .shell__install-card { top: auto; right: auto; bottom: calc(100% + .6em); left: 0; width: 100%; text-align: left; }
.turn-install .shell__install-title { display: none; } /* the button above already says it */
/* The OS's own button, drawn in the line where the words name it. */
.shell__install-mark { display: inline-block; width: 1.3em; height: 1.3em; margin: 0 .15em; vertical-align: -.3em; color: var(--ink-strong); }
/* THE HOME-SCREEN CARD (homeCard, shell/install.ts): iOS in a tab, once, in the world. In the over
   stage at the top middle, between the left rail and the minimap and above the toasts (4.5em): the
   app's icon, the line, then the steps as the OS's own marks, and the x. The strip's card face. */
.home-card {
  position: absolute; left: 50%; top: .6em; z-index: var(--z-toast); translate: -50% 0;
  display: flex; align-items: center; gap: .6em; max-width: 26em; padding: .45em .5em .45em .6em;
  border-radius: .6em; background: var(--card-bg); box-shadow: var(--card-ring);
  color: var(--brass-pale); font-size: var(--win-size, 14px); line-height: 1.25;
  pointer-events: auto;
}
.home-card > .shell__install-icon { width: 2.2em; height: 2.2em; }
.home-card__body { display: grid; gap: .25em; min-width: 0; }
.home-card__title { font: 700 var(--fs-sm)/1.2 var(--face-ui); color: var(--brass-pale); }
.home-card__steps { display: flex; align-items: center; gap: .2em; font-size: var(--fs-sm); color: var(--ink-strong); white-space: nowrap; }
.home-card__steps--text { display: block; white-space: normal; color: var(--brass-pale); }
.home-card__steps--text b { color: var(--ink-strong); }
.home-card__steps .shell__install-mark { margin: 0; vertical-align: 0; }
.home-card__then { width: 1em; height: 1em; color: var(--ink-mute); }
.home-card__add { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; }
.home-card > .ibtn { position: relative; flex: none; align-self: flex-start; }
/* The x stays small to the eye; its hit area reaches --hit on the glass (P10). */
.home-card > .ibtn::before { content: ""; position: absolute; left: 50%; top: 50%; width: var(--hit); height: var(--hit); translate: -50% -50%; }

/* --------------------------------------------------------- home: vista */

/* Three columns on one centre line: an empty left (the key art's own), the hero in the middle,
   the roster against the right edge. The outer two are equal so the hero stands on the screen's
   centre line whatever the roster's width. */
.shell__vista {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12em, 30em) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 1.4em;
  min-height: 0;
  padding: .8em 2em 1.4em;
}
.shell__vista-mid {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  min-height: 0;
}
.shell__verbs { display: grid; justify-items: center; margin-top: 1em; }

/* THE HERO: the doll as tall as the stage allows (a figure is 120 x 218 of the front canvas, so
   the box keeps that ratio and the feet sit on its foot), the dais under its feet, the name plate
   under the dais. */
.shell__hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  width: 100%;
  min-height: 0;
}
.shell__hero-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding-bottom: 2.4em;            /* the circle's near half, under the feet */
}
.shell__hero-doll, .shell__draft {
  position: relative;
  height: min(100%, 31em);
  width: auto;
  aspect-ratio: 120 / 218;
}
.shell__hero-doll > .doll, .shell__draft > .doll {
  filter: drop-shadow(0 0 1.4em rgba(var(--sky-rgb), .18));
}

/* THE DAIS: an astrolabe laid flat under the feet. A pool of brass light, two thin elliptic rings
   and a dial of fine ticks turning slowly (a circle turned, then flattened, so its ticks ride the
   ellipse). The doll stands in front of it. On the home screen with no character it is the way to
   the forge: the painted plus floats in it. */
.shell__dais {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 22em);
  aspect-ratio: 3.4;
  translate: -50% 0;
  padding: 0;
  border: 0;
  background: none;
  z-index: 0;
  pointer-events: none;
}
.shell__hero-doll, .shell__draft { z-index: 1; }
.shell__dais > i { position: absolute; border-radius: 50%; pointer-events: none; }
.shell__dais-glow {
  inset: -60% -10% -20%;
  background: radial-gradient(closest-side, rgba(var(--brass-hi-rgb), .3), rgba(var(--sky-rgb), .08) 55%, transparent);
}
.shell__dais-ring {
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(var(--brass-hi-rgb), .62), 0 0 .9em rgba(var(--brass-rgb), .25), inset 0 0 1.4em rgba(var(--brass-rgb), .2);
  background: radial-gradient(closest-side, rgba(var(--navy-0-rgb), .35), rgba(var(--navy-0-rgb), .1) 70%, transparent);
}
.shell__dais-ring--in { inset: 20% 24%; background: none; box-shadow: inset 0 0 0 1px rgba(var(--brass-pale-rgb), .32); }
.shell__dais-orbit {
  left: 4%;
  right: 4%;
  top: 50%;
  aspect-ratio: 1;
  translate: 0 -50%;
  background: repeating-conic-gradient(rgba(var(--brass-pale-rgb), .45) 0 .5deg, transparent .5deg 7.5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7%), #000 calc(100% - 6.4%), #000 calc(100% - 1%), transparent);
  mask: radial-gradient(closest-side, transparent calc(100% - 7%), #000 calc(100% - 6.4%), #000 calc(100% - 1%), transparent);
  transform: scaleY(.294) rotate(0deg);
  animation: shell-dial 120s linear infinite;
}
@keyframes shell-dial { to { transform: scaleY(.294) rotate(360deg); } }
/* THE MAGIC CIRCLE (shell/circle.ts): the painted astrolabe in perspective on a three.js canvas,
   behind the doll, wider than the dais so the rim glow and the ticket's column of light have room.
   The canvas is 10:9 and draws the circle's centre 72% down it (circle.ts FEET), so the translate
   puts that point on the dais's centre line, where the feet stand. Once it is up the CSS rings
   above go; a device with no WebGL keeps them. */
.shell__circle {
  position: absolute;
  left: 50%;
  bottom: var(--feet, 4.1em);
  width: min(130%, 30em);
  aspect-ratio: 10 / 9;
  translate: -50% 28%;
  z-index: 0;
  pointer-events: none;
}
.shell__circle-gl { display: block; width: 100%; height: 100%; }
.shell__circle.is-gl ~ .shell__dais > i { display: none; }
.shell__dais > .shell__plus { display: none; }
.shell__hero.is-empty .shell__dais { pointer-events: auto; cursor: var(--cur-hand, pointer); }
.shell__hero.is-empty .shell__dais > .shell__plus {
  display: block; position: absolute; left: 50%; top: 50%; width: 3.2em; height: 3.2em;
  translate: -50% -78%; opacity: .8; object-fit: contain;
}
.shell__hero.is-empty .shell__dais:hover > .shell__plus { opacity: 1; }
.shell__hero.is-empty .shell__plate { display: none; }

/* The name plate: the nickname in the display face, pale brass with a starlight bloom; a hairline
   fading at both ends; level, class and the ticket mark in letter-spaced UI caps; where it stands. */
.shell__plate { position: relative; z-index: 1; display: grid; justify-items: center; gap: .35em; margin-top: 1.6em; text-align: center; max-width: 100%; }  /* room between the circle's rim and the name */
.shell__hero-name {
  font: var(--face-display-weight) 2.7em/1.05 var(--face-display);
  letter-spacing: .06em;
  color: var(--brass-pale);
  text-shadow: 0 .06em 0 rgba(var(--shadow-ink), .9), 0 0 .8em rgba(var(--brass-hi-rgb), .3);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shell__hero-sub {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding-top: .35em;
  font: var(--face-weight) var(--fs-md)/1.2 var(--face-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(90deg, transparent, rgba(var(--brass-rgb), .5), transparent) center top / 100% 1px no-repeat;
}
.shell__hero-lv { color: var(--brass-hi); }
.shell__dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(var(--brass-hi-rgb), .7); }
.shell__hero-place { font-size: var(--fs-sm); letter-spacing: .08em; color: var(--ink-mute); }
.shell__hero-place:empty { display: none; }

/* --------------------------------------------------------- home: roster */

/* The roster down the right edge: a caption on the theme's section head (the brass hairline), the
   five places, Delete at the foot. Never taller than the stage: a screen too short for the five
   scrolls them inside the roster, caption and Delete standing. */
.shell__roster {
  align-self: center;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: .55em;
  width: min(100%, 20.5em);
  max-height: 100%;
  min-height: 0;
}
.shell__roster-head {
  display: flex;
  align-items: baseline;
  gap: .6em;
  padding: 0 1.9em .35em .1em;
  background: var(--divider-bg);
  font: var(--face-display-weight) var(--fs-md)/1.2 var(--face-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-hi);
  text-shadow: 0 1px 0 rgba(var(--shadow-ink), .9), 0 0 .6em rgba(var(--shadow-ink), .8);
}
.shell__roster > .shell__roster-head { font-size: calc(var(--fs-md) * 1.12); }
.shell__rank { display: grid; gap: .45em; flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-left: .4em; margin-left: -.4em; }   /* the picked line's step left stays inside the scroller */
.shell__rank::-webkit-scrollbar { display: none; }
.shell__roster-foot { display: flex; justify-content: flex-end; padding-top: .3em; }
/* One place: the face filling the line's left end, the nickname over level and class, the ticket at
   the end. A navy line with a faint brass edge; the picked one is lit with starlight, a brighter rim
   and a brass bar down its left edge. The rim and the bar are drawn over the line (::after, ::before)
   so the face, which runs to the edge, never covers them. */
.shell__card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .7em;
  min-height: 3.5em;
  padding: .4em .8em .4em .45em;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  font: inherit;
  color: inherit;
  text-align: left;
  background: linear-gradient(90deg, rgba(var(--navy-1-rgb), .95), rgba(var(--navy-1-rgb), .88));  /* near solid: the vista's statues showed through and ate the text */
  box-shadow: 0 .4em 1em rgba(var(--shadow-ink), .35);
  cursor: var(--cur-hand, pointer);
  transition: background-color 120ms ease-out, box-shadow 120ms ease-out, translate 120ms ease-out;
}
.shell__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .16);
  transition: box-shadow 120ms ease-out;
}
.shell__card:hover::after { box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .34); }
.shell__card.is-picked {
  translate: -.4em 0;
  background: linear-gradient(90deg, rgba(var(--navy-4-rgb), .97), rgba(var(--navy-2-rgb), .95) 70%);
  box-shadow: 0 0 1.2em rgba(var(--brass-hi-rgb), .14), 0 .4em 1em rgba(var(--shadow-ink), .45);
}
.shell__card.is-picked::after { box-shadow: inset 0 0 0 1px rgba(var(--brass-hi-rgb), .55); }
.shell__card.is-picked::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 2px;
  background: var(--brass-hi);
  pointer-events: none;
}
/* The roster's lines a size up from the forge's class lines (owner, 2026-10-09), and one fixed
   height, so a line that gains its "in the world" word does not push the others. */
.shell__roster .shell__card { height: 4em; min-height: 0; padding: 0 .9em 0 0; gap: .75em; }
.shell__roster .shell__card-name { font-size: var(--fs-xl); }
.shell__roster .shell__card-meta { font-size: calc(var(--fs-sm) * 1.12); }
/* THE FACE: no well and no ring - the head, blown up about the face, fills the line's left end from
   its top to its foot, clipped by the line's own box and fading into the line at its right. */
.shell__face {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 4.3em;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 45% 40%, rgba(var(--navy-4-rgb), .7), transparent);
  -webkit-mask: linear-gradient(90deg, #000 70%, transparent);
  mask: linear-gradient(90deg, #000 70%, transparent);
}
.shell__face > .head { inset: 0 auto auto 0; width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; transform: translateY(-20%) scale(1.45); transform-origin: 50% 34%; }
.shell__card-text { display: grid; gap: 0; min-width: 0; }
.shell__card-name {
  font: var(--face-weight) var(--fs-lg)/1.1 var(--face-ui);
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shell__card-meta { font-size: var(--fs-sm); letter-spacing: .06em; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The line's end: in the world elsewhere (a lit badge, its sentence on the card), the ticket. */
.shell__card-end { display: flex; align-items: center; gap: .5em; }
.shell__away { font-size: var(--fs-sm); white-space: nowrap; }
.shell__away[hidden] { display: none; }
.shell__card.is-picked .shell__card-name { color: var(--brass-pale); }
.shell__card.is-picked .shell__card-meta { color: var(--ink); }
/* An empty place: the same line, emptier - more see-through, the painted plus where the face would be. */
.shell__card--empty { background: rgba(var(--navy-1-rgb), .8); }
.shell__card--empty::after { box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .1); }
.shell__card--empty .shell__face { background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(var(--navy-0-rgb), .6), transparent); }
.shell__card--empty .shell__card-name { color: var(--ink-mute); font-size: var(--fs-lg); }
.shell__card--empty:hover .shell__card-name { color: var(--ink); }
.shell__card .shell__plus { width: 1.6em; height: 1.6em; object-fit: contain; opacity: .7; }
.shell__card--empty:hover .shell__plus { opacity: 1; }

.shell__ticket { --ico-box: 1.8em; width: 1.8em; height: 1.8em; flex: none; filter: drop-shadow(0 0 .35em rgba(var(--brass-hi-rgb), .45)); }
.shell__ticket[hidden] { display: none; }

/* ---------------------------------------------------- home: the over cell */

/* The forge and the profile open in the VISTA'S OWN CELL, and while one is up the hero, the roster
   and the strip are gone (not dimmed: a place peering out from under a page read as a second thing
   to press). No wash behind it: the window stands straight on the vista. */
.shell__over {
  display: grid;
  place-items: center;
  gap: .8em;
  padding: .8em 1.6em 1.2em;
  overflow: auto;
  min-height: 0;
}
.shell__over[hidden] { display: none; }
.shell__stage--home.is-over:not(.is-side) .shell__vista,
.shell__stage--home.is-over:not(.is-side) .shell__world { display: none; }
.shell__stage--home.is-over .shell__over { grid-area: 2 / 1 / 3 / 2; }

/* THE FORGE, a character creator on the vista's three columns: the classes and Back at the left,
   the draft on the magic circle in the middle with its look under its feet, the read, the name and
   Create at the right. Nothing in it has a close star: Back (and Escape) is the one way out. */
.shell__desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12em, 30em) minmax(0, 1fr);   /* equal sides: the draft on the centre line */
  gap: 1.6em;
  width: min(100%, 84em);
  height: 100%;
  min-height: 0;
}
.shell__forge-side { display: grid; align-content: center; width: min(100%, 18em); min-height: 0; }
/* Back is the game's secondary button at the foot of the classes, where Delete stands under the
   roster: the outer edge, the way out of the screen. */
.shell__forge-foot { justify-content: flex-start; }
/* The classes: the roster's own lines, the class sigil where the face would be. An unpicked sigil
   is dimmed; the picked line steps toward the stage and its sigil burns at full colour. */
.shell__classes { align-self: center; display: grid; gap: .45em; }
.shell__class { grid-template-columns: auto minmax(0, 1fr); gap: .8em; min-height: 3.7em; padding-left: .55em; }
.shell__class.is-picked { translate: .4em 0; }
.shell__sigil { display: block; flex: none; width: 2.8em; height: 2.8em; background: center / contain no-repeat; }
.shell__sigil[data-cls="warrior"] { background-image: url(/data/art/ui/sigil-warrior.bdf39f22.webp); }
.shell__sigil[data-cls="mage"] { background-image: url(/data/art/ui/sigil-mage.e69b7ab3.webp); }
.shell__sigil[data-cls="priest"] { background-image: url(/data/art/ui/sigil-priest.99fb5271.webp); }
.shell__sigil[data-cls="ranger"] { background-image: url(/data/art/ui/sigil-ranger.04e5640f.webp); }
.shell__class > .shell__sigil { filter: saturate(.45) brightness(.75); transition: filter 160ms ease-out; }
.shell__class:hover > .shell__sigil { filter: saturate(.8) brightness(.95); }
.shell__class.is-picked > .shell__sigil { filter: drop-shadow(0 0 .45em rgba(var(--brass-hi-rgb), .35)); }

/* The middle column: the draft as tall as the column lets it, the look capsule under its feet. */
.shell__look {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: .9em;
  height: 100%;
  min-height: 0;
}
.shell__draft { height: min(100%, 31em); }
/* THE LOOK: one square navy bar with a brass hairline. The body is a square two-way toggle, the
   lit half ringed in brass; hair and face are carousels, a chevron either side of the part's
   name over its number; the reroll is the brass disc at the end. Hairlines part the cells. */
.shell__lookbar {
  display: flex;
  align-items: center;
  height: 3.3em;
  padding: 0 .35em;
  border-radius: 0;                  /* square, as the body toggle in it (owner, 2026-10-09) */
  background: linear-gradient(180deg, rgba(var(--navy-3-rgb), .84), rgba(var(--navy-1-rgb), .9));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .32), inset 0 1px 0 rgba(var(--brass-pale-rgb), .12), 0 .35em 1.1em rgba(var(--shadow-ink), .5);
}
.shell__lookbar > * { position: relative; }
.shell__lookbar > * + *::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(var(--brass-rgb), .45), transparent);
}
.shell__lookbar > .shell__reroll::before { content: none; }
.shell__sexes { display: flex; gap: .15em; padding-right: .35em; border-radius: 0; }
.shell__sex {
  height: 2.5em; padding: 0 1em; border: 0; border-radius: 0;
  background: none; color: var(--ink-mute); font: inherit; letter-spacing: .04em;
  cursor: var(--cur-hand, pointer); transition: color 120ms ease-out, box-shadow 120ms ease-out;
}
.shell__sex:hover { color: var(--ink); }
.shell__sex.is-on {
  color: var(--brass-pale);
  background: radial-gradient(ellipse at 50% 20%, rgba(var(--brass-hi-rgb), .22), rgba(var(--brass-rgb), .05));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-hi-rgb), .55);
}
.shell__turn { display: flex; align-items: center; padding: 0 .3em; }
.shell__turn > .ibtn { width: 1.9em; height: 1.9em; border: 0; background: none; opacity: .75; }
.shell__turn > .ibtn::after { content: none; }
.shell__turn > .ibtn .ic { width: .9em; height: .9em; }
.shell__turn > .ibtn:hover { opacity: 1; filter: drop-shadow(0 0 .35em rgba(var(--brass-hi-rgb), .5)); }
.shell__turn-val { display: grid; justify-items: center; min-width: 3.4em; line-height: 1.05; }
.shell__turn-val > small { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.shell__turn-val > b { font: 700 var(--fs-lg)/1.1 var(--face-ui); color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.shell__reroll.ibtn {
  width: 2.5em; height: 2.5em; margin-left: .3em; border: 0;
  background: radial-gradient(circle at 50% 35%, rgba(var(--brass-hi-rgb), .35), rgba(var(--brass-rgb), .12));
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .6);
}
.shell__reroll.ibtn::after { content: none; }
.shell__reroll .ic { width: 1.35em; height: 1.35em; }
.shell__reroll.ibtn:hover { box-shadow: inset 0 0 0 1px var(--brass-hi), 0 0 .6em rgba(var(--brass-hi-rgb), .35); }

/* THE READ: a headless window - the sigil and the class name in the display face at its head, the
   description, the level-1 sheet in two columns of painted stat icons; the name and the one Create
   in the foot, which never scrolls away. */
.shell__forge--read { align-self: center; justify-self: end; width: min(100%, 25em); max-height: 100%; min-height: 0; min-width: 0; }
.shell__forge--read > .win__body { display: grid; align-content: start; gap: .8em; padding: 1.3em 1.4em .8em; min-height: 0; overflow: auto; }
.shell__forge--read > .win__foot { flex-direction: column; align-items: stretch; gap: .6em; padding: .5em 1.4em 1.4em; }
.shell__read-head { display: flex; align-items: center; gap: .8em; min-width: 0; }
.shell__read-head > .shell__sigil { width: 3.6em; height: 3.6em; filter: drop-shadow(0 0 .5em rgba(var(--brass-hi-rgb), .3)); }
.shell__read-name {
  min-width: 0;
  font: var(--face-display-weight) 1.85em/1.05 var(--face-display);
  letter-spacing: .05em;
  color: var(--brass-pale);
  text-shadow: 0 .06em 0 rgba(var(--shadow-ink), .9), 0 0 .8em rgba(var(--brass-hi-rgb), .3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shell__forge--read .shell__roster-head { margin-top: .2em; font-size: var(--fs-sm); text-shadow: none; }
.shell__sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 1em; }   /* the right column holds the long words */
.shell__sheet-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5em;
  padding: .38em 0; border-bottom: 1px solid var(--line);
}
.shell__sheet-row > .g { width: 1.3em; height: 1.3em; object-fit: contain; }
.shell__sheet-row > span { color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell__sheet-row > b { color: var(--ink-strong); font-variant-numeric: tabular-nums; }

/* PROFILE & SETTINGS is a side window, not a page: a normal-sized window at the right edge under
   the top bar, near the name it opens from, as tall as its content (the body scrolls past the
   stage's height). The stage stays as it is behind it (.is-side); the over cell lets presses
   through everywhere but the window. */
/* Pinned to the one column too, so the window's cell lies over them rather than pushing them aside. */
.shell__stage--home.is-side > .shell__world,
.shell__stage--home.is-side > .shell__vista { grid-column: 1; }
.shell__stage--home.is-side .shell__over {
  grid-area: 2 / 1 / 3 / 2;
  place-items: start end;
  padding: .2em 1.8em 1.2em;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.shell__section {
  width: min(30em, 100%);
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  pointer-events: auto;
}
.shell__section > .win__body {
  display: grid;
  align-content: start;
  gap: .7em;
  padding: 1.1em 1.2em .8em;
  overflow: auto;
  min-height: 0;
}
.shell__section > .win__body > * { min-width: 0; max-width: 100%; }
.shell__section > .win__foot { justify-content: flex-end; }
.shell__section .tabs { flex-wrap: wrap; max-width: 100%; height: auto; }
.shell__section .note-line { white-space: normal; }
.shell__lumi { display: inline-flex; align-items: center; gap: .3em; }

/* The Enter world list (a question, gui/ask.ts), Who comes along: the account as one row of seats,
   the one entering first, the others after it. A seat is the character as the roster draws it (P8):
   the face in its class ring, the name, level and class, and under them where it stands or why it
   cannot come. The leader's seat carries the party star while Form party is on. A press anywhere on
   another seat ticks it: lit, ringed in brass, the tick on the face's corner; unticked it is dimmed. */
.shell__bring { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5em; margin: .2em 0 .8em; }
.shell__seat {
  position: relative; display: grid; justify-items: center; align-content: start; gap: .1em; min-width: 0;
  padding: .7em .3em .6em; border-radius: .5em; text-align: center;
  background: rgba(var(--brass-rgb), .04); box-shadow: inset 0 0 0 1px var(--hairline);
  transition: background .15s ease-out, box-shadow .15s ease-out;
}
/* The box itself is drawn as nothing over the whole seat, so its keyboard ring is the seat's. */
.shell__seat > input { position: absolute; inset: 0; width: auto; height: auto; margin: 0; border: 0; border-radius: inherit; background: none; appearance: none; -webkit-appearance: none; pointer-events: none; }
.shell__seat > input:focus-visible { outline: .12em solid var(--ink); outline-offset: .1em; }
label.shell__seat { cursor: var(--cur-hand, pointer); }
.shell__seat > b { max-width: 100%; margin-top: .35em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shell__seat > small { max-width: 100%; color: var(--ink-mute); font-size: var(--fs-small); line-height: 1.25; }
.shell__seat-where.is-no { color: var(--error); }
.shell__seat-face { position: relative; display: block; }
.shell__bring-face { font-size: .62em; --sigil-in: -36%; margin: .7em; }
/* The tick and the star: a brass coin on the face's top right. */
.shell__seat-tick, .shell__seat-star {
  position: absolute; z-index: 2; top: -.1em; right: -.1em; display: grid; place-items: center;
  width: 1.5em; height: 1.5em; border-radius: 50%;
  background: var(--tan); box-shadow: 0 0 0 2px var(--navy-1); color: var(--tan-text);
}
.shell__seat-tick .ic, .shell__seat-star .ic { width: .9em; height: .9em; }
.shell__seat-tick { opacity: 0; transform: scale(.6); transition: opacity .15s ease-out, transform .15s ease-out; }
.shell__seat-star { opacity: 0; }
.shell__seat.is-leading .shell__seat-star { opacity: 1; }
/* Unticked: dimmed, the face a little grey. */
label.shell__seat .shell__bring-face { filter: saturate(.55) brightness(.75); transition: filter .15s ease-out; }
label.shell__seat:hover { background: rgba(var(--brass-rgb), .08); }
/* Ticked, and the leader: lit, ringed in brass. */
/* `.is-on` / `.is-off` are home.ts's mark() after every tick and grey, never a :has() on the box. */
.shell__seat.is-on, .shell__seat.is-lead { background: rgba(var(--brass-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .55); }
.shell__seat.is-on .shell__bring-face { filter: none; }
.shell__seat.is-on .shell__seat-tick { opacity: 1; transform: none; }
/* Cannot come: greyed whole, no press. */
.shell__seat.is-off { opacity: .5; cursor: var(--cur-arrow, default); background: none; }
.shell__seat.is-off .shell__bring-face { filter: grayscale(1); }
/* Form party under the row, its note behind the ?. */
.shell__bring-party { display: flex; align-items: center; justify-content: center; gap: .5em; }

/* ---------------------------------------------------------- mobile mode */

/* A landscape phone: the short height is the constraint. The shelf and the paddings tighter, the
   roster narrower and its lines shorter, the name a size down; the doll still takes whatever height
   is left. The forge's three columns narrow. Everything a thumb presses is at least --touch tall
   (the type is shrunk to the height, a finger is not). */
html.m-mobile .shell__band { min-height: 2.6em; padding: .25em 1em; }
html.m-mobile .shell__vista { padding: .3em 1em .6em; gap: .8em; grid-template-columns: minmax(0, 1fr) minmax(9em, 16em) minmax(0, 1fr); }
html.m-mobile .shell__verbs { margin-top: .4em; }
html.m-mobile .shell__hero-stage { padding-bottom: 1.3em; }
html.m-mobile .shell__circle { --feet: 2.5em; width: min(150%, 21em); }
html.m-mobile .shell__hero-name { font-size: 1.7em; }
html.m-mobile .shell__hero-sub { font-size: var(--fs-sm); padding-top: .2em; }
html.m-mobile .shell__plate { gap: .15em; margin-top: .8em; }
html.m-mobile .shell__roster { width: min(100%, 16em); gap: .3em; }
html.m-mobile .shell__rank { gap: .25em; }
html.m-mobile .shell__card { min-height: 2.6em; padding: .2em .6em .2em .3em; gap: .5em; }
html.m-mobile .shell__roster .shell__card { height: 36px; min-height: 0; padding: 0 .5em 0 0; gap: .45em; }
html.m-mobile .shell__face { width: 3em; }
html.m-mobile .shell__card-name { font-size: var(--fs-md); }
html.m-mobile .shell__roster .shell__card-meta { font-size: var(--fs-xs); }
html.m-mobile .shell__roster .shell__ticket { --ico-box: 1.6em; width: 1.6em; height: 1.6em; }
html.m-mobile .shell__roster-head { font-size: var(--fs-sm); padding-bottom: .2em; }
html.m-mobile .shell__over { padding: .4em 1em .6em; }
/* Who comes along on a landscape phone: the short height is the constraint, so the seats are
   shorter (a smaller face, the name and one line), still a whole thumb wide and tall. */
html.m-mobile .shell__bring { gap: .35em; margin: 0 0 .5em; }
html.m-mobile .shell__seat { padding: .45em .2em .4em; min-height: var(--touch); }
html.m-mobile .shell__bring-face { font-size: .5em; margin: .6em; }
html.m-mobile .shell__seat > b { margin-top: .2em; }
html.m-mobile .shell__bring-party .check { min-height: var(--touch); }
html.m-mobile .shell__stage--home.is-side .shell__over { padding: 0 1em .4em; }
html.m-mobile .shell__section > .win__body { gap: .45em; padding: .6em 1em .4em; }
html.m-mobile .shell__desk { grid-template-columns: 16em minmax(8em, 1fr) 16em; gap: .8em; }
html.m-mobile .shell__forge-side { width: 12em; }
html.m-mobile .shell__forge--read { width: 16em; }
html.m-mobile .shell__forge-side { gap: .4em; }
html.m-mobile .shell__classes { gap: .25em; }
html.m-mobile .shell__class { min-height: 36px; padding-left: .35em; gap: .5em; }
html.m-mobile .shell__sigil { width: 1.9em; height: 1.9em; }
html.m-mobile .shell__look { gap: .4em; }
/* The look bar 34 px; its body toggle drawn 26 and its chevrons and reroll 28, each reaching 44 px
   with an empty pseudo (::before on the toggle, ::after on the round ones: their other one is the
   bar's hairline or the ring). */
html.m-mobile .shell__lookbar { height: 34px; font-size: var(--fs-sm); }
html.m-mobile .shell__sex { position: relative; height: 26px; padding: 0 .8em; }
html.m-mobile .shell__sex::before { content: ""; position: absolute; inset: -9px 0; }
html.m-mobile .shell__turn { padding: 0; }
html.m-mobile .shell__turn > .ibtn { width: 24px; height: 28px; }
html.m-mobile .shell__turn > .ibtn::after { content: ""; inset: -8px -2px; border: 0; }
html.m-mobile .shell__reroll.ibtn { width: 28px; height: 28px; }
html.m-mobile .shell__reroll.ibtn::after { content: ""; inset: -8px; border: 0; }
html.m-mobile .shell__reroll .ic { width: 1.2em; height: 1.2em; }
html.m-mobile .shell__turn-val { min-width: 2.4em; }
html.m-mobile .shell__forge--read > .win__body { gap: .4em; padding: .6em .8em .4em; }
html.m-mobile .shell__forge--read > .win__foot { gap: .4em; padding: .3em .8em .7em; }
html.m-mobile .shell__read-head > .shell__sigil { width: 2.1em; height: 2.1em; }
html.m-mobile .shell__read-name { font-size: 1.25em; }
html.m-mobile .shell__forge--read .field { height: 34px; }
/* The sheet's words go to the tooltip on a phone: icon and figure, four across. */
html.m-mobile .shell__sheet { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0 .6em; }
html.m-mobile .shell__sheet-row { grid-template-columns: auto auto; gap: .3em; padding: .2em 0; }
html.m-mobile .shell__sheet-row > span { display: none; }

/* Mobile mode draws the shell as compact as its windows (30-win.css), each press still reaching
   44 px through an empty pseudo element round the drawing, never a bigger drawing:
   - the shelf's capsules (purse, account, install) drawn 30 px, the account's and Install's
     ::before reaching 44; the purse's + and Not now drawn 24 px, their ::before reaching 44;
   - a square button (Delete, Back, Sign out, Close) drawn 30 px, its unused ::after reaching 44;
     Delete is the quiet one: a navy face, the rose only in its line and its word;
   - the hexagon (Enter world, Create) drawn 36 px: its clip-path clips any ring, so it is drawn
     whole and wide; the sign-in box's wide buttons and the language tabs stay a fingertip tall. */
html.m-mobile .shell .btn { min-height: 30px; padding-block: .3em; }
html.m-mobile .shell .btn:not(.btn--special, .btn--block)::after { content: ""; inset: -7px 0; pointer-events: auto; }
html.m-mobile .shell .btn--special { min-height: 36px; padding-block: 0; font-size: 1.1em; }
html.m-mobile .shell .btn--block:not(.btn--special), html.m-mobile .shell__section .tabs__tab { min-height: var(--touch); }
html.m-mobile .shell__purse, html.m-mobile .shell__who, html.m-mobile .shell__install { height: 30px; border-radius: 15px; }
html.m-mobile .shell__purse { font-size: var(--fs-md); gap: .4em; padding-right: 3px; }
html.m-mobile .shell__purse .chip .coin, html.m-mobile .shell__purse .coin { width: 1.8em; height: 1.8em; }
html.m-mobile .shell__who { position: relative; gap: .45em; padding: 0 .75em 0 3px; }
html.m-mobile .shell__who-mark { width: 24px; height: 24px; }
html.m-mobile .shell__who-name { font-size: var(--fs-md); }
html.m-mobile .shell__who::before, html.m-mobile .shell__install-go::before { content: ""; position: absolute; inset: -7px 0; }
html.m-mobile .shell__install-go { position: relative; }
html.m-mobile .shell__install-icon { width: 24px; height: 24px; }
html.m-mobile .shell__purse > .ibtn, html.m-mobile .shell__install > .ibtn { width: 24px; height: 24px; }
html.m-mobile .shell__purse > .ibtn::before, html.m-mobile .shell__install > .ibtn::before { content: ""; position: absolute; inset: -10px; }
html.m-mobile .shell__roster-foot { padding-top: 8px; }
html.m-mobile .shell__roster-foot > .btn { min-width: 0; padding-inline: .9em; }
html.m-mobile .shell__roster-foot > .btn--rose { --btn-face: var(--btn2-face); --btn-text: var(--btn-bad-text); opacity: .85; }
/* The wordmark a size down on a short screen: the buttons and the build line keep their room. */
html.m-mobile .shell__crest { width: min(22em, 100%); }
html.m-mobile .shell__band { padding-block: .3em; }
/* A finger in desktop mode (a tablet): the same presses a fingertip tall, drawn. Mobile mode's are
   the compact drawings above with their 44 px rings. */
@media (pointer: coarse) {
  :where(html.m-desktop) :is(.shell .btn, .shell__section .tabs__tab, .shell__forge--read .field) { min-height: var(--touch); }
  :where(html.m-desktop) .shell__roster-foot > .btn { min-width: 6.5em; }
  :where(html.m-desktop) :is(.shell__purse, .shell__who, .shell__install) { height: max(2.5em, var(--touch)); border-radius: max(1.25em, calc(var(--touch) / 2)); }
  :where(html.m-desktop) .shell__install > .ibtn { width: max(1.8em, calc(var(--touch) - 8px)); height: max(1.8em, calc(var(--touch) - 8px)); }
  :where(html.m-desktop) .shell__purse > .ibtn { width: max(1.8em, calc(var(--touch) - 8px)); height: max(1.8em, calc(var(--touch) - 8px)); }
  :where(html.m-desktop) .shell__turn > .ibtn { width: max(1.9em, calc(var(--touch) * .75)); height: var(--touch); }
}

/* ---------------------------------------------------- the corner spinner */

/* The download, in the bottom-left corner of the sign-in box and the home screen, from the moment
   the game page opens until the pack is down and verified: the painted busy ring, turning, and the
   share downloaded beside it while bytes are moving. The step and the MB are its card (gui/tip.ts).
   Over the shell, under every window and the curtain. */
.shell__corner { z-index: calc(var(--z-shell) + 10); }
.shell__fetch {
  position: absolute;
  left: 1em;
  bottom: 1em;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .4em;
  padding: .3em .55em .3em .3em;
  border-radius: 999px;
  background: var(--card-bg);
  box-shadow: var(--card-ring);
  font: var(--face-weight) var(--fs-md)/1 var(--face-ui);
  color: var(--ink);
  cursor: var(--cur-arrow, default);
}
.shell__fetch[hidden] { display: none; }
.shell__fetch-ring { width: 1.5em; height: 1.5em; object-fit: contain; animation: shell-fetch-spin 1.2s linear infinite; }
@keyframes shell-fetch-spin { to { transform: rotate(360deg); } }
.shell__fetch-pct { font-variant-numeric: tabular-nums; }
.shell__fetch-pct:empty { display: none; }
.shell__fetch.is-bare { padding-right: .3em; }

@media (prefers-reduced-motion: reduce) {
  .shell__card { transition: none; }
  .shell__fetch-ring, .shell__orrery > i, .shell__dais-orbit { animation: none; }
}

/* ---- w-bag.css */
/* THE BACKPACK AND THE WAREHOUSE (gui/bag.ts): two gui windows, `.win.bagw[data-win=bag|warehouse]`.
   Placed by gui/win.ts (the bag docks right, the warehouse stands beside it); this sheet sizes them.

   THE CELL FOLLOWS THE WINDOW. The grid sits in a size container (.bagw__wrap) and a cell is the
   design's --tile (10em / 3) or the share of the container's width its column gets, whichever is
   smaller (a phone sheet). The column count is the protocol's (PAGE_COLS, written on the wrap as
   --page-cols): ten for both, so the warehouse's cells are the Backpack's and its 200 cells scroll. */
.bagw__body { display: grid; gap: .7em; align-content: start; }
/* The wrap is the window's scroller (bag.ts `.scroll`, 30-win.css), so it clips: a cell's outer
   ring and hover glow (20-components.css .tile, --tile-hover) need room inside it, or the top row's
   and the edge columns' rings are cut. Padding gives that room, the same negative margin gives it
   back, so the grid stands where it did and 100cqw is the same width. */
.bagw__wrap { container-type: inline-size; min-width: 0; padding: .4em; margin: -.4em; }
/* Desktop: the warehouse window keeps the height it had with twenty small columns (owner 2026-11-08):
   six rows of Backpack-size cells show, the rest of the page's twenty scroll inside the grid. */
html.m-desktop .win[data-win="warehouse"] .bagw__wrap { max-height: calc(6 * 10em / 3 + 5 * .4em + .8em); }
.bagw .tiles {
  --cols: var(--page-cols);
  --tile: min(calc(10em / 3), calc((100cqw - (var(--cols) - 1) * .4em) / var(--cols)));
  justify-content: center;
}
/* The pack strip: one tab per pack, each an equal share of the window, however many there are. */
.bagw .tabs--text .tabs__tab { min-width: 0; padding: 0 .6em; white-space: nowrap; }
.bagw .tabs__tab > .ic { width: 1em; height: 1em; margin-left: .3em; }
.bagw .tabs__tab > .ic[hidden] { display: none; }
/* An empty cell on a shut pack is the padlock, centred and faint (20-components.css .tile--locked), not
   the corner badge an occupied one wears. */
.bagw .tile--locked.tile--barred > .ic {
  inset: 0; margin: auto; width: 1.5em; height: 1.5em; padding: 0;
  background: none; color: rgba(var(--ink-wash), .22); opacity: .35;
}
/* One line, always (owner, 2026-11-15): the window is wide enough for the purse and every tool. */
.bagw .win__foot { flex-wrap: nowrap; gap: .45em; }
.bagw__gap { flex: 1; }
/* THE SEARCH ROW (bag.ts, note 334): the field takes the width, next and close at its right. A miss
   is the tile's own .is-dim; a pack's matches are a small brass count on its tab. */
.bagw__find { display: flex; align-items: center; gap: .4em; }
.bagw__find > .field { flex: 1; min-width: 0; }
.bagw__find[hidden], .bagw__find > .ibtn[hidden] { display: none; }
.bagw .tabs__tab > .bagw__hits {
  margin-left: .35em; padding: 0 .4em; border-radius: .7em; font-size: .78em; line-height: 1.35;
  background: rgba(var(--brass-rgb), .22); color: var(--brass);
}
.bagw .tabs__tab > .bagw__hits[hidden] { display: none; }
/* A match (owner 2026-11-06: "lebih ketara dengan border emas memutar"): a gold ring with a bright
   arc running round it, the hotbar opener's light (40-hud.css .slot > .lit) in gold. The ring is a
   masked frame; the arc is a rotated child, so the compositor runs it (no repaint per frame). Still
   with reduced motion. */
.bagw__hit {
  display: none;
  position: absolute; inset: 0; z-index: 3;
  padding: max(2px, .16em);
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: rgba(var(--brass-rgb), .7);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.tile.is-hit > .bagw__hit { display: block; }
.bagw__hit::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    transparent 0 50%, rgba(var(--brass-pale-rgb), .35) 62%, rgba(var(--brass-pale-rgb), .85) 72%,
    #fffaf0 78%, rgba(var(--brass-pale-rgb), .85) 84%, rgba(var(--brass-pale-rgb), .35) 92%, transparent 100%);
  animation: bagw-hit 2.4s linear infinite;
}
@keyframes bagw-hit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bagw__hit::before { animation: none; background: none; }
}

/* MOBILE MODE: two sheets side by side, the Backpack on the right and the warehouse beside it, each
   half the screen, so a stack drags straight across. Each is as tall as the screen allows and its
   body scrolls, so every row is reachable; the foot stays put. */
html.m-mobile .wins > .win.bagw { width: 39em; max-height: calc(var(--stage-h) - 32px); }
/* Split with the warehouse (win.ts pair): the warehouse fills the left half, where the Aether
   drawer would hang over its grid, so the drawer and its tab stand down until the Backpack is alone. */
html.m-mobile .bagw.is-split > .aeth, html.m-mobile .bagw.is-split > .aeth__tab { display: none; }
/* Move mode's band (bag.ts): "Select a kind", "To: Page N" (#552) and "Store now (N)" say the whole
   words on desktop; in mobile mode the band is half the frame wide, so they say "Kind", "To 2",
   "Store (N)", each on one line. */
.bagw__short { display: none; }
html.m-mobile .bagw__long { display: none; }
html.m-mobile .bagw__short { display: inline; }
html.m-mobile .bagw__mode .band__action > .btn { white-space: nowrap; }
/* A carry over the bag lights the one cell it would land in (bag.ts lightCell), never the grid. */
.bagw__grid.is-over { outline: none; }

/* THE FOOT (owner, 2026-11-15): the purse and the tools stand one height. Gold and Lumi keep their
   coins but drop the disc behind them (a minimal purse of its own), no bigger than their chip. The
   tools (bag.ts `tool`) are coloured enamel glyphs (foot-*, the HUD toggles' look), each in its
   kind's colour, in runs (`group`) with a little space between: find and sort (sky), lock and unlock
   (violet), move (jade), sell (amber), then Throw away alone at the far end in red. No disc behind
   them; a lit mode wears a brass ring. Both modes. */
.bagw .win__foot .chip--disc { margin-left: .95em; padding-left: 1.25em; }
.bagw .win__foot .chip__disc { left: -.95em; width: 1.9em; height: 1.9em; background: none; border: 0; box-shadow: none; }
.bagw .win__foot .chip__disc::after { content: none; }
.bagw .win__foot .chip__disc > img { width: 1.75em; height: 1.75em; }
.bagw__group { display: inline-flex; align-items: center; gap: .35em; }
.bagw__group[hidden] { display: none; }
.bagw__group + .bagw__group { margin-left: .35em; }
.bagw .bagw__tool { font-size: 1em; width: 1.9em; height: 1.9em; border: 0; background: none; }
.bagw .bagw__tool::after { content: none; }
.bagw .bagw__tool .ic { width: 1.6em; height: 1.6em; }
.bagw .bagw__tool:hover { background: rgba(var(--sky-rgb), .1); filter: brightness(1.12); }
.bagw .bagw__tool.is-on { background: rgba(var(--brass-hi-rgb), .16); box-shadow: 0 0 0 .1em var(--brass-pale), 0 0 .5em rgba(var(--brass-hi-rgb), .55); }
/* Mobile mode, split with the warehouse (each window half the frame): the same one line, tighter. The
   purse chips shrink to their numbers, the runs close up, and the foot gives up the corner room the
   desktop grip needs. */
html.m-mobile .bagw.is-split .win__foot { gap: .3em; padding-right: .8em; }
html.m-mobile .bagw.is-split .win__foot .chip--disc { min-width: 0; padding-right: .5em; }
html.m-mobile .bagw.is-split .bagw__group { gap: .25em; }
html.m-mobile .bagw.is-split .bagw__group + .bagw__group { margin-left: .15em; }

/* THE AETHER DRAWER (bag.ts aetherDrawer, owner 2026-10-15): the three vessel banks OUTSIDE the
   Backpack, hung on its left edge so it moves with the window. The drawer is a clip as tall as the
   window; the panel inside wears the window's own band and arc, and its head is a .win__head so
   AETHER stands level with "Backpack". Hidden, the panel slides right, in behind the window's edge
   (the clip hides it), and a left-arrow tab on that edge slides it back out. Three upright bars - the
   HUD's .bar stood on end, --hp / --mp / --sage - each with its icon and held figure under it. */
.aeth { position: absolute; top: 0; bottom: 0; right: 100%; width: 8.6em; overflow: hidden; pointer-events: none; }
.aeth__panel {
  position: absolute; inset: 0 0 0 0; display: flex; flex-direction: column; padding: 3px;
  background: var(--win-arc), var(--win-bg); box-shadow: var(--win-ring); pointer-events: auto;
  transform: translateX(0); transition: transform .28s ease;
}
.aeth.is-in > .aeth__panel { transform: translateX(100%); pointer-events: none; }
.aeth__head { gap: .4em; padding-right: .6em; }
/* The head is AETHER and the hide arrow only (the gear went to the foot, 2026-11-17): the arrow
   sits at the right like a window's `?`, a slimmer right edge keeping it inside the drawer. */
.aeth__head > .ibtn { margin-left: auto; }
.aeth__bars { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3em; padding: .8em .5em .7em; }
.aeth__row { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; gap: .3em; min-width: 0; }
.bar.bar--v { width: 1.15em; height: auto; align-self: stretch; }
.bar.bar--v > .bar__fill { inset: auto 0 0 0; width: 100%; height: 100%; transform-origin: bottom; transition: transform .2s linear; }
/* The character sheet's paint, turned on its side (owner, 2026-10-15): the sheen's gloss, shade and
   one-tile-high grain are drawn for a lying bar, so the overlay is laid out lying (the bar's height
   as its width) and turned a quarter, gloss down the left edge, grain tiled up the bar. */
.bar.bar--v { container-type: size; }
.bar.bar--v::after {
  inset: auto; left: calc(50% - 50cqh); top: calc(50% - 50cqw); width: 100cqh; height: 100cqw; transform: rotate(-90deg);
}
.aeth__ic { width: 1.6em; height: 1.6em; object-fit: contain; }
.aeth__n { font-size: var(--fs-small); color: var(--ink-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* A bar switched off in the gear (#549): dimmed and its icon greyed; its card says Off. */
.aeth__row.is-off { opacity: .45; }
.aeth__row.is-off > .aeth__ic { filter: grayscale(1); }
/* The tab that brings it back: a brass pull on the Backpack's left edge, under the head, pointing
   left (the hide arrow turned round). Only while the drawer is in. */
.aeth__tab {
  position: absolute; right: 100%; top: 3.1em; display: grid; place-items: center; width: 1.6em; height: 3.2em;
  padding: 0; border: 1px solid rgba(var(--brass-hi-rgb), .4); border-right: 0; border-radius: .45em 0 0 .45em;
  background: var(--win-bg); box-shadow: var(--win-ring); cursor: var(--cur-hand, pointer);
  opacity: 0; transform: translateX(.6em); pointer-events: none; transition: opacity .2s ease .12s, transform .2s ease .12s;
}
.aeth__tab.is-on { opacity: 1; transform: translateX(0); pointer-events: auto; }
.aeth__tab-ic { width: 1em; height: 1em; object-fit: contain; transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .aeth__panel, .aeth__tab { transition: none; } }
/* Refill (#529) at the drawer's foot, and a light that sweeps up each bar that took points: one
   run of transform and opacity on a layer over the fill, started by .is-poured (bag.ts), gone after. */
/* The foot: Refill across, the gear (#549) at its right, both on one line. */
.aeth__foot { flex: none; display: flex; align-items: center; gap: .35em; margin: 0 .5em .5em; }
.aeth__refill { flex: 1; min-width: 0; }
.aeth__glow {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; opacity: 0; pointer-events: none; transform: translateY(100%);
  background: linear-gradient(to top, transparent, rgba(var(--fx-white-rgb), .6) 50%, transparent);
}
.bar--v.is-poured > .aeth__glow { animation: aeth-pour .7s ease-out; }
@keyframes aeth-pour { 0% { opacity: 0; transform: translateY(100%); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .bar--v.is-poured > .aeth__glow { animation-duration: .2s; } }

/* MOBILE MODE: the same drawer, the window head's mobile edge with a slimmer right so the hide arrow stays inside, and
   tighter columns so three figures sit apart. */
html.m-mobile .aeth { width: 9.4em; }
html.m-mobile .aeth__head { padding: 0 .5em 0 .8em; }
html.m-mobile .aeth__bars { gap: .15em; padding: .6em .2em .5em; }
html.m-mobile .aeth__ic { width: 1.35em; height: 1.35em; }
html.m-mobile .aeth__n { font-size: .78em; }
html.m-mobile .aeth__tab { width: var(--hit); height: max(var(--hit), 3.2em); }
html.m-mobile .aeth__foot { gap: .3em; margin: 0 .4em .4em; }
/* Refill drawn slim (30px, the mobile window button), its thumb's hit area --hit tall: a transparent
   border above and below, unpainted (the plate, its line and ornaments fill the padding box). */
html.m-mobile .aeth__refill {
  --pad: calc((var(--hit) - 30px) / 2);
  min-height: var(--hit); border-block: var(--pad) solid transparent; margin-block: calc(-1 * var(--pad)); background-clip: padding-box;
}
/* A selection box's choice (bag.ts choosePick): every prize as a row, the picked one lit (.is-on).
   Desktop scrolls the list inside the dialog; mobile scrolls the dialog body itself (30-win.css). */
.boxpick { display: grid; min-width: 0; }
:where(html.m-desktop) .boxpick { max-height: 20em; overflow-y: auto; }
:where(html.m-mobile) .boxpick__row { min-height: var(--hit); }

/* A recipe parchment's window (bag.ts recipeAsk): what it makes in the middle, its materials in a
   ring round it (each placed from the middle by JS), each with what the bag holds over what it takes. */
.rcp { position: relative; width: min(100%, 20em); aspect-ratio: 1; margin: 0 auto; }
.rcp__ring { position: absolute; inset: 12%; border: 1px dashed var(--hairline); border-radius: 50%; pointer-events: none; }
.rcp__mid, .rcp__mat { position: absolute; display: grid; justify-items: center; gap: .2em; transform: translate(-50%, -50%); }
.rcp__mid { left: 50%; top: 50%; width: 10em; text-align: center; }
.rcp__name { font-size: var(--fs-sm); line-height: 1.2; }
.rcp__fig { font-size: var(--fs-sm); color: var(--ink-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcp__fig.is-short { color: var(--error); }
/* Under the ring: the parchment itself, its icon beside its name and what it does. */
.rcp__from { display: flex; align-items: center; gap: .6em; }
.rcp__from > .tile { flex: none; }
.rcp__from > .ask__q { display: grid; gap: .2em; min-width: 0; overflow-wrap: anywhere; }

/* ---- w-board.css */
/* THE DUNGEON LEADERBOARD (panels/dungeon-board.ts, `.win.db[data-win=board]`): a tab per dungeon,
   the first three on a podium (Guild Rankings' shape, w-guild.css .gf__podium), the rows from the
   fourth, my own party's best under them. Desktop: every column; mobile mode: narrower, a compact
   podium, rows of place, time and names (the rest in the row's card). */
.db [hidden] { display: none !important; }
.db__tabs > .tabs { width: 100%; }
.db__head { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-mute); font-size: var(--fs-sm); }
.db__head[hidden] { display: none; }
.db__box { height: 19em; }

/* The podium: the first raised in the middle, the second left, the third right. */
.db__podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .6em; padding: .8em; margin-bottom: .6em;
  border: 1px solid rgba(var(--brass-rgb), .4); border-radius: .5em;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--sky-rgb), .14), transparent 70%), var(--navy-0); }
.db__place { min-width: 0; display: grid; justify-items: center; gap: .3em; padding: .6em .4em .7em;
  border: 1px solid rgba(var(--brass-rgb), .35); border-radius: .5em; background: linear-gradient(var(--navy-3), var(--navy-1)); }
.db__place--1 { order: 2; padding-top: 1.1em; border-color: var(--brass); box-shadow: 0 0 .9em rgba(var(--brass-rgb), .25); }
.db__place--2 { order: 1; }
.db__place--3 { order: 3; }
.db__place.is-mine { box-shadow: inset 0 0 0 .12em var(--sky); }
.db__medal { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  font-family: var(--face-ui); font-variant-numeric: tabular-nums; color: var(--navy-0);
  background: linear-gradient(#eef1f5, #9aa6b4); box-shadow: 0 .1em .25em rgba(var(--shadow-ink), .5); }
.db__medal--1 { background: linear-gradient(var(--brass-pale), var(--brass)); }
.db__medal--3 { background: linear-gradient(#e7a877, #a8622f); }
.db__ptime { font-family: var(--face-ui); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; color: var(--ink-strong); }
.db__place--1 .db__ptime { color: var(--brass-hi); }
.db__place .db__party { flex-direction: column; align-items: flex-start; max-width: 100%; }

/* The party: a chip per character (the class sigil, the name, Lv), or the names in one line. */
.db__party { display: flex; flex-wrap: wrap; gap: .15em .7em; min-width: 0; }
.db__mem { display: inline-flex; align-items: center; gap: .35em; min-width: 0; max-width: 100%; }
.db__mem.is-me .db__name { color: var(--sky); }
.db__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); }
.db__lv { font-size: var(--fs-sm); color: var(--ink-mute); white-space: nowrap; }
.db__sigil { font-size: .42em; flex: none; --sigil-in: -6%; }
.db__names { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The rows from the fourth: place, time, party, day. */
.db__rows { display: flex; flex-direction: column; gap: .25em; }
.db__row { display: grid; grid-template-columns: 2.4em 6.2em minmax(0, 1fr) 7.5em; align-items: center; gap: .6em;
  min-height: 2.6em; padding: .3em .6em; border-radius: .35em; background: rgba(var(--ink-wash), .05); }
.db__row.is-mine { background: rgba(var(--sky-rgb), .14); box-shadow: inset 0 0 0 .1em rgba(var(--sky-rgb), .55); }
.db__rank { text-align: right; font-family: var(--face-ui); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.db__time { font-variant-numeric: tabular-nums; color: var(--brass-hi); }
.db__day { text-align: right; font-size: var(--fs-sm); color: var(--ink-mute); white-space: nowrap; }

/* Mine, under the list when it is further down than the top rows. */
.db__mine { display: grid; gap: .25em; padding-top: .5em; border-top: 1px solid rgba(var(--brass-rgb), .3); }
.db__minecap { font-size: var(--fs-sm); color: var(--ink-mute); }
.db__none .gui-empty { padding: 2em 1em; }

/* A party's card (a hover on a desktop, a tap in mobile mode). */
.db__cardrow { display: flex; align-items: center; gap: .45em; padding: .15em 0; }
.db__cardrow span { color: var(--ink-mute); font-size: var(--fs-sm); }
.db__cardday { color: var(--ink-mute); font-size: var(--fs-sm); }

/* Mobile mode: narrower, the podium a strip of three short cards, the rows place, time and names. */
html.m-mobile .wins > .win.db { width: 40em; max-height: calc(var(--stage-h) - 32px); }
html.m-mobile .db__box { height: 15em; }
html.m-mobile .db__podium { padding: .45em; gap: .4em; margin-bottom: .4em; }
html.m-mobile .db__place { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: .1em .5em; padding: .4em .5em; }
html.m-mobile .db__place--1 { padding-top: .4em; }
html.m-mobile .db__place .db__medal { grid-row: span 2; }
html.m-mobile .db__party { display: none; }
html.m-mobile .db__names { display: block; max-width: 100%; font-size: var(--fs-sm); color: var(--ink-mute); }
html.m-mobile .db__row { grid-template-columns: 2.2em 6em minmax(0, 1fr); min-height: var(--hit); }
html.m-mobile .db__row .db__names { color: var(--ink-strong); font-size: inherit; }
html.m-mobile .db__day { display: none; }

/* ---- w-char.css */
/* THE CHARACTER WINDOW (panels/character-sheet.ts, `.win.csw[data-win=char]`) AND THE PLAYER WINDOW
   (panels/profile.ts, `.win.pfw[data-win=profile]`): the figure between its two frame columns on
   the left, numbers (or the deployed pets) on the right. Placed by gui/win.ts; this sheet lays
   them out. 20-components.css draws every part (tile, doll, stat row, band, kv, item row). */
.csw__body, .pfw__body { display: grid; grid-template-columns: 19em minmax(0, 1fr); gap: 1em; align-items: start; }
.csw__side { display: grid; gap: .6em; min-width: 0; align-content: start; }

/* The two frame columns STRETCH to the figure between them and space their five frames over its
   height, so the feet never stand in a gap beside the last frame. */
.csw__doll { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5em; align-items: stretch; justify-items: center; }
.eqcol { display: grid; gap: .45em; align-content: space-between; }
.csw__fig { display: grid; gap: .2em; justify-items: center; align-content: start; min-width: 0; max-width: 100%; }
.csw__fig .doll-box { --doll-w: 10em; }
/* The Tamer Cup chat frame's button (character-sheet.ts): my face as the chat draws it, in the
   figure's top left corner; the frame is 40-hud.css `.cf`, 1.5 times the face. */
.csw__fig { position: relative; }
.csw__frame {
  --cf-face: 2.3em; appearance: none; position: absolute; left: .7em; top: 3.4em; width: var(--cf-face); height: var(--cf-face);
  padding: 0; border: 0; border-radius: 50%; background: var(--void); cursor: var(--cur-hand, pointer);
}
.csw__frame[hidden] { display: none; }
.csw__frame-face { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
.csw__frame-face > i { transform: translateY(-11%) scale(1.38); transform-origin: 50% 36%; }
.csw__frame > .cf { left: calc(var(--cf-face) / -4); top: calc(var(--cf-face) / -4); }
html.m-mobile .csw__frame { --cf-face: 2.9em; left: .5em; top: .6em; }
.csw__nick { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--face-ui); }
.csw__fig > .note-line { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
/* The disguise frame (character-sheet.ts, EQUIP_SLOTS 13): a costume worn for its look only. A dashed
   ring tells it from the gear frames. Desktop: its word then the frame, in a row under the figure at
   its right, beside the fashion frame's column; mobile mode (below): the frame alone in the corner. */
.csw__disguise { display: flex; flex-direction: row-reverse; align-items: center; gap: .45em; justify-self: end; }
.csw__disguise-word { font-size: var(--fs-small); color: var(--ink-mute); white-space: nowrap; }
.eqf--disguise { outline: 1px dashed rgba(var(--brass-rgb), .55); outline-offset: 2px; }

/* Who, over the vitals: the class sigil, "Lv 31" with the figure in the strong ink, a thin rule,
   the class name. No caption: the sigil and the figure say it. */
.csw__who { display: flex; align-items: center; gap: .55em; min-width: 0; padding-bottom: .35em; border-bottom: 1px solid var(--line); }
.csw__sigil { width: 2em; height: 2em; flex: none; background: center / contain no-repeat; filter: drop-shadow(0 0 .06em rgba(var(--shadow-ink), .45)); }
.csw__sigil[data-cls="warrior"] { background-image: url(/data/art/ui/sigil-warrior.bdf39f22.webp); }
.csw__sigil[data-cls="mage"] { background-image: url(/data/art/ui/sigil-mage.e69b7ab3.webp); }
.csw__sigil[data-cls="priest"] { background-image: url(/data/art/ui/sigil-priest.99fb5271.webp); }
.csw__sigil[data-cls="ranger"] { background-image: url(/data/art/ui/sigil-ranger.04e5640f.webp); }
.csw__lv { display: inline-flex; align-items: baseline; gap: .25em; white-space: nowrap; }
.csw__lv > small { color: var(--ink-mute); font-size: var(--fs-small); letter-spacing: .06em; }
.csw__lv > b { color: var(--ink-strong); font-size: 1.33em; font-variant-numeric: tabular-nums; line-height: 1; }
.csw__cls { min-width: 0; padding-left: .55em; border-left: 1px solid var(--line); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Health, mana, experience: the word (HP, MP, EXP), then the bar with its figures. */
.csw__vitals { display: grid; gap: .35em; }
.csw__vital { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: .45em; align-items: center; }
.csw__vlab { font-size: var(--fs-small); font-weight: 700; letter-spacing: .04em; color: var(--ink-mute); white-space: nowrap; }

/* The attribute rows: icon and word (statName, as Pet Training), base (+ staged), gear, total, the
   -/+ pair; the name's card says what a point buys. The caption row's last cell is as wide as the pair. */
.csw .stat, .csw .stats__head { grid-template-columns: 6.2em repeat(3, minmax(0, 1fr)) auto; }
/* The attribute block has four figures: Base, Gear, Other, Total (character-sheet.ts). */
.csw .csw__attr { grid-template-columns: 6.2em repeat(4, minmax(0, 1fr)) auto; }
.csw .stats__head span:first-child { grid-column: auto; }
.csw__stepcap { width: 3.85em; }
.csw__acts { display: inline-flex; gap: .5em; }
.csw__acts[hidden] { display: none; }

/* The combat table: two columns of pairs in a short scroller. */
/* The combat table (#363): one column, offence over defence, each section the attribute block's own
   caption row and pill rows (Base, Bonus, Total, and the stepper's width left empty so the three
   figures stand under the attributes' three). The section word sits where the attributes leave
   their caption blank. A long stat name wraps inside its column. Bonus green, a loss in the error
   ink, nothing for none; the row's card names the sources. */
.csw__combat { display: grid; gap: .6em; align-content: start; }

/* The switchable view under the vitals: its heading (the view's name) with the toggle at the right,
   then one box both views share. The attributes view (with the set bonus under its card) is always
   in the flow and so sets the box's height, in every mode and UI size; in the combat view it is only
   unseen (visibility: no hit, no focus) and the combat view lies over the box, the only part that
   scrolls. The window keeps the attributes view's height either way. The Offensive / Defensive
   caption rows scroll with their rows. */
.csw__stack { position: relative; min-width: 0; }
.csw__view { display: grid; gap: .6em; min-width: 0; align-content: start; }
.csw__view.is-off { visibility: hidden; }
.csw__stack > .csw__combat { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: .3em; }
.csw__combat[hidden] { display: none; }
.csw__sect { text-align: left; color: var(--ink); font-weight: 700; letter-spacing: .06em; }
.csw__ckey { min-width: 0; font-size: var(--fs-small); font-weight: 700; overflow-wrap: anywhere; line-height: 1.15; }
.csw__bonus { color: var(--green); }
.csw__bonus.is-neg { color: var(--error); }

/* Set bonuses: the set on the left, what it lifts on the right, one stat to a line. */
.csw__sets { display: grid; gap: .45em; min-width: 0; }
.csw__set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2em 1em; align-items: start; color: var(--green); }
.csw__setvals { display: grid; justify-items: end; white-space: nowrap; }

/* A deployed pet: its head, name and level, the position's icon (the word in its card). The row
   opens the pet's sheet; the Player window's empty row opens nothing. */
.csw__pet { cursor: var(--cur-hand, pointer); }
.pfw .csw__pet.item-row--empty { cursor: var(--cur-arrow, default); }
.csw__pet .pos-ic { width: 1.6em; height: 1.6em; object-fit: contain; }
.csw__pet .pos-ic.off { opacity: .35; }

/* DESKTOP: a fixed height that ends above the hotbar's band at the design size, the body scrolling
   under the head (B161). */
html.m-desktop .wins > .win.csw { max-height: 46em; }

/* MOBILE: a narrower figure, so the numbers keep their width on a landscape phone sheet. */
html.m-mobile .csw__body, html.m-mobile .pfw__body { grid-template-columns: 15em minmax(0, 1fr); gap: .7em; }
html.m-mobile .csw__fig .doll-box { --doll-w: 7em; }
/* The disguise frame stands in the figure's bottom right corner, over the feet's empty side: no row
   of its own on a short screen, and no word (its card says what it is). */
html.m-mobile .csw__fig { position: relative; }
html.m-mobile .csw__disguise { position: absolute; right: 0; bottom: 0; }
html.m-mobile .csw__disguise-word { display: none; }
/* A 360-375 px tall frame shows the vitals and all five attributes before the first scroll: the
   rows drop the desktop's band height to the stepper's own (34 px buttons, their 44 px hit areas
   from 30-win.css). */
html.m-mobile .csw .stats { gap: .35em; }
html.m-mobile .csw .stat { min-height: 0; padding-block: 0; }
/* A combat row has no stepper to hold it up: it keeps a touch row's height, and its hit area
   reaches over half the gap above and below (P10), so a tap anywhere along the stack lands on a row. */
html.m-mobile .csw__cstats .stat { position: relative; min-height: 2.6em; }
html.m-mobile .csw__cstats .stat::after { content: ""; position: absolute; inset: -.175em 0; }

/* ---- w-compound.css */
/* COMPOUNDING (panels/compounding.ts, `.win.cmpw[data-win=compound]`, P29): the tool (tile, name,
   charges), the deal on one dashed drop (material tile with its pile > the next quality's tile with
   the count this attempt makes, the name and the step under it), the odds (slider and the server's
   rate), and the foot (the bench's last word, Compound). Placed by gui/win.ts beside the Backpack;
   moved from 25-card.css. Tokens only. */
.cmpw [hidden] { display: none !important; }
.wins > .win.cmpw > .win__body { display: grid; gap: .7em; align-content: start; min-width: 0; }

.cmpw__tool { display: flex; align-items: center; gap: .6em; min-width: 0; }
.cmpw__tool > .tile { flex: none; }
.cmpw__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmpw__charges { flex: none; color: var(--ink-mute); font-variant-numeric: tabular-nums; }

.cmpw__drop { gap: .5em; min-height: 7.5em; }
.cmpw__deal { display: flex; align-items: center; justify-content: center; gap: .8em; }
.cmpw__to { width: 1.4em; height: 1.4em; object-fit: contain; opacity: .7; }
.cmpw__named { display: grid; justify-items: center; gap: .15em; min-width: 0; max-width: 100%; }
.cmpw__named > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

.cmpw__odds { display: flex; align-items: center; gap: .6em; min-width: 0; }
.cmpw__ic { width: 1.3em; height: 1.3em; object-fit: contain; flex: none; }
.cmpw__range { flex: 1; min-width: 0; width: auto; }
.cmpw__rate { margin-inline-start: auto; min-width: 3.6em; font-size: var(--fs-sm); }
.cmpw__rate.is-dim { opacity: .55; }

.cmpw .win__foot { gap: .6em; }
.cmpw__line { flex: 1; min-width: 0; }
.cmpw .win__foot > .btn { flex: none; white-space: nowrap; }

/* The result dialog (ask.form body): the haul as its tile, its name and step, then the line. */
.cmpw__result { display: grid; gap: .6em; justify-items: center; text-align: center; }
.cmpw__got { display: grid; justify-items: center; gap: .3em; }

/* Phones (landscape): the line under the bench may wrap in the small size. */
html.m-mobile .cmpw__line { font-size: var(--fs-xs); }
html.m-mobile .cmpw__drop { min-height: 6em; }

/* ---- w-cup.css */
/* THE TAMER CUP BRACKET (panels/cup-bracket.ts, `.win.cb[data-win=cup]`): a page, not a window
   (owner 2026-11-16, #538, as the Sanctum): the whole stage under the night, the head on top (title,
   ?, close), the board filling the rest and scrolling both ways, MY TEAM a column on the right when
   shown. Two halves run in to the final in the middle, under the astrolabe. Slots are navy plates in
   a brass hairline, placed in em by the panel; the connectors are thin brass; the middle is the astro
   ring turning slowly round the trophy, the final's plate and the champion. */
.cb [hidden] { display: none !important; }
/* The night's edge past the stage's edges (the notch and home bar strips): the page's veil (win.ts). */
.wins > .scrim--cb { background: var(--navy-0); animation: cb-in .2s ease-out; }
.wins > .win.cb {
  inset: 0; width: auto; max-width: none; height: auto; max-height: none; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "top top" "main side"; gap: .8em 1.4em;
  padding: 1.2em 1.6em;
  overflow: hidden; isolation: isolate; box-shadow: none;
  background:
    radial-gradient(ellipse 60% 70% at 50% 55%, rgba(var(--sky-rgb), .12), transparent 70%),
    radial-gradient(1px 1px at 12% 18%, rgba(var(--brass-pale-rgb), .7), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(var(--brass-pale-rgb), .55), transparent 60%),
    radial-gradient(1px 1px at 34% 82%, rgba(var(--brass-pale-rgb), .5), transparent 60%),
    radial-gradient(1px 1px at 88% 74%, rgba(var(--brass-pale-rgb), .6), transparent 60%),
    radial-gradient(1px 1px at 58% 36%, rgba(var(--brass-pale-rgb), .4), transparent 60%),
    radial-gradient(1px 1px at 22% 58%, rgba(var(--brass-pale-rgb), .45), transparent 60%),
    radial-gradient(1px 1px at 66% 90%, rgba(var(--brass-pale-rgb), .5), transparent 60%),
    var(--navy-0);
  animation: cb-in .2s ease-out;
}
.wins > .win.cb::before, .wins > .win.cb::after { content: none; }
@keyframes cb-in { from { opacity: 0; } }

/* The head: the title, its ?, the close at the far right. */
.cb__top { grid-area: top; display: flex; align-items: center; gap: .6em; min-width: 0; }
.cb__title {
  margin: 0; display: flex; align-items: center; gap: .55em; white-space: nowrap;
  font: var(--face-display-weight) var(--fs-title) / 1.1 var(--face-display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-hi); text-shadow: 0 0 .8em rgba(var(--sky-rgb), .35), 0 1px 0 rgba(var(--shadow-ink), .9);
}
.cb__title-ic { width: 1.5em; height: 1.5em; object-fit: contain; filter: drop-shadow(0 .1em .2em rgba(0, 0, 0, .6)); }
.cb__close { position: static; margin-left: auto; font-size: 1.15em; }
/* Back from the board to the locked night (before the first call only). */
.cb__back { display: grid; place-items: center; width: var(--touch); height: var(--touch); margin: -.4em -.3em -.4em -.6em;
  padding: 0; border: 0; background: none; cursor: var(--cur-hand, pointer); opacity: .85; }
.cb__back .ic { width: 1.6em; height: 1.6em; scale: -1 1; }
.cb__back:hover { opacity: 1; }
/* On the board before the first call: the time left, in gold, where the close stands otherwise. */
.cb__starts { margin-left: auto; color: var(--brass-hi); font-family: var(--face-ui); font-size: var(--fs-sm); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* THE CUPS (#627): every Cup played, the one on now and the next ones, in time order. Desktop: a
   row of slim text tabs under the head (the row exists only with more than one Cup: has-cups), a
   brass underline on the one looked at, the ones to come dimmed; it scrolls sideways when the Cups
   outgrow it. Mobile mode has no row (the height is the constraint): the number beside the title
   opens the same tabs as a list in a sheet. Looking at another Cup (is-other) the right column is away. */
html.m-desktop .wins > .win.cb.has-cups { grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "top top" "cups cups" "main side"; }
.cb__cups { grid-area: cups; display: flex; align-items: center; gap: 2em; min-width: 0; overflow-x: auto; overflow-y: hidden;
  padding: 0 .2em .55em; }
html.m-mobile .cb__cups { display: none; }
.cb__cuptab { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: .55em; margin: 0; padding: .35em 0; border: 0; background: none;
  color: var(--ink-mute); cursor: var(--cur-hand, pointer); font: 400 var(--fs-sm) / 1 var(--face-ui); white-space: nowrap; }
.cb__cuptab > b { font: 400 1.1em / 1 var(--face-display); letter-spacing: .08em; color: var(--ink-strong); }
.cb__cuptab > em { font-style: normal; color: var(--brass-pale); max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.cb__cuptab::before { content: ""; position: absolute; left: 0; right: 0; bottom: -.15em; height: 2px; border-radius: 1px; background: transparent; }
.cb__cuptab.is-next { opacity: .55; }
.cb__cuptab:hover, .cb__cuptab.is-on { opacity: 1; color: var(--ink-strong); }
.cb__cuptab.is-on > b { color: var(--brass-hi); }
.cb__cuptab.is-on::before { background: var(--brass-hi); box-shadow: 0 0 .5em rgba(var(--brass-rgb), .6); }
.cb__cuptab-live { display: inline-flex; align-items: center; gap: .4em; }
.cb__cuptab-live .cb__dot { width: .5em; height: .5em; }
.wins > .win.cb.is-other > .cb__side, .wins > .win.cb.is-other > .cbf { display: none; }
/* Mobile mode: the Cup looked at, beside the title; a tap opens the list. */
.cb__cup-pick { position: relative; display: none; align-items: center; gap: .25em; margin: 0; padding: .2em 0; border: 0; background: none;
  color: var(--brass-pale); cursor: var(--cur-hand, pointer); font: 400 var(--fs-small) / 1 var(--face-display); letter-spacing: .08em; }
html.m-mobile .cb__cup-pick { display: inline-flex; }
.cb__cup-pick > b { font-weight: 400; }
.cb__cup-pick .ic { width: 1.1em; height: 1.1em; opacity: .8; }
html.m-mobile .cb__cup-pick::after { content: ""; position: absolute; left: -.5em; right: -.5em; top: calc(50% - var(--hit) / 2); bottom: calc(50% - var(--hit) / 2); }
.cbs__box.cb-cuplist { width: 27em; gap: .5em; overflow: hidden; grid-template-rows: auto minmax(0, 1fr); }
.cb-cuplist__rows { display: grid; align-content: start; min-height: 0; }
.cb-cuplist .cb__cuptab { display: flex; align-items: center; min-height: var(--hit); padding: .2em .4em; border-bottom: 1px solid rgba(var(--brass-rgb), .12); color: var(--ink-mute); font: 400 1em / 1 var(--face-ui); }
.cb-cuplist .cb__cuptab::before { content: none; }
.cb-cuplist .cb__cuptab.is-on { background: linear-gradient(90deg, rgba(var(--brass-rgb), .16), transparent); }
.cb-cuplist .cb__cuptab > em { margin-left: auto; }

/* The board's column and MY TEAM's. */
.cb__main { grid-area: main; display: flex; flex-direction: column; gap: .5em; min-width: 0; min-height: 0; }
.cb__side { grid-area: side; align-self: start; width: 22em; max-height: 100%; overflow: auto; margin: 0; }
.cb__head { display: flex; align-items: center; gap: .6em; min-height: 1.6em; }
.cb__head:empty { display: none; }
.cb__live { display: inline-flex; align-items: center; gap: .45em; color: var(--brass-hi); font-family: var(--face-ui); letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-sm); }
.cb__live i { width: .55em; height: .55em; border-radius: 50%; background: #e2564b; box-shadow: 0 0 .5em #e2564b; animation: cb-pulse 1.4s ease-in-out infinite; }
.cb__box { flex: 1; min-height: 0; overflow: auto; display: grid; container-type: size; }
.cb__box > .cb__board { align-self: safe center; }
.cb__box > .gui-empty { margin: auto; max-width: 30em; }

/* THE NIGHT TO COME (#538): no registration open, no night running, no board to show. The key art
   (ui/cup/soon, the cup on the stone ring right of centre) fills the page behind everything, faded
   to the night on the left where the words stand: what is coming and when, the countdown to its
   registration, the night's three steps, the rules in numbers, what it takes. One picture, loaded
   only while this view is up on an open page (cup-bracket.ts artOn); no blur, no filter, one cheap
   pulse on the next step. */
.cb-soon__bg { display: none; position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cb.is-soon > .cb-soon__bg { display: block; }
.cb-soon__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.cb-soon__bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 26, .94) 0%, rgba(8, 13, 26, .82) 26%, rgba(8, 13, 26, .35) 48%, rgba(8, 13, 26, 0) 64%),
    linear-gradient(180deg, rgba(8, 13, 26, .7) 0%, rgba(8, 13, 26, 0) 16%, rgba(8, 13, 26, 0) 78%, rgba(8, 13, 26, .85) 100%); }

/* The column reads as a poster (#538): one hierarchy. A slim tag (what state the night is in), the
   title of what comes next, the countdown as the hero between two brass rules, the instant under it;
   then the quiet part: the night's three steps as a line of diamonds, three numbers, one line, the
   way to the bracket. No plates, no pills; one cheap pulse (the tag's pip, the next step). */
.cb-soon { align-self: center; justify-self: start; display: grid; justify-items: start; gap: 1em; max-width: 30em; padding: 0 0 1em 1.4em; }
.cb-soon > .note-line { margin: 0; }

/* The tag: a pip and the state in small spaced capitals, a hairline running off to the right. */
.cb-soon__tag { margin: 0; display: flex; align-items: center; gap: .65em; color: var(--brass); font-family: var(--face-ui);
  font-size: .74em; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.cb-soon__tag::after { content: ""; width: 4em; height: 1px; background: linear-gradient(90deg, rgba(var(--brass-rgb), .7), transparent); }
.cb-soon__pip { flex: none; width: .42em; height: .42em; transform: rotate(45deg); background: var(--brass); opacity: .8; }
.cb-soon__tag.is-live .cb-soon__pip { background: var(--brass-hi); opacity: 1; box-shadow: 0 0 .5em rgba(var(--brass-rgb), .9);
  animation: cb-pulse 2.4s ease-in-out infinite; }
.cb-soon__title { margin: -.35em 0 0; font: 400 1.55em / 1.15 var(--face-display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-strong); text-shadow: 0 2px 0 rgba(0, 0, 0, .7); }
.is-none > .cb-soon__title { font-size: 1.3em; text-transform: none; letter-spacing: .04em; }

/* The countdown: the figures large and bare, units under them, a brass diamond pair between, all
   between two brass rules that fade to the right. One grid of two rows (figures, units): each figure
   cell spans both on a subgrid, each colon is its own column in the figures' row, so it stands
   halfway between two figures and on their middle (the figures' box is trimmed to the digits). */
.cb-soon__clock { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: start; column-gap: .75em;
  margin-top: -.2em; padding: .75em 3em .6em 0;
  background:
    linear-gradient(90deg, rgba(var(--brass-rgb), .75), rgba(var(--brass-rgb), .2) 70%, transparent) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(var(--brass-rgb), .75), rgba(var(--brass-rgb), .2) 70%, transparent) bottom / 100% 1px no-repeat; }
.cb-soon__cell { grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; row-gap: .55em; justify-items: center; }
.cb-soon__num { font: 400 4.2em / 1 var(--face-display); color: var(--brass-pale); font-variant-numeric: tabular-nums;
  text-box: trim-both cap alphabetic; text-shadow: 0 0 .35em rgba(var(--brass-rgb), .4), 0 .05em 0 rgba(0, 0, 0, .7); }
.cb-soon__unit { font-family: var(--face-ui); font-size: .66em; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); }
.cb-soon__sep { grid-row: 1; display: grid; align-content: center; justify-items: center; gap: .45em; }
.cb-soon__sep::before, .cb-soon__sep::after { content: ""; width: .34em; height: .34em; transform: rotate(45deg); background: var(--brass); opacity: .7; }

/* The instant under the countdown, quiet: "Monday · 22:30 GMT+7". */
.cb-soon__when { margin: -.3em 0 0; display: flex; align-items: baseline; gap: .5em; white-space: nowrap; color: var(--ink-mute);
  font: 400 1em / 1 var(--face-display); letter-spacing: .08em; }
.cb-soon__when b { font-weight: 400; color: var(--brass-pale); }
.cb-soon__when small { font: 400 .72em / 1 var(--face-ui); letter-spacing: .14em; }
.cb-soon__dot { width: .28em; height: .28em; align-self: center; transform: rotate(45deg); background: var(--brass); }

/* The night's three steps: gems on one line. Behind us: a cut gold gem (four facets lit from the
   top left, a glint), the line solid; the next: a larger pale gem in a thin brass
   ring, glowing, its time bright; later: a hollow setting, the line dashed. */
.cb-soon__steps { list-style: none; margin: .5em 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 8.6em); }
.cb-soon__step { position: relative; display: grid; justify-items: start; align-content: start; gap: .25em; padding-top: 1.45em; }
.cb-soon__step::before { content: ""; position: absolute; top: .5em; left: 1em; right: .3em; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(var(--brass-rgb), .45) 0 .35em, transparent .35em .7em); }
.cb-soon__step:last-child::before { content: none; }
.cb-soon__step.is-done::before { background: rgba(var(--brass-rgb), .8); }
.cb-soon__node { position: absolute; top: .12em; left: .08em; width: .78em; height: .78em; transform: rotate(45deg); box-sizing: border-box;
  border: 1px solid rgba(var(--brass-rgb), .7); background: var(--navy-1); }
/* The gem: the box turned 45°; a conic from -45° splits it along its diagonals into the four facets
   (box top, right, bottom, left = gem upper right, lower right, lower left, upper left), lit from the
   top left, ::before the glint on the brightest facet. */
.cb-soon__step:is(.is-done, .is-next) .cb-soon__node { border: 1px solid #fff3d2;
  background: conic-gradient(from -45deg, #e9c77f 0 25%, #8a6328 0 50%, #c99a4a 0 75%, #fff1c8 0);
  box-shadow: 0 0 0 1px rgba(60, 40, 10, .55), 0 .1em .35em rgba(0, 0, 0, .6); }
.cb-soon__step:is(.is-done, .is-next) .cb-soon__node::before { content: ""; position: absolute; left: 8%; top: 40%; width: 20%; height: 20%;
  background: #fff; opacity: .85; border-radius: 50%; }
/* The next: the same size, paler, in a thin ring, glowing. */
.cb-soon__step.is-next .cb-soon__node {
  background: conic-gradient(from -45deg, #f6e6bc 0 25%, #a98544 0 50%, #e3cf9f 0 75%, #ffffff 0);
  box-shadow: 0 0 0 .12em var(--navy-0), 0 0 0 calc(.12em + 1px) rgba(var(--brass-rgb), .9), 0 0 .7em rgba(var(--brass-rgb), .75);
  animation: cb-pulse 2.4s ease-in-out infinite; }
/* Every step: its name, then a small line (its time, or Closed / Locked); one size for all, the
   colour says where it stands. */
.cb-soon__step b { font: 400 .95em / 1.1 var(--face-display); letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.cb-soon__step span { font-size: .78em; letter-spacing: .06em; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.cb-soon__step.is-done b { color: var(--brass); }
.cb-soon__step.is-next b, .cb-soon__step.is-next span { color: var(--brass-pale); }

/* The night in three numbers, a small diamond between each. */
.cb-soon__facts { list-style: none; margin: .2em 0 0; padding: 0; display: flex; align-items: center; gap: 1.1em; }
.cb-soon__fact { display: flex; align-items: baseline; gap: .45em; }
.cb-soon__fact + .cb-soon__fact::before { content: ""; align-self: center; width: .26em; height: .26em; margin-right: .65em; transform: rotate(45deg);
  background: rgba(var(--brass-rgb), .55); }
.cb-soon__fact b { font: 400 1.5em / 1 var(--face-display); color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.cb-soon__fact span { font-size: .68em; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.cb-soon__how { margin: 0; color: var(--ink-mute); font-size: var(--fs-sm); }
.cb-soon__how.is-mine { color: var(--sky); font-size: 1em; }

/* The way to the bracket: a slim brass-ruled bar in the display face, an arrow at its end; no plate. */
.cb-soon__go { position: relative; display: inline-flex; align-items: center; gap: .7em; margin-top: .2em; padding: .55em 1em .55em 1.2em;
  border: 1px solid rgba(var(--brass-rgb), .65); border-radius: .2em; cursor: var(--cur-hand, pointer);
  background: linear-gradient(90deg, rgba(var(--brass-rgb), .22), rgba(var(--brass-rgb), .04));
  color: var(--brass-pale); font: 400 .9em / 1 var(--face-display); letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .15s, background .15s; }
.cb-soon__go:hover, .cb-soon__go:focus-visible { outline: none; border-color: var(--brass-hi);
  background: linear-gradient(90deg, rgba(var(--brass-rgb), .36), rgba(var(--brass-rgb), .08)); }
.cb-soon__go-ic { width: 1.1em; height: 1.1em; }
@media (prefers-reduced-motion: reduce) {
  .cb-soon__step.is-next .cb-soon__node, .cb-soon__tag.is-live .cb-soon__pip { animation: none; }
}

/* The board: its own em, so the panel's geometry is one scale. Desktop fits the whole tree in the
   box: the em is the box over the board's own size (--nw x --nh em, cup-bracket.ts board()), never
   above 16px, never under 8px (a night too big for that scrolls instead). */
.cb__board { font-size: clamp(8px, min(calc(100cqw / var(--nw)), calc(100cqh / var(--nh))), 16px);
  width: max-content; margin: 0 auto; padding: .8em 1.2em 1.4em; }
.cb__row { display: flex; align-items: flex-start; }
.cb__row--caps { height: 2.6em; }
.cb__half, .cb__caps, .cb__mid { position: relative; flex: none; }
.cb__gap { flex: none; display: block; }

/* Column captions: the round, its best-of under it. */
.cb__cap { position: absolute; top: 0; display: grid; justify-items: center; gap: .1em; text-align: center; }
.cb__cap b { font-family: var(--face-display); font-weight: 400; font-size: .82em; letter-spacing: .04em; text-transform: uppercase; color: var(--brass-hi); white-space: nowrap; }
.cb__cap i { font-style: normal; font-size: .78em; color: var(--ink-mute); }

/* A slot: one side of a series, the leader's name, the games won. */
.cb__slot { position: absolute; box-sizing: border-box; display: flex; align-items: center; gap: .4em; padding: 0 .55em;
  border: 1px solid rgba(var(--brass-rgb), .45); border-radius: .3em;
  background: linear-gradient(var(--navy-3), var(--navy-2)); box-shadow: inset 0 1px 0 rgba(var(--brass-pale-rgb), .08), 0 .1em .3em rgba(0, 0, 0, .35); }
.cb__half--r .cb__slot { flex-direction: row-reverse; }
.cb__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); }
.cb__half--r .cb__name { text-align: right; }
.cb__score { flex: none; min-width: 1.2em; text-align: center; font-family: var(--face-ui); font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.cb__slot.is-tbd { border-style: dashed; border-color: rgba(var(--brass-rgb), .25); background: rgba(var(--navy-1-rgb), .7); box-shadow: none; }
.cb__slot.is-tbd .cb__name { color: var(--ink-faint); text-align: center; letter-spacing: .08em; }
.cb__slot.is-win { border-color: var(--brass); background: linear-gradient(rgba(var(--brass-rgb), .26), rgba(var(--brass-rgb), .08)), var(--navy-2); }
.cb__slot.is-win .cb__name, .cb__slot.is-win .cb__score { color: var(--brass-pale); }
.cb__slot.is-out { opacity: .5; }
.cb__slot.is-out .cb__name { text-decoration: line-through; text-decoration-color: rgba(var(--ink-strong-rgb), .35); }
.cb__slot.is-live { border-color: var(--brass-hi); animation: cb-glow 1.8s ease-in-out infinite; }
.cb__slot.is-mine { box-shadow: inset 0 0 0 .12em var(--sky), 0 0 .6em rgba(var(--sky-rgb), .35); }
.cb__slot.is-mine .cb__name { color: var(--sky); }
.cb__slot.is-champ { border-color: var(--brass-pale); box-shadow: 0 0 .8em rgba(var(--brass-rgb), .55); }

/* The connectors: a pair's bracket and the stem to its winner, thin brass, lit once decided. */
.cb__arm, .cb__stem { position: absolute; display: block; box-sizing: border-box; pointer-events: none; }
.cb__arm { border: 1px solid rgba(var(--brass-rgb), .38); }
.cb__half--l .cb__arm { border-left: 0; border-radius: 0 .3em .3em 0; }
.cb__half--r .cb__arm { border-right: 0; border-radius: .3em 0 0 .3em; }
.cb__stem { height: 0; border-top: 1px solid rgba(var(--brass-rgb), .38); }
.cb__arm.is-lit, .cb__stem.is-lit { border-color: var(--brass-hi); }
.cb__stem--mid { border-top-color: rgba(var(--brass-rgb), .6); }

/* The middle: the astrolabe and trophy, the final's plate, the champion. */
.cb__mid { display: grid; place-items: center; }
.cb__centre { display: grid; justify-items: center; gap: .55em; }
.cb__emblem { position: relative; width: 8em; height: 8em; display: grid; place-items: center; }
.cb__orrery { position: absolute; inset: -2.2em; background: url("/data/art/landing/astro-circle.86f1f5e9.webp") center / contain no-repeat; opacity: .28; animation: cb-turn 240s linear infinite; }
.cb__ring { position: absolute; inset: .3em; background: var(--art-ring) center / 100% 100% no-repeat; filter: drop-shadow(0 0 .5em rgba(var(--brass-rgb), .45)); animation: cb-turn 90s linear infinite reverse; }
.cb__cup { position: relative; width: 3.8em; height: 3.8em; object-fit: contain; filter: drop-shadow(0 .2em .4em rgba(0, 0, 0, .6)); }
.cb__emblem.is-done .cb__ring { filter: drop-shadow(0 0 1em rgba(var(--brass-rgb), .85)); }
.cb__plate { display: grid; justify-items: center; gap: .05em; padding: .3em 1.6em; border: 1px solid var(--brass); border-radius: .25em;
  background: linear-gradient(90deg, transparent, rgba(var(--brass-rgb), .22) 20%, rgba(var(--brass-rgb), .22) 80%, transparent), var(--navy-1); }
.cb__plate b { font-family: var(--face-display); font-weight: 400; font-size: 1.25em; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-pale); }
.cb__plate span { font-size: .78em; color: var(--ink-mute); }
.cb__champ { display: grid; justify-items: center; gap: .1em; max-width: 10em; }
.cb__champ span { font-size: .78em; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.cb__champ b { max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--face-display); font-weight: 400; font-size: 1.2em; color: var(--brass-hi); text-shadow: 0 0 .6em rgba(var(--brass-rgb), .5); }
.cb__champ.is-open b { color: var(--ink-faint); text-shadow: none; }

@keyframes cb-turn { to { transform: rotate(360deg); } }
@keyframes cb-glow { 50% { box-shadow: 0 0 .9em rgba(var(--brass-rgb), .6); } }
@keyframes cb-pulse { 50% { opacity: .35; } }

/* Mobile mode (landscape phone, the height is the constraint): one short head row (its height the
   finger's target), the posters with a narrower MY TEAM column beside them. */
html.m-mobile .wins > .win.cb { padding: .5em .8em .4em; gap: .4em .8em; }
html.m-mobile .cb__title { font-size: var(--fs-small); letter-spacing: .18em; }
html.m-mobile .cb__close { font-size: 1em; min-width: var(--hit); min-height: var(--hit); }
html.m-mobile .cb__back { width: var(--hit); height: var(--hit); }
html.m-mobile .cb__side { width: 17em; }
/* The night in play or over (cup-bracket.ts sets data-sect, the section shown): one column, no side
   column and no inner columns; the head's strip picks the section, each gets the page's width.
   MY TEAM is a section of its own, the card centred in the main area. */
html.m-mobile .wins > .win.cb[data-sect] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
html.m-mobile .wins > .win.cb[data-sect] > .cb__side { display: none; }
html.m-mobile .wins > .win.cb[data-sect="team"] > .cb__main { display: none; }
html.m-mobile .wins > .win.cb[data-sect="team"] > .cb__side { display: grid; grid-area: main; justify-self: center; width: 36em; }
/* The night to come on a landscape phone: the same column, tighter, the art further right. */
html.m-mobile .cb-soon { gap: .7em; padding: 0 0 .3em .4em; max-width: 26em; }
html.m-mobile .cb-soon__title { font-size: 1.25em; }
html.m-mobile .cb-soon__clock { column-gap: .55em; padding: .55em 2em .45em 0; }
html.m-mobile .cb-soon__num { font-size: 3.1em; }
html.m-mobile .cb-soon__cell { row-gap: .45em; }
html.m-mobile .cb-soon__steps { margin-top: .2em; grid-template-columns: repeat(3, 7.4em); }
html.m-mobile .cb-soon__step { padding-top: 1.3em; }
html.m-mobile .cb-soon__fact b { font-size: 1.3em; }
/* Slim on a phone: the drawing stays small, the finger's target is an invisible band round it. */
html.m-mobile .cb-soon__go { padding: .45em .8em .45em 1em; font-size: .82em; }
html.m-mobile .cb-soon__go::after { content: ""; position: absolute; left: -.3em; right: -.3em; top: calc(50% - var(--hit) / 2); bottom: calc(50% - var(--hit) / 2); }
html.m-mobile .cb-soon__art { object-position: 80% 40%; }

/* MOBILE MODE: one round at a time (cup-bracket.ts rounds()). Slim: a strip of text tabs with a
   brass underline on the one shown (no pills, owner 2026-11-16: the touch area is an invisible
   ::after, never a fatter drawing), the round's best-of at the strip's end; under it compact cards
   three across in a scroller, a swipe across them turns the round. */
/* The strip never scrolls (six rounds at most fit the width), so each tab's target, a --hit band
   round its slim drawing, is never clipped; the space above and under the strip keeps that band
   off the cards. */
.cb-rounds { align-self: stretch; min-height: 0; display: flex; flex-direction: column; gap: 1.5em; }
.cb-rounds__tabs { flex: none; display: flex; align-items: center; gap: 1.6em; margin-top: 1.2em; border-bottom: 1px solid rgba(var(--brass-rgb), .22);
  padding: 0 .2em; }
.cb-rounds__tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: .35em; padding: .45em 0 .4em;
  border: 0; background: none; color: var(--ink-mute); font: 400 .78em / 1 var(--face-display); letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap; cursor: var(--cur-hand, pointer); }
.cb-rounds__tab::after { content: ""; position: absolute; left: -.6em; right: -.6em; top: calc(50% - var(--hit) / 2); bottom: calc(50% - var(--hit) / 2); }
.cb-rounds__tab::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 1px; background: transparent; }
.cb-rounds__tab.is-on { color: var(--brass-pale); }
.cb-rounds__tab.is-on::before { background: var(--brass-hi); box-shadow: 0 0 .5em rgba(var(--brass-rgb), .6); }
.cb-rounds__tab .cb__dot { width: .45em; height: .45em; }
.cb-rounds__bo { margin-left: auto; flex: none; font-size: .72em; color: var(--ink-mute); white-space: nowrap; }
.cb-rounds__list { flex: 1; min-height: 0; overflow: auto; touch-action: pan-y; display: grid; grid-template-columns: repeat(3, 1fr);
  align-content: start; gap: .6em; padding: .1em .1em .6em; }
.cb-card { position: relative; display: flex; align-items: center; gap: .4em; padding: .2em .5em; min-width: 0; min-height: var(--hit); box-sizing: border-box;
  border: 1px solid rgba(var(--brass-rgb), .3); border-radius: .3em; background: rgba(var(--navy-2-rgb, 20, 28, 46), .85); }
.cb-card.is-live { border-color: var(--brass-hi); box-shadow: inset .18em 0 0 var(--brass-hi), 0 0 .5em rgba(var(--brass-rgb), .35); }
.cb-card.is-mine { border-color: var(--sky); }
.cb-card__sides { flex: 1; min-width: 0; display: grid; }
.cb-card__side { display: flex; align-items: center; gap: .4em; min-height: 1.55em; font-size: .9em; }
.cb-card__side + .cb-card__side { border-top: 1px solid rgba(var(--brass-rgb), .14); }
.cb-card__side .cb__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); }
.cb-card__side .cb__score { flex: none; min-width: 1em; text-align: right; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.cb-card__side.is-win .cb__name, .cb-card__side.is-win .cb__score { color: var(--brass-pale); }
.cb-card__side.is-out { opacity: .5; }
.cb-card__side.is-out .cb__name { text-decoration: line-through; text-decoration-color: rgba(var(--ink-strong-rgb), .35); }
.cb-card__side.is-tbd .cb__name { color: var(--ink-faint); letter-spacing: .06em; }
.cb-card__side.is-reach .cb__name { font-size: .88em; font-style: italic; letter-spacing: 0; }
.cb-card__side.is-mine .cb__name { color: var(--sky); }
.wins > .win.cb .cb-card__eye { position: relative; flex: none; transform: none; width: 1.5em; height: 1.5em; animation: none; }
.cb-card__eye::after { content: ""; position: absolute; inset: calc(50% - var(--hit) / 2); }
.cb-card__eye .cb__eye-n { font-size: .58em; }
.cb-card__dot { flex: none; }
.cb-rounds__champ { grid-column: 1 / -1; display: grid; justify-items: center; padding-top: .6em; }

/* THE HEAD'S TABS (#538): NOW and the bracket on the night in play. Slim text tabs, a brass
   underline on the one shown; the touch target an invisible band in mobile mode. */
.cb__tabs { display: flex; align-items: center; gap: 1.6em; margin-left: 1.4em; }
.cb__tab { position: relative; padding: .35em 0; border: 0; background: none; color: var(--ink-mute); cursor: var(--cur-hand, pointer);
  font: 400 .86em / 1 var(--face-display); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.cb__tab::before { content: ""; position: absolute; left: 0; right: 0; bottom: -.2em; height: 2px; border-radius: 1px; background: transparent; }
.cb__tab:hover { color: var(--ink-strong); }
.cb__tab.is-on { color: var(--brass-pale); }
.cb__tab.is-on::before { background: var(--brass-hi); box-shadow: 0 0 .5em rgba(var(--brass-rgb), .6); }
html.m-mobile .cb__tabs { gap: 1.9em; margin-left: 1.6em; }
html.m-mobile .cb__tab { display: inline-flex; align-items: center; gap: .4em; }
html.m-mobile .cb__tab .cb__dot { width: .45em; height: .45em; }
html.m-mobile .cb__tab::after { content: ""; position: absolute; left: -.6em; right: -.6em; top: calc(50% - var(--hit) / 2); bottom: calc(50% - var(--hit) / 2); }
.cb__slot.is-tap, .cb-card.is-tap { cursor: var(--cur-hand, pointer); }
.cb__slot.is-tap:hover { border-color: var(--brass-hi); }
/* A team holding a friend or a guild mate: jade, as mine is sky. */
.cb__slot.is-ours { box-shadow: inset .18em 0 0 var(--green); }
.cb__half--r .cb__slot.is-ours { box-shadow: inset -.18em 0 0 var(--green); }
.cb__slot.is-ours .cb__name, .cb-card__side.is-ours .cb__name { color: var(--green); }

/* NOW (panels/cup-now.ts): the night as a viewer follows it. A bar saying where the night stands
   (the round, one diamond per series of it: filled played, lit on, hollow to come), then two
   columns: what is on (cards) and next, and beside it the teams I know and every result. Hairlines
   and type, no plates but the cards; the one pulse is the live dot. */
.cbn { align-self: start; width: 100%; min-width: 0; overflow-x: clip; display: grid; gap: 1.1em; padding: .2em 0 1em; }
.cbn button { margin: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: var(--cur-hand, pointer); }
.cbn__bar { display: flex; align-items: center; gap: .9em; }
.cbn__bar-round { font: 400 1.25em / 1 var(--face-display); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-pale); }
.cbn__bar-bo { color: var(--ink-mute); font-size: var(--fs-sm); }
.cbn__cols { display: grid; grid-template-columns: minmax(0, 1fr) 19em; gap: 2em; align-items: start; }
.cbn__col { display: grid; gap: 1.4em; min-width: 0; }
.cbn__block { display: grid; gap: .6em; min-width: 0; }
.cbn__cap { margin: 0; display: flex; align-items: center; gap: .65em; color: var(--brass); font: 400 .74em / 1 var(--face-ui);
  letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; }
.cbn__cap::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--brass-rgb), .45), transparent); }
.cbn__quiet { margin: 0; color: var(--ink-mute); }
.cbn__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 1.08em / 1.15 var(--face-display);
  letter-spacing: .03em; color: var(--ink-strong); }
:is(.cbn, .cbs) :is(.is-mine > .cbn__name, b.is-mine) { color: var(--sky); }
:is(.cbn, .cbs) :is(.is-ours > .cbn__name, b.is-ours) { color: var(--green); }
.cbn__sigil { width: 1.2em; height: 1.2em; object-fit: contain; flex: none; }

/* A series on now: the round over both teams and the score, the state and Watch under a hairline. */
.cbn__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; }
.cbn-card { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 1em; row-gap: .55em;
  padding: .75em 1em .65em; border: 1px solid rgba(var(--brass-rgb), .35); border-radius: .35em; cursor: var(--cur-hand, pointer);
  background: linear-gradient(var(--navy-3), var(--navy-2)); box-shadow: inset 0 1px 0 rgba(var(--brass-pale-rgb), .07), 0 .15em .4em rgba(0, 0, 0, .35); }
.cbn-card:hover, .cbn-card:focus-visible { outline: none; border-color: var(--brass-hi); }
.cbn-card.is-on { border-color: rgba(var(--brass-rgb), .8); box-shadow: inset 0 1px 0 rgba(var(--brass-pale-rgb), .1), 0 0 .8em rgba(var(--brass-rgb), .22); }
.cbn-card.is-mine { border-color: var(--sky); }
.cbn-card.is-ours { box-shadow: inset .2em 0 0 var(--green), 0 .15em .4em rgba(0, 0, 0, .35); }
.cbn-card__round { grid-column: 1 / -1; display: flex; align-items: center; gap: .55em; color: var(--ink-mute); font: 400 .72em / 1 var(--face-ui);
  letter-spacing: .2em; text-transform: uppercase; }
.cbn-card__round i { font-style: normal; display: flex; align-items: center; gap: .55em; color: var(--ink-faint); }
.cbn-card__round i::before { content: ""; width: .3em; height: .3em; transform: rotate(45deg); background: rgba(var(--brass-rgb), .55); }
/* A team's five faces in their class rings, the leader's ring gold. */
/* Every face one size: the head (drawn 1.38x its well, 20-components .portrait > .head) is clipped
   to the round well, so what shows is exactly the ring's box and the gap between two is the gap. */
.cbn-row__faces { display: flex; gap: .4em; }
.cbn__face { font-size: .4em; overflow: hidden; --sigil-in: 8%; }
.cbn__face.has-head::before { content: none; }
/* The leader: a gold ring round the well (an outline: the clip would cut a shadow). */
.cbn__face.is-lead { outline: max(1px, .14em) solid var(--brass-hi); outline-offset: max(1px, .1em); }
/* A team facing the other on a card or the live column: the name over the faces, side b mirrored
   to the right; the score between, bright for the side ahead. */
.cbn-card__team { display: grid; gap: .45em; justify-items: start; min-width: 0; }
.cbn-card__team .cbn__name { max-width: 100%; font-size: 1.15em; }
.cbn-card__team.is-b { justify-items: end; text-align: right; }
:is(.cbn-card, .cbf__teams) .cbn-card__score b { color: var(--ink-mute); text-shadow: none; }
:is(.cbn-card, .cbf__teams) .cbn-card__score b.is-ahead { color: var(--brass-pale); text-shadow: 0 0 .35em rgba(var(--brass-rgb), .35); }
/* On a card the best-of stands at the right end of the round's line, the watchers after it. */
.cbn-card > .cbn-card__round > i, .cbf__head > .cbn-card__round > i { margin-left: auto; }
.cbn-card > .cbn-card__round > i::before, .cbf__head > .cbn-card__round > i::before { content: none; }
.cbf .cbf__head > .cbn-card__round { flex: 1; }
.cbn-card__eye { margin-left: .8em; display: inline-flex; align-items: center; gap: .3em; color: var(--ink-mute); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cbn-card__eye .cb__eye-ic { width: 1.25em; height: 1.25em; }
.cbn-card__score { display: flex; align-items: center; gap: .55em; }
.cbn-card__score b { font: 400 2em / 1 var(--face-display); color: var(--brass-pale); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 .35em rgba(var(--brass-rgb), .35); }
.cbn-card__score i { width: .32em; height: .32em; transform: rotate(45deg); background: var(--brass); opacity: .7; }
.cbn-card__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .6em; min-height: 2em;
  padding-top: .5em; border-top: 1px solid rgba(var(--brass-rgb), .16); }
.cbn__state { display: inline-flex; align-items: center; gap: .45em; color: var(--ink-mute); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.cbn__state.is-on { color: var(--brass-hi); }
.cbn__state .cb__dot { width: .45em; height: .45em; }
/* Watch: a slim brass-ruled bar, the eye, the word, how many watch. */
.cbn .cbn__watch { position: relative; display: inline-flex; align-items: center; gap: .45em; padding: .35em .8em; border: 1px solid rgba(var(--brass-rgb), .65);
  border-radius: .2em; background: linear-gradient(90deg, rgba(var(--brass-rgb), .24), rgba(var(--brass-rgb), .05)); color: var(--brass-pale);
  font: 400 .8em / 1 var(--face-display); letter-spacing: .14em; text-transform: uppercase; transition: border-color .15s, background .15s; }
.cbn .cbn__watch:hover { border-color: var(--brass-hi); background: linear-gradient(90deg, rgba(var(--brass-rgb), .38), rgba(var(--brass-rgb), .08)); }
.cbn__watch .cb__eye-ic { width: 1.25em; height: 1.25em; }
html.m-mobile .cbn__watch::after { content: ""; position: absolute; left: -.4em; right: -.4em; top: calc(50% - var(--hit) / 2); bottom: calc(50% - var(--hit) / 2); }

/* Up next: one row each, the round and the two teams. */
.cbn__next { display: grid; }
.cbn .cbn-next { display: flex; align-items: baseline; gap: .6em; min-width: 0; padding: .5em .2em; border-bottom: 1px solid rgba(var(--brass-rgb), .12); }
.cbn-next:hover b { color: var(--brass-pale); }
.cbn-next__round { flex: none; width: 9em; color: var(--ink-mute); font-size: var(--fs-sm); letter-spacing: .04em; }
.cbn-next b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--ink-strong); }
.cbn-next i { flex: none; font-style: normal; font-size: var(--fs-sm); color: var(--ink-faint); }

/* Results, the newest first: the time and round over the winner, the score, the loser. */
.cbn__results { display: grid; }
.cbn .cbn-res { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "meta meta meta" "win score lose";
  align-items: baseline; column-gap: .6em; row-gap: .2em; padding: .5em .2em; border-bottom: 1px solid rgba(var(--brass-rgb), .12); }
.cbn-res:hover .cbn-res__win { color: var(--brass-hi); }
.cbn-res__at, .cbn-res__round { grid-row: 1; font-size: .72em; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.cbn-res__at { grid-column: 1; }
.cbn-res__round { grid-column: 2 / -1; justify-self: end; }
.cbn-res__win { grid-area: win; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--brass-pale); }
.cbn-res__score { grid-area: score; color: var(--ink-strong); font-family: var(--face-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbn-res__lose { grid-area: lose; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--ink-mute); }

/* THE CHAMPION: the night over. The trophy in the turning ring, the name, the five, the road. */
.cbn-champ { display: grid; justify-items: center; gap: .7em; padding: 1.4em 1em 1.2em; text-align: center;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(var(--brass-rgb), .14), transparent 70%); }
.cbn-champ__emblem { position: relative; width: 8em; height: 8em; display: grid; place-items: center; }
.cbn-champ__emblem .cb__ring { filter: drop-shadow(0 0 1em rgba(var(--brass-rgb), .85)); }
.cbn-champ__cup { position: relative; width: 4em; height: 4em; object-fit: contain; filter: drop-shadow(0 .2em .4em rgba(0, 0, 0, .6)); }
.cbn-champ__tag { color: var(--brass); font: 400 .74em / 1 var(--face-ui); letter-spacing: .3em; text-transform: uppercase; }
.cbn-champ__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 2.2em / 1.1 var(--face-display);
  letter-spacing: .06em; color: var(--brass-hi); text-shadow: 0 0 .6em rgba(var(--brass-rgb), .55), 0 2px 0 rgba(0, 0, 0, .7); }
.cbn-champ__roster { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.2em; }
.cbn-champ__roster li { display: inline-flex; align-items: center; gap: .35em; color: var(--ink-strong); }
.cbn-champ__roster li.is-lead, .cbs__roster li.is-lead, .cbn-team__roster li.is-lead { color: var(--brass-pale); }
.cbn-champ__roster li.is-lead::after, .cbs__roster li.is-lead span::after, .cbn-team__roster li.is-lead span::after { content: " ♛"; color: var(--brass); }
.cbn-champ__road { list-style: none; margin: .4em 0 0; padding: 0; display: grid; width: min(100%, 26em); }
.cbn .cbn-road { display: grid; grid-template-columns: 9em 3.5em minmax(0, 1fr); gap: .6em; align-items: baseline; padding: .4em .2em; text-align: left;
  border-bottom: 1px solid rgba(var(--brass-rgb), .12); }
.cbn-road span:first-child { color: var(--ink-mute); font-size: var(--fs-sm); }
.cbn-road b { font-weight: 400; color: var(--brass-pale); font-variant-numeric: tabular-nums; }
.cbn-road span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-mute); }

/* WHO IS IN: every team signed up, the leader over the five. */
.cbn-teams { align-self: start; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; padding-bottom: 1em; }
.cbn-team { display: grid; gap: .45em; align-content: start; padding: .65em .8em; border: 1px solid rgba(var(--brass-rgb), .28); border-radius: .3em;
  background: rgba(var(--navy-2-rgb, 20, 28, 46), .8); }
.cbn-team.is-mine { border-color: var(--sky); }
.cbn-team.is-ours { box-shadow: inset .2em 0 0 var(--green); }
.cbn-team__roster { list-style: none; margin: 0; padding: 0; display: grid; gap: .2em; }
.cbn-team__roster li { display: flex; align-items: center; gap: .4em; min-width: 0; color: var(--ink-mute); font-size: var(--fs-sm); }
.cbn-team__roster span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbn-team .cbn__sigil { width: 1.1em; height: 1.1em; }

/* A SERIES' SHEET over the page: both rosters face to face round the score, each game under them. */
.cb__over { position: absolute; inset: 0; z-index: 3; }
.cb__over:empty { display: none; }
.cbs { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.4em; background: rgba(6, 10, 20, .72); animation: cb-in .15s ease-out; }
.cbs button { margin: 0; border: 0; background: none; font: inherit; color: inherit; cursor: var(--cur-hand, pointer); }
.cbs__box { width: 42em; max-width: 100%; max-height: 100%; overflow: auto; display: grid; gap: 1em; padding: 1em 1.3em 1.2em;
  border: 1px solid rgba(var(--brass-rgb), .6); border-radius: .4em; background: linear-gradient(var(--navy-2), var(--navy-1));
  box-shadow: 0 1em 2.4em rgba(0, 0, 0, .6), inset 0 1px 0 rgba(var(--brass-pale-rgb), .1); }
.cbs__head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.cbs .cbs__close { position: static; display: grid; place-items: center; width: 2em; height: 2em; }
.cbs__close .ic { width: 1.1em; height: 1.1em; }
html.m-mobile .cbs .cbs__close { position: relative; }
html.m-mobile .cbs__close::after { content: ""; position: absolute; inset: calc(50% - var(--hit) / 2); }
.cbs__vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.4em; align-items: start; }
.cbs__team { display: grid; gap: .6em; min-width: 0; }
.cbs__team .cbn__name { font-size: 1.35em; }
.cbs__team.is-b { justify-items: end; text-align: right; }
.cbs__team.is-win .cbn__name { color: var(--brass-hi); }
.cbs__team.is-out { opacity: .6; }
.cbs__roster { list-style: none; margin: 0; padding: 0; display: grid; gap: .3em; }
.cbs__roster li { display: flex; align-items: center; gap: .45em; min-width: 0; color: var(--ink-strong); }
.cbs__team.is-b .cbs__roster li { flex-direction: row-reverse; }
.cbs__roster span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbs__mid { display: grid; justify-items: center; gap: .5em; padding-top: .3em; }
.cbs__mid .cbn-card__score b { font-size: 2.6em; }
.cbs__games { list-style: none; margin: 0; padding: .7em 0 0; display: grid; gap: .25em; border-top: 1px solid rgba(var(--brass-rgb), .18); }
.cbs__game { display: grid; grid-template-columns: 5em minmax(0, auto) 1fr; gap: .8em; align-items: baseline; }
.cbs__game-n { color: var(--ink-mute); font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; }
.cbs__game b { font-weight: 400; color: var(--brass-pale); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbs__game-why { color: var(--ink-faint); font-size: var(--fs-sm); }
.cbs__foot { display: flex; justify-content: center; }
.cbs .cbn__watch { position: relative; display: inline-flex; align-items: center; gap: .45em; padding: .45em 1.1em; border: 1px solid rgba(var(--brass-rgb), .65);
  border-radius: .2em; background: linear-gradient(90deg, rgba(var(--brass-rgb), .24), rgba(var(--brass-rgb), .05)); color: var(--brass-pale);
  font: 400 .86em / 1 var(--face-display); letter-spacing: .14em; text-transform: uppercase; }

/* VIEWER OR CONTESTANT (#538): a viewer's column is the featured match (.cbf), a contestant's MY
   TEAM; one stands in the side area at a time. */
.cbf { display: none; }
.wins > .win.cb.is-viewer > .cb__side { display: none; }
.wins > .win.cb.is-viewer > .cbf { grid-area: side; align-self: start; width: 31em; max-height: 100%; overflow: auto; display: grid; gap: .65em; align-content: start; }
.cbf button { margin: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: var(--cur-hand, pointer); }
/* The screen: 16:9, the docked stage fills it (cup-watch.ts); before Play a quiet poster, the eye. */
.cbf__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(var(--brass-rgb), .45); border-radius: .35em;
  background: radial-gradient(ellipse 70% 70% at 50% 45%, var(--navy-3), var(--navy-0)); }
.cbf__screen > .cw__stage { position: absolute; inset: 0; }
/* Too small for ten nameplates, as the mini player: the bodies and the numbers only. */
.cbf__screen .cb-plate { display: none; }
.cbf .cbf__poster { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .45em; text-align: center;
  color: var(--brass-pale); font: 400 .82em / 1 var(--face-display); letter-spacing: .16em; text-transform: uppercase; }
.cbf__poster .cb__eye-ic { width: 2.6em; height: 2.6em; padding: .55em; border: 1px solid var(--brass-hi); border-radius: 50%; box-sizing: content-box;
  background: rgba(var(--navy-1-rgb), .7); box-shadow: 0 0 .9em rgba(var(--brass-rgb), .45); transition: box-shadow .15s, color .15s; }
.cbf__poster:hover .cb__eye-ic { color: #fff; box-shadow: 0 0 1.3em rgba(var(--brass-rgb), .75); }
.cbf .cbf__head { display: flex; }
.cbf__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 1em; padding: .3em 0 .5em;
  border-bottom: 1px solid rgba(var(--brass-rgb), .12); cursor: var(--cur-hand, pointer); }
.cbf__foot { display: flex; align-items: center; justify-content: space-between; gap: .6em; min-height: 2em; }
.cbf__acts { display: flex; gap: 1.1em; }
/* The player's controls: a band over the picture's foot, always shown while it plays here (desktop
   with a mouse only): stop and the big screen at the right. */
.cbf__ctl { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: .3em; padding: 1.6em .5em .35em .7em;
  background: linear-gradient(transparent, rgba(6, 10, 20, .85)); }

.cbf .cbf__ctl-btn { display: grid; place-items: center; width: 2em; height: 2em; border-radius: .25em; opacity: .85; }
.cbf .cbf__ctl-btn:hover { opacity: 1; background: rgba(var(--brass-rgb), .2); }
.cbf__ctl-btn .ic { width: 1.15em; height: 1.15em; }
.cbf .cbn__watch { position: relative; display: inline-flex; align-items: center; gap: .45em; padding: .35em .8em; border: 1px solid rgba(var(--brass-rgb), .65);
  border-radius: .2em; background: linear-gradient(90deg, rgba(var(--brass-rgb), .24), rgba(var(--brass-rgb), .05)); color: var(--brass-pale);
  font: 400 .8em / 1 var(--face-display); letter-spacing: .14em; text-transform: uppercase; }
.cbf .cbn-next { display: flex; align-items: baseline; gap: .5em; min-width: 0; padding: .45em .1em; border-bottom: 1px solid rgba(var(--brass-rgb), .12); }
.cbf .cbn-next__round { width: 7.5em; }
/* Who plays, top left over the picture, on a soft dark plate. */
.cbf__tag { position: absolute; z-index: 1; top: .5em; left: .5em; max-width: calc(100% - 1em); display: flex; align-items: baseline; gap: .45em;
  padding: .25em .6em; border-radius: .25em; background: rgba(6, 10, 20, .72); pointer-events: none; white-space: nowrap; overflow: hidden; }
.cbf__tag b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 400 .9em / 1.1 var(--face-display); color: var(--ink-strong); }
.cbf__tag em { flex: none; font-style: normal; font-family: var(--face-ui); color: var(--brass-pale); font-variant-numeric: tabular-nums; }
/* Every match on now, a slim chip each over the screen; the featured one lit. */
.cbf__chips { display: flex; flex-wrap: wrap; gap: .35em; }
.cbf .cbf__chip { display: inline-flex; align-items: center; gap: .4em; max-width: 100%; padding: .3em .6em; border: 1px solid rgba(var(--brass-rgb), .3);
  border-radius: .25em; background: rgba(var(--navy-1-rgb), .6); color: var(--ink-mute); font-size: var(--fs-sm); white-space: nowrap; }
.cbf .cbf__chip:hover { border-color: rgba(var(--brass-rgb), .7); color: var(--ink-strong); }
.cbf .cbf__chip.is-on { border-color: var(--brass-hi); background: linear-gradient(rgba(var(--brass-rgb), .22), rgba(var(--brass-rgb), .08)); color: var(--brass-pale); }
.cbf__chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.cbf__chip em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-strong); }
.cbf__chip .cbf__eye { margin-left: .1em; }
.cbf__eye { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .25em; color: var(--ink-mute); font-size: var(--fs-sm); }
.cbf__eye .cb__eye-ic { width: 1.05em; height: 1.05em; }
/* Mobile mode has no featured column: NOW is the live matches, Watch opens the big screen. */
html.m-mobile .wins > .win.cb.is-viewer > .cbf { display: none; }

/* Mobile mode (landscape phone), one section at a time at the page's width (no inner columns):
   NOW is the bar, the matches on three across, up next two across; RESULTS three across; THE
   CHAMPION the trophy and name beside its road. Every row is a --hit tall target, hairlines only. */
html.m-mobile .cbn { gap: .7em; padding-top: 0; }
html.m-mobile .cbn__bar-round { font-size: 1.05em; }
html.m-mobile .cbn__col { gap: .9em; }
html.m-mobile .cbn__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6em; }
html.m-mobile .cbn-card { padding: .5em .8em .6em; row-gap: .4em; }
html.m-mobile .cbn__next { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2em; }
html.m-mobile .cbn .cbn-next { align-items: center; min-height: var(--hit); box-sizing: border-box; padding: 0 .2em; }
html.m-mobile .cbn--res .cbn__results { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2em; }
html.m-mobile .cbn .cbn-res { align-content: center; min-height: var(--hit); box-sizing: border-box; padding: .2em; }
html.m-mobile .cbn-champ { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto auto 1fr;
  column-gap: 2.4em; row-gap: .5em; padding: .4em 1em; align-items: center; }
html.m-mobile .cbn-champ__emblem { grid-area: 2 / 1; width: 6em; height: 6em; }
html.m-mobile .cbn-champ__tag { grid-area: 3 / 1; }
html.m-mobile .cbn-champ__name { grid-area: 4 / 1; }
html.m-mobile .cbn-champ__roster { grid-area: 5 / 1; }
html.m-mobile .cbn-champ__cup { width: 3em; height: 3em; }
html.m-mobile .cbn-champ__name { font-size: 1.8em; }
html.m-mobile .cbn-champ__road { grid-column: 2; grid-row: 1 / -1; margin: 0; width: 100%; }
html.m-mobile .cbn .cbn-road { align-items: center; min-height: var(--hit); box-sizing: border-box; padding: 0 .2em; }
html.m-mobile .cbn-teams { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5em; }
/* The sheet, sized for the short height: both rosters round the score on the left, each game in a
   column on the right (when any is played), Watch under the rosters. */
html.m-mobile .cbs { padding: .4em; }
html.m-mobile .cbs__box { width: 46em; column-gap: 1.6em; row-gap: .7em; padding: .7em 1em .9em; align-items: start; }
html.m-mobile .cbs__box.has-games { width: 68em; grid-template-columns: minmax(0, 1fr) 22em; }
html.m-mobile .cbs__head { grid-column: 1 / -1; }
html.m-mobile .cbs__box.has-games > .cbs__games { grid-column: 2; grid-row: 2 / span 2; padding: 0 0 0 1.2em; border-top: 0;
  border-left: 1px solid rgba(var(--brass-rgb), .18); }
html.m-mobile .cbs__vs, html.m-mobile .cbs__foot { grid-column: 1; }
html.m-mobile .cbs__mid .cbn-card__score b { font-size: 2.1em; }

/* WATCHING (vault 361). The eye: a small round brass button where a live series' connector meets
   (placed by the panel at the junction, centred on it), its count a tiny tab under it; the final's
   eye under the FINAL plate, with its count beside. */
.cb__eye { position: absolute; z-index: 1; width: 1.45em; height: 1.45em; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--brass-hi); background: radial-gradient(circle at 50% 35%, var(--navy-3), var(--navy-1));
  color: var(--brass-pale); cursor: var(--cur-hand, pointer); pointer-events: auto; box-shadow: 0 0 .5em rgba(var(--brass-rgb), .45);
  animation: cb-glow 1.8s ease-in-out infinite; }
.cb__half--l .cb__eye { transform: translate(-50%, -50%); }
.cb__half--r .cb__eye { transform: translate(50%, -50%); }
.cb__eye:hover, .cb__eye:focus-visible { color: #fff; border-color: var(--brass-pale); outline: none; }
.cb__eye-ic { width: 1em; height: 1em; display: block; }
.cb__eye-n { position: absolute; top: 100%; left: 50%; transform: translate(-50%, -.15em); padding: 0 .3em; border-radius: .5em;
  font-style: normal; font-size: .62em; line-height: 1.35; font-family: var(--face-ui); font-variant-numeric: tabular-nums;
  color: var(--navy-0); background: var(--brass-hi); white-space: nowrap; }
.cb__eye--final { position: relative; transform: none; width: auto; height: auto; border-radius: 1em; padding: .2em .7em; gap: .35em;
  display: inline-flex; align-items: center; }
.cb__eye--final .cb__eye-n { position: static; transform: none; font-size: .78em; }

/* Live now: every watchable series, one row each, over the board. */
.cb__head { flex-wrap: wrap; }
.cb__now { flex: 1 1 100%; display: flex; align-items: center; gap: .6em; min-width: 0; }
.cb__now-cap { display: inline-flex; align-items: center; gap: .4em; flex: none; color: var(--brass-hi); font-family: var(--face-ui);
  font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; }
.cb__dot { width: .5em; height: .5em; border-radius: 50%; background: #e2564b; box-shadow: 0 0 .5em #e2564b; animation: cb-pulse 1.4s ease-in-out infinite; }
.cb__now-list { display: flex; gap: .4em; overflow-x: auto; min-width: 0; padding-bottom: .15em; }
.cb__now-row { flex: none; display: inline-flex; align-items: center; gap: .55em; padding: .25em .6em; border-radius: .3em; cursor: var(--cur-hand, pointer);
  border: 1px solid rgba(var(--brass-rgb), .4); background: linear-gradient(var(--navy-3), var(--navy-2)); color: var(--ink-strong); }
.cb__now-row:hover { border-color: var(--brass-hi); }
.cb__now-round { font-size: .82em; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; }
.cb__now-teams { display: inline-flex; gap: .4em; align-items: baseline; }
.cb__now-teams b { font-weight: 400; color: var(--brass-pale); }
.cb__now-teams em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-strong); }
.cb__now-eye { display: inline-flex; align-items: center; gap: .25em; font-size: .82em; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.cb__now-eye .cb__eye-ic { width: 1.1em; height: 1.1em; }

/* THE WATCH SCREEN (panels/cup-watch.ts, `.win.cw`): a page (owner 2026-11-16, #538): the arena
   fills the whole stage, the strip and the tools laid over its top on a fading band, the state card
   over the arena when no game is on. The night's edge past the stage is the veil. */
.cw [hidden] { display: none !important; }
.wins > .scrim--cw { background: var(--navy-0); animation: cb-in .2s ease-out; }
.wins > .win.cw { inset: 0; width: auto; max-width: none; height: auto; max-height: none; min-width: 0; padding: 0;
  overflow: hidden; isolation: isolate; box-shadow: none; border: 0; border-radius: 0; background: var(--navy-0); animation: cb-in .2s ease-out; }
.wins > .win.cw::before, .wins > .win.cw::after { content: none; }
.cw__top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: .8em; padding: .9em 1.4em 2.2em;
  background: linear-gradient(rgba(6, 10, 20, .82), rgba(6, 10, 20, .45) 60%, transparent); pointer-events: none; }
.cw__top > * { pointer-events: auto; }
.cw__strip { text-shadow: 0 1px 0 rgba(0, 0, 0, .8); }
.cw__tools { align-items: center; }
.cw__strip { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1.1em; }
.cw__round { font-family: var(--face-display); color: var(--brass-hi); letter-spacing: .04em; text-transform: uppercase; }
.cw__round i { font-style: normal; font-family: var(--face-ui); text-transform: none; letter-spacing: 0; color: var(--ink-mute); font-size: .9em; }
.cw__score { display: inline-flex; align-items: baseline; gap: .6em; }
.cw__score b { font-weight: 400; color: var(--ink-strong); }
.cw__score b.is-win { color: var(--brass-pale); }
.cw__score em { font-style: normal; font-family: var(--face-display); font-size: 1.2em; color: var(--brass-pale); font-variant-numeric: tabular-nums; }
.cw__alive { font-family: var(--face-ui); font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.cw__live { display: inline-flex; align-items: center; gap: .4em; color: var(--brass-hi); font-family: var(--face-ui); font-size: var(--fs-sm);
  letter-spacing: .06em; text-transform: uppercase; }
.cw__live i { width: .55em; height: .55em; border-radius: 50%; background: #e2564b; box-shadow: 0 0 .5em #e2564b; animation: cb-pulse 1.4s ease-in-out infinite; }
.cw__tools { flex: none; display: flex; gap: .8em; }
.cw__view { position: absolute; inset: 0; overflow: hidden; background: var(--navy-0); }
.cw__stage { position: absolute; inset: 0; }
.cw__canvas { width: 100%; height: 100%; display: block; }
.cw__plates { position: absolute; inset: 0; overflow: hidden; }
/* A view smaller than the screen (the mini player, the page's column) draws its bodies smaller, so
   its numbers come down by the same share (cup-stage.ts sets --cw-fn; 1 on the big screen). On the
   row, inside the body numbers.ts animates. */
.cw__plates .fn__row { transform: scale(var(--cw-fn, 1)); transform-origin: 50% 0; }
.cw__card { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: .6em; padding: 1.5em;
  text-align: center; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(var(--navy-1-rgb), .92), rgba(var(--navy-1-rgb), .78)); }
.cw__msg { margin: 0; color: var(--ink-mute); }
.cw__big { margin: 0; font-family: var(--face-display); font-size: 1.6em; color: var(--brass-pale); text-shadow: 0 0 .6em rgba(var(--brass-rgb), .5); }
.cw__score-big { margin: 0; font-family: var(--face-display); font-size: 1.2em; color: var(--ink-strong); white-space: pre; }
.cw__others { display: grid; justify-items: center; gap: .4em; max-width: 100%; }
.cw__others .cb__now-cap { display: none; }
.cw__others .cb__now-list { flex-wrap: wrap; justify-content: center; }
.cw__closes { margin: 0; font-size: .85em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* The mini player: a small 16:9 arena in the lower right, above the hotbar's band so the fight's
   own controls stay clear; a tap on the arena or the arrows makes it big again. */
.cw-mini { position: absolute; right: 16px; bottom: 150px; width: 360px; z-index: 5; pointer-events: auto; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--brass); background: var(--navy-0); box-shadow: 0 6px 18px rgba(0, 0, 0, .55); }
.cw-mini[hidden] { display: none; }
.cw__mini-view { position: relative; aspect-ratio: 16 / 9; cursor: var(--cur-hand, pointer); }
/* Too small to read ten nameplates: the mini player shows the bodies and the numbers only. */
.cw-mini .cb-plate { display: none; }
.cw__mini-bar { display: flex; align-items: center; gap: .5em; padding: 4px 6px 4px 10px; font-size: 13px;
  background: linear-gradient(var(--navy-3), var(--navy-2)); border-top: 1px solid rgba(var(--brass-rgb), .4); }
.cw__mini-strip { flex: 1; min-width: 0; display: flex; gap: .5em; align-items: baseline; overflow: hidden; white-space: nowrap; }
.cw__mini-strip b { font-weight: 400; color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; }
.cw__mini-strip em { font-style: normal; color: var(--brass-pale); font-variant-numeric: tabular-nums; }
.cw__mini-btn { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; cursor: var(--cur-hand, pointer);
  border: 1px solid rgba(var(--brass-rgb), .5); background: var(--navy-1); color: var(--brass-pale); font-size: 14px; line-height: 1; }
.cw__mini-btn:hover { border-color: var(--brass-hi); color: #fff; }

/* Mobile mode: the big screen is the whole frame; the mini player a small dock in the upper right. */
html.m-mobile .cw__top { padding: .5em .8em 1.6em; gap: .5em; }
html.m-mobile .cw-mini { top: 64px; bottom: auto; right: 8px; width: 220px; }
html.m-mobile .cw__mini-bar { font-size: 12px; padding: 3px 4px 3px 8px; }

/* The champions (cupPodium): the window a tap on the monument opens. One section per place, the
   label in its medal colour, teams side by side (the two 3rd places), the leader first under a crown. */
.cp__box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 30em; }
.cp__day, .cp__place--3 { grid-column: 1 / -1; }
.cp__day { color: var(--ink-mute); font-size: .9em; text-align: center; }
.cp__place { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--panel-2, rgba(0,0,0,.18)); }
.cp__label { font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.cp__place--1 .cp__label, .cp__place--1 .cp__crown { color: #f6ce64; }
.cp__place--2 .cp__label, .cp__place--2 .cp__crown { color: #d6dae4; }
.cp__place--3 .cp__label, .cp__place--3 .cp__crown { color: #e8a06e; }
.cp__teams { display: flex; gap: 16px; }
.cp__team { flex: 1; min-width: 0; }
.cp__name { font-weight: 700; color: var(--brass-hi); font-size: 1.08em; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp__members { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.cp__members li { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp__members li.is-lead { font-weight: 700; }
.cp__crown { font-style: normal; margin-right: 4px; }
/* Mobile mode: a wider box, larger type, the two halves of the frame's height. */
html.m-mobile .wins > .win.cp { width: 30em; }
html.m-mobile .cp__box { max-height: calc(var(--stage-h) - 72px); font-size: 1.05em; }

/* My team (panels/cup-team.ts): the card above the bracket. The head names the team and how many
   are online; the status line glows brass while a game waits or is played; the seats in lane
   order, an offline one dimmed; the leader's lane arrows at the row's end. */
.cup-team { padding: 8px 10px; border: 1px solid rgba(var(--brass-rgb), .32); border-radius: .5em;
  background: rgba(var(--shadow-ink), .18); display: grid; gap: 6px; }
.cup-team__head { display: flex; align-items: baseline; gap: .6em; }
.cup-team__head b { color: var(--brass-hi); font-family: var(--face-ui); letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-sm); }
.cup-team__name { color: var(--ink-strong); }
.cup-team__on { margin-left: auto; color: var(--ink-mute); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.cup-team__vs, .cup-team__line { margin: 0; }
.cup-team__line { font-variant-numeric: tabular-nums; }
.cup-team__line.is-hot { color: var(--brass-pale); }
.cup-team__line.is-gold { color: #f6ce64; }
.cup-team__ready { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; }
.cup-team__flag { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-mute); font-size: var(--fs-sm); }
.cup-team__flag.is-on { border-color: rgba(var(--brass-rgb), .6); color: var(--brass-pale); }
.cup-team__lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cup-team__seat { display: flex; align-items: center; gap: .6em; padding: 2px 4px; border-radius: 4px; background: rgba(var(--ink-wash), .05); }
.cup-team__seat.is-off { opacity: .55; }
.cup-team__lane { flex: none; width: 4.5em; color: var(--ink-mute); font-size: var(--fs-sm); }
.cup-team__who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-team__lv, .cup-team__off { flex: none; color: var(--ink-mute); font-size: var(--fs-sm); }
.cup-team__mv { flex: none; display: flex; gap: 2px; }
.cup-team__acts { display: flex; gap: .6em; justify-content: flex-end; }

/* The clock over a Cup game of mine (cupClock): a small plate under the top edge of the HUD's
   stage, the minutes left large. */
.ct-clock { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); z-index: 5; pointer-events: none;
  display: flex; align-items: baseline; gap: .7em; padding: 4px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap;
  background: linear-gradient(var(--navy-3), var(--navy-2)); border: 1px solid rgba(var(--brass-rgb), .5); color: var(--ink-strong); }
.ct-clock__head, .ct-clock__cap { color: var(--ink-mute); }
.ct-clock__left { color: var(--brass-pale); font-size: 16px; font-variant-numeric: tabular-nums; }
html.m-mobile .ct-clock { top: 64px; font-size: 12px; gap: .5em; padding: 3px 10px; }
html.m-mobile .ct-clock__cap { display: none; }

/* ---- w-dealer.css */
/* THE PET DEALER (panels/pet-dealer/*, `.win.pdw[data-win=petdealer]`, P27) and the growth table a
   fusion leaves (`.win.pgw[data-win=petgrowth]`). 20-components.css draws every part (tabs, tile, band,
   row, well, note line); this sheet lays them out and draws the bench diagram (moved here from
   20-components.css's Fusion block). Tokens only. */

.pdw [hidden], .pgw [hidden] { display: none !important; }
.wins > .win.pdw > .win__body { display: flex; flex-direction: column; gap: .6em; min-height: 0; }
/* One height whatever the page (no jump on a tab press), ending above the hotbar's band; the page
   scrolls inside it. */
html.m-desktop .wins > .win.pdw { height: 40em; }
.pdw .tabs.is-dim, .pdw .tabs__tab.is-dim { opacity: .55; }
/* nine pages in one strip: each tab as wide as its own words (not an equal share, which cut
   "Stone Combination" over "Starforge Transfer", QA 2026-11-06), a little smaller type */
.pdw .tabs--block .tabs__tab { flex: 1 1 auto; min-width: 0; padding-inline: .7em; white-space: nowrap; font-size: .92em; }

.pdw__page { display: grid; gap: .6em; align-content: start; min-width: 0; }
.pdw__bench { display: grid; grid-template-columns: minmax(0, 26em) minmax(0, 1fr); gap: .9em; align-items: start; min-width: 0; }
.pdw__side { display: grid; gap: .55em; align-content: start; min-width: 0; }
.pdw__side > .well { display: grid; gap: .35em; }
.pdw__cap { display: flex; align-items: baseline; gap: .5em; }
.pdw__capn { color: var(--ink-mute); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.pdw__picker { grid-template-columns: repeat(auto-fill, var(--tile)); justify-content: start; }
.pdw__picker .tile[data-pid] { cursor: var(--cur-hand, pointer); }
/* A pet already on the bench: dimmed and ticked by its frame, still pickable to move it. */
.pdw__picker .tile.pdw__used { opacity: .45; }
/* Fusion's picker: Pet Slot's pets then the pen's, in one box that takes what the bench leaves of
   the window and scrolls inside it (never the window past the frame); at least one row of faces. */
.pdw__fusion { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.pdw__fusion > .pdw__bench { flex: none; }
.pdw__pool { --fade: .6em; flex: 1 1 auto; min-height: calc(var(--tile) + 2 * var(--fade)); display: grid; gap: .5em; align-content: start; overscroll-behavior: contain; }
.pdw__pool-sec { display: grid; gap: .3em; min-width: 0; }
.pdw__stones { --cols: 6; justify-content: start; }
.pdw__stones .tile { cursor: var(--cur-hand, pointer); }
.pdw__recipes .item-row { cursor: var(--cur-hand, pointer); }
.pdw__list { max-height: 16em; }
.pdw__sets { display: grid; gap: .7em; }
.pdw__set { display: grid; gap: .35em; }
.pdw__cards { --cols: 8; justify-content: start; }
.pdw .btn.is-dim { opacity: .55; }
.pdw__bench--album { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.pdw__extract { display: grid; justify-items: center; gap: .3em; padding: .6em 1em; cursor: var(--cur-hand, pointer); }

/* Each page's foot: its own line (a refusal, else what the bench still needs) and its commit. */
.pdw .win__foot { gap: .6em; }
.pdw__foot { display: flex; align-items: center; gap: .6em; flex: 1; min-width: 0; }
.pdw__foot > .note-line { flex: 1; min-width: 0; }
.pdw__foot > .btn { margin-left: auto; flex: none; }

/* ---------------------------------------------------------------- THE BENCH DIAGRAM
   Four corners (two above, two below) and the middle across the centre row, with the energy
   running from the four into the one: what fusion (and a stone combination) does, said once. The
   three rows are one height each, so the lines (drawn once in the diagram's own 0..100 box,
   kit.ts) meet the tiles at any width. */
.fuse {
  position: relative; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, 5.4em);
  place-items: center; gap: .4em 3em; padding: .8em 1.2em;
  border: 1px solid var(--hairline); border-radius: .5em; background: var(--paper-2);
}
.fuse__node { position: relative; display: grid; justify-items: center; gap: .25em; min-width: 0; max-width: 100%; cursor: var(--cur-hand, pointer); }
.fuse__node--major { grid-column: 1 / -1; grid-row: 2; }
.fuse__node--nw { grid-column: 1; grid-row: 1; }
.fuse__node--ne { grid-column: 2; grid-row: 1; }
.fuse__node--sw { grid-column: 1; grid-row: 3; }
.fuse__node--se { grid-column: 2; grid-row: 3; }
.fuse__node.is-over .tile { box-shadow: 0 0 0 2px var(--fuse-glow); }
.fuse__seat { position: relative; display: grid; }
.fuse__role { font-size: var(--fs-sm); color: var(--ink-mute); max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fuse__node--major .fuse__role:not([class*="card__title--"]) { color: var(--brass); }

.fuse__energy { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; fill: none; stroke-linecap: round; }
.fuse__energy-base { stroke: var(--fuse-ink); stroke-width: 2; opacity: .3; }
.fuse__energy-flow {
  stroke: var(--fuse-ink); stroke-width: 2; stroke-dasharray: 8 22;
  filter: drop-shadow(0 0 3px var(--fuse-glow));
  animation: fuse-flow 1.2s linear infinite;
}
@keyframes fuse-flow { to { stroke-dashoffset: -30; } }
/* The charge: the second between the confirm and the send, the energy racing into the middle. */
.fuse.is-charging .fuse__energy-flow { stroke: var(--fuse-glow); stroke-width: 3; animation-duration: .35s; }
.fuse.is-charging .fuse__node--major .fuse__aura { filter: drop-shadow(0 0 6px var(--fuse-glow)); }
/* The bolts: one per FILLED corner, racing its line into the middle again and again while the charge
   lasts; the sacrifices drain and the Major swells as it takes them in. */
.fuse__comet {
  stroke: var(--fuse-glow); stroke-width: 5; stroke-dasharray: 18 120; stroke-dashoffset: 18; opacity: 0;
  filter: drop-shadow(0 0 6px var(--fuse-glow)) drop-shadow(0 0 2px #fff);
}
.fuse.is-charging .fuse__comet { animation: fuse-comet .55s cubic-bezier(.5, 0, .9, .6) infinite; }
.fuse.is-charging .fuse__comet.is-full { opacity: 1; }
@keyframes fuse-comet { from { stroke-dashoffset: 18; } to { stroke-dashoffset: -100; } }
.fuse.is-charging .fuse__node:not(.fuse__node--major).is-full .tile { filter: brightness(.6) saturate(.5); transition: filter .9s ease-in; }
.fuse.is-charging .fuse__node--major .fuse__seat { animation: fuse-take .55s ease-in-out infinite; }
@keyframes fuse-take { 50% { transform: scale(1.08); filter: drop-shadow(0 0 10px var(--fuse-glow)) brightness(1.25); } }

/* The ring around a filled node: the same two layers at tile scale. Off on an empty node. */
.fuse__aura { position: absolute; left: -.18em; top: -.18em; width: calc(100% + .36em); height: calc(100% + .36em); overflow: visible; pointer-events: none; fill: none; }
.fuse__aura-base { stroke: var(--fuse-ink); stroke-width: 1; opacity: .4; }
.fuse__aura-flow {
  stroke: var(--fuse-ink); stroke-width: 1.6; stroke-dasharray: 16 34;
  filter: drop-shadow(0 0 3px var(--fuse-glow));
  animation: fuse-orbit 2.4s linear infinite;
}
.fuse__node--major .fuse__aura-base { opacity: .7; stroke-width: 1.5; }
.fuse__node--major .fuse__aura-flow { stroke-width: 2; }
@keyframes fuse-orbit { to { stroke-dashoffset: -100; } }
.fuse__node:not(.is-full) .fuse__aura { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .fuse__energy-flow, .fuse__aura-flow, .fuse.is-charging .fuse__comet, .fuse.is-charging .fuse__node--major .fuse__seat { animation: none; }
  .fuse.is-charging .fuse__comet { stroke-dashoffset: -41; }
}

/* ---------------------------------------------------------------- THE GROWTH TABLE */
.pgw__who { display: flex; align-items: center; gap: .6em; }
.pgw__who > b { font-family: var(--face-ui); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.pgw__rows { display: grid; gap: .2em; }
.pgw__row { display: grid; grid-template-columns: 1.4em 3.5em 1em 3.5em 3em; align-items: center; gap: .5em; padding: .15em .4em; border-radius: .3em; font-variant-numeric: tabular-nums; }
.pgw__row.is-on { background: var(--row-on); }
.pgw__ic { width: 1.3em; height: 1.3em; object-fit: contain; }
.pgw__n { text-align: right; }
.pgw__to { width: .9em; height: .9em; opacity: .6; }
.pgw__d { color: var(--green); text-align: right; }
.pgw__d--down { color: var(--error); }
.pgw .win__foot { justify-content: flex-end; }
/* The costume growth table (costume-growth.ts): a stat's name in the first column, not a picture. */
.pgw--costume .pgw__who > .tile { flex: none; }
.pgw--costume .pgw__who > .pill { flex: none; }
.pgw--costume .pgw__row { grid-template-columns: minmax(0, 1fr) 4.2em 1em 4.2em 4em; }
.pgw__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }

/* MOBILE MODE: the counter is the whole sheet; the bench and its side stay two columns (the short
   height is the constraint), the picker under them, rows and tiles a finger's size. */
/* Its own desktop width (owner, 2026-10-11: no full-width blocks). */
html.m-mobile .wins > .win.pdw { max-height: calc(var(--stage-h) - 16px); }
/* With Pet Slot up beside it (Pet Room, Fusion), the pair shares the sheet: the counter 45.5em, Pet
   Slot 32.5em, a pet dragged straight across (index.ts moves the counter to the left edge). */
html.m-mobile .wins.has-pets > .win.pdw { width: 45.5em; }
html.m-mobile .wins.has-petdealer > .win.petw { width: 32.5em; }
html.m-mobile .wins > .win.pdw > .win__body { gap: .45em; }
/* The diagram is a picture of four into one, not a form: it takes the narrower column, its rows and
   gaps tight, its names a size down; the side - the numbers and the choices - gets the room
   (owner, 2026-10-11: the bench looked forced, all air round the diagram). */
html.m-mobile .pdw__bench { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .5em; }
html.m-mobile .fuse { grid-template-rows: repeat(3, 3.9em); gap: .1em 1em; padding: .35em .6em; }
html.m-mobile .fuse__role { font-size: var(--fs-xs); max-width: 8em; }
html.m-mobile .pdw__side { gap: .4em; }
html.m-mobile .pdw__side > .well { padding: .4em .6em; gap: .25em; }
html.m-mobile .pdw__recipes .item-row { min-height: var(--touch); }
html.m-mobile .pdw__foot > .btn { min-height: var(--touch); }

/* COSTUME FUSION (panels/pet-dealer/costume.ts): laid out as Fusion is (the diagram, the side, the
   picker under them); the costumes on hand are the picker's faces, a picked one lit by the tile's own
   `on` and dimmed like a pet already on the bench. */
.cfw__grid .tile { position: relative; cursor: var(--cur-hand, pointer); }
.cfw__grid .tile .pill { position: absolute; right: -.2em; bottom: -.2em; font-size: .75em; padding: 0 .3em; }
/* Packed tight (owner, 2026-11-02): a shorter diagram, the boosters on their caption's line, and on
   the costume tabs the window is as tall as its page (index.ts .pdw--fit), never past the counter's
   usual height (40em at the design size; the stage scales it, P17); the picker scrolls inside it
   when the costumes outgrow it. */
html.m-desktop .wins > .win.pdw.pdw--fit { height: auto; max-height: 40em; }
.pdw--fit .pdw__pool { min-height: calc(var(--tile) + 2 * var(--fade)); }
.cfw .fuse { grid-template-rows: repeat(3, 4.4em); gap: .1em 2em; padding: .45em .8em; }
.cfw .pdw__side { gap: .4em; }
.cfw__boostline { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .6em; min-width: 0; }
.cfw__boostline > .pdw__cap { flex: none; }
.cfw .band[data-tip-text] { cursor: var(--cur-arrow); }
html.m-mobile .cfw .fuse { grid-template-rows: repeat(3, 3.6em); }
/* The booster input: its slot row (a press empties it), then every booster with what the bag holds. */
.cfw__side .item-row .tile { cursor: var(--cur-hand, pointer); }
.cfw__side .item-row.is-dim { opacity: .55; }
.cfw__boost { --cols: 6; justify-content: start; }
.cfw__boost .tile { position: relative; cursor: var(--cur-hand, pointer); }
.cfw__boost .tile .pill { position: absolute; right: -.2em; bottom: -.2em; font-size: .75em; padding: 0 .3em; }

/* STAR TRANSFER (panels/pet-dealer/costume-transfer.ts), after a retail refine-transfer screen: the
   stars after the transfer on a pill, two magic circles joined by an arrow, the Gold under them. */
.cst { gap: .5em; }
.cst__head {
  align-self: center; padding: .25em 1.2em; border-radius: 999px; cursor: var(--cur-arrow);
  background: linear-gradient(90deg, transparent, var(--paper-2) 15%, var(--paper-2) 85%, transparent);
  border: 1px solid var(--hairline); font-family: var(--face-ui); color: var(--brass); font-variant-numeric: tabular-nums;
}
/* Starforge Transfer's pill carries its `?` (#547) after the words */
.cst__head--help { display: flex; align-items: center; gap: .5em; }
.cst__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(3em, 7em) minmax(0, 1fr); align-items: center; gap: .4em; justify-items: center; }
.cst__end { display: grid; justify-items: center; gap: .3em; min-width: 0; max-width: 100%; }
.cst__circle {
  position: relative; display: grid; place-items: center; width: 8.5em; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--hairline);
  background: radial-gradient(circle, color-mix(in srgb, var(--fuse-glow) 14%, transparent) 0 38%, transparent 39%),
    repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--fuse-ink) 30%, transparent) 0 2deg, transparent 2deg 15deg);
  box-shadow: inset 0 0 0 .55em var(--paper), inset 0 0 0 .6em var(--hairline), 0 0 1.2em color-mix(in srgb, var(--fuse-glow) 18%, transparent);
}
.cst__seat { position: relative; display: grid; }
.cst__seat .tile { cursor: var(--cur-hand, pointer); }
.cst__x { position: absolute; right: -.7em; top: -.7em; }
.cst__stars { position: absolute; left: 50%; bottom: -.6em; transform: translateX(-50%); font-size: .8em; }
.cst__name { font-size: var(--fs-sm); max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cst__name.is-empty { color: var(--ink-mute); white-space: normal; text-align: center; }
.cst__arrow { position: relative; width: 100%; height: .5em; border-radius: .25em; background: linear-gradient(90deg, transparent, var(--fuse-ink)); }
.cst__arrow::after {
  content: ""; position: absolute; right: -.5em; top: 50%; transform: translateY(-50%);
  border: .7em solid transparent; border-left: .9em solid var(--fuse-ink); border-right: 0;
}
.cst__mats { display: grid; justify-items: center; gap: .35em; }
.cst__cap { display: flex; align-items: center; gap: .6em; }
.cst__orn { width: 4em; height: 1px; background: linear-gradient(90deg, transparent, var(--hairline)); }
.cst__orn--r { background: linear-gradient(90deg, var(--hairline), transparent); }
.cst__mat { padding: .35em .7em; border: 1px solid var(--hairline); border-radius: .4em; background: var(--paper-2); }
html.m-mobile .cst__circle { width: 6.4em; }
/* Starforge Transfer: each pet's whole Starforge under its circle (owner, 2026-11-04). */
.cst.pdw__fusion .cst__stars { white-space: nowrap; }
.cst__forge { display: grid; gap: .25em; width: min(17em, 100%); padding: .4em .5em; border: 1px solid var(--hairline); border-radius: .4em; background: var(--paper-2); font-size: var(--fs-sm); }
.cst__forge[hidden] { display: none; }
.cst__forgehead { text-align: center; color: var(--gold, #e8c872); font-weight: 600; }
.cst__forgelines:empty { display: none; }
.cst__forgelines .pew__band { font-size: .9em; }
.cst__forge.is-replaced { border-color: var(--error); }
.cst__forge.is-replaced .cst__forgehead { color: var(--error); }
.cst__forge.is-replaced .cst__forgelines { opacity: .5; text-decoration: line-through; }


/* ---- w-door.css */
/* THE DOORKEEPER (instance-entry.ts, `.win.door[data-win=instance]`, P32): the day's entries in the
   band, the zone's plate and name beside its facts, the reward paths (a wrapping text strip with the
   picks left as a pill), what the path pays (a grade line, quality dots on the equip painting, the
   goods' tiles two shelves deep at most), the no-key warning, the skip's roster (a name and three
   paintings, dark when not ready) and the refusal line. Placed by gui/win.ts; moved from 25-card.css.
   Tokens only. */
.door [hidden] { display: none !important; }
.wins > .win.door > .win__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7em; align-content: start; min-width: 0; }
.door .band__num { font-variant-numeric: tabular-nums; }

/* The plate and its name, beside the facts. A grid item's automatic minimum is its content: every
   column says min-width 0, and a long value falls under its own label rather than out of the frame. */
.door__top { display: grid; grid-template-columns: 13.6em minmax(0, 1fr); gap: .8em; align-items: start; min-width: 0; }
.door__pic { display: grid; gap: .4em; justify-items: center; min-width: 0; }
.door__pic > .well { display: grid; justify-items: center; }
.door__plate { display: block; width: 12em; height: 8.2em; object-fit: cover; }
.door .kv { min-width: 0; }
.door .kv > div { flex-wrap: wrap; }
/* The facts and, on a door whose dungeon has a fastest-time board, the Leaderboard button under them. */
.door__facts { display: grid; gap: .6em; justify-items: start; min-width: 0; }
.door__facts > .kv { justify-self: stretch; }

.door__types, .door__loot, .door__skip { display: grid; gap: .5em; min-width: 0; }
.door__head { display: flex; align-items: center; gap: .5em; }
.door__head > .pill { font-variant-numeric: tabular-nums; }
.door .tabs--block { flex-wrap: wrap; }
.door .tabs--text .tabs__tab { min-width: 5.6em; padding: 0 1.1em; }

/* The goods: tiles in a wrapping shelf, the card names each one. */
.door__goods { display: flex; flex-wrap: wrap; gap: .35em; }
.door__gear { position: relative; display: inline-grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: .3em; background: rgba(var(--ink-wash), .06); box-shadow: inset 0 0 0 1px var(--hairline); }
.door__gear > img.g { width: 1.7em; height: 1.7em; object-fit: contain; }
.door__gear::after { content: ""; position: absolute; right: .2em; bottom: .2em; width: .6em; height: .6em; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--win-rim); }
.door__gear[data-q="green"]::after { background: var(--world-q-green); }
.door__gear[data-q="blue"]::after { background: var(--world-q-blue); }
.door__gear[data-q="yellow"]::after { background: var(--world-q-yellow); }
.door__gear[data-q="gold"]::after { background: var(--world-q-gold); }
.door__gear[data-q="purple"]::after { background: var(--world-q-purple); }
.door__gear[data-q="prism"]::after { background: var(--rarity-prism); }

/* The skip's roster: who, then a ticket, a clear and a key, lit when ready. */
.door__crew { display: grid; gap: .25em; }
.door__member { display: flex; align-items: center; gap: .5em; }
.door__who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.door__mark { flex: none; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; }
.door__mark > img.g { width: 1.4em; height: 1.4em; object-fit: contain; }
.door__mark > .ico { --ico-box: 1.4em; }
.door__mark.is-off { opacity: .35; filter: grayscale(1); }
/* The crew walking in: nick, entries left, picks left, key; orange where it costs the party. */
.door__party { display: grid; gap: .35em; min-width: 0; }
.door__crewtbl { --cols: minmax(0, 1fr) auto auto auto; }
.door__crewtbl--nopick { --cols: minmax(0, 1fr) auto auto; }
.door__crewtbl .table__row > * { padding: .4em .5em; }
.door__crewtbl .is-out, .door__warn { color: var(--orange); }
.door__warn { font-size: var(--fs-small); line-height: 1.35; }

.door .win__foot > .door__gap { flex: 1; }

html.m-mobile .door__top { grid-template-columns: 10em minmax(0, 1fr); }
html.m-mobile .door__plate { width: 9em; height: 6.2em; }

/* ---- w-ev-boss.css */
/* THE WORLD BOSS MILESTONES in the Event Center (panels/ev-boss.ts), under .evw__body[data-kind=boss].
   Minimal (owner, 2026-11-01): no framed panels. Top, the server total (the one big number). Then the
   road: a track through one node per tier and the peak, evenly spaced (--n steps, ev-boss.ts), filled
   tier by tier; under each node its target, its goods, and its Claim or one quiet word. At the foot,
   the share in one line. Reached steps light in the card's accent; a claimable one glows. */
.evw__body[data-kind="boss"] .wbv [hidden] { display: none !important; }
.evw__body[data-kind="boss"] .wbv {
  flex: 1; min-height: 0; min-width: 0; overflow-y: auto; scrollbar-width: thin;
  display: flex; flex-direction: column; justify-content: center; gap: 2.4em; padding: .4em .2em;
}

/* ---- the server total */
.evw__body[data-kind="boss"] .wbv__top { display: flex; align-items: center; justify-content: center; gap: .55em; }
.evw__body[data-kind="boss"] .wbv__top > .wb-soul { width: 2em; height: 2em; }
.evw__body[data-kind="boss"] .wbv__total {
  font-family: var(--face-display); font-size: calc(var(--win-size) * 2.4); line-height: 1; color: var(--ink-strong);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 .6em rgba(var(--acc-rgb), .45);
}
.evw__body[data-kind="boss"] .wbv__top > small { align-self: flex-end; padding-bottom: .25em; font-size: var(--fs-small); color: var(--ink-mute); }

/* ---- the road */
.evw__body[data-kind="boss"] .wbv__road { --node: 2.3em; position: relative; }
.evw__body[data-kind="boss"] .wbv__track {         /* node centre to node centre */
  position: absolute; top: calc(var(--node) / 2); left: calc(50% / var(--n)); right: calc(50% / var(--n));
  height: 3px; translate: 0 -50%; border-radius: 3px; background: rgba(var(--sky-rgb), .16); overflow: hidden;
}
.evw__body[data-kind="boss"] .wbv__fill {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(var(--acc-rgb), .6), rgb(var(--acc-rgb)));
  box-shadow: 0 0 .5em rgba(var(--acc-rgb), .8); transition: transform .4s ease-out;
}
.evw__body[data-kind="boss"] .wbv__steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.evw__body[data-kind="boss"] .wbv__step { display: flex; flex-direction: column; align-items: center; gap: .5em; min-width: 0; padding: 0 .3em; text-align: center; }
.evw__body[data-kind="boss"] .wbv__node {
  display: grid; place-items: center; box-sizing: border-box; width: var(--node); height: var(--node); border-radius: 50%;
  font-family: var(--face-display); font-size: var(--fs-heading); color: var(--ink-mute);
  background: var(--navy-0); box-shadow: 0 0 0 2px rgba(var(--sky-rgb), .22);
}
.evw__body[data-kind="boss"] .wbv__at { font-size: var(--fs-small); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.evw__body[data-kind="boss"] .wbv__goods { display: flex; flex-wrap: wrap; justify-content: center; gap: .35em; min-height: 3.6em; }
.evw__body[data-kind="boss"] .wbv__state { min-height: 2.2em; display: grid; place-items: center; }
.evw__body[data-kind="boss"] .wbv__word { font-size: var(--fs-small); color: var(--ink-mute); white-space: nowrap; }
.evw__body[data-kind="boss"] .wbv__state .btn { white-space: nowrap; }
/* Reached: the node filled in the accent, the target in it too. */
.evw__body[data-kind="boss"] .wbv__step:not([data-state="locked"]) .wbv__node {
  color: var(--navy-0); background: rgb(var(--acc-rgb)); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .35), 0 0 .8em rgba(var(--acc-rgb), .6);
}
.evw__body[data-kind="boss"] .wbv__step:not([data-state="locked"]) .wbv__at { color: rgb(var(--acc-rgb)); }
.evw__body[data-kind="boss"] .wbv__step[data-state="claimable"] .wbv__node { animation: wbv-ready 1.8s ease-in-out infinite; }
.evw__body[data-kind="boss"] .wbv__step[data-state="done"] .wbv__goods .tile { opacity: .55; filter: saturate(.4); }
.evw__body[data-kind="boss"] .wbv__step.is-peak .wbv__node { color: var(--brass-pale); box-shadow: 0 0 0 2px rgba(var(--brass-rgb), .55); }
@keyframes wbv-ready { 50% { box-shadow: 0 0 0 .3em rgba(var(--acc-rgb), .3), 0 0 1.4em rgba(var(--acc-rgb), .9); } }

/* ---- the share, one line at the foot */
.evw__body[data-kind="boss"] .wbv__mine {
  display: flex; align-items: center; gap: .9em; flex-wrap: wrap; margin: 0 auto; width: min(100%, 40em); box-sizing: border-box;
  padding: .8em 1em; border-radius: .6em; background: rgba(var(--navy-0-rgb), .4);
}
.evw__body[data-kind="boss"] .wbv__kicker { font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--acc-rgb)); }
.evw__body[data-kind="boss"] .wbv__pct { font-family: var(--face-display); font-size: var(--fs-title); color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.evw__body[data-kind="boss"] .wbv__mine > .bar { flex: 1 1 10em; min-width: 8em; }
.evw__body[data-kind="boss"] .wbv__tries { display: flex; align-items: center; gap: .5em; }
.evw__body[data-kind="boss"] .wbv__tries > small, .evw__body[data-kind="boss"] .wbv__lv { font-size: var(--fs-small); color: var(--ink-mute); }
.evw__body[data-kind="boss"] .wbv__tries .wb-pip { width: .8em; height: .8em; }
.evw__body[data-kind="boss"] .wbv__lv { color: var(--ember-300); }

/* ---- mobile mode (a landscape phone: the height is the constraint): the same road, tighter; the
   total smaller; Claim at 44 px */
html.m-mobile .evw__body[data-kind="boss"] .wbv { gap: .9em; padding: .2em 0; }
html.m-mobile .evw__body[data-kind="boss"] .wbv__goods .tile { font-size: .9em; }
html.m-mobile .evw__body[data-kind="boss"] .wbv__top > .wb-soul { width: 1.4em; height: 1.4em; }
html.m-mobile .evw__body[data-kind="boss"] .wbv__total { font-size: var(--fs-title); }
html.m-mobile .evw__body[data-kind="boss"] .wbv__road { --node: 1.9em; }
html.m-mobile .evw__body[data-kind="boss"] .wbv__step { gap: .3em; padding: 0 .15em; }
html.m-mobile .evw__body[data-kind="boss"] .wbv__node { font-size: 1em; }
html.m-mobile .evw__body[data-kind="boss"] .wbv__at, html.m-mobile .evw__body[data-kind="boss"] .wbv__word { font-size: var(--fs-badge); }
html.m-mobile .evw__body[data-kind="boss"] .wbv__goods { min-height: 0; }
html.m-mobile .evw__body[data-kind="boss"] .wbv__state .btn { min-height: var(--hit); }
html.m-mobile .evw__body[data-kind="boss"] .wbv__mine { gap: .5em .7em; padding: .35em .6em; }
html.m-mobile .evw__body[data-kind="boss"] .wbv__pct { font-size: var(--fs-heading); }

.evw__slot > .btn { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .evw__body[data-kind="boss"] .wbv__fill { transition: none; }
  .evw__body[data-kind="boss"] .wbv__step[data-state="claimable"] .wbv__node { animation: none; }
}

/* ---- w-ev-journey.css */
/* TAMER'S JOURNEY view inside the Event Center (panels/ev-journey.ts), under .evw__body[data-kind=journey].
   Minimal (owner, 2026-11-01): left the ladder on the window's ground, one frameless row per level
   gift (the level, the name and where it stands, the goods, a check once received), hairlines
   between; the next one lit in the accent. Right, on the Event Center's quiet side ground, the
   focal point: the next gift (kicker, name, level, its goods large, the climb) and the count received
   under it. The rules are behind the head's ?, the mailbox beside it. The ladder scrolls; the side never. */
.evw__body[data-kind="journey"] .jrv [hidden] { display: none !important; }
.evw__body[data-kind="journey"] .jrv {
  flex: 1; min-height: 0; min-width: 0;
  display: grid; gap: 1.2em;
  grid-template-columns: minmax(0, 1fr) 17em; grid-template-rows: minmax(0, 1fr);
}

/* ---- the ladder */
.evw__body[data-kind="journey"] .jrv__ladder {
  min-height: 0; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
.evw__body[data-kind="journey"] .jrv__rung {
  position: relative; flex: none; display: grid; align-items: center; gap: .9em;
  grid-template-columns: 2.6em minmax(6em, 1fr) auto 1.2em;
  padding: .55em .6em; border-radius: .5em;
  border-bottom: 1px solid var(--hairline);
}
.evw__body[data-kind="journey"] .jrv__rung:last-child { border-bottom: 0; }
.evw__body[data-kind="journey"] .jrv__lvbox { display: grid; justify-items: center; line-height: 1; color: var(--ink-mute); }
.evw__body[data-kind="journey"] .jrv__lvbox > small { font-size: var(--fs-badge); letter-spacing: .08em; }
.evw__body[data-kind="journey"] .jrv__lv { font-family: var(--face-display); font-size: var(--fs-title); color: var(--ink); }
.evw__body[data-kind="journey"] .jrv__text { display: grid; gap: .15em; min-width: 0; }
.evw__body[data-kind="journey"] .jrv__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.evw__body[data-kind="journey"] .jrv__status { font-size: var(--fs-small); color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evw__body[data-kind="journey"] .jrv__items { display: flex; gap: .25em; justify-content: flex-end; }
.evw__body[data-kind="journey"] .jrv__next .jrv__items { flex-wrap: wrap; }
.evw__body[data-kind="journey"] .jrv__check { width: 1.1em; height: 1.1em; justify-self: center; }

.evw__body[data-kind="journey"] .jrv__rung[data-state="sent"] { opacity: .6; }
.evw__body[data-kind="journey"] .jrv__rung[data-state="sent"] .jrv__items .tile { filter: saturate(.4); }
.evw__body[data-kind="journey"] .jrv__rung[data-state="sent"] .jrv__check {
  background: var(--brass-hi);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.evw__body[data-kind="journey"] .jrv__rung[data-state="owed"] .jrv__status { color: rgb(var(--acc-rgb)); }
.evw__body[data-kind="journey"] .jrv__rung[data-state="next"] {
  border-bottom-color: transparent;
  background: linear-gradient(90deg, rgba(var(--acc-rgb), .2), rgba(var(--acc-rgb), .04));
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .7);
}
.evw__body[data-kind="journey"] .jrv__rung[data-state="next"] :is(.jrv__lv, .jrv__status) { color: rgb(var(--acc-rgb)); }
.evw__body[data-kind="journey"] .jrv__rung[data-state="locked"] :is(.jrv__name, .jrv__lv) { color: var(--ink-mute); }
.evw__body[data-kind="journey"] .jrv__rung[data-state="locked"] .jrv__items .tile { opacity: .75; }

/* ---- the side: the next gift, the tally */
.evw__body[data-kind="journey"] .jrv__side {
  min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 1.4em;
  padding: 1.2em 1.1em; border-radius: .6em; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(var(--acc-rgb), .16), transparent 62%), rgba(var(--navy-0-rgb), .4);
}
.evw__body[data-kind="journey"] .jrv__next { display: grid; justify-items: center; gap: .5em; }
.evw__body[data-kind="journey"] .jrv__kicker {
  display: flex; align-items: center; gap: .4em; font-size: var(--fs-small); letter-spacing: .06em;
  text-transform: uppercase; color: rgb(var(--acc-rgb));
}
.evw__body[data-kind="journey"] .jrv__kicker > img.g { width: 1.1em; height: 1.1em; object-fit: contain; }
.evw__body[data-kind="journey"] .jrv__nextname { font-size: var(--fs-heading); color: var(--ink-strong); }
.evw__body[data-kind="journey"] .jrv__nextat { font-size: var(--fs-small); color: var(--ink-mute); }
.evw__body[data-kind="journey"] .jrv__next .jrv__items { justify-content: center; margin: .4em 0; gap: .4em; }
.evw__body[data-kind="journey"] .jrv__next > .bar { justify-self: stretch; }
.evw__body[data-kind="journey"] .jrv__done { margin: 0; color: var(--brass-hi); }
.evw__body[data-kind="journey"] .jrv__tally { display: flex; align-items: baseline; justify-content: center; gap: .35em; flex-wrap: wrap; }
.evw__body[data-kind="journey"] .jrv__count { font-family: var(--face-display); font-size: var(--fs-title); line-height: 1; color: var(--ink-strong); }
.evw__body[data-kind="journey"] .jrv__of { font-family: var(--face-display); color: var(--ink-mute); }
.evw__body[data-kind="journey"] .jrv__tally > small { flex-basis: 100%; font-size: var(--fs-small); color: var(--ink-mute); }

/* ---- mobile mode: rows at least 44 px, the hero's goods at a normal tile */
html.m-mobile .evw__body[data-kind="journey"] .jrv { grid-template-columns: minmax(0, 1fr) 11em; gap: .5em; }
html.m-mobile .evw__body[data-kind="journey"] .jrv__rung { min-height: var(--hit); padding: .25em .4em; gap: .5em; grid-template-columns: 2em minmax(4.5em, 1fr) auto 1em; }
html.m-mobile .evw__body[data-kind="journey"] .jrv__lv { font-size: var(--fs-heading); }
html.m-mobile .evw__body[data-kind="journey"] .jrv__side { padding: .5em; gap: .6em; }
html.m-mobile .evw__body[data-kind="journey"] .jrv__next .tile--lg { font-size: .8em; }
html.m-mobile .evw__body[data-kind="journey"] .jrv__nextname { font-size: var(--fs-small); }

/* ---- w-ev-pass.css */
/* THE TAMER PASS in the Event Center (panels/ev-pass.ts), under .evw__body[data-kind=pass]. A premium
   pass screen in the Astro look (owner, 2026-11-01): two big tabs in the head's slot; one plate across
   the page (a key-art cut on the Starward field, the level as one huge number, "Pass Level", a thick
   bar with its points, Up Level at the right); Rewards = the board (a lead column of track emblems,
   level columns over two coloured bands: Unbound silver, Starward indigo and gold; the next milestone
   pinned at the right end) and the grand prize on a lit stage; Missions =
   the groups on the left (the picked one a brass plate) and roomy rows on the right. Then the
   questions it asks in ask.ts's dialog (.psv-ask). Desktop and mobile each sized below, at the
   Event Center's ordinary sizes (owner, 2026-11-03, #440: the page was too big). No new
   pictures: the Starward field, the two track emblems and the Pass emblem are the ones it had. */

[data-kind="pass"] .psv {
  --silver-rgb: 206, 220, 244;
  --gold-rgb: var(--brass-hi-rgb);
  --indigo: 27, 20, 70;
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .8em;
}
[data-kind="pass"] .psv [hidden] { display: none !important; }

/* ---- the head's two big tabs */
.psv__tabs { display: flex; align-items: stretch; gap: .35em; padding: .2em; border-radius: .5em; background: rgba(var(--navy-0-rgb), .65); box-shadow: inset 0 0 0 1px var(--hairline); }
.psv__tab {
  position: relative; display: inline-flex; align-items: center; gap: .45em; min-width: 7em; padding: .35em 1em; justify-content: center;
  border: 0; border-radius: .38em; background: none; font: inherit; font-family: var(--face-display); font-weight: var(--face-display-weight);
  font-size: var(--fs-body); letter-spacing: .04em; color: var(--ink-mute); cursor: var(--cur-hand, pointer); white-space: nowrap;
}
.psv__tab > .ic, .psv__tab > .g { width: 1.05em; height: 1.05em; opacity: .7; }
.psv__tab:hover:not(.is-on) { color: var(--ink); background: rgba(var(--sky-rgb), .06); }
.psv__tab.is-on {
  color: var(--navy-0); cursor: var(--cur-arrow, default);
  background: linear-gradient(180deg, var(--brass-pale), var(--brass) 70%, var(--brass-hi));
  box-shadow: 0 0 0 1px rgba(var(--brass-pale-rgb), .6), 0 0 1em rgba(var(--brass-rgb), .35), inset 0 -2px 0 rgba(var(--shadow-ink), .25);
}
.psv__tab.is-on > .ic, .psv__tab.is-on > .g { opacity: 1; filter: brightness(.25); }
.psv__count {
  display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .3em; box-sizing: border-box;
  border-radius: 999px; background: var(--green); color: var(--navy-0); font-family: var(--face-ui);
  font-size: var(--fs-badge); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.psv__count[hidden] { display: none; }

/* ---- the plate */
[data-kind="pass"] .psv__plate {
  position: relative; display: grid; grid-template-columns: 12.5em auto minmax(0, 1fr) auto; align-items: center; gap: 1em;
  min-height: 4.2em; padding-right: 1em; border-radius: .5em; overflow: hidden;
  background: linear-gradient(90deg, rgba(var(--navy-4-rgb), .9), rgba(var(--navy-2-rgb), .92) 55%, rgba(var(--navy-1-rgb), .95));
  box-shadow: inset 0 1px 0 rgba(var(--brass-pale-rgb), .35), inset 0 0 0 1px rgba(var(--brass-rgb), .28), 0 .4em 1.2em rgba(var(--shadow-ink), .45);
}
/* The key-art cut: the Starward field under an indigo wash, its right edge cut on a slant. */
[data-kind="pass"] .psv__key {
  align-self: stretch; display: flex; align-items: center; gap: .7em; padding: 0 2.2em 0 1em;
  background: linear-gradient(90deg, rgba(var(--indigo), .35), rgba(var(--indigo), .75)), url(/data/art/ui/pass-field-starward.660ecdec.webp) 30% center / cover no-repeat, #211852;
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.6em) 100%, 0 100%);
}
[data-kind="pass"] .psv__kem { width: 2.6em; height: 2.6em; flex: none; object-fit: contain; filter: drop-shadow(0 0 .6em rgba(var(--gold-rgb), .55)); }
[data-kind="pass"] .psv__kwords { display: grid; min-width: 0; line-height: 1.15; }
[data-kind="pass"] .psv__kwords > small { font-size: var(--fs-small); letter-spacing: .08em; color: rgba(var(--silver-rgb), .85); white-space: nowrap; }
[data-kind="pass"] .psv__sname {
  font-family: var(--face-display); font-weight: var(--face-display-weight); font-size: var(--fs-heading);
  color: rgb(var(--gold-rgb)); text-shadow: 0 0 .6em rgba(var(--gold-rgb), .45), 0 .06em .12em rgba(var(--shadow-ink), .9); white-space: nowrap;
}
[data-kind="pass"] .psv__lvn {
  min-width: 1.2em; text-align: center; font-family: var(--face-display); font-weight: 700; line-height: .9;
  font-size: calc(var(--fs-title) * 1.9); color: var(--ink-strong); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 .35em rgba(var(--sky-rgb), .35), 0 .05em .1em rgba(var(--shadow-ink), .9);
}
[data-kind="pass"] .psv__prog { display: grid; gap: .45em; min-width: 0; }
[data-kind="pass"] .psv__ptop { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; min-width: 0; }
[data-kind="pass"] .psv__lvcap {
  font-family: var(--face-display); font-weight: var(--face-display-weight); font-size: var(--fs-body);
  letter-spacing: .06em; color: var(--ink-strong); white-space: nowrap;
}
[data-kind="pass"] .psv__nums { font-size: var(--fs-small); color: var(--brass-hi); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-kind="pass"] .psv__meter { height: .6em; box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .35), 0 0 .8em rgba(var(--gold-rgb), .12); }
[data-kind="pass"] .psv__meter > .bar__fill { background: linear-gradient(90deg, var(--brass), var(--brass-pale)); box-shadow: 0 0 .6em rgba(var(--gold-rgb), .6); }
[data-kind="pass"] .psv__meter > .bar__text { display: none; }
/* Up Level: a brass outline plate to match the plate it sits on; plainly greyed once the ladder is done. */
[data-kind="pass"] .btn.psv__up {
  --btn-face: linear-gradient(180deg, rgba(var(--navy-4-rgb), .95), rgba(var(--navy-1-rgb), .95)); --btn-rim: var(--brass);
  min-width: 7.5em; min-height: 2.4em; padding-inline: 1em; gap: .45em; border-radius: .35em;
  font-family: var(--face-display); font-weight: var(--face-display-weight); letter-spacing: .06em; color: var(--brass-pale);
  box-shadow: 0 0 0 1px rgba(var(--brass-pale-rgb), .25), 0 0 1em rgba(var(--gold-rgb), .18);
}
[data-kind="pass"] .btn.psv__up::before { border-radius: calc(.35em - 1px); background: var(--btn-face); box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .35), inset 0 1px 0 rgba(var(--brass-pale-rgb), .3); }
[data-kind="pass"] .btn.psv__up > .btn__ic { width: 1em; height: 1em; }
[data-kind="pass"] .btn.psv__up:disabled:not(.is-busy) {
  filter: none; opacity: 1; color: var(--ink-faint); --btn-rim: rgba(var(--brass-rgb), .25); box-shadow: none;
}
[data-kind="pass"] .btn.psv__up:disabled:not(.is-busy) > .btn__ic { display: none; }

[data-kind="pass"] .psv__body { flex: 1; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
[data-kind="pass"] .psv__page { grid-area: 1 / 1; min-width: 0; min-height: 0; }

/* ---- Rewards: the board and the grand prize. The board IS the page's height: its two bands split
   what the numbers leave, and the tiles grow from that (--tc, container units of .psv__rw). Where the
   page is tall enough a rung also names itself under its tile (--extra makes room for it). */
[data-kind="pass"] .psv__rw { container-type: size; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 1em; }
[data-kind="pass"] .psv__field {
  --fpad: 1.1em;                                      /* the field's top (room for the NEXT tab) */
  min-width: 0; min-height: 0; display: grid; padding: var(--fpad) .8em .7em; border-radius: .5em;
  background: radial-gradient(ellipse 80% 60% at 50% 55%, rgba(var(--sky-rgb), .06), transparent 70%), rgba(var(--navy-0-rgb), .4);
  box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .18);
}
[data-kind="pass"] .psv__board {
  --nh: 2em;                                          /* the level numbers' row */
  --extra: 1.4em;                                     /* a band's room beside its tile: air */
  --band: calc((100cqh - var(--fpad) - .7em - var(--nh)) / 2);
  --tcmax: 4.6em;                                     /* a tile's side at most */
  --tc: clamp(2.6em, calc(var(--band) - var(--extra)), var(--tcmax));   /* a tile's side */
  --lw: 6.8em;                                        /* the lead column */
  --cw: calc(var(--tc) + 1.2em);                      /* a column */
  position: relative; min-width: 0; min-height: 0;
  display: grid; grid-template-columns: var(--lw) minmax(0, 1fr) auto; grid-template-rows: var(--nh) minmax(0, 1fr) minmax(0, 1fr);
}
/* The two bands, full width under the lead, the road and the pinned column. */
[data-kind="pass"] .psv__board::before, [data-kind="pass"] .psv__board::after {
  content: ""; position: absolute; left: 0; right: 0; height: calc((100% - var(--nh)) / 2 - .35em); border-radius: .4em; pointer-events: none;
}
[data-kind="pass"] .psv__board::before {
  top: var(--nh);
  background: linear-gradient(180deg, rgba(var(--silver-rgb), .2), rgba(var(--silver-rgb), .07) 55%, rgba(var(--silver-rgb), .12)), rgba(var(--navy-3-rgb), .9);
  box-shadow: inset 0 1px 0 rgba(var(--silver-rgb), .55), inset 0 -1px 0 rgba(var(--silver-rgb), .2), inset 0 0 0 1px rgba(var(--silver-rgb), .12);
}
[data-kind="pass"] .psv__board::after {
  top: calc(var(--nh) + (100% - var(--nh)) / 2);
  background:
    linear-gradient(90deg, rgba(var(--indigo), .5), rgba(var(--indigo), .72) 50%, rgba(var(--indigo), .86)),
    url(/data/art/ui/pass-field-starward.660ecdec.webp) left center / cover no-repeat, #211852;
  box-shadow: inset 0 1px 0 rgba(var(--gold-rgb), .9), inset 0 -1px 0 rgba(var(--gold-rgb), .5), 0 0 1.6em rgba(var(--gold-rgb), .14);
}
/* The lead: each track's emblem over its name, on a darker cut at the band's start. */
[data-kind="pass"] .psv__lead { grid-area: 1 / 1 / 4 / 2; position: relative; z-index: 2; display: grid; grid-template-rows: var(--nh) minmax(0, 1fr) minmax(0, 1fr); pointer-events: none; }
[data-kind="pass"] .psv__lbl {
  display: grid; justify-items: center; align-content: center; gap: .3em; margin-bottom: .35em; border-radius: .4em 0 0 .4em;
  font-family: var(--face-display); font-weight: var(--face-display-weight); letter-spacing: .12em; text-align: center;
  color: rgb(var(--silver-rgb)); text-shadow: 0 .06em .12em rgba(var(--shadow-ink), .9);
}
[data-kind="pass"] .psv__lbl--free { grid-row: 2; background: linear-gradient(90deg, rgba(var(--navy-0-rgb), .55), rgba(var(--navy-0-rgb), .15)); box-shadow: inset -1px 0 0 rgba(var(--silver-rgb), .25); }
[data-kind="pass"] .psv__lbl--prem { grid-row: 3; color: rgb(var(--gold-rgb)); background: linear-gradient(90deg, rgba(var(--indigo), .9), rgba(var(--indigo), .3)); box-shadow: inset -1px 0 0 rgba(var(--gold-rgb), .45); text-shadow: 0 0 .7em rgba(var(--gold-rgb), .5), 0 .06em .12em rgba(var(--shadow-ink), .9); }
[data-kind="pass"] .psv__lbl > b { display: inline-flex; align-items: center; gap: .3em; font-size: var(--fs-small); font-weight: inherit; }
[data-kind="pass"] .psv__lem { width: clamp(2em, calc(var(--tc) * .6), 4em); height: clamp(2em, calc(var(--tc) * .6), 4em); object-fit: contain; filter: drop-shadow(0 .1em .3em rgba(var(--shadow-ink), .8)); }
[data-kind="pass"] .psv__lbl--prem .psv__lem { filter: drop-shadow(0 0 .55em rgba(var(--gold-rgb), .6)); }
[data-kind="pass"] .psv__lbl .ic, [data-kind="pass"] .psv__lbl .g { width: 1em; height: 1em; }

/* The road scrolls freely under a drag or a wheel, no snap (#440); its edges fade. */
[data-kind="pass"] .psv__road {
  grid-area: 1 / 2 / 4 / 3; position: relative; z-index: 1; display: flex; min-width: 0;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  touch-action: none; cursor: var(--cur-grab, grab);   /* a drag pulls it (panZoom in ev-pass.ts) */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 .5em, #000 calc(100% - .5em), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 .5em, #000 calc(100% - .5em), transparent);
}
[data-kind="pass"] .psv__road::-webkit-scrollbar { display: none; }
[data-kind="pass"] .psv__col {
  position: relative; flex: none; display: grid; grid-template-rows: var(--nh) minmax(0, 1fr) minmax(0, 1fr); justify-items: center;
  width: var(--cw); min-width: max-content;
  content-visibility: auto; contain-intrinsic-size: auto 8em auto 20em;
}
/* A faint rule between columns inside the bands. */
[data-kind="pass"] .psv__road > .psv__col + .psv__col::before {
  content: ""; position: absolute; left: 0; top: calc(var(--nh) + .6em); bottom: 1em; width: 1px; pointer-events: none;
  background: linear-gradient(rgba(var(--sky-rgb), .1), rgba(var(--sky-rgb), .03));
}
[data-kind="pass"] .psv__col.is-here::after {   /* the player's column: a gold outline through both bands */
  content: ""; position: absolute; z-index: -1; left: .2em; right: .2em; top: calc(var(--nh) + .2em); bottom: .55em; border-radius: .4em; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), .16), rgba(var(--gold-rgb), .04)); box-shadow: inset 0 0 0 2px rgba(var(--gold-rgb), .75), 0 0 .9em rgba(var(--gold-rgb), .3);
}
[data-kind="pass"] .psv__num {
  align-self: end; padding-bottom: .05em; font-family: var(--face-display); font-weight: 700; line-height: 1;
  font-size: var(--fs-title); font-variant-numeric: tabular-nums; color: var(--ink-faint);
}
[data-kind="pass"] .psv__col.is-reached .psv__num { color: var(--ink); }
[data-kind="pass"] .psv__col.is-here .psv__num { color: rgb(var(--gold-rgb)); text-shadow: 0 0 .5em rgba(var(--gold-rgb), .6); }

/* A rung: its tile(s) in the middle of its band (the tile's own rim says its tier; no underline,
   #440), its name under it (tall pages only), a mark. Every cell of a band is the same height (the
   name's row is two lines whether the name takes one, two or none), so tiles and names share one line. */
[data-kind="pass"] .psv__cell { align-self: center; display: grid; justify-items: center; gap: .35em; margin-top: -.35em; min-width: 0; }
[data-kind="pass"] .psv__pics { position: relative; isolation: isolate; display: flex; gap: .25em; }
[data-kind="pass"] .psv__pics > .tile { --tile: var(--tc); }
[data-kind="pass"] .psv__rname {
  display: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  width: calc(var(--tc) + 1em); font-size: var(--fs-small); line-height: 1.25; text-align: center; color: var(--ink-mute);
}
/* Desktop mode's page (its fixed box) has room for each rung's name under its tile; mobile mode's
   has not (the rule after the name's own). */
html.m-desktop [data-kind="pass"] .psv__board { --extra: 4.4em; }
html.m-desktop [data-kind="pass"] .psv__cell { grid-template-rows: auto calc(var(--fs-small) * 2.5); }
html.m-desktop [data-kind="pass"] .psv__rname { display: -webkit-box; align-self: start; }
[data-kind="pass"] .psv__cell[data-track="premium"] .psv__rname { color: rgba(var(--gold-rgb), .85); }
[data-kind="pass"] .psv__cell.is-can { cursor: var(--cur-hand, pointer); }
[data-kind="pass"] .psv__cell.is-can .psv__rname { color: var(--ink-strong); }
[data-kind="pass"] .psv__cell.is-can .tile { box-shadow: inset 0 0 0 max(1px, .08em) var(--tile-rim), 0 0 0 2px rgba(var(--gold-rgb), .9), 0 0 1em rgba(var(--gold-rgb), .6); }
[data-kind="pass"] .psv__cell.is-can .psv__pics::before {        /* the soft glow, breathing (opacity only) */
  content: ""; position: absolute; z-index: -1; inset: -.6em; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--gold-rgb), .5), transparent);
  animation: psv-pulse 1.6s ease-in-out infinite alternate;
}
@keyframes psv-pulse { from { opacity: .3; } to { opacity: 1; } }
/* An empty level: a faint hollow frame with a dot, so the row reads as one line. */
[data-kind="pass"] .psv__void {
  display: block; width: var(--tc); height: var(--tc); box-sizing: border-box; border-radius: .3em;
  border: 1px dashed rgba(var(--sky-rgb), .16);
  background: radial-gradient(circle, rgba(var(--sky-rgb), .28) 0 .18em, transparent .22em), rgba(var(--navy-0-rgb), .22);
}
[data-kind="pass"] .psv__col > .psv__cell.is-empty:last-child .psv__void { border-color: rgba(var(--gold-rgb), .16); }
/* Taken: the tile dim, a check in its middle. Locked: a small lock in its corner. */
[data-kind="pass"] .psv__mark {
  position: absolute; z-index: 1; display: grid; place-items: center; pointer-events: none;
  right: -.3em; top: -.3em; width: 1.3em; height: 1.3em; border-radius: 50%;
  background: var(--navy-0); box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .55);
}
[data-kind="pass"] .psv__mark :is(.ic, .g) { width: .78em; height: .78em; }
[data-kind="pass"] .psv__cell.is-taken .psv__mark {
  right: auto; top: calc(var(--tc) / 2 - 1.05em); left: calc(50% - 1.05em); width: 2.1em; height: 2.1em;
  background: rgba(var(--navy-0-rgb), .75); box-shadow: 0 0 0 1.5px rgba(var(--sky-rgb), .65);
}
[data-kind="pass"] .psv__cell.is-taken .psv__mark :is(.ic, .g) { width: 1.25em; height: 1.25em; }
[data-kind="pass"] .psv__cell.is-taken .psv__rname { opacity: .5; }
[data-kind="pass"] .psv__cell[data-track="premium"]:not(.is-can) .tile {
  box-shadow: inset 0 0 0 max(1px, .08em) var(--tile-rim), 0 0 0 1.5px rgba(var(--gold-rgb), .75), 0 0 .9em rgba(var(--gold-rgb), .22);
}
[data-kind="pass"] .psv__cell.is-shut .tile { opacity: .7; }

/* The next milestone, pinned at the right end: a gold-framed column with a tab over it. */
[data-kind="pass"] .psv__pin {
  grid-area: 1 / 3 / 4 / 4; position: relative; z-index: 2; display: grid; margin-left: .3em; padding: 0 .35em; border-radius: .45em;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), .26), rgba(var(--navy-1-rgb), .35) 30%, rgba(var(--navy-1-rgb), .35));
  box-shadow: inset 0 0 0 2px rgba(var(--gold-rgb), .85), 0 0 1.2em rgba(var(--gold-rgb), .3), -.6em 0 1em rgba(var(--shadow-ink), .5);
}
[data-kind="pass"] .psv__pin .psv__num { color: rgb(var(--gold-rgb)); text-shadow: 0 0 .5em rgba(var(--gold-rgb), .55); }
[data-kind="pass"] .psv__pincap {
  position: absolute; z-index: 1; left: 50%; top: 0; translate: -50% -55%; padding: .1em .7em; border-radius: 999px; white-space: nowrap;
  font-size: var(--fs-badge); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-0); background: linear-gradient(180deg, var(--brass-pale), var(--brass));
}
/* The locate button: at the road's right edge, on the numbers' line, only while it is needed. */
[data-kind="pass"] .psv__locate { position: absolute; z-index: 3; grid-area: 1 / 2 / 2 / 3; justify-self: end; align-self: center; margin-right: .3em; }

/* The grand prize: a lit stage, the figure (or the picture) large, its name, its level, the CTA. */
[data-kind="pass"] .psv__side { width: 12.5em; align-self: stretch; display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; }
[data-kind="pass"] .psv__prize {
  position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; gap: .25em; min-height: 0;
  padding: .6em .6em .8em; border-radius: .5em; text-align: center;
  background:
    radial-gradient(ellipse 70% 45% at 50% 62%, rgba(var(--gold-rgb), .28), transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 88%, rgba(var(--indigo), .9), transparent 75%),
    linear-gradient(180deg, rgba(var(--indigo), .55), rgba(var(--navy-1-rgb), .85));
  box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .4), inset 0 1px 0 rgba(var(--brass-pale-rgb), .35);
}
[data-kind="pass"] .psv__stage { position: relative; display: grid; place-items: center; min-height: 0; }
[data-kind="pass"] .psv__fig { display: grid; place-items: center; filter: drop-shadow(0 0 1.4em rgba(var(--gold-rgb), .3)); }
[data-kind="pass"] .psv__fig .doll-box { --doll-w: 8em; }
[data-kind="pass"] .psv__fig > .tile { font-size: calc(var(--win-size) * 1.8); }
[data-kind="pass"] .psv__fig > canvas { display: block; max-width: 8em; max-height: 10.5em; object-fit: contain; }
/* The showcase's tiles: a column at the stage's left, the one on the stage ringed in gold. */
[data-kind="pass"] .psv__shows { position: absolute; left: -.4em; top: 50%; translate: 0 -50%; display: grid; gap: .45em; }
[data-kind="pass"] .psv__stage.is-shows { padding-left: 2.4em; }   /* the figure stands clear of the tiles */
[data-kind="pass"] .psv__show { position: relative; display: block; padding: 0; border: 0; background: none; font: inherit; line-height: 0; cursor: var(--cur-hand, pointer); opacity: .7; }
[data-kind="pass"] .psv__show.is-on { opacity: 1; }
[data-kind="pass"] .psv__show.is-on > .tile { --tile-ring: rgb(var(--gold-rgb)); }
[data-kind="pass"] .psv__sexes { position: absolute; right: -.4em; top: 50%; translate: 0 -50%; display: grid; gap: .45em; }
[data-kind="pass"] .psv__sex {
  position: relative; display: grid; place-items: center; width: 1.9em; height: 1.9em; padding: 0; border: 0; border-radius: 50%;
  background: rgba(var(--navy-0-rgb), .6); color: var(--ink-mute); font: inherit; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .22); cursor: var(--cur-hand, pointer);
}
[data-kind="pass"] .psv__sex.is-on { color: var(--ink-strong); background: rgba(var(--gold-rgb), .25); box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb)); }
[data-kind="pass"] .psv__pname {
  max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-wrap: balance; line-height: 1.15;
  font-family: var(--face-display); font-weight: var(--face-display-weight); font-size: var(--fs-body); color: var(--ink-strong);
}
[data-kind="pass"] .psv__plv { display: inline-flex; align-items: center; gap: .3em; padding: .05em .7em .05em .35em; border-radius: 999px; font-size: var(--fs-small); color: rgb(var(--gold-rgb)); background: rgba(var(--navy-0-rgb), .6); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .4); }
[data-kind="pass"] .btn.psv__buy { --btn-face: var(--brass); --btn-rim: var(--brass-pale); --btn-text: var(--navy-0); --btn-text-shadow: rgba(var(--brass-pale-rgb), .5); filter: drop-shadow(0 0 .7em rgba(var(--gold-rgb), .45)); font-weight: 700; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .45em; }
.psv__pem { width: 1.4em; height: 1.4em; margin: -.15em 0; object-fit: contain; }
.psv__bemblem { width: 1.6em; height: 1.6em; margin: -.3em 0; object-fit: contain; filter: drop-shadow(0 0 .4em rgba(var(--brass-hi-rgb), .6)); }

/* ---- Missions: the groups at the left, the picked group's rows at the right */
[data-kind="pass"] .psv__ms { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: .8em; }
[data-kind="pass"] .psv__groups { display: flex; flex-direction: column; gap: .4em; }
[data-kind="pass"] .psv__grp {
  position: relative; display: grid; gap: .15em; padding: .55em .9em; border: 0; border-radius: .4em; text-align: left;
  font: inherit; color: var(--ink); cursor: var(--cur-hand, pointer);
  background: rgba(var(--navy-3-rgb), .75); box-shadow: inset 0 0 0 1px var(--hairline);
}
[data-kind="pass"] .psv__grp:hover:not(.is-on) { background: rgba(var(--navy-4-rgb), .85); }
[data-kind="pass"] .psv__gname { display: inline-flex; align-items: center; gap: .45em; font-family: var(--face-display); font-weight: var(--face-display-weight); font-size: var(--fs-body); }
[data-kind="pass"] .psv__reset { font-size: var(--fs-small); color: var(--ink-mute); white-space: nowrap; }
[data-kind="pass"] .psv__grp.is-on {
  color: var(--navy-0); cursor: var(--cur-arrow, default);
  background: linear-gradient(180deg, var(--brass-pale), var(--brass) 75%, var(--brass-hi));
  box-shadow: 0 0 0 1px rgba(var(--brass-pale-rgb), .6), 0 0 1em rgba(var(--brass-rgb), .3);
}
[data-kind="pass"] .psv__grp.is-on .psv__reset { color: rgba(var(--navy-0-rgb), .75); }
[data-kind="pass"] .psv__mpane {
  display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; border-radius: .5em; overflow: hidden;
  background: rgba(var(--navy-0-rgb), .45); box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .2);
}
[data-kind="pass"] .psv__strip {
  display: flex; align-items: center; gap: .55em; padding: .55em 1em;
  background: linear-gradient(90deg, rgba(var(--brass-rgb), .16), transparent 70%); box-shadow: inset 0 -1px 0 var(--hairline);
  font-size: var(--fs-small); color: var(--brass-hi); font-variant-numeric: tabular-nums;
}
[data-kind="pass"] .psv__sem { width: 1.5em; height: 1.5em; object-fit: contain; }
[data-kind="pass"] .psv__mscroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: .6em; }
[data-kind="pass"] .psv__mlist { display: grid; gap: .65em; }
[data-kind="pass"] .psv__mrow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 8em; align-items: center; gap: .9em;
  min-height: 4.4em; padding: .45em 1em .45em .45em; border-radius: .45em;
  background: linear-gradient(90deg, rgba(var(--navy-4-rgb), .85), rgba(var(--navy-3-rgb), .7));
  box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .08);
}
/* The reward chip: the Pass emblem on a dark tile, the points beside it. */
[data-kind="pass"] .psv__chip {
  display: inline-flex; align-items: center; gap: .3em; min-width: 6.4em; padding: .3em .7em .3em .3em; border-radius: .35em;
  background: rgba(var(--navy-0-rgb), .8); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .35);
}
[data-kind="pass"] .psv__chem { width: 2.8em; height: 2.8em; object-fit: contain; }
[data-kind="pass"] .psv__pts { font-size: var(--fs-heading); color: rgb(var(--gold-rgb)); font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-kind="pass"] .psv__mmid { display: grid; gap: .4em; min-width: 0; }
[data-kind="pass"] .psv__mname { font-size: var(--fs-heading); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); }
[data-kind="pass"] .psv__mbar { display: grid; grid-template-columns: minmax(0, 26em) auto; align-items: center; gap: 1em; }
[data-kind="pass"] .psv__mbar > .bar { height: .6em; }
[data-kind="pass"] .psv__mnums { font-size: var(--fs-small); color: var(--ink-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-kind="pass"] .psv__mend { display: flex; justify-content: flex-end; padding-left: 1em; box-shadow: inset 1px 0 0 var(--hairline); }
[data-kind="pass"] .psv__mstate { display: inline-flex; align-items: center; gap: .35em; font-size: var(--fs-small); color: var(--ink-mute); white-space: nowrap; }
[data-kind="pass"] .psv__mstate :is(.ic, .g) { width: 1em; height: 1em; }
[data-kind="pass"] .psv__mrow.is-ready { background: linear-gradient(90deg, rgba(var(--gold-rgb), .2), rgba(var(--navy-3-rgb), .75) 45%); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .5); }
[data-kind="pass"] .psv__mrow:is(.is-taken, .is-shut) { opacity: .5; }
[data-kind="pass"] .psv__mrow.is-taken .psv__mstate { color: var(--green); }

/* ---- the foot: Claim all at the left (always there, disabled while nothing waits), the refusal,
   Buy Starward at the right (#440) */
[data-kind="pass"] .psv__foot { display: flex; align-items: center; gap: .8em; min-height: 2.4em; }
[data-kind="pass"] .psv__foot > .note-line { flex: 1; min-width: 0; }
[data-kind="pass"] .psv__foot > .btn:last-child { margin-left: auto; }

/* ---- the questions (Up Level, Starward, a rung of alternatives), in ask.ts's dialog: the amount,
   a summary well, the choices as equal cards, then the dialog's own action row */
.psv-ask { display: grid; gap: .8em; }
.psv-ask__lbl { margin-bottom: -.3em; font-size: var(--fs-small); color: var(--ink-mute); }
.psv-sum {
  margin: 0; display: grid; gap: .35em; padding: .6em .8em;
  border-radius: .3em; background: rgba(var(--navy-0-rgb), .7); box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .16);
}
.psv-sum > div { display: flex; align-items: center; justify-content: space-between; gap: .8em; }
.psv-sum dt { color: var(--ink-mute); }
.psv-sum dd { margin: 0; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.psv-sum dd .ic { width: .9em; height: .9em; opacity: .7; }
.psv-sum__from { color: var(--ink-mute); font-weight: 600; }
.psv-sum__to { color: var(--brass-hi); }
.psv-opts { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: .6em; }
.psv-opt {
  display: grid; justify-items: center; align-content: center; gap: .3em; min-width: 0;
  padding: .8em .5em .7em; border: 0; border-radius: .35em;
  background: rgba(var(--navy-3-rgb), .85); box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .22);
  font: inherit; color: var(--ink); text-align: center; cursor: var(--cur-hand, pointer);
}
.psv-opt:hover:not(.is-on) { background: rgba(var(--navy-4-rgb), .85); }
.psv-opt.is-on {
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(var(--brass-rgb), .24), transparent 75%), rgba(var(--navy-4-rgb), .95);
  box-shadow: inset 0 0 0 2px var(--brass-hi), 0 0 1em rgba(var(--brass-rgb), .3);
  color: var(--ink-strong); cursor: var(--cur-arrow, default);
}
.psv-opt__coin { width: 2em; height: 2em; object-fit: contain; }
.psv-opt__num { font-size: 1.45em; line-height: 1.1; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.psv-opt__cap { font-size: var(--fs-small); color: var(--ink-mute); }
.psv-opt.is-on .psv-opt__cap { color: var(--brass-hi); }
.psv-opt__emblem { width: 3.2em; height: 3.2em; object-fit: contain; filter: drop-shadow(0 0 .7em rgba(var(--brass-hi-rgb), .45)); }
.psv-opt__name { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.psv-opt__price { display: inline-flex; align-items: center; gap: .35em; font-variant-numeric: tabular-nums; }
.psv-opt__price > .coin { width: 1.2em; height: 1.2em; }
.psv-opt__price > .coin[hidden] { display: none; }

/* Mobile mode: the questions fit the short sheet without scrolling: tighter wells, a choice laid out in a row. */
html.m-mobile .psv-ask { gap: .5em; }
html.m-mobile .psv-sum { padding: .35em .6em; gap: .2em; }
html.m-mobile .psv-opt { display: flex; align-items: center; justify-content: center; gap: .45em; padding: .5em .5em; }
html.m-mobile .psv-opt__coin { width: 1.5em; height: 1.5em; }
html.m-mobile .psv-opt__num { font-size: 1.2em; }
html.m-mobile .psv-opt__emblem { width: 2em; height: 2em; }
html.m-mobile .psv-opt--emblem { display: grid; gap: .2em; }

/* ---- mobile mode (a landscape phone: the height is the constraint): the same plate, board and
   rows, sized down; every control at least 44 px */
html.m-mobile [data-kind="pass"] .psv { gap: .55em; }
html.m-mobile .psv__tabs { padding: 0; gap: .25em; background: none; box-shadow: none; }
html.m-mobile .psv__tab { min-width: 0; min-height: var(--hit); padding: 0 .9em; font-size: var(--fs-small); }
html.m-mobile [data-kind="pass"] .psv__plate { grid-template-columns: 10em auto minmax(0, 1fr) auto; min-height: 3.9em; gap: .7em; padding-right: .5em; }
html.m-mobile [data-kind="pass"] .psv__key { padding: 0 1.9em 0 .7em; gap: .5em; }
html.m-mobile [data-kind="pass"] .psv__kem { width: 2.1em; height: 2.1em; }
html.m-mobile [data-kind="pass"] .psv__sname { font-size: var(--fs-body); }
html.m-mobile [data-kind="pass"] .psv__lvn { font-size: calc(var(--fs-title) * 1.6); }
html.m-mobile [data-kind="pass"] .psv__lvcap { font-size: var(--fs-small); }
html.m-mobile [data-kind="pass"] .btn.psv__up { min-width: 0; min-height: var(--hit); padding-block: 0; padding-inline: .9em; align-self: center; }
html.m-mobile [data-kind="pass"] .psv__rw { gap: .6em; }
html.m-mobile [data-kind="pass"] .psv__field { --fpad: .95em; padding: var(--fpad) .4em .4em; }
html.m-mobile [data-kind="pass"] .psv__board { --nh: 1.9em; --lw: 5.8em; --extra: 1.2em; --tcmax: 3.6em; }
html.m-mobile [data-kind="pass"] .psv__lem { width: 1.9em; height: 1.9em; }
html.m-mobile [data-kind="pass"] .psv__lbl > b { font-size: var(--fs-badge); letter-spacing: .04em; }
html.m-mobile [data-kind="pass"] .psv__board { --cw: calc(var(--tc) + .9em); }
html.m-mobile [data-kind="pass"] .psv__num { font-size: var(--fs-heading); }
html.m-mobile [data-kind="pass"] .psv .ibtn::before { content: ""; position: absolute; inset: -14px; }   /* a thumb's hit area */
html.m-mobile [data-kind="pass"] .psv__side { width: 10em; }
html.m-mobile [data-kind="pass"] .psv__prize { padding: .4em .4em .5em; }
html.m-mobile [data-kind="pass"] .psv__fig .doll-box { --doll-w: 5.8em; }
html.m-mobile [data-kind="pass"] .psv__fig > .tile { font-size: calc(var(--win-size) * 1.5); }
html.m-mobile [data-kind="pass"] .psv__sexes { right: -.2em; gap: .9em; }
html.m-mobile [data-kind="pass"] .psv__fig > canvas { max-width: 7.4em; max-height: 8.5em; }
html.m-mobile [data-kind="pass"] .psv__shows { left: -.2em; gap: 22px; }
html.m-mobile [data-kind="pass"] .psv__stage.is-shows { padding-left: 2.2em; }
html.m-mobile [data-kind="pass"] .psv__show > .tile { --tile: 30px; }
html.m-mobile [data-kind="pass"] .psv__show::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: var(--hit); height: var(--hit); translate: -50% -50%; }   /* a thumb's hit area */
html.m-mobile [data-kind="pass"] .psv__sex::before { content: ""; position: absolute; inset: -.55em; }   /* a thumb's hit area */
html.m-mobile [data-kind="pass"] .psv__pname { font-size: var(--fs-small); }
html.m-mobile [data-kind="pass"] .psv__plv { font-size: var(--fs-badge); }
html.m-mobile [data-kind="pass"] .btn.psv__buy { font-size: var(--fs-small); min-height: var(--hit); padding-block: 0; }
html.m-mobile [data-kind="pass"] .psv__ms { grid-template-columns: 10em minmax(0, 1fr); gap: .5em; }
html.m-mobile [data-kind="pass"] .psv__grp { min-height: var(--hit); padding: .5em .7em; }
html.m-mobile [data-kind="pass"] .psv__gname { font-size: var(--fs-body); }
html.m-mobile [data-kind="pass"] .psv__strip { padding: .35em .7em; }
html.m-mobile [data-kind="pass"] .psv__mscroll { padding: .4em; }
html.m-mobile [data-kind="pass"] .psv__mlist { gap: .35em; }
html.m-mobile [data-kind="pass"] .psv__mrow { grid-template-columns: auto minmax(0, 1fr) 7em; gap: .7em; min-height: max(var(--hit), 4.4em); padding: .35em .7em .35em .35em; }
html.m-mobile [data-kind="pass"] .psv__chip { min-width: 5em; padding: .15em .5em .15em .15em; }
html.m-mobile [data-kind="pass"] .psv__chem { width: 2.6em; height: 2.6em; }
html.m-mobile [data-kind="pass"] .psv__pts { font-size: var(--fs-body); }
html.m-mobile [data-kind="pass"] .psv__mname { font-size: var(--fs-body); }
html.m-mobile [data-kind="pass"] .psv__mend { padding-left: .6em; }
html.m-mobile [data-kind="pass"] :is(.psv__mrow, .psv__foot) > .btn, html.m-mobile [data-kind="pass"] .psv__mend > .btn { min-height: var(--hit); }
html.m-mobile [data-kind="pass"] .psv__foot { min-height: 0; }

@media (prefers-reduced-motion: reduce) {
  [data-kind="pass"] .psv__cell.is-can .psv__pics::before { animation: none; opacity: .8; }
}

/* ---- w-ev-shop.css */
/* AN EVENT'S SHOP in the Event Center (panels/ev-shop.ts, under .evw__body[data-kind=shop], #410):
   left, the prizes as a grid of cards (picture, name in its quality ink, what it takes) - the page's
   one scroller; right, a slim side column: the purse (what the bag holds of the counter's goods), the
   pick (picture, name, cost), the refusal or the last trade, Trade. The purse and Trade sit beside
   the pick, never across the page from it (owner, 2026-11-01: "too cluttered and hard to navigate").
   20-components.css draws the parts (tile, chip, button). Desktop and mobile each laid out below. */

.evw__body[data-kind="shop"] .evs { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 15em; gap: 1.2em; }
.evw__body[data-kind="shop"] .evs [hidden] { display: none !important; }
.evw__body[data-kind="shop"] .evs__main { min-height: 0; display: flex; flex-direction: column; gap: .8em; }
.evw__body[data-kind="shop"] .evs__foot { display: flex; justify-content: flex-end; padding-bottom: 1em; }   /* on Trade's line: the side's bottom padding */
.evw__body[data-kind="shop"] .evs__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; --fade: 1em; padding: .25em; margin: -.25em; }

/* ---- the prizes */
.evw__body[data-kind="shop"] .evs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5em, 1fr)); gap: .5em; align-content: start; }
/* A card is no frame: a faint ground that lights on hover, the picked one in its accent. */
.evw__body[data-kind="shop"] .evs__item {
  display: flex; flex-direction: column; align-items: center; gap: .5em; min-width: 0;
  padding: .9em .5em .75em; border: 0; border-radius: .6em;
  background: rgba(var(--navy-0-rgb), .32);
  color: var(--ink); font: inherit; text-align: center;
  cursor: var(--cur-hand, pointer);
  transition: box-shadow .12s, background .12s;
}
.evw__body[data-kind="shop"] .evs__item:hover { background: rgba(var(--acc-rgb), .1); }
.evw__body[data-kind="shop"] .evs__item.is-on {
  background: linear-gradient(180deg, rgba(var(--acc-rgb), .22), rgba(var(--acc-rgb), .06));
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .85);
}
/* The name: two lines at most, always two lines tall, so every card's cost sits on one line. */
.evw__body[data-kind="shop"] .evs__iname {
  width: 100%; min-height: 2.5em; line-height: 1.25; font-weight: 600; font-size: var(--fs-small);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
}
.evw__body[data-kind="shop"] .evs__icost { margin-top: auto; }
.evw__body[data-kind="shop"] .swap-cost { justify-content: center; }
/* What the bag cannot cover: the number in red, never the card greyed (B128). */
.evw__body[data-kind="shop"] .chip.is-short .chip__num { color: var(--error); }
.evw__body[data-kind="shop"] .gui-empty { display: grid; justify-items: center; gap: .3em; padding: 1.4em 1em; text-align: center; }
.evw__body[data-kind="shop"] .gui-empty > img.g { width: 3em; height: 3em; object-fit: contain; }

/* ---- the side column */
.evw__body[data-kind="shop"] .evs__side {
  min-height: 0; display: flex; flex-direction: column; gap: 1em;
  padding: 1.1em 1em 1em; border-radius: .6em;
  background: radial-gradient(ellipse at 50% 42%, rgba(var(--acc-rgb), .16), transparent 62%), rgba(var(--navy-0-rgb), .4);
}
.evw__body[data-kind="shop"] .evs__purse { display: grid; gap: .35em; }
.evw__body[data-kind="shop"] .evs__label { font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--acc-rgb)); }
.evw__body[data-kind="shop"] .evs__holds { display: flex; flex-wrap: wrap; gap: .3em .9em; }
.evw__body[data-kind="shop"] .evs__pick { flex: 1; min-height: 0; display: grid; place-items: center; text-align: center; overflow: hidden; }
.evw__body[data-kind="shop"] .evs__hint { display: grid; justify-items: center; gap: .6em; color: var(--ink-mute); line-height: 1.4; }
.evw__body[data-kind="shop"] .evs__hint > .ic { width: 2.6em; height: 2.6em; object-fit: contain; opacity: .75; }
.evw__body[data-kind="shop"] .evs__shown { display: grid; justify-items: center; gap: .6em; min-width: 0; }
.evw__body[data-kind="shop"] .evs__shown > .tile--lg { font-size: 2em; }   /* the page's focal point: the picked prize */
.evw__body[data-kind="shop"] .evs__name { font-size: var(--fs-heading); line-height: 1.25; overflow-wrap: anywhere; }
.evw__body[data-kind="shop"] .evs__name--green { color: var(--rarity-green-text); }
.evw__body[data-kind="shop"] .evs__name--blue { color: var(--rarity-blue-text); }
.evw__body[data-kind="shop"] .evs__name--gold { color: var(--rarity-gold-text); }
.evw__body[data-kind="shop"] .evs__name--yellow { color: var(--rarity-yellow-text); }
.evw__body[data-kind="shop"] .evs__name--purple { color: var(--rarity-purple-text); }
.evw__body[data-kind="shop"] .evs__name--prism { color: var(--rarity-prism-text); text-shadow: var(--prism-glow); }
.evw__body[data-kind="shop"] .evs__act { display: grid; gap: .4em; }
.evw__body[data-kind="shop"] .evs__act > .note-line { text-align: center; }

/* ---- mobile mode (a landscape phone: the height is the constraint): smaller cards, a narrower
   side, the pick's picture at a normal tile, Trade and every card at least 44 px */
html.m-mobile .evw__body[data-kind="shop"] .evs { grid-template-columns: minmax(0, 1fr) 10.5em; gap: .5em; }
html.m-mobile .evw__body[data-kind="shop"] .evs__grid { grid-template-columns: repeat(auto-fill, minmax(6.4em, 1fr)); gap: .4em; }
html.m-mobile .evw__body[data-kind="shop"] .evs__item { gap: .25em; padding: .45em .3em .4em; min-height: var(--hit); }
html.m-mobile .evw__body[data-kind="shop"] .evs__iname { font-size: var(--fs-badge); min-height: 2.5em; }
html.m-mobile .evw__body[data-kind="shop"] .evs__side { gap: .45em; padding: .5em; }
html.m-mobile .evw__body[data-kind="shop"] .evs__foot { padding-bottom: .5em; }
html.m-mobile .evw__body[data-kind="shop"] .evs__main { gap: .45em; }
html.m-mobile .evw__body[data-kind="shop"] .evs__label { font-size: var(--fs-badge); }
html.m-mobile .evw__body[data-kind="shop"] .evs__hint { gap: .3em; font-size: var(--fs-small); }
html.m-mobile .evw__body[data-kind="shop"] .evs__hint > .ic { width: 1.8em; height: 1.8em; }
html.m-mobile .evw__body[data-kind="shop"] .evs__shown { gap: .3em; }
html.m-mobile .evw__body[data-kind="shop"] .evs__shown > .tile--lg { font-size: 1.3em; }
html.m-mobile .evw__body[data-kind="shop"] .evs__item > .tile--lg { font-size: 1em; }
html.m-mobile .evw__body[data-kind="shop"] .evs__name { font-size: var(--fs-small); }
html.m-mobile .evw__body[data-kind="shop"] .evs__act > .btn { min-height: var(--hit); }
html.m-mobile .evw__body[data-kind="shop"] .evs__act > .note-line { font-size: var(--fs-badge); }

@media (prefers-reduced-motion: reduce) { .evw__body[data-kind="shop"] .evs__item { transition: none; } }

/* ---- w-ev-signin.css */
/* THE DAILY SIGN-IN view inside the Events hub (panels/ev-signin.ts), under .evw__body[data-kind=signin].
   Left the month on the window's ground: its dates, then the days as true squares, a week to a row (--S, the side:
   one fixed size per mode). Each cell: a big faint day number in its top-left corner,
   the reward centred with its count. One look per state, nothing else borders a cell:
     future   the plain navy square;
     today    a bright brass frame and a breathing glow while it is still to take;
     claimed  the reward greyed under a clean white check (css mask, no art);
     missed   sunk dark, the reward faint under a small padlock;
     Ticket   a missed day a Tamer Ticket still collects: the event's coral rim and number;
     milestone  a small brass diamond in the top-right corner, whatever its state.
   Right the day in focus large in the astrolabe ring (it grows into the room the side has), the next
   milestone, the Ticket line, the reset countdown, the button. Motion is transform and opacity only. */
.evw__body[data-kind="signin"] .sgv [hidden] { display: none !important; }
.evw__body[data-kind="signin"] .sgv {
  --side-min: 16em; --S: 7.9em;
  flex: 1; min-height: 0; min-width: 0;
  display: grid; gap: 1em;
  grid-template-columns: max-content minmax(var(--side-min), 24em); grid-template-rows: minmax(0, 1fr);
  justify-content: center;
}
.evw__body[data-kind="signin"] :is(.sgv__cal, .sgv__side) { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
/* Minimal (owner, 2026-11-01): the month sits on the window's ground; only the side has a quiet
   ground of its own, the Event Center's side look (as the shop's). */
.evw__body[data-kind="signin"] .sgv__side {
  border-radius: .6em;
  background: radial-gradient(ellipse at 50% 38%, rgba(var(--brass-rgb), .14), transparent 62%), rgba(var(--navy-0-rgb), .4);
}

/* ---- the month: the title line and the grid, centred together in the column */
.evw__body[data-kind="signin"] .sgv__cal {
  display: flex; flex-direction: column; justify-content: center; gap: .8em; padding: 0;
}
.evw__body[data-kind="signin"] .sgv__top { display: flex; align-items: baseline; gap: .9em; min-width: 0; flex: none; }
.evw__body[data-kind="signin"] .sgv__title {
  margin: 0; flex: none; font-family: var(--face-display); font-weight: var(--face-display-weight);
  font-size: var(--fs-title); line-height: 1.2; color: var(--brass-pale); white-space: nowrap;
}
.evw__body[data-kind="signin"] .sgv__until {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--fs-small); color: var(--ink-mute); font-variant-numeric: tabular-nums;
}

.evw__body[data-kind="signin"] .sgv__days {
  flex: none; display: grid; gap: .4em;
  grid-template-columns: repeat(7, var(--S));
  grid-auto-rows: var(--S);
}
/* A cell is S by S, its grid track (an em --S used on the cell itself would be read against the
   cell's own font size); everything in it is in em of S/6, so it all scales with the square. */
.evw__body[data-kind="signin"] .sgv__day {
  position: relative; width: 100%; height: 100%;
  font-size: calc(var(--S) / 6);
  border-radius: .5em;
  background: rgba(var(--navy-0-rgb), .32);
}
.evw__body[data-kind="signin"] .sgv__num {
  position: absolute; left: .25em; top: .05em; pointer-events: none;
  font-family: var(--face-display); font-weight: 700; font-size: 2.5em; line-height: 1;
  color: rgba(var(--sky-rgb), .16);
}
/* The reward: the picture alone (no well, no rim), a little below centre so the number reads. */
.evw__body[data-kind="signin"] .sgv__day > .tile {
  --tile: 3.7em;
  position: absolute; left: 50%; top: 50%; translate: -50% -42%;
  background: none; box-shadow: none; overflow: visible;
}
.evw__body[data-kind="signin"] .sgv__day > .tile > img {
  inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 .12em .15em rgba(var(--shadow-ink), .7));
}
.evw__body[data-kind="signin"] .sgv__day > .tile.is-dim > img { filter: grayscale(1); opacity: .4; }
.evw__body[data-kind="signin"] :is(.sgv__day, .sgv__ring) .tile__count {
  right: -.15em; bottom: -.1em; padding: 0; background: none;
  font-weight: 700; color: var(--ink-strong);
  text-shadow: 0 0 .25em rgb(var(--shadow-ink)), 0 .06em .1em rgb(var(--shadow-ink));
}
.evw__body[data-kind="signin"] .sgv__day > .tile.is-dim .tile__count { color: var(--ink-faint); }

/* The milestone: one small brass diamond in the top-right corner. */
.evw__body[data-kind="signin"] .sgv__pip {
  position: absolute; right: .55em; top: .55em; width: .6em; height: .6em; rotate: 45deg; display: none;
  background: linear-gradient(135deg, var(--brass-pale), var(--brass));
  box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .8), 0 0 .5em rgba(var(--brass-rgb), .5);
}
.evw__body[data-kind="signin"] .sgv__day.is-milestone .sgv__pip { display: block; }

/* The check over a day taken (and the hero when it is taken): white, round-capped, a soft shadow
   on the wrapper (a mask would clip a filter on the same box). */
.evw__body[data-kind="signin"] .sgv__check {
  position: absolute; left: 50%; top: 50%; width: 3.2em; height: 3.2em; translate: -50% -42%;
  pointer-events: none; opacity: 0;
  filter: drop-shadow(0 .08em .12em rgba(var(--shadow-ink), .95)) drop-shadow(0 0 .3em rgba(var(--shadow-ink), .6));
}
.evw__body[data-kind="signin"] .sgv__check::before {
  content: ""; position: absolute; inset: 0; background: var(--ink-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.8l4.8 4.7L19.6 6.8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.8l4.8 4.7L19.6 6.8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* The padlock over a day gone by. */
.evw__body[data-kind="signin"] .sgv__lock {
  position: absolute; left: 50%; top: 50%; width: 1.5em; height: 1.5em; translate: -50% -30%;
  padding: .3em; box-sizing: content-box; border-radius: 50%; pointer-events: none; display: none;
  background: rgba(var(--shadow-ink), .75); box-shadow: 0 0 0 1px rgba(var(--sky-rgb), .18);
  opacity: .9;
}

/* Claimed: sunk a step, the reward grey, the check on it. */
.evw__body[data-kind="signin"] .sgv__day.is-claimed { background: rgba(var(--navy-0-rgb), .55); }
.evw__body[data-kind="signin"] .sgv__day.is-claimed .sgv__num { color: rgba(var(--sky-rgb), .08); }
.evw__body[data-kind="signin"] .sgv__day.is-claimed .sgv__check { opacity: 1; }
.evw__body[data-kind="signin"] .sgv__day.is-fresh .sgv__check { animation: sgv-check .4s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes sgv-check { from { opacity: 0; scale: 1.8; } to { opacity: 1; scale: 1; } }

/* Missed: dark, the reward faint, the padlock. */
.evw__body[data-kind="signin"] .sgv__day.is-gone { background: rgba(var(--navy-0-rgb), .8); box-shadow: none; }
.evw__body[data-kind="signin"] .sgv__day.is-gone .sgv__num { color: rgba(var(--sky-rgb), .06); }
.evw__body[data-kind="signin"] .sgv__day.is-gone > .tile > img { opacity: .22; }
.evw__body[data-kind="signin"] .sgv__day.is-gone .sgv__lock { display: block; }

/* A missed day the Tamer Ticket still collects: the event's coral, the reward in full colour. */
.evw__body[data-kind="signin"] .sgv__day.is-late {
  background: radial-gradient(circle at 50% 60%, rgba(var(--acc-rgb), .14), transparent 70%), rgba(var(--navy-4-rgb), .55);
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .75);
}
.evw__body[data-kind="signin"] .sgv__day.is-late .sgv__num { color: rgba(var(--acc-rgb), .4); }

/* Today: the brightest square on the page. A brass frame, a lit ground, and while it is still to
   take a glow that breathes (opacity on its own layer). */
.evw__body[data-kind="signin"] .sgv__day.is-now {
  z-index: 1;
  background: radial-gradient(circle at 50% 58%, rgba(var(--brass-hi-rgb), .3), transparent 72%), var(--navy-4);
  box-shadow: inset 0 0 0 2px var(--brass-hi), 0 0 0 1px rgba(var(--shadow-ink), .9);
}
.evw__body[data-kind="signin"] .sgv__day.is-now .sgv__num { color: rgba(var(--brass-pale-rgb), .6); }
.evw__body[data-kind="signin"] .sgv__day.is-now.is-claimed {
  background: rgba(var(--navy-3-rgb), .9);
  box-shadow: inset 0 0 0 1px rgba(var(--brass-hi-rgb), .55);
}
.evw__body[data-kind="signin"] .sgv__day.is-now.is-claimed .sgv__num { color: rgba(var(--brass-pale-rgb), .25); }
.evw__body[data-kind="signin"] .sgv__day.is-now.is-open::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: 0 0 1.1em .1em rgba(var(--brass-hi-rgb), .75), inset 0 0 .9em rgba(var(--brass-pale-rgb), .35);
  animation: sgv-breathe 1.6s ease-in-out infinite alternate;
}
@keyframes sgv-breathe { from { opacity: .35; } to { opacity: 1; } }

/* The day tapped into focus (not today): a starlight ring. */
.evw__body[data-kind="signin"] .sgv__day.is-focus { box-shadow: inset 0 0 0 1px var(--sky), 0 0 .6em rgba(var(--sky-rgb), .3); }
body.play .evw__body[data-kind="signin"] .sgv__day { cursor: var(--cur-hand, pointer); }
body.play .evw__body[data-kind="signin"] .sgv__day.is-busy { cursor: var(--cur-busy); }
.evw__body[data-kind="signin"] .sgv__day.is-busy > .tile { opacity: .6; }
@media (hover: hover) {
  .evw__body[data-kind="signin"] .sgv__day:not(.is-now, .is-late, .is-gone, .is-focus):hover {
    box-shadow: inset 0 0 0 1px rgba(var(--sky-rgb), .32);
  }
}

/* ---- the side: the day in focus (it takes every bit of height the rest leaves), the next
   milestone, the foot */
.evw__body[data-kind="signin"] .sgv__side { display: flex; flex-direction: column; gap: .9em; padding: 1em 1.2em 1.2em; }
.evw__body[data-kind="signin"] .sgv__hero { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: .6em; }
.evw__body[data-kind="signin"] .sgv__lbls { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: .5em; flex: none; }
.evw__body[data-kind="signin"] .sgv__lbl {
  padding: .2em .8em; border-radius: 999px; white-space: nowrap;
  font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-1); background: linear-gradient(180deg, var(--brass-hi), var(--brass));
}
.evw__body[data-kind="signin"] .sgv__state { font-size: var(--fs-small); color: var(--ink-mute); white-space: nowrap; }
.evw__body[data-kind="signin"] .sgv__stage {
  flex: 1; min-height: 4em; align-self: stretch; container-type: size;
  display: grid; place-items: center;
}
.evw__body[data-kind="signin"] .sgv__ring {
  --ring: min(100cqw, 100cqh, 15em);
  position: relative; width: var(--ring); height: var(--ring); display: grid; place-items: center;
  font-size: calc(var(--ring) / 10);
  background: radial-gradient(circle, rgba(var(--brass-rgb), .2), rgba(var(--navy-0-rgb), .2) 52%, transparent 64%),
    var(--art-ring) center / contain no-repeat;
}
.evw__body[data-kind="signin"] .sgv__ring > .tile {
  --tile: 4.6em; font-size: 1em;
  box-shadow: inset 0 0 0 max(1px, .08em) var(--tile-rim), 0 0 0 1px rgba(var(--shadow-ink), .9), 0 0 1.2em rgba(var(--brass-rgb), .3);
}
.evw__body[data-kind="signin"] .sgv__ring .tile__count { right: .15em; bottom: .05em; font-size: 1.1em; }
.evw__body[data-kind="signin"] .sgv__ring > .sgv__check { width: 3.6em; height: 3.6em; translate: -50% -50%; }
.evw__body[data-kind="signin"] .sgv__ring > .sgv__lock { width: 1.4em; height: 1.4em; translate: -50% -50%; }
.evw__body[data-kind="signin"] .sgv__hero.is-claimed .sgv__check { opacity: 1; }
.evw__body[data-kind="signin"] .sgv__hero.is-gone .sgv__lock { display: block; }
.evw__body[data-kind="signin"] .sgv__hero.is-gone .sgv__ring > .tile > img { opacity: .25; }
.evw__body[data-kind="signin"] .sgv__hero.is-now .sgv__ring > .tile {
  box-shadow: inset 0 0 0 2px var(--brass-hi), 0 0 0 1px rgba(var(--shadow-ink), .9), 0 0 1.6em rgba(var(--brass-hi-rgb), .55);
}
.evw__body[data-kind="signin"] .sgv__hero.is-late .sgv__ring > .tile {
  box-shadow: inset 0 0 0 2px rgba(var(--acc-rgb), .85), 0 0 0 1px rgba(var(--shadow-ink), .9), 0 0 1.4em rgba(var(--acc-rgb), .4);
}
.evw__body[data-kind="signin"] .sgv__caption { flex: none; display: grid; justify-items: center; gap: .15em; min-width: 0; max-width: 100%; }
.evw__body[data-kind="signin"] .sgv__name {
  min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: var(--fs-heading); line-height: 1.25; color: var(--ink-strong); text-align: center;
}
.evw__body[data-kind="signin"] .sgv__qty { flex: none; font-family: var(--face-display); font-size: var(--fs-title); color: var(--brass-hi); }

/* The next milestone: one band, its diamond the grid's. */
.evw__body[data-kind="signin"] .sgv__next {
  flex: none; display: flex; align-items: center; gap: .7em; padding: .6em 0 0; min-width: 0;
  border-top: 1px solid var(--hairline);
}
.evw__body[data-kind="signin"] .sgv__ntext { display: grid; gap: .2em; min-width: 0; }
.evw__body[data-kind="signin"] .sgv__mshead { display: flex; align-items: center; gap: .45em; font-size: var(--fs-small); color: var(--brass-hi); white-space: nowrap; }
.evw__body[data-kind="signin"] .sgv__mspip {
  width: .5em; height: .5em; flex: none; rotate: 45deg;
  background: linear-gradient(135deg, var(--brass-pale), var(--brass)); box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .8);
}
.evw__body[data-kind="signin"] .sgv__nname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* The foot: the Ticket line, the countdown, the button, a refusal. */
.evw__body[data-kind="signin"] .sgv__foot { flex: none; display: grid; gap: .5em; }
.evw__body[data-kind="signin"] .sgv__catch { margin: 0; text-align: center; font-size: var(--fs-small); color: var(--ink-mute); }
.evw__body[data-kind="signin"] .sgv__catch.is-on { color: rgb(var(--acc-rgb)); }
.evw__body[data-kind="signin"] .sgv__reset {
  margin: 0; display: flex; align-items: center; justify-content: center; gap: .45em;
  font-size: var(--fs-small); color: var(--ink-mute); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.evw__body[data-kind="signin"] .sgv__reset > b { font-weight: inherit; }
.evw__body[data-kind="signin"] .sgv__clock {
  position: relative; width: 1em; height: 1em; flex: none; border-radius: 50%;
  box-shadow: inset 0 0 0 .1em var(--brass-hi);
}
.evw__body[data-kind="signin"] .sgv__clock::after {
  content: ""; position: absolute; left: 45%; top: 22%; width: 30%; height: 33%;
  border-left: .1em solid var(--brass-hi); border-bottom: .1em solid var(--brass-hi);
}
.evw__body[data-kind="signin"] .sgv__go .sgv__gomark { width: 1.1em; height: 1.1em; margin-right: .35em; vertical-align: -.15em; }
.evw__body[data-kind="signin"] .sgv__go.is-done { opacity: 1; filter: saturate(.6); }

/* ---- mobile mode (a landscape phone): a tighter frame and side, smaller days. The month is never
   scrolled, so its five rows and title fit the smallest mobile window stage: height-bound it is
   390 / (1.12 L x .75) = 464px (gui/mode.ts), the body 384px of it; title 24 + 5 x 4.2em + 4 gaps
   = 376px. 5.7em cut days 29-30 off any stage under ~575px (an iPhone with Safari's bars, #427). */
html.m-mobile .evw__body[data-kind="signin"] .sgv { --side-min: 11.5em; --S: 4.2em; grid-template-columns: max-content minmax(var(--side-min), 15em); gap: .6em; }
html.m-mobile .evw__body[data-kind="signin"] .sgv__cal { gap: .4em; }
html.m-mobile .evw__body[data-kind="signin"] .sgv__title { font-size: var(--fs-heading); }
html.m-mobile .evw__body[data-kind="signin"] .sgv__days { gap: .25em; }
html.m-mobile .evw__body[data-kind="signin"] .sgv__side { padding: .5em .6em .6em; gap: .45em; }
html.m-mobile .evw__body[data-kind="signin"] .sgv__hero { gap: .3em; }
html.m-mobile .evw__body[data-kind="signin"] .sgv__stage { min-height: 3em; }
html.m-mobile .evw__body[data-kind="signin"] .sgv__lbl { font-size: var(--fs-badge); padding: .15em .6em; }
html.m-mobile .evw__body[data-kind="signin"] .sgv__name { font-size: 1em; }
html.m-mobile .evw__body[data-kind="signin"] .sgv__qty { font-size: var(--fs-heading); }
html.m-mobile .evw__body[data-kind="signin"] .sgv__next { padding-top: .3em; gap: .45em; }
html.m-mobile .evw__body[data-kind="signin"] .sgv__foot { gap: .3em; }

@media (prefers-reduced-motion: reduce) {
  .evw__body[data-kind="signin"] .sgv__day.is-fresh .sgv__check,
  .evw__body[data-kind="signin"] .sgv__day.is-now.is-open::before { animation: none; }
}

/* ---- w-events.css */
/* THE EVENT CENTER (panels/events.ts, window `events`, #410): no title bar (owner, 2026-11-01).
   Desktop mode: a full-screen page over the dimmed, softened world, no window ground - the timeline
   rail on the left, each card a strip of its event's key art under its title and time; the picked card's page on
   the right, shown directly; the close at the top right. Mobile mode: the same layout in a window's
   ground filling the frame. Each mode laid out on its own (html.m-desktop / html.m-mobile); everything in em of
   --win-size. Each card wears its accent, deep ground and motif (00-tokens.css --ev-*), keyed on
   data-ev; the brass is the fallback (banners wear it). */

/* ---- each card's accent, ground and motif: the rail's card, the spread and a view read these */
.evw [data-ev] {
  --acc-rgb: var(--ev-brass-rgb); --deep: var(--ev-brass-deep);
  --motif: radial-gradient(circle at 80% 40%, rgba(var(--acc-rgb), .18), transparent 60%);
}
.evw [data-ev="first_topup"] {
  --acc-rgb: var(--ev-topup-rgb); --deep: var(--ev-topup-deep);
  /* a night sky through a bedroom window: soft stars, a warm lamp glow rising from the lower left */
  --motif:
    radial-gradient(circle, rgba(var(--ev-topup-2-rgb), .55) 0 1px, transparent 1.6px) .4em .8em / 2.9em 2.9em,
    radial-gradient(ellipse at 15% 110%, rgba(var(--acc-rgb), .4), transparent 60%);
}
.evw [data-ev="pass"] {
  --acc-rgb: var(--ev-pass-rgb); --deep: var(--ev-pass-deep);
  /* orbits: rings round a point near the right edge, cut off by it */
  --motif:
    repeating-radial-gradient(circle at 92% 30%, transparent 0 2.8em, rgba(var(--acc-rgb), .26) 2.8em calc(2.8em + 1px), transparent calc(2.8em + 1px) 4.6em),
    radial-gradient(ellipse at 20% 50%, rgba(var(--acc-rgb), .22), transparent 60%);
}
.evw [data-ev="signin"] {
  --acc-rgb: var(--ev-signin-rgb); --deep: var(--ev-signin-deep);
  /* a calendar page: a grid ruled from the top-left corner, dawn light from the left */
  --motif:
    linear-gradient(rgba(var(--acc-rgb), .15) 1px, transparent 1px) 0 0 / 100% 2.2em,
    linear-gradient(90deg, rgba(var(--acc-rgb), .15) 1px, transparent 1px) 0 0 / 2.2em 100%,
    radial-gradient(ellipse at 0% 60%, rgba(var(--acc-rgb), .3), transparent 65%);
}
.evw [data-ev="journey"] {
  --acc-rgb: var(--ev-journey-rgb); --deep: var(--ev-journey-deep);
  /* milestones up a slope: a dotted line climbing to the top-right, the summit's glow above it */
  --motif:
    repeating-linear-gradient(-28deg, transparent 0 2.4em, rgba(var(--acc-rgb), .22) 2.4em calc(2.4em + 2px), transparent calc(2.4em + 2px) 4.8em),
    radial-gradient(ellipse at 88% 8%, rgba(var(--acc-rgb), .32), transparent 60%);
}

.evw [data-ev="event_halloween"] {
  --acc-rgb: var(--ev-night-rgb); --deep: var(--ev-night-deep);
  /* the long night: a pale moon high on the right, embers drifting up from the foot */
  --motif:
    radial-gradient(circle, rgba(var(--acc-rgb), .55) 0 1px, transparent 1.7px) .6em 1.2em / 3.1em 3.7em,
    radial-gradient(circle at 84% 22%, rgba(var(--ev-night-2-rgb), .38) 0 2.2em, transparent 2.3em),
    radial-gradient(ellipse at 40% 120%, rgba(var(--acc-rgb), .32), transparent 65%);
}

/* ---- the window: the page element is the whole stage, the box in it is the window; the dim is its
   veil (win.ts `.scrim--evw`, a .bleed over the whole glass, notch strips included) */
.wins > .scrim--evw { background: var(--ev-veil); animation: evw-in .14s ease-out; }
.wins > .win.evw {
  inset: 0; width: auto; max-width: none; height: auto; max-height: none; min-width: 0;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  padding: 1.4em 1.6em;
  background: none; box-shadow: none;
  animation: evw-in .14s ease-out;
}
.wins > .win.evw::before, .wins > .win.evw::after { content: none; }
/* The world softened behind it on a desktop; a touch device only dims it (a full-screen blur over
   the canvas is paid every frame). */
html.m-desktop .wins > .scrim--evw { backdrop-filter: blur(6px); }
@media (hover: none) and (pointer: coarse) { html.m-desktop .wins > .scrim--evw { backdrop-filter: none; } }
@keyframes evw-in { from { opacity: 0; } }

/* Desktop mode: the rail and the page are one bounded group centred on the dimmed world (owner,
   2026-11-01: "that doesnt have to be full"), so the eye never travels across the whole screen; the
   page is a window of its own beside the rail. */
.evw__box {
  position: relative; box-sizing: border-box;
  width: 100em; height: 50em; max-width: 100%; max-height: 100%;
  display: grid; grid-template-columns: minmax(17em, 22em) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 1.4em;
}
/* Mobile mode keeps a window's ground, its brass corners and engraved plane; the desktop page has none. */
html.m-mobile .evw__box { background: var(--win-arc), var(--win-bg); box-shadow: var(--win-ring), var(--win-shadow); }
html.m-mobile .evw__box::after, html.m-desktop .evw__pane::after {   /* the window's brass corners and engraved plane (20-components.css .wins > .win::after) */
  --plane: 5px;
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background:
    var(--art-corner-tl) left top / var(--corner-size) var(--corner-size) no-repeat,
    var(--art-corner-br) right bottom / var(--corner-size) var(--corner-size) no-repeat,
    linear-gradient(var(--win-plane), var(--win-plane)) left var(--plane) top var(--plane) / calc(100% - 2 * var(--plane)) 1px no-repeat,
    linear-gradient(var(--win-plane), var(--win-plane)) left var(--plane) bottom var(--plane) / calc(100% - 2 * var(--plane)) 1px no-repeat,
    linear-gradient(var(--win-plane), var(--win-plane)) left var(--plane) top var(--plane) / 1px calc(100% - 2 * var(--plane)) no-repeat,
    linear-gradient(var(--win-plane), var(--win-plane)) right var(--plane) top var(--plane) / 1px calc(100% - 2 * var(--plane)) no-repeat;
}
/* The close stands in the page's head band, at its right end, centred on it (the head keeps its
   room free: .evw__head padding-right). */
.evw__close { position: absolute; z-index: 5; top: .5em; right: .55em; font-size: 1.3em; }

/* ---- the rail (owner, 2026-10-10, back 2026-11-01): a hairline down the very left with a short tick
   capping each end, a ring per card on it (the picked one filled and haloed), the cards stacked to
   its right. Any number of cards scrolls, with no scrollbar: the stack fades out at its top and
   bottom edges (.fade-edges), so a card leaving the view goes see-through rather than being cut. */
.evw__rail { position: relative; display: flex; min-height: 0; --node-x: 1.2em; --fade: 3em; }
.evw__line {
  position: absolute; left: var(--node-x); top: .9em; bottom: .9em; width: 1px; translate: -50% 0;
  background: linear-gradient(rgba(var(--sky-rgb), .1), rgba(var(--sky-rgb), .45) 12%, rgba(var(--sky-rgb), .45) 88%, rgba(var(--sky-rgb), .1));
}
.evw__line::before, .evw__line::after {   /* the end ticks, standing off the line */
  content: ""; position: absolute; left: 50%; width: 2px; height: .55em; translate: -50% 0;
  background: var(--ink-strong); opacity: .8;
}
.evw__line::before { top: -.9em; }
.evw__line::after { bottom: -.9em; }
.evw__stack {
  display: flex; flex-direction: column; gap: 1.1em; width: 100%;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: .3em .6em .3em 0;
}
.evw__stack::-webkit-scrollbar { display: none; }
.evw__stack > :first-child { margin-top: auto; }
.evw__stack > :last-child { margin-bottom: auto; }
.evw__item { display: grid; grid-template-columns: calc(var(--node-x) * 2) minmax(0, 1fr); column-gap: 1.2em; align-items: center; flex: none; }
.evw__node {                        /* a white ring on the line, the night showing through it */
  justify-self: center; position: relative; z-index: 1; box-sizing: border-box;
  width: .8em; height: .8em; border-radius: 50%;
  background: var(--navy-0); border: 2px solid var(--ink-strong);
  box-shadow: 0 0 .3em rgba(var(--shadow-ink), .8);
  transition: box-shadow .15s, background .15s;
}
.evw__item.is-on .evw__node {        /* the picked one: filled in its accent, in a faint halo */
  background: rgb(var(--acc-rgb));
  box-shadow: 0 0 0 .45em rgba(var(--ink-strong-rgb), .12), 0 0 0 .5em rgba(var(--ink-strong-rgb), .18), 0 0 1em rgba(var(--acc-rgb), .8);
}

.evw__card {
  position: relative; display: block; width: 100%; aspect-ratio: 3.4 / 1; min-height: 4.4em;
  padding: 0; border: 0; border-radius: 0; overflow: hidden;
  background: var(--deep); color: var(--ink); text-align: left; font: inherit;
  cursor: var(--cur-hand, pointer);
  box-shadow: 0 0 0 1px rgba(var(--brass-rgb), .3), 0 .4em 1em rgba(var(--shadow-ink), .5);
  filter: var(--ev-dim);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.evw__card:hover { filter: saturate(.8) brightness(.92); }
.evw__item.is-on .evw__card {
  filter: none; transform: translateX(.35em);
  box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .9), 0 0 0 .15em rgb(var(--acc-rgb)), 0 0 1.4em rgba(var(--acc-rgb), .45), 0 .4em 1em rgba(var(--shadow-ink), .5);
}
/* The strip's picture: the key art (written inline, events.ts), or the motif with the painted tile
   standing at its right end. */
.evw__pic { position: absolute; inset: 0; background: var(--motif), var(--deep); }
.evw__pic > img.g { position: absolute; right: 4%; top: 50%; height: 130%; translate: 0 -50%; opacity: .9; filter: drop-shadow(0 0 .8em rgba(var(--acc-rgb), .5)); }
.evw__card::after {                 /* the words' shade, from the left */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--wash-rgb), .88), rgba(var(--wash-rgb), .4) 58%, transparent);
}
.evw__words {
  position: absolute; z-index: 2; left: .8em; right: 1.6em; top: .55em; bottom: .5em;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
}
.evw__foot { margin-top: auto; display: flex; flex-direction: column; gap: .1em; max-width: 100%; min-width: 0; }
.evw__pill {
  font-size: var(--fs-badge); line-height: 1.5; padding: 0 .7em; border-radius: 999px;
  background: rgba(var(--wash-rgb), .78); color: var(--ink); white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .5); font-variant-numeric: tabular-nums;
}
.evw__name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--face-ui); font-weight: 700; font-size: var(--fs-heading); line-height: 1.15;
  color: var(--ink-strong); text-shadow: var(--win-title-shadow);
}
.evw__item.is-on .evw__name { color: rgb(var(--acc-rgb)); }
.evw__sub {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--fs-small); line-height: 1.2; color: var(--ink); text-shadow: var(--win-title-shadow);
}
.evw__sub[hidden], .evw__pill[hidden] { display: none; }
/* Every time left stands top right (owner, 2026-11-01): a card's in its corner, the red dot on the
   pill's corner; the page's at the head's right end, before the slot. */
.evw__card > .evw__pill { position: absolute; z-index: 2; top: .5em; right: .6em; }
.evw__badge { z-index: 3; right: .3em; top: .25em; }

/* ---- the page: a slim head strip over the card's own content */
.evw__pane, .evw__none { grid-area: 1 / 2; }
.evw__pane[hidden] { display: none; }
.evw__none { place-self: center; color: var(--ink-mute); font-size: var(--fs-heading); }
.evw__pane { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .7em; }
.evw__head {          /* minimal (owner, 2026-11-01): the title and time on the ground, a hairline under */
  position: relative; display: flex; align-items: center; gap: .8em;
  min-height: 3em; padding: .35em 3.6em .35em .1em;
  box-shadow: 0 1px 0 rgba(var(--acc-rgb), .35);
}
/* Desktop mode: the page is a window (its ground, ring, brass corners); the content under the head
   inset from the window's edges. */
html.m-desktop .evw__pane { gap: 0; background: var(--win-arc), var(--win-bg); box-shadow: var(--win-ring); }
html.m-desktop .evw__head { min-height: 3.8em; margin: 0 1.3em; padding-right: 3em; }
html.m-desktop .evw__close { top: .62em; right: .7em; }
html.m-desktop .evw__host { padding: 1.1em 1.3em 1.3em; }
.evw__htext { flex: 1; display: flex; align-items: baseline; gap: .8em; min-width: 0; }
.evw__head > .evw__pill { flex: none; }
.evw__title {
  margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--face-display); font-weight: var(--face-display-weight);
  font-size: calc(var(--win-size) * 1.55); line-height: 1.1; color: var(--ink-strong);
  text-shadow: 0 0 1em rgba(var(--acc-rgb), .5), 0 .06em .12em rgba(var(--shadow-ink), .9);
}
.evw__slot { margin-left: auto; display: flex; align-items: center; gap: .5em; }
.evw__slot:empty { display: none; }
.evw__host { position: relative; min-width: 0; min-height: 0; display: flex; }
.evw__body { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; animation: evw-page .16s ease-out; }
@keyframes evw-page { from { opacity: 0; translate: 0 .6em; } }

/* ---- a plain page (the First Top Up, a banner), minimal (owner, 2026-11-01): the picture whole,
   at its own shape; under it one line - the words and the prizes at the left, the one call to action
   at the right; the two centred together in the page. The page scrolls only when it must. */
.evw__plain {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin;
  display: flex; flex-direction: column; justify-content: center; gap: 1.1em;
}
.evw__art {
  flex: none; aspect-ratio: 25 / 8; max-height: 70%; align-self: center; max-width: 100%; width: 100%;
  border-radius: .6em; overflow: hidden; background: var(--deep);
  box-shadow: 0 .4em 1.2em rgba(var(--shadow-ink), .5);
}
.evw__art[hidden] { display: none; }
.evw__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.evw__pfoot { flex: none; display: flex; align-items: center; gap: 1.2em; }
.evw__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .5em; }
.evw__period { font-size: var(--fs-small); color: var(--ink-mute); }
.evw__tag {
  font-size: var(--fs-small); line-height: 1.6; padding: 0 .8em; border-radius: 999px; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  background: rgba(var(--acc-rgb), .22); color: var(--ink-strong); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .6);
}
.evw__tag:empty { display: none; }
.evw__text { margin: 0; color: var(--ink); line-height: 1.45; white-space: pre-line; }
.evw__prizes { display: flex; flex-wrap: wrap; gap: .4em; }
.evw__prizes:empty { display: none; }
.evw__ctas { flex: none; display: flex; align-items: center; gap: .6em; }
/* The call to action: a rounded brass pill (owner, 2026-10-31, after the reference's "Go"). */
.btn.evw__go {
  --btn-rim: rgba(var(--brass-rgb), .95);
  border-radius: 999px; padding: .5em 2em; min-width: 7em;
  color: var(--navy-0); text-shadow: none; font-weight: 700;
  filter: drop-shadow(0 0 .6em rgba(var(--acc-rgb), .4)) drop-shadow(0 .2em .3em rgba(var(--shadow-ink), .6));
}
.btn.evw__go::before {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--brass-pale-rgb), 1), rgba(var(--brass-rgb), 1) 60%, rgba(var(--brass-rgb), .85));
}
.btn.evw__go:hover { filter: drop-shadow(0 0 .9em rgba(var(--acc-rgb), .7)) drop-shadow(0 .2em .3em rgba(var(--shadow-ink), .6)) brightness(1.08); }
.btn.evw__go:disabled { filter: grayscale(.7) brightness(.7); }
.btn.evw__go[hidden] { display: none; }
/* The First Top Up Prize's Claim: dim until the account has paid, then it breathes (events.ts is-ready). */
.btn.evw__go.is-ready { animation: evw-ready 1.8s ease-in-out infinite; }
@keyframes evw-ready {
  50% { filter: drop-shadow(0 0 1.2em rgba(var(--acc-rgb), .95)) drop-shadow(0 .2em .3em rgba(var(--shadow-ink), .6)) brightness(1.12); }
}
/* Go to quest's question: Story or Daily, side by side. */
.ask__go { display: flex; gap: .6em; justify-content: center; padding: .4em 0; }
.ask__go > .btn { flex: 1 1 0; }

/* ---- mobile mode (phones on their side: the height is the constraint): the box is the whole frame,
   a slim list of compact cards, the close and every button at least 44 px */
html.m-mobile .wins > .win.evw { padding: 0; }
html.m-mobile .evw__box {
  width: 100%; height: 100%; grid-template-columns: minmax(11.5em, 14em) minmax(0, 1fr); gap: .5em; padding: .45em;
}
html.m-mobile .evw__close { top: .3em; right: .3em; min-width: var(--hit); min-height: var(--hit); display: grid; place-items: center; }
html.m-mobile .evw__rail { --node-x: .8em; --fade: 1.5em; }
html.m-mobile .evw__item { column-gap: .6em; }
html.m-mobile .evw__stack { gap: .6em; }
html.m-mobile .evw__card { min-height: 3.4em; }
html.m-mobile .evw__words { left: .5em; right: 1em; top: .35em; bottom: .3em; }
html.m-mobile .evw__card > .evw__pill { top: .35em; right: .5em; }
html.m-mobile .evw__name { font-size: var(--fs-small); }
html.m-mobile .evw__sub { font-size: var(--fs-badge); }
html.m-mobile .evw__pane { gap: .45em; }
html.m-mobile .evw__head { min-height: var(--hit); padding: .1em 3.4em .1em .3em; gap: .5em; }
html.m-mobile .evw__slot > .btn { min-height: var(--hit); }
html.m-mobile .evw__title { font-size: calc(var(--win-size) * 1.2); }
html.m-mobile .evw__text { font-size: var(--fs-small); }
html.m-mobile .btn.evw__go { min-height: var(--hit); min-width: 6em; padding-inline: 1.5em; }

@media (prefers-reduced-motion: reduce) {
  .wins > .win.evw, .evw__body, .btn.evw__go.is-ready { animation: none; }
  .evw__card, .evw__node { transition: none; }
}

/* ---- w-fortuna.css */
/* THE FORTUNA WINDOW (panels/fortuna.ts, window `fortuna`): the Gacha Banners' lobby. A page, not a
   window (as the Event Center): a starry night with a slow aurora, Fortuna at the centre in a soft
   light (a glow, never a ring or a star wheel behind her: owner, 2026-10-31), her name and
   one line top left, the close top right, and in front of her lower half a row of tall gold-framed
   banner cards, up to six at full size and all shrinking to fit the width past that (never
   scrolled), her face and upper body above and between them. A card opens its banner
   (panels/fortuna-banner.ts, `.gcv` below): its key art over the page, a bar with a back control,
   a rail of every banner down the left. THE PULL is gacha-fx.ts's (ui/56-gfx.css).
   The house colours are the goddess's: ivory --ftn-ivory, gold --ftn-gold, night blue --ftn-night.
   No new texture: the sky, the aurora, the stars, the glow, the frames and the sheen are CSS; the
   only pictures are the goddess and the banners' key art, in the DOM only while the page is open.
   Motion is transform and opacity only (the aurora drifts, the stars breathe, she floats, a sheen
   crosses a card under the pointer), off under reduced motion. Desktop and mobile mode are laid out
   each on its own (html.m-desktop / html.m-mobile); sizes inside a mode follow the page's own box
   (cq units of the `ftn` container), never the viewport. */

/* ---- the page */
.wins > .win.ftn {
  --ftn-ivory: #f4efe4; --ftn-ivory-rgb: 244, 239, 228;
  --ftn-gold: #e8c872; --ftn-gold-rgb: 232, 200, 114;
  --ftn-night: #1d2a5c; --ftn-night-rgb: 29, 42, 92;
  --ftn-gold-line: linear-gradient(90deg, transparent, rgba(var(--ftn-gold-rgb), .9) 20%, var(--ftn-ivory) 50%, rgba(var(--ftn-gold-rgb), .9) 80%, transparent);
  --acc-rgb: var(--ftn-gold-rgb);
  --tier-s: 186, 120, 255;
  --deep: #141b3d;
  --wash: rgba(var(--wash-rgb), .9);
  --pad-t: 1.3em; --pad-r: 1.6em; --pad-b: 1.1em; --pad-l: 1.6em;
  inset: 0; width: auto; max-width: none; height: auto; max-height: none; min-width: 0;
  padding: var(--pad-t) var(--pad-r) var(--pad-b) var(--pad-l);
  overflow: hidden; isolation: isolate; container: ftn / size;
  background: #050816; box-shadow: none;
  animation: ftn-in .22s ease-out;
}
.wins > .win.ftn::before, .wins > .win.ftn::after { content: none; }
/* Its night past the stage's edges (the notch and home bar strips): the page's veil (win.ts). */
.wins > .scrim--ftn { background: #050816; animation: ftn-in .22s ease-out; }
.ftn [hidden] { display: none !important; }
@keyframes ftn-in { from { opacity: 0; } }
.ftn__close { position: absolute; z-index: 6; top: .6em; right: .8em; font-size: 1.3em; }

/* The `?` on this page: a small night disc in a gold ring, the glyph in ivory (the cream disc of
   20-components.css would shout on the night). Its touch hit area is widened without growing it. */
.ftn .help.ibtn {
  width: 1.7em; height: 1.7em; font-size: .85em; vertical-align: middle;
  background: radial-gradient(circle at 50% 35%, rgba(var(--ftn-night-rgb), .95), rgba(var(--wash-rgb), .95));
  border: 1px solid rgba(var(--ftn-gold-rgb), .75); color: var(--ftn-ivory);
  box-shadow: 0 0 .6em rgba(var(--ftn-gold-rgb), .25);
}
.ftn .help.ibtn::after { border-color: rgba(var(--ftn-gold-rgb), .5); }
.ftn .help.ibtn:hover, .ftn .help.ibtn:focus-visible { color: var(--ftn-gold); border-color: var(--ftn-gold); box-shadow: 0 0 .9em rgba(var(--ftn-gold-rgb), .5); outline: none; }
html.m-mobile .ftn .help.ibtn::before { content: ""; position: absolute; inset: -12px; }

/* ---- the sky: the night, two aurora veils drifting apart, the stars, the light behind her, a gold
   floor glow under the cards */
.ftn__sky {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 48% at 50% 34%, rgba(var(--ftn-night-rgb), .9), transparent 72%),
    radial-gradient(ellipse 40% 60% at 6% 20%, rgba(70, 40, 120, .3), transparent 70%),
    radial-gradient(ellipse 40% 60% at 94% 26%, rgba(30, 70, 120, .3), transparent 70%),
    linear-gradient(180deg, #060a1a, #0b1234 46%, #060a18);
}
.ftn__aurora {
  position: absolute; left: -25%; width: 150%; top: -12%; height: 64%;
  background: linear-gradient(102deg, transparent 18%, rgba(110, 214, 255, .22) 32%, rgba(150, 120, 255, .24) 46%, rgba(var(--ftn-gold-rgb), .14) 58%, transparent 74%);
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 75%);
  mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 75%);
  transform: rotate(-8deg); opacity: .9;
  animation: ftn-drift 22s ease-in-out infinite alternate;
}
.ftn__aurora--b {
  top: 4%; height: 54%; opacity: .7;
  background: linear-gradient(78deg, transparent 22%, rgba(186, 120, 255, .2) 38%, rgba(110, 214, 255, .14) 52%, transparent 70%);
  transform: rotate(9deg); animation-duration: 28s; animation-direction: alternate-reverse;
}
@keyframes ftn-drift {
  from { translate: -4% 0; }
  to { translate: 4% 2%; }
}
.ftn__stars {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 23px 31px, rgba(var(--sky-rgb), .7) 0 .8px, transparent 1.5px) 0 0 / 211px 173px,
    radial-gradient(circle at 141px 12px, rgba(var(--sky-rgb), .5) 0 .7px, transparent 1.3px) 0 0 / 211px 173px,
    radial-gradient(circle at 96px 88px, rgba(var(--ftn-gold-rgb), .6) 0 .9px, transparent 1.6px) 0 0 / 211px 173px,
    radial-gradient(circle at 187px 131px, rgba(var(--sky-rgb), .45) 0 .6px, transparent 1.2px) 0 0 / 211px 173px,
    radial-gradient(circle at 71px 59px, rgba(var(--sky-rgb), .55) 0 .7px, transparent 1.3px) 0 0 / 307px 241px,
    radial-gradient(circle at 160px 70px, rgba(var(--ftn-gold-rgb), .45) 0 1px, transparent 1.8px) 0 0 / 307px 241px,
    radial-gradient(circle at 250px 190px, rgba(var(--sky-rgb), .4) 0 .6px, transparent 1.2px) 0 0 / 307px 241px;
  animation: ftn-twinkle 5s ease-in-out infinite alternate;
}
@keyframes ftn-twinkle { from { opacity: .55; } to { opacity: 1; } }
/* the light behind her: a soft glow only, no ring, no rays */
.ftn__halo {
  position: absolute; left: 50%; top: 0; height: 70%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--ftn-ivory-rgb), .26), rgba(var(--ftn-gold-rgb), .12) 45%, rgba(110, 130, 255, .06) 72%, transparent);
  animation: ftn-halo 7s ease-in-out infinite alternate;
}
@keyframes ftn-halo { from { opacity: .75; scale: .97; } to { opacity: 1; scale: 1.03; } }
.ftn__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: radial-gradient(ellipse 55% 70% at 50% 100%, rgba(var(--ftn-gold-rgb), .22), rgba(var(--ftn-night-rgb), .25) 55%, transparent 80%);
}

/* ---- the goddess (998x1372, crown to feet): centred and large, so her face and upper body stand
   above the cards and her lower half behind them */
.ftn__goddess {
  position: absolute; z-index: 1; left: 50%; top: 1%; height: 118%; width: auto; translate: -50% 0;
  pointer-events: none; user-select: none; -webkit-user-select: none;
  filter: drop-shadow(0 0 1.4em rgba(var(--ftn-ivory-rgb), .2));
  animation: ftn-float 7s ease-in-out infinite alternate;
}
@keyframes ftn-float { from { transform: translateY(-.6%); } to { transform: translateY(.6%); } }

/* ---- the lobby: her name, the `?` and the line top left, the cards a little above the foot */
.ftn__lobby {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); pointer-events: none;
}
.ftn__lobby > * { pointer-events: auto; }
.ftn__head { justify-self: start; display: grid; gap: .25em; max-width: 34em; }
.ftn__name { display: flex; align-items: center; gap: .6em; }
.ftn__title {
  margin: 0; font-family: var(--face-display); font-weight: var(--face-display-weight);
  font-size: calc(var(--fs-title) * 1.7); line-height: 1; letter-spacing: .14em; color: var(--ftn-ivory);
  background: linear-gradient(180deg, var(--ftn-ivory) 20%, var(--ftn-gold) 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 .35em rgba(var(--ftn-gold-rgb), .45)) drop-shadow(0 2px 0 rgba(var(--shadow-ink), .9));
}
.ftn__lore { margin: 0; font-size: var(--fs-small); color: rgba(var(--ftn-ivory-rgb), .8); font-style: italic; text-shadow: 0 1px 2px rgba(var(--shadow-ink), .9); }

/* The row: every card the same tall card, side by side. A card's height is capped (--ch, a share
   of the page's height); its width is that height's 9:16, or the row's width shared out among the
   --n cards when that is less, so six fit at full size on a desktop and any count shrinks to fit. */
.ftn__row {
  --gap: clamp(.6em, 1.4cqw, 1.2em);
  --ch: min(54cqh, 32em);
  align-self: end; justify-self: center; width: 100%; min-width: 0; margin-bottom: 7cqh;
  container-type: inline-size;
  display: flex; justify-content: center; align-items: flex-end; gap: var(--gap);
}
.ftn__card {
  position: relative; flex: none; min-width: 0;
  width: min(calc(var(--ch) * .5625), calc((100cqw - var(--gap) * (var(--n) - 1)) / var(--n)));
  aspect-ratio: 9 / 16;
  container-type: inline-size; padding: 0; border: 0; border-radius: 0; background: none; cursor: var(--cur-hand, pointer);
  filter: drop-shadow(0 1em 1.4em rgba(var(--shadow-ink), .7));
  transition: transform .2s ease-out, filter .2s ease-out;
}
/* the face: the key art, glaze and sheen, clipped to the inside of the painted gold line (card-frame.png:
   the line runs 1.7% in from the sides, 3.5% from the top under the crest, 2.7% from the foot) */
.ftn__card-face { position: absolute; inset: 3.5% 1.5% 2.7% 1.7%; overflow: hidden; border-radius: 4cqi; background: var(--ftn-night); }
/* the painted border (ui/fortuna/card-frame, 9:16 like the card): over everything, never in the way */
.ftn__card-frame { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--ftn-frame) center / 100% 100% no-repeat; }
.ftn__card-art { position: absolute; inset: 0; }
.ftn__card-img { width: 100%; height: 100%; object-fit: cover; object-position: 21% 50%; display: block; transition: scale .5s ease-out; }
/* the glaze: the night rising from the foot under the plate, a lit top edge, the inner frame - a gold
   line, a night gap, an ivory hairline */
.ftn__card-glaze {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(var(--wash-rgb), .97) 0, rgba(var(--ftn-night-rgb), .88) 24%, rgba(var(--ftn-night-rgb), .3) 46%, transparent 60%),
    linear-gradient(180deg, rgba(var(--wash-rgb), .55), transparent 20%);
  box-shadow: inset 0 0 3em rgba(var(--wash-rgb), .5);
}
/* the sheen: a band of light that crosses the card on hover and focus */
.ftn__card-sheen {
  position: absolute; inset: -10% -70%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(var(--ftn-ivory-rgb), .08) 46%, rgba(255, 255, 255, .28) 50%, rgba(var(--ftn-gold-rgb), .12) 54%, transparent 58%);
  transform: translateX(-45%);
}
.ftn__card:hover, .ftn__card:focus-visible {
  transform: translateY(-.5em);
  filter: drop-shadow(0 0 1.2em rgba(var(--ftn-gold-rgb), .45)) drop-shadow(0 1.2em 1.4em rgba(var(--shadow-ink), .75));
}
.ftn__card:hover .ftn__card-img, .ftn__card:focus-visible .ftn__card-img { scale: 1.04; }
.ftn__card:hover .ftn__card-sheen, .ftn__card:focus-visible .ftn__card-sheen { opacity: 1; transform: translateX(45%); transition: transform .8s ease-out, opacity .2s; }
.ftn__card.is-down, .ftn__card:active { transform: translateY(-.1em) scale(.985); }
.ftn__card:focus-visible { outline: none; }

/* the top: the pity ring at the left, the time left at the right */
.ftn__card-top {
  position: absolute; left: 0; right: 0; top: 0; padding: 10cqi 7cqi 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 3cqi;
}
.ftn__card-pity {
  --p: 0; position: relative; flex: none; width: max(26px, 17cqi); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, rgba(var(--wash-rgb), .92) calc(100% - max(3px, 2.4cqi)), transparent calc(100% - max(3px, 2.4cqi) + .5px)),
    conic-gradient(var(--ftn-gold) calc(var(--p) * 1turn), rgba(var(--ftn-ivory-rgb), .2) 0);
  box-shadow: 0 0 .7em rgba(var(--ftn-gold-rgb), .4), 0 .1em .3em rgba(var(--shadow-ink), .8);
}
.ftn__card-pity > b { font-size: clamp(9px, 6.4cqi, var(--fs-small)); color: var(--ftn-ivory); font-variant-numeric: tabular-nums; line-height: 1; }
.ftn__card-time {
  margin-left: auto; display: inline-flex; align-items: center; gap: .4em; padding: .25em .7em; border-radius: 1em;
  font-size: clamp(9px, 6cqi, var(--fs-small)); white-space: nowrap; color: var(--ftn-ivory);
  background: rgba(var(--wash-rgb), .82); box-shadow: inset 0 0 0 1px rgba(var(--ftn-gold-rgb), .55);
}
.ftn__clock {
  position: relative; flex: none; width: 1em; height: 1em; border-radius: 50%; box-sizing: border-box; border: .12em solid currentColor;
}
.ftn__clock::before, .ftn__clock::after {
  content: ""; position: absolute; left: 50%; bottom: 50%; width: .1em; translate: -50% 0; transform-origin: 50% 100%;
  background: currentColor; border-radius: .05em;
}
.ftn__clock::before { height: .32em; }
.ftn__clock::after { height: .24em; rotate: 90deg; }

/* the plate: the title */
.ftn__card-foot {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 8cqi 13cqi;
  display: flex; flex-direction: column; align-items: center; gap: 3.5cqi; text-align: center;
}
.ftn__card-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-family: var(--face-display); font-weight: var(--face-display-weight); font-size: clamp(10px, 9.5cqi, 1.45em); line-height: 1.1;
  letter-spacing: .05em; color: var(--ftn-ivory); text-shadow: 0 1px 2px rgba(var(--shadow-ink), .95), 0 0 .7em rgba(var(--ftn-gold-rgb), .3);
}
/* shut (outside its window): the art dims, one pill says why; still pressable, to read its odds */
.ftn__card.is-shut .ftn__card-img { filter: grayscale(.7) brightness(.55); }
.ftn__card-shut {
  position: absolute; left: 50%; top: 40%; translate: -50% -50%; white-space: nowrap;
  padding: .35em .9em; border-radius: 1em; font-size: clamp(9px, 7cqi, var(--fs-heading)); font-weight: 700; letter-spacing: .06em;
  color: var(--ftn-ivory); background: rgba(var(--wash-rgb), .88); box-shadow: inset 0 0 0 1px rgba(var(--ftn-ivory-rgb), .35);
}
.ftn__none { align-self: end; justify-self: center; margin-bottom: 12cqh; max-width: 26em; background: rgba(var(--wash-rgb), .8); }

/* ---- mobile mode: the same page laid out for a short landscape screen: tighter edges, a smaller
   name, the line kept to one, the cards a bigger share of the height, the goddess's face between
   the name and the cards */
html.m-mobile .wins > .win.ftn { max-height: none; --pad-t: .6em; --pad-b: .5em; --pad-l: .9em; --pad-r: .9em; }
html.m-mobile .ftn__title { font-size: calc(var(--fs-title) * 1.25); }
html.m-mobile .ftn__lore { max-width: calc(100cqw - 6em); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.m-mobile .ftn__row { --ch: 64cqh; --gap: clamp(.4em, 1.2cqw, .8em); margin-bottom: 5cqh; }
html.m-mobile .ftn__card:hover { transform: none; }
html.m-mobile .ftn__card-top { padding: 9cqi 6cqi 0; }
html.m-mobile .ftn__card-foot { padding: 0 6cqi 12cqi; gap: 3cqi; }
html.m-mobile .ftn__halo { height: 80%; }
html.m-mobile .ftn__goddess { top: 0; height: 124%; }

/* A finger's device (tier.ts isTouch) keeps the sky still: each drifting veil, the twinkling stars,
   the halo and the floating goddess is its own compositor layer at device pixels while it moves (an
   aurora 150% of the page wide), tens of MB of GPU memory on a phone over the world's. Still, they
   paint into the page once. */
@media (hover: none) and (pointer: coarse) {
  .ftn__aurora, .ftn__stars, .ftn__halo, .ftn__goddess { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ftn__aurora, .ftn__stars, .ftn__halo, .ftn__goddess { animation: none; }
  .ftn__card, .ftn__card-sheen, .ftn__card-img { transition: none; }
}

/* ---- the banner view (owner, 2026-10-31: a gacha game's banner page). The stage is the banner's
   key art over the whole page, darkened at the left for the rail and at the right for the words;
   the view stands on it: the bar along the top (back, the purse, the close), the rail of every
   banner down the left, the banner itself (fortuna-banner.ts, `.gcv` below) in the rest. */
.ftn.is-inside .ftn__goddess, .ftn.is-inside .ftn__sky { visibility: hidden; }
.ftn__stage { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; background: #050816; }
.gcv__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 40%; animation: gcv-in .5s ease-out; }
@keyframes gcv-in { from { opacity: 0; scale: 1.04; } }
.gcv__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, .82), rgba(5, 8, 22, .35) 14%, transparent 26%),
    linear-gradient(270deg, rgba(5, 8, 22, .78), rgba(5, 8, 22, .45) 30%, transparent 52%),
    linear-gradient(0deg, rgba(5, 8, 22, .7), transparent 28%),
    linear-gradient(180deg, rgba(5, 8, 22, .6), transparent 16%);
}
.gcv__sheen {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(var(--ftn-ivory-rgb), .16) 48%, transparent 60%);
  animation: gcv-sheen 1.4s ease-out .15s 1;
}
@keyframes gcv-sheen { 0% { opacity: 1; transform: translateX(-60%); } 100% { opacity: 0; transform: translateX(60%); } }
.ftn__view {
  --rail-w: clamp(6.4em, 9cqw, 8.6em);
  position: relative; z-index: 3; height: 100%;
  display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  column-gap: clamp(1em, 2.2cqw, 2em); row-gap: .8em;
}
.ftn__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: .9em; min-width: 0; min-height: 2.6em; padding-right: 3.4em; /* the close */ }
/* The way back (owner, 2026-10-31: no capsule): a gold chevron and the word in the display face,
   spaced wide, over a hairline that fades to the right and lights up under the pointer. */
.ftn__back {
  position: relative; display: inline-flex; align-items: center; gap: .45em; padding: .35em .9em .45em .1em;
  border: 0; background: none; color: var(--ftn-ivory); cursor: var(--cur-hand, pointer);
  font-family: var(--face-display); font-weight: var(--face-display-weight); font-size: 1.05em; letter-spacing: .2em; text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95);
}
.ftn__back .ic { width: 1.2em; height: 1.2em; filter: drop-shadow(0 0 .3em rgba(var(--ftn-gold-rgb), .6)); transition: translate .2s; }
.ftn__back::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--ftn-gold), rgba(var(--ftn-gold-rgb), .35) 60%, transparent);
  transform-origin: left; scale: .55 1; transition: scale .25s ease-out;
}
.ftn__back:hover, .ftn__back:focus-visible { outline: none; color: #fff; }
.ftn__back:hover::after, .ftn__back:focus-visible::after { scale: 1 1; }
.ftn__back:hover .ic, .ftn__back:focus-visible .ic { translate: -.15em 0; }
.ftn__slot { margin-left: auto; display: inline-flex; align-items: center; }
.ftn .gcv__purse, .ftn .gcv__lumi, .ftn .gcv__tok { display: inline-flex; align-items: center; gap: .4em; }

/* The rail: one thumbnail per banner, its whole key art at the key art's own 16:9 (both modes); the
   open one bright in a gold ring with a pointer at its right, the others dimmed. Scrolls on its own
   past what fits. */
.ftn__rail {
  min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  display: flex; flex-direction: column; gap: .7em; padding: .2em .9em .2em .2em; margin-right: -.7em;
}
.ftn__rail::-webkit-scrollbar { display: none; }
.ftn__thumb {
  position: relative; flex: none; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: .35em;
  background: var(--ftn-night); cursor: var(--cur-hand, pointer);
  box-shadow: 0 0 0 1px rgba(var(--ftn-ivory-rgb), .3), 0 .3em .8em rgba(0, 0, 0, .6);
  opacity: .62; transition: opacity .2s, box-shadow .2s;
}
.ftn__thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.ftn__thumb:hover, .ftn__thumb:focus-visible { opacity: .9; outline: none; }
.ftn__thumb.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--ftn-gold), 0 0 1.1em rgba(var(--ftn-gold-rgb), .55), 0 .3em .8em rgba(0, 0, 0, .6); }
.ftn__thumb.is-on::after {
  content: ""; position: absolute; top: 50%; right: -.75em; translate: 0 -50%;
  border: .35em solid transparent; border-right: .45em solid var(--ftn-gold); filter: drop-shadow(0 0 .3em rgba(var(--ftn-gold-rgb), .8));
}
.ftn__thumb.is-shut .ftn__thumb-img { filter: grayscale(.7) brightness(.6); }
.ftn__host { grid-column: 2; min-height: 0; min-width: 0; position: relative; }

/* ======================================================================= THE BANNER (fortuna-banner.ts)
   Top right the words (title, the S prizes, the time, the pity), bottom left Details and Pull
   history, bottom right the terms band (pity prize, payment, reason) and the two pulls. Every word stands on the art with a
   shadow; no boxes but the buttons. */
.ftn .gcv {
  --info-w: clamp(22em, 36cqw, 30em);
  height: 100%; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--info-w)); grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 1.5em; row-gap: .8em;
  color: var(--ftn-ivory); text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 .8em rgba(0, 0, 0, .6);
}
.gcv__info { grid-column: 2; grid-row: 1; align-self: start; min-height: 0; display: grid; justify-items: end; gap: .7em; text-align: right; }
.gcv__title {
  margin: 0; font-family: var(--face-display); font-weight: var(--face-display-weight);
  font-size: clamp(2em, 4.4cqw, 3.5em); line-height: 1.02; letter-spacing: .03em; text-wrap: balance;
  background: linear-gradient(180deg, #fff 10%, var(--ftn-ivory) 45%, var(--ftn-gold) 92%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 .3em rgba(var(--ftn-gold-rgb), .5)) drop-shadow(0 .08em 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 .8em rgba(0, 0, 0, .7));
  animation: gcv-rise .45s ease-out both;
}
@keyframes gcv-rise { from { opacity: 0; translate: 1.2em 0; } }
/* the top prizes: each tile and name on a dark capsule ringed in the top tier's colour (violet) */
.gcv__prizes { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .45em; max-width: 100%; animation: gcv-rise .45s ease-out .06s both; }
.gcv__prize {
  display: inline-flex; align-items: center; gap: .5em; padding: .2em .8em .2em .2em; border-radius: .35em; max-width: 100%;
  background: linear-gradient(90deg, rgba(var(--tier-s), .28), rgba(8, 11, 28, .8) 55%);
  box-shadow: inset 0 0 0 1px rgba(var(--tier-s), .7), 0 0 1em rgba(var(--tier-s), .35);
}
.gcv__prize > .tile { --tile: 2.4em; flex: none; --tile-ring: rgb(var(--tier-s)); }
.gcv__prize-name { font-size: var(--fs-small); font-weight: 700; color: #e6d6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcv__time { margin: 0; display: inline-flex; align-items: center; gap: .4em; font-size: var(--fs-small); font-weight: 700; animation: gcv-rise .45s ease-out .1s both; }
.gcv__time.is-shut { color: var(--ftn-gold); }
/* the pity: one line (the pulls left in large gold, the next pull's S chance in small gold) over the
   bar (soft pity marked) */
.gcv__pity { display: grid; justify-items: end; gap: .35em; width: min(100%, 22em); animation: gcv-rise .45s ease-out .14s both; }
.gcv__guar-line { margin: 0; font-size: var(--fs-small); line-height: 1.3; text-wrap: balance; }
.gcv__count { margin-right: .15em; font-family: var(--face-display); font-size: 2em; line-height: 1; color: var(--ftn-gold); font-variant-numeric: tabular-nums; }
.gcv__bar { position: relative; width: 100%; height: .35em; border-radius: .2em; background: rgba(var(--ftn-ivory-rgb), .18); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.gcv__bar > i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, #b88a35, var(--ftn-gold), #fff1bf); box-shadow: 0 0 .6em rgba(var(--ftn-gold-rgb), .7); }
.gcv__bar::after { content: ""; position: absolute; top: -.2em; bottom: -.2em; left: calc(var(--soft, 1) * 100%); width: 2px; background: rgba(var(--ftn-ivory-rgb), .75); }

.gcv__nopity { margin: 0; font-size: var(--fs-small); font-weight: 700; color: rgba(var(--ftn-ivory-rgb), .8); animation: gcv-rise .45s ease-out .14s both; }

/* bottom left: Details and Pull history (owner, 2026-10-31: elegant, no capsules): a band of night
   between two gold hairlines, fading out at both ends, the word in the display face spaced wide, a
   small gold glyph before it */
.gcv__side { grid-column: 1; grid-row: 2; align-self: end; display: flex; flex-wrap: wrap; gap: .6em; }
.gcv__pill {
  position: relative; display: inline-flex; flex-direction: row-reverse; align-items: center; gap: .6em; padding: .6em 1.8em; border: 0;
  font-family: var(--face-display); font-weight: var(--face-display-weight); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ftn-ivory); text-shadow: 0 1px 2px rgba(0, 0, 0, .9); cursor: var(--cur-hand, pointer);
  background: linear-gradient(90deg, transparent, rgba(8, 11, 28, .85) 18%, rgba(8, 11, 28, .85) 82%, transparent);
}
.gcv__pill::before, .gcv__pill::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--ftn-gold-rgb), .85) 25%, rgba(var(--ftn-ivory-rgb), .9) 50%, rgba(var(--ftn-gold-rgb), .85) 75%, transparent);
}
.gcv__pill::before { top: 0; }
.gcv__pill::after { bottom: 0; }
.gcv__pill-ic { width: 1.05em; height: 1.05em; color: var(--ftn-gold); filter: drop-shadow(0 0 .3em rgba(var(--ftn-gold-rgb), .6)); }
.gcv__pill:hover, .gcv__pill:focus-visible { outline: none; color: #fff; background: linear-gradient(90deg, transparent, rgba(var(--ftn-gold-rgb), .18) 18%, rgba(var(--ftn-gold-rgb), .18) 82%, transparent), linear-gradient(90deg, transparent, rgba(8, 11, 28, .85) 18%, rgba(8, 11, 28, .85) 82%, transparent); }

/* bottom right: the terms band, then the two pulls. A pull is a price strip over a cut
   plate: x1 ivory, x10 gold with a light crossing it now and then; the big numeral faint on its left. */
.gcv__deal { grid-column: 2; grid-row: 2; align-self: end; display: grid; gap: .45em; }
/* The terms: one band of night the width of the pulls, fading in from the left under a gold
   hairline, flush with the pulls' right edge. One row: the pity prize slot left, the payment choice
   right, each a small label over its value; the reason along the foot, right-aligned over the
   pulls it explains. */
.gcv__terms { position: relative; display: grid; gap: .3em; padding: .45em .8em .45em 1.6em; background: linear-gradient(90deg, transparent, rgba(8, 11, 28, .84) 1.6em); }
.gcv__terms::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--ftn-gold-rgb), .85) 20%, rgba(var(--ftn-ivory-rgb), .9) 60%, rgba(var(--ftn-gold-rgb), .85));
}
.gcv__terms-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3em 1em; }
.gcv__cap { font-size: var(--fs-badge); font-weight: 700; letter-spacing: .05em; color: rgba(var(--ftn-ivory-rgb), .62); }
/* the pity prize slot (choosePity): empty, a violet gem breathing and "Choose a prize" in violet
   ivory; chosen, the prize's tile and its name. Under the pointer a violet wash. */
.gcv__pick {
  flex: 1 1 9em; min-width: 0; display: flex; align-items: center; gap: .55em; padding: .15em .3em .15em .15em; margin-left: -.15em;
  border: 0; background: none; font: inherit; color: var(--ftn-ivory); text-align: left; cursor: var(--cur-hand, pointer);
}
.gcv__pick > .tile { --tile: 2.1em; flex: none; --tile-ring: rgb(var(--tier-s)); }
.gcv__pick > .gcv__gem { font-size: 1.15em; margin-inline: .35em .2em; }
.gcv__pick-words { flex: 0 1 auto; min-width: 0; display: grid; line-height: 1.2; }
.gcv__pick-words > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcv__pick-words > b { font-size: var(--fs-small); }
.gcv__pick.is-empty .gcv__pick-words > b { color: #e6d6ff; }
.gcv__pick-chev { flex: none; width: .9em; height: .9em; opacity: .7; }
.gcv__pick:hover, .gcv__pick:focus-visible { outline: none; background: linear-gradient(90deg, rgba(var(--tier-s), .3), transparent); }
.gcv__pick:hover .gcv__pick-chev, .gcv__pick:focus-visible .gcv__pick-chev { opacity: 1; }
.gcv__pick.is-empty > .gcv__gem { animation: gcv-ask 2.2s ease-in-out infinite; }
@keyframes gcv-ask { 50% { scale: 1.2; } }
/* the payment choice: "Pay with" over one radio per coin, no frame; the chosen one ivory with its
   dot filled and a gold underline, the others faded */
.gcv__payrow { flex: none; margin-left: auto; display: grid; justify-items: end; gap: .1em; }
.gcv__paytabs { display: flex; gap: .2em; }
.gcv__paytab {
  position: relative; display: inline-flex; align-items: center; gap: .4em; padding: .3em .5em; border: 0; background: none;
  font: inherit; font-size: var(--fs-small); font-weight: 700; white-space: nowrap; color: rgba(var(--ftn-ivory-rgb), .62); cursor: var(--cur-hand, pointer);
}
.gcv__paytab:last-child { padding-right: 0; }
.gcv__paytab::after { content: ""; position: absolute; left: .5em; right: .5em; bottom: 0; height: 2px; opacity: 0; background: linear-gradient(90deg, transparent, var(--ftn-gold) 25%, var(--ftn-gold) 75%, transparent); box-shadow: 0 0 .4em rgba(var(--ftn-gold-rgb), .6); }
.gcv__paytab:last-child::after { right: 0; }
.gcv__paytab.is-on { color: var(--ftn-ivory); }
.gcv__paytab.is-on::after { opacity: 1; }
.gcv__radio { flex: none; width: .75em; height: .75em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(var(--ftn-ivory-rgb), .55); }
.gcv__paytab.is-on .gcv__radio { background: radial-gradient(circle, var(--ftn-gold) 0 40%, transparent 46%); box-shadow: inset 0 0 0 1.5px var(--ftn-gold), 0 0 .5em rgba(var(--ftn-gold-rgb), .6); }
.gcv__paytab:hover:not(.is-on), .gcv__paytab:focus-visible { outline: none; color: var(--ftn-ivory); }
.gcv__paytab .coin, .gcv__price .coin { width: 1.3em; height: 1.3em; object-fit: contain; }
.gcv__paytab .ico, .gcv__price .ico { --ico-box: 1.3em; }
/* the reason: why the pulls are shut (ivory) or what they want (gold), under a faint rule when the row stands above it */
.gcv__why { margin: 0; text-align: right; font-size: var(--fs-small); font-weight: 700; color: var(--ftn-gold); }
.gcv__terms-row:not([hidden]) + .gcv__why { padding-top: .3em; box-shadow: 0 -1px 0 rgba(var(--ftn-ivory-rgb), .12); }
.gcv__why.is-shut { color: rgba(var(--ftn-ivory-rgb), .8); }
.gcv__said { margin: 0; text-align: right; font-size: var(--fs-small); color: var(--error); }
.gcv__pulls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5em; }
.gcv__pull {
  display: grid; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; min-width: 0;
  cursor: var(--cur-hand, pointer); filter: drop-shadow(0 .35em .7em rgba(0, 0, 0, .55));
  transition: translate .15s, filter .15s;
}
.gcv__price {
  justify-self: stretch; display: flex; align-items: center; justify-content: flex-end; gap: .35em;
  padding: .28em .9em; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ftn-ivory);
  background: rgba(8, 11, 28, .88); clip-path: polygon(.6em 0, 100% 0, 100% 100%, 0 100%, 0 .6em);
}
.gcv__price.is-short { color: var(--error); }
.gcv__plate {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: .6em;
  min-height: 3em; padding: .4em 1em .4em .8em; text-shadow: none; color: #141b3d;
  background: linear-gradient(180deg, #ffffff, #ece6d8 60%, #d8d0bd);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - .8em), calc(100% - .8em) 100%, 0 100%);
}
.gcv__big { font-family: var(--face-display); font-size: 2.3em; line-height: 1; font-style: italic; color: rgba(20, 27, 61, .28); }
.gcv__pn { font-size: 1.15em; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.gcv__pull--10 .gcv__plate { background: linear-gradient(180deg, #fff3c4, #f2cf6b 45%, #d9a640); }
.gcv__pull--10 .gcv__big { color: rgba(90, 58, 6, .3); }
.gcv__pull--10 { filter: drop-shadow(0 .35em .7em rgba(0, 0, 0, .55)) drop-shadow(0 0 .8em rgba(var(--ftn-gold-rgb), .4)); }
.gcv__pull--10 .gcv__plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 58%);
  transform: translateX(-120%); animation: gcv-shine 3.6s ease-in-out 1s infinite;
}
@keyframes gcv-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.gcv__pull:hover:not(:disabled), .gcv__pull:focus-visible { translate: 0 -.12em; outline: none; }
.gcv__pull:hover:not(:disabled) .gcv__plate { filter: brightness(1.06); }
/* Shut (owner, 2026-10-31: it must be plain at a glance): the plate goes dark night with the words
   faded and the price dimmed, no glow, no shine, and the pointer is the drawn "no" cursor. A live
   pull is the bright ivory or gold plate; nothing in between. */
body.play .ftn .gcv__pull:disabled { cursor: var(--cur-no, not-allowed); filter: none; }
.gcv__pull:disabled .gcv__plate { background: linear-gradient(180deg, rgba(46, 52, 82, .92), rgba(24, 28, 50, .92)); color: rgba(var(--ftn-ivory-rgb), .42); box-shadow: inset 0 0 0 1px rgba(var(--ftn-ivory-rgb), .12); }
.gcv__pull:disabled .gcv__big { color: rgba(var(--ftn-ivory-rgb), .12); }
.gcv__pull:disabled .gcv__price { color: rgba(var(--ftn-ivory-rgb), .45); }
.gcv__pull:disabled .gcv__price.is-short { color: var(--error); }
.gcv__pull:disabled .gcv__price .coin, .gcv__pull:disabled .gcv__price .ico { opacity: .45; filter: grayscale(1); }
.gcv__pull:disabled .gcv__plate::after { animation: none; content: none; }
.gcv__pull.is-busy { opacity: .75; }
.gcv__coin { --ico-box: 1.3em; }
.gcv__good > .ico { --ico-box: 1.4em; }

/* ---- the dialogs (Details, Pull history, the pity prize): ordinary windows, so their colours are
   the house tokens, not the page's */
.gcv__gem {
  --g: 155, 167, 189;
  flex: none; display: inline-block; width: 1em; aspect-ratio: 1;
  position: relative; isolation: isolate;
}
.gcv__gem::before {
  content: ""; position: absolute; inset: 12%; z-index: -1; rotate: 45deg; border-radius: .15em;
  background: linear-gradient(135deg, rgba(255, 255, 255, .85), rgb(var(--g)) 40%, color-mix(in srgb, rgb(var(--g)) 60%, #000));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 .6em rgba(var(--g), .55);
}
/* the colour code (owner, 2026-10-31; the pull's reveal, gacha-fx.ts, uses the same): S violet,
   A gold, B sky, C jade, D slate */
.gcv__gem[data-tier="S"], .gcv__tier[data-tier="S"] { --g: 186, 120, 255; }
.gcv__gem[data-tier="A"], .gcv__tier[data-tier="A"] { --g: 232, 200, 114; }
.gcv__gem[data-tier="B"], .gcv__tier[data-tier="B"] { --g: 110, 214, 255; }
.gcv__gem[data-tier="C"], .gcv__tier[data-tier="C"] { --g: 120, 210, 170; }
.gcv__details { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; gap: 1.6em; }
.gcv__details-side { display: grid; gap: 1.1em; align-content: start; grid-template-rows: auto auto 1fr; }
/* The preview (owner, 2026-11-15): at the foot of the right column, in the room under the
   payments; the picked costume on the player's figure or the picked craft alone */
.gcv__preview { align-self: end; }
.gcv__pv-name { color: var(--ink-strong); font-size: var(--fs-small); }
.gcv__pv-fig {
  height: 13em; display: grid; place-items: center; overflow: hidden; border-radius: .35em;
  background: radial-gradient(ellipse at 50% 85%, rgba(186, 120, 255, .22), transparent 65%), rgba(var(--ink-wash), .04);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.gcv__pv-fig .doll-box { --doll-w: 6.6em; }
.gcv__pv-fig { position: relative; }
/* pinned to the box, so a tall canvas is fitted into it rather than stretching it */
.gcv__pv-mount { position: absolute; inset: 0; display: grid; place-items: center; }
.gcv__pv-mount > .mount-pic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62%; height: 72%; object-fit: contain; }
/* a craft with effects is drawn with room around it for them (mount-fx-2d.ts): the box fits the room */
.gcv__pv-mount > .mount-pic--fx {
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  /* the effects fade out before the canvas's edge instead of being cut by it */
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
}
.gcv__pv-hint { color: var(--ink-mute); }
.gcv__pv-btn { padding: 0; border-radius: .3em; }
.gcv__pv-btn.is-on > .tile { --tile-ring: rgb(186, 120, 255); box-shadow: 0 0 .6em rgba(186, 120, 255, .55); }
.gcv__sect { display: grid; gap: .45em; }
.gcv__sect > .cap { color: var(--brass-hi); }
.gcv__line { margin: 0; font-size: var(--fs-small); line-height: 1.4; color: var(--ink); }
/* A tier of the pool: a head line (its gem, its rate large, each prize's chance at the right) over a
   hairline in its colour, then its tiles in rows across the full width */
.gcv__tiers { display: grid; gap: .55em; margin-top: .4em; }
.gcv__tier {
  --g: 155, 167, 189;
  display: grid; gap: .5em; padding: .55em .75em .7em; border-radius: .35em;
  background: linear-gradient(180deg, rgba(var(--g), .13), rgba(var(--g), .03) 70%);
  box-shadow: inset 0 0 0 1px rgba(var(--g), .28), inset 0 2px 0 rgba(var(--g), .7);
}
.gcv__tier-head { display: flex; align-items: center; gap: .55em; padding-bottom: .4em; border-bottom: 1px solid rgba(var(--g), .3); }
.gcv__tier-head > .gcv__gem { font-size: 1.05em; }
.gcv__tier-nums { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: .6em; }
.gcv__tier-pct { font-size: 1.2em; font-weight: 800; color: rgb(var(--g)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gcv__tier-each { margin-left: auto; font-size: var(--fs-small); color: var(--ink-mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gcv__tier-items { display: flex; flex-wrap: wrap; gap: .4em; }
.gcv__tier-items .tile { --tile: 2.8em; }
.gcv__odd { display: grid; justify-items: center; gap: .15em; }
.gcv__odd > i { font-style: normal; font-size: var(--fs-badge); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.gcv__payline { display: grid; gap: .2em; }
.gcv__pay-name { display: inline-flex; align-items: center; gap: .4em; color: var(--ink-strong); }
.gcv__pay-name .coin { width: 1.3em; height: 1.3em; object-fit: contain; }
.gcv__pay-name .ico { --ico-box: 1.4em; }
.gcv__hist { display: grid; gap: .7em; }
.gcv__hist-list { display: grid; gap: .6em; }
.gcv__hist-list:empty { display: none; }
.gcv__hist-row { display: grid; grid-template-columns: 8em minmax(0, 1fr); align-items: center; gap: .8em; padding-bottom: .6em; box-shadow: inset 0 -1px 0 var(--hairline); }
.gcv__hist-at { font-size: var(--fs-small); color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.gcv__hist-got { display: flex; flex-wrap: wrap; gap: .4em; }
.gcv__hist-got > .tile { --tile: 2.5em; }
.gcv__hist-none { margin: 0; font-size: var(--fs-small); color: var(--ink-mute); }
.gcv__won-grand { --tile-ring: rgb(186, 120, 255); box-shadow: 0 0 .8em rgba(186, 120, 255, .6); }
.gcv__choose { display: grid; gap: .8em; }
.gcv__choose-line { margin: 0; color: var(--ink); }
.gcv__choose-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8em; }
.gcv__choice > .tile { --tile-ring: rgb(186, 120, 255); }
.gcv__choice { all: unset; cursor: inherit; display: grid; justify-items: center; gap: .4em; width: 7.5em; padding: .4em; border-radius: .4em; text-align: center; }
.gcv__choice:hover, .gcv__choice:focus-visible { background: rgba(var(--brass-hi-rgb), .12); }
.gcv__choice.is-on { box-shadow: inset 0 0 0 1px var(--brass-hi); }
.gcv__choice-name { font-size: var(--fs-small); color: var(--ink-strong); line-height: 1.2; }
.gcv__choice-pity { font-size: var(--fs-small); color: var(--ink-mute); line-height: 1.1; }
/* The A-tier choices under the grand prize (pityBelow): smaller cards; desktop scrolls the list in
   the dialog, mobile scrolls the dialog body (30-win.css). */
.gcv__choice--sm { width: 6em; }
:where(html.m-desktop) .gcv__choose-below { max-height: 16em; overflow-y: auto; }

/* ---- mobile mode (a landscape phone: the height is the constraint). The art keeps the left and
   the middle; everything to read or press stands in one slim column at the right edge: the words
   at its top, the terms band and the two pulls at its foot under the right thumb. The rail is
   16:9 thumbs, Details and Pull history sit low at the left under the left thumb. Every control
   is 44 px or more; prizes are tiles only (their names on press). */
html.m-mobile .ftn__view { --rail-w: max(5em, 80px); /* 16:9 at 80 px is 45 px: a 44 px target that keeps its shape */ column-gap: .7em; row-gap: .3em; }
html.m-mobile .ftn__bar { min-height: var(--hit); gap: .6em; }
html.m-mobile .ftn__back { min-height: var(--hit); box-sizing: border-box; }
html.m-mobile .ftn__rail { gap: .55em; padding-top: .3em; }
html.m-mobile .ftn__thumb { min-height: var(--hit); }
html.m-mobile .ftn .gcv { --info-w: clamp(15.5em, 40cqw, 23em); column-gap: .8em; row-gap: .5em; }
html.m-mobile .gcv__info { gap: .3em; }
html.m-mobile .gcv__title { max-width: 100%; font-size: clamp(1.5em, 4.4cqw, 2em); line-height: 1.05; padding-bottom: .06em; }
html.m-mobile .gcv__prizes { gap: .35em; }
html.m-mobile .gcv__prize { padding: .15em; }
html.m-mobile .gcv__prize > .tile { --tile: 2em; }
html.m-mobile .gcv__prize-name { display: none; }
html.m-mobile .gcv__pity { width: 100%; gap: .2em; }
html.m-mobile .gcv__count { font-size: 1.4em; }
html.m-mobile .gcv__pick { min-height: var(--hit); box-sizing: border-box; padding-block: .1em; }
html.m-mobile .gcv__pick > .tile { --tile: 1.9em; }
/* the foot is compact so the key art shows (owner, 2026-11-01): Details and History drawn slim,
   each pressed on a 44 px band (its label's ::after, the pill's own pseudos being its hairlines) */
html.m-mobile .gcv__side { gap: .8em; }
html.m-mobile .gcv__pill { gap: .45em; padding: .45em 1em; font-size: var(--fs-small); letter-spacing: .1em; }
html.m-mobile .gcv__pill > span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--hit); } /* rising from the foot: the band sits on the frame bottom */
html.m-mobile .gcv__deal { gap: .3em; }
html.m-mobile .gcv__terms { gap: .1em; padding: .1em .6em .2em 1.2em; background: linear-gradient(90deg, transparent, rgba(8, 11, 28, .84) 1.2em); }
html.m-mobile .gcv__terms-row { flex-wrap: nowrap; gap: .4em; }
html.m-mobile .gcv__payrow > .gcv__cap { display: none; } /* the radios say it; the group keeps the name (aria-label) */
/* the coins say which: each radio is its coin, the word kept for the screen reader */
html.m-mobile .gcv__paytab { min-width: var(--hit); min-height: var(--hit); box-sizing: border-box; justify-content: center; gap: .3em; padding-inline: .4em; }
html.m-mobile .gcv__paytab > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.m-mobile .gcv__paytab::after, html.m-mobile .gcv__paytab:last-child::after { left: .3em; right: .3em; }
html.m-mobile .gcv__pulls { gap: .4em; }
/* a pull is one 44 px plate: the numeral left, its name over its price at the right (the price
   strip folded in) */
html.m-mobile .gcv__pull > * { grid-area: 1 / 1; }
html.m-mobile .gcv__price { z-index: 1; align-self: end; justify-self: end; gap: .25em; padding: 0 1em .3em 0; font-size: var(--fs-small); line-height: 1.1; background: none; clip-path: none; color: #141b3d; text-shadow: none; pointer-events: none; }
html.m-mobile .gcv__price.is-short { color: var(--error); }
html.m-mobile .gcv__price .coin { width: 1.15em; height: 1.15em; }
html.m-mobile .gcv__price .ico { --ico-box: 1.15em; }
html.m-mobile .gcv__plate { min-height: var(--hit); box-sizing: border-box; align-items: center; padding: .3em 1em .3em .6em; clip-path: polygon(0 0, 100% 0, 100% calc(100% - .6em), calc(100% - .6em) 100%, 0 100%); }
html.m-mobile .gcv__big { font-size: 1.45em; }
html.m-mobile .gcv__pn { align-self: start; font-size: 1em; line-height: 1.1; }
/* the dialogs: Details stays two columns, left to right, a narrower gap; history rows tighter */
html.m-mobile .gcv__details { gap: 1em; }
html.m-mobile .gcv__pv-fig { height: 9em; }
html.m-mobile .gcv__pv-fig .doll-box { --doll-w: 4.4em; }
html.m-mobile .gcv__hist-row { grid-template-columns: 6.5em minmax(0, 1fr); }

@media (prefers-reduced-motion: reduce) {
  .gcv__pick.is-empty > .gcv__gem, .gcv__sheen, .gcv__art, .gcv__title, .gcv__prizes, .gcv__time, .gcv__pity, .gcv__pull--10 .gcv__plate::after { animation: none; }
}

/* ---- w-gather.css */
/* GATHERING (panels/gathering.ts, `.win.gthw[data-win=gather]`, P29): the activity band, then
   either the empty state (no node underfoot) or the node's facts, the tool (tile, name, durability
   bar), the cycle (its clock, the bar filling over the server's duration, seconds left), and the last
   finds as tiles. The foot: the state badge, the line saying why, Stop, Start. Placed by gui/win.ts;
   moved from 25-card.css and 20-components.css. Tokens only. */
.gthw [hidden] { display: none !important; }
.wins > .win.gthw > .win__body { display: grid; gap: .7em; align-content: start; min-width: 0; }

.gthw__head .ic { width: 1.5em; height: 1.5em; object-fit: contain; }
.gthw__head .band__num { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gthw .gui-empty { display: grid; justify-items: center; gap: .3em; padding: 1.2em 1em; text-align: center; }
.gthw .gui-empty > img.g { width: 3em; height: 3em; object-fit: contain; }

.gthw__here { display: grid; gap: .7em; min-width: 0; }
.gthw .kv__val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gthw .kv__val > .is-short { color: var(--error); }

.gthw__tool { display: flex; align-items: center; gap: .6em; min-width: 0; }
.gthw__tool > .tile { flex: none; }
.gthw__toolcopy { display: grid; gap: .3em; flex: 1; min-width: 0; }
.gthw__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gthw__cyclerow { display: flex; align-items: center; gap: .6em; min-width: 0; }
.gthw__cycle { display: inline-flex; align-items: center; gap: .3em; flex: none; font-variant-numeric: tabular-nums; }
.gthw__ic { width: 1.2em; height: 1.2em; object-fit: contain; }
.gthw__cyclerow > .bar { flex: 1; min-width: 0; }

.gthw__findsbox { display: grid; gap: .4em; min-width: 0; }
.gthw__finds { --cols: 6; }

/* The foot in two rows (QA 2026-10-09): the line saying why goes first, the whole width; the pill and
   the two buttons under it. In one row a 26em window squeezed the line to a word a row and pushed
   Start past the right edge. An empty line takes no row. */
.gthw .win__foot { gap: .6em; flex-wrap: wrap; row-gap: .45em; }
.gthw__state { flex: none; }
.gthw__line { flex: 1 0 100%; order: -1; min-width: 0; }
.gthw__line:empty { display: none; }
.gthw .win__foot > .btn { flex: none; white-space: nowrap; }
.gthw .win__foot > .btn:nth-last-child(2) { margin-left: auto; }
.gthw .btn__ic { width: 1.2em; height: 1.2em; object-fit: contain; }
/* Start is the errand: the gathering cursor. */
body.play .gthw .win__foot > .btn:last-child:not(:disabled) { cursor: var(--cur-gather); }

/* Phones (landscape, the short height): the finds fold to fewer columns, the line may wrap. */
html.m-mobile .gthw__finds { --cols: 4; }
html.m-mobile .gthw__line { font-size: var(--fs-xs); }

/* ---- w-glamorie.css */
/* GLAMORIE (panels/glamorie.ts, `.win.glw[data-win=glamorie]`): the five fashion frames down the
   left, the dressed figure on the right, the "?" in the figure's top corner. 20-components.css
   draws the frames (tile, eqf) and the doll; this sheet lays them out. */
.glw__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1em; align-items: stretch; }
/* The column stretches to the figure and spaces its five frames over its height (w-char.css .eqcol). */
.glw__fig { position: relative; display: grid; gap: .2em; justify-items: center; align-content: start; min-width: 0; }
.glw__fig .doll-box { --doll-w: 10em; }
.glw__help { position: absolute; top: 0; right: 0; }

/* MOBILE: the same two columns, a smaller figure so a 360-390 px tall frame shows all five frames
   without a scroll. */
html.m-mobile .glw__body { gap: .7em; }
html.m-mobile .glw__fig .doll-box { --doll-w: 6.5em; }
html.m-mobile .glw .eqcol { gap: .3em; }

/* ---- w-guild.css */
/* THE GUILD WINDOW (panels/guild/*.ts, `.win.gw[data-win=guild]`, P25; Astro Night 2026-10-10) and
   THE GUILD MASTER (panels/guild-found.ts, `.win.gf[data-win=guildfound]`). The guild window is
   night like every window (the paper pages are gone, owner 2026-10-10): under the head, the hero
   (the guild's banner or the painted landscape, crest, name and the figures), the page strip, and
   the page on show, sitting on the window's own ground in wells. 20-components.css draws every
   component; tokens only. */

.gw [hidden], .gf [hidden] { display: none !important; }
.wins > .win.gw > .win__body { display: flex; flex-direction: column; gap: .6em; min-height: 0; overflow: hidden; }
/* DESKTOP: one height whatever the page, ending above the hotbar's band; the page scrolls. */
html.m-desktop .wins > .win.gw { height: 46em; }

/* --- the head: the hero edge to edge, then the bar: the page tabs on the left, the reader's own
   name, position and Merit on the right (owner 2026-10-10: the hero carries only the guild's). */
.gw__top { display: flex; flex-direction: column; gap: .6em; flex: none; min-width: 0; }
.gw__bar { display: flex; align-items: center; justify-content: space-between; gap: .6em 1em; min-width: 0; }
.gw__tabs { min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.gw__me { display: flex; align-items: center; gap: .6em; flex: none; font-size: var(--fs-md); }
.gw__me-name { font-family: var(--face-ui); color: var(--ink-strong); white-space: nowrap; }
.gw__tab { display: inline-flex; align-items: center; gap: .4em; }
.gw__tab > img.g { width: 1.6em; height: 1.6em; object-fit: contain; }
.gw__wait { margin-left: .1em; }

/* --- the hero: the banner behind the crest and the words, washed to dusk from the left so the
   words read on any picture. Full bleed: straight under the window head, out to both sides of the
   body (its padding undone), no frame. `--gw-banner` is the guild's own upload (index.ts), unset
   for the painted default. */
.gw__hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: 1em; min-height: 8.5em; margin: -.9em -1.2em 0; padding: .8em 3.4em .8em 1.2em; box-sizing: border-box; overflow: hidden;
  color: var(--ink-strong);
}
.gw__hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--gw-banner, url(/data/art/ui/guild/hero.50924a5a.webp)) center 54% / cover no-repeat; }
.gw__hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--wash-rgb), .86), rgba(var(--wash-rgb), .5) 45%, rgba(var(--wash-rgb), .08) 85%),
    linear-gradient(transparent 55%, rgba(var(--navy-1-rgb), .7)); }
.gw__crest { display: grid; place-items: center; width: 5.4em; height: 5.4em;
  background: radial-gradient(circle, rgba(var(--sky-rgb), .16), transparent 70%); }
.gw__crest > img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 .15em .4em rgba(var(--shadow-ink), .8)); }
.gw__crest > .gw__crest-mark { width: 80%; height: 80%; }
.gw__hero-copy { display: grid; gap: .35em; min-width: 0; justify-items: start; }
.gw__name { max-width: 100%; font-family: var(--face-ui); font-weight: var(--face-weight); font-size: var(--fs-2xl); line-height: 1.15;
  color: var(--ink-strong); overflow-wrap: anywhere; text-shadow: var(--hud-shadow); }
.gw__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45em .9em; font-size: var(--fs-md); text-shadow: var(--hud-shadow); }
.gw__level { color: var(--brass-hi); font-family: var(--face-ui); }
.gw__fig { display: inline-flex; align-items: center; gap: .35em; font-variant-numeric: tabular-nums; }
.gw__fig > img.g { width: 1.25em; height: 1.25em; object-fit: contain; }
.gw__found { display: inline-grid; grid-template-columns: 8em auto; align-items: center; gap: .6em; font-size: var(--fs-sm);
  color: var(--ink-mute); font-variant-numeric: tabular-nums; text-shadow: var(--hud-shadow); }
.gw__cz { position: absolute; top: .5em; right: .6em; }

/* --- the page: on the window's ground, scrolling under the head */
.gw__pages { flex: 1 1 auto; min-height: 0; }
.gw__page { display: grid; gap: .7em; align-content: start; min-width: 0; padding: .1em .2em; }
.gw__wellhead { display: flex; align-items: center; justify-content: space-between; gap: .6em; min-height: 1.8em; }
.gw__sect { display: inline-flex; align-items: center; gap: .45em; }
.gw__sect > img.g { width: 1.2em; height: 1.2em; object-fit: contain; }
.gw__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.gw__tools > .field--search { flex: 1 1 10em; min-width: 9em; }
.gw__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5em; }
.gw__hint { color: var(--ink-mute); }
.gw__dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--ink-faint); flex: none; }
.gw__dot--1 { background: var(--orange); }
.gw__dot--2 { background: var(--green); box-shadow: 0 0 .4em rgba(var(--hud-good-glow-rgb), .6); }
.gw__face { font-size: .58em; }
.gw__bld-ic, .gw__log-ic { width: 2em; height: 2em; object-fit: contain; }
.gw__person, .gw__bld, .gw__quest, .gw__offer { min-height: 3.2em; }
.gw__person .item-row__end, .gw__bld .item-row__end { gap: .4em; }
.gw__merit .coin { width: 1.1em; height: 1.1em; }
.gw__offer-text { overflow-wrap: anywhere; }

/* Overview: the announcement and the quests on the left, the history on the right. */
.gw__ov { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: .8em; align-items: start; }
.gw__ov-main, .gw__ov-side { display: grid; gap: .8em; min-width: 0; }
.gw__notice-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.gw__notice-text.is-empty { color: var(--ink-mute); }
.gw__reset { font-size: var(--fs-sm); color: var(--ink-mute); font-variant-numeric: tabular-nums; text-transform: none; letter-spacing: 0; }
.gw__log-box { max-height: 22em; }
.gw__log .item-row__name b { white-space: normal; overflow-wrap: anywhere; }
.gw__quest { flex-wrap: wrap; }
.gw__quest > .bar { grid-column: 1 / -1; }
.gw__qsub { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.gw__quest .item-row__name b { white-space: normal; }

/* Members: Roster | Recruit over the view; the roster's head and rows are two grids on the same
   tracks (fractions only, so both come out the same width). */
.gw__views { justify-self: start; }
.gw__rosterview, .gw__recruitview { display: grid; gap: .6em; min-width: 0; }
.gw__roster { --cols: minmax(0, 1.6fr) minmax(0, .5fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .9fr) minmax(0, .9fr); }
.gw__roster-box { max-height: 22em; }
.gw-m { cursor: var(--cur-hand, pointer); }
.gw-m__name { gap: .5em; }
.gw-m > :is(:nth-child(2), :nth-child(4), :nth-child(5), :nth-child(6)) { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.gw-m:hover > * { background: rgba(var(--ink-wash), .05); }
.gw__roster--head .table__row > :is(:nth-child(2), :nth-child(4), :nth-child(5), :nth-child(6)) { justify-content: flex-end; }
/* The column words as written (Name, Level, Position...), not the table's small caps (owner 2026-10-10). */
.gw__roster--head .table__head > * { font-variant: normal; letter-spacing: 0; }
.gw__invite .gw__tools > .field { flex: 1 1 10em; }
/* Accept applications: two lit choices that follow the server. */
.gw__recruit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3em .8em; padding: 0 .2em; }
.gw__recruit > .note-line { grid-column: 1 / -1; }
.gw__switch { display: inline-flex; gap: .3em; }
.gw__switch > .btn.is-on { --btn-face: var(--tan); color: var(--tan-text); }

/* Buildings: the buildings beside the treasury; the next step's price, red where the guild is short. */
.gw__bldgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: .8em; align-items: start; }
.gw__bld-box { display: grid; gap: .2em; }
.gw__lv { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gw__cost { white-space: normal; }
.gw__short { color: var(--error); }
.gw__purse { display: inline-flex; align-items: center; gap: .35em; font-family: var(--face-ui); font-size: var(--fs-lg); }
.gw__purse .coin { width: 1.1em; height: 1.1em; }
.gw__store { display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: .3em .8em; margin: .5em 0; }
.gw__stock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5em; }
.gw__stock-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw__n { font-variant-numeric: tabular-nums; }
.gw__donate { display: grid; gap: .4em; }
.gw__donate .field { width: 7em; }

/* Shop and pharmacy: the list, then the pick strip with the one verb and why it is grey. */
.gw__quotas { display: flex; flex-wrap: wrap; gap: .35em; flex: 1 1 auto; }
.gw__counter { display: grid; gap: .5em; }
.gw__offer-box { max-height: 20em; }
.gw__offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(17em, 1fr)); gap: 0 1em; }
.gw__offer { cursor: var(--cur-hand, pointer); }
.gw__offer .item-row__sub { white-space: normal; }
/* The pick strip stays in reach under a long list: it sticks to the bottom of the page's scroll. */
.gw__pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6em;
  position: sticky; bottom: 0; z-index: 1; background: var(--win-face); box-shadow: 0 -.4em .8em rgba(var(--shadow-ink), .5); }
.gw__pick-act { display: flex; align-items: center; gap: .6em; }

/* The foot: the line on the left, the one way out on the right. */
.wins > .win.gw .win__foot { gap: .5em; }
.gw__said { margin-right: auto; min-width: 0; overflow-wrap: anywhere; }

/* An empty page (no guild): no box, the picture on a soft brass glow, a title and one line. */
.gw .gui-empty { display: grid; justify-items: center; gap: .45em; padding: 1.4em 1em; text-align: center; background: none; border: 0; box-shadow: none; }
.gw .gui-empty > img.g { width: 4.4em; height: 4.4em; object-fit: contain; filter: drop-shadow(0 0 1.1em rgba(var(--brass-hi-rgb), .28)); }
.gw .gui-empty > b { font-family: var(--face-display); font-size: var(--fs-heading); color: var(--brass-pale); }
.gw__crest-sm { width: 2em; height: 2em; object-fit: contain; }

/* --- Customize (a dialog, ask.ts): the emblem and the banner, each with its rules. */
.gw__cz-body { display: grid; gap: .7em; }
.gw__cz-row { display: flex; align-items: center; gap: .8em; margin-bottom: .4em; }
.gw__cz-crest { display: grid; place-items: center; width: 4em; height: 4em; flex: none; }
.gw__cz-crest > img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; }
.gw__cz-crest > .gw__crest-mark { width: 80%; height: 80%; }
.gw__cz-banner { aspect-ratio: 3 / 1; margin-bottom: .5em; border: 1px solid rgba(var(--brass-rgb), .4); border-radius: .4em;
  background: var(--gw-banner, url(/data/art/ui/guild/hero.50924a5a.webp)) center / cover no-repeat; }
.gw__cz-body .gw__acts { justify-content: flex-start; margin-bottom: .3em; }

/* MOBILE MODE: a sheet in proportion, never the whole screen (owner, 2026-10-11: it stretched the
   full height whatever the page held): 62.5em at most and 32em high,
   the same on every page so a tab press does not jump. The hero is one short row with the strip
   beside it, pictures only; the page scrolls inside; rows keep a thumb's height. */
html.m-mobile .wins > .win.gw { width: min(var(--w), 62.5em); height: 32em; }
html.m-mobile .gw__top { gap: .4em; }
html.m-mobile .gw__hero { min-height: 0; padding: .3em 2.8em .3em .6em; gap: .6em; }
html.m-mobile .gw__me { font-size: var(--fs-sm); }
html.m-mobile .gw__me-name { display: none; }
html.m-mobile .gw__crest { width: 2.4em; height: 2.4em; }
html.m-mobile .gw__hero-copy { display: flex; flex-wrap: nowrap; align-items: center; gap: .6em; overflow: hidden; }
html.m-mobile .gw__name { font-size: var(--fs-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
html.m-mobile .gw__meta { flex-wrap: nowrap; font-size: var(--fs-sm); }
html.m-mobile :is(.gw__fig--members, .gw__found-n) { display: none; }
html.m-mobile .gw__found { grid-template-columns: 5em; }
html.m-mobile .gw__cz { top: 50%; transform: translateY(-50%); }
html.m-mobile .gw__tab-l { display: none; }
html.m-mobile .gw__tabs .tabs__tab { min-width: var(--touch); min-height: var(--touch); padding: 0 .6em; }
html.m-mobile :is(.gw__ov, .gw__bldgrid) { grid-template-columns: minmax(0, 1fr); }
html.m-mobile .gw__notice-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html.m-mobile :is(.gw__roster-box, .gw__offer-box, .gw__log-box) { max-height: none; }
html.m-mobile :is(.gw__person, .gw__quest, .gw__offer), html.m-mobile .gw-m > * { min-height: var(--touch); }
html.m-mobile .gw__roster { --cols: minmax(0, 1.6fr) minmax(0, .6fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .9fr); }
html.m-mobile .gw__roster .table__row > :nth-child(4) { display: none; }

/* --- THE GUILD MASTER: a founding form over the board of every guild */
.wins > .win.gf > .win__body { display: flex; flex-direction: column; gap: .6em; min-height: 0; overflow: hidden; }
.gf__head { display: flex; justify-content: space-between; align-items: baseline; }
.gf__box { height: 18em; flex: 1 1 auto; min-height: 0; }
.gf__row { cursor: var(--cur-hand, pointer); min-height: 3.2em; }
.gf__pic { display: inline-flex; align-items: center; gap: .4em; }
.gf__rank { min-width: 1.6em; text-align: right; font-family: var(--face-ui); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.gf__crest { width: 2.2em; height: 2.2em; object-fit: contain; }
.gf__why { font-size: var(--fs-sm); color: var(--ink-mute); white-space: nowrap; }
.wins > .win.gf .win__foot { gap: .5em; }
.gf__said { margin-right: auto; min-width: 0; overflow-wrap: anywhere; }
/* Guild Rankings (owner, 2026-10-08): the first three on a podium over the rows, the first raised in
   the middle; every ranked line carries its count over a thin brass bar. */
.gf__podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .6em; padding: .8em;
  border: 1px solid rgba(var(--brass-rgb), .4); border-radius: .5em; flex: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--sky-rgb), .14), transparent 70%), var(--navy-0); }
.gf__place { appearance: none; font: inherit; color: var(--ink); min-width: 0; cursor: var(--cur-hand, pointer);
  display: grid; justify-items: center; gap: .2em; padding: .6em .4em .7em;
  border: 1px solid rgba(var(--brass-rgb), .35); border-radius: .5em; background: linear-gradient(var(--navy-3), var(--navy-1));
  transition: border-color .15s, transform .15s; }
.gf__place:disabled { cursor: var(--cur-arrow, default); }
.gf__place:hover:not(:disabled) { border-color: var(--brass-hi); transform: translateY(-.1em); }
.gf__place--1 { order: 2; padding-top: 1em; border-color: var(--brass); box-shadow: 0 0 .9em rgba(var(--brass-rgb), .25); }
.gf__place--2 { order: 1; }
.gf__place--3 { order: 3; }
.gf__place.is-mine { box-shadow: inset 0 0 0 .12em var(--sky); }
.gf__place-crest { width: 3.2em; height: 3.2em; object-fit: contain; }
.gf__place--1 .gf__place-crest { width: 4.2em; height: 4.2em; }
.gf__medal { display: grid; place-items: center; width: 1.7em; height: 1.7em; margin-top: -.9em; border-radius: 50%;
  font-family: var(--face-ui); font-variant-numeric: tabular-nums; color: var(--navy-0);
  background: linear-gradient(#eef1f5, #9aa6b4); box-shadow: 0 .1em .25em rgba(var(--shadow-ink), .5); }
.gf__medal--1 { background: linear-gradient(var(--brass-pale), var(--brass)); }
.gf__medal--3 { background: linear-gradient(#e7a877, #a8622f); }
.gf__place-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--face-ui); font-size: var(--fs-lg); color: var(--ink-strong); }
.gf__place--1 .gf__place-name { color: var(--brass-hi); }
.gf__place-lv { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--ink-mute); }
.gf__fill { display: inline-grid; gap: .2em; min-width: 4.6em; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; text-align: right; }
.gf__fill b { font-weight: inherit; }
.gf__bar { display: block; height: .25em; border-radius: 1em;
  background: linear-gradient(90deg, var(--brass) var(--v), rgba(var(--sky-rgb), .14) var(--v)); }
.gf__fullness:empty { display: none; }
html.m-mobile .wins > .win.gf { width: 36em; max-height: calc(var(--stage-h) - 32px); }
html.m-mobile .gf__podium { padding: .5em; gap: .4em; }
html.m-mobile .gf__place-crest, html.m-mobile .gf__place--1 .gf__place-crest { width: 2.4em; height: 2.4em; }
@media (prefers-reduced-motion: reduce) { .gf__place { transition: none; } }
html.m-mobile .gf__box { height: auto; }
html.m-mobile .gf__row { min-height: var(--touch); }


/* No guild (`.gw--none`, F6): the window is its empty state, sized to it. */
html.m-desktop .wins > .win.gw.gw--none, html.m-mobile .wins > .win.gw.gw--none { height: auto; }
.gw--none .gw__none .gui-empty { padding: 2.2em 1em; }

/* ---- w-mail.css */
/* THE POST (panels/mail.ts, `.win.ml[data-win=mail]`, P23): the tabs and the letter count; the
   Inbox face (the page of letters and the pager in the list column; the open
   letter beside it) and the Write face (receiver, subject, body, Gold and postage, the eight
   attachment places); the foot's result line and the verbs of the face on show. Placed by gui/win.ts
   beside the Backpack's spot (a letter is filled by dragging out of the bag). 20-components.css draws every
   part; tokens only. Moved from 25-card.css. */

.wins > .win.ml > .win__body { display: flex; flex-direction: column; gap: .7em; overflow: hidden; }
/* DESKTOP: one height on both faces, ending above the hotbar's band (B192); each pane scrolls. */
html.m-desktop .wins > .win.ml { height: 38em; }
.ml [hidden] { display: none !important; }
/* The empty inbox (F6, P6/P7): a window the size of its one empty state. */
html.m-desktop .wins > .win.ml.ml--bare { height: auto; }

.ml__bar { display: flex; align-items: center; justify-content: space-between; gap: 1em; flex: none; }
.ml__bar .tabs { margin: 0; }
.ml__bar .band { min-width: 0; margin-left: auto; }
.ml__claim { flex: none; }

/* --- the inbox: the list column and the open letter */
.ml__inbox { display: grid; grid-template-columns: minmax(15em, 36%) minmax(0, 1fr); gap: .8em; flex: 1; min-height: 0; }
.ml__side { display: flex; flex-direction: column; gap: .5em; min-width: 0; min-height: 0; }
.ml__list { display: grid; align-content: start; gap: .6em; flex: 1; min-height: 0; padding: .15em; }
.ml__letters { display: grid; gap: .4em; }

.ml__row { min-height: 3.6em; padding: .45em .55em; border: 1px solid var(--field-border); border-radius: .4em;
  background: var(--paper); cursor: var(--cur-hand, pointer); }
.ml__row:hover { background: var(--paper-2); }
.ml__row.is-on { border-color: rgba(var(--brass-rgb), .55); background: var(--row-on), var(--paper); }
.ml__row .item-row__pic > img.g { width: 2em; height: 2em; object-fit: contain; }
.ml__row:not(.is-unread) .item-row__pic { opacity: .55; }
.ml__row.is-unread .item-row__name b { color: var(--ink-strong); }
/* One line each: the subject, then who and the short date (B192: the date wrapped to three lines). */
.ml__row .item-row__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); color: var(--ink-mute); }
.ml__row .item-row__end { display: grid; justify-items: end; gap: .2em; font-size: var(--fs-sm); }
.ml__goods { display: inline-flex; align-items: center; gap: .2em; font-variant-numeric: tabular-nums; }
.ml__goods > img.g { width: 1.3em; height: 1.3em; object-fit: contain; }
.ml .gui-empty { display: grid; justify-items: center; align-content: center; gap: .4em; padding: 1.4em 1em; text-align: center; }
.ml .gui-empty > img.g { width: 3em; height: 3em; object-fit: contain; }

.ml__pager { display: flex; align-items: center; justify-content: center; gap: .9em; flex: none; }
.ml__pager-at { min-width: 4em; text-align: center; color: var(--ink-mute); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

.ml__reading { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 1.2em 1.4em;
  border: 1px solid var(--field-border); border-radius: .45em; background: var(--paper); color: var(--ink); }
.ml__empty { border: 1px solid var(--field-border); border-radius: .45em; background: var(--paper); color: var(--ink-mute); min-height: 16em; }
.ml__inbox--empty { grid-template-columns: minmax(0, 1fr); }
.ml__back { display: none !important; }
.ml__subject { margin: 0; color: var(--ink-strong); font: var(--face-display-weight) var(--fs-xl)/1.15 var(--face-display); overflow-wrap: anywhere; }
.ml__sender { margin-top: .25em; color: var(--green); }
.ml__date, .ml__deadline { color: var(--ink-mute); font-size: var(--fs-sm); }
.ml__deadline { padding-bottom: .8em; border-bottom: 1px solid var(--hairline); }
.ml__body { padding: 1em 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.ml__attachments { display: grid; gap: .5em; margin-top: auto; padding-top: 1em; }
.ml__attachment-items { display: flex; align-items: center; flex-wrap: wrap; gap: .7em; min-width: 0; }
.ml__att-items { --cols: 8; }

/* --- the writing face */
.ml__compose { display: grid; align-content: start; gap: .6em; flex: 1; min-height: 0; padding: 1em 1.2em;
  border: 1px solid var(--field-border); border-radius: .45em; background: var(--paper); }
.ml__compose .field--area textarea { min-height: 5em; }
.ml .band__label > img.coin { width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-right: .3em; }
.ml .band__action { display: flex; align-items: center; gap: .8em; }
.ml__gold { width: 8em; min-width: 0; }
.ml__postage { display: inline-flex; align-items: center; gap: .4em; }
.ml__drop { display: grid; gap: .5em; padding: .6em; border: 1px dashed var(--tan-rim); border-radius: .5em; }
.ml__drop.is-over { border-color: var(--drop-on-rim); background: var(--drop-on-bg); }
.ml__att { --cols: 8; }
.ml__att .tile[data-att] { cursor: var(--cur-grab, grab); touch-action: none; }
/* An attachment no longer in the bag (or short of its amount): ringed in the refusal colour, its
   card says why (B190). */
.ml__att .tile.is-bad { outline: 2px solid var(--error); outline-offset: -2px; }

/* --- the foot: the result line, then the face's verbs */
.wins > .win.ml .win__foot { flex-wrap: wrap; gap: .5em; }
.ml__said { flex: 1 1 10em; min-width: 0; overflow-wrap: anywhere; }
.ml__group { display: flex; flex-wrap: wrap; gap: .5em; }

/* MOBILE MODE: half the sheet beside the bag (drag from one to the other); the list or the open
   letter, one at a time, with the letter's verbs only while it is open; the secondaries are their
   picture (the word on the card). */
html.m-mobile .wins > .win.ml { width: 39em; height: calc(var(--stage-h) - 32px); }
html.m-mobile .ml__bar .band { display: none; }
html.m-mobile .ml__claim { margin-left: auto; }
html.m-mobile .ml__inbox { grid-template-columns: minmax(0, 1fr); }
html.m-mobile .ml:not(.ml--reading) .ml__reading,
html.m-mobile .ml.ml--reading .ml__side,
html.m-mobile .ml:not(.ml--reading) .ml__group { display: none !important; }
html.m-mobile .ml.ml--reading .ml__back { display: inline-grid !important; align-self: flex-start; margin-bottom: .6em; }
html.m-mobile .ml__verb > span { display: none; }
html.m-mobile .ml__row { min-height: var(--touch); }
/* The eight attachment places stay one row (four to a row cut the second row off under the frame);
   a short frame scrolls the face rather than clip it. */
html.m-mobile .ml__compose { padding: .7em; overflow-y: auto; overscroll-behavior: contain; }

/* ---- w-map.css */
/* THE WORLD MAP (apps/game/client/world-map.ts, `.win.wm-win[data-win=map]`): the legend down the
   left (place names, a row per kind of pin with its count, you; each a picture and its word) and
   the plate beside it. Placed by gui/win.ts; this
   sheet lays it out. Moved from 25-card.css + 20-components.css (P19), tokens only.
   Everything on the plate stands at its corner and is moved by `translate` (world-map.ts), so a
   rule here centres it with `transform` and never sets left/top. */
.wm-win.win { width: max-content; }
.wm { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5em; }

/* The legend: a column of rows as tall as the plate (height 0 + min-height 100% keeps it from
   stretching the window), scrolling when the kinds outgrow it. A row is its picture, its word and,
   for a kind of pin, its count; the lit one wears the selection. */
.wm__legend {
  display: flex; flex-direction: column; gap: .15em; min-width: 10em; max-width: 14em;
  height: 0; min-height: 100%; overflow-y: auto; overscroll-behavior: contain;
}
.wm__kinds { display: contents; }
.wm__kind {
  flex: none; display: flex; align-items: center; gap: .5em; width: 100%; padding: .25em .4em;
  border: 0; border-radius: .3em; background: none; color: var(--ink); font: inherit; text-align: left;
  cursor: var(--cur-hand, pointer);
}
.wm__kind:hover { background: var(--row-hover); }
.wm__kind[hidden] { display: none; }
.wm__kind.is-on { background: var(--row-on); color: var(--ink-strong); }
.wm__kind .ic { flex: none; width: 1.6em; height: 1.6em; }
/* A kind's badge, the one on the plate (P8), in the icon column. */
.wm__kind > .wm__badge { flex: none; width: 1.6em; height: 1.6em; }
.wm__label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-sm); }
.wm__n {
  flex: none; min-width: 1.6em; padding: 0 .3em; border-radius: .6em;
  background: var(--count-bg); color: var(--ink-strong);
  font-size: var(--fs-xs); line-height: 1.4em; text-align: center; font-variant-numeric: tabular-nums;
}

.wm__well { padding: .3em; }
.wm__plate {
  position: relative; overflow: hidden; touch-action: none; cursor: var(--cur-hand, pointer);
  width: min(52em, calc(40em * var(--wm-ratio, 1)));
  aspect-ratio: var(--wm-ar, 1); border-radius: .3em; background: var(--void);
}
.wm__ground { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wm__layer { position: absolute; inset: 0; pointer-events: none; }
.wm .is-off { visibility: hidden; }

.wm__pin, .wm__name, .wm__mark, .wm__goal, .wm__you, .wm__coord, .wm__route { position: absolute; left: 0; top: 0; }

/* A pin: its kind's own painting (world-map.ts PIN_ICON, P8) on a navy disc ringed in its family's
   colour - blue a way out, red a door, green a counter - centred on the point it names; the legend's
   row wears the same badge. A kind with no painting draws its round badge (data/art/ui/map). */
.wm__pin {
  width: 1.9em; height: 1.9em; padding: 0; border: 0; background: none; pointer-events: auto;
  transform: translate(-50%, -50%); transition: transform .12s, opacity .12s;
  cursor: var(--cur-hand, pointer);
}
.wm__badge {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--navy-1);
  box-shadow: inset 0 0 0 max(1.5px, .1em) var(--wm-fam, var(--brass-hi)), 0 .05em .15em rgba(var(--world-dark), .7);
}
.wm__badge > img.g { display: block; width: 72%; height: 72%; object-fit: contain; }
.wm__badge--art { background: none; box-shadow: none; }
.wm__badge--art > img.g { width: 100%; height: 100%; }
.wm__pin--portal, .wm__kind--portal { --wm-fam: var(--world-q-blue); }
.wm__pin--instance, .wm__kind--instance { --wm-fam: var(--ember-500); }
.wm__pin--service, .wm__kind--service { --wm-fam: var(--world-q-green); }
.wm__pin--service { cursor: var(--cur-talk, pointer); }
.wm__pin--portal, .wm__pin--instance { cursor: var(--cur-portal, pointer); }
.wm__pin:hover, .wm__pin.is-lit { z-index: 1; transform: translate(-50%, -50%) scale(1.25); }
/* A kind lit from the legend: the rest step back. */
.wm__pins.has-lit > .wm__pin:not(.is-lit) { opacity: .35; }

/* A named place: text on the ground, in the world layer's voice. */
.wm__name {
  transform: translate(-50%, -50%); white-space: nowrap;
  color: var(--world-text); font-size: var(--fs-sm); letter-spacing: .04em;
  text-shadow: 0 0 .2em rgba(var(--world-dark), .95), 0 .08em .12em rgba(var(--world-dark), .9);
}

/* Where a creature stands (a quest objective pressed), and a band still standing in a run. */
.wm__mark {
  width: .6em; height: .6em; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--ember-500); box-shadow: 0 0 0 2px var(--world-text), 0 1px 2px rgba(var(--world-dark), .55);
}
.wm__mark--band { width: .45em; height: .45em; background: var(--ember-400); box-shadow: 0 0 0 1.5px var(--world-text); }
/* A creature asked for: hovering a dot names it (data-tip-text). */
.wm__mark--ask { pointer-events: auto; cursor: var(--cur-hand, pointer); transition: transform .12s; }
.wm__mark--ask:hover { z-index: 1; transform: translate(-50%, -50%) scale(1.5); }

/* The walk under way: the server's route and where it ends. */
.wm__route { width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wm__route.is-off { display: none; }
.wm__route polyline {
  fill: none; stroke: var(--world-text); stroke-width: 3px; stroke-dasharray: 6 5;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Hunt Mode's track: you, then every band left in the order it takes them. */
.wm__track polyline { stroke: var(--ember-400); stroke-width: 2.5px; stroke-dasharray: 5 4; }
.wm__goal {
  width: .7em; height: .7em; transform: translate(-50%, -50%); pointer-events: none; border-radius: 50%;
  background: var(--link-ink); box-shadow: 0 0 0 2px var(--world-text), 0 1px 2px rgba(var(--world-dark), .55);
}
/* You: the gold pin with a walker in its ring, standing on its point, over every badge and never a
   click target - the ground under it is. */
.wm__you { width: 1.7em; height: 2.6em; transform: translate(-50%, -100%); pointer-events: none; z-index: 2; }
.wm__you > img.g { display: block; width: 100%; height: 100%; object-fit: contain; }

/* The tile under the mouse, riding above and right of it; the answer's caption, top left. */
.wm__coord, .wm__ask {
  padding: .1em .45em; border-radius: .25em; pointer-events: none; white-space: nowrap;
  background: var(--count-bg); color: var(--ink-strong); font-size: var(--fs-sm);
}
.wm__coord { z-index: 3; transform: translate(12px, calc(-100% - 6px)); font-variant-numeric: tabular-nums; }
.wm__ask { position: absolute; left: .4em; top: .4em; z-index: 3; }
.wm__coord[hidden], .wm__ask[hidden], .wm__goal[hidden], .wm__you[hidden] { display: none; }

/* Mobile mode: the map takes the sheet. The legend stays the column down the left, narrower, the
   plate fills the rest at the sheet's height (zoom 1 covers it; a pinch out shows the whole map),
   and the badges grow to a thumb. */
html.m-mobile .wm-win.win { width: calc(var(--stage-w) - 16px); }
html.m-mobile .wm__legend { min-width: 8.5em; max-width: 11em; }
html.m-mobile .wm__kind { padding: .35em .4em; min-height: var(--hit); }
/* The legend scrolls inside the window (P7) beside the plate: its foot fades so a cut row reads as
   more below, and the padding lets the last row scroll clear of the fade. */
html.m-mobile .wm__legend {
  padding-bottom: 1.5em;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 1.5em), transparent);
  mask-image: linear-gradient(#000 calc(100% - 1.5em), transparent);
}
html.m-mobile .wm__plate { width: auto; aspect-ratio: auto; height: max(8em, calc(var(--stage-h) - 7.5em)); }
html.m-mobile .wm__pin { width: 2.4em; height: 2.4em; }

@media (prefers-reduced-motion: reduce) {
  .wm__pin { transition: none; }
}

/* ---- w-market.css */
/* THE MARKETPLACE (panels/market/*, `.win.market[data-win=market]`): the gui/ shell around four tabs.
   Placed by gui/win.ts; this sheet sizes it and lays out the two shelf panes (`.mks`): the Tamer
   Store (official.ts) and the Exchange (`.mks.mkl`, legacy.ts), the Lumi Exchange (`.mkx`, lumi.ts),
   My Transactions (`.mkm`, mine.ts) and the price chart (`.mkc`, book.ts) both book tabs share.
   20-components.css draws every part (tabs, well, item row, tile, chip, button, the "?"). The panes
   answer the window's own width (container `marketplace`), so a narrow window switches columns on a
   wide screen. Phones are landscape: the short height is the constraint, so every pane scrolls in
   its own columns and nothing stacks tall. */

/* A fixed height, so the lists scroll inside it and the purses stay in the foot (plan D8). */
.wins > .win.market { height: 50em; }
html.m-mobile .wins > .win.market { width: 64em; height: calc(var(--stage-h) - 32px); }

.market { container: marketplace / inline-size; }
.market .win__foot { gap: .5em; }
.market__note { margin-left: auto; min-width: 0; overflow-wrap: anywhere; }

/* Every pane fills the body and scrolls in its own columns, on every screen: the old
   short-screen rule that made the whole body one scroller put its rows under the fold (B153). */
.wins > .win.market > .win__body { display: flex; flex-direction: column; gap: .6em; overflow: hidden; }
.mks { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .6em; flex: 1; min-height: 0; min-width: 0; }
.mks[hidden] { display: none; }

/* ---------------------------------------------------------------- the tools: search, sort, "?" */
.mks__tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11em, 14em) auto; gap: .6em; align-items: center; min-width: 0; }
.mks__sort { display: flex; align-items: center; gap: .35em; min-width: 0; }
.mks__sort > .ic { flex: none; width: 1.2em; height: 1.2em; }
.mks__sort > .select { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- the shelf tree (shelves.ts)
   Calm (owner, 2026-10-10): no rule between rows, no counts, an empty
   shelf in muted ink, the pick lit with a brass edge, a class and a part indented on a guide line
   under their parent. */
.mks__grid { display: grid; grid-template-columns: 10.5em minmax(0, 1fr) minmax(18em, 24em); gap: .8em; min-height: 0; min-width: 0; }
.mks__cats, .mks__list, .mks__side { min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.mks__cats { display: grid; align-content: start; gap: 1px; padding-right: .5em; border-right: 1px solid var(--hairline); }
.mks__cat {
  appearance: none; -webkit-appearance: none; margin: 0; font: inherit;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35em;
  width: 100%; min-height: 1.95em; padding: .2em .5em; border: 0; border-radius: .35em;
  background: none; color: var(--ink); text-align: left; cursor: var(--cur-hand, pointer);
}
.mks__cat:hover { background: var(--row-hover); }
.mks__cat.is-on { background: var(--row-on); box-shadow: inset 2px 0 0 var(--brass-hi); }
.mks__cat.is-empty:not(.is-on) { color: var(--ink-mute); }
.mks__catname { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mks__cat[data-level="1"], .mks__cat[data-level="2"] {
  width: auto; border-radius: 0 .35em .35em 0; font-size: var(--fs-sm);
  box-shadow: inset 1px 0 0 var(--hairline);
}
.mks__cat[data-level="1"] { margin-left: .7em; }
.mks__cat[data-level="2"] { margin-left: 1.4em; }
.mks__cat[data-level].is-on:not([data-level="0"]) { box-shadow: inset 2px 0 0 var(--brass-hi); }
.mks__caret { width: .7em; height: .7em; flex: none; opacity: .55; transform: rotate(-90deg); transition: transform .15s; }
.mks__cat.is-open > .mks__caret { transform: none; }
.mks__caret[hidden] { display: none; }

/* ---------------------------------------------------------------- rows, the pick */
.mks__list { align-content: start; }
.mks__row { cursor: var(--cur-hand, pointer); }
.mks__row .item-row__end .chip { font-size: var(--fs-lg); }
.mks__sub { display: inline-flex; flex-wrap: wrap; gap: 0 .7em; }
.mks__row .item-row__sub { display: inline-flex; flex-wrap: wrap; gap: 0 .7em; }
.mks__none { display: grid; gap: .3em; justify-items: center; align-content: center; min-height: 12em; text-align: center; }
.mks__none[hidden] { display: none; }

.mks__side { display: flex; flex-direction: column; gap: .6em; }
.mks__side > [hidden] { display: none; }
/* The Exchange's pick (legacy.ts): tile, name, its facts, the verb. */
.mks__detail { display: grid; gap: .5em; align-content: start; }
.mks__detail > [hidden] { display: none; }
.mks__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6em; align-items: center; }
.mks__head > div { display: grid; gap: .15em; min-width: 0; }
.mks__name { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.mks__name--green { color: var(--rarity-green-text); }
.mks__name--blue { color: var(--rarity-blue-text); }
.mks__name--gold { color: var(--rarity-gold-text); }
.mks__name--yellow { color: var(--rarity-yellow-text); }
.mks__name--purple { color: var(--rarity-purple-text); }
.mks__name--prism { color: var(--rarity-prism-text); text-shadow: var(--prism-glow); }
.mks__head .mks__sub { color: var(--ink-mute); font-size: var(--fs-sm); }
/* The Tamer Store's pick (official.ts): the item's own card laid flat in the column, then the
   price and Buy pinned under it. */
.mks__card > .card { width: auto; padding: 0; background: none; box-shadow: none; }
.mks__card { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mks__deal { flex: none; display: grid; gap: .5em; padding-top: .6em; border-top: 1px solid var(--hairline); }
.mks__deal > [hidden] { display: none; }
.mks__price { display: flex; align-items: baseline; gap: .6em; }
.mks__price .chip { font-size: var(--fs-xl); }
.mks__lot { color: var(--ink-mute); font-size: var(--fs-sm); }
/* A weekly-limited line with nothing left this week (official.ts): its tag greys out. */
.mks__row .tag.is-out { opacity: .5; }
.mks:not(.mkl) > .mks__grid > .mks__side { overflow: hidden; }

/* ---------------------------------------------------------------- narrow: the shelves become a strip
   In mobile mode and on a narrow window the shelf tree runs across the top as one line of chips
   (classes and parts follow Equipment in the same line), and the rows keep the full height beside
   the pick. */
@container marketplace (max-width: 62em) {
  .mks__grid { grid-template-columns: minmax(0, 1fr) minmax(15em, 19em); grid-template-rows: auto minmax(0, 1fr); gap: .5em; }
  .mks__cats { grid-column: 1 / -1; display: flex; gap: .3em; overflow-x: auto; overflow-y: hidden; padding: 0 0 .3em; border-right: 0; scrollbar-width: none; }
  .mks__cat, .mks__cat[data-level] { flex: none; width: auto; margin: 0; padding-inline: .7em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hairline); }
  .mks__cat.is-on, .mks__cat[data-level].is-on:not([data-level="0"]) { box-shadow: inset 0 0 0 1px var(--brass-hi); }
  .mks__cat { background: var(--field-face); }
  .mks__cat:hover { background: linear-gradient(var(--row-hover), var(--row-hover)), var(--field-face); }
  .mks__cat.is-on { background: linear-gradient(var(--row-on), var(--row-on)), var(--field-face); }
}
html.m-mobile .mks__grid { grid-template-columns: minmax(0, 1fr) minmax(13em, 16em); grid-template-rows: auto minmax(0, 1fr); gap: .5em; }
html.m-mobile .mks__cats { grid-column: 1 / -1; display: flex; gap: .3em; overflow-x: auto; overflow-y: hidden; padding: 0 0 .3em; border-right: 0; scrollbar-width: none; }
html.m-mobile .mks__cat, html.m-mobile .mks__cat[data-level] { flex: none; width: auto; margin: 0; min-height: var(--hit); min-width: var(--hit); padding-inline: .8em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hairline); }
html.m-mobile .mks__cat.is-on, html.m-mobile .mks__cat[data-level].is-on:not([data-level="0"]) { box-shadow: inset 0 0 0 1px var(--brass-hi); }
/* A chip has a face: the window's engraving ran straight through bare ones (owner, 2026-10-10). */
html.m-mobile .mks__cat { background: var(--field-face); }
html.m-mobile .mks__cat:hover { background: linear-gradient(var(--row-hover), var(--row-hover)), var(--field-face); }
html.m-mobile .mks__cat.is-on { background: linear-gradient(var(--row-on), var(--row-on)), var(--field-face); }
/* Drawn 32 px, a thumb high to press (P10): the 6 px above and below are a transparent border, the face
   clipped to the padding box. */
html.m-mobile .wins > .win .mks__cat { border-block: 6px solid transparent; background-clip: padding-box; }
html.m-mobile .mks__tools { grid-template-columns: minmax(0, 1fr) minmax(12.5em, 14em) auto; gap: .4em; }
html.m-mobile .mks__row { min-height: var(--touch); }
@container marketplace (max-width: 34em) {
  .mks__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .mks__side { max-height: 45%; }
}

/* ---------------------------------------------------------------- the Exchange (legacy.ts)
   The bar: Buy / Sell, then (buying) the finder, then the "?". Selling, the bag and the form take
   the grid's place. */
.mkl { grid-template-rows: auto minmax(0, 1fr); }
.mkl__tools { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8em; align-items: center; min-width: 0; }
/* Buy / Sell: two equal halves of a fixed strip. The text tabs' own 7em floor and wide padding pushed
   Sell out of the strip and over the finder (owner, 2026-10-10). */
.mkl__sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 12em; }
.mkl__sides .tabs__tab, .mkx__sides .tabs__tab { min-width: 0; padding-inline: .4em; }
.mkl__find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11em, 14em); gap: .6em; align-items: center; min-width: 0; }
.mkl__find[hidden] { display: none; }
/* The Sell side's bag search: the field alone, no sort beside it. */
.mkl__find.mkl__find--bag, html.m-mobile .mkl__find.mkl__find--bag { grid-template-columns: minmax(0, 1fr); }
.mkl__tools > .ibtn { grid-column: 3; }
.mkl__row { cursor: var(--cur-hand, pointer); }
.mkl__row .item-row__sub, .mks__sub { display: inline-flex; flex-wrap: wrap; gap: 0 .7em; }
.mkl__seller { color: var(--ink-mute); }
.mkl__end { display: inline-flex; align-items: center; gap: .35em; }
.mkl__end .chip { font-size: var(--fs-lg); }
.mkl__lead > .ic { width: 1.1em; height: 1.1em; }
/* A row's price with its label (Each, Price, Bid, Start), and a lot's end time after it. */
.mkl__price { display: inline-flex; align-items: center; gap: .35em; }
.mkl__price > small { color: var(--ink-mute); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; }
.mkl__ends { color: var(--ink-mute); font-size: var(--fs-xs); white-space: nowrap; }
.mkl__end .mkl__price .chip { font-size: var(--fs-md); }
.mkl__facts .kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3em .7em; }
.mkl__facts .kv > div { display: block; min-width: 0; }
.mkl__facts .kv__val { display: block; overflow-wrap: anywhere; }
.mkl__book, .mkl__gear { display: grid; gap: .5em; min-width: 0; }
.mkl__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3em .7em; }
.mkl__stats > div { display: block; min-width: 0; }
.mkl__book > .tabs { display: flex; min-width: 0; }
.mkl__book > .tabs .tabs__tab { flex: 1; min-width: 0; padding-inline: .2em; }

.mkl__sell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18em, 24em); gap: .8em; min-height: 0; min-width: 0; }
.mkl__stack { cursor: var(--cur-hand, pointer); }
.mkl__form { display: grid; gap: .5em; align-content: start; min-width: 0; }
.mkl__form > [hidden] { display: none; }
.mkl__qty { display: flex; align-items: center; gap: .5em; min-width: 0; }
.mkl__qty > .field { width: 6em; flex: none; }
.mkl__buyqty { display: grid; gap: .4em; }
.mkl__hours { display: grid; gap: .3em; }

/* ---------------------------------------------------------------- the price chart (book.ts)
   Scale, line, axis: three rows of the well that holds it; a book with no line says why instead. */
.mkc { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .3em; height: 100%; min-height: 9em; min-width: 0; }
.mkl__book .mkc { height: 10em; }
.mkc__scale, .mkc__axis { display: flex; justify-content: space-between; gap: .6em; color: var(--ink-mute); font-size: var(--fs-sm); }
.mkc__svg { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.mkc__grid { stroke: var(--hairline); stroke-width: 1; stroke-dasharray: 3 5; }
.mkc__line { fill: none; stroke: var(--moss-400); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mkc__area { fill: var(--moss-400); opacity: .13; stroke: none; }
.mkc__svg.is-down .mkc__line { stroke: var(--ember-400); }
.mkc__svg.is-down .mkc__area { fill: var(--ember-400); }
.mkc__none { grid-row: 1 / -1; place-self: center; text-align: center; }

@container marketplace (max-width: 62em) {
  .mkl__sell { grid-template-columns: minmax(0, 1fr) minmax(15em, 19em); }
}
html.m-mobile .mkl__sell { grid-template-columns: minmax(0, 1fr) minmax(13em, 16em); gap: .5em; }
html.m-mobile .mkl__tools { gap: .4em; }
html.m-mobile .mkl__sides { width: 9em; }
html.m-mobile .mkl__find { grid-template-columns: minmax(0, 1fr) minmax(8em, 10em); gap: .4em; }
html.m-mobile .mkl__row, html.m-mobile .mkl__stack { min-height: var(--touch); }
@container marketplace (max-width: 34em) {
  .mkl__tools { grid-template-columns: minmax(0, 1fr) auto; }
  .mkl__find { grid-column: 1 / -1; grid-row: 2; }
  .mkl__tools > .ibtn { grid-column: 2; grid-row: 1; }
  .mkl__sell { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
}

/* ---------------------------------------------------------------- the Lumi Exchange (lumi.ts)
   Buy / Sell, the rate and the "?" on one bar; then the deal (you give -> you get, amount and
   price, when it trades, the one button) beside Offers (who sells, who buys, the price line). Each
   column scrolls in itself, so the button stays in reach on a short screen. */
.mkx { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .6em; flex: 1; min-height: 0; min-width: 0; }
.mkx[hidden] { display: none; }
.mkx__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8em; align-items: center; min-width: 0; }
.mkx__sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mkx__sides .tabs__tab { gap: .5em; }
.mkx__sides .coin { width: 1.5em; height: 1.5em; }
/* The form and the price history side by side on top, the order book under both, across the pane. */
.mkx__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(18em, 24em); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "deal chart" "book book"; gap: .8em; min-height: 0; min-width: 0;
}
.mkx__deal { grid-area: deal; }
.mkx__chart { grid-area: chart; }
.mkx__board { grid-area: book; }
.mkx__deal, .mkx__board { min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; }

.mkx__deal { display: grid; gap: .75em; align-content: start; }
.mkx__deal > [hidden] { display: none; }
.mkx__rate { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .4em; min-width: 0; font-size: var(--fs-lg); }
.mkx__eq { color: var(--ink-mute); }
.mkx__ratenote { color: var(--ink-mute); font-size: var(--fs-sm); margin-left: .3em; }
.mkx__swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .6em; align-items: center; }
.mkx__leg { display: grid; gap: .2em; min-width: 0; padding: .55em .7em; border-radius: .45em; background: var(--field-face); box-shadow: inset 0 0 0 1px var(--hairline); }
.mkx__leg--get { box-shadow: inset 0 0 0 1px rgba(var(--brass-hi-rgb), .45); }
.mkx__amt .chip { font-size: var(--fs-xl); }
.mkx__arrow { width: 1.2em; height: 1.2em; opacity: .7; }
.mkx__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em; min-width: 0; }
.mkx__field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35em; align-items: end; min-width: 0; }
.mkx__whenrow { display: flex; align-items: center; justify-content: space-between; gap: .6em; min-height: 2em; }
.mkx__whenrow > .select[hidden] { display: none; }
.mkx__when { color: var(--ink-mute); }
.mkx__when.is-now { color: var(--green); }

.mkx__board { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: .7em; overflow: hidden; }
/* Offers: buyers and sellers side by side, best price on top of each, then the latest trades. A
   line is price | Lumi | orders over a bar as long as its share of its side, grown from the middle
   of the book outward. Every price is drawn (owner, 2026-10-21), so each column scrolls in itself
   under its own head. */
.mkx__depth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .9fr); gap: 1.2em; min-width: 0; min-height: 0; }
.mkx__col { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: .2em; align-content: stretch; min-width: 0; min-height: 0; }
.mkx__ladder { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* The latest trades: time | price | Lumi, the price in the colour of the side that crossed. */
.mkx__col--tape .mkx__sidecap { color: var(--ink-mute); }
.mkx__col--tape .mkx__head, .mkx__fill { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
.mkx__fill { cursor: var(--cur-arrow); background: none; }
.mkx__fill[data-side="0"] .mkx__p { color: var(--green); }
.mkx__fill[data-side="1"] .mkx__p { color: var(--error); }
.mkx__view { display: none; }
.mkx__head, .mkx__lvl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 4em; gap: .4em; align-items: center; text-align: left; }
.mkx__head { padding: 0 .6em .25em; border-bottom: 1px solid var(--hairline); color: var(--ink-mute); font-size: var(--fs-md); }
.mkx__head > :not(:first-child), .mkx__lvl > :not(:first-child) { justify-self: end; }
.mkx__sidecap { font-size: var(--fs-md); }
.mkx__col[data-side="1"] .mkx__sidecap { color: var(--error); }
.mkx__col[data-side="0"] .mkx__sidecap { color: var(--green); }
.mkx__lvls { display: grid; gap: 1px; }
.mkx__lvl {
  appearance: none; -webkit-appearance: none; margin: 0; font: inherit; color: var(--ink); border: 0;
  width: 100%; min-width: 0; min-height: 0; height: auto; padding: .45em .6em; font-size: var(--fs-lg); border-radius: .3em; cursor: var(--cur-hand, pointer); font-variant-numeric: tabular-nums;
  --tone: var(--green);
  background: linear-gradient(to left, color-mix(in srgb, var(--tone) 22%, transparent) var(--depth, 0%), transparent var(--depth, 0%));
}
.mkx__lvls[data-side="1"] .mkx__lvl { --tone: var(--error); background: linear-gradient(to right, color-mix(in srgb, var(--tone) 22%, transparent) var(--depth, 0%), transparent var(--depth, 0%)); }
.mkx__lvl:hover { box-shadow: inset 0 0 0 1px var(--hairline); }
.mkx__head > span { display: inline-flex; align-items: center; gap: .25em; }
.mkx__head .coin { width: 1.2em; height: 1.2em; }
.mkx__p { color: var(--brass-hi); font-weight: 600; }
.mkx__lvl > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkx__n { color: var(--ink-mute); }
.mkx__mid { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.mkx__per { display: inline-flex; align-items: center; gap: .35em; }
.mkx__ladder > .note-line[hidden] { display: none; }
.mkx__chart { display: grid; gap: .4em; align-content: start; min-width: 0; }
.mkx__chart > .tabs { display: flex; min-width: 0; }
.mkx__chart > .tabs .tabs__tab { flex: 1; min-width: 0; padding-inline: .2em; }
.mkx__chart .mkc { height: 9em; }

@container marketplace (max-width: 62em) {
  .mkx__grid { grid-template-columns: minmax(0, 1fr) minmax(16em, 20em); }
  .mkx__depth { gap: .8em; }
}
/* Mobile swaps the two (owner, 2026-10-14): the order book is the whole right column, top to
   bottom, where a thumb that just named a price reads who stands at it; the price history sits
   under the form only. The narrow column stacks Buying over Selling, each in its own half of the
   height and scrolling inside it, so both sides are always in sight. (A five-level reserve per
   side pushed Selling below the fold of a landscape phone: a fresh sell offer looked missing.) */
html.m-mobile .mkx__grid { grid-template-columns: minmax(0, 1fr) minmax(15em, 18em); grid-template-areas: "deal book" "chart book"; gap: .5em; }
html.m-mobile .mkx__depth { grid-template-columns: minmax(0, 1fr); gap: .6em; }
/* The narrow column switches between the offers (Buying over Selling) and the latest trades. */
html.m-mobile .mkx__view { display: flex; }
html.m-mobile .mkx__board { grid-template-rows: auto auto minmax(0, 1fr); align-content: stretch; }
html.m-mobile .mkx__depth { grid-template-rows: repeat(2, minmax(0, 1fr)); }
html.m-mobile .mkx__board[data-view="0"] .mkx__col--tape { display: none; }
html.m-mobile .mkx__board[data-view="1"] .mkx__col:not(.mkx__col--tape) { display: none; }
html.m-mobile .mkx__board[data-view="1"] .mkx__depth { grid-template-rows: minmax(0, 1fr); }
html.m-mobile .mkx__col--tape .mkx__head, html.m-mobile .mkx__fill { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: .3em; }
html.m-mobile .mkx__fill { font-size: var(--fs-md); padding-inline: .3em; }
/* The FORM IS NEVER CUT (owner, 2026-10-14: at Standard the Buy button was): its row takes all it
   needs first and the history takes what is left, shrinking its line to fit, at every size. The
   history is one band under the form: its title, last sale and ranges on the left, the line beside
   them. On a glass too short even for the form, the form scrolls. */
html.m-mobile .mkx__grid { grid-template-rows: minmax(0, max-content) minmax(0, 1fr); }
html.m-mobile .mkx__chart { grid-template-columns: minmax(12em, 16em) minmax(0, 1fr); column-gap: .8em; align-items: start; min-height: 0; overflow: hidden; }
html.m-mobile .mkx__chart > .well__title, html.m-mobile .mkx__chart > .mkx__mid, html.m-mobile .mkx__chart > .tabs { grid-column: 1; }
html.m-mobile .mkx__chart > .mkc { grid-column: 2; grid-row: 1 / span 3; }
html.m-mobile .mkx__deal { gap: .5em; }
html.m-mobile .mkx__leg { grid-auto-flow: column; justify-content: space-between; align-items: center; padding: .35em .55em; }
html.m-mobile .mkx__lvl { min-height: var(--touch); }
html.m-mobile .mkx__chart .mkc { height: auto; min-height: 0; align-self: stretch; }
@container marketplace (max-width: 34em) {
  .mkx__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .mkx__rate { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .mkx__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "deal" "book" "chart"; overflow-y: auto; }
  .mkx__deal, .mkx__board { overflow: visible; }
  /* The pane scrolls as one here, so each list keeps a height of its own to scroll in. */
  .mkx__depth { grid-template-columns: minmax(0, 1fr); }
  .mkx__ladder { max-height: 14em; }
}

/* ---------------------------------------------------------------- a stack in the Bazaar's right panel
   (bazaar-auction.ts over desk.ts, owner 2026-11-07) Under the pick's facts: the desk's form with Buy |
   Sell over it, the price history, then the order book. The column is narrow in both modes, so Buying
   and Selling stand side by side and the latest trades are the other page of the book's switch. The
   panel is the one scroller (P7): the form, the book and its lists keep their full height inside it.
   Mobile stacks the form's two inputs, keeps its legs small and drops the Orders column. */
.mkx__one { display: inline-flex; }
.mkl__own { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3em .7em; }
.mkl__own > div { display: block; min-width: 0; }
.mks__side > .mkx__deal, .mks__side > .mkx__board { flex: none; overflow: visible; }
.mks__side > .mkx__deal { gap: .55em; }
.mks__side .mkx__leg { padding: .4em .55em; }
.mks__side .mkx__amt .chip { font-size: var(--fs-lg); }
.mks__side > .mkx__board { grid-template-rows: auto auto auto; gap: .5em; }
.mks__side .mkx__view { display: flex; }
.mks__side .mkx__depth { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: .6em; }
.mks__side .mkx__board[data-view="0"] .mkx__col--tape { display: none; }
.mks__side .mkx__board[data-view="1"] .mkx__col:not(.mkx__col--tape) { display: none; }
.mks__side .mkx__board[data-view="1"] .mkx__depth { grid-template-columns: minmax(0, 1fr); }
.mks__side .mkx__col { grid-template-rows: auto auto auto; }
.mks__side .mkx__ladder { overflow: visible; }
.mks__side .mkx__head { padding-inline: .4em; font-size: var(--fs-sm); }
.mks__side .mkx__head > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mks__side .mkx__head .coin { flex: none; }
.mkl__buy > .mks__side { overflow-x: hidden; }
.mks__side .mkx__lvl { font-size: var(--fs-md); padding: .3em .4em; }
.mks__side .mkx__col:not(.mkx__col--tape) .mkx__head, .mks__side .mkx__lvls:not(.mkx__tape) > .mkx__lvl {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: .3em;
}
html.m-mobile .mks__side .mkx__inputs { grid-template-columns: minmax(0, 1fr); }
html.m-mobile .mks__side .mkx__swap { gap: .3em; }
html.m-mobile .mks__side .mkx__leg { grid-auto-flow: row; justify-content: stretch; padding: .3em .45em; }
html.m-mobile .mks__side .mkx__amt .chip { font-size: var(--fs-md); }
html.m-mobile .mks__side > .mkx__board { grid-template-rows: auto auto auto; }
html.m-mobile .mks__side .mkx__depth { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
html.m-mobile .mks__side .mkx__board[data-view="1"] .mkx__depth { grid-template-columns: minmax(0, 1fr); }
html.m-mobile .mks__side .mkx__col:not(.mkx__col--tape) .mkx__head, html.m-mobile .mks__side .mkx__lvls:not(.mkx__tape) > .mkx__lvl {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
html.m-mobile .mks__side .mkx__col:not(.mkx__col--tape) .mkx__head > :last-child,
html.m-mobile .mks__side .mkx__lvls:not(.mkx__tape) .mkx__n { display: none; }
/* Buy and Sell are bare words here (Lumi's carry its coin): a thumb wide at least (P10). */
html.m-mobile .mks__side .mkx__sides .tabs__tab { min-width: var(--touch); }

/* ---------------------------------------------------------------- My Transactions (mine.ts)
   The filter, the mail and the "?" on one bar, a refusal line, then one scrolling column of lines:
   picture, name, where and when, the state, the money with its sign, the verb when it is open. */
.mkm { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: .6em; flex: 1; min-height: 0; min-width: 0; }
.mkm[hidden], .mkm [hidden] { display: none; }
.mkm__tools { display: flex; align-items: center; gap: .5em; min-width: 0; }
.mkm__filter { min-width: 0; }
.mkm__tools > .btn { margin-left: auto; padding-inline: .5em; }
.mkm__mailic { width: 1.4em; height: 1.4em; }
.mkm__list { grid-row: 3; display: grid; gap: .6em; align-content: start; min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.mkm__row.is-open { cursor: var(--cur-hand, pointer); }
.mkm__row .item-row__sub { display: inline-flex; flex-wrap: wrap; gap: 0 .7em; }
.mkm__row > .item-row__pic > .coin { width: 2em; height: 2em; }
.mkm__when { color: var(--ink-faint); }
.mkm__end { display: inline-flex; align-items: center; gap: .6em; }
.mkm__end > [hidden] { display: none; }
.mkm__state { font-size: var(--fs-sm); color: var(--ink-mute); }
.mkm__state--open, .mkm__state--leading { color: var(--brass-hi); }
.mkm__state--done { color: var(--ink); }
.mkm__state--partial { color: var(--rarity-yellow-text); }
.mkm__money { display: inline-flex; align-items: center; gap: .1em; min-width: 5.5em; justify-content: flex-end; }
.mkm__money .chip { font-size: var(--fs-lg); }
.mkm__money.is-in { color: var(--green); }
.mkm__money.is-quiet { opacity: .6; }
.mkm__sign { font-variant-numeric: tabular-nums; }
.mkm__more { justify-self: center; }
.mkm__loading { justify-self: center; padding: 2em 0; }
.mkm__none { display: grid; gap: .4em; justify-items: center; text-align: center; min-height: 12em; align-content: center; }
.mkm__none > .g { width: 3em; height: 3em; }
html.m-mobile .mkm__row, html.m-mobile .mkm__end > .btn { min-height: var(--touch); }
@container marketplace (max-width: 48em) {
  .market .win__foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .mks__caret { transition: none; }
}

/* ---------------------------------------------------------------- the Buy list's pager (legacy.ts)
   Twenty rows a page (owner, 2026-10-14), in the window's foot at the end of the purses' row so it
   is always in sight: the mail's arrows round "n / N". */
.mkl__pager { display: flex; align-items: center; gap: .6em; flex: none; } /* after the note, whose auto margin pushes both right */
.mkl__pager[hidden] { display: none; }
.mkl__pager-at { min-width: 4em; text-align: center; color: var(--ink-mute); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

/* The Exchange's shelf tree says how many listings stand on every line (owner, 2026-10-14). */
.mks__cats--count .mks__cat { grid-template-columns: minmax(0, 1fr) auto auto; }
.mks__catn { color: var(--ink-mute); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.mks__cat.is-on > .mks__catn { color: var(--ink); }

/* The Bazaar's pick in MOBILE (bazaar-auction.ts, owner 2026-11-07 option A): a stack's trade shows one
   part at a time - Trade, Chart or Order book - under a switch that sticks to the column's top while
   the part scrolls. Desktop never shows the switch and keeps the three stacked. */
.mkl__parts { display: none; }
html.m-mobile .mks__side.is-parts > .mkl__parts {
  display: flex; flex: none; position: sticky; top: 0; z-index: 1; background: var(--win-face);
}
html.m-mobile .mks__side.is-parts > .mkl__parts .tabs__tab { flex: 1; min-width: 0; padding-inline: .2em; }
html.m-mobile .mks__side.is-parts:not([data-part="trade"]) > .mkx__deal,
html.m-mobile .mks__side.is-parts:not([data-part="chart"]) > .mkl__book,
html.m-mobile .mks__side.is-parts:not([data-part="book"]) > .mkx__board { display: none; }
/* Its facts shrink to a strip so the switch and the part fit the short column: a small tile, the
   name over "Available · Lowest price", no shelf line. */
html.m-mobile .mks__side.is-parts > .mks__detail { gap: .35em; padding-block: .45em; }
html.m-mobile .mks__side.is-parts .mks__head .tile { --tile: 2.4em; }
html.m-mobile .mks__side.is-parts .mks__head .mks__sub { display: none; }
html.m-mobile .mks__side.is-parts .mkl__facts .kv { font-size: var(--fs-sm); gap: .1em .6em; }

/* ---- w-nadi.css */
/* NADI (panels/nadi.ts, `.win.nadi[data-win=nadi]`; owner 2026-11-20; two tabs since 2026-11-23, Nadi and Offering): the tier attuned to and the
   monsters one bar takes, this week's three chances, the World's Heart, this week's offering and
   the next tier, each cost a row of small tiles with held over needed under them. A desktop: one
   column in a 30em box. Mobile mode: its own layout, two columns side by side in a wide box (the
   phone is short: what you have on the left, what you can pay on the right). The foot holds the
   refusal's line and the one or two presses. [data-nadi] gives --nadi (ui/40-hud.css). Tokens only. */
.nadi [hidden] { display: none !important; }
.wins > .win.nadi > .win__body { display: flex; flex-direction: column; min-width: 0; }
.nadi__cols { display: grid; gap: .9em; align-content: start; min-width: 0; padding: .7em .2em 0 0; }
.nadi__col { display: grid; gap: .9em; align-content: start; min-width: 0; }
.nadi__sect { display: grid; gap: .45em; min-width: 0; }
.nadi__head { display: flex; align-items: center; gap: .5em; min-width: 0; }
.nadi__head > .help { margin-left: auto; }
.nadi__k { color: var(--ink-mute); }
.nadi__name { color: var(--ink); white-space: nowrap; }
/* The tier's colour: a cut gem beside its name and number. */
.nadi__gem { flex: none; width: .7em; height: .7em; rotate: 45deg; background: var(--nadi); box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .9), 0 0 .5em color-mix(in srgb, var(--nadi) 60%, transparent); }
.nadi__now { display: flex; align-items: center; gap: .6em; padding: .6em .8em; border-radius: .5em; background: var(--band-bg); }
.nadi__now > .nadi__name { font-size: var(--fs-heading); }
.nadi__bar { margin-left: auto; display: inline-flex; align-items: baseline; gap: .45em; white-space: nowrap; }
.nadi__bar > b { color: var(--ink); }
.nadi__day { display: flex; align-items: baseline; justify-content: space-between; gap: .6em; padding: 0 .8em; }
.nadi__day > b { color: var(--ink); }
/* The tier's own figure, when this week plays another: struck through beside the one played. */
.nadi__was { color: var(--ink-mute); font-size: var(--fs-small); }
.nadi__odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5em; }
.nadi__odd { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .5em; padding: .4em .5em; border-radius: .5em; background: var(--band-bg); }
.nadi__odd > .tile { grid-row: 1 / span 2; }
.nadi__odd > .nadi__k { grid-column: 2; font-size: var(--fs-small); }
.nadi__pct { grid-column: 2; color: var(--ink); }
.nadi__odd > .nadi__was { grid-column: 2; }
.nadi__heartbox { display: grid; gap: .35em; }
.nadi__world { display: flex; align-items: center; gap: .6em; }
/* The three states in one shape: the go and stop pills' size for Steady too. */
.nadi__world > .pill { margin-left: auto; font-size: 1em; font-weight: 600; padding: .1em .7em; }
.nadi__heart { flex: none; display: grid; width: 2.6em; height: 2.6em; animation: nadi-beat 1.5s ease-in-out infinite; }
.nadi__heart > img { width: 100%; height: 100%; object-fit: contain; }
.nadi__heart[data-heart="strong"] { animation-duration: .85s; }
.nadi__heart[data-heart="faint"] { animation-duration: 2.8s; opacity: .8; }
.nadi__left { margin-left: auto; color: var(--ink-mute); font-size: var(--fs-small); white-space: nowrap; }
.nadi__head > .pill { margin-left: auto; }
.nadi__mats { display: flex; flex-wrap: wrap; gap: .5em .55em; }
.nadi__mat { display: grid; justify-items: center; gap: .15em; }
.nadi__fig { font-size: var(--fs-small); color: var(--ink-mute); white-space: nowrap; }
.nadi__mat.is-short > .nadi__fig { color: var(--error); }
.nadi .num { font-variant-numeric: tabular-nums; }
.nadi__why { flex: 1; min-width: 0; }
.wins > .win.nadi > .win__foot { justify-content: flex-end; }

/* THE OFFERING TAB (owner, 2026-11-23): this week's materials in a ring around the Nadi, each joined
   to it by an energy path (svg lines in the ring's 0..100 box). A path flows lit in the tier's
   colour once the bag holds enough of its material, dim while short; all lit, the core glows. */
.nadi__offerpane { justify-items: center; }
.nadi__offer { width: 100%; justify-items: center; text-align: center; }
.nadi__offer > .nadi__head { width: 100%; }
.nadi__ring { position: relative; width: 19em; aspect-ratio: 1; margin: .4em auto; }
.nadi__paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nadi__orbit { fill: none; stroke: rgba(var(--ink-wash), .12); stroke-width: .6; stroke-dasharray: 1.2 2.4; }
.nadi__ring.is-full .nadi__orbit { stroke: color-mix(in srgb, var(--nadi) 55%, transparent); stroke-dasharray: none; stroke-width: .9; filter: drop-shadow(0 0 1.5px var(--nadi)); }
.nadi__path { stroke: rgba(var(--ink-wash), .14); stroke-width: .8; stroke-linecap: round; stroke-dasharray: 2 3; }
.nadi__path.is-lit { stroke: color-mix(in srgb, var(--nadi) 40%, transparent); stroke-dasharray: none; stroke-width: 2.4; filter: drop-shadow(0 0 1.2px var(--nadi)); }
.nadi__flow { stroke: transparent; stroke-width: 1; stroke-linecap: round; fill: none; }
.nadi__flow.is-lit { stroke: var(--nadi); stroke-width: 1.3; stroke-dasharray: 6 14; filter: drop-shadow(0 0 1.5px var(--nadi)); animation: nadi-flow 1.6s linear infinite; }
@keyframes nadi-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 20; } }
.nadi__core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 5em; height: 5em; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--nadi) 30%, transparent), rgba(var(--navy-3-rgb), .85) 68%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--nadi) 55%, transparent), 0 0 1.2em color-mix(in srgb, var(--nadi) 25%, transparent); }
.nadi__corepic { display: grid; width: 3.4em; height: 3.4em; filter: drop-shadow(0 0 .45em color-mix(in srgb, var(--nadi) 80%, transparent)); }
.nadi__corepic > img { width: 100%; height: 100%; object-fit: contain; }
.nadi__ring.is-full .nadi__core { animation: nadi-beat 1.2s ease-in-out infinite; box-shadow: 0 0 0 1px var(--nadi), 0 0 2.2em color-mix(in srgb, var(--nadi) 65%, transparent); }
.nadi__nodes { position: absolute; inset: 0; }
.nadi__node { position: absolute; translate: -50% -50%; padding: .25em; border-radius: .5em; background: rgba(var(--navy-3-rgb), .9); }
.nadi__node.is-lit { box-shadow: 0 0 0 1px color-mix(in srgb, var(--nadi) 70%, transparent), 0 0 .8em color-mix(in srgb, var(--nadi) 40%, transparent); }
.nadi__node.is-lit > .nadi__fig { color: var(--ink); }
.nadi__ring.is-empty .nadi__nodes, .nadi__ring.is-empty .nadi__paths { display: none; }
.nadi__state.note-line--warn { color: var(--gold-bright); }
/* The Offering tab while this week's is still to make: a dot after its name. */
.nadi__dot { display: inline-block; width: .45em; height: .45em; margin-left: .4em; border-radius: 50%; background: var(--error); vertical-align: .15em; }
@media (prefers-reduced-motion: reduce) { .nadi__flow.is-lit, .nadi__ring.is-full .nadi__core { animation: none; } }

/* Mobile mode: two columns, the window wide and short. */
html.m-mobile .wins > .win.nadi { width: 56em; }
html.m-mobile .nadi__cols { grid-template-columns: minmax(0, 23em) minmax(0, 1fr); column-gap: 1.4em; }
/* Mobile: the Offering tab is one column, the ring smaller to fit the short phone. */
html.m-mobile .nadi__cols.nadi__offerpane { grid-template-columns: minmax(0, 1fr); }
html.m-mobile .nadi__ring { width: 15em; }
@media (prefers-reduced-motion: reduce) { .nadi__heart { animation: none; } }

/* ---- w-partyask.css */
/* THE PARTY'S QUESTION (panels/party.ts): a team invitation or a duel challenge, `.win.pty-ask
   [data-win=partyask]`, a popup in the one window stack (placed centred by gui/win.ts). The
   inviter's face beside the sentence when this client has seen them; the countdown and how many
   more wait behind it on the left of the foot, Refuse and Agree on the right. */
.pty-ask__row { display: grid; grid-template-columns: auto 1fr; gap: .8em; align-items: center; min-width: 0; }
.pty-ask__face[hidden] { display: none; }
.pty-ask__who { min-width: 0; overflow-wrap: anywhere; }
.pty-ask .win__body { display: grid; gap: .7em; }
.pty-ask__ttl { margin-right: auto; font-variant-numeric: tabular-nums; }
.pty-ask__more[hidden] { display: none; }
/* The duel challenge's rule strips (panels/duel.ts): up to five choices across the dialog. A tab's
   own floor (5.6em) and padding would push the fifth past the edge, so here each takes its share of
   the width, the longer word the wider share, and no floor. */
.duel-rules .tabs__tab, .duel-rules .tabs__tab.is-on { flex: 1 1 auto; min-width: 0; padding: 0 .5em; }

/* ---- w-pets.css */
/* THE PET WINDOWS (pets.ts `.win.petw[data-win=pets]`, panels/pet-room.ts `.win.penw[data-win=petroom]`
   and the pen body `.pen` it shares with the Pet Dealer's first tab, panels/pet-sheet.ts
   `.win.psw[data-win=petsheet]`). Placed by gui/win.ts: Pet Slot docks right, the pen and the
   sheet stand beside it (B234). 20-components.css draws every part (row, tile, band, bar, stat, well);
   this sheet lays them out. */

/* ---------------------------------------------------------------- PET SLOT */
.petw__body { display: grid; gap: .6em; align-content: start; }
.petw .band .tabs { margin-left: auto; }
.petw__row { cursor: var(--cur-hand, pointer); min-height: 4.2em; }
/* The rows are the window's scroller (a definite height): auto rows would grow only into its free
   space and be squeezed back to their min-height, the content spilling over the next row. */
.petw__rows { grid-auto-rows: max-content; }
.petw__row.is-shut { cursor: var(--cur-arrow, default); }
.petw__row.is-over { background: var(--drop-on-bg); box-shadow: inset 0 0 0 1px var(--drop-on-rim); border-radius: .35em; }
.petw__row.is-carried { opacity: .4; }
.petw__sub { display: grid; gap: .15em; }
.petw__line { display: flex; align-items: center; gap: .5em; }
.petw__lv { font-variant-numeric: tabular-nums; }
/* A vital: its painted mark, then the thin bar; the figures are on the pet's card. */
.petw__vital { display: grid; grid-template-columns: 1em minmax(0, 1fr); gap: .35em; align-items: center; }
.petw__vic { width: 1em; height: 1em; object-fit: contain; }
.petw__end { display: inline-flex; align-items: center; gap: .4em; }
/* Positions are icons only (RULES): the word is on each icon's card. */
.petw__pos .tabs__tab { padding: .15em .25em; min-width: 0; }
.petw__pos .pos-ic { width: 1.5em; height: 1.5em; object-fit: contain; }
.petw__pos .tabs__tab:not(.is-on) .pos-ic { opacity: .45; }

/* ---------------------------------------------------------------- THE PEN */
.pen { display: grid; gap: .6em; align-content: start; min-width: 0; }
.pen__grid { --cols: 6; justify-content: start; }
.pen__pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6em; align-items: center; }
.pen__who { display: grid; gap: .1em; min-width: 0; }
.pen__who > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pen__verbs { display: inline-flex; gap: .35em; }
/* The pen's tabs (#111): one per character of the account, each its face in its class ring, the
   one on show lit; a carried pet lights the tab it would go to (.is-drop, 20-components.css). */
.pen__tabs { justify-self: start; max-width: 100%; min-width: 0; }
.pen__tabs .tabs__tab, .pen__tabs .tabs__tab.is-on { flex: 0 1 auto; min-width: 0; padding: 0 .8em; }
/* A character's name (#635): whole while the strip fits, cut short when five long names do not. */
.pen__tabname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The pen's foot goes into its host's foot: the line takes the room, the two buttons stay whole. */
.pen__foot { display: contents; }
.pen__foot > .note-line { flex: 1; min-width: 0; }
.pen__acts { display: inline-flex; gap: .4em; margin-left: auto; flex: none; }

/* ---------------------------------------------------------------- PET INFORMATION */
.psw__body { display: grid; gap: .7em; align-content: start; }
.psw__grid { display: grid; grid-template-columns: 16em minmax(0, 1fr); gap: .9em; align-items: start; }
.psw__id { display: grid; gap: .5em; align-content: start; justify-items: center; min-width: 0; }
.psw__id > * { width: 100%; }
/* The Pet Information picture is the whole pet standing, no medallion: the bust (or a long-idle
   pet's playing idle, pet-art.ts petIdle) contained in a square a third bigger than the old
   medallion, standing on its bottom edge rather than cut to a round face.
   Its own width: `.psw__id > *` stretches, and `auto` left the absolutely placed picture a 0-wide well. */
.psw__id > .portrait { width: 6em; height: 6em; border-radius: 0; background: none; box-shadow: none; }
.psw__id > .portrait > :is(img, canvas) { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: contain; object-position: center bottom; }
.psw__title { display: flex; align-items: center; gap: .4em; }
.psw__name { font-family: var(--face-ui); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.psw__mood { display: flex; align-items: center; gap: .35em; }
.psw__happy { display: inline-flex; gap: .1em; margin-left: auto; }
.psw__happy > .g { width: 1em; height: 1em; }
.psw__main { display: grid; gap: .6em; align-content: start; min-width: 0; }
.psw__page { display: grid; gap: .6em; align-content: start; min-width: 0; }
/* Stat rows: the painted icon and its word (statName, as the Character window), the value, the
   growth band, the score. */
.psw .stat, .psw .stats__head { grid-template-columns: 4.6em minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .7fr); }
.psw .stats__head span:first-child { grid-column: auto; }
.psw__val { min-width: 0; }
.psw__combat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1em; max-height: 8.5em; }
.psw__acts { display: inline-flex; align-items: center; gap: .4em; }
.psw__bandhead { display: flex; align-items: center; gap: .5em; }
.psw__bandhead > .pill { margin-left: auto; }
.psw .win__foot { flex-wrap: wrap; row-gap: .3em; }
.psw__tier { margin-left: auto; }

/* DESKTOP: the sheet ends above the hotbar's band, its body scrolling under the head. */
html.m-desktop .wins > .win.psw { max-height: 46em; }

/* MOBILE MODE: Pet Slot and the pen are two half sheets side by side, so a pet drags straight across;
   the sheet takes the width, its identity column narrower. Rows keep a finger's height; tabs and
   buttons are 30-win.css's compact ones. */
html.m-mobile .wins > .win.petw, html.m-mobile .wins > .win.penw { width: 39em; max-height: calc(var(--stage-h) - 32px); }
html.m-mobile .wins > .win.psw { width: 46em; max-height: calc(var(--stage-h) - 32px); }
html.m-mobile .petw__row { min-height: var(--touch); }
/* Half a frame wide (paired with the pen) the positions and the card button take a second line
   under the name, the face beside both, so the name and the vitals keep their width. */
html.m-mobile .petw__row { grid-template-columns: auto minmax(0, 1fr); row-gap: .3em; }
html.m-mobile .petw__row > .item-row__pic { grid-row: span 2; }
html.m-mobile .petw__row > .petw__end { grid-column: 2; justify-self: end; }
html.m-mobile .petw__pos .tabs__tab { min-width: 36px; }
html.m-mobile .pen__grid { --cols: 4; }
/* A phone is ~390 css px tall: the identity column narrows, the portrait shrinks, and the stat rows
   drop the desktop's band height so Level, the three bars and the five attributes fit without
   scrolling. Rows stay whole; nothing is hidden. */
html.m-mobile .psw__grid { grid-template-columns: 10.5em minmax(0, 1fr); gap: .6em; }
html.m-mobile .psw__id { gap: .35em; }
html.m-mobile .psw__id > .portrait { font-size: 1.1em; }
html.m-mobile .psw__body, html.m-mobile .psw__main, html.m-mobile .psw__page { gap: .4em; }
html.m-mobile .psw__stats { gap: .25em; }
html.m-mobile .psw .stat { min-height: 2.1em; padding-block: .1em; border-radius: .5em; }
html.m-mobile .psw .stat .bar { height: 1.15em; }
html.m-mobile .psw__combat { max-height: 7em; }
/* A two-form pet's innate row (Primordial Nyro): the front form's tile / the back form's tile. */
.pskp { display: inline-flex; align-items: center; gap: .25em; }
.pskp__or { color: var(--ink-faint); font-weight: 700; }

/* PET ENCHANT (panels/pet-sheet.ts enchantPage, vault note 318), Ragnarok Origin's enchant layout
   (owner, 2026-11-02): the level bar on top; Current Stats » New Stats as two framed boxes, each led
   by a gold special-affix band (the affix, or the presses until one is certain); every line's level
   in gold before its stat; Material Cost centred between rules; the verbs at the foot. */
.pew { display: flex; flex-direction: column; gap: .5em; }
.pew__top { display: flex; flex-direction: column; gap: .25em; }
.pew__barrow { display: flex; align-items: center; gap: .6em; }
.pew__barrow .bar { flex: 1; }
.pew__barrow .btn { flex: none; min-width: 6.5em; }
.pew__main { display: flex; flex-direction: column; gap: .5em; }
.pew__listview { display: flex; flex-direction: column; gap: .45em; }
/* The Starmark List (owner, 2026-11-03): four columns, plate | short effect | plate | short effect;
   the plates keep one narrow width, the effect takes the rest; the full sentence is the plate's card. */
.pew__alist { display: grid; grid-template-columns: repeat(2, 7.2em minmax(0, 1fr)); gap: .4em .5em; max-height: 21em; align-content: start; align-items: center; }
.pew__aitem { display: contents; }
.pew__adesc { font-size: .76em; line-height: 1.15; opacity: .85; min-width: 0; overflow-wrap: anywhere; }
.pew__band.pew__band--mini { padding-left: 1.2em; padding-right: 1.1em; gap: .35em; font-size: .8em; min-width: 0; white-space: nowrap; }
.pew__band--mini > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pew__band--mini.pew__band::before, .pew__band--mini.pew__band::after { font-size: 1em; }
.pew__band.pew__band--mini { justify-content: center; }
html.m-mobile .pew__alist { grid-template-columns: repeat(2, 6.8em minmax(0, 1fr)); }
/* the two boxes share the width equally and may shrink below their words (which wrap), so the page
   never runs wider than its window (owner 2026-11-05: on a phone it scrolled sideways) */
.pew__cols { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .4em; align-items: stretch; }
.pew, .pew__main, .pew__cols > *, .pew__cost { min-width: 0; }
.pew__box { border: 1px solid rgba(232, 200, 114, .25); border-radius: .3em; background: rgba(0, 0, 0, .18); padding: .35em .45em .45em; min-height: 6.5em; }
.pew__boxhead { display: flex; align-items: center; gap: .4em; font-size: .8em; margin-bottom: .3em; }
.pew__boxhead > span { opacity: .75; min-width: 0; }
.pew__boxhead > span::before { content: "\2726  "; color: var(--gold, #e8c872); }
/* the box's `?` (#547) at the head's right end, at full strength */
.pew__boxhead > .help { margin-left: auto; }
.pew__lines { display: flex; flex-direction: column; gap: .25em; }
.pew__line { display: flex; gap: .5em; font-size: .9em; padding: .1em .35em; min-width: 0; overflow-wrap: anywhere; }
.pew__line--none { opacity: .55; }
.pew__lv { color: var(--gold, #e8c872); min-width: 2.6em; font-variant-numeric: tabular-nums; }
/* A Starmark plate's colours (owner, 2026-11-03): its tier's quality, white at 1 to purple at 6, in the
   game's own order (white, green, blue, yellow, gold, purple); --pb-a deep, --pb-b mid, --pb-c the
   sheen's light, --pb-glow the halo, --pb-ink the words. A plate with no tier (the pity band) is gold. */
.pew__band { --pb-a: #e2b445; --pb-b: #f8e08a; --pb-c: #fff4c2; --pb-glow: 255, 214, 102; --pb-ink: #3a2a06;
  display: flex; gap: .5em; align-items: center; font-size: .88em; font-weight: 600; padding: .25em .45em; border-radius: .25em;
  color: var(--pb-ink); background: linear-gradient(90deg, var(--pb-b), var(--pb-a)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.pew__band--t1 { --pb-a: #b9bfcc; --pb-b: #e4e8ef; --pb-c: #ffffff; --pb-glow: 225, 232, 255; --pb-ink: #262b36; }
.pew__band--t2 { --pb-a: #5fae3c; --pb-b: #a6e47f; --pb-c: #e6ffd6; --pb-glow: 134, 212, 95; --pb-ink: #163a0b; }
.pew__band--t3 { --pb-a: #3d8fdc; --pb-b: #8ccfff; --pb-c: #e3f4ff; --pb-glow: 99, 184, 255; --pb-ink: #0b2a4d; }
.pew__band--t4 { --pb-a: #e2b445; --pb-b: #f8e08a; --pb-c: #fff4c2; --pb-glow: 255, 224, 102; --pb-ink: #3a2a06; }
.pew__band--t5 { --pb-a: #e3782c; --pb-b: #ffb877; --pb-c: #ffe2c2; --pb-glow: 255, 161, 74; --pb-ink: #3d1c03; }
.pew__band--t6 { --pb-a: #9356dc; --pb-b: #d3a8ff; --pb-c: #f3e6ff; --pb-glow: 201, 139, 255; --pb-ink: #26093f; }
.pew__band .pew__lv { color: var(--pb-ink); opacity: .8; }
.pew__band[data-tip-text] { cursor: var(--cur-arrow); }
.pew__affix { text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); text-underline-offset: .2em; }
.pew__band--pity { justify-content: center; font-weight: 500; font-size: .8em; }
.pew__band--empty { background: rgba(232, 200, 114, .15); color: inherit; font-weight: 400; justify-content: center; }
.pew__arrow { align-self: center; font-size: 1.6em; color: var(--gold, #e8c872); opacity: .85; }
.pew__cost { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.pew__costhead { display: flex; align-items: center; gap: .6em; width: 100%; font-size: .85em; opacity: .85; }
.pew__costhead::before, .pew__costhead::after { content: ""; flex: 1; height: 1px; background: rgba(232, 200, 114, .3); }
.pew__mats { display: flex; flex-wrap: wrap; gap: .45em; justify-content: center; align-items: flex-end; }
.pew__mat { display: flex; flex-direction: column; align-items: center; gap: .1em; }
.pew__qty { font-size: .72em; font-variant-numeric: tabular-nums; }
.pew__qty.is-short { color: var(--stop, #e06a5a); }
.pew__press { grid-auto-flow: column; gap: .5em; }
.pew__press > .chip--bare { height: auto; padding: 0; color: inherit; }
.pew__verbs { display: flex; gap: .45em; align-items: center; flex-wrap: wrap; justify-content: center; }
.pew__info { flex: 1 1 100%; font-size: .78em; }
/* Mobile (landscape, short height; owner 2026-11-05): one column like desktop, the verbs in one row
   under Material Cost (Keep, the press, Take new), compact but still thumb-sized; the cap line under them. */
html.m-mobile .pew__verbs { flex-wrap: wrap; justify-content: center; gap: .4em; }
html.m-mobile .pew__verbs .btn { min-height: var(--touch); padding-inline: 1em; font-size: .88em; }
html.m-mobile .pew__verbs .pew__press { font-size: .82em; min-width: 0; padding-inline: 1.6em; }
html.m-mobile .pew__info { order: 9; flex: 1 1 100%; margin: 0; text-align: center; font-size: .72em; opacity: .8; }
html.m-mobile .pew__line { font-size: .85em; gap: .35em; padding-inline: .2em; }
html.m-mobile .pew__lv { min-width: 2.3em; }
html.m-mobile .pew__boxhead > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the gold plates in a narrow box: their words wrap inside the plate instead of running out of it */
html.m-mobile .pew__box .pew__band { flex-wrap: wrap; white-space: normal; min-width: 0; text-align: center; line-height: 1.2; }
html.m-mobile .pew__band--pity { font-size: .72em; }

/* The enchant in force under the pet's identity (pet-sheet.ts, every page): a gold-ruled head, then
   the Enchant page's own lines, a little smaller to fit the column. */
.psw__ench { display: flex; flex-direction: column; gap: .3em; margin-top: .6em; padding-top: .5em; border-top: 1px solid rgba(232, 200, 114, .3); }
.psw__enchhead { font-size: .8em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold, #e8c872); }
.psw__ench .pew__line, .psw__ench .pew__band { font-size: .82em; }

/* A Starmark in force or offered (owner, 2026-11-02): the band glows in its tier's colour and wears a four-pointed
   star at each end that twinkles; the pity and empty bands stay plain. Motion stops for reduced motion. */
.pew__band:not(.pew__band--pity):not(.pew__band--empty) {
  position: relative; padding-left: 1.6em; padding-right: 1.6em; overflow: visible;
  background: linear-gradient(100deg, var(--pb-a) 0%, var(--pb-b) 35%, var(--pb-c) 50%, var(--pb-b) 65%, var(--pb-a) 100%);
  background-size: 220% 100%; animation: pew-sheen 3.2s ease-in-out infinite;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 6px rgba(var(--pb-glow), .75), 0 0 14px rgba(var(--pb-glow), .45);
}
.pew__band:not(.pew__band--pity):not(.pew__band--empty)::before,
.pew__band:not(.pew__band--pity):not(.pew__band--empty)::after {
  content: "\2726"; position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.2em; line-height: 1;
  color: #fffdf4; text-shadow: 0 0 1px var(--pb-ink), 0 0 2px var(--pb-ink), 0 0 6px rgb(var(--pb-glow)), 0 0 12px rgba(var(--pb-glow), .95); animation: pew-twinkle 1.8s ease-in-out infinite;
}
.pew__band:not(.pew__band--pity):not(.pew__band--empty)::before { left: .35em; }
.pew__band:not(.pew__band--pity):not(.pew__band--empty)::after { right: .35em; animation-delay: .9s; }
@keyframes pew-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes pew-twinkle { 0%, 100% { opacity: .55; transform: translateY(-50%) scale(.8); } 50% { opacity: 1; transform: translateY(-50%) scale(1.15); } }
/* The pity band breathes (owner, 2026-11-04): a gold glow on its own layer swells and fades, opacity only so it
   never repaints the window; its words stay on one line. */
.pew__band--pity { position: relative; white-space: nowrap; overflow: visible; }
.pew__band--pity::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 6px rgba(255, 214, 102, .9), 0 0 14px rgba(255, 214, 102, .55);
  animation: pew-breathe 2.4s ease-in-out infinite;
}
@keyframes pew-breathe { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pew__band:not(.pew__band--pity):not(.pew__band--empty), .pew__band::before, .pew__band::after { animation: none; }
}

/* Starseal (pet-sheet.ts): a line in force is pressed to seal it; every sealable line wears the padlock, the sealed one lit. */
.pew__lockable { cursor: var(--cur-hand, pointer); border-radius: .25em; }
.pew__line.pew__lockable:hover { background: rgba(232, 200, 114, .1); }
.pew__lock { width: 1em; height: 1em; margin-left: auto; flex: none; opacity: .95; }
/* Not sealed yet: the same padlock, faint and grey, brighter under the pointer (owner 2026-11-06). */
.pew__lock--open { opacity: .3; filter: grayscale(1); }
.pew__line.pew__lockable:hover > .pew__lock--open { opacity: .6; }
.pew__band .pew__lock { position: relative; z-index: 1; }


/* Training: the levels trained against the total cap, on the Remaining Points band (owner, 2026-11-05). */
.psw__cultcap { font-size: .85em; font-variant-numeric: tabular-nums; color: var(--ink-mute); white-space: nowrap; }
.psw__cultcap.is-full { color: var(--gold, #e8c872); font-weight: 600; }
/* Training reset (owner, 2026-11-05): one button under the attributes, right-aligned. */
.psw__resetrow { display: flex; justify-content: flex-end; }

/* ---- w-quest.css */
/* THE NPC CONVERSATION (dialog-panel.ts, `.win.dlg[data-win=dialog]`) AND THE QUEST LOG (quest.ts,
   `.win.ql[data-win=quests]`), and the quest sheet's links. Placed by gui/win.ts; this sheet lays
   them out. 20-components.css draws every part (well, item row, tile, kv, tabs, pin, the .qs sheet). */

/* ---------------------------------------------------------------- the links
   ONE GESTURE PER LINK (PLAN 1.4), and each kind looks like what it does before it is hovered: a
   name with the walking boots walks there and talks; a creature with the map mark opens the world
   map on it. A dotted rule at rest, solid on hover. A name somewhere else in the world is not a
   walk: plain, muted, its map on its card. */
.qlink {
  display: inline-flex; align-items: center; gap: .2em; vertical-align: bottom;
  color: var(--link-ink); cursor: var(--cur-hand, pointer);
  text-decoration: underline dotted; text-underline-offset: .18em; text-decoration-thickness: from-font;
}
.qlink:hover { text-decoration-style: solid; }
.qlink__ic { width: 1.15em; height: 1.15em; object-fit: contain; flex: none; }
.qlink--map { color: var(--orange); }
.qlink.is-dim { color: var(--ink-mute); text-decoration: none; cursor: var(--cur-arrow, default); }
.kv__npc.is-dim .pin { opacity: .45; }

/* The objective row: the sheet's own rules color it (20-components.css .qs); its picture is a painting. */
.qs .item-row__pic > .g { width: 1.3em; height: 1.3em; object-fit: contain; display: block; }

/* ---------------------------------------------------------------- the conversation */
.dlg__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8em; align-items: start; }
.dlg__body.is-bare { grid-template-columns: minmax(0, 1fr); }
.dlg__side[hidden] { display: none; }
.dlg__bust { display: block; }
.dlg__main { display: grid; gap: .6em; min-width: 0; align-content: start; }
.dlg__main > [hidden] { display: none; }

/* The speech: a press turns the page while there is one; the chevron at its corner says so. */
.dlg__speech { position: relative; white-space: pre-line; }
.dlg__speech.is-more { padding-right: 2em; cursor: var(--cur-hand, pointer); }
.dlg__more { position: absolute; right: .55em; bottom: .55em; width: 1.1em; height: 1.1em; object-fit: contain; }
.dlg__more[hidden] { display: none; }

/* A choice row: the kind's painting, the words, the way on (or the ride's level). */
.dlg__rows .item-row, .dlg__qpick .item-row { cursor: var(--cur-hand, pointer); }
.dlg__ic { width: 1.6em; height: 1.6em; object-fit: contain; display: block; }
.dlg__go { width: 1em; height: 1em; object-fit: contain; opacity: .7; }
.dlg__rows .item-row.is-dim { opacity: .55; }
.dlg__note { white-space: pre-line; }

/* ---------------------------------------------------------------- the quest log */
.ql__body { display: grid; gap: .6em; align-content: start; }
/* Two columns that scroll on their own, one height (mobile mode: the sheet's, below). */
.ql__cols {
  display: grid; grid-template-columns: 20em minmax(0, 1fr); gap: .8em;
  height: 30.5em;
}
.ql__titles { align-content: start; min-height: 0; overflow-y: auto; }
.ql__titles > .cap { padding: .5em .5em .15em; }
.ql__titles .item-row { cursor: var(--cur-hand, pointer); }
.ql__titles .item-row__pic > .pill { white-space: nowrap; }
.ql__titles .item-row__end > .tag[hidden] { display: none; }
.ql__detail { display: grid; gap: .55em; align-content: start; min-height: 0; overflow-y: auto; }
.ql__detail > [hidden], .ql__quest > [hidden] { display: none; }
.ql__quest { display: grid; gap: .55em; align-content: start; min-width: 0; }
/* A tab with no rows: one empty state across both columns (P6). */
.ql__cols--none { grid-template-columns: minmax(0, 1fr); }
.ql__mob { font-size: var(--fs-lg); }
.ql__wanted { display: grid; }
.ql__goto > .g { width: 1.3em; height: 1.3em; object-fit: contain; }
/* Why a verb is dark, said where a finger can read it. */
.ql__why { color: var(--ink-mute); font-size: var(--fs-sm); white-space: pre-line; }

/* The foot: four verbs, each its painting and its word (the word on its card in mobile mode). */
.ql .win__foot .btn { display: inline-flex; align-items: center; gap: .35em; }
.ql__vi { width: 1.25em; height: 1.25em; object-fit: contain; }
.ql .win__foot .btn[hidden] { display: none; }

/* A BUTTON THAT IS READY, LIT THE WAY A PREMIUM REWARD BOX IS. Quest's Complete Now wears it the
   moment the server says the quest would be accepted; it is dark the rest of the time and a dark
   button with a light running round it would be a lie.

   The light rides the button's own RIM layer - `background` on .btn is the rim under the face its
   ::before paints - so nothing new is stacked and only the 1px line round the face shows it. The angle is a
   registered custom property because a conic gradient cannot be rotated by `transform` without
   turning the element itself. Its inks are the --btn-charge-* tokens. */
@property --btn-orbit {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.btn--charged {
  background:
    conic-gradient(from var(--btn-orbit),
      var(--btn-charge-hot) 0 3%,
      var(--btn-charge) 9%,
      var(--btn-charge-dim) 18%,
      transparent 30% 50%,
      var(--btn-charge-soft) 55%,
      transparent 64% 100%),
    var(--btn-rim);
  animation: btn-charge 2.6s linear infinite;
}
@keyframes btn-charge { to { --btn-orbit: 360deg; } }
@media (prefers-reduced-motion: reduce) { .btn--charged { animation: none; } }

/* COMPLETE NOW'S LIST (quest.ts finish, owner 2026-10-24): a caption per character and a checkbox row
   per quest - its name, then what it pays and what its bucket has left, or why it cannot go. The list
   scrolls inside the frame; a refused row is dimmed and its box takes no press. */
.ql-finish { display: flex; flex-direction: column; gap: .6em; max-height: 40em; overflow-y: auto; }
html.m-mobile .ql-finish { max-height: 25em; }
.ql-finish__char { display: flex; flex-direction: column; gap: .3em; }
.ql-finish__row { align-items: flex-start; padding: .25em 0; }
.ql-finish__row.is-dim { opacity: .55; cursor: var(--cur-arrow, default); }
.ql-finish__text { display: flex; flex-direction: column; gap: .1em; min-width: 0; }
.ql-finish__sub { font-size: var(--fs-sm); color: var(--ink-mute); }
/* Select all (#272): above the first caption, ruled off from the rows it drives. */
.ql-finish__all { padding: .25em 0 .45em; border-bottom: 1px solid var(--hairline); }

/* ---------------------------------------------------------------- mobile mode */
html.m-mobile .dlg__side { font-size: .75em; }
/* The log is as tall as the frame less its gutter; the strip and the foot stay put and the two
   columns (the titles, the pick) take what is left, each scrolling on its own (P7). */
html.m-mobile .wins > .win.ql { height: calc(var(--stage-h) - 32px); }
html.m-mobile .wins > .win.ql > .win__body { display: flex; flex-direction: column; overflow: hidden; }
html.m-mobile .ql__body > * { flex: none; }
html.m-mobile .ql__cols { flex: 1 1 auto; min-height: 0; height: auto; grid-template-columns: 18em minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: .5em; }
html.m-mobile .ql__vl { display: none; }
/* Complete Now's count, which the hidden label carries on a desktop: a small badge on its picture. */
.ql__vn { display: none; }
html.m-mobile .ql__vn:not(:empty) {
  display: inline-block; position: absolute; top: -.45em; right: -.45em; min-width: 1.4em; padding: 0 .3em;
  border-radius: .7em; background: var(--tan); color: var(--ink-strong); font-size: var(--fs-xs); line-height: 1.4em; text-align: center;
  box-shadow: 0 0 0 1px var(--tan-rim);
}
html.m-mobile .ql .win__foot .btn { position: relative; }
html.m-mobile .ql .win__foot .btn { min-width: var(--hit); justify-content: center; }

html.m-mobile .ql__cols--none { grid-template-columns: minmax(0, 1fr); }
/* Complete Now's Select all: a finger-high row. */
html.m-mobile .ql-finish__all { min-height: var(--hit); }
/* Mobile: the tracked quest's TRACKED tag is a small brass diamond (the word squeezed
   the name in the narrow list column down to its first letter); the word stays its title. */
html.m-mobile .ql__titles .item-row__end > .ql__pin { display: inline-block; flex: none; margin-right: .5em; width: .6em; height: .6em; padding: 0; overflow: hidden; text-indent: 2em; white-space: nowrap; rotate: 45deg; background: var(--brass-hi); border: 0; border-radius: 1px; box-shadow: 0 0 .4em rgba(var(--brass-rgb), .7); }

/* ---- w-sanctum.css */
/* THE SKYWARD SANCTUM (panels/sanctum.ts, window `sanctum`): a page, not a window. The whole page
   is the night sky, a dome seen through a fish-eye lens (panels/sanctum-dome.ts draws it on one
   canvas: sky, stars, the figures' lines and drawings); the series are CONSTELLATIONS whose stars,
   names and press areas are the DOM below, placed by the dome every frame. A complete figure takes
   its grade's colour (Genius / Supreme / Perfect). Dragging turns the sky; picking a figure glides
   the camera to it, the rest dim, the panel says its bonus and the picked star's Deposit / Take out.
   Details (totals, every ladder) are the sheet. Reduced motion stops the drift and the breathing.
   Desktop and mobile are each laid out below; the sky's own size is the view's, never the screen's. */

.snw [hidden] { display: none !important; }
/* The night's edge past the stage's edges (the notch and home bar strips): the page's veil (win.ts). */
.wins > .scrim--snw { background: var(--navy-0); animation: sn-in .2s ease-out; }

/* ---------------------------------------------------------------- the page */
.wins > .win.snw {
  inset: 0; width: auto; max-width: none; height: auto; max-height: none; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "head tools" "view view";
  padding: 1.2em 1.6em;
  overflow: hidden; isolation: isolate; box-shadow: none;
  /* the night under the dome's canvas, for the frame before it draws */
  background: var(--navy-0);
  animation: sn-in .2s ease-out;
}
.wins > .win.snw::before, .wins > .win.snw::after { content: none; }
@keyframes sn-in { from { opacity: 0; } }

/* ---------------------------------------------------------------- the head */
.sn__head { grid-area: head; z-index: 3; display: flex; align-items: center; gap: .6em; min-width: 0; pointer-events: none; }
.sn__head > * { pointer-events: auto; }
.sn__title {
  margin: 0; display: flex; align-items: center; gap: .6em; white-space: nowrap;
  font: var(--face-display-weight) var(--fs-title) / 1.1 var(--face-display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-hi); text-shadow: 0 0 .8em rgba(var(--sky-rgb), .35), 0 1px 0 rgba(var(--shadow-ink), .9);
}
/* A four-point star: the page's one ornament. */
.sn__spark {
  flex: none; width: .7em; height: .7em; background: var(--brass-pale);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.sn__back {
  display: grid; place-items: center; width: var(--touch); height: var(--touch); margin: -.4em 0 -.4em -.6em;
  padding: 0; border: 0; background: none; cursor: var(--cur-hand, pointer); opacity: .85;
}
.sn__back .ic { width: 1.6em; height: 1.6em; scale: -1 1; }
.sn__back:hover { opacity: 1; }

.sn__tools { grid-area: tools; z-index: 3; display: flex; align-items: center; gap: .8em; }
.sn__close { position: static; font-size: 1.15em; }
/* Total Bonus: a slim brass outline, the way into the details from anywhere. */
.sn__total {
  display: inline-flex; align-items: center; gap: .55em; min-height: 2.5em; padding: 0 1.1em;
  border: 1px solid rgba(var(--brass-rgb), .55); border-radius: 2em;
  background: linear-gradient(180deg, rgba(var(--brass-rgb), .14), rgba(var(--wash-rgb), .5));
  color: var(--brass-pale); font: var(--face-display-weight) var(--fs-small) / 1 var(--face-display);
  letter-spacing: .14em; text-transform: uppercase; cursor: var(--cur-hand, pointer);
  transition: border-color .15s, background .15s;
}
.sn__total .sn__spark { width: .8em; height: .8em; }
.sn__total:hover { border-color: var(--brass-hi); background: linear-gradient(180deg, rgba(var(--brass-rgb), .26), rgba(var(--wash-rgb), .5)); }

/* ---------------------------------------------------------------- the sky */
/* the sky fills the whole page, under the head and the tools */
.sn__view { position: absolute; inset: 0; z-index: 1; }
.sn__sky { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; touch-action: none; user-select: none; }
.sn__dome { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* A figure: the whole sky's box, so its parts place in sky %; it takes no presses itself. */
.sn__con { position: absolute; inset: 0; pointer-events: none; transition: opacity .45s; --con: rgb(200, 216, 255); }
.sn__con[data-grade="genius"] { --con: var(--world-q-yellow); }
.sn__con[data-grade="supreme"] { --con: var(--world-q-gold); }
.sn__con[data-grade="perfect"] { --con: var(--world-q-purple); }
.sn__sky[data-focus] .sn__con:not(.is-focus) { opacity: .1; }

/* the press area: a 100 px box the dome scales to the figure (a transform, so no layout per frame) */
.sn__hit {
  position: absolute; left: 0; top: 0; width: 100px; height: 100px; transform-origin: 0 0;
  padding: 0; border: 0; background: none; pointer-events: auto;
  cursor: var(--cur-hand, pointer);
}
.sn__con.is-focus .sn__hit { pointer-events: none; }

@keyframes sn-breath-star { from { opacity: .3; scale: .75; } to { scale: 1.3; } }

/* ---- a star: a press area bigger than the drawing, centred on its point, placed by the dome (its
   light is the dome's canvas). Only a focused figure's stars take presses, made large there. */
.sn__star {
  position: absolute; left: 0; top: 0; width: 1.8em; height: 1.8em; translate: -50% -50%;
  padding: 0; border: 0; background: none; pointer-events: none; cursor: var(--cur-hand, pointer);
}
/* a focused figure's stars stand large enough to show each pet and to press */
.sn__con.is-focus .sn__star { pointer-events: auto; font-size: 2.3em; }
/* in the whole sky an empty star is the dome's light alone */
.sn__con:not(.is-focus) .sn__star:not(.is-lit) .sn__glint { opacity: 0; }
/* The glint: a dim point while empty; lit, a white core with four fine rays and a halo whose
   opacity and size breathe with its figure (the only per-star motion). */
.sn__glint {
  position: absolute; left: 50%; top: 50%; width: .3em; height: .3em; translate: -50% -50%; border-radius: 50%;
  background: rgba(var(--sky-rgb), .45);
}
.sn__glint::before, .sn__glint::after { content: ""; position: absolute; pointer-events: none; }
.sn__star.is-lit .sn__glint { width: .38em; height: .38em; background: var(--ink-strong); }
.sn__star.is-lit .sn__glint::before {
  inset: -.9em; translate: 0 0;
  background:
    linear-gradient(90deg, transparent, rgba(var(--brass-pale-rgb), .9) 50%, transparent) center / 100% 1px no-repeat,
    linear-gradient(0deg, transparent, rgba(var(--brass-pale-rgb), .9) 50%, transparent) center / 1px 100% no-repeat;
}
.sn__star.is-lit .sn__glint::after {
  inset: -.7em; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brass-pale-rgb), .55), rgba(var(--brass-pale-rgb), .12) 45%, transparent 70%);
  animation: sn-breath-star 3.2s ease-in-out var(--breath, 0s) infinite alternate;
}
@keyframes sn-tw { 50% { opacity: .35; } }
/* a rare figure's stars: longer rays, a warmer core */
.sn__con.is-rare .sn__star.is-lit .sn__glint::before { inset: -1.25em; }
.sn__con.is-rare .sn__star:not(.is-lit) .sn__glint { box-shadow: 0 0 0 1px rgba(var(--sky-rgb), .18); background: rgba(var(--sky-rgb), .3); }
/* a complete figure's stars glow in its colour */
.sn__con.is-done .sn__star.is-lit .sn__glint::after { background: radial-gradient(circle, color-mix(in srgb, var(--con) 70%, transparent), color-mix(in srgb, var(--con) 16%, transparent) 45%, transparent 70%); }

/* the pet, shown once the figure is focused: in its star, the glint's halo behind it */
.sn__face {
  position: absolute; z-index: 1; left: 50%; top: 50%; --ico-box: 1.45em; translate: -50% -50%; border-radius: 50%;
  opacity: 0; scale: .5; transition: opacity .35s .25s, scale .35s .25s;
  box-shadow: 0 0 0 1px rgba(var(--sky-rgb), .3); background-color: rgba(var(--wash-rgb), .7);
}
.sn__con.is-focus .sn__face { opacity: .4; scale: 1; filter: grayscale(1); }
.sn__con.is-focus .sn__star.is-lit .sn__face { opacity: 1; filter: none; box-shadow: 0 0 0 1px rgba(var(--brass-pale-rgb), .8); }
.sn__con.is-focus.is-done .sn__star.is-lit .sn__face { box-shadow: 0 0 0 1px var(--con); }
.sn__con.is-focus .sn__glint { scale: 2.2; }
.sn__con.is-focus .sn__star:not(.is-lit) .sn__glint { opacity: 0; }
.sn__con.is-focus .sn__star.is-lit .sn__glint::before { opacity: 0; }
.sn__star.is-on .sn__face { box-shadow: 0 0 0 1px var(--ink-strong), 0 0 0 .14em rgba(var(--brass-pale-rgb), .4) !important; opacity: 1; filter: none; }
.sn__star:hover .sn__face { opacity: 1; }
/* the pet's bust (field monster art) cut round its head, in place of the head icon */
.sn__face.is-bust { background-size: cover; background-position: center; image-rendering: auto; }

/* an empty slot one of your pets could fill now: a small gold point that breathes */
.sn__ready { position: absolute; right: .1em; top: .1em; width: .3em; height: .3em; border-radius: 50%; background: var(--world-q-yellow); opacity: 0; }
.sn__star.is-ready .sn__ready { opacity: 1; animation: sn-tw 2.2s ease-in-out infinite; }
.sn__sky:not([data-focus]) .sn__ready { display: none; }

/* the figure's name, small caps under it; a complete one in its colour */
.sn__name {
  position: absolute; left: 0; top: 0; translate: -50% 0; width: max-content; max-width: 19cqw; pointer-events: none;
  opacity: var(--edge, 1);
  font: var(--face-display-weight) max(9px, .95cqw) / 1.25 var(--face-display); letter-spacing: .16em; text-transform: uppercase;
  text-align: center; color: rgba(var(--sky-rgb), .62); text-shadow: 0 1px 2px rgba(var(--shadow-ink), .9);
  transition: color .2s, opacity .3s;
}
.sn__con.is-done .sn__name { color: var(--con); }
.sn__hit:hover ~ .sn__name { color: var(--ink-strong); }
.sn__sky[data-focus] .sn__name { opacity: 0; }
.sn__dot.hud-dot { position: relative; display: inline-block; vertical-align: .2em; right: auto; top: auto; margin-left: .45em; width: 6px; height: 6px; pointer-events: auto; }

/* ---------------------------------------------------------------- the panel: the focused series */
.sn__panel {
  /* anchored at the top: the pick area grows under the list and never lifts it (owner 2026-11-07) */
  position: absolute; z-index: 2; right: 1.6em; top: 5.5em;
  width: min(26em, 36%); max-height: calc(100% - 11em); display: flex; flex-direction: column; gap: .5em;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.sn__panel.is-on { opacity: 1; pointer-events: auto; transition-delay: .25s; }
/* a soft dark pool behind the words, so the dimmed sky never reads through them (no box) */
.sn__panel::before {
  content: ""; position: absolute; inset: -4em -3em -4em -5em; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--wash-rgb), .8), rgba(var(--wash-rgb), .45) 60%, transparent);
}
.sn__eyebrow { color: var(--ink-mute); font-size: var(--fs-badge); letter-spacing: .2em; text-transform: uppercase; }
.sn__pname {
  margin: 0; font: var(--face-display-weight) calc(var(--fs-title) * 1.35) / 1.15 var(--face-display); letter-spacing: .08em;
  color: var(--brass-pale); text-shadow: 0 0 1em rgba(var(--sky-rgb), .3), 0 1px 0 rgba(var(--shadow-ink), .9);
}
/* THE REEL (owner 2026-11-05; arc 2026-11-07, after Genshin's constellation page): the pets the series
   needs, then the set effect, each a node in our astro ring (--art-ring) standing on one faint arc
   that runs from the top of the sky to the bottom (svg .sn__reel-line, drawn by sanctum.ts bend), its
   name beside it. A kept pet's node holds a tick, a
   missing one a dim point, one of yours that fits now a gold point; the picked one stands larger
   and glows. */
.sn__reel-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.sn__reel-line path { fill: none; stroke: url(#sn-arc-fade); stroke-width: 1.2; }
.sn__reel-line stop { stop-color: rgb(var(--brass-pale-rgb)); }
.sn__members { display: flex; flex-direction: column; align-items: flex-start; gap: .35em; margin: .2em 0 0; }
.sn__member {
  display: inline-flex; align-items: center; gap: .7em; min-height: var(--touch); padding: 0; border: 0; background: none;
  color: var(--ink-mute); font: inherit; font-size: var(--fs-small); cursor: var(--cur-hand, pointer); text-align: left;
  transition: color .15s;
}
.sn__member:hover, .sn__member.is-in { color: var(--ink-strong); }
.sn__member.is-on { color: var(--brass-hi); }
.sn__node {
  flex: none; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%;
  background: var(--art-ring) center / 100% 100% no-repeat, radial-gradient(circle, rgba(var(--navy-1-rgb), .95) 62%, transparent 64%);
  transition: scale .25s, box-shadow .25s, filter .25s;
}
.sn__member:hover .sn__node { filter: brightness(1.2); }
/* the picked one stands larger by scale, never by size: its row, its label and the arc keep still */
.sn__member.is-on .sn__node {
  scale: 1.35; filter: brightness(1.25);
  box-shadow: 0 0 .8em rgba(var(--brass-pale-rgb), .55), 0 0 2em rgba(255, 224, 102, .3);
}
.sn__node-label { line-height: 1.2; }
.sn__member-tick { width: 1em; height: 1em; color: var(--brass-hi); }
.sn__member-dot { width: .4em; height: .4em; border-radius: 50%; background: rgba(var(--sky-rgb), .35); }
.sn__member.is-ready .sn__member-dot { background: var(--world-q-yellow); box-shadow: 0 0 .35em var(--world-q-yellow); }
.sn__node .sn__spark { width: .9em; height: .9em; }
/* the bonus line: dim until the set is complete; a press opens the details */
.sn__fx {
  display: flex; align-items: center; gap: .7em; align-self: flex-start; min-height: var(--touch); padding: 0;
  border: 0; background: none; text-align: left; font: inherit; font-size: var(--fs-heading);
  color: var(--ink-mute); cursor: var(--cur-hand, pointer);
}
.sn__fx.is-on { color: var(--ink-strong); }
.sn__fx .sn__node-label { display: inline-flex; align-items: center; gap: .3em; }
.sn__fx.is-on .sn__node { box-shadow: 0 0 .7em color-mix(in srgb, var(--con, var(--brass-pale)) 60%, transparent); }
.sn__fx b { font-weight: 600; }
.sn__ink--genius, .sn__fx.sn__ink--genius b { color: var(--world-q-yellow); }
.sn__ink--supreme, .sn__fx.sn__ink--supreme b { color: var(--world-q-gold); }
.sn__ink--perfect, .sn__fx.sn__ink--perfect b { color: var(--world-q-purple); }
.sn__fx-go { width: 1em; height: 1em; opacity: .55; margin-left: .2em; }
.sn__fx:hover .sn__fx-go { opacity: 1; }
.sn__rule-line { display: block; height: 1px; background: linear-gradient(90deg, rgba(var(--brass-rgb), .6), transparent); }
.sn__hint { margin: 0; color: var(--ink-mute); font-size: var(--fs-small); letter-spacing: .04em; }

/* THE SHORTCUTS (owner 2026-11-05): along the foot while a figure is focused, every series' little
   figure over its name, the focused one lit gold with a brass underline and lozenge. The rim is the
   window's brass hairline (--win-ring's) with our astro ring (--art-ring) as the medallion at the
   middle of the top and bottom edges. Scrolls sideways when it does not fit. */
.sn__bar {
  position: absolute; z-index: 3; left: 2.2em; right: 2.2em; bottom: 1.1em;
  padding: .55em 1.4em .45em; border-radius: 1.4em;
  background: linear-gradient(180deg, rgba(var(--navy-2-rgb), .55), rgba(var(--navy-0-rgb), .82));
  box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .92), 0 0 0 2px rgba(var(--brass-rgb), .44), inset 0 1px 0 rgba(var(--brass-pale-rgb), .2),
    inset 0 0 0 5px rgba(var(--navy-0-rgb), .2), inset 0 0 0 6px rgba(var(--brass-rgb), .12);
  opacity: 0; pointer-events: none; translate: 0 .6em; transition: opacity .3s, translate .3s;
}
.sn__bar-list { display: flex; gap: .2em; overflow-x: auto; scrollbar-width: none; }
.sn__bar-list::-webkit-scrollbar { display: none; }
/* our astro ring, a medallion on the middle of the top and bottom edges */
.sn__bar::before, .sn__bar::after {
  content: ""; position: absolute; left: 50%; width: 1.5em; height: 1.5em; translate: -50% -50%; pointer-events: none;
  background: var(--art-ring) center / 100% 100% no-repeat, radial-gradient(circle, rgba(var(--navy-1-rgb), 1) 60%, transparent 62%);
  filter: drop-shadow(0 0 .3em rgba(var(--brass-pale-rgb), .45));
}
.sn__bar::before { top: 0; }
.sn__bar::after { top: 100%; }
.sn__bar.is-on { opacity: 1; pointer-events: auto; translate: 0 0; transition-delay: .2s; }
/* the medallions ride the rim, outside the scrolling list */
.sn__jump {
  position: relative; flex: 1 0 auto; min-width: 6.6em; display: grid; justify-items: center; align-content: center; gap: .25em;
  padding: .35em .6em .5em; border: 0; border-radius: .9em; background: none; cursor: var(--cur-hand, pointer);
  color: rgba(var(--sky-rgb), .75); font: var(--face-display-weight) var(--fs-small) / 1.15 var(--face-display); letter-spacing: .03em;
  transition: color .15s, background .2s;
}
.sn__jump svg { width: 4.4em; height: 2.4em; overflow: visible; }
.sn__jump line { stroke: rgba(var(--sky-rgb), .55); stroke-width: 3.5; stroke-dasharray: 7 8; }
.sn__jump circle { fill: rgba(var(--sky-rgb), .85); }
.sn__jump:hover { color: var(--ink-strong); }
.sn__jump.is-done { color: var(--brass-pale); }
.sn__jump.is-done line { stroke-dasharray: none; stroke: rgba(var(--brass-pale-rgb), .6); }
.sn__jump.is-on {
  color: var(--brass-hi);
  background: radial-gradient(ellipse 80% 90% at 50% 45%, rgba(var(--brass-rgb), .22), transparent 75%);
}
.sn__jump.is-on line { stroke: var(--brass-hi); stroke-dasharray: none; }
.sn__jump.is-on circle { fill: #fff6dc; filter: drop-shadow(0 0 4px rgba(255, 214, 140, .95)); }
.sn__jump.is-on::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: .1em; height: .5em; pointer-events: none;
  background:
    linear-gradient(45deg, transparent 40%, var(--brass-hi) 41% 59%, transparent 60%) center / .5em .5em no-repeat,
    linear-gradient(90deg, transparent, var(--brass-hi) 35% 65%, transparent) center / 100% 1px no-repeat;
}
.sn__jump-name { white-space: nowrap; }
.sn__jump-dot.hud-dot { position: absolute; right: .6em; top: .5em; display: none; }
.sn__jump.is-ready .sn__jump-dot { display: block; }
.sn__pick { display: flex; flex-direction: column; gap: .45em; min-height: 0; }
.sn__pick-name { font-size: var(--fs-heading); color: var(--ink-strong); }
.sn__pick-body { display: flex; flex-direction: column; min-height: 0; }
.sn__kept { display: flex; align-items: center; justify-content: space-between; gap: .8em; }
.sn__kept > span { display: grid; }
.sn__kept small, .sn__cand-who small { color: var(--ink-mute); font-size: var(--fs-badge); }
.sn__cands { --fade: .6em; display: flex; flex-direction: column; gap: .35em; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; max-height: 15em; }
.sn__cand {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6em;
  padding: .3em .4em; border-radius: .3em; background: linear-gradient(90deg, rgba(var(--wash-rgb), .65), rgba(var(--wash-rgb), .25));
}
.sn__cand.is-short { opacity: .6; }
.sn__cand-who { display: grid; min-width: 0; }
.sn__cand-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn__short { color: var(--ink-mute); font-size: var(--fs-badge); }
.sn__rule { margin: 0; color: var(--ink-mute); font-size: var(--fs-badge); opacity: .8; }

/* ---------------------------------------------------------------- the details sheet: two sections one
   over the other (owner 2026-11-05), the totals on top and every ladder under them, each in two
   columns; only the ladders scroll */
.sn__veil {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center;
  padding: 1.2em 1.6em;
  background: rgba(var(--wash-rgb), .72); animation: sn-in .18s ease-out;
}
.sn__sheet {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 1.4em;
  width: min(64em, 100%); max-height: 100%; min-height: 0; padding: 1.6em 2em;
  background: linear-gradient(180deg, rgba(var(--sky-rgb), .05), transparent 40%), var(--navy-1);
  border: 1px solid rgba(var(--brass-rgb), .4); border-radius: .4em;
  box-shadow: 0 1.5em 3em rgba(var(--shadow-ink), .7);
}
.sn__sheet-x { position: absolute; top: .4em; right: .4em; }
.sn__sheet-col:first-of-type > .sn__sheet-title { margin-right: 2.4em; }
.sn__sheet-col { display: flex; flex-direction: column; gap: .7em; min-height: 0; }
.sn__sheet-title {
  margin: 0; display: flex; align-items: center; gap: .6em;
  font: var(--face-display-weight) var(--fs-small) / 1 var(--face-display); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-hi);
}
.sn__sheet-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--brass-rgb), .5), transparent); }
.sn__tot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55em 3em; align-content: start; }
.sn__tot-line { display: grid; grid-template-columns: minmax(0, 1fr) 5em auto; align-items: center; gap: .8em; color: var(--ink-mute); }
.sn__tot-line > b { min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.sn__tot-line.is-on { color: var(--ink); }
.sn__tot-line.is-on > b { color: var(--brass-pale); }
.sn__tot-bar { display: block; height: 2px; background: rgba(var(--sky-rgb), .12); overflow: hidden; }
.sn__tot-fill { display: block; height: 100%; background: var(--brass-hi); transform-origin: 0 50%; }
.sn__ladders { --fade: .8em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: .3em 1.6em; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; min-height: 0; }
/* the rule in one line over the cards */
.sn__sheet-note { margin: -.2em 0 .2em; color: var(--ink-mute); font-size: var(--fs-small); line-height: 1.35; }
/* a section's heading (Common Pets, Rare Collection) across both columns */
.sn__ladder-group {
  grid-column: 1 / -1; margin: .5em 0 .1em; display: flex; align-items: center; gap: .6em;
  font: var(--face-display-weight) var(--fs-badge) / 1 var(--face-display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute);
}
.sn__ladder-group:first-child { margin-top: 0; }
.sn__ladder-group::after { content: ""; flex: 1; height: 1px; background: rgba(var(--sky-rgb), .14); }
/* the grades' bands in one line under the rule */
.sn__sheet-legend { margin: 0 0 .2em; display: flex; flex-wrap: wrap; gap: .2em 1.4em; color: var(--ink-mute); font-size: var(--fs-badge); }
.sn__sheet-legend b { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
/* a series' card, one line: its name over its state, then the three grades side by side, each its
   label (level with the name) over what it pays */
.sn__ladder {
  display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); align-items: start; gap: .5em;
  padding: .5em .6em; border-radius: .35em;
  background: rgba(var(--sky-rgb), .035); box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .12);
}
.sn__ladder.is-done { box-shadow: inset 0 0 0 1px rgba(var(--brass-rgb), .35); }
.sn__ladder.is-focus { background: rgba(var(--sky-rgb), .08); box-shadow: inset 2px 0 0 var(--brass-hi), inset 0 0 0 1px rgba(var(--brass-rgb), .25); }
.sn__ladder-head { display: grid; gap: .15em; min-width: 0; padding-top: .15em; }
.sn__ladder-name { font-weight: 600; color: var(--ink); font-size: var(--fs-small); }
.sn__ladder.is-done .sn__ladder-name { color: var(--ink-strong); }
.sn__ladder-state { color: var(--ink-mute); font-size: var(--fs-badge); opacity: .8; }
.sn__ladder-state.is-on { font-weight: 700; opacity: 1; }
.sn__step {
  display: grid; gap: .1em; min-width: 0; padding: .15em .4em; border-radius: .25em;
  color: var(--ink-mute); opacity: .6; font-size: var(--fs-small); line-height: 1.3;
}
.sn__step > b { font-size: var(--fs-badge); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sn__step.is-on { opacity: 1; color: var(--ink-strong); background: rgba(var(--brass-rgb), .14); }

/* ---------------------------------------------------------------- mobile mode: a landscape phone
   (667 x 375 first). The height is the constraint: the head is one short row over the sky, the
   focused figure stands in the left half and the panel takes the right edge top to bottom, the
   details are the whole page, two columns, each scrolling. Touch targets 40 px (--touch). */
:where(html.m-mobile) .wins > .win.snw {
  padding: .5em .8em .4em;
}
:where(html.m-mobile) .sn__title { font-size: var(--fs-small); letter-spacing: .18em; }
:where(html.m-mobile) .sn__tools { gap: .4em; }
:where(html.m-mobile) .sn__total { min-height: calc(var(--touch) - .4em); padding: 0 .8em; font-size: calc(var(--fs-badge) * .85); letter-spacing: .1em; }
:where(html.m-mobile) .sn__close { font-size: 1em; min-width: var(--touch); min-height: var(--touch); }
:where(html.m-mobile) .sn__name { max-width: 18cqw; letter-spacing: .1em; font-size: max(8px, .95cqw); }
:where(html.m-mobile) .sn__star { width: 2em; height: 2em; }
:where(html.m-mobile) .sn__panel {
  top: 0; bottom: 5.6em; right: 0; translate: none; width: 45%; max-height: none; gap: .3em;
  padding: calc(.5em + var(--touch) + .2em) .8em .5em 2.2em;
  background: linear-gradient(90deg, transparent, rgba(var(--wash-rgb), .7) 2.2em, rgba(var(--wash-rgb), .82));
}
:where(html.m-mobile) .sn__panel::before { content: none; }
:where(html.m-mobile) .sn__pname { font-size: var(--fs-heading); }
:where(html.m-mobile) .sn__member { min-height: var(--touch); gap: .5em; }
:where(html.m-mobile) .sn__node { width: 2em; height: 2em; }
:where(html.m-mobile) .sn__bar { left: .8em; right: .8em; bottom: .35em; padding: .45em .8em .4em; border-radius: 1.1em; }
:where(html.m-mobile) .sn__jump { min-width: 5.2em; padding: .2em .4em .35em; font-size: calc(var(--fs-badge) * .9); }
:where(html.m-mobile) .sn__jump svg { width: 3.4em; height: 1.9em; }
:where(html.m-mobile) .sn__bar::before, :where(html.m-mobile) .sn__bar::after { width: 1.1em; height: 1.1em; }
:where(html.m-mobile) .sn__eyebrow { display: none; }
:where(html.m-mobile) .sn__fx { font-size: var(--fs-small); min-height: 2.6em; }
/* The picked star (mobile mode, owner 2026-11-07): its words and pets stand to the right of the arc,
   in the strip's right half, from the series' name down; the list's labels wrap into the left half.
   Its lines keep their own height and it scrolls. */
:where(html.m-mobile) .sn__pick {
  position: absolute; top: calc(.5em + var(--touch) + .2em); right: .8em; bottom: .5em; width: 44%;
  overflow-y: auto; gap: .45em;
}
:where(html.m-mobile) .sn__panel:not(.is-picked) .sn__pick { display: none; }
:where(html.m-mobile) .sn__panel.is-picked :is(.sn__members, .sn__fx, .sn__rule-line) { max-width: 50%; }
:where(html.m-mobile) .sn__panel.is-picked .sn__node-label { white-space: normal; }
:where(html.m-mobile) .sn__pick-body { flex: none; }
:where(html.m-mobile) .sn__cands { max-height: none; flex: 1; }
:where(html.m-mobile) .sn__cand { padding: .2em .9em .2em .3em; gap: .45em; }
:where(html.m-mobile) .sn__cand .btn { min-height: var(--touch); }
:where(html.m-mobile) .sn__kept { padding-right: .6em; }
:where(html.m-mobile) .sn__kept .btn { min-height: var(--touch); }
:where(html.m-mobile) .sn__veil { padding: 0; place-items: stretch; }
:where(html.m-mobile) .sn__sheet {
  width: auto; max-height: none; border: 0; border-radius: 0; gap: 1.2em; box-shadow: none;
  padding: .6em calc(.8em + var(--touch)) .5em 1em;
}
:where(html.m-mobile) .sn__sheet-x { top: .3em; right: .4em; min-width: var(--touch); min-height: var(--touch); }
:where(html.m-mobile) .sn__tot-line { grid-template-columns: minmax(0, 1fr) 3em auto; gap: .5em; font-size: var(--fs-small); }
:where(html.m-mobile) .sn__ladder { padding: .3em .4em; }
:where(html.m-mobile) .sn__ladders { grid-template-columns: minmax(0, 1fr); }
:where(html.m-mobile) .sn__ladder { gap: .35em; }

@media (prefers-reduced-motion: reduce) {
  .wins > .win.snw, .sn__veil, .sn__star .sn__glint::after, .sn__ready { animation: none !important; }
  .sn__con, .sn__face, .sn__panel, .sn__name, .sn__bar, .sn__node { transition: none; }
}

/* ---- w-settings.css */
/* SETTINGS (panels/settings.ts, `.win.optw[data-win=settings]`, P31): the page rail down the left, the
   page beside it. One size whatever the page (owner, 2026-10-30): the window is a fixed height, capped
   by the stage, and the page (`.optw__pages`, defineWin `scroll`) is the one scroller (P7). A page is
   wells of rows, a hairline between two rows: what it is, then its control at the end; a slider runs
   inside its row with its number after it; on/off switches stand in a grid, two to a row where they
   fit. Placed by gui/win.ts. Tokens only. */
.optw [hidden] { display: none !important; }
.wins > .win.optw { height: 36em; }
.wins > .win.optw > .win__body { flex-direction: row; gap: 1em; min-width: 0; }
.optw__pages { display: grid; gap: .7em; align-content: start; min-width: 0; padding-right: .5em; }

/* THE RAIL: the tab strip stood on end. Each page a painting and its name, left aligned; hairlines
   between the pages; the page shown lit from its left edge, the brass line and its orbit there. */
.optw .tabs.optw__rail { flex: none; flex-direction: column; width: 10.5em; margin: 0; overflow-y: auto; scrollbar-width: none; }
.optw__rail > .tabs__tab, .optw__rail > .tabs__tab.is-on {
  flex: none; justify-content: flex-start; gap: .65em; min-width: 0; height: 2.9em; padding: 0 .9em;
}
.optw__rail > .tabs__tab > img.g { flex: none; width: 1.6em; height: 1.6em; object-fit: contain; opacity: .7; transition: opacity .15s; }
.optw__rail > .tabs__tab:is(:hover, .is-on) > img.g { opacity: 1; }
.optw__rail > .tabs__tab + .tabs__tab:not(.is-on)::before { left: 12%; right: 12%; top: 0; width: auto; height: 1px; }
.optw__rail > .tabs__tab.is-on {
  background: radial-gradient(ellipse 90% 70% at 0 50%, rgba(var(--brass-rgb), .2), transparent 75%),
    radial-gradient(ellipse 60% 50% at 0 50%, rgba(var(--sky-rgb), .09), transparent 75%), rgba(var(--navy-4-rgb), .7);
}
.optw__rail > .tabs__tab.is-on::after {
  left: 0; right: auto; top: 14%; bottom: 14%; width: .5em; height: auto;
  background:
    radial-gradient(circle at 0 50%, var(--ink-strong) 0 .08em, var(--navy-1) .11em .2em, var(--brass-hi) .22em .28em, transparent .32em),
    linear-gradient(transparent, var(--brass) 22%, var(--brass-pale) 50%, var(--brass) 78%, transparent) left top / 2px 100% no-repeat;
}

/* THE ROWS. */
.optw__page { display: grid; gap: .7em; align-content: start; min-width: 0; }
.optw__sect { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.optw__sect > * + * { border-top: 1px solid var(--hairline); }
.optw__sect > .tabs--block { margin: .2em 0 .3em; }
.optw__line { display: flex; align-items: center; gap: .8em; min-width: 0; min-height: 2.6em; }
.optw__line > :first-child { flex: 1; min-width: 0; }
.optw__line > .tabs { flex: none; }
/* A long strip of choices never fits beside its label: the label takes its own row and the strip the
   full width under it, wrapping onto a second row before any choice is cut off. */
.optw__line--long { flex-wrap: wrap; row-gap: .35em; padding-bottom: .4em; }
.optw__line--long > :first-child { flex-basis: 100%; }
.optw__line--long > .tabs { flex: 1 1 100%; display: flex; flex-wrap: wrap; }
.optw__line--long > .tabs > .tabs__tab { flex: 1 0 2.6em; min-width: 0; padding-inline: 0; }
.optw__stack { display: grid; gap: .35em; min-width: 0; padding: .4em 0; }
.optw__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.optw__check { min-width: 0; min-height: 2.6em; }
.optw__check > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.optw__line > .optw__check { flex: 1; }
/* A slider in its row: between the label and its number, never wider than the row allows. */
.optw__line > .optw__range { flex: 0 1 12em; width: auto; min-width: 5em; margin: 0; }
.optw__range:disabled { opacity: .5; cursor: var(--cur-arrow); }
.optw__num { flex: none; min-width: 3.2em; text-align: right; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.optw__line > .stat__stepper { flex: none; align-items: center; }
.optw__line > .stat__stepper > .num { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; }
/* On/off switches, two to a row where the page is wide enough. */
.optw__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); column-gap: 1.2em; }

/* The Auto Sell ladder: each band wears its quality's dot before its word, so White reads as a band
   and not as a pale label (B258). */
.optw__q { display: inline-block; width: .6em; height: .6em; margin-right: .35em; border-radius: 50%; background: var(--ink); vertical-align: .05em; }
.optw__q[data-q="green"] { background: var(--world-q-green); }
.optw__q[data-q="blue"] { background: var(--world-q-blue); }
.optw__q[data-q="yellow"] { background: var(--world-q-yellow); }
.optw__q[data-q="gold"] { background: var(--world-q-gold); }
.optw__q[data-q="purple"] { background: var(--world-q-purple); }
.tabs__tab:disabled > .optw__q { opacity: .5; }

/* Controls: the line saying what the last press did, its `?` and Reset on top; then each group a grid
   of rows, two to a line, one per action with its key caps at the end (one or two). */
.optw__bar { display: flex; align-items: center; gap: .6em; min-width: 0; }
.optw__bar > .note-line { flex: 1; min-width: 0; }
.optw__keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(12em, 1fr)); column-gap: 1.4em; }
.optw__caps { display: inline-flex; gap: .35em; flex: none; }
.optw__cap { min-width: 2.8em; font-variant-numeric: tabular-nums; }

/* The foot: the community's round painted buttons and the build, then Character selection flush
   right, level with the buttons' left inset (the crest sits below the foot's line, so no room
   is kept for it here). */
.wins > .win.optw > .win__foot { padding-right: 1.2em; }
.optw__links { display: inline-flex; align-items: center; gap: .4em; margin-right: auto; }
.optw__ver { margin-left: .5em; font-size: var(--fs-sm); color: var(--ink-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.optw__social > img.g { width: 1.15em; height: 1.15em; object-fit: contain; }
body.play .optw__social { cursor: var(--cur-hand); }

/* A section title with its `?` (F6, P4): the explanation behind it, the face one line. */
.optw__head { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.optw__head > .help { text-transform: none; letter-spacing: 0; }

/* MOBILE MODE: the frame's whole height, a narrower rail, compact rows (30-win.css draws the tabs 32 px and
   the buttons 34 px, hit areas 44 px). The rail and the checks are full-width rows that touch: the row
   is its target. */
html.m-mobile .wins > .win.optw { height: var(--stage-h); }
html.m-mobile .optw .tabs.optw__rail { width: 9em; }
html.m-mobile .wins > .win:not(.win--page) .optw__rail > .tabs__tab {
  height: auto; min-height: 36px; border-block-width: 0; margin-block: 0; padding: 0 .7em; gap: .5em;
}
html.m-mobile .optw__rail > .tabs__tab > img.g { width: 1.4em; height: 1.4em; }
html.m-mobile .wins > .win.optw > .win__body { gap: .7em; padding-inline: .8em; }
html.m-mobile .optw__line { gap: .5em; min-height: 38px; }
html.m-mobile .optw__check { min-height: 36px; }
html.m-mobile .optw__line--long > .tabs > .tabs__tab { flex-basis: var(--hit); }
html.m-mobile :is(.optw__line--long, .optw__stack) > .tabs { row-gap: 12px; }
/* A row of choices under its line (the Auto Sell ladder) wraps onto a second row before it clips. */
html.m-mobile .optw__stack > .tabs { display: flex; flex-wrap: wrap; }
html.m-mobile .optw__stack > .tabs > .tabs__tab { flex: 1 1 auto; min-width: 0; padding-inline: .7em; }

/* ---- w-shop.css */
/* THE NPC COUNTER (panels/shop.ts, `.win.shop[data-win=shop]`, P20): the counter's band,
   its shelves, the stock in two columns with the pager, the barter well, the buyback well, and
   the pick (tile, name, price, the verb, a refusal under it). Placed by gui/win.ts; 20-components.css draws
   every part (band, tabs, rows, tile, chip, well, button). Moved from 25-card.css, tokens only. Also the
   Repair Equipment button's painting. */

.wins > .win.shop > .win__body { display: flex; flex-direction: column; gap: .6em; }
.shop__tabs[hidden], .shop__stock[hidden], .shop__barter[hidden], .shop .gui-empty[hidden] { display: none; }

.shop__lists { display: grid; gap: .7em; min-width: 0; }
.shop__stock { display: grid; gap: .6em; min-width: 0; }
.shop__stock > .tabs { justify-self: start; }

/* Two columns, filled down the left then down the right: a page is six and six, a barter list half
   and half (`--rows`, shop.ts). */
.shop__cols { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 6), auto); gap: 0 1.2em; align-content: start; min-width: 0; }
.shop__row { cursor: var(--cur-hand, pointer); }
/* A long name takes a second line rather than an ellipsis (B128). */
.shop__row .item-row__name b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.shop__row .item-row__end .chip { font-size: var(--fs-md); }

/* What the purse or the bag cannot cover: the number in red, never the row greyed (B128). */
.shop .chip.is-short .chip__num { color: var(--error); }
/* A lot line's price is per lot (P8): the chip, then "per 555" beside it, so 1 Gold never reads as
   1 Gold a piece. */
.shop__per { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; }
.shop__per > small { color: var(--ink-mute); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

/* The shelves: tighter tabs than a window's page strip, and never wider than the window. Desktop wraps
   them onto a second line; mobile keeps one line that slides, since its height is the scarce side. */
.shop__tabs { max-width: 100%; }
.shop__tabs .tabs__tab, .shop__tabs .tabs__tab.is-on { min-width: 0; padding: 0 1.1em; }
html.m-desktop .shop__tabs { flex-wrap: wrap; justify-content: center; }
html.m-mobile .win__body > .shop__tabs { margin-inline: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }

/* A barter row: the name on top, what it takes under it as pictures (shop.ts makeRow), so a
   four-stone price never squeezes the name. The sub line drops the small grey type for the chips. */
.shop__row .item-row__sub { white-space: normal; overflow: visible; font-size: inherit; color: inherit; }
.shop__row .item-row__sub .chip { font-size: var(--fs-md); }

.shop__barter { display: grid; gap: .4em; }
.shop__barhead { display: flex; justify-content: flex-end; }
.shop__barhead[hidden] { display: none; }
.shop__holds { display: flex; flex-wrap: wrap; gap: .3em .8em; }
.swap-cost { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .2em .5em; }

.shop .gui-empty { display: grid; justify-items: center; gap: .3em; padding: 1.4em 1em; text-align: center; }
.shop .gui-empty > img.g { width: 3em; height: 3em; object-fit: contain; }

/* The pick: tile, name and price, then the verb with its refusal under it. */
.shop__pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .4em .8em; align-items: center; }
.shop__pick[hidden], .shop__pick [hidden] { display: none; }
.shop__pick > .note-line--mute { grid-column: 1 / -1; }
.shop__pickinfo { display: grid; gap: .15em; min-width: 0; }
.shop__name { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.shop__name--green { color: var(--rarity-green-text); }
.shop__name--blue { color: var(--rarity-blue-text); }
.shop__name--gold { color: var(--rarity-gold-text); }
.shop__name--yellow { color: var(--rarity-yellow-text); }
.shop__name--purple { color: var(--rarity-purple-text); }
.shop__name--prism { color: var(--rarity-prism-text); text-shadow: var(--prism-glow); }
.shop__price .chip { font-size: var(--fs-lg); }
.shop__act { display: grid; gap: .3em; justify-items: end; max-width: 16em; }
.shop__act > .note-line { text-align: right; }

.wins > .win.shop .win__foot { gap: .6em; }
.shop__tokens { display: inline-flex; gap: .4em; }
.shop__tokens:empty { display: none; }
.wins > .win.shop .win__foot > .chip[hidden], .wins > .win.shop .win__foot > .btn[hidden] { display: none; }
.shop__note { margin-left: auto; min-width: 0; overflow-wrap: anywhere; }

/* A painted verb on a button (Buy, Repair Equipment: the old bench's foot wears it too). */
.btn--ic { grid-auto-flow: column; gap: .4em; }
.btn > img.g.btn__ic { width: 1.3em; height: 1.3em; object-fit: contain; flex: none; }
.btn > img.g.btn__ic[hidden] { display: none; }

/* Mobile mode: the rows keep a thumb's height. */
html.m-mobile .shop__row { min-height: var(--touch); }
/* Both modes: the lists are the window's one scroller (B289, P7). The head (band, tabs, search) and
   the pick stay put, so the picked trade and its Exchange button are on screen however long the
   counter is (desktop scrolled the whole body, and a 39-line barter put the button below the fold).
   Two rows at least: under that the body scrolls as before. Mobile: the pick keeps the picked card's
   height from the start (a large tile plus the well's padding), so a first pick never shortens the list. */
.wins > .win.shop > .win__body > * { flex: none; }
.wins > .win.shop > .win__body > .shop__lists {
  flex: 1 1 auto; min-height: calc(2 * var(--touch)); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-color: var(--scroll-thumb) transparent;
}
html.m-mobile .shop__pick { min-height: calc(1.4em * 10 / 3 + 1.4em); }

/* ---- w-skills.css */
/* THE SKILL WINDOW (skillpanel.ts, `.win.spw[data-win=skills]`): Skills, two columns of rows, and
   Talents, the class's two doctrines side by side as three-lane trees. Placed by gui/win.ts; this
   sheet lays it out. 20-components.css draws every part (tabs, item row, tile, skill node, band, pill). */
.spw__body { display: grid; gap: .7em; align-content: start; }
.spw__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.2em; align-content: start; }
.spw__list[hidden], .spw__tree[hidden], .spw__foot[hidden] { display: none; }

/* The talents page is the wider of the two; it follows the tab. */
.wins > .win.spw[data-tab="belief"] { width: 52em; }
.spw__tree { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8em; align-items: start; }
.spw__mod { display: grid; align-content: start; gap: .6em; min-width: 0; }
.spw__lanes { justify-self: center; }
/* The + is there only on a node a point can go into now (skillpanel.ts READY). */
.spw .skill > [data-add][hidden] { display: none; }
/* A refused point, said under the node that was pressed. */
.spw .skill__why { max-width: 8em; font-size: var(--fs-xs); text-align: center; }
.spw .skill__why[hidden] { display: none; }

/* The foot: the page strip, or the points in hand and spent of earned. */
.spw__foot { display: flex; align-items: center; gap: .6em; width: 100%; }
.spw__pts { display: inline-flex; align-items: center; gap: .3em; }
.spw__pts > .ic { width: 1.2em; height: 1.2em; }
.spw__pool { margin-left: auto; }

/* While a skill is carried out of it the window gets out of the way: see-through, and the pointer
   passes to the hotbar it may be covering. */
.wins > .win.spw.is-lending { opacity: .22; pointer-events: none; transition: opacity .12s; }
@media (prefers-reduced-motion: reduce) {
  .wins > .win.spw.is-lending { transition: none; }
}

/* DESKTOP: the window ends above the hotbar's band (as the Character window), the body scrolling. */
html.m-desktop .wins > .win.spw { max-height: 46em; }

/* ---- w-smartbuff.css */
/* SMART BUFF (panels/smart-buff.ts, `.win.sbw[data-win=smartBuff]`, owner 2026-10-14): the skill's
   name, how the list is read, the list in order with its up / down / remove, the people who can be
   added as small buttons, Clear and Save in the foot. 20-components.css draws the parts. */
.sbw .win__body { display: grid; gap: .55em; align-content: start; }
.sbw__skill { font-size: var(--fs-lg); color: var(--brass-hi); }
.sbw__list[hidden] { display: none; }
.sbw__n { min-width: 1.4em; text-align: center; color: var(--brass-hi); font-weight: 600; }
.sbw__acts { display: inline-flex; gap: .25em; }
.sbw__adds { display: flex; flex-wrap: wrap; gap: .4em; }
.sbw__adds:empty { display: none; }
.sbw .note-line[hidden] { display: none; }
.sbw__gap { flex: 1; }

/* ---- w-social.css */
/* THE SOCIAL WINDOW (panels/social.ts, P24): `.win.so[data-win=social]`, centred. The tab strip
   (Friends with its count and the waiting requests' mark, Blocked with its count, Daily), one page
   at a time in a scroll of its own (friends with requests on top, blocked names, the day's
   allowances in two columns), the foot's line, Messages and the page's Add / Block. 20-components.css
   draws every part; tokens only. Moved from 25-card.css (`.so`, `.so-day`). */

.wins > .win.so > .win__body { display: flex; flex-direction: column; gap: .7em; min-height: 0; }
.so .gui-empty[hidden], .so__pane[hidden], .so-day__sect[hidden], .so__wait[hidden], .so .note-line[hidden] { display: none; }

/* The strip: each tab its word, its figure, and (Friends) the requests' mark. */
.so__tabx { display: inline-flex; align-items: center; gap: .45em; }
.so__n { color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.so__n:empty { display: none; }
/* The pill sits on the lit tab, whose words carry a shadow: the figure does not. */
.so__wait { min-width: 1.8em; text-shadow: none; }

/* A page keeps one height on a desk, so switching tabs does not make the window jump. */
.so__pane { height: 18em; min-width: 0; }
.so__pane.so-day { height: 30em; display: grid; gap: .6em; align-content: start; }

/* A row: the head in its class ring (B186: one size for requests and friends, and inside the row's
   height). The ring hangs a little outside the well so the class still reads around the face; the
   margin is that overhang, so it never reaches the name. */
.so__row { min-height: 3.4em; }
.so .so__face { font-size: .58em; --sigil-in: -24%; margin: 1.1em; }
.so .so__face.is-dim > .head { filter: grayscale(1); opacity: .45; }
.so__row[data-friend], .so__row[data-blocked] { cursor: var(--cur-hand, pointer); }
.so__row--ask .item-row__end { gap: .4em; }
.so__row--ask .ibtn > img.g { width: 1.3em; height: 1.3em; object-fit: contain; }
.so__hint { color: var(--ink-mute); }

/* A friend's guild on the row's right: the name over its rank, right-aligned; a long name is cut,
   and "No guild" is quiet. */
.so__guild { display: grid; justify-items: end; gap: .1em; max-width: 12em; min-width: 0; text-align: right; }
.so__guild-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brass-pale); font-weight: 600; }
.so__guild-name.is-none { color: var(--ink-mute); font-weight: 400; }
.so__guild-rank { color: var(--ink-mute); font-size: var(--fs-sm); white-space: nowrap; }
.so__guild-rank[hidden] { display: none; }

/* Presence: a dot in front of the words, both ways (grey away, green here). */
.so__dot { display: inline-block; width: .5em; height: .5em; margin-right: .4em; border-radius: 50%; background: var(--ink-mute); }
.so__dot.is-on { background: var(--green); }

/* An empty page: no box, the picture centred in the page on a soft brass glow, a friendly title
   and one quiet line under it. */
.so .gui-empty {
  display: grid; justify-items: center; align-content: center; gap: .45em; min-height: 100%; box-sizing: border-box;
  padding: 1.4em 1em; text-align: center; background: none; border: 0; box-shadow: none;
}
.so .gui-empty > img.g {
  width: 4.4em; height: 4.4em; object-fit: contain; margin-bottom: .35em;
  filter: drop-shadow(0 0 1.1em rgba(var(--brass-hi-rgb), .28));
}
.so .gui-empty > b { font-family: var(--face-display); font-size: var(--fs-heading); color: var(--brass-pale); letter-spacing: .02em; }
.so .gui-empty > .note-line { max-width: 24em; margin: 0; }

/* Daily: one allowance a row. The end column is three fixed tracks - the base "used / ceiling",
   the Ticket's share, then the status chip - so every row's figures and chips stand in the same
   columns down the list. No picture column, so the name takes the shrinking track and a long zone
   name wraps under itself rather than running into the figures. */
.so-day__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(25em, 1fr)); gap: .6em 1.4em; align-items: start; }
.so-day__col, .so-day__sect { display: grid; gap: .4em; align-content: start; min-width: 0; }
.so-day .item-row { min-height: 2.4em; grid-template-columns: minmax(0, 1fr) auto; }
.so-day .item-row__name b { white-space: normal; overflow-wrap: anywhere; }
.so-day .item-row__end { display: grid; grid-template-columns: 3.4em 4.6em 6.6em; gap: .5em; align-items: center; }
/* The Base / Tamer Ticket heads, on the rows' own grid so each word stands over its column. */
.so-day .so-day__head { min-height: 0; padding-block: 0; border: 0; background: none; box-shadow: none; font-size: var(--fs-sm); color: var(--ink-mute); }
.so-day__n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.so-day__tk--none { color: var(--ink-mute); }
/* No live Ticket: what it would add, dimmed behind the lock - a promise, not a count. */
.so-day__tk--locked { color: var(--ink-mute); opacity: .75; }
.so-day__lock { width: .9em; height: .9em; object-fit: contain; vertical-align: -.1em; }
.so-day__lv { color: var(--ink-mute); }
.so-day__lv--under { color: var(--error); }
.so-day__st { justify-self: start; padding: .1em .65em; border-radius: 1em; font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; white-space: nowrap; }
.so-day__st--full { color: var(--error); background: color-mix(in srgb, var(--error) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--error) 45%, transparent); }
.so-day__st--near { color: var(--tan-text); background: var(--tan); box-shadow: inset 0 0 0 1px var(--tan-rim); }
.so-day__st--open { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }

/* The foot: the line on the left, the verbs on the right. */
.wins > .win.so .win__foot { gap: .5em; }
.so__said { margin-right: auto; min-width: 0; overflow-wrap: anywhere; }
.so .win__foot .btn[hidden] { display: none; }
/* Messages carries the HUD's red dot (40-hud.css .hud-dot) while a message waits unread. */
.so__unread { z-index: 2; right: -3px; top: -3px; }

/* Mobile mode: the whole sheet; a page fills what is left of it and scrolls (no fixed height), rows
   keep a thumb's height. */
html.m-mobile .wins > .win.so { max-height: calc(var(--stage-h) - 32px); }
html.m-mobile .so__pane, html.m-mobile .so__pane.so-day { height: auto; flex: 1 1 auto; min-height: 0; }
html.m-mobile .so__row { min-height: var(--touch); }
html.m-mobile .so__guild { max-width: 8em; }
html.m-mobile .so-day__cols { grid-template-columns: minmax(0, 1fr); }

/* ---- w-stall.css */
/* THE PERSONAL STALL (panels/stall.ts, P22): your own counter `.win.stall--mine[data-win=stall]`
   (racks used and open/closed, the sign, the counter in two columns of five with the pager, the
   refusal, the trade records; the foot's purse, Stop and Start) and somebody else's
   `.win.stall--theirs[data-win=stallView]` (whose and how many, the lines, the pick with Buy; the
   foot's purse and receipt). Placed by gui/win.ts: yours beside the Backpack's spot (a line is racked
   by dragging out of the bag), theirs centred. 20-components.css draws every part; tokens only. Moved from
   25-card.css. */

.wins > .win.stall > .win__body { display: flex; flex-direction: column; gap: .6em; }
.stall .note-line[hidden], .stall .gui-empty[hidden], .stall__cols[hidden], .stall__pick[hidden], .stall__pick [hidden] { display: none; }

/* Two columns, filled down the left then down the right: a page is five and five. */
.stall__cols { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); gap: 0 1.2em; align-content: start; min-width: 0; }
.stall__row .item-row__name b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.stall__row .item-row__end .chip { font-size: var(--fs-md); }
.stall__theirs .stall__row { cursor: var(--cur-hand, pointer); }
.stall__mine .stall__row[data-line] { cursor: var(--cur-grab, grab); touch-action: none; }
.stall__counter { min-width: 0; }

.stall__records { max-height: 7em; }
/* Yours: the counter, its pager, the refusal and the records are the window's one scroller
   (defineWin `scroll`, P7); racks used and the sign stay put over it. */
.stall__scroll { display: flex; flex-direction: column; gap: .6em; }
.stall__sale { display: flex; align-items: center; gap: .5em; }
.stall__sale > span:first-child { min-width: 0; overflow-wrap: anywhere; }

/* The pick: tile, name and price, then Attributes (a pet) and Buy with the refusal under them. */
.stall__pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .4em .8em; align-items: center; }
.stall__pick > .note-line--mute { grid-column: 1 / -1; }
.stall__pickinfo { display: grid; gap: .15em; min-width: 0; }
.stall__name { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.stall__name--green { color: var(--rarity-green-text); }
.stall__name--blue { color: var(--rarity-blue-text); }
.stall__name--gold { color: var(--rarity-gold-text); }
.stall__name--yellow { color: var(--rarity-yellow-text); }
.stall__name--purple { color: var(--rarity-purple-text); }
.stall__name--prism { color: var(--rarity-prism-text); text-shadow: var(--prism-glow); }
.stall__pickinfo > .chip { font-size: var(--fs-lg); justify-self: start; }
.stall .chip.is-short .chip__num { color: var(--error); }
.stall__act { display: grid; gap: .3em; justify-items: end; max-width: 16em; }
.stall__act > .note-line { text-align: right; }
.stall__btns { display: flex; gap: .5em; align-items: center; }

.stall .gui-empty { display: grid; justify-items: center; gap: .3em; padding: 1.4em 1em; text-align: center; }
.stall .gui-empty > img.g { width: 3em; height: 3em; object-fit: contain; }

.wins > .win.stall .win__foot { gap: .6em; }
.stall__gap { margin-left: auto; }
.stall__note { margin-left: auto; min-width: 0; overflow-wrap: anywhere; }

/* Mobile mode: yours takes half the sheet beside the bag (drag from one to the other) and stacks its
   columns; theirs keeps its own width. Rows keep a thumb's height. */
html.m-mobile .wins > .win.stall--mine { width: 39em; max-height: calc(var(--stage-h) - 32px); }
html.m-mobile .stall--mine .stall__cols { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
html.m-mobile .stall__row { min-height: var(--touch); }
html.m-mobile .stall--mine .stall__records { max-height: none; overflow: visible; }

/* ---- w-ticket.css */
/* TAMER TICKET (panels/tamer-ticket.ts, `.win.tpw[data-win=ticket]`, P30): the state band and the
   time left, a quiet line, the day's sections (caption + rows: name, "used / cap", and where the
   Ticket pays the sparkle and "base > cap"), the places, the "would lock" line, and Buy in the foot.
   The body scrolls inside the window (no fixed-height list cutting the last rows, B247). The welcome
   sheet's list (.tpw__welcome) is an ask.ts question's body. Placed by gui/win.ts; moved from
   25-card.css. Tokens only. */
.tpw [hidden] { display: none !important; }
.wins > .win.tpw > .win__body { display: grid; gap: .7em; align-content: start; min-width: 0; }

.tpw .band.is-on .band__label { color: var(--gold-bright); }
.tpw .band__num { font-variant-numeric: tabular-nums; }
.tpw__sect { display: grid; gap: .3em; min-width: 0; }
.tpw__row { display: flex; align-items: baseline; gap: .6em; }
.tpw__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpw__num { flex: none; font-variant-numeric: tabular-nums; }
.tpw__paid { flex: none; display: inline-flex; align-items: center; gap: .25em; color: var(--blue); font-variant-numeric: tabular-nums; }
.tpw__paid > img.g { width: 1em; height: 1em; object-fit: contain; }
.tpw__paid > .tpw__arrow { width: .8em; height: .8em; }
.tpw .btn__ic { width: 1.2em; height: 1.2em; object-fit: contain; }

.tpw__welcome { display: grid; gap: .7em; }
.tpw__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .35em; }
.tpw__perks > li { display: flex; gap: .5em; align-items: baseline; }
.tpw__perks > li > img.g { flex: none; width: 1em; height: 1em; object-fit: contain; transform: translateY(.15em); }

/* ---- w-trade.css */
/* THE TRADE WINDOW (panels/trade.ts, `.win.trd[data-win=trade]`, P21): who you trade with, the two
   offer columns (who and whether they agreed, their Gold, twenty places), the refusal line;
   the foot's Pick from bag (far left), Cancel and Confirm. Placed by gui/win.ts beside the Backpack's
   spot (never over it: an offer is filled by dragging out of the bag). 20-components.css draws every part; tokens only.
   Also the receipt and the picker (gui/ask.ts questions). Moved from 25-card.css. */

.wins > .win.trd > .win__body { display: grid; gap: .7em; align-content: start; }
.trd__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; align-items: start; min-width: 0; }
.trd__col { display: grid; gap: .5em; min-width: 0; container-type: inline-size; }
.trd__colhead { display: flex; align-items: center; justify-content: space-between; gap: .5em; min-width: 0; }
.trd__colhead > .cap { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Five to a row; a cell shrinks with its column (a phone's half sheet) instead of hanging off it. */
.trd__grid {
  --cols: 5;
  --tile: min(calc(10em / 3), calc((100cqw - 4 * .4em) / 5));
  justify-content: center;
}
.trd__grid > .tile--drop { background: var(--tile-empty-bg); }
.trd__grid > .tile--drop.is-over { border-color: var(--drop-on-rim); background: var(--drop-on-bg); }
.trd__mine .tile[data-line] { cursor: var(--cur-grab, grab); touch-action: none; }

.trd__gold { min-width: 0; width: 7.5em; }
.trd .band__action { display: flex; align-items: center; gap: .4em; }
.trd .band__label > img.coin { width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-right: .3em; }

.wins > .win.trd .win__foot > .trd__pick { margin-right: auto; }
.trd .note-line[hidden] { display: none; }
.wins > .win.trd .win__foot { justify-content: flex-end; gap: .6em; }
.wins > .win.trd .win__foot .btn > .ic { width: 1.1em; height: 1.1em; }
.wins > .win.trd .win__foot .btn--ic { grid-auto-flow: column; gap: .4em; }

/* The receipt and the picker. */
.trd__done { display: grid; gap: .7em; }
.trd__got, .trd__picks { --cols: 5; justify-content: center; }
.trd__picks { --cols: 6; max-height: 22em; overflow: auto; overscroll-behavior: contain; }
.trd__picks > .tile { cursor: var(--cur-hand, pointer); }

/* Mobile: both offers side by side, as on a desktop (owner, 2026-11-03: the other side's offer under
   the fold let a player confirm a deal unseen); wider than the Backpack, so it stands on its own. */
html.m-mobile .wins > .win.trd { width: 60em; max-height: calc(var(--stage-h) - 32px); }
html.m-mobile .trd__gold { width: 5.5em; }

/* ---- w-trophies.css */
/* THE TROPHY COLLECTION (panels/trophies.ts, `.win.tro[data-win=trophies]`): a shelf per kind of
   cosmetic, a card per trophy. The Tamer Cup chat frames are drawn round my own face as the chat
   shows it (40-hud.css `.cf`, 1.5 times the face). A card not earned is dark; one waiting to be
   claimed glows; the one worn is lit. Mobile mode: the cards wrap. */
.tro [hidden] { display: none !important; }
.tro__cap { margin: .7em 0 .4em; }
.tro__shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5em; }
html.m-mobile .tro__shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tro__card { display: flex; flex-direction: column; align-items: center; gap: .3em; min-width: 0; padding: .9em .4em .7em;
  text-align: center; border: 1px solid rgba(var(--brass-rgb), .3); border-radius: .5em; background: linear-gradient(var(--navy-3), var(--navy-1)); }
.tro__pic { --cf-face: 3.2em; position: relative; width: var(--cf-face); height: var(--cf-face); margin: .8em 0 .9em;
  border-radius: 50%; background: var(--void); }
.tro__face { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
.tro__face > i { transform: translateY(-11%) scale(1.38); transform-origin: 50% 36%; }
.tro__pic > .cf { left: calc(var(--cf-face) / -4); top: calc(var(--cf-face) / -4); }
.tro__name { font-family: var(--face-ui); color: var(--ink-strong); line-height: 1.2; }
.tro__how { font-size: var(--fs-sm); color: var(--ink-mute); line-height: 1.25; min-height: 2.5em; }
.tro__state { margin-top: auto; font-size: var(--fs-sm); color: var(--ink-mute); } /* the state and its button sit at the card's foot, level across the shelf */
.tro__act { min-height: 2em; display: grid; place-items: center; }
.tro__card--locked .tro__pic, .tro__card--gone .tro__pic { filter: grayscale(1) brightness(.45); }
.tro__card--locked .tro__pic > .cf::before, .tro__card--locked .tro__pic > .cf::after,
.tro__card--gone .tro__pic > .cf::before, .tro__card--gone .tro__pic > .cf::after { display: none; }
.tro__card--locked .tro__name, .tro__card--gone .tro__name { color: var(--ink-mute); }
.tro__card--ready { border-color: var(--brass); box-shadow: 0 0 .8em rgba(var(--brass-rgb), .3); }
.tro__card--ready .tro__state { color: var(--brass-hi); }
.tro__card--worn { border-color: var(--sky); box-shadow: inset 0 0 0 .1em rgba(var(--sky-rgb), .5); }
.tro__card--worn .tro__state { color: var(--sky); }

/* ---- w-welcome.css */
/* THE WELCOME BANNER (panels/welcome.ts, window `welcome`, #532): one banner's picture at a time over
   the dimmed world, the close at its top right, its button at its bottom right, arrows and dots for
   more than one, "Don't show this again today" under it. A fixed box in em of --win-size per mode,
   never sized from the screen (scale, never reflow); it only shrinks to the stage when the S/M/L size
   leaves less room. The picture is fitted inside (contain): an ops upload of another shape shows whole.
   Desktop 60 x 30em picture (upload 1680 x 840); mobile 76 x 31em (upload about 1720 x 700). */

.wins > .scrim--wlc { background: var(--ev-veil); animation: wlc-in .14s ease-out; }
.wins > .win.wlc {
  inset: 0; width: auto; max-width: none; height: auto; max-height: none; min-width: 0;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  padding: 1em;
  background: none; box-shadow: none; animation: wlc-in .16s ease-out;
}
.wins > .win.wlc::before, .wins > .win.wlc::after { content: none; }
@keyframes wlc-in { from { opacity: 0; } }

.wlc__box {
  position: relative; box-sizing: border-box;
  width: 67em; max-width: 100%; max-height: 100%;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .7em;
}
.wlc__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9em; min-height: 0; }
.wlc__frame { position: relative; aspect-ratio: 2 / 1; min-width: 0; min-height: 0; }
.wlc__pic {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: .6em; overflow: hidden;
  background: rgba(var(--navy-0-rgb), .9);
  box-shadow: 0 0 0 1px rgba(var(--shadow-ink), .9), 0 0 0 .2em rgba(var(--brass-rgb), .45), var(--win-shadow);
}
.wlc__pic.is-link { cursor: var(--cur-hand, pointer); }
.wlc__pic:disabled { opacity: 1; }
.wlc__img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.wlc__close { position: absolute; z-index: 2; top: .5em; right: .5em; font-size: 1.15em; line-height: 1; }
.wlc__cta { position: absolute; z-index: 2; right: 1.2em; bottom: 1.2em; line-height: 1.2; }
.wlc__cta:empty { display: none; }
.wlc__arrow {
  display: grid; place-items: center; width: 2.6em; height: 2.6em; padding: 0; border: 0; border-radius: 50%;
  background: rgba(var(--navy-0-rgb), .85); box-shadow: 0 0 0 1px rgba(var(--brass-rgb), .5);
  cursor: var(--cur-hand, pointer);
}
.wlc__arrow[hidden] { display: none; }
.wlc__arrow .ic { width: 1.3em; height: 1.3em; }
.wlc__arrow:hover { box-shadow: 0 0 0 1px rgba(var(--brass-rgb), .9), 0 0 .8em rgba(var(--brass-rgb), .4); }
.wlc__foot { display: flex; align-items: center; justify-content: space-between; gap: 2em; padding: 0 3.5em; }
.wlc__dots { display: flex; gap: .7em; }
.wlc__dots:empty { display: none; }
.wlc__dot {
  width: .8em; height: .8em; padding: 0; border-radius: 50%; box-sizing: border-box;
  background: var(--navy-0); border: 2px solid var(--ink-strong); cursor: var(--cur-hand, pointer);
}
.wlc__dot.is-on { background: var(--ink-strong); box-shadow: 0 0 .6em rgba(var(--ink-strong-rgb), .6); }
.wlc__hide { color: var(--ink); text-shadow: 0 .06em .12em rgba(var(--shadow-ink), .9); }

/* Mobile mode: the whole stage on a window's ground (as the Event Center's mobile box), the picture
   box centred in it, the arrows over the picture's edges to keep the width, every control at least
   44 px on the glass. */
html.m-mobile .wins > .win.wlc { padding: 0; background: var(--win-arc), var(--win-bg); box-shadow: var(--win-ring), var(--win-shadow); }
html.m-mobile .wlc__box { width: 78em; height: 36.4em; gap: .3em; padding: .6em .8em 0; }
html.m-mobile .wlc__row { position: relative; gap: 0; grid-template-columns: minmax(0, 1fr); }
html.m-mobile .wlc__frame { aspect-ratio: auto; height: 100%; }
html.m-mobile .wlc__pic { border-radius: .4em; }
html.m-mobile .wlc__arrow { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: var(--hit); height: var(--hit); }
html.m-mobile .wlc__arrow--prev { left: .4em; }
html.m-mobile .wlc__arrow--next { right: .4em; }
html.m-mobile .wlc__close { top: .2em; right: .2em; }
html.m-mobile .wlc__close::before { content: ""; position: absolute; inset: -10px; }
html.m-mobile .wlc__cta { right: .7em; bottom: .7em; }
html.m-mobile .wlc__foot { padding: 0 .4em; }
html.m-mobile .wlc__hide { min-height: var(--hit); }
html.m-mobile .wlc__dot { width: 1em; height: 1em; position: relative; }
html.m-mobile .wlc__dot::after { content: ""; position: absolute; inset: -.9em; }
html.m-mobile .wlc__dots { gap: 1.6em; }

@media (prefers-reduced-motion: reduce) {
  .wins > .win.wlc, .wins > .scrim--wlc { animation: none; }
}

/* ---- w-workshop.css */
/* THE BLACKSMITH (panels/workshop/*, `.win.wsw[data-win=workshop]`, P28): the service strip (painting
   and word; the word on its card in mobile mode), one page per service in a body of one fixed size
   (no jump on a tab press or a drop, B122), and the foot: the purse, the page's own line, cost and
   commit, then Repair. 20-components.css draws every part (tabs, tile, rows, pill, chip, drop, note line);
   this sheet lays them out. Tokens only. */

.wsw [hidden] { display: none !important; }
.wins > .win.wsw > .win__body { display: flex; flex-direction: column; gap: .6em; min-height: 0; overflow: hidden; }
html.m-desktop .wins > .win.wsw { height: 40em; }

/* --- the strip: each service's painting and its word */
.wsw__tabs { flex: none; }
.wsw__tabs .tabs__tab { min-width: 0; padding-inline: .5em; }
.wsw__tab { display: inline-flex; align-items: center; gap: .4em; min-width: 0; }
.wsw__tab > .ic { width: 1.5em; height: 1.5em; object-fit: contain; flex: none; }
.wsw__word { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- the pages: one scrolls at a time inside the body's fixed height */
.wsw__pages { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.wsw__page { display: grid; gap: .7em; align-content: start; min-width: 0; padding: .1em; }

/* --- the piece well: a dashed drop while empty; once loaded, the tile and its figures */
.wsw__input { display: grid; gap: .5em; }
.wsw__piece { display: flex; align-items: center; gap: .8em; min-height: 4.4em; padding: .5em .7em; border-radius: .5em;
  border: 1px solid var(--hairline); text-align: start; }
.wsw__piece.drop { display: flex; justify-items: start; text-align: start; }
.wsw__piece.is-over:not(.drop) { outline: 1px dashed var(--drop-on-rim); outline-offset: -.15em; }
.wsw__piece > .tile { flex: none; }
.wsw__copy { display: grid; gap: .3em; min-width: 0; }
.wsw__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsw__figs { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .7em; font-size: var(--fs-sm); }
.wsw__mark { display: inline-flex; align-items: center; gap: .25em; font-variant-numeric: tabular-nums; }
.wsw__mark > .g { width: 1.2em; height: 1.2em; object-fit: contain; }
.wsw__hint { color: var(--ink-mute); }
.wsw__hint.note-line--error { color: var(--error); }

/* --- what the service does to it: Lv 34 > Lv 35, the quality and the warning */
.wsw__change { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.wsw__change > .note-line { flex: 1; min-width: 12em; }
.wsw__to { width: 1em; height: 1em; }
.wsw__change > [hidden] { display: none; }

/* --- the material table: tile, name, have / need (short in red); a gain in green */
.wsw__quote { display: grid; gap: .3em; }
.wsw__fig { font-variant-numeric: tabular-nums; color: var(--ink); }
.wsw__fig.is-short { color: var(--error); }
.wsw__gain:not([class*="item-row--"]) .item-row__name b, .wsw__gain .wsw__fig { color: var(--green); } /* a tiered gain keeps its tier ink */

/* --- Craft: the five filters, the families (the list scrolls; the table stays under it) */
.wsw__filters { display: flex; flex-wrap: wrap; gap: .5em; }
.wsw__filters .select { min-width: 8.5em; }
.wsw__list { display: grid; gap: .4em; max-height: 15em; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.wsw__recipes .item-row { cursor: var(--cur-hand, pointer); }

/* --- a row's end with more than one part (a stepper and a clear, a fee and a button) */
.wsw__end { display: inline-flex; align-items: center; gap: .5em; }
.wsw__end .btn__ic { width: 1.2em; height: 1.2em; object-fit: contain; }

/* --- Sockets: one row of six marks (a stone, an open socket, a padlock); a set stone is pressed */
.wsw__sockets { display: grid; gap: .5em; }
.wsw__holes { display: grid; grid-template-columns: repeat(6, max-content); gap: .4em; justify-content: start; }
.wsw__holes .wsw__stone { cursor: var(--cur-hand, pointer); }
.wsw__sockets.is-over .wsw__holes .tile--empty { outline: 1px dashed var(--drop-on-rim); outline-offset: -.15em; }

/* --- Up-star: the Memory Gem row is a toggle; the odds bar */
.wsw__toggle { cursor: var(--cur-hand, pointer); }
.tile > img.wsw__plus { inset: 0; margin: auto; width: 45%; height: 45%; opacity: .8; }
.wsw__toggle:hover .wsw__plus { opacity: 1; }
.wsw__odds { width: min(100%, 22em); }

/* --- the foot: the purse, the page's line + cost + commit, Repair */
.wsw .win__foot { gap: .6em; }
.wsw__foot { display: flex; align-items: center; gap: .6em; flex: 1; min-width: 0; }
.wsw__foot > .note-line { flex: 1; min-width: 0; }
.wsw__foot > .btn { flex: none; }
.wsw__foot .btn__ic { width: 1.3em; height: 1.3em; object-fit: contain; }
/* Dismantle's price after the Gold chip: each stone as its chip, held/needed, short in red; it takes
   the line's room when the line has nothing to say (a long list wraps rather than run under the
   buttons). That foot is the whole first row, the purse and Repair under it, in desktop mode as in
   mobile (below); the other pages' feet never fill the row, so theirs stays one row. */
.wsw__mats { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: .3em; min-width: 0; }
.wsw__foot--mats > .chip, .wsw__mats > .chip { min-width: 0; padding: 0 .45em; gap: .3em; }
.wsw__foot .chip.is-short > .chip__num { color: var(--error); }
html.m-desktop .wsw .win__foot { flex-wrap: wrap; row-gap: .4em; }
html.m-desktop .wsw .win__foot > .wsw__foot--mats { flex: 1 1 100%; order: -1; }

/* --- mobile: half the sheet (the bag beside it, so a piece drags across); each tab its picture with
   its word small under it, cut short rather than pushed out of a narrow strip */
html.m-mobile .wins > .win.wsw { width: 39em; height: calc(var(--stage-h) - 32px); }
html.m-mobile .wsw__tabs .tabs__tab, html.m-mobile .wsw__tabs .tabs__tab.is-on { height: auto; min-height: var(--hit); padding: .3em .15em .45em; }
html.m-mobile .wsw__tab { display: flex; flex-direction: column; align-items: center; gap: .15em; min-width: 0; max-width: 100%; }
html.m-mobile .wsw__word { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-badge); line-height: 1.1; }
html.m-mobile .wsw__foot > .btn, html.m-mobile .wsw__recipes .item-row, html.m-mobile .wsw__toggle { min-height: var(--touch); }
/* The foot in two rows: the page's own line, cost and act across the whole width, then the purse
   and Repair. The pages are the one scroller (P7): the recipe list opens out in them. */
html.m-mobile .wsw .win__foot { flex-wrap: wrap; row-gap: .4em; }
html.m-mobile .wsw .win__foot > .wsw__foot { flex: 1 1 100%; order: -1; }
html.m-mobile .wsw__list { max-height: none; overflow: visible; }
html.m-mobile .wsw__filters .select { min-width: 0; flex: 1 1 7em; }

/* Bulk dismantle (panels/workshop/dismantle.ts bulkWell): the quality and level filters, each a label
   over its strip, then what the rose verb said (the verb itself is in the foot, left of Dismantle). */
.wsw__bulkrow { display: grid; gap: .35em; min-width: 0; }
.wsw__label { color: var(--ink-mute); font-size: var(--fs-small); }
.wsw__bulksaid { margin-top: .4em; overflow-wrap: anywhere; }
.wsw__bulkrow > .tabs { max-width: 100%; flex-wrap: wrap; }
.wsw__bulkrow .tabs__tab, .wsw__bulkrow .tabs__tab.is-on { min-width: 0; padding: 0 .9em; }
/* The pieces a bulk dismantle would take (dismantle.ts): ten to a row, a dimmed one the purse leaves. */
.wsw__bulklist { --cols: 10; --tile: 2.6em; gap: .3em; }
.wsw__bulklist:empty { display: none; }
