/* Cenário decorativo: sempre atrás do conteúdo e sem interceptar cliques. */
.games-showcase-section--illustrated {
    position: relative;
    isolation: isolate;
    padding: 70px 0 155px;
    background: #f5f9ff url('../img/topico-jogos/ceu.webp') center top / 100% 100% no-repeat;
}

.games-scenery {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.games-scenery img {
    position: absolute;
    height: auto;
}

.games-scenery-sun {
    top: 8px;
    right: -16px;
    width: clamp(170px, 16vw, 300px);
    transform-origin: 60% 45%;
}

.games-scenery-sun,
.games-scenery-stars {
    animation: games-sun-breathe 5s ease-in-out infinite;
}

@keyframes games-sun-breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(var(--scenery-pulse-scale, 1.16));
    }
}

@media (prefers-reduced-motion: reduce) {
    .games-scenery-sun,
    .games-scenery-stars {
        animation: none;
    }
}

.games-scenery-stars {
    --scenery-pulse-scale: 1.28;
    top: 25%;
    left: -125px;
    width: 240px;
    opacity: .65;
}

.games-scenery .games-scenery-grass {
    bottom: -8px;
    left: 0;
    width: 100%;
    height: clamp(180px, 19vw, 360px);
}

.games-showcase-section--illustrated .games-showcase-heading {
    position: relative;
    grid-template-columns: minmax(0, 1.5fr) minmax(350px, 1fr);
    gap: 36px;
}

.games-scenery-boy {
    position: absolute;
    bottom: -30px;
    right: calc(100% + 35px);
    width: clamp(180px, calc((100vw - 1140px) / 2 - 40px), 310px);
    height: auto;
    aspect-ratio: 310 / 285;
    overflow: hidden;
    pointer-events: none;
}

.games-scenery-boy img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1122 / 1402;
    object-fit: contain;
    object-position: center top;
}

.games-showcase-section--illustrated .games-showcase-tag {
    color: #005bff;
    border-color: rgba(70, 124, 255, .25);
    background: rgba(195, 231, 255, .65);
}

.games-showcase-section--illustrated .games-showcase-heading h2 {
    margin: 16px 0;
    font-size: clamp(34px, 2.8vw, 44px);
    line-height: 1.12;
    font-weight: 700;
}

.games-showcase-section--illustrated .games-showcase-heading p {
    font-size: 15px;
    line-height: 1.6;
}

.games-showcase-section--illustrated .games-showcase-actions {
    flex-direction: row;
    gap: 14px;
    padding-bottom: 8px;
}

.games-showcase-section--illustrated .games-showcase-primary,
.games-showcase-section--illustrated .games-showcase-secondary {
    min-height: 54px;
    padding: 13px 20px;
    font-size: 13px;
    white-space: nowrap;
}

.games-showcase-section--illustrated .games-showcase-secondary {
    background: rgba(255, 255, 255, .85);
}

.games-showcase-section--illustrated .games-benefits,
.games-showcase-section--illustrated .games-carousel-body p,
.games-showcase-section--illustrated .games-carousel-labels,
.games-showcase-section--illustrated .games-carousel-card-footer,
.games-showcase-section--illustrated .games-carousel-progress-row {
    display: none;
}

.games-showcase-section--illustrated .games-carousel {
    margin-top: 28px;
}

.games-showcase-section--illustrated .games-carousel-body {
    padding: 15px 18px;
}

.games-showcase-section--illustrated .games-carousel-body h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.games-showcase-section--illustrated .games-carousel-ribbon {
    padding: 7px 11px;
    font-size: 11px;
}

.games-showcase-section--illustrated .games-carousel-controls {
    margin-top: 0;
    justify-content: center;
    gap: 20px;
}

.games-showcase-section--illustrated .games-carousel-controls button {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, .95);
}

@media (max-width: 1439px) {
    .games-scenery-boy {
        right: calc(100% - 60px);
        width: 190px;
        height: 225px;
    }

    .games-showcase-section--illustrated .games-showcase-heading {
        padding-left: 70px;
        grid-template-columns: minmax(0, 1fr);
        padding-right: 125px;
        gap: 20px;
    }

    .games-showcase-section--illustrated .games-showcase-heading h2 {
        max-width: 780px;
    }
}

@media (max-width: 991px) {
    .games-showcase-section--illustrated {
        padding: 44px 0 110px;
        background-size: auto 100%;
    }

    .games-showcase-section--illustrated .games-showcase-heading {
        padding: 0;
    }

    .games-showcase-section--illustrated .games-showcase-tag {
        margin-bottom: 90px;
    }

    .games-scenery-boy {
        top: 44px;
        bottom: auto;
        right: auto;
        left: 0;
        width: 100px;
        height: 85px;
    }

    .games-scenery-sun {
        top: 22px;
        width: 140px;
    }

    .games-scenery-stars {
        display: none;
    }

    .games-showcase-section--illustrated .games-showcase-actions {
        flex-wrap: wrap;
    }

    .games-showcase-section--illustrated .games-showcase-primary,
    .games-showcase-section--illustrated .games-showcase-secondary {
        flex: 1 1 220px;
    }

    .games-scenery .games-scenery-grass {
        left: -25%;
        width: 150%;
        height: 170px;
    }
}
