.page-profile {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    min-height: 100%;
}
.page-profile--guest {
    align-items: center;
}
.profile-card {
    background-color: var(--color-background);
    color: var(--color-on-background);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 40rem;
    width: 100%;
    box-shadow: 0 4px 1rem rgba(0, 0, 0, 0.15);
}
.profile-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}
.profile-card h2 {
    margin: 2rem 0 1rem;
    font-size: 1.125rem;
}
.profile-card h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1rem;
}
.profile__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.profile__avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
}
.profile__avatar-placeholder {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}
.profile__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.profile__badge {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}
.profile__login {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #5865F2;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: filter 100ms;
}
.profile__login:hover {
    filter: brightness(1.1);
}
.profile__total {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.profile__total-label {
    font-size: 0.875rem;
    opacity: 0.9;
}
.profile__total-value {
    font-size: 1.5rem;
    font-weight: 700;
}
.profile__table {
    width: 100%;
    table-layout: fixed;
}
.profile__table tr td {
    padding: 0.5rem 0;
}
.profile__table .rank {
    width: 3rem;
    text-align: end;
    padding-right: 1rem;
}
.profile__table .level {
    width: 100%;
}
.profile__table .level a:hover {
    text-decoration: underline;
}
.profile__table .score {
    text-align: end;
    white-space: nowrap;
}
.profile__empty {
    padding: 1rem 0;
    opacity: 0.9;
}
.profile__empty-hint {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}
