@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@500;700;800&display=swap');

html {
    --bg: #202020;
    --fg: #303030;
    --lighterfg: #404040;
    --lightererfg: #505050;
    --evenlighterfg: #606060;
    --waylighterfg: #707070;
    --lightestfg: #808080;

    --lato: Lato, Arial, Helvetica, sans-serif;
    --opensans: 'Open Sans', --lato;

    --emojired: #DD2E44;
    --emojiyellow: #F4900C;
    --emojigreen: #77B255;
    --emojiblue: #3B88C3;
    --emojipurple: #9266CC;

    --defaultrolecol: #dddddd;

    --colon: #ff8000;
    --polarisgreen: #00e6a0;
    --cyanbutton: #67d9f5;
    --turquoisebutton: #2ed6b2;

    --sliderwidth: 60px;
    --sliderheight: 32px;
    --sliderpadding: 4px;

    height: 100%;
}

body {
    background-color: var(--bg);
    margin: 0px 0px;
    overflow-x: hidden;
}

#bgBlur {
    position: fixed;
    inset: -160px;
    background-image: url('https://cdn.discordapp.com/icons/1093864130030612521/aaa49d9f23bce2e8b18a417cfab2b72a.png?size=512');
    background-size: cover;
    background-position: center;
    filter: blur(160px) saturate(0.9);
    opacity: 0.14;
    z-index: -1;
    pointer-events: none;
}

p, h1, h2, button {
    font-family: var(--lato);
    color: white;
}

p {
    font-size: 18px;
    margin: 12px 0px;
    line-height: 28px;
}

h1, h2 {
    font-family: var(--opensans);
    font-weight: 800;
    font-size: 36px;
    margin-top: 5px;
    margin-bottom: 5px;
}

h2 {
    margin-top: 26px;
    margin-bottom: 3px;
    font-size: 22px;
}

a {
    color: aqua !important;
}

input, select, textarea {
    font-family: var(--lato);
    background-color: var(--evenlighterfg);
    border: 1px solid black;
    border-radius: 4px;
    height: 40px;
    font-size: 18px;
    padding-left: 10px;
    color: white;
    width: 350px;
}

input[type="number"] {
    width: 125px;
}

input::placeholder, textarea::placeholder {
    color: white;
    opacity: 50%;
}

input[disabled] {
    cursor: not-allowed;
    background-color: var(--waylighterfg);
}

input[type="file"]::file-selector-button {
    font-family: var(--lato);
    background-color: var(--waylighterfg);
    color: white;
    border: none;
    border-radius: 4px;
    height: 32px;
    padding: 0px 14px;
    margin-right: 12px;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--lighterfg);
}

.lineinput {
    border: none;
    background: none;
    border-bottom: 1px solid white;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 0px 0px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
}

select option:disabled {
    color: #999999;
}

select option {
    background-color: var(--bg);
}

button {
    font-family: var(--lato);
    min-width: 100px;
    height: 40px;
    padding: 0px 15px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--cyanbutton);
    color: #09252b;
}

button:hover { filter: brightness(115%) }
button:active { filter: brightness(125%) }

button:disabled {
    cursor: not-allowed;
    opacity: 50%;
    filter: saturate(50%);
}

.fancybutton {
    font-family: var(--opensans);
    background-color: rgba(0, 0, 0, 0);
    border: 2px solid var(--polarisgreen);
    transition-duration: 0.25s;
    height: 50px;
    min-width: 140px;
    padding: 5px 20px;
}

.fancybutton:hover, .fancybutton:focus-visible {
    background-color: var(--polarisgreen);
    color: black;
}

.boringbutton {
    font-family: var(--opensans);
    background-color: rgba(0, 0, 0, 0);
    border: none;
    font-weight: 400;
    opacity: 66%;
}

.boringbutton:hover, .boringbutton:focus-visible {
    opacity: 100%;
}

textarea {
    width: 600px;
    height: 200px;
    padding-top: 8px;
    max-width: 100%;
    max-height: 700px;
}

.codeArea {
    font-family: monospace;
    font-size: 16px;
}

.colInputPreview {
    height: 40px;
    width: 40px;
    border: 1px solid black;
    border-radius: 4px;
    background-color: var(--polarisgreen);
    cursor: pointer;
}

.hiddenColInput {
    width: 0px;
    margin: 0px 0px;
    padding: 0px 0px;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.canfocus:focus-visible, input:focus, button:focus-visible, textarea:focus, select:focus, input[type=range]:focus-visible,
[contenteditable]:focus, #sidebar .category:focus-visible, .flexTable div p:focus-visible, .colInputPreview:focus-visible,
.leaderboardSlot.canManage:focus-visible {
    outline: 2px solid var(--colon);
}

.slider {
    position: relative;
    display: inline-block;
    width: var(--sliderwidth);
    height: var(--sliderheight);
}

.slider:has(> input:disabled) {
    opacity: 33%;
}

.slider input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider:focus-within {
    outline: 2.5px solid white;
    border-radius: 420px;
}

.popup {
    position: fixed; 
    display: none; 
    width: 100%;
    height: 100%;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.66);
    z-index: 2;
    text-align: center;
}

.popupbox {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popupbox .box {
    width: 650px;
}

.popupConfirm {
    font-size: 22px;
    height: 50px;
    width: 150px;
    margin: 20px 7px 0px 7px;
}

.sliderspan {
    position: absolute;
    cursor: pointer;
    margin: 0px 0px !important;
    top: 0; left: 0; right: 0; bottom: 0; 
    background-color: #aaaaaa;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    border-radius: 420px;
}
  
.sliderspan:before {
    position: absolute;
    content: "";
    height: calc(var(--sliderheight) - var(--sliderpadding) );
    width: calc(var(--sliderheight) - var(--sliderpadding) );
    left: var(--sliderpadding);
    bottom: calc(var(--sliderpadding) * 0.5);
    background-color: white;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    border-radius: 420px;
}
  
input:checked + .sliderspan {
    background-color: var(--colon);
}
  
input:checked + .sliderspan:before {
    transform: translateX(calc(var(--sliderwidth) - var(--sliderheight) - (var(--sliderpadding))));
}

.box {
    background: rgba(18, 18, 18, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 10px 20px 30px 20px;
    margin: 20px 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.details {
    font-size: 16px;
    opacity: 70%;
    margin-bottom: 5px;
    margin-top: 0px;
}

.settingBox {
    width: 600px;
    max-width: 100%;
    box-sizing: border-box;
    height: fit-content;
}

.settingBox h2:first-child {
    margin-top: 12px;
}

.categoryBox {
    cursor: pointer;
    width: 379px;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 150px;
    height: auto;
    padding: 10px 20px;
    transition-duration: 0.1s;
}

.categoryBox:hover, .categoryBox:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
}

.categoryBox h2 {
    margin-top: 6px !important;
}

.categoryBox .details {
    height: auto !important;
    min-height: 56px;
}

.categoryBox .categoryIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 18px;
    color: var(--polarisgreen);
}

.categoryBox .categoryIcon img, .categoryBox .categoryIcon svg {
    height: 42px;
    width: 42px;
    opacity: 100%;
}

.categoryBox .categoryIcon img.serverIcon {
    height: 50px;
    width: 50px;
}

.serverSwitchButton {
    background-color: var(--cyanbutton);
}

.rankingButton {
    background-color: var(--turquoisebutton);
}

.fulllength {
    width: 1260px;
    max-width: 100%;
    box-sizing: border-box;
}

.settingBreak {
    width: 100%;
}

.centerflex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.simpleflex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
}

.middleflex {
    display: flex;
    justify-content: center;
    align-items: center
}

.spacedflex * {
    margin-right: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.bottomBar {
    position: absolute;
    bottom: 3px;
    left: 15px;
}

.multiplierDescription {
    opacity: 100%;
    margin-top: 10px;
    height: 42px;
    width: 420px;
    max-width: 100%;
    box-sizing: border-box;
}

#header {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    background-color: var(--fg);
    height: 50px;
    border-bottom: 1px solid black;
    z-index: 1;
    overflow: hidden;
}

#header div {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0px 25px;
    cursor: pointer;
}

#header div:focus-visible {
    outline: none;
}

#header h2 {
    margin: 0px 0px;
    font-size: 18px;
    font-weight: 700;
    transition-duration: 0.1s;
}

#header div:hover h2, #header div:focus-visible h2 {
    color: var(--polarisgreen);
}

#header div:focus-visible h2 {
    text-decoration: underline;
}

#header img {
    height: 70%;
    width: 36px;
    margin-right: 12px;
}

#header a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    width: 100%;
    height: 100%;
}

#sidebar {
    position: fixed;
    top: 68px;
    left: 0px;
    display: flex;
    flex-direction: column;
    width: 240px;
    height: calc(100% - 68px);
    padding: 0px;
    margin: 0px;
    background-color: var(--fg);
    border-right: 1px solid black;
    overflow: hidden;
    white-space: nowrap;
    z-index: 2;
}

#sidebar .categoryList {
    flex: 1;
    min-height: 0px;
    overflow-y: auto;
    padding: 10px 0px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#sidebar .categoryList::-webkit-scrollbar {
    display: none;
    width: 0px;
}

#sidebar .category {
    height: 56px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 0px 26px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition-duration: 0.1s;
    transition-property: background-color, color;
}

#sidebar .category:focus-visible {
    background: rgba(255, 255, 255, 0.05);
}

#sidebar .category:hover {
    background-color: var(--evenlighterfg) !important;
    color: white;
}

#sidebar .category.current {
    color: var(--polarisgreen);
    font-weight: bold;
    background-color: var(--lighterfg);
    box-shadow: inset 3px 0px 0px var(--polarisgreen);
}

#sidebar .category img, #sidebar .category svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 75%;
}

#sidebar .category img.serverIcon {
    width: 28px;
    height: 28px;
    opacity: 100%;
}

#sidebar .category:hover img, #sidebar .category:hover svg,
#sidebar .category.current img, #sidebar .category.current svg {
    opacity: 100%;
}

#sidebar .category p {
    margin: 0px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--opensans);
    overflow: hidden;
    text-overflow: ellipsis;
}

#unsavedWarning {
    position: fixed;
    display: flex;
    pointer-events: none;
    justify-content: center;
    z-index: 2;
    width: 100%;
    height: 50px;
    bottom: 10px;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    transition-property: transform;
    transform: translateY(60px);
}

#unsavedWarning.activeWarning {
    transform: translateY(0px);
    pointer-events: all;
}

.unsavedBox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 0px 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.unsavedBox button {
    height: 34px;
    width: 69px;
}

.configboxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-left: 240px;
    box-sizing: border-box;
    max-width: 100%;
}

.configboxes > .settingBox {
    min-width: 0;
}

.sideoption {
    width: 600px;
    max-width: 100%;
    box-sizing: border-box;
}

.optionRow {
    margin-bottom: 16px;
}

.curvefield p {
    margin-left: 4px;
    margin-right: 15px;
}

.desmos {
    width: 512px;
    height: 512px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.flexTable {
    overflow-y: auto;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: min-content;
    max-width: 100%;
    max-height: 750px;
}

.flexTable div p {
    padding: 7px 50px 7px 10px;
    margin: 0px 0px;
    border: 1px solid black;
    background-color: var(--lighterfg);
    white-space: nowrap;
    overflow: hidden;
}

.flexTable div p:nth-child(2n) {
    background-color: var(--lightererfg);
}

.longname {
    text-overflow: ellipsis;
    overflow: hidden;
}

.deleteRow {
    text-align: center;
    padding-left: 0px !important;
    padding-right: 0px !important;
    cursor: pointer;
}

#rewards div p:hover:not(:first-child) { background-color: var(--waylighterfg); }

.deleteRow:hover { background-color: var(--emojired) !important }

.toggleRow:hover {
    cursor: pointer;
    background-color: var(--emojiblue) !important;
}

.varList select {
    width: 120px;
    margin-right: 10px;
}

.serverOption {
    height: 90px;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    max-width: 850px;
    min-width: 500px;
    background-color: var(--lighterfg);
    border: 1px solid black;
    border-radius: 8px;
    margin: 0px auto 3px auto;
    padding: 0px 10px;
    overflow: hidden;
    cursor: pointer;
    transition-duration: 0.1s;
}

.serverOption:hover, .serverOption:focus-visible {
    background-color: var(--lightererfg);
}

.serverOption img[sv=icon] {
    height: 65px;
    border-radius: 420px;
    margin-left: 10px;
    margin-right: 20px;
}

.serverOption p {
    margin: 4px 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 600px;
}

.serverOption .serverIcons img {
    cursor: pointer;
    height: 48px;
}

.serverOption .serverIcons a {
    transition-duration: 0.1s;
    border-radius: 5px;
    padding: 5px 5px;
    margin: 5px 5px;
    display: none;
}

.serverOption .serverIcons a:hover, .serverOption .serverIcons a:focus-visible {
    transform: scale(1.1);
}

.serverBreak {
    height: 30px;
}

.leaderboardBox {
    width: 90%;
    min-width: unset;
    max-width: 1100px;
    background: rgba(18, 18, 18, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    padding: 6px 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.leaderboardSlot {
    height: auto;
    min-height: 96px;
    width: 100%;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    transition-duration: 0.15s;
    transition-property: background-color, transform;
}

.leaderboardSlot .mainInfo {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.roleTierIcon {
    height: 42px;
    width: 42px;
    flex-shrink: 0;
    margin-left: 6px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
    transition-duration: 0.15s;
    transition-property: opacity;
}

.roleTierIcon svg {
    height: 100%;
    width: 100%;
    display: block;
}

.leaderboardSlot:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboardSlot.canManage {
    cursor: pointer;
}

.leaderboardSlot.isSelf {
    background: linear-gradient(90deg, rgba(0, 255, 128, 0.14), rgba(59, 136, 195, 0.1));
}

.leaderboardSlot.canManage:hover, .leaderboardSlot.canManage:focus-visible {
    background-color: rgba(255, 255, 255, 0.07);
}

.hideFromLeaderboard:hover {
    color: yellow !important;
    opacity: 100% !important;
    font-weight: bold !important;
}

.highlightedSlot {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-bottom: none !important;
}

.plsLogIn {
    display: none;
    text-align: center;
    margin-bottom: 20px;
    color: aqua;
}

.leaderboardSlot p {
    font-size: 20px;
    margin: 4px 0px;
    white-space: nowrap;
}

.leaderboardSlot h2[lb=rank] {
    margin: 0px 0px;
    width: 60px;
    text-align: center;
    font-family: var(--opensans);
    opacity: 75%;
}

.leaderboardSlot.rank-1 h2[lb=rank] { color: #ffd76b; opacity: 100%; }
.leaderboardSlot.rank-2 h2[lb=rank] { color: #d8d8e0; opacity: 100%; }
.leaderboardSlot.rank-3 h2[lb=rank] { color: #e3a26a; opacity: 100%; }

.leaderboardSlot.notInServer .generalInfo p {
    text-decoration: line-through;
    font-weight: normal !important;
    opacity: 66%;
}

@media (max-width: 900px) {
    #everything,
    .configboxes,
    .configboxes > .settingBox,
    .box,
    .settingBox {
        max-width: 100%;
        box-sizing: border-box;
    }

    .configboxes {
        width: 100%;
        overflow: hidden;
    }

    .settingBox {
        height: auto !important;
    }

    .simpleflex,
    .centerflex,
    .spacedflex {
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
    }

    .sideoption,
    .sideoptions {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    input[type="file"] {
        width: 100% !important;
        height: auto;
        min-height: 40px;
        padding-top: 8px !important;
    }

    button {
        max-width: 100%;
        min-height: 40px;
        height: auto;
        white-space: normal;
    }

    .exportXP,
    .hideOnLoad,
    .confirmReset,
    .confirmResetSettings {
        display: block;
        margin: 8px 0px 0px 0px !important;
    }

    .spacedflex > * {
        margin-right: 0px;
    }

    .spacedflex {
        gap: 10px;
    }

    .field,
    .varList,
    .curvefield {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .curvefield {
        gap: 6px;
    }

    .curvefield p {
        margin-left: 0px;
        margin-right: 0px;
    }

    .varList select {
        width: 100% !important;
        margin-right: 0px;
        margin-bottom: 8px;
    }

    .flexTable {
        width: 100%;
    }

    #importBotSection .centerflex,
    #importBotSection .spacedflex {
        align-items: flex-start;
    }

    #importBotSection input,
    #importBotSection select {
        width: 100% !important;
    }

    .leaderboardSlot {
        flex-wrap: wrap;
        row-gap: 12px;
        padding: 14px 10px;
    }

    .leaderboardSlot .mainInfo,
    .leaderboardSlot .xpSection {
        width: 100% !important;
        margin-right: 0px !important;
        box-sizing: border-box;
    }

    .leaderboardSlot .mainInfo {
        min-width: 0px;
    }

    .leaderboardSlot .generalInfo {
        min-width: 0px;
        overflow: hidden;
    }

    .leaderboardSlot .generalInfo p,
    .leaderboardSlot p[lb=role] {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .leaderboardSlot h2[lb=rank] {
        font-size: 22px;
        width: 40px;
    }

    .leaderboardSlot .lbAvatar {
        height: 48px !important;
        width: 48px !important;
        margin-right: 12px !important;
    }

    .leaderboardSlot p {
        font-size: 16px;
    }
}

.progressBar {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
    position: relative;
}

.progressBar .progress {
    height: 100%;
    border-radius: 999px;
    position: relative;
    background: linear-gradient(90deg, var(--polarisgreen), var(--emojiblue));
    transition-duration: 0.3s;
    transition-property: width;
}

.xpLabel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0px 0px 8px 0px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}

.xpLabel p[lb=percent] {
    font-weight: normal;
    opacity: 70%;
    margin-left: 8px;
}

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

.editIcon {
    height: 18px;
    opacity: 70%;
    cursor: pointer;
    display: none;
}

.leaderboardSlot p[lb=multiplier] {
    font-size: 15px;
}

.accountBox p {
    font-size: 22px;
}

.discordCard {
    position: relative;
    width: calc(100% + 34px);
    margin: -7px -17px 20px -17px;
    background: var(--lighterfg);
    border-radius: 19px 19px 14px 14px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.discordBanner {
    width: 100%;
    height: 360px;
    background-color: var(--fg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.discordBanner.noBanner {
    height: 220px;
    background-image: linear-gradient(135deg, var(--polarisgreen), var(--emojiblue));
}

.discordBanner.noBanner::before {
    content: "";
    position: absolute;
    inset: 0px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: 30%;
}

.discordBanner.noBanner::after {
    content: "";
    position: absolute;
    inset: 0px;
    background: radial-gradient(circle at 10% 130%, rgba(0, 0, 0, 0.4), transparent 65%);
}

.discordAvatar {
    position: absolute;
    left: 26px;
    top: 300px;
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--lighterfg);
    border: 5px solid var(--lighterfg);
    z-index: 1;
}

.discordBanner.noBanner ~ .discordAvatar {
    top: 165px;
}

.discordHeader {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 24px 20px 166px;
}

.discordStatusRow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 8px;
}

.discordInlineXP {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 160px;
    max-width: 280px;
}

.discordInlineXP .progressBar {
    flex: 1;
    height: 8px;
}

.discordInlineXP span[lb=percent] {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: white !important;
    white-space: nowrap;
}

.discordXPLine {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: white !important;
    opacity: 100%;
    margin: 0px 0px !important;
}

.rankBadge {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.rankBadge svg {
    height: 15px;
    width: 15px;
    flex-shrink: 0;
    color: #ffd76b;
}

.rankBadge span {
    font-family: var(--opensans);
    font-size: 14px;
    font-weight: 800;
    color: white;
    white-space: nowrap;
}

.rankBadgeDivider {
    height: 12px;
    width: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.rankBadge [lb=rankBadgePercent] {
    color: var(--polarisgreen) !important;
    font-weight: 700 !important;
}

.discordHeader .generalInfo {
    overflow: hidden;
}

.discordHeader .generalInfo p {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discordName {
    font-weight: 800 !important;
    font-size: 26px !important;
    color: white !important;
    margin: 0px 0px 10px 0px !important;
}

.discordStatusPill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.discordStatusPill svg {
    height: 16px;
    width: 16px;
    flex-shrink: 0;
    color: var(--polarisgreen);
}

.discordStatusPill p {
    margin: 0px 0px !important;
    font-size: 15px !important;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85) !important;
}

.statGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

.statBox {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 0px;
    flex: 1 1 260px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 20px;
}

.statBox .statRow:not(:last-child) {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.statBox .statLabel {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 60%;
    margin: 0px 0px 4px 0px !important;
}

.statBox .statValue {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0px 0px !important;
}

.statValue.accent-green {
    color: var(--polarisgreen);
}

.statValue.accent-blue {
    color: #6bb7ff;
}

.emptyLbBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
    min-width: unset;
    max-width: 1100px;
    margin: auto;
}

.hiddenMemberSlot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    border-radius: 14px;
    width: 275px;
    height: 140px;
    overflow: hidden;
    margin: 10px 10px;
    transition-duration: 0.15s;
    transition-property: background-color;
}

.hiddenMemberSlot:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hiddenMemberSlot p[lb="unhide"] {
    width: fit-content;
    margin: auto;
    padding: 5px 20px;
    font-size: 20px;
    font-weight: bold;
    color: var(--polarisgreen);
    cursor: pointer;
    text-decoration: underline; 
}

.lbLayout {
    width: 100%;
}

.lbSidebar {
    position: fixed;
    top: 68px;
    left: 0px;
    display: flex;
    flex-direction: column;
    width: 240px;
    height: calc(100% - 68px);
    padding: 0px;
    margin: 0px;
    background-color: var(--fg);
    border-right: 1px solid black;
    border-radius: 0px;
    z-index: 2;
}

.lbSidebarNav {
    flex: 1;
    min-height: 0px;
    overflow-y: auto;
    padding: 10px 0px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lbSidebarNav::-webkit-scrollbar {
    display: none;
    width: 0px;
}

.lbNavItem {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    height: 56px;
    min-width: unset;
    padding: 0px 26px;
    border: none;
    border-radius: 0px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--opensans);
    font-weight: 700;
    font-size: 15px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition-duration: 0.1s;
    transition-property: background-color, color;
}

.lbNavItem img, .lbNavItem svg {
    height: 22px;
    width: 22px;
    flex-shrink: 0;
    opacity: 75%;
}

.lbNavItem:not(.selectedlb):hover, .lbNavItem:not(.selectedlb):focus-visible {
    background-color: var(--evenlighterfg) !important;
    color: white;
}

.lbNavItem.selectedlb {
    background-color: var(--lighterfg);
    color: var(--polarisgreen);
    box-shadow: inset 3px 0px 0px var(--polarisgreen);
}

.lbNavItem.selectedlb img, .lbNavItem.selectedlb svg {
    opacity: 100%;
}

.lbContent {
    box-sizing: border-box;
    margin-left: 240px;
    padding: 0px 30px 20px 20px;
}

.lbSidebarUser {
    margin-top: auto;
    padding: 10px 14px;
    border-top: 1px solid black;
}

.sidebarUserButton {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: unset;
    height: auto;
    padding: 6px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition-duration: 0.15s;
    transition-property: background-color;
}

.sidebarUserButton:hover, .sidebarUserButton:focus-visible {
    background-color: var(--evenlighterfg);
}

.sidebarUserButton img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebarUserInfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.sidebarUserInfo span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebarUserInfo #username {
    font-family: var(--opensans);
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.sidebarUserInfo .userRole {
    font-size: 12px;
    opacity: 65%;
    margin-top: 1px;
    border-left: none !important;
    padding-left: 0px !important;
    margin-left: 0px !important;
}

.userDropdown.sidebarUserDropdown {
    top: auto;
    bottom: calc(100% + 10px);
    left: 0px;
    right: auto;
    min-width: 100%;
}

#uhoh #errorhelp {
    display: none;
    opacity: 50%;
    font-size: 16px;
    margin-top: 0px
}

#uhoh #loginbutton {
    display: none;
    background-color: var(--emojipurple);
    margin-top: 5p
}

.coolthing {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.coolthing div {
    width: 450px;
    padding: 0px 50px;
    margin: 0px 20px;
}

.coolthing .coolimage img {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    width: 450px;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

.coolthing .coolimage img:hover {
    transform: scale(1.2);
}

.coolthing .cooltext {
    min-width: 350px;
}

.coolthing .cooltext p {
    opacity: 75%;
}

.red { color: red }

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0px 30px;
    background: rgba(32, 32, 32, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbarLeft {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0px;
}

.hamburgerBtn {
    display: none;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    min-width: unset;
    padding: 0px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
}

.hamburgerBtn:hover, .hamburgerBtn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.hamburgerBtn svg {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
}

.sidebarBackdrop {
    display: none;
    position: fixed;
    inset: 68px 0px 0px 0px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebarBackdrop.open {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 900px) {
    .hamburgerBtn {
        display: flex;
    }

    .sidebarBackdrop {
        display: block;
    }

    .lbSidebar, #sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
    }

    .lbSidebar.open, #sidebar.open {
        transform: translateX(0px);
    }

    .lbContent, .configboxes {
        margin-left: 0px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .configboxes > .settingBox {
        width: 100%;
        margin-left: 0px;
        margin-right: 0px;
    }

    #serverInfo > .settingBox:first-child {
        align-items: stretch !important;
        flex-direction: column;
        gap: 20px !important;
        padding: 18px 20px !important;
    }

    #serverInfo > .settingBox:first-child > .centerflex:first-child {
        width: 100%;
    }

    #serverInfo > .settingBox:first-child .serverName {
        max-width: 100%;
        font-size: 30px;
    }

    #serverInfo > .settingBox:first-child > .middleflex {
        width: 100%;
        flex-direction: column;
        gap: 12px !important;
    }

    #serverInfo > .settingBox:first-child > .middleflex a,
    .serverSwitchButton,
    .rankingButton {
        width: 100% !important;
        max-width: 320px;
    }

    .categoryBox {
        width: 100%;
        min-height: 150px;
        height: auto;
        padding: 16px 20px;
    }

    .categoryBox h2 {
        font-size: 21px;
        line-height: 1.2;
    }

    .categoryBox p {
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .topbar {
        height: 62px;
        padding: 0px 14px;
    }

    .sidebarBackdrop {
        inset: 62px 0px 0px 0px;
    }

    .configboxes {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .box {
        border-radius: 14px;
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    h2 {
        font-size: 21px;
        line-height: 1.25;
    }

    p {
        font-size: 16px;
        line-height: 1.55;
    }

    .categoryBox .centerflex {
        align-items: flex-start;
    }

    .categoryBox .categoryIcon {
        margin-top: 4px;
        margin-right: 14px;
    }

    .categoryBox .categoryIcon img,
    .categoryBox .categoryIcon svg {
        height: 36px;
        width: 36px;
    }

    .categoryBox .details {
        min-height: 0;
    }

    .topbarBrand span {
        display: none;
    }
}

.topbarBrand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.topbarBrand img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
}

.topbarBrand span {
    font-family: var(--opensans);
    font-weight: 800;
    font-size: 18px;
    color: white;
}

.userMenu {
    position: relative;
}

.userMenuButton {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    min-width: unset;
    padding: 4px 14px 4px 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition-duration: 0.2s;
    transition-property: background, border-color;
}

.userMenuButton:hover, .userMenuButton:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
}

.userMenuButton img {
    height: 34px;
    width: 34px;
    border-radius: 50%;
}

.userMenuButton span {
    font-family: var(--opensans);
    font-weight: 700;
    font-size: 15px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .lbContent {
        width: 100%;
        padding: 0px 10px 20px !important;
        overflow-x: hidden;
    }

    .leaderboardBox {
        width: 100%;
        padding: 6px 8px;
        border-radius: 16px;
    }

    .leaderboardSlot {
        align-items: stretch;
        gap: 10px;
        padding: 14px 8px;
    }

    .leaderboardSlot .mainInfo,
    .leaderboardSlot .xpSection {
        width: 100% !important;
        min-width: 0;
        margin-right: 0px !important;
    }

    .leaderboardSlot .mainInfo {
        align-items: center;
    }

    .leaderboardSlot .generalInfo,
    .leaderboardSlot .mainInfo > div:last-child {
        min-width: 0;
        flex: 1;
    }

    .leaderboardSlot .generalInfo p,
    .leaderboardSlot p[lb="role"],
    .leaderboardSlot p[lb="level"] {
        white-space: normal;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    .leaderboardSlot .xpLabel,
    .leaderboardSlot .xpLabel > p {
        white-space: normal;
        overflow-wrap: anywhere;
        min-width: 0;
    }

    .leaderboardSlot .xpLabel {
        display: block;
        line-height: 1.35;
    }

    .leaderboardSlot .xpLabelRight {
        display: flex;
        justify-content: flex-start;
        margin: 4px 0px 0px 0px;
        text-align: left;
    }

    .leaderboardSlot .lbAvatar {
        flex-shrink: 0;
    }

    .discordCard {
        width: 100%;
        margin: 0px 0px 20px 0px;
        border-radius: 16px;
    }

    .discordBanner {
        height: 230px;
    }

    .discordBanner.noBanner {
        height: 170px;
    }

    .discordAvatar,
    .discordBanner.noBanner ~ .discordAvatar {
        left: 18px;
        top: 162px;
        height: 104px;
        width: 104px;
    }

    .discordBanner.noBanner ~ .discordAvatar {
        top: 102px;
    }

    .discordHeader {
        padding: 62px 18px 18px;
    }

    .discordName {
        font-size: 23px !important;
        overflow-wrap: anywhere;
    }

    .discordStatusRow {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .discordStatusPill,
    .discordInlineXP {
        max-width: 100%;
    }

    .discordInlineXP {
        width: 100%;
        flex: 0 1 auto;
    }

    .discordXPLine {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .rankBadge {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
    }

    .statGrid {
        gap: 10px;
    }

    .statBox {
        flex-basis: 100%;
        max-width: 100%;
        padding: 16px 18px;
    }

    .statBox .statValue {
        overflow-wrap: anywhere;
    }
}

.userMenuButton .userRole {
    font-weight: 600;
    font-size: 12px;
    opacity: 65%;
    max-width: unset;
    padding-left: 8px;
    margin-left: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.userMenuButton svg {
    height: 11px;
    width: 11px;
    opacity: 55%;
    transition-duration: 0.2s;
    flex-shrink: 0;
}

.userMenu.open .userMenuButton svg {
    transform: rotate(180deg);
}

.userDropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0px;
    min-width: 190px;
    background: var(--fg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    padding: 8px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition-duration: 0.15s;
    transition-property: opacity, transform;
}

.userMenu.open .userDropdown {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: all;
}

.userDropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: var(--opensans);
    font-weight: 600;
    font-size: 14px;
    color: white !important;
    text-decoration: none !important;
}

.userDropdown a:hover, .userDropdown a:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: var(--polarisgreen) !important;
}

.userDropdown svg {
    height: 16px;
    width: 16px;
    flex-shrink: 0;
}

.loadingWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: calc(100vh - 68px);
}

.spinner {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--polarisgreen);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.statusPill {
    display: inline-flex;
    align-items: center;
    font-size: 13px !important;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-top: 2px !important;
}

.statusPill.pill-owner {
    color: #ffd76b;
    background: rgba(255, 215, 107, 0.14);
}

.statusPill.pill-mod {
    color: #6bb7ff;
    background: rgba(107, 183, 255, 0.14);
}

.statusPill.pill-member {
    color: #b6b6b6;
    background: rgba(182, 182, 182, 0.12);
}

.previewToggleBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
    text-decoration: none !important;
    font-family: var(--opensans);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition-duration: 0.15s;
    transition-property: background-color, border-color, color;
}

.previewToggleBtn:hover, .previewToggleBtn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.previewToggleBtn svg {
    height: 16px;
    width: 16px;
    flex-shrink: 0;
}

.topbarLoginBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0px 18px;
    border: none;
    border-radius: 999px;
    font-family: var(--opensans);
    font-weight: 700;
    font-size: 14px;
    color: #0b1210;
    text-decoration: none !important;
    cursor: pointer;
    background: linear-gradient(135deg, var(--polarisgreen), var(--emojiblue));
    transition-duration: 0.2s;
    transition-property: transform, filter;
}

.topbarLoginBtn:hover, .topbarLoginBtn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(110%);
}

.topbarLoginBtn svg {
    height: 16px;
    width: 16px;
    flex-shrink: 0;
}

/* @media screen and (max-width: 800px) {
    #sidebar { width: 62px; min-width: 62px; }
    #sidebar p { display: none; }
} */