/* ============================================================
   KOTH — components.css   ·   shared chrome (Console)
   Enterprise dashboard: dense, flat, hairline borders, calm
   neutrals with a restrained red. All-sans; mono only for
   literal machine data. Class names preserved for the JS.
   ============================================================ */

/* ── Layout shell ── */
.page-wrap { max-width: var(--shell); margin: 0 auto; padding: 24px 24px 80px; }
.page-wrap-wide { max-width: 1560px; margin: 0 auto; padding: 24px 24px 80px; }
.section { margin-bottom: var(--gap-lg); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); text-transform: none;
}
.nav-brand strong { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1px; }
.nav-link {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  text-transform: none; color: var(--sub);
  border: none; background: none;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--card-hv); }
.nav-link.active { color: var(--text); background: var(--surface); }
.nav-link svg { display: none; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-username { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--text); text-transform: none; letter-spacing: -0.005em; }

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; height: auto; min-height: 56px; padding: 8px 14px; row-gap: 6px; }
  .nav-links { flex-wrap: wrap; justify-content: center; width: 100%; order: 3; gap: 2px; }
  .nav-link { padding: 7px 10px; }
  .nav-right { margin-left: auto; }
  .game-banner { padding: 8px 14px; }
}

/* ── Game status banner ── */
.game-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 24px; font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  text-transform: none; letter-spacing: -0.005em;
  border-bottom: 1px solid var(--border); color: var(--sub);
  background: var(--paper);
}
.game-banner.active { background: var(--red-dim); color: var(--text); border-bottom-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.game-banner.inactive { color: var(--muted); }
.game-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--muted); flex-shrink: 0; }
.game-banner.active .game-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--red-dim); animation: pulse-dot 1.7s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.game-banner .king-live { color: var(--accent); font-weight: 700; }
.game-banner .elapsed { color: inherit; font-variant-numeric: tabular-nums; }

/* ── WS pill ── */
.ws-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--sub);
  text-transform: none; letter-spacing: 0;
}
.ws-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--muted); }
.ws-dot.live { background: var(--green-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); animation: pulse-dot 1.7s ease-in-out infinite; }

/* ── Cards / panels ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card + .card { margin-top: 14px; }
.card-title {
  font-family: var(--display); font-size: 14px; font-weight: 650;
  letter-spacing: -0.01em; text-transform: none; color: var(--text); margin-bottom: 14px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-header .card-title { margin-bottom: 0; }

/* ── Tables ── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; padding: 9px 14px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.04em; font-weight: 600;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background var(--transition); }
.tbl tbody tr:hover td { background: var(--card-hv); }

/* ── Leaderboard (dense) ── */
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.04em; font-weight: 600;
  text-transform: uppercase; color: var(--muted);
  padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border);
}
.lb-row { transition: background var(--transition); }
.lb-row td { border-bottom: 1px solid var(--border); }
.lb-row:last-child td { border-bottom: none; }
.lb-row:hover { background: var(--card-hv); }
.lb-row.is-king { background: var(--red-dim); }
.lb-row.is-king td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.lb-row.is-me td:first-child { box-shadow: inset 3px 0 0 var(--sub); }
.lb-cell { padding: 11px 12px; vertical-align: middle; }
.lb-rank { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--muted); width: 52px; padding-left: 16px; font-variant-numeric: tabular-nums; }
.lb-rank.r1 { color: var(--accent); }
.lb-rank.r2 { color: var(--text); }
.lb-rank.r3 { color: var(--sub); }
.lb-avatar { width: 30px; height: 30px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--sub); }
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-name-wrap { display: flex; align-items: center; gap: 10px; }
.lb-name { font-family: var(--display); font-size: 14px; font-weight: 650; color: var(--text); letter-spacing: -0.01em; }
.lb-team { font-size: 12px; color: var(--sub); margin-top: 1px; font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.lb-pts  { font-family: var(--sans); font-size: 13.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.lb-pts .king-pts { color: var(--accent); }
.lb-pts .flag-pts { color: var(--sub); font-size: 11.5px; }
.lb-bar-wrap { width: 90px; padding-right: 16px; }
.lb-bar-bg  { height: 5px; background: var(--surface); border: none; border-radius: 999px; overflow: hidden; }
.lb-bar-fill { height: 100%; background: var(--muted); border-radius: 999px; transition: width 0.5s ease; }
.lb-row.is-king .lb-bar-fill { background: var(--accent); }
.lb-crown-icon { color: var(--accent); flex-shrink: 0; display: flex; }

/* ── Flags grid ── */
.flags-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; border: none; }
.flag-card {
  padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius); position: relative; overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
}
.flag-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.flag-card:hover { background: var(--card-hv); border-color: var(--border2); }
.flag-name { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; text-transform: none; letter-spacing: -0.01em; }
.flag-pts-big { font-family: var(--display); font-size: 24px; font-weight: 750; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.flag-meta { font-family: var(--sans); font-size: 12px; color: var(--sub); margin-top: 5px; text-transform: none; letter-spacing: 0; }
.flag-captured { opacity: 0.55; }
.flag-captured::before { background: var(--green); }

/* ── History list ── */
.hist-list { display: flex; flex-direction: column; gap: 0; }
.hist-row {
  display: grid; grid-template-columns: 28px 1fr auto auto;
  align-items: center; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.hist-row:last-child { border-bottom: none; }
.hist-rank { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.hist-name { font-family: var(--display); color: var(--text); font-weight: 650; letter-spacing: -0.01em; }
.hist-dur  { font-family: var(--sans); font-size: 12px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.hist-time { font-family: var(--sans); font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ── Event log ── */
.evt-list { display: flex; flex-direction: column; gap: 0; max-height: 300px; overflow-y: auto; }
.evt-row { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; font-size: 12.5px; font-family: var(--sans); border-bottom: 1px solid var(--border); }
.evt-ts { font-size: 11px; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.evt-msg { color: var(--sub); line-height: 1.45; }
.evt-msg.king  { color: var(--accent); font-weight: 600; }
.evt-msg.empty { color: var(--sub); }
.evt-msg.flag  { color: var(--green-bright); }

/* ── Machines ── */
.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.machine-card { padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.machine-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.machine-name { font-family: var(--display); font-size: 14px; font-weight: 650; color: var(--text); letter-spacing: -0.01em; }
.machine-ip { font-family: var(--mono); font-size: 11.5px; color: var(--sub); }
.machine-reported { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 6px; }
.machine-reported strong { color: var(--accent); }

/* ── Stats row ── */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border: none; margin-bottom: 24px; }
.stat-card { padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-val { font-family: var(--display); font-size: 28px; font-weight: 750; color: var(--text); line-height: 1; margin-bottom: 6px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-val.red   { color: var(--accent); }
.stat-val.green { color: var(--green-bright); }
.stat-val.amber { color: var(--amber-bright); }
.stat-lbl { font-family: var(--sans); font-size: 11.5px; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(8,10,13,0.6); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper-2);
  border: 1px solid var(--border2); border-radius: var(--radius-lg);
  padding: 26px; width: 100%; max-width: 460px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-in .16s cubic-bezier(.2,0,0,1);
  max-height: 90vh; overflow-y: auto;
}
.modal-wide { max-width: 760px; }
@keyframes modal-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--muted);
  padding: 6px; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); display: flex;
}
.modal-close:hover { color: var(--text); background: var(--card-hv); }
.modal-title { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 5px; }
.modal-sub { font-family: var(--sans); font-size: 13px; color: var(--sub); margin-bottom: 20px; }
.modal-sep { height: 1px; background: var(--border); margin: 18px 0; }
.modal-footer { margin-top: 22px; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--card); border: 1px solid var(--border2); color: var(--text);
  padding: 12px 16px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: transform 0.24s cubic-bezier(.2,0,0,1), opacity 0.24s ease;
  max-width: 340px; pointer-events: none;
  display: flex; align-items: center; gap: 9px;
}
.toast::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--green-bright); flex-shrink: 0; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.err::before { background: var(--accent); }
.toast.ok::before  { background: var(--green-bright); }

/* ── Avatar preview ── */
.avatar-preview-wrap { display: flex; align-items: center; gap: 16px; }
.avatar-preview {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border2);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── Toggle switch ── */
.switch { position: relative; display: inline-block; width: 38px; height: 21px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: var(--surface); transition: .16s; border-radius: 999px; border: 1px solid var(--border2); }
.slider:before { position: absolute; content: ""; height: 15px; width: 15px; left: 3px; bottom: 2px; background-color: #fff; transition: .16s cubic-bezier(.2,0,0,1); border-radius: 999px; box-shadow: var(--shadow-sm); }
input:checked + .slider { background-color: var(--accent); border-color: var(--accent); }
input:checked + .slider:before { transform: translateX(17px); background-color: #fff; }

/* ── Game stat chips ── */
.game-stat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.game-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 11px;
  font-family: var(--sans); font-size: 12px; color: var(--sub); text-transform: none; letter-spacing: 0;
}
.game-chip-val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* ── Reset-request button ── */
.reset-req-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--text); text-transform: none; letter-spacing: -0.005em;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.reset-req-btn:hover { background: var(--amber); border-color: var(--amber); color: #fff; }

/* ── Alert popup overlay ── */
.alert-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,10,13,0.6); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  animation: fade-in .16s ease;
}
.alert-popup {
  background: var(--paper-2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 28px 30px; max-width: 440px; width: 90%;
  box-shadow: var(--shadow-lg);
  animation: slide-up .18s cubic-bezier(.2,0,0,1);
}
.alert-popup-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--red-dim); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin: 0 auto 16px;
}
.alert-popup-title { text-align: center; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.02em; }
.alert-popup-sender { text-align: center; font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-bottom: 16px; text-transform: none; letter-spacing: 0; }
.alert-popup-msg {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px 16px;
  font-size: 14px; color: var(--text); line-height: 1.6; text-align: center;
  margin-bottom: 20px; font-family: var(--sans);
}
@keyframes slide-up { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }

/* ── Past-game leaderboard modal ── */
.past-lb-table { width: 100%; border-collapse: collapse; }
.past-lb-table th, .past-lb-table td { padding: 10px 12px; text-align: left; font-size: 12.5px; border-bottom: 1px solid var(--border); font-family: var(--sans); }
.past-lb-table th { color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.past-lb-table td { color: var(--sub); }
.past-lb-rank { font-family: var(--sans); font-weight: 700; color: var(--accent); width: 36px; font-variant-numeric: tabular-nums; }

/* ── Chart ── */
.chart-wrap { padding: 0; height: 240px; position: relative; }

/* ── Page loader ── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
#page-loader.pl-done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-logo { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-transform: none; }
.pl-logo span { color: var(--accent); }
.pl-bar { width: 180px; height: 3px; background: var(--surface); border: none; border-radius: 999px; overflow: hidden; }
.pl-bar-fill { height: 100%; width: 40%; background: var(--accent); border-radius: 999px; animation: pl-sweep 0.9s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes pl-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(360%); } }
.pl-label { font-family: var(--sans); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; animation: pl-blink 1.1s ease-in-out infinite; }
@keyframes pl-blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── Machine game card (throne) ── */
.mgc-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  max-width: 480px; margin: 0 auto 24px;
}
.mgc-eyebrow {
  padding: 9px 16px; text-align: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.06em; font-weight: 600;
  text-transform: uppercase; color: var(--sub);
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.mgc-bg { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--surface); position: relative; border-bottom: 1px solid var(--border); }
.mgc-bg-placeholder { width: 100%; height: 120px; background: linear-gradient(135deg, var(--surface), var(--card-hv)); border-bottom: 1px solid var(--border); }
.mgc-avatar-row { display: flex; justify-content: center; margin-top: -38px; position: relative; z-index: 2; }
.mgc-avatar-ring {
  width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid var(--card); background: var(--surface);
  overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.mgc-avatar-ring img { width: 100%; height: 100%; object-fit: cover; }
.mgc-avatar-ring .mgc-avatar-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--accent);
}
.mgc-body { padding: 14px 22px 22px; text-align: center; }
.mgc-name { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin-bottom: 3px; text-transform: none; }
.mgc-ip { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.mgc-desc { font-size: 13px; color: var(--sub); line-height: 1.6; }
.mgc-tags { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.mgc-tag {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 600;
  background: var(--surface); color: var(--sub);
  border: 1px solid var(--border); border-radius: 4px; padding: 3px 10px;
}
.mgc-tag.green { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green-bright); border-color: color-mix(in srgb, var(--green) 30%, transparent); }

/* ── Image cropper ── */
.cropper-viewport {
  position: relative; overflow: hidden; margin: 18px auto 0;
  border-radius: var(--radius); background: #000;
  border: 1px solid var(--border2);
  touch-action: none; cursor: grab; user-select: none;
}
.cropper-viewport:active { cursor: grabbing; }
.cropper-viewport.round { border-radius: 50%; }
.cropper-img { position: absolute; top: 0; left: 0; transform-origin: top left; pointer-events: none; max-width: none; }
.cropper-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
}

/* ── Password reveal toggle ── */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 40px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: none; background: none;
  color: var(--muted); cursor: pointer; border-radius: var(--radius-sm);
  transition: color .12s, background .12s;
}
.pw-toggle:hover { color: var(--text); background: var(--card-hv); }

/* ── Admin search box ── */
.admin-search {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  max-width: 340px;
}
.admin-search .input { flex: 1; }

/* ── Live "pinged" freshness dot ── */
.ping-live { color: var(--green-bright); }
.ping-stale { color: var(--amber-bright); }
.ping-dead { color: var(--red-bright); }

/* ── Reset-vote bar (throne) ── */
.vote-wrap { max-width: 440px; margin: 14px auto 0; text-align: center; }
.vote-bar-bg { height: 7px; border-radius: 999px; background: var(--surface); overflow: hidden; margin: 8px 0; }
.vote-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
