/* ============================================================
 * cb333.homes - basefiles stylesheet
 * All custom classes / variables use the `gbb3-` prefix.
 * Palette: #3CB371 | #0F0F23 | #ADFF2F | #EEEEEE
 * Mobile-first, 320-430px canvas.
 * ============================================================ */

:root {
  --gbb3-green: #3CB371;
  --gbb3-bg: #0F0F23;
  --gbb3-lime: #ADFF2F;
  --gbb3-light: #EEEEEE;
  --gbb3-bg-2: #14142b;
  --gbb3-bg-3: #1b1b3a;
  --gbb3-muted: #9aa0c0;
  --gbb3-border: rgba(172, 255, 47, 0.18);
  --gbb3-radius: 14px;
  --gbb3-header-h: 58px;
  --gbb3-bottom-h: 64px;
  --gbb3-max: 480px;
  --gbb3-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

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

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

/* Center the mobile canvas on wider screens (no desktop layout) */
.gbb3-shell {
  max-width: var(--gbb3-max);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(1200px 360px at 50% -120px, rgba(60, 179, 113, 0.20), transparent 60%),
    linear-gradient(180deg, #0d0d20 0%, #0a0a1a 100%);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

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

a { color: var(--gbb3-lime); text-decoration: none; }
a:hover, a:focus { color: #ffffff; text-decoration: underline; }

.gbb3-wrap { padding: 0 14px; }

/* ============================================================
 * Header
 * ============================================================ */
.gbb3-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--gbb3-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(15, 15, 35, 0.98), rgba(15, 15, 35, 0.92));
  border-bottom: 1px solid var(--gbb3-border);
  backdrop-filter: blur(6px);
}

.gbb3-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.gbb3-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--gbb3-bg-3);
  border: 1px solid var(--gbb3-border);
  flex: 0 0 auto;
}

.gbb3-brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.05;
}
.gbb3-brand-name span { color: var(--gbb3-lime); }
.gbb3-brand-tag {
  font-size: 11px;
  color: var(--gbb3-muted);
  margin-top: 2px;
}

.gbb3-header-actions { display: flex; align-items: center; gap: 7px; }

.gbb3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
}
.gbb3-btn:active { transform: scale(0.96); }
.gbb3-btn-primary {
  background: linear-gradient(135deg, var(--gbb3-green), #2e8d59);
  color: #fff;
  box-shadow: 0 4px 14px rgba(60, 179, 113, 0.45);
}
.gbb3-btn-lime {
  background: linear-gradient(135deg, var(--gbb3-lime), #6fcf2a);
  color: #0c1a05;
  box-shadow: 0 4px 14px rgba(173, 255, 47, 0.35);
}
.gbb3-btn-ghost {
  background: rgba(238, 238, 238, 0.08);
  color: var(--gbb3-light);
  border: 1px solid var(--gbb3-border);
}

.gbb3-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(238, 238, 238, 0.07);
  border: 1px solid var(--gbb3-border);
  color: var(--gbb3-light);
  cursor: pointer;
  flex: 0 0 auto;
}
.gbb3-icon-btn svg { width: 20px; height: 20px; }

/* ============================================================
 * Expandable route panel (tight route panel design)
 * ============================================================ */
.gbb3-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 82%;
  max-width: 360px;
  background: linear-gradient(180deg, #11112a, #0b0b1d);
  border-left: 1px solid var(--gbb3-border);
  z-index: 90;
  transform: translateX(110%);
  transition: transform 0.28s cubic-bezier(0.16, 0.84, 0.34, 1);
  padding: 18px 16px calc(var(--gbb3-bottom-h) + 18px);
  overflow-y: auto;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.5);
}
.gbb3-menu-open { transform: translateX(0); }

.gbb3-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.gbb3-menu-title { font-size: 16px; font-weight: 800; color: #fff; }

.gbb3-menu-section { margin-bottom: 16px; }
.gbb3-menu-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gbb3-lime);
  margin-bottom: 8px;
  font-weight: 700;
}
.gbb3-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.gbb3-menu-list a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(238, 238, 238, 0.05);
  border: 1px solid rgba(238, 238, 238, 0.06);
  color: var(--gbb3-light);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.gbb3-menu-list a:hover {
  background: rgba(60, 179, 113, 0.18);
  color: #fff;
  text-decoration: none;
}
.gbb3-menu-cta {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.gbb3-menu-cta .gbb3-btn { flex: 1; height: 40px; }

.gbb3-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.gbb3-menu-open ~ .gbb3-overlay { opacity: 1; pointer-events: auto; }

/* ============================================================
 * Hero / Carousel
 * ============================================================ */
.gbb3-hero {
  position: relative;
  margin: 12px 0 4px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--gbb3-shadow);
}
.gbb3-slides { position: relative; }
.gbb3-slide {
  display: block;
  position: relative;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  height: 190px;
}
.gbb3-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gbb3-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 35, 0.05) 30%, rgba(15, 15, 35, 0.85) 100%);
}
.gbb3-slide-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
}
.gbb3-slide-caption h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.gbb3-slide-caption p {
  margin: 0;
  font-size: 12px;
  color: var(--gbb3-light);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.gbb3-slide-active { opacity: 1; visibility: visible; }

.gbb3-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 5;
}
.gbb3-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(238, 238, 238, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.gbb3-dot-active {
  background: var(--gbb3-lime);
  width: 18px;
  border-radius: 6px;
}

.gbb3-hero-cta {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 5;
}

/* ============================================================
 * Marquee notice
 * ============================================================ */
.gbb3-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 9px 12px;
  background: linear-gradient(90deg, rgba(60, 179, 113, 0.18), rgba(173, 255, 47, 0.10));
  border: 1px solid var(--gbb3-border);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--gbb3-light);
}
.gbb3-notice-badge {
  background: var(--gbb3-lime);
  color: #0c1a05;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  flex: 0 0 auto;
}

/* ============================================================
 * Section heads
 * ============================================================ */
.gbb3-section { margin: 22px 0 6px; }
.gbb3-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gbb3-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gbb3-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--gbb3-lime), var(--gbb3-green));
  border-radius: 3px;
}
.gbb3-section-more {
  font-size: 12.5px;
  color: var(--gbb3-lime);
  font-weight: 600;
}

/* ============================================================
 * Game grid (compact 4-col)
 * ============================================================ */
.gbb3-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
}
.gbb3-cat-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--gbb3-lime);
  background: rgba(173, 255, 47, 0.12);
  border: 1px solid var(--gbb3-border);
  padding: 4px 10px;
  border-radius: 999px;
}
.gbb3-cat-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.gbb3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 360px) {
  .gbb3-grid { gap: 9px; }
}

.gbb3-game {
  display: flex;
  flex-direction: column;
  background: var(--gbb3-bg-2);
  border: 1px solid rgba(238, 238, 238, 0.06);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}
.gbb3-game:hover {
  transform: translateY(-3px);
  border-color: var(--gbb3-lime);
  box-shadow: 0 8px 18px rgba(173, 255, 47, 0.18);
  text-decoration: none;
}
.gbb3-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gbb3-bg-3);
}
.gbb3-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gbb3-game-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, var(--gbb3-green), #2e8d59);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 5px;
  letter-spacing: 0.5px;
}
.gbb3-game-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--gbb3-light);
  padding: 5px 4px 6px;
  line-height: 1.25;
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
 * Feature / info cards
 * ============================================================ */
.gbb3-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gbb3-feature {
  background: linear-gradient(160deg, var(--gbb3-bg-2), var(--gbb3-bg-3));
  border: 1px solid rgba(238, 238, 238, 0.06);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: left;
}
.gbb3-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(60, 179, 113, 0.18);
  color: var(--gbb3-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.gbb3-feature-icon svg { width: 20px; height: 20px; }
.gbb3-feature h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}
.gbb3-feature p {
  margin: 0;
  font-size: 12.5px;
  color: var(--gbb3-muted);
  line-height: 1.45;
}

/* ============================================================
 * About / SEO content blocks
 * ============================================================ */
.gbb3-content {
  background: var(--gbb3-bg-2);
  border: 1px solid rgba(238, 238, 238, 0.05);
  border-radius: 14px;
  padding: 16px 15px;
  margin: 18px 0;
}
.gbb3-content h2 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #fff;
  font-weight: 800;
}
.gbb3-content h3 {
  margin: 14px 0 6px;
  font-size: 14.5px;
  color: var(--gbb3-lime);
  font-weight: 700;
}
.gbb3-content p {
  margin: 0 0 10px;
  color: var(--gbb3-light);
  font-size: 13.5px;
  line-height: 1.7;
}
.gbb3-content p a { color: var(--gbb3-lime); }
.gbb3-content ul {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--gbb3-light);
  font-size: 13.5px;
}
.gbb3-content li { margin-bottom: 5px; }

.gbb3-cta-band {
  background: linear-gradient(135deg, rgba(60, 179, 113, 0.22), rgba(173, 255, 47, 0.16));
  border: 1px solid var(--gbb3-border);
  border-radius: 14px;
  padding: 18px 16px;
  margin: 18px 0;
  text-align: center;
}
.gbb3-cta-band h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #fff;
  font-weight: 800;
}
.gbb3-cta-band p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--gbb3-light);
}
.gbb3-cta-band .gbb3-btn { height: 42px; padding: 0 26px; font-size: 14.5px; }

/* ============================================================
 * Extended footer (promotional directory)
 * ============================================================ */
.gbb3-ext-footer {
  margin: 22px 0 0;
  padding: 16px 14px;
  background: linear-gradient(180deg, var(--gbb3-bg-2), var(--gbb3-bg));
  border-top: 1px solid var(--gbb3-border);
  border-radius: 14px 14px 0 0;
}
.gbb3-ext-footer h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--gbb3-lime);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 800;
}
.gbb3-ext-footer p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--gbb3-muted);
  line-height: 1.6;
}
.gbb3-link-groups {
  display: grid;
  gap: 10px;
}
.gbb3-link-group {
  background: rgba(238, 238, 238, 0.04);
  border: 1px solid rgba(238, 238, 238, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
}
.gbb3-link-group .gbb3-link-group-title {
  font-size: 12px;
  color: var(--gbb3-lime);
  font-weight: 700;
  margin-bottom: 6px;
}
.gbb3-link-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gbb3-link-group-links a {
  font-size: 12px;
  color: var(--gbb3-light);
  background: rgba(60, 179, 113, 0.14);
  border: 1px solid var(--gbb3-border);
  padding: 5px 9px;
  border-radius: 8px;
  text-decoration: none;
}
.gbb3-link-group-links a:hover {
  background: rgba(60, 179, 113, 0.30);
  color: #fff;
  text-decoration: none;
}
.gbb3-disclaimer {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--gbb3-lime);
  background: rgba(173, 255, 47, 0.06);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--gbb3-muted);
  line-height: 1.55;
}

/* ============================================================
 * Footer
 * ============================================================ */
.gbb3-footer {
  padding: 18px 14px calc(var(--gbb3-bottom-h) + 18px);
  text-align: center;
}
.gbb3-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.gbb3-footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.gbb3-footer-brand b { color: #fff; font-size: 15px; }
.gbb3-footer-copy {
  font-size: 11.5px;
  color: var(--gbb3-muted);
  line-height: 1.6;
}

/* ============================================================
 * Bottom navigation (through-bar nav wheel)
 * ============================================================ */
.gbb3-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  max-width: var(--gbb3-max);
  margin: 0 auto;
  height: var(--gbb3-bottom-h);
  background: linear-gradient(180deg, rgba(17, 17, 38, 0.98), rgba(10, 10, 25, 0.98));
  border-top: 1px solid var(--gbb3-border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 4px;
  backdrop-filter: blur(8px);
}
.gbb3-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: var(--gbb3-muted);
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 2px 4px;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
  background: none;
  border: none;
  font-family: inherit;
}
.gbb3-bottom-item svg { width: 22px; height: 22px; transition: transform 0.2s ease; }
.gbb3-bottom-item:hover { color: var(--gbb3-light); }
.gbb3-bottom-item:hover svg { transform: scale(1.1); }
.gbb3-bottom-item.is-active {
  color: var(--gbb3-lime);
}
.gbb3-bottom-item.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--gbb3-lime);
}
.gbb3-bottom-item-promo {
  color: var(--gbb3-lime);
}

/* Floating promo center button (quick action) */
.gbb3-fab {
  position: fixed;
  right: 14px;
  bottom: calc(var(--gbb3-bottom-h) + 14px);
  z-index: 65;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gbb3-lime), var(--gbb3-green));
  color: #0c1a05;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 10px 22px rgba(173, 255, 47, 0.45);
  cursor: pointer;
}
.gbb3-fab svg { width: 24px; height: 24px; }

/* ============================================================
 * Reveal animation
 * ============================================================ */
.gbb3-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gbb3-reveal.gbb3-revealed {
  opacity: 1;
  transform: none;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .gbb3-reveal { opacity: 1; transform: none; }
}

/* Utility */
.gbb3-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
