.tournament-leaderboards h2, .tournament-shields h2 {
  box-shadow: inset 0 1px 3px -2px #737373, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 3)/.8);
}

:where(html.light) .tournament-leaderboards h2 {
  box-shadow: inset 0 3px 3px -2px #fff6, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8);
}

.tournament-leaderboards :where(html.light) h2 {
  box-shadow: inset 0 3px 3px -2px #fff6, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8);
}

:where(html.light) .tournament-shields h2 {
  box-shadow: inset 0 3px 3px -2px #fff6, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8);
}

.tournament-shields :where(html.light) h2 {
  box-shadow: inset 0 3px 3px -2px #fff6, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8);
}

.tournament-leaderboards h2, .tournament-shields h2 {
  background-image: linear-gradient(to bottom, var(--c-metal-top), var(--c-metal-bottom));
  white-space: nowrap;
  overflow: hidden;
}

.tournament-leaderboards section[class$="__item"] .user-link, .tournament-shields section[class$="__item"] .user-link {
  text-overflow: ellipsis;
  overflow: hidden;
}

.tournament-leaderboards section[class$="__item"] > a h2:after, .tournament-shields section[class$="__item"] > a h2:after {
  vertical-align: middle;
  text-transform: none;
  speak: none;
  content: attr(data-icon);
  opacity: .9;
  unicode-bidi: isolate;
  font-family: lichess;
  font-size: 1.2em;
  font-style: normal;
  font-weight: normal;
}

.tournament-leaderboards h2, .tournament-shields h2 {
  flex-flow: row;
  align-items: center;
  display: flex;
}

.tournament-categ-shields li {
  flex-flow: wrap;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.tournament-leaderboards section[class$="__item"], .tournament-shields section[class$="__item"] {
  border-radius: var(---ui-roundness, 7px);
}

.tournament-shields h2 {
  border-radius: var(---ui-roundness, 7px) var(---ui-roundness, 7px) 0 0;
}

.tournament-leaderboards, .tournament-shields {
  grid-template-columns: repeat(auto-fit, minmax(36ch, 1fr));
  gap: 1em;
  display: grid;
}

.tournament-leaderboards section[class$="__item"], .tournament-shields section[class$="__item"] {
  border: 1px solid var(--c-border);
  overflow: hidden;
}

.tournament-leaderboards section[class$="__item"] > a h2:after, .tournament-shields section[class$="__item"] > a h2:after {
  content: "";
  color: var(--c-font-dimmer);
  opacity: 0;
  margin-left: auto;
  margin-right: 12px;
  font-size: 16px;
}

.tournament-leaderboards section[class$="__item"] > a:hover h2:after, .tournament-shields section[class$="__item"] > a:hover h2:after {
  opacity: 1;
}

.tournament-leaderboards h2, .tournament-shields h2 {
  width: 100%;
  color: var(--c-font);
  margin: 0;
  padding-inline-start: 1rem;
  font-size: 1.45em;
  font-weight: 600;
  line-height: 2.5em;
}

.tournament-leaderboards h2:before, .tournament-shields h2:before {
  color: var(--c-brag);
  font-size: 1.6em;
}

.tournament-leaderboards ol, .tournament-shields ol {
  border-top: 1px solid var(--c-border);
}

.tournament-leaderboards ol:empty, .tournament-shields ol:empty {
  display: none;
}

.tournament-leaderboards li, .tournament-shields li {
  padding-inline: .5rem 1.2rem;
  white-space: nowrap;
  justify-content: space-between;
  width: 100%;
  padding-top: .7rem;
  padding-bottom: .7rem;
  display: flex;
}

.tournament-leaderboards li:nth-child(2n), .tournament-shields li:nth-child(2n) {
  background: var(--c-bg-zebra);
}

.tournament-leaderboards section li, .tournament-shields section li {
  padding-inline: .5rem 1.2rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.tournament-shields section[class$="__item"] {
  overflow: visible;
}

.tournament-shields h2 {
  padding-inline-start: 92px;
  position: relative;
  overflow: visible;
}

@media (max-width: 799.29px) {
  .tournament-shields h2 {
    padding-inline-start: 82px;
  }
}

html:not([dir="rtl"]) .shield-trophy {
  left: 15px;
}

html[dir="rtl"] .shield-trophy {
  right: 15px;
}

.shield-trophy {
  text-align: center;
  letter-spacing: normal;
  color: #333;
  text-shadow: 0 0 6px #fff;
  width: 67px;
  height: 80px;
  filter: drop-shadow(0 0 10px var(--c-brag));
  background: url("../hashed/shield-gold.c4a4fd74.png") 0 0 / contain no-repeat;
  font-size: 40px;
  font-weight: normal;
  line-height: 76px;
  position: absolute;
  top: -12px;
  transform: scale(.85);
  font-family: lichess !important;
}

@media (max-width: 799.29px) {
  html:not([dir="rtl"]) .shield-trophy {
    left: 10px;
  }

  html[dir="rtl"] .shield-trophy {
    right: 10px;
  }

  .shield-trophy {
    top: -16px;
    transform: scale(.7);
  }
}

.tournament-categ-shields {
  font-size: 1.1em;
}

html:not([dir="rtl"]) .tournament-categ-shields .shield-trophy {
  left: calc(var(---box-padding) - 10px);
}

html[dir="rtl"] .tournament-categ-shields .shield-trophy {
  right: calc(var(---box-padding) - 10px);
}

.tournament-categ-shields .shield-trophy {
  transform: scale(.7);
}

.tournament-categ-shields li {
  height: 60px;
  padding: 0 var(---box-padding) 0 calc(var(---box-padding) + 70px);
  position: relative;
}

.tournament-categ-shields li:nth-child(odd) {
  background: var(--c-bg-zebra);
}
