/* =====================================================================
   lucky taya - core stylesheet (prefix: g8c5-)
   Palette: #0000FF | #1B263B | #F0F8FF | #4169E1 | #FFC0CB
   Mobile-first. Dark backgrounds, light text.
   ===================================================================== */

:root {
  --g8c5-primary: #4169E1;
  --g8c5-accent: #0000FF;
  --g8c5-bg: #1B263B;
  --g8c5-bg-deep: #111a2b;
  --g8c5-bg-soft: #243049;
  --g8c5-text: #F0F8FF;
  --g8c5-text-muted: #aebbd2;
  --g8c5-pink: #FFC0CB;
  --g8c5-gold: #ffd479;
  --g8c5-success: #2fd07a;
  --g8c5-radius: 14px;
  --g8c5-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--g8c5-bg);
  color: var(--g8c5-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: var(--g8c5-pink); text-decoration: none; }
a:hover { color: var(--g8c5-gold); }

.g8c5-container { width: 100%; padding: 0 14px; }
.g8c5-wrapper { max-width: 430px; margin: 0 auto; padding: 0 14px; }

/* ---------- Header ---------- */
.g8c5-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1B263B 0%, #4169E1 110%);
  border-bottom: 2px solid rgba(240, 248, 255, 0.12);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.g8c5-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--g8c5-text); font-weight: 800; font-size: 1.7rem;
  letter-spacing: 0.3px;
}
.g8c5-logo img { width: 30px; height: 30px; border-radius: 8px; }
.g8c5-logo span { color: var(--g8c5-gold); }

.g8c5-header-actions { display: flex; align-items: center; gap: 8px; }
.g8c5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; font-size: 1.3rem; font-weight: 700;
  border: none; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s;
  min-height: 36px; line-height: 1;
}
.g8c5-btn:hover { transform: translateY(-1px); }
.g8c5-btn-primary {
  background: linear-gradient(135deg, #FFC0CB 0%, #ffd479 100%);
  color: #1B263B;
  box-shadow: 0 4px 14px rgba(255, 196, 203, 0.4);
}
.g8c5-btn-ghost {
  background: rgba(240, 248, 255, 0.08);
  color: var(--g8c5-text);
  border: 1px solid rgba(240, 248, 255, 0.25);
}
.g8c5-menu-toggle {
  background: transparent; border: none; color: var(--g8c5-text);
  font-size: 2rem; cursor: pointer; padding: 4px 8px; min-width: 44px; min-height: 44px;
}

/* ---------- Mobile Menu ---------- */
.g8c5-mobile-menu {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(17, 26, 43, 0.97);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 70px 18px 30px;
  overflow-y: auto;
}
.g8c5-mobile-menu.g8c5-menu-open { transform: translateX(0); }
.g8c5-mobile-menu h3 { color: var(--g8c5-gold); font-size: 1.5rem; margin: 18px 0 8px; }
.g8c5-mobile-menu a {
  display: block; padding: 12px 12px; border-radius: 10px;
  color: var(--g8c5-text); font-size: 1.5rem; border-bottom: 1px solid rgba(240,248,255,0.08);
}
.g8c5-mobile-menu a:hover { background: rgba(65, 105, 225, 0.18); color: var(--g8c5-pink); }
.g8c5-menu-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--g8c5-primary); color: var(--g8c5-text);
  border: none; border-radius: 50%; width: 40px; height: 40px;
  font-size: 1.8rem; cursor: pointer;
}

/* ---------- Hero / Carousel ---------- */
.g8c5-hero {
  position: relative; overflow: hidden;
  border-radius: 0 0 18px 18px;
}
.g8c5-hero-track { position: relative; height: 220px; }
.g8c5-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease;
  display: flex; align-items: flex-end;
}
.g8c5-hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g8c5-hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(17,26,43,0.85) 100%);
}
.g8c5-hero-caption {
  position: relative; z-index: 2; padding: 14px; color: var(--g8c5-text);
  width: 100%;
}
.g8c5-hero-caption h2 { font-size: 1.9rem; color: var(--g8c5-gold); margin-bottom: 4px; }
.g8c5-hero-caption p { font-size: 1.3rem; color: var(--g8c5-text-muted); margin-bottom: 8px; }
.g8c5-hero-slide.g8c5-slide-active { opacity: 1; }
.g8c5-hero-dots {
  position: absolute; bottom: 8px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 6px;
}
.g8c5-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(240,248,255,0.4); cursor: pointer;
}
.g8c5-hero-dot.g8c5-dot-active { background: var(--g8c5-pink); width: 18px; border-radius: 5px; }

/* ---------- Section base ---------- */
.g8c5-section { padding: 22px 14px; }
.g8c5-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.g8c5-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--g8c5-text);
  border-left: 4px solid var(--g8c5-pink); padding-left: 10px;
}
.g8c5-section-title em { color: var(--g8c5-pink); font-style: normal; }
.g8c5-section-link { font-size: 1.3rem; color: var(--g8c5-gold); }

/* ---------- Filter chips ---------- */
.g8c5-filter-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.g8c5-filter-row::-webkit-scrollbar { display: none; }
.g8c5-filter-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: var(--g8c5-bg-soft); color: var(--g8c5-text);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(240,248,255,0.1);
}
.g8c5-filter-chip.g8c5-chip-active {
  background: var(--g8c5-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(65,105,225,0.4);
}

/* ---------- Game grid ---------- */
.g8c5-game-group { margin-bottom: 26px; }
.g8c5-group-title {
  font-size: 1.55rem; color: var(--g8c5-gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.g8c5-group-title i { color: var(--g8c5-pink); }
.g8c5-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.g8c5-card {
  background: var(--g8c5-bg-soft); border-radius: 12px; overflow: hidden;
  cursor: pointer; position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid rgba(240,248,255,0.06);
}
.g8c5-card:hover { transform: translateY(-3px); box-shadow: var(--g8c5-shadow); }
.g8c5-card-img { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.g8c5-card-img img { width: 100%; height: 100%; object-fit: cover; }
.g8c5-card-name {
  padding: 8px 8px 10px; font-size: 1.2rem; text-align: center;
  color: var(--g8c5-text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g8c5-card-tag {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: rgba(255, 12, 60, 0.92); color: #fff;
  font-size: 1rem; padding: 2px 7px; border-radius: 5px; font-weight: 700;
}
.g8c5-card-tag.g8c5-tag-hot { background: #ff3d57; }
.g8c5-card-tag.g8c5-tag-new { background: var(--g8c5-success); }

/* ---------- Promo CTA strip ---------- */
.g8c5-promo-strip {
  background: linear-gradient(135deg, #4169E1 0%, #0000FF 100%);
  border-radius: 14px; padding: 18px; margin: 18px 14px;
  color: #fff; position: relative; overflow: hidden;
}
.g8c5-promo-strip h3 { font-size: 1.7rem; margin-bottom: 6px; color: var(--g8c5-gold); }
.g8c5-promo-strip p { font-size: 1.3rem; color: rgba(255,255,255,0.92); margin-bottom: 12px; }

/* ---------- Info / Feature cards ---------- */
.g8c5-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.g8c5-feature {
  background: var(--g8c5-bg-soft); border-radius: 12px; padding: 14px;
  border: 1px solid rgba(240,248,255,0.06);
}
.g8c5-feature i { font-size: 2.4rem; color: var(--g8c5-pink); margin-bottom: 8px; }
.g8c5-feature h4 { font-size: 1.4rem; margin-bottom: 6px; color: var(--g8c5-text); }
.g8c5-feature p { font-size: 1.25rem; color: var(--g8c5-text-muted); line-height: 1.45rem; }

/* ---------- Testimonial ---------- */
.g8c5-testimonials { display: grid; gap: 10px; }
.g8c5-testimonial {
  background: var(--g8c5-bg-soft); border-radius: 12px; padding: 14px;
  border-left: 3px solid var(--g8c5-pink);
}
.g8c5-testimonial-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.g8c5-testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #4169E1, #FFC0CB);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}
.g8c5-testimonial-name { font-size: 1.35rem; font-weight: 700; color: var(--g8c5-text); }
.g8c5-testimonial-stars { color: var(--g8c5-gold); font-size: 1.2rem; }
.g8c5-testimonial p { font-size: 1.3rem; color: var(--g8c5-text-muted); }

/* ---------- FAQ ---------- */
.g8c5-faq-item {
  background: var(--g8c5-bg-soft); border-radius: 10px; margin-bottom: 10px;
  overflow: hidden; border: 1px solid rgba(240,248,255,0.06);
}
.g8c5-faq-q {
  padding: 14px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-weight: 700; font-size: 1.4rem; color: var(--g8c5-text);
}
.g8c5-faq-q i { color: var(--g8c5-pink); transition: transform 0.2s; }
.g8c5-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px; color: var(--g8c5-text-muted); font-size: 1.3rem;
}
.g8c5-faq-open .g8c5-faq-a { max-height: 320px; padding: 0 14px 14px; }
.g8c5-faq-open .g8c5-faq-q i { transform: rotate(45deg); }

/* ---------- Winners showcase ---------- */
.g8c5-winners {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.g8c5-winner {
  background: var(--g8c5-bg-soft); border-radius: 10px; padding: 10px;
  border: 1px solid rgba(240,248,255,0.05);
}
.g8c5-winner-name { font-size: 1.25rem; color: var(--g8c5-text); font-weight: 700; }
.g8c5-winner-amount { font-size: 1.5rem; color: var(--g8c5-success); font-weight: 800; }
.g8c5-winner-game { font-size: 1.15rem; color: var(--g8c5-text-muted); }

/* ---------- Payment methods ---------- */
.g8c5-pay-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.g8c5-pay-pill {
  background: var(--g8c5-bg-soft); padding: 10px 14px; border-radius: 999px;
  font-size: 1.25rem; color: var(--g8c5-text); font-weight: 600;
  border: 1px solid rgba(240,248,255,0.08);
  display: flex; align-items: center; gap: 6px;
}
.g8c5-pay-pill i { color: var(--g8c5-pink); }

/* ---------- Tabs ---------- */
.g8c5-tab-row { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; }
.g8c5-tab-btn {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 8px; background: var(--g8c5-bg-soft);
  color: var(--g8c5-text-muted); font-size: 1.3rem; cursor: pointer; border: 1px solid transparent;
}
.g8c5-tab-btn.g8c5-tab-btn-active { background: var(--g8c5-primary); color: #fff; }
.g8c5-tab-panel { display: none; }
.g8c5-tab-panel.g8c5-tab-active { display: block; }

/* ---------- SEO text block ---------- */
.g8c5-seo-text {
  background: var(--g8c5-bg-deep); padding: 18px; border-radius: 14px;
  color: var(--g8c5-text-muted); font-size: 1.3rem; line-height: 1.7rem;
}
.g8c5-seo-text h2, .g8c5-seo-text h3 { color: var(--g8c5-text); margin: 12px 0 6px; }
.g8c5-seo-text p { margin-bottom: 10px; }
.g8c5-seo-text a { color: var(--g8c5-pink); }
.g8c5-seo-text strong { color: var(--g8c5-gold); }

/* ---------- Footer ---------- */
.g8c5-footer {
  background: var(--g8c5-bg-deep);
  padding: 26px 14px 100px; margin-top: 24px;
  border-top: 2px solid rgba(65,105,225,0.3);
}
.g8c5-footer-brand { font-size: 1.8rem; font-weight: 800; color: var(--g8c5-gold); margin-bottom: 6px; }
.g8c5-footer-desc { font-size: 1.3rem; color: var(--g8c5-text-muted); margin-bottom: 14px; }
.g8c5-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px;
}
.g8c5-footer-links a {
  color: var(--g8c5-text); font-size: 1.25rem; padding: 6px 4px;
  border-bottom: 1px solid rgba(240,248,255,0.06);
}
.g8c5-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0;
}
.g8c5-footer-promos button {
  flex: 1 1 40%; padding: 10px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, #FFC0CB, #ffd479);
  color: #1B263B; font-weight: 700; font-size: 1.25rem; cursor: pointer;
}
.g8c5-footer-copy {
  font-size: 1.15rem; color: var(--g8c5-text-muted); text-align: center;
  border-top: 1px solid rgba(240,248,255,0.06); padding-top: 14px;
}

/* ---------- Bottom nav ---------- */
.g8c5-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, #243049 0%, #111a2b 100%);
  border-top: 2px solid rgba(65,105,225,0.5);
  height: 64px;
  max-width: 430px; margin: 0 auto;
}
.g8c5-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--g8c5-text-muted); cursor: pointer;
  background: transparent; border: none; min-width: 60px; min-height: 60px;
  font-size: 1rem; transition: color 0.18s, transform 0.18s;
}
.g8c5-bottom-nav-btn i, .g8c5-bottom-nav-btn .material-icons-outlined {
  font-size: 22px;
}
.g8c5-bottom-nav-btn:hover { color: var(--g8c5-pink); transform: translateY(-2px); }
.g8c5-bottom-nav-btn.g8c5-nav-active { color: var(--g8c5-pink); }
.g8c5-bottom-nav-btn.g8c5-nav-promo {
  color: var(--g8c5-gold);
}

/* ---------- Mobile-specific padding ---------- */
@media (max-width: 768px) {
  main, .g8c5-main { padding-bottom: 80px; }
}

/* ---------- Desktop: hide bottom nav, widen layout ---------- */
@media (min-width: 769px) {
  body { max-width: 960px; }
  .g8c5-bottom-nav { display: none; }
  .g8c5-footer { padding-bottom: 36px; }
  .g8c5-grid { grid-template-columns: repeat(5, 1fr); }
  .g8c5-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .g8c5-winners { grid-template-columns: repeat(4, 1fr); }
  .g8c5-hero-track { height: 320px; }
  .g8c5-wrapper, .g8c5-container { max-width: 960px; }
}

/* ---------- Helpers ---------- */
.g8c5-text-pink { color: var(--g8c5-pink); }
.g8c5-text-gold { color: var(--g8c5-gold); }
.g8c5-divider { height: 1px; background: rgba(240,248,255,0.08); margin: 16px 0; }
.g8c5-hidden { display: none !important; }
