body {
  background: #0f131e;
  text-align: center;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}

body * {
  font-size: 1em;
}

.mycard-header {
  position: relative;
  z-index: 5000;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, .6);
  border-bottom: 1px solid rgba(150, 150, 150, .2);
  width: 100%;
  height: 40px;
}

.mycard-header > a:first-child {
  display: inline-block;
  position: absolute;
  left: 2%;
  top: 0;
}

.wrapper {
  position: relative;
}

.wrapper > * {
  z-index: 20;
}

.neos-header {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 22em 0 4em;
}

.neos-header::after {
  background-image: url(/neos-assets/monster.png);
  background-position: center -50px;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-repeat: no-repeat;
  z-index: 1;
}

.neos-header h1 {
  margin-bottom: 1em;
  padding: 0 1.5em;
  position: relative;
  z-index: 2;
}

.neos-header button {
  position: relative;
  background-color: transparent;
  border-style: none;
  color: rgba(255, 255, 255, .8);
  font-family: var(--theme-font);
  font-size: 2.5em;
  font-weight: bold;
  text-shadow: 0 0 0.5em #a2162d, 0 0 0.5em #f80000d6;
  z-index: 2;
}

.neos-header button:hover {
  text-shadow: 0 0 0.5em #2137bd, 0 0 0.5em #2137bd;
}

.particles-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.particle-container {
  $particleNum: 200;
  $particleColor: hsl(180, 100%, 80%);

  position: absolute;
  transform: translateY(-10vh);
  animation-iteration-count: infinite;
  animation-timing-function: linear;

  .particle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    mix-blend-mode: screen;
    background-image: radial-gradient(
      hsl(180, 100%, 80%),
      hsl(180, 100%, 80%) 10%,
      hsla(180, 100%, 80%, 0) 56%
    );

    animation: fadein-frames 200ms infinite, scale-frames 2s infinite;
  }

  @keyframes fadein-frames {
    0% {
      opacity: 1;
    }

    50% {
      opacity: 0.7;
    }

    100% {
      opacity: 1;
    }
  }

  @keyframes scale-frames {
    0% {
      transform: scale3d(0.4, 0.4, 1);
    }

    50% {
      transform: scale3d(2.2, 2.2, 1);
    }

    100% {
      transform: scale3d(0.4, 0.4, 1);
    }
  }

  $particleBaseSize: 10;

  @for $i from 1 to $particleNum {
    &:nth-child(#{$i}) {
      $particleSize: random($particleBaseSize);
      width: $particleSize + px;
      height: $particleSize + px;

      $startPositionY: random(10) + 80;
      $framesName: "move-frames" + $i;
      $moveDuration: 28000 + random(9000) + ms;

      animation-name: #{$framesName};
      animation-duration: $moveDuration;
      animation-delay: random(37000) + ms;

      @keyframes #{$framesName} {
        from {
          transform: translate3d(
            #{random(100) + vw},
            #{$startPositionY + vh},
            0
          );
        }

        to {
          transform: translate3d(
            #{random(100) + vw},
            #{- $startPositionY - random(30) + vh},
            0
          );
        }
      }

      .particle {
        animation-delay: random(4000) + ms;
      }
    }
  }
}
