@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    background: #130e2b;
    color: white;
    overflow-y: auto;
    padding-top: 20px;
}


#back {
    z-index: 100;
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
    background: linear-gradient(to top, #b10f14, #b83b40);
    text-shadow: 3px 3px 1px darkred;
    padding: 10px;
    border-radius: 20%;
    transition: transform 0.2s;
    font-style: italic;
}

#back:hover {
    transform: scale(1.1);
}

#selectors, #leaderboard_wrap {
    width: min(1000px, 90vw);
    margin-left: auto;
    margin-right: auto;
}

#title {
    font-size: 2.5em;
    text-align: center;
}

#selectors {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.label {
    min-width: 90px;
    font-size: 1.2em;
    font-weight: 700;
}

.selector {
    display: flex;
    border: 2px solid #b10f14;
    border-radius: 10px;
    overflow: hidden;
    flex-wrap: wrap;
}

.option {
    border: none;
    padding: 10px 20px;
    font: inherit;
    font-weight: 700;
    color: white;
    background: transparent;
    border-right: 2px solid #b10f14;
    cursor: pointer;
    transition: background 0.1s;
}

.option:last-child {
    border-right: none;
}

.option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.option.active {
    background: linear-gradient(to top, #b10f14, #b83b40);
}

#subtitle {
    margin-bottom: 10px;
    text-align: center;
}

#leaderboard_wrap {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    box-sizing: border-box;
    min-height: 400px;
}

#leaderboard_top {
    display: grid;
    gap: 10px;
}

.lb_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.lb_row:nth-child(1) {
    background: #f95711cc;
    box-shadow: 0 0 15px rgba(255, 180, 80, 0.35);
}

.lb_name {
    font-weight: 600;
}

.lb_meta {
    text-align: right;
}

@media (orientation: portrait) {
    body {
        margin-top: 40px;
    }

    .selector {
        width: 100%;
    }

    .option {
        flex: 1;
    }

    #leaderboard_wrap {
        min-height: 0;
    }

    .lb_row {
        grid-template-columns: 1fr;
    }

    .lb_meta {
        text-align: left;
    }
}