/* ============================================================
   EE 88 - Core Stylesheet (prefix: va69-)
   Mobile-first casino gaming website - Vietnamese localization
   Palette: #87CEEB | #FAFAD2 | #4169E1 | #2C2C2C | #FFB347
   ============================================================ */

:root {
  --va69-sky: #87CEEB;
  --va69-light: #FAFAD2;
  --va69-royal: #4169E1;
  --va69-dark: #2C2C2C;
  --va69-amber: #FFB347;
  --va69-bg: #1a1a1a;
  --va69-bg-alt: #232323;
  --va69-card: #2C2C2C;
  --va69-text: #FAFAD2;
  --va69-text-muted: #c8c8c8;
  --va69-primary: #4169E1;
  --va69-accent: #FFB347;
  --va69-success: #4ade80;
  --va69-border: #3a3a3a;
  --va69-radius: 10px;
  --va69-radius-sm: 6px;
  --va69-shadow: 0 4px 14px rgba(0,0,0,.35);
  --va69-transition: .25s ease;
}

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

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

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--va69-bg);
  color: var(--va69-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--va69-sky); text-decoration: none; transition: color var(--va69-transition); }
a:hover { color: var(--va69-amber); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.va69-wrapper { max-width: 430px; margin: 0 auto; position: relative; min-height: 100vh; }
.va69-container { width: 100%; padding: 0 14px; }

/* ---------- Header ---------- */
.va69-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1f1f1f, #2C2C2C);
  border-bottom: 1px solid var(--va69-border);
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  transition: padding var(--va69-transition);
}
.va69-header-scrolled { padding: 2px 0; }
.va69-header .va69-container { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; }
.va69-logo-row { display: flex; align-items: center; gap: 8px; }
.va69-logo { width: 30px; height: 30px; border-radius: 6px; background: var(--va69-royal); display: flex; align-items: center; justify-content: center; color: var(--va69-light); font-weight: 700; font-size: 1.4rem; }
.va69-site-name { color: var(--va69-sky); font-weight: 800; font-size: 1.7rem; letter-spacing: .5px; }
.va69-header-actions { display: flex; align-items: center; gap: 8px; }
.va69-menu-toggle { color: var(--va69-sky); font-size: 2.2rem; padding: 4px 8px; display: flex; align-items: center; }

/* ---------- Buttons ---------- */
.va69-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--va69-radius-sm);
  font-size: 1.4rem; font-weight: 700;
  transition: transform var(--va69-transition), box-shadow var(--va69-transition);
  min-height: 40px; min-width: 44px; text-transform: uppercase; letter-spacing: .3px;
}
.va69-btn:active { transform: scale(.96); }
.va69-btn-register {
  background: linear-gradient(135deg, var(--va69-amber), #ff9d2c);
  color: #2C2C2C;
  box-shadow: 0 4px 10px rgba(255,179,71,.4);
}
.va69-btn-register:hover { box-shadow: 0 6px 16px rgba(255,179,71,.55); color: #2C2C2C; }
.va69-btn-login {
  background: var(--va69-royal); color: #fff;
  box-shadow: 0 4px 10px rgba(65,105,225,.4);
}
.va69-btn-login:hover { background: #3558c9; }
.va69-btn-ghost {
  background: transparent; color: var(--va69-light);
  border: 1px solid var(--va69-border);
}
.va69-btn-promo {
  background: linear-gradient(135deg, var(--va69-royal), #5a7bf0);
  color: #fff; padding: 14px 22px; font-size: 1.6rem; width: 100%;
  box-shadow: 0 6px 18px rgba(65,105,225,.5);
}
.va69-btn-promo:hover { color: #fff; transform: translateY(-2px); }
.va69-btn-amber {
  background: linear-gradient(135deg, var(--va69-amber), #ff9d2c);
  color: #2C2C2C; padding: 14px 22px; font-size: 1.6rem; width: 100%;
  box-shadow: 0 6px 18px rgba(255,179,71,.5);
}

/* ---------- Mobile menu ---------- */
.va69-menu-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.6); opacity: 0; visibility: hidden;
  transition: opacity var(--va69-transition);
}
.va69-overlay-active { opacity: 1; visibility: visible; }
.va69-mobile-menu {
  position: fixed; top: 0; right: -78%; width: 78%; max-width: 320px;
  height: 100%; z-index: 9999;
  background: #202020; border-left: 1px solid var(--va69-border);
  padding: 70px 0 30px; transition: right .3s ease;
  overflow-y: auto;
}
.va69-menu-open { right: 0; }
.va69-menu-list { list-style: none; }
.va69-menu-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; color: var(--va69-text); font-size: 1.5rem;
  border-bottom: 1px solid var(--va69-border);
  transition: background var(--va69-transition), color var(--va69-transition);
}
.va69-menu-list li a:hover { background: var(--va69-bg-alt); color: var(--va69-amber); }
.va69-menu-list .va69-icon { font-size: 2rem; color: var(--va69-sky); width: 26px; text-align: center; }
.va69-menu-close { position: absolute; top: 14px; right: 16px; font-size: 2.4rem; color: var(--va69-light); }

/* ---------- Hero / Carousel ---------- */
.va69-hero { padding-top: 58px; }
.va69-carousel {
  position: relative; overflow: hidden; border-radius: 0 0 14px 14px;
  margin-bottom: 14px; background: #111;
}
.va69-carousel-track { position: relative; height: 220px; }
.va69-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity var(--va69-transition);
  cursor: pointer;
}
.va69-slide-active { opacity: 1; }
.va69-carousel-slide img { width: 100%; height: 220px; object-fit: cover; }
.va69-carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%);
}
.va69-slide-caption {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  color: #fff; font-size: 1.5rem; font-weight: 700; z-index: 2;
}
.va69-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 3;
}
.va69-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45);
  border: none; transition: background var(--va69-transition), transform var(--va69-transition);
}
.va69-dot-active { background: var(--va69-amber); transform: scale(1.25); }

/* ---------- Section ---------- */
.va69-section { padding: 22px 14px 10px; }
.va69-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.va69-section-title {
  font-size: 1.9rem; font-weight: 800; color: var(--va69-light);
  display: flex; align-items: center; gap: 8px; padding-left: 10px;
  border-left: 4px solid var(--va69-amber); line-height: 1.4;
}
.va69-section-title .va69-icon { color: var(--va69-sky); font-size: 2.2rem; }
.va69-section-more { color: var(--va69-sky); font-size: 1.3rem; font-weight: 600; }

/* ---------- Category tabs (non-switching, anchor links) ---------- */
.va69-cat-bar { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 14px; -webkit-overflow-scrolling: touch; }
.va69-cat-bar::-webkit-scrollbar { display: none; }
.va69-cat-link {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 20px;
  background: var(--va69-card); color: var(--va69-light); font-size: 1.3rem; font-weight: 600;
  border: 1px solid var(--va69-border); white-space: nowrap;
  transition: background var(--va69-transition);
}
.va69-cat-link:active { background: var(--va69-royal); color: #fff; }

/* ---------- Game grid ---------- */
.va69-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.va69-game-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--va69-card); border-radius: var(--va69-radius); overflow: hidden;
  border: 1px solid var(--va69-border); cursor: pointer;
  transition: transform var(--va69-transition), box-shadow var(--va69-transition);
}
.va69-game-card:active { transform: scale(.97); }
.va69-game-card:hover { box-shadow: var(--va69-shadow); transform: translateY(-2px); }
.va69-game-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; background: #333; }
.va69-game-name {
  padding: 6px 4px; font-size: 1.2rem; color: var(--va69-light);
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
}

/* ---------- Info / content cards ---------- */
.va69-card {
  background: var(--va69-card); border-radius: var(--va69-radius);
  padding: 16px; margin-bottom: 14px; border: 1px solid var(--va69-border);
}
.va69-card-title { font-size: 1.7rem; font-weight: 800; color: var(--va69-amber); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.va69-card-text { font-size: 1.4rem; color: var(--va69-text-muted); line-height: 1.6; margin-bottom: 8px; }
.va69-card-text strong { color: var(--va69-light); }
.va69-card-text a { color: var(--va69-sky); font-weight: 700; text-decoration: underline; }

/* ---------- Steps list ---------- */
.va69-steps { list-style: none; counter-reset: step; }
.va69-steps li {
  position: relative; padding: 10px 8px 10px 38px; font-size: 1.4rem; color: var(--va69-text-muted);
  border-bottom: 1px solid var(--va69-border); counter-increment: step;
}
.va69-steps li::before {
  content: counter(step); position: absolute; left: 4px; top: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--va69-royal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem;
}

/* ---------- FAQ accordion (static) ---------- */
.va69-faq { margin-bottom: 10px; border-bottom: 1px solid var(--va69-border); padding-bottom: 10px; }
.va69-faq-q { font-size: 1.5rem; font-weight: 700; color: var(--va69-light); margin-bottom: 4px; }
.va69-faq-a { font-size: 1.35rem; color: var(--va69-text-muted); }

/* ---------- RTP analysis table ---------- */
.va69-rtp-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.va69-rtp-table th, .va69-rtp-table td {
  padding: 8px 6px; font-size: 1.3rem; text-align: left;
  border-bottom: 1px solid var(--va69-border);
}
.va69-rtp-table th { color: var(--va69-amber); font-weight: 700; }
.va69-rtp-table td { color: var(--va69-text-muted); }
.va69-rtp-high { color: var(--va69-success) !important; font-weight: 700; }

/* ---------- Testimonial ---------- */
.va69-testimonial { background: var(--va69-card); padding: 14px; border-radius: var(--va69-radius); margin-bottom: 10px; border-left: 3px solid var(--va69-amber); }
.va69-testimonial-text { font-size: 1.35rem; color: var(--va69-text-muted); font-style: italic; margin-bottom: 6px; }
.va69-testimonial-author { font-size: 1.25rem; color: var(--va69-sky); font-weight: 700; }

/* ---------- Winner showcase ---------- */
.va69-winner-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--va69-border); font-size: 1.3rem; }
.va69-winner-name { color: var(--va69-light); font-weight: 600; }
.va69-winner-amount { color: var(--va69-amber); font-weight: 800; }

/* ---------- Payment / app badges ---------- */
.va69-badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.va69-badge {
  flex: 1 1 auto; min-width: 90px; display: flex; align-items: center; gap: 6px; justify-content: center;
  padding: 10px; background: var(--va69-bg-alt); border-radius: var(--va69-radius-sm);
  border: 1px solid var(--va69-border); font-size: 1.25rem; color: var(--va69-light);
}
.va69-badge .va69-icon { font-size: 2rem; color: var(--va69-sky); }

/* ---------- Promo CTA block ---------- */
.va69-cta {
  background: linear-gradient(135deg, var(--va69-royal), #5a7bf0);
  padding: 22px 16px; border-radius: var(--va69-radius);
  text-align: center; margin: 14px 0; color: #fff;
}
.va69-cta h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.va69-cta p { font-size: 1.3rem; margin-bottom: 14px; opacity: .95; }

/* ---------- Footer ---------- */
.va69-footer {
  background: #181818; padding: 22px 14px 84px;
  border-top: 1px solid var(--va69-border); margin-top: 22px;
}
.va69-footer-brand { font-size: 1.5rem; color: var(--va69-light); margin-bottom: 10px; font-weight: 700; }
.va69-footer-text { font-size: 1.25rem; color: var(--va69-text-muted); margin-bottom: 14px; line-height: 1.55; }
.va69-footer-promos { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 14px; }
.va69-footer-promos .va69-btn { padding: 10px; font-size: 1.3rem; }
.va69-footer-links-title { font-size: 1.4rem; color: var(--va69-amber); font-weight: 700; margin: 14px 0 8px; }
.va69-footer-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.va69-footer-links a { font-size: 1.25rem; color: var(--va69-sky); }
.va69-footer-links a:hover { color: var(--va69-amber); text-decoration: underline; }
.va69-copyright { font-size: 1.2rem; color: #777; text-align: center; padding-top: 10px; border-top: 1px solid var(--va69-border); }

/* ---------- Mobile bottom nav ---------- */
.va69-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 60px; display: flex; justify-content: space-around;
  background: linear-gradient(180deg, #232323, #181818);
  border-top: 1px solid var(--va69-border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.5);
}
.va69-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(--va69-text-muted); font-size: 1.05rem; font-weight: 600;
  transition: color var(--va69-transition), transform var(--va69-transition);
  position: relative;
}
.va69-nav-btn .va69-nav-icon { font-size: 2.2rem; line-height: 1; }
.va69-nav-btn:active { transform: scale(.92); color: var(--va69-amber); }
.va69-nav-current { color: var(--va69-amber); }
.va69-nav-current::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; border-radius: 2px; background: var(--va69-amber);
}
.va69-nav-badge {
  position: absolute; top: 6px; right: 18px; font-size: .9rem;
  background: var(--va69-amber); color: #2C2C2C; min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px; display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------- Back to top ---------- */
.va69-back-top {
  position: fixed; bottom: 74px; right: 14px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--va69-amber); color: #2C2C2C;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  opacity: 0; visibility: hidden; transition: opacity var(--va69-transition), visibility var(--va69-transition);
  box-shadow: 0 4px 12px rgba(255,179,71,.5);
}
.va69-back-visible { opacity: 1; visibility: visible; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .va69-wrapper { max-width: 720px; box-shadow: 0 0 30px rgba(0,0,0,.4); }
  .va69-bottom-nav { display: none; }
  .va69-menu-toggle { display: none; }
  .va69-footer { padding-bottom: 22px; }
  .va69-game-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
  .va69-main, main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .va69-game-grid { grid-template-columns: repeat(2, 1fr); }
  .va69-site-name { font-size: 1.5rem; }
  .va69-footer-promos { grid-template-columns: 1fr; }
}