/**
 * Ninong Gaming APK - Core Stylesheet
 * All classes use prefix: w8d76-
 * Color palette: #3A3A3A | #FFB6C1 | #BF360C | #C9C9FF | #FF8A80
 * Mobile-first responsive design (max-width: 430px)
 */

/* CSS Variables */
:root {
  --w8d76-primary: #BF360C;
  --w8d76-primary-light: #FF8A80;
  --w8d76-accent: #FFB6C1;
  --w8d76-accent-alt: #C9C9FF;
  --w8d76-bg: #3A3A3A;
  --w8d76-bg-dark: #2A2A2A;
  --w8d76-bg-card: #4A4A4A;
  --w8d76-bg-light: #525252;
  --w8d76-text: #FFFFFF;
  --w8d76-text-muted: #D0D0D0;
  --w8d76-text-dim: #A0A0A0;
  --w8d76-border: #5A5A5A;
  --w8d76-success: #4CAF50;
  --w8d76-warning: #FFB300;
  --w8d76-radius: 8px;
  --w8d76-radius-lg: 12px;
  --w8d76-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --w8d76-transition: all 0.3s ease;
}

/* Reset and 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, 'Helvetica Neue', Arial, sans-serif;
  background: var(--w8d76-bg);
  color: var(--w8d76-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w8d76-accent); text-decoration: none; transition: var(--w8d76-transition); }
a:hover { color: var(--w8d76-primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.w8d76-container { width: 100%; padding: 0 1.2rem; max-width: 430px; margin: 0 auto; }
.w8d76-wrapper { padding: 1.2rem 0; }
.w8d76-main { padding-top: 5.6rem; padding-bottom: 0; }

/* Header */
.w8d76-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--w8d76-bg-dark);
  border-bottom: 1px solid var(--w8d76-border);
  max-width: 430px; margin: 0 auto;
}
.w8d76-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 5.6rem;
}
.w8d76-logo-area { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.w8d76-logo-area img { width: 3.2rem; height: 3.2rem; border-radius: 6px; }
.w8d76-logo-text { font-size: 1.4rem; font-weight: 700; color: var(--w8d76-accent); white-space: nowrap; }
.w8d76-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w8d76-btn-register, .w8d76-btn-login {
  padding: 0.5rem 1.2rem; border-radius: var(--w8d76-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--w8d76-transition); white-space: nowrap;
}
.w8d76-btn-register {
  background: var(--w8d76-primary); color: var(--w8d76-text);
}
.w8d76-btn-register:hover { background: var(--w8d76-primary-light); transform: scale(1.03); }
.w8d76-btn-login {
  background: transparent; color: var(--w8d76-accent);
  border: 1px solid var(--w8d76-accent);
}
.w8d76-btn-login:hover { background: var(--w8d76-accent); color: var(--w8d76-bg-dark); }
.w8d76-menu-toggle {
  background: none; border: none; color: var(--w8d76-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.w8d76-mobile-menu {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  background: var(--w8d76-bg-dark); border-top: 1px solid var(--w8d76-border);
}
.w8d76-menu-active { max-height: 400px !important; }
.w8d76-mobile-menu ul { padding: 0.8rem 0; }
.w8d76-mobile-menu li a {
  display: block; padding: 1rem 1.6rem; color: var(--w8d76-text-muted);
  font-size: 1.3rem; transition: var(--w8d76-transition);
}
.w8d76-mobile-menu li a:hover { background: var(--w8d76-bg-card); color: var(--w8d76-accent); }

/* Carousel */
.w8d76-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--w8d76-radius-lg); margin-bottom: 1.2rem;
}
.w8d76-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
}
.w8d76-slide-active { display: block; }
.w8d76-slide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--w8d76-radius-lg); }
.w8d76-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 5;
}
.w8d76-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--w8d76-transition);
  border: none;
}
.w8d76-dot-active { background: var(--w8d76-primary-light); transform: scale(1.3); }

/* Section */
.w8d76-section { padding: 1.6rem 1.2rem; }
.w8d76-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--w8d76-accent);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--w8d76-primary);
}
.w8d76-section-subtitle {
  font-size: 1.5rem; font-weight: 600; color: var(--w8d76-accent);
  margin: 1.2rem 0 0.8rem;
}

/* Category Header */
.w8d76-cat-header {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1rem; padding: 0.6rem 0;
}
.w8d76-cat-icon { font-size: 2rem; color: var(--w8d76-primary-light); }
.w8d76-cat-title {
  font-size: 1.5rem; font-weight: 700; color: var(--w8d76-text);
}

/* Game Grid */
.w8d76-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1.6rem;
}
.w8d76-game-item {
  text-align: center; cursor: pointer; transition: var(--w8d76-transition);
  border-radius: var(--w8d76-radius); padding: 0.4rem;
}
.w8d76-game-item:hover { transform: translateY(-2px); background: var(--w8d76-bg-card); }
.w8d76-game-item img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--w8d76-radius); margin-bottom: 0.3rem;
}
.w8d76-game-name {
  font-size: 1.05rem; color: var(--w8d76-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3rem;
}

/* Buttons */
.w8d76-btn {
  display: inline-block; padding: 0.8rem 2rem;
  border-radius: var(--w8d76-radius); font-size: 1.3rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: var(--w8d76-transition); text-align: center;
}
.w8d76-btn-primary {
  background: linear-gradient(135deg, var(--w8d76-primary), var(--w8d76-primary-light));
  color: var(--w8d76-text);
}
.w8d76-btn-primary:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(191,54,12,0.4); }
.w8d76-btn-accent { background: var(--w8d76-accent); color: var(--w8d76-bg-dark); }
.w8d76-btn-accent:hover { background: var(--w8d76-accent-alt); }
.w8d76-btn-outline {
  background: transparent; color: var(--w8d76-accent);
  border: 1.5px solid var(--w8d76-accent);
}
.w8d76-btn-outline:hover { background: var(--w8d76-accent); color: var(--w8d76-bg-dark); }
.w8d76-btn-full { width: 100%; display: block; }

/* Cards */
.w8d76-card {
  background: var(--w8d76-bg-card); border-radius: var(--w8d76-radius-lg);
  padding: 1.4rem; margin-bottom: 1.2rem; box-shadow: var(--w8d76-shadow);
}
.w8d76-card-title {
  font-size: 1.4rem; font-weight: 600; color: var(--w8d76-accent);
  margin-bottom: 0.8rem;
}
.w8d76-card p { color: var(--w8d76-text-muted); line-height: 1.6rem; margin-bottom: 0.6rem; }

/* Promo Banner */
.w8d76-promo-banner {
  background: linear-gradient(135deg, var(--w8d76-primary), #D84315);
  border-radius: var(--w8d76-radius-lg); padding: 1.6rem;
  text-align: center; margin: 1.2rem 0; cursor: pointer;
  transition: var(--w8d76-transition);
}
.w8d76-promo-banner:hover { transform: scale(1.02); }
.w8d76-promo-banner h3 { font-size: 1.6rem; color: var(--w8d76-text); margin-bottom: 0.6rem; }
.w8d76-promo-banner p { color: var(--w8d76-accent); font-size: 1.2rem; }

/* Content text */
.w8d76-text { color: var(--w8d76-text-muted); line-height: 1.7rem; margin-bottom: 1rem; }
.w8d76-text-highlight { color: var(--w8d76-accent); font-weight: 600; }
.w8d76-text-promo {
  color: var(--w8d76-primary-light); font-weight: 700;
  cursor: pointer; text-decoration: underline;
}
.w8d76-text-promo:hover { color: var(--w8d76-accent); }

/* FAQ */
.w8d76-faq-item { margin-bottom: 1rem; }
.w8d76-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--w8d76-accent);
  margin-bottom: 0.4rem; padding-left: 1rem; position: relative;
}
.w8d76-faq-q::before {
  content: 'Q'; position: absolute; left: 0; color: var(--w8d76-primary-light);
  font-weight: 700;
}
.w8d76-faq-a {
  font-size: 1.2rem; color: var(--w8d76-text-muted); padding-left: 1rem;
  line-height: 1.6rem;
}

/* Footer */
.w8d76-footer {
  background: var(--w8d76-bg-dark); padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--w8d76-border);
}
.w8d76-footer-brand { text-align: center; margin-bottom: 1.4rem; }
.w8d76-footer-brand p { color: var(--w8d76-text-dim); font-size: 1.1rem; line-height: 1.5rem; }
.w8d76-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.w8d76-footer-links a {
  color: var(--w8d76-text-dim); font-size: 1.1rem; padding: 0.3rem 0.6rem;
}
.w8d76-footer-links a:hover { color: var(--w8d76-accent); }
.w8d76-footer-promo {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.w8d76-footer-promo .w8d76-btn { font-size: 1.1rem; padding: 0.5rem 1rem; }
.w8d76-footer-copy {
  text-align: center; color: var(--w8d76-text-dim); font-size: 1rem;
  border-top: 1px solid var(--w8d76-border); padding-top: 1rem;
}
.w8d76-partners {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem;
}

/* Bottom Navigation */
.w8d76-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--w8d76-bg-dark); border-top: 1px solid var(--w8d76-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.w8d76-bnav-item {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 6rem; min-height: 5.2rem;
  cursor: pointer; transition: var(--w8d76-transition);
  background: none; border: none; color: var(--w8d76-text-dim);
  padding: 0.4rem; position: relative;
}
.w8d76-bnav-item:hover, .w8d76-bnav-item:focus { color: var(--w8d76-primary-light); }
.w8d76-bnav-item .w8d76-bnav-icon { font-size: 2.2rem; margin-bottom: 0.2rem; }
.w8d76-bnav-item .w8d76-bnav-icon.material-symbols-outlined { font-size: 2.4rem; }
.w8d76-bnav-item .w8d76-bnav-label { font-size: 1rem; line-height: 1.2rem; }
.w8d76-bnav-active { color: var(--w8d76-primary-light) !important; }
.w8d76-bnav-active::after {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%;
  height: 2px; background: var(--w8d76-primary-light); border-radius: 1px;
}

/* Testimonial */
.w8d76-testimonial {
  background: var(--w8d76-bg-card); border-radius: var(--w8d76-radius-lg);
  padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--w8d76-primary);
}
.w8d76-testimonial-text { font-size: 1.2rem; color: var(--w8d76-text-muted); font-style: italic; margin-bottom: 0.6rem; }
.w8d76-testimonial-author { font-size: 1.1rem; color: var(--w8d76-accent); font-weight: 600; }

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

/* Winner */
.w8d76-winner {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem; background: var(--w8d76-bg-card);
  border-radius: var(--w8d76-radius); margin-bottom: 0.6rem;
}
.w8d76-winner-name { font-size: 1.2rem; color: var(--w8d76-text); font-weight: 600; flex: 1; }
.w8d76-winner-amount { font-size: 1.3rem; color: var(--w8d76-warning); font-weight: 700; }
.w8d76-winner-game { font-size: 1rem; color: var(--w8d76-text-dim); }

/* RTP Bar */
.w8d76-rtp-item { margin-bottom: 0.8rem; }
.w8d76-rtp-label { display: flex; justify-content: space-between; margin-bottom: 0.3rem; }
.w8d76-rtp-name { font-size: 1.2rem; color: var(--w8d76-text-muted); }
.w8d76-rtp-val { font-size: 1.2rem; color: var(--w8d76-warning); font-weight: 600; }
.w8d76-rtp-bar { height: 0.6rem; background: var(--w8d76-bg-light); border-radius: 3px; overflow: hidden; }
.w8d76-rtp-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--w8d76-primary), var(--w8d76-warning)); }

/* Responsive: hide bottom nav on desktop */
@media (min-width: 769px) {
  .w8d76-bnav { display: none; }
}
@media (max-width: 768px) {
  .w8d76-main { padding-bottom: 7rem; }
  .w8d76-footer { padding-bottom: 8rem; }
}
