body { margin: 0; }
.loading-screen {
  box-sizing: border-box;
  min-height: 100svh;
  width: 100%;
  padding: 20px;
  display: grid;
  place-items: center;
  background: #080e16;
  color: #f5f8fc;
  font-family: system-ui, sans-serif;
}
.loading-frame {
  position: relative;
  width: min(100%, calc((100svh - 40px) * 16 / 9));
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 40%, #244559, #0c1722 72%);
  box-shadow: 0 0 0 1px #d9b66c40, 0 18px 60px #0005;
}
.loading-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.loading-artwork-unavailable .loading-artwork { visibility: hidden; }
.loading-status {
  position: absolute;
  bottom: clamp(10px, 3vw, 32px);
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 12px 20px;
  border: 1px solid #afdee33d;
  border-radius: 10px;
  background: #081321d9;
  text-align: center;
}
.loading-status p { margin: 6px 0 10px; font-size: clamp(12px, 1.8vw, 15px); line-height: 1.4; }
.loading-meter { height: 3px; border-radius: 4px; overflow: hidden; background: #a4dbe329; }
.loading-meter i { display: block; height: 100%; width: 32%; background: linear-gradient(90deg, #f8cc73, #80e8ed); border-radius: inherit; animation: loading-travel 1600ms ease-in-out infinite alternate; }
.loading-screen-compact { min-height: 0; padding: 0; background: transparent; }
.loading-screen-compact .loading-frame { width: 100%; }
@keyframes loading-travel { from { transform: translateX(0); } to { transform: translateX(212%); } }
@media (max-width: 600px) {
  .loading-screen { padding: 10px; }
  .loading-frame { width: 100%; min-height: 280px; }
  .loading-status { padding: 8px 12px; }
  .loading-screen-compact { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loading-meter i { animation: none; width: 100%; opacity: .65; }
}
