/* Border Beam: a port of larsen66's 21st.dev component (MIT). Pair with border-beam.js.
   Every value below is the original's; per-instance numbers and gradients come from JS as --fxbb-* properties.
   Hooks (set on the host or any ancestor to tune): --fxbb-stroke-opacity, --fxbb-inner-opacity,
   --fxbb-bloom-opacity, --fxbb-hue-base, and for pulse-outside --fxbb-core-blur, --fxbb-bloom-blur,
   --fxbb-glow-brightness, --fxbb-glow-saturate, --fxbb-glow-boost. */

@property --fxbb-angle { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
@property --fxbb-opacity { syntax: "<number>"; initial-value: 0; inherits: true; }
@property --fxbb-x { syntax: "<number>"; initial-value: 0; inherits: true; }
@property --fxbb-w { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-h { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-spike { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-spike2 { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-edge { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-hue { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
@property --fxbb-bw1 { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bh1 { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bw2 { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bh2 { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bw3 { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bh3 { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bgh { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bop-tl { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bop-tr { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bop-bl { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bop-br { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --fxbb-bx1 { syntax: "<length>"; initial-value: 0px; inherits: true; }
@property --fxbb-by1 { syntax: "<length>"; initial-value: 0px; inherits: true; }
@property --fxbb-bx2 { syntax: "<length>"; initial-value: 0px; inherits: true; }
@property --fxbb-by2 { syntax: "<length>"; initial-value: 0px; inherits: true; }
@property --fxbb-bx3 { syntax: "<length>"; initial-value: 0px; inherits: true; }
@property --fxbb-by3 { syntax: "<length>"; initial-value: 0px; inherits: true; }

/* ---- Host / wrapper / layer box ---- */

.fx-border-beam-host { isolation: isolate; }
.fx-border-beam-host--rel { position: relative; }

.fx-border-beam-wrap {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: fit-content;
  max-width: 100%;
}
.fx-border-beam-wrap--inline { display: inline-block; vertical-align: middle; }

.fx-border-beam {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.fx-border-beam > span {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fx-border-beam[data-active] > span,
.fx-border-beam[data-fading] > span { display: block; }

.fx-border-beam[data-paused],
.fx-border-beam[data-paused] > span { animation-play-state: paused !important; }

/* ---- Box animations (drive the inherited custom properties) ---- */

.fx-border-beam:is([data-size="md"], [data-size="sm"])[data-active] {
  animation: fxbb-spin var(--fxbb-dur) linear infinite, fxbb-fade-in 0.6s ease forwards;
}
.fx-border-beam:is([data-size="md"], [data-size="sm"])[data-fading] {
  animation: fxbb-spin var(--fxbb-dur) linear infinite, fxbb-fade-out 0.5s ease forwards;
}
.fx-border-beam[data-size="line"][data-active] {
  animation:
    fxbb-travel var(--fxbb-dur) linear infinite,
    fxbb-edge-fade var(--fxbb-dur) linear infinite,
    fxbb-breathe var(--fxbb-dur-breathe) ease-in-out infinite,
    fxbb-spike var(--fxbb-dur-spike) ease-in-out infinite,
    fxbb-spike2 var(--fxbb-dur-spike2) ease-in-out infinite,
    fxbb-fade-in 0.6s ease forwards;
}
.fx-border-beam[data-size="line"][data-fading] {
  animation:
    fxbb-travel var(--fxbb-dur) linear infinite,
    fxbb-edge-fade var(--fxbb-dur) linear infinite,
    fxbb-breathe var(--fxbb-dur-breathe) ease-in-out infinite,
    fxbb-spike var(--fxbb-dur-spike) ease-in-out infinite,
    fxbb-spike2 var(--fxbb-dur-spike2) ease-in-out infinite,
    fxbb-fade-out 0.5s ease forwards;
}
.fx-border-beam:is([data-size="pulse-inner"], [data-size="pulse-outside"])[data-active] { animation: fxbb-fade-in 0.6s ease forwards; }
.fx-border-beam:is([data-size="pulse-inner"], [data-size="pulse-outside"])[data-fading] { animation: fxbb-fade-out 0.5s ease forwards; }

/* ---- sm / md: a conic beam circling the border ---- */

.fx-border-beam:is([data-size="md"], [data-size="sm"]) > .fx-border-beam__stroke {
  border-radius: var(--fxbb-ri);
  padding: var(--fxbb-bw);
  clip-path: inset(0 round var(--fxbb-r));
  -webkit-mask:
    conic-gradient(from var(--fxbb-angle), transparent 0%, transparent 30%, rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%, white 52%, white 80%, rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%, transparent 95%, transparent 100%),
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: source-in, xor;
  mask:
    conic-gradient(from var(--fxbb-angle), transparent 0%, transparent 30%, rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%, white 52%, white 80%, rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%, transparent 95%, transparent 100%),
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: intersect, exclude;
  z-index: 2;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-k-stroke) * var(--fxbb-stroke-opacity, 1) * var(--fxbb-strength, 1));
}

.fx-border-beam[data-size="md"] > .fx-border-beam__inner {
  border-radius: var(--fxbb-r);
  box-shadow: inset 0 0 9px 1px var(--fxbb-inner-shadow);
  -webkit-mask-image:
    conic-gradient(from var(--fxbb-angle), transparent 0%, transparent 30%, rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%, white 52%, white 80%, rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%, transparent 95%, transparent 100%),
    linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
    linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
  -webkit-mask-composite: source-in, source-over;
  mask-image:
    conic-gradient(from var(--fxbb-angle), transparent 0%, transparent 30%, rgba(255, 255, 255, 0.1) 36%, rgba(255, 255, 255, 0.35) 44%, white 52%, white 80%, rgba(255, 255, 255, 0.35) 86%, rgba(255, 255, 255, 0.1) 92%, transparent 95%, transparent 100%),
    linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
    linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
  mask-composite: intersect, add;
  z-index: 1;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-k-inner) * var(--fxbb-inner-opacity, 1) * var(--fxbb-strength, 1));
  clip-path: inset(0 round var(--fxbb-r));
}

.fx-border-beam[data-size="sm"] > .fx-border-beam__inner {
  border-radius: var(--fxbb-r);
  clip-path: inset(0 round var(--fxbb-r));
  box-shadow: inset 0 0 5px 1px var(--fxbb-inner-shadow);
  -webkit-mask-image: conic-gradient(from var(--fxbb-angle), transparent 0%, transparent 22%, rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.4) 36%, white 46%, white 82%, rgba(255, 255, 255, 0.4) 88%, rgba(255, 255, 255, 0.12) 94%, transparent 97%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-image: conic-gradient(from var(--fxbb-angle), transparent 0%, transparent 22%, rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.4) 36%, white 46%, white 82%, rgba(255, 255, 255, 0.4) 88%, rgba(255, 255, 255, 0.12) 94%, transparent 97%, transparent 100%);
  mask-composite: add;
  z-index: 1;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-k-inner) * var(--fxbb-inner-opacity, 1) * var(--fxbb-strength, 1));
}

.fx-border-beam:is([data-size="md"], [data-size="sm"]) > .fx-border-beam__bloom {
  border-radius: var(--fxbb-ri);
  clip-path: inset(0 round var(--fxbb-r));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: var(--fxbb-bw);
  filter: blur(8px) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation));
  z-index: 3;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-k-bloom) * var(--fxbb-bloom-opacity, 1) * var(--fxbb-strength, 1));
}

/* Hue shift on stroke and inner (sm, md, line); static colours have no filter at all, as in the original. */
.fx-border-beam:is([data-size="md"], [data-size="sm"], [data-size="line"]):not([data-static]) > :is(.fx-border-beam__stroke, .fx-border-beam__inner) {
  animation: fxbb-hue 12s ease-in-out infinite;
}

/* ---- line: a glow sweeping along the bottom edge ---- */

.fx-border-beam[data-size="line"] > .fx-border-beam__stroke {
  border-radius: var(--fxbb-ri);
  padding: var(--fxbb-bw);
  clip-path: inset(0 round var(--fxbb-r));
  -webkit-mask:
    radial-gradient(ellipse calc(78px * var(--fxbb-w)) calc(60px * var(--fxbb-h)) at calc(var(--fxbb-x) * 100%) 100%, white 0%, rgba(255, 255, 255, 0.5) 45%, transparent 100%),
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: source-in, xor;
  mask:
    radial-gradient(ellipse calc(78px * var(--fxbb-w)) calc(60px * var(--fxbb-h)) at calc(var(--fxbb-x) * 100%) 100%, white 0%, rgba(255, 255, 255, 0.5) 45%, transparent 100%),
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: intersect, exclude;
  z-index: 2;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-edge) * var(--fxbb-k-stroke) * var(--fxbb-stroke-opacity, 1) * var(--fxbb-strength, 1));
}

.fx-border-beam[data-size="line"] > .fx-border-beam__inner {
  border-radius: var(--fxbb-r);
  box-shadow: inset 0 0 9px 1px var(--fxbb-inner-shadow);
  -webkit-mask-image:
    radial-gradient(ellipse calc(78px * var(--fxbb-w)) calc(60px * var(--fxbb-h)) at calc(var(--fxbb-x) * 100%) 100%, white 0%, rgba(255, 255, 255, 0.5) 45%, transparent 100%),
    linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
    linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
  -webkit-mask-composite: source-in, source-over;
  mask-image:
    radial-gradient(ellipse calc(78px * var(--fxbb-w)) calc(60px * var(--fxbb-h)) at calc(var(--fxbb-x) * 100%) 100%, white 0%, rgba(255, 255, 255, 0.5) 45%, transparent 100%),
    linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
    linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
  mask-composite: intersect, add;
  z-index: 1;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-edge) * var(--fxbb-k-inner) * var(--fxbb-inner-opacity, 1) * var(--fxbb-strength, 1));
  clip-path: inset(0 round var(--fxbb-r));
}

.fx-border-beam[data-size="line"] > .fx-border-beam__bloom {
  border-radius: var(--fxbb-ri);
  clip-path: inset(0 round var(--fxbb-r));
  padding: 0;
  -webkit-mask: radial-gradient(ellipse calc(84px * var(--fxbb-w)) calc(110px * var(--fxbb-h)) at calc(var(--fxbb-x) * 100%) 100%, white 0%, rgba(255, 255, 255, 0.5) 35%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask: radial-gradient(ellipse calc(84px * var(--fxbb-w)) calc(110px * var(--fxbb-h)) at calc(var(--fxbb-x) * 100%) 100%, white 0%, rgba(255, 255, 255, 0.5) 35%, transparent 100%);
  mask-composite: add;
  z-index: 3;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-edge) * var(--fxbb-k-bloom) * var(--fxbb-bloom-opacity, 1) * var(--fxbb-strength, 1));
}
.fx-border-beam[data-size="line"][data-variant="mono"] > .fx-border-beam__bloom { filter: blur(6px); }
.fx-border-beam[data-size="line"]:not([data-static]) > .fx-border-beam__bloom { animation: fxbb-hue-bloom 8s ease-in-out infinite; }

/* ---- pulse-inner: breathing colour blobs on the ring and just inside it ---- */

.fx-border-beam[data-size="pulse-inner"] > .fx-border-beam__stroke {
  border-radius: var(--fxbb-r);
  padding: var(--fxbb-bw);
  clip-path: inset(0 round var(--fxbb-r));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 2;
  will-change: opacity, filter;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-k-stroke) * var(--fxbb-stroke-opacity, 1) * var(--fxbb-strength, 1));
}
.fx-border-beam[data-size="pulse-inner"] > .fx-border-beam__inner {
  border-radius: var(--fxbb-r);
  clip-path: inset(0 round var(--fxbb-r));
  -webkit-mask-image:
    linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
    linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
  -webkit-mask-composite: source-over;
  mask-image:
    linear-gradient(white, transparent 28px, transparent calc(100% - 28px), white),
    linear-gradient(to right, white, transparent 28px, transparent calc(100% - 28px), white);
  mask-composite: add;
  z-index: 1;
  will-change: opacity, filter;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-k-inner) * var(--fxbb-inner-opacity, 1) * var(--fxbb-strength, 1));
}
.fx-border-beam[data-size="pulse-inner"] > .fx-border-beam__bloom {
  border-radius: var(--fxbb-r);
  clip-path: inset(0 round var(--fxbb-r));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: var(--fxbb-bw);
  z-index: 3;
  will-change: opacity;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-k-bloom) * var(--fxbb-bloom-opacity, 1) * var(--fxbb-strength, 1));
  filter: blur(8px) hue-rotate(calc(var(--fxbb-hue-base, 0deg) + var(--fxbb-hue))) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation));
}
.fx-border-beam[data-size="pulse-inner"] > :is(.fx-border-beam__stroke, .fx-border-beam__inner),
.fx-border-beam[data-size="pulse-outside"] > .fx-border-beam__stroke {
  filter: hue-rotate(calc(var(--fxbb-hue-base, 0deg) + var(--fxbb-hue))) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation));
}
.fx-border-beam[data-size="pulse-inner"][data-static] > :is(.fx-border-beam__stroke, .fx-border-beam__inner),
.fx-border-beam[data-size="pulse-outside"][data-static] > .fx-border-beam__stroke {
  filter: brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation));
}
.fx-border-beam[data-size="pulse-inner"][data-static] > .fx-border-beam__bloom {
  filter: blur(8px) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation));
}

/* ---- pulse-outside: the ring plus a halo behind the host (needs the wrapper) ---- */

.fx-border-beam[data-size="pulse-outside"] > .fx-border-beam__stroke {
  border-radius: var(--fxbb-r);
  padding: 1px;
  clip-path: inset(0 round var(--fxbb-r));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 2;
  will-change: opacity, filter;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-k-stroke) * var(--fxbb-stroke-opacity, 1) * var(--fxbb-strength, 1));
}
.fx-border-beam[data-size="pulse-outside"] > .fx-border-beam__inner {
  inset: -10px;
  z-index: -1;
  border-radius: calc(var(--fxbb-r) + 10px);
  transform: scale(0.95, 0.9);
  will-change: opacity, filter;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-k-inner) * var(--fxbb-inner-opacity, 1) * var(--fxbb-strength, 1));
  filter: blur(var(--fxbb-core-blur, var(--fxbb-core-blur-d))) hue-rotate(calc(var(--fxbb-hue-base, 0deg) + var(--fxbb-hue))) brightness(var(--fxbb-glow-brightness, var(--fxbb-brightness))) saturate(var(--fxbb-glow-saturate, var(--fxbb-saturation)));
}
.fx-border-beam[data-size="pulse-outside"] > .fx-border-beam__bloom {
  inset: -30px;
  z-index: -1;
  border-radius: calc(var(--fxbb-r) + 30px);
  transform: scale(0.95, 0.9);
  will-change: transform;
  opacity: calc(var(--fxbb-opacity) * var(--fxbb-k-bloom) * var(--fxbb-bloom-opacity, 1) * var(--fxbb-strength, 1));
  filter: blur(var(--fxbb-bloom-blur, var(--fxbb-bloom-blur-d))) hue-rotate(calc(var(--fxbb-hue-base, 0deg) + var(--fxbb-hue))) brightness(var(--fxbb-glow-brightness, var(--fxbb-brightness))) saturate(var(--fxbb-glow-saturate, var(--fxbb-saturation)));
}
.fx-border-beam[data-size="pulse-outside"][data-static] > .fx-border-beam__inner {
  filter: blur(var(--fxbb-core-blur, var(--fxbb-core-blur-d))) brightness(var(--fxbb-glow-brightness, var(--fxbb-brightness))) saturate(var(--fxbb-glow-saturate, var(--fxbb-saturation)));
}
.fx-border-beam[data-size="pulse-outside"][data-static] > .fx-border-beam__bloom {
  filter: blur(var(--fxbb-bloom-blur, var(--fxbb-bloom-blur-d))) brightness(var(--fxbb-glow-brightness, var(--fxbb-brightness))) saturate(var(--fxbb-glow-saturate, var(--fxbb-saturation)));
}

/* ---- Reduced motion: a calm still frame (the beam parked, full strength, mid hue), never nothing.
   JS sets data-reduced from prefers-reduced-motion (or the reducedMotion option). ---- */

.fx-border-beam[data-reduced],
.fx-border-beam[data-reduced] > span { animation: none !important; }
.fx-border-beam[data-reduced][data-active] {
  --fxbb-opacity: 1;
  --fxbb-angle: 140deg;
  --fxbb-x: 0.5;
  --fxbb-w: 1.5;
  --fxbb-h: 1;
  --fxbb-edge: 1;
  --fxbb-spike: 1;
  --fxbb-spike2: 1;
}
.fx-border-beam[data-reduced]:is([data-size="md"], [data-size="sm"], [data-size="line"]):not([data-static]) > :is(.fx-border-beam__stroke, .fx-border-beam__inner) {
  filter: hue-rotate(var(--fxbb-hue-base, 0deg)) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation));
}
.fx-border-beam[data-reduced][data-size="line"]:not([data-static]) > .fx-border-beam__bloom {
  filter: blur(8px) hue-rotate(var(--fxbb-hue-base, 0deg)) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation));
}

/* ---- Keyframes ---- */

@keyframes fxbb-spin { to { --fxbb-angle: 360deg; } }
@keyframes fxbb-fade-in { to { --fxbb-opacity: 1; } }
@keyframes fxbb-fade-out { from { --fxbb-opacity: 1; } to { --fxbb-opacity: 0; } }

@keyframes fxbb-hue {
  0% { filter: hue-rotate(calc(var(--fxbb-hue-base, 0deg) - var(--fxbb-hue-range))) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation)); }
  50% { filter: hue-rotate(calc(var(--fxbb-hue-base, 0deg) + var(--fxbb-hue-range))) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation)); }
  100% { filter: hue-rotate(calc(var(--fxbb-hue-base, 0deg) - var(--fxbb-hue-range))) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation)); }
}
@keyframes fxbb-hue-bloom {
  0% { filter: blur(8px) hue-rotate(calc(var(--fxbb-hue-base, 0deg) - var(--fxbb-hue-range-bloom))) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation)); }
  50% { filter: blur(8px) hue-rotate(calc(var(--fxbb-hue-base, 0deg) + var(--fxbb-hue-range-bloom))) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation)); }
  100% { filter: blur(8px) hue-rotate(calc(var(--fxbb-hue-base, 0deg) - var(--fxbb-hue-range-bloom))) brightness(var(--fxbb-brightness)) saturate(var(--fxbb-saturation)); }
}

@keyframes fxbb-travel {
  0%   { --fxbb-x: 0.06; --fxbb-w: 0.5; }
  10%  { --fxbb-x: 0.15; --fxbb-w: 0.8; }
  20%  { --fxbb-x: 0.25; --fxbb-w: 1.1; }
  30%  { --fxbb-x: 0.35; --fxbb-w: 1.3; }
  40%  { --fxbb-x: 0.44; --fxbb-w: 1.45; }
  50%  { --fxbb-x: 0.5;  --fxbb-w: 1.5; }
  60%  { --fxbb-x: 0.56; --fxbb-w: 1.45; }
  70%  { --fxbb-x: 0.65; --fxbb-w: 1.3; }
  80%  { --fxbb-x: 0.75; --fxbb-w: 1.1; }
  90%  { --fxbb-x: 0.85; --fxbb-w: 0.8; }
  100% { --fxbb-x: 0.94; --fxbb-w: 0.5; }
}
@keyframes fxbb-edge-fade {
  0%    { --fxbb-edge: 0; }
  12.5% { --fxbb-edge: 0; }
  32.5% { --fxbb-edge: 1; }
  67.5% { --fxbb-edge: 1; }
  87.5% { --fxbb-edge: 0; }
  100%  { --fxbb-edge: 0; }
}
@keyframes fxbb-breathe {
  0%, 100% { --fxbb-h: 0.8; }
  25%      { --fxbb-h: 1.25; }
  55%      { --fxbb-h: 0.85; }
  80%      { --fxbb-h: 1.3; }
}
@keyframes fxbb-spike {
  0%   { --fxbb-spike: 0.8; }
  25%  { --fxbb-spike: 1.3; }
  50%  { --fxbb-spike: 0.9; }
  75%  { --fxbb-spike: 1.4; }
  100% { --fxbb-spike: 0.8; }
}
@keyframes fxbb-spike2 {
  0%   { --fxbb-spike2: 1.2; }
  25%  { --fxbb-spike2: 0.7; }
  50%  { --fxbb-spike2: 1.4; }
  75%  { --fxbb-spike2: 0.8; }
  100% { --fxbb-spike2: 1.2; }
}
