:root:not(#luckyimp-theme-disabled) body .imp-hof-main {
  gap: 28px;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-hero {
  min-height: clamp(430px, 49vw, 590px);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-hero > img {
  object-position: center;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-hero::after {
  background: linear-gradient(90deg, #090104 0%, #17070bea 34%, #19070c54 55%, transparent 76%);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-section {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid #77301f;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0, #9c2b1d22, transparent 30rem),
    linear-gradient(150deg, #240a12, #100408 68%);
  box-shadow: inset 0 1px 0 #ffe19a25, 0 18px 38px #05020399;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-section::before {
  position: absolute;
  inset: 7px;
  content: "";
  border: 1px solid #d9903038;
  border-radius: 8px;
  pointer-events: none;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-heading {
  position: relative;
  z-index: 2;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-heading > span {
  display: block;
  margin-bottom: 4px;
  color: #ff7b35;
  font: 400 17px/1.1 Pacifico, cursive;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-heading h2 {
  margin: 0;
  color: #fff0c8 !important;
  font: 400 clamp(38px, 5vw, 60px)/.94 "Bebas Neue", Impact, sans-serif;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #7b1710, 0 6px 16px #050203;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-heading p {
  margin: 9px 0 0;
  color: #d8c5b8;
  font: 600 14px/1.55 Montserrat, sans-serif;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-podium-section {
  padding-top: 34px;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-podium {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(12px, 2vw, 24px);
  max-width: 1050px;
  margin: 34px auto 0;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 420px;
  overflow: visible;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid #a34b22;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #43101b 0%, #18060c 65%, #0b0306 100%);
  box-shadow: inset 0 0 28px #ff6a1c18, 0 14px 30px #050203b3;
  isolation: isolate;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion[data-rank="1"] {
  min-height: 500px;
  border-color: #f2b230;
  background: radial-gradient(circle at 50% 28%, #f2b23028, transparent 13rem), linear-gradient(180deg, #5b1720, #1b080d 68%, #0a0305);
  box-shadow: inset 0 0 34px #f2b23024, 0 0 0 1px #6d260f, 0 18px 40px #050203d1, 0 0 28px #f2b23024;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-medal {
  position: absolute;
  top: -21px;
  left: 50%;
  z-index: 5;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid #3b0c0d;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe48b, #dc8325 58%, #7f2b13);
  color: #4c140b;
  font: 400 29px/1 "Bebas Neue", Impact, sans-serif;
  box-shadow: 0 0 0 2px #f2b230, 0 8px 18px #050203b8, 0 0 18px #f2b23066;
  transform: translateX(-50%);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion[data-rank="2"] .imp-hof-medal {
  background: linear-gradient(145deg, #f4eee0, #aaa29d 62%, #625b59);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion[data-rank="3"] .imp-hof-medal {
  background: linear-gradient(145deg, #f0ad70, #a84f25 62%, #612311);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion__portrait {
  position: relative;
  min-height: 285px;
  overflow: hidden;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion[data-rank="1"] .imp-hof-champion__portrait {
  min-height: 355px;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion__portrait::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(transparent, #18060c);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion__portrait img {
  position: absolute;
  inset: 20px 0 0;
  width: 100%;
  height: calc(100% - 10px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 13px #050203e8) drop-shadow(0 0 14px #ff6a1c4a);
  transform-origin: center bottom;
  transition: transform .35s ease, filter .35s ease;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion:hover .imp-hof-champion__portrait img {
  filter: drop-shadow(0 15px 15px #050203ed) drop-shadow(0 0 22px #ff842c6e);
  transform: scale(1.035) translateY(-4px);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion__copy {
  position: relative;
  z-index: 2;
  min-height: 138px;
  padding: 16px 14px 18px;
  border-top: 1px solid #8d351c;
  text-align: center;
  background: linear-gradient(180deg, #240a11e8, #100407);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion__copy small,
:root:not(#luckyimp-theme-disabled) body .imp-hof-champion__copy span {
  display: block;
  color: #c6a99a;
  font: 600 11px/1.35 Montserrat, sans-serif;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion__copy h3 {
  margin: 4px 0 3px;
  color: #fff0d0;
  font: 400 27px/1 "Bebas Neue", Impact, sans-serif;
  letter-spacing: .055em;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-champion__copy strong {
  display: block;
  margin: 5px 0;
  color: #f2b230;
  font: 400 clamp(24px, 3vw, 38px)/1 "Bebas Neue", Impact, sans-serif;
  text-shadow: 0 2px 0 #7c1c12, 0 0 12px #f2b2303b;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-leaderboard__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-periods {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid #6d2517;
  border-radius: 999px;
  background: #0b0306;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-periods button,
:root:not(#luckyimp-theme-disabled) body .imp-hof-load-more {
  min-height: 40px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #d9ba9c;
  font: 800 12px/1 Montserrat, sans-serif;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease, background .2s ease;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-periods button[aria-pressed="true"] {
  border-color: #ffc451;
  background: linear-gradient(180deg, #c84a25, #6c1513);
  color: #fff2d2;
  box-shadow: inset 0 1px 0 #ffe0a868, 0 5px 12px #050203b3;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-table-wrap {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  overflow: auto;
  border: 1px solid #6f2a1b;
  border-radius: 8px;
  background: #0b0306;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-table-wrap table {
  min-width: 680px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 5px;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-table-wrap th {
  padding: 13px 16px;
  border: 0;
  background: #18070c;
  color: #d9a95c;
  font: 800 11px/1 Montserrat, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-table-wrap td {
  padding: 9px 16px;
  border-top: 1px solid #4e1a14;
  border-bottom: 1px solid #4e1a14;
  background: linear-gradient(90deg, #220a10, #130509);
  color: #ead7c8;
  font: 700 13px/1.3 Montserrat, sans-serif;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-table-wrap td:first-child {
  width: 56px;
  border-left: 1px solid #4e1a14;
  color: #f2b230;
  font: 400 25px/1 "Bebas Neue", Impact, sans-serif;
  text-align: center;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-table-wrap td:last-child {
  border-right: 1px solid #4e1a14;
  color: #ffc454;
  font: 400 23px/1 "Bebas Neue", Impact, sans-serif;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-table-wrap td:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 12px;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-table-wrap td img {
  width: 58px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #8a3b22;
  border-radius: 5px;
  object-fit: cover;
  filter: brightness(.82) saturate(.95);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-table-row {
  animation: imp-hof-row-in .36s both;
  animation-delay: calc(var(--row-index, 0) * 34ms);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-width: 0;
  min-height: 102px;
  overflow: hidden;
  border: 1px solid #6e291b;
  border-radius: 8px;
  background: linear-gradient(145deg, #2b0c14, #110407);
  color: #f2dfd1;
  box-shadow: 0 8px 18px #0502038f;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card:hover,
:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card:focus-visible {
  border-color: #e26d2a;
  box-shadow: 0 12px 24px #050203b8, 0 0 16px #ff6a1c33;
  transform: translateY(-3px);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card img {
  width: 92px;
  height: 100%;
  object-fit: cover;
  filter: brightness(.78) saturate(.92);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 11px 12px;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card small,
:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card em {
  overflow: hidden;
  color: #baa097;
  font: 600 10px/1.35 Montserrat, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card strong {
  margin: 3px 0;
  color: #ffc34c;
  font: 400 25px/1 "Bebas Neue", Impact, sans-serif;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card em {
  color: #e7d1c3;
  font-style: normal;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card.is-extra {
  display: none;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-latest-grid.is-expanded .imp-hof-latest-card.is-extra {
  display: grid;
  animation: imp-hof-row-in .38s both;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-load-more {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 190px;
  margin: 22px auto 0;
  border: 1px solid #f2b230;
  border-radius: 5px;
  background: linear-gradient(180deg, #c84a25, #6c1513);
  color: #fff2d0;
  box-shadow: inset 0 1px 0 #ffe0a85e, 0 5px 0 #310809, 0 10px 18px #0502038f;
  text-transform: uppercase;
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-load-more:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

:root:not(#luckyimp-theme-disabled) body .imp-hof-disclaimer {
  margin: -10px 0 4px;
  color: #9c8178;
  font: 600 11px/1.5 Montserrat, sans-serif;
  text-align: center;
}

@keyframes imp-hof-row-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  :root:not(#luckyimp-theme-disabled) body .imp-hof-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root:not(#luckyimp-theme-disabled) body .imp-hof-hero > img {
    object-position: 68% center;
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-podium {
    grid-template-columns: 1fr;
    align-items: stretch;
    max-width: 440px;
    gap: 34px;
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-champion,
  :root:not(#luckyimp-theme-disabled) body .imp-hof-champion[data-rank="1"] {
    min-height: 420px;
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-champion[data-rank="1"] {
    order: -1;
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-champion__portrait,
  :root:not(#luckyimp-theme-disabled) body .imp-hof-champion[data-rank="1"] .imp-hof-champion__portrait {
    min-height: 280px;
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-leaderboard__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  :root:not(#luckyimp-theme-disabled) body .imp-hof-hero {
    min-height: 510px;
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-hero > img {
    object-position: 68% center;
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-hero::after {
    background: linear-gradient(180deg, #10040847, #100408ba 52%, #080204db);
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-section {
    padding: 22px 14px;
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-latest-grid {
    grid-template-columns: 1fr;
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  :root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card img {
    width: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root:not(#luckyimp-theme-disabled) body .imp-hof-champion__portrait img,
  :root:not(#luckyimp-theme-disabled) body .imp-hof-latest-card,
  :root:not(#luckyimp-theme-disabled) body .imp-hof-table-row {
    animation: none;
    transition: none;
  }
}
