.player-profile-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #f5f5f7;
}

.player-profile-showcase__header,
.player-profile-showcase__records {
    padding: 22px;
    background: rgba(29, 32, 40, .9);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
}

.player-profile-showcase__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    height: auto;
    box-sizing: border-box;
    color: #f5f5f7;
}

.player-profile-showcase__identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.player-profile-showcase__avatar {
    display: grid;
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    overflow: hidden;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #2459a6, #17233c);
    border: 3px solid #1687ff;
    border-radius: 50%;
    font-size: 1.7rem;
    font-weight: 900;
}

.player-profile-showcase__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-profile-showcase__identity-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.player-profile-showcase__identity-text h1 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #f5f5f7;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.player-profile-showcase__eyebrow {
    color: #4a9cff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.player-profile-showcase__subtitle {
    color: rgba(255,255,255,.58);
    font-size: .86rem;
    font-weight: 600;
}

.player-profile-showcase__account-id {
    align-self: flex-start;
    padding: 4px 9px;
    color: #8fc4ff;
    background: rgba(48,139,255,.12);
    border: 1px solid rgba(48,139,255,.25);
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 800;
}

.player-profile-showcase__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.player-profile-showcase__tag {
    padding: 5px 10px;
    color: #8fc4ff;
    background: rgba(48,139,255,.12);
    border: 1px solid rgba(48,139,255,.25);
    border-radius: 7px;
    font-size: .75rem;
    font-weight: 800;
}

.player-profile-showcase__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.player-profile-showcase__stat {
    display: flex;
    min-width: 0;
    min-height: 116px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px 20px;
    background: rgba(10, 11, 14, .8);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 13px;
}

.player-profile-showcase__stat > span {
    color: rgba(255,255,255,.53);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.player-profile-showcase__stat strong {
    overflow: hidden;
    color: #f5f5f7;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-profile-showcase__stat strong.is-highlight,
.player-profile-showcase__percent {
    color: #4a9cff;
}

.player-profile-showcase__stat strong.is-gold {
    color: #ffb800;
}

.player-profile-showcase__stat small {
    color: rgba(255,255,255,.43);
    font-size: .76rem;
}

.player-profile-showcase__records {
    padding: 0;
    overflow: hidden;
}

.player-profile-showcase__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.player-profile-showcase__tabs button {
    min-width: 0;
    padding: 16px 10px;
    color: rgba(255,255,255,.55);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease;
}

.player-profile-showcase__tabs button:hover,
.player-profile-showcase__tabs button.active {
    color: #fff;
}

.player-profile-showcase__tabs button.active {
    border-bottom-color: #318bff;
}

.player-profile-showcase__tabs button span {
    color: #4a9cff;
}

.player-profile-showcase__level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    min-height: 140px;
    padding: 18px;
}

.player-profile-showcase__level {
    position: relative;
    display: flex;
    min-height: 108px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 16px;
    color: #fff;
    background: rgba(8, 9, 12, .88);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease;
}

.player-profile-showcase__level[href]:not(.is-static):hover {
    transform: translateY(-2px);
    border-color: rgba(74,156,255,.65);
}

.player-profile-showcase__level.is-first-victor {
    border-color: rgba(255,184,0,.42);
}

.player-profile-showcase__level strong {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.player-profile-showcase__level-rank {
    position: absolute;
    top: 8px;
    left: 10px;
    color: rgba(255,255,255,.48);
    font-size: .7rem;
    font-weight: 800;
}

.player-profile-showcase__percent {
    font-size: 1.15rem;
    font-weight: 900;
}

.player-profile-showcase__level small {
    color: rgba(255,255,255,.48);
    font-size: .7rem;
}

.player-profile-showcase__level .player-profile-showcase__first-victor {
    color: #ffb800;
    font-weight: 900;
}

.player-profile-showcase__empty {
    display: grid;
    min-height: 140px;
    margin: 0;
    padding: 20px;
    place-items: center;
    color: rgba(255,255,255,.48);
    font-style: italic;
}

@media (max-width: 768px) {
    .player-profile-showcase__header {
        padding: 16px;
    }

    .player-profile-showcase__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .player-profile-showcase__stat {
        min-height: 98px;
        padding: 13px;
    }

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

    .player-profile-showcase__tabs button {
        padding: 13px 7px;
        font-size: .68rem;
    }
}
