:root {
    /* ... (variabel CSS tetap sama) ... */
    --primary-color: #f39c12; 
    --secondary-color: #3498db; 
    --danger-color: #e74c3c; 
    --background-color: #2c3e50; 
    --text-color: #ecf0f1; 
}

body {
    /* ... (gaya body tetap sama) ... */
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    min-height: 100vh;
    padding: 20px;
}

header {
    margin-bottom: 20px;
    text-align: center;
}

#game-container {
    background-color: #34495e;
    border: 5px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 90%;
    width: 600px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* --- Game Board (Arena) --- */
#game-board {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #1a252f;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    overflow: hidden; 
    margin-top: 10px;
}

/* --- Launcher (Penembak) --- */
.launcher {
    position: absolute;
    top: 0;
    width: 6%; /* Disesuaikan agar 8 launcher muat */
    height: 15px;
    background-color: var(--secondary-color);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Penempatan 8 Launcher (Menggunakan interval sekitar 11-12%) */
#launcher-1 { left: 4%; }
#launcher-2 { left: 16%; }
#launcher-3 { left: 28%; }
#launcher-4 { left: 40%; }
#launcher-5 { left: 52%; }
#launcher-6 { left: 64%; } /* BARU */
#launcher-7 { left: 76%; } /* BARU */
#launcher-8 { left: 88%; } /* BARU */

/* --- Player (Penghindar) --- */
#player {
    position: absolute;
    bottom: 10px;
    left: 50%; 
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%; 
    transition: left 0.1s ease-out; 
    z-index: 10;
    border: 2px solid var(--text-color);
}

/* --- Missile (Misil) --- */
.missile {
    position: absolute;
    width: 30px; /* Misil DIBESARKAN */
    height: 38px; /* Disesuaikan proporsional */
    background-color: var(--danger-color);
    border-radius: 3px;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 0 10px var(--danger-color);
}

/* --- Info Bar & Message Area (Tetap Sama) --- */
#info-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    background-color: #2c3e50;
    margin-top: 10px;
    border-radius: 5px;
}

#info-bar p {
    margin: 0;
    font-weight: bold;
}

#status-display.safe { color: #2ecc71; }
#status-display.danger { color: var(--danger-color); }

#message-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 20;
    border-radius: 10px;
    transition: opacity 0.5s;
}

#message-area.hidden {
    opacity: 0;
    pointer-events: none;
}

#game-message {
    color: var(--text-color);
    margin-bottom: 20px;
}

#start-button {
    padding: 10px 20px;
    font-size: 1.2em;
    font-weight: bold;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#start-button:hover {
    background-color: #e67e22;
}

/* --- Responsiveness --- */
@media (max-width: 650px) {
    #game-container {
        padding: 10px;
        width: 100%;
        max-width: none;
    }
    
    #game-board {
        height: 300px;
    }
    
    #info-bar {
        flex-direction: column;
        align-items: center;
    }
    
    #info-bar p {
        margin: 5px 0;
    }
}