/* CSS Variables - Modern Design System */

:root {

    /* Colors */

    --primary-color: #06b6d4;

    --primary-dark: #0891b2;

    --primary-light: #67e8f9;

    --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;

    /* Phoenix Template Specific Variables */

    --phoenix-orange: #f97316;

    --phoenix-orange-dark: #ea580c;

    --phoenix-orange-light: #fb923c;

    --phoenix-bg: #ffffff;

    --phoenix-bg-alt: #fff7ed;

    --phoenix-text: #1c1917;

    --phoenix-text-muted: #78716c;

    --phoenix-border: #fed7aa;

    --phoenix-shadow: rgba(249, 115, 22, 0.22);

    --phoenix-radius: 8px;

    --phoenix-gap: 12px;

    --phoenix-transition: 0.32s ease-in-out;

}

/* 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(--phoenix-bg-alt);

    background-image:
        /* feather/chevron pattern */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='60'%3E%3Cpath d='M10 30 L30 10 L50 30 L30 50Z' fill='rgba(249,115,22,0.04)'/%3E%3Cpath d='M50 10 L70 30 L50 50' fill='none' stroke='rgba(249,115,22,0.04)' stroke-width='2'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 30% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 25px, rgba(249, 115, 22, 0.06) 25px, rgba(249, 115, 22, 0.06) 26px);

    background-attachment: fixed;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden;

}

.home-main {

    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(255, 247, 237, 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(255, 247, 237, 0.92);

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

}

/* Phoenix Nav Links - warm underline with orange */
html body .header .nav-link {
    padding: 8px 10px;
    transition: all 0.32s ease-in-out;
}

html body .header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--phoenix-orange), var(--phoenix-orange-light));
    border-radius: 2px;
    transition: width 0.32s ease-in-out;
}

html body .header .nav-link:hover {
    color: var(--phoenix-orange) !important;
    background: rgba(249, 115, 22, 0.05) !important;
}

html body .header .nav-link:hover::after {
    width: 100%;
}

html body .header .nav-link.active {
    color: var(--phoenix-orange) !important;
    font-weight: 600;
    background: none !important;
}

html body .header .nav-link.active::after {
    width: 100%;
}

/* Footer */

.footer {

    background: var(--phoenix-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;

    }

}

/* Phoenix Template Specific Styles */

.phoenix-card,
.phoenix-tile,
[class*="phoenix-related"] a,
[class*="phoenix-details"] a {

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

    border-radius: var(--phoenix-radius) !important;

}

.phoenix-card:hover,
.phoenix-tile:hover,
[class*="phoenix-related"] a:hover,
[class*="phoenix-details"] a:hover {

    border-color: var(--phoenix-orange) !important;

    box-shadow: 0 5px 18px var(--phoenix-shadow) !important;

    outline: 2px solid rgba(249, 115, 22, 0.35) !important;

    outline-offset: 3px !important;

}

/* Phoenix Home Page: Featured Carousel */
.phoenix-featured-carousel {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.phoenix-container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding);
}

.phoenix-carousel-container {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.phoenix-carousel-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.phoenix-slide {
    display: block;
    width: 100%;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.phoenix-slide.phoenix-active {
    height: auto;
    overflow: visible;
    opacity: 1;
}

.phoenix-slide-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 320px;
    padding: 1rem 0;
}

.phoenix-content {
    flex: 1;
    max-width: 50%;
    padding: 1rem 0;
    order: 2;
}

.phoenix-content h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.phoenix-content p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
        display: none;
}

.phoenix-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.phoenix-btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
}

.phoenix-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.phoenix-image-wrapper {
    flex: 1;
    max-width: 50%;
    display: flex;
    order: 1;
}

.phoenix-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.phoenix-carousel-prev,
.phoenix-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;
}

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

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

.phoenix-carousel-prev:hover,
.phoenix-carousel-next:hover {
    opacity: 1;
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.phoenix-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1rem 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    margin-left: 16%;
}

.phoenix-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);
}

.phoenix-indicator.phoenix-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.phoenix-indicator:hover {
    background: var(--primary-light);
}

/* Phoenix Home Page: Category Sections */
.phoenix-category-section {}

.phoenix-category-section--grid {
    background: transparent;
}

.phoenix-category-section--vertical-grid {
    background: transparent;
}

.phoenix-page-header {
    position: relative;
    margin-bottom: var(--space-xl);
}

.phoenix-page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.phoenix-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.phoenix-title-wrapper h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    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;
}

.phoenix-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.phoenix-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);
}

.phoenix-more-link:hover {
    background-color: var(--background-secondary);
    text-decoration: none;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.phoenix-section-desc {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin: var(--space-sm) 0 0 0;
    line-height: 1.6;
    max-width: 100%;
    text-align: left;
}

.phoenix-game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.phoenix-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);
}

.phoenix-game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.75rem 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    z-index: 2;
    text-align: center;
}
.phoenix-game-title h3 {
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Phoenix Card Inner (flip card) */
.phoenix-card-inner {
    position: relative;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 2px 8px var(--shadow-color);
    background: var(--bg-primary);
    overflow: hidden;
}

.phoenix-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--phoenix-orange, #f97316), var(--phoenix-orange-light, #fb923c), #fbbf24, var(--phoenix-orange, #f97316));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: phoenixBorderGlow 3s ease infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes phoenixBorderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.phoenix-card:hover .phoenix-card-inner {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.25), 0 2px 8px var(--shadow-color);
}

.phoenix-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 62.5%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* Hover overlay play button */
.phoenix-card-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    border-radius: var(--radius-lg);
}

.phoenix-card:hover .phoenix-card-play-overlay {
    opacity: 1;
}

.phoenix-card-play-btn {
    display: block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--phoenix-orange, #f97316), #ea580c);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.phoenix-card:hover .phoenix-card-play-btn {
    transform: scale(1.15);
}

/* Remove flip card styles */
.phoenix-card-back,
.phoenix-card-back-image,
.phoenix-card-back-content,
.phoenix-card-back-play {
    display: none;
}

/* Phoenix Scroll Wrapper */
.phoenix-grid-wrapper {
    position: relative;
}

.phoenix-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.phoenix-scroll-left {
    left: -12px;
}

.phoenix-scroll-right {
    right: -12px;
}

.phoenix-scroll-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.phoenix-scroll-btn.phoenix-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Phoenix Tags Page classes */
.phoenix-content-wrap {
    margin-top: 70px;
    min-height: 400px;
    overflow-x: hidden;
}

.phoenix-hero-area {
    background: var(--gradient-primary);
    padding: 4rem 0 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phoenix-hero-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" patternUnits="userSpaceOnUse" width="20" height="20" patternTransform="rotate(45)"><rect width="10" height="20" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23p)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.phoenix-hero-area .container {
    position: relative;
    z-index: 1;
    padding-top: 31px;
}

.phoenix-hero-area h1 {
    font-size: var(--font-size-4xl);
    margin: 0 0 0.75rem 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.phoenix-hero-area p {
    font-size: var(--font-size-xl);
    margin: 0;
    opacity: 0.95;
    font-weight: 300;
}

.phoenix-tag-section {
    background: transparent;
    padding: 20px 0;
}

.phoenix-category-bar {
    margin-bottom: 2rem;
}

.phoenix-category-title {
    padding-bottom: 20px;
}

.phoenix-category-title h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.phoenix-section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.phoenix-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.phoenix-games-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.phoenix-pagination-wrap {
    margin-top: 1rem;
}

.phoenix-back-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.phoenix-back-top.show {
    opacity: 1;
    visibility: visible;
}

.phoenix-title-wrap {
    padding: 12px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.phoenix-title-wrap h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Phoenix Responsive for Carousel & Sections */
@media (max-width: 1024px) {
    .phoenix-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .phoenix-games-grid {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .phoenix-slide-inner {
        flex-direction: column;
        min-height: auto;
        padding: 0;
        gap: 0;
        position: relative;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .phoenix-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;
    }

    .phoenix-content h3 {
        color: #fff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    .phoenix-content .phoenix-btn {
        display: none;
    }

    .phoenix-content {
        max-width: 100%;
        text-align: center;
    }

    .phoenix-content h3 {
        font-size: var(--font-size-2xl);
    }

    .phoenix-content p {
        display: none;
        display: none;
    }

    .phoenix-image-wrapper {
        max-width: 100%;
        width: 100%;
        flex: none;
    }

    .phoenix-image {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        position: relative;
    }
    .phoenix-image .game-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .phoenix-carousel-container {
        min-height: auto;
    }

    .phoenix-carousel-prev,
    .phoenix-carousel-next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .phoenix-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .phoenix-page-header-inner {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .phoenix-title-wrapper h2 {
        font-size: var(--font-size-2xl);
    }

    .phoenix-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .phoenix-hero-area {
        padding: 2.5rem 0 2rem;
    }

    .phoenix-hero-area h1 {
        font-size: var(--font-size-2xl);
    }

    .phoenix-hero-area p {
        font-size: var(--font-size-base);
    }

    .phoenix-button-group {
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .phoenix-content h3 {
        font-size: var(--font-size-xl);
    }

    .phoenix-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .phoenix-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .phoenix-category-title h1 {
        font-size: var(--font-size-lg);
    }

    .phoenix-section-subtitle {
        font-size: var(--font-size-sm);
    }
}

.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);

}

.filter-controls {

    display: flex;

    justify-content: center;

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

}

.filter-tags-container {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: var(--space-sm);

}

.filter-tags-label {

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

    font-weight: 600;

    color: var(--text-primary);

    margin-bottom: calc(var(--space-xs) * -1);

}

.filter-tags {

    display: flex;

    flex-wrap: wrap;

    gap: var(--space-sm);

    justify-content: flex-start;

}

.filter-tag {

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

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

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

    background: transparent;

    color: var(--primary-color);

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

    font-weight: 500;

    cursor: pointer;

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

    white-space: nowrap;

    line-height: 1;

    position: relative;

    overflow: hidden;

}

.filter-tag::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: var(--gradient-primary);

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

    z-index: -1;

}

.filter-tag:hover {

    color: white;

    transform: translateY(-2px);

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

}

.filter-tag:hover::before {

    left: 0;

}

.filter-tag.active {

    background: var(--gradient-primary);

    color: white;

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

    transform: translateY(-1px);

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

}

.filter-tag.active::before {

    left: 0;

}

/* Games Grid */

.games-grid {

    display: grid;

    grid-template-columns: repeat(4, 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.lazyload+.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;

    }

}

.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);

}

.section-description {

    text-align: center;

    color: var(--text-secondary);

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

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

    max-width: 600px;

    margin-left: auto;

    margin-right: auto;

}

/* Category Sections */

.arcade-section .section-title {

    color: #ff6b6b;

}

.multiplayer-section .section-title {

    color: #06b6d4;

}

.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 */

    .filter-controls {

        flex-direction: column;

        gap: var(--space-md);

        width: 100%;

    }



    .filter-tags-container {

        width: 100%;

    }



    .filter-tags-label {

        text-align: center;

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

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

    }



    .filter-tags {

        justify-content: center;

        max-width: none;

        gap: var(--space-sm);

        overflow-x: auto;

        padding: var(--space-xs);

        justify-content: flex-start;

    }



    .filter-tag {

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

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

        flex-shrink: 0;

    }



    /* 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-section:not(.layout-horizontal) .games-grid .game-card {

        width: auto;

    }



    .featured-grid {

        display: flex;

        flex-wrap: wrap;

        gap: 10px;

        justify-content: center;

    }



    .featured-grid .game-card {

        width: calc(50% - 30px);

        min-width: auto;

        max-width: none;

        margin: 0;

    }



    .game-card {

        max-width: 200px;

        margin: 0 auto;

    }



    .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-md);

        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);

    }



    .load-more-btn {

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

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

        min-height: 44px;

        width: 100%;

        max-width: 200px;

    }



    /* Loading States */

    .loading-shimmer {

        min-height: 200px;

    }

}

@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);

    }



    .filter-tag {

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

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

    }



    .featured-section,

    .arcade-section,

    .multiplayer-section,

    .strategy-section,

    .all-games-section {

        padding: 5px 0;

    }



    .load-more-btn {

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

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

        min-height: 40px;

        width: 100%;

        max-width: 180px;

    }



    .page-header h2 {

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

    }



    .page-header p {

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

    }

    .more-link {

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

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

        min-width: auto;

    }

}

/* 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(4, 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(6, 182, 212, 0.1);

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

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

}

.user-name:hover {

    background: rgba(6, 182, 212, 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;

    }

}

/* ===== Featured Carousel Styles ===== */

.featured-carousel {

    background: var(--bg-secondary);

    padding: 0;

    overflow: hidden;

}

.featured-carousel .carousel-container {

    position: relative;

    overflow: hidden;

    min-height: 320px;

}

.featured-carousel .carousel-slide {

    display: none;

    width: 100%;

}

.featured-carousel .carousel-slide.active {

    display: block;

}

.featured-carousel .carousel-slide-link {

    display: block;

    text-decoration: none;

    color: inherit;

}

.featured-carousel .carousel-slide-inner {

    display: flex;

    align-items: center;

    gap: 2rem;

    min-height: 320px;

    padding: 2rem 0;

}

.featured-carousel .carousel-content {

    flex: 1;

    max-width: 50%;

    padding: 1rem 0;

}

.featured-carousel .carousel-content h3 {

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

    font-weight: 700;

    color: var(--text-primary);

    margin-bottom: 1rem;

    line-height: 1.2;

}

.featured-carousel .carousel-content p {

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

    color: var(--text-secondary);

    line-height: 1.6;

    margin-bottom: 1.5rem;

}

.featured-carousel .carousel-image-wrapper {

    flex: 1;

    max-width: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

}

.featured-carousel .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);

}

.featured-carousel .carousel-image .game-image {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

.featured-carousel .carousel-prev,

.featured-carousel .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;

}

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

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

.featured-carousel .carousel-prev:hover,

.featured-carousel .carousel-next:hover {

    opacity: 1;

    background: var(--primary-color);

    color: #fff;

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

}

.featured-carousel .carousel-indicators {

    display: flex;

    justify-content: center;

    gap: 8px;

    padding: 1rem 0;

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    z-index: 10;

}

.featured-carousel .carousel-indicators .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);

}

.featured-carousel .carousel-indicators .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%;

    transition: transform 0.6s ease;

    transform-style: preserve-3d;

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

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

    background: var(--bg-primary);

}

.module-card:hover .card-inner {

    transform: rotateY(180deg);

}

.module-card .image-container {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

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

    overflow: hidden;

}

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

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

.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;

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

}

.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 .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;

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

}

.module-card .card-back {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

    transform: rotateY(180deg);

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

    overflow: hidden;

    background: var(--bg-primary);

}

.card-back-image {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

.module-card .card-back-content {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    padding: 0.75rem;

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

    z-index: 2;

}

.module-card .card-back-content h3 {

    color: #fff;

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

    font-weight: 600;

    margin: 0;

    line-height: 1.3;

}

@media (max-width: 1024px) {

    .game-grid {

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

    }

}

@media (max-width: 768px) {

    .featured-carousel .carousel-slide-inner {

        flex-direction: column;

        min-height: auto;

        padding: 1.5rem 1rem;

        gap: 1rem;

    }

    .featured-carousel .carousel-content {

        max-width: 100%;

        text-align: center;

    }

    .featured-carousel .carousel-content h3 {

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

    }

    .featured-carousel .carousel-image-wrapper {

        max-width: 100%;

    }

    .featured-carousel .carousel-image {

        max-width: 100%;

        aspect-ratio: 16 / 9;

    }

    .featured-carousel .carousel-container {

        min-height: auto;

    }

    .featured-carousel .carousel-prev,

    .featured-carousel .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);

    }

    .module-card .card-back-content h3 {

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

    }

}

/* ===== 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;

}