/* Arena profile: identity, community activity and native game statistics. */
body.n-next .n-profile-shell,
body.n-next .n-profile-page > [class*="col-"] { min-width: 0; }
body.n-next .n-profile-page .block { border-radius: 20px; box-shadow: none; }
body.n-next .n-profile-page .n-profile-identity { padding: 0; overflow: hidden; background: var(--n-surface); border: 1px solid var(--n-line); border-radius: 20px; }
body.n-next .n-profile-identity::before,
body.n-next .n-profile-identity-top::after { display: none; }
body.n-next .n-profile-cover {
    height: 158px;
    background-color: #1b1d22;
    background-image: linear-gradient(90deg, rgba(12, 15, 22, .78), rgba(16, 20, 27, .28)), url('../img/banners/arena-hero.webp');
    background-size: cover;
    background-position: center, center 6%;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
body.n-next .n-profile-identity-top { position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; padding: 0 20px 14px; }
body.n-next .n-profile-avatar { width: 96px; height: 96px; flex: 0 0 96px; align-self: flex-start; margin-top: -26px; padding: 4px; border: 0; border-radius: 20px; background: var(--n-surface); }
body.n-next .n-profile-avatar img { display: block; width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
body.n-next .n-profile-identity-copy { flex: 1 1 auto; min-width: 0; padding-top: 12px; }
body.n-next .n-profile-page .n-profile-kicker,
body.n-next .n-player-stats .n-profile-kicker { display: block; margin: 0; color: var(--n-muted); font-size: 12px; line-height: 1.5; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
body.n-next .n-profile-kicker > span { margin-left: 4px; color: var(--n-muted); }
body.n-next .n-profile-identity h1 { margin: 3px 0 6px; color: var(--n-text); font-size: 30px; font-weight: 780; line-height: 1.13; letter-spacing: -.035em; overflow-wrap: anywhere; }
body.n-next .n-profile-identity-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; }
body.n-next .n-profile-group { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--n-text); font-size: 13px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
body.n-next .n-profile-group::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--n-group-color, var(--n-accent)); }
body.n-next .n-profile-last-seen { color: var(--n-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
body.n-next .n-profile-page .n-profile-settings { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; max-width: 100%; min-height: 44px; height: auto; margin-top: 14px; padding: 8px 12px; border: 1px solid var(--n-line); border-radius: 12px; background: var(--n-surface-2); color: var(--n-text); font-size: 14px; font-weight: 650; line-height: 1.5; text-align: center; text-decoration: none; transition: background .15s, border-color .15s; }
body.n-next .n-profile-page .n-profile-settings:hover { background: var(--n-bg); border-color: var(--n-muted); }
body.n-next .n-profile-page .n-profile-svg { display: inline-block; width: 15px; height: 15px; flex: 0 0 15px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Actions belong to the identity card and wrap as real controls. */
body.n-next .n-profile-page .n-profile-actions { margin: 0; padding: 0 20px 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.n-next .n-profile-page .n-profile-action-list { margin: 0; padding: 0; }
body.n-next .n-profile-page .n-profile-action-list ul { display: flex !important; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
body.n-next .n-profile-page .n-profile-action-list ul > li { display: flex; flex: 0 1 auto; max-width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.n-next .n-profile-page .n-profile-action-list ul > li > a,
body.n-next .n-profile-page .n-profile-action-list .n-profile-action,
body.n-next .n-profile-page .n-profile-action-list .n-profile-account-value { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; max-width: 100%; min-width: 0; height: auto; min-height: 44px; margin: 0; padding: 8px 11px; border: 1px solid var(--n-line); border-radius: 12px; background: var(--n-surface-2); color: var(--n-text); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.55; text-align: left; text-decoration: none; white-space: normal; overflow: visible; overflow-wrap: anywhere; box-shadow: none; }
body.n-next .n-profile-page .n-profile-action-list ul > li > a::after,
body.n-next .n-profile-page .n-profile-action-list ul > li > a::before { display: none; }
body.n-next .n-profile-page .n-profile-action-list .n-profile-message-link { background: var(--n-accent); border-color: var(--n-accent); color: var(--n-accent-ink); }
body.n-next .n-profile-page .n-profile-action-list ul > li > a,
body.n-next .n-profile-page .n-profile-action-list .n-profile-action { cursor: pointer; transition: background .15s, border-color .15s; }
body.n-next .n-profile-page .n-profile-action-list ul > li > a:hover,
body.n-next .n-profile-page .n-profile-action-list .n-profile-action:hover { border-color: var(--n-muted); }
body.n-next .n-profile-page .n-profile-action-list .n-profile-account-value { justify-content: flex-start; flex-wrap: wrap; border-color: transparent; background: transparent; font-weight: 400; padding-left: 0; padding-right: 16px; }
body.n-next .n-profile-account-value #money,
body.n-next .n-profile-account-value #proc { color: var(--n-text); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.n-next .n-profile-account-value .n-profile-svg { color: var(--n-muted); }
body.n-next .n-profile-actions #result_profile:empty { display: none; }
body.n-next .n-profile-actions #result_profile:not(:empty) { margin-top: 10px; }

/* A short horizontal activity strip, without nested metric cards. */
body.n-next .n-profile-community-stats { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0 20px; border-top: 1px solid var(--n-line); background: var(--n-surface); }
body.n-next .n-profile-metric { display: flex; align-items: center; gap: 7px; flex: 1 1 0; min-width: 0; min-height: 48px; padding: 10px 16px 10px 0; border: 0; }
body.n-next .n-profile-metric strong { color: var(--n-text); font-size: 22px; line-height: 1.2; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.n-next .n-profile-metric > span { color: var(--n-muted); font-size: 12px; line-height: 1.45; }

/* Information, friends and live statistics share a readable type scale. */
body.n-next .n-profile-page .n-profile-friends,
body.n-next .n-profile-page .n-profile-game-stats,
body.n-next .n-profile-page .n-profile-info { padding: 20px; margin-bottom: 20px; border: 1px solid var(--n-line); background: var(--n-surface); }
body.n-next .n-profile-section-heading { margin: 0 0 13px; }
body.n-next .n-profile-page .n-profile-section-heading h2,
body.n-next .n-player-stats .n-profile-section-heading h2 { margin: 0; padding: 0; color: var(--n-text); font-size: 18px; font-weight: 750; line-height: 1.3; letter-spacing: -.02em; }
body.n-next .n-profile-heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
body.n-next .n-profile-heading-row > div { min-width: 0; }
body.n-next .n-profile-page .n-profile-text-link { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; color: var(--n-link, var(--n-accent)); font-size: 13px; font-weight: 550; line-height: 1.5; text-decoration: none; text-align: right; }
body.n-next .n-profile-page .n-profile-text-link:hover { color: var(--n-text); }
body.n-next .n-profile-text-link > span { color: inherit; font-size: 16px; }
body.n-next .n-profile-page #friends { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; min-width: 0; max-height: none; overflow: visible; color: var(--n-muted); font-size: 14px; }
body.n-next .n-profile-page #friends::after { display: none; }
body.n-next .n-profile-page #friends .small-friend { display: flex; flex-direction: column; align-items: center; gap: 4px; width: calc((100% - 20px) / 3); min-width: 0; margin: 0; padding: 0; text-align: center; }
body.n-next .n-profile-page #friends .small-friend img { display: block; width: 42px; max-width: 100%; height: 42px; aspect-ratio: 1; object-fit: cover; border: 0; border-radius: 12px; }
body.n-next .n-profile-page #friends .small-friend span { display: block; width: 100%; color: var(--n-muted); font-size: 12px; line-height: 1.4; }
body.n-next .n-profile-page #friends .small-friend:hover span { color: var(--n-text); }
body.n-next .n-profile-page .n-profile-detail-table { width: 100%; table-layout: fixed; margin: 0; border: 0; border-radius: 0; background: transparent; }
body.n-next .n-profile-page .n-profile-detail-table tbody tr td { padding: 7px 0; border: 0; background: transparent; color: var(--n-text); font-size: 14px; line-height: 1.6; font-weight: 500; vertical-align: top; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
body.n-next .n-profile-page .n-profile-detail-table tbody tr td:first-child:not([colspan]) { width: 44%; padding-right: 9px; color: var(--n-muted); font-weight: 400; }
body.n-next .n-profile-page .n-profile-detail-table tbody tr td[colspan] { padding-top: 18px; padding-bottom: 3px; border: 0; }
body.n-next .n-profile-page .n-profile-detail-table tbody tr:first-child td[colspan] { padding-top: 0; }
body.n-next .n-profile-page .n-profile-detail-table tbody tr td[colspan] h4 { width: auto; height: auto; margin: 0; padding: 0; border: 0; background: transparent; color: var(--n-muted); font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: .03em; text-transform: uppercase; }
body.n-next .n-profile-page .n-profile-detail-table td a { color: var(--n-link, var(--n-accent)); text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
body.n-next .n-profile-page .n-profile-detail-table td a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.n-next .n-profile-page .n-profile-detail-table td a img { width: 22px; height: 22px; margin: 0 5px 3px 0; object-fit: cover; border-radius: 6px; vertical-align: middle; }
body.n-next .n-profile-page .n-profile-detail-table td a span { color: inherit; }
body.n-next .n-profile-stats-content,
body.n-next .n-profile-game-statistics,
body.n-next .n-profile-stats-result { min-width: 0; margin: 0; }
body.n-next .n-profile-stats-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 18px; }
body.n-next .n-profile-stats-filter label { flex: 0 0 auto; margin: 0; color: var(--n-muted); font-size: 13px; line-height: 1.5; }
body.n-next .n-profile-stats-filter .form-control { display: block; flex: 1 1 220px; width: 100%; min-width: 0; max-width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 8px 10px; border: 1px solid var(--n-line); border-radius: 12px; background: var(--n-surface-2); color: var(--n-text); font-family: inherit; font-size: 14px; line-height: 1.5; }
body.n-next .n-profile-game-stats .n-profile-stats-result > .block { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body.n-next .n-profile-game-stats .n-profile-stats-result > .block + .block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--n-line); }
body.n-next .n-profile-game-stats .n-profile-stats-result > .n-player-stats:first-child > .n-profile-section-heading { display: none; }
body.n-next .n-profile-stats-empty { padding: 7px 0 2px; border: 0; border-radius: 0; background: transparent; }
body.n-next .n-profile-stats-empty p { margin: 0 0 8px; color: var(--n-muted); font-size: 14px; line-height: 1.65; }

/* The complete native statistics tables stay available on every engine type. */
body.n-next .n-player-stats .n-profile-section-heading h2 { margin-top: 4px; overflow-wrap: anywhere; }
body.n-next .n-player-stats .n-player-statline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 16px 0; border: 0; border-radius: 12px; background: var(--n-surface-2); overflow: hidden; }
body.n-next .n-player-statline > div { min-width: 0; padding: 12px 10px; border: 0; border-right: 1px solid var(--n-line); border-radius: 0; background: transparent; }
body.n-next .n-player-statline > div:last-child { border-right: 0; }
body.n-next .n-player-statline strong { display: block; margin-bottom: 3px; color: var(--n-text); font-size: 26px; font-weight: 750; line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
body.n-next .n-player-statline span { display: block; color: var(--n-muted); font-size: 12px; line-height: 1.45; }
body.n-next .n-player-statline .n-player-kdr { background: transparent; }
body.n-next .n-player-statline .n-player-kdr strong { color: var(--n-link, var(--n-accent)); }
body.n-next .n-player-statline .n-player-kdr span { color: var(--n-muted); }
body.n-next .n-profile-game-stats .n-player-statline { margin-top: 0; }
body.n-next .n-player-stats > .table-responsive { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.n-next .n-player-stats #stats { margin: 0; }
/* The native #stats rule truncates cells; profile details need complete labels. */
body.n-next .n-player-stats #stats td { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; }
body.n-next .n-player-stats #stats td a { white-space: normal; overflow-wrap: anywhere; }
body.n-next .n-player-stats .n-player-details-table { width: 100%; max-width: 100%; table-layout: fixed; border: 0; border-radius: 0; background: transparent; }
body.n-next .n-player-stats .n-player-details-table td { padding: 7px 0; border: 0; border-bottom: 1px solid var(--n-line); background: transparent; color: var(--n-text); font-size: 14px; line-height: 1.5; font-weight: 500; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
body.n-next .n-player-stats .n-player-details-table td:first-child { width: 49%; padding-right: 10px; color: var(--n-muted); }
body.n-next .n-player-stats .n-player-details-table td:first-child b { font-weight: 400; }
body.n-next .n-player-stats .n-player-details-table tr:last-child td { border-bottom: 0; }
body.n-next .n-player-stats .progress { position: relative; min-width: 0; height: 22px; margin: 0; border: 0; border-radius: 8px; background: var(--n-surface-2); overflow: hidden; }
body.n-next .n-player-stats .progress .progress-bar { height: 22px; max-width: 100%; background: var(--n-accent) !important; opacity: .24; }
body.n-next .n-player-stats .progress > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 22px; color: var(--n-text); font-size: 12px; font-weight: 650; line-height: 22px; }
body.n-next .n-profile-services .table-responsive { max-width: 100%; }
body.n-next .n-profile-services .table { margin-bottom: 0; }
body.n-next .n-profile-services thead td { white-space: nowrap; }
body.n-next .n-profile-comment-label { display: block; margin-bottom: 8px; color: var(--n-muted); font-size: 13px; }
body.n-next .n-profile-wall .smile_input_forum { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.n-next .n-profile-wall #send_btn { min-height: 44px; }
body.n-next .n-profile-page a:focus-visible,
body.n-next .n-profile-page button:focus-visible,
body.n-next .n-profile-page input:focus-visible,
body.n-next .n-profile-page select:focus-visible,
body.n-next .n-player-stats a:focus-visible { outline: 2px solid var(--n-accent); outline-offset: 3px; }

@media (min-width: 992px) and (max-width: 1199.98px) {
    body.n-next .n-profile-cover { height: 122px; }
    body.n-next .n-profile-identity h1 { font-size: 28px; }
    body.n-next .n-profile-page .n-profile-settings { max-width: 145px; }
    body.n-next .n-profile-page .n-profile-friends,
    body.n-next .n-profile-page .n-profile-game-stats,
    body.n-next .n-profile-page .n-profile-info { padding: 18px; }
    body.n-next .n-profile-page .n-profile-detail-table tbody tr td { font-size: 14px; }
}
@media (max-width: 1199.98px) {
    body.n-next .n-profile-identity-column { order: 0; }
    body.n-next .n-profile-main { order: 1; }
    body.n-next .n-profile-aside { order: 2; }
    body.n-next .n-profile-page > .col-lg-12 { order: 3; }
    body.n-next .n-profile-page #friends .small-friend { width: calc((100% - 50px) / 6); }
    body.n-next .n-profile-page .n-profile-detail-table tbody tr td:first-child:not([colspan]) { width: 35%; }
}
@media (max-width: 767.98px) {
    body.n-next .n-profile-cover { height: 118px; background-position: center, 62% 12%; }
    body.n-next .n-profile-identity-top { flex-wrap: wrap; align-items: flex-start; gap: 0 13px; padding: 0 15px 12px; }
    body.n-next .n-profile-avatar { width: 78px; height: 78px; flex-basis: 78px; margin-top: -22px; border-radius: 15px; }
    body.n-next .n-profile-avatar img { border-radius: 11px; }
    body.n-next .n-profile-identity-copy { flex-basis: calc(100% - 91px); padding-top: 9px; }
    body.n-next .n-profile-identity h1 { margin-top: 3px; font-size: 26px; }
    body.n-next .n-profile-page .n-profile-settings { min-height: 42px; width: 100%; margin-top: 12px; padding: 9px 12px; }
    body.n-next .n-profile-page .n-profile-actions { padding: 0 15px 12px; }
    body.n-next .n-profile-page .n-profile-action-list ul { align-items: stretch; }
    body.n-next .n-profile-page .n-profile-action-list ul > li { flex: 1 1 auto; }
    body.n-next .n-profile-page .n-profile-action-list ul > li > a,
    body.n-next .n-profile-page .n-profile-action-list .n-profile-action { width: 100%; min-height: 42px; padding: 9px 11px; }
    body.n-next .n-profile-page .n-profile-action-list .n-profile-account-value { min-height: 30px; padding: 4px 7px 4px 0; font-size: 12px; }
    body.n-next .n-profile-community-stats { padding: 0 15px; }
    body.n-next .n-profile-metric { min-height: 45px; padding-right: 10px; }
    body.n-next .n-profile-metric strong { font-size: 22px; }
    body.n-next .n-profile-metric > span { font-size: 12px; }
    body.n-next .n-profile-page .n-profile-friends,
    body.n-next .n-profile-page .n-profile-game-stats,
    body.n-next .n-profile-page .n-profile-info { padding: 16px; }
    body.n-next .n-profile-stats-filter .form-control { min-height: 42px; height: 42px; }
    body.n-next .n-profile-wall #send_btn { min-height: 42px; }
}
@media (max-width: 479.98px) {
    body.n-next .n-profile-cover { height: 105px; }
    body.n-next .n-profile-avatar { width: 70px; height: 70px; flex-basis: 70px; margin-top: -20px; }
    body.n-next .n-profile-identity-copy { flex-basis: calc(100% - 83px); }
    body.n-next .n-profile-identity h1 { font-size: 26px; }
    body.n-next .n-profile-page .n-profile-kicker { font-size: 12px; }
    body.n-next .n-profile-identity-meta { gap: 5px 9px; }
    body.n-next .n-profile-group,
    body.n-next .n-profile-last-seen { font-size: 12px; }
    body.n-next .n-profile-community-stats { padding: 0 12px; }
    body.n-next .n-profile-metric { flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 7px 9px 0; }
    body.n-next .n-profile-metric strong { font-size: 18px; }
    body.n-next .n-profile-metric > span { font-size: 12px; }
    body.n-next .n-profile-page #friends .small-friend { width: calc((100% - 30px) / 4); }
    body.n-next .n-profile-page .n-profile-detail-table tbody tr td:first-child:not([colspan]) { width: 40%; }
    body.n-next .n-profile-page .n-profile-section-heading h2 { font-size: 18px; }
    body.n-next .n-profile-stats-filter { gap: 8px; }
    body.n-next .n-player-stats .n-player-statline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.n-next .n-player-statline > div { padding: 10px 11px; }
    body.n-next .n-player-statline > div:nth-child(2) { border-right: 0; }
    body.n-next .n-player-statline > div:nth-child(-n+2) { border-bottom: 1px solid var(--n-line); }
    body.n-next .n-player-statline strong { font-size: 25px; }
    body.n-next .n-player-statline span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    body.n-next .n-profile-page .n-profile-settings,
    body.n-next .n-profile-page .n-profile-action-list ul > li > a,
    body.n-next .n-profile-page .n-profile-action-list .n-profile-action { transition: none; }
}

/* Arena metrics use separate soft tiles and retain the exact native values. */
body.n-next .n-profile-page .n-profile-identity,body.n-next .n-profile-page .n-profile-friends,body.n-next .n-profile-page .n-profile-game-stats,body.n-next .n-profile-page .n-profile-info{border-color:transparent}
body.n-next .n-profile-community-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:6px 20px 20px;border:0;background:none}
body.n-next .n-profile-metric{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:3px 9px;padding:13px;border:0;border-radius:14px;background:var(--n-surface-2)}
body.n-next .n-profile-metric>i{grid-row:1/3;align-self:center;color:var(--n-link);font-size:18px;text-align:center}
body.n-next .n-profile-metric strong{font-size:24px}
body.n-next .n-profile-metric>span{font-size:12px}
body.n-next .n-player-stats .n-player-statline{gap:12px;padding:0;border-radius:0;background:transparent;overflow:visible;margin:20px 0}
body.n-next .n-player-statline>div{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:125px;padding:17px;border:0;border-radius:16px;background:radial-gradient(ellipse at top right,var(--n-accent-soft),transparent 75%),var(--n-surface-2)}
body.n-next .n-player-statline>div>i{color:var(--n-link);font-size:18px;margin-bottom:7px}
body.n-next .n-player-statline strong{font-size:27px;line-height:1.2;margin:0}
body.n-next .n-player-statline span{font-size:12px;line-height:1.5}
body.n-next .n-player-statline .n-player-kdr{background:var(--n-accent-soft)}
body.n-next .n-profile-game-stats .n-player-statline{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.n-next .n-profile-game-stats .n-player-statline>div{min-height:118px}
@media(max-width:575px){body.n-next .n-profile-community-stats{gap:8px;padding:5px 16px 16px}body.n-next .n-profile-metric{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px 10px}body.n-next .n-profile-metric>i{align-self:auto;margin-bottom:4px}body.n-next .n-profile-metric strong{font-size:22px}body.n-next .n-player-stats .n-player-statline{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.n-next .n-player-statline>div{padding:15px;min-height:120px}}
