/* ============================================================
 * 32 Win - Core theme stylesheet (mobile-first, VN market)
 * Every selector uses the v1d6- prefix to keep the namespace clean.
 * Palette: #0A0A0A bg / #ADB5BD slate / #FFB6C1 pink / #F4A460 gold
 *          #708090 secondary slate
 * ============================================================ */

:root {
  --v1d6-bg: #0A0A0A;
  --v1d6-bg-alt: #141414;
  --v1d6-surface: #1c1c22;
  --v1d6-surface-2: #24242c;
  --v1d6-text: #f5f6f8;
  --v1d6-text-dim: #ADB5BD;
  --v1d6-pink: #FFB6C1;
  --v1d6-gold: #F4A460;
  --v1d6-slate: #708090;
  --v1d6-primary: #F4A460;
  --v1d6-accent: #FFB6C1;
  --v1d6-success: #4caf7d;
  --v1d6-border: rgba(173, 181, 189, 0.15);
  --v1d6-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --v1d6-radius: 14px;
  --v1d6-radius-sm: 10px;
  --v1d6-header-h: 60px;
  --v1d6-nav-h: 62px;
  --v1d6-maxw: 430px;
}

/* Reset & base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--v1d6-bg);
  color: var(--v1d6-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  padding-top: var(--v1d6-header-h);
  padding-bottom: var(--v1d6-nav-h);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--v1d6-pink); text-decoration: none; }
a:active { opacity: 0.8; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; color: var(--v1d6-text); }
p { margin: 0 0 1em; color: var(--v1d6-text-dim); }
ul { margin: 0 0 1em; padding-left: 1.2em; }

/* Layout helpers ---------------------------------------------- */
.v1d6-wrapper {
  width: 100%;
  max-width: var(--v1d6-maxw);
  margin: 0 auto;
  padding: 0 14px;
}
.v1d6-container { padding: 18px 14px; }
.v1d6-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--v1d6-border);
}
.v1d6-section:last-child { border-bottom: 0; }
.v1d6-grid { display: grid; gap: 12px; }
.v1d6-hidden { display: none !important; }
.v1d6-text-center { text-align: center; }

/* Buttons ----------------------------------------------------- */
.v1d6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.v1d6-btn:active { transform: scale(0.96); }
.v1d6-btn-primary { background: linear-gradient(135deg, var(--v1d6-gold), #ffb37a); color: #1a1208; box-shadow: 0 6px 16px rgba(244,164,96,0.35); }
.v1d6-btn-pink { background: linear-gradient(135deg, var(--v1d6-pink), #ff8aa3); color: #2a0d18; }
.v1d6-btn-ghost { background: rgba(173,181,189,0.08); color: var(--v1d6-text); border: 1px solid var(--v1d6-border); }
.v1d6-btn-block { width: 100%; }

/* Header ------------------------------------------------------ */
.v1d6-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v1d6-header-h);
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid var(--v1d6-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.v1d6-header-inner {
  width: 100%;
  max-width: var(--v1d6-maxw);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.v1d6-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--v1d6-text);
  letter-spacing: 0.5px;
}
.v1d6-logo img { width: 30px; height: 30px; border-radius: 6px; }
.v1d6-logo .v1d6-logo-badge {
  background: linear-gradient(135deg, var(--v1d6-gold), var(--v1d6-pink));
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  color: #1a1208; font-weight: 900; font-size: 1.4rem;
}
.v1d6-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.v1d6-icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(173,181,189,0.08);
  border: 1px solid var(--v1d6-border);
  border-radius: 10px;
  color: var(--v1d6-text);
  cursor: pointer;
}
.v1d6-icon-btn .material-icons { font-size: 22px; }
.v1d6-header .v1d6-btn { min-height: 38px; padding: 8px 14px; font-size: 1.3rem; }

/* Mobile slide-down menu ------------------------------------- */
.v1d6-mobile-menu {
  position: fixed;
  top: var(--v1d6-header-h);
  left: 0; right: 0;
  background: var(--v1d6-bg-alt);
  border-bottom: 1px solid var(--v1d6-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  z-index: 999;
}
.v1d6-mobile-menu.v1d6-menu-open { max-height: 460px; }
.v1d6-mobile-menu ul { list-style: none; padding: 6px 14px; margin: 0; }
.v1d6-mobile-menu li { border-bottom: 1px solid var(--v1d6-border); }
.v1d6-mobile-menu li:last-child { border-bottom: 0; }
.v1d6-mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 4px;
  color: var(--v1d6-text);
  font-size: 1.45rem;
}
.v1d6-mobile-menu a i { color: var(--v1d6-gold); width: 22px; text-align: center; }

/* Desktop nav bar (hidden on mobile) ------------------------- */
.v1d6-desktop-nav { display: none; }

/* Carousel ---------------------------------------------------- */
.v1d6-carousel {
  position: relative;
  border-radius: var(--v1d6-radius);
  overflow: hidden;
  margin: 14px 0 6px;
  box-shadow: var(--v1d6-shadow);
}
.v1d6-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.v1d6-slide.v1d6-slide-active { display: block; }
.v1d6-slide img { width: 100%; height: 200px; object-fit: cover; }
.v1d6-slide-caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.85));
  padding: 22px 14px 12px;
  color: #fff;
}
.v1d6-slide-caption h2 { font-size: 1.8rem; margin: 0 0 4px; color: #fff; }
.v1d6-slide-caption p { font-size: 1.3rem; margin: 0; color: #f0f0f0; }
.v1d6-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v1d6-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.v1d6-dot.v1d6-dot-active { background: var(--v1d6-gold); width: 20px; border-radius: 4px; }

/* Hero / CTA -------------------------------------------------- */
.v1d6-hero {
  padding: 6px 0 18px;
  text-align: center;
}
.v1d6-hero h1 {
  font-size: 2.3rem;
  background: linear-gradient(135deg, var(--v1d6-gold), var(--v1d6-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.v1d6-hero p { font-size: 1.4rem; }
.v1d6-hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* Stats bar --------------------------------------------------- */
.v1d6-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--v1d6-surface);
  border-radius: var(--v1d6-radius);
  padding: 14px;
  margin: 16px 0;
  border: 1px solid var(--v1d6-border);
}
.v1d6-stat { text-align: center; }
.v1d6-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--v1d6-gold);
  display: block;
}
.v1d6-stat-label { font-size: 1.15rem; color: var(--v1d6-text-dim); }

/* Section heading -------------------------------------------- */
.v1d6-heading {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 12px;
}
.v1d6-heading h2 {
  font-size: 1.85rem;
  margin: 0;
  flex: 1;
}
.v1d6-heading .v1d6-heading-icon {
  color: var(--v1d6-gold);
  font-size: 22px;
}
.v1d6-heading .v1d6-link-more { font-size: 1.25rem; color: var(--v1d6-pink); }

/* Category chips --------------------------------------------- */
.v1d6-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.v1d6-chips::-webkit-scrollbar { display: none; }
.v1d6-chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--v1d6-surface);
  border: 1px solid var(--v1d6-border);
  color: var(--v1d6-text-dim);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.v1d6-chip.v1d6-chip-active {
  background: linear-gradient(135deg, var(--v1d6-gold), var(--v1d6-pink));
  color: #1a0d18;
  border-color: transparent;
}

/* Game grid --------------------------------------------------- */
.v1d6-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.v1d6-game-card {
  background: var(--v1d6-surface);
  border-radius: var(--v1d6-radius-sm);
  border: 1px solid var(--v1d6-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
  text-align: center;
}
.v1d6-game-card:active { transform: scale(0.96); border-color: var(--v1d6-gold); }
.v1d6-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.v1d6-game-name {
  font-size: 1.2rem;
  padding: 6px 4px;
  color: var(--v1d6-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v1d6-game-tag {
  display: inline-block;
  font-size: 1rem;
  padding: 2px 8px;
  background: rgba(244,164,96,0.18);
  color: var(--v1d6-gold);
  border-radius: 6px;
  margin-bottom: 6px;
}

/* Feature / promo cards -------------------------------------- */
.v1d6-card {
  background: var(--v1d6-surface);
  border-radius: var(--v1d6-radius);
  padding: 16px;
  border: 1px solid var(--v1d6-border);
  margin-bottom: 12px;
}
.v1d6-card h3 { font-size: 1.65rem; color: var(--v1d6-text); }
.v1d6-card h3 .v1d6-hl { color: var(--v1d6-gold); }
.v1d6-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.v1d6-feature {
  background: var(--v1d6-surface-2);
  border-radius: var(--v1d6-radius-sm);
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--v1d6-border);
}
.v1d6-feature .v1d6-feature-icon {
  font-size: 28px;
  color: var(--v1d6-gold);
  margin-bottom: 6px;
  display: inline-block;
}
.v1d6-feature h4 { font-size: 1.4rem; margin: 0 0 4px; }
.v1d6-feature p { font-size: 1.2rem; margin: 0; color: var(--v1d6-text-dim); }

/* Steps list -------------------------------------------------- */
.v1d6-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.v1d6-steps li {
  position: relative;
  padding: 10px 10px 10px 44px;
  margin-bottom: 8px;
  background: var(--v1d6-surface);
  border-radius: var(--v1d6-radius-sm);
  border: 1px solid var(--v1d6-border);
  color: var(--v1d6-text-dim);
  font-size: 1.35rem;
}
.v1d6-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v1d6-gold), var(--v1d6-pink));
  color: #1a0d18;
  font-weight: 800;
  display: grid; place-items: center;
  font-size: 1.2rem;
}

/* RTP table --------------------------------------------------- */
.v1d6-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--v1d6-surface);
  border-radius: var(--v1d6-radius-sm);
  overflow: hidden;
  font-size: 1.3rem;
}
.v1d6-rtp-table th, .v1d6-rtp-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--v1d6-border);
}
.v1d6-rtp-table th { background: var(--v1d6-surface-2); color: var(--v1d6-pink); font-weight: 700; }
.v1d6-rtp-table td:last-child { color: var(--v1d6-gold); font-weight: 700; }

/* Testimonial / winner --------------------------------------- */
.v1d6-review {
  background: var(--v1d6-surface);
  border-radius: var(--v1d6-radius);
  padding: 14px;
  border-left: 3px solid var(--v1d6-gold);
  margin-bottom: 10px;
}
.v1d6-review p { margin: 0 0 8px; font-style: italic; color: var(--v1d6-text); }
.v1d6-review .v1d6-review-author { font-size: 1.2rem; color: var(--v1d6-pink); font-weight: 700; }
.v1d6-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.v1d6-winner {
  background: var(--v1d6-surface);
  border-radius: var(--v1d6-radius-sm);
  padding: 10px;
  border: 1px solid var(--v1d6-border);
}
.v1d6-winner .v1d6-winner-name { font-size: 1.25rem; color: var(--v1d6-text); font-weight: 700; }
.v1d6-winner .v1d6-winner-game { font-size: 1.15rem; color: var(--v1d6-text-dim); }
.v1d6-winner .v1d6-winner-amount { font-size: 1.5rem; color: var(--v1d6-gold); font-weight: 800; }

/* Payment methods -------------------------------------------- */
.v1d6-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v1d6-pay {
  background: var(--v1d6-surface);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--v1d6-text-dim);
  border: 1px solid var(--v1d6-border);
}
.v1d6-pay .material-icons, .v1d6-pay i { color: var(--v1d6-pink); font-size: 22px; }

/* FAQ accordion ---------------------------------------------- */
.v1d6-faq-item {
  background: var(--v1d6-surface);
  border: 1px solid var(--v1d6-border);
  border-radius: var(--v1d6-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.v1d6-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--v1d6-text);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.v1d6-faq-q .v1d6-faq-icon { color: var(--v1d6-gold); transition: transform 0.2s; }
.v1d6-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding: 0 16px;
  color: var(--v1d6-text-dim);
  font-size: 1.3rem;
}
.v1d6-faq-open .v1d6-faq-a { max-height: 320px; padding: 0 16px 14px; }
.v1d6-faq-open .v1d6-faq-icon { transform: rotate(45deg); }

/* SEO text block --------------------------------------------- */
.v1d6-seo-text { font-size: 1.32rem; color: var(--v1d6-text-dim); }
.v1d6-seo-text h2, .v1d6-seo-text h3 { color: var(--v1d6-text); }
.v1d6-seo-text h2 { font-size: 1.8rem; }
.v1d6-seo-text h3 { font-size: 1.55rem; }
.v1d6-seo-text a { color: var(--v1d6-pink); }

/* Footer ------------------------------------------------------ */
.v1d6-footer {
  background: var(--v1d6-bg-alt);
  border-top: 1px solid var(--v1d6-border);
  padding: 22px 14px 100px;
  font-size: 1.25rem;
  color: var(--v1d6-text-dim);
}
.v1d6-footer h3 { color: var(--v1d6-text); font-size: 1.5rem; margin-bottom: 10px; }
.v1d6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.v1d6-footer-links a {
  flex: 1 1 45%;
  background: var(--v1d6-surface);
  border: 1px solid var(--v1d6-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.2rem;
  color: var(--v1d6-text);
  text-align: center;
}
.v1d6-footer-cta { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.v1d6-footer-cta .v1d6-btn { flex: 1 1 45%; }
.v1d6-footer-copy { margin-top: 14px; font-size: 1.15rem; color: var(--v1d6-slate); text-align: center; }

/* Mobile bottom navigation ----------------------------------- */
.v1d6-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v1d6-nav-h);
  background: rgba(10,10,10,0.98);
  border-top: 1px solid var(--v1d6-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.v1d6-bottomnav button {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--v1d6-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--v1d6-nav-h);
  min-width: 60px;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.v1d6-bottomnav button .v1d6-bn-icon { font-size: 24px; line-height: 1; }
.v1d6-bottomnav button .v1d6-bn-label { font-size: 1rem; }
.v1d6-bottomnav button.v1d6-bn-promo {
  position: relative;
  background: linear-gradient(135deg, var(--v1d6-gold), var(--v1d6-pink));
  color: #1a0d18;
  border-radius: 14px 14px 0 0;
  margin: 0 4px;
  height: 56px;
  min-height: 56px;
  margin-top: -16px;
  box-shadow: 0 -4px 14px rgba(244,164,96,0.35);
}
.v1d6-bottomnav button.v1d6-bn-promo .v1d6-bn-icon { font-size: 26px; }
.v1d6-bottomnav button.v1d6-bn-active { color: var(--v1d6-gold); }
.v1d6-bottomnav button:active { transform: scale(0.92); }
.v1d6-bn-badge {
  position: absolute;
  top: 6px; right: 14px;
  background: #ff4d6d;
  color: #fff;
  font-size: 0.9rem;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: grid; place-items: center;
  padding: 0 4px;
}

/* Utility links (inline text CTA) ---------------------------- */
.v1d6-text-link {
  color: var(--v1d6-pink);
  font-weight: 700;
  border-bottom: 1px dashed currentColor;
}

/* Responsive -------------------------------------------------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .v1d6-bottomnav { display: none; }
  .v1d6-header-actions .v1d6-menu-only { display: none; }
  .v1d6-desktop-nav {
    display: flex;
    gap: 14px;
    margin-left: 14px;
  }
  .v1d6-desktop-nav a {
    color: var(--v1d6-text-dim);
    font-size: 1.3rem;
    font-weight: 600;
  }
  .v1d6-desktop-nav a:hover { color: var(--v1d6-gold); }
  .v1d6-footer { padding-bottom: 24px; }
}

@media (min-width: 1024px) {
  .v1d6-game-grid { grid-template-columns: repeat(6, 1fr); }
}
