fuse-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: linear-gradient(to bottom, #008FD3, #0A195F);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
  opacity: 1;
  overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
  opacity: 0;
  pointer-events: none;
}

.splash-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 2;
}

/* === Particles (Bubbles) === */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particles li {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: bubble 12s linear infinite;
  bottom: -100px;
}

.particles li:nth-child(1) {
  left: 5%;
  animation-delay: 0s;
  width: 40px;
  height: 40px;
}

.particles li:nth-child(2) {
  left: 18%;
  animation-delay: 1.5s;
  width: 65px;
  height: 65px;
}

.particles li:nth-child(3) {
  left: 30%;
  animation-delay: 0.7s;
  width: 50px;
  height: 50px;
}

.particles li:nth-child(4) {
  left: 42%;
  animation-delay: 2.8s;
  width: 35px;
  height: 35px;
}

.particles li:nth-child(5) {
  left: 55%;
  animation-delay: 0.9s;
  width: 70px;
  height: 70px;
}

.particles li:nth-child(6) {
  left: 68%;
  animation-delay: 1.2s;
  width: 60px;
  height: 60px;
}

.particles li:nth-child(7) {
  left: 75%;
  animation-delay: 2.5s;
  width: 38px;
  height: 38px;
}

.particles li:nth-child(8) {
  left: 82%;
  animation-delay: 1.1s;
  width: 55px;
  height: 55px;
}

.particles li:nth-child(9) {
  left: 91%;
  animation-delay: 3.3s;
  width: 25px;
  height: 25px;
}

.particles li:nth-child(10) {
  left: 50%;
  animation-delay: 0.3s;
  width: 48px;
  height: 48px;
}

@keyframes bubble {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }

  100% {
    transform: translateY(-1000px) scale(1.2);
    opacity: 0;
  }
}

/* Optional Responsive */
@media (max-width: 600px) {
  .loading-ring {
    width: 120px;
    height: 120px;
  }

  .loading-ring img {
    width: 70px;
  }
}

/* Jenga animation */
.jenga-loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.jenga-logo {
  width: 250px;
  height: auto;
  animation: fadeIn 1s ease;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); /* soft white glow */
}

.jenga-loader {
  display: flex;
  gap: 8px;
  height: 40px;
  align-items: end;
}

.block1 {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 4px;
  animation: jengaUpDown 1s infinite ease-in-out;
}

.block2 {
  animation-delay: 0s;
}

.block3 {
  animation-delay: 0.1s;
}

.block4 {
  animation-delay: 0.2s;
}

.block5 {
  animation-delay: 0.3s;
}

.block6 {
  animation-delay: 0.4s;
}

@keyframes jengaUpDown {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-25px);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}