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

body {
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.score-board {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.player {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 50px;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 -5px 15px rgba(52, 152, 219, 0.8);
    z-index: 5;
    cursor: pointer;
    transition: transform 0.1s;
}

.star {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ffff00, #ffcc00);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    box-shadow: 0 0 15px #ffcc00;
    border-radius: 50%;
    z-index: 2;
    top: -40px;
}

.game-controls {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

.btn {
    padding: 12px 25px;
    font-size: 1rem;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    font-weight: bold;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    display: none;
}

.game-over h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
}

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

/* Адаптивные стили */
@media (max-width: 768px) {
    .score-board {
        font-size: 1.2rem;
        top: 10px;
    }
    
    .player {
        width: 100px;
        height: 40px;
    }
    
    .game-controls {
        bottom: 80px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .game-over h2 {
        font-size: 2.5rem;
    }
    
    .game-over p {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .score-board {
        font-size: 1rem;
    }
    
    .player {
        width: 80px;
        height: 30px;
    }
    
    .game-controls {
        bottom: 60px;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .game-over h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .game-over p {
        font-size: 1.5rem;
    }
}