.vote-header {
  max-width: 1320px;
  padding-top: 34px;
  padding-bottom: 22px;
}

.vote-header h1 {
  max-width: 790px;
  font-size: clamp(44px, 5.3vw, 72px);
}

.hero-showcase {
  min-height: 286px;
}

.hero-card-fan {
  position: relative;
  width: 100%;
  height: 270px;
}

.hero-showcase .fan-card {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 158px;
  height: 230px;
  max-height: none;
  object-fit: contain;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .42));
}

.hero-showcase .fan-left { transform: translateX(-108%) rotate(-10deg); }
.hero-showcase .fan-center {
  z-index: 3;
  width: 174px;
  height: 252px;
  transform: translateX(-50%);
}
.hero-showcase .fan-right { transform: translateX(8%) rotate(10deg); }

.vote-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
  max-width: 1380px;
  margin-top: 12px;
}

.vote-stage { padding: 20px; }

.play-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.play-strip div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #eadfc9;
  border-radius: 8px;
  background: #fbf7ee;
}

.play-strip strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #f5d979;
  font-size: 14px;
}

.play-strip span {
  color: #574e41;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.stage-toolbar {
  align-items: center;
  margin-bottom: 14px;
}

.stage-toolbar h2 { font-size: clamp(28px, 3vw, 38px); }
#nextPickLabel { color: #987218; }

.stage-instruction {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.draft-tools { width: min(310px, 100%); }
.card-search { display: grid; gap: 6px; }
.card-search span {
  color: #75664e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d9cdb8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.card-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(202, 163, 58, .18);
}

.top-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.top-pick-slot {
  min-height: 116px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px dashed #cfbf9f;
  border-radius: 8px;
  background: linear-gradient(145deg, #fffdf8, #f5eddd);
}

.top-pick-slot.filled {
  border-style: solid;
  border-color: rgba(202, 163, 58, .65);
  box-shadow: 0 10px 25px rgba(52, 39, 12, .08);
}

.top-pick-slot img,
.top-pick-placeholder {
  width: 68px;
  height: 92px;
  object-fit: contain;
  border-radius: 6px;
  background: #ebe3d6;
}

.top-pick-placeholder {
  display: grid;
  place-items: center;
  color: #9b8865;
  font-size: 25px;
  font-weight: 900;
}

.top-pick-copy { min-width: 0; }
.top-pick-copy strong,
.top-pick-copy span { display: block; }
.top-pick-copy strong { color: #9a7113; font-size: 20px; }
.top-pick-copy span {
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}

.card-tile {
  min-height: 390px;
  width: 100%;
  appearance: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
}

.card-tile:focus-visible {
  outline: 3px solid rgba(32, 60, 95, .36);
  outline-offset: 2px;
}

.card-tile.selected-card {
  background: #fffaf0;
  transform: translateY(-2px);
}

.card-image-wrap { height: 205px; }
.card-copy { padding-top: 10px; }

.card-action {
  min-height: 39px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.selected-card .card-action { background: #9b7418; color: #fffdf6; }
.search-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed #cdbfaa;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.results-revealed .play-strip,
.results-revealed .stage-toolbar,
.results-revealed .top-picks { display: none; }
.results-revealed .community-results { animation: resultsReveal .45s ease both; }
.results-revealed .community-card { animation: resultCardRise .5s ease both; }
@keyframes resultsReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes resultCardRise {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ranking-panel { border-radius: 10px; }
.panel-body { padding: 20px; }
.panel-mobile-toggle,
.panel-close { display: none; }
.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.panel-tip {
  margin: 0 0 14px;
  color: #b8c6d1;
  font-size: 12px;
  line-height: 1.45;
}
.rank-list { max-height: 54vh; }
.rank-item {
  grid-template-columns: 38px 48px minmax(0, 1fr);
  align-items: center;
  padding: 8px;
}
.rank-thumb {
  width: 44px;
  height: 58px;
  object-fit: contain;
  border-radius: 5px;
  background: rgba(255, 255, 255, .1);
}
.rank-controls { flex-wrap: nowrap; }
.rank-controls button { flex: 1; min-width: 0; padding: 5px 6px; }
.rank-controls .remove-rank { color: #ffd4cf; }
.rank-empty { padding: 20px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .results-revealed .community-results,
  .results-revealed .community-card { animation: none; }
}

@media (max-width: 980px) {
  body { padding-bottom: 84px; }
  .vote-header,
  .vote-layout { grid-template-columns: 1fr; }
  .vote-layout { padding-inline: 16px; }
  .hero-showcase { min-height: 270px; }
  .ranking-panel {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    width: 100%;
    border: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .3);
  }
  .panel-mobile-toggle {
    width: 100%;
    min-height: 74px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    background: #111821;
    color: #fff;
    cursor: pointer;
    text-align: left;
  }
  .panel-mobile-toggle span,
  .panel-mobile-toggle small,
  .panel-mobile-toggle strong { display: block; }
  .panel-mobile-toggle small {
    color: #f4d36f;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .panel-mobile-toggle strong { margin-top: 3px; font-size: 15px; }
  .panel-mobile-toggle b {
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: #171206;
    font-size: 12px;
  }
  .panel-body {
    display: none;
    max-height: calc(82vh - 74px);
    overflow: auto;
  }
  .ranking-panel.is-open .panel-body { display: block; }
  .ranking-panel.is-open .panel-mobile-toggle {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .panel-close {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
  }
  .rank-list { max-height: 44vh; }
}

@media (max-width: 720px) {
  .vote-header { padding: 26px 16px 14px; }
  .vote-header h1 { font-size: 44px; }
  .hero-showcase { min-height: 235px; }
  .hero-card-fan { height: 225px; }
  .hero-showcase .fan-card { width: 124px; height: 184px; bottom: 24px; }
  .hero-showcase .fan-center { width: 140px; height: 205px; }
  .vote-layout { margin-top: 8px; padding-inline: 10px; }
  .vote-stage { padding: 12px; }
  .play-strip { grid-template-columns: 1fr; gap: 6px; }
  .play-strip div { min-height: 48px; padding-block: 7px; }
  .stage-toolbar { align-items: stretch; }
  .draft-tools { width: 100%; }
  .top-picks { gap: 6px; }
  .top-pick-slot {
    min-height: 138px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 8px 5px;
    text-align: center;
  }
  .top-pick-slot img,
  .top-pick-placeholder { width: 58px; height: 78px; }
  .top-pick-copy strong { font-size: 16px; }
  .top-pick-copy span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card-tile { min-height: 330px; padding: 7px; }
  .card-image-wrap { height: 174px; }
  .card-tile h3 { font-size: 12px; }
  .pop-line span { padding: 4px 5px; font-size: 9px; }
  .selected-label { font-size: 10px; }
  .card-action { min-height: 36px; font-size: 10px; }
  .ballot-about { width: calc(100% - 28px); padding: 22px; }
}
