
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to right, #1a2a6c, #b21f1f, #fdbb2d);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

.game-container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

h1 {
    color: #fdbb2d;
    margin-bottom: 20px;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.score-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
}

canvas {
    background-color: #0a0a0a;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.controls-info {
    margin-top: 20px;
}

button {
    background-color: #fdbb2d;
    border: none;
    color: #333;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #fff;
    transform: scale(1.05);
}

p {
    margin-bottom: 10px;
    opacity: 0.8;
}


/* Стили для мобильных устройств */
@media (max-width: 480px) {
    .game-container {
        padding: 15px;
        width: 100%;
        max-width: 95vw;
    }
    
    canvas {
        width: 100%;
        height: auto;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .score-container {
        font-size: 16px;
    }
    
    .mobile-info {
        color: #fdbb2d;
        margin-top: 15px;
        font-size: 14px;
    }
}

/* Предотвращаем выделение текста на мобильных устройствах */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
