@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

/* 1. RESET & DASAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif;
}

body {
    background-image: linear-gradient(120deg, #1e293b 0%, #1e293b 100%);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. CONTAINER UTAMA */
.container {
    width: 96%;
    max-width: 450px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-sizing: border-box;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px auto;
    min-height: fit-content; 
    overflow: hidden;        
}

#category-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: 15px;
}

/* 3. HALAMAN & KONTEN */
.landing-page, .game-category, .quiz, .result-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    min-height: 480px; /* Dikurangi sedikit agar tidak terlalu panjang */
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.landing-page > h1 {
    font-size: 36px; 
    line-height: 1.2;
    margin: 10px 0;
}

.landing-page > img { width: 80px; margin-bottom: 10px; }

.line {
    width: 150px;
    margin: 10px 0;
    border: 1px solid rgba(255,255,255,0.3);
}

/* 4. TOMBOL-TOMBOL */
button, .option, .btn-leaderboard, .restart-game {
    touch-action: manipulation;
    padding: 12px;
    color: white;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 18px; 
    border: none;
    background-image: linear-gradient(120deg, #1e293b 0%, #1e293b 100%);
    cursor: pointer;
    margin: 10px 0;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transition: 0.3s ease;
}

button:hover, .option:hover {
    transform: scale(1.02);
}

/* 5. KHUSUS INPUT & DROPDOWN */
#nama-umum, #pilih-siswa {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid #6a11cb;
    outline: none;
    width: 100%;
    max-width: 320px;
    padding: 12px;
    border-radius: 10px;
    margin: 10px auto;
    font-size: 16px;
}

/* 6. KHUSUS KUIS & HASIL */
.quiz > h2 { font-size: 16px; margin: 15px 0; }
#options-container { width: 100%; margin-bottom: 20px; }

.restart-game {
    background-image: linear-gradient(to right, #e74c3c 0%, #c0392b 100%) !important;
}

.score-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    width: 100%;
}

#res-skor { font-size: 50px; color: #f1c40f; }

/* 7. MEDIA QUERY (OPTIMASI UNTUK PONSEL) */
@media screen and (max-width: 480px) {
    .landing-page > h1 { font-size: 32px; }
    button, .option, #pilih-siswa, #nama-umum {
        font-size: 16px; 
        padding: 10px;
    }
}

/* 8. ANIMASI & LAINNYA */
.mode-selection p {
    font-size: 14px;
    color: #f1c40f;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

@keyframes popOut {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.streak-fire {
    pointer-events: none;
    user-select: none;
}