* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden; /* Mencegah komet membuat scrollbar */
}

/* 🖼️ BACKGROUND PIXEL ART JERNIH */
.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* 🌠 EFEK KOMET / BINTANG JATUH (MELUNCUR KE BAWAH) */
.star-comet {
    position: absolute;
    width: 2px;
    height: 100px;
    /* Ekor pudar di atas, kepala terang meledak di bawah */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #60a5fa 70%, #ffffff 100%);
    border-radius: 2px;
    filter: drop-shadow(0 0 6px #60a5fa);
    opacity: 0;
    pointer-events: none;
}

/* Komet 1 (Posisi Kiri) */
.star-comet:nth-child(2) {
    top: -120px;
    left: 25%;
    animation: cometFallDown 3s ease-in infinite;
}

/* Komet 2 (Posisi Tengah-Kanan) */
.star-comet:nth-child(3) {
    top: -120px;
    left: 65%;
    animation: cometFallDown 4.2s ease-in infinite 1.8s;
}

/* Komet 3 (Posisi Kanan) */
.star-comet:nth-child(4) {
    top: -120px;
    left: 88%;
    animation: cometFallDown 3.5s ease-in infinite 0.8s;
}

/* Animasi jatuh lurus tegak lurus ke bawah */
@keyframes cometFallDown {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    70% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}


/* === LOGIN PAGE & MENU CONTAINER === */
.login-container, .menu-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* 💎 KARTU UTAMA BENING TRANSPARAN */
.login-card, .menu-card {
    background: rgba(15, 23, 42, 0.15); /* Tetap bening transparan */
    border: 2px solid rgba(96, 165, 250, 0.5);
    border-radius: 20px;
    padding: 35px 25px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 5px;
    
    /* Warna teks kuning neon */
    color: #ffe600; 
    
    /* Efek garis tepi merah tajam + bayangan glowing cyberpunk */
    -webkit-text-stroke: 1.5px #ff0055;
    text-shadow: 
        0 0 5px #ff0055,
        0 0 15px rgba(255, 0, 85, 0.6),
        3px 3px 0px #000;
        
    letter-spacing: 2px;
    text-transform: uppercase;
}

.game-subtitle {
    text-align: center;
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 30px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 15px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: border 0.2s;
}

.input-field:focus {
    border-color: #60a5fa;
}

.password-wrapper {
    position: relative;
}

.eye-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.link-text {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #cbd5e1;
}

.link-text a {
    color: #60a5fa;
    text-decoration: none;
}

.back-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.back-link a {
    color: #cbd5e1;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* === MENU PAGE === */
.welcome-text {
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

/* 📊 BOX STATS (DIAMOND & SKOR) PEKAT */
.stats-box {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    flex: 1;
    background: #1e293b; /* Warna solid gelap pekat */
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.stat-icon {
    font-size: 22px;
    margin-bottom: 5px;
    display: block;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
}

/* 🔘 TOMBOL MENU PEKAT */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-btn.primary {
    background: linear-gradient(135deg, #22c55e, #16a34a); /* Hijau padat */
    color: white;
}

.menu-btn.secondary {
    background: #1e293b; /* Biru gelap padat */
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.menu-btn.logout {
    background: #3b1c24; /* Merah gelap padat */
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.modal-card {
    background: #1e293b;
    border: 2px solid rgba(96, 165, 250, 0.4);
    border-radius: 16px;
    padding: 25px;
    max-width: 380px;
    width: 100%;
}

.modal-card h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #60a5fa;
}

.modal-content {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-content p {
    margin-bottom: 12px;
}
