:is(#boot-scene, .site-loader-backdrop) {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 4vw, 60px);
  overflow: hidden;
  padding: 0;
  background: #fcf9f5 url('/images/loader-ribbon.svg') center / 100% 100% no-repeat;
  opacity: 1;
  transition: opacity .22s ease;
}
:is(#boot-scene, .site-loader-backdrop).is-leaving { opacity: 0; pointer-events: none; }
.boot-logo {
  display: block;
  width: clamp(145px, 15vw, 230px);
  height: auto;
  position: relative;
}
.boot-progress {
  width: clamp(220px, 28vw, 424px);
  height: clamp(7px, .8vw, 12px);
  overflow: hidden;
  border-radius: 999px;
  background: #f8cde0;
}
.boot-progress::after {
  content: '';
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: #ec008c;
  animation: boot-progress 1.2s ease-in-out infinite;
  transform-origin: left;
}
@keyframes boot-progress { from { transform: translateX(-100%); } to { transform: translateX(334%); } }
@media (prefers-reduced-motion: reduce) {
  :is(#boot-scene, .site-loader-backdrop) { transition: none; }
  .boot-progress::after { animation: none; }
}

/* Keep the initial loader continuous until the lazy route is ready. */
body:has(#boot-scene) .site-loader-backdrop { visibility: hidden; }
