/* Reference league menu using the supplied lig.png background. */
.game-window.ranking-window {
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: 0 26px 80px rgb(0 0 0 / 78%) !important;
}

.ranking-window .window-titlebar {
  display: none !important;
}

.ranking-window .window-content {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

.ranking-reference-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  color: #f5eedf;
  background: url("assets/ranking/lig.png?v=1") center / 100% 100% no-repeat;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  text-shadow: 0 3px 5px rgb(0 0 0 / 76%);
}

.ranking-close-hit {
  width: 10.2%;
  height: 12.6%;
  position: absolute;
  top: 6.2%;
  right: 4.6%;
  z-index: 8;
  border: 0;
  border-radius: 22%;
  background: transparent;
  cursor: pointer;
}

.ranking-league-list {
  width: 46.2%;
  height: 37%;
  position: absolute;
  left: 10.9%;
  top: 37.2%;
  display: flex;
  flex-direction: column;
  gap: 1.7%;
}

.ranking-league-row {
  min-height: 0;
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 13.4% 12.2% minmax(0, 1fr) 17.5%;
  align-items: center;
  gap: 2.3%;
  padding: 0 4.2% 0 2.6%;
  border: 1px solid rgb(168 223 58 / 18%);
  border-radius: 4px;
  background: linear-gradient(90deg, rgb(1 18 5 / 28%), rgb(16 31 10 / 32%), rgb(1 18 5 / 18%));
  box-shadow: inset 0 -1px 0 rgb(200 244 78 / 12%);
}

.ranking-league-row.player {
  border-color: rgb(183 255 47 / 88%);
  border-radius: 20px;
  color: #bdff39;
  background:
    radial-gradient(circle at 20% 50%, rgb(160 255 30 / 22%), transparent 42%),
    linear-gradient(90deg, rgb(7 55 7 / 84%), rgb(16 64 11 / 72%), rgb(2 29 8 / 88%));
  box-shadow:
    0 0 24px rgb(150 255 28 / 62%),
    inset 0 0 20px rgb(178 255 42 / 30%);
}

.ranking-medal {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: center;
  color: #f6f0dd;
  font-size: 40px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.05em;
  border: 3px solid rgb(255 246 196 / 60%);
  background: linear-gradient(145deg, #3a3529, #12140d);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 28%), 0 5px 13px rgb(0 0 0 / 52%);
}

.ranking-medal.medal-1 {
  color: #151207;
  border-color: #ffe883;
  background: radial-gradient(circle at 30% 22%, #fff6af 0 12%, transparent 15%), linear-gradient(145deg, #ffd94f, #a66d0c 72%);
  box-shadow: 0 0 18px rgb(255 210 50 / 54%), inset 0 0 0 4px rgb(90 53 6 / 28%);
}

.ranking-medal.medal-2 {
  color: #222;
  border-color: #f8fbff;
  background: linear-gradient(145deg, #fbfff6, #9b9f98 72%);
}

.ranking-medal.medal-3 {
  color: #201208;
  border-color: #ffc66c;
  background: linear-gradient(145deg, #f0a33d, #704317 72%);
}

.ranking-badge {
  width: 64px;
  height: 68px;
  justify-self: center;
  clip-path: polygon(50% 0, 92% 24%, 84% 78%, 50% 100%, 16% 78%, 8% 24%);
  background:
    radial-gradient(circle at 50% 44%, rgb(224 255 151 / 18%) 0 23%, transparent 24%),
    linear-gradient(145deg, #2d7819, #0c2d0f);
  border: 3px solid rgb(173 255 72 / 66%);
  box-shadow: 0 0 14px rgb(118 232 43 / 38%), inset 0 0 0 4px rgb(0 0 0 / 24%);
}

.ranking-badge::before {
  content: "♻";
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #d8ff7a;
  font-size: 34px;
  line-height: 1;
}

.ranking-badge.badge-rival::before {
  content: "♜";
  font-size: 31px;
}

.ranking-league-row strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 35px;
  line-height: 1.05;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-league-row em {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #f9f2e5;
  font-size: 38px;
  line-height: 1;
  font-style: normal;
  font-weight: 1000;
}

.ranking-league-row.player em {
  color: #bdff39;
}

.ranking-league-row em i {
  width: 29px;
  height: 38px;
  display: inline-block;
  border-radius: 80% 0 80% 10%;
  background: linear-gradient(145deg, #99e957, #3d8e20);
  transform: rotate(28deg);
  box-shadow: 0 0 12px rgb(123 240 52 / 56%);
}

.ranking-reward-panel {
  width: 32.5%;
  height: 37%;
  position: absolute;
  left: 59.3%;
  top: 37.2%;
  padding: 1.8% 2.3%;
  box-sizing: border-box;
  overflow: hidden;
  color: #f4ead3;
}

.ranking-reward-art {
  height: 46%;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 1.5%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgb(116 255 26 / 26%) 0 22%, transparent 56%),
    radial-gradient(circle at 50% 90%, rgb(255 220 68 / 15%), transparent 52%);
}

.ranking-recycle-mark {
  color: #aaff31;
  font-size: 130px;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgb(156 255 42 / 72%));
}

.ranking-reward-art b {
  width: 70px;
  height: 62px;
  position: absolute;
  bottom: 8px;
  border-radius: 10px;
  background: linear-gradient(145deg, #5d441c, #23150a 74%);
  box-shadow: inset 0 0 0 4px rgb(193 145 42 / 38%), 0 0 18px rgb(167 255 40 / 22%);
}

.ranking-reward-art b::before {
  content: "";
  width: 26px;
  height: 26px;
  position: absolute;
  left: 50%;
  top: 50%;
  border: 3px solid #95e53f;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ranking-reward-art b:nth-of-type(1) {
  left: 22px;
}

.ranking-reward-art b:nth-of-type(2) {
  right: 22px;
}

.ranking-reward-art b:nth-of-type(3) {
  width: 54px;
  height: 48px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #ffe36c, #a46d0b 74%);
}

.ranking-reward-panel p,
.ranking-reward-panel strong {
  margin: 0 0 10px;
  display: block;
  font-size: 27px;
  line-height: 1.17;
  font-weight: 760;
}

.ranking-reward-panel strong {
  color: #baff35;
}

.ranking-reward-panel ul {
  max-height: 70px;
  margin: 14px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  color: #d9f0a2;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.ranking-reward-panel li {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
