:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: #666;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; }

.handoff {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

.spinner {
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid #e9e9e9;
  border-top-color: #777;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Show a way forward only if the automatic handoff leaves the page open. */
.fallback {
  position: fixed;
  right: 24px;
  bottom: 32px;
  left: 24px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  visibility: hidden;
  animation: reveal 0s linear 5s forwards;
}

.fallback a {
  display: inline-block;
  padding: 12px;
  color: inherit;
  text-underline-offset: 3px;
}

.fallback a:focus-visible {
  outline: 2px solid #777;
  outline-offset: 3px;
  border-radius: 2px;
}

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

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