html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #f4f6f1;
}

@media (prefers-color-scheme: dark) {
  html, body {
    background: #0b1210;
  }
}

#launch-screen {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  color: #072518;
  background: #f4f6f1;
  text-align: center;
  font: 16px/1.5 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  #launch-screen {
    color: #f4f6f1;
    background: #0b1210;
  }
}

.launch-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.launch-brand {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.launch-progress {
  position: relative;
  width: min(240px, 60vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 37, 24, 0.14);
}

.launch-progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  border-radius: inherit;
  background: currentColor;
  animation: launch-progress 1.4s ease-in-out infinite;
}

#launch-status {
  margin: 0;
  font-size: 14px;
  opacity: 0.72;
}

#launch-screen.is-error .launch-progress {
  display: none;
}

#launch-screen.is-error #launch-status {
  color: #a03326;
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .launch-progress {
    background: rgba(244, 246, 241, 0.16);
  }

  #launch-screen.is-error #launch-status {
    color: #ffb4a8;
  }
}

@keyframes launch-progress {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(300%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-progress span {
    animation-duration: 3.2s;
  }
}
