/*
 * First-paint fallback and motion. Loaded in the HTML head, without React.
 * The small cached monogram is always present until the motion SVG decodes.
 */
.slider-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fffdfa;
  color: #655447;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms linear;
}
html[data-theme='dark'] .slider-boot-splash {
  background: #17181b;
  color: #c3c6d0;
}
html.slider-boot-pending .slider-boot-splash {
  opacity: 1;
  visibility: visible;
  transition-delay: 120ms, 0ms;
}
.slider-boot-splash-art {
  position: relative;
  inline-size: min(680px, 94vw);
  aspect-ratio: 1250 / 650;
  flex: 0 0 auto;
}
.slider-boot-splash-fallback,
.slider-boot-splash-image {
  display: block;
  position: absolute;
  inset-block-start: 50%;
  /* Physical centering: RTL inline-start would shift the mark off-center. */
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  direction: ltr;
}
.slider-boot-splash-fallback {
  inline-size: 30%;
  block-size: auto;
  max-block-size: 60%;
  opacity: 1;
}
.slider-boot-splash-image {
  inline-size: 100%;
  block-size: 100%;
  opacity: 0;
}
html.slider-boot-motion-ready .slider-boot-splash-image {
  opacity: 1;
}
html.slider-boot-motion-ready .slider-boot-splash-fallback {
  opacity: 0;
}
.slider-boot-splash-en,
.slider-boot-splash-fa {
  font: 600 13px/1.5 system-ui, sans-serif;
  letter-spacing: 0.01em;
  margin-block-start: -12px;
}
html[lang='fa'] .slider-boot-splash-en,
html:not([lang='fa']) .slider-boot-splash-fa {
  display: none;
}
@media (max-width: 390px) {
  .slider-boot-splash-art { inline-size: min(100%, 96vw); }
}
@media (prefers-reduced-motion: reduce) {
  .slider-boot-splash { transition: none; }
  .slider-boot-splash-image { transition: none; }
}
