body {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  height: 100vh;
  font-family: Arial, sans-serif;
}

.animation-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

.creature {
  position: absolute;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
}

.creature img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.sparkles {
  position: absolute;
  width: 200px;
  height: 200px;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px white;
}

/* Individual creature animations - will be dynamically set via JavaScript */
.creature {
  /* Width and height will be set dynamically via JavaScript */
}

@keyframes flyCreature {
  0% {
    transform: translateX(0) translateY(0) rotate(30deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateX(calc(100vw + 800px)) translateY(calc(-100vh - 200px)) rotate(30deg);
    opacity: 0;
  }
}

/* Sparkle animations for each creature */
.sparkle:nth-child(1) {
  animation: sparkle1 5s ease-in-out infinite;
}

.sparkle:nth-child(2) {
  animation: sparkle2 5s ease-in-out infinite;
}

.sparkle:nth-child(3) {
  animation: sparkle3 5s ease-in-out infinite;
}

.sparkle:nth-child(4) {
  animation: sparkle4 5s ease-in-out infinite;
}

.sparkle:nth-child(5) {
  animation: sparkle5 5s ease-in-out infinite;
}

.sparkle:nth-child(6) {
  animation: sparkle6 5s ease-in-out infinite;
}

@keyframes sparkle1 {

  0%,
  10%,
  90%,
  100% {
    opacity: 0;
    transform: scale(0) translate(-40px, 20px) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1) translate(-40px, 20px) rotate(180deg);
  }
}

@keyframes sparkle2 {

  0%,
  10%,
  90%,
  100% {
    opacity: 0;
    transform: scale(0) translate(-80px, 40px) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.2) translate(-80px, 40px) rotate(360deg);
  }
}

@keyframes sparkle3 {

  0%,
  10%,
  90%,
  100% {
    opacity: 0;
    transform: scale(0) translate(-120px, 30px) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(0.8) translate(-120px, 30px) rotate(270deg);
  }
}

@keyframes sparkle4 {

  0%,
  10%,
  90%,
  100% {
    opacity: 0;
    transform: scale(0) translate(-60px, 60px) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.1) translate(-60px, 60px) rotate(450deg);
  }
}

@keyframes sparkle5 {

  0%,
  10%,
  90%,
  100% {
    opacity: 0;
    transform: scale(0) translate(-100px, 50px) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(0.9) translate(-100px, 50px) rotate(540deg);
  }
}

@keyframes sparkle6 {

  0%,
  10%,
  90%,
  100% {
    opacity: 0;
    transform: scale(0) translate(-140px, 70px) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.3) translate(-140px, 70px) rotate(720deg);
  }
}

.loading-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  font-size: 18px;
  text-align: center;
}
