
.rocket-animation {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: top 2s cubic-bezier(0.5, 0, 0.75, 0);
  text-align: center;
}

.rocket-animation i {
  font-size: 4rem;
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(109, 40, 217, 0.5));
}

.rocket-trail {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 150px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  border-radius: 50px;
  opacity: 0.7;
  z-index: -1;
}

.rocket-fire {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 40px;
  z-index: -1;
  overflow: hidden;
}

.rocket-fire::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 30px;
  height: 50px;
  background: linear-gradient(to bottom, #ff4500, #ff8c00, #ffd700);
  border-radius: 0 0 15px 15px;
  animation: flicker 0.2s infinite alternate;
}

.rocket-fire::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 5px;
  width: 20px;
  height: 30px;
  background: linear-gradient(to bottom, #fff, #ffd700);
  border-radius: 0 0 10px 10px;
  animation: flicker 0.15s infinite alternate;
}

.rocket-animation.launch {
  top: -120%;
}

.rocket-animation.launch .rocket-trail {
  height: 300px;
  opacity: 0.9;
}

@keyframes flicker {
  0% {
    opacity: 0.7;
    height: 40px;
  }
  100% {
    opacity: 1;
    height: 50px;
  }
}

.rocket-particles {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
}

.rocket-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #ffd700;
  border-radius: 50%;
  opacity: 0.8;
  animation: particle-fall 1s forwards;
}

@keyframes particle-fall {
  0% {
    transform: translate(0, 0);
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--x), var(--y));
    opacity: 0;
  }
}

