.trainer-wrap {
  position: relative;
}

.trainer {
  width: 320px;
  max-width: 320px;
  display: block;
  margin: 0 auto;
}

/* GŁÓWNE WEJŚCIE */

.base {
  animation: introMove 1s cubic-bezier(.22,.61,.36,1) forwards;
}

/* GLITCH LAYERS */

.glitch {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch-1 {
  mix-blend-mode: screen;
  animation: glitchFlash 450ms steps(2) 1;
}

.glitch-2 {
  mix-blend-mode: multiply;
  animation: glitchFlash2 450ms steps(2) 1;
}

/* INTRO */

@keyframes introMove {
  from {
    transform: translateX(24px);
    opacity: 0;
    filter: blur(6px);
  }
  to {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* GLITCH */

@keyframes glitchFlash {
  0% {
    opacity: 0;
    transform: translate(0);
  }
  20% {
    opacity: .7;
    transform: translate(-6px, 2px);
  }
  40% {
    opacity: .4;
    transform: translate(4px, -2px);
  }
  60% {
    opacity: .6;
    transform: translate(-2px, 1px);
  }
  100% {
    opacity: 0;
    transform: translate(0);
  }
}

@keyframes glitchFlash2 {
  0% {
    opacity: 0;
  }
  25% {
    opacity: .5;
    transform: translate(5px, -1px);
  }
  50% {
    opacity: .3;
    transform: translate(-3px, 2px);
  }
  100% {
    opacity: 0;
    transform: translate(0);
  }
}

