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;
  gap: 28px;
  background: linear-gradient(165deg, #0C4A82 0%, #09335E 55%, #061F3A 100%);
}

#splash-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(107, 198, 242, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 198, 242, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
}

#splash-screen .splash-logo {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(320px, 78vw);
  height: auto;
  max-height: 110px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.splash-spinner {
  position: relative;
  z-index: 1;
  animation: rotate 2s linear infinite;
  margin: 0;
  width: 44px;
  height: 44px;
}

.splash-spinner .path {
  stroke: #0C4A82;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}
