/* ============================================================
 * 399 bet apk - theme.css
 * Palette: #DDA0DD | #212F3D | #00E5FF | #0097A7 | #4DB6AC
 * Dark background, light text, mobile-first.
 * All custom classes use the "g20c-" prefix.
 * ============================================================ */

:root {
  --g20c-bg: #212F3D;
  --g20c-bg-soft: #1b2733;
  --g20c-bg-card: #243443;
  --g20c-primary: #00E5FF;
  --g20c-accent: #DDA0DD;
  --g20c-teal: #0097A7;
  --g20c-mint: #4DB6AC;
  --g20c-text: #f3f7fa;
  --g20c-text-muted: #aab9c5;
  --g20c-border: rgba(0, 229, 255, 0.18);
  --g20c-radius: 14px;
  --g20c-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;           /* 1rem = 10px for predictable rem sizing */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(160deg, #212F3D 0%, #18222c 100%);
  color: var(--g20c-text);
  line-height: 1.5rem;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

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

a { color: var(--g20c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.g20c-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Header ---------- */
.g20c-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(33, 47, 61, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g20c-border);
  box-shadow: var(--g20c-shadow);
}

.g20c-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.g20c-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--g20c-text);
  font-weight: 700;
  font-size: 1.6rem;
}

.g20c-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--g20c-border);
}

.g20c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g20c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 40px;
  text-decoration: none;
}
.g20c-btn:hover { text-decoration: none; transform: translateY(-1px); }

.g20c-btn-primary {
  background: linear-gradient(135deg, #00E5FF, #0097A7);
  color: #06212a;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.35);
}
.g20c-btn-secondary {
  background: linear-gradient(135deg, #DDA0DD, #b06fb0);
  color: #2a1530;
  box-shadow: 0 4px 14px rgba(221, 160, 221, 0.35);
}
.g20c-btn-ghost {
  background: transparent;
  border: 1px solid var(--g20c-border);
  color: var(--g20c-text);
}

.g20c-menu-btn {
  background: transparent;
  border: 1px solid var(--g20c-border);
  color: var(--g20c-text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Expandable mobile menu ---------- */
.g20c-mobile-menu {
  display: none;
  background: var(--g20c-bg-soft);
  border-bottom: 1px solid var(--g20c-border);
  padding: 0.6rem 1rem 1rem;
}
.g20c-mobile-menu.g20c-menu-open { display: block; }
.g20c-mobile-menu a {
  display: block;
  padding: 0.9rem 0.8rem;
  color: var(--g20c-text);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 1.35rem;
}
.g20c-mobile-menu a:hover { color: var(--g20c-primary); }

/* ---------- Main layout ---------- */
main.g20c-main { padding: 1.4rem 1.2rem 2rem; }

.g20c-section {
  margin: 2.2rem 0;
}

.g20c-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 1rem 0 0.6rem;
  line-height: 1.25;
  background: linear-gradient(120deg, #00E5FF, #DDA0DD);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.g20c-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 1.8rem 0 0.8rem;
  color: var(--g20c-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g20c-h2 i { color: var(--g20c-primary); }

.g20c-lead {
  color: var(--g20c-text-muted);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* ---------- Carousel ---------- */
.g20c-carousel {
  position: relative;
  border-radius: var(--g20c-radius);
  overflow: hidden;
  box-shadow: var(--g20c-shadow);
}
.g20c-carousel-viewport { overflow: hidden; }
.g20c-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.g20c-carousel-slide {
  flex: 0 0 100%;
  position: relative;
}
.g20c-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.g20c-carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 1.35rem;
  font-weight: 600;
}
.g20c-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.g20c-carousel-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  cursor: pointer;
}
.g20c-carousel-dot.g20c-dot-active { background: var(--g20c-primary); }

/* ---------- Game grid ---------- */
.g20c-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.8rem 0 0.8rem;
}
.g20c-cat-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--g20c-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.g20c-cat-title .material-symbols-outlined { color: var(--g20c-accent); font-size: 22px; }
.g20c-cat-tag {
  font-size: 1.15rem;
  color: var(--g20c-mint);
  background: rgba(77, 182, 172, 0.12);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.g20c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g20c-game {
  background: var(--g20c-bg-card);
  border: 1px solid var(--g20c-border);
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
  color: var(--g20c-text);
}
.g20c-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 229, 255, 0.22);
  text-decoration: none;
}
.g20c-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.4rem;
}
.g20c-game-name {
  font-size: 1.1rem;
  color: var(--g20c-text);
  line-height: 1.3;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Cards ---------- */
.g20c-card {
  background: var(--g20c-bg-card);
  border: 1px solid var(--g20c-border);
  border-radius: var(--g20c-radius);
  padding: 1.2rem;
  margin: 1rem 0;
  box-shadow: var(--g20c-shadow);
}
.g20c-card-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.g20c-card-row:last-child { border-bottom: none; }
.g20c-card-row i { font-size: 24px; color: var(--g20c-primary); }

.g20c-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.g20c-stat {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--g20c-border);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
}
.g20c-stat b { display: block; font-size: 1.5rem; color: var(--g20c-primary); }
.g20c-stat span { font-size: 1.1rem; color: var(--g20c-text-muted); }

.g20c-feature-list { list-style: none; padding: 0; margin: 0; }
.g20c-feature-list li {
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 1.3rem;
}
.g20c-feature-list li:last-child { border-bottom: none; }

.g20c-cta-banner {
  background: linear-gradient(135deg, #0097A7, #00E5FF);
  color: #06212a;
  border-radius: var(--g20c-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.6rem 0;
  box-shadow: var(--g20c-shadow);
}
.g20c-cta-banner h3 { margin: 0 0 0.4rem; font-size: 1.6rem; }
.g20c-cta-banner p { margin: 0 0 1rem; font-size: 1.25rem; }

/* ---------- Footer ---------- */
.g20c-footer {
  background: var(--g20c-bg-soft);
  border-top: 1px solid var(--g20c-border);
  padding: 2rem 1.2rem 7rem;     /* bottom padding clears fixed nav */
  color: var(--g20c-text-muted);
  font-size: 1.25rem;
}
.g20c-footer-brand { color: var(--g20c-text); font-weight: 700; font-size: 1.45rem; margin-bottom: 0.6rem; }
.g20c-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.g20c-footer-links a { color: var(--g20c-text-muted); font-size: 1.2rem; }
.g20c-footer-links a:hover { color: var(--g20c-primary); }
.g20c-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1.2rem;
}
.g20c-footer-copy { font-size: 1.1rem; opacity: 0.8; }

/* ---------- Bottom navigation ---------- */
.g20c-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(27, 39, 51, 0.98);
  border-top: 1px solid var(--g20c-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.35);
}
.g20c-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g20c-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.g20c-bottomnav-btn i,
.g20c-bottomnav-btn span.material-symbols-outlined,
.g20c-bottomnav-btn ion-icon {
  font-size: 24px;
}
.g20c-bottomnav-btn:hover { color: var(--g20c-primary); transform: translateY(-1px); text-decoration: none; }
.g20c-bottomnav-active { color: var(--g20c-primary) !important; }
.g20c-bottomnav-active i { color: var(--g20c-accent); }

/* ---------- Back to top ---------- */
.g20c-totop {
  position: fixed;
  right: 14px;
  bottom: 74px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DDA0DD, #0097A7);
  color: #0c1a22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: none;
  cursor: pointer;
  box-shadow: var(--g20c-shadow);
}

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .g20c-bottomnav { display: none; }
  .g20c-wrapper { max-width: 720px; }
  .g20c-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  main.g20c-main { padding-bottom: 80px; }
}

/* The wrapper cap is the literal mobile width. */
.g20c-shell { width: 100%; max-width: 430px; margin: 0 auto; }
