:root {
  --bg: #f6f6f3;
  --card: #ffffff;
  --text: #16160f;
  --muted: #66665c;
  --line: #deded6;
  --brand: #f8e60a;
  --brand-text: #16160f;
  --bad: #b3261e;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12120e;
    --card: #1c1c17;
    --text: #f1f1ea;
    --muted: #a3a397;
    --line: #34342c;
    --bad: #ff8a80;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}
h1 { margin: 0 0 12px; font-size: 22px; }
h1::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--brand);
  vertical-align: 1px;
}
.lead { margin: 0 0 16px; }
.muted { color: var(--muted); font-size: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
}
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
#code { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
button {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-text);
  cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
button.secondary { background: transparent; color: inherit; border: 1px solid var(--line); }
button.link { background: none; color: var(--muted); font-weight: 400; margin-top: 8px; text-decoration: underline; }
.turnstile { min-height: 65px; margin-bottom: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.msg { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.msg.bad { color: var(--bad); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 20px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
