.ald-eb{
  /* ---- the dials ----
     shine and bloom are deliberately separate. one dial for both
     means turning the edge up drags the outside smudge up with it,
     which is the thing that read as aggressive. */
  --eb-shine:1;             /* the lit edge itself, 0 to 1 */
  --eb-bloom:.34;           /* the halo outside the pill, keep this low */
  --eb-frost:5px;           /* how much the pill softens the hero grain behind it */
  --eb-speed:10s;           /* one lap */
  --eb-tint:226,246,235;    /* face tint, RGB channels only */

  --eb-color:rgba(255,255,255,.92);
  --eb-spark:198,240,216;
  --eb-stroke:1px;          /* the resting border. thin. */
  --eb-band:2px;            /* how wide the travelling light is allowed to be */
  /* where the comet's bright head sits along its own length.
     the anchor below must match this or the head and the bloom
     separate on the long edges. */
  --eb-head:94%;

  box-sizing:border-box;
  position:relative;
  display:inline-flex;
  align-items:center;
  padding:8px 18px;
  border-radius:999px;

  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important;
  font-size:11px !important;
  font-weight:500 !important;
  letter-spacing:1.5px !important;
  line-height:1 !important;
  font-optical-sizing:auto;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;

  color:var(--eb-color);
  /* ambient, not contact. a tight dark shadow reads as a sticker
     resting on the hero rather than an object in it. */
  box-shadow:0 6px 20px rgba(0,0,0,.16);
  text-decoration:none;
  white-space:nowrap;
  transition:box-shadow .2s ease;
}
.ald-eb__label{
  position:relative;
  z-index:5;
  font-family:inherit !important;
  font-size:inherit !important;
  font-weight:inherit !important;
  letter-spacing:inherit !important;
  text-shadow:0 1px 2px rgba(0,0,0,.16);
  /* letter-spacing appends a gap after the final character */
  margin-right:-1.5px;
}

/* ---- shared layer geometry ----
   box-sizing is load bearing. the edge layer carries padding for
   its mask, and without border-box that padding grows its border
   box past the pill, putting it on a longer path than the other
   layers. they then drift apart as they travel. */
.ald-eb__glass,
.ald-eb__bloom,
.ald-eb__sparkle,
.ald-eb__stroke,
.ald-eb__edge,
.ald-eb__spill,
.ald-eb__rim{
  box-sizing:border-box;
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
}
.ald-eb__bloom,
.ald-eb__sparkle,
.ald-eb__edge{
  mix-blend-mode:screen;
}
@supports (mix-blend-mode:plus-lighter){
  .ald-eb__bloom,
  .ald-eb__sparkle,
  .ald-eb__edge{ mix-blend-mode:plus-lighter; }
}
/* the core sits in its own container so the bloom dial does not
   multiply against it */
.ald-eb__sparkle{
  z-index:1;
  overflow:visible;
}

/* ---- shared travel ----
   identical path, identical duration, identical phase. */
.ald-eb__comet,
.ald-eb__core,
.ald-eb__halo,
.ald-eb__wash{
  position:absolute;
  top:0; left:0;
  offset-path:border-box;
  offset-distance:0%;
  will-change:offset-distance;
  animation:aldEbTravel var(--eb-speed) linear infinite;
}
@keyframes aldEbTravel{
  from{ offset-distance:0%; }
  to  { offset-distance:100%; }
}

/* ============ 0. THE GLASS ============
   Frosted, so the hero grain arrives softened rather than at full
   fidelity. The tint is mint rather than white: white over a
   saturated green desaturates toward grey, which forces the
   opacity down, which is what lets the texture through. Tinting it
   green lets it sit more opaque without going milky.
   This lives on its own child, not on .ald-eb, because
   backdrop-filter creates a stacking context and would seal the
   glow layers off from the hero, killing the additive blend. */
.ald-eb__glass{
  z-index:0;
  background:linear-gradient(180deg,
    rgba(var(--eb-tint),.15) 0%,
    rgba(var(--eb-tint),.11) 48%,
    rgba(var(--eb-tint),.075) 100%);
  -webkit-backdrop-filter:blur(var(--eb-frost)) saturate(122%) brightness(1.03);
          backdrop-filter:blur(var(--eb-frost)) saturate(122%) brightness(1.03);
}

/* ============ 1. THE BLOOM ============
   The only layer permitted outside the shape, and the faintest.
   The lit edge is the source, this is only its residue. */
.ald-eb__bloom{
  z-index:1;
  overflow:visible;
  filter:blur(7px);
  opacity:var(--eb-bloom);
}
/* a tight core riding with the head. this is what gives the shine
   punch. it is small enough that it never becomes a smudge, so it
   tracks shine rather than bloom. */
.ald-eb__core{
  width:15px; height:15px;
  offset-rotate:0deg;
  offset-anchor:50% 50%;
  filter:blur(2.5px);
  opacity:var(--eb-shine);
  background:radial-gradient(circle closest-side,
    rgba(255,255,255,.62) 0%,
    rgba(var(--eb-spark),.34) 38%,
    rgba(var(--eb-spark),0)  100%);
}
.ald-eb__halo{
  width:34px; height:34px;
  offset-rotate:0deg;
  offset-anchor:50% 50%;
  background:radial-gradient(circle closest-side,
    rgba(var(--eb-spark),.22) 0%,
    rgba(var(--eb-spark),.13) 32%,
    rgba(var(--eb-spark),.05) 60%,
    rgba(var(--eb-spark),0)  100%);
}

/* ============ 2. THE INNER SPILL ============
   Clipped to the inside, so the face brightens where the light
   passes and settles again behind it. */
.ald-eb__spill{
  z-index:2;
  overflow:hidden;
  opacity:var(--eb-shine);
}
.ald-eb__wash{
  width:96px; height:96px;
  offset-rotate:0deg;
  offset-anchor:50% 50%;
  filter:blur(12px);
  background:radial-gradient(circle closest-side,
    rgba(var(--eb-spark),.24) 0%,
    rgba(var(--eb-spark),.10) 42%,
    rgba(var(--eb-spark),0)  100%);
}

/* ============ 3. THE RIM ============
   A capsule catches light hardest at the top centre and loses it
   into the caps. A uniform inset highlight misses that entirely. */
.ald-eb__rim{
  z-index:3;
  inset:0 0 auto 0;
  height:1px;
  margin:0 14px;
  border-radius:1px;
  background:linear-gradient(90deg,
    rgba(255,255,255,0)   0%,
    rgba(255,255,255,.15) 18%,
    rgba(255,255,255,.22) 50%,
    rgba(255,255,255,.15) 82%,
    rgba(255,255,255,0)  100%);
}

/* ============ 4. THE EDGE ============
   Two masked rings, not one. The resting stroke is thin because it
   defines the pill's shape. The light needs a wider band than that
   to read as bright, so it gets its own ring. Using one ring for
   both jobs means brightening the light also fattens the border.

   The mask is also what makes elongation safe: a tangent streak
   cannot project off the rounded ends because the mask confines it
   to the ring. */
.ald-eb__stroke,
.ald-eb__edge{
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-composite:xor;
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask-repeat:no-repeat;
          mask-composite:exclude;
}
.ald-eb__stroke{
  z-index:4;
  padding:var(--eb-stroke);
  background:rgba(255,255,255,.11);
}
.ald-eb__edge{
  z-index:5;
  padding:var(--eb-band);
  background:none;
}
.ald-eb__comet{
  width:96px; height:5px;
  offset-rotate:auto;
  /* anchor on the bright head, not the midpoint */
  offset-anchor:var(--eb-head) 50%;
  opacity:var(--eb-shine);
  /* the head goes white, not mint. a coloured peak reads as tinted
     plastic. real specular highlights clip to white at the centre
     and only show their colour in the falloff. */
  background:linear-gradient(90deg,
    rgba(var(--eb-spark),0)    0%,
    rgba(var(--eb-spark),.08) 26%,
    rgba(var(--eb-spark),.22) 48%,
    rgba(var(--eb-spark),.52) 68%,
    rgba(var(--eb-spark),.88) 82%,
    rgba(255,255,255,.98)     91%,
    #fff                      94.5%,
    rgba(255,255,255,.70)     97%,
    rgba(var(--eb-spark),0)  100%);
  filter:blur(.5px);
}

/* no offset-path support means no motion, just the resting pill */
.ald-eb__bloom,
.ald-eb__sparkle,
.ald-eb__spill{ display:none; }
.ald-eb__comet{ display:none; }
@supports (offset-path:border-box){
  .ald-eb__bloom,
  .ald-eb__sparkle,
  .ald-eb__spill{ display:block; }
  .ald-eb__comet{ display:block; }
}

a.ald-eb:hover{ box-shadow:0 8px 26px rgba(0,0,0,.20); }
a.ald-eb:hover .ald-eb__glass{
  background:linear-gradient(180deg,
    rgba(var(--eb-tint),.19) 0%,
    rgba(var(--eb-tint),.14) 48%,
    rgba(var(--eb-tint),.10) 100%);
}
.ald-eb:focus-visible{ outline:2px solid rgb(var(--eb-spark)); outline-offset:3px; }

@media (max-width:480px){
  .ald-eb{ font-size:10px !important; letter-spacing:1.2px !important; padding:7px 15px; }
  .ald-eb__comet{ width:70px; }
  .ald-eb__core { width:12px; height:12px; }
  .ald-eb__halo { width:26px; height:26px; }
  .ald-eb__wash { width:72px; height:72px; }
  .ald-eb__bloom{ filter:blur(5px); }
  .ald-eb__rim  { margin:0 11px; }
}

@media (prefers-reduced-motion:reduce){
  .ald-eb__bloom,
  .ald-eb__sparkle,
  .ald-eb__spill{ display:none; }
  .ald-eb__comet{ display:none; }
}
