body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #282c34;
    color: #fff;
    margin: 0;
}

h1 {
    color: #61dafb;
    margin-bottom: 20px;
}

#game-container {
    background-color: #3a404a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    width: 350px;
    overflow: hidden;
}

#score {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #a2fa80;
}

#message {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #f7a2a2;
    min-height: 24px;
}

#startButton {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#startButton:hover {
    background-color: #45a049;
}

#arrows-display {
    min-height: 350px; /* УВЕЛИЧИЛИ ВЫСОТУ ИГРОВОЙ ЗОНЫ */
    position: relative;
    border: 2px solid #555;
    background-color: #222;
    margin-bottom: 20px;
    overflow: hidden;
}

/* --- ОБНОВЛЕННЫЙ СТИЛЬ ДЛЯ ЛИНИИ ПОПАДАНИЯ (теперь это зона) --- */
#hit-zone-line {
    position: absolute;
    width: 100%;
    /* Высота будет установлена через JavaScript, чтобы соответствовать HIT_ZONE_BOTTOM - HIT_ZONE_TOP */
    background-color: rgba(97, 218, 251, 0.3); /* Полупрозрачный цвет для зоны */
    box-shadow: 0 0 10px rgba(97, 218, 251, 0.7);
    z-index: 20;
    pointer-events: none; /* Чтобы не мешать кликам, если они будут */
}
/* --- КОНЕЦ ОБНОВЛЕННОГО СТИЛЯ --- */


.falling-arrow {
    position: absolute;
    top: -50px;
    font-size: 3em;
    width: 50px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    transition: transform linear;
    opacity: 0.9;
    z-index: 10;
}

.falling-arrow.left { left: calc(25% - 25px); color: #f06292; }
.falling-arrow.up { left: calc(50% - 25px); color: #81c784; }
.falling-arrow.down { left: calc(50% - 25px); color: #64b5f6; }
.falling-arrow.right { left: calc(75% - 25px); color: #ffb74d; }

#input-arrows {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 2px solid #555;
}

.arrow-key {
    font-size: 2.5em;
    padding: 10px 15px;
    border: 2px solid #666;
    border-radius: 5px;
    cursor: pointer;
    background-color: #444;
    transition: background-color 0.1s ease, transform 0.1s ease;
    user-select: none;
}

.arrow-key:active, .arrow-key.pressed {
    background-color: #666;
    transform: scale(0.95);
}

.arrow-key#arrow-left { color: #f06292; }
.arrow-key#arrow-up { color: #81c784; }
.arrow-key#arrow-down { color: #64b5f6; }
.arrow-key#arrow-right { color: #ffb74d; }

.hit {
    color: limegreen !important;
    opacity: 1 !important;
    transform: scale(1.2);
    transition: transform 0.1s, opacity 0.1s;
}

.miss {
    color: red !important;
    opacity: 1 !important;
    transform: scale(0.8);
    transition: transform 0.1s, opacity 0.1s;
}