/* gg77 Core Stylesheet - pg6d prefix */
/* CSS Variables */
:root {
  --pg6d-primary: #9932CC;
  --pg6d-secondary: #4B0082;
  --pg6d-bg: #1E1E1E;
  --pg6d-bg-light: #2A2A2A;
  --pg6d-bg-card: #252525;
  --pg6d-text: #F8F8FF;
  --pg6d-text-muted: #BDC3C7;
  --pg6d-accent: #9932CC;
  --pg6d-accent2: #4B0082;
  --pg6d-border: #3A3A3A;
  --pg6d-radius: 8px;
  --pg6d-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--pg6d-bg);
  color: var(--pg6d-text);
  line-height: 1.6rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Container */
.pg6d-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg6d-wrapper { padding: 1rem 0; }

/* Header */
.pg6d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--pg6d-secondary), var(--pg6d-bg));
  border-bottom: 1px solid var(--pg6d-border);
  max-width: 430px; margin: 0 auto;
}
.pg6d-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; max-width: 430px; margin: 0 auto;
}
.pg6d-logo-area { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.pg6d-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.pg6d-site-name { font-size: 1.6rem; font-weight: 700; color: var(--pg6d-text); letter-spacing: 1px; }
.pg6d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg6d-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: var(--pg6d-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.25s ease; text-decoration: none; min-height: 36px;
}
.pg6d-btn-register {
  background: linear-gradient(135deg, var(--pg6d-primary), var(--pg6d-accent2));
  color: var(--pg6d-text);
}
.pg6d-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 16px rgba(153,50,204,0.5); }
.pg6d-btn-login {
  background: transparent; color: var(--pg6d-primary);
  border: 1.5px solid var(--pg6d-primary);
}
.pg6d-btn-login:hover { background: rgba(153,50,204,0.15); }
.pg6d-menu-toggle {
  background: none; border: none; color: var(--pg6d-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* Mobile Menu */
.pg6d-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--pg6d-bg-light); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto;
  border-left: 1px solid var(--pg6d-border);
}
.pg6d-menu-active { right: 0; }
.pg6d-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--pg6d-border);
}
.pg6d-menu-title { font-size: 1.6rem; font-weight: 700; color: var(--pg6d-primary); }
.pg6d-menu-close { background: none; border: none; color: var(--pg6d-text); font-size: 2.2rem; cursor: pointer; }
.pg6d-menu-links { list-style: none; padding: 1rem 0; }
.pg6d-menu-links li { border-bottom: 1px solid var(--pg6d-border); }
.pg6d-menu-links a {
  display: block; padding: 1rem 1.4rem; color: var(--pg6d-text);
  text-decoration: none; font-size: 1.4rem; transition: background 0.2s;
}
.pg6d-menu-links a:hover { background: rgba(153,50,204,0.12); color: var(--pg6d-primary); }

/* Menu Overlay */
.pg6d-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0;
  pointer-events: none; transition: opacity 0.3s;
}
.pg6d-overlay-active { opacity: 1; pointer-events: all; }

/* Carousel */
.pg6d-carousel { position: relative; overflow: hidden; margin-top: 52px; }
.pg6d-carousel-track { display: flex; transition: transform 0.5s ease; }
.pg6d-carousel-slide { min-width: 100%; display: none; }
.pg6d-slide-active { display: block; }
.pg6d-carousel-slide img { width: 100%; height: auto; display: block; cursor: pointer; }
.pg6d-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.pg6d-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: background 0.3s;
}
.pg6d-dot-active { background: var(--pg6d-primary); transform: scale(1.2); }

/* Main Content */
main { padding-top: 1rem; padding-bottom: 2rem; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* Section titles */
.pg6d-section-title {
  font-size: 1.8rem; font-weight: 700; margin: 1.6rem 0 1rem;
  padding-left: 1rem; border-left: 3px solid var(--pg6d-primary);
  color: var(--pg6d-text); line-height: 2.2rem;
}
.pg6d-section-title span { color: var(--pg6d-primary); }

/* H1 */
.pg6d-h1 {
  font-size: 2rem; font-weight: 800; text-align: center;
  padding: 1.2rem 0.8rem; line-height: 2.6rem; color: var(--pg6d-text);
}
.pg6d-h1 span { color: var(--pg6d-primary); }

/* Game Grid */
.pg6d-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0.6rem 0;
}
.pg6d-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform 0.2s; text-decoration: none;
}
.pg6d-game-item:hover { transform: translateY(-3px); }
.pg6d-game-item img {
  width: 72px; height: 72px; border-radius: 10px;
  border: 2px solid var(--pg6d-border); object-fit: cover;
  transition: border-color 0.2s;
}
.pg6d-game-item:hover img { border-color: var(--pg6d-primary); }
.pg6d-game-name {
  font-size: 1.1rem; color: var(--pg6d-text-muted); text-align: center;
  margin-top: 0.3rem; line-height: 1.3rem; max-width: 80px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Cards */
.pg6d-card {
  background: var(--pg6d-bg-card); border-radius: var(--pg6d-radius);
  padding: 1.4rem; margin: 0.8rem 0; border: 1px solid var(--pg6d-border);
}
.pg6d-card h3 {
  font-size: 1.5rem; color: var(--pg6d-primary); margin-bottom: 0.8rem;
}
.pg6d-card p { color: var(--pg6d-text-muted); line-height: 2rem; font-size: 1.3rem; }

/* Affiliate text link */
.pg6d-affiliate-link {
  color: var(--pg6d-primary); font-weight: 700; cursor: pointer;
  text-decoration: none; border-bottom: 1px dashed var(--pg6d-primary);
  transition: color 0.2s;
}
.pg6d-affiliate-link:hover { color: #B366E0; }

/* CTA Button */
.pg6d-cta-btn {
  display: block; width: 100%; max-width: 320px; margin: 1.5rem auto;
  padding: 1.2rem; text-align: center; border-radius: 50px;
  background: linear-gradient(135deg, var(--pg6d-primary), var(--pg6d-accent2));
  color: var(--pg6d-text); font-size: 1.5rem; font-weight: 700;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.3s; box-shadow: 0 4px 20px rgba(153,50,204,0.4);
}
.pg6d-cta-btn:hover { transform: scale(1.03); box-shadow: 0 6px 28px rgba(153,50,204,0.6); }

/* FAQ */
.pg6d-faq-item { margin: 0.8rem 0; }
.pg6d-faq-q {
  font-size: 1.4rem; font-weight: 600; color: var(--pg6d-text);
  padding: 0.8rem 0; border-bottom: 1px solid var(--pg6d-border);
}
.pg6d-faq-a { font-size: 1.3rem; color: var(--pg6d-text-muted); padding: 0.6rem 0; line-height: 2rem; }

/* Footer */
.pg6d-footer {
  background: var(--pg6d-bg-light); padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--pg6d-border); margin-top: 2rem;
}
.pg6d-footer-brand { font-size: 1.3rem; color: var(--pg6d-text-muted); line-height: 2rem; margin-bottom: 1.2rem; }
.pg6d-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 1rem 0; }
.pg6d-footer-links a { color: var(--pg6d-primary); font-size: 1.2rem; text-decoration: none; }
.pg6d-footer-links a:hover { text-decoration: underline; }
.pg6d-footer-copy { font-size: 1.1rem; color: #666; text-align: center; padding-top: 1rem; border-top: 1px solid var(--pg6d-border); }

/* Bottom Navigation */
.pg6d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--pg6d-bg-light), #111);
  border-top: 1px solid var(--pg6d-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
}
.pg6d-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; background: none; border: none;
  color: var(--pg6d-text-muted); cursor: pointer; transition: all 0.25s;
  text-decoration: none; gap: 2px;
}
.pg6d-bottom-nav-btn:hover, .pg6d-nav-current { color: var(--pg6d-primary); transform: scale(1.08); }
.pg6d-bottom-nav-btn .pg6d-nav-icon { font-size: 22px; line-height: 1; }
.pg6d-bottom-nav-btn .pg6d-nav-label { font-size: 1rem; line-height: 1.2; }
.pg6d-nav-current .pg6d-nav-icon { text-shadow: 0 0 10px rgba(153,50,204,0.6); }

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

/* Utilities */
.pg6d-text-center { text-align: center; }
.pg6d-text-sm { font-size: 1.2rem; }
.pg6d-mt-1 { margin-top: 0.8rem; }
.pg6d-mb-1 { margin-bottom: 0.8rem; }
.pg6d-mt-2 { margin-top: 1.6rem; }
.pg6d-hidden { display: none; }

/* Content sections */
.pg6d-content-section { padding: 0.8rem 1.2rem; }
.pg6d-content-section p { color: var(--pg6d-text-muted); line-height: 2rem; font-size: 1.3rem; margin-bottom: 0.6rem; }
.pg6d-content-section h2 { font-size: 1.6rem; color: var(--pg6d-text); margin: 1.4rem 0 0.8rem; }
.pg6d-content-section h3 { font-size: 1.4rem; color: var(--pg6d-primary); margin: 1rem 0 0.6rem; }
.pg6d-content-section ul { padding-left: 1.6rem; color: var(--pg6d-text-muted); }
.pg6d-content-section li { margin: 0.4rem 0; line-height: 2rem; font-size: 1.3rem; }

/* Winner showcase */
.pg6d-winner-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--pg6d-border);
}
.pg6d-winner-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pg6d-primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--pg6d-text); }
.pg6d-winner-info { flex: 1; }
.pg6d-winner-name { font-size: 1.2rem; font-weight: 600; color: var(--pg6d-text); }
.pg6d-winner-game { font-size: 1.1rem; color: var(--pg6d-text-muted); }
.pg6d-winner-amount { font-size: 1.3rem; font-weight: 700; color: #FFD700; }

/* Testimonial */
.pg6d-testimonial {
  background: var(--pg6d-bg-card); border-radius: var(--pg6d-radius);
  padding: 1rem; margin: 0.6rem 0; border-left: 3px solid var(--pg6d-primary);
}
.pg6d-testimonial p { font-style: italic; color: var(--pg6d-text-muted); font-size: 1.2rem; line-height: 1.8rem; }
.pg6d-testimonial-author { font-size: 1.1rem; color: var(--pg6d-primary); margin-top: 0.5rem; font-weight: 600; }

/* Payment methods */
.pg6d-payment-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.pg6d-payment-item {
  background: var(--pg6d-bg-card); border: 1px solid var(--pg6d-border);
  border-radius: var(--pg6d-radius); padding: 0.6rem 1rem; font-size: 1.2rem;
  color: var(--pg6d-text-muted);
}

/* RTP Table */
.pg6d-rtp-table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; }
.pg6d-rtp-table th {
  background: var(--pg6d-primary); color: var(--pg6d-text);
  padding: 0.6rem 0.8rem; font-size: 1.2rem; text-align: left;
}
.pg6d-rtp-table td {
  padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--pg6d-border);
  font-size: 1.2rem; color: var(--pg6d-text-muted);
}
.pg6d-rtp-table tr:hover td { background: rgba(153,50,204,0.08); }

/* Category highlights */
.pg6d-category-card {
  background: linear-gradient(135deg, var(--pg6d-bg-card), var(--pg6d-bg-light));
  border: 1px solid var(--pg6d-border); border-radius: var(--pg6d-radius);
  padding: 1rem; margin: 0.6rem 0; cursor: pointer; transition: all 0.2s;
}
.pg6d-category-card:hover { border-color: var(--pg6d-primary); transform: translateX(4px); }
.pg6d-category-card h3 { font-size: 1.3rem; color: var(--pg6d-primary); margin-bottom: 0.4rem; }
.pg6d-category-card p { font-size: 1.1rem; color: var(--pg6d-text-muted); }

/* App download section */
.pg6d-app-section {
  background: linear-gradient(135deg, var(--pg6d-accent2), var(--pg6d-primary));
  border-radius: var(--pg6d-radius); padding: 1.4rem; margin: 1rem 0; text-align: center;
}
.pg6d-app-section h3 { font-size: 1.5rem; color: var(--pg6d-text); margin-bottom: 0.6rem; }
.pg6d-app-section p { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.pg6d-app-btn {
  display: inline-block; padding: 0.8rem 2rem; background: var(--pg6d-text);
  color: var(--pg6d-accent2); border-radius: 50px; font-weight: 700;
  font-size: 1.3rem; cursor: pointer; border: none; transition: transform 0.2s;
}
.pg6d-app-btn:hover { transform: scale(1.05); }

/* Internal link */
.pg6d-internal-link { color: var(--pg6d-primary); text-decoration: none; }
.pg6d-internal-link:hover { text-decoration: underline; }

/* Responsive fine-tuning */
@media (max-width: 360px) {
  .pg6d-game-grid { grid-template-columns: repeat(3, 1fr); }
  .pg6d-game-item img { width: 64px; height: 64px; }
}
