:root {
    --bf-footer-h: clamp(40px, 5dvh, 42px);
    --grid-base-height: 420px;
}

#featurebuy-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: transparent !important;
}

#featurebuy-overlay::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(1, 2, 16, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 0;
}

#featurebuy-overlay .buy-feature {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 1;
}

#featurebuy-overlay .buy-feature::before,
#featurebuy-overlay .buy-feature::after {
    content: none;
}

#featurebuy-overlay #block-wrapper .card-wrapper:has(> .card[hidden]),
#featurebuy-overlay #block-wrapper .card-wrapper:not(:has(> .card)) {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: scale(1.02) translateZ(0);
        z-index: 3;
    }
}

.card:focus-visible {
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: 2px;
    transform: scale(1.02);
    z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--main-font, sans-serif);
    position: relative;
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
    transition: transform 150ms ease, box-shadow 150ms ease, z-index 0s;
    will-change: transform;
    transform-origin: center;
    box-shadow: 0 1.6px 1.6px rgba(0, 0, 0, 0.8);
}

.card--regular {
    background-color: #4C5278;
    border-radius: 16px;
    z-index: 1;
}

.card::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -9px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(147, 154, 187, 0.00) 0%, #939ABB 47.5%, rgba(147, 154, 187, 0.00) 97.81%);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: -1;
}

.card--ultra {
    background: linear-gradient(337deg, #e16c8f 0%, #90367d 25%, #320b38 76%);
    z-index: 1;
}

.card--ultra::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 13px;
    background: linear-gradient(90deg, #f888e0 40%, #ffffff 50%, #f888e0 70%);
    box-shadow: 0 6px 12px rgb(0, 0, 0);
    z-index: -3;
}

.card--ultra::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, #fe9cc8 0%, #d15abd 25%, #910997 50%, #590655 75%, #fe9ce8 100%);
    background-size: 200% 100%;
    animation: border-pan 6s linear infinite;
    -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-image img {
    image-rendering: smooth;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card-title {
    position: relative;
    font-size: var(--card-title);
    font-weight: 700;
    background: linear-gradient(180deg, #fff806 0%, #ff9402 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-title::before {
    content: attr(data-text);
    position: absolute;
    top: 1px;
    z-index: -1;
    -webkit-text-stroke: 3px #5d2200;
    color: transparent;
}

.card-description {
    font-size: var(--card-description);
    color: white;
    margin: 0;
    font-weight: 500;
    text-align: left;
}

.card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.card-price {
    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;
}

/* region Footer for Android */
@media (orientation: landscape) {
    .card-content { min-height: 0; }
    .card-main {
        display: grid;
        grid-template-rows: 1fr auto;
        min-height: 0;
        /*align-self: stretch;*/
    }
    .card-text {
        min-height: 0;
        /*overflow: auto;*/
        overscroll-behavior: contain;
    }
    .card-footer {
        width: auto;
        min-height: var(--bf-footer-h);
        gap: 8px;
    }
    .card-price {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .card-check {
        flex: 0 0 auto;
    }
}
/* endregion */

/* region LANDSCAPE */
@media (orientation: landscape) {
    html, body {
        overflow-y: hidden;
        height: 100dvh;
        max-height: 100dvh;
    }

    #featurebuy-overlay {
        background: rgba(1, 2, 16, 0.45);
        backdrop-filter: blur(clamp(5px, 2dvh, 20px));
        overflow: hidden;
        opacity: 1;
        transition: opacity 0.3s ease;
        z-index: 1000;
    }

    #featurebuy-overlay .buy-feature {
        align-items: start;
        justify-items: center;
        padding: clamp(1.5%, 2dvh, 3%);
        box-sizing: border-box;
        row-gap: clamp(0.8dvh, 1.5dvh, 2dvh);
        display: grid;
        grid-template-rows: auto 1fr auto;
        grid-template-columns: 1fr;
        grid-template-areas:
          "title"
          "scroll"
          "bet";
    }

    .scroll {
        overflow-x: visible;
    }

    .scroll-track {
        display: none !important;
    }

    .scroll-thumb {
        display: none !important;
    }

    .title-container {
        grid-area: title;
        align-self: start;
        justify-self: center;
        flex: 1;
        text-align: center;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scroll-container {
        grid-area: scroll;
        align-self: start;

        width: 100%;
        max-height: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        transform-origin: top center;
        max-width: clamp(900px, 98vw, 1200px);
        margin: 0 auto;
    }

    .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: 0;
        margin-bottom: 2dvh;
        font-size: clamp(0.7rem, calc(1.5vw + 0.8dvh), 1.1rem) !important;
    }

    .bet-control-wrapper-bf {
        position: unset !important;
    }

    #block-wrapper {
        display: flex;
        align-items: stretch;

        max-height: 100%;
        flex-direction: row;
        gap: clamp(1.2vw, 2vw, 30px);
        justify-content: center;
        box-sizing: border-box;
        margin: 0 auto;
        padding-top: clamp(1vh, calc(1vw + 1vh), 2vh);
        scrollbar-width: none;
        scroll-padding-inline: clamp(24px, 5vw, 40px);
    }

    #block-wrapper::-webkit-scrollbar {
        display: none;
    }

    .card-wrapper {
        margin-bottom: clamp(0.3vh, 0.8vh, 1vh);
        scroll-snap-align: center;
        max-width: clamp(17rem, 30vw, 22rem);
    }

    .card {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        border-radius: 20px;
        box-shadow: 0 1.57514px 1.57514px rgba(0, 0, 0, 0.8);
        box-sizing: border-box;
    }

    .card-title {
        font-size: clamp(16px, 1.2vw + 1dvh, 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-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5dvh;
        text-align: justify;
        justify-content: space-between;
        flex-grow: 1;
        height: auto;
    }

    .card-main {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.8dvh;
        width: 100%;
        height: auto;
        padding-inline: clamp(0.5vw, 1vw, 1.5vw);
    }

    .card-icon {
        position: absolute;
        top: clamp(8px, 1dvh, 10px);
        left: clamp(8px, 1dvh, 10px);
        width: clamp(18px, 3.2vw, 40px);
        height: clamp(18px, 3.2vw, 40px);
        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 {
        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;
        display: block;
    }

    .card-image {
        /*max-height: clamp(10vh, 20vh, 25vh);*/
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .card-image img {
        height: clamp(10dvh, 20dvh, 27dvh);
    }

    .card-footer {
        width: 100%;
        align-items: center;
        padding-top: 0.5dvh;
        flex-wrap: nowrap;
        margin-top: auto;
    }

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

    .card-check img {
        image-rendering: smooth;
        width: auto;
        height: clamp(2rem, 5vw, 4rem);
    }

    .scroll::-webkit-scrollbar {
        display: none;
    }

    .buy.card .card-image {
        height: clamp(120px, 12dvh, 160px);
        position: relative;
        pointer-events: none;
    }

    .buy.card .hidden-img {
        visibility: hidden;
    }

    .buy.card .pulse-img {
        position: absolute;
        top: clamp(25%, calc(50dvh - 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;
    }

    @keyframes pulse {
        0%, 100% {
            transform: translate(-50%, -50%) scale(1.3);
        }
        50% {
            transform: translate(-50%, -50%) scale(1.4);
        }
    }

    #featurebuy-overlay .scroll-container {
        transform-origin: top center;
        will-change: transform;
    }

    .card-text {
        /*--lines: 5;*/
        font-size: clamp(14px, 1.8vw, 18px);
        line-height: 1.3;
        height: calc(var(--lines) * 1lh);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .card-description {
        font-size: inherit;
        line-height: inherit;
    }
}

@media (orientation: landscape) and (max-height: 620px) {
    .scroll-container {
        grid-area: scroll;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        max-height: calc(100dvh - var(--bet-wrapper-height));
        overflow: hidden;
        transform-origin: top center;
    }

    .card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 16px;
        padding: clamp(6px, 1vw, 12px);
        height: auto;
        max-height: none;
        flex: unset !important;
        width: 100%;
        max-width: 100%;
    }
}

@media (orientation: landscape) and (max-height: 620px) and (min-width: 951px) and (max-width: 1100px) {
    .card-text {
        --lines: 6;
    }
    #block-wrapper {
        transform: scale(0.84);
        transform-origin: top center;
    }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 950px) {
    .card-wrapper {
        max-width: none;
        flex: 1 1 0;
    }

    .card {
        max-width: 100% !important;
        width: 100% !important;
    }

    .scroll-container {
        max-width: 98vw !important;
    }

    #block-wrapper {
        max-width: 98vw;
    }

    .card-description {
        font-size: clamp(0.5rem, calc(1rem + 1vw), 0.85rem);
    }

    .card-content {
        display: grid;
        grid-template-columns: clamp(110px, 20vw, 140px) 1fr;
        grid-template-rows: auto 1fr auto;
        row-gap: 0;
        align-items: start;
        min-height: 0;
    }

    .card-title {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
        min-height: clamp(1em, 1.5em, 2em);
    }

    .card-image {
        grid-column: 1;
        grid-row: 2;
        align-self: end;
        justify-self: center;
        margin-top: 8px;
    }

    .card-text,
    .card-description {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        min-height: 0;
        overflow: auto;
        padding: 0;
        margin-top: 3%;
    }

    .card-main {
        grid-template-rows: initial;
        min-height: 0;
        display: contents;
    }

    .card-footer {
        display: contents;
    }

    .card-price {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1;
        min-block-size: var(--bf-footer-h);
        align-items: center;
        display: flex;
        transform: translateY(1px);
    }

    .card-check {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        align-self: center;
        min-block-size: var(--bf-footer-h);
    }
    .card {
        height: auto;
        padding: 10px;
        width: 100%;
        max-width: clamp(280px, 90vw, 420px);
        position: relative;
        z-index: 0;
    }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 950px) {
    .card-wrapper {
        max-width: none;
        flex: 1 1 0;
    }

    .card {
        max-width: 100% !important;
        width: 100% !important;
    }

    .scroll-container {
        max-width: 98vw !important;
    }

    #block-wrapper {
        max-width: 98vw;
    }
}

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

@media (orientation: landscape) and (max-height: 300px) {
    .card-title {
        min-height: clamp(1.6em, 1.8em, 2em);
    }
    .buy.card .card-image {
        height: clamp(25dvh, 35dvh, 35dvh);
    }
    .card-text {
        margin-top: 0;
    }
    #featurebuy-overlay .scroll-container {
        transform: scale(0.70) !important;
        transform-origin: top center;
    }
    .bet-control-wrapper-bf {
        transform: scale(0.65) !important;
        transform-origin: bottom center;
    }
}

@media (orientation: landscape) and (max-height: 200px) {
    #featurebuy-overlay .scroll-container {
        transform: scale(0.5) !important;
        transform-origin: top center;
    }
}

@media screen and (orientation: landscape) and (max-width: 568px) {
    .card-text {
        --lines: 5;
    }
}
/* endregion */
/* region PORTRAIT */
@media (orientation: portrait) {
    #featurebuy-overlay {
        overflow: hidden;
        z-index: 1000;
    }

    #featurebuy-overlay .buy-feature {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "title"
            "scroll"
            "bet";
        align-items: start;
        justify-items: center;
        padding: clamp(12px, 2dvh, 20px) 0 0;
        box-sizing: border-box;
    }

    .title-container {
        grid-area: title;
        position: relative;
        z-index: 5;
        width: 100%;
        min-height: clamp(32px, 7dvh, 56px);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex: unset;
    }

    .scroll-container {
        grid-area: scroll;
        min-height: 0;
        height: auto;
        align-self: stretch;
    }

    .bet-control-wrapper-bf {
        grid-area: bet;
        position: unset !important;
        align-self: end;
        justify-self: center;
    }

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

    #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: 30px;
        max-width: 100%;
    }
    .card-wrapper {
        max-width: clamp(280px, 85vw, 360px);
        width: 100%;
    }

    .card {
        height: auto;
        padding: 10px;
        width: 100%;
        max-width: clamp(280px, 85vw, 360px);
        position: relative;
        z-index: 0;
    }

    .card-title::before {
        content: attr(data-text);
        position: absolute;
        top: 1px;
        z-index: -1;
        -webkit-text-stroke: 3px #5d2200;
        color: transparent;
    }

    .card--ultra {
        height: auto;
        max-height: calc(100dvh - clamp(22dvh, 27dvh, 33dvh));
        z-index: 2;
    }

    .card--regular {
        height: auto;
    }

    .card-content {
        display: grid;
        height: 100%;
        grid-template-columns: auto 1fr;
        gap: 36px;
        align-items: center;
        flex: 1;
    }

    .card-title {
        position: relative;
    }

    .card-icon {
        position: absolute;
        top: 10px;
        left: 10px;
        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.2dvh, 35px)
    }

    .card-image {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: clamp(110px, 18vw, 140px);
        align-self: center;
        box-sizing: border-box;
        position: relative;
        transform: translate3d(0, calc(-18% - ((100% - 300px) / 100 * 0.1)), 0);
    }

    .card-image img {
        max-height: 100%;
        max-width: 100%;
    }
    .card-main {
        display: flex;
        width: 100%;
        flex-wrap: nowrap;
        min-width: 0;
        flex-direction: column;
        justify-content: center;
        gap: 1px;
        position: relative;
        z-index: 1;
    }

    .card-description {
        text-align: start;
        font-size: clamp(0.9rem, 1.5vw, 1rem);
        height: auto;
        position: relative;
        z-index: 2;
        font-weight: 500;
    }

    .buy.card .hidden-img {
        visibility: hidden;
        width: clamp(100px, 20vw, 140px);
        height: auto;
    }

    .buy.card .pulse-img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        pointer-events: none;
        object-fit: contain;
        animation: pulse-portrait 4s infinite ease-in-out;
        z-index: -5;
    }

    @keyframes pulse-portrait {
        0%, 100% {
            transform: scale(1.3);
        }
        50% {
            transform: scale(1.35);
        }
    }

    .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);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
    }

    .scroll-container {
        position: relative;
        width: 100%;
        height: calc(100dvh - 30dvh);
        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: linear-gradient(to bottom, 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.3dvh;
    }

    .balance-bf {
        position: unset !important;
        margin-top: 0;
        margin-bottom: 2dvh;
    }

    .card-content{
        display: grid;
        grid-template-columns: clamp(110px, 18vw, 140px) 1fr;
        grid-template-rows: auto 1fr auto;
        column-gap: 36px;
        row-gap: 0;
        align-items: start;
        min-height: 0;
    }
    .card-title {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
        margin-bottom: 20px;
    }

    .card--ultra::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(90deg, #fe9cc8 0%, #d15abd 25%, #910997 50%, #590655 75%, #fe9ce8 100%);
        background-size: 200% 100%;
        animation: border-pan 6s linear infinite;
        -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-image {
        margin-top: 8px;
        margin-left: 18px;
        grid-column: 1;
        grid-row: 2;
        align-self: end;
        justify-self: center;
        z-index: -2;
    }
    .card-text, .card-description {
        grid-column: 2;
        grid-row: 2;
        max-height: 100px;
        min-width: 0;
        min-height: 0;
        overflow: auto;
    }
    .card-main {
        display: contents;
    }
    .card-footer {
        display: contents;
    }
    .card-price {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1;
        min-block-size: var(--bf-footer-h);
        align-items: center;
        display: flex;
        transform: translateY(1px);
    }
    .card-check {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        align-self: center;
        min-block-size: var(--bf-footer-h);
    }
}
/* endregion */

/* region BUTTON "CONFIRM" */
.confirm-btn {
    --w: 76px;
    --h: 40px;

    width: var(--w);
    height: var(--h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    /* форма-пилюля */
    border: 1.5px solid #fff;
    /* біла обводка ~1.18px */
    background:
            radial-gradient(50% 50% at 50% 50%,
                /* зелено→синій як у SVG */
            #35F866 32%, #41497D 100%);
    /* емулюємо внутрішній білий інсет і зовнішню тінь */

    box-shadow:
            inset 0 2px 8px -2px rgba(255, 255, 255, .95),
            inset 0 -2px 8px -2px rgba(0, 0, 0, .65),
            0 2px 2px rgba(0, 0, 0, .5);



    /* зовн. шадоу як feOffset */
    padding: 0;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    position: relative;

    /* зручно керувати розміром галочки змінною */
    --icon-w: 42%;
    /* підкрутіть 36–48% під свій розмір */
}

.confirm-btn .tick-svg {
    width: var(--icon-w);
    height: auto;
    display: block;
    pointer-events: none;
    /* щоб кліки проходили на кнопку */
}
/* endregion */

.card-wrapper {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card-wrapper > .card {
    flex: 1;
}

.card-wrapper .card.disabled {
    pointer-events: none;
}

.card-error-bf {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #ff1515;
    font-size: clamp(14px, 2.2vw, 18px);
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    max-width: 80%;
    pointer-events: none;
    line-height: 1.3;
    width: max-content;
}

.card-wrapper:has(.card.disabled) .card-error-bf {
    display: block;
}

.exceeds-label {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 10;
    border-radius: 20px 20px 0 0;

    background: radial-gradient(100% 100% at 50% 0%,
    rgba(148, 187, 255, 0.23) 0%,
    rgba(21, 56, 213, 0.23) 67.57%,
    rgba(0, 25, 142, 0.23) 100%);
    box-shadow: inset 0 0.7px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    justify-content: center;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.card-wrapper:has(.card.disabled) .exceeds-label {
    display: flex;
}

.label-text {
    color: #FFEB3B;
    font-weight: 800;
    font-size: clamp(14px, 2.2vw, 18px);
    font-family: "Noto Sans", sans-serif;
    line-height: 18px;
    text-transform: none;

    background: linear-gradient(to right, #FFEB3B 40%, #fff7db 50%, #FFEB3B 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shine 3s linear infinite;
}
@keyframes shine {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.arrow {
    color: #FFEB3B;
    font-size: clamp(14px, 2.2vw, 18px);
    font-family: "Noto Sans", sans-serif;
    margin-top: -2px;

    display: inline-block;
    animation: bounce-down 1.6s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .scroll-container {
        width: 100% !important;
    }

    #block-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: clamp(1vw, 2vw, 3vw);
        width: 100%;
    }

    .card {
        width: 100%;
        height: 100%;
        min-height: 0;
    }
    .card-title {
        min-height: 1.2em;
    }
}
