/* ===========================================================
   x88v top - style-a867.css
   Prefix: sa86-
   Mobile-first casino gaming website (Vietnam / vi)
   Palette: #1B263B #ADB5BD #0000FF #5F9EA0 #FFEB3B #6495ED
   =========================================================== */

:root {
  --sa86-bg: #0f1420;
  --sa86-bg-2: #1B263B;
  --sa86-surface: #18223a;
  --sa86-surface-2: #21304f;
  --sa86-text: #f3f6ff;
  --sa86-muted: #ADB5BD;
  --sa86-primary: #6495ED;
  --sa86-primary-2: #0000FF;
  --sa86-accent: #FFEB3B;
  --sa86-teal: #5F9EA0;
  --sa86-danger: #ff5a6a;
  --sa86-success: #37d39b;
  --sa86-gold: #ffd24a;
  --sa86-radius: 14px;
  --sa86-radius-lg: 22px;
  --sa86-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --sa86-shadow-glow: 0 8px 28px rgba(100, 149, 237, .35);
  --sa86-header-h: 60px;
  --sa86-bottom-h: 62px;
  --sa86-max: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

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

body {
  font-family: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #21304f 0%, var(--sa86-bg) 55%) fixed;
  color: var(--sa86-text);
  line-height: 1.55;
  font-size: 1.5rem;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.sa86-container { width: 100%; max-width: var(--sa86-max); margin: 0 auto; padding: 0 14px; }

/* ============ HEADER ============ */
.sa86-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(15, 20, 32, .96), rgba(27, 38, 59, .92));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(100, 149, 237, .25);
}
.sa86-header-inner {
  height: var(--sa86-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sa86-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.85rem; letter-spacing: .3px; }
.sa86-logo .sa86-logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sa86-primary), var(--sa86-primary-2));
  display: grid; place-items: center; color: var(--sa86-accent);
  box-shadow: var(--sa86-shadow-glow);
  font-size: 1.6rem;
}
.sa86-logo span b { color: var(--sa86-accent); }

.sa86-header-actions { display: flex; align-items: center; gap: 8px; }
.sa86-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  font-weight: 700; font-size: 1.35rem;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.sa86-btn:active { transform: scale(.96); }
.sa86-btn-login {
  background: rgba(100, 149, 237, .12);
  color: var(--sa86-text);
  border: 1px solid rgba(100, 149, 237, .55);
}
.sa86-btn-register {
  background: linear-gradient(135deg, var(--sa86-accent), var(--sa86-gold));
  color: #1B263B;
  box-shadow: 0 6px 16px rgba(255, 235, 59, .35);
}
.sa86-icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(100, 149, 237, .12);
  border: 1px solid rgba(100, 149, 237, .3);
  color: var(--sa86-text); font-size: 1.7rem;
}

/* ============ MOBILE MENU ============ */
.sa86-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.sa86-menu-backdrop.sa86-open { opacity: 1; pointer-events: auto; }
.sa86-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 340px;
  height: 100vh; background: var(--sa86-surface);
  z-index: 9999; transition: right .3s ease;
  padding: 18px 16px; overflow-y: auto;
  border-left: 1px solid rgba(100, 149, 237, .25);
}
.sa86-mobile-menu.sa86-open { right: 0; }
.sa86-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sa86-menu-head h3 { font-size: 1.8rem; color: var(--sa86-accent); }
.sa86-menu-close { width: 34px; height: 34px; border-radius: 8px; background: var(--sa86-surface-2); display: grid; place-items: center; font-size: 1.6rem; }
.sa86-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; border-radius: 10px;
  color: var(--sa86-text); font-size: 1.5rem; font-weight: 600;
  border-bottom: 1px solid rgba(100, 149, 237, .12);
}
.sa86-menu-link i { color: var(--sa86-primary); width: 22px; text-align: center; }
.sa86-menu-link:hover { background: rgba(100, 149, 237, .12); }
.sa86-menu-cta { display: flex; gap: 10px; margin-top: 18px; }
.sa86-menu-cta .sa86-btn { flex: 1; }

/* ============ HERO ============ */
.sa86-hero {
  position: relative;
  margin: 14px 0;
  border-radius: var(--sa86-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1B263B 0%, #21304f 60%, #0000FF 140%);
  border: 1px solid rgba(100, 149, 237, .3);
  box-shadow: var(--sa86-shadow);
}
.sa86-hero-slides { display: flex; transition: transform .5s ease; }
.sa86-hero-slide {
  min-width: 100%; padding: 22px 18px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px;
  position: relative;
}
.sa86-hero-slide::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 59, .35), transparent 60%);
}
.sa86-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 235, 59, .15); color: var(--sa86-accent);
  padding: 4px 10px; border-radius: 999px; font-size: 1.2rem; font-weight: 700;
  width: fit-content;
  border: 1px solid rgba(255, 235, 59, .35);
}
.sa86-hero-slide h2 { font-size: 2.4rem; line-height: 1.2; font-weight: 800; }
.sa86-hero-slide h2 em { color: var(--sa86-accent); font-style: normal; }
.sa86-hero-slide p { color: var(--sa86-muted); font-size: 1.35rem; max-width: 88%; }
.sa86-hero-actions { display: flex; gap: 10px; margin-top: 6px; z-index: 2; }
.sa86-hero-actions .sa86-btn { padding: 11px 18px; font-size: 1.4rem; }
.sa86-hero-dots { display: flex; justify-content: center; gap: 6px; padding: 0 0 14px; }
.sa86-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: all .2s; }
.sa86-hero-dot.sa86-active { background: var(--sa86-accent); width: 22px; border-radius: 999px; }

/* ============ SECTIONS ============ */
.sa86-section { margin: 22px 0; }
.sa86-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.sa86-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.85rem; font-weight: 800;
}
.sa86-section-title i { color: var(--sa86-accent); font-size: 2rem; }
.sa86-section-title span { background: linear-gradient(135deg, var(--sa86-accent), var(--sa86-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sa86-section-link { color: var(--sa86-primary); font-size: 1.3rem; font-weight: 600; }

/* ============ FILTER ============ */
.sa86-filter {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 10px; margin: 0 -14px 8px; padding-left: 14px; padding-right: 14px;
  scrollbar-width: none;
}
.sa86-filter::-webkit-scrollbar { display: none; }
.sa86-filter-btn {
  flex: 0 0 auto;
  padding: 8px 14px; border-radius: 999px;
  background: var(--sa86-surface); color: var(--sa86-muted);
  font-size: 1.3rem; font-weight: 600;
  border: 1px solid rgba(100, 149, 237, .25);
  white-space: nowrap;
  transition: all .2s;
}
.sa86-filter-btn.sa86-active {
  background: linear-gradient(135deg, var(--sa86-primary), var(--sa86-primary-2));
  color: #fff; border-color: transparent;
  box-shadow: var(--sa86-shadow-glow);
}

/* ============ GAME GRID ============ */
.sa86-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sa86-game-card {
  position: relative;
  border-radius: var(--sa86-radius);
  overflow: hidden;
  background: var(--sa86-surface);
  border: 1px solid rgba(100, 149, 237, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sa86-game-card:active { transform: scale(.97); }
.sa86-game-card:hover { box-shadow: var(--sa86-shadow); border-color: rgba(255, 235, 59, .45); }
.sa86-game-thumb {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: linear-gradient(135deg, #21304f, #1B263B);
}
.sa86-game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sa86-game-card:hover .sa86-game-thumb img { transform: scale(1.08); }
.sa86-game-tag {
  position: absolute; top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--sa86-accent), var(--sa86-gold));
  color: #1B263B; font-weight: 800; font-size: 1rem;
  padding: 2px 7px; border-radius: 6px;
}
.sa86-game-tag.sa86-hot { background: linear-gradient(135deg, #ff5a6a, #ff8a3a); color: #fff; }
.sa86-game-tag.sa86-new { background: linear-gradient(135deg, var(--sa86-success), #2bb673); color: #fff; }
.sa86-game-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 20, 32, .7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.sa86-game-card:hover .sa86-game-overlay { opacity: 1; }
.sa86-game-play {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sa86-accent), var(--sa86-gold));
  color: #1B263B; display: grid; place-items: center; font-size: 1.8rem;
  box-shadow: var(--sa86-shadow-glow);
}
.sa86-game-info { padding: 8px 10px; }
.sa86-game-name {
  font-size: 1.25rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sa86-game-meta { font-size: 1.1rem; color: var(--sa86-muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }

/* ============ FEATURED BLOCK ============ */
.sa86-feature {
  background: linear-gradient(135deg, rgba(27, 38, 59, .9), rgba(95, 158, 160, .5));
  border-radius: var(--sa86-radius-lg);
  padding: 16px;
  border: 1px solid rgba(255, 235, 59, .3);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  align-items: center;
  box-shadow: var(--sa86-shadow);
}
.sa86-feature-body h3 { font-size: 1.85rem; color: var(--sa86-accent); margin-bottom: 6px; }
.sa86-feature-body p { font-size: 1.3rem; color: var(--sa86-muted); margin-bottom: 10px; }
.sa86-feature-img { border-radius: var(--sa86-radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid rgba(255, 235, 59, .25); }

/* ============ PROMO STRIP ============ */
.sa86-promo-strip {
  background: linear-gradient(135deg, #0000FF, #6495ED);
  border-radius: var(--sa86-radius);
  padding: 14px; margin: 16px 0;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sa86-shadow);
}
.sa86-promo-strip i { font-size: 3rem; color: var(--sa86-accent); }
.sa86-promo-strip div { flex: 1; }
.sa86-promo-strip h4 { font-size: 1.5rem; color: #fff; }
.sa86-promo-strip p { font-size: 1.2rem; color: rgba(255, 255, 255, .85); }

/* ============ STATS ============ */
.sa86-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 18px 0;
}
.sa86-stat {
  background: var(--sa86-surface);
  border-radius: var(--sa86-radius);
  padding: 12px; text-align: center;
  border: 1px solid rgba(100, 149, 237, .18);
}
.sa86-stat-num { font-size: 2rem; font-weight: 800; color: var(--sa86-accent); }
.sa86-stat-label { font-size: 1.1rem; color: var(--sa86-muted); }

/* ============ SEO CONTENT ============ */
.sa86-seo {
  background: var(--sa86-surface);
  border-radius: var(--sa86-radius-lg);
  padding: 18px 16px;
  border: 1px solid rgba(100, 149, 237, .15);
  margin: 20px 0;
}
.sa86-seo h2 { font-size: 1.9rem; margin-bottom: 10px; color: var(--sa86-accent); }
.sa86-seo h3 { font-size: 1.55rem; margin: 14px 0 6px; color: var(--sa86-primary); }
.sa86-seo p { font-size: 1.35rem; color: var(--sa86-muted); margin-bottom: 10px; }
.sa86-seo ul { padding-left: 18px; margin-bottom: 10px; list-style: disc; }
.sa86-seo li { font-size: 1.3rem; color: var(--sa86-muted); margin-bottom: 4px; }
.sa86-seo a { color: var(--sa86-primary); text-decoration: underline; }

/* ============ FAQ ============ */
.sa86-faq-item {
  background: var(--sa86-surface);
  border-radius: var(--sa86-radius);
  margin-bottom: 8px;
  border: 1px solid rgba(100, 149, 237, .15);
  overflow: hidden;
}
.sa86-faq-q {
  width: 100%; text-align: left;
  padding: 13px 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.35rem; font-weight: 600; color: var(--sa86-text);
}
.sa86-faq-q i { color: var(--sa86-accent); transition: transform .25s; }
.sa86-faq-item.sa86-open .sa86-faq-q i { transform: rotate(180deg); }
.sa86-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: 0 14px;
}
.sa86-faq-item.sa86-open .sa86-faq-a { max-height: 320px; padding-bottom: 14px; }
.sa86-faq-a p { font-size: 1.3rem; color: var(--sa86-muted); }

/* ============ FOOTER ============ */
.sa86-footer {
  background: linear-gradient(180deg, var(--sa86-bg-2), #0c111c);
  padding: 24px 0 16px;
  margin-top: 30px;
  border-top: 1px solid rgba(100, 149, 237, .2);
}
.sa86-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sa86-footer-col h4 { font-size: 1.45rem; color: var(--sa86-accent); margin-bottom: 8px; }
.sa86-footer-col a { display: block; font-size: 1.25rem; color: var(--sa86-muted); padding: 4px 0; }
.sa86-footer-col a:hover { color: var(--sa86-primary); }
.sa86-footer-bottom {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(100, 149, 237, .15);
  text-align: center; font-size: 1.15rem; color: var(--sa86-muted);
}
.sa86-footer-bottom p { margin-bottom: 4px; }
.sa86-18plus {
  display: inline-block; margin-top: 8px;
  border: 1px solid var(--sa86-muted); border-radius: 6px;
  padding: 2px 8px; font-weight: 800; font-size: 1.1rem;
}

/* ============ MOBILE BOTTOM NAV ============ */
.sa86-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: var(--sa86-bottom-h);
  background: linear-gradient(180deg, rgba(27, 38, 59, .98), rgba(15, 20, 32, 1));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(100, 149, 237, .3);
  display: flex; justify-content: space-around; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sa86-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--sa86-muted);
  font-size: 1rem; font-weight: 600;
  position: relative;
  transition: color .2s;
}
.sa86-nav-btn i { font-size: 2.1rem; }
.sa86-nav-btn.sa86-active { color: var(--sa86-accent); }
.sa86-nav-btn.sa86-active::before {
  content: ""; position: absolute; top: 0;
  width: 30px; height: 3px; border-radius: 0 0 6px 6px;
  background: var(--sa86-accent);
}
.sa86-nav-btn.sa86-promo {
  color: var(--sa86-accent);
  transform: translateY(-12px);
}
.sa86-nav-btn.sa86-promo i {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sa86-accent), var(--sa86-gold));
  color: #1B263B;
  display: grid; place-items: center;
  font-size: 2rem;
  box-shadow: 0 6px 16px rgba(255, 235, 59, .45);
  margin-bottom: 2px;
}

/* main content clearance for bottom nav */
main { padding-bottom: calc(var(--sa86-bottom-h) + 16px); }

/* ============ UTIL ============ */
.sa86-text-link { color: var(--sa86-accent); font-weight: 700; text-decoration: underline; }
.sa86-hide-mobile { display: none; }
.sa86-overflow-hidden { overflow: hidden; }

/* desktop */
@media (min-width: 769px) {
  .sa86-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .sa86-container { max-width: 960px; }
  .sa86-game-grid { grid-template-columns: repeat(6, 1fr); }
  .sa86-hide-mobile { display: block; }
}

@media (min-width: 600px) and (max-width: 768px) {
  .sa86-game-grid { grid-template-columns: repeat(4, 1fr); }
}

/* focus accessibility */
.sa86-btn:focus-visible, .sa86-nav-btn:focus-visible, .sa86-menu-link:focus-visible {
  outline: 2px solid var(--sa86-accent); outline-offset: 2px;
}
