#app-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
  color: #171717;
  font:
    14px/1.6 'Be Vietnam Pro',
    system-ui,
    sans-serif;
  text-align: center;
}

#app-splash img {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 28px;
}

#app-splash[hidden] {
  display: none;
}

#app-splash[data-updating] img {
  animation: app-splash-breathe 2s ease-in-out infinite;
}

@keyframes app-splash-breathe {
  50% {
    opacity: 0.65;
    transform: scale(0.96);
  }
}

.app-splash-spinner {
  width: 24px;
  height: 24px;
  margin: 0 auto 16px;
  border: 2px solid #e5e5e5;
  border-top-color: #059669;
  border-radius: 50%;
  animation: app-splash-spin 0.8s linear infinite;
}

#app-splash p {
  max-width: 340px;
  margin: 0;
}

#app-splash button {
  margin-top: 20px;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: #059669;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

#app-splash button[hidden],
#app-splash[data-error] .app-splash-spinner {
  display: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .app-splash-spinner {
    animation: none;
  }
  #app-splash[data-updating] img {
    animation: none;
  }
}
