/* Equipped cosmetics stay above the global theme's card backgrounds. */
.has-social-banner,
.public-profile-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.social-banner-backdrop,
.feed-post > .feed-post-backdrop {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0 !important;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.social-banner-backdrop > img,
.social-banner-backdrop > video,
.feed-post-backdrop > img,
.feed-post-backdrop > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
}

.social-banner-backdrop::after,
.feed-post-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(5, 9, 19, .78), rgba(5, 9, 19, .54));
}

.has-social-banner > :not(.social-banner-backdrop) {
    position: relative;
    z-index: 1;
}

.has-social-banner.comment-item-vip-animated::before {
    display: none;
}

.profile-steam-hero.has-social-banner > .profile-steam-hero-fog {
    position: absolute;
    z-index: 0;
}

.public-profile-identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    min-height: 200px;
    padding: 12px;
}

.public-profile-avatar-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    flex-shrink: 0;
}

.public-profile-avatar-frame {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
}

.public-profile-copy {
    flex: 1 1 240px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.has-social-banner .muted,
.feed-post:has(.feed-post-backdrop) .post-meta {
    color: #d2ddee;
}

.public-comment {
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: #111b2d;
    overflow-wrap: anywhere;
}

.public-comment .comment-meta { margin-bottom: 10px; }
.public-comment .comment-body { white-space: pre-line; }
.public-comment .reply-list { position: relative; }

.shop-card-media > video {
    display: block;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .public-profile-identity { gap: 20px; padding: 6px; }
    .public-profile-copy { flex-basis: 100%; }
    .public-comment { padding: 12px; }
    .public-comment .reply-list { padding-left: 8px; }
}
