:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: Canvas;
  color: CanvasText;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
}

main {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid color-mix(in srgb, CanvasText 18%, transparent);
  border-top-color: CanvasText;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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