/* Independent glitter overlay: the nickname's gradient and timing stay intact. */
/* Keep group effects on the text box, including names inserted by AJAX. */
[style*="--gx-group-color:"]:is([style*="groups_styles/"],[style*="--gx-sparkle-overlay:"]) {
  display: inline-block !important;
  inline-size: fit-content !important;
  max-inline-size: 100%;
  min-inline-size: 0;
  vertical-align: middle;
}
/* Older templates apply the group style directly to the stretched grid cell. */
.gx-profile__dl > li > [style*="--gx-group-color:"] {
  justify-self: end;
}
/* Single legacy GIFs have no size setting and otherwise clip outside the text. */
[style*="--gx-group-color:"][style*="groups_styles/"]:not([style*="background-size"]) {
  background-size: 100% 100% !important;
  background-position: center !important;
}
[style*="--gx-sparkle-overlay:"] {
  position: relative !important;
  display: inline-block;
}
[style*="--gx-sparkle-overlay:"]::after {
  content: "";
  position: absolute;
  inset: -4px -2px;
  background-image: var(--gx-sparkle-overlay);
  background-position: var(--gx-sparkle-position, center);
  background-size: var(--gx-sparkle-size, 100% 100%);
  background-repeat: no-repeat;
  background-clip: border-box;
  pointer-events: none;
  z-index: 1;
}
