@font-face {
    font-family: 'ClickHerFont';
    src: url('../../assets/fonts/amorlate.regular.ttf');
}

.TS_background {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    object-fit: cover;
    filter: blur(30px);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.TS_left_container {
    left: 0;
    top: 0;
    width: 40%;
}

.TS_container {
    position: relative;
    flex-grow: 1;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: var(--relative-width);
    min-width: 1350px;
}

.TS_titlecont{
    position: relative;
    width: 100%;
    height: 47%;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 150px;
}

.TS_titlecont img {
    width: 700px;
    object-fit: contain;
}

.TS_container.version-outdated {
    filter: grayscale(100%);
}

.TS_title {
    font-size: 210px;
    font-weight: bold;
    color: white;
}

.TS_buttonscont {
    height: 100%;
    display: block;
    flex-direction: column;
    align-items: center;
    margin-left: 80px;
    justify-content: flex-start;
    flex-shrink: 1;
}

.TS_buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 25px;
    font-family: ClickHerFont, sans-serif;
    margin-right: 45px;
}

.TS_play {
    height: 80px;
    font-weight: bold;
    color: var(--cyan-color);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    margin-bottom: 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 55px;
    transition: all 0.3s ease;
}

.TS_play:hover img,
.TS_collection:hover img,
.TS_settings:hover img,
.TS_install_dlc:hover img {
    opacity: 1;
    transform: scale(1);
}

.TS_play:hover,
.TS_collection:hover,
.TS_settings:hover,
.TS_install_dlc:hover {
    color: var(--pink-color);
    transition: all 0.3s ease;
}

.TS_play img {
    width: 70px;
    height: 70px;
    position: relative;
    right: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.TS_collection {
    height: 80px;
    font-weight: bold;
    color: var(--cyan-color);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    margin-bottom: 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 55px;
    transition: all 0.3s ease;
}

.TS_collection img {
    width: 70px;
    height: 70px;
    position: relative;
    right: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.TS_settings {
    height: 80px;
    font-weight: bold;
    color: var(--cyan-color);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 55px;
    transition: all 0.3s ease;
}

.TS_settings img {
    width: 70px;
    height: 70px;
    position: relative;
    right: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.TS_install_dlc {
    position: absolute;
    bottom: 20px;
    right: 20px;
    height: 60px;
    color: var(--cyan-color);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    transition: all 0.3s ease;
    font-family: ClickHerFont, sans-serif;
    text-wrap: nowrap;
}

.TS_install_dlc img {
    width: 40px;
    height: 40px;
    position: relative;
    right: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

/* Leaderboard Section */

.TS_right_container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45%;
    position: relative;
}

.TS_Leaderboard,
.TS_QuickieLeaderboard {
    /* height: 75%; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    width: 675px;
    transform: translateX(-60px);
    overflow: visible;
    margin-left: 84px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.TS_lb_title {
    font-size: 60px;
    position: relative;
    border-radius: 10px;
    color: var(--pink-color);
    display: flex;
    justify-content: center;
    top: 88px;
    font-family: ClickHerFont, sans-serif;
    margin-left: 19px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.TS_lb_type {
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 103px;
}
.TS_lb_leftarrow {
    height: 80px;
    margin-right: 35px;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.TS_lb_leftarrow::before {
    content: '';
    width: 0;
    height: 0;
    border-right: 30px solid var(--cyan-color);
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    transition: all 0.3s ease;
}
.TS_lb_typetitle {
    height: 80px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Add it here instead */
    width: 225px;
}
.TS_lb_rightarrow {
    height: 80px;
    margin-left: 35px;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.TS_lb_rightarrow::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 30px solid var(--cyan-color);
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    transition: all 0.3s ease;
}
.TS_lb_list {
    width: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    position: relative;
    top: -51px;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    margin-top: 100px;
}

.TS_lb_list[data-type="daily"] {
    display: flex; /* Show only daily by default */
}

.TS_lb_type1 {
    font-size: 45px;
    color: var(--cyan-color);
    font-family: ClickHerFont, sans-serif;
    transition: all 0.3s ease;
}
.TS_lb_typecont {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.TS_scrollarea {
    width: 100%;
    max-height: 487px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-color) transparent;
    transition: all 0.3s ease;
    /* Make sure this can receive pointer events */
    pointer-events: auto;
}
.TS_lb_player {
    height: 100px;
    margin-bottom: 26px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    max-width: 100%;
}
.TS_lb_you {
    height: 100px;
    margin-bottom: 28px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    margin-top: 15px;
    position: relative;
}
.TS_lb_rank {
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 37px;
    color: white;
    font-family: ClickHerFont, sans-serif;
}
.TS_lb_rankfirst {
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
}
.TS_lb_rankfirst img {
    position: relative;
    width: 50px;
    height: 50px;
    margin-left: 5px;
    filter: brightness(0) saturate(100%) invert(72%) sepia(94%) saturate(464%) hue-rotate(354deg) brightness(93%) contrast(102%);
}
.TS_lb_ranksecond {
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
}
.TS_lb_ranksecond img {
    position: relative;
    width: 45px;
    height: 45px;
    margin-left: 5px;
    filter: brightness(0) saturate(100%) invert(90%) sepia(14%) saturate(17%) hue-rotate(326deg) brightness(87%) contrast(88%);
}
.TS_lb_rankthird {
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
}
.TS_lb_rankthird img {
    position: relative;
    width: 40px;
    height: 40px;
    margin-left: 5px;
    margin-top: 5px;
    filter: brightness(0) saturate(100%) invert(61%) sepia(66%) saturate(427%) hue-rotate(347deg) brightness(85%) contrast(87%);
}
.TS_lb_playericon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
    border: 5px solid var(--pink-color);
    border-radius: 50%;
    height: 100px;
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease;
}
.TS_lb_player:nth-child(even) .TS_lb_playericon{
    border: 5px solid var(--cyan-color);
    transition: all 0.3s ease;
}
.TS_lb_playericon img {
    border-radius: 50%;
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.TS_lb_playercont {
    width: 500px;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--pink-color);
    border-radius: 10px;
    margin-left: 20px;
    margin-right: 20px;
    transition: all 0.3s ease;
}
.TS_lb_player:nth-child(even) .TS_lb_playercont{
    background-color: var(--cyan-color);
    transition: all 0.3s ease;
}

.TS_lb_playername {
    height: 100%;
    max-width: 16ch;
    display: flex;
    justify-content: center;
    justify-content: flex-start;
    align-items: center;
    font-size: 28px;
    color: white;
    margin-left: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
}

.TS_lb_playertime{
    width: 25%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: white;
    background-color: rgb(97 97 97 / 40%);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    font-family: ClickHerFont, sans-serif;
}
.TS_lb_playerpoints {
    width: 20%;
    min-width: 30%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: white;
    margin-left: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    font-family: ClickHerFont, sans-serif;
    padding-left: 5px;
    padding-right: 5px;
}
/* Hardcore */

.TS_hardcorebutton {
    font-weight: bold;
    color: var(--cyan-color);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    justify-content: flex-start;
    align-items: center;
    font-size: 55px;
    transition: all 0.3s ease;
    margin-top: 25px;
    display: none;
    text-wrap: nowrap;
    margin-left: 70px;
}

:root {
    --cyan-color: ;
    --pink-color: #FF0080;
    --bn-color: #000000;  /* Blue/black for normal mode */
    --bn-color-rgb: 0, 0, 0; /* Blue/black for normal mode in RGB */
    --rp-color: #FF0080;  /* Red/pink for normal mode */
    --rp-color-rgb: 255, 0, 128; /* Red/pink for normal mode in RGB */
    --wb-color: #ffffff;
    --bw-color: #000000;
}


/* Hardcore button hover states based on mode */
.TS_hardcorebutton.quickie-mode:hover {
    color: #eff214;
}

.TS_hardcorebutton.normal-mode:hover {
    color: #00E5FF;
}

.TS_overlayMedias {
    position: absolute;
    display: flex;
    max-width: 105%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
    padding-right: 15px;
    width: var(--relative-width);
}

.TS_media {
    border-radius: 50%;
    overflow: hidden;
    height: 100px;
    width: 100px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-right: 15px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    z-index: 10000;
}

.TS_media img {
    height: 100%;
}

.TS_media:hover {
    transform: scale(1.15);
}


.warningOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.warnBox {
height: 390px;
    /* background-color: aqua; */
    border: solid 3px rgb(255 255 255);
    border-radius: 40px;
    width: 750px;
    background-color: rgb(0 0 0 / 30%);
    color: rgb(255 255 255);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.warnTitle {
    margin-top: 15px;
    font-size: 46px;
}

.warnText {
    margin-top: 57px;
    font-size: 26px;
    margin-left: 20px;
    margin-right: 20px;
}

.warnButton {
border: solid 3px #000000;
    background: #000000;
    color: #ffffff;
    padding: 5px;
    border-radius: 8px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: row;
    cursor: pointer;
}

.warnButton:hover {
    background: #ffffff;
    color: rgb(0, 0, 0);
    transition: all 0.3s ease-in-out;
    transform: scale(1.85);
}

/* Toggle Knob for DLC/Leaderboard */
.TS_toggle_knob {
    position: absolute;
    width: 250px;
    height: 100px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--bn-color);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    transition: all 0.3s ease;
    top: 10px;
    left: 290px;
    z-index: 1000;
}

.TS_toggle_knob:hover {
    border-color: var(--rp-color);
    box-shadow: 0 0 15px var(--bn-color);
}

.TS_toggle_knob_handle {
    position: absolute;
    left: 3px;
    width: 120px;
    height: 88px;
    background: var(--bn-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 2;
}

.TS_toggle_knob.leaderboard-active .TS_toggle_knob_handle {
    left: calc(100% - 123px);
    background: var(--rp-color);
}

.TS_toggle_knob.leaderboard-active{
    border: 2px solid var(--rp-color);
}
.TS_toggle_knob.leaderboard-active:hover {
    border: 2px solid var(--bn-color);
}

.TS_toggle_label_left,
.TS_toggle_label_right {
    position: absolute;
    width: 90px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    z-index: 1;
}

.TS_toggle_label_left img {
    width: 58%;
    filter: brightness(0) saturate(100%) invert(69%) sepia(100%) saturate(1982%) hue-rotate(139deg) brightness(101%) contrast(106%);
    position: relative;
    top: 2px;
    left: 9px;
}
.speedrun-mode .TS_toggle_label_left img { 
    filter: brightness(0) saturate(100%) invert(19%) sepia(50%) saturate(7181%) hue-rotate(262deg) brightness(93%) contrast(95%);
}

.TS_toggle_label_right img {
    width: 92%;
    filter: brightness(0) saturate(100%) invert(16%) sepia(94%) saturate(6461%) hue-rotate(324deg) brightness(105%) contrast(106%);
    position: relative;
    top: 6px;
    right: 10px;
    /* opacity: 1; */
}

.speedrun-mode .TS_toggle_label_right img { 
    filter: brightness(0) saturate(100%) invert(91%) sepia(82%) saturate(1145%) hue-rotate(350deg) brightness(107%) contrast(89%);
}


.TS_toggle_label_left {
    left: 10px;
}

.TS_toggle_label_right {
    right: 10px;
}

.TS_toggle_knob.leaderboard-active .TS_toggle_label_left {
    color: rgba(255, 255, 255, 0.5);
}

.TS_toggle_knob.leaderboard-active .TS_toggle_label_right {
    color: #ffffff;
}

.TS_toggle_knob:not(.leaderboard-active) .TS_toggle_label_left {
    color: #ffffff;
}

/* Auth Overlay for Titlescreen Leaderboard - shared between normal and quickie */
.TS_lb_auth_overlay {
    position: absolute;
    top: 15.5%;
    left: 7.5%;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0); */
    /* backdrop-filter: blur(0px); */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px !important;
    z-index: 1000;
    /* pointer-events: none; */
    height: 800px;
    width: 700px;
    overflow: hidden;
    /* filter: blur(4px); */
    backdrop-filter: blur(5px);
}

.TS_lb_auth_overlay > * {
    pointer-events: auto;
}

.TS_lb_auth_box {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid var(--rp-color);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
    font-family: 'ClickHerFont';
    position: relative;
    right: -2%;
}

.TS_lb_auth_title {
    font-size: 24px;
    font-weight: bold;
    color: var(--bn-color);
    text-align: center;
    margin-bottom: 20px;
}

.TS_lb_auth_tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.TS_lb_auth_tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--bn-color) !important;
}

.TS_lb_auth_tab:hover {
    border-color: var(--bn-color);
}

.TS_lb_auth_tab_active {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--rp-color);
    color: var(--rp-color);
}

.TS_lb_auth_form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.TS_lb_input {
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 14px;
}

.TS_lb_input:focus {
    outline: none;
    border-color: var(--bn-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.TS_lb_button {
    padding: 12px;
    background: var(--bn-color);
    color: black;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.TS_lb_button:hover {
    background: var(--rp-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
}

.TS_lb_error {
    color: #ff4444;
    font-size: 12px;
    text-align: center;
}

.TS_user_buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.TS_profile_button, .TS_logout_button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'ClickHerFont';
}

.TS_profile_button {
    background: transparent;
    color: var(--bn-color);
    border: 2px solid var(--bn-color);
}

.TS_profile_button:hover {
    background: var(--bn-color);
    color: black;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.TS_logout_button {
    position: absolute;
    top: 30px;
    right: 170px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--pink-color);
    border: 2px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'ClickHerFont';
    font-size: 14px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.TS_logout_button:hover {
    background: var(--cyan-color);
    transform: translateY(-2px);
    color: white;
}

.TS_lb_profile_upload {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.TS_lb_profile_preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bn-color);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.TS_lb_profile_preview:hover {
    border-color: var(--rp-color);
    transform: scale(1.1);
}

.TS_lb_profile_preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.TS_lb_profile_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 12px;
    text-align: center;
    padding: 5px;
    color: var(--rp-color);
}

.TS_lb_profile_preview:hover .TS_lb_profile_overlay {
    opacity: 1;
}

/* Demo Version Badge */
.TS_demo_badge {
    position: absolute;
    bottom: -70px;
    right: 50px;
    background: linear-gradient(135deg, var(--rp-color), var(--bn-color));
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'ClickHerFont', sans-serif;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
    letter-spacing: 2px;
}