/**
 * 50Jili Ph - Core Stylesheet
 * Prefix: pg29-
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --pg29-primary: #FF4500;
  --pg29-secondary: #E65100;
  --pg29-accent: #FFB3BA;
  --pg29-light-pink: #F08080;
  --pg29-bg-dark: #2D2D2D;
  --pg29-bg-medium: #3A3A3A;
  --pg29-bg-light: #454545;
  --pg29-text-light: #FFB3BA;
  --pg29-text-white: #FFFFFF;
  --pg29-text-muted: #CCCCCC;
  --pg29-border: #555555;
  --pg29-radius: 1.2rem;
  --pg29-radius-sm: 0.8rem;
  --pg29-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --pg29-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--pg29-bg-dark);
  color: var(--pg29-text-white);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pg29-accent); text-decoration: none; transition: var(--pg29-transition); }
a:hover { color: var(--pg29-primary); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.pg29-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #2D2D2D 0%, #1E1E1E 100%);
  z-index: 1000;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--pg29-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pg29-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.pg29-logo-area img { width: 32px; height: 32px; border-radius: 6px; }
.pg29-logo-area span { font-size: 1.6rem; font-weight: 700; color: var(--pg29-primary); }
.pg29-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg29-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg29-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  min-height: 36px;
  min-width: 44px;
  transition: var(--pg29-transition);
}
.pg29-btn-register {
  background: var(--pg29-primary);
  color: var(--pg29-text-white);
}
.pg29-btn-register:hover { background: var(--pg29-secondary); transform: scale(1.05); }
.pg29-btn-login {
  background: transparent;
  color: var(--pg29-primary);
  border: 1.5px solid var(--pg29-primary);
}
.pg29-btn-login:hover { background: var(--pg29-primary); color: var(--pg29-text-white); }
.pg29-menu-btn {
  background: none;
  border: none;
  color: var(--pg29-text-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.pg29-mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--pg29-bg-dark);
  border-bottom: 2px solid var(--pg29-primary);
  z-index: 9999;
  padding: 1rem 0;
}
.pg29-mobile-menu a {
  display: block;
  padding: 1rem 1.6rem;
  color: var(--pg29-text-light);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--pg29-bg-light);
  transition: var(--pg29-transition);
}
.pg29-mobile-menu a:hover { background: var(--pg29-bg-medium); color: var(--pg29-primary); }

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

/* Carousel */
.pg29-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--pg29-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/9;
}
.pg29-carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.pg29-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg29-carousel-slide.pg29-carousel-active { display: block; }
.pg29-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.pg29-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--pg29-transition);
}
.pg29-carousel-dot.pg29-carousel-dot-active { background: var(--pg29-primary); width: 12px; border-radius: 4px; }

/* Section Headers */
.pg29-section { margin-bottom: 2rem; }
.pg29-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg29-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg29-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg29-section-title i { font-size: 2rem; }

/* Game Grid */
.pg29-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.pg29-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: var(--pg29-radius-sm);
  background: var(--pg29-bg-medium);
  transition: var(--pg29-transition);
  min-height: 44px;
}
.pg29-game-item:hover { transform: translateY(-2px); box-shadow: var(--pg29-shadow); }
.pg29-game-item img { width: 56px; height: 56px; border-radius: 8px; }
.pg29-game-item span {
  font-size: 1rem;
  color: var(--pg29-text-muted);
  text-align: center;
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Content Modules */
.pg29-card {
  background: var(--pg29-bg-medium);
  border-radius: var(--pg29-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--pg29-bg-light);
}
.pg29-card h2 { color: var(--pg29-primary); margin-bottom: 0.8rem; font-size: 1.7rem; }
.pg29-card h3 { color: var(--pg29-accent); margin-bottom: 0.6rem; font-size: 1.5rem; }
.pg29-card p { color: var(--pg29-text-muted); margin-bottom: 0.8rem; line-height: 1.6rem; }

/* Affiliate CTA */
.pg29-cta {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--pg29-primary), var(--pg29-secondary));
  color: var(--pg29-text-white);
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  border: none;
  border-radius: var(--pg29-radius);
  cursor: pointer;
  transition: var(--pg29-transition);
  margin: 1.5rem 0;
  min-height: 48px;
}
.pg29-cta:hover { transform: scale(1.02); box-shadow: 0 4px 15px rgba(255,69,0,0.4); }
.pg29-cta-sm {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--pg29-primary);
  color: var(--pg29-text-white);
  border-radius: var(--pg29-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg29-transition);
  font-size: 1.3rem;
}
.pg29-cta-sm:hover { background: var(--pg29-secondary); }

/* Bottom Navigation */
.pg29-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1E1E1E 0%, #111111 100%);
  border-top: 2px solid var(--pg29-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}
.pg29-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg29-text-muted);
  cursor: pointer;
  transition: var(--pg29-transition);
  gap: 2px;
  padding: 0.4rem;
}
.pg29-bottom-nav-btn i, .pg29-bottom-nav-btn .material-icons {
  font-size: 22px;
}
.pg29-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}
.pg29-bottom-nav-btn:hover, .pg29-bottom-nav-btn.pg29-nav-active {
  color: var(--pg29-primary);
  transform: scale(1.1);
}
.pg29-bottom-nav-btn.pg29-nav-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 3px;
  background: var(--pg29-primary);
  border-radius: 2px;
  margin-top: 1px;
}
@media (min-width: 769px) {
  .pg29-bottom-nav { display: none; }
  .pg29-main { padding-bottom: 1rem; }
}

/* Footer */
.pg29-footer {
  background: #1A1A1A;
  padding: 2rem 1rem 3rem;
  border-top: 2px solid var(--pg29-bg-light);
}
.pg29-footer-brand { margin-bottom: 1.5rem; }
.pg29-footer-brand p { color: var(--pg29-text-muted); font-size: 1.3rem; line-height: 1.6rem; }
.pg29-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.pg29-footer-links a {
  color: var(--pg29-accent);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--pg29-border);
  border-radius: var(--pg29-radius-sm);
  transition: var(--pg29-transition);
}
.pg29-footer-links a:hover { border-color: var(--pg29-primary); color: var(--pg29-primary); }
.pg29-footer-copy {
  color: #777;
  font-size: 1.1rem;
  text-align: center;
  border-top: 1px solid var(--pg29-bg-light);
  padding-top: 1rem;
}

/* Help Page Styles */
.pg29-help-title { font-size: 2rem; color: var(--pg29-primary); margin-bottom: 1rem; text-align: center; }
.pg29-help-section { margin-bottom: 1.5rem; }
.pg29-help-section h2 {
  color: var(--pg29-primary);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--pg29-primary);
}
.pg29-help-section h3 { color: var(--pg29-accent); font-size: 1.4rem; margin-bottom: 0.4rem; }
.pg29-help-section p, .pg29-help-section li { color: var(--pg29-text-muted); line-height: 1.6rem; }
.pg29-help-section ul { padding-left: 1.6rem; margin-bottom: 0.8rem; }
.pg29-help-section li { margin-bottom: 0.4rem; }

/* FAQ Accordion */
.pg29-faq-item { border: 1px solid var(--pg29-bg-light); border-radius: var(--pg29-radius-sm); margin-bottom: 0.8rem; overflow: hidden; }
.pg29-faq-q {
  padding: 1rem;
  background: var(--pg29-bg-medium);
  color: var(--pg29-accent);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pg29-faq-a { padding: 1rem; color: var(--pg29-text-muted); line-height: 1.6rem; }

/* Utility */
.pg29-text-center { text-align: center; }
.pg29-text-primary { color: var(--pg29-primary); }
.pg29-text-accent { color: var(--pg29-accent); }
.pg29-mb-1 { margin-bottom: 1rem; }
.pg29-mb-2 { margin-bottom: 2rem; }
.pg29-mt-1 { margin-top: 1rem; }

/* Internal link style */
.pg29-internal-link {
  color: var(--pg29-accent);
  text-decoration: underline;
  font-weight: 500;
}
.pg29-internal-link:hover { color: var(--pg29-primary); }

/* Winners showcase */
.pg29-winner-list { list-style: none; }
.pg29-winner-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--pg29-bg-light);
  font-size: 1.3rem;
}
.pg29-winner-name { color: var(--pg29-accent); font-weight: 600; }
.pg29-winner-amount { color: var(--pg29-primary); font-weight: 700; }

/* Payment methods */
.pg29-payment-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.pg29-payment-item {
  background: var(--pg29-bg-light);
  padding: 0.8rem 1.2rem;
  border-radius: var(--pg29-radius-sm);
  color: var(--pg29-text-muted);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* RTP Table */
.pg29-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.pg29-rtp-table th {
  background: var(--pg29-primary);
  color: var(--pg29-text-white);
  padding: 0.6rem;
  text-align: left;
}
.pg29-rtp-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--pg29-bg-light);
  color: var(--pg29-text-muted);
}
.pg29-rtp-table tr:nth-child(even) { background: var(--pg29-bg-medium); }
