/*
 * TAG Legal Desk v2.1, wp9_colours: the effect colours themselves (J121, the Director 28 Sep 2026: "the heaps of
 * colours and the glows and lightning and fire and sparks and the metalics", "the whole thing highly animated").
 * js\v21_colours_fx.js puts the classes on wherever a person's colour shows and adds the layers:
 *   the host   .v21-fx .v21-fx-<effect> .v21-fxf-<family> .v21-fxt-<tier> .v21-fxs-<shape> .v21-fxw-<where>
 *   the layers <span class="v21-fx-l v21-fx-l1">, l2, and l3 for the epic and legendary tiers (aria-hidden)
 * Shapes (where the colour shows): round (an avatar, a colleague's badge, a swatch), box (the job I have, the glow on
 * my own card, a tile, a tree's column, a Leaf Token pile's label), strip (the holder's edge on a colleague's card,
 * the sender's edge on a sending card) and pill (the holder chip, a tree's name tag in the Grove).
 * Layers: l1 is the band (a ring, a border or the edge strip); its ::before and ::after are its grain and its glint.
 * l2 and l3 are the zone round it: l2::before is the glow, l2::after, l3::before and l3::after carry the particles
 * (sparkles, arcs, flames, embers, ribbons). Families say what each part draws; each effect gives only its colours
 * (--fx1 deep, --fx2 middle, --fx3 bright, --fx4 highlight, --fxg glow, --fxs spark).
 * Only transform, opacity, filter and background position animate (the compositor's own work). At most a few hosts
 * move at once (js\v21_colours_fx.js adds .v21-fx-run to those on screen, up to its cap); the rest hold still.
 * Nothing moves, and every layer is gone so the plain colour shows (the palette's light, dark or hc value), with
 * reduced motion, Calm, data-quiet (a welfare message open, the quiet period, the nobody band), a day that matters,
 * High contrast, forced colours and print. Never inside a job screen, the email paper, a welfare message or the
 * Leaving card. No inline styles: the classes and custom properties only (the page's policy).
 */

/* ======================================================================= the host and its layers */

.v21-fx { --fx-dur: 6s; --fx-glow: color-mix(in srgb, var(--fxg, #FFFFFF) 55%, transparent); --fx-o: 3px; --fx-bw: 2px; --fx-halo: 6px; }
.v21-fxt-common { --fx-dur: 5s; --fx-k: .8; }
.v21-fxt-rare { --fx-dur: 5.6s; --fx-k: .9; }
.v21-fxt-epic { --fx-dur: 4.4s; --fx-k: 1; }
.v21-fxt-legendary { --fx-dur: 3.6s; --fx-k: 1; }
.v21-fx-l { position: absolute; display: block; box-sizing: border-box; pointer-events: none; }
.v21-fx-l::before, .v21-fx-l::after { content: ""; position: absolute; inset: 0; display: block; box-sizing: border-box; pointer-events: none; border-radius: inherit; }
/* A host that is not positioned yet holds its layers. */
.v21-fxw-tile, .v21-fxw-tree, .v21-fxw-pile, .v21-fxw-card { position: relative; }

/* ---------- round: an avatar, a colleague's badge, a swatch ---------- */
.v21-fxs-round { isolation: isolate; --fx-ob: 3px; --fx-hb: 7px; }
.av-sm.v21-fxs-round, .peer-b.v21-fxs-round { --fx-ob: 2px; --fx-hb: 5px; }
.av-lg.v21-fxs-round, .v21-fxw-dot.v21-fxs-round { --fx-ob: 4px; --fx-hb: 10px; }
.v21-fxs-round { --fx-o: var(--fx-ob); --fx-bw: var(--fx-ob); --fx-halo: var(--fx-hb); }
.v21-fxs-round.v21-fxt-epic { --fx-o: calc(var(--fx-ob) + 1px); --fx-bw: calc(var(--fx-ob) + 1px); --fx-halo: calc(var(--fx-hb) * 1.3); }
.v21-fxs-round.v21-fxt-legendary { --fx-o: calc(var(--fx-ob) + 1px); --fx-bw: calc(var(--fx-ob) + 1px); --fx-halo: calc(var(--fx-hb) * 1.7); }
.v21-fxs-round > .v21-fx-l { z-index: -1; border-radius: 50%; }
.v21-fxs-round > .v21-fx-l1 { inset: calc(var(--fx-o) * -1); }
.v21-fxs-round > .v21-fx-l2, .v21-fxs-round > .v21-fx-l3, .v21-fxs-round > .v21-fx-l4 { inset: calc((var(--fx-o) + var(--fx-halo)) * -1); }
.v21-fxs-round > .v21-fx-l2::before { inset: var(--fx-halo); box-shadow: 0 0 var(--fx-halo) calc(var(--fx-o) * .5) var(--fx-glow); }
/* The chosen colour's plain disc stays under the initials; the ring replaces the thin gap round it. */
.av.v21-fxs-round { box-shadow: none; }

/* ---------- box: the job I have, a tile, a tree's column, a pile's label ---------- */
.v21-fxs-box { isolation: isolate; --fx-bw: 2px; --fx-halo: 0px; }
.v21-fxs-box.v21-fxt-epic, .v21-fxs-box.v21-fxt-legendary { --fx-bw: 3px; }
.v21-fxs-box > .v21-fx-l { z-index: -1; inset: 0; border-radius: inherit; }
.v21-fxs-box > .v21-fx-l2::before { box-shadow: inset 0 0 18px 2px var(--fx-glow), inset 0 0 0 1px var(--fx-glow); }
.v21-fxw-pile.v21-fxs-box > .v21-fx-l2::before, .v21-fxw-tree.v21-fxs-box > .v21-fx-l2::before { box-shadow: inset 0 0 12px 1px var(--fx-glow); }
/* Where the words fill the box (a Leaf Token pile's label: the name and the count, edge to edge) only the band and the
   glow move, so no particle ever sits behind a word. A tree's column and a sign in tile keep their sparks, arcs, flames
   and ribbons in the free margin round the words (inside the column's and the tile's own padding), so every word
   reads at its own contrast in every theme. */
.v21-fxw-pile > .v21-fx-l2::after, .v21-fxw-pile > .v21-fx-l3, .v21-fxw-pile > .v21-fx-l4,
.v21-fxw-pile.v21-fxf-fire.v21-fxt-rare > .v21-fx-l2::before { display: none; }
.v21-fxw-tree > .v21-fx-l2, .v21-fxw-tree > .v21-fx-l3, .v21-fxw-tree > .v21-fx-l4 { --fx-mt: 14px; --fx-mb: 12px; --fx-ms: 8px; }
.v21-fxw-tile > .v21-fx-l2, .v21-fxw-tile > .v21-fx-l3, .v21-fxw-tile > .v21-fx-l4 { --fx-mt: 11px; --fx-mb: 11px; --fx-ms: 7px; }
.v21-fxw-tree > .v21-fx-l2, .v21-fxw-tree > .v21-fx-l3, .v21-fxw-tree > .v21-fx-l4,
.v21-fxw-tile > .v21-fx-l2, .v21-fxw-tile > .v21-fx-l3, .v21-fxw-tile > .v21-fx-l4 {
  -webkit-mask: linear-gradient(180deg, #000 0, #000 calc(var(--fx-mt) - 5px), transparent var(--fx-mt), transparent calc(100% - var(--fx-mb)), #000 calc(100% - var(--fx-mb) + 5px)), linear-gradient(90deg, #000 0, #000 calc(var(--fx-ms) - 4px), transparent var(--fx-ms), transparent calc(100% - var(--fx-ms)), #000 calc(100% - var(--fx-ms) + 4px));
  mask: linear-gradient(180deg, #000 0, #000 calc(var(--fx-mt) - 5px), transparent var(--fx-mt), transparent calc(100% - var(--fx-mb)), #000 calc(100% - var(--fx-mb) + 5px)), linear-gradient(90deg, #000 0, #000 calc(var(--fx-ms) - 4px), transparent var(--fx-ms), transparent calc(100% - var(--fx-ms)), #000 calc(100% - var(--fx-ms) + 4px));
}

/* ---------- strip: the holder's edge on a colleague's card, the sender's edge on a sending card ---------- */
/* Over the frost (so the colour stays clear while the job is locked out) and under the holder chip. */
.v21-fxs-strip { --fx-bw: 0px; --fx-halo: 0px; }
.v21-fxs-strip > .v21-fx-l { z-index: 2; border-radius: 0; }
.v21-fxs-strip > .v21-fx-l1 { left: 0; top: 0; bottom: 0; width: 5px; overflow: hidden; }
.card.closer.v21-fxs-strip > .v21-fx-l1 { left: 3px; }
.v21-fxs-strip > .v21-fx-l2, .v21-fxs-strip > .v21-fx-l3, .v21-fxs-strip > .v21-fx-l4 {
  left: 0; top: 0; bottom: 0; width: 84px; opacity: .85;
  -webkit-mask: linear-gradient(90deg, #000 0, #000 35%, transparent 100%);
  mask: linear-gradient(90deg, #000 0, #000 35%, transparent 100%);
}
.v21-fxs-strip > .v21-fx-l2::before { width: 26px; background: linear-gradient(90deg, var(--fx-glow), transparent); }
.v21-fxs-strip > .v21-fx-l1::before, .v21-fxs-strip > .v21-fx-l1::after { inset: 0; }
/* The plain edge the holder's hue draws is under the moving one; it shows again the moment everything is still. */

/* ---------- pill: the holder chip, a tree's name tag ---------- */
.v21-fxs-pill { --fx-o: 2px; --fx-bw: 2px; --fx-halo: 6px; }
.v21-fxs-pill.v21-fxt-epic, .v21-fxs-pill.v21-fxt-legendary { --fx-o: 3px; --fx-bw: 3px; --fx-halo: 8px; }
.v21-fxs-pill > .v21-fx-l { z-index: -1; border-radius: 999px; }
.v21-fxs-pill > .v21-fx-l1 { inset: calc(var(--fx-o) * -1); }
.v21-fxs-pill > .v21-fx-l2, .v21-fxs-pill > .v21-fx-l3, .v21-fxs-pill > .v21-fx-l4 { inset: calc((var(--fx-o) + var(--fx-halo)) * -1); }
.v21-fxs-pill > .v21-fx-l2::before { inset: var(--fx-halo); box-shadow: 0 0 var(--fx-halo) 1px var(--fx-glow); }
/* A chip's words sit right on top of its zone: everything round the chip moves, nothing inside it (the zone is cut
   to the strips above, below and beside the chip), so the name always reads at the chip's own contrast. */
.v21-fxs-pill > .v21-fx-l2, .v21-fxs-pill > .v21-fx-l3, .v21-fxs-pill > .v21-fx-l4 {
  --fx-cut: calc(var(--fx-halo) + var(--fx-o));
  -webkit-mask: linear-gradient(180deg, #000 0, #000 var(--fx-cut), transparent var(--fx-cut), transparent calc(100% - var(--fx-cut)), #000 calc(100% - var(--fx-cut))), linear-gradient(90deg, #000 0, #000 var(--fx-cut), transparent var(--fx-cut), transparent calc(100% - var(--fx-cut)), #000 calc(100% - var(--fx-cut)));
  mask: linear-gradient(180deg, #000 0, #000 var(--fx-cut), transparent var(--fx-cut), transparent calc(100% - var(--fx-cut)), #000 calc(100% - var(--fx-cut))), linear-gradient(90deg, #000 0, #000 var(--fx-cut), transparent var(--fx-cut), transparent calc(100% - var(--fx-cut)), #000 calc(100% - var(--fx-cut)));
}

/* ---------- the band: a ring or a border, cut out of a full layer (the gradient border method) ---------- */
.v21-fxs-round > .v21-fx-l1, .v21-fxs-box > .v21-fx-l1, .v21-fxs-pill > .v21-fx-l1 {
  border: var(--fx-bw) solid transparent;
  background-origin: border-box; background-clip: border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
.v21-fxs-round > .v21-fx-l1::before, .v21-fxs-round > .v21-fx-l1::after,
.v21-fxs-box > .v21-fx-l1::before, .v21-fxs-box > .v21-fx-l1::after,
.v21-fxs-pill > .v21-fx-l1::before, .v21-fxs-pill > .v21-fx-l1::after { inset: calc(var(--fx-bw) * -1); }

/* ======================================================================= the families */

/* ---------- metallics: brushed metal and a slow light sweeping across it ---------- */
.v21-fxf-metallic > .v21-fx-l1 {
  background-image: linear-gradient(112deg, var(--fx1) 0%, var(--fx3) 14%, var(--fx2) 28%, var(--fx4) 40%, var(--fx2) 52%, var(--fx1) 66%, var(--fx3) 82%, var(--fx2) 100%);
}
.v21-fxs-round.v21-fxf-metallic > .v21-fx-l1 {
  background-image: conic-gradient(from 20deg, var(--fx1), var(--fx3) 12%, var(--fx2) 25%, var(--fx4) 36%, var(--fx2) 48%, var(--fx1) 60%, var(--fx3) 74%, var(--fx2) 88%, var(--fx1));
}
.v21-fxs-strip.v21-fxf-metallic > .v21-fx-l1 {
  background-image: linear-gradient(180deg, var(--fx1) 0%, var(--fx3) 18%, var(--fx2) 36%, var(--fx4) 50%, var(--fx2) 64%, var(--fx1) 80%, var(--fx3) 100%);
}
/* the brushed grain */
.v21-fxf-metallic > .v21-fx-l1::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, rgba(0,0,0,.10) 1px 2px, transparent 2px 4px); opacity: .75; }
.v21-fxs-round.v21-fxf-metallic > .v21-fx-l1::before { background: repeating-conic-gradient(rgba(255,255,255,.16) 0 3deg, rgba(0,0,0,.10) 3deg 5deg, transparent 5deg 9deg); }
.v21-fxs-strip.v21-fxf-metallic > .v21-fx-l1::before { background: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, rgba(0,0,0,.10) 1px 2px, transparent 2px 4px); }
/* the light sweep */
.v21-fxf-metallic > .v21-fx-l1::after {
  background: linear-gradient(100deg, transparent 36%, rgba(255,255,255,0) 41%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 59%, transparent 64%);
  transform: translateX(-100%);
  animation: v21fx-sweep var(--fx-dur) cubic-bezier(.45,.05,.35,1) infinite;
}
.v21-fxs-round.v21-fxf-metallic > .v21-fx-l1::after {
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(255,255,255,0) 64%, rgba(255,255,255,.95) 72%, rgba(255,255,255,0) 80%, transparent 84%);
  transform: none;
  animation: v21fx-spin var(--fx-dur) linear infinite;
}
.v21-fxs-strip.v21-fxf-metallic > .v21-fx-l1::after {
  background: linear-gradient(180deg, transparent 30%, rgba(255,255,255,.95) 50%, transparent 70%);
  transform: translateY(-100%);
  animation-name: v21fx-sweepy;
}
/* chrome: a sharper, quicker flash and a second glint behind it */
.v21-fx-chrome > .v21-fx-l1::after { animation-duration: calc(var(--fx-dur) * .7); }
.v21-fx-chrome > .v21-fx-l1::before { background: linear-gradient(100deg, transparent 44%, rgba(255,255,255,.8) 50%, transparent 56%); opacity: 1; transform: translateX(-100%); animation: v21fx-sweep calc(var(--fx-dur) * .7) cubic-bezier(.45,.05,.35,1) calc(var(--fx-dur) * .18) infinite; }
.v21-fxs-round.v21-fx-chrome > .v21-fx-l1::before { background: conic-gradient(from 180deg, transparent 0 66%, rgba(255,255,255,.85) 72%, transparent 78%); transform: none; animation: v21fx-spin calc(var(--fx-dur) * .7) linear infinite reverse; }
.v21-fxs-strip.v21-fx-chrome > .v21-fx-l1::before { background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,.85) 50%, transparent 60%); transform: translateY(-100%); animation-name: v21fx-sweepy; }
/* the sheen round it: soft for common, fuller for rare, warm for epic, bright for legendary */
.v21-fxf-metallic > .v21-fx-l2::before { opacity: .55; animation: v21fx-breathe calc(var(--fx-dur) * 1.2) ease-in-out infinite; }
.v21-fxf-metallic.v21-fxt-common > .v21-fx-l2 { opacity: .45; }
.v21-fxf-metallic.v21-fxt-epic > .v21-fx-l2::before, .v21-fxf-metallic.v21-fxt-legendary > .v21-fx-l2::before { opacity: .9; }
/* platinum: star glints that catch the light */
.v21-fx-platinum > .v21-fx-l2::after, .v21-fxf-metallic.v21-fxt-legendary > .v21-fx-l3::before {
  background-image: var(--fx-star), var(--fx-star), var(--fx-star);
  background-repeat: no-repeat;
  background-size: 11px 11px, 8px 8px, 9px 9px;
  background-position: 12% 14%, 86% 30%, 60% 92%;
  filter: drop-shadow(0 0 2px var(--fxs, #FFFFFF)) drop-shadow(0 0 1px rgba(40,60,90,.55));
  opacity: 0;
  animation: v21fx-twinkle 2.4s ease-in-out infinite, v21fx-hop3 7.2s steps(1) infinite;
}
.v21-fxf-metallic.v21-fxt-legendary > .v21-fx-l3::before { background-position: 40% 4%, 4% 66%, 94% 74%; animation-delay: 1.2s, 1.2s; }

/* the metals */
.v21-fx-bronze { --fx1: #4A2C12; --fx2: #A8743F; --fx3: #D9A566; --fx4: #FFE7C2; --fxg: #D9A066; --fxs: #FFE1B0; }
.v21-fx-copper { --fx1: #5A2412; --fx2: #B8643C; --fx3: #E89468; --fx4: #FFE0CC; --fxg: #F09A6E; --fxs: #FFD6C0; }
.v21-fx-gunmetal { --fx1: #161C23; --fx2: #4B5563; --fx3: #8A97A6; --fx4: #E4EBF3; --fxg: #8FA6C4; --fxs: #DDE8F5; }
.v21-fx-silver { --fx1: #5E6670; --fx2: #A7AFB9; --fx3: #D9DFE6; --fx4: #FFFFFF; --fxg: #C8D2DE; --fxs: #FFFFFF; }
.v21-fx-rosegold { --fx1: #6E3A40; --fx2: #C4868B; --fx3: #EBB9B4; --fx4: #FFF0EC; --fxg: #F0B3B5; --fxs: #FFE4E1; }
.v21-fx-chrome { --fx1: #1B2026; --fx2: #7E8A96; --fx3: #E9EEF3; --fx4: #FFFFFF; --fxg: #C9D6E4; --fxs: #FFFFFF; }
.v21-fx-gold { --fx1: #5E4300; --fx2: #B8901E; --fx3: #EBC75A; --fx4: #FFF6CF; --fxg: #F2C94C; --fxs: #FFF1B8; }
.v21-fx-platinum { --fx1: #6B7380; --fx2: #BCC4CE; --fx3: #E9EDF2; --fx4: #FFFFFF; --fxg: #D5E2F2; --fxs: #E8F1FF; }

/* ---------- glows: neon tubes that flicker into life, a soft breathing halo ---------- */
.v21-fxf-glow > .v21-fx-l1 { background-image: linear-gradient(var(--fxg), var(--fxg)); animation: v21fx-neon calc(var(--fx-dur) * 1.1) linear infinite; }
/* the tube's bright core: a fine line along the inner half of the band */
.v21-fxf-glow > .v21-fx-l1::after { inset: calc(var(--fx-bw) * -1 + 1px); border: 1px solid var(--fxs); opacity: .85; }
.v21-fxs-strip.v21-fxf-glow > .v21-fx-l1::after { inset: 0 2px; border: 0; background: var(--fxs); }
.v21-fxf-glow { --fx-glow: color-mix(in srgb, var(--fxg) 75%, transparent); }
.v21-fxf-glow > .v21-fx-l2::before { animation: v21fx-neon calc(var(--fx-dur) * 1.1) linear infinite; }
.v21-fxs-round.v21-fxf-glow > .v21-fx-l2::before { box-shadow: 0 0 var(--fx-halo) calc(var(--fx-o) * .8) var(--fx-glow), 0 0 calc(var(--fx-halo) * 2) 0 color-mix(in srgb, var(--fxg) 35%, transparent); }
.v21-fxs-box.v21-fxf-glow > .v21-fx-l2::before { box-shadow: inset 0 0 22px 3px var(--fx-glow), inset 0 0 0 1px var(--fxg); }
.v21-fxs-pill.v21-fxf-glow > .v21-fx-l2::before { box-shadow: 0 0 var(--fx-halo) 2px var(--fx-glow); }
/* the halo breathes instead of flickering */
.v21-fx-halo > .v21-fx-l1, .v21-fx-halo > .v21-fx-l2::before, .v21-fx-supernova > .v21-fx-l1 { animation: v21fx-breathe 3.8s ease-in-out infinite; }
.v21-fx-halo > .v21-fx-l2, .v21-fx-supernova > .v21-fx-l2 { animation: v21fx-swell 3.8s ease-in-out infinite; }
.v21-fxs-box.v21-fx-halo > .v21-fx-l2, .v21-fxs-box.v21-fx-supernova > .v21-fx-l2, .v21-fxs-strip.v21-fx-halo > .v21-fx-l2, .v21-fxs-strip.v21-fx-supernova > .v21-fx-l2 { animation: none; }
.v21-fxs-box.v21-fx-supernova > .v21-fx-l2::before, .v21-fxs-strip.v21-fx-supernova > .v21-fx-l2::before { animation: v21fx-breathe 3.8s ease-in-out infinite; }
/* twin neon: pink and aqua trade places */
.v21-fx-twinneon > .v21-fx-l1 { background-image: linear-gradient(90deg, var(--fxg), var(--fxs), var(--fxg)); background-size: 200% 100%; animation: v21fx-flow 4s linear infinite, v21fx-neon calc(var(--fx-dur) * 1.4) linear infinite; }
.v21-fxs-round.v21-fx-twinneon > .v21-fx-l1 { background-image: conic-gradient(var(--fxg), var(--fxs), var(--fxg)); background-size: auto; animation: v21fx-spin 5s linear infinite; }
.v21-fx-twinneon > .v21-fx-l2::after { inset: var(--fx-halo); border-radius: inherit; box-shadow: 0 0 var(--fx-halo) calc(var(--fx-o) * .8) color-mix(in srgb, var(--fxs) 75%, transparent); opacity: 0; animation: v21fx-trade 4s ease-in-out infinite; }
.v21-fxs-box.v21-fx-twinneon > .v21-fx-l2::after { box-shadow: inset 0 0 22px 3px color-mix(in srgb, var(--fxs) 70%, transparent); }
.v21-fxs-strip.v21-fx-twinneon > .v21-fx-l2::after { inset: 0; width: 26px; box-shadow: none; background: linear-gradient(90deg, color-mix(in srgb, var(--fxs) 70%, transparent), transparent); }
.v21-fx-twinneon > .v21-fx-l2::before { animation: v21fx-trade 4s ease-in-out -2s infinite; }
/* supernova: a white gold core that swells and sends out waves of light */
.v21-fx-supernova > .v21-fx-l1 { background-image: radial-gradient(circle, var(--fx4), var(--fxg)); }
.v21-fx-supernova > .v21-fx-l3::before, .v21-fx-supernova > .v21-fx-l3::after {
  inset: calc(var(--fx-halo) - 1px); border: 2px solid var(--fxg); border-radius: inherit;
  box-shadow: 0 0 8px 1px var(--fx-glow); opacity: 0;
  animation: v21fx-shock 2.6s cubic-bezier(.2,.6,.3,1) infinite;
}
.v21-fx-supernova > .v21-fx-l3::after { animation-delay: 1.3s; }
.v21-fxs-box.v21-fx-supernova > .v21-fx-l3::before, .v21-fxs-box.v21-fx-supernova > .v21-fx-l3::after,
.v21-fxs-strip.v21-fx-supernova > .v21-fx-l3::before, .v21-fxs-strip.v21-fx-supernova > .v21-fx-l3::after {
  inset: 0; border: 0; box-shadow: inset 0 0 26px 6px var(--fx-glow); animation-name: v21fx-pulsein;
}

/* the glows */
.v21-fx-halo { --fxg: #E8A92C; --fxs: #FFE7A6; }
.v21-fx-neonaqua { --fxg: #00B8AE; --fxs: #B8FFF9; }
.v21-fx-neonlime { --fxg: #5FB300; --fxs: #E4FFB5; }
.v21-fx-neongalah { --fxg: #F0258F; --fxs: #FFC6E4; }
.v21-fx-neonviolet { --fxg: #8A3FFF; --fxs: #E0CCFF; }
.v21-fx-twinneon { --fxg: #F0258F; --fxs: #00C8BD; }
.v21-fx-supernova { --fxg: #F5B300; --fx4: #FFFBEA; --fxs: #FFF3C4; }
:root[data-theme="dark"] .v21-fx-halo { --fxg: #F5C95A; }
:root[data-theme="dark"] .v21-fx-neonaqua { --fxg: #2DE8DE; }
:root[data-theme="dark"] .v21-fx-neonlime { --fxg: #A6F03A; }
:root[data-theme="dark"] .v21-fx-neongalah { --fxg: #FF4FAE; }
:root[data-theme="dark"] .v21-fx-neonviolet { --fxg: #A46BFF; }
:root[data-theme="dark"] .v21-fx-twinneon { --fxg: #FF4FAE; --fxs: #2DE8DE; }
:root[data-theme="dark"] .v21-fx-supernova { --fxg: #FFD24D; }

/* ---------- sparks and sparkles: points of light that appear and fade round the edge ---------- */
.v21-fxf-sparks > .v21-fx-l1 { background-image: linear-gradient(100deg, var(--fx1), var(--fx2) 30%, var(--fx3) 50%, var(--fx2) 70%, var(--fx1)); background-size: 200% 100%; animation: v21fx-flow calc(var(--fx-dur) * 1.4) linear infinite; }
.v21-fxs-round.v21-fxf-sparks > .v21-fx-l1 { background-image: conic-gradient(var(--fx1), var(--fx3), var(--fx2), var(--fx3), var(--fx1)); background-size: auto; animation: v21fx-spin calc(var(--fx-dur) * 2) linear infinite; }
.v21-fxs-strip.v21-fxf-sparks > .v21-fx-l1 { background-image: linear-gradient(180deg, var(--fx1), var(--fx3), var(--fx2), var(--fx3), var(--fx1)); background-size: 100% 200%; animation: v21fx-flowy calc(var(--fx-dur) * 1.4) linear infinite; }
.v21-fxf-sparks > .v21-fx-l2::before { opacity: .45; animation: v21fx-breathe calc(var(--fx-dur) * .8) ease-in-out infinite; }
.v21-fxf-sparks.v21-fxt-common > .v21-fx-l2::before { display: none; }
/* the points: white stars with a glow of the effect's own colour and a fine dark edge, so they read on light glass too */
.v21-fxf-sparks > .v21-fx-l2::after, .v21-fxf-sparks > .v21-fx-l3::before {
  background-image: var(--fx-star), var(--fx-star), var(--fx-star), var(--fx-star);
  background-repeat: no-repeat;
  background-size: 9px 9px, 7px 7px, 11px 11px, 6px 6px;
  background-position: 8% 10%, 64% 2%, 94% 58%, 28% 96%;
  filter: drop-shadow(0 0 1.5px var(--fxs)) drop-shadow(0 0 3px var(--fxs)) drop-shadow(0 0 .5px rgba(20,30,50,.5));
  opacity: 0;
  animation: v21fx-twinkle 1.9s ease-in-out infinite, v21fx-hop4 7.6s steps(1) infinite;
}
.v21-fxf-sparks > .v21-fx-l3::before { background-position: 40% 0%, 2% 48%, 78% 94%, 97% 18%; animation-delay: .95s, .95s; animation-duration: 1.9s, 7.6s; }
.v21-fxs-round.v21-fxf-sparks > .v21-fx-l2::after { animation: v21fx-twinkle 1.9s ease-in-out infinite, v21fx-hop4 7.6s steps(1) infinite; }
.v21-fxs-round.v21-fxf-sparks > .v21-fx-l2 { animation: v21fx-spin calc(var(--fx-dur) * 4) linear infinite; }
.av-sm.v21-fxf-sparks > .v21-fx-l2::after, .av-sm.v21-fxf-sparks > .v21-fx-l3::before, .peer-b.v21-fxf-sparks > .v21-fx-l2::after { background-size: 6px 6px, 5px 5px, 7px 7px, 4px 4px; }
.v21-fxs-box.v21-fxf-sparks > .v21-fx-l2::after, .v21-fxs-box.v21-fxf-sparks > .v21-fx-l3::before { background-size: 12px 12px, 9px 9px, 14px 14px, 8px 8px; }
.v21-fxs-strip.v21-fxf-sparks > .v21-fx-l2::after { background-position: 4% 12%, 30% 40%, 10% 70%, 22% 92%; animation-name: v21fx-twinkle, v21fx-hopstrip; }
/* fireflies: soft round lights that drift and blink */
.v21-fx-firefly > .v21-fx-l2::after, .v21-fx-firefly > .v21-fx-l3::before {
  background-image: radial-gradient(circle, var(--fx4) 0 1.5px, var(--fxs) 2px, transparent 4.5px), radial-gradient(circle, var(--fx4) 0 1px, var(--fxs) 1.5px, transparent 4px), radial-gradient(circle, var(--fx4) 0 1.5px, var(--fxs) 2px, transparent 4.5px), radial-gradient(circle, var(--fx4) 0 1px, var(--fxs) 1.5px, transparent 4px);
  background-size: 10px 10px, 8px 8px, 10px 10px, 8px 8px;
  filter: drop-shadow(0 0 3px var(--fxs));
  animation: v21fx-blink 2.6s ease-in-out infinite, v21fx-drift 7.8s ease-in-out infinite alternate, v21fx-hop4 10.4s steps(1) infinite;
}
.v21-fxs-round.v21-fx-firefly > .v21-fx-l2 { animation: none; }
/* diamond dust: the glints flash with a hint of rainbow */
.v21-fx-diamond > .v21-fx-l2::after, .v21-fx-diamond > .v21-fx-l3::before { animation: v21fx-twinkle 1.5s ease-in-out infinite, v21fx-hop4 6s steps(1) infinite, v21fx-prism 3s linear infinite; }
.v21-fx-diamond > .v21-fx-l3::before { animation-delay: .75s, .75s, 0s; }
/* starfall: a shower of falling sparks as well */
.v21-fx-starfall > .v21-fx-l3::after {
  background-image: radial-gradient(circle, #FFFFFF 0 1px, var(--fxs) 1.5px, transparent 3px), radial-gradient(circle, #FFFFFF 0 .8px, var(--fxs) 1.2px, transparent 2.5px), radial-gradient(circle, #FFFFFF 0 1px, var(--fxs) 1.5px, transparent 3px);
  background-size: 23px 31px, 17px 43px, 29px 37px;
  background-position: 3px 0, 11px 9px, 19px 21px;
  filter: drop-shadow(0 0 2px var(--fxs));
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 55%, #000 80%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0, #000 55%, #000 80%, transparent 100%);
  opacity: .8;
  animation: v21fx-fall 3s linear infinite;
}
/* on a card the shower falls down the two ends (round the glyph and the time), never through the words */
.v21-fxs-box.v21-fx-starfall > .v21-fx-l3::after, .v21-fxs-box.v21-fx-starfall > .v21-fx-l4::after {
  opacity: .7;
  -webkit-mask: linear-gradient(90deg, #000 0, #000 9%, transparent 17%, transparent 86%, #000 93%);
  mask: linear-gradient(90deg, #000 0, #000 9%, transparent 17%, transparent 86%, #000 93%);
}
.v21-fxs-strip.v21-fx-starfall > .v21-fx-l3::after { opacity: .6; }

/* the sparkles */
.v21-fx-glitter { --fx1: #7C8798; --fx2: #C3CCDA; --fx3: #FFFFFF; --fx4: #FFFFFF; --fxg: #C8D3E6; --fxs: #9DB4E0; }
.v21-fx-stardust { --fx1: #8A6200; --fx2: #D6A928; --fx3: #FFE9A0; --fx4: #FFFFFF; --fxg: #F2C94C; --fxs: #E8A400; }
.v21-fx-firefly { --fx1: #2F4A0A; --fx2: #6F9A12; --fx3: #C8EA4A; --fx4: #FBFFE0; --fxg: #B7E03A; --fxs: #9BD21C; }
.v21-fx-diamond { --fx1: #4E8CC2; --fx2: #A8D8FF; --fx3: #FFFFFF; --fx4: #FFFFFF; --fxg: #A8D8FF; --fxs: #5AB2F0; }
.v21-fx-starfall { --fx1: #2B2E86; --fx2: #7A84F0; --fx3: #E6E8FF; --fx4: #FFFFFF; --fxg: #9FA8FF; --fxs: #7C86FF; }

/* ---------- lightning: electric arcs that crackle along the edge, with a flicker and a flash ---------- */
.v21-fxf-lightning > .v21-fx-l1 { background-image: linear-gradient(90deg, var(--fx1), var(--fx2) 40%, var(--fx3) 50%, var(--fx2) 60%, var(--fx1)); background-size: 200% 100%; animation: v21fx-flow 1.6s linear infinite, v21fx-flash 2.3s steps(1) infinite; }
.v21-fxs-round.v21-fxf-lightning > .v21-fx-l1 { background-image: conic-gradient(var(--fx1), var(--fx2), var(--fx3), var(--fx2), var(--fx1), var(--fx2), var(--fx3), var(--fx1)); background-size: auto; animation: v21fx-spin 2.2s linear infinite, v21fx-flash 2.3s steps(1) infinite; }
.v21-fxs-strip.v21-fxf-lightning > .v21-fx-l1 { background-image: linear-gradient(180deg, var(--fx1), var(--fx2) 40%, var(--fx3) 50%, var(--fx2) 60%, var(--fx1)); background-size: 100% 200%; animation: v21fx-flowy 1.2s linear infinite, v21fx-flash 2.3s steps(1) infinite; }
.v21-fxf-lightning { --fx-glow: color-mix(in srgb, var(--fxg) 70%, transparent); }
.v21-fxf-lightning > .v21-fx-l2::before { opacity: .3; animation: v21fx-glowflash 2.3s steps(1) infinite; }
/* the arcs: a white core with a glow of the effect's colour */
.v21-fxf-lightning > .v21-fx-l2::after, .v21-fxf-lightning > .v21-fx-l3::before, .v21-fxf-lightning > .v21-fx-l3::after {
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 1.5px var(--fxg)) drop-shadow(0 0 4px var(--fxg)) drop-shadow(0 0 .5px rgba(10,20,60,.6));
  opacity: 0;
}
/* round: broken arcs round the ring that jump to a new place each time they strike */
.v21-fxs-round.v21-fxf-lightning > .v21-fx-l2::after, .v21-fxs-round.v21-fxf-lightning > .v21-fx-l3::before, .v21-fxs-round.v21-fxf-lightning > .v21-fx-l3::after {
  inset: calc(var(--fx-halo) - var(--fx-o) - 2px); border-radius: 50%;
  background-image: var(--fx-rbolt1); background-size: 100% 100%;
  animation: v21fx-crackle 2.3s linear infinite, v21fx-jumpr 6.9s steps(1) infinite;
}
.v21-fxs-round.v21-fxf-lightning > .v21-fx-l3::before { background-image: var(--fx-rbolt2); animation-delay: -1.1s, -1.1s; }
.v21-fxs-round.v21-fxf-lightning > .v21-fx-l3::after { background-image: var(--fx-rbolt1); animation-duration: 1.7s, 5.1s; animation-delay: -.4s, -.4s; }
/* box: arcs hugging the top and the bottom edge (inside the card's own padding, clear of the words) */
.v21-fxs-box.v21-fxf-lightning > .v21-fx-l2::after, .v21-fxs-box.v21-fxf-lightning > .v21-fx-l3::before, .v21-fxs-box.v21-fxf-lightning > .v21-fx-l3::after {
  inset: auto; left: 0; top: -3px; width: 34%; height: 8px; border-radius: 0;
  background-image: var(--fx-hbolt1); background-size: 100% 100%;
  animation: v21fx-crackle 2.3s linear infinite, v21fx-jumpx 6.9s steps(1) infinite;
}
.v21-fxs-box.v21-fxf-lightning > .v21-fx-l3::before { top: auto; bottom: -3px; background-image: var(--fx-hbolt2); animation-delay: -1.1s, -1.1s; }
/* the third arc crackles round the glyph at the card's left end and jumps up and down it, never across the words */
.v21-fxs-box.v21-fxf-lightning > .v21-fx-l3::after {
  top: auto; left: 1%; bottom: 20%; height: 12px; width: 9%; background-image: var(--fx-hbolt1);
  animation-name: v21fx-crackle, v21fx-jumpglyph; animation-duration: 1.7s, 5.1s; animation-delay: -.5s, -.5s;
}
/* strip and pill: short crackles jumping off the edge */
.v21-fxs-strip.v21-fxf-lightning > .v21-fx-l2::after, .v21-fxs-strip.v21-fxf-lightning > .v21-fx-l3::before, .v21-fxs-strip.v21-fxf-lightning > .v21-fx-l3::after {
  inset: auto; left: 2px; top: 18%; width: 42px; height: 10px;
  background-image: var(--fx-hbolt1); background-size: 100% 100%;
  animation: v21fx-crackle 2.3s linear infinite, v21fx-jumpy 6.9s steps(1) infinite;
}
.v21-fxs-strip.v21-fxf-lightning > .v21-fx-l3::before { top: 60%; background-image: var(--fx-hbolt2); animation-delay: -1.1s, -1.1s; }
.v21-fxs-strip.v21-fxf-lightning > .v21-fx-l3::after { top: 40%; width: 30px; animation-duration: 1.7s, 5.1s; animation-delay: -.5s, -.5s; }
.v21-fxs-pill.v21-fxf-lightning > .v21-fx-l2::after, .v21-fxs-pill.v21-fxf-lightning > .v21-fx-l3::before, .v21-fxs-pill.v21-fxf-lightning > .v21-fx-l3::after {
  inset: auto; left: 8%; top: 1px; width: 44%; height: 9px;
  background-image: var(--fx-hbolt1); background-size: 100% 100%;
  animation: v21fx-crackle 2.3s linear infinite, v21fx-jumpx 6.9s steps(1) infinite;
}
.v21-fxs-pill.v21-fxf-lightning > .v21-fx-l3::before { top: auto; bottom: 1px; background-image: var(--fx-hbolt2); animation-delay: -1.1s, -1.1s; }
/* Top End Storm: flying sparks thrown off each strike, and a white flash over the zone */
.v21-fx.v21-fx-topend.v21-fxf-lightning > .v21-fx-l4::after {
  inset: 0; width: auto; height: auto; opacity: 0;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 2px var(--fxg));
  background-image: radial-gradient(circle, #FFFFFF 0 1px, var(--fxg) 1.5px, transparent 3px), radial-gradient(circle, #FFFFFF 0 1px, var(--fxg) 1.5px, transparent 3px), radial-gradient(circle, #FFFFFF 0 .8px, var(--fxg) 1.2px, transparent 2.5px), radial-gradient(circle, #FFFFFF 0 1px, var(--fxg) 1.5px, transparent 3px);
  background-size: 8px 8px, 8px 8px, 6px 6px, 8px 8px;
  background-position: 20% 10%, 80% 16%, 12% 84%, 88% 80%;
  animation: v21fx-sparkfly 2.3s ease-out infinite, v21fx-hop4 9.2s steps(1) infinite;
}
.v21-fx.v21-fx-topend.v21-fxf-lightning > .v21-fx-l4::before { background: radial-gradient(closest-side, rgba(255,255,255,.9), color-mix(in srgb, var(--fxg) 50%, transparent) 60%, transparent); opacity: 0; animation: v21fx-strikeflash 4.6s steps(1) infinite; }
/* On a card (mine, or the holder's edge over a colleague's frost) the flash is a light tint of the storm's colour, never
   white over the words (the selectors carry the same weight as the white flash's above, and come after it). */
.v21-fx.v21-fxs-box.v21-fx-topend.v21-fxf-lightning > .v21-fx-l4::before,
.v21-fx.v21-fxs-strip.v21-fx-topend.v21-fxf-lightning > .v21-fx-l4::before { background: color-mix(in srgb, var(--fxg) 22%, transparent); }
.v21-fx-topend > .v21-fx-l2::before { animation: v21fx-glowflash 2.3s steps(1) infinite, v21fx-strobe 4.6s steps(1) infinite; }

/* the storms */
.v21-fx-static { --fx1: #0B4A7A; --fx2: #3A9BE0; --fx3: #D8F0FF; --fxg: #3AA6F0; --fxs: #BFE6FF; }
.v21-fx-storm { --fx1: #0A2F6E; --fx2: #2F86F0; --fx3: #E6F4FF; --fxg: #3F95FF; --fxs: #CFE6FF; }
.v21-fx-violetbolt { --fx1: #2E1178; --fx2: #7E4BF0; --fx3: #F1E8FF; --fxg: #9A63FF; --fxs: #E3D2FF; }
.v21-fx-topend { --fx1: #081C4A; --fx2: #2D6FE0; --fx3: #FFFFFF; --fxg: #5C9CFF; --fxs: #DDEBFF; }
:root[data-theme="dark"] .v21-fx-static { --fxg: #6CC4FF; }
:root[data-theme="dark"] .v21-fx-storm { --fxg: #4AA8FF; }
:root[data-theme="dark"] .v21-fx-violetbolt { --fxg: #B38CFF; }
:root[data-theme="dark"] .v21-fx-topend { --fxg: #7FB6FF; }

/* ---------- fire and flames: flames licking up from the edge, embers drifting up, a heat shimmer ---------- */
.v21-fxf-fire > .v21-fx-l1 { background-image: linear-gradient(90deg, var(--fx1), var(--fx2) 25%, var(--fx3) 50%, var(--fx2) 75%, var(--fx1)); background-size: 200% 100%; animation: v21fx-flow 2.2s linear infinite, v21fx-flicker 1.3s ease-in-out infinite alternate; }
.v21-fxs-round.v21-fxf-fire > .v21-fx-l1 { background-image: conic-gradient(from 180deg, var(--fx1), var(--fx2), var(--fx3), var(--fx2), var(--fx1), var(--fx2), var(--fx3), var(--fx1)); background-size: auto; animation: v21fx-spin 3s linear infinite reverse, v21fx-flicker 1.3s ease-in-out infinite alternate; }
.v21-fxs-strip.v21-fxf-fire > .v21-fx-l1 { background-image: linear-gradient(0deg, var(--fx1), var(--fx2) 25%, var(--fx3) 50%, var(--fx2) 75%, var(--fx1)); background-size: 100% 200%; animation: v21fx-flowup 1.4s linear infinite, v21fx-flicker 1.3s ease-in-out infinite alternate; }
.v21-fxf-fire { --fx-glow: color-mix(in srgb, var(--fxg) 60%, transparent); }
.v21-fxf-fire > .v21-fx-l2::before { opacity: .7; animation: v21fx-flicker 1.1s ease-in-out infinite alternate; }
/* the flames (rare and up; Ember Glow, the common one, is embers only): two rows of tongues from the bottom edge of
   the zone, never in step. Each row has its own width of tile (184px and 134px, so the tongues never line up) with
   tongues of different heights, every tongue rises and falls on its own (each is its own background layer, moved by
   background position), and the two rows drift sideways in opposite directions, so the fire's outline never repeats. */
.v21-fxf-fire:not(.v21-fxt-common) > .v21-fx-l2::after, .v21-fxf-fire > .v21-fx-l3::before {
  inset: auto; left: 0; right: 0; bottom: 0; height: 30px; border-radius: 0;
  background-image:
    radial-gradient(ellipse 9px 24px at 14px 100%, var(--fx4) 0, var(--fx3) 28%, var(--fx2) 52%, transparent 72%),
    radial-gradient(ellipse 7px 17px at 38px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 11px 29px at 63px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 8px 20px at 90px 100%, var(--fx4) 0, var(--fx3) 28%, var(--fx2) 52%, transparent 72%),
    radial-gradient(ellipse 10px 26px at 114px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 7px 15px at 141px 100%, var(--fx4) 0, var(--fx3) 28%, var(--fx2) 52%, transparent 72%),
    radial-gradient(ellipse 9px 22px at 165px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%);
  background-size: 184px calc(100% + 10px); background-repeat: repeat-x;
  transform-origin: 50% 100%;
  opacity: .9;
  animation: v21fx-lick 1.5s ease-in-out infinite alternate, v21fx-fire-a 7s linear infinite;
}
.v21-fxf-fire > .v21-fx-l3::before {
  height: 24px; opacity: .75;
  background-image:
    radial-gradient(ellipse 8px 19px at 10px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 10px 23px at 35px 100%, var(--fx4) 0, var(--fx3) 28%, var(--fx2) 52%, transparent 72%),
    radial-gradient(ellipse 6px 14px at 58px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 9px 21px at 84px 100%, var(--fx4) 0, var(--fx3) 28%, var(--fx2) 52%, transparent 72%),
    radial-gradient(ellipse 7px 17px at 112px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%);
  background-size: 134px calc(100% + 10px);
  animation: v21fx-lick 1.1s ease-in-out -.6s infinite alternate, v21fx-fire-b 5.4s linear infinite reverse;
}
/* On a card, the epic and legendary fires stand tall: tongues up to about 32px high, full at the glyph's end of the card
   and a third as strong behind the words (they sit low, under the words' line, and the row in front stays short). */
.v21-fxs-box.v21-fxf-fire.v21-fxt-epic > .v21-fx-l2::after, .v21-fxs-box.v21-fxf-fire.v21-fxt-legendary > .v21-fx-l2::after {
  height: 48px;
  background-image:
    radial-gradient(ellipse 12px 40px at 16px 100%, var(--fx4) 0, var(--fx3) 24%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 8px 27px at 44px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 52%, transparent 72%),
    radial-gradient(ellipse 13px 44px at 72px 100%, var(--fx4) 0, var(--fx3) 24%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 9px 32px at 99px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 52%, transparent 72%),
    radial-gradient(ellipse 11px 38px at 124px 100%, var(--fx4) 0, var(--fx3) 24%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 8px 24px at 150px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 52%, transparent 72%),
    radial-gradient(ellipse 10px 34px at 172px 100%, var(--fx4) 0, var(--fx3) 24%, var(--fx2) 50%, transparent 72%);
  -webkit-mask: linear-gradient(90deg, #000 0, #000 12%, rgba(0,0,0,.35) 22%);
  mask: linear-gradient(90deg, #000 0, #000 12%, rgba(0,0,0,.35) 22%);
}
/* A chip's rows use its own 56px tile (small tongues standing on its top edge) and drift by whole tiles. */
.v21-fxs-pill.v21-fxf-fire:not(.v21-fxt-common) > .v21-fx-l2::after {
  background-image:
    radial-gradient(ellipse 7px 16px at 10px 100%, var(--fx4) 0, var(--fx3) 28%, var(--fx2) 52%, transparent 72%),
    radial-gradient(ellipse 9px 20px at 28px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 6px 13px at 45px 100%, var(--fx4) 0, var(--fx3) 28%, var(--fx2) 52%, transparent 72%);
  animation-name: v21fx-lick, v21fx-fdrift;
}
.v21-fxs-pill.v21-fxf-fire > .v21-fx-l3::before {
  background-image:
    radial-gradient(ellipse 8px 18px at 18px 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 6px 14px at 40px 100%, var(--fx4) 0, var(--fx3) 28%, var(--fx2) 52%, transparent 72%);
  animation-name: v21fx-lick, v21fx-fdrift;
}
/* the embers: tiny sparks rising for ever from the fire in three drifts at three speeds, fading as they climb (each
   drift moves a whole number of its own tiles, so it never jumps) */
.v21-fxf-fire > .v21-fx-l3::after, .v21-fxf-fire.v21-fxt-common > .v21-fx-l2::after, .v21-fxf-fire.v21-fxt-rare > .v21-fx-l2::before, .v21-fx-phoenix > .v21-fx-l4::after {
  inset: 0; width: auto; height: auto; border-radius: inherit;
  background-image: radial-gradient(circle, var(--fx4) 0 1px, var(--fx3) 1.5px, transparent 2.5px), radial-gradient(circle, var(--fx4) 0 .8px, var(--fx2) 1.2px, transparent 2.2px), radial-gradient(circle, var(--fx4) 0 1px, var(--fx3) 1.5px, transparent 2.5px);
  background-size: 37px 53px, 53px 71px, 71px 61px;
  background-position: 5px 0, 22px 10px, 40px 30px;
  background-repeat: repeat;
  box-shadow: none; transform: none;
  filter: drop-shadow(0 0 2px var(--fx2));
  -webkit-mask: linear-gradient(0deg, transparent 0, #000 12%, #000 36%, transparent 80%);
  mask: linear-gradient(0deg, transparent 0, #000 12%, #000 36%, transparent 80%);
  opacity: .95;
  animation: v21fx-embers 4.2s linear infinite;
}
.v21-fxf-fire.v21-fxt-rare > .v21-fx-l2::before { animation-duration: 5.4s; }
/* On a card the embers stay low, in the bottom quarter, under the words' line, so the words always read clean. Nine
   drifts in wide tiles of nine sizes (a few sparks across the card from each), rising at nine speeds and two of them
   blown a little sideways, so in that low band they rise as a scatter of sparks, never an even row of dots. */
.v21-fxs-box.v21-fxf-fire > .v21-fx-l3::after, .v21-fxs-box.v21-fxf-fire.v21-fxt-common > .v21-fx-l2::after, .v21-fxs-box.v21-fxf-fire.v21-fxt-rare > .v21-fx-l2::before, .v21-fxs-box.v21-fx-phoenix > .v21-fx-l4::after {
  background-image: radial-gradient(circle, var(--fx4) 0 1.2px, var(--fx3) 1.8px, transparent 3px), radial-gradient(circle, var(--fx4) 0 .9px, var(--fx2) 1.4px, transparent 2.4px), radial-gradient(circle, var(--fx4) 0 .8px, var(--fx3) 1.2px, transparent 2.2px), radial-gradient(circle, var(--fx4) 0 1.2px, var(--fx3) 1.8px, transparent 3px), radial-gradient(circle, var(--fx4) 0 .9px, var(--fx2) 1.4px, transparent 2.4px), radial-gradient(circle, var(--fx4) 0 .8px, var(--fx3) 1.2px, transparent 2.2px), radial-gradient(circle, var(--fx4) 0 1.2px, var(--fx3) 1.8px, transparent 3px), radial-gradient(circle, var(--fx4) 0 .9px, var(--fx2) 1.4px, transparent 2.4px), radial-gradient(circle, var(--fx4) 0 .8px, var(--fx3) 1.2px, transparent 2.2px);
  background-size: 157px 47px, 211px 59px, 263px 53px, 307px 41px, 353px 67px, 389px 43px, 431px 61px, 467px 71px, 193px 37px;
  -webkit-mask: linear-gradient(0deg, transparent 0, #000 6%, #000 14%, transparent 26%);
  mask: linear-gradient(0deg, transparent 0, #000 6%, #000 14%, transparent 26%);
  animation-name: v21fx-embers-b;
}
/* round: flames round the ring and embers rising from it. The disc itself stays clear (a hole the size of the disc),
   and the zone fades away at its outer edge, so no flame or ember ever ends in a hard line. */
.v21-fxs-round.v21-fxf-fire > .v21-fx-l2, .v21-fxs-round.v21-fxf-fire > .v21-fx-l3, .v21-fxs-round.v21-fxf-fire > .v21-fx-l4 {
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 64%, #000 84%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 58%, #000 64%, #000 84%, transparent 100%);
}
/* Starfall's shower, Black Opal's sheen and Top End Storm's flash never cross the initials either. */
.v21-fxs-round.v21-fx-starfall > .v21-fx-l3, .v21-fxs-round.v21-fx-starfall > .v21-fx-l4,
.v21-fxs-round.v21-fx-opal > .v21-fx-l4, .v21-fxs-round.v21-fx-topend > .v21-fx-l4 {
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 63%);
  mask: radial-gradient(closest-side, transparent 58%, #000 63%);
}
.v21-fxs-round.v21-fxf-fire:not(.v21-fxt-common) > .v21-fx-l2::after, .v21-fxs-round.v21-fxf-fire > .v21-fx-l3::before {
  left: 12%; right: 12%; bottom: 42%; height: 58%;
  background-image:
    radial-gradient(ellipse 22% 62% at 20% 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 26% 90% at 50% 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 22% 70% at 80% 100%, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%);
  background-size: 100% 100%; background-repeat: no-repeat;
  /* the base of each flame fades into the ring (no straight line either side of the disc) */
  -webkit-mask: linear-gradient(0deg, transparent 0, #000 45%);
  mask: linear-gradient(0deg, transparent 0, #000 45%);
  animation: v21fx-lick 1.5s ease-in-out infinite alternate;
}
.v21-fxs-round.v21-fxf-fire > .v21-fx-l3::before { left: 2%; right: 2%; bottom: 30%; height: 52%; background-position: 0 0; animation: v21fx-lick 1.1s ease-in-out -.6s infinite alternate; }
/* the embers: three sparse drifts in tiles of different sizes, so they rise as scattered sparks, never a grid */
.v21-fxs-round.v21-fxf-fire > .v21-fx-l3::after, .v21-fxs-round.v21-fxf-fire.v21-fxt-common > .v21-fx-l2::after, .v21-fxs-round.v21-fxf-fire.v21-fxt-rare > .v21-fx-l2::before, .v21-fxs-round.v21-fx-phoenix > .v21-fx-l4::after {
  background-size: 17px 31px, 23px 41px, 29px 37px; background-position: 1px 0, 6px 4px, 10px 9px;
  -webkit-mask: linear-gradient(0deg, transparent 0, #000 30%, #000 62%, transparent 100%);
  mask: linear-gradient(0deg, transparent 0, #000 30%, #000 62%, transparent 100%);
  animation-name: v21fx-embers-s;
}
/* strip: flames licking in from the edge */
.v21-fxs-strip.v21-fxf-fire:not(.v21-fxt-common) > .v21-fx-l2::after, .v21-fxs-strip.v21-fxf-fire > .v21-fx-l3::before {
  left: 0; right: auto; top: 0; bottom: 0; width: 26px; height: auto;
  background-image:
    radial-gradient(ellipse 22px 7px at 0 14px, var(--fx4) 0, var(--fx3) 28%, var(--fx2) 52%, transparent 72%),
    radial-gradient(ellipse 15px 6px at 0 38px, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%),
    radial-gradient(ellipse 26px 8px at 0 64px, var(--fx4) 0, var(--fx3) 26%, var(--fx2) 50%, transparent 72%);
  background-size: 100% 84px; background-repeat: repeat-y;
  transform-origin: 0 50%;
  animation-name: v21fx-lickx;
}
.v21-fxs-strip.v21-fxf-fire > .v21-fx-l3::before { background-position: 0 42px; width: 20px; }
/* pill: small tongues standing on the chip's top edge, and the embers above them */
.v21-fxs-pill.v21-fxf-fire:not(.v21-fxt-common) > .v21-fx-l2::after, .v21-fxs-pill.v21-fxf-fire > .v21-fx-l3::before { bottom: calc(100% - var(--fx-halo) - var(--fx-o)); height: 16px; background-size: 56px 100%; }
.v21-fxs-pill.v21-fxf-fire > .v21-fx-l3::after, .v21-fxs-pill.v21-fxf-fire.v21-fxt-common > .v21-fx-l2::after, .v21-fxs-pill.v21-fxf-fire.v21-fxt-rare > .v21-fx-l2::before, .v21-fxs-pill.v21-fx-phoenix > .v21-fx-l4::after { inset: -16px 0 auto 0; height: calc(var(--fx-halo) + var(--fx-o) + 16px); }
/* the heat shimmer on the top fire */
.v21-fx-phoenix > .v21-fx-l2::before { opacity: .9; }
.v21-fx-phoenix > .v21-fx-l3 { overflow: visible; }
.v21-fxs-round.v21-fx-phoenix > .v21-fx-l2::after { height: 70%; }
.v21-fx-phoenix > .v21-fx-l4::before {
  inset: auto 0 18px 0; height: 34px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--fx3) 26%, transparent) 45%, color-mix(in srgb, var(--fx4) 18%, transparent) 60%, transparent);
  filter: blur(3px); transform-origin: 50% 100%;
  animation: v21fx-shimmer 1.8s ease-in-out infinite alternate;
}
.v21-fxs-round.v21-fx-phoenix > .v21-fx-l4::before { inset: 0 8% 46% 8%; height: auto; border-radius: 50% 50% 0 0; }
/* on a card the shimmer rises off the tall flames at the glyph's end, low, never a haze behind the words */
.v21-fxs-box.v21-fx-phoenix > .v21-fx-l4::before {
  inset: auto 0 8px 0; height: 30px;
  -webkit-mask: linear-gradient(90deg, #000 0, #000 12%, transparent 24%);
  mask: linear-gradient(90deg, #000 0, #000 12%, transparent 24%);
}
.v21-fxs-strip.v21-fx-phoenix > .v21-fx-l4::before { inset: 0 auto 0 4px; width: 30px; height: auto; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fx3) 26%, transparent) 45%, transparent); animation-name: v21fx-shimmerx; }
/* the phoenix throws a second, faster drift of embers */
.v21-fx-phoenix:not(.v21-fxs-round):not(.v21-fxs-box) > .v21-fx-l4::after { background-size: 29px 47px, 41px 59px, 23px 43px; background-position: 12px 5px, 30px 0, 3px 20px; animation-name: v21fx-embers2; animation-duration: 2.8s; }
.v21-fxs-box.v21-fx-phoenix > .v21-fx-l4::after { animation-duration: 2.9s; animation-delay: -1.3s; }
.v21-fxs-round.v21-fx-phoenix > .v21-fx-l4::after { animation-duration: 2.6s; animation-direction: normal; background-position: 4px 6px, 9px 1px, 14px 12px; }

/* the fires */
.v21-fx-ember { --fx1: #5E1402; --fx2: #D9480F; --fx3: #FF9A3C; --fx4: #FFE3A3; --fxg: #FF6A1A; }
.v21-fx-campfire { --fx1: #7A1502; --fx2: #F0600C; --fx3: #FFB22E; --fx4: #FFF2B3; --fxg: #FF7A12; }
.v21-fx-blueflame { --fx1: #06246E; --fx2: #1E6BFF; --fx3: #7CC0FF; --fx4: #F2FAFF; --fxg: #3F86FF; }
.v21-fx-phoenix { --fx1: #6E0A02; --fx2: #FF3F0A; --fx3: #FFA11F; --fx4: #FFF4C2; --fxg: #FF5A12; }

/* ---------- specials ---------- */
/* Reef Shimmer: sunlight rippling through clear water */
.v21-fx-reefglow > .v21-fx-l1 { background-image: linear-gradient(100deg, var(--fx1), var(--fx2) 30%, var(--fx3) 48%, var(--fx2) 62%, var(--fx1)); background-size: 220% 100%; animation: v21fx-flow 6s ease-in-out infinite alternate; }
.v21-fxs-round.v21-fx-reefglow > .v21-fx-l1 { background-image: conic-gradient(var(--fx1), var(--fx2), var(--fx3), var(--fx2), var(--fx1)); background-size: auto; animation: v21fx-spin 9s linear infinite; }
.v21-fx-reefglow > .v21-fx-l2::after {
  background-image: radial-gradient(ellipse 14px 5px at 30% 40%, rgba(255,255,255,.75), transparent 70%), radial-gradient(ellipse 10px 4px at 70% 70%, rgba(255,255,255,.6), transparent 70%), radial-gradient(ellipse 12px 4px at 50% 15%, rgba(255,255,255,.65), transparent 70%);
  background-size: 46px 30px; background-repeat: repeat;
  filter: drop-shadow(0 0 2px var(--fx3));
  opacity: .55; animation: v21fx-caustic 7s linear infinite, v21fx-breathe 3.5s ease-in-out infinite;
}
.v21-fxs-round.v21-fx-reefglow > .v21-fx-l2::after { border-radius: 50%; -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 70%, #000 92%, transparent); mask: radial-gradient(closest-side, transparent 58%, #000 70%, #000 92%, transparent); }
.v21-fxs-box.v21-fx-reefglow > .v21-fx-l2::after { opacity: .35; }
.v21-fx-reefglow > .v21-fx-l2::before { animation: v21fx-breathe 5s ease-in-out infinite; }
/* Aurora Australis: green and violet ribbons, always moving */
.v21-fx-aurora > .v21-fx-l1 { background-image: linear-gradient(90deg, var(--fx1), var(--fx2) 25%, var(--fx3) 50%, var(--fx2) 75%, var(--fx1)); background-size: 300% 100%; animation: v21fx-flow 8s ease-in-out infinite alternate; }
.v21-fxs-round.v21-fx-aurora > .v21-fx-l1 { background-image: conic-gradient(var(--fx1), var(--fx2), var(--fx3), var(--fx2), var(--fx1)); background-size: auto; animation: v21fx-spin 10s linear infinite; }
.v21-fx-aurora > .v21-fx-l2::after, .v21-fx-aurora > .v21-fx-l3::before {
  background-image: linear-gradient(100deg, transparent 10%, color-mix(in srgb, var(--fx1) 70%, transparent) 30%, transparent 45%, color-mix(in srgb, var(--fx3) 60%, transparent) 65%, transparent 85%);
  background-size: 200% 100%;
  filter: blur(4px);
  opacity: .75;
  animation: v21fx-wave 6s ease-in-out infinite alternate, v21fx-flow 9s linear infinite;
}
.v21-fx-aurora > .v21-fx-l3::before { background-image: linear-gradient(80deg, transparent 20%, color-mix(in srgb, var(--fx2) 60%, transparent) 40%, transparent 55%, color-mix(in srgb, var(--fx1) 55%, transparent) 75%, transparent 90%); animation-duration: 4.6s, 12s; animation-direction: alternate-reverse, normal; }
.v21-fxs-round.v21-fx-aurora > .v21-fx-l2::after, .v21-fxs-round.v21-fx-aurora > .v21-fx-l3::before { border-radius: 50%; -webkit-mask: radial-gradient(closest-side, transparent 55%, #000 68%, transparent); mask: radial-gradient(closest-side, transparent 55%, #000 68%, transparent); animation: v21fx-spin 7s linear infinite, v21fx-hue 12s linear infinite; filter: blur(2px); }
.v21-fxs-round.v21-fx-aurora > .v21-fx-l3::before { animation-direction: reverse, normal; animation-duration: 11s, 12s; }
.v21-fxs-box.v21-fx-aurora > .v21-fx-l2::after, .v21-fxs-box.v21-fx-aurora > .v21-fx-l3::before { inset: 0 0 auto 0; height: 55%; opacity: .45; }
/* Black Opal: the play of colour shifting through every hue */
.v21-fx-opal > .v21-fx-l1 { background-image: conic-gradient(from 30deg, #1B2A6B, #3FD1C0, #7CFF8A, #FFE36B, #FF6FB5, #8A6BFF, #3FD1C0, #1B2A6B); animation: v21fx-hue 6s linear infinite; }
.v21-fxs-box.v21-fx-opal > .v21-fx-l1, .v21-fxs-pill.v21-fx-opal > .v21-fx-l1 { background-image: linear-gradient(100deg, #1B2A6B, #3FD1C0 18%, #7CFF8A 32%, #FFE36B 46%, #FF6FB5 62%, #8A6BFF 78%, #3FD1C0 90%, #1B2A6B); }
.v21-fxs-strip.v21-fx-opal > .v21-fx-l1 { background-image: linear-gradient(180deg, #1B2A6B, #3FD1C0 18%, #7CFF8A 32%, #FFE36B 46%, #FF6FB5 62%, #8A6BFF 78%, #1B2A6B); }
.v21-fx-opal > .v21-fx-l1::after { background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.85) 50%, transparent 62%); transform: translateX(-100%); animation: v21fx-sweep 4.2s cubic-bezier(.45,.05,.35,1) infinite; }
.v21-fxs-round.v21-fx-opal > .v21-fx-l1::after { background: conic-gradient(transparent 0 64%, rgba(255,255,255,.85) 72%, transparent 80%); transform: none; animation: v21fx-spin 4.2s linear infinite; }
.v21-fx-opal > .v21-fx-l2::before { box-shadow: 0 0 var(--fx-halo) 2px color-mix(in srgb, #3FD1C0 55%, transparent); animation: v21fx-hue 6s linear infinite; }
.v21-fxs-box.v21-fx-opal > .v21-fx-l2::before { box-shadow: inset 0 0 20px 2px color-mix(in srgb, #3FD1C0 45%, transparent); }
.v21-fx-opal > .v21-fx-l2::after, .v21-fx-opal > .v21-fx-l3::before {
  background-image: var(--fx-star), var(--fx-star), var(--fx-star);
  background-repeat: no-repeat; background-size: 10px 10px, 7px 7px, 8px 8px; background-position: 14% 12%, 90% 44%, 36% 94%;
  filter: drop-shadow(0 0 2px #FF6FB5) drop-shadow(0 0 3px #3FD1C0) drop-shadow(0 0 .5px rgba(20,30,50,.5));
  opacity: 0; animation: v21fx-twinkle 2.2s ease-in-out infinite, v21fx-hop3 6.6s steps(1) infinite;
}
.v21-fx-opal > .v21-fx-l3::before { background-position: 64% 4%, 6% 62%, 84% 88%; animation-delay: 1.1s, 1.1s; }
/* Milky Way: a slow swirl of stars */
.v21-fx-milkyway > .v21-fx-l1 { background-image: linear-gradient(100deg, var(--fx1), var(--fx2) 35%, var(--fx3) 50%, var(--fx2) 65%, var(--fx1)); background-size: 250% 100%; animation: v21fx-flow 10s linear infinite; }
.v21-fxs-round.v21-fx-milkyway > .v21-fx-l1 { background-image: conic-gradient(var(--fx1), var(--fx2), #FF8AD0, var(--fx3), var(--fx2), var(--fx1)); background-size: auto; animation: v21fx-spin 12s linear infinite; }
.v21-fx-milkyway > .v21-fx-l2::before { box-shadow: 0 0 var(--fx-halo) 2px color-mix(in srgb, var(--fx2) 60%, transparent); animation: v21fx-breathe 6s ease-in-out infinite; }
.v21-fxs-box.v21-fx-milkyway > .v21-fx-l2::before { box-shadow: inset 0 0 22px 3px color-mix(in srgb, var(--fx2) 45%, transparent); }
.v21-fx-milkyway > .v21-fx-l2::after {
  background-image: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--fx2) 55%, transparent), transparent 30%, color-mix(in srgb, #FF8AD0 45%, transparent), transparent 60%, color-mix(in srgb, var(--fx3) 50%, transparent), transparent);
  filter: blur(5px); opacity: .7; border-radius: 50%;
  animation: v21fx-spin 18s linear infinite;
}
.v21-fxs-round.v21-fx-milkyway > .v21-fx-l2::after { -webkit-mask: radial-gradient(closest-side, transparent 50%, #000 66%, transparent); mask: radial-gradient(closest-side, transparent 50%, #000 66%, transparent); }
.v21-fxs-box.v21-fx-milkyway > .v21-fx-l2::after, .v21-fxs-strip.v21-fx-milkyway > .v21-fx-l2::after { border-radius: inherit; background-image: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--fx2) 40%, transparent) 40%, color-mix(in srgb, #FF8AD0 30%, transparent) 55%, transparent 75%); background-size: 200% 100%; opacity: .5; animation: v21fx-flow 14s linear infinite; }
.v21-fx-milkyway > .v21-fx-l3::before, .v21-fx-milkyway > .v21-fx-l3::after {
  background-image: var(--fx-star), var(--fx-star), var(--fx-star), var(--fx-star);
  background-repeat: no-repeat; background-size: 6px 6px, 4px 4px, 5px 5px, 7px 7px; background-position: 10% 20%, 76% 8%, 92% 70%, 30% 88%;
  filter: drop-shadow(0 0 2px var(--fx3)) drop-shadow(0 0 .5px rgba(20,20,60,.6));
  opacity: 0; animation: v21fx-twinkle 2.6s ease-in-out infinite, v21fx-hop4 10.4s steps(1) infinite;
}
.v21-fx-milkyway > .v21-fx-l3::after { background-position: 50% 2%, 4% 56%, 64% 96%, 96% 30%; animation-delay: 1.3s, 1.3s; }
.v21-fxs-round.v21-fx-milkyway > .v21-fx-l3 { animation: v21fx-spin 24s linear infinite; }

.v21-fx-reefglow { --fx1: #045C6E; --fx2: #1FB7B0; --fx3: #C9FFF6; --fx4: #FFFFFF; --fxg: #3FD6CC; --fxs: #C9FFF6; }
.v21-fx-aurora { --fx1: #1FD17A; --fx2: #2BA3C9; --fx3: #B06BFF; --fx4: #E8FFF4; --fxg: #3FE39A; --fxs: #D8C2FF; }
.v21-fx-opal { --fx1: #1B2A6B; --fx2: #3FD1C0; --fx3: #FF6FB5; --fx4: #FFFFFF; --fxg: #3FD1C0; --fxs: #FFE36B; }
.v21-fx-milkyway { --fx1: #1A1240; --fx2: #6A4BD6; --fx3: #E9E4FF; --fx4: #FFFFFF; --fxg: #8A6BFF; --fxs: #E9E4FF; }

/* ---------- the fourth layer: what makes a legendary one more alive than the rest ---------- */
/* Platinum: a second set of glints. Supernova: a third wave. Starfall: a second, slower shower. Black Opal: a slow
   iridescent sheen. Milky Way: a second, fainter field of stars. Phoenix and Top End Storm: above. */
.v21-fx-platinum > .v21-fx-l4::before {
  background-image: var(--fx-star), var(--fx-star);
  background-repeat: no-repeat; background-size: 7px 7px, 10px 10px; background-position: 70% 6%, 24% 88%;
  filter: drop-shadow(0 0 2px var(--fxs)) drop-shadow(0 0 1px rgba(40,60,90,.55));
  opacity: 0; animation: v21fx-twinkle 3s ease-in-out .6s infinite;
}
.v21-fx-supernova > .v21-fx-l4::before {
  inset: calc(var(--fx-halo) - 1px); border: 1px solid var(--fx4); border-radius: inherit; opacity: 0;
  animation: v21fx-shock 2.6s cubic-bezier(.2,.6,.3,1) .65s infinite;
}
.v21-fxs-box.v21-fx-supernova > .v21-fx-l4::before, .v21-fxs-strip.v21-fx-supernova > .v21-fx-l4::before { inset: 0; border: 0; box-shadow: inset 0 0 14px 2px var(--fx-glow); animation-name: v21fx-pulsein; }
.v21-fx-starfall > .v21-fx-l4::after {
  background-image: radial-gradient(circle, #FFFFFF 0 .8px, var(--fxs) 1.2px, transparent 2.5px), radial-gradient(circle, #FFFFFF 0 .8px, var(--fxs) 1.2px, transparent 2.5px);
  background-size: 19px 47px, 31px 63px; background-position: 7px 0, 15px 20px;
  filter: drop-shadow(0 0 2px var(--fxs)); opacity: .55;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 45%, #000 85%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0, #000 45%, #000 85%, transparent 100%);
  animation: v21fx-fall2 4.4s linear infinite;
}
.v21-fx-opal > .v21-fx-l4::before { inset: var(--fx-halo); border-radius: inherit; background: conic-gradient(from 90deg, transparent, rgba(255,255,255,.35), transparent 40%); filter: blur(2px); animation: v21fx-spin 7s linear infinite reverse; }
.v21-fxs-box.v21-fx-opal > .v21-fx-l4::before, .v21-fxs-strip.v21-fx-opal > .v21-fx-l4::before { inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); background-size: 200% 100%; filter: none; animation: v21fx-flow 6s linear infinite; }
.v21-fx-milkyway > .v21-fx-l4::before {
  background-image: var(--fx-star), var(--fx-star), var(--fx-star);
  background-repeat: no-repeat; background-size: 3px 3px, 4px 4px, 3px 3px; background-position: 20% 44%, 82% 52%, 56% 20%;
  filter: drop-shadow(0 0 1px var(--fx3)); opacity: 0; animation: v21fx-twinkle 3.4s ease-in-out .5s infinite;
}

/* ---------- a line of words: the sending card's "Sent by" line ---------- */
/* The words keep the chip's own ink (the chip's contrast never changes); the sender's effect runs as an underline under
   their name, with a spark, a glint or an ember at its end. No layers: js\v21_sending.js rewrites the words as the card
   counts down, so everything here is the line's own ::before and ::after. */
.v21-fxn { position: relative; isolation: isolate; }
.v21-fxn::after {
  content: ""; position: absolute; left: 10px; right: 0; bottom: -3px; height: 2px; border-radius: 2px; pointer-events: none;
  background-image: linear-gradient(90deg, var(--fx1), var(--fx3) 25%, var(--fx2) 50%, var(--fx3) 75%, var(--fx1));
  background-size: 200% 100%;
  animation: v21fx-flow 3s linear infinite;
}
.v21-fxn.v21-fxt-epic::after, .v21-fxn.v21-fxt-legendary::after { height: 3px; bottom: -4px; }
.v21-fxn::before {
  content: ""; position: absolute; right: -10px; top: -7px; width: 10px; height: 10px; pointer-events: none;
  background: var(--fx-star) center / contain no-repeat;
  filter: drop-shadow(0 0 2px var(--fxg)) drop-shadow(0 0 .5px rgba(20,30,50,.5));
  opacity: 0; animation: v21fx-twinkle 2.2s ease-in-out infinite;
}
.v21-fxn.v21-fxt-common::before { display: none; }
.v21-fxn.v21-fxf-glow::after { background-image: linear-gradient(var(--fxg), var(--fxg)); box-shadow: 0 0 6px 1px var(--fxg); animation: v21fx-neon 5s linear infinite; }
.v21-fxn.v21-fxf-lightning::after { animation: v21fx-flow 1.2s linear infinite, v21fx-flash 2.3s steps(1) infinite; }
.v21-fxn.v21-fxf-fire::after { background-image: linear-gradient(90deg, var(--fx1), var(--fx2) 25%, var(--fx3) 50%, var(--fx2) 75%, var(--fx1)); animation: v21fx-flow 1.6s linear infinite, v21fx-flicker 1.2s ease-in-out infinite alternate; }
.v21-fxn.v21-fxf-fire::before {
  width: 12px; height: 14px; top: -11px;
  background: radial-gradient(circle, var(--fx4) 0 1px, var(--fx3) 1.5px, transparent 2.5px) 2px 8px / 6px 6px no-repeat, radial-gradient(circle, var(--fx4) 0 1px, var(--fx2) 1.5px, transparent 2.5px) 6px 2px / 6px 6px no-repeat;
  filter: drop-shadow(0 0 2px var(--fx2)); animation: v21fx-twinkle 1.6s ease-in-out infinite;
}
.v21-fx-opal.v21-fxn::after { background-image: linear-gradient(90deg, #1B2A6B, #3FD1C0, #7CFF8A, #FFE36B, #FF6FB5, #8A6BFF, #1B2A6B); animation: v21fx-flow 4s linear infinite, v21fx-hue 6s linear infinite; }
.v21-fxn:not(.v21-fx-run)::before, .v21-fxn:not(.v21-fx-run)::after { animation-play-state: paused !important; }
/* While a job is open the board behind it (faded by desk.css) and the header hold still: the job has the person's
   whole attention, and nothing moves round the edge of the email they are reading. */
body.job-open .v21-fx-l, body.job-open .v21-fx-l::before, body.job-open .v21-fx-l::after,
body.job-open .v21-fxn::before, body.job-open .v21-fxn::after { animation-play-state: paused !important; }
/* While a sheet is open (the Canteen, the Grove, Settings) the page behind it is inert (js\ui.js) and holds still too:
   its moving slots go to what is in the sheet, and the sheet's frosted glass is not redrawn every frame. */
#app-main[inert] .v21-fx-l, #app-main[inert] .v21-fx-l::before, #app-main[inert] .v21-fx-l::after,
#app-main[inert] .v21-fxn::before, #app-main[inert] .v21-fxn::after { animation-play-state: paused !important; }

/* ---------- the shapes the particles use ---------- */
.v21-fx, .v21-fxn {
  --fx-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0C10.9 6.6 13.4 9.1 20 10C13.4 10.9 10.9 13.4 10 20C9.1 13.4 6.6 10.9 0 10C6.6 9.1 9.1 6.6 10 0Z' fill='%23fff'/%3E%3C/svg%3E");
  --fx-hbolt1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 L9.3 6.4 L22.4 4.8 L35.2 16.8 L42 18.8 L54.8 19.5 L63.4 2.9 L76.5 4.3 L84.7 6.9 L95.4 18.3 L110.4 20 L120 12 M54.8 19.5 L60.8 14.5 L67.8 17.5' fill='none' stroke='%23fff' stroke-width='1.8' vector-effect='non-scaling-stroke' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  --fx-hbolt2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 L11.7 15.9 L27.9 8 L41.9 6.2 L50.5 18.2 L66.6 2.7 L79.4 16.6 L90.5 18.6 L106.5 20.1 L120 12 M50.5 18.2 L56.5 13.2 L63.5 16.2' fill='none' stroke='%23fff' stroke-width='1.8' vector-effect='non-scaling-stroke' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  --fx-rbolt1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M95.5 50 L95.1 61.1 L91.5 71.8 L86 81.9 L76.4 88.2 L67 94.8 L54.9 90.4 L44.7 93.9 L33 94.9 M7.5 50 L6.5 39.3 L10.1 29 L19.6 23.1 L26 15.2 L34.8 10 L44.2 2.5 L55.6 3.7 L64.8 10.9' fill='none' stroke='%23fff' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  --fx-rbolt2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M94.1 50 L93.7 60.8 L92.4 72.3 L83.1 79.3 L75.3 86.7 L66 92.3 L55.1 91.7 L44.6 94.3 L33.9 92.6 M3 50 L5.3 39 L13.8 31 L13.8 17.9 L22.6 10.3 L33.8 7.2 L44.5 4.9 L55 8.5 L64.4 12' fill='none' stroke='%23fff' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- where it shows: a colleague's card and the sending card are quieter than my own ---------- */
.v21-fxs-strip > .v21-fx-l2, .v21-fxs-strip > .v21-fx-l3 { opacity: .8; }
.v21-fxw-chip > .v21-fx-l2, .v21-fxw-chip > .v21-fx-l3, .v21-fxw-tag > .v21-fx-l2, .v21-fxw-tag > .v21-fx-l3 { opacity: .85; }
/* The legendary tier is bigger and more alive: its zone reaches further and its sparks are larger. */
/* (On a colleague's card the zone stays inside the card's first 72px, clear of the first words at 74px: the legendary
   zone is stronger across that width instead of wider.) */
.v21-fxs-strip.v21-fxt-legendary > .v21-fx-l2, .v21-fxs-strip.v21-fxt-legendary > .v21-fx-l3, .v21-fxs-strip.v21-fxt-legendary > .v21-fx-l4 {
  width: 72px; opacity: .95;
  -webkit-mask: linear-gradient(90deg, #000 0, #000 60%, transparent 100%);
  mask: linear-gradient(90deg, #000 0, #000 60%, transparent 100%);
}
.v21-fxs-strip.v21-fxt-legendary > .v21-fx-l1 { width: 6px; }

/* The crew strip: an avatar wearing an effect stands a little apart, so its halo and sparks never cross the next
   person's initials (the strip overlaps plain avatars by 8px). */
.crew .av.v21-fxs-round:not(:first-child), .crew .av.v21-fxs-round + .av { margin-left: 4px; }
.crew .av.v21-fxs-round.v21-fxt-epic:not(:first-child), .crew .av.v21-fxs-round.v21-fxt-legendary:not(:first-child) { margin-left: 10px; }
/* Settings: the chosen ring sits just outside an effect swatch's moving band (the tick shows it too). */
.v21-dc-sw[aria-checked="true"] .v21-dc-dot.v21-fx { box-shadow: 0 0 0 6px var(--solid), 0 0 0 8px var(--brand-text); }
/* Phone width: the holder chip's words are cut to one line (desk.css), but its effect layers are not words. */
@media (max-width: 599px) {
  .card .holder > span.v21-fx-l:not(.av):not(.amb) { overflow: visible; min-width: 0; white-space: normal; text-overflow: clip; }
}

/* ======================================================================= the motions */

@keyframes v21fx-sweep { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
@keyframes v21fx-sweepy { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }
@keyframes v21fx-spin { to { transform: rotate(360deg); } }
@keyframes v21fx-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes v21fx-swell { 0%, 100% { transform: scale(.96); } 50% { transform: scale(1.05); } }
@keyframes v21fx-neon { 0%, 17%, 21.5%, 26%, 52%, 57%, 100% { opacity: 1; } 18%, 25% { opacity: .35; } 20% { opacity: .8; } 54% { opacity: .5; } }
@keyframes v21fx-trade { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes v21fx-shock { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes v21fx-pulsein { 0% { opacity: 0; } 20% { opacity: .9; } 100% { opacity: 0; } }
@keyframes v21fx-flow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes v21fx-flowy { 0% { background-position: 50% 0%; } 100% { background-position: 50% 200%; } }
@keyframes v21fx-flowup { 0% { background-position: 50% 200%; } 100% { background-position: 50% 0%; } }
@keyframes v21fx-twinkle { 0%, 100% { opacity: 0; } 45%, 55% { opacity: 1; } }
@keyframes v21fx-blink { 0%, 100% { opacity: .15; } 30% { opacity: 1; } 55% { opacity: .35; } 75% { opacity: .9; } }
@keyframes v21fx-drift { 0% { transform: translate(0, 0); } 33% { transform: translate(3px, -4px); } 66% { transform: translate(-3px, -2px); } 100% { transform: translate(2px, 3px); } }
@keyframes v21fx-prism { to { filter: drop-shadow(0 0 1.5px var(--fxs)) drop-shadow(0 0 3px var(--fxs)) drop-shadow(0 0 .5px rgba(20,30,50,.5)) hue-rotate(360deg); } }
@keyframes v21fx-hop3 { 0% { background-position: 12% 14%, 86% 30%, 60% 92%; } 33.33% { background-position: 88% 10%, 8% 58%, 44% 96%; } 66.66% { background-position: 50% 2%, 94% 74%, 10% 84%; } }
@keyframes v21fx-hop4 { 0% { background-position: 8% 10%, 64% 2%, 94% 58%, 28% 96%; } 25% { background-position: 40% 0%, 2% 48%, 78% 94%, 97% 18%; } 50% { background-position: 86% 8%, 18% 84%, 56% 98%, 3% 30%; } 75% { background-position: 22% 2%, 96% 40%, 70% 92%, 6% 70%; } }
@keyframes v21fx-hopstrip { 0% { background-position: 4% 12%, 30% 40%, 10% 70%, 22% 92%; } 25% { background-position: 18% 4%, 6% 50%, 34% 78%, 8% 30%; } 50% { background-position: 8% 60%, 26% 20%, 4% 94%, 40% 64%; } 75% { background-position: 30% 8%, 12% 36%, 24% 56%, 6% 86%; } }
@keyframes v21fx-crackle { 0%, 100% { opacity: 0; } 2% { opacity: 1; } 4% { opacity: .15; } 6% { opacity: 1; } 10% { opacity: 0; } 46% { opacity: 0; } 48% { opacity: .9; } 50% { opacity: 0; } 52% { opacity: 1; } 56% { opacity: 0; } }
@keyframes v21fx-jumpr { 0% { transform: rotate(0deg); } 33.33% { transform: rotate(130deg); } 66.66% { transform: rotate(245deg); } }
@keyframes v21fx-jumpx { 0% { transform: translateX(8%); } 33.33% { transform: translateX(170%); } 66.66% { transform: translateX(84%); } }
@keyframes v21fx-jumpy { 0% { transform: translateY(0); } 33.33% { transform: translateY(260%); } 66.66% { transform: translateY(120%); } }
@keyframes v21fx-flash { 0%, 100% { filter: brightness(1); } 2%, 6%, 48%, 52% { filter: brightness(1.9) saturate(.6); } 3%, 7%, 49%, 53% { filter: brightness(1); } }
@keyframes v21fx-glowflash { 0%, 100% { opacity: .3; } 2%, 6%, 48%, 52% { opacity: 1; } 3%, 7%, 49%, 53% { opacity: .35; } }
@keyframes v21fx-strikeflash { 0%, 100% { opacity: 0; } 2% { opacity: .85; } 3% { opacity: .1; } 4% { opacity: .6; } 6% { opacity: 0; } }
@keyframes v21fx-strobe { 0%, 100% { filter: none; } 2% { filter: brightness(1.8); } 3% { filter: none; } }
@keyframes v21fx-sparkfly { 0%, 100% { opacity: 0; transform: scale(.7); } 3% { opacity: 1; transform: scale(.8); } 20% { opacity: 0; transform: scale(1.25); } 48% { opacity: 0; transform: scale(.7); } 50% { opacity: 1; transform: scale(.8); } 66% { opacity: 0; transform: scale(1.25); } }
@keyframes v21fx-flicker { 0% { opacity: .82; } 35% { opacity: 1; } 60% { opacity: .9; } 100% { opacity: 1; } }
@keyframes v21fx-lick { 0% { transform: scaleY(.72) translateX(0); } 40% { transform: scaleY(1.08) translateX(1px); } 70% { transform: scaleY(.9) translateX(-1px); } 100% { transform: scaleY(1.16) translateX(1px); } }
@keyframes v21fx-lickx { 0% { transform: scaleX(.7) translateY(0); } 40% { transform: scaleX(1.1) translateY(1px); } 70% { transform: scaleX(.9) translateY(-1px); } 100% { transform: scaleX(1.18) translateY(1px); } }
@keyframes v21fx-embers { 0% { background-position: 5px 0, 22px 10px, 40px 30px; } 100% { background-position: 5px -159px, 22px -203px, 40px -153px; } }
@keyframes v21fx-embers2 { 0% { background-position: 12px 5px, 30px 0, 3px 20px; } 100% { background-position: 12px -136px, 30px -177px, 3px -109px; } }
@keyframes v21fx-embers-s { 0% { background-position: 1px 0, 6px 4px, 10px 9px; } 100% { background-position: 1px -62px, 6px -78px, 10px -65px; } }
@keyframes v21fx-embers-b { 0% { background-position: 11px 0, 64px 21px, 130px 8px, 25px 30px, 201px 12px, 90px 36px, 290px 5px, 170px 50px, 110px 19px; } 100% { background-position: 11px -141px, 64px -156px, 393px -151px, 25px -93px, 201px -122px, 90px -93px, -141px -178px, 170px -92px, 110px -129px; } }
/* a chip's flame rows drift sideways by two of its 56px tiles, so the loop never jumps */
@keyframes v21fx-fdrift { 0% { background-position: 0 0; } 100% { background-position: 112px 0; } }
/* each tongue of a flame row rises and falls on its own while the row drifts one whole tile (184px, 134px). The tile is
   10px taller than the row and sits 10px up, so its top edge (where a browser can bleed the bright base of a tongue
   through at a fraction of a pixel) is always above the row, out of sight. */
@keyframes v21fx-fire-a {
  0% { background-position: 0 -9px, 0 -7px, 0 -4px, 0 -8px, 0 -8px, 0 -5px, 0 -6px; }
  10% { background-position: 18.4px -8px, 18.4px -4px, 18.4px -10px, 18.4px -4px, 18.4px -8px, 18.4px -10px, 18.4px -3px; }
  20% { background-position: 36.8px -4px, 36.8px -5px, 36.8px -3px, 36.8px -7px, 36.8px -8px, 36.8px -5px, 36.8px -8px; }
  30% { background-position: 55.2px -4px, 55.2px -9px, 55.2px -5px, 55.2px -7px, 55.2px -4px, 55.2px -3px, 55.2px -8px; }
  40% { background-position: 73.6px -5px, 73.6px -9px, 73.6px -4px, 73.6px -10px, 73.6px -8px, 73.6px -5px, 73.6px -3px; }
  50% { background-position: 92px -5px, 92px -5px, 92px -10px, 92px -8px, 92px -10px, 92px -6px, 92px -4px; }
  60% { background-position: 110.4px -10px, 110.4px -8px, 110.4px -7px, 110.4px -8px, 110.4px -10px, 110.4px -7px, 110.4px -4px; }
  70% { background-position: 128.8px -7px, 128.8px -3px, 128.8px -9px, 128.8px -10px, 128.8px -8px, 128.8px -7px, 128.8px -7px; }
  80% { background-position: 147.2px -7px, 147.2px -8px, 147.2px -10px, 147.2px -5px, 147.2px -4px, 147.2px -4px, 147.2px -9px; }
  90% { background-position: 165.6px -5px, 165.6px -3px, 165.6px -4px, 165.6px -5px, 165.6px -6px, 165.6px -6px, 165.6px -4px; }
  100% { background-position: 184px -9px, 184px -7px, 184px -4px, 184px -8px, 184px -8px, 184px -5px, 184px -6px; }
}
@keyframes v21fx-fire-b {
  0% { background-position: 0 -7px, 0 -7px, 0 -7px, 0 -4px, 0 -10px; }
  10% { background-position: 13.4px -8px, 13.4px -7px, 13.4px -5px, 13.4px -7px, 13.4px -6px; }
  20% { background-position: 26.8px -9px, 26.8px -5px, 26.8px -7px, 26.8px -9px, 26.8px -5px; }
  30% { background-position: 40.2px -7px, 40.2px -7px, 40.2px -4px, 40.2px -10px, 40.2px -10px; }
  40% { background-position: 53.6px -5px, 53.6px -4px, 53.6px -10px, 53.6px -10px, 53.6px -5px; }
  50% { background-position: 67px -6px, 67px -6px, 67px -4px, 67px -7px, 67px -8px; }
  60% { background-position: 80.4px -7px, 80.4px -8px, 80.4px -4px, 80.4px -9px, 80.4px -5px; }
  70% { background-position: 93.8px -8px, 93.8px -9px, 93.8px -8px, 93.8px -9px, 93.8px -6px; }
  80% { background-position: 107.2px -5px, 107.2px -8px, 107.2px -9px, 107.2px -9px, 107.2px -4px; }
  90% { background-position: 120.6px -5px, 120.6px -10px, 120.6px -10px, 120.6px -5px, 120.6px -8px; }
  100% { background-position: 134px -7px, 134px -7px, 134px -7px, 134px -4px, 134px -10px; }
}
@keyframes v21fx-jumpglyph { 0% { transform: translate(0, 0); } 33.33% { transform: translate(12%, -210%); } 66.66% { transform: translate(-6%, -110%); } }
/* each layer falls a whole number of its own tiles, so the shower never jumps (and the three fall at different speeds) */
@keyframes v21fx-fall { 0% { background-position: 3px 0, 11px 9px, 19px 21px; } 100% { background-position: 3px 124px, 11px 181px, 19px 169px; } }
@keyframes v21fx-fall2 { 0% { background-position: 7px 0, 15px 20px; } 100% { background-position: 7px 94px, 15px 146px; } }
@keyframes v21fx-shimmer { 0% { transform: skewX(-6deg) scaleY(.9); opacity: .55; } 50% { transform: skewX(5deg) scaleY(1.06); opacity: .9; } 100% { transform: skewX(-3deg) scaleY(.96); opacity: .7; } }
@keyframes v21fx-shimmerx { 0% { transform: skewY(-6deg) scaleX(.9); opacity: .55; } 50% { transform: skewY(5deg) scaleX(1.06); opacity: .9; } 100% { transform: skewY(-3deg) scaleX(.96); opacity: .7; } }
@keyframes v21fx-hue { to { filter: hue-rotate(360deg); } }
@keyframes v21fx-wave { 0% { transform: translateX(-4%) scaleY(.85); } 50% { transform: translateX(3%) scaleY(1.1); } 100% { transform: translateX(-2%) scaleY(.95); } }
@keyframes v21fx-caustic { 0% { background-position: 0 0; } 100% { background-position: 46px 30px; } }

/* ======================================================================= how many move at once */
/* js\v21_colours_fx.js marks the hosts on screen, up to its cap, with .v21-fx-run; the rest hold where they are. */
.v21-fx:not(.v21-fx-run) > .v21-fx-l,
.v21-fx:not(.v21-fx-run) > .v21-fx-l::before,
.v21-fx:not(.v21-fx-run) > .v21-fx-l::after { animation-play-state: paused !important; }

/* ======================================================================= still: the plain colour shows */
/* Reduced motion, Calm, the quiet states (a welfare message open, the quiet period, the nobody band), the days that
   matter, High contrast, forced colours and print: every layer goes, so the palette's plain colour (the avatar's disc,
   the holder's edge and tint, my card's ring) is all that shows, and nothing moves. */
:root[data-motion="reduced"] .v21-fx-l,
:root[data-calm="on"] .v21-fx-l,
:root[data-quiet="on"] .v21-fx-l,
:root[data-v21-welfare="on"] .v21-fx-l,
:root[data-day-matters] .v21-fx-l,
:root[data-theme="high_contrast"] .v21-fx-l { display: none !important; }
:root[data-motion="reduced"] .v21-fxn::before, :root[data-motion="reduced"] .v21-fxn::after,
:root[data-calm="on"] .v21-fxn::before, :root[data-calm="on"] .v21-fxn::after,
:root[data-quiet="on"] .v21-fxn::before, :root[data-quiet="on"] .v21-fxn::after,
:root[data-day-matters] .v21-fxn::before, :root[data-day-matters] .v21-fxn::after,
:root[data-theme="high_contrast"] .v21-fxn::before, :root[data-theme="high_contrast"] .v21-fxn::after { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .v21-fx-l { display: none !important; }
  :root:not([data-motion="full"]) .v21-fxn::before, :root:not([data-motion="full"]) .v21-fxn::after { display: none !important; }
}
@media (forced-colors: active) { .v21-fx-l { display: none !important; } }
@media (forced-colors: active) { .v21-fxn::before, .v21-fxn::after { display: none !important; } }
@media print { .v21-fx-l { display: none !important; } }
@media print { .v21-fxn::before, .v21-fxn::after { display: none !important; } }
/* The avatar's thin gap comes back with its plain colour when the ring goes. */
:root[data-motion="reduced"] .av.v21-fxs-round, :root[data-calm="on"] .av.v21-fxs-round, :root[data-quiet="on"] .av.v21-fxs-round,
:root[data-day-matters] .av.v21-fxs-round, :root[data-theme="high_contrast"] .av.v21-fxs-round { box-shadow: 0 0 0 2px var(--solid); }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="full"]) .av.v21-fxs-round { box-shadow: 0 0 0 2px var(--solid); } }

/* ======================================================================= never here */
/* A job screen (its email paper and everything on it), a welfare message, the Leaving card and anything that leaves
   the desk never carry an effect, whatever put the class there. */
#job-layer .v21-fx-l, .job-layer .v21-fx-l,
.paper .v21-fx-l, .v21t-paper .v21-fx-l, .v21h-paper .v21-fx-l, .tq-paper .v21-fx-l,
#wf-layer .v21-fx-l, #wf-slot .v21-fx-l, .wf-over .v21-fx-l, .wf-band .v21-fx-l, .band-welfare .v21-fx-l,
#leave-root .v21-fx-l, .leaving .v21-fx-l,
#job-layer .v21-fxn::before, #job-layer .v21-fxn::after, .paper .v21-fxn::before, .paper .v21-fxn::after,
#wf-layer .v21-fxn::before, #wf-layer .v21-fxn::after, #leave-root .v21-fxn::before, #leave-root .v21-fxn::after { display: none !important; }
