/* ===========================
   ExploreFunCommunity – Global Theme
   Unified emerald leaf + gold + plum palette
   =========================== */

/* --- CSS Variables --- */
:root {
    /* Palette */
    --efc-primary-900: #042C25;
    --efc-primary-800: #06483D;
    --efc-primary-700: #0A604E;
    --efc-primary-600: #1BA97E;
    --efc-primary-500: #1ED59C;
    --efc-primary-300: #6FFFC9;
    --efc-primary-200: #A4FFE2;
    --efc-blue-500: #63CFFF;
    --efc-blue-300: #9BE4FF;
    --efc-plum-600: #8C3ED6;
    --efc-plum-400: #B675F0;
    --efc-gold-600: #F4C74E;
    --efc-gold-400: #FFE488;
    --efc-ink-900: #0C1116;
    --efc-ink-700: #1A2430;
    --efc-ink-500: #2A3644;
    --efc-cloud-000: #FFFFFF;
    --efc-cloud-100: #F5F8FA;
    --efc-cloud-200: #E6EBEF;
    --efc-cloud-300: #DCE2E7;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 6px 18px rgba(0,0,0,.08);
    --shadow-elev: 0 14px 40px rgba(0,0,0,.18);
}

/* ===========================
   Base & Global
   =========================== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--efc-cloud-100);
    color: var(--efc-ink-700);
    line-height: 1.55;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    display: block;
}
/* --- MOBILE NAVIGATION FIXES --- */

/* Ensure header menu is visible on top */
header.site-header,
.nav-overlay,
.nav-menu {
    position: relative;
    z-index: 1000;
}

/* Fix off-screen menu issue */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0C1116; /* dark background for contrast */
    color: #FFFFFF;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 20px 40px; /* padding-top ensures menu starts below header */
    overflow-y: auto;
}

    /* Show when active */
    .nav-menu.open {
        display: flex;
    }

    /* Make sure links are visible */
    .nav-menu a {
        display: block;
        padding: 14px 10px;
        font-size: 1.1rem;
        color: #FFFFFF;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: background 0.2s;
    }

        .nav-menu a:hover {
            background-color: rgba(255,255,255,0.1);
        }

/* Fix the toggle positioning */
.nav-toggle {
    position: relative;
    z-index: 1100;
    cursor: pointer;
}

/* Small tweak for CTA button */
.nav-menu .nav-cta {
    margin-top: 20px;
    background-color: #1ED59C;
    color: #0C1116;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
}

    .nav-menu .nav-cta:hover {
        background-color: #6FFFC9;
    }

/* Prevent page scrolling when menu is open */
body.nav-open {
    overflow: hidden;
}

/* ===========================
   Links & Buttons
   =========================== */
a {
    color: var(--efc-primary-600);
    text-decoration: none;
}

    a:hover {
        color: var(--efc-primary-500);
    }

.cta-button, .cta {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 14px 34px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
    background: linear-gradient(90deg, var(--efc-gold-600), var(--efc-gold-400));
    box-shadow: 0 6px 20px rgba(244,199,78,.35);
    transition: transform .15s ease, box-shadow .2s ease;
    cursor: pointer;
}

    .cta-button:hover, .cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(244,199,78,.45);
    }

    .cta-button.secondary {
        color: #fff;
        background: linear-gradient(90deg, var(--efc-plum-600), var(--efc-blue-500));
    }

/* ===========================
   Header
   =========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(140%) blur(8px);
    background: color-mix(in srgb, var(--efc-cloud-000) 78%, transparent);
    border-bottom: 1px solid var(--efc-cloud-300);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .brand img {
        height: 40px;
    }

    .brand .site-name {
        font-weight: 900;
        font-size: 1.25rem;
        color: var(--efc-primary-700);
    }

/* ===========================
   Sections
   =========================== */
section {
    padding: 70px 0;
}

.section-dark {
    background: var(--efc-ink-900);
    color: #fff;
}

.section-leaf {
    background: linear-gradient(180deg, var(--efc-primary-900), var(--efc-primary-700));
    color: #fff;
}

.section-sky {
    background: linear-gradient(180deg, var(--efc-blue-500), var(--efc-blue-300));
    color: #0C1116;
}

/* ===========================
   Game Cards & Lobby
   =========================== */
.webpart-lobby {
    padding: 56px 0;
}

    .webpart-lobby .lobby-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .webpart-lobby .lobby-title {
        font-weight: 900;
        margin: 0 0 6px;
    }

    .webpart-lobby .lobby-search {
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: 340px;
        background: #fff;
        border: 1px solid var(--efc-cloud-300);
        border-radius: 12px;
        padding: 8px 10px;
        margin: 0 auto 24px;
    }

        .webpart-lobby .lobby-search input {
            border: 0;
            background: transparent;
            flex: 1;
            font-size: 16px;
            color: #111;
        }

    .webpart-lobby .game-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 22px;
        align-items: start;
    }

    .webpart-lobby .game-card {
        background: #0A1C17;
        border: 1px solid rgba(255,255,255,.06);
        border-radius: 14px;
        box-shadow: var(--shadow-soft);
        transition: transform .15s ease;
    }

        .webpart-lobby .game-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-elev);
        }

    .webpart-lobby .game-thumb {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        display: block;
    }

    .webpart-lobby .game-info {
        padding: 12px;
        color: #fff;
    }

    .webpart-lobby .game-title {
        font-weight: 900;
        font-size: 1.05rem;
        margin: 0 0 6px;
    }

    .webpart-lobby video {
        display: none !important;
    }

/* ===========================
   Event Cards (Spotlight section)
   =========================== */
.webpart-event-cards {
    background: linear-gradient(180deg, #1ED59C 0%, #0A604E 100%);
    color: #fff;
    padding: 80px 0;
}

    .webpart-event-cards .event-card {
        background: rgba(0,0,0,0.25);
        border-radius: 14px;
        padding: 25px 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        transition: transform .2s ease;
    }

        .webpart-event-cards .event-card:hover {
            transform: translateY(-3px);
            background: rgba(0,0,0,0.35);
        }

        /* --- Center stacked spotlight images --- */
        .webpart-event-cards .event-card img,
        .section-spotlight .spotlight-card img,
        .webpart-banner_character .spotlight-card img {
            display: block;
            margin: 10px auto;
            border-radius: 10px;
            max-width: 90%;
            height: auto;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        }

.webpart-banner_character .spotlight-card,
.section-spotlight .spotlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 0;
}

    .webpart-banner_character .spotlight-card .image,
    .section-spotlight .spotlight-card .image {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

@media (max-width: 768px) {
    .webpart-banner_character .spotlight-card img,
    .section-spotlight .spotlight-card img {
        max-width: 95%;
        margin: 6px auto;
    }
}

/* ===========================
   Leaderboard
   =========================== */
.webpart-leaderboard {
    background: linear-gradient(180deg, #0A604E 0%, #05382C 100%);
    color: #fff;
    padding: 80px 0;
}

.champion-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

    .champion-card:hover {
        transform: translateY(-4px);
        background: rgba(255,255,255,0.12);
    }

.champion-score {
    color: var(--efc-gold-600);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background: #0A604E;
    color: #EAF6F3;
    text-align: center;
    padding: 60px 0 40px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

    .site-footer a {
        color: #F4C74E;
        font-weight: 700;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .site-footer a:hover {
            color: #fff;
        }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 25px auto;
    max-width: 900px;
}

    .footer-links a {
        background: transparent;
        padding: 6px 10px;
        border-radius: 4px;
        letter-spacing: 0.04em;
        font-size: 0.85rem;
    }

        .footer-links a:hover {
            background: rgba(255,255,255,0.1);
        }

.responsible-gaming-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px auto;
}

    .responsible-gaming-logos img {
        width: 44px;
        height: auto;
        opacity: 0.9;
        transition: opacity 0.2s ease;
    }

        .responsible-gaming-logos img:hover {
            opacity: 1;
        }

.footer-compliance {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #CDE8E2;
    font-size: 0.9rem;
}

.footer-top {
    background: #8C3ED6;
    height: 6px;
}

/* ===========================
   Icon Features & Responsible Resources
   =========================== */
.icon-feature {
    text-align: center;
    background: transparent;
}

    .icon-feature .icon-feature-icon {
        font-size: 28px;
        color: var(--efc-plum-600);
    }

.icon-feature-title {
    font-weight: 700;
    margin: 6px 0;
}

.resource-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: #0A604E;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(10,10,10,0.08);
}

    .resource-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(10,10,10,0.12);
    }

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 640px) {
    .webpart-lobby img.game-thumb {
        height: 120px !important;
    }

    .webpart-lobby .game-grid {
        gap: 14px;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ===========================
   FreeFunGalaxy – Global Theme
   Palette driven by emerald leaf + gold + warm red + plum
   =========================== */

/* CSS Variables – keep exhaustive for future features */
:root {
    /* === ExploreFunCommunity Palette === */
    /* Primaries (Emerald → Aqua Spectrum) */
    --efc-primary-900: #042C25;
    --efc-primary-800: #06483D;
    --efc-primary-700: #0A604E;
    --efc-primary-600: #1BA97E;
    --efc-primary-500: #1ED59C; /* main emerald */
    --efc-primary-300: #6FFFC9;
    --efc-primary-200: #A4FFE2;
    /* Accents */
    --efc-blue-500: #63CFFF;
    --efc-blue-300: #9BE4FF;
    --efc-plum-600: #8C3ED6;
    --efc-plum-400: #B675F0;
    --efc-gold-600: #F4C74E;
    --efc-gold-400: #FFE488;
    /* Ink / Neutrals */
    --efc-ink-900: #0C1116;
    --efc-ink-700: #1A2430;
    --efc-ink-500: #2A3644;
    --efc-ink-400: #3A4654;
    /* Clouds / Backgrounds */
    --efc-cloud-000: #FFFFFF;
    --efc-cloud-100: #F5F8FA;
    --efc-cloud-200: #E6EBEF;
    --efc-cloud-300: #DCE2E7;
    /* Utility Shadows / Radii */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 6px 18px rgba(0,0,0,.08);
    --shadow-elev: 0 14px 40px rgba(0,0,0,.18);
}

/* === Global Backgrounds === */
body {
    background: var(--efc-cloud-100);
    color: var(--efc-ink-700);
}

/* === Links & CTAs === */
a {
    color: var(--efc-primary-600);
}

    a:hover {
        color: var(--efc-primary-500);
    }

.cta-button, .cta {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 14px 34px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #111;
    background: linear-gradient(90deg, var(--efc-gold-600), var(--efc-gold-400));
    box-shadow: 0 6px 20px rgba(244,199,78,.35);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    cursor: pointer;
}

    .cta-button:hover, .cta:hover {
        transform: translateY(-2px);
        filter: saturate(1.08);
        box-shadow: 0 10px 28px rgba(244,199,78,.45);
    }

    .cta-button.secondary {
        color: #fff;
        background: linear-gradient(90deg, var(--efc-plum-600), var(--efc-blue-500));
        box-shadow: 0 10px 28px rgba(140,62,214,.35);
    }

/* === Header Styling === */
.site-header {
    backdrop-filter: saturate(150%) blur(8px);
    background: color-mix(in srgb, var(--efc-cloud-000) 78%, transparent);
    border-bottom: 1px solid var(--efc-cloud-300);
}

.brand .site-name {
    font-weight: 900;
    color: var(--efc-primary-700);
}

/* === Section Variants === */
.section-dark {
    background: var(--efc-ink-900);
    color: #fff;
}

.section-leaf {
    background: linear-gradient(180deg, var(--efc-primary-900), var(--efc-primary-700));
    color: #fff;
}

.section-sky {
    background: linear-gradient(180deg, var(--efc-blue-500), var(--efc-blue-300));
    color: #0C1116;
}

.section-cloud {
    background: var(--efc-cloud-000);
}

/* === Feature Boxes & Cards === */
.surface {
    background: #fff;
    border: 1px solid var(--efc-cloud-300);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

/* === Game Cards === */
.game-card-image, .game-card-video {
    border-radius: var(--radius-sm);
    transition: transform .2s ease;
}

    .game-card-image:hover, .game-card-video:hover {
        transform: scale(1.05);
    }

.game-card-rating {
    color: var(--efc-gold-600);
}

/* === Footer === */
.site-footer {
    background: var(--efc-ink-900);
    color: #cfd8e3;
    position: relative;
    z-index: 10;
}

.footer-links a:hover {
    color: var(--efc-gold-600);
}

/* === Compliance Logos === */
.responsible-gaming-logos img:hover {
    filter: none;
    opacity: 1;
    position: relative;
    z-index: 20; /* Bring logos above links and backgrounds */
}

.site-footer .responsible-gaming-logos img {
    display: inline-block;
    position: relative;
    z-index: 25;
    pointer-events: none; /* keeps text clickable if overlap */
}

.site-footer .footer-links {
    position: relative;
    z-index: 15;
}


/* --- FIX: Ensure footer shows below last no_purchase_banner --- */
.page-privacy .webpart-no_purchase_banner,
body.page-privacy .webpart-no_purchase_banner {
    margin-bottom: 80px !important; /* create spacing above footer */
    padding-bottom: 60px !important;
    position: relative !important;
    z-index: 1 !important;
}

.page-privacy .site-footer,
body.page-privacy .site-footer {
    position: relative !important;
    z-index: 5 !important;
}



/* === Primary CTA Buttons (Always Vibrant) === */
.cta-button,
.nav-cta .cta-button {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 14px 40px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--efc-primary-500) 0%, var(--efc-plum-600) 50%, var(--efc-gold-600) 100%);
    background-size: 200% auto; /* allows smooth hover animation */
    box-shadow: 0 6px 24px rgba(30, 213, 156, 0.35), 0 0 12px rgba(140, 62, 214, 0.2);
    transition: all 0.35s ease-in-out;
    cursor: pointer;
}

    /* On hover: shimmer, slight lift, and saturation pop */
    .cta-button:hover,
    .nav-cta .cta-button:hover {
        background-position: right center; /* animate gradient sweep */
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(140, 62, 214, 0.4), 0 0 24px rgba(244, 199, 78, 0.3);
        filter: brightness(1.1);
    }

    /* Focus-visible (keyboard/tab) accessibility glow */
    .cta-button:focus-visible,
    .nav-cta .cta-button:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(140, 62, 214, 0.3), 0 0 0 8px rgba(30, 213, 156, 0.2);
    }

/* Optional: give the nav CTA a distinct shape */
.nav-cta .cta-button {
    font-size: 0.9rem;
    padding: 10px 26px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}


/* === UNIVERSAL CTA BUTTON STYLES (Hero + Header) === */
.cta-button,
a.cta-button,
.nav-cta,
a.nav-cta {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 12px 36px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(90deg, var(--efc-primary-500) 0%, var(--efc-plum-600) 50%, var(--efc-gold-600) 100%);
    background-size: 200% auto;
    box-shadow: 0 6px 20px rgba(30, 213, 156, 0.35), 0 0 12px rgba(140, 62, 214, 0.25);
    transition: all 0.35s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    /* Hover: animated gradient sweep + glow */
    .cta-button:hover,
    a.cta-button:hover,
    .nav-cta:hover,
    a.nav-cta:hover {
        background-position: right center;
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(140, 62, 214, 0.4), 0 0 22px rgba(244, 199, 78, 0.35);
        filter: brightness(1.08);
    }

    /* Focus-visible for keyboard/touch accessibility */
    .cta-button:focus-visible,
    a.cta-button:focus-visible,
    .nav-cta:focus-visible,
    a.nav-cta:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(140, 62, 214, 0.3), 0 0 0 8px rgba(30, 213, 156, 0.2);
    }

    /* Subtle animated pulse for attention on hero CTA */
    .cta-button:not(.nav-cta) {
        animation: pulseGlow 3.5s infinite ease-in-out;
    }

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(30, 213, 156, 0.35), 0 0 10px rgba(140, 62, 214, 0.25);
    }

    50% {
        box-shadow: 0 10px 28px rgba(244, 199, 78, 0.4), 0 0 22px rgba(30, 213, 156, 0.35);
    }
}


@media (max-width: 768px) {
    .single-game-iframe {
        height: 60vh;
        min-height: 400px;
    }
}

/* === Align Game Cards: Consistent Height + Button Alignment === */
.game-card-detailed-video,
.game-card-detailed,
.game-card-playdemo {
    display: flex;
    flex-direction: column;
    height: 100%; /* make all cards same height within a row */
}

.game-card-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* push CTA button to bottom */
    text-align: center;
    padding: 1rem;
}

    .game-card-info h3.game-card-title {
        min-height: 2.6em; /* reserve consistent space for 2 lines */
        margin-bottom: 0.5rem;
    }

    .game-card-info .cta-button {
        align-self: center;
        margin-top: auto;
    }


/* === SINGLE GAME PAGE FIXES === */
.single-game-section {
    background: #0C1116;
    padding: 60px 0;
}

.single-game-iframe-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    margin: 0 auto 24px auto;
    max-width: 1200px;
}

.single-game-iframe {
    width: 100%;
    height: 75vh; /* Make it responsive to viewport height */
    min-height: 600px; /* Ensure it’s not too small on tall displays */
    border: none;
    display: block;
}

/* Fullscreen button */
.single-game-controls {
    text-align: center;
    margin-bottom: 40px;
}

    .single-game-controls .cta-button {
        background: linear-gradient(90deg, var(--efc-primary-500), var(--efc-accent-plum, #8C3ED6));
        color: #fff;
        border-radius: 999px;
        font-weight: 700;
        padding: 12px 28px;
        transition: all 0.25s ease;
    }

        .single-game-controls .cta-button:hover {
            transform: translateY(-2px);
            filter: brightness(1.15);
        }




/* Header version: tighter padding and scale balance */
.nav-cta,
a.nav-cta {
    padding: 10px 26px;
    font-size: 0.9rem;
    background: linear-gradient(90deg, var(--efc-primary-600), var(--efc-gold-600));
    box-shadow: 0 4px 16px rgba(30, 213, 156, 0.35);
    animation: none !important; /* disable pulsing in header */
}

    .nav-cta:hover,
    a.nav-cta:hover {
        background-position: right center;
        box-shadow: 0 8px 24px rgba(244, 199, 78, 0.35), 0 0 18px rgba(140, 62, 214, 0.25);
    }
/* === FIX: Header CTA text contrast on hover === */
.nav-cta,
a.nav-cta {
    color: #fff !important;
    background: linear-gradient(90deg, var(--efc-primary-600), var(--efc-gold-600));
    box-shadow: 0 4px 16px rgba(30, 213, 156, 0.35);
    transition: all 0.3s ease-in-out;
}

    /* On hover — stronger gold tone with dark readable text */
    .nav-cta:hover,
    a.nav-cta:hover {
        background: linear-gradient(90deg, var(--efc-gold-600), var(--efc-primary-600));
        color: var(--efc-ink-900) !important; /* readable dark text */
        box-shadow: 0 8px 24px rgba(244, 199, 78, 0.45), 0 0 18px rgba(30, 213, 156, 0.25);
        filter: brightness(1.05);
    }

    /* Keep text readable during focus too */
    .nav-cta:focus-visible,
    a.nav-cta:focus-visible {
        color: var(--efc-ink-900) !important;
        background: linear-gradient(90deg, var(--efc-gold-400), var(--efc-primary-500));
        outline: none;
    }


/* === Accent Details === */
.badge-pill {
    border: 1px solid var(--efc-cloud-300);
    background: var(--efc-cloud-000);
}

/* === Modal Styles (Match Theme) === */
.age-modal-list i {
    color: var(--efc-primary-500);
}

/* === Utilities === */
.text-accent {
    color: var(--efc-primary-500);
}

.bg-leaf {
    background: var(--efc-primary-700);
}

.bg-sky {
    background: var(--efc-blue-500);
}

.bg-plum {
    background: var(--efc-plum-600);
}


/* === FOOTER FIX === */
.site-footer {
    background: #0A604E; /* dark emerald instead of black */
    color: #EAF6F3; /* softer light text */
    padding: 60px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

    .site-footer a {
        color: #F4C74E; /* gold accent links */
        transition: color 0.2s ease;
    }

        .site-footer a:hover {
            color: #FFFFFF;
        }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 15px;
}

    .footer-links a {
        text-transform: uppercase;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.05rem;
    }

/* === LEADERBOARD CLEANUP === */
.webpart-leaderboard {
    background: linear-gradient(180deg, #0A604E 0%, #052E26 100%);
    color: #FFFFFF;
    padding: 80px 0;
}

.champion-card {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

    .champion-card:hover {
        transform: translateY(-4px);
    }

.champion-name {
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 10px;
}

.champion-score {
    font-weight: 600;
    color: #F4C74E;
}

/* === EVENT CARDS COLOR FIX === */
.webpart-event-cards {
    background: #0F3A2E;
    color: #FFFFFF;
    padding: 80px 0;
}

    .webpart-event-cards .event-card {
        background: #173F33;
        color: #FFFFFF;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

        .webpart-event-cards .event-card:hover {
            transform: translateY(-3px);
        }

.event-card .cta-button {
    background: linear-gradient(90deg, #F4C74E, #E8B12F);
    color: #111;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 26px;
}

    .event-card .cta-button:hover {
        background: linear-gradient(90deg, #F8DA6C, #FFD75E);
    }

/* === SECTION SPACING & BUTTON GLOW CLEANUP === */
section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.cta-button {
    box-shadow: none;
    transition: background 0.25s ease, transform 0.15s ease;
}

    .cta-button:hover {
        transform: translateY(-2px);
    }

/* === RESPONSIBLE GAMING AREA / COMPLIANCE LINE === */
.site-footer .footer-compliance {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 25px;
    padding-top: 15px;
    font-size: 0.9rem;
    color: #CDE8E2;
    text-align: center;
}


.footer-top {
    background: #8C3ED6;
    height: 5px;
}


/* Base */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    background: var(--ffg-cloud-100);
    color: var(--ffg-ink-700);
    line-height: 1.55;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px
}

img {
    max-width: 100%;
    display: block
}

/* Links & Buttons */
a {
    color: var(--ffg-primary-600);
    text-decoration: none
}

    a:hover {
        color: var(--ffg-primary-500)
    }

.cta-button, .cta {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 14px 34px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #111;
    background: linear-gradient(90deg,var(--ffg-gold-700),var(--ffg-gold-500));
    box-shadow: 0 6px 20px rgba(245,194,66,.35);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    cursor: pointer;
}

    .cta-button:hover, .cta:hover {
        transform: translateY(-2px);
        filter: saturate(1.08);
        box-shadow: 0 10px 28px rgba(245,194,66,.45)
    }

    .cta-button.secondary {
        color: var(--ffg-cloud-000);
        background: linear-gradient(90deg,var(--ffg-plum-600),var(--ffg-magenta-500));
        box-shadow: 0 10px 28px rgba(111,45,189,.35);
    }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(140%) blur(8px);
    background: color-mix(in srgb, var(--ffg-cloud-000) 78%, transparent);
    border-bottom: 1px solid var(--ffg-cloud-300);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

    .brand img {
        height: 40px;
        width: auto
    }

    .brand .site-name {
        font-weight: 900;
        font-size: 1.25rem;
        color: var(--ffg-primary-700)
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px
}

    .nav-links a {
        font-weight: 700;
        color: var(--ffg-ink-700);
        padding: 8px 10px;
        border-radius: 10px
    }

        .nav-links a:hover {
            background: var(--ffg-cloud-200)
        }

.nav-cta {
    margin-left: 6px
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ffg-ink-700)
}

@media (max-width: 992px) {
    .nav-links {
        display: none
    }

    .menu-toggle {
        display: block
    }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    background: linear-gradient(180deg,var(--ffg-ink-900), var(--ffg-ink-700));
    color: #fff;
}

    .mobile-menu.open {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        padding: 40px
    }

    .mobile-menu a {
        color: #fff;
        font-size: 1.5rem;
        font-weight: 800
    }

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 36px;
    color: #fff;
    text-decoration: none
}

/* Hero / Section helpers (reused by webparts) */
section {
    padding: 56px 0
}

.section-dark {
    background: var(--ffg-ink-900);
    color: #fff
}

.section-leaf {
    background: linear-gradient(180deg,var(--ffg-primary-900),var(--ffg-primary-700));
    color: #fff
}

.section-cloud {
    background: var(--ffg-cloud-000)
}

.section-title {
    font-weight: 900;
    font-size: 2.4rem;
    margin: 0 0 10px
}

.section-sub {
    opacity: .86;
    max-width: 740px;
    margin: 0 auto 28px
}

/* Card-ish surfaces */
.surface {
    background: #fff;
    border: 1px solid var(--ffg-cloud-300);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft)
}

    .surface.dark {
        background: var(--ffg-ink-700);
        border-color: #1f2a36;
        color: #fff
    }

/* Game cards (used by webparts) */
.game-card-image, .game-card-video {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform .2s ease
}

    .game-card-image:hover, .game-card-video:hover {
        transform: scale(1.04)
    }

.game-card-rating {
    color: var(--ffg-gold-500)
}

/* Reviews / badges */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--ffg-cloud-300);
    background: var(--ffg-cloud-000)
}

    .badge-pill i {
        color: var(--ffg-gold-600)
    }

/* Footer (footer.php uses these) */
.site-footer {
    background: var(--ffg-ink-900);
    color: #b7c2cf;
    padding: 44px 20px;
    margin-top: 40px;
    text-align: center
}

    .site-footer .footer-logo {
        max-height: 50px;
        display:block;
        margin: 0 auto 12px; /* center + small spacing */
    }

    /* If the logo is wrapped in a link or brand container */
    .site-footer .footer-brand,
    .site-footer a.footer-logo {
        display: flex;
        max-height: 50px;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto 12px;
    }

/* Defensive: if a row puts items left/right, stack and center on small screens */
@media (max-width: 991.98px) {
    .site-footer .footer-row,
    .site-footer .footer-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    justify-content: center;
    margin: 12px 0
}

    .footer-links a {
        color: #fff;
        font-weight: 700
    }

        .footer-links a:hover {
            color: var(--ffg-gold-500)
        }

.responsible-gaming-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 8px 0
}

    .responsible-gaming-logos img {
        max-height: 36px;
        filter: grayscale(100%);
        opacity: .8;
        transition: all .2s
    }

        .responsible-gaming-logos img:hover {
            filter: none;
            opacity: 1
        }

.footer-disclaimer-full {
    max-width: 980px;
    margin: 14px auto 0
}

    .footer-disclaimer-full p {
        font-size: .85rem;
        line-height: 1.5;
        color: #9fb1c3
    }

/* Cookie banner */
#cookie-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12,17,22,.98);
    color: #fff;
    padding: 18px;
    z-index: 1200;
    display: none;
    text-align: center
}

    #cookie-popup a {
        color: #fff;
        text-decoration: underline
    }

#cookie-accept-btn {
    margin-left: 10px
}

/* Age gate modal (footer.php renders) */
.age-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.86);
    backdrop-filter: blur(6px);
    z-index: 1400
}

.age-modal-content {
    width: min(520px,92%);
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-elev);
    display: flex; /* NEW */
    flex-direction: column; /* NEW */
    align-items: center; /* NEW */
}

.age-modal-logo {
    display: block; /* ensure it's a block we can auto-margin */
    margin: 0 auto 12px; /* NEW: centers the img */
    height: 54px;
    margin-bottom: 10px;
    text-align: center;
}

.age-modal-title {
    font-size: 1.85rem;
    font-weight: 900;
    margin: 6px 0 4px
}

.age-modal-subtitle {
    opacity: .8;
    margin-bottom: 14px
}

.age-modal-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 18px;
    text-align: left
}

    .age-modal-list li {
        display: flex;
        gap: 8px;
        align-items: center;
        margin: 8px 0
    }

    .age-modal-list i {
        color: var(--ffg-primary-500)
    }

.age-modal-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center
}

.age-modal-exit {
    background: #e9eef2;
    color: #334555
}

/* Game modal (footer.php renders) */
.game-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500
}

.game-modal-content {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    background: #000;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    overflow: hidden
}

.game-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #10161c;
    padding: 10px 14px
}

.game-modal-title {
    color: #fff;
    font-weight: 800
}

.game-modal-close {
    font-size: 28px;
    color: #cdd6df;
    text-decoration: none
}

.game-modal-body {
    flex: 1;
    background: #0b0f14
}

    .game-modal-body iframe {
        width: 100%;
        height: 100%;
        border: 0
    }

/* Utility */
.text-center {
    text-align: center
}

.mt-0 {
    margin-top: 0
}

.mb-0 {
    margin-bottom: 0
}

.mt-24 {
    margin-top: 24px
}

.mb-24 {
    margin-bottom: 24px
}

.rounded-lg {
    border-radius: var(--radius-lg)
}


/* === Games Collection: simple_row_scroll (corrected selectors) === */
.games-collection-wrapper.layout-simple_row_scroll .game-row-simple {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding: 8px 2px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.games-collection-wrapper.layout-simple_row_scroll .game-row-item {
    scroll-snap-align: start;
}

.games-collection-wrapper.layout-simple_row_scroll .game-card-simple {
    display: block;
    background: #fff;
    border: 1px solid var(--ffg-cloud-300);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    transition: transform .15s ease;
}

    .games-collection-wrapper.layout-simple_row_scroll .game-card-simple:hover {
        transform: translateY(-2px);
    }

.games-collection-wrapper.layout-simple_row_scroll .game-card-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
    .games-collection-wrapper.layout-simple_row_scroll .game-row-simple {
        grid-auto-columns: 220px;
        gap: 18px;
    }
}



/* Icon Features – make titles & supporting text visible and balanced */
.webpart-icon_features,
.webpart-icon-features { /* handle both kebab & underscore naming */
    --feature-gap: 18px;
}

    .webpart-icon_features .feature-item,
    .webpart-icon-features .feature-item {
        text-align: center;
        padding: 18px;
        background: #fff;
        border: 1px solid var(--ffg-cloud-300);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-soft);
        height: 100%;
    }

        .webpart-icon_features .feature-item .feature-icon,
        .webpart-icon-features .feature-item .feature-icon {
            font-size: 32px;
            margin-bottom: 10px;
            color: var(--ffg-ink-700);
        }

        .webpart-icon_features .feature-item h4,
        .webpart-icon-features .feature-item h4 {
            margin: 8px 0 6px;
            font-weight: 800;
            color: var(--ffg-ink-700);
        }

        .webpart-icon_features .feature-item p,
        .webpart-icon-features .feature-item p {
            margin: 0;
            font-size: 0.98rem;
            line-height: 1.45;
            color: var(--ffg-ink-600);
            opacity: 0.95;
        }

/* =========================
   FIX: Reviews avatar targeting
   ========================= */

/* 0) Ensure the overall row is a simple media layout */
.webpart-reviews_collection .review-card-initials,
.webpart-reviews-collection .review-card-initials,
.webpart-reviews_collection .review-item,
.webpart-reviews-collection .review-item,
.webpart-reviews_collection .review,
.webpart-reviews-collection .review {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    /* 1) Reset ANY children under the container (undo the green ovals) */
    .webpart-reviews_collection .review-card-initials > *,
    .webpart-reviews-collection .review-card-initials > * {
        background: none !important;
        border: 0 !important;
        width: auto !important;
        height: auto !important;
        flex: initial !important;
        border-radius: 0 !important;
        display: block !important;
        color: inherit !important;
        margin: 0 !important;
        line-height: inherit !important;
    }

    /* 2) Apply the avatar style ONLY to the FIRST child (the initial letter) */
    .webpart-reviews_collection .review-card-initials > :first-child,
    .webpart-reviews-collection .review-card-initials > :first-child {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        border-radius: 50% !important;
        background: var(--ffg-primary-500) !important;
        color: #fff !important;
        font-weight: 800 !important;
        letter-spacing: .4px !important;
        border: 2px solid #fff !important;
        text-transform: uppercase !important;
        line-height: 1 !important;
        margin-right: 10px !important;
    }

/* 3) The text/content column sits to the right and flows normally */
.webpart-reviews_collection .review-content,
.webpart-reviews-collection .review-content,
.webpart-reviews_collection .review-body,
.webpart-reviews-collection .review-body {
    flex: 1 1 auto;
    min-width: 0;
}

/* 4) Tidy typography + stars */
.webpart-reviews_collection h4,
.webpart-reviews-collection h4 {
    margin: 0 0 4px;
    font-weight: 800;
}

.webpart-reviews_collection p,
.webpart-reviews-collection p {
    margin: 0 0 8px;
}

.webpart-reviews_collection .stars,
.webpart-reviews-collection .stars {
    display: inline-block;
    margin-top: 6px;
}

.webpart-reviews_collection .fa-star,
.webpart-reviews-collection .fa-star {
    color: var(--ffg-gold-500);
    line-height: 1;
}

    .webpart-reviews_collection .fa-star + .fa-star,
    .webpart-reviews-collection .fa-star + .fa-star {
        margin-left: 2px;
    }

/* 5) Small screens */
@media (max-width:575.98px) {
    .webpart-reviews_collection .review-card-initials > :first-child,
    .webpart-reviews-collection .review-card-initials > :first-child {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

/* ===== LOBBY PAGE ===== */
.webpart-lobby {
    padding: 56px 0;
}

    .webpart-lobby .lobby-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .webpart-lobby .lobby-title {
        font-weight: 900;
        margin: 0 0 6px;
    }

    .webpart-lobby .lobby-sub {
        opacity: .9;
        margin: 0 auto 18px;
        max-width: 760px
    }

    /* Search */
    .webpart-lobby .lobby-search {
        display: flex;
        align-items: center;
        gap: 10px;
        max-width: 340px;
        background: #fff;
        border: 1px solid var(--ffg-cloud-300);
        border-radius: 12px;
        padding: 8px 10px;
        margin: 0 auto 24px;
    }

        .webpart-lobby .lobby-search i {
            font-size: 18px;
            color: #222
        }

        .webpart-lobby .lobby-search input {
            border: 0;
            outline: 0;
            background: transparent;
            flex: 1 1 auto;
            font-size: 16px;
            color: #111;
        }

    /* Grid */
    .webpart-lobby .game-grid {
        display: grid;
        gap: 22px;
    }

@media (min-width: 576px) {
    .webpart-lobby .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .webpart-lobby .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .webpart-lobby .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card */
.webpart-lobby .game-card {
    background: #0A1C17;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .2s ease;
}

    .webpart-lobby .game-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-elev)
    }

.webpart-lobby .game-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.webpart-lobby .game-info {
    padding: 12px 12px 14px;
    color: #fff;
}

.webpart-lobby .game-title {
    font-weight: 900;
    font-size: 1.05rem;
    margin: 0 0 6px;
    line-height: 1.25;
}

.webpart-lobby .game-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .92rem;
    opacity: .9;
}

    .webpart-lobby .game-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px
    }

.webpart-lobby .game-rating i {
    color: var(--ffg-gold-500)
}

/* Ensure videos never appear in the lobby even if present */
.webpart-lobby video {
    display: none !important;
}


/* === Center the 'simple_row_scroll' strip when it doesn't overflow === */
.games-collection-wrapper.layout-simple_row_scroll .game-row-simple {
    display: flex; /* was grid */
    align-items: stretch;
    justify-content: center; /* <— centers when items fit */
    gap: 16px;
    overflow-x: auto; /* still scrolls if it needs to */
    padding: 8px 2px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Each card keeps a reasonable minimum width */
.games-collection-wrapper.layout-simple_row_scroll .game-row-item {
    flex: 0 0 180px; /* min card width */
    scroll-snap-align: start;
}

@media (min-width:768px) {
    .games-collection-wrapper.layout-simple_row_scroll .game-row-item {
        flex-basis: 220px;
    }

    .games-collection-wrapper.layout-simple_row_scroll .game-row-simple {
        gap: 18px;
    }
}

/* Optional: hide visible horizontal scrollbar while preserving scroll */
.games-collection-wrapper.layout-simple_row_scroll .game-row-simple {
    scrollbar-width: none;
}

    .games-collection-wrapper.layout-simple_row_scroll .game-row-simple::-webkit-scrollbar {
        display: none;
    }

/* ==== Remove white gap above footer ==== */

/* 1) Footer shouldn’t push itself down */
.site-footer {
    margin-top: 0 !important;
    border-top: 0 !important; /* kill any accidental top border */
}

/* 2) The last section on the page shouldn’t add extra space */
main > section:last-of-type,
.page-content > section:last-of-type,
body > section:last-of-type {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 3) If a spacer/hr exists above footer, hide it defensively */
.footer-spacer,
.footer-separator,
.footer-divider,
.site-footer::before {
    display: none !important;
    height: 0 !important;
    border: 0 !important;
    content: none !important; /* handles pseudo-element case */
}

/* 4) Ensure containers don’t add bottom margin that shows as white */
.container:last-child {
    margin-bottom: 0 !important;
}


/* === Comfortable spacing before footer (non-legal pages) === */
main > section:last-of-type,
.page-content > section:last-of-type,
body > section:last-of-type {
    /* gentle buffer so buttons/CTA shadows don't crash into the footer */
    padding-bottom: clamp(28px, 5vw, 72px) !important;
    margin-bottom: 0 !important;
}

/* Keep legal pages tight (they looked correct already) */
body.page-privacy main > section:last-of-type,
body.page-terms main > section:last-of-type,
body.page-responsible-gaming main > section:last-of-type {
    padding-bottom: 0 !important;
}

/* Defensive: if contact form is last, give it extra space for button shadows */
.webpart-contact_form:last-of-type {
    padding-bottom: clamp(36px, 6vw, 84px) !important;
}

/* Footer still shouldn’t add its own gap */
.site-footer {
    margin-top: 0 !important;
    border-top: 0 !important;
}


    /* ==========================================================
   EXPLOREFUNCOMMUNITY – POLISH & FOOTER FIX
   ========================================================== */

    /* ---------- Footer Override ---------- */
    .site-footer,
    .site-footer * {
        box-sizing: border-box;
    }

.site-footer {
    background: #0A604E !important; /* Dark emerald */
    color: #EAF6F3 !important; /* Soft light text */
    text-align: center;
    padding: 60px 0 40px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

    .site-footer a {
        color: #F4C74E !important; /* Gold accent */
        font-weight: 700;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .site-footer a:hover {
            color: #FFFFFF !important;
        }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 25px auto;
    max-width: 900px;
}

    .footer-links a {
        background: transparent;
        padding: 6px 10px;
        border-radius: 4px;
        letter-spacing: 0.04em;
        font-size: 0.85rem;
    }

        .footer-links a:hover {
            background: rgba(255,255,255,0.1);
        }

.responsible-gaming-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px auto;
}

    .responsible-gaming-logos img {
        width: 44px;
        height: auto;
        opacity: 0.9;
        transition: opacity 0.2s ease;
    }

        .responsible-gaming-logos img:hover {
            opacity: 1;
        }

.footer-compliance {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #CDE8E2 !important;
    font-size: 0.9rem;
}

/* ---------- Leaderboard Section ---------- */
.webpart-leaderboard {
    background: linear-gradient(180deg, #0A604E 0%, #05382C 100%);
    color: #FFFFFF;
    padding: 80px 0;
}

    .webpart-leaderboard .champion-card {
        background: rgba(255,255,255,0.08);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        transition: transform 0.2s ease, background 0.2s ease;
    }

        .webpart-leaderboard .champion-card:hover {
            transform: translateY(-4px);
            background: rgba(255,255,255,0.12);
        }

    .webpart-leaderboard .champion-name {
        font-weight: 800;
        margin-top: 8px;
    }

    .webpart-leaderboard .champion-score {
        font-weight: 600;
        color: #F4C74E;
    }

/* ---------- Event Cards ---------- */
.webpart-event-cards {
    background: linear-gradient(180deg, #1ED59C 0%, #0A604E 100%);
    color: #FFFFFF;
    padding: 80px 0;
}

    .webpart-event-cards h2,
    .webpart-event-cards h3,
    .webpart-event-cards p {
        color: #FFFFFF !important;
    }

    .webpart-event-cards .event-card {
        background: rgba(0,0,0,0.25);
        color: #FFFFFF;
        border-radius: 14px;
        padding: 25px 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        transition: transform 0.2s ease, background 0.2s ease;
    }

        .webpart-event-cards .event-card:hover {
            transform: translateY(-3px);
            background: rgba(0,0,0,0.35);
        }

    .webpart-event-cards .cta-button {
        background: linear-gradient(90deg, #F4C74E, #E8B12F);
        color: #111;
        border: none;
        border-radius: 999px;
        padding: 10px 28px;
        font-weight: 700;
        transition: all 0.25s ease;
    }

        .webpart-event-cards .cta-button:hover {
            background: linear-gradient(90deg, #FFD967, #F8E48F);
        }

/* ---------- General Rhythm & Buttons ---------- */
section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.cta-button {
    box-shadow: none;
    transition: transform 0.2s ease;
}

    .cta-button:hover {
        transform: translateY(-2px);
    }

/* ---------- Footer Top Purple Strip ---------- */
.footer-top {
    background: #8C3ED6 !important;
    height: 6px;
}


/* ===== Lobby grid + thumbnail visibility ===== */
.webpart-lobby .game-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 22px !important;
    align-items: start;
    justify-items: stretch;
    width: 100%;
}

.webpart-lobby .game-card {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Ensure thumbnails show as cover */
.webpart-lobby img.game-thumb,
.webpart-lobby video.game-thumb {
    display: block !important;
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    background-color: transparent !important;
}

/* Container sizing so no weird gaps on the right */
.webpart-lobby .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Footer top strip / logo sizing fix (removes the big empty column) ===== */
.footer-top-section {
    height: 6px !important;
}

.footer-logo-link {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
}

.responsible-gaming-logos {
    justify-content: center !important;
    gap: 12px !important;
    max-width: 100% !important;
}

/* Small screens */
@media (max-width: 640px) {
    .webpart-lobby img.game-thumb,
    .webpart-lobby video.game-thumb {
        height: 120px !important;
    }

    .webpart-lobby .game-grid {
        gap: 14px !important;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    }
}


/* Responsible / icon_features: CTA button */
.icon-feature {
    position: relative;
}

    .icon-feature .icon-feature-icon {
        font-size: 28px;
        margin-bottom: 8px;
        color: var(--efc-accent, #8C3ED6);
    }

.icon-feature-title {
    margin: 6px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: inherit;
}

.icon-feature-text {
    color: rgba(0,0,0,0.65);
    margin-top: 6px;
    font-size: 0.95rem;
}

/* Visit button */
.resource-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: #0A604E; /* green that matches palette - change if needed */
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(10,10,10,0.08);
}

    .resource-btn:hover,
    .resource-btn:focus {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(10,10,10,0.12);
        outline: none;
    }

.icon-features-list .icon-feature {
    background: transparent;
}

/* small screens: stack */
@media (max-width: 640px) {
    .icon-features-list {
        gap: 12px;
    }

    .icon-feature {
        flex-basis: 100% !important;
    }
}


/* Footer visibility fix */
.site-footer, footer, .footer {
    position: relative !important;
    z-index: 50 !important;
    background: #052E26; /* keep your palette, adjust if needed */
    color: #fff;
}

    .footer .responsible-gaming-logos img {
        max-height: 40px;
        margin-right: 12px;
        vertical-align: middle;
    }


/* Homepage: center & rounded spotlight images */
.webpart-banner_character img,
.section-spotlight img,
.spotlight-card img,
.webpart-hero img,
.webpart-banner_character .image,
.webpart-hero .image {
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(10,10,10,0.12);
}

/* If you have horizontally-tall "strip" images, ensure they scale and are centered */
.spotlight-card .strip-image {
    display: block;
    margin: 12px auto 0 auto;
    width: 96%;
    border-radius: 10px;
    object-fit: cover;
    overflow: hidden;
}

/* Make sure image container doesn't float left/right */
.webpart-banner_character .image,
.webpart-hero .image {
    text-align: center;
}


/* ---------- Spotlight card: padding, centered images, rounded corners ---------- */

/* 1 + 2: add extra padding inside spotlight cards so header/buttons have breathing room */
.webpart-banner_character .spotlight-card,
.webpart-banner_character .spotlight-card .card,
.section-spotlight .spotlight-card {
    padding: 22px !important; /* gives space above image for buttons */
    box-sizing: border-box !important;
    background-clip: padding-box;
}

    /* If there is a header area above the image, ensure it has spacing */
    .webpart-banner_character .spotlight-card .card-header,
    .section-spotlight .spotlight-card .card-header,
    .spotlight-card .card-top {
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    /* 3 + 4: image wrapper that centers the image both horizontally and vertically */
    .webpart-banner_character .spotlight-card .image-wrapper,
    .section-spotlight .spotlight-card .image-wrapper,
    .spotlight-card .image-wrapper,
    .spotlight-card .image {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important; /* inner padding so image doesn't butt to edges */
        width: 100% !important;
        box-sizing: border-box !important;
    }

        /* Make the actual images responsive, centered, rounded, and not overflowing the card */
        .webpart-banner_character img,
        .section-spotlight img,
        .spotlight-card img,
        .webpart-banner_character .image-wrapper img,
        .spotlight-card .image img {
            display: block !important;
            margin: 0 auto !important;
            max-width: 100% !important; /* never exceed the card width */
            max-height: calc(100vh - 420px) !important; /* prevent enormous images on small viewports */
            height: auto !important;
            object-fit: cover !important;
            border-radius: 12px !important; /* rounded corners */
            box-shadow: 0 10px 24px rgba(10,10,10,0.12) !important;
        }

/* If the card uses a fixed-height visual area, allow the image to be vertically centered */
.webpart-banner_character .image-wrapper,
.section-spotlight .image-wrapper {
    min-height: 220px; /* reasonable default height for spotlight visuals */
}

/* Keep layout responsive on small screens */
@media (max-width: 900px) {
    .webpart-banner_character .spotlight-card,
    .section-spotlight .spotlight-card {
        padding: 16px !important;
    }

    .webpart-banner_character .image-wrapper,
    .section-spotlight .image-wrapper {
        min-height: 160px;
    }

    .webpart-banner_character img,
    .section-spotlight img {
        max-height: 380px !important;
    }
}

@media (max-width: 480px) {
    .webpart-banner_character .spotlight-card,
    .section-spotlight .spotlight-card {
        padding: 12px !important;
    }

    .webpart-banner_character .image-wrapper,
    .section-spotlight .image-wrapper {
        min-height: 120px;
    }
}



/* ===========================
   Spotlight card: robust centering + padding + rounded visuals
   Appended override — place at end of file
   =========================== */

/* Make padding on card header bigger so the CTA buttons have breathing room */
.spotlight-card,
.webpart-banner_character .spotlight-card,
.section-spotlight .spotlight-card {
    padding: 28px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

    /* Extra spacing for the header area above the visual */
    .spotlight-card .card-header,
    .webpart-banner_character .spotlight-card .card-header,
    .section-spotlight .spotlight-card .card-header,
    .spotlight-card .card-top {
        margin-bottom: 14px !important;
        padding-bottom: 10px !important;
    }

    /* Ensure image container is a centered flexbox regardless of markup */
    .spotlight-card .image-wrapper,
    .webpart-banner_character .spotlight-card .image-wrapper,
    .section-spotlight .spotlight-card .image-wrapper,
    .spotlight-card .spotlight-image,
    .spotlight-card .image,
    .spotlight-card > .image,
    .spotlight-card > .spotlight-image,
    .spotlight-card > img,
    .webpart-banner_character .spotlight-card > img,
    .section-spotlight .spotlight-card > img {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
        width: 100% !important;
        min-height: 180px !important; /* keeps a consistent visual block */
        box-sizing: border-box !important;
    }

        /* Target any image inside a spotlight card and constrain it so it doesn't overflow */
        .spotlight-card img,
        .webpart-banner_character img,
        .section-spotlight img,
        .spotlight-card .image img,
        .spotlight-card > img {
            display: block !important;
            margin: 0 auto !important;
            width: auto !important; /* allow narrower images to stay natural width */
            max-width: calc(100% - 44px) !important; /* leave inner padding so it never hits edges */
            height: auto !important;
            max-height: calc(100vh - 420px) !important;
            object-fit: contain !important; /* contain so full image is visible, not cropped */
            border-radius: 12px !important;
            box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
            overflow: hidden !important;
        }

    /* If you prefer full-bleed images on large screens, reduce the clamp:
   .spotlight-card img { object-fit: cover !important; max-width: 100% !important; } */

    /* Ensure the CTA button row above the image won't overlap the image area */
    .spotlight-card .card-header,
    .spotlight-card .card-top,
    .webpart-banner_character .spotlight-card .card-header {
        z-index: 3 !important;
        position: relative !important;
    }

    /* Keep the image area visually above the card background but below header text if needed */
    .spotlight-card .image-wrapper,
    .spotlight-card > img {
        z-index: 1 !important;
        position: relative !important;
    }

/* Responsive tweaks */
@media (max-width: 900px) {
    .spotlight-card {
        padding: 18px !important;
    }

        .spotlight-card .image-wrapper {
            min-height: 140px !important;
        }

        .spotlight-card img {
            max-height: 380px !important;
            max-width: calc(100% - 32px) !important;
        }
}

@media (max-width: 480px) {
    .spotlight-card {
        padding: 12px !important;
    }

        .spotlight-card .image-wrapper {
            min-height: 100px !important;
        }

        .spotlight-card img {
            max-height: 320px !important;
            max-width: calc(100% - 20px) !important;
        }
}

/* Safety: force center for any .spotlight-card children that might float left/right */
.spotlight-card > * {
    margin-left: auto;
    margin-right: auto;
}

/* Map missing variable names (alias common prefixes) so colours don't break */
:root {
    /* if --ffg variables are used elsewhere, alias them to the defined --efc variables */
    --ffg-cloud-100: var(--efc-cloud-100);
    --ffg-ink-700: var(--efc-ink-700);
    --ffg-primary-700: var(--efc-primary-700);
    --ffg-gold-500: var(--efc-gold-600);
    --ffg-plum-600: var(--efc-plum-600);
    --ffg-cloud-300: var(--efc-cloud-300);
}


/* === Unified CTA Buttons (applies to all major calls-to-action) === */
.cta-button,
button[type="submit"],
input[type="submit"] {
    background: linear-gradient(90deg, #1ED59C, #8C3ED6);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    border-radius: 999px;
    padding: 12px 32px;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 6px 16px rgba(12, 17, 22, 0.25);
}

    .cta-button:hover,
    button[type="submit"]:hover,
    input[type="submit"]:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(12, 17, 22, 0.35);
        color: #fff;
    }

    /* Fix: Make disabled state readable */
    button[type="submit"]:disabled,
    input[type="submit"]:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background: linear-gradient(90deg, #BFBFBF, #9A9A9A);
        box-shadow: none;
    }


 
