#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(700px 420px at 50% 40%, #e3eefc, #f4f8fd 70%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
[data-theme='dark'] #splash {
  background: radial-gradient(700px 420px at 50% 40%, #13305e, #0c121c 70%);
}
#splash.hide {
  opacity: 0;
  visibility: hidden;
}
.splash-inner {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}
.splash-logo {
  position: relative;
  width: 8.5rem;
  height: 8.5rem;
}
.splash-logo img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 60, 146, 0.3);
  animation: splash-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.splash-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 84, 182, 0.35);
  animation: splash-ring 1.8s ease-out 0.5s infinite;
}
.splash-bar {
  width: 7rem;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 84, 182, 0.15);
  animation: splash-fade 0.5s ease 0.35s both;
}
.splash-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: #0054b6;
  animation: splash-load 1.1s ease-in-out infinite;
}
[data-theme='dark'] .splash-bar span {
  background: #2f7fe8;
}
@keyframes splash-in {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes splash-ring {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.45); }
}
@keyframes splash-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes splash-load {
  from { transform: translateX(110%); }
  to { transform: translateX(-260%); }
}
@media (prefers-reduced-motion: reduce) {
  #splash *,
  .splash-logo::before {
    animation: none !important;
  }
}
