/* ============================================================
 * jili app - theme-c264 stylesheet
 * Every selector carries the g644- prefix for isolation.
 * Palette: #262626 (bg), #880E4F (brand), #CD853F (gold),
 * #DEB887 (soft gold), #E9ECEF (text on dark).
 * ============================================================ */
:root {
  --g644-bg: #262626;
  --g644-bg-elev: #303030;
  --g644-surface: #3a2c2c;
  --g644-primary: #880E4F;
  --g644-primary-soft: #b02372;
  --g644-gold: #CD853F;
  --g644-gold-soft: #DEB887;
  --g644-text: #E9ECEF;
  --g644-muted: #b7a9a9;
  --g644-border: rgba(205, 133, 63, 0.28);
  --g644-radius: 14px;
  --g644-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --g644-header-h: 60px;
  --g644-bottom-nav-h: 62px;
}
* { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #1f1414 0%, var(--g644-bg) 60%);
  color: var(--g644-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 1.55rem;
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--g644-gold-soft); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }

.g644-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.4rem; }
@media (min-width: 769px) { .g644-container { max-width: 960px; padding: 0 2.4rem; } }

/* ---------- Header ---------- */
.g644-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--g644-header-h); z-index: 1000;
  background: linear-gradient(120deg, rgba(38, 38, 38, 0.96), rgba(136, 14, 79, 0.86));
  border-bottom: 1px solid var(--g644-border);
  backdrop-filter: blur(10px);
}
.g644-header-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  max-width: 430px; margin: 0 auto; padding: 0 1.2rem;
}
@media (min-width: 769px) { .g644-header-inner { max-width: 960px; padding: 0 2rem; } }
.g644-logo {
  display: flex; align-items: center; gap: 0.7rem;
  color: #fff; font-weight: 700; font-size: 1.7rem; letter-spacing: 0.4px;
}
.g644-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g644-logo span b { color: var(--g644-gold-soft); }

.g644-actions { display: flex; align-items: center; gap: 0.5rem; }
.g644-btn {
  border: none; cursor: pointer; font-weight: 700; font-size: 1.25rem;
  padding: 0.75rem 1.2rem; border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: inherit; display: inline-flex; align-items: center; gap: 0.4rem;
}
.g644-btn-primary {
  background: linear-gradient(135deg, var(--g644-gold), var(--g644-primary));
  color: #fff; box-shadow: 0 6px 18px rgba(136, 14, 79, 0.35);
}
.g644-btn-ghost { background: transparent; border: 1px solid var(--g644-gold-soft); color: var(--g644-gold-soft); }
.g644-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.4); }
.g644-btn:active { transform: translateY(0); }
.g644-menu-btn { background: transparent; border: none; color: #fff; font-size: 2rem; cursor: pointer; padding: 0.5rem; }

/* ---------- Mobile menu drawer ---------- */
.g644-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100%;
  background: var(--g644-bg-elev); z-index: 9999; padding: 2rem 1.4rem;
  transition: right 0.3s ease; overflow-y: auto;
}
.g644-menu-open { right: 0; }
.g644-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 9998;
}
.g644-backdrop-visible { opacity: 1; visibility: visible; }
.g644-menu-close { background: transparent; border: none; color: #fff; font-size: 2rem; cursor: pointer; margin-bottom: 1rem; }
.g644-menu-link {
  display: block; padding: 1rem 0.8rem; color: var(--g644-text);
  border-bottom: 1px solid var(--g644-border); font-weight: 600;
}
.g644-menu-link:hover { background: rgba(205, 133, 63, 0.15); color: #fff; }

/* ---------- Main / hero ---------- */
main { padding-top: calc(var(--g644-header-h) + 1.2rem); }
@media (max-width: 768px) { main { padding-bottom: calc(var(--g644-bottom-nav-h) + 1.4rem); } }

.g644-carousel {
  position: relative; border-radius: var(--g644-radius);
  overflow: hidden; box-shadow: var(--g644-shadow); margin-bottom: 2rem;
}
.g644-slide { position: relative; display: none; cursor: pointer; }
.g644-slide-active { display: block; }
.g644-slide img { width: 100%; height: 170px; object-fit: cover; }
.g644-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  background: linear-gradient(to top, rgba(38, 38, 38, 0.92), transparent); color: #fff;
}
.g644-slide-overlay h2 { margin: 0 0 0.3rem; font-size: 1.7rem; }
.g644-slide-overlay p { margin: 0; font-size: 1.25rem; color: var(--g644-gold-soft); }

.g644-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.g644-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; border: none; }
.g644-dot-active { background: var(--g644-gold); width: 18px; border-radius: 4px; }

/* ---------- Headings ---------- */
.g644-section { margin: 2rem 0; }
.g644-section-title {
  font-size: 1.8rem; margin: 0 0 1rem; display: flex; align-items: center;
  gap: 0.6rem; color: #fff;
}
.g644-section-title::before {
  content: ""; width: 4px; height: 18px;
  background: linear-gradient(to bottom, var(--g644-gold), var(--g644-primary)); border-radius: 4px;
}
.g644-h1 { font-size: 2.1rem; line-height: 1.4; margin: 0 0 1rem; color: #fff; }
.g644-h1 b { color: var(--g644-gold-soft); }
.g644-lead { color: var(--g644-muted); font-size: 1.4rem; margin-bottom: 1.5rem; }

/* ---------- Game grid ---------- */
.g644-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
@media (min-width: 769px) { .g644-game-grid { grid-template-columns: repeat(6, 1fr); } }
.g644-game-card {
  background: var(--g644-bg-elev); border: 1px solid var(--g644-border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.g644-game-card:hover { transform: translateY(-3px); border-color: var(--g644-gold); }
.g644-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #111; }
.g644-game-name {
  padding: 0.45rem 0.4rem; font-size: 1.15rem; text-align: center; color: var(--g644-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}

/* ---------- Cards / generic ---------- */
.g644-card {
  background: linear-gradient(140deg, rgba(136, 14, 79, 0.18), rgba(205, 133, 63, 0.08));
  border: 1px solid var(--g644-border); border-radius: var(--g644-radius);
  padding: 1.4rem; margin-bottom: 1.2rem;
}
.g644-card h2, .g644-card h3 { margin-top: 0; }
.g644-card h2 { color: var(--g644-gold-soft); font-size: 1.7rem; }
.g644-card h3 { color: #fff; font-size: 1.45rem; margin-bottom: 0.4rem; }
.g644-card p { color: var(--g644-muted); margin: 0 0 0.8rem; }
.g644-card a { color: var(--g644-gold); font-weight: 700; }
.g644-list { padding-left: 1.2rem; margin: 0.5rem 0; color: var(--g644-text); }
.g644-list li { margin-bottom: 0.45rem; }

/* ---------- FAQ ---------- */
.g644-faq-item { border-bottom: 1px dashed var(--g644-border); padding: 0.9rem 0; }
.g644-faq-q { font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.g644-faq-a { color: var(--g644-muted); font-size: 1.3rem; }

/* ---------- Stats ---------- */
.g644-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 1rem 0; }
.g644-stat {
  background: var(--g644-bg-elev); padding: 1rem; border-radius: 10px;
  border-left: 3px solid var(--g644-gold); text-align: center;
}
.g644-stat b { display: block; color: var(--g644-gold-soft); font-size: 1.7rem; }
.g644-stat span { color: var(--g644-muted); font-size: 1.15rem; }

/* ---------- Testimonials ---------- */
.g644-testimonials { display: grid; gap: 0.8rem; }
.g644-testimonial { background: var(--g644-bg-elev); border-left: 3px solid var(--g644-primary); padding: 0.9rem 1rem; border-radius: 8px; }
.g644-testimonial b { color: var(--g644-gold-soft); }
.g644-testimonial p { margin: 0.3rem 0 0; font-size: 1.3rem; color: var(--g644-text); }

/* ---------- Payments ---------- */
.g644-payments { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.g644-pay {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--g644-bg-elev); border: 1px solid var(--g644-border);
  padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 1.15rem; color: var(--g644-text);
}

/* ---------- Winners ---------- */
.g644-winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.g644-winner { background: var(--g644-bg-elev); padding: 0.7rem; border-radius: 8px; font-size: 1.2rem; }
.g644-winner b { color: var(--g644-gold-soft); }

/* ---------- CTA banner ---------- */
.g644-cta {
  background: linear-gradient(135deg, var(--g644-primary), var(--g644-gold));
  color: #fff; border-radius: var(--g644-radius); padding: 1.6rem;
  text-align: center; margin: 1.5rem 0; box-shadow: var(--g644-shadow);
}
.g644-cta h2 { margin: 0 0 0.5rem; color: #fff; font-size: 1.9rem; }
.g644-cta p { margin: 0 0 1rem; color: rgba(255,255,255,0.9); }
.g644-cta .g644-btn { background: #fff; color: var(--g644-primary); }

/* ---------- Footer ---------- */
.g644-footer { background: #1a1111; border-top: 1px solid var(--g644-border); padding: 2rem 0 1.2rem; margin-top: 2rem; }
.g644-footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 769px) { .g644-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.g644-footer h4 { color: var(--g644-gold-soft); margin: 0 0 0.5rem; font-size: 1.3rem; }
.g644-footer a { display: block; padding: 0.3rem 0; color: var(--g644-muted); font-size: 1.2rem; }
.g644-footer a:hover { color: #fff; }
.g644-footer-brand p { color: var(--g644-muted); font-size: 1.25rem; }
.g644-footer-bottom {
  text-align: center; margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--g644-border); color: var(--g644-muted); font-size: 1.15rem;
}

/* ---------- Bottom nav ---------- */
.g644-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--g644-bottom-nav-h);
  background: linear-gradient(180deg, rgba(38,38,38,0.98), #160c0c);
  border-top: 1px solid var(--g644-border);
  display: flex; justify-content: space-around; align-items: center; z-index: 1000;
}
@media (min-width: 769px) { .g644-bottom-nav { display: none; } }
.g644-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; background: transparent; border: none;
  color: var(--g644-muted); font-size: 1.05rem; cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease; text-decoration: none; position: relative;
}
.g644-bottom-nav-btn i,
.g644-bottom-nav-btn .material-icons-outlined,
.g644-bottom-nav-btn ion-icon { font-size: 22px; }
.g644-bottom-nav-btn ion-icon { width: 22px; height: 22px; }
.g644-bottom-nav-btn:hover { color: var(--g644-gold-soft); transform: translateY(-1px); }
.g644-bottom-nav-active { color: var(--g644-gold); }
.g644-bottom-nav-active::after {
  content: ""; position: absolute; top: 0; width: 24px; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--g644-gold);
}

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

/* ---------- Misc ---------- */
.g644-text-gold { color: var(--g644-gold); font-weight: 700; }
.g644-text-primary { color: var(--g644-primary-soft); font-weight: 700; }
.g644-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.g644-divider { height: 1px; background: var(--g644-border); margin: 1.2rem 0; }
