/* webbatch8z: the redesigned /vote page (site.votes.redesign ON). Every class starts with .v8 so nothing else on the site
   is touched. Panels are self-contained dark glass with a colour per card (--va = an rgb triplet), text in the design's
   own tokens, so all 22 designs (light ones included) show it. No layout shift: the art boxes have fixed sizes, timers
   use tabular digits in a fixed-width box. Motion: off for prefers-reduced-motion and for the site's Motion switch. */
.v8 { container-type: inline-size; max-width: 72rem; margin: 0 auto 56px; color: var(--color-pearl, #eef1f8); }
.v8 :where(h1, h2, p, ol, ul) { margin: 0; }

/* hero: key art left/right, the logo dragon breaking out of the top edge */
.v8-hero { position: relative; isolation: isolate; margin: 84px 0 22px; padding: 120px 20px 30px; border-radius: 18px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 150, 60, .22), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(100, 160, 255, .22), transparent 60%),
    linear-gradient(180deg, #120b18, #07070d 80%);
  border: 1px solid rgba(230, 190, 106, .45); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6) inset, 0 24px 60px -24px rgba(0, 0, 0, .8), 0 0 40px -10px rgba(255, 140, 50, .35); }
.v8-hero::before { content: ""; position: absolute; inset: 6px; border-radius: 13px; border: 1px solid rgba(255, 220, 160, .12); pointer-events: none; }
.v8-hero::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, #ffcf7a, transparent); }
.v8-hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: 18px; }
.v8-hero-art img { position: absolute; bottom: -30px; width: 46%; max-width: 330px; height: auto; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%); mask-image: linear-gradient(180deg, #000 30%, transparent 92%); }
.v8-k1 { left: -40px; transform: scaleX(-1); }
.v8-k2 { right: -40px; }
.v8-medal { position: absolute; left: 50%; top: -74px; width: 156px; height: 156px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, #7a4a14, #ffe7aa, #c8913f, #6a3410, #ffe7aa, #7a4a14); padding: 5px; box-shadow: 0 0 0 2px #07040e, 0 12px 30px rgba(0, 0, 0, .8), 0 0 34px rgba(255, 150, 60, .55); }
.v8-medal-art { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 2px #07040e, inset 0 -18px 30px rgba(0, 0, 0, .65), inset 0 0 22px rgba(255, 190, 110, .35);
  background: radial-gradient(circle at 50% 30%, transparent 55%, rgba(8, 5, 18, .55)), url("/brand/v2/hero-main-828.webp") 54% 9% / 330% auto no-repeat, #0b0716; }
.v8-medal-gem { position: absolute; left: 50%; bottom: -20px; width: 44px; height: 44px; transform: translateX(-50%); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .9)) drop-shadow(0 0 10px rgba(110, 160, 255, .8)); animation: v8-gem 3.6s ease-in-out infinite; }
@keyframes v8-gem { 50% { transform: translateX(-50%) translateY(-3px) rotate(8deg); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .9)) drop-shadow(0 0 18px rgba(110, 160, 255, 1)) brightness(1.2); } }
.v8-hero-in { position: relative; max-width: 40rem; margin: 0 auto; }
.v8-eyebrow { font-size: 11px; letter-spacing: .38em; color: #ffcf7a; }
.v8 .v8-title { margin-top: 6px !important; -webkit-text-fill-color: transparent; font-size: clamp(28px, 5cqi, 46px); line-height: 1.05; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff6df 10%, #ffd27a 55%, #c9822f); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 1px rgba(0, 0, 0, .2); }
.v8-lead { margin-top: 10px !important; font-size: 15px; line-height: 1.6; color: #d9d2e4; }

/* layout: board + side column (side moves under the board in narrow columns) */
.v8-grid { display: grid; gap: 18px; }
@container (min-width: 780px) { .v8-grid { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; } }

/* ready summary */
.v8-board { display: grid; gap: 16px; }
.v8-sum { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 18px 8px 8px; border-radius: 999px; position: relative;
  background: linear-gradient(90deg, rgba(63, 224, 168, .16), rgba(10, 12, 22, .9) 60%); border: 1px solid rgba(63, 224, 168, .4); }
.v8-sum-ring { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.v8-sum-ring circle, .v8-ring circle { fill: none; stroke-width: 4; }
.v8-sum-ring .tr { stroke: rgba(255, 255, 255, .12); }
.v8-sum-ring .fg { stroke: #3fe0a8; stroke-linecap: round; }
.v8-sum-n { position: absolute; left: 8px; width: 44px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: #eafff6; }
.v8-sum-t { font-size: 15px; font-weight: 700; color: #eafff6; }
.v8-sum[data-all] { box-shadow: 0 0 24px -6px rgba(63, 224, 168, .6); }

/* site cards: a colour each, the art breaking out of the top-right corner */
.v8-cards { display: grid; gap: 30px 16px; padding: 22px 0 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.v8-card { --va: 230, 190, 106; position: relative; display: grid; gap: 12px; padding: 18px 18px 16px; border-radius: 16px; min-width: 0;
  background: linear-gradient(160deg, rgba(var(--va), .26), rgba(9, 9, 16, .94) 52%), #09090f;
  border: 1px solid rgba(var(--va), .5); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55) inset, 0 18px 40px -22px rgba(0, 0, 0, .9), 0 0 32px -14px rgba(var(--va), .7); }
.v8-card::before { content: ""; position: absolute; left: 16px; right: 110px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, rgb(var(--va)), transparent); }
.v8-art { position: absolute; right: 14px; top: -28px; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(var(--va), .45), #0b0a12 70%); border: 1px solid rgba(var(--va), .65); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .9), 0 0 22px -4px rgba(var(--va), .7); }
.v8-jewel { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .8)); }
.v8-banner { width: 70px; height: 42px; object-fit: contain; border-radius: 4px; background: #000; }
.v8-ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); pointer-events: none; }
.v8-ring .tr { stroke: rgba(255, 255, 255, .08); stroke-width: 3; }
.v8-ring .fg { stroke: rgb(var(--va)); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(var(--va), .9)); }
.v8-head { min-width: 0; padding-right: 96px; }
.v8-name { font-size: 22px; font-weight: 800; line-height: 1.15; color: #fff; overflow-wrap: anywhere; letter-spacing: .01em; }
.v8-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px !important; font-size: 12.5px; color: #bdb6cb; }
.v8-meta span + span::before { content: "·"; margin-right: 12px; color: rgba(var(--va), .9); }
.v8-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.v8-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; color: #f2e6c8; background: rgba(230, 190, 106, .14); border: 1px solid rgba(230, 190, 106, .4); }
.v8-chip.is-ok { color: #c9ffe8; background: rgba(63, 224, 168, .14); border-color: rgba(63, 224, 168, .5); }
.v8-chip.is-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fe0a8; box-shadow: 0 0 6px #3fe0a8; }
.v8-state { min-height: 46px; display: flex; align-items: center; }
.v8-ready { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #3fe0a8; }
.v8-ready::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3fe0a8; box-shadow: 0 0 0 4px rgba(63, 224, 168, .18), 0 0 12px #3fe0a8; animation: v8-pulse 1.8s ease-in-out infinite; }
.v8-timer { display: grid; gap: 1px; }
.v8-timer small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #a79fb6; }
.v8-timer b { display: inline-block; min-width: 9ch; font-size: 28px; line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; color: rgb(var(--va)); text-shadow: 0 0 14px rgba(var(--va), .55); }
.v8-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #120a02; border: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, #fff1cf, rgb(var(--va)) 55%, color-mix(in srgb, rgb(var(--va)) 60%, #000)); box-shadow: 0 8px 22px -10px rgba(var(--va), .9), inset 0 1px 0 rgba(255, 255, 255, .6); text-decoration: none; }
.v8-btn:hover:not(:disabled), .v8-btn:focus-visible { filter: brightness(1.08); }
.v8-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.v8-btn:disabled { cursor: not-allowed; color: #8f88a0; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.v8-btn.is-ghost { color: #fff; background: rgba(var(--va), .12); border-color: rgba(var(--va), .7); box-shadow: none; }
.v8-msg { font-size: 13px; color: #9ff0d0; }
.v8-msg.is-err { color: #ffb3c6; }
.v8-msg a { text-decoration: underline; }
.v8-login { margin-top: 14px !important; padding: 10px 14px; border-radius: 10px; text-align: center; font-size: 14px; color: #e4ddef; background: rgba(9, 9, 16, .88); border: 1px solid rgba(255, 255, 255, .12); }
.v8-note { margin-top: 14px !important; padding: 10px 14px; border-radius: 10px; text-align: center; font-size: 13px; color: #ffd98f; background: linear-gradient(rgba(230, 190, 106, .08), rgba(230, 190, 106, .08)), rgba(9, 9, 16, .9); border: 1px dashed rgba(230, 190, 106, .45); }
.v8-empty { padding: 22px; text-align: center; border-radius: 14px; color: #c9c2d6; background: rgba(9, 9, 16, .85); border: 1px solid rgba(255, 255, 255, .12); }

/* side panels */
.v8-side { display: grid; gap: 14px; }
.v8-panel { position: relative; padding: 16px; border-radius: 14px; background: linear-gradient(170deg, rgba(var(--va), .18), rgba(9, 9, 16, .94) 60%), #09090f; border: 1px solid rgba(var(--va), .42); }
.v8-ph { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgb(var(--va)); margin-bottom: 10px !important; }
.v8-steps ol { display: grid; gap: 10px; padding: 0; list-style: none; counter-reset: v8s; }
.v8-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.4; color: #e4ddef; }
.v8-steps img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .7)); }
.v8-streak-n { display: flex; align-items: baseline; gap: 8px; }
.v8-streak-n b { font-size: 44px; line-height: 1; font-weight: 800; color: #ffb36b; text-shadow: 0 0 18px rgba(255, 120, 50, .6); }
.v8-streak-n span, .v8-streak-best { font-size: 12.5px; color: #c9c2d6; }
.v8-hist ul, .v8-top ol { display: grid; gap: 6px; padding: 0; list-style: none; font-size: 13px; }
.v8-hist li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; color: #e4ddef; }
.v8-hist time { color: #a79fb6; font-size: 12px; }
.v8-ok { width: 8px; height: 8px; border-radius: 50%; background: #3fe0a8; box-shadow: 0 0 6px #3fe0a8; }
.v8-top li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; color: #e4ddef; }
.v8-top .r { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .08); }
.v8-top li[data-rank="1"] .r { background: #e6be6a; color: #1a1102; }
.v8-top li[data-rank="2"] .r { background: #c9d3e6; color: #10141c; }
.v8-top li[data-rank="3"] .r { background: #c98a52; color: #1a0e04; }
.v8-top b { font-variant-numeric: tabular-nums; color: rgb(var(--va)); }

@keyframes v8-pulse { 50% { box-shadow: 0 0 0 7px rgba(63, 224, 168, 0), 0 0 16px #3fe0a8; } }
@media (prefers-reduced-motion: reduce) { .v8 *, .v8 *::before { animation: none !important; transition: none !important; } }
[data-motion="off"] .v8 *, [data-motion="off"] .v8 *::before { animation: none !important; }

@container (max-width: 520px) {
  .v8-hero { padding: 102px 14px 22px; margin-top: 70px; }
  .v8-medal { width: 124px; height: 124px; top: -60px; }
  .v8-hero-art img { width: 58%; opacity: .35; }
  .v8-cards { grid-template-columns: 1fr; }
  .v8-name { font-size: 20px; }
  .v8-art { width: 80px; height: 80px; top: -24px; }
  .v8-jewel { width: 50px; height: 50px; }
  .v8-head { padding-right: 84px; }
}
/* b140: link to the full board, the voters board page (/vote/top) and the account's board-name form */
.v8-more { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: rgb(var(--va)); text-decoration: none; }
.v8-more:hover, .v8-more:focus-visible { text-decoration: underline; }
.v8-board-page .v8-months { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.v8-board-page .v8-months a { display: inline-block; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; color: #d9d2e4; text-decoration: none; background: rgba(9, 9, 16, .88); border: 1px solid rgba(255, 255, 255, .14); }
.v8-board-page .v8-months a[aria-current="page"] { color: #1a1102; background: linear-gradient(180deg, #ffe7a6, #e6be6a); border-color: transparent; font-weight: 800; }
.v8-board-page .v8-board-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.v8-board-page .v8-board-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px;
  color: #eee8f6; background: linear-gradient(90deg, rgba(var(--va), .16), rgba(9, 9, 16, .92) 45%), #09090f; border: 1px solid rgba(var(--va), .35); }
.v8-board-page .v8-board-list .r { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; background: rgba(255, 255, 255, .08); }
.v8-board-page .v8-board-list li[data-rank="1"] { --va: 230, 190, 106; } .v8-board-page .v8-board-list li[data-rank="1"] .r { background: #e6be6a; color: #1a1102; }
.v8-board-page .v8-board-list li[data-rank="2"] { --va: 201, 211, 230; } .v8-board-page .v8-board-list li[data-rank="2"] .r { background: #c9d3e6; color: #10141c; }
.v8-board-page .v8-board-list li[data-rank="3"] { --va: 201, 138, 82; } .v8-board-page .v8-board-list li[data-rank="3"] .r { background: #c98a52; color: #1a0e04; }
.v8-board-page .v8-board-list b { font-variant-numeric: tabular-nums; font-size: 18px; color: rgb(var(--va)); }
.v8-board-page .v8-board-list .n { font-weight: 700; overflow-wrap: anywhere; }
.v8-profile { max-width: 42rem; margin: 48px auto 0; padding: 18px; border-radius: 14px; color: #eee8f6; background: linear-gradient(170deg, rgba(63, 224, 168, .14), rgba(9, 9, 16, .94) 60%), #09090f; border: 1px solid rgba(63, 224, 168, .4); }
.v8-profile h2 { margin: 0 0 6px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #3fe0a8; }
.v8-profile p { margin: 0 0 12px; font-size: 13px; color: #c9c2d6; }
.v8-profile form { display: grid; gap: 10px; }
.v8-profile label.f { display: grid; gap: 4px; font-size: 12px; color: #c9c2d6; }
.v8-profile input[type="text"] { min-height: 40px; padding: 8px 10px; border-radius: 8px; color: #fff; background: #050409; border: 1px solid rgba(255, 255, 255, .2); font-size: 15px; }
.v8-profile input[type="text"]:focus-visible { outline: 2px solid #3fe0a8; outline-offset: 1px; }
.v8-profile label.c { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.v8-profile .v8-btn { width: auto; justify-self: start; --va: 63, 224, 168; }
.v8-profile .msg { font-size: 13px; color: #9ff0d0; } .v8-profile .msg.is-err { color: #ffb3c6; }
