:root {
    --bg: #030303;
    --card-bg: #0a0a0a;
    --border: #141414;
    --border-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #666666;
    --accent: #ffffff;
    --accent-text: #030303;
    --preview-bg: #070707;
    --noise-opacity: 0.04;
    --panel-bg: rgba(3, 3, 3, 0.85);
    --abstract-color: radial-gradient(circle, #222 0%, transparent 70%);
    --abstract-rect: linear-gradient(45deg, #181818, #0a0a0a);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --theme-transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                        border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                        color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(255, 255, 255, 0.02);
}

[data-theme="light"] {
    --bg: #f9f9f9;
    --card-bg: #ffffff;
    --border: #e4e4e4;
    --border-hover: #cccccc;
    --text-primary: #030303;
    --text-secondary: #888888;
    --accent: #030303;
    --accent-text: #ffffff;
    --preview-bg: #f2f2f2;
    --noise-opacity: 0.015;
    --panel-bg: rgba(249, 249, 249, 0.85);
    --abstract-color: radial-gradient(circle, #ddd 0%, transparent 70%);
    --abstract-rect: linear-gradient(45deg, #e8e8e8, #f5f5f5);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="blue"] {
    --bg: #050811;
    --card-bg: #0a1024;
    --border: #142244;
    --border-hover: #2a4688;
    --text-primary: #ffffff;
    --text-secondary: #60799f;
    --accent: #3b82f6;
    --accent-text: #ffffff;
    --preview-bg: #0c1530;
    --noise-opacity: 0.035;
    --panel-bg: rgba(5, 8, 17, 0.85);
    --abstract-color: radial-gradient(circle, #1d3368 0%, transparent 70%);
    --abstract-rect: linear-gradient(45deg, #102046, #0a1024);
    --shadow-hover: 0 20px 40px rgba(5, 8, 17, 0.6), 0 0 20px rgba(59, 130, 246, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-stack);
    overflow-x: hidden;
    transition: var(--theme-transition);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    z-index: 1001;
    transition: var(--theme-transition);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-transform: lowercase;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--theme-transition);
}

.search-wrapper {
    position: relative;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 4px 2px 12px;
    width: 280px;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), var(--theme-transition);
}

.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.search-suggestions-dropdown::-webkit-scrollbar {
    width: 4px;
}

.search-suggestions-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

.search-suggestion-item {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
}

.search-suggestion-item:hover {
    background-color: var(--border);
    color: var(--text-primary);
}

.search-container:focus-within {
    border-color: var(--border-hover);
    width: 320px;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    width: 100%;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--theme-transition);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--text-primary);
}

.btn-primary {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--accent-text);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-full {
    width: 100%;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--theme-transition);
}

.theme-toggle-btn:hover {
    border-color: var(--border-hover);
}

[data-theme="dark"] .sun-icon,
[data-theme="dark"] .blue-icon {
    display: none;
}

[data-theme="light"] .moon-icon,
[data-theme="light"] .blue-icon {
    display: none;
}

[data-theme="blue"] .sun-icon,
[data-theme="blue"] .moon-icon {
    display: none;
}

.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.navigation {
    padding: 16px 40px;
    border-bottom: 1px solid var(--border);
    transition: var(--theme-transition);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--theme-transition);
}

.filter-btn:hover {
    border-color: var(--border-hover);
}

.tabs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tabs {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.tab-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.tab-item.active {
    color: var(--text-primary);
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    z-index: 1;
    transition: var(--theme-transition);
    pointer-events: none;
}

.main-content {
    padding: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    perspective: 1000px;
    padding: 20px 15px 40px 15px;
    margin: -20px -15px -40px -15px;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    height: 380px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), var(--theme-transition);
}

.game-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.game-card.wide {
    grid-column: span 2;
}

.card-preview {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
    background: var(--preview-bg);
    transition: var(--theme-transition);
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noise'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23noise)'/%3e%3c/svg%3e");
    opacity: var(--noise-opacity);
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 1;
}

.abstract-shape {
    width: 120px;
    height: 120px;
    background: var(--abstract-color);
    filter: blur(10px);
}

.abstract-shape-2 {
    width: 250px;
    height: 150px;
    background: var(--abstract-rect);
    border: 1px solid var(--border);
    transform: rotate(-5deg);
    transition: var(--theme-transition);
}

.abstract-shape-3 {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border);
    transform: rotate(45deg);
    transition: var(--theme-transition);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    transition: var(--theme-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}

.badge-free {
    background: var(--text-primary);
    color: var(--bg);
    border: none;
}

.card-info {
    padding: 20px;
    border-top: 1px solid var(--border);
    position: relative;
    background: var(--card-bg);
    transition: var(--theme-transition);
    z-index: 10;
}

.game-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.game-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.game-tags span {
    font-size: 11px;
    color: var(--text-secondary);
    transition: var(--theme-transition);
}

.card-action {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--text-primary);
    border: none;
    color: var(--bg);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), var(--theme-transition);
}

.game-card:hover .card-action {
    opacity: 1;
    transform: translateY(0);
}

.wide-layout {
    display: flex;
    flex-grow: 1;
    height: calc(100% - 75px);
}

.wide-layout .card-preview {
    width: 60%;
}

.wide-details {
    width: 40%;
    border-left: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg);
    transition: var(--theme-transition);
}

.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-original {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 12px;
    transition: var(--theme-transition);
}

.price-discount {
    background: var(--border);
    color: var(--text-primary);
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--theme-transition);
}

.price-final {
    font-weight: 700;
    font-size: 14px;
}

.screenshots-row {
    display: flex;
    gap: 8px;
}

.screenshot-thumb {
    width: calc(50% - 4px);
    aspect-ratio: 16/9;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: opacity 0.4s ease, var(--theme-transition);
}

.auth-page {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    width: 100%;
    flex-shrink: 0;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    width: 100%;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 32px 40px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), var(--theme-transition);
}

.auth-form-header {
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.auth-form-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-form-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: var(--theme-transition);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--theme-transition);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-link {
    font-size: 11px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.form-link:hover {
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, var(--theme-transition);
}

.form-input:focus {
    border-color: var(--border-hover);
}

.checkbox-row {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    position: relative;
    line-height: 1.4;
    transition: var(--theme-transition);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-checkmark {
    width: 18px;
    height: 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: var(--theme-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container:hover input ~ .checkbox-checkmark {
    border-color: var(--border-hover);
}

.checkbox-container input:checked ~ .checkbox-checkmark {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.checkbox-checkmark:after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-container input:checked ~ .checkbox-checkmark:after {
    display: block;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0;
    transition: var(--theme-transition);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
    transition: var(--theme-transition);
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.social-login-row {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--theme-transition);
}

.social-btn:hover {
    border-color: var(--border-hover);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    transition: var(--theme-transition);
}

.form-link-highlight {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--theme-transition);
}

.form-link-highlight:hover {
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .game-card.wide {
        grid-column: span 1;
    }
    .wide-layout {
        flex-direction: column;
    }
    .wide-layout .card-preview, .wide-layout .wide-details {
        width: 100%;
    }
    .wide-details {
        border-left: none;
        border-top: 1px solid var(--border);
        height: 120px;
    }
    .header {
        padding: 15px 20px;
    }
    .navigation {
        padding: 12px 20px;
    }
    .main-content {
        padding: 20px;
    }
    .search-container {
        width: 180px;
    }
    .search-container:focus-within {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .auth-header {
        padding: 20px;
    }
    .auth-card {
        padding: 24px;
    }
}
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--theme-transition);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--theme-transition);
}

.user-badge:hover .user-avatar {
    border-color: var(--border-hover);
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    transition: var(--theme-transition);
}

.btn-logout {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--theme-transition);
    text-decoration: none;
}

.btn-logout:hover {
    color: var(--text-primary);
    border-color: var(--border);
    background: var(--card-bg);
}

.welcome-banner {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.welcome-banner h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.welcome-banner p {
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    transition: var(--theme-transition);
}

@media (max-width: 768px) {
    .user-name {
        display: none;
    }
}
.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    transition: var(--theme-transition);
    cursor: pointer;
    text-decoration: none;
}

.user-badge-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.user-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #eab308;
}

.user-badge .user-icon {
    color: var(--text-secondary);
    transition: var(--theme-transition);
}

.user-badge:hover .user-icon {
    color: var(--text-primary);
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    transition: var(--theme-transition);
}

@media (max-width: 480px) {
    .user-name {
        display: none;
    }
}
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

.burger-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100vh;
    background: var(--panel-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), var(--theme-transition);
    display: flex;
    flex-direction: column;
    padding: 96px 40px 40px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100vw;
    scrollbar-width: none;
}

.burger-menu::-webkit-scrollbar {
    display: none;
}

.burger-menu.active {
    transform: translateX(0);
}

.burger-header {
    margin-bottom: 32px;
    text-align: center;
}

.burger-title {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.burger-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.burger-link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.3s;
}

.burger-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.burger-link:hover {
    color: var(--text-primary);
}

.burger-link:hover svg {
    color: var(--text-primary);
}

.burger-link.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.burger-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
    width: 100%;
    transition: var(--theme-transition);
}

body.no-scroll {
    overflow: hidden;
}

body.no-scroll .mobile-preview-fab {
    display: none !important;
}

@media (max-width: 480px) {
    .burger-menu {
        width: 100%;
        border-left: none;
    }
}
.filter-panel {
    display: none;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

.filter-panel.active {
    display: block;
    animation: filterPanelShow 0.18s ease-out;
}

@keyframes filterPanelShow {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-panel-inner {
    min-height: 0;
    padding: 30px 40px;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 24px;
}

.filter-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-input-small {
    padding: 8px 12px;
    font-size: 13px;
}

.filter-range-dash {
    color: var(--text-secondary);
}

.margin-top-sm {
    margin-top: 6px;
}

.filter-select {
    padding: 8px 12px;
    font-size: 13px;
    background-color: transparent;
    cursor: pointer;
}

.filter-select option {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.checkbox-checkmark.radio {
    border-radius: 50%;
}

.checkbox-checkmark.radio:after {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bg);
    border: none;
    margin-top: 0;
    transform: none;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

@media (max-width: 768px) {
    .filter-panel-inner {
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, var(--theme-transition);
}

.custom-select-trigger:hover, 
.custom-select.active .custom-select-trigger {
    border-color: var(--border-hover);
}

.custom-select-trigger .chevron-icon {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-select.active .custom-select-trigger .chevron-icon {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-hover);
    border-radius: 6px;
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.25s;
    max-height: 200px;
    overflow-y: auto;
}

.custom-options::-webkit-scrollbar {
    width: 4px;
}

.custom-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-options::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.custom-select.active .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-option {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.custom-option:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.custom-option:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.custom-option:hover {
    background-color: var(--border);
    color: var(--text-primary);
}

.custom-option.selected {
    background-color: var(--border);
    color: var(--text-primary);
    font-weight: 500;
}
.test-panel-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-panel-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.status-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-switcher .status-btn {
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 4px;
}

.status-switcher .status-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.profile-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.profile-hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: visible;
    transition: var(--theme-transition);
}

.profile-hero-card .noise {
    border-radius: 12px;
}

.profile-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 20;
    min-width: 0;
}

.profile-pfp {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--theme-transition);
    flex-shrink: 0;
}

.profile-details-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.profile-name-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    min-width: 0;
    max-width: 100%;
}

.status-indicator-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: var(--theme-transition);
}

.status-indicator-badge > span:first-child {
    white-space: nowrap;
    text-transform: uppercase;
}

.profile-section-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-section-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    transition: var(--theme-transition);
}

body[data-status="user"] .profile-wrapper {

    opacity: 1;
}

body[data-status="user"] .status-indicator-badge::after {
    content: "Пользователь";
}

body[data-status="beginner"] .status-indicator-badge::after {
    content: "Начинающий креатор";
}

body[data-status="beginner"] .profile-wrapper {
    animation: slideUpFade 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

body[data-status="beginner"] .profile-hero-card {
    border-color: var(--border-hover);
}

body[data-status="strong"] .status-indicator-badge::after {
    content: "Сильный креатор";
}

body[data-status="strong"] .profile-wrapper {
    animation: scaleUpFade 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

body[data-status="strong"] .profile-hero-card {
    border-color: var(--text-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body[data-status="strong"] .profile-pfp {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

body[data-status="popular"] .status-indicator-badge::after {
    content: "Популярный креатор";
}

body[data-status="popular"] .profile-wrapper {
    animation: scaleUpFadePopular 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body[data-status="popular"] .profile-hero-card {
    border-color: var(--text-primary);
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.05);
}

body[data-status="popular"][data-theme="blue"] .profile-hero-card {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
}

body[data-status="popular"] .profile-pfp {
    color: var(--text-primary);
}

body[data-status="popular"][data-theme="blue"] .profile-pfp {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

body[data-status="popular"] .status-indicator-badge {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--text-primary);
}

body[data-status="popular"][data-theme="blue"] .status-indicator-badge {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

body[data-status="admin"] .status-indicator-badge::after {
    content: "Администратор";
}

body[data-status="moderator"] .status-indicator-badge::after {
    content: "Модератор";
}
body[data-status="moderator"] .status-indicator-badge {
    color: #22c55e;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    font-weight: 700;
}
body[data-status="moderator"] .profile-hero-card {
    border-color: #22c55e !important;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(34, 197, 94, 0.05) 100%) !important;
    box-shadow: 0 20px 50px rgba(34, 197, 94, 0.15) !important;
}
body[data-status="moderator"] .profile-pfp {
    color: #22c55e !important;
}

.dev-badge.mod-badge {
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

body[data-status="admin"] .status-indicator-badge {
    color: #ef4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
    font-weight: 700;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUpFade {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes scaleUpFadePopular {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.carousel-section {
    margin-bottom: 48px;
}

.carousel-section-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 24px;
    transition: var(--theme-transition);
}

.carousel-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 15px 40px 15px;
    margin: -20px -15px -40px -15px;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

.carousel-track .game-card,
.carousel-track .developer-card {
    width: 280px;
    flex-shrink: 0;
}

.hover-details-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 16px;
    transform: translateY(101%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3;
}

body[data-theme="light"] .hover-details-panel {
    background: rgba(255, 255, 255, 0.2);
}

body[data-theme="blue"] .hover-details-panel {
    background: rgba(10, 16, 36, 0.2);
}

.game-card:hover .hover-details-panel {
    transform: translateY(0);
    opacity: 1;
}

.hover-details-panel .price-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hover-details-panel .screenshots-row {
    display: flex;
    gap: 8px;
}

.hover-details-panel .screenshot-thumb {
    width: calc(50% - 4px);
    aspect-ratio: 16/9;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: opacity 0.4s ease, var(--theme-transition);
}
.game-page-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.media-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
}

.main-preview-frame {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--preview-bg);
    overflow: hidden;
    position: relative;
    transition: var(--theme-transition);
}

.main-preview-frame img {
    max-width: 100%;
}

.screenshot-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.screenshot-carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-thumb-btn {
    width: 100px;
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--card-bg);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transition: var(--theme-transition);
}

.screenshot-thumb-btn.active, .screenshot-thumb-btn:hover {
    border-color: var(--border-hover);
}

.screenshot-thumb-btn .abstract-shape {
    width: 40px;
    height: 40px;
}

.screenshot-thumb-btn .abstract-shape-2 {
    width: 60px;
    height: 40px;
}

.screenshot-thumb-btn .abstract-shape-3 {
    width: 30px;
    height: 30px;
}

.meta-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.meta-title-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-developer {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--theme-transition);
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.meta-developer:hover {
    color: var(--text-primary);
}

.meta-status-tag {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease, var(--theme-transition);
}

.meta-status-tag:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--card-bg);
}


.actions-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--theme-transition);
}

.actions-panel #authActionsContainer .btn {
    height: 40px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.file-size-badge {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
    opacity: 0.65;
    margin-left: 2px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.actions-panel #authActionsContainer .btn:hover .file-size-badge {
    opacity: 0.95;
}

.price-display {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stats-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    transition: var(--theme-transition);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--theme-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.stat-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: var(--theme-transition);
}


.stat-item svg {
    color: var(--text-secondary);
    transition: var(--theme-transition);
}

.description-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.comments-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.comment-post-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s, var(--theme-transition);
}

.comment-textarea:focus {
    border-color: var(--border-hover);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: var(--theme-transition);
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    transition: var(--theme-transition);
    position: relative;
    overflow: visible;
}

.comment-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
}

.comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--theme-transition);
}

@media (max-width: 900px) {
    .game-page-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
.upload-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.margin-bottom {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.mode-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.mode-card-label {
    cursor: pointer;
    position: relative;
}

.mode-card-label.disabled-mode {
    opacity: 0.35;
    cursor: not-allowed;
}

.mode-card-label.disabled-mode .mode-card {
    pointer-events: none;
}

.mode-card-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 10px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    transition: border-color 0.3s, box-shadow 0.3s, var(--theme-transition);
}

.mode-card svg {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.mode-card-label:hover .mode-card {
    border-color: var(--border-hover);
}

.mode-card-label input[type="radio"]:checked + .mode-card {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.mode-card-label input[type="radio"]:checked + .mode-card svg {
    color: var(--accent);
}

.mode-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.mode-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: var(--theme-transition);
}

.upload-dropzone {
    border: 1px dashed var(--border);
    background: var(--card-bg);
    border-radius: 8px;
    padding: 36px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s, var(--theme-transition);
}

.upload-dropzone:hover {
    border-color: var(--border-hover);
    background: var(--bg);
}

.dropzone-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    z-index: 2;
}

.dropzone-link {
    text-decoration: underline;
    color: var(--text-primary);
    cursor: pointer;
}

.dropzone-subtext {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
    z-index: 2;
}

.hidden-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 16px;
}

.upload-preview-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.preview-sticky-wrap {
    position: sticky;
    top: 116px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.preview-sticky-wrap .game-card {
    max-width: 320px;
}

.tips-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    max-width: 320px;
    transition: var(--theme-transition);
}

.tips-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tips-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--theme-transition);
}

@media (max-width: 900px) {
    .upload-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .mode-selector-grid {
        grid-template-columns: 1fr;
    }
    .preview-sticky-wrap .game-card, .tips-box {
        max-width: 100%;
    }
}
.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.library-filters {
    display: flex;
    gap: 8px;
}

.lib-filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--theme-transition);
}

.lib-filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.lib-filter-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.library-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--theme-transition);
    position: relative;
}

.library-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.lib-card-preview {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    background: var(--preview-bg);
}

.lib-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    z-index: 2;
    transition: var(--theme-transition);
}

.library-card[data-status="installed"] .lib-card-badge {
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.library-card[data-status="favorites"] .lib-card-badge {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.lib-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    justify-content: space-between;
    background: var(--card-bg);
    transition: var(--theme-transition);
}

.lib-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lib-card-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.lib-card-tag {
    font-size: 11px;
    color: var(--text-secondary);
    transition: var(--theme-transition);
}

.lib-card-controls {
    display: flex;
    gap: 8px;
    width: 100%;
}

.lib-action-btn {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--theme-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lib-action-btn.primary-action {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.lib-action-btn.primary-action:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.lib-action-btn.secondary-action:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
}

body[data-theme="light"] .lib-action-btn.secondary-action:hover {
    background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 480px) {
    .library-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
.jams-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.jams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.jams-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jam-filters {
    display: flex;
    gap: 8px;
}

.jam-filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--theme-transition);
}

.jam-filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.jam-filter-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.jams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.jam-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--theme-transition);
}

.jam-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.jam-cover {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: var(--preview-bg);
}

.jam-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    z-index: 2;
    border: 1px solid var(--border);
}

.jam-badge.active-badge {
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
    background: var(--panel-bg);
}

.jam-badge.voting-badge {
    border-color: rgba(234, 179, 8, 0.4);
    color: #eab308;
    background: var(--panel-bg);
}

.jam-badge.upcoming-badge {
    border-color: var(--border);
    color: var(--text-secondary);
    background: var(--panel-bg);
}

.jam-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    justify-content: space-between;
    background: var(--card-bg);
    transition: var(--theme-transition);
}

.jam-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.jam-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--theme-transition);
}

.jam-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    transition: var(--theme-transition);
}

@media (max-width: 768px) {
    .jams-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .jams-header-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
}
.assets-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.assets-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.assets-type-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.asset-pill-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--theme-transition);
}

.asset-pill-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.asset-pill-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.asset-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--theme-transition);
}

.asset-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.asset-preview {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: var(--preview-bg);
}

.asset-format-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    z-index: 2;
    transition: var(--theme-transition);
}

.asset-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    justify-content: space-between;
    background: var(--card-bg);
    transition: var(--theme-transition);
}

.asset-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.asset-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.asset-size {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    flex-shrink: 0;
}

.asset-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--theme-transition);
}

.asset-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 4px;
    transition: var(--theme-transition);
}

.asset-footer-row .lib-action-btn {
    flex: initial;
    padding: 6px 18px;
}

@media (max-width: 768px) {
    .assets-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
.categories-hub-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.categories-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    flex-wrap: wrap;
}

.categories-hub-title-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.categories-hub-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.categories-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    width: 260px;
    color: var(--text-secondary);
    transition: border-color 0.25s, var(--theme-transition);
}

.categories-search-box:focus-within {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.categories-search-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 12.5px;
    color: var(--text-primary);
    width: 100%;
}

.category-type-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.cat-pill-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.cat-pill-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.cat-pill-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.categories-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    width: 100%;
}

.category-hub-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 170px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    contain: content;
    transform: translateZ(0);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-hub-card:hover {
    transform: translateY(-3px) translateZ(0);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.category-hub-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

[data-theme="blue"] .category-hub-card.selected {
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.category-hub-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    z-index: 1;
}

.category-hub-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.65;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-hub-card:hover .category-hub-bg img {
    transform: scale(1.05);
    opacity: 0.85;
}

.category-hub-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 3, 3, 0.3) 0%, rgba(3, 3, 3, 0.95) 78%);
    pointer-events: none;
    z-index: 2;
}

[data-theme="light"] .category-hub-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.95) 78%);
}

[data-theme="blue"] .category-hub-overlay {
    background: linear-gradient(180deg, rgba(5, 8, 17, 0.3) 0%, rgba(5, 8, 17, 0.95) 78%);
}

.category-hub-content {
    position: relative;
    z-index: 3;
    padding: 16px 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-hub-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-hub-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .category-hub-icon-wrap {
    background: rgba(240, 240, 240, 0.9);
}

[data-theme="blue"] .category-hub-icon-wrap {
    background: rgba(10, 16, 36, 0.85);
}

.category-hub-card:hover .category-hub-icon-wrap {
    transform: scale(1.06);
    border-color: var(--text-primary);
}

.category-hub-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    background: rgba(16, 16, 16, 0.8);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 4px;
}

[data-theme="light"] .category-hub-badge {
    background: rgba(245, 245, 245, 0.85);
}

[data-theme="blue"] .category-hub-badge {
    background: rgba(10, 16, 36, 0.8);
}

.category-hub-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-hub-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-hub-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.category-hub-count {
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 500;
}

.category-hub-btn {
    background: rgba(24, 24, 24, 0.9);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    user-select: none;
}

[data-theme="light"] .category-hub-btn {
    background: rgba(235, 235, 235, 0.9);
}

[data-theme="blue"] .category-hub-btn {
    background: rgba(14, 23, 50, 0.9);
}

.category-hub-card:hover .category-hub-btn {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.skeleton-category-card {
    height: 170px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.skeleton-category-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.04) 20%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.5s infinite;
}

.category-showcase-section {
    margin-top: 16px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.category-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-showcase-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.category-showcase-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-showcase-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.category-showcase-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.category-showcase-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-sort-pills {
    display: flex;
    gap: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}

.cat-sort-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-sort-btn:hover {
    color: var(--text-primary);
}

.cat-sort-btn.active {
    background: var(--border);
    color: var(--text-primary);
}

.btn-close-showcase {
    font-size: 12px;
    padding: 8px 16px;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .categories-hub-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .categories-search-box {
        width: 100%;
    }
    .category-showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .category-showcase-actions {
        width: 100%;
        justify-content: space-between;
    }
}
.developers-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.dev-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.developer-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--theme-transition);
}

.developer-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.dev-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.dev-avatar-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: var(--theme-transition);
}

.dev-avatar {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.dev-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: none;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.dev-badge.new-badge {
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dev-badge.admin-badge {
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
body[data-status] .status-indicator-badge.js-badge::after {
    content: none !important;
}
.dev-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.dev-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.dev-handle {
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--theme-transition);
}

.dev-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 4px;
    transition: var(--theme-transition);
}

.dev-stats {
    display: flex;
    gap: 24px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 8px;
    transition: var(--theme-transition);
}

.dev-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dev-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.dev-stat-lbl {
    font-size: 11px;
    color: var(--text-secondary);
}

.dev-card-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
    margin-top: 12px;
}
.library-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.library-view-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: var(--theme-transition);
}

.library-view-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.library-cover-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.library-cover-box {
    width: 100%;
    aspect-ratio: 1/1;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--preview-bg);
}

.library-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dev-socials-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.dev-socials-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.dev-social-link {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.dev-social-link:hover {
    color: var(--text-primary);
}

.library-content-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.library-screenshots-gallery {
    display: flex;
    gap: 12px;
}

.library-screenshots-gallery .screenshot-thumb {
    width: 140px;
    aspect-ratio: 16/10;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--theme-transition);
}

.library-screenshots-gallery .screenshot-thumb.active,
.library-screenshots-gallery .screenshot-thumb:hover {
    border-color: var(--border-hover);
}

.dev-posts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dev-posts-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.dev-post-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dev-post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dev-post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.dev-post-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.dev-post-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dev-post-footer {
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.dev-comments-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.dev-comments-btn:hover {
    color: var(--text-primary);
}

.purchased-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--theme-transition);
}

.purchased-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.purchased-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchased-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.purchased-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.purchased-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--theme-transition);
}

.purchased-item:hover {
    border-color: var(--border-hover);
}

.purchased-item.active {
    border-color: var(--text-primary);
    background: var(--bg);
}

.purchased-item-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.purchased-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.purchased-empty {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 8px 0;
}

@media (max-width: 1024px) {
    .library-page-layout {
        grid-template-columns: 1fr;
    }
    .library-view-header {
        grid-template-columns: 1fr;
    }
}
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-main-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.settings-grid-table {
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--theme-transition);
}

.settings-row-group {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
}

.settings-row-group:last-child {
    border-bottom: none;
}

.settings-section-header {
    font-size: 18px;
    font-weight: 700;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.01);
}

.settings-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    border-bottom: 1px solid var(--border);
    transition: var(--theme-transition);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label-cell {
    padding: 20px 24px;
    border-right: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
}

.settings-content-cell {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.theme-choice-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.theme-pills {
    display: flex;
    gap: 8px;
}

.theme-pill-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--theme-transition);
}

.theme-pill-btn:hover {
    border-color: var(--border-hover);
}

.theme-pill-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.custom-theme-row {
    margin-top: 8px;
    align-items: flex-start;
}

.custom-palette-box {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
}

.color-picker-spectrum {
    width: 120px;
    height: 90px;
    background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red);
    border-radius: 4px;
    position: relative;
    border: 1px solid var(--border);
}

.spectrum-pointer {
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px rgba(0,0,0,0.8);
}

.color-indicators {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.color-indicator-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.color-dot.main-color { background: #38bdf8; }
.color-dot.second-color { background: #ffffff; }
.color-dot.third-color { background: #ffffff; }

.vertical-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-region-select {
    max-width: 200px;
}

.split-row {
    grid-template-columns: 1fr 1fr;
}

.settings-left-split {
    display: grid;
    grid-template-columns: 140px 1fr;
    border-right: 1px solid var(--border);
}

.settings-right-split {
    display: flex;
    flex-direction: column;
}

.center-title {
    width: 100%;
    border-bottom: 1px solid var(--border);
    border-right: none;
    justify-content: center;
}

.center-content {
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

.settings-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.settings-avatar-box {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #e54d42;
}

.settings-username {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-notification-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-sublabel {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.purchased-hint {
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-purchased-mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 260px;
    margin-top: 8px;
}

.mini-purchased-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
}

.mini-thumb {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .settings-row {
        grid-template-columns: 1fr;
    }
    .settings-label-cell {
        border-right: none;
        border-bottom: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.02);
    }
    .split-row {
        grid-template-columns: 1fr;
    }
    .settings-left-split {
        grid-template-columns: 1fr;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

.carousel-section {
    margin-bottom: 40px;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.carousel-section-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.carousel-controls {
    display: flex;
    gap: 8px;
}

.carousel-nav-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    border-color: var(--border-hover);
    background: var(--border);
}

.carousel-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 15px 40px 15px;
    margin: -20px -15px -40px -15px;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.game-card {
    width: 280px;
    flex-shrink: 0;
    position: relative;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    overflow: visible;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.card-preview {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--preview-bg);
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
}

.card-preview img.main-cover,
.card-preview img.hover-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-preview img.hover-cover {
    opacity: 0;
}

.game-card:hover .card-preview img.main-cover {
    opacity: 0;
}
.game-card:hover .card-preview img.hover-cover {
    opacity: 1;
    transform: scale(1.05);
}

.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-desc-preview {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s;
}

.game-card:hover .game-desc-preview {
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .header { padding: 16px 20px; }
    .navigation { padding: 12px 20px; }
    .main-content { padding: 24px 20px; }
    .game-card, .developer-card { width: 240px; }
    .card-preview { height: 150px; }
}

@media (max-width: 768px) {
    .header-left { gap: 16px; }
    .search-container { width: 160px; }
    .tabs { gap: 2px; }
    .tab-item { padding: 8px 12px; font-size: 12px; }
    .game-card, .developer-card { width: 160px; }
    .card-preview { height: 105px; }
    .filter-btn { padding: 6px 8px; }
    .filter-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 600px) {
    .header.search-focused .user-badge,
    .header.search-focused .notifications-container,
    .header:has(.search-container:focus-within) .user-badge,
    .header:has(.search-container:focus-within) .notifications-container {
        display: none !important;
    }
    .header.search-focused .header-left,
    .header:has(.search-container:focus-within) .header-left {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .search-container {
        display: flex;
        width: 36px;
        padding: 2px 4px;
        justify-content: center;
        overflow: hidden;
        transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .search-container .search-input {
        width: 0;
        opacity: 0;
        padding: 0;
        transition: opacity 0.2s, width 0.3s;
    }
    .search-container:focus-within,
    .search-container:has(.search-input:not(:placeholder-shown)),
    html.search-active .search-container {
        width: calc(100vw - 110px) !important;
        padding: 2px 4px 2px 10px;
    }
    .search-container:focus-within .search-input,
    .search-container:has(.search-input:not(:placeholder-shown)),
    html.search-active .search-input {
        width: 100%;
        opacity: 1;
    }
    .game-card, .developer-card { width: 145px; }
    .card-preview { height: 95px; }
    .carousel-section-title { font-size: 16px; }
    .carousel-nav-btn { width: 30px; height: 36px; font-size: 16px; }
}
.carousel-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.carousel-controls {
    display: flex !important;
    gap: 8px !important;
}

.carousel-nav-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    border-color: var(--border-hover);
    background: var(--border);
}
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999999;
    pointer-events: none;
}

.toast {
    background: #141414;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

[data-theme="light"] .toast {
    background: #ffffff;
    color: #030303;
    border: 1px solid #d4d4d8;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

[data-theme="blue"] .toast {
    background: #0d172e;
    color: #ffffff;
    border: 1px solid #2a4688;
    box-shadow: 0 12px 36px rgba(5, 8, 17, 0.9);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.no-transitions, .no-transitions * {
    transition: none !important;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 75px);
}

.admin-sidebar {
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    border-bottom: none;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    height: auto;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        padding: 12px 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .admin-sidebar::-webkit-scrollbar {
        display: none;
    }
    .admin-sidebar-btn {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 10px;
        flex-shrink: 0;
        height: auto;
    }
    .admin-main {
        padding: 20px 16px;
    }
}

.admin-sidebar-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.admin-sidebar-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.admin-sidebar-btn.active {
    color: var(--text-primary);
    background: var(--border);
}

.admin-sidebar-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.admin-main {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-pending-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 30px;
            display: flex;
            flex-direction: column;
            gap: 24px;
            margin-bottom: 24px;
            transition: border-color 0.3s;
        }

        .admin-pending-card:hover {
            border-color: var(--border-hover);
        }

        .admin-user-row {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 20px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            position: relative;
            transition: var(--theme-transition);
        }

        .admin-user-row:hover {
            border-color: var(--border-hover);
        }

        .admin-project-row {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 20px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            position: relative;
            transition: var(--theme-transition);
        }

        .admin-project-row:hover {
            border-color: var(--border-hover);
        }

        .admin-project-info {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .admin-user-info {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .admin-user-menu-btn {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 8px;
            display: flex;
            flex-direction: column;
            gap: 3px;
            border-radius: 6px;
            transition: all 0.2s;
            width: 32px;
            align-items: center;
        }

        .admin-user-menu-btn:hover {
            color: var(--text-primary);
            background: rgba(255, 255, 255, 0.03);
        }

        .admin-user-menu-btn span {
            display: block;
            width: 14px;
            height: 2px;
            background: currentColor;
        }

        .admin-user-dropdown {
            position: absolute;
            right: 30px;
            top: 55px;
            background: var(--card-bg);
            border: 1px solid var(--border-hover);
            border-radius: 8px;
            box-shadow: var(--shadow-hover);
            z-index: 100;
            display: none;
            flex-direction: column;
            overflow: hidden;
            width: 180px;
        }

        .admin-user-dropdown-item {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 13px;
            padding: 12px 18px;
            text-align: left;
            cursor: pointer;
            transition: all 0.2s;
        }

        .admin-user-dropdown-item:hover {
            background: var(--border);
            color: var(--text-primary);
        }
.auth-skeleton {
    width: 120px;
    height: 36px;
    background: var(--border);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.auth-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}
.confirm-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
body[data-status="admin"] .profile-hero-card {
    border-color: #ef4444 !important;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(239, 68, 68, 0.05) 100%) !important;
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.15) !important;
    animation: adminGlowPulse 2s infinite alternate;
}

body[data-status="admin"] .profile-pfp {
    color: #ef4444 !important;
}

body[data-status="designer"] .status-indicator-badge::after {
    content: "Дизайнер";
}
body[data-status="designer"] .status-indicator-badge {
    color: #3b82f6;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    font-weight: 700;
}
body[data-status="designer"] .profile-hero-card {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15) !important;
}
body[data-status="designer"] .profile-pfp {
    color: #3b82f6 !important;
}

body[data-status="sponsor"] .status-indicator-badge::after {
    content: "Спонсор";
}
body[data-status="sponsor"] .status-indicator-badge {
    color: #eab308;
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
    font-weight: 700;
}
body[data-status="sponsor"] .profile-hero-card {
    border-color: #eab308 !important;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(234, 179, 8, 0.05) 100%) !important;
    box-shadow: 0 20px 50px rgba(234, 179, 8, 0.15) !important;
}
body[data-status="sponsor"] .profile-pfp {
    color: #eab308 !important;
}

body[data-status="musician"] .status-indicator-badge::after {
    content: "Музыкант";
}
body[data-status="musician"] .status-indicator-badge {
    color: #10b981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    font-weight: 700;
}
body[data-status="musician"] .profile-hero-card {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15) !important;
}
body[data-status="musician"] .profile-pfp {
    color: #10b981 !important;
}

body[data-status="youtuber"] .status-indicator-badge::after {
    content: "Ютубер";
}
body[data-status="youtuber"] .status-indicator-badge {
    color: #c084fc;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.45);
    font-weight: 700;
}
body[data-status="youtuber"] .profile-hero-card {
    border-color: #a855f7 !important;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(168, 85, 247, 0.08) 100%) !important;
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.18) !important;
}
body[data-status="youtuber"] .profile-pfp {
    color: #c084fc !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3) !important;
}
.dev-badge.youtuber-badge {
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
}

@keyframes adminGlowPulse {
    0% { box-shadow: 0 20px 50px rgba(239, 68, 68, 0.10); }
    100% { box-shadow: 0 20px 50px rgba(239, 68, 68, 0.25); }
}

.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative !important;
    overflow: hidden !important;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.admin-stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}
.profile-section-block .grid-container {
    margin-top: 16px;
}
@keyframes spinS {
    0% { transform: rotate(0deg) scale(1); opacity: 0.8; }
    50% { transform: rotate(180deg) scale(1.15); opacity: 1; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.8; }
}
html.search-active .carousel-section:not(#filterResultsSection):not(#devResultsSection),
html.search-active #heroFeaturedSection,
html.search-active #genreCategoriesSection {
    display: none !important;
}
.skeleton-text {
    height: 14px;
    background: var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-title {
    height: 24px;
    background: var(--border);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton-circle {
    width: 64px;
    height: 64px;
    background: var(--border);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.skeleton-text::after,
.skeleton-title::after,
.skeleton-circle::after,
.skeleton-banner::after,
.jam-activity-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.5s infinite;
}

.skeleton-banner {
    width: 100%;
    height: 100%;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.jam-activity-skeleton {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

@keyframes adminGlowPulse {
    0% { box-shadow: 0 20px 50px rgba(239, 68, 68, 0.10); }
    100% { box-shadow: 0 20px 50px rgba(239, 68, 68, 0.25); }
}
.notifications-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    margin-right: 8px;
}

.notifications-toggle-btn {
    position: relative;
}

.notification-dot {
    display: none;
    position: absolute;
    top: 7px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: notificationPulse 2.2s infinite ease-in-out;
}

@keyframes notificationPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.18);
        box-shadow: 0 0 6px 2px rgba(239, 68, 68, 0.6);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        opacity: 0.85;
    }
}

.notifications-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 24px);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.notifications-dropdown h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    color: var(--text-primary);
}

.notifications-list-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notifications-list-inner p {
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
    margin: 10px 0;
}

@media (max-width: 600px) {
    .notifications-dropdown {
        position: fixed;
        top: 60px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }
}

.notifications-dropdown::-webkit-scrollbar {
    width: 4px;
}

.notifications-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-dropdown::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
@media (max-width: 600px) {
    .header {
        padding: 12px 16px;
    }
    .header-left {
        gap: 12px;
    }
    .logo {
        font-size: 20px;
    }
    .navigation {
        padding: 10px 16px;
    }
    .main-content {
        padding: 16px;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .burger-menu {
        width: 100%;
        padding: 80px 20px 20px 20px;
    }
    .confirm-modal-card {
        padding: 20px;
        margin: 10px;
    }
    .profile-hero-card {
        padding: 20px;
    }
    .profile-meta {
        gap: 16px;
    }
    .profile-pfp {
        width: 56px;
        height: 56px;
    }
    .profile-name-title {
        font-size: 20px;
    }

    .profile-last-seen-status {
        font-size: 11px;
        font-weight: 400;
        text-transform: none;
        letter-spacing: normal;
        opacity: 0.85;
    }
    .carousel-viewport {
        -webkit-overflow-scrolling: touch;
    }
    .user-badge {
        gap: 8px;
    }
    .user-badge-avatar {
        width: 32px;
        height: 32px;
    }
    .user-stars {
        margin-left: 6px !important;
    }
    .auth-header {
        padding: 14px 16px;
    }
    .auth-container {
        padding: 12px;
    }
    .auth-card {
        padding: 20px;
        max-width: 100%;
    }
    .auth-form-header {
        margin-bottom: 16px;
    }
    .auth-form-header h1 {
        font-size: 20px;
    }
    .auth-form {
        gap: 12px;
    }
}
.profile-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    white-space: nowrap;
    flex-wrap: wrap;
}

.profile-stats-subrow {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-stats-row span {
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .profile-stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .profile-stats-subrow {
        gap: 12px;
    }
    .profile-stats-row span {
        font-size: 12px;
    }
}
@media (max-width: 550px) {
    .category-type-pills {
        gap: 4px !important;
        flex-wrap: nowrap !important;
        width: 100%;
        justify-content: space-between;
    }
    .cat-pill-btn {
        padding: 5px 6px !important;
        font-size: 9.5px !important;
        letter-spacing: 0 !important;
        white-space: nowrap;
        flex: 1;
        text-align: center;
    }
}
@media (max-width: 600px) {
    .developer-card {
        min-height: auto !important;
    }
    .developer-card .dev-banner {
        height: 40px !important;
    }
    .developer-card .dev-card-header {
        padding: 0 10px !important;
        margin-top: -20px !important;
    }
    .developer-card .dev-avatar-wrapper {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    .developer-card .dev-badge {
        font-size: 8px !important;
        padding: 2px 4px !important;
    }
    .developer-card .dev-card-body {
        padding: 10px !important;
        gap: 8px !important;
    }
    .developer-card .dev-name {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .developer-card .dev-bio {
        font-size: 10px !important;
        height: 28px !important;
        line-height: 1.3 !important;
    }
    .developer-card .dev-stats {
        padding-top: 6px !important;
        gap: 6px !important;
        font-size: 9px !important;
    }
    .developer-card .dev-stat-val {
        font-size: 11px !important;
    }
    .developer-card .dev-card-actions {
        gap: 4px !important;
        margin-top: 10px !important;
    }
    .developer-card .dev-card-actions .lib-action-btn {
        padding: 4px 6px !important;
        font-size: 9px !important;
    }
}
.mobile-preview-fab {
    position: fixed;
    bottom: 24px;
    left: 20px;
    z-index: 90;
    background: var(--text-primary);
    color: var(--bg);
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s;
}

.mobile-preview-fab:active {
    transform: scale(0.95);
}

@media (max-width: 900px) {
    .upload-preview-section {
        display: none !important;
    }
    .mobile-preview-fab {
        display: flex !important;
    }
    .mode-selector-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .mode-card {
        padding: 10px 8px !important;
        aspect-ratio: 1 / 1 !important;
    }
    .mode-title {
        font-size: 11px !important;
    }
    .mode-desc {
        font-size: 9.5px !important;
        line-height: 1.2 !important;
    }
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    .input-label {
        font-size: 10px;
    }
    .form-input, .comment-textarea {
        font-size: 13px;
        padding: 8px 12px;
    }
    .dropzone-text {
        font-size: 11px;
    }
    .dropzone-subtext {
        font-size: 10px;
    }
}
#mobilePreviewCardContainer #previewCard {
    width: 280px !important;
    height: 380px !important;
}

#mobilePreviewCardContainer #previewCard .card-preview {
    height: 180px !important;
}
#filterResultsSection .carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#filterResultsTitle {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 600px) {
    #filterResultsSection .carousel-section-title {
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 65%;
    }
    #closeFiltersBtn {
        padding: 4px 6px !important;
        font-size: 10px !important;
        white-space: nowrap;
    }
}
@media (max-width: 600px) {
    .settings-main-title {
        font-size: 20px;
    }
    .settings-section-header {
        padding: 12px 16px;
        font-size: 15px;
    }
    .settings-label-cell {
        padding: 12px 16px;
        font-size: 13px;
    }
    .settings-content-cell {
        padding: 16px;
    }
    .theme-pills {
        width: 100%;
        display: flex;
        gap: 6px;
    }
    .theme-pill-btn {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
        font-size: 11px;
    }
    .settings-actions-cell {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .settings-actions-cell .btn {
        width: 100%;
        text-align: center;
    }
}
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.about-stat-card {
    grid-column: span 2;
}

.about-stat-bottom-1 {
    grid-column: 2 / span 2;
}

.about-stat-bottom-2 {
    grid-column: 4 / span 2;
}

.about-devs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.about-dev-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .about-stat-card {
        grid-column: auto;
    }
    .about-stat-bottom-2 {
        grid-column: 1 / -1;
        width: 85%;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .about-dev-card {
        grid-template-columns: 1fr 80px !important;
        padding: 14px !important;
        gap: 12px !important;
    }
    .about-dev-card-avatar {
        order: initial !important;
        width: 80px !important;
        height: 80px !important;
    }
}
#webGameRunnerModal {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: auto;
}

#webGameRunnerModal::-webkit-scrollbar {
    display: none;
}
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    min-height: calc(100vh - 160px);
}

.docs-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: fit-content;
}

.docs-sidebar-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.docs-sidebar-btn:hover {
    color: var(--text-primary);
    background: var(--bg);
}

.docs-sidebar-btn.active {
    color: var(--text-primary);
    background: var(--border);
}

.docs-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
}
body[data-status="developer"] .status-indicator-badge::after {
    content: none !important;
}
body[data-status="developer"] .profile-hero-card {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15) !important;
}
body[data-status="developer"] .profile-pfp {
    color: #3b82f6 !important;
}
.card-menu-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
}

.card-menu-btn {
    background: rgba(3, 3, 3, 0.75);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--theme-transition);
}

.card-menu-btn:hover {
    border-color: var(--border-hover);
    background: var(--card-bg);
}

.card-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-width: 175px;
    z-index: 100;
}

.card-dropdown-menu.active {
    display: flex !important;
}

.card-dropdown-item {
    background: transparent;
    border: none;
    color: var(--text-primary) !important;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
    display: block;
    width: 100%;
}

.card-dropdown-item:hover {
    background: var(--border);
    color: var(--text-primary) !important;
}

.card-dropdown-item.danger-item {
    color: #ef4444 !important;
}

.card-dropdown-item.danger-item:hover {
    background: rgba(239, 68, 68, 0.15);
}
.hero-featured-section {
    position: relative;
    width: 100%;
}

.hero-featured-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 20px;
    transition: var(--theme-transition);
}

.hero-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.25);
    opacity: 0.6;
    transition: background-image 0.8s ease;
    border-radius: 12px;
    pointer-events: none;
    z-index: 0;
    will-change: opacity;
    transform: translateZ(0);
    clip-path: inset(0 round 12px);
}

[data-theme="light"] .hero-bg-blur {
    filter: blur(40px) brightness(0.95);
    opacity: 0.2;
}

.hero-featured-main {
    position: relative;
    z-index: 2;
}

.hero-featured-main {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    width: 100%;
    gap: 20px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

img:not([src]), img[src=""] {
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-featured-media {
    position: relative;
    width: 100%;
    height: 380px;
    aspect-ratio: 16/9;
    background: var(--preview-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.hero-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: var(--preview-bg);
}

.hero-featured-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.hero-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hero-screenshots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-thumb-box {
    aspect-ratio: 16/9;
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--preview-bg);
}

.hero-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.hero-dot.active {
    background: var(--text-primary);
    width: 20px;
    border-radius: 4px;
}

.recommend-login-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%), var(--card-bg);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 32px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.recommend-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}

.recommend-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.recommend-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.recommend-btn {
    align-self: flex-start;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .hero-featured-main {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-featured-media {
        height: 220px;
    }
    .hero-featured-details {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .hero-screenshots-grid {
        display: none !important;
    }
}


.recommend-login-banner {
    position: relative;
    background: #0a0a0a;
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 36px 40px;
    margin-bottom: 40px;
    overflow: hidden;
}

.recommend-ticker-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: 0.3;
    pointer-events: none;
    white-space: nowrap;
    animation: marqueeScroll 65s linear infinite;
    z-index: 1;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.recommend-ticker-track img {
    height: 110%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    filter: brightness(0.6) contrast(1.1);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.recommend-banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}

.recommend-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.recommend-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.recommend-btn {
    align-self: flex-start;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .hero-featured-main {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-featured-media {
        height: 220px;
    }
    .hero-featured-details {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}
.carousel-track {
    min-height: 336px;
}

@media (max-width: 1024px) {
    .carousel-track { min-height: 300px; }
}

@media (max-width: 768px) {
    .carousel-track { min-height: 255px; }
}

@media (max-width: 480px) {
    .carousel-track { min-height: 245px; }
}
#topDevsTrack {
    min-height: 250px;
}

@media (max-width: 768px) {
    #topDevsTrack { min-height: 230px; }
}
.hero-slider-dots {
    min-height: 8px;
}

.hero-tags {
    min-height: 24px;
}

.comment-menu-wrapper {
    position: absolute;
    top: 12px;
    right: 12px;
}

.comment-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.comment-menu-btn:hover {
    color: var(--text-primary);
    background: var(--border);
}

.comment-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-width: 170px;
    width: max-content;
    z-index: 100;
}

.comment-dropdown-menu.active {
    display: flex !important;
}

.comment-dropdown-item {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 9px 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    white-space: nowrap;
}

.comment-dropdown-item:hover {
    background: var(--border);
}

.comment-dropdown-item.danger-item {
    color: #ef4444;
}

.comment-dropdown-item.danger-item:hover {
    background: rgba(239, 68, 68, 0.15);
}
.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    min-height: 42px;
    transition: border-color 0.2s, var(--theme-transition);
}

.tags-input-container:focus-within {
    border-color: var(--border-hover);
}

.tags-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.tag-pill-remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

.tag-pill-remove:hover {
    color: #ef4444;
}

.tags-field-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    flex: 1;
    min-width: 120px;
}
.admin-mod-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-mod-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-hover);
}

.mod-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.mod-tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--theme-transition);
}

.mod-tab-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.mod-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skull-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 24px;
}
.comment-replies-wrap {
    margin-left: 36px;
    margin-top: 10px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toggle-replies-btn {
    background: transparent;
    border: none;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.toggle-replies-btn:hover {
    text-decoration: underline;
}

.comment-reply-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.comment-reply-btn:hover {
    color: var(--text-primary);
}
.devtools-blocker {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #030303 !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    color: var(--text-primary) !important;
    font-family: var(--font-stack) !important;
}

.devtools-blocker .logo {
    font-size: 36px !important;
    font-weight: 800 !important;
    letter-spacing: -1.5px !important;
    text-transform: lowercase !important;
}

.devtools-blocker p {
    font-size: 14px !important;
    color: var(--text-secondary) !important;
}
.profile-socials-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.profile-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--theme-transition);
}

.profile-social-btn img.social-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.profile-social-btn img.github-icon-dark {
    display: inline-block;
}
.profile-social-btn img.github-icon-light {
    display: none;
}

[data-theme="light"] .profile-social-btn img.github-icon-dark {
    display: none;
}
[data-theme="light"] .profile-social-btn img.github-icon-light {
    display: inline-block;
}

.profile-social-btn.social-telegram {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}
.profile-social-btn.social-telegram:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.16);
}

.profile-social-btn.social-vk {
    background: rgba(0, 119, 255, 0.08);
    border-color: rgba(0, 119, 255, 0.3);
    color: #0077ff;
}
.profile-social-btn.social-vk:hover {
    border-color: #0077ff;
    background: rgba(0, 119, 255, 0.16);
}

.profile-social-btn.social-youtube {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.profile-social-btn.social-youtube:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.16);
}

.profile-social-btn.social-discord {
    background: rgba(88, 101, 242, 0.08);
    border-color: rgba(88, 101, 242, 0.3);
    color: #5865f2;
}
.profile-social-btn.social-discord:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.16);
}

.profile-social-btn.social-github {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}
.profile-social-btn.social-github:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .profile-social-btn.social-github {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}
[data-theme="light"] .profile-social-btn.social-github:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.08);
}

.profile-social-btn.social-boosty {
    background: rgba(241, 95, 44, 0.08);
    border-color: rgba(241, 95, 44, 0.3);
    color: #f15f2c;
}
.profile-social-btn.social-boosty:hover {
    border-color: #f15f2c;
    background: rgba(241, 95, 44, 0.16);
}

.profile-social-btn.social-donationalerts {
    background: rgba(243, 112, 35, 0.08);
    border-color: rgba(243, 112, 35, 0.3);
    color: #f37023;
}
.profile-social-btn.social-donationalerts:hover {
    border-color: #f37023;
    background: rgba(243, 112, 35, 0.16);
}

.profile-social-btn.social-site {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
    color: var(--text-primary);
}
.profile-social-btn.social-site:hover {
    border-color: var(--border-hover);
    background: var(--card-bg);
}

.md-desc-link {
    color: #3b82f6;
    text-decoration: underline;
    transition: opacity 0.2s;
}
.md-desc-link:hover {
    opacity: 0.8;
}

.profile-desc-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.profile-desc-expanded {
    display: block;
    white-space: pre-line;
}

.btn-toggle-desc {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    align-self: flex-start;
    transition: var(--theme-transition);
}

.btn-toggle-desc:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    text-decoration: none;
}
.upload-progress-container {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
    margin-top: 12px;
}

.upload-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.2s ease;
}

.upload-progress-text {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
}
.user-comments-modal-list {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.user-comments-modal-list::-webkit-scrollbar {
    width: 4px;
}

.user-comments-modal-list::-webkit-scrollbar-track {
    background: transparent;
}

.user-comments-modal-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.profile-banner-box {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: -10px;
    border: 1px solid var(--border);
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .profile-banner-box {
        height: 100px;
    }
}
.code-digits-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.code-digit-input {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.code-digit-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.code-digit-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.clickable-stat-item {
    transition: var(--theme-transition);
}
.clickable-stat-item:hover {
    color: var(--text-primary);
    text-decoration: underline;
}
.user-list-modal-inner {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.user-list-modal-inner::-webkit-scrollbar {
    width: 4px;
}

.user-list-modal-inner::-webkit-scrollbar-track {
    background: transparent;
}

.user-list-modal-inner::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.user-list-modal-inner {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.user-list-modal-inner::-webkit-scrollbar {
    width: 4px;
}

.user-list-modal-inner::-webkit-scrollbar-track {
    background: transparent;
}

.user-list-modal-inner::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.user-modal-item-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    flex-shrink: 0;
    min-height: 64px;
}

.user-modal-item-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.user-modal-item-overlay {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
}

.user-modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-hover);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}


.user-modal-username {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    z-index: 5;
    pointer-events: none;
}

.status-dot.online {
    background-color: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.status-dot.offline {
    background-color: #262626;
    border-color: var(--border-hover);
}
.jam-banner-hero {
    width: 100%;
    max-height: 380px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 32px;
    display: block;
    background: var(--preview-bg);
}

.jam-organizer-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 32px;
}

.jam-organizer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border-hover);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}

.jam-participant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

.jam-participant-avatar .status-dot {
    width: 10px;
    height: 10px;
    bottom: -1px;
    right: -1px;
    border: 2px solid var(--card-bg);
}

.jam-participants-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.jam-participants-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.jam-participants-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.jam-participants-scroll::-webkit-scrollbar {
    width: 4px;
}

.jam-participants-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.jam-participant-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--theme-transition);
}

.jam-participant-row:hover {
    border-color: var(--border-hover);
}

.jam-participant-rank {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 24px;
}

.jam-participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    position: relative;
    flex-shrink: 0;
}

.jam-participant-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jam-participant-role {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.jam-participant-role.admin {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.jam-participant-role.dev {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.jam-participant-time {
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.jam-participants-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}
.equipped-badge-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 0;
    line-height: 1;
    cursor: help;
    position: relative;
    margin: 0;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.profile-name-title .equipped-badge-tag {
    width: 24px;
    height: 24px;
}

.equipped-badge-tag:hover {
    transform: scale(1.18);
}

.equipped-badge-tag svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.profile-name-title .equipped-badge-tag svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.equipped-badge-tag.rarity-common {
    color: #3b82f6;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.45));
}

.equipped-badge-tag.rarity-rare {
    color: #22c55e;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.45));
}

.equipped-badge-tag.rarity-super_rare {
    color: #ef4444;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.45));
}

.equipped-badge-tag.rarity-legendary {
    color: #eab308;
    filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.45));
}

.equipped-badge-tag::after {
    content: attr(data-title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.equipped-badge-tag::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #111;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}

.equipped-badge-tag:hover::after,
.equipped-badge-tag:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.equipped-badge-tag img,
.badge-card .badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
}

.equipped-badge-tag.rarity-common {
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4));
}

.equipped-badge-tag.rarity-rare {
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.5));
}

.equipped-badge-tag.rarity-super_rare {
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}

.equipped-badge-tag.rarity-legendary {
    filter: drop-shadow(0 0 4px rgba(234, 179, 8, 0.5));
}

#profileBadgesSection {
    padding-top: 0;
    margin-top: -16px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.badge-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 18px 14px 16px 14px;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    gap: 8px;
    position: relative;
    transition: var(--theme-transition);
    overflow: hidden;
}

.badge-card.rarity-common {
    border-color: #3b82f6;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.2);
}
.badge-card.rarity-common .badge-icon {
    color: #3b82f6;
}

.badge-card.rarity-rare {
    border-color: #22c55e;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.18);
}
.badge-card.rarity-rare .badge-icon {
    color: #22c55e;
}

.badge-card.rarity-super_rare {
    border-color: #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.18);
}
.badge-card.rarity-super_rare .badge-icon {
    color: #ef4444;
}

.badge-card.rarity-legendary {
    border-color: #eab308;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.18);
}
.badge-card.rarity-legendary .badge-icon {
    color: #eab308;
}

.badge-card.locked {
    opacity: 0.35;
    filter: grayscale(1);
}

.badge-card .badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    flex-shrink: 0;
    color: #38bdf8;
    transition: all 0.25s ease;
}

.badge-card:hover .badge-icon {
    transform: scale(1.08);
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.badge-card .badge-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: currentColor;
}

.badge-card .badge-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.badge-card .badge-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.badge-card .badge-percent {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.settings-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.settings-subtab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--theme-transition);
}

.settings-subtab-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}
.jam-top-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    align-items: stretch;
}

.jam-activity-scroll-box,
.jam-participants-scroll-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.jam-activity-scroll-box::-webkit-scrollbar, 
.jam-participants-scroll-box::-webkit-scrollbar {
    width: 4px;
}

.jam-activity-scroll-box::-webkit-scrollbar-track, 
.jam-participants-scroll-box::-webkit-scrollbar-track {
    background: transparent;
}

.jam-activity-scroll-box::-webkit-scrollbar-thumb, 
.jam-participants-scroll-box::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

.jam-activity-scroll-box::-webkit-scrollbar-thumb:hover, 
.jam-participants-scroll-box::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

@media (min-width: 1025px) {
    .jam-activity-section,
    .jam-participants-section {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .jam-activity-scroll-box,
    .jam-participants-scroll-box {
        flex: 1 1 0;
        height: 0;
    }
}

.jam-info-section {
    grid-column: span 3;
}

.jam-activity-section {
    grid-column: span 2;
}

.jam-participants-section {
    grid-column: span 1;
}

@media (max-width: 1024px) {
    .jam-top-row {
        grid-template-columns: 1fr;
    }
    .jam-info-section,
    .jam-activity-section,
    .jam-participants-section {
        grid-column: span 1;
    }
}

.jam-column-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.jam-box-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jam-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 8px;
}

.jam-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.jam-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jam-pill-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: none;
    display: inline-block;
}

.jam-pill-badge.admin {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #ef4444 !important;
}

.jam-pill-badge.participant {
    background: rgba(34, 197, 94, 0.1) !important;
    border: 1px solid rgba(34, 197, 94, 0.25) !important;
    color: #22c55e !important;
}

.jam-pill-btn {
    border: 1px solid #00f2fe;
    color: #00f2fe;
    background: transparent;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.jam-pill-btn:hover {
    background: rgba(0, 242, 254, 0.1);
}

.jam-pill-btn.yt {
    border-color: #ef4444;
    color: #ef4444;
}

.jam-pill-btn.yt:hover {
    background: rgba(239, 68, 68, 0.1);
}

.jam-activity-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jam-activity-bottom {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.jam-participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--theme-transition);
}

.jam-participant-item:hover {
    border-color: var(--border-hover);
}
input[type="datetime-local"] {
    color-scheme: dark;
}

[data-theme="light"] input[type="datetime-local"] {
    color-scheme: light;
}

::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
.flatpickr-calendar {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-hover) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-stack) !important;
}

.flatpickr-months, .flatpickr-weekdays {
    background: transparent !important;
}

.flatpickr-months .flatpickr-month {
    color: var(--text-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    background: transparent !important;
}

span.flatpickr-weekday {
    background: transparent !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
}

.flatpickr-day {
    color: var(--text-primary) !important;
    border-radius: 6px !important;
    transition: background-color 0.15s, color 0.15s;
}

.flatpickr-day:hover, .flatpickr-day:focus {
    background: var(--border) !important;
    color: var(--text-primary) !important;
    border-color: transparent !important;
}

.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
    color: var(--text-secondary) !important;
    opacity: 0.3;
}

.flatpickr-day.today {
    border-color: var(--text-secondary) !important;
}

.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background: var(--text-primary) !important;
    color: var(--bg) !important;
    border-color: var(--text-primary) !important;
    font-weight: 700 !important;
}

.flatpickr-time {
    border-top: 1px solid var(--border) !important;
    background: transparent !important;
}

.flatpickr-time input {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
    background: var(--border) !important;
    color: var(--text-primary) !important;
}

.flatpickr-time .flatpickr-time-separator {
    color: var(--text-primary) !important;
}

.flatpickr-time .numInputWrapper span.arrowUp:after {
    border-bottom-color: var(--text-primary) !important;
}

.flatpickr-time .numInputWrapper span.arrowDown:after {
    border-top-color: var(--text-primary) !important;
}

.flatpickr-months .flatpickr-prev-month, 
.flatpickr-months .flatpickr-next-month {
    color: var(--text-primary) !important;
    fill: var(--text-primary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg, 
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--text-primary) !important;
}

.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after {
    border-bottom-color: var(--border) !important;
    border-top-color: var(--border) !important;
}
.profile-name-marquee-wrap {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    position: relative;
}

.profile-name-marquee-wrap.is-overflowing {
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 14px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 14px), transparent 100%);
}

.profile-name-text {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}

.profile-name-text.marquee-active {
    animation: nicknamePingPong 6s ease-in-out infinite;
}

@keyframes nicknamePingPong {
    0%, 20% {
        transform: translateX(0);
    }
    50%, 70% {
        transform: translateX(var(--marquee-offset, 0px));
    }
    90%, 100% {
        transform: translateX(0);
    }
}

.verified-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    cursor: help;
    flex-shrink: 0;
    line-height: 1;
    z-index: 15;
    margin: 0;
}

.profile-name-title .verified-badge-wrap {
    width: 32px;
    height: 32px;
}

.verified-badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
    display: block;
    position: relative;
    z-index: 2;
}

.profile-name-title .verified-badge-img {
    width: 32px;
    height: 32px;
}
.profile-name-title .verified-badge-img {
    width: 28px;
    height: 28px;
}

.meta-developer .verified-badge-img,
.dev-name .verified-badge-img,
.game-author .verified-badge-img,
.jam-participant-item .verified-badge-img,
.comment-card .verified-badge-img,
.jam-author-info .verified-badge-img {
    width: 18px;
    height: 18px;
}
.verified-badge-wrap:hover .verified-badge-img {
    transform: scale(1.18);
}

.verified-badge-wrap::after {
    content: attr(data-title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.verified-badge-wrap::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #111;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}

.verified-badge-wrap:hover::after,
.verified-badge-wrap:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.verified-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.95) 0%, rgba(139, 92, 246, 0) 75%);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    animation: verifiedParticleFly 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes verifiedParticleFly {
    0% {
        opacity: 0.95;
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translate(var(--px), var(--py)) scale(0.2);
    }
}
.verified-badge-wrap.verified-tomas:hover .verified-badge-img {
    filter: drop-shadow(0 0 8px rgba(22, 101, 52, 0.95));
}

.verified-badge-wrap.verified-tomas .verified-particle {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.95) 0%, rgba(20, 83, 45, 0) 75%);
    box-shadow: 0 0 6px #15803d;
}
.profile-name-title #profileSettingsLink {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    margin: 0;
    transition: color 0.2s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.profile-name-title #profileSettingsLink:hover {
    color: var(--text-primary);
    transform: rotate(45deg);
}

.profile-name-title #profileSettingsLink svg {
    width: 18px;
    height: 18px;
    display: block;
}
.verification-badge-promo-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    transition: var(--theme-transition);
}

.verification-badge-promo-card:hover {
    border-color: var(--border-hover);
}

.verification-layout {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.verification-card-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.criteria-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .criteria-list-grid {
        grid-template-columns: 1fr;
    }
}

.criteria-progress-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.criteria-header strong {
    font-size: 12px;
    color: var(--text-primary);
}

.criteria-bar-track {
    width: 100%;
    height: 8px;
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.criteria-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.criteria-progress-card.status-green .criteria-bar-fill {
    background: #22c55e;
}
.criteria-progress-card.status-green {
    border-color: rgba(34, 197, 94, 0.4);
}

.criteria-progress-card.status-yellow .criteria-bar-fill {
    background: #eab308;
}
.criteria-progress-card.status-yellow {
    border-color: rgba(234, 179, 8, 0.4);
}

.criteria-progress-card.status-red .criteria-bar-fill {
    background: #ef4444;
}
.criteria-progress-card.status-red {
    border-color: rgba(239, 68, 68, 0.3);
}

.verification-layout {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    padding: 0 4px;
}

.verification-card-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.verification-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.verification-main-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.verification-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.verification-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.4;
}

.verification-alert-box {
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.verification-alert-box.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.verification-alert-box.alert-pending {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308;
}

.criteria-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.criteria-progress-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 8px;
    color: var(--text-secondary);
}

.criteria-header strong {
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
}

.criteria-bar-track {
    width: 100%;
    height: 8px;
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.criteria-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.criteria-progress-card.status-green .criteria-bar-fill {
    background: #22c55e;
}
.criteria-progress-card.status-green {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.06);
}

.criteria-progress-card.status-yellow .criteria-bar-fill {
    background: #eab308;
}
.criteria-progress-card.status-yellow {
    border-color: rgba(234, 179, 8, 0.4);
}

.criteria-progress-card.status-red .criteria-bar-fill {
    background: #ef4444;
}
.criteria-progress-card.status-red {
    border-color: rgba(239, 68, 68, 0.3);
}

.tg-rules-box {
    margin-top: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tg-rules-box h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.tg-rules-box ul {
    font-size: 12px;
    color: var(--text-secondary);
    padding-left: 18px;
    line-height: 1.6;
}

.tg-rules-box a {
    color: #3b82f6;
    text-decoration: underline;
}

.verification-form-box {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-submit-verif {
    align-self: flex-start;
    padding: 12px 24px;
    font-size: 13px;
}

.public-check-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.public-check-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-check-avatar.not-found {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    font-size: 28px;
    color: #ef4444;
}

.public-check-username {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.public-check-desc {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.5;
    margin: 0;
}

.public-check-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.verif-check-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.verif-check-badge.verif-ok {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.verif-check-badge.verif-fail {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 650px) {
    .verification-card-box {
        padding: 20px 16px;
    }
    .verification-header-row {
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }
    .verification-main-icon {
        width: 36px;
        height: 36px;
    }
    .verification-title {
        font-size: 18px;
    }
    .verification-subtitle {
        font-size: 12px;
    }
    .criteria-list-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tg-rules-box {
        padding: 12px 14px;
        margin-top: 18px;
    }
    .tg-rules-box ul {
        padding-left: 16px;
        font-size: 11.5px;
    }
    .btn-submit-verif {
        width: 100%;
        text-align: center;
    }
    .public-check-actions {
        width: 100%;
        flex-direction: column;
    }
    .public-check-actions .btn {
        width: 100%;
    }
}
.jam-submission-display-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.jam-sub-main-info {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

.jam-sub-visual-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jam-sub-cover-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
    background: var(--card-bg);
}

.jam-sub-screenshots-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.jam-sub-scr-thumb {
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.jam-sub-scr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jam-sub-details-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jam-sub-title-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.jam-sub-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
}

.jam-sub-status-badge.status-reviewed {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.jam-sub-status-badge.status-pending {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308;
}

.jam-org-review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    position: relative;
    transition: var(--theme-transition);
}

.jam-org-review-card:hover {
    border-color: var(--border-hover);
}

.jam-org-visual-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jam-org-cover-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
}

.jam-org-content-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jam-org-actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 860px) {
    .jam-sub-main-info, .jam-org-review-card {
        grid-template-columns: 1fr;
    }
}
.jam-leaderboard-row {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--theme-transition);
}

.jam-leaderboard-row:hover {
    border-color: var(--border-hover);
}

.jam-leaderboard-row.rank-gold {
    border-color: rgba(234, 179, 8, 0.5);
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.08) 0%, var(--bg) 100%);
}

.jam-leaderboard-row.rank-silver {
    border-color: rgba(200, 200, 200, 0.4);
    background: linear-gradient(90deg, rgba(200, 200, 200, 0.05) 0%, var(--bg) 100%);
}

.jam-leaderboard-row.rank-bronze {
    border-color: rgba(205, 127, 50, 0.4);
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.05) 0%, var(--bg) 100%);
}

.jam-leaderboard-row.my-row {
    outline: 2px solid #3b82f6;
}

.jam-rank-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-secondary);
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.jam-rank-medal {
    font-size: 14px;
    font-weight: 800;
    width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.jam-rank-medal.gold { color: #eab308; }
.jam-rank-medal.silver { color: #d1d5db; }
.jam-rank-medal.bronze { color: #cd7f32; }

.jam-leaderboard-thumb {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.jam-leaderboard-game-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.jam-leaderboard-score {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-sticky-rank-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 720px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.3);
}

.user-sticky-rank-pill {
    background: #3b82f6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.jam-podium-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(3, 3, 3, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.jam-skip-podium-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10000;
    border: 1px solid var(--border);
}

.jam-podium-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.jam-podium-heading {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.jam-podium-pedestal-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.jam-podium-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(60px);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.jam-podium-slot.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.jam-podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    margin-bottom: 12px;
    position: relative;
}

.jam-podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--card-bg);
}

.crown-icon {
    position: absolute;
    top: -24px;
    font-size: 22px;
    animation: bounceCrown 1.5s infinite alternate ease-in-out;
}

@keyframes bounceCrown {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

.jam-podium-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jam-podium-author {
    font-size: 11px;
    color: var(--text-secondary);
}

.jam-podium-score {
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
}

.jam-podium-score.gold {
    color: #eab308;
}

.jam-podium-step {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
}

.step-first {
    height: 160px;
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.3) 0%, rgba(234, 179, 8, 0.08) 100%);
    border-color: rgba(234, 179, 8, 0.6);
    color: #eab308;
}

.step-second {
    height: 120px;
    background: linear-gradient(180deg, rgba(200, 200, 200, 0.2) 0%, rgba(200, 200, 200, 0.05) 100%);
    border-color: rgba(200, 200, 200, 0.5);
    color: #d1d5db;
}

.step-third {
    height: 90px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.2) 0%, rgba(205, 127, 50, 0.05) 100%);
    border-color: rgba(205, 127, 50, 0.5);
    color: #cd7f32;
}

@media (max-width: 600px) {
    .jam-podium-avatar { width: 44px; height: 44px; }
    .jam-podium-name { font-size: 11px; max-width: 90px; }
    .step-first { height: 110px; font-size: 11px; }
    .step-second { height: 85px; font-size: 10px; }
    .step-third { height: 65px; font-size: 9.5px; }
}
.ai-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 6px;
    cursor: help;
    color: var(--text-secondary);
    opacity: 0.6;
    z-index: 15;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.ai-badge-wrap:hover {
    color: #c084fc;
    opacity: 1;
    transform: scale(1.15);
}

.ai-badge-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.ai-badge-wrap::after {
    content: attr(data-title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-hover);
    z-index: 50;
}

.ai-badge-wrap::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #111;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 50;
}

.ai-badge-wrap:hover::after,
.ai-badge-wrap:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.help-logo-badge {
    font-size: 11px;
    text-transform: uppercase;
    color: #3b82f6;
    letter-spacing: 1px;
    margin-left: 8px;
}

.help-header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.help-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
}

.help-tab-btn.active {
    color: var(--text-primary);
    background: var(--card-bg);
    border-color: var(--border-hover);
}

.help-main-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: calc(100vh - 80px);
}

.help-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease;
    margin-bottom: 16px;
}

.help-card:hover {
    border-color: var(--border-hover);
}

.faq-accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.faq-accordion-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 14px;
}

.faq-answer p {
    margin-bottom: 8px;
}

.forum-tag-pill {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    width: fit-content;
}

.news-date-badge {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

@media (max-width: 900px) {
    .help-header-nav {
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .help-tab-btn {
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 10px;
    }
}
.help-faq-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

.help-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-faq-category-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.help-category-dot {
    color: #3b82f6;
    font-weight: 800;
}

.help-screenshot-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.help-faq-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.help-faq-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
}

.help-faq-item.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.help-faq-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.help-faq-item-sub {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.help-faq-display {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.help-faq-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.help-faq-view.active {
    opacity: 1;
    transform: translateY(0);
}

.help-faq-view-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.help-faq-view-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-faq-view-body p {
    margin: 0;
}

.help-faq-view-body code {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-primary);
}

@media (max-width: 800px) {
    .help-faq-layout {
        grid-template-columns: 1fr;
    }
}

.help-docs-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
}

.help-docs-header {
    position: sticky;
    top: 0;
    z-index: 1002;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.help-logo-badge {
    font-size: 11px;
    text-transform: uppercase;
    color: #3b82f6;
    letter-spacing: 1px;
    margin-left: 8px;
    font-weight: 700;
}

.help-docs-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: calc(100vh - 75px);
}

.help-docs-sidebar {
    width: 320px;
    min-width: 320px;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    height: calc(100vh - 75px);
    position: sticky;
    top: 75px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    z-index: 10;
}

.help-docs-sidebar::-webkit-scrollbar {
    width: 4px;
}
.help-docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.help-sidebar-inner {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.help-group-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s, color 0.2s;
}

.help-group-title:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.help-group-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-group-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.help-group.collapsed .help-group-arrow {
    transform: rotate(-90deg);
}

.help-group-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.help-group.collapsed .help-group-items {
    display: none;
}

.help-dot {
    color: #3b82f6;
    font-size: 18px;
    line-height: 1;
}

.help-faq-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.help-faq-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(2px);
}

.help-faq-item.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.help-faq-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.help-faq-item-sub {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.35;
}

.help-docs-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 32px;
    min-width: 0;
}

.help-docs-content-container {
    width: 100%;
    max-width: 760px;
}

.help-docs-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-lead-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.help-faq-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.help-faq-view.active {
    opacity: 1;
    transform: translateY(0);
}

.help-faq-view h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 28px 0 14px 0;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

.help-faq-view h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 10px 0;
    letter-spacing: -0.2px;
}

.help-doc-p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 6px 0;
}

.help-faq-view strong {
    color: var(--text-primary);
    font-weight: 600;
}

.help-faq-view code {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 12.5px;
    color: var(--text-primary);
}

[data-theme="light"] .help-faq-view code {
    background: rgba(0, 0, 0, 0.04);
}

.help-faq-view ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.help-faq-view ul li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.help-faq-view ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .help-faq-view ul li::before {
    background: #030303;
    box-shadow: none;
}

[data-theme="blue"] .help-faq-view ul li::before {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

.help-step-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--theme-transition);
}

.help-step-card:hover {
    border-color: var(--border-hover);
    border-left-color: #3b82f6;
}

.help-step-number {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #3b82f6;
    width: fit-content;
}

.help-step-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.65;
}

.help-screenshot-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.help-screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.help-screenshot-placeholder svg {
    opacity: 0.6;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
.help-drawer-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    margin-right: 8px;
}

.help-drawer-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

@media (max-width: 900px) {
    .help-drawer-toggle {
        display: flex;
    }
    .help-docs-wrapper {
        flex-direction: column;
    }
    .help-docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        min-width: auto;
        height: 100vh;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        border-right: 1px solid var(--border);
    }
    .help-docs-sidebar.active {
        transform: translateX(0);
    }
    .help-drawer-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(4px);
        z-index: 1999;
    }
    .help-drawer-overlay.active {
        display: block;
    }
    .help-docs-main {
        padding: 24px 16px;
    }
}
.game-analytics-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--theme-transition);
}

.game-analytics-box:hover {
    border-color: var(--border-hover);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.analytics-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.analytics-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.analytics-metric-pills {
    display: flex;
    gap: 6px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.analytics-pill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analytics-pill:hover {
    color: var(--text-primary);
}

.analytics-pill.active {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
}

.analytics-chart-container {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: visible;
}

.analytics-svg-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.analytics-chart-labels {
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.analytics-chart-label-item {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.analytics-tooltip {
    position: absolute;
    display: none;
    pointer-events: none;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid var(--border-hover);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -120%);
    z-index: 10;
    backdrop-filter: blur(8px);
}

.analytics-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    position: relative;
    z-index: 2;
}

.analytics-stat-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.analytics-summary-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-summary-value-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.analytics-total-count {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.analytics-growth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .game-analytics-box {
        padding: 20px 16px;
    }
    .analytics-chart-container {
        height: 180px;
        padding: 15px 10px 25px 10px;
    }
    .analytics-chart-labels {
        left: 10px;
        right: 10px;
    }
    .analytics-chart-label-item:nth-child(even) {
        display: none;
    }
}
.analytics-controls-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.analytics-period-pills {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.analytics-period-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analytics-period-btn:hover {
    color: var(--text-primary);
}

.analytics-period-btn.active {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .analytics-controls-wrap {
        width: 100%;
        justify-content: space-between;
    }
}
.game-rating-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 36px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.game-rating-section:hover {
    border-color: var(--border-hover);
}

.rating-overview-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
    min-width: 140px;
}

.rating-big-value {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.rating-stars-row {
    display: flex;
    gap: 4px;
    font-size: 16px;
    color: #00875a;
    line-height: 1;
}

.rating-stars-row .star-empty {
    color: var(--border-hover);
}

.rating-count-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

.rating-bars-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    width: 10px;
    text-align: center;
}

.rating-bar-track {
    flex: 1;
    height: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.rating-bar-fill {
    height: 100%;
    background: #00875a;
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="blue"] .rating-stars-row {
    color: #3b82f6;
}

[data-theme="blue"] .rating-bar-fill {
    background: #3b82f6;
}

.comment-rating-picker-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    flex-wrap: wrap;
}

.rating-picker-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.star-rating-select {
    display: inline-flex;
    gap: 4px;
}

.star-btn {
    font-size: 20px;
    color: var(--border-hover);
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.star-btn:hover,
.star-btn.hovered,
.star-btn.active {
    color: #00875a;
}

[data-theme="blue"] .star-btn:hover,
[data-theme="blue"] .star-btn.hovered,
[data-theme="blue"] .star-btn.active {
    color: #3b82f6;
}

.star-btn:hover {
    transform: scale(1.25);
}

.star-rating-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

.comment-stars-display {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
    user-select: none;
}

.comment-stars-display .star-filled {
    color: #00875a;
}

.comment-stars-display .star-muted {
    color: var(--border-hover);
}

[data-theme="blue"] .comment-stars-display .star-filled {
    color: #3b82f6;
}

@media (max-width: 650px) {
    .game-rating-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }
    .rating-overview-left {
        align-items: center;
        text-align: center;
    }
}
.badge-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    animation: badgeParticleFly 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.equipped-badge-tag.rarity-common .badge-particle {
    background: radial-gradient(circle, #93c5fd 0%, #3b82f6 100%);
    box-shadow: 0 0 6px #3b82f6;
}

.equipped-badge-tag.rarity-rare .badge-particle {
    background: radial-gradient(circle, #86efac 0%, #22c55e 100%);
    box-shadow: 0 0 6px #22c55e;
}

.equipped-badge-tag.rarity-super_rare .badge-particle {
    background: radial-gradient(circle, #fca5a5 0%, #ef4444 100%);
    box-shadow: 0 0 6px #ef4444;
}

.equipped-badge-tag.rarity-legendary .badge-particle {
    background: radial-gradient(circle, #fde047 0%, #eab308 100%);
    box-shadow: 0 0 6px #eab308;
}

@keyframes badgeParticleFly {
    0% {
        opacity: 0.95;
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translate(var(--px), var(--py)) scale(0.2);
    }
}
.genre-categories-section {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.genre-categories-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 0 16px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.genre-categories-track::-webkit-scrollbar {
    display: none;
}

.genre-category-card {
    min-width: 250px;
    width: 250px;
    height: 125px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s, box-shadow 0.3s;
}

.genre-category-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.genre-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    z-index: 1;
    background: var(--border);
}

.genre-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85) saturate(1.15);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.genre-category-card:hover .genre-card-bg img {
    filter: brightness(1) saturate(1.3);
    transform: scale(1.05);
}

.genre-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    z-index: 2;
}

.genre-card-badge {
    position: relative;
    z-index: 3;
    background: #ffffff;
    color: #030303;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
    max-width: 85%;
    line-height: 1.25;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.genre-category-card:hover .genre-card-badge {
    transform: scale(1.04);
}

@media (max-width: 600px) {
    .genre-category-card {
        min-width: 180px;
        width: 180px;
        height: 100px;
    }
    .genre-card-badge {
        font-size: 9.5px;
        padding: 6px 10px;
    }
}

.description-box h1, .markdown-preview-box h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 16px 0 10px 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.description-box h2, .markdown-preview-box h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 14px 0 8px 0;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.description-box h3, .markdown-preview-box h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 12px 0 6px 0;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.description-box p, .markdown-preview-box p {
    margin: 12px 0;
    line-height: 1.6;
}

.md-empty-line {
    height: 16px;
}

.md-hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 22px 0;
}

.description-box ul, .markdown-preview-box ul {
    margin: 6px 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.description-box li, .markdown-preview-box li {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.5;
}

.md-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
}

.table-editor-scroll-box {
    max-height: 260px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    background: var(--bg);
}

.table-editor-grid {
    display: grid;
    gap: 6px;
    min-width: max-content;
}

.table-cell-input {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 130px;
}

.table-cell-input.header-cell {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.md-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.md-table th {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 700;
    white-space: nowrap;
}

.md-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-secondary);
}

.md-table th:last-child,
.md-table td:last-child {
    border-right: none;
}

.md-table tr:last-child td {
    border-bottom: none;
}

.md-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}
.badge-ad {
    background: #ffffff !important;
    color: #030303 !important;
    font-weight: 800 !important;
    border: none !important;
    letter-spacing: 0.5px !important;
}

[data-theme="light"] .badge-ad {
    background: #030303 !important;
    color: #ffffff !important;
}

.promo-ad-card {
    border-color: rgba(59, 130, 246, 0.35);
}

.promo-ad-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.promo-ad-card .badge-ad {
    background: #ffffff;
    color: #030303;
    font-weight: 800;
    letter-spacing: 0.5px;
}

[data-theme="light"] .promo-ad-card .badge-ad {
    background: #030303;
    color: #ffffff;
}
.library-prototype-layout {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 24px;
    align-items: start;
    min-height: calc(100vh - 170px);
}

.library-main-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.library-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin: 0;
}

.library-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.lib-proto-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
}

.lib-proto-card-cover {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #0b0f19;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lib-proto-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lib-proto-card:hover .lib-proto-card-cover {
    border-color: rgba(59, 130, 246, 0.5);
}

.lib-proto-card.selected .lib-proto-card-cover {
    border-color: #3b82f6;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.lib-proto-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-detail-dock {
    background: rgba(7, 11, 20, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    display: grid;
    grid-template-columns: 220px 240px 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    bottom: 20px;
    z-index: 50;
}

.detail-launch-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.detail-game-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.detail-actions-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-launch-big {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    width: 100%;
}

.btn-launch-big:hover {
    background: #1d4ed8;
}

.btn-goto-game {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
    display: inline-block;
    width: 100%;
}

.btn-goto-game:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.detail-media-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-screen-preview {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #02040a;
    overflow: hidden;
}

.detail-screen-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease;
}

.detail-thumbs-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.detail-thumb-item {
    aspect-ratio: 16/10;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #02040a;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
}

.detail-thumb-item:hover, .detail-thumb-item.active {
    opacity: 1;
    border-color: #3b82f6;
}

.detail-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-meta-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-rating-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rating-val-wrap {
    display: flex;
    flex-direction: column;
}

.rating-lbl {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.rating-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.rating-bars-mini {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.rating-bar-line {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.rating-bar-line span {
    display: block;
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.detail-desc-text {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-height: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.detail-author-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 1px solid var(--border);
    padding-left: 20px;
}

.detail-author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    width: fit-content;
}

.detail-author-link:hover .detail-author-name {
    color: #3b82f6;
}

.detail-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.detail-author-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.2s;
}

.detail-author-bio {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.library-sidebar-panel {
    background: #070b14;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-main-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 6px 0;
}

.sidebar-sec-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 14px 0;
}

.sidebar-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-items-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-items-list::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-items-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.sidebar-item-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #0b0f19;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s, background-color 0.2s;
}

.sidebar-item-card:hover {
    border-color: var(--border-hover);
}

.sidebar-item-card.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.sidebar-item-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #02040a;
}

.sidebar-item-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-empty {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 6px 0;
}

@media (max-width: 1100px) {
    .library-prototype-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .library-detail-dock {
        grid-template-columns: 200px 220px 1fr;
    }
    .detail-author-col {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 14px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .main-content:has(.library-prototype-layout) {
        padding: 16px !important;
    }
    .library-cards-row {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    .lib-proto-card-cover {
        height: 170px;
        border-radius: 10px;
    }
    .lib-proto-card-title {
        font-size: 11.5px;
    }
    .library-detail-dock {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    .detail-author-col {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .sidebar-items-list {
        max-height: 240px;
    }
}

@media (max-width: 480px) {
    .main-content:has(.library-prototype-layout) {
        padding: 12px 10px !important;
    }
    .library-title {
        font-size: 22px;
    }
    .library-cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .lib-proto-card-cover {
        height: 150px;
    }
    .detail-game-title {
        font-size: 17px;
    }
    .btn-launch-big, .btn-goto-game {
        font-size: 12px;
        padding: 10px 12px;
    }
    .rating-num {
        font-size: 22px;
    }
}
.skeleton-lib-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-lib-cover {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.skeleton-lib-title {
    width: 70%;
    height: 14px;
    background: var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #0b0f19;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.skeleton-sidebar-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--border);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.skeleton-sidebar-thumb.circle {
    border-radius: 50%;
}

.skeleton-sidebar-text {
    width: 60%;
    height: 12px;
    background: var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-lib-cover::after,
.skeleton-lib-title::after,
.skeleton-sidebar-thumb::after,
.skeleton-sidebar-text::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.5s infinite;
}

@media (max-width: 768px) {
    .skeleton-lib-cover {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .skeleton-lib-cover {
        height: 150px;
    }
}
.admin-doc-edit-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.admin-doc-edit-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--border);
    transform: scale(1.05);
}

.doc-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 8px;
}

.doc-tool-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.doc-tool-btn:hover {
    color: var(--text-primary);
    background: var(--card-bg);
    border-color: var(--border-hover);
}.staff-chat-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 520px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.staff-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.staff-chat-messages-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.staff-chat-messages-wrap::-webkit-scrollbar {
    width: 4px;
}

.staff-chat-messages-wrap::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.staff-chat-msg-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
    animation: chatMsgIn 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    transition: var(--theme-transition);
}

.staff-chat-msg-item:hover {
    border-color: var(--border-hover);
}

.staff-chat-msg-item.my-msg {
    border-left: 2px solid #3b82f6;
}

@keyframes chatMsgIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staff-chat-input-bar {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    gap: 10px;
    align-items: center;
}

.staff-chat-input-field {
    flex: 1;
    font-size: 13px;
    padding: 10px 14px;
    background: var(--bg);
}
.library-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.library-mobile-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.library-mobile-tabs {
    display: flex;
    gap: 6px;
    background: #080d1a;
    border: 1px solid #142244;
    border-radius: 8px;
    padding: 4px;
}

.lib-mob-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lib-mob-tab.active {
    background: #0d172e;
    color: #ffffff;
    border-color: #2a4688;
}

.library-mobile-list {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.lib-mobile-card {
    background: #080d1a;
    border: 1px solid #142244;
    border-radius: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: 140px 1fr 180px;
    gap: 16px;
    align-items: stretch;
}

.lib-mob-cover-col {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #03060f;
    border: 1px solid #142244;
    min-height: 180px;
}

.lib-mob-cover-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lib-mob-info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.lib-mob-title {
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.lib-mob-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
}

.lib-mob-author img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.lib-mob-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.lib-mob-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.lib-mob-btn-launch {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.lib-mob-btn-page {
    background: #0d172e;
    color: #ffffff;
    border: 1px solid #2a4688;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.lib-mob-rating-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.lib-mob-screen-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lib-mob-screen-main {
    width: 100%;
    aspect-ratio: 16/9;
    background: #03060f;
    border: 1px solid #142244;
    border-radius: 8px;
    overflow: hidden;
}

.lib-mob-screen-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lib-mob-screen-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.lib-mob-thumb-box {
    aspect-ratio: 16/9;
    border-radius: 4px;
    border: 1px solid #142244;
    background: #03060f;
    overflow: hidden;
}

.lib-mob-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lib-mob-rating-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.lib-mob-rating-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.lib-mob-rating-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

@media (max-width: 900px) {
    .library-prototype-layout {
        display: none !important;
    }
    .library-mobile-header {
        display: flex;
    }
    .library-mobile-list {
        display: flex;
    }
    .main-content:has(.library-mobile-list) {
        padding: 16px !important;
    }
}

@media (max-width: 600px) {
    .lib-mobile-card {
        grid-template-columns: 100px 1fr 120px;
        padding: 12px;
        gap: 10px;
    }
    .lib-mob-title {
        font-size: 14px;
    }
    .lib-mob-btn-launch, .lib-mob-btn-page {
        font-size: 10.5px;
        padding: 6px 8px;
    }
    .lib-mob-rating-value {
        font-size: 22px;
    }
}

@media (max-width: 440px) {
    .lib-mobile-card {
        grid-template-columns: 90px 1fr;
    }
    .lib-mob-rating-col {
        grid-column: 1 / -1;
        flex-direction: row;
        border-top: 1px solid #142244;
        padding-top: 10px;
    }
    .lib-mob-screen-wrap {
        width: 140px;
    }
}
.game-updates-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.game-updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.game-updates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-update-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.game-update-item:hover {
    border-color: var(--border-hover);
}

.game-update-trigger {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.game-update-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.game-update-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.game-update-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.game-update-arrow {
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.game-update-item.open .game-update-arrow {
    transform: rotate(180deg);
}

.game-update-content {
    display: none;
    padding: 0 18px 16px 18px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.game-update-item.open .game-update-content {
    display: block;
}

.game-update-body {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.6;
}

.btn-delete-update {
    background: transparent;
    border: 1px solid transparent;
    color: #ef4444;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-delete-update:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}
.unlisted-checkbox-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.feature-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 4px;
    line-height: 1;
    margin-right: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: seferNewPulse 2.5s infinite ease-in-out;
}

@keyframes seferNewPulse {
    0% {
        border-color: var(--border);
        color: var(--text-secondary);
    }
    50% {
        border-color: var(--text-primary);
        color: var(--text-primary);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
    }
    100% {
        border-color: var(--border);
        color: var(--text-secondary);
    }
}

.unlisted-hint-text {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
    display: block;
}

.stat-unlisted-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: var(--theme-transition);
    user-select: none;
}

.stat-unlisted-indicator svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.stat-unlisted-indicator:hover {
    color: var(--text-primary);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.02);
}
.sefer-achievement-toast {
    position: fixed;
    bottom: 0;
    right: 0;
    left: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 200000;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    min-width: 280px;
    max-width: 360px;
}

.sefer-achievement-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.ach-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.ach-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ach-icon-box svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.ach-info-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ach-badge-label {
    font-size: 10px;
    font-weight: 700;
    color: #eab308;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ach-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.ach-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}
.profile-social-btn.social-zoro {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
    border-color: rgba(147, 100, 250, 0.4);
    color: var(--text-primary);
}
.profile-social-btn.social-zoro:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(239, 68, 68, 0.25) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.25), 0 0 14px rgba(239, 68, 68, 0.25);
}
.game-achievements-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.game-achievements-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.game-achievements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.game-achievements-list::-webkit-scrollbar {
    width: 4px;
}

.game-achievements-list::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

.game-ach-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: default;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.game-ach-icon {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--text-secondary);
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.game-ach-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.game-ach-icon svg {
    width: 24px;
    height: 24px;
    transition: color 0.25s ease;
}

.game-ach-content {
    flex: 1;
    min-width: 0;
    height: 52px;
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    overflow: hidden;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.game-ach-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.14);
    border-right: 1px solid rgba(59, 130, 246, 0.3);
    pointer-events: none;
    z-index: 1;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="light"] .game-ach-bar-fill {
    background: rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="blue"] .game-ach-bar-fill {
    background: rgba(59, 130, 246, 0.2);
    border-right: 1px solid rgba(59, 130, 246, 0.4);
}

.game-ach-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-right: 12px;
}

.game-ach-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.game-ach-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.game-ach-percent {
    position: relative;
    z-index: 2;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

[data-theme="dark"] .game-ach-percent {
    color: #38bdf8;
}

[data-theme="blue"] .game-ach-percent {
    color: #60a5fa;
}

[data-theme="light"] .game-ach-percent {
    color: var(--text-primary);
}

.game-ach-row.locked {
    opacity: 0.45;
    filter: grayscale(0.85) brightness(0.8);
}

.game-ach-row.locked .game-ach-bar-fill {
    display: none;
}

.game-ach-row.unlocked .game-ach-icon {
    border-color: rgba(59, 130, 246, 0.35);
    color: #60a5fa;
}

.game-ach-row.unlocked .game-ach-content {
    border-color: rgba(59, 130, 246, 0.25);
}

.game-ach-row:hover {
    opacity: 1;
    filter: none;
}

.game-ach-row:hover .game-ach-content {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
}

.game-ach-row:hover .game-ach-icon {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.game-ach-row:hover .game-ach-icon img {
    transform: scale(1.04);
}

.game-ach-row:hover .game-ach-desc {
    color: var(--text-primary);
}

.game-ach-row.unlocked:hover .game-ach-content {
    border-color: rgba(59, 130, 246, 0.5);
}

.game-ach-row.unlocked:hover .game-ach-icon {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}
.help-faq-view ol {
    list-style: none;
    counter-reset: doc-step-counter;
    padding: 0;
    margin: 4px 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-faq-view ol > li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    counter-increment: doc-step-counter;
}

.help-faq-view ol > li::before {
    content: counter(doc-step-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--text-primary);
}

.help-faq-view ul > li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.help-faq-view ul > li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

.help-faq-view .help-doc-sublist {
    margin: 6px 0 2px 8px;
    padding-left: 8px;
    gap: 6px;
}

.help-faq-view .help-doc-sublist > li {
    counter-increment: none;
}

.help-callout-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-primary);
}

.help-callout-box.important {
    border-color: rgba(234, 179, 8, 0.35);
    border-left: 3px solid #eab308;
    background: rgba(234, 179, 8, 0.06);
}
.help-tab-btn.disabled-tab {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
    user-select: none;
}
.game-ach-right-meta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ach-holders-stack {
    display: inline-flex;
    align-items: center;
    position: relative;
    height: 22px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ach-holder-link {
    display: inline-flex;
    text-decoration: none;
    line-height: 1;
}

.ach-holder-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    background: var(--card-bg);
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: -7px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.ach-holder-link:first-child .ach-holder-avatar {
    margin-left: 0;
}

.ach-holder-avatar:hover {
    transform: scale(1.22) translateY(-1px);
    z-index: 5;
}
.settings-subtab-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}
.user-playing-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1;
}

.user-playing-status-wrap::before {
    content: "•";
    color: var(--border-hover);
    font-size: 14px;
    line-height: 1;
    margin-right: 2px;
}

.user-playing-game-link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s;
}

.user-playing-game-link:hover {
    opacity: 0.8;
}
.news-portal-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.news-featured-hero-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.news-featured-hero-wrap.layout-multi {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
}

.news-featured-hero-wrap.layout-single {
    display: block;
}

.news-hero-side-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.news-hero-main-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: #ffffff;
    box-shadow: var(--shadow-hover);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.news-hero-main-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.news-hero-main-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    z-index: 1;
}

.news-hero-main-card:hover .news-hero-main-bg {
    transform: scale(1.03);
}

.news-hero-main-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(3, 3, 3, 0.95) 88%);
    z-index: 2;
    pointer-events: none;
}

.news-hero-main-content {
    position: relative;
    z-index: 3;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-hero-side-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    flex: 1;
    display: grid;
    grid-template-columns: 160px 1fr;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.news-hero-side-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.news-hero-side-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: var(--preview-bg);
    overflow: hidden;
}

.news-hero-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-hero-side-card:hover .news-hero-side-thumb img {
    transform: scale(1.04);
}

.news-hero-side-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.news-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.news-card-cover {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: var(--preview-bg);
}

.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-cover img {
    transform: scale(1.04);
}

.news-card-category-tag {
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.news-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    justify-content: space-between;
}

.news-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.news-article-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

.news-back-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    border: 1px solid var(--border);
}

.news-article-hero {
    display: none !important;
}

.news-article-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-meta-item svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.news-author-link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.news-author-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.news-article-meta .badge {
    position: static !important;
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
}

.news-article-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    margin: 4px 0 0 0;
    line-height: 1.25;
}

.news-article-content {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
}

.news-article-content p,
.news-article-content .help-doc-p {
    color: var(--text-primary) !important;
    opacity: 0.88;
    font-size: 15px;
    line-height: 1.75;
    margin: 12px 0;
}

.news-article-content strong,
.news-article-content h1,
.news-article-content h2,
.news-article-content h3 {
    color: var(--text-primary) !important;
    opacity: 1;
    font-weight: 700;
}

.news-article-content ul {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-article-content ul li {
    position: relative;
    padding-left: 18px;
    color: var(--text-primary) !important;
    opacity: 0.88;
    font-size: 15px;
    line-height: 1.65;
}

[data-theme="light"] .news-article-content p,
[data-theme="light"] .news-article-content ul li {
    color: #1e293b !important;
    opacity: 1;
}

[data-theme="light"] .news-article-title,
[data-theme="light"] .news-article-content strong {
    color: #030303 !important;
}

.news-article-content ul li::before {
    content: "•";
    position: absolute;
    left: 2px;
    top: 0;
    color: #3b82f6;
    font-size: 18px;
    line-height: 1.3;
}

.news-article-content a {
    color: #38bdf8 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.news-article-content a:hover {
    color: #7dd3fc !important;
    border-bottom-color: #38bdf8;
}

.news-inline-image-box {
    width: 100%;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.news-inline-image-box img,
.news-article-content img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.news-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

@media (max-width: 960px) {
    .news-featured-hero-wrap.layout-multi {
        grid-template-columns: 1fr;
    }
    .news-hero-side-card {
        grid-template-columns: 130px 1fr;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-hero-side-card {
        grid-template-columns: 1fr;
    }
    .news-hero-side-thumb {
        aspect-ratio: 16/9;
        min-height: auto;
    }
    .news-article-title {
        font-size: 20px;
    }
    .news-hero-main-content {
        padding: 16px;
    }
}
.game-leaderboard-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.game-leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.game-leaderboard-my-rank {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.game-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.game-leaderboard-list::-webkit-scrollbar {
    width: 4px;
}

.game-leaderboard-list::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

.game-lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.game-lb-row:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
}

.game-lb-row.me {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.04);
}

.game-lb-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.game-lb-rank {
    width: 24px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    text-align: center;
    flex-shrink: 0;
}

.game-lb-rank.gold { color: #eab308; }
.game-lb-rank.silver { color: #d1d5db; }
.game-lb-rank.bronze { color: #cd7f32; }

.game-lb-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--card-bg);
    border: 1px solid var(--border);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.game-lb-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-lb-score {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.3px;
    flex-shrink: 0;
}
.game-hub-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.game-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.game-hub-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-hub-tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.game-hub-tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.game-hub-tab-btn.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.game-hub-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--border);
    color: var(--text-primary);
    font-weight: 800;
}

.game-hub-tab-btn.active .game-hub-badge {
    background: var(--bg);
    color: var(--text-primary);
}

.game-hub-panel {
    display: none;
}

.game-hub-panel.active {
    display: block;
}

.game-lb-avatar-link {
    display: inline-flex;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.game-lb-avatar-link:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

.game-lb-name-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.game-lb-name-link:hover {
    text-decoration: underline;
}
.mod-info-trigger-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    vertical-align: middle;
    line-height: 1;
}

.mod-info-icon-btn {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mod-info-icon-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mod-info-trigger-wrap:hover .mod-info-icon-btn {
    opacity: 1;
    transform: scale(1.1);
}

.mod-popover-card {
    position: absolute;
    bottom: calc(100% + 10px);
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--card-bg);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    padding: 14px 16px;
    width: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.mod-popover-card::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.mod-info-trigger-wrap:hover .mod-popover-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mod-popover-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mod-popover-status {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.mod-popover-status.status-working {
    color: #22c55e;
}

.mod-popover-status.status-off {
    color: #ef4444;
}

.mod-popover-status.status-break {
    color: #eab308;
}

.mod-popover-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.mod-popover-label {
    font-size: 10.5px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.mod-popover-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.mod-popover-big-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.settings-mod-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}

.settings-mod-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.settings-mod-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.settings-mod-stats-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}

.settings-mod-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-mod-stat-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.settings-mod-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}
.logo-transforming {
    opacity: 0;
    transform: scale(0.92);
}
.badge-exe-fps {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.meta-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.meta-title-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.meta-tags-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}

.game-score-gauge-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 6;
}

.score-circle-fill {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 1, 0.5, 1), stroke 0.4s ease;
}

.score-center-info {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

.score-value-text {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.score-label-text {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-top: 3px;
}
.doc-code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 14px 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.doc-code-block:hover {
    border-color: var(--border-hover);
}

.doc-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .doc-code-header {
    background: rgba(0, 0, 0, 0.02);
}

.doc-code-lang {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.doc-code-copy-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.doc-code-copy-btn:hover {
    color: var(--text-primary);
    background: var(--card-bg);
    border-color: var(--border);
}

.doc-code-copy-btn.copied {
    color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    background: rgba(34, 197, 94, 0.08) !important;
}

.doc-code-block pre {
    margin: 0;
    padding: 14px 16px;
    overflow-x: auto;
    background: transparent;
}

.doc-code-block code {
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.code-token-keyword {
    color: #60a5fa;
    font-weight: 600;
}

.code-token-string {
    color: #34d399;
}

.code-token-comment {
    color: #64748b;
    font-style: italic;
}

.code-token-number {
    color: #fbbf24;
}

[data-theme="light"] .code-token-keyword {
    color: #2563eb;
}

[data-theme="light"] .code-token-string {
    color: #059669;
}

[data-theme="light"] .code-token-comment {
    color: #94a3b8;
}

[data-theme="light"] .code-token-number {
    color: #d97706;
}
.comment-highlight-target {
    animation: commentGlowFade 2.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes commentGlowFade {
    0% {
        border-color: #38bdf8 !important;
        box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
        background-color: rgba(56, 189, 248, 0.06);
    }
    60% {
        border-color: rgba(56, 189, 248, 0.6) !important;
        box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
        background-color: rgba(56, 189, 248, 0.02);
    }
    100% {
        border-color: var(--border) !important;
        box-shadow: none;
        background-color: var(--card-bg);
    }
}

@keyframes commentGlowFade {
    0% {
        border-color: #0284c7 !important;
        box-shadow: 0 0 18px rgba(2, 132, 199, 0.35);
        background-color: rgba(2, 132, 199, 0.05);
    }
    100% {
        border-color: var(--border) !important;
        box-shadow: none;
        background-color: var(--card-bg);
    }
}
/* ТОП ДНЯ И ПОДИУМ КАТАЛОГА */
.games-daily-showcase {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px 20px 24px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
    /* Reserve space for the async-loaded podium so it doesn't
       pop from 0 height to full height (avoids large CLS). */
    min-height: 358px;
}

@media (max-width: 600px) {
    .games-daily-showcase { min-height: 268px; }
}

.games-daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.games-daily-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.games-daily-controls-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.podium-period-pills {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.podium-period-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.podium-period-btn:hover {
    color: var(--text-primary);
}

.podium-period-btn.active {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border);
}

.games-podium-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    max-width: 820px;
    margin: 0 auto 16px auto;
    width: 100%;
    /* Matches the height of the tallest (1st place) column once
       populated, so filling this container in JS causes no reflow. */
    min-height: 286px;
}

@media (max-width: 600px) {
    .games-podium-wrap { min-height: 196px; }
}

.games-podium-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    opacity: 0;
    transform: translateY(45px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.games-podium-col.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.games-podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.25s ease;
}

.games-podium-card:hover {
    transform: translateY(-4px);
}

.games-podium-thumb-box {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px solid var(--border-hover);
    overflow: hidden;
    background: var(--preview-bg);
}

.games-podium-card.first .games-podium-thumb-box {
    width: 88px;
    height: 88px;
    border-color: rgba(234, 179, 8, 0.7);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.25);
}

.games-podium-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.games-podium-crown {
    position: absolute;
    top: -18px;
    font-size: 20px;
    z-index: 5;
    animation: bounceCrown 1.8s infinite alternate ease-in-out;
}

.games-podium-name {
    font-size: 14px;
    font-weight: 700;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.games-podium-author {
    font-size: 11px;
    color: var(--text-secondary);
}

.games-podium-score {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
}

.games-podium-score.gold {
    color: #eab308;
}

.games-podium-step {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
}

.games-podium-step.step-1 {
    height: 120px;
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.04) 100%);
    border-color: rgba(234, 179, 8, 0.5);
    color: #eab308;
}

.games-podium-step.step-2 {
    height: 90px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    color: #d1d5db;
}

.games-podium-step.step-3 {
    height: 65px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.02) 100%);
    border-color: rgba(205, 127, 50, 0.35);
    color: #cd7f32;
}

.discovery-indie-badge {
    display: none !important;
}

@media (max-width: 600px) {
    .games-podium-wrap { gap: 8px; }
    .games-podium-card.first .games-podium-thumb-box { width: 64px; height: 64px; }
    .games-podium-thumb-box { width: 50px; height: 50px; }
    .games-podium-name { font-size: 11px; max-width: 90px; }
    .games-podium-step.step-1 { height: 80px; font-size: 11px; }
    .games-podium-step.step-2 { height: 60px; font-size: 10px; }
    .games-podium-step.step-3 { height: 45px; font-size: 9px; }
}
.games-podium-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 2px;
}

.games-podium-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-secondary);
}

.games-podium-stats.gold span {
    color: #eab308;
}

.games-podium-stats svg {
    flex-shrink: 0;
}
.games-podium-stats {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 2px;
}

.games-podium-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-secondary);
}

.games-podium-stats.gold span {
    color: #eab308;
}

.games-podium-stats svg {
    flex-shrink: 0;
}
.profile-last-seen-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-separator-dot {
    color: var(--border-hover);
    font-size: 12px;
    line-height: 1;
}
.badge-card-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
}

.badge-card .btn {
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    height: auto;
    letter-spacing: normal;
}

.badge-locked-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    padding: 8px 0;
    user-select: none;
}

.badge-card .btn-primary {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: #ffffff;
}

.badge-card .btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.badge-card .btn-secondary.btn-unequip {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: transparent;
}

.badge-card .btn-secondary.btn-unequip:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.badge-locked-text {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    padding: 8px 0;
    user-select: none;
}
.dev-name .equipped-badge-tag,
.comment-card .equipped-badge-tag {
    width: 18px;
    height: 18px;
}

.dev-name .equipped-badge-tag svg,
.comment-card .equipped-badge-tag svg {
    width: 13px;
    height: 13px;
}
.card-platform-badge {
    position: absolute;
    right: 14px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    opacity: 0.65;
    transform: scale(1);
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.card-platform-badge svg {
    width: 16px;
    height: 16px;
    display: block;
}

.game-card:hover .card-platform-badge {
    opacity: 0.95;
    color: var(--text-primary);
}

.game-card:has(.card-action):hover .card-platform-badge {
    opacity: 0;
    transform: scale(0.8);
}

.game-tags {
    padding-right: 24px;
}