/* CSS Variables for Theming */
:root {
    --bg: #141628;
    --card: rgba(25, 30, 50, 0.7);
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #f59e0b;
    
    --bg-grad-1: rgba(139, 92, 246, 0.25);
    --bg-grad-2: rgba(56, 189, 248, 0.2);
    --bg-grid: rgba(255, 255, 255, 0.04);
    --bg-stripes: rgba(139, 92, 246, 0.02);
    
    --header-bg: rgba(30, 41, 59, 0.85);
    --modal-bg: rgba(15, 23, 42, 0.95);
    --widget-bg: rgba(15, 23, 42, 0.8);
    
    --hero-overlay-start: rgba(0, 0, 0, 0.4);
    --hero-overlay-end: rgba(0, 0, 0, 0.8);
    --hero-text: #fff;
    --hero-text-shadow: var(--text-neon);
    --hero-p-color: #e2e8f0;
    --hero-p-shadow: 0 2px 8px rgba(0,0,0,0.9);
    
    --hero-search-bg: rgba(255, 255, 255, 0.15);
    --hero-search-border: rgba(255, 255, 255, 0.2);
    --hero-search-color: #fff;

    /* Shadows for Dark Mode */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
    --shadow-glow: 0 10px 25px rgba(99, 102, 241, 0.5), 0 0 15px rgba(99, 102, 241, 0.3);
    --shadow-neon: 0 0 20px rgba(139, 92, 246, 0.4), inset 0 0 10px rgba(139, 92, 246, 0.2);
    --text-neon: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 15px var(--primary);
    --hero-glow: 0 0 30px rgba(99, 102, 241, 0.4), inset 0 0 20px rgba(99, 102, 241, 0.2);
    --hero-border: rgba(99, 102, 241, 0.8);
}



/* Reset and Base Styles */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 20% 40%, var(--bg-grad-1) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, var(--bg-grad-2) 0%, transparent 40%),
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
        repeating-linear-gradient(45deg, transparent, transparent 2px, var(--bg-stripes) 2px, var(--bg-stripes) 4px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    background-attachment: fixed;
    color: var(--text); 
    line-height: 1.5; 
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header & Navigation */
header { 
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    padding: 1.25rem 3rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100;
}

header.scrolled {
    background: rgba(20, 22, 40, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.top-nav {
    display: flex;
    gap: 2rem;
    margin-left: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.top-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.top-nav a:hover {
    color: var(--text);
    text-shadow:  0 0 10px rgba(255, 255, 255, 0.4);
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 900; 
    color: var(--text); 
    text-decoration: none; 
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}



.search-bar { 
    padding: 0.75rem 1.25rem; 
    border-radius: 30px; 
    border: 1px solid var(--border); 
    background: rgba(255, 255, 255, 0.1); 
    color: var(--text); 
    width: 100%; 
    max-width: 450px; 
    outline: none; 
    transition: all 0.2s ease; 
    font-size: 0.95rem;
}

.search-bar:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Layout */
.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 2rem 1.5rem; 
}

/* Hero Section */

.hero {
    position: relative;
    text-align: center;
    padding: 3.5rem 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.hero:hover {
    border-color: #6366f1;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5; /* Dim the video */
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(0,0,0,0.9);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 100%;
}

.hero h1 { 
    font-size: 4rem; 
    margin-bottom: 1.5rem; 
    font-weight: 900;
    color: var(--hero-text);
    text-shadow: var(--hero-text-shadow);
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-highlight {
    background: linear-gradient(135deg, #60a5fa, #c084fc); 
    -webkit-background-clip: text; 
    color: transparent; 
}

.hero p { 
    color: #e2e8f0; 
    font-size: 1.25rem; 
    max-width: 600px; 
    margin: 0 auto 2.5rem auto; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #c084fc);
    color: #fff;
    padding: 1.1rem 3rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
}

.hero-cta:hover {    transform: translateY(-4px);    box-shadow: var(--shadow-glow);}.hero-interactive {    margin: 2rem auto;    max-width: 600px;    display: flex;    flex-direction: column;    gap: 1.5rem;    align-items: center;}.hero-search-bar { width: 100%; padding: 1rem 1.5rem; border-radius: 30px; border: 1px solid var(--hero-search-border); background: var(--hero-search-bg); color: var(--hero-search-color); font-size: 1.1rem; backdrop-filter: blur(10px); transition: all 0.3s ease; text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.hero-search-bar:hover {
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    background: var(--card); 
    color: var(--text);
}
.hero-search-bar:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: var(--card); 
    color: var(--text); 
    animation: inputGlowPulse 2s infinite ease-in-out;
}
.hero-nav-categories {    display: flex;    flex-wrap: wrap;    gap: 0.8rem;    justify-content: center;}.hero-cat-btn { padding: 0.5rem 1.2rem; border-radius: 20px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; backdrop-filter: blur(5px); border: 1px solid var(--border); transition: all 0.2s ease; }.hero-cat-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    animation: btnGlowPulse 1.5s infinite ease-in-out;
}

/* Category Filters */
.categories { 
    display: flex; 
    gap: 0.75rem; 
    justify-content: center; 
    margin-bottom: 2rem; 
    flex-wrap: wrap; 
}

.category-btn { 
    background: var(--card); 
    border: 1px solid var(--border); 
    color: var(--text); 
    padding: 0.6rem 1.5rem; 
    border-radius: 30px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: all 0.2s ease; 
    font-size: 0.95rem;
}

.category-btn:hover, .category-btn.active { 
    background: var(--primary); 
    border-color: var(--primary); 
    transform: translateY(-2px);
    animation: btnGlowPulse 1.5s infinite ease-in-out;
}

/* Sections */
.section {
    margin-bottom: 4rem;
}
.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}
.section-header h2 {
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    background: var(--widget-bg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5); /* extra visibility */
    backdrop-filter: blur(10px);
    color: #ffffff; /* full bright opaque */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: fit-content;
    margin: 0 auto;
    transition: all 0.3s ease;
    cursor: default;
}

.section-header h2::before,
.section-header h2::after {
    content: "🎮";
    font-size: 1.5rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
    transition: transform 0.3s ease;
}

.section-header h2:hover::before {
    transform: rotate(-15deg) scale(1.1);
}

.section-header h2:hover::after {
    transform: rotate(15deg) scale(1.1);
}

.section-header h2:hover {
    transform: scale(1.05) translateY(-2px);
    color: var(--text);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.05);
}


.more-games-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}
.more-btn {
    background: linear-gradient(135deg, var(--primary), #c084fc);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow);
}
.more-btn:hover {
    transform: translateY(-3px) ;
    box-shadow: var(--shadow-glow);
}

/* Small Games Grid (Like Poki) */
.games-grid, .featured-grid, .all-games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }

@media (min-width: 640px) {
    .games-grid, .featured-grid, .all-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
    }
}

.game-card:hover .game-card:hover .tag {
    display: none; 
}

.featured-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #f59e0b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 3;
}

.tag { 
    display: none; 
}

.featured-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #f59e0b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
}

/* Empty State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    background: var(--card);
    border-radius: 16px;
    border: 1px dashed var(--border);
}

/* Game Details Page */
.back-btn {
    position: relative;
    margin-bottom: 2rem;
    z-index: 50;
    background: rgba(20, 22, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.game-details { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 2rem; 
}

.game-player { 
    background: #000; 
    border-radius: 16px; 
    overflow: hidden; 
    position: relative; 
    aspect-ratio: 16 / 9; 
    border: 1px solid var(--border);
}

.game-banner { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    /* opacity: 0.6; */
    /* filter: brightness(0.7); */
    transition: all 0.3s ease;
}
.game-player:hover .game-banner {
    /* opacity: 0.8; */
    /* filter: brightness(0.9); */
}

.play-overlay { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.play-btn { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 1.25rem 3rem; 
    font-size: 1.25rem; 
    font-weight: 800; 
    border-radius: 40px; 
    cursor: pointer; 
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; 
    box-shadow: var(--shadow-glow);
}

.play-btn:hover { 
    transform: ; 
    background: var(--primary-hover); 
}

.game-info-full { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 2rem; 
}

.game-info-full h1 { 
    font-size: 2.25rem; 
    margin-bottom: 1rem; 
    font-weight: 900;
}

.game-meta-full { 
    display: flex; 
    gap: 1.5rem; 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
    font-size: 0.95rem; 
    flex-wrap: wrap; 
    font-weight: 600;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.game-info-full h2 { 
    font-size: 1.25rem; 
    margin-bottom: 1rem; 
    color: var(--text); 
}

.game-info-full p { 
    color: var(--text-muted); 
    line-height: 1.7; 
}

.game-rules {
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1rem;
    padding-left: 1.25rem;
}

.game-rules li {
    margin-bottom: 0.5rem;
}

/* Game Modal Styles */
.game-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1000;
    flex-direction: column;
}

.game-modal.active {
    display: flex;
}

.game-modal-header {
    height: 70px;
    border-bottom: 2px solid var(--primary);
    background: var(--modal-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.game-modal-header h2 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.5px;
}

.game-controls {
    display: flex;
    gap: 0.75rem;
}

.control-btn {
    background: var(--border);
    border: none;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s;
}

.control-btn svg {
    width: 18px;
    height: 18px;
}

.control-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.exit-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.exit-btn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.game-modal-body {
    flex: 1;
    position: relative;
    background: #000;
    min-height: 0;
    overflow: hidden;
}

.game-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: #000;
    display: block;
}

/* SEO Footer */
.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}
.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}
.footer-col a:hover {
    color: var(--primary);
}
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 860px) {
    .header-left {
        flex-direction: column;
        gap: 1rem;
    }
    .top-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .game-details { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .search-bar { 
        max-width: 100%; 
    }
    .hero h1 {
        font-size: 2.25rem;
    }
}

/* Theme Toggle Button */








@keyframes inputGlowPulse {
    0% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); border-color: var(--primary); }
    50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.8); border-color: #a78bfa; }
    100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); border-color: var(--primary); }
}

@keyframes btnGlowPulse {
    0% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.8); background-color: var(--primary-hover); border-color: #a78bfa; }
    100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.4); }
}

@keyframes wiggleConsole {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-15deg) scale(1.2); }
    50% { transform: rotate(15deg) scale(1.2); }
    75% { transform: rotate(-10deg) scale(1.2); }
    100% { transform: rotate(0deg) scale(1); }
}



@media (max-width: 1024px) {
    .top-nav {
        gap: 1.5rem;
        margin-left: 1.5rem;
    }
    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-left {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    .top-nav {
        flex-wrap: wrap;
        margin-left: 0;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
}


.game-card { 
    background: var(--card); 
    border-radius: 20px; 
    overflow: hidden; 
    border: 2px solid transparent; 
    text-decoration: none; 
    color: inherit; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
}

.game-card:hover { 
    transform: translateY(-10px) scale(1.05); 
    border-color: var(--primary); 
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4), 0 0 20px rgba(99, 102, 241, 0.2); 
    z-index: 10;
}

/* Shine effect */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    z-index: 5;
    transition: none;
    pointer-events: none;
}

.game-card:hover::after {
    animation: cardShine 0.7s ease-out forwards;
}

@keyframes cardShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.game-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--border);
    z-index: 1;
}

/* Vignette and Gradient Overlay */
.game-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.8) 120%);
    z-index: 2;
    pointer-events: none;
    transition: all 0.4s ease;
}

.game-image-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.game-card:hover .game-image-wrapper::after {
    background: radial-gradient(circle, transparent 30%, rgba(99, 102, 241, 0.4) 100%);
}

.game-image {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.game-card:hover .game-image {
    transform: scale(1.2) rotate(3deg);
    filter: brightness(1.1) contrast(1.1);
}

.img-overlay { display: none; }

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0.75rem 0.75rem 0.75rem;
    background: transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 3;
    pointer-events: none;
}

.game-title {
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    color: #fff;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
    width: 100%;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover .game-title {
    color: var(--accent);
    transform: translateY(-4px) scale(1.05);
}

.game-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.game-card:hover .game-meta {
    opacity: 1;
    transform: translateY(-2px);
}

.featured-badge {
    z-index: 10 !important;
}



@keyframes floatHUD {
    0% { transform: translateY(0px); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    50% { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
    100% { transform: translateY(0px); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
}

.hud-box, .game-modal.active .hud-box, .game-modal.active .game-controls {
    animation: floatHUD 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hud-box, .game-controls {
    background: rgba(20, 22, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 0.5rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}


/* Custom Hero Layout for Game Details */

.game-details-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 1rem;
    margin-bottom: 3rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.game-details-hero:hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) blur(2px);
    transform: scale(1.05);
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20, 22, 40, 0.95) 0%, rgba(20, 22, 40, 0.6) 50%, rgba(20, 22, 40, 0.2) 100%),
                linear-gradient(to top, rgba(20, 22, 40, 1) 0%, transparent 40%);
    box-shadow: inset 0 0 120px rgba(0,0,0,0.9);
}

.hero-content-overlay {
    position: relative;
    z-index: 10;
    padding: 2rem 3rem;
    max-width: 100%;
    margin-top: 0;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
    font-weight: 600;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.breadcrumbs .active {
    color: #fff;
}

.game-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tag-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
}

.tag-badge.paid {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.tag-badge.bonus {
    background: #f97316;
}

.main-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.meta-row .dot {
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
}

.input-info {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-info .icons {
    display: flex;
    gap: 0.5rem;
    color: #fff;
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-play-btn {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.hero-play-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.playable-via-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .hero-content-overlay { padding: 1.5rem; }
    .hero-actions-row { flex-direction: column; align-items: flex-start; }
}

/* About Game Section Styles */
.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.about-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, #10b981, transparent);
    margin-left: 1.5rem;
    opacity: 0.5;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
}

.game-desc-clamped {
    max-height: 180px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.game-desc-expanded {
    display: block;
    margin-bottom: 0;
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.read-more-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.read-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.meta-card {
    background: rgba(20, 25, 22, 0.7);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
}

.meta-item {
    display: flex;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-item:first-child {
    padding-top: 0;
}

.meta-label {
    width: 140px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.meta-value {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    flex: 1;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Game Controls Visuals */
.game-controls-visuals {
    margin-top: 3.5rem;
    background: rgba(20, 25, 22, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    padding: 2rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.keys-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    height: 70px;
    justify-content: flex-end;
}

.key-row {
    display: flex;
    gap: 0.4rem;
}

.keycap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.2);
    border-bottom: 4px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
    cursor: default;
}

.keycap:active, .keycap:hover {
    transform: translateY(3px);
    border-bottom-width: 1px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    background: linear-gradient(180deg, rgba(16,185,129,0.15) 0%, rgba(16,185,129,0.05) 100%);
    border-color: rgba(16,185,129,0.4);
    color: #10b981;
}

.keycap.spacebar {
    width: 130px;
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.control-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    text-align: center;
}

.mouse-visual {
    padding-bottom: 0.2rem;
}

.mouse-icon {
    color: rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
    transition: all 0.2s ease;
}

.mouse-visual:hover .mouse-icon {
    color: #10b981;
    transform: scale(1.05);
}

/* Compact Controls Widget */
.game-controls-compact {
    margin-bottom: 1.5rem;
}

.controls-widget-compact {
    background: rgba(20, 25, 22, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    display: inline-block;
    min-width: 300px;
    max-width: 100%;
}

.controls-widget-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.controls-widget-body {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.compact-control-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compact-keys {
    display: flex;
    gap: 0.3rem;
}

.compact-keys kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.3rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.2);
    border-bottom: 3px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.compact-keys kbd.spacebar-small {
    min-width: 60px;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.compact-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Platform Split Controls CSS */
.controls-split {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 600px) {
    .controls-split {
        flex-direction: row;
        align-items: stretch;
    }
}

.controls-platform {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform-divider {
    width: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 1rem;
    display: none;
}

@media (min-width: 600px) {
    .platform-divider {
        display: block;
    }
}

.platform-title {
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding-bottom: 0.5rem;
}

.platform-controls-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mobile Specific Visuals */
.mobile-btn-visual {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.joystick-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.joystick-icon::after {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
}

.action-btn-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5), inset 0 2px 4px rgba(255,255,255,0.3);
}

.swipe-icon {
    position: relative;
}

.swipe-icon::after {
    content: '↔';
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.logo:hover .console-icon {
    animation: wiggleConsole 0.6s ease-in-out forwards;
    display: inline-block;
}

/* NEW SEO Footer */
.site-footer-new {
    background: #1e1e1e;
    color: #ffffff;
    padding: 4rem 2rem 1.5rem;
    margin-top: 5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 10;
}
.footer-grid-new {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 1.5fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col-new h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #ffffff;
}
.footer-col-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col-new ul li {
    margin-bottom: 0.8rem;
}
.footer-col-new ul li a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-col-new ul li a:hover {
    color: #ffffff;
}
.footer-col-social h4 {
    margin-bottom: 1rem;
}
.social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #10b981;
    border-radius: 50%;
    color: #1e1e1e;
    text-decoration: none;
    transition: transform 0.2s;
}
.social-icon:hover {
    transform: scale(1.1);
}
.social-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}
.app-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.app-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    gap: 0.75rem;
    transition: border-color 0.2s;
}
.app-btn:hover {
    border-color: #fff;
}
.app-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    stroke: none;
}
.app-btn-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.app-btn-texts small {
    font-size: 0.65rem;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0.8;
}
.app-btn-texts strong {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}
.footer-bottom-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 1.5rem auto 0;
    color: #b3b3b3;
    font-size: 0.95rem;
}
.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-logo-icon {
    width: 36px;
    height: 36px;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}
.footer-bottom-right a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom-right a:hover {
    color: #fff;
}
.footer-bottom-right .divider {
    margin: 0 0.75rem;
    opacity: 0.5;
}

@media (max-width: 1200px) {
    .footer-grid-new {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}
@media (max-width: 768px) {
    .footer-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom-new {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-bottom-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    .app-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 480px) {
    .footer-grid-new {
        grid-template-columns: 1fr;
    }
}

/* --- Masterpiece Section --- */
.masterpiece-wrapper {
    margin: 6rem 0 2rem;
    padding: 0 1rem;
}

.masterpiece-section {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.masterpiece-video {
    width: 100%;
    height: 450px;
    object-fit: cover;
    opacity: 0.8;
}

.masterpiece-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(20,22,40,0.95) 0%, rgba(20,22,40,0.2) 100%);
    display: flex;
    align-items: center;
    padding: 4rem;
}

.masterpiece-content {
    max-width: 600px;
}

.badge-glow {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.masterpiece-content h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    letter-spacing: -1px;
}

.masterpiece-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.car-animation-container {
    position: relative;
    width: 100%;
    height: 80px;
    margin-top: 3rem;
    border-bottom: 2px dashed rgba(255,255,255,0.15);
    overflow: hidden;
}

.animated-car {
    position: absolute;
    bottom: -5px;
    left: -100px;
    font-size: 3rem;
    animation: driveCar 8s linear infinite;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.8));
    z-index: 5;
}

@keyframes driveCar {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(30, 30, 46, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(30, 30, 46, 0.8);
}

.f-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .feature-cards { grid-template-columns: repeat(2, 1fr); }
    .masterpiece-overlay { padding: 3rem 2rem; }
    .masterpiece-content h2 { font-size: 2.2rem; }
}
@media (max-width: 600px) {
    .feature-cards { grid-template-columns: 1fr; }
    .masterpiece-video { height: 500px; }
    .masterpiece-overlay { background: linear-gradient(to top, rgba(20,22,40,0.95) 0%, rgba(20,22,40,0.6) 100%); align-items: flex-end; padding: 2rem; }
    .masterpiece-content h2 { font-size: 1.8rem; }
}

/* --- Deep Dive Section --- */
.deep-dive-section {
    margin: 6rem 0 2rem;
    padding: 0 1rem;
}

.deep-dive-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    background: rgba(30, 30, 46, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    overflow: hidden;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.dd-text-content {
    flex: 1;
}

.dd-text-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.dd-text-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.dd-features {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.dd-features li {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dd-features li::before {
    content: '⚡';
    background: rgba(255,255,255,0.1);
    padding: 0.4rem;
    border-radius: 50%;
    font-size: 0.9rem;
}

.dd-media {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    height: 400px;
}

.dd-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.dd-media:hover .dd-video {
    opacity: 1;
}

.dd-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,22,40,0.9), transparent);
    pointer-events: none;
}

@media(max-width: 900px) {
    .deep-dive-content {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }
    .dd-media {
        width: 100%;
        height: 300px;
    }
    .dd-text-content h2 {
        font-size: 2.2rem;
    }
}

/* All Games Category Hero */
@media(max-width: 600px) {
    #cat-hero-title {
        font-size: 2.5rem !important;
    }
    #cat-hero-desc {
        font-size: 1rem !important;
    }
}

/* --- Vision Section --- */
.vision-section {
    margin: 4rem 0 6rem;
    padding: 0 1rem;
}

.vision-container {
    max-width: 100%;
    margin: 0 auto;
    background: rgba(20, 22, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.vision-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, #6366f1, #f43f5e, #f59e0b);
}

.vision-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.vision-paragraph {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.vision-paragraph:last-child {
    margin-bottom: 0;
}

.vision-paragraph strong {
    color: #e2e8f0;
    font-weight: 700;
}

/* --- Bottom Features Section --- */
.bottom-features-section {
    margin: 2rem 0 6rem;
    padding: 0 1rem;
}

@media(max-width: 900px) {
    .vision-container {
        padding: 2.5rem 1.5rem;
    }
    .vision-title {
        font-size: 2.2rem;
    }
}


/* All Games Category Hero */
.category-hero {
    position: relative;
    width: 100%;
    height: 35vh;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.category-hero:hover {
    border-color: #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.category-hero 
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5; /* Dim the video */
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,22,40,0.2), rgba(20,22,40,0.9));
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(0,0,0,0.9);
}

.category-hero-content {
    position: relative;
    z-index: 10;
    padding: 0 2rem;
}

#cat-hero-title {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

#cat-hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
}


.hero-overlay, .hero-gradient-overlay {
    transition: all 0.4s ease;
}
.hero:hover .hero-overlay, 
.category-hero:hover .hero-overlay, 
.game-details-hero:hover .hero-gradient-overlay {
    box-shadow: inset 0 0 180px rgba(0,0,0,1);
}


.coming-soon-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin: 2rem auto;
}
.coming-soon-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 40px rgba(99, 102, 241, 0.2), 0 0 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
}
.coming-soon-card h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
    font-weight: 900;
    letter-spacing: 1px;
}
.coming-soon-card p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}



/* PWA Download Button */
.install-app-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    display: flex; /* hidden by default */
    white-space: nowrap; /* Prevent text from breaking into two lines */
    min-width: fit-content;
}
.install-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* Favorite Buttons */

















.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}




