/* =========================================================
   gf666.cfd - Core layout stylesheet (basefiles)
   Prefix: gd3c-
   Palette: #191970 | #1A1A1A | #4169E1 | #E0FFFF | #E9967A
   Mobile-first, max-width 430px. Root font 62.5% (1rem = 10px)
   ========================================================= */

:root {
  --gd3c-primary: #191970;     /* midnight blue - dark base */
  --gd3c-bg: #1A1A1A;          /* near-black background */
  --gd3c-accent: #4169E1;      /* royal blue - interactive */
  --gd3c-text: #E0FFFF;        /* light cyan - body text */
  --gd3c-warm: #E9967A;        /* dark salmon - warm highlight */
  --gd3c-muted: #8aa0c9;       /* muted blue-gray */
  --gd3c-card: #23234a;        /* card surface */
  --gd3c-card-2: #2a2a52;      /* alt card surface */
  --gd3c-border: rgba(224,255,255,0.12);
  --gd3c-shadow: 0 4px 18px rgba(0,0,0,0.45);
  --gd3c-radius: 14px;
}

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

html {
  font-size: 62.5%;            /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  background: var(--gd3c-bg);
  color: var(--gd3c-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ---------- Skip link (a11y) ---------- */
.gd3c-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gd3c-accent); color: #fff; padding: 8px 12px; z-index: 9999;
}
.gd3c-skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.gd3c-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--gd3c-primary), #11164a);
  border-bottom: 1px solid var(--gd3c-border);
  box-shadow: var(--gd3c-shadow);
}
.gd3c-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 8px;
}
.gd3c-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--gd3c-text); flex-shrink: 0;
}
.gd3c-brand .gd3c-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, var(--gd3c-warm), var(--gd3c-accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 14px;
}
.gd3c-brand-name {
  font-size: 1.9rem; font-weight: 700; letter-spacing: .5px;
  background: linear-gradient(90deg, var(--gd3c-text), var(--gd3c-warm));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gd3c-header-actions { display: flex; align-items: center; gap: 6px; }
.gd3c-btn {
  padding: 8px 14px; border-radius: 30px;
  font-size: 1.3rem; font-weight: 600;
  min-height: 36px; display: inline-flex; align-items: center; gap: 4px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gd3c-btn:active { transform: scale(.94); }
.gd3c-btn-login {
  background: transparent; border: 1px solid var(--gd3c-text); color: var(--gd3c-text);
}
.gd3c-btn-register {
  background: linear-gradient(90deg, var(--gd3c-warm), #d97a5e);
  color: #1A1A1A; font-weight: 700;
  box-shadow: 0 3px 10px rgba(233,150,122,.35);
}
.gd3c-menu-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(224,255,255,0.08); font-size: 20px; color: var(--gd3c-text);
}

/* ---------- Mobile dropdown menu ---------- */
.gd3c-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%; max-width: 340px; height: 100vh;
  background: linear-gradient(160deg, #15164a, var(--gd3c-bg));
  z-index: 9999;
  padding: 70px 18px 30px;
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--gd3c-border);
}
.gd3c-mobile-menu.gd3c-open { right: 0; }
.gd3c-menu-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(224,255,255,0.08); font-size: 22px; color: var(--gd3c-text);
}
.gd3c-menu-title { font-size: 1.5rem; color: var(--gd3c-muted); margin: 6px 0 12px; text-transform: uppercase; letter-spacing: 1px; }
.gd3c-menu-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gd3c-menu-list a, .gd3c-menu-list button {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(65,105,225,.10);
  color: var(--gd3c-text); font-size: 1.5rem; font-weight: 500;
  width: 100%; text-align: left;
}
.gd3c-menu-list a:active, .gd3c-menu-list button:active { background: rgba(65,105,225,.25); }
.gd3c-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .25s;
}
.gd3c-overlay.gd3c-open { opacity: 1; visibility: visible; }

/* ---------- Layout helpers ---------- */
.gd3c-main { padding: 14px 14px 0; }
.gd3c-section { margin: 22px 0; }
.gd3c-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.9rem; font-weight: 700; color: var(--gd3c-text);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gd3c-accent);
}
.gd3c-section-title .material-icons,
.gd3c-section-title i { color: var(--gd3c-warm); font-size: 22px; }
.gd3c-lead { color: var(--gd3c-muted); font-size: 1.4rem; line-height: 1.7rem; }

/* ---------- Hero / Carousel ---------- */
.gd3c-hero { margin: 14px 0 18px; border-radius: var(--gd3c-radius); overflow: hidden; box-shadow: var(--gd3c-shadow); }
.gd3c-carousel { position: relative; }
.gd3c-carousel-track { display: flex; transition: transform .4s ease; }
.gd3c-slide { min-width: 100%; position: relative; }
.gd3c-slide img { width: 100%; height: 180px; object-fit: cover; }
.gd3c-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  display: flex; flex-direction: column; gap: 4px;
}
.gd3c-slide-caption strong { font-size: 1.7rem; color: var(--gd3c-warm); }
.gd3c-slide-caption span { font-size: 1.3rem; color: var(--gd3c-text); }
.gd3c-carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0;
}
.gd3c-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(224,255,255,.3); transition: all .2s;
}
.gd3c-carousel-dots button.gd3c-active {
  background: var(--gd3c-warm); width: 22px; border-radius: 6px;
}

/* ---------- Game grid ---------- */
.gd3c-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gd3c-game-card {
  background: var(--gd3c-card);
  border: 1px solid var(--gd3c-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gd3c-game-card:active { transform: scale(.96); box-shadow: 0 0 0 2px var(--gd3c-warm); }
.gd3c-game-thumb {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: linear-gradient(135deg, #2c2c5a, #15164a);
}
.gd3c-game-name {
  padding: 6px 8px; font-size: 1.2rem; font-weight: 600;
  color: var(--gd3c-text); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gd3c-cat-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 1.1rem; background: rgba(65,105,225,.25); color: var(--gd3c-text);
  margin-left: auto;
}

/* ---------- Promo banner ---------- */
.gd3c-promo-banner {
  background: linear-gradient(135deg, var(--gd3c-primary), var(--gd3c-accent));
  border-radius: var(--gd3c-radius);
  padding: 18px 16px; margin: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: var(--gd3c-shadow); position: relative; overflow: hidden;
}
.gd3c-promo-banner::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(233,150,122,.18);
}
.gd3c-promo-banner-text { flex: 1; z-index: 1; }
.gd3c-promo-banner-text strong { display: block; font-size: 1.8rem; color: var(--gd3c-warm); }
.gd3c-promo-banner-text span { font-size: 1.3rem; color: var(--gd3c-text); }
.gd3c-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 30px;
  background: var(--gd3c-warm); color: #1A1A1A;
  font-weight: 700; font-size: 1.4rem;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.gd3c-cta:active { transform: scale(.95); }

/* ---------- Info / feature cards ---------- */
.gd3c-card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gd3c-info-card {
  background: var(--gd3c-card);
  border: 1px solid var(--gd3c-border);
  border-left: 4px solid var(--gd3c-accent);
  border-radius: 12px; padding: 14px;
}
.gd3c-info-card h3 {
  font-size: 1.6rem; color: var(--gd3c-warm); margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.gd3c-info-card p { font-size: 1.35rem; color: var(--gd3c-text); line-height: 1.7rem; }
.gd3c-info-card .gd3c-text-link {
  color: var(--gd3c-warm); font-weight: 700; display: inline-block; margin-top: 6px;
}
.gd3c-feature-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.gd3c-feature {
  background: var(--gd3c-card-2); border-radius: 10px;
  padding: 12px; text-align: center;
}
.gd3c-feature i, .gd3c-feature .material-icons { font-size: 26px; color: var(--gd3c-warm); }
.gd3c-feature strong { display: block; font-size: 1.4rem; margin-top: 4px; color: var(--gd3c-text); }
.gd3c-feature span { font-size: 1.15rem; color: var(--gd3c-muted); }

/* ---------- FAQ ---------- */
.gd3c-faq-item {
  background: var(--gd3c-card); border-radius: 10px;
  margin-bottom: 8px; overflow: hidden; border: 1px solid var(--gd3c-border);
}
.gd3c-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; font-size: 1.4rem; font-weight: 600; color: var(--gd3c-text);
  width: 100%; text-align: left;
}
.gd3c-faq-q i { color: var(--gd3c-warm); transition: transform .2s; }
.gd3c-faq-a { padding: 0 14px; font-size: 1.3rem; color: var(--gd3c-muted); line-height: 1.7rem; max-height: 0; overflow: hidden; transition: max-height .25s, padding .25s; }
.gd3c-faq-item.gd3c-open .gd3c-faq-a { padding: 0 14px 12px; max-height: 320px; }
.gd3c-faq-item.gd3c-open .gd3c-faq-q i { transform: rotate(45deg); }

/* ---------- Payment / winners ---------- */
.gd3c-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gd3c-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 30px;
  background: var(--gd3c-card); border: 1px solid var(--gd3c-border);
  font-size: 1.25rem; color: var(--gd3c-text);
}
.gd3c-chip i, .gd3c-chip .material-icons { color: var(--gd3c-warm); }
.gd3c-winner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; background: var(--gd3c-card); border-radius: 10px; margin-bottom: 6px;
}
.gd3c-winner-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gd3c-accent), var(--gd3c-warm));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px;
}
.gd3c-winner-info { flex: 1; }
.gd3c-winner-info strong { display: block; font-size: 1.3rem; color: var(--gd3c-text); }
.gd3c-winner-info span { font-size: 1.15rem; color: var(--gd3c-muted); }
.gd3c-winner-amount { color: var(--gd3c-warm); font-weight: 700; font-size: 1.35rem; }

/* ---------- Footer ---------- */
.gd3c-footer {
  background: linear-gradient(180deg, var(--gd3c-bg), #0d0d22);
  margin-top: 26px; padding: 22px 14px 100px;
  border-top: 1px solid var(--gd3c-border);
}
.gd3c-footer p { font-size: 1.3rem; color: var(--gd3c-muted); line-height: 1.7rem; margin-bottom: 10px; }
.gd3c-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.gd3c-footer-links a, .gd3c-footer-links button {
  padding: 6px 12px; border-radius: 20px;
  background: rgba(65,105,225,.18); color: var(--gd3c-text);
  font-size: 1.2rem; display: inline-flex; align-items: center; gap: 4px;
}
.gd3c-footer-copy { font-size: 1.15rem; color: #5d6a8a; margin-top: 10px; }

/* ---------- Mobile bottom nav ---------- */
.gd3c-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #15164a, var(--gd3c-primary));
  border-top: 1px solid var(--gd3c-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -3px 14px rgba(0,0,0,.4);
}
.gd3c-bottom-nav button, .gd3c-bottom-nav a {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--gd3c-muted);
  transition: color .15s, transform .15s;
  position: relative;
}
.gd3c-bottom-nav button:active, .gd3c-bottom-nav a:active { transform: scale(.9); }
.gd3c-bottom-nav .material-icons,
.gd3c-bottom-nav i { font-size: 22px; }
.gd3c-bottom-nav span { font-size: 1.05rem; }
.gd3c-bottom-nav .gd3c-active { color: var(--gd3c-warm); }
.gd3c-bottom-nav .gd3c-active::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px;
  background: var(--gd3c-warm); border-radius: 0 0 6px 6px;
}
.gd3c-nav-promo {
  background: var(--gd3c-warm); color: #1A1A1A !important;
  border-radius: 50%; width: 48px; height: 48px; margin-top: -22px;
  box-shadow: 0 4px 12px rgba(233,150,122,.5);
}
.gd3c-nav-promo i, .gd3c-nav-promo .material-icons { color: #1A1A1A; font-size: 22px; }
.gd3c-nav-promo span { display: none; }

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .gd3c-bottom-nav { display: none; }
  .gd3c-footer { padding-bottom: 30px; }
  body { max-width: 430px; }
}

/* ---------- Mobile bottom padding ---------- */
@media (max-width: 768px) {
  .gd3c-main { padding-bottom: 0; }
  body { padding-bottom: 80px; }
}
