/* NEW (MapleBeginsUserListWeb-v3, 2026-10-31): ranking rows with the character standing sprite (normal page and ?inapp=1). Our own styling in the
   existing site shell. The sprite PNG (receiver avatar_renderer, ranking/avatars/<sha256>.png) is shown at its native pixel size (no scaling,
   image-rendering:pixelated), bottom-aligned in a fixed 150x150 box so every row has the same height (RankingLook-v1 r11: the receiver lays every character on a 150x150 canvas at scale 1, never reduced,
   soles on canvas row 135, so the shadow sits 10 px above the box bottom; the box is as wide as the canvas, so a long weapon never reaches the rank badge or the name: the name starts after the box). No PNG / not rendered yet = a neutral silhouette
   of the same box (never a stand-in character). Rank 1-3 get a medal badge, rank 1 a light row highlight. */
.ranking-page .rank-table td{vertical-align:middle}
.ranking-page .rank-table .rank-character{display:flex;align-items:center;gap:14px;min-height:0}
.ranking-page .rank-table .character-portrait{display:flex;align-items:flex-end;justify-content:center;width:150px;height:96px;flex:0 0 150px;overflow:visible;position:relative}
.ranking-page .rank-table .character-portrait img{display:block;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;
  object-fit:none;image-rendering:pixelated;image-rendering:crisp-edges;position:relative;z-index:1}
.ranking-page .rank-table .character-portrait::after{content:'';position:absolute;left:50%;bottom:10px;width:56px;height:7px;margin-left:-28px;border-radius:50%;
  background:radial-gradient(ellipse,rgba(80,96,72,.22),transparent 70%);z-index:0}
.ranking-page .rank-table .portrait-empty{display:flex;align-items:flex-end;justify-content:center;width:150px;height:96px;background:none;border-radius:0;color:#cfd6c6}
.ranking-page .rank-table .portrait-empty svg{width:40px;height:66px;fill:currentColor}
.ranking-page .rank-table .has-image .portrait-empty{display:none}
.ranking-page .rank-table .rank-badge{display:inline-grid;place-items:center;min-width:32px;height:32px;padding:0 6px;border-radius:16px;font-weight:800;font-size:14px;color:#56624c;box-sizing:border-box}
.ranking-page .rank-table .rank-medal-1{background:linear-gradient(#ffe48a,#e9b52c);color:#5b3d00;box-shadow:inset 0 -2px 0 #c8901a}
.ranking-page .rank-table .rank-medal-2{background:linear-gradient(#f1f3f5,#c4cad2);color:#3d4652;box-shadow:inset 0 -2px 0 #9ea6b1}
.ranking-page .rank-table .rank-medal-3{background:linear-gradient(#f5cfa6,#d4935a);color:#4d2a0c;box-shadow:inset 0 -2px 0 #b07038}
.ranking-page .rank-table tbody tr.rank-first td{background:#fff3cc!important}
@media (max-width:760px){.ranking-page .rank-table .character-portrait,.ranking-page .rank-table .portrait-empty{width:150px;height:96px;flex-basis:150px}
  .ranking-page .rank-table .rank-character{gap:8px}}
