:root {
  --bg: #0a0e1a;
  --card: #111827;
  --card-hover: #1a2236;
  --border: #1f2937;
  --border-light: #374151;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --accent: #f97316;
  --accent-glow: rgba(249,115,22,0.15);
  --blue: #3b82f6;
  --gold: #fbbf24;
  --silver: #cbd5e1;
  --bronze: #d97706;
  --green: #22c55e;
  --red: #ef4444;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

.hero {
  position: relative; overflow: hidden; padding: 4rem 1.5rem 3rem; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 100%, rgba(59,130,246,0.06) 0%, transparent 50%), var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(249,115,22,0.04) 0%, transparent 70%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2); color: var(--accent); font-size: 0.75rem; font-weight: 700; padding: 0.35rem 0.9rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.hero-badge .pulse { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
.data-indicator { font-size: 0.7rem; margin-left: 0.5rem; cursor: help; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.2rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.75rem; }
.hero h1 span { color: var(--accent); }
.hero .subtitle { color: var(--text-dim); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }
.hero-stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.75rem; font-weight: 800; color: var(--text); }
.hero-stat .lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.15rem; }
.container { max-width: 1140px; margin: 0 auto; padding: 2rem 1.5rem; }
.nav-bar { display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 2rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-bar::-webkit-scrollbar { display: none; }
.nav-btn { white-space: nowrap; padding: 0.55rem 1.1rem; border: 1px solid var(--border); background: transparent; color: var(--text-muted); border-radius: 8px; cursor: pointer; font-size: 0.82rem; font-weight: 600; font-family: inherit; transition: all 0.2s; display: inline-block; text-decoration: none; }
.nav-btn:hover { background: var(--card); color: var(--text-dim); border-color: var(--border-light); }
.nav-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 16px rgba(249,115,22,0.25); }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.overview-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.overview-card::after { content: '→'; position: absolute; top: 1.5rem; right: 1.25rem; color: var(--text-muted); font-size: 1.1rem; transition: all 0.2s; }
.overview-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.overview-card:hover::after { color: var(--accent); transform: translateX(3px); }
.overview-card .award-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 1rem; }
.overview-leader { display: flex; align-items: center; gap: 0.75rem; }
.overview-leader .name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 800; }
.overview-leader .prob { margin-left: auto; font-size: 1.6rem; font-weight: 900; padding-right: 1.5rem; }
.prob-high { color: var(--green); }
.prob-mid { color: var(--gold); }
.prob-low { color: var(--text-dim); }
.overview-mini-bar { margin-top: 1rem; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; display: flex; }
.overview-mini-bar div { height: 100%; transition: width 0.5s; }
.overview-mini-bar div:first-child { border-radius: 3px 0 0 3px; }
.overview-mini-bar div:last-child { border-radius: 0 3px 3px 0; }
.overview-runners { display: flex; gap: 1rem; margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-dim); }
.overview-runners span { display: flex; align-items: center; gap: 0.35rem; }
.overview-runners .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.overview-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.award-header { margin-bottom: 2rem; }
.award-header h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; display: flex; align-items: center; gap: 0.5rem; }
.award-header .meta { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.35rem; }
.alert-banner { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: #fca5a5; padding: 0.85rem 1.15rem; border-radius: 10px; font-size: 0.85rem; margin-bottom: 1.75rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.candidates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.candidate-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.5rem; transition: transform 0.15s, box-shadow 0.15s; }
.candidate-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.candidate-card.gold { border-color: var(--gold); border-width: 2px; }
.candidate-card.silver { border-color: var(--silver); }
.candidate-card.bronze { border-color: var(--bronze); }
.candidate-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.candidate-name { display: flex; align-items: center; gap: 0.6rem; }
.candidate-name .name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 800; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 0.75rem; font-weight: 800; flex-shrink: 0; }
.rank-badge.r1 { background: var(--gold); color: #000; }
.rank-badge.r2 { background: var(--silver); color: #000; }
.rank-badge.r3 { background: var(--bronze); color: #fff; }
.rank-badge.rn { background: var(--border); color: var(--text-muted); }
.note-tag { font-size: 0.65rem; font-weight: 700; background: rgba(239,68,68,0.15); color: #fca5a5; padding: 0.15rem 0.45rem; border-radius: 4px; text-transform: uppercase; }
.pts-display { text-align: right; }
.pts-display .pts { font-size: 1.75rem; font-weight: 900; color: var(--accent); line-height: 1; }
.pts-display .lbl { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.prob-section { margin: 0.75rem 0; }
.prob-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem; }
.prob-label-row .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.prob-label-row .pct { font-size: 1.1rem; font-weight: 800; }
.prob-bar-track { height: 10px; background: rgba(255,255,255,0.05); border-radius: 5px; overflow: hidden; }
.prob-bar-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.prob-bar-fill.high { background: linear-gradient(90deg, #16a34a, #4ade80); }
.prob-bar-fill.mid { background: linear-gradient(90deg, #d97706, #fbbf24); }
.prob-bar-fill.low { background: linear-gradient(90deg, #475569, #94a3b8); }
.vote-row { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.vote-pill { flex: 1; text-align: center; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.25rem; }
.vote-pill .num { font-size: 1.15rem; font-weight: 800; }
.vote-pill .lbl { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.voters-section { margin-top: 0.5rem; }
.voters-section h3 { font-size: 1rem; font-weight: 700; color: var(--text-dim); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.voter-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.voter-table th { text-align: left; padding: 0.7rem 1rem; color: var(--text-muted); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); position: sticky; top: 0; }
.voter-table td { padding: 0.65rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
.voter-table tbody tr:last-child td { border-bottom: none; }
.voter-table tr:hover td { background: rgba(255,255,255,0.02); }
.voter-name { font-weight: 600; }
.voter-outlet { color: var(--text-muted); }
.voter-date { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.vote-chip { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 5px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.vote-chip.v1 { background: rgba(251,191,36,0.15); color: var(--gold); }
.vote-chip.v2 { background: rgba(203,213,225,0.1); color: var(--silver); }
.vote-chip.v3 { background: rgba(217,119,6,0.12); color: var(--bronze); }
.vote-chip.empty { color: var(--text-muted); background: none; }
.methodology { margin-top: 3rem; padding: 1.75rem; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.methodology h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.methodology p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.methodology p:last-child { margin-bottom: 0; }
.footer { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-muted); font-size: 0.78rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.stats-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.stat-chip { font-size: 0.72rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 0.2rem 0.5rem; border-radius: 5px; color: var(--text-dim); }
.stat-chip strong { color: var(--text); }
.player-note { font-size: 0.75rem; color: var(--accent); margin-top: 0.4rem; font-style: italic; }
.odds-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.odds-badge { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 5px; background: rgba(59,130,246,0.12); color: var(--blue); }
.odds-label { font-size: 0.68rem; color: var(--text-muted); }
.storylines { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; margin-bottom: 2rem; }
.storylines h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.storylines ul { list-style: none; padding: 0; }
.storylines li { font-size: 0.85rem; color: var(--text-dim); padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); display: flex; gap: 0.5rem; }
.storylines li:last-child { border-bottom: none; }
.storylines .bullet { color: var(--accent); flex-shrink: 0; }
.past-winners { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; margin-top: 0.75rem; }
.past-winner-chip { flex-shrink: 0; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.75rem; text-align: center; }
.past-winner-chip .year { font-size: 0.65rem; color: var(--text-muted); }
.past-winner-chip .name { font-size: 0.82rem; font-weight: 700; }
.past-winner-chip .tm { font-size: 0.65rem; color: var(--text-muted); }
.rule-box { background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.15); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--text-dim); }
.rule-box strong { color: var(--text); }
.clinch-callout { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.9rem; color: #86efac; display: flex; align-items: center; gap: 0.6rem; }
.clinch-callout .emoji { font-size: 1.3rem; }
.clinch-callout strong { color: var(--green); }
.clinch-locked { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.2); color: #fde68a; }
.clinch-locked strong { color: var(--gold); }
.bar-chart-race { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.bar-chart-race h3 { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.bar-label { width: 130px; font-size: 0.78rem; font-weight: 600; text-align: right; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 26px; background: rgba(255,255,255,0.03); border-radius: 6px; overflow: hidden; position: relative; }
.bar-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 0.7rem; font-weight: 700; min-width: 28px; }
.bar-pts { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); width: 40px; text-align: right; flex-shrink: 0; }
.odds-comparison { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.odds-comparison h3 { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.odds-comp-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.82rem; }
.odds-comp-row:last-child { border-bottom: none; }
.odds-comp-name { width: 140px; font-weight: 600; flex-shrink: 0; }
.odds-comp-cell { width: 80px; text-align: center; font-weight: 700; }
.odds-comp-cell.vote { color: var(--accent); }
.odds-comp-cell.book { color: var(--blue); }
.odds-comp-diff { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; }
.odds-comp-diff.big-diff { background: rgba(239,68,68,0.15); color: #fca5a5; }
.odds-comp-diff.small-diff { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.outlet-breakdown { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.outlet-breakdown h3 { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.outlet-group { font-size: 0.82rem; color: var(--text-dim); padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.outlet-group:last-child { border-bottom: none; }
.outlet-name { font-weight: 700; color: var(--text); }
.outlet-count { color: var(--text-muted); font-size: 0.75rem; }
.vote-timeline { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.vote-timeline h3 { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.timeline-day { position: relative; padding-left: 1.5rem; padding-bottom: 1rem; border-left: 2px solid var(--border); margin-left: 0.5rem; }
.timeline-day:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-day::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.timeline-date { font-size: 0.82rem; font-weight: 700; color: var(--accent); margin-bottom: 0.25rem; }
.timeline-votes { font-size: 0.78rem; color: var(--text-dim); }
.animate-num { display: inline-block; }
.projected-teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.team-column { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; }
.team-column.first-team { border-color: var(--gold); }
.team-column.second-team { border-color: var(--silver); }
.team-column.third-team { border-color: var(--bronze); }
.team-column h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.team-column.first-team h4 { color: var(--gold); }
.team-column.second-team h4 { color: var(--silver); }
.team-column.third-team h4 { color: var(--bronze); }
.team-player { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.team-player:last-child { border-bottom: none; }
.team-player .tp-name { font-weight: 600; }
.team-player .tp-team { font-size: 0.72rem; color: var(--text-muted); }
.team-player .tp-pts { font-weight: 700; color: var(--accent); font-size: 0.82rem; }
.whats-new { background: rgba(249,115,22,0.06); border: 1px solid rgba(249,115,22,0.15); border-radius: 10px; padding: 0.75rem 1.15rem; margin-bottom: 1.5rem; font-size: 0.82rem; color: var(--text-dim); display: flex; align-items: flex-start; gap: 0.5rem; }
.whats-new .wn-label { font-weight: 700; color: var(--accent); white-space: nowrap; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.1rem; }
.whats-new .wn-body { line-height: 1.5; }
.whats-new .wn-date { font-weight: 600; color: var(--text); }
.content-page { max-width: 760px; margin: 0 auto; }
.content-page h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; margin-bottom: 1.5rem; }
.content-page h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 800; margin: 2rem 0 0.75rem; }
.content-page p { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 1rem; line-height: 1.7; }
.content-page ul { margin: 0.5rem 0 1rem 1.5rem; color: var(--text-dim); font-size: 0.95rem; }
.content-page li { margin-bottom: 0.4rem; }
.content-page a { color: var(--accent); }
.content-page strong { color: var(--text); }

@media (max-width: 640px) {
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat .num { font-size: 1.35rem; }
  .candidates-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .voter-table th, .voter-table td { padding: 0.5rem 0.6rem; }
  .award-header h2 { font-size: 1.5rem; }
  .bar-label { width: 70px; font-size: 0.7rem; }
  .projected-teams { grid-template-columns: 1fr; }
}
