/* MB668 core stylesheet - basefiles build */
/* All custom classes use w63f2- prefix for namespace isolation */

:root {
  --w63f2-bg: #0F0F23;
  --w63f2-bg-alt: #161630;
  --w63f2-card: #1b1b3a;
  --w63f2-card-hi: #232352;
  --w63f2-text: #E0F2F1;
  --w63f2-muted: #999999;
  --w63f2-accent: #C9A961;
  --w63f2-accent-hi: #EBCB7E;
  --w63f2-border: rgba(224, 242, 241, 0.10);
  --w63f2-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --w63f2-radius: 14px;
  --w63f2-radius-sm: 9px;
  --w63f2-header-h: 56px;
  --w63f2-bottom-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, system-ui, sans-serif;
  background: var(--w63f2-bg);
  color: var(--w63f2-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.w63f2-container { width: 100%; padding: 0 1.2rem; }
.w63f2-section { padding: 2.4rem 1.2rem; }
.w63f2-section-alt { background: var(--w63f2-bg-alt); }

/* ---------- Header ---------- */
.w63f2-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--w63f2-header-h);
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--w63f2-border);
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}
.w63f2-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 1.2rem; gap: 0.8rem;
}
.w63f2-logo { display: flex; align-items: center; gap: 0.6rem; font-size: 2rem; font-weight: 800; letter-spacing: 0.5px; }
.w63f2-logo-img { width: 30px; height: 30px; border-radius: 8px; }
.w63f2-logo b { color: var(--w63f2-accent); }
.w63f2-header-btns { display: flex; gap: 0.6rem; align-items: center; }
.w63f2-menu-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--w63f2-text); font-size: 2.1rem;
}

/* ---------- Buttons ---------- */
.w63f2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.75rem 1.4rem; border-radius: var(--w63f2-radius-sm);
  font-size: 1.35rem; font-weight: 700; white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
  min-height: 40px;
}
.w63f2-btn:active { transform: scale(0.95); }
.w63f2-btn-primary {
  background: linear-gradient(135deg, var(--w63f2-accent) 0%, var(--w63f2-accent-hi) 100%);
  color: var(--w63f2-bg);
  box-shadow: 0 4px 14px rgba(201, 169, 97, 0.35);
}
.w63f2-btn-primary:hover { filter: brightness(1.08); }
.w63f2-btn-outline {
  background: transparent; color: var(--w63f2-text);
  border: 1px solid var(--w63f2-muted);
}
.w63f2-btn-ghost { background: var(--w63f2-card); color: var(--w63f2-text); }
.w63f2-btn-lg { padding: 1.1rem 2rem; font-size: 1.55rem; width: 100%; }
.w63f2-btn-block { width: 100%; }

/* ---------- Mobile menu ---------- */
.w63f2-mobile-menu {
  position: fixed; top: 0; right: -86%;
  width: 86%; height: 100vh;
  background: var(--w63f2-bg-alt);
  z-index: 9999; padding: 2rem 1.6rem;
  overflow-y: auto; transition: right 0.3s ease;
  border-left: 1px solid var(--w63f2-border);
}
.w63f2-mobile-menu.w63f2-menu-open { right: 0; }
.w63f2-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
}
.w63f2-menu-overlay.w63f2-active { opacity: 1; visibility: visible; }
.w63f2-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; }
.w63f2-menu-head b { color: var(--w63f2-accent); font-size: 1.9rem; }
.w63f2-menu-close { font-size: 2.4rem; color: var(--w63f2-text); line-height: 1; }
.w63f2-menu-title { font-size: 1.2rem; color: var(--w63f2-muted); margin: 1.4rem 0 0.6rem; text-transform: uppercase; letter-spacing: 1px; }
.w63f2-menu-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--w63f2-border);
  color: var(--w63f2-text); font-size: 1.5rem; font-weight: 500;
}
.w63f2-menu-link:active { color: var(--w63f2-accent); }
.w63f2-menu-link i { color: var(--w63f2-muted); }
.w63f2-menu-cta { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* ---------- Main ---------- */
main { padding-top: calc(var(--w63f2-header-h) + 0.4rem); padding-bottom: 80px; }

/* ---------- Carousel ---------- */
.w63f2-carousel {
  position: relative; width: 100%; margin: 1rem 0 0;
  border-radius: var(--w63f2-radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--w63f2-card);
  box-shadow: var(--w63f2-shadow);
}
.w63f2-carousel-track { display: flex; height: 100%; transition: transform 0.55s ease; }
.w63f2-slide { position: relative; min-width: 100%; height: 100%; }
.w63f2-slide img { width: 100%; height: 100%; object-fit: cover; }
.w63f2-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.w63f2-slide-caption h2 { font-size: 1.7rem; font-weight: 800; color: #fff; }
.w63f2-slide-caption p { font-size: 1.25rem; color: var(--w63f2-accent-hi); margin-top: 0.2rem; }
.w63f2-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(15, 15, 35, 0.6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; z-index: 2;
}
.w63f2-carousel-arrow.prev { left: 0.6rem; }
.w63f2-carousel-arrow.next { right: 0.6rem; }
.w63f2-dots { position: absolute; bottom: 0.6rem; right: 0.8rem; display: flex; gap: 0.4rem; z-index: 2; }
.w63f2-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: all 0.2s; }
.w63f2-dot.w63f2-dot-active { background: var(--w63f2-accent); width: 18px; border-radius: 4px; }

/* ---------- Hero / intro ---------- */
.w63f2-hero { padding: 1.6rem 1.2rem 0.4rem; }
.w63f2-hero h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.25; color: var(--w63f2-text); }
.w63f2-hero h1 span { color: var(--w63f2-accent); }
.w63f2-hero p { margin-top: 0.8rem; color: var(--w63f2-muted); font-size: 1.45rem; }
.w63f2-hero-cta { display: flex; gap: 0.8rem; margin-top: 1.4rem; }

/* ---------- Section heading ---------- */
.w63f2-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.w63f2-sec-title { font-size: 1.85rem; font-weight: 800; display: flex; align-items: center; gap: 0.6rem; }
.w63f2-sec-title i { color: var(--w63f2-accent); }
.w63f2-sec-tag { font-size: 1.2rem; color: var(--w63f2-accent); font-weight: 600; }

/* ---------- Game grid ---------- */
.w63f2-game-block { margin-bottom: 1.2rem; }
.w63f2-cat-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.2rem; background: var(--w63f2-card);
  border-left: 4px solid var(--w63f2-accent);
  margin-bottom: 0.8rem;
}
.w63f2-cat-head h2 { font-size: 1.55rem; font-weight: 700; }
.w63f2-cat-head .w63f2-cat-ico { color: var(--w63f2-accent); font-size: 1.8rem; }
.w63f2-cat-head .w63f2-cat-count { margin-left: auto; font-size: 1.2rem; color: var(--w63f2-muted); }
.w63f2-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem; padding: 0 1.2rem;
}
.w63f2-game-card {
  background: var(--w63f2-card); border-radius: var(--w63f2-radius-sm);
  overflow: hidden; border: 1px solid var(--w63f2-border);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.w63f2-game-card:active { transform: scale(0.96); border-color: var(--w63f2-accent); }
.w63f2-game-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--w63f2-bg-alt); }
.w63f2-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w63f2-game-badge {
  position: absolute; top: 4px; left: 4px;
  background: rgba(201, 169, 97, 0.92); color: var(--w63f2-bg);
  font-size: 0.95rem; font-weight: 700; padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.w63f2-game-name {
  padding: 0.55rem 0.5rem; font-size: 1.18rem; font-weight: 600;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--w63f2-text);
}

/* ---------- Content blocks ---------- */
.w63f2-card-box {
  background: var(--w63f2-card); border-radius: var(--w63f2-radius);
  padding: 1.6rem; border: 1px solid var(--w63f2-border);
}
.w63f2-card-box h3 { font-size: 1.55rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--w63f2-accent-hi); }
.w63f2-card-box p { color: var(--w63f2-text); font-size: 1.4rem; margin-bottom: 0.8rem; }
.w63f2-card-box p:last-child { margin-bottom: 0; }
.w63f2-card-box ul { margin: 0.4rem 0 0.8rem; padding-left: 0.2rem; }
.w63f2-card-box li { position: relative; padding-left: 1.8rem; margin-bottom: 0.55rem; font-size: 1.38rem; color: var(--w63f2-text); }
.w63f2-card-box li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--w63f2-accent); font-size: 1.1rem; top: 0.3rem; }
.w63f2-step-list { counter-reset: step; }
.w63f2-step-item {
  position: relative; padding: 1rem 1rem 1rem 3.6rem;
  background: var(--w63f2-bg-alt); border-radius: var(--w63f2-radius-sm);
  margin-bottom: 0.7rem; font-size: 1.4rem;
}
.w63f2-step-item::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  width: 1.9rem; height: 1.9rem; background: var(--w63f2-accent);
  color: var(--w63f2-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem;
}
.w63f2-step-item b { color: var(--w63f2-accent-hi); }

/* Features grid */
.w63f2-feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w63f2-feat-item {
  background: var(--w63f2-card); border-radius: var(--w63f2-radius-sm);
  padding: 1.2rem 0.9rem; text-align: center; border: 1px solid var(--w63f2-border);
}
.w63f2-feat-ico { font-size: 2.6rem; color: var(--w63f2-accent); margin-bottom: 0.5rem; }
.w63f2-feat-item h4 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.3rem; }
.w63f2-feat-item p { font-size: 1.2rem; color: var(--w63f2-muted); line-height: 1.35; }

/* Promo cards */
.w63f2-promo-card {
  background: linear-gradient(135deg, var(--w63f2-card) 0%, var(--w63f2-card-hi) 100%);
  border-radius: var(--w63f2-radius); padding: 1.3rem;
  margin-bottom: 0.8rem; border: 1px solid var(--w63f2-border);
  position: relative; overflow: hidden;
}
.w63f2-promo-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; background: radial-gradient(circle, rgba(201,169,97,0.25), transparent 70%); }
.w63f2-promo-tag { display: inline-block; background: var(--w63f2-accent); color: var(--w63f2-bg); font-size: 1.1rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 4px; margin-bottom: 0.5rem; }
.w63f2-promo-card h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.3rem; }
.w63f2-promo-card p { font-size: 1.3rem; color: var(--w63f2-muted); }

/* Winners list */
.w63f2-winner {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.9rem; background: var(--w63f2-card);
  border-radius: var(--w63f2-radius-sm); margin-bottom: 0.55rem;
  border: 1px solid var(--w63f2-border);
}
.w63f2-winner-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--w63f2-accent); color: var(--w63f2-bg); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.w63f2-winner-info { flex: 1; min-width: 0; }
.w63f2-winner-info b { font-size: 1.32rem; display: block; }
.w63f2-winner-info span { font-size: 1.15rem; color: var(--w63f2-muted); }
.w63f2-winner-amt { color: var(--w63f2-accent-hi); font-weight: 800; font-size: 1.35rem; white-space: nowrap; }

/* Payment */
.w63f2-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.w63f2-pay-item { background: var(--w63f2-card); border-radius: var(--w63f2-radius-sm); padding: 0.9rem 0.4rem; text-align: center; border: 1px solid var(--w63f2-border); }
.w63f2-pay-item i { font-size: 2.2rem; color: var(--w63f2-accent); }
.w63f2-pay-item span { display: block; font-size: 1.12rem; margin-top: 0.3rem; color: var(--w63f2-muted); }

/* App CTA */
.w63f2-app-cta {
  background: linear-gradient(135deg, #1b1b3a 0%, #2a2342 100%);
  border-radius: var(--w63f2-radius); padding: 1.5rem;
  border: 1px solid var(--w63f2-border); text-align: center;
}
.w63f2-app-cta h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.5rem; }
.w63f2-app-cta p { font-size: 1.32rem; color: var(--w63f2-muted); margin-bottom: 1rem; }
.w63f2-app-btns { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* FAQ */
.w63f2-faq-item { background: var(--w63f2-card); border-radius: var(--w63f2-radius-sm); margin-bottom: 0.6rem; border: 1px solid var(--w63f2-border); overflow: hidden; }
.w63f2-faq-q { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; font-size: 1.4rem; font-weight: 600; }
.w63f2-faq-q i { color: var(--w63f2-accent); transition: transform 0.25s ease; }
.w63f2-faq-item.w63f2-faq-open .w63f2-faq-q i { transform: rotate(45deg); }
.w63f2-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.2rem; color: var(--w63f2-muted); font-size: 1.32rem; }
.w63f2-faq-item.w63f2-faq-open .w63f2-faq-a { max-height: 320px; padding-bottom: 1rem; }

/* Inline promo link */
.w63f2-inline-link { color: var(--w63f2-accent-hi); font-weight: 700; border-bottom: 1px dashed var(--w63f2-accent); }
.w63f2-inline-link:active { color: var(--w63f2-accent); }

/* ---------- Footer ---------- */
.w63f2-footer { background: var(--w63f2-bg-alt); padding: 2.2rem 1.2rem 1.4rem; border-top: 1px solid var(--w63f2-border); }
.w63f2-footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.w63f2-footer-brand b { color: var(--w63f2-accent); font-size: 1.8rem; }
.w63f2-footer p { color: var(--w63f2-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.w63f2-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.w63f2-footer-links a { background: var(--w63f2-card); padding: 0.5rem 0.9rem; border-radius: 6px; font-size: 1.22rem; border: 1px solid var(--w63f2-border); }
.w63f2-footer-links a:active { color: var(--w63f2-accent); border-color: var(--w63f2-accent); }
.w63f2-footer-copy { text-align: center; font-size: 1.18rem; color: var(--w63f2-muted); padding-top: 1rem; border-top: 1px solid var(--w63f2-border); }

/* ---------- Bottom nav ---------- */
.w63f2-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--w63f2-bottom-h);
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--w63f2-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000; max-width: 430px; margin: 0 auto;
}
.w63f2-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--w63f2-muted);
  font-size: 1.05rem; font-weight: 500;
  transition: color 0.2s ease, transform 0.18s ease;
  min-width: 60px; padding: 0.4rem 0;
}
.w63f2-nav-item i, .w63f2-nav-item ion-icon, .w63f2-nav-item .material-icons-outlined { font-size: 2.2rem; }
.w63f2-nav-item:active { transform: scale(0.9); color: var(--w63f2-accent); }
.w63f2-nav-item.w63f2-nav-active { color: var(--w63f2-accent); }
.w63f2-nav-promo {
  position: relative;
}
.w63f2-nav-promo::before {
  content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--w63f2-accent), var(--w63f2-accent-hi));
  box-shadow: 0 4px 12px rgba(201,169,97,0.5);
}
.w63f2-nav-promo i { position: relative; color: var(--w63f2-bg); font-size: 2.1rem; margin-top: -2px; }
.w63f2-nav-promo span { position: relative; margin-top: 22px; }

/* Toast state */
.w63f2-toast-on { background: var(--w63f2-accent) !important; color: var(--w63f2-bg) !important; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 430px; border-left: 1px solid var(--w63f2-border); border-right: 1px solid var(--w63f2-border); min-height: 100vh; }
  .w63f2-bottom-nav { display: none; }
}
