/* Prism — faceted crystal. Cut corners, shard index, refractive bar. */
.theme-prism .vote-panel {
  width: min(500px, 92vw);
  padding: 20px 18px 14px;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--vs-accent) 55%, transparent);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--vs-accent) 16%, transparent) 0 28%, transparent 28%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.06), transparent 40%),
    color-mix(in srgb, var(--vs-panel) 78%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.theme-prism .vote-question {
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}

.theme-prism .vote-timer {
  font-weight: 800;
}

.theme-prism .vote-option {
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  border: 1px solid color-mix(in srgb, var(--vs-accent) 22%, transparent);
  background: color-mix(in srgb, var(--vs-panel) 40%, transparent);
  overflow: hidden;
}

.theme-prism .vote-option-index {
  width: 24px;
  height: 24px;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--vs-accent);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
}

.theme-prism .vote-option-label {
  font-weight: 700;
}

.theme-prism .vote-option-bar {
  opacity: 0.4;
  background: linear-gradient(
    115deg,
    transparent 0 8%,
    var(--vs-bar-fill) 8% 18%,
    var(--vs-accent) 18% 42%,
    color-mix(in srgb, var(--vs-bar-fill) 50%, transparent) 42%
  );
}

.theme-prism .vote-footer {
  border-top-style: dashed;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.theme-prism .vote-panel.results .vote-option.winner {
  border-color: var(--vs-accent);
}

.theme-prism .vote-panel.revealing .vote-option.winner {
  animation: prismRefract 0.85s ease both;
}

@keyframes prismRefract {
  0% { filter: hue-rotate(-40deg) saturate(1.6); transform: skewX(-6deg) scale(0.96); }
  45% { filter: hue-rotate(25deg) saturate(1.3); transform: skewX(4deg) scale(1.04); }
  100% { filter: none; transform: none; }
}
