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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.game-container {
    width: 100%;
    max-width: 800px;
    height: 100vh;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

.game-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.game-header h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-info {
    display: flex;
    justify-content: space-around;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.game-area {
    position: relative;
    height: calc(100vh - 200px);
    background: linear-gradient(180deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    overflow: hidden;
}

.player {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    z-index: 10;
    transition: left 0.1s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.falling-item {
    position: absolute;
    font-size: 2rem;
    animation: fall linear;
    user-select: none;
}

.star {
    filter: drop-shadow(0 0 8px #ffd700);
}

.obstacle {
    filter: drop-shadow(0 0 8px #ff0000);
}

@keyframes fall {
    from {
        top: -50px;
    }
    to {
        top: 100vh;
    }
}

.controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.controls p {
    margin: 2px 0;
}

.game-over, .start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.game-over h2, .start-screen h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.start-screen h2 {
    color: #4ecdc4;
}

.game-over p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.restart-btn, .start-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.start-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.restart-btn:hover, .start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    .game-header h1 {
        font-size: 1.5rem;
    }
    
    .game-info {
        font-size: 1rem;
    }
    
    .player {
        font-size: 2.5rem;
    }
    
    .falling-item {
        font-size: 1.5rem;
    }
    
    .controls {
        font-size: 0.8rem;
    }
}

/* Particle effect for background */
.game-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

@keyframes sparkle {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-100px);
    }
}