header {
  background-color: #160635;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  padding: 24px;
  box-sizing: border-box;
  z-index: 10;
  display: flex;
  align-items: center;
}
header b {
  margin-right: 6px;
}
header img {
  margin-right: 10px;
}
.backdrop {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url('../assets/level/level-bg.svg') no-repeat;
  background-size: cover;
  background-position: bottom;
}
.level-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100vw;
  height: 100vh;
}
.level-content .spaceship {
  padding: 0 20px;
}
.level-content .spaceship,
.level-content .robot {
  display: flex;
  align-items: flex-end;
  justify-content: end;
  box-sizing: border-box;
  width: 20%;
  flex-grow: 2;
  padding-bottom: 12.5vh;
  text-align: center;
}
.level-content .spaceship .shadow,
.level-content .robot .shadow {
  position: relative;
  display: inline-block;
  top: -20px;
  width: 60%;
}
.level-content .robot canvas {
  width: 100%;
  max-width: 400px;
  min-width: 240px;
}
.level-content .robot .shadow {
  width: 30%;
}
.level-content .rocketship {
  max-width: 100%;
  position: relative;
  z-index: 1;
  display: none;
}
.level-content .rocketship.active {
  display: inline-block;
}
.level-content .content {
  width: 60%;
  max-width: 800px;
  padding: 120px 20px;
  box-sizing: border-box;
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.level-content .content .card {
  padding: 24px;
  min-height: 480px;
  box-sizing: border-box;
  background-color: #fff;
  color: #333;
  border-radius: 40px;
}
.content::-webkit-scrollbar {
  display: none;
}
.achievement {
  position: fixed;
  bottom: -300px;
  left: 50%;
  width: 640px;
  transform: translateX(-50%);
  background-color: #160635;
  background-image: url('../assets/level/ach-bg.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 100% center;
  display: flex;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 60px;
  border: 4px solid #eee;
  transition: all 1s ease-in-out;
}
.achievement.active {
  transition-duration: 0.2s;
  bottom: 60px;
  animation: show-bg 1s ease-in-out forwards;
}
.achievement.active .ach-icon {
  animation-delay: 0.2s;
  animation: ach-in 0.4s ease-in-out forwards;
}
.achievement .ach-icon {
  position: relative;
  width: 120px;
  height: 120px;
  bottom: -5px;
  margin-right: 20px;
}
.achievement .ach-icon .glow,
.achievement .ach-icon .medal {
  position: absolute;
  left: 50%;
  width: 100%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.achievement .ach-icon .glow {
  width: 140%;
  animation: spin 10s linear infinite;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 50px;
  padding: 14px 20px;
  margin-bottom: 10px;
  background-color: #ECEAFD;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}
.nav-link .color-blobs {
  height: 28px;
}
.nav-link .color-blobs > div {
  border: 2px solid #fff;
}
.nav-link:hover {
  cursor: pointer;
  background-color: #CDC9F5;
}
.planet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25vh;
}
.planet .planet-surface {
  height: 100%;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  background: url('../assets/level/planet-surface.svg') no-repeat;
  background-size: cover;
  background-position: center;
}
.planet .planet-color {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  mask: url('../assets/level/planet-color.svg') no-repeat;
  mask-size: cover;
  mask-position: center;
  -webkit-mask: url('../assets/level/planet-color.svg') no-repeat;
  -webkit-mask-size: cover;
  -webkit-mask-position: center;
}
.planet .planet-color.blue {
  background-color: #7470DE;
}
.planet .planet-color.blue1 {
  background-color: #CDC9F5;
}
.planet .planet-color.red {
  background-color: #EA3F75;
}
.planet .planet-color.red1 {
  background-color: #FDC1D4;
}
.planet .planet-color.green {
  background-color: #1BBF6D;
}
.planet .planet-color.green1 {
  background-color: #92EBBF;
}
.planet .planet-color.yellow {
  background-color: #F4C037;
}
.planet .planet-color.yellow1 {
  background-color: #F8D67C;
}
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(359.9deg);
  }
}
@keyframes show-bg {
  0% {
    background-position: 300% center;
  }
  100% {
    background-position: 100% center;
  }
}
@keyframes ach-in {
  0% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
