:root {
    --gold: #f3c948;
    --gold-bright: #ffe77d;
    --red: #c72a20;
    --red-dark: #620c08;
    --black: #070201;
    --cream: #fff2c6;
    --panel: rgba(26, 5, 3, 0.96);
}

* {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 50% 25%, #67150e 0%, #190503 48%, #040101 100%);
}

button {
    font-family: inherit;
}

#game-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100vw;
    height: 100vh;
}

#top-bar {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 105px;
    padding: 10px 20px;
    border-bottom: 4px solid var(--gold);
    background:
        repeating-linear-gradient(
            -45deg,
            #0d0805 0 15px,
            #191008 15px 30px
        );
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

.small-title {
    margin-bottom: 2px;
    color: #c2a55e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 4px;
}

#branding h1 {
    margin: 0;
    color: white;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(30px, 4.8vw, 62px);
    line-height: 0.85;
    letter-spacing: 2px;
    text-shadow:
        3px 3px 0 #8d170f,
        6px 6px 0 #240302;
}

#branding h1 span {
    color: var(--gold);
}

#stats {
    display: flex;
    gap: 8px;
}

.stat-box {
    min-width: 92px;
    padding: 8px 11px;
    text-align: center;
    border: 2px solid #876822;
    border-radius: 8px;
    background: #080302;
    box-shadow: inset 0 0 15px black;
}

.stat-box span {
    display: block;
    color: #d2ba72;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.stat-box strong {
    display: block;
    margin-top: 2px;
    color: white;
    font-family: Impact, sans-serif;
    font-size: 27px;
    letter-spacing: 1px;
}

#game-stage {
    position: relative;
    overflow: hidden;
    cursor: none;
    background:
        linear-gradient(
            rgba(40, 5, 3, 0.32),
            rgba(0, 0, 0, 0.9)
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 89px,
            rgba(255, 225, 135, 0.035) 90px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0 89px,
            rgba(255, 225, 135, 0.025) 90px
        ),
        #1a0705;
}

#game-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -25px;
    width: min(700px, 85vw);
    height: 330px;
    opacity: 0.14;
    transform: translateX(-50%);
    background:
        linear-gradient(
            90deg,
            transparent 0 8%,
            #f2d78a 8% 12%,
            transparent 12% 17%,
            #f2d78a 17% 21%,
            transparent 21% 26%,
            #f2d78a 26% 30%,
            transparent 30% 70%,
            #f2d78a 70% 74%,
            transparent 74% 79%,
            #f2d78a 79% 83%,
            transparent 83% 88%,
            #f2d78a 88% 92%,
            transparent 92%
        );
    clip-path: polygon(
        0 100%,
        0 77%,
        12% 77%,
        12% 53%,
        25% 53%,
        25% 36%,
        36% 36%,
        36% 17%,
        44% 17%,
        47% 5%,
        50% 0,
        53% 5%,
        56% 17%,
        64% 17%,
        64% 36%,
        75% 36%,
        75% 53%,
        88% 53%,
        88% 77%,
        100% 77%,
        100% 100%
    );
    background-color: #f2d78a;
}

#game-canvas {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
}

#background-message {
    position: absolute;
    top: 15px;
    z-index: 2;
    width: 100%;
    color: white;
    opacity: 0.09;
    text-align: center;
    font-family: Impact, sans-serif;
    font-size: clamp(25px, 6vw, 80px);
    letter-spacing: 8px;
}

#crosshair {
    position: absolute;
    z-index: 40;
    width: 126px;
    height: 175px;
    pointer-events: none;
    transform:
        translate(-50%, -45%)
        rotate(-18deg);
    transform-origin: 50% 78%;
    filter: drop-shadow(9px 12px 5px rgba(0, 0, 0, 0.65));
}

#crosshair.swatting {
    animation: swat 140ms ease-out;
}

.swatter-grid {
    position: absolute;
    top: 0;
    left: 8px;
    width: 108px;
    height: 79px;
    overflow: hidden;
    border: 8px solid #cc3026;
    border-radius: 38%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 8px,
            rgba(97, 5, 2, 0.9) 8px 11px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(220, 47, 37, 0.92) 0 8px,
            rgba(97, 5, 2, 0.85) 8px 11px
        );
}

.swatter-handle {
    position: absolute;
    top: 68px;
    left: 54px;
    width: 17px;
    height: 110px;
    border-radius: 9px;
    background:
        linear-gradient(
            90deg,
            #5d0805,
            #f14b3f,
            #670a06
        );
}

@keyframes swat {
    0% {
        transform:
            translate(-50%, -45%)
            rotate(-18deg)
            scale(1);
    }

    45% {
        transform:
            translate(-50%, -45%)
            rotate(18deg)
            scale(0.7);
    }

    100% {
        transform:
            translate(-50%, -45%)
            rotate(-18deg)
            scale(1);
    }
}

#spray-cloud {
    position: absolute;
    z-index: 35;
    width: 370px;
    height: 230px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(206, 255, 79, 0.9),
            rgba(89, 193, 42, 0.55) 42%,
            rgba(29, 113, 21, 0.2) 65%,
            transparent 76%
        );
    filter: blur(10px);
}

#spray-cloud.active {
    opacity: 1;
    animation: fog-pulse 180ms infinite alternate;
}

@keyframes fog-pulse {
    from {
        transform:
            translate(-50%, -50%)
            scale(0.82);
    }

    to {
        transform:
            translate(-50%, -50%)
            scale(1.16);
    }
}

#message-banner {
    position: absolute;
    left: 50%;
    top: 15%;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transform:
        translateX(-50%)
        scale(0.5)
        rotate(-6deg);
    color: #fff5ca;
    font-family: Impact, sans-serif;
    font-size: clamp(44px, 8vw, 110px);
    white-space: nowrap;
    text-shadow:
        4px 4px 0 #cf251b,
        8px 8px 0 #4a0704,
        13px 13px 18px black;
}

#message-banner.show {
    animation: message-pop 700ms ease-out;
}

@keyframes message-pop {
    0% {
        opacity: 0;
        transform:
            translateX(-50%)
            scale(0.3)
            rotate(-12deg);
    }

    22% {
        opacity: 1;
        transform:
            translateX(-50%)
            scale(1.25)
            rotate(4deg);
    }

    75% {
        opacity: 1;
        transform:
            translateX(-50%)
            scale(1)
            rotate(-2deg);
    }

    100% {
        opacity: 0;
        transform:
            translateX(-50%)
            scale(1.45)
            rotate(0);
    }
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 18px;
    cursor: default;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
}

.overlay.visible {
    display: grid;
}

.panel {
    width: min(760px, 96vw);
    max-height: 95%;
    overflow-y: auto;
    padding: clamp(28px, 5vw, 58px);
    text-align: center;
    border: 5px solid var(--gold);
    border-radius: 17px;
    background:
        radial-gradient(
            circle at top,
            #67150e,
            #180403 70%
        );
    box-shadow:
        0 0 0 8px #68110b,
        0 0 70px black;
}

.warning-icon {
    font-size: 65px;
    animation: warning 600ms infinite alternate;
}

@keyframes warning {
    from {
        opacity: 0.45;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

.panel-kicker {
    margin-bottom: 8px;
    color: #cab26c;
    font-weight: 900;
    letter-spacing: 4px;
}

.panel h2 {
    margin: 8px 0 18px;
    color: var(--gold);
    font-family: Impact, sans-serif;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.9;
    text-shadow:
        4px 4px 0 #8e160f,
        8px 8px 0 #2a0302;
}

.panel p {
    max-width: 650px;
    margin: 0 auto 20px;
    color: #fff2ca;
    font-size: clamp(17px, 2.3vw, 22px);
    font-weight: 700;
    line-height: 1.45;
}

.instructions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin: 25px 0;
}

.instructions div {
    padding: 16px;
    border: 2px solid #876822;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.42);
}

.instructions strong,
.instructions span {
    display: block;
}

.instructions strong {
    margin-bottom: 5px;
    color: var(--gold);
    font-size: 20px;
}

.instructions span {
    font-weight: 700;
}

#start-button,
#restart-button {
    width: min(440px, 100%);
    padding: 18px 22px;
    border: 4px solid var(--gold-bright);
    border-radius: 10px;
    color: white;
    background:
        linear-gradient(
            #ed473a,
            #8b110c
        );
    box-shadow:
        0 8px 0 #430604,
        0 15px 25px black;
    font-family: Impact, sans-serif;
    font-size: clamp(27px, 4.5vw, 43px);
    letter-spacing: 1px;
    cursor: pointer;
}

#start-button:active,
#restart-button:active {
    transform: translateY(7px);
    box-shadow:
        0 1px 0 #430604,
        0 6px 12px black;
}

.parody-note {
    margin-top: 28px;
    color: #958872;
    font-size: 12px;
}

#final-score {
    margin: 10px 0 28px;
    color: var(--gold);
    font-family: Impact, sans-serif;
    font-size: 90px;
}

#weapon-bar {
    position: relative;
    z-index: 35;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    min-height: 100px;
    padding: 9px 13px;
    border-top: 4px solid var(--gold);
    background:
        repeating-linear-gradient(
            -45deg,
            #0c0704 0 13px,
            #181008 13px 26px
        );
    box-shadow: 0 -5px 18px black;
}

.weapon,
.utility-button {
    min-width: 175px;
    padding: 8px 15px;
    border: 3px solid #715522;
    border-radius: 9px;
    color: white;
    background:
        linear-gradient(
            #302319,
            #0d0805
        );
    cursor: pointer;
}

.weapon.active {
    border-color: #ffe993;
    background:
        linear-gradient(
            #c62c22,
            #5e0c08
        );
    box-shadow:
        0 0 18px rgba(255, 210, 85, 0.45);
}

.weapon span,
.weapon small {
    display: block;
}

.weapon-icon {
    float: left;
    margin-right: 9px;
    font-size: 32px;
}

.weapon-name {
    font-weight: 900;
}

.weapon small {
    margin-top: 4px;
    color: #e1cb8c;
    font-weight: 800;
}

.utility-button {
    min-width: 140px;
    font-weight: 900;
}

@media (max-width: 850px) {
    #top-bar {
        min-height: 75px;
        padding: 7px 9px;
    }

    .small-title {
        display: none;
    }

    #branding h1 {
        font-size: 29px;
    }

    #stats {
        gap: 4px;
    }

    .stat-box {
        min-width: 57px;
        padding: 5px;
    }

    .stat-box span {
        font-size: 7px;
    }

    .stat-box strong {
        font-size: 18px;
    }

    #weapon-bar {
        min-height: 78px;
        gap: 4px;
        padding: 5px;
    }

    .weapon,
    .utility-button {
        min-width: 0;
        flex: 1;
        padding: 5px;
        font-size: 11px;
    }

    .weapon-icon {
        float: none;
        margin: 0;
        font-size: 21px;
    }

    .instructions {
        grid-template-columns: 1fr;
    }

    #crosshair {
        width: 95px;
        height: 140px;
    }

    .swatter-grid {
        width: 80px;
        height: 61px;
    }

    .swatter-handle {
        top: 54px;
        left: 41px;
        height: 88px;
    }

    #spray-cloud {
        width: 260px;
        height: 170px;
    }
}


/* CASH_PILE_UPGRADE_START */

#cash-poop-scene {
    position: absolute;
    left: 50%;
    bottom: 3.5%;
    z-index: 4;

    width: clamp(285px, 34vw, 520px);
    height: clamp(230px, 31vw, 450px);

    pointer-events: none;

    transform:
        translateX(-50%);

    filter:
        drop-shadow(
            0 18px 18px
            rgba(0, 0, 0, 0.82)
        );
}

.cash-poop-shadow {
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 0;

    height: 17%;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.53) 48%,
            rgba(0, 0, 0, 0) 76%
        );

    filter: blur(9px);
}

.cash-poop-pile {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 7%;

    height: 66%;

    transform-origin: 50% 100%;

    animation:
        cashPileBreathe
        3.8s
        ease-in-out
        infinite;
}

.poop-lobe,
.poop-crown {
    position: absolute;

    border:
        3px solid
        rgba(36, 12, 2, 0.86);

    background:
        radial-gradient(
            circle at 38% 22%,
            rgba(255, 196, 97, 0.42) 0%,
            rgba(151, 79, 24, 0.56) 17%,
            rgba(92, 42, 10, 0.92) 49%,
            rgba(45, 17, 3, 1) 100%
        );

    box-shadow:
        inset 13px 11px 17px
        rgba(255, 188, 83, 0.15),

        inset -18px -20px 24px
        rgba(24, 7, 1, 0.70),

        0 8px 12px
        rgba(0, 0, 0, 0.48);
}

.poop-lobe-back {
    left: 23%;
    bottom: 43%;

    width: 55%;
    height: 43%;

    border-radius:
        52% 48% 43% 57%
        / 48% 46% 54% 52%;

    transform:
        rotate(-5deg);
}

.poop-lobe-middle {
    left: 12%;
    bottom: 18%;

    width: 75%;
    height: 50%;

    border-radius:
        50% 54% 46% 48%
        / 48% 46% 55% 52%;

    transform:
        rotate(4deg);
}

.poop-lobe-front {
    left: 3%;
    bottom: 0;

    width: 94%;
    height: 43%;

    border-radius:
        54% 46% 50% 48%
        / 48% 48% 52% 52%;

    transform:
        rotate(-2deg);
}

.poop-crown {
    left: 36%;
    bottom: 70%;

    width: 31%;
    height: 31%;

    border-radius:
        58% 42% 50% 50%
        / 63% 49% 51% 37%;

    transform:
        rotate(-9deg);

    clip-path:
        polygon(
            47% 0%,
            74% 13%,
            92% 38%,
            84% 69%,
            63% 92%,
            35% 100%,
            9% 79%,
            0% 50%,
            17% 22%
        );
}

.poop-lobe::before,
.poop-lobe::after,
.poop-crown::before {
    content: "";

    position: absolute;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(45, 17, 3, 0.84),
            rgba(45, 17, 3, 0) 72%
        );
}

.poop-lobe::before {
    left: 13%;
    top: 41%;

    width: 19%;
    height: 22%;
}

.poop-lobe::after {
    right: 16%;
    bottom: 18%;

    width: 24%;
    height: 19%;
}

.poop-crown::before {
    left: 34%;
    top: 31%;

    width: 22%;
    height: 29%;
}

.poop-gloss {
    position: absolute;

    z-index: 8;

    border-radius: 50%;

    background:
        linear-gradient(
            120deg,
            rgba(255, 222, 156, 0.68),
            rgba(255, 184, 80, 0.16) 38%,
            rgba(255, 255, 255, 0) 70%
        );

    filter: blur(1px);

    transform:
        rotate(-19deg);
}

.poop-gloss-one {
    left: 33%;
    top: 19%;

    width: 19%;
    height: 8%;
}

.poop-gloss-two {
    left: 18%;
    top: 47%;

    width: 24%;
    height: 8%;
}

.poop-gloss-three {
    right: 15%;
    bottom: 17%;

    width: 25%;
    height: 7%;
}

.poop-smear {
    position: absolute;
    z-index: -1;

    bottom: -5%;

    height: 16%;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(84, 36, 7, 0.95),
            rgba(53, 19, 2, 0.68) 56%,
            rgba(42, 13, 1, 0) 78%
        );

    filter: blur(2px);
}

.poop-smear-left {
    left: -8%;
    width: 51%;

    transform:
        rotate(-7deg);
}

.poop-smear-right {
    right: -10%;
    width: 56%;

    transform:
        rotate(6deg);
}

.cash-bill {
    position: absolute;
    z-index: 18;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 29%;
    height: 17%;

    padding:
        2%
        3%;

    overflow: hidden;

    border:
        2px solid
        rgba(22, 72, 31, 0.95);

    border-radius: 4px;

    color: #143f1d;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 0 4px,
            rgba(0, 0, 0, 0.04) 4px 8px
        ),
        linear-gradient(
            145deg,
            #d9e6b7,
            #8eb06e
        );

    box-shadow:
        0 4px 7px
        rgba(0, 0, 0, 0.46),

        inset 0 0 9px
        rgba(255, 255, 255, 0.36);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 900;

    transform-origin: 50% 100%;
}

.cash-bill::before {
    content: "";

    position: absolute;
    inset: 12%;

    border:
        1px solid
        rgba(26, 83, 37, 0.62);
}

.cash-bill span,
.cash-bill b {
    position: relative;
    z-index: 2;
}

.cash-bill span {
    font-size:
        clamp(
            16px,
            2.2vw,
            31px
        );
}

.cash-bill b {
    font-size:
        clamp(
            11px,
            1.5vw,
            21px
        );
}

.cash-bill-one {
    left: 14%;
    top: 34%;

    transform:
        rotate(-24deg);

    animation:
        cashWiggleOne
        2.7s
        ease-in-out
        infinite;
}

.cash-bill-two {
    right: 6%;
    top: 48%;

    transform:
        rotate(19deg);

    animation:
        cashWiggleTwo
        3.2s
        ease-in-out
        infinite;
}

.cash-bill-three {
    left: 43%;
    bottom: 4%;

    transform:
        rotate(-7deg);
}

.cash-roll {
    position: absolute;
    z-index: 17;

    width: 15%;
    height: 24%;

    border:
        2px solid
        #204926;

    border-radius: 45%;

    background:
        repeating-linear-gradient(
            90deg,
            #9bbb75 0 8%,
            #cadcac 8% 15%
        );

    box-shadow:
        0 5px 8px
        rgba(0, 0, 0, 0.45),

        inset 0 0 8px
        rgba(255, 255, 255, 0.35);
}

.cash-roll::before,
.cash-roll::after {
    content: "";

    position: absolute;

    left: 50%;

    border-radius: 50%;

    transform:
        translateX(-50%);
}

.cash-roll::before {
    top: -7%;

    width: 86%;
    height: 22%;

    border:
        2px solid
        #234c29;

    background:
        radial-gradient(
            circle,
            #c9dca9,
            #6f9257
        );
}

.cash-roll::after {
    top: 38%;

    width: 112%;
    height: 18%;

    background:
        linear-gradient(
            #d8c150,
            #937523
        );
}

.cash-roll-one {
    left: 30%;
    top: 10%;

    transform:
        rotate(-14deg);
}

.cash-roll-two {
    right: 29%;
    top: 22%;

    transform:
        rotate(12deg);
}

.stink-cloud {
    position: absolute;
    z-index: 2;

    width: 23%;
    height: 38%;

    opacity: 0;

    filter: blur(3px);
}

.stink-cloud span {
    position: absolute;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(161, 204, 62, 0.54),
            rgba(87, 139, 28, 0.22) 55%,
            rgba(65, 105, 20, 0) 78%
        );
}

.stink-cloud span:nth-child(1) {
    left: 10%;
    bottom: 0;

    width: 50%;
    height: 35%;
}

.stink-cloud span:nth-child(2) {
    right: 7%;
    top: 27%;

    width: 58%;
    height: 37%;
}

.stink-cloud span:nth-child(3) {
    left: 13%;
    top: 0;

    width: 72%;
    height: 47%;
}

.stink-cloud-one {
    left: 23%;
    top: 4%;

    animation:
        stinkRiseOne
        4.4s
        ease-out
        infinite;
}

.stink-cloud-two {
    right: 18%;
    top: 14%;

    animation:
        stinkRiseTwo
        5.2s
        ease-out
        1.4s
        infinite;
}

.pile-fly {
    position: absolute;
    z-index: 22;

    width: 4.5%;
    aspect-ratio: 1 / 0.72;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 62% 42%,
            #525f54 0 12%,
            #121612 13% 49%,
            #020302 50% 100%
        );

    box-shadow:
        0 0 4px
        rgba(255, 255, 255, 0.28);
}

.pile-fly::before,
.pile-fly::after {
    content: "";

    position: absolute;

    top: -28%;

    width: 58%;
    height: 78%;

    border:
        1px solid
        rgba(58, 72, 62, 0.75);

    border-radius: 55%;

    background:
        rgba(205, 224, 208, 0.38);

    animation:
        flyWingBuzz
        70ms
        linear
        infinite
        alternate;
}

.pile-fly::before {
    left: -35%;

    transform:
        rotate(-33deg);
}

.pile-fly::after {
    right: -35%;

    transform:
        rotate(33deg);
}

.pile-fly i::before,
.pile-fly i::after {
    content: "";

    position: absolute;

    top: 43%;

    width: 87%;
    height: 2px;

    background: #17100b;
}

.pile-fly i::before {
    right: 62%;

    transform:
        rotate(26deg);
}

.pile-fly i::after {
    left: 62%;

    transform:
        rotate(-26deg);
}

.pile-fly-one {
    left: 12%;
    top: 28%;

    animation:
        flyOrbitOne
        3.1s
        linear
        infinite;
}

.pile-fly-two {
    right: 13%;
    top: 19%;

    animation:
        flyOrbitTwo
        3.8s
        linear
        infinite;
}

.pile-fly-three {
    left: 53%;
    top: 4%;

    animation:
        flyOrbitThree
        4.3s
        linear
        infinite;
}

.pile-caption {
    position: absolute;
    left: 50%;
    bottom: -3%;

    transform:
        translateX(-50%)
        rotate(-2deg);

    padding:
        1.7%
        4%;

    border:
        2px solid
        rgba(244, 199, 61, 0.72);

    border-radius: 999px;

    color: #ffe982;

    background:
        rgba(31, 8, 3, 0.78);

    box-shadow:
        0 0 12px
        rgba(230, 190, 54, 0.33);

    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    font-size:
        clamp(
            11px,
            1.45vw,
            21px
        );

    letter-spacing: 2px;

    text-shadow:
        2px 2px 0
        #551007;

    white-space: nowrap;
}

@keyframes cashPileBreathe {
    0%,
    100% {
        transform:
            scaleX(1)
            scaleY(1);
    }

    50% {
        transform:
            scaleX(1.018)
            scaleY(0.987);
    }
}

@keyframes cashWiggleOne {
    0%,
    100% {
        transform:
            rotate(-24deg)
            translateY(0);
    }

    50% {
        transform:
            rotate(-20deg)
            translateY(-4px);
    }
}

@keyframes cashWiggleTwo {
    0%,
    100% {
        transform:
            rotate(19deg)
            translateY(0);
    }

    50% {
        transform:
            rotate(23deg)
            translateY(-5px);
    }
}

@keyframes stinkRiseOne {
    0% {
        opacity: 0;
        transform:
            translateY(22%)
            scale(0.55)
            rotate(-8deg);
    }

    30% {
        opacity: 0.74;
    }

    100% {
        opacity: 0;
        transform:
            translateY(-92%)
            scale(1.28)
            rotate(12deg);
    }
}

@keyframes stinkRiseTwo {
    0% {
        opacity: 0;
        transform:
            translateY(17%)
            scale(0.50)
            rotate(8deg);
    }

    32% {
        opacity: 0.67;
    }

    100% {
        opacity: 0;
        transform:
            translateY(-85%)
            scale(1.22)
            rotate(-13deg);
    }
}

@keyframes flyWingBuzz {
    from {
        opacity: 0.27;
        scale: 0.82;
    }

    to {
        opacity: 0.70;
        scale: 1.15;
    }
}

@keyframes flyOrbitOne {
    0% {
        transform:
            translate(0, 0)
            rotate(0deg);
    }

    25% {
        transform:
            translate(90%, -70%)
            rotate(90deg);
    }

    50% {
        transform:
            translate(175%, 20%)
            rotate(180deg);
    }

    75% {
        transform:
            translate(75%, 90%)
            rotate(270deg);
    }

    100% {
        transform:
            translate(0, 0)
            rotate(360deg);
    }
}

@keyframes flyOrbitTwo {
    0% {
        transform:
            translate(0, 0)
            rotate(0deg);
    }

    33% {
        transform:
            translate(-140%, -45%)
            rotate(120deg);
    }

    66% {
        transform:
            translate(-70%, 120%)
            rotate(240deg);
    }

    100% {
        transform:
            translate(0, 0)
            rotate(360deg);
    }
}

@keyframes flyOrbitThree {
    0% {
        transform:
            translate(0, 0)
            rotate(0deg);
    }

    30% {
        transform:
            translate(130%, 75%)
            rotate(110deg);
    }

    68% {
        transform:
            translate(-105%, 130%)
            rotate(250deg);
    }

    100% {
        transform:
            translate(0, 0)
            rotate(360deg);
    }
}

@media (max-width: 760px) {
    #cash-poop-scene {
        bottom: 5%;

        width: min(
            74vw,
            390px
        );

        height: min(
            64vw,
            340px
        );
    }

    .pile-caption {
        letter-spacing: 1px;
    }
}

/* CASH_PILE_UPGRADE_END */

