        /* ===== RESET & BASE STYLES ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }

        html,
        body {
            width: 100%;
            height: 100%;
            overflow: hidden;
            position: fixed;
        }

        body {
            margin: 0;
            padding: 0;
            overflow: hidden;
            background: #000000;
            font-family: 'Segoe UI', sans-serif;
        }

        /* ===== REALISTIC GALAXY BACKGROUND ===== */
        #galaxy-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
            overflow: hidden;
        }

        .galaxy-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .galaxy-star-bg {
            position: absolute;
            background: white;
            border-radius: 50%;
            animation: galaxyTwinkle 4s infinite ease-in-out;
        }

        @keyframes galaxyTwinkle {
            0%, 100% { opacity: 0.2; transform: scale(0.8); }
            50% { opacity: 1; transform: scale(1.2); }
        }

        .galaxy-spiral-arm {
            position: absolute;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.1), rgba(138, 43, 226, 0.1), transparent 70%);
            border-radius: 50%;
            filter: blur(40px);
            animation: spiralRotate 120s infinite linear;
        }

        @keyframes spiralRotate {
            from { transform: rotate(0deg) scale(1); }
            to { transform: rotate(360deg) scale(1.2); }
        }

        .galaxy-nebula-cloud {
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle at 40% 40%, rgba(75, 0, 130, 0.15), rgba(0, 0, 139, 0.1), transparent 80%);
            border-radius: 50%;
            filter: blur(50px);
            animation: nebulaFloat 40s infinite alternate ease-in-out;
        }

        @keyframes nebulaFloat {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(50px, 30px) scale(1.2); }
        }

        .galaxy-core {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 400px;
            height: 400px;
            background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.3), rgba(138, 43, 226, 0.2), transparent 70%);
            border-radius: 50%;
            filter: blur(30px);
            animation: corePulse 8s infinite alternate;
        }

        @keyframes corePulse {
            0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
            100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
        }

        /* ===== HIGH ALTITUDE GALAXY (10,000+ FT) ===== */
        #high-altitude-galaxy {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 8;
            pointer-events: none;
            opacity: 0;
            transition: opacity 2s ease;
            overflow: hidden;
        }

        #high-altitude-galaxy.visible {
            opacity: 1;
        }

        .galaxy-field {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 20% 30%, rgba(100, 50, 150, 0.3), transparent 60%),
                        radial-gradient(circle at 80% 70%, rgba(50, 100, 200, 0.3), transparent 60%);
            animation: galaxyDrift 30s infinite alternate;
        }

        @keyframes galaxyDrift {
            0% { transform: scale(1) rotate(0deg); }
            100% { transform: scale(1.1) rotate(5deg); }
        }

        .galaxy-star-large {
            position: absolute;
            background: white;
            border-radius: 50%;
            box-shadow: 0 0 30px white, 0 0 60px rgba(255, 255, 255, 0.5);
            animation: starPulse 4s infinite ease-in-out;
        }

        @keyframes starPulse {
            0%, 100% { transform: scale(1); opacity: 0.6; }
            50% { transform: scale(1.3); opacity: 1; }
        }

        /* ===== BOSS APPEARANCE INDICATOR ===== */
        #boss-indicator {
            position: absolute;
            bottom: 120px;
            right: 30px;
            background: linear-gradient(135deg, #ef4444, #fbbf24);
            color: white;
            padding: 10px 20px;
            border-radius: 30px;
            font-size: 16px;
            font-weight: bold;
            z-index: 600;
            display: none;
            align-items: center;
            gap: 8px;
            border: 2px solid #ffffff;
            box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
            animation: indicatorPulse 1s infinite;
        }

        #boss-indicator::before {
            content: '👑';
            font-size: 20px;
        }

        @keyframes indicatorPulse {
            0% { transform: scale(1); box-shadow: 0 0 20px #ef4444; }
            50% { transform: scale(1.05); box-shadow: 0 0 40px #fbbf24; }
            100% { transform: scale(1); box-shadow: 0 0 20px #ef4444; }
        }

        /* ===== NOTIFICATION LOG PAGE ===== */
        #notification-log-page {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4a 50%, #3d2a5a 100%);
            display: none;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            z-index: 2500;
            color: white;
            text-align: center;
            transition: opacity 0.5s ease;
            overflow-y: auto;
            padding: 20px;
        }

        #notification-log-page.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .notification-header {
            width: 100%;
            max-width: 800px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.7);
            border: 3px solid #fbbf24;
            border-radius: 30px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .notification-header h2 {
            color: #fbbf24;
            font-size: 36px;
            text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
            margin: 0;
        }

        .clear-notifications-btn {
            background: #ef4444;
            color: white;
            border: 2px solid #fbbf24;
            padding: 12px 25px;
            border-radius: 40px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 0 #b91c1c;
        }

        .clear-notifications-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 0 #b91c1c;
            background: #f87171;
        }

        .clear-notifications-btn:active {
            transform: translateY(4px);
            box-shadow: 0 2px 0 #b91c1c;
        }

        .notifications-container {
            width: 100%;
            max-width: 800px;
            background: rgba(0, 0, 0, 0.8);
            border: 3px solid #fbbf24;
            border-radius: 30px;
            padding: 20px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            min-height: 400px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .notification-item {
            background: rgba(251, 191, 36, 0.1);
            border: 2px solid #fbbf24;
            border-radius: 20px;
            padding: 15px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
            animation: notificationSlide 0.3s ease-out;
            transition: all 0.3s ease;
        }

        .notification-item:hover {
            transform: translateX(5px);
            background: rgba(251, 191, 36, 0.2);
        }

        .notification-icon {
            font-size: 32px;
            min-width: 50px;
            text-align: center;
        }

        .notification-content {
            flex: 1;
            text-align: left;
        }

        .notification-title {
            color: #fbbf24;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .notification-message {
            color: #fff5e6;
            font-size: 14px;
            line-height: 1.4;
        }

        .notification-time {
            color: #87CEEB;
            font-size: 12px;
            margin-top: 5px;
        }

        .notification-delete {
            background: #ef4444;
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .notification-delete:hover {
            transform: scale(1.1);
            background: #f87171;
        }

        @keyframes notificationSlide {
            0% { transform: translateX(-100px); opacity: 0; }
            100% { transform: translateX(0); opacity: 1; }
        }

        .close-notification-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 15px 50px;
            border-radius: 50px;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            margin: 30px auto 10px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 0 #b45309;
            width: 200px;
        }

        .close-notification-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 0 #b45309;
            background: #fcd34d;
        }

        .close-notification-btn:active {
            transform: translateY(4px);
            box-shadow: 0 2px 0 #b45309;
        }

        /* ===== NOTIFICATION BELL IN HOME MENU ===== */
        #notification-bell {
            position: absolute;
            top: 15px;
            right: 120px;
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: white;
            border: 2px solid #ffffff;
            padding: 10px 15px;
            border-radius: 40px;
            font-size: 16px;
            cursor: pointer;
            z-index: 210;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
            animation: bellRing 2s infinite;
        }

        #notification-bell:hover {
            transform: scale(1.05);
            background: #fbbf24;
            box-shadow: 0 0 30px #fbbf24;
        }

        #notification-bell::before {
            content: '🔔';
            font-size: 18px;
        }

        #notification-count {
            background: #ef4444;
            color: white;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            margin-left: 5px;
            animation: countPulse 1s infinite;
        }

        @keyframes bellRing {
            0%, 100% { transform: rotate(0deg); }
            10% { transform: rotate(15deg); }
            20% { transform: rotate(-15deg); }
            30% { transform: rotate(10deg); }
            40% { transform: rotate(-10deg); }
            50% { transform: rotate(5deg); }
            60% { transform: rotate(-5deg); }
        }

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

        /* ===== MYSTERY BOX STYLES ===== */
        #mystery-box-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 700;
            display: none;
            text-align: center;
        }

        .mystery-box {
            width: 300px;
            height: 300px;
            background: linear-gradient(135deg, #8b5cf6, #6b21a5, #a78bfa);
            border-radius: 20px;
            border: 6px solid #fbbf24;
            box-shadow: 0 0 80px #8b5cf6, 0 0 150px #a78bfa;
            animation: boxGlow 1.5s infinite, boxFloat 3s infinite;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .mystery-box::before {
            content: '❓';
            font-size: 120px;
            color: #fbbf24;
            text-shadow: 0 0 30px #fbbf24;
            animation: questionMark 1s infinite;
            z-index: 2;
        }

        .mystery-box::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
            animation: boxShine 4s infinite;
        }

        @keyframes boxGlow {
            0% { box-shadow: 0 0 50px #8b5cf6, 0 0 100px #a78bfa; }
            50% { box-shadow: 0 0 100px #8b5cf6, 0 0 200px #a78bfa; }
            100% { box-shadow: 0 0 50px #8b5cf6, 0 0 100px #a78bfa; }
        }

        @keyframes boxFloat {
            0% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0); }
        }

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

        @keyframes boxShine {
            0% { transform: rotate(0deg) scale(1); opacity: 0.3; }
            50% { transform: rotate(180deg) scale(1.2); opacity: 0.6; }
            100% { transform: rotate(360deg) scale(1); opacity: 0.3; }
        }

        .mystery-box.hover {
            transform: scale(1.05);
            filter: brightness(1.2);
        }

        .mystery-box.opening {
            animation: boxOpen 0.5s ease-out forwards;
        }

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

        .mystery-reward {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 60px;
            font-weight: bold;
            text-shadow: 0 0 30px #fbbf24, 0 0 60px #fbbf24;
            z-index: 800;
            display: none;
            animation: rewardPop 0.5s ease-out;
        }

        @keyframes rewardPop {
            0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
            50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
        }

        #mystery-box-counter {
            position: absolute;
            top: 100px;
            right: 30px;
            background: linear-gradient(135deg, #8b5cf6, #6b21a5);
            color: white;
            padding: 12px 20px;
            border-radius: 40px;
            font-size: 18px;
            font-weight: bold;
            z-index: 600;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 2px solid #fbbf24;
            box-shadow: 0 0 30px #8b5cf6;
            animation: counterPulse 2s infinite;
        }

        #mystery-box-counter::before {
            content: '📦';
            font-size: 24px;
        }

        @keyframes counterPulse {
            0% { box-shadow: 0 0 20px #8b5cf6; }
            50% { box-shadow: 0 0 40px #a78bfa; }
            100% { box-shadow: 0 0 20px #8b5cf6; }
        }

        .mystery-claim-btn {
            background: linear-gradient(135deg, #8b5cf6, #6b21a5);
            color: white;
            border: 2px solid #fbbf24;
            border-radius: 30px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 5px;
            display: none;
            align-items: center;
            gap: 5px;
        }

        .mystery-claim-btn.visible {
            display: flex;
        }

        .mystery-claim-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 30px #8b5cf6;
        }

        .mystery-claim-btn::before {
            content: '🎁';
            font-size: 18px;
        }

        /* ===== HIGH ALTITUDE WARNING ===== */
        #high-altitude-warning {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #ef4444, #f97316);
            color: white;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: bold;
            z-index: 600;
            display: none;
            align-items: center;
            gap: 8px;
            border: 2px solid #ffffff;
            box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
            animation: warningFlash 0.5s infinite;
        }

        #high-altitude-warning::before {
            content: '⚠️';
            font-size: 16px;
        }

        @keyframes warningFlash {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* ===== ENEMY HIT INDICATOR ===== */
        .enemy-hit-effect {
            position: absolute;
            width: 20px;
            height: 20px;
            background: radial-gradient(circle, #ff0000, transparent);
            border-radius: 50%;
            pointer-events: none;
            z-index: 100;
            animation: hitFade 0.3s ease-out forwards;
        }

        @keyframes hitFade {
            0% { transform: scale(0.5); opacity: 1; }
            100% { transform: scale(2); opacity: 0; }
        }

        /* ===== LOGIN PAGE - HIDDEN BY DEFAULT ===== */
        #login-page {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4a 50%, #3d2a5a 100%);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            color: white;
            text-align: center;
            transition: opacity 0.5s ease;
            overflow-y: auto;
        }

        #login-page.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .login-content {
            background: rgba(0, 0, 0, 0.7);
            border: 3px solid #fbbf24;
            border-radius: 30px;
            padding: 40px;
            max-width: 500px;
            width: 90%;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 0 50px rgba(251, 191, 36, 0.3);
            margin: 20px auto;
        }

        .login-content h1 {
            font-size: 36px;
            color: #fbbf24;
            text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
            margin-bottom: 20px;
        }

        .login-content p {
            color: #fff5e6;
            margin-bottom: 30px;
            font-size: 16px;
        }

        .login-input-group {
            margin-bottom: 15px;
            text-align: left;
        }

        .login-input-group label {
            display: block;
            color: #fbbf24;
            font-size: 14px;
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .login-input {
            width: 100%;
            padding: 12px 20px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid #fbbf24;
            border-radius: 50px;
            color: white;
            font-size: 16px;
            outline: none;
            transition: all 0.3s ease;
        }

        .login-input:focus {
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
        }

        .login-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .login-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 15px 40px;
            border-radius: 50px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 0 #b45309;
            width: 100%;
            margin-top: 20px;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 0 #b45309;
            background: #fcd34d;
        }

        .login-btn:active {
            transform: translateY(4px);
            box-shadow: 0 2px 0 #b45309;
        }

        /* ===== LOADING PAGE WITH ANIMATION ===== */
        #loading-page {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4a 50%, #3d2a5a 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            color: white;
            text-align: center;
            transition: opacity 0.5s ease;
        }

        #loading-page.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loading-content {
            animation: loadingPulse 2s ease-in-out infinite;
        }

        .loading-content h1 {
            font-size: 48px;
            color: #fbbf24;
            text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
            margin-bottom: 30px;
            animation: titleGlow 1.5s ease-in-out infinite;
        }

        @keyframes titleGlow {
            0% { text-shadow: 0 0 20px rgba(251, 191, 36, 0.5); transform: scale(1); }
            50% { text-shadow: 0 0 40px rgba(251, 191, 36, 0.8), 0 0 60px rgba(251, 191, 36, 0.4); transform: scale(1.05); }
            100% { text-shadow: 0 0 20px rgba(251, 191, 36, 0.5); transform: scale(1); }
        }

        @keyframes loadingPulse {
            0% { opacity: 0.7; }
            50% { opacity: 1; }
            100% { opacity: 0.7; }
        }

        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 5px solid #9f7aea;
            border-top: 5px solid #fbbf24;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }

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

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

        .loading-content p {
            color: #e9d8fd;
            font-size: 18px;
            animation: textFade 2s ease-in-out infinite;
        }

        @keyframes textFade {
            0% { color: #e9d8fd; }
            50% { color: #fbbf24; }
            100% { color: #e9d8fd; }
        }

        /* ===== HOME MENU - DEEP BLUE GRADIENT ===== */
        #home-menu {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #0a1a2e 0%, #1a2f4a 50%, #2a3f5a 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 200;
            color: white;
            text-align: center;
            opacity: 0;
            transition: opacity 0.5s ease;
            overflow-y: auto;
            padding: 20px;
        }

        #home-menu.visible {
            opacity: 1;
        }

        #home-menu h1 {
            font-size: 48px;
            color: #fbbf24;
            text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
            margin-bottom: 10px;
        }

        #home-menu p {
            color: #fff5e6;
            margin-bottom: 30px;
            max-width: 500px;
        }

        .menu-buttons {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 30px;
        }

        /* Pilot Welcome Banner (Home Screen Only) */
        #pilot-welcome {
            background: rgba(251, 191, 36, 0.2);
            border: 2px solid #fbbf24;
            border-radius: 50px;
            padding: 15px 30px;
            margin: 20px 0;
            font-size: 24px;
            color: #fbbf24;
            display: none;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            max-width: 500px;
        }

        #pilot-welcome span {
            color: white;
            font-size: 20px;
        }

        /* ===== LOGIN BUTTON IN HOME PAGE - HIDDEN BY DEFAULT ===== */
        #home-login-btn {
            position: absolute;
            bottom: 30px;
            right: 30px;
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            border: 2px solid #fbbf24;
            padding: 12px 25px;
            border-radius: 50px;
            font-size: 18px;
            cursor: pointer;
            z-index: 210;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            display: none;
            align-items: center;
            gap: 8px;
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
        }

        #home-login-btn:hover {
            background: #fbbf24;
            color: #5B9BD5;
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
        }

        #home-login-btn.hidden {
            display: none;
        }

        /* ===== SIGN OUT BUTTON IN PILOT DATA ===== */
        .signout-btn {
            background: #ef4444;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 40px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 0 #b91c1c;
            margin-top: 20px;
            width: 100%;
        }

        .signout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 0 #b91c1c;
            background: #f87171;
        }

        .signout-btn:active {
            transform: translateY(4px);
            box-shadow: 0 2px 0 #b91c1c;
        }

        /* ===== NOTE BUTTON - MOVED TO LEFT BOTTOM ===== */
        #note-btn {
            position: absolute;
            bottom: 30px;
            left: 30px;
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            border: 2px solid #fbbf24;
            padding: 12px 25px;
            border-radius: 50px;
            font-size: 18px;
            cursor: pointer;
            z-index: 210;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
        }

        #note-btn:hover {
            background: #fbbf24;
            color: #5B9BD5;
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
        }

        /* ===== NOTE ENCYCLOPEDIA MENU - ENHANCED ===== */
        #note-menu {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.98);
            border: 4px solid #fbbf24;
            border-radius: 30px;
            padding: 30px;
            color: white;
            z-index: 3000;
            display: none;
            width: 900px;
            max-width: 95%;
            max-height: 85vh;
            overflow-y: auto;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 0 100px rgba(251, 191, 36, 0.5);
            animation: noteAppear 0.3s ease-out;
        }

        @keyframes noteAppear {
            0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
        }

        #note-menu h2 {
            color: #fbbf24;
            text-align: center;
            font-size: 42px;
            margin-bottom: 20px;
            text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .note-tabs {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
            border-bottom: 2px solid rgba(251, 191, 36, 0.3);
            padding-bottom: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .note-tab {
            padding: 12px 25px;
            background: rgba(251, 191, 36, 0.1);
            border: 2px solid #fbbf24;
            border-radius: 40px;
            color: #fff5e6;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .note-tab:hover {
            background: rgba(251, 191, 36, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
        }

        .note-tab.active {
            background: #fbbf24;
            color: #0a1a2e;
        }

        .note-content {
            display: none;
            padding: 20px 0;
        }

        .note-content.active {
            display: block;
        }

        .note-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            padding: 10px;
        }

        .note-card {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid #fbbf24;
            border-radius: 20px;
            padding: 20px;
            transition: all 0.3s ease;
            animation: cardGlow 2s infinite;
        }

        @keyframes cardGlow {
            0% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.3); }
            50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.6); }
            100% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.3); }
        }

        .note-card:hover {
            transform: translateY(-5px);
            background: rgba(251, 191, 36, 0.15);
        }

        .note-card-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
            border-bottom: 1px solid rgba(251, 191, 36, 0.3);
            padding-bottom: 10px;
        }

        .note-card-icon {
            font-size: 48px;
            min-width: 60px;
            text-align: center;
        }

        .note-card-title {
            color: #fbbf24;
            font-size: 24px;
            font-weight: bold;
        }

        .note-card-stats {
            margin: 10px 0;
            line-height: 1.8;
        }

        .note-card-stat {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 16px;
        }

        .note-card-stat span:first-child {
            color: #87CEEB;
        }

        .note-card-stat span:last-child {
            color: #fbbf24;
            font-weight: bold;
        }

        .note-card-desc {
            color: #fff5e6;
            font-size: 14px;
            margin-top: 10px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            border-left: 3px solid #fbbf24;
        }

        /* Enemy Color Preview */
        .enemy-color-preview {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 2px solid white;
            margin-right: 10px;
            display: inline-block;
            vertical-align: middle;
        }

        .close-note-btn {
            background: #fbbf24;
            color: #0a1a2e;
            border: none;
            padding: 15px 50px;
            border-radius: 50px;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            margin: 30px auto 10px;
            display: block;
            transition: all 0.3s ease;
            box-shadow: 0 4px 0 #b45309;
        }

        .close-note-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 0 #b45309;
            background: #fcd34d;
        }

        /* ===== LEFT SIDE REWARDS CONTAINER ===== */
        .rewards-left {
            position: absolute;
            top: 20px;
            left: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 210;
        }

        #daily-reward-btn, #free-spin-btn, #home-coin-display {
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border: 2px solid #fbbf24;
            border-radius: 40px;
            padding: 12px 20px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            color: white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        }

        #daily-reward-btn {
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            border-color: #fbbf24;
        }

        #free-spin-btn {
            background: rgba(135, 206, 235, 0.2);
            border-color: #87CEEB;
            color: #87CEEB;
        }

        #home-coin-display {
            background: rgba(251, 191, 36, 0.2);
            border-color: #fbbf24;
            color: #fbbf24;
            cursor: default;
            pointer-events: none;
        }

        #daily-reward-btn:hover, #free-spin-btn:hover {
            transform: scale(1.05);
        }

        #daily-reward-btn:hover {
            background: #fbbf24;
            color: #5B9BD5;
        }

        #free-spin-btn:hover {
            background: #87CEEB;
            color: #1e3a8a;
        }

        #daily-reward-btn.claimed, #free-spin-btn.claimed {
            opacity: 0.5;
            pointer-events: none;
            border-color: #64748b;
        }

        .spin-count {
            background: #fbbf24;
            color: #1e293b;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            margin-left: 5px;
        }

        /* ===== FREE SPIN WHEEL MODAL - ENHANCED ===== */
        #spin-wheel-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 5000;
            display: none;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(10px);
        }

        .spin-wheel-container {
            background: linear-gradient(135deg, #2d1b4a, #1a0b2e);
            border: 4px solid #fbbf24;
            border-radius: 30px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 0 100px rgba(251, 191, 36, 0.5);
            animation: wheelAppear 0.5s ease-out;
        }

        @keyframes wheelAppear {
            0% { transform: scale(0.5); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

        .spin-wheel {
            width: 300px;
            height: 300px;
            border-radius: 50%;
            position: relative;
            margin: 20px auto;
            box-shadow: 0 0 50px rgba(251, 191, 36, 0.5);
            transition: transform 3s cubic-bezier(0.25, 0.1, 0.15, 1);
            cursor: pointer;
            border: 4px solid #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            background: conic-gradient(
                #fbbf24 0deg 36deg,
                #87CEEB 36deg 72deg,
                #fbbf24 72deg 108deg,
                #87CEEB 108deg 144deg,
                #fbbf24 144deg 180deg,
                #87CEEB 180deg 216deg,
                #fbbf24 216deg 252deg,
                #87CEEB 252deg 288deg,
                #fbbf24 288deg 324deg,
                #87CEEB 324deg 360deg
            );
        }

        .wheel-segment-text {
            position: absolute;
            font-size: 18px;
            font-weight: bold;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 10;
            background: rgba(0,0,0,0.3);
            padding: 4px 8px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.3);
        }

        .spin-wheel::after {
            content: '🎰';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 40px;
            background: rgba(0, 0, 0, 0.5);
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 3px solid #fbbf24;
            color: white;
            z-index: 20;
        }

        .wheel-pointer {
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-top: 40px solid #fbbf24;
            filter: drop-shadow(0 0 10px #fbbf24);
            z-index: 5001;
        }

        .spin-wheel.spinning {
            animation: spinWheel 3s cubic-bezier(0.25, 0.1, 0.15, 1) forwards;
        }

        @keyframes spinWheel {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(1440deg); }
        }

        .wheel-reward {
            font-size: 32px;
            color: #fbbf24;
            margin: 20px 0;
            padding: 15px 30px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50px;
            border: 2px solid #fbbf24;
            animation: rewardPulse 0.5s ease-out;
        }

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

        .close-wheel-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 15px 40px;
            border-radius: 40px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 20px;
            transition: all 0.3s ease;
        }

        .close-wheel-btn:hover {
            transform: scale(1.05);
            background: #fcd34d;
        }

        /* ===== SHOOTING STAR ANIMATION ===== */
        .shooting-star-effect {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
            overflow: hidden;
        }

        .shooting-star {
            position: absolute;
            width: 150px;
            height: 2px;
            background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0));
            border-radius: 50%;
            filter: drop-shadow(0 0 20px #fbbf24);
            animation: shootingStarMove 4s linear forwards;
            transform: rotate(45deg);
            opacity: 0;
        }

        .shooting-star::after {
            content: '';
            position: absolute;
            top: -2px;
            right: 0;
            width: 6px;
            height: 6px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 0 20px #fbbf24;
        }

        @keyframes shootingStarMove {
            0% {
                transform: translate(100vw, -100px) rotate(45deg);
                opacity: 1;
            }
            100% {
                transform: translate(-100vw, 100vh) rotate(45deg);
                opacity: 0;
            }
        }

        /* ===== PRIVACY POLICY BUTTON ===== */
        #privacy-btn {
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            border: 2px solid #fbbf24;
            padding: 12px 20px;
            border-radius: 40px;
            font-size: 16px;
            cursor: pointer;
            z-index: 210;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 10px auto;
        }

        #privacy-btn:hover {
            background: #fbbf24;
            color: #5B9BD5;
            transform: scale(1.05);
        }

        /* ===== PRIVACY POLICY MENU - ENHANCED ===== */
        #privacy-menu {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.98);
            border: 3px solid #fbbf24;
            padding: 40px;
            border-radius: 20px;
            color: white;
            z-index: 500;
            display: none;
            width: 700px;
            max-width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 0 50px rgba(91, 155, 213, 0.3);
        }

        #privacy-menu h2 {
            color: #fbbf24;
            text-align: center;
            margin-bottom: 25px;
            font-size: 36px;
            text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
        }

        .privacy-content {
            color: #fff5e6;
            line-height: 1.8;
            margin-bottom: 25px;
            text-align: left;
        }

        .privacy-content h3 {
            color: #fbbf24;
            margin: 25px 0 15px;
            font-size: 22px;
            border-bottom: 2px solid rgba(251, 191, 36, 0.3);
            padding-bottom: 8px;
        }

        .privacy-content h3:first-of-type {
            margin-top: 0;
        }

        .privacy-content p {
            margin-bottom: 15px;
            font-size: 15px;
        }

        .privacy-content ul {
            margin-left: 25px;
            margin-bottom: 20px;
        }

        .privacy-content li {
            margin-bottom: 8px;
            color: #e2e8f0;
        }

        .privacy-content strong {
            color: #fbbf24;
        }

        .privacy-highlight {
            background: rgba(251, 191, 36, 0.1);
            border-left: 4px solid #fbbf24;
            padding: 15px;
            margin: 20px 0;
            border-radius: 0 10px 10px 0;
        }

        /* ===== SCORE DISPLAY IN MAIN MENU - UPDATED TO HIGH SCORE ===== */
        #menu-highscore-display {
            font-size: 24px;
            color: #fbbf24;
            margin: 20px 0;
            padding: 15px 30px;
            background: rgba(251, 191, 36, 0.1);
            border: 2px solid #fbbf24;
            border-radius: 50px;
            display: inline-block;
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
        }

        #menu-highscore-display span {
            color: #fbbf24;
            font-weight: bold;
            font-size: 32px;
            margin-left: 10px;
        }

        /* ===== GAME OVER MENU ===== */
        #gameover-menu {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.98);
            border: 3px solid #fbbf24;
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            color: white;
            z-index: 400;
            display: none;
            box-shadow: 0 0 50px rgba(91, 155, 213, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            min-width: 400px;
            max-width: 90%;
        }

        #gameover-menu h2 {
            color: #fbbf24;
            font-size: 48px;
            margin-bottom: 20px;
            text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
            animation: gameoverPulse 1s infinite;
        }

        @keyframes gameoverPulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1);
            }
        }

        #gameover-stats {
            color: #fff5e6;
            font-size: 18px;
            margin: 20px 0;
            line-height: 1.8;
        }

        #gameover-stats span {
            color: #fbbf24;
            font-weight: bold;
            font-size: 24px;
        }

        .gameover-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-top: 30px;
        }

        .gameover-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 15px 40px;
            border-radius: 40px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 0 #b45309;
        }

        .gameover-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 0 #b45309;
            background: #fcd34d;
        }

        .gameover-btn.secondary {
            background: #87CEEB;
            box-shadow: 0 4px 0 #5B9BD5;
        }

        .gameover-btn.secondary:hover {
            background: #B0E0E6;
        }

        /* ===== ACHIEVEMENTS MENU ===== */
        #achievements-menu {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.98);
            border: 3px solid #fbbf24;
            padding: 30px;
            border-radius: 20px;
            color: white;
            z-index: 300;
            display: none;
            width: 500px;
            max-width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 0 50px rgba(91, 155, 213, 0.3);
        }

        #achievements-menu h2 {
            color: #fbbf24;
            text-align: center;
            margin-bottom: 20px;
            font-size: 32px;
        }

        .achievement-item {
            background: rgba(251, 191, 36, 0.1);
            border: 2px solid #fbbf24;
            border-radius: 15px;
            padding: 15px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s ease;
        }

        .achievement-item.completed {
            border-color: #fbbf24;
            background: rgba(251, 191, 36, 0.2);
        }

        .achievement-icon {
            font-size: 40px;
            min-width: 60px;
            text-align: center;
        }

        .achievement-info {
            flex: 1;
        }

        .achievement-name {
            color: #fbbf24;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .achievement-desc {
            color: #fff5e6;
            font-size: 14px;
            margin-bottom: 5px;
        }

        .achievement-reward {
            color: #fbbf24;
            font-size: 14px;
        }

        .achievement-progress {
            margin-top: 5px;
            height: 6px;
            background: #334155;
            border-radius: 3px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: #fbbf24;
            transition: width 0.3s ease;
        }

        .achievement-item.completed .progress-bar {
            background: #fbbf24;
        }

        /* ===== PLANES MENU WITH EQUIP OPTION - UPDATED WITH MORE PLANES ===== */
        #planes-menu {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.98);
            border: 3px solid #fbbf24;
            padding: 30px;
            border-radius: 20px;
            color: white;
            z-index: 300;
            display: none;
            width: 600px;
            max-width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 0 50px rgba(91, 155, 213, 0.3);
        }

        #planes-menu h2 {
            color: #fbbf24;
            text-align: center;
            margin-bottom: 20px;
            font-size: 32px;
        }

        .plane-item {
            background: rgba(251, 191, 36, 0.1);
            border: 2px solid #fbbf24;
            border-radius: 15px;
            padding: 15px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .plane-item:hover {
            background: rgba(251, 191, 36, 0.2);
        }

        .plane-item.selected {
            border-color: #fbbf24;
            background: rgba(251, 191, 36, 0.2);
        }

        .plane-item.locked {
            opacity: 0.5;
            cursor: not-allowed;
            border-color: #64748b;
        }

        .plane-icon {
            font-size: 40px;
            min-width: 60px;
            text-align: center;
        }

        .plane-info {
            flex: 1;
        }

        .plane-name {
            color: #fbbf24;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .plane-stats {
            color: #fff5e6;
            font-size: 14px;
            margin-bottom: 5px;
        }

        .plane-unlock {
            color: #fbbf24;
            font-size: 14px;
        }

        .plane-equip-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .plane-equip-btn:hover {
            transform: scale(1.05);
            background: #fcd34d;
        }

        .plane-equip-btn.equipped {
            background: #10b981;
            color: white;
            cursor: default;
            pointer-events: none;
        }

        .plane-equip-btn.equipped:hover {
            transform: none;
        }

        /* ===== SETTINGS BUTTON (HOME SCREEN) ===== */
        #settings-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            border: 2px solid #fbbf24;
            padding: 12px 20px;
            border-radius: 40px;
            font-size: 16px;
            cursor: pointer;
            z-index: 210;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        #settings-btn:hover {
            background: #fbbf24;
            color: #5B9BD5;
            transform: scale(1.05);
        }

        /* ===== IN-GAME PAUSE MENU BUTTON ===== */
        #pause-menu-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            border: 2px solid #fbbf24;
            padding: 10px 15px;
            border-radius: 40px;
            font-size: 14px;
            cursor: pointer;
            z-index: 50;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            display: none;
            align-items: center;
            gap: 5px;
        }

        #pause-menu-btn:hover {
            background: #fbbf24;
            color: #5B9BD5;
            transform: scale(1.05);
        }

        /* ===== IN-GAME HUD TOGGLE BUTTON - BELOW PAUSE BUTTON ON MOBILE ===== */
        #hud-toggle-btn {
            position: absolute;
            top: 70px;
            right: 20px;
            background: rgba(251, 191, 36, 0.3);
            color: #fbbf24;
            border: 2px solid #fbbf24;
            border-radius: 30px;
            padding: 8px 12px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            z-index: 60;
            display: none;
            align-items: center;
            gap: 5px;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
            transition: all 0.3s ease;
        }

        #hud-toggle-btn:hover {
            background: #fbbf24;
            color: #5B9BD5;
            transform: scale(1.05);
        }

        #hud-toggle-btn::before {
            content: '📊';
            font-size: 14px;
        }

        /* ===== IN-GAME PAUSE MENU ===== */
        #pause-menu {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.98);
            border: 3px solid #fbbf24;
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            color: white;
            z-index: 1000;
            display: none;
            box-shadow: 0 0 50px rgba(251, 191, 36, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            min-width: 350px;
            max-width: 90%;
        }

        #pause-menu h2 {
            color: #fbbf24;
            font-size: 36px;
            margin-bottom: 30px;
            text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
        }

        .pause-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .pause-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 15px 30px;
            border-radius: 50px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 0 #b45309;
            width: 100%;
        }

        .pause-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 0 #b45309;
            background: #fcd34d;
        }

        .pause-btn.secondary {
            background: #87CEEB;
            box-shadow: 0 4px 0 #5B9BD5;
        }

        .pause-btn.secondary:hover {
            background: #B0E0E6;
        }

        .pause-btn.danger {
            background: #ef4444;
            box-shadow: 0 4px 0 #b91c1c;
        }

        .pause-btn.danger:hover {
            background: #f87171;
        }

        /* ===== SETTINGS PANEL - TABBED ===== */
        #settings-panel {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.98);
            border: 3px solid #fbbf24;
            padding: 40px;
            border-radius: 20px;
            color: white;
            z-index: 250;
            display: none;
            width: 500px;
            max-width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 0 50px rgba(91, 155, 213, 0.3);
        }

        #settings-panel h2 {
            color: #fbbf24;
            text-align: center;
            margin-top: 0;
            margin-bottom: 25px;
            font-size: 32px;
        }

        /* ===== TAB NAVIGATION ===== */
        .settings-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            border-bottom: 2px solid rgba(251, 191, 36, 0.3);
            padding-bottom: 10px;
        }

        .settings-tab {
            flex: 1;
            padding: 12px 20px;
            background: rgba(251, 191, 36, 0.1);
            border: 2px solid rgba(251, 191, 36, 0.3);
            border-radius: 10px;
            color: #fff5e6;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .settings-tab:hover {
            background: rgba(251, 191, 36, 0.2);
            border-color: #fbbf24;
        }

        .settings-tab.active {
            background: rgba(251, 191, 36, 0.3);
            border-color: #fbbf24;
            color: #fbbf24;
        }

        /* ===== TAB CONTENT ===== */
        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .setting-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 10px;
            border-bottom: 1px solid rgba(251, 191, 36, 0.3);
        }

        .setting-label {
            color: #fff5e6;
            font-size: 18px;
        }

        .setting-value {
            color: #fbbf24;
            font-weight: bold;
            font-size: 20px;
            cursor: pointer;
            padding: 6px 15px;
            border-radius: 20px;
            background: rgba(251, 191, 36, 0.1);
            transition: all 0.3s ease;
        }

        .setting-value:hover {
            background: rgba(251, 191, 36, 0.3);
        }

        .setting-toggle {
            width: 60px;
            height: 30px;
            background: #334155;
            border-radius: 30px;
            position: relative;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .setting-toggle.active {
            background: #fbbf24;
        }

        .setting-toggle::after {
            content: '';
            position: absolute;
            width: 26px;
            height: 26px;
            background: white;
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: all 0.3s ease;
        }

        .setting-toggle.active::after {
            left: 32px;
        }

        .setting-slider {
            width: 100%;
            height: 8px;
            background: #334155;
            border-radius: 4px;
            -webkit-appearance: none;
            appearance: none;
        }

        .setting-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 24px;
            height: 24px;
            background: #fbbf24;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 10px #fbbf24;
        }

        .setting-slider::-moz-range-thumb {
            width: 24px;
            height: 24px;
            background: #fbbf24;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 10px #fbbf24;
        }

        .close-settings {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 15px 40px;
            border-radius: 30px;
            font-weight: bold;
            cursor: pointer;
            width: 100%;
            margin-top: 20px;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .close-settings:hover {
            background: #fcd34d;
            transform: scale(1.02);
        }

        /* ===== ABOUT GAME CONTENT ===== */
        .about-game-content {
            text-align: center;
            padding: 20px 0;
        }

        .about-game-content h3 {
            color: #fbbf24;
            font-size: 24px;
            margin-bottom: 15px;
        }

        .about-game-content p {
            color: #fff5e6;
            font-size: 16px;
            line-height: 1.8;
            margin-bottom: 15px;
        }

        .about-game-content .version {
            color: #fbbf24;
            font-size: 14px;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid rgba(251, 191, 36, 0.3);
        }

        /* ===== PILOT DATA TAB CONTENT ===== */
        .pilot-data-stats {
            text-align: center;
            padding: 20px 0;
        }

        .pilot-data-stats h3 {
            color: #fbbf24;
            font-size: 24px;
            margin-bottom: 25px;
        }

        .pilot-data-card {
            background: rgba(251, 191, 36, 0.2);
            border: 2px solid #fbbf24;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 25px;
        }

        .pilot-data-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid rgba(251, 191, 36, 0.3);
        }

        .pilot-data-row:last-child {
            border-bottom: none;
        }

        .pilot-data-label {
            color: #fff5e6;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pilot-data-value {
            color: #fbbf24;
            font-size: 18px;
            font-weight: bold;
        }

        /* ===== PILOT PROFILE CONTENT (FIXED STATS) ===== */
        .pilot-profile-stats {
            text-align: center;
            padding: 20px 0;
        }

        .pilot-profile-stats h3 {
            color: #fbbf24;
            font-size: 24px;
            margin-bottom: 25px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 25px;
        }

        .stat-card {
            background: rgba(251, 191, 36, 0.1);
            border: 2px solid rgba(251, 191, 36, 0.3);
            border-radius: 15px;
            padding: 20px;
        }

        .stat-card .stat-icon {
            font-size: 40px;
            margin-bottom: 10px;
        }

        .stat-card .stat-label {
            color: #fff5e6;
            font-size: 14px;
            margin-bottom: 5px;
        }

        .stat-card .stat-value {
            color: #fbbf24;
            font-size: 32px;
            font-weight: bold;
        }

        .stat-card .stat-desc {
            color: #fff5e6;
            font-size: 12px;
            margin-top: 5px;
        }

        .stat-card.winrate {
            grid-column: span 2;
            background: rgba(251, 191, 36, 0.2);
            border-color: #fbbf24;
        }

        .stats-reset {
            background: rgba(239, 68, 68, 0.2);
            border: 2px solid #ef4444;
            color: #ef4444;
            padding: 10px 30px;
            border-radius: 30px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .stats-reset:hover {
            background: #ef4444;
            color: white;
        }

        .stats-reset.reset-indicator {
            animation: resetFlash 0.5s ease;
        }

        /* ===== HUD ===== */
        #hud {
            position: absolute;
            top: 20px;
            left: 20px;
            color: #fbbf24;
            background: rgba(0, 0, 0, 0.9);
            padding: 15px;
            border: 2px solid #fbbf24;
            border-radius: 8px;
            pointer-events: none;
            width: 200px;
            box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
            z-index: 10;
            display: none;
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
            font-weight: bold;
        }

        .label {
            color: #fff5e6;
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .value {
            font-family: 'Courier New', monospace;
            font-size: 14px;
        }

        .warning {
            color: #f87171;
            animation: blink 0.4s infinite;
        }

        #lives-container {
            text-align: center;
            font-size: 16px;
            margin-top: 5px;
            color: #f87171;
        }

        /* ===== ILS DISPLAYS - BOTH TOP AND BOTTOM ===== */
        #gs-container {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 150px;
            border-left: 2px solid rgba(251, 191, 36, 0.5);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #fbbf24;
            font-size: 8px;
            z-index: 10;
        }

        #loc-container {
            position: absolute;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            width: 150px;
            height: 40px;
            border-top: 2px solid rgba(251, 191, 36, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fbbf24;
            font-size: 8px;
            z-index: 10;
        }

        .diamond {
            position: absolute;
            width: 12px;
            height: 12px;
            background: #fbbf24;
            transform: rotate(45deg);
            transition: all 0.1s linear;
            box-shadow: 0 0 10px #fbbf24;
        }

        /* ===== BOTTOM CENTER ILS DISPLAY ===== */
        #ils-bottom-center {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid #fbbf24;
            border-radius: 20px;
            padding: 12px 25px;
            display: flex;
            gap: 40px;
            z-index: 15;
            backdrop-filter: blur(5px);
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
        }

        .ils-bottom-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 120px;
        }

        .ils-bottom-label {
            color: #87CEEB;
            font-size: 14px;
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .ils-bottom-bar-container {
            width: 100px;
            height: 4px;
            background: #334155;
            border-radius: 2px;
            position: relative;
            margin: 8px 0;
        }

        .ils-bottom-diamond {
            width: 10px;
            height: 10px;
            background: #fbbf24;
            transform: rotate(45deg);
            position: absolute;
            top: -3px;
            transition: left 0.1s linear;
        }

        .ils-bottom-value {
            color: #fbbf24;
            font-size: 16px;
            font-weight: bold;
            font-family: 'Courier New', monospace;
        }

        /* ===== ANIMATIONS ===== */
        @keyframes blink {
            50% {
                opacity: 0;
            }
        }

        @keyframes starTwinkle {
            0% {
                opacity: 0.2;
                transform: scale(0.8);
            }

            50% {
                opacity: 1;
                transform: scale(1.2);
            }

            100% {
                opacity: 0.2;
                transform: scale(0.8);
            }
        }

        @keyframes lightPulse {
            0% {
                opacity: 0.5;
                transform: scale(0.8);
            }

            50% {
                opacity: 1;
                transform: scale(1.2);
            }

            100% {
                opacity: 0.5;
                transform: scale(0.8);
            }
        }

        @keyframes resetFlash {
            0% {
                background: rgba(239, 68, 68, 0.2);
            }

            50% {
                background: rgba(34, 197, 94, 0.4);
            }

            100% {
                background: rgba(239, 68, 68, 0.2);
            }
        }

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

        /* ===== RADAR - REDUCED SIZE FOR BELOW LAPTOP SCREENS ===== */
        #radar-container {
            position: absolute;
            bottom: 30px;
            right: 30px;
            width: 140px;
            height: 140px;
            border: 3px solid #fbbf24;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
            box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), inset 0 0 20px rgba(251, 191, 36, 0.2);
            z-index: 10;
            display: none;
            overflow: hidden;
        }

        /* ===== MEDIA QUERIES FOR BELOW LAPTOP SCREENS ===== */
        @media (max-width: 1024px) {
            #radar-container {
                width: 100px !important;
                height: 100px !important;
                bottom: 20px !important;
                right: 20px !important;
                border-width: 2px !important;
            }
            
            #hud-toggle-btn {
                display: flex !important;
                padding: 6px 10px !important;
                font-size: 11px !important;
                top: 65px !important;
                right: 15px !important;
            }
            
            #hud-toggle-btn::before {
                font-size: 12px !important;
            }
            
            #pause-menu-btn {
                top: 15px !important;
                right: 15px !important;
                padding: 8px 12px !important;
                font-size: 12px !important;
            }
            
            #hud {
                width: 160px !important;
                padding: 10px !important;
                font-size: 11px !important;
                top: 10px !important;
                left: 10px !important;
            }
            
            .value {
                font-size: 12px !important;
            }
            
            .action-btn {
                width: 40px !important;
                height: 40px !important;
                font-size: 18px !important;
            }
            
            .power-btn {
                width: 40px !important;
                height: 40px !important;
                font-size: 18px !important;
            }
            
            .speed-btn {
                width: 35px !important;
                height: 35px !important;
                font-size: 16px !important;
            }
            
            .pitch-btn {
                width: 35px !important;
                height: 35px !important;
                font-size: 16px !important;
            }
            
            #coin-display {
                font-size: 14px !important;
                padding: 6px 12px !important;
            }
            
            #notification-bell {
                right: 100px !important;
                padding: 8px 12px !important;
                font-size: 14px !important;
            }
            
            #notification-bell::before {
                font-size: 16px !important;
            }
            
            #notification-count {
                width: 18px !important;
                height: 18px !important;
                font-size: 10px !important;
            }
        }

        @media (max-width: 768px) {
            #radar-container {
                width: 70px !important;
                height: 70px !important;
                bottom: 10px !important;
                right: 10px !important;
            }
            
            #hud-toggle-btn {
                padding: 4px 6px !important;
                font-size: 9px !important;
                top: 55px !important;
                right: 10px !important;
            }
            
            #pause-menu-btn {
                top: 10px !important;
                right: 10px !important;
                padding: 5px 8px !important;
                font-size: 10px !important;
            }
            
            #hud {
                width: 120px !important;
                padding: 6px !important;
                font-size: 9px !important;
            }
            
            .value {
                font-size: 10px !important;
            }
            
            .action-btn {
                width: 35px !important;
                height: 35px !important;
                font-size: 16px !important;
                box-shadow: 0 2px 0 #b45309 !important;
            }
            
            .power-btn {
                width: 35px !important;
                height: 35px !important;
                font-size: 16px !important;
                box-shadow: 0 2px 0 #b45309 !important;
            }
            
            .speed-btn {
                width: 30px !important;
                height: 30px !important;
                font-size: 14px !important;
                box-shadow: 0 2px 0 #b45309 !important;
            }
            
            .pitch-btn {
                width: 30px !important;
                height: 30px !important;
                font-size: 14px !important;
                box-shadow: 0 2px 0 #b45309 !important;
            }
            
            #notification-bell {
                right: 80px !important;
                top: 10px !important;
                padding: 6px 10px !important;
                font-size: 12px !important;
            }
            
            #notification-bell::before {
                font-size: 14px !important;
            }
            
            #notification-count {
                width: 16px !important;
                height: 16px !important;
                font-size: 9px !important;
            }
            
            .action-label, .power-label, .speed-label, .pitch-label {
                font-size: 8px !important;
                margin-top: 1px !important;
            }
            
            .right-controls {
                padding: 6px 8px !important;
                gap: 6px !important;
            }
            
            .left-controls {
                padding: 8px !important;
                gap: 5px !important;
            }
            
            #dollar-display {
                top: 40px !important;
                right: 8px !important;
                font-size: 11px !important;
                padding: 3px 8px !important;
            }
            
            #note-btn {
                bottom: 15px !important;
                left: 8px !important;
                font-size: 11px !important;
                padding: 6px 12px !important;
            }
            
            #home-login-btn {
                bottom: 15px !important;
                right: 8px !important;
                font-size: 11px !important;
                padding: 6px 12px !important;
            }
            
            #home-menu h1 {
                font-size: 24px !important;
                margin-top: 20px;
            }
            
            #home-menu p {
                font-size: 11px !important;
                padding: 0 10px !important;
            }
            
            .rewards-left {
                top: 5px;
                left: 5px;
            }
            
            #daily-reward-btn, #free-spin-btn, #home-coin-display {
                padding: 5px 8px !important;
                font-size: 10px !important;
            }
            
            .mystery-claim-btn {
                padding: 5px 8px !important;
                font-size: 10px !important;
            }
            
            #settings-btn {
                top: 5px !important;
                right: 5px !important;
                padding: 5px 8px !important;
                font-size: 10px !important;
            }
            
            #privacy-btn {
                margin: 5px auto;
                padding: 5px 8px !important;
                font-size: 10px !important;
            }
            
            #level-stage {
                font-size: 9px !important;
                padding: 3px 8px !important;
            }
            
            #boss-health-container {
                width: 200px !important;
                height: 20px !important;
                top: 40px !important;
            }
            
            #boss-health-text {
                font-size: 10px !important;
            }
            
            #cleared-to-land {
                font-size: 14px !important;
                padding: 8px 16px !important;
                bottom: 60px !important;
            }
            
            #boss-indicator, #high-altitude-warning {
                font-size: 10px !important;
                padding: 4px 8px !important;
                bottom: 60px !important;
            }
            
            .spin-count {
                width: 18px !important;
                height: 18px !important;
                font-size: 9px !important;
            }
            
            #ils-bottom-center {
                padding: 4px 8px !important;
                gap: 10px !important;
            }
            
            .ils-bottom-item {
                min-width: 50px !important;
            }
            
            .ils-bottom-bar-container {
                width: 40px !important;
            }
            
            .ils-bottom-value {
                font-size: 9px !important;
            }
            
            .ils-bottom-label {
                font-size: 8px !important;
            }
            
            .menu-btn {
                padding: 6px 15px !important;
                font-size: 12px !important;
                margin: 3px !important;
            }
            
            #continue-btn {
                padding: 6px 15px !important;
                font-size: 12px !important;
            }
        }

        @media (min-width: 1025px) {
            #hud-toggle-btn {
                display: none !important;
            }
        }

        /* ===== SUCCESS MENU ===== */
        #success-menu {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.95);
            border: 3px solid #fbbf24;
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            color: white;
            z-index: 100;
            box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
        }

        .menu-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 15px 40px;
            margin: 10px;
            font-weight: bold;
            cursor: pointer;
            border-radius: 5px;
            font-size: 16px;
            transition: all 0.15s;
        }

        .menu-btn:hover {
            background: #fcd34d;
            transform: scale(1.05);
        }

        .menu-btn.retry {
            background: #64748b;
            color: white;
        }

        /* ===== MOBILE CONTROLS - ENHANCED WITH FIXED PORTRAIT LAYOUT (LEFT CONTROLS LEFT SIDE, ACTION BUTTONS RIGHT SIDE) ===== */
        #mobile-controls {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 15;
            pointer-events: none;
            touch-action: none;
        }

        .horizontal-controls {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            padding: 10px 15px 20px 15px;
            pointer-events: auto;
            gap: 10px;
        }

        .left-controls {
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 2px solid #fbbf24;
            border-radius: 25px;
            padding: 12px;
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
        }

        .speed-controls {
            display: flex;
            gap: 8px;
            justify-content: center;
        }

        .speed-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 15px;
            font-size: 24px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            box-shadow: 0 4px 0 #b45309;
            transition: all 0.1s ease;
        }

        .speed-btn:active {
            transform: translateY(4px);
            box-shadow: 0 0 0 #b45309;
        }

        .speed-label {
            text-align: center;
            color: #fbbf24;
            font-size: 10px;
            margin-top: 3px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: bold;
            text-shadow: 0 0 5px #fbbf24;
        }

        .pitch-controls {
            display: flex;
            gap: 8px;
            margin-top: 8px;
        }

        .pitch-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 15px;
            font-size: 24px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            box-shadow: 0 4px 0 #b45309;
            transition: all 0.1s ease;
        }

        .pitch-btn:active {
            transform: translateY(4px);
            box-shadow: 0 0 0 #b45309;
        }

        .pitch-label {
            text-align: center;
            color: #fbbf24;
            font-size: 10px;
            margin-top: 3px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: bold;
            text-shadow: 0 0 5px #fbbf24;
        }

        .right-controls {
            display: flex;
            gap: 12px;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 2px solid #fbbf24;
            border-radius: 60px;
            padding: 12px 15px;
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
        }

        .action-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            width: 55px;
            height: 55px;
            border-radius: 40px;
            font-size: 26px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            box-shadow: 0 4px 0 #b45309;
            transition: all 0.1s ease;
        }

        .action-btn:active {
            transform: translateY(4px);
            box-shadow: 0 0 0 #b45309;
        }

        .action-label {
            text-align: center;
            color: #fbbf24;
            font-size: 10px;
            margin-top: 3px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: bold;
            text-shadow: 0 0 5px #fbbf24;
        }

        /* ===== TOP RIGHT HUD BUTTON - HIDDEN ON MOBILE ===== */
        #mobile-top-hud {
            display: none !important;
        }

        /* ===== POWER BUTTON IN MOBILE CONTROLS ===== */
        .power-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            width: 55px;
            height: 55px;
            border-radius: 40px;
            font-size: 26px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            box-shadow: 0 4px 0 #b45309;
            transition: all 0.1s ease;
            animation: powerPulse 2s infinite;
        }

        @keyframes powerPulse {
            0% { box-shadow: 0 4px 0 #b45309, 0 0 10px #fbbf24; }
            50% { box-shadow: 0 4px 0 #b45309, 0 0 20px #fbbf24; }
            100% { box-shadow: 0 4px 0 #b45309, 0 0 10px #fbbf24; }
        }

        .power-btn:active {
            transform: translateY(4px);
            box-shadow: 0 0 0 #b45309, 0 0 20px #fbbf24;
        }

        .power-label {
            text-align: center;
            color: #fbbf24;
            font-size: 10px;
            margin-top: 3px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: bold;
            text-shadow: 0 0 5px #fbbf24;
        }

        /* ===== TOP LEFT ILS DISPLAY - HIDDEN ON MOBILE ===== */
        #top-left-ils {
            display: none !important;
        }

        /* ===== AUTO-SHOOT TOGGLE BUTTON ===== */
        #auto-shoot-toggle {
            display: none !important;
        }

        /* ===== CLEARED TO LAND MESSAGE ===== */
        #cleared-to-land {
            position: absolute;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #fbbf24, #87CEEB);
            color: white;
            padding: 20px 40px;
            border-radius: 40px;
            font-size: 24px;
            font-weight: bold;
            z-index: 600;
            display: none;
            border: 3px solid #ffffff;
            text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
            white-space: nowrap;
            box-shadow: 0 0 40px rgba(251, 191, 36, 0.7);
            letter-spacing: 1.5px;
            text-transform: uppercase;
            animation: clearedPulse 0.5s infinite;
        }

        @keyframes clearedPulse {
            0% {
                transform: translateX(-50%) scale(1);
            }

            50% {
                transform: translateX(-50%) scale(1.03);
            }

            100% {
                transform: translateX(-50%) scale(1);
            }
        }

        /* ===== GAME UI ELEMENTS ===== */
        #level-stage {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            border: 2px solid #fbbf24;
            color: #fbbf24;
            padding: 5px 20px;
            border-radius: 30px;
            font-weight: bold;
            z-index: 15;
            display: none;
            text-shadow: 0 0 10px #fbbf24;
            white-space: nowrap;
        }

        /* ===== IN-GAME DOLLAR DISPLAY (SEPARATE FROM HOME COINS) ===== */
        #dollar-display {
            position: absolute;
            top: 65px;
            right: 60px;
            background: rgba(0, 0, 0, 0.9);
            border: 2px solid #4ade80;
            color: #4ade80;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 18px;
            font-weight: bold;
            z-index: 15;
            display: none;
            box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
            letter-spacing: 1px;
        }

        #dollar-display::before {
            content: '$';
            font-size: 20px;
            margin-right: 5px;
            color: #4ade80;
        }

        #shop-btn {
            position: absolute;
            bottom: 100px;
            left: 30px;
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            border: 2px solid #fbbf24;
            padding: 12px 25px;
            border-radius: 50px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            z-index: 20;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            display: none;
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
        }

        #shop-btn:hover {
            background: #fbbf24;
            color: #5B9BD5;
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
        }

        /* ===== BOSS WARNING ===== */
        #boss-warning {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, #ef4444, #fbbf24);
            color: white;
            padding: 30px 80px;
            border-radius: 60px;
            font-size: 48px;
            font-weight: bold;
            z-index: 500;
            display: none;
            animation: bossWarningPulse 0.8s infinite;
            border: 6px solid #ffffff;
            text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
            white-space: nowrap;
            box-shadow: 0 0 100px rgba(239, 68, 68, 0.9);
            letter-spacing: 4px;
            text-transform: uppercase;
        }

        @keyframes bossWarningPulse {
            0% {
                transform: translate(-50%, -50%) scale(1);
                background: linear-gradient(135deg, #ef4444, #fbbf24);
                box-shadow: 0 0 50px #ef4444;
            }

            25% {
                transform: translate(-50%, -50%) scale(1.1);
                background: linear-gradient(135deg, #fbbf24, #ef4444);
                box-shadow: 0 0 80px #fbbf24;
            }

            50% {
                transform: translate(-50%, -50%) scale(1.2);
                background: linear-gradient(135deg, #ef4444, #fbbf24);
                box-shadow: 0 0 120px #ef4444;
            }

            75% {
                transform: translate(-50%, -50%) scale(1.1);
                background: linear-gradient(135deg, #fbbf24, #ef4444);
                box-shadow: 0 0 80px #fbbf24;
            }

            100% {
                transform: translate(-50%, -50%) scale(1);
                background: linear-gradient(135deg, #ef4444, #fbbf24);
                box-shadow: 0 0 50px #ef4444;
            }
        }

        #boss-health-container {
            position: absolute;
            top: 100px;
            left: 50%;
            transform: translateX(-50%);
            width: 400px;
            height: 40px;
            background: rgba(0, 0, 0, 0.8);
            border: 4px solid #ef4444;
            border-radius: 20px;
            z-index: 20;
            display: none;
            overflow: hidden;
            box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
        }

        #boss-health-fill {
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, #ef4444, #fbbf24, #ef4444);
            background-size: 200% 100%;
            animation: bossHealthShimmer 2s infinite;
            transition: width 0.1s ease;
        }

        @keyframes bossHealthShimmer {
            0% {
                background-position: 0% 0%;
            }

            50% {
                background-position: 100% 0%;
            }

            100% {
                background-position: 0% 0%;
            }
        }

        #boss-health-text {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            text-shadow: 0 0 10px black;
            z-index: 21;
            pointer-events: none;
            font-size: 18px;
            letter-spacing: 2px;
        }

        #continue-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 15px 40px;
            margin: 10px;
            font-weight: bold;
            cursor: pointer;
            border-radius: 5px;
            font-size: 16px;
            transition: all 0.15s;
            display: none;
        }

        #continue-btn:hover {
            background: #fcd34d;
            transform: scale(1.05);
        }

        #stage-complete-menu {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.98);
            border: 3px solid #fbbf24;
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            color: white;
            z-index: 300;
            box-shadow: 0 0 50px rgba(91, 155, 213, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            min-width: 400px;
        }

        #stage-complete-menu h2 {
            color: #fbbf24;
            font-size: 36px;
            margin-bottom: 20px;
            text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
        }

        #stage-complete-menu p {
            color: #fff5e6;
            font-size: 18px;
            margin: 15px 0;
        }

        #stage-complete-menu .health-restore {
            color: #fbbf24;
            font-size: 24px;
            margin: 20px 0;
            animation: pulse 1s infinite;
        }

        @keyframes pulse {
            0% {
                opacity: 0.7;
                transform: scale(1);
            }

            50% {
                opacity: 1;
                transform: scale(1.05);
            }

            100% {
                opacity: 0.7;
                transform: scale(1);
            }
        }

        .stage-btn {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 15px 50px;
            margin: 10px;
            border-radius: 40px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 0 #b45309;
        }

        .stage-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 0 #b45309;
            background: #fcd34d;
        }

        .stage-btn.secondary {
            background: #87CEEB;
            box-shadow: 0 4px 0 #5B9BD5;
        }

        .stage-btn.secondary:hover {
            background: #B0E0E6;
        }

        #power-shop-menu {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.98);
            border: 3px solid #fbbf24;
            padding: 30px;
            border-radius: 20px;
            text-align: center;
            color: white;
            z-index: 350;
            box-shadow: 0 0 50px rgba(251, 191, 36, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            min-width: 500px;
            max-width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

        #power-shop-menu h2 {
            color: #fbbf24;
            font-size: 36px;
            margin-bottom: 10px;
            text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
        }

        #shop-coins {
            font-size: 24px;
            color: #fbbf24;
            margin-bottom: 20px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 40px;
            display: inline-block;
        }

        .shop-items {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }

        .shop-item {
            background: rgba(251, 191, 36, 0.1);
            border: 2px solid #fbbf24;
            border-radius: 15px;
            padding: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .shop-item:hover {
            background: rgba(251, 191, 36, 0.3);
            transform: scale(1.02);
        }

        .shop-item.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
            border-color: #64748b;
        }

        .shop-item h3 {
            color: #fbbf24;
            margin: 0 0 10px 0;
            font-size: 20px;
        }

        .shop-item .price {
            color: #fbbf24;
            font-size: 18px;
            font-weight: bold;
            margin: 10px 0;
        }

        .shop-item .description {
            color: #fff5e6;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .shop-item .level-req {
            color: #ef4444;
            font-size: 12px;
        }

        .shop-close {
            background: #fbbf24;
            color: #5B9BD5;
            border: none;
            padding: 12px 40px;
            border-radius: 40px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 20px;
            transition: all 0.3s ease;
        }

        .shop-close:hover {
            background: #fcd34d;
            transform: scale(1.05);
        }

        /* ===== REALISTIC NIGHT SKY EFFECTS ===== */
        .realistic-sky {
            display: none;
        }

        /* ===== MOON ===== */
        #moon {
            position: fixed;
            top: 5%;
            right: 5%;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle at 30% 30%, #f5f5f5 0%, #e0e0e0 40%, #c0c0c0 70%, #a0a0a0 100%);
            border-radius: 50%;
            box-shadow: 0 0 50px #ffffff, 0 0 100px #e0e0e0, inset -20px -20px 40px rgba(0, 0, 0, 0.3);
            pointer-events: none;
            z-index: 5;
            opacity: 0;
            transition: opacity 1s ease;
        }

        #moon::before {
            content: '';
            position: absolute;
            top: 20%;
            left: 25%;
            width: 15px;
            height: 15px;
            background: rgba(0, 0, 0, 0.15);
            border-radius: 50%;
            box-shadow:
                25px 10px 0 -2px rgba(0, 0, 0, 0.12),
                10px 35px 0 -3px rgba(0, 0, 0, 0.1),
                40px 40px 0 -1px rgba(0, 0, 0, 0.08),
                60px 20px 0 -2px rgba(0, 0, 0, 0.1);
        }

        #moon::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 60%;
            width: 20px;
            height: 20px;
            background: rgba(0, 0, 0, 0.12);
            border-radius: 50%;
            box-shadow:
                -15px 15px 0 -2px rgba(0, 0, 0, 0.1),
                20px -10px 0 -1px rgba(0, 0, 0, 0.08);
        }

        .horizon-glow {
            display: none;
        }

        .haze {
            display: none;
        }

        .mist {
            display: none;
        }

        .ground-texture {
            display: none;
        }

        /* ===== RAINDROPS EFFECT ===== */
        .raindrop {
            position: fixed;
            width: 2px;
            height: 15px;
            background: linear-gradient(180deg, #a0d0ff, transparent);
            pointer-events: none;
            z-index: 7;
            animation: rainFall 1s linear infinite;
            opacity: 0.3;
        }

        @keyframes rainFall {
            0% {
                transform: translateY(-100px);
                opacity: 0.3;
            }

            100% {
                transform: translateY(100vh);
                opacity: 0;
            }
        }

        /* ===== JOYSTICK CONTROLS - FIXED VISIBILITY IN ALL ORIENTATIONS ===== */
        .joystick-container {
            display: none;
            position: fixed;
            bottom: 150px;
            left: 50px;
            width: 150px;
            height: 150px;
            background: rgba(251, 191, 36, 0.3);
            border: 3px solid #fbbf24;
            border-radius: 50%;
            z-index: 100;
            touch-action: none;
            pointer-events: auto;
            backdrop-filter: blur(8px);
            box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
        }

        .joystick-base {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 120px;
            height: 120px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 50%;
            border: 2px solid #fbbf24;
        }

        .joystick-stick {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, #fbbf24 0%, #b45309 100%);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(251, 191, 36, 0.5);
            transition: transform 0.05s ease-out;
        }

        .joystick-stick.active {
            box-shadow: 0 6px 20px rgba(251, 191, 36, 0.8);
        }

        /* ===== TILT CONTROL INDICATOR - FIXED VISIBILITY ===== */
        .tilt-indicator {
            display: none;
            position: fixed;
            bottom: 100px;
            right: 50px;
            width: 80px;
            height: 80px;
            background: rgba(251, 191, 36, 0.3);
            border: 3px solid #fbbf24;
            border-radius: 50%;
            z-index: 100;
            pointer-events: none;
            backdrop-filter: blur(8px);
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
        }

        .tilt-ball {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 30px;
            height: 30px;
            background: radial-gradient(circle, #fbbf24 0%, #b45309 100%);
            border-radius: 50%;
            box-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
            transition: transform 0.1s ease-out;
        }

        .tilt-label {
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            color: #fbbf24;
            font-size: 10px;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 0 5px #000;
        }

        /* ===== MEDIA QUERIES - ENHANCED FOR MOBILE CONTROLS ===== */
        @media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
            #mobile-controls {
                display: block;
            }

            .joystick-container.joystick-enabled {
                display: block !important;
                width: 150px !important;
                height: 150px !important;
                bottom: 150px !important;
                left: 50px !important;
            }

            .joystick-base {
                width: 120px !important;
                height: 120px !important;
            }

            .joystick-stick {
                width: 60px !important;
                height: 60px !important;
            }

            .tilt-indicator.tilt-enabled {
                display: block !important;
                width: 80px !important;
                height: 80px !important;
                bottom: 100px !important;
                right: 60px !important;
            }

            .tilt-ball {
                width: 30px !important;
                height: 30px !important;
            }

            .action-btn {
                width: 50px !important;
                height: 50px !important;
                font-size: 24px !important;
            }

            .right-controls {
                padding: 10px 12px !important;
            }

            .action-label {
                font-size: 10px !important;
            }

            .speed-btn {
                width: 45px !important;
                height: 45px !important;
                font-size: 22px !important;
            }
            
            .pitch-btn {
                width: 45px !important;
                height: 45px !important;
                font-size: 22px !important;
            }
            
            .power-btn {
                width: 50px !important;
                height: 50px !important;
                font-size: 24px !important;
            }
        }

        @media (max-width: 767px) and (orientation: landscape) {
            #mobile-controls {
                display: block;
            }

            .joystick-container.joystick-enabled {
                display: block !important;
                width: 120px !important;
                height: 120px !important;
                bottom: 120px !important;
                left: 20px !important;
            }

            .joystick-base {
                width: 90px !important;
                height: 90px !important;
            }

            .joystick-stick {
                width: 45px !important;
                height: 45px !important;
            }

            .tilt-indicator.tilt-enabled {
                display: block !important;
                width: 60px !important;
                height: 60px !important;
                bottom: 70px !important;
                right: 20px !important;
            }

            .tilt-ball {
                width: 22px !important;
                height: 22px !important;
            }

            .speed-btn {
                width: 40px !important;
                height: 40px !important;
                font-size: 20px !important;
            }
            
            .pitch-btn {
                width: 40px !important;
                height: 40px !important;
                font-size: 20px !important;
            }
            
            .action-btn {
                width: 45px !important;
                height: 45px !important;
                font-size: 22px !important;
            }
            
            .power-btn {
                width: 45px !important;
                height: 45px !important;
                font-size: 22px !important;
            }
        }

        /* ===== FIXED PORTRAIT MODE - LEFT CONTROLS ON LEFT SIDE, ACTION BUTTONS ON RIGHT SIDE, ILS AND RADAR REMOVED ===== */
        @media (max-width: 1024px) and (orientation: portrait) {
            /* Hide ILS displays in portrait mode */
            #gs-container, #loc-container, #ils-bottom-center {
                display: none !important;
            }
            
            /* Hide radar in portrait mode */
            #radar-container {
                display: none !important;
            }
            
            /* Ensure mobile controls are visible */
            #mobile-controls {
                display: block !important;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                z-index: 15;
                pointer-events: none;
            }
            
            /* Horizontal controls layout - left side controls stay on left, right side controls stay on right */
            .horizontal-controls {
                display: flex;
                flex-direction: row !important;
                justify-content: space-between !important;
                align-items: flex-end !important;
                padding: 10px 15px 20px 15px !important;
                gap: 15px !important;
            }
            
            /* Left controls stay on left side */
            .left-controls {
                width: auto !important;
                min-width: 110px !important;
                background: rgba(0, 0, 0, 0.9) !important;
                padding: 10px 12px !important;
                border-radius: 20px !important;
                margin: 0 !important;
                flex-shrink: 0 !important;
            }
            
            /* Right controls stay on right side */
            .right-controls {
                background: rgba(0, 0, 0, 0.9) !important;
                padding: 10px 12px !important;
                border-radius: 30px !important;
                margin: 0 !important;
                flex-shrink: 0 !important;
                gap: 8px !important;
            }
            
            /* Speed controls in row layout */
            .speed-controls {
                display: flex;
                flex-direction: row !important;
                gap: 8px !important;
                justify-content: center !important;
            }
            
            /* Pitch controls in row layout */
            .pitch-controls {
                display: flex;
                flex-direction: row !important;
                gap: 8px !important;
                justify-content: center !important;
                margin-top: 5px !important;
            }
            
            /* Button sizing for portrait mode */
            .speed-btn, .pitch-btn {
                width: 40px !important;
                height: 40px !important;
                font-size: 20px !important;
            }
            
            .action-btn, .power-btn {
                width: 45px !important;
                height: 45px !important;
                font-size: 22px !important;
            }
            
            .action-label, .power-label, .speed-label, .pitch-label {
                font-size: 8px !important;
                margin-top: 2px !important;
            }
            
            /* Joystick and tilt controls visibility */
            .joystick-container.joystick-enabled {
                display: block !important;
                width: 120px !important;
                height: 120px !important;
                bottom: 80px !important;
                left: 20px !important;
                z-index: 101 !important;
            }
            
            .tilt-indicator.tilt-enabled {
                display: block !important;
                width: 70px !important;
                height: 70px !important;
                bottom: 60px !important;
                right: 20px !important;
                z-index: 101 !important;
            }
            
            .joystick-base {
                width: 90px !important;
                height: 90px !important;
            }
            
            .joystick-stick {
                width: 45px !important;
                height: 45px !important;
            }
            
            .tilt-ball {
                width: 25px !important;
                height: 25px !important;
            }
        }

        @media (max-width: 768px) {
            @media (orientation: portrait) {
                /* Ensure proper alignment on smaller screens */
                .horizontal-controls {
                    padding: 8px 12px 15px 12px !important;
                    gap: 12px !important;
                }
                
                .left-controls {
                    padding: 8px 10px !important;
                    min-width: 100px !important;
                }
                
                .right-controls {
                    padding: 8px 10px !important;
                }
                
                .speed-btn, .pitch-btn {
                    width: 35px !important;
                    height: 35px !important;
                    font-size: 18px !important;
                }
                
                .action-btn, .power-btn {
                    width: 40px !important;
                    height: 40px !important;
                    font-size: 20px !important;
                }
            }

            #hud {
                width: 120px;
                padding: 5px;
                top: 5px;
                left: 5px;
                font-size: 9px;
            }

            .value {
                font-size: 10px;
            }

            #gs-container,
            #loc-container {
                display: none !important;
            }

            #success-menu {
                padding: 12px;
                max-width: 85%;
                width: 260px;
            }

            #gameover-menu {
                padding: 12px;
                min-width: 260px;
            }

            #gameover-menu h2 {
                font-size: 28px;
            }

            .gameover-buttons {
                flex-direction: column;
                gap: 5px;
            }

            .menu-btn {
                padding: 6px 15px;
                font-size: 12px;
                margin: 2px;
            }

            #mobile-controls {
                display: block;
            }

            #hud-toggle {
                display: none !important;
            }

            #dollar-display {
                display: block !important;
                top: 40px !important;
                right: 8px !important;
                font-size: 11px !important;
                padding: 3px 8px !important;
            }

            #shop-btn {
                display: none !important;
            }

            #note-btn {
                bottom: 15px !important;
                left: 8px !important;
                font-size: 11px !important;
                padding: 6px 12px !important;
            }

            .action-btn {
                width: 35px !important;
                height: 35px !important;
                font-size: 18px !important;
                box-shadow: 0 2px 0 #b45309 !important;
            }

            .right-controls {
                padding: 6px 8px !important;
                gap: 6px !important;
                background: rgba(0, 0, 0, 0.9) !important;
                border-width: 2px !important;
            }

            .action-label {
                font-size: 7px !important;
                margin-top: 1px !important;
                font-weight: bold !important;
            }

            .horizontal-controls {
                padding: 5px 5px 10px 5px !important;
                gap: 5px;
            }

            .action-btn {
                min-width: 35px;
                min-height: 35px;
            }

            .action-btn {
                touch-action: manipulation;
            }

            #home-menu h1 {
                font-size: 24px !important;
                padding: 0 10px;
                margin-top: 20px;
            }

            #home-menu p {
                font-size: 11px !important;
                padding: 0 10px !important;
                max-width: 100% !important;
                line-height: 1.3;
            }

            .rewards-left {
                top: 5px;
                left: 5px;
            }

            #daily-reward-btn, #free-spin-btn, #home-coin-display {
                padding: 5px 8px !important;
                font-size: 10px !important;
            }

            .mystery-claim-btn {
                padding: 5px 8px !important;
                font-size: 10px !important;
            }

            #settings-btn {
                top: 5px !important;
                right: 5px !important;
                padding: 5px 8px !important;
                font-size: 10px !important;
            }

            #privacy-btn {
                margin: 5px auto;
                padding: 5px 8px !important;
                font-size: 10px !important;
            }

            #level-stage {
                top: 5px;
                left: 5px;
                transform: none;
                font-size: 9px;
                padding: 3px 8px;
                max-width: 160px;
                white-space: normal;
                word-wrap: break-word;
            }

            #boss-warning {
                font-size: 20px !important;
                padding: 10px 20px !important;
                white-space: normal;
                text-align: center;
                width: 90%;
                max-width: 250px;
            }

            #boss-health-container {
                top: 35px;
                width: 200px;
                height: 20px;
            }

            #boss-health-text {
                font-size: 10px;
            }

            #cleared-to-land {
                font-size: 14px !important;
                padding: 8px 16px !important;
                bottom: 60px !important;
                white-space: normal;
                text-align: center;
                width: 90%;
                max-width: 220px;
            }

            #home-login-btn {
                bottom: 15px !important;
                right: 8px !important;
                font-size: 11px !important;
                padding: 6px 12px !important;
            }

            #boss-indicator, #high-altitude-warning {
                font-size: 10px !important;
                padding: 4px 8px !important;
                bottom: 60px !important;
            }

            .spin-count {
                width: 18px !important;
                height: 18px !important;
                font-size: 9px !important;
            }
            
            .speed-btn, .pitch-btn, .power-btn {
                box-shadow: 0 2px 0 #b45309 !important;
            }
            
            #notification-bell {
                right: 70px !important;
                top: 5px !important;
                padding: 5px 8px !important;
                font-size: 11px !important;
            }
            
            #notification-bell::before {
                font-size: 13px !important;
            }
            
            #notification-count {
                width: 15px !important;
                height: 15px !important;
                font-size: 8px !important;
            }
            
            .spin-count {
                width: 16px !important;
                height: 16px !important;
                font-size: 8px !important;
            }
        }

        canvas {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
        }
 