/* THE GLASS: what the HUD writes over the world in play (ui/hud.js and ui/glass/), from the crosshair to the place cards. Read after base.css (index.html). */

/* ── crosshair, prompt, progress ─────────────────────────────────────────────────────────────── */
.cross { position: absolute; left: 50%; top: 50%; transition: opacity var(--fade); }
.cross::before, .cross::after { content: ''; position: absolute; }
.cross::before {
  width: .28rem; height: .28rem; margin: -.14rem 0 0 -.14rem;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--shade);
}
/* A diamond blooms around the dot when there is something to do. */
.cross::after {
  width: 1.3rem; height: 1.3rem; margin: -.65rem 0 0 -.65rem;
  border: 1px solid var(--ink);
  opacity: 0;
  transform: rotate(45deg) scale(.5);
  transition: opacity var(--fade), transform var(--fade) cubic-bezier(.2, .9, .2, 1);
}
.cross[data-live='1']::after { opacity: .7; transform: rotate(45deg) scale(1); }

/* The prompt (ui/glass/prompt.js; data/hud.js `prompt-*`; #321): what the dot offers, under the dot, or under the fitting a view aims at (--anchor-x, --anchor-y: the hands write them). One plate to an offer, one
   under another in the order the game wrote them, left edges in line, none cut: the stack is as wide as its widest plate up to --prompt-wide of the frame, and a longer line wraps. A plate is the tip's own make: the
   dark veil feathered out at its right, a rule at its left edge (--ink; a refusal's --ink-faint; the order to let go --harm, heavier), the key drawn (keys.css) then the words at --size-say in full ink. A refusal's words are
   --ink-dim; one just pressed warms its rule to --lamp and leaves its words as they are. A plate that is hidden (a refusal that waits to be asked) takes no place. The progress of what is held is a line at the foot of the
   plate of the held offer, and the tool at work is pictured directly under that plate. The prompt comes on over --warm and goes over --warm-out, and nothing in it moves. */
.prompt {
  position: absolute; left: var(--anchor-x, 50%); top: calc(var(--anchor-y, 50%) + var(--prompt-drop));
  display: grid; justify-items: start; gap: var(--prompt-gap);
  width: max-content; max-width: var(--prompt-wide);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity var(--warm-out);
}
.prompt[data-on='1'] { opacity: 1; transition: opacity var(--warm); }
.acts { display: contents; }
.act {
  position: relative; display: flex; align-items: center; gap: var(--plate-x);
  max-width: 100%; box-sizing: border-box;
  padding: var(--plate-y) var(--plate-feather) var(--plate-y) var(--plate-x);
  background: linear-gradient(90deg, var(--dark-veil) calc(100% - var(--plate-feather)), transparent);
  border-left: var(--plate-rule) solid var(--ink);
  color: var(--ink);
}
.act .label { font-size: var(--size-say); font-weight: var(--weight-say); }
.act[data-kind='refused'], .act[data-kind='asked'], .act[data-kind='denied'] { border-left-color: var(--ink-faint); }
.act[data-kind='refused'] .label, .act[data-kind='asked'] .label, .act[data-kind='denied'] .label { color: var(--ink-dim); }
.act[data-pressed='1'] { border-left-color: var(--lamp); }
.act[data-kind='harm'] { border-left-width: var(--plate-rule-heavy); border-left-color: var(--harm); }

.progress { height: var(--plate-rule); background: var(--ink-faint); }
.progress > i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.act .progress { position: absolute; left: 0; right: var(--plate-feather); bottom: 0; }
.prompt > .progress { width: var(--prompt-line); }
/* The tool the work is done with, small, directly under the plate of the held offer and in line with its key: a crowbar at a thing broken down. */
.using { margin-left: calc(var(--plate-rule) + var(--plate-x)); color: var(--ink-dim); }
/* A tip (ui/glass/tips.js updateHints, data/hud.js hints; #322, #307): the key drawn, then what it does, on a plate with the lamp's rule at its edge, the largest plain text on the glass. It has a place of its own,
   lower left of centre and clear of the hands, the dot and the hotbar (--tip-left from the frame's left edge, --tip-foot up from its foot but never above --tip-foot-share of the window's height, so that a short window keeps it under the dot: the data's `place`, written by updateHints), and it grows upward and
   to the right from there, wrapping before the frame's edge. It comes on over --hint-in (the system's warm) at full strength and stays so, in the dark and in the light, until its key has been used, and
   then goes over --hint-out (warm-out): it is never dim. The words keep their place as it goes, so that a tip that follows is written when it has gone. A sheet or a fight has the screen: a tip is gone with the world, at
   once, and comes back as it went when the world does. */
.hint {
  --tip-from: var(--tip-left);
  position: absolute; left: var(--tip-from); bottom: min(var(--tip-foot), var(--tip-foot-share));
  display: flex; align-items: center; gap: var(--plate-x);
  width: max-content; max-width: calc(100% - var(--tip-from) - var(--edge)); box-sizing: border-box;
  padding: var(--plate-y) var(--plate-feather) var(--plate-y) var(--plate-x);
  background: linear-gradient(90deg, var(--dark-veil) calc(100% - var(--plate-feather)), transparent);
  border-left: var(--plate-rule) solid var(--lamp);
  color: var(--ink);
  opacity: 0; visibility: hidden;
  transition: opacity var(--hint-out), visibility 0s var(--hint-out);
}
.hint[data-on='1'] { opacity: 1; visibility: visible; transition: opacity var(--hint-in); }
/* While the prompt's stack would cross it the tip gives way (ui/glass/tips.js measures the two): gone as it goes, and back as it comes, when the stack is out of its place. */
.hint[data-on='1'][data-under='1'] { opacity: 0; transition: opacity var(--hint-out); }
.hint .keydraw { font-size: var(--tip-key); }
.hint .say { font-size: var(--size-tip); font-weight: var(--weight-say); }
/* With the touch controls up the lower left is under the thumb's stick and buttons, under the dot is the prompt's place, and the top left column is the Now block's, which is always there: the tip begins
   where the frame's middle column begins (the frame's edge, its side column and its gutter, as .frame lays them out) and runs to the right from there, with its lower edge --tip-touch-gap over the middle
   of the view, so that it stands above the dot and grows upward. Its width is its words' up to the frame's right edge, as on a desktop: only --tip-from and the foot differ. */
html[data-device='touch'] .hint {
  --tip-from: calc(var(--edge) + var(--side) + var(--gutter));
  bottom: calc(50% + var(--tip-touch-gap));
}
html:not([data-mode='explore']) .hint { opacity: 0; transition: none; }

/* What has just gone into the pack (ui/glass/picked.js, #325): over the crosshair, where the eye is, the prompt's own place turned over. A tile to a kind, side by side and wrapping upward where the frame is not wide enough: the kind's picture as big as the eye reads at a glance,
   with a dark edge (a drop shadow in --shade, by a filter on the picture) and no box or rule round it, then its count at --size-figure and under the count its name as a label (--size-label, capitals, --track-label). The shade on the picture and on the words
   carries them over a lit wall. A tile comes on over --warm and goes over --warm-out after the time it stands (data/hud.js picked: the system's own times), by its strength alone: it does not rise, scale in or bump when a second of its kind adds to it. */
.gained {
  position: absolute; left: 50%; bottom: calc(50% + var(--prompt-drop));
  display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: var(--plate-y) var(--got-between);
  width: max-content; max-width: var(--prompt-wide);
  transform: translateX(-50%);
}
.got { display: flex; align-items: center; gap: var(--got-inside); text-shadow: 0 0 .5em var(--shade), 0 0 .2em var(--shade); }
.got .icon { width: var(--icon-got); height: var(--icon-got); filter: drop-shadow(0 0 .25em var(--shade)); }
.got .says { display: grid; max-width: var(--got-name-wide); }
.got .ct { display: block; font: 700 var(--size-figure) / 1 var(--font-display); }
.got .nm { font-size: var(--size-label); font-weight: var(--weight-label); line-height: 1.2; letter-spacing: var(--track-label); text-transform: uppercase; overflow-wrap: anywhere; }

html[data-mode='menu'] .cross, html[data-mode='menu'] .prompt, html[data-mode='menu'] .gained { opacity: 0; }
/* A fight has the screen: the cards wait on their stage (ui/cards.js) and are not seen over its banner. */
html[data-mode='battle'] .cards { visibility: hidden; }

/* ── frame: instrument columns above, the dock below ──────────────────────── */
/* The frame is the HUD's lowest layer: the crosshair, the plates for what was picked up and the prompt stand over everything in it, the
   item strip included, wherever a view hangs the prompt (it comes before the frame in the page, which would have put it under). */
.frame {
  position: absolute; z-index: -1; inset: var(--edge);
  display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--side); grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 1rem;
}
/* The news is laid out as the frame is (the same grid, so its corner is the frame's top right one) but is not the lowest layer: it comes after the tip in the page, and with no z-index of its own it stands over it. A line of news is there for seconds and a tip waits for the player, so where they meet the news is the one to be read. */
.frame.news { z-index: auto; }
.corner { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; min-height: 0; }
.corner.tl { grid-area: 1 / 1; overflow: hidden; }
.corner.tr { grid-area: 1 / 3; align-self: stretch; max-height: calc(var(--column-foot) - var(--edge)); }   /* the column's height down to its foot (data/hud.js tokens): the stack of tools under the readout wraps in what is left of it */

/* What to do next (#323, ui/glass/nowblock.js): the tracked quest's name as a label over its step as one short order, in the corner's own width. Its plate is the veil, a colour, solid under every word and feathered out in the room kept
   beyond the last of them (--plate-feather, the padding to the right: the mask takes the plate's colour away over that room, so no line ends on bare wall and it does not read as a box; with no mask the ground is still a colour under the words).
   Just changed it stands at full strength with the rule at its edge in full ink (data-rest='0'); after HUD.now.awake seconds it sinks over --to-rest to --rest, the strength the phone's screen keeps with its light off, and its rule to the faint one.
   It comes up over --warm. Only its strength changes: nothing strikes, slides, scales or pulses. It is never gone: what to do is always there to read. */
.now {
  display: grid; gap: var(--now-gap);
  padding: var(--plate-y) var(--plate-feather) var(--plate-y) var(--plate-x);
  border-left: var(--plate-rule) solid var(--ink);
  background-color: var(--dark-veil);
  -webkit-mask-image: linear-gradient(90deg, var(--black) calc(100% - var(--plate-feather)), transparent);
  mask-image: linear-gradient(90deg, var(--black) calc(100% - var(--plate-feather)), transparent);
  transition: opacity var(--warm), border-left-color var(--warm), filter var(--warm);
}
.now[data-rest='1'] { opacity: var(--rest); border-left-color: var(--ink-faint); transition-duration: var(--to-rest), var(--to-rest), var(--warm); transition-timing-function: var(--now-ease), var(--now-ease), ease; }
/* While a card, the strip or anything else that stands over its place would cross it (ui/glass/nowblock.js measures the boxes, as ui/glass/tips.js does for the tip) the block is gone: by its strength alone, over warm-out, and it
   comes back over warm. (Its own strength is a filter's, not its opacity's: the block's rest and its sinking to rest go on under it at their own pace, and the way back is not the slow one of resting.) */
.now[data-under='1'] { filter: opacity(0); transition: filter var(--warm-out); }
.now .tag { font-size: var(--size-label); font-weight: var(--weight-label); line-height: 1.2; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-dim); }
.now .text { font-size: var(--size-say); font-weight: var(--weight-say); line-height: 1.2; overflow-wrap: anywhere; }

/* THE FELT LEVELS (#442, ui/glass/feltview.js, data/rooms/felt.js; only with ?rooms&felt, so nothing here matches in the game proper): a plate in the top left corner under the Now block, a row to each level of the director, its name over
   what is felt and its target, and a bar of felt against target. The sizes and inks are custom properties the plate writes (data/rooms/felt.js look: tokens of the HUD, never red), and the bar's share too, as the progress line's is. The plate is the veil
   and a rule at its edge, as the Now block's is, and nothing in it moves or is animated: a figure is written when it changes. */
.felt {
  display: grid; gap: var(--felt-gap);
  padding: var(--plate-y) var(--plate-x);
  border-left: var(--plate-rule) solid var(--ink);
  background-color: var(--dark-veil);
}
.felt .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--plate-x); }
.felt .name { font-size: var(--felt-name); font-weight: var(--weight-label); line-height: 1.2; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-dim); }
.felt .figure { font-size: var(--felt-figure); font-weight: var(--weight-say); line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.felt .bar { grid-column: 1 / -1; position: relative; height: var(--felt-bar); background-color: var(--felt-track); }
.felt .bar > i, .felt .bar > b { position: absolute; inset: 0; transform-origin: left; }
.felt .bar > i { background-color: var(--felt-fill); transform: scaleX(var(--felt-share, 0)); }
.felt .bar > b { border-right: var(--plate-rule) solid var(--felt-mark); transform: scaleX(var(--felt-mark-at, 0)); }

/* The news (#324, ui/glass/news.js): what has just happened, in the top right corner, the newest at the bottom, each line gone when its time is up (data/hud.js alert) and the rest closing up. The column is the corner's
   own width (--side) and a long line wraps inside its plate: none is cut. A line is a plate (the Now block's: the veil, solid under its words and feathering out in the room beyond the last of them) with a rule down its left edge
   that is its level, and its words at --size-say in full ink at every level: plain (info) --ink-faint at --plate-rule, look here (warn) --lamp at --plate-rule, danger --harm at --plate-rule-heavy. Where it happened, when the
   game gives a place, follows the words as a label, on a line of any level. It comes on over --warm and goes over --warm-out (the animation, news.js): nothing strikes, pulses or slides. */
.feed { display: flex; flex-direction: column; gap: var(--plate-y); margin: 0; padding: 0; list-style: none; }
.alert {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--plate-x);
  padding: var(--plate-y) var(--plate-feather) var(--plate-y) var(--plate-x);
  background: linear-gradient(90deg, var(--news-ground, var(--dark-veil)) calc(100% - var(--plate-feather)), transparent);
  border-left: var(--plate-rule) solid var(--ink-faint);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.alert[data-level='warn'] { border-left-color: var(--lamp); }
.alert[data-level='danger'] { border-left-color: var(--harm); border-left-width: var(--plate-rule-heavy); }
/* With the touch controls up a line of news can stand over a tip (the news is over the tip there: a tip waits, a line is there for seconds), and the tip's words must not read through it: its ground is the dark at
   the key's strength there, not the veil's. */
html[data-device='touch'] .alert { --news-ground: var(--dark-key); }
.alert .text { font-size: var(--size-say); font-weight: var(--weight-say); line-height: 1.2; }
.alert .where { font-size: var(--size-label); font-weight: var(--weight-label); line-height: 1.2; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-dim); }

/* ── dock: the foot of the frame: the hotbar between the hands, and under it the breath's bar (the run's block between them while a run is on), when there is less than a full one ── */
/* The dock is the frame's whole foot. The breath's bar stands at the bottom centre, last of the dock (order). The hotbar is its foot, and stands at the bottom centre
   between the two hands (player/lefthand.js, player/phone.js): from the right side of the left hand to the left side of the right hand
   and its phone, as the picture has them (player/handroom.js, which hud.js reads into --hands-from and --hands-room), so that the strip,
   when it is called, never covers either. It keeps its room at rest, so the breath's bar stands where it does with the strip up. */
.dock { grid-area: 2 / 1 / 3 / 4; display: grid; gap: .9rem; }
.vitals { order: 1; justify-self: center; max-width: calc(100% - 2 * var(--gutter)); }
/* The breath is a bar of the same kind as the run's adrenaline (chase/glass.css .chase-adrenaline), in the same place and as wide: the dock's last row, so with a run on
   it stands directly under the run's block (life, adrenaline, then air), and with none at the foot of the dock, bottom centre (the designer, 2026-11-10: "Health and adrenaline
   bars need to be bottom-center so they're more obvious to see while running.  Make them a solid bar, not squares."). A line with the word and, under it, a thin solid bar: the
   track's ground is the veil with the same two rings, the fill is --kept of it (set by ui/glass/vitals.js). No plate, no box, no number. Every size is CHASE.glass.bar, which
   vitals.js reads and hands on as --bar-<name>. With little breath left the fill and the word are red, as a low life's are. */
.vital { box-sizing: border-box; width: var(--bar-width); max-width: 100%; display: grid; row-gap: var(--bar-gap); }
.vital .tag { font-size: var(--bar-word); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.vital .track {
  position: relative; box-sizing: border-box; width: 100%; min-width: var(--bar-least); height: var(--bar-thin);
  background: var(--veil); box-shadow: 0 0 0 var(--bar-edge) var(--shade), 0 0 0 calc(var(--bar-edge) + var(--bar-ring)) var(--ink-faint);
}
.vital .track > i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--kept, 0)); background: var(--ink); }
.vital[data-level='danger'] .tag { color: var(--red); }
.vital[data-level='danger'] .track > i { background: var(--red); }

/* The hotbar is not on the glass at rest: what is selected is seen in the left hand (player/lefthand.js). Called, it is the strip (#325): one label that names what is in the hand, and under it one row of the drawn slots, as many as the room between the hands
   holds (hud.js fits them to it, from the probes below), with a mark at either end where there are more that way. It comes up over --warm and goes over --warm-out. The room starts --hands-from from the middle of the dock (which is the middle of the window: the
   frame stands as far in from either edge) and is --hands-room wide; both are lengths in the window's own height, which is what the hands' places are measured in (hud.js). In a run the strip is the first row of the dock, over the run's block and the breath's bar
   (the dock's rows, in the order of the page), so it stands over the bars by their own height, whatever they are. */
.hotbar { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: var(--strip-gap); justify-self: start; width: var(--hands-room); margin-left: calc(50% + var(--hands-from)); }
/* The widths the strip is fitted by, read off the page (hud.js rowHolds): a slot's side, the gap between slots, and a mark's width. */
.reach { position: absolute; height: 0; visibility: hidden; }
.reach.side { width: var(--slot); }
.reach.gap { width: var(--slot-gap); }
.reach.mark { width: var(--slot-more); }
/* The pack's line that names the slot in focus (sheet.css `.sheet-aside .inhand`): one line at the size of a prompt's words, never wrapped. A hand that holds nothing has no name, and the line keeps its room. */
.inhand {
  padding: .1rem var(--plate-y);
  font-size: var(--prompt-text); font-stretch: condensed; line-height: 1.2; letter-spacing: .03em; white-space: nowrap;
}
.inhand:empty::before { content: '\200b'; }
/* On the strip what is in the hand is named once, as a label over the middle of the row: --size-label in capitals, --track-label apart, in ink with the HUD's shade where the wall is lit, on no plate. The name is content and is never shortened or cut
   (#325): it stands on one line where the room between the hands holds it, and where it does not it is no wider than that room (--hands-room, as the hotbar), centred over the row, and wraps onto as many lines as it needs, the lines balanced and centred, growing upward
   (the row keeps its place: the dock's foot is the frame's). A word is not broken, so tests/hotbar.test.mjs holds the longest word of every name there is to the room. A hand that holds nothing has no name, and the label keeps its room. */
.hotbar .inhand {
  padding: 0; max-width: var(--hands-room);
  white-space: normal; text-wrap: balance; text-align: center;
  font-size: var(--size-label); font-weight: var(--weight-label); font-stretch: normal; letter-spacing: var(--track-label); text-transform: uppercase;
  text-shadow: 0 0 .5em var(--shade), 0 0 .2em var(--shade);
  opacity: 0; visibility: hidden;
  transition: opacity var(--warm-out), visibility 0s var(--warm-out);
}
.hotbar[data-on='1'] .inhand { opacity: 1; visibility: visible; transition: opacity var(--warm); }
.hotbar[data-on='1'] .inhand:empty { visibility: hidden; }
/* A row of slots, side by side: the pack's bar, which wraps, and the strip. */
.slots { display: flex; flex-wrap: wrap; gap: var(--slot-gap); }
/* The strip is one row of slots that do not give way: a room with no place for every slot shows as many as it holds (hud.js hides
   the rest, which are not drawn half), so nothing shrinks, wraps or drops to fit. */
.hotbar .slots {
  flex-wrap: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity var(--warm-out), visibility 0s var(--warm-out);
}
.hotbar[data-on='1'] .slots { opacity: 1; visibility: visible; transition: opacity var(--warm); }
/* A slot of the strip (#325) is the dark with a thin edge and the picture of what is bound to it in ink, a square of --slot: its key a small label in the top left corner and its count in the bottom right, over the dark in ink. It holds no name. The slot in
   hand has an ink ring and the lamp's foot along its lower edge ("look here") and its picture in full ink, and does not lift. One the pack has run out of has a dashed edge, its picture --ink-faint and no figure: no red nought, red is the body's alone; in
   hand it keeps the lamp's foot, so that the hand is still seen. While the prompt refuses what is in the hand the picture is as dim as the prompt's own refusal, and while it answers a press the ring, the foot and the picture are the lamp's. Nothing moves. */
.hotbar .slot {
  flex: none;
  display: grid; grid-template-rows: var(--slot); align-items: center; justify-items: center;
  width: var(--slot);
  background: var(--dark-veil); box-shadow: inset 0 0 0 var(--slot-line) var(--ink-faint);
  color: var(--ink-dim); font-size: var(--size-label); line-height: 1; letter-spacing: normal; text-transform: none;
}
.hotbar .slot .icon { grid-area: 1 / 1; width: var(--icon-slot); height: var(--icon-slot); }
.hotbar .slot .n { grid-area: 1 / 1; align-self: start; justify-self: start; padding: var(--slot-mark) 0 0 var(--slot-mark); font-weight: var(--weight-label); color: var(--ink-faint); text-shadow: 0 0 .2em var(--shade), 0 0 .2em var(--shade); }
/* A count too long for its corner runs out to the left rather than lose a figure. */
.hotbar .slot .ct { grid-area: 1 / 1; align-self: end; justify-self: end; padding: 0 var(--slot-mark) var(--slot-mark) 0; font-weight: var(--weight-label); color: var(--ink); white-space: nowrap; text-shadow: 0 0 .2em var(--shade), 0 0 .2em var(--shade); }
.hotbar .slot[data-sel='1'] { color: var(--ink); box-shadow: inset 0 0 0 var(--slot-line) var(--ink), inset 0 calc(-1 * var(--slot-foot)) 0 var(--lamp); }
.hotbar .slot[data-state='spent'] { color: var(--ink-faint); box-shadow: none; outline: var(--slot-dash) dashed var(--ink-faint); outline-offset: calc(-1 * var(--slot-dash)); }
.hotbar .slot[data-state='spent'] .icon { opacity: 1; }
.hotbar .slot[data-state='spent'] .ct { display: none; }
.hotbar .slot[data-sel='1'][data-state='spent'] { box-shadow: inset 0 calc(-1 * var(--slot-foot)) 0 var(--lamp); }
.hotbar .slot[data-sel='1'][data-refused='1'] { color: var(--ink-dim); }
.hotbar .slot[data-sel='1'][data-pressed='1'] { color: var(--lamp); box-shadow: inset 0 0 0 var(--slot-line) var(--lamp), inset 0 calc(-1 * var(--slot-foot)) 0 var(--lamp); }
/* Where the strip does not show every slot, a narrow plate stands at an end of the row that has more slots beyond it, and on it an
   arrowhead pointing out; an end with no more keeps the room of one, so the row does not shift as the hand walks along it. */
.more { position: relative; flex: none; width: var(--slot-more); height: var(--slot); background: var(--veil); }
.more[data-more='0'] { opacity: 0; }
.more::before {
  content: ''; position: absolute; left: 0; right: 0; top: calc(var(--slot) / 2 - var(--slot-more)); height: calc(2 * var(--slot-more));
  background: var(--ink);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.more[data-side='right']::before { clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ── the cards at the top centre ──────── */
/* The cards (ui/glass/cardface.js, #326): a place's name with its own line under it, base camp's, news of a quest (what the news is over the quest's name) and a place's own telling, one at a time (ui/cards.js), at the top centre where a place
   speaks, over the view and never across it: one holder (.cards: the frame's width less its edges), one look. The name is --card-size (set on the card: a place's larger, the quest's --size-figure), --weight-title, --track-title, capitals here; the line under it
   and the label over it are labels (--size-label, capitals, --track-label), the line --ink-dim and the label the lamp's (look here). No box and no plate: the HUD's own shadow (HUD.card.shadow) carries the words over a lit wall. A place's name strikes on
   (ui/glass/cardface.js plays it from HUD.card.strike: nothing here strikes); every other card comes over --warm and goes over --warm-out. A name too long for the room is sized down by fitName, never cut. */
/* The cards stand in the frame's middle column, between the Now block's corner and the news's (the edge, a side column and the gutter at each hand, as .frame lays them out): a long line wraps there and a long name is sized to it, and neither runs under a corner. */
.cards { position: absolute; left: calc(var(--edge) + var(--side) + var(--gutter)); right: calc(var(--edge) + var(--side) + var(--gutter)); top: var(--edge); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }   /* (one column as wide as the holder and no wider: a card's own width is held to it, which is what makes its line wrap) */
.card {
  display: grid; justify-items: center; gap: var(--plate-y); width: max-content; max-width: 100%; text-align: center;
  text-shadow: var(--card-shadow);
}
.card-title, .title h1, .dead h2 {
  width: max-content; margin: 0;
  font-family: var(--font-display); font-weight: 900; font-stretch: condensed;
  line-height: .84; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap;
}
/* The wordmark has no stroke: at its tight tracking one fattens the letters into each other, and a seam shows where they meet. */
.card-title, .dead h2 { -webkit-text-stroke: .02em currentColor; paint-order: stroke fill; }
/* A card's name is its own: the shared rule above is the wordmark's and the death card's too, so what a card changes is changed here. The tight line height leaves the letters' tops above the box, as the wordmark's does. */
.card-title { font-size: var(--card-size); font-weight: var(--weight-title); line-height: var(--card-lead); letter-spacing: var(--track-title); -webkit-text-stroke: 0; paint-order: normal; }
/* The tight line height leaves the letters' tops above the box; where the title scrolls from its top they need the room. */
.title h1 { padding-top: .3em; }
/* The hall is seen through the letters of the title (render/titlescene.js, which sets html[data-titlewin] while it is drawing them): the word's own ink is let go, and the text stays, for whoever reads the page by ear. */
html[data-titlewin] .title h1 { color: transparent; }
.card-tag, .card-sub { font-size: var(--size-label); font-weight: var(--weight-label); line-height: 1.2; letter-spacing: var(--track-label); text-transform: uppercase; text-wrap: balance; }
.card-tag { color: var(--lamp); }
.card-sub { color: var(--ink-dim); }

/* ── the room on the glass (ui/glass/room.js, data/hud.js `room`; #86) ── */
/* At a small window what stands at once has not the room for each other: a part whose box would cross a part ranked above it (or leave the window, for the ones that cannot stand anywhere else) is gone by its strength alone, over warm-out, and is back
   as it went when the way is clear. A filter and not the opacity, as the Now block's own give-way is: the part's own opacity (its warm, its fade, its rest) goes on under it, and its box stays where it is, so the next measure is the same. */
[data-room='1'] { filter: opacity(0); transition: filter var(--warm-out); }
