body[data-election-screen="ballot"]{background:#03050a}
#ballot.scr{padding:0;background:#03050a;color:#eef4ff;overflow:hidden}
#ballot.on{display:block}
.ballot-app{position:relative;width:100%;height:100%;background:#03050a;color:#eef4ff;isolation:isolate;overflow:hidden;user-select:none}
.ballot-app button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ballot-app button:focus-visible,.ballot-app[data-input="keyboard"] .ballot-canvas:focus-visible{outline:2px solid #e5eff9;outline-offset:-3px}
.ballot-arena{position:absolute;inset:0;overflow:hidden;touch-action:none;isolation:isolate}
.ballot-studio,.ballot-canvas{position:absolute;inset:0;width:100%;height:100%;outline:none}
.ballot-studio{z-index:0}.ballot-canvas{z-index:1;touch-action:none}
.ballot-vignette{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(180deg,#02050a 0,#02050af0 60px,transparent 155px,transparent 78%,#02050aee),radial-gradient(ellipse at 50% 48%,transparent 45%,#0005 100%)}
.ballot-head{position:absolute;z-index:4;top:max(15px,env(safe-area-inset-top));left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;direction:ltr;gap:12px}
.ballot-head-controls{display:flex;gap:6px;align-items:center}.ballot-icon{width:44px;height:44px;display:inline-grid;place-items:center;padding:11px;border:1px solid #ffffff18;border-radius:50%;background:linear-gradient(145deg,#ffffff0a,#ffffff02);color:#c5d2dd;box-shadow:inset 0 1px 0 #ffffff0c,0 6px 20px #0004;backdrop-filter:blur(12px)}
.ballot-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ballot-counter{display:flex;align-items:center;gap:10px;direction:ltr}.ballot-counter output{font-size:35px;font-weight:500;letter-spacing:-1.5px;line-height:1;font-variant-numeric:tabular-nums}.ballot-counter span{font-size:12px;color:#c4d1db;direction:rtl;text-align:right}.ballot-counter small{display:flex;gap:5px;margin-top:7px}.ballot-counter i{display:block;width:6px;height:6px;border:1px solid #e4ecf2;border-radius:50%;background:#e4ecf2}.ballot-counter i.lost{background:transparent;border-color:#5c6873}
.ballot-legend{position:absolute;left:18px;right:18px;top:max(77px,calc(env(safe-area-inset-top) + 62px));display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:4;pointer-events:none}
.ballot-legend>div{display:flex;align-items:center;gap:8px;min-width:0}.ballot-legend span>small{display:block;font-size:11px;line-height:1.6;color:#bbcad4}.ballot-legend span>b{font-size:12px;font-weight:500;display:block;white-space:nowrap;max-width:130px;overflow:hidden;text-overflow:ellipsis;color:#edf4f8}.legend-faces{display:flex;direction:ltr;flex:none}.legend-faces img{width:26px;height:32px;border-radius:7px;object-fit:cover;object-position:50% 15%;border:1px solid #ffffff60;box-shadow:0 3px 8px #0007}.ballot-legend-rival .legend-faces img+img{margin-left:-14px}.ballot-legend-rival .legend-faces img{filter:saturate(.4);border-color:var(--ballot-rival)}.ballot-legend-own .legend-faces img{border-color:var(--ballot-own)}
.ballot-feedback{position:absolute;z-index:3;left:10px;right:10px;top:128px;text-align:center;pointer-events:none;font-size:12px;color:#cce8ee;margin:0;text-shadow:0 2px 12px #000}.ballot-feedback[data-side="rival"]{color:var(--ballot-rival)}
.ballot-identity{position:absolute;z-index:3;pointer-events:none;left:0;right:0;top:64%;text-align:center;text-shadow:0 3px 20px #000}.ballot-identity small{color:#92a5b5;font-size:10px;letter-spacing:.08em}.ballot-identity h1{font-size:22px;line-height:1.4;font-weight:400;margin:2px 0 0;letter-spacing:-.6px}.ballot-identity i{display:block;height:1px;width:70px;margin:12px auto 0;background:linear-gradient(90deg,transparent,#bedae96e,transparent)}
.ballot-footer{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:18px;right:18px;z-index:4;text-align:center}.ballot-instruction{font-size:14px;line-height:1.5;font-weight:400;margin:0;color:#d5e1e9;text-shadow:0 2px 9px #000}.ballot-controls{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;direction:ltr;margin-top:5px}.ballot-controls button{width:44px;height:44px;background:#ffffff06;border:1px solid #ffffff1a;border-radius:50%;font-size:21px;font-weight:400;touch-action:manipulation}.ballot-controls button:active{background:#ffffff20}.ballot-controls span{direction:rtl;font-size:11px;color:#9bafbe;line-height:1.5}.ballot-note{font-size:9px;color:#8a9bab;margin:4px 0 0}
.ballot-pause,.ballot-result,.ballot-loading{position:absolute;z-index:8;inset:0;background:#02050bd9;backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;padding:24px;text-align:center}
.ballot-pause[hidden],.ballot-result[hidden],.ballot-loading[hidden]{display:none!important}.ballot-pause-card,.ballot-result-card{max-width:300px;width:100%}.ballot-pause-card h2,.ballot-result-card h2{font-size:25px;font-weight:400;margin:0 0 12px}.ballot-pause-card p,.ballot-result-card p{font-size:15px;color:#bbcbd7;margin:0 0 24px}.ballot-pause-card button,.ballot-result-card button,.ballot-loading button{width:100%;min-height:52px;border:1px solid #ffffff24;border-radius:28px;background:transparent;font-size:15px;margin:6px 0;padding:10px 16px}.ballot-main-action{background:#e5eff9!important;color:#081523!important;border-color:transparent!important}.ballot-result-card>small{display:block;color:#a4b8c8;font-size:12px;margin:0 0 8px}.ballot-result-card>strong{display:block;font-size:72px;font-weight:400;letter-spacing:-3px;line-height:1.1}.ballot-result-card>span{display:block;font-size:13px;color:#a6bac8;margin:8px 0 18px}.ballot-result-card .ballot-score-note{font-size:10px;line-height:1.7;margin-top:20px}.ballot-loading{flex-direction:column;color:#c5d5e1}.ballot-loading button{max-width:240px}
.ballot-fallback{position:absolute;inset:0;background:#03050a;z-index:0}.ballot-fallback .depth-architecture{position:absolute;inset:0;width:100%;height:100%;transform:none}.ballot-display{position:absolute;left:27%;top:19%;width:46%;height:39%;overflow:hidden;border:1px solid #9eb4c171;border-radius:5px;box-shadow:0 12px 24px #0009}.ballot-display img,.ballot-display svg{width:100%;height:100%;object-fit:cover;object-position:50% 15%;filter:grayscale(1) contrast(1.3) brightness(.75)}
.ballot-app[data-renderer="webgl"] .ballot-fallback{display:none}.ballot-app:not([data-renderer="webgl"]) .ballot-studio{visibility:hidden}
@media(max-width:370px){.ballot-head,.ballot-legend{left:14px;right:14px}.ballot-legend span>b{max-width:115px;font-size:11px}.ballot-identity h1{font-size:20px}.ballot-controls span{font-size:10px}}
@media(max-height:650px){.ballot-head{top:8px}.ballot-legend{top:64px}.ballot-feedback{top:110px}.ballot-identity{top:60%}.ballot-identity small,.ballot-identity i{display:none}.ballot-identity h1{font-size:18px}.ballot-footer{bottom:8px}.ballot-instruction{font-size:13px}.ballot-note{display:none}}
@media(prefers-reduced-motion:reduce){.ballot-app *{transition:none!important;animation:none!important}}

/* Dark cinema stage. The game contract supplies its surface and stack tokens. */
body[data-election-screen="ballot"]{background:#030814;color-scheme:dark}
#ballot.scr{background:#030814;color:#eef5ff}
.ballot-app{background:var(--ballot-bg);color:var(--ballot-ink);--puzzle-action-height:56px;--puzzle-action-fill:#EEF5FF;--puzzle-action-ink:#06101F;--puzzle-action-font:16px;--puzzle-action-weight:600;--puzzle-action-padding:24px}
.ballot-studio{z-index:var(--layer-studio)}.ballot-canvas{z-index:var(--layer-tokens)}
.ballot-foreground{position:absolute;inset:0;width:100%;height:100%;z-index:var(--layer-ballot);pointer-events:none}
.ballot-vignette{z-index:var(--layer-vignette);background:linear-gradient(180deg,#030814 0,#030814ee 65px,#03081400 180px,#03081400 85%,#030814e6),radial-gradient(ellipse at 50% 44%,transparent 43%,#00000048)}
.ballot-head,.ballot-legend,.ballot-footer{z-index:var(--layer-hud)}
.ballot-pause,.ballot-result,.ballot-loading{z-index:var(--layer-overlay);background:#030814eb}
.ballot-icon{color:#d8e7f7;background:#10203380;border-color:#9bbbd02b}
.ballot-feedback{font-size:12px;color:#b3dced;text-shadow:0 2px 12px #000}
.ballot-identity{top:45%;opacity:var(--intro-progress,1);text-shadow:0 2px 14px #000}
.ballot-identity small{font-size:11px;color:var(--ballot-muted)}.ballot-identity h1{font-size:22px;font-weight:500;letter-spacing:-.3px}.ballot-identity i{margin-top:10px;width:52px;background:linear-gradient(90deg,transparent,#69c5ec88,transparent)}
.ballot-instruction{font-size:15px;color:#e0ebf7}.ballot-controls span{color:#a7bdd0}.ballot-note{color:#8a9fb4}
.ballot-controls button{background:#0b1c2e99;border-color:#9ab9cf38}
.ballot-app .ballot-main-action.btn-puzzle{position:relative;isolation:isolate;background:transparent!important;border:0;border-radius:0;min-height:56px;padding:12px 24px}
.ballot-app[data-renderer="canvas"] .ballot-fallback{display:none}
@media(max-height:650px){.ballot-identity{top:44%}.ballot-identity h1{font-size:18px}}
