.vote-chart {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  min-height: clamp(205px, 27vh, 290px);
  margin: 0 auto 27px;
  padding: 20px 28px 24px;
  border: 5px solid #fff;
  border-radius: clamp(28px, 2.5vw, 42px);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(235,247,239,.93));
  box-shadow: 0 11px 0 #b8d5c0, 0 18px 32px rgba(56,95,72,.15);
}

.chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.chart-heading h2 { margin: 0; color: #315b49; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: .12em; }
.chart-heading span { color: #81958a; font-size: 15px; font-weight: 700; }
.chart-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.chart-row {
  display: grid;
  grid-template-columns: 42px 1fr 56px;
  grid-template-areas: "rank label count" "track track track";
  align-items: center;
  gap: 8px 10px;
  padding: 15px 16px 17px;
  border: 3px solid #fff;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 6px 14px rgba(50,80,65,.1);
  transition: transform .35s ease;
}
.rank-badge { grid-area: rank; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #9bb0a5; font-size: 19px; font-weight: 900; box-shadow: 0 4px 0 #7f958a; }
.rank-1 { background: #f2b43d; box-shadow: 0 4px 0 #cf8d19; }
.rank-2 { background: #79a5bb; box-shadow: 0 4px 0 #5c8295; }
.rank-3 { background: #d58c62; box-shadow: 0 4px 0 #b36d47; }
.chart-label { grid-area: label; color: #526c61; font-size: clamp(17px, 1.5vw, 22px); font-weight: 900; white-space: nowrap; }
.chart-label i { display: inline-block; margin-right: 5px; font-style: normal; font-size: 28px; vertical-align: -3px; }
.chart-track { grid-area: track; height: 23px; overflow: hidden; border: 2px solid #fff; border-radius: 999px; background: #e7efe9; box-shadow: inset 0 2px 5px rgba(50,70,60,.12); }
.chart-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--bar-color); box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); transition: width .38s cubic-bezier(.2,.8,.2,1); }
.chart-row strong { grid-area: count; text-align: right; font-size: 29px; font-variant-numeric: tabular-nums; }
.chart-row small { margin-left: 2px; color: #84948c; font-size: 12px; }

@media (max-width: 900px) {
  .vote-chart { min-height: 0; }
  .chart-bars { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .vote-chart { padding: 18px 14px 20px; }
  .chart-heading { display: block; }
  .chart-heading span { display: block; margin-top: 4px; }
}
