:root {
  color-scheme: light dark;
  --host-background: #f7f5f0;
  --host-content: #1b1820;
  --host-primary: #3d6a6e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --host-background: #141310;
    --host-content: #f2eee5;
    --host-primary: #9ec8c7;
  }
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--host-background);
  color: var(--host-content);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

#bestbuds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  isolation: isolate;
  touch-action: none;
}

.app-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.app-loader__bud {
  width: 2.75rem;
  height: 2.75rem;
  border: 0.2rem solid color-mix(in srgb, var(--host-primary) 25%, transparent);
  border-top-color: var(--host-primary);
  border-radius: 50%;
  animation: app-loader-spin 0.85s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

@keyframes app-loader-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loader__bud {
    animation-duration: 2.4s;
  }
}
