/* ===== Balla Games site tweaks ===== */

/* --- home "Latest games" slider: smaller cards, more per row, clear arrows --- */
.game-wrapper .game-slider { margin-left: 0 !important; }
.game-wrapper .all-games-row > .col-xl-8 { flex: 0 0 100%; max-width: 100%; }
.game-wrapper .game-slider-wrapper { position: relative; padding: 0 56px; }
.game-wrapper .game-image-items { margin-top: 20px; border-radius: 16px; }
.game-wrapper .game-image-items img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.game-wrapper .game-image-items .game-content { left: 16px; right: 16px; }
.game-wrapper .game-image-items .game-content h3 { font-size: 17px; }
.game-wrapper .game-image-items .game-content p { font-size: 13px; line-height: 1.4; }
.game-wrapper .game-image-items ul { left: 16px; right: 16px; }
.game-wrapper .game-image-items ul li { padding: 6px; font-size: 11px; }
.bl-arrow {
    position: absolute; top: calc(50% + 10px); transform: translateY(-50%); z-index: 20;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(203, 254, 28, .55);
    background: rgba(11, 14, 19, .85); color: #cbfe1c; font-size: 22px; line-height: 1;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
}
.bl-arrow:hover { background: #cbfe1c; color: #0b0e13; }
.bl-arrow:active { transform: translateY(-50%) scale(.94); }
.bl-arrow.prev { left: 0; } .bl-arrow.next { right: 0; }
@media (max-width: 575px) {
    .game-wrapper .game-slider-wrapper { padding: 0 40px; }
    .bl-arrow { width: 34px; height: 34px; font-size: 18px; }
    .game-wrapper .game-image-items .game-content p { display: none; }
}

/* --- games page grid: smaller cards, 2 per row on phones --- */
#gameGrid .gt-gaming-card-item-5 { margin-top: 0; }
#gameGrid .gt-gaming-image img { aspect-ratio: 3 / 4; object-fit: cover; }
#gameGrid .gt-gaming-content h3 { font-size: 16px; }
#gameGrid .gt-gaming-content h6 { font-size: 12px; }
#gameGrid .gt-gaming-content p { font-size: 12px; line-height: 1.35; }
@media (max-width: 575px) { #gameGrid .gt-gaming-content p { display: none; } }

/* ===== phones: tighter, denser layout ===== */
@media (max-width: 767px) {
    .section-padding { padding-top: 56px !important; padding-bottom: 56px !important; }
    .section-title h2 { font-size: 26px !important; line-height: 1.25 !important; }
    /* "Why Balla Games" feature boxes: 2 per row, compact */
    .elementor-widget-pubzi-game-feature-box-widget { width: calc(50% - 6px) !important; max-width: calc(50% - 6px) !important; }
    .elementor-widget-pubzi-game-feature-box-widget .game-feature-box-items,
    .elementor-widget-pubzi-game-feature-box-widget .game-feature-box-2 { padding: 22px 12px !important; min-height: 0 !important; height: auto !important; }
    .elementor-widget-pubzi-game-feature-box-widget h3, .elementor-widget-pubzi-game-feature-box-widget h4 { font-size: 15px !important; }
    .elementor-widget-pubzi-game-feature-box-widget p { font-size: 12px !important; line-height: 1.4 !important; }
    .elementor-widget-pubzi-game-feature-box-widget img { max-width: 44px; }
}

/* ===== in-page game player: slimmer bar on phones ===== */
@media (max-width: 575px) {
    .bl-bar { height: 40px !important; padding: 0 8px !important; gap: 8px !important; }
    .bl-bar img { height: 22px !important; }
    .bl-bar .bl-name { font-size: 13px !important; }
    .bl-bar .bl-full { display: none !important; }
    .bl-bar button { height: 30px !important; padding: 0 10px !important; font-size: 13px !important; }
    .bl-loading { inset: 40px 0 0 !important; }
}

/* ===== game icons at half size ===== */
#gameGrid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px !important; margin: 0 !important; }
#gameGrid > div { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
#gameGrid .gt-gaming-content { padding: 10px !important; }
#gameGrid .gt-gaming-content p, #gameGrid .gt-gaming-image .icon { display: none !important; }
#gameGrid .gt-gaming-content h3 { font-size: 14px !important; margin: 0 !important; }
#gameGrid .gt-gaming-content h6 { font-size: 11px !important; margin: 0 0 2px !important; }
@media (max-width: 575px) {
    #gameGrid { grid-template-columns: repeat(3, 1fr); gap: 8px !important; }
    #gameGrid .gt-gaming-content { padding: 6px !important; }
    #gameGrid .gt-gaming-content h3 { font-size: 11px !important; }
    #gameGrid .gt-gaming-content h6 { display: none !important; }
}
.game-wrapper .game-image-items { border-radius: 12px; }
.game-wrapper .game-image-items img { border-radius: 12px; }
.game-wrapper .game-image-items ul, .game-wrapper .game-image-items .game-content p { display: none !important; }
.game-wrapper .game-image-items .game-content { left: 8px; right: 8px; }
.game-wrapper .game-image-items:hover .game-content { bottom: 8px; }
.game-wrapper .game-image-items .game-content h3 { font-size: 13px !important; line-height: 1.2; }

/* ===== slider arrows over the row (no side gutters) ===== */
.game-wrapper .game-slider-wrapper { padding: 0 !important; }
.bl-arrow { box-shadow: 0 4px 14px rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.bl-arrow.prev { left: 8px; } .bl-arrow.next { right: 8px; }
@media (max-width: 575px) { .bl-arrow.prev { left: 4px; } .bl-arrow.next { right: 4px; } }

/* ===== scrolling game marquee: 20% smaller ===== */
#marqueeLeft .text-slider, #marqueeRight .text-slider { height: 200px; }
#marqueeLeft .text-slider img, #marqueeRight .text-slider img { width: 200px; height: 200px; border-radius: 14px; }
@media (max-width: 575px) {
    #marqueeLeft .text-slider, #marqueeRight .text-slider { height: 130px; }
    #marqueeLeft .text-slider img, #marqueeRight .text-slider img { width: 130px; height: 130px; border-radius: 10px; }
}
/* the row wrapper also carries .text-slider (fixed 250px) - let it hug the icons */
.marque-section .marquee-wrapper.text-slider { height: 200px !important; }
@media (max-width: 575px) { .marque-section .marquee-wrapper.text-slider { height: 130px !important; } }
.marque-section .marquee-wrapper.style-2 { margin-top: 14px !important; }
@media (max-width: 575px) { .marque-section .marquee-wrapper.style-2 { margin-top: 8px !important; } }

/* ===== tighter spacing across the home page ===== */
.elementor-9 .e-con-inner { padding-top: 70px !important; padding-bottom: 70px !important; }
.elementor-element-0f94956 { padding-top: 70px !important; padding-bottom: 70px !important; }
.game-wrapper.section-padding { margin-top: 40px !important; }
.about-wrapper { margin-bottom: 40px !important; }
.elementor-element-3016a49 { margin-top: 30px !important; }
.elementor-widget-pubzi-heading-text-widget > .elementor-widget-container { margin-bottom: 30px !important; }
@media (max-width: 767px) {
    .section-padding { padding-top: 40px !important; padding-bottom: 40px !important; }
    .section-padding.pb-0 { padding-bottom: 0 !important; }
    .elementor-9 .e-con-inner { padding-top: 36px !important; padding-bottom: 36px !important; }
    .elementor-element-0f94956 { padding-top: 36px !important; padding-bottom: 36px !important; }
    .game-wrapper.section-padding { margin-top: 16px !important; }
    .about-wrapper { margin-bottom: 24px !important; }
    .elementor-element-3016a49 { margin-top: 16px !important; }
    .elementor-widget-pubzi-heading-text-widget > .elementor-widget-container { margin-bottom: 20px !important; }
    .testimonial-section { padding-top: 50px !important; }
}

/* ===== "Why Balla Games" boxes: tidy checkerboard grid on phones/tablets ===== */
/* all widths: always 4 equal squares per row, so a box never drops to its own row */
.elementor-element-56e7252, .elementor-element-f8f9e2b {
    display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px !important;
    margin: 0 0 20px !important; height: auto !important; width: 100% !important;
}
.elementor-element-56e7252 > .elementor-widget, .elementor-element-f8f9e2b > .elementor-widget {
    width: auto !important; max-width: none !important; height: auto !important; margin: 0 !important;
}
.elementor-element-56e7252 .elementor-widget-container, .elementor-element-f8f9e2b .elementor-widget-container { height: 100%; }
.elementor-element-56e7252 .px-exclusive-item, .elementor-element-f8f9e2b .px-exclusive-item {
    aspect-ratio: 1 / 1; height: 100% !important; min-height: 0 !important; margin: 0 !important; overflow: hidden;
}
.elementor-element-56e7252 .game-feature-box-2 img, .elementor-element-f8f9e2b .superhero-thumb img { max-width: 88% !important; max-height: 100%; height: auto; object-fit: contain; }
@media (max-width: 991px) {
    .elementor-element-56e7252, .elementor-element-f8f9e2b { gap: 12px !important; margin-bottom: 12px !important; }
    .elementor-element-56e7252 .px-exclusive-item, .elementor-element-f8f9e2b .px-exclusive-item {
        padding: 14px 10px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center;
        text-align: center; overflow: hidden; background-size: cover !important; background-position: center !important;
    }
    .elementor-element-56e7252 .game-feature-box-2 img, .elementor-element-f8f9e2b .superhero-thumb img { max-width: 88% !important; max-height: 100%; width: auto !important; height: auto; object-fit: contain; }
    .elementor-element-f8f9e2b .superhero-thumb { position: static !important; transform: none !important; width: 100%; display: flex; justify-content: center; }
    .elementor-element-56e7252 h4, .elementor-element-f8f9e2b h4 { font-size: 14px !important; line-height: 1.3 !important; margin-top: 10px !important; }
    .elementor-element-56e7252 .icon img, .elementor-element-f8f9e2b .icon img { max-width: 40px !important; }
}
@media (max-width: 575px) {
    .elementor-element-56e7252, .elementor-element-f8f9e2b { grid-template-columns: repeat(2, 1fr); gap: 10px !important; margin-bottom: 10px !important; }
    .elementor-element-56e7252 h4, .elementor-element-f8f9e2b h4 { font-size: 13px !important; }
}
@media (min-width: 992px) and (max-width: 1399px) {
    .elementor-element-56e7252 h4, .elementor-element-f8f9e2b h4 { font-size: clamp(14px, 1.45vw, 20px) !important; line-height: 1.3 !important; }
    .elementor-element-56e7252 .px-exclusive-item, .elementor-element-f8f9e2b .px-exclusive-item { padding: 18px 14px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; }
}

/* ===== about section: pills become game capsules, glow behind the pirate ===== */
.superhero-image .bl-capsule {
    width: 84px !important; height: 320px; border-radius: 999px; overflow: hidden;
    border: 2px solid #cbfe1c; background: #101318;
    box-shadow: 0 0 0 5px rgba(203,254,28,.08), 0 0 28px rgba(203,254,28,.35), inset 0 0 18px rgba(0,0,0,.8);
    -webkit-mask-image: -webkit-radial-gradient(white, black); z-index: 3;
}
.superhero-image .radius-shape1.bl-capsule { left: auto !important; right: 40px !important; }
.bl-cap-track { display: flex; flex-direction: column; gap: 8px; padding: 8px; animation: blCapUp 16s linear infinite; }
.radius-shape2 .bl-cap-track { animation-direction: reverse; }
.bl-cap-track img { width: 64px !important; height: 64px !important; max-width: none !important; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); flex: none; }
@keyframes blCapUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 4px)); } }
.superhero-image:hover .bl-cap-track { animation-play-state: paused; }
.superhero-image::before {
    content: ""; position: absolute; left: 50%; top: 52%; width: 460px; height: 460px; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(203,254,28,.28) 0%, rgba(203,254,28,.08) 45%, transparent 70%);
    pointer-events: none; z-index: 0;
}
.superhero-image > img { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .bl-cap-track { animation: none; } }

/* ===== hero: "Get in touch" next to the video play button ===== */
.hero-content .video-wrap { display: flex !important; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-content .video-wrap .bl-hero-cta { margin: 0 !important; }
@media (max-width: 575px) { .hero-content .video-wrap { gap: 16px; } .hero-content .video-wrap .bl-hero-cta { padding: 14px 26px !important; } }
.hero-content .video-wrap .bl-hero-cta { display: inline-flex !important; align-items: center; justify-content: center; height: 60px; padding: 0 34px !important; line-height: 1 !important; }
@media (max-width: 575px) { .hero-content .video-wrap .bl-hero-cta { height: 50px; padding: 0 24px !important; } }

/* ===== mobile polish ===== */
.game-wrapper .game-arrow-button .array-button { display: none !important; }   /* side arrows on the row replace these; "View all games" stays */
.game-wrapper .game-arrow-button { display: flex !important; justify-content: center; margin-top: 24px !important; }
@media (max-width: 575px) {
    .hero-content .counter-wrap { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px !important; margin: 26px 0 0 !important; }
    .hero-content .counter-wrap .counter-item { padding: 0 !important; margin: 0 !important; border: 0 !important; }
    .hero-content .counter-wrap .counter-item h2 { font-size: 26px !important; }
    .hero-content .counter-wrap .counter-item p { font-size: 11px !important; line-height: 1.3 !important; }
    .hero-content h1 { font-size: 34px !important; }
    .hero-content .hero-text { font-size: 13px !important; line-height: 1.6 !important; }
    .tetsimonial-box-items { padding: 28px 18px !important; }
    .tetsimonial-box-items p { font-size: 14px !important; line-height: 1.55 !important; }
}

/* ===== team: every member at full brightness (theme dimmed all but the active one) ===== */
.team-section .team-box-items { opacity: 1 !important; filter: none !important; }
.team-section .team-box-items .content h3, .team-section .team-box-items .content h3 a { color: #fff !important; opacity: 1 !important; }
.team-section .team-box-items .content p { color: #cbfe1c !important; opacity: 1 !important; }
.team-section .team-box-items .thumb::before { background: linear-gradient(rgba(11,14,19,0) 70%, rgba(11,14,19,.85) 100%) !important; }
