/* Neon Jump Styles */

:root {
    --nj-player: var(--accent-primary);
    --nj-obstacle: #ef4444;
    --nj-ground: var(--border-color);
    --nj-bg-gradient: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

#gameCanvas {
    background: var(--nj-bg-gradient);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Animations */
.pulse-key {
    animation: pulseKey 2s infinite;
}

@keyframes pulseKey {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb), 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(var(--accent-primary-rgb), 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb), 0);
    }
}

body.shake {
    animation: shake 0.3s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}