body {
  margin: 0;
  background: #0b1220;
  font-family: system-ui, -apple-system, sans-serif;
}

#mip-boot-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #0b1220;
  color: #e2e8f0;
  overflow: hidden;
  transition: opacity 0.35s ease, background 0.6s ease-out, color 0.4s ease-out;
}

#mip-boot-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/hero-bg.webp") center/cover no-repeat;
  transform: scale(1.02);
}

#mip-boot-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.78) 0%,
    rgba(15, 23, 42, 0.6) 55%,
    rgba(2, 6, 23, 0.9) 100%
  );
}

@media (max-width: 768px) {
  #mip-boot-loader::before {
    background-image: url("/hero-bg-mobile.webp");
  }
}

#mip-boot-loader.is-fading {
  opacity: 0;
  pointer-events: none;
}

.boot-content {
  max-width: 720px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.boot-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d4a853 0%, #b8860b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(212, 168, 83, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

.boot-logo svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.boot-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.boot-subtitle {
  opacity: 0.8;
  line-height: 1.5;
  font-size: 15px;
  margin-bottom: 4px;
}

.boot-phase-indicator {
  font-size: 12px;
  opacity: 0.6;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.boot-progress {
  margin-top: 16px;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
}

#mip-boot-loader.phase-js .boot-progress {
  background: rgba(12, 74, 110, 0.15);
}

#mip-boot-loader.phase-react .boot-progress {
  background: rgba(255, 255, 255, 0.15);
}

.boot-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #d4a853 0%, #b8860b 100%);
  border-radius: 2px;
  width: 0%;
  animation: progress-fill 3s ease-out forwards;
}

#mip-boot-loader.phase-js .boot-progress-bar {
  background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
}

#mip-boot-loader.phase-react .boot-progress-bar {
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
}

.boot-loading-text {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.7;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@keyframes progress-fill {
  0% {
    width: 0%;
  }

  20% {
    width: 25%;
  }

  50% {
    width: 60%;
  }

  80% {
    width: 85%;
  }

  100% {
    width: 95%;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 10px 40px rgba(212, 168, 83, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 15px 50px rgba(212, 168, 83, 0.5);
    transform: scale(1.02);
  }
}
