
body {
    margin: 0;
    min-height: 100vh;
    background: #080b16;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: -50%;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(70, 90, 255, 0.35),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(0, 200, 255, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 50% 90%,
            rgba(120, 50, 255, 0.25),
            transparent 40%
        );

    filter: blur(50px);

    animation: backgroundMove 18s ease-in-out infinite alternate;

    z-index: -1;
}

@keyframes backgroundMove {
    0% {
        transform: translate(-5%, -3%) scale(1);
    }

    50% {
        transform: translate(5%, 3%) scale(1.08);
    }

    100% {
        transform: translate(-2%, 6%) scale(1.03);
    }
}

p {
    color: #FFFFFF;
}
h1 {
    color: #FFFFFF;
}

#header { text-align: center; }

#loading { color: #9399b2; }

#leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    width: 60%;
    margin: 0 auto;
}

#pagination {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 10px;
}

#pagination button {
    background-color: rgba(69, 71, 90, 0.5);
    border: 2px solid #313244;
    border-radius: 6px;
    padding: 6px 14px;
    color: #cdd6f4;
    cursor: pointer;
    transition: background-color 0.2s;
}

#pagination button:hover:not(:disabled) {
    background-color: rgba(69, 71, 90, 0.75);
}

#pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#page-indicator {
    font-size: 0.9em;
    color: #a6adc8;
}

.entry {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(69, 71, 90, 0.5);
    border: 1px solid #4f5062;
    border-radius: 8px;
    padding: 12px 16px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.entry.has-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 46, 0.85);
    backdrop-filter: blur(3px) brightness(0.5);
    z-index: 0;
}

.entry.has-banner { background-color: rgba(69, 71, 90, 0.5); }

.entry-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.entry:hover { background-color: rgba(69, 71, 90, 0.75); }
.entry.has-banner:hover::before { background: rgba(30, 30, 46, 0.75); }

.entry.gold {
    border-color: #f1c40f;
    background-color: rgba(241, 196, 15, 0.15);
}
.entry.gold.has-banner::before { background: rgba(241, 196, 15, 0.15); }
.entry.gold:hover { background-color: rgba(241, 196, 15, 0.25); }
.entry.gold.has-banner:hover::before { background: rgba(241, 196, 15, 0.25); }

.entry.silver {
    border-color: #d0d0d0;
    background-color: rgba(255, 255, 255, 0.15);
}
.entry.silver.has-banner::before { background: rgba(255, 255, 255, 0.15); }
.entry.silver:hover { background-color: rgba(255, 255, 255, 0.25); }
.entry.silver.has-banner:hover::before { background: rgba(255, 255, 255, 0.25); }

.entry.bronze {
    border-color: #cd7f32;
    background-color: rgba(205, 127, 50, 0.15);
}
.entry.bronze.has-banner::before { background: rgba(205, 127, 50, 0.15); }
.entry.bronze:hover { background-color: rgba(205, 127, 50, 0.25); }
.entry.bronze.has-banner:hover::before { background: rgba(205, 127, 50, 0.25); }

.entry .rank {
    font-size: 1.1em;
    font-weight: bold;
    min-width: 36px;
    color: #cdd6f4;
}

.entry .name {
    flex: 1;
    font-weight: 600;
    font-size: 1em;
}

.entry .stats {
    display: flex;
    gap: 16px;
    font-size: 0.85em;
    color: #c0c6dc;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#error-message {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(191, 69, 69);
    text-align: center;
}

@media (max-width: 600px) {
    #header p {
        width: 80%;
        margin: 0 auto;
        padding: 10px;
    }

    #leaderboard {
        width: 95%;
    }
}