/* ==========================================================================
   All of Me spinning-heart loader
   This illustration is intentionally isolated from the shared UI stylesheet.
   ========================================================================== */
.ls-scene {
  align-items: center;
  background: var(--aom-color-surface);
  display: flex;
  flex-direction: column;
  font-family: var(--aom-font-family-brand);
  gap: 16px;
  height: 100vh;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity .4s ease;
  width: 100vw;
  z-index: 9999;
}

.ls-scene * { box-sizing: border-box; }
.ls-scene .ls-mark { height: 120px; width: 120px; }

.ls-scene .ls-orbit {
  animation: ls-spin 1.4s linear infinite;
  transform-box: view-box;
  transform-origin: 100px 100px;
}

.ls-scene .ls-upright {
  animation: ls-spin 1.4s linear infinite reverse;
  transform-box: fill-box;
  transform-origin: center;
}

.ls-scene .ls-beat {
  animation: ls-beat 1.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes ls-spin { to { transform: rotate(360deg); } }
@keyframes ls-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.06); }
  30% { transform: scale(1); }
  45% { transform: scale(1.04); }
}

.ls-scene .ls-brand {
  color: var(--aom-color-text);
  display: none;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -.3px;
  text-align: center;
}

.ls-scene.ls-compact {
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.ls-scene.ls-style-guide-preview {
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ls-scene .ls-orbit,
  .ls-scene .ls-upright,
  .ls-scene .ls-beat { animation: none; }

  .ls-scene .ls-mark { animation: ls-fade 1.6s ease-in-out infinite; }
  @keyframes ls-fade { 50% { opacity: .55; } }
}
