/**************************/
/* ANIMATED ATTACK */
/**************************/
/* Bomb projectile */
.bomb {
  position: absolute;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #333 40%, #111 70% #000 100%);
  border-radius: 50%;
  border: 3px solid #666;
  pointer-events: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

/* Bomb fuse trail */
.bomb:before {
  content: "";
  position: absolute;
  top: -8px;
  left: 8px;
  width: 4px;
  height: 16px;
  background: #ff4400;
  border-radius: 2px;
  box-shadow: 0 0 4px #ff8800;
  animation: fuse-burn 0.3s infinite alternate;
}

@keyframes fuse-burn {
  0% {
    height: 16px;
    background: #ff8800;
  }
  100% {
    height: 20px;
    background: #ff4400;
    box-shadow: 0 0 8px #ff0000;
  }
}

/* Explosion */
.explosion {
  position: absolute;
  width: 140px;
  height: 140px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: 0;
  top: 0;
}

.explosion::before,
.explosion::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: blast 0.9s forwards;
}

.explosion::before {
  background: radial-gradient(
    circle at center,
    #ffffff 5%,
    #ffdd00 15%,
    #ff8800 35%,
    #ff4400 55%,
    transparent 70%
  );
  filter: blur(3px);
  animation-delay: 0s;
}

.explosion::after {
  background: radial-gradient(
    circle at center,
    #ffaa00 10% #ff6600 30%,
    transparent 60%
  );
  animation-delay: 0.12s;
  animation-duration: 1s;
}

@keyframes blast {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  40% {
    transform: scale(1.3);
    opacity: 0.95;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.explosion.smoke::before,
.explosion.smoke::after {
  animation: smoke-rise 1.4s forwards;
  background: radial-gradient(circle, #666 15%, #999 45%, transparent 80%);
}

@keyframes smoke-rise {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3.5) translateY(-50px);
    opacity: 0;
  }
}

/* Water splash */

.plunge {
  position: absolute;
  pointer-events: none;
  z-index: 100;
}

/* Vertical water jet */
.jet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 0;
  background: linear-gradient(to top, #ffffff, #80deea 40%, #26c6da);
  border-radius: 14px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px rgba(68, 170, 255, 0.9);
  animation: jet-burst 1.2s ease-out forwards;
}

@keyframes jet-burst {
  0% {
    height: 0;
  }

  45% {
    height: 220px;
    transform: translate(-50%, -100%);
  }

  100% {
    height: 160px;
    transform: translate(-50%, -80%);
    opacity: 0;
  }
}

/* White foam crown at the base */

.crown {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 40px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(230, 252, 245, 0.9) 45%,
    rgba(179, 229, 252, 0.4) 70%,
    transparent 90%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(3px);
  animation: crown-expand 1.1s ease-out forwards;
}

@keyframes crown-expand {
  0% {
    transform: translate(-50%, -50%), scale(0);
    opacity: 0.9;
  }
  60% {
    transform: translate(-50%, -50%), scale(1.4);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%), scale(2);
    opacity: 0;
  }
}

/* Chunky falling water chunks */
.chunk {
  position: absolute;
  background: #80deea;
  border-radius: 40%;
  box-shadow: 0 0 15px #26c6da;
  animation: chunk-fall 1.4s ease-in forwards;
}

@keyframes chunk-fall {
  0% {
    transform: translateY(-80%), scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100%), scale(0.4);
    opacity: 0;
  }
}

/* Deep shockwave rings */
.shockwave {
  position: absolute;
  border: 6px solid rgba(38, 198, 218, 0.55);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: shock 1.6s ease-out forwards;
}

@keyframes shock {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }

  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* ONLY ONE ELEMENT — the vertical splash column */
.vsplash {
  position: absolute;
  width: 20px;
  height: 0; /* starts at 0 height */
  left: 50%;
  top: 50%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.95),
    #80deea 50%,
    #26c6da
  );
  border-radius: 10px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(38, 198, 218, 0.7);
  pointer-events: none;
  animation: verticalSplash 1s ease-out forwards;
}

@keyframes verticalSplash {
  0% {
    height: 0;
  }
  40% {
    height: 180px;
    transform: translate(-50%, -100%);
  }
  100% {
    height: 120px;
    transform: translate(-50%, -80%);
    opacity: 0;
  }
}

/* Water splash from lottie */
.lottie-water-splash {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 100px;
  height: 100px;
}

.water-splash-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
