.topbar .nav-links > .arena-rating-nav,
html[data-arena-design="v3"] .topbar .nav-links > .arena-rating-nav {
    display: block;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none;
}

.arena-rating-nav-surface {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid rgba(255, 104, 75, .46);
    border-radius: 14px;
    color: #fff !important;
    background:
        radial-gradient(circle at 18% 0, rgba(255, 255, 255, .18), transparent 35%),
        linear-gradient(135deg, #f13b1d, #a91500);
    box-shadow: 0 10px 28px rgba(201, 38, 10, .24);
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.arena-rating-nav:hover .arena-rating-nav-surface,
.arena-rating-nav.is-current .arena-rating-nav-surface {
    color: #fff !important;
    filter: saturate(1.12) brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(220, 45, 14, .34);
}

.arena-rating-nav svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rating-table-selector {
    position: relative;
    z-index: 30;
    width: min(310px, 100%);
    flex: 0 0 310px;
}

.rating-table-selector > summary {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 15px 12px 17px;
    border: 1px solid rgba(226, 62, 31, .32);
    border-radius: 17px;
    color: inherit;
    background: linear-gradient(135deg, rgba(226, 62, 31, .09), rgba(35, 18, 15, .76));
    cursor: pointer;
    list-style: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.rating-table-selector > summary::-webkit-details-marker {
    display: none;
}

.rating-table-selector > summary:hover,
.rating-table-selector[open] > summary {
    border-color: rgba(239, 78, 46, .58);
    background: linear-gradient(135deg, rgba(226, 62, 31, .14), rgba(42, 20, 16, .9));
}

.rating-table-selector__summary-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.rating-table-selector__summary-copy small {
    color: #8f7e7a;
    font-size: 10px;
    font-weight: 800;
}

.rating-table-selector__summary-copy strong {
    overflow: hidden;
    color: #f4ece9;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rating-table-selector > summary > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: #e84221;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform .18s ease;
}

.rating-table-selector[open] > summary > svg {
    transform: rotate(180deg);
}

.rating-table-selector__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(390px, calc(100vw - 32px));
    max-height: 420px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(22, 17, 16, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
    backdrop-filter: blur(20px);
}

.rating-table-selector__option {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) 18px;
    gap: 11px;
    align-items: center;
    min-height: 62px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease;
}

.rating-table-selector__option:hover {
    background: rgba(255, 255, 255, .045);
}

.rating-table-selector__option.is-active {
    border-color: rgba(232, 66, 33, .2);
    background: rgba(232, 66, 33, .09);
}

.rating-table-selector__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e84221;
    box-shadow: 0 0 12px rgba(232, 66, 33, .35);
}

.rating-table-selector__option:nth-child(3n + 2) .rating-table-selector__dot {
    background: #f0b84b;
    box-shadow: none;
}

.rating-table-selector__option:nth-child(3n) .rating-table-selector__dot {
    background: #7bc66b;
    box-shadow: none;
}

.rating-table-selector__option > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.rating-table-selector__option strong,
.rating-table-selector__option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rating-table-selector__option strong {
    color: #eee7e4;
    font-size: 13px;
}

.rating-table-selector__option small {
    color: #837774;
    font-size: 10px;
}

.rating-table-selector__option b {
    color: #ee5434;
    font-size: 13px;
}

html[data-theme="light"] .rating-table-selector > summary {
    background: linear-gradient(135deg, rgba(226, 62, 31, .08), rgba(255, 251, 249, .96));
}

html[data-theme="light"] .rating-table-selector__summary-copy strong,
html[data-theme="light"] .rating-table-selector__option strong {
    color: #2b1c18;
}

html[data-theme="light"] .rating-table-selector__menu {
    border-color: rgba(67, 37, 29, .12);
    background: rgba(255, 252, 250, .98);
    box-shadow: 0 24px 60px rgba(76, 42, 31, .18);
}

html[data-theme="light"] .rating-table-selector__option:hover {
    background: rgba(67, 37, 29, .045);
}

@media (max-width: 980px) {
    .topbar .nav-links > .arena-rating-nav,
    html[data-arena-design="v3"] .topbar .nav-links > .arena-rating-nav {
        width: 100% !important;
        margin: 2px 0 6px !important;
    }

    .arena-rating-nav-surface {
        width: 100%;
        min-height: 52px;
        justify-content: center;
        border-color: rgba(255, 112, 82, .5);
        border-radius: 15px;
        background:
            radial-gradient(circle at 18% 0, rgba(255, 255, 255, .2), transparent 34%),
            linear-gradient(135deg, #f13b1d, #a91500);
        box-shadow: 0 12px 28px rgba(201, 38, 10, .28);
        font-size: 15px;
    }

    .arena-rating-nav svg {
        width: 21px;
        height: 21px;
    }
}

@media (max-width: 680px) {
    .rating-table-selector {
        width: 100%;
        flex-basis: 100%;
    }

    .rating-table-selector__menu {
        right: auto;
        left: 0;
        width: 100%;
    }

    .rating-table-selector > summary {
        min-height: 62px;
    }
}
