/* IAMGROK IQ Test + Political Test — page styles. Site tokens (same as iamgrok.org static pages). No web fonts loaded. */
:root { --bg:#000; --ink:#C8C8C8; --title:#f2eadc; --cream:#f2eadc; --mute:#8a8173; --gold:#c9a227; --blood:#b10f2e; --line:#1c1c1c; --ok:#6fae6f; --bad:#c0503c; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--gold); }
.rg-wrap { max-width: 760px; margin: 0 auto; padding: 16px 16px 64px; }
.rg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.rg-brand { font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif; font-size: 28px; letter-spacing: .16em; color: var(--title); text-decoration: none; line-height: 1; }
.rg-brand i { font-style: normal; color: var(--blood); }
.rg-nav { display: flex; gap: 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.rg-nav a { color: var(--mute); text-decoration: none; padding: 6px 0; }
.rg-nav a:hover, .rg-nav a[aria-current] { color: var(--gold); }
.rg-h1 { font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif; font-weight: 400; font-size: clamp(30px, 7vw, 44px); letter-spacing: .04em; color: var(--title); line-height: 1.05; margin: 0 0 8px; outline: none; }
.rg-h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 22px 0 10px; }
.rg-meta { color: var(--mute); font-size: 14px; letter-spacing: .04em; margin: 0 0 16px; }
.rg-disclaimer { border: 1px solid var(--gold); background: #0b0904; padding: 14px 16px; margin: 0 0 18px; color: var(--cream); font-size: 15px; line-height: 1.55; }
.rg-disclaimer strong { color: var(--gold); }
.rg-how { list-style: none; margin: 0 0 22px; }
.rg-how li { padding: 8px 0 8px 18px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; line-height: 1.45; }
.rg-how li::before { content: "·"; color: var(--gold); position: absolute; left: 4px; }
.rg-btn { min-height: 48px; padding: 12px 18px; font: inherit; font-size: 15px; letter-spacing: .04em; background: #0a0a0a; color: var(--cream); border: 1px solid #3a3a3a; cursor: pointer; touch-action: manipulation; }
.rg-btn:hover:not(:disabled) { border-color: var(--gold); }
.rg-btn:focus-visible, .rg-choice:focus-visible, .rg-input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rg-btn:disabled { opacity: .4; cursor: not-allowed; }
.rg-primary { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 500; }
.rg-primary:hover:not(:disabled) { background: #d8b23a; }
.rg-ghost { background: transparent; color: var(--mute); }
.rg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.rg-actions .rg-primary { flex: 1 1 200px; }
.rg-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--mute); margin: 0 0 8px; }
.rg-prog { color: var(--cream); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.rg-clock-wrap { font-variant-numeric: tabular-nums; }
.rg-clock { color: var(--cream); font-size: 18px; letter-spacing: .06em; }
.rg-clock-low .rg-clock { color: var(--bad); }
.rg-progress { height: 3px; background: var(--line); margin: 0 0 16px; }
.rg-progress span { display: block; height: 100%; background: var(--gold); }
.rg-prompt { font-size: 18px; font-weight: 500; color: var(--cream); line-height: 1.35; margin: 4px 0 14px; outline: none; }
.rg-note { color: var(--mute); font-size: 13px; line-height: 1.45; }
.rg-stim { margin: 0 0 16px; }
.rg-stim-svg svg { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.rg-stim-small svg { max-width: 170px; }
.rg-stim-wide svg { max-width: 520px; }
.rg-stim-text { border: 1px solid var(--line); background: #070707; padding: 14px 16px; color: var(--cream); font-size: 17px; line-height: 1.55; }
.rg-stim-text p + p { margin-top: 6px; }
.rg-series { text-align: center; font-size: clamp(22px, 6vw, 30px); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.rg-choices { display: grid; gap: 8px; }
.rg-choices-svg { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; margin: 0 auto; }
.rg-choices-text { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .rg-choices-text { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rg-choice { position: relative; min-height: 52px; background: #0a0a0a; border: 2px solid #2a2a2a; color: var(--cream); font: inherit; font-size: 16px; text-align: left; padding: 10px 12px 10px 38px; cursor: pointer; touch-action: manipulation; }
.rg-choices-svg .rg-choice { padding: 6px; text-align: center; }
.rg-choice:hover:not(:disabled) { border-color: #5a5a5a; }
.rg-choice.rg-on { border-color: var(--gold); background: #15110a; }
.rg-choice:disabled { cursor: default; opacity: 1; }
.rg-num { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rg-choices-svg .rg-num { top: 4px; left: 6px; transform: none; font-size: 11px; }
.rg-choice-svg svg { display: block; width: 100%; max-width: 110px; height: auto; margin: 0 auto; }
.rg-choice.rg-key { border-color: var(--ok); }
.rg-choice.rg-miss { border-color: var(--bad); }
.rg-choice.rg-key::after, .rg-choice.rg-miss::after { position: absolute; right: 6px; top: 4px; font-size: 13px; }
.rg-choice.rg-key::after { content: "✓"; color: var(--ok); }
.rg-choice.rg-miss::after { content: "✗"; color: var(--bad); }
.rg-feedback { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); background: #070707; font-size: 15px; line-height: 1.5; }
.rg-feedback.rg-ok { border-color: var(--ok); }
.rg-feedback.rg-bad { border-color: var(--bad); }
.rg-fb-head { color: var(--cream); font-weight: 500; }
.rg-fb-rat { color: var(--ink); margin-top: 6px; font-size: 14px; line-height: 1.5; }
.rg-wm { border: 1px solid var(--line); background: #070707; padding: 16px; }
.rg-wm-note { font-size: 15px; line-height: 1.5; margin: 0 0 12px; color: var(--cream); }
.rg-wm-screen { min-height: 120px; display: flex; align-items: center; justify-content: center; font-size: 72px; color: var(--cream); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.rg-wm-static { font-size: 40px; }
.rg-blink { animation: rgIn .15s ease-out; }
@keyframes rgIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rg-blink { animation: none; } }
.rg-label { display: block; font-size: 13px; color: var(--mute); margin: 0 0 6px; letter-spacing: .06em; text-transform: uppercase; }
.rg-input { width: 100%; min-height: 52px; font: inherit; font-size: 24px; letter-spacing: .2em; text-transform: uppercase; background: #000; color: var(--cream); border: 2px solid #3a3a3a; padding: 8px 12px; }
.rg-score { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 6px; }
.rg-raw { font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif; font-size: 64px; line-height: 1; color: var(--title); letter-spacing: .04em; }
.rg-band { font-size: 20px; color: var(--gold); }
.rg-est { color: var(--mute); font-size: 15px; margin: 4px 0 6px; line-height: 1.45; }
.rg-est-n { font-size: 22px; color: #b5aa98; font-weight: 300; }
.rg-used { color: var(--ink); font-size: 14px; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.rg-fams { display: grid; gap: 8px; }
.rg-fam { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.rg-fam-name { color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-fam-bar { height: 8px; background: var(--line); display: block; }
.rg-fam-bar span { display: block; height: 100%; background: var(--gold); }
.rg-fam-n { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 13px; }
.rg-sting { color: var(--cream); font-style: italic; margin: 22px 0 8px; font-size: 16px; }
.rg-result .rg-disclaimer { margin-top: 14px; }
.rg-rev { border: 1px solid var(--line); padding: 12px; margin: 14px 0; }
.rg-rev.rg-ok { border-left: 3px solid var(--ok); }
.rg-rev.rg-bad { border-left: 3px solid var(--bad); }
.rg-rev-h { font-size: 14px; color: var(--gold); letter-spacing: .06em; margin: 0 0 6px; }
.rg-prompt-sm { color: var(--cream); font-size: 15px; margin: 0 0 10px; }
.rg-rev-seq { font-size: 22px; color: var(--cream); letter-spacing: .12em; margin: 0 0 6px; }
.rg-rev-key { color: var(--ok); }
.rg-rev .rg-stim-svg svg { max-width: 300px; }
.rg-review > .rg-btn { margin: 0 0 12px; }
.rg-foot { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--mute); font-size: 12px; line-height: 1.5; }
.rg-err { color: var(--bad); }
svg { max-width: 100%; }
.rg-card { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 4px; }
.rg-card .rg-input { font-size: 18px; letter-spacing: .02em; text-transform: none; margin: 0 0 12px; }
.rg-card-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 675; border: 1px solid #3a3a3a; background: #f1e6c8; }
a.rg-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
