/*!
 * af88 com game - layout stylesheet (prefix: va88-)
 * Palette: #0F0F23 (deep background) | #2E8B57 (brand green) | #3CB371 (mint)
 *          #FF4500 (accent orange) | #20B2AA (teal)
 * Mobile-first, max-width 430px content column, root font 62.5%.
 */
:root {
  --va88-bg: #0F0F23;
  --va88-bg-soft: #161635;
  --va88-surface: #1d1d44;
  --va88-primary: #2E8B57;
  --va88-mint: #3CB371;
  --va88-teal: #20B2AA;
  --va88-accent: #FF4500;
  --va88-gold: #FFD24A;
  --va88-text: #f3f6ff;
  --va88-text-soft: #b8c1e0;
  --va88-line: rgba(255,255,255,0.08);
  --va88-radius: 14px;
  --va88-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #1b1b40 0%, var(--va88-bg) 60%);
  color: var(--va88-text);
  line-height: 1.55;
  font-size: 1.6rem;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--va88-teal); text-decoration: none; }
a:hover { color: var(--va88-mint); }

.va88-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.4rem; }
.va88-wrapper { padding-bottom: 1rem; }

/* ===== Header ===== */
.va88-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(15,15,35,0.96), rgba(15,15,35,0.82));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--va88-line);
}
.va88-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.4rem; min-height: 58px;
}
.va88-brand { display: flex; align-items: center; gap: 0.7rem; }
.va88-brand img { width: 30px; height: 30px; border-radius: 8px; }
.va88-brand-text { font-weight: 700; font-size: 1.55rem; letter-spacing: 0.3px; color: var(--va88-text); }
.va88-brand-text span { color: var(--va88-accent); }
.va88-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.va88-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 0; border-radius: 10px; cursor: pointer;
  font-size: 1.3rem; font-weight: 700; padding: 0.7rem 1.2rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 38px;
}
.va88-btn:active { transform: scale(0.96); }
.va88-btn-primary { background: linear-gradient(135deg, var(--va88-accent), #ff7a3d); color: #fff; box-shadow: 0 6px 18px rgba(255,69,0,0.35); }
.va88-btn-secondary { background: linear-gradient(135deg, var(--va88-primary), var(--va88-mint)); color: #fff; box-shadow: 0 6px 18px rgba(46,139,87,0.32); }
.va88-btn-ghost { background: transparent; color: var(--va88-text); border: 1px solid var(--va88-line); }
.va88-menu-btn {
  background: transparent; border: 1px solid var(--va88-line); color: var(--va88-text);
  width: 38px; height: 38px; border-radius: 10px; font-size: 1.6rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Mobile drawer menu ===== */
.va88-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.va88-overlay.va88-is-visible { opacity: 1; visibility: visible; }
.va88-drawer {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px;
  height: 100%; z-index: 9999; background: var(--va88-bg-soft);
  padding: 2rem 1.6rem; overflow-y: auto;
  transition: right .28s ease; border-left: 1px solid var(--va88-line);
}
.va88-drawer.va88-is-open { right: 0; }
.va88-drawer h3 { color: var(--va88-mint); font-size: 1.5rem; margin-bottom: 1rem; }
.va88-drawer ul { list-style: none; }
.va88-drawer li { border-bottom: 1px solid var(--va88-line); }
.va88-drawer li a {
  display: block; padding: 1rem 0.4rem; color: var(--va88-text);
  font-size: 1.4rem; font-weight: 500;
}
.va88-drawer li a:hover { color: var(--va88-accent); padding-left: 0.9rem; }
.va88-drawer-close { float: right; font-size: 2rem; color: var(--va88-text-soft); cursor: pointer; }

/* ===== Hero carousel ===== */
.va88-hero {
  margin-top: 72px; border-radius: var(--va88-radius); overflow: hidden;
  position: relative; box-shadow: var(--va88-shadow);
}
.va88-hero-track { position: relative; width: 100%; aspect-ratio: 16/9; }
.va88-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
}
.va88-hero-slide.va88-is-active { opacity: 1; }
.va88-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.va88-hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.4rem 1.2rem;
  background: linear-gradient(0deg, rgba(15,15,35,0.9), transparent);
}
.va88-hero-caption h2 { font-size: 1.9rem; color: #fff; margin-bottom: 0.4rem; }
.va88-hero-caption p { color: var(--va88-text-soft); font-size: 1.25rem; margin-bottom: 0.8rem; }
.va88-hero-dots { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.va88-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; }
.va88-hero-dot.va88-is-active { background: var(--va88-accent); width: 18px; border-radius: 4px; }

/* ===== Sections ===== */
.va88-section { padding: 2.4rem 0 0.6rem; }
.va88-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.va88-section-title {
  font-size: 1.9rem; font-weight: 700; color: #fff;
  position: relative; padding-left: 1rem;
}
.va88-section-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  background: linear-gradient(var(--va88-accent), var(--va88-gold)); border-radius: 4px;
}
.va88-section-link { color: var(--va88-teal); font-size: 1.25rem; font-weight: 600; }

/* ===== Filter tabs ===== */
.va88-filter-row { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.6rem; margin-bottom: 1rem; }
.va88-filter-row::-webkit-scrollbar { height: 4px; }
.va88-filter-row::-webkit-scrollbar-thumb { background: var(--va88-primary); border-radius: 4px; }
.va88-filter-tab {
  flex: 0 0 auto; padding: 0.6rem 1.1rem; border-radius: 999px;
  background: var(--va88-surface); color: var(--va88-text-soft);
  font-size: 1.25rem; font-weight: 600; border: 1px solid var(--va88-line); cursor: pointer;
}
.va88-filter-tab.va88-is-active { background: linear-gradient(135deg, var(--va88-accent), #ff7a3d); color: #fff; border-color: transparent; }

/* ===== Game grid ===== */
.va88-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.va88-card {
  background: var(--va88-surface); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--va88-line); cursor: pointer; position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.va88-card:hover, .va88-card:active { transform: translateY(-3px); box-shadow: var(--va88-shadow); }
.va88-card-img { position: relative; aspect-ratio: 1/1; background: #0b0b1e; }
.va88-card-img img { width: 100%; height: 100%; object-fit: cover; }
.va88-card-badge {
  position: absolute; top: 6px; left: 6px; background: var(--va88-accent);
  color: #fff; font-size: 0.95rem; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}
.va88-card-name { padding: 0.6rem 0.6rem 0.8rem; font-size: 1.15rem; font-weight: 600; color: var(--va88-text); text-align: center; }
.va88-card-hot .va88-card-badge { background: linear-gradient(135deg, #ff4500, #ffb347); }

/* ===== Featured blocks ===== */
.va88-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.va88-feature {
  background: linear-gradient(135deg, var(--va88-bg-soft), var(--va88-surface));
  border-radius: 14px; padding: 1.3rem; border: 1px solid var(--va88-line);
}
.va88-feature .ico { font-size: 2.2rem; color: var(--va88-gold); margin-bottom: 0.5rem; }
.va88-feature h3 { font-size: 1.4rem; margin-bottom: 0.3rem; color: #fff; }
.va88-feature p { color: var(--va88-text-soft); font-size: 1.2rem; }

/* ===== Promo banner CTA ===== */
.va88-cta {
  background: linear-gradient(135deg, var(--va88-primary), var(--va88-teal));
  border-radius: 16px; padding: 1.8rem 1.4rem; text-align: center; color: #fff;
  box-shadow: 0 12px 28px rgba(32,178,170,0.3); margin-top: 1.4rem;
}
.va88-cta h2 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.va88-cta p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 1rem; }
.va88-cta .va88-btn { font-size: 1.4rem; padding: 0.9rem 2rem; }

/* ===== SEO article ===== */
.va88-article {
  background: var(--va88-bg-soft); border-radius: 14px; padding: 1.8rem 1.5rem;
  border: 1px solid var(--va88-line); color: var(--va88-text-soft);
}
.va88-article h2 { color: #fff; font-size: 1.8rem; margin: 1.2rem 0 0.6rem; }
.va88-article h2:first-child { margin-top: 0; }
.va88-article h3 { color: var(--va88-mint); font-size: 1.45rem; margin: 1rem 0 0.4rem; }
.va88-article p { margin-bottom: 0.9rem; font-size: 1.35rem; }
.va88-article a { color: var(--va88-teal); font-weight: 600; text-decoration: underline; }
.va88-article ul { margin: 0.4rem 0 1rem 1.4rem; }
.va88-article li { margin-bottom: 0.4rem; }

/* ===== FAQ ===== */
.va88-faq-item { border-bottom: 1px solid var(--va88-line); }
.va88-faq-q {
  width: 100%; text-align: left; background: transparent; border: 0;
  color: var(--va88-text); font-size: 1.35rem; font-weight: 600;
  padding: 1.1rem 0; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
}
.va88-faq-q .ico { color: var(--va88-accent); transition: transform .2s ease; }
.va88-faq-item.va88-is-open .va88-faq-q .ico { transform: rotate(45deg); }
.va88-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--va88-text-soft); font-size: 1.25rem; }
.va88-faq-item.va88-is-open .va88-faq-a { max-height: 600px; padding-bottom: 1rem; }

/* ===== Partners strip ===== */
.va88-partners { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.va88-partners img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid var(--va88-line); background: #fff; padding: 2px; }

/* ===== Footer ===== */
.va88-footer { background: #0a0a1c; border-top: 1px solid var(--va88-line); padding: 2.4rem 0 6rem; margin-top: 2.4rem; }
.va88-footer p.brand { color: var(--va88-text-soft); font-size: 1.25rem; margin-bottom: 1.2rem; }
.va88-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1.2rem; }
.va88-footer-links a { color: var(--va88-text-soft); font-size: 1.2rem; }
.va88-footer-links a:hover { color: var(--va88-accent); }
.va88-footer-copy { color: #6c6f95; font-size: 1.1rem; border-top: 1px solid var(--va88-line); padding-top: 1rem; }

/* ===== Mobile bottom nav ===== */
.va88-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 62px; background: rgba(10,10,28,0.97);
  border-top: 1px solid var(--va88-line);
  display: flex; justify-content: space-around; align-items: stretch;
  backdrop-filter: blur(8px);
}
.va88-bottomnav a, .va88-bottomnav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--va88-text-soft);
  font-size: 1.05rem; font-weight: 600; gap: 2px; min-width: 60px; padding: 4px;
  text-decoration: none;
}
.va88-bottomnav .ico { font-size: 2.2rem; line-height: 1; }
.va88-bottomnav a.va88-active { color: var(--va88-accent); }
.va88-bottomnav a.promo .ico, .va88-bottomnav button.promo .ico { color: var(--va88-gold); }
.va88-bottomnav a:active { transform: scale(0.92); }

/* ===== Reveal animation ===== */
.va88-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.va88-reveal.va88-is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .va88-bottomnav { display: none; }
  .va88-container { max-width: 960px; }
  .va88-grid { grid-template-columns: repeat(6, 1fr); }
  .va88-features { grid-template-columns: repeat(4, 1fr); }
  .va88-footer { padding-bottom: 2.4rem; }
}
@media (min-width: 431px) and (max-width: 768px) {
  .va88-grid { grid-template-columns: repeat(4, 1fr); }
  .va88-features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
