/* ============================================================
   99jili.homes - theme-e177.css
   All custom classes use the dynamic prefix "g770-".
   Palette: #CED4DA (light) | #B22222 (brand) | #212F3D (dark bg)
   Mobile-first, max-width 430px.
   ============================================================ */

:root {
  --g770-primary: #B22222;
  --g770-primary-dark: #7a1717;
  --g770-primary-light: #d94545;
  --g770-bg: #212F3D;
  --g770-bg-2: #1a2530;
  --g770-bg-3: #2b3c4d;
  --g770-text: #CED4DA;
  --g770-text-strong: #f5f7fa;
  --g770-muted: #9aa6b2;
  --g770-gold: #e8b339;
  --g770-success: #2ecc71;
  --g770-border: rgba(206, 212, 218, 0.15);
  --g770-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --g770-radius: 12px;
  --g770-radius-sm: 8px;
  --g770-transition: 0.25s ease;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  background: var(--g770-bg);
  color: var(--g770-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

a { color: var(--g770-primary-light); text-decoration: none; }
a:hover { color: var(--g770-text-strong); }

.g770-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g770-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ----- Header ----- */
.g770-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g770-bg-2), rgba(33,47,61,0.96));
  border-bottom: 1px solid var(--g770-border);
  backdrop-filter: blur(6px);
}
.g770-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.8rem;
}
.g770-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.g770-brand img { width: 30px; height: 30px; border-radius: 6px; }
.g770-brand .g770-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--g770-text-strong);
  white-space: nowrap;
}
.g770-brand .g770-brand-name span { color: var(--g770-primary-light); }
.g770-header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.g770-menu-btn {
  background: transparent;
  border: none;
  color: var(--g770-text);
  font-size: 1.8rem;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}
.g770-menu-btn:hover { background: rgba(255,255,255,0.06); color: var(--g770-text-strong); }

/* ----- Buttons ----- */
.g770-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--g770-transition), background var(--g770-transition), color var(--g770-transition);
  min-height: 38px;
  text-decoration: none;
  line-height: 1;
}
.g770-btn:active { transform: scale(0.96); }
.g770-btn-primary {
  background: linear-gradient(135deg, var(--g770-primary), var(--g770-primary-dark));
  color: #fff;
  box-shadow: 0 3px 10px rgba(178,34,34,0.35);
}
.g770-btn-primary:hover { background: linear-gradient(135deg, var(--g770-primary-light), var(--g770-primary)); color: #fff; }
.g770-btn-outline {
  background: transparent;
  color: var(--g770-text);
  border: 1px solid var(--g770-border);
}
.g770-btn-outline:hover { border-color: var(--g770-primary-light); color: var(--g770-text-strong); }
.g770-btn-gold {
  background: linear-gradient(135deg, var(--g770-gold), #b9821a);
  color: #2a1d00;
  font-weight: 800;
}
.g770-btn-block { display: flex; width: 100%; }
.g770-btn-lg { padding: 1rem 1.6rem; font-size: 1.5rem; min-height: 48px; }

/* ----- Mobile Menu Drawer ----- */
.g770-mobile-menu {
  position: fixed;
  top: 54px; left: 0; right: 0;
  background: var(--g770-bg-2);
  border-bottom: 1px solid var(--g770-border);
  padding: 0.8rem 1rem 1rem;
  z-index: 9999;
  transform: translateY(-130%);
  transition: transform 0.3s ease;
  max-height: 75vh;
  overflow-y: auto;
}
.g770-mobile-menu.g770-open { transform: translateY(0); }
.g770-mobile-menu a {
  display: block;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--g770-border);
  color: var(--g770-text);
  font-size: 1.4rem;
  font-weight: 600;
}
.g770-mobile-menu a:hover { color: var(--g770-primary-light); padding-left: 1rem; }

/* ----- Page spacer (header clearance) ----- */
.g770-main { padding-top: 60px; padding-bottom: 80px; }
@media (max-width: 768px) { .g770-main { padding-bottom: 90px; } }

/* ----- Hero Carousel ----- */
.g770-hero { margin: 1rem 0; }
.g770-carousel {
  position: relative;
  border-radius: var(--g770-radius);
  overflow: hidden;
  box-shadow: var(--g770-shadow);
  background: var(--g770-bg-3);
}
.g770-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.g770-slide.g770-active { display: block; }
.g770-slide img { width: 100%; height: 180px; object-fit: cover; }
.g770-slide .g770-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}
.g770-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.g770-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
}
.g770-dot.g770-active { background: var(--g770-primary-light); width: 20px; border-radius: 4px; }

/* ----- Section titles ----- */
.g770-section { margin: 1.6rem 0; }
.g770-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.g770-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--g770-text-strong);
  margin: 0;
  position: relative;
  padding-left: 0.9rem;
}
.g770-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 4px; border-radius: 3px;
  background: var(--g770-primary);
}
.g770-section-link { font-size: 1.2rem; color: var(--g770-primary-light); font-weight: 600; }

/* ----- Game grid ----- */
.g770-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
@media (min-width: 400px) { .g770-grid { gap: 0.8rem; } }
.g770-card {
  background: var(--g770-bg-2);
  border: 1px solid var(--g770-border);
  border-radius: var(--g770-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--g770-transition), border-color var(--g770-transition);
  display: flex; flex-direction: column;
}
.g770-card:hover { transform: translateY(-3px); border-color: var(--g770-primary); }
.g770-card-img-wrap { position: relative; aspect-ratio: 1/1; background: #0e1722; }
.g770-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.g770-card-tag {
  position: absolute; top: 5px; left: 5px;
  background: var(--g770-primary);
  color: #fff;
  font-size: 0.95rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.g770-card-name {
  padding: 0.5rem 0.4rem;
  font-size: 1.15rem;
  color: var(--g770-text);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g770-card:hover .g770-card-name { color: var(--g770-text-strong); }

/* ----- Category filter row (static) ----- */
.g770-cat-row {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding: 0.2rem 0 0.8rem;
  -webkit-overflow-scrolling: touch;
}
.g770-cat-pill {
  background: var(--g770-bg-3);
  color: var(--g770-text);
  border: 1px solid var(--g770-border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: default;
}

/* ----- Generic info card ----- */
.g770-info-card {
  background: var(--g770-bg-2);
  border: 1px solid var(--g770-border);
  border-radius: var(--g770-radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
}
.g770-info-card h3 { margin: 0 0 0.4rem; font-size: 1.5rem; color: var(--g770-text-strong); }
.g770-info-card p { margin: 0 0 0.5rem; font-size: 1.25rem; color: var(--g770-text); }
.g770-info-card .g770-text-link { color: var(--g770-primary-light); font-weight: 700; }

/* ----- RTP compact table ----- */
.g770-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.g770-rtp-item {
  background: var(--g770-bg-2);
  border: 1px solid var(--g770-border);
  border-radius: var(--g770-radius-sm);
  padding: 0.6rem 0.7rem;
  display: flex; justify-content: space-between; align-items: center;
}
.g770-rtp-name { font-size: 1.15rem; color: var(--g770-text); font-weight: 600; }
.g770-rtp-val { font-size: 1.2rem; color: var(--g770-gold); font-weight: 800; }

/* ----- Features list ----- */
.g770-feature-grid { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
.g770-feature-item {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--g770-bg-2);
  border: 1px solid var(--g770-border);
  border-radius: var(--g770-radius-sm);
  padding: 0.8rem 0.9rem;
}
.g770-feature-icon {
  flex: 0 0 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(178,34,34,0.18);
  border-radius: 8px;
  color: var(--g770-primary-light);
  font-size: 1.8rem;
}
.g770-feature-text h4 { margin: 0 0 0.2rem; font-size: 1.35rem; color: var(--g770-text-strong); }
.g770-feature-text p { margin: 0; font-size: 1.2rem; color: var(--g770-muted); }

/* ----- Testimonials ----- */
.g770-testi {
  background: var(--g770-bg-2);
  border-left: 3px solid var(--g770-primary);
  border-radius: var(--g770-radius-sm);
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
}
.g770-testi p { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--g770-text); }
.g770-testi .g770-testi-meta { font-size: 1.05rem; color: var(--g770-muted); }
.g770-stars { color: var(--g770-gold); font-size: 1.1rem; }

/* ----- Winners ----- */
.g770-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0.7rem;
  background: var(--g770-bg-2);
  border: 1px solid var(--g770-border);
  border-radius: var(--g770-radius-sm);
  margin-bottom: 0.5rem;
}
.g770-winner-name { font-size: 1.2rem; color: var(--g770-text); font-weight: 600; }
.g770-winner-game { font-size: 1.05rem; color: var(--g770-muted); }
.g770-winner-amount { font-size: 1.3rem; color: var(--g770-gold); font-weight: 800; }

/* ----- Payment methods ----- */
.g770-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.g770-pay {
  background: var(--g770-bg-2);
  border: 1px solid var(--g770-border);
  border-radius: var(--g770-radius-sm);
  padding: 0.6rem 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.15rem; font-weight: 600; color: var(--g770-text);
}
.g770-pay i { color: var(--g770-primary-light); }

/* ----- App download CTA ----- */
.g770-app-cta {
  background: linear-gradient(135deg, var(--g770-bg-3), var(--g770-primary-dark));
  border: 1px solid var(--g770-primary);
  border-radius: var(--g770-radius);
  padding: 1.2rem;
  text-align: center;
}
.g770-app-cta h3 { margin: 0 0 0.4rem; color: #fff; font-size: 1.6rem; }
.g770-app-cta p { margin: 0 0 0.9rem; color: var(--g770-text); font-size: 1.2rem; }
.g770-app-cta-buttons { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ----- FAQ accordion ----- */
.g770-faq-item {
  background: var(--g770-bg-2);
  border: 1px solid var(--g770-border);
  border-radius: var(--g770-radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.g770-faq-head {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--g770-text-strong);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.g770-faq-head::after { content: "+"; color: var(--g770-primary-light); font-size: 1.6rem; }
.g770-faq-item.g770-open .g770-faq-head::after { content: "–"; }
.g770-faq-body {
  display: none;
  padding: 0 1rem 0.9rem;
  font-size: 1.2rem;
  color: var(--g770-text);
}
.g770-faq-item.g770-open .g770-faq-body { display: block; }

/* ----- Play Now banner ----- */
.g770-play-banner {
  background: linear-gradient(135deg, var(--g770-primary), var(--g770-primary-dark));
  border-radius: var(--g770-radius);
  padding: 1.2rem;
  text-align: center;
  color: #fff;
  margin: 1.2rem 0;
}
.g770-play-banner h3 { margin: 0 0 0.5rem; font-size: 1.7rem; color: #fff; }
.g770-play-banner p { margin: 0 0 0.9rem; font-size: 1.25rem; color: rgba(255,255,255,0.9); }

/* ----- Footer ----- */
.g770-footer {
  background: var(--g770-bg-2);
  border-top: 1px solid var(--g770-border);
  padding: 1.5rem 1.2rem 2rem;
  margin-top: 1.5rem;
}
.g770-footer-brand { font-size: 1.3rem; color: var(--g770-text); margin-bottom: 0.8rem; }
.g770-footer-brand strong { color: var(--g770-text-strong); }
.g770-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 0.9rem; }
.g770-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem;
  margin: 0.6rem 0 0.9rem;
}
.g770-footer-links a { font-size: 1.15rem; color: var(--g770-muted); }
.g770-footer-links a:hover { color: var(--g770-primary-light); }
.g770-footer-copy {
  font-size: 1.1rem; color: var(--g770-muted);
  border-top: 1px solid var(--g770-border);
  padding-top: 0.8rem; margin-top: 0.5rem;
  text-align: center;
}

/* ----- Bottom Nav ----- */
.g770-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: var(--g770-bg-2);
  border-top: 1px solid var(--g770-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.4);
}
.g770-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g770-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: transform var(--g770-transition), color var(--g770-transition);
}
.g770-nav-btn i, .g770-nav-btn .material-icons-outlined {
  font-size: 24px;
}
.g770-nav-btn:hover { color: var(--g770-text-strong); transform: translateY(-2px); }
.g770-nav-btn:active { transform: scale(0.92); }
.g770-nav-btn span { font-size: 11px; font-weight: 600; }
.g770-nav-btn.g770-current { color: var(--g770-primary-light); }
.g770-nav-btn.g770-current span { color: var(--g770-primary-light); }
.g770-nav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--g770-primary);
  color: #fff;
  font-size: 9px;
  border-radius: 999px;
  padding: 1px 5px;
  font-weight: 700;
}
.g770-nav-btn { position: relative; }
.g770-nav-promo { background: linear-gradient(135deg, var(--g770-primary), var(--g770-primary-dark)); color: #fff; }
.g770-nav-promo i, .g770-nav-promo span { color: #fff; }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g770-bottom-nav { display: none !important; }
  .g770-main { padding-bottom: 40px; }
  .g770-container, .g770-wrapper, .g770-header-inner { max-width: 430px; }
}

/* Desktop nav helper */
.g770-desktop-nav { display: none; }
@media (min-width: 769px) {
  .g770-desktop-nav {
    display: flex; gap: 1rem; justify-content: center;
    margin: 0 auto 1rem; max-width: 700px;
  }
  .g770-desktop-nav a { color: var(--g770-text); font-size: 1.3rem; font-weight: 600; }
}

/* Utility */
.g770-hidden { display: none !important; }
.g770-center { text-align: center; }
.g770-mt { margin-top: 1rem; }
.g770-mb { margin-bottom: 1rem; }
.g770-text-strong { color: var(--g770-text-strong); }
.g770-para { font-size: 1.25rem; color: var(--g770-text); margin: 0 0 0.7rem; }
.g770-list { padding-left: 1.2rem; margin: 0.4rem 0; }
.g770-list li { font-size: 1.2rem; color: var(--g770-text); margin-bottom: 0.4rem; }