/**
 * new89.click - layout.css
 * Mobile-first gaming styles. All custom classes use the vf2e- prefix.
 * Palette: #95A5A6 | #4A4A4A | #A9A9A9 | #1C2833 (dark bg, light text).
 * Root font-size: 62.5% -> 1rem = 10px.
 */
:root {
  --vf2e-primary: #1C2833;
  --vf2e-secondary: #4A4A4A;
  --vf2e-muted: #95A5A6;
  --vf2e-soft: #A9A9A9;
  --vf2e-accent: #f5b301;
  --vf2e-accent2: #e74c3c;
  --vf2e-bg: #1C2833;
  --vf2e-bg-2: #232e3b;
  --vf2e-bg-3: #2c3847;
  --vf2e-text: #f4f6f7;
  --vf2e-line: rgba(149, 165, 166, .25);
  --vf2e-radius: .8rem;
  --vf2e-shadow: 0 .4rem 1.2rem rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--vf2e-bg);
  color: var(--vf2e-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--vf2e-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.8rem; font-weight: 700; color: #fff; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.7rem; }

.vf2e-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.vf2e-wrapper { padding-top: 5.6rem; padding-bottom: 1rem; }
.vf2e-section { margin: 2.4rem 0; }
.vf2e-section-title {
  font-size: 1.8rem; margin: 0 0 1.2rem; padding-left: 1rem;
  border-left: .4rem solid var(--vf2e-accent);
}

/* ---------- Header ---------- */
.vf2e-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--vf2e-primary);
  border-bottom: .1rem solid var(--vf2e-line);
  box-shadow: var(--vf2e-shadow);
}
.vf2e-header-inner {
  max-width: 430px; margin: 0 auto; padding: .6rem 1rem;
  display: flex; align-items: center; gap: .8rem;
}
.vf2e-logo { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.6rem; }
.vf2e-logo img { width: 28px; height: 28px; border-radius: .4rem; }
.vf2e-logo span { color: var(--vf2e-accent); }
.vf2e-header-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.vf2e-menu-btn {
  background: transparent; border: .1rem solid var(--vf2e-line); color: #fff;
  width: 3.4rem; height: 3.4rem; border-radius: .6rem; font-size: 1.6rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.vf2e-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 2rem; font-weight: 700; font-size: 1.4rem;
  border: none; cursor: pointer; transition: transform .12s ease, filter .12s ease; min-height: 4rem;
}
.vf2e-btn:active { transform: scale(.96); }
.vf2e-btn-register { background: linear-gradient(135deg, #f5b301, #ff8a00); color: #1C2833; }
.vf2e-btn-login { background: transparent; color: #fff; border: .12rem solid var(--vf2e-accent); }
.vf2e-btn-promo { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; width: 100%; }
.vf2e-btn-block { display: flex; width: 100%; margin: 1rem 0; }
.vf2e-link-text { color: var(--vf2e-accent); font-weight: 700; }

/* ---------- Mobile menu ---------- */
.vf2e-mobile-menu {
  position: fixed; top: 5.6rem; left: 0; right: 0; z-index: 9999;
  background: var(--vf2e-bg-2); border-bottom: .1rem solid var(--vf2e-line);
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
}
.vf2e-mobile-menu.vf2e-open { max-height: 70vh; overflow-y: auto; }
.vf2e-mobile-menu ul { list-style: none; margin: 0; padding: .4rem 1rem 1rem; }
.vf2e-mobile-menu li { border-bottom: .1rem solid var(--vf2e-line); }
.vf2e-mobile-menu a {
  display: block; padding: 1.1rem .6rem; color: #fff; font-size: 1.5rem;
}
.vf2e-mobile-menu a:hover { color: var(--vf2e-accent); text-decoration: none; }
.vf2e-mobile-menu .vf2e-mini-promo {
  display: flex; gap: .6rem; padding: 1rem .6rem;
}

/* ---------- Carousel ---------- */
.vf2e-carousel { position: relative; overflow: hidden; border-radius: var(--vf2e-radius); margin: 1.2rem 0; }
.vf2e-carousel-track { display: flex; transition: transform .45s ease; }
.vf2e-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.vf2e-carousel-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.vf2e-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .8rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.8));
  font-size: 1.4rem; font-weight: 700; color: #fff;
}
.vf2e-carousel-dots { display: flex; justify-content: center; gap: .5rem; padding: .6rem 0; }
.vf2e-carousel-dot {
  width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--vf2e-soft); opacity: .6; cursor: pointer;
}
.vf2e-carousel-dot.vf2e-active { background: var(--vf2e-accent); opacity: 1; }

/* ---------- Filter tabs ---------- */
.vf2e-filter { display: flex; gap: .6rem; overflow-x: auto; padding: .4rem 0 1rem; }
.vf2e-filter-tab {
  flex: 0 0 auto; padding: .6rem 1.2rem; border-radius: 2rem;
  background: var(--vf2e-bg-3); color: var(--vf2e-text); font-size: 1.3rem; cursor: pointer;
  border: .1rem solid transparent;
}
.vf2e-filter-tab.vf2e-active { background: var(--vf2e-accent); color: var(--vf2e-primary); font-weight: 700; }

/* ---------- Game grid ---------- */
.vf2e-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.vf2e-card {
  background: var(--vf2e-bg-2); border-radius: var(--vf2e-radius); overflow: hidden;
  border: .1rem solid var(--vf2e-line); cursor: pointer; transition: transform .12s ease;
  display: block;
}
.vf2e-card:hover { text-decoration: none; transform: translateY(-.2rem); }
.vf2e-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #0e1620; }
.vf2e-card-name {
  padding: .6rem .4rem; font-size: 1.2rem; text-align: center; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vf2e-cat-tag { color: var(--vf2e-accent); font-size: 1.3rem; font-weight: 700; margin: 1.4rem 0 .6rem; }

/* ---------- Feature / info cards ---------- */
.vf2e-panel {
  background: var(--vf2e-bg-2); border-radius: var(--vf2e-radius);
  padding: 1.4rem; border: .1rem solid var(--vf2e-line);
}
.vf2e-panel h3 { margin-top: 0; }
.vf2e-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.vf2e-feature {
  background: var(--vf2e-bg-3); border-radius: var(--vf2e-radius); padding: 1rem;
  text-align: center;
}
.vf2e-feature i { font-size: 2.4rem; color: var(--vf2e-accent); }
.vf2e-feature strong { display: block; margin-top: .4rem; color: #fff; }
.vf2e-feature span { font-size: 1.2rem; color: var(--vf2e-soft); }

.vf2e-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0; border-bottom: .1rem dashed var(--vf2e-line); font-size: 1.35rem;
}
.vf2e-rtp-row:last-child { border-bottom: 0; }
.vf2e-rtp-bar { width: 40%; height: .6rem; background: #0e1620; border-radius: .4rem; overflow: hidden; }
.vf2e-rtp-fill { display: block; height: 100%; background: linear-gradient(90deg, #f5b301, #e74c3c); }

.vf2e-testimonial {
  background: var(--vf2e-bg-3); border-radius: var(--vf2e-radius); padding: 1rem;
  margin-bottom: .8rem; border-left: .3rem solid var(--vf2e-accent);
}
.vf2e-testimonial strong { color: var(--vf2e-accent); }
.vf2e-testimonial .vf2e-stars { color: #f5b301; }

.vf2e-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; text-align: center; }
.vf2e-pay-grid div { background: var(--vf2e-bg-3); border-radius: .6rem; padding: .8rem .2rem; font-size: 1.1rem; color: var(--vf2e-soft); }
.vf2e-pay-grid i { font-size: 2rem; color: var(--vf2e-accent); }

.vf2e-winner-list { list-style: none; padding: 0; margin: 0; }
.vf2e-winner-list li {
  display: flex; justify-content: space-between; padding: .6rem 0;
  border-bottom: .1rem solid var(--vf2e-line); font-size: 1.3rem;
}
.vf2e-winner-list li:last-child { border-bottom: 0; }
.vf2e-winner-list b { color: var(--vf2e-accent); }

/* ---------- Footer ---------- */
.vf2e-footer {
  margin-top: 2.5rem; padding: 2rem 1.2rem; background: #11181f;
  border-top: .1rem solid var(--vf2e-line);
}
.vf2e-footer p { color: var(--vf2e-soft); font-size: 1.3rem; }
.vf2e-footer-links {
  display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0;
}
.vf2e-footer-links a {
  background: var(--vf2e-bg-3); color: #fff; padding: .5rem 1rem;
  border-radius: 2rem; font-size: 1.2rem;
}
.vf2e-footer-seo { font-size: 1.2rem; color: var(--vf2e-muted); line-height: 1.7rem; }
.vf2e-footer-seo a { color: var(--vf2e-accent); }
.vf2e-copyright { margin-top: 1.2rem; font-size: 1.2rem; color: var(--vf2e-muted); text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.vf2e-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #232e3b, #1C2833);
  border-top: .1rem solid var(--vf2e-line);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 6rem;
  box-shadow: 0 -.3rem 1rem rgba(0,0,0,.35);
}
.vf2e-bottomnav-btn {
  flex: 1; min-width: 6rem; min-height: 6rem;
  background: transparent; border: 0; color: var(--vf2e-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; cursor: pointer; padding: .4rem; transition: color .15s ease, transform .12s ease;
}
.vf2e-bottomnav-btn:active { transform: scale(.9); }
.vf2e-bottomnav-btn i, .vf2e-bottomnav-btn .material-icons,
.vf2e-bottomnav-btn ion-icon { font-size: 2.4rem; line-height: 1; }
.vf2e-bottomnav-btn .vf2e-bn-icon { font-size: 2.4rem; }
.vf2e-bottomnav-btn span { font-size: 1.1rem; }
.vf2e-bottomnav-btn.vf2e-active { color: var(--vf2e-accent); }
.vf2e-bottomnav-btn.vf2e-promo { color: #fff; background: linear-gradient(180deg, rgba(245,179,1,.18), transparent); }
.vf2e-bottomnav-btn.vf2e-promo span { color: var(--vf2e-accent); font-weight: 700; }
.vf2e-bottomnav-badge {
  position: absolute; top: .4rem; right: 1.4rem; background: var(--vf2e-accent2);
  color: #fff; font-size: 1rem; min-width: 1.6rem; height: 1.6rem; border-radius: 1rem;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 .4rem;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: #0e1620; }
  .vf2e-container { max-width: 760px; }
  .vf2e-header-inner { max-width: 760px; }
  .vf2e-grid { grid-template-columns: repeat(5, 1fr); }
  .vf2e-bottomnav { display: none; }
  .vf2e-wrapper { padding-bottom: 2rem; }
}

/* ---------- Mobile bottom padding ---------- */
@media (max-width: 768px) {
  .vf2e-footer { padding-bottom: 8rem; }
  main { padding-bottom: 8rem; }
  body { padding-bottom: 6rem; }
}
