:root {
  color-scheme: light;
  background: #f5f5f7;
}

@font-face {
  font-family: "DAVRON Metal";
  src: url("/fonts/Metal-Reg-2.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  /* The wordmark must be present from the first rendered frame. */
  font-display: swap;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 56%, #f2f2f7 100%);
}

.boot-splash {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  box-sizing: border-box;
  z-index: 2147483647;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 12px;
  overflow: hidden;
  background: #ffffff;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: opacity 180ms ease-out, visibility 0s linear 180ms;
}

.boot-splash--leaving {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.boot-loader {
  --boot-wordmark-width: 77.5%;
  --boot-wordmark-gap: 0.75rem;
  width: min(80vw, 56rem);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--boot-wordmark-gap);
  font-size: clamp(2.25rem, 12vw, 6.4rem);
  container-type: inline-size;
  transform: translateY(-2.25vh);
}

@media (max-width: 767px) {
  .boot-splash {
    padding-inline: 24px;
  }

  .boot-loader {
    width: 100%;
  }
}

.boot-loader,
.boot-loader * {
  box-sizing: border-box;
}

.boot-title {
  width: 100%;
  min-height: 0.9em;
  display: grid;
  place-items: center;
  visibility: visible;
  color: #111113;
  font-family: "DAVRON Metal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Keep the rendered wordmark width in the layout flow so the progress bar
     can always inherit the same measured width on every viewport. */
  font-size: clamp(3.08rem, 22.33cqw, 9.856rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.boot-title--ready {
  visibility: visible;
}

.boot-progress {
  width: var(--boot-wordmark-width);
  height: 8px;
  margin-top: 0;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(199, 199, 204, 0.95);
  background: transparent;
  box-shadow: inset 0 1px 1px rgba(29, 29, 31, 0.06);
}

.boot-progress span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: #007aff;
  animation: boot-progress 3s linear forwards;
}


@keyframes boot-progress {
  0% { width: 12%; }
  40% { width: 70%; }
  66.67% { width: 89%; }
  100% { width: 89%; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-progress span {
    animation: none;
    width: 56%;
  }
}
