/* The menu's "Features" item: bold, in the mod's gold; sparks of different sizes leave its text and fade (features.js). */
.md-nav__link.sb-features,
.md-tabs__link.sb-features {
  position: relative;
  overflow: visible;
  font-weight: 700;
  color: #e1b34d;
}

/* On the light theme a darker gold, so it reads on white. */
[data-md-color-scheme="default"] .md-nav__link.sb-features,
[data-md-color-scheme="default"] .md-tabs__link.sb-features {
  color: #b08031;
}

.sb-spark {
  position: absolute;
  z-index: 1;
  line-height: 1;
  color: inherit;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  animation-name: sb-spark;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

/* Born small on the text, brightest a moment later, then drifting off to its place and fading out. */
@keyframes sb-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  20% {
    opacity: 1;
    transform: translate(calc(-50% + var(--sb-dx) * 0.2), calc(-50% + var(--sb-dy) * 0.2)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--sb-dx)), calc(-50% + var(--sb-dy))) scale(0.6) rotate(45deg);
  }
}
