body, html { 
    margin: 0; 
    padding: 0; 
    overflow: hidden; 
    width: 100%; 
    height: 100%; 
    font-family: 'Segoe UI', Arial, sans-serif; 
    background: #05050a; 
    color: white; 
}

/* ==========================================================================
   1. LAYAR MULTI-PAGE (MENU, PANDUAN, VICTORY)
   ========================================================================== */
.screen { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    z-index: 9999; /* Berada di lapisan paling depan menutupi canvas 3D */
    transition: all 0.5s ease; 
}

#main-menu { 
    background: linear-gradient(rgba(10,10,30,0.9), rgba(5,5,10,0.95)); 
}

#panduan-menu { 
    background: linear-gradient(rgba(10,10,30,0.95), rgba(5,5,10,1)); 
}

#victory-screen { 
    background: rgba(5,20,15,0.95); 
}

.hidden { 
    display: none !important; 
    opacity: 0; 
    pointer-events: none; 
}

.panel-box { 
    background: rgba(15, 15, 35, 0.9); 
    border: 2px solid #00ffcc; 
    border-radius: 16px; 
    padding: 30px; 
    width: 450px; 
    text-align: center; 
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.3); 
    backdrop-filter: blur(10px); 
}

h1 { 
    color: #00ffcc; 
    text-shadow: 0 0 15px rgba(0,255,204,0.6); 
    margin-bottom: 30px; 
    font-size: 28px; 
}

h3 { 
    color: #ff3f7f; 
    margin: 5px 0; 
}

/* ==========================================================================
   2. TOMBOL KOMPONENT UI (CYBERPUNK STYLE)
   ========================================================================== */
.btn-ui { 
    background: #3f3fff; 
    color: white; 
    border: none; 
    padding: 12px 30px; 
    font-size: 16px; 
    font-weight: bold; 
    border-radius: 8px; 
    cursor: pointer; 
    margin: 10px 0; 
    width: 100%; 
    transition: all 0.3s; 
    box-shadow: 0 4px 10px rgba(63,63,255,0.3); 
}

.btn-ui:hover { 
    background: #2222cc; 
    transform: translateY(-2px); 
    box-shadow: 0 0 15px #3f3fff; 
}

.btn-green { 
    background: #00ffcc; 
    color: #0a0a12; 
}

.btn-green:hover { 
    background: #00cc99; 
    box-shadow: 0 0 15px #00ffcc; 
}

.btn-pop { 
    background: #ff3f7f; 
    color: white; 
}

.btn-pop:hover { 
    background: #cc295f; 
    box-shadow: 0 0 15px #ff3f7f; 
}

/* ==========================================================================
   3. INDIKATOR ATAS (HUD GAMEPLAY)
   ========================================================================== */
#hud-container { 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    right: 20px; 
    display: flex; 
    justify-content: space-between; 
    z-index: 5000; 
    pointer-events: none;
}

.hud-card { 
    background: rgba(10, 10, 25, 0.85); 
    border: 2px solid #00ffcc; 
    padding: 12px 20px; 
    border-radius: 10px; 
    font-weight: bold; 
    backdrop-filter: blur(8px); 
    box-shadow: 0 0 15px rgba(0,255,204,0.2); 
    pointer-events: auto; 
}

/* ==========================================================================
   4. PANEL KONTROL LOGIKA (SEBELAH KANAN)
   ========================================================================== */
#game-controls { 
    position: absolute; 
    top: 100px; 
    right: 20px; 
    width: 320px; 
    z-index: 5000; 
}

.input-box { 
    background: rgba(10, 10, 25, 0.85); 
    border: 2px solid #ff3f7f; 
    border-radius: 12px; 
    padding: 20px; 
    box-shadow: 0 0 20px rgba(255,63,127,0.3); 
    text-align: center; 
    backdrop-filter: blur(8px);
}

input[type="number"] { 
    background: #000; 
    border: 1px solid #00ffcc; 
    color: #00ffcc; 
    font-size: 18px; 
    font-weight: bold; 
    padding: 5px; 
    width: 60px; 
    text-align: center; 
    border-radius: 4px; 
}

/* ==========================================================================
   5. KONSOL OUTPUT / RESPON UMUR BALIK
   ========================================================================== */
#console-log { 
    background: rgba(0, 0, 0, 0.9); 
    border: 1px solid #222244; 
    padding: 10px; 
    border-radius: 6px; 
    height: 120px; 
    overflow-y: auto; 
    font-family: 'Courier New', monospace; 
    font-size: 12px; 
    color: #00ff66; 
    text-align: left; 
    margin-top: 15px; 
}
/* ==========================================================================
   6. LAMAN EVALUASI / KUIS SISWA
   ========================================================================== */
#kuis-menu {
    background: linear-gradient(rgba(10,20,30,0.95), rgba(5,10,15,1));
    overflow-y: auto;
    display: flex;
    padding: 40px 0;
}

.scroll-container {
    width: 90%;
    max-width: 650px;
    background: rgba(15, 20, 35, 0.95);
    border: 2px solid #3f3fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 0 40px rgba(63, 63, 255, 0.25);
    backdrop-filter: blur(10px);
    margin: auto;
    text-align: left;
}

.soal-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #ff3f7f;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.soal-box p {
    margin-top: 0;
    font-weight: 600;
    color: #00ffcc;
}

.opsi-label {
    display: block;
    position: relative;
    padding: 10px 10px 10px 35px;
    margin: 8px 0;
    background: rgba(255,255,255,0.02);
    border: 1px solid #222244;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.opsi-label:hover {
    background: rgba(63, 63, 255, 0.1);
    border-color: #3f3fff;
}

.opsi-label input {
    position: absolute;
    left: 12px;
    top: 13px;
}

#hasil-kuis {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

/* BACKGROUND KOTAK NYAWA (TEMPAT BAR) */
.hp-bg {
    width: 120px;
    height: 16px;
    background: #222;
    border: 1px solid #555;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
}

/* INNER BAR YANG BISA MENYUSUT */
#hp-bar {
    width: 100%; /* Default penuh 100% */
    height: 100%;
    background: linear-gradient(90deg, #ff3f3f, #00ff66);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: width 0.4s ease-out; /* Efek animasi menyusut halus */
}