html,
body,
#root {
  height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--site-text, #f4f7ff);
  background: var(
    --site-bg,
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.25), transparent 38%),
    radial-gradient(circle at 80% 12%, rgba(74, 222, 128, 0.2), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(236, 72, 153, 0.16), transparent 45%),
    linear-gradient(135deg, #070b18 0%, #111827 55%, #0d1428 100%)
  );
  overflow: auto;
  overflow-y: scroll;
  scrollbar-gutter: stable both-edges;
  transition: background 0.35s ease, color 0.35s ease;
}

.initial-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.initial-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 80px rgba(2, 6, 23, 0.6);
}

.initial-loader-orb {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  background: rgba(10, 16, 34, 0.6);
  overflow: hidden;
}

.initial-loader-spinner {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 4px solid transparent;
  border-top-color: #38bdf8;
  border-right-color: #4ade80;
  animation: loader-spin 1s linear infinite;
}

.initial-loader-title {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  color: rgba(248, 250, 252, 0.95);
}

.initial-loader-subtitle {
  margin: 0;
  font-size: 12px;
  text-align: center;
  color: rgba(226, 232, 240, 0.74);
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}
