/* ============================================================
   ga 67 - Core Stylesheet (basefiles)
   Class prefix: pg9a-
   Palette: #262626 (bg) | #66CDAA (primary) | #3CB371 (accent) | #999999 (muted)
   Mobile-first, max-width 430px.
   ============================================================ */

:root {
  --pg9a-bg: #262626;
  --pg9a-bg-2: #1d1d1d;
  --pg9a-bg-3: #303030;
  --pg9a-primary: #66CDAA;
  --pg9a-accent: #3CB371;
  --pg9a-muted: #999999;
  --pg9a-text: #f4f4f4;
  --pg9a-text-dim: #cfcfcf;
  --pg9a-radius: 12px;
  --pg9a-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

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

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

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

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

a { color: var(--pg9a-primary); text-decoration: none; }
a:hover { color: var(--pg9a-accent); }

/* ---------- Header ---------- */
.pg9a-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--pg9a-bg-2);
  border-bottom: 2px solid var(--pg9a-primary);
  max-width: 430px;
  margin: 0 auto;
}
.pg9a-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.8rem;
}
.pg9a-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.pg9a-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg9a-logo-text { font-weight: 700; font-size: 1.5rem; color: var(--pg9a-primary); white-space: nowrap; }
.pg9a-menu-toggle {
  background: transparent;
  border: 1px solid var(--pg9a-muted);
  color: var(--pg9a-text);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pg9a-header-actions { display: flex; gap: 0.5rem; }
.pg9a-btn {
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.pg9a-btn:active { transform: scale(0.95); }
.pg9a-btn-login { background: transparent; color: var(--pg9a-primary); border: 1px solid var(--pg9a-primary); }
.pg9a-btn-register { background: linear-gradient(135deg, var(--pg9a-primary), var(--pg9a-accent)); color: #0f2a22; }

/* ---------- Mobile menu ---------- */
.pg9a-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--pg9a-bg-3);
  transition: max-height 0.3s ease;
}
.pg9a-mobile-menu.pg9a-menu-open { max-height: 480px; }
.pg9a-mobile-menu ul { list-style: none; padding: 0.4rem 1rem; }
.pg9a-mobile-menu li { border-bottom: 1px solid #3a3a3a; }
.pg9a-mobile-menu li:last-child { border-bottom: none; }
.pg9a-mobile-menu a {
  display: block;
  padding: 1rem 0.4rem;
  color: var(--pg9a-text-dim);
  font-size: 1.35rem;
}
.pg9a-mobile-menu a:hover { color: var(--pg9a-primary); padding-left: 1rem; }

/* ---------- Layout ---------- */
.pg9a-main { padding-top: 64px; padding-bottom: 80px; }
.pg9a-section { padding: 1.6rem 1.2rem; }
.pg9a-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pg9a-primary);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--pg9a-accent);
  padding-left: 0.8rem;
}
.pg9a-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg9a-text);
  margin: 1rem 0 0.6rem;
  line-height: 1.3;
}
.pg9a-lead { color: var(--pg9a-text-dim); margin-bottom: 1rem; }

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

/* ---------- Promo banner ---------- */
.pg9a-promo-banner {
  background: linear-gradient(135deg, #1f4d40, var(--pg9a-accent));
  border-radius: var(--pg9a-radius);
  padding: 1.2rem;
  margin: 1rem 0;
  text-align: center;
}
.pg9a-promo-banner h2 { color: #fff; font-size: 1.6rem; margin-bottom: 0.4rem; }
.pg9a-promo-banner p { color: #eafff5; font-size: 1.25rem; margin-bottom: 0.8rem; }
.pg9a-promo-btn {
  display: inline-block;
  background: #fff;
  color: var(--pg9a-accent);
  font-weight: 800;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
}

/* ---------- Game grid ---------- */
.pg9a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pg9a-game-card {
  background: var(--pg9a-bg-3);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.pg9a-game-card:hover { transform: translateY(-3px); box-shadow: var(--pg9a-shadow); }
.pg9a-game-card img { width: 100%; height: 70px; object-fit: cover; border-radius: 8px; }
.pg9a-game-name {
  font-size: 1.1rem;
  color: var(--pg9a-text);
  margin-top: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards / info blocks ---------- */
.pg9a-card {
  background: var(--pg9a-bg-3);
  border-radius: var(--pg9a-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.pg9a-card h3 { color: var(--pg9a-primary); font-size: 1.4rem; margin-bottom: 0.5rem; }
.pg9a-card p { color: var(--pg9a-text-dim); font-size: 1.25rem; }
.pg9a-card ul { padding-left: 1.4rem; color: var(--pg9a-text-dim); }
.pg9a-card li { margin-bottom: 0.3rem; }

/* ---------- Feature / stat rows ---------- */
.pg9a-feature-row {
  display: flex; gap: 0.8rem; align-items: flex-start;
  margin-bottom: 0.8rem;
}
.pg9a-feature-row .pg9a-ico {
  flex: 0 0 36px; height: 36px; border-radius: 8px;
  background: rgba(102,205,170,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--pg9a-primary);
}
.pg9a-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; }
.pg9a-stat {
  background: var(--pg9a-bg-3); border-radius: 10px; padding: 0.8rem; text-align: center;
}
.pg9a-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--pg9a-primary); }
.pg9a-stat-label { font-size: 1.1rem; color: var(--pg9a-muted); }

/* ---------- Testimonials ---------- */
.pg9a-testimonial {
  background: var(--pg9a-bg-3); border-left: 3px solid var(--pg9a-primary);
  border-radius: 8px; padding: 0.9rem; margin-bottom: 0.8rem;
}
.pg9a-testimonial .pg9a-tname { color: var(--pg9a-accent); font-weight: 700; font-size: 1.2rem; }
.pg9a-testimonial .pg9a-ttext { color: var(--pg9a-text-dim); font-size: 1.2rem; margin-top: 0.2rem; }

/* ---------- Winners ---------- */
.pg9a-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--pg9a-bg-3); border-radius: 8px; padding: 0.7rem 1rem; margin-bottom: 0.5rem;
}
.pg9a-winner .pg9a-wname { color: var(--pg9a-text); font-weight: 600; }
.pg9a-winner .pg9a-wamt { color: var(--pg9a-primary); font-weight: 800; }

/* ---------- Payment chips ---------- */
.pg9a-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg9a-chip {
  background: var(--pg9a-bg-3); border: 1px solid #3a3a3a;
  border-radius: 20px; padding: 0.4rem 1rem;
  font-size: 1.15rem; color: var(--pg9a-text-dim);
}

/* ---------- CTA ---------- */
.pg9a-cta {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--pg9a-primary), var(--pg9a-accent));
  color: #0f2a22; font-weight: 800; font-size: 1.5rem;
  padding: 1rem; border-radius: var(--pg9a-radius); margin: 1rem 0;
}
.pg9a-text-link { color: var(--pg9a-primary); font-weight: 700; border-bottom: 1px dotted var(--pg9a-primary); }

/* ---------- Footer ---------- */
.pg9a-footer {
  background: var(--pg9a-bg-2);
  border-top: 2px solid var(--pg9a-primary);
  padding: 1.4rem 1.2rem 2rem;
}
.pg9a-footer-about { color: var(--pg9a-text-dim); font-size: 1.2rem; margin-bottom: 1rem; }
.pg9a-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.pg9a-footer-links a { color: var(--pg9a-muted); font-size: 1.15rem; }
.pg9a-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pg9a-footer-promo button {
  background: var(--pg9a-bg-3); color: var(--pg9a-primary);
  border: 1px solid var(--pg9a-primary); border-radius: 6px;
  padding: 0.4rem 0.8rem; font-size: 1.15rem; cursor: pointer;
}
.pg9a-footer-copy { color: var(--pg9a-muted); font-size: 1.1rem; border-top: 1px solid #3a3a3a; padding-top: 0.8rem; }

/* ---------- Bottom navigation ---------- */
.pg9a-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: var(--pg9a-bg-2);
  border-top: 2px solid var(--pg9a-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.pg9a-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg9a-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pg9a-bottomnav-btn:active { transform: scale(0.92); }
.pg9a-bottomnav-btn .pg9a-nav-ico { font-size: 22px; line-height: 1; }
.pg9a-bottomnav-btn .pg9a-nav-label { font-size: 1rem; }
.pg9a-bottomnav-btn.pg9a-nav-active { color: var(--pg9a-primary); }
.pg9a-bottomnav-btn.pg9a-nav-active .pg9a-nav-ico { color: var(--pg9a-accent); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg9a-bottomnav { display: none; }
  .pg9a-main { padding-bottom: 2rem; }
}

@media (min-width: 431px) and (max-width: 768px) {
  body { max-width: 100%; }
}

/* Inline SEO text helper */
.pg9a-seo-text { color: var(--pg9a-text-dim); font-size: 1.2rem; }
.pg9a-seo-text a { color: var(--pg9a-primary); }
