/* =========================================================
   e1one 789 net - Core Base Stylesheet
   Mobile-first gaming portal for Vietnam market
   All custom classes use the w37da- prefix
   ========================================================= */

/* ---------- Base reset & typography ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --w37da-bg-0: #0a0e1f;
  --w37da-bg-1: #111834;
  --w37da-bg-2: #182144;
  --w37da-card: #1b2450;
  --w37da-card-2: #232d63;
  --w37da-border: #2e3a78;
  --w37da-gold: #f5c542;
  --w37da-gold-2: #ff8a1e;
  --w37da-red: #ff4d6d;
  --w37da-green: #25e0a4;
  --w37da-blue: #2f7bff;
  --w37da-text: #f3f5ff;
  --w37da-muted: #aab3d6;
  --w37da-radius: 14px;
  --w37da-shadow: 0 8px 24px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, Arial, sans-serif;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(245,197,66,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(47,123,255,.12), transparent 60%),
    var(--w37da-bg-0);
  color: var(--w37da-text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a { color: var(--w37da-gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--w37da-gold-2); }

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

h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; letter-spacing: .2px; }
h2 { font-size: 22px; margin: 4px 0 14px; }
h3 { font-size: 17px; }

/* ---------- Layout containers ---------- */
.w37da-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 14px; }
.w37da-section { padding: 26px 0; }
.w37da-eyebrow {
  display:inline-block; font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color: var(--w37da-bg-0); background: linear-gradient(90deg, var(--w37da-gold), var(--w37da-gold-2));
  padding: 4px 12px; border-radius: 999px; font-weight: 800; margin-bottom: 10px;
}

/* ---------- Top header ---------- */
.w37da-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(10,14,31,.96), rgba(17,24,52,.92));
  border-bottom: 1px solid var(--w37da-border);
  backdrop-filter: blur(8px);
}
.w37da-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 14px; max-width: 1200px; margin: 0 auto;
}
.w37da-logo { display:flex; align-items:center; gap:10px; font-weight: 900; font-size: 18px; color:#fff; }
.w37da-logo .w37da-badge {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--w37da-gold), var(--w37da-gold-2));
  color: var(--w37da-bg-0); display:flex; align-items:center; justify-content:center;
  font-weight: 900; box-shadow: 0 4px 12px rgba(245,197,66,.4);
}
.w37da-logo small { display:block; font-size: 11px; color: var(--w37da-muted); font-weight:500; }

.w37da-header-actions { display:flex; align-items:center; gap: 8px; }
.w37da-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding: 9px 16px; border-radius: 10px; border: 0; cursor: pointer;
  font-weight: 800; font-size: 14px; font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.w37da-btn:active { transform: translateY(1px) scale(.98); }
.w37da-btn-login {
  background: transparent; color: var(--w37da-text);
  border: 1px solid var(--w37da-border);
}
.w37da-btn-login:hover { border-color: var(--w37da-gold); color: var(--w37da-gold); }
.w37da-btn-register {
  background: linear-gradient(135deg, var(--w37da-gold), var(--w37da-gold-2));
  color: var(--w37da-bg-0);
  box-shadow: 0 6px 16px rgba(245,197,66,.35);
}
.w37da-btn-register:hover { filter: brightness(1.08); }

.w37da-menu-toggle {
  display:none; width: 42px; height: 42px; border:1px solid var(--w37da-border);
  background: var(--w37da-card); color:#fff; border-radius: 10px; cursor:pointer;
  align-items:center; justify-content:center; font-size: 20px;
}

/* ---------- Desktop nav ---------- */
.w37da-topnav { display:none; border-top:1px solid var(--w37da-border); background: rgba(10,14,31,.6); }
.w37da-topnav ul {
  display:flex; gap: 6px; list-style:none; max-width:1200px; margin:0 auto;
  padding: 8px 14px; flex-wrap: wrap;
}
.w37da-topnav a {
  color: var(--w37da-muted); padding: 8px 12px; border-radius: 8px; font-size: 14px;
  font-weight: 600;
}
.w37da-topnav a:hover { background: var(--w37da-card); color: #fff; }

/* ---------- Mobile slide menu ---------- */
.w37da-mobile-menu {
  position: fixed; top:0; right:-100%; width: 86%; max-width: 340px; height: 100vh;
  background: var(--w37da-bg-1); z-index: 9999; transition: right .28s ease;
  padding: 18px 16px; overflow-y:auto; border-left:1px solid var(--w37da-border);
  box-shadow: -10px 0 30px rgba(0,0,0,.5);
}
.w37da-mobile-menu.w37da-open { right: 0; }
.w37da-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9998;
  opacity: 0; pointer-events:none; transition: opacity .25s ease;
}
.w37da-overlay.w37da-open { opacity: 1; pointer-events:auto; }
.w37da-close {
  width:38px; height:38px; border-radius:10px; background: var(--w37da-card);
  color:#fff; border:1px solid var(--w37da-border); cursor:pointer; font-size:18px;
}
.w37da-mm-header { display:flex; justify-content:space-between; align-items:center; margin-bottom: 14px; }
.w37da-mm-cta { display:flex; flex-direction:column; gap: 10px; margin-bottom: 18px; }
.w37da-mm-cta .w37da-btn { justify-content:center; padding: 13px; }
.w37da-mm-list { list-style:none; display:flex; flex-direction:column; gap: 2px; }
.w37da-mm-list a {
  display:flex; align-items:center; gap:10px; padding: 12px 12px; border-radius:10px;
  color: var(--w37da-text); font-weight:600;
}
.w37da-mm-list a:hover { background: var(--w37da-card); }
.w37da-mm-list i { color: var(--w37da-gold); width: 22px; text-align:center; }

/* ---------- Hero ---------- */
.w37da-hero {
  position:relative; overflow:hidden;
  background:
    linear-gradient(180deg, rgba(10,14,31,.2), rgba(10,14,31,.85)),
    radial-gradient(800px 400px at 80% 10%, rgba(245,197,66,.18), transparent 60%),
    var(--w37da-bg-1);
  padding: 30px 14px 36px;
  border-bottom:1px solid var(--w37da-border);
}
.w37da-hero-grid { max-width:1200px; margin:0 auto; display:grid; gap:20px; }
.w37da-hero-title { font-size: 30px; line-height:1.18; color:#fff; }
.w37da-hero-title span {
  background: linear-gradient(90deg, var(--w37da-gold), var(--w37da-gold-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w37da-hero-desc { color: var(--w37da-muted); font-size: 15px; max-width: 620px; }
.w37da-hero-cta { display:flex; flex-wrap:wrap; gap:10px; margin-top: 8px; }
.w37da-hero-cta .w37da-btn { padding: 13px 22px; font-size: 15px; }
.w37da-btn-ghost {
  background: rgba(255,255,255,.06); color:#fff; border:1px solid var(--w37da-border);
}
.w37da-hero-stats {
  display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-top: 20px;
}
.w37da-stat {
  background: var(--w37da-card); border:1px solid var(--w37da-border);
  border-radius: var(--w37da-radius); padding: 12px; text-align:center;
}
.w37da-stat b { display:block; font-size: 20px; color: var(--w37da-gold); }
.w37da-stat span { font-size: 12px; color: var(--w37da-muted); }

/* ---------- Carousel ---------- */
.w37da-carousel { position:relative; border-radius: 18px; overflow:hidden; box-shadow: var(--w37da-shadow); }
.w37da-slides { display:flex; overflow:hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.w37da-slide {
  flex: 0 0 100%; scroll-snap-align: start; position:relative; min-height: 200px;
  display:flex; align-items:flex-end; padding: 18px;
}
.w37da-slide::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,14,31,.92));
}
.w37da-slide-content { position:relative; z-index:2; }
.w37da-slide-content h3 { color:#fff; font-size: 20px; margin-bottom: 4px; }
.w37da-slide-content p { color: var(--w37da-muted); font-size: 13px; }
.w37da-slide-content .w37da-btn { margin-top: 10px; }
.w37da-carousel-dots {
  display:flex; gap:6px; justify-content:center; margin-top: 10px;
}
.w37da-carousel-dots button {
  width: 8px; height: 8px; border-radius:50%; border:0; cursor:pointer;
  background: var(--w37da-border); transition: all .2s;
}
.w37da-carousel-dots button.w37da-active { background: var(--w37da-gold); width: 22px; border-radius:5px; }

/* ---------- Section heading ---------- */
.w37da-sec-head {
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px;
}
.w37da-sec-head h2 { margin:0; display:flex; align-items:center; gap:8px; }
.w37da-sec-head h2 i { color: var(--w37da-gold); }
.w37da-sec-head a { font-size:13px; font-weight:600; }

/* ---------- Category pills ---------- */
.w37da-pills { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 16px; }
.w37da-pill {
  padding: 8px 14px; border-radius: 999px; cursor:pointer; font-size: 13px; font-weight:700;
  background: var(--w37da-card); border:1px solid var(--w37da-border); color: var(--w37da-muted);
  transition: all .2s;
}
.w37da-pill:hover { color:#fff; border-color: var(--w37da-gold); }
.w37da-pill.w37da-active {
  background: linear-gradient(135deg, var(--w37da-gold), var(--w37da-gold-2));
  color: var(--w37da-bg-0); border-color: transparent;
}

/* ---------- Game grid ---------- */
.w37da-grid {
  display:grid; gap:12px;
  grid-template-columns: repeat(2, 1fr);
}
.w37da-card {
  background: var(--w37da-card); border:1px solid var(--w37da-border);
  border-radius: var(--w37da-radius); overflow:hidden; position:relative;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.w37da-card:hover { transform: translateY(-3px); border-color: var(--w37da-gold); box-shadow: var(--w37da-shadow); }
.w37da-card-media { position:relative; aspect-ratio: 1/1; overflow:hidden; background:#000; }
.w37da-card-media img { width:100%; height:100%; object-fit:cover; }
.w37da-card-tag {
  position:absolute; top:8px; left:8px; font-size:10px; font-weight:800;
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing:.05em;
  background: linear-gradient(135deg, var(--w37da-red), var(--w37da-gold-2)); color:#fff;
}
.w37da-card-tag.w37da-tag-hot { background: linear-gradient(135deg,#ff4d6d,#ff8a1e); }
.w37da-card-tag.w37da-tag-live { background: linear-gradient(135deg,#25e0a4,#2f7bff); color:#04121a; }
.w37da-card-tag.w37da-tag-slot { background: linear-gradient(135deg,#a06bff,#f5c542); }
.w37da-card-tag.w37da-tag-card { background: linear-gradient(135deg,#2f7bff,#25e0a4); }
.w37da-card-tag.w37da-tag-fish { background: linear-gradient(135deg,#19c6ff,#2f7bff); }
.w37da-card-body { padding: 10px 12px 14px; }
.w37da-card-body h3 { font-size: 14px; color:#fff; margin-bottom: 6px; line-height:1.3; }
.w37da-card-play {
  display:flex; align-items:center; justify-content:center; gap:6px;
  width:100%; padding:9px; border-radius:9px; border:0; cursor:pointer; font-weight:800;
  font-family: inherit; font-size: 13px;
  background: linear-gradient(135deg, var(--w37da-gold), var(--w37da-gold-2));
  color: var(--w37da-bg-0);
}
.w37da-card-play:hover { filter: brightness(1.08); }

/* ---------- Featured ---------- */
.w37da-feature {
  background: linear-gradient(135deg, var(--w37da-bg-2), var(--w37da-card));
  border:1px solid var(--w37da-border); border-radius: 18px; padding: 20px;
  display:grid; gap:14px;
}
.w37da-feature h3 { color: var(--w37da-gold); }
.w37da-feature p { color: var(--w37da-muted); font-size: 14px; }
.w37da-feature-list { list-style:none; display:grid; gap:8px; }
.w37da-feature-list li { display:flex; gap:10px; align-items:flex-start; color: var(--w37da-text); font-size: 14px; }
.w37da-feature-list i { color: var(--w37da-green); margin-top: 3px; }

/* ---------- Promo banner ---------- */
.w37da-promo {
  background:
    linear-gradient(135deg, rgba(245,197,66,.15), rgba(255,138,30,.10)),
    var(--w37da-card);
  border:1px solid var(--w37da-gold); border-radius: 18px; padding: 22px;
  text-align:center; box-shadow: var(--w37da-shadow);
}
.w37da-promo h2 { color: var(--w37da-gold); }
.w37da-promo p { color: var(--w37da-muted); margin-bottom: 14px; }

/* ---------- SEO content ---------- */
.w37da-seo { background: var(--w37da-bg-1); border-radius: 18px; border:1px solid var(--w37da-border); padding: 22px; }
.w37da-seo h2 { color:#fff; margin-top: 18px; }
.w37da-seo h2:first-child { margin-top:0; }
.w37da-seo h3 { color: var(--w37da-gold); margin: 16px 0 8px; }
.w37da-seo p { color: var(--w37da-muted); margin-bottom: 12px; }
.w37da-seo ul, .w37da-seo ol { padding-left: 22px; margin-bottom: 14px; color: var(--w37da-muted); }
.w37da-seo li { margin-bottom: 6px; }
.w37da-seo a { font-weight: 600; }

/* ---------- FAQ ---------- */
.w37da-faq-item {
  border:1px solid var(--w37da-border); border-radius: 12px; margin-bottom:10px;
  background: var(--w37da-card); overflow:hidden;
}
.w37da-faq-q {
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding: 14px 16px; cursor:pointer; font-weight:700; color:#fff;
  background: transparent; border:0; width:100%; text-align:left; font-family: inherit; font-size: 14px;
}
.w37da-faq-q i { color: var(--w37da-gold); transition: transform .2s; }
.w37da-faq-item.w37da-open .w37da-faq-q i { transform: rotate(180deg); }
.w37da-faq-a { max-height:0; overflow:hidden; transition: max-height .3s ease; padding: 0 16px; color: var(--w37da-muted); }
.w37da-faq-item.w37da-open .w37da-faq-a { max-height: 400px; padding: 0 16px 14px; }

/* ---------- Footer ---------- */
.w37da-footer {
  background: var(--w37da-bg-1); border-top:1px solid var(--w37da-border);
  padding: 26px 14px 30px; margin-top: 20px;
}
.w37da-footer-grid {
  max-width:1200px; margin:0 auto; display:grid; gap:20px;
  grid-template-columns: repeat(2, 1fr);
}
.w37da-footer h4 { color: var(--w37da-gold); margin-bottom: 10px; font-size: 15px; }
.w37da-footer ul { list-style:none; display:flex; flex-direction:column; gap:6px; }
.w37da-footer a { color: var(--w37da-muted); font-size: 13px; }
.w37da-footer a:hover { color:#fff; }
.w37da-footer-bottom {
  max-width:1200px; margin: 18px auto 0; padding-top: 14px;
  border-top:1px solid var(--w37da-border); text-align:center;
  color: var(--w37da-muted); font-size: 12px;
}
.w37da-footer-brand p { color: var(--w37da-muted); font-size: 13px; margin-top: 8px; }
.w37da-responsible {
  display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; justify-content:center;
}
.w37da-responsible span {
  font-size:11px; padding:4px 10px; border:1px solid var(--w37da-border);
  border-radius: 6px; color: var(--w37da-muted);
}

/* ---------- Mobile bottom nav ---------- */
.w37da-bottomnav {
  position: fixed; bottom: 0; left:0; right:0; z-index: 1000;
  background: linear-gradient(180deg, rgba(24,33,68,.98), rgba(10,14,31,.99));
  border-top:1px solid var(--w37da-border);
  display:flex; justify-content:space-around; align-items:stretch;
  padding: 4px 2px; height: 62px;
  backdrop-filter: blur(10px);
}
.w37da-bottomnav button, .w37da-bottomnav a {
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; color: var(--w37da-muted); font-size: 11px; font-weight:600;
  background: transparent; border:0; cursor:pointer; font-family: inherit;
  text-decoration:none; min-width: 60px; min-height: 54px; position:relative;
  transition: color .2s;
}
.w37da-bottomnav .w37da-bn-icon { font-size: 22px; line-height:1; }
.w37da-bottomnav .w37da-bn-center .w37da-bn-icon {
  background: linear-gradient(135deg, var(--w37da-gold), var(--w37da-gold-2));
  color: var(--w37da-bg-0); width: 46px; height: 46px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  margin-top: -22px; box-shadow: 0 6px 14px rgba(245,197,66,.45);
  border: 3px solid var(--w37da-bg-0);
  font-size: 24px;
}
.w37da-bottomnav .w37da-bn-center { font-size: 10px; }
.w37da-bottomnav button:hover, .w37da-bottomnav a:hover { color:#fff; }
.w37da-bottomnav .w37da-active { color: var(--w37da-gold); }
.w37da-bottomnav .w37da-active::before {
  content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width: 26px; height: 3px; border-radius:0 0 4px 4px; background: var(--w37da-gold);
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .w37da-grid { grid-template-columns: repeat(3, 1fr); }
  .w37da-hero-title { font-size: 36px; }
}
@media (min-width: 769px) {
  .w37da-topnav { display:block; }
  .w37da-menu-toggle { display:none; }
  .w37da-bottomnav { display:none; }
  .w37da-grid { grid-template-columns: repeat(4, 1fr); }
  .w37da-hero-grid { grid-template-columns: 1.4fr 1fr; align-items:center; }
  .w37da-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .w37da-feature { grid-template-columns: 1.2fr 1fr; align-items:center; }
}
@media (max-width: 768px) {
  body { padding-bottom: 80px; }
  main { padding-bottom: 80px; }
  .w37da-hero-title { font-size: 26px; }
  .w37da-btn-login span, .w37da-btn-register span { display:inline; }
  .w37da-header-actions .w37da-btn { padding: 8px 12px; font-size: 13px; }
  .w37da-logo small { display:none; }
  .w37da-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .w37da-grid { grid-template-columns: 1fr; }
  .w37da-hero-title { font-size: 22px; }
  .w37da-footer-grid { grid-template-columns: 1fr; }
}

/* === Mobile fine-tune: small phones <= 430px === */
@media (max-width: 430px) {
  html { font-size: 14px; -webkit-text-size-adjust: 100%; }
  body { font-size: 14px; line-height: 1.5; overflow-x: hidden; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  img { max-width: 100%; height: auto; }
  .w37da-hero-title { font-size: 1.6rem !important; }
  .w37da-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .w37da-card { padding: 0; }
  .w37da-section { padding: 12px 10px !important; }
  .w37da-bottomnav { height: 56px !important; }
  .w37da-bottomnav a { font-size: 10px !important; }
}
