/*!
 * KL55 - Core stylesheet (basefiles)
 * Mobile-first Vietnamese casino landing page.
 * Every custom class uses the w7328- prefix to avoid collisions.
 * Root font-size is 62.5% so 1rem == 10px for easy rem math.
 * Palette: #FFAA00 / #FF9800 / #FFB347 / #ADFF2F / #0E1621
 */
:root {
  --w7328-primary: #FFAA00;
  --w7328-secondary: #FF9800;
  --w7328-accent: #FFB347;
  --w7328-highlight: #ADFF2F;
  --w7328-bg: #0E1621;
  --w7328-bg-soft: #14202e;
  --w7328-bg-card: #1a2738;
  --w7328-text: #FFFFFF;
  --w7328-text-muted: #c7d0dc;
  --w7328-text-dim: #8a96a8;
  --w7328-border: rgba(255, 170, 0, 0.25);
  --w7328-danger: #ff5a5a;
  --w7328-radius: 1.2rem;
  --w7328-radius-sm: 0.8rem;
  --w7328-shadow: 0 0.4rem 1.8rem rgba(0, 0, 0, 0.45);
  --w7328-shadow-glow: 0 0 1.4rem rgba(255, 170, 0, 0.55);
  --w7328-header-h: 6rem;
  --w7328-bottom-h: 6.4rem;
}

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

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Be Vietnam Pro", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--w7328-bg);
  color: var(--w7328-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: 43rem;
  margin: 0 auto;
  position: relative;
}

body.w7328-no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--w7328-highlight); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.w7328-container { width: 100%; max-width: 43rem; margin: 0 auto; padding: 0 1.2rem; }
.w7328-wrapper { padding-top: var(--w7328-header-h); padding-bottom: var(--w7328-bottom-h); }

/* ---------- Header ---------- */
.w7328-header {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 43rem;
  height: var(--w7328-header-h);
  background: linear-gradient(180deg, rgba(14,22,33,0.98), rgba(14,22,33,0.92));
  border-bottom: 0.2rem solid var(--w7328-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1.2rem;
  box-shadow: var(--w7328-shadow);
}
.w7328-header-inner { display: flex; align-items: center; width: 100%; gap: 0.8rem; }
.w7328-logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.w7328-logo img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.w7328-logo-text {
  font-size: 2rem; font-weight: 800; letter-spacing: 0.05rem;
  background: linear-gradient(90deg, var(--w7328-primary), var(--w7328-highlight));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w7328-header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.w7328-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 2rem; font-weight: 700; font-size: 1.3rem;
  min-height: 3.6rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w7328-btn:active { transform: scale(0.96); }
.w7328-btn-primary { background: linear-gradient(90deg, var(--w7328-primary), var(--w7328-secondary)); color: #1a1200; box-shadow: var(--w7328-shadow-glow); }
.w7328-btn-outline { background: transparent; border: 0.15rem solid var(--w7328-highlight); color: var(--w7328-highlight); }
.w7328-btn-block { width: 100%; padding: 1.1rem; font-size: 1.5rem; }
.w7328-icon-btn { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--w7328-bg-card); display: flex; align-items: center; justify-content: center; }
.w7328-icon-btn i, .w7328-icon-btn span.material-icons { font-size: 2rem; color: var(--w7328-primary); }

/* ---------- Mobile menu ---------- */
.w7328-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 9998;
}
.w7328-overlay.w7328-is-visible { opacity: 1; visibility: visible; }
.w7328-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 80%; max-width: 30rem; height: 100vh;
  background: var(--w7328-bg-soft); z-index: 9999;
  transition: right 0.3s ease; padding: 1.6rem; overflow-y: auto;
  border-left: 0.2rem solid var(--w7328-primary);
}
.w7328-mobile-menu.w7328-is-open { right: 0; }
.w7328-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.w7328-menu-head .w7328-logo-text { font-size: 1.8rem; }
.w7328-menu-close { font-size: 2.4rem; color: var(--w7328-primary); }
.w7328-menu-link {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1rem;
  border-radius: var(--w7328-radius-sm); color: var(--w7328-text); font-weight: 600;
  border-bottom: 0.1rem solid rgba(255,170,0,0.1); transition: background 0.2s ease;
}
.w7328-menu-link:active { background: rgba(255,170,0,0.12); }
.w7328-menu-link i { color: var(--w7328-primary); font-size: 1.8rem; }
.w7328-menu-cta { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* ---------- Main sections ---------- */
.w7328-section { padding: 2rem 0; }
.w7328-section-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.w7328-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--w7328-text);
  display: flex; align-items: center; gap: 0.6rem;
}
.w7328-section-title i, .w7328-section-title span.material-icons { color: var(--w7328-primary); font-size: 2rem; }
.w7328-section-sub { font-size: 1.25rem; color: var(--w7328-text-muted); margin-bottom: 1.2rem; }
.w7328-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.35; margin: 1.2rem 0;
  background: linear-gradient(90deg, var(--w7328-primary), var(--w7328-highlight));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w7328-lead { font-size: 1.4rem; color: var(--w7328-text-muted); line-height: 1.7; }
.w7328-text-link { color: var(--w7328-highlight); font-weight: 700; border-bottom: 0.1rem dashed var(--w7328-highlight); }
.w7328-prose p { margin-bottom: 0.9rem; color: var(--w7328-text-muted); line-height: 1.7; }

/* ---------- Carousel ---------- */
.w7328-carousel {
  position: relative; border-radius: var(--w7328-radius); overflow: hidden;
  box-shadow: var(--w7328-shadow); margin: 1.2rem 0;
}
.w7328-carousel-viewport { overflow: hidden; border-radius: var(--w7328-radius); }
.w7328-carousel-track { display: flex; transition: transform var(--carousel-transition, 480ms) ease; }
.w7328-carousel-slide { min-width: 100%; position: relative; }
.w7328-carousel-slide img { width: 100%; height: 18rem; object-fit: cover; }
.w7328-carousel-cap {
  position: absolute; left: 1rem; bottom: 1.2rem; right: 1rem;
  background: rgba(14,22,33,0.75); padding: 0.8rem 1rem; border-radius: var(--w7328-radius-sm);
  border-left: 0.3rem solid var(--w7328-primary);
}
.w7328-carousel-cap strong { color: var(--w7328-primary); display: block; font-size: 1.4rem; }
.w7328-carousel-cap span { color: var(--w7328-text-muted); font-size: 1.15rem; }
.w7328-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 50%; background: rgba(14,22,33,0.7);
  color: var(--w7328-primary); display: flex; align-items: center; justify-content: center; z-index: 2;
}
.w7328-carousel-arrow i { font-size: 1.6rem; }
.w7328-carousel-prev { left: 0.6rem; }
.w7328-carousel-next { right: 0.6rem; }
.w7328-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.6rem 0; }
.w7328-carousel-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.3); transition: all 0.2s; }
.w7328-carousel-dot.w7328-is-active { background: var(--w7328-primary); width: 2rem; border-radius: 0.4rem; }

/* ---------- Game grid ---------- */
.w7328-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.w7328-game-card {
  background: var(--w7328-bg-card); border-radius: var(--w7328-radius-sm);
  padding: 0.6rem; text-align: center; position: relative; overflow: hidden;
  border: 0.1rem solid transparent; transition: transform 0.15s ease, border-color 0.2s ease;
}
.w7328-game-card:active { transform: scale(0.96); border-color: var(--w7328-primary); }
.w7328-game-img-wrap { position: relative; border-radius: 0.6rem; overflow: hidden; aspect-ratio: 1 / 1; }
.w7328-game-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.w7328-game-card .w7328-game-overlay {
  position: absolute; inset: 0; background: rgba(14,22,33,0.55);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s;
}
.w7328-game-card:active .w7328-game-overlay { opacity: 1; }
.w7328-game-play {
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--w7328-primary), var(--w7328-secondary));
  color: #1a1200; display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.w7328-game-name {
  display: block; margin-top: 0.5rem; font-size: 1.15rem; color: var(--w7328-text);
  font-weight: 600; line-height: 1.3; min-height: 3rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.w7328-game-tag {
  position: absolute; top: 0.3rem; left: 0.3rem; z-index: 2;
  background: var(--w7328-highlight); color: #0E1621; font-size: 0.95rem; font-weight: 800;
  padding: 0.15rem 0.5rem; border-radius: 0.4rem; text-transform: uppercase;
}
.w7328-cat-tabs { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.6rem; margin-bottom: 1rem; scrollbar-width: none; }
.w7328-cat-tabs::-webkit-scrollbar { display: none; }
.w7328-cat-pill {
  flex-shrink: 0; padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 1.2rem; font-weight: 700;
  background: var(--w7328-bg-card); color: var(--w7328-text-muted); border: 0.1rem solid transparent;
}
.w7328-cat-pill.w7328-is-active { background: var(--w7328-primary); color: #1a1200; }

/* ---------- Cards / Features ---------- */
.w7328-card {
  background: var(--w7328-bg-card); border-radius: var(--w7328-radius);
  padding: 1.4rem; box-shadow: var(--w7328-shadow);
  border: 0.1rem solid rgba(255,170,0,0.12);
}
.w7328-card-title { font-size: 1.5rem; font-weight: 800; color: var(--w7328-primary); margin-bottom: 0.6rem; }
.w7328-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w7328-feature {
  background: var(--w7328-bg-soft); border-radius: var(--w7328-radius-sm);
  padding: 1.2rem; text-align: center; border-top: 0.25rem solid var(--w7328-primary);
}
.w7328-feature i, .w7328-feature span.material-icons { font-size: 2.4rem; color: var(--w7328-highlight); margin-bottom: 0.4rem; }
.w7328-feature h3 { font-size: 1.3rem; color: var(--w7328-text); margin-bottom: 0.3rem; }
.w7328-feature p { font-size: 1.1rem; color: var(--w7328-text-muted); line-height: 1.4; }

/* ---------- Steps ---------- */
.w7328-steps { display: flex; flex-direction: column; gap: 0.8rem; }
.w7328-step {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--w7328-bg-soft); padding: 1rem; border-radius: var(--w7328-radius-sm);
  border-left: 0.3rem solid var(--w7328-highlight);
}
.w7328-step-num {
  flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--w7328-primary), var(--w7328-secondary));
  color: #1a1200; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem;
}
.w7328-step h4 { font-size: 1.25rem; color: var(--w7328-text); margin-bottom: 0.2rem; }
.w7328-step p { font-size: 1.1rem; color: var(--w7328-text-muted); line-height: 1.5; }

/* ---------- RTP / Stats ---------- */
.w7328-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w7328-stat {
  background: var(--w7328-bg-card); padding: 1rem; border-radius: var(--w7328-radius-sm); text-align: center;
  border: 0.1rem solid var(--w7328-border);
}
.w7328-stat-val { font-size: 1.8rem; font-weight: 800; color: var(--w7328-highlight); }
.w7328-stat-label { font-size: 1.05rem; color: var(--w7328-text-muted); }
.w7328-rtp-row { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; border-bottom: 0.1rem solid rgba(255,255,255,0.06); }
.w7328-rtp-row:last-child { border-bottom: none; }
.w7328-rtp-name { font-size: 1.2rem; color: var(--w7328-text); }
.w7328-rtp-bar { flex: 1; height: 0.6rem; background: rgba(255,255,255,0.08); border-radius: 0.3rem; margin: 0 0.8rem; overflow: hidden; }
.w7328-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--w7328-primary), var(--w7328-highlight)); }
.w7328-rtp-val { font-size: 1.2rem; color: var(--w7328-highlight); font-weight: 700; min-width: 4rem; text-align: right; }

/* ---------- Payment / Partners ---------- */
.w7328-chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.w7328-chip { background: var(--w7328-bg-card); border-radius: 0.8rem; padding: 0.8rem; text-align: center; font-size: 1.05rem; font-weight: 600; color: var(--w7328-text-muted); border: 0.1rem solid var(--w7328-border); }
.w7328-chip i, .w7328-chip span.material-icons { display: block; font-size: 1.8rem; color: var(--w7328-primary); margin-bottom: 0.3rem; }

/* ---------- Testimonials ---------- */
.w7328-review {
  background: var(--w7328-bg-card); border-radius: var(--w7328-radius-sm);
  padding: 1.1rem; margin-bottom: 0.8rem; border-left: 0.3rem solid var(--w7328-highlight);
}
.w7328-review-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.w7328-review-avatar { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: linear-gradient(135deg, var(--w7328-primary), var(--w7328-highlight)); color: #0E1621; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.w7328-review-name { font-size: 1.2rem; font-weight: 700; color: var(--w7328-text); }
.w7328-review-stars { color: var(--w7328-primary); font-size: 1rem; }
.w7328-review p { font-size: 1.15rem; color: var(--w7328-text-muted); line-height: 1.5; }

/* ---------- Winners ---------- */
.w7328-winner {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem;
  background: var(--w7328-bg-soft); border-radius: 0.6rem; margin-bottom: 0.5rem;
  border-left: 0.25rem solid var(--w7328-primary);
}
.w7328-winner-name { font-size: 1.15rem; color: var(--w7328-text); font-weight: 700; }
.w7328-winner-game { font-size: 1rem; color: var(--w7328-text-dim); }
.w7328-winner-amount { margin-left: auto; color: var(--w7328-highlight); font-weight: 800; font-size: 1.25rem; }

/* ---------- App CTA ---------- */
.w7328-app-cta {
  background: linear-gradient(135deg, rgba(255,170,0,0.15), rgba(173,255,47,0.1));
  border-radius: var(--w7328-radius); padding: 1.4rem; text-align: center;
  border: 0.15rem dashed var(--w7328-primary);
}
.w7328-app-cta h3 { font-size: 1.6rem; color: var(--w7328-primary); margin-bottom: 0.4rem; }
.w7328-app-cta p { font-size: 1.15rem; color: var(--w7328-text-muted); margin-bottom: 1rem; }
.w7328-app-buttons { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.w7328-faq-item {
  background: var(--w7328-bg-card); border-radius: var(--w7328-radius-sm);
  padding: 1rem 1.2rem; margin-bottom: 0.6rem; border-left: 0.25rem solid var(--w7328-primary);
}
.w7328-faq-q { font-size: 1.25rem; font-weight: 700; color: var(--w7328-highlight); margin-bottom: 0.3rem; }
.w7328-faq-a { font-size: 1.15rem; color: var(--w7328-text-muted); line-height: 1.6; }

/* ---------- Footer ---------- */
.w7328-footer {
  background: var(--w7328-bg-soft); padding: 2rem 1.2rem 7rem;
  border-top: 0.2rem solid var(--w7328-primary); margin-top: 1.5rem;
}
.w7328-footer-brand { font-size: 1.15rem; color: var(--w7328-text-muted); line-height: 1.6; margin-bottom: 1.2rem; }
.w7328-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1.2rem; }
.w7328-footer-links a { font-size: 1.1rem; color: var(--w7328-text-muted); }
.w7328-footer-links a:hover { color: var(--w7328-primary); }
.w7328-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.w7328-footer-promo .w7328-btn { flex: 1; min-width: 45%; padding: 0.8rem 1rem; font-size: 1.2rem; }
.w7328-footer-copy { font-size: 1.05rem; color: var(--w7328-text-dim); text-align: center; padding-top: 1rem; border-top: 0.1rem solid rgba(255,255,255,0.06); }

/* ---------- Bottom nav ---------- */
.w7328-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 43rem; height: var(--w7328-bottom-h);
  background: linear-gradient(180deg, rgba(20,32,46,0.98), rgba(14,22,33,1));
  border-top: 0.2rem solid var(--w7328-primary);
  display: flex; justify-content: space-around; align-items: stretch; z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.4);
}
.w7328-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--w7328-text-muted); font-size: 1rem; font-weight: 600;
  position: relative; transition: color 0.2s ease;
  min-width: 6rem; min-height: 6rem;
}
.w7328-bottom-nav-btn i, .w7328-bottom-nav-btn span.material-icons { font-size: 2.4rem; transition: transform 0.2s ease; }
.w7328-bottom-nav-btn:active { color: var(--w7328-primary); }
.w7328-bottom-nav-btn:active i, .w7328-bottom-nav-btn:active span.material-icons { transform: scale(1.2); }
.w7328-bottom-nav-btn.w7328-is-current { color: var(--w7328-primary); }
.w7328-bottom-nav-btn.w7328-is-current::before {
  content: ''; position: absolute; top: 0; width: 2.4rem; height: 0.25rem;
  background: var(--w7328-primary); border-radius: 0 0 0.3rem 0.3rem;
}
.w7328-bottom-nav-btn.w7328-promo { color: var(--w7328-highlight); }
.w7328-bottom-nav-btn.w7328-promo i, .w7328-bottom-nav-btn.w7328-promo span.material-icons { color: var(--w7328-highlight); }

/* ---------- Desktop / tablet ---------- */
@media (min-width: 769px) {
  body { max-width: 43rem; box-shadow: var(--w7328-shadow); min-height: 100vh; }
  .w7328-bottom-nav { display: none; }
  .w7328-wrapper { padding-bottom: 2rem; }
  .w7328-footer { padding-bottom: 2rem; }
}

/* Mobile overflow guard */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { min-width: 0; }
.w7328-wrapper, .w7328-container, .w7328-header, .w7328-bottom-nav { max-width: min(43rem, 100vw); }
img, video, iframe, table { max-width: 100%; }
@media (max-width: 768px) {
  body { max-width: 100vw !important; }
  .w7328-wrapper, .w7328-container, .w7328-header, .w7328-bottom-nav, .w7328-carousel, .w7328-carousel-track { width: 100% !important; max-width: 100vw !important; }
  .w7328-carousel, .w7328-carousel-track { overflow: hidden !important; contain: paint; }
  .w7328-carousel-track { display: block !important; }
  .w7328-carousel-slide { display: none; width: 100% !important; min-width: 0 !important; }
  .w7328-carousel-slide:first-child, .w7328-carousel-slide.w7328-active, .w7328-carousel-slide.active { display: block; }
  .w7328-mobile-menu:not(.w7328-open):not(.active) { display: none !important; }
}
