/*
 * TAG Legal Desk v2.1, J122 (28 Sep 2026): each other's pointers. js\v21_cursors.js draws them in #v21-cur-layer.
 * A crisp arrow in the person's chosen colour with their first name in a small tag of the same colour. An effect
 * colour (J121) shows its own look on both: metallics sweep a light across, glows breathe and flicker like neon,
 * sparks twinkle, lightning crackles and flashes, fire licks up in flames and the specials turn through their colours;
 * as the pointer moves it leaves a short trail of the same stuff (js\v21_cursors.js places the trail pieces).
 * Custom properties, set through the CSSOM and never a style attribute (the page's policy):
 *   --v21cur-c        the person's colour (the palette's light, dark or hc value through --v21-dc-<id>, or the
 *                     server's colour token); the tag's words sit on it in --p-ink, the pairing the palette tests prove
 *   --v21cur-1, 2, 3  an effect's deep, middle and bright colours (the plain colour three times for a solid colour)
 *   --tp-c, --tp-dx, --tp-dy, --tp-r   one trail piece: its colour, where it drifts and its angle
 * Layering: z-index 44 inside #app-main, over the board (2) and an open job (30), and under the minute's silence scrim
 * (45), the job's welfare band (46), the board's welfare band (48), the practice band (49), the header (50), the
 * Leaving card (55), the welfare view (60), sheets (80, 81), pops (90) and toasts (95).
 * Still (plain colour, nothing moving, no trail): reduced motion (the desk setting or the computer's), Calm, High
 * contrast and forced colours. Hidden altogether: the quiet states (data-quiet: a welfare message open, the quiet
 * period, the nobody band), Calm, the days that matter and print. The script hides them too; this is the second lock.
 * Only transform, opacity and background position move.
 * J125 (28 Sep 2026): the bumps, in the same layer. A spark burst (.v21cur-burst) sits where two pointers touched: a
 * flash and up to eleven pieces flying out, each piece in one of the two people's colours and of its effect's kind
 * (streaks for a plain colour, glints for metal, twinkles for sparks, zaps for lightning, embers for fire, neon for
 * glows, dots for the specials), all gone within 700 ms. A ring (.v21cur-bumpmark) opens out at your own pointer when
 * it was in the bump. The knock itself is the script's (a transform on the pointer). Custom properties per piece:
 *   --sp-c, --sp-c2   its colour (the flash mixes both people's)
 *   --sp-dx, --sp-dy  where it flies, --sp-r its heading, --sp-d a small delay
 * Reduced motion: no burst at all, and the ring (then only where they touched) stands still for a moment.
 */

/* ======================================================================= the layer */

.v21cur-layer { position: fixed; inset: 0; z-index: 44; pointer-events: none; overflow: hidden; contain: strict; }
.v21cur-layer[hidden] { display: none !important; }
.v21cur-layer, .v21cur-layer * { pointer-events: none !important; -webkit-user-select: none; user-select: none; }

/* ======================================================================= one pointer */

.v21cur {
  --v21cur-c: var(--brand, #40624E);
  --v21cur-1: var(--v21cur-c);
  --v21cur-2: var(--v21cur-c);
  --v21cur-3: var(--v21cur-c);
  --v21cur-edge: var(--solid, #FFFFFF);
  --v21cur-dur: 3.4s;
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  opacity: 1;
  will-change: transform, opacity;
  transition: opacity 240ms cubic-bezier(.2, .8, .2, 1);
}
.v21cur-off { opacity: 0; transition-duration: 140ms; }
/* Eight seconds with no movement: it fades away slowly, and comes back at once when the hand moves again. */
.v21cur-still { opacity: 0; transition-duration: 1400ms; transition-timing-function: ease-in; }
.v21cur-gone { opacity: 0; transition-duration: 380ms; }
/* A pointer nobody can see (still, off this screen or going) keeps no effect running: nothing repaints for nothing. */
.v21cur-still *, .v21cur-still *::before, .v21cur-still *::after,
.v21cur-off *, .v21cur-off *::before, .v21cur-off *::after,
.v21cur-gone *, .v21cur-gone *::before, .v21cur-gone *::after { animation-play-state: paused !important; }

.v21cur-body { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; animation: v21cur-in 320ms cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes v21cur-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }

/* ---------- the arrow: its tip is the point, at (4, 2) in its 24 by 24 box ---------- */
.v21cur-svg {
  position: absolute; left: -4px; top: -2px; width: 24px; height: 24px; display: block; overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .32)) drop-shadow(0 3px 7px color-mix(in srgb, var(--v21cur-c) 40%, transparent));
}
.v21cur-fill { stroke: var(--v21cur-edge); stroke-width: 2.2px; stroke-linejoin: round; paint-order: stroke fill; }
/* The plain colour at every time but while an effect moves (then the path's own gradient fill shows). */
.v21cur:not(.v21cur-live) .v21cur-fill { fill: var(--v21cur-c); }
.v21cur-s1 { stop-color: var(--v21cur-1); }
.v21cur-s2 { stop-color: var(--v21cur-2); }
.v21cur-s3 { stop-color: var(--v21cur-3); }

/* The light that sweeps across a metal arrow, cut to the arrow's own outline. */
.v21cur-sheen {
  display: none; position: absolute; left: -4px; top: -2px; width: 24px; height: 24px;
  -webkit-clip-path: path('M3.5 2.2L3.5 18.6C3.5 19.4 4.4 19.8 5 19.3L8.7 15.9L11.3 21.6C11.6 22.2 12.3 22.5 12.9 22.2L14.6 21.4C15.2 21.1 15.5 20.4 15.2 19.8L12.7 14.2L17.6 14.2C18.5 14.2 18.9 13.1 18.3 12.5L5.3 1.4C4.6 0.8 3.5 1.3 3.5 2.2Z');
  clip-path: path('M3.5 2.2L3.5 18.6C3.5 19.4 4.4 19.8 5 19.3L8.7 15.9L11.3 21.6C11.6 22.2 12.3 22.5 12.9 22.2L14.6 21.4C15.2 21.1 15.5 20.4 15.2 19.8L12.7 14.2L17.6 14.2C18.5 14.2 18.9 13.1 18.3 12.5L5.3 1.4C4.6 0.8 3.5 1.3 3.5 2.2Z');
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, .92) 50%, transparent 62% 100%) no-repeat;
  background-size: 300% 100%;
  background-position: 120% 0;
}

/* A soft glow behind the arrow (glows, sparks, lightning, fire and the specials). */
.v21cur-halo {
  display: none; position: absolute; left: -12px; top: -8px; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--v21cur-3) 72%, transparent) 0, color-mix(in srgb, var(--v21cur-2) 34%, transparent) 38%, transparent 70%);
  opacity: .7;
}

/* ---------- the name tag: the first name, below and right of the tip (left of it near the right edge) ---------- */
.v21cur-tagw { position: absolute; left: 14px; top: 20px; display: block; }
.v21cur-flip .v21cur-tagw { left: auto; right: 4px; }
.v21cur-tag {
  position: relative; display: block; max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--v21cur-edge);
  background: var(--v21cur-c); color: var(--p-ink, #FFFFFF);
  font-size: .75rem; font-weight: 700; line-height: 1.25; letter-spacing: .01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .20), 0 4px 12px color-mix(in srgb, var(--v21cur-c) 32%, transparent);
}
.v21cur-glow { display: none; position: absolute; inset: 0; border-radius: 999px; }

/* ---------- a click: a ring that opens out from the tip ---------- */
.v21cur-pulse {
  position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--v21cur-c); box-shadow: 0 0 0 1px var(--v21cur-edge);
  opacity: 0; animation: v21cur-ripple 560ms cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes v21cur-ripple { 0% { opacity: .95; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.9); } }

/* ======================================================================= effect colours (J121), while they move */

.v21cur-t-common { --v21cur-dur: 4.2s; }
.v21cur-t-rare { --v21cur-dur: 3.4s; }
.v21cur-t-epic { --v21cur-dur: 2.8s; }
.v21cur-t-legendary { --v21cur-dur: 2.2s; }

/* Every effect: the tag wears a ring of the effect's colours that flows round it. */
.v21cur-live .v21cur-tag {
  border-color: transparent;
  background:
    linear-gradient(var(--v21cur-c), var(--v21cur-c)) padding-box,
    linear-gradient(90deg, var(--v21cur-1), var(--v21cur-3), var(--v21cur-2), var(--v21cur-3), var(--v21cur-1)) border-box;
  background-size: 100% 100%, 200% 100%;
  animation: v21cur-flow var(--v21cur-dur) linear infinite;
}
.v21cur-live.v21cur-t-epic .v21cur-tag, .v21cur-live.v21cur-t-legendary .v21cur-tag { border-width: 2px; }
.v21cur-live.v21cur-t-legendary .v21cur-halo { left: -17px; top: -13px; width: 44px; height: 44px; }
@keyframes v21cur-flow { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, 200% 0; } }

/* ---------- metallics: brushed metal, and a light sweeping across the arrow and the tag ---------- */
.v21cur-live.v21cur-f-metallic .v21cur-sheen { display: block; animation: v21cur-sweep var(--v21cur-dur) cubic-bezier(.45, .05, .35, 1) infinite; }
.v21cur-live.v21cur-f-metallic .v21cur-tag::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, transparent 0 40%, rgba(255, 255, 255, .40) 50%, transparent 60% 100%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0;
  animation: v21cur-sweep var(--v21cur-dur) cubic-bezier(.45, .05, .35, 1) infinite; animation-delay: .18s;
}
@keyframes v21cur-sweep { 0% { background-position: 120% 0; } 45%, 100% { background-position: -20% 0; } }

/* ---------- glows: a halo that breathes, and neon that flickers now and then ---------- */
.v21cur-live.v21cur-f-glow .v21cur-svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)) drop-shadow(0 0 5px color-mix(in srgb, var(--v21cur-3) 80%, transparent)); }
.v21cur-live.v21cur-f-glow .v21cur-halo { display: block; animation: v21cur-breathe 2.6s ease-in-out infinite; }
.v21cur-live.v21cur-f-glow .v21cur-glow {
  display: block; animation: v21cur-breathe 2.6s ease-in-out infinite;
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--v21cur-3) 75%, transparent), 0 0 20px 4px color-mix(in srgb, var(--v21cur-2) 38%, transparent);
}
.v21cur-live.v21cur-f-glow:not(.v21cur-e-halo) .v21cur-halo,
.v21cur-live.v21cur-f-glow:not(.v21cur-e-halo) .v21cur-glow { animation: v21cur-neon 3.8s steps(1, end) infinite; }
@keyframes v21cur-breathe { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes v21cur-neon { 0%, 61%, 100% { opacity: .95; } 62% { opacity: .25; } 64% { opacity: .9; } 66% { opacity: .35; } 68% { opacity: 1; } }

/* ---------- sparks and sparkles: points of light that twinkle at the tag's corners ---------- */
.v21cur-live.v21cur-f-sparks .v21cur-halo { display: block; opacity: .5; }
.v21cur-live.v21cur-f-sparks .v21cur-tagw::before,
.v21cur-live.v21cur-f-sparks .v21cur-tagw::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  background: radial-gradient(circle, #FFFFFF 0 22%, var(--v21cur-3) 42%, transparent 72%);
  -webkit-clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0; animation: v21cur-twinkle 1.9s ease-in-out infinite;
}
.v21cur-live.v21cur-f-sparks .v21cur-tagw::before { left: -5px; top: -6px; }
.v21cur-live.v21cur-f-sparks .v21cur-tagw::after { right: -5px; bottom: -5px; animation-delay: .95s; }
@keyframes v21cur-twinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1.15) rotate(45deg); } 70% { opacity: .2; transform: scale(.6) rotate(70deg); } }

/* ---------- lightning: a crackling glow, and a small bolt that flashes off the tag ---------- */
.v21cur-live.v21cur-f-lightning .v21cur-halo { display: block; animation: v21cur-flash 2.4s steps(1, end) infinite; }
.v21cur-live.v21cur-f-lightning .v21cur-glow { display: block; box-shadow: 0 0 8px 2px color-mix(in srgb, var(--v21cur-3) 85%, transparent); animation: v21cur-flash 2.4s steps(1, end) infinite; animation-delay: .1s; }
.v21cur-live.v21cur-f-lightning .v21cur-tagw::after {
  content: ""; position: absolute; right: -8px; top: -10px; width: 10px; height: 15px;
  background: linear-gradient(180deg, #FFFFFF, var(--v21cur-3));
  -webkit-clip-path: polygon(55% 0, 10% 55%, 45% 55%, 25% 100%, 90% 38%, 55% 38%, 80% 0);
  clip-path: polygon(55% 0, 10% 55%, 45% 55%, 25% 100%, 90% 38%, 55% 38%, 80% 0);
  opacity: 0; animation: v21cur-bolt 2.4s steps(1, end) infinite;
}
@keyframes v21cur-flash { 0%, 18%, 60%, 100% { opacity: .35; } 8% { opacity: 1; } 10% { opacity: .3; } 13% { opacity: .95; } 55% { opacity: .4; } 57% { opacity: .9; } }
@keyframes v21cur-bolt { 0%, 11%, 17%, 100% { opacity: 0; } 8% { opacity: 1; } 13% { opacity: 1; } }

/* ---------- fire and flames: three flames licking up behind the tag, a warm flicker round it and the arrow ---------- */
.v21cur-live.v21cur-f-fire .v21cur-halo {
  display: block; animation: v21cur-heat 1.3s ease-in-out infinite alternate;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--v21cur-3) 75%, transparent) 0, color-mix(in srgb, var(--v21cur-2) 45%, transparent) 36%, transparent 70%);
}
.v21cur-live.v21cur-f-fire .v21cur-glow { display: block; box-shadow: 0 0 10px 2px color-mix(in srgb, var(--v21cur-3) 55%, transparent); animation: v21cur-warm 1.1s ease-in-out infinite alternate; }
.v21cur-live.v21cur-f-fire .v21cur-tagw::before,
.v21cur-live.v21cur-f-fire .v21cur-tagw::after,
.v21cur-live.v21cur-f-fire .v21cur-glow::before {
  content: ""; position: absolute; z-index: -1; bottom: calc(100% - 7px); width: 11px; height: 17px;
  -webkit-clip-path: polygon(50% 0, 64% 22%, 86% 46%, 100% 70%, 88% 92%, 50% 100%, 12% 92%, 0 70%, 14% 46%, 36% 22%);
  clip-path: polygon(50% 0, 64% 22%, 86% 46%, 100% 70%, 88% 92%, 50% 100%, 12% 92%, 0 70%, 14% 46%, 36% 22%);
  background: radial-gradient(ellipse 60% 58% at 50% 78%, #FFF7D1 0, var(--v21cur-3) 30%, var(--v21cur-2) 62%, transparent 100%);
  transform-origin: 50% 100%; animation: v21cur-flame .8s ease-in-out infinite alternate;
}
.v21cur-live.v21cur-f-fire .v21cur-tagw::before { left: 12%; }
.v21cur-live.v21cur-f-fire .v21cur-glow::before { left: 38%; width: 12px; height: 21px; animation-duration: .95s; animation-delay: .3s; }
.v21cur-live.v21cur-f-fire .v21cur-tagw::after { left: 64%; width: 9px; height: 14px; animation-duration: .65s; animation-delay: .15s; }
.v21cur-live.v21cur-f-fire.v21cur-t-legendary .v21cur-glow::before { height: 25px; width: 14px; }
@keyframes v21cur-flame { 0% { transform: scale(1.06, .72) skewX(-5deg); opacity: .78; } 50% { transform: scale(.9, 1.12) skewX(4deg); opacity: 1; } 100% { transform: scale(1, .86) skewX(-2deg); opacity: .88; } }
@keyframes v21cur-heat { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.08); } }
@keyframes v21cur-warm { from { opacity: .6; } to { opacity: 1; } }

/* ---------- specials: the effect's colours turning slowly behind the arrow ---------- */
.v21cur-live.v21cur-f-special .v21cur-halo {
  display: block; opacity: .8; animation: v21cur-spin 6s linear infinite;
  background: conic-gradient(from 0deg, var(--v21cur-1), var(--v21cur-2), var(--v21cur-3), var(--v21cur-1));
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 34%, transparent 68%);
  mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 34%, transparent 68%);
}
.v21cur-live.v21cur-f-special .v21cur-glow { display: block; box-shadow: 0 0 10px 1px color-mix(in srgb, var(--v21cur-2) 60%, transparent); animation: v21cur-breathe 3.4s ease-in-out infinite; }
@keyframes v21cur-spin { to { transform: rotate(360deg); } }

/* ======================================================================= the trail */

.v21cur-tp { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.v21cur-tp > i {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tp-c, #FFFFFF); opacity: 0;
  animation: v21cur-tp-drift 800ms cubic-bezier(.2, .8, .2, 1) forwards;
}
.v21cur-tp-big > i { left: -4px; top: -4px; width: 8px; height: 8px; }
@keyframes v21cur-tp-drift { 0% { opacity: .95; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--tp-dx), var(--tp-dy)) scale(.25); } }

.v21cur-tp-sparks > i, .v21cur-tp-metallic > i {
  left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 0;
  background: radial-gradient(circle, #FFFFFF 0 20%, var(--tp-c, #FFFFFF) 42%, transparent 72%);
  -webkit-clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation-name: v21cur-tp-twinkle; animation-duration: 900ms;
}
.v21cur-tp-big.v21cur-tp-sparks > i, .v21cur-tp-big.v21cur-tp-metallic > i { left: -6px; top: -6px; width: 12px; height: 12px; }
@keyframes v21cur-tp-twinkle {
  0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0deg); }
  25% { opacity: 1; transform: translate(calc(var(--tp-dx) * .3), calc(var(--tp-dy) * .3)) scale(1.1) rotate(30deg); }
  100% { opacity: 0; transform: translate(var(--tp-dx), var(--tp-dy)) scale(.2) rotate(90deg); }
}

.v21cur-tp-fire > i {
  left: -4px; top: -4px; width: 8px; height: 8px;
  background: radial-gradient(circle, #FFE08A 0 26%, var(--tp-c, #FF7A1A) 56%, transparent 76%);
  box-shadow: 0 0 4px 1px color-mix(in srgb, var(--tp-c, #FF7A1A) 55%, transparent);
  animation-name: v21cur-tp-rise; animation-duration: 950ms;
}
.v21cur-tp-big.v21cur-tp-fire > i { left: -5px; top: -5px; width: 10px; height: 10px; }
@keyframes v21cur-tp-rise { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 60% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--tp-dx), var(--tp-dy)) scale(.3); } }

.v21cur-tp-lightning > i {
  left: -6px; top: -1px; width: 12px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--tp-c, #9BD4FF), #FFFFFF, var(--tp-c, #9BD4FF), transparent);
  rotate: var(--tp-r, 0deg);
  animation-name: v21cur-tp-zap; animation-duration: 420ms; animation-timing-function: steps(4, end);
}
.v21cur-tp-big.v21cur-tp-lightning > i { left: -8px; width: 16px; }
@keyframes v21cur-tp-zap { 0% { opacity: 1; transform: translate(0, 0) scaleX(1); } 50% { opacity: .2; } 75% { opacity: .9; } 100% { opacity: 0; transform: translate(calc(var(--tp-dx) * .5), calc(var(--tp-dy) * .5)) scaleX(.4); } }

.v21cur-tp-glow > i {
  left: -7px; top: -7px; width: 14px; height: 14px;
  background: radial-gradient(circle, var(--tp-c, #FFFFFF) 0, transparent 70%);
  animation-name: v21cur-tp-bloom; animation-duration: 900ms;
}
@keyframes v21cur-tp-bloom { 0% { opacity: .85; transform: scale(.5); } 100% { opacity: 0; transform: translate(var(--tp-dx), var(--tp-dy)) scale(1.4); } }

.v21cur-tp-special > i { box-shadow: 0 0 6px 1px var(--tp-c, #FFFFFF); }

/* ======================================================================= bumps (J125) */

.v21cur-burst { position: absolute; left: 0; top: 0; width: 0; height: 0; }

/* The flash where they touched: white hot in the middle, both people's colours round it. */
.v21cur-flash {
  position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0 16%, var(--sp-c, #FFFFFF) 32%, color-mix(in srgb, var(--sp-c2, #FFFFFF) 62%, transparent) 50%, transparent 72%);
  opacity: 0; animation: v21cur-flash 300ms cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes v21cur-flash { 0% { opacity: 1; transform: scale(.25); } 35% { opacity: .95; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.5); } }

/* One piece: the outer span flies out (a fast start that slows, as a spark does); the inner one is its shape. */
.v21cur-sp { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: v21cur-sp-fly 540ms cubic-bezier(.1, .75, .3, 1) var(--sp-d, 0ms) both; }
.v21cur-sp > i {
  position: absolute; display: block; left: -6px; top: -1px; width: 12px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sp-c, #FFFFFF) 45%, #FFFFFF);
  box-shadow: 0 0 3px color-mix(in srgb, var(--sp-c, #FFFFFF) 70%, transparent);
  transform: rotate(var(--sp-r, 0deg));
  animation: v21cur-sp-fade 540ms ease-out var(--sp-d, 0ms) both;
}
@keyframes v21cur-sp-fly { from { transform: translate(0, 0); } to { transform: translate(var(--sp-dx, 0), var(--sp-dy, 0)); } }
@keyframes v21cur-sp-fade { 0% { opacity: 1; transform: rotate(var(--sp-r, 0deg)) scale(1); } 60% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--sp-r, 0deg)) scale(.3); } }

/* Metal glints and twinkles: small four pointed stars that flare and turn. */
.v21cur-sp-glint > i, .v21cur-sp-star > i {
  left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 0; box-shadow: none;
  background: radial-gradient(circle, #FFFFFF 0 22%, var(--sp-c, #FFFFFF) 44%, transparent 72%);
  -webkit-clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation-name: v21cur-sp-twinkle;
}
.v21cur-sp-glint > i { left: -6px; top: -6px; width: 12px; height: 12px; background: radial-gradient(circle, #FFFFFF 0 30%, var(--sp-c, #FFFFFF) 50%, transparent 74%); }
@keyframes v21cur-sp-twinkle {
  0% { opacity: 0; transform: scale(.3) rotate(0deg); }
  25% { opacity: 1; transform: scale(1.2) rotate(35deg); }
  100% { opacity: 0; transform: scale(.25) rotate(110deg); }
}

/* Embers: warm round sparks that rise and cool. */
.v21cur-sp-ember { animation-duration: 600ms; animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
.v21cur-sp-ember > i {
  left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, #FFE08A 0 30%, var(--sp-c, #FF7A1A) 58%, transparent 80%);
  box-shadow: 0 0 5px 1px color-mix(in srgb, var(--sp-c, #FF7A1A) 60%, transparent);
  animation-duration: 600ms;
}

/* Zaps: short bright bars that flicker as they jump. */
.v21cur-sp-zap { animation-duration: 380ms; }
.v21cur-sp-zap > i {
  left: -7px; top: -1px; width: 14px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sp-c, #9BD4FF), #FFFFFF, var(--sp-c, #9BD4FF), transparent);
  box-shadow: 0 0 4px color-mix(in srgb, var(--sp-c, #9BD4FF) 80%, transparent);
  animation-name: v21cur-sp-zap; animation-duration: 380ms; animation-timing-function: steps(5, end);
}
@keyframes v21cur-sp-zap { 0% { opacity: 1; } 40% { opacity: .2; } 60% { opacity: 1; } 100% { opacity: 0; } }

/* Neon: soft round glows that bloom as they go. */
.v21cur-sp-neon > i {
  left: -4.5px; top: -4.5px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0 15%, var(--sp-c, #FFFFFF) 40%, transparent 72%);
  box-shadow: 0 0 7px 1px color-mix(in srgb, var(--sp-c, #FFFFFF) 75%, transparent);
  animation-name: v21cur-sp-bloom;
}
@keyframes v21cur-sp-bloom { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }

/* The specials: bright dots in the effect's turning colours. */
.v21cur-sp-dot > i {
  left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sp-c, #FFFFFF); box-shadow: 0 0 6px 1px var(--sp-c, #FFFFFF);
}

/* The ring at your own pointer when it was in the bump (your real mouse is never moved; this shows you bumped). */
.v21cur-bumpmark { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.v21cur-bumpmark::before {
  content: ""; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  border: 2.5px solid var(--v21cur-c, var(--brand, #40624E));
  box-shadow: 0 0 0 1.5px var(--solid, #FFFFFF), 0 0 10px color-mix(in srgb, var(--v21cur-c, #40624E) 55%, transparent);
  opacity: 0; animation: v21cur-bumpmark 560ms cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes v21cur-bumpmark { 0% { opacity: 1; transform: scale(.3); } 60% { opacity: .7; } 100% { opacity: 0; transform: scale(1.7); } }
/* Reduced motion: a still ring for a moment where they touched, nothing else. */
.v21cur-bumpmark-still::before { animation: none; opacity: .9; transform: none; box-shadow: 0 0 0 1.5px var(--solid, #FFFFFF); }

/* ======================================================================= phone width */

@media (max-width: 599px) {
  .v21cur-tag { font-size: .6875rem; padding: 2px 8px; max-width: 7.5rem; }
  .v21cur-tagw { left: 12px; top: 18px; }
}

/* ======================================================================= still: the plain colour, nothing moving */

:root[data-motion="reduced"] .v21cur-body,
:root[data-motion="reduced"] .v21cur .v21cur-tag { animation: none !important; }
:root[data-motion="reduced"] .v21cur { transition-duration: 120ms !important; }
:root[data-motion="reduced"] .v21cur-halo,
:root[data-motion="reduced"] .v21cur-sheen,
:root[data-motion="reduced"] .v21cur-glow,
:root[data-motion="reduced"] .v21cur-pulse,
:root[data-motion="reduced"] .v21cur-tp,
:root[data-motion="reduced"] .v21cur-tag::after,
:root[data-motion="reduced"] .v21cur-tagw::before,
:root[data-motion="reduced"] .v21cur-tagw::after,
:root[data-motion="reduced"] .v21cur-glow::before { display: none !important; }
:root[data-motion="reduced"] .v21cur .v21cur-fill { fill: var(--v21cur-c) !important; }
:root[data-motion="reduced"] .v21cur .v21cur-tag { background: var(--v21cur-c) !important; border-color: var(--v21cur-edge) !important; }
/* J125 under reduced motion: no sparks at all, and the ring stands still (the script draws only the still one). */
:root[data-motion="reduced"] .v21cur-burst { display: none !important; }
:root[data-motion="reduced"] .v21cur-bumpmark::before { animation: none !important; opacity: .9; transform: none; }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .v21cur-body,
  :root:not([data-motion="full"]) .v21cur .v21cur-tag { animation: none !important; }
  :root:not([data-motion="full"]) .v21cur { transition-duration: 120ms !important; }
  :root:not([data-motion="full"]) .v21cur-halo,
  :root:not([data-motion="full"]) .v21cur-sheen,
  :root:not([data-motion="full"]) .v21cur-glow,
  :root:not([data-motion="full"]) .v21cur-pulse,
  :root:not([data-motion="full"]) .v21cur-tp,
  :root:not([data-motion="full"]) .v21cur-tag::after,
  :root:not([data-motion="full"]) .v21cur-tagw::before,
  :root:not([data-motion="full"]) .v21cur-tagw::after,
  :root:not([data-motion="full"]) .v21cur-glow::before { display: none !important; }
  :root:not([data-motion="full"]) .v21cur .v21cur-fill { fill: var(--v21cur-c) !important; }
  :root:not([data-motion="full"]) .v21cur .v21cur-tag { background: var(--v21cur-c) !important; border-color: var(--v21cur-edge) !important; }
  :root:not([data-motion="full"]) .v21cur-burst { display: none !important; }
  :root:not([data-motion="full"]) .v21cur-bumpmark::before { animation: none !important; opacity: .9; transform: none; }
}

/* High contrast: the plain hc colour (7 to 1 with white), a firmer edge, nothing moving. */
:root[data-theme="high_contrast"] .v21cur-halo,
:root[data-theme="high_contrast"] .v21cur-sheen,
:root[data-theme="high_contrast"] .v21cur-glow,
:root[data-theme="high_contrast"] .v21cur-tp,
:root[data-theme="high_contrast"] .v21cur-tag::after,
:root[data-theme="high_contrast"] .v21cur-tagw::before,
:root[data-theme="high_contrast"] .v21cur-tagw::after,
:root[data-theme="high_contrast"] .v21cur-glow::before { display: none !important; }
:root[data-theme="high_contrast"] .v21cur .v21cur-fill { fill: var(--v21cur-c) !important; stroke-width: 2.8px; }
:root[data-theme="high_contrast"] .v21cur .v21cur-tag { background: var(--v21cur-c) !important; border: 2px solid var(--ink, #000000) !important; animation: none !important; box-shadow: none; }
/* J125 in High contrast: plain streaks in the people's plain colours (the script picks them), no glow round them. */
:root[data-theme="high_contrast"] .v21cur-sp > i { box-shadow: none !important; }
:root[data-theme="high_contrast"] .v21cur-bumpmark::before { border-width: 3px; box-shadow: 0 0 0 2px var(--ink, #000000); }

@media (forced-colors: active) {
  .v21cur .v21cur-fill { fill: CanvasText !important; stroke: Canvas !important; }
  .v21cur-svg { filter: none !important; }
  .v21cur .v21cur-tag { forced-color-adjust: none; background: Canvas !important; color: CanvasText !important; border: 1px solid CanvasText !important; animation: none !important; box-shadow: none !important; }
  .v21cur-halo, .v21cur-sheen, .v21cur-glow, .v21cur-pulse, .v21cur-tp, .v21cur-tag::after, .v21cur-tagw::before, .v21cur-tagw::after, .v21cur-glow::before { display: none !important; }
  .v21cur-burst { display: none !important; }
  .v21cur-bumpmark::before { border-color: CanvasText !important; box-shadow: none !important; }
}

/* ======================================================================= hidden */

:root[data-quiet="on"] .v21cur-layer,
:root[data-v21-welfare="on"] .v21cur-layer,
:root[data-calm="on"] .v21cur-layer,
:root[data-day-matters] .v21cur-layer { display: none !important; }
@media print { .v21cur-layer { display: none !important; } }
