/* Magnet — centered poll with avatar suction */
.theme-magnet .vote-panel {
  width: min(560px, 94vw);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--vs-accent) 45%, transparent);
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--vs-accent) 12%, transparent), transparent 60%),
    color-mix(in srgb, var(--vs-panel) 90%, transparent);
  box-shadow:
    0 0 60px color-mix(in srgb, var(--vs-bar-fill) 18%, transparent),
    0 24px 64px rgba(0, 0, 0, 0.5);
}

.theme-magnet .vote-question {
  text-align: center;
  font-size: 1.45rem;
  width: 100%;
}

.theme-magnet .vote-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.theme-magnet .vote-timer {
  text-align: center;
  margin-top: 4px;
}

.theme-magnet .vote-option {
  border-radius: 14px;
  overflow: visible;
}

.theme-magnet .vote-option-bar {
  opacity: 0.4;
  border-radius: 14px;
}

.theme-magnet .vote-avatars {
  justify-content: center;
  padding-bottom: 10px;
  gap: 4px;
  max-width: 100%;
}

.theme-magnet .vote-avatar {
  margin-left: 0;
}

.theme-magnet .vote-footer {
  justify-content: center;
  gap: 16px;
}

.theme-magnet.pos-left,
.theme-magnet.pos-right {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.theme-magnet .vote-panel.results .vote-option.winner {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--vs-accent) 70%, transparent),
    0 0 40px color-mix(in srgb, var(--vs-bar-fill) 35%, transparent);
}

.theme-magnet .vote-panel.revealing .vote-option.winner {
  animation: magnetWinPulse 0.8s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.theme-magnet .vote-panel.revealing .vote-option.winner .vote-avatar {
  animation: magnetWinPop 0.65s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}

.theme-magnet .vote-panel.revealing .vote-option.winner .vote-avatar:nth-child(2) { animation-delay: 0.04s; }
.theme-magnet .vote-panel.revealing .vote-option.winner .vote-avatar:nth-child(3) { animation-delay: 0.08s; }
.theme-magnet .vote-panel.revealing .vote-option.winner .vote-avatar:nth-child(4) { animation-delay: 0.12s; }
.theme-magnet .vote-panel.revealing .vote-option.winner .vote-avatar:nth-child(5) { animation-delay: 0.16s; }
.theme-magnet .vote-panel.revealing .vote-option.winner .vote-avatar:nth-child(n+6) { animation-delay: 0.2s; }

@keyframes magnetWinPulse {
  0% { transform: scale(0.94); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes magnetWinPop {
  0% { transform: scale(0.4) translateY(8px); opacity: 0.4; }
  70% { transform: scale(1.18) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}
