/* The source ring remains visible around a centered circular crop. */
.skill-icon {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  vertical-align: middle;
  line-height: 1;
}
.skill-icon .skill-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}
.skill-icon .skill-image {
  position: absolute;
  left: 13.5%;
  top: 13.5%;
  width: 73%;
  height: 73%;
  margin: 0;
  border-radius: 50%;
  clip-path: circle(50%);
  object-fit: cover;
}
.skill-icon .skill-count {
  position: absolute;
  right: -5%;
  bottom: -5%;
  min-width: 1.15em;
  height: 1.15em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #192528;
  color: #fff5d7;
  border: 1px solid #e4bc70;
  font:
    800 13px/1 system-ui,
    sans-serif;
  box-shadow: 0 1px 3px #0007;
}
.ability:has(.skill-icon) {
  display: inline-flex;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 3px 0 0;
  vertical-align: middle;
}
.card-face .skill-icon {
  width: var(--frame-skill-size, 24cqw);
  height: var(--frame-skill-size, 24cqw);
}
.card-face .frame-skills .ability {
  flex: 0 0 auto;
  margin: 0;
}
.card-face .skill-count {
  font-size: 4.6cqw;
}
.skill .skill-icon {
  width: 38px;
  height: 38px;
}
.class-symbol .skill-icon {
  width: 60px;
  height: 60px;
}
.avatar .skill-icon {
  width: 100%;
  height: 100%;
}
@media (max-width: 580px) {
  .skill .skill-icon {
    width: 30px;
    height: 30px;
  }
}
