/* Shared by the static boot shell and every React loading stage. */
.loading-splash {
  --loading-body-size: 18px;
  --loading-space: 8px;
  --loading-ink: #fff2ce;
  --loading-panel: #241b13;
  --loading-gold: #f6cb73;
}
.loading-splash,
.loading-splash.first-launch-splash {
  position: fixed;
  z-index: 10000;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100svh;
  padding: max(8px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  gap: 16px;
  overflow: hidden;
  color: var(--loading-ink);
  background: radial-gradient(ellipse at 50% 42%, #253d32, #0b1714 75%);
  font:
    600 var(--loading-body-size)/1.4 'Source Sans 3',
    system-ui,
    sans-serif;
  text-align: center;
  animation: none;
}
.loading-splash-picture {
  display: contents;
}
.loading-splash-art {
  display: block;
  flex: 1;
  min-height: 0;
  width: min(100%, 560px);
  height: 0;
  object-fit: contain;
}
.loading-splash-footer {
  box-sizing: border-box;
  flex: none;
  width: min(calc(100% - 32px), 320px);
  padding: calc(var(--loading-space) * 2);
  border-radius: calc(var(--loading-space) * 2);
  background: var(--loading-panel);
}
.loading-splash-status {
  margin: 0 0 calc(var(--loading-space) * 2);
  color: var(--loading-ink);
  font: inherit;
}
.loading-splash-progress {
  height: 16px;
  overflow: hidden;
  border: 2px solid #9d7338;
  border-radius: 999px;
  background: #100e0c;
}
.loading-splash-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--loading-gold);
  transition: width 180ms ease-out;
}
.loading-splash-progress[data-determinate='false'] .loading-splash-progress-fill {
  width: 36%;
  animation: loading-splash-wait 1.4s ease-in-out infinite alternate;
}
@keyframes loading-splash-wait {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(178%);
  }
}
:root[data-reduced-motion='true'] .loading-splash-progress-fill,
.loading-splash[data-reduced-motion='true'] .loading-splash-progress-fill {
  animation: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .loading-splash-progress-fill {
    animation: none !important;
    transition: none !important;
  }
}
