.app-bootstrap-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.app-bootstrap-overlay.is-hiding {
  animation: app-bootstrap-fade-out 0.18s ease-in forwards;
}

.app-bootstrap-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgb(236 137 81 / 12%), transparent 45%),
    radial-gradient(circle at 80% 80%, rgb(236 137 81 / 8%), transparent 40%),
    rgb(248 249 252 / 92%);
  backdrop-filter: blur(14px);
}

.app-bootstrap-overlay__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  min-width: min(18rem, 80vw);
  padding: 2rem 2.25rem 1.75rem;
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 88%);
  border: 1px solid rgb(236 137 81 / 18%);
  box-shadow:
    0 24px 60px rgb(15 23 42 / 10%),
    0 0 0 1px rgb(255 255 255 / 65%) inset;
}

.app-bootstrap-overlay__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
  background: rgb(236 137 81 / 12%);
}

.app-bootstrap-overlay__progress-bar {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ec8951, #f4b183);
  animation: app-bootstrap-progress 1.35s ease-in-out infinite;
}

.app-bootstrap-overlay__spinner {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
}

.app-bootstrap-overlay__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgb(236 137 81 / 18%);
  border-top-color: #ec8951;
  animation: app-bootstrap-spin 0.95s linear infinite;
}

.app-bootstrap-overlay__ring--inner {
  inset: 0.55rem;
  border-width: 2px;
  border-top-color: #f4b183;
  animation-direction: reverse;
  animation-duration: 1.15s;
}

.app-bootstrap-overlay__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #5f6b7a;
  font-family: 'BR Hendrix', system-ui, sans-serif;
}

body.dark-only .app-bootstrap-overlay__backdrop {
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--theme-color, #ffa800) 14%, transparent), transparent 45%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--theme-color, #ffa800) 10%, transparent), transparent 40%),
    rgb(15 23 42 / 92%);
}

body.dark-only .app-bootstrap-overlay__panel {
  background: rgb(30 41 59 / 92%);
  border-color: rgb(255 255 255 / 10%);
  box-shadow:
    0 24px 60px rgb(0 0 0 / 35%),
    0 0 0 1px rgb(255 255 255 / 6%) inset;
}

body.dark-only .app-bootstrap-overlay__progress {
  background: color-mix(in srgb, var(--theme-color, #ffa800) 16%, transparent);
}

body.dark-only .app-bootstrap-overlay__ring {
  border-color: color-mix(in srgb, var(--theme-color, #ffa800) 20%, transparent);
  border-top-color: var(--theme-color, #ffa800);
}

body.dark-only .app-bootstrap-overlay__ring--inner {
  border-top-color: color-mix(in srgb, var(--theme-color, #ffa800) 65%, #f4b183);
}

body.dark-only .app-bootstrap-overlay__label {
  color: rgba(255, 255, 255, 0.72);
}

body.app-bootstrapping {
  overflow: hidden;
}

body.app-bootstrapping .app-root-shell {
  visibility: hidden;
}

@keyframes app-bootstrap-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes app-bootstrap-progress {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

@keyframes app-bootstrap-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}
