/* 2026-11-13 排行榜前三头像框：033=第1，037=第2，035=第3 */
.agh-rank-av-wrap {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  /* 外层保持原头像尺寸；框绝对溢出，不参与行高，避免有框/无框错位。 */
  width: var(--agh-rank-av-size, 32px);
  height: var(--agh-rank-av-size, 32px);
}

.agh-rank-av-wrap > .rank-av {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.agh-rank-av-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: 160%;
  transform: translate(-50%, -50%);
  /* 框必须在头像上一层；头像在上层会把框的边缘/徽章压掉。 */
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 1px 3px rgba(190, 120, 10, .2));
}
