/* Player profile appearance. Keep every rule scoped so legacy pages retain their theme. */
body.profile-dark {
    --profile-bg: #0e141b;
    --profile-surface: #151e26;
    --profile-raised: #202b35;
    --profile-hover: #2a3642;
    --profile-border: #34414e;
    --profile-text: #f2f4f7;
    --profile-muted: #b6c0cc;
    --profile-accent: #c6d0dd;
    --profile-accent-soft: #27313c;
    --profile-rank-image: url(/assets/m/images/profile-rank-graphene-v1.webp);
    --profile-rank-tone: 91, 104, 121;
    --profile-base-image: url(/assets/img/frames/base_starter.jpg);
    --profile-frame-image: url(/assets/img/frames/frame-base.png);
    color-scheme: dark;
    background: var(--profile-bg);
    color: var(--profile-text);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
body.profile-dark.st_legend { --profile-accent: #d58af5; --profile-accent-soft: #352541; --profile-rank-tone: 160, 76, 196; --profile-base-image: url(/assets/img/frames/base_legend.jpg); }
body.profile-dark.st_master { --profile-accent: #ff9f9f; --profile-accent-soft: #3d282d; --profile-rank-tone: 188, 56, 69; --profile-base-image: url(/assets/img/frames/base_master.jpg); }
body.profile-dark.st_elite { --profile-accent: #91b9ff; --profile-accent-soft: #243550; --profile-rank-tone: 67, 111, 189; --profile-base-image: url(/assets/img/frames/base_elite.jpg); }
body.profile-dark.st_veteran { --profile-accent: #a8d785; --profile-accent-soft: #283929; --profile-rank-tone: 97, 142, 61; --profile-base-image: url(/assets/img/frames/base_veteran.jpg); }
body.profile-dark.st_warrior { --profile-accent: #ebc377; --profile-accent-soft: #3d3526; --profile-rank-tone: 175, 129, 48; --profile-base-image: url(/assets/img/frames/base_warrior.jpg); }
body.profile-dark.st_novice { --profile-base-image: url(/assets/img/frames/base_novice.jpg); }
body.profile-dark.st_legend { --profile-frame-image: url(/assets/img/frames/frame-legend.png); }
body.profile-dark.st_master { --profile-frame-image: url(/assets/img/frames/frame-master.png); }
body.profile-dark.st_elite { --profile-frame-image: url(/assets/img/frames/frame-elite.png); }
body.profile-dark.st_veteran { --profile-frame-image: url(/assets/img/frames/frame-veteran.png); }
body.profile-dark.st_warrior { --profile-frame-image: url(/assets/img/frames/frame-warrior.png); }
body.profile-dark.st_novice { --profile-frame-image: url(/assets/img/frames/frame-novice.png); }
body.profile-dark.st_starter { --profile-frame-image: url(/assets/img/frames/frame-starter.png); }
body.profile-dark.st_unranked { --profile-frame-image: url(/assets/img/frames/frame-unranked.png); }
body.profile-dark a { color: var(--profile-accent); }
body.profile-dark a:hover { color: #fff; }
body.profile-dark :focus { outline: 2px solid var(--profile-accent); outline-offset: 3px; }
@supports selector(:focus-visible) {
    body.profile-dark :focus:not(:focus-visible) { outline: none; }
}
body.profile-dark .event a[role="tab"]:focus,
body.profile-dark .userlist li[data-user]:focus { outline-offset: -3px; }
body.profile-dark button { font: inherit; }
body.profile-dark ::selection { background: var(--profile-accent); color: #10151c; }
body.profile-dark .switchblade-wrap { padding: 0 0 48px; min-height: 100vh; background: none; }
body.profile-dark .main-switchblade > .container { width: 100%; max-width: 1440px; padding: 0 24px; }
body.profile-dark .main-switchblade > .container > .row { display: flex; margin: 0; align-items: stretch; }
body.profile-dark .sidebargroup { flex: 0 0 272px; width: 272px; padding: 0 20px 0 0; min-width: 0; }
body.profile-dark .profile-main-column { flex: 1; width: auto; min-width: 0; padding: 0; }
body.profile-dark .main-content { min-height: 100%; background: var(--profile-surface); border-radius: 0; box-shadow: none; }

/* The horizontal navigation and its compact menu share the same links. */
body.profile-dark .profile-loading-progress { position: fixed; z-index: 3000; top: 0; left: 0; width: 100%; height: 3px; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease; }
body.profile-dark .profile-loading-bar { display: block; width: 12%; height: 100%; background: var(--profile-accent); box-shadow: 0 0 8px var(--profile-accent); transition: width .2s ease; }
body.profile-dark .profile-loading-progress.is-active,
html.profile-motion-loading body.profile-dark .profile-loading-progress { opacity: 1; visibility: visible; }
body.profile-dark .profile-loading-progress.is-finishing { opacity: 0; visibility: visible; }
body.profile-dark .profile-topbar { position: relative; z-index: 200; background: #141c24; border-bottom: 1px solid var(--profile-border); margin-bottom: 24px; }
/* A quiet rank-colored pulse across the top edge, beneath loading progress. */
body.profile-dark .profile-topbar:before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    pointer-events: none; opacity: .6;
    background: linear-gradient(90deg, rgba(var(--profile-rank-tone), .4), var(--profile-accent) 38%, var(--profile-accent) 62%, rgba(var(--profile-rank-tone), .4));
    box-shadow: 0 2px 12px rgba(var(--profile-rank-tone), .48), 0 0 4px rgba(var(--profile-rank-tone), .4);
}
@media (prefers-reduced-motion: no-preference) {
    body.profile-dark .profile-topbar:before { animation: profile-nav-edge-pulse 8s ease-in-out infinite; animation-delay: -4s; }
}
@keyframes profile-nav-edge-pulse {
    0%, 100% { opacity: .4; }
    50% { opacity: .9; }
}
body.profile-dark .profile-topbar-inner { display: flex; align-items: center; max-width: 1440px; min-height: 78px; padding: 14px 24px; margin: auto; }
body.profile-dark .profile-brand { display: inline-flex; flex-shrink: 0; align-items: center; }
body.profile-dark .profile-brand img { width: 60px; height: auto; }
/* Match the logo slot to the visible sidebar, excluding its column gutter. */
@media (min-width: 992px) {
    body.profile-dark .profile-brand { flex: 0 0 252px; justify-content: center; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    body.profile-dark .profile-brand { flex-basis: 222px; }
}
body.profile-dark .profile-header-menu { order: 1; flex: 1; display: flex; align-items: center; margin-left: 32px; }
/* Temporarily hide the top text links while retaining their player-link hooks. */
body.profile-dark .profile-primary-nav { display: none; align-items: center; }
body.profile-dark .profile-primary-nav a { padding: 10px 12px; color: var(--profile-muted); white-space: nowrap; }
body.profile-dark .profile-primary-nav a:hover { color: #fff; }
body.profile-dark .profile-header-search { position: relative; order: 2; flex: 0 1 280px; min-width: 0; margin-left: 24px; }
body.profile-dark .profile-header-search .psnInput { position: relative; }
body.profile-dark .profile-header-search #psnname { height: 42px; margin: 0; padding: 10px 38px 10px 12px; background-image: none; font-size: 16px; }
body.profile-dark .profile-header-search #psnname::placeholder { color: var(--profile-muted); opacity: 1; }
body.profile-dark .profile-search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--profile-muted); }
body.profile-dark .profile-header-search.is-dismissed .easy-autocomplete-container { display: none; }
body.profile-dark .profile-share-links { display: flex; align-items: center; margin-left: auto; padding-left: 10px; border-left: 1px solid var(--profile-border); }
body.profile-dark .profile-share-links a, body.profile-dark .profile-share-links button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 38px; color: var(--profile-muted); font-size: 18px; background: none; border: 0; }
body.profile-dark .profile-share-links a:hover, body.profile-dark .profile-share-links button:hover { color: var(--profile-accent); }
body.profile-dark .profile-menu-toggle, body.profile-dark .profile-tools-toggle { display: none; }

/* Preserve the original frame and rank textures while softening the surrounding surfaces. */
body.profile-dark .sidebar { padding: 26px 16px 22px; margin: 0; border-radius: 0; box-shadow: none; background-image: linear-gradient(180deg, rgba(17,24,32,.36), #111921 94%), var(--profile-base-image); background-position: top; }
body.profile-dark .sidebar:after { display: none; }
/* A quiet rank-colored sheen along the panel edge keeps the surfaces open. */
body.profile-dark .sidebar, body.profile-dark .main-content,
body.profile-dark .master-rank, body.profile-dark .elite-league { position: relative; }
body.profile-dark .sidebar:before, body.profile-dark .main-content:before,
body.profile-dark .master-rank:after, body.profile-dark .elite-league:after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    z-index: 3; pointer-events: none; opacity: .65;
    background: linear-gradient(90deg, transparent 25%, rgba(var(--profile-rank-tone), .18) 40%, rgba(var(--profile-rank-tone), .65) 49%, rgba(255,255,255,.35) 51%, rgba(var(--profile-rank-tone), .18) 60%, transparent 75%);
    background-size: 240% 100%; background-position: 0% 50%;
    animation: profile-panel-sheen 10s ease-in-out infinite alternate;
}
body.profile-dark .sidebar:before { animation-delay: -4s; }
body.profile-dark .master-rank:after, body.profile-dark .elite-league:after { top: auto; bottom: 0; height: 2px; opacity: .85; background-color: rgba(var(--profile-rank-tone), .16); animation-delay: -2s; }
@keyframes profile-panel-sheen {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}
body.profile-dark .profile-img { display: block; padding-top: 36px; text-align: center; }
body.profile-dark .profile-img img.frame { width: 190px; max-width: 190px; height: auto; left: 50%; right: auto; top: 0; margin: 0; transform: translateX(-50%); filter: none; }
body.profile-dark .profile-img img.avar { width: 116px; max-width: 116px !important; height: 116px; top: 0; border-radius: 50%; object-fit: cover; transition: none; }
/* Reuse the frame artwork for a brief light pass; keep the portrait above it. */
body.profile-dark .profile-img { isolation: isolate; }
body.profile-dark .profile-img img.avar { z-index: 3; }
@supports (mix-blend-mode: screen) and ((mask-image: linear-gradient(#000, transparent)) or (-webkit-mask-image: linear-gradient(#000, transparent))) {
    @media (prefers-reduced-motion: no-preference) {
        body.profile-dark .profile-img:after {
            content: ""; position: absolute; left: 50%; top: 0; z-index: 2;
            width: 190px; height: calc(190px * 334 / 314); transform: translateX(-50%);
            pointer-events: none; opacity: 0;
            background: var(--profile-frame-image) center / 100% 100% no-repeat;
            mix-blend-mode: screen; filter: brightness(1.35);
            -webkit-mask-image: linear-gradient(125deg, transparent 40%, #000 50%, transparent 60%);
            mask-image: linear-gradient(125deg, transparent 40%, #000 50%, transparent 60%);
            -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
            -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
            animation: profile-frame-light 7s ease-in-out infinite;
        }
    }
}
@keyframes profile-frame-light {
    0%, 74% { opacity: 0; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    78% { opacity: .12; }
    85% { opacity: .32; }
    92% { opacity: .22; }
    98%, 100% { opacity: 0; -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}
body.profile-dark .profile-name { padding: 0; margin: 58px 0 0; }
body.profile-dark .profile-img h2 { margin: 0; color: var(--profile-text); font-family: 'Barlow', sans-serif; font-size: 27px; font-weight: 500; text-shadow: none; overflow-wrap: anywhere; word-wrap: break-word; }
body.profile-dark .profile-links { padding-top: 24px; text-align: left; }
body.profile-dark .profile-links ul { margin: 0; }
body.profile-dark .profile-links ul li { margin: 0 0 3px; padding: 0; }
body.profile-dark .profile-links ul li a { display: flex; width: 100%; align-items: center; padding: 10px 14px; border-left: 3px solid transparent; }
body.profile-dark .profile-links ul li a i { color: var(--profile-muted); width: 26px; font-size: 21px; text-shadow: none; }
body.profile-dark .profile-links ul li a span { margin-left: 16px; color: var(--profile-muted); font-size: 21px; font-weight: 400; text-shadow: none; }
body.profile-dark .profile-links ul li a:hover { background: rgba(255,255,255,.035); }
body.profile-dark .profile-links ul li a:hover span, body.profile-dark .profile-links ul li a:hover i,
body.profile-dark .profile-links ul li a.active span, body.profile-dark .profile-links ul li a.active i { color: var(--profile-accent) !important; text-shadow: none; }
body.profile-dark .profile-links ul li a.active { border-left-color: var(--profile-accent); }
body.profile-dark .main-content > .master-rank { display: flex; align-items: flex-end; }
body.profile-dark .main-content > .master-rank > div:first-child { align-self: center; }
body.profile-dark .sidebargroup > .master-rank { display: none; }
body.profile-dark .master-rank { padding: 28px 22px; border-radius: 0; border-bottom: 1px solid var(--profile-border); }
/* Shared generated artwork; the body rank class changes its restrained color wash. */
body.profile-dark .master-rank, body.profile-dark .elite-league { background-color: #0b1018; background-image: linear-gradient(105deg, rgba(var(--profile-rank-tone), .22), rgba(5,9,15,.58)), var(--profile-rank-image); background-size: auto, cover; background-position: center, center; }
/* Overscan the texture so its quiet scroll drift never exposes an edge. */
body.profile-dark .profile-header-parallax { position: relative; isolation: isolate; overflow: hidden; background-image: none; }
body.profile-dark .profile-header-texture { display: none; }
body.profile-dark .profile-header-parallax > .profile-header-texture {
    display: block; position: absolute; inset: -28px; z-index: -1; pointer-events: none;
    background-image: linear-gradient(105deg, rgba(var(--profile-rank-tone), .22), rgba(5,9,15,.58)), var(--profile-rank-image);
    background-size: auto, cover; background-position: center;
    transform: translateY(var(--profile-header-drift, 0px));
}
body.profile-dark .master-rank > div { padding: 0 8px; min-width: 0; float: none; }
body.profile-dark .master-rank > div:first-child { width: 25%; }
body.profile-dark .master-rank > div:nth-child(2) { width: 48%; }
body.profile-dark .master-rank > div:last-of-type { width: 27%; }
/* A square frame keeps portrait league artwork equally tall at every width. */
body.profile-dark .master-img, body.profile-dark .master-rank.smv .master-img { position: relative; width: 200px; max-width: 100%; margin: 0 auto; text-align: center; }
body.profile-dark .master-img:before { content: ""; display: block; padding-top: 100%; }
body.profile-dark .master-img img { position: absolute; top: 0; left: 0; display: block; width: 100%; max-width: 100%; height: 100%; object-fit: contain; }
body.profile-dark .master-images, body.profile-dark .master-rank.smv .master-images { padding: 0; text-align: left; }
body.profile-dark .master-images h5 { color: var(--profile-muted); font-size: 14px; letter-spacing: 1.5px; margin: 0 0 5px; }
body.profile-dark .master-images h2 { font-family: 'Barlow', sans-serif; font-weight: 500; font-size: 46px; margin: 0; line-height: 1.1; color: #fff; }
body.profile-dark .master-images ul, body.profile-dark .master-rank.smv .master-images ul { display: flex; max-width: 360px; margin: 24px 0 0; }
body.profile-dark .master-images ul li, body.profile-dark .master-rank.smv .master-images ul li { width: 33.333%; padding: 0 5px; margin: 0; text-align: center; }
body.profile-dark .master-images ul li img, body.profile-dark .master-rank.smv .master-images ul li img { width: auto; max-width: 100%; height: 78px; max-height: 78px; margin: 0 0 8px; object-fit: contain; filter: none; }
body.profile-dark .master-images ul li div h3, body.profile-dark .master-rank.smv .master-images ul li h3 { color: var(--profile-muted); font-size: 13px; line-height: 1.4; margin: 0; font-weight: 400; }
body.profile-dark .player-rank { padding: 0; }
body.profile-dark .player-rank ul, body.profile-dark .master-rank.smv .player-rank ul { display: block; margin: 0; }
body.profile-dark .player-rank ul li { display: flex; align-items: baseline; justify-content: space-between; width: 100%; margin: 0 0 14px; padding: 0; }
body.profile-dark .player-rank ul li:last-child { margin-bottom: 0; }
body.profile-dark .player-rank ul li h4 { margin: 0 12px 0 0; min-width: 0; text-align: left; color: var(--profile-muted); font-size: 13px; }
body.profile-dark .player-rank ul li h5 { color: #fff; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Sidebar utilities remain a separate, clearly bounded functional area. */
body.profile-dark .profile-tools-panel { padding-top: 24px; border-top: 1px solid var(--profile-border); }
body.profile-dark .event { margin: 0; border: 1px solid var(--profile-border); border-radius: 4px; background: var(--profile-raised); }
body.profile-dark .event .nav { display: flex; position: relative; left: auto; top: auto; border-bottom: 1px solid var(--profile-border); }
body.profile-dark .event ul.nav li { flex: 1 1 50%; width: 50%; float: none; margin: 0; border-radius: 0; background: none; }
body.profile-dark .event ul.nav li a { margin: 0; padding: 12px 8px; border: 0; border-right: 1px solid var(--profile-border); border-radius: 0; background: transparent; }
body.profile-dark .event ul.nav li:last-child a { border-right: 0; }
body.profile-dark .event ul.nav li a i { color: var(--profile-muted); font-size: 19px; }
body.profile-dark .event ul.nav li.active a { background: var(--profile-hover) !important; box-shadow: inset 0 -2px var(--profile-accent); }
body.profile-dark .event ul.nav li.active a i { color: #fff; }
body.profile-dark .event ul.nav li a:hover { background: var(--profile-hover); }
body.profile-dark a span.onlinecnt { top: -9px; right: 10px; width: 23px; height: 23px; line-height: 20px; border: 1px solid var(--profile-border); background: #dce3eb; color: #17212a; box-shadow: none; }
body.profile-dark .event .tab-content { background: transparent; border-radius: 0; box-shadow: none; }
body.profile-dark .event .tab-content > .tab-pane { min-height: 300px; }
body.profile-dark .profile-promo { display: block; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--profile-border); }
body.profile-dark .profile-promo .switchblade-img { margin: 0; height: 238px; border-radius: 4px; background-position: center; }
body.profile-dark .switchblade-img .tag { background: rgba(15,24,33,.85); color: #fff; right: 10px; top: 10px; border-radius: 3px; padding: 4px 9px; font-size: 13px; }
body.profile-dark .switchblade-img .bar { border-radius: 0 0 4px 4px; padding: 10px 16px; }
body.profile-dark .switchblade-img .bar h5 { font-weight: 500; }
body.profile-dark .userlist { padding: 20px 14px; }
body.profile-dark .userlist h2 { font-size: 20px; color: var(--profile-text); font-weight: 400; margin-bottom: 18px; }
body.profile-dark .userlist h2 a { background: var(--profile-hover); color: var(--profile-text); }
body.profile-dark .userlist ul.ulist { max-height: 280px; overflow-y: auto; }
body.profile-dark .userlist ul li { border-color: var(--profile-border); color: var(--profile-text); padding: 9px 4px; }
body.profile-dark .userlist ul li:hover { background: var(--profile-hover); }
body.profile-dark .userlist ul li h3 { font-size: 13px; margin-left: 10px; overflow-wrap: anywhere; }
body.profile-dark .profile-search-history { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; padding: 14px; background: var(--profile-raised); border: 1px solid var(--profile-border); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
body.profile-dark .profile-search-history[hidden] { display: none; }
body.profile-dark .profile-search-history h2 { margin: 0 0 10px; font-size: 14px; color: var(--profile-muted); }
body.profile-dark .profile-search-history ul.ulist { max-height: min(280px, 50vh); margin-bottom: 0; }
body.profile-dark .profile-header-search .easy-autocomplete-container ul { max-height: 50vh; overflow-y: auto; }
body.profile-dark .profile-header-search .easy-autocomplete-container ul li { padding: 0; }
body.profile-dark .profile-header-search .easy-autocomplete-container .eac-item { padding: 6px 14px; }
body.profile-dark .statuslegend { padding: 6px 0; border: 0; border-bottom: 1px solid var(--profile-border); border-radius: 0; color: var(--profile-muted); }
body.profile-dark .statuslegend span { margin: 0 4px; font-size: 11px; }
body.profile-dark .icostatus:before { border-color: #17212a; box-shadow: none; }
body.profile-dark .easy-autocomplete, body.profile-dark #psnname, body.profile-dark .easy-autocomplete-container, body.profile-dark .easy-autocomplete-container ul { width: 100% !important; min-width: 0; }
body.profile-dark .easy-autocomplete input { background-color: var(--profile-bg); color: var(--profile-text) !important; border: 1px solid var(--profile-border); border-radius: 4px; box-shadow: none; padding: 10px 32px 10px 10px; font-size: 14px; }
body.profile-dark .easy-autocomplete-container { top: 43px; z-index: 20; }
body.profile-dark .easy-autocomplete-container ul { border-color: var(--profile-border); background: var(--profile-raised); box-shadow: 0 10px 20px rgba(0,0,0,.3); }
body.profile-dark .easy-autocomplete-container ul li, body.profile-dark .easy-autocomplete-container ul .eac-category { background: var(--profile-raised); border-color: var(--profile-border); color: var(--profile-text); }
body.profile-dark .easy-autocomplete-container ul li.selected { background: var(--profile-hover); }
body.profile-dark .eac-item b { color: var(--profile-accent); }
body.profile-dark .calendar, body.profile-dark .evo-calendar, body.profile-dark .calendar-inner { background: var(--profile-raised); color: var(--profile-text); box-shadow: none; border-radius: 0; }
body.profile-dark .calendar-inner { padding: 14px 8px; }
body.profile-dark .calendar-inner .calendar-table { color: var(--profile-text); }
body.profile-dark .tab-content th[colspan="7"] { color: var(--profile-text); font-family: 'Barlow', sans-serif; font-size: 20px; padding: 3px 0 19px 25px; }
body.profile-dark .tab-content tr.calendar-header .calendar-header-day { color: var(--profile-muted); font-size: 11px; font-weight: 400; }
body.profile-dark .tab-content tr.calendar-body .calendar-day { padding: 6px 0; }
body.profile-dark .tab-content tr.calendar-body .calendar-day .day { color: var(--profile-text); width: 30px; height: 30px; line-height: 26px; font-size: 12px; }
body.profile-dark .tab-content tr.calendar-body .calendar-day .day:hover { background: var(--profile-hover); }
body.profile-dark .tab-content tr.calendar-body .calendar-day .day.calendar-active,
body.profile-dark .tab-content tr.calendar-body .calendar-day .day.calendar-active:hover { border-color: var(--profile-accent); background: transparent; }
body.profile-dark .tab-content tr.calendar-body .calendar-day .day.calendar-today { background: var(--profile-accent-soft); color: #fff; }
body.profile-dark .tab-content tr.calendar-body .calendar-day .day.calendar-today:after { background: transparent; }
body.profile-dark .tab-content .calendar-day .day .event-indicator { top: calc(100% - 3px); transform: translateX(-50%); }
body.profile-dark .tab-content .event-indicator > .type-bullet { padding: 1px; }
body.profile-dark .tab-content .event-indicator > .type-bullet > div { width: 6px; height: 6px; }
body.profile-dark .sidebar-hide .calendar-sidebar > .month-list,
body.profile-dark .sidebar-hide .calendar-sidebar > .calendar-year { visibility: hidden; }
body.profile-dark .calendar-sidebar > .calendar-year, body.profile-dark .calendar-sidebar > .month-list { background: #283541; }
body.profile-dark .calendar-sidebar { background: #283541; box-shadow: none; color: var(--profile-text); }
body.profile-dark .tab-content .calendar-sidebar > span#sidebarToggler { background: #354451; color: #fff; top: 7px; width: 31px; height: 31px; padding: 7px 5px; border-radius: 0 3px 3px 0; margin: 0; }
body.profile-dark .tab-content .calendar-sidebar > span#sidebarToggler:hover { background: var(--profile-hover); }
body.profile-dark .calendar-sidebar > .month-list > .calendar-months > li:hover,
body.profile-dark .calendar-sidebar > .month-list > .calendar-months > li.active-month { background: var(--profile-accent-soft); color: #fff; }
body.profile-dark .calendar-events { background: var(--profile-raised); box-shadow: none; }
body.profile-dark .calendar-events .event-header p, body.profile-dark .event-container > .event-info > p { color: var(--profile-text); }

/* Open sections: typography, spacing and dividers do the grouping. */
body.profile-dark .about, body.profile-dark .used-vehicle, body.profile-dark .used-vehicle .sec-title,
body.profile-dark .main-vehicle, body.profile-dark .best-score, body.profile-dark .day-match,
body.profile-dark .ranktabsection { background: transparent; border-radius: 0; box-shadow: none; }
body.profile-dark .about { padding: 28px 32px 24px; }
body.profile-dark .about > .row > div { float: none; width: 100%; }
body.profile-dark .about-info { padding-top: 4px; }
body.profile-dark .about-info p, body.profile-dark .about-info ul li { color: var(--profile-muted); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
body.profile-dark .sec-title h2, body.profile-dark h2.sec-title { color: var(--profile-text); font-family: 'Barlow', sans-serif; font-size: 29px; font-weight: 500; text-align: left; line-height: 1.3; margin: 0; padding: 0 0 16px; }
body.profile-dark .used-vehicle .sec-title { padding: 16px 32px 0; }
body.profile-dark .main-vehicle { padding: 4px 32px 28px; }
body.profile-dark .vehicle-wrap { max-width: none; }
body.profile-dark .vehicle-wrap > .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 18px; margin: 0; }
body.profile-dark .vehicle-wrap > .row:before, body.profile-dark .vehicle-wrap > .row:after { display: none; }
body.profile-dark .vehicle-wrap > .row > div { width: auto; padding: 0; min-width: 0; }
body.profile-dark .main-vehicle .vehicle-box, body.profile-dark.lstats .vehicle-box.v-veh-1 { display: flex; flex-direction: column; padding: 38px 0 0; margin: 0; min-height: 0; }
body.profile-dark .main-vehicle .vehicle-box:before { display: none; }
body.profile-dark .main-vehicle .vehicle-box > span { color: var(--profile-accent); background: transparent; border: 0; padding: 0; width: auto; font-family: 'Barlow', sans-serif; font-size: 23px; font-weight: 500; line-height: 1.2; text-align: left; }
body.profile-dark .main-vehicle .vehicle-box img { width: 100%; height: 108px; object-fit: contain; margin: 0; filter: none; background-image: radial-gradient(ellipse, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 38%, transparent 72%), radial-gradient(ellipse, rgba(158,180,196,.14) 0%, rgba(132,156,176,.07) 40%, transparent 74%); background-size: 72% 14%, 94% 82%; background-position: center 90%, center 70%; background-repeat: no-repeat; }
body.profile-dark .main-vehicle .vehicle-box p { color: var(--profile-text); text-align: center; font-size: 14px; margin: 10px 0 0; overflow-wrap: anywhere; }
body.profile-dark .main-vehicle .vehicle-box span.winloss.winrate { position: static; order: 1; align-self: center; margin: 6px 0 0; right: auto; height: auto; padding: 0 !important; background: transparent !important; color: var(--profile-muted); font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 500; line-height: 1.4; }
body.profile-dark .main-vehicle span.winloss.winrate:before { content: "Win rate"; display: inline; position: static; margin-right: 4px; font-size: 12px; font-weight: 400; color: var(--profile-muted); }
body.profile-dark .main-vehicle .arrow { top: 45%; right: 7px; }
body.profile-dark .main-vehicle .arrow a { display: block; padding: 10px 4px; }
body.profile-dark .main-vehicle .arrow a i { font-size: 20px; color: var(--profile-muted); }
body.profile-dark .best-score { margin: 0 32px; padding: 26px 0 32px; min-height: 0; border-top: 1px solid var(--profile-border); border-bottom: 0; }
body.profile-dark .bst-score .sec-title, body.profile-dark .recent-match .sec-title { padding-left: 0; }
body.profile-dark .bst-score ul { padding: 0; border: 0; }
body.profile-dark .bst-score ul li { border-color: var(--profile-border); align-items: center; text-align: left; justify-content: space-between; }
body.profile-dark .bst-score ul li h4 { width: auto; flex: 1; text-align: left; padding: 8px 8px 8px 0; border: 0; color: var(--profile-muted); font-size: 14px; line-height: 1.45; }
body.profile-dark .bst-score ul li h5 { width: auto; padding: 8px 0; text-align: right; color: var(--profile-text); font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums; }
body.profile-dark .recent-match { padding-left: 10px; }
body.profile-dark .recent-match .slider { background: none; padding: 0; }
body.profile-dark .slider .item { padding: 16px; border: 1px solid var(--profile-border); border-radius: 4px; margin: 0 0 12px; min-height: 220px; box-shadow: none; }
body.profile-dark .slider .item:before { border-radius: 3px; background: linear-gradient(155deg, #1c2936, #080e16); opacity: .84; }
body.profile-dark .slider .item:after { content: "VS"; display: block; top: calc(50% + 31px); right: auto; bottom: auto; left: 50%; width: 44px; height: 28px; margin: 0; transform: translate(-50%, -50%); border: 0 !important; border-radius: 0; background: none; box-shadow: none; color: #f3dfab; font-family: 'Barlow', sans-serif; font-size: 26px; font-style: italic; font-weight: 700; line-height: 28px; letter-spacing: -2px; text-shadow: 0 2px 3px #080e16; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
body.profile-dark .slider .item:hover, body.profile-dark .slider .item:focus { border: 1px solid var(--profile-accent); box-shadow: none; }
body.profile-dark .slider .item:hover:before { opacity: .78; }
body.profile-dark .slider .item:hover .tags, body.profile-dark .slider .item:hover .match-label { opacity: 1; transform: none; }
body.profile-dark .slider .item:hover .list, body.profile-dark .slider .item:hover .date { transform: none; }
body.profile-dark .slider .item.selected { border: 1px solid #9dd55d; box-shadow: inset 0 0 0 1px #9dd55d; }
body.profile-dark .match-label { display: flex; align-items: center; }
body.profile-dark .match-label i { flex-shrink: 0; color: #f2c744; }
body.profile-dark .match-label h5 { color: #f2c744; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; word-wrap: break-word; }
body.profile-dark .tags { margin: 15px 0 0; }
body.profile-dark .tags ul li { font-size: 12px; border-radius: 3px; padding: 4px 8px; }
body.profile-dark .tags ul li:first-child { background: #46515c; }
body.profile-dark .slider .list ul li i { font-size: 21px; }
body.profile-dark .slider .list ul li span { font-size: 19px; }
body.profile-dark .slider .date { position: relative; bottom: auto; right: auto; margin-top: 18px; color: #d0d8e2; font-size: 12px; }
body.profile-dark .slider .owl-item { transition: none; }
body.profile-dark .slider .list, body.profile-dark .slider .date { transition: opacity .16s ease; }
body.profile-dark .slider .playerlist { opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
body.profile-dark .slider .playerlist i.uava { width: 30px; }
body.profile-dark .slider .playerlist.teamlion { top: 90px; transform: translateY(-8px); }
body.profile-dark .slider .playerlist.teamshark { bottom: 20px; transform: translateY(8px); }
body.profile-dark .slider .item:is(:hover, :focus-visible) .playerlist { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
body.profile-dark .slider .item:is(:hover, :focus-visible):after { opacity: 1; visibility: visible; transition-delay: 0s; }
body.profile-dark .slider .item:is(:hover, :focus-visible) .list, body.profile-dark .slider .item:is(:hover, :focus-visible) .date { opacity: 0; }
body.profile-dark .slider .item.ipending:after, body.profile-dark .slider .item.ipending .playerlist { display: none; }
body.profile-dark .slider .item.ipending:is(:hover, :focus-visible) .list, body.profile-dark .slider .item.ipending:is(:hover, :focus-visible) .date { opacity: 1; }
@media (hover: none) {
    body.profile-dark .slider .item:hover .list, body.profile-dark .slider .item:hover .date { opacity: 1; }
    body.profile-dark .slider .item:hover .playerlist, body.profile-dark .slider .item:hover:after { opacity: 0; visibility: hidden; transition: none; }
}
body.profile-dark .slider .owl-dots { display: block; text-align: center; padding: 10px 0 0; }
body.profile-dark .slider .owl-dots button { width: 10px; height: 10px; margin: 0 6px; background: transparent; border: 1px solid var(--profile-muted); border-radius: 50%; }
body.profile-dark .slider .owl-dots button.active { background: var(--profile-accent); border-color: var(--profile-accent); }
body.profile-dark .slider .owl-nav button { color: var(--profile-text); background: var(--profile-raised); border: 1px solid var(--profile-border); padding: 5px 12px !important; }
body.profile-dark p.nofound, body.profile-dark .headerhistory h4 { color: var(--profile-muted); }
body.profile-dark.lstats .best-score { padding: 28px 0; border-top: 0; }
body.profile-dark.lstats .best-score .row { display: flex; flex-wrap: wrap; }
body.profile-dark.lstats .best-score .row > div { width: 33.333%; }
body.profile-dark.lstats .best-score .sec-title h2 { font-size: 26px; }
body.profile-dark.lstats .bst-score ul li { padding-left: 10px; padding-right: 10px; }
body.profile-dark.lstats .bst-score ul li h4 { width: auto; font-size: 12px; }
body.profile-dark.lstats .bst-score ul li h5 { width: auto; font-size: 14px; padding: 8px 2px; }
body.profile-dark.lstats .bst-score ul.bestscorerank li h5 { width: auto; min-width: 44px; }
body.profile-dark.lstats .bst-score ul.bestscorerank li h5.vcountp { width: 34%; min-width: 0; margin-left: 7px; color: #90c7ff !important; font-size: 10px !important; }
body.profile-dark li.scoreimportant { background: rgba(74,157,226,.12); }
body.profile-dark li.scoreimportant2 { background: rgba(226,175,74,.12); border-top-color: var(--profile-border); }
body.profile-dark li.scoreimportant h4, body.profile-dark li.scoreimportant2 h4 { color: var(--profile-text) !important; }
body.profile-dark h5.v-leaguescoreLink a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; line-height: 1; border-color: #655637; background: var(--profile-raised); color: #ebc377; box-shadow: none; }
body.profile-dark h5.v-leaguescoreLink a.blue { border-color: #405873; background: var(--profile-raised); color: #90c7ff; }
body.profile-dark h5.v-leaguescoreLink a:hover, body.profile-dark h5.v-leaguescoreLink a:focus-visible { background: var(--profile-hover); color: var(--profile-text); }

/* Secondary tabs and data surfaces. Preserve color cues for records and results. */
body.profile-dark .day-match, body.profile-dark .ranktabsection { padding: 24px 0 0; border-bottom-color: var(--profile-border); }
body.profile-dark .eventtab .nav-tabs, body.profile-dark .ranktab .nav-tabs { display: flex; padding: 0 28px; border-bottom: 1px solid var(--profile-border); text-align: left; }
body.profile-dark .eventtab .nav-tabs > li, body.profile-dark .ranktab .nav-tabs > li { margin: 0 20px -1px 0; float: none; flex-shrink: 0; }
body.profile-dark .eventtab .nav-tabs a, body.profile-dark .ranktab .nav-tabs a { padding: 12px 0; margin: 0; font-size: 20px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; background: transparent; color: var(--profile-muted); }
body.profile-dark .eventtab .nav-tabs > li.active > a, body.profile-dark .eventtab .nav-tabs > li > a:hover,
body.profile-dark .ranktab .nav-tabs > li.active > a, body.profile-dark .ranktab .nav-tabs > li > a:hover,
body.profile-dark .eventtab .nav-tabs > li.active > a:focus, body.profile-dark .ranktab .nav-tabs > li.active > a:focus { border: 0; border-bottom: 2px solid var(--profile-accent); background: transparent; color: var(--profile-text); box-shadow: none; }
body.profile-dark .eventtab .tab-content > .tab-pane, body.profile-dark .ranktab .tab-content > .tab-pane { padding: 24px 28px; background: none; color: var(--profile-text); }
body.profile-dark a#lk-latest { padding-right: 0; }
body.profile-dark a#lk-latest span { position: static; display: inline-block; margin-left: 10px; vertical-align: middle; font-size: 18px; line-height: 1; color: var(--profile-muted); }
body.profile-dark .table-responsive, body.profile-dark .statstbl, body.profile-dark .lbctable { max-width: 100%; overflow-x: auto; border: 0; -webkit-overflow-scrolling: touch; }
body.profile-dark .table { color: var(--profile-text); background: transparent; font-size: 12px; font-variant-numeric: tabular-nums; }
body.profile-dark .table > thead > tr > th { background-color: #223240; color: #dce5ef; border-bottom: 2px solid #536b80 !important; }
body.profile-dark .table > tbody > tr > td, body.profile-dark .table > tbody > tr > th { border-color: var(--profile-border); }
body.profile-dark .table-striped > tbody > tr:nth-of-type(odd) { background: rgba(255,255,255,.025); }
body.profile-dark .table > tbody > tr:hover, body.profile-dark .mainhistory .table-striped > tbody > tr:hover { background-color: rgba(132,168,199,.10); }
body.profile-dark .table .tc3 strong, body.profile-dark .table .tc3 a { color: var(--profile-text); }
body.profile-dark .table .tc3 strong:hover, body.profile-dark .table .tc3 a:hover { color: var(--profile-accent); }
body.profile-dark table.table.stat1, body.profile-dark table.table.stat2 { border: 1px solid var(--profile-border); border-radius: 0; box-shadow: none; }
body.profile-dark .table.stat1 > thead > tr > th { background-color: #213c50; border-bottom-color: #75b3e9 !important; }
body.profile-dark .table.stat2 > thead > tr > th { background-color: #453625; border-bottom-color: #d8ad62 !important; }
body.profile-dark table.table.stat1.wwin td.tc3 { background-color: rgba(92,162,216,.1); }
body.profile-dark table.table.stat2.wwin td.tc3 { background-color: rgba(222,172,75,.1); }
body.profile-dark .table td.high, body.profile-dark .table td.tc6.low { color: #c2ed9e; background-color: rgba(95,151,56,.20); }
body.profile-dark .table td.tc4.high, body.profile-dark .table td.tc3.high, body.profile-dark .table td.tc6.high, body.profile-dark .table td.low.high { color: inherit; background-color: transparent; }
body.profile-dark .table td.tdWon { color: #aadd80; }
body.profile-dark .table td.tdLost { color: #ffb879; }
body.profile-dark .mainhistory th { border-right-color: var(--profile-border); border-radius: 0; }
body.profile-dark .mainhistory .table th.coldate { background: #223240; }
body.profile-dark .mainhistory .tmvp .silver { color: #d4dce5; }
body.profile-dark .mainhistory .tmvp .gold { color: #f2c744; }
body.profile-dark .historyfilters { padding: 0 0 18px; flex-wrap: wrap; justify-content: center; }
body.profile-dark .historyfilters label { color: var(--profile-muted); margin: 0 0 8px; }
body.profile-dark .historyfilters select { background: var(--profile-raised); color: var(--profile-text); border-color: var(--profile-border); min-height: 36px; }
body.profile-dark .screenshare img { border-radius: 3px; border: 1px solid var(--profile-border); box-shadow: none; }
body.profile-dark .screennote { color: var(--profile-muted); }
body.profile-dark h2.sec-title span { color: var(--profile-muted); font-size: 14px; font-weight: 400; padding: 7px 0; }
body.profile-dark .sharedurl { background: var(--profile-raised); color: var(--profile-text); border: 1px solid var(--profile-border); border-radius: 3px; }
body.profile-dark .sharedurl span, body.profile-dark .sharedurl .sharetype, body.profile-dark .matchshare a { color: var(--profile-text); }
body.profile-dark .sharedurl input { color: var(--profile-text); background: var(--profile-bg); }
body.profile-dark .toggleshare span.plus, body.profile-dark .sharedurl span.minus { color: var(--profile-muted); background: var(--profile-hover); }
body.profile-dark span.toggleshare:hover { color: var(--profile-accent) !important; }
body.profile-dark .elite-league { padding: 30px 28px; border-radius: 0; border-bottom: 1px solid var(--profile-border); }
body.profile-dark .elite-league h2 { color: var(--profile-text); font-size: 38px; text-shadow: none; padding: 0 70px; text-align: center; }
body.profile-dark .elite-league h2 em { color: var(--profile-muted); }
body.profile-dark .elite-main-icon { margin: 20px 0; }
body.profile-dark .elite-main-icon img { width: 200px; height: 200px; max-width: 100%; object-fit: contain; }
body.profile-dark .elite-icon-list ul { display: flex; margin-bottom: 0; }
body.profile-dark .elite-icon-list ul li { width: 20%; padding: 0 7px; }
body.profile-dark .elite-icon-list ul li img { height: 90px; max-width: 100%; object-fit: contain; margin: 0 0 10px; }
body.profile-dark .elite-icon-list ul li span { color: var(--profile-muted); font-size: 14px; letter-spacing: 0; }
body.profile-dark span.trophyscore { width: 66px; height: 66px; line-height: 62px; border: 2px solid var(--profile-border); color: var(--profile-accent); font-size: 18px; }
body.profile-dark #rank_progress, body.profile-dark #rank_trophy, body.profile-dark #rank_lbc { background: var(--profile-surface); }
body.profile-dark .next-league { padding: 24px 12px; border-radius: 0; background: none; }
body.profile-dark .next-league h2 { color: var(--profile-muted); font-size: 25px; }
body.profile-dark .next-league h2 span { color: var(--profile-text); }
body.profile-dark .progresstree span.ttrophy i { color: var(--profile-muted); }
body.profile-dark .progress-bars h6, body.profile-dark .bar-info h6, body.profile-dark .img-profile span { color: var(--profile-muted); }
body.profile-dark .bar-info h3, body.profile-dark .progress-bars h6 span { color: var(--profile-text); }
body.profile-dark .bar-percentage h3 { color: var(--profile-muted); }
body.profile-dark .circle-progress .percentage h5, body.profile-dark .p100 h3 { color: #a4d776; }
body.profile-dark .bar-grid .progress { background: var(--profile-raised); box-shadow: none; }
body.profile-dark .progress .progress-bar { background: var(--profile-accent); animation: none; }
body.profile-dark .p100 .progress .progress-bar { background: #9bcc6c; }
body.profile-dark .group1, body.profile-dark .group2 { border-color: var(--profile-border); background: transparent; border-radius: 3px; }
body.profile-dark .group1:before, body.profile-dark .group2:before { background: var(--profile-surface); border-color: var(--profile-border); color: var(--profile-muted); }
body.profile-dark .group3.bor { border-color: var(--profile-border); }
body.profile-dark #rank_trophy h2 { color: var(--profile-text); background: none; max-width: none; margin: 0; padding: 8px 0 12px; font-size: 25px; line-height: 1.3; border-bottom: 1px solid var(--profile-border); }
body.profile-dark #rank_trophy h2 i { color: var(--profile-accent); font-size: 19px; margin-right: 8px; }
body.profile-dark .trophy-wrap .trophy span { color: var(--profile-text); }
body.profile-dark .trophy-wrap .trophy.incompleted span { color: var(--profile-muted); }
body.profile-dark .trophy-wrap .trophy.incompleted { filter: grayscale(1); }
body.profile-dark .trophy-wrap .trophy.incompleted img { opacity: .5; }
body.profile-dark .trophy-wrap .trophy span.num { background: #393227; color: #f2cc85; border-color: var(--profile-surface); box-shadow: none; }
body.profile-dark .comment { border-color: var(--profile-border); color: var(--profile-muted); }
body.profile-dark .lbctable h4 { color: var(--profile-accent); font-size: 20px; }
body.profile-dark .tblsummary { background: transparent; border: 0; border-radius: 0; }
body.profile-dark tr.totalrow { background: rgba(115,162,68,.18); }
body.profile-dark tr.totaltrophyrow { background: rgba(75,149,204,.15); }
body.profile-dark td.tdgroup { color: var(--profile-muted); }
body.profile-dark tr.showhide.bor td { border-bottom-color: var(--profile-border) !important; }
body.profile-dark .cmodal { z-index: 1000; padding: 64px 20px 20px; background: rgba(0,0,0,.75); }
body.profile-dark .cmodal-content { width: 100%; max-width: 480px; background: var(--profile-raised); color: var(--profile-text); border: 1px solid var(--profile-border); border-radius: 4px; padding: 44px 24px 24px; }
body.profile-dark .qr-content { background: #fff; padding: 12px; }
body.profile-dark .qr-content img { display: block; margin: auto; }
body.profile-dark .closeb { color: var(--profile-text); background: none; border: 0; line-height: 1; font-size: 30px; }
body.profile-dark #statnav nav { box-shadow: none; border-color: var(--profile-border); }
body.profile-dark .content_box .content { background: var(--profile-raised); color: var(--profile-text); }

@media (max-width: 1199px) {
    body.profile-dark .main-switchblade > .container { padding: 0 16px; }
    body.profile-dark .sidebargroup { flex-basis: 238px; width: 238px; padding-right: 16px; }
    body.profile-dark .profile-topbar-inner { padding: 12px 16px; }
    body.profile-dark .profile-brand img { width: 48px; }
    body.profile-dark .profile-header-menu { margin-left: 16px; }
    body.profile-dark .profile-primary-nav a { padding: 10px 8px; font-size: 13px; }
    body.profile-dark .profile-header-search { margin-left: 20px; }
    body.profile-dark .profile-share-links { padding-left: 5px; }
    body.profile-dark .profile-share-links a, body.profile-dark .profile-share-links button { width: 29px; }
    body.profile-dark .sidebar { padding-left: 8px; padding-right: 8px; }
    body.profile-dark .master-rank { padding: 24px 16px; flex-wrap: wrap; }
    body.profile-dark .master-rank > div:first-child { width: 29%; }
    body.profile-dark .master-rank > div:nth-child(2) { width: 71%; }
    body.profile-dark .master-rank > div:last-of-type { width: 100%; }
    body.profile-dark .master-images h2 { font-size: 38px; }
    body.profile-dark .master-images ul, body.profile-dark .master-rank.smv .master-images ul { margin-top: 16px; }
    body.profile-dark .player-rank ul, body.profile-dark .master-rank.smv .player-rank ul { display: flex; margin-top: 22px; }
    body.profile-dark .player-rank ul li { width: 33.333%; display: block; text-align: center; margin: 0; }
    body.profile-dark .player-rank ul li h4 { text-align: center; margin: 0 0 5px; }
    body.profile-dark .about { padding: 24px; }
    body.profile-dark .used-vehicle .sec-title { padding-left: 24px; padding-right: 24px; }
    body.profile-dark .main-vehicle { padding-left: 24px; padding-right: 24px; }
    body.profile-dark .best-score { margin: 0 24px; }
    body.profile-dark .best-score .row > div + div { margin-top: 24px; }
    body.profile-dark .recent-match { padding-left: 0; }
    body.profile-dark .vehicle-wrap > .row { grid-gap: 12px; }
    body.profile-dark .main-vehicle .vehicle-box img { height: 92px; }
    body.profile-dark.lstats .best-score .row > div { width: 100%; margin-top: 0; margin-bottom: 24px; }
    body.profile-dark.lstats .bst-score ul li h4 { font-size: 14px; }
    body.profile-dark.lstats .bst-score ul li h5 { font-size: 16px; }
    body.profile-dark.lstats .bst-score ul.bestscorerank li h5.vcountp { width: 28%; font-size: 12px !important; }
    body.profile-dark .tab-content tr.calendar-body .calendar-day .day { width: 27px; height: 27px; line-height: 23px; }
    body.profile-dark .calendar-inner { padding-left: 6px; padding-right: 6px; }
}

@media (max-width: 991px) {
    body.profile-dark .switchblade-wrap { padding-bottom: 24px; }
    body.profile-dark .profile-topbar { margin-bottom: 0; }
    body.profile-dark .profile-topbar-inner { flex-wrap: wrap; min-height: 66px; padding: 10px 20px; }
    body.profile-dark .profile-brand img { width: 44px; }
    body.profile-dark .profile-header-search { order: 1; flex: 1; margin: 0 12px; }
    body.profile-dark .profile-menu-toggle { order: 2; flex-shrink: 0; display: inline-flex; justify-content: center; align-items: center; min-width: 76px; height: 40px; padding: 8px 12px; margin-left: auto; color: var(--profile-text); background: transparent; border: 1px solid var(--profile-border); border-radius: 4px; }
    body.profile-dark .profile-menu-toggle i { margin-right: 7px; }
    body.profile-dark .profile-header-menu { order: 3; display: none; flex-basis: 100%; flex-wrap: wrap; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--profile-border); justify-content: flex-start; }
    body.profile-dark .profile-header-menu.is-open { display: flex; }
    body.profile-dark .profile-primary-nav { width: 100%; margin-bottom: 12px; flex-wrap: wrap; }
    body.profile-dark .profile-primary-nav a { font-size: 14px; padding: 8px 14px 8px 0; margin-right: 12px; }
    body.profile-dark .profile-share-links { margin-left: auto; }
    body.profile-dark .profile-share-links a, body.profile-dark .profile-share-links button { width: 40px; }
    body.profile-dark .main-switchblade > .container { padding: 0; width: 100% !important; }
    body.profile-dark .main-switchblade > .container > .row { display: block; }
    body.profile-dark .sidebargroup, body.profile-dark .profile-main-column { float: none; width: 100%; padding: 0; }
    body.profile-dark .sidebar { margin: 0; padding: 20px 24px 0; background-position: center 25%; }
    /* Center the whole identity, including the absolutely positioned artwork. */
    body.profile-dark .profile-img { width: fit-content; max-width: 100%; margin: 0 auto; padding: 0 0 0 118px; min-height: 112px; text-align: left; display: flex; align-items: center; justify-content: flex-start; }
    body.profile-dark .profile-img img.frame { width: 105px; max-width: 105px; left: 0; top: 50%; transform: translateY(-50%); }
    body.profile-dark .profile-img img.avar { position: absolute; width: 65px; max-width: 65px !important; height: 65px; left: 20px; top: calc(50% - 35px); }
    body.profile-dark .profile-img:after { width: 105px; height: calc(105px * 334 / 314); left: 0; top: 50%; transform: translateY(-50%); }
    body.profile-dark .profile-name { margin: 0; padding: 0; min-width: 0; }
    body.profile-dark .profile-img h2 { font-size: 28px; }
    body.profile-dark .profile-links { padding-top: 8px; }
    body.profile-dark .profile-links ul { display: flex; justify-content: stretch; }
    body.profile-dark .profile-links ul li { display: block; width: 25%; margin: 0; }
    body.profile-dark .profile-links ul li a { justify-content: center; padding: 12px 6px; border-left: 0; border-bottom: 2px solid transparent; }
    body.profile-dark .profile-links ul li a i { width: auto; display: inline-block; font-size: 18px; margin: 0; }
    body.profile-dark .profile-links ul li a span { margin-left: 8px; font-size: 18px; }
    body.profile-dark .profile-links ul li a.active { border-bottom-color: var(--profile-accent); }
    body.profile-dark .main-content > .master-rank { display: none; }
    body.profile-dark .sidebargroup > .master-rank.smv { display: flex; flex-wrap: wrap; min-height: 0 !important; padding: 24px; }
    body.profile-dark.lranks .sidebargroup > .master-rank.smv { display: none; }
    body.profile-dark .master-rank > div:first-child { width: 28%; }
    body.profile-dark .master-rank > div:nth-child(2) { width: 72%; }
    body.profile-dark .master-rank > div:last-of-type { width: 100%; }
    body.profile-dark .master-rank.smv .master-img { width: 120px; padding: 0; margin: 0 auto; }
    body.profile-dark .master-rank.smv .master-images ul { margin: 18px 0 0; }
    body.profile-dark .master-rank.smv .master-images ul li img { height: 65px; max-height: 65px; width: auto; }
    body.profile-dark .master-rank.smv .master-images ul li h3 { font-size: 12px; }
    body.profile-dark .master-rank.smv .player-rank ul { display: flex; margin-top: 20px; }
    body.profile-dark .player-rank ul li { width: 33.333%; display: block; text-align: center; margin-bottom: 0; }
    body.profile-dark .player-rank ul li h4 { font-size: 12px; }
    body.profile-dark .player-rank ul li h5 { font-size: 18px; }
    body.profile-dark .profile-tools-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding: 12px 24px; background: var(--profile-raised); color: var(--profile-text); border: 0; border-bottom: 1px solid var(--profile-border); text-align: left; }
    body.profile-dark .profile-tools-toggle i { color: var(--profile-accent); }
    body.profile-dark .profile-tools-toggle .fa-chevron-down { display: inline-block; transition: transform .16s ease; }
    body.profile-dark .profile-tools-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
    body.profile-dark .profile-tools-panel { display: none; padding: 20px 24px; border: 0; border-bottom: 1px solid var(--profile-border); background: var(--profile-bg); }
    body.profile-dark .profile-tools-panel.is-open { display: block; }
    body.profile-dark .event { max-width: 520px; margin: auto; }
    body.profile-dark .event .nav li { width: 50%; }
    body.profile-dark .profile-promo { display: none; }
    body.profile-dark .profile-promo .switchblade-img { height: 190px; background-position: center 48%; }
    body.profile-dark .calendar-inner { padding: 18px 14px; }
    body.profile-dark .tab-content tr.calendar-body .calendar-day .day { width: 34px; height: 34px; line-height: 30px; font-size: 13px; }
    body.profile-dark .event .switchblade-img { display: block !important; }
    body.profile-dark .vehicle-wrap > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 28px 24px; }
    body.profile-dark .main-vehicle .vehicle-box img { height: 140px; }
    body.profile-dark .best-score { padding-top: 24px; }
    body.profile-dark.lstats .best-score .row > div { width: 50%; }
    body.profile-dark .sec-title h2, body.profile-dark h2.sec-title { font-size: 27px; }
    body.profile-dark .elite-league { padding: 28px 24px; }
    body.profile-dark .elite-league h2 { font-size: 29px; }
    body.profile-dark .elite-icon-list ul { flex-wrap: wrap; justify-content: center; }
    body.profile-dark .elite-icon-list ul li { width: 20%; }
    body.profile-dark .elite-icon-list ul li img { height: 75px; max-height: 75px; margin-top: 0; }
    body.profile-dark .elite-icon-list ul li span { font-size: 12px; }
    body.profile-dark .next-league { padding: 12px 0; }
    body.profile-dark .next-league h2 { font-size: 22px; }
    body.profile-dark .percentage { margin: 0; }
    body.profile-dark .bar-info h3 { margin: 0 0 7px; }
    body.profile-dark .group1, body.profile-dark .group2 { margin-left: 12px; margin-right: 0; }
    body.profile-dark .group2:before { width: 240px; left: -12px; font-size: 12px; }
    body.profile-dark .group1:before { left: -12px; width: 28px; height: 28px; line-height: 26px; font-size: 11px; }
    body.profile-dark .eventtab .nav-tabs, body.profile-dark .ranktab .nav-tabs { overflow-x: auto; padding-left: 24px; padding-right: 24px; }
    body.profile-dark .eventtab .nav-tabs a, body.profile-dark .ranktab .nav-tabs a { font-size: 18px; white-space: nowrap; }
    body.profile-dark .eventtab .tab-content > .tab-pane, body.profile-dark .ranktab .tab-content > .tab-pane { padding: 24px; }
}

@media (max-width: 575px) {
    body.profile-dark .profile-topbar-inner { padding-left: 16px; padding-right: 16px; }
    body.profile-dark .profile-brand img { width: 38px; }
    body.profile-dark .sidebar { padding-left: 16px; padding-right: 16px; }
    body.profile-dark .profile-img h2 { font-size: 25px; }
    body.profile-dark .profile-links ul li a span { font-size: 16px; margin-left: 6px; }
    body.profile-dark .profile-links ul li a i { font-size: 16px; }
    body.profile-dark .sidebargroup > .master-rank.smv { padding: 20px 12px; }
    body.profile-dark .master-rank > div { padding: 0 4px; }
    body.profile-dark .master-rank.smv .master-images ul li { padding: 0 2px; }
    body.profile-dark .master-rank.smv .master-images ul li img { height: 56px; max-height: 56px; }
    body.profile-dark .master-rank.smv .master-images ul li h3 { font-size: 10px; }
    body.profile-dark .profile-tools-toggle { padding-left: 20px; padding-right: 20px; }
    body.profile-dark .profile-tools-panel { padding: 20px 16px; }
    body.profile-dark .about { padding: 24px 20px 16px; }
    body.profile-dark .about-info p, body.profile-dark .about-info ul li { font-size: 14px; }
    body.profile-dark .sec-title h2, body.profile-dark h2.sec-title { font-size: 25px; }
    body.profile-dark .used-vehicle .sec-title { padding: 16px 20px 0; }
    body.profile-dark .main-vehicle { padding: 6px 20px 28px; }
    body.profile-dark .vehicle-wrap > .row { grid-gap: 24px 18px; }
    body.profile-dark .main-vehicle .vehicle-box img { height: 108px; }
    body.profile-dark .main-vehicle .vehicle-box p { font-size: 13px; }
    body.profile-dark .main-vehicle .vehicle-box > span { font-size: 21px; }
    body.profile-dark .best-score { margin: 0 20px; }
    body.profile-dark.lstats .best-score .row > div { width: 100%; }
    body.profile-dark .eventtab .nav-tabs, body.profile-dark .ranktab .nav-tabs { padding: 0 20px; }
    body.profile-dark .eventtab .nav-tabs > li, body.profile-dark .ranktab .nav-tabs > li { margin-right: 16px; }
    body.profile-dark .eventtab .nav-tabs a, body.profile-dark .ranktab .nav-tabs a { font-size: 16px; }
    body.profile-dark .eventtab .tab-content > .tab-pane, body.profile-dark .ranktab .tab-content > .tab-pane { padding: 20px; }
    body.profile-dark .elite-league { padding: 24px 20px; }
    body.profile-dark .elite-league h2 { font-size: 26px; padding: 0 56px; }
    body.profile-dark .elite-main-icon img { width: 170px; height: 170px; }
    body.profile-dark .elite-icon-list ul li { width: 33.333%; margin-bottom: 18px; }
    body.profile-dark .elite-icon-list ul li img { max-width: 100%; }
    body.profile-dark span.trophyscore { width: 56px; height: 56px; line-height: 52px; font-size: 15px; }
    body.profile-dark .bar-percentage h3 { font-size: 18px; padding-left: 10px; }
    body.profile-dark .progress-bars { padding: 12px 8px; }
    body.profile-dark .lbctable { float: none; padding-left: 0; padding-right: 0; }
    body.profile-dark h2.sec-title span { float: none; display: block; font-size: 13px; }
}

/* Short, finite entrances and quietly responsive borders. */
@media (prefers-reduced-motion: no-preference) {
    html.profile-motion-loading body.profile-dark :is(.sidebargroup .profile-sidebar, .main-content > .master-rank, .sidebargroup > .master-rank, .main-content > .elite-league, .main-content > .about, .main-content > .used-vehicle, .main-content > .best-score, .main-content > .day-match, .main-content > .ranktabsection):not(:focus-within),
    body.profile-dark .profile-motion-pending:not(:focus-within) { opacity: 0; }
}
/* Loop the artwork independently of its one-time entrance and fixed labels. */
body.profile-dark .profile-trophy-art { display: inline-block; position: relative; max-width: 100%; vertical-align: top; isolation: isolate; }
body.profile-dark .master-img > .profile-trophy-art { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
body.profile-dark .master-images ul li .profile-trophy-art { margin-bottom: 8px; }
body.profile-dark .elite-icon-list ul li .profile-trophy-art { margin-bottom: 10px; }
body.profile-dark :is(.master-images, .elite-icon-list) ul li .profile-trophy-art img,
body.profile-dark .master-rank.smv .master-images ul li .profile-trophy-art img { display: block; margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
    body.profile-dark .profile-trophy-loop .profile-trophy-art {
        --profile-trophy-rise: 3px;
        animation: profile-trophy-breathe 4s ease-in-out infinite;
        animation-play-state: paused;
    }
    body.profile-dark .profile-trophy-loop .profile-trophy-art > img { transform: none; transition: none; }
    body.profile-dark .profile-trophy-loop :is(.master-img, .elite-main-icon) .profile-trophy-art { --profile-trophy-rise: 5px; animation-duration: 5s; }
    body.profile-dark .profile-trophy-loop :is(.master-images, .elite-icon-list) ul li:nth-child(2) .profile-trophy-art { animation-delay: -2.3s; --profile-trophy-light-delay: .8s; }
    body.profile-dark .profile-trophy-loop :is(.master-images, .elite-icon-list) ul li:nth-child(3) .profile-trophy-art { animation-delay: -4.6s; --profile-trophy-light-delay: 1.6s; }
    body.profile-dark .profile-trophy-loop .elite-icon-list ul li:nth-child(4) .profile-trophy-art { animation-delay: -1.3s; --profile-trophy-light-delay: 2.4s; }
    body.profile-dark .profile-trophy-loop .elite-icon-list ul li:nth-child(5) .profile-trophy-art { animation-delay: -3.6s; --profile-trophy-light-delay: 3.2s; }
    body.profile-dark .profile-trophy-active .profile-trophy-art,
    body.profile-dark .profile-trophy-active .profile-trophy-art:after { animation-play-state: running; }
    @supports (mix-blend-mode: screen) and ((mask-image: linear-gradient(#000, transparent)) or (-webkit-mask-image: linear-gradient(#000, transparent))) {
        body.profile-dark .profile-trophy-loop .profile-trophy-art:after {
            content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none; opacity: 0; mix-blend-mode: screen;
            background: var(--profile-trophy-image) center / contain no-repeat;
            -webkit-mask-image: linear-gradient(125deg, transparent 40%, #000 50%, transparent 60%);
            mask-image: linear-gradient(125deg, transparent 40%, #000 50%, transparent 60%);
            -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
            -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
            animation: profile-frame-light 7s ease-in-out infinite;
            animation-delay: var(--profile-trophy-light-delay, 0s);
            animation-play-state: paused;
        }
        body.profile-dark .profile-trophy-active .profile-trophy-art:after { animation-play-state: running; }
    }
}
@keyframes profile-trophy-breathe {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 2px rgba(var(--profile-rank-tone), .106)); }
    50% { transform: translateY(calc(0px - var(--profile-trophy-rise))); filter: drop-shadow(0 0 7px rgba(var(--profile-rank-tone), .35)); }
}
body.profile-dark .profile-motion-divider { position: relative; }
body.profile-dark .profile-motion-divider-top { border-top-color: transparent; }
body.profile-dark .profile-motion-divider-bottom { border-bottom-color: transparent; }
body.profile-dark .profile-motion-divider:before { content: ""; position: absolute; left: 0; width: 100%; height: 1px; background: var(--profile-border); transform-origin: left center; pointer-events: none; animation: profile-divider-reveal .36s ease-out both; animation-delay: var(--profile-motion-delay, 0ms); }
body.profile-dark .profile-motion-divider-top:before { top: -1px; }
body.profile-dark .profile-motion-divider-bottom:before { bottom: -1px; }
@keyframes profile-divider-reveal {
    from { transform: scaleX(0); opacity: .25; }
    to { transform: scaleX(1); opacity: 1; }
}
body.profile-dark .profile-header-search #psnname,
body.profile-dark .profile-menu-toggle,
body.profile-dark .profile-links ul li a,
body.profile-dark .event ul.nav li a,
body.profile-dark .historyfilters select { transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
body.profile-dark .profile-links ul li a i,
body.profile-dark .profile-links ul li a span { transition: color .16s ease; }
body.profile-dark .profile-header-search #psnname:focus,
body.profile-dark .profile-menu-toggle:is(:hover, :focus-visible) { border-color: var(--profile-accent); box-shadow: 0 0 0 2px var(--profile-accent-soft); }
body.profile-dark .slider .item { transition: border-color .16s ease, box-shadow .16s ease; }
body.profile-dark .slider .item:not(.selected):is(:hover, :focus-visible) { box-shadow: 0 0 10px var(--profile-accent-soft); }

@media (prefers-reduced-motion: reduce) {
    body.profile-dark *, body.profile-dark *:before, body.profile-dark *:after { transition: none !important; animation: none !important; }
    /* Keep the ambient gradient lines moving, as requested. */
    body.profile-dark .sidebar:before, body.profile-dark .main-content:before,
    body.profile-dark .master-rank:after, body.profile-dark .elite-league:after { animation: profile-panel-sheen 10s ease-in-out infinite alternate !important; }
    body.profile-dark .sidebar:before { animation-delay: -4s !important; }
    body.profile-dark .master-rank:after, body.profile-dark .elite-league:after { animation-delay: -2s !important; }
}
