/**
 * mv88 apk - design-afe9.css
 * Mobile-first (max 430px) responsive styles for mv88apk.click
 * All classes use the v957- prefix. CSS variables use --v957- prefix.
 * Palette: #D8BFD8 | #2C3E50 | #CD853F | #212F3D | #BA55D3
 */

:root {
  --v957-primary: #BA55D3;
  --v957-primary-soft: #D8BFD8;
  --v957-accent: #CD853F;
  --v957-bg: #212F3D;
  --v957-bg-deep: #18222c;
  --v957-surface: #2C3E50;
  --v957-text: #f3e9f7;
  --v957-text-muted: #c6b8d6;
  --v957-border: rgba(216, 191, 216, 0.22);
  --v957-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  --v957-radius: 14px;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Be Vietnam Pro", Roboto, system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 0%, #2a1d36 0%, var(--v957-bg) 55%, var(--v957-bg-deep) 100%);
  color: var(--v957-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v957-primary-soft); text-decoration: none; }
h1, h2, h3, h4 { color: #fff; line-height: 1.6rem; margin: 0 0 1rem; }
p { margin: 0 0 1.2rem; color: var(--v957-text-muted); }

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

/* ============ Header ============ */
.v957-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, rgba(33,47,61,0.96), rgba(44,62,80,0.96));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v957-border);
}
.v957-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.v957-logo { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 700; font-size: 1.5rem; }
.v957-logo img { width: 28px; height: 28px; border-radius: 8px; }
.v957-logo span { background: linear-gradient(90deg, var(--v957-primary), var(--v957-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.v957-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v957-btn {
  border: none; cursor: pointer; font-weight: 600; font-size: 1.25rem;
  padding: 0.7rem 1.2rem; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease;
  min-height: 36px; display: inline-flex; align-items: center; gap: 0.4rem;
}
.v957-btn:active { transform: scale(0.95); }
.v957-btn-login { background: transparent; color: var(--v957-text); border: 1px solid var(--v957-border); }
.v957-btn-register { background: linear-gradient(90deg, var(--v957-primary), var(--v957-accent)); color: #fff; box-shadow: 0 4px 14px rgba(186,85,211,0.45); }
.v957-menu-btn {
  background: transparent; border: 1px solid var(--v957-border); color: var(--v957-text);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}

/* ============ Mobile menu drawer ============ */
.v957-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px;
  background: var(--v957-bg-deep); z-index: 9999;
  transform: translateX(100%); transition: transform .28s ease; padding: 6rem 1.6rem 2rem; overflow-y: auto;
  border-left: 1px solid var(--v957-border);
}
.v957-mobile-menu.v957-menu-open { transform: translateX(0); }
.v957-mobile-menu h3 { color: var(--v957-primary-soft); font-size: 1.3rem; margin: 1.4rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
.v957-mobile-menu a {
  display: block; padding: 0.85rem 0.6rem; border-bottom: 1px solid rgba(216,191,216,0.12); color: var(--v957-text); font-size: 1.35rem;
}
.v957-mobile-menu a:active { color: var(--v957-primary); }
.v957-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.v957-menu-overlay.v957-menu-open { opacity: 1; pointer-events: auto; }
.v957-menu-close { position: absolute; top: 1rem; right: 1rem; color: #fff; background: transparent; border: none; font-size: 2rem; cursor: pointer; }

/* ============ Main / hero ============ */
main { padding-top: 6rem; }
.v957-hero {
  position: relative; border-radius: 18px; overflow: hidden; margin: 1.2rem 0; box-shadow: var(--v957-shadow);
}
.v957-slide { position: relative; display: none; }
.v957-slide.v957-slide-active { display: block; }
.v957-slide img { width: 100%; height: 200px; object-fit: cover; }
.v957-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.v957-slide-cap h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.v957-slide-cap p { color: #eee; font-size: 1.2rem; margin: 0; }
.v957-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.6rem 0; }
.v957-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: background .2s; }
.v957-dot.v957-dot-active { background: var(--v957-primary); }

/* ============ Section titles ============ */
.v957-section { margin: 2rem 0; }
.v957-section-title {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
  font-size: 1.6rem; color: #fff;
}
.v957-section-title i { color: var(--v957-accent); font-size: 1.8rem; }
.v957-section-title .v957-link-more { margin-left: auto; font-size: 1.2rem; color: var(--v957-primary-soft); }

/* ============ Game blocks ============ */
.v957-game-block { margin-bottom: 1.6rem; }
.v957-game-block-head {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0;
  border-bottom: 2px solid var(--v957-primary); margin-bottom: 0.8rem;
}
.v957-game-block-head i { font-size: 1.7rem; color: var(--v957-accent); }
.v957-game-block-head h2 { font-size: 1.45rem; margin: 0; color: #fff; }
.v957-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.v957-game-card {
  background: var(--v957-surface); border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--v957-border); transition: transform .15s, box-shadow .15s;
}
.v957-game-card:active { transform: scale(0.96); box-shadow: 0 4px 14px rgba(186,85,211,0.35); }
.v957-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.v957-game-card-name {
  font-size: 1.1rem; color: var(--v957-text); padding: 0.4rem 0.5rem 0.55rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============ Filter pills ============ */
.v957-filters { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem; -webkit-overflow-scrolling: touch; }
.v957-filter-pill {
  flex: 0 0 auto; padding: 0.5rem 1rem; border-radius: 999px; background: var(--v957-surface);
  color: var(--v957-text-muted); font-size: 1.2rem; border: 1px solid var(--v957-border); cursor: pointer; white-space: nowrap;
}
.v957-filter-pill.v957-filter-active { background: var(--v957-primary); color: #fff; border-color: var(--v957-primary); }

/* ============ Feature / promo cards ============ */
.v957-card {
  background: linear-gradient(145deg, var(--v957-surface), #243343); border-radius: var(--v957-radius);
  padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--v957-border); box-shadow: var(--v957-shadow);
}
.v957-card h3 { color: var(--v957-primary-soft); font-size: 1.4rem; margin-bottom: 0.5rem; }
.v957-card .v957-card-icon { font-size: 2.2rem; color: var(--v957-accent); margin-bottom: 0.6rem; }

.v957-cta {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: center;
  padding: 1.4rem; border-radius: var(--v957-radius); text-align: center;
  background: linear-gradient(135deg, rgba(186,85,211,0.18), rgba(205,133,63,0.18));
  border: 1px solid var(--v957-border); margin: 1.4rem 0;
}
.v957-cta-text { color: var(--v957-text); font-weight: 600; font-size: 1.3rem; }
.v957-cta-btn {
  background: linear-gradient(90deg, var(--v957-primary), var(--v957-accent)); color: #fff;
  padding: 0.8rem 1.6rem; border-radius: 999px; font-weight: 700; border: none; cursor: pointer; font-size: 1.3rem;
}

/* Inline affiliate links inside text */
.v957-inline-link { color: var(--v957-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ============ FAQ ============ */
.v957-faq-item { border-bottom: 1px solid var(--v957-border); padding: 0.8rem 0; }
.v957-faq-q { display: flex; justify-content: space-between; gap: 0.6rem; cursor: pointer; color: #fff; font-weight: 600; font-size: 1.3rem; }
.v957-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--v957-text-muted); }
.v957-faq-item.v957-faq-open .v957-faq-a { max-height: 400px; padding-top: 0.6rem; }
.v957-faq-item.v957-faq-open .v957-faq-toggle { transform: rotate(45deg); }
.v957-faq-toggle { transition: transform .25s; color: var(--v957-primary); }

/* ============ Testimonials ============ */
.v957-testimonials { display: grid; gap: 0.8rem; }
.v957-testimonial { background: var(--v957-surface); border-left: 3px solid var(--v957-primary); padding: 0.9rem 1rem; border-radius: 8px; }
.v957-testimonial p { margin: 0 0 0.4rem; font-size: 1.2rem; }
.v957-testimonial .v957-stars { color: var(--v957-accent); font-size: 1.1rem; }
.v957-testimonial .v957-author { color: var(--v957-primary-soft); font-size: 1.1rem; font-weight: 600; }

/* ============ Footer ============ */
.v957-footer { background: var(--v957-bg-deep); border-top: 1px solid var(--v957-border); padding: 2rem 0 6rem; margin-top: 2rem; }
.v957-footer-brand { color: #fff; font-weight: 700; font-size: 1.5rem; margin-bottom: 0.6rem; }
.v957-footer p { font-size: 1.2rem; color: var(--v957-text-muted); }
.v957-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 1rem 0; }
.v957-footer-links a { color: var(--v957-text-muted); font-size: 1.2rem; text-decoration: underline; text-underline-offset: 2px; }
.v957-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.v957-footer-promos button {
  flex: 1 1 45%; background: linear-gradient(90deg, var(--v957-primary), var(--v957-accent));
  color: #fff; border: none; padding: 0.7rem 0.8rem; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 1.2rem;
}
.v957-footer-copy { font-size: 1.1rem; color: var(--v957-text-muted); margin-top: 1rem; }

/* ============ Bottom navigation (mobile) ============ */
.v957-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; height: 62px;
  display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, rgba(44,62,80,0.98), rgba(24,34,44,0.99));
  border-top: 1px solid var(--v957-border); box-shadow: 0 -4px 18px rgba(0,0,0,0.35);
}
.v957-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none; color: var(--v957-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; cursor: pointer;
  font-size: 1rem; padding: 0.4rem 0; transition: color .2s, transform .15s;
}
.v957-bottomnav-btn i, .v957-bottomnav-btn .material-icons-outlined { font-size: 22px; }
.v957-bottomnav-btn:active { transform: scale(0.92); }
.v957-bottomnav-btn.v957-bottomnav-current { color: var(--v957-primary); }
.v957-bottomnav-pulse i { animation: v957-pulse 1.6s ease-in-out infinite; }
@keyframes v957-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ============ Reveal animation ============ */
.v957-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.v957-reveal.v957-revealed { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (min-width: 769px) {
  .v957-bottomnav { display: none; }
  .v957-container { max-width: 960px; }
  .v957-game-grid { grid-template-columns: repeat(6, 1fr); }
  main { padding-bottom: 0; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .v957-game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  .v957-game-grid { grid-template-columns: repeat(2, 1fr); }
  .v957-slide img { height: 170px; }
}
