html,
body {
  margin: 0;
  background: #080a09;
  color-scheme: dark;
}

html.is-booting,
html.is-booting body {
  overflow: hidden;
}

@keyframes boot-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes boot-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -42%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -42%) scale(1.08);
  }
}

@keyframes boot-shimmer {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(330%);
  }
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080a09;
  color: #f5f7f5;
  pointer-events: auto;
  overscroll-behavior: none;
  touch-action: none;
}

.boot-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.48s;
}

.boot-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.boot-glow {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 340px;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 196, 122, 0.28) 0%, transparent 70%);
  transform: translate(-50%, -42%);
  animation: boot-glow 3.2s ease-in-out infinite;
}

.boot-mark {
  position: relative;
  width: 42px;
  height: 42px;
}

.boot-mark-stroke {
  stroke: #00c47a;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  animation: boot-draw 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.boot-mark-stroke--delay {
  animation-delay: 0.22s;
}

.boot-wordmark {
  position: relative;
  margin: 22px 0 0;
  padding-left: 0.22em;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
  color: #f5f7f5;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.boot-wordmark span {
  color: #00c47a;
}

.boot-kicker {
  position: relative;
  margin: 14px 0 0;
  padding-left: 0.2em;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9aa49e;
  user-select: none;
}

.boot-bar {
  position: relative;
  width: 140px;
  height: 2px;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.boot-bar-fill {
  width: 38%;
  height: 100%;
  border-radius: 999px;
  background: #00c47a;
  box-shadow: 0 0 14px rgba(0, 196, 122, 0.6);
  animation: boot-shimmer 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.boot-loader.is-done .boot-bar-fill {
  width: 100%;
  animation: none;
  transform: none;
  transition: width 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .boot-glow,
  .boot-mark-stroke,
  .boot-bar-fill {
    animation: none !important;
  }

  .boot-mark-stroke {
    stroke-dashoffset: 0;
  }

  .boot-loader.is-leaving {
    transition-duration: 0.01s;
  }

  .boot-bar-fill {
    width: 100%;
    transform: none;
  }
}
