/* Топ игроков (views/players.ejs) и профиль игрока (views/player.ejs),
   B-259. Строки и карточки топа — из css/developers/style.css, плитки
   игр — из css/index/style.css. */

/* ===================== ТОП ===================== */

.players-about {
    margin: -12px 0 0;
}

.players-card-link {
    color: var(--text-light);
}

.players-place {
    position: static;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.players-fav {
    display: block;
    overflow: hidden;
    padding: 0 16px 14px;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.players-fav span,
.players-fav-link,
.players-name-link {
    color: var(--text-light);
}

/* ===================== ПРОФИЛЬ ===================== */

.player-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.player-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    padding: 20px 24px;
}

.player-avatar {
    flex-basis: 80px;
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.player-who {
    flex: 1 1 220px;
    min-width: 0;
}

.player-name {
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.player-who p {
    margin: 0;
}

.player-stats {
    display: flex;
    gap: 24px;
    margin: 0;
}

.player-stats div {
    text-align: right;
}

.player-stats dt {
    font-size: 13px;
}

.player-stats dd {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.player-section-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
}

/* Достижения одной игры: шапка с игрой и список. */
.player-awards {
    padding: 14px 16px;
}

.player-awards + .player-awards {
    margin-top: 12px;
}

.player-awards-game {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.player-awards-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.player-awards-name {
    font-weight: 800;
}

/* Список достижений — и в профиле, и на странице игры (views/game_achievements.ejs). */
.awards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.award {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--layer-bg);
}

.award.is-locked {
    opacity: 0.55;
}

.award.is-locked .award-icon {
    filter: grayscale(1);
}

.award-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.award-icon-cup {
    display: grid;
    place-items: center;
    font-size: 26px;
    background-color: var(--layer-3);
}

.award-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.award-title {
    font-weight: 700;
}

.award-desc,
.award-meta {
    font-size: 13px;
}

.award-points {
    flex: none;
    font-weight: 800;
    color: var(--color-attention);
}

@media (max-width: 640px) {
    .player-stats {
        width: 100%;
        justify-content: space-between;
    }

    .player-stats div {
        text-align: left;
    }

    .player-stats dd {
        font-size: 18px;
    }
}
