/*!
 * eg333.cfd - Core Stylesheet
 * All custom classes use the "gffc-" prefix for namespace isolation.
 * Palette: #1B263B (bg) | #98FB98 (light) | #006400 (brand green)
 * Mobile-first, max container width 430px.
 */

:root {
    --gffc-bg: #1B263B;
    --gffc-bg-deep: #131B2A;
    --gffc-bg-card: #243349;
    --gffc-bg-card-hi: #2C3E58;
    --gffc-primary: #006400;
    --gffc-primary-bright: #2E9E2E;
    --gffc-accent: #98FB98;
    --gffc-accent-soft: rgba(152, 251, 152, 0.16);
    --gffc-gold: #FFD700;
    --gffc-gold-soft: rgba(255, 215, 0, 0.14);
    --gffc-text: #E8F5E8;
    --gffc-text-muted: #9FB0C0;
    --gffc-border: rgba(152, 251, 152, 0.2);
    --gffc-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
    --gffc-radius: 1.2rem;
    --gffc-radius-sm: 0.8rem;
    --gffc-max: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; }
body {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
    background: var(--gffc-bg);
    color: var(--gffc-text);
    line-height: 1.5;
    font-size: 1.5rem;
    max-width: var(--gffc-max);
    margin: 0 auto;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gffc-accent); text-decoration: none; }

.gffc-container { width: 100%; max-width: var(--gffc-max); margin: 0 auto; padding: 0 1.2rem; }

/* ===== Header ===== */
.gffc-header {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--gffc-max);
    background: var(--gffc-bg-deep);
    border-bottom: 0.2rem solid var(--gffc-primary);
    z-index: 1000; box-shadow: var(--gffc-shadow);
}
.gffc-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.2rem; gap: 0.6rem; }
.gffc-logo { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
.gffc-logo-img { width: 3rem; height: 3rem; border-radius: 0.6rem; object-fit: cover; }
.gffc-logo-text { font-size: 1.8rem; font-weight: 700; color: var(--gffc-accent); letter-spacing: 0.04rem; }
.gffc-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.gffc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border: none; border-radius: var(--gffc-radius-sm);
    padding: 0.8rem 1.2rem; font-size: 1.35rem; font-weight: 700;
    cursor: pointer; min-height: 3.8rem; font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.gffc-btn:active { transform: scale(0.95); }
.gffc-btn-register {
    background: linear-gradient(135deg, var(--gffc-gold), #FFA500);
    color: var(--gffc-bg-deep);
    box-shadow: 0 0.3rem 0.8rem rgba(255, 215, 0, 0.3);
}
.gffc-btn-login {
    background: var(--gffc-primary-bright); color: #fff;
    box-shadow: 0 0.3rem 0.8rem rgba(46, 158, 46, 0.3);
}
.gffc-menu-toggle {
    background: transparent; border: 0.15rem solid var(--gffc-accent);
    color: var(--gffc-accent); width: 3.6rem; height: 3.6rem;
    border-radius: 0.6rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.6rem;
}

/* ===== Mobile slide-in menu ===== */
.gffc-mobile-menu {
    position: fixed; top: 0; right: -110%; width: 82%; max-width: 32rem; height: 100vh;
    background: var(--gffc-bg-deep); padding: 5.5rem 1.4rem 2rem;
    transition: right 0.3s ease; z-index: 9999; overflow-y: auto;
    border-left: 0.2rem solid var(--gffc-primary);
}
body.gffc-menu-open .gffc-mobile-menu { right: 0; }
.gffc-menu-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
    opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 9998;
}
body.gffc-menu-open .gffc-menu-overlay { opacity: 1; pointer-events: auto; }
.gffc-menu-close {
    position: absolute; top: 1rem; right: 1.2rem; background: transparent;
    border: none; color: var(--gffc-accent); font-size: 2.4rem; cursor: pointer; line-height: 1;
}
.gffc-menu-title { font-size: 1.6rem; color: var(--gffc-gold); font-weight: 700; margin-bottom: 1rem; }
.gffc-menu-link {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 1.1rem 0.6rem; color: var(--gffc-text); font-size: 1.45rem;
    border-bottom: 0.1rem solid var(--gffc-border); cursor: pointer;
}
.gffc-menu-link:active { color: var(--gffc-accent); padding-left: 1rem; }
.gffc-menu-link i { color: var(--gffc-gold); font-size: 1.6rem; width: 2rem; text-align: center; }

/* ===== Main / sections ===== */
.gffc-main { padding-top: 6rem; padding-bottom: 8rem; }
.gffc-section { padding: 1.8rem 0; }
.gffc-section-title {
    font-size: 1.85rem; color: var(--gffc-accent); margin-bottom: 1.1rem;
    padding-left: 1rem; border-left: 0.4rem solid var(--gffc-gold); font-weight: 700;
}
.gffc-section-title .gffc-hl { color: var(--gffc-gold); }
.gffc-section-text { font-size: 1.35rem; color: var(--gffc-text-muted); line-height: 1.6; margin-bottom: 1rem; }
.gffc-text-link { color: var(--gffc-gold); font-weight: 700; }

/* ===== Carousel ===== */
.gffc-carousel {
    position: relative; border-radius: var(--gffc-radius); overflow: hidden;
    margin-bottom: 1.4rem; box-shadow: var(--gffc-shadow); cursor: pointer;
}
.gffc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.gffc-slide.gffc-active { opacity: 1; position: relative; }
.gffc-slide-img { width: 100%; height: 17rem; object-fit: cover; }
.gffc-dots {
    position: absolute; bottom: 0.9rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.5rem; z-index: 2;
}
.gffc-dot {
    width: 0.8rem; height: 0.8rem; border-radius: 50%;
    background: rgba(255, 255, 255, 0.45); border: none; cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.gffc-dot.gffc-active { background: var(--gffc-gold); transform: scale(1.3); }

/* ===== Hero ===== */
.gffc-hero { text-align: center; padding: 1rem 0 1.5rem; }
.gffc-hero h1 { font-size: 2.3rem; color: var(--gffc-accent); margin-bottom: 0.7rem; line-height: 1.3; }
.gffc-hero h1 .gffc-hl { color: var(--gffc-gold); }
.gffc-hero p { color: var(--gffc-text-muted); font-size: 1.35rem; margin-bottom: 1.3rem; line-height: 1.6; }
.gffc-cta-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.gffc-cta-row .gffc-btn { flex: 1; min-width: 12rem; }

/* ===== Game grid ===== */
.gffc-game-section { margin-bottom: 2.2rem; }
.gffc-game-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.gffc-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.gffc-game-card {
    background: var(--gffc-bg-card); border-radius: var(--gffc-radius-sm);
    padding: 0.5rem; text-align: center; cursor: pointer;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
    border: 0.1rem solid transparent;
}
.gffc-game-card:active {
    transform: scale(0.94); background: var(--gffc-bg-card-hi); border-color: var(--gffc-accent);
}
.gffc-game-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.6rem; margin-bottom: 0.4rem; }
.gffc-game-name {
    font-size: 1.15rem; color: var(--gffc-text); line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== Feature cards ===== */
.gffc-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.gffc-feature-card {
    background: var(--gffc-bg-card); border-radius: var(--gffc-radius-sm);
    padding: 1.3rem 1rem; text-align: center; border: 0.1rem solid var(--gffc-border);
}
.gffc-feature-icon { font-size: 2.5rem; color: var(--gffc-gold); margin-bottom: 0.5rem; }
.gffc-feature-title { font-size: 1.4rem; color: var(--gffc-accent); margin-bottom: 0.3rem; font-weight: 700; }
.gffc-feature-text { font-size: 1.2rem; color: var(--gffc-text-muted); line-height: 1.4; }

/* ===== Promo banner ===== */
.gffc-promo-banner {
    background: linear-gradient(135deg, var(--gffc-primary), var(--gffc-primary-bright));
    border-radius: var(--gffc-radius); padding: 1.5rem; text-align: center;
    margin: 1.5rem 0; box-shadow: var(--gffc-shadow);
}
.gffc-promo-title { font-size: 1.7rem; color: var(--gffc-gold); margin-bottom: 0.4rem; font-weight: 700; }
.gffc-promo-text { font-size: 1.3rem; color: #fff; margin-bottom: 1rem; line-height: 1.5; }

/* ===== Steps ===== */
.gffc-step {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--gffc-bg-card); border-radius: var(--gffc-radius-sm);
    padding: 1.1rem; margin-bottom: 0.7rem; border-left: 0.3rem solid var(--gffc-gold);
}
.gffc-step-num {
    flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--gffc-primary-bright); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.4rem;
}
.gffc-step-title { font-size: 1.4rem; color: var(--gffc-accent); margin-bottom: 0.2rem; font-weight: 600; }
.gffc-step-text { font-size: 1.25rem; color: var(--gffc-text-muted); line-height: 1.5; }

/* ===== FAQ ===== */
.gffc-faq-item {
    background: var(--gffc-bg-card); border-radius: var(--gffc-radius-sm);
    margin-bottom: 0.7rem; overflow: hidden; border: 0.1rem solid var(--gffc-border);
}
.gffc-faq-q {
    padding: 1.1rem; font-size: 1.35rem; color: var(--gffc-accent);
    font-weight: 600; display: flex; gap: 0.6rem; align-items: flex-start;
}
.gffc-faq-q i { color: var(--gffc-gold); margin-top: 0.2rem; }
.gffc-faq-a { padding: 0 1.1rem 1.1rem; font-size: 1.25rem; color: var(--gffc-text-muted); line-height: 1.5; }

/* ===== Testimonials ===== */
.gffc-testimonial {
    background: var(--gffc-bg-card); border-radius: var(--gffc-radius-sm);
    padding: 1.1rem; margin-bottom: 0.7rem; border-left: 0.3rem solid var(--gffc-gold);
}
.gffc-testimonial-text { font-size: 1.25rem; color: var(--gffc-text); margin-bottom: 0.5rem; line-height: 1.5; }
.gffc-testimonial-author { font-size: 1.2rem; color: var(--gffc-accent); font-weight: 600; }
.gffc-stars { color: var(--gffc-gold); font-size: 1.1rem; margin-bottom: 0.2rem; }

/* ===== Winners ===== */
.gffc-winner-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 1rem; background: var(--gffc-bg-card);
    border-radius: 0.6rem; margin-bottom: 0.5rem; font-size: 1.25rem;
}
.gffc-winner-name { color: var(--gffc-accent); font-weight: 600; }
.gffc-winner-game { color: var(--gffc-text-muted); font-size: 1.1rem; }
.gffc-winner-amount { color: var(--gffc-gold); font-weight: 700; }

/* ===== Payment ===== */
.gffc-payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.gffc-payment-item {
    background: var(--gffc-bg-card); border-radius: 0.6rem; padding: 0.9rem 0.3rem;
    text-align: center; font-size: 1.05rem; color: var(--gffc-text-muted);
    border: 0.1rem solid var(--gffc-border);
}
.gffc-payment-item i { color: var(--gffc-accent); font-size: 1.9rem; display: block; margin-bottom: 0.3rem; }

/* ===== App CTA ===== */
.gffc-app-cta {
    background: var(--gffc-bg-card); border-radius: var(--gffc-radius);
    padding: 1.6rem; text-align: center; border: 0.1rem solid var(--gffc-border);
}
.gffc-app-cta h3 { font-size: 1.7rem; color: var(--gffc-accent); margin-bottom: 0.6rem; }
.gffc-app-cta p { font-size: 1.25rem; color: var(--gffc-text-muted); margin-bottom: 1.2rem; line-height: 1.5; }
.gffc-app-btns { display: flex; flex-direction: column; gap: 0.6rem; }

/* ===== Footer ===== */
.gffc-footer {
    background: var(--gffc-bg-deep); padding: 2.2rem 1.2rem 1.5rem;
    border-top: 0.2rem solid var(--gffc-primary); margin-top: 1.5rem;
}
.gffc-footer-brand { font-size: 1.7rem; color: var(--gffc-accent); font-weight: 700; margin-bottom: 0.5rem; }
.gffc-footer-desc { font-size: 1.25rem; color: var(--gffc-text-muted); line-height: 1.6; margin-bottom: 1.2rem; }
.gffc-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.gffc-footer-btn {
    flex: 1 1 45%; background: var(--gffc-primary-bright); color: #fff;
    padding: 0.8rem; border-radius: 0.6rem; text-align: center;
    font-size: 1.25rem; font-weight: 600; border: none; cursor: pointer;
}
.gffc-footer-btn:active { transform: scale(0.97); }
.gffc-footer-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem; margin-bottom: 1.2rem; }
.gffc-footer-links a { color: var(--gffc-text-muted); font-size: 1.2rem; }
.gffc-footer-links a:active { color: var(--gffc-accent); }
.gffc-footer-copy {
    text-align: center; font-size: 1.15rem; color: var(--gffc-text-muted);
    padding-top: 1.1rem; border-top: 0.1rem solid var(--gffc-border);
}

/* ===== Bottom navigation ===== */
.gffc-bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--gffc-max); height: 6rem;
    background: var(--gffc-bg-deep); border-top: 0.2rem solid var(--gffc-primary);
    display: flex; justify-content: space-around; align-items: center;
    z-index: 1000; box-shadow: 0 -0.3rem 1rem rgba(0, 0, 0, 0.3);
}
.gffc-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.2rem; background: transparent; border: none; color: var(--gffc-text-muted);
    cursor: pointer; min-height: 6rem; min-width: 5rem; padding: 0.4rem;
    transition: color 0.15s, transform 0.15s; font-family: inherit;
}
.gffc-nav-item:active { transform: scale(0.9); }
.gffc-nav-item.gffc-nav-current { color: var(--gffc-gold); }
.gffc-nav-icon { font-size: 2.1rem; line-height: 1; }
.gffc-nav-text { font-size: 0.95rem; line-height: 1.2; }

/* ===== Responsive ===== */
@media (min-width: 769px) {
    .gffc-bottom-nav { display: none; }
    .gffc-menu-toggle { display: none; }
    .gffc-main { padding-bottom: 2rem; }
}
@media (max-width: 360px) {
    .gffc-game-grid { gap: 0.5rem; }
    .gffc-logo-text { font-size: 1.6rem; }
    .gffc-btn { padding: 0.7rem 1rem; font-size: 1.25rem; }
}

/* Mobile overflow guard */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { min-width: 0; }
.gffc-wrapper, .gffc-container, .gffc-header, .gffc-bottom-nav { max-width: min(var(--gffc-max), 100vw); }
img, video, iframe, table { max-width: 100%; }
@media (max-width: 768px) {
    body { max-width: 100vw !important; }
    .gffc-wrapper, .gffc-container, .gffc-header, .gffc-bottom-nav { width: 100% !important; max-width: 100vw !important; }
    .gffc-mobile-menu:not(.gffc-menu-open):not(.gffc-open):not(.active) { display: none !important; visibility: hidden; pointer-events: none; }
}
