/* Original shield artwork stays crisp in the existing 18–112px mark boxes.
 * No initials, font sizing or extra image request is needed for the fallback. */
.team-mark > .team-mark-default {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  stroke: none;
}
.team-mark:has(> .team-mark-default):not(:has(> img)) {
  background: transparent !important;
}

/* A real crest retains its original geometry and transparent pixels. The
 * fallback is hidden until the existing media error handler removes a bad img. */
.team-mark > img ~ .team-mark-default {
  display: none;
}
.team-mark:has(> img),
.team-mark > img {
  background: transparent !important;
}
.team-mark:has(> img) {
  color: transparent !important;
}
.player-card .card-team-crest:has(.team-mark > img) {
  background: transparent;
  box-shadow: none;
}
