/* The Kittle Test — shared theme. Night-game palette: 49ers scarlet + gold on charcoal. */
:root {
  --bg: #0d0e11;
  --bg2: #14161b;
  --panel: #1a1d24;
  --panel2: #21252e;
  --line: #2c313c;
  --text: #f3f1ec;
  --muted: #9ba2b0;
  --red: #e0232f;
  --red-d: #aa0000;
  --gold: #c9a95c;
  --gold-d: #8f7740;
  --green: #31c48d;
  --amber: #f5a524;
  --blue: #5aa9ff;
  --radius: 14px;
  --display: Impact, "Haettenschweiler", "Arial Narrow Bold", "Helvetica Neue Condensed Bold", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 500px at 50% -10%, #2a0f12 0%, transparent 60%), var(--bg);
  color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 .4em; line-height: 1.05; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; color: var(--gold); }
p { margin: 0 0 .9em; }
a { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 880px; margin: 0 auto; padding: 24px 16px 80px; }
.wrap.wide { max-width: 1180px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.badge85 { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, var(--red), var(--red-d)); font-family: var(--display); font-size: 1.6rem; color: #fff; box-shadow: 0 0 0 2px var(--gold) inset; flex: none; }
.brand b { font-family: var(--display); font-size: 1.35rem; letter-spacing: .05em; text-transform: uppercase; display: block; line-height: 1; }
.brand span { color: var(--muted); font-size: .8rem; }

.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.card.flush { padding: 0; overflow: hidden; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 14px; }
.grid.cols2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
input[type=text], input[type=password], input[type=number], input[type=search], textarea, select {
  width: 100%; background: #0f1115; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
input.code { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
textarea { min-height: 84px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 1rem; cursor: pointer; }

.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 13px 22px; border-radius: 12px; color: #fff; background: linear-gradient(180deg, var(--red), var(--red-d)); box-shadow: 0 6px 18px rgba(224,35,47,.28); transition: transform .06s, filter .15s; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; box-shadow: none; }
.btn.gold { background: linear-gradient(180deg, var(--gold), var(--gold-d)); color: #1a1405; box-shadow: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); }
.btn.danger { background: transparent; border: 1px solid #7a1c22; color: #ff8a92; box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: .8rem; border-radius: 10px; }
.btn.big { padding: 18px 30px; font-size: 1.1rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); background: var(--panel2); white-space: nowrap; }
.pill.green { color: #7ee2b8; border-color: #1f6b4f; background: #11271f; }
.pill.red { color: #ff8a92; border-color: #7a1c22; background: #2a1215; }
.pill.amber { color: #ffcf7a; border-color: #7a5a14; background: #2a2010; }
.pill.blue { color: #9ccbff; border-color: #234e7e; background: #101e2e; }
.pill.gold { color: var(--gold); border-color: var(--gold-d); background: #231e10; }

.notice { border-left: 4px solid var(--gold); background: var(--panel2); padding: 12px 16px; border-radius: 8px; margin: 12px 0; }
.notice.bad { border-color: var(--red); background: #2a1215; }
.notice.good { border-color: var(--green); background: #11271f; }
.notice.warn { border-color: var(--amber); background: #2a2010; }

ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px dashed var(--line); }
ul.clean li:last-child { border-bottom: 0; }
ul.clean li::before { content: "🏈"; position: absolute; left: 0; top: 8px; font-size: .95rem; }
ul.clean.checks li::before { content: "✔"; color: var(--green); font-weight: 700; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--bg2); position: sticky; top: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel2); }
.table-scroll { overflow-x: auto; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--gold); padding: 10px 18px; border-radius: 999px; z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.yardline { height: 6px; background: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 22px); opacity: .35; border-radius: 3px; margin: 18px 0; }

@media (max-width: 640px) {
  .wrap { padding: 16px 12px 60px; }
  .card { padding: 16px; }
  th, td { padding: 9px 8px; }
}
@media print { body { display: none !important; } }
