.app-startup,
#mobile-startup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  box-sizing: border-box;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: #fbf9f4;
  color: #1d332c;
  font:
    500 16px system-ui,
    -apple-system,
    sans-serif;
  text-align: center;
}
.app-dark .app-startup,
.app-dark #mobile-startup {
  background: #050507;
  color: #f1f5f9;
}
.app-startup img,
#mobile-startup img {
  width: 144px;
  height: 144px;
}
.app-startup p,
#mobile-startup p {
  margin: 0;
  max-width: 32ch;
}
.app-startup progress,
#mobile-startup progress {
  appearance: none;
  border: 0;
  overflow: hidden;
  border-radius: 2px;
  width: 144px;
  height: 4px;
  background: #c9ded5;
  color: #047857;
}
.app-startup progress::-webkit-progress-bar,
#mobile-startup progress::-webkit-progress-bar {
  background: #c9ded5;
}
.app-startup progress:indeterminate::before,
#mobile-startup progress:indeterminate::before {
  content: '';
  display: block;
  width: 45%;
  height: 100%;
  background: #047857;
  animation: startup-progress 1.6s ease-in-out infinite alternate;
}
.app-startup progress::-moz-progress-bar,
#mobile-startup progress::-moz-progress-bar {
  background: #047857;
}
.app-startup button,
#mobile-startup button {
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.app-startup button:focus-visible,
#mobile-startup button:focus-visible {
  outline: 3px solid #10b981;
  outline-offset: 4px;
}
@keyframes startup-progress {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(122%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-startup progress:indeterminate::before,
  #mobile-startup progress:indeterminate::before {
    animation: none;
    transform: translateX(61%);
  }
}
