/* Start-up screen shown until the app has loaded: the app icon's gauge lights up and its pulse draws itself. */
html,
body {
  background: #151b26;
}

.app-loading {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #9ba6b7;
}

.app-loading .boot-icon {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 10px 30px rgb(0 0 0 / 45%));
}

.app-loading .arc {
  opacity: 0.18;
  animation: boot-arc 2.4s ease-in-out infinite;
}
.app-loading .arc.yellow {
  animation-delay: 0.3s;
}
.app-loading .arc.blue {
  animation-delay: 0.6s;
}

.app-loading .pulse {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: boot-pulse 2.4s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

.app-loading .boot-name {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #e6ebf2;
  animation: boot-name 0.6s ease-out both;
}

.app-loading .boot-slow {
  display: none;
  max-width: 320px;
  padding: 0 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}
.app-loading .boot-slow.on {
  display: block;
  animation: boot-name 0.6s ease-out both;
}
.app-loading .boot-slow button {
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid #2b3547;
  background: #222c3c;
  color: #e6ebf2;
  font: inherit;
  cursor: pointer;
}
.app-loading .boot-slow button:focus-visible {
  outline: 2px solid #4c8dff;
  outline-offset: 2px;
}

@keyframes boot-arc {
  0%,
  100% {
    opacity: 0.18;
  }
  25%,
  60% {
    opacity: 1;
  }
}

@keyframes boot-pulse {
  0% {
    stroke-dashoffset: 100;
    opacity: 1;
  }
  55% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  80% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes boot-name {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading .arc {
    animation: none;
    opacity: 1;
  }
  .app-loading .pulse {
    animation: none;
    stroke-dashoffset: 0;
  }
  .app-loading .boot-name,
  .app-loading .boot-slow.on {
    animation: none;
  }
}
