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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
}

.game-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 20px #00ffff;
    color: #00ffff;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #00ffff;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat .label {
    font-size: 0.9em;
    color: #cccccc;
}

.stat span:last-child {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.game-area {
    position: relative;
    border: 3px solid #00ffff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    background: radial-gradient(circle at center, #000011 0%, #000000 100%);
}

#gameCanvas {
    display: block;
    background: transparent;
}

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

.start-screen h2, .game-over h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
}

.start-screen p, .game-over p {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #cccccc;
}

.start-screen button, .game-over button {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.start-screen button:hover, .game-over button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, #00ffff, #00aaff);
}

.hidden {
    display: none !important;
}

.game-controls {
    margin-top: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #00ffff;
    max-width: 800px;
}

.control-info p {
    margin: 5px 0;
    color: #cccccc;
}

.control-info strong {
    color: #00ffff;
}

/* Анимации для звезд */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 900px) {
    .game-header h1 {
        font-size: 2em;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat {
        flex-direction: row;
        justify-content: space-between;
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}

@media (max-width: 500px) {
    .game-header h1 {
        font-size: 1.5em;
    }
    
    .start-screen h2, .game-over h2 {
        font-size: 2em;
    }
    
    .start-screen p, .game-over p {
        font-size: 1em;
    }
}
