/* Unic Mu v3: corrigir proporcoes e restaurar rankings na home. */
:root{--purple:#ba6e11;--purple2:#7d470a;--red:#c97c16}
html,body{margin:0!important;background:#050505!important;color:#ddd!important}
.bw-masthead{box-sizing:border-box!important;width:min(1000px,calc(100% - 24px))!important;max-width:1000px!important;height:245px!important;margin:12px auto 0!important;background:linear-gradient(90deg,rgba(0,0,0,.04),rgba(0,0,0,.42)),url('classic-hero.jpg') center center/cover no-repeat!important}
.bw-masthead-inner{height:100%!important;width:100%!important;max-width:none!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;padding:20px 48px!important}
.bw-masthead-brand{display:block!important;width:275px!important;max-width:40%!important;flex:none!important}
.bw-masthead-brand img{display:block!important;width:100%!important;height:auto!important;max-height:110px!important;object-fit:contain!important}
.bw-nav-shell{box-sizing:border-box!important;width:min(1000px,calc(100% - 24px))!important;max-width:1000px!important;margin:0 auto!important}
.bw-nav-wrap{width:100%!important;max-width:none!important;min-height:42px!important;display:flex!important;flex-wrap:nowrap!important;gap:0!important;padding:0 6px!important}
.black-navigation{display:flex!important;flex-wrap:nowrap!important;min-width:0!important;flex:1 1 auto!important}
.black-navigation a{white-space:nowrap!important;flex:0 0 auto!important;padding:14px 12px!important;font:700 10px Tahoma,Arial,sans-serif!important}
.black-header-actions{flex:0 0 auto!important;display:flex!important;gap:5px!important}
.black-header-actions a,.bw-user-trigger{white-space:nowrap!important;font:700 10px Tahoma,Arial,sans-serif!important;padding:8px 9px!important}
.wrap.columns{box-sizing:border-box!important;width:min(1000px,calc(100% - 24px))!important;max-width:1000px!important;grid-template-columns:minmax(0,1fr) 290px!important;gap:12px!important;padding:10px!important;margin:0 auto!important}
.main-content{min-width:0!important;grid-column:1!important;grid-row:1!important}
.sidebar-right.classic-side{min-width:0!important;grid-column:2!important;grid-row:1!important}
.slider{height:260px!important;margin-bottom:12px!important}
.home-rankings{margin-bottom:12px!important}
.home-rankings-all{float:right;color:#ddd!important;text-decoration:none;font:700 10px Tahoma,Arial,sans-serif}
.home-rank-tabs{display:flex;flex-wrap:wrap;gap:5px;padding:9px;background:#0b0b0b}
.home-rank-tabs a{padding:6px 10px;border:1px solid #393939;color:#ddd;text-decoration:none;font:11px Tahoma,Arial,sans-serif}
.home-rank-tabs a.active,.home-rank-tabs a:hover{border-color:#ad6714;background:#945610;color:#fff!important}
.home-rank-empty{padding:12px!important;font-size:11px}
.rank-cards{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;padding:8px!important}
.rank-card{min-width:0!important;overflow:hidden!important}
.rank-card-avatar{width:100%!important;max-width:100%!important;aspect-ratio:1/1!important;overflow:hidden!important;border-radius:0!important;background:#111!important}
.rank-card-avatar img,.char-card-avatar img,.character-portrait img,.bw-detail-portrait img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important}
.rank-card-avatar img.s7ven-default-photo,.char-card-avatar img.s7ven-default-photo,.character-portrait img.s7ven-default-photo,.bw-detail-portrait img.s7ven-default-photo{object-fit:contain!important;background:#130e09!important;padding:9px!important}
.rank-card-name,.rank-card-sub{overflow-wrap:anywhere!important}
@media(max-width:800px){.bw-masthead{height:190px!important}.bw-nav-wrap{flex-wrap:wrap!important;gap:4px!important;padding:5px!important}.black-navigation{flex:1 1 100%!important;justify-content:center!important}.black-navigation a{padding:10px!important}.black-header-actions{margin:auto!important}.wrap.columns{grid-template-columns:minmax(0,1fr)!important}.sidebar-right.classic-side{grid-column:1!important;grid-row:2!important}.main-content{grid-column:1!important;grid-row:1!important}}
@media(max-width:560px){.bw-masthead{height:155px!important;width:100%!important;margin:0!important}.bw-masthead-inner{padding:15px!important}.bw-masthead-brand{max-width:50%!important}.bw-nav-shell,.wrap.columns{width:100%!important}.black-navigation{display:none!important;flex-direction:column!important;align-items:stretch!important}.black-navigation.is-open{display:flex!important}.black-navigation a{width:100%!important}.rank-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.slider{height:195px!important}}


/* V4: imagens de personagens, perfis e ranking sem distorção */
.rank-card-avatar,.char-card-avatar,.bw-account-char-avatar,.bw-detail-portrait,.character-portrait,.king-avatar {overflow:hidden!important;aspect-ratio:1/1!important;min-height:0!important;flex-shrink:0!important;border-radius:2px!important;}
.rank-card-avatar img,.char-card-avatar img,.bw-account-char-avatar img,.bw-detail-portrait img,.character-portrait img,.king-avatar img {display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;aspect-ratio:1/1!important;object-fit:cover!important;object-position:center!important;border-radius:0!important;box-sizing:border-box!important;}
.rank-card-avatar img.s7ven-default-photo,.char-card-avatar img.s7ven-default-photo,.bw-account-char-avatar img.s7ven-default-photo,.bw-detail-portrait img.s7ven-default-photo,.character-portrait img.s7ven-default-photo,.king-avatar img.s7ven-default-photo {object-fit:contain!important;object-position:center!important;background:#16120e!important;padding:10%!important;}
.character-portrait{width:100px!important;height:100px!important;margin-top:-35px!important;border:3px solid #333!important;box-shadow:none!important;}
.character-portrait>*{width:100%!important;height:100%!important;border-radius:0!important;}
.bw-detail-portrait{width:190px!important;height:190px!important;max-width:100%!important;padding:0!important;}
.bw-detail-portrait img{width:100%!important;height:100%!important;}
.bw-account-char-avatar{width:80px!important;height:80px!important;}
.char-card-avatar{width:90px!important;height:90px!important;}
.char-profile-editor,.char-tools-visible{display:block!important;margin:12px 0!important;padding:12px!important;border:1px solid #383838!important;background:#131313!important;border-radius:2px!important;}
.char-profile-editor h3,.char-tools-visible h3{font-size:12px!important;text-transform:uppercase;color:#f2f2f2!important;margin:0 0 12px!important;}
.char-profile-editor .profile-edit{display:grid!important;margin:0!important;}
.char-tools-visible .char-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
.char-tools-visible .char-actions form{margin:0!important;}
@media(max-width:600px){.character-portrait{width:76px!important;height:76px!important}.bw-detail-portrait{width:150px!important;height:150px!important}}
