/* Crest (club colours + initials) and LeagueLogo */
.crest {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--crest);
  height: var(--crest);
  color: var(--team-ink);
  vertical-align: middle;
}
.crest--disc {
  border-radius: 50%;
  background:
    radial-gradient(120% 90% at 30% 15%, rgb(255 255 255 / 0.3), transparent 50%),
    radial-gradient(100% 100% at 50% 120%, rgb(0 0 0 / 0.3), transparent 60%), var(--team);
  box-shadow:
    inset 0 0 0 calc(var(--crest) * 0.07) var(--team-2),
    0 0 0 1px rgb(0 0 0 / 0.35),
    0 2px 6px rgb(0 0 0 / 0.45);
}
.crest--shield {
  height: calc(var(--crest) * 1.15);
}
.crest--shield svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.5));
}
.crest__shield {
  fill: var(--team);
  stroke: var(--team-2);
  stroke-width: 2.5;
}
.crest__band {
  fill: var(--team-2);
  opacity: 0.22;
}
.crest__text {
  position: relative;
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  font-size: calc(var(--crest) * 0.38);
  line-height: 1;
  letter-spacing: 0.02em;
}
.crest__text[data-len='1'] {
  font-size: calc(var(--crest) * 0.5);
}
.crest__text[data-len='3'] {
  font-size: calc(var(--crest) * 0.32);
}
.crest--shield .crest__text {
  margin-top: -6%;
}

.league-logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--logo);
  height: var(--logo);
  padding: calc(var(--logo) * 0.1);
  border-radius: calc(var(--logo) * 0.24);
  background: linear-gradient(180deg, #ffffff, #e6ebf3);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.25),
    0 2px 6px rgb(0 0 0 / 0.4);
  vertical-align: middle;
}
.league-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.league-logo--fallback {
  background: linear-gradient(160deg, var(--ink-300), var(--ink-500));
}
.league-logo__initials {
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  font-size: calc(var(--logo) * 0.34);
  color: var(--text-1);
}
.league-logo__tier {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 5px;
  background: var(--ink-800);
  border: 1px solid var(--line-3);
  color: var(--volt-300);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-heavy);
  line-height: 1;
}
