/**
 * pages/profile.css — C.3.7 (порциями).
 * Порция 1: pure .avatar* (+ потомки). steam-/profile- — позже.
 * Overrides wave8/wave11/mini-profile не трогались.
 * @keyframes avatar-drop-spin остаётся в style.css (работает глобально).
 */

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #4c6ef5;
    background: #2a2e3d;
}

.avatar-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: rgba(0, 0, 0, 0.78);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
}

.avatar-editor-modal.hidden {
    display: none;
}

.avatar-editor-content {
    width: min(1100px, calc(100vw - 24px));
    max-height: 94vh;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--va-border, #2a2e3d);
    background: var(--va-bg-card, #1b1e28);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
}

.avatar-editor-header,
.avatar-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 16px 20px;
    border-bottom: 1px solid var(--va-border, #2a2e3d);
}

.avatar-editor-footer {
    border-bottom: none;
    border-top: 1px solid var(--va-border, #2a2e3d);
    justify-content: flex-end;
}

.avatar-editor-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.avatar-editor-close {
    border: none;
    background: transparent;
    color: var(--va-text-muted, #8d8d8d);
    font-size: 1.2rem;
    cursor: pointer;
}

.avatar-editor-body {
    display: flex;
    gap: var(--space-5);
    padding: 20px;
    overflow: auto;
}

.avatar-editor-canvas-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--va-border, #2a475e);
    background: #0a0c10;
    flex-shrink: 0;
    isolation: isolate;
}

.avatar-drop-zone {
    position: absolute;
    inset: 0;
    z-index: var(--z-raised);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px dashed #2a2e3d;
    border-radius: 12px;
    background: rgba(26, 30, 40, 0.75);
    transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-base), opacity 0.3s ease;
    cursor: pointer;
}

.avatar-drop-zone.hidden {
    display: none;
}

.avatar-drop-zone.dropped {
    opacity: 0;
    pointer-events: none;
}

.avatar-drop-zone.dragover {
    border-color: #4c6ef5;
    background: rgba(76, 110, 245, 0.12);
    transform: scale(1.01);
}

.avatar-drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    text-align: center;
    pointer-events: none;
}

.avatar-drop-zone-content .btn {
    pointer-events: auto;
}

.avatar-drop-icon {
    font-size: 48px;
    line-height: 1;
}

.avatar-drop-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--va-text, #e6e6e6);
}

.avatar-drop-hint {
    font-size: 0.88rem;
    color: var(--va-text-muted, #8d8d8d);
}

.avatar-drop-loading {
    position: absolute;
    inset: 0;
    z-index: var(--z-drawer);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 12px;
    color: var(--va-text, #e6e6e6);
}

.avatar-drop-loading.hidden {
    display: none;
}

.avatar-drop-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #2a2e3d;
    border-top-color: #4c6ef5;
    border-radius: 50%;
    animation: avatar-drop-spin 0.8s linear infinite;
}

.avatar-crop-square {
    position: absolute;
    z-index: var(--z-raised);
    box-sizing: border-box;
    border: 2px solid #4c6ef5;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
}

.avatar-crop-square.hidden {
    display: none;
}

.avatar-crop-square.resizing {
    transition: none;
}

.avatar-crop-square .crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #4c6ef5;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.avatar-crop-square .crop-handle:hover {
    transform: scale(1.25);
    box-shadow: 0 0 14px rgba(76, 110, 245, 0.65);
}

.avatar-crop-square .crop-handle:active {
    transform: scale(0.92);
}

.avatar-crop-square .crop-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.avatar-crop-square .grid-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.18);
}

.avatar-crop-square .grid-line.horizontal {
    left: 0;
    right: 0;
    height: 1px;
}

.avatar-crop-square .grid-line.horizontal.top { top: 33.333%; }

.avatar-crop-square .grid-line.horizontal.bottom { top: 66.666%; }

.avatar-crop-square .grid-line.vertical {
    top: 0;
    bottom: 0;
    width: 1px;
}

.avatar-crop-square .grid-line.vertical.left { left: 33.333%; }

.avatar-crop-square .grid-line.vertical.right { left: 66.666%; }

.avatar-crop-square:hover .crop-size-indicator,
.avatar-crop-square.resizing .crop-size-indicator {
    opacity: 1;
}

.avatar-editor-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-3);
}

.avatar-editor-zoom input[type="range"] {
    width: 200px;
    accent-color: var(--va-accent, #4c6ef5);
}

.avatar-editor-zoom .zoom-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--va-border, #2a2e3d);
    background: transparent;
    color: var(--va-text, #e6e6e6);
    cursor: pointer;
}

.avatar-editor-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 180px;
}

.avatar-preview-circle {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--va-accent, #4c6ef5);
    background: #0a0c10;
}

.avatar-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview-sizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.avatar-preview-sizes .size-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.avatar-preview-sizes img {
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--va-border, #2a475e);
    background: #0a0c10;
}

.avatar-preview-sizes img[data-preview-size="64"] { width: 64px; height: 64px; }

.avatar-preview-sizes img[data-preview-size="128"] { width: 96px; height: 96px; }

.avatar-preview-sizes img[data-preview-size="256"] { width: 112px; height: 112px; }

/* —— C.3.7 steam part 1/4 (rules 1-53 of 209) —— */

.steam-profile-header {
    position: relative;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-5);
}

.steam-profile-header .steam-header-text {
    flex: 1;
    min-width: 0;
    padding-right: 72px;
}

.steam-profile-root {
    width: 100%;
    position: relative;
    overflow: visible;
    min-height: calc(100vh - var(--profile-chrome-top) - var(--profile-chrome-bottom));
}

.steam-profile-bg-fixed {
    position: fixed;
    top: var(--profile-chrome-top);
    left: 0;
    right: 0;
    bottom: var(--profile-chrome-bottom);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.steam-bg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(var(--profile-center-max), 100%) minmax(0, 1fr);
    width: 100%;
    height: 100%;
}

.steam-bg-left {
    grid-column: 1;
}

.steam-bg-center-gap {
    grid-column: 2;
}

.steam-bg-right {
    grid-column: 3;
}

.steam-profile-foreground {
    position: relative;
    z-index: var(--z-base);
}

.steam-profile-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    pointer-events: none;
}

.steam-profile-columns {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - var(--profile-chrome-top) - var(--profile-chrome-bottom));
    position: relative;
    z-index: var(--z-base);
    padding: 0;
    box-sizing: border-box;
}

.steam-side-strip {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    position: relative;
    overflow: hidden;
    height: 100%;
    background: linear-gradient(180deg, var(--va-bg-elevated, #0e1419), var(--va-bg-card, #151b24));
}

.steam-bg-left.has-animated-background,
.steam-bg-right.has-animated-background {
    background: transparent;
}

.steam-profile-center {
    flex: 0 1 var(--profile-center-max);
    width: 100%;
    max-width: var(--profile-center-max);
    background: linear-gradient(180deg, color-mix(in srgb, var(--va-bg, #1b2838) 88%, transparent) 0%, var(--va-bg, #1b2838) 42%, var(--va-bg-elevated, #171a21) 100%);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.42);
}

.steam-banner {
    display: none;
}

.steam-profile-header {
    display: flex;
    gap: 20px;
    padding: 28px 24px 20px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.steam-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.steam-avatar {
    width: 168px;
    height: 168px;
    border: 4px solid var(--va-accent, #66c0f4);
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--va-border, #2a475e);
    display: block;
}

.steam-avatar-wrap.profile-avatar-preview {
    width: var(--profile-avatar-size, 168px);
    height: var(--profile-avatar-size, 168px);
}

.steam-avatar-wrap.profile-avatar-preview:not(.has-frame) {
    overflow: hidden;
    border-radius: 50%;
}

.steam-avatar-wrap.profile-avatar-preview:not(.has-frame) .steam-avatar {
    width: 100%;
    height: 100%;
    border-width: 3px;
    border-radius: 50%;
}

.steam-avatar-wrap.profile-avatar-preview.has-frame {
    overflow: visible !important;
}

.steam-profile-header,
.steam-profile-foreground,
.steam-profile-columns,
.steam-profile-center {
    overflow: visible;
}

/* Аватар под формой рамки; сама рамка не клипится */
.steam-avatar-wrap.profile-avatar-preview.has-frame .steam-avatar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--frame-avatar-ratio, 100%);
    height: var(--frame-avatar-ratio, 100%);
    border: none;
    border-radius: 0;
    object-fit: cover;
    z-index: 1;
    overflow: hidden;
}

.steam-avatar-wrap.profile-avatar-preview.avatar-shape-circle.has-frame .steam-avatar {
    border-radius: 50%;
    -webkit-clip-path: circle(50%);
            clip-path: circle(50%);
}

.steam-avatar-wrap.profile-avatar-preview.avatar-shape-square.has-frame .steam-avatar {
    border-radius: 0;
    -webkit-clip-path: none;
            clip-path: none;
}

.steam-avatar-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--frame-overlay-ratio, 106%);
    height: var(--frame-overlay-ratio, 106%);
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    border-radius: 0;
}

/* frame_config — 1:1 с FrameOverlay.
   Размеры/offset задаются как готовые % из JS (--frame-*-pct), без unitless*%. */
.steam-avatar-wrap.has-frame-config .steam-avatar-frame,
.steam-avatar-frame[data-frame-layout="config"] {
    left: calc(50% + var(--frame-ox-pct, 0%));
    top: calc(50% + var(--frame-oy-pct, 0%));
    width: var(--frame-size-pct, 100%);
    height: var(--frame-size-pct, 100%);
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    object-fit: fill;
}

/* Legacy composed bake из старого FrameOverlay */
.steam-avatar-frame[data-frame-layout="composed"],
.steam-avatar-wrap.has-composed-frame .steam-avatar-frame {
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.has-frame {
    overflow: visible !important;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-circle,
.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-circle .steam-avatar {
    border-radius: 50%;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview:not(.has-frame) .steam-avatar {
    border-radius: 50%;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-square .steam-avatar-frame {
    object-fit: contain;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.has-frame-config .steam-avatar-frame,
.steam-profile-header .steam-avatar-wrap.profile-avatar-preview .steam-avatar-frame[data-frame-layout="config"] {
    object-fit: fill;
}

.steam-avatar-wrap.profile-avatar-preview.avatar-shape-square.has-composed-frame .steam-avatar-frame {
    object-fit: fill;
}

.steam-avatar-wrap.profile-avatar-preview.avatar-shape-square .steam-avatar,
.steam-avatar-wrap.profile-avatar-preview.avatar-shape-square .steam-avatar-frame,
.steam-avatar-wrap.profile-avatar-preview.avatar-shape-square.has-animated-avatar .animated-avatar-video {
    border-radius: 0;
}

.steam-avatar-wrap.has-frame.frame-fallback::after,
.steam-avatar-wrap.frame-fallback::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 3px solid var(--va-accent, #66c0f4);
    border-radius: 0;
    box-shadow: 0 0 14px rgba(102, 192, 244, 0.45);
    pointer-events: none;
    z-index: 2;
}

.steam-header-text h1 {
    font-size: 32px;
    margin: 0 0 6px;
    color: #fff;
}

.steam-mini-profile {
    color: var(--va-text-muted, #8f98a0);
    margin: 0 0 8px;
}

.steam-status-line {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--va-text, #c7d5e0);
    font-size: 14px;
}

.steam-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.steam-level-badge {
    display: inline-block;
    margin-top: var(--space-2);
    padding: 4px 10px;
    background: var(--va-border, #2a475e);
    border-radius: 3px;
    color: var(--va-accent, #66c0f4);
    font-size: 13px;
}

.steam-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.steam-header-btn {
    font-size: 12px;
}

.steam-header-wallets {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-2);
    color: var(--va-text-muted, #8f98a0);
    font-size: 13px;
}

.steam-main-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--va-border, #2a475e);
    padding: 0 12px;
    background: color-mix(in srgb, var(--va-bg, #1b2838) 60%, transparent);
}

.steam-main-tab {
    background: transparent;
    border: none;
    color: var(--va-text-muted, #8f98a0);
    padding: 14px 18px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.steam-main-tab:hover {
    color: var(--va-text, #c7d5e0);
    background: var(--va-border, #2a475e);
}

.steam-main-tab.active {
    color: #fff;
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 38%, var(--va-bg-card, #16202d));
    border-bottom-color: var(--va-accent, #66c0f4);
}

.steam-main-pane {
    display: none;
    padding: 16px 20px 32px;
}

.steam-main-pane.active {
    display: block;
}

.steam-profile-tab-layout {
    display: flex;
    gap: 20px;
}

.steam-profile-main-col {
    flex: 1;
    min-width: 0;
}

.steam-profile-side-col {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    align-self: flex-start;
}

.steam-stat-cards {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    background: var(--va-border, #2a475e);
    border-radius: 5px;
    padding: var(--space-4);
    margin-bottom: 14px;
}

.steam-stat-card {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.steam-stat-card strong {
    display: block;
    color: var(--va-accent, #66c0f4);
    font-size: 22px;
}

.steam-stat-card span {
    color: var(--va-text-muted, #8f98a0);
    font-size: 12px;
}

.steam-panel {
    background: var(--va-border, #2a475e);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 14px;
}

/* —— C.3.7 steam part 2/4 —— */

.steam-panel-title {
    color: var(--va-accent, #66c0f4);
    font-size: 14px;
    margin: 0 0 10px;
}

.steam-showcase-empty,
.steam-showcase-card {
    background: var(--va-bg-elevated, #171a21);
    border: 1px dashed var(--va-border-strong, #3d6b8a);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 14px;
}

.steam-showcase-card.dashed {
    border-style: dashed;
}

.steam-showcase-games {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: 10px;
}

.steam-side-heading {
    color: var(--va-accent, #66c0f4);
    font-size: 12px;
    font-weight: bold;
    margin: 12px 0 6px;
    text-transform: uppercase;
}

.steam-side-link {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--va-text-muted, #8f98a0);
    font-size: 12px;
    padding: 4px 0;
    cursor: pointer;
}

.steam-side-link:hover {
    color: var(--va-text, #c7d5e0);
}

.steam-friend-mini {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    background: transparent;
    border: none;
    color: var(--va-text, #c7d5e0);
    padding: 4px 0;
    cursor: pointer;
    font-size: 12px;
}

.steam-friend-mini img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.steam-side-activity {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    font-size: 12px;
    color: var(--va-text, #c7d5e0);
}

.steam-side-activity img {
    width: 64px;
    height: 36px;
    object-fit: cover;
}

.steam-games-grid.large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-3);
}

.steam-game-tile {
    cursor: pointer;
    background: var(--va-bg-card, #16202d);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.steam-game-tile img {
    width: 100%;
    aspect-ratio: 460/215;
    object-fit: cover;
}

.steam-game-tile span {
    display: block;
    padding: var(--space-2);
    font-size: 13px;
}

.steam-profile-overlay .steam-profile-modal-full {
    width: min(1180px, 98vw);
    max-height: 94vh;
    overflow: auto;
    background: var(--va-bg, #1b2838);
    border-radius: var(--radius-md);
    margin: 2vh auto;
    position: relative;
}

/* Крестик остаётся видимым при прокрутке профиля: sticky внутри скроллящейся модалки. */
.steam-profile-close-top {
    position: sticky;
    top: 12px;
    float: right;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 12px 14px 0 12px;
    border-radius: 12px;
    border: 1px solid var(--va-border, #343b48);
    background: rgba(8, 12, 18, 0.86);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.steam-profile-close-top:hover {
    background: rgba(20, 28, 38, 0.96);
    border-color: var(--va-accent, #66c0f4);
    transform: scale(1.05);
}

.steam-profile-modal-inner .steam-profile-center {
    max-width: 100%;
}

/* Steam-редактор */
.steam-edit-modal {
    width: min(1680px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    height: min(960px, calc(100vh - 16px));
    max-height: calc(100vh - 16px);
    background: var(--va-bg, #1b2838);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.steam-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--va-border, #2a475e);
    flex-shrink: 0;
}

.steam-edit-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.steam-edit-nav {
    width: 230px;
    flex-shrink: 0;
    border-right: 1px solid var(--va-border, #2a475e);
    padding: 12px 0;
    overflow-y: auto;
}

.steam-edit-nav-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--va-text-muted, #8f98a0);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
}

.steam-edit-nav-item:hover,
.steam-edit-nav-item.active {
    color: #fff;
    background: var(--va-border, #2a475e);
}

.steam-edit-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 24px;
    -webkit-overflow-scrolling: touch;
}

.steam-edit-pane {
    display: none;
}

.steam-edit-pane.active {
    display: block;
}

.steam-edit-pane label {
    display: block;
    margin-bottom: var(--space-3);
    color: var(--va-text, #c7d5e0);
}

.steam-edit-pane label.checkbox-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.steam-edit-pane label.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--va-accent, #5865f2);
}

.steam-edit-pane input,
.steam-edit-pane textarea,
.steam-edit-pane select {
    width: 100%;
    margin-top: var(--space-1);
}

.steam-edit-avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    border: 3px solid var(--va-accent, #66c0f4);
    object-fit: cover;
}

.steam-edit-banner-preview {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
}

.steam-edit-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: var(--space-4);
    border-top: 1px solid var(--va-border, #2a475e);
}

.steam-banner.has-animated-background {
    min-height: 220px;
}

.steam-profile-backdrop.has-animated-background,
.steam-side-strip.has-animated-background {
    min-height: 100%;
    height: 100%;
}

.steam-profile-bg-fixed .steam-side-strip {
    background: linear-gradient(180deg, var(--va-bg-elevated, #0e1419), var(--va-bg-card, #151b24));
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-square:not(.has-frame) .steam-avatar,
.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-square .steam-avatar-frame,
.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-square .animated-avatar-video {
    border-radius: 0;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-square.has-frame .steam-avatar {
    border-radius: 0;
    -webkit-clip-path: none;
            clip-path: none;
}

.steam-profile-header .steam-avatar-wrap.profile-avatar-preview.avatar-shape-circle.has-frame .steam-avatar {
    border-radius: 50%;
    -webkit-clip-path: circle(50%);
            clip-path: circle(50%);
}

.steam-edit-banner-preview.has-animated-background {
    min-height: 140px;
    border-radius: 10px;
}

.steam-bg-left.profile-bg-edge-blur-left::before,
.steam-bg-right.profile-bg-edge-blur-right::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.steam-bg-left.profile-bg-edge-blur-left::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 32%, transparent 58%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 28%, transparent 52%);
}

.steam-bg-right.profile-bg-edge-blur-right::before {
    background:
        linear-gradient(270deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 32%, transparent 58%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 28%, transparent 52%);
}

.steam-bg-left.profile-bg-edge-blur-left::after,
.steam-bg-right.profile-bg-edge-blur-right::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.steam-bg-left.profile-bg-edge-blur-left::after {
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image:
        linear-gradient(90deg, #000 0%, #000 30%, transparent 62%),
        linear-gradient(0deg, transparent 42%, #000 100%);
            mask-image:
        linear-gradient(90deg, #000 0%, #000 30%, transparent 62%),
        linear-gradient(0deg, transparent 42%, #000 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.steam-bg-right.profile-bg-edge-blur-right::after {
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image:
        linear-gradient(270deg, #000 0%, #000 30%, transparent 62%),
        linear-gradient(0deg, transparent 42%, #000 100%);
            mask-image:
        linear-gradient(270deg, #000 0%, #000 30%, transparent 62%),
        linear-gradient(0deg, transparent 42%, #000 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.steam-edit-footer.hidden {
    display: none;
}

.steam-showcases-section {
    margin-bottom: 18px;
}

.steam-showcases-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.steam-showcases-head .steam-panel-title {
    margin: 0;
}

.steam-showcases-grid {
    display: grid;
    gap: 14px;
}

/* —— C.3.7 steam part 3/4 —— */

.steam-profile-page {
    max-width: none;
    width: 100%;
    margin: 0;
}

.steam-profile-banner {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    margin-bottom: -40px;
}

.steam-profile-header {
    display: flex;
    gap: 20px;
    padding: 48px 16px 16px;
    background: linear-gradient(180deg, transparent, var(--va-bg, #1b2838) 60%);
    border-radius: var(--radius-sm);
}

.steam-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 3px solid var(--va-accent, #66c0f4);
}

.steam-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    border-bottom: 1px solid var(--va-border, #2a475e);
    padding: 0 8px;
}

.steam-profile-tab {
    background: transparent;
    border: none;
    color: var(--va-text-muted, #8f98a0);
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.steam-profile-tab.active {
    color: #fff;
    border-bottom-color: var(--va-accent, #66c0f4);
}

.steam-profile-tab em {
    font-style: normal;
    color: var(--va-accent, #66c0f4);
    margin-left: var(--space-1);
}

.steam-profile-pane {
    display: none;
    padding: var(--space-4);
}

.steam-profile-pane.active {
    display: block;
}

.steam-profile-modal {
    width: min(920px, 96vw);
    max-height: 90vh;
    overflow: auto;
    background: var(--va-bg, #1b2838);
    border-radius: 6px;
    padding: var(--space-4);
}

.steam-games-grid,
.steam-friends-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.steam-friend-card-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.steam-friend-compare {
    width: 100px;
    font-size: 0.75rem;
}

.steam-friend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    width: 100px;
    padding: var(--space-2);
    background: var(--va-bg-card, #16202d);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--va-text, #c7d5e0);
}

.steam-friend-card img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.steam-activity-item {
    display: flex;
    gap: var(--space-3);
    padding: 12px 0;
    border-bottom: 1px solid var(--va-border, #2a475e);
    cursor: pointer;
}

.steam-activity-item img {
    width: 64px;
    height: 36px;
    object-fit: cover;
    border-radius: 2px;
}

.steam-ach-list,
.steam-reviews-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.steam-review-item {
    background: var(--va-bg-card, #16202d);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
}

/* --- Комментарии профиля (Steam-style) --- */
.steam-comments-panel {
    padding: 0 !important;
    overflow: hidden;
}

.steam-comments-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--va-border, #2a3f5a);
    background: color-mix(in srgb, var(--va-bg-card, #16202d) 55%, transparent);
}

.steam-comments-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--va-text, #e3e6eb);
    text-transform: none;
    letter-spacing: 0;
}

.steam-comments-sub {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: var(--va-text-muted, #8f98a0);
}

.steam-comments-head-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
    flex-shrink: 0;
}

.steam-comments-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--va-text-muted, #8f98a0);
    cursor: pointer;
    -webkit-user-select: none;
            user-select: none;
}

.steam-comments-subscribe input {
    accent-color: var(--va-accent, #66c0f4);
}

.steam-comments-pager {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.steam-comments-pager button {
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.78rem;
    cursor: pointer;
}

.steam-comments-pager button:hover:not(:disabled) {
    color: var(--va-text, #fff);
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 18%, transparent);
}

.steam-comments-pager button.active {
    color: var(--va-text, #fff);
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 28%, transparent);
}

.steam-comments-pager button:disabled {
    opacity: 0.35;
    cursor: default;
}

.steam-comments-compose {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--va-border, #2a3f5a);
    background: color-mix(in srgb, var(--va-bg, #1b2838) 80%, transparent);
}

.steam-comments-compose-avatar {
    flex-shrink: 0;
}

.steam-comments-compose-form {
    flex: 1;
    min-width: 0;
}

.steam-comments-compose-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: 3px;
    border: 1px solid var(--va-border, #3d5a7a);
    background: color-mix(in srgb, var(--va-bg-elevated, #0e1419) 85%, transparent);
    color: var(--va-text, #c7d5e0);
    font: inherit;
    font-size: 0.86rem;
}

.steam-comments-compose-form input:focus {
    outline: none;
    border-color: var(--va-accent, #66c0f4);
}

.steam-comments-list {
    padding: 0;
}

.steam-comment-item {
    display: flex;
    gap: var(--space-3);
    padding: 14px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--va-border, #2a3f5a) 65%, transparent);
}

.steam-comment-item:last-child {
    border-bottom: none;
}

.steam-comment-avatar {
    flex-shrink: 0;
}

.steam-comment-body {
    flex: 1;
    min-width: 0;
}

.steam-comment-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.steam-comment-author {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--va-text, #e3e6eb);
    cursor: pointer;
}

.steam-comment-author:hover {
    color: var(--va-accent, #66c0f4);
}

.steam-comment-date {
    font-size: 0.74rem;
    color: var(--va-text-muted, #8f98a0);
}

.steam-comment-text {
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--va-text, #c7d5e0);
    word-break: break-word;
}

.steam-comment-actions {
    margin-top: 6px;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.steam-comment-more {
    border: 0;
    background: transparent;
    color: var(--va-text-muted, #8f98a0);
    font-size: 1.15rem;
    line-height: 1;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.steam-comment-more:hover,
.steam-comment-more[aria-expanded="true"] {
    color: var(--va-text, #c7d5e0);
    background: color-mix(in srgb, var(--va-bg-elevated, #1b2838) 80%, transparent);
}

.steam-comment-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 20;
    min-width: 220px;
    padding: 6px;
    border-radius: 10px;
    background: var(--va-bg-elevated, #1b2838);
    border: 1px solid var(--va-border, rgba(255, 255, 255, 0.1));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.steam-comment-menu.hidden {
    display: none;
}

.steam-comment-menu button {
    border: 0;
    background: transparent;
    color: var(--va-text, #c7d5e0);
    text-align: left;
    padding: 8px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.82rem;
}

.steam-comment-menu button:hover {
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 16%, transparent);
}

.steam-comments-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.86rem;
}

.steam-comments-pager-bottom {
    justify-content: center;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--va-border, #2a3f5a);
    background: color-mix(in srgb, var(--va-bg-card, #16202d) 40%, transparent);
}

/* --- Инвентарь (Steam-like) --- */
.steam-inventory-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    margin-top: var(--space-3);
}

.steam-inventory-cats {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    position: sticky;
    top: 12px;
}

.steam-inventory-main .inv-search-label {
    display: block;
    margin-bottom: 0;
}

.steam-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: var(--space-3);
}

/* —— C.3.7 steam part 4/4 —— */

.steam-inv-tile {
    background: linear-gradient(180deg, var(--va-bg, #1b2838), var(--va-bg-card, #16202d));
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
    cursor: default;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.steam-inv-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 192, 244, 0.45);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.steam-inv-tile.hidden {
    display: none;
}

.steam-inv-tile-preview {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--va-bg-elevated, #0e1419);
}

.steam-inv-tile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.steam-inv-tile-name {
    display: block;
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--va-text, #c7d5e0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-inv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.steam-inv-head-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.steam-inv-head-ava {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid #3d4450;
}

.steam-inv-head .page-title {
    margin: 0;
    font-size: 1.45rem;
    color: #fff;
}

.steam-inv-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: var(--space-2);
    margin-bottom: 14px;
}

.steam-inv-game {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #2a475e;
    border-radius: 3px;
    background: #16202d;
    color: #c7d5e0;
    cursor: pointer;
    text-align: left;
}

.steam-inv-game:hover {
    border-color: #66c0f4;
    background: #1b2838;
}

.steam-inv-game.on {
    background: #1b2838;
    border-color: #66c0f4;
    box-shadow: inset 0 0 0 1px rgba(102, 192, 244, 0.35);
}

.steam-inv-game-ico {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #0e141b;
    border-radius: 3px;
    color: #66c0f4;
    flex-shrink: 0;
}

.steam-inv-game-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.steam-inv-game-meta b {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.steam-inv-game-meta small {
    color: #8f98a0;
}

.steam-inv-panel {
    border: 1px solid #3d4450;
    background: #1b2838;
    padding: var(--space-4);
}

.steam-inv-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: 14px;
}

.steam-inv-brand {
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    color: #fff;
    font-weight: 800;
}

.steam-inv-search {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    max-width: 520px;
    font-size: 0.85rem;
    color: #8f98a0;
}

.steam-inv-search .search-input {
    width: 100%;
    background: #16202d;
    border: 1px solid #2a475e;
    color: #fff;
}

.steam-inv-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    gap: var(--space-4);
    align-items: start;
}

.steam-inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: var(--space-1);
    background: #101822;
    border: 1px solid #2a475e;
    padding: var(--space-2);
    min-height: 280px;
    max-height: min(62vh, 560px);
    overflow: auto;
}

.steam-inv-slot {
    aspect-ratio: 1;
    border: 2px solid transparent;
    background: #16202d;
    padding: 3px;
    cursor: pointer;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: auto;
    position: relative;
    z-index: var(--z-base);
    border-radius: 3px;
    min-height: 0;
}

.steam-inv-slot-preview {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.steam-inv-slot-preview img,
.steam-inv-slot-preview .vcoin-theme-preview,
.steam-inv-detail-preview img,
.steam-inv-detail-preview .vcoin-theme-preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
}

.steam-inv-slot-preview .vcoin-theme-preview,
.steam-inv-detail-preview .vcoin-theme-preview {
    min-height: 100%;
    border-radius: 2px;
    transform: scale(1);
}

.steam-inv-detail-preview {
    display: grid;
    place-items: center;
    min-height: 110px;
    max-height: 140px;
    margin-bottom: var(--space-3);
    background: #101822;
    border: 1px solid #2a475e;
    overflow: hidden;
}

.steam-inv-body {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.7fr);
    gap: 14px;
    align-items: start;
}

.steam-inv-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
    margin-bottom: var(--space-3);
}

.steam-inv-game {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 10px;
    border: 1px solid #2a475e;
    border-radius: 3px;
    background: #16202d;
    color: #c7d5e0;
    cursor: pointer;
    text-align: left;
}

.steam-inv-game-ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: #0e141b;
    border-radius: 3px;
    color: #66c0f4;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.steam-inv-slot-preview .inv-icon-demo,
.steam-inv-detail-preview .inv-icon-demo {
    width: 70%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: #0e141b;
    color: #66c0f4;
    font-size: 0.7rem;
    font-weight: 700;
}

.steam-inv-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.steam-inv-slot .inv-cell-fallback {
    font-size: 1.4rem;
    color: #66c0f4;
    font-weight: 700;
}

.steam-inv-slot:hover {
    border-color: rgba(102, 192, 244, 0.45);
}

.steam-inv-slot.on {
    border-color: #66c0f4;
    box-shadow: 0 0 0 1px #66c0f4 inset;
}

.steam-inv-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: 10px;
    color: #8f98a0;
}

.steam-inv-detail {
    background: #16202d;
    border: 1px solid #2a475e;
    padding: 14px;
    min-height: 360px;
}

.steam-inv-detail-preview {
    display: grid;
    place-items: center;
    min-height: 160px;
    margin-bottom: var(--space-3);
    background: #101822;
    border: 1px solid #2a475e;
}

.steam-inv-detail-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.steam-inv-detail h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.15rem;
}

.steam-inv-type {
    margin: 0 0 10px;
    font-size: 0.82rem;
}

.steam-inv-desc {
    margin: 0 0 12px;
    color: #c7d5e0;
    font-size: 0.9rem;
}

.steam-inv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.steam-inv-tag {
    padding: 3px 8px;
    border-radius: 2px;
    background: #1b2838;
    border: 1px solid #3d4450;
    font-size: 0.75rem;
    color: #8f98a0;
    text-transform: capitalize;
}

.steam-inv-detail .inv-side-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.steam-inv-detail .inv-side-actions .btn-success {
    background: #5ba32b;
    border-color: #5ba32b;
    color: #fff;
}

.steam-inv-tile .inv-sell-btn {
    margin-top: var(--space-2);
    width: 100%;
}

.steam-header-friend-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* —— C.3.7 profile-* —— */

.profile-page {
    max-width: 960px;
    margin: 0 auto;
}

.profile-banner {
    height: 180px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--va-bg, #1b2838), var(--va-border, #2a475e));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--va-bg, #1b2838) 90%, transparent));
}

.profile-header-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
    margin-top: -48px;
    padding: 0 20px 24px;
    position: relative;
    z-index: var(--z-base);
}

.profile-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    border: 4px solid var(--va-bg, #1b2838);
    object-fit: cover;
    background: var(--va-border, #2a475e);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-header-main h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-1);
}

.profile-login {
    color: var(--va-accent, #66c0f4);
    font-size: 0.95rem;
}

.profile-email,
.profile-since {
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.85rem;
    margin-top: var(--space-1);
}

.profile-level {
    margin-top: var(--space-4);
    max-width: 360px;
}

.profile-wallets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.profile-stat {
    background: var(--va-border, #2a475e);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    text-align: center;
}

.profile-stat span {
    display: block;
    font-size: 0.8rem;
    color: var(--va-text-muted, #8f98a0);
    margin-bottom: 6px;
}

.profile-stat strong {
    font-size: 1.5rem;
    color: var(--va-text, #c7d5e0);
}

.profile-recent-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.profile-recent-card {
    background: var(--va-border, #2a475e);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.profile-recent-card:hover {
    transform: translateY(-2px);
}

.profile-recent-card img {
    width: 100%;
    aspect-ratio: 460 / 215;
    object-fit: cover;
}

.profile-recent-card span {
    display: block;
    padding: var(--space-2);
    font-size: 0.85rem;
}

.profile-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding: 0 20px 24px;
}

.profile-edit-panel {
    margin: 0 20px 32px;
    padding: var(--space-5);
    background: var(--va-border, #2a475e);
    border-radius: var(--radius-md);
}

.profile-edit-form {
    display: grid;
    gap: 14px;
}

.profile-edit-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--va-text, #c7d5e0);
}

.profile-edit-form input,
.profile-edit-form select,
.profile-edit-form textarea {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--va-bg, #1b2838);
    background: var(--va-bg, #1b2838);
    color: #fff;
    font: inherit;
}

.profile-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: var(--space-2);
}

.profile-card {
    background: #2a2e3d;
    border-radius: 12px;
    padding: var(--space-5);
    max-width: 420px;
    margin-top: 20px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4c6ef5;
    margin-bottom: var(--space-4);
    background: #1b1e28;
}

.profile-card p {
    margin-bottom: var(--space-2);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin: 16px 0;
}

.profile-level-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    min-width: 56px;
    height: 56px;
    padding: 0 10px;
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    font-family: var(--va-display, Syne, sans-serif);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    color: #0a0c10;
    background: linear-gradient(145deg, #8fd3ff, #66c0f4);
    box-shadow: 0 8px 24px rgba(102, 192, 244, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.profile-level-badge .profile-level-num {
    line-height: 1;
}

.profile-level-badge[data-tier="1"] { background: linear-gradient(145deg, #9aa4b2, #6b7280); color: #fff; box-shadow: none; }

.profile-level-badge[data-tier="5"] { background: linear-gradient(145deg, #7dd3a0, #3dd68c); }

.profile-level-badge[data-tier="10"] { background: linear-gradient(145deg, #8fd3ff, #4aa3ff); }

.profile-level-badge[data-tier="20"] { background: linear-gradient(145deg, #a78bfa, #7c5cff); color: #fff; }

.profile-level-badge[data-tier="30"] { background: linear-gradient(145deg, #f0abfc, #d946ef); color: #fff; }

.profile-level-badge[data-tier="40"] { background: linear-gradient(145deg, #fdba74, #f97316); color: #1a0a00; }

.profile-level-badge[data-tier="50"] { background: linear-gradient(145deg, #fbbf24, #f59e0b); box-shadow: 0 0 22px rgba(245, 158, 11, 0.45); }

.profile-level-badge[data-tier="60"] { background: linear-gradient(145deg, #fb7185, #e11d48); color: #fff; }

.profile-level-badge[data-tier="70"] { background: linear-gradient(145deg, #22d3ee, #0891b2); color: #041016; box-shadow: 0 0 24px rgba(34, 211, 238, 0.4); }

.profile-level-badge[data-tier="80"] { background: linear-gradient(145deg, #c084fc, #7e22ce); color: #fff; box-shadow: 0 0 26px rgba(126, 34, 206, 0.45); }

.profile-level-badge[data-tier="90"] { background: linear-gradient(145deg, #fde68a, #f59e0b 40%, #b45309); color: #1a0a00; box-shadow: 0 0 28px rgba(245, 158, 11, 0.55); }

.profile-level-badge[data-tier="100"] {
    background: linear-gradient(135deg, #fff7ae, #f5d76e 35%, #c9a227 70%, #fff1a8);
    color: #1a1200;
    box-shadow: 0 0 32px rgba(245, 215, 110, 0.65);
    border-color: rgba(255, 247, 174, 0.7);
}

.profile-edit-modal {
    width: min(880px, 100%);
    max-height: 90vh;
    background: var(--va-bg, #1b2838);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--va-border, #2a475e);
}

.profile-edit-header h2 {
    color: var(--va-accent, #66c0f4);
    font-size: 1.25rem;
    margin: 0;
}

.profile-edit-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.profile-edit-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3);
    background: #17202a;
    border-right: 1px solid var(--va-border, #2a475e);
}

.profile-edit-tab {
    text-align: left;
    background: transparent;
    border: none;
    color: var(--va-text, #c7d5e0);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font: inherit;
}

.profile-edit-tab.active,
.profile-edit-tab:hover {
    background: var(--va-border, #2a475e);
}

.profile-edit-form {
    padding: 20px;
    overflow-y: auto;
}

.profile-edit-pane {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.profile-edit-pane.active {
    display: flex;
}

.profile-about {
    margin-top: var(--space-2);
    color: var(--va-text, #c7d5e0);
    line-height: 1.5;
}

.profile-bg-layout-split.steam-profile-root {
    width: 100%;
    margin: 0;
}

.profile-bg-layout-full .steam-profile-backdrop {
    display: block;
}

.profile-bg-layout-full .steam-bg-grid {
    display: none;
}

.profile-bg-layout-full .steam-profile-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.profile-bg-mobile-fallback {
    display: none !important;
}

.profile-bg-layout-full .steam-side-strip {
    background: transparent;
}

.profile-avatar-preview {
    width: var(--profile-avatar-size, 120px);
    height: var(--profile-avatar-size, 120px);
    overflow: hidden;
    border-radius: 0;
}

.profile-avatar-preview.has-frame {
    overflow: visible !important;
}

.profile-avatar-preview .steam-avatar {
    width: 100%;
    height: 100%;
    border-width: 3px;
    border-radius: 0;
}

.profile-recent-card.small {
    width: 100px;
}

.profile-edit-overlay .steam-edit-modal {
    border: 1px solid var(--va-border, #2a475e);
}

.profile-edit-overlay {
    overflow-y: auto;
}

.profile-editor-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 14px;
    margin: 12px 0 16px;
    padding-right: var(--space-1);
}

.profile-editor-assets-grid--frames,
.profile-editor-assets-grid--backgrounds {
    max-height: min(520px, 58vh);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: auto;
    scroll-padding: var(--space-2);
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.profile-editor-assets-grid--split {
    max-height: min(360px, 44vh);
}

.profile-bg-split-grids {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin: 12px 0 4px;
}

.profile-bg-split-pane {
    min-width: 0;
    padding: var(--space-3);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.12);
}

.profile-editor-subtitle--small {
    font-size: 0.85rem;
    margin: 10px 0 6px;
}

.profile-editor-block--background {
    min-width: 0;
}

.profile-bg-split-upload {
    grid-column: 1 / -1;
}

.profile-editor-mini-preview--card {
    background: var(--va-surface-2, #2a2e3d);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 12px;
    padding: var(--space-4);
    margin: 12px 0 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-editor-mini-preview .mini-preview-card {
    color: #fff;
}

.profile-editor-mini-preview .mini-preview-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-editor-mini-preview .mini-preview-name {
    font-weight: 700;
    font-size: 15px;
}

.profile-editor-mini-preview .mini-preview-login {
    font-size: 12px;
}

.profile-editor-mini-preview .mini-preview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-3);
    font-size: 12px;
}

.profile-editor-mini-preview .mini-preview-achievement {
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.profile-editor-mini-preview .mini-preview-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.profile-editor-mini-preview .mini-preview-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
}

.profile-editor-mini-preview .mini-preview-btn.primary {
    color: #fff;
}

.profile-editor-mini-preview .mini-preview-btn.outline {
    background: transparent;
    border: 1px solid currentColor;
}

.profile-editor-mini-preview .mini-preview-btn.outline {
    background: transparent;
    border: 1px solid currentColor;
}

.profile-bg-editor-preview {
    display: flex;
    min-height: 220px;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--va-border, #2a475e);
    margin: 0 0 16px;
    position: relative;
    background: var(--va-bg-elevated, #171a21);
}

.profile-bg-editor-preview .profile-bg-preview-backdrop {
    position: absolute;
    inset: 0;
    display: none;
}

.profile-bg-editor-preview.profile-bg-layout-full .profile-bg-preview-backdrop {
    display: block;
}

.profile-bg-editor-preview .profile-bg-preview-left,
.profile-bg-editor-preview .profile-bg-preview-right {
    flex: 1 1 28%;
    min-width: 48px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0e1419, #151b24);
}

.profile-bg-editor-preview .profile-bg-preview-center {
    flex: 0 1 44%;
    min-width: 120px;
    background: linear-gradient(180deg, rgba(27, 40, 56, 0.95), rgba(23, 26, 33, 0.98));
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

.profile-bg-layout-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0 0 12px;
}

.profile-editor-block {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border-radius: 12px;
    border: 1px solid var(--va-border, #2a475e);
    background: rgba(0, 0, 0, 0.12);
}

.profile-editor-block-title {
    margin: 0 0 12px;
    font-size: 1rem;
}

.profile-editor-subtitle {
    margin: 16px 0 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--va-text-muted, #8d8d8d);
}

.profile-editor-block-row {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.profile-editor-block-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 14px;
    padding-left: 10px;
}

.profile-editor-file-label {
    display: block;
    margin-top: var(--space-3);
}

.profile-bg-mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.profile-bg-mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    padding: 14px;
    border-radius: 10px;
    border: 2px solid var(--va-border, #2a475e);
    background: var(--va-bg-elevated, #171a21);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.profile-bg-mode-card:hover {
    border-color: rgba(102, 192, 244, 0.45);
}

.profile-bg-mode-card.active {
    border-color: var(--va-accent, #66c0f4);
    background: rgba(102, 192, 244, 0.08);
}

.profile-bg-mode-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.profile-bg-mode-card strong {
    font-size: 0.95rem;
}

.profile-bg-mode-card .muted {
    font-size: 0.82rem;
    line-height: 1.35;
}

.profile-bg-layout-section {
    margin: 0 0 10px;
}

.profile-bg-layout-section--full {
    display: none;
}

.profile-bg-editor-preview.profile-bg-layout-split {
    padding: 0 5%;
    box-sizing: border-box;
}

.profile-bg-editor-preview.profile-bg-layout-split .profile-bg-preview-left,
.profile-bg-editor-preview.profile-bg-layout-split .profile-bg-preview-right {
    flex: 1 1 33%;
    min-width: 0;
    max-width: none;
}

.profile-bg-editor-preview.profile-bg-layout-split .profile-bg-preview-center {
    flex: 0 1 34%;
}

.profile-bg-split-target {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.profile-bg-split-target .btn.active {
    border-color: var(--va-accent, #66c0f4);
    color: var(--va-accent, #66c0f4);
}

.profile-editor-mini-preview.has-animated-background {
    min-height: 180px;
}

.profile-bg-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0 0 16px;
}

.profile-bg-split-pane [data-bg-edit-side] {
    margin-bottom: 10px;
}

.profile-editor-asset {
    background: var(--va-surface-2, #2a2e3d);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.profile-editor-asset:hover {
    border-color: var(--va-accent, #4c6ef5);
}

.profile-editor-asset.equipped {
    border-color: #f5c542;
}

.profile-editor-asset-preview {
    width: 100px;
    height: 100px;
    margin: 0 auto 8px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-color: #1b1e28;
}

.profile-editor-asset-name {
    font-size: 12px;
    margin-bottom: var(--space-1);
}

.profile-editor-asset-badge {
    font-size: 10px;
    color: var(--va-muted, #8d8d8d);
    margin-bottom: var(--space-2);
}

.profile-editor-asset-badge.premium {
    color: #f5c542;
}

.profile-editor-showcase-slot {
    background: var(--va-surface-2, #2a2e3d);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: 8px 0;
    border: 1px solid transparent;
}

.profile-editor-showcase-slot.active {
    border-color: var(--va-accent, #4c6ef5);
}

.profile-editor-showcase-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-editor-showcase-slot.inactive {
    opacity: 0.72;
}

.profile-editor-privacy-option {
    margin: 8px 0;
}

.profile-editor-privacy-option label {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: var(--space-3);
    align-items: start;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--va-border, #2a2e3d);
    cursor: pointer;
}

.profile-editor-privacy-option label > span {
    min-width: 0;
}

.profile-editor-privacy-option input[type="radio"] {
    margin: 2px 0 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.profile-editor-privacy-option label:hover {
    background: var(--va-surface-2, #2a2e3d);
}

.profile-editor-mini-preview {
    background: var(--va-surface-2, #2a2e3d);
    border-radius: 12px;
    padding: var(--space-5);
    min-height: 160px;
    margin: 16px 0;
}

.profile-editor-mini-preview .mini-preview-row {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.profile-editor-vcoins {
    font-size: 13px;
    color: #f5c542;
    margin-bottom: var(--space-3);
}

.profile-owner-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.profile-wallets-inline {
    margin-top: var(--space-3);
}

.profile-comments-list {
    max-height: none;
    overflow: visible;
}

.profile-comment-form textarea {
    width: 100%;
    margin: 8px 0;
}

.profile-points-modal .profile-points-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--va-border, #2a475e);
}

.profile-art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.profile-art-item {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.profile-art-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.profile-comment-item .chat-author-row {
    grid-row: span 2;
}

/* legacy grid fallback */
.profile-comment-item {
    display: flex;
    gap: var(--space-3);
    padding: 14px 16px;
    border-bottom: 1px solid var(--va-border, #2a475e);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 14px 0;
}

.profile-referral-panel .profile-referral-code-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 10px 0;
}
.profile-referral-panel code {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--va-border, rgba(255,255,255,0.12));
}
.profile-referral-share-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* —— Profile compare with friend —— */
.profile-compare-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
}
.profile-compare-overlay.hidden { display: none; }
.profile-compare-sheet {
    position: relative;
    width: min(720px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--va-border, rgba(255,255,255,.1));
    background: var(--va-bg-elevated, #121820);
    padding: 20px 22px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.profile-compare-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.7;
}
.pc-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.pc-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.pc-user img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a2330;
}
.pc-vs {
    font-weight: 800;
    opacity: 0.55;
    letter-spacing: 0.08em;
}
.pc-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.pc-metric {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}
.pc-metric-label {
    font-size: 0.8rem;
    margin-bottom: 6px;
    opacity: 0.8;
}
.pc-bars { display: flex; flex-direction: column; gap: 6px; }
.pc-bar-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px;
    align-items: center;
}
.pc-bar-row.is-win .pc-bar-val { color: #7dcea0; font-weight: 700; }
.pc-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.pc-bar i {
    display: block;
    height: 100%;
    background: #66c0f4;
    border-radius: inherit;
}
.pc-bar--friend i { background: #a78bfa; }
.pc-diff { font-size: 0.75rem; margin-top: 4px; }
.pc-section { margin-top: 16px; }
.pc-section h3 { margin: 0 0 10px; font-size: 1rem; }
.pc-games {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    font-size: 0.85rem;
}
.pc-games-col h4 { margin: 0 0 6px; font-size: 0.8rem; opacity: 0.85; }
.pc-first {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.pc-first-card {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    text-align: center;
}
.pc-first-card.is-win {
    border: 1px solid rgba(125, 206, 160, 0.45);
    background: rgba(125, 206, 160, 0.1);
}
.pc-first-list { display: flex; flex-direction: column; gap: 6px; }
.pc-first-row {
    display: grid;
    grid-template-columns: 48px 1fr 1fr;
    gap: 8px;
    font-size: 0.85rem;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.03);
}
.pc-who.me { color: #66c0f4; font-weight: 700; }
.pc-who.fr { color: #a78bfa; font-weight: 700; }

@media (max-width: 700px) {
    .pc-metrics,
    .pc-games,
    .pc-first { grid-template-columns: 1fr; }
    .pc-first-row { grid-template-columns: 48px 1fr; }
    .pc-first-row .muted { grid-column: 2; }
}

/* Modal profile: fixed bg paints behind opaque modal — absolute layer inside modal */
.steam-profile-overlay .steam-profile-modal-full {
    width: min(1480px, 96vw);
    background: transparent;
    overflow: auto;
}
.steam-profile-modal-inner {
    position: relative;
    overflow: hidden;
    min-height: min(88vh, 900px);
    background: transparent;
}
.steam-profile-modal-inner .steam-profile-bg-fixed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    /* override page-level position:fixed so bg stays inside the modal */
    pointer-events: none;
}
.steam-profile-modal-inner .steam-profile-center {
    /* keep room for side strips so equipped background is visible */
    max-width: min(var(--profile-center-max, 920px), 100%);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--va-bg, #1b2838) 82%, transparent) 0%,
        color-mix(in srgb, var(--va-bg, #1b2838) 94%, transparent) 42%,
        var(--va-bg-elevated, #171a21) 100%
    );
}
.steam-profile-modal-inner .steam-profile-foreground,
.steam-profile-modal-inner .steam-profile-columns {
    position: relative;
    z-index: 1;
}
.steam-profile-modal-inner.profile-bg-layout-full .steam-profile-backdrop {
    display: block;
}
