@font-face {
  font-family: 'Baloo Token';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/baloo2-700.woff2") format('woff2');
}
@font-face {
  font-family: 'Work Token';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/worksans-400.woff2") format('woff2');
}
@font-face {
  font-family: 'Work Token';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/worksans-600.woff2") format('woff2');
}

:root {
  color-scheme: light;
  --ground:      #f4f1f8;
  --ground-2:    #ffffff;
  --surface:     #ffffff;
  --surface-2:   #faf8fc;
  --ink:         #17131f;
  --ink-2:       #5a5468;
  --ink-3:       #948da4;
  --line:        rgba(23,19,31,0.10);
  --line-strong: rgba(23,19,31,0.18);

  --accent:      #6c4fd0;
  --accent-ink:  #ffffff;
  --accent-soft: rgba(108,79,208,0.12);

  --diversity:      #2a78d6;
  --diversity-soft: rgba(42,120,214,0.13);
  --equity:         #c9591f;
  --equity-soft:    rgba(201,89,31,0.14);
  --inclusion:      #14916a;
  --inclusion-soft: rgba(20,145,106,0.13);

  --shadow: 0 1px 2px rgba(23,19,31,0.06), 0 12px 28px -12px rgba(23,19,31,0.22);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --ground:      #16121f;
    --ground-2:    #0f0c17;
    --surface:     #201a2c;
    --surface-2:   #251f33;
    --ink:         #f6f3fb;
    --ink-2:       #c3bcd6;
    --ink-3:       #8c84a3;
    --line:        rgba(246,243,251,0.10);
    --line-strong: rgba(246,243,251,0.20);

    --accent:      #9a85e8;
    --accent-ink:  #17131f;
    --accent-soft: rgba(154,133,232,0.18);

    --diversity:      #5b9ce7;
    --diversity-soft: rgba(91,156,231,0.18);
    --equity:         #e0854a;
    --equity-soft:    rgba(224,133,74,0.18);
    --inclusion:      #3fbf93;
    --inclusion-soft: rgba(63,191,147,0.18);

    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 20px 40px -16px rgba(0,0,0,0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground:      #16121f;
  --ground-2:    #0f0c17;
  --surface:     #201a2c;
  --surface-2:   #251f33;
  --ink:         #f6f3fb;
  --ink-2:       #c3bcd6;
  --ink-3:       #8c84a3;
  --line:        rgba(246,243,251,0.10);
  --line-strong: rgba(246,243,251,0.20);

  --accent:      #9a85e8;
  --accent-ink:  #17131f;
  --accent-soft: rgba(154,133,232,0.18);

  --diversity:      #5b9ce7;
  --diversity-soft: rgba(91,156,231,0.18);
  --equity:         #e0854a;
  --equity-soft:    rgba(224,133,74,0.18);
  --inclusion:      #3fbf93;
  --inclusion-soft: rgba(63,191,147,0.18);

  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 20px 40px -16px rgba(0,0,0,0.55);
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground:      #f4f1f8;
  --ground-2:    #ffffff;
  --surface:     #ffffff;
  --surface-2:   #faf8fc;
  --ink:         #17131f;
  --ink-2:       #5a5468;
  --ink-3:       #948da4;
  --line:        rgba(23,19,31,0.10);
  --line-strong: rgba(23,19,31,0.18);
  --accent:      #6c4fd0;
  --accent-ink:  #ffffff;
  --accent-soft: rgba(108,79,208,0.12);
  --diversity:      #2a78d6;
  --diversity-soft: rgba(42,120,214,0.13);
  --equity:         #c9591f;
  --equity-soft:    rgba(201,89,31,0.14);
  --inclusion:      #14916a;
  --inclusion-soft: rgba(20,145,106,0.13);
  --shadow: 0 1px 2px rgba(23,19,31,0.06), 0 12px 28px -12px rgba(23,19,31,0.22);
}

* { box-sizing: border-box; }
/* An author rule setting `display` always beats the UA [hidden]{display:none}
   rule at equal specificity, so any hidden element that also has a class-based
   display value (the tray backdrop, ticket section, reset button, etc.) needs
   this to actually disappear. */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, var(--diversity-soft), transparent 60%),
    radial-gradient(ellipse 900px 500px at 85% 0%, var(--inclusion-soft), transparent 60%),
    var(--ground);
  color: var(--ink);
  font-family: 'Work Token', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: 'Baloo Token', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}
button { font-family: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.stage {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 56px) clamp(16px, 5vw, 28px) 80px;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 48px);
}

/* ---------- Brand ---------- */
/* The logo file is a white wordmark + gold mark meant for a dark backdrop —
   it would go illegible dropped straight onto the page (especially in light
   mode). This plate is a fixed dark colour rather than a themed token, so the
   logo reads correctly regardless of which page theme is active. */
.brand-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  padding: 8px 16px;
  border-radius: 12px;
  background: #201a2c;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 8px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Work Token', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: conic-gradient(var(--diversity) 0 33%, var(--equity) 33% 66%, var(--inclusion) 66% 100%);
  flex: none;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.02;
}
.hero h1 .tok {
  display: inline-block;
  background: linear-gradient(100deg, var(--diversity), var(--equity) 50%, var(--inclusion));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.hero .rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.rule-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.rule-chip b { color: var(--ink); font-weight: 600; }
.rule-chip .n {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: 'Baloo Token', sans-serif; font-size: 12px;
}
.cta-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.btn {
  appearance: none; border: none; cursor: pointer;
  border-radius: 999px;
  font-family: 'Work Token', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 24px -8px var(--accent-soft), var(--shadow);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, black 15%);
  box-shadow: 0 14px 30px -8px var(--accent-soft), var(--shadow);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(1px) scale(0.99); }
.btn-ghost {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-confirming {
  background: var(--equity) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ---------- Progress ---------- */
.progress-row {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-2); font-size: 0.9rem;
}
.progress-track {
  flex: 1; height: 8px; border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--diversity), var(--equity), var(--inclusion));
  width: 0%;
  transition: width 0.5s cubic-bezier(.2,.8,.2,1);
}

/* ---------- Boxes ---------- */
.boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 22px);
}
@media (max-width: 720px) {
  .boxes { grid-template-columns: 1fr; }
}
.box-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 20px 20px;
  text-align: left;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  color: inherit;
  --pillar: var(--diversity);
  --pillar-soft: var(--diversity-soft);
  overflow: hidden;
}
.box-card[data-pillar="equity"]    { --pillar: var(--equity);    --pillar-soft: var(--equity-soft); }
.box-card[data-pillar="inclusion"] { --pillar: var(--inclusion); --pillar-soft: var(--inclusion-soft); }
.box-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--pillar);
}
.box-card:hover { transform: translateY(-2px); }
.box-card.filled { cursor: default; }
.box-card.locked { cursor: default; }
.box-card.locked:hover { transform: none; }
.box-card.locked .box-slot { opacity: 0.9; }
.box-slot {
  align-self: center;
  width: 84px; height: 84px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pillar) 35%, white 65%), var(--pillar) 70%);
  box-shadow: inset 0 -6px 10px rgba(0,0,0,0.18), inset 0 4px 6px rgba(255,255,255,0.35), var(--shadow);
  position: relative;
  display: grid; place-items: center;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.box-slot::after {
  content: "";
  width: 34px; height: 8px; border-radius: 4px;
  background: rgba(0,0,0,0.35);
}
.box-card.filled .box-slot {
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pillar) 45%, white 55%), var(--pillar) 75%);
}
.box-card.filled .box-slot::after { display: none; }
.box-card.filled .box-slot .check {
  position: absolute; font-family: 'Baloo Token', sans-serif; color: #fff; font-size: 30px; line-height: 1;
}
.box-name {
  font-size: 1.3rem;
  text-align: center;
  color: var(--pillar);
}
.box-desc {
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-2);
  margin-top: -8px;
}
.box-status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-3);
  min-height: 1.4em;
}
.box-card.filled .box-status { color: var(--ink-2); font-weight: 600; }
.box-hint {
  text-align: center; font-size: 0.78rem; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

/* ---------- Tray / modal ---------- */
.tray-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 8, 16, 0.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 40;
  padding: 0;
}
@media (min-width: 720px) {
  .tray-backdrop { align-items: center; padding: 24px; }
}
.tray {
  background: var(--surface);
  width: 100%; max-width: 640px;
  max-height: 88vh;
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
  --pillar: var(--diversity);
}
@media (min-width: 720px) {
  .tray { border-radius: 24px; max-height: 80vh; }
}
.tray[data-pillar="equity"] { --pillar: var(--equity); }
.tray[data-pillar="inclusion"] { --pillar: var(--inclusion); }
.tray-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pillar) 10%, transparent), transparent);
}
.tray-head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tray-title { font-size: 1.35rem; color: var(--pillar); }
.tray-sub { color: var(--ink-2); font-size: 0.9rem; }
.tray-close {
  appearance: none; border: none; background: var(--surface-2);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  color: var(--ink-2); font-size: 18px; line-height: 1; flex: none;
}
.tray-body {
  padding: 16px 22px 22px;
  overflow-y: auto;
}
.coin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 420px) {
  .coin-grid { grid-template-columns: 1fr; }
}
.coin-item { display: flex; flex-direction: column; gap: 6px; }
.coin-row { display: flex; align-items: center; gap: 8px; }
.coin {
  appearance: none; cursor: pointer;
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  text-align: left;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px 10px 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.coin:hover { border-color: var(--pillar); background: color-mix(in srgb, var(--pillar) 8%, var(--surface-2)); }
.coin:active { transform: scale(0.98); }
.coin .disc {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pillar) 35%, white 65%), var(--pillar) 70%);
  box-shadow: inset 0 -3px 4px rgba(0,0,0,0.2), inset 0 2px 3px rgba(255,255,255,0.35);
}
.coin span:last-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.coin.chosen { border-color: var(--pillar); background: color-mix(in srgb, var(--pillar) 14%, var(--surface-2)); }

.info-btn {
  appearance: none; cursor: pointer;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-3);
  font-family: 'Work Token', sans-serif;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  display: grid; place-items: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.info-btn:hover, .info-btn[aria-expanded="true"] {
  border-color: var(--pillar); color: var(--pillar);
  background: color-mix(in srgb, var(--pillar) 10%, var(--surface-2));
}
.coin-desc {
  margin: 0; padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.flying-coin {
  position: fixed; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--fly-color) 35%, white 65%), var(--fly-color) 70%);
  box-shadow: inset 0 -3px 4px rgba(0,0,0,0.25), 0 6px 14px rgba(0,0,0,0.3);
  z-index: 60;
  pointer-events: none;
}

#confetti-canvas {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
}

/* ---------- Ticket ---------- */
.ticket-wrap { display: flex; justify-content: center; }
.ticket {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 26px 26px 22px;
  position: relative;
  background-image:
    radial-gradient(circle at 0 50%, var(--ground) 8px, transparent 8.5px),
    radial-gradient(circle at 100% 50%, var(--ground) 8px, transparent 8.5px);
  background-position: left center, right center;
  background-repeat: no-repeat;
}
.ticket-eyebrow {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; text-align: center; margin-bottom: 6px;
}
.ticket h2 { text-align: center; font-size: 1.5rem; margin-bottom: 4px; }
.ticket .sub { text-align: center; color: var(--ink-2); font-size: 0.85rem; margin-bottom: 18px; }
.ticket-line {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--line-strong);
}
.ticket-line:first-of-type { border-top: none; }
.ticket-swatch {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: var(--c);
}
.ticket-line .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); font-weight: 600;
}
.ticket-line .topic { font-weight: 600; font-size: 1.02rem; }
.lock-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 20px 0 4px; }
/* The pulse lives on a ::after ring rather than the button's own box-shadow —
   the button also has a hover box-shadow transition (.btn-primary:hover), and
   animating the same property on the same element that a transition also
   targets makes them fight each other, which reads as a flicker whenever the
   cursor moves over/near the button. A separate pseudo-element avoids that
   entirely, and the slower, gentler cycle keeps it calm rather than flashy. */
.btn-lock { position: relative; }
.btn-lock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: lockPulse 3.6s ease-in-out infinite;
}
@keyframes lockPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 30%, transparent); }
  60%  { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.lock-note { font-size: 0.78rem; color: var(--ink-3); text-align: center; max-width: 42ch; margin: 0; }
.captcha-panel {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 16px; margin: 4px 0; max-width: 320px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.captcha-question { font-size: 0.85rem; color: var(--ink-2); text-align: center; }
.captcha-row { display: flex; gap: 8px; }
.captcha-input {
  width: 100px; padding: 9px 12px; text-align: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 0.95rem;
}
.captcha-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.captcha-error { font-size: 0.78rem; color: var(--equity); font-weight: 600; min-height: 1.1em; margin: 0; text-align: center; }
.lock-error {
  font-size: 0.8rem; color: var(--equity); font-weight: 600;
  text-align: center; min-height: 1.2em; margin: 6px 0 0;
}
.locked-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 18px 0 4px;
  color: var(--inclusion); font-weight: 600; font-size: 0.95rem;
}
.locked-check {
  display: inline-grid; place-items: center; flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--inclusion); color: #fff; font-size: 12px;
}
.ticket-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }

.lock-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 26px -14px rgba(0,0,0,0.3);
  padding: 14px 20px;
  z-index: 30;
}
.lock-banner-text { color: var(--ink-2); font-size: 0.9rem; }
.lock-banner-text strong { color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
body.has-lock-banner .stage { padding-bottom: 88px; }
.ticket-time { text-align: center; color: var(--ink-3); font-size: 0.78rem; margin-top: 14px; }
.copied-msg {
  text-align: center; font-size: 0.82rem; color: var(--inclusion); font-weight: 600;
  height: 1.2em; margin-top: 8px;
}

/* ---------- Leaderboard ---------- */
.board {
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 4vw, 40px);
}
.board-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.board-head h2 { font-size: 1.5rem; }
.live-badge {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--inclusion); border-radius: 999px; padding: 5px 11px;
}
.live-badge .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--inclusion);
  animation: liveDotPulse 4s ease-in-out infinite;
}
@keyframes liveDotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.board-note {
  color: var(--ink-2); font-size: 0.92rem; max-width: 62ch;
}
.board-note strong { color: var(--ink); }
.board-voter-count { color: var(--ink-3); font-size: 0.82rem; margin: -4px 0 0; }
.board-loading, .board-error { color: var(--ink-3); font-size: 0.9rem; }
.board-groups { display: flex; flex-direction: column; gap: 24px; }
.board-group h3 {
  font-size: 1rem; font-family: 'Work Token', sans-serif; font-weight: 600;
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  color: var(--g-color);
}
.board-group h3 .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--g-color); }
.bar-row {
  display: grid; grid-template-columns: 168px 1fr 40px; align-items: center; gap: 10px;
  margin-bottom: 6px; font-size: 0.86rem;
}
@media (max-width: 560px) {
  .bar-row { grid-template-columns: 108px 1fr 34px; font-size: 0.8rem; }
}
.bar-row .name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Both are <span>s (inline by default), and width/height don't apply to plain
   inline elements — .bar-track only looked right because becoming a CSS Grid
   item auto-blockifies it, but .bar-fill sits one level deeper (not itself a
   grid item), so its width was being silently ignored, leaving only the grey
   track visible no matter the vote count. display: block fixes both. */
.bar-track { display: block; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 5px; background: var(--g-color); width: 0%; transition: width 0.8s cubic-bezier(.2,.8,.2,1); }
.bar-row .count { text-align: right; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.board-more {
  margin-top: 4px;
}
.board-more summary {
  cursor: pointer; font-size: 0.8rem; color: var(--ink-3); font-weight: 600;
  list-style: none;
}
.board-more summary::-webkit-details-marker { display: none; }
.board-more summary:hover { color: var(--ink-2); }

footer.foot {
  text-align: center; color: var(--ink-3); font-size: 0.8rem;
  padding-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }

  /* Shrinking the duration to near-zero (above) works for one-off animations —
     they just finish almost instantly instead of being removed. But these two
     are `infinite` ambient/decorative loops, so a near-zero duration doesn't
     stop them, it just makes them cycle thousands of times a second, which
     the browser renders as a flicker rather than stillness. Infinite loops
     need to be switched off outright instead. */
  .live-badge .live-dot,
  .btn-lock::after {
    animation: none !important;
  }
}
