/* First-load indicator (boot.js). No theme yet: colours that read on both dark and light pages. */
.boot {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font: 500 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #8b8696;
  opacity: 0;
  /* Fast loads never see it: it appears only after 300 ms. */
  animation: boot-in 0.3s ease-out 0.3s forwards;
}

/* The app (or a prerendered page) is on screen: the indicator is done. */
#root:not(:empty) + .boot {
  display: none;
}

.boot canvas {
  width: 96px;
  height: 96px;
}

.boot p {
  margin: 0;
  letter-spacing: 0.02em;
}

.boot button {
  font: inherit;
  color: #fff;
  background: #d81f47;
  border: 0;
  border-radius: 9px;
  padding: 8px 16px;
  cursor: pointer;
}

.boot button:focus-visible {
  outline: 2px solid #d81f47;
  outline-offset: 3px;
}

@keyframes boot-in {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot {
    animation-duration: 0s;
  }
}
