:root {
    --profile-bg: #04060d;
    --profile-panel: #0a0f1d;
    --profile-panel-2: #0c1120;
    --profile-line: rgba(126, 86, 226, .28);
    --profile-line-soft: rgba(255,255,255,.06);
    --profile-purple: #8e3cff;
    --profile-purple-2: #c13dff;
    --profile-text: #f5f6ff;
    --profile-muted: #8e97b1;
    --profile-muted-2: #667089;
    --profile-green: #33e994;
    --profile-red: #ff6c87;
    --profile-shadow: 0 18px 44px rgba(0,0,0,.32);
    --profile-content: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    color: var(--profile-text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 50% -12%,
            rgba(65, 43, 158, .16),
            transparent 31%
        ),
        var(--profile-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

.profile-site {
    min-height: 100vh;
}

.profile-global-header {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom:
        1px solid rgba(139,63,255,.55);

    background:
        linear-gradient(
            180deg,
            rgba(7,10,20,.99),
            rgba(4,7,14,.98)
        );

    box-shadow:
        0 8px 28px rgba(0,0,0,.22);
}

.profile-global-header__inner {
    width:
        min(
            var(--profile-content),
            calc(100% - 32px)
        );

    min-height: 72px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        250px
        minmax(0,1fr)
        auto;

    align-items: center;
    gap: 18px;
}

.profile-brand {
    width: 190px;
}

.profile-brand img {
    display: block;
    width: 100%;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;

    filter:
        drop-shadow(
            0 0 12px
            rgba(142,60,255,.28)
        );
}

.profile-global-nav {
    min-width: 0;

    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
}

.profile-global-nav
.site-nav-node {
    position: relative;
}

.profile-global-nav
.site-nav-node > a,
.profile-global-nav
.site-nav-node > span {
    min-height: 44px;
    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    border:
        1px solid transparent;

    border-radius: 8px;

    color: #a8b0c8;

    font-size: 11px;
    font-weight: 780;
}

.profile-global-nav
.site-nav-node > a:hover {
    color: #fff;

    background:
        rgba(109,52,204,.11);

    border-color:
        rgba(123,70,207,.20);
}

.profile-global-nav
.site-nav-node > .active {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            rgba(89,45,175,.44),
            rgba(74,39,138,.26)
        );

    border-color:
        rgba(154,76,255,.62);
}

.profile-global-nav
.disabled {
    opacity: .58;
    cursor: default;
}

.profile-global-nav
.site-nav-chevron {
    color: #7e87a0;
    font-size: 8px;
}

.profile-global-nav
.site-nav-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 120;

    width: 210px;
    padding: 6px;

    display: grid;
    gap: 3px;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    border:
        1px solid rgba(104,78,161,.46);

    border-radius: 10px;

    background:
        rgba(6,9,18,.985);

    box-shadow:
        0 20px 46px rgba(0,0,0,.48);

    transform: translateY(6px);
}

.profile-global-nav
.site-nav-node:hover
> .site-nav-dropdown,
.profile-global-nav
.site-nav-node:focus-within
> .site-nav-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.profile-global-nav
.site-nav-dropdown
.site-nav-node > a,
.profile-global-nav
.site-nav-dropdown
.site-nav-node > span {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
}

.profile-global-nav
.site-nav-dropdown
.site-nav-dropdown {
    top: -6px;
    left: calc(100% + 2px);
}

.profile-header-actions {
    display: flex;
    align-items: center;
}

.profile-header-account,
.profile-header-login {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    border:
        1px solid rgba(85,77,136,.44);

    border-radius: 9px;

    background:
        rgba(8,11,22,.96);

    color: #dbe0ec;

    font-size: 10px;
    font-weight: 800;
}

.profile-header-account {
    padding: 4px 11px 4px 5px;
}

.profile-header-login {
    padding: 0 14px;
}

.profile-header-avatar {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #7040dc,
            #b53cff
        );

    font-size: 11px;
    font-weight: 900;
}

.profile-site-main {
    width:
        min(
            var(--profile-content),
            calc(100% - 24px)
        );

    margin: 0 auto;
    padding: 22px 0 54px;
}

.player-profile-hero {
    position: relative;
    overflow: hidden;

    min-height: 285px;
    padding: 30px;

    display: flex;
    align-items: flex-end;

    border:
        1px solid rgba(126,86,226,.32);

    border-radius: 12px;

    background:
        linear-gradient(
            115deg,
            rgba(91,45,194,.30),
            rgba(9,12,23,.96) 48%,
            rgba(28,34,77,.44)
        );

    box-shadow:
        var(--profile-shadow);
}

.player-profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 84% -10%,
            rgba(84,105,255,.24),
            transparent 40%
        );
}

.player-profile-hero__ambient {
    position: absolute;
    left: -110px;
    bottom: -210px;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background:
        rgba(128,69,255,.25);

    filter: blur(58px);
}

.player-profile-hero__content {
    position: relative;
    z-index: 2;

    width: 100%;

    display: grid;
    grid-template-columns:
        auto
        minmax(0,1fr)
        auto;

    align-items: end;
    gap: 22px;
}

.player-profile-avatar-wrap {
    padding: 4px;

    border:
        1px solid rgba(167,99,255,.52);

    border-radius: 24px;

    background:
        rgba(8,11,20,.72);

    box-shadow:
        0 0 32px
        rgba(126,65,240,.18);
}

.player-profile-avatar {
    width: 112px;
    height: 112px;

    display: grid;
    place-items: center;

    border-radius: 20px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #7041e7,
            #9e5bff
        );

    font-size: 42px;
    font-weight: 900;
}

.player-profile-kicker,
.player-section-head > div > span,
.player-identity-card > span,
.player-level-card__top span,
.player-stats-grid span {
    color: #775ca8;

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1.25px;
}

.player-profile-identity h1 {
    margin: 5px 0 0;

    overflow-wrap: anywhere;

    font-size: clamp(30px,4vw,44px);
    line-height: 1.02;
}

.player-profile-meta {
    margin-top: 9px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    color: #8b94ac;

    font-size: 9px;
}

.player-profile-meta i {
    color: #515a70;
    font-style: normal;
}

.player-profile-actions {
    max-width: 430px;

    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.player-profile-button {
    min-height: 39px;
    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 8px;

    color: #9da6bd;
    background:
        rgba(8,11,22,.82);

    font-size: 8px;
    font-weight: 850;
}

.player-profile-button.is-primary {
    color: #fff;

    border-color:
        rgba(145,74,246,.46);

    background:
        linear-gradient(
            135deg,
            rgba(126,60,230,.94),
            rgba(92,61,206,.94)
        );
}

.player-profile-button.is-danger {
    color: #d98e9d;
}

.player-profile-button:disabled {
    cursor: default;
    opacity: .60;
}

.player-profile-button small {
    color: #9865d7;

    font-size: 6px;
    font-weight: 900;
}

.player-identity-grid {
    margin-top: 12px;

    display: grid;
    grid-template-columns:
        .8fr
        .9fr
        1.7fr
        .9fr;

    gap: 10px;
}

.player-identity-card,
.player-level-card,
.player-profile-panel {
    border:
        1px solid var(--profile-line-soft);

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(10,15,29,.96),
            rgba(7,10,20,.96)
        );

    box-shadow:
        var(--profile-shadow);
}

.player-identity-card {
    min-height: 126px;
    padding: 15px;

    display: grid;
    align-content: center;
    gap: 8px;
}

.player-identity-card strong {
    font-size: 18px;
}

.player-identity-card strong.is-accent {
    color: #c1a5ff;
}

.player-identity-card small {
    color: #626c84;
    font-size: 7px;
}

.player-level-card {
    padding: 15px;
}

.player-level-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.player-level-card__top > div {
    display: grid;
    gap: 4px;
}

.player-level-card__top strong {
    font-size: 28px;
}

.player-level-card__top > small {
    height: fit-content;
    padding: 5px 7px;

    border:
        1px solid rgba(145,74,246,.15);

    border-radius: 6px;

    color: #a78dcd;
    background:
        rgba(120,72,240,.06);

    font-size: 7px;
    font-weight: 800;
}

.player-exp-track {
    overflow: hidden;

    height: 7px;
    margin-top: 11px;

    border:
        1px solid rgba(255,255,255,.05);

    border-radius: 999px;

    background: #03050a;
}

.player-exp-fill {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #7545ed,
            #a35dff
        );

    box-shadow:
        0 0 14px
        rgba(135,79,255,.38);
}

.player-level-card__bottom {
    margin-top: 8px;

    display: flex;
    justify-content: space-between;
    gap: 10px;

    color: #626c84;

    font-size: 7px;
}

.player-level-card__bottom strong {
    color: #8f79b6;
}

.player-profile-layout {
    margin-top: 12px;

    display: grid;
    grid-template-columns:
        minmax(0,1.55fr)
        minmax(280px,.65fr);

    gap: 12px;
}

.player-profile-main-column,
.player-profile-side-column {
    display: grid;
    align-content: start;
    gap: 12px;
}

.player-profile-panel {
    padding: 17px;
}

.player-section-head {
    margin-bottom: 14px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.player-section-head > div {
    display: grid;
    gap: 4px;
}

.player-section-head h2 {
    margin: 0;

    font-size: 14px;
}

.player-section-head > small {
    padding: 5px 7px;

    border:
        1px solid rgba(145,74,246,.14);

    border-radius: 6px;

    color: #865abb;
    background:
        rgba(120,72,240,.04);

    font-size: 6px;
    font-weight: 900;
}

.player-showcase-grid {
    display: grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 8px;
}

.player-showcase-slot {
    aspect-ratio: 1 / 1;
    min-height: 110px;

    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;

    border:
        1px dashed rgba(126,86,226,.20);

    border-radius: 8px;

    color: #555f77;
    background:
        rgba(4,7,15,.60);
}

.player-showcase-slot > span {
    color: #7c54b4;
    font-size: 21px;
}

.player-showcase-slot strong {
    font-size: 7px;
}

.player-profile-note {
    margin-top: 10px;
    padding: 10px 11px;

    border:
        1px solid rgba(126,86,226,.11);

    border-radius: 7px;

    color: #667089;
    background:
        rgba(116,58,205,.025);

    font-size: 7px;
    line-height: 1.55;
}

.player-stats-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 8px;
}

.player-stats-grid > div {
    min-height: 98px;
    padding: 12px;

    display: grid;
    align-content: center;
    gap: 5px;

    border:
        1px solid rgba(255,255,255,.045);

    border-radius: 8px;

    background:
        rgba(4,7,15,.58);
}

.player-stats-grid strong {
    font-size: 22px;
}

.player-stats-grid small {
    color: #5f6980;
    font-size: 7px;
}

.player-empty-state {
    min-height: 150px;

    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;

    border:
        1px dashed rgba(126,86,226,.20);

    border-radius: 8px;

    color: #68728a;
    background:
        rgba(4,7,15,.55);

    text-align: center;
}

.player-empty-state > span {
    color: #8259bc;
    font-size: 22px;
}

.player-empty-state strong {
    color: #9aa3b7;
    font-size: 9px;
}

.player-empty-state p {
    max-width: 230px;
    margin: 0;

    font-size: 7px;
    line-height: 1.5;
}

.player-social-list {
    display: grid;
    gap: 6px;
}

.player-social-list > div {
    min-height: 40px;
    padding: 0 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border:
        1px solid rgba(255,255,255,.045);

    border-radius: 7px;

    color: #79829a;
    background:
        rgba(4,7,15,.55);

    font-size: 8px;
}

.player-social-list small {
    color: #865abb;

    font-size: 6px;
    font-weight: 900;
}

.profile-footer {
    border-top:
        1px solid rgba(94,61,171,.18);

    background:
        rgba(4,7,14,.92);
}

.profile-footer__inner {
    width:
        min(
            var(--profile-content),
            calc(100% - 32px)
        );

    min-height: 78px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    color: #59637c;
    font-size: 8px;
}

.profile-footer__brand {
    width: 150px;
}

.profile-footer__brand img {
    display: block;
    width: 100%;
    max-height: 38px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 1050px) {
    .profile-global-header__inner {
        grid-template-columns:
            210px
            1fr
            auto;
    }

    .profile-global-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

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

    .player-profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .profile-global-nav {
        display: none;
    }

    .profile-global-header__inner {
        grid-template-columns:
            1fr
            auto;
    }

    .profile-brand {
        width: 150px;
    }

    .profile-site-main {
        width:
            min(
                100%,
                calc(100% - 20px)
            );

        padding-top: 12px;
    }

    .player-profile-hero {
        min-height: auto;
        padding: 22px;
    }

    .player-profile-hero__content {
        grid-template-columns:
            auto
            minmax(0,1fr);

        align-items: center;
    }

    .player-profile-actions {
        grid-column: 1 / -1;

        max-width: none;

        justify-content: flex-start;
    }

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

    .player-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .profile-header-account > span:last-child {
        display: none;
    }

    .player-profile-hero__content {
        grid-template-columns: 1fr;
    }

    .player-profile-avatar {
        width: 86px;
        height: 86px;

        font-size: 31px;
    }

    .player-profile-avatar-wrap {
        width: fit-content;
    }

    .player-identity-grid {
        grid-template-columns: 1fr;
    }

    .player-profile-actions {
        flex-direction: column;
    }

    .player-profile-button {
        width: 100%;
        justify-content: center;
    }

    .profile-footer__inner {
        padding: 14px 0;

        align-items: flex-start;
        flex-direction: column;
    }
}


/* ================================================================
   Friends Core v1
   ================================================================ */

.player-profile-actions form {
    display: flex;
}

.player-profile-actions form .player-profile-button {
    height: 100%;
}

.player-profile-button {
    cursor: pointer;
    text-decoration: none;
}

.player-profile-button:hover:not(:disabled) {
    border-color: rgba(145, 74, 246, .42);
    color: #e4d9f5;
}

.player-profile-button.is-primary:hover {
    color: #fff;
    filter: brightness(1.08);
}

.player-profile-button.is-danger:hover:not(:disabled) {
    border-color: rgba(255, 91, 125, .28);
    color: #ffadbd;
}

.player-profile-alert {
    margin-top: 12px;
}

@media (max-width: 780px) {
    .player-profile-actions,
    .player-profile-actions form,
    .player-profile-actions .player-profile-button {
        width: 100%;
    }

    .player-profile-actions .player-profile-button {
        justify-content: center;
    }
}
