/* L2Feel - Rankings PvP / Quake v1.9
   Página orientada a ranking: tabela principal primeiro, Hall da Fama e atividade como apoio. */
.rank-quake-content{display:grid;gap:20px}
.rank-quake-content .rank-kicker{font-size:12px!important;letter-spacing:.11em!important}
.rank-quake-content .rank-table-head h2,.rank-quake-block-head h2{font-size:22px!important;line-height:1.15;margin-top:3px}
.rank-quake-section-desc,.rank-quake-block-head>p{margin:5px 0 0;color:var(--rk-muted,#aaa095);font-size:13px;line-height:1.45}
.rank-quake-main-ranking{border-color:var(--rk-line,rgba(194,154,91,.32))}
.rank-quake-main-head{align-items:center}
.rank-quake-main-head .rank-table-count{font-size:12px!important;padding:7px 10px}
.rank-quake-main-table{min-width:880px!important}
.rank-quake-main-table th{font-size:11px!important;letter-spacing:.06em!important;padding:11px 12px!important}
.rank-quake-main-table td{font-size:14px!important;padding:12px!important;vertical-align:middle}
.rank-quake-main-table .rank-position-badge{font-size:12px!important;min-width:35px}
.rank-quake-main-table .rank-row-top .rank-position-badge{font-weight:900}
.rank-quake-main-table .rank-quake-primary-score strong{font-size:18px;color:var(--rk-gold-hi,#d5a665)}

.rank-quake-block{border:1px solid var(--rk-line-soft,rgba(194,154,91,.20));background:var(--rk-block-bg,rgba(12,10,9,.22));padding:14px}
.rank-quake-block-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:12px}
.rank-quake-block-head>div{min-width:0}
.rank-quake-block-head>p{max-width:430px;text-align:right}
.rank-quake-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rank-quake-record-card{min-width:0;border:1px solid var(--rk-line,rgba(194,154,91,.28));background:var(--rk-panel,rgba(15,13,11,.72));overflow:hidden}
.rank-quake-record-card>header{min-height:42px;padding:10px 13px;border-bottom:1px solid var(--rk-line-soft,rgba(194,154,91,.14));display:flex;align-items:center;gap:8px;color:var(--rk-muted-2,#8e8276);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.rank-quake-record-card>header i{color:var(--rk-gold,#c29a5b);font-size:12px}
.rank-quake-record-body{min-height:88px;padding:13px;display:flex;align-items:center;gap:12px}
.rank-quake-player{min-width:0;display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.rank-quake-player:hover .rank-quake-player-copy b{color:var(--rk-gold-hi,#d5a665)}
.rank-quake-avatar{width:40px;height:40px;flex:0 0 40px;border:1px solid var(--rk-line,rgba(194,154,91,.34));border-radius:50%;overflow:hidden;background:rgba(194,154,91,.08);display:grid;place-items:center;color:var(--rk-gold,#c29a5b);font-size:14px;font-weight:800}
.rank-quake-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.rank-quake-player-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.rank-quake-player-copy b{color:var(--rk-text,#e6dfd7);font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:color .15s ease}
.rank-quake-player-copy small{color:var(--rk-muted-2,#8e8276);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-quake-record-score{margin-left:auto;min-width:0;text-align:right;display:flex;flex-direction:column;gap:4px}
.rank-quake-record-score strong{color:var(--rk-gold-hi,#d5a665);font-size:28px;line-height:1}
.rank-quake-record-score span{max-width:190px;color:var(--rk-muted,#aaa095);font-size:11px;line-height:1.3;white-space:normal}
.rank-quake-empty,.rank-quake-loading{color:var(--rk-muted,#aaa095);font-size:12px}
.rank-quake-milestones{min-height:88px;padding:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:center}
.rank-quake-milestones>div{min-width:0;padding:10px 6px;border-left:1px solid var(--rk-line-soft,rgba(194,154,91,.14));text-align:center}
.rank-quake-milestones>div:first-child{border-left:0}
.rank-quake-milestones strong{display:block;color:var(--rk-gold-hi,#d5a665);font-size:25px;line-height:1}
.rank-quake-milestones span{display:block;margin-top:7px;color:var(--rk-muted-2,#8e8276);font-size:10px;line-height:1.25;letter-spacing:.05em;text-transform:uppercase}

.rank-quake-activity-block{padding-bottom:14px}
.rank-quake-live-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.rank-quake-live-card{min-width:0;padding:13px 14px;border:1px solid var(--rk-line,rgba(194,154,91,.28));background:var(--rk-panel,rgba(15,13,11,.72));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;align-items:end}
.rank-quake-live-card>span{grid-column:1/-1;color:var(--rk-muted-2,#8e8276);font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-quake-live-card>strong{color:var(--rk-gold-hi,#d5a665);font-size:27px;line-height:1;font-family:Georgia,"Times New Roman",serif}
.rank-quake-live-card>small{color:var(--rk-muted,#aaa095);font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.rank-quake-live-card--region>strong{font-family:inherit;font-size:16px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-quake-live-card--region>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.rank-quake-table{min-width:840px!important}
.rank-quake-table th,.rank-quake-table td{white-space:nowrap}
.rank-quake-latest-table th{font-size:11px!important;padding:11px 12px!important}
.rank-quake-latest-table td{font-size:13px!important;padding:11px 12px!important}
.rank-quake-player-cell{display:flex;align-items:center;gap:10px}
.rank-quake-player-cell>a{color:var(--rk-text,#e6dfd7);font-size:14px;font-weight:700;text-decoration:none}
.rank-quake-player-cell>a:hover{color:var(--rk-gold-hi,#d5a665)}
.rank-quake-player-cell .rank-quake-avatar{width:36px;height:36px;flex-basis:36px}
.rank-quake-player--compact .rank-quake-avatar{width:34px;height:34px;flex-basis:34px}
.rank-quake-player--compact .rank-quake-player-copy b{font-size:13px}
.rank-quake-player--compact .rank-quake-player-copy small{font-size:10px}
.rank-quake-table td strong{color:var(--rk-gold-hi,#d5a665)}
.rank-quake-stage{display:inline-flex;align-items:center;gap:6px;color:var(--rk-gold-hi,#d5a665);font-size:13px;font-weight:700}
.rank-quake-stage i{font-size:11px}
.rank-quake-loading-cell{height:74px!important;text-align:center!important;color:var(--rk-muted,#aaa095)!important;font-size:13px!important}
.rank-quake-content.is-refreshing{opacity:.985}

html[data-l2-theme="light"] .rank-quake-live-card,
html[data-l2-theme="light"] .rank-quake-record-card{background:rgba(255,250,242,.70)}
html[data-l2-theme="light"] .rank-quake-block{background:rgba(255,250,242,.32)}
html[data-l2-theme="light"] .rank-quake-player-copy b,
html[data-l2-theme="light"] .rank-quake-player-cell>a{color:#4b3828}
html[data-l2-theme="light"] .rank-quake-player-copy small,
html[data-l2-theme="light"] .rank-quake-empty,
html[data-l2-theme="light"] .rank-quake-loading,
html[data-l2-theme="light"] .rank-quake-section-desc,
html[data-l2-theme="light"] .rank-quake-block-head>p{color:#725f4e}

/* Legacy: tipografia ampliada sem perder o desenho nativo dos rankings. */
.l2u-autal-native-rankings .rank-quake-content{margin-top:14px}
.l2u-autal-native-rankings .rank-quake-block{background:rgba(255,255,255,.018)}
.l2u-autal-native-rankings .rank-quake-live-card,
.l2u-autal-native-rankings .rank-quake-record-card{background:rgba(255,255,255,.03)}
.l2u-autal-native-rankings .rank-quake-table{width:100%;border-collapse:collapse}
.l2u-autal-native-rankings .rank-quake-table td{padding:11px 12px;border-bottom:1px solid rgba(120,90,55,.18);font-size:13px}
.l2u-autal-native-rankings .rank-quake-table th{padding:10px 12px;font-size:11px}

@media (max-width:980px){
  .rank-quake-records{grid-template-columns:1fr 1fr}
  .rank-quake-record-card--milestones{grid-column:1/-1}
  .rank-quake-live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rank-quake-block-head{align-items:flex-start;flex-direction:column;gap:4px}
  .rank-quake-block-head>p{max-width:none;text-align:left}
}
@media (max-width:620px){
  .rank-quake-content{gap:14px}
  .rank-quake-block{padding:10px}
  .rank-quake-content .rank-table-head h2,.rank-quake-block-head h2{font-size:19px!important}
  .rank-quake-section-desc,.rank-quake-block-head>p{font-size:12px}
  .rank-quake-records{grid-template-columns:1fr;gap:8px}
  .rank-quake-record-card--milestones{grid-column:auto}
  .rank-quake-record-body{min-height:76px}
  .rank-quake-live-grid{grid-template-columns:1fr 1fr;gap:7px}
  .rank-quake-live-card{padding:11px}
  .rank-quake-live-card--region{grid-column:1/-1}
  .rank-quake-main-table{min-width:780px!important}
  .rank-quake-table{min-width:720px!important}
}

/* ==========================================================
   L2Feel Rankings PvP / Quake v2.0 - largura total no desktop
   Mantém o visual v1.9 e apenas aproveita melhor a área útil.
   ========================================================== */

/* A página e os blocos do Quake devem sempre usar toda a área disponível. */
.rank-type-quake .rank-quake-content,
.rank-type-quake .rank-quake-main-ranking,
.rank-type-quake .rank-quake-hall,
.rank-type-quake .rank-quake-activity-block,
.rank-type-quake .rank-quake-latest-board,
.rank-type-quake .rank-board-scroll {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* Este era o principal ponto: as tabelas tinham min-width, mas não width:100%. */
.rank-type-quake .rank-quake-main-table,
.rank-type-quake .rank-quake-latest-table,
.rank-type-quake .rank-quake-table {
    width: 100% !important;
    max-width: none !important;
}

/* Distribuição mais equilibrada das colunas do ranking principal. */
@media (min-width: 981px) {
    .rank-type-quake .rank-quake-main-table {
        min-width: 980px !important;
        table-layout: fixed !important;
    }

    .rank-type-quake .rank-quake-main-table th:nth-child(1),
    .rank-type-quake .rank-quake-main-table td:nth-child(1) { width: 6%; text-align: center; }
    .rank-type-quake .rank-quake-main-table th:nth-child(2),
    .rank-type-quake .rank-quake-main-table td:nth-child(2) { width: 24%; }
    .rank-type-quake .rank-quake-main-table th:nth-child(3),
    .rank-type-quake .rank-quake-main-table td:nth-child(3) { width: 16%; }
    .rank-type-quake .rank-quake-main-table th:nth-child(4),
    .rank-type-quake .rank-quake-main-table td:nth-child(4) { width: 10%; text-align: center; }
    .rank-type-quake .rank-quake-main-table th:nth-child(5),
    .rank-type-quake .rank-quake-main-table td:nth-child(5) { width: 12%; text-align: center; }
    .rank-type-quake .rank-quake-main-table th:nth-child(6),
    .rank-type-quake .rank-quake-main-table td:nth-child(6) { width: 14%; text-align: center; }
    .rank-type-quake .rank-quake-main-table th:nth-child(7),
    .rank-type-quake .rank-quake-main-table td:nth-child(7) { width: 18%; text-align: center; }

    .rank-type-quake .rank-quake-main-table th,
    .rank-type-quake .rank-quake-main-table td {
        box-sizing: border-box;
    }

    .rank-type-quake .rank-quake-player-cell {
        width: 100%;
        min-width: 0;
    }

    .rank-type-quake .rank-quake-player-cell > a,
    .rank-type-quake .rank-quake-player-cell > span:last-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Últimos Quakes também passa a ocupar e distribuir a faixa inteira. */
    .rank-type-quake .rank-quake-latest-table {
        min-width: 900px !important;
        table-layout: fixed !important;
    }
    .rank-type-quake .rank-quake-latest-table th:nth-child(1),
    .rank-type-quake .rank-quake-latest-table td:nth-child(1) { width: 28%; }
    .rank-type-quake .rank-quake-latest-table th:nth-child(2),
    .rank-type-quake .rank-quake-latest-table td:nth-child(2) { width: 20%; text-align: center; }
    .rank-type-quake .rank-quake-latest-table th:nth-child(3),
    .rank-type-quake .rank-quake-latest-table td:nth-child(3) { width: 12%; text-align: center; }
    .rank-type-quake .rank-quake-latest-table th:nth-child(4),
    .rank-type-quake .rank-quake-latest-table td:nth-child(4) { width: 24%; }
    .rank-type-quake .rank-quake-latest-table th:nth-child(5),
    .rank-type-quake .rank-quake-latest-table td:nth-child(5) { width: 16%; text-align: right; }

    /* Hall da Fama e atividade: ocupa a faixa sem deixar espaço morto. */
    .rank-type-quake .rank-quake-records {
        width: 100%;
        grid-template-columns: 1fr 1fr 1.15fr;
    }
    .rank-type-quake .rank-quake-live-grid {
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Em monitores largos, o Quake ganha mais área que os rankings comuns,
   pois possui 7 colunas relevantes. */
@media (min-width: 1280px) {
    body:not(.l2u-autal-native-content) .rank-shell.rank-type-quake {
        width: min(1580px, calc(100% - 32px)) !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body:not(.l2u-autal-native-content) .rank-type-quake .rank-quake-main-table th,
    body:not(.l2u-autal-native-content) .rank-type-quake .rank-quake-main-table td {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body:not(.l2u-autal-native-content) .rank-type-quake .rank-quake-latest-table th,
    body:not(.l2u-autal-native-content) .rank-type-quake .rank-quake-latest-table td {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Legacy permanece dentro do pergaminho/área própria do tema, mas a tabela
   usa 100% da largura que o tema disponibiliza. */
.l2u-autal-native-rankings .rank-quake-content,
.l2u-autal-native-rankings .rank-quake-table,
.l2u-autal-native-rankings .rank-quake-main-ranking,
.l2u-autal-native-rankings .rank-quake-latest-board {
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 980px) {
    .rank-type-quake .rank-quake-main-table { min-width: 880px !important; }
    .rank-type-quake .rank-quake-latest-table { min-width: 760px !important; }
}

/* ==========================================================
   L2Feel Rankings PvP / Quake v2.1 - refinamento de tabela
   - Cabeçalhos maiores e mais legíveis
   - Região centralizada em Últimos Quakes
   ========================================================== */

/* Cabeçalhos das tabelas da página Quake: aumentar consideravelmente a leitura. */
.rank-type-quake .rank-quake-main-table th,
.rank-type-quake .rank-quake-latest-table th,
.rank-type-quake .rank-quake-table th,
.l2u-autal-native-rankings .rank-quake-table th {
    font-size: 14px !important;
    line-height: 1.25 !important;
    letter-spacing: .075em !important;
    font-weight: 800 !important;
}

/* Últimos Quakes: centralizar a coluna Região (4ª coluna). */
.rank-type-quake .rank-quake-latest-table th:nth-child(4),
.rank-type-quake .rank-quake-latest-table td:nth-child(4),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(4),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(4) {
    text-align: center !important;
}

/* Um pouco mais de presença para os títulos no desktop, sem aumentar a altura em excesso. */
@media (min-width: 981px) {
    .rank-type-quake .rank-quake-main-table th,
    .rank-type-quake .rank-quake-latest-table th {
        padding-top: 13px !important;
        padding-bottom: 13px !important;
    }
}

/* Em telas menores, continua maior que a versão anterior sem estourar a tabela. */
@media (max-width: 620px) {
    .rank-type-quake .rank-quake-main-table th,
    .rank-type-quake .rank-quake-latest-table th,
    .rank-type-quake .rank-quake-table th {
        font-size: 12px !important;
    }
}


/* ==========================================================
   L2Feel Rankings PvP / Quake v2.2 - perfil + histórico modal
   ========================================================== */
.rank-quake-player-cell--actions{gap:10px!important;min-width:0}
.rank-quake-player-name-wrap{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
.rank-quake-profile-link{display:inline-flex!important;align-items:center;gap:6px;min-width:0;color:inherit;text-decoration:none}
.rank-quake-profile-link .rank-profile-link-icon,.rank-quake-player-copy .rank-profile-link-icon{font-size:9px!important;opacity:.72;margin-left:5px;transition:opacity .16s ease,transform .16s ease}
.rank-quake-profile-link:hover .rank-profile-link-icon,.rank-quake-profile-link:focus-visible .rank-profile-link-icon{opacity:1;transform:translate(1px,-1px)}
.rank-quake-history-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;padding:4px 8px;border:1px solid var(--rk-line,rgba(194,154,91,.32));background:var(--rk-block,rgba(25,20,16,.22));color:var(--rk-gold-hi,#d5a665);font:700 11px/1 inherit;letter-spacing:.02em;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease}
.rank-quake-history-trigger:hover,.rank-quake-history-trigger:focus-visible{border-color:var(--rk-gold-hi,#d5a665);background:rgba(194,154,91,.10);outline:none}
.rank-quake-history-trigger--compact{min-height:24px;padding:3px 6px;font-size:10px}
.rank-quake-record-player{display:flex;align-items:center;gap:8px;min-width:0}

.rank-quake-history-modal{position:fixed;inset:0;z-index:10080;display:none;align-items:center;justify-content:center;padding:24px}
.rank-quake-history-modal.is-open{display:flex}
.rank-quake-history-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.72);cursor:pointer}
.rank-quake-history-dialog{position:relative;z-index:1;width:min(980px,calc(100vw - 32px));max-height:min(820px,calc(100vh - 48px));overflow:auto;border:1px solid var(--rk-line,rgba(194,154,91,.42));background:var(--rk-modal-bg,#17130f);color:var(--rk-text,#e6dfd7);box-shadow:0 24px 80px rgba(0,0,0,.48);padding:22px}
.rank-quake-history-close{position:absolute;top:14px;right:14px;width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--rk-line,rgba(194,154,91,.35));background:transparent;color:inherit;cursor:pointer;font-size:18px}
.rank-quake-history-close:hover,.rank-quake-history-close:focus-visible{color:var(--rk-gold-hi,#d5a665);border-color:var(--rk-gold-hi,#d5a665);outline:none}
.rank-quake-history-head{padding-right:52px;padding-bottom:16px;border-bottom:1px solid var(--rk-line-soft,rgba(194,154,91,.20))}
.rank-quake-history-head h2{margin:4px 0 0;font-size:24px!important;line-height:1.15}
.rank-quake-history-head p{margin:6px 0 0;color:var(--rk-muted,#aaa095);font-size:14px;line-height:1.45}
.rank-quake-history-content{padding-top:16px}
.rank-quake-history-loading,.rank-quake-history-empty{min-height:150px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--rk-muted,#aaa095);font-size:14px;text-align:center}
.rank-quake-history-summary{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:18px;align-items:center;padding:14px;border:1px solid var(--rk-line-soft,rgba(194,154,91,.20));background:rgba(255,255,255,.025)}
.rank-quake-history-player{display:flex;align-items:center;gap:11px;min-width:0;color:inherit;text-decoration:none}
.rank-quake-history-player .rank-quake-avatar{width:48px;height:48px;flex:0 0 48px}
.rank-quake-history-player>span:last-child{display:grid;min-width:0}
.rank-quake-history-player strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-quake-history-player strong i{font-size:9px;margin-left:6px;opacity:.75}
.rank-quake-history-player small{margin-top:3px;color:var(--rk-muted,#aaa095);font-size:12px}
.rank-quake-history-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.rank-quake-history-summary-grid>div{min-width:0;padding:9px 10px;border-left:2px solid rgba(194,154,91,.34)}
.rank-quake-history-summary-grid span{display:block;color:var(--rk-muted,#aaa095);font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.rank-quake-history-summary-grid strong{display:block;margin-top:4px;font-size:17px;color:var(--rk-gold-hi,#d5a665)}
.rank-quake-history-limit{margin:11px 0 0;color:var(--rk-muted,#aaa095);font-size:12px}
.rank-quake-history-runs{display:grid;gap:9px;margin-top:14px}
.rank-quake-history-run{padding:12px 14px;border:1px solid var(--rk-line-soft,rgba(194,154,91,.18));background:rgba(255,255,255,.018)}
.rank-quake-history-run.is-active{border-color:rgba(194,154,91,.52);background:rgba(194,154,91,.055)}
.rank-quake-history-run-main{display:grid;grid-template-columns:minmax(180px,1.15fr) minmax(180px,1fr) minmax(140px,.7fr);align-items:center;gap:12px}
.rank-quake-history-run-stage{display:flex;align-items:center;gap:7px;min-width:0}
.rank-quake-history-run-stage i{color:var(--rk-gold-hi,#d5a665)}
.rank-quake-history-run-stage strong{font-size:15px;color:var(--rk-gold-hi,#d5a665);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-quake-history-run-stage span{color:var(--rk-muted,#aaa095);font-size:12px;white-space:nowrap}
.rank-quake-history-run-region{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-quake-history-run-region i{margin-right:6px;color:var(--rk-muted,#aaa095)}
.rank-quake-history-run-main time{text-align:right;color:var(--rk-muted,#aaa095);font-size:12px}
.rank-quake-history-run-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px;padding-top:9px;border-top:1px dashed var(--rk-line-soft,rgba(194,154,91,.15))}
.rank-quake-history-run-meta span{font-size:12px;color:var(--rk-muted,#aaa095)}
.rank-quake-history-run-meta b{display:block;margin-bottom:2px;color:var(--rk-text,#e6dfd7);font-size:10px;text-transform:uppercase;letter-spacing:.055em}
html.quake-history-open{overflow:hidden}

html[data-l2-theme="light"] .rank-quake-history-dialog{--rk-modal-bg:#f4eee4;background:#f4eee4;color:#4b3828}
html[data-l2-theme="light"] .rank-quake-history-summary,html[data-l2-theme="light"] .rank-quake-history-run{background:rgba(255,255,255,.48)}
html[data-l2-theme="light"] .rank-quake-history-trigger{background:rgba(255,255,255,.42)}

@media(max-width:760px){
  .rank-quake-history-modal{padding:10px}
  .rank-quake-history-dialog{width:100%;max-height:calc(100vh - 20px);padding:16px}
  .rank-quake-history-head h2{font-size:21px!important}
  .rank-quake-history-summary{grid-template-columns:1fr}
  .rank-quake-history-summary-grid{grid-template-columns:1fr 1fr}
  .rank-quake-history-run-main{grid-template-columns:1fr}
  .rank-quake-history-run-main time{text-align:left}
  .rank-quake-history-run-meta{grid-template-columns:1fr 1fr}
  .rank-quake-history-trigger span{display:none}
  .rank-quake-history-trigger{width:30px;padding:4px}
}


/* ==========================================================
   L2Feel Rankings PvP / Quake v2.3 - modal + ações compactas
   ========================================================== */

/* Histórico: ação pequena, apenas ícone, sem disputar espaço com o nome. */
.rank-quake-history-trigger,
.rank-quake-history-trigger--compact{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    min-height:24px!important;
    flex:0 0 24px!important;
    padding:0!important;
    gap:0!important;
    border:1px solid transparent!important;
    border-radius:2px;
    background:transparent!important;
    color:var(--rk-gold-hi,#b9833f)!important;
    font-size:10px!important;
    line-height:1!important;
}
.rank-quake-history-trigger i{margin:0!important;font-size:10px!important}
.rank-quake-history-trigger:hover,
.rank-quake-history-trigger:focus-visible{
    border-color:var(--rk-line,rgba(194,154,91,.36))!important;
    background:rgba(194,154,91,.10)!important;
    color:var(--rk-gold-hi,#c78637)!important;
    outline:none;
}
.rank-quake-player-name-wrap{gap:5px!important;flex-wrap:nowrap!important}
.rank-quake-player-cell--actions{gap:6px!important}

/* Atividade: três janelas na primeira linha; a região usa toda a largura. */
.rank-type-quake .rank-quake-live-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.rank-type-quake .rank-quake-live-card--region{
    grid-column:1/-1!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
    column-gap:24px!important;
    min-height:78px;
}
.rank-type-quake .rank-quake-live-card--region>span{
    grid-column:1!important;
    grid-row:1!important;
}
.rank-type-quake .rank-quake-live-card--region>strong{
    grid-column:1!important;
    grid-row:2!important;
    max-width:none!important;
    font-size:18px!important;
    line-height:1.3!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere;
}
.rank-type-quake .rank-quake-live-card--region>small{
    grid-column:2!important;
    grid-row:1/3!important;
    align-self:center!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    font-size:12px!important;
}

/* Modal sempre centralizado na viewport. O JS o move para document.body. */
.rank-quake-history-modal{
    position:fixed!important;
    inset:0!important;
    z-index:2147483000!important;
    padding:clamp(12px,3vw,34px)!important;
    align-items:center!important;
    justify-content:center!important;
}
.rank-quake-history-backdrop{
    position:absolute!important;
    inset:0!important;
    background:rgba(8,7,6,.50)!important;
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
}
.rank-quake-history-dialog{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    margin:0!important;
    width:min(960px,calc(100vw - 40px))!important;
    max-width:960px!important;
    max-height:calc(100vh - 56px)!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    padding:0!important;
    border:1px solid var(--rk-line,rgba(194,154,91,.42))!important;
    background:var(--rk-modal-bg,#17130f)!important;
    box-shadow:0 18px 55px rgba(0,0,0,.34)!important;
}
.rank-quake-history-head{
    flex:0 0 auto;
    padding:20px 70px 16px 22px!important;
    background:rgba(194,154,91,.045);
}
.rank-quake-history-close{
    top:15px!important;
    right:16px!important;
    z-index:3;
}
.rank-quake-history-content{
    min-height:0!important;
    overflow:auto!important;
    padding:18px 22px 22px!important;
    overscroll-behavior:contain;
}
html[data-l2-theme="light"] .rank-quake-history-backdrop{
    background:rgba(60,46,31,.26)!important;
}
html[data-l2-theme="light"] .rank-quake-history-dialog{
    background:#f5efe5!important;
    box-shadow:0 18px 48px rgba(70,48,25,.24)!important;
}
html[data-l2-theme="light"] .rank-quake-history-head{
    background:rgba(151,112,62,.055);
}

@media(max-width:760px){
    .rank-type-quake .rank-quake-live-grid{grid-template-columns:1fr 1fr!important}
    .rank-type-quake .rank-quake-live-card:nth-child(3),
    .rank-type-quake .rank-quake-live-card--region{grid-column:1/-1!important}
    .rank-quake-history-modal{padding:8px!important}
    .rank-quake-history-dialog{width:100%!important;max-height:calc(100vh - 16px)!important}
    .rank-quake-history-head{padding:17px 58px 14px 16px!important}
    .rank-quake-history-content{padding:14px 16px 18px!important}
    .rank-quake-history-trigger,
    .rank-quake-history-trigger--compact{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;flex-basis:26px!important}
}
@media(max-width:460px){
    .rank-type-quake .rank-quake-live-grid{grid-template-columns:1fr!important}
    .rank-type-quake .rank-quake-live-card:nth-child(3),
    .rank-type-quake .rank-quake-live-card--region{grid-column:auto!important}
    .rank-type-quake .rank-quake-live-card--region{grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;row-gap:4px!important}
    .rank-type-quake .rank-quake-live-card--region>span,
    .rank-type-quake .rank-quake-live-card--region>strong,
    .rank-type-quake .rank-quake-live-card--region>small{grid-column:1!important;grid-row:auto!important;text-align:left!important}
}

/* ==========================================================
   L2Feel Rankings PvP / Quake v2.4 - Histórico recente inteiro
   Não permite cortar/truncar o kicker da seção Últimos Quakes.
   ========================================================== */
.rank-type-quake .rank-quake-latest-board .rank-table-head > div:first-child{
    flex:1 1 auto!important;
    min-width:0!important;
    overflow:visible!important;
}
.rank-type-quake .rank-quake-latest-board .rank-kicker{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    height:auto!important;
    max-height:none!important;
    line-height:1.35!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
}
.rank-type-quake .rank-quake-latest-board .rank-kicker i{
    flex:0 0 auto!important;
}
.rank-type-quake .rank-quake-latest-board .rank-table-count{
    flex:0 0 auto!important;
}

/* ==========================================================
   L2Feel Rankings PvP / Quake v2.5 - nomes completos
   Últimos Quakes: nunca cortar nome do jogador com ellipsis.
   ========================================================== */
.rank-type-quake .rank-quake-latest-table .rank-quake-player-cell,
.l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player-cell{
    min-width:0!important;
    align-items:center!important;
}
.rank-type-quake .rank-quake-latest-table .rank-quake-player,
.rank-type-quake .rank-quake-latest-table .rank-quake-profile-link,
.l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player,
.l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-profile-link{
    min-width:0!important;
    max-width:none!important;
    overflow:visible!important;
}
.rank-type-quake .rank-quake-latest-table .rank-quake-player-copy,
.l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player-copy{
    min-width:0!important;
    overflow:visible!important;
}
.rank-type-quake .rank-quake-latest-table .rank-quake-player-copy b,
.l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player-copy b{
    display:block!important;
    max-width:none!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.25!important;
}

/* O clã pode quebrar normalmente em vez de roubar largura do nome. */
.rank-type-quake .rank-quake-latest-table .rank-quake-player-copy small,
.l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player-copy small{
    max-width:none!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    line-height:1.2!important;
}

/* Mais espaço para Jogador em Últimos Quakes no desktop. */
@media (min-width:981px){
    .rank-type-quake .rank-quake-latest-table th:nth-child(1),
    .rank-type-quake .rank-quake-latest-table td:nth-child(1){width:34%!important;}
    .rank-type-quake .rank-quake-latest-table th:nth-child(2),
    .rank-type-quake .rank-quake-latest-table td:nth-child(2){width:18%!important;}
    .rank-type-quake .rank-quake-latest-table th:nth-child(3),
    .rank-type-quake .rank-quake-latest-table td:nth-child(3){width:10%!important;}
    .rank-type-quake .rank-quake-latest-table th:nth-child(4),
    .rank-type-quake .rank-quake-latest-table td:nth-child(4){width:24%!important;}
    .rank-type-quake .rank-quake-latest-table th:nth-child(5),
    .rank-type-quake .rank-quake-latest-table td:nth-child(5){width:14%!important;}
}

/* ==========================================================
   L2Feel Rankings PvP / Quake v2.6 - largura Jogador x Região
   - Jogador recebe mais largura.
   - Região fica menor, porém ainda confortável e centralizada.
   - Nome/clã permanecem em uma única linha, sem quebra.
   ========================================================== */
.rank-type-quake .rank-quake-latest-table .rank-quake-player-copy b,
.l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player-copy b{
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
}
.rank-type-quake .rank-quake-latest-table .rank-quake-player-copy small,
.l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player-copy small{
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
}

@media (min-width:981px){
    .rank-type-quake .rank-quake-latest-table th:nth-child(1),
    .rank-type-quake .rank-quake-latest-table td:nth-child(1),
    .l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(1),
    .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(1){width:40%!important;}

    .rank-type-quake .rank-quake-latest-table th:nth-child(2),
    .rank-type-quake .rank-quake-latest-table td:nth-child(2),
    .l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(2),
    .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(2){width:18%!important;text-align:center;}

    .rank-type-quake .rank-quake-latest-table th:nth-child(3),
    .rank-type-quake .rank-quake-latest-table td:nth-child(3),
    .l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(3),
    .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(3){width:10%!important;text-align:center;}

    .rank-type-quake .rank-quake-latest-table th:nth-child(4),
    .rank-type-quake .rank-quake-latest-table td:nth-child(4),
    .l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(4),
    .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(4){width:18%!important;text-align:center;}

    .rank-type-quake .rank-quake-latest-table th:nth-child(5),
    .rank-type-quake .rank-quake-latest-table td:nth-child(5),
    .l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(5),
    .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(5){width:14%!important;text-align:right;}
}

/* ==========================================================
   L2Feel Rankings PvP / Quake v2.8 - separação Jogador x Clã
   Últimos Quakes agora possui 6 colunas reais:
   Jogador | Clã | Maior marco | Kills | Região | Quando
   ========================================================== */
.rank-type-quake .rank-quake-latest-table,
.l2u-autal-native-rankings .rank-quake-latest-table{
    min-width:920px!important;
    table-layout:fixed!important;
}

/* Redistribuição real das 6 colunas. */
.rank-type-quake .rank-quake-latest-table th:nth-child(1),
.rank-type-quake .rank-quake-latest-table td:nth-child(1),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(1),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(1){
    width:30%!important;
    text-align:left!important;
    padding-right:28px!important;
}
.rank-type-quake .rank-quake-latest-table th:nth-child(2),
.rank-type-quake .rank-quake-latest-table td:nth-child(2),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(2),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(2){
    width:20%!important;
    text-align:left!important;
    padding-left:28px!important;
    padding-right:18px!important;
}
.rank-type-quake .rank-quake-latest-table th:nth-child(3),
.rank-type-quake .rank-quake-latest-table td:nth-child(3),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(3),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(3){
    width:18%!important;
    text-align:center!important;
}
.rank-type-quake .rank-quake-latest-table th:nth-child(4),
.rank-type-quake .rank-quake-latest-table td:nth-child(4),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(4),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(4){
    width:8%!important;
    text-align:center!important;
}
.rank-type-quake .rank-quake-latest-table th:nth-child(5),
.rank-type-quake .rank-quake-latest-table td:nth-child(5),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(5),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(5){
    width:16%!important;
    text-align:center!important;
}
.rank-type-quake .rank-quake-latest-table th:nth-child(6),
.rank-type-quake .rank-quake-latest-table td:nth-child(6),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(6),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(6){
    width:8%!important;
    text-align:right!important;
}

/* Jogador fica em uma linha; Clã tem seu próprio espaço e não invade o nome. */
.rank-type-quake .rank-quake-latest-table td:nth-child(1) .rank-quake-player-cell,
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(1) .rank-quake-player-cell{
    width:100%!important;
    min-width:0!important;
}
.rank-type-quake .rank-quake-latest-table td:nth-child(1) .rank-quake-player-copy b,
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(1) .rank-quake-player-copy b{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.rank-type-quake .rank-quake-latest-table .rank-quake-clan-cell,
.l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-clan-cell{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    min-width:0!important;
    white-space:nowrap!important;
}

@media(max-width:980px){
    .rank-type-quake .rank-quake-latest-table,
    .l2u-autal-native-rankings .rank-quake-latest-table{
        min-width:920px!important;
    }
}

/* ==========================================================
   L2Feel Rankings PvP / Quake v2.9 - proporcao Jogador x Cla
   Corrige a v2.8: o espacamento nao deve consumir a largura
   util do nome. Jogador volta a ser a coluna dominante.
   ========================================================== */
.rank-type-quake .rank-quake-latest-table,
.l2u-autal-native-rankings .rank-quake-latest-table{
    min-width:1050px!important;
    table-layout:fixed!important;
}

/* 6 colunas: Jogador | Cla | Maior marco | Kills | Regiao | Quando */
.rank-type-quake .rank-quake-latest-table th:nth-child(1),
.rank-type-quake .rank-quake-latest-table td:nth-child(1),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(1),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(1){
    width:38%!important;
    text-align:left!important;
    padding-left:16px!important;
    padding-right:12px!important;
}
.rank-type-quake .rank-quake-latest-table th:nth-child(2),
.rank-type-quake .rank-quake-latest-table td:nth-child(2),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(2),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(2){
    width:18%!important;
    text-align:left!important;
    padding-left:18px!important;
    padding-right:10px!important;
}
.rank-type-quake .rank-quake-latest-table th:nth-child(3),
.rank-type-quake .rank-quake-latest-table td:nth-child(3),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(3),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(3){
    width:18%!important;
    text-align:center!important;
}
.rank-type-quake .rank-quake-latest-table th:nth-child(4),
.rank-type-quake .rank-quake-latest-table td:nth-child(4),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(4),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(4){
    width:7%!important;
    text-align:center!important;
}
.rank-type-quake .rank-quake-latest-table th:nth-child(5),
.rank-type-quake .rank-quake-latest-table td:nth-child(5),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(5),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(5){
    width:13%!important;
    text-align:center!important;
}
.rank-type-quake .rank-quake-latest-table th:nth-child(6),
.rank-type-quake .rank-quake-latest-table td:nth-child(6),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(6),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(6){
    width:6%!important;
    text-align:right!important;
}

/* Nome inteiro, uma linha, sem ellipsis e sem quebrar. */
.rank-type-quake .rank-quake-latest-table td:nth-child(1) .rank-quake-player-cell,
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(1) .rank-quake-player-cell{
    width:100%!important;
    min-width:0!important;
    gap:10px!important;
}
.rank-type-quake .rank-quake-latest-table td:nth-child(1) .rank-quake-player-name-wrap,
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(1) .rank-quake-player-name-wrap{
    flex-wrap:nowrap!important;
    min-width:0!important;
}
.rank-type-quake .rank-quake-latest-table td:nth-child(1) .rank-quake-player-copy,
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(1) .rank-quake-player-copy{
    min-width:0!important;
    overflow:visible!important;
}
.rank-type-quake .rank-quake-latest-table td:nth-child(1) .rank-quake-player-copy b,
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(1) .rank-quake-player-copy b{
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
}

/* Cla separado, mas sem o vao exagerado da v2.8. */
.rank-type-quake .rank-quake-latest-table .rank-quake-clan-cell,
.l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-clan-cell{
    gap:7px!important;
    min-width:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

@media(max-width:980px){
    .rank-type-quake .rank-quake-latest-table,
    .l2u-autal-native-rankings .rank-quake-latest-table{
        min-width:1050px!important;
    }
}

/* ==========================================================
   L2Feel Rankings PvP / Quake v3.0 - centralizacao do historico
   Refina o alinhamento visual do bloco "Ultimos Quakes".
   ========================================================== */

/* Centraliza corretamente as colunas visuais do historico recente.
   Mantem apenas Jogador e Cla alinhados a esquerda. */
.rank-type-quake .rank-quake-latest-table th:nth-child(3),
.rank-type-quake .rank-quake-latest-table td:nth-child(3),
.rank-type-quake .rank-quake-latest-table th:nth-child(4),
.rank-type-quake .rank-quake-latest-table td:nth-child(4),
.rank-type-quake .rank-quake-latest-table th:nth-child(5),
.rank-type-quake .rank-quake-latest-table td:nth-child(5),
.rank-type-quake .rank-quake-latest-table th:nth-child(6),
.rank-type-quake .rank-quake-latest-table td:nth-child(6),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(3),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(3),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(4),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(4),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(5),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(5),
.l2u-autal-native-rankings .rank-quake-latest-table th:nth-child(6),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(6){
    text-align:center!important;
    vertical-align:middle!important;
}

/* Regiao e Quando ficam visualmente no meio da celula, sem parecerem puxados. */
.rank-type-quake .rank-quake-latest-table td:nth-child(5),
.rank-type-quake .rank-quake-latest-table td:nth-child(6),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(5),
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(6){
    padding-left:8px!important;
    padding-right:8px!important;
}

/* O texto do maior marco tambem fica equilibrado no centro visual. */
.rank-type-quake .rank-quake-latest-table td:nth-child(3) .rank-quake-stage,
.l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(3) .rank-quake-stage{
    justify-content:center!important;
    width:100%!important;
}

/* ==========================================================
   L2Feel Rankings PvP / Quake v3.1 - Legacy organizado
   Tema Minimal permanece inalterado. Nos temas Legacy as
   tabelas largas passam a cards compactos dentro do pergaminho.
   ========================================================== */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content{
    --rk-text:var(--l2ucr-text,#4a3828);
    --rk-muted:var(--l2ucr-muted,#806e5d);
    --rk-muted-2:var(--l2ucr-muted,#806e5d);
    --rk-gold:var(--l2ucr-accent,#8a5928);
    --rk-gold-hi:var(--l2ucr-accent2,#b47a38);
    --rk-line:var(--l2ucr-line,rgba(112,82,50,.25));
    --rk-line-soft:var(--l2ucr-line,rgba(112,82,50,.17));
    --rk-panel:var(--l2ucr-panel,rgba(255,255,255,.18));
    --rk-block-bg:var(--l2ucr-panel,rgba(255,255,255,.12));
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin:8px 5px 16px!important;
    gap:12px!important;
    color:var(--l2ucr-text)!important;
}

html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-table-card,.rank-quake-block){
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
    border:1px solid var(--l2ucr-line)!important;
    border-radius:2px!important;
    background:var(--l2ucr-panel)!important;
    box-shadow:none!important;
    overflow:hidden!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-block{padding:9px!important;overflow:visible!important}

/* Cabeçalhos pequenos e claros, no mesmo ritmo dos rankings Legacy. */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-table-head,.rank-quake-block-head){
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    min-height:0!important;
    margin:0!important;
    padding:9px 10px!important;
    border:0!important;
    border-bottom:1px solid var(--l2ucr-line)!important;
    background:var(--l2ucr-panel-top)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-block-head{
    margin:-9px -9px 9px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content .rank-kicker{
    color:var(--l2ucr-muted)!important;
    font:700 8px/1.15 Arial,sans-serif!important;
    letter-spacing:.065em!important;
    text-transform:uppercase!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content .rank-kicker i{color:var(--l2ucr-accent2)!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-table-head h2,.rank-quake-block-head h2){
    margin:2px 0 0!important;
    color:var(--l2ucr-accent)!important;
    font:700 15px/1.15 Georgia,"Times New Roman",serif!important;
    letter-spacing:0!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings :where(.rank-quake-section-desc,.rank-quake-block-head>p){
    margin:3px 0 0!important;
    max-width:265px!important;
    color:var(--l2ucr-muted)!important;
    font:400 9px/1.35 Arial,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-block-head>p{text-align:right!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-table-count{
    flex:0 0 auto!important;
    padding:4px 6px!important;
    border:1px solid var(--l2ucr-line)!important;
    border-radius:2px!important;
    background:var(--l2ucr-panel2,var(--l2ucr-panel))!important;
    color:var(--l2ucr-muted)!important;
    font:700 8px/1 Arial,sans-serif!important;
    white-space:nowrap!important;
}

/* ---------------- Ranking principal: tabela -> cards ---------------- */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-ranking .rank-board-scroll,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-board .rank-board-scroll{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:visible!important;
    padding:7px!important;
    box-sizing:border-box!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings :where(.rank-quake-main-table,.rank-quake-latest-table){
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    table-layout:auto!important;
    border:0!important;
    background:transparent!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings :where(.rank-quake-main-table,.rank-quake-latest-table) thead{display:none!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings :where(.rank-quake-main-table,.rank-quake-latest-table) tbody{
    display:grid!important;
    width:100%!important;
    gap:6px!important;
}

html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row{
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr) 66px 74px!important;
    grid-template-rows:minmax(30px,auto) minmax(25px,auto) auto!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:82px!important;
    margin:0!important;
    padding:6px 7px!important;
    box-sizing:border-box!important;
    border:1px solid var(--l2ucr-line)!important;
    border-radius:2px!important;
    background:var(--l2ucr-panel)!important;
    color:var(--l2ucr-text)!important;
    box-shadow:none!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-row-top-1{
    background:var(--l2ucr-panel-top)!important;
    box-shadow:inset 2px 0 0 var(--l2ucr-accent2)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-row-top-2,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-row-top-3{
    background:var(--l2ucr-panel-top2,var(--l2ucr-panel))!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    padding:2px 6px!important;
    border:0!important;
    background:transparent!important;
    color:var(--l2ucr-text)!important;
    font:400 10px/1.25 Arial,sans-serif!important;
    white-space:normal!important;
    text-align:left!important;
    box-sizing:border-box!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(1){grid-column:1;grid-row:1/4;align-self:stretch;display:flex!important;align-items:center;justify-content:center;padding:0 4px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(2){grid-column:2;grid-row:1;padding-bottom:0!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(3){grid-column:2;grid-row:2;color:var(--l2ucr-muted)!important;font-size:8.5px!important;padding-top:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4){grid-column:3;grid-row:1/3;text-align:center!important;border-left:1px solid var(--l2ucr-line)!important;align-self:stretch;display:flex!important;flex-direction:column;align-items:center;justify-content:center}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5){grid-column:4;grid-row:1;text-align:center!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6){grid-column:4;grid-row:2;text-align:center!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7){grid-column:2/5;grid-row:3;margin-top:3px!important;padding-top:5px!important;border-top:1px dashed var(--l2ucr-line)!important;color:var(--l2ucr-muted)!important;text-align:right!important;font-size:8.5px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7)::before{
    display:block!important;
    margin-bottom:2px!important;
    color:var(--l2ucr-muted)!important;
    font:700 6.5px/1 Arial,sans-serif!important;
    letter-spacing:.045em!important;
    text-transform:uppercase!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4)::before{content:"Quakes"}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5)::before{content:"Recorde"}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6)::before{content:"Marco"}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7)::before{content:"Kills em streaks";display:inline!important;margin:0 5px 0 0!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-primary-score strong{color:var(--l2ucr-accent2)!important;font-size:18px!important;line-height:1!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-position-badge{
    width:25px!important;min-width:25px!important;height:25px!important;padding:0!important;display:grid!important;place-items:center!important;
    border:1px solid var(--l2ucr-line)!important;border-radius:3px!important;background:transparent!important;color:var(--l2ucr-accent)!important;font:bold 9px/1 Arial,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-player-cell{gap:6px!important;min-width:0!important;align-items:center!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-avatar{width:31px!important;height:31px!important;flex:0 0 31px!important;border-color:var(--l2ucr-line)!important;background:var(--l2ucr-panel-top)!important;color:var(--l2ucr-accent)!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-profile-link{
    min-width:0!important;max-width:100%!important;color:var(--l2ucr-accent)!important;font:bold 10.5px/1.15 Arial,sans-serif!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-player-name-wrap{min-width:0!important;max-width:100%!important;gap:2px!important;flex-wrap:nowrap!important;overflow:hidden!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-history-trigger{color:var(--l2ucr-accent2)!important}

/* ---------------- Hall da Fama ---------------- */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-records{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-card{
    min-width:0!important;
    border:1px solid var(--l2ucr-line)!important;
    border-radius:2px!important;
    background:var(--l2ucr-panel2,var(--l2ucr-panel))!important;
    box-shadow:none!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-card--milestones{grid-column:1/-1!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-card>header{
    min-height:29px!important;padding:6px 8px!important;border-bottom:1px solid var(--l2ucr-line)!important;color:var(--l2ucr-muted)!important;font:700 7.5px/1.2 Arial,sans-serif!important;letter-spacing:.045em!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-card>header i{color:var(--l2ucr-accent2)!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-body{min-height:62px!important;padding:8px!important;gap:7px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-body .rank-quake-avatar{width:31px!important;height:31px!important;flex-basis:31px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-player-copy b{color:var(--l2ucr-text)!important;font-size:9.5px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-player-copy small{color:var(--l2ucr-muted)!important;font-size:7.5px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-score strong{color:var(--l2ucr-accent2)!important;font-size:19px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-score span{color:var(--l2ucr-muted)!important;font-size:7.5px!important;line-height:1.25!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-milestones{min-height:58px!important;padding:6px!important;gap:0!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-milestones>div{padding:7px 4px!important;border-color:var(--l2ucr-line)!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-milestones strong{color:var(--l2ucr-accent2)!important;font-size:18px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-milestones span{margin-top:4px!important;color:var(--l2ucr-muted)!important;font-size:7px!important}

/* ---------------- Atividade PvP ---------------- */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card{
    min-width:0!important;
    padding:8px!important;
    border:1px solid var(--l2ucr-line)!important;
    border-radius:2px!important;
    background:var(--l2ucr-panel2,var(--l2ucr-panel))!important;
    color:var(--l2ucr-text)!important;
    box-shadow:none!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card>span{color:var(--l2ucr-muted)!important;font-size:7px!important;letter-spacing:.035em!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card>strong{color:var(--l2ucr-accent2)!important;font-size:19px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card>small{color:var(--l2ucr-muted)!important;font-size:7px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card--region{
    grid-column:1/-1!important;
    min-height:48px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card--region>strong{font:700 11px/1.25 Arial,sans-serif!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:var(--l2ucr-accent)!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card--region>small{font-size:8px!important}

/* ---------------- Últimos Quakes: tabela -> cards ---------------- */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table tr.rank-board-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto auto!important;
    align-items:center!important;
    gap:2px 10px!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:8px 9px!important;
    box-sizing:border-box!important;
    border:1px solid var(--l2ucr-line)!important;
    border-radius:2px!important;
    background:var(--l2ucr-panel)!important;
    color:var(--l2ucr-text)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table tr.rank-board-row:nth-child(even){background:var(--l2ucr-panel2,var(--l2ucr-panel))!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td{
    display:block!important;width:auto!important;min-width:0!important;margin:0!important;padding:2px 0!important;border:0!important;background:transparent!important;color:var(--l2ucr-text)!important;font:400 9px/1.25 Arial,sans-serif!important;white-space:normal!important;box-sizing:border-box!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(1){grid-column:1;grid-row:1;text-align:left!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(2){grid-column:1;grid-row:2;text-align:left!important;color:var(--l2ucr-muted)!important;font-size:8px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(3){grid-column:2;grid-row:1;text-align:right!important;padding:0!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(4){grid-column:2;grid-row:2;text-align:right!important;color:var(--l2ucr-accent2)!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(4)::before{content:"Kills ";color:var(--l2ucr-muted)!important;font-size:7px!important;text-transform:uppercase!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(5){grid-column:1;grid-row:3;margin-top:3px!important;padding-top:5px!important;border-top:1px dashed var(--l2ucr-line)!important;text-align:left!important;color:var(--l2ucr-muted)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(5)::before{content:"\f3c5";font-family:"Font Awesome 6 Free";font-weight:900;margin-right:4px;color:var(--l2ucr-accent)!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(6){grid-column:2;grid-row:3;margin-top:3px!important;padding-top:5px!important;border-top:1px dashed var(--l2ucr-line)!important;text-align:right!important;color:var(--l2ucr-muted)!important;white-space:nowrap!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player--compact .rank-quake-avatar{width:29px!important;height:29px!important;flex-basis:29px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player-copy b{font-size:9.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-clan-cell{gap:4px!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-clan-cell i{color:var(--l2ucr-accent)!important;font-size:7px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-stage{display:inline-flex!important;width:auto!important;justify-content:flex-end!important;gap:4px!important;color:var(--l2ucr-accent2)!important;font-size:8.5px!important;white-space:nowrap!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-loading-cell{grid-column:1/-1!important;min-height:54px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;color:var(--l2ucr-muted)!important}

/* ---------------- Modal de histórico também recebe o tema Legacy ---------------- */
html[data-l2-layout^="legacy-"] .rank-quake-history-dialog{
    width:min(760px,calc(100vw - 30px))!important;
    max-height:calc(100vh - 32px)!important;
    padding:17px!important;
    border:1px solid var(--l2ucr-line)!important;
    border-radius:3px!important;
    background:var(--l2up-field,var(--l2ucr-panel-top,#f2e4c5))!important;
    color:var(--l2ucr-text)!important;
    box-shadow:0 20px 65px rgba(0,0,0,.42)!important;
}
html[data-l2-layout^="legacy-"] .rank-quake-history-backdrop{background:rgba(20,14,9,.56)!important}
html[data-l2-layout^="legacy-"] .rank-quake-history-head{border-color:var(--l2ucr-line)!important}
html[data-l2-layout^="legacy-"] .rank-quake-history-head h2{color:var(--l2ucr-accent)!important;font:700 20px/1.15 Georgia,"Times New Roman",serif!important}
html[data-l2-layout^="legacy-"] .rank-quake-history-head p,
html[data-l2-layout^="legacy-"] .rank-quake-history-loading,
html[data-l2-layout^="legacy-"] .rank-quake-history-empty,
html[data-l2-layout^="legacy-"] .rank-quake-history-limit{color:var(--l2ucr-muted)!important}
html[data-l2-layout^="legacy-"] .rank-quake-history-close{border-color:var(--l2ucr-line)!important;color:var(--l2ucr-accent)!important}
html[data-l2-layout^="legacy-"] .rank-quake-history-summary,
html[data-l2-layout^="legacy-"] .rank-quake-history-run{border-color:var(--l2ucr-line)!important;background:var(--l2ucr-panel)!important;color:var(--l2ucr-text)!important}
html[data-l2-layout^="legacy-"] .rank-quake-history-summary-grid>div{border-color:var(--l2ucr-line)!important}
html[data-l2-layout^="legacy-"] .rank-quake-history-summary-grid span,
html[data-l2-layout^="legacy-"] .rank-quake-history-player small,
html[data-l2-layout^="legacy-"] .rank-quake-history-run-stage span,
html[data-l2-layout^="legacy-"] .rank-quake-history-run-region,
html[data-l2-layout^="legacy-"] .rank-quake-history-run-main time,
html[data-l2-layout^="legacy-"] .rank-quake-history-run-meta span{color:var(--l2ucr-muted)!important}
html[data-l2-layout^="legacy-"] .rank-quake-history-summary-grid strong,
html[data-l2-layout^="legacy-"] .rank-quake-history-run-stage strong,
html[data-l2-layout^="legacy-"] .rank-quake-history-run-stage i{color:var(--l2ucr-accent2)!important}
html[data-l2-layout^="legacy-"] .rank-quake-history-run-meta{border-color:var(--l2ucr-line)!important}
html[data-l2-layout^="legacy-"] .rank-quake-history-run-meta b{color:var(--l2ucr-text)!important}

/* Mobile dos Legacy: preserva os cards e reduz apenas o que precisa. */
@media(max-width:620px){
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content{margin-left:0!important;margin-right:0!important;gap:10px!important}
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-table-head,.rank-quake-block-head){align-items:flex-start!important;flex-direction:column!important;gap:4px!important}
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-block-head>p{max-width:none!important;text-align:left!important}
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-records{grid-template-columns:1fr!important}
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-card--milestones{grid-column:auto!important}
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row{grid-template-columns:29px minmax(0,1fr) 59px 62px!important;padding-left:4px!important;padding-right:4px!important}
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td{padding-left:4px!important;padding-right:4px!important}
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-grid{grid-template-columns:1fr 1fr!important}
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card:nth-child(3){grid-column:1/-1!important}
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card--region{grid-column:1/-1!important}
    html[data-l2-layout^="legacy-"] .rank-quake-history-dialog{width:calc(100vw - 18px)!important;padding:13px!important}
    html[data-l2-layout^="legacy-"] .rank-quake-history-summary-grid{grid-template-columns:1fr 1fr!important}
}

/* ======================================================================
   L2Feel Rankings PvP / Quake v3.2 - identidade visual por tema Legacy
   Mantem a organizacao compacta da v3.1 e faz cada AtualStudio usar sua
   propria paleta, tipografia, bordas e densidade visual.
   ====================================================================== */

/* Contrato visual do Quake nos Legacy: usa as mesmas variaveis que os
   rankings nativos de cada tema para nao parecer um painel "de fora". */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:var(--l2ucr-text);
    --rq-muted:var(--l2ucr-muted);
    --rq-accent:var(--l2ucr-accent);
    --rq-accent2:var(--l2ucr-accent2);
    --rq-line:var(--l2ucr-line);
    --rq-panel:var(--l2ucr-panel);
    --rq-panel-top:var(--l2ucr-panel-top);
    --rq-panel-alt:var(--l2ucr-panel-top2,var(--l2ucr-panel));
    --rq-radius:2px;
    --rq-head-font:Arial,Helvetica,sans-serif;
    --rk-text:var(--rq-text);
    --rk-muted:var(--rq-muted);
    --rk-muted-2:var(--rq-muted);
    --rk-gold:var(--rq-accent);
    --rk-gold-hi:var(--rq-accent2);
    --rk-line:var(--rq-line);
    --rk-line-soft:var(--rq-line);
    --rk-panel:var(--rq-panel);
    --rk-block-bg:transparent;
    color:var(--rq-text)!important;
}

/* -------- Paleta / personalidade individual -------- */
/* L01 - pergaminho claro, grafite e vermelho queimado. */
html[data-l2-layout="legacy-01"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#302b28;--rq-muted:#6c625c;--rq-accent:#6e3023;--rq-accent2:#9b0000;
    --rq-line:rgba(53,53,53,.20);--rq-panel:rgba(53,53,53,.035);--rq-panel-top:rgba(155,0,0,.075);--rq-panel-alt:rgba(53,53,53,.06);
    --rq-radius:3px;--rq-head-font:Georgia,"Times New Roman",serif;
}
/* L03 - pergaminho dourado / marrom. */
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#3d2d21;--rq-muted:#7d654e;--rq-accent:#7a491b;--rq-accent2:#b17729;
    --rq-line:rgba(112,73,31,.23);--rq-panel:rgba(111,73,28,.055);--rq-panel-top:rgba(166,106,37,.13);--rq-panel-alt:rgba(111,73,28,.075);
    --rq-radius:1px;--rq-head-font:Georgia,"Times New Roman",serif;
}
/* L04 - pergaminho com vermelho queimado. */
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#3e281f;--rq-muted:#7b5e50;--rq-accent:#8f2815;--rq-accent2:#cc4b22;
    --rq-line:rgba(126,31,20,.22);--rq-panel:rgba(129,35,17,.045);--rq-panel-top:rgba(181,51,23,.12);--rq-panel-alt:rgba(129,35,17,.065);
    --rq-radius:1px;--rq-head-font:Georgia,"Times New Roman",serif;
}
/* L05 - bronze / marrom. */
html[data-l2-layout="legacy-05"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#341d10;--rq-muted:#76583f;--rq-accent:#71300c;--rq-accent2:#a34b12;
    --rq-line:rgba(70,27,4,.20);--rq-panel:rgba(70,27,4,.04);--rq-panel-top:rgba(147,61,7,.10);--rq-panel-alt:rgba(70,27,4,.065);
    --rq-radius:4px;--rq-head-font:Georgia,"Times New Roman",serif;
}
/* L06 - branco / roxo. */
html[data-l2-layout="legacy-06"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#2d2934;--rq-muted:#746d7d;--rq-accent:#4f3d8a;--rq-accent2:#6a50a7;
    --rq-line:rgba(79,61,138,.22);--rq-panel:rgba(79,61,138,.045);--rq-panel-top:rgba(79,61,138,.11);--rq-panel-alt:rgba(79,61,138,.075);
    --rq-radius:4px;--rq-head-font:Calibri,Arial,sans-serif;
}
/* L07 - pergaminho / laranja queimado. */
html[data-l2-layout="legacy-07"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#3b271d;--rq-muted:#796150;--rq-accent:#8b320f;--rq-accent2:#c44d1c;
    --rq-line:rgba(111,52,25,.20);--rq-panel:rgba(137,39,2,.035);--rq-panel-top:rgba(214,81,31,.10);--rq-panel-alt:rgba(137,39,2,.06);
    --rq-radius:3px;--rq-head-font:Georgia,"Times New Roman",serif;
}
/* L10 - madeira / ouro. */
html[data-l2-layout="legacy-10"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#342417;--rq-muted:#75614c;--rq-accent:#6d3d18;--rq-accent2:#9a641f;
    --rq-line:rgba(69,23,6,.20);--rq-panel:rgba(52,18,3,.035);--rq-panel-top:rgba(69,23,6,.095);--rq-panel-alt:rgba(52,18,3,.06);
    --rq-radius:2px;--rq-head-font:Georgia,"Times New Roman",serif;
}
/* L11 - branco / azul. */
html[data-l2-layout="legacy-11"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#252c32;--rq-muted:#66727d;--rq-accent:#0c3f77;--rq-accent2:#0471a5;
    --rq-line:rgba(12,63,119,.20);--rq-panel:rgba(12,63,119,.035);--rq-panel-top:rgba(4,113,165,.10);--rq-panel-alt:rgba(12,63,119,.06);
    --rq-radius:7px;--rq-head-font:Arial,Helvetica,sans-serif;
}
/* L14 - pergaminho / carvao. */
html[data-l2-layout="legacy-14"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#382719;--rq-muted:#74614e;--rq-accent:#3b1d0b;--rq-accent2:#70401f;
    --rq-line:rgba(59,29,11,.20);--rq-panel:rgba(26,26,26,.035);--rq-panel-top:rgba(49,49,49,.085);--rq-panel-alt:rgba(26,26,26,.055);
    --rq-radius:2px;--rq-head-font:"Times New Roman",Georgia,serif;
}
/* L19 - pergaminho / roxo. */
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#372a3c;--rq-muted:#74617e;--rq-accent:#643084;--rq-accent2:#9653bd;
    --rq-line:rgba(107,44,141,.21);--rq-panel:rgba(92,39,119,.045);--rq-panel-top:rgba(120,50,168,.12);--rq-panel-alt:rgba(92,39,119,.065);
    --rq-radius:1px;--rq-head-font:Georgia,"Times New Roman",serif;
}
/* L20 - pergaminho / vermelho e laranja. */
html[data-l2-layout="legacy-20"] .l2u-autal-native-rankings .rank-quake-content{
    --rq-text:#3b281b;--rq-muted:#78614e;--rq-accent:#7c2410;--rq-accent2:#a33404;
    --rq-line:rgba(106,8,1,.20);--rq-panel:rgba(106,8,1,.035);--rq-panel-top:rgba(163,52,4,.10);--rq-panel-alt:rgba(106,8,1,.06);
    --rq-radius:3px;--rq-head-font:Georgia,"Times New Roman",serif;
}

/* -------- Aplicacao da identidade -------- */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-table-head h2,.rank-quake-block-head h2){
    color:var(--rq-accent)!important;
    font-family:var(--rq-head-font)!important;
    font-weight:600!important;
    text-shadow:0 1px rgba(255,255,255,.28)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content .rank-kicker{
    color:var(--rq-accent2)!important;
    font-weight:800!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-block,.rank-quake-main-ranking,.rank-quake-latest-board){
    border-color:var(--rq-line)!important;
    border-radius:var(--rq-radius)!important;
    background:transparent!important;
    box-shadow:0 1px 0 rgba(255,255,255,.15) inset!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-record-card,.rank-quake-live-card,.rank-quake-main-table tr.rank-board-row,.rank-quake-latest-table tr.rank-board-row){
    border-color:var(--rq-line)!important;
    border-radius:var(--rq-radius)!important;
    background:var(--rq-panel)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content .rank-quake-main-table tr.rank-row-top-1{
    background:var(--rq-panel-top)!important;
    box-shadow:inset 3px 0 0 var(--rq-accent2)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content .rank-quake-main-table tr.rank-row-top-2,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content .rank-quake-main-table tr.rank-row-top-3,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content .rank-quake-latest-table tr.rank-board-row:nth-child(even){
    background:var(--rq-panel-alt)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-primary-score strong,.rank-quake-record-score strong,.rank-quake-live-card>strong,.rank-quake-stage,.rank-quake-history-trigger){
    color:var(--rq-accent2)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-profile-link,.rank-quake-player-cell>a){
    color:var(--rq-accent)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-section-desc,.rank-quake-block-head>p,.rank-quake-player-copy small,.rank-quake-live-card>span,.rank-quake-live-card>small){
    color:var(--rq-muted)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content .rank-quake-avatar{
    border-color:var(--rq-line)!important;
    background:var(--rq-panel-top)!important;
    color:var(--rq-accent)!important;
}

/* L06 e L11 sao os dois temas claros/limpos: cards mais leves e definidos. */
html[data-l2-layout="legacy-06"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-block,.rank-quake-main-ranking,.rank-quake-latest-board),
html[data-l2-layout="legacy-11"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-block,.rank-quake-main-ranking,.rank-quake-latest-board){
    background:rgba(255,255,255,.36)!important;
    box-shadow:0 1px 3px rgba(0,0,0,.05)!important;
}
html[data-l2-layout="legacy-06"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-record-card,.rank-quake-live-card,.rank-quake-main-table tr.rank-board-row,.rank-quake-latest-table tr.rank-board-row),
html[data-l2-layout="legacy-11"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-record-card,.rank-quake-live-card,.rank-quake-main-table tr.rank-board-row,.rank-quake-latest-table tr.rank-board-row){
    box-shadow:0 1px 2px rgba(0,0,0,.045)!important;
}

/* Temas de pergaminho: deixar o fundo original respirar. */
html[data-l2-layout="legacy-01"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-07"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-14"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-20"] .l2u-autal-native-rankings .rank-quake-content{
    background:transparent!important;
}

/* -------- Organizacao por geometria do template -------- */
/* L03/L04/L19 possuem o mesmo miolo estreito: compacta sem esconder dados. */
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-content{
    gap:10px!important;
}
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-block,.rank-quake-main-ranking,.rank-quake-latest-board),
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-block,.rank-quake-main-ranking,.rank-quake-latest-board),
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-content :where(.rank-quake-block,.rank-quake-main-ranking,.rank-quake-latest-board){
    padding:8px!important;
}
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row{
    grid-template-columns:28px minmax(0,1fr) 58px 64px!important;
    min-height:76px!important;
    padding:5px!important;
}
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-records,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-records,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-records{
    grid-template-columns:1fr!important;
}
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-record-card--milestones,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-record-card--milestones,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-record-card--milestones{grid-column:auto!important}

/* L01/L11/L14/L20 oferecem um pouco mais de area: Hall da Fama em duas colunas. */
html[data-l2-layout="legacy-01"] .l2u-autal-native-rankings .rank-quake-records,
html[data-l2-layout="legacy-11"] .l2u-autal-native-rankings .rank-quake-records,
html[data-l2-layout="legacy-14"] .l2u-autal-native-rankings .rank-quake-records,
html[data-l2-layout="legacy-20"] .l2u-autal-native-rankings .rank-quake-records{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html[data-l2-layout="legacy-01"] .l2u-autal-native-rankings .rank-quake-record-card--milestones,
html[data-l2-layout="legacy-11"] .l2u-autal-native-rankings .rank-quake-record-card--milestones,
html[data-l2-layout="legacy-14"] .l2u-autal-native-rankings .rank-quake-record-card--milestones,
html[data-l2-layout="legacy-20"] .l2u-autal-native-rankings .rank-quake-record-card--milestones{grid-column:1/-1!important}

/* L05/L06/L07/L10: centro medio, mantem duas colunas mas um pouco mais compacto. */
html[data-l2-layout="legacy-05"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-06"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-07"] .l2u-autal-native-rankings .rank-quake-content,
html[data-l2-layout="legacy-10"] .l2u-autal-native-rankings .rank-quake-content{gap:11px!important}

/* Marcadores e botoes acompanham a personalidade do tema. */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-position-badge,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-history-trigger,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-table-count{
    border-color:var(--rq-line)!important;
    border-radius:var(--rq-radius)!important;
    background:var(--rq-panel-alt)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-position-badge.top1{
    border-color:var(--rq-accent2)!important;color:var(--rq-accent2)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-position-badge.top2,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-position-badge.top3{
    border-color:var(--rq-accent)!important;color:var(--rq-accent)!important;
}

/* Modal: mesma paleta do tema aberto, sem painel escuro generico. */
html[data-l2-layout^="legacy-"] .rank-quake-history-dialog{
    border-color:var(--l2ucr-line)!important;
    color:var(--l2ucr-text)!important;
}
html[data-l2-layout="legacy-06"] .rank-quake-history-dialog{background:#f7f4fa!important}
html[data-l2-layout="legacy-11"] .rank-quake-history-dialog{background:#f4f8fb!important}
html[data-l2-layout="legacy-01"] .rank-quake-history-dialog,
html[data-l2-layout="legacy-03"] .rank-quake-history-dialog,
html[data-l2-layout="legacy-04"] .rank-quake-history-dialog,
html[data-l2-layout="legacy-05"] .rank-quake-history-dialog,
html[data-l2-layout="legacy-07"] .rank-quake-history-dialog,
html[data-l2-layout="legacy-10"] .rank-quake-history-dialog,
html[data-l2-layout="legacy-14"] .rank-quake-history-dialog,
html[data-l2-layout="legacy-19"] .rank-quake-history-dialog,
html[data-l2-layout="legacy-20"] .rank-quake-history-dialog{background:#f1e3c3!important}

/* O Minimal nao recebe nenhuma regra acima: todos os seletores exigem legacy-. */

/* ======================================================================
   L2Feel Rankings PvP / Quake v3.3 - Hall da Fama responsivo ao miolo
   Evita extrapolar a largura central dos temas Legacy estreitos.
   ====================================================================== */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-records{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;
    overflow:visible!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-card--milestones{
    grid-column:1/-1!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-card>header,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-body,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-milestones{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-body>*{
    min-width:0!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-body .rank-quake-player{
    flex:1 1 auto!important;
    max-width:calc(100% - 62px)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-score{
    flex:0 1 58px!important;
    max-width:58px!important;
    overflow:hidden!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-record-score span{
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-player-copy{
    max-width:100%!important;
    overflow:hidden!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-milestones{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-milestones>div{
    min-width:0!important;
    overflow:hidden!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-milestones span{
    overflow-wrap:anywhere!important;
}

/* Nos miolos comprovadamente mais estreitos, força uma coluna para manter
   a leitura confortável e evitar que o conteúdo encoste nas bordas. */
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-records,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-records,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-records{
    grid-template-columns:1fr!important;
}

/* ======================================================================
   L2Feel Rankings PvP / Quake v3.4 - Atividade PvP responsiva ao miolo
   A grade passa a responder a largura real disponivel no tema Legacy,
   evitando estouro em pergaminhos/centros estreitos.
   ====================================================================== */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-block-head{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-grid{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(116px,1fr))!important;
    gap:6px!important;
    overflow:hidden!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card>span,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card>strong,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card>small{
    min-width:0!important;
    max-width:100%!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card--region{
    grid-column:1/-1!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto!important;
    row-gap:4px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card--region>span,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card--region>strong,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card--region>small{
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    text-align:left!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
}
/* Centros historicamente mais estreitos: mantem no maximo 2 cards por linha. */
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-live-grid,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-live-grid,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-live-grid{
    grid-template-columns:repeat(auto-fit,minmax(132px,1fr))!important;
}
@media(max-width:430px){
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-grid{
        grid-template-columns:1fr!important;
    }
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-live-card--region{
        grid-column:auto!important;
    }
}

/* ======================================================================
   L2Feel Rankings PvP / Quake v3.5 - Legacy compacto e organizado
   Ajuste orientado pelos centros estreitos dos temas Legacy.
   Mantem Minimal intacto.
   ====================================================================== */

/* Menos texto auxiliar no Legacy: titulo e dados ganham prioridade. */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-content{
    gap:8px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-section-desc,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-block-head>p{
    display:none!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings :where(.rank-table-head,.rank-quake-block-head){
    min-height:0!important;
    padding-top:7px!important;
    padding-bottom:7px!important;
    gap:5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings :where(.rank-table-head,.rank-quake-block-head) h2{
    margin:1px 0 0!important;
    line-height:1.05!important;
}

/* ----------------------------------------------------------------------
   Ranking principal: duas linhas por jogador.
   Linha 1: jogador | Quakes | Recorde
   Linha 2: cla     | Marco  | Kills em streaks
   ---------------------------------------------------------------------- */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-ranking .rank-board-scroll{
    padding:5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table tbody{
    gap:3px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row{
    grid-template-columns:28px minmax(0,1fr) 50px 54px!important;
    grid-template-rows:27px 23px!important;
    min-height:54px!important;
    padding:3px 5px!important;
    column-gap:3px!important;
    row-gap:0!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td{
    padding:1px 4px!important;
    line-height:1.12!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(1){
    grid-column:1!important;grid-row:1/3!important;padding:0 2px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(2){
    grid-column:2!important;grid-row:1!important;padding-bottom:0!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(3){
    grid-column:2!important;grid-row:2!important;padding-top:0!important;
    font-size:7.8px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7){
    align-self:stretch!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    padding:1px 2px!important;
    border:0!important;
    border-left:1px solid var(--l2ucr-line)!important;
    text-align:center!important;
    white-space:nowrap!important;
    font-size:8.5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4){grid-column:3!important;grid-row:1!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5){grid-column:4!important;grid-row:1!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6){grid-column:3!important;grid-row:2!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7){grid-column:4!important;grid-row:2!important;color:var(--l2ucr-text)!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7)::before{
    display:block!important;
    margin:0 0 1px!important;
    font-size:5.8px!important;
    line-height:1!important;
    letter-spacing:.025em!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4)::before{content:"Quakes"!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5)::before{content:"Recorde"!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6)::before{content:"Marco"!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7)::before{content:"Streak"!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-primary-score strong{
    font-size:14px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-position-badge{
    width:22px!important;min-width:22px!important;height:22px!important;font-size:8px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-avatar{
    width:27px!important;height:27px!important;flex-basis:27px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-player-cell{
    gap:5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-profile-link{
    font-size:9.5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-history-trigger{
    width:17px!important;height:17px!important;min-width:17px!important;padding:0!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-history-trigger span{
    display:none!important;
}

/* ----------------------------------------------------------------------
   Hall da Fama: visual de resumo, nao de tres paineis grandes.
   ---------------------------------------------------------------------- */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records{
    gap:4px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card>header{
    min-height:23px!important;
    padding:4px 6px!important;
    font-size:7px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-body{
    min-height:47px!important;
    padding:5px 6px!important;
    gap:5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-body .rank-quake-avatar{
    width:26px!important;height:26px!important;flex-basis:26px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy b{
    font-size:8.5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy small{
    font-size:6.7px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score strong{
    font-size:16px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score span{
    font-size:6.5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones{
    min-height:43px!important;
    padding:3px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones>div{
    padding:4px 2px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones strong{
    font-size:15px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones span{
    margin-top:2px!important;font-size:6.2px!important;
}

/* ----------------------------------------------------------------------
   Atividade PvP: 3 numeros compactos + regiao em faixa unica.
   ---------------------------------------------------------------------- */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:4px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card{
    min-height:42px!important;
    padding:5px 3px!important;
    text-align:center!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card>span{
    font-size:6.2px!important;line-height:1.1!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card>strong{
    font-size:16px!important;line-height:1!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card>small{
    font-size:6px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card--region{
    grid-column:1/-1!important;
    min-height:38px!important;
    padding:5px 7px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    column-gap:8px!important;
    row-gap:1px!important;
    text-align:left!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card--region>span{
    grid-column:1!important;grid-row:1!important;text-align:left!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card--region>strong{
    grid-column:1!important;grid-row:2!important;text-align:left!important;
    font-size:9px!important;line-height:1.15!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card--region>small{
    grid-column:2!important;grid-row:1/3!important;align-self:center!important;text-align:right!important;
    font-size:7px!important;white-space:nowrap!important;
}

/* ----------------------------------------------------------------------
   Ultimos Quakes: feed mais enxuto e com menos linhas divisorias.
   ---------------------------------------------------------------------- */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-board .rank-board-scroll{
    padding:5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table tbody{
    gap:3px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table tr.rank-board-row{
    min-height:52px!important;
    padding:5px 6px!important;
    gap:0 7px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td{
    padding:1px 0!important;
    font-size:8.2px!important;
    line-height:1.12!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(2){font-size:7.2px!important}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(5),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(6){
    margin-top:1px!important;
    padding-top:2px!important;
    border-top:0!important;
    font-size:7.2px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player--compact .rank-quake-avatar{
    width:25px!important;height:25px!important;flex-basis:25px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player-copy b{
    font-size:8.8px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-stage{
    font-size:7.8px!important;
}

/* Evita comportamento sticky/fixed herdado de qualquer Legacy. */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings :where(.rank-quake-main-ranking,.rank-quake-hall,.rank-quake-activity-block,.rank-quake-latest-board){
    position:relative!important;
    inset:auto!important;
    transform:none!important;
}

/* Os centros mais estreitos continuam protegidos contra overflow. */
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row{
    grid-template-columns:26px minmax(0,1fr) 46px 49px!important;
    padding-left:3px!important;padding-right:3px!important;
}
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-avatar,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-avatar,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-avatar{
    width:25px!important;height:25px!important;flex-basis:25px!important;
}

/* ======================================================================
   L2Feel Rankings PvP / Quake v3.6 - Legacy mais legivel
   Mantem o layout compacto da v3.5, mas aumenta leitura/contraste.
   ====================================================================== */

/* Dados: fonte limpa. Titulos continuam herdando a identidade do tema. */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings :where(
    .rank-quake-main-table,
    .rank-quake-records,
    .rank-quake-live-grid,
    .rank-quake-latest-table
){
    font-family:Arial,Helvetica,sans-serif!important;
}

/* Cabecalhos das secoes */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings :where(.rank-table-head,.rank-quake-block-head) h2{
    font-size:16px!important;
    line-height:1.08!important;
    font-weight:700!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-kicker{
    font-size:7.5px!important;
    font-weight:800!important;
    letter-spacing:.055em!important;
}

/* Ranking principal */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row{
    grid-template-rows:30px 25px!important;
    min-height:59px!important;
    padding-top:4px!important;
    padding-bottom:4px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td{
    font-family:Arial,Helvetica,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-player-copy b{
    font-size:11.2px!important;
    line-height:1.15!important;
    font-weight:700!important;
    color:var(--l2ucr-text)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(3){
    font-size:8.8px!important;
    line-height:1.2!important;
    font-weight:600!important;
    color:var(--l2ucr-text)!important;
    opacity:.82!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7){
    font-size:10px!important;
    line-height:1.08!important;
    font-weight:700!important;
    color:var(--l2ucr-text)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7)::before{
    margin-bottom:2px!important;
    font-size:6.8px!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:.035em!important;
    color:var(--l2ucr-muted)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-primary-score strong{
    font-size:16px!important;
    line-height:1!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-position-badge{
    font-size:9px!important;
    font-weight:800!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-avatar{
    width:29px!important;height:29px!important;flex-basis:29px!important;
}

/* Hall da Fama */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card>header{
    min-height:25px!important;
    padding:5px 7px!important;
    font-size:8.3px!important;
    line-height:1.15!important;
    font-weight:800!important;
    color:var(--l2ucr-text)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-body{
    min-height:51px!important;
    padding:6px 7px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy b{
    font-size:10px!important;
    line-height:1.15!important;
    font-weight:700!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy small{
    font-size:7.8px!important;
    line-height:1.15!important;
    font-weight:600!important;
    color:var(--l2ucr-text)!important;
    opacity:.8!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score strong{
    font-size:18px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score span{
    font-size:7.6px!important;
    font-weight:700!important;
    color:var(--l2ucr-text)!important;
    opacity:.78!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones{
    min-height:47px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones strong{
    font-size:17px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones span{
    font-size:7.4px!important;
    line-height:1.12!important;
    font-weight:700!important;
    color:var(--l2ucr-text)!important;
    opacity:.78!important;
}

/* Atividade PvP */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card{
    min-height:47px!important;
    padding:6px 4px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card>span{
    font-size:7.5px!important;
    line-height:1.15!important;
    font-weight:800!important;
    color:var(--l2ucr-text)!important;
    opacity:.8!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card>strong{
    font-size:18px!important;
    line-height:1!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card>small{
    font-size:7.2px!important;
    line-height:1.1!important;
    font-weight:700!important;
    color:var(--l2ucr-text)!important;
    opacity:.72!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card--region{
    min-height:42px!important;
    padding:6px 8px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card--region>strong{
    font-size:10.5px!important;
    font-weight:700!important;
    color:var(--l2ucr-accent)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card--region>small{
    font-size:8px!important;
    font-weight:700!important;
}

/* Ultimos Quakes */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table tr.rank-board-row{
    min-height:58px!important;
    padding:6px 7px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td{
    font-size:9.2px!important;
    line-height:1.2!important;
    color:var(--l2ucr-text)!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(2){
    font-size:8.2px!important;
    font-weight:600!important;
    color:var(--l2ucr-text)!important;
    opacity:.8!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(5),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(6){
    font-size:8.1px!important;
    line-height:1.15!important;
    font-weight:600!important;
    color:var(--l2ucr-text)!important;
    opacity:.82!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player-copy b{
    font-size:10.2px!important;
    line-height:1.15!important;
    font-weight:700!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-stage{
    font-size:8.8px!important;
    line-height:1.1!important;
    font-weight:800!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player--compact .rank-quake-avatar{
    width:27px!important;height:27px!important;flex-basis:27px!important;
}

/* Os tres centros mais estreitos recebem apenas uma pequena compensacao. */
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4),
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5),
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6),
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7),
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4),
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5),
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6),
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7),
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4),
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5),
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6),
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7){
    font-size:9.3px!important;
}

/* ======================================================================
   L2Feel Rankings PvP / Quake v3.7 - Legacy leitura grande
   Aumenta de forma perceptivel a tipografia sem alterar o Minimal.
   ====================================================================== */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings{
    font-family:Tahoma,Arial,Helvetica,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings :where(.rank-table-head,.rank-quake-block-head) h2{
    font-size:18px!important;
    line-height:1.12!important;
    font-weight:700!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-kicker{
    font-size:9px!important;
    line-height:1.15!important;
}

/* Ranking principal */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table tr.rank-board-row{
    grid-template-rows:36px 31px!important;
    min-height:73px!important;
    padding-top:5px!important;
    padding-bottom:5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-player-copy b{
    font-size:13.5px!important;
    line-height:1.2!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(3){
    font-size:10.5px!important;
    line-height:1.25!important;
    opacity:.92!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7){
    font-size:11.5px!important;
    line-height:1.15!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(4)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(5)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(6)::before,
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table td:nth-child(7)::before{
    font-size:8.5px!important;
    line-height:1.05!important;
    margin-bottom:3px!important;
    opacity:1!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-primary-score strong{
    font-size:18px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-position-badge{
    font-size:10.5px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-main-table .rank-quake-avatar{
    width:32px!important;height:32px!important;flex-basis:32px!important;
}

/* Hall da Fama */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card>header{
    min-height:31px!important;
    padding:7px 8px!important;
    font-size:10px!important;
    line-height:1.2!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-body{
    min-height:62px!important;
    padding:8px 9px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy b{
    font-size:12px!important;
    line-height:1.2!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy small{
    font-size:9.5px!important;
    line-height:1.2!important;
    opacity:.92!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score strong{
    font-size:20px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score span{
    font-size:9px!important;
    opacity:.9!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones{
    min-height:58px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones strong{
    font-size:19px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones span{
    font-size:9px!important;
    line-height:1.18!important;
    opacity:.9!important;
}

/* Atividade PvP */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card{
    min-height:58px!important;
    padding:8px 6px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card>span{
    font-size:9px!important;
    line-height:1.2!important;
    opacity:.92!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card>strong{
    font-size:20px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card>small{
    font-size:8.5px!important;
    line-height:1.15!important;
    opacity:.88!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card--region{
    min-height:50px!important;
    padding:8px 10px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card--region>strong{
    font-size:12px!important;
    line-height:1.2!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-activity-block .rank-quake-live-card--region>small{
    font-size:9.5px!important;
    line-height:1.15!important;
}

/* Ultimos Quakes */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table tr.rank-board-row{
    min-height:70px!important;
    padding:8px 8px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td{
    font-size:11px!important;
    line-height:1.25!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(2),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(5),
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table td:nth-child(6){
    font-size:10px!important;
    line-height:1.2!important;
    opacity:.92!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player-copy b{
    font-size:12.5px!important;
    line-height:1.2!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-stage{
    font-size:10.5px!important;
    line-height:1.15!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-latest-table .rank-quake-player--compact .rank-quake-avatar{
    width:30px!important;height:30px!important;flex-basis:30px!important;
}

/* Em Legacy muito estreito, mantem a fonte grande e deixa o conteudo quebrar linha. */
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings :where(.rank-quake-main-table td,.rank-quake-latest-table td),
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings :where(.rank-quake-main-table td,.rank-quake-latest-table td),
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings :where(.rank-quake-main-table td,.rank-quake-latest-table td){
    overflow-wrap:anywhere!important;
}

/* ======================================================================
   L2Feel Rankings PvP / Quake v3.8 - Hall da Fama reorganizado
   Layout guiado pela largura REAL do Hall nos temas Legacy.
   ====================================================================== */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    container-type:inline-size;
}

/* Fallback seguro: uma coluna em qualquer Legacy estreito. */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card--milestones{
    grid-column:1/-1!important;
}

/* Título do recorde: sempre legível e alinhado. */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card>header{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    min-height:34px!important;
    padding:8px 10px!important;
    box-sizing:border-box!important;
    white-space:normal!important;
    overflow:visible!important;
    font:800 10.5px/1.25 Arial,Helvetica,sans-serif!important;
    letter-spacing:.02em!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card>header i{
    flex:0 0 auto!important;
    font-size:11px!important;
}

/* Corpo: jogador de um lado, número do outro. */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-body{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    min-height:70px!important;
    padding:9px 10px!important;
    box-sizing:border-box!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-body .rank-quake-player{
    min-width:0!important;
    max-width:none!important;
    width:auto!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-body .rank-quake-avatar{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy{
    min-width:0!important;
    max-width:100%!important;
    overflow:visible!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy b{
    display:block!important;
    max-width:100%!important;
    margin:0 0 3px!important;
    font:700 12.5px/1.2 Arial,Helvetica,sans-serif!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy small{
    display:block!important;
    max-width:100%!important;
    font:600 10px/1.25 Arial,Helvetica,sans-serif!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    opacity:.92!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score{
    min-width:54px!important;
    max-width:72px!important;
    flex:none!important;
    overflow:visible!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    justify-content:center!important;
    text-align:right!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score strong{
    display:block!important;
    font:800 22px/1 Arial,Helvetica,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score span{
    display:block!important;
    margin-top:3px!important;
    max-width:72px!important;
    font:700 9px/1.18 Arial,Helvetica,sans-serif!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-align:right!important;
    opacity:.9!important;
}

/* Marcos: faixa separada, sempre contida dentro do centro. */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones{
    width:100%!important;
    min-width:0!important;
    min-height:64px!important;
    padding:5px!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(82px,1fr))!important;
    gap:0!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones>div{
    min-width:0!important;
    padding:7px 4px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    text-align:center!important;
    box-sizing:border-box!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones strong{
    font:800 20px/1 Arial,Helvetica,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones span{
    margin-top:5px!important;
    max-width:100%!important;
    font:700 9.5px/1.2 Arial,Helvetica,sans-serif!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    opacity:.9!important;
}

/* Somente quando o próprio Hall tiver largura suficiente, usa 2 colunas. */
@container (min-width: 430px){
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card--milestones{
        grid-column:1/-1!important;
    }
}

/* Nos três centros mais estreitos conhecidos, nunca força 2 colunas. */
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records{
    grid-template-columns:minmax(0,1fr)!important;
}

/* ======================================================================
   L2Feel Rankings PvP / Quake v3.9 - Hall Legacy: altura por conteudo
   Remove o espaco vazio causado por stretching das linhas/cards em temas
   de miolo estreito/pergaminho, preservando a identidade por tema.
   ====================================================================== */
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records{
    grid-auto-rows:max-content!important;
    align-items:start!important;
    align-content:start!important;
    gap:6px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card{
    height:auto!important;
    min-height:0!important;
    align-self:start!important;
    display:block!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card>header{
    height:auto!important;
    min-height:0!important;
    padding:7px 9px!important;
    font:800 11px/1.25 Arial,Helvetica,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-body{
    height:auto!important;
    min-height:0!important;
    padding:8px 9px!important;
    align-items:center!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-body .rank-quake-avatar{
    width:34px!important;
    height:34px!important;
    flex-basis:34px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy b{
    font:700 12.5px/1.2 Arial,Helvetica,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-player-copy small{
    font:600 10px/1.25 Arial,Helvetica,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score strong{
    font:800 22px/1 Arial,Helvetica,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-score span{
    font:700 9px/1.2 Arial,Helvetica,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-record-card--milestones{
    height:auto!important;
    min-height:0!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones{
    height:auto!important;
    min-height:0!important;
    padding:6px!important;
    align-items:center!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones>div{
    min-height:48px!important;
    padding:6px 4px!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones strong{
    font:800 20px/1 Arial,Helvetica,sans-serif!important;
}
html[data-l2-layout^="legacy-"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-milestones span{
    margin-top:4px!important;
    font:700 9.5px/1.2 Arial,Helvetica,sans-serif!important;
}

/* Em centros estreitos, Hall sempre em uma coluna e sem equalizacao vertical. */
html[data-l2-layout="legacy-03"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records,
html[data-l2-layout="legacy-04"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records,
html[data-l2-layout="legacy-05"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records,
html[data-l2-layout="legacy-10"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records,
html[data-l2-layout="legacy-14"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records,
html[data-l2-layout="legacy-19"] .l2u-autal-native-rankings .rank-quake-hall .rank-quake-records{
    grid-template-columns:minmax(0,1fr)!important;
}
