/* tk-71.cfd - tk 71 base stylesheet
 * All custom classes use the ge46- prefix for namespace isolation.
 * Palette: #1A1A2E (deep bg) | #D2691E (chocolate accent) | #BC8F8F (rose) | #FAF0E6 (linen) | #EEEEEE (light grey)
 * Mobile-first, max 430px design width. rem units on 62.5% root font.
 */

:root {
  --ge46-primary: #D2691E;
  --ge46-primary-dark: #a85215;
  --ge46-secondary: #BC8F8F;
  --ge46-bg: #1A1A2E;
  --ge46-bg-soft: #232342;
  --ge46-bg-card: #2a2a4a;
  --ge46-text: #FAF0E6;
  --ge46-text-muted: #EEEEEE;
  --ge46-border: rgba(250, 240, 230, 0.12);
  --ge46-gold: #F2C14E;
  --ge46-danger: #E53935;
  --ge46-success: #4CAF50;
  --ge46-radius: 12px;
  --ge46-radius-sm: 8px;
  --ge46-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --ge46-header-h: 56px;
  --ge46-bottomnav-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

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

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

a { color: var(--ge46-primary); text-decoration: none; }
a:hover, a:focus { color: var(--ge46-gold); }

.ge46-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.ge46-wrapper { padding-top: var(--ge46-header-h); padding-bottom: calc(var(--ge46-bottomnav-h) + 2rem); }

/* ===== Header ===== */
.ge46-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--ge46-header-h);
  background: linear-gradient(90deg, #1A1A2E 0%, #2a2a4a 100%);
  border-bottom: 1px solid var(--ge46-border);
  z-index: 1000;
  display: flex; align-items: center;
}
.ge46-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto;
  padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.ge46-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--ge46-text); font-weight: 700; font-size: 1.8rem; }
.ge46-logo img { width: 30px; height: 30px; border-radius: 6px; }
.ge46-logo .ge46-logo-name { background: linear-gradient(90deg, var(--ge46-gold), var(--ge46-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ge46-menu-btn {
  background: transparent; border: 1px solid var(--ge46-border); color: var(--ge46-text);
  width: 40px; height: 40px; border-radius: 8px; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ge46-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.ge46-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 36px; padding: 0 1.2rem;
  border: none; border-radius: 20px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #fff;
}
.ge46-btn:active { transform: scale(0.96); }
.ge46-btn-register { background: linear-gradient(90deg, var(--ge46-primary), var(--ge46-gold)); color: #1A1A2E; }
.ge46-btn-login { background: transparent; color: var(--ge46-text); border: 1px solid var(--ge46-primary); }
.ge46-btn-block { display: flex; width: 100%; padding: 1.2rem; font-size: 1.6rem; border-radius: var(--ge46-radius); }
.ge46-btn-promo { background: linear-gradient(90deg, var(--ge46-primary), #f08a24); color: #fff; }

/* ===== Mobile menu (expandable) ===== */
.ge46-mobile-menu {
  position: fixed; top: var(--ge46-header-h); left: 0; right: 0;
  background: var(--ge46-bg-soft);
  border-bottom: 1px solid var(--ge46-border);
  max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  z-index: 9999;
}
.ge46-menu-open { max-height: 480px; }
.ge46-mobile-menu ul { list-style: none; padding: 0.6rem 1rem; }
.ge46-mobile-menu li { border-bottom: 1px solid var(--ge46-border); }
.ge46-mobile-menu li:last-child { border-bottom: none; }
.ge46-mobile-menu a {
  display: block; padding: 1.1rem 0.4rem; color: var(--ge46-text); font-size: 1.5rem;
}
.ge46-mobile-menu a:hover { color: var(--ge46-gold); padding-left: 1rem; }

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

/* ===== Section titles ===== */
.ge46-section { margin: 1.6rem 0; }
.ge46-section-title {
  font-size: 1.9rem; font-weight: 700; color: var(--ge46-text);
  border-left: 4px solid var(--ge46-primary); padding-left: 0.8rem; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.ge46-section-title .ge46-more { font-size: 1.3rem; color: var(--ge46-secondary); font-weight: 500; }
.ge46-h1 { font-size: 2.1rem; font-weight: 800; margin: 1.2rem 0; color: var(--ge46-gold); line-height: 2.6rem; }
.ge46-h2 { font-size: 1.8rem; font-weight: 700; color: var(--ge46-text); margin: 1.2rem 0 0.8rem; }
.ge46-h3 { font-size: 1.55rem; font-weight: 600; color: var(--ge46-primary); margin: 1rem 0 0.6rem; }
.ge46-p { margin: 0.6rem 0; color: var(--ge46-text-muted); font-size: 1.45rem; }
.ge46-p strong { color: var(--ge46-gold); }

/* ===== Category chips ===== */
.ge46-chips { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0; margin-bottom: 0.8rem; }
.ge46-chips::-webkit-scrollbar { display: none; }
.ge46-chip {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 20px;
  background: var(--ge46-bg-card); color: var(--ge46-text); font-size: 1.3rem;
  border: 1px solid var(--ge46-border); cursor: pointer;
}
.ge46-chip:hover, .ge46-chip.ge46-active { background: var(--ge46-primary); color: #fff; }

/* ===== Game grid ===== */
.ge46-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.ge46-game-card {
  background: var(--ge46-bg-card); border-radius: var(--ge46-radius-sm);
  overflow: hidden; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid var(--ge46-border);
}
.ge46-game-card:hover, .ge46-game-card:active { transform: translateY(-3px); box-shadow: var(--ge46-shadow); border-color: var(--ge46-primary); }
.ge46-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #000; }
.ge46-game-name { padding: 0.5rem 0.4rem; font-size: 1.15rem; color: var(--ge46-text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ge46-game-badge {
  position: relative;
}
.ge46-game-badge::after {
  content: 'HOT'; position: absolute; top: 4px; left: 4px;
  background: var(--ge46-danger); color: #fff; font-size: 0.9rem; font-weight: 700;
  padding: 1px 5px; border-radius: 4px;
}

/* ===== Feature / promo cards ===== */
.ge46-card {
  background: var(--ge46-bg-card); border-radius: var(--ge46-radius);
  padding: 1.2rem; margin: 0.8rem 0; border: 1px solid var(--ge46-border);
}
.ge46-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.ge46-feature-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.6rem 0; }
.ge46-feature-item .ge46-ico { font-size: 2.2rem; color: var(--ge46-primary); flex: 0 0 auto; }
.ge46-feature-item h3 { margin: 0 0 0.2rem; font-size: 1.4rem; }
.ge46-feature-item p { margin: 0; font-size: 1.3rem; color: var(--ge46-text-muted); }

.ge46-promo-card {
  background: linear-gradient(135deg, #2a2a4a, #3a2a1a);
  border-radius: var(--ge46-radius); padding: 1.2rem; margin: 0.6rem 0;
  border: 1px solid var(--ge46-primary);
}
.ge46-promo-card h3 { color: var(--ge46-gold); font-size: 1.6rem; margin-bottom: 0.4rem; }
.ge46-promo-card p { color: var(--ge46-text-muted); font-size: 1.35rem; margin-bottom: 0.8rem; }

/* ===== RTP table ===== */
.ge46-rtp-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--ge46-border); font-size: 1.35rem; }
.ge46-rtp-row:last-child { border-bottom: none; }
.ge46-rtp-row .ge46-rtp-name { color: var(--ge46-text); }
.ge46-rtp-row .ge46-rtp-val { color: var(--ge46-gold); font-weight: 700; }
.ge46-bar { height: 6px; background: var(--ge46-bg-soft); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.ge46-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ge46-primary), var(--ge46-gold)); }

/* ===== Testimonials ===== */
.ge46-testimonial { background: var(--ge46-bg-card); border-radius: var(--ge46-radius); padding: 1rem; margin: 0.6rem 0; }
.ge46-testimonial .ge46-quote { font-size: 1.35rem; color: var(--ge46-text-muted); font-style: italic; }
.ge46-testimonial .ge46-author { margin-top: 0.5rem; font-size: 1.2rem; color: var(--ge46-secondary); }

/* ===== Winners ===== */
.ge46-winner { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 1.3rem; border-bottom: 1px dashed var(--ge46-border); }
.ge46-winner .ge46-amount { color: var(--ge46-gold); font-weight: 700; }

/* ===== Payment ===== */
.ge46-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.ge46-pay-item { background: var(--ge46-bg-card); border-radius: var(--ge46-radius-sm); padding: 0.8rem 0.4rem; text-align: center; font-size: 1.1rem; border: 1px solid var(--ge46-border); }
.ge46-pay-item .material-icons { font-size: 2rem; color: var(--ge46-primary); }

/* ===== App download CTA ===== */
.ge46-app-cta { background: linear-gradient(135deg, var(--ge46-primary), #a85215); border-radius: var(--ge46-radius); padding: 1.4rem; text-align: center; margin: 1rem 0; color: #fff; }
.ge46-app-cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 0.4rem; }
.ge46-app-cta p { color: #fff; font-size: 1.3rem; margin-bottom: 0.8rem; }
.ge46-app-cta .ge46-btn { background: #fff; color: var(--ge46-primary); }

/* ===== Inline promo link ===== */
.ge46-link {
  color: var(--ge46-gold); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--ge46-gold);
}
.ge46-link:hover { color: var(--ge46-primary); border-bottom-color: var(--ge46-primary); }

/* ===== Footer ===== */
.ge46-footer { background: var(--ge46-bg-soft); border-top: 1px solid var(--ge46-border); padding: 1.6rem 1.2rem; margin-top: 2rem; }
.ge46-footer-brand { color: var(--ge46-text); font-size: 1.4rem; margin-bottom: 0.8rem; }
.ge46-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.8rem 0; }
.ge46-footer-links a { color: var(--ge46-text-muted); font-size: 1.25rem; }
.ge46-footer-links a:hover { color: var(--ge46-gold); }
.ge46-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.ge46-footer-promos .ge46-btn { font-size: 1.2rem; padding: 0 0.9rem; min-height: 32px; }
.ge46-copy { color: var(--ge46-secondary); font-size: 1.15rem; margin-top: 1rem; text-align: center; }

/* ===== Mobile bottom navigation ===== */
.ge46-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--ge46-bottomnav-h);
  background: linear-gradient(180deg, #2a2a4a, #1A1A2E);
  border-top: 1px solid var(--ge46-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
}
.ge46-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--ge46-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; transition: color 0.15s ease, transform 0.15s ease;
  font-size: 1.05rem; font-family: inherit;
}
.ge46-bottomnav-btn .ge46-nav-ico { font-size: 22px; line-height: 1; }
.ge46-bottomnav-btn .ge46-nav-label { font-size: 1.05rem; }
.ge46-bottomnav-btn:active { transform: scale(0.92); color: var(--ge46-gold); }
.ge46-bottomnav-btn.ge46-nav-active { color: var(--ge46-primary); }
.ge46-bottomnav-btn.ge46-nav-active .ge46-nav-ico { color: var(--ge46-gold); }
.ge46-bottomnav-btn .material-icons { font-size: 22px; }

/* ===== Back to top ===== */
.ge46-top-btn {
  position: fixed; right: 14px; bottom: calc(var(--ge46-bottomnav-h) + 12px);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ge46-primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 999;
}
.ge46-top-btn.ge46-show { opacity: 1; pointer-events: auto; }

/* ===== Desktop: hide bottom nav, widen container ===== */
@media (min-width: 769px) {
  .ge46-bottomnav { display: none; }
  .ge46-container { max-width: 960px; }
  .ge46-header-inner { max-width: 960px; }
  .ge46-game-grid { grid-template-columns: repeat(6, 1fr); }
  .ge46-card-grid { grid-template-columns: repeat(4, 1fr); }
  .ge46-wrapper { padding-bottom: 2rem; }
}

/* Mobile content clearance for bottom nav */
@media (max-width: 768px) {
  main.ge46-main { padding-bottom: calc(var(--ge46-bottomnav-h) + 1.5rem); }
}

/* Utility */
.ge46-center { text-align: center; }
.ge46-hidden { display: none; }
.ge46-mt-1 { margin-top: 1rem; }
.ge46-mb-1 { margin-bottom: 1rem; }
