.ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transform-origin: center;
  width: 90px;
  height: 135px;
  top: 0;
  left: 0;
}

.ghost__eyes,
.ghost__mouth {
  position: absolute;
  z-index: 1;
  background: #161616;
}

.ghost__eyes {
  width: 15px;
  height: 15px;
  top: 34px;
  left: 50%;
  transform: translate(-50%);
  border-radius: 50px;
  margin-left: -20px;
  box-shadow: 40px 0 0 #161616;
}

.ghost__mouth {
  width: 20px;
  height: 15px;
  top: 60px;
  left: 50%;
  transform: translate(-50%, 0) scale(0);
  border-radius: 20px 20px 12px 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.ghost__mouth::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: #161616;
  border-radius: 50% 50% 0 0;
}

.ghost__tail {
  position: absolute;
  z-index: -1;
  top: 82px;
  height: 55px;
  width: 100%;
  filter: url(#goo);
}

.ghost__tail:before {
  content: '';
  background: #fff;
  position: absolute;
  bottom: 35px;
  left: 0;
  height: 100px;
  width: 100%;
  border-radius: 40px 40px 5px 5px;
}

.ghost__rip {
  width: 15px;
  height: 28px;
  background: #fff;
  position: absolute;
  top: 15px;
  left: 0;
  box-shadow: -62px 0 0 #fff, -31px 0 0 #fff, 31px 0 0 #fff, 62px 0 0 #fff, 93px 0 0 #fff;
  border-radius: 50%;
  animation: ghost-rips 1.2s linear infinite;
}

@keyframes ghost-rips {
  0% {
    left: 0;
    top: 12px;
  }
  50% {
    left: 31px;
    top: 20px;
  }
  100% {
    left: 62px;
    top: 12px;
  }
}