* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a2e 0%, #16213e 50%, #1a1a2e 100%);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 800px;
    max-height: 600px;
    border: 2px solid #4a90e2;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(to bottom, #0f0f3a 0%, #1a1a2e 50%, #000000 100%);
}
.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 60% 10%, rgba(255,255,255,0.7), transparent);
    background-repeat: repeat;
    background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
    animation: twinkle 4s linear infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    color: white;
    font-size: 18px;
}
.score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #4a90e2;
}
.lives-display {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #e74c3c;
}
.game-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.8);
    color: white;
    text-align: center;
}
.game-screen.hidden {
    display: none;
}
.game-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #4a90e2;
    animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
    from { text-shadow: 0 0 20px #4a90e2; }
    to { text-shadow: 0 0 30px #4a90e2, 0 0 40px #4a90e2; }
}
.instructions {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 400px;
}
.game-button {
    padding: 15px 30px;
    font-size: 20px;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}
.game-button:hover {
    background: linear-gradient(45deg, #357abd, #2968a3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #fff, transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 15;
}
@keyframes particle-explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}
.high-score {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #f39c12;
    color: white;
    font-size: 16px;
    z-index: 21;
}
@media (max-width: 768px) {
    .game-container {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border: none;
        border-radius: 0;
    }
    .game-canvas {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
    }
    .ui-overlay {
        font-size: 16px;
    }
    .game-title {
        font-size: 32px;
    }
    .instructions {
        font-size: 15px;
        padding: 0 10px;
    }
}
