body {
  margin: 0;
  padding: 0;
}

.splash-screen {
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #f2f3f8;
  font-family: Poppins, Helvetica, 'sans-serif';
  overflow: hidden;
}

.splash-orbit-stage {
  position: relative;
  width: 330px;
  height: 264px;
  display: grid;
  place-items: center;
  margin-left: calc(100vw - 100%);
}

.splash-glow {
  position: absolute;
  width: 320px;
  height: 292px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.74) 0, rgba(226, 243, 255, 0.46) 30%, rgba(116, 188, 255, 0.16) 55%, rgba(248, 252, 255, 0) 76%);
  filter: blur(6px);
  transform: translateY(-18px);
  animation: splash-glow-breathe 5.2s ease-in-out infinite;
}

.splash-orbit {
  position: absolute;
  z-index: 1;
  width: 322px;
  height: 88px;
  border: 1px solid rgba(96, 171, 245, 0.34);
  border-top-color: rgba(255, 255, 255, 0.86);
  border-left-color: rgba(255, 255, 255, 0.62);
  border-bottom-color: rgba(44, 144, 232, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 46% 46%, rgba(255, 255, 255, 0.74) 0, rgba(244, 251, 255, 0.56) 28%, rgba(201, 231, 255, 0.28) 56%, rgba(127, 195, 255, 0.08) 78%, rgba(255, 255, 255, 0) 100%);
  box-shadow:
    0 0 18px rgba(0, 149, 232, 0.08),
    inset 0 0 14px rgba(255, 255, 255, 0.58);
  transform: translateY(8px) rotate(-15deg);
  animation: splash-orbit-drift 6.8s ease-in-out infinite;
}

.splash-orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.68);
  border-bottom-color: rgba(0, 149, 232, 0.16);
  filter: blur(0.2px);
}

.splash-mascot {
  position: relative;
  z-index: 2;
  width: 128px;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 12px rgba(39, 83, 132, 0.1));
}

.splash-sparkle {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8bc4ff;
  box-shadow: 0 0 12px rgba(0, 149, 232, 0.28);
  opacity: 0.48;
  animation: splash-sparkle-pulse 3.6s ease-in-out infinite;
}

.splash-sparkle::before,
.splash-sparkle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  opacity: 0.72;
}

.splash-sparkle::after {
  width: 12px;
  height: 1px;
}

.splash-sparkle-1 {
  top: 28px;
  left: 68px;
  color: #6eb1ff;
}

.splash-sparkle-2 {
  top: 76px;
  right: 58px;
  width: 3px;
  height: 3px;
  color: #b9ddff;
  animation-delay: 0.7s;
}

.splash-sparkle-3 {
  bottom: 88px;
  left: 46px;
  width: 4px;
  height: 4px;
  color: #ffc93d;
  background: #ffc93d;
  box-shadow: 0 0 10px rgba(255, 201, 61, 0.18);
  animation-delay: 1.4s;
}

.splash-sparkle-4 {
  right: 72px;
  bottom: 68px;
  width: 4px;
  height: 4px;
  color: #7fbfff;
  animation-delay: 2.1s;
}

.splash-ground-shadow {
  position: absolute;
  z-index: 0;
  bottom: 24px;
  width: 150px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(0, 108, 232, 0.38) 0, rgba(62, 143, 238, 0.28) 42%, rgba(125, 187, 255, 0.08) 72%, rgba(125, 187, 255, 0) 100%);
  filter: blur(9px);
  transform: translateY(1px);
  animation: splash-shadow-breathe 4.8s ease-in-out infinite;
}

.splash-loading-text {
  margin-top: 14px;
  margin-left: calc(100vw - 100%);
  color: #0073d8;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

#root {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

@keyframes splash-orbit-drift {
  0%,
  100% {
    opacity: 0.82;
    transform: translateY(8px) rotate(-15deg) translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.96;
    transform: translateY(8px) rotate(-15deg) translate3d(2px, -1px, 0) scale(1.012);
  }
}

@keyframes splash-glow-breathe {
  0%,
  100% {
    opacity: 0.68;
    transform: translateY(-18px) scale(0.98);
  }

  50% {
    opacity: 0.94;
    transform: translateY(-18px) scale(1.045);
  }
}

@keyframes splash-sparkle-pulse {
  0%,
  100% {
    opacity: 0.26;
    transform: scale(0.84);
  }

  45% {
    opacity: 0.76;
    transform: scale(1.12);
  }
}

@keyframes splash-shadow-breathe {
  0%,
  100% {
    opacity: 0.84;
    transform: translateY(1px) scaleX(0.97);
  }

  50% {
    opacity: 0.96;
    transform: translateY(1px) scaleX(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-glow,
  .splash-orbit,
  .splash-sparkle,
  .splash-ground-shadow {
    animation: none;
  }
}
