/* Project Fighters client profile dossier
   This file intentionally loads after the legacy inline modal rules. */

#client-scale-root .profile-modal {
    --profile-bg: #090b0d;
    --profile-panel: #101316;
    --profile-panel-strong: #15191d;
    --profile-line: rgba(232, 222, 198, 0.2);
    --profile-line-strong: rgba(232, 222, 198, 0.38);
    --profile-text: #f3eee3;
    --profile-muted: #9b9a95;
    --profile-red: #d93435;
    --profile-red-bright: #f04a45;
    --profile-gold: #d5ad63;
    --profile-green: #68d38b;
    font-family: 'Exo 2', sans-serif;
}

#client-scale-root .profile-modal.visible {
    padding: 32px 48px;
    box-sizing: border-box;
}

#client-scale-root .profile-modal-backdrop {
    background: rgba(2, 4, 5, 0.92);
    backdrop-filter: blur(12px) saturate(0.65);
}

#client-scale-root .profile-modal .profile-modal-content {
    width: min(1760px, calc(100% - 96px)) !important;
    height: min(996px, calc(100% - 64px));
    max-width: 1760px !important;
    max-height: 996px !important;
    display: flex;
    flex-direction: column;
    color: var(--profile-text);
    background:
        linear-gradient(135deg, rgba(217, 52, 53, 0.09), transparent 18%),
        var(--profile-bg);
    border: 1px solid var(--profile-line-strong);
    border-radius: 0;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72), inset 0 0 0 4px rgba(255, 255, 255, 0.018);
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
    overflow: hidden;
}

#client-scale-root .profile-modal .profile-modal-content::before,
#client-scale-root .profile-modal .profile-modal-content::after {
    content: '';
    position: absolute;
    z-index: 4;
    pointer-events: none;
}

#client-scale-root .profile-modal .profile-modal-content::before {
    top: 0;
    left: 24px;
    width: 260px;
    height: 3px;
    background: var(--profile-red);
}

#client-scale-root .profile-modal .profile-modal-content::after {
    right: 24px;
    bottom: 0;
    width: 160px;
    height: 2px;
    background: var(--profile-gold);
}

#client-scale-root .profile-modal .profile-shell-header {
    position: relative;
    z-index: 5;
    flex: 0 0 82px;
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(270px, auto) minmax(420px, 720px) 54px;
    align-items: center;
    gap: 28px;
    padding: 0 34px;
    box-sizing: border-box;
    background: rgba(8, 10, 12, 0.97);
    border-bottom: 1px solid var(--profile-line);
}

#client-scale-root .profile-shell-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

#client-scale-root .profile-shell-mark {
    width: 40px;
    height: 25px;
    display: inline-block;
    background: var(--profile-red);
    clip-path: polygon(0 0, 100% 0, 76% 32%, 56% 32%, 34% 100%, 12% 100%, 36% 32%, 0 32%);
    filter: drop-shadow(0 4px 10px rgba(217, 52, 53, 0.3));
}

#client-scale-root .profile-modal .profile-shell-header h2 {
    margin: 0;
    color: var(--profile-text);
    font-family: 'Orbitron', sans-serif;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1;
    text-transform: uppercase;
}

#client-scale-root .profile-search-form {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

#client-scale-root .profile-search-field {
    position: relative;
    min-width: 0;
}

#client-scale-root .profile-search-field i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--profile-muted);
    font-size: 16px;
    pointer-events: none;
}

#client-scale-root .profile-search-field input {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    padding: 0 16px 0 46px;
    color: var(--profile-text);
    background: #0b0d0f;
    border: 1px solid var(--profile-line);
    border-radius: 0;
    outline: none;
    font: 600 16px/1 'Exo 2', sans-serif;
    letter-spacing: 0.15px;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#client-scale-root .profile-search-field input::placeholder {
    color: #737570;
    opacity: 1;
}

#client-scale-root .profile-search-field input:focus {
    background: #0f1215;
    border-color: var(--profile-red-bright);
    box-shadow: 0 0 0 3px rgba(217, 52, 53, 0.14);
}

#client-scale-root .profile-search-submit {
    height: 46px;
    min-width: 154px;
    padding: 0 22px;
    border: 1px solid #ee5651;
    border-radius: 0;
    color: #fff7eb;
    background: #9f2227;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    font: 800 14px/1 'Orbitron', sans-serif;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

#client-scale-root .profile-search-submit:hover,
#client-scale-root .profile-search-submit:focus-visible {
    background: #c52f32;
    transform: translateY(-1px);
}

#client-scale-root .profile-modal .profile-modal-close {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--profile-text);
    background: transparent;
    border: 1px solid var(--profile-line);
    border-radius: 0;
    font-size: 20px;
}

#client-scale-root .profile-modal .profile-modal-close:hover,
#client-scale-root .profile-modal .profile-modal-close:focus-visible {
    color: #fff;
    background: rgba(217, 52, 53, 0.17);
    border-color: var(--profile-red-bright);
}

#client-scale-root .profile-search-feedback {
    position: absolute;
    right: 112px;
    bottom: -25px;
    max-width: 620px;
    color: #efb0ae;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    pointer-events: none;
}

#client-scale-root .profile-modal .profile-modal-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    padding: 0;
    overflow: hidden;
}

#client-scale-root .profile-modal-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-content: center;
    gap: 14px;
    color: var(--profile-muted);
    background: rgba(9, 11, 13, 0.96);
    font-size: 16px;
    letter-spacing: 0.4px;
}

#client-scale-root .profile-modal-loading .loading-spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--profile-red-bright);
}

#client-scale-root .profile-modal-main {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#client-scale-root .profile-hero {
    position: relative;
    flex: 0 0 260px;
    min-height: 260px;
    overflow: hidden;
    border-bottom: 1px solid var(--profile-line-strong);
    background:
        radial-gradient(circle at 74% 40%, rgba(217, 52, 53, 0.14), transparent 32%),
        linear-gradient(120deg, #171b1e, #090b0d 70%);
}

#client-scale-root .profile-hero-art {
    position: absolute;
    inset: 0;
    background-position: center 28%;
    background-size: cover;
    filter: saturate(0.92) contrast(1.08);
    transform: scale(1.012);
    transition: background-image 240ms ease, transform 500ms ease;
}

#client-scale-root .profile-hero:hover .profile-hero-art {
    transform: scale(1.025);
}

#client-scale-root .profile-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 8, 10, 0.98) 0%, rgba(7, 8, 10, 0.9) 28%, rgba(7, 8, 10, 0.27) 62%, rgba(7, 8, 10, 0.08) 100%),
        linear-gradient(0deg, rgba(7, 8, 10, 0.86) 0%, transparent 46%);
    pointer-events: none;
}

#client-scale-root .profile-identity {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 44px;
    box-sizing: border-box;
}

#client-scale-root .profile-modal-icon-section {
    position: relative;
    flex: 0 0 auto;
}

#client-scale-root .profile-modal .profile-modal-icon {
    width: 164px;
    height: 164px;
    display: block;
    object-fit: cover;
    border: 2px solid #d8c9aa;
    border-radius: 0;
    background: #0d1012;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(0, 0, 0, 0.45);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

#client-scale-root .profile-modal .profile-modal-change-icon-btn {
    right: -8px;
    bottom: -8px;
    width: 42px;
    height: 42px;
    color: var(--profile-text);
    background: #121518;
    border: 1px solid var(--profile-line-strong);
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    font-size: 15px;
}

#client-scale-root .profile-modal .profile-modal-change-icon-btn:hover,
#client-scale-root .profile-modal .profile-modal-change-icon-btn:focus-visible {
    color: #fff;
    background: var(--profile-red);
    border-color: #ff7770;
    transform: translateY(-2px);
}

#client-scale-root .profile-identity-copy {
    min-width: 0;
    max-width: 760px;
}

#client-scale-root .profile-identity-copy h3 {
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--profile-text);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(38px, 3vw, 58px);
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.03;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.74);
}

#client-scale-root .profile-presence {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--profile-green);
    font: 800 14px/1 'Exo 2', sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

#client-scale-root .profile-presence.is-offline {
    color: #8e918d;
}

#client-scale-root .profile-presence-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

#client-scale-root .profile-modal .profile-modal-stats-compact {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

#client-scale-root .profile-modal .profile-modal-stat-compact {
    min-height: 30px;
    gap: 9px;
    padding: 0 22px;
    color: #d8d4cb;
    border-left: 1px solid rgba(232, 222, 198, 0.3);
    font: 600 18px/1 'Exo 2', sans-serif;
}

#client-scale-root .profile-modal .profile-modal-stat-compact:first-child {
    padding-left: 0;
    border-left: 0;
}

#client-scale-root .profile-modal .profile-modal-stat-compact i {
    color: var(--profile-gold);
    font-size: 19px;
}

#client-scale-root .profile-modal .profile-modal-stat-compact span {
    color: var(--profile-text);
    font-weight: 800;
}

#client-scale-root .profile-modal-rank-name {
    color: var(--profile-gold);
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 800;
}

#client-scale-root .profile-modal-rank-points {
    margin-left: 3px;
    color: #c9c6bd;
    font-size: 14px;
    font-weight: 700;
}

#client-scale-root .profile-background-name {
    position: absolute;
    z-index: 2;
    right: 26px;
    bottom: 18px;
    max-width: 440px;
    overflow: hidden;
    color: rgba(244, 238, 224, 0.8);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 2px 8px #000;
}

#client-scale-root .profile-tabs {
    flex: 0 0 58px;
    display: flex;
    align-items: stretch;
    padding: 0 30px;
    background: #0d1012;
    border-bottom: 1px solid var(--profile-line);
}

#client-scale-root .profile-tab {
    position: relative;
    min-width: 190px;
    padding: 0 28px;
    color: #8e8f8c;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    font: 800 16px/1 'Orbitron', sans-serif;
    letter-spacing: 0.6px;
    text-align: left;
    cursor: pointer;
}

#client-scale-root .profile-tab::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: transparent;
}

#client-scale-root .profile-tab:hover,
#client-scale-root .profile-tab:focus-visible {
    color: #dcd8ce;
    background: rgba(255, 255, 255, 0.025);
}

#client-scale-root .profile-tab.is-active {
    color: var(--profile-text);
    background: linear-gradient(90deg, rgba(217, 52, 53, 0.16), transparent 88%);
}

#client-scale-root .profile-tab.is-active::after {
    background: var(--profile-red-bright);
}

#client-scale-root .profile-panels {
    flex: 1 1 auto;
    min-height: 0;
    background:
        linear-gradient(90deg, rgba(217, 52, 53, 0.04), transparent 14%),
        #0a0d0f;
}

#client-scale-root .profile-tab-panel {
    height: 100%;
    min-height: 0;
    padding: 20px 30px 24px;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-color: rgba(217, 52, 53, 0.5) rgba(255, 255, 255, 0.04);
    scrollbar-width: thin;
}

#client-scale-root .profile-tab-panel[hidden] {
    display: none !important;
}

#client-scale-root .profile-tab-panel::-webkit-scrollbar {
    width: 8px;
}

#client-scale-root .profile-tab-panel::-webkit-scrollbar-thumb {
    background: rgba(217, 52, 53, 0.52);
}

#client-scale-root .profile-panel-heading,
#client-scale-root .profile-collection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 16px;
}

#client-scale-root .profile-panel-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 16px;
    min-width: 0;
}

#client-scale-root .profile-panel-title {
    position: relative;
    margin: 0;
    padding-left: 20px;
    color: var(--profile-text);
    font-family: 'Orbitron', sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 1.2;
    text-transform: uppercase;
}

#client-scale-root .profile-panel-title::before {
    content: '';
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 2px;
    width: 6px;
    background: var(--profile-red);
    transform: skewX(-16deg);
}

#client-scale-root .profile-owned-count {
    color: var(--profile-red-bright);
    font: 800 13px/1 'Orbitron', sans-serif;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

#client-scale-root .profile-show-all {
    min-width: 180px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    color: #e7d2aa;
    background: rgba(213, 173, 99, 0.06);
    border: 1px solid rgba(213, 173, 99, 0.54);
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    font: 800 13px/1 'Orbitron', sans-serif;
    letter-spacing: 0.7px;
    cursor: pointer;
}

#client-scale-root .profile-show-all:hover,
#client-scale-root .profile-show-all:focus-visible {
    color: #fff3db;
    background: rgba(213, 173, 99, 0.14);
    border-color: var(--profile-gold);
}

#client-scale-root .profile-most-played-layout {
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(360px, 0.78fr) minmax(620px, 1.22fr);
    gap: 20px;
}

#client-scale-root .profile-fighter-feature,
#client-scale-root .profile-fighter-list {
    min-width: 0;
}

#client-scale-root .profile-fighter-feature {
    align-self: start;
}

#client-scale-root .profile-fighter-feature-card {
    position: relative;
    height: 320px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    overflow: hidden;
    background: linear-gradient(145deg, #171b1e 0%, #0d1012 72%);
    border: 1px solid rgba(217, 52, 53, 0.65);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

#client-scale-root .profile-fighter-feature-portrait {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #121619;
}

#client-scale-root .profile-fighter-feature-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.92) contrast(1.08);
}

#client-scale-root .profile-fighter-feature-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 9, 11, 0.06) 54%, rgba(8, 9, 11, 0.72) 100%), linear-gradient(0deg, rgba(8, 9, 11, 0.42) 0%, transparent 46%);
}

#client-scale-root .profile-fighter-rank {
    position: absolute;
    top: 16px;
    left: 17px;
    z-index: 2;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 34px;
    font-weight: 900;
    text-shadow: 0 3px 10px #000;
}

#client-scale-root .profile-fighter-feature-copy {
    grid-column: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 28px 26px;
}

#client-scale-root .profile-fighter-feature-kicker {
    margin-bottom: 12px;
    color: var(--profile-red-bright);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

#client-scale-root .profile-fighter-feature-name {
    margin: 0;
    color: var(--profile-text);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(19px, 1.45vw, 28px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.72);
}

#client-scale-root .profile-fighter-feature-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

#client-scale-root .profile-fighter-feature-stat {
    padding-left: 12px;
    border-left: 2px solid rgba(217, 52, 53, 0.56);
}

#client-scale-root .profile-fighter-feature-games {
    color: var(--profile-text);
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

#client-scale-root .profile-fighter-feature-label,
#client-scale-root .profile-fighter-feature-last {
    color: var(--profile-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#client-scale-root .profile-fighter-feature-usage {
    color: var(--profile-red-bright);
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

#client-scale-root .profile-fighter-feature-last {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(232, 222, 198, 0.16);
}

#client-scale-root .profile-fighter-feature-last span {
    display: block;
    margin-bottom: 3px;
    color: rgba(232, 222, 198, 0.48);
    font-size: 9px;
    letter-spacing: 1.2px;
}

#client-scale-root .profile-fighter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#client-scale-root .profile-fighter-row {
    min-height: 56px;
    display: grid;
    grid-template-columns: 48px 66px minmax(130px, 1fr) 92px minmax(110px, 0.8fr) 150px;
    align-items: center;
    overflow: hidden;
    color: var(--profile-text);
    background: linear-gradient(90deg, #171b1e, #0d1012);
    border: 1px solid rgba(232, 222, 198, 0.16);
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

#client-scale-root .profile-fighter-row:hover {
    z-index: 1;
    background: linear-gradient(90deg, #1b2024, #111518);
    border-color: rgba(217, 52, 53, 0.52);
    transform: translateX(3px);
}

#client-scale-root .profile-fighter-row-rank {
    color: #858783;
    font-family: 'Orbitron', sans-serif;
    font-size: 23px;
    font-weight: 800;
    text-align: center;
}

#client-scale-root .profile-fighter-row img {
    width: 66px;
    height: 56px;
    object-fit: cover;
    background: #171a1d;
}

#client-scale-root .profile-fighter-row-name {
    min-width: 0;
    padding: 0 16px;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

#client-scale-root .profile-fighter-row-games {
    color: #ddd8cd;
    font-size: 16px;
    font-weight: 800;
}

#client-scale-root .profile-fighter-row-games small,
#client-scale-root .profile-fighter-row-last small {
    display: block;
    margin-top: 2px;
    color: #777a77;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

#client-scale-root .profile-usage-meter {
    padding-right: 16px;
}

#client-scale-root .profile-usage-value {
    margin-bottom: 5px;
    color: var(--profile-red-bright);
    font-size: 12px;
    font-weight: 800;
}

#client-scale-root .profile-usage-track {
    height: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

#client-scale-root .profile-usage-fill {
    height: 100%;
    background: var(--profile-red);
}

#client-scale-root .profile-fighter-row-last {
    padding-right: 14px;
    color: #c8c5bd;
    font-size: 12px;
    line-height: 1.2;
}

#client-scale-root .profile-modal-no-data {
    min-height: 230px;
    display: grid;
    place-content: center;
    grid-column: 1 / -1;
    color: var(--profile-muted);
    border: 1px dashed rgba(232, 222, 198, 0.17);
    text-align: center;
    font-size: 16px;
}

#client-scale-root .profile-modal-no-data i {
    margin: 0 auto 12px;
    color: rgba(217, 52, 53, 0.55);
    font-size: 30px;
}

#client-scale-root .profile-collection-controls {
    flex: 1 1 auto;
    max-width: 660px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 210px;
    gap: 12px;
}

#client-scale-root .profile-collection-controls input,
#client-scale-root .profile-collection-controls select {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 14px;
    color: var(--profile-text);
    background: #0b0e10;
    border: 1px solid var(--profile-line);
    border-radius: 0;
    outline: none;
    font: 700 14px/1 'Exo 2', sans-serif;
}

#client-scale-root .profile-collection-controls input:focus,
#client-scale-root .profile-collection-controls select:focus {
    border-color: var(--profile-red-bright);
    box-shadow: 0 0 0 3px rgba(217, 52, 53, 0.12);
}

#client-scale-root .profile-collection-controls select {
    color-scheme: dark;
    cursor: pointer;
}

#client-scale-root .profile-collection-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

#client-scale-root .profile-skin-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111518;
    border: 1px solid rgba(232, 222, 198, 0.22);
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
    transition: transform 180ms ease, border-color 180ms ease;
}

#client-scale-root .profile-skin-card:hover {
    z-index: 1;
    border-color: rgba(232, 222, 198, 0.5);
    transform: translateY(-2px);
}

#client-scale-root .profile-skin-card.is-profile-background {
    border-color: var(--profile-red-bright);
    box-shadow: inset 0 -3px 0 var(--profile-red);
}

#client-scale-root .profile-skin-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.9) contrast(1.06);
}

#client-scale-root .profile-skin-card-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 6, 7, 0.99) 0%, rgba(5, 6, 7, 0.84) 29%, rgba(5, 6, 7, 0.18) 61%, transparent 76%);
}

#client-scale-root .profile-skin-card-info {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 12px;
    left: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

#client-scale-root .profile-skin-copy {
    min-width: 0;
}

#client-scale-root .profile-skin-name {
    overflow: hidden;
    color: var(--profile-text);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.22;
}

#client-scale-root .profile-skin-character {
    margin-top: 3px;
    color: #c5c2ba;
    font-size: 12px;
    font-weight: 700;
}

#client-scale-root .profile-skin-rarity {
    margin-top: 5px;
    color: #aeb0ad;
    font: 800 10px/1 'Orbitron', sans-serif;
    letter-spacing: 0.75px;
    text-transform: uppercase;
}

#client-scale-root .profile-skin-card[data-rarity='uncommon'] .profile-skin-rarity { color: #5bd69d; }
#client-scale-root .profile-skin-card[data-rarity='rare'] .profile-skin-rarity { color: #69aaff; }
#client-scale-root .profile-skin-card[data-rarity='epic'] .profile-skin-rarity { color: #bd7dff; }
#client-scale-root .profile-skin-card[data-rarity='legendary'] .profile-skin-rarity { color: #f0bb58; }

#client-scale-root .profile-skin-action,
#client-scale-root .profile-skin-selected {
    width: 100%;
    flex: 0 0 auto;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    color: #e8dfcf;
    background: rgba(8, 10, 12, 0.88);
    border: 1px solid rgba(232, 222, 198, 0.44);
    font: 800 10px/1 'Orbitron', sans-serif;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    white-space: nowrap;
}

#client-scale-root .profile-skin-action {
    cursor: pointer;
}

#client-scale-root .profile-skin-action:hover,
#client-scale-root .profile-skin-action:focus-visible {
    color: #fff;
    background: var(--profile-red);
    border-color: #f16a65;
}

#client-scale-root .profile-skin-selected {
    color: #fff0ed;
    border-color: var(--profile-red-bright);
    background: rgba(159, 34, 39, 0.82);
}

#client-scale-root .profile-collection-toast {
    position: absolute;
    z-index: 9;
    right: 30px;
    bottom: 24px;
    max-width: 470px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    color: #b9e3c4;
    background: rgba(14, 28, 18, 0.96);
    border: 1px solid rgba(104, 211, 139, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

#client-scale-root .profile-collection-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#client-scale-root .profile-collection-toast.is-error {
    color: #f0b5b1;
    background: rgba(41, 13, 15, 0.96);
    border-color: rgba(240, 74, 69, 0.55);
}

@media (max-width: 1500px) {
    #client-scale-root .profile-modal .profile-shell-header {
        grid-template-columns: minmax(250px, auto) minmax(360px, 1fr) 50px;
        gap: 20px;
        padding: 0 26px;
    }

    #client-scale-root .profile-modal .profile-shell-header h2 { font-size: 23px; }
    #client-scale-root .profile-shell-mark { width: 34px; }
    #client-scale-root .profile-search-submit { min-width: 136px; padding: 0 16px; }
    #client-scale-root .profile-hero { flex-basis: 232px; min-height: 232px; }
    #client-scale-root .profile-modal .profile-modal-icon { width: 142px; height: 142px; }
    #client-scale-root .profile-identity-copy h3 { font-size: 42px; }
    #client-scale-root .profile-most-played-layout { grid-template-columns: minmax(330px, 0.74fr) minmax(550px, 1.26fr); }
    #client-scale-root .profile-fighter-feature-card { grid-template-columns: 280px minmax(0, 1fr); }
    #client-scale-root .profile-fighter-feature-portrait { top: 20px; width: 280px; height: 280px; }
    #client-scale-root .profile-fighter-feature-copy { padding: 24px 22px; }
    #client-scale-root .profile-fighter-feature-name { font-size: 16px; line-height: 1.18; }
    #client-scale-root .profile-fighter-row { grid-template-columns: 42px 60px minmax(120px, 1fr) 80px minmax(95px, .8fr) 128px; }
    #client-scale-root .profile-fighter-row img { width: 60px; }
    #client-scale-root .profile-fighter-row-name { padding: 0 11px; font-size: 13px; }
    #client-scale-root .profile-collection-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    #client-scale-root .profile-skin-card-info { right: 11px; bottom: 10px; left: 11px; }
    #client-scale-root .profile-skin-name { font-size: 12px; }
    #client-scale-root .profile-skin-action,
    #client-scale-root .profile-skin-selected { padding: 0 7px; font-size: 8px; }
}

@media (max-width: 1180px) {
    #client-scale-root .profile-modal.visible { padding: 22px; }
    #client-scale-root .profile-modal .profile-modal-content {
        width: calc(100% - 44px) !important;
        height: calc(100% - 44px);
    }
    #client-scale-root .profile-shell-brand { gap: 10px; }
    #client-scale-root .profile-shell-mark { display: none; }
    #client-scale-root .profile-modal .profile-shell-header { grid-template-columns: 230px minmax(330px, 1fr) 46px; }
    #client-scale-root .profile-search-submit { min-width: 118px; font-size: 12px; }
    #client-scale-root .profile-most-played-layout { grid-template-columns: 1fr; }
    #client-scale-root .profile-fighter-feature-card { height: 250px; grid-template-columns: 250px minmax(0, 1fr); }
    #client-scale-root .profile-fighter-feature-portrait { top: 0; width: 250px; height: 250px; }
    #client-scale-root .profile-collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    #client-scale-root .profile-modal *,
    #client-scale-root .profile-modal *::before,
    #client-scale-root .profile-modal *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
