/* Moscow card geometry is shared by the player profile and the scorer race. */
.profile-card.mos-portrait {
  container-type: inline-size;
}
.profile-card.mos-portrait .card-head {
  padding: 4% 4% 0;
}
.profile-card.mos-portrait .card-head > div:first-child {
  max-width: 75%;
  overflow: hidden;
}
.profile-card.mos-portrait .card-head b {
  font-size: clamp(10px, 3.5cqw, 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-card.mos-portrait .league-logo {
  width: clamp(26px, 10cqw, 44px);
  height: clamp(32px, 12cqw, 52px);
}
.profile-card.mos-portrait .overall-panel {
  z-index: 21;
  top: 13%;
  left: 4%;
  width: 30%;
}
.profile-card.mos-portrait .overall-number-box {
  padding: 7% 10% 5%;
  border: 0;
  border-top: 2px solid var(--accent);
  background: linear-gradient(118deg, #121725 0%, #0a0d17 76%, var(--accent) 170%);
  clip-path: polygon(0 0, 100% 0, 100% 73%, 85% 100%, 0 100%);
  box-shadow: inset 1px 0 0 var(--edge);
}
.profile-card.mos-portrait .overall-number {
  font-size: clamp(34px, 16cqw, 70px);
  line-height: .88;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px var(--glow);
}
.profile-card.mos-portrait .overall-label {
  margin-top: 4px;
  font-size: clamp(7px, 2.2cqw, 11px);
  letter-spacing: .13em;
}
.profile-card.mos-portrait .overall-tier {
  margin-top: 3px;
  padding: 4px 2px;
  border-color: var(--edge);
  font-size: clamp(7px, 2.75cqw, 13px);
  letter-spacing: .055em;
}
.profile-card.mos-portrait .overall-stars {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  font-size: clamp(8px, 2.5cqw, 12px);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.profile-card.mos-portrait .photo-stage {
  inset: 0;
  transform: none;
  pointer-events: none;
}
.profile-card.mos-portrait .photo-stage::before {
  left: 62%;
  top: 14%;
  width: 68%;
  height: 53%;
  opacity: .65;
}
.profile-card.mos-portrait .photo-stage::after {
  background: linear-gradient(180deg, transparent 59%, #080b128a 74%, #080b12ed 86%);
}
.profile-card.mos-portrait .photo-stage .player-photo,
.profile-card.mos-portrait:hover .photo-stage .player-photo {
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center top;
  transform: none;
  filter: drop-shadow(0 9px 13px #0008);
}
.profile-card.mos-portrait .photo-stage.is-source-photo {
  inset: 13% 4% 21% 36%;
}
.profile-card.mos-portrait .photo-stage.is-source-photo::before,
.profile-card.mos-portrait .photo-stage.is-source-photo::after {
  display: none;
}
.profile-card.mos-portrait .photo-stage.is-source-photo .player-photo {
  object-position: center 18%;
}
.profile-card.mos-portrait .attrs {
  left: 4%;
  right: auto;
  top: 47%;
  width: 34%;
  padding: 5px 6px;
  background: linear-gradient(150deg,#09111ceb,#0a1019d9);
}
.profile-card.mos-portrait .attrs h4 {
  font-size: clamp(7px, 2.3cqw, 11px);
  margin-bottom: 5px;
}
.profile-card.mos-portrait .attr-row { margin-bottom: 4px; }
.profile-card.mos-portrait .attr-head { font-size: clamp(5px, 1.6cqw, 8px); }
.profile-card.mos-portrait .attr-head b { font-size: clamp(6px, 2cqw, 10px); }
.profile-card.mos-portrait .nameplate {
  left: 5%;
  right: 5%;
  bottom: 16%;
}
.profile-card.mos-portrait .surname { font-size: clamp(17px, 7.1cqw, 36px); }
.profile-card.mos-portrait .firstname { font-size: clamp(13px, 4.5cqw, 22px); }
.profile-card.mos-portrait .nameplate small { margin-top: 4px; }
@container (max-width: 280px) {
  .profile-card.mos-portrait .attr-row { margin-bottom: 2px; }
  .profile-card.mos-portrait .attrs h4 { margin-bottom: 2px; }
}
.profile-card.mos-portrait .sparkle { z-index: 3; }
