/* HELL-MU V15.12 — high resolution podium/table medals and subdued Account Level icons.
   Scope: home TOP Players/Guilds + /rankings. No table width, data or layout changes. */

/* The source files are 640px transparent WebPs, rendered sharp at compact sizes. */
body.hell-theme #hell-live-rank-panel table.hell-v153-home-rank img.hell-v153-medal,
body.hell-theme #hell-live-rank-panel table.hell-v155-home-guild-rank img.hell-v153-medal {
  width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;
  object-fit:contain!important;vertical-align:middle!important;
  image-rendering:auto!important;filter:none!important;
}
body.hell-theme #hell-live-rank-panel .hell-v153-positionline {align-items:center!important;gap:3px!important;}

/* Entire ranking: 1-3 medals for players and guilds. Places 4+ keep standard numbers. */
body.hell-theme .hell-rankings-page table.hell-v153-full-rank img.hell-v153-medal,
body.hell-v154-rankings .hell-rankings-page table.hell-v153-full-rank img.hell-v153-medal {
  width:39px!important;height:39px!important;min-width:39px!important;max-width:39px!important;
  object-fit:contain!important;image-rendering:auto!important;filter:none!important;
}
body.hell-theme .hell-rankings-page table.hell-v155-full-guild img.hell-v155-rank-medal,
body.hell-v154-rankings .hell-rankings-page table.hell-v155-full-guild img.hell-v155-rank-medal {
  width:41px!important;height:41px!important;min-width:41px!important;max-width:41px!important;
  object-fit:contain!important;image-rendering:auto!important;filter:none!important;
}
/* Existing main podium cards are untouched; only their rank medallion art changes. */
body.hell-v154-rankings .hell-rankings-page .hell-v154-card img.hell-v154-rank-medal {object-fit:contain!important;image-rendering:auto!important;filter:none!important;}

/* VIP badges: keep Free / Bronze / Silver / Gold informational, not dominant. */
body.hell-theme .hell-rankings-page .hell-v15-accountcell .hell-v15-accounttag {
  gap:4px!important;opacity:.88!important;font-size:10px!important;
  padding:3px 6px!important;line-height:1.25!important;
  min-width:70px!important;box-shadow:none!important;
}
body.hell-theme .hell-rankings-page .hell-v15-accountcell .hell-v15-accounttag::before {
  content:""!important;display:inline-block!important;
  flex:0 0 14px!important;width:14px!important;height:14px!important;
  background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;
  font-size:0!important;opacity:.9!important;
}
body.hell-theme .hell-rankings-page .hell-v15-accounttag.level-free::before {background-image:url('../images/hell-v1512-vip-free.svg')!important;}
body.hell-theme .hell-rankings-page .hell-v15-accounttag.level-bronze::before {background-image:url('../images/hell-v1512-vip-bronze.svg')!important;}
body.hell-theme .hell-rankings-page .hell-v15-accounttag.level-silver::before {background-image:url('../images/hell-v1512-vip-silver.svg')!important;}
body.hell-theme .hell-rankings-page .hell-v15-accounttag.level-gold::before {background-image:url('../images/hell-v1512-vip-gold.svg')!important;}
body.hell-theme .hell-rankings-page .hell-v15-accounttag.level-unknown {opacity:.55!important;min-width:36px!important;}
body.hell-theme .hell-rankings-page .hell-v15-accounttag.level-unknown::before {content:none!important;display:none!important;}

@media(max-width:760px) {
  body.hell-theme #hell-live-rank-panel table.hell-v153-home-rank img.hell-v153-medal,
  body.hell-theme #hell-live-rank-panel table.hell-v155-home-guild-rank img.hell-v153-medal {
    width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;
  }
  body.hell-theme .hell-rankings-page table.hell-v153-full-rank img.hell-v153-medal {
    width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;
  }
  body.hell-theme .hell-rankings-page table.hell-v155-full-guild img.hell-v155-rank-medal {
    width:33px!important;height:33px!important;min-width:33px!important;max-width:33px!important;
  }
}

/* If an older cached homepage guild template is still served, replace legacy medal art as well. */
body.hell-theme #hell-live-rank-panel table.sidebar_rank:not(:has(img.hell-v153-medal)):has(tr:first-child > th:nth-child(3):last-child) tr:nth-child(2) > td:first-child::before {
  background-image:url('../images/hell-v1512-medal-1.webp')!important;
}
body.hell-theme #hell-live-rank-panel table.sidebar_rank:not(:has(img.hell-v153-medal)):has(tr:first-child > th:nth-child(3):last-child) tr:nth-child(3) > td:first-child::before {
  background-image:url('../images/hell-v1512-medal-2.webp')!important;
}
body.hell-theme #hell-live-rank-panel table.sidebar_rank:not(:has(img.hell-v153-medal)):has(tr:first-child > th:nth-child(3):last-child) tr:nth-child(4) > td:first-child::before {
  background-image:url('../images/hell-v1512-medal-3.webp')!important;
}
