@font-face {
    font-family: 'Calibri-Bold';
    src: url('../assets/main/fonts/Calibri-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html, body {
    overflow-y: hidden;
    height: 100dvh;
    max-height: 100dvh;
}

:root { --bf-footer-h: clamp(40px, 5vh, 42px); }
.card-error-bf {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 600;
    color: #ff6b6b;
    padding-top: 0.5vh;
    margin: auto;
    text-align: center;
    display: none;
}
.card-footer.hidden {
    display: none;
}
.card-error-bf.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding-top: 0.5vh;
    margin: auto;
    z-index: 9999 !important;
    position: relative !important;
    min-height: var(--bf-footer-h);
}
.card--regular.cyan > .texture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    mix-blend-mode: color-dodge;
    opacity: 0.9;
    z-index: 0;
    border-radius: 18px;
}
.card-content {
    position: relative;
    z-index: 1;
}
.card {
    font-family: var(--main-font);
    position: relative;
    border-radius: 18px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
    padding: 10px;
    box-shadow: 0 1.6px 1.6px rgba(0, 0, 0, 0.8);
}
.card-description {
    font-size: var(--card-description);
    color: white;
    margin: 0;
    font-weight: 500;
}
.card--regular.cyan {
    background: linear-gradient(329deg, #007ea9 0%, #003b73 20% 20%, #14053c 90%);
    box-shadow: 0 1px 3px 0 rgba(255, 255, 255, 0.50) inset, 0 4px 4px 0 rgba(0, 0, 0, 0.80);
}
.card--regular.cyan::before{
    content:"";
    position:absolute; inset:0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(90deg, #0071ff, #00d1ff, #0071ff);

    -webkit-mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events:none;
}
.card--regular.cyan::before{
    background: linear-gradient(90deg, #0071ff, #00d1ff, #0071ff);
    background-size: 200% 100%;
    animation: border-pan 6s linear infinite;
}
.card--regular.turquoise {
    border: 1px solid #0FF;
    background: radial-gradient(80% 64.68% at 50% 55%, #0080FF 0.2%, #061E3C 65.38%);
    box-shadow: 0 2px 4px 0 rgba(0, 213, 255, 0.70) inset, 0 2px 2px 0 rgba(0, 0, 0, 0.80);
    z-index: 1;
}
.card--regular.purple {
    border: 1px solid #CF82FF;
    background: radial-gradient(80% 64.68% at 50% 55%, #BF00FF 0.48%, #061E3C 65.38%);
    box-shadow: 0 2px 4px 0 rgba(200, 0, 255, 0.70) inset, 0 2px 2px 0 rgba(0, 0, 0, 0.80);
    z-index: 1;
}
.card--regular.pink {
    border: 1px solid #FF6DC9;
    background: radial-gradient(80% 64.68% at 50% 55%, #D70475 0.48%, #061E3C 65.38%);
    box-shadow: 0 2px 4px 0 rgba(255, 0, 174, 0.70) inset, 0 2px 2px 0 rgba(0, 0, 0, 0.80);
    z-index: 1;
}
.card--regular.orange {
    border: 1px solid #FF906B;
    background: radial-gradient(100.38% 64.68% at 50% 55%, #E00808 0.48%, #061E3C 65.38%);
    box-shadow: 0 2px 4px 0 rgba(255, 115, 0, 0.70) inset, 0 2px 2px 0 rgba(0, 0, 0, 0.80);
    z-index: 1;
}
.buy.card.card--regular.cyan::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -7px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(90deg,
    rgba(1, 242, 255, 0) 0%,
    rgba(1, 196, 255, 0.66) 36%,
    rgba(255, 255, 255, 0.99) 48%,
    rgba(1, 196, 255, 0.66) 64%,
    rgba(1, 242, 255, 0) 100%
    );
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: -1;
}
.buy.card.card--regular.turquoise::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -7px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(90deg,
    rgba(1, 242, 255, 0) 0%,
    rgba(1, 242, 255, 0.66) 36%,
    rgba(255, 255, 255, 0.99) 48%,
    rgba(1, 242, 255, 0.66) 64%,
    rgba(1, 242, 255, 0) 100%
    );
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: -1;
}
.buy.card.card--regular.purple::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -7px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(90deg,
    rgba(196, 1, 255, 0) 0%,
    rgba(196, 1, 255, 0.66) 36%,
    rgba(255, 255, 255, 0.99) 48%,
    rgba(196, 1, 255, 0.66) 64%,
    rgba(196, 1, 255, 0) 100%
    );
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: -1;
}
.buy.card.card--regular.pink::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -7px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(90deg,
    rgba(230, 1, 255, 0) 0%,
    rgba(230, 1, 255, 0.66) 36%,
    rgba(255, 255, 255, 0.99) 48%,
    rgba(230, 1, 255, 0.66) 64%,
    rgba(230, 1, 255, 0) 100%
    );
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: -1;
}
.buy.card.card--regular.orange::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -7px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(90deg,
    rgba(255, 81, 1, 0) 0%,
    rgba(255, 81, 1, 0.66) 36%,
    rgba(255, 255, 255, 0.99) 48%,
    rgba(255, 81, 1, 0.66) 64%,
    rgba(255, 81, 1, 0) 100%
    );
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: -1;
}
.card-image img {
    image-rendering: smooth;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.card-icon:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}
@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: scale(1.01);
        filter: brightness(1.1);
    }
}
.card-title {
    text-align: center;
    font-family: var(--main-font);
    font-size: var(--card-title);
    font-weight: 800;
    background: linear-gradient(180deg, #FFF103 40%, #FF6A00 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}
.card-description {
    font-size: var(--card-description);
    color: white;
    margin: 0;
    font-weight: 500;
}
.card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
}
.card-price {
    font-size: clamp(20px, 2vw, 22px);
    font-weight: 700;
    color: #ffffff;
}
.card-check {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.card-check.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
    cursor: not-allowed;
    transform: none !important;
    transition: all 0.2s ease;
}
.card-check:hover:not(.disabled) {
    transform: scale(1.05);
    filter: brightness(1.1);
    cursor: pointer;
}
.scroll-arrow,
.pagination-bf {
    display: none;
}

@media (orientation: portrait) {
    #block-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
        padding-top: 15px;
        padding-bottom: 15%;
        max-width: 100%;
    }
    .card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        min-height: 180px;
        width: 100%;
        max-width: clamp(280px, 85vw, 360px);
    }
    .card-fill {
        height: 106px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .card--regular.turquoise {
        height: auto;
    }
    .card--regular.purple {
        height: auto;
    }
    .card--regular.pink {
        height: auto;
    }
    .card--regular.orange {
        height: auto;
    }
    .card,
    .card--regular {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        overflow: hidden;
        box-sizing: border-box;
    }
    .card-content {
        /*display: grid;*/
        height: 100%;
        /*grid-template-columns: auto 1fr;*/
        /*gap: 8px;*/
        align-items: center;
        flex: 1;
    }
    .card-title {
        margin-bottom: 4px;
        margin-top: 0;
        text-align: center;
        grid-column: 2;
        z-index: 5;
    }
    .card-icon {
        position: absolute;
        top: 10px;
        left: 10px;
        cursor: pointer;
        transition: transform 0.2s ease, filter 0.2s ease;
        height: auto;
        z-index: 5;
    }
    .card-icon img {
        image-rendering: smooth;
        width: 100%;
        height: clamp(30px, 3.2vh, 35px)
    }
    .card-image {
        margin-top: 20%;
        margin-bottom: 2%;
        /*display: flex;*/
        /*align-items: flex-start;*/
        justify-content: center;
        width:100%;
        align-self: center;
        box-sizing: border-box;
        /*position: relative;*/
        /*transform: scale(2.5);*/
        /*transform: translateY(calc(-18% - ((100% - 300px) / 100 * 0.1)));*/
    }
    .card-image img {
        image-rendering: smooth;
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }
    .card-main {
        display: flex;
        width: 100%;
        flex-wrap: nowrap;
        min-width: 0;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        position: relative;
        z-index: 1;
    }
    .card-description {
        margin-top: 20%;
        text-align: start;
        display: block;
        font-size: clamp(0.9rem, 1.5vw, 1rem);
        height: auto;
        position: relative;
        z-index: 2;
        font-weight: 500;
    }
    .buy.card .hidden-img,
    .cyan.card .hidden-img {
        visibility: hidden;
        width: clamp(100px, 20vw, 140px);
        height: auto;
    }
    .boost {
        margin-top: -30%;
        width: 100%;
        animation: shimmer 2s ease-in-out infinite, pulse-portrait 4s infinite ease-in;
    }
    .buy.card .pulse-img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        /*width: 90%;*/
        max-width: 90%;
        height: auto;
        pointer-events: none;
        object-fit: contain;
        animation: shimmer 2s ease-in-out infinite,
        pulse-portrait 4s infinite ease-in-out;
        z-index: 0;
    }
    @keyframes shimmer {
        0% {
            filter: brightness(1);
        }
        50% {
            filter: brightness(1.1);
        }
        100% {
            filter: brightness(1);
        }
    }
    @keyframes pulse-portrait {
        0%, 100% {
            transform: scale(1.15);
        }
        50% {
            transform: scale(1.2);
        }
    }
    .card-text {
        margin-bottom: 5%;
        padding-right: 1%;
    }
    .card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        flex-wrap: nowrap;
        min-width: 0;
        position: relative;
        z-index: 2;
    }
    .card-price {
        display: block;
        font-size: clamp(1rem, 5vw, 1.6rem);
        font-weight: 700;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
    }
    .scroll-container {
        position: relative;
        width: 100%;
        height: calc(100dvh - 30vh);
        overflow: hidden;
        box-sizing: border-box;
        justify-content: center;
        padding-left: 8px;
        padding-right: 0;
    }
    .scroll {
        height: 100%;
        overflow-y: auto;
        box-sizing: content-box;
        padding-right: 10px;
        scrollbar-width: thin;
        scrollbar-color: #ffffff80 transparent;

        -webkit-mask-image: -webkit-linear-gradient(top, rgba(0,0,0,1) 88%, rgba(0,0,0,0));
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 88%, rgba(0,0,0,0));
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
    .scroll::-webkit-scrollbar {
        width: 8px;
        right: 0;
    }
    .scroll::-webkit-scrollbar-track {
        background: transparent;
    }
    .scroll::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
        transition: background 0.3s ease;
    }
    .scroll::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.6);
    }
    .bet-control-wrapper-bf {
        bottom: 0.3vh;
    }
    .balance-bf {
        position: unset !important;
        margin-top: 0;
        margin-bottom: 2dvh;
    }
}

@media (orientation: landscape) {
    #block-wrapper {
        display: flex;
        align-items: stretch;
        max-height: 100%;
        flex-direction: row;
        gap: clamp(1vw, 1.8dvh, 1.8dvw);
        justify-content: flex-start;
        overflow-x: auto;
        box-sizing: border-box;
        margin: 0 auto;
        padding: clamp(1vh, 2vh, 2.5vh) 5px;
        padding-top: clamp(2dvh, 3dvh, 5dvh);
        scrollbar-width: none;
        scroll-padding-inline: clamp(24px, 5vw, 40px);
        overflow-y: hidden;
    }
    .scroll-arrow,
    .pagination-bf {
        display: flex;
    }
    .scroll-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 90dvw;
        padding: 0;
        max-height: calc(100dvh - var(--bet-wrapper-height));
        overflow-y: auto;
    }
    .scroll {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        display: flex;
        gap: clamp(1vw, 2vh, 2vw);
        margin-inline: clamp(32px, 4vw, 48px);
        padding: 0;
        max-width: min(96vw, 1000px);
        scrollbar-width: none;
    }
    .card {
        flex: 0 0 auto;
        width: calc((100% - 2 * clamp(1vw, 2vh, 2vw)) / 3);
        max-height: calc(100dvh - clamp(22vh, 27vh, 33vh));
        margin-bottom: clamp(0.3vh, 0.8vh, 1vh);
        height: 100%;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    .card-fill {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
    .card-fill .card-image {
        flex: 0 0 40%;
    }
    .card-fill .card-text {
        flex: 1 1 60%;
    }
    .card-fill .card-image img {
        width: 100%;
        height: auto;
        display: block;
    }
    .card-description {
        font-size: clamp(14px, 1.8vw, 18px);
        text-align: left;
        padding: 0 1.5%;
        margin-top: 1%;
        line-height: 1.3;
        flex: 1 1 auto;
        min-height: 0;
        justify-content: center;
        align-items: flex-start;
        display: block;
    }
    .card:first-child {
        margin-left: 5px;
    }
    .card:last-child {
        margin-right: 5px;
    }
    .card-title {
        background: linear-gradient(180deg, #FFF103 10%, #FF6A00 90%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .card-title,
    .card-footer { flex: 0 0 auto; }
    .card--regular.turquoise {
        height: 100%;
    }
    .card--regular.purple {
        height: 100%;
    }
    .card--regular.pink {
        height: 100%;
    }
    .card--regular.orange {
        height: 100%;
    }
    .card-content {
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5vh;
        text-align: justify;
        justify-content: space-between;
        flex-grow: 1;
        height: 100%;
    }
    .card-main {
        flex-grow: 1;
        /*display: flex;*/
        /*flex-direction: column;*/
        /*justify-content: space-between;*/
        width: 100%;
        height: 100%;
        padding-inline: clamp(0.5vw, 1vw, 1.5vw);
    }
    .card-title {
        font-size: clamp(12px, 1.2vw + 1vh, 20px);
        text-align: center;
        line-height: 1.1;
        display: flex;
        justify-content: center;
        margin: 0 0 4px clamp(20px, 3vw, 40px);
        padding-right: clamp(18px, 2.5vw, 32px);
        min-height: clamp(2em, 2.2em, 2.5em);
        align-items: flex-start;
    }
    .card-title,
    .card-description {
        margin-top: 5px;
        display: block;
        flex-grow: 1;
    }
    .card-icon {
        position: absolute;
        top: clamp(8px, 1vh, 10px);
        left: clamp(8px, 1vh, 10px);
        width: clamp(18px, 3.2vw, 40px);
        height: clamp(18px, 3.2vw, 40px);
        cursor: pointer;
        transition: transform 0.2s ease, filter 0.2s ease;
        z-index: 5;
    }
    .card-icon img {
        image-rendering: smooth;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .card-description {
        display: block;
        font-size: clamp(14px, 1.8vw, 18px);
        text-align: left;
        padding: 0 1.5%;
        margin-top: 1%;
        line-height: 1.3;
        flex-grow: 1;
        justify-content: center;
        align-items: flex-start;
    }
    .card-image {
        max-height: clamp(10vh, 20vh, 25vh);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }
    .card-image img {
        image-rendering: smooth;
        height: clamp(10vh, 15vh, 17vh);
        object-fit: contain;
    }
    .card-footer {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        /*padding-top: 3dvh;*/
        flex-wrap: nowrap;
        margin-top: 1%;
    }
    .card-price {
        padding-left: 2%;
        font-size: clamp(14px, 2.5vw, 22px);
    }
    .card-check img {
        image-rendering: smooth;
        width: auto;
        height: clamp(2rem, 5vw, 3rem);
    }
    .scroll::-webkit-scrollbar {
        display: none;
    }
    .scroll {
        scrollbar-width: none;
    }
    .scroll-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10;

        width: clamp(20px, 4vw, 32px);
        height: clamp(32px, 6vh, 48px);
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    .scroll-arrow.left {
        left: 0;
    }
    .scroll-arrow.right {
        right: 0;
    }
    .scroll-arrow.disabled {
        opacity: 0.3;
        pointer-events: none;
    }
    .pagination-bf {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: clamp(0.4vw, 0.8vw, 1.2vw);
        margin-bottom: clamp(1vh, 2vh, 2.5vh);
        z-index: 10;
        position: relative;
    }
    .dot {
        width: clamp(6px, 1.2vw, 10px);
        height: clamp(6px, 1.2vw, 10px);
        background: white;
        border-radius: 50%;
        opacity: 0.3;
        transition: all 0.2s ease;
    }
    .dot.active {
        opacity: 1;
        background: white;
    }
    .cyan.card .hidden-img,
    .buy.card .hidden-img {
        visibility: hidden;
    }
    .cyan.card .pulse-img,
    .buy.card .pulse-img {
        position: absolute;
        top: clamp(25%, calc(50vh - 18%), 45%);
        left: 50%;
        transform: translate(-50%, -50%) scale(1.3);
        z-index: -5;
        object-fit: contain;
        pointer-events: none;
        animation: pulse 4s infinite ease-in-out;
        box-shadow: none !important;
        filter: none !important;
        text-shadow: none !important;
        drop-shadow: none !important;
    }
    .cyan.card .card-image{
        position: relative;
        height: clamp(120px, 12vh, 160px);
        pointer-events: none;
    }
    .cyan.card .card-image .boost{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%) scale(1.3);
        animation: pulse 4s infinite ease-in-out;
        object-fit: contain;
        max-width: 90%;
        height: auto;
        z-index: -5;
        pointer-events: none;
    }
    .cyan.card .card-image .boost{
        position:absolute; top:50%; left:50%;
        transform: translate(-50%,-50%);
        animation: pulseBoost 4s ease-in-out infinite;
        object-fit: contain;
        max-width: none;
    }
    @keyframes pulseBoost {
        0%,100% { transform: translate(-50%,-50%) scale(1.6); }
        50%     { transform: translate(-50%,-50%) scale(1.75); }
    }
    @keyframes pulse {
        0%, 100% {
            transform: translate(-50%, -50%) scale(1.1);
        }
        50% {
            transform: translate(-50%, -50%) scale(1.2);
        }
    }
    .buy.card.card--regular.cyan .card-image {
        height: clamp(10vh, 15vh, 17vh);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (orientation: landscape) {
    .bet-control-wrapper-bf {
        grid-area: bet;
        align-self: end;
        justify-self: center;

        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }
    .balance-bf {
        position: unset !important;
        margin-top: -1dvh;
        margin-bottom: 2dvh;
        font-size: clamp(0.7rem, calc(1.5vw + 0.8vh), 1.1rem) !important;
    }
    .bet-control-wrapper-bf {
        position: unset !important;
    }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1400px) {
    .bet-control-wrapper-bf {
        transform: scale(0.7) !important;
        transform-origin: bottom center;
        margin-bottom: 5px;
    }
}

@media (orientation: landscape) and (max-height: 300px) {
    .bet-control-wrapper-bf {
        transform: scale(0.65) !important;
        transform-origin: center center;
    }
    .balance-bf {
        position: unset !important;
        margin-top: -2dvh;
        margin-bottom: 2dvh;
        font-size: clamp(0.7rem, calc(1.5vw + 0.8vh), 1.1rem) !important;
    }
}

@media (orientation: landscape) and (max-height: 430px) {
    #block-wrapper {
        padding-top: 2%;
    }
    .card {
        max-width: 48%;
        padding: 4px;
    }
    .card--ultra .card-badge,
    .card--regular .card-badge {
        font-size: clamp(10px, 1.6vw, 12px);
        padding: 2px 0;
        letter-spacing: 0.15em;
    }
    .card-image {
        transform: scale(1.4);
        max-height: clamp(8vh, 15vh, 20vh);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .card-check img {
        image-rendering: smooth;
        width: auto;
        height: clamp(35px, 5vh, 36px);
    }
    .card-footer {
        align-items: end;
    }
    .card-description {
        display: block;
        font-size: clamp(12px, 1.5vw, 14px);
        /*display: inline-table;*/
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: scroll;
        text-overflow: ellipsis;
        line-height: 1.2;
        height: calc(1.3em * 3);
    }
    .buy.card .pulse-img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.6);
        z-index: -2;
        object-fit: contain;
        pointer-events: none;
        animation: pulse 4s infinite ease-in-out;
    }
    .cyan.card .pulse-img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.6);
        z-index: -2;
        object-fit: contain;
        pointer-events: none;
        animation: pulse 4s infinite ease-in-out;
    }
    .pagination-bf {
        margin-top: -1%;
        margin-bottom: 1%;
        gap: clamp(0.3vw, 1vw, 0.6vw);
        position: relative;
        z-index: 10;
        transform: translateY(1.5vh);
    }
    .dot {
        width: clamp(6px, 1.2vw, 6px);
        height: clamp(6px, 1.2vw, 6px);
        background: white;
        border-radius: 50%;
        opacity: 0.3;
    }
    .dot.active {
        opacity: 1;
        background: white;
    }
    .cyan.card .card-image { height: clamp(90px, 16vh, 120px); } /* за потреби */
    .cyan.card .card-image .boost{
        animation-name: pulseBoostPhone;
    }
    @keyframes pulseBoostPhone {
        0%,100% { transform: translate(-50%,-50%) scale(1.22); } /* базовий розмір */
        50%     { transform: translate(-50%,-50%) scale(1.32); } /* “дихання” */
    }
}

@media (orientation: landscape) and (max-height: 450px) {
    .card {
        max-height: calc(100dvh - clamp(20vh, 28vh, 34vh));
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card-price {
        font-size: clamp(14px, 2vw, 20px);
    }

    .card-description {
        display: block;
        overflow-y: auto;
        text-overflow: ellipsis;

        /*display: block;*/
        line-height: 1.2;
        max-height: calc(1.2em * 3);
        min-height: calc(1.2em * 3);

        padding-right: 4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.2) transparent;
    }

    .card-footer {
        align-items: end;
    }

    .buy.card .pulse-img,
    .cyan.card .pulse-img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.6);
        z-index: -2;
        object-fit: contain;
        pointer-events: none;
        animation: pulse 4s infinite ease-in-out;
    }
}

@media (orientation: landscape) and (max-height: 290px) {
    .card {
        transform: scale(0.9);
        padding: 8px;
        max-height: 100vh;
    }
    .card-description {
        display: block;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: scroll;
        text-overflow: ellipsis;

        line-height: 1.2;
        height: calc(1.3em * 2);
    }
    .card-footer {
        align-items: end;
    }
    .card-check {
        transform: scale(0.9);
    }
    #block-wrapper {
        padding-left: 2px;
        padding-right: 6px;
        padding-top: 1.5%;
        padding-bottom: 0;
    }
    .title-container,
    #buy-close {
        transform: scale(0.85);
    }
}

@media (orientation: landscape) and (min-width: 300px) {
    .card-image {
        transform: scale(1.1);
        max-height: clamp(8vh, 15vh, 20vh);
    }
}
/* region PORTRAIT Not enough balance */
@media (orientation: portrait) {

    :root { --bf-footer-h: clamp(40px, 5vh, 42px); }

    .card-footer {
        margin-top: auto;
        min-height: var(--bf-footer-h);
        align-items: center;
    }

    .card-footer.hidden { display: none; }
    .card-error-bf { display: none; }

    .card-error-bf.active {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        margin-top: auto;
        min-height: var(--bf-footer-h);
        width: 100%;
        text-align: left;
        color: #ff6b6b;
        z-index: 9999 !important;
        position: relative !important;
    }
}
/*endregion */
