.cfgr-panel {
  position: relative;
  min-height: 382px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(199, 154, 59, .18), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.cfgr-panel::after {
  content: "";
  position: absolute;
  inset: auto -62px -76px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 32px solid rgba(22, 79, 138, .045);
  pointer-events: none;
}

.cfgr-panel__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cfgr-panel__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #ad7c1e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cfgr-panel__header h2 {
  margin: 0;
  color: #164f8a;
  font-size: 21px;
  line-height: 1.15;
}

.cfgr-panel__piece {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #164f8a;
  color: #fff;
  font-size: 23px;
  box-shadow: 0 8px 18px rgba(22, 79, 138, .18);
}

.cfgr-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid #dbe4ed;
  border-radius: 11px;
  background: #eef3f7;
}

.cfgr-tab {
  min-width: 0;
  padding: 7px 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526273;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  cursor: pointer;
}

.cfgr-tab:hover,
.cfgr-tab:focus-visible {
  color: #164f8a;
  outline: none;
}

.cfgr-tab.is-active {
  background: #fff;
  color: #164f8a;
  box-shadow: 0 2px 8px rgba(31, 55, 80, .10);
}

.cfgr-ranking {
  position: relative;
  z-index: 1;
  min-height: 234px;
}

.cfgr-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cfgr-player {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  padding: 6px 9px 6px 7px;
  border: 1px solid #e3e9ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.cfgr-player:hover {
  transform: translateY(-1px);
  border-color: #bfd1e3;
  box-shadow: 0 5px 15px rgba(31, 55, 80, .07);
}

.cfgr-player__rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #edf4fa;
  color: #164f8a;
  font-size: 11px;
  font-weight: 900;
}

.cfgr-player:first-child .cfgr-player__rank {
  background: #f6ead0;
  color: #8a6116;
}

.cfgr-player__identity {
  min-width: 0;
}

.cfgr-player__identity > a {
  display: block;
  overflow: hidden;
  color: #1c2d3d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfgr-player__identity > a:hover,
.cfgr-player__identity > a:focus {
  color: #164f8a;
}

.cfgr-player__identity small {
  display: flex;
  gap: 6px;
  margin-top: 2px;
  color: #7a8794;
  font-size: 9px;
  line-height: 1.2;
}

.cfgr-player__title {
  color: #ad7c1e;
  font-weight: 900;
}

.cfgr-player__rating {
  margin-left: 8px;
  color: #164f8a;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.cfgr-panel__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e1e7ed;
  font-size: 9.5px;
}

.cfgr-panel__source {
  color: #758391;
}

.cfgr-panel__footer > a {
  flex: 0 0 auto;
  color: #164f8a;
  font-weight: 850;
  text-decoration: none;
}

.cfgr-empty {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 22px;
  border: 1px dashed #cbd7e2;
  border-radius: 12px;
  color: #536575;
  text-align: center;
}

.cfgr-empty strong {
  margin-top: 8px;
  color: #164f8a;
  font-size: 13px;
}

.cfgr-empty small {
  max-width: 250px;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.45;
}

.cfgr-empty__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dbe5ee;
  border-top-color: #164f8a;
  border-radius: 50%;
  animation: cfgr-spin .9s linear infinite;
}

@keyframes cfgr-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1060px) {
  .cfgr-panel {
    min-height: 400px;
  }

  .cfgr-ranking {
    min-height: 250px;
  }
}

@media (max-width: 700px) {
  .cfgr-panel {
    min-height: 378px;
    padding: 15px;
  }

  .cfgr-panel__header h2 {
    font-size: 19px;
  }

  .cfgr-tab {
    font-size: 9px;
  }

  .cfgr-player__identity > a {
    font-size: 11.5px;
  }
}
