body {
    background: #77c9f8 !important;
    margin: 0;
    text-align: center;
}

.ast-primary-header-bar {
    background: #91bd35 !important;
    box-shadow: none !important;
}

.ast-primary-header-bar,
#content.site-content {
    border: none !important;
    box-shadow: none !important;
}

#primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

h1 {
    margin-top: 20px !important;
    margin-bottom: 5px !important;
    color: white !important;
    -webkit-text-stroke: 2px #1175ad;
    font-family: "Arial Black", sans-serif !important;
    font-size: 2.5rem;
}

.header-leaderboard p {
    color: white;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.menu-container-game {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 0 0 100px 0; /* Hapus padding samping agar benar-benar center */
    min-height: calc(100vh - 160px);
    width: 100%;
}

.leaderboard-table-wrapper {
    width: 90%; /* Gunakan persentase agar fleksibel */
    max-width: 800px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 4px solid #91bd35;
    overflow: hidden;
    margin: 0 auto; /* Center secara horizontal */
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
}

.leaderboard-table th {
    background: #91bd35;
    padding: 15px;
    color: white;
    font-weight: 900;
    font-family: "Arial Black", sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
}

.leaderboard-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle; /* Pastikan tinggi konten sejajar */
    background: white;
}

/* Rank Styling */
.rank-column {
    width: 60px;
    text-align: center;
    font-weight: 900;
    font-family: "Arial Black", sans-serif;
    font-size: 1.2rem;
    color: #555;
}

.medal {
    font-size: 1.6rem;
}

/* User Styling */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #91bd35;
}

.user-name {
    font-weight: bold;
    color: #333;
    font-family: "Arial", sans-serif;
}

.you-badge {
    background: #91bd35;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Coin Styling - Perbaikan Tinggi & Lebar */
.coin-column {
    text-align: right;
    font-weight: 900;
    white-space: nowrap; /* Cegah teks turun ke bawah */
}

.coin-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.coin-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.coin-value {
    color: #a0522d;
    font-size: 1.2rem;
    font-family: "Arial Black", sans-serif;
}

/* Current User Row Highlight */
.current-user-row td {
    background-color: #fff9c4 !important;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #91bd35;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: white !important;
    font-family: "Arial Black", sans-serif;
    font-size: 11px;
    gap: 4px;
    background: transparent !important;
    border: 2px solid white;
    padding: 10px 5px;
    border-radius: 40px;
    min-width: 75px;
    height: 60px;
    transition: all 0.2s ease;
}

.nav-item span {
    display: block;
    line-height: 1;
}

.nav-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem !important;
    }
    
    .leaderboard-table td, .leaderboard-table th {
        padding: 10px 8px;
    }
    
    .user-name {
        font-size: 0.9rem;
    }
    
    .coin-value {
        font-size: 1rem;
    }
}
