body {
  margin: 0;
  padding: 0;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 42%, rgba(94, 183, 31, 0.12), transparent 36%),
    linear-gradient(180deg, #f7fbf3 0%, #f5f7fb 100%);
  color: #0b173d;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.splash-progress-track {
  position: relative;
  width: min(520px, calc(100vw - 48px));
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(142, 160, 189, 0.18);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.06);
}

.splash-progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #5eb71f 0%, #8fd75c 58%, #ff8a00 100%);
  box-shadow: 0 10px 28px rgba(94, 183, 31, 0.24);
  animation: dadata-splash-progress 3.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.splash-progress-track span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: dadata-progress-shine 1.25s ease-in-out infinite;
}

.splash-screen.is-complete .splash-progress-track span {
  width: 100%;
  transition: width 220ms ease-out;
}

@keyframes dadata-splash-progress {
  0% {
    width: 12%;
  }

  45% {
    width: 58%;
  }

  75% {
    width: 82%;
  }

  100% {
    width: 92%;
  }
}

@keyframes dadata-progress-shine {
  to {
    transform: translateX(120%);
  }
}

[data-bs-theme="dark"] .splash-screen {
  background:
    radial-gradient(circle at 50% 42%, rgba(94, 183, 31, 0.14), transparent 36%),
    linear-gradient(180deg, #0d1323 0%, #141a2b 100%);
}

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

@media (prefers-reduced-motion: reduce) {
  .splash-progress-track span,
  .splash-progress-track span::after {
    animation: none;
  }

  .splash-progress-track span {
    width: 86%;
  }
}
