/**
 * Amjili Core Stylesheet
 * Prefix: w6da4-
 * Color palette: #9966CC | #0D1117 | #4A4A4A | #2F2F2F | #696969
 * Dark = background, Light = text
 */

/* CSS Variables */
:root {
  --w6da4-primary: #9966CC;
  --w6da4-primary-dark: #7A4E9F;
  --w6da4-primary-light: #B388D9;
  --w6da4-bg: #0D1117;
  --w6da4-bg-secondary: #161B22;
  --w6da4-bg-card: #1C2230;
  --w6da4-bg-elevated: #242B3A;
  --w6da4-text: #E6EDF3;
  --w6da4-text-secondary: #A0AAB8;
  --w6da4-text-muted: #696969;
  --w6da4-border: #2F2F3A;
  --w6da4-accent: #FFD700;
  --w6da4-success: #3FB950;
  --w6da4-danger: #F85149;
  --w6da4-header-h: 56px;
  --w6da4-bottom-h: 60px;
  --w6da4-radius: 10px;
  --w6da4-radius-sm: 6px;
  --w6da4-shadow: 0 4px 16px rgba(0,0,0,0.4);
  --w6da4-transition: 0.25s ease;
}

/* 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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem; line-height: 1.6; color: var(--w6da4-text);
  background: var(--w6da4-bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--w6da4-primary-light); text-decoration: none; transition: color var(--w6da4-transition); }
a:hover { color: var(--w6da4-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Utility */
.w6da4-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.w6da4-wrapper { max-width: 430px; margin: 0 auto; width: 100%; }
.w6da4-text-center { text-align: center; }
.w6da4-hidden { display: none !important; }

/* Header */
.w6da4-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w6da4-header-h); background: var(--w6da4-bg-secondary);
  border-bottom: 1px solid var(--w6da4-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; transition: background var(--w6da4-transition), box-shadow var(--w6da4-transition);
}
.w6da4-header-scrolled { background: rgba(13,17,23,0.96); box-shadow: var(--w6da4-shadow); }
.w6da4-header-logo {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  font-size: 1.8rem; font-weight: 700; color: var(--w6da4-primary);
}
.w6da4-header-logo img { width: 28px; height: 28px; border-radius: 4px; }
.w6da4-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w6da4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: var(--w6da4-radius-sm);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--w6da4-transition); min-height: 36px;
}
.w6da4-btn-primary {
  background: var(--w6da4-primary); color: #fff;
}
.w6da4-btn-primary:hover { background: var(--w6da4-primary-dark); transform: scale(1.03); }
.w6da4-btn-outline {
  background: transparent; color: var(--w6da4-primary);
  border: 1.5px solid var(--w6da4-primary);
}
.w6da4-btn-outline:hover { background: var(--w6da4-primary); color: #fff; }
.w6da4-btn-accent {
  background: linear-gradient(135deg, var(--w6da4-primary), var(--w6da4-accent));
  color: #0D1117; font-weight: 700;
}
.w6da4-btn-accent:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(153,102,204,0.4); }

/* Menu Toggle */
.w6da4-menu-toggle {
  background: none; border: none; color: var(--w6da4-text); cursor: pointer;
  padding: 0.6rem; font-size: 2rem; line-height: 1; display: flex;
  align-items: center; justify-content: center;
}

/* Mobile Menu */
.w6da4-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--w6da4-bg-secondary); z-index: 9999;
  transition: right 0.3s ease; padding: 7rem 1.5rem 2rem;
  border-left: 1px solid var(--w6da4-border); overflow-y: auto;
}
.w6da4-menu-active { right: 0; }
.w6da4-mobile-menu a {
  display: block; padding: 1.2rem 1rem; color: var(--w6da4-text);
  font-size: 1.5rem; border-bottom: 1px solid var(--w6da4-border);
  transition: all var(--w6da4-transition);
}
.w6da4-mobile-menu a:hover { color: var(--w6da4-primary); padding-left: 1.5rem; }

/* Overlay */
.w6da4-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.w6da4-overlay-active { opacity: 1; pointer-events: auto; }

/* Main Content */
.w6da4-main {
  padding-top: calc(var(--w6da4-header-h) + 0.5rem);
  min-height: 100vh;
}
@media (max-width: 768px) {
  .w6da4-main { padding-bottom: calc(var(--w6da4-bottom-h) + 1rem); }
}

/* Carousel */
.w6da4-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--w6da4-radius); margin: 0.5rem 0;
  aspect-ratio: 16/7;
}
.w6da4-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.6s ease; cursor: pointer;
}
.w6da4-slide img { width: 100%; height: 100%; object-fit: cover; }
.w6da4-slide-active { opacity: 1; }
.w6da4-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.w6da4-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all var(--w6da4-transition);
}
.w6da4-dot-active { background: var(--w6da4-primary); width: 20px; border-radius: 4px; }

/* Section */
.w6da4-section { padding: 2rem 0; }
.w6da4-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--w6da4-text);
  margin-bottom: 1.2rem; padding-left: 1rem;
  border-left: 3px solid var(--w6da4-primary);
}
.w6da4-section-subtitle {
  font-size: 1.35rem; color: var(--w6da4-text-secondary);
  margin-bottom: 1rem;
}

/* Game Grid */
.w6da4-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; padding: 0.5rem 0;
}
.w6da4-game-item {
  background: var(--w6da4-bg-card); border-radius: var(--w6da4-radius);
  overflow: hidden; cursor: pointer; transition: all var(--w6da4-transition);
  border: 1px solid var(--w6da4-border);
}
.w6da4-game-item:hover {
  transform: translateY(-3px); border-color: var(--w6da4-primary);
  box-shadow: 0 6px 20px rgba(153,102,204,0.15);
}
.w6da4-game-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-bottom: 1px solid var(--w6da4-border);
}
.w6da4-game-name {
  padding: 0.6rem 0.5rem; font-size: 1.2rem; font-weight: 600;
  color: var(--w6da4-text); text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Category Header */
.w6da4-cat-header {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 2rem 0 1rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--w6da4-border);
}
.w6da4-cat-header i, .w6da4-cat-header .material-icons {
  font-size: 2.2rem; color: var(--w6da4-primary);
}
.w6da4-cat-title {
  font-size: 1.7rem; font-weight: 700; color: var(--w6da4-text);
}

/* Card */
.w6da4-card {
  background: var(--w6da4-bg-card); border-radius: var(--w6da4-radius);
  border: 1px solid var(--w6da4-border); padding: 1.5rem;
  transition: all var(--w6da4-transition);
}
.w6da4-card:hover { border-color: var(--w6da4-primary); }
.w6da4-card-title {
  font-size: 1.6rem; font-weight: 700; color: var(--w6da4-text);
  margin-bottom: 0.8rem;
}
.w6da4-card-text { font-size: 1.35rem; color: var(--w6da4-text-secondary); line-height: 1.7; }

/* Promo Banner */
.w6da4-promo-banner {
  background: linear-gradient(135deg, var(--w6da4-primary-dark), var(--w6da4-primary));
  border-radius: var(--w6da4-radius); padding: 1.8rem 1.2rem;
  text-align: center; margin: 1.5rem 0; cursor: pointer;
  transition: all var(--w6da4-transition);
}
.w6da4-promo-banner:hover { transform: scale(1.01); box-shadow: 0 0 24px rgba(153,102,204,0.35); }
.w6da4-promo-title {
  font-size: 2rem; font-weight: 800; color: var(--w6da4-accent);
  margin-bottom: 0.5rem;
}
.w6da4-promo-text { font-size: 1.3rem; color: #fff; }

/* Stats Grid */
.w6da4-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin: 1.5rem 0;
}
.w6da4-stat-item {
  background: var(--w6da4-bg-card); border-radius: var(--w6da4-radius);
  padding: 1.2rem; text-align: center; border: 1px solid var(--w6da4-border);
}
.w6da4-stat-value {
  font-size: 2rem; font-weight: 800; color: var(--w6da4-primary);
}
.w6da4-stat-label {
  font-size: 1.2rem; color: var(--w6da4-text-muted); margin-top: 0.3rem;
}

/* Footer */
.w6da4-footer {
  background: var(--w6da4-bg-secondary); border-top: 1px solid var(--w6da4-border);
  padding: 2rem 0 3rem;
}
.w6da4-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.w6da4-footer-brand h3 {
  font-size: 2rem; color: var(--w6da4-primary); margin-bottom: 0.5rem;
}
.w6da4-footer-brand p { font-size: 1.25rem; color: var(--w6da4-text-muted); line-height: 1.6; }
.w6da4-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  margin: 1.5rem 0;
}
.w6da4-footer-links a {
  padding: 0.5rem 1rem; background: var(--w6da4-bg-elevated);
  border-radius: var(--w6da4-radius-sm); font-size: 1.2rem;
  color: var(--w6da4-text-secondary); transition: all var(--w6da4-transition);
}
.w6da4-footer-links a:hover { color: var(--w6da4-primary); background: var(--w6da4-bg-card); }
.w6da4-footer-copy {
  text-align: center; font-size: 1.15rem; color: var(--w6da4-text-muted);
  margin-top: 1rem;
}

/* Bottom Navigation */
.w6da4-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w6da4-bottom-h); background: var(--w6da4-bg-secondary);
  border-top: 1px solid var(--w6da4-border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 0.3rem; padding-bottom: env(safe-area-inset-bottom, 0);
}
.w6da4-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 48px; background: none; border: none;
  color: var(--w6da4-text-muted); cursor: pointer;
  transition: all var(--w6da4-transition); gap: 2px; padding: 0.3rem;
}
.w6da4-bottom-btn i,
.w6da4-bottom-btn .material-icons,
.w6da4-bottom-btn ion-icon,
.w6da4-bottom-btn bi {
  font-size: 22px; transition: all var(--w6da4-transition);
}
.w6da4-bottom-btn span {
  font-size: 1rem; font-weight: 500; white-space: nowrap;
}
.w6da4-bottom-btn:hover,
.w6da4-bottom-btn.w6da4-active {
  color: var(--w6da4-primary);
}
.w6da4-bottom-btn:hover i,
.w6da4-bottom-btn.w6da4-active i,
.w6da4-bottom-btn:hover .material-icons,
.w6da4-bottom-btn.w6da4-active .material-icons {
  transform: scale(1.15);
}
@media (min-width: 769px) { .w6da4-bottom-nav { display: none; } }

/* Reveal animation */
.w6da4-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.w6da4-revealed { opacity: 1; transform: translateY(0); }

/* Text content styles */
.w6da4-content-text { font-size: 1.4rem; color: var(--w6da4-text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.w6da4-content-text strong { color: var(--w6da4-text); }
.w6da4-link-promo {
  color: var(--w6da4-accent); font-weight: 600; cursor: pointer;
  text-decoration: underline; transition: color var(--w6da4-transition);
}
.w6da4-link-promo:hover { color: var(--w6da4-primary-light); }

/* FAQ styles */
.w6da4-faq-item { margin-bottom: 1rem; }
.w6da4-faq-q {
  font-size: 1.5rem; font-weight: 700; color: var(--w6da4-primary);
  margin-bottom: 0.4rem;
}
.w6da4-faq-a { font-size: 1.35rem; color: var(--w6da4-text-secondary); line-height: 1.7; }

/* Payment icons row */
.w6da4-payment-row {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1rem; margin: 1rem 0;
}
.w6da4-payment-item {
  background: var(--w6da4-bg-card); border-radius: var(--w6da4-radius-sm);
  padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--w6da4-text-secondary);
  border: 1px solid var(--w6da4-border);
}
