/* ============================================================
   789win 789 win - Core Theme
   Class prefix: gda6-
   Palette: #262626 | #F8F9FA | #F5F5F5 | #BA55D3 | #CC99FF | #2F2F2F
   Mobile-first, max-width 430px
   ============================================================ */

:root {
  --gda6-bg: #262626;
  --gda6-bg-alt: #2F2F2F;
  --gda6-text: #F8F9FA;
  --gda6-text-soft: #F5F5F5;
  --gda6-primary: #BA55D3;
  --gda6-secondary: #CC99FF;
  --gda6-border: rgba(204, 153, 255, 0.18);
  --gda6-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --gda6-radius: 12px;
  --gda6-radius-sm: 8px;
  --gda6-header-h: 56px;
  --gda6-bottom-h: 62px;
}

/* Base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--gda6-bg);
  color: var(--gda6-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gda6-secondary); text-decoration: none; }
a:hover { color: var(--gda6-primary); }

/* ============================================================
   Layout helpers
   ============================================================ */
.gda6-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

.gda6-container {
  padding: 1.4rem 1.2rem;
}

.gda6-section {
  padding: 2.2rem 1.2rem;
  border-bottom: 1px solid var(--gda6-border);
}

.gda6-section-title {
  font-size: 2.0rem;
  font-weight: 800;
  margin-bottom: 1.0rem;
  color: var(--gda6-text);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.gda6-section-title i { color: var(--gda6-primary); }

.gda6-h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 1.2rem 0 0.6rem;
  color: var(--gda6-text);
}

.gda6-lead {
  color: var(--gda6-text-soft);
  font-size: 1.55rem;
  margin-bottom: 1.2rem;
}

.gda6-text p {
  margin-bottom: 1.0rem;
  color: var(--gda6-text-soft);
}

.gda6-text strong { color: var(--gda6-secondary); }

.gda6-divider {
  height: 1px;
  background: var(--gda6-border);
  margin: 1.4rem 0;
}

/* ============================================================
   Header
   ============================================================ */
.gda6-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--gda6-header-h);
  background: linear-gradient(135deg, #2F2F2F 0%, #262626 100%);
  border-bottom: 1px solid var(--gda6-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.9rem;
  z-index: 1000;
  box-shadow: var(--gda6-shadow);
}

.gda6-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gda6-text);
  font-weight: 800;
  font-size: 1.5rem;
}

.gda6-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.gda6-brand .gda6-brand-accent { color: var(--gda6-primary); }

.gda6-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gda6-menu-btn {
  background: transparent;
  border: 1px solid var(--gda6-border);
  color: var(--gda6-text);
  width: 38px;
  height: 38px;
  border-radius: var(--gda6-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
}

.gda6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 38px;
}

.gda6-btn:hover { transform: translateY(-1px); }

.gda6-btn-primary {
  background: linear-gradient(135deg, #BA55D3 0%, #CC99FF 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(186, 85, 211, 0.4);
}

.gda6-btn-outline {
  background: transparent;
  color: var(--gda6-text);
  border: 1.5px solid var(--gda6-primary);
}

.gda6-btn-block {
  width: 100%;
  padding: 1.05rem;
  font-size: 1.55rem;
}

/* ============================================================
   Expandable nav menu (mobile + desktop drawer)
   ============================================================ */
.gda6-mobile-menu {
  position: fixed;
  top: var(--gda6-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #1f1f1f;
  border-bottom: 1px solid var(--gda6-border);
  padding: 1.0rem 1.2rem;
  transform: translateY(-160%);
  transition: transform 0.28s ease;
  z-index: 9999;
  box-shadow: var(--gda6-shadow);
}

.gda6-mobile-menu.gda6-menu-open {
  transform: translateY(0);
}

.gda6-mobile-menu a {
  display: block;
  padding: 0.85rem 0.4rem;
  color: var(--gda6-text-soft);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.45rem;
}

.gda6-mobile-menu a:last-child { border-bottom: none; }

.gda6-menu-cta {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
}

/* ============================================================
   Hero / Carousel
   ============================================================ */
.gda6-main {
  padding-top: calc(var(--gda6-header-h) + 6px);
}

.gda6-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--gda6-radius) var(--gda6-radius);
  margin-bottom: 0.4rem;
}

.gda6-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gda6-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.gda6-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gda6-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.78), transparent);
}

.gda6-slide-overlay h2 {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.gda6-slide-overlay p {
  color: #f0f0f0;
  font-size: 1.3rem;
}

.gda6-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0;
}

.gda6-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}

.gda6-dot.gda6-dot-active {
  background: var(--gda6-primary);
  width: 22px;
  border-radius: 4px;
}

/* ============================================================
   Game grid & cards
   ============================================================ */
.gda6-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.0rem;
}

.gda6-filter-btn {
  background: transparent;
  border: 1px solid var(--gda6-border);
  color: var(--gda6-text-soft);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
}

.gda6-filter-btn.gda6-filter-active {
  background: var(--gda6-primary);
  color: #1a1a1a;
  border-color: var(--gda6-primary);
}

.gda6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.gda6-game-card {
  background: var(--gda6-bg-alt);
  border: 1px solid var(--gda6-border);
  border-radius: var(--gda6-radius-sm);
  padding: 0.5rem;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.gda6-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--gda6-primary);
}

.gda6-game-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.gda6-game-card .gda6-game-name {
  font-size: 1.15rem;
  color: var(--gda6-text-soft);
  line-height: 1.25;
  min-height: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gda6-cat-label {
  display: inline-block;
  background: rgba(186, 85, 211, 0.18);
  color: var(--gda6-secondary);
  font-size: 1.1rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ============================================================
   Feature / card / list blocks
   ============================================================ */
.gda6-card {
  background: var(--gda6-bg-alt);
  border: 1px solid var(--gda6-border);
  border-radius: var(--gda6-radius);
  padding: 1.2rem;
  margin-bottom: 1.0rem;
}

.gda6-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.55rem;
  color: var(--gda6-text);
}

.gda6-feature-list {
  list-style: none;
}

.gda6-feature-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.gda6-feature-list li:last-child { border-bottom: none; }

.gda6-feature-list i { color: var(--gda6-primary); margin-top: 0.2rem; }

.gda6-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.gda6-stat {
  background: rgba(186, 85, 211, 0.10);
  border: 1px solid var(--gda6-border);
  border-radius: var(--gda6-radius-sm);
  padding: 0.9rem;
  text-align: center;
}

.gda6-stat .gda6-stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gda6-secondary);
}

.gda6-stat .gda6-stat-label {
  font-size: 1.2rem;
  color: var(--gda6-text-soft);
}

.gda6-testimonial {
  background: var(--gda6-bg-alt);
  border-left: 3px solid var(--gda6-primary);
  padding: 0.9rem 1.0rem;
  border-radius: 0 var(--gda6-radius-sm) var(--gda6-radius-sm) 0;
  margin-bottom: 0.8rem;
}

.gda6-testimonial p { font-size: 1.3rem; color: var(--gda6-text-soft); }
.gda6-testimonial .gda6-author {
  font-size: 1.15rem;
  color: var(--gda6-secondary);
  margin-top: 0.3rem;
  font-weight: 700;
}

.gda6-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gda6-pay-chip {
  background: var(--gda6-bg-alt);
  border: 1px solid var(--gda6-border);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  font-size: 1.2rem;
  color: var(--gda6-text-soft);
}

.gda6-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.3rem;
}
.gda6-winner-row span:last-child { color: var(--gda6-secondary); font-weight: 700; }

.gda6-cta-box {
  background: linear-gradient(135deg, rgba(186,85,211,0.22), rgba(204,153,255,0.10));
  border: 1px solid var(--gda6-primary);
  border-radius: var(--gda6-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.2rem 0;
}

.gda6-cta-box h3 {
  font-size: 1.8rem;
  color: var(--gda6-text);
  margin-bottom: 0.5rem;
}

.gda6-cta-box p {
  color: var(--gda6-text-soft);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

/* ============================================================
   Footer
   ============================================================ */
.gda6-footer {
  background: #1c1c1c;
  border-top: 1px solid var(--gda6-border);
  padding: 2.0rem 1.2rem calc(var(--gda6-bottom-h) + 2.0rem);
}

.gda6-footer-brand {
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--gda6-text);
  margin-bottom: 0.6rem;
}

.gda6-footer p {
  font-size: 1.3rem;
  color: var(--gda6-text-soft);
  margin-bottom: 1.0rem;
}

.gda6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.gda6-footer-links a {
  font-size: 1.2rem;
  color: var(--gda6-text-soft);
  background: var(--gda6-bg-alt);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
}

.gda6-footer-links a:hover { color: var(--gda6-secondary); }

.gda6-copyright {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1.2rem;
  text-align: center;
}

/* ============================================================
   Mobile bottom navigation
   ============================================================ */
.gda6-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--gda6-bottom-h);
  background: linear-gradient(180deg, #2F2F2F 0%, #1c1c1c 100%);
  border-top: 1px solid var(--gda6-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.4);
}

.gda6-bottom-nav button,
.gda6-bottom-nav a {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--gda6-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.gda6-bottom-nav button:active,
.gda6-bottom-nav a:active {
  transform: scale(0.92);
  color: var(--gda6-primary);
}

.gda6-bottom-nav .gda6-nav-icon { font-size: 2.1rem; line-height: 1; }
.gda6-bottom-nav .material-icons.gda6-nav-icon { font-size: 2.3rem; }
.gda6-bottom-nav .gda6-nav-active { color: var(--gda6-primary); }

.gda6-bottom-nav .gda6-nav-promo {
  color: var(--gda6-secondary);
  font-weight: 700;
}

/* ============================================================
   Back to top
   ============================================================ */
.gda6-top-btn {
  position: fixed;
  right: 14px;
  bottom: calc(var(--gda6-bottom-h) + 14px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gda6-primary);
  color: #1a1a1a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 999;
}

.gda6-top-btn.gda6-top-show {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   Desktop: hide bottom nav, widen content
   ============================================================ */
@media (min-width: 769px) {
  .gda6-bottom-nav { display: none; }
  body { max-width: 480px; }
  .gda6-footer { padding-bottom: 2.0rem; }
}

/* Mobile bottom padding so content is not hidden under nav */
@media (max-width: 768px) {
  .gda6-main { padding-bottom: calc(var(--gda6-bottom-h) + 12px); }
}

/* Touch target safety */
button, a.gda6-btn, .gda6-game-card { min-height: 44px; }
.gda6-game-card { min-height: auto; }
