html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #ffffff;
}

html[data-boot-theme="dark"],
html[data-boot-theme="dark"] body {
  background: #0d131a;
}

#boot-splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #ffffff;
  transition: opacity 250ms ease-out;
  z-index: 9999;
  color: #1f252c;
}

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

#boot-splash .boot-brand-lockup {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: max(22px, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f252c;
  font: 700 15px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  user-select: none;
}

#boot-splash .boot-brand-lockup img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  filter: drop-shadow(0 8px 16px rgba(14, 23, 36, 0.14));
}

#boot-splash .brand-logo {
  display: block;
  width: min(420px, 78vw);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(14, 23, 36, 0.12));
  animation: boot-logo-pulse 2800ms ease-in-out infinite;
  transform-origin: center;
  will-change: transform, opacity;
}

#boot-splash .brand-logo.logo-dark {
  display: none;
}

#boot-splash .boot-stage {
  margin: 24px 24px 0;
  min-height: 22px;
  font: 600 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-align: center;
  color: #46515f;
}

#boot-splash .boot-substage {
  margin: 4px 24px 0;
  min-height: 18px;
  font: 500 12px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-align: center;
  color: #6b7787;
}

@keyframes boot-logo-pulse {
  0%,
  100% {
    transform: scale(0.985);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.018);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #boot-splash .brand-logo {
    animation: none;
    opacity: 1;
  }
}

html[data-boot-theme="dark"] #boot-splash {
  background: #0d131a;
  color: #f8fafc;
}

html[data-boot-theme="dark"] #boot-splash .boot-stage {
  color: #dde6f3;
}

html[data-boot-theme="dark"] #boot-splash .boot-substage {
  color: #94a3b8;
}

html[data-boot-theme="dark"] #boot-splash .boot-brand-lockup {
  color: #f8fafc;
}

html[data-boot-theme="dark"] #boot-splash .boot-brand-lockup img {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}

html[data-boot-theme="dark"] #boot-splash .brand-logo.logo-light {
  display: none;
}

html[data-boot-theme="dark"] #boot-splash .brand-logo.logo-dark {
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

html[data-boot-theme="light"] #boot-splash .brand-logo.logo-light {
  display: block;
}

html[data-boot-theme="light"] #boot-splash .brand-logo.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  html:not([data-boot-theme]),
  html:not([data-boot-theme]) body,
  html:not([data-boot-theme]) #boot-splash {
    background: #0d131a;
  }

  html:not([data-boot-theme]) #boot-splash {
    color: #f8fafc;
  }

  html:not([data-boot-theme]) #boot-splash .boot-stage {
    color: #dde6f3;
  }

  html:not([data-boot-theme]) #boot-splash .boot-substage {
    color: #94a3b8;
  }

  html:not([data-boot-theme]) #boot-splash .boot-brand-lockup {
    color: #f8fafc;
  }

  html:not([data-boot-theme]) #boot-splash .boot-brand-lockup img {
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
  }

  html:not([data-boot-theme]) #boot-splash .brand-logo.logo-light {
    display: none;
  }

  html:not([data-boot-theme]) #boot-splash .brand-logo.logo-dark {
    display: block;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
  }
}

@media (max-width: 560px) {
  #boot-splash .boot-brand-lockup {
    top: max(14px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    font-size: 14px;
  }

  #boot-splash .boot-brand-lockup img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
}
