/* ===========================================================
   jaya777.sbs - layout stylesheet
   All custom classes use prefix: pg12-
   Palette: #BDB76B | #8B7355 | #34495E | #FAFAD2 | #D2B48C
   Mobile-first. Hard container cap: max-width: 430px
   =========================================================== */

:root {
  --pg12-gold: #BDB76B;
  --pg12-bronze: #8B7355;
  --pg12-ink: #34495E;
  --pg12-cream: #FAFAD2;
  --pg12-sand: #D2B48C;
  --pg12-bg: #1d2a36;
  --pg12-bg2: #243447;
  --pg12-card: #2c3e50;
  --pg12-text: #FAFAD2;
  --pg12-muted: #c9b486;
  --pg12-accent: #BDB76B;
  --pg12-accent2: #D2B48C;
  --pg12-danger: #c0563a;
  --pg12-radius: 12px;
}

/* Reset */
*, *::before, *::after { 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', 'Segoe UI', Tahoma, sans-serif;
  background: var(--pg12-bg);
  color: var(--pg12-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pg12-accent); text-decoration: none; }
ul, ol { list-style: none; }

/* ============ Layout helpers ============ */
.pg12-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg12-wrapper { padding: 1rem 1.2rem; }
.pg12-section { padding: 2rem 1.2rem; border-top: 1px solid rgba(189,183,107,0.15); }
.pg12-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.pg12-grid { display: grid; gap: 0.8rem; }

/* ============ Header ============ */
.pg12-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, #2c3e50 0%, #1d2a36 100%);
  border-bottom: 1px solid rgba(189,183,107,0.35);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.pg12-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.5rem;
}
.pg12-logo { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.pg12-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg12-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg12-cream);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pg12-logo-text span { color: var(--pg12-accent); }
.pg12-header-actions { display: flex; align-items: center; gap: 0.4rem; }
.pg12-menu-btn {
  background: transparent;
  border: 1px solid rgba(189,183,107,0.4);
  color: var(--pg12-accent);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pg12-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  min-height: 36px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.pg12-btn:active { transform: scale(0.96); }
.pg12-btn-register {
  background: linear-gradient(135deg, #BDB76B 0%, #D2B48C 100%);
  color: #2c3e50;
  box-shadow: 0 2px 6px rgba(189,183,107,0.4);
}
.pg12-btn-login {
  background: transparent;
  color: var(--pg12-cream);
  border: 1px solid var(--pg12-accent);
}
.pg12-btn-block {
  display: flex;
  width: 100%;
  padding: 0.9rem;
  font-size: 1.5rem;
}

/* ============ Nav menu (expandable) ============ */
.pg12-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--pg12-bg2);
  border-top: 1px solid transparent;
}
.pg12-nav-open {
  max-height: 460px;
  border-top: 1px solid rgba(189,183,107,0.25);
}
.pg12-nav-list {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 1rem 1rem;
}
.pg12-nav-list li a {
  display: block;
  padding: 0.7rem 0.4rem;
  color: var(--pg12-cream);
  border-bottom: 1px dashed rgba(189,183,107,0.18);
  font-size: 1.4rem;
}
.pg12-nav-list li a:hover { color: var(--pg12-accent); }

/* ============ Main / Hero ============ */
.pg12-main { padding-top: 64px; padding-bottom: 80px; }
.pg12-hero { padding: 1.2rem; text-align: center; }
.pg12-hero h1 {
  font-size: 2rem;
  line-height: 2.6rem;
  color: var(--pg12-cream);
  margin-bottom: 0.6rem;
}
.pg12-hero h1 b { color: var(--pg12-accent); }
.pg12-hero p { color: var(--pg12-muted); font-size: 1.35rem; }

/* ============ Carousel ============ */
.pg12-carousel {
  position: relative;
  border-radius: var(--pg12-radius);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.pg12-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.pg12-slide-active { display: block; }
.pg12-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg12-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--pg12-cream);
  font-weight: 700;
  font-size: 1.3rem;
}
.pg12-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
}
.pg12-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(250,250,210,0.35);
  cursor: pointer;
}
.pg12-dot-active { background: var(--pg12-accent); }

/* ============ Section heading ============ */
.pg12-sec-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  color: var(--pg12-cream);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--pg12-accent);
  padding-left: 0.6rem;
}
.pg12-sec-title i { color: var(--pg12-accent); }
.pg12-sec-sub { color: var(--pg12-muted); font-size: 1.25rem; margin-bottom: 0.8rem; }

/* ============ Category tabs (non-switching visual) ============ */
.pg12-cat-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.pg12-cat-tab {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: rgba(189,183,107,0.12);
  color: var(--pg12-cream);
  font-size: 1.2rem;
  border: 1px solid rgba(189,183,107,0.3);
  cursor: pointer;
}
.pg12-cat-tab-active { background: var(--pg12-accent); color: #2c3e50; }
.pg12-cat-block h3 {
  font-size: 1.45rem;
  color: var(--pg12-accent2);
  margin: 0.6rem 0;
}

/* ============ Game grid (compact icon layout) ============ */
.pg12-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.pg12-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--pg12-card);
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  border: 1px solid rgba(189,183,107,0.12);
  transition: transform .12s ease, border-color .12s ease;
}
.pg12-game-card:hover { transform: translateY(-2px); border-color: var(--pg12-accent); }
.pg12-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}
.pg12-game-name {
  font-size: 1.05rem;
  color: var(--pg12-cream);
  line-height: 1.3rem;
  height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============ Cards / features ============ */
.pg12-card {
  background: var(--pg12-card);
  border-radius: var(--pg12-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(189,183,107,0.18);
}
.pg12-card h3 { color: var(--pg12-accent); font-size: 1.4rem; margin-bottom: 0.4rem; }
.pg12-card p { color: var(--pg12-cream); font-size: 1.25rem; line-height: 1.7rem; }

.pg12-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.pg12-feature {
  background: var(--pg12-card);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid rgba(189,183,107,0.18);
}
.pg12-feature i { font-size: 2rem; color: var(--pg12-accent); }
.pg12-feature b { display: block; color: var(--pg12-cream); margin-top: 0.3rem; font-size: 1.2rem; }
.pg12-feature small { color: var(--pg12-muted); font-size: 1.05rem; }

/* ============ RTP table ============ */
.pg12-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.pg12-rtp-table th, .pg12-rtp-table td {
  padding: 0.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(189,183,107,0.18);
}
.pg12-rtp-table th { background: rgba(189,183,107,0.12); color: var(--pg12-accent); }
.pg12-rtp-table td { color: var(--pg12-cream); }

/* ============ Testimonial / winners ============ */
.pg12-testimonial {
  background: var(--pg12-card);
  border-left: 3px solid var(--pg12-accent);
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}
.pg12-testimonial b { color: var(--pg12-accent); font-size: 1.25rem; }
.pg12-testimonial p { color: var(--pg12-cream); font-size: 1.2rem; margin-top: 0.2rem; }
.pg12-testimonial small { color: var(--pg12-muted); }

/* ============ Payment chips ============ */
.pg12-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg12-pay-chip {
  background: var(--pg12-card);
  border: 1px solid rgba(189,183,107,0.3);
  color: var(--pg12-cream);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============ Steps ============ */
.pg12-steps { counter-reset: step; }
.pg12-step {
  position: relative;
  padding: 0.6rem 0.6rem 0.6rem 3rem;
  margin-bottom: 0.5rem;
  background: var(--pg12-card);
  border-radius: 8px;
  border-left: 3px solid var(--pg12-accent);
}
.pg12-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.6rem; top: 50%;
  transform: translateY(-50%);
  width: 1.8rem; height: 1.8rem;
  background: var(--pg12-accent);
  color: #2c3e50;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.pg12-step b { color: var(--pg12-cream); display: block; font-size: 1.25rem; }
.pg12-step span { color: var(--pg12-muted); font-size: 1.1rem; }

/* ============ Footer ============ */
.pg12-footer {
  background: var(--pg12-bg2);
  padding: 1.5rem 1.2rem 2rem;
  border-top: 1px solid rgba(189,183,107,0.25);
  color: var(--pg12-cream);
}
.pg12-footer h4 { color: var(--pg12-accent); margin-bottom: 0.5rem; font-size: 1.3rem; }
.pg12-footer p { color: var(--pg12-muted); font-size: 1.15rem; margin-bottom: 0.8rem; }
.pg12-footer-links {
  display: flex; flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.8rem;
}
.pg12-footer-links a {
  color: var(--pg12-cream);
  font-size: 1.15rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pg12-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.6rem 0;
}
.pg12-footer-copy { font-size: 1.05rem; color: var(--pg12-muted); text-align: center; margin-top: 0.6rem; }

/* ============ Mobile bottom nav ============ */
.pg12-bnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #2c3e50 0%, #1d2a36 100%);
  border-top: 1px solid rgba(189,183,107,0.4);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
.pg12-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg12-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  transition: color .15s ease, transform .12s ease;
}
.pg12-bnav-btn i { font-size: 22px; color: var(--pg12-muted); }
.pg12-bnav-btn:active { transform: scale(0.92); }
.pg12-bnav-btn:hover i { color: var(--pg12-accent); }
.pg12-bnav-current i { color: var(--pg12-accent); }
.pg12-bnav-current::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  background: var(--pg12-accent);
  border-radius: 0 0 4px 4px;
}
.pg12-bnav-promo i { color: var(--pg12-accent2); }

/* ============ Misc ============ */
.pg12-text-link { color: var(--pg12-accent); font-weight: 700; text-decoration: underline; }
.pg12-cta-bar {
  display: flex; gap: 0.5rem; justify-content: center;
  padding: 1rem 0;
}
.pg12-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 1rem;
  background: rgba(192,86,58,0.2);
  color: #f3b29a;
  border: 1px solid rgba(192,86,58,0.4);
}
.pg12-pill {
  display: inline-block;
  background: rgba(189,183,107,0.18);
  color: var(--pg12-accent);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 1.05rem;
  margin: 0.1rem;
}

/* ============ Desktop ============ */
@media (min-width: 769px) {
  .pg12-bnav { display: none; }
  body { box-shadow: 0 0 30px rgba(0,0,0,0.5); }
}
@media (max-width: 768px) {
  .pg12-main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .pg12-game-grid { grid-template-columns: repeat(3, 1fr); }
  .pg12-feature-grid { grid-template-columns: 1fr; }
}
