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

body {
    background: #0a0a0f;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    border: 3px solid #2a2a3a;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    background: #1a1e23;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    max-width: 95vw;
    max-height: 90vh;
    display: block;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #b464dc;
    background: rgba(20, 25, 30, 0.95);
    padding: 40px 60px;
    border-radius: 10px;
    border: 2px solid #b464dc;
    animation: pulse 2s infinite;
}

.loading h1 {
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #b464dc;
}

.loading p {
    font-size: 16px;
    color: #8888aa;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading.hidden {
    display: none;
}

/* Button hover and press animations */
@keyframes buttonHover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes buttonPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Glow animation for important elements */
@keyframes glow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(180, 100, 220, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(180, 100, 220, 0.9));
    }
}

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scale in animation */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Confetti fall animation */
@keyframes confettiFall {
    0% { 
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(800px) rotate(720deg);
        opacity: 0;
    }
}

/* Sparkle animation */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

