* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

:root {
    --voltark-space: clamp(8px, 1.5vw, 16px);
    --voltark-font-base: clamp(0.875rem, 2vw, 1rem);
    --voltark-title-size: clamp(1.35rem, 4vw, 2rem);
    --voltark-card-min: clamp(150px, 18vw, 280px);
    --voltark-tap-min: 44px;
    --voltark-bottom-nav-h: 64px;
    --va-bg: #07080c;
    --va-bg-elevated: #0c0e14;
    --va-bg-card: #161b26;
    --va-text: #eef1f6;
    --va-text-muted: #8b93a7;
    --va-accent: #00e5ff;
    --va-accent-2: #7c4dff;
    --va-border: rgba(255, 255, 255, 0.08);
    --va-border-strong: rgba(255, 255, 255, 0.16);
    --va-btn-text: #061016;
    --va-glow: color-mix(in srgb, var(--va-accent) 35%, transparent);
    --va-radius: 18px;
    --va-radius-sm: 10px;
    --va-radius-pill: 999px;
    --va-blur: 22px;
    --va-danger: #ff3b4e;
    --va-ok: #3dff9a;
    --va-warn: #ffb020;
    --va-font: "Inter", "Segoe UI", system-ui, sans-serif;
    --va-display: "Syne", "Inter", "Segoe UI", sans-serif;
    /* Рамка аватара: компромисс между «внутри» (88%/100%) и «снаружи» (76%/118%) */
    --frame-avatar-ratio: 92%;
    --frame-overlay-ratio: 106%;
}

body {
    background-color: var(--va-bg, #07080c);
    font-family: var(--va-font, 'Inter', 'Segoe UI', system-ui, sans-serif);
    color: var(--va-text, #eef1f6);
    font-size: var(--voltark-font-base, 1rem);
}

.offline-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 183, 77, 0.12);
    border: 1px solid rgba(255, 183, 77, 0.35);
    color: #ffcc80;
    font-size: 0.9rem;
}

.offline-empty-state {
    padding: 32px 24px;
    text-align: center;
}





.main-content h1,
.page-title {
    margin-bottom: var(--space-2);
    font-size: var(--voltark-title-size, 1.75rem);
}

.page-subtitle {
    color: #8d8d8d;
    margin-bottom: var(--space-4);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--voltark-card-min, 300px), 1fr));
    gap: clamp(12px, 2vw, 20px);
    margin-top: 20px;
}





































.card-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #4c6b22;
    color: #beee11;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
}

.card-owned {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #beee11;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 2;
}

.game-meta {
    font-size: 0.8rem;
    color: var(--va-text-muted, #8f98a0);
    margin: 0 0 8px;
}















.price-block {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.price-old {
    color: var(--va-text-muted, #8f98a0);
    text-decoration: line-through;
    font-size: 0.85rem;
}

.price-new {
    color: #beee11;
    font-weight: 600;
}



.badge-owned {
    color: var(--va-accent, #66c0f4);
    font-size: 0.85rem;
}

.badge-installed {
    color: #beee11;
    font-size: 0.9rem;
    padding: 8px 12px;
}

.featured-hero {
    position: relative;
    isolation: isolate;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    min-height: 220px;
    margin-bottom: var(--space-5);
    cursor: pointer;
}

.featured-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--va-bg, #1b2838) 95%, transparent), color-mix(in srgb, var(--va-bg, #1b2838) 40%, transparent));
    pointer-events: none;
    z-index: 0;
}

.featured-content {
    position: relative;
    z-index: var(--z-base);
    padding: var(--space-6);
    max-width: 520px;
}

.featured-label {
    color: var(--va-accent, #66c0f4);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.featured-content h2 {
    font-size: 1.75rem;
    margin: 8px 0;
}

.featured-content p {
    color: var(--va-text-muted, #8f98a0);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: 1.1rem;
    color: var(--va-accent, #66c0f4);
    margin: 24px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}









.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: var(--space-4);
    padding-bottom: var(--space-2);
}

.horizontal-scroll .game-card {
    min-width: 300px;
    max-width: 320px;
    flex-shrink: 0;
}

.game-detail .back-btn {
    margin-bottom: 0;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-4);
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.9rem;
}

.breadcrumb-sep {
    opacity: 0.5;
}

.detail-top {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.detail-media {
    min-width: 0;
}

.detail-main-shot {
    background: var(--va-bg-elevated, #171a21);
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: var(--space-2);
    position: relative;
}

.detail-main-shot img,
.detail-main-shot video.detail-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: none;
    aspect-ratio: unset;
    border-radius: 0;
    transition: opacity 0.35s ease;
}

.detail-main-shot.is-fading img,
.detail-main-shot.is-fading video.detail-video-player,
.detail-main-shot.is-fading .detail-video-embed {
    opacity: 0;
}

.detail-main-shot .detail-video-embed {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    max-height: none;
    aspect-ratio: unset;
    border-radius: 0;
}

.detail-thumbs {
    margin-bottom: 0;
}

.screenshot-thumb-btn {
    border: 2px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 3px;
    flex-shrink: 0;
}

.screenshot-thumb-btn.active,
.screenshot-thumb-btn:hover {
    border-color: var(--va-accent, #66c0f4);
}

.detail-sidebar-sticky {
    position: sticky;
    top: 16px;
    align-self: start;
}

.detail-title {
    font-size: 1.5rem;
    margin: 12px 0 8px;
    line-height: 1.25;
}

.detail-price-row {
    margin: 12px 0;
}

.detail-discount-badge {
    position: static;
    display: inline-block;
    margin-bottom: var(--space-2);
}

.platform-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-3);
}

.platform-badge {
    background: var(--va-bg-elevated, #171a21);
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid var(--va-border-strong, #3d5a73);
}

.detail-short {
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--va-border-strong, #3d5a73);
}

.detail-body {
    max-width: 900px;
}

.detail-desc-text {
    line-height: 1.65;
    white-space: pre-wrap;
}

.req-grid {
    display: grid;
    gap: var(--space-3);
}

.req-block h4 {
    color: var(--va-accent, #66c0f4);
    margin-bottom: 6px;
}

.req-label {
    color: var(--va-text-muted, #8f98a0);
}



















.level-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--va-text-muted, #8f98a0);
    margin-bottom: 6px;
}

.level-bar {
    height: 8px;
    background: var(--va-bg-elevated, #171a21);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: linear-gradient(90deg, #5c7e10, #beee11);
    border-radius: var(--radius-sm);
}









































.form-error {
    color: #ff6b6b;
    font-size: 0.9rem;
}



.detail-hero {
    height: 280px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    margin-bottom: var(--space-4);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-5);
}

.detail-main h1 {
    font-size: 2rem;
    margin-bottom: var(--space-3);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.tag {
    background: var(--va-border, #2a475e);
    color: var(--va-accent, #66c0f4);
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.8rem;
}

.screenshots-row {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-2);
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 20px;
    padding-bottom: var(--space-2);
    max-width: 100%;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--va-accent, #66c0f4) var(--va-bg, #1b2838);
}

.screenshots-row::-webkit-scrollbar {
    height: 8px;
}

.screenshots-row::-webkit-scrollbar-track {
    background: var(--va-bg, #1b2838);
    border-radius: var(--radius-sm);
}

.screenshots-row::-webkit-scrollbar-thumb {
    background: var(--va-accent, #66c0f4);
    border-radius: var(--radius-sm);
}

.screenshot-thumb-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.screenshot-thumb {
    width: 213px;
    height: 120px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    display: block;
}

.detail-description,
.detail-requirements {
    background: var(--va-border, #2a475e);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.detail-description h3,
.detail-requirements h3 {
    color: var(--va-accent, #66c0f4);
    margin-bottom: var(--space-2);
    font-size: 0.95rem;
}

.detail-requirements .req-grid {
    display: grid;
    gap: var(--space-3);
}

.req-block {
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-radius: var(--radius-md);
    background: rgba(15, 22, 32, 0.45);
    padding: var(--space-3);
}

.req-block h4 {
    margin: 0 0 10px;
    color: #9fd3ff;
    font-size: 1rem;
    text-transform: capitalize;
}

.req-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.req-col {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.req-head {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.req-min .req-head {
    color: #9bc7ff;
}

.req-rec .req-head {
    color: #8fe6b7;
}

.req-list {
    margin: 0;
    padding-left: var(--space-4);
    display: grid;
    gap: var(--space-1);
    color: #e7eef7;
    font-size: 0.92rem;
    line-height: 1.35;
}



.detail-sidebar {
    background: var(--va-border, #2a475e);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    align-self: start;
}

.detail-cover {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
}

.detail-meta {
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.85rem;
    margin: 8px 0;
}



















































.lib-hub-block {
    background: var(--va-bg-card, #16202d);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    padding: 14px;
}

.lib-hub-block-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--va-accent, #66c0f4);
    margin-bottom: 10px;
}

.lib-hub-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--va-text-muted, #8f98a0);
    margin: 12px 0 8px;
}

.lib-hub-empty {
    font-size: 0.85rem;
    margin: 0;
}

.lib-hub-friend-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lib-hub-friend-row,
.lib-hub-friend-chip {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
    padding: 4px 0;
}

.lib-hub-friend-row:hover strong {
    color: var(--va-accent, #66c0f4);
}

.lib-hub-friend-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lib-hub-friend-meta strong {
    font-size: 0.9rem;
}

.lib-hub-friend-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lib-hub-friend-chip {
    padding: 0;
}

.lib-hub-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lib-hub-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--va-border, #2a475e);
    color: var(--va-text, #c7d5e0);
    font-size: 0.85rem;
    font-weight: 700;
}

.lib-hub-ach-summary {
    font-size: 0.85rem;
    margin-bottom: var(--space-2);
}

.lib-hub-progress {
    height: 8px;
    background: var(--va-bg-elevated, #171a21);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.lib-hub-progress-fill {
    height: 100%;
    background: var(--va-accent, #66c0f4);
    border-radius: inherit;
    transition: width var(--transition-base);
}

.lib-hub-ach-recent {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.lib-hub-ach-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.85rem;
}

.lib-hub-ach-item.locked {
    opacity: 0.55;
}

.lib-hub-ach-item.is-refunded,
.lib-hub-ach-dot.is-refunded {
    opacity: 0.4;
    filter: grayscale(0.9);
}

.lib-hub-ach-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.lib-hub-ach-dot {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--va-bg-elevated, #171a21);
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.75rem;
}

.lib-hub-ach-dot.unlocked {
    color: var(--va-accent, #66c0f4);
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 18%, transparent);
}

.lib-hub-ach-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 12px;
}

.lib-hub-ach-leader {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 8px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--va-bg-elevated, #171a21) 88%, transparent);
}

.lib-hub-ach-leader.is-me {
    outline: 1px solid color-mix(in srgb, var(--va-accent, #66c0f4) 45%, transparent);
}

.lib-hub-ach-rank {
    width: 1.2rem;
    text-align: center;
    font-weight: 700;
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.85rem;
}

.lib-hub-ach-leader-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lib-hub-ach-leader-meta strong {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lib-hub-ach-overtake {
    margin: 0 0 10px;
    font-size: 0.82rem;
}

.lib-hub-badge-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.lib-hub-game-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    border: 2px solid var(--va-border, #2a475e);
    background: var(--va-bg-elevated, #171a21);
    color: var(--va-text-muted, #8f98a0);
}

.lib-hub-game-badge--bronze {
    border-color: #cd7f32;
    color: #cd7f32;
}

.lib-hub-game-badge--silver {
    border-color: #c0c0c0;
    color: #c0c0c0;
}

.lib-hub-game-badge--gold {
    border-color: #ffd700;
    color: #ffd700;
}

.lib-hub-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
}

.lib-hub-card {
    background: var(--va-bg-elevated, #171a21);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 6px;
    padding: 6px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
}

.lib-hub-card.locked {
    opacity: 0.45;
}

.lib-hub-card img {
    width: 100%;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.lib-hub-card-placeholder {
    font-size: 1.4rem;
}

.lib-hub-card-name {
    font-size: 0.62rem;
    text-align: center;
    color: var(--va-text-muted, #8f98a0);
    line-height: 1.2;
}

.lib-hub-news-list {
    max-height: none;
}

.lib-hub-beta-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    vertical-align: middle;
}

.lib-hub-changelog {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;
    margin: 8px 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--va-text-muted, #a8b0c0);
    max-height: 180px;
    overflow: auto;
}

.lib-hub-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    background: var(--va-accent, #3b82f6);
    color: #fff;
}

/* @bp-lib — 960px */
@media (max-width: 960px) {
    .library-hub-grid {
        grid-template-columns: 1fr;
    }

    .library-hub-side {
        order: -1;
    }
}



.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state h2 {
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--va-text-muted, #8f98a0);
    margin-bottom: 20px;
}

.muted {
    color: var(--va-text-muted, #8f98a0);
    padding: var(--space-3);
}















.loader {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #8d8d8d;
}

.error-box {
    background: #3d1f1f;
    border: 1px solid #7a3030;
    border-radius: var(--radius-md);
    padding: var(--space-4);
    color: #ffb4b4;
}



















.stat-box {
    background: #1b1e28;
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.stat-box span {
    display: block;
    color: #8d8d8d;
    font-size: 0.85rem;
}

.vcoin-balance {
    font-size: 1.1rem;
    color: #ffd43b;
    margin-bottom: var(--space-4);
}





.hidden {
    display: none !important;
}













.friend-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: #2a2e3d;
    border-radius: 10px;
    padding: 12px 16px;
}

.friend-card.friend-select {
    width: 100%;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
}

.friend-card.friend-select:hover,
.friend-card.friend-select.active {
    border-color: var(--va-accent, #66c0f4);
    background: var(--va-bg, #1b2838);
}

.friend-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}











.friend-card .friend-name {
    flex: 1;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
}

.status-dot.online {
    background: #51cf66;
}























.typing-indicator {
    font-size: 0.85rem;
    color: #8d8d8d;
    min-height: 1.25em;
    display: flex;
    align-items: center;
}

.typing-indicator.hidden {
    display: none !important;
}

.chat-typing-footer {
    flex: 0 0 auto;
    width: 100%;
    padding: 2px 14px 6px;
    min-height: 0;
    box-sizing: border-box;
}

.chat-typing-footer:not(.hidden) {
    min-height: 1.4em;
}

.chat-typing-footer .typing-indicator-inner {
    max-width: 100%;
}

.typing-indicator-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.typing-indicator-inner.is-enter {
    animation: typing-fade-in 0.28s ease-out;
}

.typing-indicator-text {
    background: linear-gradient(90deg, #8b9bab 0%, #66c0f4 45%, #8b9bab 90%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: typing-shimmer 2.4s ease-in-out infinite;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 12px;
}

.typing-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #66c0f4;
    opacity: 0.35;
    animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes typing-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes typing-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin: 20px 0;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.admin-tab-content {
    background: #2a2e3d;
    border-radius: 12px;
    padding: var(--space-4);
    min-height: 200px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #1b1e28;
}

























.saved-accounts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.saved-account-chip {
    background: var(--va-border, #2a475e);
    border: 1px solid var(--va-border-strong, #3d5a73);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: var(--va-text, #c7d5e0);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.saved-account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--va-border-strong, #3d5a73);
}

.account-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-toast);
    background: rgba(8, 12, 18, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
}

.account-picker-dialog {
    width: min(720px, 100%);
    background: var(--va-bg, #1b2838);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 12px;
    padding: var(--space-5);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.account-picker-dialog h2 {
    margin: 0 0 18px;
    text-align: center;
}

.account-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-4);
    margin-bottom: 20px;
}

.account-picker-chip-wrap {
    position: relative;
}

.account-picker-chip-wrap .account-picker-card {
    width: 100%;
    padding-top: 28px;
}

.account-picker-chip-wrap .account-picker-remove {
    top: 4px;
    right: 4px;
}

.account-picker-card {
    background: var(--va-bg-card, #16202d);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 10px;
    padding: 14px 10px;
    color: var(--va-text, #c7d5e0);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.account-picker-card:hover {
    border-color: var(--va-accent, #66c0f4);
    transform: translateY(-2px);
}

.account-picker-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--va-border, #2a475e);
}

.account-picker-name {
    font-weight: 600;
    text-align: center;
}

.account-picker-login {
    font-size: 0.82rem;
    text-align: center;
}

.account-picker-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.launcher-self-update-overlay {
    position: fixed;
    inset: 0;
    z-index: 13000;
    background: rgba(8, 12, 18, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.launcher-self-update-card {
    width: min(420px, 92vw);
    background: var(--va-bg, #1b2838);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 12px;
    padding: var(--space-5);
    text-align: center;
}

.launcher-self-update-bar {
    height: 8px;
    background: var(--va-bg-elevated, #0e1419);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: var(--space-4);
}

.launcher-self-update-bar span {
    display: block;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #417a9b, var(--va-accent, #66c0f4));
    animation: launcher-update-indeterminate 1.2s ease-in-out infinite alternate;
}

@keyframes launcher-update-indeterminate {
    from { width: 18%; margin-left: 0; }
    to { width: 72%; margin-left: 28%; }
}

.saved-account-chip:hover {
    border-color: var(--va-accent, #66c0f4);
}

.saved-account-chip-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.saved-account-chip-wrap .saved-account-chip {
    flex: 1;
    min-width: 0;
    padding-right: 36px;
}

.saved-account-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: var(--va-text-muted, #8f98a0);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.saved-account-remove:hover {
    background: rgba(255, 107, 107, 0.25);
    color: #ff8a8a;
}

#auth-login-main.hidden {
    display: none;
}















.chip-name {
    display: block;
    font-weight: 600;
}

.chip-login {
    display: block;
    font-size: 0.8rem;
    color: var(--va-text-muted, #8f98a0);
}






























.fm-invite-pending {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: stretch;
}

.fm-invite-pending-label {
    font-size: 0.75rem;
    color: var(--va-text-muted);
}

.fm-invite-cancel-btn {
    width: 100%;
}

.family-invite-card,
.gift-invite-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}



.family-invite-body,
.gift-invite-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.family-invite-actions,
.gift-invite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}







#np-save-msg:not(:empty) {
    display: block;
    margin-top: var(--space-3);
    padding-top: var(--space-1);
}



















































body.community-active .friends-fab,
body.friends-popup-open .friends-fab,
body.voltark-bot-open .friends-fab {
    display: none;
}

.friends-popup {
    position: fixed;
    right: 20px;
    bottom: 72px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(640px, calc(100vh - 96px));
    z-index: 9001;
    background: color-mix(in srgb, var(--va-bg-elevated, #1a1f26) 96%, transparent);
    border: 1px solid var(--va-border, #343b48);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.friends-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--va-border, #343b48);
    color: var(--va-text, #e3e6eb);
}

.friends-popup-title-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
}

.friends-popup-title-wrap strong {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.friends-popup-title-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 20%, transparent);
    font-size: 0.9rem;
}

.friends-popup-header-actions {
    display: flex;
    gap: var(--space-1);
    align-items: center;
    flex-shrink: 0;
}

.friends-popup-icon-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--va-bg-card, #252b34) 80%, transparent);
    color: var(--va-text, #e3e6eb);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.friends-popup-icon-btn:hover {
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 22%, var(--va-bg-card, #252b34));
    color: var(--va-text, #fff);
}

.friends-popup-close-btn {
    font-size: 0.85rem;
}

.friends-popup-summary {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    padding: 8px 14px 0;
    margin: 0;
}

.friends-popup-stat {
    font-size: 0.72rem;
    color: var(--va-text-muted, #9aa3ad);
    background: color-mix(in srgb, var(--va-bg-card, #252b34) 65%, transparent);
    border-radius: var(--radius-full);
    padding: 4px 10px;
}

.friends-popup-stat b {
    color: var(--va-text, #e3e6eb);
    font-weight: 700;
    margin-right: 3px;
}

.friends-popup-stat.has-requests b {
    color: var(--va-accent, #66c0f4);
}

.friends-popup-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    max-height: 380px;
}

.friends-popup-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 10px 6px 6px;
    margin-top: var(--space-1);
}

.friends-popup-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--va-text-muted, #9aa3ad);
}

.friends-popup-section-count {
    font-size: 0.68rem;
    color: var(--va-text-muted, #9aa3ad);
    background: color-mix(in srgb, var(--va-bg-card, #252b34) 70%, transparent);
    border-radius: var(--radius-full);
    padding: 2px 8px;
}

.friends-popup-section.requests .friends-popup-section-label {
    color: #f0c14b;
}

.friends-popup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--va-text, #e3e6eb);
    padding: var(--space-2);
    font: inherit;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.friends-popup-item:hover {
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 12%, var(--va-bg-card, #252b34));
}

.friends-popup-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--va-bg-card, #252b34);
}

.friends-popup-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.friends-popup-item-name {
    font-weight: 600;
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friends-popup-item-status {
    font-size: 0.74rem;
    color: var(--va-text-muted, #9aa3ad);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friends-popup-item .status-dot {
    flex-shrink: 0;
}





.friends-popup-footer {
    padding: 6px 14px 0;
    font-size: 0.68rem;
    color: var(--va-text-muted, #8b949e);
    margin: 0;
    text-align: center;
}



#friends-popup-list-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#friends-popup-list-view .search-input {
    margin: 8px 12px 6px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--va-bg-card, #252b34) 80%, transparent);
    border-color: var(--va-border, #343b48);
}

#friends-popup-chat-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 280px;
}

.friends-popup-chat-toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 12px;
    border-bottom: 1px solid var(--va-border, #2a475e);
}

.friends-popup-chat-messages {
    min-height: 200px;
    max-height: 320px;
}









.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--va-text-muted, #8f98a0);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
}

.modal-close-btn:hover {
    color: #fff;
}















.profile-edit-form label,
.social-block .field-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--va-text, #c7d5e0);
    font-size: 0.9rem;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--va-text-muted, #8f98a0);
}

.social-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}



.media-preview-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.media-preview img,
#banner-preview {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--va-border, #2a475e);
}

#banner-preview {
    height: 100px;
    background-size: cover;
    background-position: center;
}





.add-friend-modal {
    width: min(860px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--va-bg, #1b2838);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    padding-bottom: var(--space-4);
}

.add-friend-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: var(--space-4);
    padding: 0 20px;
}

.add-friend-preview-panel {
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    background: #17202a;
    min-height: 320px;
    padding: var(--space-4);
    position: sticky;
    top: 0;
}

.add-friend-preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
}

.add-friend-preview-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.add-friend-preview-avatar-btn,
.add-friend-preview-link {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.add-friend-preview-avatar-btn {
    border-radius: 12px;
    line-height: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.add-friend-preview-avatar-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--va-accent, #66c0f4) 55%, transparent);
}
.add-friend-preview-link:hover {
    color: var(--va-accent, #66c0f4);
    text-decoration: underline;
}
.add-friend-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.add-friend-preview-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--va-text-muted, #8f98a0);
}

.add-friend-preview-actions {
    width: 100%;
    margin-top: var(--space-2);
}

.add-friend-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    text-align: center;
    padding: var(--space-3);
}

.add-friend-preview-note {
    margin: 0;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.add-friend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--va-border, #2a475e);
}

.add-friend-header h2 {
    margin: 0;
    color: var(--va-accent, #66c0f4);
    font-size: 1.15rem;
}

.add-friend-intro {
    padding: 12px 20px 0;
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.9rem;
    margin: 0;
}

.add-friend-section {
    padding: 16px 20px 0;
}

.add-friend-section h3 {
    font-size: 0.95rem;
    color: var(--va-text, #c7d5e0);
    margin-bottom: 10px;
}

.add-friend-search-row,
.add-friend-code-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin-bottom: 10px;
}

.add-friend-code-row label {
    color: var(--va-text-muted, #8f98a0);
    white-space: nowrap;
}

.add-friend-results {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 10px;
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-sm);
    background: #17202a;
}

.add-friend-result {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid var(--va-border, #2a475e);
    background: transparent;
    color: var(--va-text, #c7d5e0);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.add-friend-result:hover,
.add-friend-result.active {
    background: #244861;
}

.add-friend-result .avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.add-friend-result-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.add-friend-result-login {
    font-size: 0.82rem;
}

.add-friend-result-code {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

mark.af-hit,
.af-hit {
    background: rgba(102, 192, 244, 0.35);
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
}

.af-match-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    text-transform: lowercase;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(102, 192, 244, 0.2);
    color: var(--va-accent, #66c0f4);
}

.af-match-badge--muted {
    opacity: 0.85;
}

.add-friend-preview-code {
    font-size: 0.85rem;
}

.add-friend-my-code {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: var(--space-2);
    font-size: 0.9rem;
    color: var(--va-text-muted, #8f98a0);
}

.add-friend-status {
    margin: 12px 20px 0;
    font-size: 0.9rem;
}

.add-friend-status.add-friend-ok {
    color: #51cf66;
}

.add-friend-footer {
    padding: 16px 20px 0;
    display: flex;
    justify-content: flex-end;
}



/* Шапка: уведомления, баланс, статус */
.header-icon-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-badge,
#notif-badge.header-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    z-index: 2;
    background: var(--va-accent, #66c0f4);
    color: var(--va-bg, #1b2838);
    font-size: 0.62rem;
    line-height: 1;
    padding: 2px 5px;
    min-width: 1.1rem;
    height: auto;
    border-radius: 999px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0;
    pointer-events: none;
    box-sizing: border-box;
    transform: translate(35%, -35%);
}

.header-balance {
    background: var(--va-border, #2a475e);
    border: 1px solid var(--va-accent, #66c0f4);
    color: #beee11;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.header-status {
    display: none !important;
}

















































.toast-interactive-head .notif-item-body,
.toast-item .notif-item-body {
    display: block;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e8f0f8;
    line-height: 1.45;
    word-break: break-word;
}

.toast-interactive-head .notif-item-body {
    margin-top: var(--space-1);
}

.toast-interactive-head .notif-muted-icon {
    margin-top: 2px;
}

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Нижняя панель загрузки игр */
.game-download-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10500;
    background: linear-gradient(180deg, var(--va-bg-card, #16202d) 0%, var(--va-bg, #1b2838) 100%);
    border-top: 1px solid var(--va-border, #2a475e);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.game-download-bar.hidden {
    display: none;
}



body.game-download-active .app-footer {
    margin-bottom: 72px;
}

body.game-download-active .voltark-voice-bar {
    bottom: 80px;
}

.game-download-bar-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
}

.game-download-bar-main {
    flex: 1;
    min-width: 0;
}

.game-download-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: 6px;
}

.game-download-bar-head strong {
    font-size: 0.95rem;
    color: var(--va-text, #c7d5e0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-download-pct {
    color: #beee11;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.game-download-track {
    height: 8px;
    background: var(--va-bg-elevated, #0e1419);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.game-download-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--va-accent, #66c0f4), #beee11);
    transition: width 0.2s ease;
    border-radius: var(--radius-full);
}

.game-download-stats {
    margin-top: var(--space-1);
    font-size: 0.8rem;
    color: var(--va-text-muted, #8f98a0);
}

.game-download-bar-actions {
    flex-shrink: 0;
}

.install-modal,
.install-modal-wide {
    width: min(520px, 100%);
}

.install-modal-steam {
    width: min(560px, 100%);
}

.install-game-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(102, 192, 244, 0.1);
}

.install-game-cover {
    width: 120px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.install-game-cover--empty {
    background: linear-gradient(135deg, #1b2838, #2a475e);
}

.install-game-meta {
    flex: 1;
    min-width: 0;
}

.install-game-meta h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.install-game-size {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--va-text-muted, #8f98a0);
}

.install-shortcuts {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: 18px;
}

.install-location-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.install-location-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--va-text-muted, #8f98a0);
}

.install-gear-btn {
    background: transparent;
    border: 0;
    color: var(--va-text-muted, #8f98a0);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.install-gear-btn:hover {
    color: var(--va-accent, #66c0f4);
    background: rgba(102, 192, 244, 0.1);
}

.install-drive-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    max-height: 220px;
    overflow-y: auto;
}

.install-drive-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--va-border, #2a475e);
    background: rgba(0, 0, 0, 0.15);
    color: inherit;
    cursor: pointer;
}

.install-drive-row.is-selected {
    border-color: var(--va-accent, #66c0f4);
    background: linear-gradient(90deg, rgba(102, 192, 244, 0.22), rgba(102, 192, 244, 0.08));
}

.install-drive-icon {
    font-size: 1.25rem;
}

.install-drive-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    flex: 1;
}

.install-drive-free {
    width: 100%;
    font-size: 0.78rem;
    color: var(--va-text-muted, #8f98a0);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.install-drive-star {
    color: #e1c96a;
    font-size: 0.85rem;
}

.install-storage-modal {
    width: min(640px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--va-bg, #1b2838);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 10px;
    padding: 20px;
}

.install-storage-drive-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: 6px;
}

.install-storage-path {
    font-size: 0.82rem;
    margin: 0 0 12px;
    word-break: break-all;
}

.install-storage-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #0e1419;
    margin-bottom: 10px;
}

.install-storage-seg--games { background: #66c0f4; }
.install-storage-seg--other { background: #e1c96a; }
.install-storage-seg--free { background: #3d4450; }

.install-storage-legend {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.82rem;
    color: var(--va-text-muted, #8f98a0);
}

.install-storage-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 6px;
}

.install-storage-dot--games { background: #66c0f4; }
.install-storage-dot--other { background: #e1c96a; }
.install-storage-dot--free { background: #3d4450; }

.install-storage-games-head h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.install-storage-games-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: var(--space-4);
}

.install-storage-game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 10px 0;
    border-bottom: 1px solid rgba(42, 71, 94, 0.5);
}

.install-storage-game-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.install-storage-game-size {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--va-text-muted, #8f98a0);
}











.install-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.install-path-row {
    display: flex;
    gap: var(--space-2);
    margin-top: 6px;
}

.install-path-row input {
    flex: 1;
}

.install-hint {
    font-size: 0.85rem;
    margin: 8px 0 16px;
}

.install-progress-track {
    height: 10px;
    background: #17202a;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.install-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--va-accent, #66c0f4), #beee11);
    transition: width var(--transition-base);
}

.install-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.9rem;
}

.detail-video-player,
.detail-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 6px;
    background: #000;
    display: block;
}

.media-thumb-btn {
    position: relative;
}

.media-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.2rem;
    pointer-events: none;
}



.balance-modal,
.install-modal,
.user-view-modal {
    width: min(420px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: var(--va-bg, #1b2838);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    padding: 20px;
}

.balance-header,
.user-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

























































.nav-badge {
    background: var(--va-accent, #66c0f4);
    color: var(--va-bg, #1b2838);
    font-size: 0.7rem;
    padding: 0 5px;
    border-radius: var(--radius-md);
    margin-left: var(--space-1);
}

































































































select.security-input,
.security-field select.security-input,
.voice-field select.security-input,
.feedback-form select.security-input {
    flex: 0 0 auto;
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 8px 40px 8px 14px;
    line-height: 1.25;
    color-scheme: dark;
    background-color: color-mix(in srgb, var(--va-bg-card) 80%, #000);
    color: var(--va-text, #c7d5e0);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--va-accent) 50%),
        linear-gradient(135deg, var(--va-accent) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--va-accent) 8%, transparent);
}

select.security-input::-ms-expand,
.security-field select.security-input::-ms-expand {
    display: none;
}

select.security-input:hover,
.security-field select.security-input:hover {
    border-color: color-mix(in srgb, var(--va-accent) 55%, var(--va-border));
}

select.security-input:focus,
.security-field select.security-input:focus {
    outline: none;
    border-color: var(--va-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--va-accent) 22%, transparent);
}

select.security-input option,
.security-field select.security-input option,
.voice-field select.security-input option,
.feedback-form select.security-input option {
    background-color: var(--va-bg-card, #171a21);
    color: var(--va-text, #c7d5e0);
}

.security-field input.security-input:not(textarea),
.feedback-form input.security-input[type="text"] {
    flex: 0 0 auto;
    width: 100%;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
}













































































.device-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    vertical-align: middle;
}

.device-badge-current {
    background: rgba(102, 192, 244, 0.15);
    color: var(--va-accent, #66c0f4);
    border: 1px solid rgba(102, 192, 244, 0.3);
}

.device-badge-primary {
    background: rgba(164, 208, 7, 0.12);
    color: #b8e04a;
    border: 1px solid rgba(164, 208, 7, 0.3);
}



.user-view-modal {
    width: min(560px, 100%);
}

.user-view-banner {
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
}

.user-view-main {
    display: flex;
    gap: var(--space-4);
}

.user-view-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.user-view-actions {
    display: flex;
    gap: 10px;
    margin-top: var(--space-4);
}

.user-view-games {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

.install-progress {
    margin-top: var(--space-3);
}

.install-progress-bar {
    height: 4px;
    background: var(--va-accent, #66c0f4);
    border-radius: 2px;
    animation: install-pulse 1s infinite;
}

@keyframes install-pulse {
    50% { opacity: 0.4; }
}

/* Steam-профиль (просмотр) */
:root {
    --profile-chrome-top: 57px;
    --profile-chrome-bottom: 49px;
    --profile-center-max: 1120px;
}



























/* @bp-wide — 1100px */
@media (max-width: 1100px) {
    .profile-bg-layout-split.steam-profile-root {
        width: 100%;
    }

    .profile-bg-layout-split .profile-bg-mobile-fallback {
        display: block !important;
    }

    .steam-profile-bg-fixed .steam-bg-left,
    .steam-profile-bg-fixed .steam-bg-right {
        display: none;
    }

    .steam-profile-bg-fixed .steam-bg-grid {
        grid-template-columns: 1fr;
    }
}











.main-content:has(.steam-profile-root) {
    max-width: none;
    padding: 0;
    position: relative;
}







































.user-framed-avatar.frame-fallback::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid var(--va-accent, #66c0f4);
    border-radius: inherit;
    box-shadow: 0 0 10px rgba(102, 192, 244, 0.4);
    pointer-events: none;
    z-index: 2;
}

.user-framed-avatar--square.frame-fallback::after {
    border-radius: 0;
}









































































































body.profile-edit-open {
    overflow: hidden;
}



















.showcase-edit-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.showcase-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}











































































/* --- Анимированные фоны профиля (WebM/GIF) --- */
.has-animated-background {
    position: relative;
    overflow: hidden;
}

.has-animated-background .animated-bg-video,
.has-animated-background .animated-bg-gif,
.has-animated-background .animated-bg-image,
.has-animated-background .animated-bg-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--profile-bg-object-position, center center);
    transform: scale(var(--profile-bg-scale, 1));
    transform-origin: var(--profile-bg-object-position, center center);
    display: block;
    pointer-events: none;
}

.has-animated-background .animated-bg-image {
    background-size: cover;
    background-position: var(--profile-bg-object-position, center center);
    transform: none;
}

.animated-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, rgba(23, 26, 33, 0.82) 100%);
    pointer-events: none;
    z-index: var(--z-base);
}





























#mini-bg-edit-display {
    margin-top: 10px;
}

























.animated-bg-upload-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin: 12px 0 4px;
}















.profile-editor-mini-preview.has-animated-background .mini-preview-card,
.mini-profile.has-animated-background .mini-profile-content {
    position: relative;
    z-index: 2;
}

.mini-profile-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.mini-profile.has-animated-background {
    background: transparent !important;
}

.animated-asset-preview {
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.animated-asset-preview video,
.animated-asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.animated-asset-duration {
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.65);
    padding: 2px 6px;
    border-radius: 6px;
}

.animated-asset-badge,
.profile-editor-asset-preview .animated-asset-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 12px;
}

.animated-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.82);
    padding: 20px;
}

.animated-preview-modal.hidden {
    display: none;
}

/* --- Редактор аватарки (Discord-style) --- */
body.avatar-editor-open {
    overflow: hidden;
}



















#avatar-editor-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

#avatar-editor-canvas.is-empty {
    display: none;
}

























@keyframes avatar-drop-spin {
    to { transform: rotate(360deg); }
}













.crop-handle.nw { top: 0; left: 0; cursor: nw-resize; }
.crop-handle.n { top: 0; left: 50%; cursor: n-resize; }
.crop-handle.ne { top: 0; left: 100%; cursor: ne-resize; }
.crop-handle.w { top: 50%; left: 0; cursor: w-resize; }
.crop-handle.e { top: 50%; left: 100%; cursor: e-resize; }
.crop-handle.sw { top: 100%; left: 0; cursor: sw-resize; }
.crop-handle.s { top: 100%; left: 50%; cursor: s-resize; }
.crop-handle.se { top: 100%; left: 100%; cursor: se-resize; }















.crop-size-indicator {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.72);
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}



#avatar-editor-canvas:not(.is-empty) {
    animation: avatar-canvas-appear 0.35s ease-out;
}

@keyframes avatar-canvas-appear {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#avatar-editor-canvas:active {
    cursor: grabbing;
}













body.background-editor-open {
    overflow: hidden;
}

.background-editor-body {
    align-items: flex-start;
}

.bg-editor-canvas-wrapper {
    width: min(720px, 100%);
    height: 480px;
    position: relative;
    background: #0e1419;
}

.bg-editor-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

#bg-editor-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#bg-editor-canvas.hidden {
    display: none;
}

.bg-crop-rect {
    position: absolute;
    z-index: var(--z-raised);
    box-sizing: border-box;
    border: 2px solid #66c0f4;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
}

.bg-crop-rect.bg-crop-rect--interactive {
    pointer-events: auto;
    cursor: move;
}

.has-bg-crop:not(.bg-editor-transform-preview) .animated-bg-video,
.has-bg-crop:not(.bg-editor-transform-preview) .animated-bg-gif,
.has-bg-crop:not(.bg-editor-transform-preview) .animated-bg-image,
.bg-strip-crop-viewport .animated-bg-video,
.bg-strip-crop-viewport .animated-bg-gif,
.bg-strip-crop-viewport .animated-bg-image,
.bg-strip-crop-viewport .bg-transform-img {
    inset: auto;
    width: calc(100% / var(--bg-crop-w, 1));
    height: calc(100% / var(--bg-crop-h, 1));
    left: calc(-1 * var(--bg-crop-x, 0) * 100% / var(--bg-crop-w, 1));
    top: calc(-1 * var(--bg-crop-y, 0) * 100% / var(--bg-crop-h, 1));
    right: auto;
    bottom: auto;
    object-fit: fill;
    object-position: center center;
    transform: none;
}

.bg-strip-crop-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}















/* Единый размер карточек репостов (адаптивная ширина) */
.repost-embed {
    --repost-card-width: clamp(260px, 92vw, 360px);
    --repost-media-ratio: 16 / 9;
    width: min(100%, var(--repost-card-width));
    max-width: 100%;
    box-sizing: border-box;
}

.repost-embed__header,
.chat-channel-post-label {
    font-weight: 600;
    color: var(--va-accent, #66c0f4);
    font-size: 0.82rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repost-embed__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.repost-embed__author,
.chat-channel-post-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    min-width: 0;
}

.repost-embed__author span,
.chat-channel-post-author span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repost-embed__text,
.chat-channel-post-text,
.channel-repost-original-text {
    font-size: 0.9rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.35em * 3);
    word-break: break-word;
}

.repost-embed__comment,
.repost-embed__quote,
.chat-channel-post-comment,
.chat-channel-post-quote {
    display: block;
    font-size: 0.82rem;
    line-height: 1.35;
    max-height: 3.2em;
    overflow: hidden;
}

.repost-embed__media {
    position: relative;
    width: 100%;
    aspect-ratio: var(--repost-media-ratio);
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}

.repost-embed__media img,
.repost-embed__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.repost-embed__media.is-blurred img,
.repost-embed__media.is-blurred video {
    filter: blur(22px);
    transform: scale(1.08);
}

.repost-embed__media.is-locked img,
.repost-embed__media.is-locked video {
    display: none;
}

.repost-embed__media-more {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    pointer-events: none;
}

.repost-embed__footer,
.chat-channel-post-link {
    font-size: 0.78rem;
    margin-top: auto;
    padding-top: 2px;
}









.bg-crop-rect.hidden {
    display: none;
}

.bg-editor-transform-preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: grab;
}

.bg-editor-transform-preview:active {
    cursor: grabbing;
}

.bg-editor-transform-preview video,
.bg-editor-transform-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-editor-side-preview h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.bg-editor-strip-preview {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--va-border, #2a475e);
    background: #0e1419;
    width: 100%;
    min-height: 100px;
}

.bg-strip-preview--left,
.bg-strip-preview--right {
    max-width: 150px;
    min-height: 240px;
}

.bg-strip-preview--full {
    min-height: 200px;
}

















.animated-preview-modal-content {
    position: relative;
    max-width: min(960px, 96vw);
    width: 100%;
}

.animated-preview-close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 6px 10px;
    cursor: pointer;
}

.animated-preview-player {
    border-radius: 12px;
    min-height: 200px;
    max-height: 70vh;
}

.steam-avatar-wrap.has-animated-avatar .animated-avatar-video,
.user-framed-avatar.has-animated-avatar .animated-avatar-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}



.showcase-game-picker {
    max-height: 240px;
    overflow-y: auto;
}





















.showcase-slot-preview {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.showcase-slot-fields label {
    display: block;
    margin: 8px 0;
    font-size: 0.9rem;
}

.showcase-game-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-2);
    max-height: 220px;
    overflow-y: auto;
    margin-top: var(--space-2);
    padding: var(--space-1);
}

.showcase-game-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--va-bg-card, #16202d);
}

.showcase-game-option:has(input:checked) {
    border-color: var(--va-accent, #66c0f4);
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 12%, var(--va-bg-card, #16202d));
}

.showcase-game-option img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.showcase-game-option span {
    font-size: 0.82rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.showcase-game-option.hidden {
    display: none !important;
}

.showcase-editor-grid {
    display: grid;
    gap: 14px;
}



.showcase-slot-num {
    font-weight: 700;
    color: var(--va-accent, #66c0f4);
    min-width: 28px;
}

.showcase-active-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-left: auto;
}

.showcase-live-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-3);
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
}

.showcase-live-preview-thumbs {
    display: flex;
    gap: var(--space-1);
    flex-shrink: 0;
}

.showcase-preview-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.showcase-game-search {
    margin: 8px 0;
}









.showcase-card-modern {
    border-style: solid;
    border-color: var(--va-border, #2a475e);
    background: linear-gradient(145deg, var(--va-bg-elevated, #1b2838), var(--va-bg-card, #16202d));
}

.showcase-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: var(--space-3);
}

.showcase-card-top h4 {
    margin: 0;
    font-size: 1rem;
}

.showcase-type-badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 18%, transparent);
    color: var(--va-accent, #66c0f4);
    white-space: nowrap;
}

.showcase-tiles-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: var(--space-1);
    scroll-snap-type: x proximity;
}

.showcase-game-tile {
    flex: 0 0 108px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    padding: 6px;
    background: rgba(0, 0, 0, 0.25);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.showcase-game-tile:hover {
    transform: translateY(-2px);
    background: rgba(102, 192, 244, 0.12);
}

.showcase-game-tile img {
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.showcase-game-tile span {
    font-size: 0.75rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.showcase-custom-text {
    margin: 0;
    line-height: 1.5;
    white-space: pre-wrap;
}

.showcase-empty-modern {
    text-align: center;
    padding: 28px 16px;
}

.showcase-empty-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px dashed var(--va-border-strong, #3d6b8a);
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    color: var(--va-accent, #66c0f4);
}























































.review-stars {
    color: #ffc107;
}



























/* Отзывы игры */
.detail-video {
    margin-top: var(--space-5);
}

.detail-video .detail-video-player {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-sm);
    background: #000;
}

.detail-reviews {
    margin-top: var(--space-5);
}

.game-reviews-block h3 {
    margin-bottom: var(--space-4);
}

.game-reviews-summary {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 16px 18px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--va-bg-card, #16202d) 0%, var(--va-bg, #1b2838) 100%);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
}

.game-reviews-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 96px;
    gap: 6px;
}

.game-reviews-avg {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--va-accent, #66c0f4);
}

.review-stars-lg .star {
    font-size: 1.1rem;
}

.game-reviews-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.review-bar-row {
    display: grid;
    grid-template-columns: 28px 1fr 24px;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.85rem;
}

.review-bar-label {
    color: var(--va-text-muted, #8f98a0);
    text-align: right;
}

.review-bar {
    height: 8px;
    background: var(--va-bg-elevated, #0e1419);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #417a9b, var(--va-accent, #66c0f4));
    border-radius: var(--radius-sm);
    transition: width var(--transition-base);
}

.review-bar-count {
    color: var(--va-text-muted, #8f98a0);
    font-size: 0.8rem;
    text-align: right;
}

.game-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.game-review-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--va-border, #2a475e);
}

.game-review-card:last-child {
    border-bottom: none;
}

.game-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--va-border, #2a475e);
    background: var(--va-bg-elevated, #0e1419);
}

.game-review-body {
    flex: 1;
    min-width: 0;
}

.game-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.game-review-date {
    display: block;
    font-size: 0.8rem;
    margin-top: 2px;
}

.game-review-text {
    margin: 8px 0 0;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.review-stars .star,
.review-stars-lg .star {
    color: #3d4450;
}

.review-stars .star.filled,
.review-stars-lg .star.filled {
    color: #c6a046;
}

.game-review-form {
    margin-top: 20px;
    padding: 18px;
    background: var(--va-bg-card, #16202d);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
}

.game-review-form h4 {
    margin: 0 0 6px;
}

.game-review-form-hint {
    margin: 0 0 12px;
    font-size: 0.88rem;
}

.game-review-star-picker {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
}

.review-star-input {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #3d4450;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.12s ease, transform 0.12s ease;
}

.review-star-input:hover,
.review-star-input.active {
    color: #c6a046;
}

.review-star-input:hover {
    transform: scale(1.08);
}

.game-review-textarea {
    width: 100%;
    resize: vertical;
    min-height: 96px;
}

.game-review-form-actions {
    margin-top: var(--space-3);
}

.game-reviews-empty {
    padding: 12px 0 4px;
}

.game-ach-list {
    list-style: none;
    padding: 0;
}

.game-ach-list li.unlocked {
    color: #a4d007;
}

.game-ach-list li.locked {
    color: var(--va-text-muted, #8f98a0);
}



















































.library-news-badge,
.nav-news-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--va-accent, #66c0f4);
    color: #0e1419;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.nav-news-badge {
    margin-left: var(--space-1);
}













.friend-card-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.friend-remove-btn {
    flex-shrink: 0;
}



.mini-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    display: block;
    border: 3px solid transparent;
}





































































.ui-update-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(90deg, #2a475e 0%, #1b2838 100%);
    border-bottom: 1px solid var(--va-accent, #66c0f4);
    color: var(--va-text, #c7d5e0);
    font-size: 0.9rem;
    z-index: 9999;
    position: sticky;
    top: 0;
    isolation: isolate;
    overflow: hidden;
}

.ui-update-banner-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.ui-update-banner-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 22%, transparent);
    color: var(--va-accent, #66c0f4);
    font-size: 1rem;
    font-weight: 700;
}

.ui-update-banner-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}



.chat-msg .chat-msg-body:has(> img.chat-gif-img),
.chat-msg .chat-msg-body:has(> img.chat-image-img),
.chat-msg .chat-msg-body:has(> img.chat-sticker-img) {
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 0;
}

.chat-msg:has(.chat-msg-body > img.chat-gif-img),
.chat-msg:has(.chat-msg-body > img.chat-image-img),
.chat-msg:has(.chat-msg-body > img.chat-sticker-img) {
    max-width: min(70%, 420px);
    width: -webkit-max-content;
    width: max-content;
    min-width: 160px;
}















































.detail-rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.detail-rating-score {
    font-size: 28px;
    font-weight: 700;
    color: var(--va-accent, #66c0f4);
    line-height: 1;
}

.detail-rating-meta {
    font-size: 13px;
    color: var(--va-text-muted, #8f98a0);
}

.detail-related {
    margin-top: var(--space-6);
}

.detail-related h3 {
    margin-bottom: 14px;
}

.detail-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
}





.theme-shop-page .theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: 20px;
}

.theme-card {
    background: var(--va-bg-card, #16202d);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.theme-preview {
    height: 80px;
    border-radius: 6px;
    background: var(--preview-bg, var(--va-bg, #1b2838));
    border: 2px solid var(--preview-accent, var(--va-accent, #66c0f4));
    margin-bottom: 10px;
}







.cloud-saves-panel {
    margin-top: 20px;
    padding-top: var(--space-4);
    border-top: 1px solid var(--va-border, #2a475e);
}

.cloud-saves-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.cloud-saves-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    flex-wrap: wrap;
}

.friend-card-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}





















.password-strength {
    margin: 6px 0 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--va-bg-card, #16202d);
    border: 1px solid var(--va-border, #2a475e);
}

.password-strength.hidden {
    display: none;
}

.password-strength-bar {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--va-bg-elevated, #0e1419);
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.password-strength-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: var(--radius-full);
    background: #ed4245;
    transition: width 0.2s ease, background 0.2s ease;
}

.password-strength[data-level="fair"] .password-strength-fill {
    background: #faa61a;
}

.password-strength[data-level="good"] .password-strength-fill {
    background: #3ba55d;
}

.password-strength[data-level="strong"] .password-strength-fill {
    background: #23a559;
}

.password-strength-label {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: var(--va-text-muted, #8f98a0);
}

.password-strength-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    color: var(--va-text-muted, #8f98a0);
}

.password-strength-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0;
}

.password-strength-rules li.ok {
    color: #57f287;
}

.password-strength-rules li.fail {
    color: var(--va-text-muted, #8f98a0);
}

.password-strength-rules .rule-icon {
    width: 14px;
    flex-shrink: 0;
}

.launcher-update-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(90deg, #1b3a52, var(--va-bg, #1b2838));
    border-bottom: 1px solid var(--va-border, #2a475e);
    z-index: var(--z-toast);
}

.launcher-update-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-tooltip);
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.launcher-update-card {
    width: min(520px, 100%);
    background: var(--va-bg, #1b2838);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 12px;
    padding: var(--space-5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.launcher-update-card h2 {
    margin: 0 0 12px;
    color: #fff;
}

.launcher-update-steps {
    margin: 16px 0;
    padding-left: 20px;
    color: #b8c5d1;
    line-height: 1.5;
}

.launcher-update-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: var(--space-4);
}







.web-mode-banner-dl {
    text-decoration: none;
    white-space: nowrap;
    background: var(--va-accent, #66c0f4);
    color: var(--va-bg, #1b2838);
    border: none;
}

.web-mode-banner-dl:hover {
    filter: brightness(1.08);
}































.community-chat-area,
.chat-window-panel,
#friends-popup-chat-view {
    position: relative;
    overflow: visible;
}



.community-chat-area .chat-emoji-panel,
.chat-window-panel .chat-emoji-panel,
#friends-popup-chat-view .chat-emoji-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 56px;
    z-index: 25;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}



body.community-active #app {
    padding: 0;
    max-width: none;
}















.discord-layout {
    display: flex;
    height: 100%;
    min-height: 0;
    background: var(--va-bg, #36393f);
    color: var(--va-text, #dcddde);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--va-border, #2a475e);
}



















body.community-layout-resizing {
    cursor: col-resize !important;
    -webkit-user-select: none !important;
            user-select: none !important;
}

body.community-layout-resizing * {
    cursor: col-resize !important;
}



.guilds-bar {
    width: 72px;
    background: var(--va-bg-elevated, #202225);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: var(--space-2);
    overflow-y: auto;
    flex-shrink: 0;
}













.hub-avatar-badge {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    top: -3px;
    right: -3px;
}

.hub-avatar-badge-unread,
.guild-icon-badge-unread {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ed4245;
    border: 3px solid var(--va-bg-elevated, #202225);
    top: -2px;
    right: -2px;
}

.hub-avatar-badge-muted,
.guild-icon-badge-muted {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--va-bg-elevated, #202225);
    border: 2px solid var(--va-bg, #36393f);
    font-size: 9px;
    line-height: 12px;
    text-align: center;
}

.friend-avatar-wrap,
.group-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
}

.group-avatar-wrap {
    width: 28px;
    height: 28px;
}

.group-avatar-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--va-accent, #5865f2);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.group-channel-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.group-channel-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presence-status-menu button {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.presence-status-menu button.active {
    background: color-mix(in srgb, var(--va-accent, #5865f2) 20%, transparent);
}









.guilds-divider {
    width: 32px;
    height: 2px;
    background: var(--va-border-strong, #4f545c);
    margin: 4px 0;
}

.members-sidebar {
    width: 220px;
    background: var(--va-bg-card, #2f3136);
    border-left: 1px solid var(--va-bg-elevated, #202225);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.members-sidebar.hidden {
    display: none;
}

.members-header {
    padding: 12px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--va-text-muted, #8e9297);
    border-bottom: 1px solid var(--va-bg-elevated, #202225);
}

#members-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-2);
}

.member-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: default;
}

.member-row:hover {
    background: var(--va-border-strong, #42464d);
}

.member-meta {
    min-width: 0;
    flex: 1;
}

.member-name {
    display: block;
    font-size: 0.9rem;
    color: var(--va-text, #dcddde);
}

.member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: 2px;
}

.member-role-tag {
    font-size: 0.7rem;
    font-weight: 600;
}

.member-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--va-border-strong, #4f545c);
}















.status-dot.status-in_game,
.status-in_game { background: var(--va-accent, #5865f2); }



.context-menu {
    position: fixed;
    z-index: var(--z-toast);
    min-width: 180px;
    background: var(--va-bg-elevated, #18191c);
    border: 1px solid var(--va-bg-card, #2f3136);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    padding: 6px 0;
    overflow: hidden;
}

.context-item {
    padding: 8px 14px;
    font-size: 0.9rem;
    color: var(--va-text, #dcddde);
    cursor: pointer;
    -webkit-user-select: none;
            user-select: none;
}

.context-item:hover {
    background: var(--va-accent, #5865f2);
    color: #fff;
}



































.invite-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px solid var(--va-border-strong, #40444b);
}

.invite-link-input {
    flex: 1 1 220px;
    min-width: 180px;
    font-size: 0.8rem;
}







.invite-row.expired {
    opacity: 0.55;
}

.invite-code {
    background: var(--va-bg-elevated, #202225);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}





.member-role-owner {
    color: #faa61a !important;
    font-weight: 700;
}





.channels-bar {
    width: 240px;
    background: var(--va-bg-card, #2f3136);
    display: flex;
    flex-direction: column;
    padding: var(--space-3);
    gap: var(--space-2);
    overflow: hidden;
    min-width: 0;
    container-type: inline-size;
    container-name: channels-bar;
}

.channels-bar > :not(.voice-connected-banner) {
    min-width: 0;
}

.channels-bar .channels-list,
.channels-bar .community-friends-list,
.channels-bar .chat-list-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.channels-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-1);
}

.channels-head h3 {
    font-size: 0.95rem;
    color: #fff;
}



.channels-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

















.secret-folder-icon {
    position: relative;
    color: var(--va-text, #dcddde);
}

.secret-folder-icon .secret-folder-glyph {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.secret-folder-icon.is-locked {
    color: #f0b232;
}

.secret-folder-count {
    position: absolute;
    right: 2px;
    bottom: 2px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 7px;
    background: var(--va-accent, #5865f2);
    color: #fff;
    font-size: 0.62rem;
    line-height: 14px;
    text-align: center;
}

.secret-folder-list-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--va-text, #dcddde);
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-1);
}

.secret-folder-list-entry:hover {
    background: var(--va-bg-hover, rgba(79, 84, 92, 0.32));
}

.secret-folder-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--va-bg-elevated, #2b2d31);
    flex-shrink: 0;
}

.secret-folder-list-entry .muted {
    margin-left: auto;
}

.secret-folder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.secret-folder-head-actions {
    display: flex;
    gap: var(--space-1);
}

.secret-folder-empty {
    padding: var(--space-3);
}















.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--va-text-muted, #747f8d);
}

.status-dot.status-online,
.status-online { background: #3ba55d; }

.status-dot.status-away,
.status-away { background: #faa81a; }

.status-dot.status-busy,
.status-busy { background: #ed4245; }





.message.own {
    background-color: var(--va-bg-card, #2f3136);
    border-radius: var(--radius-md);
    padding: var(--space-2);
}

.friend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.friend-item-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}































































.voltark-incoming-call {
    position: fixed;
    inset: 0;
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    animation: voltark-fade-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.voltark-incoming-call-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--panel-bg, #2b2d31);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    min-width: 280px;
}

.voltark-incoming-call-card:not(.voltark-incoming-call-card-static) {
    animation: voltark-call-pulse 1.2s ease-in-out infinite;
}

html.voltark-native-shell .voltark-incoming-call {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: rgba(0, 0, 0, 0.78);
}

html.voltark-native-shell .voltark-incoming-call-card,
html.voltark-native-shell .voltark-incoming-call-card.guild-voice-shell {
    animation: none !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

html.voltark-native-shell .voltark-incoming-reply-input {
    transform: translateZ(0);
}

@keyframes voltark-call-pulse {
    0%, 100% { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45); }
    50% { box-shadow: 0 16px 48px rgba(59, 165, 93, 0.25); }
}

@keyframes voltark-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.voltark-incoming-call-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3ba55d;
}

.voltark-incoming-call-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.voltark-incoming-call-info strong {
    font-size: 18px;
}

.voltark-incoming-call-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-1);
}

.voltark-incoming-call-reply {
    width: 100%;
    max-width: 300px;
}

.voltark-incoming-reply-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1e1f22;
    color: #f2f3f5;
    font-size: 0.9rem;
}

.voltark-incoming-reply-input::placeholder {
    color: #949ba4;
}

.voltark-incoming-mute-toggle {
    width: 100%;
    max-width: 300px;
    margin-top: var(--space-1);
    border-color: #eb459e;
    color: #f47fff;
    font-weight: 600;
}

.voltark-incoming-mute-toggle:hover {
    background: rgba(235, 69, 158, 0.12);
    border-color: #f47fff;
}

.voltark-incoming-mute-panel.hidden {
    display: none;
}

.voltark-incoming-mute {
    margin-top: var(--space-1);
}

.voltark-incoming-mute-panel {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
}

.voltark-incoming-mute-label {
    font-size: 0.85rem;
}

.voltark-incoming-mute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.incoming-call-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.incoming-call-avatar-wrap::before,
.incoming-call-avatar-wrap::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(35, 165, 89, 0.6);
    animation: vc-call-ring 1.6s ease-out infinite;
    pointer-events: none;
}

.incoming-call-avatar-wrap::after {
    animation-delay: 0.55s;
    border-color: rgba(35, 165, 89, 0.3);
}

.incoming-call-tile-live .guild-voice-tile-avatar {
    filter: none;
    opacity: 1;
    width: 88px;
    height: 88px;
}















@keyframes vc-call-ring {
    0% {
        transform: scale(0.92);
        opacity: 0.85;
    }
    70% {
        transform: scale(1.22);
        opacity: 0;
    }
    100% {
        transform: scale(1.22);
        opacity: 0;
    }
}











.voice-slider-row input[type="range"],
input[type="range"].voltark-range {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    max-width: 100%;
    height: 8px;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    --vol-pct: 50%;
}

.voice-slider-row input[type="range"]::-webkit-slider-runnable-track,
input[type="range"].voltark-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(
        to right,
        var(--va-accent, #66c0f4) 0%,
        var(--va-accent, #66c0f4) var(--vol-pct, 50%),
        color-mix(in srgb, var(--va-text, #c7d5e0) 22%, transparent) var(--vol-pct, 50%),
        color-mix(in srgb, var(--va-text, #c7d5e0) 22%, transparent) 100%
    );
}

.voice-slider-row input[type="range"]::-webkit-slider-thumb,
input[type="range"].voltark-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--va-accent, #66c0f4);
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.voice-slider-row input[type="range"]::-moz-range-track,
input[type="range"].voltark-range::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--va-text, #c7d5e0) 22%, transparent);
}

.voice-slider-row input[type="range"]::-moz-range-progress,
input[type="range"].voltark-range::-moz-range-progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--va-accent, #66c0f4);
}

.voice-slider-row input[type="range"]::-moz-range-thumb,
input[type="range"].voltark-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--va-accent, #66c0f4);
    border: 2px solid #fff;
    cursor: pointer;
}

























.guild-voice-tile-avatar-wrap.voice-speaking,
.voice-channel-user-avatar-wrap.voice-speaking {
    box-shadow: none;
    background: transparent;
    outline: 3px solid #23a559;
    outline-offset: 0;
}

.guild-voice-tile-avatar-wrap.voice-screen-sharing,
.voice-channel-user-avatar-wrap.voice-screen-sharing {
    outline: 3px solid #66c0f4;
    outline-offset: 0;
}

.guild-voice-tile-avatar-wrap.voice-screen-sharing.voice-speaking,
.voice-channel-user-avatar-wrap.voice-screen-sharing.voice-speaking {
    outline-color: #66c0f4;
}





.guild-voice-tile-avatar-wrap .guild-voice-tile-avatar,
.voice-channel-user-avatar-wrap .voice-channel-user-avatar {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 50%;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
    flex-shrink: 0;
    margin: 0;
    transform: none !important;
}

.voice-channel-user-avatar-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
}































































































































/* DM голосовой звонок (Discord-style) */
.dm-voice-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 420px;
    height: 100%;
    background: #0a0a0a;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.dm-voice-stage {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 72px;
    position: relative;
    background: radial-gradient(circle at 50% 30%, #1a1a2e 0%, #0a0a0a 70%);
    border-right: none;
    border-bottom: 1px solid #1e1f22;
}

.dm-voice-status {
    color: #b5bac1;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.dm-voice-participants {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.dm-voice-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dm-voice-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--va-accent, #5865f2);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.35);
}

.dm-voice-user span {
    color: #f2f3f5;
    font-weight: 600;
}

.dm-voice-control-bar,
.guild-voice-control-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    margin: 8px auto 16px;
    position: relative;
    z-index: var(--z-raised);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}



.vc-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #2b2d31;
    color: #f2f3f5;
    font-size: 1.15rem;
    cursor: pointer;
}

.vc-btn:hover {
    background: #3a3c42;
    border-color: rgba(255, 255, 255, 0.18);
}

.vc-btn.vc-muted {
    background: #ed4245;
    color: #fff;
}

.vc-btn.vc-hangup,
.vc-btn.vc-decline {
    background: #ed4245;
    color: #fff;
}

.vc-btn.vc-accept {
    background: #23a559;
    color: #fff;
}

.dm-voice-chat-log {
    flex: 1 1 auto;
    min-height: 180px;
    min-width: 0;
    overflow-y: auto;
    padding: 12px 16px;
    background: var(--va-bg, #36393f);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* Единая панель голоса */
.voltark-voice-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11000;
    min-width: min(340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
}

.voltark-voice-bar.hidden {
    display: none;
}

.voltark-voice-bar-ptt .voltark-voice-bar-meta {
    color: var(--va-accent, #66c0f4);
}

.voltark-voice-bar-ptt-held .voice-connected-dot {
    background: #3ba55d;
    box-shadow: 0 0 8px rgba(59, 165, 93, 0.85);
    animation: voice-ptt-pulse 0.9s ease-in-out infinite;
}

@keyframes voice-ptt-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}



.voltark-voice-bar-panel {
    background: var(--va-bg, #1b2838);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.voltark-voice-bar-compact {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.voltark-voice-bar-hover-zone {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    flex: 1 1 auto;
    min-width: 0;
    cursor: default;
}

.voltark-voice-bar-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
}

.voltark-voice-bar-title-row .voice-connected-dot {
    flex-shrink: 0;
}

.voltark-voice-bar-title-row .voltark-voice-bar-ping {
    flex-shrink: 0;
    margin-left: auto;
    min-width: auto;
    text-align: right;
}

.voltark-voice-bar-channel-link {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: #f2f3f5;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voltark-voice-bar-channel-link:hover {
    color: var(--va-accent, #66c0f4);
    text-decoration: underline;
}

.voltark-voice-bar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 14px 10px 0;
    flex: 0 0 auto;
}

.voltark-voice-bar-actions .vc-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    flex-shrink: 0;
    font-size: 1rem;
}

.voltark-voice-bar-actions .btn-outline {
    height: 36px;
    line-height: 1.2;
    flex-shrink: 0;
    white-space: nowrap;
}

.voltark-voice-bar-compact {
    flex-wrap: nowrap;
}

.voltark-voice-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.voltark-voice-bar-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--va-text-muted, #8f98a0);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voltark-voice-bar-meta {
    font-size: 0.78rem;
}

.dm-voice-sys {
    font-size: 0.85rem;
    text-align: center;
    padding: 6px;
}

































.vc-btn.vc-active {
    background: rgba(59, 165, 93, 0.2);
    border-color: #3ba55d;
    color: #3ba55d;
}





















.voltark-incoming-call-card.guild-voice-shell {
    padding: 20px;
    align-items: center;
    gap: var(--space-4);
    max-width: 360px;
}

.incoming-call-tile {
    width: 100%;
    max-width: 220px;
}

.dm-voice-floating.voice-call-shell {
    position: fixed;
    right: 16px;
    bottom: 72px;
    z-index: var(--z-overlay-high);
    width: min(420px, calc(100vw - 32px));
    max-height: min(72vh, calc(100vh - 96px));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.dm-voice-floating.voice-call-shell .dm-voice-chat-log {
    max-height: 240px;
}





.voltark-voice-bar-channel-link:focus-visible {
    outline: 2px solid var(--va-accent, #66c0f4);
    outline-offset: 2px;
    border-radius: 2px;
}

.voltark-voice-bar-ping {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 52px;
    text-align: right;
}

.voltark-voice-bar-ping.ping-good {
    color: #23a559;
}

.voltark-voice-bar-ping.ping-warn {
    color: #f0b232;
}

.voltark-voice-bar-ping.ping-bad {
    color: #f23f43;
}

.voltark-voice-bar-expand {
    border-top: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 14px;
    transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1), padding 0.42s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.42s ease;
}

.voltark-voice-bar-expand.open {
    max-height: 220px;
    opacity: 1;
    padding: 8px 14px 12px;
    overflow-y: auto;
    border-top: 1px solid var(--va-border, #2a475e);
}

.voltark-voice-bar-expand.hidden {
    display: block;
    max-height: 0;
    opacity: 0;
    padding: 0 14px;
    overflow: hidden;
}

.voltark-voice-bar-expand-title {
    margin: 0 0 8px;
    font-size: 0.75rem;
}

.voltark-voice-bar-participants {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.voltark-voice-bar-user {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    font-size: 0.85rem;
}



















.voltark-voice-bar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.voltark-voice-bar-hovered .voltark-voice-bar-panel {
    border-color: var(--va-accent, #5865f2);
}











































.dm-chat-log-area {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px;
    background: var(--va-bg, #36393f);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

#community-messages:has(> .dm-chat-log-area) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden !important;
}

#community-messages:has(#voice-call-shell.voice-call-in-chat) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}











































@container channels-bar (max-width: 220px) {
    .voice-connected-banner .voice-banner-hover-zone {
        padding: var(--space-2);
    }

    .voice-connected-banner .voice-banner-actions {
        padding: 6px 8px 8px;
        gap: 6px;
    }

    .voice-connected-banner .voice-banner-actions .btn-outline {
        flex: 1 1 100%;
    }
}







































.invite-mode-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}















































.group-channel-row {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.group-channel-row .community-channel-item {
    flex: 1;
}



























/* --- Web mode (browser) --- */
.web-mode-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 10px 20px;
    background: linear-gradient(90deg, var(--va-border, #2a475e) 0%, var(--va-bg, #1b2838) 100%);
    border-bottom: 1px solid var(--va-accent, #66c0f4);
    font-size: 0.9rem;
    color: var(--va-text, #c7d5e0);
    z-index: var(--z-overlay-high);
    position: sticky;
    top: 0;
    isolation: isolate;
    overflow: hidden;
}

.web-mode-banner-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.web-mode-banner-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--va-accent, #66c0f4) 18%, transparent);
    font-size: 0.95rem;
    line-height: 1;
}

.web-mode-banner .game-card-discount-pct,
.web-mode-banner .card-discount,
.web-mode-banner .badge-discount,
.ui-update-banner .game-card-discount-pct,
.ui-update-banner .card-discount,
.ui-update-banner .badge-discount,
.launcher-update-banner .game-card-discount-pct,
.launcher-update-banner .card-discount,
.launcher-update-banner .badge-discount {
    display: none !important;
}

.web-mode-banner.hidden {
    display: none;
}

.native-stub-banner {
    border-bottom-color: #ed4245;
    background: linear-gradient(90deg, #3d1f1f 0%, var(--va-bg, #1b2838) 100%);
}

.native-stub-detail {
    display: block;
    font-size: 0.78rem;
    margin-top: var(--space-1);
    opacity: 0.85;
}

.web-mode-banner-text a {
    color: var(--va-accent, #66c0f4);
    font-weight: 600;
}

.web-mode-banner-close {
    background: transparent;
    border: none;
    color: var(--va-text-muted, #8f98a0);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
}

.web-mode-banner-close:hover {
    color: #fff;
}

html.voltark-web-mode .app-header {
    position: sticky;
    top: 0;
    z-index: var(--z-dropdown);
}































































/* Обратная связь */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 560px;
}

.feedback-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.88rem;
    color: var(--va-text, #c7d5e0);
}

.feedback-form select,
.feedback-form input[type="text"],
.feedback-form textarea {
    background: var(--va-bg-card, #16202d);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    color: #e6edf3;
    padding: 8px 12px;
    font: inherit;
    box-sizing: border-box;
}

.feedback-form select,
.feedback-form input[type="text"] {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    resize: none;
}

.feedback-form textarea {
    min-height: 140px;
    resize: vertical;
    height: auto;
    max-height: none;
}

.feedback-form textarea:focus,
.feedback-form input:focus,
.feedback-form select:focus {
    outline: none;
    border-color: var(--va-accent, #66c0f4);
    box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.2);
}

.feedback-form-meta {
    margin-top: -8px;
    font-size: 0.85rem;
}

.feedback-attachments {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.feedback-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 6px 10px;
    background: var(--va-bg-card, #16202d);
    border-radius: 6px;
    font-size: 0.88rem;
    min-width: 0;
}

.feedback-file-list li > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-file-remove {
    flex-shrink: 0;
}

.feedback-form-actions {
    display: flex;
    gap: 10px;
}

.feedback-status.is-success {
    color: #8bc34a;
}

.feedback-login-hint {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(230, 179, 92, 0.12);
    border: 1px solid rgba(230, 179, 92, 0.35);
    color: #e6b35c;
    margin-bottom: var(--space-1);
}

/* V-coin магазин */
.vcoin-shop-page {
    max-width: 1200px;
}

.vcoin-shop-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.vcoin-shop-brand {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.vcoin-shop-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 192, 244, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    background: #0a0a0a;
}

.vcoin-shop-user-avatar {
    border-radius: 50%;
    object-fit: cover;
}

.vcoin-purchase-overlay {
    z-index: 1400;
}

.vcoin-purchase-modal {
    width: min(520px, 92vw);
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--va-bg-card, #16202d);
    border: 1px solid var(--va-border, #2a475e);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.vcoin-purchase-modal h3 {
    margin: 0 0 8px;
}

.vcoin-purchase-preview {
    margin: 14px 0;
    padding: var(--space-3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--va-border, #2a475e);
    overflow: hidden;
}

.vcoin-purchase-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.vcoin-balance-pill {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: var(--va-bg-card, #16202d);
    border: 1px solid var(--va-border, #2a475e);
    margin: 0;
}

.vcoin-shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.vcoin-shop-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vcoin-cat-btn {
    border: 1px solid var(--va-border, #2a475e);
    background: var(--va-bg, #1b2838);
    color: var(--va-text, #c7d5e0);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
}

.vcoin-cat-btn.active,
.vcoin-cat-btn:hover {
    border-color: var(--va-accent, #66c0f4);
    background: var(--va-border, #2a475e);
}

.vcoin-shop-search {
    min-width: 180px;
    flex: 1 1 160px;
    max-width: 280px;
}

.vcoin-item-card {
    background: linear-gradient(180deg, var(--va-bg, #1b2838) 0%, var(--va-bg-card, #16202d) 100%);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 10px;
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.vcoin-item-card:hover {
    border-color: var(--va-accent, #66c0f4);
    transform: translateY(-2px);
}

.vcoin-item-card.is-owned {
    opacity: 0.85;
}

.vcoin-item-preview {
    min-height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0f1822;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcoin-item-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.vcoin-item-type {
    margin: 0;
    font-size: 0.78rem;
    color: var(--va-text-muted, #8f98a0);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vcoin-item-card h3 {
    margin: 0;
    font-size: 1rem;
}

.vcoin-item-price {
    font-weight: 600;
    color: #f0c14b;
}

.vcoin-theme-preview {
    display: flex;
    width: 100%;
    height: 100px;
    background: var(--tp-bg);
    border-radius: 6px;
    overflow: hidden;
}

.vcoin-theme-preview-nav {
    width: 28%;
    background: var(--tp-nav);
    border-right: 1px solid var(--tp-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: 6px;
}

.vcoin-theme-preview-nav span {
    height: 8px;
    border-radius: 3px;
    background: var(--tp-border);
}

.vcoin-theme-preview-nav span.active {
    background: var(--tp-accent);
}

.vcoin-theme-preview-body {
    flex: 1;
    padding: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vcoin-theme-preview-body i,
.vcoin-theme-preview-body b {
    display: block;
    border-radius: 3px;
    background: var(--tp-border);
}

.vcoin-theme-preview-body i {
    height: 10px;
    width: 70%;
}

.vcoin-theme-preview-body b {
    height: 18px;
    width: 45%;
    background: var(--tp-accent);
}

.vcoin-icon-frame-demo {
    width: 88px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--va-bg, #1b2838);
    color: var(--va-accent, #66c0f4);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}









.inv-cat-btn {
    text-align: left;
    padding: 8px 10px;
    border: 1px solid var(--va-border, #2a475e);
    background: var(--va-bg-card, #16202d);
    color: var(--va-text, #c7d5e0);
    border-radius: 3px;
    cursor: pointer;
}

.inv-cat-btn.active,
.inv-cat-btn:hover {
    border-color: var(--va-accent, #66c0f4);
    color: #fff;
}



.inv-toolbar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 10px;
    align-items: end;
    margin-bottom: var(--space-2);
}

.inv-sort-label {
    display: block;
}

.inv-results {
    margin: 0 0 10px;
    font-size: 0.86rem;
}















.inv-fallback {
    font-size: 2rem;
}

.inv-icon-demo {
    width: 72%;
    height: 72%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--va-text, #c7d5e0);
}

/* --- Аватар с рамкой (чат, комментарии, отзывы) --- */
.user-framed-avatar {
    position: relative;
    width: var(--ufa-size, 40px);
    height: var(--ufa-size, 40px);
    flex-shrink: 0;
    cursor: pointer;
    overflow: visible;
}

.user-framed-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    z-index: 1;
}

.user-framed-avatar--framed {
    overflow: visible !important;
}

.user-framed-avatar--framed .user-framed-avatar-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--frame-avatar-ratio, 100%);
    height: var(--frame-avatar-ratio, 100%);
    object-fit: cover;
    border-radius: var(--radius-sm);
    z-index: 1;
}

.user-framed-avatar--framed.user-framed-avatar--square .user-framed-avatar-img {
    border-radius: 0;
}

.user-framed-avatar--framed.user-framed-avatar--circle .user-framed-avatar-img {
    border-radius: 50%;
}

.user-framed-avatar--square .user-framed-avatar-frame {
    border-radius: 0;
}

.user-framed-avatar--square.has-animated-avatar .animated-avatar-video {
    border-radius: 0;
}

.user-framed-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: готовые % из JS (--frame-size-pct / --frame-ox-pct) */
.user-framed-avatar.has-frame-config .user-framed-avatar-frame,
.user-framed-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;
}

.user-framed-avatar.has-composed-frame .user-framed-avatar-frame,
.user-framed-avatar-frame[data-frame-layout="composed"] {
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.user-framed-avatar--plain {
    overflow: hidden;
    border-radius: 50%;
}

.user-framed-avatar--plain .user-framed-avatar-img {
    border-radius: inherit;
}

.user-framed-avatar--circle:not(.user-framed-avatar--framed) {
    overflow: hidden;
    border-radius: 50%;
}

.user-framed-avatar--square.user-framed-avatar--plain {
    border-radius: 0;
}

.user-framed-avatar--square.user-framed-avatar--plain .user-framed-avatar-img {
    border-radius: inherit;
}





























.toast-invite .notif-invite-card {
    grid-template-columns: 44px 1fr;
}

.toast-invite .notif-invite-actions {
    grid-column: 1 / -1;
}









@keyframes chat-msg-jump-pulse {
    0% { background-color: color-mix(in srgb, var(--va-accent, #66c0f4) 35%, transparent); }
    100% { background-color: transparent; }
}































































.download-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.download-page--rich {
    max-width: 980px;
}

.download-page-head {
    margin-bottom: 20px;
}

.download-page-card {
    background: var(--card-bg, var(--va-bg, #1b2838));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

.download-page-meta {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
}

.dl-hero-card {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 18px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--va-border, rgba(255,255,255,.08));
    background: color-mix(in srgb, var(--va-panel, #151821) 88%, #000);
    margin-bottom: 18px;
}

.dl-hero-card h2 {
    margin: 4px 0 8px;
    font-family: var(--va-display, Syne, sans-serif);
    font-size: 2rem;
}

.dl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-4);
}

.dl-install-steps {
    margin: 14px 0 0;
    padding-left: 1.2rem;
    color: var(--va-muted, #9aa3b5);
    font-size: 0.9rem;
    line-height: 1.55;
}

.dl-install-steps b {
    color: var(--va-text, #e8ecf4);
}

.dl-hero-meta {
    display: grid;
    gap: 10px;
    align-content: start;
}

.dl-hero-meta div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dl-rich-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dl-rich-block {
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--va-border, rgba(255,255,255,.08));
    background: rgba(255, 255, 255, 0.02);
}

.dl-rich-block--wide { grid-column: 1 / -1; }
.dl-rich-block h3 { margin: 0 0 12px; font-size: 1.05rem; }
.dl-changelog, .dl-road-col ul { margin: 0; padding-left: 18px; }
.dl-changelog li, .dl-road-col li { margin: 6px 0; color: var(--va-text-muted); }
.dl-news-list { display: grid; gap: 10px; }
.dl-news-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}
.dl-news-item b { display: block; margin: 4px 0; }
.dl-roadmap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}


.nav-download-link {
    color: var(--va-accent, #66c0f4) !important;
}





















/* --- Адаптивный лаунчер --- */












































































































img, video, iframe {
    max-width: 100%;
    height: auto;
}

button, .btn, input, select, textarea {
    max-width: 100%;
}

/* @bp-wide — 1100px */
@media (max-width: 1100px) {
    .main-content:has(.steam-profile-root) {
        padding: 0;
    }

    .main-content:not(:has(.steam-profile-root)) {
        padding: var(--space-4);
    }

    .steam-side-strip {
        display: none;
    }

    .steam-profile-center {
        max-width: none;
        flex: 1 1 auto;
    }

    .steam-profile-columns {
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }

    .community-page {
        --community-shell-h: calc(100vh - 100px);
    }

    .discord-layout {
        height: calc(100vh - 100px);
        min-height: 420px;
    }
}











body.mobile-layout .friends-fab {
    bottom: calc(var(--voltark-bottom-nav-h) + 12px + env(safe-area-inset-bottom, 0px));
}

body.mobile-layout .voltark-voice-bar {
    bottom: calc(var(--voltark-bottom-nav-h, 64px) + 8px + env(safe-area-inset-bottom, 0px));
}

body.touch-ui .btn,
body.touch-ui .nav-toggle,
body.touch-ui .bottom-nav-btn,
body.touch-ui .header-icon-btn {
    min-height: var(--voltark-tap-min);
    min-width: var(--voltark-tap-min);
}







@media (max-aspect-ratio: 4/3) {
    .discord-layout {
        min-height: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Мобильная вёрстка (phone) --- */
:root {
    --voltark-header-h: 52px;
}

body.mobile-layout {
    overflow-x: hidden;
}

body.mobile-layout .app-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 8px 10px;
    gap: var(--space-2);
    min-height: var(--voltark-header-h);
}

body.mobile-layout .app-header-start {
    flex: 0 0 auto;
    min-width: 0;
}

body.mobile-layout .logo {
    font-size: 1.05rem;
    white-space: nowrap;
}

body.mobile-layout .nav-links {
    display: none !important;
}

body.mobile-layout .user-area {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.mobile-layout .user-area::-webkit-scrollbar {
    display: none;
}

body.mobile-layout .connection-status {
    flex-shrink: 0;
    font-size: 0.68rem;
    padding: 3px 7px;
    white-space: nowrap;
}

body.mobile-layout .connection-status .connection-label {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.mobile-layout .header-balance {
    flex-shrink: 0;
    font-size: 0.72rem;
    padding: 4px 7px;
    white-space: nowrap;
}

body.mobile-layout .header-icon-btn {
    flex-shrink: 0;
    padding: 6px 8px;
}

body.mobile-layout .avatar {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}



body.mobile-layout .launcher-update-banner,
body.mobile-layout .ui-update-banner {
    padding: 6px 10px;
    font-size: 0.78rem;
    gap: 6px;
}

body.mobile-layout .launcher-update-banner .btn,
body.mobile-layout .ui-update-banner .btn {
    padding: 4px 8px;
    font-size: 0.72rem;
    min-height: 32px;
}

body.mobile-layout .friends-fab {
    display: none !important;
}

body.mobile-layout .steam-profile-columns {
    flex-direction: column;
}

body.mobile-layout .steam-side-strip {
    display: none !important;
}

body.mobile-layout .steam-profile-center {
    max-width: none;
    flex: 1 1 auto;
    width: 100%;
}

body.mobile-layout .steam-banner {
    height: clamp(120px, 28vw, 180px);
}

body.mobile-layout .steam-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -56px;
    padding: 0 12px 14px;
    gap: var(--space-3);
}

body.mobile-layout .steam-avatar-wrap.profile-avatar-preview {
    width: 112px;
    height: 112px;
}

body.mobile-layout .steam-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

body.mobile-layout .steam-header-actions .btn {
    width: 100%;
    min-width: 0;
    font-size: 0.82rem;
    padding: 8px 10px;
}

body.mobile-layout .steam-header-actions .btn:first-child:last-child,
body.mobile-layout .steam-header-actions .btn:only-child {
    grid-column: 1 / -1;
}

body.mobile-layout .steam-main-tabs {
    padding: 0 4px;
}

body.mobile-layout .steam-main-tab {
    padding: 10px 12px;
    font-size: 0.82rem;
}

body.mobile-layout .steam-profile-tab-layout {
    flex-direction: column;
    gap: var(--space-3);
}

body.mobile-layout .steam-profile-side-col {
    width: 100%;
    flex-shrink: 1;
    position: static;
    order: 2;
}

body.mobile-layout .steam-profile-main-col {
    order: 1;
    min-width: 0;
}

body.mobile-layout .steam-stat-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: var(--space-3);
}

body.mobile-layout .steam-stat-card {
    min-width: 0;
}

body.mobile-layout .steam-stat-card strong {
    font-size: 1.25rem;
}

body.mobile-layout .steam-panel,
body.mobile-layout .steam-panel p {
    word-break: normal;
    overflow-wrap: break-word;
}

body.mobile-layout .profile-owner-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

body.mobile-layout .profile-owner-bar .btn:first-child {
    grid-column: 1 / -1;
}

body.mobile-layout .detail-top {
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

body.mobile-layout .detail-main-shot {
    max-height: 42vh;
}

body.mobile-layout .detail-cover {
    max-width: 140px;
    margin: 0 auto 12px;
    display: block;
    border-radius: 6px;
}

body.mobile-layout .detail-sidebar-sticky {
    position: static;
}

body.mobile-layout .detail-breadcrumb {
    flex-wrap: wrap;
    font-size: 0.82rem;
}

body.mobile-layout .community-page {
    --community-shell-h: calc(100dvh - var(--voltark-header-h) - var(--voltark-bottom-nav-h) - env(safe-area-inset-bottom, 0px) - 20px);
    min-height: 0;
    height: var(--community-shell-h);
    max-height: var(--community-shell-h);
}

body.mobile-layout .discord-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

body.mobile-layout .community-page[data-community-style="telegram"] .discord-layout.community-layout-root,
body.mobile-layout .community-page[data-community-style="vk"] .discord-layout.community-layout-root {
    display: grid !important;
}

body.mobile-layout .community-page[data-community-style="telegram"] .discord-layout.community-layout-root {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
}

body.mobile-layout .community-page[data-community-style="telegram"] .guilds-bar {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    flex-direction: row;
    height: auto;
    max-height: 56px;
    border-right: none;
    border-bottom: 1px solid #2c2c2e;
}

body.mobile-layout .community-page[data-community-style="telegram"] .channels-bar {
    grid-column: 1;
    grid-row: 2;
}

body.mobile-layout .community-page[data-community-style="telegram"] .community-chat-area {
    grid-column: 1;
    grid-row: 3;
}

body.mobile-layout .community-page[data-community-style="telegram"] .guilds-bar .guilds-divider {
    width: 2px;
    height: 28px;
    margin: 0 4px;
}

body.mobile-layout .guilds-bar {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 10px;
    gap: var(--space-2);
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--va-bg-card, #2f3136);
}

body.mobile-layout .guilds-bar .guild-icon {
    flex-shrink: 0;
}

body.mobile-layout .guilds-divider {
    width: 2px;
    height: 28px;
    margin: 0 2px;
}

body.mobile-layout #community-guild-list {
    display: flex;
    flex-direction: row;
    gap: var(--space-2);
    align-items: center;
}

body.mobile-layout .channels-bar {
    width: 100% !important;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    border-right: none !important;
    border-bottom: 1px solid var(--va-bg-card, #2f3136);
    overflow-y: auto;
}

body.mobile-layout:not(.mobile-channels-open) .channels-bar {
    display: flex !important;
}

body.mobile-layout.mobile-channels-open .community-chat-area {
    display: flex !important;
}

body.mobile-layout.mobile-channels-open .channels-bar {
    display: flex !important;
    flex: 1 1 auto;
}

body.mobile-layout .mobile-channels-toggle,
body.mobile-layout .mobile-community-back {
    display: none !important;
}

body.mobile-layout .community-chat-area {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.mobile-layout .community-chat-head {
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 10px 12px;
}

body.mobile-layout .mobile-channels-toggle {
    flex-shrink: 0;
    min-width: 36px;
    padding: 6px 10px;
}

body.mobile-layout .community-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.mobile-layout .community-input-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: var(--space-2);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    align-items: center;
}

body.mobile-layout .community-input-row #community-input {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
}

body.mobile-layout .community-input-row #community-send {
    grid-column: 4;
    grid-row: 2;
    white-space: nowrap;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

body.mobile-layout .community-input-row .chat-emoji-btn {
    min-width: 0;
    padding: 8px 6px;
}

body.mobile-layout .chat-msg {
    max-width: 92% !important;
}

body.mobile-layout .chat-placeholder {
    padding: 24px 16px;
    text-align: center;
    line-height: 1.5;
}

body.mobile-layout .voltark-voice-bar {
    left: 8px;
    right: 8px;
    transform: none;
    width: auto;
    min-width: 0;
    max-width: none;
    bottom: calc(var(--voltark-bottom-nav-h, 64px) + 8px + env(safe-area-inset-bottom, 0px));
}

body.mobile-layout .voltark-voice-bar-panel {
    border-radius: 10px;
}

body.mobile-layout .voltark-voice-bar-compact {
    flex-wrap: wrap;
}

body.mobile-layout .voltark-voice-bar-label {
    font-size: 0.78rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.mobile-layout .notif-panel {
    left: 8px;
    right: 8px;
    width: auto;
    top: calc(var(--voltark-header-h) + 8px);
    max-height: calc(100dvh - var(--voltark-header-h) - var(--voltark-bottom-nav-h) - 24px);
}

body.mobile-layout .modal-overlay {
    padding: var(--space-2);
    align-items: flex-end;
}

body.mobile-layout .steam-profile-modal-full,
body.mobile-layout .modal-overlay .modal,
body.mobile-layout .chat-forward-modal {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--voltark-bottom-nav-h) - 16px);
    border-radius: 12px 12px 0 0;
}

body.mobile-layout .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.mobile-layout .store-toolbar,
body.mobile-layout .market-toolbar {
    flex-direction: column;
    align-items: stretch;
}

body.mobile-layout .store-toolbar .search-input,
body.mobile-layout .market-toolbar .search-input,
body.mobile-layout .store-toolbar select {
    width: 100%;
}

/* --- Кастомный статус v1.43 --- */
.custom-status-overlay {
    align-items: flex-start;
    padding: var(--space-4);
    overflow-y: auto;
}

.custom-status-modal {
    width: min(560px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--panel-bg, var(--va-bg, #1b2838));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.custom-status-header {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    align-items: flex-start;
}

.custom-status-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.custom-status-sub {
    margin: 4px 0 0;
    font-size: 0.85rem;
}

.custom-status-preview {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    width: -webkit-fit-content;
    width: fit-content;
}

.custom-status-section h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--text-muted, var(--va-text-muted, #8f98a0));
    font-weight: 600;
}

.custom-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.custom-status-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    padding: var(--space-3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
}

.custom-status-card:hover,
.custom-status-card.active {
    border-color: var(--accent, #e91e8c);
    background: rgba(233, 30, 140, 0.08);
}

.custom-status-card-title {
    font-weight: 600;
}

.custom-status-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted, var(--va-text-muted, #8f98a0));
    line-height: 1.35;
}

.custom-status-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-status-game-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.custom-status-game-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.custom-status-game-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.custom-status-game-item.active {
    border-color: var(--accent, #e91e8c);
    background: rgba(233, 30, 140, 0.1);
}

.custom-status-game-cover {
    width: 40px;
    height: 22px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.custom-status-game-title {
    flex: 1;
    font-size: 0.9rem;
}

.custom-status-game-check {
    color: var(--accent, #e91e8c);
}

.custom-status-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: var(--space-1);
}







.incoming-call-mute-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
}

.vc-btn.vc-join {
    min-width: 140px;
    font-size: 0.85rem;
}

body.mobile-layout .custom-status-grid {
    grid-template-columns: 1fr;
}

body.mobile-layout .custom-status-modal {
    width: 100%;
    max-height: none;
    min-height: calc(100dvh - 24px);
    border-radius: 10px;
}

body.mobile-layout .community-chat-head {
    position: sticky;
    top: 0;
    z-index: var(--z-raised);
    background: var(--bg, var(--va-bg-elevated, #171a21));
    padding-bottom: 6px;
}

body.mobile-layout .mobile-channels-toggle {
    min-width: 44px;
    min-height: 44px;
}

body.mobile-layout .friend-item,
body.mobile-layout .community-channel-item {
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 10px;
}

body.mobile-layout .community-input-row {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}



body.mobile-layout .voltark-incoming-call {
    padding: var(--space-3);
    align-items: flex-end;
}

body.mobile-layout .voltark-incoming-call-card {
    width: 100%;
    max-width: none;
}

/* --- Мобильная веб-версия v1.44 --- */
html.mobile-scroll-lock,
body.mobile-scroll-lock {
    overflow: hidden;
    height: 100dvh;
}

body.mobile-layout .app-footer {
    display: none;
}

body.mobile-layout .app-container {
    min-height: 100dvh;
}

body.mobile-layout .community-chat-head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: nowrap;
}

body.mobile-layout #community-chat-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.mobile-layout .mobile-community-back,
body.mobile-layout .mobile-channels-toggle {
    flex-shrink: 0;
    min-width: 40px;
    min-height: 40px;
    padding: 6px 10px;
}

body.mobile-layout .community-input-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
}

body.mobile-layout .community-input-row .chat-emoji-btn {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
    padding: 10px 6px;
}

body.mobile-layout .community-input-row #community-input {
    flex: 1 1 100%;
    width: 100%;
    min-height: 44px;
    font-size: 16px;
}

body.mobile-layout .community-input-row #community-send {
    flex: 1 1 100%;
    width: 100%;
    min-height: 44px;
}

body.mobile-layout .toast-container {
    left: 10px;
    right: 10px;
    bottom: calc(var(--voltark-bottom-nav-h) + 12px + env(safe-area-inset-bottom, 0px));
}

body.mobile-layout .toast-item {
    max-width: none;
    width: 100%;
}

body.mobile-layout .community-hub-menu {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none;
}

body.mobile-layout .settings-page .settings-layout {
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

body.mobile-layout .settings-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--space-2);
    padding-bottom: var(--space-1);
    -webkit-overflow-scrolling: touch;
}

body.mobile-layout .settings-nav-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

body.mobile-layout .inventory-page-head,
body.mobile-layout .inventory-page-actions {
    flex-direction: column;
    align-items: stretch;
}

body.mobile-layout .inventory-page-actions .btn {
    width: 100%;
}

body.mobile-layout .vcoin-shop-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

body.mobile-layout .vcoin-shop-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-1);
}

body.mobile-layout .vcoin-cat-btn {
    flex-shrink: 0;
}

body.mobile-layout .vcoin-item-card {
    min-width: 0;
}

body.mobile-layout .market-toolbar .btn,
body.mobile-layout .store-toolbar .btn {
    width: 100%;
}

body.mobile-layout .game-detail .detail-breadcrumb {
    margin-bottom: var(--space-2);
}

body.mobile-layout .game-detail .detail-sidebar .btn-buy,
body.mobile-layout .game-detail .detail-sidebar .cart-add-btn,
body.mobile-layout .game-detail .detail-sidebar .wishlist-btn,
body.mobile-layout .game-detail .library-detail-actions .btn {
    min-height: 44px;
}

body.mobile-layout .game-detail .detail-price-row {
    position: sticky;
    bottom: calc(var(--voltark-bottom-nav-h) + 8px + env(safe-area-inset-bottom, 0px));
    z-index: var(--z-raised);
    background: linear-gradient(180deg, transparent 0%, var(--va-bg-elevated, #171a21) 28%);
    padding: 12px 0 4px;
    margin: 0 -4px;
}

body.mobile-layout .voice-call-in-chat .guild-voice-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.mobile-layout .voice-call-in-chat .guild-voice-control-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

body.mobile-layout .voice-call-in-chat .vc-btn.vc-join {
    flex: 1 1 100%;
    min-height: 44px;
}

body.mobile-layout .guild-voice-tile {
    min-width: 0;
}

body.mobile-layout .channels-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--va-bg-card, #2f3136);
}

body.mobile-layout .channels-search,
body.mobile-layout .community-search {
    position: sticky;
    top: 48px;
    z-index: 2;
    background: var(--va-bg-card, #2f3136);
}

.web-mode-banner-mobile {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 8px 12px;
    font-size: 0.78rem;
}

.web-mode-banner-mobile .web-mode-banner-text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.web-mode-banner-mobile .web-mode-banner-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.web-mode-banner-mobile .web-mode-banner-dl {
    padding: 6px 10px;
    font-size: 0.72rem;
    min-height: 32px;
}



body.mobile-layout .launcher-update-banner,
body.mobile-layout .ui-update-banner {
    flex-wrap: wrap;
}

body.mobile-layout .chat-tabs-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

body.mobile-layout .chat-tab-btn {
    flex-shrink: 0;
}

/* --- Мини-профиль (popover при наведении) --- */
.mini-profile {
    position: fixed;
    z-index: var(--z-overlay-top);
    left: 0;
    top: 0;
    min-width: 300px;
    max-width: 340px;
    background: color-mix(in srgb, var(--va-bg-elevated, #171a21) 95%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid var(--va-border, #2a2e3d);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
    padding: 14px 16px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.mini-profile.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Мини-профиль поверх модалки приглашения в семью */
body:has(#fm-invite-overlay) .mini-profile,
body:has(#fm-invite-overlay) .mini-profile.visible {
    z-index: 13100;
}

.mini-profile.hidden {
    display: none;
}

.mini-profile-content {
    position: relative;
}

.mini-profile-close {
    position: absolute;
    top: -4px;
    right: -2px;
    background: none;
    border: none;
    color: var(--va-text-muted, #8d8d8d);
    font-size: 15px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.mini-profile-close:hover {
    background: color-mix(in srgb, var(--va-text, #fff) 8%, transparent);
    color: var(--va-text, #e6e6e6);
}

.mini-profile-header {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-bottom: var(--space-3);
    padding-right: 18px;
}

.mini-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}

.mini-profile-avatar-wrap .user-framed-avatar {
    cursor: default;
    pointer-events: none;
}

.mini-profile-avatar-wrap.has-frame .user-framed-avatar--plain .user-framed-avatar-img {
    border: none;
}

.mini-profile-avatar-framed {
    position: relative;
    width: 64px;
    height: 64px;
    overflow: visible;
}

.mini-profile-avatar-framed .mini-profile-avatar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: var(--frame-avatar-ratio, 92%);
    height: var(--frame-avatar-ratio, 92%);
    border-radius: 0;
}

.mini-profile-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;
}

.mini-profile-avatar-wrap.status-online .mini-profile-avatar {
    border-color: #26a269;
}

.mini-profile-avatar-wrap.status-playing .mini-profile-avatar {
    border-color: #4c6ef5;
}

.mini-profile-avatar-wrap.status-idle .mini-profile-avatar {
    border-color: #f5c542;
}

.mini-profile-avatar-wrap.status-dnd .mini-profile-avatar {
    border-color: #e34c26;
}

.mini-profile-avatar-wrap.status-offline .mini-profile-avatar {
    border-color: #6c6c6c;
}

.mini-profile-status-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c6c6c;
}

.mini-profile-status-dot--inline {
    display: inline-block;
}

.mini-profile-status-dot.status-online { background: #26a269; }
.mini-profile-status-dot.status-playing { background: #4c6ef5; }
.mini-profile-status-dot.status-idle { background: #f5c542; }
.mini-profile-status-dot.status-dnd { background: #e34c26; }
.mini-profile-status-dot.status-offline { background: #6c6c6c; }

/* legacy: точка на аватаре больше не используется */
.mini-profile-avatar-wrap > .mini-profile-status-dot:not(.mini-profile-status-dot--inline) {
    display: none;
}

.mini-profile-user {
    min-width: 0;
}

.mini-profile-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--va-text, #e6e6e6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-profile-username {
    color: var(--va-text-muted, #8d8d8d);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-profile-status-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--va-text-muted, #8d8d8d);
    margin-top: 2px;
}

.mini-profile-status-text {
    line-height: 1.2;
}

.mini-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: color-mix(in srgb, var(--va-bg-card, #2a2e3d) 55%, transparent);
    border-radius: 10px;
    padding: 8px 6px;
    margin-bottom: var(--space-3);
}

.mini-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.mini-profile-stat-val {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--va-text, #e6e6e6);
}

.mini-profile-stat-lbl {
    font-size: 0.62rem;
    color: var(--va-text-muted, #8d8d8d);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mini-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.mini-profile-action {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    border: none;
    border-radius: var(--radius-md);
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    background: color-mix(in srgb, var(--va-bg-card, #2a2e3d) 70%, transparent);
    color: var(--va-text, #e6e6e6);
    transition: background var(--transition-fast);
}

.mini-profile-stat.hidden {
    display: none;
}

.mini-profile.mini-style-compact {
    min-width: 260px;
    max-width: 300px;
    padding: 10px 12px;
}

.mini-profile.mini-style-compact .mini-profile-avatar-wrap {
    width: 52px;
    height: 52px;
}

.mini-profile.mini-style-compact .mini-profile-avatar-framed {
    width: 52px;
    height: 52px;
}

.mini-profile.mini-style-compact .mini-profile-stats {
    gap: var(--space-2);
    padding: 8px 0;
}

.mini-profile.mini-style-detailed {
    max-width: 360px;
}

.mini-profile-action:hover {
    background: color-mix(in srgb, var(--va-accent, #4c6ef5) 22%, transparent);
}

.mini-profile-action.primary {
    background: var(--mini-accent, var(--va-accent, #4c6ef5));
    border-color: var(--mini-accent, var(--va-accent, #4c6ef5));
    color: var(--va-accent-text, #fff);
}

.mini-profile-action.primary:hover {
    filter: brightness(1.08);
}

.mini-profile-achievements {
    background: color-mix(in srgb, var(--va-bg-card, #2a2e3d) 40%, transparent);
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: var(--space-2);
}

.mini-profile-achievements-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--va-text-muted, #8d8d8d);
    margin-bottom: 6px;
}

.mini-profile-achievement-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.75rem;
    padding: 2px 0;
    flex-wrap: wrap;
}

.mini-profile-achievement-item.is-refunded {
    opacity: 0.45;
    filter: grayscale(0.85);
}

.mini-profile-achievement-name {
    color: var(--va-text, #e6e6e6);
}

.mini-profile-achievement-game {
    color: var(--va-text-muted, #8d8d8d);
    font-size: 0.7rem;
}

.mini-profile-footer {
    font-size: 0.7rem;
    text-align: center;
    border-top: 1px solid var(--va-border, #2a2e3d);
    padding-top: var(--space-2);
}

body.mobile-layout .mini-profile {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    max-width: none;
    width: 100%;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
}

body.mobile-layout .mini-profile.visible {
    transform: translateY(0);
}

/* --- Tabs customizer --- */
.tabs-customizer {
    display: flex;
    gap: var(--space-4);
    align-items: stretch;
    flex-wrap: wrap;
    background: var(--va-panel, #1b2838);
    border: 1px solid var(--va-border, #2a475e);
    border-radius: 10px;
    padding: var(--space-4);
}

.tabs-pool {
    flex: 1;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    min-height: 220px;
}

.tabs-pool h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--va-muted, #8d8d8d);
    margin: 0 0 6px;
}

.tabs-pool-hint {
    font-size: 11px;
    margin: 0 0 8px;
    line-height: 1.35;
}

.tabs-list--droppable.is-drop-target {
    outline: 1px dashed color-mix(in srgb, var(--va-accent, #66c0f4) 55%, transparent);
    outline-offset: 2px;
    border-radius: 6px;
}

.tabs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    cursor: grab;
    -webkit-user-select: none;
            user-select: none;
    border: 1px solid transparent;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.tab-item:hover {
    border-color: color-mix(in srgb, var(--va-accent, #66c0f4) 35%, transparent);
}

.tab-drag-handle,
.nav-preview-drag {
    color: var(--va-muted, #8d8d8d);
    font-size: 14px;
    line-height: 1;
    cursor: grab;
    flex-shrink: 0;
    -webkit-user-select: none;
            user-select: none;
}

.tab-reorder-btns {
    display: flex;
    align-items: center;
    gap: 2px;
}

.tab-move-btn {
    font-size: 10px;
    padding: 2px 5px;
}

.tab-move-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.tab-item.is-dragging { opacity: 0.45; }

.tab-icon { font-size: 16px; }
.tab-name { flex: 1; font-size: 13px; }
.tab-required { font-size: 11px; color: var(--va-accent, #66c0f4); }

.tab-action-btn {
    background: none;
    border: none;
    color: var(--va-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.tab-action-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.tabs-divider {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
}

.tabs-preview-wrap { margin-top: var(--space-4); }
.tabs-preview-title { font-size: 13px; margin: 0 0 8px; color: var(--va-muted); }

.nav-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    min-height: 44px;
    align-items: center;
}

.nav-preview-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--va-muted);
    cursor: grab;
    border: 1px solid transparent;
}

.nav-preview-item.is-dragging {
    opacity: 0.45;
}

.nav-preview-item.is-active {
    background: var(--va-accent, #66c0f4);
    color: #0e1419;
}

.tabs-customizer-actions { margin-top: var(--space-3); }

/* --- Notification prefs --- */
.notifications-settings .settings-group-card {
    margin-bottom: 14px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    border: 1px solid var(--va-border, #2a475e);
}

.notifications-settings .settings-group-card h3 {
    margin: 0 0 12px;
    font-size: 14px;
}

.setting-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 71, 94, 0.4);
}

.setting-item-row:last-child { border-bottom: none; }

.setting-item-info { display: flex; gap: 10px; align-items: flex-start; }
.setting-item-icon { font-size: 18px; }
.setting-item-title { font-size: 14px; font-weight: 600; }
.setting-item-desc { font-size: 12px; }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch--sm { width: 34px; height: 18px; }

.toggle-switch--sm .toggle-slider {
    border-radius: 18px;
}

.toggle-switch--sm .toggle-slider::before {
    width: 12px;
    height: 12px;
    left: 3px;
    bottom: 3px;
}

.toggle-switch--sm input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #3a4a5c;
    border-radius: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider { background: var(--va-accent, #66c0f4); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

.notification-category {
    border: 1px solid var(--va-border, #2a475e);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    flex-wrap: nowrap;
}

.category-icon { font-size: 18px; flex-shrink: 0; }
.category-name { font-weight: 600; font-size: 13px; flex-shrink: 0; }
.category-badge {
    font-size: 10px;
    color: var(--va-muted);
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-header .toggle-switch {
    margin-left: auto;
    flex-shrink: 0;
}

.category-subsettings {
    display: none;
    padding: 0 12px 10px 36px;
}

.category-subsettings.is-open { display: block; }

.sub-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    color: var(--va-muted);
}

.test-notifications {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}



.news-page { max-width: 900px; margin: 0 auto; padding: 0 16px 32px; }
.news-page-list { display: flex; flex-direction: column; gap: var(--space-4); }
.news-page-list .library-news-card--wide {
    min-height: 120px;
}
.news-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-toast);
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
}
.news-detail-modal {
    position: relative;
    width: min(720px, 100%);
    max-height: min(88vh, 900px);
    overflow-y: auto;
    background: var(--va-bg-elevated, #171a21);
    border: 1px solid var(--va-border, rgba(255,255,255,0.1));
    border-radius: var(--radius-md);
    padding: var(--space-5);
}
.news-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: var(--va-text, #fff);
    font-size: 1.4rem;
    cursor: pointer;
}
.news-detail-title {
    margin: 12px 0 16px;
    font-size: 1.5rem;
}
.news-detail-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: var(--space-4);
}
.news-detail-body {
    line-height: 1.6;
    color: var(--va-text, #c7d5e0);
    white-space: pre-wrap;
}

















.vk-community-nav {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.vk-community-nav-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.vk-community-nav-item:hover,
.vk-community-nav-item.is-active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}































.community-page[data-community-style="telegram"] .community-layout-root:has(.members-sidebar:not(.hidden)) {
    grid-template-columns: 56px minmax(240px, var(--tg-list-width, 300px)) minmax(0, 1fr) 220px;
}















































.community-page[data-community-style="vk"] .discord-layout.community-layout-root:has(.members-sidebar:not(.hidden)) {
    grid-template-columns: var(--community-channels-w) minmax(0, 1fr) 220px;
    grid-template-areas:
        "vk-toolbar vk-toolbar vk-toolbar"
        "vk-list vk-chat vk-members";
}

.community-page[data-community-style="vk"]:not(.vk-show-guilds) .discord-layout.community-layout-root:has(.members-sidebar:not(.hidden)) {
    grid-template-areas: "vk-list vk-chat vk-members";
}







































/* Компактный режим: интерфейс по центру, по 15% фона слева и справа */
.main-content:has(.community-page.community-compact) {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}



/* TODO(bp): 1200px leave — stack/one-off */
@media (max-width: 1200px) {
    .community-page.community-compact {
        padding-left: max(0px, min(10%, 64px));
        padding-right: max(0px, min(10%, 64px));
    }
}









































.member-row .avatar,
.member-row .avatar.small,
.member-row .member-avatar-fallback {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    aspect-ratio: 1;
}






































/* Зона наведения для мини-профиля */
[data-open-profile]:not(.friend-item),
.voice-channel-user,
.guild-voice-tile,
.member-row[data-user-id] {
    cursor: pointer;
}

.chat-author-name[data-open-profile],
.voice-channel-user,
.guild-voice-tile,
.member-row[data-user-id] {
    border-radius: 6px;
    transition: background 0.12s ease;
}

.chat-author-name[data-open-profile]:hover,
.voice-channel-user:hover,
.guild-voice-tile:hover,
.member-row[data-user-id]:hover {
    background: color-mix(in srgb, var(--va-accent) 12%, transparent);
}

.voice-channel-user,
.guild-voice-tile {
    padding: 2px 4px;
    margin: -2px -4px;
}

.vk-chat-filters {
    display: flex;
    gap: 6px;
    padding: 8px 12px 4px;
    flex-wrap: wrap;
}

.vk-chat-filter {
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.vk-chat-filter.is-active {
    opacity: 1;
    font-weight: 600;
    background: rgba(74, 118, 168, 0.12);
    color: #4a76a8;
}





























.style-switcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-3);
    margin: 12px 0 16px;
}

.style-option-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    text-align: left;
    padding: var(--space-3);
    border: 2px solid var(--va-border, #2a475e);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    color: inherit;
}

.style-option-card.is-active {
    border-color: var(--va-accent, #66c0f4);
    box-shadow: 0 0 0 1px var(--va-accent, #66c0f4);
}

.style-preview {
    display: flex;
    gap: var(--space-1);
    width: 100%;
    height: 48px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
}

.style-preview .sp-col {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.style-preview .sp-col--wide { flex: 2; }
.style-preview .sp-col--chat { flex: 2.5; }
.style-preview .sp-col--full { flex: 1; width: 100%; }



/* Config sharing */
.config-sharing-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}
.config-sharing-panel { display: none; }
.config-sharing-panel.active { display: block; }
.config-include-options { margin: 12px 0; }
.config-export-result { margin-top: var(--space-4); padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-2, rgba(255,255,255,0.04)); }
.config-export-actions { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.config-mine-ul { list-style: none; padding: 0; margin: 8px 0 0; }
.config-mine-ul li { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 6px; }
.config-import-methods { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.config-preview { margin-top: var(--space-4); padding: 14px; border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,0.08)); }
.config-preview-contents { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.config-preview-item.premium { color: var(--accent, #7c9cff); }
.config-preview-missing { margin: 12px 0; padding: 10px; border-radius: var(--radius-md); background: rgba(255, 180, 0, 0.08); }
.config-missing-item { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 6px; }
.config-missing-item .price { margin-left: auto; font-size: 13px; }
.config-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-3);
}
.config-gallery-card {
    padding: var(--space-3);
    border-radius: 10px;
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    background: var(--surface-2, rgba(255,255,255,0.03));
}
.config-gallery-meta { font-size: 12px; margin: 6px 0 10px; }
.config-gallery-pagination { display: flex; align-items: center; gap: 10px; margin-top: var(--space-3); }

.filter-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: 8px 0 12px; }
.chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border, rgba(255,255,255,0.12));
    background: transparent;
    color: var(--text-muted, #8d8d8d);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { background: rgba(255,255,255,0.06); color: var(--text, #e6e6e6); }
.chip.active { background: var(--accent, #4c6ef5); border-color: var(--accent, #4c6ef5); color: #fff; }
.chip-multi.active { background: rgba(76, 110, 245, 0.35); border-color: var(--accent, #4c6ef5); color: #e6e6e6; }

.config-card {
    background: var(--surface-2, #1b1e28);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border, #2a2e3d);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.config-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    border-color: var(--accent, #4c6ef5);
}
.config-preview-container {
    position: relative;
    background: #0a0c10;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.config-preview-container .config-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.config-rating {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.72);
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 12px;
}
.config-rating .stars { color: #f5c542; }
.config-card-info { padding: 12px 14px; }
.config-card-info h4 { margin: 0 0 4px; font-size: 14px; }
.config-description { font-size: 12px; color: var(--text-muted, #8d8d8d); margin: 0 0 8px; line-height: 1.4; }
.config-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted, #8d8d8d); margin-bottom: var(--space-2); }

.config-preview-visual { margin-bottom: 10px; border-radius: var(--radius-md); overflow: hidden; }
.config-preview-img { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.config-preview-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 10px 0; }
.config-star-rating { margin: 8px 0; }
.config-star-rating .star, .config-star-rating .star-btn {
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0 2px;
}
.config-star-rating .star.filled, .config-star-rating .star-btn.filled { color: #f5c542; }
.config-rate-label { margin-left: var(--space-3); font-size: 13px; color: var(--text-muted, #8d8d8d); }

.config-comments-block { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border, rgba(255,255,255,0.08)); }
.config-comment { margin-bottom: var(--space-3); padding: 8px 10px; border-radius: var(--radius-md); background: rgba(255,255,255,0.03); }
.config-comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-1); }
.config-comment-reply { margin-left: var(--space-4); margin-top: 6px; font-size: 13px; }
.config-comment-form { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-3);
}
.collection-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    cursor: pointer;
    transition: border-color 0.2s;
}
.collection-card:hover { border-color: var(--accent, #4c6ef5); }
.collection-cover {
    min-height: 100px;
    background: linear-gradient(135deg, #2b2d42, #4c6ef5);
    display: flex;
    align-items: flex-end;
    padding: 10px;
}
.collection-count { font-size: 12px; background: rgba(0,0,0,0.5); padding: 4px 8px; border-radius: var(--radius-md); }
.collection-info { padding: 10px 12px; }
.config-gallery-controls { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-1); }
.config-gallery-controls .security-input { flex: 1; min-width: 140px; }

/* Gamification */
.gamification-profile-root { margin: 16px 0; }
.level-container {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    background: var(--surface-2, #1b1e28);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    border: 1px solid var(--border, #2a2e3d);
}
.level-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4c6ef5, #7c5cfc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(76, 110, 245, 0.35);
    flex-shrink: 0;
}
.level-number { font-size: 28px; font-weight: bold; color: #fff; line-height: 1; }
.level-label { font-size: 9px; color: rgba(255,255,255,0.75); letter-spacing: 1px; }
.level-progress-container { flex: 1; min-width: 180px; }
.level-progress-bar { height: 8px; background: #2a2e3d; border-radius: var(--radius-sm); overflow: hidden; }
.level-progress-fill { height: 100%; background: linear-gradient(90deg, #4c6ef5, #7c5cfc); transition: width var(--transition-slow); }
.level-progress-text { font-size: 12px; color: var(--text-muted, #8d8d8d); }
.level-bonus { display: flex; gap: 6px; align-items: center; background: #2a2e3d; padding: 6px 12px; border-radius: 20px; font-size: 13px; }
.bonus-value { color: #f5c542; font-weight: bold; }

.stat-card {
    background: var(--surface-2, #1b1e28);
    border: 1px solid var(--border, #2a2e3d);
    border-radius: 12px;
    padding: var(--space-3);
    text-align: center;
}
.stat-card .stat-icon { font-size: 22px; display: block; }
.stat-card .stat-value { display: block; font-size: 22px; font-weight: bold; margin: 4px 0; }
.stat-card .stat-label { font-size: 11px; color: var(--text-muted, #8d8d8d); }
.gamification-owner-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 10px; }



.badge-emoji { font-size: 32px; display: block; }
.badge-name { display: block; font-size: 11px; margin-top: var(--space-1); }
.badge-rarity { display: block; font-size: 9px; text-transform: uppercase; }
.badge-rarity.common { color: #8d8d8d; }
.badge-rarity.uncommon { color: #4caf50; }
.badge-rarity.rare { color: #2196f3; }
.badge-rarity.epic { color: #9c27b0; }
.badge-rarity.legendary { color: #f5c542; }
.equipped-badge {
    position: absolute; top: -4px; right: -4px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #f5c542; color: #1b1e28; font-size: 11px;
    display: flex; align-items: center; justify-content: center;
}
.season-event-container { max-width: 960px; margin: 0 auto; }
.season-header {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1b2838 0%, #2a3f5f 50%, #4c6ef5 100%);
    color: #fff;
    margin-bottom: 20px;
}
.season-badge { background: rgba(0,0,0,0.35); padding: 4px 12px; border-radius: var(--radius-lg); font-size: 12px; font-weight: bold; }
.season-description { opacity: 0.9; max-width: 640px; }
.season-timer { font-size: 18px; font-weight: bold; margin: 10px 0; }
.season-progress-bar { height: 8px; background: rgba(0,0,0,0.35); border-radius: var(--radius-sm); overflow: hidden; max-width: 400px; }
.season-progress-fill { height: 100%; background: #f5c542; }
.chapter-quests { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.quest-item {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 12px; background: var(--surface-2, #1b1e28);
    border: 1px solid var(--border, #2a2e3d); border-radius: 10px;
}
.quest-item.completed { opacity: 0.65; }
.quest-reward { margin-left: auto; color: #f5c542; font-size: 12px; font-weight: bold; }
.rewards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.reward-item {
    padding: 14px; border-radius: 10px; background: var(--surface-2, #1b1e28);
    border: 1px solid var(--border, #2a2e3d); text-align: center;
}
.reward-icon { font-size: 28px; display: block; margin-bottom: 6px; }















































.store-offers-row,
.store-cat-row,
.store-spotlight-row,
.horizontal-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 4px 16px;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--va-accent) 55%, transparent) color-mix(in srgb, var(--va-bg-card) 40%, transparent);
}

.store-offers-row::-webkit-scrollbar,
.store-cat-row::-webkit-scrollbar,
.store-spotlight-row::-webkit-scrollbar,
.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.store-offers-row::-webkit-scrollbar-track,
.store-cat-row::-webkit-scrollbar-track,
.store-spotlight-row::-webkit-scrollbar-track,
.horizontal-scroll::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--va-bg-card) 45%, transparent);
    border-radius: 99px;
}

.store-offers-row::-webkit-scrollbar-thumb,
.store-cat-row::-webkit-scrollbar-thumb,
.store-spotlight-row::-webkit-scrollbar-thumb,
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--va-accent), var(--va-accent-2, var(--va-accent)));
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

















































.game-review-card.is-mine {
    border-color: var(--va-accent, #66c0f4);
}

.game-review-mine-badge {
    font-size: 0.75rem;
    margin-left: var(--space-2);
}

/* ——— Library game page (Steam-like) ——— */
.lib-steam-hero {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}

.lib-steam-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 18, 25, 0.15) 0%, rgba(11, 18, 25, 0.55) 45%, rgba(27, 40, 56, 0.98) 100%);
}

.lib-steam-hero-bar {
    position: relative;
    z-index: var(--z-base);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 140px 20px 16px;
}

.lib-steam-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lib-steam-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.lib-steam-stat {
    min-width: 120px;
    font-size: 0.78rem;
    color: var(--va-text-muted, #8f98a0);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lib-steam-stat strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2px;
}

.lib-steam-stat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

/* PNG UI icons (fallback — emoji из manifest) */
.ui-icon,
.ui-icon-fallback {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1;
}

.ui-icon {
    object-fit: contain;
    pointer-events: none;
}



.bottom-nav-btn .ui-icon,
.bottom-nav-btn .ui-icon-fallback {
    width: 22px;
    height: 22px;
    font-size: 20px;
    display: block;
    margin: 0 auto 4px;
}

.header-icon-btn .ui-icon {
    width: 20px;
    height: 20px;
}

.vk-community-nav-item .ui-icon,
.vk-community-nav-item .ui-icon-fallback {
    width: 16px;
    height: 16px;
    margin-right: var(--space-1);
}

.tab-icon-img {
    width: 20px;
    height: 20px;
}

.category-icon .ui-icon {
    width: 22px;
    height: 22px;
}

.lib-steam-stat-bar i {
    display: block;
    height: 100%;
    background: var(--va-accent, #66c0f4);
}

.lib-steam-hero-title {
    position: relative;
    z-index: var(--z-base);
    padding: 0 20px 16px;
}

.lib-steam-hero-title h2 {
    margin: 0;
    font-size: 1.75rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.lib-steam-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid var(--va-border, #2a475e);
}

.lib-steam-tab {
    border: none;
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 8px 12px;
    border-bottom: 2px solid var(--va-accent, #66c0f4);
    cursor: default;
}

.lib-steam-extra-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 12px 20px 0;
}













.ch-compact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 40px;
    background: #1e2c3a;
}

.ch-compact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    flex: 1 1 auto;
    padding: 4px 6px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.ch-compact-info:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ch-compact-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ch-compact-sub {
    font-size: 0.75rem;
    color: #8b9bab;
    line-height: 1.2;
}

.ch-compact-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    margin-left: auto;
}

.ch-icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b9bab;
    cursor: pointer;
    font-size: 1rem;
    display: inline-grid;
    place-items: center;
}

.ch-icon-btn:hover,
.ch-icon-btn.is-on {
    background: rgba(255, 255, 255, 0.06);
    color: #66c0f4;
}











































.ch-menu-ico {
    width: 1.2em;
    text-align: center;
    opacity: 0.9;
}

.ch-menu-sep {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 4px 6px;
}















.post-media-paid-icon,
.media-gallery-paid-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: var(--z-raised);
    font-size: 0.95rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.media-gallery-lock-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100px;
    background: linear-gradient(135deg, #1b2838, #2a475e);
    filter: blur(6px);
}

.media-gallery-item.is-locked img,
.media-gallery-item.is-locked video {
    display: none;
}

.media-gallery-action-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2);
    min-width: 160px;
    z-index: var(--z-toast);
}

.media-gallery-action-menu button {
    text-align: left;
}

.media-gallery-locked-note {
    padding: 4px 6px;
    font-size: 0.85rem;
}















































.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}







































































































































































































.post-media-item {
    position: relative;
}





































































.media-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.media-gallery-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: var(--space-1);
}

.media-gallery-loading {
    padding: 24px 0;
    text-align: center;
}

.media-gallery-date-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.media-gallery-date-label {
    font-size: 0.88rem;
    font-weight: 650;
    color: #c7d5e0;
    margin: 0;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.02em;
}

.media-gallery-date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-2);
}

























.post-media-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.post-media-item.is-blurred img,
.post-media-item.is-blurred video {
    filter: blur(22px);
    transform: scale(1.08);
}

.post-media-blur-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    padding: var(--space-2);
    z-index: 2;
}

.post-media-lock {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.post-media-lock-placeholder {
    min-height: 180px;
    background: linear-gradient(135deg, #1b2838, #2a475e);
}

.post-media-more {
    display: none !important;
}









.media-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--va-border, #2a475e);
    margin-bottom: var(--space-3);
}

.media-gallery-tabs .btn.is-active {
    background: rgba(102, 192, 244, 0.2);
    border-color: #66c0f4;
}

.media-gallery-item-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.media-gallery-goto-post {
    width: 100%;
}















.media-gallery-item {
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}

.media-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.media-gallery-item img,
.media-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* Клик по каналу должен работать на всю ширину меню, а не только по названию. */
.channel-list-row > .community-channel-item,
.channel-list-row > .channel-list-item,
.channels-list .community-channel-item,
.channels-list .channel-list-item {
    width: 100%;
    box-sizing: border-box;
}



.channels-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.channels-head h3 {
    margin: 0;
    font-size: 0.95rem;
}















@keyframes voice-rec-pulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 76, 38, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(227, 76, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 76, 38, 0); }
}



































.chat-msg-body:has(> .voice-player),
.chat-msg-body:has(> .voice-player-loading),
.chat-msg .chat-msg-body:has(.voice-player) {
    white-space: normal !important;
    line-height: 1.2;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
}







































.voice-player:has([data-voice-transcript-row]:not(.hidden):not(:empty)),
.voice-player:has([data-voice-extra]:not(.hidden)) {
    overflow: visible;
}

























.transcript-segment {
    display: inline;
    padding: 1px 2px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.transcript-segment.active {
    color: var(--va-accent, #66c0f4);
    background: rgba(102, 192, 244, 0.12);
}

.transcript-punctuation {
    font-weight: 600;
    color: #f5c542;
}

.transcript-pause {
    display: inline-block;
    font-size: 0.65rem;
    opacity: 0.55;
    margin: 0 2px;
    animation: voice-pause-pulse var(--pause, 0.5s) ease-in-out infinite;
}

@keyframes voice-pause-pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}
