.boot-screen {
  --boot-bg: #f7f9ff;
  --boot-text: #162549;
  --boot-muted: #8592ac;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    radial-gradient(ellipse at 34% 38%, #e4e9ff99, transparent 40%),
    radial-gradient(ellipse at 67% 54%, #d9f5fb88, transparent 35%),
    var(--boot-bg);
  color: var(--boot-text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  isolation: isolate;
}
.boot-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#859ac50a 1px, transparent 1px),
    linear-gradient(90deg, #859ac50a 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 68%);
  pointer-events: none;
}
.boot-content {
  text-align: center;
  padding: 48px 24px;
  position: relative;
  transform: translateY(-16px);
}
.boot-emblem {
  width: 184px;
  height: 184px;
  margin: 0 auto 30px;
  position: relative;
  display: grid;
  place-items: center;
}
.boot-emblem:before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    #91bcff44,
    #c5adff33,
    #80e0e744,
    #91bcff44
  );
  filter: blur(22px);
  animation: boot-breathe 4s ease-in-out infinite;
}
.boot-logo {
  position: relative;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: linear-gradient(145deg, #ffffffed, #ffffff88);
  border: 1px solid #fff;
  box-shadow:
    0 20px 65px #647ccb1c,
    inset 0 1px 0 #fff;
  transform: rotate(-7deg);
}
.boot-symbol {
  width: 68px;
  height: 64px;
  display: block;
  position: relative;
  overflow: hidden;
  transform: rotate(7deg);
}
.boot-symbol img {
  position: absolute;
  width: 279px;
  height: auto;
  max-width: none;
  left: -59.5px;
  top: -15.3px;
}

.boot-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #819bd924;
  animation: boot-turn 12s linear infinite;
}
.boot-orbit:after {
  content: "";
  position: absolute;
  top: 19px;
  left: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ea8ff;
  box-shadow: 0 0 14px #7ea8ff77;
}
.boot-orbit-two {
  inset: -18px;
  border-style: dashed;
  border-color: #819bd91a;
  animation-direction: reverse;
  animation-duration: 24s;
  transform: rotate(90deg);
}
.boot-orbit-two:after {
  background: #86d6db;
  width: 4px;
  height: 4px;
  top: 27px;
  left: 31px;
}
.boot-spark {
  position: absolute;
  right: 19px;
  top: 33px;
  width: 13px;
  height: 13px;
  background: #94baff;
  clip-path: polygon(
    50% 0,
    62% 38%,
    100% 50%,
    62% 62%,
    50% 100%,
    38% 62%,
    0 50%,
    38% 38%
  );
}
.boot-wordmark {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 5px;
  line-height: 1.3;
}
.boot-wordmark span {
  display: block;
  font-size: 9px;
  letter-spacing: 4.3px;
  margin: 10px 0 0;
  color: #7088b4;
  font-weight: 600;
}
.boot-tagline {
  font-size: 13px;
  letter-spacing: 1px;
  margin: 25px 0 32px;
  color: var(--boot-muted);
  line-height: 1.7;
}
.boot-progress {
  height: 3px;
  width: 128px;
  background: #7d9dcc1c;
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
}
.boot-progress span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #7ad8e5, #548bff, #ae9cff);
  animation: boot-flow 1.8s ease-in-out infinite alternate;
}
.boot-status {
  font-size: 11px;
  color: var(--boot-muted);
  margin: 15px 0 0;
  line-height: 1.8;
  letter-spacing: 0.5px;
}
.boot-footer {
  position: absolute;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--boot-muted);
  opacity: 0.75;
  pointer-events: none;
}
.boot-retry {
  border: 1px solid #819bd930;
  background: transparent;
  color: var(--boot-text);
  font: inherit;
  font-size: 12px;
  border-radius: 9px;
  padding: 8px 18px;
  margin: 18px auto 0;
  cursor: pointer;
}
[data-theme="dark"] .boot-screen {
  --boot-bg: #10192c;
  --boot-text: #e3ebff;
  --boot-muted: #92a2c0;
  background:
    radial-gradient(ellipse at 34% 38%, #30417155, transparent 42%),
    radial-gradient(ellipse at 67% 54%, #1c4e6244, transparent 38%),
    var(--boot-bg);
}
[data-theme="dark"] .boot-logo {
  background: linear-gradient(145deg, #293c61, #1b2b47);
  border-color: #819bd944;
  box-shadow:
    0 20px 65px #02081844,
    inset 0 1px 0 #ffffff15;
}
@keyframes boot-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes boot-flow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(120%);
  }
}
@keyframes boot-breathe {
  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}
@media (max-width: 600px) {
  .boot-emblem {
    transform: scale(0.9);
    margin-bottom: 22px;
  }
  .boot-wordmark {
    font-size: 29px;
  }
  .boot-tagline {
    font-size: 12px;
  }
  .boot-footer {
    font-size: 7px;
    letter-spacing: 2px;
  }
}
@media (max-height: 550px) {
  .boot-content {
    padding: 40px 24px;
    transform: none;
  }
  .boot-emblem {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
  }
  .boot-logo {
    width: 80px;
    height: 80px;
    border-radius: 24px;
  }
  .boot-symbol {
    transform: rotate(7deg) scale(0.8);
  }
  .boot-tagline {
    margin: 18px 0;
  }
  .boot-footer {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot-screen *,
  .boot-screen :before,
  .boot-screen :after {
    animation: none !important;
  }
  .boot-progress span {
    width: 100%;
    opacity: 0.65;
  }
}
