/* 
   ==========================================================================
   MOVUTER ARCADE - Premium Stylesheet (AdSense Compliant)
   ==========================================================================
*/



: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);
}

/* 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%;
    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: 2fr 1fr 1fr;
    gap: 48px;
    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;
}


