:root {
    --site-bg: #080c12;
    --panel-bg: #101820;
    --panel-border: #243140;
    --row-bg: #18222e;
    --row-hover: #203042;
    --text: #f3f6fb;
    --muted: #8b9bb3;
    --gold: #e8b43a;
    --blue: #2f6fe0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Outfit, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(47, 111, 224, 0.16), transparent 55%),
        radial-gradient(700px 360px at 92% 0%, rgba(232, 180, 58, 0.08), transparent 50%),
        linear-gradient(180deg, #0c121a 0%, var(--site-bg) 28%);
}

button,
input,
a {
    font: inherit;
}

.hidden {
    display: none !important;
}

.page-shell {
    max-width: 1380px;
    margin: 0 auto;
    padding: 20px 18px 32px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background:
        linear-gradient(180deg, rgba(14, 22, 34, 0.96), rgba(10, 15, 23, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.topbar::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent 4%, #2f6fe0 28%, #e8b43a 50%, #2f6fe0 72%, transparent 96%);
}

.topbar-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 14px 22px 13px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 72px;
    width: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(47, 111, 224, 0.28));
}

.primary-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    border: 1px solid transparent;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 16px;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(47, 111, 224, 0.14);
    border-color: rgba(47, 111, 224, 0.22);
}

.nav-link.active {
    color: #fff8e8;
    background: linear-gradient(180deg, rgba(232, 180, 58, 0.24), rgba(232, 180, 58, 0.08));
    border-color: rgba(232, 180, 58, 0.42);
    box-shadow: inset 0 0 0 1px rgba(232, 180, 58, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icons {
    display: flex;
    gap: 8px;
}

.header-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(232, 180, 58, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-icon-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 6px;
}

.search-shell {
    position: relative;
    min-width: 220px;
}

.search-box {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 10px;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-box:focus-within {
    border-color: rgba(232, 180, 58, 0.42);
    box-shadow: 0 0 0 3px rgba(232, 180, 58, 0.12);
}

.search-box input {
    font-size: 16px;
}

.search-box input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search-box input::placeholder,
.search-icon {
    color: #7a8dab;
}

.search-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 8px;
    border-radius: 14px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    z-index: 20;
}

.search-suggestions.active {
    display: grid;
    gap: 6px;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.search-suggestion-item:hover {
    background: #182131;
}

.search-suggestion-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.content {
    margin-top: 0;
}

.leaderboard-panel {
    background: rgba(16, 24, 32, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.board-view {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tabs-panel-wrap {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
    padding: 8px;
    background: rgba(16, 24, 32, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.tabs-panel-wrap::before,
.tabs-panel-wrap::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 36px;
    pointer-events: none;
    z-index: 3;
}

.tabs-panel-wrap::before {
    left: 8px;
    background: linear-gradient(90deg, #101820 0%, transparent 100%);
    border-radius: 18px 0 0 18px;
}

.tabs-panel-wrap::after {
    right: 8px;
    background: linear-gradient(270deg, #101820 0%, transparent 100%);
    border-radius: 0 18px 18px 0;
}

.tabs-panel {
    display: flex;
    gap: 6px;
    align-items: stretch;
    overflow-x: auto;
    padding: 2px 28px 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 180, 58, 0.35) transparent;
    -webkit-overflow-scrolling: touch;
}

.tabs-panel::-webkit-scrollbar {
    height: 5px;
}

.tabs-panel::-webkit-scrollbar-track {
    background: transparent;
}

.tabs-panel::-webkit-scrollbar-thumb {
    background: rgba(232, 180, 58, 0.35);
    border-radius: 99px;
}

.mode-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 92px;
    padding: 10px 12px 9px;
    color: #9aabc2;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.mode-tab:hover {
    color: var(--text);
    background: rgba(47, 111, 224, 0.12);
    transform: translateY(-1px);
}

.mode-tab.active {
    color: #fff8e8;
    background: linear-gradient(180deg, rgba(232, 180, 58, 0.22), rgba(232, 180, 58, 0.08));
    border-color: rgba(232, 180, 58, 0.45);
    box-shadow: inset 0 0 0 1px rgba(232, 180, 58, 0.12);
}

.mode-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.panel-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(232, 180, 58, 0.28);
    background: linear-gradient(180deg, rgba(232, 180, 58, 0.16), rgba(232, 180, 58, 0.05));
    color: #fff8e8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.toolbar-pill:hover {
    border-color: rgba(232, 180, 58, 0.5);
}

.info-pill::before {
    content: "i";
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(232, 180, 58, 0.22);
    color: #fff8e8;
    font-size: 11px;
    font-weight: 800;
}

.board-header {
    padding: 0 14px 12px;
    color: #e8b43a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.board-header .col-rank,
.board-header .col-player,
.board-header .col-tiers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.board-header .col-tiers::before,
.board-header .col-tiers::after {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 180, 58, 0.55), transparent);
}

.overall-grid {
    display: grid;
    grid-template-columns: 128px 200px 1fr;
    gap: 10px;
    align-items: center;
}

.board-header .col-player {
    margin-left: -112px;
}

.board-header .col-tiers {
    text-align: center;
    justify-self: center;
    padding-left: 0;
}

.leaderboard-list {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 100%;
}

.ranking-card {
    position: relative;
    overflow: hidden;
    padding: 10px 14px;
    background: rgba(16, 24, 34, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.ranking-card:hover,
.ranking-card:focus-visible {
    background: rgba(22, 32, 45, 0.94);
    border-color: rgba(232, 180, 58, 0.28);
    outline: none;
    transform: translateY(-1px);
}

.restricted-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 4;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(4, 6, 10, 0.55);
    overflow: hidden;
}

.restricted-overlay[hidden] {
    display: none !important;
}

.ranking-card.is-restricted,
.kit-player-card.is-restricted,
.modal-content.is-restricted {
    background: rgba(8, 10, 14, 0.94);
    border-color: rgba(180, 40, 40, 0.4);
}

.ranking-card.is-restricted .rank-panel,
.ranking-card.is-restricted .player-panel,
.ranking-card.is-restricted .tiers-panel,
.kit-player-card.is-restricted .kit-player-name,
.kit-player-card.is-restricted .kit-player-avatar,
.kit-player-card.is-restricted .kit-player-rank,
.modal-content.is-restricted .modal-hero,
.modal-content.is-restricted .modal-section {
    filter: grayscale(0.7) brightness(0.42);
}

.ranking-card.is-restricted .restricted-overlay,
.kit-player-card.is-restricted .restricted-overlay,
.modal-content.is-restricted .restricted-overlay {
    display: flex;
}

.restricted-overlay span {
    transform: rotate(-22deg);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.22em;
    color: rgba(232, 76, 61, 0.92);
    border: 3px solid rgba(232, 76, 61, 0.8);
    padding: 6px 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
    background: rgba(20, 8, 8, 0.35);
}

.ranking-card-empty {
    opacity: 0.82;
}

.rank-panel {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 68px;
    padding: 0 6px 0 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.podium-1 .rank-panel {
    background: #d3a12e;
    color: #1f1402;
}

.podium-2 .rank-panel {
    background: #a9b4c2;
    color: #142030;
}

.podium-3 .rank-panel {
    background: #a66739;
    color: #1f1209;
}

.rank-number {
    min-width: 44px;
    font-size: 28px;
    font-style: italic;
    font-weight: 900;
}

.player-avatar {
    width: 56px;
    height: 56px;
    margin-left: -8px;
    border-radius: 12px;
    object-fit: cover;
}

.player-panel {
    margin-left: 8px;
}

.player-name {
    margin: 0 0 6px;
    font-size: 20px;
}

.player-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
}

.player-title-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.player-title-text {
    color: #f5d87a;
}

.player-points {
    color: #7b93b6;
}

.region-panel {
    display: flex;
    justify-content: center;
}

.region-pill {
    min-width: 50px;
    padding: 10px 0;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
}

.region-na {
    color: #ff8d95;
    background: #5a2530;
}

.region-eu {
    color: #8fff8d;
    background: #275333;
}

.region-as {
    color: #85d6ff;
    background: #214c69;
}

.region-other {
    color: #c4d4ef;
    background: #40506b;
}

.tiers-panel {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
}

.gamemode-tier {
    flex: 1 1 0;
    min-width: 0;
    max-width: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.gamemode-tier img {
    width: 38px;
    height: 38px;
    padding: 0;
    object-fit: contain;
    background: transparent;
    border: none;
}

.tier-label {
    font-size: 11px;
    font-weight: 800;
}

.tier-ht1,
.tier-lt1 {
    color: #ffd04d;
}

.tier-ht2,
.tier-lt2 {
    color: #9dc7ff;
}

.tier-ht3,
.tier-lt3 {
    color: #ff9d60;
}

.tier-ht4,
.tier-lt4 {
    color: #b698ff;
}

.tier-ht5,
.tier-lt5 {
    color: #9ea8ba;
}

.tier-empty {
    color: #5d6a82;
}

.tierlist-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.kit-board-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(47, 111, 224, 0.16), rgba(232, 180, 58, 0.08) 55%, rgba(16, 24, 32, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.kit-hero-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
    flex: 0 0 56px;
}

.kit-hero-copy {
    min-width: 0;
}

.kit-hero-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d7b056;
}

.kit-hero-copy h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.kit-hero-meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.kit-hero-meta strong {
    color: var(--text);
}

.kit-column {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    background: rgba(12, 18, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.kit-column-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.kit-column-slash {
    color: rgba(255, 255, 255, 0.28);
    font-weight: 600;
}

.kit-column-1 .kit-column-header {
    background: #5a4820;
}

.kit-column-2 .kit-column-header {
    background: #3e4452;
}

.kit-column-3 .kit-column-header {
    background: #5d3e2e;
}

.kit-column-4 .kit-column-header,
.kit-column-5 .kit-column-header {
    background: #263244;
}

.kit-column-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    padding: 8px;
}

.kit-lane-label {
    margin: 4px 4px 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.kit-rank-empty {
    margin: 0;
    padding: 18px 8px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.kit-player-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(24, 34, 46, 0.92);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.kit-player-card:hover,
.kit-player-card:focus-visible {
    background: rgba(32, 48, 66, 0.98);
    border-color: rgba(232, 180, 58, 0.55);
    outline: none;
    transform: translateY(-1px);
}

.kit-player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 28px;
}

.kit-player-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    min-width: 0;
    flex: 1 1 auto;
}

.kit-player-rank {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ranking-placeholder {
    padding: 18px;
    color: var(--muted);
}

.player-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 8, 14, 0.72);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.modal-content {
    position: relative;
    width: min(460px, 100%);
    padding: 22px 22px 24px;
    background:
        linear-gradient(180deg, rgba(16, 24, 36, 0.98), rgba(10, 15, 23, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.modal-content::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2f6fe0 28%, #e8b43a 50%, #2f6fe0 72%, transparent);
}

.info-modal-content {
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
}

.info-modal-header {
    padding: 4px 36px 14px 0;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-kicker {
    margin: 0 0 4px;
    color: #e8b43a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.info-modal-header h2 {
    margin: 0;
    font-size: 26px;
}

.info-modal-body {
    display: grid;
    gap: 18px;
    padding-top: 6px;
}

.info-copy {
    color: #c5d0e0;
    font-size: 15px;
    line-height: 1.55;
}

.info-copy p {
    margin: 0 0 12px;
}

.info-lead {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
}

.info-section h3 {
    margin: 6px 0 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8b43a;
}

.info-chip-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 16px;
}

.info-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px 9px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-chip-tier {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.info-chip-pts {
    color: #e8b43a;
    font-size: 16px;
    font-weight: 800;
}

.info-title-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.info-title-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 12px 11px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(232, 180, 58, 0.12), rgba(232, 180, 58, 0.04));
    border: 1px solid rgba(232, 180, 58, 0.2);
}

.info-title-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 4px;
}

.info-title-card span {
    color: #fff8e8;
    font-size: 13px;
    font-weight: 600;
}

.info-title-card strong {
    color: #e8b43a;
    font-size: 12px;
    font-weight: 800;
}

.kit-info-image {
    width: 100%;
    max-height: 42vh;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(8, 12, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #c5d0e0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--text);
    border-color: rgba(232, 180, 58, 0.35);
}

.modal-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-top: 10px;
}

.modal-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 3px solid rgba(232, 180, 58, 0.7);
    box-shadow: 0 0 0 6px rgba(232, 180, 58, 0.12), 0 12px 28px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.modal-hero-copy h2 {
    margin: 0;
    font-size: 28px;
}

.modal-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(232, 180, 58, 0.24), rgba(232, 180, 58, 0.08));
    border: 1px solid rgba(232, 180, 58, 0.42);
    color: #fff8e8;
    font-weight: 700;
}

.modal-title-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.modal-title-points {
    color: #e8b43a;
    font-size: 12px;
    font-weight: 800;
}

.modal-region {
    margin: 14px 0 0;
    color: #7c8fb0;
    font-size: 15px;
    font-weight: 600;
}

.namemc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 111, 224, 0.14);
    border: 1px solid rgba(47, 111, 224, 0.32);
    color: #dce8ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.namemc-button:hover {
    border-color: rgba(47, 111, 224, 0.55);
}

.modal-section {
    margin-top: 22px;
}

.modal-section h3 {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8b43a;
}

.modal-rank-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.modal-rank-value {
    min-width: 52px;
    padding: 8px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f0c45a, #d3a12e);
    color: #1f1402;
    font-size: 26px;
    font-style: italic;
    font-weight: 900;
    text-align: center;
}

.modal-rank-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.modal-rank-points {
    margin-left: auto;
    color: #e8b43a;
    font-weight: 700;
}

.modal-tiers-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.modal-tier-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 4px 7px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.modal-tier-chip img {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

@media (max-width: 1180px) {
    .tierlist-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        padding: 12px 16px 11px;
    }

    .brand-logo {
        height: 56px;
    }

    .primary-nav {
        justify-content: flex-start;
    }

    .header-right {
        flex-wrap: wrap;
    }

    .search-shell {
        min-width: 0;
        width: 100%;
    }

    .ranking-card.overall-grid {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .ranking-card .tiers-panel {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 8px;
    }

    .board-header .col-tiers {
        display: none;
    }

    .board-header .col-player {
        margin-left: -96px;
    }

    .gamemode-tier {
        max-width: none;
        flex: 0 0 44px;
    }

    .gamemode-tier img {
        width: 32px;
        height: 32px;
    }

    .tierlist-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .close-modal {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .brand-logo {
        height: 48px;
    }

    .panel-toolbar {
        flex-direction: column;
    }

    .overall-grid,
    .ranking-card.overall-grid {
        grid-template-columns: 1fr;
    }

    .board-header {
        display: none;
    }

    .rank-panel,
    .player-panel,
    .tiers-panel,
    .ranking-card .tiers-panel {
        width: 100%;
        grid-column: auto;
    }

    .player-panel {
        margin-left: 0;
        padding-top: 6px;
    }

    .tierlist-columns {
        grid-template-columns: 1fr;
    }

    .kit-hero-copy h1 {
        font-size: 22px;
    }

    .info-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-title-grid,
    .modal-tiers-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mode-tab {
        min-width: 78px;
        padding: 8px 8px 7px;
        font-size: 11px;
    }
}
