/* GameCMS native statistics. Scoped hooks also survive AJAX row replacement. */
body.n-next .n-statistics-page,
body.n-next .n-statistics-sidebar { min-width: 0; }
body.n-next .n-stats-heading { margin-bottom: 22px; }
body.n-next .n-stats-heading .block_head { margin: 0 0 7px; padding: 0; font-size: 24px; line-height: 1.25; }
body.n-next .n-stats-heading p,
body.n-next .n-stats-empty p { margin: 0; color: var(--n-muted); font-size: 14px; line-height: 1.6; }
body.n-next .n-stats-board.block-search > .n-stats-search { position: relative; margin: 0 0 22px; padding: 0; border: 0; }
body.n-next .n-stats-board.block-search > .n-stats-search input { min-height: 48px; padding: 12px 15px 12px 48px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
body.n-next .n-stats-search-button { position: absolute; z-index: 1; inset: 0 auto 0 2px; display: flex; align-items: center; justify-content: center; width: 44px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--n-muted); cursor: pointer; }
body.n-next .n-stats-search-button:hover { color: var(--n-link); }
body.n-next .n-stats-search-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Separate native records, with complete statistics and modal targets. */
body.n-next .n-stats-board .n-stats-ranking-wrap { border: 0; border-radius: 0; overflow: auto; background: transparent; }
body.n-next table.table.n-stats-ranking { width: 100%; min-width: 660px; table-layout: auto; border-collapse: separate; border-spacing: 0 9px; font-size: 14px; background: transparent; }
body.n-next table.table.n-stats-ranking thead > tr > th { padding: 14px 12px; color: var(--n-muted); background: transparent; font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
body.n-next .n-stats-ranking #stats > .n-stat-row > td { padding: 17px 14px; border: 0; border-bottom: 0 !important; color: var(--n-text); background: var(--n-surface); font-size: 14px; line-height: 1.55; vertical-align: middle; white-space: normal; max-width: none; overflow: visible; text-overflow: clip; transition: background-color .15s; }
body.n-next .n-stats-ranking #stats > .n-stat-row:hover > td { background: var(--n-surface-2); }
body.n-next .n-stats-ranking #stats > .n-stat-row:last-of-type > td { border-bottom: 0 !important; }
body.n-next .n-stats-ranking #stats > .hidden-tr > td { border: 0 !important; padding: 0 !important; height: 0 !important; }
body.n-next .n-stats-ranking th:first-child,
body.n-next .n-stats-ranking #stats .n-stats-place { width: 66px; text-align: center; }
body.n-next .n-stats-ranking #stats .n-stats-player { min-width: 170px; overflow-wrap: anywhere; }
body.n-next .n-stats-ranking #stats .n-stats-number { font-weight: 600; font-variant-numeric: tabular-nums; }
body.n-next .n-stat-position { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 5px; border: 0; border-radius: 11px; background: var(--n-surface-2); color: var(--n-muted); font-family: inherit; font-size: 14px; font-weight: 750; line-height: 1.5; font-variant-numeric: tabular-nums; cursor: pointer; }
body.n-next .n-stat-row[data-place="1"] .n-stat-position { color: var(--n-warning); background: var(--n-warning-soft); }
body.n-next .n-stat-row[data-place="2"] .n-stat-position { color: var(--n-link); background: var(--n-accent-soft); }
body.n-next .n-stat-row[data-place="3"] .n-stat-position { color: var(--n-success); background: var(--n-success-soft); }
body.n-next .n-stats-ranking #stats .n-stat-person { display: block; min-width: 0; color: var(--n-text); font-size: 14px; line-height: 1.6; font-weight: 650; }
body.n-next .n-stats-ranking #stats .n-stat-person a { max-width: 100%; color: inherit; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
body.n-next .n-stats-ranking #stats .n-stat-person img { display: inline-block; width: 30px; height: 30px; margin: 0 8px 0 0; border-radius: 10px; object-fit: cover; vertical-align: middle; }
body.n-next .n-stats-ranking #stats td .rank { width: auto; max-width: 92px; height: 34px; margin: 0; object-fit: contain; }

/* Legacy #stats uses two-pixel badges; replace them without changing skill values. */
body.n-next #stats .label,
body.n-next .n-player-stats .label,
body.n-next .n-stat-modal .label { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 27px; padding: 5px 9px; border: 0; border-radius: 8px; background: var(--n-surface-2); color: var(--n-text); font-size: 12px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
body.n-next #stats .label.label-primary,
body.n-next #stats .label.label-info,
body.n-next .n-player-stats .label.label-primary,
body.n-next .n-player-stats .label.label-info,
body.n-next .n-stat-modal .label.label-primary,
body.n-next .n-stat-modal .label.label-info { background: var(--n-accent-soft); color: var(--n-link); }
body.n-next #stats .label.label-success,
body.n-next .n-player-stats .label.label-success,
body.n-next .n-stat-modal .label.label-success { background: var(--n-success-soft); color: var(--n-success); }
body.n-next #stats .label.label-warning,
body.n-next .n-player-stats .label.label-warning,
body.n-next .n-stat-modal .label.label-warning { background: var(--n-warning-soft); color: var(--n-warning); }
body.n-next #stats .label.label-danger,
body.n-next .n-player-stats .label.label-danger,
body.n-next .n-stat-modal .label.label-danger { background: var(--n-danger-soft); color: var(--n-danger); }

/* Server links wrap naturally. next.js resolves a single native/query match. */
body.n-next .n-statistics-sidebar .n-stats-server-block { padding: 20px; }
body.n-next .n-statistics-sidebar .n-stats-server-block > .block_head { margin-bottom: 14px; font-size: 18px; }
body.n-next .n-stats-server-nav { margin: 0; padding: 0; }
body.n-next .n-stats-server-nav ul { display: grid !important; gap: 6px; margin: 0; padding: 0; }
body.n-next .n-stats-server-nav ul > li,
body.n-next .n-stats-server-nav ul > li.active { margin: 0; padding: 0; border: 0; background: transparent; }
body.n-next .n-stats-server-nav ul > li > a { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; height: auto; margin: 0; padding: 11px 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--n-muted); font-size: 14px; font-weight: 600; line-height: 1.55; letter-spacing: 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
body.n-next .n-stats-server-nav ul > li > a::before { display: none; }
body.n-next .n-stats-server-nav ul > li > a::after { content: "›"; display: block; flex: 0 0 auto; margin-left: auto; padding: 0; color: inherit; opacity: .55; font-size: 22px; font-weight: 400; line-height: 1; }
body.n-next .n-stats-server-nav ul > li > a:hover { background: var(--n-surface-2); color: var(--n-text); }
body.n-next .n-stats-server-nav ul > li > a.active,
body.n-next .n-stats-server-nav ul > li.active > a,
body.n-next .n-stats-server-nav ul > li > a[aria-current="page"] { margin: 0; padding: 11px 12px; border: 1px solid transparent; border-radius: 12px; background: var(--n-accent-soft); color: var(--n-link); }

/* Native detail and modal tables retain every statistic for every provider. */
body.n-next .n-statistics-page > .n-player-stats { border-radius: 16px; }
body.n-next .n-statistics-page .n-player-stats .n-profile-section-heading h2 { font-size: 26px; }
body.n-next .n-player-stats .n-player-statline { border-radius: 14px; }
body.n-next .n-player-stats .n-player-statline > div { padding: 16px 14px; }
body.n-next .n-player-stats .n-player-statline strong { font-size: 28px; }
body.n-next .n-player-stats .n-player-statline span { font-size: 12px; line-height: 1.5; }
body.n-next .n-player-stats .n-player-details-table td { padding: 10px 0; font-size: 14px; line-height: 1.6; cursor: default; }
body.n-next .n-player-stats .n-player-details-table td:first-child { padding-right: 16px; }
body.n-next .n-stat-modal .modal-dialog { max-width: 960px; }
body.n-next .n-stat-modal .modal-content { border-radius: 18px; }
body.n-next .n-stat-modal .modal-body { padding: 22px; }
body.n-next .n-stat-modal .modal-body > .modal-title { margin: 24px 0 12px; font-size: 18px; }
body.n-next .n-stat-modal .n-stat-details-table { width: 100%; table-layout: fixed; border: 0; }
body.n-next .n-stat-modal .n-stat-details-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--n-line); color: var(--n-text); font-size: 14px; line-height: 1.6; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
body.n-next .n-stat-modal .n-stat-details-table td:first-child { width: 45%; color: var(--n-muted); }
body.n-next .n-stat-modal .n-stat-details-table td:first-child b { font-weight: 500; }
body.n-next .n-stat-modal .n-stat-details-table td .btn { min-height: 42px; margin: 3px 5px 3px 0; font-size: 14px; }
body.n-next .n-stat-modal .progress { position: relative; min-width: 0; height: 24px; margin: 0; border: 0; border-radius: 8px; background: var(--n-surface-2); }
body.n-next .n-stat-modal .progress-bar { max-width: 100%; height: 24px; background: var(--n-accent) !important; opacity: .24; }
body.n-next .n-stat-modal .progress > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--n-text); font-size: 12px; font-weight: 650; line-height: 24px; }
body.n-next .n-player-stats .table-responsive.n-stat-wide-wrap,
body.n-next .n-stat-modal .table-responsive.n-stat-wide-wrap { border: 1px solid var(--n-line); border-radius: 14px; background: var(--n-surface); overflow: auto; }
body.n-next .n-player-stats table.n-stat-wide-table,
body.n-next .n-stat-modal table.n-stat-wide-table { min-width: 740px; table-layout: auto; font-size: 14px; }
body.n-next .n-player-stats table.n-stat-weapons-table,
body.n-next .n-stat-modal table.n-stat-weapons-table { min-width: 1040px; }
body.n-next .n-player-stats .n-stat-wide-table thead th,
body.n-next .n-stat-modal .n-stat-wide-table thead th { padding: 13px 14px; background: var(--n-surface-2); font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
body.n-next .n-player-stats .n-stat-wide-table tbody td,
body.n-next .n-stat-modal .n-stat-wide-table tbody td { width: auto; padding: 13px 14px; color: var(--n-text); font-size: 14px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.n-next .n-stat-media { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 110px; color: var(--n-text); }
body.n-next .n-stat-media img { display: block; max-width: 110px; margin: 0; border-radius: 8px; object-fit: contain; }
body.n-next .n-stat-map img { width: 110px; height: 60px; object-fit: cover; }
body.n-next .n-stat-weapon img { width: 110px; height: 30px; }
body.n-next .n-stat-media > span { color: var(--n-muted); font-size: 12px; font-weight: 600; line-height: 1.5; }
body.n-next .n-stats-search-button:focus-visible,
body.n-next .n-stat-position:focus-visible,
body.n-next .n-stats-server-nav a:focus-visible,
body.n-next .n-stat-wide-wrap:focus-visible { outline: 2px solid var(--n-accent); outline-offset: 3px; }

@media (max-width: 991.98px) {
    body.n-next .n-statistics-sidebar .n-stats-server-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    body.n-next .n-stats-heading .block_head { font-size: 22px; }
    body.n-next .n-stats-board .n-stats-ranking-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
    body.n-next .n-stats-board .n-stats-ranking-wrap > table.table.n-stats-ranking { display: block; width: 100%; min-width: 0; background: transparent; }
    body.n-next .n-stats-ranking > thead { display: none; }
    body.n-next .n-stats-ranking > #stats { display: grid; gap: 12px; width: 100%; }
    body.n-next .n-stats-ranking #stats > .n-stat-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); width: 100%; padding: 10px; border: 1px solid var(--n-line); border-radius: 16px; background: var(--n-surface-2); overflow: hidden; }
    body.n-next .n-stats-ranking #stats > .n-stat-row > td { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; grid-column: span 4; width: auto; min-width: 0; padding: 9px 7px; border: 0 !important; border-radius: 0; background: transparent; font-size: 14px; line-height: 1.5; }
    body.n-next .n-stats-ranking #stats > .n-stat-row:hover > td { background: transparent; }
    body.n-next .n-stats-ranking #stats > .n-stat-row > .n-stats-place { grid-column: span 2; padding: 3px 0 10px; }
    body.n-next .n-stats-ranking #stats > .n-stat-row > .n-stats-player { grid-column: span 10; min-width: 0; padding: 3px 0 10px 7px; }
    body.n-next .n-stats-ranking #stats .n-stat-position { background: var(--n-surface); }
    body.n-next .n-stats-ranking #stats .n-stats-number::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--n-muted); font-size: 12px; font-weight: 500; }
    body.n-next .n-stats-ranking #stats > .n-stat-row > .n-stats-skill,
    body.n-next .n-stats-ranking #stats > .n-stat-row > .n-stats-rank { grid-column: span 6; align-items: flex-start; justify-content: flex-start; gap: 6px; padding-top: 8px; font-size: 14px; }
    body.n-next .n-stats-ranking #stats .n-stats-skill::before,
    body.n-next .n-stats-ranking #stats .n-stats-rank::before { content: attr(data-label); color: var(--n-muted); font-size: 12px; font-weight: 500; }
    body.n-next .n-stats-ranking #stats > .hidden-tr { display: none; }
    body.n-next .n-stat-modal .modal-dialog { margin: 12px; max-width: calc(100% - 24px); }
    body.n-next .n-stat-modal .modal-body { padding: 15px; }
    body.n-next .n-stat-modal .n-stat-details-table td { padding: 10px; }
    body.n-next .n-stat-modal .n-stat-details-table td:first-child { width: 48%; }
    body.n-next .n-stat-modal .n-stat-operations-table tr { display: grid; grid-template-columns: minmax(0, 1fr); }
    body.n-next .n-stat-modal .n-stat-operations-table td:first-child { width: 100%; padding-bottom: 0; border-bottom: 0; }
    body.n-next .n-stat-modal .n-stat-operations-table td:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; }
    body.n-next .n-stat-modal .n-stat-operations-table td .btn { margin: 0; max-width: 100%; }
    body.n-next .n-statistics-page .n-player-stats .n-profile-section-heading h2 { font-size: 23px; }
}
@media (max-width: 479.98px) {
    body.n-next .n-statistics-sidebar .n-stats-server-nav ul { grid-template-columns: minmax(0, 1fr); }
    body.n-next .n-stats-server-nav ul > li > a,
    body.n-next .n-stats-server-nav ul > li > a.active,
    body.n-next .n-stats-server-nav ul > li.active > a,
    body.n-next .n-stats-server-nav ul > li > a[aria-current="page"] { padding: 12px; }
    body.n-next .n-player-stats .n-player-statline > div { padding: 14px 12px; }
    body.n-next .n-player-stats .n-player-statline strong { font-size: 25px; }
    body.n-next .n-player-stats .n-player-details-table td:first-child { width: 51%; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    body.n-next .n-stats-ranking #stats > .n-stat-row > td { transition: none; }
}

/* Arena leaderboard composition. Values are taken from the native rows. */
body.n-next .n-stats-board{padding:0;background:transparent;border:0}
body.n-next .n-stats-ranking #stats>.n-stat-row>td:first-child{border-radius:15px 0 0 15px}
body.n-next .n-stats-ranking #stats>.n-stat-row>td:last-child{border-radius:0 15px 15px 0}
body.n-next .n-stats-ranking #stats>.hidden-tr{display:none}
body.n-next .n-stats-heading{margin:0 0 22px}
body.n-next .n-stats-heading h1{font-size:27px}
body.n-next .arena-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 24px}
body.n-next .arena-podium[hidden]{display:none}
body.n-next .arena-podium-card{--medal:#d1b271;display:grid;grid-template-columns:48px minmax(0,1fr);gap:5px 13px;position:relative;min-width:0;padding:23px 19px;border:1px solid var(--n-line);border-radius:18px;background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--medal) 11%,transparent),transparent 74%),var(--n-surface);font:inherit;line-height:1.5;text-align:left;color:var(--n-text);cursor:pointer}
body.n-next .arena-podium-card[data-place="2"]{--medal:#aebed2}body.n-next .arena-podium-card[data-place="3"]{--medal:#c49071}
body.n-next .arena-podium-card:hover{border-color:var(--medal);transform:translateY(-2px)}
body.n-next .arena-podium-medal{grid-row:1/4;display:grid;place-items:center;align-self:center;width:48px;height:58px;border-radius:15px;background:color-mix(in srgb,var(--medal) 12%,transparent);color:var(--medal);font-size:24px}
body.n-next .arena-podium-place{color:var(--n-muted);font-size:12px;line-height:1.4}
body.n-next .arena-podium-name{display:block;min-width:0;font-size:16px;line-height:1.45;color:var(--n-text);overflow-wrap:anywhere}
body.n-next .arena-podium-value{color:var(--n-muted);font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:1199px){body.n-next .arena-podium-card{grid-template-columns:minmax(0,1fr);padding:18px;gap:6px}body.n-next .arena-podium-medal{grid-row:auto;width:40px;height:40px;margin-bottom:5px;font-size:20px}}
@media(max-width:767px){body.n-next .arena-podium{gap:9px;margin-bottom:20px}body.n-next .arena-podium-card{padding:13px;border-radius:15px}body.n-next .arena-podium-name{font-size:14px}body.n-next .arena-podium-value{font-size:11px}body.n-next .n-stats-ranking #stats>.n-stat-row>td:first-child,body.n-next .n-stats-ranking #stats>.n-stat-row>td:last-child{border-radius:0}body.n-next .n-stats-ranking #stats>.n-stat-row{background:var(--n-surface);border-color:transparent}body.n-next .n-stats-ranking #stats>.n-stat-row>td{background:transparent}}
@media(max-width:374px){body.n-next .arena-podium{grid-template-columns:minmax(0,1fr)}body.n-next .arena-podium-card{grid-template-columns:44px minmax(0,1fr);gap:3px 12px}body.n-next .arena-podium-medal{grid-row:1/4;margin:0}}
