/* tk222.homes - Core stylesheet
   All custom classes use the pgd0- prefix
   Palette: #333333 | #CC99FF | #FF5722 | #DEE2E6 | #9932CC
   Mobile-first, max-width 430px */

:root {
  --pgd0-bg: #333333;
  --pgd0-bg-dark: #262626;
  --pgd0-bg-darker: #1a1a1a;
  --pgd0-primary: #9932CC;
  --pgd0-accent: #CC99FF;
  --pgd0-hot: #FF5722;
  --pgd0-text: #DEE2E6;
  --pgd0-text-muted: #b8b8c0;
  --pgd0-card: #2e2e2e;
  --pgd0-border: #444444;
}

* { 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", system-ui, sans-serif;
  background: var(--pgd0-bg);
  color: var(--pgd0-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

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

/* ===== Header ===== */
.pgd0-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(90deg, var(--pgd0-bg-dark), var(--pgd0-primary));
  border-bottom: 1px solid var(--pgd0-border);
  padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.pgd0-logo { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
.pgd0-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pgd0-logo-text { font-size: 1.7rem; font-weight: 700; color: #fff; white-space: nowrap; }
.pgd0-logo-text span { color: var(--pgd0-accent); }

.pgd0-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.pgd0-btn {
  border: none; border-radius: 20px; padding: 0.55rem 1.2rem;
  font-size: 1.25rem; font-weight: 600; cursor: pointer;
  min-height: 36px; transition: transform 0.15s, opacity 0.15s;
}
.pgd0-btn:active { transform: scale(0.94); }
.pgd0-btn-login { background: transparent; color: var(--pgd0-text); border: 1px solid var(--pgd0-accent); }
.pgd0-btn-register { background: var(--pgd0-hot); color: #fff; box-shadow: 0 2px 8px rgba(255,87,34,0.4); }

.pgd0-menu-btn {
  background: transparent; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; padding: 0.2rem 0.5rem; min-width: 40px; min-height: 40px;
}

/* ===== Mobile expandable menu ===== */
.pgd0-mobile-menu {
  position: fixed; top: 56px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 9999;
  background: var(--pgd0-bg-darker);
  border-bottom: 2px solid var(--pgd0-primary);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.pgd0-mobile-menu.pgd0-menu-open { max-height: 480px; box-shadow: 0 8px 24px rgba(0,0,0,0.6); }
.pgd0-mobile-menu ul { list-style: none; padding: 0.5rem 0; }
.pgd0-mobile-menu li a {
  display: block; padding: 1rem 1.5rem; color: var(--pgd0-text);
  border-bottom: 1px solid var(--pgd0-border); font-size: 1.4rem;
}
.pgd0-mobile-menu li a:active { background: var(--pgd0-primary); }

/* ===== Main layout ===== */
.pgd0-main { padding-top: 60px; }
@media (max-width: 768px) {
  .pgd0-main { padding-bottom: 80px; }
}

.pgd0-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1rem; }

/* ===== Carousel ===== */
.pgd0-carousel {
  position: relative; width: 100%; margin: 1rem 0; border-radius: 12px;
  overflow: hidden; aspect-ratio: 16/9; background: var(--pgd0-bg-dark);
}
.pgd0-carousel-track { position: relative; width: 100%; height: 100%; }
.pgd0-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.pgd0-carousel-slide.pgd0-slide-active { opacity: 1; }
.pgd0-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pgd0-carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; padding: 1.2rem 1rem 0.8rem; font-size: 1.3rem; font-weight: 600;
}
.pgd0-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.pgd0-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
}
.pgd0-carousel-dot.pgd0-dot-active { background: var(--pgd0-hot); }

/* ===== Section headings ===== */
.pgd0-section { margin: 1.5rem 0; }
.pgd0-section-title {
  font-size: 1.6rem; font-weight: 700; color: var(--pgd0-accent);
  padding-left: 0.8rem; border-left: 4px solid var(--pgd0-hot);
  margin-bottom: 0.8rem;
}
.pgd0-h1 {
  font-size: 1.9rem; font-weight: 700; color: #fff;
  text-align: center; margin: 1rem 0; line-height: 1.3;
}
.pgd0-h1 span { color: var(--pgd0-accent); }

/* ===== Category tabs (static display) ===== */
.pgd0-cat-label {
  font-size: 1.5rem; font-weight: 700; color: var(--pgd0-accent);
  margin: 1.5rem 0 0.6rem; padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--pgd0-border);
}

/* ===== Game grid ===== */
.pgd0-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.pgd0-game-card {
  background: var(--pgd0-card); border: 1px solid var(--pgd0-border);
  border-radius: 10px; padding: 0.5rem; text-align: center;
  cursor: pointer; transition: transform 0.15s, border-color 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.pgd0-game-card:active { transform: scale(0.95); border-color: var(--pgd0-accent); }
.pgd0-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
}
.pgd0-game-name {
  font-size: 1.05rem; color: var(--pgd0-text); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CTA promo banner ===== */
.pgd0-cta {
  background: linear-gradient(90deg, var(--pgd0-primary), var(--pgd0-hot));
  border-radius: 12px; padding: 1.2rem; text-align: center; margin: 1.2rem 0;
}
.pgd0-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.pgd0-cta p { color: #fff; font-size: 1.2rem; margin-bottom: 0.8rem; }
.pgd0-cta .pgd0-btn { background: #fff; color: var(--pgd0-primary); font-size: 1.3rem; }

/* ===== Content card (FAQ / info / features) ===== */
.pgd0-card {
  background: var(--pgd0-card); border: 1px solid var(--pgd0-border);
  border-radius: 10px; padding: 1rem; margin-bottom: 0.8rem;
}
.pgd0-card h3 { color: var(--pgd0-accent); font-size: 1.4rem; margin-bottom: 0.4rem; }
.pgd0-card p { color: var(--pgd0-text-muted); font-size: 1.25rem; line-height: 1.6; }
.pgd0-card p a { color: var(--pgd0-accent); font-weight: 600; }
.pgd0-card ul { padding-left: 1.4rem; color: var(--pgd0-text-muted); font-size: 1.25rem; }
.pgd0-card li { margin-bottom: 0.3rem; line-height: 1.5; }

.pgd0-faq-item { border-bottom: 1px solid var(--pgd0-border); padding: 0.6rem 0; }
.pgd0-faq-item:last-child { border-bottom: none; }
.pgd0-faq-q { font-weight: 600; color: var(--pgd0-accent); font-size: 1.25rem; }
.pgd0-faq-a { color: var(--pgd0-text-muted); font-size: 1.2rem; margin-top: 0.3rem; }

/* ===== Inline link styling ===== */
.pgd0-inline-link { color: var(--pgd0-accent); font-weight: 600; border-bottom: 1px dotted var(--pgd0-accent); }

/* ===== Testimonial / winner ===== */
.pgd0-tile {
  background: var(--pgd0-card); border-radius: 10px; padding: 0.8rem;
  display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.6rem;
}
.pgd0-tile .pgd0-tile-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--pgd0-primary); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
}
.pgd0-tile .pgd0-tile-text { font-size: 1.15rem; line-height: 1.4; }
.pgd0-tile .pgd0-tile-text strong { color: var(--pgd0-accent); }

/* ===== Payment row ===== */
.pgd0-payrow { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pgd0-payrow span {
  background: var(--pgd0-card); border: 1px solid var(--pgd0-border);
  border-radius: 8px; padding: 0.4rem 0.8rem; font-size: 1.15rem; color: var(--pgd0-text);
}

/* ===== Footer ===== */
.pgd0-footer {
  background: var(--pgd0-bg-darker); border-top: 2px solid var(--pgd0-primary);
  padding: 1.5rem 1rem 2rem; margin-top: 1.5rem;
}
.pgd0-footer p { color: var(--pgd0-text-muted); font-size: 1.2rem; margin-bottom: 0.8rem; line-height: 1.6; }
.pgd0-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.8rem; }
.pgd0-footer-links a { color: var(--pgd0-accent); font-size: 1.15rem; }
.pgd0-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pgd0-footer-promo .pgd0-btn { background: var(--pgd0-hot); color: #fff; font-size: 1.15rem; padding: 0.4rem 1rem; }
.pgd0-copyright { color: #777; font-size: 1.1rem; text-align: center; border-top: 1px solid var(--pgd0-border); padding-top: 0.8rem; }

/* ===== Bottom nav ===== */
.pgd0-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px; z-index: 1000;
  background: var(--pgd0-bg-darker); border-top: 2px solid var(--pgd0-primary);
  display: flex; justify-content: space-around; align-items: center;
}
.pgd0-bottom-nav-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(--pgd0-text-muted); cursor: pointer; padding: 4px 0;
  transition: color 0.15s, transform 0.15s;
}
.pgd0-bottom-nav-btn:active { transform: scale(0.9); }
.pgd0-bottom-nav-btn .pgd0-nav-icon { font-size: 22px; line-height: 1; }
.pgd0-bottom-nav-btn .pgd0-nav-label { font-size: 1rem; line-height: 1; }
.pgd0-bottom-nav-btn.pgd0-nav-active { color: var(--pgd0-hot); }
.pgd0-bottom-nav-btn.pgd0-nav-active .pgd0-nav-icon { color: var(--pgd0-hot); }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pgd0-bottom-nav { display: none; }
  .pgd0-main { padding-bottom: 0; }
}

/* ===== Desktop nav (visible on wide screens) ===== */
.pgd0-desktop-nav { display: none; }
@media (min-width: 769px) {
  .pgd0-desktop-nav { display: flex; gap: 1.2rem; }
  .pgd0-desktop-nav a { color: var(--pgd0-text); font-size: 1.2rem; }
}

/* Utility */
.pgd0-text-muted { color: var(--pgd0-text-muted); }
.pgd0-mb-1 { margin-bottom: 1rem; }
.pgd0-py-1 { padding: 1rem 0; }
