* {
    box-sizing: border-box;
}

p,
h1,
h2,
h3,
h4 {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    color: #fff;
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    display: flex;
    flex-direction: column;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    width: 1px;
    height: 1px;
}

button {
    background-color: transparent;
    border: none;
    touch-action: none;
}

.container {
    min-height: 100vh;
    width: 100%;
    background-image: url(../images/bg-main.jpg);
    padding: 0 15px;
    margin: 0 auto;
}

@media screen and (min-width: 480px) {
    .container {
        width: 480px;
        padding: 0 20px;
    }
}

/**
  |============================
  | nav
  |============================
*/
.nav-menu {
    position: fixed;
    bottom: 4px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 460px; /* Максимальная ширина контейнера */
    width: calc(100% - 20px);
    z-index: 200;
}
.nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-item {
    padding: 10px;
    width: 64px;
    height: 64px;
    z-index: 200;
    background-color: #ffffff5e;
    border-radius: 20px;
    border: 1.5px solid #6a96a9;

    font-size: 13px;
}

.nav-item.active,
.nav-item-popup.active {
    background-color: #564d2d;
    border: 1.5px solid #aa9228;
}
.nav-item > a {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.nav-item > a > img {
    width: 30px;
    height: 30px;
}

@media screen and (min-width: 390px) {
    .nav-item {
        width: 68px;
        height: 67px;
        font-size: 14px;
    }
    .nav-item > a > img {
        width: 32px;
        height: 32px;
    }
}

@media screen and (min-width: 420px) {
    .nav-item {
        width: 72px;
        height: 71px;
        font-size: 14px;
    }
    .nav-item > a > img {
        width: auto;
        height: auto;
    }
}
@media screen and (min-width: 440px) {
    .nav-item {
        width: 78px;
        height: 77px;
        font-size: 14px;
    }
}
/**
  |============================
  | popup
  |============================
*/

.background-popup {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    height: 100%;
    -webkit-backdrop-filter: blur(10px); /* Для Safari */
    backdrop-filter: blur(10px);
    z-index: 100;
    display: none;
    transform: translateX(-50%);
}

.menu-popup {
    position: absolute;
    bottom: 80px;
    left: 50%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 460px;
    width: calc(100% - 20px);
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
    padding: 20px 15px 15px;
    border: 1.5px solid #6a96a9;
    background-color: #6a96a9bf;
    border-radius: 20px 20px 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translate(-50%, -1%) translateY(10px);
}

.menu-popup.show {
    opacity: 1;
    transform: translate(-50%, -1%) translateY(0);
}

@media screen and (min-width: 400px) {
    .menu-popup {
        bottom: 90px;
    }
}

.nav-list-popup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.nav-item-popup {
    padding: 10px;
    width: calc((100% - 14px * 3) / 4);
    height: calc((100% - 14px) / 2);
    background-color: #ffffff5e;
    border-radius: 20px;
    border: 1.5px solid #6a96a9;
    font-size: 16px;
}

.nav-item-popup > a {
    display: flex;
    align-items: center;
    flex-direction: column;
}
#menuButton.open {
    border-radius: 20px 0 20px 20px;
}

/**
  |============================
  | index
  |============================
*/

.main-container {
    display: flex;
    flex-direction: column;

    padding-top: 24px;
}

.balance-not {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;

    font-size: 40px;
    font-weight: 800;

    background-color: #ffffff24;
    border-radius: 20px;
}
.balance-not > p {
    width: 100%;
    max-width: 261px;
    text-align: center;
}
.balance-not > img {
    width: 40px;
    height: 40px;
}
.balance-not-text {
    font-size: 18px;
    font-weight: 500;
    color: #747576;
    margin-top: -14px;

    text-align: center;
}

.level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 29px;
    margin-bottom: 30px;

    font-weight: 700;
}
.level-left {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}
.level-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}
/**
  |============================
  | click
  |============================
*/
.btn-click {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-tap-highlight-color: transparent;
    display: block;
    margin: 0 auto;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    border-radius: 50%;
    perspective: 1000px;
}
.btn-click > img {
    width: 280px;
    height: 280px;
}

.click-number {
    position: absolute;
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    animation: fade 600ms ease-out;
    z-index: 100;
}

@keyframes fade {
    0% {
        opacity: 1;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

@media screen and (min-width: 375px) {
    .btn-click > img {
        width: 313px;
        height: 313px;
    }
}
@media screen and (min-width: 375px) and (min-height: 700px) {
    .btn-click > img {
        width: 340px;
        height: 340px;
    }
}

button.btn-click:focus {
    outline: none;
    box-shadow: none;
}

/**
  |============================
  | images
  |============================
*/

.images-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    margin-top: auto;
}
.images-wrapper > button > img {
    width: 40px;
    height: 40px;
}

/**
  |============================
  | power
  |============================
*/

.power {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 2px 0;
    margin-bottom: 77px;

    width: 100%;
    background-color: #ffffff5e;
    border-radius: 14.5px;

    font-weight: 500;
    font-size: 20px;
}

.power > img,
.power > p {
    position: relative;
}
.power > img {
    height: 26px;
}
.power::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background-color: #ffffff68;
    border-radius: 14.5px;
}
@media screen and (min-width: 390px) {
    .power {
        margin-bottom: 82px;
    }
}

@media screen and (min-width: 420px) {
    .power {
        margin-bottom: 86px;
    }
}
@media screen and (min-width: 440px) {
    .power {
        margin-bottom: 92px;
    }
}

/**
  |============================
  | boost
  |============================
*/
.line {
    margin-top: 18px;
    width: 100%;
    height: 1px;
    background: #123848;
}
.boosters {
    margin-bottom: 86px;
}
.boosters-title {
    margin: 16px 0;
    font-size: 18px;
    font-weight: 600;
}
.daily-boosters-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.daily-boosters-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc((100% - 6px) / 2);

    padding: 10px 0 10px 15px;
    background-color: #30454d;
    border-radius: 20px;
}
.daily-boosters-item.active {
    background-color: #564d2d;
    border: 1.5px solid #aa9228;
}
.daily-boosters-item > p {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    font-size: 14px;
}

@media screen and (min-width: 375px) {
    .daily-boosters-item > p {
        font-size: 16px;
    }
}

.boosters-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.boosters-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 11px 12px 14px 20px;
    background-color: #4c798c;
    border-radius: 20px;
}
.boosters-item-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
}
.boosters-item-text {
    margin-bottom: 5px;
    font-weight: 700;
}

.boosters-item-price {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    color: #c1ced3;
}

.boosters-item-price-value {
    font-weight: 300;
}
.boosters-item-price-divider {
    align-self: center;
    height: 14px;
    width: 1px;
    display: block;
    background-color: #c1ced3;
}
.boosters-item-price-level {
    font-weight: 200;
}
.boosters-item-btn {
    padding: 10px 22px;
    margin-left: auto;

    font-family: inherit;
    color: #fff;
    font-weight: 500;

    background-color: #f38c00;
    border: none;
    border-radius: 10.5px;
}
/**
  |============================
  | modal
  |============================
*/
.boosters-layout {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 480px;
    height: 100%;
    -webkit-backdrop-filter: blur(10px); /* Для Safari */
    backdrop-filter: blur(10px);
    z-index: 100;
    display: none;
    transform: translateX(-50%);
}
.boosters-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 460px;
    width: calc(100% - 25px);
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
    padding: 20px 15px 15px;
    border: 1.5px solid #6a96a9;
    background-color: #1c4c5e;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translate(-50%, -50%);
}

.boosters-modal.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.boosters-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.boosters-modal-close {
    margin-left: auto;
}
.boosters-modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background-color: #3e6676;
}
.boosters-modal-title {
    font-size: 48px;
    font-weight: 700;
}
.boosters-modal-text {
    text-align: center;
    font-size: 18px;
}
.boosters-modal-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.boosters-modal-price-img {
}
.boosters-modal-price-value {
    font-size: 24px;
    font-weight: 600;
}
.boosters-modal-price-divider {
    height: 10px;
    width: 0.5px;
    background-color: #fff;
}
.boosters-modal-price-level {
    font-size: 24px;
    font-weight: 300;
}
.boosters-modal-btn {
    width: 100%;
    padding: 6px 0;
    border-radius: 10.5px;
    font-family: inherit;
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    background-color: #f38c00;
}
/**
  |============================
  | payment
  |============================
*/
.payment-wrapper {
    margin-bottom: 90px;
}
.payment-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 18px;
}
.payment-list {
    display: flex;
    flex-wrap: wrap;
    row-gap: 19px;
    column-gap: 24px;
}
.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc((100% - 24px) / 2);
    padding: 18px;

    background-color: #b8bec0;
    border-radius: 20px;
}
.payment-item-text {
    padding: 2px 10px 6px 10px;
    margin-top: 12px;
    width: 100%;
    max-width: 154px;

    text-align: center;
    text-transform: uppercase;
    background-color: #5b8b9e;
    box-shadow: inset 0 0 6px 1px #30454d;
    border-radius: 13.5px;

    font-size: 20px;
    font-weight: 500;
}
