* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: white;
    font-family: 'Press Start 2P', cursive;
    min-height: 100vh;
    overflow: hidden;
    cursor: none;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 200px 150px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 250px 200px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 300px 250px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: stars 8s linear infinite;
    opacity: 0.5;
}

@keyframes stars {
    0% { 
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
    }
    100% { 
        transform: translateY(-300px) rotate(360deg);
        opacity: 0.5;
    }
}

.cursor-follower {
    width: clamp(30px, 8vw, 50px);
    height: clamp(30px, 8vw, 50px);
    font-size: clamp(24px, 6vw, 40px);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform-origin: center center;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Make cursor touchable on mobile */
@media (max-width: 768px) {
    .cursor-follower {
        pointer-events: auto;
        cursor: grab;
        touch-action: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .cursor-follower:active {
        cursor: grabbing;
    }
    
    /* Add a subtle glow effect to make it more visible */
    .cursor-follower::after {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        z-index: -1;
        animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); opacity: 0.5; }
        50% { transform: scale(1.2); opacity: 0.3; }
        100% { transform: scale(1); opacity: 0.5; }
    }
}

.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.trail-particle {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, rgba(255,165,0,0.9) 0%, rgba(255,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(3px);
    transform-origin: center;
    pointer-events: none;
    will-change: transform, opacity;
    animation: trail-fade 0.5s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

@keyframes trail-fade {
    0% { 
        transform: scale(1.5) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.4;
    }
    100% { 
        transform: scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

.score {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 1rem;
    color: #fff;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    text-align: right;
    line-height: 1.5;
    width: 200px;
}

.score div {
    margin: 2px 0;
}

.score div:last-child {
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.score-breakdown {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
}

.score-breakdown p {
    margin: 5px 0;
    font-size: 1.1em;
}

.final-score {
    font-size: 1.3em !important;
    color: #ffd700 !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ff87, #60efff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(96, 239, 255, 0.3);
    letter-spacing: 2px;
    opacity: 0.8;
    line-height: 1.5;
}

p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 10px rgba(96, 239, 255, 0.3);
    opacity: 0.7;
}

.interactive-area {
    position: relative;
    height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 2rem;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    transition: all 0.3s ease;
    cursor: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.floating-element:nth-child(1) { top: 20%; left: 20%; }
.floating-element:nth-child(2) { top: 30%; right: 20%; }
.floating-element:nth-child(3) { bottom: 30%; left: 30%; }
.floating-element:nth-child(4) { bottom: 20%; right: 30%; }

.floating-element:hover {
    transform: scale(1.5);
    filter: brightness(1.5);
}

.obstacle {
    position: absolute;
    font-size: 2rem;
    transition: transform 0.3s ease;
    cursor: none;
    filter: drop-shadow(0 0 10px rgba(96, 239, 255, 0.5));
    z-index: 10;
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
    will-change: transform, left, top;
}

.obstacle.alien {
    animation: none;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.obstacle.meteor {
    animation: spin 4s linear infinite;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.obstacle.ufo {
    animation: none;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.obstacle.rock {
    animation: none;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.obstacle.super-alien {
    animation: pulse 1s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.obstacle.danger-alien {
    animation: danger-pulse 1s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.obstacle.burst {
    animation: none !important;
    transition: opacity 1s ease-out;
    z-index: 20;
}

.obstacle.ghost {
    animation: ghost-float 2s ease-in-out infinite, villain-pulse 1.5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

.obstacle.skull {
    animation: skull-laugh 0.5s ease-in-out infinite, villain-pulse 1.5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.7));
}

.obstacle.poison {
    animation: poison-pulse 1.5s ease-in-out infinite, villain-pulse 1.5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

.obstacle.bomb {
    animation: bomb-tick 0.3s ease-in-out infinite, villain-pulse 1.5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

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

.super-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.3) 0%, rgba(0, 191, 255, 0) 70%);
    pointer-events: none;
    z-index: 9998;
    animation: flash 1s ease-out forwards;
}

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

.super-alien-active .cursor-follower {
    animation: super-cursor 1s ease-in-out infinite;
}

@keyframes super-cursor {
    0%, 100% { transform: scale(1) rotate(var(--angle)); }
    50% { transform: scale(1.5) rotate(var(--angle)); }
}

.danger-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.3) 0%, rgba(255, 69, 0, 0) 70%);
    pointer-events: none;
    z-index: 9998;
    animation: danger-flash 1s ease-out forwards;
}

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

.danger-alien-active .cursor-follower {
    animation: danger-cursor 1s ease-in-out infinite;
}

@keyframes danger-cursor {
    0%, 100% { transform: scale(1) rotate(var(--angle)); }
    50% { transform: scale(0.7) rotate(var(--angle)); }
}

.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #00ff87, #60efff);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    box-shadow: 0 0 15px rgba(96, 239, 255, 0.8);
    animation: particle-fade 0.5s ease-out forwards;
}

@keyframes particle-fade {
    0% { 
        transform: scale(1.5);
        opacity: 1;
    }
    100% { 
        transform: scale(0.5);
        opacity: 0;
    }
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
    text-align: center;
    backdrop-filter: blur(5px);
}

.game-over h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    animation: pulse 1s ease-in-out infinite;
}

.game-over p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

#restart-button {
    background: linear-gradient(45deg, #ff0000, #ff4500);
    color: white;
    border: none;
    padding: clamp(15px, 4vw, 25px) clamp(30px, 8vw, 50px);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease;
    min-width: 200px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

#restart-button:hover, #restart-button:active {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    background: linear-gradient(45deg, #ff4500, #ff0000);
}

@media (max-width: 768px) {
    #restart-button {
        width: 80%;
        max-width: 300px;
        margin: 30px auto;
        padding: 20px 40px;
    }
    
    .game-over h2 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .game-over p {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
}

.game-over-reason {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
    font-style: italic;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

@keyframes danger-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

@keyframes ghost-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes skull-laugh {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-15deg) translateY(-5px); }
    50% { transform: rotate(0deg) translateY(0); }
    75% { transform: rotate(15deg) translateY(-5px); }
}

@keyframes poison-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
}

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

.ghost-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(200, 200, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 9998;
    animation: ghost-flash 1s ease-out forwards;
}

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

.ghost-active .cursor-follower {
    animation: ghost-cursor 1s ease-in-out infinite;
}

@keyframes ghost-cursor {
    0%, 100% { transform: scale(1) rotate(var(--angle)); }
    50% { transform: scale(0.8) rotate(var(--angle)); }
}

.skull-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(150, 150, 150, 0.3) 0%, rgba(80, 80, 80, 0) 70%);
    pointer-events: none;
    z-index: 9998;
    animation: skull-flash 1s ease-out forwards;
}

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

.skull-active .cursor-follower {
    animation: skull-cursor 1s ease-in-out infinite;
}

@keyframes skull-cursor {
    0%, 100% { transform: scale(1) rotate(var(--angle)); }
    50% { transform: scale(0.9) rotate(var(--angle)); }
}

.poison-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.3) 0%, rgba(0, 128, 0, 0) 70%);
    pointer-events: none;
    z-index: 9998;
    animation: poison-flash 1s ease-out forwards;
}

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

.poison-active .cursor-follower {
    animation: poison-cursor 1s ease-in-out infinite;
}

@keyframes poison-cursor {
    0%, 100% { transform: scale(1) rotate(var(--angle)); }
    50% { transform: scale(0.7) rotate(var(--angle)); }
}

.bomb-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.3) 0%, rgba(255, 69, 0, 0) 70%);
    pointer-events: none;
    z-index: 9998;
    animation: bomb-flash 1s ease-out forwards;
}

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

.bomb-active .cursor-follower {
    animation: bomb-cursor 1s ease-in-out infinite;
}

@keyframes bomb-cursor {
    0%, 100% { transform: scale(1) rotate(var(--angle)); }
    50% { transform: scale(0.6) rotate(var(--angle)); }
}

@keyframes villain-pulse {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.7)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.9)); }
}

.timeout-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1rem;
    color: #fff;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.timeout-counter.warning {
    color: #ff6b6b;
    animation: pulse 1s ease-in-out infinite;
}

.screen-shake {
    animation: screen-shake 0.5s ease-in-out;
}

.score-change {
    animation: score-pop 0.5s ease-out;
}

@keyframes score-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.combo-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #00ff87;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.8);
    pointer-events: none;
    z-index: 9999;
    animation: combo-pop 1s ease-out forwards;
}

@keyframes combo-pop {
    0% { 
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    20% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
    80% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 160px 120px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars 4s linear infinite;
    opacity: 0.5;
}

.nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(65, 105, 225, 0.1), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 0, 128, 0.1), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1), transparent 60%);
    animation: nebula 20s ease-in-out infinite;
    filter: blur(30px);
}

.power-up {
    position: absolute;
    font-size: 2rem;
    cursor: none;
    z-index: 100;
    animation: power-up-float 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    transform-origin: center;
}

.power-up::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
    border-radius: 50%;
    animation: power-up-glow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes power-up-float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(5deg) scale(1.1);
    }
    50% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    75% {
        transform: translateY(10px) rotate(-5deg) scale(0.9);
    }
}

@keyframes power-up-glow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.2;
    }
}

.power-up.speed {
    color: #00ff87;
    animation: power-up-float 2s ease-in-out infinite, speed-pulse 1s ease-in-out infinite;
}

.power-up.shield {
    color: #4169e1;
    animation: power-up-float 2s ease-in-out infinite, shield-pulse 1s ease-in-out infinite;
}

.power-up.multiplier {
    color: #ffd700;
    animation: power-up-float 2s ease-in-out infinite, multiplier-pulse 1s ease-in-out infinite;
}

@keyframes speed-pulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 255, 135, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 255, 135, 0.8)); }
}

@keyframes shield-pulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(65, 105, 225, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(65, 105, 225, 0.8)); }
}

@keyframes multiplier-pulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.power-up-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.power-up-icon {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.power-up-icon.active {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes nebula {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: blur(30px) brightness(1);
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        filter: blur(40px) brightness(1.2);
    }
}

.shield-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle at center, rgba(65, 105, 225, 0.2), transparent 70%);
    animation: shield-pulse 2s ease-in-out infinite;
}

@keyframes shield-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.speed-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle at center, rgba(0, 255, 135, 0.2), transparent 70%);
    animation: speed-pulse 1s ease-in-out infinite;
}

@keyframes speed-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.multiplier-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.2), transparent 70%);
    animation: multiplier-pulse 0.5s ease-in-out infinite;
}

@keyframes multiplier-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* High Score Display */
.high-score {
    position: fixed;
    top: 20px;
    right: 240px;
    font-size: 1.2rem;
    color: #ffd700;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
    white-space: nowrap;
}

.high-score span {
    font-weight: bold;
    color: #fff;
}

.high-score-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    pointer-events: none;
    z-index: 9999;
    animation: celebration-pop 2s ease-out forwards;
}

@keyframes celebration-pop {
    0% { 
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    20% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
    80% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

/* Power-up Effects */
.power-up-effect {
    position: absolute;
    width: 100px;
    height: 100px;
    pointer-events: none;
    animation: powerUpEffect 1s ease-out forwards;
}

.power-up-effect.speed {
    background: radial-gradient(circle, rgba(255,255,0,0.8) 0%, rgba(255,255,0,0) 70%);
}

.power-up-effect.shield {
    background: radial-gradient(circle, rgba(0,255,255,0.8) 0%, rgba(0,255,255,0) 70%);
}

.power-up-effect.multiplier {
    background: radial-gradient(circle, rgba(255,0,255,0.8) 0%, rgba(255,0,255,0) 70%);
}

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

/* Power-up Duration Indicator */
.power-up-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.power-up-icon {
    font-size: 1.5em;
}

.power-up-timer {
    width: 100px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.power-up-timer::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff0, #f0f);
    transition: width 0.1s linear;
}

/* Enhanced Combo Display */
.combo-text.super-combo {
    color: #ff0;
    text-shadow: 0 0 20px #ff0;
    animation: superCombo 1s ease-in-out infinite;
}

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

/* Screen Shake Effect */
.screen-shake {
    animation: screenShake 0.5s ease-in-out;
}

@keyframes screenShake {
    0%, 100% {
        transform: translate(0, 0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translate(-5px, -5px);
    }
    20%, 40%, 60%, 80% {
        transform: translate(5px, 5px);
    }
}

/* Volume Control */
.volume-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.volume-icon {
    font-size: 1.5em;
    cursor: pointer;
    user-select: none;
}

.volume-slider {
    width: 100px;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* New Power-up Effects */
.slow-motion .obstacle {
    animation-duration: 2s !important;
}

.power-up-effect.slowmo {
    background: radial-gradient(circle, rgba(0,255,0,0.8) 0%, rgba(0,255,0,0) 70%);
}

.power-up-effect.magnet {
    background: radial-gradient(circle, rgba(255,0,0,0.8) 0%, rgba(255,0,0,0) 70%);
}

.power-up-effect.bomb {
    background: radial-gradient(circle, rgba(255,69,0,0.8) 0%, rgba(255,69,0,0) 70%);
}

/* Power-up Icons */
#slowmo-icon, #magnet-icon, #bomb-icon {
    opacity: 0.5;
    transition: all 0.3s ease;
}

#slowmo-icon.active, #magnet-icon.active, #bomb-icon.active {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px currentColor);
}

/* Magnet Effect */
.magnet-active .obstacle {
    transition: all 0.1s linear;
}

/* Bomb Effect */
.bomb-active .cursor-follower {
    animation: bomb-cursor 0.3s ease-in-out infinite;
}

@keyframes bomb-cursor {
    0%, 100% { transform: scale(1) rotate(var(--angle)); }
    50% { transform: scale(1.5) rotate(var(--angle)); }
}

/* Add responsive styles for smaller screens */
@media (max-width: 768px) {
    .score {
        top: 20px;
        right: 20px;
        width: auto;
        min-width: 150px;
    }

    .high-score {
        top: 80px;
        right: 20px;
        width: auto;
        min-width: 150px;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ff87, #60efff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(96, 239, 255, 0.3);
    letter-spacing: 2px;
    opacity: 0.9;
    line-height: 1.5;
}

.game-description {
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.benefits {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits h2 {
    font-size: 1.2rem;
    color: #60efff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(96, 239, 255, 0.5);
}

.benefits ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.benefits li {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.benefits li:hover {
    background: rgba(96, 239, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(96, 239, 255, 0.2);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    z-index: 1000;
}

footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0;
}

#high-score {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .game-description {
        font-size: 0.8rem;
        padding: 0 10px;
    }
    
    .benefits {
        padding: 10px;
    }
    
    .benefits h2 {
        font-size: 1rem;
    }
    
    .benefits li {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    footer p {
        font-size: 0.7rem;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(20, 20, 30, 0.9);
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: modal-appear 0.5s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00ff87, #60efff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(96, 239, 255, 0.3);
    letter-spacing: 2px;
    text-align: center;
}

.modal-content .game-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.modal-content .benefits {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content .benefits h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #60efff;
    text-shadow: 0 0 10px rgba(96, 239, 255, 0.5);
    text-align: center;
}

.modal-content .benefits ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.modal-content .benefits li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.modal-content .benefits li:hover {
    background: rgba(96, 239, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(96, 239, 255, 0.2);
}

.start-button {
    display: block;
    margin: 0 auto;
    padding: 15px 30px;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #00ff87, #60efff);
    color: #000;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(96, 239, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(96, 239, 255, 0.8);
}

.start-button:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-content h1 {
        font-size: 1.8rem;
    }
    
    .modal-content .game-description {
        font-size: 0.9rem;
    }
    
    .modal-content .benefits h2 {
        font-size: 1rem;
    }
    
    .modal-content .benefits li {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .start-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
} 