.uf-vote-leaderboard {
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .2);
}

.uf-vote-leaderboard > header {
  padding: 16px 18px;
}

.uf-vote-leaderboard h2 {
  font-size: clamp(20px, 2.4vw, 28px);
}

.uf-vote-champions {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-top: 1px solid rgba(230, 185, 80, .36);
  border-bottom: 1px solid rgba(230, 185, 80, .36);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 221, 128, .2), transparent 36%),
    linear-gradient(180deg, rgba(45, 33, 11, .96), rgba(7, 20, 24, .98));
  isolation: isolate;
}

.uf-vote-champions::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 230, 158, .025) 18px 19px);
  content: "";
  pointer-events: none;
}

.uf-vote-champions__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
}

.uf-vote-champion {
  position: relative;
  display: flex;
  width: min(220px, 100%);
  min-width: 0;
  flex: 0 1 220px;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 16px;
  border: 2px solid #0b0c0c;
  background: linear-gradient(145deg, rgba(79, 58, 18, .96), rgba(17, 26, 27, .98) 68%);
  box-shadow: inset 0 0 0 1px rgba(255, 227, 145, .44), 5px 5px 0 rgba(0, 0, 0, .32);
  text-align: center;
}

.uf-vote-champion__head {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  margin: 0 auto 11px;
  place-items: center;
  perspective: 260px;
}

.uf-vote-champion__head::before {
  position: absolute;
  inset: -5px;
  border: 2px dashed rgba(255, 221, 128, .72);
  box-shadow: 0 0 22px rgba(230, 185, 80, .24);
  content: "";
  animation: uf-vote-champion-halo 9s linear infinite;
}

.uf-vote-champion__head img,
.uf-vote-champion__head .uf-vote-player__fallback {
  position: relative;
  z-index: 1;
  display: block;
  width: 72px;
  height: 72px;
  border: 2px solid #090b0b;
  background: #071116;
  box-shadow: inset 0 0 0 1px #ffe5a0, 4px 5px 0 rgba(0, 0, 0, .34);
  image-rendering: pixelated;
}

.uf-vote-champion__head img {
  animation: uf-vote-champion-head 6.4s ease-in-out infinite;
  backface-visibility: visible;
  transform-style: preserve-3d;
}

.uf-vote-champion:nth-child(2n) .uf-vote-champion__head img {
  animation-delay: -3.2s;
}

.uf-vote-champion__rank {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #c59a3a;
  background: linear-gradient(#f6d679, #ba872b);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .34);
  color: #211605;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.uf-vote-champion__rank svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.7;
}

.uf-vote-champion h3 {
  max-width: 100%;
  margin: 10px 0 4px;
  overflow: hidden;
  color: #fff1c4;
  font-family: var(--uf-font-display);
  font-size: 18px;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 0 #080a0a;
  white-space: nowrap;
}

.uf-vote-champion h3 a {
  color: inherit;
}

.uf-vote-champion h3 a:hover,
.uf-vote-champion h3 a:focus-visible {
  color: #fff;
}

.uf-vote-champion p {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 0;
  color: #d9cda9;
  font-size: 11px;
}

.uf-vote-champion p strong {
  color: #ffe29a;
  font-family: var(--uf-font-display);
  font-size: 22px;
  line-height: 1;
}

.uf-vote-champion small {
  margin-top: 6px;
  color: #b5aaa0;
  font-size: 10px;
}

.uf-vote-champions__more {
  margin: 13px 0 0;
  color: #d9cda9;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

@keyframes uf-vote-champion-head {
  0%, 28% { transform: translateY(0) rotateY(0deg); }
  48% { transform: translateY(-4px) rotateY(180deg); }
  68%, 100% { transform: translateY(0) rotateY(360deg); }
}

@keyframes uf-vote-champion-halo {
  to { transform: rotate(360deg); }
}

.uf-vote-leaderboard__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
}

.uf-vote-leaderboard__list li {
  display: grid;
  min-width: 0;
  min-height: 62px;
  grid-template-areas:
    "player votes"
    "player week";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  padding: 9px 10px;
  background: rgba(5, 19, 24, .98);
}

.uf-vote-leaderboard__list li.is-podium {
  background: linear-gradient(125deg, rgba(230, 185, 80, .14), rgba(5, 19, 24, .98) 72%);
}

.uf-vote-player {
  display: flex;
  min-width: 0;
  grid-area: player;
  align-items: center;
  gap: 8px;
}

.uf-vote-player__head {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(63, 208, 238, .42);
  background: #071116;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .24);
}

.uf-vote-player__head img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: cover;
  image-rendering: pixelated;
}

.uf-vote-player__fallback {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #31505a, #142b33 72%);
}

.uf-vote-player__fallback::before,
.uf-vote-player__fallback::after {
  position: absolute;
  content: "";
}

.uf-vote-player__fallback::before {
  top: 8px;
  left: 5px;
  width: 4px;
  height: 4px;
  background: #bff6ff;
  box-shadow: 14px 0 #bff6ff;
}

.uf-vote-player__fallback::after {
  right: 6px;
  bottom: 6px;
  left: 6px;
  height: 3px;
  background: rgba(3, 12, 16, .75);
}

.uf-vote-player .uf-vote-rank {
  position: absolute;
  right: -6px;
  bottom: -5px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(63, 208, 238, .65);
  background: #09242b;
  color: #bff6ff;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}

.uf-vote-leaderboard__list .is-podium .uf-vote-player__head {
  border-color: rgba(230, 185, 80, .72);
  box-shadow: 3px 3px 0 rgba(69, 46, 4, .45);
}

.uf-vote-leaderboard__list .is-podium .uf-vote-rank {
  border-color: rgba(230, 185, 80, .82);
  background: #493814;
  color: #fff0bd;
}

.uf-vote-player strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uf-vote-player strong a {
  color: inherit;
}

.uf-vote-player strong a:hover,
.uf-vote-player strong a:focus-visible {
  color: var(--uf-v4-cyan);
}

.uf-vote-leaderboard__list li > span {
  grid-area: votes;
  align-self: end;
  color: var(--uf-v4-muted);
  font-size: 10px;
  white-space: nowrap;
}

.uf-vote-leaderboard__list li > span b {
  color: #fff;
  font-size: 14px;
}

.uf-vote-leaderboard__list small {
  grid-area: week;
  align-self: start;
  color: var(--uf-v4-muted);
  font-size: 9px;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .uf-vote-leaderboard__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .uf-vote-leaderboard__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .uf-vote-leaderboard > header {
    flex-direction: row;
    align-items: end;
    padding: 13px 14px;
  }

  .uf-vote-leaderboard h2 {
    font-size: 20px;
  }

  .uf-vote-champions {
    padding: 14px 10px;
  }

  .uf-vote-champions__cards {
    flex-wrap: wrap;
    gap: 8px;
  }

  .uf-vote-champion {
    flex-basis: calc(50% - 4px);
    padding: 13px 7px 12px;
  }

  .uf-vote-champion__head {
    width: 68px;
    height: 68px;
    margin-bottom: 9px;
  }

  .uf-vote-champion__head img,
  .uf-vote-champion__head .uf-vote-player__fallback {
    width: 58px;
    height: 58px;
  }

  .uf-vote-champion h3 {
    font-size: 14px;
  }

  .uf-vote-champion p {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
  }

  .uf-vote-champion p strong {
    font-size: 19px;
  }

  .uf-vote-leaderboard__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uf-vote-leaderboard__list li {
    min-height: 66px;
    grid-template-areas:
      "player player"
      "votes week";
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 8px;
    padding: 9px;
  }

  .uf-vote-leaderboard__list small {
    grid-column: auto;
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uf-vote-champion__head::before,
  .uf-vote-champion__head img {
    animation: none;
  }
}

@media (max-width: 339px) {
  .uf-vote-leaderboard__list {
    grid-template-columns: minmax(0, 1fr);
  }
}
