\body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a252f;
    color: white;
    text-align: center;
    overflow: hidden;
}

.game-info {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
}

#game-container {
    width: 350px;
    height: 600px;
    border: 5px solid #ecf0f1;
    margin: 10px auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    /* BACKGROUND JALAN PORTRAIT */
    background-image: url('Jalan.jpg');
    background-size: cover;
    background-position: center;
    /* Animasi jalan bergerak maju */
    animation: moveRoad 1.5s linear infinite;
}

@keyframes moveRoad {
    from { background-position-y: 0; }
    to { background-position-y: 600px; }
}

#player {
    width: 130px;
    height: 130px;
    position: absolute;
    bottom: 30px;
    left: 110px; /* Tengah */
    transition: left 0.12s ease-out;
    z-index: 5;
}

/* Class untuk api yang muncul dinamis */
.obstacle {
    width: 130px;
    height: 130px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

#player img, .obstacle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #e67e22;
    z-index: 100;
}

.hidden { display: none; }

button {
    padding: 12px 25px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    background-color: #e67e22;
    border: none;
    color: white;
    border-radius: 8px;
    transition: 0.2s;
}

button:hover { background-color: #d35400; }

@media (max-width: 450px) {
    #game-container {
        width: 90vw;
        height: 75vh;
    }
}