:root {
            --primary-color: #ff6b35;
            --secondary-color: #f7931e;
            --accent-color: #ffd23f;
            --bg-color: #ffffff;
            --text-color: #333333;
            --wall-color: #2563eb;
            --ghost-color: #dc2626;
        }

        .theme-blue {
            --primary-color: #3b82f6;
            --secondary-color: #1d4ed8;
            --accent-color: #60a5fa;
            --wall-color: #1e40af;
        }

        .theme-purple {
            --primary-color: #8b5cf6;
            --secondary-color: #7c3aed;
            --accent-color: #a78bfa;
            --wall-color: #6d28d9;
        }

        .theme-green {
            --primary-color: #10b981;
            --secondary-color: #059669;
            --accent-color: #34d399;
            --wall-color: #047857;
        }

        .theme-pink {
            --primary-color: #ec4899;
            --secondary-color: #db2777;
            --accent-color: #f472b6;
            --wall-color: #be185d;
        }

        .theme-teal {
            --primary-color: #14b8a6;
            --secondary-color: #0d9488;
            --accent-color: #2dd4bf;
            --wall-color: #0f766e;
        }

        .dark-mode {
            --bg-color: #1f2937;
            --text-color: #f9fafb;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, var(--bg-color) 0%, var(--primary-color) 100%);
            color: var(--text-color);
            min-height: 100vh;
            transition: all 0.3s ease;
        }

        .header {
            background: rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }

        .header h1 {
            color: var(--accent-color);
            font-size: 1.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .theme-controls {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .theme-dropdown {
            position: relative;
        }

        .dropdown-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .dropdown-btn:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--bg-color);
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            min-width: 150px;
            z-index: 1001;
        }

        .dropdown-content.show {
            display: block;
        }

        .dropdown-item {
            display: block;
            padding: 0.5rem 1rem;
            text-decoration: none;
            color: var(--text-color);
            transition: background 0.3s ease;
            cursor: pointer;
        }

        .dropdown-item:hover {
            background: var(--primary-color);
            color: white;
        }

        .mode-toggle {
            background: var(--secondary-color);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .mode-toggle:hover {
            background: var(--primary-color);
            transform: translateY(-2px);
        }

        .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 80px 20px 60px;
        }

        .welcome-screen, .instructions-screen, .game-screen, .game-over-screen {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
        }

        .welcome-screen h2 {
            font-size: 3rem;
            color: var(--accent-color);
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
            margin-bottom: 1rem;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        .cat-emoji {
            font-size: 4rem;
            margin: 2rem 0;
            animation: wiggle 1s infinite;
        }

        @keyframes wiggle {
            0% { transform: rotate(0deg); }
            25% { transform: rotate(5deg); }
            75% { transform: rotate(-5deg); }
            100% { transform: rotate(0deg); }
        }

        .btn {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 1rem 2rem;
            font-size: 1.1rem;
            border-radius: 2rem;
            cursor: pointer;
            margin: 0.5rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .game-canvas {
            background: #000;
            border: 4px solid var(--primary-color);
            border-radius: 10px;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
            width: 540px;
            height: 420px;
            display: block;
            margin: 0 auto;
        }

        .game-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 1rem 0;
            font-size: 1.2rem;
            font-weight: bold;
        }

        .demo-video {
            width: 100%;
            max-width: 500px;
            height: 300px;
            border: 3px solid var(--primary-color);
            border-radius: 10px;
            margin: 1rem 0;
        }

        .instructions {
            text-align: left;
            max-width: 600px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.1);
            padding: 2rem;
            border-radius: 1rem;
            backdrop-filter: blur(10px);
        }

        .instructions h3 {
            color: var(--accent-color);
            margin-bottom: 1rem;
        }

        .instructions ul {
            list-style: none;
            padding-left: 0;
        }

        .instructions li {
            margin: 0.5rem 0;
            padding: 0.5rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 0.5rem;
            border-left: 4px solid var(--accent-color);
        }

        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            padding: 1rem;
            text-align: center;
            font-size: 0.9rem;
            color: var(--text-color);
        }

        .hidden {
            display: none;
        }

        .game-over-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(220, 38, 38, 0.95);
            color: white;
            padding: 3rem;
            border-radius: 1rem;
            text-align: center;
            box-shadow: 0 0 50px rgba(220, 38, 38, 0.5);
            z-index: 2000;
            animation: gameOverPulse 0.5s ease-in-out;
        }

        @keyframes gameOverPulse {
            0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
        }

        .game-over-popup h2 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .level-indicator {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--accent-color);
            color: var(--text-color);
            padding: 0.5rem 1rem;
            border-radius: 1rem;
            font-weight: bold;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }