/* 
   ==========================================================================
   MOVUTER ARCADE - Premium Stylesheet (AdSense Compliant)
   ==========================================================================
*/

/* Performance */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

:root {
    --bg-main: #060713;
    --bg-surface: rgba(15, 18, 41, 0.7);
    --bg-card: rgba(22, 26, 60, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.15);
    
    /* Neon Colors */
    --neon-purple: #8b5cf6;
    --neon-cyan: #06b6d4;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    --neon-amber: #f59e0b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.45);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.45);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.45);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.45);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LIGHT THEME ─────────────────────────────────────── */
[data-theme="light"] {
    --bg-main: #f0f4ff;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(100, 80, 200, 0.18);
    --border-glow: rgba(139, 92, 246, 0.25);
    --text-primary: #1a1240;
    --text-secondary: #4a5070;
    --text-muted: #7a80a0;
    --neon-purple: #6d28d9;
    --neon-cyan: #0891b2;
}
[data-theme="light"] body {
    background-color: #f0f4ff;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139,92,246,0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6,182,212,0.06) 0%, transparent 40%);
}
[data-theme="light"] header {
    background: rgba(240, 244, 255, 0.88);
    border-bottom: 1px solid rgba(100,80,200,0.15);
}
[data-theme="light"] .glass-card {
    background: rgba(255,255,255,0.7);
    border-color: rgba(100,80,200,0.15);
}
[data-theme="light"] .game-canvas-area,
[data-theme="light"] .game-canvas-area canvas { filter: none; }
[data-theme="light"] .rich-text-content,
[data-theme="light"] .sidebar { background: rgba(255,255,255,0.6); }

/* Theme toggle button */
#theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}
#theme-toggle:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 12px rgba(139,92,246,0.3);
    transform: scale(1.05);
}

/* Base Reset & Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
header {
    background: rgba(6, 7, 19, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    white-space: nowrap;
}

.logo svg {
    width: 28px;
    height: 28px;
    stroke: var(--neon-purple);
    fill: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 15px;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border: none;
    box-shadow: var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.75);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: var(--border-glow);
    transform: translateY(-4px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 40%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 32px;
}

/* Grid Dashboard */
.grid-title {
    margin-bottom: 32px;
    font-size: 28px;
    position: relative;
    display: inline-block;
}

.grid-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--neon-purple);
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.game-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.game-thumbnail {
    width: 100%;
    height: 180px;
    background: #111327;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.game-thumbnail svg {
    width: 90px;
    height: 90px;
    transition: var(--transition);
}

.game-card:hover .game-thumbnail svg {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 15px var(--neon-purple));
}

.game-card.cyan:hover .game-thumbnail svg {
    filter: drop-shadow(0 0 15px var(--neon-cyan));
}
.game-card.pink:hover .game-thumbnail svg {
    filter: drop-shadow(0 0 15px var(--neon-pink));
}
.game-card.green:hover .game-thumbnail svg {
    filter: drop-shadow(0 0 15px var(--neon-green));
}
.game-card.amber:hover .game-thumbnail svg {
    filter: drop-shadow(0 0 15px var(--neon-amber));
}

.game-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 12px;
}

.tag-arcade { background: rgba(139, 92, 246, 0.15); color: var(--neon-purple); }
.tag-puzzle { background: rgba(6, 182, 212, 0.15); color: var(--neon-cyan); }
.tag-action { background: rgba(236, 72, 153, 0.15); color: var(--neon-pink); }
.tag-classic { background: rgba(16, 185, 129, 0.15); color: var(--neon-green); }

.game-name {
    font-size: 20px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.game-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    margin-top: auto;
}

.play-count {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.play-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--neon-purple);
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-card:hover .play-link {
    color: var(--text-primary);
}

/* Search Bar styling */
.search-container {
    max-width: 500px;
    margin: -16px auto 48px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    padding-left: 48px;
    background: rgba(22, 26, 60, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
    background: rgba(22, 26, 60, 0.5);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    stroke: var(--text-secondary);
    fill: none;
    width: 18px;
    height: 18px;
}

/* Category Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(22, 26, 60, 0.35);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(139, 92, 246, 0.5);
}

.tab-btn.active {
    background: #6d28d9;
    color: #fff;
    border-color: #7c3aed;
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.4);
}

/* Game Interface Layout */
.game-interface-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin: 40px 0 64px;
}

@media (max-width: 1024px) {
    .game-interface-layout {
        grid-template-columns: 1fr;
    }
}

.game-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Ad Placement Buffer Layout (Strictly 150px safe) */
.ad-buffer-zone {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.ad-placeholder-box {
    width: 728px;
    height: 90px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
}

.ad-label {
    position: absolute;
    top: 6px;
    left: 12px;
    font-size: 10px;
    color: transparent;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
}

/* Game Canvas container */
.game-canvas-area {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--border-glow);
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-canvas-area canvas {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: block;
    background: #02030a;
    touch-action: none !important;
}

/* Sidebar Info Panel */
.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    text-align: center;
    padding: 16px;
}

.stat-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Rich Game Content Guides (600+ words target) */
.rich-text-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 64px;
}

.rich-text-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.rich-text-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.rich-text-content ul, .rich-text-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.rich-text-content li {
    margin-bottom: 8px;
}

/* Blog layouts */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.blog-date {
    font-size: 12px;
    color: var(--neon-cyan);
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-title {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--neon-purple);
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more-link:hover {
    color: var(--neon-cyan);
}

.blog-post-layout {
    max-width: 800px;
    margin: 48px auto;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-post-header h1 {
    font-size: 42px;
    margin-bottom: 16px;
    line-height: 1.2;
}

/* Footer Section */
footer {
    background: #03040b;
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
    margin-top: 128px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-about p {
    color: #cbd5e1;
    font-size: 14px;
    margin-top: 12px;
    max-width: 360px;
}

.footer-links h4 {
    margin-bottom: 16px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--neon-purple);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    font-size: 13px;
    color: #94a3b8;
}

/* Ads Overlay (Mock H5 Games ads) */
.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 7, 19, 0.98);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    padding: 24px;
}

.ad-overlay.active {
    display: flex;
}

.ad-card {
    background: #111327;
    border: 1px solid var(--neon-purple);
    box-shadow: var(--glow-purple);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
}

.ad-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--neon-cyan);
}

.ad-timer {
    font-size: 40px;
    font-weight: 800;
    color: var(--neon-pink);
    margin: 16px 0;
    font-family: var(--font-heading);
}

.close-ad-btn {
    margin-top: 16px;
    opacity: 0.5;
    pointer-events: none;
    transition: var(--transition);
}

.close-ad-btn.ready {
    opacity: 1;
    pointer-events: auto;
}

/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin: 48px 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(22, 26, 60, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

/* Play Screen Controls overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 19, 0.85);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile responsive menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle svg {
    stroke: var(--text-primary);
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #060713;
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        gap: 16px;
    }
    nav ul.active {
        display: flex;
    }
    
    /* Header Mobile Adjustments to prevent wrapping / overlap */
    .logo {
        font-size: 18px;
    }
    .logo svg {
        width: 22px;
        height: 22px;
    }
    .nav-wrapper {
        height: 60px;
    }
    #theme-toggle {
        margin-left: 8px !important;
        padding: 4px 8px !important;
        font-size: 12px !important;
    }
    
    /* Responsive Ad Placements on mobile */
    .ad-buffer-zone {
        height: 90px; /* Graces mobile height constraints */
        background: transparent !important;
        border: none !important;
    }
    .ad-placeholder-box {
        width: 320px; /* Switch to standard Mobile Leaderboard (320x50) */
        height: 50px;
        background: transparent !important;
        color: transparent !important;
    }
}

/* Cookie Consent Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 500px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner-content {
    font-size: 13px;
    color: var(--text-secondary);
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
}

/* 404 Error Page Styling */
.error-page-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 40px 24px;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Light Theme Variables Override */
body.light-theme {
    --bg-main: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-card: rgba(255, 255, 255, 0.5);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(139, 92, 246, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
}

body.light-theme header {
    background: rgba(248, 250, 252, 0.8);
}

body.light-theme footer {
    background: #f1f5f9;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

body.light-theme .search-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

body.light-theme .tab-btn {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.1);
    color: #475569;
}

body.light-theme .form-control {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

/* ----------------------------------------------------
   CINEMA FULLSCREEN & VIRTUAL CONTROLLER OVERLAY STYLES
   ---------------------------------------------------- */
.game-canvas-area.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #02030a !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.game-canvas-area.fullscreen canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
}

/* Pause Overlay inside Fullscreen Canvas */
.pause-overlay-screen {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(6, 7, 19, 0.85) !important;
    z-index: 100000 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
}

.pause-overlay-screen.active {
    display: flex !important;
}

.pause-title {
    font-size: 36px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.4) !important;
}

.pause-subtitle {
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    margin-bottom: 24px !important;
}

.btn-resume-play {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    background: var(--neon-purple) !important;
    border: none !important;
    color: #fff !important;
    font-size: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: var(--glow-purple) !important;
    transition: all 0.2s ease !important;
}
.btn-resume-play:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 0 30px var(--neon-purple) !important;
}

/* Mobile responsive splits for controls */
@media (max-width: 768px) and (orientation: portrait) {
    .game-canvas-area.fullscreen {
        justify-content: space-between !important;
    }
    .game-canvas-area.fullscreen canvas {
        height: 50vh !important;
        max-height: 50vh !important;
        margin-top: 60px !important;
    }
    .mobile-controller-container {
        height: 40vh !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 16px !important;
        background: rgba(15, 18, 41, 0.95) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 950px) and (orientation: landscape) {
    .mobile-controller-container {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        pointer-events: none !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        padding: 24px !important;
        box-sizing: border-box !important;
    }
    .mobile-controller-container > div {
        pointer-events: auto !important;
        background: rgba(15, 18, 41, 0.7) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border-radius: 18px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 12px !important;
    }
}

.mobile-controller-container {
    display: none;
}

.game-canvas-area.fullscreen .mobile-controller-container.active {
    display: flex;
}

/* exit & pause buttons container at the top */
.fullscreen-control-header {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 100001 !important;
    display: flex !important;
    gap: 12px !important;
}

.exit-fullscreen-btn, .pause-fullscreen-btn {
    background: rgba(22, 26, 60, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    color: #fff !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.exit-fullscreen-btn:hover {
    background: var(--neon-pink) !important;
    border-color: var(--neon-pink) !important;
    box-shadow: var(--glow-pink) !important;
    transform: scale(1.05) !important;
}

.pause-fullscreen-btn:hover {
    background: var(--neon-cyan) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: var(--glow-cyan) !important;
    transform: scale(1.05) !important;
}

/* D-pad Grid Layout */
.dpad-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 46px) !important;
    grid-template-rows: repeat(3, 46px) !important;
    gap: 6px !important;
    justify-content: center !important;
    align-content: center !important;
}

.dpad-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
    transition: background 0.1s ease, border-color 0.1s ease !important;
}

.dpad-btn:active {
    background: var(--neon-purple) !important;
    border-color: var(--neon-purple) !important;
    box-shadow: 0 0 10px var(--neon-purple) !important;
}

.dpad-up { grid-column: 2; grid-row: 1; }
.dpad-left { grid-column: 1; grid-row: 2; }
.dpad-right { grid-column: 3; grid-row: 2; }
.dpad-down { grid-column: 2; grid-row: 3; }
.dpad-center { grid-column: 2; grid-row: 2; background: transparent !important; border: none !important; pointer-events: none; }

/* Action Buttons */
.action-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

.action-btn {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    transition: background 0.1s ease, border-color 0.1s ease !important;
}

.action-btn:active {
    background: var(--neon-cyan) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 12px var(--neon-cyan) !important;
}

.action-btn.btn-jump {
    background: rgba(236, 72, 153, 0.12) !important;
    border-color: var(--neon-pink) !important;
}
.action-btn.btn-jump:active {
    background: var(--neon-pink) !important;
    border-color: var(--neon-pink) !important;
    box-shadow: var(--glow-pink) !important;
}

/* Steer container (Left / Right buttons) */
.steer-container {
    display: flex !important;
    gap: 12px !important;
}

.steer-btn {
    width: 58px !important;
    height: 58px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
    transition: background 0.1s ease, border-color 0.1s ease !important;
}
.steer-btn:active {
    background: var(--neon-purple) !important;
    border-color: var(--neon-purple) !important;
    box-shadow: 0 0 10px var(--neon-purple) !important;
}

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM (DARK / LIGHT READY)
   ========================================== */
:root {
    --bg-primary: #060713;
    --bg-secondary: #0f1229;
    --bg-glass: rgba(15, 18, 41, 0.85);
    --bg-card: rgba(22, 26, 60, 0.6);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --neon-cyan: #06b6d4;
    --neon-green: #10b981;
    --neon-amber: #f59e0b;
    
    --border-color: rgba(255, 255, 255, 0.12);
    --border-glow: 0 0 20px rgba(139, 92, 246, 0.25);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.92);
    --bg-card: rgba(241, 245, 249, 0.9);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --border-color: rgba(15, 23, 42, 0.15);
    --border-glow: 0 0 20px rgba(139, 92, 246, 0.15);
}

/* Ensure text is ALWAYS 100% visible */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-family: var(--font-heading);
    font-weight: 700;
}

p, li, span {
    color: var(--text-secondary);
}

.rich-text-content p, .rich-text-content li {
    color: var(--text-secondary) !important;
}

/* Professional UI Button Icons */
.btn-icon-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon-wrapper svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.eeat-meta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    margin: 20px 0 30px;
    font-size: 13px;
    color: var(--text-secondary);
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-chip img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--neon-purple);
    object-fit: cover;
}

.badge-fact-checked {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--neon-green);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-editorial-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--neon-cyan);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-bio-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    margin: 40px 0;
}

.author-bio-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--neon-purple);
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-details h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
}

.author-bio-details .role-title {
    font-size: 13px;
    color: var(--neon-cyan);
    font-weight: 600;
    margin-bottom: 8px;
}

.author-bio-details p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Breadcrumbs */
.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb-nav a {
    color: var(--text-secondary);
}

.breadcrumb-nav a:hover {
    color: var(--neon-cyan);
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 11px;
}

/* Pros and Cons Box */
.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pro-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    padding: 20px;
}

.pro-card h4 {
    color: var(--neon-green);
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.con-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    padding: 20px;
}

.con-card h4 {
    color: #ef4444;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros-cons-grid ul {
    list-style: none;
    padding: 0;
}

.pros-cons-grid li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.pro-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-weight: bold;
}

.con-card li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

/* Reviews Feed */
.review-section {
    margin: 40px 0;
}

.review-summary-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 24px;
}

.big-rating {
    font-size: 42px;
    font-weight: 800;
    color: var(--neon-amber);
    line-height: 1;
}

.review-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.stars {
    color: var(--neon-amber);
    letter-spacing: 2px;
}

.review-body {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Table of Contents */
.toc-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 18px 24px;
    margin: 24px 0 36px;
}

.toc-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 6px;
    font-size: 14px;
}

.toc-list a {
    color: var(--text-secondary);
}

/* ==========================================
   POKI & CRAZYGAMES 16:9 WIDESCREEN PLAYER UI
   ========================================== */
.game-container-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .game-container-layout {
        grid-template-columns: 1fr;
    }
}

.game-player-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #090c1e;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), var(--border-glow);
}

.game-canvas-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 100% !important;
    height: auto !important;
    background: #02030a;
    overflow: hidden;
}

.game-canvas-area canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}


.game-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(6, 7, 19, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-action-left, .game-action-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(22, 26, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.action-bar-btn:hover {
    background: var(--neon-purple);
    color: #fff;
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.action-bar-btn.liked {
    background: var(--neon-pink);
    color: #fff;
    border-color: var(--neon-pink);
    box-shadow: var(--glow-pink);
}

.game-loading-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0;
}

/* ==========================================
   POKI-STYLE COMPACT ICON GRID & TILES
   ========================================== */
.poki-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.poki-icon-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: rgba(22, 26, 60, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.poki-icon-tile:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--neon-purple);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
    background: rgba(30, 35, 75, 0.8);
}

.poki-tile-img-box {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #000;
    position: relative;
}

.poki-tile-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poki-tile-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-family: var(--font-heading);
}

.poki-badge-hot {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    font-weight: 800;
    background: var(--neon-pink);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .poki-icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 10px;
    }
    .poki-tile-img-box {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }
    .poki-tile-title {
        font-size: 11px;
    }
}


/* ==========================================
   HERO BANNER & MOBILE RESPONSIVE OVERHAUL
   ========================================== */
.hero-poster-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(15, 18, 41, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), var(--border-glow);
}

.hero-poster-overlay {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-poster-img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
}

.hero-poster-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .hero-poster-card {
        grid-template-columns: 1fr !important;
    }
    
    .hero-poster-img {
        height: 200px !important;
        min-height: 200px !important;
        order: -1;
    }

    .hero-poster-overlay {
        padding: 24px 20px !important;
    }

    .hero-poster-overlay h1 {
        font-size: 26px !important;
        line-height: 1.25 !important;
        margin-top: 10px !important;
        margin-bottom: 12px !important;
    }

    .hero-poster-overlay p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }
}


    .hero {
        padding: 24px 0 36px !important;
    }

    .hero h1 {
        font-size: 26px !important;
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
    }

    .hero p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }

    .hero-poster-card {
        display: flex;
        flex-direction: column;
    }

    .hero-poster-img {
        height: 200px !important;
    }

    .hero-poster-overlay {
        position: relative !important;
        background: rgba(15, 18, 41, 0.95) !important;
        padding: 20px 16px !important;
        align-items: flex-start !important;
        top: 0 !important;
    }

    .hero-poster-overlay h2 {
        font-size: 20px !important;
    }

    .hero-poster-overlay p {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }

    .hero-poster-overlay .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .search-container {
        margin: 0 auto 20px !important;
    }

    .filter-tabs {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 10px !important;
        margin-bottom: 28px !important;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        flex-shrink: 0 !important;
        padding: 6px 14px !important;
        font-size: 13px !important;
    }

    .grid-title {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .games-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .rich-text-content {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }

    .author-bio-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 16px !important;
    }

    .author-bio-card img {
        margin-bottom: 12px;
    }

    .review-summary-card {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
}





/* Play overlay smooth hide */
.play-overlay, #play-overlay {
    transition: opacity 0.3s ease;
}

/* ══════════════════════════════════════════════
   MOBILE GAME PAGE RESPONSIVE FIXES
   ══════════════════════════════════════════════ */

/* ── Game canvas ALWAYS visible with good height ── */
.game-canvas-area {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 280px;
}

/* ── Play overlay covers entire canvas area ── */
#play-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(2, 3, 10, 0.85);
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    /* Compact header on mobile */
    .nav-wrapper {
        height: 56px !important;
        padding: 0 12px !important;
    }
    .logo span { font-size: 18px !important; }
    .logo img { width: 30px !important; height: 30px !important; }

    /* Hide breadcrumb clutter */
    .breadcrumb-nav { font-size: 12px !important; margin-top: 12px !important; }

    /* Compact author/EEAT box */
    .eeat-meta-box {
        padding: 10px 12px !important;
        margin: 8px 0 !important;
        font-size: 12px !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .eeat-meta-box .author-chip { font-size: 12px !important; }
    .eeat-meta-box .author-chip img { width: 24px !important; height: 24px !important; }
    .badge-fact-checked, .badge-editorial-verified {
        font-size: 10px !important;
        padding: 2px 8px !important;
    }

    /* Hide ads on mobile game pages to save space */
    .ad-buffer-zone { display: none !important; }

    /* Game container — single column, canvas full width */
    .game-container-layout {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 12px !important;
    }

    /* Canvas area — fill width, good height */
    .game-canvas-area {
        max-width: 100% !important;
        border-radius: 10px !important;
        min-height: 240px !important;
    }

    /* Sidebar panels — horizontal scroll or stack nicely */
    .sidebar-panel {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .sidebar-panel .glass-card { padding: 12px !important; }

    /* Play overlay text — smaller on mobile */
    #play-overlay h2, #play-overlay h3 {
        font-size: 22px !important;
    }
    #play-overlay p { font-size: 12px !important; }

    /* PLAY NOW button — big and tappable */
    #start-game-btn {
        padding: 16px 48px !important;
        font-size: 18px !important;
        min-width: 200px !important;
        border-radius: 14px !important;
    }

    /* Content sections — compact */
    .rich-text-content { padding: 16px !important; font-size: 14px !important; }
    .rich-text-content h2 { font-size: 20px !important; }
    .rich-text-content h3 { font-size: 17px !important; }

    /* Container padding tighter */
    .container { padding: 0 12px !important; }
}

/* Extra small phones */
@media (max-width: 400px) {
    .game-canvas-area { min-height: 200px !important; }
    .sidebar-panel { grid-template-columns: 1fr !important; }
    .eeat-meta-box { padding: 8px !important; }
    .breadcrumb-nav { display: none !important; }
}

