/* RESKAL_MODERN_RANKINGS */

* {
    box-sizing: border-box;
}

body.rk-rankings {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI",Arial,sans-serif;
    color: #e8eff8;
    color-scheme: dark;
    background:
        linear-gradient(#090e1680,#090e16cf),
        url("cyber-background.jpg")
        center top/cover fixed no-repeat;
}

.rk-rankings a {
    color: #86dce8;
    text-decoration: none;
}

.rk-rankings a:hover {
    color: #c1f7ff;
}

.rkr-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 120px;
    padding: 12px 28px;
    background: #0b111bf5;
    border-bottom: 1px solid #416578;
}

.rkr-brand {
    grid-column: 2;
}

.rkr-brand img {
    display: block;
    width: min(540px,85vw);
    height: auto;
    mix-blend-mode: screen;
}

.rkr-topnav {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.rkr-topnav a {
    padding: 10px;
    font-size: 13px;
    color: #b6c6d8;
    border-radius: 7px;
}

.rkr-topnav a[aria-current="page"] {
    background: #65d9e718;
    color: #86e4ef;
}

.rkr-main {
    width: min(1180px,calc(100% - 48px));
    margin: 38px auto 60px;
}

.rkr-intro {
    text-align: center;
    padding: 24px 20px 32px;
}

.rkr-eyebrow {
    color: #86e4ef;
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 650;
}

.rkr-intro h1 {
    font-size: clamp(30px,4vw,46px);
    font-weight: 700;
    letter-spacing: -1px;
    margin: 14px 0;
}

.rkr-intro p {
    color: #a8b9cc;
    font-size: 15px;
}

.rkr-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: #131c29f5;
    border: 1px solid #344d60;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 24px;
}

.rkr-tabs a {
    flex: 1;
    text-align: center;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #b4c3d5;
    font-size: 14px;
}

.rkr-tabs a:hover,
.rkr-tabs a[aria-current="page"] {
    background: #65d9e714;
    border-color: #65d9e733;
    color: #86e4ef;
}

.rkr-summary {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.rkr-stat,
.rkr-panel {
    background: #131c29f5;
    border: 1px solid #344d60;
    border-radius: 16px;
    box-shadow: 0 15px 40px #0004;
}

.rkr-stat {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rkr-stat span {
    color: #a4b5c9;
    font-size: 13px;
}

.rkr-stat strong {
    color: #86e4ef;
    font-size: 30px;
    overflow-wrap: anywhere;
}

.rkr-stat strong.rkr-small {
    font-size: 22px;
}

.rkr-panel {
    padding: 26px;
}

.rkr-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.rkr-panel-heading h2 {
    font-size: 23px;
    margin: 0;
}

.rkr-refresh {
    border: 1px solid #416578;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
}

.rkr-table-scroll {
    overflow-x: auto;
}

.rkr-panel table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.rkr-panel th {
    color: #86e4ef;
    background: #1c2938;
    font-weight: 600;
    padding: 15px;
    white-space: nowrap;
}

.rkr-panel td {
    padding: 15px;
    border-bottom: 1px solid #344657;
}

.rkr-panel tbody tr:hover {
    background: #65d9e709;
}

.rkr-rank {
    display: inline-block;
    min-width: 44px;
    padding: 6px 10px;
    text-align: center;
    border-radius: 7px;
    background: #65d9e714;
    color: #86e4ef;
}

.rkr-rank-1 {
    background: #b88b3525;
    color: #f4d68d;
}

.rkr-rank-2 {
    background: #aebed425;
    color: #dbe8f8;
}

.rkr-rank-3 {
    background: #a9754925;
    color: #e5b18a;
}

.rkr-empty {
    text-align: center;
    padding: 50px 20px;
    background: #0b121d;
    border: 1px dashed #344d60;
    border-radius: 12px;
}

.rkr-empty svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: #86e4ef;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rkr-empty h3 {
    font-size: 22px;
}

.rkr-empty p,
.rkr-note {
    color: #a4b5c9;
    font-size: 14px;
    line-height: 1.6;
}

.rkr-button {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(110deg,#4fc8d9,#8ee8ef);
    border-radius: 8px;
    color: #07171e !important;
    font-weight: 650;
}

.rkr-note {
    margin: 20px 0 0;
    font-size: 12px;
}

.rkr-bottom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 24px;
    font-size: 13px;
}

.rkr-footer {
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    background: #0b111bee;
    border-top: 1px solid #344d60;
}

@media(max-width:1400px) {
    .rkr-header {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .rkr-brand {
        grid-column: 1;
    }

    .rkr-topnav {
        justify-content: center;
    }
}

@media(max-width:700px) {
    .rkr-main {
        width: calc(100% - 24px);
        margin-top: 20px;
    }

    .rkr-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rkr-tabs a {
        flex-basis: 45%;
        font-size: 12px;
    }

    .rkr-panel {
        padding: 16px;
    }

    .rkr-panel-heading {
        flex-wrap: wrap;
    }
}