:root {
  --bg: #0a0a0a;
  --panel: #131313;
  --border: #262626;
  --text: #ededed;
  --muted: #8a8a8a;
  --accent: #ededed;
  --good: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
}
* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  line-height: 1.5;
}
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
a { color: var(--text); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
nav.site {
  border-bottom: 1px solid var(--border);
}
nav.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
}
nav.site .brand { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
nav.site .links a { color: var(--muted); text-decoration: none; margin-left: 1.5rem; font-size: 0.9rem; }
nav.site .links a:hover { color: var(--text); }
main.page { padding: 3rem 0 5rem; }
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.75rem; }
p.lede { color: var(--muted); font-size: 1.1rem; margin-top: 0; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.panel + .panel { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-row label {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.9rem;
  font-size: 0.9rem; color: var(--text); cursor: pointer;
}
.radio-row input { accent-color: var(--text); }
button, .btn {
  display: inline-block;
  background: var(--text); color: #0a0a0a;
  border: none; border-radius: 8px;
  padding: 0.7rem 1.2rem; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
button.secondary, .btn.secondary {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
.stat { border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
.stat .label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value { font-size: 1.8rem; font-weight: 700; margin-top: 0.25rem; }
.badge {
  display: inline-block; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.25rem 0.75rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge.good { color: var(--good); border-color: var(--good); }
.badge.bad { color: var(--bad); border-color: var(--bad); }
.badge.warn { color: var(--warn); border-color: var(--warn); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.error { border: 1px solid var(--bad); color: var(--bad); border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 1.25rem; font-size: 0.9rem; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
footer.site { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: 0.82rem; }
footer.site .links a { color: var(--muted); text-decoration: underline; margin-right: 1rem; }
footer.site .links a:hover { color: var(--text); }
footer.site .links a:last-child { margin-right: 0; }
noscript.js-fallback {
  display: block; border: 1px solid var(--warn); color: var(--warn);
  border-radius: 8px; padding: 0.75rem 1rem; margin-top: 1rem; font-size: 0.85rem;
}

/* Utility classes -- kept in this file (not inline `style="..."`) so
 * the site's CSP can be `style-src 'self'` with no 'unsafe-inline'. */
.text-center { text-align: center; }
.flex-row { display: flex; }
.justify-between { justify-content: space-between; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1rem; }
.mt-0-75 { margin-top: 0.75rem; }
.mt-1 { margin-top: 1rem; }
.mt-1-5 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.py-3 { padding: 3rem 0; }
.mb-1-5 { margin-bottom: 1.5rem; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.max-w-640 { max-width: 640px; }
.pre-wrap { white-space: pre-wrap; overflow-x: auto; margin: 0 0 1rem; }
.text-lg { font-size: 1.15rem; }
.text-huge { font-size: 3.5rem; font-weight: 800; line-height: 1.1; }
.text-massive { font-size: 4rem; font-weight: 800; line-height: 1.1; }

.receipt-card {
  aspect-ratio: 16 / 9; max-width: 720px; margin: 0 auto; background: #0a0a0a;
  border: 1px solid #262626; border-radius: 16px; padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.receipt-stats { display: flex; justify-content: space-between; font-size: 0.8rem; }

.challenge-card { display: block; cursor: pointer; }
.challenge-card input[type="radio"] { margin-right: 0.5rem; }

/* Honeypot: visually hidden from real users (off-screen, not
 * display:none/type=hidden, so a naive scraper that fills every
 * text-like input still trips it) but present in the DOM. */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}
