.header-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Outfit', sans-serif;
}

/* Reserve space below hero for cards that extend past the bottom (absolute + translate) — desktop only */
.header-banner--has-cards {
    padding-bottom: 230px;
}

.header-banner__hero {
    position: relative;
    border-radius: 0 0 20px 20px;
    overflow: visible;
    padding: 40px 24px 120px;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background: #0f1a33;
    min-height: 220px;
}

/* Full-bleed: escape .ct-container-full / theme width so the photo spans the viewport */
.header-banner__hero-bg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    top: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0 0 20px 20px;
    background-image: var(--header-banner-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.header-banner__hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 45, 0.48) 0%,
        rgba(10, 20, 45, 0.36) 35%,
        rgba(10, 20, 45, 0.22) 52%,
        rgba(0, 0, 0, 0.12) 62%,
        rgba(0, 0, 0, 0.45) 78%,
        rgba(0, 0, 0, 0.82) 92%,
        #000 100%
    );
}

.header-banner__hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.header-banner__title {
    font-size: 3rem;
    margin: 0 0 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: -3px -1px 1px #474646;
}

.header-banner__description {
    margin: 0;
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

/* Cards row – centered, absolute at bottom of hero (half overlap below) */
.header-banner__cards {
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translate(-50%, 50%);
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: calc(100% - 24px);
    max-width: 1100px;
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
}

.header-banner-card {
    border-radius: 14px;
    padding: 20px 16px 16px;
    border: 2px solid rgb(191 147 32);
    box-shadow: 0px 6px 33px 0 rgb(103 78 15 / 79%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    min-height: 100%;
}

.header-banner-card__logo {
    margin-bottom: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-banner-card__logo-img {
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header-banner-card__heading {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.header-banner-card__desc {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    flex: 1 1 auto;
    font-weight: 500;
}

.header-banner-card__small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.header-banner-card__small--icon-right {
    flex-direction: row-reverse;
}

.header-banner-card__small-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.header-banner-card__small-text {
    font-weight: 100;
    font-size: 11px;
    margin-bottom: -3px;
}

.header-banner-card__play.magicwin-btn {
    min-width: 140px;
    padding: 10px 60px;
    margin-bottom: 14px;
    font-size: 14px;
    transition:
        color 0.55s cubic-bezier(0.33, 1, 0.68, 1),
        box-shadow 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.header-banner-card__play.magicwin-btn::before {
    transition:
        opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1),
        background-position 0.85s cubic-bezier(0.45, 0, 0.15, 1);
}

.header-banner-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.header-banner-card__small .header-banner-card__rating {
    margin-bottom: 0;
}

.header-banner-card__rating-value {
    font-variant-numeric: tabular-nums;
    font-size: 17px;
}

.header-banner-card__stats {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: auto;
}

.header-banner-card__stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.header-banner-card__stat-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.85;
}

.header-banner-card__stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.2;
}

.header-banner-card__stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.header-banner-card__rating .header-banner-card__stat-star {
    font-size: 13px;
    line-height: 1;
    color: #ffd56a;
}

@media (max-width: 900px) {
    /* No extra section gap — cards sit in flow below the hero on small screens */
    .header-banner--has-cards {
        padding-bottom: 0;
    }

    /* Cards in document flow — start below title + description (no overlap on hero) */
    .header-banner__hero {
        padding: 32px 16px 28px;
    }

    .header-banner__hero-inner {
        max-width: 100%;
    }

    .header-banner__cards {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        z-index: 2;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        max-width: 420px;
        margin: 24px auto 0;
        padding: 0;
    }

    .header-banner-card {
        min-height: 0;
    }

    .header-banner__hero-bg {
        background-size: 500% auto;
        background-repeat: no-repeat;
        background-position: top left;
    }
}

@media (max-width: 600px) {
    .header-banner__hero {
        padding: 24px 14px 20px;
        border-radius: 0 0 16px 16px;
    }

    .header-banner__hero-bg {
        border-radius: 0 0 16px 16px;
    }

    .header-banner__title {
        font-size: 2rem;
        padding-top: 25px;
    }

    .header-banner__description {
       padding-bottom: 25px;
    }

    .header-banner__cards {
        margin-top: 20px;
        gap: 12px;
        max-width: none;
    }

    .header-banner-card {
        padding: 16px 14px 14px;
    }

    .header-banner-card__heading {
        font-size: 18px;
    }

    .header-banner-card__desc {
        font-size: 14px;
    }
}

@media (min-width: 1000px) {
    .header-banner__hero {
        padding: 90px 24px 195px;
    }
}
