/* ====== Global Reset ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* ====== Body ====== */
body {
    min-height: 100vh;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
    color: #fff;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    overflow-y: scroll;
}

/* ====== Navbar ====== */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo img {
    height: 50px;
}

#rightLogo {
    height: 80px;
}

/* ====== Title Section (Logo + Main Title) ====== */
.title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    text-align: center;
}

.title-section img {
    width: 120px;
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ====== Leaderboard Container ====== */
.wrap {
    /* transform: scale(0.7); */
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    animation: fadeIn 1s ease;
    margin: 2rem auto;
    
}

/* ====== Header ====== */
.leader h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ====== Leaderboard Card ====== */
.card {
    width: 100%;
}

.list {
    list-style: none;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 10px 0;
    padding: 0.9rem 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.item:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.1);
}

/* ====== Rank Styling ====== */
.rank {
    font-size: 1.4rem;
    font-weight: 700;
    width: 40px;
    text-align: center;
}

/* ====== Name & Score ====== */
.meta .name {
    font-size: 1.2rem;
    font-weight: 500;
}

.score {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ====== Top Ranks Highlight ====== */
.top {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.top .rank {
    color: #fff;
}

/* ====== Footer ====== */
.footer {
    bottom: 0;
    position: fixed;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1rem 0;
    z-index: 10;
}

.footer-content p {
    font-size: 0.9rem;
    color: #ddd;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* ====== Animations ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Responsive ====== */
@media (max-width: 600px) {
    .logo img {
        height: 30px;
    }

    #rightLogo {
        height: 55px;
    }

    .title-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .title-section img {
        width: 90px;
    }

    .main-title {
        font-size: 2rem;
    }

    .score {
        font-size: 1rem;
    }

    .wrap {
        padding: 1.5rem;
        margin-bottom: 40px;
    }

    .leader h1 {
        font-size: 1.8rem;
    }

    .item {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }

    .rank,
    .meta .name,
    .score {
        font-size: 1rem;
    }
}