:root {
  --startup-base: #fffdf9;
  --startup-brand: #2d185c;
  --startup-track: #efe5f5;
  --startup-accent: #7952a0;
}

:root[data-startup-theme='dark'] {
  --startup-base: #1e1829;
  --startup-brand: #392366;
  --startup-track: #352541;
  --startup-accent: #c9a1ee;
}

#astro-startup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--startup-base);
}

.astro-startup-logo {
  width: 72px;
  height: 72px;
  background: var(--startup-brand);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgb(43 24 90 / 24%);
}

.astro-startup-orbit,
.astro-startup-star {
  transform-box: fill-box;
  transform-origin: center;
}

.astro-startup-orbit {
  animation: astro-orbit 12s linear infinite;
}

.astro-startup-star {
  animation: astro-twinkle 2.4s ease-in-out infinite;
}

.astro-startup-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  overflow: hidden;
  background: var(--startup-track);
}

.astro-startup-progress::after {
  display: block;
  width: 36%;
  height: 100%;
  background: var(--startup-accent);
  content: '';
  animation: astro-progress 1.5s ease-in-out infinite;
}

@keyframes astro-orbit {
  to { transform: rotate(360deg); }
}

@keyframes astro-twinkle {
  0%, 100% { opacity: .45; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.35); }
}

@keyframes astro-progress {
  from { transform: translateX(-100%); }
  to { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
  .astro-startup-orbit,
  .astro-startup-star,
  .astro-startup-progress::after {
    animation: none;
  }
}

/* The debug compiler adds its own blue bar while it loads Dart modules. */
body > .flutter-loader {
  display: none !important;
}
