.voting-body {
  font-family: "Segoe UI", system-ui, sans-serif;
  --bgd-deep: #2a0510;
  --bgd-red: #b81935;
  --bgd-highlight: #f43b50;
  --bgd-cream: #fff4e8;
  --bgd-ink: #27171c;
  color: var(--bgd-ink);
  background: #f8eeec;
}
.voting-body :is(h1, h2, h3, strong, .preview-title, button, input, select, textarea) {
  font-family: inherit;
}
.voting-body .voting-layout { max-width: 1136px; margin-inline: auto; }
.voting-body .voting-hero[hidden] { display: none; }
.voting-body .voting-loading { margin: 0; padding-block: 22px; }
.voting-body .voting-hero {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid #a9283b;
  border-bottom: 6px solid var(--bgd-highlight);
  border-radius: 24px;
  background: linear-gradient(117deg, #2a0510 5%, #660c22 53%, #a51630);
  color: var(--bgd-cream);
  box-shadow: 0 14px 40px #42081128;
}
.voting-body .voting-hero .voting-mark {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.voting-body .voting-mark img { display: block; width: 100%; height: auto; }
.voting-body #voting-hero-mark,
.voting-body .voting-hero .voting-logo-mobile { display: none; }
.voting-body .voting-hero > div:first-child { grid-area: 1 / 2; min-width: 0; }
.voting-body .voting-hero .eyebrow {
  color: var(--bgd-cream);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.voting-body .voting-hero h1 {
  margin: .3rem 0 .65rem;
  font-size: clamp(2.4rem, 5.9vw, 5rem);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1.04;
  text-transform: uppercase;
  overflow-wrap: break-word;
  color: var(--bgd-cream);
}
.voting-body .voting-hero .lead { color: #ffded9; line-height: 1.5; max-width: 58ch; }
.voting-body .panel {
  background: #fffdfb;
  border-color: #ecd8d6;
  border-radius: 18px;
  color: var(--bgd-ink);
}
.voting-body .panel .eyebrow { color: #9a1830; }
.voting-body button:not(.secondary):not(.link-button):not(.bgg-suggestion):not(:disabled) {
  background-color: var(--bgd-red);
  background-image: none;
  border-color: var(--bgd-red);
  color: #fff;
}
.voting-body button:not(.secondary):not(.link-button):not(.bgg-suggestion):not(:disabled):hover { background-color: #97132b; }
.voting-body .bgg-suggestion {
  background: #fffdfb;
  border-color: #e5bfc4;
  color: var(--bgd-ink);
}
.voting-body .bgg-suggestion:not(:disabled):hover {
  background: #fff2f0;
  border-color: #b81935;
}
.voting-body .bgg-suggestion .bgg-suggestion-main strong { color: var(--bgd-ink); }
.voting-body .bgg-suggestion .bgg-suggestion-cta { background: var(--bgd-red); color: #fff; }
.voting-body .bgg-suggestion:disabled { background: #f7eeec; opacity: 1; }
.voting-body .bgg-suggestion:disabled .bgg-suggestion-cta { background: #efd7db; color: #662035; }
.voting-body :focus-visible {
  outline: 3px solid #a01430;
  outline-offset: 3px;
}
.voting-body input[type="checkbox"] { accent-color: var(--bgd-red); }
.voting-body.submissions-mode #active-list-panel > :not(.section-head, #gift-section, #share-panel) { display: none; }
.voting-body.submissions-mode #active-list-panel .section-head .section-actions,
.voting-body.submissions-mode #share-panel #copy-share-text-button,
.voting-body.submissions-mode #share-panel #copy-share-reminder-button { display: none; }
.voting-body .gift-section { max-width: 820px; margin-inline: auto; padding: 14px; }
.gift-step, #gift-editorial {
  background: #fff8f3;
  border: 1px solid #ecd8d6;
  border-radius: 16px;
  padding: clamp(16px, 3vw, 26px);
  margin: 0 0 16px;
  min-width: 0;
}
.gift-step-head, .gift-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gift-step-head { flex-wrap: wrap; margin-bottom: 18px; }
.gift-step h3, #gift-editorial h3 { margin: 0; }
.gift-count {
  background: #f9ddd9;
  color: #821127;
  border-radius: 999px;
  padding: .4rem .7rem;
  font-weight: 700;
  white-space: nowrap;
}
.gift-step label { display: block; margin: .65rem 0 .3rem; font-weight: 700; }
.gift-step input:not([type=checkbox]), .gift-step select, .gift-step textarea { width: 100%; }
.gift-step textarea { resize: vertical; }
.gift-step legend { font-weight: 800; padding-inline: .4rem; }
.gift-step p { line-height: 1.48; }
.gift-step .gift-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.gift-step .gift-consent input[type="checkbox"] { width: 1rem; height: 1rem; margin: .25em 0 0; flex: 0 0 1rem; }
.gift-matches { display: flex; flex-wrap: wrap; gap: 6px; padding-top: .6rem; }
.gift-item {
  margin-top: .8rem;
  background: #fff;
  border: 1px solid #e9d0cd;
  border-left: 4px solid var(--bgd-highlight);
  border-radius: 10px;
  padding: 12px;
}
.gift-optional { font-weight: 400; }
.gift-message { padding: .7rem .9rem; border-radius: 8px; background: #e9f7eb; color: #164323; }
.gift-message.error { background: #ffe0dc; color: #85112b; }
#gift-submit { margin-top: 1rem; }
#gift-editorial details { margin-top: .7rem; padding: .7rem; border: 1px solid #ecd8d6; border-radius: 8px; }
#gift-editorial details p { white-space: pre-wrap; overflow-wrap: anywhere; }
#gift-editorial summary { cursor: pointer; font-weight: 700; }
.voting-body [hidden] { display: none !important; }
@media (max-width: 650px) {
  .voting-body .voting-hero { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 22px; border-radius: 16px; }
  .voting-body .voting-hero .voting-mark { grid-area: 1 / 1; width: 100px; justify-self: start; }
  .voting-body .voting-hero > div:first-child { grid-area: 2 / 1; }
  .voting-body .voting-hero h1 { font-size: clamp(2.1rem, 9.8vw, 3.5rem); }
}

.voting-body .gift-section.hidden { display: none; }

.voting-body .voting-hero .voting-mark { min-height: 0; }
.voting-body .gift-step .gift-game-reason { min-height: 4.5rem; }
.voting-body .voter-email-verification { background: #fff3ee; border-color: #efd3cc; }
.voting-body .gift-step button.secondary, .voting-body #gift-editorial button.secondary,
.voting-body #request-voter-code-button.secondary {
  background: #fff;
  border-color: #c87984;
  color: #821127;
}
.voting-body #ballot-pick-list button:not(:disabled) {
  background: #fff3f1;
  border-color: #e4a4ac;
  color: #671327;
}
.voting-body #ballot-pick-list button:not(:disabled):hover { background: #f9ddd9; }

.gift-game-title, .gift-matches .gift-search-result {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  text-align: left;
}
.gift-game-title { overflow-wrap: anywhere; }
.gift-cover-slot { flex: none; }
.gift-cover {
  display: block;
  width: 54px;
  height: 68px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}
.gift-search-result .gift-cover { width: 32px; height: 40px; }
#gift-name-hint { margin-top: .35rem; }


.voting-body.christmas-campaign {
  background: #f4eee4;
}
.voting-body.christmas-campaign .voting-hero {
  position: relative;
  isolation: isolate;
  border-color: #40634c;
  border-bottom-color: #dfb66e;
  background:
    radial-gradient(ellipse at 84% 0%, #8aa4733b, transparent 47%),
    linear-gradient(113deg, #10291f 1%, #163a2c 54%, #28513a);
  box-shadow: 0 14px 40px #2033222e;
}
.christmas-campaign .voting-hero::before,
.christmas-campaign .voting-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.christmas-campaign .voting-hero::before {
  inset: 0;
  background-image:
    radial-gradient(circle at 18px 21px, #ffe4a580 1.25px, transparent 2.5px),
    radial-gradient(circle at 76px 49px, #fff9d95c 1px, transparent 2px),
    radial-gradient(circle at 44px 87px, #ffe4a546 1.5px, transparent 2.5px);
  background-size: 118px 104px;
  mask-image: linear-gradient(90deg, #000, #0000 40%, #0000 72%, #000);
}
.christmas-campaign .voting-hero::after {
  top: clamp(-38px, -4vw, -16px);
  right: clamp(18px, 4vw, 48px);
  width: clamp(54px, 8vw, 100px);
  aspect-ratio: 1;
  border: 1px solid #f7daa7a8;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, #faefcbb3, transparent 52%),
    linear-gradient(150deg, #b93351c4, #971d36d9 70%, #60162abf);
  box-shadow: inset 0 -8px 16px #290e2273, 0 0 32px #dba65932;
}
.voting-body.christmas-campaign .voting-hero .eyebrow { color: #ffe0a1; }
.voting-body.christmas-campaign .voting-hero .lead { color: #f2f1dc; }
.voting-body.christmas-campaign .gift-step {
  background: #fffaf1;
  border-color: #e8d9bc;
}
.christmas-campaign .gift-count {
  background: #e5eee1;
  color: #24452f;
}
.christmas-campaign .gift-item {
  border-color: #e8d9bc;
  border-left-color: #bd8a3b;
}
