#react-target,
.app,
.game {
    width: 100%;
    height: 100%
}

.app {
    position: relative
}

.game-canvas {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    position: absolute;
    border: none;
    width: 100%;
    height: 100%;
    outline: none;
    touch-action: none;
    -ms-touch-action: none
}

canvas:focus {
    outline: none
}

@keyframes attention-sign-in {
    0% {
        transform: scale(1)
    }
    94% {
        transform: scale(1)
    }
    97% {
        transform: scale(1.3)
    }
    to {
        transform: scale(1)
    }
}

.joystick {
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid black
}

.joystick .stick {
    pointer-events: none;
    position: absolute;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: gold;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%
}

#fps {
    contain: strict;
    height: .5rem;
    width: 120px;
    text-align: left;
    font-size: .5rem;
    position: fixed;
    bottom: 0;
    right: 0;
    pointer-events: auto
}

.prestige-loader {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: var(--db-color-neutral-800);
    animation: prestige-loader-anim 2s;
    animation-iteration-count: 1;
    display: flex;
    align-items: center;
    justify-content: center
}

.prestige-loader span {
    color: var(--db-color-wood-50)
}

@keyframes prestige-loader-anim {
    0% {
        opacity: 0
    }
    25%,
    85% {
        opacity: 1
    }
    to {
        opacity: 0
    }
}

.hud {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none
}

.window {
    pointer-events: auto;
    background: var(--db-color-neutral-50);
    border-radius: 4px;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 10rem;
    max-height: calc(49% - 2rem);
    transform: translate(-50%, calc(-100% - 2rem));
    overflow-x: hidden;
    overflow-y: auto
}

.window-title {
    font-size: 1.125rem
}

.shop-item-actions {
    display: flex;
    gap: .25rem;
    align-items: center
}

#btn-pause,
#btn-upgrades {
    position: fixed;
    top: .4rem;
    background-color: #fff4de;
    border-radius: 10px;
    background-image: url(./btn_bg_light-106c5ea5.png);
    background-size: contain;
    padding: .25rem;
    pointer-events: auto;
    display: flex
}

#btn-pause {
    right: .25rem
}

#btn-pause img,
#btn-upgrades img {
    width: 1.5rem;
    height: 1.5rem;
    margin: auto
}

#btn-upgrades {
    right: 3rem
}

#btn-upgrades .sign {
    position: absolute;
    top: -.4rem;
    right: -.4rem;
    width: 1.25rem;
    height: 1.25rem;
    animation-name: attention-sign-in;
    animation-duration: 6s;
    animation-delay: .5s;
    animation-iteration-count: infinite
}

#achives-attention-sign {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(-10000px, -10000px);
    contain: strict
}

.inventory {
    pointer-events: auto;
    position: absolute;
    top: calc(50% + 1rem);
    right: .5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center
}

.inventory-coins {
    left: 0;
    top: .1rem;
    position: fixed;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: .2rem;
    color: var(--db-color-neutral-800);
    background: var(--db-color-wood-50);
    border-radius: 0 .2rem .2rem 0;
    padding: .1rem .4rem;
    font-size: .8em
}

.inventory-coins img {
    width: 1rem;
    height: 1rem
}

@media only screen and (min-width: 992px) {
    .inventory-coins {
        font-size: 1em
    }
    .inventory-coins img {
        width: 1.25rem;
        height: 1.25rem
    }
}

.inventory-items__list {
    display: flex;
    gap: .1rem;
    flex-direction: column;
    flex-wrap: nowrap
}

.inventory-items__item {
    pointer-events: auto;
    width: 1.75rem;
    height: 1.75rem;
    width: min(2rem, 9vh);
    height: min(2rem, 9vh);
    position: relative;
    border: 0;
    border-radius: 2px;
    background: var(--db-color-wood-50);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    outline: none
}

.inventory-items__item:focus {
    outline: none
}

.inventory-items__item.locked-slot {
    background: #fff1e0aa
}

.inventory-items__item .lock-icon {
    position: absolute;
    top: 0;
    right: 0;
    background-image: url(./icon_lock-a8615a5b.png);
    background-size: contain;
    width: .8rem;
    height: .8rem;
    display: block;
    transform: translate(50%, -40%)
}

.inventory-items__item.droppable:before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 2px solid;
    border-radius: 2px;
    border-color: var(--db-color-red-500)
}

.inventory-items__item.play-unlock-anim .inventory-item-icon {
    opacity: 0;
    z-index: 1;
    animation: inventory-unlock-slot-icon-anim 1s
}

.inventory-items__item.play-unlock-anim .lock-icon {
    opacity: 0;
    z-index: 2;
    animation: inventory-unlock-slot-anim 1.5s
}

@keyframes inventory-unlock-slot-anim {
    0% {
        transform: scale(1);
        opacity: 1
    }
    25% {
        transform: scale(1);
        opacity: 1
    }
    50% {
        opacity: 1
    }
    to {
        transform: scale(10);
        opacity: 0
    }
}

@keyframes inventory-unlock-slot-icon-anim {
    0% {
        transform: scale(1);
        opacity: 1
    }
    50% {
        transform: scale(4.5);
        opacity: 1
    }
    99% {
        opacity: 1
    }
    to {
        transform: scale(.1);
        opacity: 0
    }
}

@keyframes droppable {
    0% {
        transform: rotate(-25deg)
    }
    to {
        transform: rotate(25deg)
    }
}

.inventory-items__item.droppable img {
    animation-name: droppable;
    animation-duration: .2s;
    animation-iteration-count: infinite;
    animation-direction: alternate
}

.inventory-item-icon {
    position: absolute;
    height: 100%;
    width: 100%
}

.player-effects {
    position: absolute;
    left: 50%;
    top: .2rem;
    transform: translate(-50%);
    display: flex;
    gap: 2px
}

.player-effect {
    width: 30px;
    height: 30px;
    position: relative;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background: #8b5cf6ba
}

.player-effect.prestige {
    background: #fbc111ba;
    border-radius: 4px
}

.player-effect .effect-duration {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    padding: .1rem;
    font-size: .5rem;
    text-align: center;
    color: #eee;
    background: #3e3e3ec0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px
}

.player-effect img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.pause-popup .popup-body[class] {
    padding: 1.5rem .5rem .5rem;
    width: 90%;
    max-width: 300px;
    width: min(90vw, 300px)
}

.pause-popup .links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem
}

.pause-popup svg {
    width: 44px;
    height: 44px
}

.pause-popup .popup-body label {
    display: flex;
    align-items: center;
    cursor: pointer
}

.pause-popup .popup-body label input[type=checkbox] {
    cursor: pointer;
    width: 1rem;
    height: 1rem;
    margin-left: auto
}

.pause-popup .popup-body label select {
    cursor: pointer;
    margin-left: auto;
    font-family: inherit;
    font-size: .8em;
    border: 2px solid #9d784a;
    border-radius: .1rem;
    width: 12ch;
    text-align: right;
    background-color: transparent
}

#game-version {
    font-size: 10px;
    position: fixed;
    bottom: -20px;
    right: 0;
    pointer-events: auto
}

.base-popup {
    pointer-events: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0
}

.base-popup .popup-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #332f2a33
}

.base-popup .popup-body {
    width: 90%;
    max-width: 500px;
    width: min(90vw, 500px);
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    padding: 1rem .3rem .25rem;
    flex-direction: column;
    gap: 1rem;
    max-height: 80vh;
    border: 8px solid #e1c58f;
    background-color: #f6dea6;
    border-radius: 16px
}

.base-popup h3 {
    white-space: nowrap;
    position: absolute;
    left: 50%;
    top: -1.25rem;
    transform: translate(-50%);
    text-align: center;
    padding: .3rem 2rem;
    margin: 0;
    background: center / contain no-repeat url(./banner-5311ceaf.png);
    color: var(--db-color-wood-50)
}

.base-popup>* {
    pointer-events: auto
}

.base-popup .close-btn {
    position: absolute;
    width: 1.75rem;
    height: 1.75rem;
    right: -1rem;
    top: -1rem;
    background: none;
    padding: 0
}

.ads-offer {
    pointer-events: auto;
    position: fixed;
    top: 7rem;
    left: 2px;
    background: var(--db-color-purple-500);
    display: grid;
    grid-template-rows: max-content max-content;
    grid-template-columns: min-content;
    row-gap: 4px;
    border-radius: 8px;
    cursor: pointer;
    border-image-source: url(./btn_bg_accent-807637d5.png);
    border-image-slice: 10 10 16 10 fill;
    border-image-repeat: stretch;
    border-width: .5rem;
    border-style: ridge;
    padding: 0 24px
}

.ads-offer .stars {
    color: #fff;
    font-size: .3em;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    width: 2.5rem
}

.ads-offer .stars>* {
    position: absolute;
    top: -.5rem;
    animation-name: star-glow;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out
}

.ads-offer .stars>*:nth-child(1) {
    left: 100%
}

.ads-offer .stars>*:nth-child(2) {
    left: 2rem;
    top: -.8rem
}

.ads-offer .stars>*:nth-child(3) {
    left: 1.4rem;
    top: -1.2rem
}

.ads-offer .stars>*:nth-child(4) {
    left: .5rem;
    top: -.7rem
}

@keyframes star-glow {
    0% {
        transform: scale(0) rotate(0)
    }
    50% {
        transform: scale(1.3) rotate(90deg)
    }
    70% {
        transform: scale(1) rotate(90deg)
    }
    to {
        transform: scale(0) rotate(180deg)
    }
}

.ads-offer .offer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--db-color-neutral-100);
    justify-content: center;
    white-space: nowrap
}

.ads-offer .offer.small {
    font-size: .6rem
}

.ads-offer .offer-icon {
    animation-name: offer-icon-in;
    animation-duration: .3s;
    animation-delay: .7s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in
}

@keyframes offer-icon-in {
    0% {
        transform: scale(1)
    }
    70% {
        transform: scale(1.5)
    }
    to {
        transform: scale(1)
    }
}

.ads-offer img {
    height: 32px;
    width: 32px
}

.ads-offer .video-icon {
    height: 40px;
    width: 40px;
    margin: auto
}

.ads-offer .offer>div {
    display: flex;
    flex-direction: column;
    align-items: center
}

.ads-offer .offer .coins-icon {
    top: -24px;
    position: absolute
}

.ads-offer .offer .coins-mult-icon {
    top: -24px;
    left: calc(50% - 12px);
    position: absolute
}

.ads-offer .offer .effect-icon {
    top: -24px;
    position: absolute
}

.ads-offer .speed-boost-val,
.ads-offer .double-income-val {
    position: relative;
    font-size: .8rem;
    margin-top: .5rem
}

.ads-offer .coins-amount-val {
    margin-top: .5rem
}

.ads-offer.animate-in {
    animation-name: offer-in;
    animation-duration: .5s;
    animation-iteration-count: 1
}

@keyframes offer-in {
    0% {
        left: -100px
    }
    to {
        left: 2px
    }
}

.upgrades-popup .items {
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.upgrades-popup .items .item {
    display: flex;
    justify-content: space-between;
    gap: .4rem;
    padding: .4rem;
    background-color: var(--db-color-wood-50);
    border-radius: .25rem
}

.upgrades-popup .items .item img {
    width: 1rem;
    height: 1rem
}

.upgrades-popup .items .item>span {
    width: 35%
}

.upgrades-popup .not-enough-coins {
    position: absolute;
    top: .5rem;
    left: 50%;
    transform: translate(-50%);
    border-image-source: url(./back-37542e49.png);
    border-image-slice: 15 10 10 15 fill;
    border-image-repeat: stretch;
    border-width: .4rem;
    border-style: ridge;
    animation: .4s ease-in 0s ca1
}

@keyframes ca1 {
    0% {
        top: -1.5rem
    }
    80% {
        top: .5rem
    }
    90% {
        top: .1rem
    }
    to {
        top: .5rem
    }
}

.upgrades-popup .not-enough-coins p {
    padding: .1rem 1rem;
    margin: 0
}

.buyable-effects {
    display: flex;
    flex-direction: column;
    gap: .2rem
}

.buyable-effects .effect {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .1rem
}

.buyable-effects .effect img {
    width: 1rem;
    height: 1rem
}

.buyable-effects .effect>span {
    font-size: .8rem;
    justify-self: end
}

.buyable-effects .effect .btn-upgrade {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    gap: .1rem;
    border-image-source: url(./btn_bg_accent-807637d5.png);
    border-image-slice: 10 10 10 10 fill;
    border-image-repeat: stretch;
    border-width: .2rem;
    border-style: ridge;
    padding: 0
}

.attentions {
    position: absolute;
    left: .1rem;
    top: 60%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.attention {
    position: relative;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--db-color-wood-50);
    pointer-events: auto;
    cursor: pointer
}

.attention img {
    position: relative
}

.attention .sign {
    position: absolute;
    top: -.6rem;
    right: -.4rem;
    width: 1.25rem;
    height: 1.25rem;
    animation-name: attention-sign-in;
    animation-duration: 5s;
    animation-delay: .5s;
    animation-iteration-count: infinite
}

.tutorials {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0
}

.tutorial {
    padding: 0 .1rem;
    display: flex;
    flex-wrap: nowrap;
    gap: .1rem;
    align-items: center;
    position: fixed
}

.tutorial.with-text {
    background: url(./back-37542e49.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: .3rem .5rem
}

.tutorial-pointer {
    width: 1rem;
    height: 1rem
}

.tutorial-dragToMove {
    top: 30%;
    left: 50%;
    transform: translate(-30%)
}

.tutorial-arrows {
    margin-right: .5rem;
    position: relative;
    top: .6rem;
    left: .75rem
}

.tutorial-arrows>* {
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border: 2px solid var(--db-color-light-neutral-800);
    border-radius: 6px;
    background: var(--db-color-wood-100);
    width: 1.25rem;
    height: 1.25rem
}

.tutorial-arrows .u {
    left: -1.25rem;
    top: -1.25rem
}

.tutorial-arrows .l {
    left: -2.5rem
}

.tutorial-arrows .d {
    left: -1.25rem
}

.tutorial-takeLogs,
.tutorial-goToSawmill,
.tutorial-collectCoins {
    top: 30%;
    left: 50%;
    transform: translate(-50%)
}

.tutorial-takeLogs img,
.tutorial-collectCoins img {
    margin-left: .1rem;
    width: 1.25rem;
    height: 1.25rem
}

.tutorial-openUpgrades {
    top: 4rem;
    right: 3rem
}

.tutorial-openUpgrades .tutorial-pointer-special {
    position: fixed;
    width: 2.5rem;
    height: 2.5rem;
    animation-name: pointer-special-move;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-direction: normal;
    animation-delay: .75s;
    animation-timing-function: linear
}

.tutorial-buyUpgrade {
    top: 3.8rem;
    right: calc(50% + 3ch - 250px);
    right: calc(50% + 3ch - (min(90vw, 500px)/2));
    border: none
}

.tutorial-closeUpgrades {
    padding: 0;
    top: 1rem;
    right: calc(50% - .5rem - 250px);
    right: calc(50% - .5rem - (min(90vw, 500px)/2))
}

.tutorial-dropItem {
    top: calc(50% + .7rem - (3*min(2rem, 9vh)));
    right: calc(1rem + min(2rem, 9vh))
}

.tutorial-dragToMove .text {
    margin-left: 1.25rem
}

.tutorial-phone {
    width: 2rem;
    height: 2rem;
    position: absolute;
    left: -.4rem
}

.tutorial-dragToMove .tutorial-pointer {
    position: absolute;
    font-size: 1rem;
    animation-name: pointer-move;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-direction: alternate;
    animation-delay: 0;
    animation-timing-function: linear
}

@keyframes pointer-move {
    0% {
        top: .2rem;
        left: .2rem
    }
    50% {
        top: .8rem;
        left: .5rem
    }
    to {
        top: .2rem;
        left: .8rem
    }
}

.tutorial-wakeUp {
    top: calc(60% - .5rem);
    left: 2.5rem
}

.tutorial-openUpgrades .tutorial-pointer,
.tutorial-buyUpgrade .tutorial-pointer,
.tutorial-closeUpgrades .tutorial-pointer,
.tutorial-wakeUp .tutorial-pointer,
.tutorial-dropItem .tutorial-pointer {
    position: absolute;
    top: -2rem;
    right: 1.3rem;
    font-size: 1rem;
    animation-name: pointer-click;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-direction: alternate;
    animation-delay: 0;
    animation-timing-function: linear
}

.tutorial-openUpgrades .tutorial-pointer {
    top: -3rem;
    right: 0rem;
    width: 1.5rem;
    height: 1.5rem
}

.tutorial-buyUpgrade .tutorial-pointer,
.tutorial-closeUpgrades .tutorial-pointer {
    top: 0;
    right: 0
}

.tutorial-dropItem .tutorial-pointer {
    top: .2rem;
    right: calc(-1rem - (min(2rem, 9vh)/2))
}

.tutorial-wakeUp .tutorial-pointer {
    right: unset;
    top: unset;
    left: -2rem
}

@keyframes pointer-click {
    0% {
        transform: scale(1)
    }
    50% {
        transform: scale(1.5)
    }
    to {
        transform: scale(1)
    }
}

@keyframes pointer-special-move {
    0% {
        right: 50%;
        top: 50%;
        transform: scale(0)
    }
    1% {
        right: 50%;
        top: 50%;
        transform: scale(1)
    }
    24% {
        right: 44px;
        top: 18px;
        transform: scale(1)
    }
    25% {
        transform: scale(0)
    }
    to {
        transform: scale(0)
    }
}

.drop-tutorial.npc-needs[class] {
    contain: unset;
    width: unset;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 30%
}

.drop-tutorial.npc-needs:after {
    left: 50%
}

.service-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    left: 1rem
}

.service-overlay .close-btn {
    pointer-events: auto;
    position: absolute;
    right: .5rem;
    bottom: .5rem;
    padding: .6rem .5rem
}

.service-overlay .elements {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 4rem
}

.service-overlay .elements .element {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 3fr 1fr 2fr;
    grid-template-rows: 2.5rem;
    gap: .3rem;
    align-items: center
}

.service-overlay .elements .element button,
.service-overlay .elements .element input {
    align-self: stretch;
    height: auto
}

.service-overlay .elements .element-title {
    background-color: rgba(250, 235, 215, .6);
    border-radius: .3rem;
    padding: .2rem
}

.wall-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    left: 1rem
}

.wall-overlay .close-btn {
    pointer-events: auto;
    position: absolute;
    right: .5rem;
    bottom: .5rem;
    padding: .6rem .5rem
}

.wall-overlay .elements {
    pointer-events: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.wall-overlay .controls {
    display: flex;
    flex-wrap: nowrap;
    gap: .2rem
}

.wall-overlay .clr {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 2px;
    margin-left: auto
}

.wall-overlay .clr-white {
    background-color: #fff
}

.wall-overlay .clr-black {
    background-color: #000
}

.wall-overlay input {
    height: 2.5rem;
    width: 4rem;
    align-self: center
}

.wall-overlay .cells {
    display: grid;
    grid-template-columns: repeat(8, calc(12.5% - 2px));
    grid-template-rows: repeat(6, 2rem);
    gap: .1rem
}

.achievements-popup .claim {
    width: 6.5rem
}

.achievements-popup .claim-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%
}

.achievements-popup .claim-btn.disabled {
    background-color: var(--db-color-neutral-300)
}

.achievements-popup .claim-btn img {
    width: 1rem;
    height: 1rem
}

.achievements-popup .items {
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.achievements-popup .items .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .4rem;
    padding: .4rem;
    background-color: var(--db-color-wood-50);
    border-radius: .25rem
}

.achievements-popup .achievement-icon-container {
    position: relative;
    border-radius: .25rem;
    color: #953bee;
    background: center / cover no-repeat url(./rays-d63eab9e.png) currentColor
}

.achievements-popup .achievement-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: .25rem
}

.achievements-popup .achievement-lvl {
    position: absolute;
    right: .1rem;
    bottom: .1rem;
    transform: translate(-50%);
    color: var(--db-color-neutral-800);
    font-size: .6rem
}

.achievements-popup .launch-progress {
    position: relative;
    width: 100%;
    height: 1rem;
    border-radius: 2px;
    background-color: var(--db-color-wood-100)
}

.achievements-popup .launch-progress .launch-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background-color: #8b5cf6;
    background-color: var(--db-color-purple-500)
}

.achievements-popup .launch-progress .progress-values {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: .75rem
}

.prestige-popup .popup-body {
    max-height: 90vh;
    padding-bottom: 12px
}

.prestige-popup .item {
    display: flex;
    gap: .4rem;
    flex-grow: 1;
    padding: .4rem;
    border-radius: .25rem;
    background: var(--db-color-wood-50);
    position: relative
}

.prestige-popup .items {
    overflow-y: scroll;
    overflow-x: visible;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.prestige-popup .icon {
    width: 2.5rem;
    height: 2.5rem
}

.prestige-popup .item .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%
}

.prestige-popup .item.hidden .info {
    display: none
}

.prestige-popup .item .info .title {
    font-size: 1.1em
}

.prestige-popup .item .info .desc {
    font-size: .8em
}

.prestige-popup .item .locker {
    position: absolute;
    opacity: 1;
    right: 0;
    width: 2.5rem;
    height: 2.5rem
}

.prestige-popup .item .locker.new {
    opacity: 0;
    animation: prestige-new-anim .7s, shake1 .7s
}

@keyframes prestige-new-anim {
    0% {
        opacity: 1;
        width: 2.5rem;
        height: 2.5rem
    }
    70% {
        opacity: 1
    }
    to {
        opacity: 0;
        width: 4rem;
        height: 4rem
    }
}

.prestige-popup .next-village-btn {
    display: flex;
    align-items: center;
    font-size: 24px;
    padding: 2px 12px
}

.prestige-popup .next-village-btn img {
    width: 2rem;
    height: 2rem
}

.world-hud {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    contain: strict
}

.anim-picking-item {
    width: 64px;
    height: 64px;
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 1;
    transition: left .8s, top .8s, opacity .1s .6s;
    background-size: contain;
    z-index: 100
}

.producer {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-10000px, -10000px);
    contain: layout;
    width: 108px;
    height: 58px
}

.producer-tip {
    display: flex;
    align-items: center;
    font-size: 36px
}

.producer-tip img {
    width: 36px;
    height: 36px
}

.producer-progress {
    position: relative;
    display: block;
    background: var(--db-color-wood-50);
    border-radius: 2px;
    border: 1px solid var(--db-color-wood-50);
    overflow: hidden;
    width: 100px;
    height: 6px;
    contain: layout
}

.producer-progress .prgs {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: #77f53d
}

.sawmill-tutorial.npc-needs[class] {
    contain: unset;
    width: unset
}

.sawmill-tutorial.npc-needs:after {
    left: 40%
}

.item-holder {
    display: flex;
    align-items: center;
    position: absolute;
    background: #8b5cf6aa;
    border-radius: 4px;
    padding: 0 .2rem;
    transform: translate(-10000px, -10000px);
    color: var(--db-color-light-neutral-100);
    contain: layout
}

.item-holder img {
    width: 1.5rem;
    height: 1.5rem
}

.npc-needs {
    display: flex;
    align-items: center;
    position: absolute;
    background: var(--db-color-light-neutral-50);
    border-radius: .5rem;
    padding: .2rem;
    transform: translate(-10000px, -10000px);
    color: var(--db-color-light-neutral-800);
    contain: layout size style;
    will-change: transform;
    width: 2.3rem;
    height: 1.9rem
}

.npc-needs:after {
    contain: strict;
    content: "";
    position: absolute;
    bottom: -.3rem;
    left: 25%;
    border-left: .3rem solid transparent;
    border-right: .3rem solid transparent;
    border-top: .4rem solid var(--db-color-light-neutral-50)
}

.npc-needs img {
    contain: strict;
    width: 1.5rem;
    height: 1.5rem
}

.npc-emoji {
    display: flex;
    align-items: center;
    position: absolute;
    background: var(--db-color-light-neutral-50);
    border-radius: .5rem;
    padding: .2rem;
    transform: translate(-10000px, -10000px);
    color: var(--db-color-light-neutral-800);
    contain: layout size style;
    will-change: transform;
    width: 1.9rem;
    height: 1.9rem
}

.npc-emoji:after {
    contain: strict;
    content: "";
    position: absolute;
    bottom: -.3rem;
    left: 25%;
    border-left: .3rem solid transparent;
    border-right: .3rem solid transparent;
    border-top: .4rem solid var(--db-color-light-neutral-50)
}

.npc-emoji img {
    contain: strict;
    width: 1.5rem;
    height: 1.5rem
}

.anim-shaker-1 {
    animation: shake1 .5s;
    animation-iteration-count: infinite
}

@keyframes shake1 {
    0% {
        transform: translate(1px, 1px) rotate(0)
    }
    10% {
        transform: translate(-1px, -2px) rotate(-1deg)
    }
    20% {
        transform: translate(-3px) rotate(1deg)
    }
    30% {
        transform: translate(3px, 2px) rotate(0)
    }
    40% {
        transform: translate(1px, -1px) rotate(1deg)
    }
    50% {
        transform: translate(-1px, 2px) rotate(-1deg)
    }
    60% {
        transform: translate(-3px, 1px) rotate(0)
    }
    70% {
        transform: translate(3px, 1px) rotate(-1deg)
    }
    80% {
        transform: translate(-1px, -1px) rotate(1deg)
    }
    90% {
        transform: translate(1px, 2px) rotate(0)
    }
    to {
        transform: translate(1px, -2px) rotate(-1deg)
    }
}

.bonus-resource {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: absolute;
    background: var(--db-color-light-neutral-50);
    border-radius: .5rem;
    padding: .2rem;
    transform: translate(-50%, -50%);
    color: var(--db-color-light-neutral-800);
    transition: opacity .5s;
    left: -99999px
}

.bonus-resource:after {
    content: "";
    position: absolute;
    bottom: -.3rem;
    left: 40%;
    border-left: .3rem solid transparent;
    border-right: .3rem solid transparent;
    border-top: .4rem solid var(--db-color-light-neutral-50)
}

.bonus-resource img {
    width: 1.5rem;
    height: 1.5rem
}

.bonus-resource .launch-progress {
    position: absolute;
    bottom: -4rem;
    left: 50%;
    transform: translate(-50%);
    width: 2.5rem;
    border-radius: 4px;
    background-color: #fff1e0;
    background-color: var(--db-color-wood-50)
}

.bonus-resource .launch-progress .launch-bar {
    height: .75rem;
    width: 0%;
    border-radius: 4px;
    background-color: #8b5cf6;
    background-color: var(--db-color-purple-500)
}

.bonus-resource .ads-icon {
    position: absolute;
    width: 2rem;
    height: 2rem;
    top: 0;
    left: 50%;
    transform: translate(-50%, -60%)
}

.hire-manager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: absolute;
    background: var(--db-color-light-neutral-50);
    border-radius: .5rem;
    padding: .2rem;
    transform: translate(-50%, -50%);
    color: var(--db-color-light-neutral-800);
    transition: opacity .5s;
    left: -99999px
}

.hire-manager:after {
    content: "";
    position: absolute;
    bottom: -.3rem;
    left: 40%;
    border-left: .3rem solid transparent;
    border-right: .3rem solid transparent;
    border-top: .4rem solid var(--db-color-light-neutral-50)
}

.hire-manager img {
    width: 1.5rem;
    height: 1.5rem
}

.hire-manager .launch-progress {
    position: absolute;
    bottom: -4rem;
    left: 50%;
    transform: translate(-50%);
    width: 2.5rem;
    border-radius: 4px;
    background-color: #fff1e0;
    background-color: var(--db-color-wood-50)
}

.hire-manager .launch-progress .launch-bar {
    height: .75rem;
    width: 0%;
    border-radius: 4px;
    background-color: #8b5cf6;
    background-color: var(--db-color-purple-500)
}

.hire-manager .ads-icon {
    position: absolute;
    width: 2rem;
    height: 2rem;
    top: 0;
    left: 50%;
    transform: translate(-50%, -60%)
}

.arena {
    position: absolute;
    transform: translate(-10000px, -10000px)
}

.arena .parameters {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 2px
}

.arena .parameter {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 2px
}

.arena img {
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0
}

.arena .progress-bar {
    width: 4rem;
    position: absolute;
    bottom: -24px
}

.arena .progress-bar_bar {
    height: 1rem
}

.arena .war-lvl {
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.progress-bar {
    position: relative;
    border-radius: 4px;
    background-color: #fff1e0
}

.progress-bar_bar {
    height: .75rem;
    width: 0%;
    border-radius: 4px;
    background-color: #8b5cf6
}

.health-bar {
    position: absolute;
    transform: translate(-10000px, -10000px);
    contain: strict;
    width: 24px;
    height: 6px
}

.health-bar .launch-progress {
    height: 100%;
    background-color: #fff1e0
}

.health-bar .launch-progress .launch-bar {
    height: 100%;
    width: 0%;
    background-color: #e22851
}

.visual-damage {
    position: absolute;
    transform: translate(-10000px, -10000px)
}

.visual-damage .damage {
    position: absolute;
    contain: layout;
    text-align: center;
    animation-name: damage-out;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-direction: normal;
    animation-timing-function: ease-in-out;
    font-size: 26px
}

.visual-damage .damage .border {
    position: absolute;
    color: #000;
    text-align: center;
    font-size: 1em
}

.visual-damage .damage .value {
    position: absolute;
    font-size: 1em;
    transform: scale(.98);
    color: #fff;
    text-align: center
}

.visual-damage .damage.white .value {
    color: #fefefe
}

.visual-damage .damage.blue .value {
    color: #41c3ff
}

.visual-damage .damage.red .value {
    color: #df1a1a
}

.visual-damage .damage.green .value {
    color: #54d940
}

@keyframes damage-out {
    0% {
        opacity: 1;
        transform: scale(1);
        bottom: 0px
    }
    25% {
        transform: scale(1.5)
    }
    50% {
        transform: scale(1)
    }
    95% {
        opacity: 1
    }
    to {
        bottom: 100px;
        opacity: 0
    }
}

.player-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    position: absolute;
    background: var(--db-color-light-neutral-50);
    border-radius: 4px;
    padding: 2px 4px;
    transform: translate(-10000px, -10000px);
    color: var(--db-color-light-neutral-800);
    font-size: 14px
}

.player-stats .parameters,
.player-stats .parameter {
    display: flex;
    align-items: center;
    gap: 2px
}

.player-stats img {
    width: 16px;
    height: 16px
}