        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }

        body {
            background: #000;
            overflow: hidden;
            font-family: 'Courier New', monospace;
            height: 100vh;
            width: 100vw;
        }

        #gameCanvas {
            display: block;
            background: #000;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
        }

        .ui-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 10;
            pointer-events: none;
        }

        .control-btn {
            position: absolute;
            background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.1));
            border: 2px solid rgba(0, 255, 255, 0.5);
            border-radius: 50%;
            color: white;
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            touch-action: manipulation;
            user-select: none;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
            transition: all 0.2s ease;
        }

        .control-btn:active {
            background: linear-gradient(135deg, rgba(0, 255, 255, 0.4), rgba(0, 150, 255, 0.3));
            transform: scale(0.95);
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
        }

        /* Enhanced SVG icons in control buttons */
        .control-btn svg {
            filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
            transition: all 0.2s ease;
        }

        .control-btn:active svg {
            filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
            transform: scale(1.1);
        }

        /* Special styling for thrust button */
        #thrustBtn svg {
            filter: drop-shadow(0 0 4px rgba(255, 150, 0, 0.6));
        }

        #thrustBtn:active svg {
            filter: drop-shadow(0 0 8px rgba(255, 150, 0, 1));
        }

        /* Directional arrows glow effect */
        #leftBtn svg, #rightBtn svg {
            filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.6));
        }

        #leftBtn:active svg, #rightBtn:active svg {
            filter: drop-shadow(0 0 8px rgba(0, 255, 255, 1));
        }

        /* Animation for active thrust */
        @keyframes thrustPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .control-btn.thrust-active svg {
            animation: thrustPulse 0.3s ease-in-out infinite;
        }

        /* Thrust button - moved to leftmost position, same size as fire */
        #thrustBtn {
            position: absolute;
            bottom: 60px;
            left: 30px;
            width: 70px;
            height: 70px;
            font-size: 28px;
            z-index: 100;
            background: linear-gradient(135deg, rgba(255, 100, 0, 0.3), rgba(255, 150, 0, 0.1));
            border: 2px solid rgba(255, 150, 0, 0.6);
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            touch-action: manipulation;
            box-shadow: 0 0 15px rgba(255, 100, 0, 0.4);
            transition: all 0.2s ease;
        }

        #thrustBtn:active {
            background: linear-gradient(135deg, rgba(255, 100, 0, 0.5), rgba(255, 150, 0, 0.3));
            box-shadow: 0 0 25px rgba(255, 100, 0, 0.7);
        }

        /* Fire button - moved to center */
        #fireBtn {
            position: absolute;
            bottom: 60px;
            left: 120px; /* 30px margin + 70px thrust button + 20px gap */
            width: 70px;
            height: 70px;
            font-size: 28px;
            background: linear-gradient(135deg, rgba(255, 0, 100, 0.3), rgba(255, 50, 50, 0.1));
            border: 2px solid rgba(255, 50, 50, 0.6);
            box-shadow: 0 0 15px rgba(255, 0, 100, 0.4);
        }

        #fireBtn:active {
            background: linear-gradient(135deg, rgba(255, 0, 100, 0.5), rgba(255, 50, 50, 0.3));
            box-shadow: 0 0 25px rgba(255, 0, 100, 0.7);
        }

        /* Shield button - moved to right */
        #shieldBtn {
            position: absolute;
            bottom: 60px;
            left: 210px; /* 30px margin + 70px thrust + 20px gap + 70px fire + 20px gap */
            width: 70px;
            height: 70px;
            font-size: 24px;
            z-index: 100;
            background: linear-gradient(135deg, rgba(0, 150, 255, 0.3), rgba(0, 200, 255, 0.1));
            border: 2px solid rgba(0, 200, 255, 0.6);
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            touch-action: manipulation;
            box-shadow: 0 0 15px rgba(0, 150, 255, 0.4);
            transition: all 0.2s ease;
        }

        #shieldBtn:active {
            background: linear-gradient(135deg, rgba(0, 150, 255, 0.5), rgba(0, 200, 255, 0.3));
            box-shadow: 0 0 25px rgba(0, 150, 255, 0.7);
        }

        /* Shield count number */
        #shieldCount {
            position: absolute;
            bottom: -5px;
            right: -5px;
            background: #ff6600;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }


        /* Left rotation button - same size as fire button */
        #leftBtn {
            position: absolute;
            bottom: 60px;
            right: 120px; /* 30px margin + 70px right button + 20px gap */
            width: 70px;
            height: 70px;
            font-size: 28px;
            z-index: 100;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            touch-action: manipulation;
        }

        /* Right rotation button - same size as fire button */
        #rightBtn {
            position: absolute;
            bottom: 60px;
            right: 30px;
            width: 70px;
            height: 70px;
            font-size: 28px;
            z-index: 100;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            touch-action: manipulation;
        }

        /* Movement controls container - hide completely */
        .movement-controls {
            display: none !important;
        }

        .rotation-controls {
            display: none !important;
        }

        /* Menu and Pause buttons - top left */
        .top-left-ui {
            position: absolute;
            top: 30px;
            left: 30px;
            display: flex;
            flex-direction: column;
            gap: 60px;
            pointer-events: auto;
        }

        #menuBtn {
            position: relative;
            width: 45px;
            height: 45px;
            font-size: 18px;
        }

        #pauseBtn {
            position: relative;
            width: 45px;
            height: 45px;
            font-size: 18px;
        }

        /* Score and stats - top right */
        .top-right-ui {
            position: absolute;
            top: 30px;
            right: 30px;
            color: white;
            pointer-events: none;
            text-align: right;
        }

        /* Level display - top center */
        .top-center-ui {
            position: absolute;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            pointer-events: none;
            text-align: center;
        }

        #levelDisplay {
            font-size: 24px;
            font-weight: bold;
            background: linear-gradient(45deg, #ff0080, #ff8000, #ffff00, #80ff00, #00ff80, #0080ff, #8000ff, #ff0080);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: rainbowShift 3s ease-in-out infinite;
            text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
            filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
            letter-spacing: 0.1em;
        }

        #score {
            font-size: 20px;
            margin-bottom: 8px;
            white-space: nowrap;
            background: linear-gradient(45deg, #00ffff, #ffffff, #ffff00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: bold;
            text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
            filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));
        }

        #asteroidCount, #gameTime {
            font-size: 14px;
            margin-bottom: 5px;
            white-space: nowrap;
            color: #ffffff;
            opacity: 0.8;
            font-weight: normal;
        }

        /* Menu overlay */
        #menuOverlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: radial-gradient(circle at center, rgba(0, 20, 40, 0.9), rgba(0, 0, 0, 0.95));
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            z-index: 20;
        }

        .menu-btn {
            background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.1));
            border: 2px solid rgba(0, 255, 255, 0.5);
            color: white;
            padding: 15px 30px;
            margin: 10px;
            font-size: 18px;
            cursor: pointer;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
            transition: all 0.3s ease;
            font-weight: bold;
        }

        .menu-btn:hover {
            background: linear-gradient(135deg, rgba(0, 255, 255, 0.4), rgba(0, 150, 255, 0.3));
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
            transform: translateY(-2px);
        }

        #gameOver {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            text-align: center;
            display: none;
            pointer-events: auto;
            z-index: 25;
            background: radial-gradient(circle at center, rgba(50, 0, 0, 0.95), rgba(0, 0, 0, 0.95));
            padding: 40px;
            border-radius: 20px;
            border: 2px solid rgba(255, 0, 0, 0.5);
            box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }

        #gameOver h2 {
            font-size: 36px;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #ff0000, #ff6600, #ffaa00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: bold;
            text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
        }

        .game-stats {
            margin-bottom: 30px;
        }

        .game-stats p {
            font-size: 20px;
            margin-bottom: 15px;
            color: #ffaaaa;
            font-weight: bold;
        }

        /* Top Achievements section */
        .top-achievements {
            margin: 25px 0;
            padding: 20px;
            background: rgba(255, 215, 0, 0.15);
            border-radius: 15px;
            border: 2px solid rgba(255, 215, 0, 0.4);
        }

        .top-achievements h3 {
            font-size: 18px;
            color: #ffd700;
            margin-bottom: 15px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .achievement-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
        }

        .achievement-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 15px;
            background: rgba(255, 215, 0, 0.1);
            border-radius: 8px;
            border: 1px solid rgba(255, 215, 0, 0.3);
            min-width: 80%;
        }

        .achievement-item-icon {
            font-size: 20px;
        }

        .achievement-item-text {
            text-align: left;
            flex: 1;
        }

        .achievement-item-name {
            font-size: 14px;
            font-weight: bold;
            color: #ffd700;
            margin-bottom: 2px;
        }

        .achievement-item-desc {
            font-size: 12px;
            color: #cccccc;
            font-style: italic;
        }

        .thank-you-message {
            font-size: 16px;
            color: #dddddd;
            margin: 20px 0;
            padding: 15px;
            background: rgba(0, 50, 0, 0.3);
            border-radius: 10px;
            border: 1px solid rgba(0, 255, 0, 0.2);
            line-height: 1.4;
            text-align: center;
        }

        /* Game over actions container */
        .game-over-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
            align-items: center;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .credits-section {
            margin-top: 30px;
            text-align: center;
        }

        .credits {
            font-size: 14px;
            color: #cccccc;
            margin-bottom: 15px;
            opacity: 0.8;
        }

        .coffee-btn {
            display: inline-block;
            background: linear-gradient(135deg, #ff6b35, #f7931e);
            color: white;
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: bold;
            border: 2px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
            transition: all 0.3s ease;
        }

        .coffee-btn:hover {
            background: linear-gradient(135deg, #ff8c5a, #ffab40);
            box-shadow: 0 0 25px rgba(255, 107, 53, 0.7);
            transform: translateY(-2px);
        }

        /* Share section styles */
        .share-section {
            margin: 25px 0;
            padding: 20px;
            background: rgba(0, 50, 100, 0.3);
            border-radius: 15px;
            border: 1px solid rgba(0, 150, 255, 0.3);
        }

        .share-title {
            font-size: 16px;
            color: #00ccff;
            margin-bottom: 15px;
            font-weight: bold;
        }

        .share-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            align-items: center;
        }

        .share-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.1);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
            pointer-events: auto;
        }

        .share-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
        }

        .share-btn:active {
            transform: translateY(-1px) scale(0.98);
        }

        .share-btn.whatsapp {
            background: linear-gradient(135deg, #25D366, #128C7E);
            border-color: #25D366;
        }

        .share-btn.whatsapp:hover {
            box-shadow: 0 5px 20px rgba(37, 211, 102, 0.6);
        }

        .share-btn.telegram {
            background: linear-gradient(135deg, #0088cc, #0066aa);
            border-color: #0088cc;
        }

        .share-btn.telegram:hover {
            box-shadow: 0 5px 20px rgba(0, 136, 204, 0.6);
        }

        .share-btn.twitter {
            background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
            border-color: #1DA1F2;
        }

        .share-btn.twitter:hover {
            box-shadow: 0 5px 20px rgba(29, 161, 242, 0.6);
        }

        .share-btn.facebook {
            background: linear-gradient(135deg, #1877F2, #0d65d9);
            border-color: #1877F2;
        }

        .share-btn.facebook:hover {
            box-shadow: 0 5px 20px rgba(24, 119, 242, 0.6);
        }

        .share-btn.copy {
            background: linear-gradient(135deg, #666, #444);
            border-color: #888;
        }

        .share-btn.copy:hover {
            box-shadow: 0 5px 20px rgba(136, 136, 136, 0.6);
        }

        .share-btn svg {
            width: 24px;
            height: 24px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        /* Achievement popup styles */
        .achievement-popup {
            position: fixed;
            top: -200px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.85), rgba(218, 165, 32, 0.85));
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 3px solid rgba(255, 215, 0, 0.9);
            border-radius: 15px;
            padding: 20px 30px;
            box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6);
            pointer-events: none;
            transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .achievement-popup.show {
            top: 20px;
        }

        .achievement-content {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .achievement-icon {
            font-size: 48px;
            animation: achievement-bounce 0.6s ease-in-out;
        }

        @keyframes achievement-bounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        .achievement-text {
            text-align: left;
        }

        .achievement-title {
            font-size: 12px;
            font-weight: bold;
            color: #8B4513;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 5px;
        }

        .achievement-name {
            font-size: 20px;
            font-weight: bold;
            color: #000;
            margin-bottom: 5px;
            text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
        }

        .achievement-description {
            font-size: 14px;
            color: #333;
            font-style: italic;
        }

        /* Responsive achievement popup for mobile */
        @media (max-width: 768px) {
            .achievement-popup {
                padding: 15px 20px;
                max-width: 90vw;
            }

            .achievement-icon {
                font-size: 36px;
            }

            .achievement-name {
                font-size: 16px;
            }

            .achievement-description {
                font-size: 12px;
            }

            .achievement-content {
                gap: 10px;
            }
        }

        /* Mobile Tips Overlay */
        .mobile-tips-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 40;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .mobile-tips-content {
            background: linear-gradient(135deg, rgba(0, 50, 100, 0.4), rgba(0, 30, 60, 0.3));
            padding: 30px;
            border-radius: 20px;
            border: 2px solid rgba(0, 150, 255, 0.5);
            box-shadow: 0 0 40px rgba(0, 150, 255, 0.4);
            max-width: 500px;
            max-height: 90vh;
            margin: 20px;
            text-align: center;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .mobile-tips-content h2 {
            color: white;
            font-size: 2rem;
            margin-bottom: 25px;
            text-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
        }

        .tips-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 25px;
        }

        .tip-item {
            display: flex;
            gap: 15px;
            align-items: flex-start;
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-align: left;
        }

        .tip-icon {
            font-size: 2rem;
            min-width: 50px;
            text-align: center;
        }

        .tip-text {
            flex: 1;
        }

        .tip-text strong {
            color: #00ccff;
            font-size: 1.1rem;
            display: block;
            margin-bottom: 5px;
        }

        .tip-text p {
            color: #cccccc;
            font-size: 0.9rem;
            line-height: 1.4;
            margin: 0;
        }

        .share-icon {
            font-weight: bold;
            color: #00ff00;
            font-size: 1.2rem;
        }

        .dont-show-again {
            display: block;
            margin-top: 15px;
            color: #888;
            font-size: 0.9rem;
            cursor: pointer;
            user-select: none;
        }

        .dont-show-again input {
            margin-right: 8px;
            cursor: pointer;
        }

        /* Credits overlay styles */
        #creditsOverlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: radial-gradient(circle at center, rgba(20, 20, 60, 0.95), rgba(0, 0, 20, 0.98));
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 30;
            overflow-y: auto;
        }

        .credits-content {
            background: linear-gradient(135deg, rgba(0, 50, 100, 0.3), rgba(0, 30, 60, 0.2));
            padding: 30px;
            border-radius: 15px;
            border: 2px solid rgba(0, 150, 255, 0.4);
            box-shadow: 0 0 30px rgba(0, 150, 255, 0.3);
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            text-align: center;
        }

        .credits-content h2 {
            color: white;
            font-size: 2rem;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #00ffff, #ffffff, #ffff00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .credits-version {
            font-size: 0.9rem;
            color: #888888;
            margin-bottom: 30px;
            opacity: 0.7;
        }

        .credits-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .credit-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .credit-item h3 {
            color: #88ddff;
            font-size: 1.1rem;
            margin-bottom: 10px;
        }

        .credit-item p {
            color: #cccccc;
            font-size: 0.9rem;
            line-height: 1.4;
            margin: 0;
        }

        .credits-thanks {
            margin: 30px 0;
            padding: 20px;
            background: rgba(0, 100, 0, 0.2);
            border-radius: 10px;
            border: 1px solid rgba(0, 255, 0, 0.3);
        }

        .credits-thanks p {
            color: #aaffaa;
            margin: 10px 0;
            font-size: 1rem;
        }

        .credits-actions {
            display: flex;
            flex-direction: column;
            gap: 15px;
            align-items: center;
        }

        /* Level Up Screen Styles */
        #levelUpScreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: radial-gradient(circle at center, rgba(0, 100, 0, 0.8), rgba(0, 50, 0, 0.9));
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 25;
            animation: levelUpFadeIn 0.5s ease-out;
        }

        .level-up-content {
            text-align: center;
            background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 200, 100, 0.1));
            padding: 40px;
            border-radius: 20px;
            border: 3px solid rgba(0, 255, 0, 0.6);
            box-shadow: 0 0 40px rgba(0, 255, 0, 0.5);
            animation: levelUpPulse 2s ease-in-out infinite;
        }

        #levelUpTitle {
            font-size: 3rem;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #00ff00, #00ffff, #ffffff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: bold;
            animation: levelUpGlow 1s ease-in-out infinite alternate;
        }

        #levelUpMessage {
            font-size: 2rem;
            color: #00ff88;
            margin-bottom: 30px;
            font-weight: bold;
            text-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
            animation: levelUpBounce 1.5s ease-in-out infinite;
        }

        #levelUpStats {
            margin-bottom: 20px;
        }

        #levelUpStats div {
            font-size: 1.3rem;
            color: #88ff88;
            margin: 10px 0;
            font-weight: bold;
        }

        #levelUpStats span {
            color: #ffffff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        }

        #nextLevelInfo {
            font-size: 1.1rem;
            color: #aaffaa;
            font-weight: bold;
        }

        #nextLevelInfo span {
            color: #ffff00;
            text-shadow: 0 0 8px rgba(255, 255, 0, 0.6);
        }

        .continue-hint {
            font-size: 0.9rem;
            color: #cccccc;
            margin-top: 20px;
            opacity: 0.8;
            animation: subtitleBlink 1.5s ease-in-out infinite;
        }

        @keyframes levelUpFadeIn {
            0% { opacity: 0; transform: scale(0.8); }
            100% { opacity: 1; transform: scale(1); }
        }

        @keyframes levelUpPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes levelUpGlow {
            0% { text-shadow: 0 0 20px rgba(0, 255, 0, 0.8); }
            100% { text-shadow: 0 0 30px rgba(0, 255, 255, 0.9); }
        }

        @keyframes levelUpBounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        @media (max-width: 480px) {
            #levelUpTitle {
                font-size: 2rem;
            }

            #levelUpMessage {
                font-size: 1.5rem;
            }

            .level-up-content {
                padding: 30px 20px;
                margin: 20px;
            }
        }

        /* Splash Screen Styles */
        #splashScreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: radial-gradient(circle at center, #001122 0%, #000000 70%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 20;
            cursor: pointer;
        }

        .title-container {
            text-align: center;
            animation: titlePulse 2s ease-in-out infinite;
        }

        #gameTitle {
            font-size: 4rem;
            font-weight: bold;
            margin: 0;
            background: linear-gradient(45deg,
                #ff0080, #ff8000, #ffff00, #80ff00,
                #00ff80, #0080ff, #8000ff, #ff0080
            );
            background-size: 400% 400%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: rainbowShift 3s ease-in-out infinite, titleGlow 2s ease-in-out infinite;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
            letter-spacing: 0.2em;
            filter: drop-shadow(0 0 10px rgba(255, 0, 128, 0.7));
        }

        .version {
            font-size: 0.9rem;
            color: #888888;
            margin-top: 0.5rem;
            opacity: 0.6;
            letter-spacing: 0.05em;
        }

        .subtitle {
            font-size: 1.2rem;
            color: #ffffff;
            margin-top: 2rem;
            opacity: 0.8;
            animation: subtitleBlink 1.5s ease-in-out infinite;
            letter-spacing: 0.1em;
        }

        .controls-hint {
            font-size: 0.9rem;
            color: #aaaaaa;
            margin-top: 1rem;
            opacity: 0.7;
            letter-spacing: 0.05em;
        }

        /* Splash screen credits */
        .splash-credits-section {
            margin-top: 3rem;
            text-align: center;
        }

        .splash-credits {
            font-size: 0.9rem;
            color: #cccccc;
            margin-bottom: 1rem;
            opacity: 0.6;
            letter-spacing: 0.05em;
        }

        .splash-coffee-btn {
            display: inline-block;
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(247, 147, 30, 0.2));
            color: #ffcc88;
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            border: 1px solid rgba(255, 204, 136, 0.4);
            box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
            transition: all 0.3s ease;
            opacity: 0.8;
        }

        .splash-coffee-btn:hover {
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.5), rgba(247, 147, 30, 0.4));
            box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
            opacity: 1;
            transform: translateY(-1px);
        }

        @keyframes rainbowShift {
            0%, 100% { background-position: 0% 50%; }
            25% { background-position: 100% 50%; }
            50% { background-position: 50% 100%; }
            75% { background-position: 100% 0%; }
        }

        @keyframes titleGlow {
            0%, 100% {
                transform: scale(1);
                filter: drop-shadow(0 0 10px rgba(255, 0, 128, 0.7));
            }
            50% {
                transform: scale(1.05);
                filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.9));
            }
        }

        @keyframes titlePulse {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        @keyframes subtitleBlink {
            0%, 50% { opacity: 0.8; }
            75%, 100% { opacity: 0.3; }
        }

        /* Update menu title to match splash screen */
        #menuOverlay h2 {
            font-size: 2.5rem;
            font-weight: bold;
            background: linear-gradient(45deg,
                #ff0080, #ff8000, #ffff00, #80ff00,
                #00ff80, #0080ff, #8000ff, #ff0080
            );
            background-size: 400% 400%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: rainbowShift 3s ease-in-out infinite;
            letter-spacing: 0.1em;
            margin-bottom: 30px;
        }

        /* Logo Styles */
        .logo-container {
            margin-bottom: 2rem;
            animation: logoFloat 3s ease-in-out infinite;
        }

        #spaceshipLogo {
            filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
            animation: logoGlow 2s ease-in-out infinite alternate;
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            33% { transform: translateY(-8px) rotate(2deg); }
            66% { transform: translateY(-4px) rotate(-1deg); }
        }

        @keyframes logoGlow {
            0% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)); }
            100% { filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.8)); }
        }

        /* Floating Asteroids */
        .floating-asteroids {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
        }

        .asteroid-float {
            position: absolute;
            font-size: 2rem;
            color: #666;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
        }

        .asteroid-1 {
            top: 10%;
            left: 10%;
            color: #aa8866;
            animation: asteroidFloat1 12s infinite;
        }

        .asteroid-2 {
            top: 20%;
            right: 15%;
            color: #888899;
            animation: asteroidFloat2 15s infinite;
        }

        .asteroid-3 {
            top: 60%;
            left: 5%;
            color: #997755;
            animation: asteroidFloat3 18s infinite;
        }

        .asteroid-4 {
            top: 70%;
            right: 20%;
            color: #666688;
            animation: asteroidFloat4 14s infinite;
        }

        .asteroid-5 {
            top: 40%;
            left: 80%;
            color: #885577;
            animation: asteroidFloat5 16s infinite;
        }

        .asteroid-6 {
            top: 85%;
            left: 60%;
            color: #776644;
            animation: asteroidFloat6 20s infinite;
        }

        @keyframes asteroidFloat1 {
            0% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
            25% { transform: translate(20vw, -10vh) rotate(90deg); opacity: 0.7; }
            50% { transform: translate(10vw, 20vh) rotate(180deg); opacity: 0.5; }
            75% { transform: translate(-15vw, 10vh) rotate(270deg); opacity: 0.8; }
            100% { transform: translate(0, 0) rotate(360deg); opacity: 0.3; }
        }

        @keyframes asteroidFloat2 {
            0% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
            33% { transform: translate(-25vw, 15vh) rotate(120deg); opacity: 0.8; }
            66% { transform: translate(10vw, -20vh) rotate(240deg); opacity: 0.6; }
            100% { transform: translate(0, 0) rotate(360deg); opacity: 0.4; }
        }

        @keyframes asteroidFloat3 {
            0% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
            40% { transform: translate(30vw, -25vh) rotate(144deg); opacity: 0.9; }
            80% { transform: translate(-20vw, -15vh) rotate(288deg); opacity: 0.7; }
            100% { transform: translate(0, 0) rotate(360deg); opacity: 0.5; }
        }

        @keyframes asteroidFloat4 {
            0% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
            30% { transform: translate(-20vw, -30vh) rotate(108deg); opacity: 0.8; }
            60% { transform: translate(25vw, -10vh) rotate(216deg); opacity: 0.4; }
            100% { transform: translate(0, 0) rotate(360deg); opacity: 0.6; }
        }

        @keyframes asteroidFloat5 {
            0% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
            50% { transform: translate(-40vw, 20vh) rotate(180deg); opacity: 0.7; }
            100% { transform: translate(0, 0) rotate(360deg); opacity: 0.3; }
        }

        @keyframes asteroidFloat6 {
            0% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
            25% { transform: translate(-15vw, -40vh) rotate(90deg); opacity: 0.6; }
            50% { transform: translate(20vw, -30vh) rotate(180deg); opacity: 0.8; }
            75% { transform: translate(10vw, -10vh) rotate(270deg); opacity: 0.5; }
            100% { transform: translate(0, 0) rotate(360deg); opacity: 0.4; }
        }

        @media (max-width: 480px) {
            #gameTitle {
                font-size: 2.5rem;
            }

            .subtitle {
                font-size: 1rem;
            }

            #menuOverlay h2 {
                font-size: 2rem;
            }

            .logo-container {
                margin-bottom: 1.5rem;
            }

            #spaceshipLogo {
                width: 80px;
                height: 80px;
            }

            .asteroid-float {
                font-size: 1.5rem;
            }

            .controls-hint {
                font-size: 0.8rem;
            }

            .splash-credits-section {
                margin-top: 2rem;
            }

            .splash-credits {
                font-size: 0.8rem;
            }

            /* Adjust stats display for mobile */
            .top-right-ui {
                top: 15px;
                right: 15px;
            }

            .top-left-ui {
                top: 15px;
                left: 15px;
            }

            #score {
                font-size: 16px;
            }

            #asteroidCount, #gameTime {
                font-size: 12px;
            }

            #menuBtn, #pauseBtn {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            /* Mobile control buttons - larger and reorganized (+15%) */
            #thrustBtn {
                bottom: 30px;
                left: 20px;
                width: 104px; /* 90px * 1.15 */
                height: 104px;
                font-size: 41px; /* 36px * 1.15 */
            }

            #fireBtn {
                bottom: 154px; /* 30px + 104px + 20px gap */
                left: 20px;
                width: 104px;
                height: 104px;
                font-size: 41px;
            }

            #shieldBtn {
                bottom: 278px; /* 154px + 104px + 20px gap */
                left: 20px;
                width: 104px;
                height: 104px;
                font-size: 35px; /* 30px * 1.15 */
            }

            #shieldCount {
                bottom: -9px;
                right: -9px;
                width: 32px; /* 28px * 1.15 */
                height: 32px;
                font-size: 18px; /* 16px * 1.15 */
            }

            /* Movement buttons - larger on mobile (+15%) */
            #leftBtn {
                bottom: 30px;
                right: 144px; /* 20px margin + 104px right button + 20px gap */
                width: 104px;
                height: 104px;
                font-size: 41px;
            }

            #rightBtn {
                bottom: 30px;
                right: 20px;
                width: 104px;
                height: 104px;
                font-size: 41px;
            }

            .splash-coffee-btn {
                font-size: 0.75rem;
                padding: 6px 12px;
            }

            #levelDisplay {
                font-size: 20px;
            }

            .game-stats p {
                font-size: 18px;
            }

            .coffee-btn {
                font-size: 13px;
                padding: 8px 16px;
            }

            .thank-you-message {
                font-size: 14px;
                padding: 12px;
            }

            .credits-content {
                padding: 20px;
                margin: 10px;
                max-height: 85vh;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            .credits-content h2 {
                font-size: 1.5rem;
            }

            .credits-info {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .credit-item {
                padding: 12px;
            }

            .credits-actions {
                flex-direction: column;
            }

            /* Make game control buttons smaller to prevent overlapping */
            #thrustBtn, #fireBtn, #shieldBtn, #leftBtn, #rightBtn {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }

            /* Adjust button positions for smaller sizes */
            #thrustBtn {
                left: 20px;
                bottom: 50px;
            }

            #fireBtn {
                left: 80px; /* 20px margin + 50px thrust + 10px gap */
                bottom: 50px;
            }

            #shieldBtn {
                left: 140px; /* 20px margin + 50px thrust + 10px gap + 50px fire + 10px gap */
                bottom: 50px;
            }

            #leftBtn {
                right: 80px; /* 20px margin + 50px right + 10px gap */
                bottom: 50px;
            }

            #rightBtn {
                right: 20px;
                bottom: 50px;
            }

            /* Adjust shield count for smaller button */
            #shieldCount {
                width: 16px;
                height: 16px;
                font-size: 10px;
                bottom: -3px;
                right: -3px;
            }
        }
