:root {
  --bg: #fafafa; --fg: #111; --muted: #777; --btn: #111; --btn-fg: #fff; --ring: rgba(0,0,0,.08); --err: #c0392b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0b0c; --fg: #f2f2f2; --muted: #8a8a8a; --btn: #f2f2f2; --btn-fg: #0b0b0c; --ring: rgba(255,255,255,.1); --err: #ff6b5b; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--fg);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100dvh; padding: 24px 16px; text-align: center;
}
main { width: 100%; max-width: 440px; }
form, section { display: flex; flex-direction: column; gap: 14px; }
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.muted { color: var(--muted); margin: 0 0 8px; }
label { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: .9rem; color: var(--muted); }
input {
  font: inherit; color: var(--fg); background: transparent;
  border: 1px solid var(--ring); border-radius: 12px; padding: 12px 14px; outline: none;
}
input:focus { border-color: var(--fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button {
  appearance: none; border: 0; cursor: pointer; margin-top: 6px;
  background: var(--btn); color: var(--btn-fg);
  font: inherit; font-size: 1.05rem; font-weight: 600;
  padding: 14px 40px; border-radius: 999px; align-self: center;
  transition: transform .12s ease, opacity .2s ease;
}
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(1px) scale(.98); }
button:focus-visible { outline: none; box-shadow: 0 0 0 6px var(--ring); }
button:disabled { opacity: .45; cursor: default; transform: none; }
#human { align-self: center; min-height: 65px; }
.err { color: var(--err); margin: 0; font-size: .9rem; }
a { color: inherit; }
footer { position: fixed; bottom: 16px; left: 0; right: 0; color: var(--muted); font-size: .8rem; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { text-decoration: underline; }
