/* =========================================================
 * ax88 win - Core Stylesheet (basefile)
 * All custom classes use prefix: w2df5-
 * Palette: #F08080 | #E9967A | #2E4057 | #1E90FF | #40E0D0
 * Mobile-first, max width 430px content column.
 * ========================================================= */

:root {
  --w2df5-primary: #F08080;
  --w2df5-accent: #E9967A;
  --w2df5-deep: #2E4057;
  --w2df5-blue: #1E90FF;
  --w2df5-teal: #40E0D0;
  --w2df5-bg: #14202e;
  --w2df5-bg-2: #1b2a3d;
  --w2df5-card: #21324a;
  --w2df5-text: #f5f8ff;
  --w2df5-muted: #b6c4d6;
  --w2df5-border: rgba(64, 224, 208, 0.18);
  --w2df5-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --w2df5-radius: 14px;
}

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

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

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: linear-gradient(160deg, var(--w2df5-bg) 0%, var(--w2df5-bg-2) 100%);
  color: var(--w2df5-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--w2df5-teal); text-decoration: none; }
a:hover { color: var(--w2df5-primary); }
img { max-width: 100%; display: block; }

.w2df5-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ---------- Header ---------- */
.w2df5-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(20,32,46,0.96), rgba(30,144,255,0.88));
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.w2df5-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: 54px;
}
.w2df5-brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 800; font-size: 1.7rem;
  letter-spacing: 0.3px;
}
.w2df5-brand img { width: 30px; height: 30px; border-radius: 8px; }
.w2df5-brand span b { color: var(--w2df5-primary); }

.w2df5-header-actions { display: flex; align-items: center; gap: 8px; }

.w2df5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  min-height: 38px;
  color: #fff;
}
.w2df5-btn:active { transform: scale(0.96); }
.w2df5-btn-register {
  background: linear-gradient(90deg, var(--w2df5-primary), var(--w2df5-accent));
  box-shadow: 0 4px 14px rgba(240,128,128,0.45);
}
.w2df5-btn-login {
  background: linear-gradient(90deg, var(--w2df5-blue), var(--w2df5-teal));
  box-shadow: 0 4px 14px rgba(30,144,255,0.35);
}
.w2df5-btn:hover { filter: brightness(1.08); color: #fff; }

.w2df5-icon-btn {
  background: rgba(255,255,255,0.12);
  border: 0;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}
.w2df5-icon-btn:active { transform: scale(0.95); }

/* ---------- Mobile menu drawer ---------- */
.w2df5-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
}
.w2df5-backdrop-show { opacity: 1; visibility: visible; }

.w2df5-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--w2df5-deep);
  z-index: 9999;
  padding: 70px 16px 24px;
  overflow-y: auto;
  transition: right .28s ease;
  box-shadow: -6px 0 24px rgba(0,0,0,0.45);
}
.w2df5-menu-open { right: 0; }
.w2df5-mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.w2df5-mobile-menu a:hover { background: rgba(64,224,208,0.12); color: var(--w2df5-teal); }
.w2df5-menu-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff; border: 0;
  width: 34px; height: 34px; border-radius: 8px;
  font-size: 1.8rem; cursor: pointer;
}

/* ---------- Layout ---------- */
.w2df5-main { padding-top: 60px; }
.w2df5-section { padding: 22px 14px; }
.w2df5-section-title {
  font-size: 2rem; font-weight: 800;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  color: #fff;
}
.w2df5-section-title i { color: var(--w2df5-primary); }
.w2df5-subtitle { color: var(--w2df5-muted); margin-bottom: 14px; font-size: 1.4rem; }

/* ---------- Hero / Carousel ---------- */
.w2df5-hero { padding: 14px 12px 4px; }
.w2df5-carousel {
  position: relative;
  border-radius: var(--w2df5-radius);
  overflow: hidden;
  box-shadow: var(--w2df5-shadow);
}
.w2df5-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.w2df5-slide-active { display: block; }
.w2df5-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.w2df5-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; font-weight: 700; font-size: 1.5rem;
}
.w2df5-carousel-arrows {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%;
  display: flex; justify-content: space-between;
  pointer-events: none;
  padding: 0 6px;
}
.w2df5-carousel-arrows button {
  pointer-events: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,0.4);
  color: #fff; cursor: pointer;
}
.w2df5-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0;
}
.w2df5-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 0; cursor: pointer;
}
.w2df5-dot-active { background: var(--w2df5-primary); }

/* ---------- H1 ---------- */
.w2df5-h1 {
  font-size: 2.4rem; font-weight: 900;
  line-height: 1.25;
  padding: 6px 14px;
  color: #fff;
}
.w2df5-h1 b { color: var(--w2df5-primary); }

/* ---------- Game grid ---------- */
.w2df5-cat-head {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 10px;
  padding: 0 4px;
}
.w2df5-cat-badge {
  background: linear-gradient(90deg, var(--w2df5-blue), var(--w2df5-teal));
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.5px;
}
.w2df5-cat-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--w2df5-primary), transparent);
  border-radius: 2px;
}
.w2df5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w2df5-game {
  background: var(--w2df5-card);
  border: 1px solid var(--w2df5-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.w2df5-game:active { transform: scale(0.96); }
.w2df5-game img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-bottom: 1px solid var(--w2df5-border);
}
.w2df5-game-name {
  padding: 6px 4px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25rem;
  height: 3.2rem;
  overflow: hidden;
}

/* ---------- Cards ---------- */
.w2df5-card {
  background: var(--w2df5-card);
  border: 1px solid var(--w2df5-border);
  border-radius: var(--w2df5-radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--w2df5-shadow);
}
.w2df5-card h2 {
  font-size: 1.8rem; margin-bottom: 8px; color: var(--w2df5-primary);
  display: flex; align-items: center; gap: 6px;
}
.w2df5-card h3 {
  font-size: 1.5rem; margin: 10px 0 6px; color: var(--w2df5-teal);
}
.w2df5-card p { color: var(--w2df5-muted); margin-bottom: 8px; font-size: 1.4rem; }
.w2df5-card ul { padding-left: 18px; color: var(--w2df5-muted); }
.w2df5-card li { margin-bottom: 6px; }

/* ---------- Promo banner ---------- */
.w2df5-promo {
  background: linear-gradient(120deg, rgba(240,128,128,0.18), rgba(64,224,208,0.16));
  border: 1px solid var(--w2df5-border);
  border-radius: var(--w2df5-radius);
  padding: 14px;
  margin: 12px 0;
  display: flex; align-items: center; gap: 12px;
}
.w2df5-promo .w2df5-promo-ico {
  font-size: 2.6rem; color: var(--w2df5-primary);
}
.w2df5-promo-text { flex: 1; }
.w2df5-promo-text strong { display: block; color: #fff; font-size: 1.5rem; }
.w2df5-promo-text span { color: var(--w2df5-muted); font-size: 1.3rem; }

/* ---------- Text link (SEO inline) ---------- */
.w2df5-link {
  color: var(--w2df5-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--w2df5-accent);
}
.w2df5-link:hover { color: var(--w2df5-teal); }

/* ---------- FAQ accordion ---------- */
.w2df5-faq-item {
  background: var(--w2df5-card);
  border: 1px solid var(--w2df5-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.w2df5-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex; justify-content: space-between; align-items: center;
}
.w2df5-faq-q i { color: var(--w2df5-primary); transition: transform .2s; }
.w2df5-faq-item.w2df5-faq-open .w2df5-faq-q i { transform: rotate(45deg); }
.w2df5-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
  color: var(--w2df5-muted);
  padding: 0 14px;
  font-size: 1.35rem;
}
.w2df5-faq-open .w2df5-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ---------- Payment chips ---------- */
.w2df5-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w2df5-chip {
  background: var(--w2df5-bg-2);
  border: 1px solid var(--w2df5-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.25rem;
  color: var(--w2df5-teal);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.w2df5-footer {
  background: #0e1824;
  border-top: 2px solid var(--w2df5-primary);
  padding: 20px 14px 90px;
  margin-top: 18px;
}
.w2df5-footer-brand {
  color: #fff; font-weight: 800; font-size: 1.6rem; margin-bottom: 6px;
}
.w2df5-footer p { color: var(--w2df5-muted); font-size: 1.3rem; margin-bottom: 12px; }
.w2df5-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.w2df5-footer-links a {
  background: var(--w2df5-card);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.25rem;
  color: var(--w2df5-teal);
  border: 1px solid var(--w2df5-border);
}
.w2df5-footer-links a:hover { color: #fff; background: var(--w2df5-blue); }
.w2df5-footer-copy { color: var(--w2df5-muted); font-size: 1.2rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 10px; }

/* ---------- Bottom nav (mobile) ---------- */
.w2df5-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(30,64,90,0.98), rgba(20,32,46,0.99));
  border-top: 2px solid var(--w2df5-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
}
.w2df5-navbtn {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--w2df5-muted);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  min-width: 60px; min-height: 60px;
  cursor: pointer;
  font-size: 1.05rem; font-weight: 600;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}
.w2df5-navbtn i,
.w2df5-navbtn .material-icons-outlined,
.w2df5-navbtn ion-icon { font-size: 22px; }
.w2df5-navbtn ion-icon { font-size: 24px; }
.w2df5-navbtn:active { transform: scale(0.92); }
.w2df5-navbtn-active { color: var(--w2df5-primary); }
.w2df5-navbtn-active::after {
  content: ""; position: absolute; top: 0;
  width: 26px; height: 3px;
  background: var(--w2df5-primary);
  border-radius: 0 0 4px 4px;
}
.w2df5-nav-badge {
  position: absolute; top: 6px; right: 18px;
  background: var(--w2df5-primary); color: #fff;
  font-size: 0.9rem; font-weight: 700;
  min-width: 15px; height: 15px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w2df5-bottom-nav { display: none; }
  .w2df5-wrapper { max-width: 760px; }
  .w2df5-header-inner { max-width: 760px; }
  .w2df5-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile bottom padding so content isn't hidden behind nav */
@media (max-width: 768px) {
  .w2df5-main { padding-bottom: 84px; }
}

/* Utility */
.w2df5-text-center { text-align: center; }
.w2df5-mt-12 { margin-top: 12px; }
.w2df5-row { display: flex; gap: 8px; flex-wrap: wrap; }
.w2df5-tag {
  background: rgba(240,128,128,0.18);
  color: var(--w2df5-primary);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 1.15rem;
  font-weight: 700;
}
