/* =======================================
    GAYA UMUM & LATAR BELAKANG (TRANSPARAN)
    ======================================= */
* {
    user-select: none;
    user-drag: none;
    box-sizing: border-box; 
    font-family: 'Consolas', monospace, 'Digital-7', sans-serif;
}
body {
    margin: 0;
    padding: 0;
    color: white;
    /* Pastikan background utama transparan untuk HUD */
    background-color: transparent !important; 
    overflow: hidden;
    font-size: 14px; 
}

.game-background {
    background: transparent; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* =======================================
    CONTAINER UTAMA DASHBOARD
    ======================================= */
.digital-dashboard-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.dashboard-box {
    width: 250px;
    height: 150px;
    /* Background semi-transparan gelap untuk dashboard */
    background-color: rgba(30, 30, 45, 0.95); 
    border-radius: 10px;
    padding: 12px 15px; 
    box-sizing: border-box;
    display: flex;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4); 
    
    opacity: 1; 
    visibility: visible; 
    transition: opacity 0.3s;
}


/* =======================================
    BAGIAN BAR INDIKATOR KIRI (H/F)
    ======================================= */
.bars-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px; 
    flex-shrink: 0;
    height: 100%; 
}

.bar-labels-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 3px; 
    font-size: 0.65em; 
    font-weight: bold;
    color: #fff; 
}

#health-percent { color: #00ff00; }
#fuel-percent { color: #ffaa00; }

.label-indicators {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 5px; 
    font-size: 0.9em;
}
.indicator-text {
    font-weight: bold;
    color: #fff;
    width: 15px; 
    text-align: center;
}

.bar-columns {
    display: flex;
    gap: 8px;
    flex-grow: 1; 
    flex-shrink: 0;
    align-items: flex-end; 
    max-height: 80px; 
    padding-bottom: 25px; 
}

.bar-column {
    width: 15px;
    background-color: #333; 
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    border-top: 1px solid #444; 
    height: 100%; 
}

.bar-fill {
    width: 100%;
    transition: height 0.3s ease-out, background-color 0.3s, box-shadow 0.3s;
}
.health-fill { background-color: #00ff00; }
.fuel-fill { background-color: #ffaa00; }


/* =======================================
    DISPLAY KECEPATAN & INDIKATOR TENGAH
    ======================================= */
.center-display-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5px; 
}

.speed-readout {
    display: flex;
    align-items: baseline; 
    position: relative;
    height: 50px; 
}

.speed-value {
    font-size: 4em; 
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.gear-letter {
    position: absolute;
    right: -10px; 
    top: 0;
    font-size: 1.5em; 
    font-weight: bold;
    color: #ff0000; 
    line-height: 1;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.unit-text {
    font-size: 0.7em;
    color: #ccc;
    **margin-top: 5px;** /* PERUBAHAN DI SINI */
    font-weight: bold;
    flex-shrink: 0;
}

.power-bar-dots {
    display: flex;
    gap: 5px;
    margin-top: 20px; /* DINAikkan 5px lagi untuk turun lebih jauh */
    flex-shrink: 0;
}

.dot {
    width: 15px;
    height: 5px;
    background-color: #444; 
    border-radius: 1px;
}

.dot.active {
    background-color: white;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}


/* =======================================
    IKON STATUS BAWAH
    ======================================= */
.status-icons-row {
    position: absolute;
    bottom: 10px;
    left: 15px; 
    right: 15px; 
    width: auto;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding-top: 8px; 
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    height: 35px; 
}

.icon {
    font-size: 1.4em; 
    color: #00ffff; 
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.5);
    opacity: 0.5; 
    transition: opacity 0.2s, color 0.2s; 
}

/* Simbol Ikon Kustom (Unicode) */
#turn-left-icon::before { content: '←'; } 
#turn-right-icon::before { content: '→'; }
#engine-icon::before { content: '⚡'; } 
#headlights-icon::before { content: '💡'; } 
#abs-icon::before { content: '\1F4BA'; }

/* Status Aktif */
.icon.active { 
    opacity: 1; 
    color: #66ccff;
}

#turn-left-icon.active, #turn-right-icon.active {
    color: #00ffff;
}

/* =======================================
    GAYA WELCOME OVERLAY BARU (2 Detik, Transparan, Neon Oranye)
    ======================================= */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Background diatur transparan */
    background-color: transparent; 
    
    /* Pengaturan Flexbox untuk sentralisasi konten */
    display: flex;
    justify-content: center; /* Sentralisasi Horizontal */
    align-items: center; /* Sentralisasi Vertikal */
    
    z-index: 99999; 
    
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0s 0.5s;
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.welcome-text {
    /* Font yang mendukung Aksara Jawa, dengan fallback */
    font-family: 'Noto Sans Javanese', 'Javanese Text', Arial, sans-serif;
    
    /* Ukuran font disesuaikan agar kalimat panjang muat */
    font-size: 1.8em; 
    
    /* PERUBAHAN: Warna teks diatur ke HITAM */
    color: #000000; 
    font-weight: bold;
    
    /* Penataan teks */
    text-align: center;
    line-height: 1.4; 
    
    /* EFEK NEON: Shadow Oranye dipertahankan */
    text-shadow: 
        0 0 5px #FFA500,   
        0 0 15px #FFA500,   
        0 0 30px #FF4500,   
        0 0 45px #FF4500;   
}
