.vote-section {
  position: relative;
  display: block;
  min-height: auto;
  padding: clamp(72px, 8vw, 118px) clamp(20px, 6vw, 82px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% -10%, rgba(255, 255, 255, 0.82), transparent 32rem),
    var(--paper);
  color: var(--ink);
}

.poll-vote-view,
.poll-confirmation-view,
.poll-results-view {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.poll-vote-view[hidden],
.poll-confirmation-view[hidden],
.poll-results-view[hidden] {
  display: none;
}

.poll-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(52px, 7vw, 92px);
  align-items: start;
}

.poll-hero {
  position: sticky;
  top: 34px;
}

.poll-eyebrow,
.poll-summary-kicker,
.poll-stat-label {
  margin: 0 0 14px;
  font-family: var(--content-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.poll-title {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(76px, 9.5vw, 138px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.82;
  text-transform: uppercase;
}

.poll-intro {
  max-width: 500px;
  margin: 28px 0 24px;
  color: #302e2a;
  font-family: var(--content-font);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 300;
  line-height: 1.55;
}

.poll-choice-rule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 8px 13px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--content-font);
  font-size: 13px;
  font-weight: 500;
}

.poll-rule-number {
  display: grid;
  width: 37px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
}

.poll-choices {
  min-width: 0;
}

.poll-flavour-grid {
  display: grid;
  gap: 12px;
}

.poll-flavour-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr 42px;
  width: 100%;
  min-height: 132px;
  align-items: stretch;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(24, 24, 24, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.poll-flavour-card:hover {
  opacity: 1;
  border-color: rgba(24, 24, 24, 0.55);
}

.poll-flavour-card:active {
  transform: scale(0.985);
}

.poll-flavour-card:focus-visible,
.poll-primary-button:focus-visible,
.poll-secondary-button:focus-visible,
.poll-close-button:focus-visible {
  outline: 3px solid #2e66ff;
  outline-offset: 3px;
}

.poll-flavour-card.selected {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 48px rgba(24, 20, 13, 0.12);
}

.poll-flavour-visual {
  display: grid;
  place-items: center;
  background: var(--accent);
}

.poll-flavour-glyph {
  color: var(--glyph, #fff);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 38px;
  line-height: 1;
  transform: rotate(-6deg);
}

.poll-flavour-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 14px;
}

.poll-flavour-name {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 27px;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.poll-flavour-notes {
  color: #6a675f;
  font-family: var(--content-font);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.35;
  text-transform: none;
}

.poll-select-indicator {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  align-self: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--content-font);
  font-size: 12px;
  opacity: 0.7;
}

.selected .poll-select-indicator {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

.poll-vote-bar {
  position: sticky;
  z-index: 4;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0 0 34px;
  padding: 13px;
  border: 1px solid var(--ink);
  background: rgba(245, 241, 232, 0.96);
  box-shadow: 0 18px 48px rgba(24, 20, 13, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.poll-selection-summary {
  min-width: 0;
  font-family: var(--content-font);
}

.poll-summary-kicker {
  display: block;
  margin-bottom: 3px;
  color: #6a675f;
  font-size: 9px;
}

#poll-selection-copy {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poll-primary-button,
.poll-secondary-button {
  width: auto;
  min-height: 52px;
  height: auto;
  margin: 0;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--content-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.poll-primary-button {
  background: var(--ink);
  color: var(--paper);
}

.poll-primary-button:disabled {
  border-color: #b9b4aa;
  background: #d7d1c7;
  color: #7f7a72;
  cursor: not-allowed;
}

.poll-secondary-button {
  background: transparent;
  color: var(--ink);
}

.poll-form-message {
  min-height: 20px;
  margin: 12px 0 0 34px;
  color: #8e2e23;
  font-family: var(--content-font);
  font-size: 12px;
  font-weight: 500;
}

.poll-confirmation-view {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.poll-confirmation-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--content-font);
  font-size: 27px;
}

.poll-confirmation-copy {
  margin: 28px 0 15px;
  color: #6a675f;
  font-family: var(--content-font);
  font-size: 16px;
  font-weight: 300;
}

.poll-confirmed-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.poll-confirmed-pick {
  padding: 11px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--content-font);
  font-size: 14px;
  font-weight: 600;
}

.poll-confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 490px);
  gap: 10px;
  margin-top: 40px;
}

.poll-microcopy {
  margin-top: 22px;
  color: #6a675f;
  font-family: var(--content-font);
  font-size: 11px;
  font-weight: 300;
}

.poll-results-view {
  min-height: 700px;
}

.poll-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.poll-close-button {
  width: auto;
  height: auto;
  margin: -12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.poll-result-stats {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) 1.45fr;
  gap: 10px;
  margin: 46px 0 42px;
}

.poll-stat-card {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(24, 24, 24, 0.24);
  background: rgba(255, 255, 255, 0.28);
}

.poll-stat-label {
  margin: 0;
  color: #6a675f;
}

.poll-stat-card strong {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 61px;
  font-weight: 400;
  line-height: 0.9;
}

.poll-stat-card-wide strong {
  font-size: 39px;
}

.poll-results-list {
  border-top: 1px solid var(--ink);
}

.poll-result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(24, 24, 24, 0.24);
}

.poll-result-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--content-font);
}

.poll-result-name {
  font-size: 14px;
  font-weight: 600;
}

.poll-result-percent {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 21px;
}

.poll-result-track {
  height: 8px;
  overflow: hidden;
  background: #d9d3c8;
}

.poll-result-fill {
  width: var(--width);
  height: 100%;
  background: var(--accent);
  transition: width 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.poll-result-count {
  align-self: center;
  min-width: 52px;
  color: #6a675f;
  font-family: var(--content-font);
  font-size: 11px;
  text-align: right;
}

.poll-results-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  color: #6a675f;
  font-family: var(--content-font);
  font-size: 11px;
}

.poll-compact {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 10px;
}

.poll-toast {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--content-font);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.poll-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 920px) {
  .poll-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .poll-hero {
    position: static;
  }

  .poll-title {
    font-size: clamp(76px, 18vw, 118px);
  }

  .poll-flavour-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poll-flavour-card {
    grid-template-columns: 88px 1fr 34px;
    min-height: 118px;
  }

  .poll-flavour-name {
    font-size: 23px;
  }

  .poll-vote-bar,
  .poll-form-message {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .vote-section {
    padding: 72px 20px 86px;
  }

  .poll-flavour-grid {
    grid-template-columns: 1fr;
  }

  .poll-flavour-card {
    grid-template-columns: 82px 1fr 30px;
    min-height: 112px;
    border: 1px solid rgba(24, 24, 24, 0.24);
  }

  .poll-flavour-card {
    margin-top: 0;
  }

  .poll-vote-bar {
    grid-template-columns: 1fr;
    bottom: 10px;
  }

  .poll-vote-bar .poll-primary-button,
  .poll-confirmation-actions .poll-primary-button,
  .poll-confirmation-actions .poll-secondary-button {
    width: 100%;
  }

  .poll-confirmation-actions {
    grid-template-columns: 1fr;
  }

  .poll-result-stats {
    grid-template-columns: 1fr;
  }

  .poll-stat-card {
    min-height: 112px;
  }

  .poll-results-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .poll-results-footer .poll-secondary-button {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poll-flavour-card,
  .poll-result-fill,
  .poll-toast {
    transition-duration: 0.01ms !important;
  }
}
