/* Player faces (assets/faces.js). Size and colors come from the inline custom properties. */
.ds-face {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--face-size, 32px);
  height: var(--face-size, 32px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--face-bg, #33415c);
  color: var(--face-ink, #fff);
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.ds-face-ini {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 calc(var(--face-size, 32px) * .38)/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .02em;
}
.ds-face.has-face { background: #e9edf3; }
.ds-face.has-face .ds-face-ini { visibility: hidden; }
.ds-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ESPN photos are wide head-and-shoulders shots: zoom in on the face (MLB's are already cropped on it) */
.ds-face.espn img { object-position: 50% 0; transform: scale(1.45); transform-origin: 50% 18%; }
.ds-face.square { border-radius: 8px; }
