/* CSS Variables - Modern Design System */

:root {

    /* Colors */

    --primary-color: #ec4899;

    --primary-dark: #db2777;

    --primary-light: #f9a8d4;

    --secondary-color: #ff6b6b;

    --accent-color: #ffd166;

    --success-color: #27ae60;

    --warning-color: #f39c12;

    --error-color: #e74c3c;



    /* Neutral Colors */

    --text-primary: #2c3e50;

    --text-secondary: #7f8c8d;

    --text-muted: #95a5a6;

    --bg-primary: #ffffff;

    --bg-secondary: #f8f9fa;

    --bg-tertiary: #f1f2f6;

    --border-color: #e9ecef;

    --shadow-color: rgba(0, 0, 0, 0.1);



    /* Gradients */

    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));

    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #ff8e8e);

    --gradient-accent: linear-gradient(135deg, var(--accent-color), #ffb347);

    --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);



    /* Typography */

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --font-size-xs: 0.6rem;

    --font-size-sm: 0.875rem;

    --font-size-base: 1rem;

    --font-size-lg: 1.125rem;

    --font-size-xl: 1.25rem;

    --font-size-2xl: 1.5rem;

    --font-size-3xl: 1.875rem;

    --font-size-4xl: 2.25rem;



    /* Spacing */

    --space-xs: 0.25rem;

    --space-sm: 0.5rem;

    --space-md: 0.2rem;

    --space-lg: 0.6rem;

    --space-xl: 1rem;

    --space-2xl: 20px;

    --space-3xl: 2rem;



    /* Border Radius */

    --radius-sm: 4px;

    --radius-md: 8px;

    --radius-lg: 12px;

    --radius-xl: 16px;

    --radius-full: 9999px;



    /* Shadows */

    --shadow-sm: 0 1px 3px var(--shadow-color);

    --shadow-md: 0 4px 6px var(--shadow-color);

    --shadow-lg: 0 10px 15px var(--shadow-color);

    --shadow-xl: 0 20px 25px var(--shadow-color);

    --shadow-2xl: 0 25px 50px var(--shadow-color);



    /* Transitions */

    --transition-fast: 0.15s ease;

    --transition-normal: 0.3s ease;

    --transition-slow: 0.5s ease;



    /* Layout */

    --container-width: 1200px;

    --container-padding: 20px;

    --header-height: 80px;

    /* Cyber Template Specific Variables */

    --cyber-cyan: #06b6d4;

    --cyber-cyan-dark: #0891b2;

    --cyber-cyan-light: #22d3ee;

    --cyber-bg: #ffffff;

    --cyber-bg-alt: #ecfeff;

    --cyber-text: #0f172a;

    --cyber-text-muted: #64748b;

    --cyber-border: #a5f3fc;

    --cyber-shadow: rgba(6, 182, 212, 0.18);

    --cyber-radius: 6px;

    --cyber-gap: 14px;

    --cyber-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);

}

/* Base Styles - Shared between all pages */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

/* Global: remove link underlines */
a {
    text-decoration: none;
}



html {

    scroll-behavior: smooth;

}

body {

    font-family: var(--font-family);

    line-height: 1.6;

    color: var(--text-primary);

    background: var(--cyber-bg-alt);

    background-image:
        /* hexagon/diamond grid */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpath d='M30 0 L60 15 L60 37 L30 52 L0 37 L0 15Z' fill='none' stroke='rgba(6,182,212,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
        repeating-linear-gradient(90deg, rgba(6, 182, 212, 0.1) 0px, rgba(6, 182, 212, 0.1) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(0deg, rgba(6, 182, 212, 0.1) 0px, rgba(6, 182, 212, 0.1) 1px, transparent 1px, transparent 40px),
        radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);

    background-attachment: fixed;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden;

}

.main-content {

    margin-top: 70px;

}

/* Container */

.container {

    max-width: var(--container-width);

    margin-left: auto;

    margin-right: auto;

    padding: 0 var(--container-padding);

}

/* Header Styles */

.header {

    background: rgba(236, 254, 255, 0.95);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    position: fixed;

    width: 100%;

    top: 0;

    z-index: 1000;

    border-bottom: 1px solid var(--border-color);

    box-shadow: var(--shadow-sm);

    transition: all var(--transition-normal);

    google-auto-ads: ignore;

}

.header.scrolled {

    background: rgba(236, 254, 255, 0.92);

    box-shadow: var(--shadow-md);

}

/* Cyber Nav Links - tech/hex style with cyan */
html body .header .nav-link {
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html body .header .nav-link:hover {
    border-color: var(--cyber-cyan) !important;
    color: var(--cyber-cyan) !important;
    background: rgba(6, 182, 212, 0.06) !important;
}

html body .header .nav-link.active {
    background: var(--cyber-cyan) !important;
    color: #fff !important;
    border-color: var(--cyber-cyan) !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

html body .header .nav-link::after {
    display: none;
}

/* Footer */

.footer {

    background: var(--cyber-bg-alt);

    padding: var(--space-2xl) 0;

    text-align: center;

    border-top: 1px solid var(--border-color);

}

.footer-links {

    margin-top: var(--space-md);

    display: flex;

    justify-content: center;

    align-items: center;

    gap: var(--space-sm);

    flex-wrap: wrap;

}

.footer-link {

    color: var(--text-secondary);

    text-decoration: none;

    font-size: var(--font-size-sm);

    transition: all var(--transition-normal);

    padding: var(--space-xs) var(--space-sm);

    border-radius: var(--radius-sm);

}

.footer-link:hover {

    color: var(--primary-color);

    background: var(--bg-primary);

    transform: translateY(-1px);

}

.footer-separator {

    color: var(--text-muted);

    font-size: var(--font-size-sm);

}

/* Back to Top Button */

.back-to-top {

    position: fixed;

    bottom: var(--space-xl);

    right: var(--space-xl);

    background: var(--gradient-primary);

    color: white;

    border: none;

    border-radius: var(--radius-full);

    width: 50px;

    height: 50px;

    cursor: pointer;

    transition: all var(--transition-normal);

    box-shadow: var(--shadow-lg);

    z-index: 999;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: var(--font-size-lg);

    font-weight: 600;

}

.back-to-top:hover {

    transform: translateY(-2px);

    box-shadow: var(--shadow-xl);

}

.back-to-top.hidden {

    opacity: 0;

    transform: translateY(20px);

    pointer-events: none;

}

.fa-star-o:before {

    content: "\f005";

}

.star-full {

    color: gold;

}

.star-empty {

    color: gray;

}

.tag-h2 {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border-width: 0;

}

/* Responsive Design */

@media (max-width: 768px) {

    :root {

        --container-padding: 15px;

        --header-height: 60px;

    }



    .container {

        padding: 0 var(--container-padding);

    }





    .back-to-top {

        bottom: var(--space-lg);

        right: var(--space-lg);

        width: 45px;

        height: 45px;

    }

}

@media (max-width: 480px) {

    :root {

        --container-padding: 10px;

    }



    .footer {

        padding: var(--space-xl) 0;

    }

}

/* Cyber Template Specific Styles */

.cyber-card,
.cyber-tile,
[class*="cyber-similar"] a,
[class*="cyber-info"] a {

    transition: all var(--cyber-transition) !important;

    border-width: 1px !important;

}

.cyber-card:hover,
.cyber-tile:hover,
[class*="cyber-similar"] a:hover,
[class*="cyber-info"] a:hover {

    border-color: var(--cyber-cyan) !important;

    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18), 0 5px 14px var(--cyber-shadow) !important;

    transform: translateY(-2px) !important;

}

.hero {

    max-width: var(--container-width);

    margin-left: auto;

    margin-right: auto;

    padding: 10px var(--container-padding) !important;

    background: unset !important;

}

.hero-container {

    max-width: unset !important;

}

/* Home Page Specific Styles */

/* Page Header */

.page-header {

    position: relative;

}

.page-header h2 {

    font-size: var(--font-size-3xl);

    font-weight: 700;

    margin-bottom: var(--space-md);

    background: var(--gradient-primary);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}

.page-header p {

    font-size: var(--font-size-lg);

    color: var(--text-secondary);

    margin: var(--space-sm) 0 0 0;

    line-height: 1.6;

    max-width: 100%;

}

/* More Link */

.more-link {

    color: var(--primary-color);

    text-decoration: none;

    font-weight: 500;

    font-size: var(--font-size-base);

    padding: 5px;

    transition: all 0.2s ease;

    white-space: nowrap;

    display: inline-flex;

    align-items: center;

    gap: var(--space-xs);

}

.more-link:hover {

    background-color: var(--background-secondary);

    text-decoration: none;

    border-color: var(--primary-color);

    transform: translateY(-1px);

}

.more-link span {

    font-size: 1.1em;

    transition: transform 0.2s ease;

}

.more-link:hover span {

    transform: translateX(2px);

}

/* Sections */

.section-title {

    font-size: var(--font-size-2xl);

    font-weight: 600;

    margin-bottom: var(--space-xl);

    text-align: center;

    position: relative;

    padding-bottom: var(--space-sm);

}

.section-title::after {

    content: '';

    position: absolute;

    bottom: 0;

    left: 50%;

    transform: translateX(-50%);

    width: 60px;

    height: 3px;

    background: var(--gradient-primary);

    border-radius: var(--radius-full);

}

.featured-section {

    padding: 10px 0 0 0;

    background: transparent;

    position: relative;

}

.arcade-section {



    background: transparent;

}

.multiplayer-section {



    background: var(--bg-secondary);

}

.strategy-section {

    padding: 10px 0 0 0;

    background: transparent;

}

.idle-games-section {



    background: var(--bg-secondary);

}

.casual-games-section {



    background: transparent;

}

.all-games-section {



    background: var(--bg-secondary);

}

.section-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: var(--space-xl);

    flex-wrap: wrap;

    gap: var(--space-lg);

}


/* Games Grid */

.games-grid {

    display: grid;

    grid-template-columns: repeat(5, minmax(180px, 1fr));

    gap: var(--space-lg);

}

.featured-grid {

    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

    justify-items: center;

}

/* Featured Game Cards */

.featured-grid .game-card {

    position: relative;

    transform: none;

    min-width: 220px;

    border: 2px solid var(--primary-color);

    box-shadow: var(--shadow-lg);

}

.featured-grid .game-card::before {

    content: '�?Featured';

    position: absolute;

    top: -10px;

    left: 50%;

    transform: translateX(-50%);

    background: var(--gradient-accent);

    color: white;

    padding: var(--space-xs) var(--space-sm);

    border-radius: var(--radius-full);

    font-size: var(--font-size-xs);

    font-weight: 600;

    z-index: 10;

    white-space: nowrap;

}

.game-card {

    background: transparent;

    border-radius: var(--radius-lg);

    overflow: hidden;

    transition: all var(--transition-normal);

    border: 1px solid var(--border-color);

    cursor: pointer;

    box-shadow: var(--shadow-sm);

    height: 100%;

    display: flex;

    flex-direction: column;

    text-decoration: none;

    color: inherit;

    position: relative;

}

.game-card:hover {

    transform: translateY(-8px);

    border-color: var(--primary-color);

}

.game-card::after {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: var(--gradient-primary);

    opacity: 0;

    transition: opacity var(--transition-normal);

    z-index: 1;

    pointer-events: none;

}

.game-card:hover::after {

    opacity: 0.03;

}

.image-container {

    position: relative;

    width: 100%;

    height: 0;

    padding-bottom: 62.5%;
    /* 16:10 aspect ratio */

    overflow: hidden;

    border-radius: var(--radius-lg) var(--radius-lg) 0 0;

}

.image-placeholder {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: var(--gradient-dark);

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 0;

}

.placeholder-content {

    text-align: center;

    color: rgba(255, 255, 255, 0.8);

}

.placeholder-icon {

    font-size: 2rem;

    display: block;

    margin-bottom: var(--space-sm);

    opacity: 0.7;

}

.placeholder-text {

    font-size: var(--font-size-sm);

    font-weight: 500;

}

.game-image {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: 1;

    transition: all var(--transition-normal);

}

.game-card:hover .game-image {

    transform: scale(1.05);

}

.game-image.loading+.image-placeholder,
.game-image.error+.image-placeholder {

    display: flex;

}

.game-image.error {

    display: none;

}

.game-image.error+.image-placeholder {

    display: flex;

}

.game-info {

    padding: var(--space-lg);

    flex-grow: 1;

    display: flex;

    flex-direction: column;

    gap: var(--space-sm);

    position: relative;

    z-index: 2;

    padding-bottom: 10px;

}

.game-title {

    font-size: var(--font-size-base);

    font-weight: 700;

    color: var(--text-primary);

    text-align: left;

    line-height: 1.3;

    align-items: center;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 1;

    overflow: hidden;

    text-overflow: ellipsis;

}

.game-description {

    font-size: var(--font-size-sm);

    color: var(--text-secondary);

    line-height: 1.4;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    overflow: hidden;

    text-overflow: ellipsis;

    margin: 0;

}

.line1 {

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 1;

    line-clamp: 1;

    overflow: hidden;

    text-overflow: ellipsis;

}

.line2 {

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    line-clamp: 2;

    overflow: hidden;

    text-overflow: ellipsis;

}

/* Line clamp variations for brief comments */

.line3 {

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    line-clamp: 3;

    overflow: hidden;

    text-overflow: ellipsis;

}

.line4 {

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 4;

    line-clamp: 4;

    overflow: hidden;

    text-overflow: ellipsis;

}

.line5 {

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 5;

    line-clamp: 5;

    overflow: hidden;

    text-overflow: ellipsis;

}

.line6 {

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 6;

    line-clamp: 6;

    overflow: hidden;

    text-overflow: ellipsis;

}

.line-full {

    -webkit-line-clamp: unset;

    line-clamp: unset;

    display: block;

    overflow: visible;

    text-overflow: unset;

    white-space: normal;

}

@media (max-width: 768px) {

    .line-full {

        -webkit-line-clamp: 3;

        line-clamp: 3;

        display: -webkit-box;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: normal;

    }

}

.game-rating {

    display: flex;

    align-items: center;

    gap: var(--space-xs);

    color: var(--accent-color);

    font-size: var(--font-size-sm);

    font-weight: 600;

}

.game-genre {

    display: flex;

    flex-wrap: wrap;

    gap: var(--space-xs);

    margin-top: var(--space-xs);

}

.genre-tag {

    background: var(--gradient-primary);

    color: white;

    padding: var(--space-xs) var(--space-sm);

    border-radius: var(--radius-full);

    font-size: var(--font-size-xs);

    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.5px;

}

.game-featured {

    position: absolute;

    top: var(--space-sm);

    right: var(--space-sm);

    background: var(--gradient-secondary);

    color: white;

    padding: var(--space-xs) var(--space-sm);

    border-radius: var(--radius-sm);

    font-size: var(--font-size-xs);

    font-weight: 600;

    z-index: 2;

    box-shadow: var(--shadow-md);

}

.stat {

    text-align: center;

    animation: fadeInUp 0.6s ease-out;

}

.stat:nth-child(2) {

    animation-delay: 0.2s;

}

.stat:nth-child(3) {

    animation-delay: 0.4s;

}

.stat-number {

    display: block;

    font-size: var(--font-size-3xl);

    font-weight: 700;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

}

.stat-label {

    display: block;

    font-size: var(--font-size-sm);

    margin-top: var(--space-xs);

    font-weight: 500;

    letter-spacing: 0.5px;

}

.section-description {

    text-align: left;

    color: var(--text-secondary);

    font-size: var(--font-size-base);

    margin-bottom: var(--space-xl);

    max-width: 600px;

    margin-right: auto;

}

/* Animations */

@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

@keyframes slideInLeft {

    from {

        opacity: 0;

        transform: translateX(-30px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}

@keyframes slideInRight {

    from {

        opacity: 0;

        transform: translateX(30px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}

/* Loading Animation */

.loading-shimmer {

    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);

    background-size: 200% 100%;

    animation: shimmer 1.5s infinite;

}

@keyframes shimmer {

    0% {

        background-position: -200% 0;

    }

    100% {

        background-position: 200% 0;

    }

}

/* Loading State */

.loading-state {

    text-align: center;

    padding: var(--space-2xl);

    color: var(--text-secondary);

    font-size: var(--font-size-lg);

    font-weight: 500;

    background: var(--bg-primary);

    border-radius: var(--radius-lg);

    margin: var(--space-lg) 0;

    animation: pulse 2s infinite;

}

@keyframes pulse {

    0%,
    100% {

        opacity: 1;

    }

    50% {

        opacity: 0.7;

    }

}


/* Category Sections */

.arcade-section .section-title {

    color: #ff6b6b;

}

.multiplayer-section .section-title {

    color: #ec4899;

}

.strategy-section .section-title {

    color: #ffd166;

}

.idle-games-section .section-title {

    color: #95e1d3;

}

.casual-games-section .section-title {

    color: #f38181;

}

/* Load More Button */

.load-more-container {

    text-align: center;

    margin-top: var(--space-2xl);

}

.load-more-btn {

    padding: var(--space-md) var(--space-2xl);

    background: var(--gradient-primary);

    border: none;

    border-radius: var(--radius-xl);

    color: white;

    font-weight: 600;

    cursor: pointer;

    transition: all var(--transition-normal);

    box-shadow: var(--shadow-lg);

    font-size: var(--font-size-base);

    position: relative;

    overflow: hidden;

    min-height: 50px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

}

.load-more-btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left var(--transition-slow);

}

.load-more-btn:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow-2xl);

}

.load-more-btn:hover::before {

    left: 100%;

}

.load-more-btn:active {

    transform: translateY(-1px);

}

.load-more-btn.loading {

    pointer-events: none;

    opacity: 0.7;

}

.load-more-btn.loading::after {

    content: '';

    width: 16px;

    height: 16px;

    border: 2px solid transparent;

    border-top: 2px solid white;

    border-radius: 50%;

    animation: spin 1s linear infinite;

    position: absolute;

    right: 16px;

}

@keyframes spin {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}

/* Mobile Responsive Design */

@media (max-width: 768px) {

    .container {

        padding: 0 var(--container-padding);

    }







    .stat-number {

        font-size: var(--font-size-2xl);

    }



    .stat-label {

        font-size: var(--font-size-xs);

    }



    /* Sections */

    .featured-section,

    .arcade-section,

    .multiplayer-section,

    .strategy-section,

    .all-games-section {

        padding: 5px 0;

    }



    .page-header h2 {

        font-size: var(--font-size-2xl);

    }



    .page-header p {

        font-size: var(--font-size-base);

    }

    .more-link {

        font-size: var(--font-size-sm);

    }



    .section-title {

        font-size: var(--font-size-xl);

        margin-bottom: var(--space-lg);

    }



    .section-description {

        font-size: var(--font-size-sm);

        margin-bottom: var(--space-lg);

    }



    .section-header {

        flex-direction: column;

        align-items: stretch;

        gap: var(--space-lg);

    }



    /* Filter Controls */

}

@media (max-width: 480px) {

    .container {

        padding: 0 var(--container-padding);

    }





    .stat-number {

        font-size: var(--font-size-xl);

    }



    .stat-label {

        font-size: var(--font-size-xs);

    }



    .section-title {

        font-size: var(--font-size-lg);

        margin-bottom: var(--space-md);

    }



    .section-description {

        font-size: var(--font-size-sm);

        margin-bottom: var(--space-md);

    }



    /* Games Grid */

    .games-grid {

        display: flex;

        flex-wrap: wrap;

        gap: 10px;

        justify-content: center;

    }



    .games-grid .game-card {

        width: 100%;

        max-width: none;

        margin: 0;

    }



    .featured-grid {

        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

        gap: var(--space-sm);

    }



    .game-card {

        max-width: 160px;

    }



    .game-title {

        font-size: var(--font-size-sm);

        -webkit-line-clamp: 2;

    }



    .game-rating {

        font-size: var(--font-size-xs);

    }



    .game-info {

        padding: var(--space-sm);

        gap: var(--space-xs);

    }



    .game-genre {

        gap: var(--space-xs);

    }



    .genre-tag {

        font-size: var(--font-size-xs);

        padding: var(--space-xs) var(--space-sm);

    }





    .game-featured {

        font-size: var(--font-size-xs);

        padding: var(--space-xs) var(--space-sm);

    }




    /* Navigation Mobile Styles */

    @media (max-width: 768px) {}

    /* Touch-friendly improvements */

    @media (max-width: 768px) {

        .game-card {

            min-height: 160px;

        }



        .load-more-btn {

            min-height: 44px;
            /* Minimum touch target size */

            display: flex;

            align-items: center;

            justify-content: center;

        }



    }

    /* Landscape orientation support */

    @media (max-width: 768px) and (orientation: landscape) {

        .games-grid,

        .featured-grid {

            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

        }



    }

    /* Game Tags Styles */

    .game-tags {

        display: flex;

        text-transform: none;

        flex-wrap: wrap;

        gap: var(--space-xs);

        margin-top: var(--space-xs);

    }

    .game-tag {

        background: var(--gradient-secondary);

        text-transform: none;

        color: white;

        padding: var(--space-xs) var(--space-sm);

        border-radius: var(--radius-full);

        font-size: var(--font-size-xs);

        font-weight: 600;

        line-height: 1;

        letter-spacing: 0.3px;

        white-space: nowrap;

        transition: all var(--transition-fast);

        border: 1px solid transparent;

        box-shadow: var(--shadow-sm);

        position: relative;

        overflow: hidden;

        z-index: 1;

    }

    .game-tag::before {

        content: '';

        position: absolute;

        top: 0;

        left: 0;

        right: 0;

        bottom: 0;

        background: var(--gradient-primary);

        opacity: 0;

        transition: opacity var(--transition-normal);

        z-index: -1;

    }

    .game-tag:hover {

        transform: translateY(-2px);

        box-shadow: var(--shadow-md);

        border-color: var(--primary-color);

    }

    .game-tag:hover::before {

        opacity: 1;

    }

    /* Color variations for different tag categories */

    .game-tag:nth-child(3n+1) {

        background: var(--gradient-primary);

    }

    .game-tag:nth-child(3n+2) {

        background: var(--gradient-secondary);

    }

    .game-tag:nth-child(3n+3) {

        background: var(--gradient-accent);

    }

    /* Featured Games Layout Variations */

    .featured-section.layout-alternate .games-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }



    .featured-section.layout-alternate .games-grid .game-card {

        grid-column: span 1;

    }



    .featured-section.layout-alternate .games-grid .game-card:first-child {

        grid-column: 1 / span 2;

        grid-row: 1;

        display: flex;

        flex-direction: column;

        height: auto;

    }



    .featured-section.layout-alternate .games-grid .game-card:nth-child(2) {

        grid-column: 3;

        grid-row: 1;

    }



    .featured-section.layout-alternate .games-grid .game-card:nth-child(3) {

        grid-column: 4;

        grid-row: 1;

    }



    .featured-section.layout-alternate .games-grid .game-card:first-child .image-container {

        width: 100%;

        padding-bottom: 62.5%;
        /* 16:10 aspect ratio */

        height: auto;

    }



    .featured-section.layout-alternate .games-grid .game-card:first-child .game-info {

        width: 100%;

        padding: 20px;

        display: flex;

        flex-direction: column;

    }



    /* Featured badge for first game in layout-alternate */

    .featured-section.layout-featured .games-grid .game-card:first-child .image-container::before {

        content: 'Featured';

        text-transform: none;

        position: absolute;

        top: var(--space-sm);

        left: var(--space-sm);

        background: var(--gradient-secondary);

        color: white;

        padding: var(--space-xs) var(--space-sm);

        border-radius: var(--radius-sm);

        font-size: var(--font-size-xs);

        font-weight: 600;

        z-index: 2;

        box-shadow: var(--shadow-md);

        letter-spacing: 0.5px;

    }

    /* Hide any existing .game-featured element to avoid duplicate badges */

    .featured-section.layout-alternate .games-grid .game-card:first-child .game-featured {

        display: none;

    }



    .featured-section.layout-featured .games-grid {

        display: grid;

        grid-template-columns: repeat(4, 1fr);

        gap: 20px;

    }



    .featured-section.layout-featured .games-grid .game-card {

        grid-column: span 1;

    }



    .featured-section.layout-featured .games-grid .game-card:first-child {

        grid-column: 1 / span 2;

        grid-row: 1 / span 1;

    }



    .featured-section.layout-featured .games-grid .game-card:first-child .image-container {

        padding-bottom: 43%;

    }

    .featured-section.layout-featured .games-grid .game-card:hover {

        box-shadow: none;

    }



    .featured-section.layout-horizontal .games-grid {

        display: flex;

        flex-wrap: nowrap !important;

        overflow-x: auto;

        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;

        scroll-snap-type: x mandatory;

        touch-action: pan-x;

        gap: 15px;

        padding: 10px 0 20px;

        scrollbar-width: none;

        -ms-overflow-style: none;

        position: relative;

    }



    .featured-section.layout-horizontal .games-grid::-webkit-scrollbar {

        display: none;

        height: 0;

        width: 0;

    }



    .featured-section.layout-horizontal .games-grid::-webkit-scrollbar-track {

        display: none;

    }



    .featured-section.layout-horizontal .games-grid::-webkit-scrollbar-thumb {

        display: none;

    }



    .featured-section.layout-horizontal .games-grid .game-card {

        flex: 0 0 auto;

        width: 278px !important;

        min-width: 278px !important;

        scroll-snap-align: start;

        position: relative;

    }



    /* Override for game title in horizontal layout on mobile */

    .featured-section.layout-horizontal .games-grid .game-card .game-info {

        display: none;

        position: relative;

        padding: unset !important;

    }

    /* Hide rating, tags, and review in horizontal layout */

    .featured-section.layout-horizontal .games-grid .game-card .game-tags,

    .featured-section.layout-horizontal .games-grid .game-card .game-star,

    .featured-section.layout-horizontal .games-grid .game-card .game-description.game-review {

        display: none !important;

    }

    /* Style game title to appear above image on hover */

    .featured-section.layout-horizontal .games-grid .game-card .game-title {

        position: absolute;

        top: -36px;

        left: 50%;

        width: 100%;

        transform: translateX(-50%) translateY(0);

        background: rgba(65, 105, 225, 0.95);

        color: white;

        padding: 8px 4px;

        font-size: var(--font-size-sm);

        font-weight: 700;

        line-height: 1.3;

        z-index: 3;

        opacity: 1;

        transition: all 0.3s ease;

        pointer-events: none;

        -webkit-line-clamp: 2;

        line-clamp: 2;

        display: -webkit-box;

        -webkit-box-orient: vertical;

        overflow: hidden;

        text-align: center;

        display: flex;

        min-height: 40px;

        white-space: nowrap;

        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

    }

    .featured-section.layout-horizontal .games-grid .game-card:hover .game-title {

        background: rgba(30, 80, 200, 0.95);

        transform: translateX(-50%) translateY(-2px);

        border-color: white;

    }

    /* Adjust image container to accommodate title */

    .featured-section.layout-horizontal .games-grid .game-card .image-container {

        position: relative;

        z-index: 1;

        overflow: visible;

    }



    /* Horizontal scroll arrows */

    .featured-section.layout-horizontal .games-grid-wrapper {

        position: relative;

    }



    .featured-section.layout-horizontal .scroll-btn {

        position: absolute;

        top: 50%;

        transform: translateY(-50%);

        width: 50px;

        height: 50px;

        background: rgba(65, 105, 225, 0.9);

        border: 2px solid rgba(255, 255, 255, 0.8);

        border-radius: 50%;

        color: white;

        font-size: 30px;

        font-weight: bold;

        cursor: pointer;

        z-index: 10;

        display: flex;

        align-items: center;

        justify-content: center;

        transition: all 0.2s ease;

        opacity: 1;

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

    }



    .featured-section.layout-horizontal .scroll-btn:hover {

        background: rgba(30, 80, 200, 1);

        border-color: white;

        transform: translateY(-50%) scale(1.05);

        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);

    }



    .featured-section.layout-horizontal .scroll-btn.scroll-btn-left {

        left: 15px;

    }



    .featured-section.layout-horizontal .scroll-btn.scroll-btn-right {

        right: 15px;

    }



    .featured-section.layout-horizontal .scroll-btn:disabled {

        opacity: 0.3;

        cursor: not-allowed;

    }



    .featured-section.layout-grid-3col .games-grid {

        grid-template-columns: repeat(4, minmax(180px, 1fr));

    }



    /* Responsive adjustments for layout variations */

    @media (max-width: 1024px) {

        .featured-section.layout-alternate .games-grid,

        .featured-section.layout-featured .games-grid {

            grid-template-columns: repeat(3, 1fr);

        }



        .featured-section.layout-alternate .games-grid .game-card:first-child {

            grid-column: 1 / span 2;

            grid-row: 1;

        }



        .featured-section.layout-alternate .games-grid .game-card:nth-child(2) {

            grid-column: 3;

            grid-row: 1;

        }



        .featured-section.layout-alternate .games-grid .game-card:nth-child(3) {

            grid-column: 1 / span 3;

            grid-row: 2;

        }



        .featured-section.layout-featured .games-grid .game-card:first-child {

            grid-column: 1 / span 3;

            grid-row: 1;

        }

    }



    @media (max-width: 768px) {

        .featured-section.layout-alternate .games-grid,

        .featured-section.layout-featured .games-grid,

        .featured-section.layout-grid-3col .games-grid {

            display: grid !important;

            grid-template-columns: repeat(2, 1fr);

        }



        .featured-section.layout-alternate .games-grid .game-card:first-child {

            grid-column: 1 / span 2;

            grid-row: 1;

        }



        .featured-section.layout-alternate .games-grid .game-card:nth-child(2) {

            grid-column: 1;

            grid-row: 2;

        }



        .featured-section.layout-alternate .games-grid .game-card:nth-child(3) {

            grid-column: 2;

            grid-row: 2;

        }



        .featured-section.layout-alternate .games-grid .game-card:first-child .image-container,

        .featured-section.layout-alternate .games-grid .game-card:first-child .game-info {

            width: 100%;

            padding: 5px;

        }



        .featured-section.layout-alternate .games-grid .game-card:first-child .image-container {

            aspect-ratio: 16/9;

            padding-bottom: 0;

        }



        /* Adjust featured badge for mobile */

        .featured-section.layout-alternate .games-grid .game-card:first-child .image-container::before {

            font-size: calc(var(--font-size-xs) * 0.9);

            padding: calc(var(--space-xs) * 0.8) calc(var(--space-sm) * 0.8);

            top: calc(var(--space-sm) * 0.8);

            left: calc(var(--space-sm) * 0.8);

        }



        .featured-section.layout-featured .games-grid .game-card:first-child {

            grid-column: 1 / span 1;

        }



        .featured-section.layout-featured .games-grid .game-card:hover {

            box-shadow: none;

        }



        /* Hide description for first card in mobile */

        .featured-section.layout-alternate .games-grid .game-card:first-child .game-description,

        .featured-section.layout-featured .games-grid .game-card:first-child .game-description {

            display: none;

        }



        /* 移动�?layout-horizontal 改为2列网�?*/

        .featured-section.layout-horizontal .games-grid {

            display: grid !important;

            grid-template-columns: repeat(2, 1fr);

            gap: 12px;

            padding: 10px 0;

        }



        .featured-section.layout-horizontal .games-grid .game-card {

            width: 100% !important;

            min-width: auto !important;

            height: auto;

        }





        /* Override for game title in horizontal layout on mobile */

        .featured-section.layout-horizontal .games-grid .game-card .game-info {

            display: none;

            position: relative;

            padding: unset !important;

        }

        .featured-section.layout-horizontal .games-grid .game-card .game-tags,

        .featured-section.layout-horizontal .games-grid .game-card .game-star,

        .featured-section.layout-horizontal .games-grid .game-card .game-description.game-review {

            display: none !important;

        }

        .featured-section.layout-horizontal .games-grid .game-card .game-title {

            position: absolute;

            top: -36px;

            left: 50%;

            width: 100%;

            transform: translateX(-50%) translateY(0);

            background: rgba(65, 105, 225, 0.95);

            color: white;

            padding: 6px 6px;

            font-size: calc(var(--font-size-sm) * 0.9);

            font-weight: 700;

            line-height: 1.3;

            z-index: 3;

            opacity: 1;

            transition: all 0.3s ease;

            pointer-events: none;

            -webkit-line-clamp: 2;

            line-clamp: 2;

            display: flex;

            min-height: 36px;

            white-space: nowrap;

            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

            overflow: hidden;

            text-align: center;

        }





        /* Ensure icon is visible and centered */

        .featured-section.layout-horizontal .games-grid .game-card .image-container {

            display: flex;

            align-items: center;

            justify-content: center;

            height: 100%;

            overflow: visible;

        }



        .featured-section.layout-horizontal .games-grid .game-card .image-placeholder {

            display: flex;

            align-items: center;

            justify-content: center;

            width: 100%;

            height: 100%;

        }

    }



    @media (max-width: 480px) {

        .featured-section.layout-alternate .games-grid,

        .featured-section.layout-featured .games-grid,

        .featured-section.layout-grid-3col .games-grid {

            display: grid !important;

            grid-template-columns: 1fr;

        }



        .featured-section.layout-alternate .games-grid .game-card:first-child,

        .featured-section.layout-featured .games-grid .game-card:first-child {

            grid-column: 1;

        }



        .featured-section.layout-featured .games-grid .game-card:hover {

            box-shadow: none;

        }



        /* Hide description for first card in small mobile */

        .featured-section.layout-alternate .games-grid .game-card:first-child .game-description,

        .featured-section.layout-featured .games-grid .game-card:first-child .game-description {

            display: none;

        }



        /* Adjust featured badge for small mobile */

        .featured-section.layout-alternate .games-grid .game-card:first-child .image-container::before {

            font-size: calc(var(--font-size-xs) * 0.85);

            padding: calc(var(--space-xs) * 0.7) calc(var(--space-sm) * 0.7);

            top: calc(var(--space-sm) * 0.7);

            left: calc(var(--space-sm) * 0.7);

        }



        /* 移动�?layout-horizontal 改为2列网�?*/

        .featured-section.layout-horizontal .games-grid {

            display: grid !important;

            grid-template-columns: repeat(2, 1fr);

            gap: 10px;

            padding: 10px 0;

        }



        .featured-section.layout-horizontal .games-grid .game-card {

            width: 100% !important;

            min-width: auto !important;

            height: auto;

        }





        /* Override for game title in horizontal layout on small mobile */

        .featured-section.layout-horizontal .games-grid .game-card .game-info {

            display: none;

            position: relative;

        }

        .featured-section.layout-horizontal .games-grid .game-card .game-tags,

        .featured-section.layout-horizontal .games-grid .game-card .game-star,

        .featured-section.layout-horizontal .games-grid .game-card .game-description.game-review {

            display: none !important;

        }

        .featured-section.layout-horizontal .games-grid .game-card .game-title {

            position: absolute;

            top: -5px;

            left: 50%;

            transform: translateX(-50%) translateY(0);

            background: rgba(65, 105, 225, 0.95);

            color: white;

            padding: 5px 10px;

            font-size: calc(var(--font-size-sm) * 0.85);

            font-weight: 700;

            line-height: 1.3;

            z-index: 3;

            opacity: 1;

            transition: all 0.3s ease;

            pointer-events: none;

            -webkit-line-clamp: 2;

            line-clamp: 2;

            display: flex;

            align-items: center;

            justify-content: center;

            min-height: 32px;

            max-width: 80%;

            white-space: nowrap;

            border-radius: 16px;

            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);

            border: 1px solid rgba(255, 255, 255, 0.8);

            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

            overflow: hidden;

            text-align: center;

        }



        /* Ensure icon is visible and centered */

        .featured-section.layout-horizontal .games-grid .game-card .image-container {

            display: flex;

            align-items: center;

            justify-content: center;

            height: 100%;

            z-index: 1;

            overflow: visible;

        }



        .featured-section.layout-horizontal .games-grid .game-card .image-placeholder {

            display: flex;

            align-items: center;

            justify-content: center;

            width: 100%;

            height: 100%;

        }

    }

    /* User Login Button Styles */

    .nav-user {

        display: flex;

        align-items: center;

        margin-left: auto;

        padding-left: 15px;

    }

    .user-login-btn {

        display: flex;

        align-items: center;

        gap: 6px;

        padding: 8px 16px;

        background: var(--gradient-primary);

        color: white;

        text-decoration: none;

        border-radius: var(--radius-full);

        font-size: var(--font-size-sm);

        font-weight: 600;

        transition: all var(--transition-normal);

        box-shadow: var(--shadow-sm);

    }

    .user-login-btn:hover {

        transform: translateY(-2px);

        box-shadow: var(--shadow-md);

    }

    .user-login-btn i {

        font-size: var(--font-size-base);

    }

    .user-info {

        display: flex;

        align-items: center;

        gap: 8px;

    }

    .user-name {

        color: var(--primary-color);

        font-weight: 600;

        font-size: var(--font-size-sm);

        text-decoration: none;

        padding: 6px 12px;

        background: rgba(236, 72, 153, 0.1);

        border-radius: var(--radius-full);

        transition: all var(--transition-fast);

    }

    .user-name:hover {

        background: rgba(236, 72, 153, 0.2);

    }

    .user-logout {

        display: flex;

        align-items: center;

        justify-content: center;

        width: 32px;

        height: 32px;

        background: rgba(231, 76, 60, 0.1);

        color: var(--error-color);

        border-radius: var(--radius-full);

        text-decoration: none;

        transition: all var(--transition-fast);

    }

    .user-logout:hover {

        background: rgba(231, 76, 60, 0.2);

        transform: scale(1.1);

    }

    @media (max-width: 768px) {

        .nav-user {
            order: 99;
            display: flex;
            align-items: center;
            margin-left: auto;
            padding-left: 0;
        }



        .user-login-btn span {

            display: none;

        }



        .user-login-btn {

            padding: 8px;

            border-radius: 50%;

        }

}

        .user-name {

            max-width: 80px;

            overflow: hidden;

            text-overflow: ellipsis;

            white-space: nowrap;

        }

    }

    /* ===== GameHub Carousel Styles ===== */

    .gamehub-hero-carousel {

        background: transparent;

        padding: 0;

        overflow: hidden;

    }

    .gamehub-carousel-container {

        position: relative;

        overflow: hidden;

        min-height: 320px;

    }

    .gamehub-carousel-slide {

        display: none;
        width: 100%;

    }

    .gamehub-carousel-slide.active {

        display: block;

    }

    .gamehub-carousel-slide-link {

        display: block;

        text-decoration: none;

        color: inherit;

    }

    .gamehub-carousel-slide-inner {

        display: flex;

        align-items: center;

        gap: 2rem;

        min-height: 320px;

        padding: 2rem 0;

    }

    .gamehub-carousel-content {

        flex: 1;

        max-width: 50%;

        padding: 1rem 0;

    }

    .gamehub-carousel-content h3 {

        font-size: var(--font-size-3xl);

        font-weight: 700;

        color: var(--text-primary);

        margin-bottom: 1rem;

        line-height: 1.2;

    }

    .gamehub-carousel-content p {

        font-size: var(--font-size-lg);

        color: var(--text-secondary);

        line-height: 1.6;

        margin-bottom: 1.5rem;

    }

    .gamehub-carousel-content .cyber-btn {
        display: inline-block;
        padding: 0.75rem 2rem;
        background: var(--gradient-primary, linear-gradient(135deg, #ec4899, #8b5cf6));
        color: #fff;
        border: none;
        border-radius: var(--radius-full, 50px);
        font-size: var(--font-size-sm);
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: all var(--transition-fast);
        box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    }
    .gamehub-carousel-content .cyber-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    }

    .gamehub-carousel-image-wrapper {

        flex: 1;

        max-width: 50%;

        display: flex;

        align-items: center;

        justify-content: center;

    }

    .gamehub-carousel-image {

        position: relative;

        width: 100%;

        max-width: 480px;

        aspect-ratio: 16 / 10;

        border-radius: var(--radius-lg);

        overflow: hidden;

        box-shadow: 0 8px 32px var(--shadow-color);

    }

    .gamehub-carousel-image .game-image {

        position: absolute;

        top: 0;

        left: 0;

        width: 100%;

        height: 100%;

        object-fit: cover;

        display: block;

    }

    .gamehub-carousel-prev,

    .gamehub-carousel-next {

        position: absolute;

        top: 50%;

        transform: translateY(-50%);

        z-index: 10;

        width: 44px;

        height: 44px;

        border: none;

        border-radius: 50%;

        background: var(--bg-primary);

        color: var(--text-primary);

        font-size: 1.2rem;

        cursor: pointer;

        box-shadow: 0 2px 8px var(--shadow-color);

        transition: all var(--transition-fast);

        display: flex;

        align-items: center;

        justify-content: center;

        opacity: 0.85;

    }

    .gamehub-carousel-prev {
        left: 10px;
    }

    .gamehub-carousel-next {
        right: 10px;
    }

    .gamehub-carousel-prev:hover,

    .gamehub-carousel-next:hover {

        opacity: 1;

        background: var(--primary-color);

        color: #fff;

        transform: translateY(-50%) scale(1.1);

    }

    .gamehub-carousel-indicators {

        display: flex;

        justify-content: center;

        gap: 8px;

        padding: 1rem 0;

        position: absolute;

        bottom: 0;

        left: 0;

        right: 0;

        z-index: 10;

    }

    .gamehub-carousel-indicator {

        width: 10px;

        height: 10px;

        border-radius: 50%;

        border: 2px solid var(--primary-color);

        background: transparent;

        cursor: pointer;

        padding: 0;

        transition: all var(--transition-fast);

    }

    .gamehub-carousel-indicator.active {

        background: var(--primary-color);

        transform: scale(1.2);

    }

    /* ===== Module Card & Flip Card Styles ===== */

    .game-grid {

        display: grid;

        grid-template-columns: repeat(5, 1fr);

        gap: 1rem;

        margin-bottom: 1.5rem;

    }

    .module-card {

        display: block;

        text-decoration: none;

        color: inherit;

        perspective: 1000px;

    }

    .module-card .card-inner {

        position: relative;

        width: 100%;

        padding-bottom: 100%;

        border-radius: 0;

        overflow: hidden;

        box-shadow: 0 2px 8px var(--shadow-color);

        background: transparent;
        border: 1px solid rgba(6, 182, 212, 0.2);
        clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);

    }

    .module-card:hover .card-inner {
        border-color: var(--cyber-cyan, #06b6d4);
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.2), 0 4px 12px var(--shadow-color);
    }

    .module-card .image-container {

        position: absolute;

        top: 0;

        left: 0;

        width: 100%;

        height: 100%;

    }

    .module-card .image-container .game-image {

        position: absolute;

        top: 0;

        left: 0;

        width: 100%;

        height: 100%;

        object-fit: cover;

        display: block;

    }

    .module-card .game-star {

        position: absolute;

        top: 0.5rem;

        left: 0.5rem;

        z-index: 2;

        display: flex;

        align-items: center;

        gap: 2px;

    }

    .module-card .game-star .ratingCount {

        font-size: 0.65rem;

        color: #fff;

        background: rgba(0, 0, 0, 0.5);

        padding: 0.1rem 0.3rem;

        border-radius: var(--radius-sm);

    }

    .module-card .game-title {

        position: absolute;

        bottom: 0;

        left: 0;

        right: 0;

        padding: 0.75rem;

        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));

        color: #fff;

        z-index: 2;

    }

    .module-card .game-title h3 {

        font-size: var(--font-size-sm);

        font-weight: 600;

        margin: 0;

        line-height: 1.3;

        display: -webkit-box;

        -webkit-box-orient: vertical;

        -webkit-line-clamp: 2;

        line-clamp: 2;

        overflow: hidden;

    }

    .module-card .card-back {

        display: none;

    }

    .module-card .game-featured {

        position: absolute;

        top: 0.5rem;

        right: 0.5rem;

        z-index: 3;

        background: var(--primary-color);

        color: #fff;

        font-size: 0.65rem;

        padding: 0.2rem 0.5rem;

        border-radius: var(--radius-sm);

        font-weight: 600;

        text-transform: uppercase;

        letter-spacing: 0.5px;

    }

    @media (max-width: 1024px) {

        .game-grid {

            grid-template-columns: repeat(4, 1fr);

        }

    }

    @media (max-width: 768px) {

        .gamehub-carousel-slide-inner {

            flex-direction: column;

            min-height: auto;

            padding: 0;

            gap: 0;

            position: relative;

            border-radius: var(--radius-lg);
            overflow: hidden;

        }

        .gamehub-carousel-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 1rem 2rem;
            z-index: 2;
            max-width: 100%;
            width: 100%;
            text-align: center;
        }

        .gamehub-carousel-content h3 {
            color: #fff;
            font-size: var(--font-size-2xl);
            text-shadow: 0 2px 8px rgba(0,0,0,0.8);
        }

        .gamehub-carousel-content .cyber-btn {
            display: none;
        }

        .gamehub-carousel-content p {
            display: none;
            display: none;
        }

        .gamehub-carousel-image-wrapper {

            max-width: 100%;
            width: 100%;

            flex: none;

        }

        .gamehub-carousel-image {

            max-width: 100%;
            width: 100%;

            aspect-ratio: 16 / 9;
            overflow: hidden;
            position: relative;

        }

        .gamehub-carousel-container {

            min-height: auto;

        }

        .gamehub-carousel-prev,

        .gamehub-carousel-next {

            width: 36px;

            height: 36px;

            font-size: 1rem;

        }

        .game-grid {

            grid-template-columns: repeat(2, 1fr);

            gap: 0.75rem;

        }

    }

    @media (max-width: 480px) {

        .game-grid {

            grid-template-columns: repeat(2, 1fr);

            gap: 0.5rem;

        }

        .module-card .game-title {

            padding: 0.5rem;

        }

        .hero-site-desc {
            display: none;
        }

        .module-card .game-title h3 {

            font-size: var(--font-size-xs);

        }

    }

    /* ===== Page Header & More Link ===== */

    .page-header-inner {

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 1rem;

    }

    .title-wrapper {

        display: flex;

        align-items: center;

        gap: 0.5rem;

        min-width: 0;

    }

    .title-wrapper h2 {

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }