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

@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: #fbfbfc;
}

/* Startup screen: a quiet wordmark and one thin progress line on a near-white page. */
.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 24px;
  overflow: hidden;
  background: #fbfbfc;
  color: #1c1c24;
  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 220ms ease-out, visibility 0s linear 220ms;
}

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

.boot-loader {
  --boot-wordmark-width: 100%;
  --boot-wordmark-gap: 1.25rem;
  width: min(100%, 24rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--boot-wordmark-gap);
  container-type: inline-size;
  transform: translateY(-3vh);
}

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

.boot-title {
  min-height: 1em;
  display: grid;
  place-items: center;
  visibility: visible;
  color: #1c1c24;
  font-family: "DAVRON Metal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms ease-out, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.boot-title--ready {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.boot-progress {
  width: clamp(96px, calc(var(--boot-wordmark-width) * 0.5), 180px);
  height: 3px;
  margin-top: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e7ec;
}

.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-title {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .boot-progress span {
    animation: none;
    width: 56%;
  }
}

/* Shown by /boot.js only when the app bundle failed or is very slow to start. */
.boot-problem {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 18rem;
  text-align: center;
}

.boot-problem__text {
  margin: 0;
  color: #55555f;
  font-size: 15px;
  line-height: 1.4;
}

.boot-problem__button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #0a6fe8;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.boot-problem__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}
