html {
  background: #ffffff;
}

html:not([data-app-ready='true']) body {
  overflow: hidden;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-loader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loader__plain-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: #141413;
  text-decoration: underline;
  text-decoration-color: rgba(20, 20, 19, 0.45);
  text-underline-offset: 2px;
}

.app-loader__plain-link:focus {
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 0.75rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.app-loader__plain-link:focus-visible {
  outline: 2px solid #141413;
  outline-offset: 2px;
}

.app-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.app-loader__progress {
  margin: 0.15rem 0 0;
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #6b6b68;
  font-variant-numeric: tabular-nums;
}

.app-loader__progress-value {
  display: inline-block;
  min-width: 1.5ch;
  text-align: right;
}

.app-loader__name {
  margin: 0;
  font-family: 'Libre Baskerville', ui-serif, Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #141413;
}

.app-loader__stroke {
  display: block;
  width: 4.75rem;
  height: 0.5rem;
  overflow: visible;
}

.app-loader__path {
  fill: none;
  stroke: #141413;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.45;
  animation: app-loader-draw 1.35s ease-in-out infinite;
}

@keyframes app-loader-draw {
  0% {
    stroke-dashoffset: 1;
    opacity: 0.3;
  }

  50% {
    stroke-dashoffset: 0;
    opacity: 0.65;
  }

  100% {
    stroke-dashoffset: -1;
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loader {
    transition: none;
  }

  .app-loader__path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 0.5;
  }
}
