/* Public player profile */
main.page-player {
    display: block;
    overflow-y: auto;
    padding: 2rem 1rem;
}
.player-page {
    max-width: 60rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.player-banner {
    height: 12rem;
    border-radius: 0.75rem;
    overflow: hidden;
}
/* with an image the banner takes the image's own shape (no cropping),
   only very tall images are capped */
.player-banner--image {
    height: auto;
    min-height: 8rem;
}
.player-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40rem;
    object-fit: cover;
}
.player-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}
.player-name {
    overflow-wrap: anywhere;
}
.player-sub {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.player-bio {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.player-stats {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(127, 127, 127, 0.35);
}
.pinned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
}
.pinned-card {
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--color-background-hover);
    color: var(--color-on-background-hover);
    border: 1px solid rgba(127, 127, 127, 0.35);
    transition: transform 100ms ease;
}
.pinned-card:hover {
    transform: translateY(-2px);
}
.pinned-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.pinned-card__body {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.player-table {
    width: 100%;
}
.player-table td {
    padding: 0.6rem 0.5rem;
}
.player-table .rank {
    width: 3.5rem;
    text-align: end;
}
.player-table .level {
    width: 100%;
}
.player-table .level a:hover {
    text-decoration: underline;
}
.player-table .score {
    text-align: end;
    white-space: nowrap;
}
.banner-preview {
    height: 6rem;
    border-radius: 0.5rem;
    overflow: hidden;
}
.banner-preview--image {
    height: auto;
}
.banner-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 20rem;
    object-fit: cover;
}
.pin-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.25rem;
}
.profile-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.profile-summary--compact {
    gap: 1rem;
    margin-bottom: 1rem;
}
.profile-summary--compact .player-banner {
    height: 8rem;
}
.profile-summary--compact .player-banner--image {
    height: auto;
}
.profile-summary--compact .player-banner img {
    max-height: 30rem;
}
.profile-summary--compact .player-name {
    font-size: 2.25rem;
    line-height: 2.5rem;
}
.profile-summary--compact .pinned-grid {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem;
}
.profile-summary--compact .pinned-card__body {
    padding: 0.5rem 0.75rem 0.75rem;
}
.player-bio--clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.page-leaderboard .player .profile-summary h2 {
    margin: 0;
}
.page-leaderboard .profile-summary {
    font-family: "Lexend Deca", sans-serif;
}
