/* Shown before the app's styles load (index.html): the page follows the chosen theme from the first paint. */
html {
  background: #ffffff;
  color: #0c0e12;
}

html[data-theme='dark'] {
  background: #0c0e12;
  color: #f3f3f1;
}

.app-loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  font-family:
    'Manrope',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  text-align: center;
}

.app-loading__s {
  fill: currentColor;
}

.app-loading__dot {
  fill: #135e7a;
  transform-box: fill-box;
  transform-origin: center;
  animation: app-loading-pulse 1.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

html[data-theme='dark'] .app-loading__dot {
  fill: #3e9cc0;
}

.app-loading__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-loading__error {
  max-width: 28rem;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.75;
}

.app-loading__error a {
  color: inherit;
  text-underline-offset: 3px;
}

@keyframes app-loading-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.55);
    opacity: 0.45;
  }
}

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