.qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55em;
  padding: 0.7em 0.75em 0.65em;
  background: #fff;
  border-radius: 0.35em;
  box-shadow: 0 0.35em 1.1em rgba(0, 0, 0, 0.28);
  max-width: 100%;
}

.qr-card-canvas {
  display: block;
  width: 9.5em;
  height: 9.5em;
  image-rendering: pixelated;
  background: #fff;
}

.qr-card-link {
  display: block;
  max-width: 14em;
  font-family: ui-monospace, "Roboto Mono", Menlo, Consolas, monospace;
  font-size: 0.42em;
  line-height: 1.25;
  text-align: center;
  word-break: break-all;
  color: #0f172a !important;
  text-decoration: none !important;
}

.qr-card-link:hover {
  text-decoration: underline !important;
}

.qr-card-count {
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.55em;
  font-weight: 600;
  line-height: 1.2;
  color: #334155;
  text-align: center;
}

.poll-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1000 / 540;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.poll-chart-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.poll-chart-bar {
  fill: #34d399;
  transform-box: fill-box;
  transform-origin: bottom;
  animation: poll-chart-grow 0.6s ease-out both;
}

.poll-chart-count {
  fill: #e2e8f0;
  font-size: 24px;
  font-weight: 600;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #06263a;
  stroke-width: 8px;
  stroke-linejoin: round;
  animation: poll-chart-fade 0.4s ease-out 0.4s both;
}

.poll-chart-axis {
  stroke: #64748b;
  stroke-width: 2;
}

.poll-chart-tick {
  fill: #94a3b8;
  font-size: 22px;
  text-anchor: middle;
}

.poll-chart-stat {
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: bottom;
  animation: poll-chart-grow 0.6s ease-out 1s both;
}

.poll-chart-mean {
  stroke: #ef4444;
}

.poll-chart-median {
  stroke: #e2e8f0;
  stroke-dasharray: 10 8;
  animation-delay: 1.3s;
}

.poll-chart-stat-label {
  font-size: 26px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #06263a;
  stroke-width: 8px;
  stroke-linejoin: round;
  animation: poll-chart-fade 0.4s ease-out 1.5s both;
}

.poll-chart-mean-label {
  fill: #ef4444;
}

.poll-chart-median-label {
  fill: #e2e8f0;
}

.poll-chart-caption {
  fill: #94a3b8;
  font-size: 22px;
  text-anchor: middle;
}

.poll-chart-message {
  margin: 0;
  font-size: 0.8em;
  color: #94a3b8;
}

@keyframes poll-chart-grow {
  from {
    transform: scaleY(0);
  }
}

@keyframes poll-chart-fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poll-chart-bar,
  .poll-chart-count,
  .poll-chart-stat,
  .poll-chart-stat-label {
    animation: none;
  }
}
