/* llwin core stylesheet - basefiles */
/* All custom classes use vac5- prefix. Comments in English. */

:root {
  --vac5-primary: #00695C;
  --vac5-accent: #4DB6AC;
  --vac5-light: #E0FFFF;
  --vac5-dark: #2E4057;
  --vac5-bg: #0d1b22;
  --vac5-bg-2: #122731;
  --vac5-text: #E0FFFF;
  --vac5-muted: #9FB7BD;
  --vac5-gold: #E0B341;
  --vac5-danger: #E0533A;
  --vac5-radius: 12px;
  --vac5-header-h: 56px;
  --vac5-bottomnav-h: 62px;
}

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

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

body {
  font-family: "Be Vietnam", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--vac5-bg);
  color: var(--vac5-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.vac5-container { width: 100%; padding: 0 1.2rem; }
.vac5-wrapper { padding-top: var(--vac5-header-h); padding-bottom: calc(var(--vac5-bottomnav-h) + 2rem); }

/* ===== Header ===== */
.vac5-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: var(--vac5-header-h);
  background: linear-gradient(90deg, var(--vac5-dark), var(--vac5-primary));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.vac5-logo { display: flex; align-items: center; gap: .6rem; color: var(--vac5-light); font-weight: 700; font-size: 1.6rem; }
.vac5-logo img { width: 28px; height: 28px; border-radius: 6px; }
.vac5-header-actions { display: flex; align-items: center; gap: .6rem; }
.vac5-btn {
  border: none; cursor: pointer; border-radius: 8px;
  font-size: 1.3rem; font-weight: 600; padding: .6rem 1.2rem;
  min-height: 36px; transition: transform .15s, opacity .15s;
}
.vac5-btn:active { transform: scale(.96); }
.vac5-btn-login { background: transparent; color: var(--vac5-light); border: 1px solid var(--vac5-accent); }
.vac5-btn-register { background: var(--vac5-gold); color: var(--vac5-dark); }
.vac5-menu-toggle {
  background: transparent; border: none; color: var(--vac5-light);
  font-size: 2rem; cursor: pointer; padding: .2rem .6rem; line-height: 1;
}

/* ===== Mobile Menu ===== */
.vac5-mobile-menu {
  position: fixed; top: var(--vac5-header-h); left: 0; right: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: var(--vac5-bg-2);
  border-bottom: 2px solid var(--vac5-primary);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.vac5-mobile-menu.vac5-menu-open { max-height: 460px; }
.vac5-mobile-menu ul { list-style: none; padding: .6rem 1rem; }
.vac5-mobile-menu li a {
  display: block; padding: 1rem .6rem; color: var(--vac5-light);
  border-bottom: 1px solid rgba(77,182,172,.18); font-size: 1.4rem;
}
.vac5-mobile-menu li a:active { background: rgba(77,182,172,.12); }

/* ===== Carousel ===== */
.vac5-carousel {
  position: relative; width: 100%; height: 180px; overflow: hidden;
  border-radius: var(--vac5-radius); margin: 1rem 0;
}
.vac5-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  cursor: pointer;
}
.vac5-slide.vac5-slide-active { opacity: 1; }
.vac5-slide img { width: 100%; height: 100%; object-fit: cover; }
.vac5-slide-cap {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(46,64,87,.78); color: var(--vac5-light);
  padding: .6rem .8rem; border-radius: 8px; font-size: 1.3rem; font-weight: 600;
}
.vac5-dots { position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.vac5-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(224,255,255,.5); cursor: pointer; }
.vac5-dot.vac5-dot-active { background: var(--vac5-gold); }

/* ===== Sections ===== */
.vac5-section { margin: 2rem 0; }
.vac5-section-title {
  font-size: 1.8rem; color: var(--vac5-light); margin-bottom: 1rem;
  border-left: 4px solid var(--vac5-gold); padding-left: .8rem; font-weight: 700;
}
.vac5-section-title small { display:block; font-size:1.2rem; color: var(--vac5-muted); font-weight: 400; }
.vac5-h1 { font-size: 2.2rem; color: var(--vac5-light); margin: 1.2rem 0 .6rem; line-height: 1.35; }
.vac5-lead { color: var(--vac5-muted); font-size: 1.4rem; margin-bottom: 1rem; }

/* ===== Game Grid ===== */
.vac5-game-section { margin: 1.6rem 0; }
.vac5-cat-title {
  font-size: 1.6rem; color: var(--vac5-gold); margin: 1rem 0 .8rem;
  display:flex; align-items:center; gap:.5rem; font-weight:700;
}
.vac5-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
}
.vac5-game-card {
  background: var(--vac5-bg-2); border-radius: 10px; padding: .4rem;
  text-align: center; cursor: pointer; transition: transform .15s, box-shadow .15s;
  border: 1px solid rgba(77,182,172,.18);
}
.vac5-game-card:active { transform: scale(.95); box-shadow: 0 0 12px rgba(224,179,65,.4); }
.vac5-game-card img { width: 100%; height: 60px; object-fit: cover; border-radius: 8px; }
.vac5-game-card span { display:block; font-size: 1rem; color: var(--vac5-light); margin-top:.3rem; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ===== Cards / Modules ===== */
.vac5-card {
  background: var(--vac5-bg-2); border-radius: var(--vac5-radius);
  padding: 1.2rem; margin: 1rem 0;
  border: 1px solid rgba(77,182,172,.16);
}
.vac5-card h2 { font-size:1.7rem; color: var(--vac5-light); margin-bottom:.6rem; }
.vac5-card h3 { font-size:1.4rem; color: var(--vac5-accent); margin: .8rem 0 .4rem; }
.vac5-card p { font-size:1.3rem; color: var(--vac5-muted); margin-bottom:.6rem; }
.vac5-card ul { padding-left: 1.6rem; color: var(--vac5-muted); font-size:1.3rem; }
.vac5-card li { margin-bottom:.4rem; }

/* ===== CTA / Promo text link ===== */
.vac5-cta {
  display:inline-block; background: var(--vac5-gold); color: var(--vac5-dark);
  padding: .8rem 1.6rem; border-radius: 8px; font-weight:700; font-size:1.4rem;
  margin: .6rem 0; cursor:pointer; border:none;
}
.vac5-cta:active { transform: scale(.96); }
.vac5-promo-link { color: var(--vac5-gold); font-weight:700; cursor:pointer; text-decoration:underline; }
.vac5-promo-bold { color: var(--vac5-gold); font-weight: 700; }

/* ===== Feature list ===== */
.vac5-features { display:grid; grid-template-columns: repeat(2,1fr); gap:.6rem; margin:1rem 0; }
.vac5-feature {
  background: var(--vac5-bg-2); border-radius: 10px; padding: .8rem;
  text-align:center; border:1px solid rgba(77,182,172,.16);
}
.vac5-feature i { font-size: 2.2rem; color: var(--vac5-gold); }
.vac5-feature span { display:block; font-size:1.1rem; color: var(--vac5-light); margin-top:.3rem; }

/* ===== Testimonials ===== */
.vac5-testimonials { display:grid; grid-template-columns: 1fr; gap:.6rem; }
.vac5-testimonial { background: var(--vac5-bg-2); border-radius:10px; padding:1rem; border-left:3px solid var(--vac5-gold); }
.vac5-testimonial p { font-size:1.3rem; color: var(--vac5-light); font-style: italic; }
.vac5-testimonial cite { display:block; margin-top:.4rem; color: var(--vac5-muted); font-size:1.1rem; }

/* ===== Payment ===== */
.vac5-payments { display:flex; flex-wrap:wrap; gap:.5rem; }
.vac5-pay {
  background: var(--vac5-bg-2); padding:.6rem 1rem; border-radius:8px;
  color: var(--vac5-light); font-size:1.2rem; border:1px solid rgba(77,182,172,.18);
}

/* ===== Winners ===== */
.vac5-winners { display:grid; grid-template-columns: repeat(2,1fr); gap:.5rem; }
.vac5-winner { background: var(--vac5-bg-2); border-radius:8px; padding:.6rem; text-align:center; }
.vac5-winner span { display:block; font-size:1.1rem; color: var(--vac5-light); }
.vac5-winner b { color: var(--vac5-gold); font-size:1.3rem; }

/* ===== Footer ===== */
.vac5-footer {
  background: var(--vac5-bg-2); padding: 2rem 1.2rem;
  border-top: 2px solid var(--vac5-primary); margin-top: 2rem;
}
.vac5-footer-brand { color: var(--vac5-muted); font-size:1.2rem; margin-bottom:1rem; line-height:1.6; }
.vac5-footer-links { display:flex; flex-wrap:wrap; gap:.5rem; margin: 1rem 0; }
.vac5-footer-links a {
  color: var(--vac5-light); font-size:1.1rem; padding:.4rem .6rem;
  background: rgba(77,182,172,.1); border-radius:6px;
}
.vac5-footer-promo { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0; }
.vac5-footer-promo button {
  background: var(--vac5-primary); color: var(--vac5-light); border:none;
  padding:.6rem 1rem; border-radius:8px; font-size:1.2rem; font-weight:600; cursor:pointer;
}
.vac5-footer-copy { color: var(--vac5-muted); font-size:1.1rem; border-top:1px solid rgba(77,182,172,.18); padding-top:1rem; margin-top:1rem; }

/* ===== Bottom Nav ===== */
.vac5-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: var(--vac5-bottomnav-h);
  background: linear-gradient(90deg, var(--vac5-dark), var(--vac5-primary));
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,.45);
  border-top: 1px solid rgba(224,179,65,.3);
}
.vac5-bottomnav-btn {
  background: transparent; border: none; cursor: pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-width: 60px; min-height: 60px; color: var(--vac5-light);
  transition: transform .15s, color .15s; flex: 1;
}
.vac5-bottomnav-btn i, .vac5-bottomnav-btn .material-icons-outlined,
.vac5-bottomnav-btn .ion-icon { font-size: 24px; }
.vac5-bottomnav-btn span { font-size: 1.0rem; margin-top: .2rem; }
.vac5-bottomnav-btn:active { transform: scale(.9); color: var(--vac5-gold); }
.vac5-bottomnav-active { color: var(--vac5-gold); }
.vac5-bottomnav-active span { color: var(--vac5-gold); }
.vac5-bottomnav-badge {
  position: absolute; top: 6px; right: 18px; background: var(--vac5-danger);
  color:#fff; font-size: .9rem; border-radius: 50%; width: 16px; height: 16px;
  display:flex; align-items:center; justify-content:center;
}

/* ===== Desktop: hide bottom nav, show header centered ===== */
@media (min-width: 769px) {
  .vac5-bottomnav { display: none; }
  .vac5-wrapper { padding-bottom: 2rem; }
}

/* ===== Mobile bottom padding clearance ===== */
@media (max-width: 768px) {
  main.vac5-main { padding-bottom: calc(var(--vac5-bottomnav-h) + 1.5rem); }
}

/* ===== Utility ===== */
.vac5-text-center { text-align:center; }
.vac5-mt-1 { margin-top: 1rem; }
.vac5-mb-1 { margin-bottom: 1rem; }
.vac5-hide-desktop { display: block; }
@media (min-width: 769px) { .vac5-hide-desktop { display: none; } }
