:root {
  --bootloader-bg: #040506;
  --bootloader-ink: #f3ecd8;
  --bootloader-muted: rgba(243, 236, 216, 0.58);
  --bootloader-line: rgba(243, 236, 216, 0.14);
  --bootloader-glow: rgba(195, 255, 77, 0.28);
}

.bootloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
  background: var(--bootloader-bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.bootloader.is-complete {
  opacity: 0;
  visibility: hidden;
}

.bootloader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.bootloader::before,
.bootloader::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.5;
}

.bootloader::before {
  width: 36vw;
  height: 36vw;
  min-width: 320px;
  min-height: 320px;
  left: -12vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(120, 255, 170, 0.16), transparent 72%);
}

.bootloader::after {
  width: 38vw;
  height: 38vw;
  min-width: 340px;
  min-height: 340px;
  right: -12vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(150, 110, 255, 0.14), transparent 72%);
}

.bootloader-word {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.bootloader-hud {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(96px, 15vw, 220px));
  transform: translateX(-50%);
  width: min(620px, calc(100vw - 52px));
  display: block;
  justify-items: center;
  pointer-events: none;
}

.bootloader-progress {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.bootloader-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(195, 255, 77, 0.92), rgba(243, 236, 216, 0.9));
  box-shadow:
    0 0 18px rgba(195, 255, 77, 0.28),
    0 0 42px rgba(195, 255, 77, 0.14);
  transition: width 0.35s ease;
}

@media (max-width: 900px) {
  .bootloader-hud {
    top: calc(50% + clamp(88px, 17vw, 170px));
    width: min(540px, calc(100vw - 36px));
  }
}

@media (max-width: 640px) {
  .bootloader-hud {
    width: calc(100vw - 28px);
    top: calc(50% + clamp(72px, 19vw, 128px));
  }
}
