    :root {
        --neon-blue: #00f2ff;
        --neon-pink: #ff0055;
        --bg-dark: #0a0a12;
        --text-color: #ffffff;
    }

    body {
        margin: 0;
        padding: 0;
        background-color: #000;
        color: var(--text-color);
        font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        overflow: hidden;
        touch-action: none;
    }

    /* Preloader Styles */
    #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, #1a1a2e 0%, #0a0a12 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.5s ease;
    }

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

    .loader-hexagon {
        width: 100px;
        height: 100px;
        position: relative;
        animation: pulse 2s ease-in-out infinite;
    }

    .loader-hexagon::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: var(--neon-blue);
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        animation: rotate 3s linear infinite;
        box-shadow: 0 0 30px var(--neon-blue);
    }

    .loading-text {
        margin-top: 30px;
        font-size: 1.5rem;
        color: var(--neon-blue);
        text-shadow: 0 0 10px var(--neon-blue);
        animation: fadeInOut 1.5s ease-in-out infinite;
    }

    .loading-bar {
        width: 200px;
        height: 4px;
        background: rgba(0, 242, 255, 0.2);
        border-radius: 2px;
        margin-top: 20px;
        overflow: hidden;
    }

    .loading-progress {
        height: 100%;
        background: var(--neon-blue);
        box-shadow: 0 0 10px var(--neon-blue);
        animation: loadingProgress 2s ease-in-out infinite;
    }

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

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

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

    @keyframes loadingProgress {
        0% { width: 0%; }
        100% { width: 100%; }
    }

    #game-container {
        position: relative;
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background: radial-gradient(circle, #1a1a2e 0%, #0a0a12 100%);
    }

    canvas {
        display: block;
        max-width: 100%;
        max-height: 100%;
    }

    #ui-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    #score-display {
        position: absolute;
        top: 20px;
        width: 100%;
        text-align: center;
        font-size: 2rem;
        font-weight: bold;
        text-shadow: 0 0 10px var(--neon-blue);
        animation: scoreAppear 0.3s ease;
    }

    @keyframes scoreAppear {
        from { transform: scale(1.3); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }

    .score-popup {
        position: absolute;
        font-size: 1.5rem;
        font-weight: bold;
        pointer-events: none;
        animation: scoreFloat 1s ease-out forwards;
        text-shadow: 0 0 10px currentColor;
    }

    @keyframes scoreFloat {
        0% { transform: translateY(0) scale(1); opacity: 1; }
        100% { transform: translateY(-100px) scale(0.5); opacity: 0; }
    }

    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(10, 10, 18, 0.85);
        backdrop-filter: blur(5px);
        pointer-events: auto;
        z-index: 10;
    }

    .overlay.active { 
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    h1 { 
        font-size: 4rem; 
        margin-bottom: 0; 
        color: var(--neon-blue); 
        text-shadow: 0 0 20px var(--neon-blue);
        animation: titleGlow 2s ease-in-out infinite;
    }

    @keyframes titleGlow {
        0%, 100% { text-shadow: 0 0 20px var(--neon-blue); }
        50% { text-shadow: 0 0 40px var(--neon-blue), 0 0 60px var(--neon-blue); }
    }

    h2 { 
        font-size: 3rem; 
        color: var(--neon-pink);
        animation: shake 0.5s ease;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-10px); }
        75% { transform: translateX(10px); }
    }

    button {
        padding: 15px 40px;
        font-size: 1.5rem;
        background: transparent;
        color: white;
        border: 2px solid var(--neon-blue);
        cursor: pointer;
        margin-top: 20px;
        transition: all 0.3s;
        border-radius: 5px;
        position: relative;
        overflow: hidden;
    }

    button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: var(--neon-blue);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s;
        z-index: -1;
    }

    button:hover::before {
        width: 300px;
        height: 300px;
    }

    button:hover {
        box-shadow: 0 0 20px var(--neon-blue);
        color: black;
        transform: scale(1.05);
    }

    button:active {
        transform: scale(0.95);
    }

    .controls-hint { 
        margin-top: 30px; 
        opacity: 0.6; 
        font-size: 0.9rem;
        animation: fadeInOut 2s ease-in-out infinite;
    }

    #sound-toggle {
        position: absolute;
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 1rem;
        pointer-events: auto;
        background: rgba(0, 242, 255, 0.1);
        z-index: 100;
        margin-top: 0;
    }

    #sound-toggle.muted {
        border-color: #666;
        color: #666;
    }

    .particle {
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        animation: particleFloat 1s ease-out forwards;
    }

    @keyframes particleFloat {
        0% { transform: translate(0, 0) scale(1); opacity: 1; }
        100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
    }

    .combo-text {
        position: absolute;
        font-size: 2.5rem;
        font-weight: bold;
        color: #FFD700;
        text-shadow: 0 0 20px #FFD700;
        pointer-events: none;
        animation: comboAppear 0.8s ease-out forwards;
    }

    @keyframes comboAppear {
        0% { transform: scale(0) rotate(-10deg); opacity: 0; }
        50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
        100% { transform: scale(1) rotate(0deg); opacity: 0; }
    }
