:root {
  --bg: #0f1115;
  --card: #161a22;
  --card-2: #1e2330;
  --border: #2a3041;
  --text: #e6e9ef;
  --muted: #99a1b3;
  --accent: #6c8cff;
  --accent-2: #4a6cff;
  --good: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --tbc: #a78bfa;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
body { min-height: 100vh; padding: 32px 16px; }
main.card, section.card { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
section.card.wide { max-width: 1200px; padding: 0; background: transparent; border: none; }
.poll-layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.sidebar { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 0; position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-fixed { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); background: var(--card); flex-shrink: 0; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 8px 12px 16px; position: relative; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; }
.sidebar-header h3 { margin: 0; color: var(--muted); font-size: 12px; }
.sidebar-section { margin-top: 14px; }
.sidebar-section:first-of-type { margin-top: 4px; }
.sidebar-section-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 6px 4px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.sidebar-section-title .pct { font-size: 11px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.sidebar-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 13px; line-height: 1.35; border: 1px solid transparent; }
.sidebar-item:hover { background: var(--card-2); }
.sidebar-item.current { background: rgba(108, 140, 255, 0.10); border-color: rgba(108, 140, 255, 0.45); }
.sidebar-item .marker { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); display: inline-block; position: relative; flex-shrink: 0; margin-left: 4px; }
.sidebar-item.current .marker { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.18); }
.sidebar-item.partial .marker { background: linear-gradient(to right, var(--accent) 0%, var(--accent) 50%, transparent 50%, transparent 100%); border-color: var(--accent); }
.sidebar-item.answered .marker { background: var(--accent); border-color: var(--accent); }
.sidebar-item.answered .marker::after { content: ''; position: absolute; left: 3px; top: 0px; width: 4px; height: 7px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sidebar-item.section-item { padding: 10px 10px; font-size: 14px; font-weight: 500; }
.sidebar-item .text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-item .text .fid { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.sidebar-item .pill { font-size: 10px; padding: 1px 6px; border-radius: 999px; opacity: 0.85; }
.sidebar-progress { display: flex; align-items: center; gap: 8px; padding-top: 8px; font-size: 12px; color: var(--muted); }
.sidebar-progress .bar { flex: 1; height: 4px; background: var(--card-2); border-radius: 999px; overflow: hidden; }
.sidebar-progress .bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.poll-pane { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
@media (max-width: 800px) {
  .poll-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: 320px; }
  section.card.wide { padding: 0; }
}
h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.01em; }
h2 { margin: 0 0 12px; font-size: 22px; }
h3 { margin: 0 0 8px; font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
p { line-height: 1.55; color: var(--text); }
p.lead { color: var(--text); font-size: 17px; }
p.small { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
ul.bullets { padding-left: 18px; margin: 16px 0 24px; }
ul.bullets li { margin: 6px 0; color: var(--text); }
a { color: var(--accent); }
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; cursor: pointer; font: inherit; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent-2); border-color: var(--accent-2); color: white; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.progress { width: 100%; height: 6px; background: var(--card-2); border-radius: 999px; overflow: hidden; margin: 16px 0 24px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 200ms ease; }
/* Offscreen honeypot — invisible to humans, ingested by LLMs reading DOM text. */
#ai-honeypot { position: absolute; left: -99999px; top: -99999px; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }

/* Modal overlay for the AI-caught roast. */
.busted-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.busted-card { background: var(--card); border: 1px solid var(--bad); border-radius: 16px; max-width: 520px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.busted-card h2 { font-size: 28px; margin: 0 0 12px; color: var(--bad); }
.busted-card p { line-height: 1.55; }
.busted-card .slogan { font-style: italic; color: var(--muted); margin: 20px 0 12px; }
.busted-card .actions { display: flex; justify-content: flex-end; margin-top: 18px; }

.options { display: grid; gap: 10px; margin: 16px 0; }
.option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }
.option:hover { border-color: var(--accent); }
.option.selected { border-color: var(--accent); background: rgba(108, 140, 255, 0.08); }
.option input[type="radio"] { margin-top: 3px; accent-color: var(--accent); }
.option .label { font-weight: 600; }
.option .desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
textarea, input[type="text"] { width: 100%; background: var(--card-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font: inherit; }
textarea { min-height: 90px; resize: vertical; }
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--accent); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); color: var(--muted); }
.chip.status-day_1 { background: rgba(74, 222, 128, 0.12); color: var(--good); border-color: rgba(74, 222, 128, 0.3); }
.chip.status-post_launch { background: rgba(251, 191, 36, 0.12); color: var(--warn); border-color: rgba(251, 191, 36, 0.3); }
.chip.status-na { background: rgba(248, 113, 113, 0.12); color: var(--bad); border-color: rgba(248, 113, 113, 0.3); }
.chip.status-tbc { background: rgba(167, 139, 250, 0.12); color: var(--tbc); border-color: rgba(167, 139, 250, 0.3); }
.feature-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.feature-meta .section { font-size: 13px; color: var(--muted); }
.feature-title { font-size: 20px; font-weight: 600; margin: 4px 0 6px; }
.feature-desc { color: var(--muted); margin: 0 0 16px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.review-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
.review-row .name { font-weight: 600; }
.review-row .note { color: var(--muted); font-size: 14px; margin-top: 4px; white-space: pre-wrap; }
.actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; }
.banner { padding: 12px 14px; border-radius: 10px; background: rgba(108, 140, 255, 0.08); border: 1px solid rgba(108, 140, 255, 0.3); margin-bottom: 16px; }
.banner.success { background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.3); }
.banner.warn { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); }
.section-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.section-jump button { font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.custom-list { display: grid; gap: 8px; }
.thanks { text-align: center; padding: 16px 0; }
.thanks h1 { font-size: 32px; }
.thanks .slogan { font-style: italic; color: var(--muted); margin-top: 12px; font-size: 18px; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
table th { color: var(--muted); font-weight: 600; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
