
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: url('bg.jpg') no-repeat center center fixed;
            background-size: cover;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            color: #fff;
            overflow-x: hidden;
        }

        .container {
            width: 100%;
            max-width: 800px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
        }

        header {
            text-align: center;
            margin-bottom: 20px;
            width: 100%;
        }

        h1 {
            font-size: 2rem;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #00dbde, #fc00ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 10px rgba(0, 219, 222, 0.3);
            letter-spacing: 2px;
        }

        .subtitle {
            font-size: 1.2rem;
            color: #a8a8a8;
            margin-bottom: 20px;
        }

        .game-area {
            position: relative;
            width: 100%;
            max-width: 600px;
            margin-bottom: 20px;
        }

        canvas {
            background: #0f3460;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            display: block;
            margin: 0 auto;
        }

        .controls {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 15px;
            margin: 15px 0;
            width: 100%;
            max-width: 600px;
        }

        .controls h3 {
            margin-bottom: 10px;
            color: #00dbde;
        }

        .controls p {
            margin-bottom: 5px;
            font-size: 0.9rem;
        }

        .stats {
            display: flex;
            justify-content: space-between;
            width: 100%;
            max-width: 600px;
            margin-bottom: 20px;
        }

        .stat-box {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 10px 15px;
            text-align: center;
            flex: 1;
            margin: 0 5px;
        }

        .stat-box h3 {
            font-size: 0.9rem;
            color: #a8a8a8;
            margin-bottom: 5px;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: #00dbde;
        }

        #health-value {
            color: #ff4d4d;
        }

        #score-value {
            color: #4dff88;
        }

        #level-value {
            color: #ffcc00;
        }

        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #1a1a2e;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            transition: opacity 0.5s ease;
        }

        .loader {
            width: 80px;
            height: 80px;
            border: 5px solid rgba(0, 219, 222, 0.3);
            border-radius: 50%;
            border-top-color: #00dbde;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .loading-text {
            font-size: 1.2rem;
            color: #fff;
        }

        .progress-bar {
            width: 200px;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            margin-top: 20px;
            overflow: hidden;
        }

        .progress {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #00dbde, #fc00ff);
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        .game-over {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-radius: 10px;
            z-index: 100;
        }

        .game-over h2 {
            font-size: 3rem;
            margin-bottom: 10px;
            color: #ff4d4d;
        }

        .game-over p {
            font-size: 1.5rem;
            margin-bottom: 20px;
        }

        .btn {
            background: linear-gradient(45deg, #00dbde, #fc00ff);
            border: none;
            border-radius: 50px;
            color: white;
            padding: 10px 25px;
            font-size: 1rem;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            margin: 5px;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .instructions {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 15px;
            margin-top: 15px;
            width: 100%;
            max-width: 600px;
        }

        .instructions h3 {
            margin-bottom: 10px;
            color: #00dbde;
        }

        .instructions ul {
            padding-left: 20px;
        }

        .instructions li {
            margin-bottom: 5px;
            font-size: 0.9rem;
        }

        .power-ups {
            display: flex;
            justify-content: center;
            margin-top: 10px;
        }

        .power-up {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin: 0 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.8rem;
        }

        .shield {
            background: linear-gradient(45deg, #00dbde, #0077ff);
        }

        .speed {
            background: linear-gradient(45deg, #ffcc00, #ff9900);
        }

        .slow {
            background: linear-gradient(45deg, #bb00ff, #ff00cc);
        }

        footer {
            margin-top: 20px;
            text-align: center;
            color: #a8a8a8;
            font-size: 0.8rem;
        }

        /* Start Modal Styles */
        .start-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s;
        }

        .start-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border-radius: 15px;
            padding: 30px;
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
            position: relative;
            transform: translateY(20px);
            transition: transform 0.5s ease;
        }

        .start-modal.active .modal-content {
            transform: translateY(0);
        }

        .modal-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .modal-header h2 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #00dbde, #fc00ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .modal-section {
            margin-bottom: 25px;
        }

        .modal-section h3 {
            color: #00dbde;
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .modal-section p {
            margin-bottom: 8px;
            line-height: 1.5;
        }

        .modal-section ul {
            padding-left: 20px;
            margin-top: 10px;
        }

        .modal-section li {
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .power-up-info {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .power-up-info .power-up {
            margin-right: 15px;
            flex-shrink: 0;
        }

        .modal-actions {
            text-align: center;
            margin-top: 30px;
        }

        .play-btn {
            background: linear-gradient(45deg, #00dbde, #fc00ff);
            border: none;
            border-radius: 50px;
            color: white;
            padding: 12px 40px;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            letter-spacing: 1px;
        }

        .play-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .character-preview {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
        }

        .character {
            text-align: center;
        }

        .character-circle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            margin: 0 auto 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .player-char {
            background: linear-gradient(45deg, #00dbde, #0077ff);
            box-shadow: 0 0 15px rgba(0, 219, 222, 0.5);
        }

        .enemy-char {
            background: linear-gradient(45deg, #ff4d4d, #ff0000);
            box-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
        }

        .missile-char {
            background: linear-gradient(45deg, #ffcc00, #ff9900);
            box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
        }

        .char-label {
            font-size: 0.9rem;
            color: #a8a8a8;
        }