.boot-screen {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(16px + var(--safe-top)) calc(16px + var(--safe-right))
    calc(16px + var(--safe-bottom)) calc(16px + var(--safe-left));
  background:
    linear-gradient(180deg, #101511e6 0%, #101511f2 46%, #0b0f0bfa 100%),
    url("../assets/schron/cover-bg.webp") center 22% / cover;
  transition: opacity 180ms ease-out;
}

.boot-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.boot-stack {
  display: grid;
  justify-items: center;
  gap: 13px;
  inline-size: min(100%, 248px);
  text-align: center;
}

.boot-wordmark {
  position: relative;
  display: block;
  max-width: 100%;
  color: var(--ink);
  font: 750 clamp(37px, 14cqw, 76px)/1.12 var(--display);
  letter-spacing: .105em;
  padding-inline-start: .105em;
  animation: boot-ink 500ms cubic-bezier(.16, 1, .3, 1) both;
}

.boot-wordmark::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent calc(100% - 1px), var(--amber) 0);
  animation: boot-trace 500ms ease-out both;
}

#bootProgress {
  appearance: none;
  display: block;
  inline-size: min(100%, 210px);
  block-size: 4px;
  border: 0;
  overflow: hidden;
  color: var(--amber);
  background: #59513a;
}

#bootProgress::-webkit-progress-bar { background: #59513a; }
#bootProgress::-webkit-progress-value { background: var(--amber); }
#bootProgress::-moz-progress-bar { background: var(--amber); }

.boot-status,
.boot-stack noscript p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.boot-stack:has(noscript p) :is(.boot-status, #bootProgress) { display: none; }

.boot-stack #bootRetry { inline-size: min(100%, 210px); }

@keyframes boot-ink {
  from { opacity: .54; clip-path: inset(0 72% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes boot-trace {
  from { opacity: .68; transform: translateX(-72%); }
  to { opacity: 0; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .boot-screen { transition: none; }
  .boot-wordmark, .boot-wordmark::after { animation: none; }
  .boot-wordmark::after { display: none; }
}
