.steam-vote {
  --poll-stroke: #dcded2;
  --poll-gold: #edb839;
  --poll-muted: #65685e;
  container: steam-poll / inline-size;
  min-width: 0;
  margin-top: clamp(15px, 2vh, 23px);
  padding: 14px 16px 12px;
  border: 1px solid var(--poll-stroke);
  border-radius: 13px;
  background: #f1f2eb;
  color: #23261e;
}

.steam-vote[hidden],
.steam-vote [hidden] {
  display: none !important;
}

.steam-vote .vote-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.steam-vote .vote-mark {
  display: grid;
  width: 39px;
  height: 39px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: #f7c54a;
  color: #2f2918;
}

.steam-vote .vote-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}

.steam-vote .vote-heading-copy {
  min-width: 0;
  flex: 1;
}

.steam-vote .vote-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #626555;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.steam-vote .vote-heading h2 {
  margin: 0;
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.steam-vote .vote-collapse {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #626659;
}

.steam-vote .vote-collapse svg {
  width: 17px;
  height: 17px;
  transition: transform 150ms ease;
}

.steam-vote .vote-collapse[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.steam-vote .vote-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.steam-vote .vote-members,
.steam-vote .vote-avatars {
  display: inline-flex;
  align-items: center;
}

.steam-vote .vote-members {
  min-width: 0;
  gap: 7px;
}

.steam-vote .vote-avatars {
  flex: none;
  padding-left: 2px;
}

.steam-vote .vote-avatars img {
  width: 24px;
  height: 24px;
  margin-left: -2px;
  border: 2px solid #f1f2eb;
  border-radius: 50%;
  background: #e5dfcd;
}

.steam-vote .vote-avatars img + img {
  margin-left: -7px;
}

.steam-vote .vote-summary,
.steam-vote .vote-status {
  min-width: 0;
  color: var(--poll-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.steam-vote .vote-summary strong,
.steam-vote .vote-status strong {
  color: #35382e;
  font-weight: 700;
}

.steam-vote .vote-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 100%;
  gap: 7px;
}

.steam-vote .vote-option {
  display: grid;
  grid-template-columns: clamp(55px, 19%, 92px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 54px;
  padding: 5px 9px 5px 5px;
  border: 1px solid #dfe1d5;
  border-radius: 9px;
  background: #fff;
  color: #25271f;
  text-align: left;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.steam-vote .vote-option:disabled {
  opacity: 1;
}

.steam-vote .vote-option[aria-pressed="true"] {
  border-color: #d9ac34;
  background: #fff8df;
}

.steam-vote .vote-cover {
  display: block;
  width: 100%;
  height: 41px;
  border-radius: 5px;
  background: #34382e;
  object-fit: cover;
  object-position: center;
}

.steam-vote .vote-option-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 6px;
  min-width: 0;
}

.steam-vote .vote-game-title {
  color: #282b23;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -.018em;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.steam-vote .vote-tally {
  color: #64675d;
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.steam-vote .vote-track {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 9px;
  background: #e9ebe1;
}

.steam-vote .vote-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #838b72;
  transition: width 180ms ease;
}

.steam-vote .vote-option[aria-pressed="true"] .vote-fill {
  background: #c58c17;
}

.steam-vote .vote-choice {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #d7dacd;
  border-radius: 50%;
  background: #fcfcf9;
  color: #2a2518;
}

.steam-vote .vote-choice svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.steam-vote .vote-option[aria-pressed="true"] .vote-choice {
  border-color: #dba727;
  background: #f4c346;
}

.steam-vote .vote-option:disabled:not([aria-pressed="true"]) .vote-choice {
  visibility: hidden;
}

.steam-vote.is-closed {
  border-color: #dbc58d;
  background: #f7f3e5;
}

.steam-vote.is-closed .vote-avatars img {
  border-color: #f7f3e5;
}

.steam-vote .vote-result {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 66px;
  padding: 6px;
  border: 1px solid #e2d6af;
  border-radius: 9px;
  background: #fffef8;
}

.steam-vote .vote-result .vote-cover {
  width: clamp(99px, 32%, 126px);
  height: 53px;
}

.steam-vote .vote-result-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 4px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--poll-muted);
  overflow-wrap: anywhere;
}

.steam-vote .vote-result-copy strong {
  color: #3a3320;
  font-size: 16px;
  font-weight: 735;
  letter-spacing: -.02em;
}

.steam-vote .vote-footer {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.steam-vote .vote-status {
  flex: 1 1 145px;
}

.steam-vote .vote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.steam-vote :is(.vote-primary, .vote-secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 33px;
  padding: 6px 12px;
  border: 1px solid #d4a52b;
  border-radius: 7px;
  background: #f5c345;
  color: #2c2615;
  font: 650 12px/1.3 Bricolage, "Segoe UI", sans-serif;
  text-decoration: none;
}

.steam-vote .vote-secondary {
  border-color: #d9dccd;
  background: #fff;
  color: #3f4336;
}

.steam-vote :is(.vote-primary, .vote-secondary) svg {
  width: 14px;
  height: 14px;
}

.steam-vote :is(button, a):focus-visible {
  outline: 3px solid #8b651a;
  outline-offset: 2px;
}

@media (hover: hover) {
  .steam-vote .vote-option:not(:disabled):hover {
    border-color: #b69a5b;
    background: #fffbed;
  }
  .steam-vote .vote-primary:not(:disabled):hover {
    background: #ffcf59;
  }
  .steam-vote .vote-secondary:not(:disabled):hover,
  .steam-vote .vote-collapse:hover {
    background: #e7e9de;
    border-color: #cfd4c3;
  }
}

@container steam-poll (max-width: 510px) {
  .steam-vote .vote-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .steam-vote .vote-option {
    grid-template-columns: clamp(57px, 20%, 84px) minmax(0, 1fr) auto;
  }
  .steam-vote .vote-footer {
    gap: 8px;
  }
}

@container steam-poll (min-width: 760px) {
  .steam-vote .vote-options:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (pointer: coarse) {
  .steam-vote .vote-collapse,
  .steam-vote :is(.vote-primary, .vote-secondary) {
    min-width: 44px;
    min-height: 44px;
  }
}
