/* Boot screen shown until the app mounts (see index.html). Follows the saved theme. */
#loading-bg {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f6f6f9;
}

html[data-theme="dark"] #loading-bg {
  background: #0b0b10;
}

.loading-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-family: "Poppins", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #111118;
}

html[data-theme="dark"] .loading-logo {
  color: #f4f4f7;
}

.loading-logo svg {
  overflow: visible;
}

/* the four tiles pulse one after another, clockwise */
.loading-logo .t {
  transform-box: fill-box;
  transform-origin: center;
  animation: ss-boot-pulse 1.4s ease-in-out infinite;
}

.loading-logo .t2 {
  animation-delay: 0.175s;
}

.loading-logo .t3 {
  animation-delay: 0.35s;
}

.loading-logo .t4 {
  animation-delay: 0.525s;
}

.loading-logo span {
  animation: ss-boot-fade 1.4s ease-in-out infinite alternate;
}

@keyframes ss-boot-pulse {
  0%,
  60%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  30% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

@keyframes ss-boot-fade {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-logo .t,
  .loading-logo span {
    animation: none;
  }
}
