/* @font-face {
    font-family: "Marvin";
    src: url("/assets/menu/16903.otf");
} */
@font-face {
    font-family: "redHatText";
    src: url("/assets/menu/RedHatText-Bold.woff2") format("woff2");
    font-weight: 700;
}

@font-face {
    font-family: "redHatText";
    src: url("/assets/menu/RedHatText-Regular.woff2") format("woff2");
    font-weight: 400;

}

* {
    padding: 0;
    margin: 0;
    border: 0;
    word-break: break-word;
    -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 */
}

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

:focus,
:active {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

nav,
footer,
header,
aside {
    display: block;
}

html,
body {
    background-color: rgb(2, 2, 61);
    height: 100%;
    width: 100%;
    font-size: 100%;
    line-height: 1.3;
    font-size: 16px;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-family: "redHatText";
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
}


input,
button,
textarea {
    font-family: inherit;
}

input::-ms-clear {
    display: none;
}

button,
a {
    cursor: pointer;
    padding: 0;
    border: none;
    font: inherit;
    color: inherit;
    background-color: transparent;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: bottom;
    z-index: 1;
}

main {
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    padding: 30px 20px 40px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

section {
    width: 25%;
    height: 100%;
}

section:nth-child(1),
section:nth-child(3) {
    z-index: 3;
}

section:nth-child(2) {
    flex: 1 1 auto;
}

img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.buttons .btn {
    width: 50px;
}

button,
a {
    transition: filter 0.2s;
}



.player-cnt .btn {
    position: absolute;
    height: 80px;
    width: 320px;
    z-index: 2;
    font-size: 30px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #A7FF39;
    border-radius: 40px;
    color: #1b1b1b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-bottom-cnt {
    position: absolute;
    z-index: 10;
    bottom: 5%;
    left: 20px;
}

.btn-bottom {
    height: 100%;
}



.btn-bottom-r {
    right: 20px;
    left: auto;
    /* display: none; */
}

.btn-bottom-cnt label {
    transition: opacity 0.2s;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    position: absolute;
    bottom: 75%;
    left: 50%;
    transform: translateX(-50%);
    width: 185%;
    padding: 0 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5%;

    aspect-ratio: 16 / 4;
}

.btn-bottom-cnt label.active {
    pointer-events: all;
    opacity: 1;
}

.join-btn {
    position: relative;
    z-index: 5;
}

.btn-bottom-cnt label img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.btn-bottom-cnt label input {
    position: relative;
    z-index: 2;
    display: flex;
    font-size: 30px;
    width: 100%;
    background: none;
    color: #fff;
}

.player-cnt {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 5%;
    padding-right: 1%;
}

.platform {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 93%;
    width: 100%;
    min-width: 700px;
    z-index: 1;
}

.platform img {
    object-fit: fill;
    height: 100%;
    width: 100%;
    object-position: bottom;
    display: block;
    margin: 0 auto;
    animation: none !important;
}

.player {
    height: 70%;
    width: 100%;
    position: relative;
}

.player-part {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.player-part:first-child {
    z-index: 7;
}

.player .player-part>img {
    width: auto;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: bottom;
    z-index: 6;
    opacity: 0;
    animation: fade 0.5s infinite linear;
    will-change: opacity, transform;
}

.player-part>img:nth-child(1) {
    animation-delay: 0s;
}

.player-part>img:nth-child(2) {
    animation-delay: 0.1s;
}

/* 0.7/5 */
.player-part>img:nth-child(3) {
    animation-delay: 0.2s;
}

.player-part>img:nth-child(4) {
    animation-delay: 0.3s;
}

.player-part>img:nth-child(5) {
    animation-delay: 0.4s;
}

.right-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}


.shop__switch {
    position: relative;
    max-height: 45px;
    z-index: 2;
}

.shop__switch .coin-on {
    transition: opacity 0.2s;
    opacity: 0;
}

.shop__switch img {
    width: 100%;
    height: 100%;
}

.shop__switch img.active {
    z-index: 2;
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sideBtn {
    text-transform: uppercase;
    height: 60px;
    display: flex;
    align-items: center;
    border-radius: 40px;
    background-color: #9961E0;
    justify-content: center;
    padding: 0 20px;
    min-width: 225px;
    font-size: 20px;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.table {
    margin-top: -34px;
    margin-bottom: 34px;
    transition: opacity 0.2s, margin 0.2s;
    opacity: 0;
    pointer-events: none;
    position: relative;
}

.table img {
    max-width: 180px;
}

.table img {
    width: 100%;
}

.table.active {
    margin-top: -24px;
    margin-bottom: 24px;
    opacity: 1;
    pointer-events: all;
}

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

    z-index: 2;
    position: absolute;
    bottom: 10px;
    left: 21px;
    right: 15px;
}

.table__btns button {
    width: 27%;
    position: relative;
}

.table__btns button>img {
    width: 100%;

    opacity: 0;
    transition: opacity 0.2s;
}

.table__btns button:hover>img {
    opacity: 1;
}

.table__btns button span img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.count {
    margin-top: 40px;
    display: flex;
    width: 100%;
    /* width: calc(50% - 5px); */
    height: 26px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.count span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.count button {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
    flex: none;
    aspect-ratio: 1;
}

.count img {
    height: 100%;
    flex: none;
}

.count>button>img {
    z-index: 2;
    opacity: 0;
    animation: coin 0.2s forwards 0.5s;
}

@keyframes coin {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0%);

        opacity: 1;
    }
}

@keyframes fade {

    0%,
    15% {
        opacity: 0;
    }

    16%,
    39% {
        opacity: 1;
    }

    40%,
    100% {
        opacity: 0;
    }
}

.t-shirt {
    z-index: 3;
}

.prev {
    animation: prev 0.4s forwards;
}

.next {
    animation: prev 0.3s forwards reverse;
}

/* @keyframes prev {
   0%,100%{
      left: 50%;
      opacity: 1;
   }
   50%{
      left: 0%;
      opacity: 0;
   }
   51%{
      left: 100%;
      opacity: 0;
   }
} */
/* @keyframes prev {
   0%,
   100% {
      filter: brightness(1);
   }
   30% {
      filter: brightness(0.2);
   }
   70% {
      filter: brightness(0.2);
   }
} */
@keyframes prev {

    0%,
    100% {
        filter: blur(0);
    }

    30% {
        filter: blur(3px);
    }

    70% {
        filter: blur(3px);
    }
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.arrows {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 40%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

.arr {
    width: 71px;
}

.boosts {
    position: absolute;
    z-index: 2;
    overflow: auto;
    padding-bottom: 10px;
    top: 7%;
    gap: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boosts img {
    width: 50px;
}

.stickers {
    padding-top: 17px;
    display: grid;
    gap: 17px;
    grid-auto-flow: row;
    max-height: 57%;
    overflow: hidden;
    padding-bottom: 10px;
}

.stickers div {
    min-height: 0;
    width: fit-content;
    position: relative;
}

.stickers div img {
    height: calc(100% + 5px);
    max-height: none;
    width: 100%;
    object-fit: fill;
}

.stickers div span {
    color: #1b1b1b;
    position: absolute;
    text-shadow: none;
    z-index: 2;
    top: 15%;
    left: 10px;
    right: 10px;
}

.modal {
    padding: 70px;
    position: fixed;
    background-color: #0404049b;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: opacity 0.2s;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'redHatText';
    font-size: 20px;
    font-weight: 700;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.lobbie__window {
    max-width: calc(100% - 130px);
    max-height: calc(100% - 60px);
    width: 570px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
}

.lobbie__window>div {
    flex: 1 1 auto;
}

.lobbie__window>button {
    max-width: 50px;
    position: absolute;
    z-index: 4;
    top: 0;
    right: -60px;
}

.lobbie-table {
    z-index: 2;
    margin: 0 auto;
    display: block;
    position: relative;
    pointer-events: none;
    object-fit: fill;
    width: 100%;
    height: 100%;
}

.lobbie-room {
    position: absolute;
    top: 4%;
    left: 53%;
    font-size: 10px;
    width: 16%;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    z-index: 4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lobbie-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: fill;

    pointer-events: none;
}

.lobbie__button {
    position: relative;
    width: 50%;
}

.lobbie__buttons {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lobbie__button:hover {
    filter: none;
}

.lobbie__button>img {
    transition: opacity 0.2s;
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.ready .lobbie__button {
    pointer-events: none;
}

.lobbie__button:hover>img,
.lobbie__button.active>img {
    opacity: 1;
}

.lobbie__button-ready {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    z-index: 2;
    height: 15%;
}

.lobbie__button-ready.active {
    filter: brightness(1.5);
}

.lobbie__button-ready img {
    width: auto;
    height: 100%;
}

.lobbie__row {
    display: flex;
    position: absolute;
    z-index: 3;
    bottom: 20%;
    left: 20px;
    right: 20px;
    overflow: hidden;
    justify-content: space-between;
}

.lobbie__col {
    position: relative;
    width: 49%;
}

.lobbie__col img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.lobbie__col div {
    position: relative;
    z-index: 2;
    width: 100%;
}

.lobbie__col p {
    text-transform: uppercase;
    display: flex;
    white-space: nowrap;
    font-size: 12px;
    line-height: 20px;
}

.lobbie__col p.active {
    color: #f4de0f;
}

.lobbie__col p>span {
    width: 72%;
    text-overflow: ellipsis;
    overflow: hidden;
    display: inline-block;
    align-items: center;
    padding: 0 20px;
}

.lobbie__col p>span:last-child {
    width: 28%;
    text-align: center;
    padding: 0;
}

.enterName {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.enterName>div {
    position: relative;
    padding: 0 140px 0 70px;
    max-width: 100%;
    width: 744px;
}

.enterName span {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    right: 0px;
    left: 0px;
}

.enterName label img {
    height: 100%;
    width: 100%;
}

.enterName input {
    position: relative;
    z-index: 2;
    font-size: 34px;
    width: 100%;
    color: #fff;
    background: none;
}

.enterName__button {
    width: 17%;
    aspect-ratio: 1;
    position: absolute;
    z-index: 2;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.enterName .err {
    animation: err 1.5s infinite;
}

@keyframes err {

    0%,
    100% {
        filter: brightness(0.8);
    }

    50% {
        filter: brightness(1.2);
    }
}

.searching {
    display: flex;
    align-items: center;
    justify-content: center;
}

.searching img {
    width: 100%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0;
    /* <-- Apparently some margin are still there even though it's hidden */
}





.modal * {
    text-transform: uppercase;
}

.catalog__title {
    font-size: 16px;
    position: relative;
    height: 35px;
    display: flex;
    align-items: center;
    padding-left: 25px;
    width: 177px;

}

.catalog__title img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: fill;
    position: absolute;
    z-index: -1;
    object-position: right;
}

.catalog-bg {
    background-color: #1411368a;
    border: 1px solid #8C8C8C;
}

.catalog-plus img:first-child {
    height: 12px;
    flex: none;
}

.catalog-plus img:last-child {
    height: 18px;
    flex: none;
    margin-left: auto;

}

.catalog-plus {
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 10px;
    width: 140px;
    border-radius: 30px;
    padding: 2px 2px 2px 5px;
    font-size: 12px;
}

.catalog-plus span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog__header-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding-left: 50px;
}

.tasks .catalog__header-btns {
    justify-content: flex-end;
}

.modal-close {
    display: flex;
    align-items: center;
    padding-left: 12px;
    height: 35px;
    width: 45px;
    border-radius: 30px 0 0 30px;
}

.modal-close img {
    height: 25px;
}

.modal__wrap {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    position: relative;
    width: 650px;
    height: 350px;
    border: 1px solid #C0C9F0;
    overflow: hidden;
}

.modal__wrap>img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
}

.catalog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.catalog-plus {}

.catalog__btns {
    width: max-content;
    margin-right: 40px;
    height: 100%;
    border-radius: 0 20px 20px 0;
    min-height: max-content;
    padding: 5px 0;
}

.catalog__btns button {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 30px;
    min-width: 100%;
    font-size: 14px;
}

.catalog__btns button img:first-child {
    width: 15px;
    flex: none;
}

.catalog__btns button img:last-child {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s;
    opacity: 0;
    left: 0;
    z-index: -1;
    object-fit: fill;
    width: calc(100% + 20px);
    max-width: none;
    height: 40px;
    max-height: none;
}

.catalog__btns button.active img:first-child {
    filter: brightness(0) saturate(100%) invert(80%) sepia(59%) saturate(524%) hue-rotate(33deg) brightness(103%) contrast(105%);
}

.catalog__btns button:hover {
    filter: none;
}

.catalog__btns button.active img:last-child {
    opacity: 1;
}

.catalog__body {
    width: 100%;
    flex: 1 1 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    padding-right: 10px;
    overflow: auto;
    position: relative;
}

.catalog__list {
    position: sticky;
    flex: 1 1 auto;
    height: 100%;
    top: 0;
    overflow: auto;
    border-radius: 20px;
    padding-right: 10px;
    border-left: 1px solid #8C8C8C;

}

.catalog__list::-webkit-scrollbar {
    width: 10px;
}

.catalog__list::-webkit-scrollbar-thumb {
    background: #A7FF39;
    border-radius: 10px;
}

.catalog__list::-webkit-scrollbar-track {
    background: #1411368a;
    border-radius: 10px;
    border: 1px solid #8C8C8C;
}

.catalog__list-wrap {
    width: 100%;
    min-height: 100%;
    padding: 15px 10px;
    border-radius: 20px;
    position: relative;
    border-left: 0px;
    display: grid;
    grid-template-columns: repeat(6, 16.6666%);
    grid-auto-rows: max-content;
}


.catalog__list-wrap>li {
    padding: 5px;
    aspect-ratio: 1;
}

.catalog__list-wrap>li button {
    width: 100%;
    border-radius: 5px;
    height: 100%;
}

.catalog__list-wrap>li button.byed {
    background-color: #9b59b6;
    padding: 4px;

    /* border: 1px solid #A7FF39; */
}

.catalog__list-wrap>li button.seted {
    background-color: #0279f9 !important;
    padding: 4px;

}

.catalog__list-wrap>li img {
    width: 100%;
    height: 100%;
}



.catalog-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.catalog-info__block {
    max-width: 100%;
    max-height: 100%;
    width: 334px;
}

.catalog-info__block-content,
.catalog-info__cancel,
.catalog-info__buy {
    border-radius: 40px;
    background-color: #262837;
    border: 1px solid #8C8C8C;
}

.catalog-info__block-title {
    color: #1b1b1b;

}

.catalog-info__block-descr {
    font-size: 12px;
    font-weight: 400;

}

.catalog-info__buy {
    color: #1b1b1b;
    background-color: #A7FF39;
}

.buy__set {
    display: none;
}

.catalog-info__buy.set span,
.catalog-info__buy.set img {
    display: none;
}

.catalog-info__buy.set .buy__set {
    display: block !important;
}


.catalog-info__cancel__buttons {
    padding-top: 20px;
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.catalog-info__cancel__buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 14px;
    text-shadow: none;
    gap: 10px;
    width: calc(50% - 10px);
}

.catalog-info__cancel__buttons button span {
    text-shadow: none;
}

.catalog-info__cancel__buttons button img {
    height: 14px;
    margin-left: -5px;
}

.catalog-info__block-title {
    position: relative;
    margin-bottom: 40px;
}

.catalog-info__block-title img {
    position: absolute;
    z-index: 0;
    bottom: -43%;
    left: -30px;
    width: 100%;
    object-fit: fill;
    max-height: none;
    height: 200%;
}

.catalog-info__block-title span {
    z-index: 2;
    position: relative;
    max-width: 50%;
    display: block;
    font-size: 16px;
}

.catalog-info__block-content {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
}

.catalog-info__block-descr {
    display: flex;
    gap: 20px;
    flex: 1 1 auto;
    overflow: auto;
    position: relative;
    justify-content: space-between;
}

.catalog-info__block-descr img {
    flex: none;
    height: 90px;
    position: sticky;
    top: 0;
    aspect-ratio: 1;
}


.sideBtn__switch {
    display: flex;
    align-items: center;
    width: 35px;
    padding: 2px;
    width: 73px;
    border-radius: 20px;
    border: 1px solid #AE81E6;
    background-color: #4D3070;
    margin-right: 10px;
    flex: none;
}

.sideBtn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 3;
}

.sideBtn__switch img {
    transition: all 0.2s;
    height: 100%;
    position: relative;
    transform: translateX(0%);
}

.coingame-btn.active img {
    transform: translateX(100%);
    filter: brightness(0) saturate(100%) invert(80%) sepia(59%) saturate(524%) hue-rotate(33deg) brightness(103%) contrast(105%);
}

.coingame-btn:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    filter: brightness(1.1);
}

.coingame-btn:active {
    animation-play-state: paused;
    transform: scale(0.98);
}

.coingame-btn.hidden {
    display: none !important;
}

/* Контейнер для падающих монет */
.coingame-btn {
    position: relative !important;
    animation: coin-btn-pulse 2.5s ease-in-out infinite;
}

.coin-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.falling-coin {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    animation: fall linear infinite;
    z-index: 2;
    box-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(70px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes coin-btn-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.3);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.1);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes bag-wiggle {
    0% {
        transform: rotate(0deg) translateX(0px);
    }

    5% {
        transform: rotate(1deg) translateX(1px);
    }

    10% {
        transform: rotate(-0.5deg) translateX(-0.5px);
    }

    15% {
        transform: rotate(0deg) translateX(0px);
    }

    30% {
        transform: rotate(0deg) translateX(0px);
    }

    35% {
        transform: rotate(-1deg) translateX(-1px);
    }

    40% {
        transform: rotate(0.8deg) translateX(0.8px);
    }

    45% {
        transform: rotate(0deg) translateX(0px);
    }

    65% {
        transform: rotate(0deg) translateX(0px);
    }

    70% {
        transform: rotate(0.6deg) translateX(0.3px);
    }

    75% {
        transform: rotate(-0.4deg) translateX(-0.6px);
    }

    80% {
        transform: rotate(0deg) translateX(0px);
    }

    100% {
        transform: rotate(0deg) translateX(0px);
    }
}


.coingame {
    text-align: center;
    font-size: 12px;
    border: 1px solid #8C8C8C;
    background-color: #1F1F29;
    padding: 20px 15px 60px;
    border-radius: 30px;
    height: 200px;
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 200px;
    width: 100%;
    display: flex;
    flex-direction: column;

    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, height 0.2s;
}

.coingame.active {
    pointer-events: all;
    opacity: 1;
    height: 228px;
}

.coingame__bag {
    width: 128px;
    height: 128px;
    display: block;
    margin: 0 auto -10px auto;
    object-fit: contain;
    transition: filter 0.2s, transform 0.2s, opacity 0.3s;
    position: relative;
    z-index: 2;
    opacity: 1;
    animation: bag-wiggle 8s ease-in-out infinite;
}

.coingame__bag.active {
    opacity: 0;
    transform: scale(0.8);
}


.coingame__btns {
    display: flex;
    justify-content: space-between;
    flex: 1 1 auto;
    padding: 20px 0;
    align-items: center;
}

.coingame__btns button {
    width: 33.3333%;
    display: flex;
    justify-content: flex-start;
    position: relative;
    align-items: center;
    height: 45px;

}

.button-circle-line {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 25px;
    position: relative;
    z-index: 2;
}

.coingame__button-total {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
    font-size: 8px;
    height: 14px;
}

.coingame__button-circle {
    border-radius: 100%;
    width: 22px;
    height: 22px;
    background-color: #15151D;
    border: 1px solid #8C8C8C;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.coingame__button-circle::after {
    position: absolute;
    content: '';
    width: 23px;
    height: 5px;
    z-index: 1;
    background-color: #15151D;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.coingame__button-circle::before {
    position: absolute;
    content: '';
    bottom: 0;
    right: 0;
    z-index: 2;
    background-color: #A7FF39;
    top: 0;
    border-radius: 100%;
    left: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.coingame__btns button.active .coingame__button-circle::before {
    opacity: 1;
}

.coingame__btns button::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 0;
    right: 0;
    border: 1px solid #8C8C8C;
    background-color: #15151D;
    height: 6px;
    border-radius: 6px;
    z-index: 0;
}

.coingame__btns button:nth-child(1):after {
    border-radius: 6px 0 0 6px;
    border-right: 0;
}

.coingame__btns button:last-child:after {
    border-radius: 0 6px 6px 0;
    border-left: 0;
}

.coingame__btns button:nth-child(2) {
    justify-content: center;
}

.coingame__btns button:nth-child(2):after {
    justify-content: center;
    left: -2px;
    right: -2px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;

}

.coingame__btns button:last-child {
    justify-content: flex-end;
}

.coingame-play-btn {
    height: 60px;
    width: 100%;
    margin-top: 0px;
    font-size: 14px;
    background-color: #A7FF39;
    border-radius: 30px;
    color: #1b1b1b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: filter 0.2s, transform 0.1s;
    animation: pulse 2s ease-in-out infinite;
}

.coingame-play-btn:hover {
    filter: brightness(1.1);
    animation-play-state: paused;
    transform: scale(1.05) translateY(-1px);
}

.coingame-play-btn:active {
    animation-play-state: paused;
    transform: scale(0.98) translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 255, 57, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(167, 255, 57, 0.1);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 255, 57, 0);
    }
}

.tasks__list {
    width: 100%;
    counter-reset: my-counter;
}

.tasks__list>li {
    margin-bottom: 15px;
    display: flex;
    font-weight: 400;
    padding: 15px 20px;
    border: 1px solid #A7FF39;
    background-color: #262739;
    border-radius: 30px;
}

.tasks__list>li:last-child {
    margin-bottom: 0;
}

.tasks__list>li::before {
    counter-increment: my-counter;
    /* Увеличиваем счетчик */
    content: counter(my-counter) ". ";
    /* Выводим номер */
    margin-right: 8px;
}

.tasks__list>li.finish {
    font-weight: 400;
    padding: 15px 20px;
    border: 1px solid #8C8C8C;
    border-radius: 30px;
}

.termsCnt {
    order: 9999;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.withTerms .termsCnt {
    display: flex;
}

.termsCnt>label {
    justify-content: center;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
}

.termsCnt>label a {
    text-decoration: underline;
}

.termsCnt>label.err {
    border-radius: 5px;
    padding: 5px;
    border: 1px solid rgb(239, 56, 56);
}

@media (max-width: 1800px) {
    .arrows {
        width: 370px;
    }

    .platform img {
        max-width: 1000px;
    }

    main {
        max-width: 1020px;
    }
}

@media (max-width: 1200px) {
    .tasks__wrap {
        max-width: 800px;
    }

    .btn-bottom-cnt label {
        width: 150%;
        left: 70%;
    }

    .btn-bottom-cnt label input {
        font-size: 16px;
    }
}

@media (max-height: 500px) {
    .tasks-table td:nth-child(1) {
        padding: 10px 20px;
    }

    .tasks-table img {
        max-height: 40px;
    }

    .tasks-table td {
        height: 64px;
    }

    .tasks__table h2 {
        font-size: 20px;
    }

    .tasks__table p {
        font-size: 16px;
    }

    .tasks-table td {
        font-size: 14px !important;
    }

}

@media (max-width: 1040px) {
    .tasks-table td:nth-child(1) {
        padding: 10px 20px;
    }

    .tasks-table img {
        max-height: 40px;
    }

    .tasks-table td {
        height: 64px;
    }

    .tasks__table h2 {
        font-size: 3vw;
    }

    .tasks__table p {
        font-size: 2.8vw;
    }

    .tasks-table td {
        font-size: 2vw !important;
    }

    .tasks__table {
        left: 90px;
        right: 90px;
    }

    .tasks__wrap {
        padding: 0 50px;
    }

    .tasks-buttons {
        right: calc(98% - 60px);
        width: 60px;
        height: auto;
    }

    .tasks-close {
        right: 20px;
    }
}

@media (max-height: 800px) {
    .platform img {
        max-width: 700px;
    }
}

@media (max-width: 767px) {
    .enterName>div {
        padding: 0px 20% 0px 10%;
    }

    .enterName input {
        font-size: 20px;
    }

    .arrows {
        width: 65vw;
    }

    .count button {
        height: 20px;
    }

    .catalog__title {
        display: none;
    }

    .tasks .catalog__title {
        display: flex;
    }

    .catalog__header-btns {
        width: 100%;
        padding-left: 20px;
    }
}

@media (max-width: 767px) or (max-height: 500px) {

    .catalog__btns button {
        font-size: 12px;
    }

    .boosts img {
        width: 30px;
    }

    .sideBtn__switch {
        height: 25px;
        width: 46px;
    }

    .tasks-close {
        height: 30px;
        right: 30px;
        top: 0px;
    }

    .lobbie__window {
        width: auto;
        aspect-ratio: 17 / 14;
    }

    .lobbie-room {
        font-size: 7px;
    }

    .count {
        height: 30px;
    }

    .count>img {
        height: 20px;
    }

    .buttons .btn,
    .arr {
        width: 40px;
    }

    .player-cnt .btn {
        height: 50px;
        max-width: 30vw;
        font-size: 24px;
    }

    .coingame-play-btn {
        height: 45px;
        margin-top: 10px;
        font-size: 18px;
        border-radius: 22px;
    }

    .btn-bottom-cnt {
        bottom: 20px;
    }

    .btn-bottom {
        width: 120px;
    }

    .shop__switch {
        max-height: 40px;
    }

    .table {
        margin-top: -30px;
        margin-bottom: 30px;
        width: 160px;
        overflow: hidden;
    }

    .table.active {
        margin-top: -20px;
        margin-bottom: 20px;
    }

    .table__btns {
        bottom: 8px;
        left: 19px;
        right: 12px;
    }

    .table__btns button {
        width: 28%;
    }

    .sideBtn {
        height: 40px;
        min-width: auto;
        font-size: 16px;
        width: 30vw;
    }
}

@media (max-width: 467px) {
    .platform {}

    .player-part {
        width: 95vw;
    }
}

.menu {
    height: 100%;
}

.loading+.menu {
    display: none;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    transition: opacity 0.2s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s;
    z-index: 99;

}

.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading.loaded+.menu {
    display: block;
}

.loading video {
    background-color: #070720;
    width: 100%;
    aspect-ratio: 16 / 7;
}

/* .loader {
    width: 120px;
    height: 22px;
    border-radius: 40px;
    color: #ffffff;
    border: 2px solid;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.loader::before {
    content: "";
    position: absolute;
    margin: 2px;
    width: 25%;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    background: currentColor;
    animation: l3 1s infinite linear;
} */
@keyframes l3 {
    50% {
        left: 100%;
        transform: translateX(calc(-100% - 4px));
    }
}




.preloaderCnt {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0404049b;
}


.preloader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}

.preloader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #FFF;
    animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }

    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }

    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
    }

    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
    }
}



@media (min-width:767px) and (min-height:500px) {

    button:hover,
    a:hover {
        filter: brightness(1.3);
    }
}




/* Конец игры */
.endGame {
    padding: 70px;
    position: fixed;
    background-color: #0404049b;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: opacity 0.2s;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'redHatText';
    font-size: 20px;
    font-weight: 700;
}

.endGame.active {
    opacity: 1;
    pointer-events: all;
}

.endGame__title {
    font-size: 20px;
    padding: 7px;
    width: 360px;
    max-width: 100%;
    text-align: center;
    position: relative;

}

.endGame__title img {
    position: absolute;
    object-fit: fill;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.endGame__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 12px 12px;
    max-width: 517px;
    height: auto;
    width: 100%;
    position: relative;
    border: 1px solid #C0C9F0;
    overflow: hidden;
}

.endGame__wrap>img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
}

.endGame__teams {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.endGame__col {
    width: 48%;
    border-radius: 20px;
    text-align: center;
    font-size: 16px;

}

.endGame__score {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    height: 80px;
    gap: 30px;
    font-size: 45px;
    white-space: nowrap;
}

.endGame__score img {
    flex: 1 1 auto;
}

.endGame__teamName {
    line-height: 24px;
    width: 100%;
    background-color: #6a5e8b3d;
    border-top: 1px solid #8C8C8C;
    border-bottom: 1px solid #8C8C8C;
}

.endGame__winner {
    line-height: 30px;
    color: #A7FF39;
}

.endGame__bot a {
    background-color: #A7FF39;
    border-radius: 20px;
    color: #1b1b1b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 35px;
}

.endGame__rewardInfo {
    font-size: 12px;
    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 25px;
    padding: 5px 10px;
    width: 154px;
    max-width: 100%;

}

.endGame__reward {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.endGame__bot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Отладочная информация в игре */
.game-debug-info {
    position: fixed;
    top: 40px;
    right: 10px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    z-index: 9999;
    line-height: 1.2;
    text-align: right;
    pointer-events: none;
    user-select: none;
}

/* Модальное окно подтверждения выхода */
.exit-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, visibility 0.3s;
}

.exit-confirmation-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.exit-confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.exit-confirmation-content {
    position: relative;
    background: #1F1F29;
    border: 1px solid #8C8C8C;
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 450px;
    width: 95%;
    text-align: center;
    transform: scale(1);
    transition: transform 0.3s;
}

.exit-confirmation-modal.hidden .exit-confirmation-content {
    transform: scale(0.9);
}

.exit-confirmation-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.exit-confirmation-title {
    color: #fff;
    font-size: 20px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.exit-confirmation-message {
    color: #ccc;
    font-size: 15px;
    margin: 0 0 30px 0;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.exit-confirmation-message strong {
    color: #FFD700 !important;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.exit-confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.exit-confirmation-btn {
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.exit-confirmation-cancel {
    background: #6c757d;
    color: #fff;
}

.exit-confirmation-cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.exit-confirmation-confirm {
    background: #dc3545;
    color: #fff;
}

.exit-confirmation-confirm:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.exit-confirmation-btn:active {
    transform: translateY(0);
}

/* Анимация изменения баланса монет */
.coins-animating {
    position: relative;
    display: inline-block;
    animation: coins-counting 0.15s ease-in-out infinite alternate;
}

.coins-increasing {
    animation: coins-counting-up 0.12s ease-in-out infinite alternate;
}

.coins-decreasing {
    animation: coins-counting-down 0.12s ease-in-out infinite alternate;
}

.coins-flash-green {
    animation: coins-flash-green-effect 0.5s ease-out;
}

.coins-flash-red {
    animation: coins-flash-red-effect 0.5s ease-out;
}

@keyframes coins-counting {
    0% {
        transform: scale(1);
        color: inherit;
    }

    100% {
        transform: scale(1.08);
        color: #FFD700;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }
}

@keyframes coins-counting-up {
    0% {
        transform: scale(1) translateY(0);
        color: inherit;
    }

    100% {
        transform: scale(1.1) translateY(-2px);
        color: #A7FF39;
        text-shadow: 0 0 12px rgba(167, 255, 57, 0.8);
    }
}

@keyframes coins-counting-down {
    0% {
        transform: scale(1) translateY(0);
        color: inherit;
    }

    100% {
        transform: scale(0.95) translateY(2px);
        color: #ff6b6b;
        text-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
    }
}

@keyframes coins-flash-green-effect {
    0% {
        transform: scale(1);
        color: inherit;
        text-shadow: none;
    }

    30% {
        transform: scale(1.3);
        color: #A7FF39;
        text-shadow: 0 0 20px rgba(167, 255, 57, 1), 0 0 30px rgba(167, 255, 57, 0.8);
    }

    70% {
        transform: scale(1.15);
        color: #A7FF39;
        text-shadow: 0 0 15px rgba(167, 255, 57, 0.8);
    }

    100% {
        transform: scale(1);
        color: inherit;
        text-shadow: none;
    }
}

@keyframes coins-flash-red-effect {
    0% {
        transform: scale(1);
        color: inherit;
        text-shadow: none;
    }

    30% {
        transform: scale(1.2);
        color: #ff6b6b;
        text-shadow: 0 0 15px rgba(255, 107, 107, 0.9), 0 0 25px rgba(255, 107, 107, 0.6);
    }

    70% {
        transform: scale(1.1);
        color: #ff6b6b;
        text-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
    }

    100% {
        transform: scale(1);
        color: inherit;
        text-shadow: none;
    }
}

/* Уведомление о процессе обработки ставки */
.bet-processing-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #A7FF39, #7ED321);
    color: #1b1b1b;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(167, 255, 57, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.bet-processing-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.bet-processing-notification .notification-icon {
    font-size: 18px;
    animation: notification-pulse 1s ease-in-out infinite;
}

.bet-processing-notification .notification-text {
    white-space: nowrap;
}

@keyframes notification-pulse {

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

    50% {
        transform: scale(1.1);
    }
}