body:has(#root > .startup-screen) { margin: 0; background: #fff; }

.startup-screen {
  --startup-gradient: linear-gradient(135deg, #3959df, #7846d9);
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
  color: #202733;
  background: #fff;
  font-family: Alexandria, system-ui, sans-serif;
  text-align: center;
}

.startup-inner { width: min(100%, 320px); }

.startup-art {
  display: grid;
  place-items: center;
  aspect-ratio: 320 / 168;
  background: url("./startup-route.svg") center / contain no-repeat;
}

.startup-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: url("./startup-mark.svg") center / 44px no-repeat, var(--startup-gradient);
  box-shadow: 0 0 0 7px #eeeaff, 0 8px 32px #6347d930;
  overflow: hidden;
}

.startup-logo { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.startup-title { margin: 2px 0 8px; font-size: clamp(1.4rem, 5vw, 1.75rem); font-weight: 800; overflow-wrap: anywhere; }
.startup-message { margin: 0; font-size: .875rem; color: #586272; }

.startup-track {
  position: relative;
  width: min(58%, 176px);
  height: 5px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: #eeebfa;
  overflow: hidden;
}
.startup-track::before,
.startup-track::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 44%;
  border-radius: inherit;
  background: var(--startup-gradient);
  animation: startup-travel 2.4s cubic-bezier(.45, 0, .55, 1) infinite;
}
.startup-track::after { animation-delay: -1.2s; }

@keyframes startup-travel {
  from { transform: translateX(100%); }
  to { transform: translateX(-228%); }
}
@media (prefers-reduced-motion: reduce) {
  .startup-track::before { inset-inline-start: 28%; animation: none; }
  .startup-track::after { content: none; }
}
