
.chests-block {
    overflow: hidden;
    height: 720px;
    position: relative;
}

.chests-block .container {
    max-width: 1280px;
    margin: 0 auto;
}

.chests-block .title-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chests-block .title-frame h2 span {
    color: #FF8717;
}

.chests-block .title-frame p {
    color: #FFF;
    text-align: center;

    margin-top: 8px;

    /* Text/T2 - medium - 20 */
    font-family: 'Manrope-Medium', sans-serif;
    font-size: 20px;
    line-height: 160%; /* 32px */
    z-index: 5;
}

.chests-block .title-frame p a {
    color: #FF8717;
}

.chests-container {
    margin-top: -51px;
    padding: 100px 48px 30px;
    margin-bottom: 214px;

    display: grid;
    grid-template-columns: repeat(3, 320px);
    grid-gap: 60px 112px;
    justify-content: center;

    position: relative;
}

.chests-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: radial-gradient(172.87% 73.99% at 50% 30.71%, #FFF489 31.33%, rgba(114, 66, 17, 0.60) 100%);
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.chest {
    padding: 4px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    position: relative;

    /*cursor: pointer;*/

    background: #25211F;
    border-radius: 8px;
    z-index: 5;

    transition: all 250ms ease-in-out;
}

.chest::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: radial-gradient(172.87% 73.99% at 50% 30.71%, #FFF489 31.33%, rgba(114, 66, 17, 0.60) 100%);
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}


.chest .title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chest .title-container img {
    width: 252px;
    height: 132px;
}

.chest .title-container p {
    color: #fff;
    text-align: center;

    font-family: "TrajanSansPro-Bold", sans-serif;
    font-size: 20px;
    font-style: normal;
    line-height: 120%;
    text-transform: uppercase;
}

.chest .items-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chest .items-container .item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 4px;
    background: #1E1B19;
}

.chest .items-container .item span {
    color: #FFA80A;
}

.chest .items-container .item img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #FFA80A;
}

.chest .items-container .item p {
    color: #FFF;
    text-align: justify;
    font-family: 'Manrope-SemiBold', sans-serif;
    font-size: 16px;
    line-height: 150%; /* 24px */
}

.chest:nth-child(7) {
    width: 320px;
    left: 32px;
    position: absolute;
    bottom: -214px;
}

.buy-option-container {
    position: absolute;
    bottom: -30px;
    right: 0;

    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 360px);
}

.sale {
    position: relative;
}

.sale::before {
    position: absolute;
    top: -12px;
    right: -22px;
    height: 12px;
    width: 30px;
    content: '';
    background: url(/high-five-x100-2024/assets/new/images/sale.svg) no-repeat;
    background-size: contain;
}

.buy-option {
    display: flex;
    flex-direction: column;
    gap: 32px;
    grid-column: span 2;
    background: #061611;
    padding: 0 40px;
}

.buy-option p {
    color: #fff;

    font-family: 'Manrope-Medium', sans-serif;
    font-size: 20px;
    line-height: 160%; /* 32px */
}

.buy-option > :last-child {
    display: flex;
    align-items: center;
    gap: 16px;
}

.buy-option .old-price-text {
    color: rgba(255, 255, 255, 0.5);

    font-family: "TrajanSansPro-Bold", sans-serif;
    font-size: 20px;
    line-height: 140%; /* 28px */
    text-transform: uppercase;
}

.buy-option .old-price-text span {
    text-decoration: line-through;
}

@media (min-width: 1025px) {
    .chests-block::before {
        position: absolute;
        width: 800px;
        height: 800px;

        content: '';

        right: -18vw;
        top: 1vw;

        background: url(../../images/side-image-v2.png) no-repeat;
        background-size: contain;
        z-index: 4;
    }

    .chests-block .container > .buy-option-container {
        display: none;
    }
}

@media (max-width: 1025px) {
    .chests-block::after {
        content: unset;
    }


    .chests-container {
        margin-top: 40px;
        padding: 0;

        display: flex;
        justify-content: flex-start;
        gap: 40px;
        overflow-y: auto;
        margin-bottom: 28px;
    }

    .chest {
        min-width: 313px;
        width: 313px;
    }

    .chest:nth-child(7) {
        position: relative;
        left: unset;
        bottom: unset;
    }

    .chests-container .buy-option-container {
        display: none;
    }

    .buy-option-container {
        position: unset;
        display: flex;
        align-items: center;
        padding: 0;
    }

    .buy-option > :last-child {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}