.wg-hof {
  --wg-hof-bg: #0f141b;
  --wg-hof-panel: #141b24;
  --wg-hof-panel-alt: #18202c;
  --wg-hof-line: rgba(255, 255, 255, 0.08);
  --wg-hof-line-strong: rgba(214, 167, 74, 0.34);
  --wg-hof-text: #eef3f7;
  --wg-hof-muted: #91a1b1;
  --wg-hof-accent: #d6a74a;
  --wg-hof-accent-soft: rgba(214, 167, 74, 0.12);
  --wg-hof-cold: #8eb5d7;
  position: relative;
  border: 1px solid var(--wg-hof-line);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #0f141b 0%, #111821 100%);
  color: var(--wg-hof-text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.wg-hof::before,
.wg-hof::after {
  display: none;
}

.wg-hof-switcher {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wg-hof-switcher label {
  color: var(--wg-hof-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.wg-hof-switcher select {
  min-width: min(100%, 340px);
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--wg-hof-line);
  background: var(--wg-hof-panel);
  color: var(--wg-hof-text);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  box-shadow: none;
}

.wg-hof-hero,
.wg-hof-ledger,
.wg-hof-podium-card,
.wg-hof-ledger-row,
.wg-hof-empty {
  border: 1px solid var(--wg-hof-line);
  border-radius: 14px;
  background: var(--wg-hof-panel);
}

.wg-hof-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
}

.wg-hof-hero-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.wg-hof-kicker {
  margin: 0;
  color: var(--wg-hof-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.wg-hof-hero h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.wg-hof-description,
.wg-hof-section-head p,
.wg-hof-empty p,
.wg-hof-finish,
.wg-hof-finish-meta,
.wg-hof-ledger-note {
  margin: 0;
  color: var(--wg-hof-muted);
}

.wg-hof-description {
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.45;
}

.wg-hof-pill-row,
.wg-hof-raid-row,
.wg-hof-breakdown,
.wg-hof-links,
.wg-hof-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wg-hof-pill,
.wg-hof-raid-pill,
.wg-hof-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--wg-hof-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--wg-hof-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.wg-hof-pill.is-accent {
  border-color: var(--wg-hof-line-strong);
  background: var(--wg-hof-accent-soft);
  color: #f3cb84;
}

.wg-hof-raid-pill {
  color: var(--wg-hof-cold);
}

.wg-hof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
  align-self: start;
}

.wg-hof-stat {
  min-width: 110px;
  padding: 12px;
  border: 1px solid var(--wg-hof-line);
  border-radius: 12px;
  background: var(--wg-hof-panel-alt);
}

.wg-hof-stat-label {
  display: block;
  color: var(--wg-hof-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wg-hof-stat strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.1;
}

.wg-hof-podium {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 0.96fr));
  gap: 12px;
  margin-top: 12px;
}

.wg-hof-podium-slot {
  display: block;
}

.wg-hof-podium-card {
  display: grid;
  grid-template-columns: 40px 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.wg-hof-podium-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.wg-hof-podium-slot.rank-1 .wg-hof-podium-card {
  border-color: rgba(214, 167, 74, 0.44);
  background: linear-gradient(180deg, rgba(214, 167, 74, 0.09), rgba(20, 27, 36, 0.98) 54%);
  box-shadow: inset 0 0 0 1px rgba(214, 167, 74, 0.08);
}

.wg-hof-podium-slot.rank-2 .wg-hof-podium-card {
  border-color: rgba(213, 221, 229, 0.14);
  background: linear-gradient(180deg, rgba(213, 221, 229, 0.05), rgba(20, 27, 36, 0.98) 50%);
}

.wg-hof-podium-slot.rank-3 .wg-hof-podium-card {
  border-color: rgba(195, 140, 97, 0.18);
  background: linear-gradient(180deg, rgba(195, 140, 97, 0.05), rgba(20, 27, 36, 0.98) 50%);
}

.wg-hof-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--wg-hof-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--wg-hof-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rank-1 .wg-hof-rank-badge {
  border-color: rgba(214, 167, 74, 0.4);
  color: var(--wg-hof-accent);
}

.rank-2 .wg-hof-rank-badge {
  color: #d0d8e0;
}

.rank-3 .wg-hof-rank-badge {
  color: #c58f67;
}

.wg-hof-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--wg-hof-line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(214, 167, 74, 0.18), rgba(142, 181, 215, 0.14));
  color: var(--wg-hof-text);
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wg-hof-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wg-hof-podium-body,
.wg-hof-ledger-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wg-hof-podium-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.wg-hof-podium-head {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.wg-hof-podium-body h3,
.wg-hof-ledger-head h3,
.wg-hof-empty h3,
.wg-hof-section-head h2 {
  margin: 0;
}

.wg-hof-podium-body h3,
.wg-hof-ledger-head h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.rank-1 .wg-hof-podium-body h3 {
  font-size: 18px;
}

.wg-hof-meta-row {
  color: var(--wg-hof-muted);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.wg-hof-chip {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.wg-hof-chip strong {
  color: var(--wg-hof-accent);
  font-weight: 800;
}

.wg-hof-score {
  display: inline-grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--wg-hof-line);
  border-radius: 12px;
  background: var(--wg-hof-panel-alt);
  text-align: center;
}

.wg-hof-score strong {
  color: var(--wg-hof-text);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.wg-hof-score span {
  color: var(--wg-hof-accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wg-hof-score.is-top strong {
  font-size: 32px;
}

.wg-hof-score.is-ledger {
  min-width: 72px;
  padding-inline: 10px;
}

.wg-hof-score.is-ledger strong {
  font-size: 34px;
}

.wg-hof-score.is-ledger span {
  display: none;
}

.rank-1 .wg-hof-score {
  border-color: rgba(214, 167, 74, 0.34);
  background: linear-gradient(180deg, rgba(214, 167, 74, 0.1), rgba(214, 167, 74, 0.04));
}

.wg-hof-finish {
  font-size: 12px;
  font-weight: 700;
}

.wg-hof-finish strong,
.wg-hof-ledger-time {
  color: var(--wg-hof-text);
}

.wg-hof-finish-meta,
.wg-hof-ledger-note {
  font-size: 11px;
  line-height: 1.4;
}

.wg-hof-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--wg-hof-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--wg-hof-text);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.wg-hof-link:hover {
  border-color: var(--wg-hof-line-strong);
  background: var(--wg-hof-accent-soft);
  color: #f3cb84;
}

.wg-hof-link.is-alt {
  color: var(--wg-hof-cold);
}

.wg-hof-ledger {
  margin-top: 12px;
  padding: 12px;
}

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

.wg-hof-section-head h2 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.wg-hof-section-head p {
  font-size: 12px;
  line-height: 1.4;
}

.wg-hof-ledger-list {
  display: grid;
  gap: 8px;
}

.wg-hof-ledger-row {
  display: grid;
  grid-template-columns: 40px 52px minmax(0, 1fr) minmax(96px, auto) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.wg-hof-ledger-rank {
  min-width: 0;
  color: var(--wg-hof-muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.wg-hof-ledger-head {
  display: grid;
  gap: 4px;
}

.wg-hof-ledger-side {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.wg-hof-ledger-time {
  font-size: 12px;
  font-weight: 700;
}

.wg-hof-empty {
  padding: 18px 16px;
  text-align: left;
}

.wg-hof-empty h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wg-hof-empty p {
  margin-top: 6px;
  max-width: 54ch;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .wg-hof-hero {
    grid-template-columns: 1fr;
  }

  .wg-hof-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wg-hof-podium {
    grid-template-columns: 1fr;
  }

  .wg-hof-ledger-row {
    grid-template-columns: 40px 52px minmax(0, 1fr) minmax(96px, auto);
  }

  .wg-hof-ledger-row .wg-hof-links {
    grid-column: 1 / -1;
    padding-left: 104px;
  }
}

@media (max-width: 720px) {
  .wg-hof {
    padding: 12px;
    border-radius: 16px;
  }

  .wg-hof-switcher {
    flex-direction: column;
    align-items: stretch;
  }

  .wg-hof-switcher select {
    min-width: 100%;
  }

  .wg-hof-hero,
  .wg-hof-ledger,
  .wg-hof-podium-card,
  .wg-hof-ledger-row,
  .wg-hof-empty {
    border-radius: 12px;
  }

  .wg-hof-hero,
  .wg-hof-ledger,
  .wg-hof-podium-card,
  .wg-hof-ledger-row {
    padding: 10px;
  }

  .wg-hof-hero h1 {
    font-size: 22px;
  }

  .wg-hof-stats {
    grid-template-columns: 1fr;
  }

  .wg-hof-podium-card,
  .wg-hof-ledger-row {
    grid-template-columns: 36px 46px minmax(0, 1fr);
  }

  .wg-hof-podium-top {
    grid-template-columns: 1fr;
  }

  .wg-hof-score,
  .wg-hof-score.is-ledger {
    justify-items: start;
    min-width: 0;
  }

  .wg-hof-score strong,
  .wg-hof-score.is-top strong,
  .wg-hof-score.is-ledger strong {
    font-size: 24px;
  }

  .wg-hof-crest {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .wg-hof-ledger-side {
    justify-items: start;
    text-align: left;
  }

  .wg-hof-ledger-row .wg-hof-links {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .wg-hof-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
