:root {
  color-scheme: light dark;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fafafa;
  color: #212121;
}

@media (prefers-color-scheme: dark) {
  body { background: #121212; color: #e0e0e0; }
  .card { background: #1e1e1e; }
}

.card {
  max-width: 32rem;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgb(0 0 0 / 15%);
  text-align: center;
}

h1 { margin: 0.5rem 0; font-weight: 500; }
h2 { color: #c62828; font-size: 1.1rem; }

/* A bare visit is not an error. */
#disconnected h2 { color: inherit; opacity: 0.7; }

.hint { opacity: 0.8; font-size: 0.9rem; }

button {
  font: inherit;
  padding: 0.5rem 1.5rem;
  border: 0;
  border-radius: 6px;
  background: #1976d2;
  color: #fff;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: progress; }
