/*!
 * fb777 layout stylesheet (layout-5dca.css)
 * All custom classes use the "va8e-" prefix.
 * Mobile-first, max content width 430px.
 */
:root {
  --va8e-primary: #CD5C5C;
  --va8e-bg: #0D1117;
  --va8e-sage: #8FBC8F;
  --va8e-accent: #FF0000;
  --va8e-soft: #FFB6C1;
  --va8e-text: #F5F5F5;
  --va8e-muted: #A9A9A9;
  --va8e-card: #161B22;
  --va8e-border: #2A2F37;
  --va8e-gold: #FFD166;
  --va8e-radius: 1.2rem;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--va8e-bg);
  color: var(--va8e-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--va8e-soft); text-decoration: none; }

/* ============ Header ============ */
.va8e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0D1117 0%, #1b1414 100%);
  border-bottom: 0.2rem solid var(--va8e-primary);
  box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.55);
  max-width: 430px;
  margin: 0 auto;
}
.va8e-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}
.va8e-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.va8e-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.va8e-logo-text {
  font-weight: 800;
  font-size: 2rem;
  color: var(--va8e-primary);
  letter-spacing: 0.05rem;
  white-space: nowrap;
}
.va8e-logo-text span { color: var(--va8e-soft); }

.va8e-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.va8e-menu-btn {
  background: transparent;
  border: 0.1rem solid var(--va8e-border);
  color: var(--va8e-text);
  width: 3.6rem; height: 3.6rem;
  border-radius: 0.8rem;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.va8e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 3.6rem;
  line-height: 1;
}
.va8e-btn:active { transform: scale(0.96); }
.va8e-btn-register {
  background: linear-gradient(135deg, var(--va8e-accent), var(--va8e-primary));
  color: #fff;
  box-shadow: 0 0.3rem 0.8rem rgba(255,0,0,0.35);
}
.va8e-btn-login {
  background: transparent;
  color: var(--va8e-soft);
  border: 0.15rem solid var(--va8e-soft);
}

/* ============ Mobile expandable menu ============ */
.va8e-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #11151C;
  border-bottom: 0.2rem solid var(--va8e-primary);
  padding: 6rem 1.2rem 1.5rem;
  transform: translateY(-110%);
  transition: transform 0.28s ease;
  z-index: 9999;
  max-height: 85vh;
  overflow-y: auto;
}
.va8e-mobile-menu.va8e-menu-open { transform: translateY(0); }
.va8e-mobile-menu a {
  display: block;
  padding: 1.1rem 1rem;
  border-bottom: 0.1rem solid var(--va8e-border);
  color: var(--va8e-text);
  font-weight: 600;
}
.va8e-mobile-menu a:last-child { border-bottom: none; }
.va8e-mobile-menu a:hover { color: var(--va8e-primary); background: rgba(205,92,92,0.08); }

/* ============ Main / sections ============ */
.va8e-main { padding-top: 6rem; padding-bottom: 8.5rem; }
.va8e-section { padding: 2rem 1.2rem; }
.va8e-section-alt { background: #11151C; }

.va8e-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: #fff;
}
.va8e-h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 1.6rem 0 1rem;
  color: var(--va8e-primary);
  border-left: 0.4rem solid var(--va8e-soft);
  padding-left: 0.8rem;
}
.va8e-h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 1.2rem 0 0.6rem;
  color: var(--va8e-soft);
}
.va8e-p { margin-bottom: 1rem; color: #E8E8E8; }
.va8e-p b, .va8e-text-link {
  color: var(--va8e-soft);
  font-weight: 700;
  cursor: pointer;
}
.va8e-promo-text {
  color: var(--va8e-gold);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

/* ============ Carousel ============ */
.va8e-carousel {
  position: relative;
  border-radius: var(--va8e-radius);
  overflow: hidden;
  margin: 1rem 1.2rem;
  box-shadow: 0 0.5rem 1.4rem rgba(0,0,0,0.5);
}
.va8e-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.va8e-carousel-slide {
  min-width: 100%;
  position: relative;
}
.va8e-carousel-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}
.va8e-carousel-caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(13,17,23,0.78);
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}
.va8e-carousel-dots {
  position: absolute;
  right: 1rem; bottom: 1rem;
  display: flex; gap: 0.4rem;
}
.va8e-carousel-dots span {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

/* ============ Category title ============ */
.va8e-cat-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2rem 1.2rem 1rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--va8e-sage);
}
.va8e-cat-title i { color: var(--va8e-gold); }

/* ============ Game grid ============ */
.va8e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}
.va8e-game-card {
  background: var(--va8e-card);
  border: 0.1rem solid var(--va8e-border);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.va8e-game-card:active {
  transform: scale(0.96);
  box-shadow: 0 0.4rem 1rem rgba(205,92,92,0.35);
}
.va8e-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #000;
}
.va8e-game-card-name {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.5rem 0.3rem;
  color: #EAEAEA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Generic card ============ */
.va8e-card {
  background: var(--va8e-card);
  border: 0.1rem solid var(--va8e-border);
  border-radius: var(--va8e-radius);
  padding: 1.4rem;
  margin: 1rem 1.2rem;
}
.va8e-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}
.va8e-card-grid .va8e-mini {
  background: var(--va8e-card);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  border: 0.1rem solid var(--va8e-border);
}
.va8e-mini b { color: var(--va8e-gold); font-size: 1.8rem; display: block; }
.va8e-mini span { color: var(--va8e-muted); font-size: 1.2rem; }

/* ============ CTA banner ============ */
.va8e-cta {
  background: linear-gradient(135deg, var(--va8e-accent), var(--va8e-primary));
  border-radius: var(--va8e-radius);
  padding: 1.6rem;
  margin: 1.4rem 1.2rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 0.5rem 1.4rem rgba(255,0,0,0.35);
}
.va8e-cta h3 { color: #fff; margin-bottom: 0.6rem; font-size: 1.8rem; }
.va8e-cta-btn {
  display: inline-block;
  margin-top: 0.8rem;
  background: #fff;
  color: var(--va8e-accent);
  padding: 1rem 2.4rem;
  border-radius: 2rem;
  font-weight: 800;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ============ List ============ */
.va8e-list { padding-left: 1.6rem; margin: 0.5rem 0 1rem; }
.va8e-list li { margin-bottom: 0.5rem; color: #E8E8E8; }

/* ============ Testimonial ============ */
.va8e-testimonial {
  background: var(--va8e-card);
  border-left: 0.3rem solid var(--va8e-sage);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  margin: 0.8rem 1.2rem;
}
.va8e-testimonial b { color: var(--va8e-soft); }
.va8e-testimonial .va8e-stars { color: var(--va8e-gold); }

/* ============ Payment chips ============ */
.va8e-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0 1.2rem; }
.va8e-chip {
  background: var(--va8e-card);
  border: 0.1rem solid var(--va8e-border);
  border-radius: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--va8e-text);
}

/* ============ Footer ============ */
.va8e-footer {
  background: #0A0E14;
  border-top: 0.2rem solid var(--va8e-primary);
  padding: 2rem 1.2rem 7.5rem;
  color: var(--va8e-muted);
  font-size: 1.3rem;
}
.va8e-footer-brand { margin-bottom: 1rem; color: #E8E8E8; }
.va8e-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin: 1rem 0;
}
.va8e-footer-links a {
  color: var(--va8e-soft);
  font-size: 1.25rem;
}
.va8e-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 1rem 0;
}
.va8e-footer-promos button, .va8e-footer-promos a {
  background: var(--va8e-primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
}
.va8e-footer-copy {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: #6f7785;
  border-top: 0.1rem solid var(--va8e-border);
  padding-top: 1rem;
}

/* ============ Mobile bottom nav ============ */
.va8e-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6.2rem;
  background: linear-gradient(180deg, #161B22, #0A0E14);
  border-top: 0.15rem solid var(--va8e-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.5);
}
.va8e-bottomnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 6rem;
  color: var(--va8e-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  position: relative;
}
.va8e-bottomnav-item i,
.va8e-bottomnav-item span.material-icons-outlined,
.va8e-bottomnav-item ion-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.va8e-bottomnav-item ion-icon { font-size: 2.4rem; }
.va8e-bottomnav-item .va8e-bottomnav-label {
  font-size: 1.05rem;
  font-weight: 600;
}
.va8e-bottomnav-item:active { transform: scale(0.92); }
.va8e-bottomnav-item:hover { color: var(--va8e-soft); }
.va8e-bottomnav-active { color: var(--va8e-primary); }
.va8e-bottomnav-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 2.4rem; height: 0.25rem;
  background: var(--va8e-primary);
  border-radius: 0 0 0.3rem 0.3rem;
}
.va8e-bottomnav-badge {
  position: absolute;
  top: 0.6rem; right: 1.2rem;
  background: var(--va8e-accent);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.05rem 0.45rem;
  border-radius: 0.8rem;
  font-weight: 700;
}

/* ============ Desktop: hide bottom nav ============ */
@media (min-width: 769px) {
  .va8e-bottomnav { display: none; }
  .va8e-footer { padding-bottom: 2rem; }
  .va8e-main { padding-bottom: 2rem; }
}

/* ============ Larger phones ============ */
@media (min-width: 376px) {
  .va8e-grid { grid-template-columns: repeat(3, 1fr); }
}
