/* 13333 core layout - all classes use pg0f- prefix */
/* Color palette: #6A5ACD | #999999 | #FFBF00 | #CC99FF | #F8F8FF | #262626 */

:root {
  --pg0f-primary: #6A5ACD; --pg0f-secondary: #CC99FF; --pg0f-accent: #FFBF00;
  --pg0f-muted: #999999; --pg0f-light: #F8F8FF; --pg0f-dark: #262626;
  --pg0f-darker: #1a1a1a; --pg0f-gradient: linear-gradient(135deg, #6A5ACD 0%, #CC99FF 100%);
  --pg0f-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  background: var(--pg0f-dark); color: var(--pg0f-light); font-size: 1.6rem; line-height: 1.5;
  max-width: 430px; margin: 0 auto; position: relative; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pg0f-accent); text-decoration: none; }

/* Layout containers */
.pg0f-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg0f-wrapper { width: 100%; padding-bottom: 80px; }

/* Header */
.pg0f-header {
  position: fixed; top: 0; left: 0; right: 0; max-width: 430px; margin: 0 auto;
  background: rgba(38, 38, 38, 0.96); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--pg0f-primary); z-index: 1000; padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}

.pg0f-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg0f-accent);
}
.pg0f-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg0f-logo span { color: var(--pg0f-light); }

.pg0f-header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Buttons */
.pg0f-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  min-height: 36px;
  text-decoration: none;
}
.pg0f-btn:active { transform: scale(0.96); }
.pg0f-btn-register {
  background: var(--pg0f-gradient);
  color: #fff;
  box-shadow: 0 3px 10px rgba(106, 90, 205, 0.5);
}
.pg0f-btn-login {
  background: transparent;
  color: var(--pg0f-accent);
  border: 2px solid var(--pg0f-accent);
}
.pg0f-btn-promo {
  background: var(--pg0f-accent);
  color: var(--pg0f-dark);
  box-shadow: 0 3px 10px rgba(255, 191, 0, 0.4);
}
.pg0f-btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 1.2rem;
  font-size: 1.6rem;
}

/* Menu button */
.pg0f-menu-btn {
  background: none;
  border: none;
  color: var(--pg0f-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 40px;
  min-height: 40px;
}

/* Mobile menu */
.pg0f-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg0f-dark);
  border-bottom: 2px solid var(--pg0f-primary);
  padding: 6rem 1rem 1.5rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-height: 80vh;
  overflow-y: auto;
}
.pg0f-mobile-menu.pg0f-menu-open { transform: translateY(0); }
.pg0f-mobile-menu a {
  display: block;
  padding: 1rem;
  color: var(--pg0f-light);
  border-bottom: 1px solid rgba(204, 153, 255, 0.15);
  font-size: 1.5rem;
}
.pg0f-mobile-menu a:hover { background: rgba(106, 90, 205, 0.15); color: var(--pg0f-accent); }

/* Main content */
.pg0f-main { padding-top: 6rem; }

/* Carousel */
.pg0f-carousel {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--pg0f-shadow);
}
.pg0f-carousel-track { position: relative; width: 100%; height: 180px; }
.pg0f-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  cursor: pointer;
}
.pg0f-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg0f-carousel-slide.pg0f-active { opacity: 1; }
.pg0f-carousel-dots {
  position: absolute;
  bottom: 0.6rem; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.pg0f-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(248, 248, 255, 0.5);
  border: none;
  cursor: pointer;
}
.pg0f-carousel-dot.pg0f-active { background: var(--pg0f-accent); }

/* Section title */
.pg0f-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 1.6rem 0 1rem;
  color: var(--pg0f-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg0f-section-title i,
.pg0f-section-title .material-icons-outlined,
.pg0f-section-title .bi { color: var(--pg0f-accent); }

/* H1 */
.pg0f-h1 {
  font-size: 2.2rem;
  font-weight: 900;
  text-align: center;
  margin: 1.5rem 0;
  background: var(--pg0f-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

/* Filter chips */
.pg0f-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}
.pg0f-filter-chip {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: rgba(248, 248, 255, 0.08);
  color: var(--pg0f-light);
  font-size: 1.2rem;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.pg0f-filter-chip.active,
.pg0f-filter-chip.pg0f-active { background: var(--pg0f-gradient); color: #fff; }

/* Game grid */
.pg0f-game-section { margin: 1rem 0; }
.pg0f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pg0f-card {
  background: rgba(106, 90, 205, 0.12);
  border: 1px solid rgba(204, 153, 255, 0.2);
  border-radius: 0.8rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}
.pg0f-card:hover { transform: translateY(-2px); border-color: var(--pg0f-accent); }
.pg0f-card img { width: 100%; height: 70px; object-fit: cover; border-radius: 0.5rem; margin-bottom: 0.4rem; }
.pg0f-card-name {
  font-size: 1.2rem;
  color: var(--pg0f-light);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info module */
.pg0f-module {
  background: rgba(248, 248, 255, 0.04);
  border: 1px solid rgba(204, 153, 255, 0.18);
  border-radius: 1rem;
  padding: 1.4rem;
  margin: 1.2rem 0;
}
.pg0f-module h2 { font-size: 1.7rem; color: var(--pg0f-accent); margin-bottom: 0.8rem; }
.pg0f-module h3 { font-size: 1.4rem; color: var(--pg0f-secondary); margin: 0.8rem 0 0.4rem; }
.pg0f-module p { font-size: 1.4rem; color: var(--pg0f-light); margin-bottom: 0.6rem; line-height: 1.6; }
.pg0f-module ul { list-style: none; padding-left: 0; }
.pg0f-module ul li {
  font-size: 1.4rem;
  padding: 0.4rem 0 0.4rem 1.8rem;
  position: relative;
  color: var(--pg0f-light);
}
.pg0f-module ul li::before {
  content: '★';
  color: var(--pg0f-accent);
  position: absolute;
  left: 0.4rem;
}

/* CTA banner */
.pg0f-cta {
  background: var(--pg0f-gradient);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.pg0f-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.6rem; }
.pg0f-cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.3rem; margin-bottom: 1rem; }

/* RTP stats grid */
.pg0f-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}
.pg0f-rtp-item {
  background: rgba(255, 191, 0, 0.1);
  border-radius: 0.6rem;
  padding: 0.8rem;
  text-align: center;
}
.pg0f-rtp-value { font-size: 1.8rem; font-weight: 800; color: var(--pg0f-accent); }
.pg0f-rtp-label { font-size: 1.2rem; color: var(--pg0f-muted); }

/* Testimonials */
.pg0f-testimonial {
  background: rgba(106, 90, 205, 0.1);
  border-left: 3px solid var(--pg0f-accent);
  padding: 1rem;
  border-radius: 0.6rem;
  margin-bottom: 0.8rem;
}
.pg0f-testimonial p { font-size: 1.3rem; color: var(--pg0f-light); }
.pg0f-testimonial .pg0f-author { font-size: 1.2rem; color: var(--pg0f-accent); margin-top: 0.4rem; font-weight: 700; }

/* Winners list */
.pg0f-winners { display: flex; flex-direction: column; gap: 0.5rem; }
.pg0f-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 191, 0, 0.08);
  border-radius: 0.5rem;
  font-size: 1.3rem;
}
.pg0f-winner-name { color: var(--pg0f-light); }
.pg0f-winner-amount { color: var(--pg0f-accent); font-weight: 700; }

/* Payment methods */
.pg0f-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}
.pg0f-pay-item {
  background: rgba(248, 248, 255, 0.08);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--pg0f-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Footer */
.pg0f-footer {
  background: var(--pg0f-darker);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
  text-align: center;
}
.pg0f-footer-brand { font-size: 1.3rem; color: var(--pg0f-muted); margin-bottom: 1rem; line-height: 1.5; }
.pg0f-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0;
}
.pg0f-footer-promos .pg0f-btn { font-size: 1.2rem; padding: 0.6rem 1.2rem; }
.pg0f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0;
}
.pg0f-footer-links a { font-size: 1.2rem; color: var(--pg0f-secondary); padding: 0.4rem 0.6rem; }
.pg0f-copyright {
  font-size: 1.1rem;
  color: var(--pg0f-muted);
  border-top: 1px solid rgba(204, 153, 255, 0.15);
  padding-top: 1rem;
}

/* Mobile bottom nav */
.pg0f-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(38, 38, 38, 0.98);
  border-top: 2px solid var(--pg0f-primary);
  display: flex;
  justify-content: space-around;
  height: 62px;
  z-index: 1000;
}
.pg0f-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--pg0f-muted);
  background: none;
  border: none;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  transition: color 0.2s, transform 0.15s;
}
.pg0f-bottom-nav-item:active { transform: scale(0.9); }
.pg0f-bottom-nav-item i,
.pg0f-bottom-nav-item .material-icons-outlined,
.pg0f-bottom-nav-item .bi { font-size: 22px; }
.pg0f-bottom-nav-item.active { color: var(--pg0f-accent); }
.pg0f-bottom-nav-item span { font-size: 1rem; }

/* Desktop: hide bottom nav and remove mobile padding */
@media (min-width: 769px) {
  .pg0f-bottom-nav { display: none; }
  .pg0f-wrapper { padding-bottom: 0; }
}

/* Mobile overflow guard */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { min-width: 0; }
.pg0f-container, .pg0f-wrapper, .pg0f-header, .pg0f-bottom-nav { max-width: min(430px, 100vw); }
img, video, iframe, table { max-width: 100%; }
@media (max-width: 768px) {
  body { max-width: 100vw !important; }
  .pg0f-container, .pg0f-wrapper, .pg0f-header, .pg0f-bottom-nav, .pg0f-carousel, .pg0f-filter { width: 100% !important; max-width: 100vw !important; }
  .pg0f-carousel { overflow: hidden !important; contain: paint; }
  .pg0f-filter { overflow-x: auto; }
  .pg0f-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.8rem !important; }
  .pg0f-card { min-width: 0 !important; }
}
