@import url('/fonts.css');
:root{--ink:#132442;--red:#d52c35;--paper:#f7f4ec;--muted:#69717d;--line:#dcdcd5;--blue:#1e4ca1}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif}.topline{background:var(--ink);color:#fff;display:flex;justify-content:space-between;padding:12px 5%;font-size:10px;font-weight:800;letter-spacing:1.7px}header{display:flex;align-items:center;justify-content:space-between;padding:26px 5%;border-bottom:1px solid var(--line);gap:20px}.brand{text-decoration:none;color:var(--ink);font-weight:950;letter-spacing:-1.4px;font-size:27px;display:flex;align-items:center;white-space:nowrap}.brand span:not(.brand-icon){color:var(--red)}.brand-icon{background:var(--red);color:white;border-radius:4px;padding:3px 7px;margin-right:10px;transform:rotate(-6deg)}.brand i{color:var(--red);font-size:15px;margin-left:7px}nav{display:flex;gap:30px}nav a{color:var(--ink);font-size:12px;font-weight:700;text-decoration:none}.button{border:0;border-radius:4px;padding:15px 21px;cursor:pointer;font-weight:800;font-size:12px;display:inline-flex;gap:25px;align-items:center;justify-content:center}.navy{background:var(--ink);color:white}.red{background:var(--red);color:white}.button:disabled{opacity:.55;cursor:default}main{max-width:1440px;margin:auto}.hero{padding:66px 7% 53px;display:grid;grid-template-columns:1.1fr 1fr;gap:6%;align-items:center}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:900}.live-dot{height:7px;width:7px;border-radius:50%;background:var(--red);display:inline-block;margin-right:6px}h1{font-family:Impact,'Arial Narrow',sans-serif;font-size:clamp(65px,7.4vw,108px);font-weight:900;line-height:.94;letter-spacing:-2px;margin:25px 0 21px}h1 em{font-style:normal;color:var(--red)}.hero-copy>p{font-size:16px;line-height:1.6;color:#545e6d}.hero-note{display:flex;align-items:center;gap:18px;margin-top:25px;font-size:11px;line-height:1.6;color:var(--muted)}.seal{border:2px solid var(--blue);color:var(--blue);border-radius:50%;height:65px;width:65px;display:flex;flex-direction:column;justify-content:center;text-align:center;line-height:1;font-weight:900;transform:rotate(-13deg);font-size:14px}.seal b{color:var(--red);font-size:8px;margin-top:5px}.election-board{border:2px solid var(--ink);border-radius:7px;box-shadow:8px 8px 0 #e3dfd3;transform:rotate(1deg);background:#fffdf6;overflow:hidden}.board-heading{display:flex;justify-content:space-between;background:var(--ink);color:white;padding:16px 22px;font-size:10px;letter-spacing:2px;font-weight:800}.board-main{padding:26px}.board-main>.eyebrow{color:var(--red);font-size:9px}.countdown{font-family:Impact,'Arial Narrow',sans-serif;font-size:92px;line-height:1.2;letter-spacing:4px;font-variant-numeric:tabular-nums}.board-rule{height:2px;background:var(--ink);margin:8px 0 23px}.board-numbers{display:grid;grid-template-columns:1fr 1fr;gap:15px}.board-numbers>div+div{border-left:1px solid var(--line);padding-left:20px}small{font-size:9px;letter-spacing:1.2px;font-weight:800;color:var(--muted)}.board-numbers strong{display:block;font-size:25px;margin-top:8px}.board-foot{font-size:10px;color:var(--muted);margin:25px 0 0;display:flex;justify-content:space-between}.board-ribbon{background:var(--red);color:white;padding:12px;text-align:center;font-size:8px;letter-spacing:1.6px;font-weight:900}.stripe{border-block:1px solid var(--ink);display:flex;justify-content:space-around;gap:15px;padding:16px 3%;font-size:10px;font-weight:900;letter-spacing:1.4px}.stripe>span:nth-child(odd){color:var(--red)}.ballot-section,.history{padding:48px 7%}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}h2{font-size:32px;letter-spacing:-1.2px;margin:10px 0;font-weight:900}.sealed{display:flex;gap:10px;align-items:center}.sealed>span{font-size:24px}.sealed strong{display:block;font-size:9px;letter-spacing:1px}.sealed small{display:block;font-size:10px;font-weight:400;letter-spacing:0;margin-top:6px}.candidates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.candidate{border:1px solid #d2d4d7;background:#fff;border-radius:6px;overflow:hidden;position:relative;transition:transform .2s,box-shadow .2s}.candidate:hover{transform:translateY(-4px);box-shadow:0 10px 25px #13244214}.candidate.selected{outline:3px solid var(--blue);outline-offset:3px}.candidate.winner{outline:3px solid var(--red);outline-offset:3px}.candidate-top{display:flex;justify-content:space-between;padding:13px 16px;font-size:9px;font-weight:800;letter-spacing:1px;border-bottom:1px solid var(--line)}.candidate-top span:last-child{color:var(--red)}.candidate img{display:block;width:100%;aspect-ratio:1.32;object-fit:cover;background:#e9edf3}.candidate-body{padding:20px}.candidate h3{font-size:29px;margin:0 0 7px;letter-spacing:-1px}.candidate p{font-size:12px;color:var(--muted);margin:0 0 22px}.candidate button{width:100%;background:white;border:1px solid var(--ink);padding:13px;border-radius:3px;color:var(--ink);font-weight:800;cursor:pointer}.candidate button:hover:enabled{background:var(--ink);color:white}.candidate button:disabled{cursor:default;opacity:.65}.candidate.selected button{background:var(--ink);color:white}.count{font-size:20px;font-weight:900;display:flex;justify-content:space-between}.count small{align-self:center;color:var(--red)}.bar{height:5px;background:#eceef2;margin-top:10px;overflow:hidden}.bar span{display:block;height:100%;background:var(--red);width:var(--vote-width,0%);transition:width 2s ease}.feedback{min-height:20px;font-size:13px;font-weight:700;text-align:center;color:var(--red)}.fineprint{text-align:center;font-size:10px;color:var(--muted);line-height:1.6}.how{background:#eaece9;display:grid;grid-template-columns:1fr 1.15fr;gap:8%;padding:45px 7%;border-block:1px solid var(--line)}.how h2{line-height:1.2}.steps article{display:flex;gap:20px;margin-bottom:23px}.steps article:last-child{margin-bottom:0}.steps article>b{font-size:12px;color:var(--red);padding-top:3px}.steps h3{font-size:14px;margin:0 0 7px}.steps p{font-size:12px;line-height:1.6;color:#626c77;margin:0}.total-paid{text-align:right}.total-paid strong{display:block;font-size:22px;margin-top:5px}.history-list>p{font-size:13px;color:var(--muted);padding:20px;background:#fff}.history-row{padding:18px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 2fr 1fr;gap:15px;align-items:center;font-size:12px}.history-row small{display:block;font-size:9px;margin-top:5px}.history-row strong{font-size:15px}.history-row>div:last-child{text-align:right}.receipt-link{color:var(--blue);display:inline-block;margin-top:6px;font-size:10px}.receipt-list{grid-column:1/-1;padding:10px;background:#fff;display:flex;gap:20px;flex-wrap:wrap}footer{background:var(--ink);color:white;padding:35px 5%;display:flex;align-items:center;justify-content:space-between;gap:25px;flex-wrap:wrap}footer .brand{color:white;font-size:23px}footer p{font-size:10px;max-width:250px;line-height:1.6;color:#b6c0d3}footer>span{font-size:9px;letter-spacing:1px}footer button{background:transparent;color:#fff;border:1px solid #63718d;border-radius:3px;padding:10px;font-size:10px;cursor:pointer}dialog{border:2px solid var(--ink);border-radius:8px;background:var(--paper);color:var(--ink);padding:40px;max-width:450px;width:90%}dialog::backdrop{background:#132442b0}dialog p{font-size:14px;line-height:1.6;color:var(--muted)}dialog .button{width:100%;margin-top:15px}.dialog-close{position:absolute;right:12px;top:10px;border:0;background:none;font-size:25px;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #efb63b;outline-offset:4px}.live-view #connect,.live-view nav,.live-view .how,.live-view footer,.live-view .fineprint,.live-view .feedback{display:none}
@media(max-width:800px){header{padding:20px 5%}.brand{font-size:20px}nav{display:none}.hero{padding:35px 6%;gap:25px}.countdown{font-size:65px}.board-main{padding:20px}.board-numbers strong{font-size:20px}h1{font-size:66px}.hero-copy>p{font-size:13px}.stripe{font-size:8px;letter-spacing:.7px}.stripe>span:nth-last-child(-n+2){display:none}.candidates{gap:12px}.candidate-body{padding:15px}.candidate h3{font-size:24px}.sealed{max-width:190px}.how{gap:25px}.section-heading h2{font-size:28px}}
@media(max-width:560px){.topline{font-size:7px;padding:10px 5%;letter-spacing:1px}header .button{font-size:10px;padding:12px;gap:8px}.brand{font-size:17px;letter-spacing:-.8px}.brand-icon{margin-right:6px}.hero{grid-template-columns:1fr;padding:35px 6%}.hero-copy{position:relative}h1{font-size:76px}.hero-note{position:absolute;right:0;bottom:0}.hero-note>span:last-child{display:none}.election-board{transform:none}.countdown{font-size:72px}.board-main{padding:20px 24px}.board-foot{margin-top:16px}.board-numbers strong{font-size:23px}.stripe{gap:10px;font-size:7px}.stripe>span:nth-last-child(-n+4){display:none}.ballot-section,.history{padding:30px 6%}.section-heading{align-items:flex-start;flex-direction:column;gap:10px}.sealed{max-width:none}.candidates{grid-template-columns:1fr;gap:22px}.candidate img{aspect-ratio:1.7}.candidate-body{padding:20px}.candidate h3{font-size:30px}.how{grid-template-columns:1fr;padding:30px 6%}.total-paid{text-align:left}.history-row{grid-template-columns:1fr 1fr}.history-row>div:last-child{grid-column:1/-1;text-align:left}.receipt-list{grid-column:1/-1}footer{justify-content:flex-start;gap:15px}footer p{max-width:none}.hero-note .seal{width:58px;height:58px}.history-row strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.vote-progress{appearance:none;width:100%;height:6px;margin-top:14px;border:0;background:#eceef2}.vote-progress::-webkit-progress-bar{background:#eceef2}.vote-progress::-webkit-progress-value{background:#d52c35;transition:width 2s}.vote-progress::-moz-progress-bar{background:#d52c35}

#walletAddress{width:100%;padding:14px;border:1px solid #8a94a4;border-radius:4px;margin-top:10px;font-size:13px;background:white;color:#132442}#loginError{color:#d52c35}#loginForm label{font-size:12px;font-weight:700}
.hero-copy{min-width:0}.hero-contract{margin-top:24px;max-width:100%}.hero-contract>.eyebrow{font-size:9px}.hero-contract-row{display:flex;align-items:center;gap:10px;margin-top:8px;padding:10px 12px;border:1px solid #14274740;border-radius:4px;background:#fffdf7}.hero-contract code{font-size:12px;line-height:1.5;overflow-wrap:anywhere;min-width:0;flex:1;user-select:all}.hero-contract button{flex-shrink:0;min-width:38px;min-height:38px;border:1px solid #14274730;background:#f5f1e7;border-radius:4px;font-size:20px;cursor:pointer}.hero-contract button:hover{background:#e5eafa}.hero-contract button:disabled{opacity:.4;cursor:default}.hero-copy-status{display:block;min-height:16px;margin-top:5px;color:var(--blue);font-size:11px}@media(max-width:560px){.hero-note{position:static;margin-top:20px}.hero-contract{margin-top:20px}}
.election-board[data-tone="results"] .board-main{background:#e5f5eb}.election-board[data-tone="results"] .countdown{color:#16845b}.election-board[data-tone="waiting"] .countdown{color:#a66b17;font-size:clamp(32px,5vw,64px)}

.candidate.winner{border-color:#16845b;background:#edf9f1}.candidate.winner .candidate-top{color:#16845b}.candidate.faded{opacity:.35}
.candidate.winner{outline-color:#16845b}.candidate.winner progress::-webkit-progress-value{background:#16845b}.candidate.winner progress::-moz-progress-bar{background:#16845b}
