/* mv66 website core stylesheet - Vietnamese gaming portal */
/* Color palette: #141414 (dark background) | #00CED1 (cyan accent) */

:root {
  --s296-bg: #141414;
  --s296-bg-alt: #1f1f1f;
  --s296-bg-card: #222222;
  --s296-primary: #00CED1;
  --s296-primary-dark: #00a8aa;
  --s296-text: #f5f5f5;
  --s296-text-muted: #a0a0a0;
  --s296-border: #2e2e2e;
  --s296-accent-gold: #ffb400;
  --s296-accent-red: #ff4d4d;
  --s296-header-h: 56px;
  --s296-bottomnav-h: 60px;
  font-size: 62.5%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--s296-bg);
  color: var(--s296-text);
  font-size: 1.6rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--s296-primary); text-decoration: none; }

.s296-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s296-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* Header */
.s296-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--s296-header-h);
  background: rgba(20,20,20,0.96);
  border-bottom: 1px solid var(--s296-border);
  z-index: 1000; display: flex; align-items: center;
}
.s296-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.s296-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--s296-text); font-weight: 700; }
.s296-logo img { width: 30px; height: 30px; border-radius: 6px; }
.s296-logo-text { font-size: 1.8rem; color: var(--s296-primary); letter-spacing: 0.5px; }
.s296-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s296-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 1.2rem; border: none; border-radius: 20px;
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.s296-btn:active { transform: scale(0.95); }
.s296-btn-login { background: transparent; color: var(--s296-primary); border: 1px solid var(--s296-primary); }
.s296-btn-register { background: var(--s296-primary); color: #0a0a0a; }
.s296-menu-btn { background: transparent; border: none; color: var(--s296-text); font-size: 2rem; cursor: pointer; padding: 0 0.4rem; }

/* Mobile menu */
.s296-mobile-menu {
  position: fixed; top: var(--s296-header-h); left: 0; right: 0;
  background: var(--s296-bg-alt); border-bottom: 1px solid var(--s296-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease; z-index: 9999;
}
.s296-mobile-menu.s296-menu-open { max-height: 480px; }
.s296-mobile-menu ul { list-style: none; padding: 0.6rem 1.2rem; }
.s296-mobile-menu li { border-bottom: 1px solid var(--s296-border); }
.s296-mobile-menu li:last-child { border-bottom: none; }
.s296-mobile-menu a { display: block; padding: 1.1rem 0.4rem; color: var(--s296-text); font-size: 1.5rem; }
.s296-mobile-menu a:active { color: var(--s296-primary); }

/* Main content */
.s296-main { padding-top: var(--s296-header-h); }
@media (max-width: 768px) { .s296-main { padding-bottom: 80px; } }

/* Carousel */
.s296-carousel {
  position: relative; width: 100%; max-width: 430px; margin: 1rem auto 0;
  overflow: hidden; border-radius: 12px;
}
.s296-slides { position: relative; width: 100%; height: 180px; }
.s296-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; cursor: pointer; }
.s296-slide img { width: 100%; height: 100%; object-fit: cover; }
.s296-slide-active { opacity: 1; }
.s296-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.s296-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; border: none; }
.s296-dot-active { background: var(--s296-primary); }

/* Sections */
.s296-section { padding: 1.6rem 0; }
.s296-section-title {
  font-size: 2rem; font-weight: 700; color: var(--s296-text);
  margin-bottom: 1rem; padding-left: 0.8rem; border-left: 4px solid var(--s296-primary);
}
.s296-h1 { font-size: 2.2rem; font-weight: 800; color: var(--s296-primary); text-align: center; margin: 1.4rem 0; line-height: 1.3; }

/* Game grid */
.s296-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.s296-game-card {
  background: var(--s296-bg-card); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--s296-border); cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.s296-game-card:active { transform: scale(0.96); border-color: var(--s296-primary); }
.s296-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.s296-game-name {
  padding: 0.5rem; font-size: 1.1rem; text-align: center; color: var(--s296-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s296-game-tag {
  display: inline-block; padding: 0.2rem 0.8rem; font-size: 1.1rem;
  background: var(--s296-primary); color: #0a0a0a; border-radius: 12px;
  margin-bottom: 0.6rem; font-weight: 600;
}

/* Content cards */
.s296-card {
  background: var(--s296-bg-card); border-radius: 12px; padding: 1.4rem;
  margin-bottom: 1.2rem; border: 1px solid var(--s296-border);
}
.s296-card h2 { font-size: 1.9rem; color: var(--s296-primary); margin-bottom: 0.8rem; }
.s296-card h3 { font-size: 1.6rem; color: var(--s296-text); margin: 0.8rem 0 0.4rem; }
.s296-card p { font-size: 1.4rem; color: var(--s296-text-muted); margin-bottom: 0.8rem; line-height: 1.6; }
.s296-card ul { padding-left: 1.6rem; color: var(--s296-text-muted); }
.s296-card li { font-size: 1.4rem; margin-bottom: 0.5rem; line-height: 1.5; }

/* Promo link styling */
.s296-promo-link { color: var(--s296-primary); font-weight: 700; cursor: pointer; text-decoration: underline; }
.s296-promo-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--s296-primary); color: #0a0a0a;
  padding: 1rem 2rem; border-radius: 24px; font-weight: 700;
  font-size: 1.5rem; border: none; cursor: pointer; margin: 0.6rem 0;
}
.s296-promo-btn:active { transform: scale(0.96); }

/* Features grid */
.s296-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.s296-feature {
  background: var(--s296-bg-card); border-radius: 10px; padding: 1.2rem;
  text-align: center; border: 1px solid var(--s296-border);
}
.s296-feature i, .s296-feature .material-icons-outlined { font-size: 2.6rem; color: var(--s296-primary); }
.s296-feature h3 { font-size: 1.5rem; margin: 0.5rem 0; color: var(--s296-text); }
.s296-feature p { font-size: 1.2rem; color: var(--s296-text-muted); }

/* Testimonials */
.s296-testimonial { background: var(--s296-bg-card); border-radius: 10px; padding: 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--s296-primary); }
.s296-testimonial p { font-size: 1.35rem; color: var(--s296-text); font-style: italic; }
.s296-testimonial .s296-author { font-size: 1.2rem; color: var(--s296-primary); margin-top: 0.4rem; }

/* Winners */
.s296-winner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; background: var(--s296-bg-card); border-radius: 8px; margin-bottom: 0.5rem; border: 1px solid var(--s296-border); }
.s296-winner span { font-size: 1.3rem; }
.s296-winner .s296-amount { color: var(--s296-accent-gold); font-weight: 700; }

/* Payment */
.s296-payments { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s296-payment { background: var(--s296-bg-card); border: 1px solid var(--s296-border); border-radius: 8px; padding: 0.6rem 1rem; font-size: 1.3rem; color: var(--s296-text); }

/* Footer */
.s296-footer { background: var(--s296-bg-alt); border-top: 1px solid var(--s296-border); padding: 2rem 1.2rem; margin-top: 2rem; }
.s296-footer-inner { width: 100%; max-width: 430px; margin: 0 auto; }
.s296-footer-brand { font-size: 1.35rem; color: var(--s296-text-muted); margin-bottom: 1.2rem; line-height: 1.6; }
.s296-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.s296-footer-links a, .s296-footer-links button { background: var(--s296-bg-card); color: var(--s296-primary); padding: 0.5rem 1rem; border-radius: 16px; font-size: 1.2rem; border: 1px solid var(--s296-border); cursor: pointer; }
.s296-copyright { font-size: 1.2rem; color: var(--s296-text-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--s296-border); }

/* Mobile bottom nav */
.s296-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--s296-bottomnav-h);
  background: rgba(20,20,20,0.98); border-top: 1px solid var(--s296-border);
  display: flex; justify-content: space-around; align-items: center; z-index: 1000;
}
.s296-bottomnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: none; border: none;
  color: var(--s296-text-muted); cursor: pointer; gap: 2px;
  transition: color 0.15s, transform 0.15s;
}
.s296-bottomnav-btn:active { transform: scale(0.92); }
.s296-bottomnav-btn i, .s296-bottomnav-btn .material-icons-outlined, .s296-bottomnav-btn ion-icon { font-size: 24px; }
.s296-bottomnav-btn span { font-size: 1.1rem; }
.s296-bottomnav-active { color: var(--s296-primary); }

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  .s296-bottomnav { display: none; }
  .s296-container, .s296-header-inner, .s296-carousel, .s296-footer-inner { max-width: 768px; }
  .s296-grid { grid-template-columns: repeat(6, 1fr); }
  .s296-features { grid-template-columns: repeat(4, 1fr); }
  .s296-main { padding-bottom: 0; }
}
