/* The loading screen, linked from index.html's head so it is in place from the
   first paint (src/splash.ts). A file rather than an inline <style> since
   1 November 2026, so the Content Security Policy in _headers can take styles
   from this site alone. See-through for its first quarter second. */

.splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #3d3935;
  color: #ffffff;
  animation: splashWait 400ms both;
}

@keyframes splashWait {
  0%,
  62.5% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.splashMark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 15, 21, 0.3);
}

.splashMark img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.splash p {
  margin: 0;
  font: 600 16.875px "Lora Variable", Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.splashDots span {
  animation: splashDot 1.4s infinite both;
}

.splashDots span:nth-child(2) {
  animation-delay: 0.2s;
}

.splashDots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes splashDot {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}

@media (max-width: 1023px) {
  .splash p {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splashDots span {
    animation: none;
  }
}
