/* The menus' shared widgets (step 29 E5 - docs/SERIES_PLAN.md, the audit docs/series/audit/menu.md 4.1; the behaviour:
   src/ui/widgets.js; how to use each, with an example: scratch/series/e5/WIDGETS.md). One look for every screen outside
   the battle, measured against the campaign carousel: the text tokens, the header .ph, the footer .foot, the card .card,
   the toggle .tg, the slider, the icon button .ib, the empty state .empty and the spinner .spin. Loaded after menu.css. */
:root { --t1: #f1ece2; --t2: #d9d3c5; --t3: #a39d90; --t4: #7a7468; --t-gold: var(--gold); }  /* titles, body text, captions, muted */

/* ---------------- the header: a title, one sentence under it, something on the right (a close icon, a clock) - one row */
.ph { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ph > h2, .ph > p { grid-column: 1; }
.ph > :not(h2, p) { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.ph h2 { margin: 0; font: 700 22px/1.15 var(--font-d); font-stretch: condensed; letter-spacing: 4px; text-transform: uppercase; color: var(--t1);
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(216, 58, 44, .3); }
.ph p { margin: 0; color: var(--t3); font-size: 12.5px; line-height: 1.4; }

/* ---------------- the footer of a screen without an action bar (the Settings tab): secondary buttons 140 px (34 tall, 44 on
   touch); .lead sits at the left end. A screen with a way back or a main action: the action bar below, its secondary row .foot-row. */
.foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.panel .foot > button:not(.ib) { flex: 0 0 auto; width: auto; min-width: 140px; padding: 8px 14px; }
.foot > .lead { margin-right: auto; }

/* ---------------- the action bar (docs/NAVIGATION.md - the user, 2026-10-27): one split button at a screen's foot - the way
   back on the left (grey steel, the smaller part by the golden ratio, back : main = 1 : φ), the screen's main action on the
   right (crimson), a slanted seam between them, both plates in one dark housing. Two real buttons - clicks, focus, keys and
   screen readers see each on its own: .ab (role=group) > button.ab-back + button.ab-go, the caption in a <span> (widgets.js
   actionBar, label). Variants: .solo - the main action only (a tab with nothing to go back to, a card's action); .lone - the
   way back only (a window without an action: the back plate of a 640 px bar, at the same place); .hud - the replay bar's
   way out (the HUD's scale); .ab-go.danger - a destructive confirmation. One height on every screen: 52 px (plates 44). */
.ab { --ab-h: 52px; --ab-pad: 3px; --ab-k: 15px; --ab-gap: 4px;  /* the height, the housing's rim, the seam's run (≈ 19° from the vertical), the seam's width */
  --ab-back: linear-gradient(#59616a, #3a4046 52%, #2c3035); --ab-back-hi: linear-gradient(#6a737d, #464d55 52%, #343a40);
  --ab-go: linear-gradient(#cf4636, #962a1c 50%, #6d1c14); --ab-go-hi: linear-gradient(#ec5d45, #bb3a22 50%, #8a281b);
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); align-items: stretch; flex: none;
  box-sizing: border-box; width: 100%; height: var(--ab-h); padding: var(--ab-pad); border: 1px solid #000; border-radius: 5px;
  background: linear-gradient(#060708, #101215); container-type: inline-size;
  box-shadow: 0 0 0 1px var(--metal), inset 0 1px 4px rgba(0, 0, 0, .95), 0 8px 18px rgba(0, 0, 0, .5); }
/* the main plate's glow outside the housing (a clip-path would cut a plate's own) */
.ab::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; left: 38.2%; border-radius: 5px; pointer-events: none;
  box-shadow: 0 0 16px rgba(216, 58, 44, .32); transition: box-shadow .14s; }
.ab:not(:has(> .ab-go:not([hidden])))::before, .ab:has(> .ab-go:disabled)::before { display: none; }
/* the seam's brass hairline in the middle of the gap: a drawn line (an SVG mask - a gradient's diagonal broke into dots at 1x) */
.ab::after { content: ''; position: absolute; z-index: 2; top: var(--ab-pad); bottom: var(--ab-pad); width: var(--ab-k); pointer-events: none;
  left: calc(var(--ab-pad) + (100% - 2 * var(--ab-pad)) * .382 - var(--ab-k) / 2 + var(--ab-gap) / 2);
  --seam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 44' preserveAspectRatio='none'%3E%3Cpath d='M15 0 0 44' fill='none' stroke='%23000' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background: color-mix(in srgb, var(--gold) 60%, transparent); -webkit-mask: var(--seam) 0 0 / 100% 100% no-repeat; mask: var(--seam) 0 0 / 100% 100% no-repeat; }
.ab:is(.solo, .lone)::after, .ab:not(:has(> .ab-go:not([hidden])))::after, .ab:not(:has(> .ab-back:not([hidden])))::after { display: none; }
/* the plates (button.ab-back / button.ab-go: the selectors outweigh `.panel.small button` and the base button's states) */
.ab > button:is(.ab-back, .ab-go) { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; width: auto; height: auto; margin: 0;
  border: 0; text-shadow: 0 1px 0 #000; white-space: nowrap; letter-spacing: 0; transition: background .14s, color .14s, filter .14s; }
.ab > button:is(.ab-back, .ab-go) > span { overflow: hidden; text-overflow: ellipsis; padding-block: .25em; }  /* (room for the accents over capitals - Ź, Ó, Ś: the clip box is the padding box; centred in a fixed plate, nothing moves) */
/* the way back: grey steel, a chevron drawn by a mask (never typed), the seam's shadow on its slanted edge */
.ab > button.ab-back { gap: 9px; margin-right: calc(var(--ab-k) / -2); padding: 0 calc(var(--ab-k) + 12px) 0 14px; border-radius: 3px 0 0 3px;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--ab-k)) 100%, 0 100%); background: var(--ab-back); color: #e6e1d6;
  font: 700 15px var(--font-d); font-stretch: semi-condensed; letter-spacing: 3px; text-transform: uppercase;  /* (the main action's letters a size smaller - the user, 2026-10-28) */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -2px 0 rgba(0, 0, 0, .35), inset 2px 0 0 rgba(255, 255, 255, .05); }
.ab > button.ab-back::before { content: ''; flex: none; width: 8px; height: 13px; background: currentColor; transition: background .14s, filter .14s;
  transform: translateY(-.06em);  /* (level with the capitals: Bahnschrift's caps sit .06 em above the line box's middle) */
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13'%3E%3Cpath d='M6.6 0 8 1.4 2.9 6.5 8 11.6 6.6 13 0 6.5z'/%3E%3C/svg%3E"); }
.ab > button.ab-back::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: var(--ab-k); pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 2.2px), rgba(0, 0, 0, .55) calc(50% - .6px), transparent 50%); }
/* the main action: crimson, the big buttons' letters, the seam's light on its slanted edge (::after stays free for .busy's spinner) */
.ab > button.ab-go { gap: 10px; margin-left: calc(var(--ab-gap) - var(--ab-k) / 2); padding: 0 18px 0 calc(var(--ab-k) + 18px); border-radius: 0 3px 3px 0;
  clip-path: polygon(var(--ab-k) 0, 100% 0, 100% 100%, 0 100%); background: var(--ab-go); color: #fff;
  font: 700 18px var(--font-d); font-stretch: semi-condensed; letter-spacing: 4px; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 176, 156, .5), inset 0 -2px 0 rgba(0, 0, 0, .3), inset -2px 0 0 rgba(255, 255, 255, .05); }
.ab > button.ab-go::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: var(--ab-k); pointer-events: none;
  background: linear-gradient(to bottom right, transparent 50%, rgba(255, 200, 182, .6) calc(50% + .6px), transparent calc(50% + 2px)); }
.ab > button.ab-go.busy::after { margin-left: 0; }
/* states: hover (a mouse only), pressed, focus from the keyboard (a gold rim on the three straight edges and the seam - an
   outline would be cut by the clip-path), disabled (a locked mission: dull brown, no glow; the way back never is) */
@media (hover: hover) {
  .ab > button.ab-back:hover { background: var(--ab-back-hi); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -2px 0 rgba(0, 0, 0, .35); }
  .ab > button.ab-back:hover::before { background: var(--gold); filter: drop-shadow(0 0 3px rgba(240, 200, 80, .9)) drop-shadow(0 0 7px rgba(240, 200, 80, .55)); }  /* (it glows, never moves - the user) */
  .ab > button.ab-go:hover:not(:disabled) { background: var(--ab-go-hi); box-shadow: inset 0 1px 0 rgba(255, 196, 176, .6), inset 0 -2px 0 rgba(0, 0, 0, .3); }
  .ab:has(> .ab-go:hover:not(:disabled))::before { box-shadow: 0 0 24px rgba(255, 90, 60, .5); }
}
.ab > button:is(.ab-back, .ab-go):active:not(:disabled) { transform: translateY(1px); filter: brightness(.9); }
.ab > button.ab-back:active { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55); }
.ab > button.ab-go:active:not(:disabled) { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); }
.ab > button:is(.ab-back, .ab-go):focus-visible { outline: none; }
.ab > button.ab-back:focus-visible { box-shadow: inset 2px 0 0 var(--gold), inset 0 2px 0 var(--gold), inset 0 -2px 0 var(--gold); }
.ab > button.ab-back:focus-visible::after { background: linear-gradient(to bottom right, transparent calc(50% - 2.6px), var(--gold) calc(50% - 2.4px), var(--gold) 50%, transparent 50%); }
.ab > button.ab-go:focus-visible { box-shadow: inset -2px 0 0 var(--gold), inset 0 2px 0 var(--gold), inset 0 -2px 0 var(--gold); }
.ab > button.ab-go:focus-visible::before { background: linear-gradient(to bottom right, transparent 50%, var(--gold) 50%, var(--gold) calc(50% + 2.4px), transparent calc(50% + 2.6px)); }
.ab > button:is(.ab-back, .ab-go):disabled { opacity: 1; cursor: default; transform: none; filter: none; }
.ab > button.ab-go:disabled { background: linear-gradient(#5a3a35, #3d2622); color: rgba(255, 232, 222, .4); text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.ab > button.ab-back:disabled { color: rgba(230, 225, 214, .4); }
@media (prefers-reduced-motion: reduce) { .ab > button:is(.ab-back, .ab-go), .ab > button.ab-back::before, .ab::before { transition: none; } }
/* a destructive confirmation (delete, surrender): the crimson under hazard stripes; Enter never presses it */
.ab > button.ab-go.danger { background: repeating-linear-gradient(-58deg, rgba(240, 200, 80, .13) 0 7px, transparent 7px 16px), linear-gradient(#a3301f, #5d170f); }
@media (hover: hover) { .ab > button.ab-go.danger:hover { background: repeating-linear-gradient(-58deg, rgba(240, 200, 80, .2) 0 7px, transparent 7px 16px), linear-gradient(#bd3a26, #6c1c12); } }
/* the main action only (a tab's start, a card's action, a bar whose way back is hidden): one whole plate, no slant - the cut
   is the seam's, and with no way back there is no seam (the user, 2026-10-27: "jak nie ma przycisku powrotu, to niech przycisk
   akcji będzie pełny, a nie ze ścięciem") */
.ab:is(.solo, :not(:has(> .ab-back:not([hidden])))) { grid-template-columns: minmax(0, 1fr); }
.ab:is(.solo, :not(:has(> .ab-back:not([hidden]))))::before { left: 0; }
.ab:is(.solo, :not(:has(> .ab-back:not([hidden])))) > button.ab-go { margin-left: 0; padding: 0 18px; border-radius: 3px; clip-path: none;
  box-shadow: inset 0 1px 0 rgba(255, 176, 156, .5), inset 0 -2px 0 rgba(0, 0, 0, .3), inset 2px 0 0 rgba(255, 255, 255, .05), inset -2px 0 0 rgba(255, 255, 255, .05); }
.ab:is(.solo, :not(:has(> .ab-back:not([hidden])))) > button.ab-go::before { display: none; }
.ab:is(.solo, :not(:has(> .ab-back:not([hidden])))) > button.ab-go:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
/* the way back only (a window without an action): the back plate of a 640 px bar at the same place, the housing cut along its
   slant (the bar's left piece; 1.18 = the bar's height over the plate's) */
.ab.lone { grid-template-columns: minmax(0, 1fr); width: calc(min(100%, 640px) * .382 + var(--ab-k) / 2);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--ab-k) * 1.18) 100%, 0 100%); }
.ab.lone > button.ab-back { margin-right: 0; }
/* narrow bars (a small window, the pause, a card): both captions' letters tighter, the way back's margins, never cut - a
   caption is written short (NAVIGATION.md 6) */
@container (max-width: 520px) {
  .ab > button.ab-go { font-size: 16px; letter-spacing: 2.6px; padding-right: 12px; padding-left: calc(var(--ab-k) + 12px); }
  .ab > button.ab-back { font-size: 13.5px; letter-spacing: 1.8px; padding-left: 11px; padding-right: calc(var(--ab-k) + 8px); gap: 7px; }
  .ab:is(.solo, :not(:has(> .ab-back:not([hidden])))) > button.ab-go { padding: 0 12px; }
}
/* the battle's replay / observer bar: its way out at the left end, in the HUD's scale (inside #app it takes the faction's
   theme as the rest of the HUD - themes.css; the shape stays) */
.ab.hud { --ab-h: calc(34px * var(--hud)); --ab-pad: 2px; --ab-k: calc(10px * var(--hud)); grid-template-columns: auto; width: auto; container-type: normal; }  /* (as wide as its caption: size containment would give it none) */
.ab.hud > button.ab-back { font-size: calc(11.5px * var(--hud)); letter-spacing: calc(1.6px * var(--hud)); padding: 0 calc(var(--ab-k) + 10px) 0 10px; gap: 7px; }  /* (the HUD's button letters - in #app themes.css sets them) */
body.touch .ab.hud { --ab-h: 50px; }  /* (a plate of 44 under a finger) */

/* the dock: the bar at the foot of a panel or a window, held at the window's bottom while the content scrolls under it (the
   skirmish's .sk-go of step 29 E5, for every bar); --dock-b: the panel's bottom padding it reaches over (compact.css: 14) */
.ab-dock { --dock-b: 20px; position: sticky; bottom: calc(var(--sa-b, 0px) - var(--dock-b)); z-index: 3; margin: -12px 0 calc(-1 * var(--dock-b)); padding: 14px 0 var(--dock-b);
  pointer-events: none; background: linear-gradient(rgba(15, 17, 19, 0), rgba(15, 17, 19, .97) 14px); }
.ab-dock > * { pointer-events: auto; }
/* a row of secondary actions over the bar: .lead at its left end, the rest at its right (over the main action) */
.foot-row { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 10px; }
.foot-row:not(:has(> :not([hidden]))) { display: none; }
.foot-row > .lead { margin-right: auto; }
.foot-row > button:not(.ib) { flex: 0 0 auto; width: auto; min-width: 140px; min-height: 34px; padding: 6px 14px; }
body.touch .foot-row > button:not(.ib) { min-height: 44px; }

/* ---------------- a secondary button with an icon before its caption (.wi + .i-<name>: Dodaj przeciwnika, a voice sample, the
   Red Alert keys on) and a destructive secondary one (.danger: Poddaj się, Usuń pobrane modele - each asks first) */
button.wi { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
button.wi::before { content: ''; flex: none; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
button.danger:not(.ib, .ab-go) { color: #ffb3a5; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(216, 58, 44, .45), 0 1px 2px rgba(0, 0, 0, .55); }
@media (hover: hover) { button.danger:not(.ib, .ab-go):hover { color: #fff; background: linear-gradient(#7a2a20, #4a1712); } }

/* ---------------- the card: one background, a thin line; a card to choose lifts with a gold edge, the chosen one in
   the colour of its campaign (--cc) or gold. Scoped to the screens: #mission-intro .card in the battle is another thing. */
:is(.overlay, .modal) .card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); text-align: left; color: var(--t2); letter-spacing: 0;
  transition: border-color .12s, transform .12s, box-shadow .12s; }
:is(.overlay, .modal) :is(button.card, .card.pick) { cursor: pointer; font: inherit; }
@media (hover: hover) { :is(.overlay, .modal) :is(button.card, .card.pick):hover { background: var(--card); border-color: color-mix(in srgb, var(--gold) 60%, #000); transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); } }
:is(.overlay, .modal) .card.on { border-color: var(--cc, var(--gold));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc, var(--gold)) 35%, transparent), 0 0 12px color-mix(in srgb, var(--cc, var(--gold)) 18%, transparent); }
:is(.overlay, .modal) .card.line { flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px; }  /* a list's row */

/* ---------------- the toggle: a real checkbox drawn as a switch (the knob slides, gold when on) */
input.tg { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 44px; height: 22px; margin: 0; border: 1px solid #000; border-radius: 11px;
  cursor: pointer; background: #0a0b0c; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9), 0 0 0 1px var(--metal); transition: background .16s, box-shadow .16s; }
input.tg::before { content: ''; position: absolute; left: 1px; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(#90969d, #4f555c); box-shadow: 0 1px 2px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .18s cubic-bezier(.3, .7, .3, 1), background .16s; }
input.tg:checked { background: color-mix(in srgb, var(--gold) 32%, #000);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 0 0 1px color-mix(in srgb, var(--gold) 55%, #000), 0 0 10px color-mix(in srgb, var(--gold) 22%, transparent); }
input.tg:checked::before { transform: translateX(22px); background: linear-gradient(#ffe9a0, var(--gold) 60%, #a7821a); }
@media (hover: hover) { input.tg:hover::before { filter: brightness(1.15); } }
input.tg:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
input.tg:disabled { opacity: .45; cursor: default; }

/* ---------------- the slider: a dark track, the filled part in crimson up to the value (--v - widgets.js), a gold knob */
input[type=range] { --v: 0%; -webkit-appearance: none; appearance: none; height: 18px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px color-mix(in srgb, var(--metal) 70%, transparent), inset 0 1px 2px #000;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, #000), var(--accent) 70%, var(--accent-hi)) 0 0 / var(--v) 100% no-repeat, #0a0b0c; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #fff3c4, var(--gold) 52%, #94721a); box-shadow: 0 0 0 1px #000, 0 2px 3px rgba(0, 0, 0, .8); transition: transform .12s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
@media (hover: hover) { input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.15); } }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: #0a0b0c; box-shadow: 0 0 0 1px #000, inset 0 1px 2px #000; }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, #000), var(--accent)); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #fff3c4, var(--gold) 52%, #94721a);
  box-shadow: 0 0 0 1px #000, 0 2px 3px rgba(0, 0, 0, .8); }
input[type=range]:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ---------------- the icon button: 32 px (44 on touch, 40 in a list's row - docs/NAVIGATION.md 4), the icon a mask in --ico;
   .i-<name> picks it */
button.ib { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; min-width: 0; padding: 0; color: var(--t2); }
button.ib::before { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
@media (hover: hover) { button.ib:hover { color: var(--gold); } }
@media (hover: hover) { button.ib.danger:hover { color: #ff6a55; } }
#app button.ib { width: calc(30px * var(--hud)); height: calc(30px * var(--hud)); padding: 0; }  /* (the replay bar: the battle themes' buttons) */
#app button.ib::before { width: calc(14px * var(--hud)); height: calc(14px * var(--hud)); }
@media (pointer: coarse) { button.ib, #app button.ib { width: 44px; height: 44px; } button.ib::before { width: 18px; height: 18px; } }
.i-x { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.4 2 8 6.6 12.6 2 14 3.4 9.4 8l4.6 4.6-1.4 1.4L8 9.4 3.4 14 2 12.6 6.6 8 2 3.4z'/%3E%3C/svg%3E"); }
.i-play { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 2.2v11.6L13.6 8z'/%3E%3C/svg%3E"); }
.i-pause { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 2.5h3.2v11H3.5zm5.8 0h3.2v11H9.3z'/%3E%3C/svg%3E"); }
.i-save { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 1h2v7.2l2.6-2.6 1.4 1.4L8 12 3 7l1.4-1.4L7 8.2zM2 13h12v2H2z'/%3E%3C/svg%3E"); }
.i-del { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6 1h4v1.5h4V4H2V2.5h4zM3 5h10l-.8 10H3.8zm2.2 1.6.4 6.8h1.2L6.4 6.6zm4.4 0-.4 6.8h1.2l.4-6.8z'/%3E%3C/svg%3E"); }
.i-dice { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M3 1h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zm2 2.6a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8zm6 6a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8zM8 6.6a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8z'/%3E%3C/svg%3E"); }
.i-copy { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M5 1h9v10h-2V3H5zM2 4h9v11H2zm1.6 1.6v7.8h5.8V5.6z'/%3E%3C/svg%3E"); }
.i-replay { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 2.5h14v11H1zm1.6 1.6v7.8h10.8V4.1zM6.3 5.4 11 8l-4.7 2.6z'/%3E%3C/svg%3E"); }
.i-again { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2a6 6 0 1 0 5.7 7.9l-1.9-.6A4 4 0 1 1 8 4c1.1 0 2.1.4 2.8 1.2L9 7h5V2l-1.8 1.8A6 6 0 0 0 8 2z'/%3E%3C/svg%3E"); }
.i-keys { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M1 5h22v14H1zm2 2v10h18V7zm2 2h2v2H5zm4 0h2v2H9zm4 0h2v2h-2zm4 0h2v2h-2zM5 13h2v2H5zm4 0h6v2H9zm8 0h2v2h-2z'/%3E%3C/svg%3E"); }
.i-plus { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 2h2v5h5v2H9v5H7V9H2V7h5z'/%3E%3C/svg%3E"); }
.i-stop { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3h10v10H3z'/%3E%3C/svg%3E"); }
.i-check { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 13.4 1.4 8.6l1.5-1.5 3.3 3.3 6.9-6.9 1.5 1.5z'/%3E%3C/svg%3E"); }

/* ---------------- the empty state: a dashed box, a caption and a line (no replays, no saves, no rooms); a div or a p -
   the carousel's span.cc-m.empty is a thumbnail still to come */
:is(div, p).empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 28px 20px; border: 1px dashed #3a4047; border-radius: 4px;
  color: var(--t4); font-size: 12.5px; text-align: center; }
:is(div, p).empty b { font: 600 12px var(--font-d); letter-spacing: 1.6px; text-transform: uppercase; color: var(--t3); }

/* ---------------- the spinner: an element of its own, or .busy on a button at work (no clicks meanwhile) */
.spin, button.busy::after { display: inline-block; flex: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .14); border-top-color: var(--gold);
  border-radius: 50%; vertical-align: -3px; animation: w-spin .8s linear infinite; }
button.busy { pointer-events: none; }
button.busy::after { content: ''; width: 12px; height: 12px; margin-left: 8px; vertical-align: -2px; }
@keyframes w-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin, button.busy::after { animation-duration: 2.4s; } }

/* ---------------- counted bars (widgets.js countUp): a track, the fill at --w of it times --k, the parent's count-up */
.bars i { display: block; height: 10px; border-radius: 2px; overflow: hidden; background: #0a0b0c; box-shadow: inset 0 1px 2px #000, 0 0 0 1px #000; }
.bars i b { display: block; height: 100%; width: calc(var(--w, 0) * var(--k, 1) * 100%); border-radius: 2px;
  background: linear-gradient(color-mix(in srgb, var(--pc, var(--gold)) 70%, #fff), var(--pc, var(--gold)) 45%, color-mix(in srgb, var(--pc, var(--gold)) 70%, #000));
  box-shadow: 0 0 8px color-mix(in srgb, var(--pc, var(--gold)) 40%, transparent); }
