* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@font-face {
    font-family: 'ClickHerFont';
    src: url('../assets/fonts/DKFaceYourFears.ttf') format('truetype');
}

@font-face {
    font-family: 'monsterScheme';
    src: url('../assets/fonts/monsterscheme.otf') format('opentype');
}

:root {
    --edition-ui-text: #D896FF;
    --edition-ui-text-strong: #A855F7;
    --edition-ui-text-muted: #9d7ab8;
    --edition-ui-border: #6D038C;
    --edition-ui-border-strong: #C084FC;
    --edition-ui-shadow-rgb: 109, 3, 140;
    --edition-ui-panel-top: #2d1f4a;
    --edition-ui-panel-mid: #191231;
    --edition-ui-panel-bottom: #0f0a1f;
    --edition-ui-hover-top: #4a2f6e;
    --edition-ui-hover-bottom: #2d1f4a;
    --edition-ui-active-top: #6844a0;
    --edition-ui-active-bottom: #4a2f6e;
    --edition-ui-solid-top: #6D038C;
    --edition-ui-solid-bottom: #4a0260;
    --edition-ui-solid-hover-top: #8e05b8;
    --edition-ui-solid-hover-bottom: #6D038C;
    --edition-ui-disabled-border: #3d2957;
    --edition-ui-disabled-text: #5a4570;
    --edition-ui-overlay: rgba(109, 3, 140, 0.2);
}

html[data-edition="GOLD"] {
    --edition-ui-text: #ffe08a;
    --edition-ui-text-strong: #f0c35a;
    --edition-ui-text-muted: #bda05b;
    --edition-ui-border: #b8891f;
    --edition-ui-border-strong: #f8d57a;
    --edition-ui-shadow-rgb: 184, 137, 31;
    --edition-ui-panel-top: #4a3816;
    --edition-ui-panel-mid: #2f240e;
    --edition-ui-panel-bottom: #171107;
    --edition-ui-hover-top: #6b511f;
    --edition-ui-hover-bottom: #4a3816;
    --edition-ui-active-top: #9c7932;
    --edition-ui-active-bottom: #6b511f;
    --edition-ui-solid-top: #b8891f;
    --edition-ui-solid-bottom: #7a5b12;
    --edition-ui-solid-hover-top: #d1a634;
    --edition-ui-solid-hover-bottom: #b8891f;
    --edition-ui-disabled-border: #5d4720;
    --edition-ui-disabled-text: #8e7441;
    --edition-ui-overlay: rgba(184, 137, 31, 0.2);
}

html[data-edition="DIAMOND"] {
    --edition-ui-text: #d4f7ff;
    --edition-ui-text-strong: #7cecff;
    --edition-ui-text-muted: #88c9d7;
    --edition-ui-border: #2ca8c7;
    --edition-ui-border-strong: #98f3ff;
    --edition-ui-shadow-rgb: 44, 168, 199;
    --edition-ui-panel-top: #17384a;
    --edition-ui-panel-mid: #102634;
    --edition-ui-panel-bottom: #091721;
    --edition-ui-hover-top: #1f5068;
    --edition-ui-hover-bottom: #17384a;
    --edition-ui-active-top: #2f7592;
    --edition-ui-active-bottom: #1f5068;
    --edition-ui-solid-top: #2ca8c7;
    --edition-ui-solid-bottom: #1b6f87;
    --edition-ui-solid-hover-top: #48cfe8;
    --edition-ui-solid-hover-bottom: #2ca8c7;
    --edition-ui-disabled-border: #244b5f;
    --edition-ui-disabled-text: #5b8ea4;
    --edition-ui-overlay: rgba(44, 168, 199, 0.2);
}

.TS_background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: blur(15px);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.TS_background video,
.TS_background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#TS_background_video,
#TS_background_image {
    z-index: 1;
}

#TS_background_overlay {
    z-index: 2;
}

.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{
    width: 100%;
    height: 47%;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 45px;
    position: relative;
}

.TS_titlecont img {
    width: 645px;
    object-fit: contain;
    position: relative;
    left: -172px;
    top: -26px;
    transition: filter 0.25s ease;
}

.TS_titlecont img.TS_logo_gold {
    top: -31px;
    filter: brightness(0) saturate(100%) invert(79%) sepia(54%) saturate(734%) hue-rotate(357deg) brightness(103%) contrast(101%)
        drop-shadow(0 0 14px rgba(255, 201, 94, 0.42));
}

.TS_titlecont img.TS_logo_diamond {
    top: -36px;
    filter: brightness(0) saturate(100%) invert(89%) sepia(21%) saturate(1558%) hue-rotate(152deg) brightness(101%) contrast(102%)
        drop-shadow(0 0 16px rgba(156, 247, 255, 0.4));
}

.TS_titleEdition {
    position: absolute;
    right: 327px;
    bottom: 10px;
    font-family: arial bold;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(109, 3, 140, 0.6);
    display: none;
    text-align: right;
    font-weight: bold;
    color: #f7dfff;
}

.TS_titleEdition_gold {
    right: 432px;
    font-family: 'monsterScheme';
    font-size: 41px;
    color: #ffc95e;
    text-shadow: 0 0 12px rgba(255, 201, 94, 0.6);
}

.TS_titleEdition_diamond {
    right: 415px;
    font-family: 'monsterScheme';
    font-size: 41px;
    color: #9cf7ff;
    text-shadow: 0 0 12px rgba(156, 247, 255, 0.6);
}

.TS_titleEdition_demo {
    right: 358px;
    font-family: 'monsterScheme';
    font-size: 34px;
    color: #ffd6a8;
    text-shadow: 0 0 12px rgba(255, 189, 112, 0.52);
}

.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: monsterScheme, sans-serif;
    margin-right: 45px;
    position: relative;
    left: -94px;
}

.TS_play {
    height: 80px;
    font-weight: bold;
    color: var(--edition-ui-border);
    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_menu_button {
    position: relative;
    padding-left: 62px;
}

.TS_menu_button::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, currentColor 72%, white 28%);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
        linear-gradient(145deg, color-mix(in srgb, var(--edition-ui-panel-top) 82%, black 18%), color-mix(in srgb, var(--edition-ui-panel-bottom) 90%, black 10%));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -3px 6px rgba(0, 0, 0, 0.35),
        0 8px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translate(-16px, -50%) scale(0.85);
    transform-origin: left center;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    pointer-events: none;
}

.TS_menu_button::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    width: 12px;
    height: 16px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    opacity: 0;
    transform: translate(-16px, calc(-50% + 1px)) scale(0.85);
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18)) drop-shadow(0 0 0 rgba(var(--edition-ui-shadow-rgb), 0));
    pointer-events: none;
}

.pause-menu-button-exit.TS_menu_button::before,
.pause-menu-button-exit.TS_menu_button::after {
    top: 30%;
}

.TS_menu_button:hover::before {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
    border-color: color-mix(in srgb, currentColor 82%, white 18%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(var(--edition-ui-shadow-rgb), 0.45),
        0 10px 18px rgba(0, 0, 0, 0.22);
}

.TS_menu_button:hover::after {
    opacity: 1;
    transform: translate(0, calc(-50% + 1px)) scale(1);
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.24)) drop-shadow(0 0 8px rgba(var(--edition-ui-shadow-rgb), 0.45));
}

.TS_play:hover,
.TS_collection:hover,
.TS_settings:hover,
.TS_install_dlc:hover {
    color: rgb(255, 255, 255);
    transition: all 0.3s ease;
}

.TS_collection {
    height: 80px;
    font-weight: bold;
    color: var(--edition-ui-border);
    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_settings {
    height: 80px;
    font-weight: bold;
    color: var(--edition-ui-border);
    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_install_dlc {
    position: absolute;
    bottom: 20px;
    right: 20px;
    height: 60px;
    color: rgb(46 38 79);
    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: flex-end;
    align-items: center;
    width: 45%;
    position: relative;
    left: 96px;
}

.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%);
}


.patreon-panel {
width: 100%;
    max-width: 615px;
    display: flex
    ;
    flex-direction: column;
    /* gap: 18px; */
    margin-top: 105px;
    /* margin-left: -2px; */
    height: 790px;
    --pc-expanded-top-size: 52%;
    align-content: center;
    align-items: center;
}

.pc-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pc-kicker {
    font-family: ClickHerFont, sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    color: #f8d6ff;
}

.pc-sub {
    font-size: 18px;
    color: #dcdcdc;
    opacity: 0.8;
}

.pc-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    align-items: center;
    height: 100%;
    min-height: 0;
    position: relative;
    --pc-expanded-border-color: rgba(255, 201, 94, 0.6);
    width: 444px;
}

.pc-card {
    position: relative;
    border-radius: 6px;
    padding: 0;
    height: 250px;
    /* width: 319px; */
    overflow: hidden;
    border: none;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
    backdrop-filter: none;
    cursor: pointer;
}

.pc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 36px rgba(0, 0, 0, 0.45);
}

.pc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pc-image {
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 0;
    margin: 0;
    border: 0;
    background: transparent;
}

.pc-pill {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f5f5f5;
}

.pc-tier {
    color: #ffe8ff;
    background: rgba(255, 255, 255, 0.1);
}

.pc-title {
    font-size: 16px;
    color: #f7dfff;
    margin-top: 6px;
    opacity: 0.9;
}

.pc-current {
    display: none;
    margin: 6px 0 4px;
    padding: 4px 10px;
    border-radius: 999px;
    width: fit-content;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff5c2;
    border: 1px solid rgba(255, 245, 194, 0.6);
    background: rgba(0, 0, 0, 0.35);
}

.pc-current.active {
    display: inline-flex;
}

.pc-card.pc-current-card {
    box-shadow: 0 0 26px rgba(216, 150, 255, 0.6);
}

.pc-card.pc-current-card .pc-image {
    filter: grayscale(100%) brightness(0.25);
}

.pc-card.pc-current-card::after {
    content: 'Current Version';
    position: absolute;
    top: 32px;
    left: -96px;
    width: 360px;
    padding: 10px 0;
    background: color-mix(in srgb, var(--MMS-patreon-card-color, #8e1ac4) 45%, black 22%);
    color: #f5f1df;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-31deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.38);
    pointer-events: none;
    z-index: 3;
}

.pc-card.pc-current-card.pc-current-base {
    box-shadow: 0 0 26px rgba(142, 26, 196, 0.6);
}

.pc-card.pc-current-card.pc-current-gold {
    box-shadow: 0 0 26px rgba(255, 201, 94, 0.65);
}

.pc-card.pc-current-card.pc-current-diamond {
    box-shadow: 0 0 26px rgba(156, 247, 255, 0.65);
}

.pc-value {
    font-family: ClickHerFont, sans-serif;
    font-size: 34px;
    color: #ffffff;
}

.pc-latest {
    color: #9cf7ff;
}

.pc-diff {
    margin-top: 6px;
    font-size: 14px;
    color: #fff5c2;
}

.pc-new {
    margin-top: 10px;
    font-size: 14px;
    color: #d1e6ff;
    line-height: 1.4;
}

.pc-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.72));
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    justify-content: center;
}

.pc-card:hover .pc-hover {
    opacity: 1;
    pointer-events: auto;
}

.pc-expanded-view {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 6px;
    border: 2px solid var(--pc-expanded-border-color);
    background: linear-gradient(135deg, rgba(12, 12, 12, 0.85), rgba(30, 30, 30, 0.78));
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.5);
    padding: 12px;
    box-sizing: border-box;
    gap: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.42s ease, transform 0.42s ease, visibility 0s linear 0.42s;
}

.pc-grid.pc-grid-expanded .pc-card {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
    pointer-events: none;
}

.pc-grid.pc-grid-expanded .pc-expanded-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.42s ease, transform 0.42s ease;
}

.pc-expanded-top {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    min-height: 0;
    /* flex: 0 0 var(--pc-expanded-top-size, 52%); */
    align-content: stretch;
    align-items: flex-start;
}

.pc-expanded-tier-box {
    align-self: center;
    height: 25px;
    padding: 10px;
    border: 2px solid var(--pc-expanded-border-color);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-family: ClickHerFont, sans-serif;
    font-size: 27px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 480px;
}

.pc-expanded-text {
    min-height: 0;
    padding: 10px;
    /* border: 1px solid rgba(255, 255, 255, 0.15); */
    /* border-radius: 6px; */
    /* background: rgba(255, 255, 255, 0.08); */
    color: #f0f7ff;
    font-size: 16px;
    /* line-height: 1; */
    display: flex;
    align-items: center;
    text-align: left;
    /* width: 480px; */
    max-width: 480px;
    gap: 8px;
    left: 10px;
    margin-left: 17px;
}

.pc-expanded-text::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(240, 247, 255, 0.9);
    flex: 0 0 6px;
}

.pc-expanded-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
}

.pc-video-box {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pc-video-box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.pc-video-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.25s ease;
    pointer-events: none;
    border-radius: 6px;
}

.pc-video-box:hover::after {
    background: rgba(255, 255, 255, 0.08);
}

.pc-video-box video,
.pc-video-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* border: solid 1px rgba(255, 201, 94, 0.6); */
}

.pc-grid[data-expanded-tier="base"] .pc-expanded-text {
    border-color: rgba(109, 3, 140, 0.6);
}

.pc-grid[data-expanded-tier="base"] {
    --pc-expanded-border-color: rgba(109, 3, 140, 0.6);
}

.pc-grid[data-expanded-tier="gold"] .pc-expanded-text {
    border-color: rgba(255, 201, 94, 0.45);
}

.pc-grid[data-expanded-tier="gold"] {
    --pc-expanded-border-color: rgba(255, 201, 94, 0.6);
}

.pc-grid[data-expanded-tier="diamond"] .pc-expanded-text {
    border-color: rgba(139, 226, 255, 0.45);
}

.pc-grid[data-expanded-tier="diamond"] {
    --pc-expanded-border-color: rgba(139, 226, 255, 0.6);
}

.pc-hover-title {
    font-family: ClickHerFont, sans-serif;
    font-size: 40px;
    color: #ffe7ff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pc-hover ul {
    margin: 0;
    padding-left: 18px;
    color: #e8f3ff;
    font-size: 14px;
    line-height: 1.4;
}

.pc-base {
    background: transparent;
    --MMS-patreon-card-color: rgb(142, 26, 196);
}

.pc-gold {
    background: transparent;
    --MMS-patreon-card-color: rgb(255, 201, 94);
}

.pc-diamond {
    background: transparent;
    --MMS-patreon-card-color: rgb(139, 226, 255);
}

.pc-outdated {
    box-shadow: 0 0 24px rgba(255, 90, 90, 0.6);
}

@media (max-width: 1550px) {
    .patreon-panel {
        height: auto;
    }

    .pc-grid {
        height: auto;
    }

    .pc-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .pc-expanded-view {
        height: auto;
        min-height: 560px;
    }

    .pc-expanded-top {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        grid-template-rows: repeat(5, minmax(0, 1fr));
    }

    .pc-expanded-media {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }
}


.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;
}
/* Main Menu Shop Styles */
#main-menu-shop {
    position: absolute;
    top: 50%;
    left: 50%;
    flex-direction: column;
    justify-content: center;
    transform: translate(-50%, calc(-50% + 72px));
    width: 712px;
    height: 1048px;
    background: linear-gradient(145deg, #19123100, #0f0a1f00);
    /* border: 3px solid #6D038C; */
    border-radius: -5px;
    padding: 25px 30px;
    z-index: 100;
    display: none;
    overflow-y: hidden;
    /* box-shadow: 0 10px 50px rgba(109, 3, 140, 0.5), inset 0 0 100px rgba(109, 3, 140, 0.1); */
    opacity: 0;
    pointer-events: none;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
    will-change: transform, opacity;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 22px;
}

#main-menu-shop.panel-visible {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
}

#main-menu-shop.panel-closing {
    transform: translate(-50%, calc(-50% + 72px));
    opacity: 0;
}

.shop-header {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(109, 3, 140, 0.3);
}

.shop-title {
    font-family: 'Courier New', monospace;
    font-size: 45px;
    font-weight: bold;
    color: #D896FF;
    text-shadow: 0 0 15px #6D038C, 0 0 30px rgba(109, 3, 140, 0.5);
    margin-bottom: 12px;
}

.shop-diamonds {
    font-size: 20px;
    color: #D896FF;
    text-shadow: 0 0 8px #6D038C;
    font-family: 'arial';
}

.shop-section {
    /*background: rgba(25, 18, 49, 0.6); */
    /* border: 2px solid rgba(109, 3, 140, 0.4); */
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.shop-section-title {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #D896FF;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--edition-ui-border), 0 0 10px rgba(var(--edition-ui-shadow-rgb), 0.5);
}

.shop-upgrades-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.shop-upgrade-group {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(109, 3, 140, 0.5);
    border-radius: 10px;
    padding: 12px;
}

.shop-upgrade-group-title {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #D896FF;
    margin-bottom: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
}

.shop-upgrade-group-title .game-icon {
    --game-icon-size: 46px;
    color: currentColor;
}

.shop-upgrade-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background: linear-gradient(145deg, #2d1f4a, #191231);
    border: 2px solid #6D038C;
    border-radius: 8px;
    color: #D896FF;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-upgrade-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #4a2f6e, #2d1f4a);
    box-shadow: 0 0 15px rgba(109, 3, 140, 0.6);
    border-color: #A855F7;
}

.shop-upgrade-btn.purchased {
    background: linear-gradient(145deg, #4a2f6e, #2d1f4a);
    border-color: #A855F7;
    color: #A855F7;
}

.shop-upgrade-btn.disabled {
    background: linear-gradient(145deg, #1a1424, #0f0a1f);
    border-color: #3d2957;
    color: #5a4570;
    cursor: default;
    opacity: 0.5;
}

.shop-consumables-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-consumable-item {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(109, 3, 140, 0.5);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-consumable-icon {
    --game-icon-size: 28px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--edition-ui-text-strong);
    flex-shrink: 0;
}

.shop-consumable-info {
    flex: 1;
}

.shop-consumable-name {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #D896FF;
    margin-bottom: 3px;
}

.shop-consumable-desc {
    font-family: 'arial';
    font-size: 16px;
    color: #9d7ab8;
}

.shop-consumable-buttons {
    display: flex;
    gap: 5px;
}

.shop-buy-btn {
    padding: 6px 12px;
    background: linear-gradient(145deg, #4a2f6e, #2d1f4a);
    border: 2px solid #6D038C;
    border-radius: 6px;
    color: #D896FF;
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-buy-btn:hover {
    background: linear-gradient(145deg, #6844a0, #4a2f6e);
    box-shadow: 0 0 12px rgba(109, 3, 140, 0.7);
    border-color: #A855F7;
}

.shop-inventory-section {
    /* background: rgba(25, 18, 49, 0.6); */
    /* border: 2px solid rgba(109, 3, 140, 0.4); */
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.shop-inventory-title {
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #D896FF;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#next-run-inventory-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 65px;
    margin-bottom: 12px;
}

.inventory-item {
    background: rgba(109, 3, 140, 0.2);
    border: 2px solid #6D038C;
    border-radius: 6px;
    padding: 6px 10px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #D896FF;
    display: flex;
    align-items: center;
    gap: 5px;
}

.inventory-icon {
    --game-icon-size: 16px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--edition-ui-text-strong);
}

.inventory-icon .game-icon {
    width: 100%;
    height: 100%;
    color: currentColor;
}

.inventory-empty {
    width: 100%;
    text-align: center;
    font-family: 'arial';
    color: #5a4570;
    font-size: 16px;
    padding: 10px;
}

.shop-clear-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(145deg, #6D038C, #4a0260);
    border: 2px solid #A855F7;
    border-radius: 8px;
    color: #D896FF;
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-clear-btn:hover {
    background: linear-gradient(145deg, #8e05b8, #6D038C);
    box-shadow: 0 0 15px rgba(109, 3, 140, 0.8);
    border-color: #C084FC;
}

/* .shop-close-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(145deg, #2d1f4a, #191231);
    border: 2px solid #6D038C;
    border-radius: 8px;
    color: #D896FF;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
} */

.shop-close-btn:hover {
    background: linear-gradient(145deg, #4a2f6e, #2d1f4a);
    border-color: #A855F7;
    box-shadow: 0 0 12px rgba(109, 3, 140, 0.5);
}

/* Shop Modal */
#shop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: none;
}

#shop-confirmation-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: linear-gradient(145deg, #191231, #0f0a1f);
    border: 3px solid #6D038C;
    border-radius: 15px;
    padding: 30px;
    z-index: 201;
    display: none;
    text-align: center;
    box-shadow: 0 0 40px rgba(109, 3, 140, 0.6);
}

.shop-confirmation-title {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #D896FF;
    margin-bottom: 20px;
}

#shop-confirmation-message {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #9d7ab8;
    margin-bottom: 25px;
}

.shop-confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.shop-confirm-yes {
    padding: 12px 30px;
    background: linear-gradient(145deg, #4a2f6e, #2d1f4a);
    border: 2px solid #6D038C;
    border-radius: 8px;
    color: White;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-confirm-yes:hover {
    background: linear-gradient(145deg, #6844a0, #4a2f6e);
    box-shadow: 0 0 15px rgba(109, 3, 140, 0.8);
    border-color: #A855F7;
}

.shop-confirm-no {
    padding: 12px 30px;
    background: linear-gradient(145deg, #2d1f4a, #191231);
    border: 2px solid #6D038C;
    border-radius: 8px;
    color: White;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-confirm-no:hover {
    background: linear-gradient(145deg, #4a2f6e, #2d1f4a);
    box-shadow: 0 0 15px rgba(109, 3, 140, 0.6);
    border-color: #A855F7;
}

#shop-message {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(25, 18, 49, 0.95);
    border: 2px solid #6D038C;
    border-radius: 8px;
    padding: 15px 30px;
    color: #D896FF;
    font-family: 'Courier New', monospace;
    display: none;
    z-index: 1000;
}
/* Resume Run Popup */
#resume-run-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200000;
    display: none;
}

#resume-run-popup {
    width: 450px;
    background: linear-gradient(145deg, #191231, #0f0a1f);
    border: 3px solid #6D038C;
    border-radius: 15px;
    padding: 35px;
    z-index: 200001;
    text-align: center;
    box-shadow: 0 0 50px rgba(109, 3, 140, 0.8);
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%) scale(1.1);
}

#resume-run-message {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #9d7ab8;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Shop button on title screen */
.TS_shop {
    height: 80px;
    font-weight: bold;
    color: var(--edition-ui-border);
    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_shop:hover {
    color: rgb(255, 255, 255);
    transition: all 0.3s ease;
}

html[data-edition="GOLD"] .TS_play:hover,
html[data-edition="GOLD"] .TS_collection:hover,
html[data-edition="GOLD"] .TS_settings:hover,
html[data-edition="GOLD"] .TS_install_dlc:hover,
html[data-edition="GOLD"] .TS_shop:hover,
html[data-edition="DIAMOND"] .TS_play:hover,
html[data-edition="DIAMOND"] .TS_collection:hover,
html[data-edition="DIAMOND"] .TS_settings:hover,
html[data-edition="DIAMOND"] .TS_install_dlc:hover,
html[data-edition="DIAMOND"] .TS_shop:hover {
    color: rgb(255, 255, 255);
}

html[data-edition="GOLD"] #main-menu-shop,
html[data-edition="GOLD"] #shop-confirmation-popup,
html[data-edition="GOLD"] #resume-run-popup,
html[data-edition="GOLD"] .shop-upgrade-btn,
html[data-edition="GOLD"] .shop-buy-btn,
html[data-edition="GOLD"] .shop-close-btn,
html[data-edition="GOLD"] .shop-confirm-yes,
html[data-edition="GOLD"] .shop-confirm-no,
html[data-edition="DIAMOND"] #main-menu-shop,
html[data-edition="DIAMOND"] #shop-confirmation-popup,
html[data-edition="DIAMOND"] #resume-run-popup,
html[data-edition="DIAMOND"] .shop-upgrade-btn,
html[data-edition="DIAMOND"] .shop-buy-btn,
html[data-edition="DIAMOND"] .shop-close-btn,
html[data-edition="DIAMOND"] .shop-confirm-yes,
html[data-edition="DIAMOND"] .shop-confirm-no {
    background: linear-gradient(145deg, var(--edition-ui-panel-top), var(--edition-ui-panel-mid));
    border-color: var(--edition-ui-border);
}

html[data-edition="GOLD"] #main-menu-shop,
html[data-edition="DIAMOND"] #main-menu-shop {
    background: linear-gradient(145deg, #2d1f4a00, #ffffff00);
}

html[data-edition="GOLD"] .shop-title,
html[data-edition="GOLD"] .shop-diamonds,
html[data-edition="GOLD"] .shop-section-title,
html[data-edition="GOLD"] .shop-upgrade-group-title,
html[data-edition="GOLD"] .shop-upgrade-btn,
html[data-edition="GOLD"] .shop-consumable-name,
html[data-edition="GOLD"] .shop-buy-btn,
html[data-edition="GOLD"] .shop-inventory-title,
html[data-edition="GOLD"] .inventory-item,
html[data-edition="GOLD"] .shop-clear-btn,
html[data-edition="GOLD"] .shop-close-btn,
html[data-edition="GOLD"] .shop-confirmation-title,
html[data-edition="GOLD"] #shop-message,
html[data-edition="DIAMOND"] .shop-title,
html[data-edition="DIAMOND"] .shop-diamonds,
html[data-edition="DIAMOND"] .shop-section-title,
html[data-edition="DIAMOND"] .shop-upgrade-group-title,
html[data-edition="DIAMOND"] .shop-upgrade-btn,
html[data-edition="DIAMOND"] .shop-consumable-name,
html[data-edition="DIAMOND"] .shop-buy-btn,
html[data-edition="DIAMOND"] .shop-inventory-title,
html[data-edition="DIAMOND"] .inventory-item,
html[data-edition="DIAMOND"] .shop-clear-btn,
html[data-edition="DIAMOND"] .shop-close-btn,
html[data-edition="DIAMOND"] .shop-confirmation-title,
html[data-edition="DIAMOND"] #shop-message {
    color: var(--edition-ui-text);
}

html[data-edition="GOLD"] .shop-title,
html[data-edition="GOLD"] .shop-diamonds,
html[data-edition="DIAMOND"] .shop-title,
html[data-edition="DIAMOND"] .shop-diamonds {
    text-shadow: 0 0 15px var(--edition-ui-border), 0 0 30px rgba(var(--edition-ui-shadow-rgb), 0.5);
}

html[data-edition="GOLD"] .shop-header,
html[data-edition="GOLD"] .shop-upgrade-group,
html[data-edition="GOLD"] .shop-consumable-item,
html[data-edition="GOLD"] #shop-message,
html[data-edition="GOLD"] .inventory-item,
html[data-edition="DIAMOND"] .shop-header,
html[data-edition="DIAMOND"] .shop-upgrade-group,
html[data-edition="DIAMOND"] .shop-consumable-item,
html[data-edition="DIAMOND"] #shop-message,
html[data-edition="DIAMOND"] .inventory-item {
    border-color: rgba(var(--edition-ui-shadow-rgb), 0.5);
}

html[data-edition="GOLD"] .shop-upgrade-btn:hover:not(:disabled),
html[data-edition="GOLD"] .shop-buy-btn:hover,
html[data-edition="GOLD"] .shop-close-btn:hover,
html[data-edition="GOLD"] .shop-confirm-yes:hover,
html[data-edition="GOLD"] .shop-confirm-no:hover,
html[data-edition="DIAMOND"] .shop-upgrade-btn:hover:not(:disabled),
html[data-edition="DIAMOND"] .shop-buy-btn:hover,
html[data-edition="DIAMOND"] .shop-close-btn:hover,
html[data-edition="DIAMOND"] .shop-confirm-yes:hover,
html[data-edition="DIAMOND"] .shop-confirm-no:hover {
    background: linear-gradient(145deg, var(--edition-ui-hover-top), var(--edition-ui-hover-bottom));
    border-color: var(--edition-ui-text-strong);
    box-shadow: 0 0 15px rgba(var(--edition-ui-shadow-rgb), 0.7);
}

html[data-edition="GOLD"] .shop-upgrade-btn.purchased,
html[data-edition="DIAMOND"] .shop-upgrade-btn.purchased {
    background: linear-gradient(145deg, var(--edition-ui-hover-top), var(--edition-ui-hover-bottom));
    border-color: var(--edition-ui-text-strong);
    color: var(--edition-ui-text-strong);
}

html[data-edition="GOLD"] .shop-upgrade-btn.disabled,
html[data-edition="DIAMOND"] .shop-upgrade-btn.disabled {
    background: linear-gradient(145deg, color-mix(in srgb, var(--edition-ui-panel-mid) 75%, black), var(--edition-ui-panel-bottom));
    border-color: var(--edition-ui-disabled-border);
    color: var(--edition-ui-disabled-text);
}

html[data-edition="GOLD"] .shop-consumable-desc,
html[data-edition="GOLD"] #shop-confirmation-message,
html[data-edition="GOLD"] #resume-run-message,
html[data-edition="DIAMOND"] .shop-consumable-desc,
html[data-edition="DIAMOND"] #shop-confirmation-message,
html[data-edition="DIAMOND"] #resume-run-message {
    color: var(--edition-ui-text-muted);
}

html[data-edition="GOLD"] .inventory-item,
html[data-edition="DIAMOND"] .inventory-item {
    background: var(--edition-ui-overlay);
}

html[data-edition="GOLD"] .inventory-empty,
html[data-edition="DIAMOND"] .inventory-empty {
    color: var(--edition-ui-disabled-text);
}

html[data-edition="GOLD"] .shop-clear-btn,
html[data-edition="DIAMOND"] .shop-clear-btn {
    background: linear-gradient(145deg, var(--edition-ui-solid-top), var(--edition-ui-solid-bottom));
    border-color: var(--edition-ui-text-strong);
}

html[data-edition="GOLD"] .shop-clear-btn:hover,
html[data-edition="DIAMOND"] .shop-clear-btn:hover {
    background: linear-gradient(145deg, var(--edition-ui-solid-hover-top), var(--edition-ui-solid-hover-bottom));
    box-shadow: 0 0 15px rgba(var(--edition-ui-shadow-rgb), 0.8);
}

html[data-edition="GOLD"] #shop-confirmation-popup,
html[data-edition="GOLD"] #resume-run-popup,
html[data-edition="DIAMOND"] #shop-confirmation-popup,
html[data-edition="DIAMOND"] #resume-run-popup {
    background: linear-gradient(145deg, var(--edition-ui-panel-mid), var(--edition-ui-panel-bottom));
    border-color: var(--edition-ui-border);
    box-shadow: 0 0 40px rgba(var(--edition-ui-shadow-rgb), 0.6);
}

html[data-edition="GOLD"] #shop-message,
html[data-edition="DIAMOND"] #shop-message {
    background: color-mix(in srgb, var(--edition-ui-panel-mid) 92%, black 8%);
    border-color: var(--edition-ui-border);
}
