.vote-page {
  background: #eef0f2;
  color: #28323e;
  font: 13px/1.55 Arial, "Microsoft JhengHei", sans-serif;
}

.vote-page header {
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0;
  border: 0;
  background: linear-gradient(105deg, #ff7800, #ff9700);
  color: white;
  font-size: 16px;
  font-weight: 700;
}

.vote-page main { max-width: none; padding: 0 0 1.5rem; }
.campaign-banner, .vote-page .art {
  position: relative;
  overflow: hidden;
  background: #fcf7e8;
}

.campaign-banner { height: 160px; }
.banner-dots {
  position: absolute;
  inset: auto 0 7px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.vote-page .banner-dots button {
  position: relative;
  width: 22px;
  height: 18px;
  min-height: 0;
  padding: 0;
  background: none;
}

.banner-dots button::after {
  content: "";
  position: absolute;
  inset: 5px 7px;
  border-radius: 50%;
  background: #fff;
}

.banner-dots button[aria-pressed="true"]::after { background: #2563eb; }
.vote-page .art { height: 130px; min-height: 0; border-radius: 4px; }

.campaign-banner::before, .vote-page .art::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  min-height: 100%;
  aspect-ratio: 3 / 1;
  transform: translateY(-50%);
  background: url("/campaign-art.png") center top / 100% 200% no-repeat;
}

.campaign-banner.second-slide::before,
.vote-page .art-1::before { background-position: center bottom; }

.campaign-controls {
  display: grid;
  justify-items: center;
  gap: 29px;
  padding: 30px 12px 40px;
}

.vote-page button {
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 3px;
  background: linear-gradient(105deg, #ff4600, #ffa200);
  font-weight: 400;
}

#show-rules { width: min(100%, 714px); }

.entries-title {
  margin: 0;
  width: min(240px, 80vw);
  padding: 10px 12px;
  text-align: center;
  font-size: 16px;
  color: white;
  height: 72px;
  display: grid;
  place-items: end center;
  background: url("/section-art.png") center / contain no-repeat;
}

.vote-page .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 10px;
  padding: 0 6px;
}

.vote-page .panel {
  margin: 0;
  padding: 10px;
  border: 1px solid #dde3ea;
  border-radius: 9px;
  box-shadow: 0 2px 7px #25395226;
  text-align: center;
}

.vote-page .panel h3 { margin: 10px 0 6px; font-size: inherit; }
.vote-page .work-preview { display: block; width: 100%; padding: 0; background: transparent; }
.work-image { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 4px; }
#work-dialog { max-width: min(92vw, 960px); border: 0; border-radius: 10px; }
#work-dialog::backdrop { background: #171c28aa; }
#work-dialog img { display: block; max-width: 100%; max-height: 75vh; margin: 8px auto 0; }
.vote-page .vote { display: grid; gap: 9px; }
.vote-page .vote button { width: 100%; }
.vote-page .status:empty { display: none; }
.vote-page .status, .closed { margin: 0 12px 12px; text-align: center; }
.campaign-footer { margin-top: 48px; }
.campaign-footer img { display: block; width: 100%; height: 100px; object-fit: cover; }

#rules {
  width: min(468px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 24px 26px;
  border: 1px solid #ebc178;
  border-radius: 12px;
  color: #293442;
  background: #fcf8ed;
}

#rules[open] { display: flex; flex-direction: column; gap: 18px; }
.rules-heading { display: flex; justify-content: space-between; align-items: start; }
.rules-heading h2 { margin: 0; font-size: 18px; }
.rules-heading span { font-size: 40px; line-height: 1.15; }
.rules-content { max-height: 374px; min-height: 0; overflow: auto; padding-right: 9px; color: #393939; font-size: 16px; line-height: 2; }
.rules-content p { margin: 0 0 12px; }
.rules-content h3 { margin: 8px 0; font-size: 17px; }
.rules-content ol { padding-left: 1.5em; }
.rules-intro { text-indent: 2em; }
#rules form { flex: none; }
#rules form button { width: 100%; min-height: 50px; font-size: 16px; }
#rules::backdrop { background: #171c286b; }

@media (max-width: 540px) {
  .campaign-banner { height: 130px; }
  .campaign-controls { gap: 24px; padding: 22px 12px 26px; }
  .vote-page .art { height: 105px; }
  .work-image { height: 105px; }
  .vote-page .grid { gap: 10px 8px; }
  .vote-page .panel { padding: 7px; }
}
