/**
 * winbd.cfd - Core stylesheet
 * All custom classes use the dynamic prefix "pgec-" for namespace isolation.
 * Comments in English only. Mobile-first design (max-width 430px baseline).
 */

:root {
  --pgec-primary: #FF6347;
  --pgec-primary-dark: #BF360C;
  --pgec-bg: #3A3A3A;
  --pgec-bg-light: #4a4a4a;
  --pgec-text: #ADB5BD;
  --pgec-text-light: #f4f4f4;
  --pgec-accent: #FF6347;
  --pgec-border: rgba(173, 181, 189, 0.18);
  --pgec-radius: 1.2rem;
  --pgec-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.35);
  --pgec-header-h: 5.6rem;
  --pgec-bottom-nav-h: 6.2rem;
}

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

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

body {
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--pgec-bg);
  color: var(--pgec-text-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--pgec-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.pgec-skip-link {
  position: absolute;
  left: -9999rem;
}
.pgec-skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--pgec-primary);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: 0.8rem;
  z-index: 99999;
}

/* ===== Header ===== */
.pgec-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--pgec-header-h);
  background: var(--pgec-bg);
  border-bottom: 0.2rem solid var(--pgec-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: var(--pgec-shadow);
}

.pgec-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--pgec-text-light);
  font-weight: 800;
  font-size: 1.8rem;
}

.pgec-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
}

.pgec-logo .pgec-logo-text {
  background: linear-gradient(90deg, var(--pgec-primary), #ffb199);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pgec-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pgec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 4.4rem;
  padding: 0 1.4rem;
  border: none;
  border-radius: 0.9rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  color: #fff;
}

.pgec-btn:hover {
  transform: translateY(-0.1rem);
}

.pgec-btn-login {
  background: var(--pgec-bg-light);
  color: var(--pgec-text-light);
  border: 0.15rem solid var(--pgec-border);
}

.pgec-btn-register {
  background: linear-gradient(135deg, var(--pgec-primary), var(--pgec-primary-dark));
  box-shadow: 0 0.3rem 0.8rem rgba(255, 99, 71, 0.4);
}

.pgec-menu-toggle {
  background: transparent;
  border: none;
  color: var(--pgec-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile Menu ===== */
.pgec-mobile-menu {
  position: fixed;
  top: var(--pgec-header-h);
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pgec-bg);
  border-bottom: 0.2rem solid var(--pgec-primary);
  padding: 1.2rem 1.4rem 1.6rem;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-height: 75vh;
  overflow-y: auto;
}

.pgec-mobile-menu.pgec-menu-open {
  transform: translateY(0);
}

.pgec-mobile-menu ul {
  list-style: none;
}

.pgec-mobile-menu li {
  border-bottom: 0.1rem solid var(--pgec-border);
}

.pgec-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0.4rem;
  color: var(--pgec-text-light);
  font-size: 1.5rem;
  font-weight: 600;
}

.pgec-mobile-menu a:hover {
  color: var(--pgec-primary);
  text-decoration: none;
}

.pgec-mobile-menu .material-icons,
.pgec-mobile-menu .ionicon {
  font-size: 2rem;
  color: var(--pgec-primary);
}

.pgec-menu-cta {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
}

.pgec-menu-cta .pgec-btn {
  flex: 1;
}

/* ===== Layout ===== */
.pgec-main {
  padding-top: var(--pgec-header-h);
}

.pgec-section {
  padding: 2.2rem 1.2rem;
}

.pgec-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pgec-text-light);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pgec-section-title .material-icons,
.pgec-section-title .fas {
  color: var(--pgec-primary);
  font-size: 2.2rem;
}

.pgec-section-sub {
  color: var(--pgec-text);
  font-size: 1.35rem;
  margin-bottom: 1.4rem;
}

h1.pgec-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--pgec-text-light);
  margin-bottom: 1rem;
}

h2.pgec-h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgec-text-light);
  margin: 1.4rem 0 0.8rem;
}

h3.pgec-h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--pgec-primary);
  margin: 1.2rem 0 0.6rem;
}

p {
  margin-bottom: 1rem;
  color: var(--pgec-text-light);
}

/* ===== Carousel ===== */
.pgec-carousel {
  position: relative;
  border-radius: var(--pgec-radius);
  overflow: hidden;
  margin: 1.4rem 1.2rem 0;
  box-shadow: var(--pgec-shadow);
}

.pgec-carousel-track {
  position: relative;
  height: 18rem;
}

.pgec-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.pgec-carousel-slide.pgec-slide-active {
  opacity: 1;
}

.pgec-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgec-carousel-cap {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(58, 58, 58, 0.78);
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.pgec-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.pgec-carousel-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.pgec-carousel-dot.pgec-dot-active {
  background: var(--pgec-primary);
}

/* ===== Filter ===== */
.pgec-filter {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 1rem 1.2rem;
  position: sticky;
  top: var(--pgec-header-h);
  background: var(--pgec-bg);
  z-index: 500;
}

.pgec-filter-btn {
  flex: 0 0 auto;
  padding: 0.8rem 1.4rem;
  border: 0.15rem solid var(--pgec-border);
  background: var(--pgec-bg-light);
  color: var(--pgec-text-light);
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pgec-filter-btn.pgec-filter-active {
  background: var(--pgec-primary);
  border-color: var(--pgec-primary);
  color: #fff;
}

/* ===== Game grid ===== */
.pgec-game-group {
  margin-bottom: 1.6rem;
}

.pgec-group-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pgec-primary);
  padding: 0 1.2rem;
  margin-bottom: 0.8rem;
}

.pgec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}

.pgec-card {
  background: var(--pgec-bg-light);
  border: 0.1rem solid var(--pgec-border);
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
}

.pgec-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1rem rgba(255, 99, 71, 0.3);
  border-color: var(--pgec-primary);
}

.pgec-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #222;
}

.pgec-card-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pgec-text-light);
  padding: 0.5rem 0.3rem;
  line-height: 1.25;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Feature / info blocks ===== */
.pgec-panel {
  background: var(--pgec-bg-light);
  border-radius: var(--pgec-radius);
  padding: 1.6rem;
  margin: 1.2rem 0;
  border: 0.1rem solid var(--pgec-border);
}

.pgec-panel p {
  color: var(--pgec-text);
}

.pgec-feature-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.pgec-feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--pgec-bg);
  border-radius: 0.8rem;
  border-left: 0.3rem solid var(--pgec-primary);
}

.pgec-feature-list .material-icons,
.pgec-feature-list .fas,
.pgec-feature-list .ionicon {
  color: var(--pgec-primary);
  font-size: 2rem;
  flex: 0 0 auto;
}

.pgec-testimonials {
  display: grid;
  gap: 1rem;
}

.pgec-testimonial {
  background: var(--pgec-bg-light);
  border-radius: 0.9rem;
  padding: 1.2rem;
  border: 0.1rem solid var(--pgec-border);
}

.pgec-testimonial .pgec-stars {
  color: #ffb400;
  margin-bottom: 0.4rem;
}

.pgec-testimonial p {
  font-size: 1.3rem;
  color: var(--pgec-text-light);
}

.pgec-testimonial .pgec-author {
  font-size: 1.2rem;
  color: var(--pgec-text);
  margin-top: 0.4rem;
}

.pgec-winners {
  display: grid;
  gap: 0.7rem;
}

.pgec-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pgec-bg-light);
  padding: 0.9rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1.3rem;
}

.pgec-winner .pgec-win-amount {
  color: var(--pgec-primary);
  font-weight: 800;
}

.pgec-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pgec-pay-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pgec-bg-light);
  border: 0.1rem solid var(--pgec-border);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.pgec-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--pgec-primary-dark), var(--pgec-primary));
  border-radius: var(--pgec-radius);
  padding: 2rem 1.4rem;
  margin: 1.4rem 0;
}

.pgec-cta h3 {
  color: #fff;
}

.pgec-cta p {
  color: rgba(255, 255, 255, 0.9);
}

.pgec-cta .pgec-btn {
  background: #fff;
  color: var(--pgec-primary-dark);
  font-size: 1.5rem;
  padding: 1rem 2.4rem;
}

.pgec-cta .pgec-text-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* SEO inline text link */
.pgec-seo-link {
  color: var(--pgec-primary);
  font-weight: 700;
}

/* ===== Footer ===== */
.pgec-footer {
  background: #2a2a2a;
  padding: 2rem 1.2rem 1.5rem;
  margin-top: 2rem;
  border-top: 0.2rem solid var(--pgec-primary);
}

.pgec-footer-brand {
  color: var(--pgec-text-light);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.pgec-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.pgec-footer-promos .pgec-btn {
  flex: 1 1 auto;
  min-height: 3.6rem;
  font-size: 1.2rem;
  padding: 0 1rem;
}

.pgec-footer-links {
  columns: 2;
  column-gap: 1rem;
  margin: 1rem 0;
}

.pgec-footer-links a {
  display: block;
  padding: 0.4rem 0;
  font-size: 1.25rem;
  color: var(--pgec-text);
  break-inside: avoid;
}

.pgec-footer-copy {
  text-align: center;
  font-size: 1.15rem;
  color: var(--pgec-text);
  margin-top: 1rem;
  border-top: 0.1rem solid var(--pgec-border);
  padding-top: 1rem;
}

/* ===== Bottom nav ===== */
.pgec-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--pgec-bottom-nav-h);
  background: var(--pgec-bg);
  border-top: 0.2rem solid var(--pgec-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0, 0, 0, 0.4);
}

.pgec-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pgec-text);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.pgec-bottom-nav-btn:active {
  transform: scale(0.92);
}

.pgec-bottom-nav-btn .material-icons,
.pgec-bottom-nav-btn .fas,
.pgec-bottom-nav-btn .far,
.pgec-bottom-nav-btn .ionicon,
.pgec-bottom-nav-btn .bi {
  font-size: 2.4rem;
}

.pgec-bottom-nav-btn.pgec-nav-active {
  color: var(--pgec-primary);
}

.pgec-bottom-nav-btn.pgec-nav-active .material-icons,
.pgec-bottom-nav-btn.pgec-nav-active .fas,
.pgec-bottom-nav-btn.pgec-nav-active .ionicon {
  transform: translateY(-0.1rem);
}

.pgec-nav-badge {
  position: absolute;
  top: 0.6rem;
  right: 1.4rem;
  background: var(--pgec-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 1rem;
  padding: 0 0.4rem;
  min-width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pgec-bottom-nav-btn {
  position: relative;
}

/* Mobile bottom padding so content isn't hidden behind nav */
.pgec-main {
  padding-bottom: 7rem;
}

/* ===== Desktop adjustments ===== */
@media (min-width: 769px) {
  .pgec-bottom-nav {
    display: none;
  }
  .pgec-main {
    padding-bottom: 2rem;
  }
  .pgec-menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .pgec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 360px) {
  .pgec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pgec-btn {
    padding: 0 1rem;
    font-size: 1.2rem;
  }
}
