.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.rating-main{
    position:relative;
    z-index:2;
    padding:42px 0 64px;
}
.rating-shell{width:min(1180px,calc(100% - 28px))}
.rating-topbar .cab-container{width:min(1180px,calc(100% - 28px))}

.rating-hero{
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(300px,.72fr);
    gap:24px;
    align-items:stretch;
    padding:30px;
    border:1px solid rgba(255,255,255,.085);
    border-radius:26px;
    background:
        radial-gradient(circle at 82% 18%,rgba(239,199,110,.12),transparent 31%),
        radial-gradient(circle at 15% 82%,rgba(82,129,196,.13),transparent 34%),
        linear-gradient(145deg,rgba(12,27,49,.78),rgba(4,10,21,.90));
    box-shadow:0 28px 80px rgba(0,0,0,.28);
}
.rating-hero::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(115deg,transparent 18%,rgba(255,255,255,.025) 42%,transparent 67%);
}
.rating-hero__copy,.rating-hero__stats{position:relative;z-index:1}
.rating-hero h1{
    margin:8px 0 12px;
    max-width:780px;
    color:#f1e5c9;
    font-family:var(--title);
    font-size:clamp(38px,5vw,66px);
    line-height:.98;
    letter-spacing:-.025em;
}
.rating-hero p{
    max-width:760px;
    margin:0;
    color:#9eb0c4;
    font-size:15px;
    line-height:1.7;
}
.rating-hero__stats{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}
.rating-stat{
    min-height:112px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    gap:7px;
    padding:18px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:18px;
    background:rgba(5,12,24,.55);
}
.rating-stat span{color:#7f93aa;font-size:12px;font-weight:750;line-height:1.35}
.rating-stat strong{color:#eef4fb;font-size:22px;line-height:1.1}
.rating-stat--live{
    grid-column:1/-1;
    min-height:58px;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    padding:14px 16px;
}
.rating-live-dot{
    width:8px;height:8px;flex:0 0 auto;border-radius:50%;
    background:#67d99a;
    box-shadow:0 0 0 5px rgba(103,217,154,.08),0 0 20px rgba(103,217,154,.45);
}

.rating-podium{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    align-items:end;
    margin-top:14px;
}
.podium-card{
    position:relative;
    overflow:hidden;
    min-height:264px;
    display:flex;
    flex-direction:column;
    padding:22px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:22px;
    background:
        radial-gradient(circle at 78% 10%,rgba(116,153,210,.10),transparent 32%),
        linear-gradient(180deg,rgba(10,23,42,.70),rgba(4,10,20,.85));
    box-shadow:0 18px 50px rgba(0,0,0,.20);
}
.podium-card::after{
    content:"";
    position:absolute;
    left:0;right:0;bottom:0;height:2px;
    opacity:.8;
    background:linear-gradient(90deg,transparent,#7c93b0,transparent);
}
.podium-card--first{
    min-height:296px;
    border-color:rgba(239,199,110,.24);
    background:
        radial-gradient(circle at 78% 10%,rgba(239,199,110,.18),transparent 34%),
        linear-gradient(180deg,rgba(31,29,29,.74),rgba(7,11,20,.90));
}
.podium-card--first::after{background:linear-gradient(90deg,transparent,#efc76e,transparent)}
.podium-card--second::after{background:linear-gradient(90deg,transparent,#b7c5d8,transparent)}
.podium-card--third::after{background:linear-gradient(90deg,transparent,#bb8759,transparent)}
.podium-card__rank{
    width:42px;height:42px;display:grid;place-items:center;
    border:1px solid rgba(255,255,255,.10);
    border-radius:13px;
    background:rgba(2,7,15,.54);
    color:#dbe5f0;
    font:900 17px/1 var(--font);
}
.podium-card--first .podium-card__rank{color:#f3d68e;border-color:rgba(239,199,110,.28);background:rgba(239,199,110,.08)}
.podium-card__crown{
    position:absolute;top:19px;right:20px;
    color:rgba(239,199,110,.75);
    font-size:24px;
    text-shadow:0 0 24px rgba(239,199,110,.34);
}
.podium-card h2{
    margin:18px 0 12px;
    overflow:hidden;
    color:#f3f6fa;
    font-family:var(--title);
    font-size:clamp(25px,2.7vw,34px);
    line-height:1.05;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.podium-card__meta{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.podium-card__meta>span:first-child{display:flex;align-items:baseline;gap:6px;color:#8ea1b7}
.podium-card__meta small{font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.podium-card__meta b{color:#dce6f1;font-size:14px}
.rating-gender{
    min-width:42px;height:27px;display:inline-flex;align-items:center;justify-content:center;
    padding:0 8px;border:1px solid rgba(255,255,255,.08);border-radius:999px;
    background:rgba(255,255,255,.035);font-size:12px;font-weight:900;white-space:nowrap;
}
.rating-gender.is-male{color:#7fbdff;border-color:rgba(91,166,246,.17);background:rgba(70,142,220,.06)}
.rating-gender.is-female{color:#f0a6d6;border-color:rgba(229,118,185,.17);background:rgba(211,82,159,.055)}
.rating-gender.is-unknown{color:#8798aa}
.podium-card__power{margin-top:auto;padding-top:15px;border-top:1px solid rgba(255,255,255,.065)}
.podium-card__power small{display:block;margin-bottom:5px;color:#c4a96b;font-size:10px;font-weight:900;letter-spacing:.08em}
.podium-card__power strong{display:block;color:#f4e2b8;font-size:30px;line-height:1}
.podium-card__achievement,.podium-card__pk,.podium-card__flowers{display:flex;align-items:center;gap:7px;margin-top:10px;color:#8194aa;font-size:12px}
.podium-card__achievement b,.podium-card__pk b,.podium-card__flowers b{margin-left:auto;color:#d8e2ed;font-size:14px}
.podium-card__pk{margin-top:6px;color:#8f8090}
.podium-card__pk>span:first-child{filter:saturate(.72)}
.podium-card__pk b{color:#e5b5bd}
.podium-card__flowers{margin-top:6px;color:#9a8b91}
.podium-card__flowers b{color:#efb9cf}

.rating-board{
    margin-top:14px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.075);
    border-radius:22px;
    background:linear-gradient(180deg,rgba(9,20,38,.74),rgba(4,10,20,.86));
    box-shadow:0 22px 64px rgba(0,0,0,.22);
}
.rating-board__head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    padding:22px;
    border-bottom:1px solid rgba(255,255,255,.065);
}
.rating-board__head h2{margin:5px 0 0;color:#edf2f7;font-family:var(--title);font-size:clamp(25px,3vw,34px);line-height:1.05}
.rating-search{
    min-width:min(100%,420px);
    display:grid;
    grid-template-columns:auto minmax(120px,1fr) auto auto;
    align-items:center;
    gap:8px;
    padding:6px 6px 6px 12px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    background:rgba(2,8,18,.50);
}
.rating-search>span{color:#6f839a;font-size:18px}
.rating-search input{
    min-width:0;height:36px;padding:0;border:0;outline:0;background:transparent;color:#e7edf4;font:700 13px/1.2 var(--font);
}
.rating-search input::placeholder{color:#64778d}
.rating-search button{
    height:36px;padding:0 14px;border:1px solid rgba(239,199,110,.20);border-radius:10px;
    background:rgba(239,199,110,.085);color:#e7ca89;font:850 12px/1 var(--font);cursor:pointer;
}
.rating-search button:hover{background:rgba(239,199,110,.13);border-color:rgba(239,199,110,.30)}
.rating-search__clear{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;color:#8798aa;font-size:18px}
.rating-search__clear:hover{background:rgba(255,255,255,.055);color:#e2eaf3}

.rating-table-wrap{overflow-x:auto}
.rating-table{width:100%;border-collapse:collapse;table-layout:fixed}
.rating-table th{
    height:48px;padding:0 14px;border-bottom:1px solid rgba(255,255,255,.06);
    color:#71859c;font-size:10px;font-weight:900;letter-spacing:.075em;text-transform:uppercase;text-align:left;white-space:nowrap;
}
.rating-table td{
    height:66px;padding:9px 14px;border-bottom:1px solid rgba(255,255,255,.047);
    color:#a9b7c6;font-size:13px;vertical-align:middle;
}
.rating-table tbody tr{transition:background .16s ease,border-color .16s ease}
.rating-table tbody tr:hover{background:rgba(255,255,255,.025)}
.rating-table tbody tr:last-child td{border-bottom:0}
.rating-col-rank{width:68px;text-align:center!important}
.rating-table th:nth-child(3){width:110px}.rating-table th:nth-child(4){width:78px}.rating-table th:nth-child(5){width:190px}.rating-table th:nth-child(6){width:165px}.rating-table th:nth-child(7){width:145px}.rating-table th:nth-child(8){width:155px}
.rating-rank{
    width:34px;height:34px;display:inline-grid;place-items:center;
    border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(255,255,255,.025);
    color:#8497ac;font-size:12px;font-weight:900;
}
.rating-rank.is-top-1{color:#efcf82;border-color:rgba(239,199,110,.24);background:rgba(239,199,110,.075);box-shadow:0 0 24px rgba(239,199,110,.08)}
.rating-rank.is-top-2{color:#c8d6e6;border-color:rgba(180,199,220,.18)}
.rating-rank.is-top-3{color:#d4a073;border-color:rgba(187,135,89,.18)}
.rating-col-player{display:flex;align-items:center;gap:10px}
.rating-col-player strong{min-width:0;overflow:hidden;color:#e7edf4;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.rating-player-mark{flex:0 0 auto;color:#536b86;font-size:9px}
tr.is-top-1 .rating-player-mark{color:#e5bd61;text-shadow:0 0 18px rgba(239,199,110,.32)}
.rating-level{display:inline-flex;align-items:center;min-height:28px;padding:0 8px;border-radius:8px;background:rgba(97,126,159,.065);color:#aebdd0;font-size:11px;font-weight:900}
.rating-col-power strong{color:#f1d48d;font-size:15px;letter-spacing:.015em}
.rating-col-achievement,.rating-col-pk,.rating-col-flowers{white-space:nowrap}
.rating-col-achievement span,.rating-col-pk span,.rating-col-flowers span{margin-right:6px;font-size:13px}
.rating-col-achievement strong{color:#dce5ee;font-size:14px}
.rating-col-pk strong{color:#e4b1b9;font-size:14px}
.rating-col-flowers strong{color:#edb4ca;font-size:14px}

.rating-empty{padding:64px 24px;text-align:center}
.rating-empty>span{width:54px;height:54px;display:grid;place-items:center;margin:0 auto 14px;border:1px solid rgba(255,255,255,.08);border-radius:17px;background:rgba(255,255,255,.025);color:#7f93aa;font-size:25px}
.rating-empty h3{margin:0;color:#e8eef5;font-family:var(--title);font-size:27px}
.rating-empty p{max-width:520px;margin:8px auto 0;color:#7d90a6;font-size:13px;line-height:1.6}
.rating-empty--error>span{color:#e8a5ad;border-color:rgba(234,104,120,.15);background:rgba(234,104,120,.045)}

.rating-pager{display:flex;align-items:center;justify-content:center;gap:6px;padding:18px;border-top:1px solid rgba(255,255,255,.06)}
.rating-pager a,.rating-pager span{min-width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#7f92a7;font-size:12px;font-weight:850}
.rating-pager a{border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.02)}
.rating-pager a:hover{color:#dce6f1;border-color:rgba(255,255,255,.11);background:rgba(255,255,255,.04)}
.rating-pager a.is-active{color:#efd287;border-color:rgba(239,199,110,.22);background:rgba(239,199,110,.075)}
.rating-pager a.is-disabled{opacity:.3;pointer-events:none}

.rating-footer{position:relative;z-index:2;padding:0 0 28px}
.rating-footer__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.065)}
.rating-footer__links{display:flex;flex-wrap:wrap;gap:8px 15px}
.rating-footer a,.rating-footer small{color:#73869c;font-size:12px}
.rating-footer a:hover{color:#cbd8e7}

@media(max-width:920px){
    .rating-hero{grid-template-columns:1fr;padding:24px}
    .rating-hero__stats{grid-template-columns:1fr 1fr}
    .rating-podium{grid-template-columns:1fr 1fr}
    .podium-card--first{grid-row:1;grid-column:1/-1;min-height:240px}
    .podium-card{min-height:230px}
    .rating-board__head{align-items:stretch;flex-direction:column}
    .rating-search{width:100%;min-width:0}
}

@media(max-width:720px){
    .rating-main{padding:24px 0 44px}
    .rating-shell,.rating-topbar .cab-container{width:min(100% - 20px,1180px)}
    .rating-hero{padding:19px;border-radius:20px}
    .rating-hero h1{font-size:clamp(34px,10vw,48px)}
    .rating-hero p{font-size:14px}
    .rating-stat{min-height:92px;padding:14px}
    .rating-stat strong{font-size:18px}
    .rating-podium{grid-template-columns:1fr;gap:9px}
    .podium-card--first{grid-column:auto;grid-row:auto;order:-1}
    .podium-card,.podium-card--first{min-height:0;padding:18px;border-radius:18px}
    .podium-card h2{font-size:28px}
    .podium-card__power strong{font-size:25px}
    .rating-board{border-radius:18px}
    .rating-board__head{padding:17px}
    .rating-search{grid-template-columns:auto minmax(80px,1fr) auto auto}
    .rating-search button{padding:0 11px}

    .rating-table-wrap{overflow:visible}
    .rating-table,.rating-table tbody{display:block;width:100%}
    .rating-table thead{display:none}
    .rating-table tr{
        display:grid;
        grid-template-columns:56px minmax(0,1fr) auto;
        grid-template-areas:
            "rank player gender"
            "rank level level"
            "power power power"
            "achievement achievement pk"
            "flowers flowers flowers";
        gap:8px 10px;
        margin:10px;
        padding:14px;
        border:1px solid rgba(255,255,255,.055);
        border-radius:15px;
        background:rgba(4,11,22,.46);
    }
    .rating-table td{height:auto;padding:0;border:0!important}
    .rating-table .rating-col-rank{grid-area:rank;display:flex;align-items:flex-start;justify-content:center;width:auto;text-align:center!important}
    .rating-table .rating-col-player{grid-area:player;min-width:0}
    .rating-table td:nth-child(3){grid-area:level}
    .rating-table td:nth-child(4){grid-area:gender;justify-self:end}
    .rating-table .rating-col-power{grid-area:power;display:flex;flex-direction:column;gap:4px;padding-top:11px;border-top:1px solid rgba(255,255,255,.05)!important}
    .rating-table .rating-col-achievement{grid-area:achievement;display:flex;align-items:center;justify-content:flex-start;padding-top:9px;border-top:1px solid rgba(255,255,255,.05)!important}
    .rating-table .rating-col-pk{grid-area:pk;display:flex;align-items:center;justify-content:flex-end;padding-top:9px;border-top:1px solid rgba(255,255,255,.05)!important}
    .rating-table .rating-col-flowers{grid-area:flowers;display:flex;align-items:center;justify-content:flex-start;padding-top:7px}
    .rating-table td:nth-child(3)::before,.rating-col-power::before,.rating-col-achievement::before,.rating-col-pk::before,.rating-col-flowers::before{content:attr(data-label-ru);display:block;color:#64788f;font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
    html[lang="en"] .rating-table td:nth-child(3)::before,html[lang="en"] .rating-col-power::before,html[lang="en"] .rating-col-achievement::before,html[lang="en"] .rating-col-pk::before,html[lang="en"] .rating-col-flowers::before{content:attr(data-label-en)}
    .rating-col-power strong{font-size:16px}
    .rating-col-achievement,.rating-col-pk,.rating-col-flowers{gap:5px}.rating-col-achievement span,.rating-col-pk span,.rating-col-flowers span{margin:0}
    .rating-rank{width:40px;height:40px}
    .rating-footer__inner{align-items:flex-start;flex-direction:column}
}

@media(max-width:460px){
    .rating-hero__stats{grid-template-columns:1fr}
    .rating-stat--live{grid-column:auto}
    .rating-search{grid-template-columns:auto minmax(0,1fr) auto}
    .rating-search__clear{display:none}
    .rating-search button{padding:0 9px}
    .rating-table tr{grid-template-columns:48px minmax(0,1fr) auto;padding:12px;margin:8px}
    .rating-player-mark{display:none}
    .rating-col-player{gap:0}
    .rating-col-player strong{font-size:13px}
    .rating-pager{padding:14px 8px;gap:4px}.rating-pager a,.rating-pager span{min-width:31px;height:31px}
}

@media(prefers-reduced-motion:reduce){
    .rating-table tbody tr,.rating-search button{transition:none}
}

/* RATING 2.0 — compact leaderboard */
.rating-main{padding:28px 0 44px}
.rating-hero{
    grid-template-columns:minmax(0,1.58fr) minmax(280px,.58fr);
    gap:16px;
    padding:22px;
    border-radius:22px;
    box-shadow:0 20px 58px rgba(0,0,0,.24);
}
.rating-hero h1{
    margin:5px 0 8px;
    font-size:clamp(34px,4.35vw,52px);
    line-height:1;
}
.rating-hero p{font-size:14px;line-height:1.55}
.rating-hero__stats{gap:8px}
.rating-stat{
    min-height:78px;
    gap:5px;
    padding:13px 14px;
    border-radius:14px;
}
.rating-stat span{font-size:11px}
.rating-stat strong{font-size:18px}
.rating-stat--live{min-height:42px;padding:9px 12px}
.rating-live-dot{width:7px;height:7px;box-shadow:0 0 0 4px rgba(103,217,154,.07),0 0 16px rgba(103,217,154,.38)}

.rating-podium{gap:8px;margin-top:10px}
.podium-card{
    min-height:194px;
    padding:16px;
    border-radius:18px;
    box-shadow:0 14px 38px rgba(0,0,0,.18);
}
.podium-card--first{min-height:210px}
.podium-card__rank{
    width:34px;height:34px;
    border-radius:10px;
    font-size:14px;
}
.podium-card__crown{top:14px;right:16px;font-size:19px}
.podium-card h2{
    margin:12px 0 8px;
    font-size:clamp(21px,2.15vw,28px);
}
.podium-card__meta{gap:8px;margin-bottom:11px}
.podium-card__meta small{font-size:9px}
.podium-card__meta b{font-size:13px}
.rating-gender{
    min-width:28px;
    width:28px;
    height:28px;
    padding:0;
    border-radius:9px;
    font-size:16px;
    line-height:1;
}
.podium-card__power{padding-top:10px}
.podium-card__power small{margin-bottom:4px;font-size:9px}
.podium-card__power strong{font-size:23px}
.podium-card__achievement,.podium-card__pk,.podium-card__flowers{gap:6px;margin-top:7px;font-size:11px}
.podium-card__achievement b,.podium-card__pk b,.podium-card__flowers b{font-size:13px}

.rating-board{
    margin-top:10px;
    border-radius:18px;
    box-shadow:0 17px 48px rgba(0,0,0,.19);
}
.rating-board__head{
    align-items:center;
    gap:16px;
    padding:15px 16px;
}
.rating-board__head h2{margin-top:3px;font-size:clamp(22px,2.4vw,28px)}
.rating-search{
    min-width:min(100%,360px);
    gap:6px;
    padding:4px 4px 4px 10px;
    border-radius:12px;
}
.rating-search>span{font-size:16px}
.rating-search input{height:32px;font-size:12px}
.rating-search button{height:32px;padding:0 12px;border-radius:8px;font-size:11px}
.rating-search__clear{width:26px;height:26px;border-radius:7px;font-size:16px}

.rating-table th{
    height:38px;
    padding:0 11px;
    font-size:9px;
    letter-spacing:.065em;
}
.rating-table td{
    height:50px;
    padding:6px 11px;
    font-size:12px;
}
.rating-col-rank{width:60px}
.rating-table th:nth-child(3){width:96px}
.rating-table th:nth-child(4){width:68px}
.rating-table th:nth-child(5){width:180px}
.rating-table th:nth-child(6){width:145px}
.rating-table th:nth-child(7){width:125px}
.rating-table th:nth-child(8){width:145px}
.rating-rank{
    width:28px;height:28px;
    border-radius:9px;
    font-size:11px;
}
.rating-col-player{gap:8px}
.rating-col-player strong{font-size:13px}
.rating-player-mark{font-size:8px}
.rating-level{
    min-height:24px;
    padding:0 7px;
    border-radius:7px;
    font-size:10px;
}
.rating-col-power strong{font-size:14px}
.rating-col-achievement span,.rating-col-pk span,.rating-col-flowers span{margin-right:4px;font-size:12px}
.rating-col-achievement strong,.rating-col-pk strong,.rating-col-flowers strong{font-size:13px}
.rating-pager{gap:5px;padding:12px}
.rating-pager a,.rating-pager span{min-width:30px;height:30px;border-radius:8px;font-size:11px}
.rating-footer{padding-bottom:20px}
.rating-footer__inner{padding-top:12px}

@media(max-width:920px){
    .rating-main{padding-top:22px}
    .rating-hero{grid-template-columns:1fr;padding:19px}
    .rating-hero__stats{grid-template-columns:1fr 1fr}
    .rating-stat{min-height:68px}
    .rating-stat--live{min-height:40px}
    .rating-podium{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
    .podium-card,.podium-card--first{min-height:184px}
    .podium-card--first{grid-row:auto;grid-column:auto}
    .rating-board__head{align-items:stretch}
}

@media(max-width:720px){
    .rating-main{padding:18px 0 34px}
    .rating-hero{padding:16px;border-radius:17px}
    .rating-hero h1{font-size:clamp(31px,9vw,42px)}
    .rating-hero p{font-size:13px;line-height:1.5}
    .rating-stat{min-height:62px;padding:11px 12px}
    .rating-stat strong{font-size:16px}
    .rating-podium{grid-template-columns:1fr;gap:6px;margin-top:8px}
    .podium-card,.podium-card--first{
        min-height:0;
        padding:13px 14px;
        border-radius:15px;
    }
    .podium-card--first{order:-1}
    .podium-card__rank{width:30px;height:30px;font-size:12px}
    .podium-card__crown{top:12px;right:14px;font-size:16px}
    .podium-card h2{margin:9px 0 6px;font-size:23px}
    .podium-card__meta{margin-bottom:8px}
    .podium-card__power{padding-top:8px}
    .podium-card__power strong{font-size:21px}
    .podium-card__achievement{margin-top:7px}
    .rating-board{margin-top:8px;border-radius:16px}
    .rating-board__head{padding:13px 14px}
    .rating-board__head h2{font-size:23px}

    .rating-table tr{
        grid-template-columns:42px minmax(0,1fr) auto;
        gap:5px 8px;
        margin:6px 8px;
        padding:10px 11px;
        border-radius:13px;
    }
    .rating-table .rating-col-power,
    .rating-table .rating-col-achievement,
    .rating-table .rating-col-pk{padding-top:8px!important}
    .rating-table .rating-col-flowers{padding-top:6px!important}
    .rating-rank{width:32px;height:32px}
    .rating-gender{width:26px;min-width:26px;height:26px;border-radius:8px;font-size:15px}
    .rating-level{min-height:22px;font-size:9px}
    .rating-col-power strong{font-size:14px}
    .rating-col-achievement strong,.rating-col-pk strong,.rating-col-flowers strong{font-size:12px}
    .rating-pager{padding:10px 7px}
}

@media(max-width:460px){
    .rating-hero__stats{grid-template-columns:1fr 1fr}
    .rating-stat--live{grid-column:1/-1}
    .rating-table tr{grid-template-columns:38px minmax(0,1fr) auto;margin:5px 7px;padding:9px 10px}
    .rating-col-player strong{font-size:12px}
    .rating-rank{width:30px;height:30px}
    .rating-pager a,.rating-pager span{min-width:28px;height:28px}
}

/* =========================================================
   RATING AVATARS 5.0 — compact shared account avatars
   ========================================================= */
.podium-card__identity{
    min-width:0;
    display:flex;
    align-items:center;
    gap:10px;
    margin:12px 0 8px;
}
.podium-card__identity h2{
    min-width:0;
    margin:0;
}
.podium-card__avatar{
    width:50px;
    height:50px;
    flex:0 0 50px;
    display:block;
    object-fit:cover;
    object-position:center;
    border:1px solid rgba(255,255,255,.11);
    border-radius:12px;
    background:#07101d;
    box-shadow:0 8px 20px rgba(0,0,0,.20);
}
.podium-card--first .podium-card__avatar{
    border-color:rgba(239,199,110,.38);
    box-shadow:0 8px 22px rgba(0,0,0,.22),0 0 18px rgba(239,199,110,.08);
}
.rating-player-avatar{
    width:30px;
    height:30px;
    flex:0 0 30px;
    display:block;
    object-fit:cover;
    object-position:center;
    border:1px solid rgba(255,255,255,.09);
    border-radius:8px;
    background:#07101d;
}
tr.is-top-1 .rating-player-avatar{border-color:rgba(239,199,110,.30)}

@media(max-width:680px){
    .podium-card__avatar{
        width:46px;
        height:46px;
        flex-basis:46px;
        border-radius:11px;
    }
    .rating-player-avatar{
        width:32px;
        height:32px;
        flex-basis:32px;
    }
    .rating-col-player{
        gap:7px!important;
    }
}

@media(max-width:460px){
    .rating-player-avatar{
        width:30px;
        height:30px;
        flex-basis:30px;
        border-radius:7px;
    }
    .rating-col-player{gap:7px!important}
}

/* =========================================================
   RATING v76 — character profile modal
   ========================================================= */
.rating-profile-trigger{
    -webkit-appearance:none;
    appearance:none;
    font:inherit;
}
.podium-card__identity.rating-profile-trigger{
    width:100%;
    padding:0;
    border:0;
    outline:0;
    background:transparent;
    color:inherit;
    text-align:left;
    cursor:pointer;
    transition:transform .16s ease,opacity .16s ease;
}
.podium-card__identity.rating-profile-trigger:hover{transform:translateY(-1px)}
.podium-card__identity.rating-profile-trigger:focus-visible{
    border-radius:13px;
    box-shadow:0 0 0 2px rgba(239,199,110,.24);
}
.podium-card__identity-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.podium-card__identity-copy h2{max-width:100%}
.podium-card__identity-copy small{
    color:#687d95;
    font-size:9px;
    font-weight:850;
    letter-spacing:.055em;
    text-transform:uppercase;
    transition:color .16s ease;
}
.podium-card__identity.rating-profile-trigger:hover .podium-card__identity-copy small{color:#b9c8d9}
.rating-profile-trigger__arrow{
    margin-left:auto;
    flex:0 0 auto;
    color:#6f8399;
    font-size:13px;
    opacity:.72;
    transition:color .16s ease,transform .16s ease,opacity .16s ease;
}
.rating-profile-trigger:hover .rating-profile-trigger__arrow{
    color:#e6c779;
    opacity:1;
    transform:translate(1px,-1px);
}
.rating-player-open{
    min-width:0;
    max-width:100%;
    display:flex;
    align-items:center;
    gap:8px;
    padding:2px 4px 2px 0;
    border:0;
    outline:0;
    border-radius:10px;
    background:transparent;
    color:inherit;
    text-align:left;
    cursor:pointer;
}
.rating-player-open:focus-visible{box-shadow:0 0 0 2px rgba(239,199,110,.20)}
.rating-player-open__copy{min-width:0;display:flex;flex-direction:column;gap:1px}
.rating-player-open__copy strong{
    min-width:0;
    max-width:100%;
    overflow:hidden;
    color:#e7edf4;
    font-size:13px;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.rating-player-open__copy small{
    color:#586d85;
    font-size:8px;
    font-weight:850;
    letter-spacing:.05em;
    text-transform:uppercase;
}
.rating-player-open:hover .rating-player-open__copy strong{color:#f4e1b4}
.rating-player-open:hover .rating-player-avatar{border-color:rgba(239,199,110,.28)}

body.rating-profile-open{overflow:hidden}
.rating-profile-modal[hidden]{display:none!important}
.rating-profile-modal{
    position:fixed;
    inset:0;
    z-index:1200;
    display:grid;
    place-items:center;
    padding:22px;
    opacity:0;
    pointer-events:none;
    transition:opacity .34s cubic-bezier(.22,.61,.36,1);
}
.rating-profile-modal.is-open{opacity:1;pointer-events:auto}
.rating-profile-modal__backdrop{
    position:absolute;
    inset:0;
    opacity:0;
    background:rgba(1,5,12,.76);
    -webkit-backdrop-filter:blur(9px);
    backdrop-filter:blur(9px);
    transition:opacity .38s cubic-bezier(.22,.61,.36,1);
}
.rating-profile-modal.is-open .rating-profile-modal__backdrop{opacity:1}
.rating-profile-card{
    position:relative;
    z-index:1;
    width:min(720px,100%);
    max-height:min(760px,calc(100vh - 44px));
    overflow:auto;
    padding:22px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:24px;
    outline:0;
    background:
        radial-gradient(circle at 86% 5%,rgba(239,199,110,.11),transparent 27%),
        radial-gradient(circle at 8% 18%,rgba(73,125,196,.12),transparent 28%),
        linear-gradient(155deg,rgba(12,26,47,.98),rgba(4,10,20,.99) 62%);
    box-shadow:0 34px 110px rgba(0,0,0,.62),inset 0 1px rgba(255,255,255,.035);
    opacity:0;
    transform:translateY(22px) scale(.965);
    filter:blur(1.5px);
    transition:transform .42s cubic-bezier(.16,1,.3,1),opacity .28s ease,filter .36s ease;
    will-change:transform,opacity;
    scrollbar-width:thin;
    scrollbar-color:rgba(117,139,165,.35) transparent;
}
.rating-profile-modal.is-open .rating-profile-card{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
.rating-profile-card::before{
    content:"";
    position:absolute;
    top:0;
    left:18%;
    right:18%;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(239,199,110,.55),transparent);
}
.rating-profile-card__close{
    position:absolute;
    z-index:3;
    top:14px;
    right:14px;
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid rgba(255,255,255,.085);
    border-radius:10px;
    background:rgba(3,9,18,.58);
    color:#8ea0b4;
    font:400 23px/1 var(--font);
    cursor:pointer;
    transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;
}
.rating-profile-card__close:hover{
    color:#eef3f8;
    border-color:rgba(255,255,255,.15);
    background:rgba(255,255,255,.055);
    transform:rotate(3deg);
}
.rating-profile-card__hero{
    display:grid;
    grid-template-columns:90px minmax(0,1fr) auto;
    gap:16px;
    align-items:center;
    padding:3px 42px 19px 0;
    border-bottom:1px solid rgba(255,255,255,.065);
}
.rating-profile-card__avatar-wrap{
    position:relative;
    width:90px;
    height:90px;
}
.rating-profile-card__avatar{
    width:90px;
    height:90px;
    display:block;
    object-fit:cover;
    object-position:center;
    border:1px solid rgba(239,199,110,.30);
    border-radius:20px;
    background:#07101d;
    box-shadow:0 15px 36px rgba(0,0,0,.34),0 0 26px rgba(239,199,110,.055);
}
.rating-profile-card__online-ring{
    position:absolute;
    right:-3px;
    bottom:-3px;
    width:20px;
    height:20px;
    border:4px solid #07101d;
    border-radius:50%;
    background:#67d99a;
    box-shadow:0 0 15px rgba(103,217,154,.38);
}
.rating-profile-card__identity{min-width:0}
.rating-profile-card__identity h2{
    margin:5px 0 9px;
    overflow:hidden;
    color:#f4f6fa;
    font-family:var(--title);
    font-size:clamp(28px,5vw,38px);
    line-height:1;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.rating-profile-card__badges{display:flex;flex-wrap:wrap;gap:6px}
.rating-profile-badge{
    min-height:27px;
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:0 9px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:8px;
    background:rgba(255,255,255,.03);
    color:#9cafc4;
    font-size:10px;
    font-weight:850;
}
.rating-profile-badge--class{color:#dfc485;border-color:rgba(239,199,110,.15);background:rgba(239,199,110,.055)}
.rating-profile-badge--server{color:#95b9df}
.rating-profile-card__rank{
    min-width:68px;
    min-height:64px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:8px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:15px;
    background:rgba(2,8,17,.48);
}
.rating-profile-card__rank small{color:#687d94;font-size:8px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.rating-profile-card__rank b{margin-top:3px;color:#d9e3ed;font-size:20px;line-height:1}
.rating-profile-card__rank.is-top-1{border-color:rgba(239,199,110,.30);background:rgba(239,199,110,.075)}
.rating-profile-card__rank.is-top-1 b{color:#f0ce7d}
.rating-profile-card__rank.is-top-2 b{color:#c5d4e4}
.rating-profile-card__rank.is-top-3 b{color:#d3a274}

.rating-profile-social{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:12px;
}
.rating-profile-social__item{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:48px;
    padding:10px 13px;
    border:1px solid rgba(255,255,255,.065);
    border-radius:13px;
    background:rgba(255,255,255,.022);
}
.rating-profile-social__item small{color:#71859b;font-size:9px;font-weight:850;letter-spacing:.055em;text-transform:uppercase}
.rating-profile-social__item strong{color:#cbd7e4;font-size:12px}
.rating-profile-social__item.is-male strong{color:#80bdff}
.rating-profile-social__item.is-female strong{color:#efa6d5}
.rating-profile-social__item.is-married strong{color:#e5bdcb}
.rating-profile-social__item.is-single strong{color:#b8c6d6}

.rating-profile-power{
    position:relative;
    overflow:hidden;
    min-height:86px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-top:8px;
    padding:15px 17px;
    border:1px solid rgba(239,199,110,.16);
    border-radius:15px;
    background:
        radial-gradient(circle at 87% 50%,rgba(239,199,110,.11),transparent 28%),
        linear-gradient(110deg,rgba(239,199,110,.055),rgba(255,255,255,.018));
}
.rating-profile-power::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(110deg,transparent 25%,rgba(255,255,255,.025) 45%,transparent 65%);
}
.rating-profile-power div{position:relative;z-index:1}
.rating-profile-power small{display:block;color:#b99e66;font-size:9px;font-weight:950;letter-spacing:.11em}
.rating-profile-power strong{display:block;margin-top:5px;color:#f2d68f;font-size:30px;line-height:1}
.rating-profile-power>span{position:relative;z-index:1;color:rgba(239,199,110,.55);font-size:34px;text-shadow:0 0 26px rgba(239,199,110,.18)}

.rating-profile-stats{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:7px;
    margin-top:8px;
}
.rating-profile-stat{
    min-width:0;
    min-height:66px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    padding:10px 11px;
    border:1px solid rgba(255,255,255,.06);
    border-radius:12px;
    background:rgba(255,255,255,.022);
}
.rating-profile-stat small{overflow:hidden;color:#687d94;font-size:8px;font-weight:900;letter-spacing:.045em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}
.rating-profile-stat b{overflow:hidden;color:#dce5ef;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.rating-profile-stat--rating b{color:#ead08e}
.rating-profile-stat--hp b{color:#95c8aa}
.rating-profile-stat--achievements b{color:#dce5ef}
.rating-profile-stat--pk b{color:#e3afb8}
.rating-profile-stat--flowers b{color:#efb8cf}

.rating-profile-meta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:8px;
}
.rating-profile-meta>span{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:10px 12px;
    border-top:1px solid rgba(255,255,255,.05);
}
.rating-profile-meta small{color:#5f738b;font-size:8px;font-weight:850;letter-spacing:.055em;text-transform:uppercase}
.rating-profile-meta b{overflow:hidden;color:#9eb0c3;font-size:10px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:720px){
    .rating-profile-modal{padding:12px}
    .rating-profile-card{max-height:calc(100vh - 24px);padding:17px;border-radius:19px}
    .rating-profile-card__hero{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:2px 38px 15px 0}
    .rating-profile-card__avatar-wrap,.rating-profile-card__avatar{width:72px;height:72px}
    .rating-profile-card__avatar{border-radius:16px}
    .rating-profile-card__online-ring{width:17px;height:17px;border-width:3px}
    .rating-profile-card__identity h2{font-size:29px}
    .rating-profile-card__rank{grid-column:1/-1;min-height:40px;flex-direction:row;gap:6px;justify-content:flex-start;padding:7px 10px;border-radius:11px}
    .rating-profile-card__rank b{margin:0;font-size:15px}
    .rating-profile-social{grid-template-columns:1fr 1fr}
    .rating-profile-power{min-height:75px;padding:13px 14px}
    .rating-profile-power strong{font-size:25px}
    .rating-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rating-profile-stat--flowers{grid-column:1/-1}
}

@media(max-width:460px){
    .podium-card__identity-copy small{display:none}
    .rating-player-open__copy small{display:none}
    .rating-player-open .rating-profile-trigger__arrow{display:none}
    .rating-profile-card__hero{grid-template-columns:62px minmax(0,1fr);gap:10px}
    .rating-profile-card__avatar-wrap,.rating-profile-card__avatar{width:62px;height:62px}
    .rating-profile-card__avatar{border-radius:14px}
    .rating-profile-card__identity h2{margin:4px 0 7px;font-size:25px}
    .rating-profile-badge{min-height:24px;padding:0 7px;font-size:9px}
    .rating-profile-social{grid-template-columns:1fr;gap:6px}
    .rating-profile-social__item{min-height:43px;padding:8px 11px}
    .rating-profile-power{min-height:68px}
    .rating-profile-power strong{font-size:22px}
    .rating-profile-power>span{font-size:28px}
    .rating-profile-stat{min-height:59px;padding:8px 9px}
    .rating-profile-stat b{font-size:13px}
    .rating-profile-meta{grid-template-columns:1fr;gap:0}
}

@media(prefers-reduced-motion:reduce){
    .rating-profile-modal,.rating-profile-modal__backdrop,.rating-profile-card,.rating-profile-trigger__arrow,.podium-card__identity.rating-profile-trigger{transition:none}
}


/* RATING 2.2 — 24h auto update badge + compact hero stats */
.rating-hero__stats{
    align-content:center;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:7px;
}
.rating-stat:not(.rating-stat--live){
    position:relative;
    overflow:hidden;
    min-height:58px;
    justify-content:center;
    gap:3px;
    padding:9px 11px;
    border-color:rgba(255,255,255,.07);
    border-radius:12px;
    background:
        radial-gradient(circle at 92% 15%,rgba(117,155,211,.075),transparent 38%),
        linear-gradient(145deg,rgba(8,18,34,.62),rgba(4,10,20,.64));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}
.rating-stat:not(.rating-stat--live)::after{
    content:"";
    position:absolute;
    left:10px;
    right:10px;
    bottom:0;
    height:1px;
    opacity:.65;
    background:linear-gradient(90deg,transparent,rgba(122,160,210,.30),transparent);
}
.rating-stat:not(.rating-stat--live) span{
    position:relative;
    z-index:1;
    color:#71869e;
    font-size:9px;
    font-weight:850;
    line-height:1.2;
    letter-spacing:.045em;
    text-transform:uppercase;
}
.rating-stat:not(.rating-stat--live) strong{
    position:relative;
    z-index:1;
    overflow:hidden;
    color:#e8eef6;
    font-size:15px;
    font-weight:900;
    line-height:1.1;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.rating-stat:not(.rating-stat--live):first-child strong{
    color:#f1d48d;
    font-size:17px;
}
.rating-stat--live{
    min-height:34px;
    gap:8px;
    padding:7px 10px;
    border-radius:11px;
    background:linear-gradient(90deg,rgba(70,150,113,.055),rgba(5,12,24,.50));
}
.rating-stat--live span:last-child{
    color:#87a695;
    font-size:10px;
    font-weight:850;
    letter-spacing:.035em;
}
.rating-live-dot{
    width:6px;
    height:6px;
    box-shadow:0 0 0 3px rgba(103,217,154,.065),0 0 13px rgba(103,217,154,.34);
}

@media(max-width:980px){
    .rating-stat:not(.rating-stat--live){min-height:54px;padding:8px 10px}
    .rating-stat:not(.rating-stat--live) strong{font-size:14px}
    .rating-stat:not(.rating-stat--live):first-child strong{font-size:16px}
}

@media(max-width:460px){
    .rating-hero__stats{gap:6px}
    .rating-stat:not(.rating-stat--live){min-height:52px;padding:8px 9px;border-radius:11px}
    .rating-stat:not(.rating-stat--live) span{font-size:8px;letter-spacing:.025em}
    .rating-stat:not(.rating-stat--live) strong{font-size:13px}
    .rating-stat:not(.rating-stat--live):first-child strong{font-size:15px}
    .rating-stat--live{min-height:32px;padding:6px 9px}
    .rating-stat--live span:last-child{font-size:9px}
}

/* =========================================================
   RATING 9.1 — phone/tablet layout hardening
   ========================================================= */
@media(max-width:820px){
    .rating-main{padding-top:24px}
    .rating-hero{grid-template-columns:1fr;padding:22px}
    .rating-hero__stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rating-podium{grid-template-columns:1fr}
    .podium-card,.podium-card--first{min-height:0}
}
@media(max-width:600px){
    .rating-shell,.rating-topbar .cab-container{width:calc(100% - 18px)}
    .rating-hero{padding:16px;border-radius:18px}
    .rating-hero h1{font-size:clamp(32px,11vw,46px)}
    .rating-hero p{font-size:13px;line-height:1.55}
    .rating-hero__stats{grid-template-columns:1fr}
    .rating-stat,.rating-stat--live{grid-column:auto;min-height:0;padding:12px 14px;border-radius:13px}
    .rating-board{border-radius:16px;overflow-x:auto;-webkit-overflow-scrolling:touch}
    .rating-board table{min-width:680px}
}

/* Rating surfaces aligned with the Nestborn 11.0 visual system. */
.rating-hero,
.rating-board,
.podium-card,
.rating-profile-card,
.rating-stat{
    border-color:var(--nb-border-soft,rgba(150,184,224,.12));
    box-shadow:var(--nb-card-shadow,0 18px 48px rgba(0,0,0,.25));
    backdrop-filter:blur(20px) saturate(126%);
    -webkit-backdrop-filter:blur(20px) saturate(126%);
}
.rating-hero,
.rating-board{border-radius:22px}
.podium-card,
.rating-stat{border-radius:16px}
.rating-profile-card{
    border-radius:22px;
    box-shadow:var(--nb-dialog-shadow,0 34px 110px rgba(0,0,0,.62));
}
.rating-profile-modal__backdrop{
    background:rgba(0,5,13,.76);
    backdrop-filter:blur(11px) saturate(112%);
    -webkit-backdrop-filter:blur(11px) saturate(112%);
}
.podium-card,
.rating-stat{
    transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.podium-card:hover,
.rating-stat:hover{
    transform:translateY(-2px);
    border-color:rgba(105,168,255,.20);
    box-shadow:var(--nb-card-shadow-hover,0 24px 62px rgba(0,0,0,.32));
}

/* =========================================================
   RATING v119 — final visual/mobile audit
   ========================================================= */
.rating-search input,
.rating-search button,
.rating-profile-trigger,
.rating-board a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.rating-search input:focus-visible,
.rating-search button:focus-visible,
.rating-profile-trigger:focus-visible{
    outline:2px solid rgba(105,168,255,.56);
    outline-offset:2px;
}
.rating-table-wrap{scrollbar-width:thin;scrollbar-color:rgba(121,157,198,.28) transparent}
.rating-table-wrap::-webkit-scrollbar{height:7px}
.rating-table-wrap::-webkit-scrollbar-thumb{border-radius:999px;background:rgba(121,157,198,.25)}

@media(max-width:820px){
    .rating-main{padding:20px 0 34px}
    .rating-shell{width:calc(100% - 20px)}
    .rating-hero,
    .rating-board,
    .podium-card,
    .rating-stat,
    .rating-profile-card{
        backdrop-filter:none!important;
        -webkit-backdrop-filter:none!important;
        box-shadow:0 14px 36px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.025);
    }
    .rating-hero{gap:16px;padding:20px;border-radius:18px}
    .rating-podium{gap:9px}
    .podium-card{padding:17px;border-radius:16px}
    .rating-board{border-radius:16px}
    .rating-board__head{padding:15px}
    .rating-table tr{box-shadow:0 9px 24px rgba(0,0,0,.13)}
    .rating-profile-modal__backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(0,4,11,.82)!important}
}

@media(max-width:600px){
    .rating-shell,.rating-topbar .cab-container{width:calc(100% - 14px)}
    .rating-main{padding-top:14px;padding-bottom:24px}
    .rating-hero{padding:15px;border-radius:16px}
    .rating-hero h1{font-size:clamp(30px,10vw,40px);line-height:1.02}
    .rating-hero p{font-size:12px;line-height:1.55}
    .rating-hero__stats{gap:6px}
    .rating-stat,.rating-stat--live{padding:10px 11px;border-radius:11px}
    .rating-podium{margin-top:9px}
    .podium-card{min-height:0!important;padding:14px}
    .podium-card h2{margin:13px 0 9px;font-size:26px}
    .podium-card__power strong{font-size:26px}
    .rating-board__head{padding:12px}
    .rating-board__head h2{font-size:22px}
    .rating-table-wrap{overflow:visible}
    .rating-table tr{margin:6px 0;padding:10px;border-radius:13px}
    .rating-empty{padding:36px 16px}
    .rating-empty>span{width:48px;height:48px;border-radius:14px}
    .rating-empty h3{font-size:24px}
    .rating-empty p{font-size:12px}
    .rating-profile-modal{align-items:end;padding:8px 8px max(8px,env(safe-area-inset-bottom))}
    .rating-profile-card{
        width:100%;
        max-width:100%;
        max-height:calc(100dvh - 16px - env(safe-area-inset-bottom));
        border-radius:18px 18px 14px 14px;
        padding:14px;
    }
}

@media(max-width:430px){
    .rating-shell,.rating-topbar .cab-container{width:calc(100% - 12px)}
    .rating-hero{padding:13px}
    .rating-stat:not(.rating-stat--live){min-height:49px}
    .podium-card{padding:12px}
    .rating-table tr{padding:9px}
}

@media(hover:none),(pointer:coarse){
    .podium-card:hover,
    .rating-stat:hover,
    .rating-player-open:hover{transform:none!important}
}

/* =========================================================
   RATING v138 — tournament presentation + unified empty/modal UI
   ========================================================= */
.rating-podium{
    grid-template-columns:minmax(0,1fr) minmax(0,1.14fr) minmax(0,1fr)!important;
    gap:12px!important;
    align-items:end!important;
    padding-top:18px;
}
.podium-card{
    --podium-accent:126,160,198;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    min-height:224px!important;
    padding:18px!important;
    border:1px solid rgba(var(--podium-accent),.22)!important;
    border-radius:19px!important;
    background:
        radial-gradient(circle at 50% 0,rgba(var(--podium-accent),.11),transparent 35%),
        linear-gradient(155deg,rgba(11,25,43,.90),rgba(4,11,22,.95))!important;
    box-shadow:0 20px 52px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.045)!important;
    transition:transform .18s cubic-bezier(.2,.75,.25,1),border-color .18s ease,box-shadow .18s ease!important;
}
.podium-card::before{
    content:"";
    position:absolute;
    z-index:-1;
    inset:0;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(var(--podium-accent),.055),transparent 45%);
}
.podium-card--first{
    --podium-accent:239,199,110;
    min-height:250px!important;
    transform:translateY(-12px);
    border-color:rgba(239,199,110,.38)!important;
    background:
        radial-gradient(circle at 50% -4%,rgba(239,199,110,.20),transparent 39%),
        linear-gradient(155deg,rgba(28,29,38,.94),rgba(7,12,21,.97))!important;
    box-shadow:0 30px 76px rgba(0,0,0,.35),0 0 42px rgba(239,199,110,.07),inset 0 1px 0 rgba(255,244,214,.065)!important;
}
.podium-card--second{--podium-accent:187,205,226}
.podium-card--third{--podium-accent:194,137,84}
.podium-card:hover{transform:translateY(-3px);border-color:rgba(var(--podium-accent),.34)!important;box-shadow:0 27px 66px rgba(0,0,0,.33),0 0 30px rgba(var(--podium-accent),.055),inset 0 1px 0 rgba(255,255,255,.055)!important}
.podium-card--first:hover{transform:translateY(-16px)}
.podium-card__rank{
    width:38px!important;height:38px!important;
    border-color:rgba(var(--podium-accent),.30)!important;
    color:rgb(var(--podium-accent))!important;
    background:rgba(var(--podium-accent),.08)!important;
    box-shadow:0 0 18px rgba(var(--podium-accent),.08),inset 0 1px 0 rgba(255,255,255,.04)!important;
    font-size:14px!important;
}
.podium-card--first .podium-card__rank{width:44px!important;height:44px!important;font-size:16px!important}
.podium-card__crown{color:rgb(var(--podium-accent))!important;text-shadow:0 0 18px rgba(var(--podium-accent),.24)!important}
.podium-card--first .podium-card__crown{font-size:25px!important}
.podium-card__avatar{
    border-color:rgba(var(--podium-accent),.32)!important;
    box-shadow:0 10px 28px rgba(0,0,0,.28),0 0 22px rgba(var(--podium-accent),.08)!important;
}
.podium-card--first .podium-card__avatar{width:66px!important;height:66px!important}
.podium-card__identity h2{color:#f0f5fb!important}
.podium-card__power{
    border-top-color:rgba(var(--podium-accent),.13)!important;
    background:linear-gradient(90deg,rgba(var(--podium-accent),.035),transparent)!important;
}
.podium-card__power strong{color:rgb(var(--podium-accent))!important;text-shadow:0 0 18px rgba(var(--podium-accent),.10)!important}

.rating-board{
    border-color:rgba(143,181,224,.14)!important;
    border-radius:20px!important;
    background:linear-gradient(155deg,rgba(10,23,41,.82),rgba(4,11,22,.90))!important;
    box-shadow:0 22px 62px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.rating-table tbody tr{
    position:relative;
    transition:background .15s ease,box-shadow .15s ease!important;
}
.rating-table tbody tr:hover{background:rgba(105,168,255,.028)!important;box-shadow:inset 3px 0 0 rgba(105,168,255,.30)}
.rating-table tbody tr.is-top-1{box-shadow:inset 3px 0 0 rgba(239,199,110,.72)}
.rating-table tbody tr.is-top-2{box-shadow:inset 3px 0 0 rgba(187,205,226,.56)}
.rating-table tbody tr.is-top-3{box-shadow:inset 3px 0 0 rgba(194,137,84,.58)}

.rating-empty{
    min-height:88px!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    align-items:center!important;
    gap:12px!important;
    padding:13px 15px!important;
    margin:12px!important;
    border:1px solid rgba(126,163,204,.12)!important;
    border-radius:14px!important;
    background:radial-gradient(circle at 0 50%,rgba(105,168,255,.065),transparent 27%),rgba(4,12,23,.46)!important;
    text-align:left!important;
}
.rating-empty>span{
    width:42px;height:42px;
    display:grid;place-items:center;
    grid-row:1/3;
    border:1px solid rgba(105,168,255,.15);
    border-radius:12px;
    color:#83b7ef!important;
    background:rgba(105,168,255,.065);
    font-size:15px!important;
}
.rating-empty h3{margin:0!important;font-size:13px!important}
.rating-empty p{margin:3px 0 0!important;font-size:9px!important;line-height:1.45!important}

/* Rating profile uses the same dialog geometry/motion as the cabinet. */
.rating-profile-modal__backdrop{
    background:rgba(0,5,13,.78)!important;
    backdrop-filter:blur(11px) saturate(112%)!important;
    -webkit-backdrop-filter:blur(11px) saturate(112%)!important;
}
.rating-profile-card{
    width:min(720px,calc(100vw - 36px))!important;
    max-width:720px!important;
    max-height:min(82vh,760px)!important;
    border-radius:21px!important;
    border-color:rgba(170,205,242,.22)!important;
    background:linear-gradient(155deg,rgba(12,28,49,.99),rgba(4,11,23,.995))!important;
    box-shadow:0 34px 100px rgba(0,0,0,.58),0 0 54px rgba(71,132,207,.055),inset 0 1px 0 rgba(255,255,255,.05)!important;
    transition:opacity .16s ease,transform .20s cubic-bezier(.2,.75,.25,1)!important;
}
.rating-profile-modal.is-open .rating-profile-card{transform:none!important;filter:none!important}

@media(max-width:760px){
    .rating-podium{grid-template-columns:1fr!important;gap:8px!important;padding-top:6px}
    .podium-card,.podium-card--first{min-height:0!important;transform:none!important}
    .podium-card--first{order:-1}
    .podium-card:hover,.podium-card--first:hover{transform:none!important}
    .rating-empty{grid-template-columns:38px minmax(0,1fr)!important;margin:8px!important;padding:10px!important;min-height:72px!important}
    .rating-empty>span{width:38px;height:38px}
    .rating-profile-card{width:calc(100vw - 16px)!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;border-radius:18px!important}
}
@media(prefers-reduced-motion:reduce){.podium-card,.rating-profile-card{transition:none!important}}

/* v140 — bilingual fit + final tournament UI polish */
.rating-hero__copy h1,.rating-board__head h2,.podium-card__identity b,.rating-profile-card__identity h2{
    min-width:0;
    overflow-wrap:anywhere;
    text-wrap:balance;
}
.rating-hero__copy p,.podium-card__meta,.rating-player-open__copy,.rating-profile-meta{
    min-width:0;
    overflow-wrap:anywhere;
    text-wrap:pretty;
}
.rating-search input,.rating-search button,.rating-pager a,.rating-pager span{
    min-height:40px;
    border-radius:10px;
}
.rating-table .rating-col-player,.rating-player-open__copy{min-width:0}
.rating-player-open__copy b,.rating-player-open__copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rating-profile-card{border-radius:20px}
@media(max-width:760px){
    .rating-player-open__copy b,.rating-player-open__copy small{white-space:normal}
    .rating-hero__copy h1{font-size:clamp(28px,8vw,38px)}
}
