/* ============================================================
   33win77 - css/layout.css
   All custom classes use the "vf56-" prefix.
   Palette: #0000FF | #2E4057 | #5F9EA0 | #FAFAFA
   Mobile-first. Root font-size 62.5% => 1rem = 10px.
   ============================================================ */

:root {
  --vf56-primary: #0000FF;      /* vivid brand blue */
  --vf56-bg: #2E4057;            /* deep slate background */
  --vf56-bg-2: #1d2b3a;          /* darker slate surface */
  --vf56-accent: #5F9EA0;        /* soft teal accent */
  --vf56-text: #FAFAFA;          /* near-white text */
  --vf56-muted: #b7c4d0;         /* dimmed text */
  --vf56-gold: #f5c451;          /* warm highlight */
  --vf56-danger: #ff5a5f;        /* alert / hot */
  --vf56-radius: 14px;
  --vf56-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

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

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

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--vf56-bg);
  color: var(--vf56-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--vf56-accent); text-decoration: none; }

/* ---------------- Layout helpers ---------------- */
.vf56-container { width: 100%; padding: 0 14px; }
.vf56-wrapper { max-width: 430px; margin: 0 auto; }
.vf56-section { padding: 22px 14px; }
.vf56-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vf56-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vf56-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--vf56-primary);
  border-radius: 3px;
}
.vf56-eyebrow {
  font-size: 1.2rem;
  color: var(--vf56-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* ---------------- Header ---------------- */
.vf56-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--vf56-bg-2), var(--vf56-bg));
  border-bottom: 1px solid rgba(95, 158, 160, 0.35);
  max-width: 430px;
  margin: 0 auto;
}
.vf56-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.vf56-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.vf56-logo img { width: 30px; height: 30px; border-radius: 6px; }
.vf56-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--vf56-text);
  white-space: nowrap;
}
.vf56-logo-text span { color: var(--vf56-primary); }
.vf56-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vf56-menu-btn {
  background: transparent;
  border: 1px solid rgba(250, 250, 250, 0.25);
  color: var(--vf56-text);
  width: 38px; height: 38px;
  border-radius: 9px;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vf56-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 38px;
}
.vf56-btn:active { transform: scale(0.96); }
.vf56-btn-login {
  background: transparent;
  color: var(--vf56-text);
  border: 1px solid var(--vf56-accent);
}
.vf56-btn-register {
  background: var(--vf56-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 255, 0.35);
}

/* ---------------- Mobile drawer menu ---------------- */
.vf56-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
  max-width: 430px;
  margin: 0 auto;
}
.vf56-overlay-show { opacity: 1; visibility: visible; }

.vf56-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 340px;
  height: 100%;
  background: var(--vf56-bg-2);
  z-index: 9999;
  padding: 18px 16px;
  transition: right 0.28s ease;
  overflow-y: auto;
}
.vf56-menu-open { right: 0; }
.vf56-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.vf56-menu-head h3 { font-size: 1.8rem; color: var(--vf56-text); }
.vf56-menu-close {
  background: transparent; border: none; color: var(--vf56-text);
  font-size: 2.2rem; cursor: pointer;
}
.vf56-menu-list { list-style: none; }
.vf56-menu-list li { margin-bottom: 6px; }
.vf56-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  font-size: 1.5rem;
  color: var(--vf56-text);
  border-radius: 10px;
  background: rgba(95, 158, 160, 0.08);
}
.vf56-menu-list a:active { background: rgba(0, 0, 255, 0.25); }
.vf56-menu-list .material-icons,
.vf56-menu-list i { font-size: 2rem; color: var(--vf56-accent); }

/* ---------------- Hero carousel ---------------- */
.vf56-main { padding-top: 62px; }
.vf56-carousel {
  position: relative;
  width: 100%;
  border-radius: 0 0 var(--vf56-radius) var(--vf56-radius);
  overflow: hidden;
}
.vf56-carousel-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}
.vf56-carousel-slide {
  position: relative;
  min-width: 100%;
  height: 190px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.vf56-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.vf56-slide-active { opacity: 1; }
.vf56-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.15));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}
.vf56-slide-overlay h2 { font-size: 2rem; color: #fff; margin-bottom: 6px; }
.vf56-slide-overlay p { font-size: 1.25rem; color: var(--vf56-gold); margin-bottom: 10px; }
.vf56-slide-cta {
  display: inline-block;
  background: var(--vf56-primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  width: fit-content;
}
.vf56-carousel-dots {
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}
.vf56-carousel-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  margin: 0 3px;
  cursor: pointer;
}
.vf56-dot-active { background: var(--vf56-gold); width: 22px; border-radius: 4px; }

/* ---------------- H1 hero text ---------------- */
.vf56-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--vf56-text);
  line-height: 1.35;
  margin-bottom: 8px;
}
.vf56-lead {
  font-size: 1.4rem;
  color: var(--vf56-muted);
  margin-bottom: 14px;
}

/* ---------------- Game grid ---------------- */
.vf56-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 22px 0 12px;
}
.vf56-cat-head h2 {
  font-size: 1.8rem; font-weight: 700; color: var(--vf56-text);
}
.vf56-cat-tag {
  background: var(--vf56-accent);
  color: var(--vf56-bg-2);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.vf56-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.vf56-game-card {
  background: var(--vf56-bg-2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease;
  border: 1px solid rgba(95, 158, 160, 0.18);
}
.vf56-game-card:active { transform: scale(0.96); }
.vf56-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.vf56-game-name {
  padding: 6px 8px;
  font-size: 1.15rem;
  color: var(--vf56-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vf56-game-hot {
  position: relative;
}
.vf56-game-hot::after {
  content: "HOT";
  position: absolute;
  top: 6px; left: 6px;
  background: var(--vf56-danger);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------------- Info / feature cards ---------------- */
.vf56-card {
  background: var(--vf56-bg-2);
  border-radius: var(--vf56-radius);
  padding: 16px;
  box-shadow: var(--vf56-shadow);
  border: 1px solid rgba(95, 158, 160, 0.18);
}
.vf56-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.vf56-feature {
  background: var(--vf56-bg-2);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(95, 158, 160, 0.18);
}
.vf56-feature .material-icons,
.vf56-feature i { font-size: 2.6rem; color: var(--vf56-primary); margin-bottom: 6px; }
.vf56-feature h3 { font-size: 1.35rem; color: var(--vf56-text); margin-bottom: 4px; }
.vf56-feature p { font-size: 1.15rem; color: var(--vf56-muted); }

/* ---------------- Testimonials ---------------- */
.vf56-testimonials { display: grid; gap: 10px; }
.vf56-testimonial {
  background: var(--vf56-bg-2);
  border-left: 3px solid var(--vf56-primary);
  border-radius: 10px;
  padding: 12px 14px;
}
.vf56-testimonial .vf56-stars { color: var(--vf56-gold); font-size: 1.3rem; margin-bottom: 4px; }
.vf56-testimonial p { font-size: 1.25rem; color: var(--vf56-text); margin-bottom: 6px; }
.vf56-testimonial span { font-size: 1.15rem; color: var(--vf56-accent); }

/* ---------------- Payment row ---------------- */
.vf56-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vf56-pay-chip {
  background: var(--vf56-bg-2);
  border: 1px solid rgba(95, 158, 160, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.2rem;
  color: var(--vf56-text);
  display: flex; align-items: center; gap: 6px;
}

/* ---------------- App CTA ---------------- */
.vf56-app-cta {
  background: linear-gradient(135deg, var(--vf56-primary), var(--vf56-accent));
  border-radius: var(--vf56-radius);
  padding: 18px;
  text-align: center;
  color: #fff;
}
.vf56-app-cta h3 { font-size: 1.8rem; margin-bottom: 6px; }
.vf56-app-cta p { font-size: 1.3rem; margin-bottom: 12px; }
.vf56-app-cta .vf56-btn { background: #fff; color: var(--vf56-primary); }

/* ---------------- Inline promo link ---------------- */
.vf56-text-link {
  color: var(--vf56-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--vf56-primary);
  cursor: pointer;
}

/* ---------------- Winners strip ---------------- */
.vf56-winners {
  background: var(--vf56-bg-2);
  border-radius: var(--vf56-radius);
  padding: 12px;
}
.vf56-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 4px;
  border-bottom: 1px dashed rgba(95, 158, 160, 0.25);
  font-size: 1.25rem;
}
.vf56-winner-row:last-child { border-bottom: none; }
.vf56-winner-amount { color: var(--vf56-gold); font-weight: 700; }

/* ---------------- Footer ---------------- */
.vf56-footer {
  background: var(--vf56-bg-2);
  padding: 22px 14px 18px;
  margin-top: 18px;
  border-top: 3px solid var(--vf56-primary);
}
.vf56-footer h4 { font-size: 1.4rem; color: var(--vf56-text); margin-bottom: 8px; }
.vf56-footer p { font-size: 1.2rem; color: var(--vf56-muted); margin-bottom: 12px; }
.vf56-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.vf56-footer-links a {
  background: rgba(95, 158, 160, 0.1);
  color: var(--vf56-text);
  font-size: 1.15rem;
  padding: 6px 10px;
  border-radius: 8px;
}
.vf56-footer-links a:active { background: var(--vf56-primary); }
.vf56-footer-bottom {
  text-align: center;
  font-size: 1.1rem;
  color: var(--vf56-muted);
  padding-top: 10px;
  border-top: 1px solid rgba(95, 158, 160, 0.18);
}

/* ---------------- Bottom navigation ---------------- */
.vf56-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--vf56-bg-2), #0f1822);
  border-top: 1px solid rgba(95, 158, 160, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}
.vf56-bottomnav-btn {
  background: transparent;
  border: none;
  color: var(--vf56-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}
.vf56-bottomnav-btn:active { transform: scale(0.9); }
.vf56-bottomnav-btn i,
.vf56-bottomnav-btn .material-icons,
.vf56-bottomnav-btn ion-icon { font-size: 22px; }
.vf56-bottomnav-btn span { font-size: 1.05rem; }
.vf56-bottomnav-btn:hover { color: var(--vf56-text); }
.vf56-bottomnav-active,
.vf56-bottomnav-btn.vf56-bottomnav-active { color: var(--vf56-primary); }
.vf56-bottomnav-center {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--vf56-primary);
  color: #fff !important;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(0, 0, 255, 0.45);
  border: 3px solid var(--vf56-bg-2);
}
.vf56-bottomnav-center i { font-size: 22px; }

/* ---------------- Main content bottom padding (mobile) ---------------- */
@media (max-width: 768px) {
  .vf56-main { padding-bottom: 80px; }
}

/* ---------------- Desktop: hide bottom nav ---------------- */
@media (min-width: 769px) {
  .vf56-bottomnav { display: none; }
}

/* ---------------- Back to top ---------------- */
.vf56-to-top {
  position: fixed;
  right: 14px;
  bottom: 74px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--vf56-primary);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--vf56-shadow);
}
