/* FILE: css/loading.css */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-boot);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(108, 99, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(0, 212, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #09090d, #0d0d16 42%, #090910);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-card {
  width: min(620px, calc(100vw - 40px));
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-2xl);
  background: rgba(15, 17, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.boot-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.boot-logo-wrap {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  position: relative;
}

.boot-logo-wrap::before,
.boot-logo-wrap::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(108, 99, 255, 0.16);
  animation: spin 10s linear infinite;
}

.boot-logo-wrap::after {
  inset: 0;
  border-color: rgba(0, 212, 255, 0.12);
  animation-direction: reverse;
}

.boot-logo {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 20px rgba(108, 99, 255, 0.45));
}

.boot-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.boot-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
}

.boot-progress-wrap {
  margin-top: var(--space-8);
}

.boot-progress-track {
  width: 100%;
  height: 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.boot-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.4);
  transition: width 0.24s ease;
}

.boot-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
}

.boot-progress-label {
  color: var(--text-primary);
  font-weight: 600;
}

.boot-progress-percent {
  color: var(--text-secondary);
}

.boot-step {
  margin-top: var(--space-5);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.boot-download-meta {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

.boot-byte-row {
  margin-top: var(--space-4);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-3);
}

.boot-byte-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.boot-byte-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), var(--accent-primary));
  transition: width 0.25s ease;
}

.boot-byte-text {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.boot-hint {
  margin-top: var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}
