/* ============================================ */
/* CSS VARIABLES (Design System) */
/* ============================================ */
:root {
    /* Colors - Gaming Style */
    --primary: #ff006e;
    --primary-dark: #d90157;
    --secondary: #08f7fe;
    --accent: #00f0ff;
    --success: #39ff14;
    --warning: #ffb700;
    --danger: #ff4757;
    --purple: #9d4edd;
    --orange: #ff8c00;
    --cyan: #00e5ff;
    --lime: #00ff88;
    
    --bg-dark: #0a0e27;
    --bg-darker: #050812;
    --bg-light: #1a1f3a;
    --bg-white: #161d2f;
    --text-light: #e0f7ff;
    --text-dark: #ffffff;
    --text-gray: #a0d4ff;
    --border-light: #2a3f5f;
    --border-neon: rgba(0, 245, 255, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-lg: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Extra fallback: apply stacking earlier (for viewports >=1100px) to cover environments where 1280px media query doesn't trigger */
@media (min-width: 1100px) {
    .game-head-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    /* Make meta a grid so rating and badge occupy their own rows reliably */
    .game-head-info .game-meta {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        gap: 0.5rem !important;
        width: 100% !important;
        align-items: start !important;
    }

    .game-head-info .game-meta > .game-rating {
        grid-row: 1 !important;
        grid-column: 1 !important;
        justify-self: start !important;
        width: 100% !important;
        display: block !important;
    }

    .game-head-info .game-meta > .game-badge {
        grid-row: 2 !important;
        grid-column: 1 !important;
        justify-self: start !important;
        display: inline-block !important;
        width: auto !important;
        margin-top: 0.25rem !important;
    }

    /* Ensure name takes full width above */
    .game-head-info .game-name {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Dark Theme (Gaming Default) */
body.dark-mode {
    --bg-white: #050812;
    --bg-dark: #0a0e27;
    --bg-light: #1a1f3a;
    --text-dark: #f0f7ff;
    --text-gray: #a0d4ff;
    --border-light: #2a3f5f;
}

/* ============================================ */
/* RESET & BASE STYLES */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    background: linear-gradient(135deg, #050812 0%, #0a0e27 50%, #0f1f3a 100%);
    background-attachment: fixed;
    transition: var(--transition);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 245, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================ */
/* TYPOGRAPHY */
/* ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(0, 245, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.btn-reset {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--border-light);
}

.btn-reset:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

/* ============================================ */
/* 1. HEADER (STICKY) */
/* ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.95) 0%, rgba(5, 8, 18, 0.95) 100%);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary)) 1;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
}

.logo i {
    color: var(--primary);
    font-size: 1.75rem;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--lime));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
    padding: var(--spacing-xs);
}

.theme-toggle:hover {
    color: var(--lime);
    transform: rotate(20deg);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.header-content {
    gap: var(--spacing-lg);
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 0.35rem;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--secondary);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    left: 50%;
    transform-origin: center;
}

.nav-toggle span:nth-child(1) {
    transform: translate(-50%, -6px);
}

.nav-toggle span:nth-child(2) {
    transform: translate(-50%, 0);
}

.nav-toggle span:nth-child(3) {
    transform: translate(-50%, 6px);
}

.nav-toggle.active span:nth-child(1) {
    transform: translate(-50%, 0) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translate(-50%, 0) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

/* ============================================ */
/* 2. HERO SECTION */
/* ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff006e 0%, #9d4edd 50%, #08f7fe 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 110, 0.2) 0%, rgba(157, 78, 221, 0.1) 40%, rgba(8, 247, 254, 0.05) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 18, 0.4) 0%, rgba(5, 8, 18, 0.7) 50%, rgba(5, 8, 18, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================ */
/* 3. FILTERS SECTION */
/* ============================================ */
.filters-section {
    background: linear-gradient(90deg, rgba(26, 31, 58, 0.8) 0%, rgba(15, 31, 58, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border-neon);
    border-top: 1px solid var(--border-neon);
}

.filters-wrapper {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-neon);
    border-radius: var(--radius-md);
    background-color: rgba(26, 31, 58, 0.6);
    color: var(--secondary);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--lime);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* ============================================ */
/* 4. RATINGS SECTION (MAIN CARDS) */
/* ============================================ */
.ratings-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-dark);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-dark);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--lime));
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.6);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

/* .game-card base defined below */

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--lime));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.4), 0 0 20px rgba(0, 245, 255, 0.3);
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(37, 31, 68, 0.9) 0%, rgba(25, 31, 68, 0.9) 100%);
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-icon {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* New layout: thumbnail left, title+rating right */
.game-head {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.game-thumb {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-neon);
}

.game-head-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Ensure title can shrink/wrap properly */
.game-name {
    flex: 1 1 auto;
    min-width: 0;
}

.game-head .game-meta {
    flex-shrink: 0;
}

.game-avatar {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.avatar-text {
    display: block;
    transform: translateY(-2px);
}

.game-name {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.game-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-neon);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-lg);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(15, 31, 58, 0.8) 100%);
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.stars {
    color: #ffb700;
    font-size: 0.875rem;
    text-shadow: 0 0 10px rgba(255, 183, 0, 0.5);
}

/* Star icon spacing and size */
.stars i {
    color: #ffb700;
    margin-right: 0.35rem;
    font-size: 1rem;
    vertical-align: middle;
}

/* Tweak numeric rating alignment on desktop: keep number vertically centered relative to star icons */
@media (min-width: 1100px) {
    .game-head-info .rating-value {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        height: 1.25rem !important; /* match approximate star height */
        padding-left: 0.25rem !important;
        transform: translateY(2px) !important; /* small nudge down */
        font-weight: 800 !important;
    }

    /* Ensure star icons line up precisely */
    .game-head-info .stars i {
        font-size: 1.05rem !important;
        line-height: 1 !important;
    }
}

.rating-value {
    font-weight: 600;
    color: var(--secondary);
}

.game-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* RATING + BADGE row */
.game-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0; /* сбрасываем возможные отступы */
}

.rating-value {
    font-weight: 700;
    color: var(--secondary);
}

.badge-free {
    background-color: rgba(0, 255, 136, 0.2);
    color: var(--lime);
    border: 1px solid var(--lime);
}

.badge-paid {
    background-color: rgba(255, 0, 110, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.game-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    flex: 1 1 auto;
    min-height: 48px;
}

.game-specs {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-neon);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    font-size: 0.9rem;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
}

.spec-value {
    color: var(--text-gray);
}

.features-list {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.features-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
    color: var(--text-gray);
}

.features-list li::before {
    content: '✓';
    color: var(--lime);
    font-weight: 700;
    font-size: 1.25rem;
}

.game-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: auto;
    flex-wrap: wrap;
    justify-content: space-between;
}

.game-buttons .btn {
    flex: 1 1 45%;
    min-width: 120px;
    max-width: 220px;
    justify-content: center;
    box-sizing: border-box;
}

/* ============================================ */
/* 5. COMPARISON TABLE SECTION */
/* ============================================ */
.comparison-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
}

.comparison-table thead {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
}

.comparison-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.comparison-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.comparison-table tbody tr {
    transition: var(--transition);
}

.comparison-table tbody tr:hover {
    background-color: var(--bg-light);
}

/* ============================================ */
/* 6. REVIEWS SECTION */
/* ============================================ */
.reviews-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.review-card {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-neon);
    position: relative;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
    border-color: var(--secondary);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.review-meta h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.review-meta p {
    font-size: 0.875rem;
    margin: 0;
}

.review-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

.review-rating {
    color: #fbbf24;
    margin-bottom: var(--spacing-md);
}

.review-text {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-style: italic;
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.review-quote {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
}

/* ============================================ */
/* 7. FAQ SECTION */
/* ============================================ */
.faq-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.faq-item {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid transparent;
    position: relative;
    transition: var(--transition);
}

.faq-item::before {
    content: 'Q';
    position: absolute;
    top: -15px;
    left: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 900;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.faq-item:hover {
    border-left-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-item:hover::after {
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.faq-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: var(--transition);
}

.faq-question {
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-md);
    color: var(--text-dark);
}

.faq-answer {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ============================================ */
/* 8. AUTHOR SECTION */
/* ============================================ */
.author-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
}

.author-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.author-image {
    text-align: center;
}

.author-avatar {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    border: 4px solid var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    margin: 0 auto;
}

.author-info h2 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.author-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.author-info p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: var(--spacing-xs);
}

.expertise-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-gray);
}

.expertise-item i {
    color: var(--success);
    font-size: 1.25rem;
}

/* ============================================ */
/* 9. NEWSLETTER SECTION */
/* ============================================ */
.newsletter-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--purple) 100%);
    color: white;
    text-align: center;
}

.newsletter-section h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    background-color: white;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.newsletter-form input::placeholder {
    color: var(--text-gray);
}

/* ============================================ */
/* 10. FOOTER */
/* ============================================ */
.footer {
    background: linear-gradient(90deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    border-top: 2px solid var(--border-neon);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom i {
    color: #f87171;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

/* Tablet (768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .author-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .author-stats {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: 100%;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .header-content {
        padding: var(--spacing-sm) 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero {
        min-height: 300px;
        padding: var(--spacing-lg) 0;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-lg);
    }

    .filters-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .game-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-thumb {
        width: 100%;
        height: auto;
        border-radius: var(--radius-md);
        margin-bottom: var(--spacing-sm);
    }


/* Fix layout for large desktops (>=1280px) */
@media (min-width: 1280px) {
    /* 3-column grid on desktop */
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Keep thumbnail left, stack title + meta vertically on the right */
    .game-head {
        align-items: flex-start;
    }

    .game-head-info {
        flex-direction: column; /* title on top, meta (rating + badge) below */
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .game-name {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        text-align: left;
        padding-right: var(--spacing-md);
        min-width: 0;
    }

    /* Stack rating above the badge so badge becomes the third visual line */
    .game-meta {
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .game-rating {
        order: 1;
        align-self: flex-start;
    }

    .game-badge {
        order: 2;
        margin-top: 0.25rem;
        align-self: flex-start;
    }

    /* Additional enforcement: make children behave as full-width blocks
       so badge cannot sit inline next to rating due to inherited inline styles */
    .games-grid .game-card .game-meta > * {
        display: block;
        width: 100%;
    }

    .games-grid .game-card .game-rating {
        display: block;
        width: 100%;
    }

    .games-grid .game-card .game-badge {
        display: block;
        width: auto;
        white-space: nowrap;
    }

    .game-thumb {
        width: 88px;
        height: 88px;
        margin-right: var(--spacing-md);
    }

    .game-card {
        min-height: 460px;
        padding: var(--spacing-md);
    }
}
/* Strong overrides to ensure stacking (if computed styles from browser force inline layout) */
@media (min-width: 1280px) {
    .game-head-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    .game-head-info .game-name {
        display: block !important;
        width: 100% !important;
        flex: 0 0 auto !important;
    }

    .game-head-info .game-meta {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        margin-top: 0.25rem !important;
    }

    .game-head-info .game-meta > * {
        display: block !important;
        width: 100% !important;
    }

    .game-head-info .game-rating {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        margin: 0 !important;
        padding-bottom: 6px !important; /* небольшой отступ снизу */
    }

    .game-head-info .game-badge {
        display: inline-block !important;
        width: auto !important;
        align-self: flex-start !important;
        margin-left: 0 !important;
    }
}
    .game-card {
        padding: var(--spacing-md);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .author-content {
        text-align: center;
    }

    .author-avatar {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .expertise-item {
        justify-content: center;
    }

    .ratings-section,
    .comparison-section,
    .reviews-section,
    .faq-section,
    .author-section,
    .newsletter-section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        margin-bottom: var(--spacing-lg);
    }

    .table-wrapper {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-sm);
    }
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */
.text-center {
    text-align: center;
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.py-2xl {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

/* ============================================ */
/* GAME DETAIL PAGE STYLES */
/* ============================================ */

/* Main Content Wrapper */
.game-content-wrapper {
    background-color: var(--bg-dark);
}

.game-main-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-2xl);
    width: 100%;
}

.game-main-content {
    flex: 1;
    min-width: 0;
}

.game-sidebar {
    position: static;
    height: fit-content;
    margin-top: var(--spacing-2xl);
}

.popular-games-widget {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-neon);
    width: 100%;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-md) 0;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.popular-games-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.popular-game-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    align-items: center;
}

.popular-game-item:hover {
    background-color: var(--bg-dark);
}

.popular-game-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-neon);
    flex-shrink: 0;
}

.popular-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-game-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    min-width: 0;
}

.popular-game-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-game-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
}

.stars-tiny {
    font-size: 0.65rem;
    color: #ffb700;
    white-space: nowrap;
}

.stars-tiny i {
    margin-right: 1px;
}

.rating-value-tiny {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

/* Recommended Downloads Widget */
.recommended-widget {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-neon);
    width: 100%;
    margin-top: var(--spacing-lg);
}

.recommended-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.recommended-item {
    background-color: var(--bg-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-neon);
    transition: var(--transition);
}

.recommended-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.2);
}

.recommended-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.recommended-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.recommended-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.recommended-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    opacity: 0.7;
}

.btn-recommended {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-recommended:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 245, 255, 0.3);
}

.btn-recommended i {
    font-size: 0.9rem;
}

/* Responsive - hide sidebar on tablets and mobile */
@media (max-width: 1100px) {
    .game-main-with-sidebar {
        grid-template-columns: 1fr;
    }

    .game-sidebar {
        position: static;
        top: auto;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        order: 3;
        width: 100%;
        display: block;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        background: rgba(5, 8, 18, 0.95);
        border: 1px solid var(--border-neon);
        border-radius: var(--radius-lg);
        padding: var(--spacing-md);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        z-index: 200;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }

    .nav-link {
        padding: 1rem 1.5rem;
        margin: 0 0.5rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.04);
        color: white;
    }

    .nav-list li + li {
        margin-top: var(--spacing-sm);
    }

    .nav-link::after {
        display: none;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-neon);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    list-style: none;
    font-size: 0.95rem;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.breadcrumbs-list a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs-list a:hover {
    color: var(--lime);
}

.breadcrumbs-list span {
    color: var(--text-gray);
}

.breadcrumbs-list .separator {
    color: var(--border-light);
}

/* Game Header Section */
.game-header {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-dark);
}

.game-header-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.game-header-image {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
}

.game-header-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-neon);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.game-rating-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.game-rating-section .stars {
    font-size: 1.25rem;
    line-height: 1;
}

.game-rating-section .rating-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.game-rating-section .rating-count {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1;
}

.btn-download-header {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
    width: 100%;
    max-width: 350px;
    justify-content: center;
}

.btn-download-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.4);
}

.download-buttons-header {
    display: flex;
    gap: var(--spacing-md);
    flex-direction: column;
    width: 100%;
}

.btn-request-update-header {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
    width: 100%;
    max-width: 350px;
    justify-content: center;
}

.btn-request-update-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.4);
}

.game-header-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.game-header-info h1 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--text-dark);
}

.game-specs-wrapper {
    flex: 1;
}

.game-specs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.game-specs-table th {
    background: transparent;
    color: var(--text-dark);
    padding: 0;
    text-align: left;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    display: none;
}

.game-specs-table td {
    border: none;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    font-size: 0.95rem;
}

.game-specs-table tr {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-light);
}

.game-specs-table tr:last-child {
    border-bottom: none;
}

.game-specs-table tr:hover {
    background-color: transparent;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.spec-label i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.spec-value {
    color: var(--text-light);
    flex: 1;
}

/* Screenshots Section */
.game-screenshots {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-xl);
}

.section-heading {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--lime));
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.6);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.screenshot {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-neon);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Description Section */
.game-description-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-dark);
}

.game-description-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
}

/* Similar Games Section */
.game-similar {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-dark);
}

.similar-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

@media (min-width: 1280px) {
    .similar-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.similar-game-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.similar-game-card:hover {
    transform: translateY(-8px);
}

.similar-game-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-neon);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
    transition: var(--transition);
}

.similar-game-card:hover .similar-game-image {
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
    border-color: var(--secondary);
}

.similar-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.similar-game-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Developer Section */
.game-developer {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
    margin-bottom: var(--spacing-2xl);
}

.developer-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    background-color: var(--bg-dark);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-neon);
}

.developer-image {
    flex-shrink: 0;
}

.developer-image img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-neon);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    object-fit: cover;
}

.developer-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.developer-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.developer-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.online-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background-color: rgba(57, 255, 20, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--lime);
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: var(--lime);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lime);
}

.developer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 0;
}

/* Comments Section */
.game-comments {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-dark);
}

.comments-form-wrapper {
    background-color: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-neon);
    margin-bottom: var(--spacing-2xl);
}

.comments-form-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
}

.comments-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.comments-form input[type="text"],
.comments-form input[type="email"],
.comments-form textarea {
    padding: var(--spacing-md);
    background-color: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.comments-form input[type="text"]::placeholder,
.comments-form input[type="email"]::placeholder,
.comments-form textarea::placeholder {
    color: var(--text-gray);
}

.comments-form input[type="text"]:focus,
.comments-form input[type="email"]:focus,
.comments-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary);
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer;
    user-select: none;
}

.btn-submit-comment {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.4);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.comment-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-neon);
    transition: var(--transition);
}

.comment-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-neon);
    object-fit: cover;
}

.comment-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.comment-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 0;
}

.comment-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.stars-small {
    font-size: 0.9rem;
    color: #ffb700;
}

.stars-small i {
    margin-right: 0.2rem;
}

.rating-value-small {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Sidebar */
.comments-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Features Section */
.game-features {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-xl);
}

.features-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.feature-list-item {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.feature-list-item::before {
    content: '✓';
    font-size: 1.5rem;
    color: var(--lime);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-list-item:last-child {
    border-bottom: none;
}

.feature-list-item:hover {
    padding-left: var(--spacing-md);
}

.feature-list-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-sm) 0;
    font-family: 'Poppins', sans-serif;
}

.feature-list-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* Download Section */
.game-download {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--purple) 100%);
    text-align: center;
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
}

.game-download h2 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.download-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-direction: column;
    width: 100%;
    margin: 0;
}

.btn-download-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 1.5rem 2rem;
    background-color: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.apk-button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.apk-button-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.apk-button-info {
    font-size: 0.75rem;
    color: rgba(255, 0, 110, 0.7);
    font-weight: 500;
}

.btn-download-chess {
    background: linear-gradient(135deg, #ff006e, #08f7fe) !important;
    color: white !important;
}

.btn-download-chess .apk-button-info {
    color: rgba(255, 255, 255, 0.85) !important;
}

.btn-download-alternative {
    background: linear-gradient(135deg, #ff006e, #08f7fe) !important;
    color: white !important;
    border: none !important;
}

.btn-download-alternative .apk-button-main {
    color: white !important;
}

.btn-download-alternative .apk-button-info {
    color: rgba(255, 255, 255, 0.85) !important;
}

.btn-download-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn-download-large i {
    font-size: 1.5rem;
}

/* Instructions Block */
.instructions-block {
    margin-top: var(--spacing-2xl);
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-neon);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    gap: 0;
    background-color: rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    position: relative;
    flex: 1;
    min-width: 150px;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button:hover {
    color: var(--secondary);
    background-color: rgba(0, 245, 255, 0.05);
}

.tab-button.active {
    color: white;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(8, 247, 254, 0.2));
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tabs-content {
    min-height: 200px;
    padding: var(--spacing-lg);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tab-content h4 {
    color: var(--secondary);
    margin: 0 0 var(--spacing-lg) 0;
    font-size: 1.1rem;
    text-align: left;
}

.tab-content ol,
.tab-content ul {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    padding-left: var(--spacing-xl);
    text-align: left;
}

.tab-content li {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.tab-content strong {
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .game-header-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .game-header-info h1 {
        font-size: 1.875rem;
    }

    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-md);
    }

    .features-list {
        gap: var(--spacing-md);
    }

    .feature-list-item {
        padding: var(--spacing-md) 0;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .feature-list-content h3 {
        font-size: 1rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .btn-download-large {
        width: 100%;
        justify-content: center;
    }

    .download-buttons-header {
        flex-direction: column;
    }

    .btn-download-header,
    .btn-request-update-header {
        width: 100%;
        max-width: 100%;
    }

    .developer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .developer-avatar {
        width: 100%;
        max-width: 100px;
    }

    .developer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
}
