/* ===========================================================
   tk1917.cyou - Theme CSS
   All custom classes use the "g7ec-" prefix.
   Palette: #EEE8AA | #3A3A3A | #00FA9A | #DAA520 | #36454F
   Mobile-first, max-width 430px.
   =========================================================== */
:root {
  --g7ec-primary: #00FA9A;
  --g7ec-accent: #DAA520;
  --g7ec-bg: #36454F;
  --g7ec-bg-deep: #3A3A3A;
  --g7ec-text: #EEE8AA;
  --g7ec-text-light: #FFFFFF;
  --g7ec-muted: #B8C4CC;
  --g7ec-card: #2F3B43;
  --g7ec-border: #4A5A66;
  --g7ec-danger: #FF6B6B;
  --g7ec-radius: 12px;
  --g7ec-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { font-size: 62.5%; }
body {
  margin: 0;
  padding: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Tahoma, sans-serif;
  background: var(--g7ec-bg-deep);
  color: var(--g7ec-text-light);
  line-height: 1.5rem;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--g7ec-primary); text-decoration: none; }
.g7ec-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.g7ec-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ============ Header ============ */
.g7ec-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--g7ec-bg-deep), var(--g7ec-bg));
  border-bottom: 2px solid var(--g7ec-accent);
  box-shadow: var(--g7ec-shadow);
}
.g7ec-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.g7ec-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--g7ec-text);
  font-weight: 700;
  font-size: 1.8rem;
}
.g7ec-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g7ec-logo .g7ec-logo-name { color: var(--g7ec-primary); }
.g7ec-header-actions { display: flex; align-items: center; gap: 8px; }
.g7ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.g7ec-btn:active { transform: scale(0.96); }
.g7ec-btn-register {
  background: linear-gradient(135deg, var(--g7ec-accent), #F4C430);
  color: #1f1f1f;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.45);
}
.g7ec-btn-login {
  background: transparent;
  color: var(--g7ec-primary);
  border: 1.5px solid var(--g7ec-primary);
}
.g7ec-btn-block {
  display: flex;
  width: 100%;
  padding: 12px 16px;
  font-size: 1.6rem;
}
.g7ec-menu-btn {
  background: transparent;
  border: none;
  color: var(--g7ec-text);
  font-size: 2.2rem;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
}

/* ============ Mobile Menu ============ */
.g7ec-mobile-menu {
  position: fixed;
  top: 56px; right: 0;
  width: 78%;
  max-width: 320px;
  background: var(--g7ec-bg);
  border-left: 2px solid var(--g7ec-accent);
  border-bottom: 2px solid var(--g7ec-accent);
  border-radius: 0 0 0 16px;
  padding: 12px 10px 18px;
  z-index: 9999;
  box-shadow: var(--g7ec-shadow);
  transform: translateX(110%);
  transition: transform .25s ease;
}
.g7ec-mobile-menu.g7ec-menu-open { transform: translateX(0); }
.g7ec-mobile-menu.g7ec-menu-closed { transform: translateX(110%); }
.g7ec-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: var(--g7ec-text-light);
  border-radius: 8px;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.g7ec-mobile-menu a:active { background: rgba(0, 250, 154, 0.12); }
.g7ec-mobile-menu a i, .g7ec-mobile-menu a span.mdi, .g7ec-mobile-menu a span.ion {
  color: var(--g7ec-primary); width: 24px; text-align: center;
}

/* ============ Hero / Carousel ============ */
.g7ec-main { flex: 1 1 auto; padding-top: 56px; }
.g7ec-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 12px auto 0;
  border-radius: var(--g7ec-radius);
  overflow: hidden;
  box-shadow: var(--g7ec-shadow);
}
.g7ec-carousel-track { position: relative; width: 100%; height: 190px; }
.g7ec-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  cursor: pointer;
}
.g7ec-carousel-slide.g7ec-slide-active { opacity: 1; }
.g7ec-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g7ec-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.g7ec-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(238, 232, 170, 0.5);
  border: none; cursor: pointer; padding: 0;
}
.g7ec-carousel-dot.g7ec-dot-active { background: var(--g7ec-accent); }

/* ============ Section / Heading ============ */
.g7ec-section { padding: 18px 0; }
.g7ec-section-title {
  font-size: 2.0rem;
  color: var(--g7ec-primary);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--g7ec-accent);
  font-weight: 700;
}
.g7ec-section-title small {
  display: block;
  font-size: 1.25rem;
  color: var(--g7ec-muted);
  font-weight: 400;
  margin-top: 2px;
}
.g7ec-lead {
  font-size: 1.45rem;
  color: var(--g7ec-text);
  margin: 0 0 10px;
  line-height: 1.6;
}
.g7ec-text-muted { color: var(--g7ec-muted); }
.g7ec-h1 {
  font-size: 2.2rem;
  line-height: 1.35;
  color: var(--g7ec-text);
  margin: 14px 0 8px;
  font-weight: 700;
}

/* ============ Game Grid ============ */
.g7ec-cat-block { margin-bottom: 18px; }
.g7ec-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 8px;
}
.g7ec-cat-title {
  font-size: 1.7rem;
  color: var(--g7ec-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.g7ec-cat-link { font-size: 1.25rem; color: var(--g7ec-primary); }
.g7ec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.g7ec-game-card {
  background: var(--g7ec-card);
  border: 1px solid var(--g7ec-border);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  overflow: hidden;
}
.g7ec-game-card:active {
  transform: scale(0.96);
  border-color: var(--g7ec-primary);
}
.g7ec-game-card img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
}
.g7ec-game-name {
  font-size: 1.15rem;
  color: var(--g7ec-text-light);
  line-height: 1.25;
  height: 2.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============ Info / Feature cards ============ */
.g7ec-card {
  background: var(--g7ec-card);
  border: 1px solid var(--g7ec-border);
  border-radius: var(--g7ec-radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--g7ec-shadow);
}
.g7ec-card h2, .g7ec-card h3 { color: var(--g7ec-primary); margin: 0 0 8px; }
.g7ec-card h2 { font-size: 1.8rem; }
.g7ec-card h3 { font-size: 1.55rem; }
.g7ec-card p { font-size: 1.4rem; color: var(--g7ec-text-light); margin: 0 0 8px; line-height: 1.6; }
.g7ec-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.g7ec-feature-item {
  background: rgba(0, 250, 154, 0.08);
  border: 1px solid var(--g7ec-border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}
.g7ec-feature-item .g7ec-feature-icon {
  font-size: 2.4rem;
  color: var(--g7ec-accent);
  margin-bottom: 6px;
}
.g7ec-feature-item h3 { font-size: 1.35rem; margin: 0 0 4px; color: var(--g7ec-text); }
.g7ec-feature-item p { font-size: 1.2rem; margin: 0; color: var(--g7ec-muted); }

/* ============ FAQ ============ */
.g7ec-faq-item {
  border: 1px solid var(--g7ec-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--g7ec-card);
}
.g7ec-faq-item h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  color: var(--g7ec-accent);
}
.g7ec-faq-item p { margin: 0; font-size: 1.3rem; color: var(--g7ec-text-light); line-height: 1.55; }

/* ============ Testimonial ============ */
.g7ec-testimonial {
  background: var(--g7ec-card);
  border-left: 3px solid var(--g7ec-primary);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.g7ec-testimonial p { margin: 0 0 6px; font-size: 1.3rem; color: var(--g7ec-text-light); }
.g7ec-testimonial .g7ec-testi-author { font-size: 1.2rem; color: var(--g7ec-accent); font-weight: 700; }

/* ============ Payment / Winners ============ */
.g7ec-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.g7ec-pill {
  background: rgba(218, 165, 32, 0.12);
  border: 1px solid var(--g7ec-accent);
  color: var(--g7ec-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.g7ec-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.3rem;
}
.g7ec-winner-row span:first-child { color: var(--g7ec-text-light); }
.g7ec-winner-row span:last-child { color: var(--g7ec-primary); font-weight: 700; }

/* ============ CTA ============ */
.g7ec-cta {
  background: linear-gradient(135deg, var(--g7ec-bg), var(--g7ec-bg-deep));
  border: 1px solid var(--g7ec-accent);
  border-radius: var(--g7ec-radius);
  padding: 16px;
  text-align: center;
  margin: 14px 0;
}
.g7ec-cta h3 { color: var(--g7ec-text); margin: 0 0 6px; font-size: 1.7rem; }
.g7ec-cta p { color: var(--g7ec-muted); margin: 0 0 12px; font-size: 1.35rem; }

/* ============ Footer ============ */
.g7ec-footer {
  background: var(--g7ec-bg-deep);
  border-top: 2px solid var(--g7ec-accent);
  padding: 18px 0 96px;
  margin-top: 18px;
}
.g7ec-footer-brand { color: var(--g7ec-text); font-size: 1.4rem; line-height: 1.6; margin-bottom: 12px; }
.g7ec-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.g7ec-footer-links a {
  font-size: 1.25rem;
  color: var(--g7ec-primary);
  padding: 4px 8px;
  border: 1px solid var(--g7ec-border);
  border-radius: 6px;
}
.g7ec-footer-copy { font-size: 1.15rem; color: var(--g7ec-muted); }

/* ============ Mobile Bottom Nav ============ */
.g7ec-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--g7ec-bg), var(--g7ec-bg-deep));
  border-top: 2px solid var(--g7ec-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}
.g7ec-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g7ec-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color .15s ease, transform .15s ease;
  text-decoration: none;
  padding: 4px 0;
}
.g7ec-bottomnav-btn i,
.g7ec-bottomnav-btn .material-icons-outlined,
.g7ec-bottomnav-btn .ion {
  font-size: 24px;
  line-height: 1;
}
.g7ec-bottomnav-btn:active { transform: scale(0.92); }
.g7ec-bottomnav-btn.g7ec-nav-active { color: var(--g7ec-primary); }
.g7ec-bottomnav-btn.g7ec-nav-active i,
.g7ec-bottomnav-btn.g7ec-nav-active .material-icons-outlined,
.g7ec-bottomnav-btn.g7ec-nav-active .ion { color: var(--g7ec-accent); }

/* Mobile content clearance for fixed bottom nav */
@media (max-width: 768px) {
  .g7ec-main { padding-bottom: 80px; }
}

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .g7ec-bottomnav { display: none; }
  .g7ec-container { max-width: 720px; }
  .g7ec-carousel { max-width: 720px; height: 280px; margin: 16px auto 0; }
  .g7ec-header-inner { max-width: 720px; }
  .g7ec-grid { grid-template-columns: repeat(6, 1fr); }
  .g7ec-footer { padding-bottom: 24px; }
}
