/* ... CSS yang Anda berikan sebelumnya ... */

:root {
    --bg: #0f1724;
    /* gelap */
    --card: #0b1220;
    --accent: #ffce00;
    --hijau: #09ea67;
    --muted: #94a3b8;
    --glass: rgb(3, 27, 112);
}

.number1{
    font-weight: bold;
    font-size: 1rem;
}


.number2{
    font-weight: bold;
     font-size: 1rem;
}


.number3{
    font-weight: bold;
    font-size: 1rem;
}



#popCroachContainer {
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: #f0eeee;
    z-index: 1000;
}

.addscore{
    margin-right: 10px;
    color: #f47e00;
}
#closeCroach {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 80px;
    z-index: 1900;
    cursor: pointer;
    transform: rotate(20deg);
    transition: 0.3s;
}

#closeCroach svg {
    fill: #f47e00;
}

#closeCroach:hover>svg {
    fill: rgb(239, 36, 36);
}

/* Class dasar untuk kotak yang berjalan */
.walking-element {
    position: fixed;
    /* ... properti lain ... */
    bottom: -100px;
    /* background: red; */
    animation: walk-up linear infinite;
    cursor: pointer;
    /* Tambahkan agar terlihat bisa diklik */
    user-select: none;
}

.walking-element.splat-mode {
    z-index: 1000;
    /* Pastikan splat berada di atas semua kecoa lain */
}

#popCroachLabel {
    line-height: 5rem;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    position: fixed;
    width: 100px;
    height: 100px;
    left: 50%;
    margin-left: -50px;
    top: 40%;
    font-size: 3rem;
    font-weight: bold;
    color: #f47e00;
    /* background-color: rgba(255, 255, 255, 0.8); */
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 1790;
    /* Pastikan label berada di atas elemen lain */
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    transition: 0.3s;
}

/* Animasi CSS untuk pergerakan dari bawah ke atas */
@keyframes walk-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-120vh);
    }
}



/* struktur dari user */
#leaderboard {
    color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 10px;
    box-shadow: 0 2px 3px rgba(2, 6, 23, 0.7);
    position: fixed;
    display: block;
    z-index: 2000;
    width: 800px;
    height: 57vh;
    left: 50%;
    bottom: -50vh;
    margin-left: -400px;
    background: var(--card);
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.headerboard {
    display: block;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    width: 100%;
    padding-left: 6px;
    padding-right: 6px;
    cursor: pointer;
}

.headerboard .kiri {
    flex: 2;
    font-size: 0.7rem;
    font-weight: 300;
    display: flex;
    justify-content: start;
}

.headerboard .tengah {
    flex: 1;
    font-size: 0.7rem;
    font-weight: 300;
    text-align: center;
    font-weight: bold;
}


.sorotan {
    font-weight: bold;
    transform: scale(1);
    font-size: 0.7rem;
    color: #04b819;
}

#croach {
    margin-top: -1px;
    display: none;
    width: 30px;
    height: 30px;
    animation-delay: 2.5s;
    /* jeda sebelum mulai */
}

.headerboard .kanan {
    flex: 2;
    font-size: 0.7rem;
    font-weight: 300;
    display: block;
    text-align: right;
    display: flex;
    justify-content: end;
}

.headerboard .kanan .content p {
    display: block;
    margin-right: 10px;
}

.headerboard .kanan .split {
    width: 1px;
    height: 20px;
    background: rgb(70, 68, 68);
    border-radius: 10px;
}

.headerboard .kanan .expand {
    margin-left: 10px;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.headerboard .kanan .expand img {
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headerboard .kanan .content .score {
    font-weight: bold;
    color: var(--hijau);
    transition: 0.3s;
    font-size: 0.7rem;
    margin-right: 10px;
}

.headerboard .kiri .content .score {
    font-weight: bold;
    color:#ffce00;
    font-size: 0.7rem;
    margin-left: 18px;
}

.bodyboard {
    display: block;
    max-height: 50vh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.5) transparent;
}

/* Chrome, Edge, Safari */
.bodyboard::-webkit-scrollbar {
    width: 4px;
    /* tipis elegan */
}

.bodyboard::-webkit-scrollbar-track {
    background: transparent;
    /* biar clean */
}

.bodyboard::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.4);
    border-radius: 8px;
    /* lengkung manis */
    transition: background 0.3s ease;
}

.bodyboard::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 120, 0.7);
}

.itemboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    font-size: 0.7rem;
    border-bottom: 1px solid rgb(70, 68, 68);
}

.itemboard .mines {
    font-weight: bold;
    font-size: 0.8rem;
}

/* Nama sekolah (kiri) */
.itemboard .namasekolah {
    flex: 1;
    min-width: 0;
    /* WAJIB agar ellipsis aktif */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nilai (kanan) */
.itemboard .score {
    flex-shrink: 0;
    /* jangan mengecil */
    margin-left: 10px;
    white-space: nowrap;
    font-weight: bold;
}

@media (max-width: 640px) {
    #leaderboard {
        width: 100vw;
        left: 0%;
        margin-left: 0px;
        position: fixed;
    }

    .headerboard .tengah {
        flex: 0;
        font-size: 0.7rem;
        font-weight: 300;
        text-align: center;
    }

    .headerboard .kiri .content,
    .headerboard .kanan .content {
        white-space: nowrap;
        /* single line */
        overflow: hidden;
        /* potong jika tidak muat */
        text-overflow: ellipsis;
        /* tambahkan ... */
        display: block;
        /* WAJIB untuk ellipsis */
    }

    #closeCroach {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 40px;
        z-index: 1100;
        cursor: pointer;
        transform: rotate(20deg);
    }
}


@media (max-width: 991px) {
 .headerboard .tengah {
        flex: 0;
        font-size: 0.7rem;
        font-weight: 300;
        text-align: center;
    }

    #leaderboard {
        width: 100vw;
        left: 0%;
        margin-left: 0px;
        position: fixed;
    }
}