@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--paper:#f7f6f0;--ink:#172d35;--muted:#6c787b;--line:#dcded7;--orange:#d95935;--d:#477fbd;--r:#d56a5c;--o:#b49a50}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button{transition:background .15s,transform .15s}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #dc8150;outline-offset:3px}header{height:91px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5%}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;font-weight:800;font-size:14px;letter-spacing:1px}.brand-icon{color:var(--orange);font-size:38px;line-height:1}.header-right{display:flex;align-items:center;gap:32px}.edition,.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px}.dot{color:var(--orange);margin:0 9px}button.outline{border:1px solid #b9c1bb;background:transparent;border-radius:5px;padding:11px 16px;color:var(--ink);font-weight:600}#boardCount{display:inline-grid;place-items:center;background:#e6e9e1;margin:0 7px;border-radius:50%;width:22px;height:22px}main{max-width:1400px;margin:auto;padding:0 5%}.hero{display:flex;align-items:center;justify-content:space-between;padding:51px 0 45px;gap:30px}.hero .eyebrow{display:flex;align-items:center;gap:9px}.hero .eyebrow span{width:7px;height:7px;background:var(--orange);border-radius:50%}h1,h2,b.ticket{font-family:'Space Grotesk',sans-serif}h1{font-size:clamp(44px,4.6vw,66px);letter-spacing:-3px;line-height:1.02;font-weight:600;margin:21px 0 18px}.orange{color:var(--orange)}.hero p{color:var(--muted);line-height:1.7;margin:0}.ticket{width:300px;transform:rotate(6deg);background:#eee9d9;border:1px solid #d5cdb4;margin-right:22px;position:relative;box-shadow:6px 8px 0 #eae8df}.ticket-top,.ticket-bottom{padding:15px 19px;font-size:9px;font-weight:700;letter-spacing:1.6px;display:flex;justify-content:space-between}.ticket-top{border-bottom:1px dashed #bcb79f}.ticket-top span{color:var(--orange)}.ticket-body{padding:15px 19px 21px;display:flex;gap:15px;align-items:center}.ticket-body b{font-family:'Space Grotesk';font-size:57px;letter-spacing:-4px}.ticket-body div{font-size:10px;font-weight:700;line-height:1.6}.ticket-bottom{border-top:1px dashed #bcb79f}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 302px;gap:25px;align-items:start}.game{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.tabs{display:flex;background:#eeefe9;border-bottom:1px solid var(--line)}.tabs button{flex:1;display:flex;align-items:center;gap:8px;background:transparent;border:0;border-right:1px solid var(--line);padding:22px 15px;font-size:10px;color:#8a9390;position:relative}.tabs button:last-child{border-right:0}.tabs b{font-size:14px;color:var(--ink)}.tabs button span{font-size:9px;margin-left:auto}.tabs button.active{background:white;color:var(--orange)}.tabs button.active:after{content:'';position:absolute;bottom:-1px;left:15px;right:15px;height:3px;background:var(--orange)}.game-body{padding:29px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}h2{font-size:28px;line-height:1.15;letter-spacing:-1px;font-weight:600;margin:10px 0 0}.section-head .eyebrow{color:var(--muted);font-size:9px}.small-pill{border:1px solid var(--line);border-radius:25px;padding:7px 11px;font-size:10px;white-space:nowrap}.muted{color:var(--muted);line-height:1.6}.palette{display:flex;gap:7px;margin:22px 0}.palette button{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:5px;background:#fff;padding:9px 10px;font-size:11px;font-weight:600}.palette button.selected{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}.swatch{display:inline-block;width:9px;height:9px;border-radius:2px;flex-shrink:0}.democrat{background:var(--d)}.republican{background:var(--r)}.other{background:var(--o)}.unset{background:#e2e8e6}.inactive{background:#f3f3ef;border:1px solid #e4e6e0}kbd{font:9px 'DM Sans';color:#98a19f;margin-left:4px}.palette .eraser{margin-left:auto;color:var(--muted)}.map-wrap{padding:14px 0 25px}.state-map{display:grid;grid-template-columns:repeat(12,1fr);gap:5px;max-width:680px;margin:auto}.state{aspect-ratio:1.05;border:1px solid #d4dedb;background:#e5ece9;border-radius:5px;color:#4b6366;font-family:'Space Grotesk';font-weight:600;font-size:12px;position:relative;min-width:0;padding:0}.state:disabled{background:#f5f5f1;border-color:#eeefea;color:#b3bab5;cursor:default}.state:not(:disabled):hover{transform:translateY(-2px);border-color:var(--ink)}.state[data-pick=D]{background:var(--d);color:#fff;border-color:var(--d)}.state[data-pick=R]{background:var(--r);color:#fff;border-color:var(--r)}.state[data-pick=O]{background:var(--o);color:#fff;border-color:var(--o)}.state small{display:block;font:7px 'DM Sans';line-height:1}.map-footer{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px;font-size:10px;color:var(--muted)}.map-footer .swatch{margin-right:5px}.map-footer .inactive{margin-left:13px}.text-button{background:none;border:0;color:var(--muted);padding:4px;font-size:11px;text-decoration:underline;text-underline-offset:3px}.race-totals{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:19px}.race-totals div{font-size:10px;color:var(--muted);display:flex;gap:6px;align-items:center}.race-totals b{font-family:'Space Grotesk';font-size:23px;color:var(--ink);margin-right:3px}.map-note{font-size:9px;color:#8b9591;margin:19px 0 0;line-height:1.6}.ballot-card{background:var(--ink);border-radius:8px;color:#fff;padding:27px 23px}.ballot-card .eyebrow{color:#b7c6c3;font-size:9px}.ballot-card h2{font-size:30px;margin-bottom:26px}.name-label{font-size:9px;letter-spacing:1.5px;display:block;margin-bottom:9px;font-weight:700;color:#ccd7d2}input{border:1px solid #d9dfd9;border-radius:4px;padding:13px;width:100%;color:var(--ink);background:white}#playerName{background:#2b4148;border-color:#526368;color:white;font-size:12px}#playerName::placeholder{color:#aab6b5}.ballot-summary{margin:24px 0 18px}.ballot-summary>div{display:flex;justify-content:space-between;margin:15px 0;font-size:11px;color:#c4d0ce}.ballot-summary b{color:white;font-size:11px}.completion-track{height:4px;background:#3b4e53;border-radius:3px;overflow:hidden}#completionBar{height:100%;background:#e89c71;transition:width .3s}.small{font-size:11px}.ballot-card .muted{color:#aabcb9;font-size:10px}.primary{display:flex;justify-content:space-between;align-items:center;gap:20px;border:0;border-radius:5px;background:var(--orange);color:white;font-weight:600;padding:14px 16px}#saveBallot{width:100%;margin-top:20px;font-size:12px}.local-note{font-size:9px;color:#b3c2bf;text-align:center;margin:13px 0}.local-note span{margin-right:4px}.next-player{display:block;margin:18px auto 0;color:#c3cfca;font-size:10px}.how-card{padding:25px 15px}.how-card .eyebrow{font-size:9px;color:#7b8581}.how-card ol{padding:0;list-style:none;margin:20px 0 0}.how-card li{display:flex;gap:15px;margin:18px 0;font-size:11px}.how-card li>span{font-family:'Space Grotesk';color:var(--orange);font-size:12px;padding-top:1px}.how-card p{color:var(--muted);line-height:1.6;margin:4px 0}.how-card b{font-size:12px}footer{border-top:1px solid var(--line);margin-top:40px;padding:24px 0 35px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:15px;font-size:9px;letter-spacing:1px;color:#87918d}footer details{width:100%;letter-spacing:0;font-size:11px}footer summary{cursor:pointer}footer p{line-height:1.6;max-width:800px}a{color:inherit}.house-intro{display:flex;gap:18px;align-items:center;margin:30px 0}.house-icon{font-size:42px;color:var(--orange)}.house-intro p{line-height:1.7}.seat-chart{display:grid;grid-template-columns:repeat(29,1fr);gap:4px}.seat-dot{aspect-ratio:1;border-radius:2px;background:#e2e8e6}.majority{text-align:center;font-size:10px;margin:15px;color:var(--muted)}.seat-inputs{display:flex;gap:15px;margin-top:30px}.seat-inputs label{flex:1;font-size:11px}.seat-inputs .swatch{margin-right:6px}.seat-inputs input{font-family:'Space Grotesk';font-size:27px;margin-top:10px;padding:12px}.house-status{padding:15px;background:var(--paper);margin-top:20px;font-size:12px;border-radius:4px}.house-status.valid{background:#e7eee4;color:#3a6340}dialog{border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);width:min(960px,94vw);max-height:88vh;padding:32px}dialog::backdrop{background:#172d35aa;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:36px}.close{border:0;background:#e9ebe4;width:35px;height:35px;border-radius:50%;font-size:25px}.board-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.board-actions button{font-size:11px}.empty-board{border:1px dashed #bec8c1;text-align:center;padding:45px;margin:25px 0;border-radius:7px}.ballot-row{background:white;border:1px solid var(--line);border-radius:6px;margin:13px 0;padding:18px}.ballot-row summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:15px}.player-title{font-size:17px;font-weight:700}.player-meta{font-size:10px;color:var(--muted)}.prediction-columns{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:20px}.prediction-columns h3{font-size:12px}.pick-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;font-size:10px}.pick-list div{display:flex;align-items:center;gap:5px}.row-actions{display:flex;gap:15px;border-top:1px solid var(--line);padding-top:15px;margin-top:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:15px 23px;box-shadow:0 4px 25px #0002;border-radius:7px;z-index:20;max-width:92vw;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}[hidden]{display:none!important}@media(min-width:1450px){header{padding-left:max(5%,calc((100% - 1260px)/2));padding-right:max(5%,calc((100% - 1260px)/2))}}@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.game-body{padding:22px}.tabs button{padding:19px 10px}.tabs button span{display:none}.palette button{font-size:10px;padding:8px}.palette kbd{display:none}.state-map{gap:4px}.state{font-size:10px}.race-totals div{flex-wrap:wrap;font-size:9px}.edition{display:none}}@media(max-width:780px){header{height:75px;padding:0 5%}.brand{font-size:10px;gap:7px;letter-spacing:.7px}.brand-icon{font-size:30px}#boardButton{padding:8px 10px;font-size:11px}.hero{padding:35px 0}.hero h1{font-size:48px;letter-spacing:-2px}.ticket{display:none}.hero p{font-size:12px}.workspace{grid-template-columns:1fr}.ballot-card h2 br{display:none}.ballot-card h2{font-size:28px}.how-card{display:none}.game-body{padding:20px 15px}.tabs button{justify-content:center;gap:6px}.tabs b{font-size:12px}.section-head h2{font-size:25px}.palette{gap:5px}.palette button{padding:9px 7px;gap:5px;font-size:9px}.palette .swatch{width:7px;height:7px}.state{font-size:10px;border-radius:4px}.state-map{gap:3px}.map-wrap{padding-top:8px}.state small{font-size:5px}.race-totals{gap:5px}.race-totals b{font-size:20px}.race-totals div{gap:4px}.ballot-card{padding:24px}.ballot-summary{display:flex;gap:15px;justify-content:space-between}.ballot-summary>div{display:block;line-height:1.8;font-size:10px}.ballot-summary b{display:block}.prediction-columns{grid-template-columns:1fr}.ballot-row summary{align-items:start;flex-direction:column;gap:6px}dialog{padding:22px}.dialog-head h2{font-size:28px}.seat-chart{gap:3px}.seat-inputs{gap:10px}.seat-inputs label{font-size:9px}.seat-inputs input{font-size:24px;padding:10px}footer{font-size:8px;line-height:1.7}.map-footer{font-size:9px}.map-footer .text-button{font-size:10px}}
/* Geographic map and candidate selectors. */
.state-map{display:block;max-width:none}.map-wrap{padding:10px 0 20px}.us-map{display:block;width:100%;height:auto;overflow:visible}.state-outline{fill:#e5ece9;stroke:#fff;stroke-width:1.2;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .15s}.state-outline.no-election{fill:#f1f2ed;cursor:default}.state-outline[data-pick=D],.map-callout[data-pick=D] rect{fill:var(--d)}.state-outline[data-pick=R],.map-callout[data-pick=R] rect{fill:var(--r)}.state-outline[data-pick=O],.map-callout[data-pick=O] rect{fill:var(--o)}.state-outline:not(.no-election):hover,.state-outline:focus-visible{stroke:var(--ink);stroke-width:2;outline:none;filter:brightness(.94)}.state-label{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:700;text-anchor:middle;fill:#456063;pointer-events:none;paint-order:stroke;stroke:#e5ece9;stroke-width:1px}.state-label[data-pick=D],.state-label[data-pick=R],.state-label[data-pick=O]{fill:white;stroke:transparent}.state-label.no-election{fill:#aab4ae;stroke:transparent}.map-leader{fill:none;stroke:#b3bdb7;stroke-width:.8;pointer-events:none}.map-callout{cursor:pointer}.map-callout rect{fill:#e5ece9;stroke:#cdd7d0;stroke-width:1}.map-callout text{font-size:14px;font-weight:700;fill:#456063;text-anchor:middle}.map-callout[data-pick=D] text,.map-callout[data-pick=R] text,.map-callout[data-pick=O] text{fill:white}.map-callout.no-election{cursor:default}.map-callout.no-election rect{fill:#f1f2ed}.map-callout.no-election text{fill:#aab4ae}.map-callout:focus-visible{outline:none}.map-callout:focus-visible rect,.map-callout:not(.no-election):hover rect{stroke:var(--ink);stroke-width:2}.races-section{margin-top:30px;padding-top:28px;border-top:1px solid var(--line)}.race-list-heading h2{font-size:25px}.race-search-label{display:block;font-size:9px;letter-spacing:1px;margin:22px 0 8px;font-weight:700;color:var(--muted)}#raceSearch{font-size:12px;padding:12px 14px}.race-list{margin-top:22px}.race-card{min-width:0;margin:0 0 22px;padding:16px;border:1px solid var(--line);border-radius:7px;scroll-margin-top:25px}.race-card legend{font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:16px;padding:0 6px}.race-card-status{font-size:10px;color:var(--muted);margin:0 0 12px}.candidate-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.candidate-option{display:flex;align-items:center;gap:9px;min-width:0;text-align:left;background:#fafbf8;border:1px solid #e1e5dd;border-radius:5px;color:var(--ink);padding:11px}.candidate-option>span:first-of-type{min-width:0;flex:1}.candidate-option b{font-size:11px;font-weight:600;display:block;overflow-wrap:anywhere}.candidate-option small{font-size:9px;color:var(--muted);display:block;margin-top:4px}.candidate-check{color:#89958e;font-size:14px}.candidate-option.chosen{background:#edf2ef;border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}.candidate-option.chosen .candidate-check{color:var(--ink)}.pick-list{grid-template-columns:1fr}.pick-list div{line-height:1.5}.pick-list .swatch{margin-top:3px}.workspace aside{position:sticky;top:20px}.board-actions{display:none}@media(max-width:780px){.workspace aside{position:static}.map-wrap{margin-left:-8px;margin-right:-5px}.race-card{padding:12px}.candidate-option{padding:10px 8px;gap:7px}.candidate-option b{font-size:10px}.candidate-option small{font-size:8px}.candidate-options{gap:7px}.races-section{margin-top:25px}.palette{flex-wrap:wrap}.map-note{font-size:9px}}
.prediction-bar{display:flex;width:100%;height:24px;margin-top:22px;overflow:hidden;border-radius:5px;background:#e2e8e6;gap:0}.prediction-segment{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:0;overflow:hidden;font-size:10px;font-weight:700;color:white;transition:width .2s ease}.prediction-segment.democratic{background:var(--d)}.prediction-segment.republican{background:var(--r)}.prediction-segment.other{background:var(--o)}.prediction-segment.unpicked{background:#e2e8e6;color:#61716b}.prediction-bar+.race-totals{margin-top:12px}.map-wrap{padding-top:16px}@media(prefers-reduced-motion:reduce){.prediction-segment{transition:none}}
.compact-map-head{justify-content:flex-end;min-height:30px;margin-bottom:0}.compact-map-head:has([hidden]){display:none}.map-wrap{padding-top:0}.board-preview{border:1px solid var(--line);border-radius:8px;background:#fff;padding:18px;margin-bottom:18px}.board-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.board-preview-heading h2{font-size:20px;margin:0;letter-spacing:-.5px}.board-preview-heading button{font-size:10px;white-space:nowrap}#boardPreview{max-height:285px;overflow:auto;margin-top:14px}.preview-empty{font-size:11px;line-height:1.7;color:var(--muted);margin:0}.preview-ballot{display:block;width:100%;text-align:left;background:transparent;border:0;border-top:1px solid var(--line);padding:13px 0;color:var(--ink)}.preview-ballot:first-child{border-top:0;padding-top:0}.preview-ballot>b{display:block;font-size:13px;margin-bottom:8px}.preview-ballot>span{display:flex;justify-content:space-between;gap:8px;font-size:9px;line-height:1.9}.preview-ballot>span>span:first-child{color:var(--muted);white-space:nowrap}.preview-ballot>span>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}.board-house-result{font-family:'Space Grotesk',sans-serif;font-size:20px;font-weight:600;margin:22px 0;color:var(--ink)}.board-maps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.board-map-panel{min-width:0;background:#fafbf8;border:1px solid #e5e8e0;border-radius:6px;padding:14px}.board-map-panel h3{margin:0 0 13px;font-size:14px;font-family:'Space Grotesk',sans-serif}.board-map-totals{display:flex;justify-content:space-between;gap:8px;margin:10px 0 0;font-size:10px}.board-map-totals span{display:flex;align-items:center;gap:5px}.readonly-map .state-outline,.readonly-map .map-callout{cursor:default}.readonly-map .state-outline:hover{stroke:#fff;stroke-width:1.2;filter:none}.readonly-map .map-callout:hover rect{stroke:#cdd7d0;stroke-width:1}.house-slider-header{padding:14px 0 0}.house-slider-header .eyebrow{color:var(--muted)}.house-slider-header h2{font-size:30px;margin-top:12px}.house-seat-labels{display:flex;justify-content:space-between;gap:20px;margin:42px 0 26px}.house-seat-labels>div:last-child{text-align:right}.house-seat-labels span{font-size:12px;color:var(--muted)}.house-seat-labels b{display:block;font-family:'Space Grotesk',sans-serif;font-size:60px;font-weight:600;letter-spacing:-3px;margin-top:5px;line-height:1}.house-seat-labels>div:first-child b{color:var(--d)}.house-seat-labels>div:last-child b{color:var(--r)}input.house-slider{display:block;width:100%;appearance:none;-webkit-appearance:none;height:18px;border:0;border-radius:12px;padding:0;cursor:ew-resize;background:linear-gradient(to right,var(--d) 50%,var(--r) 50%)}.house-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:30px;height:30px;background:white;border:3px solid var(--ink);border-radius:50%;box-shadow:0 2px 6px #0003;cursor:ew-resize}.house-slider::-moz-range-thumb{width:24px;height:24px;background:#fff;border:3px solid var(--ink);border-radius:50%;cursor:ew-resize}.slider-ends{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:14px}.house-status{font-family:'Space Grotesk',sans-serif;font-size:20px;line-height:1.4;text-align:center;margin-top:30px;padding:22px 15px}#houseSliderHelp{text-align:center;margin-top:25px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1050px){.preview-ballot>span{display:block;margin:5px 0;line-height:1.6}.preview-ballot>span>span{display:block}}@media(max-width:780px){.workspace aside{display:flex;flex-direction:column}.board-preview{order:0}.ballot-card{order:1}.board-maps{grid-template-columns:1fr}.board-house-result{font-size:19px}.preview-ballot>span{display:flex;margin:0;line-height:1.9}.preview-ballot>span>span{display:inline}.house-seat-labels b{font-size:50px}.house-slider-header h2{font-size:27px}.house-status{font-size:19px}.board-preview{margin-top:0}.map-wrap{padding-top:0}}
@media(min-width:781px){.workspace aside{max-height:calc(100vh - 40px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:2px}}
