/* Shared by the HTML bootstrap and React so loading starts before JS arrives. */
html { background: #01040a; }
html.page-loading, .page-loading body { overflow: hidden; }
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f5f7fa;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 42%, rgb(0 168 255 / 0.18), transparent 18rem),
    radial-gradient(circle at 62% 58%, rgb(109 93 252 / 0.12), transparent 19rem),
    #020617;
}
.loading-screen::before {
  content: "";
  position: absolute;
  inset: -26px;
  opacity: 0.18;
  background: radial-gradient(circle at 1px 1px, rgb(245 247 250 / 0.38) 1px, transparent 0) 0 0 / 26px 26px;
  animation: loading-drift 16s linear infinite;
}
.loading-orbit {
  position: absolute;
  width: min(60vw, 28rem);
  aspect-ratio: 1;
  border: 1px solid rgb(56 189 248 / 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 34px rgb(56 189 248 / 0.08), 0 0 54px rgb(56 189 248 / 0.1);
  animation: loading-spin 7s linear infinite;
}
.loading-orbit::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 24px rgb(56 189 248 / 0.85);
}
.loading-card {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 2rem), 24rem);
  justify-items: center;
  gap: 0.9rem;
  padding: 2rem;
  border: 1px solid rgb(56 189 248 / 0.18);
  border-radius: 8px;
  background: rgb(5 7 13 / 0.68);
  box-shadow: 0 28px 90px rgb(0 0 0 / 0.34);
  backdrop-filter: blur(20px);
}
.loading-card img { width: 10rem; height: auto; }
.loading-card p { margin: 0; color: #dbeafe; font-size: 0.9rem; font-weight: 700; text-align: center; }
.loading-card strong { color: #38bdf8; font-size: 0.92rem; }
.loading-card button { padding: 0.6rem 1rem; border: 1px solid #38bdf8; border-radius: 6px; background: #081426; color: #dbeafe; cursor: pointer; font: inherit; }
.loading-bar { width: 100%; height: 0.56rem; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / 0.08); }
.loading-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #67e8f9, #38bdf8, #8b5cf6); box-shadow: 0 0 24px rgb(56 189 248 / 0.42); transition: width 220ms ease; }
.loading-screen--leaving { animation: loading-exit 450ms ease-in-out both; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes loading-drift { to { transform: translate(26px, 26px); } }
@keyframes loading-exit { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .loading-orbit, .loading-screen::before { animation: none; }
  .loading-bar span { transition: none; }
  .loading-screen--leaving { animation-duration: 1ms; }
}
