/* =====================================================================
   999b.click - core stylesheet
   Mobile-first canvas (320-430px). All custom classes use g1c2- prefix.
   Palette: #2C3E50 base / #FFF8DC cream / #C0C0C0 silver /
            #FF8C00 accent / #FAFAD2 highlight
   ===================================================================== */

:root {
  --g1c2-bg: #2C3E50;
  --g1c2-bg-deep: #1f2c3a;
  --g1c2-bg-soft: #34495e;
  --g1c2-cream: #FFF8DC;
  --g1c2-silver: #C0C0C0;
  --g1c2-accent: #FF8C00;
  --g1c2-accent-soft: #ffae42;
  --g1c2-highlight: #FAFAD2;
  --g1c2-ink: #FFF8DC;
  --g1c2-muted: #a9b4c0;
  --g1c2-line: rgba(255, 248, 220, 0.14);
  --g1c2-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  --g1c2-radius: 14px;
  --g1c2-header-h: 54px;
  --g1c2-bottom-h: 62px;
  --g1c2-max: 460px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--g1c2-bg);
  color: var(--g1c2-ink);
  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;
}

.g1c2-shell {
  max-width: var(--g1c2-max);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #2C3E50 0%, #243344 40%, #1f2c3a 100%);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

a { color: var(--g1c2-accent-soft); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--g1c2-highlight); outline-offset: 2px; border-radius: 4px; }
img { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0 0 8px; line-height: 1.3; font-weight: 700; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; color: var(--g1c2-cream); }

/* ====================== HEADER ====================== */
.g1c2-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--g1c2-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(31, 44, 58, 0.98), rgba(44, 62, 80, 0.95));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--g1c2-line);
}

.g1c2-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.g1c2-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--g1c2-accent);
  flex-shrink: 0;
  background: var(--g1c2-bg-deep);
}
.g1c2-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.g1c2-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--g1c2-highlight);
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.g1c2-brand-tag {
  font-size: 10px;
  color: var(--g1c2-silver);
  line-height: 1.1;
}

.g1c2-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.g1c2-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  min-width: 44px;
  transition: transform 0.12s ease, filter 0.12s ease;
  font-family: inherit;
}
.g1c2-btn:active { transform: scale(0.94); filter: brightness(0.92); }
.g1c2-btn-primary {
  background: linear-gradient(135deg, var(--g1c2-accent), var(--g1c2-accent-soft));
  color: #2C3E50;
}
.g1c2-btn-ghost {
  background: transparent;
  color: var(--g1c2-cream);
  border: 1px solid var(--g1c2-silver);
}

.g1c2-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--g1c2-line);
  border-radius: 10px;
  color: var(--g1c2-cream);
  cursor: pointer;
}
.g1c2-icon-btn:active { transform: scale(0.94); }
.g1c2-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; }

/* ====================== MENU OVERLAY ====================== */
.g1c2-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.g1c2-menu-backdrop.g1c2-is-visible { opacity: 1; pointer-events: auto; }

.g1c2-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(82vw, 340px);
  background: var(--g1c2-bg-deep);
  z-index: 50;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  padding: 16px 14px calc(var(--g1c2-bottom-h) + 16px);
  border-left: 1px solid var(--g1c2-line);
}
.g1c2-menu-panel.g1c2-is-open { transform: translateX(0); }

.g1c2-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.g1c2-menu-title { font-size: 15px; font-weight: 700; color: var(--g1c2-highlight); }
.g1c2-menu-close {
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--g1c2-cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.g1c2-menu-section { margin-bottom: 14px; }
.g1c2-menu-section-h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--g1c2-accent-soft);
  margin: 6px 4px;
}
.g1c2-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.g1c2-menu-list li a,
.g1c2-menu-list li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: var(--g1c2-bg-soft);
  color: var(--g1c2-cream);
  border: 1px solid var(--g1c2-line);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.g1c2-menu-list li a:active,
.g1c2-menu-list li button:active { background: var(--g1c2-bg); }

/* ====================== HERO CAROUSEL ====================== */
.g1c2-main { padding: 12px 12px 0; }

.g1c2-hero {
  position: relative;
  border-radius: var(--g1c2-radius);
  overflow: hidden;
  background: var(--g1c2-bg-deep);
  border: 1px solid var(--g1c2-line);
  box-shadow: var(--g1c2-shadow);
}
.g1c2-hero-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
}
.g1c2-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.g1c2-hero-slide.g1c2-active { opacity: 1; }
.g1c2-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g1c2-hero-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--g1c2-highlight);
  font-size: 13px;
  font-weight: 600;
  padding: 18px 10px 6px;
  border-radius: 8px;
}
.g1c2-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
}
.g1c2-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 248, 220, 0.45);
  cursor: pointer;
  border: none;
}
.g1c2-hero-dot.g1c2-active { background: var(--g1c2-accent); }

/* ====================== HERO CTA STRIP ====================== */
.g1c2-cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.g1c2-cta-card {
  padding: 12px;
  background: linear-gradient(135deg, var(--g1c2-bg-soft), var(--g1c2-bg-deep));
  border: 1px solid var(--g1c2-line);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.g1c2-cta-card:active { transform: scale(0.96); }
.g1c2-cta-card .g1c2-cta-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--g1c2-highlight);
}
.g1c2-cta-card .g1c2-cta-sub {
  font-size: 11px;
  color: var(--g1c2-silver);
  margin-top: 2px;
}
.g1c2-cta-card.g1c2-cta-accent {
  background: linear-gradient(135deg, var(--g1c2-accent), #ff6a00);
  color: #2C3E50;
}
.g1c2-cta-card.g1c2-cta-accent .g1c2-cta-title { color: #2C3E50; }
.g1c2-cta-card.g1c2-cta-accent .g1c2-cta-sub { color: rgba(44, 62, 80, 0.85); }

/* ====================== SECTION & GAME GRID ====================== */
.g1c2-section {
  margin: 18px 0;
}
.g1c2-section-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.g1c2-section-h h2 {
  color: var(--g1c2-highlight);
  position: relative;
  padding-left: 12px;
}
.g1c2-section-h h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--g1c2-accent);
  border-radius: 2px;
}
.g1c2-section-h .g1c2-section-link {
  font-size: 12px;
  color: var(--g1c2-accent-soft);
  font-weight: 600;
}

.g1c2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.g1c2-game-card {
  background: var(--g1c2-bg-deep);
  border: 1px solid var(--g1c2-line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding: 6px 4px 8px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.g1c2-game-card:active {
  transform: scale(0.95);
  border-color: var(--g1c2-accent);
}
.g1c2-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--g1c2-bg-soft);
  margin-bottom: 5px;
}
.g1c2-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g1c2-game-name {
  font-size: 11px;
  color: var(--g1c2-cream);
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 600;
}

/* Tag pill */
.g1c2-cat-tag {
  display: inline-block;
  background: rgba(255, 140, 0, 0.15);
  color: var(--g1c2-accent-soft);
  border: 1px solid rgba(255, 140, 0, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ====================== INFO BLOCKS ====================== */
.g1c2-info {
  background: var(--g1c2-bg-deep);
  border: 1px solid var(--g1c2-line);
  border-radius: var(--g1c2-radius);
  padding: 14px;
  margin: 14px 0;
}
.g1c2-info h2 { color: var(--g1c2-highlight); }
.g1c2-info p { font-size: 14px; color: var(--g1c2-cream); }
.g1c2-info a { color: var(--g1c2-accent-soft); font-weight: 600; }

.g1c2-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.g1c2-feature-item {
  background: var(--g1c2-bg-soft);
  border: 1px solid var(--g1c2-line);
  border-radius: 10px;
  padding: 10px;
}
.g1c2-feature-item h3 {
  font-size: 13px;
  color: var(--g1c2-highlight);
  margin-bottom: 4px;
}
.g1c2-feature-item p {
  font-size: 12px;
  color: var(--g1c2-silver);
  margin: 0;
}

.g1c2-steps {
  list-style: none;
  counter-reset: step;
  margin: 8px 0;
  padding: 0;
}
.g1c2-steps li {
  counter-increment: step;
  position: relative;
  padding: 8px 8px 8px 38px;
  margin-bottom: 6px;
  background: var(--g1c2-bg-soft);
  border-radius: 10px;
  font-size: 13px;
  color: var(--g1c2-cream);
}
.g1c2-steps li::before {
  content: counter(step);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--g1c2-accent);
  color: #2C3E50;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.g1c2-checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.g1c2-checklist li {
  position: relative;
  padding: 6px 6px 6px 24px;
  font-size: 13px;
  color: var(--g1c2-cream);
}
.g1c2-checklist li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 6px;
  color: var(--g1c2-accent);
  font-weight: 800;
}

.g1c2-note {
  background: rgba(255, 140, 0, 0.08);
  border-left: 3px solid var(--g1c2-accent);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--g1c2-highlight);
  margin: 10px 0;
}

/* ====================== EXTENDED FOOTER (homepage only) ====================== */
.g1c2-ext-footer {
  margin-top: 18px;
  background: var(--g1c2-bg-deep);
  border-top: 1px solid var(--g1c2-line);
  padding: 16px 12px;
  border-radius: var(--g1c2-radius) var(--g1c2-radius) 0 0;
}
.g1c2-ext-footer h3 {
  color: var(--g1c2-highlight);
  font-size: 14px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--g1c2-line);
}
.g1c2-ext-brand p {
  font-size: 12px;
  color: var(--g1c2-silver);
  margin-bottom: 10px;
}
.g1c2-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0 12px;
}
.g1c2-promo-row .g1c2-btn {
  padding: 8px 6px;
  font-size: 12px;
  text-align: center;
}
.g1c2-link-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 6px 0 10px;
}
.g1c2-link-cols a {
  font-size: 12px;
  color: var(--g1c2-silver);
  padding: 4px 0;
  border-bottom: 1px dashed var(--g1c2-line);
}
.g1c2-link-cols a:active { color: var(--g1c2-accent-soft); }
.g1c2-disclaimer {
  font-size: 11px;
  color: var(--g1c2-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* ====================== COPYRIGHT FOOTER ====================== */
.g1c2-foot {
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--g1c2-muted);
  background: var(--g1c2-bg-deep);
}

/* ====================== BOTTOM NAVIGATION RAIL ====================== */
.g1c2-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  height: var(--g1c2-bottom-h);
  display: flex;
  background: linear-gradient(180deg, rgba(44, 62, 80, 0.98), rgba(31, 44, 58, 0.99));
  border-top: 1px solid var(--g1c2-line);
  backdrop-filter: blur(6px);
  max-width: var(--g1c2-max);
  margin: 0 auto;
}
.g1c2-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--g1c2-silver);
  font-size: 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  padding: 4px 2px;
  position: relative;
  transition: color 0.15s ease, transform 0.12s ease;
}
.g1c2-nav-item:active { transform: translateY(1px) scale(0.96); }
.g1c2-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.g1c2-nav-item.g1c2-is-active {
  color: var(--g1c2-highlight);
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.18), transparent);
}
.g1c2-nav-item.g1c2-is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--g1c2-accent);
  border-radius: 0 0 3px 3px;
}
.g1c2-nav-item.g1c2-nav-promo {
  color: var(--g1c2-accent-soft);
}
.g1c2-nav-item.g1c2-nav-promo svg { stroke-width: 1.7; }

.g1c2-no-scroll { overflow: hidden; }

/* Page bottom padding so fixed nav does not cover content */
.g1c2-content-pad { height: calc(var(--g1c2-bottom-h) + 14px); }

/* ====================== UTIL ====================== */
.g1c2-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.g1c2-breadcrumb {
  font-size: 11px;
  color: var(--g1c2-silver);
  margin: 4px 2px 10px;
}
.g1c2-breadcrumb a { color: var(--g1c2-accent-soft); }

/* ====================== RESPONSIVE TWEAKS ====================== */
@media (min-width: 375px) {
  .g1c2-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
  .g1c2-promo-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 430px) {
  body { font-size: 16px; }
  .g1c2-grid { gap: 10px; }
}

/* Keep mobile canvas centered on wide screens; no desktop layout */
@media (min-width: 481px) {
  body { background: #0f1620; }
}
