.event-poll-shell {
  width: min(100%, 1180px);
  padding-top: 30px;
  padding-bottom: 84px;
}

.event-poll-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.event-poll-heading .eyebrow {
  margin: 0 0 7px;
}

.event-poll-heading h1 {
  margin: 0;
  color: #fff7d8;
  font-family: 'Cinzel', serif;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(255, 212, 107, 0.26);
}

.event-poll-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(88, 255, 154, 0.5);
  border-radius: 10px;
  background: rgba(45, 183, 104, 0.13);
  color: #8fffb8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(45, 183, 104, 0.12);
}

.event-poll-panel {
  min-width: 0;
  border: 1px solid rgba(201, 153, 255, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 212, 107, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(13, 8, 24, 0.96), rgba(6, 4, 14, 0.98));
  box-shadow: 0 16px 38px rgba(8, 4, 15, 0.34);
}

.event-poll-main {
  padding: 20px;
}

.event-poll-question {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.event-poll-question img {
  width: 158px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.event-poll-kicker {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-poll-question h2 {
  margin: 0;
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.event-day-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.event-day-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(201, 153, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.event-day-card.closed {
  border-color: rgba(255, 91, 91, 0.28);
  background: rgba(205, 39, 55, 0.07);
}

.event-day-card.is-current {
  border-color: rgba(88, 255, 154, 0.44);
  box-shadow: 0 0 0 1px rgba(88, 255, 154, 0.08), 0 14px 30px rgba(45, 183, 104, 0.1);
}

.event-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.event-day-head h3 {
  margin: 0;
  color: #fff7d8;
  font-family: 'Cinzel', serif;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.event-day-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.event-host-banner {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 212, 107, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 212, 107, 0.12), rgba(255, 125, 52, 0.07)),
    rgba(5, 3, 10, 0.34);
}

.event-host-banner span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.event-host-banner strong {
  color: #ffe4a0;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  line-height: 1.08;
  text-shadow: 0 0 18px rgba(255, 212, 107, 0.18);
}

.event-day-meta p {
  margin: 0;
  color: #d7c9e8;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.event-day-deadline {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 212, 107, 0.18);
  border-radius: 10px;
  background: rgba(255, 212, 107, 0.055);
}

.event-day-deadline span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-day-deadline strong {
  color: #fff7d8;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.event-day-card.closed .event-day-deadline {
  border-color: rgba(255, 91, 91, 0.36);
  background: rgba(205, 39, 55, 0.12);
}

.event-day-card.closed .event-day-deadline strong {
  color: #ff8d8d;
}

.event-time-list {
  display: grid;
  gap: 10px;
}

.event-time-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  min-height: 58px;
  padding: 9px 9px 9px 14px;
  border: 1px solid rgba(255, 212, 107, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.event-time-slot:hover,
.event-time-slot.selected {
  border-color: rgba(255, 212, 107, 0.56);
  background: rgba(255, 212, 107, 0.09);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.event-time-slot:focus-visible {
  outline: 2px solid rgba(255, 212, 107, 0.7);
  outline-offset: 3px;
}

.event-time-slot:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.event-time-slot:disabled:hover {
  border-color: rgba(255, 212, 107, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  transform: none;
}

.event-time-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.event-time-text {
  color: #fff7d8;
  font-family: 'Cinzel', serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0;
}

.event-slot-choice {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-time-slot.selected .event-slot-choice {
  color: #8fffb8;
}

.event-time-slot strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 212, 107, 0.34);
  border-radius: 10px;
  background: rgba(255, 212, 107, 0.1);
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}

.event-time-slot.selected strong {
  border-color: rgba(255, 91, 91, 0.62);
  background: rgba(205, 39, 55, 0.18);
  color: #ff8d8d;
}

.event-time-slot.chosen {
  grid-template-columns: minmax(0, 1fr) 78px;
}

.event-time-slot.chosen:disabled {
  opacity: 1;
}

.event-time-slot.chosen strong {
  width: 78px;
  padding: 0 7px;
  border-color: rgba(88, 255, 154, 0.48);
  background: rgba(45, 183, 104, 0.15);
  color: #9dffc0;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-time-slot.chosen .event-slot-choice {
  color: #9dffc0;
}

.event-day-votes {
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(201, 153, 255, 0.16);
  border-radius: 12px;
  background: rgba(5, 3, 10, 0.26);
}

.event-vote-head,
.event-vote-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.event-vote-head {
  margin-bottom: 7px;
  color: #fff7d8;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-vote-list {
  display: grid;
  gap: 4px;
}

.event-vote-row {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.event-vote-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-vote-head strong,
.event-vote-row strong {
  justify-self: end;
  min-width: 28px;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(255, 212, 107, 0.1);
  color: #fff7d8;
  font-size: 0.72rem;
  line-height: 1;
  text-align: center;
}

.event-poll-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.event-poll-actions .button {
  min-width: 150px;
  border: 0;
}

.event-poll-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.event-modal-open {
  overflow: hidden;
}

.event-choice-modal[hidden] {
  display: none;
}

.event-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.event-choice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 10, 0.78);
  backdrop-filter: blur(8px);
}

.event-choice-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  max-height: min(780px, calc(100vh - 40px));
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(201, 153, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 212, 107, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(13, 8, 24, 0.98), rgba(6, 4, 14, 0.99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
}

.event-choice-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.event-choice-head .eyebrow {
  margin: 0 0 7px;
}

.event-choice-head h2 {
  margin: 0;
  color: #fff7d8;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.event-choice-close {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 212, 107, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-choice-close:hover {
  border-color: rgba(255, 212, 107, 0.54);
  background: rgba(255, 212, 107, 0.08);
}

.event-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.event-choice-card {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 126px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(201, 153, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(4, 3, 9, 0.18), rgba(4, 3, 9, 0.86)),
    var(--choice-bg) var(--choice-position, center) / var(--choice-size, cover) no-repeat,
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 3, 10, 0.68), rgba(5, 3, 10, 0.22));
}

.event-choice-card:hover,
.event-choice-card.selected {
  border-color: rgba(255, 212, 107, 0.58);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.event-choice-card:disabled,
.event-choice-card.unavailable {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.event-choice-card:disabled:hover,
.event-choice-card.unavailable:hover {
  border-color: rgba(201, 153, 255, 0.18);
  box-shadow: none;
  transform: none;
}

.event-choice-card:focus-visible {
  outline: 2px solid rgba(255, 212, 107, 0.72);
  outline-offset: 3px;
}

.event-choice-card span {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 212, 107, 0.38);
  border-radius: 9px;
  background: rgba(255, 212, 107, 0.12);
}

.event-choice-card.selected span {
  border-color: rgba(88, 255, 154, 0.58);
  background: rgba(45, 183, 104, 0.22);
}

.event-choice-count {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 212, 107, 0.34);
  border-radius: 9px;
  background: rgba(5, 3, 10, 0.64);
  color: #fff7d8;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.event-choice-card strong {
  position: relative;
  z-index: 1;
  color: #fff7d8;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

@media (max-width: 900px) {
  .event-day-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .event-poll-shell {
    padding-top: 18px;
    padding-bottom: 56px;
  }

  .event-poll-heading {
    align-items: start;
    flex-direction: column;
  }

  .event-poll-main {
    padding: 14px;
    border-radius: 14px;
  }

  .event-poll-question {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .event-poll-question img {
    width: 104px;
    height: 66px;
  }

  .event-day-card {
    padding: 12px;
  }

  .event-poll-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .event-poll-actions .button {
    width: 100%;
  }

  .event-choice-modal {
    padding: 10px;
  }

  .event-choice-panel {
    max-height: calc(100vh - 20px);
    padding: 14px;
    border-radius: 14px;
  }

  .event-choice-head {
    align-items: stretch;
    flex-direction: column;
  }

  .event-choice-grid {
    grid-template-columns: 1fr;
  }

  .event-choice-card {
    min-height: 106px;
  }
}
