/* ============================================================
   789bingo apk - Core Stylesheet
   Prefix: g328-
   Palette: #7CFC00 (lime) | #2C2C2C (dark) | #00FF7F (spring)
   Mobile-first, viewport capped at 430px.
   ============================================================ */

:root {
  --g328-primary: #7CFC00;
  --g328-accent:  #00FF7F;
  --g328-bg:      #2C2C2C;
  --g328-bg-2:    #1c1c1c;
  --g328-bg-3:    #3a3a3a;
  --g328-text:    #ffffff;
  --g328-muted:   #b8b8b8;
  --g328-gold:    #ffd54a;
  --g328-danger:  #ff5a5a;
  --g328-radius:  14px;
  --g328-shadow:  0 6px 18px rgba(0,0,0,.35);
  --g328-header-h: 58px;
  --g328-bottom-h: 62px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--g328-bg);
  color: var(--g328-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g328-accent); text-decoration: none; }
a:hover { color: var(--g328-primary); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
body.g328-no-scroll { overflow: hidden; }

/* ---------- layout ---------- */
.g328-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #2C2C2C 0%, #232323 100%);
  box-shadow: 0 0 24px rgba(0,0,0,.4);
}
.g328-container { width: 100%; padding: 0 14px; }
main.g328-main { padding-top: var(--g328-header-h); padding-bottom: 90px; }
section.g328-section { padding: 22px 0 8px; }
.g328-section-title {
  font-size: 1.9rem; font-weight: 800; margin: 4px 0 12px;
  display: flex; align-items: center; gap: 8px;
  color: var(--g328-text);
}
.g328-section-title .g328-bar {
  width: 5px; height: 22px; border-radius: 4px;
  background: linear-gradient(180deg, var(--g328-primary), var(--g328-accent));
}
.g328-lead { color: var(--g328-muted); font-size: 1.4rem; line-height: 1.55; }

/* ---------- header ---------- */
.g328-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--g328-header-h);
  background: rgba(28,28,28,.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--g328-primary);
}
.g328-header .g328-wrapper-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.g328-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.g328-brand img { width: 28px; height: 28px; border-radius: 6px; }
.g328-brand b { color: var(--g328-primary); font-size: 1.5rem; font-weight: 800; letter-spacing: .2px; }
.g328-brand small { color: var(--g328-muted); font-size: 1.1rem; display: block; line-height: 1.1rem; }
.g328-header-actions { display: flex; align-items: center; gap: 6px; }
.g328-hamburger {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--g328-bg-3); display: flex; align-items: center; justify-content: center;
}
.g328-hamburger i { font-size: 20px; color: var(--g328-primary); }

/* ---------- buttons ---------- */
.g328-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; min-height: 36px; border-radius: 10px;
  font-weight: 700; font-size: 1.35rem; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-align: center;
}
.g328-btn:active { transform: scale(.96); }
.g328-btn-primary {
  background: linear-gradient(135deg, var(--g328-primary), var(--g328-accent));
  color: #10330a; box-shadow: 0 4px 12px rgba(124,252,0,.35);
}
.g328-btn-outline {
  background: transparent; color: var(--g328-primary);
  border: 1.5px solid var(--g328-primary);
}
.g328-btn-ghost { background: var(--g328-bg-3); color: var(--g328-text); }
.g328-btn-gold {
  background: linear-gradient(135deg, #ffd54a, #ff9d2e);
  color: #3a2400; box-shadow: 0 4px 12px rgba(255,213,74,.32);
}
.g328-btn-lg { padding: 13px 22px; font-size: 1.55rem; min-height: 46px; }
.g328-btn-block { width: 100%; display: flex; }

/* ---------- mobile drawer menu ---------- */
.g328-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 9998;
}
.g328-menu-overlay.g328-overlay-show { opacity: 1; visibility: visible; }
.g328-mobile-menu {
  position: fixed; top: 0; right: -82%; width: 78%; max-width: 320px;
  height: 100vh; background: var(--g328-bg-2); z-index: 9999;
  transition: right .28s ease; padding: 18px 16px; overflow-y: auto;
  border-left: 2px solid var(--g328-primary);
}
.g328-mobile-menu.g328-menu-open { right: 0; }
.g328-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.g328-menu-head b { color: var(--g328-primary); font-size: 1.7rem; }
.g328-menu-close { width: 34px; height: 34px; border-radius: 8px; background: var(--g328-bg-3); color: #fff; }
.g328-menu-close i { font-size: 18px; }
.g328-menu-list li { border-bottom: 1px solid #3a3a3a; }
.g328-menu-list a {
  display: flex; align-items: center; gap: 10px; padding: 13px 8px;
  color: var(--g328-text); font-size: 1.45rem; font-weight: 600;
}
.g328-menu-list a i { font-size: 20px; color: var(--g328-primary); }
.g328-menu-list a:hover { background: rgba(124,252,0,.08); }
.g328-menu-cta { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- desktop nav (hidden on mobile) ---------- */
.g328-desktop-nav { display: none; }

/* ---------- hero carousel ---------- */
.g328-hero { margin: 12px 0 4px; }
.g328-carousel { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--g328-shadow); }
.g328-slide {
  position: relative; display: none; cursor: pointer;
}
.g328-slide.g328-slide-active { display: block; }
.g328-slide img { width: 100%; height: 190px; object-fit: cover; }
.g328-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
}
.g328-slide-cap h2 { font-size: 1.7rem; color: var(--g328-primary); margin-bottom: 4px; }
.g328-slide-cap p { font-size: 1.25rem; color: #eee; }
.g328-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
.g328-dot { width: 9px; height: 9px; border-radius: 50%; background: #555; }
.g328-dot.g328-dot-active { background: var(--g328-primary); width: 22px; border-radius: 6px; }

/* ---------- chips / filter ---------- */
.g328-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.g328-chips::-webkit-scrollbar { display: none; }
.g328-chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 20px;
  background: var(--g328-bg-3); color: var(--g328-text);
  font-size: 1.25rem; font-weight: 600; white-space: nowrap;
}
.g328-chip.g328-chip-active {
  background: linear-gradient(135deg, var(--g328-primary), var(--g328-accent));
  color: #10330a;
}

/* ---------- game grid ---------- */
.g328-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.g328-game-card {
  background: var(--g328-bg-3); border-radius: 12px; padding: 6px;
  text-align: center; cursor: pointer; position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid transparent;
}
.g328-game-card:hover { transform: translateY(-2px); border-color: var(--g328-primary); }
.g328-game-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 9px; background: #111;
}
.g328-game-card .g328-game-name {
  font-size: 1.15rem; font-weight: 600; margin-top: 5px;
  color: var(--g328-text); line-height: 1.25rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.g328-game-card .g328-hot-tag {
  position: absolute; top: 4px; right: 4px;
  background: var(--g328-danger); color: #fff;
  font-size: .95rem; padding: 2px 6px; border-radius: 6px; font-weight: 700;
}
.g328-game-card .g328-play-overlay {
  position: absolute; inset: 6px; border-radius: 9px;
  background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.g328-game-card:hover .g328-play-overlay { opacity: 1; }
.g328-game-card .g328-play-overlay i { font-size: 30px; color: var(--g328-primary); }

/* ---------- cards ---------- */
.g328-card {
  background: var(--g328-bg-3); border-radius: var(--g328-radius);
  padding: 14px; box-shadow: var(--g328-shadow); margin-bottom: 12px;
}
.g328-card h3 { font-size: 1.55rem; margin-bottom: 6px; color: var(--g328-primary); }
.g328-card p { color: #d6d6d6; font-size: 1.35rem; line-height: 1.55; }
.g328-feature-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px;
}
.g328-feature-row .g328-feature {
  background: var(--g328-bg-2); border-radius: 10px; padding: 12px;
  text-align: center; border: 1px solid #444;
}
.g328-feature i { font-size: 26px; color: var(--g328-accent); }
.g328-feature b { display: block; margin-top: 6px; font-size: 1.3rem; }
.g328-feature span { font-size: 1.15rem; color: var(--g328-muted); }

/* ---------- RTP table ---------- */
.g328-rtp-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 1.3rem; }
.g328-rtp-table th, .g328-rtp-table td { padding: 9px 8px; border-bottom: 1px solid #444; text-align: left; }
.g328-rtp-table th { color: var(--g328-primary); font-size: 1.2rem; text-transform: uppercase; }
.g328-rtp-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--g328-primary); vertical-align: middle; }

/* ---------- testimonials ---------- */
.g328-testimonials { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.g328-testimonials::-webkit-scrollbar { display: none; }
.g328-testimonial {
  flex: 0 0 85%; background: var(--g328-bg-2); border-radius: 12px; padding: 14px;
  border-left: 3px solid var(--g328-primary);
}
.g328-testimonial .g328-stars { color: var(--g328-gold); font-size: 1.2rem; margin-bottom: 4px; }
.g328-testimonial p { font-size: 1.3rem; color: #ddd; margin-bottom: 8px; }
.g328-testimonial .g328-author { font-size: 1.2rem; color: var(--g328-accent); font-weight: 700; }

/* ---------- winners ---------- */
.g328-winner-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 4px; border-bottom: 1px dashed #555; font-size: 1.3rem;
}
.g328-winner-list .g328-winner-name { color: var(--g328-text); font-weight: 600; }
.g328-winner-list .g328-winner-amount { color: var(--g328-gold); font-weight: 800; }

/* ---------- payment methods ---------- */
.g328-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g328-pay {
  background: #fff; border-radius: 10px; padding: 8px; text-align: center;
  color: #222; font-weight: 700; font-size: 1.05rem; min-height: 46px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- download CTA ---------- */
.g328-cta {
  background: linear-gradient(135deg, rgba(124,252,0,.16), rgba(0,255,127,.12));
  border: 1.5px solid var(--g328-primary); border-radius: 16px; padding: 18px;
  text-align: center;
}
.g328-cta h3 { font-size: 1.7rem; color: var(--g328-primary); margin-bottom: 6px; }
.g328-cta p { color: #ddd; margin-bottom: 12px; font-size: 1.3rem; }
.g328-cta-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.g328-faq-item {
  background: var(--g328-bg-3); border-radius: 10px; margin-bottom: 8px;
  overflow: hidden; border: 1px solid #444;
}
.g328-faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 13px 14px; font-weight: 700; font-size: 1.4rem; color: var(--g328-text); text-align: left;
}
.g328-faq-q i { color: var(--g328-primary); transition: transform .2s ease; }
.g328-faq-item.g328-faq-open .g328-faq-q i { transform: rotate(45deg); }
.g328-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: 0 14px; color: #ccc; font-size: 1.3rem;
}
.g328-faq-item.g328-faq-open .g328-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ---------- achievements ---------- */
.g328-ach-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.g328-ach {
  background: var(--g328-bg-2); border-radius: 10px; padding: 12px; text-align: center;
  border: 1px solid #444;
}
.g328-ach i { font-size: 28px; color: var(--g328-gold); }
.g328-ach b { display: block; margin-top: 6px; font-size: 1.35rem; color: var(--g328-primary); }
.g328-ach span { font-size: 1.15rem; color: var(--g328-muted); }

/* ---------- security ---------- */
.g328-security-list li {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 0;
  border-bottom: 1px solid #3a3a3a;
}
.g328-security-list i { color: var(--g328-primary); font-size: 20px; margin-top: 2px; }
.g328-security-list b { color: var(--g328-text); }
.g328-security-list span { color: var(--g328-muted); font-size: 1.25rem; }

/* ---------- inline promo banner ---------- */
.g328-inline-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(90deg, var(--g328-bg-3), #444);
  border-left: 4px solid var(--g328-primary); border-radius: 10px; padding: 10px 12px; margin: 10px 0;
}
.g328-inline-promo span { font-size: 1.3rem; font-weight: 600; }

/* ---------- footer ---------- */
.g328-footer {
  background: #181818; padding: 22px 14px 18px; margin-top: 14px;
  border-top: 2px solid var(--g328-primary);
}
.g328-footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.g328-footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
.g328-footer-brand b { color: var(--g328-primary); font-size: 1.4rem; }
.g328-footer p { color: #aaa; font-size: 1.2rem; line-height: 1.5rem; margin-bottom: 12px; }
.g328-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.g328-footer-links a {
  background: var(--g328-bg-3); color: var(--g328-text); padding: 6px 10px;
  border-radius: 8px; font-size: 1.15rem;
}
.g328-footer-links a:hover { background: var(--g328-primary); color: #10330a; }
.g328-footer-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.g328-footer-bottom { text-align: center; color: #888; font-size: 1.1rem; padding-top: 10px; border-top: 1px solid #2a2a2a; }

/* ---------- mobile bottom nav ---------- */
.g328-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--g328-bottom-h);
  background: rgba(20,20,20,.98);
  border-top: 2px solid var(--g328-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 14px rgba(0,0,0,.4);
}
.g328-bottom-nav .g328-wrapper-inner {
  max-width: 430px; margin: 0 auto; width: 100%;
  display: flex; justify-content: space-around; align-items: stretch;
}
.g328-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #aaa; font-size: 1.05rem; min-width: 60px; min-height: 60px;
  transition: color .15s ease, transform .15s ease; position: relative;
}
.g328-nav-btn i, .g328-nav-btn .material-symbols-outlined {
  font-size: 22px;
}
.g328-nav-btn:active { transform: scale(.9); }
.g328-nav-btn.is-active { color: var(--g328-primary); }
.g328-nav-btn.is-active::before {
  content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--g328-primary);
}
.g328-nav-btn.g328-nav-promo { color: var(--g328-gold); }
.g328-nav-btn .g328-badge {
  position: absolute; top: 6px; right: 18px; background: var(--g328-danger);
  color: #fff; font-size: .9rem; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- back to top ---------- */
.g328-to-top {
  position: fixed; right: 12px; bottom: calc(var(--g328-bottom-h) + 12px);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--g328-primary); color: #10330a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--g328-shadow); z-index: 999;
}

/* ---------- desktop: hide bottom nav + cap width ---------- */
@media (min-width: 769px) {
  .g328-bottom-nav { display: none; }
  main.g328-main { padding-bottom: 30px; }
  .g328-to-top { bottom: 18px; }
}

/* ---------- small phone fine-tune ---------- */
@media (max-width: 360px) {
  .g328-game-grid { grid-template-columns: repeat(2, 1fr); }
  .g328-pay-grid { grid-template-columns: repeat(3, 1fr); }
}
