/* ============================================================
   jl777 - Core stylesheet (basefiles)
   Class prefix: pg9b-
   Palette: #F0E68C | #0F0F23 | #2F2F2F | #FF6347 | #FF1493
   ============================================================ */

:root {
  --pg9b-primary: #FF1493;
  --pg9b-accent: #FF6347;
  --pg9b-gold: #F0E68C;
  --pg9b-bg: #0F0F23;
  --pg9b-bg2: #2F2F2F;
  --pg9b-text: #F0E68C;
  --pg9b-text-light: #ffffff;
  --pg9b-muted: #b9b9c9;
  --pg9b-card: #1a1a2e;
  --pg9b-card2: #232347;
  --pg9b-border: rgba(240,230,140,0.18);
  --pg9b-radius: 12px;
  --pg9b-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

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

html { font-size: 62.5%; }

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

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

/* ============ Header ============ */
.pg9b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  background: linear-gradient(90deg, #0F0F23 0%, #2F2F2F 100%);
  border-bottom: 2px solid var(--pg9b-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: var(--pg9b-shadow);
}

.pg9b-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg9b-gold);
  font-weight: 800;
  font-size: 1.7rem;
}
.pg9b-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg9b-logo span { background: linear-gradient(90deg, var(--pg9b-gold), var(--pg9b-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pg9b-header-actions { display: flex; align-items: center; gap: 8px; }

.pg9b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  color: #fff;
}
.pg9b-btn:active { transform: scale(0.94); }
.pg9b-btn-register { background: linear-gradient(90deg, var(--pg9b-primary), var(--pg9b-accent)); }
.pg9b-btn-login { background: linear-gradient(90deg, var(--pg9b-gold), #d4b400); color: #0F0F23; }

.pg9b-menu-btn {
  background: transparent;
  border: 1px solid var(--pg9b-border);
  color: var(--pg9b-gold);
  width: 34px; height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============ Mobile expandable menu ============ */
.pg9b-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg9b-card);
  border-bottom: 2px solid var(--pg9b-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.pg9b-mobile-menu.pg9b-open { max-height: 480px; }
.pg9b-mobile-menu ul { list-style: none; padding: 8px 12px; }
.pg9b-mobile-menu li { border-bottom: 1px solid rgba(240,230,140,0.08); }
.pg9b-mobile-menu li:last-child { border-bottom: none; }
.pg9b-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 6px;
  color: var(--pg9b-text-light);
  font-size: 1.4rem;
}
.pg9b-mobile-menu a i { color: var(--pg9b-gold); width: 22px; text-align: center; }
.pg9b-mobile-menu a:hover { color: var(--pg9b-primary); }

/* ============ Main / Layout ============ */
main { padding-top: 64px; padding-bottom: 16px; }

.pg9b-container { width: 100%; padding: 0 12px; }

/* ============ Carousel ============ */
.pg9b-carousel {
  position: relative;
  width: 100%;
  margin: 12px 0;
  border-radius: var(--pg9b-radius);
  overflow: hidden;
  box-shadow: var(--pg9b-shadow);
}
.pg9b-slides { position: relative; width: 100%; height: 180px; }
.pg9b-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.pg9b-slide.pg9b-active { opacity: 1; }
.pg9b-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg9b-slide .pg9b-slide-cap {
  position: absolute; left: 12px; bottom: 10px;
  background: rgba(15,15,35,0.7);
  padding: 6px 10px; border-radius: 8px;
  font-size: 1.3rem; font-weight: 700; color: var(--pg9b-gold);
}
.pg9b-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(15,15,35,0.6); color: var(--pg9b-gold);
  border: none; cursor: pointer; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.pg9b-carousel-nav.pg9b-prev { left: 6px; }
.pg9b-carousel-nav.pg9b-next { right: 6px; }
.pg9b-dots { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; }
.pg9b-dot {
  display: inline-block; width: 7px; height: 7px; margin: 0 3px;
  border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer;
}
.pg9b-dot.pg9b-active { background: var(--pg9b-primary); }

/* ============ Section titles ============ */
.pg9b-section { margin: 20px 0; }
.pg9b-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.7rem; font-weight: 800; color: var(--pg9b-gold);
  margin: 12px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--pg9b-primary);
}
.pg9b-section-title i { color: var(--pg9b-primary); }
.pg9b-h1 {
  font-size: 2.1rem; font-weight: 900; line-height: 1.3;
  background: linear-gradient(90deg, var(--pg9b-gold), var(--pg9b-primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 14px 0 8px;
}

/* ============ Game grid ============ */
.pg9b-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pg9b-game-card {
  background: var(--pg9b-card);
  border: 1px solid var(--pg9b-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  text-align: center;
}
.pg9b-game-card:active { transform: scale(0.95); border-color: var(--pg9b-primary); }
.pg9b-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pg9b-game-card .pg9b-game-name {
  font-size: 1.05rem;
  color: var(--pg9b-text-light);
  padding: 4px 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Cards / generic ============ */
.pg9b-card {
  background: var(--pg9b-card);
  border: 1px solid var(--pg9b-border);
  border-radius: var(--pg9b-radius);
  padding: 12px;
  margin: 10px 0;
  box-shadow: var(--pg9b-shadow);
}
.pg9b-card h3 { color: var(--pg9b-gold); font-size: 1.5rem; margin-bottom: 6px; }
.pg9b-card p { color: var(--pg9b-muted); font-size: 1.3rem; line-height: 1.6; }

/* ============ Promo CTA ============ */
.pg9b-cta {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--pg9b-primary), var(--pg9b-accent));
  border-radius: var(--pg9b-radius);
  padding: 16px;
  margin: 14px 0;
  text-align: center;
  color: #fff;
}
.pg9b-cta h3 { color: #fff; font-size: 1.7rem; }
.pg9b-cta p { color: rgba(255,255,255,0.92); font-size: 1.3rem; }
.pg9b-cta .pg9b-btn { background: #fff; color: var(--pg9b-primary); padding: 0 22px; min-height: 40px; font-size: 1.4rem; }

.pg9b-text-link {
  color: var(--pg9b-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ============ Lists ============ */
.pg9b-list { list-style: none; padding: 0; }
.pg9b-list li { padding: 8px 0 8px 24px; position: relative; color: var(--pg9b-muted); border-bottom: 1px dashed rgba(240,230,140,0.1); }
.pg9b-list li:last-child { border-bottom: none; }
.pg9b-list li::before { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--pg9b-gold); position: absolute; left: 0; top: 8px; font-size: 1.1rem; }

/* ============ Feature grid ============ */
.pg9b-feat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.pg9b-feat {
  background: var(--pg9b-card2);
  border-radius: 10px; padding: 12px; text-align: center;
  border: 1px solid var(--pg9b-border);
}
.pg9b-feat i { font-size: 2.2rem; color: var(--pg9b-primary); margin-bottom: 6px; }
.pg9b-feat h4 { color: var(--pg9b-gold); font-size: 1.3rem; margin-bottom: 4px; }
.pg9b-feat p { color: var(--pg9b-muted); font-size: 1.15rem; }

/* ============ Testimonials ============ */
.pg9b-review {
  background: var(--pg9b-card);
  border-left: 3px solid var(--pg9b-primary);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0;
}
.pg9b-review .pg9b-review-name { color: var(--pg9b-gold); font-weight: 700; font-size: 1.25rem; }
.pg9b-review .pg9b-review-stars { color: var(--pg9b-accent); font-size: 1.1rem; margin: 2px 0; }
.pg9b-review p { color: var(--pg9b-muted); font-size: 1.2rem; }

/* ============ Payment ============ */
.pg9b-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg9b-pay {
  flex: 1 1 28%;
  background: var(--pg9b-card2);
  border: 1px solid var(--pg9b-border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 1.15rem; color: var(--pg9b-text-light);
}
.pg9b-pay i { color: var(--pg9b-gold); font-size: 1.8rem; display: block; margin-bottom: 4px; }

/* ============ Winners ============ */
.pg9b-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--pg9b-card); border-radius: 8px; padding: 8px 12px;
  margin: 6px 0; border: 1px solid var(--pg9b-border);
}
.pg9b-winner .pg9b-w-name { color: var(--pg9b-gold); font-weight: 700; font-size: 1.25rem; }
.pg9b-winner .pg9b-w-amount { color: var(--pg9b-primary); font-weight: 800; font-size: 1.35rem; }

/* ============ SEO text block ============ */
.pg9b-seo-text { color: var(--pg9b-muted); font-size: 1.3rem; line-height: 1.7; margin: 10px 0; }
.pg9b-seo-text strong { color: var(--pg9b-gold); }

/* ============ Footer ============ */
.pg9b-footer {
  background: #0a0a18;
  border-top: 2px solid var(--pg9b-primary);
  padding: 16px 12px 90px;
  margin-top: 20px;
}
.pg9b-footer-brand { color: var(--pg9b-gold); font-size: 1.35rem; line-height: 1.6; margin-bottom: 10px; }
.pg9b-footer-promo { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pg9b-footer-promo .pg9b-btn { flex: 1 1 45%; font-size: 1.2rem; }
.pg9b-footer-links { columns: 2; column-gap: 12px; margin: 10px 0; }
.pg9b-footer-links a { display: block; padding: 5px 0; color: var(--pg9b-muted); font-size: 1.2rem; break-inside: avoid; }
.pg9b-footer-links a:hover { color: var(--pg9b-primary); }
.pg9b-footer-copy { color: #666; font-size: 1.1rem; text-align: center; margin-top: 10px; border-top: 1px solid rgba(240,230,140,0.08); padding-top: 10px; }

/* ============ Bottom nav ============ */
.pg9b-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #2F2F2F 0%, #0F0F23 100%);
  border-top: 2px solid var(--pg9b-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.5);
}
.pg9b-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--pg9b-muted);
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
  font-size: 1rem;
}
.pg9b-bnav-btn i, .pg9b-bnav-btn .material-icons-outlined { font-size: 22px; }
.pg9b-bnav-btn:active { transform: scale(0.9); color: var(--pg9b-primary); }
.pg9b-bnav-btn.pg9b-active { color: var(--pg9b-primary); }
.pg9b-bnav-btn.pg9b-active i { color: var(--pg9b-primary); }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .pg9b-bnav { display: none; }
  body { max-width: 430px; }
}
/* Mobile: padding for bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
