/* The vote page (/vote): a run of vote lists to work down, the /claim step, and the reward ladder. Done is the
   Blight's green (a word AND a colour), the next list to vote on is gold, everything else recedes. Built on the site
   tokens (site.css). */
.vt { width: min(100% - 32px, 1320px); margin: 0 auto; padding: 28px 0 80px; display: grid; gap: 34px; }
.vt > * { min-width: 0; }
.vt kbd { padding: 1px 7px 2px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-deep); color: var(--gold); font: 700 .95em/1.2 var(--font-label); letter-spacing: .04em; }
.vt-label { color: var(--ink-3); font: 700 .74rem/1.2 var(--font-label); letter-spacing: .14em; text-transform: uppercase; }
.vt-empty { margin: 0; padding: 40px 20px; border: 1px dashed var(--line-soft); border-radius: 6px; color: var(--ink-3); text-align: center; }

/* The top: the call on the left, the count and the one button that walks you through every list on the right. */
.vt-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 22px 48px; align-items: end; }
.vt-top__main { min-width: 0; }
.vt-kicker { margin: 0 0 10px; color: var(--blight); font: 700 .8rem/1 var(--font-label); letter-spacing: .2em; text-transform: uppercase; }
.vt-title { margin: 0; color: var(--ink); font: 400 clamp(3rem, 9vw, 6.4rem)/.86 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.vt-title em { display: block; font-style: normal; color: var(--gold); }
.vt-lede { margin: 16px 0 0; max-width: 58ch; color: var(--ink-2); font-size: 1.05rem; line-height: 1.55; }

.vt-run { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 8px;
    background: radial-gradient(130% 120% at 100% 0, oklch(0.8 0.135 78 / .12), transparent 60%), var(--panel); }
.vt-tally { display: flex; align-items: baseline; gap: 4px; margin: 0; color: var(--ink); }
.vt-tally b { font: 400 clamp(3.6rem, 7vw, 5rem)/.8 var(--font-display); font-variant-numeric: tabular-nums; color: var(--blight); }
.vt-tally span { font: 400 2rem/1 var(--font-display); color: var(--ink-3); }
.vt-tally small { margin-left: 8px; color: var(--ink-3); font: 700 .8rem/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; }
.vt-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 22px; border-radius: 6px;
    background: var(--gold); color: var(--gold-ink); text-decoration: none; font: 400 1.5rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
    transition: transform .18s var(--ease-out), background-color .18s; }
.vt-go .icon { width: 26px; height: 26px; flex: none; }
.vt-go:hover { background: oklch(0.86 0.13 82); transform: translateY(-1px); }
.vt-go:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.vt-go.is-finished { background: var(--blight); }
.vt-signin { margin: 0; color: var(--ink-2); font-size: .92rem; }
.vt-signin a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; }
.vt-signin .icon { width: 17px; height: 17px; }

/* The run: one row per list, numbered in the order the button walks them. */
.vt-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.vt-site { --tone: var(--line-soft); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "n body state" "n body go";
    gap: 8px 16px; align-items: center; padding: 18px 18px 18px 14px; min-width: 0; border: 1px solid var(--tone); border-radius: 8px; background: var(--panel);
    transition: border-color .2s, background-color .2s; }
.vt-site__n { grid-area: n; align-self: start; color: var(--ink-3); font: 400 2.6rem/.85 var(--font-display); font-variant-numeric: tabular-nums; }
.vt-site__body { grid-area: body; min-width: 0; }
.vt-site__name { margin: 0; color: var(--ink); font: 700 1.3rem/1.1 var(--font-label); letter-spacing: .02em; overflow-wrap: anywhere; }
.vt-site__host { margin: 4px 0 0; color: var(--ink-3); font-size: .85rem; overflow-wrap: anywhere; }
.vt-site__note { margin: 10px 0 0; color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.vt-state { grid-area: state; justify-self: end; padding: 5px 10px; border-radius: 4px; background: oklch(1 0 0 / .06); color: var(--ink-3);
    font: 700 .74rem/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.vt-site__go { grid-area: go; justify-self: end; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line);
    border-radius: 6px; color: var(--ink); text-decoration: none; font: 700 1rem/1 var(--font-label); letter-spacing: .08em; text-transform: uppercase; }
.vt-site__go .icon { width: 16px; height: 16px; }
.vt-site__go:hover { border-color: var(--gold); color: var(--gold); }
.vt-site__go:focus-visible, .vt-copy:focus-visible, .vt-signin a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.vt-site.is-next { --tone: var(--gold); background: radial-gradient(120% 120% at 0 0, oklch(0.8 0.135 78 / .1), transparent 60%), var(--panel); }
.vt-site.is-next .vt-site__n { color: var(--gold); }
.vt-site.is-next .vt-site__go { border-color: var(--gold); background: var(--gold); color: var(--gold-ink); }
.vt-site.is-opened .vt-state { color: var(--gold); background: oklch(0.8 0.135 78 / .14); }
.vt-site.is-done { --tone: color-mix(in oklch, var(--blight) 50%, var(--line-soft)); }
.vt-site.is-done .vt-site__n { color: var(--blight); }
.vt-site.is-done .vt-state { color: var(--bg-deep); background: var(--blight); }
.vt-site.is-done .vt-site__go { color: var(--ink-3); }

.vt-copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px;
    background: var(--bg-deep); color: var(--ink); font: 600 .9rem/1 var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.vt-copy .icon { width: 15px; height: 15px; color: var(--gold); }
.vt-copy.is-copied { border-color: var(--blight); }

/* /claim: three steps, the command set big. */
.vt-claim { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto); gap: 20px 40px; align-items: center; padding: 26px 0;
    border-block: 1px solid var(--line-soft); }
.vt-claim__title { margin: 0; color: var(--ink); font: 400 clamp(2.2rem, 5vw, 3.4rem)/.9 var(--font-display); text-transform: uppercase; white-space: nowrap; }
.vt-claim__title kbd { padding: 0 .2em; border: 0; background: none; color: var(--blight); font: inherit; }
.vt-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.vt-steps li { position: relative; padding-left: 38px; color: var(--ink-2); line-height: 1.5; counter-increment: step; }
.vt-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--bg-deep); border: 1px solid var(--line); color: var(--gold); font: 700 .85rem/1 var(--font-label); }
.vt-steps b { color: var(--ink); }
.vt-mine { display: grid; gap: 12px; min-width: 220px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel); }
.vt-mine__count { margin: 0; color: var(--ink-2); font: 700 .8rem/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; }
.vt-mine__count b { display: block; margin-bottom: 4px; color: var(--ink); font: 400 2.6rem/.9 var(--font-display); letter-spacing: 0; }
.vt-mine__next { display: grid; gap: 8px; }

.vt-items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vt-items li { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-size: .92rem; line-height: 1.25; }
.vt-items img, .vt-items .icon { width: 22px; height: 22px; flex: none; }
.vt-items .icon { color: var(--gold); }
.vt-items span { min-width: 0; overflow-wrap: anywhere; }

/* The ladder: one rung per reward, the player's next one lit. */
.vt-ladder { display: grid; gap: 16px; }
.vt-ladder__head { display: grid; gap: 6px; }
.vt-ladder__title { margin: 0; color: var(--ink); font: 400 clamp(1.8rem, 3.6vw, 2.5rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.vt-ladder__note { margin: 0; max-width: 70ch; color: var(--ink-3); }
.vt-extras { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.vt-extras .vt-label { margin-right: 8px; }
.vt-rungs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 10px; margin: 0; padding: 0 0 12px; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.vt-rung { display: grid; align-content: start; gap: 10px; padding: 16px; min-width: 0; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel); scroll-snap-align: start; }
.vt-rung__n { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--ink); font: 400 2.4rem/.9 var(--font-display); font-variant-numeric: tabular-nums; }
.vt-rung__n small { color: var(--ink-3); font: 700 .74rem/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; }
.vt-rung__you { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: var(--gold); font: 700 .74rem/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; }
.vt-rung__you .icon { width: 13px; height: 13px; }
.vt-rung.is-next { border-color: var(--gold); background: radial-gradient(120% 90% at 0 0, oklch(0.8 0.135 78 / .14), transparent 65%), var(--panel); }
.vt-rung.is-done { opacity: .62; }
.vt-rung.is-done .vt-rung__you { color: var(--blight); }

@media (max-width: 900px) {
    .vt-top { grid-template-columns: minmax(0, 1fr); }
    .vt-claim { grid-template-columns: minmax(0, 1fr); }
    .vt-mine { min-width: 0; }
}
@media (max-width: 520px) {
    .vt-site { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n body" "n state" "go go"; }
    .vt-state { justify-self: start; }
    .vt-site__go { justify-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .vt-go, .vt-site { transition: none; }
    .vt-go:hover { transform: none; }
}
