/* ============================================================
 * 2222bet download apk - tokens-678f.css
 * Mobile-first styles. All custom classes use the "g8fc-" prefix
 * (matching the JS prefix site8fc). English comments only.
 *
 * Palette reference:
 *   brand lime    #7CFC00
 *   dark navy     #1A1A2E
 *   surface       #14142a / #20213d
 *   accent gold   #f5c542
 * ========================================================== */

:root {
  --g8fc-brand:        #7CFC00;
  --g8fc-brand-dark:   #5fd000;
  --g8fc-bg:           #1A1A2E;
  --g8fc-bg-2:         #14142a;
  --g8fc-surface:      #20213d;
  --g8fc-surface-2:    #2a2c50;
  --g8fc-line:         #353766;
  --g8fc-text:         #f5f7ff;
  --g8fc-muted:        #b9bce0;
  --g8fc-accent:       #f5c542;
  --g8fc-danger:       #ff5e62;
  --g8fc-radius:       14px;
  --g8fc-radius-lg:    18px;
  --g8fc-header-h:     56px;
  --g8fc-nav-h:        66px;
  --g8fc-shadow:       0 8px 24px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--g8fc-bg);
  color: var(--g8fc-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--g8fc-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Mobile canvas: stay phone-shaped even on wide screens */
.g8fc-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 80% -10%, rgba(124,252,0,.10), transparent 60%),
    linear-gradient(180deg, #1c1d34 0%, #14152a 60%, #0f1022 100%);
  position: relative;
  box-shadow: var(--g8fc-shadow);
}

/* ===== Header (asymmetric brand head) ===== */
.g8fc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--g8fc-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(20,20,42,.98), rgba(26,26,46,.92));
  border-bottom: 1px solid var(--g8fc-line);
  backdrop-filter: blur(8px);
}
.g8fc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.g8fc-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--g8fc-brand), #4fd000);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #0c1a00;
  font-size: 14px;
  letter-spacing: -.5px;
  box-shadow: 0 4px 10px rgba(124,252,0,.35);
  flex-shrink: 0;
}
.g8fc-brand-text { display: flex; flex-direction: column; min-width: 0; }
.g8fc-brand-name {
  font-size: 13px; font-weight: 700; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--g8fc-text);
}
.g8fc-brand-sub {
  font-size: 10px; color: var(--g8fc-brand);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: .2px;
}
.g8fc-actions { display: flex; gap: 6px; align-items: center; }
.g8fc-btn {
  -webkit-tap-highlight-color: transparent;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.g8fc-btn--login {
  background: transparent;
  color: var(--g8fc-text);
  border: 1px solid var(--g8fc-line);
}
.g8fc-btn--register {
  background: linear-gradient(135deg, var(--g8fc-brand), #4fd000);
  color: #08160a;
  box-shadow: 0 4px 12px rgba(124,252,0,.35);
}
.g8fc-btn--menu {
  background: transparent;
  color: var(--g8fc-text);
  border: 1px solid var(--g8fc-line);
  width: 36px; padding: 0;
}
.g8fc-btn--menu svg { width: 18px; height: 18px; }
.g8fc-pressed { transform: scale(.94); opacity: .92; }

/* ===== Full-height menu layer ===== */
.g8fc-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,8,18,.55);
  opacity: 0; pointer-events: none;
  z-index: 80;
  transition: opacity .2s ease;
}
.g8fc-backdrop--visible { opacity: 1; pointer-events: auto; }

.g8fc-menu {
  position: fixed;
  top: 0; right: 0;
  width: 86%; max-width: 360px;
  height: 100%;
  background: var(--g8fc-bg-2);
  border-left: 1px solid var(--g8fc-line);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
  padding: 16px;
  overflow-y: auto;
}
.g8fc-menu--open { transform: translateX(0); }
.g8fc-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.g8fc-menu-title { font-size: 16px; font-weight: 800; color: var(--g8fc-brand); }
.g8fc-menu-close {
  background: transparent; border: 1px solid var(--g8fc-line);
  color: var(--g8fc-text); width: 34px; height: 34px;
  border-radius: 8px; cursor: pointer;
  font-size: 18px;
}
.g8fc-menu-section { margin: 14px 0 8px; font-size: 11px; color: var(--g8fc-muted); letter-spacing: .8px; text-transform: uppercase; }
.g8fc-menu-list { list-style: none; margin: 0; padding: 0; }
.g8fc-menu-list li { border-bottom: 1px solid rgba(53,55,102,.45); }
.g8fc-menu-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 6px;
  color: var(--g8fc-text);
  font-size: 14px; font-weight: 600;
}
.g8fc-menu-list a:hover { color: var(--g8fc-brand); text-decoration: none; }
.g8fc-menu-list a::after { content: "›"; color: var(--g8fc-muted); font-size: 18px; }
.g8fc-menu-promo {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--g8fc-brand), #4fd000);
  color: #08160a;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  width: 100%;
}

/* ===== Hero / carousel ===== */
.g8fc-main { padding: 12px 0 calc(var(--g8fc-nav-h) + 32px); }
.g8fc-carousel {
  position: relative;
  margin: 12px;
  border-radius: var(--g8fc-radius-lg);
  overflow: hidden;
  background: #0c0d1c;
  border: 1px solid var(--g8fc-line);
}
.g8fc-track { position: relative; }
.g8fc-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.g8fc-slide--active { display: block; }
.g8fc-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.g8fc-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 18px;
  background: linear-gradient(0deg, rgba(8,8,18,.92), transparent);
}
.g8fc-slide-cap h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: #fff; }
.g8fc-slide-cap p { margin: 0; font-size: 12px; color: var(--g8fc-muted); }
.g8fc-slide-cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--g8fc-brand);
  color: #08160a;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.g8fc-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.g8fc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  border: none;
}
.g8fc-dot--active { background: var(--g8fc-brand); width: 18px; border-radius: 999px; }

/* ===== Category quick strip ===== */
.g8fc-catstrip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 12px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.g8fc-catstrip::-webkit-scrollbar { display: none; }
.g8fc-catpill {
  flex-shrink: 0;
  background: var(--g8fc-surface);
  border: 1px solid var(--g8fc-line);
  color: var(--g8fc-text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

/* ===== Section / titles ===== */
.g8fc-section { padding: 14px 12px 6px; }
.g8fc-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 10px;
}
.g8fc-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--g8fc-text);
  position: relative;
  padding-left: 10px;
}
.g8fc-section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 3px;
  background: var(--g8fc-brand);
  border-radius: 3px;
}
.g8fc-section-head small { font-size: 11px; color: var(--g8fc-muted); }

/* ===== Game grid (4 cols @ 320px, 4-5 @ 375+) ===== */
.g8fc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 360px) {
  .g8fc-grid { gap: 9px; }
}
@media (min-width: 400px) {
  .g8fc-grid { grid-template-columns: repeat(5, 1fr); }
}
.g8fc-card {
  -webkit-tap-highlight-color: transparent;
  background: var(--g8fc-surface);
  border: 1px solid var(--g8fc-line);
  border-radius: var(--g8fc-radius);
  padding: 5px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .12s ease, border-color .12s ease;
}
.g8fc-card:hover { border-color: var(--g8fc-brand); text-decoration: none; }
.g8fc-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #0c0d1c;
}
.g8fc-card-name {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--g8fc-text);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
}

/* ===== Info / promo modules ===== */
.g8fc-info {
  margin: 8px 12px;
  background: var(--g8fc-surface);
  border: 1px solid var(--g8fc-line);
  border-radius: var(--g8fc-radius-lg);
  padding: 14px;
}
.g8fc-info h3 { margin: 0 0 6px; font-size: 14px; color: var(--g8fc-brand); }
.g8fc-info p { margin: 0; font-size: 12.5px; color: var(--g8fc-muted); }

/* Latest winners */
.g8fc-winners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.g8fc-winner {
  background: var(--g8fc-bg-2);
  border: 1px solid var(--g8fc-line);
  border-radius: 10px;
  padding: 8px;
  font-size: 11.5px;
}
.g8fc-winner b { color: var(--g8fc-accent); font-size: 12.5px; }
.g8fc-winner span { color: var(--g8fc-muted); display: block; margin-top: 2px; font-size: 10.5px; }

/* How to play steps */
.g8fc-steps { counter-reset: step; padding: 0; margin: 0; list-style: none; }
.g8fc-steps li {
  position: relative;
  padding: 8px 10px 8px 38px;
  margin-bottom: 6px;
  background: var(--g8fc-bg-2);
  border-radius: 10px;
  border: 1px solid var(--g8fc-line);
  font-size: 12.5px;
  color: var(--g8fc-text);
}
.g8fc-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 8px; top: 8px;
  width: 22px; height: 22px;
  background: var(--g8fc-brand);
  color: #08160a;
  border-radius: 50%;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

/* Achievements */
.g8fc-achv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g8fc-achv-cell {
  background: var(--g8fc-bg-2);
  border: 1px solid var(--g8fc-line);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.g8fc-achv-cell b { display: block; font-size: 16px; color: var(--g8fc-brand); }
.g8fc-achv-cell span { font-size: 10.5px; color: var(--g8fc-muted); }

/* FAQ */
.g8fc-faq-item {
  background: var(--g8fc-bg-2);
  border: 1px solid var(--g8fc-line);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.g8fc-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 36px 12px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--g8fc-text);
  cursor: pointer;
  position: relative;
}
.g8fc-faq-q::after {
  content: "+";
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--g8fc-brand);
}
.g8fc-faq-item--open .g8fc-faq-q::after { content: "–"; }
.g8fc-faq-a {
  display: none;
  padding: 0 12px 12px;
  font-size: 12.5px;
  color: var(--g8fc-muted);
}
.g8fc-faq-item--open .g8fc-faq-a { display: block; }

/* Promo pills */
.g8fc-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.g8fc-promo-pill {
  background: linear-gradient(135deg, #2a2c50, #20213d);
  border: 1px solid var(--g8fc-line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  min-height: 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.g8fc-promo-pill b { color: var(--g8fc-brand); font-size: 13px; }
.g8fc-promo-pill span { color: var(--g8fc-muted); font-size: 11px; display: block; margin-top: 2px; }

/* ===== Extended footer (homepage only) ===== */
.g8fc-extended {
  margin: 14px 12px 4px;
  border-top: 1px solid var(--g8fc-line);
  padding-top: 14px;
}
.g8fc-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin: 10px 0 14px;
}
.g8fc-directory a {
  font-size: 12px;
  color: var(--g8fc-muted);
  padding: 4px 0;
  border-bottom: 1px dashed rgba(53,55,102,.5);
}
.g8fc-directory a:hover { color: var(--g8fc-brand); }
.g8fc-brand-block h3 { margin: 0 0 6px; font-size: 14px; color: var(--g8fc-brand); }
.g8fc-brand-block p { margin: 0 0 12px; font-size: 12px; color: var(--g8fc-muted); }
.g8fc-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.g8fc-disclaimer {
  font-size: 10.5px;
  color: #7c7f9f;
  border-top: 1px solid var(--g8fc-line);
  padding-top: 10px;
  line-height: 1.5;
}

/* ===== Footer ===== */
.g8fc-footer {
  padding: 18px 12px 8px;
  text-align: center;
  font-size: 11px;
  color: #7c7f9f;
  border-top: 1px solid var(--g8fc-line);
}
.g8fc-footer b { color: var(--g8fc-brand); }

/* ===== Bottom nav (brand accent strip) ===== */
.g8fc-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: var(--g8fc-nav-h);
  background: linear-gradient(180deg, rgba(20,20,42,.98), rgba(14,14,30,1));
  border-top: 2px solid var(--g8fc-brand);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 70;
  box-shadow: 0 -6px 18px rgba(0,0,0,.45);
}
.g8fc-navbtn {
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  border: none;
  color: var(--g8fc-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
}
.g8fc-navbtn svg { width: 22px; height: 22px; }
.g8fc-navbtn--active { color: var(--g8fc-brand); }
.g8fc-navbtn--active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 3px;
  background: var(--g8fc-brand);
  border-radius: 0 0 4px 4px;
}
.g8fc-navbtn--promo {
  color: #fff;
}
.g8fc-navbtn--promo svg { color: var(--g8fc-brand); }

/* Hide bottom nav on very wide screens (kept for harmony) */
@media (min-width: 720px) {
  .g8fc-bottomnav { max-width: 430px; }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--g8fc-brand);
  outline-offset: 2px;
  border-radius: 6px;
}
.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;
}
