.ranking-character {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  min-width: 0;
}

/* portrait sits INSIDE its gold frame (never over the border) */
.ranking-character .rk-portrait {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 2px;
  border: 1px solid #c9a35c;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 30%, #2a1e12, #0d0a07);
  box-shadow: inset 0 0 0 1px #0b0907, 0 0 0 1px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.ranking-character .rk-portrait::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 17px/1 'Cinzel', Georgia, serif;
  color: #c9a35c;
}
.ranking-character .ranking-portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border: 0;
  border-radius: 4px;
  background: #22180d;
}
.ranking-character .rk-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 232, 170, .18);
  pointer-events: none;
}
.ranking-character .rk-name { min-width: 0; overflow-wrap: anywhere; }

.ranking-character-title {
  max-width: 60px;
  max-height: 22px;
  object-fit: contain;
}

.ranking-character img[hidden] { display: none; }
