/*!
 * VS Bet - design-09a8.css
 * Mobile-first casino/gaming stylesheet. Prefix: ga89-
 * Palette: #8470FF primary | #1E1E1E dark background
 * Content language: Vietnamese (vi-VN). Comments in English.
 */

:root {
  --ga89-primary: #8470FF;
  --ga89-primary-dark: #5d4ad6;
  --ga89-primary-light: #b3a6ff;
  --ga89-bg: #1E1E1E;
  --ga89-bg-2: #151515;
  --ga89-bg-3: #2a2632;
  --ga89-text: #f5f3ff;
  --ga89-text-muted: #b8b3d6;
  --ga89-accent: #ffb020;
  --ga89-accent-2: #ff4d6d;
  --ga89-success: #28d17c;
  --ga89-border: rgba(132, 112, 255, 0.25);
  --ga89-radius: 14px;
  --ga89-radius-sm: 9px;
  --ga89-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --ga89-header-h: 58px;
  --ga89-bottomnav-h: 62px;
}

/* Base reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--ga89-bg);
  color: var(--ga89-text);
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ga89-primary-light); text-decoration: none; }
a:hover, a:focus { color: var(--ga89-accent); }
ul { list-style: none; }

/* Wrapper constrained to mobile width on phone-first design */
.ga89-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--ga89-bg);
  min-height: 100vh;
}
.ga89-container { width: 100%; padding: 0 14px; }

/* === Header === */
.ga89-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(30,30,30,0.98), rgba(30,30,30,0.92));
  border-bottom: 1px solid var(--ga89-border);
  backdrop-filter: blur(8px);
}
.ga89-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--ga89-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.ga89-brand { display: flex; align-items: center; gap: 8px; }
.ga89-brand img { width: 28px; height: 28px; border-radius: 6px; }
.ga89-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #fff, var(--ga89-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ga89-actions { display: flex; align-items: center; gap: 8px; }
.ga89-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  color: #fff;
}
.ga89-btn:active { transform: scale(0.96); }
.ga89-btn-primary {
  background: linear-gradient(135deg, var(--ga89-primary), var(--ga89-primary-dark));
  box-shadow: 0 4px 14px rgba(132,112,255,0.4);
}
.ga89-btn-outline {
  background: transparent;
  border: 1.5px solid var(--ga89-primary);
  color: var(--ga89-primary-light);
}
.ga89-btn-accent {
  background: linear-gradient(135deg, var(--ga89-accent), #ff8a00);
  color: #1a1a1a;
}
.ga89-iconbtn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(132,112,255,0.12);
  border: 1px solid var(--ga89-border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ga89-text);
  cursor: pointer;
}
.ga89-iconbtn i { font-size: 18px; }

/* === Mobile dropdown menu === */
.ga89-mobile-menu {
  position: fixed;
  top: var(--ga89-header-h);
  left: 0; right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--ga89-bg-2);
  z-index: 9999;
  border-bottom: 1px solid var(--ga89-border);
  transition: max-height .3s ease;
}
.ga89-mobile-menu.ga89-menu-open { max-height: 460px; }
.ga89-mobile-menu ul { padding: 8px 14px 14px; }
.ga89-mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 8px;
  border-bottom: 1px solid rgba(132,112,255,0.08);
  font-weight: 600;
  color: var(--ga89-text);
}
.ga89-mobile-menu li a i { color: var(--ga89-primary); font-size: 18px; width: 22px; text-align: center; }

/* === Main === */
.ga89-main {
  padding-top: calc(var(--ga89-header-h) + 10px);
  padding-bottom: 80px;
}
.ga89-section { padding: 18px 14px; }
.ga89-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}
.ga89-section-title i { color: var(--ga89-accent); }
.ga89-section-title .ga89-more {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ga89-primary-light);
}

/* === Carousel === */
.ga89-carousel {
  position: relative;
  border-radius: var(--ga89-radius);
  overflow: hidden;
  box-shadow: var(--ga89-shadow);
  aspect-ratio: 16/7;
  margin: 6px 0 4px;
}
.ga89-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.ga89-slide.ga89-slide-active { opacity: 1; }
.ga89-slide img { width: 100%; height: 100%; object-fit: cover; }
.ga89-slide-cap {
  position: absolute; left: 12px; bottom: 10px;
  background: rgba(0,0,0,0.45);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* === H1 hero === */
.ga89-hero {
  padding: 14px;
  background: radial-gradient(circle at top right, rgba(132,112,255,0.18), transparent 60%);
}
.ga89-hero h1 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35rem;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}
.ga89-hero p { color: var(--ga89-text-muted); font-size: 0.92rem; }

/* === Game grid === */
.ga89-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ga89-game-card {
  background: var(--ga89-bg-3);
  border-radius: var(--ga89-radius-sm);
  overflow: hidden;
  border: 1px solid var(--ga89-border);
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ga89-game-card:active { transform: scale(0.96); }
.ga89-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #000;
}
.ga89-game-card .ga89-game-name {
  font-size: 0.72rem;
  padding: 6px 4px 7px;
  color: var(--ga89-text);
  line-height: 1rem;
  height: 2rem;
  overflow: hidden;
}
.ga89-cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ga89-accent);
  background: rgba(255,176,32,0.1);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* === Cards / generic blocks === */
.ga89-card {
  background: linear-gradient(160deg, var(--ga89-bg-3), #211d2c);
  border: 1px solid var(--ga89-border);
  border-radius: var(--ga89-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.ga89-card h2, .ga89-card h3 { color: #fff; margin-bottom: 8px; }
.ga89-card h2 { font-size: 1.1rem; }
.ga89-card h3 { font-size: 0.98rem; }
.ga89-card p { color: var(--ga89-text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.ga89-text-link { font-weight: 700; color: var(--ga89-accent); border-bottom: 1px dotted var(--ga89-accent); }

/* Feature list */
.ga89-features { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.ga89-feature {
  background: rgba(132,112,255,0.08);
  border: 1px solid var(--ga89-border);
  border-radius: var(--ga89-radius-sm);
  padding: 12px;
  text-align: center;
}
.ga89-feature i { font-size: 24px; color: var(--ga89-primary-light); margin-bottom: 6px; }
.ga89-feature strong { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.ga89-feature span { font-size: 0.72rem; color: var(--ga89-text-muted); }

/* Stat row */
.ga89-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; text-align: center; }
.ga89-stat { background: var(--ga89-bg-3); border-radius: 10px; padding: 12px 6px; border: 1px solid var(--ga89-border); }
.ga89-stat .ga89-num { font-size: 1.15rem; font-weight: 800; color: var(--ga89-accent); }
.ga89-stat .ga89-lbl { font-size: 0.7rem; color: var(--ga89-text-muted); }

/* Testimonial */
.ga89-testimonial {
  background: var(--ga89-bg-3);
  border-left: 3px solid var(--ga89-primary);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.ga89-testimonial .ga89-quote { font-size: 0.88rem; color: var(--ga89-text); font-style: italic; }
.ga89-testimonial .ga89-author { font-size: 0.75rem; color: var(--ga89-text-muted); margin-top: 6px; }

/* Payment / app CTA */
.ga89-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.ga89-pay span {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ga89-border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
}
.ga89-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: linear-gradient(135deg, var(--ga89-primary), var(--ga89-accent-2));
  color: #fff;
  font-weight: 800;
  border-radius: var(--ga89-radius);
  margin: 10px 0;
  box-shadow: 0 6px 18px rgba(132,112,255,0.45);
}

/* Reveal animation */
.ga89-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.ga89-reveal.ga89-visible { opacity: 1; transform: translateY(0); }

/* === Footer === */
.ga89-footer {
  background: var(--ga89-bg-2);
  border-top: 1px solid var(--ga89-border);
  padding: 22px 14px 80px;
}
.ga89-footer .ga89-foot-brand { font-size: 0.86rem; color: var(--ga89-text-muted); margin-bottom: 12px; line-height: 1.5rem; }
.ga89-foot-promos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ga89-foot-promos a {
  flex: 1 1 45%;
  text-align: center;
  padding: 8px;
  background: var(--ga89-bg-3);
  border: 1px solid var(--ga89-border);
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.ga89-foot-links { columns: 2; column-gap: 12px; }
.ga89-foot-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--ga89-text-muted);
  break-inside: avoid;
}
.ga89-copyright { margin-top: 14px; font-size: 0.74rem; color: #6f6a8a; text-align: center; }

/* === Bottom navigation (mobile only) === */
.ga89-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--ga89-bottomnav-h);
  background: linear-gradient(180deg, #1c1830, #0f0f17);
  border-top: 1px solid var(--ga89-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.ga89-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ga89-text-muted);
  font-size: 0.66rem;
  gap: 3px;
  min-width: 60px;
  min-height: 60px;
  position: relative;
  transition: color .15s ease;
}
.ga89-bottomnav a i { font-size: 22px; }
.ga89-bottomnav a.ga89-active { color: var(--ga89-accent); }
.ga89-bottomnav a:active { transform: scale(0.92); }
.ga89-bottomnav a.ga89-nav-promo i {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--ga89-primary), var(--ga89-accent-2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(132,112,255,0.6);
  font-size: 24px;
}

/* Desktop: hide bottom nav, widen wrapper */
@media (min-width: 769px) {
  .ga89-bottomnav { display: none; }
  .ga89-wrapper { max-width: 960px; }
  .ga89-header-inner { max-width: 960px; }
  .ga89-grid { grid-template-columns: repeat(5,1fr); }
  .ga89-features { grid-template-columns: repeat(4,1fr); }
}
/* Mobile padding safety */
@media (max-width: 768px) {
  .ga89-main { padding-bottom: calc(var(--ga89-bottomnav-h) + 16px); }
}
