html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #e3f4fd, #c9e8fa);
    color: #003366;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

#closeMenu,
#resetButton,
#menuButton {
    cursor: pointer;
}

#menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #e3f4fd, #c9e8fa);
    border: 2px solid #2566a9;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 50, 100, 0.2);
    z-index: 9999;
    text-align: center;
    width: 300px;
    max-width: 90vw;
    color: #003366;
    font-family: 'Segoe UI', sans-serif;
}

#Muahaha {
    cursor: default;
    user-select: none;
}

#colorFlash {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s;
  }  

#menu button {
    background-color: #6faff3;
    border: 2px solid #2566a9;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 20px;
    margin-top: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 78, 142, 0.3);
    transition: transform 0.2s ease;
}

#menu button:hover {
    background-color: #5ab1e5;
    transform: scale(1.05);
}

#menuOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 51, 102, 0.2);
    z-index: 9998;
}

#menuButton {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10000;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #274d73;
    cursor: pointer;
}

#resetConfirm {
    display: none;
    margin-top: 1rem;
    padding: 15px;
    background: linear-gradient(145deg, #6faff3, #4a82c7);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 80, 150, 0.6);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    user-select: none;
}

#resetConfirm p {
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 0, 50, 0.6);
}

#resetConfirm button {
    margin: 0 10px;
    cursor: pointer;
    padding: 8px 22px;
    background-color: #274d73;
    color: #cde8f7;
    border: 2px solid #cde8f7;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(50, 100, 180, 0.7);
    transition: background-color 0.3s, color 0.3s;
}

#resetConfirm button:hover {
    background-color: #3a7fcf;
    color: #e0f7ff;
    border-color: #e0f7ff;
}

#title {
    color: #2e77b5;
    font-size: 2.5rem;
    margin-top: 30px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 50, 100, 0.3);
}

#click {
    display: block;
    margin: 0 auto 50px auto;
    padding: 12px 24px;
    background-color: #6faff3;
    border: 2px solid #2566a9;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.5),
        0 4px 8px rgba(0, 78, 142, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

#click:hover {
    background: linear-gradient(145deg, #5ab1e5, #3a7fcf);
    box-shadow: inset 0 4px 9px rgba(255, 255, 255, 0.6),
        0 6px 12px rgba(0, 95, 170, 0.7);
    transform: scale(1.03);
}

#counter {
    color: #007fa3;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 100, 0.2);
}

#rps {
    color: #2e77b5;
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.85;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

#bucketButton,
#gnomeButton,
#gutterButton,
#sewerButton,
#shamanButton,
#dancerButton,
#tronButton,
#witchesButton {
    width: 90vw;
    max-width: 600px;
    margin: 30px auto 0 auto;
    padding: 25px 30px;
    background: linear-gradient(145deg, #7ec8e3, #4a90d9);
    border: 2px solid #2566a9;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 78, 142, 0.6);
    color: #e0f7ff;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: left;
    user-select: none;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease, color 0.5s ease, border 0.5s ease;
    box-sizing: border-box;
    min-height: 100px;
}

#bucketButton:hover,
#gnomeButton:hover,
#gutterButton:hover,
#sewerButton:hover,
#shamanButton:hover,
#dancerButton:hover,
#tronButton:hover,
#witchesButton:hover {
    background: linear-gradient(145deg, #5ab1e5, #3a7fcf);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7), 0 8px 16px rgba(0, 95, 170, 0.8);
    transform: scale(1.03);
}

.gnome-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.gnome-desc {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.95;
    margin-bottom: 20px;
    text-shadow: 0 0 3px #cce9ff;
}

.gnome-price {
    font-size: 0.95rem;
    font-style: italic;
    font-weight: normal;
    opacity: 0.8;
    text-shadow: 0 0 3px #b0d4f7;
    margin-top: 10px;
}

#gnomeButton.disabled,
#bucketButton.disabled,
#gutterButton.disabled,
#sewerButton.disabled,
#shamanButton.disabled,
#dancerButton.disabled,
#tronButton.disabled,
#witchesButton.disabled {
    background: linear-gradient(145deg, #aecfe2, #88b8da);
    border: 2px solid #6d9fc4;
    color: #cde8f7;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, color 0.5s ease, border 0.5s ease;
}

#gnomeButton.disabled .gnome-title,
#gnomeButton.disabled .gnome-desc,
#gnomeButton.disabled .gnome-price,
#gnomeButton.disabled .gnome-count,
#bucketButton.disabled .gnome-title,
#bucketButton.disabled .gnome-desc,
#bucketButton.disabled .gnome-price,
#bucketButton.disabled .gnome-count,
#gutterButton.disabled .gnome-title,
#gutterButton.disabled .gnome-desc,
#gutterButton.disabled .gnome-price,
#gutterButton.disabled .gnome-count,
#sewerButton.disabled .gnome-title,
#sewerButton.disabled .gnome-desc,
#sewerButton.disabled .gnome-price,
#sewerButton.disabled .gnome-count,
#shamanButton.disabled .gnome-title,
#shamanButton.disabled .gnome-desc,
#shamanButton.disabled .gnome-price,
#shamanButton.disabled .gnome-count,
#dancerButton.disabled .gnome-title,
#dancerButton.disabled .gnome-desc,
#dancerButton.disabled .gnome-price,
#dancerButton.disabled .gnome-count,
#tronButton.disabled .gnome-title,
#tronButton.disabled .gnome-desc,
#tronButton.disabled .gnome-price,
#tronButton.disabled .gnome-count,
#witchesButton.disabled .gnome-title,
#witchesButton.disabled .gnome-desc,
#witchesButton.disabled .gnome-price,
#witchesButton.disabled .gnome-count {
    color: #d7eef8 !important;
    opacity: 0.5;
    transition: opacity 0.5s ease, color 0.5s ease;
}

.highlight-rain {
    font-weight: 600;
    color: #274d73;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
}

@keyframes gnomePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

#gnomeButton.pop,
#bucketButton.pop,
#gutterButton.pop,
#sewerButton.pop,
#shamanButton.pop,
#dancerButton.pop,
#tronButton.pop,
#witchesButton.pop {
    animation: gnomePop 0.4s ease;
}

@media (max-width: 480px) {
    #title {
        font-size: 1.8rem;
    }

    #counter {
        font-size: 1.5rem;
    }

    #click,
    #bucketButton,
    #gnomeButton,
    #gutterButton,
    #sewerButton,
    #shamanButton,
    #dancerButton,
    #tronButton,
    #witchesButton {
        font-size: 1.3rem;
        padding: 20px;
        max-width: 90vw;
    }

    #bucketButton,
    #gnomeButton,
    #gutterButton,
    #sewerButton,
    #shamanButton,
    #dancerButton,
    #tronButton,
    #witchesButton {
        min-height: 120px;
        margin-top: 40px;
    }
}

#gnomeButton {
    display: none;
}

strong {
    color: #466d94;
}

#upgradeButton {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #274d73;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}

#upgradeButton.hidden {
    opacity: 0;
    pointer-events: none;
}

#upgradeSidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 300px;
    max-width: 90vw;
    height: 100%;
    background: linear-gradient(145deg, #e3f4fd, #c9e8fa);
    border-left: 2px solid #2566a9;
    box-shadow: -5px 0 15px rgba(0, 50, 100, 0.2);
    z-index: 10;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    color: #003366;
}

#upgradeSidebar.open {
    right: 0;
}

#upgradeHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#closeUpgrade {
    cursor: pointer;
    font-size: 1.5rem;
    color: #274d73;
}

#biggerBucketsUpgrade {
    position: relative;
    cursor: pointer;
}

#biggerBucketsUpgrade {
    position: relative;
    cursor: pointer;
    width: 90vw;
    max-width: 280px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    background: linear-gradient(145deg, #7ec8e3, #4a90d9);
    border: 2px solid #2566a9;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 78, 142, 0.6);
    color: #466d94;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    user-select: none;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease, color 0.5s ease, border 0.5s ease;
    box-sizing: border-box;
    min-height: unset;
    z-index: 10;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(145deg, rgba(126, 200, 227, 0.9), rgba(74, 144, 217, 0.9));
    color: #e0f7ff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 50, 100, 0.3);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(74, 144, 217, 0.9);
}

#biggerBucketsUpgrade:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#biggerBucketsUpgrade:hover {
    background: linear-gradient(145deg, #5ab1e5, #3a7fcf);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7), 0 8px 16px rgba(0, 95, 170, 0.8);
    transform: scale(1.03);
}

#doubleClickUpgrade {
    position: relative;
    cursor: pointer;
    width: 90vw;
    max-width: 280px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    background: linear-gradient(145deg, #7ec8e3, #4a90d9);
    border: 2px solid #2566a9;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 78, 142, 0.6);
    color: #466d94;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    user-select: none;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease, color 0.5s ease, border 0.5s ease;
    box-sizing: border-box;
}

#doubleClickTooltip {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(145deg, rgba(126, 200, 227, 0.9), rgba(74, 144, 217, 0.9));
    color: #e0f7ff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 50, 100, 0.3);
}

#doubleClickTooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(74, 144, 217, 0.9);
}

#doubleClickUpgrade:hover .tooltip-text,
#doubleClickUpgrade:hover #doubleClickTooltip {
    visibility: visible;
    opacity: 1;
}

#doubleClickUpgrade.pop {
    animation: gnomePop 0.4s ease;
}

#doubleClickUpgrade:hover {
    transform: scale(1.03);
}

#whipsUpgrade {
    position: relative;
    cursor: pointer;
    width: 90vw;
    max-width: 280px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    background: linear-gradient(145deg, #7ec8e3, #4a90d9);
    border: 2px solid #2566a9;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.5),
        0 6px 12px rgba(0, 78, 142, 0.6);
    color: #466d94;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    user-select: none;
    transition: background-color 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.5s ease,
        color 0.5s ease,
        border 0.5s ease;
    box-sizing: border-box;
    min-height: unset;
    z-index: 10;
}

#whipsUpgrade .tooltip-text {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(145deg, rgba(126, 200, 227, 0.9), rgba(74, 144, 217, 0.9));
    color: #e0f7ff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 50, 100, 0.3);
}

#whipsUpgrade .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(74, 144, 217, 0.9);
}

#whipsUpgrade:hover .tooltip-text {
    visibility: visible;
    opacity: 0.9;
}

#whipsUpgrade:hover {
    background: linear-gradient(145deg, #5ab1e5, #3a7fcf);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7),
        0 8px 16px rgba(0, 95, 170, 0.8);
    transform: scale(1.03);
}

#cleanerGuttersUpgrade {
    position: relative;
    cursor: pointer;
    width: 90vw;
    max-width: 280px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    background: linear-gradient(145deg, #7ec8e3, #4a90d9);
    border: 2px solid #2566a9;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.5),
        0 6px 12px rgba(0, 78, 142, 0.6);
    color: #466d94;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    user-select: none;
    transition: background-color 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.5s ease,
        color 0.5s ease,
        border 0.5s ease;
    box-sizing: border-box;
    min-height: unset;
    z-index: 10;
}

#cleanerGuttersUpgrade .tooltip-text {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(145deg, rgba(126, 200, 227, 0.9), rgba(74, 144, 217, 0.9));
    color: #e0f7ff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 50, 100, 0.3);
}

#cleanerGuttersUpgrade .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(74, 144, 217, 0.9);
}

#cleanerGuttersUpgrade:hover .tooltip-text {
    visibility: visible;
    opacity: 0.9;
}

#cleanerGuttersUpgrade:hover {
    background: linear-gradient(145deg, #5ab1e5, #3a7fcf);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7),
        0 8px 16px rgba(0, 95, 170, 0.8);
    transform: scale(1.03);
}

#sewersUpgrade {
    position: relative;
    cursor: pointer;
    width: 90vw;
    max-width: 280px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    background: linear-gradient(145deg, #7ec8e3, #4a90d9);
    border: 2px solid #2566a9;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.5),
        0 6px 12px rgba(0, 78, 142, 0.6);
    color: #466d94;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    user-select: none;
    transition: background-color 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.5s ease,
        color 0.5s ease,
        border 0.5s ease;
    box-sizing: border-box;
    min-height: unset;
    z-index: 10;
}

#sewersUpgrade .tooltip-text {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(145deg, rgba(126, 200, 227, 0.9), rgba(74, 144, 217, 0.9));
    color: #e0f7ff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 50, 100, 0.3);
}

#sewersUpgrade .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(74, 144, 217, 0.9);
}

#sewersUpgrade:hover .tooltip-text {
    visibility: visible;
    opacity: 0.9;
}

#sewersUpgrade:hover {
    background: linear-gradient(145deg, #5ab1e5, #3a7fcf);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7),
        0 8px 16px rgba(0, 95, 170, 0.8);
    transform: scale(1.03);
}

#shamanUpgrade {
    position: relative;
    cursor: pointer;
    width: 90vw;
    max-width: 280px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    background: linear-gradient(145deg, #7ec8e3, #4a90d9);
    border: 2px solid #2566a9;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.5),
        0 6px 12px rgba(0, 78, 142, 0.6);
    color: #466d94;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    user-select: none;
    transition: background-color 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.5s ease,
        color 0.5s ease,
        border 0.5s ease;
    box-sizing: border-box;
    min-height: unset;
    z-index: 10;
}

#shamanUpgrade .tooltip-text {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(145deg, rgba(126, 200, 227, 0.9), rgba(74, 144, 217, 0.9));
    color: #e0f7ff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 50, 100, 0.3);
}

#shamanUpgrade .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(74, 144, 217, 0.9);
}

#shamanUpgrade:hover .tooltip-text {
    visibility: visible;
    opacity: 0.9;
}

#shamanUpgrade:hover {
    background: linear-gradient(145deg, #5ab1e5, #3a7fcf);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7),
        0 8px 16px rgba(0, 95, 170, 0.8);
    transform: scale(1.03);
}

#dancerUpgrade {
    position: relative;
    cursor: pointer;
    width: 90vw;
    max-width: 280px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    background: linear-gradient(145deg, #7ec8e3, #4a90d9);
    border: 2px solid #2566a9;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.5),
        0 6px 12px rgba(0, 78, 142, 0.6);
    color: #466d94;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    user-select: none;
    transition: background-color 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.5s ease,
        color 0.5s ease,
        border 0.5s ease;
    box-sizing: border-box;
    min-height: unset;
    z-index: 10;
}

#dancerUpgrade .tooltip-text {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(145deg, rgba(126, 200, 227, 0.9), rgba(74, 144, 217, 0.9));
    color: #e0f7ff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 50, 100, 0.3);
}

#dancerUpgrade .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(74, 144, 217, 0.9);
}

#dancerUpgrade:hover .tooltip-text {
    visibility: visible;
    opacity: 0.9;
}

#dancerUpgrade:hover {
    background: linear-gradient(145deg, #5ab1e5, #3a7fcf);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7),
        0 8px 16px rgba(0, 95, 170, 0.8);
    transform: scale(1.03);
}

#tronUpgrade {
    position: relative;
    cursor: pointer;
    width: 90vw;
    max-width: 280px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    background: linear-gradient(145deg, #7ec8e3, #4a90d9);
    border: 2px solid #2566a9;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.5),
        0 6px 12px rgba(0, 78, 142, 0.6);
    color: #466d94;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    user-select: none;
    transition: background-color 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.5s ease,
        color 0.5s ease,
        border 0.5s ease;
    box-sizing: border-box;
    min-height: unset;
    z-index: 10;
}

#tronUpgrade .tooltip-text {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(145deg, rgba(126, 200, 227, 0.9), rgba(74, 144, 217, 0.9));
    color: #e0f7ff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 50, 100, 0.3);
}

#tronUpgrade .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(74, 144, 217, 0.9);
}

#tronUpgrade:hover .tooltip-text {
    visibility: visible;
    opacity: 0.9;
}

#tronUpgrade:hover {
    background: linear-gradient(145deg, #5ab1e5, #3a7fcf);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7),
        0 8px 16px rgba(0, 95, 170, 0.8);
    transform: scale(1.03);
}

#witchUpgrade {
    position: relative;
    cursor: pointer;
    width: 90vw;
    max-width: 280px;
    margin: 15px auto 0 auto;
    padding: 15px 20px;
    background: linear-gradient(145deg, #7ec8e3, #4a90d9);
    border: 2px solid #2566a9;
    border-radius: 15px;
    box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.5),
        0 6px 12px rgba(0, 78, 142, 0.6);
    color: #466d94;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    user-select: none;
    transition: background-color 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.5s ease,
        color 0.5s ease,
        border 0.5s ease;
    box-sizing: border-box;
    min-height: unset;
    z-index: 10;
}

#witchUpgrade .tooltip-text {
    visibility: hidden;
    width: 220px;
    background: linear-gradient(145deg, rgba(126, 200, 227, 0.9), rgba(74, 144, 217, 0.9));
    color: #e0f7ff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0, 50, 100, 0.3);
}

#witchUpgrade .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(74, 144, 217, 0.9);
}

#witchUpgrade:hover .tooltip-text {
    visibility: visible;
    opacity: 0.9;
}

#witchUpgrade:hover {
    background: linear-gradient(145deg, #5ab1e5, #3a7fcf);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7),
        0 8px 16px rgba(0, 95, 170, 0.8);
    transform: scale(1.03);
}