.player-hero {
    position: relative;
    display: grid;
    min-width: 0;
    width: 100%;
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
    grid-template-areas: "details skin";
    align-items: center;
    min-height: 250px;
    column-gap: clamp(20px, 4vw, 52px);
    row-gap: 20px;
    overflow: visible;
}

.player-hero__details {
    grid-area: details;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 20px;
}

.player-hero__copy {
    min-width: 0;
}

.player-hero__name {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-minecraft);
    font-size: 52px;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.player-hero__name span {
    font-family: inherit;
}

.player-hero__skin {
    grid-area: skin;
    align-self: end;
    justify-self: center;
    width: clamp(170px, 18vw, 220px);
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.22));
}

.player-hero__meta {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.player-hero__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.04);
    line-height: 1.2;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.player-uuid__card {
    position: absolute;
    top: 58px;
    right: 14px;
    z-index: 20;
    width: min(360px, calc(100% - 28px));
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface-2);
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.2;
    box-shadow: var(--shadow-card);
}

.player-uuid__open {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.player-uuid__open:hover,
.player-uuid__action:hover {
    transform: translateY(-1px);
    background-color: rgba(47, 129, 247, 0.16);
}

.player-uuid__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.player-uuid__header > span:first-child {
    margin-right: auto;
}

.player-uuid__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.player-uuid__action:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.player-uuid__value {
    overflow: hidden;
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .player-hero {
        grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
        column-gap: 20px;
    }

    .player-hero__skin {
        width: clamp(150px, 24vw, 190px);
    }

    .player-hero__name {
        font-size: 42px;
    }
}

@media (max-width: 720px) {
    .player-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "skin"
            "meta";
        min-height: 0;
        text-align: center;
    }

    .player-hero__details {
        display: contents;
    }

    .player-hero__copy {
        grid-area: copy;
    }

    .player-hero__meta {
        grid-area: meta;
        justify-content: center;
    }

    .player-hero__name {
        font-size: 30px;
    }

    .player-hero__skin {
        justify-self: center;
        width: min(180px, 58vw);
    }

    .player-uuid__card {
        right: 14px;
        left: 14px;
        width: auto;
    }
}
