.figure-stardust {
  position: absolute;

  left: 28%;
  bottom: -1%;

  width: 27%;
  height: 72%;

  z-index: 5;

  pointer-events: none;
  overflow: visible;

  opacity: 0;

  transition: opacity 700ms ease;
}

.landing.constellation-active .figure-stardust {
  opacity: 1;
}

.stardust-particle {
  position: absolute;

  left: var(--x);
  top: var(--y);

  width: var(--size);
  height: var(--size);

  border-radius: 50%;

  background: rgba(225, 245, 255, 0.95);

  box-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 0 7px rgba(145, 210, 255, 0.75),
    0 0 13px rgba(65, 145, 235, 0.42);

  opacity: 0;

  animation:
    stardustFloat
    var(--duration)
    ease-in-out
    var(--delay)
    infinite;
}

@keyframes stardustFloat {
  0% {
    opacity: 0;
    transform: translate(0, 10px) scale(0.65);
  }

  14% {
    opacity: 0.4;
  }

  31% {
    opacity: 0.95;
    transform: translate(-5px, 1px) scale(1.15);
  }

  47% {
    opacity: 0.45;
    transform: translate(3px, -9px) scale(0.8);
  }

  66% {
    opacity: 1;
    transform: translate(-4px, -18px) scale(1.05);
  }

  84% {
    opacity: 0.28;
    transform: translate(5px, -28px) scale(0.7);
  }

  100% {
    opacity: 0;
    transform: translate(-2px, -38px) scale(0.55);
  }
}


/* Occasional tiny four-point stars among the dust */

.stardust-spark {
  border-radius: 50%;
}

.stardust-spark::before,
.stardust-spark::after {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(225, 245, 255, 0.95),
    transparent
  );
}

.stardust-spark::before {
  width: 1px;
  height: calc(var(--size) * 5);
}

.stardust-spark::after {
  width: calc(var(--size) * 4);
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(225, 245, 255, 0.9),
    transparent
  );
}


@media (prefers-reduced-motion: reduce) {
  .stardust-particle {
    animation: none;
  }

  .figure-stardust {
    display: none;
  }
}

/* Deep-blue stardust palette */
.stardust-particle {
  background: rgba(145, 205, 255, 0.96);

  box-shadow:
    0 0 3px rgba(195, 230, 255, 0.95),
    0 0 8px rgba(80, 165, 255, 0.90),
    0 0 16px rgba(35, 110, 235, 0.70),
    0 0 26px rgba(20, 70, 200, 0.38);
}

.stardust-spark::before {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(125, 195, 255, 0.98),
    transparent
  );
}

.stardust-spark::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(125, 195, 255, 0.98),
    transparent
  );
}
