.pin[data-rank] svg { display: none; }
.pin[data-rank]::before,
.card-profile[data-rank]::before { content: attr(data-rank); }

.pin[data-rank] {
  background: white;
  color: var(--deep);
  border: 2px solid var(--inspire);
  box-shadow: 0 0 0 2px white, 0 2px 7px #10243d50;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
}
.pin[data-rank="1"] {
  background: var(--inspire);
  color: white;
  border-color: white;
}
.pin[data-rank].is-selected {
  box-shadow: 0 0 0 2px var(--navy), 0 2px 7px #10243d50;
}
.pin[data-rank]:hover,
.pin[data-rank]:focus-visible { border-color: var(--navy); }

.card-profile[data-rank] { position: relative; }
.card-profile[data-rank]::before {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  box-sizing: border-box;
  border: 2px solid var(--inspire);
  border-radius: 50%;
  background: white;
  color: var(--deep);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px white, 0 2px 6px #17372044;
  pointer-events: none;
}
.card-profile[data-rank="1"]::before { background: var(--inspire); color: white; }
