/* ============================================================
 * 8kbets - design-6fc0.css
 * Mobile-first stylesheet (Vietnamese market)
 * All custom classes use the "s6fc-" prefix.
 * Palette: #2F2F2F / #212F3D / #800080 / #D8BFD8 / #708090
 * ============================================================ */

:root {
  --s6fc-bg:        #2F2F2F;
  --s6fc-bg-deep:   #212F3D;
  --s6fc-primary:   #800080;
  --s6fc-accent:    #D8BFD8;
  --s6fc-muted:     #708090;
  --s6fc-text:      #F4ECF7;
  --s6fc-text-dim:  #B8AEC0;
  --s6fc-card:      #34243B;
  --s6fc-card-2:    #2A1F38;
  --s6fc-border:    #4A3A55;
  --s6fc-gold:      #F2C14E;
  --s6fc-green:     #4CAF7D;
  --s6fc-radius:    14px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: linear-gradient(160deg, var(--s6fc-bg) 0%, var(--s6fc-bg-deep) 100%);
  color: var(--s6fc-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--s6fc-accent); text-decoration: none; }
a:hover { color: var(--s6fc-gold); }
img { max-width: 100%; display: block; }

/* ---- Layout container (max-width: 430px for mobile-first) ---- */
.s6fc-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.s6fc-container {
  width: 100%;
  padding: 0 1.4rem;
}

main { padding-bottom: 8rem; }

/* ---- Header ---- */
.s6fc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--s6fc-bg-deep) 0%, #3a1f47 100%);
  border-bottom: 1px solid var(--s6fc-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.s6fc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  height: 5.6rem;
  padding: 0 1.2rem;
}

.s6fc-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.s6fc-brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 8px;
}

.s6fc-brand-name {
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.4px;
  background: linear-gradient(90deg, var(--s6fc-gold), var(--s6fc-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.s6fc-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s6fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  min-height: 3.6rem;
  text-decoration: none;
  line-height: 1;
}
.s6fc-btn:active { transform: scale(0.96); }

.s6fc-btn-primary {
  background: linear-gradient(90deg, var(--s6fc-primary), #a437a4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(128,0,128,0.45);
}
.s6fc-btn-outline {
  background: transparent;
  color: var(--s6fc-accent);
  border: 1.5px solid var(--s6fc-accent);
}
.s6fc-btn-gold {
  background: linear-gradient(90deg, var(--s6fc-gold), #e08b2c);
  color: #2a1a00;
  box-shadow: 0 4px 14px rgba(242,193,78,0.4);
}

.s6fc-nav-toggle {
  background: transparent;
  border: 1px solid var(--s6fc-border);
  color: var(--s6fc-accent);
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}
.s6fc-nav-toggle.s6fc-toggle-active { background: var(--s6fc-primary); color:#fff; }

/* Expandable menu */
.s6fc-nav-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--s6fc-bg-deep);
  transition: max-height .28s ease;
  border-top: 1px solid transparent;
}
.s6fc-nav-menu.s6fc-menu-open {
  max-height: 480px;
  border-top: 1px solid var(--s6fc-border);
}
.s6fc-nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1.2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.s6fc-nav-menu a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(216,191,216,0.06);
  color: var(--s6fc-text);
  font-size: 1.35rem;
  font-weight: 600;
  border: 1px solid var(--s6fc-border);
}
.s6fc-nav-menu a:hover { background: var(--s6fc-primary); color:#fff; }

/* ---- Hero carousel ---- */
.s6fc-hero {
  position: relative;
  margin: 1rem 0 0;
  padding: 0 1rem;
}
.s6fc-slides {
  position: relative;
  border-radius: var(--s6fc-radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.s6fc-slide {
  display: none;
  cursor: pointer;
}
.s6fc-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.s6fc-slide.s6fc-slide-active { display: block; }
.s6fc-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}
.s6fc-slide-caption strong {
  font-size: 1.55rem;
  color: var(--s6fc-gold);
  display: block;
}
.s6fc-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}
.s6fc-slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--s6fc-border);
  cursor: pointer;
}
.s6fc-slide-dot.s6fc-dot-active { background: var(--s6fc-gold); width: 22px; border-radius: 4px; }

/* ---- Section base ---- */
.s6fc-section {
  margin: 1.6rem 0;
  padding: 0;
}
.s6fc-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s6fc-text);
}
.s6fc-section-title::before {
  content: "";
  width: 4px; height: 1.8rem;
  background: linear-gradient(var(--s6fc-gold), var(--s6fc-primary));
  border-radius: 4px;
}
.s6fc-eyebrow {
  color: var(--s6fc-accent);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* ---- Game grid ---- */
.s6fc-cat-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 0 0.6rem;
  scrollbar-width: none;
}
.s6fc-cat-tabs::-webkit-scrollbar { display: none; }
.s6fc-cat-tab {
  white-space: nowrap;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(216,191,216,0.08);
  color: var(--s6fc-text-dim);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--s6fc-border);
}
.s6fc-cat-tab.s6fc-cat-tab-active {
  background: var(--s6fc-primary);
  color: #fff;
}

.s6fc-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.s6fc-game-card {
  background: var(--s6fc-card);
  border: 1px solid var(--s6fc-border);
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.s6fc-game-card:active { transform: scale(0.96); }
.s6fc-game-card:hover { box-shadow: 0 4px 14px rgba(128,0,128,0.4); border-color: var(--s6fc-primary); }
.s6fc-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.s6fc-game-card-name {
  font-size: 1.15rem;
  color: var(--s6fc-text);
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.s6fc-game-card-type {
  font-size: 1rem;
  color: var(--s6fc-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Cards / generic blocks ---- */
.s6fc-card {
  background: var(--s6fc-card);
  border: 1px solid var(--s6fc-border);
  border-radius: var(--s6fc-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.s6fc-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  color: var(--s6fc-accent);
}
.s6fc-card p {
  margin: 0 0 0.6rem;
  color: var(--s6fc-text-dim);
  font-size: 1.3rem;
}

.s6fc-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.s6fc-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--s6fc-card-2);
  border: 1px solid var(--s6fc-border);
  border-radius: 12px;
  padding: 1.1rem;
}
.s6fc-feature .s6fc-ico {
  font-size: 2.2rem;
  color: var(--s6fc-gold);
  flex-shrink: 0;
}
.s6fc-feature h4 { margin: 0 0 0.3rem; font-size: 1.35rem; color: var(--s6fc-text); }
.s6fc-feature p { margin: 0; font-size: 1.2rem; color: var(--s6fc-text-dim); }

/* ---- Testimonials ---- */
.s6fc-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.s6fc-testi {
  background: var(--s6fc-card-2);
  border-left: 3px solid var(--s6fc-gold);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.s6fc-testi-stars { color: var(--s6fc-gold); font-size: 1.2rem; margin-bottom: 0.4rem; }
.s6fc-testi p { margin: 0 0 0.5rem; font-size: 1.25rem; color: var(--s6fc-text); }
.s6fc-testi cite { color: var(--s6fc-muted); font-style: normal; font-size: 1.15rem; }

/* ---- Winners / RTP ---- */
.s6fc-rtp-row, .s6fc-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--s6fc-border);
  font-size: 1.25rem;
}
.s6fc-rtp-row:last-child, .s6fc-winner-row:last-child { border-bottom: none; }
.s6fc-rtp-bar {
  height: 6px;
  background: var(--s6fc-bg);
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
  margin: 0 0.8rem;
}
.s6fc-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--s6fc-green), var(--s6fc-gold)); }
.s6fc-badge-gold {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--s6fc-gold);
  color: #2a1a00;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---- Payment / CTA ---- */
.s6fc-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.s6fc-pay {
  background: var(--s6fc-card-2);
  border: 1px solid var(--s6fc-border);
  border-radius: 10px;
  padding: 0.8rem 0.4rem;
  text-align: center;
  font-size: 1rem;
  color: var(--s6fc-text-dim);
}
.s6fc-pay i { font-size: 1.8rem; color: var(--s6fc-accent); display:block; margin-bottom: 0.3rem; }

.s6fc-cta {
  background: linear-gradient(120deg, var(--s6fc-primary), var(--s6fc-bg-deep));
  border-radius: var(--s6fc-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.4rem 0;
  border: 1px solid var(--s6fc-border);
}
.s6fc-cta h3 { margin: 0 0 0.5rem; color: var(--s6fc-gold); font-size: 1.6rem; }
.s6fc-cta p { margin: 0 0 1rem; color: var(--s6fc-text); font-size: 1.3rem; }

/* ---- FAQ ---- */
.s6fc-faq details {
  background: var(--s6fc-card);
  border: 1px solid var(--s6fc-border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
}
.s6fc-faq summary {
  font-weight: 700;
  color: var(--s6fc-accent);
  cursor: pointer;
  font-size: 1.3rem;
  list-style: none;
}
.s6fc-faq summary::-webkit-details-marker { display: none; }
.s6fc-faq details[open] summary { color: var(--s6fc-gold); }
.s6fc-faq p { margin: 0.6rem 0 0; font-size: 1.25rem; color: var(--s6fc-text-dim); }

/* ---- SEO content text ---- */
.s6fc-seo-text {
  font-size: 1.3rem;
  color: var(--s6fc-text-dim);
  line-height: 1.7;
}
.s6fc-seo-text h2, .s6fc-seo-text h3 { color: var(--s6fc-text); }
.s6fc-seo-text p { margin: 0 0 0.8rem; }

/* ---- Footer ---- */
.s6fc-footer {
  background: var(--s6fc-bg-deep);
  border-top: 1px solid var(--s6fc-border);
  padding: 1.8rem 1.4rem 2rem;
  margin-top: 1.5rem;
}
.s6fc-footer-brand { font-size: 1.3rem; color: var(--s6fc-text-dim); margin-bottom: 1rem; line-height: 1.6; }
.s6fc-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.s6fc-footer-promos .s6fc-btn { padding: 0.6rem 1rem; font-size: 1.2rem; }
.s6fc-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  margin-bottom: 1rem;
}
.s6fc-footer-links a {
  font-size: 1.2rem;
  color: var(--s6fc-text-dim);
}
.s6fc-footer-copy {
  border-top: 1px solid var(--s6fc-border);
  padding-top: 0.8rem;
  font-size: 1.1rem;
  color: var(--s6fc-muted);
  text-align: center;
}

/* ---- Mobile bottom nav ---- */
.s6fc-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--s6fc-bg-deep), #1a1426);
  border-top: 1px solid var(--s6fc-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.s6fc-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s6fc-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.3rem 0;
  transition: color .15s ease, transform .15s ease;
}
.s6fc-bnav-btn i, .s6fc-bnav-btn .material-icons-outlined,
.s6fc-bnav-btn ion-icon { font-size: 22px; }
.s6fc-bnav-btn:active { transform: scale(0.92); }
.s6fc-bnav-btn.s6fc-bnav-active { color: var(--s6fc-gold); }
.s6fc-bnav-btn.s6fc-bnav-promo { color: var(--s6fc-accent); }

/* ---- Back to top ---- */
.s6fc-to-top {
  position: fixed;
  right: 1rem;
  bottom: 75px;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--s6fc-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: opacity .2s ease, visibility .2s ease;
  box-shadow: 0 4px 14px rgba(128,0,128,0.5);
}
.s6fc-to-top.s6fc-to-top-show { opacity: 1; visibility: visible; }

/* ---- Desktop: hide bottom nav ---- */
@media (min-width: 769px) {
  .s6fc-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .s6fc-wrapper { max-width: 430px; }
}

/* ---- Small screens fine-tune ---- */
@media (max-width: 360px) {
  .s6fc-game-grid { grid-template-columns: repeat(2, 1fr); }
  .s6fc-brand-name { font-size: 1.7rem; }
}
