/**
 * PT Gaming APK - Stylesheet
 * Website: ptgamingapk.click
 * Prefix: pge6-
 * Colors: #228B22 (forest green) | #F5F5F5 (off-white) | #E0FFFF (light cyan) | #2D2D2D (charcoal)
 */

/* === CSS Variables === */
:root {
  --pge6-primary: #228B22;
  --pge6-primary-dark: #1a6b1a;
  --pge6-primary-light: #2ea62e;
  --pge6-secondary: #E0FFFF;
  --pge6-bg: #2D2D2D;
  --pge6-bg-light: #3a3a3a;
  --pge6-bg-card: #363636;
  --pge6-text: #F5F5F5;
  --pge6-text-muted: #b0b0b0;
  --pge6-accent: #4ade80;
  --pge6-accent-gold: #fbbf24;
  --pge6-border: #4a4a4a;
  --pge6-shadow: rgba(0, 0, 0, 0.3);
  --pge6-radius: 10px;
  --pge6-radius-sm: 6px;
  --pge6-header-h: 56px;
  --pge6-bnav-h: 62px;
  --pge6-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--pge6-font);
  background: var(--pge6-bg);
  color: var(--pge6-text);
  font-size: 1.4rem;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}
a { color: var(--pge6-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pge6-accent-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.pge6-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pge6-header-h);
  background: linear-gradient(180deg, #1a6b1a 0%, #228B22 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; z-index: 1000;
  transition: box-shadow 0.3s, background 0.3s;
}
.pge6-header-scrolled {
  box-shadow: 0 2px 12px var(--pge6-shadow);
  background: linear-gradient(180deg, #145214 0%, #1a6b1a 100%);
}
.pge6-header-left { display: flex; align-items: center; gap: 8px; }
.pge6-header-logo { width: 28px; height: 28px; border-radius: 6px; }
.pge6-header-name {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  white-space: nowrap; letter-spacing: 0.3px;
}
.pge6-header-right { display: flex; align-items: center; gap: 8px; }
.pge6-header-btn {
  padding: 6px 14px; border-radius: var(--pge6-radius-sm);
  font-size: 1.2rem; font-weight: 600; border: none; cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}
.pge6-header-btn:active { transform: scale(0.94); }
.pge6-btn-register {
  background: var(--pge6-accent-gold); color: #1a1a1a;
}
.pge6-btn-login {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.pge6-btn-login:hover { border-color: #fff; }
.pge6-menu-toggle {
  background: none; border: none; color: #fff;
  font-size: 2.2rem; cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
}

/* === Mobile Menu === */
.pge6-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.pge6-backdrop-active { opacity: 1; pointer-events: auto; }
.pge6-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--pge6-bg-light); z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px 0; overflow-y: auto;
}
.pge6-menu-active { right: 0; }
.pge6-menu-header {
  padding: 12px 20px 20px; border-bottom: 1px solid var(--pge6-border);
  display: flex; justify-content: space-between; align-items: center;
}
.pge6-menu-title { font-size: 1.6rem; font-weight: 700; color: var(--pge6-accent); }
.pge6-menu-close {
  background: none; border: none; color: var(--pge6-text-muted);
  font-size: 2.4rem; cursor: pointer; line-height: 1;
}
.pge6-menu-list { padding: 8px 0; }
.pge6-menu-link {
  display: block; padding: 14px 24px; color: var(--pge6-text);
  font-size: 1.4rem; transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}
.pge6-menu-link:hover {
  background: rgba(34, 139, 34, 0.15); color: var(--pge6-accent);
  border-left-color: var(--pge6-primary);
}

/* === Main Content === */
main {
  padding-top: calc(var(--pge6-header-h) + 8px);
  padding-bottom: 20px;
}
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--pge6-bnav-h) + 20px); }
}

/* === Carousel === */
.pge6-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 0 0 12px 12px; margin-bottom: 16px;
}
.pge6-carousel-track { position: relative; width: 100%; aspect-ratio: 16/7; }
.pge6-carousel-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.6s ease; cursor: pointer;
}
.pge6-slide-active { opacity: 1; }
.pge6-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pge6-carousel-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 5;
}
.pge6-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.pge6-dot-active {
  background: var(--pge6-accent-gold); transform: scale(1.3);
}

/* === Sections === */
.pge6-section {
  padding: 16px 14px; margin-bottom: 12px;
}
.pge6-section-title {
  font-size: 1.7rem; font-weight: 700; color: var(--pge6-accent);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--pge6-primary);
  display: flex; align-items: center; gap: 8px;
}
.pge6-section-title .material-icons { font-size: 2rem; }

/* === Game Grid === */
.pge6-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
}
.pge6-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform 0.2s;
  text-align: center;
}
.pge6-game-item:active { transform: scale(0.93); }
.pge6-game-img {
  width: 72px; height: 72px; border-radius: 12px;
  object-fit: cover; border: 2px solid var(--pge6-border);
  transition: border-color 0.2s;
  background: var(--pge6-bg-card);
}
.pge6-game-item:hover .pge6-game-img { border-color: var(--pge6-primary); }
.pge6-game-name {
  font-size: 1.05rem; color: var(--pge6-text-muted);
  margin-top: 4px; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 80px;
}

/* === Category Tabs === */
.pge6-cat-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 12px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pge6-cat-tabs::-webkit-scrollbar { display: none; }
.pge6-cat-tab {
  padding: 6px 16px; border-radius: 20px; font-size: 1.2rem;
  font-weight: 600; white-space: nowrap; cursor: pointer;
  background: var(--pge6-bg-card); color: var(--pge6-text-muted);
  border: 1px solid var(--pge6-border); transition: all 0.2s;
}
.pge6-cat-tab:hover, .pge6-cat-tab.pge6-tab-active {
  background: var(--pge6-primary); color: #fff;
  border-color: var(--pge6-primary);
}

/* === Promo Buttons === */
.pge6-promo-btn {
  display: inline-block; padding: 10px 24px;
  background: linear-gradient(135deg, var(--pge6-primary) 0%, var(--pge6-primary-light) 100%);
  color: #fff; font-weight: 700; font-size: 1.4rem;
  border-radius: var(--pge6-radius); cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.2s;
  text-align: center;
}
.pge6-promo-btn:hover { box-shadow: 0 4px 16px rgba(34, 139, 34, 0.4); }
.pge6-promo-btn:active { transform: scale(0.95); }
.pge6-promo-btn-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1a1a;
}
.pge6-promo-text {
  color: var(--pge6-accent); font-weight: 600;
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Info Cards === */
.pge6-info-card {
  background: var(--pge6-bg-card); border-radius: var(--pge6-radius);
  padding: 16px; margin-bottom: 12px;
  border: 1px solid var(--pge6-border);
}
.pge6-info-card h3 {
  font-size: 1.5rem; color: var(--pge6-accent); margin-bottom: 8px;
}
.pge6-info-card p {
  color: var(--pge6-text-muted); font-size: 1.3rem; line-height: 1.6;
}

/* === Winner Showcase === */
.pge6-winner-list { display: flex; flex-direction: column; gap: 8px; }
.pge6-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--pge6-bg-card); padding: 10px 14px;
  border-radius: var(--pge6-radius-sm); border-left: 3px solid var(--pge6-accent-gold);
}
.pge6-winner-name { font-weight: 600; font-size: 1.3rem; }
.pge6-winner-game { color: var(--pge6-text-muted); font-size: 1.1rem; }
.pge6-winner-amount { color: var(--pge6-accent-gold); font-weight: 700; font-size: 1.4rem; }

/* === Testimonials === */
.pge6-testimonial {
  background: var(--pge6-bg-card); padding: 14px; border-radius: var(--pge6-radius);
  margin-bottom: 10px; border-left: 3px solid var(--pge6-primary);
}
.pge6-testimonial-text { color: var(--pge6-text-muted); font-size: 1.3rem; line-height: 1.5; font-style: italic; }
.pge6-testimonial-author { margin-top: 8px; font-weight: 600; color: var(--pge6-accent); font-size: 1.2rem; }

/* === Payment Methods === */
.pge6-payment-grid {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.pge6-payment-item {
  background: var(--pge6-bg-card); padding: 8px 14px;
  border-radius: var(--pge6-radius-sm); font-size: 1.2rem;
  color: var(--pge6-text); border: 1px solid var(--pge6-border);
}

/* === FAQ Accordion === */
.pge6-faq-item { margin-bottom: 8px; }
.pge6-faq-q {
  font-weight: 600; color: var(--pge6-accent); font-size: 1.35rem;
  margin-bottom: 4px;
}
.pge6-faq-a { color: var(--pge6-text-muted); font-size: 1.25rem; padding-left: 12px; border-left: 2px solid var(--pge6-primary); }

/* === Footer === */
.pge6-footer {
  background: linear-gradient(180deg, var(--pge6-bg) 0%, #222 100%);
  padding: 24px 16px 16px; border-top: 2px solid var(--pge6-primary);
  margin-top: 20px;
}
.pge6-footer-brand { font-size: 1.3rem; color: var(--pge6-text-muted); line-height: 1.6; margin-bottom: 16px; }
.pge6-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
  justify-content: center;
}
.pge6-footer-promo-btn {
  padding: 8px 16px; border-radius: var(--pge6-radius-sm);
  background: var(--pge6-primary); color: #fff; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: background 0.2s;
}
.pge6-footer-promo-btn:hover { background: var(--pge6-primary-light); }
.pge6-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  justify-content: center; margin-bottom: 16px;
}
.pge6-footer-link { font-size: 1.15rem; color: var(--pge6-text-muted); }
.pge6-footer-link:hover { color: var(--pge6-accent); }
.pge6-footer-copy {
  text-align: center; font-size: 1.1rem; color: var(--pge6-text-muted);
  padding-top: 12px; border-top: 1px solid var(--pge6-border);
}

/* === Bottom Navigation === */
.pge6-bnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pge6-bnav-h);
  background: linear-gradient(180deg, #1f1f1f 0%, #181818 100%);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--pge6-primary);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
@media (min-width: 769px) { .pge6-bnav { display: none; } }

.pge6-bnav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 54px;
  background: none; border: none; cursor: pointer;
  color: var(--pge6-text-muted); transition: color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.pge6-bnav-btn:active { transform: scale(0.88); }
.pge6-bnav-btn .pge6-bnav-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 2px; }
.pge6-bnav-btn .pge6-bnav-label { font-size: 1rem; font-weight: 500; }
.pge6-bnav-active { color: var(--pge6-accent); }
.pge6-bnav-btn:hover { color: var(--pge6-accent); }

/* Unique badge style for promo buttons */
.pge6-bnav-badge {
  position: absolute; top: 2px; right: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #ef4444; font-size: 0.9rem; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.pge6-bnav-btn { position: relative; }

/* === CTA Banner === */
.pge6-cta-banner {
  background: linear-gradient(135deg, var(--pge6-primary) 0%, #1a8a1a 100%);
  padding: 20px 16px; text-align: center; border-radius: var(--pge6-radius);
  margin: 16px 0;
}
.pge6-cta-banner h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.pge6-cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.3rem; margin-bottom: 14px; }

/* === Utility === */
.pge6-text-center { text-align: center; }
.pge6-mb-8 { margin-bottom: 8px; }
.pge6-mb-16 { margin-bottom: 16px; }
.pge6-mt-12 { margin-top: 12px; }
.pge6-hidden { display: none; }

/* === Responsive Fine-tuning === */
@media (max-width: 360px) {
  .pge6-game-grid { grid-template-columns: repeat(3, 1fr); }
  .pge6-header-name { font-size: 1.3rem; }
}
@media (min-width: 769px) {
  .pge6-header { border-radius: 0 0 12px 12px; }
  .pge6-bnav { display: none; }
}
