/* Community Voting leaderboard. Compact header so the standings start above the fold. */
.vt-hero .vt-hero-inner{padding-top:26px;padding-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:20px 32px;flex-wrap:wrap}
.vt-hero .hero-art{height:150%}
.vt-hero-text{flex:1 1 420px;max-width:620px}
.vt-hero-text .display{font-size:clamp(34px,4.6vw,52px)}
.vt-lead{margin-top:12px;color:var(--bone);font-size:16px;line-height:1.5}
.vt-strip{flex:0 1 auto;display:flex;align-items:center;gap:14px 26px;flex-wrap:wrap;padding:14px 20px;background:rgba(20,10,10,.78);backdrop-filter:blur(4px)}
.vt-strip .eyebrow{font-size:11px;margin-bottom:4px}
.vt-strip-prize{display:flex;align-items:center;gap:12px}
.vt-prize-icon{width:40px;height:40px;border-radius:50%;flex:none}
.vt-prize-title{font-family:var(--font-condensed);font-style:italic;font-weight:700;font-size:24px;line-height:1.05;color:#fff;margin:0}
.vt-prize-title strong{color:var(--flame-orange)}
.vt-cd-grid{display:flex;gap:6px}
.vt-cd-grid>div{display:flex;align-items:baseline;gap:2px;padding:5px 8px;border:1px solid var(--smoke-600);border-radius:var(--radius-md);background:var(--char-900)}
.vt-cd-grid .display{font-size:20px;line-height:1;color:#fff;min-width:1.3em;text-align:right}
.vt-cd-grid span:last-child{font-size:12px;color:var(--text-muted)}
.vt-cd-when{font-size:11.5px;margin-top:5px}
.vt-countdown .btn{margin-top:4px}
.vt-board.section{padding-top:28px}
/* Shown once voting has closed */
.vt-frozen{display:flex;gap:14px;align-items:flex-start;padding:16px 20px;margin-bottom:20px;border-color:#6fb7e8;background:linear-gradient(180deg,rgba(111,183,232,.12),rgba(111,183,232,.04))}
.vt-frozen[hidden]{display:none}
.vt-frozen-icon{font-size:26px;line-height:1;color:#9fd2f5}
.vt-frozen strong{color:#fff;font-size:17px}
.vt-frozen p{font-size:14px;margin-top:4px;line-height:1.5}
.vt-dot.final{background:#9fd2f5}
.vt-head h2{line-height:1}
.vt-prize-title strong{color:var(--flame-orange)}
/* "How it works" accordion: a full-width panel at the bottom of the hero; opening it pushes the standings down. */
.vt-how{flex:1 1 100%;display:grid;grid-template-columns:1.4fr 1fr;gap:28px;align-items:center;background:rgba(20,10,10,.82);backdrop-filter:blur(4px);animation:vtOpen .22s ease-out}
.vt-how[hidden]{display:none}
@keyframes vtOpen{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.vt-how-toggle{background:none;border:0;padding:0;font:inherit;color:var(--flame-orange);cursor:pointer;white-space:nowrap}
.vt-how-toggle:hover{text-decoration:underline}
.vt-how-toggle:focus-visible{outline:2px solid var(--flame-orange);outline-offset:3px;border-radius:3px}
.vt-caret{display:inline-block;transition:transform .2s}
.vt-how-toggle[aria-expanded="true"] .vt-caret{transform:rotate(180deg)}
.vt-how p{color:var(--bone);line-height:1.55}
.vt-token code{font-size:12px;word-break:break-all;color:var(--text-muted)}
.vt-head{display:flex;justify-content:space-between;align-items:center;gap:10px 16px;flex-wrap:wrap;margin-bottom:16px}
.vt-status{font-size:14px;display:flex;align-items:center;gap:8px}
.vt-dot{width:9px;height:9px;border-radius:50%;background:var(--smoke-600);flex:none}
/* Loading: spinners in every row's rank and vote count until the first numbers arrive */
.vt-dot.loading{background:none;border:2px solid rgba(242,106,27,.25);border-top-color:var(--flame-orange);width:12px;height:12px;animation:vtSpin .8s linear infinite}
.vt-loading [data-vt-n],.vt-loading [data-vt-rank]{color:transparent;position:relative}
.vt-loading [data-vt-n]::after,.vt-loading [data-vt-rank]::after{content:"";position:absolute;top:50%;left:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;border:3px solid rgba(242,106,27,.22);border-top-color:var(--flame-orange);border-right-color:var(--flame-yellow);animation:vtSpin .8s linear infinite}
.vt-loading [data-vt-n]{min-width:34px;display:inline-block}
.vt-loading [data-vt-rank]::after{width:18px;height:18px;margin:-9px 0 0 -9px;opacity:.6}
@keyframes vtSpin{to{transform:rotate(360deg)}}
.vt-dot.live{background:#3ddc84;box-shadow:0 0 0 0 rgba(61,220,132,.6);animation:vtPulse 2s infinite}
.vt-dot.poll{background:var(--flame-yellow)}
@keyframes vtPulse{70%{box-shadow:0 0 0 8px rgba(61,220,132,0)}100%{box-shadow:0 0 0 0 rgba(61,220,132,0)}}
.vt-row.bump{animation:vtBump 1.6s ease-out}
@keyframes vtBump{0%{background:rgba(242,106,27,.28)}100%{background:var(--char-900)}}
@media(prefers-reduced-motion:reduce){.vt-dot.live,.vt-row.bump,.vt-how{animation:none}.vt-dot.loading,.vt-loading [data-vt-n]::after,.vt-loading [data-vt-rank]::after{animation-duration:2.4s}}
.vt-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.vt-row{display:grid;grid-template-columns:64px 1fr 150px;gap:20px;align-items:center;padding:18px 22px}
/* Only the leader (rank 1, ties included) is highlighted: it is the one in line for the 750 PUSD prize. */
.vt-row.leader{border-color:var(--flame-yellow);box-shadow:0 0 0 1px rgba(255,202,69,.45),0 8px 28px rgba(255,202,69,.12);background:linear-gradient(180deg,rgba(255,202,69,.07),rgba(255,202,69,0) 70%),var(--char-900)}
.vt-lead-badge{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;padding:4px 12px 4px 6px;border-radius:14px;line-height:1.35;background:rgba(255,202,69,.14);border:1px solid rgba(255,202,69,.5);color:var(--flame-yellow);font-size:13px;font-weight:700;letter-spacing:.02em}
.vt-lead-badge img{width:20px;height:20px;border-radius:50%}
.vt-row.zero{opacity:.72}
.vt-rank{font-family:var(--font-display);font-style:italic;color:var(--flame-orange);font-size:34px;line-height:1;text-align:center}
.vt-row.leader .vt-rank{color:var(--flame-yellow)}
.vt-main{min-width:0;display:flex;flex-direction:column;gap:8px}
.vt-proj{min-width:0}
.card h3.vt-name{font-family:var(--font-condensed);font-weight:700;font-style:italic;text-transform:none;font-size:22px;line-height:1.15;margin:0;overflow-wrap:anywhere}
.vt-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:14px;margin-top:4px}
.vt-shared{font-size:13px}
.vt-addr{display:flex;align-items:center;gap:10px;min-width:0}
.vt-addr code{font-size:12px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.vt-addr .btn{flex:none;padding:4px 10px;font-size:12px}
.vt-votes{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.vt-votes .display{font-size:34px;line-height:1}
.vt-votes-n{display:flex;align-items:center;gap:10px}
.vt-ember{width:30px;height:30px;border-radius:50%;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.vt-row.zero .vt-ember{opacity:.55;filter:grayscale(.6)}
.vt-token-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.vt-token-head img{width:44px;height:44px;border-radius:50%}
.vt-votes .muted{font-size:11px;letter-spacing:.12em;text-transform:uppercase}
/* The connected wallet's EMBER2026, next to the standings heading */
.vt-mine{margin-right:auto;margin-left:8px;font-size:14px}
.vt-mine[hidden],.vt-mine [hidden]{display:none!important}
.vt-mine-bal{display:inline-flex;align-items:center;gap:9px;padding:6px 14px 6px 7px;border:1px solid rgba(242,106,27,.45);border-radius:999px;background:rgba(242,106,27,.08);color:var(--bone)}
.vt-mine-bal img{border-radius:50%}
.vt-mine-bal strong{color:#fff;font-size:17px}
.vt-mine-sub{color:var(--text-muted)}
.vt-mine-spin{width:13px;height:13px;border-radius:50%;border:2px solid rgba(242,106,27,.25);border-top-color:var(--flame-orange);animation:vtSpin .8s linear infinite}
.vt-mine-connect{background:none;border:1px dashed var(--smoke-600);border-radius:999px;padding:7px 14px;font:inherit;font-size:14px;color:var(--flame-orange);cursor:pointer}
.vt-mine-connect:hover{border-color:var(--flame-orange)}
/* Vote button + dialog */
.vt-vote-btn{margin-top:8px;padding:7px 18px;font-size:13px}
.vt-voting-closed .vt-vote-btn{display:none}
.vt-modal{position:fixed;inset:0;z-index:150;background:rgba(5,2,2,.8);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:16px}
.vt-modal[hidden]{display:none}
.vt-modal [hidden]{display:none!important}
.vt-modal-card{position:relative;width:100%;max-width:440px;max-height:calc(100vh - 32px);overflow:auto;background:var(--char-800);border:1px solid var(--smoke-600);border-radius:var(--radius-lg);padding:28px 26px 24px;box-shadow:0 0 0 1px rgba(194,15,53,.35),0 30px 60px rgba(0,0,0,.6)}
.vt-modal-close{position:absolute;top:10px;right:12px;background:none;border:0;color:var(--text-muted);font-size:18px;cursor:pointer;padding:6px}
.vt-m-title{font-family:var(--font-condensed);font-style:italic;font-weight:700;font-size:26px;line-height:1.15;color:#fff;margin:6px 0 2px;overflow-wrap:anywhere}
.vt-m-by{font-size:14px}
.vt-m-status{margin:14px 0;color:var(--bone);font-size:15px;line-height:1.5}
.vt-m-status.err{color:#ff8f8f}
.vt-m-status:empty{display:none}
.vt-m-balance{display:flex;align-items:center;gap:10px;margin:4px 0 16px;padding:10px 12px;border:1px solid var(--smoke-600);border-radius:var(--radius-md);background:var(--char-900);font-size:15px}
.vt-m-balance img{border-radius:50%}
.vt-m-balance strong{color:#fff;font-size:17px}
.vt-modal label{display:block;font-size:13px;font-weight:700;color:var(--text-muted);margin-bottom:6px}
.vt-m-row{display:flex;gap:8px}
.vt-m-row input{flex:1;min-width:0;padding:11px 14px;background:var(--ash-black);border:1px solid var(--smoke-600);border-radius:var(--radius-md);color:#fff;font:inherit;font-size:20px;font-weight:700}
.vt-m-row input:focus{outline:2px solid var(--flame-orange);outline-offset:1px}
.vt-m-to{font-size:12px;margin:10px 0 16px}
.vt-m-to code{overflow-wrap:anywhere}
.vt-modal form .btn[type=submit]{width:100%}
.vt-m-note{font-size:12.5px;margin-top:12px;line-height:1.5}
/* Waiting on the wallet / the network */
.vt-m-status.busy::before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-2px;border-radius:50%;border:2px solid rgba(242,106,27,.25);border-top-color:var(--flame-orange);animation:vtSpin .8s linear infinite}
.vt-m-wait{text-align:center;padding:14px 0 4px}
.vt-m-spinner{position:relative;width:84px;height:84px;margin:6px auto 16px;display:flex;align-items:center;justify-content:center}
.vt-m-spinner::before{content:"";position:absolute;inset:0;border-radius:50%;border:4px solid rgba(242,106,27,.18);border-top-color:var(--flame-orange);border-right-color:var(--flame-yellow);animation:vtSpin .9s linear infinite;box-shadow:0 0 18px rgba(242,106,27,.25)}
.vt-m-spinner img{border-radius:50%;animation:vtBreathe 1.8s ease-in-out infinite}
@keyframes vtBreathe{50%{transform:scale(.9);opacity:.8}}
.vt-m-wait-title{color:#fff;font-size:19px;font-weight:700;margin-bottom:6px}
.vt-m-steps{list-style:none;margin:18px auto 0;padding:0;display:inline-flex;flex-direction:column;gap:8px;text-align:left;font-size:14px;color:var(--text-muted)}
.vt-m-steps li{display:flex;align-items:center;gap:10px}
.vt-m-steps li::before{content:"";width:16px;height:16px;border-radius:50%;border:2px solid var(--smoke-600);flex:none;box-sizing:border-box}
.vt-m-steps li.active{color:#fff}
.vt-m-steps li.active::before{border-color:rgba(242,106,27,.25);border-top-color:var(--flame-orange);animation:vtSpin .8s linear infinite}
.vt-m-steps li.done{color:var(--bone)}
.vt-m-steps li.done::before{content:"✓";border-color:#3ddc84;background:#3ddc84;color:#06240f;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center}
@media(prefers-reduced-motion:reduce){.vt-m-spinner::before,.vt-m-steps li.active::before,.vt-m-status.busy::before{animation-duration:2.4s}.vt-m-spinner img{animation:none}}
.vt-m-done{color:#fff;font-size:17px;margin:14px 0 8px;line-height:1.4}
.vt-foot{font-size:13px;margin-top:24px;max-width:760px}
@media(max-width:640px){
  .vt-hero .vt-hero-inner{padding-top:18px;padding-bottom:16px}
  .vt-strip{width:100%;padding:12px 14px}
  .vt-cd-when{display:none}
  .vt-lead{font-size:15px;margin-top:8px}
  .vt-head h2{font-size:26px}
  .vt-strip-prize .vt-prize-icon{width:34px;height:34px}
  .vt-prize-title{font-size:21px}
  .vt-board.section{padding-top:20px}
  .vt-how{grid-template-columns:1fr}
  .vt-row{grid-template-columns:40px 1fr;gap:12px;padding:16px}
  .vt-rank{font-size:26px}
  .vt-votes{grid-column:2;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:8px}
  .vt-votes .display{font-size:26px}
  .vt-ember{width:24px;height:24px}
  .vt-mine{order:3;flex:1 1 100%;margin:0}
  .vt-mine-sub{display:none}
  .vt-votes{flex-wrap:wrap}
  .vt-vote-btn{margin:0 0 0 auto}
  .vt-votes-n{gap:8px}
}
