/* ============================================================
 * 99win apk - shared stylesheet
 * All custom classes use the g4fb- prefix.
 * Color palette: #D3D3D3 | #E0E0E0 | #0E1621
 * Mobile first: max content width 430px, root font 62.5%.
 * ============================================================ */

:root {
  --g4fb-primary: #D3D3D3;
  --g4fb-secondary: #E0E0E0;
  --g4fb-bg: #0E1621;
  --g4fb-bg-soft: #142031;
  --g4fb-bg-card: #18243a;
  --g4fb-text: #E0E0E0;
  --g4fb-text-muted: #9fb0c7;
  --g4fb-accent: #f5c451;
  --g4fb-accent-soft: #f5a623;
  --g4fb-danger: #e94560;
  --g4fb-success: #27ae60;
  --g4fb-border: rgba(211, 211, 211, 0.18);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--g4fb-bg);
  color: var(--g4fb-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--g4fb-accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 { color: #fff; line-height: 1.25; margin: 0 0 1rem; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.8rem; }
p { margin: 0 0 1.2rem; color: var(--g4fb-text-muted); }

/* ---------- Layout primitives ---------- */
.g4fb-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.g4fb-wrapper {
  width: 100%;
  padding: 1.5rem 1.2rem;
}

.g4fb-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--g4fb-border);
}

.g4fb-section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.g4fb-section-title i { color: var(--g4fb-accent); }

/* ---------- Header / Top navigation ---------- */
.g4fb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0c1320 0%, #15243b 100%);
  border-bottom: 1px solid var(--g4fb-border);
  max-width: 430px;
  margin: 0 auto;
}

.g4fb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.6rem;
}

.g4fb-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.7rem;
  flex: 1;
  min-width: 0;
}

.g4fb-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.g4fb-logo small {
  display: block;
  font-size: 1rem;
  color: var(--g4fb-accent);
  font-weight: 400;
}

.g4fb-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g4fb-menu-btn {
  background: transparent;
  border: 1px solid var(--g4fb-border);
  color: var(--g4fb-primary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
}

/* ---------- Buttons ---------- */
.g4fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 38px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.g4fb-btn:hover { transform: translateY(-1px); text-decoration: none; }
.g4fb-btn:active { transform: scale(0.97); }

.g4fb-btn-primary {
  background: linear-gradient(135deg, var(--g4fb-accent) 0%, var(--g4fb-accent-soft) 100%);
  color: #1a1206;
  box-shadow: 0 4px 14px rgba(245, 196, 81, 0.3);
}

.g4fb-btn-outline {
  background: transparent;
  color: var(--g4fb-primary);
  border: 1px solid var(--g4fb-primary);
}

.g4fb-btn-ghost {
  background: rgba(211, 211, 211, 0.12);
  color: var(--g4fb-text);
}

.g4fb-btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1.6rem;
}

/* ---------- Mobile expandable menu ---------- */
.g4fb-mobile-menu {
  display: none;
  background: var(--g4fb-bg-soft);
  border-bottom: 1px solid var(--g4fb-border);
  padding: 0.6rem 1rem 1rem;
  flex-direction: column;
  gap: 0.3rem;
}

.g4fb-menu-open { display: flex; }

.g4fb-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  color: var(--g4fb-text);
  border-radius: 8px;
  font-size: 1.5rem;
}

.g4fb-mobile-menu a:active { background: rgba(255, 255, 255, 0.05); }
.g4fb-mobile-menu a i { color: var(--g4fb-accent); width: 22px; }

/* ---------- Hero / Carousel ---------- */
.g4fb-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin: 1.2rem 0;
}

.g4fb-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.g4fb-slide {
  min-width: 100%;
  position: relative;
}

.g4fb-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
}

.g4fb-slide-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  background: linear-gradient(0deg, rgba(14,22,33,0.92), rgba(14,22,33,0));
  color: #fff;
  padding: 0.8rem;
  border-radius: 10px;
  font-size: 1.3rem;
}

.g4fb-slide-caption strong { color: var(--g4fb-accent); display: block; font-size: 1.6rem; }

.g4fb-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 2;
}

.g4fb-carousel-arrow.prev { left: 8px; }
.g4fb-carousel-arrow.next { right: 8px; }

.g4fb-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.g4fb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

.g4fb-dot-active { background: var(--g4fb-accent); width: 18px; border-radius: 4px; }

/* ---------- Hero / intro ---------- */
.g4fb-hero {
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.g4fb-hero h1 { font-size: 2.6rem; margin-bottom: 0.8rem; }
.g4fb-hero p { color: var(--g4fb-text-muted); font-size: 1.5rem; }

.g4fb-cta-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

/* ---------- Game grid ---------- */
.g4fb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.g4fb-card {
  background: var(--g4fb-bg-card);
  border: 1px solid var(--g4fb-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.g4fb-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.35); text-decoration: none; }

.g4fb-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0b1422;
}

.g4fb-card-name {
  font-size: 1.25rem;
  color: var(--g4fb-text);
  padding: 0.5rem 0.6rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g4fb-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0 1rem;
}

.g4fb-cat-header h2 { margin: 0; font-size: 1.8rem; }
.g4fb-cat-header .g4fb-cat-tag {
  font-size: 1.2rem;
  color: var(--g4fb-accent);
  background: rgba(245, 196, 81, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

/* ---------- Feature / info cards ---------- */
.g4fb-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.g4fb-feature {
  background: var(--g4fb-bg-card);
  border: 1px solid var(--g4fb-border);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.g4fb-feature i {
  font-size: 2.6rem;
  color: var(--g4fb-accent);
  margin-bottom: 0.6rem;
}

.g4fb-feature h3 { font-size: 1.5rem; margin: 0.4rem 0; }
.g4fb-feature p { font-size: 1.25rem; margin: 0; color: var(--g4fb-text-muted); }

/* ---------- FAQ / accordion-style ---------- */
.g4fb-faq-item {
  background: var(--g4fb-bg-card);
  border: 1px solid var(--g4fb-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}

.g4fb-faq-item h3 {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
  color: var(--g4fb-accent);
}

.g4fb-faq-item p { margin: 0; font-size: 1.35rem; }

/* ---------- Testimonials ---------- */
.g4fb-testimonial {
  background: var(--g4fb-bg-card);
  border: 1px solid var(--g4fb-border);
  border-left: 3px solid var(--g4fb-accent);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}

.g4fb-testimonial .g4fb-stars { color: var(--g4fb-accent); font-size: 1.3rem; }
.g4fb-testimonial p { margin: 0.4rem 0; }
.g4fb-testimonial strong { color: #fff; }

/* ---------- Winners strip ---------- */
.g4fb-winners {
  background: linear-gradient(135deg, #1a2c47 0%, #142031 100%);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
}

.g4fb-winner {
  flex: 0 0 auto;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  min-width: 150px;
}

.g4fb-winner small { color: var(--g4fb-text-muted); display: block; }
.g4fb-winner strong { color: var(--g4fb-success); display: block; font-size: 1.4rem; }

/* ---------- Payment / app CTA ---------- */
.g4fb-app-cta {
  background: linear-gradient(135deg, #15243b 0%, #1c2e4d 100%);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--g4fb-border);
}

.g4fb-app-cta h2 { color: var(--g4fb-accent); }
.g4fb-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.g4fb-pay-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--g4fb-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  color: var(--g4fb-text);
}

/* ---------- Inline SEO link style ---------- */
.g4fb-inline-link {
  color: var(--g4fb-accent);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.g4fb-footer {
  background: #0a111c;
  border-top: 1px solid var(--g4fb-border);
  padding: 2rem 1.2rem 6.5rem;
  margin-top: 2rem;
  font-size: 1.3rem;
}

.g4fb-footer h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.6rem; }

.g4fb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0 1rem;
}

.g4fb-footer-links a {
  color: var(--g4fb-text-muted);
  font-size: 1.25rem;
}

.g4fb-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.g4fb-footer-copy {
  text-align: center;
  color: var(--g4fb-text-muted);
  font-size: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--g4fb-border);
}

/* ---------- Mobile bottom navigation ---------- */
.g4fb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #111e30 0%, #0a111c 100%);
  border-top: 1px solid var(--g4fb-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.35);
}

.g4fb-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--g4fb-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  min-width: 60px;
  padding: 6px 2px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.g4fb-nav-btn i, .g4fb-nav-btn span.material-icons-outlined {
  font-size: 22px;
}

.g4fb-nav-btn:active { transform: scale(0.92); }
.g4fb-nav-btn:hover { color: var(--g4fb-accent); text-decoration: none; }

.g4fb-nav-active {
  color: var(--g4fb-accent);
}

.g4fb-nav-active::after {
  content: '';
  width: 26px;
  height: 3px;
  background: var(--g4fb-accent);
  border-radius: 3px;
  margin-top: 2px;
}

/* ---------- Responsive helpers ---------- */
@media (min-width: 769px) {
  .g4fb-bottom-nav { display: none; }
}

@media (max-width: 768px) {
  body { padding-bottom: 80px; }
  main { padding-bottom: 80px; }
}

@media (max-width: 360px) {
  .g4fb-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.1rem; }
}
