.glitch {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  margin-bottom: 2rem;
}

.glitch span {
  color: white;
  font-family: "UnicaOne", sans-serif;
  text-shadow: 2px 2px #5837ff, -2px -2px #aa4d00;
  font-size: 4rem;
  font-weight: bold;
  grid-row-start: 1;
  grid-column-start: 1;
  --stack-height: calc(100% / var(--stacks) - 1px);
  --inverse-index: calc(calc(var(--stacks) - 1) - var(--index));
  --clip-top: calc(var(--stack-height) * var(--index));
  --clip-bottom: calc(var(--stack-height) * var(--inverse-index));
  clip-path: inset(var(--clip-top) 0 var(--clip-bottom) 0);
  animation: stack 340ms cubic-bezier(0.46, 0.29, 0, 1.24) 1 backwards calc(var(--index) * 120ms), glitch 2s ease infinite 2s alternate-reverse;
}

.glitch span:nth-child(odd) {
  --glitch-translate: 8px;
}

.glitch span:nth-child(even) {
  --glitch-translate: -8px;
}

@keyframes stack {
  0% {
    opacity: 0;
    transform: translateX(-50%);
  }
  60% {
    opacity: 0.5;
    transform: translateX(50%);
  }
  80% {
    transform: none;
    opacity: 1;
  }
  100% {
    text-shadow: none;
  }
}
@keyframes glitch {
  0% {
    transform: translate(var(--glitch-translate));
  }
  4%, 100% {
    transform: none;
  }
}

/*# sourceMappingURL=glitch.css.map */
