/* Desktop cursor trail — bits of text that drift up from the cursor. */

.qlegy .qlg-cursorfx {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

.qlegy .qlg-cursorfx__bit {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--qlegy-brand);
  font-family: var(--qlegy-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 14px currentColor;
  will-change: transform, opacity;
  animation: qlg-cursorfx 1100ms var(--qlegy-ease-out) forwards;
}

.qlegy .qlg-cursorfx__bit--mono {
  font-family: var(--qlegy-mono);
  font-size: 11px;
  letter-spacing: -0.02em;
}

@keyframes qlg-cursorfx {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  18%  { opacity: 0.95; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--qlg-dx, 0px)), -140%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .qlegy .qlg-cursorfx { display: none; }
}
