/* ============================================================
 * Flappy Bird 999 - theme-ba11.css
 * All class names use prefix "g119-".
 * Palette: #D4AF37 (gold) | #1A1A2E (deep ink) | #FFF8DC (cream)
 * Mobile-first, max content width 430px.
 * ============================================================ */

:root {
  --g119-primary: #D4AF37;
  --g119-primary-dark: #b8941f;
  --g119-bg: #1A1A2E;
  --g119-bg-2: #232347;
  --g119-bg-3: #2c2c54;
  --g119-text: #FFF8DC;
  --g119-text-dim: #c9c2a8;
  --g119-text-muted: #8a8676;
  --g119-line: rgba(212, 175, 55, 0.25);
  --g119-card: #21213b;
  --g119-card-2: #1f1f38;
  --g119-danger: #e94560;
  --g119-success: #2ecc71;
  --g119-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --g119-radius: 14px;
  --g119-radius-sm: 10px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', 'Be Vietnam Pro', Roboto, system-ui, sans-serif;
  background: var(--g119-bg);
  color: var(--g119-text);
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--g119-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Layout */
.g119-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.g119-wrapper { padding-top: 70px; padding-bottom: 30px; }
.g119-section { padding: 26px 0; border-top: 1px solid var(--g119-line); }
.g119-section-alt { background: var(--g119-bg-2); }

/* Header */
.g119-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a1a2e 0%, #20203a 100%);
  border-bottom: 1px solid var(--g119-line);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: box-shadow .25s ease;
}
.g119-header-scrolled { box-shadow: 0 6px 18px rgba(0,0,0,0.55); }
.g119-header-inner {
  max-width: 430px; margin: 0 auto; padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.g119-brand { display: flex; align-items: center; gap: 8px; color: var(--g119-text); }
.g119-brand img { width: 30px; height: 30px; border-radius: 8px; }
.g119-brand-name { font-weight: 800; font-size: 1.6rem; color: var(--g119-primary); letter-spacing: .2px; }
.g119-header-actions { display: flex; align-items: center; gap: 6px; }
.g119-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer; font-weight: 700; font-family: inherit;
  padding: 8px 14px; border-radius: 999px; font-size: 1.3rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 36px; text-decoration: none;
}
.g119-btn:hover { transform: translateY(-1px); text-decoration: none; }
.g119-btn-primary { background: linear-gradient(135deg, #f1c34b, #D4AF37); color: #1A1A2E; box-shadow: 0 4px 12px rgba(212,175,55,.35); }
.g119-btn-ghost { background: transparent; color: var(--g119-text); border: 1px solid var(--g119-primary); }
.g119-btn-block { display: flex; width: 100%; }
.g119-btn-lg { padding: 12px 20px; font-size: 1.55rem; min-height: 48px; }

/* Hamburger */
.g119-menu-toggle {
  background: transparent; border: 0; color: var(--g119-primary);
  font-size: 2rem; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.g119-menu-toggle:hover { background: rgba(212,175,55,.12); }

/* Mobile menu */
.g119-mobile-menu {
  position: fixed; top: 60px; right: 0; left: 0; z-index: 9999;
  background: var(--g119-bg-2);
  border-bottom: 1px solid var(--g119-line);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.g119-menu-open { max-height: 480px; box-shadow: var(--g119-shadow); }
.g119-mobile-menu ul { padding: 10px 14px; }
.g119-mobile-menu li { border-bottom: 1px solid rgba(212,175,55,.1); }
.g119-mobile-menu li:last-child { border-bottom: 0; }
.g119-mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 6px; color: var(--g119-text); font-weight: 600;
}
.g119-mobile-menu a i { color: var(--g119-primary); width: 22px; text-align: center; }

/* Hero / Carousel */
.g119-hero { padding: 12px 0 4px; }
.g119-carousel {
  position: relative; border-radius: var(--g119-radius); overflow: hidden;
  box-shadow: var(--g119-shadow); background: var(--g119-bg-2);
}
.g119-slide {
  display: none; position: relative; cursor: pointer;
}
.g119-slide-active { display: block; }
.g119-slide img { width: 100%; height: 200px; object-fit: cover; }
.g119-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px; background: linear-gradient(0deg, rgba(26,26,46,.95) 0%, rgba(26,26,46,0) 100%);
  color: var(--g119-text);
}
.g119-slide-cap h2 { font-size: 1.7rem; color: var(--g119-primary); margin-bottom: 4px; }
.g119-slide-cap p { font-size: 1.3rem; color: var(--g119-text-dim); }
.g119-dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0; }
.g119-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(212,175,55,.35); cursor: pointer;
}
.g119-dot-active { background: var(--g119-primary); }

/* Headings */
.g119-h1 { font-size: 2rem; color: var(--g119-text); margin: 14px 0 6px; line-height: 1.25; }
.g119-h1 .g119-accent { color: var(--g119-primary); }
.g119-h2 {
  font-size: 1.75rem; color: var(--g119-primary); margin: 18px 0 10px;
  padding-left: 10px; border-left: 4px solid var(--g119-primary);
}
.g119-h3 { font-size: 1.5rem; color: var(--g119-text); margin: 14px 0 6px; }
.g119-lead { color: var(--g119-text-dim); font-size: 1.4rem; margin-bottom: 8px; }
.g119-p { margin-bottom: 10px; color: var(--g119-text-dim); }
.g119-tag {
  display: inline-block; font-size: 1.15rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(212,175,55,.15); color: var(--g119-primary);
  margin-bottom: 6px; letter-spacing: .3px;
}

/* Section title bar */
.g119-titlebar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.g119-titlebar h2 { font-size: 1.7rem; color: var(--g119-primary); margin: 0; }
.g119-titlebar .g119-more { font-size: 1.25rem; color: var(--g119-text-dim); }

/* Game grid */
.g119-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.g119-grid-4 { grid-template-columns: repeat(4, 1fr); }
.g119-card {
  background: var(--g119-card); border-radius: var(--g119-radius-sm);
  overflow: hidden; border: 1px solid var(--g119-line);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.g119-card:hover { transform: translateY(-2px); border-color: var(--g119-primary); box-shadow: 0 6px 16px rgba(212,175,55,.2); }
.g119-card-img { position: relative; aspect-ratio: 1/1; background: #15152a; }
.g119-card-img img { width: 100%; height: 100%; object-fit: cover; }
.g119-card-name {
  padding: 6px 6px 8px; text-align: center; font-size: 1.15rem; font-weight: 600;
  color: var(--g119-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g119-card-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--g119-danger); color: #fff;
  font-size: 1rem; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}
.g119-card-badge-hot { background: linear-gradient(135deg,#e94560,#ff7b00); }

/* Category chips */
.g119-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.g119-chip {
  padding: 6px 12px; border-radius: 999px; font-size: 1.2rem; font-weight: 700;
  background: rgba(212,175,55,.12); color: var(--g119-primary);
  border: 1px solid var(--g119-line);
}

/* Featured section */
.g119-feature {
  background: linear-gradient(135deg, #2c2c54, #1a1a2e);
  border: 1px solid var(--g119-line); border-radius: var(--g119-radius);
  padding: 16px; display: flex; gap: 12px; align-items: center;
}
.g119-feature img { width: 110px; height: 110px; border-radius: var(--g119-radius-sm); object-fit: cover; flex-shrink: 0; }
.g119-feature-body { flex: 1; }
.g119-feature-body h3 { color: var(--g119-primary); font-size: 1.5rem; margin-bottom: 4px; }
.g119-feature-body p { color: var(--g119-text-dim); font-size: 1.3rem; margin-bottom: 8px; }

/* Long-form SEO text */
.g119-prose { color: var(--g119-text-dim); font-size: 1.4rem; }
.g119-prose h3 { color: var(--g119-text); margin: 14px 0 6px; font-size: 1.55rem; }
.g119-prose p { margin-bottom: 10px; }
.g119-prose ul { padding-left: 20px; list-style: disc; margin-bottom: 10px; }
.g119-prose li { margin-bottom: 4px; }
.g119-prose strong { color: var(--g119-primary); }

/* FAQ */
.g119-faq-item {
  background: var(--g119-card); border: 1px solid var(--g119-line);
  border-radius: var(--g119-radius-sm); padding: 12px 14px; margin-bottom: 10px;
}
.g119-faq-q { font-weight: 700; color: var(--g119-primary); font-size: 1.35rem; margin-bottom: 4px; }
.g119-faq-a { color: var(--g119-text-dim); font-size: 1.3rem; }

/* Testimonials */
.g119-testi {
  background: var(--g119-card); border-radius: var(--g119-radius-sm);
  padding: 14px; border: 1px solid var(--g119-line); margin-bottom: 10px;
}
.g119-testi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.g119-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,#D4AF37,#b8941f); color: #1a1a2e;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.g119-testi-name { font-weight: 700; color: var(--g119-text); font-size: 1.3rem; }
.g119-stars { color: var(--g119-primary); font-size: 1.2rem; }
.g119-testi-text { color: var(--g119-text-dim); font-size: 1.3rem; font-style: italic; }

/* Payment */
.g119-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.g119-pay span {
  background: var(--g119-card); border: 1px solid var(--g119-line);
  padding: 6px 12px; border-radius: 8px; font-size: 1.2rem; color: var(--g119-text);
}

/* Stats */
.g119-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g119-stat {
  background: var(--g119-card); border-radius: var(--g119-radius-sm);
  padding: 12px; text-align: center; border: 1px solid var(--g119-line);
}
.g119-stat-num { font-size: 2rem; font-weight: 800; color: var(--g119-primary); }
.g119-stat-lbl { font-size: 1.2rem; color: var(--g119-text-dim); }

/* Winners ticker */
.g119-winners {
  background: linear-gradient(90deg, #232347, #1a1a2e);
  border-radius: var(--g119-radius-sm); padding: 10px 14px;
  border: 1px solid var(--g119-line); display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.g119-winners i { color: var(--g119-danger); }
.g119-winners strong { color: var(--g119-primary); }

/* CTA */
.g119-cta {
  background: linear-gradient(135deg, #D4AF37, #b8941f);
  color: #1a1a2e; border-radius: var(--g119-radius); padding: 18px; text-align: center;
}
.g119-cta h3 { color: #1a1a2e; font-size: 1.7rem; margin-bottom: 6px; }
.g119-cta p { color: #2c2c54; margin-bottom: 12px; font-weight: 600; }
.g119-cta .g119-btn { background: #1a1a2e; color: var(--g119-primary); }

/* App download CTA */
.g119-appcta {
  display: flex; gap: 12px; align-items: center;
  background: var(--g119-card); padding: 14px; border-radius: var(--g119-radius);
  border: 1px solid var(--g119-line);
}
.g119-appcta-icon { font-size: 3.4rem; color: var(--g119-primary); }
.g119-appcta-body { flex: 1; }
.g119-appcta-body h3 { color: var(--g119-text); font-size: 1.45rem; }
.g119-appcta-body p { color: var(--g119-text-dim); font-size: 1.25rem; }

/* Footer */
.g119-footer {
  background: #14142a; border-top: 1px solid var(--g119-line);
  padding: 22px 0 90px; margin-top: 24px;
}
.g119-footer h4 { color: var(--g119-primary); font-size: 1.4rem; margin-bottom: 8px; }
.g119-footer p { color: var(--g119-text-dim); font-size: 1.25rem; margin-bottom: 10px; }
.g119-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 12px; }
.g119-footer-links a { font-size: 1.2rem; color: var(--g119-text-dim); }
.g119-footer-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.g119-copyright {
  font-size: 1.15rem; color: var(--g119-text-muted); text-align: center;
  border-top: 1px solid var(--g119-line); padding-top: 12px; margin-top: 12px;
}

/* Bottom navigation (mobile only) */
.g119-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #20203a, #14142a);
  border-top: 1px solid var(--g119-line);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
  box-shadow: 0 -4px 14px rgba(0,0,0,.35);
}
.g119-bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--g119-text-dim); font-size: 1.05rem; font-weight: 600;
  gap: 2px; text-decoration: none; position: relative;
  min-width: 60px; min-height: 60px;
  transition: color .15s ease, transform .15s ease;
}
.g119-bottomnav a:hover { color: var(--g119-primary); transform: translateY(-1px); text-decoration: none; }
.g119-bottomnav a.active { color: var(--g119-primary); }
.g119-bottomnav a.active::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 3px;
  background: var(--g119-primary); border-radius: 0 0 4px 4px;
}
.g119-bottomnav .material-icons,
.g119-bottomnav .ion-icon { font-size: 22px; }
.g119-bottomnav .fas,
.g119-bottomnav .far { font-size: 20px; }
.g119-bottomnav .g119-bn-badge {
  position: absolute; top: 6px; right: calc(50% - 24px);
  background: var(--g119-danger); color: #fff; font-size: .9rem;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

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

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .g119-bottomnav { display: none; }
  .g119-container { max-width: 960px; }
  .g119-grid { grid-template-columns: repeat(6, 1fr); }
  .g119-grid-4 { grid-template-columns: repeat(8, 1fr); }
  .g119-footer { padding-bottom: 30px; }
  .g119-header-inner { max-width: 960px; }
}
@media (max-width: 768px) {
  .g119-wrapper { padding-bottom: 90px; }
}
@media (max-width: 380px) {
  .g119-grid { grid-template-columns: repeat(2, 1fr); }
  .g119-brand-name { font-size: 1.35rem; }
}

/* Promo text link - affiliate trigger styled as a bold text link */
.g119-promolink {
  color: var(--g119-primary); font-weight: 700; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.g119-promolink:hover { color: #f1c34b; text-decoration: underline; }

/* Utilities */
.g119-mt-10 { margin-top: 10px; }
.g119-mt-16 { margin-top: 16px; }
.g119-mb-10 { margin-bottom: 10px; }
.g119-text-center { text-align: center; }
.g119-hidden { display: none !important; }
.g119-row { display: flex; gap: 10px; align-items: center; }
.g119-row-wrap { flex-wrap: wrap; }
