/* DJ Tentstok — random green click splashes */
#tentstok-splash-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow: hidden;
  pointer-events: none !important;
  user-select: none;
  -webkit-user-select: none;
}

#tentstok-splash-layer * {
  box-sizing: border-box;
  pointer-events: none !important;
}

#tentstok-splash-layer .ts-burst {
  position: absolute;
  width: 0;
  height: 0;
}

#tentstok-splash-layer .ts-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ts-size, 3px);
  height: var(--ts-size, 3px);
  background: var(--ts-color, #65ffa1);
  box-shadow: 0 0 5px var(--ts-color, #65ffa1);
  animation: tentstok-particle var(--ts-duration, 650ms)
    cubic-bezier(.15, .6, .25, 1) var(--ts-delay, 0ms) both;
}

#tentstok-splash-layer .ts-particle.ts-star {
  width: 9px;
  height: 9px;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 3px var(--ts-color, #65ffa1));
}

#tentstok-splash-layer .ts-star::before,
#tentstok-splash-layer .ts-star::after {
  content: "";
  position: absolute;
  background: var(--ts-color, #65ffa1);
}

#tentstok-splash-layer .ts-star::before {
  left: 3px;
  top: 0;
  width: 3px;
  height: 9px;
}

#tentstok-splash-layer .ts-star::after {
  left: 0;
  top: 3px;
  width: 9px;
  height: 3px;
}

#tentstok-splash-layer .ts-flash {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  background: #d7ffe4;
  box-shadow: 0 0 8px #65ffa1;
  animation: tentstok-flash 220ms ease-out both;
}

#tentstok-splash-layer .ts-ring {
  position: absolute;
  width: 58px;
  height: 58px;
  left: -29px;
  top: -29px;
  border: 1.5px solid #65ffa1;
  border-radius: 50%;
  box-shadow: 0 0 5px #00ff8844;
  animation: tentstok-ring 680ms ease-out both;
}

#tentstok-splash-layer .ts-ring.ts-second {
  width: 44px;
  height: 44px;
  left: -22px;
  top: -22px;
  border-color: #c7ffdb;
  animation-delay: 90ms;
}

#tentstok-splash-layer .ts-spell {
  position: absolute;
  width: 80px;
  height: 80px;
  left: -40px;
  top: -40px;
  border: 2px dashed #65ffa1;
  border-radius: 50%;
  box-shadow: 0 0 7px #00ff8833;
  animation: tentstok-spell 800ms ease-out both;
}

@keyframes tentstok-particle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.5);
  }
  12% {
    opacity: 1;
  }
  70% {
    opacity: .8;
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(var(--ts-x, 0px) - 50%),
      calc(var(--ts-y, 0px) - 50%)
    ) scale(.15);
  }
}

@keyframes tentstok-flash {
  from {
    opacity: 1;
    transform: scale(.5) rotate(45deg);
  }
  to {
    opacity: 0;
    transform: scale(1.7) rotate(45deg);
  }
}

@keyframes tentstok-ring {
  from {
    opacity: 1;
    transform: scale(.1);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes tentstok-spell {
  0% {
    opacity: 0;
    transform: scale(.4) rotate(-30deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.35) rotate(35deg);
  }
}

/* Disable decorative click animations for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  #tentstok-splash-layer {
    display: none !important;
  }
}