.app-startup {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  width: 100%;
  height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 48% 43%, #faffef 0%, #edfff5 48%, #dcf8ed 100%);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
}

.app-startup.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-startup-leaves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.app-startup-brand {
  position: absolute;
  top: 23%;
  left: 0;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  z-index: 1;
}

.app-startup-brand img {
  display: block;
  width: 72%;
  max-width: 280px;
  height: clamp(130px, 20dvh, 190px);
  object-fit: contain;
  margin: 0 auto 3px;
}

.app-startup-brand h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(42px, 13.6vw, 58px);
  font-weight: 950;
  letter-spacing: -1.6px;
  line-height: 1.08;
  color: #147c57;
  margin: 0 0 12px;
  text-shadow: 0 2px 0 rgba(109, 208, 160, 0.16);
}

.app-startup-brand p {
  margin: 0;
  color: #54a18a;
  font-size: clamp(15px, 4.5vw, 19px);
  font-weight: 650;
  line-height: 1.3;
}

.app-startup-progress-wrapper {
  position: absolute;
  bottom: 14%;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  z-index: 1;
}

.app-startup-track {
  width: clamp(140px, 38%, 200px);
  height: 5px;
  border-radius: 99px;
  background: #cfeee1;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}

.app-startup-progress-bar {
  height: 100%;
  width: 0%;
  background: #26a785;
  border-radius: inherit;
  transition: width 0.25s ease-out;
}

.app-startup-track.is-indeterminate .app-startup-progress-bar {
  width: 35%;
  position: absolute;
  animation: app-startup-indeterminate 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes app-startup-indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200px); }
}

.app-startup-status {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #147c57;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  min-height: 18px;
  margin-bottom: 3px;
}

.app-startup-substatus {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #54a18a;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  min-height: 16px;
}

@media (max-height: 650px) {
  .app-startup-brand { top: 19%; }
}

@media (prefers-reduced-motion: reduce) {
  .app-startup-track.is-indeterminate .app-startup-progress-bar {
    animation: none;
    width: 60%;
  }
}
