/* Header */
.lobby-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: var(--bg-panel);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar-frame img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
}

.user-details {
    display: flex;
    flex-direction: column;
}

#username-display { font-weight: bold; font-size: 1.1rem; }
#rank-display { font-size: 0.8rem; color: var(--gold); }

/* Main Menu */
.lobby-menu {
    padding: 10px 20px 100px 20px; /* Padding bawah besar agar tidak ketutup tombol menu */
    height: calc(100vh - 70px);    /* Menggunakan sisa tinggi layar */
    overflow-y: auto;              /* PENTING: Mengaktifkan fitur Scroll */
    display: block;                /* Ubah layout agar scroll lancar */
}


.logo-area {
    margin-top: 10px;    /* Ganti jadi 10px (sebelumnya 30px) */
    margin-bottom: 15px; /* Ganti jadi 15px (sebelumnya 50px) */
    text-align: center;
}


.mode-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mode-card {
    background: linear-gradient(145deg, #3a3835, #2a2825);
    border: none;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.mode-card:active { transform: scale(0.98); }
.rank-mode { border-left: 5px solid var(--gold); }
.classic-mode { border-left: 5px solid var(--accent-green); }

.mode-icon { font-size: 2rem; }
.mode-text h3 { margin-bottom: 5px; }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 70px;
    background-color: var(--bg-panel);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #444;
}

.bottom-nav button {
    background: none;
    border: none;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    gap: 5px;
}

.bottom-nav button.active { color: var(--accent-green); }
.bottom-nav button i { font-size: 1.2rem; }

/* --- SUPER UNIT CAROUSEL --- */
.super-unit-section {
    width: 100%;
    margin-bottom: 20px;
}

.section-title {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.unit-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Sembunyikan scrollbar di Firefox */
}

.unit-carousel::-webkit-scrollbar { display: none; /* Sembunyikan scrollbar di Chrome */ }

.unit-card {
    min-width: 100px;
    height: 120px;
    background: linear-gradient(180deg, #3a3835, #222);
    border: 1px solid #444;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.unit-card.active {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, #4a4845, #333);
    transform: scale(1.05);
}

.unit-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.unit-card.active .unit-icon { color: var(--gold); }

.unit-name {
    font-size: 0.7rem;
    font-weight: bold;
}

.unit-desc-box {
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
    border-left: 3px solid var(--accent-green);
}

.unit-desc-box h4 { color: var(--accent-green); margin-bottom: 3px; font-size: 0.9rem;}
.unit-desc-box p { font-size: 0.75rem; color: #ccc; line-height: 1.2; }


/* --- ITEM SELECTOR GRID --- */
.item-loadout-section {
    width: 100%;
    margin-top: 20px;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 kolom */
    gap: 8px;
    margin-bottom: 10px;
}

.item-slot {
    aspect-ratio: 1/1;
    background: #2a2825;
    border-radius: 50%;
    border: 1px solid #444;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    transition: transform 0.2s;
}

.item-slot:hover { background: #333; }
.item-slot.selected {
    border: 2px solid var(--danger);
    color: var(--danger);
    background: rgba(230, 57, 70, 0.1);
    transform: scale(1.1);
}

.text-gold { color: var(--gold); font-weight: bold; }

/* --- HEADER KANAN (DOMPET & SETTING) --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-container {
    display: flex;
    gap: 10px;
}

.wallet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    padding: 5px 8px;
    border-radius: 8px;
    min-width: 40px;
}

.wallet-item span { margin-top: 2px; color: #fff; font-weight: bold;}

/* Warna Ikon */
.icon-diamond { color: #00d2ff; font-size: 1rem; filter: drop-shadow(0 0 2px #00d2ff); }
.icon-coin { color: #ffd700; font-size: 1rem; filter: drop-shadow(0 0 2px #ffd700); }
.icon-money { color: #2ecc71; font-size: 1rem; filter: drop-shadow(0 0 2px #2ecc71); }

/* Tombol Setting */
.settings-btn {
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: transform 0.3s;
}

.settings-btn:active {
    transform: rotate(90deg);
    color: var(--text-white);
}
