        html, body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            box-sizing: border-box;
        }
        
        body {
            background-color: #020205; /* Deep black */
            font-family: 'Courier New', Courier, monospace;
            color: #0ff;
            touch-action: none;
            user-select: none;
            -webkit-user-select: none;
        }
        
        * {
            box-sizing: border-box;
        }
        canvas { 
            display: block;
            /* Remove pixelated rendering - we want smooth rendering with proper DPI scaling */
        }
        
        #ui-layer {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            width: 100%; height: 100%;
            pointer-events: none;
            display: flex; flex-direction: column;
            justify-content: center; align-items: center; text-align: center;
            z-index: 10;
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
        
        @media (max-width: 768px) {
            #ui-layer {
                align-items: center !important;
                justify-content: center !important;
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
            }
        }
        
        #score-display {
            position: absolute; 
            top: 90px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 60px; 
            font-weight: bold;
            color: #0ff;
            text-shadow: 0 0 20px #0ff;
            opacity: 0.6;
            pointer-events: none;
            white-space: nowrap;
        }
        
        @media (max-width: 768px) {
            #score-display {
                font-size: 40px;
                top: 80px;
                left: 50%;
                transform: translateX(-50%);
            }
            
            #nav-panel {
                top: 15px;
                gap: 8px;
                flex-wrap: nowrap;
                max-width: calc(100% - 20px);
                padding: 0 10px;
            }
            
            #home-button {
                width: 40px;
                height: 40px;
                min-width: 40px;
                min-height: 40px;
                max-width: 40px;
                max-height: 40px;
                padding: 4px;
            }
            
            #home-button img {
                width: 28px;
                height: 28px;
            }
            
            #info-button,
            #share-button,
            #leaderboard-button {
                width: 40px;
                height: 40px;
                min-width: 40px;
                min-height: 40px;
                max-width: 40px;
                max-height: 40px;
            }
            
            #message {
                padding: 1.5rem !important;
                width: calc(100% - 40px) !important;
                max-width: calc(100% - 40px) !important;
                margin: 10px auto !important;
                box-sizing: border-box;
                position: relative;
                align-self: center !important;
                flex-shrink: 0;
                left: auto !important;
                right: auto !important;
                transform: none !important;
            }
            
            #start-screen {
                text-align: center !important;
                width: 100% !important;
            }
            
            #start-screen h1 {
                font-size: 2rem !important;
                text-align: center !important;
            }
            
            #start-screen p {
                font-size: 0.9rem !important;
                text-align: center !important;
            }
        }
        
        #message {
            background: rgba(0, 15, 20, 0.9);
            padding: 2rem; border-radius: 4px;
            border: 2px solid #0ff;
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
            pointer-events: auto; cursor: pointer;
            display: none;
            backdrop-filter: blur(5px);
            max-width: 90%;
            box-sizing: border-box;
            margin-left: auto;
            margin-right: auto;
            flex-shrink: 0;
            align-self: center;
            position: relative;
            text-align: center;
        }
        
        #start-screen {
            text-align: center;
            width: 100%;
        }
        
        #game-over-screen {
            padding-bottom: 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        
        h1 { 
            margin: 0 0 10px 0; font-size: 2.5rem; color: #0ff; 
            text-shadow: 0 0 10px #0ff; letter-spacing: 2px;
            text-transform: uppercase;
            text-align: center;
        }
        p { margin: 10px 0; font-size: 1.2rem; color: #ccffff; text-align: center; }
        .sub { font-size: 0.9rem; color: #008888; margin-top: 15px; }
        .instruction { font-size: 0.8rem; color: #ff00ff; margin-top: 10px; font-style: italic; text-shadow: 0 0 5px #ff00ff; }
        
        .scanlines {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
            background-size: 100% 3px;
            pointer-events: none;
            z-index: 5;
            opacity: 0.2;
        }
        
        /* Navigation Panel */
        #nav-panel {
            position: absolute;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 15px;
            z-index: 20;
            pointer-events: auto;
        }
        
        #home-button {
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            max-width: 44px;
            max-height: 44px;
            padding: 6px;
            margin: 0;
            border: 2px solid #0ff;
            box-sizing: border-box;
            background: rgba(0, 15, 20, 0.8);
            color: #0ff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
            pointer-events: auto;
            transition: all 0.2s;
            font-family: 'Courier New', Courier, monospace;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        
        #home-button:hover {
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
            transform: scale(1.1);
        }
        
        #home-button img {
            filter: drop-shadow(0 0 4px #0ff);
        }
        
        #share-container {
            position: relative;
        }
        
        #share-button {
            position: relative;
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            max-width: 44px;
            max-height: 44px;
            padding: 0;
            margin: 0;
            border: 2px solid #0ff;
            box-sizing: border-box;
            background: rgba(0, 15, 20, 0.8);
            color: #0ff;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
            pointer-events: auto;
            transition: all 0.2s;
            font-family: 'Courier New', Courier, monospace;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            line-height: 1;
        }
        
        #share-button:hover {
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
            transform: scale(1.1);
        }
        
        #share-button svg {
            width: 18px;
            height: 18px;
            fill: #0ff;
        }
        
        #share-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            background: rgba(0, 15, 20, 0.95);
            border: 2px solid #0ff;
            border-radius: 4px;
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
            min-width: 180px;
            display: none;
            flex-direction: column;
            overflow: hidden;
            pointer-events: auto;
            z-index: 21;
            backdrop-filter: blur(5px);
        }
        
        #share-dropdown.active {
            display: flex;
        }
        
        .share-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            min-height: 44px;
            cursor: pointer;
            color: #ccffff;
            font-size: 14px;
            font-weight: 400;
            transition: all 0.15s;
            font-family: 'Courier New', Courier, monospace;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            pointer-events: auto;
            user-select: none;
            -webkit-user-select: none;
        }
        
        .share-option:hover {
            background-color: rgba(0, 255, 255, 0.1);
            color: #0ff;
            text-shadow: 0 0 8px #0ff;
        }
        
        .share-option svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            filter: drop-shadow(0 0 4px #0ff);
        }
        
        .share-option.copy svg {
            fill: #0ff;
        }
        
        .share-option.twitter svg {
            fill: #0ff;
        }
        
        .share-option.linkedin svg {
            fill: #0ff;
        }
        
        #info-button {
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            max-width: 44px;
            max-height: 44px;
            padding: 0;
            margin: 0;
            border: 2px solid #0ff;
            box-sizing: border-box;
            background: rgba(0, 15, 20, 0.8);
            color: #0ff;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
            pointer-events: auto;
            transition: all 0.2s;
            font-family: 'Courier New', Courier, monospace;
            line-height: 1;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        
        #info-button:hover {
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
            transform: scale(1.1);
        }
        
        #donation-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            display: none !important;
            align-items: center;
            justify-content: center;
            z-index: 30;
            pointer-events: none;
            backdrop-filter: blur(10px);
        }
        
        #donation-modal.active {
            display: flex !important;
            pointer-events: auto;
        }
        
        #donation-content {
            background: rgba(0, 15, 20, 0.95);
            padding: 2.5rem;
            border: 3px solid #0ff;
            border-radius: 4px;
            box-shadow: 0 0 50px rgba(0, 255, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.1);
            max-width: 700px;
            max-height: 85vh;
            overflow-y: auto;
            position: relative;
            color: #ccffff;
        }
        
        #donation-content h2 {
            margin: 0 0 20px 0;
            font-size: 2rem;
            color: #0ff;
            text-shadow: 0 0 15px #0ff;
            letter-spacing: 3px;
            text-transform: uppercase;
            border-bottom: 2px solid #0ff;
            padding-bottom: 10px;
        }
        
        #donation-content h3 {
            margin: 25px 0 10px 0;
            font-size: 1.3rem;
            color: #0ff;
            text-shadow: 0 0 10px #0ff;
            letter-spacing: 2px;
        }
        
        #donation-content p {
            margin: 10px 0;
            font-size: 1rem;
            line-height: 1.6;
            color: #ccffff;
        }
        
        #donation-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            max-width: 44px;
            max-height: 44px;
            padding: 0;
            margin: 0;
            border: 2px solid #0ff;
            box-sizing: border-box;
            background: rgba(0, 15, 20, 0.8);
            color: #0ff;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
            transition: all 0.2s;
            font-family: 'Courier New', Courier, monospace;
            line-height: 1;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            pointer-events: auto;
            z-index: 31;
        }
        
        #donation-close:hover {
            background: rgba(255, 0, 85, 0.2);
            border-color: #ff0055;
            color: #ff0055;
            box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
        }
        
        .donation-link {
            display: inline-block;
            margin-top: 20px;
            padding: 12px 30px;
            min-height: 44px;
            background: rgba(0, 255, 255, 0.1);
            border: 2px solid #0ff;
            color: #0ff;
            font-size: 1rem;
            font-family: 'Courier New', Courier, monospace;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 2px;
            cursor: pointer;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
            transition: all 0.3s;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            box-sizing: border-box;
        }
        
        .donation-link:hover {
            background: rgba(0, 255, 255, 0.2);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
            transform: scale(1.05);
        }
        
        @media (max-width: 768px) {
            .donation-link {
                padding: 12px 24px;
                font-size: 0.9rem;
                letter-spacing: 1px;
            }
            
            #donation-content {
                padding: 1.5rem;
                max-height: calc(100vh - 20px);
                width: calc(100% - 20px);
                margin: 10px auto;
                box-sizing: border-box;
            }
            
            #donation-close {
                position: sticky !important;
                top: 10px;
                right: 10px;
                margin: 0 0 15px auto;
                float: right;
                z-index: 31;
            }
        }
        
        #info-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            display: none !important;
            align-items: center;
            justify-content: center;
            z-index: 30;
            pointer-events: none;
            backdrop-filter: blur(10px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y !important; /* Allow vertical scrolling */
            margin: 0;
            padding: 0;
        }
        
        #info-modal.active {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            pointer-events: auto;
        }
        
        #info-content {
            background: rgba(0, 15, 20, 0.95);
            padding: 2.5rem;
            padding-top: 3.5rem;
            border: 3px solid #0ff;
            border-radius: 4px;
            box-shadow: 0 0 50px rgba(0, 255, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.1);
            max-width: 600px;
            max-height: 85vh;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
            color: #ccffff;
            width: 90%;
            max-width: 90%;
            margin-left: auto;
            margin-right: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y !important; /* Allow vertical scrolling */
            pointer-events: auto;
        }
        
        @media (max-width: 768px) {
            #info-modal {
                padding: 0 !important;
                align-items: center !important;
                justify-content: center !important;
                overflow-y: auto;
                /* DO NOT set display here - only show when .active class is present */
                display: none !important;
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
                margin: 0 !important;
            }
            
            #info-modal.active {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }
            
            #info-content {
                padding: 1.5rem;
                padding-top: 3.5rem;
                max-height: calc(100vh - 20px);
                width: calc(100% - 40px) !important;
                max-width: calc(100% - 40px) !important;
                margin: 10px auto !important;
                box-sizing: border-box;
                position: relative;
                align-self: center;
                pointer-events: auto;
                overflow-y: auto !important; /* Enable scrolling */
                overflow-x: hidden;
                -webkit-overflow-scrolling: touch !important;
                touch-action: pan-y !important; /* Allow vertical scrolling */
                flex-shrink: 0;
            }
            
            #info-close {
                position: absolute !important;
                top: 10px;
                right: 10px;
                margin: 0;
                float: none;
                z-index: 1000 !important;
                pointer-events: auto !important;
                touch-action: manipulation !important;
                min-width: 44px !important;
                min-height: 44px !important;
                width: 44px !important;
                height: 44px !important;
            }
            
            #info-content h2 {
                font-size: 1.5rem !important;
                letter-spacing: 2px !important;
            }
            
            #info-content h3 {
                font-size: 1.2rem !important;
            }
            
            #info-content p {
                font-size: 0.9rem !important;
                line-height: 1.5 !important;
            }
        }
        
        #info-content h2 {
            margin: 0 0 20px 0;
            font-size: 2rem;
            color: #0ff;
            text-shadow: 0 0 15px #0ff;
            letter-spacing: 3px;
            text-transform: uppercase;
            border-bottom: 2px solid #0ff;
            padding-bottom: 10px;
        }
        
        #info-content h3 {
            margin: 25px 0 10px 0;
            font-size: 1.3rem;
            color: #0ff;
            text-shadow: 0 0 10px #0ff;
            letter-spacing: 2px;
        }
        
        #info-content p {
            margin: 10px 0;
            font-size: 1rem;
            line-height: 1.6;
            color: #ccffff;
        }
        
        #info-content ul {
            margin: 15px 0;
            padding-left: 25px;
            color: #ccffff;
        }
        
        #info-content li {
            margin: 8px 0;
            font-size: 1rem;
            line-height: 1.5;
        }
        
        #info-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            max-width: 44px;
            max-height: 44px;
            padding: 0;
            margin: 0;
            border: 2px solid #0ff;
            box-sizing: border-box;
            background: rgba(0, 15, 20, 0.8);
            color: #0ff;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
            transition: all 0.2s;
            font-family: 'Courier New', Courier, monospace;
            line-height: 1;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            pointer-events: auto !important;
            user-select: none;
            -webkit-user-select: none;
            z-index: 1000 !important;
        }
        
        #info-close:hover {
            background: rgba(255, 0, 85, 0.2);
            border-color: #ff0055;
            color: #ff0055;
            box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
        }
        
        .highlight {
            color: #0ff;
            text-shadow: 0 0 8px #0ff;
            font-weight: bold;
        }
        
        .warning {
            color: #ff00ff;
            text-shadow: 0 0 8px #ff00ff;
        }
        
        #game-over-screen {
            position: relative;
        }
        
        #skip-submit-btn {
            display: block;
            margin: 10px auto;
            text-align: center;
        }
        
        /* Mobile optimizations */
        @media (max-width: 768px) {
            #game-over-screen h1 {
                font-size: 2rem !important;
                letter-spacing: 2px !important;
            }
            
            #game-over-screen p {
                font-size: 0.9rem !important;
            }
            
            #name-entry-form {
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box;
                padding: 0 5px;
            }
            
            #name-entry-form p {
                font-size: 0.9rem !important;
            }
            
            #name-entry-form > div {
                justify-content: center !important;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box;
                padding: 0;
                gap: 8px !important;
            }
            
            #name-entry-form input[type="text"] {
                width: 45px !important;
                min-width: 45px !important;
                font-size: 1rem !important;
                padding: 10px 6px !important;
            }
            
            #submit-score-btn {
                pointer-events: auto !important;
                touch-action: manipulation !important;
                font-size: 0.9rem !important;
                padding: 10px 16px !important;
                white-space: nowrap !important;
            }
            
            #virtual-keyboard {
                margin-top: 15px !important;
                padding: 10px !important;
                width: calc(100% - 10px) !important;
                max-width: calc(100% - 10px) !important;
                box-sizing: border-box;
                margin-left: 5px;
                margin-right: 5px;
            }
            
            #virtual-keyboard .vk-btn {
                font-size: 0.85rem !important;
                padding: 10px 6px !important;
                min-height: 40px !important;
                pointer-events: auto !important;
                touch-action: manipulation !important;
                user-select: none !important;
                -webkit-user-select: none !important;
            }
            
            #virtual-keyboard div[style*="grid-template-columns"] {
                gap: 6px !important;
                width: 100% !important;
            }
            
            #skip-submit-btn {
                pointer-events: auto !important;
                touch-action: manipulation !important;
                font-size: 0.85rem !important;
                padding: 10px 16px !important;
                display: block !important;
                margin: 10px auto !important;
            }
            
            #game-over-screen {
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box;
                padding: 0 10px;
            }

        }
        
        #leaderboard-button {
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            max-width: 44px;
            max-height: 44px;
            padding: 0;
            margin: 0;
            border: 2px solid #0ff;
            box-sizing: border-box;
            background: rgba(0, 15, 20, 0.8);
            color: #0ff;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
            pointer-events: auto;
            transition: all 0.2s;
            font-family: 'Courier New', Courier, monospace;
            line-height: 1.2;
            text-shadow: 0 0 3px #0ff;
            letter-spacing: 0;
            image-rendering: pixelated;
            image-rendering: -moz-crisp-edges;
            image-rendering: crisp-edges;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        
        #leaderboard-button::before {
            content: '▲';
            display: block;
            font-size: 10px;
            line-height: 0.8;
            transform: scale(1.1);
        }
        
        #leaderboard-button::after {
            content: '▬';
            display: block;
            position: absolute;
            bottom: 6px;
            font-size: 8px;
            line-height: 1;
        }
        
        
        #leaderboard-button:hover {
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
            transform: scale(1.1);
        }
        
        #leaderboard-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            display: none !important;
            align-items: center;
            justify-content: center;
            z-index: 30;
            pointer-events: none;
            backdrop-filter: blur(10px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y !important; /* Allow vertical scrolling */
            margin: 0;
            padding: 0;
        }
        
        #leaderboard-modal.active {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            pointer-events: auto;
        }
        
        #leaderboard-content {
            background: rgba(0, 15, 20, 0.95);
            padding: 2.5rem;
            border: 3px solid #0ff;
            border-radius: 4px;
            box-shadow: 0 0 50px rgba(0, 255, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.1);
            max-width: 600px;
            max-height: 85vh;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
            color: #ccffff;
            width: 90%;
            max-width: 90%;
            margin-left: auto;
            margin-right: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y !important; /* Allow vertical scrolling */
        }
        
        @media (max-width: 768px) {
            #leaderboard-modal {
                padding: 0 !important;
                align-items: center !important;
                justify-content: center !important;
                overflow-y: auto;
                /* DO NOT set display here - only show when .active class is present */
                display: none !important;
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
                margin: 0 !important;
            }
            
            #leaderboard-modal.active {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }
            
            #leaderboard-content {
                padding: 1.5rem;
                padding-top: 3rem;
                max-height: calc(100vh - 20px);
                width: calc(100% - 40px) !important;
                max-width: calc(100% - 40px) !important;
                margin: 10px auto !important;
                box-sizing: border-box;
                position: relative;
                align-self: center;
                overflow-y: auto !important; /* Enable scrolling */
                overflow-x: hidden;
                -webkit-overflow-scrolling: touch !important;
                touch-action: pan-y !important; /* Allow vertical scrolling */
                flex-shrink: 0;
            }
            
            #leaderboard-close {
                position: absolute !important;
                top: 10px;
                right: 10px;
                margin: 0;
                float: none;
                z-index: 31;
            }
            
            #leaderboard-content h2 {
                font-size: 1.5rem !important;
                letter-spacing: 2px !important;
                margin-bottom: 15px !important;
            }
            
            .leaderboard-entry {
                font-size: 0.85rem !important;
                padding: 8px 5px !important;
            }
            
            .leaderboard-rank {
                min-width: 35px !important;
                font-size: 0.9rem !important;
            }
            
            .leaderboard-name {
                font-size: 0.9rem !important;
            }
            
            .leaderboard-score {
                min-width: 60px !important;
                font-size: 0.9rem !important;
            }
            
            /* Skeleton UI mobile styles */
            .leaderboard-skeleton-entry {
                padding: 8px 5px !important;
            }
            
            .skeleton-rank {
                width: 35px !important;
                min-width: 35px !important;
            }
            
            .skeleton-name {
                max-width: 150px !important;
            }
            
            .skeleton-score {
                width: 50px !important;
                min-width: 50px !important;
            }
        }
        
        /* Desktop optimizations */
        @media (min-width: 769px) {
            #leaderboard-content {
                max-width: 700px;
            }
            
            #info-content {
                max-width: 700px;
            }
            
            .leaderboard-entry {
                padding: 12px 10px;
            }
        }
        
        #leaderboard-content h2 {
            margin: 0 0 20px 0;
            font-size: 2rem;
            color: #0ff;
            text-shadow: 0 0 15px #0ff;
            letter-spacing: 3px;
            text-transform: uppercase;
            border-bottom: 2px solid #0ff;
            padding-bottom: 10px;
        }
        
        #leaderboard-content p {
            margin: 10px 0;
            font-size: 1rem;
            line-height: 1.6;
            color: #ccffff;
        }
        
        #leaderboard-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
            max-width: 44px;
            max-height: 44px;
            padding: 0;
            margin: 0;
            border: 2px solid #0ff;
            box-sizing: border-box;
            background: rgba(0, 15, 20, 0.8);
            color: #0ff;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
            transition: all 0.2s;
            font-family: 'Courier New', Courier, monospace;
            line-height: 1;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            pointer-events: auto;
            z-index: 31;
        }
        
        #leaderboard-close:hover {
            background: rgba(255, 0, 85, 0.2);
            border-color: #ff0055;
            color: #ff0055;
            box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
        }
        
        #leaderboard-list {
            margin: 20px 0;
        }

        /* Skeleton Loading UI */
        .leaderboard-skeleton-entry {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            margin: 5px 0;
            gap: 15px;
        }

        .skeleton-rank,
        .skeleton-name,
        .skeleton-score {
            background: rgba(0, 255, 255, 0.1);
            border: 1px solid rgba(0, 255, 255, 0.2);
            border-radius: 4px;
            height: 20px;
            position: relative;
            overflow: hidden;
        }

        .skeleton-rank {
            width: 40px;
            min-width: 40px;
        }

        .skeleton-name {
            flex: 1;
            max-width: 200px;
        }

        .skeleton-score {
            width: 60px;
            min-width: 60px;
        }

        @keyframes shimmer {
            0% {
                background-position: -1000px 0;
            }
            100% {
                background-position: 1000px 0;
            }
        }

        .skeleton-shimmer {
            background: linear-gradient(
                90deg,
                rgba(0, 255, 255, 0.1) 0%,
                rgba(0, 255, 255, 0.2) 50%,
                rgba(0, 255, 255, 0.1) 100%
            );
            background-size: 1000px 100%;
            animation: shimmer 2s infinite;
        }

        .leaderboard-entry {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            margin: 5px 0;
            background: rgba(0, 255, 255, 0.05);
            border-left: 3px solid #0ff;
            font-family: 'Courier New', Courier, monospace;
        }
        
        .leaderboard-rank {
            font-weight: bold;
            color: #0ff;
            min-width: 30px;
        }
        
        .leaderboard-name {
            flex: 1;
            text-align: left;
            margin-left: 15px;
            color: #ccffff;
            font-size: 1.1rem;
            letter-spacing: 2px;
        }
        
        .leaderboard-score {
            font-weight: bold;
            color: #0ff;
            min-width: 80px;
            text-align: right;
        }
        
