/*!
 * kg999 (kg999.cyou) base stylesheet
 * Bengali / Bangladesh market - mobile-first gaming site
 * All custom classes use the gc20- prefix to avoid collisions.
 * Palette: #FFDEAD | #40E0D0 | #FFFFFF | #141414 | #48D1CC
 * Comments in English per project convention.
 */

:root {
  --gc20-primary: #40E0D0;
  --gc20-secondary: #48D1CC;
  --gc20-accent: #FFDEAD;
  --gc20-bg: #141414;
  --gc20-bg-soft: #1c1c1c;
  --gc20-bg-card: #202020;
  --gc20-bg-elevated: #262626;
  --gc20-text: #FFFFFF;
  --gc20-text-muted: #b9b9b9;
  --gc20-text-dim: #8a8a8a;
  --gc20-border: rgba(255, 255, 255, 0.08);
  --gc20-border-strong: rgba(72, 209, 204, 0.45);
  --gc20-glow: rgba(64, 224, 208, 0.35);
  --gc20-radius: 14px;
  --gc20-radius-sm: 10px;
  --gc20-radius-lg: 22px;
  --gc20-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  --gc20-shadow-promo: 0 10px 30px rgba(64, 224, 208, 0.28);
  --gc20-header-h: 56px;
  --gc20-bottom-nav-h: 62px;
  --gc20-font: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  font-family: var(--gc20-font);
  background: var(--gc20-bg);
  color: var(--gc20-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gc20-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   Layout primitives
   ============================================================ */
.gc20-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.gc20-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.gc20-section { padding: 26px 14px; }
.gc20-section-tight { padding: 18px 14px; }
.gc20-stack { display: flex; flex-direction: column; gap: 14px; }
.gc20-row { display: flex; align-items: center; gap: 10px; }
.gc20-spacer-top { height: var(--gc20-header-h); }
.gc20-divider { height: 1px; background: var(--gc20-border); margin: 14px 0; border: none; }

/* ============================================================
   Header
   ============================================================ */
.gc20-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--gc20-header-h);
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.96), rgba(28, 28, 28, 0.96));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gc20-border);
}
.gc20-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; gap: 10px;
}
.gc20-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gc20-brand-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.gc20-brand-name {
  font-size: 1.9rem; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--gc20-primary), var(--gc20-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.gc20-header-actions { display: flex; align-items: center; gap: 8px; }
.gc20-menu-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); color: var(--gc20-text);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gc20-menu-btn:hover { background: rgba(64, 224, 208, 0.18); transform: translateY(-1px); }
.gc20-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-size: 1.35rem; font-weight: 700;
  min-height: 38px; line-height: 1; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
}
.gc20-btn:active { transform: scale(0.96); }
.gc20-btn-primary {
  background: linear-gradient(135deg, var(--gc20-primary), var(--gc20-secondary));
  color: #0a0a0a; box-shadow: var(--gc20-shadow-promo);
}
.gc20-btn-secondary {
  background: transparent; color: var(--gc20-text);
  border: 1.5px solid var(--gc20-primary);
}
.gc20-btn-ghost { background: rgba(255, 222, 173, 0.14); color: var(--gc20-accent); }
.gc20-btn-block { display: flex; width: 100%; padding: 12px 16px; font-size: 1.5rem; }
.gc20-btn-lg { padding: 14px 22px; font-size: 1.6rem; min-height: 46px; }

/* ============================================================
   Mobile slide-down menu
   ============================================================ */
.gc20-mobile-menu {
  position: fixed; top: var(--gc20-header-h); left: 0; right: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: var(--gc20-bg-soft);
  border-bottom: 1px solid var(--gc20-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.gc20-mobile-menu.gc20-is-open { max-height: 520px; box-shadow: var(--gc20-shadow); }
.gc20-mobile-menu-inner { padding: 8px 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.gc20-mobile-menu a {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px;
  border-radius: 10px; color: var(--gc20-text); font-size: 1.45rem; font-weight: 600;
  border: 1px solid transparent;
}
.gc20-mobile-menu a:hover, .gc20-mobile-menu a:focus {
  background: rgba(64, 224, 208, 0.12); border-color: var(--gc20-border-strong);
}
.gc20-mobile-menu a i { color: var(--gc20-primary); width: 24px; text-align: center; }
.gc20-menu-backdrop {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.gc20-mobile-menu.gc20-is-open ~ .gc20-menu-backdrop { opacity: 1; pointer-events: auto; }

/* ============================================================
   Hero / Carousel
   ============================================================ */
.gc20-carousel {
  position: relative; border-radius: var(--gc20-radius-lg); overflow: hidden;
  box-shadow: var(--gc20-shadow); margin: 14px 0; background: var(--gc20-bg-soft);
}
.gc20-carousel-track { position: relative; height: 200px; }
.gc20-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity var(--gc20-carousel-transition, 0.42s) ease;
  cursor: pointer;
}
.gc20-carousel-slide.gc20-is-active { opacity: 1; position: relative; }
.gc20-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.gc20-carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 40%, rgba(20, 20, 20, 0.78) 100%);
}
.gc20-carousel-caption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  color: var(--gc20-text); font-weight: 700; font-size: 1.55rem; line-height: 1.35;
}
.gc20-carousel-caption span { color: var(--gc20-accent); }
.gc20-carousel-prev, .gc20-carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(20, 20, 20, 0.6); color: var(--gc20-text);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.gc20-carousel-prev { left: 10px; }
.gc20-carousel-next { right: 10px; }
.gc20-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.gc20-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, width 0.2s ease;
}
.gc20-carousel-dot.gc20-is-active { background: var(--gc20-primary); width: 18px; border-radius: 999px; }

/* ============================================================
   Headings & section titles
   ============================================================ */
.gc20-h1 {
  font-size: 2.1rem; font-weight: 800; line-height: 1.3; margin: 18px 0 10px;
  background: linear-gradient(90deg, var(--gc20-primary), var(--gc20-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gc20-h2 {
  font-size: 1.8rem; font-weight: 800; margin: 22px 0 10px; color: var(--gc20-text);
  display: flex; align-items: center; gap: 8px;
}
.gc20-h2::before {
  content: ""; width: 4px; height: 22px; border-radius: 4px;
  background: linear-gradient(180deg, var(--gc20-primary), var(--gc20-secondary));
}
.gc20-h3 { font-size: 1.55rem; font-weight: 700; margin: 16px 0 8px; color: var(--gc20-accent); }
.gc20-lead { font-size: 1.5rem; color: var(--gc20-text-muted); line-height: 1.7rem; margin-bottom: 12px; }
.gc20-para { font-size: 1.45rem; color: var(--gc20-text-muted); line-height: 1.7rem; margin-bottom: 10px; }
.gc20-para strong { color: var(--gc20-text); font-weight: 700; }
.gc20-kw { color: var(--gc20-primary); font-weight: 700; }
.gc20-kw-accent { color: var(--gc20-accent); font-weight: 700; }
.gc20-promo-text { color: var(--gc20-accent); font-weight: 800; }

/* ============================================================
   Game grid & cards
   ============================================================ */
.gc20-game-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.gc20-game-tabs::-webkit-scrollbar { display: none; }
.gc20-game-tab {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; font-size: 1.3rem; font-weight: 700;
  background: var(--gc20-bg-card); color: var(--gc20-text-muted); border: 1px solid var(--gc20-border);
  white-space: nowrap;
}
.gc20-game-tab.gc20-is-active {
  background: linear-gradient(135deg, var(--gc20-primary), var(--gc20-secondary));
  color: #0a0a0a; border-color: transparent;
}
.gc20-game-section { margin-top: 18px; }
.gc20-game-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.gc20-game-section-title {
  font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--gc20-text);
}
.gc20-game-section-title i { color: var(--gc20-primary); }
.gc20-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.gc20-game-card {
  background: var(--gc20-bg-card); border: 1px solid var(--gc20-border); border-radius: var(--gc20-radius-sm);
  overflow: hidden; cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s;
  display: flex; flex-direction: column;
}
.gc20-game-card:hover, .gc20-game-card:focus {
  transform: translateY(-3px); border-color: var(--gc20-border-strong);
  box-shadow: 0 8px 18px rgba(64, 224, 208, 0.22);
}
.gc20-game-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0e0e0e; }
.gc20-game-card-name {
  font-size: 1.15rem; font-weight: 600; color: var(--gc20-text);
  padding: 6px 8px 8px; text-align: center; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gc20-game-card-badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: linear-gradient(135deg, var(--gc20-primary), var(--gc20-secondary));
  color: #0a0a0a; font-size: 0.95rem; font-weight: 800; padding: 2px 7px; border-radius: 999px;
}
.gc20-game-card { position: relative; }

/* ============================================================
   Feature / info cards
   ============================================================ */
.gc20-card {
  background: var(--gc20-bg-card); border: 1px solid var(--gc20-border); border-radius: var(--gc20-radius);
  padding: 16px; box-shadow: var(--gc20-shadow);
}
.gc20-card-accent { border-left: 4px solid var(--gc20-primary); }
.gc20-card-glow {
  background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(255, 222, 173, 0.06));
  border: 1px solid var(--gc20-border-strong);
}
.gc20-card-title { font-size: 1.55rem; font-weight: 800; margin-bottom: 8px; color: var(--gc20-text); }
.gc20-card-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gc20-card-list li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 1.4rem; color: var(--gc20-text-muted); line-height: 1.6rem;
}
.gc20-card-list li i { color: var(--gc20-primary); margin-top: 2px; width: 18px; text-align: center; }
.gc20-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gc20-stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gc20-stat {
  flex: 1 1 30%; background: var(--gc20-bg-elevated); border-radius: var(--gc20-radius-sm);
  padding: 12px; text-align: center; border: 1px solid var(--gc20-border);
}
.gc20-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--gc20-primary); display: block; }
.gc20-stat-label { font-size: 1.15rem; color: var(--gc20-text-dim); margin-top: 2px; }

/* ============================================================
   Testimonials / winners
   ============================================================ */
.gc20-testimonial { background: var(--gc20-bg-card); border: 1px solid var(--gc20-border); border-radius: var(--gc20-radius); padding: 14px; }
.gc20-testimonial-text { font-size: 1.4rem; color: var(--gc20-text-muted); line-height: 1.6rem; font-style: italic; }
.gc20-testimonial-author { font-size: 1.25rem; color: var(--gc20-accent); font-weight: 700; margin-top: 8px; }
.gc20-winner-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--gc20-bg-card); border: 1px solid var(--gc20-border); border-radius: var(--gc20-radius-sm);
}
.gc20-winner-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gc20-primary), var(--gc20-secondary)); display: flex; align-items: center; justify-content: center; color: #0a0a0a; font-weight: 800; font-size: 1.3rem; }
.gc20-winner-info { flex: 1; min-width: 0; }
.gc20-winner-name { font-size: 1.35rem; font-weight: 700; color: var(--gc20-text); }
.gc20-winner-game { font-size: 1.15rem; color: var(--gc20-text-dim); }
.gc20-winner-amount { font-size: 1.4rem; font-weight: 800; color: var(--gc20-accent); }

/* ============================================================
   Payment / CTA blocks
   ============================================================ */
.gc20-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gc20-pay-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: var(--gc20-bg-card); border: 1px solid var(--gc20-border); border-radius: 999px;
  font-size: 1.25rem; color: var(--gc20-text); font-weight: 600;
}
.gc20-pay-chip i { color: var(--gc20-primary); }
.gc20-cta {
  background: linear-gradient(135deg, rgba(64, 224, 208, 0.18), rgba(255, 222, 173, 0.12));
  border: 1px solid var(--gc20-border-strong); border-radius: var(--gc20-radius-lg);
  padding: 20px; text-align: center; margin: 18px 0;
}
.gc20-cta-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; color: var(--gc20-text); }
.gc20-cta-sub { font-size: 1.4rem; color: var(--gc20-text-muted); margin-bottom: 14px; }

/* ============================================================
   Footer
   ============================================================ */
.gc20-footer {
  background: var(--gc20-bg-soft); border-top: 1px solid var(--gc20-border);
  padding: 26px 14px 22px; margin-top: 20px;
}
.gc20-footer-brand { font-size: 1.8rem; font-weight: 800; color: var(--gc20-primary); margin-bottom: 6px; }
.gc20-footer-desc { font-size: 1.3rem; color: var(--gc20-text-muted); line-height: 1.6rem; margin-bottom: 14px; }
.gc20-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gc20-footer-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  background: var(--gc20-bg-card); border: 1px solid var(--gc20-border); border-radius: 999px;
  font-size: 1.2rem; color: var(--gc20-text); font-weight: 600;
}
.gc20-footer-link:hover { color: var(--gc20-accent); border-color: var(--gc20-border-strong); }
.gc20-footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 12px; }
.gc20-footer-links a { font-size: 1.25rem; color: var(--gc20-text-muted); }
.gc20-footer-links a:hover { color: var(--gc20-primary); }
.gc20-footer-copy { font-size: 1.15rem; color: var(--gc20-text-dim); border-top: 1px solid var(--gc20-border); padding-top: 12px; }

/* ============================================================
   Mobile bottom navigation
   ============================================================ */
.gc20-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--gc20-bottom-nav-h);
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.98), rgba(20, 20, 20, 0.98));
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gc20-border);
  display: flex; justify-content: space-around; align-items: stretch;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.45);
}
.gc20-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--gc20-text-muted); font-size: 1.05rem; font-weight: 600;
  position: relative; transition: color 0.2s ease, transform 0.18s ease;
}
.gc20-bottom-nav-btn i { font-size: 22px; transition: transform 0.2s ease; }
.gc20-bottom-nav-btn:active { transform: scale(0.92); }
.gc20-bottom-nav-btn:hover { color: var(--gc20-text); }
.gc20-bottom-nav-btn:hover i { transform: translateY(-2px); }
.gc20-bottom-nav-btn.gc20-is-current { color: var(--gc20-primary); }
.gc20-bottom-nav-btn.gc20-is-current::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 6px 6px; background: var(--gc20-primary);
}
.gc20-bottom-nav-btn.gc20-promo i { color: var(--gc20-accent); }
.gc20-bottom-nav-badge {
  position: absolute; top: 6px; right: 18px; min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--gc20-accent); color: #141414; font-size: 0.9rem; font-weight: 800;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   Utility & helpers
   ============================================================ */
.gc20-text-center { text-align: center; }
.gc20-mt-8 { margin-top: 8px; } .gc20-mt-14 { margin-top: 14px; } .gc20-mt-20 { margin-top: 20px; }
.gc20-mb-8 { margin-bottom: 8px; } .gc20-mb-14 { margin-bottom: 14px; } .gc20-mb-20 { margin-bottom: 20px; }
.gc20-hidden { display: none !important; }
.gc20-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.gc20-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: rgba(64, 224, 208, 0.12); border: 1px solid var(--gc20-border-strong);
  border-radius: 999px; font-size: 1.15rem; color: var(--gc20-primary); font-weight: 700;
}
.gc20-inline-promo {
  color: var(--gc20-accent); font-weight: 800; cursor: pointer;
  border-bottom: 2px dashed var(--gc20-accent); padding-bottom: 1px;
}
.gc20-inline-promo:hover { color: var(--gc20-primary); border-bottom-color: var(--gc20-primary); }

/* Desktop: hide bottom nav, widen the shell */
@media (min-width: 769px) {
  .gc20-bottom-nav { display: none; }
  .gc20-container, .gc20-header-inner, .gc20-footer, .gc20-bottom-nav { max-width: 430px; }
}

/* Mobile: keep content clear of the fixed bottom nav */
@media (max-width: 768px) {
  main.gc20-main, .gc20-wrapper { padding-bottom: calc(var(--gc20-bottom-nav-h) + 12px); }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
