/* Voltark 2026 — visual language from ui_sketches (glass, pills, hero, bento, rail feel) */

/* —— Tokens already in style.css :root; sketch component primitives —— */
.glass {
    background: color-mix(in srgb, var(--va-bg-card) 55%, transparent);
    backdrop-filter: blur(var(--va-blur, 22px)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--va-blur, 22px)) saturate(1.2);
    border: 1px solid var(--va-border);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.featured-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    color: var(--va-text-muted) !important;
    font-weight: 600 !important;
}

.btn,
.btn-sm,
.btn-play-green,
.details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: var(--va-radius-pill) !important;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.btn-primary,
.btn:not(.btn-outline):not(.btn-ghost):not(.btn-sm.btn-outline),
.btn-play-green {
    background: var(--va-accent) !important;
    color: var(--va-btn-text) !important;
    border: none !important;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--va-accent) 40%, transparent),
        0 10px 30px var(--va-glow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--va-border-strong) !important;
    color: var(--va-text) !important;
    border-radius: var(--va-radius-pill) !important;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--va-text) !important;
}

/* —— Shell: floating glass chrome like sketches —— */
body:not(.mobile-layout) .app-header {
    --voltark-header-h: 44px;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    background: color-mix(in srgb, var(--va-bg) 92%, transparent) !important;
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border-bottom: 1px solid color-mix(in srgb, var(--va-border) 55%, transparent) !important;
    padding: 8px 16px;
    gap: var(--space-3);
    flex-wrap: nowrap;
    align-items: center;
    isolation: isolate;
    min-height: calc(var(--voltark-header-h) + 16px);
}

body:not(.mobile-layout) .app-container {
    padding-top: calc(var(--voltark-header-h, 44px) + 16px);
}

body:not(.mobile-layout) .app-header-start {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: var(--voltark-header-h);
}

body:not(.mobile-layout) .logo,
body:not(.mobile-layout) button.logo {
    width: var(--voltark-header-h);
    height: var(--voltark-header-h);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: var(--va-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--va-accent), var(--va-accent-2));
    color: var(--va-btn-text) !important;
    overflow: hidden;
    white-space: nowrap;
    max-width: var(--voltark-header-h);
    padding: 0;
    border: 0;
    cursor: pointer;
    box-shadow: 0 0 24px var(--va-glow);
    position: relative;
    z-index: 2;
}

body:not(.mobile-layout) .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0 auto;
    padding: 3px;
    height: var(--voltark-header-h);
    box-sizing: border-box;
    border-radius: var(--va-radius-pill);
    background: color-mix(in srgb, var(--va-bg-card) 55%, transparent);
    backdrop-filter: blur(var(--va-blur)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--va-blur)) saturate(1.2);
    border: 1px solid var(--va-border);
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

body:not(.mobile-layout) .nav-links::-webkit-scrollbar { display: none; }

body:not(.mobile-layout) .nav-links a {
    margin: 0 !important;
    padding: 0 12px !important;
    height: calc(var(--voltark-header-h) - 8px) !important;
    display: inline-flex !important;
    align-items: center;
    border-radius: var(--va-radius-pill) !important;
    border-bottom: none !important;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--va-text-muted) !important;
    white-space: nowrap;
    flex: 0 0 auto;
}

body:not(.mobile-layout) .nav-links a:hover {
    color: var(--va-text) !important;
    background: rgba(255, 255, 255, 0.08);
}

body:not(.mobile-layout) .nav-links a.active {
    color: var(--va-text) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

body:not(.mobile-layout) .user-area {
    margin-left: 0;
    flex-shrink: 0;
    gap: 8px;
    padding: 0 10px 0 8px;
    height: var(--voltark-header-h);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-radius: var(--va-radius-pill);
    background: color-mix(in srgb, var(--va-bg-card) 45%, transparent);
    border: 1px solid var(--va-border);
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
}

body:not(.mobile-layout) .user-area > * {
    align-self: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

body:not(.mobile-layout) .header-icon-btn,
body:not(.mobile-layout) .header-balance {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--va-border);
    box-sizing: border-box;
}

body:not(.mobile-layout) .header-icon-btn .ui-icon,
body:not(.mobile-layout) .header-icon-btn .ui-icon-fallback {
    display: block;
    margin: 0;
}

body:not(.mobile-layout) .header-icon-btn .header-badge,
body:not(.mobile-layout) #notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    inset: auto;
    grid-area: unset;
    transform: translate(40%, -40%);
}

body:not(.mobile-layout) .header-balance {
    width: auto;
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--va-radius-pill) !important;
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    line-height: 1;
}

body:not(.mobile-layout) .user-area .avatar,
body:not(.mobile-layout) .user-area #user-avatar {
    width: 32px !important;
    height: 32px !important;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    line-height: 0;
}

body:not(.mobile-layout) .user-area #user-name {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 0.88rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.mobile-layout) .user-area #auth-btn {
    height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    line-height: 1;
}

body:not(.mobile-layout) .user-area #header-status,
body:not(.mobile-layout) .user-area select.header-status {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--va-accent, #00e5ff) 50%),
        linear-gradient(135deg, var(--va-accent, #00e5ff) 50%, transparent 50%);
    background-position:
        calc(100% - 14px) 50%,
        calc(100% - 9px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding: 0 22px 0 12px;
    border: 1px solid var(--va-border);
    border-radius: var(--radius-full);
    color: var(--va-text);
    background-color: color-mix(in srgb, var(--va-bg-card) 70%, transparent);
    cursor: pointer;
    height: 32px;
    min-height: 32px;
    line-height: 30px;
    font-size: 0.78rem;
    box-sizing: border-box;
}
body:not(.mobile-layout) .user-area #header-status::-ms-expand,
body:not(.mobile-layout) .user-area select.header-status::-ms-expand {
    display: none;
}
body:not(.mobile-layout) .user-area #header-status {
    height: 32px;
    border-radius: var(--radius-full);
}

body:not(.mobile-layout) .user-area .connection-status {
    height: 32px;
    min-height: 32px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    margin: 0;
    line-height: 1;
    font-size: 0.78rem;
}

body:not(.mobile-layout) .main-content {
    max-width: none;
    padding: 0 clamp(12px, 2vw, 28px) 28px;
}

body:not(.mobile-layout) .app-footer {
    border-top: 1px solid var(--va-border);
    background: transparent;
    color: var(--va-text-muted);
}

body:not(.mobile-layout) .main-content:has(.home-page),
body:not(.mobile-layout) .main-content:has(.store-page--immersive),
body:not(.mobile-layout) .main-content:has(.community-page) {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

/* Bottom dock */
.bottom-navigation {
    background: color-mix(in srgb, var(--va-bg-elevated) 92%, transparent) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--va-border) !important;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
}

.bottom-nav-btn {
    border-radius: 14px;
    margin: 6px 2px;
    font-weight: 600;
}

.bottom-nav-btn.active {
    background: color-mix(in srgb, var(--va-accent) 14%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--va-accent) 35%, transparent);
    color: var(--va-accent) !important;
}

.friends-fab {
    border-radius: var(--va-radius-pill);
    border: 1px solid color-mix(in srgb, var(--va-accent) 40%, transparent);
    box-shadow: 0 12px 32px var(--va-glow);
    font-weight: 700;
}

.friends-popup,
.notif-panel,
.toast-item,
.toast,
.auth-dialog,
.modal-content {
    border-radius: var(--va-radius) !important;
    border: 1px solid var(--va-border) !important;
    background: color-mix(in srgb, var(--va-bg-card) 88%, transparent) !important;
    -webkit-backdrop-filter: blur(var(--va-blur));
            backdrop-filter: blur(var(--va-blur));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.page-title {
    font-family: var(--va-display);
    letter-spacing: -0.04em;
}

.game-card,
.store-offer-card,
.market-card,
.vcoin-item-card,
.inventory-slot,
.settings-pane-card,
.download-page-card {
    border-radius: var(--va-radius) !important;
    border: 1px solid var(--va-border) !important;
    overflow: hidden;
    background: color-mix(in srgb, var(--va-bg-card) 85%, transparent) !important;
}

.game-card:hover,
.store-offer-card:hover {
    border-color: color-mix(in srgb, var(--va-accent) 45%, transparent) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px);
}

/* —— Home bento (02) —— */
.home-page {
    position: relative;
    min-height: calc(100vh - 100px);
    padding: 8px clamp(12px, 2vw, 24px) 28px;
}

.home-bento-bg {
    position: absolute;
    inset: 0 0 auto 0;
    height: min(70vh, 640px);
    border-radius: 0 0 var(--va-radius) var(--va-radius);
    background:
        radial-gradient(1000px 420px at 80% -10%, var(--va-glow), transparent 55%),
        radial-gradient(800px 360px at 10% 90%, color-mix(in srgb, var(--va-accent-2) 24%, transparent), transparent 60%);
    pointer-events: none;
}

.home-bento {
    position: relative;
    z-index: var(--z-base);
    display: grid;
    grid-template-columns: 1.55fr 1fr 0.95fr;
    grid-template-rows: minmax(180px, 1.25fr) minmax(150px, 1fr) minmax(120px, 0.9fr);
    gap: 14px;
    max-width: 1500px;
    margin: 0 auto;
    min-height: min(78vh, 720px);
}

.home-bento .tile {
    border-radius: 24px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    min-height: 0;
    border: 1px solid var(--va-border);
    background: color-mix(in srgb, var(--va-bg-card) 55%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
            backdrop-filter: blur(14px) saturate(1.15);
}

.home-bento .tile h3 {
    font-family: var(--va-display);
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.home-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--va-text-muted);
    margin-bottom: var(--space-1);
}

.tile-play {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #0a0c12;
    min-height: 300px;
}

.tile-play .art {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    transform: scale(1.04);
}

.tile-play .art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.82));
}

.tile-play .play-meta { position: relative; z-index: var(--z-base); }

.tile-play h2 {
    font-family: var(--va-display);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 6px 0 12px;
}

.tile-friends { grid-column: 2; grid-row: 1; }
.tile-news { grid-column: 3; grid-row: 1 / span 2; }
.tile-sale {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-friend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--va-border);
    cursor: pointer;
}
.home-friend-row:last-child { border: 0; }
.home-friend-ava {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    background: linear-gradient(135deg, var(--va-accent-2), var(--va-accent));
}
.home-friend-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--va-ok); flex-shrink: 0;
}
.home-friend-row[data-status="away"] .home-friend-dot { background: var(--va-warn); }
.home-friend-row[data-status="offline"] .home-friend-dot { background: var(--va-text-muted); }
.home-friend-row[data-status="in_game"] .home-friend-dot,
.home-friend-row[data-status="online"] .home-friend-dot { background: var(--va-accent); }

.home-news-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--va-border);
    cursor: pointer;
}
.home-news-item:last-child { border: 0; }
.home-news-item small { color: var(--va-text-muted); display: block; margin-bottom: var(--space-1); }

.sale-pct {
    font-family: var(--va-display);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    letter-spacing: -0.06em;
    color: var(--va-accent);
}

.tile-stats {
    grid-column: 1;
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
}

.home-bento .stat {
    border-radius: 20px;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-2);
    border: 1px solid var(--va-border);
    background: color-mix(in srgb, var(--va-bg-card) 55%, transparent);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
}

.home-bento .stat b {
    font-family: var(--va-display);
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.tile-season {
    grid-column: 2 / span 2;
    grid-row: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.home-season-bar {
    flex: 1;
    min-width: 120px;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.home-season-bar > i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--va-accent), var(--va-accent-2));
}

.home-empty { color: var(--va-text-muted); font-size: 0.86rem; }

/* @bp-wide — 1100px */
@media (max-width: 1100px) {
    .home-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        min-height: 0;
    }
    .tile-play { grid-column: 1 / span 2; grid-row: auto; }
    .tile-news, .tile-season, .tile-stats { grid-column: 1 / span 2; grid-row: auto; }
}

/* @bp-phone — 640px */
@media (max-width: 640px) {
    .home-bento { grid-template-columns: 1fr; }
    .tile-play, .tile-friends, .tile-sale, .tile-news, .tile-season, .tile-stats { grid-column: 1; }
}

/* —— Store hero (01) —— */
.store-page--immersive .store-hero-stage {
    margin: 0 0 20px;
    border-radius: 0;
    min-height: min(72vh, 640px);
    border: none;
    box-shadow: none;
    background:
        radial-gradient(900px 480px at 50% 42%, var(--va-glow), transparent 60%),
        var(--va-bg);
}

.store-page-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(12px, 2vw, 24px) 24px;
}

.store-hero-carousel.store-hero-stage {
    position: relative;
    overflow: hidden;
}

.store-hero-track {
    position: relative;
    min-height: inherit;
    height: min(72vh, 640px);
}

.store-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
    display: block !important;
    grid-template-columns: none !important;
}

.store-hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.store-hero-glow {
    position: absolute;
    inset: 8% 18% 18%;
    background: radial-gradient(circle at 50% 42%, var(--va-glow), transparent 62%);
    filter: blur(8px);
    pointer-events: none;
}

.store-hero-wm {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    font-family: var(--va-display);
    font-size: clamp(3.5rem, 16vw, 12rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    color: rgba(255, 255, 255, 0.045);
    white-space: nowrap;
    pointer-events: none;
    -webkit-user-select: none;
            user-select: none;
    z-index: var(--z-base);
}

.store-hero-product {
    position: absolute;
    left: 50%;
    top: 46%;
    width: min(46vw, 560px);
    aspect-ratio: 16 / 10;
    transform: translate(-50%, -52%);
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 80px var(--va-glow);
    z-index: 2;
    cursor: pointer;
    isolation: isolate;
}

.store-hero-product::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.45));
    border: 1px solid var(--va-border-strong);
    pointer-events: none;
}

.store-hero-copy {
    position: absolute;
    left: clamp(20px, 4vw, 72px);
    top: 22%;
    max-width: 360px;
    z-index: var(--z-raised);
}

.store-hero-copy h2 {
    font-family: var(--va-display) !important;
    font-size: clamp(2rem, 4.2vw, 3.4rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.04em !important;
    margin: 10px 0 14px !important;
    text-transform: uppercase;
}

.store-hero-copy p {
    color: color-mix(in srgb, var(--va-text) 78%, var(--va-text-muted));
    line-height: 1.55;
    font-size: 0.92rem;
    margin-bottom: 22px;
    max-width: 34ch;
}

.store-hero-side {
    position: absolute;
    right: clamp(20px, 4vw, 64px);
    top: 24%;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    z-index: var(--z-raised);
}

.store-hero-tile {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.store-hero-vert {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    color: var(--va-text-muted);
    font-weight: 600;
    margin-top: var(--space-2);
}

.store-hero-slide-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.store-hero-price {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--va-btn-text) !important;
}

.store-hero-dots {
    bottom: 18px !important;
    z-index: var(--z-raised);
}

.store-hero-dot {
    width: 8px !important;
    height: 8px !important;
    background: rgba(255, 255, 255, 0.28) !important;
}
.store-hero-dot.active {
    background: var(--va-accent) !important;
    box-shadow: 0 0 12px var(--va-glow);
}

.store-hero-stage .store-carousel-btn {
    z-index: var(--z-raised);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--va-bg-card) 60%, transparent);
    border: 1px solid var(--va-border);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    color: var(--va-text);
}

.store-sticky-bar.glass {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: var(--va-radius);
}

.store-hero-slide-bg,
.store-hero-slide-panel {
    display: none !important;
}

@media (max-width: 900px) {
    .store-page--immersive .store-hero-stage,
    .store-hero-track {
        min-height: 420px;
        height: 420px;
    }
    .store-hero-product {
        width: min(78vw, 420px);
        top: 38%;
    }
    .store-hero-copy {
        top: auto;
        bottom: 56px;
        left: 16px;
        right: 16px;
        max-width: none;
        background: linear-gradient(180deg, transparent, rgba(7, 8, 12, 0.85));
        padding: 16px 8px 0;
        border-radius: 12px;
    }
    .store-hero-side,
    .store-hero-wm { display: none; }
}

/* —— Library wall / cinematic split —— */
.library-page {
    max-width: 1500px;
    margin: 0 auto;
}

.library-layout {
    border-radius: 22px;
    border: 1px solid var(--va-border);
    overflow: hidden;
    background: color-mix(in srgb, var(--va-bg-elevated) 70%, transparent);
    min-height: min(70vh, 720px);
}

.library-sidebar {
    background: color-mix(in srgb, var(--va-bg) 80%, transparent) !important;
    border-right: 1px solid var(--va-border) !important;
}

.library-cover-wall .library-banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
}

.library-banner-card {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: 1px solid var(--va-border);
    background: color-mix(in srgb, var(--va-bg-card) 80%, transparent);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    opacity: 0.88;
}

.library-banner-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    opacity: 1;
}

.library-detail {
    position: relative;
    overflow: hidden;
}

.lib-steam-hero {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--va-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* —— Community —— */
.community-page {
    margin: 0 clamp(0px, 1vw, 12px);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--va-border);
    background: color-mix(in srgb, var(--va-bg-elevated) 88%, transparent);
    min-height: calc(100vh - 120px);
}

.community-top-tabs {
    display: flex;
    gap: var(--space-1);
    padding: 10px 12px;
    border-bottom: 1px solid var(--va-border);
    background: color-mix(in srgb, var(--va-bg) 70%, transparent);
}

.community-page[data-community-style="vk"] .community-top-tabs,
.community-page[data-community-style="telegram"] .community-top-tabs {
    display: none;
}

.community-top-tab {
    border: 0;
    background: transparent;
    color: var(--va-text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: var(--va-radius-pill);
    cursor: pointer;
}

.community-top-tab.active,
.community-top-tab:hover {
    color: var(--va-text);
    background: rgba(255, 255, 255, 0.08);
}

.guilds-bar {
    border-right: 1px solid var(--va-border);
    background: color-mix(in srgb, var(--va-bg) 92%, transparent);
    padding: 10px 8px;
}

.guild-icon {
    border-radius: 14px !important;
    transition: border-radius 0.18s ease, box-shadow 0.18s ease;
}

.guild-icon.active {
    border-radius: 12px !important;
    box-shadow: 0 0 16px var(--va-glow);
}

.channels-bar {
    border-right: 1px solid var(--va-border);
    background: color-mix(in srgb, var(--va-bg-elevated) 85%, transparent);
}

.community-chat-head,
.community-input-row {
    border-color: var(--va-border) !important;
    background: color-mix(in srgb, var(--va-bg-elevated) 88%, transparent) !important;
}

.chat-msg-body,
.b {
    border-radius: var(--radius-lg);
}

/* —— Profile banner —— */
.steam-profile-header {
    display: flex;
    gap: 22px;
    align-items: flex-end;
    padding: 28px 24px 20px;
    border-radius: 22px;
    border: 1px solid var(--va-border);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--va-accent) 12%, transparent), transparent 70%),
        color-mix(in srgb, var(--va-bg-card) 50%, transparent);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    margin-bottom: var(--space-4);
}

.steam-profile-header h1 {
    font-family: var(--va-display);
    letter-spacing: -0.04em;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.steam-main-tabs {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-1);
    border-radius: var(--va-radius-pill);
    border: 1px solid var(--va-border);
    background: rgba(255, 255, 255, 0.03);
    overflow-x: auto;
    margin-bottom: var(--space-4);
}

.steam-main-tab {
    border: 0;
    background: transparent;
    color: var(--va-text-muted);
    padding: 8px 14px;
    border-radius: var(--va-radius-pill);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.steam-main-tab.active {
    color: var(--va-text);
    background: rgba(255, 255, 255, 0.1);
}

.steam-stat-card,
.steam-panel {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--va-border) !important;
}

/* —— Economy / system —— */
.market-tabs,
.vcoin-shop-cats {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-1);
    border-radius: var(--va-radius-pill);
    border: 1px solid var(--va-border);
    background: rgba(255, 255, 255, 0.03);
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: 14px;
}

.market-balance-pill,
.vcoin-balance-pill {
    border-radius: var(--va-radius-pill);
    border: 1px solid var(--va-border);
    padding: 8px 14px;
    background: color-mix(in srgb, var(--va-accent) 10%, transparent);
}

.market-page .market-card:hover,
.vcoin-shop-page .vcoin-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.settings-page .settings-nav-card,
.settings-page .settings-pane-card {
    border-radius: var(--radius-lg);
}

.auth-dialog .auth-subview {
    animation: va-auth-in 0.22s ease;
}

@keyframes va-auth-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.empty-state,
.error-box {
    border-radius: var(--va-radius);
    border: 1px dashed var(--va-border);
    background: color-mix(in srgb, var(--va-bg-card) 50%, transparent);
    padding: 28px;
}

/* Cyberpunk extras */
html[data-launcher-theme="theme_cyberpunk"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 43, 214, 0.015) 3px
    );
    opacity: 0.55;
}

html[data-launcher-theme="theme_light"] .glass,
html[data-launcher-theme="theme_light"] .home-bento .tile,
html[data-launcher-theme="theme_light"] .home-bento .stat,
html[data-launcher-theme="theme_light"] body:not(.mobile-layout) .nav-links,
html[data-launcher-theme="theme_light"] body:not(.mobile-layout) .user-area {
    background: color-mix(in srgb, #fff 82%, transparent);
}

@media (max-width: 768px) {
    body.mobile-layout .app-header {
        padding: 8px 10px;
        background: color-mix(in srgb, var(--va-bg-elevated) 92%, transparent) !important;
        border-bottom: 1px solid var(--va-border) !important;
        -webkit-backdrop-filter: blur(16px);
                backdrop-filter: blur(16px);
    }
    body.mobile-layout .logo {
        font-family: var(--va-display);
        font-weight: 800;
        letter-spacing: -0.04em;
        color: var(--va-accent) !important;
    }
    .steam-profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .community-page {
        margin: 0;
        border-radius: 0;
        min-height: calc(100vh - 130px);
    }
}
