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

body {
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif;
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow: hidden;
    color: white;
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* Start Screen */
#start-screen h1 {
    font-size: 3rem;
    text-shadow:
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 30px #ff00ff;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff; }
    to { text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 60px #00ffff; }
}

.tagline {
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 30px;
}

.instructions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 300px;
}

.instructions p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.controls {
    color: #aaa;
    font-size: 0.9rem !important;
}

.sparkle-btn {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    padding: 20px 40px;
    font-size: 1.5rem;
    font-family: inherit;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    transition: all 0.3s ease;
    margin: 20px;
}

.sparkle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
}

.sparkle-btn:active {
    transform: scale(0.95);
}

.high-score {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #ffd700;
}

/* Game Screen */
#game-screen {
    width: 100%;
    height: 100%;
    position: relative;
}

#hud {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 1.5rem;
    z-index: 10;
    pointer-events: none;
}

#score-display {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#combo-display {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#game-canvas {
    display: block;
    background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 100%);
    touch-action: none;
}

/* Game Over Screen */
#game-over-screen h1 {
    font-size: 3rem;
    color: #ff6b6b;
    text-shadow: 0 0 20px #ff0000;
    margin-bottom: 20px;
}

.final-score {
    font-size: 2rem;
    margin: 30px 0;
}

.final-score span {
    color: #ffd700;
    font-size: 3rem;
}

.new-high {
    color: #00ff00;
    animation: pulse 0.5s ease-in-out infinite alternate;
    font-size: 1.5rem !important;
    margin-top: 10px;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.shop-btn {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: inherit;
    color: #1a0a2e;
    border-radius: 50px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
}

.shop-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* Responsive */
@media (max-width: 600px) {
    #start-screen h1 {
        font-size: 2rem;
    }

    .sparkle-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
    }

    #hud {
        font-size: 1.2rem;
    }
}

/* Sparkle particles effect */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.5; }
}
