/* takaba theme stylesheet - all classes use the pge9- prefix */
:root {
  --pge9-bg: #2C2C2C;
  --pge9-primary: #0000CD;
  --pge9-accent: #40E0D0;
  --pge9-light: #E0FFFF;
  --pge9-muted: #DEE2E6;
  --pge9-dark: #1a1a1a;
  --pge9-gold: #FFD700;
  --pge9-radius: 12px;
}

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

html { font-size: 62.5%; }

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, #1a1a1a 0%, #2C2C2C 50%, #15123a 100%);
  color: var(--pge9-light);
  font-size: 1.5rem;
  line-height: 1.5rem;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

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

.pge9-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: rgba(20, 18, 40, 0.55);
  box-shadow: 0 0 40px rgba(0, 0, 205, 0.18);
}

/* ============ HEADER ============ */
.pge9-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: linear-gradient(90deg, #0000CD, #1a0f8a);
  border-bottom: 2px solid var(--pge9-accent);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.pge9-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--pge9-light);
  font-weight: 800;
  font-size: 1.7rem;
}
.pge9-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pge9-logo span { background: linear-gradient(90deg, #40E0D0, #E0FFFF); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

.pge9-btn {
  border: none;
  border-radius: 20px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.pge9-btn:active { transform: scale(0.95); }
.pge9-btn-login { background: transparent; color: var(--pge9-light); border: 1px solid var(--pge9-accent); }
.pge9-btn-register { background: linear-gradient(90deg, #40E0D0, #00b8a0); color: #0a1a3a; box-shadow: 0 3px 10px rgba(64, 224, 208, 0.45); }

.pge9-menu-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pge9-light);
  border: 1px solid var(--pge9-accent);
  border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ============ MOBILE MENU ============ */
.pge9-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(10, 8, 30, 0.97);
  border-bottom: 1px solid rgba(64, 224, 208, 0.3);
}
.pge9-mobile-menu.pge9-menu-open { max-height: 480px; }
.pge9-mobile-menu-inner { display: flex; flex-direction: column; padding: 0.5rem 1rem; }
.pge9-mobile-menu-inner a {
  color: var(--pge9-light);
  padding: 1rem 0.5rem;
  border-bottom: 1px dashed rgba(64, 224, 208, 0.18);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pge9-mobile-menu-inner a:last-child { border-bottom: none; }
.pge9-mobile-menu-inner a i { color: var(--pge9-accent); width: 22px; text-align: center; }

/* ============ CAROUSEL ============ */
.pge9-carousel {
  position: relative;
  margin: 1rem;
  border-radius: var(--pge9-radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 205, 0.35);
}
.pge9-slides { position: relative; }
.pge9-slide {
  display: none;
  cursor: pointer;
  position: relative;
}
.pge9-slide.pge9-slide-active { display: block; }
.pge9-slide img { width: 100%; height: 180px; object-fit: cover; }
.pge9-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--pge9-light);
  font-weight: 700;
  font-size: 1.5rem;
}
.pge9-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.pge9-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.pge9-dot.pge9-dot-active { background: var(--pge9-accent); }

/* ============ SECTIONS ============ */
.pge9-section {
  padding: 1.5rem 1rem;
}
.pge9-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--pge9-accent);
  color: var(--pge9-light);
}
.pge9-h1 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin: 1rem 0;
  background: linear-gradient(90deg, #40E0D0, #E0FFFF, #40E0D0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 2.4rem;
}

.pge9-intro {
  background: rgba(0, 0, 205, 0.18);
  border-radius: var(--pge9-radius);
  padding: 1.2rem;
  border: 1px solid rgba(64, 224, 208, 0.25);
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--pge9-muted);
}
.pge9-intro strong { color: var(--pge9-accent); }

.pge9-intro a, .pge9-prose a { color: var(--pge9-accent); font-weight: 700; text-decoration: underline; }

.pge9-prose {
  font-size: 1.4rem;
  line-height: 2.3rem;
  color: var(--pge9-muted);
}
.pge9-prose h2 {
  color: var(--pge9-light);
  font-size: 1.7rem;
  margin: 1.2rem 0 0.6rem;
}
.pge9-prose h3 {
  color: var(--pge9-accent);
  font-size: 1.5rem;
  margin: 1rem 0 0.4rem;
}
.pge9-prose p { margin-bottom: 0.8rem; }
.pge9-prose ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.pge9-prose li { margin-bottom: 0.4rem; }

/* ============ GAME GRID ============ */
.pge9-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 0.8rem;
}
.pge9-cat-head h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pge9-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pge9-cat-head h2 i { color: var(--pge9-accent); }

.pge9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.pge9-game-card {
  background: linear-gradient(160deg, rgba(0, 0, 205, 0.25), rgba(64, 224, 208, 0.08));
  border: 1px solid rgba(64, 224, 208, 0.25);
  border-radius: var(--pge9-radius);
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pge9-game-card:active { transform: scale(0.94); }
.pge9-game-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}
.pge9-game-card-name {
  font-size: 1.15rem;
  color: var(--pge9-light);
  font-weight: 600;
  line-height: 1.4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============ FEATURES / MODULES ============ */
.pge9-card {
  background: rgba(0, 0, 205, 0.15);
  border: 1px solid rgba(64, 224, 208, 0.22);
  border-radius: var(--pge9-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.pge9-card h2 { color: var(--pge9-light); font-size: 1.7rem; margin-bottom: 0.7rem; }
.pge9-card h3 { color: var(--pge9-accent); font-size: 1.45rem; margin: 0.6rem 0 0.3rem; }
.pge9-card p { color: var(--pge9-muted); line-height: 2.2rem; font-size: 1.4rem; }

.pge9-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.pge9-feature-item {
  background: rgba(64, 224, 208, 0.08);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}
.pge9-feature-item i { font-size: 2.2rem; color: var(--pge9-accent); margin-bottom: 0.4rem; }
.pge9-feature-item strong { display: block; color: var(--pge9-light); font-size: 1.3rem; }
.pge9-feature-item span { color: var(--pge9-muted); font-size: 1.15rem; }

.pge9-rtp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(64, 224, 208, 0.18);
  font-size: 1.35rem;
}
.pge9-rtp-row:last-child { border-bottom: none; }
.pge9-rtp-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 0.8rem;
  overflow: hidden;
}
.pge9-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, #40E0D0, #0000CD); }
.pge9-rtp-value { color: var(--pge9-accent); font-weight: 700; min-width: 42px; text-align: right; }

.pge9-testimonial {
  background: rgba(0, 0, 205, 0.12);
  border-left: 3px solid var(--pge9-accent);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
  color: var(--pge9-muted);
}
.pge9-testimonial strong { color: var(--pge9-light); display: block; margin-bottom: 0.3rem; }
.pge9-stars { color: var(--pge9-gold); font-size: 1.1rem; }

.pge9-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.pge9-pay-grid div {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.7rem 0.3rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--pge9-muted);
}
.pge9-pay-grid i { font-size: 1.8rem; color: var(--pge9-accent); display: block; margin-bottom: 0.2rem; }

.pge9-winners {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.pge9-winner-card {
  flex: 0 0 140px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(0, 0, 205, 0.18));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 0.7rem;
  text-align: center;
}
.pge9-winner-card strong { color: var(--pge9-gold); font-size: 1.3rem; display: block; }
.pge9-winner-card span { color: var(--pge9-muted); font-size: 1.15rem; }

.pge9-cta {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #0000CD, #40E0D0);
  color: var(--pge9-light);
  font-weight: 800;
  font-size: 1.6rem;
  padding: 1.2rem;
  border-radius: var(--pge9-radius);
  margin: 1rem 0;
  box-shadow: 0 5px 18px rgba(0, 0, 205, 0.5);
  cursor: pointer;
}
.pge9-cta:active { transform: scale(0.97); }
.pge9-cta-text { text-align: center; }
.pge9-cta-text a { font-weight: 800; font-size: 1.5rem; }

.pge9-app-cta {
  background: linear-gradient(135deg, #1a0f8a, #40E0D0);
  border-radius: var(--pge9-radius);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.pge9-app-cta i { font-size: 3rem; color: var(--pge9-light); }
.pge9-app-cta div strong { display: block; color: var(--pge9-light); font-size: 1.5rem; }
.pge9-app-cta div span { color: var(--pge9-light); font-size: 1.2rem; }

/* ============ FOOTER ============ */
.pge9-footer {
  background: linear-gradient(180deg, #0a0820, #000);
  padding: 1.5rem 1rem 2rem;
  margin-top: 1rem;
  border-top: 2px solid var(--pge9-accent);
}
.pge9-footer-brand {
  color: var(--pge9-muted);
  font-size: 1.3rem;
  line-height: 2rem;
  margin-bottom: 1rem;
}
.pge9-footer-brand strong { color: var(--pge9-accent); }
.pge9-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pge9-footer-promos button {
  background: linear-gradient(90deg, #0000CD, #40E0D0);
  color: var(--pge9-light);
  border: none;
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.pge9-footer-promos button:active { transform: scale(0.96); }

.pge9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(64, 224, 208, 0.2);
  margin-bottom: 0.8rem;
}
.pge9-footer-links a { color: var(--pge9-muted); font-size: 1.2rem; }
.pge9-footer-links a:hover { color: var(--pge9-accent); }

.pge9-footer-copy {
  text-align: center;
  color: rgba(222, 226, 230, 0.5);
  font-size: 1.15rem;
  margin-top: 0.5rem;
}

/* ============ BOTTOM NAV ============ */
.pge9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(90deg, #0a0820, #1a0f8a, #0a0820);
  border-top: 2px solid var(--pge9-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.55);
}
.pge9-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pge9-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pge9-bottom-nav-btn i,
.pge9-bottom-nav-btn .material-icons-outlined {
  font-size: 22px;
}
.pge9-bottom-nav-btn:active { transform: scale(0.9); }
.pge9-bottom-nav-btn:hover { color: var(--pge9-light); }
.pge9-bottom-nav-active { color: var(--pge9-accent); }
.pge9-bottom-nav-active i,
.pge9-bottom-nav-active .material-icons-outlined { color: var(--pge9-accent); }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .pge9-bottom-nav { display: none; }
}
/* Mobile: add bottom padding for clearance */
@media (max-width: 768px) {
  .pge9-wrapper { padding-bottom: 80px; }
}

/* Desktop wider layout for preview */
@media (min-width: 431px) {
  body { background-attachment: fixed; }
}
