/* 2777be - Theme stylesheet
   All custom classes use g97c- prefix
   Comments in English */

:root {
  --g97c-primary: #DC143C;
  --g97c-slate: #6A5ACD;
  --g97c-sand: #D2B48C;
  --g97c-salmon: #FA8072;
  --g97c-bg: #1A1A2E;
  --g97c-bg-deep: #14142a;
  --g97c-card: #23233f;
  --g97c-text: #f5f5f7;
  --g97c-muted: #b6b6cf;
  --g97c-border: rgba(210, 180, 140, 0.25);
  --g97c-gold: #FFD27A;
  --g97c-radius: 14px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--g97c-bg);
  color: var(--g97c-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--g97c-salmon); text-decoration: none; }
img { max-width: 100%; display: block; }

.g97c-wrapper { max-width: 430px; margin: 0 auto; position: relative; min-height: 100vh; }
.g97c-container { padding: 0 1.2rem; width: 100%; }

/* ===== Header ===== */
.g97c-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--g97c-bg-deep) 0%, #1f1f3a 100%);
  border-bottom: 1px solid var(--g97c-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
.g97c-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 1.2rem;
}
.g97c-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--g97c-text); }
.g97c-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g97c-logo .g97c-brand { font-size: 1.7rem; font-weight: 700; color: var(--g97c-sand); letter-spacing: 0.5px; }
.g97c-logo .g97c-brand b { color: var(--g97c-primary); }

.g97c-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g97c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 600; border: none; cursor: pointer;
  padding: 0.7rem 1.1rem; border-radius: 20px; min-height: 36px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.g97c-btn:active { transform: scale(0.94); }
.g97c-btn-register { background: linear-gradient(135deg, var(--g97c-primary), #ff3b5f); color: #fff; }
.g97c-btn-login { background: transparent; color: var(--g97c-sand); border: 1px solid var(--g97c-sand); }

.g97c-menu-btn {
  background: transparent; border: none; color: var(--g97c-text);
  font-size: 2.1rem; cursor: pointer; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.g97c-menu-btn.g97c-active { background: rgba(220,20,60,0.18); }

/* ===== Mobile expandable menu ===== */
.g97c-mobile-menu {
  max-height: 0; overflow: hidden;
  background: var(--g97c-bg-deep);
  transition: max-height 0.28s ease;
  border-top: 1px solid var(--g97c-border);
}
.g97c-mobile-menu.g97c-menu-open { max-height: 480px; }
.g97c-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 0.8rem 1.2rem 1.2rem; display: grid; gap: 0.6rem; }
.g97c-mobile-menu a {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--g97c-text); padding: 0.8rem 1rem;
  border-radius: 10px; background: var(--g97c-card); font-size: 1.4rem;
  border: 1px solid transparent;
}
.g97c-mobile-menu a:hover { border-color: var(--g97c-primary); color: var(--g97c-sand); }
.g97c-mobile-menu a i { color: var(--g97c-salmon); width: 22px; text-align: center; }

/* ===== Body spacing for fixed header + bottom nav ===== */
.g97c-main { padding-top: 64px; padding-bottom: 80px; }

/* ===== Hero / Carousel ===== */
.g97c-carousel { position: relative; border-radius: var(--g97c-radius); overflow: hidden; margin: 1rem 0; }
.g97c-carousel-track { position: relative; height: 180px; }
.g97c-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.g97c-slide.g97c-active { opacity: 1; }
.g97c-slide img { width: 100%; height: 100%; object-fit: cover; }
.g97c-slide .g97c-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(20,20,42,0.9));
  padding: 1.4rem 1rem 0.8rem; font-size: 1.5rem; font-weight: 700; color: #fff;
}
.g97c-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.g97c-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.g97c-dot.g97c-active { background: var(--g97c-primary); width: 18px; border-radius: 4px; }

/* ===== Section titles ===== */
.g97c-section { margin: 2rem 0; }
.g97c-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.9rem; font-weight: 700; margin: 0 0 1rem;
  color: var(--g97c-text);
}
.g97c-section-title i { color: var(--g97c-primary); }
.g97c-section-title .g97c-en { color: var(--g97c-sand); font-size: 1.3rem; font-weight: 500; }

.g97c-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.35; margin: 1.2rem 0 0.8rem;
  color: #fff;
}
.g97c-h1 span { color: var(--g97c-primary); }
.g97c-lead { font-size: 1.45rem; color: var(--g97c-muted); margin-bottom: 1.4rem; }

/* ===== Game grid ===== */
.g97c-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.4rem 0 0.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--g97c-border);
}
.g97c-cat-head h2 { font-size: 1.7rem; margin: 0; color: var(--g97c-sand); display: flex; align-items: center; gap: 0.5rem; }
.g97c-cat-head .g97c-cat-tag { font-size: 1.2rem; color: var(--g97c-muted); }

.g97c-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.g97c-game {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  background: var(--g97c-card); border-radius: 10px; padding: 0.5rem 0.3rem;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.12s, border-color 0.12s;
}
.g97c-game:active { transform: scale(0.93); }
.g97c-game:hover { border-color: var(--g97c-primary); }
.g97c-game img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.g97c-game-name {
  font-size: 1.05rem; color: var(--g97c-text); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%;
}

/* ===== Cards / modules ===== */
.g97c-card {
  background: var(--g97c-card); border: 1px solid var(--g97c-border);
  border-radius: var(--g97c-radius); padding: 1.2rem; margin-bottom: 1rem;
}
.g97c-card h2, .g97c-card h3 { margin: 0 0 0.6rem; color: var(--g97c-sand); }
.g97c-card p { margin: 0 0 0.6rem; color: var(--g97c-muted); font-size: 1.4rem; }
.g97c-card .g97c-cta { margin-top: 0.6rem; }

.g97c-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.g97c-feature {
  background: rgba(106,90,205,0.12); border-radius: 10px; padding: 0.9rem; text-align: center;
}
.g97c-feature i { font-size: 2.4rem; color: var(--g97c-salmon); margin-bottom: 0.4rem; }
.g97c-feature b { display: block; color: var(--g97c-text); font-size: 1.3rem; }
.g97c-feature span { color: var(--g97c-muted); font-size: 1.15rem; }

.g97c-rtp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 1px dashed var(--g97c-border); font-size: 1.35rem;
}
.g97c-rtp-row:last-child { border-bottom: none; }
.g97c-rtp-row b { color: var(--g97c-sand); }
.g97c-rtp-bar { width: 80px; height: 6px; background: rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden; }
.g97c-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--g97c-salmon), var(--g97c-primary)); }

.g97c-testimonial { display: grid; gap: 0.7rem; }
.g97c-testi-item { background: rgba(220,20,60,0.08); border-left: 3px solid var(--g97c-primary); border-radius: 8px; padding: 0.8rem; font-size: 1.3rem; color: var(--g97c-muted); }
.g97c-testi-item b { color: var(--g97c-text); display: block; margin-bottom: 0.3rem; }

.g97c-winners { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; }
.g97c-winner { background: rgba(250,128,114,0.1); border-radius: 8px; padding: 0.6rem; font-size: 1.2rem; }
.g97c-winner b { color: var(--g97c-gold); }

.g97c-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g97c-pay span {
  background: var(--g97c-card); border: 1px solid var(--g97c-border); border-radius: 20px;
  padding: 0.5rem 1rem; font-size: 1.2rem; color: var(--g97c-muted); display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ===== Inline SEO text links ===== */
.g97c-prose p { color: var(--g97c-muted); font-size: 1.4rem; margin: 0 0 0.8rem; }
.g97c-prose a { color: var(--g97c-salmon); border-bottom: 1px dashed var(--g97c-salmon); }
.g97c-prose h3 { color: var(--g97c-sand); margin: 1.2rem 0 0.5rem; font-size: 1.6rem; }

/* ===== Promotional inline link ===== */
.g97c-link-bold { color: var(--g97c-primary); font-weight: 700; }
.g97c-cta-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1rem 0; }
.g97c-cta-row .g97c-btn { flex: 1; min-width: 130px; }
.g97c-cta-full { display: block; text-align: center; margin: 1.2rem 0; }

/* ===== FAQ ===== */
.g97c-faq-item { border-bottom: 1px solid var(--g97c-border); padding: 0.7rem 0; }
.g97c-faq-item b { color: var(--g97c-sand); display: block; margin-bottom: 0.3rem; font-size: 1.4rem; }
.g97c-faq-item p { margin: 0; color: var(--g97c-muted); font-size: 1.3rem; }

/* ===== Footer ===== */
.g97c-footer {
  background: var(--g97c-bg-deep); border-top: 1px solid var(--g97c-border);
  padding: 1.6rem 1.2rem 2rem; margin-top: 1.5rem;
}
.g97c-footer-brand { color: var(--g97c-muted); font-size: 1.3rem; line-height: 1.6rem; margin-bottom: 1rem; }
.g97c-footer-brand b { color: var(--g97c-sand); }
.g97c-footer-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.g97c-footer-links a { color: var(--g97c-muted); font-size: 1.25rem; }
.g97c-footer-links a:hover { color: var(--g97c-salmon); }
.g97c-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.g97c-footer-copy { color: var(--g97c-muted); font-size: 1.15rem; text-align: center; padding-top: 0.8rem; border-top: 1px solid var(--g97c-border); }

/* ===== Mobile bottom navigation ===== */
.g97c-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1f1f3a, var(--g97c-bg-deep));
  border-top: 1px solid var(--g97c-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 60px;
}
.g97c-bnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--g97c-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; position: relative; transition: color 0.15s ease;
}
.g97c-bnav-btn .g97c-bnav-icon { font-size: 22px; line-height: 1; }
.g97c-bnav-btn .g97c-bnav-label { font-size: 11px; line-height: 1.2; }
.g97c-bnav-btn:active { transform: scale(0.92); }
.g97c-bnav-btn.g97c-current { color: var(--g97c-primary); }
.g97c-bnav-btn.g97c-current::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px;
  background: var(--g97c-primary); border-radius: 0 0 4px 4px;
}
.g97c-bnav-promo { color: var(--g97c-salmon); }
.g97c-bnav-promo .g97c-bnav-icon { color: var(--g97c-gold); }

/* ===== Desktop: hide bottom nav, widen wrapper ===== */
@media (min-width: 769px) {
  .g97c-bnav { display: none; }
  .g97c-main { padding-bottom: 40px; }
  .g97c-wrapper { max-width: 430px; }
}

@media (max-width: 768px) {
  .g97c-main { padding-bottom: 80px; }
}

@media (max-width: 360px) {
  .g97c-grid { grid-template-columns: repeat(3, 1fr); }
  .g97c-game-name { font-size: 0.98rem; }
}
