    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                        url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2000&q=80') no-repeat center center fixed;
            background-size: cover;
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        /* Header Styles */
        header {
            background-color: rgba(0, 0, 0, 0.8);
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
            padding: 15px 5%;
            border-bottom: 2px solid #00ffcc;
        }
        
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .sub-header-link{
            text-decoration: none;
            color: #fff;
            font-weight: 500;
            transition: color 0.3s;
            padding: 8px 15px;
            border-radius: 5px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .logo h1 {
            font-size: 1.8rem;
            color: #00ffcc;
            font-weight: 700;
            text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
        }
        
        .logo i {
            font-size: 2rem;
            color: #00ffcc;
            text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
        }
        
        .desktop-nav {
            display: flex;
            gap: 25px;
        }
        
        .desktop-nav a {
            text-decoration: none;
            color: #fff;
            font-weight: 500;
            transition: color 0.3s;
            padding: 8px 15px;
            border-radius: 5px;
        }
        
        .desktop-nav a:hover {
            color: #00ffcc;
            background: rgba(0, 255, 204, 0.1);
        }
        
        .mobile-toggle {
            display: none;
            font-size: 1.5rem;
            background: none;
            border: none;
            cursor: pointer;
            color: #00ffcc;
        }
        
        /* Sub Header */
        .sub-header {
            background-color: rgba(0, 0, 0, 0.6);
            padding: 15px 5%;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            border-bottom: 1px solid #00ffcc;
        }
        
        .sub-header h2 {
            color: #00ffcc;
            margin-bottom: 10px;
            text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
            font-size: 2rem;
        }
        
        .game-categories {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 15px;
        }
        
        .game-category {
            background: linear-gradient(to right, #0066ff, #00ffcc);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: transform 0.3s;
            box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
        }
        
        .game-category:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
        }
        
        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .game-container {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            justify-content: center;
        }
        
        .game-board {
            position: relative;
            background-color: rgba(0, 0, 0, 0.7);
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            border: 2px solid #00ffcc;
        }
        
        #gameCanvas {
            display: block;
            background-color: rgba(0, 20, 30, 0.9);
        }
        
        .game-ui {
            flex: 1;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .score-panel {
            background: rgba(0, 0, 0, 0.7);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            border: 1px solid #00ffcc;
        }
        
        .score-value {
            font-size: 3rem;
            font-weight: 700;
            color: #00ffcc;
            margin: 10px 0;
            text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
        }
        
        .high-score {
            margin-top: 15px;
            font-size: 1.2rem;
            color: #ffcc00;
        }
        
        .controls-panel {
            background: rgba(0, 0, 0, 0.7);
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            border: 1px solid #00ffcc;
        }
        
        .controls-title {
            text-align: center;
            margin-bottom: 15px;
            font-size: 1.2rem;
            color: #00ffcc;
        }
        
        .control-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }
        
        .control-btn {
            padding: 12px 20px;
            background: linear-gradient(to right, #0066ff, #00ffcc);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
        }
        
        .control-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
        }
        
        .game-instructions {
            background: rgba(0, 0, 0, 0.7);
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            border: 1px solid #00ffcc;
        }
        
        .instructions-title {
            text-align: center;
            margin-bottom: 15px;
            font-size: 1.2rem;
            color: #00ffcc;
        }
        
        .instructions-list {
            list-style: none;
            padding: 0;
        }
        
        .instructions-list li {
            margin-bottom: 10px;
            padding-left: 20px;
            position: relative;
        }
        
        .instructions-list li:before {
            content: "•";
            color: #00ffcc;
            font-weight: bold;
            position: absolute;
            left: 0;
        }
        
        /* Difficulty Selection */
        .difficulty-panel {
            background: rgba(0, 0, 0, 0.7);
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            border: 1px solid #00ffcc;
            margin-top: 20px;
        }
        
        .difficulty-title {
            text-align: center;
            margin-bottom: 15px;
            font-size: 1.2rem;
            color: #00ffcc;
        }
        
        .difficulty-buttons {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .difficulty-btn {
            padding: 10px 20px;
            background: rgba(0, 50, 100, 0.7);
            color: white;
            border: 1px solid #0066ff;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .difficulty-btn.active {
            background: linear-gradient(to right, #0066ff, #00ffcc);
            box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
        }
        
        .difficulty-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
        }
        
        /* Mobile Controls */
        .mobile-controls {
            display: none;
            margin-top: 20px;
            width: 100%;
            max-width: 300px;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }
        
        .direction-pad {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 10px;
            margin: 0 auto;
        }
        
        .dir-btn {
            padding: 20px;
            background: rgba(0, 255, 204, 0.2);
            border: 2px solid #00ffcc;
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 70px;
            height: 70px;
        }
        
        .dir-btn:active {
            background: rgba(0, 255, 204, 0.4);
            transform: scale(0.95);
        }
        
        .up-btn {
            grid-column: 2;
            grid-row: 1;
        }
        
        .left-btn {
            grid-column: 1;
            grid-row: 2;
        }
        
        .right-btn {
            grid-column: 3;
            grid-row: 2;
        }
        
        .down-btn {
            grid-column: 2;
            grid-row: 3;
        }
        
        .center-btn {
            grid-column: 2;
            grid-row: 2;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid #00ffcc;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #00ffcc;
        }
        
        .mobile-tips {
            text-align: center;
            margin-top: 10px;
            color: #00ffcc;
            font-size: 0.9rem;
        }
        
        /* More Games Section */
        .more-games {
            width: 100%;
            margin-top: 50px;
        }
        
        .more-games-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 30px;
            color: #00ffcc;
            text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
        }
        
        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .game-card {
            background: rgba(0, 0, 0, 0.7);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s;
            border: 1px solid #00ffcc;
            cursor: pointer;
        }
        
        .game-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 20px rgba(0, 255, 204, 0.7);
        }
        
        .game-card-img {
            height: 150px;
            background: linear-gradient(45deg, #0066ff, #00ffcc);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
        }
        
        .game-card-content {
            padding: 15px;
        }
        
        .game-card-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: #00ffcc;
        }
        
        .game-card-desc {
            color: #ccc;
            font-size: 0.9rem;
        }
        
        /* Game Over Modal */
        .game-over {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            display: none;
            z-index: 10;
            border-radius: 10px;
        }
        
        .game-over h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #ff3366;
            text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
        }
        
        .game-over p {
            font-size: 1.5rem;
            margin-bottom: 30px;
        }
        
        /* Footer */
        footer {
            background-color: rgba(0, 0, 0, 0.9);
            color: white;
            padding: 40px 5% 20px;
            margin-top: 40px;
            border-top: 2px solid #00ffcc;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }
        
        .footer-section h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: #00ffcc;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: #cbd5e0;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: #00ffcc;
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 255, 204, 0.3);
            color: #cbd5e0;
        }
        
        /* Mobile Nav */
        .mobile-nav {
            display: none;
            background-color: rgba(0, 0, 0, 0.9);
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            border: 1px solid #00ffcc;
        }
        
        .mobile-nav.active {
            display: block;
        }
        
        .mobile-nav-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .mobile-nav-links a {
            text-decoration: none;
            color: #fff;
            font-weight: 500;
            display: block;
            padding: 10px;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        
        .mobile-nav-links a:hover {
            background-color: rgba(0, 255, 204, 0.1);
            color: #00ffcc;
        }
        
        /* Mobile Instructions */
        .mobile-instruction {
            background: rgba(0, 0, 0, 0.7);
            border-radius: 10px;
            padding: 15px;
            margin-top: 20px;
            text-align: center;
            border: 1px solid #00ffcc;
            display: none;
        }
        
        .mobile-instruction p {
            color: #00ffcc;
            margin-bottom: 10px;
        }
        
        /* Responsive Design */
        @media (max-width: 900px) {
            .game-container {
                flex-direction: column;
                align-items: center;
            }
            
            .game-ui {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .desktop-nav {
                display: none;
            }
            
            .mobile-toggle {
                display: block;
            }
            
            .game-categories {
                flex-direction: column;
                align-items: center;
            }
            
            .mobile-controls {
                display: flex;
            }
            
            .mobile-instruction {
                display: block;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .difficulty-buttons {
                flex-direction: column;
            }
            
            #gameCanvas {
                width: 100%;
                height: auto;
            }
        }