/*!
 * bg99.homes - design.css
 * Mobile-first Vietnamese casino portal stylesheet
 * Palette: #FF5722 | #AFEEEE | #C9C9FF | #EEEEEE | #273746 | #FFDFBA
 * All custom classes use the `wf53b-` prefix to avoid collisions.
 * Root font 62.5% -> 1rem = 10px.
 */

:root {
  --wf53b-primary: #FF5722;
  --wf53b-accent: #AFEEEE;
  --wf53b-lavender: #C9C9FF;
  --wf53b-cloud: #EEEEEE;
  --wf53b-ink: #273746;
  --wf53b-cream: #FFDFBA;
  --wf53b-bg: #1b2634;
  --wf53b-bg-alt: #21303f;
  --wf53b-text: #f3f6fa;
  --wf53b-muted: #aab6c4;
  --wf53b-gold: #ffd27a;
  --wf53b-green: #38d39f;
  --wf53b-red: #ff5470;
  --wf53b-radius: 14px;
  --wf53b-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --wf53b-header-h: 60px;
  --wf53b-bottom-h: 62px;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: radial-gradient(1200px 500px at 50% -10%, #2b3a4d 0%, var(--wf53b-bg) 60%);
  color: var(--wf53b-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--wf53b-accent); text-decoration: none; }
a:hover { color: var(--wf53b-primary); }

/* ---- Layout wrappers (mobile-first, hard cap 430px) ---- */
.wf53b-wrapper {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 14px;
}
.wf53b-container { width: 100%; }
main.wf53b-main { display: block; padding-top: calc(var(--wf53b-header-h) + 8px); }

/* ---- Top header (fixed floating) ---- */
.wf53b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--wf53b-header-h);
  background: linear-gradient(180deg, rgba(39,55,70,0.98), rgba(39,55,70,0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 1000;
}
.wf53b-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.wf53b-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wf53b-brand img { width: 28px; height: 28px; border-radius: 8px; }
.wf53b-brand-name {
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.4px;
  background: linear-gradient(90deg, var(--wf53b-primary), var(--wf53b-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wf53b-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.wf53b-menu-btn {
  width: 40px; height: 40px;
  border: 0; background: transparent; color: #fff;
  font-size: 2.2rem; cursor: pointer; border-radius: 10px;
}
.wf53b-menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ---- Buttons ---- */
.wf53b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-decoration: none;
  color: #fff;
}
.wf53b-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.wf53b-btn-primary { background: linear-gradient(135deg, var(--wf53b-primary), #ff7a3d); box-shadow: 0 6px 16px rgba(255,87,34,0.4); }
.wf53b-btn-ghost { background: rgba(175,238,238,0.12); border: 1px solid rgba(175,238,238,0.45); color: var(--wf53b-accent); }
.wf53b-btn-gold { background: linear-gradient(135deg, var(--wf53b-gold), #ffb84d); color: #2a1d05; }
.wf53b-btn-block { width: 100%; }
.wf53b-link-text { color: var(--wf53b-primary); font-weight: 700; }
.wf53b-link-text:hover { color: var(--wf53b-gold); }

/* ---- Mobile menu drawer ---- */
.wf53b-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9998;
}
.wf53b-menu-backdrop.wf53b-is-visible { opacity: 1; pointer-events: auto; }
.wf53b-mobile-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background: var(--wf53b-bg-alt);
  z-index: 9999;
  padding: 18px 16px;
  transform: translateX(0);
  transition: right .28s ease;
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0,0,0,0.4);
}
.wf53b-mobile-menu.wf53b-is-open { right: 0; }
.wf53b-mobile-menu h3 { font-size: 1.5rem; color: var(--wf53b-muted); margin: 14px 4px 8px; text-transform: uppercase; letter-spacing: 1px; }
.wf53b-mobile-menu a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--wf53b-text);
  font-size: 1.45rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wf53b-mobile-menu a:hover { background: rgba(255,87,34,0.14); color: #fff; }
.wf53b-menu-close { display:flex; justify-content:flex-end; }
.wf53b-menu-close button { background:transparent; border:0; color:#fff; font-size:2rem; cursor:pointer; }

/* ---- Hero slider ---- */
.wf53b-hero { margin: 10px 0 14px; border-radius: 16px; overflow: hidden; box-shadow: var(--wf53b-shadow); }
.wf53b-slider { position: relative; }
.wf53b-slide {
  display: none;
  cursor: pointer;
  position: relative;
}
.wf53b-slide.wf53b-is-active { display: block; }
.wf53b-slide img { width: 100%; height: 180px; object-fit: cover; }
.wf53b-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  color: #fff; font-weight: 700; font-size: 1.4rem;
}
.wf53b-dots { display:flex; gap:6px; justify-content:center; padding: 8px 0; }
.wf53b-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: 0; cursor: pointer; padding: 0;
}
.wf53b-dot.wf53b-is-active { background: var(--wf53b-primary); width: 22px; border-radius: 6px; }

/* ---- Section / heading ---- */
.wf53b-section { margin: 22px 0; }
.wf53b-section-head { display:flex; align-items:center; gap:8px; margin: 0 0 12px; }
.wf53b-section-head h2 {
  font-size: 1.85rem; font-weight: 800; margin: 0;
  color: #fff;
}
.wf53b-section-head .wf53b-bar { width: 6px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, var(--wf53b-primary), var(--wf53b-gold)); }
.wf53b-section-head .wf53b-more { margin-left:auto; font-size: 1.25rem; color: var(--wf53b-accent); font-weight: 600; }

/* ---- Game grid ---- */
.wf53b-game-cat { margin: 18px 0; }
.wf53b-cat-title {
  font-size: 1.55rem; font-weight: 700;
  color: var(--wf53b-cream);
  margin: 6px 0 10px;
  display:flex; align-items:center; gap:8px;
}
.wf53b-cat-title i { color: var(--wf53b-primary); }
.wf53b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wf53b-game {
  background: var(--wf53b-bg-alt);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .15s ease, border-color .15s ease;
  text-decoration: none;
  display: block;
}
.wf53b-game:hover { transform: translateY(-2px); border-color: var(--wf53b-primary); }
.wf53b-game img { width: 100%; height: 84px; object-fit: cover; }
.wf53b-game-name {
  font-size: 1.15rem; color: var(--wf53b-text);
  padding: 5px 4px 7px; font-weight: 600; line-height: 1.25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- Card ---- */
.wf53b-card {
  background: var(--wf53b-bg-alt);
  border-radius: var(--wf53b-radius);
  padding: 14px;
  box-shadow: var(--wf53b-shadow);
  border: 1px solid rgba(255,255,255,0.05);
}
.wf53b-card h3 { margin: 0 0 8px; font-size: 1.55rem; color: var(--wf53b-gold); }
.wf53b-card p { margin: 6px 0; color: var(--wf53b-muted); font-size: 1.35rem; }

/* ---- Feature / Highlights grid ---- */
.wf53b-features { display:grid; grid-template-columns: repeat(2,1fr); gap:10px; }
.wf53b-feature {
  background: linear-gradient(160deg, rgba(175,238,238,0.10), rgba(201,201,255,0.08));
  border-radius: 12px; padding: 12px; border:1px solid rgba(175,238,238,0.18);
}
.wf53b-feature i { font-size: 2.2rem; color: var(--wf53b-primary); }
.wf53b-feature h4 { margin: 6px 0 4px; font-size: 1.4rem; color:#fff; }
.wf53b-feature p { margin: 0; font-size: 1.2rem; color: var(--wf53b-muted); }

/* ---- Stats / RTP ---- */
.wf53b-stats { display:grid; grid-template-columns: repeat(2,1fr); gap:10px; }
.wf53b-stat {
  background: var(--wf53b-bg-alt);
  padding: 12px; border-radius: 12px;
  border-left: 4px solid var(--wf53b-primary);
}
.wf53b-stat .num { font-size: 2.1rem; font-weight: 800; color: var(--wf53b-gold); display:block; }
.wf53b-stat .lbl { font-size: 1.2rem; color: var(--wf53b-muted); }
.wf53b-rtp-row { display:flex; justify-content:space-between; padding:8px 4px; border-bottom:1px dashed rgba(255,255,255,0.08); font-size:1.3rem; }
.wf53b-rtp-row span:last-child { color: var(--wf53b-green); font-weight: 700; }

/* ---- Testimonials ---- */
.wf53b-reviews { display:grid; grid-template-columns: 1fr; gap:10px; }
.wf53b-review { background: var(--wf53b-bg-alt); border-radius:12px; padding:12px; border-left:3px solid var(--wf53b-lavender); }
.wf53b-review .who { font-weight:700; color:#fff; font-size:1.35rem; display:flex; align-items:center; gap:8px; }
.wf53b-review .stars { color: var(--wf53b-gold); font-size:1.1rem; }
.wf53b-review p { margin: 6px 0 0; color: var(--wf53b-muted); font-size: 1.3rem; }

/* ---- Winners ticker ---- */
.wf53b-winners { background: var(--wf53b-bg-alt); border-radius: 12px; padding: 10px; }
.wf53b-winner { display:flex; align-items:center; gap:10px; padding:8px 4px; border-bottom:1px solid rgba(255,255,255,0.06); font-size:1.3rem; }
.wf53b-winner:last-child { border-bottom:0; }
.wf53b-winner .avatar { width:32px; height:32px; border-radius:50%; background: linear-gradient(135deg, var(--wf53b-primary), var(--wf53b-gold)); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; }
.wf53b-winner .amt { margin-left:auto; color: var(--wf53b-green); font-weight:700; }

/* ---- Payment chips ---- */
.wf53b-payments { display:flex; flex-wrap:wrap; gap:8px; }
.wf53b-pay {
  background: #fff; color: var(--wf53b-ink);
  border-radius: 8px; padding: 6px 10px; font-weight:700; font-size:1.15rem;
  display:inline-flex; align-items:center; gap:4px;
}

/* ---- App CTA ---- */
.wf53b-app-cta {
  background: linear-gradient(135deg, rgba(255,87,34,0.18), rgba(201,201,255,0.10));
  border-radius: var(--wf53b-radius);
  padding: 16px;
  display:flex; gap:12px; align-items:center;
  border:1px solid rgba(255,87,34,0.35);
}
.wf53b-app-cta .txt { flex:1; }
.wf53b-app-cta h3 { margin:0 0 4px; font-size:1.6rem; color:#fff; }
.wf53b-app-cta p { margin:0; font-size:1.25rem; color: var(--wf53b-muted); }

/* ---- FAQ ---- */
.wf53b-faq details {
  background: var(--wf53b-bg-alt);
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border:1px solid rgba(255,255,255,0.05);
}
.wf53b-faq summary { font-weight: 700; font-size: 1.35rem; color: #fff; cursor: pointer; list-style: none; }
.wf53b-faq summary::-webkit-details-marker { display:none; }
.wf53b-faq details[open] summary { color: var(--wf53b-primary); }
.wf53b-faq p { margin: 8px 0 0; color: var(--wf53b-muted); font-size: 1.3rem; }

/* ---- Footer ---- */
.wf53b-footer {
  margin-top: 26px;
  background: #15202b;
  padding: 20px 14px calc(var(--wf53b-bottom-h) + 24px);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.wf53b-footer .wf53b-wrapper { padding: 0; }
.wf53b-footer h4 { color: var(--wf53b-gold); font-size: 1.4rem; margin: 14px 0 8px; }
.wf53b-footer p { color: var(--wf53b-muted); font-size: 1.25rem; margin: 4px 0; }
.wf53b-footer-links { display:grid; grid-template-columns: 1fr 1fr; gap:6px 10px; margin: 8px 0; }
.wf53b-footer-links a { font-size: 1.2rem; color: var(--wf53b-cloud); }
.wf53b-footer-links a:hover { color: var(--wf53b-primary); }
.wf53b-promo-row { display:flex; flex-wrap:wrap; gap:8px; margin: 12px 0; }
.wf53b-copy { font-size: 1.15rem; color: var(--wf53b-muted); margin-top: 14px; text-align:center; }

/* ---- Mobile bottom nav (fixed) ---- */
.wf53b-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--wf53b-bottom-h);
  background: linear-gradient(180deg, rgba(33,48,63,0.98), rgba(21,32,43,1));
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.35);
}
.wf53b-bottom-nav a, .wf53b-bottom-nav button {
  flex: 1;
  background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--wf53b-muted); font-size: 1.05rem; gap: 3px;
  cursor: pointer; padding: 4px 2px; min-width: 60px; min-height: 60px;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.wf53b-bottom-nav a i, .wf53b-bottom-nav button i { font-size: 22px; }
.wf53b-bottom-nav a:hover, .wf53b-bottom-nav button:hover { color: #fff; transform: translateY(-1px); }
.wf53b-bottom-nav .wf53b-active { color: var(--wf53b-primary); }
.wf53b-bottom-nav .wf53b-badge {
  position: absolute; top: 6px; right: 22%;
  background: var(--wf53b-red); color:#fff; font-size:0.95rem;
  padding: 1px 5px; border-radius: 8px;
}

/* ---- Utilities ---- */
.wf53b-text-center { text-align:center; }
.wf53b-mt-8 { margin-top: 8px; } .wf53b-mt-16 { margin-top: 16px; }
.wf53b-mb-8 { margin-bottom: 8px; } .wf53b-mb-16 { margin-bottom: 16px; }
.wf53b-pill {
  display:inline-block; padding:3px 10px; border-radius:999px;
  background: rgba(255,87,34,0.18); color: var(--wf53b-primary);
  font-size:1.15rem; font-weight:700;
}
.wf53b-note { font-size: 1.2rem; color: var(--wf53b-muted); }
.wf53b-kw { color: var(--wf53b-accent); font-weight: 700; }

/* ---- Desktop: hide bottom nav, widen wrapper ---- */
@media (min-width: 769px) {
  .wf53b-bottom-nav { display: none; }
  .wf53b-wrapper { max-width: 430px; }
  .wf53b-footer { padding-bottom: 24px; }
}
/* ---- Mobile: pad content so bottom nav never covers it ---- */
@media (max-width: 768px) {
  main.wf53b-main { padding-bottom: calc(var(--wf53b-bottom-h) + 16px); }
  .wf53b-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  .wf53b-grid { grid-template-columns: repeat(2, 1fr); }
  .wf53b-game img { height: 92px; }
}
