/**
 * manobjomin.click - Main Stylesheet
 * Prefix: g397-
 * Mobile-first design (max-width: 430px)
 */

/* CSS Variables */
:root {
    --g397-primary: #FF6347;
    --g397-primary-dark: #E5533A;
    --g397-primary-light: #FF7F66;
    --g397-bg: #141414;
    --g397-bg-light: #1E1E1E;
    --g397-bg-card: #1C1C1C;
    --g397-text: #F0F0F0;
    --g397-text-muted: #A0A0A0;
    --g397-border: #2A2A2A;
    --g397-gold: #FFD700;
    --g397-green: #00C853;
    --g397-radius: 10px;
    --g397-radius-sm: 6px;
    --g397-shadow: 0 4px 12px rgba(0,0,0,0.4);
    --g397-transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
    background: var(--g397-bg);
    color: var(--g397-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--g397-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Container */
.g397-container { max-width: 430px; margin: 0 auto; padding: 0 12px; }

/* Header */
.g397-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(135deg, #1A1A1A 0%, #141414 100%);
    border-bottom: 1px solid var(--g397-border);
    height: 56px;
}
.g397-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 12px; max-width: 430px; margin: 0 auto;
}
.g397-logo-area { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.g397-logo-area img { width: 34px; height: 34px; border-radius: 8px; }
.g397-logo-text { font-size: 1.7rem; font-weight: 700; color: var(--g397-primary); letter-spacing: -0.3px; }
.g397-header-actions { display: flex; align-items: center; gap: 8px; }
.g397-btn-register {
    background: var(--g397-primary); color: #fff; border: none; border-radius: var(--g397-radius-sm);
    padding: 7px 16px; font-size: 1.3rem; font-weight: 600; cursor: pointer;
    transition: background var(--g397-transition);
}
.g397-btn-register:hover { background: var(--g397-primary-dark); }
.g397-btn-login {
    background: transparent; color: var(--g397-primary); border: 1px solid var(--g397-primary);
    border-radius: var(--g397-radius-sm); padding: 6px 14px; font-size: 1.3rem;
    font-weight: 600; cursor: pointer; transition: all var(--g397-transition);
}
.g397-btn-login:hover { background: rgba(255,99,71,0.1); }
.g397-menu-btn {
    background: none; border: none; color: var(--g397-text); cursor: pointer;
    font-size: 2.2rem; padding: 4px; display: flex; align-items: center;
}

/* Mobile Menu Overlay */
.g397-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 9998;
    opacity: 0; visibility: hidden; transition: all var(--g397-transition);
}
.g397-overlay-active { opacity: 1; visibility: visible; }

/* Mobile Menu Panel */
.g397-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: var(--g397-bg-light); z-index: 9999;
    transition: right var(--g397-transition); padding: 20px 16px;
    overflow-y: auto;
}
.g397-menu-active { right: 0; }
.g397-menu-close {
    background: none; border: none; color: var(--g397-text); font-size: 2.4rem;
    cursor: pointer; position: absolute; top: 12px; right: 12px;
}
.g397-menu-list { margin-top: 40px; }
.g397-menu-list a {
    display: flex; align-items: center; gap: 10px; padding: 14px 0;
    border-bottom: 1px solid var(--g397-border); color: var(--g397-text);
    font-size: 1.5rem; transition: color var(--g397-transition);
}
.g397-menu-list a:hover { color: var(--g397-primary); }

/* Carousel */
.g397-carousel {
    position: relative; overflow: hidden; margin-top: 56px;
    border-radius: 0 0 var(--g397-radius) var(--g397-radius);
}
.g397-carousel-track { position: relative; width: 100%; height: 200px; }
.g397-carousel-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity var(--g397-transition);
}
.g397-slide-active { opacity: 1; }
.g397-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.g397-carousel-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.g397-carousel-dot {
    width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
    cursor: pointer; transition: background var(--g397-transition);
}
.g397-dot-active { background: var(--g397-primary); width: 24px; border-radius: 4px; }

/* Main Content */
main { padding-bottom: 20px; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* Section Title */
.g397-section-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 12px 10px; font-size: 1.8rem; font-weight: 700;
}
.g397-section-title .g397-title-icon { color: var(--g397-primary); margin-right: 8px; }
.g397-section-title span { color: var(--g397-primary); font-size: 1.3rem; cursor: pointer; }

/* Game Grid */
.g397-game-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; padding: 0 12px 16px;
}
.g397-game-card {
    background: var(--g397-bg-card); border-radius: var(--g397-radius);
    overflow: hidden; cursor: pointer; transition: transform var(--g397-transition), box-shadow var(--g397-transition);
    border: 1px solid var(--g397-border);
}
.g397-game-card:hover { transform: translateY(-3px); box-shadow: var(--g397-shadow); }
.g397-game-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.g397-game-name {
    padding: 6px 8px; font-size: 1.15rem; text-align: center; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; color: var(--g397-text);
}

/* Promo Banner */
.g397-promo-banner {
    margin: 16px 12px; padding: 20px; border-radius: var(--g397-radius);
    background: linear-gradient(135deg, var(--g397-primary-dark) 0%, var(--g397-primary) 100%);
    text-align: center; cursor: pointer; transition: transform var(--g397-transition);
}
.g397-promo-banner:hover { transform: scale(1.02); }
.g397-promo-banner h3 { font-size: 2rem; color: #fff; margin-bottom: 6px; }
.g397-promo-banner p { font-size: 1.3rem; color: rgba(255,255,255,0.85); }

/* Feature Box */
.g397-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px 16px; }
.g397-feature-box {
    background: var(--g397-bg-card); border-radius: var(--g397-radius);
    padding: 16px 12px; text-align: center; border: 1px solid var(--g397-border);
    transition: border-color var(--g397-transition);
}
.g397-feature-box:hover { border-color: var(--g397-primary); }
.g397-feature-box .material-icons { font-size: 2.8rem; color: var(--g397-primary); margin-bottom: 8px; }
.g397-feature-box h4 { font-size: 1.3rem; margin-bottom: 4px; }
.g397-feature-box p { font-size: 1.1rem; color: var(--g397-text-muted); }

/* Winner Ticker */
.g397-winner-ticker { background: var(--g397-bg-light); padding: 10px 0; margin: 0 0 8px; overflow: hidden; }
.g397-ticker-title { font-size: 1.3rem; font-weight: 600; padding: 0 12px; color: var(--g397-gold); margin-bottom: 6px; }
.g397-ticker-wrap { overflow: hidden; }
.g397-ticker-list { animation: g397ticker 20s linear infinite; white-space: nowrap; }
.g397-ticker-item {
    display: inline-block; padding: 4px 14px; margin: 0 8px;
    background: var(--g397-bg-card); border-radius: 20px;
    font-size: 1.15rem; color: var(--g397-text-muted);
}
.g397-ticker-item strong { color: var(--g397-green); }
@keyframes g397ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Info Block */
.g397-info-block { padding: 16px 12px; }
.g397-info-block h2 { font-size: 1.8rem; margin-bottom: 10px; color: var(--g397-primary); }
.g397-info-block p { font-size: 1.3rem; line-height: 1.8; color: var(--g397-text-muted); }

/* Footer */
.g397-footer {
    background: var(--g397-bg-light); border-top: 1px solid var(--g397-border);
    padding: 24px 12px 20px; text-align: center;
}
.g397-footer-logo { font-size: 2rem; font-weight: 700; color: var(--g397-primary); margin-bottom: 12px; }
.g397-footer-desc { font-size: 1.2rem; color: var(--g397-text-muted); line-height: 1.7; margin-bottom: 16px; }
.g397-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 16px; }
.g397-footer-links a { color: var(--g397-text-muted); font-size: 1.2rem; transition: color var(--g397-transition); }
.g397-footer-links a:hover { color: var(--g397-primary); }
.g397-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; }
.g397-partners span {
    padding: 4px 10px; background: var(--g397-bg-card); border-radius: 4px;
    font-size: 1rem; color: var(--g397-text-muted); border: 1px solid var(--g397-border);
}
.g397-copyright { font-size: 1.1rem; color: #555; margin-top: 12px; }

/* Bottom Navigation */
.g397-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(180deg, #1A1A1A 0%, #0E0E0E 100%);
    border-top: 1px solid var(--g397-border);
    display: flex; justify-content: space-around; align-items: center;
    height: 60px; padding: 0 4px;
}
.g397-bottom-nav-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 60px; min-height: 52px; background: none; border: none;
    cursor: pointer; color: var(--g397-text-muted); transition: all var(--g397-transition);
    border-radius: 8px; gap: 2px;
}
.g397-bottom-nav-btn:hover, .g397-bottom-nav-btn:focus { color: var(--g397-primary); background: rgba(255,99,71,0.08); }
.g397-bottom-nav-btn .icon { font-size: 2.2rem; }
.g397-bottom-nav-btn .label { font-size: 1rem; font-weight: 500; }
.g397-bottom-nav-btn.active { color: var(--g397-primary); }
@media (min-width: 769px) { .g397-bottom-nav { display: none; } }

/* Desktop Navigation */
.g397-desktop-nav { display: none; }
@media (min-width: 769px) {
    .g397-desktop-nav { display: flex; gap: 20px; }
    .g397-desktop-nav a { color: var(--g397-text-muted); font-size: 1.4rem; transition: color var(--g397-transition); }
    .g397-desktop-nav a:hover { color: var(--g397-primary); }
    .g397-container { max-width: 768px; }
}

/* Help Page Styles */
.g397-page-header {
    padding: 72px 12px 20px; text-align: center;
    background: linear-gradient(135deg, var(--g397-bg-light) 0%, var(--g397-bg) 100%);
}
.g397-page-header h1 { font-size: 2.2rem; color: var(--g397-primary); margin-bottom: 6px; }
.g397-page-header p { font-size: 1.3rem; color: var(--g397-text-muted); }
.g397-content-section { padding: 16px 12px; }
.g397-content-section h2 { font-size: 1.7rem; color: var(--g397-primary); margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--g397-border); }
.g397-content-section p { font-size: 1.3rem; line-height: 1.8; color: var(--g397-text-muted); margin-bottom: 10px; }

/* FAQ Accordion */
.g397-faq-item { margin-bottom: 8px; border-radius: var(--g397-radius-sm); overflow: hidden; }
.g397-faq-question {
    width: 100%; padding: 14px 12px; background: var(--g397-bg-card); border: none;
    color: var(--g397-text); font-size: 1.4rem; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid var(--g397-border); border-radius: var(--g397-radius-sm);
    transition: background var(--g397-transition);
}
.g397-faq-question:hover { background: var(--g397-bg-light); }
.g397-faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    background: var(--g397-bg-light); padding: 0 12px;
}
.g397-faq-answer.open { max-height: 300px; padding: 12px; }
.g397-faq-answer p { font-size: 1.25rem; line-height: 1.7; color: var(--g397-text-muted); }

/* Feature Card */
.g397-feature-card {
    background: var(--g397-bg-card); border: 1px solid var(--g397-border);
    border-radius: var(--g397-radius); padding: 18px 14px; margin-bottom: 12px;
}
.g397-feature-card h3 { font-size: 1.5rem; color: var(--g397-primary); margin-bottom: 6px; }
.g397-feature-card p { font-size: 1.25rem; color: var(--g397-text-muted); line-height: 1.7; }

/* CTA Banner */
.g397-cta-banner {
    margin: 20px 12px; padding: 22px; border-radius: var(--g397-radius);
    background: linear-gradient(135deg, #FF6347 0%, #FF8C69 100%);
    text-align: center; cursor: pointer;
}
.g397-cta-banner h3 { font-size: 1.8rem; color: #fff; margin-bottom: 6px; }
.g397-cta-banner p { font-size: 1.3rem; color: rgba(255,255,255,0.9); }

/* Utility */
.g397-text-center { text-align: center; }
.g397-mt-8 { margin-top: 8px; }
.g397-mb-8 { margin-bottom: 8px; }
.g397-promo-link { cursor: pointer; }
