/* ============================================================
   98 win base layout stylesheet (Vietnamese market)
   All custom classes use the s6e9- prefix to isolate scope.
   Color palette: #C0C0C0 | #FFEF94 | #0D1117 | #FF5722 | #DEB887 | #FA8072
   ============================================================ */

:root {
  --s6e9-bg: #0D1117;
  --s6e9-bg-soft: #151c26;
  --s6e9-bg-card: #1b2330;
  --s6e9-primary: #FF5722;
  --s6e9-primary-dark: #c8410f;
  --s6e9-accent: #FFEF94;
  --s6e9-sand: #DEB887;
  --s6e9-coral: #FA8072;
  --s6e9-silver: #C0C0C0;
  --s6e9-text: #f3f4f6;
  --s6e9-text-muted: #9aa3b2;
  --s6e9-border: #2a3444;
  --s6e9-gradient: linear-gradient(135deg, #FF5722 0%, #FA8072 50%, #DEB887 100%);
  --s6e9-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --s6e9-radius: 14px;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Be Vietnam Pro", Roboto, system-ui, sans-serif;
  background: var(--s6e9-bg);
  color: var(--s6e9-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Layout containers ---------- */
.s6e9-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s6e9-wrapper { padding: 1rem 0; }
.s6e9-section { padding: 2.4rem 0; }
.s6e9-section--alt { background: var(--s6e9-bg-soft); }

.s6e9-section-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.s6e9-section-title::before {
  content: ""; width: 5px; height: 22px; border-radius: 3px;
  background: var(--s6e9-gradient);
}
.s6e9-eyebrow {
  font-size: 1.25rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--s6e9-coral); font-weight: 700; margin-bottom: 0.6rem;
}

/* ---------- Header ---------- */
.s6e9-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid var(--s6e9-border);
  backdrop-filter: blur(10px);
}
.s6e9-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.7rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.s6e9-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.s6e9-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--s6e9-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.45);
}
.s6e9-brand-name { font-size: 1.55rem; font-weight: 800; color: var(--s6e9-text); white-space: nowrap; }
.s6e9-brand-name span { color: var(--s6e9-primary); }

.s6e9-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s6e9-menu-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  color: var(--s6e9-text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 2rem;
}

/* ---------- Buttons ---------- */
.s6e9-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1.4rem; cursor: pointer;
  border: none; transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-align: center; line-height: 1;
}
.s6e9-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.s6e9-btn--primary { background: var(--s6e9-gradient); color: #1a0d05; box-shadow: 0 6px 18px rgba(255, 87, 34, 0.4); }
.s6e9-btn--ghost { background: transparent; color: var(--s6e9-accent); border: 1.5px solid var(--s6e9-sand); }
.s6e9-btn--soft { background: var(--s6e9-bg-card); color: var(--s6e9-text); border: 1px solid var(--s6e9-border); }
.s6e9-btn--sm { padding: 0.55rem 1rem; font-size: 1.25rem; }
.s6e9-btn--block { width: 100%; }

/* ---------- Mobile drawer menu ---------- */
.s6e9-drawer {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.s6e9-drawer.s6e9-is-open { opacity: 1; pointer-events: auto; }
.s6e9-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 78%; max-width: 320px;
  background: var(--s6e9-bg-soft);
  padding: 1.6rem; transform: translateX(100%); transition: transform 0.28s ease;
  overflow-y: auto;
}
.s6e9-drawer.s6e9-is-open .s6e9-drawer-panel { transform: translateX(0); }
.s6e9-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.s6e9-drawer-close {
  width: 34px; height: 34px; border-radius: 8px; background: var(--s6e9-bg-card);
  color: var(--s6e9-text); border: 1px solid var(--s6e9-border); cursor: pointer; font-size: 1.8rem;
}
.s6e9-drawer-title { font-size: 1.6rem; font-weight: 800; color: var(--s6e9-accent); }
.s6e9-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.2rem; }
.s6e9-drawer-nav { list-style: none; }
.s6e9-drawer-nav li a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 0.8rem; border-radius: 10px;
  color: var(--s6e9-text); font-weight: 600;
  border-bottom: 1px solid var(--s6e9-border);
}
.s6e9-drawer-nav li a:hover { background: var(--s6e9-bg-card); color: var(--s6e9-primary); }
.s6e9-drawer-nav .material-icons-outlined { font-size: 20px; color: var(--s6e9-coral); }

/* ---------- Hero ---------- */
.s6e9-main { padding-top: 64px; padding-bottom: 30px; }
.s6e9-hero { position: relative; padding: 1.4rem 0 0.6rem; }
.s6e9-hero-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  box-shadow: var(--s6e9-shadow);
}
.s6e9-carousel { position: relative; }
.s6e9-carousel-track { display: flex; scroll-snap-type: x mandatory; overflow-x: auto; scroll-behavior: smooth; }
.s6e9-carousel-track::-webkit-scrollbar { display: none; }
.s6e9-carousel-slide {
  flex: 0 0 100%; scroll-snap-align: center; position: relative; cursor: pointer;
}
.s6e9-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.s6e9-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem; background: linear-gradient(to top, rgba(13,17,23,0.92), transparent);
}
.s6e9-carousel-cap h2 { font-size: 1.7rem; font-weight: 800; color: var(--s6e9-accent); margin-bottom: 0.3rem; }
.s6e9-carousel-cap p { font-size: 1.3rem; color: var(--s6e9-silver); }
.s6e9-carousel-dots { display: flex; gap: 0.4rem; justify-content: center; padding: 0.6rem 0; }
.s6e9-carousel-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--s6e9-border); cursor: pointer;
}
.s6e9-carousel-dots span.s6e9-active { background: var(--s6e9-primary); width: 18px; border-radius: 4px; }

.s6e9-hero-cta { display: flex; gap: 0.6rem; margin-top: 0.9rem; }

/* ---------- Hero stat strip ---------- */
.s6e9-stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
  margin-top: 1rem;
}
.s6e9-stat {
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  border-radius: 12px; padding: 0.9rem 0.6rem; text-align: center;
}
.s6e9-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--s6e9-accent); }
.s6e9-stat-lbl { font-size: 1.1rem; color: var(--s6e9-text-muted); }

/* ---------- Game grid ---------- */
.s6e9-cat-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;
}
.s6e9-cat-tag {
  font-size: 1.2rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: rgba(255, 87, 34, 0.15); color: var(--s6e9-primary);
}
.s6e9-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.s6e9-grid--4 { grid-template-columns: repeat(4, 1fr); }
.s6e9-game {
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.s6e9-game:hover { transform: translateY(-3px); border-color: var(--s6e9-primary); }
.s6e9-game img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.s6e9-game-name {
  font-size: 1.15rem; font-weight: 600; color: var(--s6e9-text);
  padding: 0.5rem 0.4rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s6e9-game-badge {
  position: relative;
}
.s6e9-game-badge::after {
  content: "HOT"; position: absolute; top: 4px; right: 4px;
  background: var(--s6e9-primary); color: #fff; font-size: 0.95rem; font-weight: 800;
  padding: 1px 5px; border-radius: 6px;
}

/* ---------- Cards ---------- */
.s6e9-card {
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  border-radius: var(--s6e9-radius); padding: 1.2rem;
  box-shadow: var(--s6e9-shadow);
}
.s6e9-card h3 { font-size: 1.55rem; font-weight: 800; margin-bottom: 0.6rem; color: var(--s6e9-accent); }
.s6e9-card p { color: var(--s6e9-text-muted); font-size: 1.35rem; }

/* ---------- Feature list ---------- */
.s6e9-feature-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.s6e9-feature {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  padding: 1rem; border-radius: 12px;
}
.s6e9-feature-ico {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,87,34,0.25), rgba(250,128,114,0.25));
  display: flex; align-items: center; justify-content: center; color: var(--s6e9-primary);
  font-size: 22px;
}
.s6e9-feature h4 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--s6e9-text); }
.s6e9-feature p { font-size: 1.25rem; color: var(--s6e9-text-muted); }

/* ---------- RTP table ---------- */
.s6e9-rpt-table {
  width: 100%; border-collapse: collapse; font-size: 1.25rem;
  background: var(--s6e9-bg-card); border-radius: 12px; overflow: hidden;
}
.s6e9-rpt-table th, .s6e9-rpt-table td { padding: 0.7rem 0.8rem; text-align: left; border-bottom: 1px solid var(--s6e9-border); }
.s6e9-rpt-table th { background: var(--s6e9-bg-soft); color: var(--s6e9-accent); font-weight: 700; }
.s6e9-rpt-table td:last-child { color: var(--s6e9-coral); font-weight: 700; }

/* ---------- Testimonials ---------- */
.s6e9-testimonial {
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  border-left: 3px solid var(--s6e9-primary);
  border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 0.7rem;
}
.s6e9-testimonial-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.s6e9-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--s6e9-gradient); color: #1a0d05;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.s6e9-testimonial-name { font-weight: 700; font-size: 1.3rem; }
.s6e9-stars { color: #FFD700; font-size: 1.1rem; }
.s6e9-testimonial p { color: var(--s6e9-text-muted); font-size: 1.3rem; }

/* ---------- Payment ---------- */
.s6e9-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.s6e9-pay {
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  border-radius: 10px; padding: 0.7rem 0.3rem; text-align: center;
}
.s6e9-pay i { font-size: 22px; color: var(--s6e9-sand); }
.s6e9-pay span { display: block; font-size: 1.05rem; color: var(--s6e9-text-muted); margin-top: 0.2rem; }

/* ---------- Winners ticker ---------- */
.s6e9-winner {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem;
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  border-radius: 999px; margin-bottom: 0.5rem; font-size: 1.2rem;
}
.s6e9-winner-ico { color: var(--s6e9-accent); }
.s6e9-winner strong { color: var(--s6e9-primary); }

/* ---------- FAQ ---------- */
.s6e9-faq-item {
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  border-radius: 12px; margin-bottom: 0.7rem; overflow: hidden;
}
.s6e9-faq-q {
  width: 100%; text-align: left; background: transparent; border: none;
  padding: 1rem 1.1rem; color: var(--s6e9-text); font-weight: 700; font-size: 1.35rem;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.s6e9-faq-q .s6e9-faq-ico { color: var(--s6e9-primary); font-size: 1.6rem; transition: transform 0.2s; }
.s6e9-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 1.1rem; color: var(--s6e9-text-muted); font-size: 1.3rem; }
.s6e9-faq-item.s6e9-open .s6e9-faq-a { max-height: 360px; padding-bottom: 1rem; }
.s6e9-faq-item.s6e9-open .s6e9-faq-ico { transform: rotate(45deg); }

/* ---------- CTA banner ---------- */
.s6e9-cta-banner {
  background: var(--s6e9-gradient); color: #1a0d05;
  padding: 1.4rem; border-radius: 16px; text-align: center;
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.35);
}
.s6e9-cta-banner h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.3rem; }
.s6e9-cta-banner p { font-size: 1.3rem; margin-bottom: 0.9rem; opacity: 0.85; }

/* ---------- App download ---------- */
.s6e9-app-card {
  display: flex; gap: 1rem; align-items: center;
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  border-radius: 14px; padding: 1rem;
}
.s6e9-app-icon {
  width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
  background: var(--s6e9-gradient); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px;
}
.s6e9-app-body h4 { font-size: 1.45rem; font-weight: 800; color: var(--s6e9-text); }
.s6e9-app-body p { font-size: 1.2rem; color: var(--s6e9-text-muted); margin: 0.2rem 0 0.6rem; }

/* ---------- Inline link list ---------- */
.s6e9-link-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s6e9-link-list a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  background: var(--s6e9-bg-card); border: 1px solid var(--s6e9-border);
  color: var(--s6e9-text); font-size: 1.2rem; font-weight: 600;
}
.s6e9-link-list a:hover { color: var(--s6e9-primary); border-color: var(--s6e9-primary); }

/* ---------- Long-form SEO text ---------- */
.s6e9-prose p { margin-bottom: 0.8rem; color: var(--s6e9-text-muted); font-size: 1.35rem; line-height: 1.7; }
.s6e9-prose strong { color: var(--s6e9-accent); }
.s6e9-prose h3 { font-size: 1.55rem; font-weight: 800; color: var(--s6e9-text); margin: 1.2rem 0 0.6rem; }
.s6e9-prose ul { margin-left: 1.4rem; margin-bottom: 0.8rem; color: var(--s6e9-text-muted); }
.s6e9-prose li { font-size: 1.3rem; margin-bottom: 0.3rem; }

/* ---------- Footer ---------- */
.s6e9-footer {
  background: var(--s6e9-bg-soft); border-top: 1px solid var(--s6e9-border);
  padding: 2rem 0 1.5rem;
}
.s6e9-footer-intro { color: var(--s6e9-text-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.s6e9-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.s6e9-footer-links a {
  font-size: 1.2rem; color: var(--s6e9-text); padding: 0.3rem 0;
  border-bottom: 1px dashed var(--s6e9-border);
}
.s6e9-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.s6e9-footer-copy { font-size: 1.15rem; color: var(--s6e9-text-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--s6e9-border); }

/* ---------- Mobile bottom nav ---------- */
.s6e9-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 17, 23, 0.98);
  border-top: 1px solid var(--s6e9-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
}
.s6e9-bottomnav-item {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--s6e9-text-muted); cursor: pointer;
  background: transparent; border: none; font-size: 1.05rem;
  transition: color 0.18s ease, transform 0.18s ease;
}
.s6e9-bottomnav-item i, .s6e9-bottomnav-item .material-icons-outlined { font-size: 22px; }
.s6e9-bottomnav-item:hover { color: var(--s6e9-accent); transform: translateY(-2px); }
.s6e9-bottomnav-item.s6e9-active { color: var(--s6e9-primary); }
.s6e9-bottomnav-item.s6e9-active::before {
  content: ""; position: absolute; top: 0; width: 36px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--s6e9-gradient);
}
.s6e9-bottomnav-promo {
  position: relative; color: var(--s6e9-accent);
}
.s6e9-bottomnav-promo::after {
  content: ""; position: absolute; top: 6px; right: 14px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--s6e9-primary);
  box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.25);
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: #07090d; }
  .s6e9-container { max-width: 430px; }
  .s6e9-bottomnav { display: none; }
  .s6e9-main { padding-bottom: 60px; }
}

/* ---------- Mobile spacing for bottom nav ---------- */
@media (max-width: 768px) {
  .s6e9-main { padding-bottom: 84px; }
}

/* ---------- Helpers ---------- */
.s6e9-text-center { text-align: center; }
.s6e9-mt-1 { margin-top: 0.6rem; }
.s6e9-mt-2 { margin-top: 1.2rem; }
.s6e9-divider { height: 1px; background: var(--s6e9-border); margin: 1.2rem 0; }
.s6e9-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.7rem; border-radius: 999px;
  background: rgba(255, 239, 148, 0.12); color: var(--s6e9-accent);
  font-size: 1.1rem; font-weight: 700;
}
