.hof-page {
  display: grid;
  gap: 14px;
}
.hof-intro {
  position: relative;
  overflow: hidden;
  min-height: clamp(160px, 24vw, 280px);
  padding: clamp(18px, 3.8vw, 36px) 24px clamp(0px, 0.5vw, 6px);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hof-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 4, 14, 0.2), rgba(8, 4, 14, 0.7)),
    linear-gradient(115deg, rgba(168, 85, 247, 0.26), rgba(255, 110, 180, 0.14));
}
.hof-intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  z-index: 0;
}
.hof-intro > :not(.hof-intro-bg) {
  position: relative;
  z-index: 1;
}
.hof-intro .section-title {
  margin: 0;
  font-size: clamp(40px, 8vw, 88px);
  letter-spacing: 0.09em;
  line-height: 0.92;
  margin-top: auto;
  transform: translateY(6px);
  background: linear-gradient(180deg, #fff3bf 0%, #f4d27a 36%, #d6a94d 68%, #9f6c22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.62),
    0 0 26px rgba(184, 134, 46, 0.35);
}
.hof-intro-copy {
  margin: 10px auto 0;
  max-width: 74ch;
  color: #dec88e;
  letter-spacing: 0.05em;
}
.hof-block-title {
  margin: 0 0 6px;
}
.hof-block-subtle {
  margin: 0 0 12px;
}
.hof-winner-card {
  padding: 14px;
  border: 1px solid rgba(244, 208, 63, 0.28);
  background: linear-gradient(180deg, rgba(38, 22, 8, 0.35), rgba(20, 12, 30, 0.9));
}
.hof-roll-card {
  padding: 14px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: linear-gradient(180deg, rgba(22, 14, 38, 0.78), rgba(8, 8, 18, 0.95));
}
.hof-hero-kicker {
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4d27a;
  font-size: 12px;
  opacity: 0.95;
}
.hof-list {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.hof-champion-card {
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(10, 7, 16, 0.44), rgba(7, 6, 12, 0.62)),
    linear-gradient(90deg, rgba(6, 4, 12, 0.36) 0%, rgba(10, 8, 18, 0.2) 42%, rgba(8, 6, 14, 0.3) 100%),
    url("/images/hof-player-card-bg.png?v=20260506hofplayerbg1") center center / cover no-repeat;
  padding: 12px;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

/* Higher specificity than inline voting.html `.hof-champion-card` — alternating ranks 1&3 vs 2&4 */
.hof-champion-card.hof-champion-card--parity-a {
  border-color: rgba(244, 208, 122, 0.42);
  box-shadow:
    0 0 0 1px rgba(244, 208, 122, 0.14) inset,
    0 0 32px rgba(244, 140, 90, 0.22),
    0 0 56px rgba(168, 85, 247, 0.14);
  background:
    linear-gradient(160deg, rgba(48, 22, 14, 0.38), rgba(12, 10, 22, 0.52)),
    linear-gradient(90deg, rgba(90, 36, 22, 0.28) 0%, rgba(22, 14, 28, 0.14) 48%, rgba(44, 18, 36, 0.22) 100%),
    url("/images/hof-player-card-bg.png?v=20260506hofplayerbg1") center center / cover no-repeat;
}

.hof-champion-card.hof-champion-card--parity-b {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.16) inset,
    0 0 34px rgba(96, 165, 250, 0.22),
    0 0 52px rgba(139, 92, 246, 0.16);
  background:
    linear-gradient(160deg, rgba(12, 18, 42, 0.42), rgba(8, 10, 24, 0.56)),
    linear-gradient(90deg, rgba(22, 30, 62, 0.34) 0%, rgba(14, 16, 36, 0.18) 48%, rgba(18, 36, 56, 0.26) 100%),
    url("/images/hof-player-card-bg.png?v=20260506hofplayerbg1") center center / cover no-repeat;
}

.hof-champion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}
.hof-role-dps::before {
  background: radial-gradient(circle at 16% 50%, rgba(220, 38, 38, 0.4), transparent 45%);
}
.hof-role-heal::before {
  background: radial-gradient(circle at 16% 50%, rgba(34, 197, 94, 0.34), transparent 45%);
}
.hof-role-tank::before {
  background: radial-gradient(circle at 16% 50%, rgba(59, 130, 246, 0.34), transparent 45%);
}
.hof-cine-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 270px);
  gap: 14px;
  align-items: stretch;
}
.hof-cine-row--reverse {
  direction: rtl;
}
.hof-cine-row--reverse > * {
  direction: ltr;
}
.hof-champion-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}
.hof-champion-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hof-winner-spec-wrap {
  margin: 2px 0 6px;
}
.hof-winner-spec-portrait {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  border: 2px solid rgba(235, 220, 255, 0.48);
  box-shadow: 0 0 28px rgba(244, 208, 122, 0.24), 0 0 44px rgba(168, 85, 247, 0.24);
  background: rgba(6, 6, 12, 0.95);
}
.hof-role-pill-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hof-role-emblem {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 208, 122, 0.38);
  background: rgba(244, 208, 122, 0.14);
  box-shadow: 0 0 18px rgba(244, 208, 122, 0.22);
  font-size: 16px;
}
.hof-role-chip {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 110, 180, 0.45);
  background: rgba(255, 110, 180, 0.14);
}
.hof-guild-role-token {
  font-size: 10px;
}
.hof-guild-role-token .guild-role-token-frame {
  width: 30px;
  height: 30px;
}
.hof-champion-player .leaderboard-player-row {
  align-items: flex-start;
  gap: 0;
  width: 100%;
}
.hof-champion-player .leaderboard-player-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hof-spec-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(244, 208, 122, 0.5);
  background: rgba(6, 6, 12, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 0 14px rgba(244, 208, 122, 0.24);
}
.hof-spec-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hof-spec-icon-wrap--fallback {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f4d27a;
}
.hof-champion-player .leaderboard-player-name {
  font-size: clamp(28px, 4.8vw, 52px);
  line-height: 1;
  letter-spacing: 0.03em;
}
.hof-champion-player .leaderboard-player-meta {
  font-size: 14px;
  opacity: 0.92;
  text-align: left;
  width: 100%;
}
.hof-mvp-badges-wrap {
  margin-top: auto;
  width: 100%;
}
.hof-mvp-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 0;
  padding-top: 0;
  margin: 6px 0 2px;
  justify-content: flex-start;
}
.hof-mvp-badges .raider-badge-slot {
  width: 56px;
  height: 56px;
  box-shadow: 0 0 0 1px rgba(244, 208, 122, 0.22) inset, 0 0 14px rgba(244, 208, 122, 0.18);
}
.hof-achievements-title {
  margin: 6px 0 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #c6b07a;
}
.hof-champion-copy p {
  margin: 0;
}
.hof-champion-subtle {
  font-size: 18px;
  color: #e8d8ff;
  letter-spacing: 0.02em;
  font-family: "Cinzel", "Times New Roman", serif;
  line-height: 1.3;
  text-wrap: balance;
}
.hof-champion-quote {
  font-style: italic;
  color: #f5d892;
  font-size: clamp(28px, 3.3vw, 34px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  font-family: "Cinzel", "Times New Roman", serif;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.58),
    0 0 18px rgba(244, 208, 122, 0.24);
}
.hof-champion-copy {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.hof-crowned-raid {
  color: #f4d27a;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hof-chronicle-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: #c4b5fd;
  text-align: center;
  margin-bottom: 8px;
}
.hof-chronicle-pane {
  border: 1px solid rgba(201, 164, 80, 0.34);
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(52, 36, 10, 0.32), rgba(20, 14, 6, 0.24));
  backdrop-filter: blur(2px);
}
.hof-chronicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.hof-chronicle-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px;
  background: rgba(5, 5, 12, 0.3);
}
.hof-chronicle-kpi strong {
  font-size: 18px;
  line-height: 1;
  color: #f4d27a;
}
.potr-grid {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.potr-grid .mvp-card {
  border: 1px solid rgba(244, 208, 63, 0.24);
  background: linear-gradient(180deg, rgba(36, 24, 12, 0.65), rgba(16, 10, 22, 0.84));
}
.potr-grid .mvp-card h3 {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4d27a;
}
.voting-row {
  border: 1px solid rgba(168, 85, 247, 0.36);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(32, 22, 52, 0.9), rgba(12, 10, 24, 0.94));
}
.voting-row.is-role-mvp-dps,
.voting-row.is-role-mvp-heal,
.voting-row.is-role-mvp-tank {
  border-color: rgba(244, 208, 122, 0.72);
  box-shadow:
    0 0 0 1px rgba(244, 208, 122, 0.36) inset,
    0 0 24px rgba(244, 208, 122, 0.28);
}
.voting-role-mvp-badges {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.voting-role-mvp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(244, 208, 122, 0.55);
  background: rgba(244, 208, 122, 0.16);
  color: #f4d27a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.voting-player-name {
  font-size: 22px;
  letter-spacing: 0.02em;
}

/* Class colours — !important beats Tailwind/parent inheritance quirks on MVP voting rows. */
.voting-player-name.voting-class--warrior {
  color: #c79c6e !important;
}
.voting-player-name.voting-class--paladin {
  color: #f58cba !important;
}
.voting-player-name.voting-class--hunter {
  color: #abd473 !important;
}
.voting-player-name.voting-class--rogue {
  color: #fff569 !important;
}
.voting-player-name.voting-class--priest {
  color: #ffffff !important;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.9);
}
.voting-player-name.voting-class--shaman {
  color: #0070dd !important;
}
.voting-player-name.voting-class--mage {
  color: #69ccf0 !important;
}
.voting-player-name.voting-class--warlock {
  color: #9482c9 !important;
}
.voting-player-name.voting-class--druid {
  color: #ff7d0a !important;
}
.voting-player-name.voting-class--deathknight {
  color: #c41f3b !important;
}
.voting-player-name.voting-class--unknown {
  color: #ded6ee !important;
}
.voting-metric-value {
  color: #f4d27a;
}
.voting-metric--dps .voting-metric-value {
  color: #ff9a74;
}
.voting-metric--hps .voting-metric-value {
  color: #6de6b2;
}
.voting-metric--taken .voting-metric-value {
  color: #7dc8ff;
}
#votingStatus {
  border: 1px solid rgba(244, 208, 63, 0.24);
  background: rgba(35, 26, 8, 0.35);
  color: #f4dca6;
}
.hof-empty-roll {
  border: 1px dashed rgba(244, 208, 63, 0.35);
  border-radius: 12px;
  padding: 16px;
  background: rgba(26, 18, 8, 0.28);
  color: #dcc48a;
}
.voting-list {
  gap: 10px;
}
@media (max-width: 900px) {
  .hof-intro {
    min-height: 150px;
    padding: 18px 16px;
  }
  .hof-cine-row {
    grid-template-columns: 1fr;
  }
  .hof-cine-row--reverse {
    direction: ltr;
  }
  .hof-chronicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .potr-grid {
    grid-template-columns: 1fr;
  }
  .hof-champion-player .leaderboard-player-name {
    font-size: clamp(26px, 7.2vw, 42px);
  }
  .hof-winner-spec-portrait {
    width: 92px;
    height: 92px;
  }
}

/* --- Eternal Hall player grid (deduplicated MVP cards) --- */
.hof-spotlight-wrap {
  margin-bottom: 18px;
}

.hof-champion-card--spotlight {
  animation: hofSpotlightGlow 4.5s ease-in-out infinite;
}

@keyframes hofSpotlightGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(244, 208, 122, 0.22) inset,
      0 0 28px rgba(244, 140, 90, 0.18),
      0 0 48px rgba(168, 85, 247, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(244, 208, 122, 0.36) inset,
      0 0 36px rgba(244, 180, 90, 0.32),
      0 0 64px rgba(168, 85, 247, 0.22);
  }
}

.hof-players-section {
  margin-top: 8px;
}

.hof-players-kicker {
  margin: 0 0 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.hof-player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hof-player-card {
  border: 1px solid rgba(168, 85, 247, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(12, 8, 20, 0.72), rgba(8, 6, 14, 0.92)),
    url("/images/hof-player-card-bg.png?v=20260506hofplayerbg1") center center / cover no-repeat;
  padding: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  animation: hofPlayerCardIn 0.55s ease both;
  animation-delay: calc(var(--hof-stagger-index, 0) * 70ms);
}

@keyframes hofPlayerCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hof-player-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 208, 122, 0.38);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hof-player-card-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}

.hof-player-card-portrait-wrap {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.hof-player-card-portrait {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(235, 220, 255, 0.42);
  box-shadow: 0 0 16px rgba(244, 208, 122, 0.2);
  background: rgba(6, 6, 12, 0.95);
}

.hof-player-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hof-player-card-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hof-mvp-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: #fff3bf;
  border: 1px solid rgba(244, 208, 122, 0.45);
  background: linear-gradient(180deg, rgba(244, 208, 122, 0.22), rgba(159, 108, 34, 0.18));
  box-shadow: 0 0 14px rgba(244, 208, 122, 0.18);
  animation: hofMvpCounterIn 0.45s ease both;
  animation-delay: calc(var(--hof-stagger-index, 0) * 70ms + 80ms);
}

@keyframes hofMvpCounterIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hof-player-card-player .leaderboard-player-row {
  align-items: flex-start;
}

.hof-player-card-player .leaderboard-player-name {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.1;
}

.hof-player-card-player .leaderboard-player-meta {
  font-size: 12px;
}

.hof-player-card-latest {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.hof-player-card-quote {
  margin: 0;
  font-style: italic;
  color: #f5d892;
  font-size: 14px;
  line-height: 1.35;
  font-family: "Cinzel", "Times New Roman", serif;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hof-player-card .hof-mvp-badges {
  margin: 0;
}

.hof-player-card-badges {
  width: 100%;
  margin-top: 2px;
}

.hof-player-card .hof-player-card-badges .leaderboard-player-badges {
  width: 100%;
}

.hof-player-card .hof-player-card-badges .raider-badges {
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hof-player-card .hof-player-card-badges .raider-badge-slot {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: #000;
  overflow: hidden;
}

.hof-player-card .hof-player-card-badges .raider-badge-role-img,
.hof-player-card .hof-player-card-badges .raider-badge-achievement-img {
  width: 52px;
  height: 52px;
}

.hof-player-card .hof-player-card-badges .raider-badge-slot--achievement-earned .raider-badge-achievement-img {
  --achievement-badge-zoom: 1.72;
}

.hof-player-card .hof-player-card-badges .raider-badge-slot--achievement-earned {
  box-shadow:
    inset 0 0 0 1px var(--achievement-rarity-color, rgba(244, 208, 122, 0.2)),
    0 0 10px color-mix(in srgb, var(--achievement-glow-color, #a855f7) 22%, transparent);
}

.hof-player-card .hof-player-card-badges .achievement-badge-frame {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.hof-player-card .hof-player-card-badges .raider-badge-slot--guild-role .raider-badge-role-img {
  --role-badge-zoom: 1.72;
}

.hof-player-expand {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.hof-player-expand[aria-expanded="true"] .hof-player-expand-chevron {
  transform: rotate(180deg);
}

.hof-player-expand-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hof-player-wins {
  display: grid;
  gap: 8px;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease;
}

.hof-player-wins[hidden] {
  display: none;
}

.hof-win-row {
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 6, 16, 0.55);
}

.hof-win-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hof-win-row-title {
  display: grid;
  gap: 2px;
}

.hof-win-row-title strong {
  color: #f4d27a;
  font-size: 14px;
}

.hof-win-row-role {
  font-size: 10px;
  padding: 3px 7px;
}

.hof-win-row-body {
  display: grid;
  gap: 6px;
}

.hof-win-row-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.hof-win-row-quote {
  margin: 0;
  font-style: italic;
  color: #e8d8ff;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .hof-player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hof-player-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hof-player-card,
  .hof-mvp-counter,
  .hof-champion-card--spotlight {
    animation: none;
  }

  .hof-player-card,
  .hof-player-expand-chevron {
    transition: none;
  }
}
