body,
html {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #0f0f0f;
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

* {
    touch-action: manipulation;
    user-select: none;
    box-sizing: border-box;
    font-family: 'Game';

    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.yield {
    width: 100%;
}

.yield.noexp>div>div:not(:last-child) {
    display: none;
}

.yield>div {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-right: 10px;
}

.yield>div>div:nth-child(2) {
    font-size: 10px;
}

.yield>div>div:first-child {
    margin-top: 3px;
    font-size: 14px;
}

.yield>div>div:last-child {
    width: 100%;
    text-align: right;
    font-size: 18px;
}

.mult:after {
    display: block;
    content: '×';
    position: absolute;
    color: white;
    margin-top: -7px;
    margin-left: 4px;
}

button {
    display: none !important;
}

#game-container>div:first-child {
    white-space: pre-line;
}

.guide-header {
    display: flex;
    padding: 8px;
    gap: 8px;
}

.guide-header>* {
    padding: 6px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.guide-header>*.active {
    background-color: rgba(255, 255, 255, 0.3);
}

.menu-header {
    display: flex;
    padding: 8px;
    gap: 8px;
}

.menu-header>* {
    position: relative;
    padding: 6px 10px;
    border-radius: 6px;
    flex-grow: 1;
    text-align: center;
}

.menu-header>.guide {
    background-color: rgba(60, 255, 60, 0.2);
}

.menu-header>.guide.active {
    background-color: rgba(60, 255, 60, 0.4);
}

.menu-header>.ach {
    background-color: rgba(255, 200, 60, 0.2);
}

.menu-header>.ach.active {
    background-color: rgba(255, 200, 60, 0.4);
}

.menu-header>.holo {
    background-color: rgba(255, 255, 255, 0.2);
}

.menu-header>.holo.active {
    background-color: rgba(255, 255, 255, 0.4);
}

.menu-header>.mom {
    background-color: rgba(100, 100, 255, 0.2);
}

.menu-header>.mom.active {
    background-color: rgba(100, 100, 255, 0.4);
}

.menu-header>.skins {
    background-color: rgba(255, 100, 255, 0.2);
}

.menu-header>.skins.active {
    background-color: rgba(255, 100, 255, 0.4);
}

.menu-header>.shop {
    background-color: rgba(255, 255, 100, 0.2);
}

.menu-header>.shop.active {
    background-color: rgba(255, 255, 100, 0.4);
}

.menu-header>.red-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background-color: #ff0000;
    border-radius: 50%;
}

.mom-con {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.mom-con>.current {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mom-con>.current>div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.mom-con>.upgrades {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mom-con>.upgrades>div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.mom-con>.upgrades>div>.label {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px;
}

.mom-con>.upgrades>div>.cost {
    background-color: rgba(0, 255, 0, 0.5);
    padding: 8px;
}

.mom-con>.upgrades>.poor {
    opacity: 0.5;
}

.shop-con {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px;
    text-align: center;
}

.shop-con>.balance {
    font-size: 24px;
}

.shop-con>.invite,
.shop-con>.pack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.shop-con>.invite>.title,
.shop-con>.pack>.title {
    font-size: 18px;
    background-color: rgba(255, 255, 100, 0.2);
    padding: 10px;
}

.shop-con>.invite>.amount,
.shop-con>.pack>.amount {
    font-size: 20px;
}

.shop-con>.invite>.cost,
.shop-con>.pack>.cost {
    font-size: 20px;
    background-color: rgba(0, 255, 0, 0.5);
    padding: 10px;
}

.forge-con {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

.forge-con>.balance {
    font-size: 24px;
}

.forge-con>.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.forge-con .upgrade {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.forge-con .upgrade>.label {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px;
}

.forge-con .upgrade>.cost {
    background-color: rgba(0, 255, 0, 0.5);
    padding: 8px;
}

.forge-con .upgrade>.cost {
    margin-top: auto;
    font-size: 18px;
}

.forge-con .poor {
    opacity: 0.5;
}

.ach-con {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ach-con>.achievement {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    display: flex;
    padding: 8px 12px;
    align-items: center;
    gap: 20px;
}

.ach-con>.achievement>.meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ach-con>.achievement>.reward {
    white-space: pre;
    width: 60px;
    text-align: right;
}

.ach-con>.achievement.completed {
    background-color: rgba(255, 255, 255, 0.2);
}

.ach-con>.achievement.completed>.reward {
    padding-right: 10px;
    font-size: 20px;
}

.cos-con {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cos-con .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: center;
}

.cos-con .cosmetic {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.cos-con .cosmetic>.title {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px;
}

.cos-con .cosmetic>.cost {
    background-color: rgba(0, 255, 0, 0.5);
    padding: 8px;
    font-size: 18px;
}

.cos-con .cosmetic .cost.poor {
    opacity: 0.5;
    background-color: rgba(0, 0, 0, 0.2);
}

.cos-con>.grid>.separator {
    grid-column: 1 / -1;
}

.cos-con .cosmetic>.preview {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
}

.cos-con .cosmetic>.preview>.donut {
    position: absolute;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 50%;
    border: 30px solid #0f0;
    border-left: 30px solid transparent;
    width: 0;
    height: 0;
    left: 50%;
    top: 50%;
}

.cos-con .cosmetic>.preview>.donut:before {
    content: '';
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 10px solid #ff0;
    left: 0;
    top: 0;
    transform-origin: center;
    transform: translate(-50%, -50%);
}

.cos-con .cosmetic>.preview>.donut:after {
    content: '';
    position: absolute;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    border: 10px solid #f60;
    border-left: 10px solid transparent;
    border-bottom: 10px solid transparent;
    left: 0;
    top: 0;
    transform-origin: center;
    transform: translate(-50%, -50%);
}

.cos-con .cosmetic>.preview>.dots {
    position: absolute;
    transform-origin: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #0f0;
    width: 30px;
    height: 30px;
    left: 50%;
    top: 85%;

    box-shadow:
        40px -30px #ff0,
        -40px -30px #f60,
        0px -60px #d63333,
        40px -90px #fc4cfa,
        -40px -90px #9e48f3,
        0px -120px #3f3fd3;
}

.cos-con .cosmetic>.preview>.pie {
    position: absolute;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 50%;
    border: 66px solid #f60;
    border-left: 66px solid transparent;
    border-bottom: 66px solid transparent;
    width: 0;
    height: 0;
    left: 50%;
    top: 50%;
}

.cos-con .cosmetic>.preview>.pie:before {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 48px solid #ff0;
    left: 0;
    top: 0;
    transform-origin: center;
    transform: translate(-50%, -50%);
}

.cos-con .cosmetic>.preview>.pie:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 30px solid #0f0;
    border-left: 30px solid transparent;
    left: 0;
    top: 0;
    transform-origin: center;
    transform: translate(-50%, -50%);
}

.cos-con .cosmetic>.preview>.orbit {
    position: absolute;
    transform-origin: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #0f0;
    width: 15px;
    height: 15px;
    left: 50%;
    top: 60%;

    box-shadow:
        15px 15px #ff0,
        33px 26px #f60,
        43px -40px #d63333,
        55px -55px #fc4cfa,
        -60px -60px #9e48f3,
        0px 60px #3f3fd3;
}

.cos-con .cosmetic>.preview>.eq {
    position: absolute;
    transform-origin: center;
    transform: translate(-50%, -50%);
    background-color: #ff0;
    border-radius: 6px;
    width: 40px;
    height: 24px;
    left: 50%;
    top: 80%;
    box-shadow: 0px -35px #ff0;
}

.cos-con .cosmetic>.preview>.eq:before {
    content: '';
    position: absolute;
    transform-origin: center;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    width: 40px;
    height: 24px;
    background-color: #0f0;
    left: -80%;
    top: 50%;
    box-shadow:
        0px -35px #0f0,
        0px -70px #0f0;
}

.cos-con .cosmetic>.preview>.eq:after {
    content: '';
    position: absolute;
    transform-origin: center;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    width: 40px;
    height: 24px;
    background-color: #f60;
    left: 180%;
    top: 50%;
    box-shadow:
        0px -35px #f60,
        0px -70px #f60,
        0px -105px #f60;
}

.cos-con .cosmetic>.preview.clock>div:nth-child(1) {
    position: absolute;
    transform-origin: center bottom;
    transform: translate(-50%, -50%);
    border-top: 20px solid #0f0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    left: 50%;
    top: 50%;
}

.cos-con .cosmetic>.preview.clock>div:nth-child(1):before {
    content: '';
    position: absolute;
    transform-origin: center bottom;
    transform: translate(-50%, -50%);
    border-bottom: 40px solid #0f0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: -40px;
}

.cos-con .cosmetic>.preview.clock>div:nth-child(2) {
    position: absolute;
    transform-origin: center bottom;
    transform: translate(-50%, -50%) rotate(80deg);
    border-top: 20px solid #ff0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    left: 50%;
    top: 50%;
}

.cos-con .cosmetic>.preview.clock>div:nth-child(2):before {
    content: '';
    position: absolute;
    transform-origin: center bottom;
    transform: translate(-50%, -50%);
    border-bottom: 50px solid #ff0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: -45px;
}

.cos-con .cosmetic>.preview.clock>div:nth-child(3) {
    position: absolute;
    transform-origin: center bottom;
    transform: translate(-50%, -50%) rotate(220deg);
    border-top: 20px solid #f60;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    left: 50%;
    top: 50%;
}

.cos-con .cosmetic>.preview.clock>div:nth-child(3):before {
    content: '';
    position: absolute;
    transform-origin: center bottom;
    transform: translate(-50%, -50%);
    border-bottom: 60px solid #f60;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    top: -50px;
}

.cos-con .cosmetic.owned>.title {
    background-color: rgba(0, 255, 0, 0.5);
}

.cos-con .cosmetic.owned>.cost {
    background-color: rgba(0, 0, 0, 0.2);
}

.shop-con .daily {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.shop-con .daily .title {
    grid-column: 1 / 5;
    padding: 8px;
}

.shop-con .daily .button {
    background-color: rgba(0, 255, 0, 0.5);
    grid-column: 2 / 4;
    border-radius: 6px;
    padding: 8px;
    font-size: 20px;
}

.shop-con .daily .button.claimed {
    background-color: rgba(0, 0, 0, 0.5);
}

.shop-con .daily .day {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.shop-con .daily .day>div:first-child {
    background-color: rgba(0, 0, 0, 0.2);
}

.shop-con .daily .day:nth-child(2) {
    background-color: rgba(0, 255, 0, 0.2);
}

.shop-con .daily .day>div {
    padding-top: 8px;
    padding-bottom: 8px;
}

.top-shop {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding: 8px;
}

.top-shop>.title {
    font-size: 22px;
    margin-bottom: 12px;
    margin-top: 8px;
}

.top-shop>.pack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 6px;
    overflow: hidden;
}

.top-shop>.pack>.amount {
    padding: 8px;
    background-color: rgba(255, 255, 100, 0.2);
}

.top-shop>.pack>.cost {
    padding: 8px;
    background-color: rgba(0, 255, 0, 0.5);
}

.settings {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding: 8px;
}

.settings>.title {
    font-size: 22px;
    margin-bottom: 12px;
    margin-top: 8px;
}

.settings>label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    padding-left: 20px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 20px;
}

.settings>label>input {
    display: none;
}

.settings>label>.slider {
    position: relative;
    width: 60px;
    height: 34px;
    border-radius: 17px;
    background-color: #000;
}

.settings>label>.slider:before {
    position: absolute;
    content: " ";
    height: 26px;
    width: 26px;
    top: 4px;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 17px;
}

.settings>label>input:checked+.slider:before {
    right: 4px;
}

.settings>label>input:not(:checked)+.slider:before {
    left: 4px;
}

.settings>label>input:checked+.slider {
    background-color: #2196F3;
}

.settings>.register {
    height: 40px;
    border-radius: 6px;
    margin-top: 15px;
    line-height: 40px;
    font-size: 22px;
    background: rgb(57, 130, 88);
    background: radial-gradient(circle, rgb(57, 130, 88) 0%, #0f0 100%);
}

.toaster {
    z-index: 10;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    pointer-events: none;
}

.toast {
    padding: 8px 12px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 1);
    font-size: 14px;
    opacity: 1;

    transition: all 0.3s ease-in-out;

    @starting-style {
        opacity: 0;
    }
}

.toast.hide {
    opacity: 0;
}

.tutorial {
    position: absolute;
    z-index: 1000;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    box-sizing: content-box;

    transition: opacity 0.3s ease-in-out;

    opacity: 1;

    @starting-style {
        opacity: 0;
    }
}

.tutorial .overlay {
    position: absolute;
    width: 0px;
    height: 0px;
    border: 2000px solid rgba(0, 0, 0, 0.9);
    left: calc(50%);
    top: calc(50%);
    box-sizing: content-box;
    transform: translate(-50%, -50%);

    border-radius: 2100px;

    box-shadow: inset 0 0 4px #0f0;

    transition: all 0.3s ease-in-out;
}

.tutorial .step0,
.tutorial .step1,
.tutorial .step2,
.tutorial .step3,
.tutorial .step4,
.tutorial .step5,
.tutorial .step6,
.tutorial .step6a,
.tutorial .step7,
.tutorial .step8 {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 24px;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    text-align: center;
    white-space: pre-line;

    transition: opacity 0.3s ease-in-out;
    opacity: 1;

    @starting-style {
        opacity: 0;
    }
}

.tutorial .step0 {
    top: 40%;
}

.tutorial .step1 {
    top: 45%;
    gap: 200px;
}

.tutorial .step2 {
    top: 160px;
}

.tutorial .step3 {
    top: 220px;
}

.tutorial .step4 {
    top: 240px;
    left: calc(50% + 35px);
    gap: 120px;
}

.tutorial .step4 .btn {
    margin-right: 70px;
}

.tutorial .step5 {
    top: calc(100% - 240px);
}

.tutorial .step6 {
    top: calc(45%);
}

.tutorial .step6a {
    top: 190px;
}

.tutorial .step7 {
    top: calc(60%);
}

.tutorial .step8 {
    top: calc(50%);
}

.tutorial .btn {
    background-color: #0a0;
    border-radius: 12px;
    padding: 10px 30px;
    box-shadow: 2px 2px #040;

    transition: opacity 0.3s 0.6s ease-in-out;

    opacity: 1;

    @starting-style {
        opacity: 0;
    }
}

.tutorial.s1 .overlay {
    top: calc(50%);
    height: 100px;
    width: 100px;
}

.tutorial.s2 .overlay {
    top: 27px;
    height: 40px;
    width: 200px;
    border-radius: 2010px;
}

.tutorial.s3 .overlay {
    top: 35px;
    left: calc(100% - 40px);
    height: 60px;
    width: 70px;
    border-radius: 2010px;
}

.tutorial.s4 .overlay {
    top: 165px;
    left: 30px;
    height: 320px;
    width: 50px;
    border-radius: 2010px;
}

.tutorial.s5 .overlay {
    top: calc(100% - 35px);
    left: calc(26%);
    height: 70px;
    width: calc(52%);
    border-radius: 2010px;
}

.tutorial.s6 .overlay {
    top: calc(100% - 133px);
    left: calc(50%);
    height: 50px;
    width: calc(56%);
    border-radius: 2010px;
}

.tutorial.s6a .overlay {
    top: 52px;
    left: calc(50%);
    height: 25px;
    width: calc(40%);
    border-radius: 2010px;
}

.tutorial.s7 .overlay {
    top: calc(100% - 84px);
    left: calc(100% - 30px);
    height: 50px;
    width: 50px;
    border-radius: 2010px;
}

.tutorial.s8 .overlay {
    top: calc(100% - 84px);
    left: calc(100% - 30px);
    height: 0px;
    width: 0px;
    border-radius: 2120px;
}

.tutorial .hidden {
    opacity: 0;
}

.attack .bank,
.attack .yield,
.attack .pmult,
.attack .mult {
    display: none !important;
}

.footer-attack,
.footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.footer-attack.hidden,
.footer.hidden {
    display: none;
}

.footer-attack .controls,
.footer .controls {
    position: relative;
    font-size: 32px;
}

.footer-attack .controls .right,
.footer .controls .right {
    position: absolute;
    bottom: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 6px;
}

.footer-attack .controls .momentum,
.footer .controls .momentum {
    position: relative;
    flex-grow: 1;
    background-color: black;
    border-radius: 8px;
    border: 4px solid black;
    width: 50%;
    margin: auto;
    margin-bottom: 6px;
}

.footer-attack .controls .left,
.footer .controls .left {
    position: absolute;
    bottom: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 6px;
}

.footer-attack .controls .momentum .fill,
.footer .controls .momentum .fill {
    background-color: #3f3fd3;
    border-radius: 6px;
    width: 100%;
    height: 22px;
}

.footer-attack .controls .momentum .fill.active,
.footer .controls .momentum .fill.active {
    background-color: #4596ff;
}

.footer-attack .controls .momentum .text,
.footer .controls .momentum .text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

.footer-attack .controls .button,
.footer .controls .button {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 1);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot::after {
    position: absolute;
    content: ' ';
    background-color: #ff0000;
    border-radius: 6px;
    width: 12px;
    height: 12px;
    top: -2px;
    right: -2px;
}

.footer-attack .controls .button.hidden,
.footer .controls .button.hidden {
    display: none;
}

.footer .content {
    background-color: rgba(0, 0, 0, 0.3);
}

.footer .ftr-header {
    display: flex;
    gap: 6px;
    padding: 6px;
    background-color: rgba(0, 0, 0, 0.2);
}

.footer .ftr-header>* {
    width: 40px;
    height: 40px;
    white-space: pre;
    background-color: rgba(0, 0, 0, 1);
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}

.footer .ftr-header>.hidden {
    display: none;
}

.footer .ftr-header>.ftr-buymax {
    width: 50px;
    font-size: 15px;
}

.footer .ftr-header>.ftr-menu {
    position: relative;
}

.footer .ftr-header>.ftr-spacer {
    width: 0;
    background-color: none;
    margin-left: auto;
}

.footer .ftr-header>.off {
    color: #333333;
}

.footer .ftr-header .tab {
    color: #ffffff;
}

.footer .ftr-header .tab.active {
    color: #00ff00;
}

.footer .ftr-header .hidden {
    display: none;
}

.footer .ftr-content {
    background-color: rgba(0, 0, 0, 0.5);
}

.footer .ftr-content .hidden {
    display: none;
}

.footer .ftr-revos {
    display: flex;
    gap: 8px;
    padding: 6px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.footer .ftr-revos>.revo {
    /* width: 185px; */
    width: calc(50% - 4px);
    color: black;
    height: 48px;
    line-height: 24px;
    border-radius: 6px;
    text-align: center;
    white-space: pre;
}

.footer .ftr-content .ftr-revos .filler {
    visibility: hidden;
}

/* .footer .ftr-content .ftr-revos .hidden:last-of-type {
    display: block !important;
    visibility: hidden;
} */

/* .footer .ftr-content .ftr-revos .hidden:not(:has(~.hidden)) {
    display: block !important;
    visibility: hidden;
} */

.footer .ftr-revos.minimized>* {
    /* flex-basis: 15%; */
    /* width: 69px; */
    width: calc(20% - 10px);
    flex-grow: 1;
    line-height: 48px;
}

.footer .ftr-ascends {
    display: grid;
    gap: 8px;
    padding: 6px;
    grid-template-columns: 1fr 1fr;
}

.footer .ftr-ascends>.ascend {
    background-color: white;
    border-radius: 6px;
    color: black;
    text-align: center;
    white-space: pre;
    line-height: 20px;
    padding: 4px;
}

.footer .ftr-ascends>.balance {
    grid-column: 1 / 3;
    text-align: center;
    font-size: 24px;
}

.footer .ftr-verge {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px;
}

.footer .ftr-verge>.balance {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    padding: 8px;
    padding-bottom: 0px;
}

.footer .ftr-verge .singularity {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-right: 6px;
    padding-left: 2px;
}

.footer .ftr-verge .singularity .bar {
    position: relative;
    flex-grow: 1;
    background-color: black;
    border-radius: 8px;
    border: 4px solid black;
}

.footer .ftr-verge .singularity .fill {
    background-color: #00ff00;
    border-radius: 6px;
    width: 100%;
    height: 22px;
}

.footer .ftr-verge .singularity .text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.footer .ftr-verge .singularity .icon {
    font-size: 32px;
    line-height: 30px;
}

.macros {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    background-color: rgba(0, 0, 0, 1);

    border-radius: 18px;

    width: 80%;
    /* height: 200px; */

    padding: 6px;

    display: flex;
    flex-direction: column;
}

.macros.hidden {
    display: none;
}

.macros .title {
    margin-top: 4px;
    font-size: 24px;
    text-align: center;
    margin-bottom: 12px;
}

.macros .content {
    background-color: rgba(255, 255, 255, 0.05);
    width: 100%;
    flex-grow: 1;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    padding: 6px;
}

.macros .content .slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.macros .content .slots .slot {
    color: black;
    width: 60px;
    height: 40px;
    background-color: #ffff00;
    border-radius: 6px;
    text-align: center;
    line-height: 40px;
    opacity: 0.3;
}

.macros .content .slots .slot.active {
    background-color: #00ff00;
}

.macros .content .slots .slot.selected {
    opacity: 1;
}

.macros .content .macro {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    border-radius: 6px;
}

.macros .content .macro .controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.macros .content .macro label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.macros input {
    display: none;
}

.macros .slider {
    position: relative;
    width: 40px;
    height: 26px;
    border-radius: 17px;
    background-color: #555;
}

.macros .slider:before {
    position: absolute;
    content: " ";
    height: 18px;
    width: 18px;
    top: 4px;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 17px;
}

.macros input:checked+.slider:before {
    right: 4px;
}

.macros input:not(:checked)+.slider:before {
    left: 4px;
}

.macros input:checked+.slider {
    background-color: #2196F3;
}

.macros {

    select,
    ::picker(select) {
        appearance: base-select;
    }

    select::picker-icon {
        display: none;
    }

    select {
        background: linear-gradient(135deg,
                rgba(40, 40, 50, 0.4) 0%,
                rgba(60, 60, 70, 0.25) 50%,
                rgba(50, 50, 60, 0.35) 100%);
        border: none;
        /* 1px solid rgba(255, 255, 255, 0.2); */
        color: white;
        flex-grow: 1;
    }

    .row {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    ::picker(select) {
        /* background: transparent; */
        border: none;
        border-radius: 6px;
        margin-bottom: 6px;
        box-shadow: none;
        overflow: visible;
    }

    option::checkmark {
        content: "●";
        color: #222;
    }
}

.macros .run {
    font-size: 40px;
    width: 40px;
    height: 40px;
    background-color: #00ff00;
    color: black;
    border-radius: 20px;
    line-height: 40px;
    text-align: center;
}

.chest .close,
.macros .close {
    width: 40px;
    height: 40px;
    font-size: 32px;
    text-align: center;
    line-height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: absolute;
    right: 6px;
    top: 6px;
}

.footer-attack .controls .button.ftr-chests {
    position: relative;
}

.footer-attack .controls .button.ftr-chests>* {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #00ff00;
}

.footer-attack .controls .button.ftr-chests>.count {
    color: black;
    font-size: 18px;
}

.footer-attack .ftr-tabs {
    background-color: rgba(0, 0, 0, 0.3);
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    padding-top: 6px;
    gap: 2px;
}

.footer-attack .ftr-tabs>div {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 6px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    color: black;

    background:
        linear-gradient(0deg, transparent 92%, #ffffff44 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #ffffff, var(--base-color) 70%) 100%);
}

.footer-attack .ftr-tabs>div canvas {
    filter: brightness(0);
    opacity: 0.5;
}

.footer-attack .ftr-tabs>div.active canvas {
    filter: brightness(1);
}

.footer-attack .ftr-tabs .ftr-prestige {
    --base-color: #00ff00;
}

.footer-attack .ftr-tabs .ftr-gear {
    --base-color: #4596ff;
}

.footer-attack .ftr-tabs .ftr-tree {
    --base-color: #ffff00;
}

.footer-attack .ftr-tabs .ftr-shop {
    --base-color: #9e48f3;
}

.footer-attack .ftr-abilities {
    display: flex;
    justify-content: center;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.3);
    align-items: center;
    gap: 12px;
}

.footer-attack .ability {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-attack .ability canvas {
    max-width: 70%;
    max-height: 70%;
}

.footer-attack .ability .activation {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-origin: border-box;
    background-clip: border-area;
    border: 5px solid transparent;
    z-index: 1;
}

.footer-attack .ability.speed img {
    transform: scaleX(-1);
}

.footer-attack .ability .cooldown {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 0px solid rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.chest {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popup-skills.hidden,
.popup-bingo-set.hidden,
.popup-inventory.hidden,
.chest.hidden {
    display: none;
}

.chest .items {
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: 100%;
    width: 100%;
    padding-bottom: 30px;
    justify-content: center;
    align-items: center;
    gap: 10%;
}

.chest .items .item-container {
    display: flex;
    justify-content: center;
    align-items: center;

    --scale-delay: calc(300ms + var(--index) * 300ms);
    --rarity-delay: calc(300ms + var(--index) * 300ms + 200ms);
    --level-delay: calc(300ms + var(--index) * 300ms + 200ms);
}

.chest .items .item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    box-shadow: inset 0 0 6px var(--item-tier-color);
    border-radius: 8px;
    padding: 10px;
    opacity: 1;

    transition: box-shadow 0.15s linear;
    transition-delay: var(--scale-delay);

    @starting-style {
        box-shadow: inset 0 0 0px var(--item-tier-color);
    }
}

.chest .items .canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;

    transform: scale(1);
    /* transition: transform 0.5s cubic-bezier(.17, .67, .44, .96); */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--scale-delay);

    @starting-style {
        transform: scale(0);
    }
}

.chest .items .rarity {
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--rarity-delay);
    opacity: 1;
    color: var(--item-tier-color);

    @starting-style {
        opacity: 0;
    }
}

.chest .items .level {
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--level-delay);
    opacity: 1;

    @starting-style {
        opacity: 0;
    }
}

.popup-inventory {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popup-inventory .background {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 1);
    border-radius: 12px;
    padding: 6px;
    width: 80%;

    outline: 2px solid #4596ff;
}

.popup-inventory .header {
    display: flex;
    width: 100%;
}

.popup-inventory .header>div:not(.close) {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    --base-color: #4596ff;

    background:
        linear-gradient(0deg, transparent 92%, #00000044 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #000000, var(--base-color) 70%) 100%);
}

.popup-inventory .header>div.active {
    background:
        linear-gradient(0deg, transparent 92%, #ffffff44 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #ffffff, var(--base-color) 70%) 100%);
}

.popup-inventory .header>div canvas {
    filter: brightness(0);
    opacity: 0.7;
}

.popup-inventory .header>div.active canvas {
    filter: brightness(1);
}

.popup-inventory .header .inventory {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.popup-inventory .header .bingo {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-left: 1px solid rgba(0, 0, 0, 0.5);
}

.popup-inventory .title {
    line-height: 40px;
    font-size: 20px;
}

.popup-inventory .close {
    width: 40px;
    height: 40px;
    font-size: 32px;
    text-align: center;
    line-height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    flex-grow: 0;
    margin-left: 6px;
}

.popup-inventory .content {
    width: 100%;
}

.popup-inventory .content>.hidden {
    display: none;
}

.popup-inventory .bingo-content,
.popup-inventory .inventory-content {
    height: 414px;
}

.popup-inventory .bingo-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
    width: 100%;
    overflow-y: auto;
    background-color: #4596ff;
    border-radius: 6px;
}

.popup-inventory .bingo-content .bingo-set {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    gap: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.popup-inventory .bingo-content .bingo-set canvas {
    background-color: rgba(0, 0, 0, 1);
    border-radius: 14px;
}

.popup-inventory .bingo-content .bingo-set .details-button {
    height: 36px;
    width: 100%;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    color: black;

    --base-color: #4596ff;

    background:
        linear-gradient(0deg, transparent 92%, #ffffff44 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #ffffff, var(--base-color) 70%) 100%);
}

.popup-inventory .inventory-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    width: 100%;
}

.popup-inventory .inventory-tabs .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 68px;

    --base-color: #4596ff;

    border-top-left-radius: 6px;
    border-top-right-radius: 6px;

    padding: 12px;
    padding-bottom: 4px;

    background:
        linear-gradient(0deg, transparent 92%, #00000044 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #000000, var(--base-color) 70%) 100%);
}

.popup-inventory .inventory-tabs .tab .icon-container {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    padding: 4px;
}

.popup-inventory .inventory-tabs .tab .text {
    font-size: 14px;
    margin-top: -4px;
}

.popup-inventory .inventory-tabs .tab .icon-container canvas {
    object-fit: scale-down;
    object-position: center;
    width: 100%;
    height: 100%;
}

.popup-inventory .inventory-tabs .tab.active {
    background:
        linear-gradient(0deg, transparent 92%, #ffffff44 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #ffffff, var(--base-color) 70%) 100%);
}

.popup-inventory .content .item-list {
    background-color: #4596ff;
    height: 300px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 6px;
    overflow-y: auto;
}

.popup-inventory .item-list .item {
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.popup-inventory .item-list .item.equipped {
    background-color: rgba(0, 0, 0, 0.9);
}

.popup-inventory .item-list .icon-container {
    display: flex;
    width: 40px;
    height: 40px;
}

.popup-inventory .item-list .icon-container canvas {
    object-fit: scale-down;
    object-position: center;
    width: 100%;
    height: 100%;
}

.popup-inventory .item-list .item .meta {
    display: flex;
    flex-grow: 1;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
}

.popup-inventory .item-list .item .stats {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.popup-inventory .sell-extra {
    height: 40px;
    width: 160px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    color: black;
    margin: auto;
    margin-top: 6px;

    --base-color: #4596ff;

    background:
        linear-gradient(0deg, transparent 92%, #ffffff44 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #ffffff, var(--base-color) 70%) 100%);
}

/* repeating-conic-gradient(#fff 0 9deg, #000 9deg 18deg) */

.popup-rewind {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popup-rewind .background {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 1);
    border-radius: 12px;
    padding: 6px;
    width: 80%;

    gap: 6px;

    outline: 2px solid #00ff00;
}

.popup-attack-shop .title,
.popup-rewind .title {
    line-height: 40px;
    font-size: 20px;
}

.popup-attack-shop .close,
.popup-topup .close,
.popup-skills .close,
.popup-bingo-set .close,
.popup-rewind .close {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 40px;
    height: 40px;
    font-size: 32px;
    text-align: center;
    line-height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    margin-left: 6px;
}

.popup-rewind .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.popup-rewind .damage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: #00ff00;
    gap: 6px;
    padding: 6px;
    border-radius: 6px;
}

.popup-rewind .damage>* {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background-color: black;
    border-radius: 6px;
    padding: 6px;
}

.popup-rewind .damage .label,
.popup-rewind .total-damage {
    grid-column: 1 / 3;
    background: none;
    color: black;
    font-size: 24px;
    padding: 0;
}

.popup-rewind .total-damage .icon {
    font-size: 40px;
    line-height: 30px;
}

.popup-rewind .damage .stardust .icon {
    color: #fc4cfa;
    font-size: 40px;
    line-height: 30px;
    margin-top: -6px;
}

.popup-rewind .damage .singularity .icon {
    font-size: 34px;
    line-height: 30px;
}

.popup-rewind .damage .bingo canvas {
    transform: scale(0.8);
}

.popup-rewind .sdust {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background-color: #00ff00;
    border-radius: 6px;
    gap: 6px;
    padding: 6px;
    text-align: center;
}

.popup-rewind .sdust>div {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 6px;
    background-color: black;
    border-radius: 6px;
}

.popup-rewind .sdust .sub {
    color: black;
}

.popup-rewind .sdust .label {
    grid-column: 1 / 3;
    color: black;
    font-size: 22px;
}

.popup-rewind .next div,
.popup-rewind .balance div {
    line-height: 30px;
}

.popup-rewind .sdust .icon {
    color: #fc4cfa;
    font-size: 30px;
    line-height: 30px;
    margin-top: -3px;
}

.popup-rewind .button-rewind {
    height: 40px;
    width: 120px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    color: black;

    --base-color: #00ff00;

    background:
        linear-gradient(0deg, transparent 92%, #ffffff44 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #ffffff, var(--base-color) 70%) 100%);
}

.popup-rewind .button-rewind.disabled {
    --base-color: #7c7c7c;

    background:
        linear-gradient(0deg, transparent 92%, #33333344 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #333333, var(--base-color) 70%) 100%);
}

.popup-rewind.hidden {
    display: none;
}

.popup-bingo-set {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popup-bingo-set .background {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 1);
    border-radius: 12px;
    padding: 6px;
    gap: 12px;
    width: 60%;

    outline: 2px solid #4596ff;
}

.popup-bingo-set .title {
    line-height: 40px;
    font-size: 20px;
}

.popup-bingo-set .content {
    background-color: #4596ff;
    border-radius: 6px;
    padding: 6px;
}

.popup-bingo-set .content.bonuses {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.popup-bingo-set .content.bonuses .label {
    font-size: 20px;
    text-align: center;
    color: black;
}

.popup-bingo-set .content.bonuses .bonus-row {
    background-color: black;
    border-radius: 6px;
    padding: 6px 12px;
}

.popup-bingo-set .content.bonuses .complete-bonus {
    color: #777777;
}

.popup-bingo-set .content.bonuses .complete-bonus.completed {
    color: #00ff00;
}

.popup-bingo-set .bingo-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.popup-bingo-set .bingo-items .icon-container {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    padding: 6px;
}

.popup-bingo-set .bingo-items .icon-container canvas {
    object-fit: scale-down;
    object-position: center;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.popup-bingo-set .bingo-items .icon-container canvas.active {
    opacity: 1;
}

.popup-skills {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popup-skills .background {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 1);
    border-radius: 12px;
    padding: 6px;
    width: 80%;

    gap: 6px;

    outline: 2px solid #ffff00;
}

.popup-skills .title {
    line-height: 40px;
    font-size: 20px;
}

.popup-skills .content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.popup-skills .skill {
    display: flex;
    gap: 6px;
    width: 100%;
    padding: 6px;
    border-radius: 6px;
}

.popup-skills .skill.fire {
    background-color: #ff4400;
}

.popup-skills .skill.overcharge {
    background-color: #0066ff;
}

.popup-skills .skill .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-skills .skill.overcharge canvas {
    transform: scaleX(-1);
}

.popup-skills .skill.swipes {
    background-color: #ffff00;
}

.popup-skills .skill .stats {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 6px 12px;
    border-radius: 6px;
}

.popup-topup.hidden {
    display: none;
}

.popup-topup {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.popup-topup .background {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 1);
    border-radius: 12px;
    padding: 6px;
    width: 80%;

    gap: 6px;

    outline: 2px solid #9e48f3;
}

.popup-topup .title {
    line-height: 40px;
    font-size: 20px;
}

.popup-topup .pack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    text-align: center;
    border-radius: 6px;
    overflow: hidden;
    font-size: 20px;
}

.popup-topup .pack .amount {
    padding: 8px;
    background-color: rgba(158, 72, 243, 0.2);
}

.popup-topup .pack .cost {
    padding: 8px;
    background-color: rgba(0, 255, 0, 0.5);
}


.popup-attack-shop.hidden {
    display: none;
}

.popup-attack-shop {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popup-attack-shop .background {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 1);
    border-radius: 12px;
    padding: 6px;
    width: 90%;

    gap: 6px;

    outline: 2px solid #9e48f3;
}

.popup-attack-shop .balance {
    font-size: 24px;
}

.popup-attack-shop .deals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #9e48f3;
    border-radius: 12px;
    gap: 6px;
    padding: 6px;
    width: 100%;
}

.popup-attack-shop .deals .reset {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 20px;
}

.popup-attack-shop .deals .item {
    background-color: black;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 6px;
    font-size: 14px;
}

.popup-attack-shop .deals .item .name,
.popup-attack-shop .deals .item .stats {
    white-space: pre;
    margin-top: auto;
}

.popup-attack-shop .deals .item .icon-stardust {
    color: #fc4cfa;
    font-size: 40px;
    text-shadow: 8px 4px 0px #fc4cfa66, -8px 4px 0px #fc4cfa66;
}

.popup-attack-shop .deals .item .icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    padding: 6px;
}

.popup-attack-shop .deals .item .icon-container canvas {
    object-fit: scale-down;
    object-position: center;
    width: 100%;
    height: 100%;
}

.popup-attack-shop .deals .item .buy {
    --base-color: #9e48f3;

    width: 100%;
    border-radius: 6px;
    padding-top: 6px;
    padding-bottom: 4px;

    font-size: 15px;

    margin-top: auto;

    background:
        linear-gradient(0deg, transparent 92%, #33333344 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #333333, var(--base-color) 70%) 100%);
}

.popup-attack-shop .deals .item .buy {
    --base-color: #9e48f3;

    width: 100%;
    border-radius: 6px;
    padding-top: 6px;
    padding-bottom: 4px;

    font-size: 15px;

    margin-top: auto;

    background:
        linear-gradient(0deg, transparent 92%, #33333344 92%),
        linear-gradient(0deg, var(--base-color) 0%, color-mix(in srgb, #333333, var(--base-color) 70%) 100%);
}

.popup-attack-shop .deals .item.sold>*:not(.buy) {
    opacity: 0.4;
}

.popup-attack-shop .deals .item.sold .buy {
    --base-color: #9f9f9f;
}

.tutorial.attack>* {
    position: absolute;
}

.tutorial.attack .title {
    background-color: rgba(0, 0, 0, 0.9);
    font-size: 32px;
    padding: 20px;
    top: 0;
    width: 100%;
    text-align: center;
}

.tutorial.attack .base {
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    white-space: pre;
}

.tutorial.attack .abilities {
    background-color: rgba(0, 0, 0, 0.9);
    bottom: 180px;
    width: 80%;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #3f3fd3;
    border-radius: 10px;
    padding: 10px;
}

.tutorial.attack .abilities::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #3f3fd3;
    border-radius: 10px;
    bottom: -135px;
    width: 55vw;
    height: 110px;
    box-shadow: inset 0 0 10px 3px #3f3fd3;
}

.tutorial.attack .abilities::before {
    content: "";
    position: absolute;
    width: 2px;
    left: 20%;
    top: 100%;
    background-color: #3f3fd3;
    height: 22px;
}

.tutorial.attack .tabs {
    background-color: rgba(0, 0, 0, 0.9);
    bottom: 260px;
    width: 90%;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #ff6600;
    border-radius: 10px;
    padding: 10px;
}

.tutorial.attack .tabs::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #ff6600;
    border-radius: 10px;
    bottom: -332px;
    width: 99vw;
    height: 110px;
    box-shadow: inset 0 0 10px 3px #ff6600;
}

.tutorial.attack .tabs::before {
    content: "";
    position: absolute;
    width: 2px;
    left: 10px;
    top: 100%;
    background-color: #ff6600;
    height: 220px;
}