/*!
 * new98 layout (layout-b2da.css)
 * Mobile-first casino site. Wrapper cap: 430px.
 * All custom classes use prefix `vafc-`.
 * Palette: #1A1A2E bg | #FFD700 gold | #CD853F sandy | #D4AF37 deep gold
 */

:root {
  --vafc-bg: #1A1A2E;
  --vafc-bg-2: #232347;
  --vafc-bg-3: #2f2f57;
  --vafc-primary: #FFD700;
  --vafc-accent: #CD853F;
  --vafc-deep: #D4AF37;
  --vafc-text: #f5f5f7;
  --vafc-text-muted: #b8b8d4;
  --vafc-border: rgba(255, 215, 0, 0.18);
  --vafc-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --vafc-radius: 14px;
  --vafc-radius-sm: 9px;
}

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

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

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

img { max-width: 100%; display: block; }
a { color: var(--vafc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Root font: 62.5% → 1rem = 10px (per spec) */
html { font-size: 62.5%; }

/* ---------- Layout core ---------- */
.vafc-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1A1A2E 0%, #20203d 40%, #1A1A2E 100%);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--vafc-shadow);
}

.vafc-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

main { padding-bottom: 90px; }

/* ---------- Header ---------- */
.vafc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vafc-border);
}
.vafc-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}
.vafc-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--vafc-primary);
  font-size: 1.6rem;
  letter-spacing: 0.4px;
}
.vafc-logo img { width: 28px; height: 28px; border-radius: 6px; }
.vafc-logo span { color: var(--vafc-text); }
.vafc-logo b { color: var(--vafc-primary); }

.vafc-header-actions { display: flex; align-items: center; gap: 0.4rem; }

.vafc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.6rem 1.1rem;
  min-height: 36px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.vafc-btn:hover { text-decoration: none; transform: translateY(-1px); }
.vafc-btn:active { transform: scale(0.96); }
.vafc-btn--primary {
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  color: #1A1A2E;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.3);
}
.vafc-btn--ghost {
  background: transparent;
  color: var(--vafc-primary);
  border: 1.5px solid var(--vafc-primary);
}
.vafc-btn--accent {
  background: linear-gradient(135deg, #CD853F, #D4AF37);
  color: #1A1A2E;
}
.vafc-btn--block { width: 100%; }
.vafc-btn--lg { font-size: 1.45rem; padding: 0.85rem 1.4rem; }

.vafc-menu-btn {
  background: transparent;
  border: none;
  color: var(--vafc-primary);
  font-size: 1.8rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vafc-menu-btn--active { background: rgba(255, 215, 0, 0.12); }

/* ---------- Mobile expandable menu ---------- */
.vafc-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--vafc-bg-2);
  border-bottom: 1px solid var(--vafc-border);
  padding: 0.8rem 1.2rem 1.2rem;
  transform: translateY(-130%);
  transition: transform var(--vafc-anim, .28s) ease;
  z-index: 9999;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
.vafc-menu--open { transform: translateY(0); }
.vafc-mobile-menu a {
  display: block;
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--vafc-text);
  font-size: 1.35rem;
  font-weight: 600;
}
.vafc-mobile-menu a:hover { color: var(--vafc-primary); }

/* ---------- Hero / Carousel ---------- */
.vafc-hero { padding-top: 64px; }
.vafc-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--vafc-radius) var(--vafc-radius);
}
.vafc-carousel-track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}
.vafc-carousel-slide {
  min-width: 100%;
  position: relative;
}
.vafc-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.vafc-carousel-cap {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(26,26,46,0.7);
  padding: 0.7rem 0.9rem;
  border-radius: var(--vafc-radius-sm);
  border-left: 3px solid var(--vafc-primary);
}
.vafc-carousel-cap b { color: var(--vafc-primary); display: block; font-size: 1.3rem; }
.vafc-carousel-cap span { color: var(--vafc-text-muted); font-size: 1.15rem; }
.vafc-carousel-dots {
  display: flex; gap: 0.4rem; justify-content: center;
  padding: 0.6rem 0;
}
.vafc-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none; cursor: pointer; padding: 0;
}
.vafc-carousel-dot--active { background: var(--vafc-primary); width: 20px; border-radius: 4px; }

/* ---------- Sections ---------- */
.vafc-section { padding: 1.4rem 1.2rem; }
.vafc-section-alt { background: var(--vafc-bg-2); }

.vafc-h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--vafc-text);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.vafc-h1 b { color: var(--vafc-primary); }
.vafc-h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--vafc-primary);
  margin: 0 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.vafc-h2 .vafc-bar {
  display: inline-block; width: 4px; height: 1.3rem;
  background: var(--vafc-primary); border-radius: 2px;
}
.vafc-h3 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--vafc-deep); margin: 0.6rem 0 0.4rem;
}
.vafc-lead { color: var(--vafc-text-muted); font-size: 1.2rem; margin-bottom: 0.8rem; }
.vafc-p { margin-bottom: 0.8rem; color: var(--vafc-text); }
.vafc-p b { color: var(--vafc-primary); }

/* ---------- Game grid ---------- */
.vafc-game-section { margin-bottom: 1.2rem; }
.vafc-cat-title {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 1rem 0 0.8rem;
  font-size: 1.35rem; font-weight: 700;
  color: var(--vafc-text);
}
.vafc-cat-title i { color: var(--vafc-primary); }
.vafc-cat-title .vafc-tag {
  margin-left: auto;
  font-size: 1rem;
  color: var(--vafc-deep);
  background: rgba(212,175,55,0.12);
  padding: 0.15rem 0.6rem; border-radius: 999px;
}
.vafc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.vafc-card {
  background: var(--vafc-bg-2);
  border: 1px solid var(--vafc-border);
  border-radius: var(--vafc-radius-sm);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  display: block;
}
.vafc-card:hover { transform: translateY(-2px); border-color: var(--vafc-primary); text-decoration: none; }
.vafc-card img { width: 100%; height: 84px; object-fit: cover; background: #15152a; }
.vafc-card-name {
  font-size: 1.05rem;
  color: var(--vafc-text);
  padding: 0.35rem 0.3rem 0.5rem;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Info / feature cards ---------- */
.vafc-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.vafc-feature {
  background: var(--vafc-bg-2);
  border-radius: var(--vafc-radius-sm);
  padding: 0.9rem;
  border: 1px solid var(--vafc-border);
}
.vafc-feature i { font-size: 1.8rem; color: var(--vafc-primary); }
.vafc-feature h3 { font-size: 1.2rem; margin: 0.4rem 0 0.3rem; color: var(--vafc-text); }
.vafc-feature p { font-size: 1.1rem; color: var(--vafc-text-muted); margin: 0; }

/* ---------- RTP bar ---------- */
.vafc-rtp-row { margin-bottom: 0.7rem; }
.vafc-rtp-label {
  display: flex; justify-content: space-between;
  font-size: 1.15rem; margin-bottom: 0.3rem;
}
.vafc-rtp-label b { color: var(--vafc-primary); }
.vafc-rtp-bar {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.vafc-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, #CD853F, #FFD700);
  border-radius: 4px;
}

/* ---------- Testimonials ---------- */
.vafc-quote {
  background: var(--vafc-bg-2);
  border-left: 3px solid var(--vafc-primary);
  border-radius: var(--vafc-radius-sm);
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
}
.vafc-quote p { font-size: 1.15rem; color: var(--vafc-text); margin-bottom: 0.4rem; }
.vafc-quote span { color: var(--vafc-deep); font-size: 1.05rem; font-weight: 600; }

/* ---------- Payment ---------- */
.vafc-pay-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.vafc-pay {
  background: var(--vafc-bg-2);
  border: 1px solid var(--vafc-border);
  border-radius: var(--vafc-radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 1.1rem;
  color: var(--vafc-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ---------- Winners ---------- */
.vafc-winner {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem; background: var(--vafc-bg-2);
  border-radius: var(--vafc-radius-sm); margin-bottom: 0.5rem;
}
.vafc-winner .vafc-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #CD853F);
  display: flex; align-items: center; justify-content: center;
  color: #1A1A2E; font-weight: 800; font-size: 1.1rem;
}
.vafc-winner .vafc-meta { flex: 1; }
.vafc-winner b { color: var(--vafc-primary); display: block; font-size: 1.15rem; }
.vafc-winner span { color: var(--vafc-text-muted); font-size: 1rem; }

/* ---------- FAQ ---------- */
.vafc-faq { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0.7rem 0; }
.vafc-faq h3 { color: var(--vafc-primary); margin-bottom: 0.3rem; font-size: 1.2rem; }
.vafc-faq p { color: var(--vafc-text-muted); font-size: 1.1rem; margin: 0; }

/* ---------- CTA banner ---------- */
.vafc-cta {
  background: linear-gradient(135deg, #CD853F 0%, #FFD700 100%);
  color: #1A1A2E;
  border-radius: var(--vafc-radius);
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 0;
}
.vafc-cta h2 { color: #1A1A2E; justify-content: center; }
.vafc-cta p { color: #2a2a1a; margin-bottom: 0.8rem; font-weight: 600; }

/* ---------- Footer ---------- */
.vafc-footer {
  background: #14142a;
  border-top: 1px solid var(--vafc-border);
  padding: 1.5rem 1.2rem 2rem;
  color: var(--vafc-text-muted);
  font-size: 1.15rem;
}
.vafc-footer-brand { color: var(--vafc-text); margin-bottom: 0.6rem; }
.vafc-footer-brand b { color: var(--vafc-primary); }
.vafc-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem;
  margin: 0.8rem 0;
}
.vafc-footer-links a {
  color: var(--vafc-text-muted);
  font-size: 1.1rem;
}
.vafc-footer-links a:hover { color: var(--vafc-primary); }
.vafc-footer-copy { margin-top: 0.8rem; font-size: 1rem; color: var(--vafc-text-muted); }
.vafc-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0;
}

/* ---------- Bottom navigation ---------- */
.vafc-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(20, 20, 42, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--vafc-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.vafc-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--vafc-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: color .15s ease, transform .15s ease;
}
.vafc-bottom-nav-btn i,
.vafc-bottom-nav-btn span.material-icons-outlined,
.vafc-bottom-nav-btn ion-icon {
  font-size: 22px;
}
.vafc-bottom-nav-btn ion-icon { font-size: 24px; }
.vafc-bottom-nav-btn:hover { color: var(--vafc-primary); }
.vafc-bottom-nav-btn:active { transform: scale(0.9); }
.vafc-bottom-nav-btn--active { color: var(--vafc-primary); }
.vafc-bottom-nav-btn--promo {
  color: var(--vafc-primary);
  position: relative;
}
.vafc-bottom-nav-btn--promo::before {
  content: "";
  position: absolute;
  top: -2px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px; border-radius: 2px;
  background: var(--vafc-primary);
}

/* ---------- Utilities ---------- */
.vafc-text-center { text-align: center; }
.vafc-mt-1 { margin-top: 0.5rem; }
.vafc-mt-2 { margin-top: 1rem; }
.vafc-mb-1 { margin-bottom: 0.5rem; }
.vafc-hidden-mobile { display: none; }
.vafc-badge {
  display: inline-block; background: var(--vafc-deep); color: #1A1A2E;
  font-size: 0.95rem; font-weight: 700;
  padding: 0.1rem 0.5rem; border-radius: 999px; margin-left: 0.4rem;
}

/* ---------- Desktop / tablet ---------- */
@media (min-width: 769px) {
  .vafc-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .vafc-wrapper { box-shadow: 0 0 40px rgba(0,0,0,0.5); }
}

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

@media (max-width: 360px) {
  .vafc-grid { grid-template-columns: repeat(2, 1fr); }
  .vafc-carousel-slide img { height: 170px; }
}
