@import url("../../assets/static/css/text.css");

@font-face {
    font-family: "Good Dog"; font-display: swap;
    src: url("/assets/fonts/gooddog.woff2") format("woff2");
}

.leaderboardpage {
    margin: 0; padding: 24px 52px;
    min-height: 100vh; box-sizing: border-box;
    color: #fff; background: #e9a856;
    background-image: url("/assets/images/bgs/original.avif"); background-size: cover;
    background-position: center; background-attachment: fixed;
    font-family: var(--sitefont,"Good Dog"),"Playpen","Maiyuan","Dongdong",sans-serif; font-size: 24px;
    cursor: url("/assets/images/cursors/idle.cur"), default;
}

.leaderboardpage :is(a,button,input,label) {
    cursor: url("/assets/images/cursors/link.cur"), pointer;
}

.scorepanel {
    max-width: 820px; margin: auto;
    padding: 18px 24px;
}

.scoreheading, .scoresubtitle, .scorebox, .scoreperiod,
.scoredate, .scoretable, .scorestatus {
    -webkit-text-stroke: 0.175em #000; paint-order: stroke fill;
    text-shadow: -0.08em 0.15em 0 #000,0.08em 0.15em 0 #000,0 0.07em 0 #000,0 0.23em 0 #000,-0.057em 0.093em 0 #000,0.057em 0.093em 0 #000,-0.057em 0.207em 0 #000,0.057em 0.207em 0 #000;
}

.scoreheading {
    margin: 0; text-align: center;
    font-size: 36px; font-weight: normal;
}

.scoresubtitle {
    margin: 0 0 18px; text-align: center;
    font-size: 27px;
}

.backlink {
    position: fixed; top: 12px;
    left: 10px; line-height: 0;
}

.scoreboxes {
    display: flex; flex-wrap: wrap;
    gap: 4px; justify-content: center;
}

.scorebox {
    border: 0; border-radius: 14px;
    padding: 4px 9px; font: inherit;
    color: #fff; background: none;
    font-size: 23px; line-height: 1.2;
}

.scorebox[aria-pressed="true"] {border-image-source: url("/assets/images/buttons/gold.webp")}

.scorecontrols {
    display: flex; justify-content: space-between;
    align-items: center; gap: 12px;
    flex-wrap: wrap; margin-top: 20px;
}

.scoreperiod {margin: 0}
.scoredate {
    margin: 4px 0 12px; font-size: 17px;
    opacity: 0.7;
}

.scoretable {
    width: 100%; border-collapse: collapse;
    font-size: 21px; table-layout: fixed;
}
.scoretable th {
    text-align: left; font-weight: normal;
    padding: 5px; font-size: 19px;
}
.scoretable th:first-child {width: 44px}
.scoretable th:last-child {
    text-align: right; width: 42%;
}
.scorerow td {
    padding: 7px 5px; border-top: 1px solid rgba(255,255,255,0.15);
    overflow-wrap: anywhere;
}
.scorevalue {
    text-align: right; font-variant-numeric: tabular-nums;
}
.scorerank {white-space: nowrap}
.scorestatus {
    min-height: 160px; display: flex;
    align-items: center; justify-content: center;
    flex-direction: column; text-align: center;
}
.scoreempty {
    max-width: 180px; height: 120px;
    object-fit: contain;
}
.scorestatus p {margin: 0}
.scorestatus[hidden], .scoretable[hidden] {display: none}

/*//////////////////////////////////////////////////////////////////////*/

@media (max-width: 560px) {
    .leaderboardpage {padding: 58px 10px 12px}
    .scorepanel {padding: 14px 10px}
    .scoreheading {font-size: 38px}
    .scoresubtitle {font-size: 23px}
    .scorebox {
        font-size: 19px; padding: 3px 7px;
    }
    .scoretable {font-size: 21px}
    .scoretable th {font-size: 19px}
    .scoretable th:first-child {width: 44px}
    .scoretable th:last-child {width: 37%}
    }

/*//////////////////////////////////////////////////////////////////////*/

.scorepage, .leaderboardpage {scrollbar-width: none}
.scorepage::-webkit-scrollbar, .leaderboardpage::-webkit-scrollbar {display: none}
.scoreheader {
    margin: -24px -52px 0; padding: 18px 58px;
    background: rgba(0,0,0,0.5);
}
.scoreheading {margin-bottom: 6px}
.scorebox {
    display: inline-flex; align-items: center;
    gap: 4px; min-height: 46px;
    padding: 4px 12px 7px 6px; font-size: 22px;
    --buttonvertical: 12px; --buttonhorizontal: 24px;
}
.scoreboximage {
    width: 44px; height: 44px;
    object-fit: contain;
}
.backlink {z-index: 2}
.backlink img {
    width: 42px; height: 42px;
    object-fit: contain;
}
@media (max-width: 560px) {
    .scoreheader {
        margin: -58px -10px 0; padding: 54px 8px 12px;
    }
    .scoreheading {font-size: 30px}
    .scorebox {
        font-size: 18px; gap: 2px;
        padding: 3px 10px 6px 5px;
    }
    .scoreboximage {
        width: 34px; height: 34px;
    }
}

/*//////////////////////////////////////////////////////////////////////*/

.scoreheader {
    margin: 0 auto 10px; padding: 0 8px;
    background: none;
}
.scorepanel {
    background: rgba(0,0,0,0.5); border-radius: 16px;
}
.scoreboxes {margin-bottom: 12px}
.scorebox {
    font-size: 16px; padding: 6px 12px 8px 8px;
    min-height: 40px; box-sizing: border-box;
}
.scoreboximage {
    width: 28px; height: 28px;
    filter: drop-shadow(0 2px 1px #000);
}
.scoreheading {font-size: 26px}
.scorebox {
    font-size: 14px; min-height: 34px;
    padding: 5px 9px 7px 6px;
}
.scoreboximage {
    width: 23px; height: 23px;
}
