/* =========================================================
 * Maya Games - style-328c.css
 * Prefix: g8c9-
 * Palette: #34495E (bg) | #E5E5E5 (text) | #9966CC / #CC99FF (accent)
 * Mobile-first, max-width 430px optimized
 * ========================================================= */

:root {
  --g8c9-bg: #34495E;
  --g8c9-bg-dark: #2c3e50;
  --g8c9-bg-darker: #1f2a36;
  --g8c9-text: #E5E5E5;
  --g8c9-text-dim: #b9c2cc;
  --g8c9-primary: #9966CC;
  --g8c9-accent: #CC99FF;
  --g8c9-gold: #f3c969;
  --g8c9-card-bg: #2f4156;
  --g8c9-border: rgba(204, 153, 255, 0.25);
  --g8c9-radius: 12px;
  --g8c9-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--g8c9-bg);
  color: var(--g8c9-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Header ---------- */
.g8c9-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g8c9-bg-darker), var(--g8c9-bg-dark));
  border-bottom: 1px solid var(--g8c9-border);
  box-shadow: var(--g8c9-shadow);
}
.g8c9-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  min-height: 56px;
}
.g8c9-logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-weight: 700; font-size: 1.7rem; color: var(--g8c9-text);
}
.g8c9-logo img { width: 30px; height: 30px; border-radius: 6px; }
.g8c9-logo .g8c9-logo-text { background: linear-gradient(90deg, var(--g8c9-accent), var(--g8c9-gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.g8c9-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g8c9-menu-toggle {
  background: transparent; border: none; color: var(--g8c9-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem; line-height: 1;
}
.g8c9-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.3rem; border-radius: 30px; border: none;
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.g8c9-btn:active { transform: scale(0.96); }
.g8c9-btn-login { background: transparent; color: var(--g8c9-text); border: 1px solid var(--g8c9-border); }
.g8c9-btn-register { background: linear-gradient(90deg, var(--g8c9-primary), var(--g8c9-accent)); color: #fff; box-shadow: 0 2px 10px rgba(153,102,204,0.5); }
.g8c9-btn-block { display: flex; justify-content: center; width: 100%; padding: 1.1rem; font-size: 1.5rem; border-radius: 30px; }

/* ---------- Mobile menu (slide down) ---------- */
#g8c9-mobile-menu {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 9999;
  background: var(--g8c9-bg-darker);
  border-bottom: 1px solid var(--g8c9-border);
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
#g8c9-mobile-menu.g8c9-menu-open { max-height: 80vh; overflow-y: auto; }
.g8c9-menu-list { list-style: none; padding: 0.5rem 0; }
.g8c9-menu-list li a {
  display: block; padding: 1.1rem 1.6rem; color: var(--g8c9-text);
  border-bottom: 1px solid rgba(204,153,255,0.08); font-size: 1.4rem;
}
.g8c9-menu-list li a:hover, .g8c9-menu-list li a:focus { background: rgba(153,102,204,0.15); color: var(--g8c9-accent); }

/* ---------- Main layout ---------- */
.g8c9-main { padding-top: 64px; padding-bottom: 80px; }

/* ---------- Carousel ---------- */
.g8c9-carousel {
  position: relative; width: 100%; margin: 1.2rem 0; border-radius: var(--g8c9-radius);
  overflow: hidden; box-shadow: var(--g8c9-shadow); aspect-ratio: 16/9; background: #000;
}
.g8c9-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  display: flex; align-items: flex-end;
}
.g8c9-slide img { width: 100%; height: 100%; object-fit: cover; }
.g8c9-slide.g8c9-active { opacity: 1; }
.g8c9-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(31,42,54,0.7); padding: 0.8rem 1rem; border-radius: 8px;
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
}
.g8c9-dots { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 2; }
.g8c9-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; border: none; }
.g8c9-dot.g8c9-dot-active { background: var(--g8c9-accent); width: 20px; border-radius: 4px; }

/* ---------- Section ---------- */
.g8c9-section { margin: 2rem 0; }
.g8c9-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--g8c9-text);
}
.g8c9-section-title::before { content: ""; width: 4px; height: 1.8rem; background: linear-gradient(var(--g8c9-primary), var(--g8c9-accent)); border-radius: 3px; }
.g8c9-section-title a { margin-left: auto; font-size: 1.2rem; font-weight: 500; }

/* ---------- Hero / H1 ---------- */
.g8c9-hero { text-align: center; padding: 1.5rem 0 0.5rem; }
.g8c9-hero h1 {
  font-size: 2.2rem; line-height: 1.3; font-weight: 800; margin-bottom: 0.8rem;
  background: linear-gradient(90deg, var(--g8c9-accent), var(--g8c9-gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.g8c9-hero p { color: var(--g8c9-text-dim); font-size: 1.35rem; margin-bottom: 1.2rem; }
.g8c9-hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Filter chips ---------- */
.g8c9-chips { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.5rem 0 1rem; -webkit-overflow-scrolling: touch; }
.g8c9-chips::-webkit-scrollbar { display: none; }
.g8c9-chip {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 20px;
  background: var(--g8c9-card-bg); color: var(--g8c9-text-dim);
  border: 1px solid var(--g8c9-border); font-size: 1.25rem; cursor: pointer; white-space: nowrap;
}
.g8c9-chip.g8c9-chip-active { background: linear-gradient(90deg, var(--g8c9-primary), var(--g8c9-accent)); color: #fff; border-color: transparent; }

/* ---------- Game grid ---------- */
.g8c9-game-section { margin-bottom: 1.5rem; }
.g8c9-game-section h2 { font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--g8c9-accent); }
.g8c9-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.g8c9-game-card {
  background: var(--g8c9-card-bg); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--g8c9-border); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
}
.g8c9-game-card:active { transform: scale(0.95); }
.g8c9-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.g8c9-game-card .g8c9-game-name { padding: 0.5rem 0.3rem; font-size: 1.1rem; color: var(--g8c9-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Info / feature cards ---------- */
.g8c9-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.g8c9-card {
  background: var(--g8c9-card-bg); border-radius: var(--g8c9-radius); padding: 1.3rem;
  border: 1px solid var(--g8c9-border);
}
.g8c9-card h3 { color: var(--g8c9-accent); font-size: 1.5rem; margin-bottom: 0.6rem; }
.g8c9-card p { color: var(--g8c9-text-dim); font-size: 1.3rem; }
.g8c9-card ul { padding-left: 1.4rem; color: var(--g8c9-text-dim); font-size: 1.3rem; }
.g8c9-card li { margin-bottom: 0.4rem; }

/* ---------- Prominent CTA strip ---------- */
.g8c9-cta-strip {
  background: linear-gradient(135deg, var(--g8c9-primary), var(--g8c9-accent));
  border-radius: var(--g8c9-radius); padding: 1.3rem; text-align: center; margin: 1.5rem 0;
  color: #fff; box-shadow: 0 4px 16px rgba(153,102,204,0.4);
}
.g8c9-cta-strip h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.g8c9-cta-strip p { font-size: 1.3rem; margin-bottom: 1rem; opacity: 0.95; }
.g8c9-cta-strip .g8c9-btn { background: #fff; color: var(--g8c9-primary); }

/* ---------- Testimonials ---------- */
.g8c9-testimonials { display: grid; gap: 0.8rem; }
.g8c9-testimonial { background: var(--g8c9-card-bg); border-radius: var(--g8c9-radius); padding: 1.1rem; border-left: 3px solid var(--g8c9-accent); }
.g8c9-testimonial .g8c9-t-user { font-weight: 600; color: var(--g8c9-accent); font-size: 1.25rem; margin-bottom: 0.3rem; }
.g8c9-testimonial p { color: var(--g8c9-text-dim); font-size: 1.25rem; font-style: italic; }

/* ---------- Payment / winners ---------- */
.g8c9-pay-list, .g8c9-winners { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g8c9-pay-item, .g8c9-winner {
  background: var(--g8c9-card-bg); border-radius: 8px; padding: 0.6rem 1rem;
  border: 1px solid var(--g8c9-border); font-size: 1.2rem;
}
.g8c9-winner b { color: var(--g8c9-gold); }

/* ---------- FAQ ---------- */
.g8c9-faq-item { background: var(--g8c9-card-bg); border-radius: 10px; margin-bottom: 0.7rem; border: 1px solid var(--g8c9-border); overflow: hidden; }
.g8c9-faq-q { padding: 1rem 1.2rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--g8c9-text); }
.g8c9-faq-a { padding: 0 1.2rem 1rem; color: var(--g8c9-text-dim); font-size: 1.3rem; }

/* ---------- Content prose / SEO text ---------- */
.g8c9-prose { color: var(--g8c9-text-dim); font-size: 1.3rem; line-height: 1.7; }
.g8c9-prose h2 { color: var(--g8c9-accent); font-size: 1.6rem; margin: 1.2rem 0 0.6rem; }
.g8c9-prose h3 { color: var(--g8c9-gold); font-size: 1.4rem; margin: 1rem 0 0.4rem; }
.g8c9-prose p { margin-bottom: 0.8rem; }
.g8c9-prose a { color: var(--g8c9-accent); text-decoration: underline; }

/* ---------- Footer ---------- */
.g8c9-footer {
  background: var(--g8c9-bg-darker); border-top: 1px solid var(--g8c9-border);
  padding: 2rem 0 5.5rem; margin-top: 2rem;
}
.g8c9-footer-brand { color: var(--g8c9-text-dim); font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.6; }
.g8c9-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; margin-bottom: 1.2rem; }
.g8c9-footer-links a { color: var(--g8c9-text-dim); font-size: 1.2rem; }
.g8c9-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.g8c9-footer-copy { color: var(--g8c9-text-dim); font-size: 1.15rem; border-top: 1px solid rgba(204,153,255,0.1); padding-top: 1rem; }

/* ---------- Bottom nav ---------- */
.g8c9-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--g8c9-bg-dark), var(--g8c9-bg-darker));
  border-top: 1px solid var(--g8c9-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 60px; box-shadow: 0 -3px 14px rgba(0,0,0,0.4);
}
.g8c9-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--g8c9-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; font-size: 1rem; transition: color 0.15s, transform 0.15s;
}
.g8c9-nav-btn .g8c9-nav-icon { font-size: 22px; line-height: 1; }
.g8c9-nav-btn .g8c9-nav-label { font-size: 1rem; }
.g8c9-nav-btn:active { transform: scale(0.92); }
.g8c9-nav-btn.g8c9-nav-active { color: var(--g8c9-accent); }
.g8c9-nav-btn.g8c9-nav-promo { color: var(--g8c9-gold); }

/* ---------- Back to top ---------- */
#g8c9-back-top {
  position: fixed; right: 1rem; bottom: 76px; z-index: 1001;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g8c9-primary), var(--g8c9-accent));
  color: #fff; border: none; cursor: pointer; font-size: 1.8rem;
  display: none; align-items: center; justify-content: center; box-shadow: var(--g8c9-shadow);
}
#g8c9-back-top.g8c9-back-show { display: flex; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .g8c9-bottom-nav { display: none; }
  .g8c9-menu-toggle { display: none; }
  .g8c9-container, .g8c9-header-inner, .g8c9-footer { max-width: 960px; }
  .g8c9-grid { grid-template-columns: repeat(6, 1fr); }
  .g8c9-cards { grid-template-columns: repeat(2, 1fr); }
  .g8c9-footer { padding-bottom: 2rem; }
  .g8c9-main { padding-bottom: 2rem; }
}

@media (min-width: 431px) and (max-width: 768px) {
  .g8c9-grid { grid-template-columns: repeat(4, 1fr); }
  .g8c9-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Hidden utility */
.g8c9-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
