/* ===== Rotating Star Loader ===== */
.app-loading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 10em;
}

.app-loading .loading-text {
  margin-top: 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.loader-star {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
}

.star {
  width: 100%;
  aspect-ratio: 1;
  background: var(--star-color, rgba(240, 200, 100, 100));
  clip-path: polygon(50% 0, 79% 90%, 2% 35%, 98% 35%, 21% 90%);
  animation: star-spin 1.2s linear infinite;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
  border-radius: 4px; /* smooth corners on the polygon tips */
}

/* Spin animation */
@keyframes star-spin {
  to {
    transform: rotate(360deg);
  }
}

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