/* ============================================================
 * nustar game - style-f28a.css
 * Mobile-first responsive stylesheet. All custom classes use
 * the wf28a- prefix. Color palette:
 *   #FFFFFF | #3C3C3C | #DCDCDC | #34495E | #2D2D2D
 * Dark = background, light = text.
 * ============================================================ */

:root {
  --wf28a-white: #FFFFFF;
  --wf28a-dark: #3C3C3C;
  --wf28a-mid: #2D2D2D;
  --wf28a-line: #DCDCDC;
  --wf28a-primary: #34495E;
  --wf28a-accent: #C0392B;
  --wf28a-gold: #D4A437;
  --wf28a-bg: #1f2329;
  --wf28a-bg-soft: #2D2D2D;
  --wf28a-card: #34495E;
  --wf28a-text: #FFFFFF;
  --wf28a-text-mute: #DCDCDC;
  --wf28a-radius: 12px;
  --wf28a-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  --wf28a-header-h: 56px;
  --wf28a-bnav-h: 62px;
}

/* Base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  color: var(--wf28a-text);
  background: var(--wf28a-bg);
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--wf28a-gold); text-decoration: none; }
ul { list-style: none; }

/* ============== Layout ============== */
.wf28a-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.wf28a-container { padding: 0 1.2rem; }
.wf28a-main { padding-top: var(--wf28a-header-h); padding-bottom: calc(var(--wf28a-bnav-h) + 2rem); }
.wf28a-section { padding: 2rem 0; }
.wf28a-section-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 1.2rem;
  color: var(--wf28a-white); border-left: 4px solid var(--wf28a-gold);
  padding-left: 1rem; line-height: 2.4rem;
}
.wf28a-section-title small { font-size: 1.3rem; color: var(--wf28a-text-mute); font-weight: 500; }

/* ============== Header ============== */
.wf28a-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--wf28a-header-h);
  background: var(--wf28a-mid); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; box-shadow: var(--wf28a-shadow);
  border-bottom: 1px solid #444;
}
.wf28a-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.wf28a-brand img { width: 28px; height: 28px; border-radius: 6px; }
.wf28a-brand-name { font-size: 1.6rem; font-weight: 800; color: var(--wf28a-white); white-space: nowrap; }
.wf28a-brand-name span { color: var(--wf28a-gold); }
.wf28a-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.wf28a-btn {
  border: none; border-radius: 20px; padding: 0.7rem 1.4rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  min-height: 36px; transition: transform 0.15s ease, opacity 0.15s ease;
}
.wf28a-btn:active { transform: scale(0.94); opacity: 0.9; }
.wf28a-btn-register { background: linear-gradient(135deg, var(--wf28a-gold), #b8860b); color: #2D2D2D; }
.wf28a-btn-login { background: transparent; color: var(--wf28a-white); border: 1px solid var(--wf28a-line); }
.wf28a-menu-btn {
  background: transparent; border: none; color: var(--wf28a-white);
  font-size: 2.2rem; cursor: pointer; padding: 0 0.4rem; min-width: 40px; min-height: 40px;
}

/* ============== Mobile Menu (slide-down) ============== */
.wf28a-mobile-menu {
  position: fixed; top: var(--wf28a-header-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: var(--wf28a-mid);
  max-height: 0; overflow: hidden; z-index: 9999;
  transition: max-height 0.3s ease; box-shadow: var(--wf28a-shadow);
}
.wf28a-mobile-menu.wf28a-open { max-height: 460px; }
.wf28a-mobile-menu ul { padding: 1rem 1.2rem; }
.wf28a-mobile-menu li { border-bottom: 1px solid #3a3a3a; }
.wf28a-mobile-menu li:last-child { border-bottom: none; }
.wf28a-mobile-menu a {
  display: block; padding: 1.1rem 0.4rem; color: var(--wf28a-white);
  font-size: 1.5rem; font-weight: 600;
}
.wf28a-mobile-menu a i { color: var(--wf28a-gold); margin-right: 0.8rem; width: 22px; }

/* ============== Hero Carousel ============== */
.wf28a-hero { position: relative; width: 100%; overflow: hidden; }
.wf28a-carousel { position: relative; width: 100%; aspect-ratio: 16/9; background: #111; }
.wf28a-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.wf28a-slide.wf28a-active { opacity: 1; }
.wf28a-slide img { width: 100%; height: 100%; object-fit: cover; }
.wf28a-slide-caption {
  position: absolute; left: 1.2rem; bottom: 1.6rem; right: 1.2rem;
  color: var(--wf28a-white); font-size: 1.5rem; font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.wf28a-dots {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 5;
}
.wf28a-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5);
  cursor: pointer; border: none;
}
.wf28a-dot.wf28a-active { background: var(--wf28a-gold); }

/* ============== Filter Tabs ============== */
.wf28a-filter {
  display: flex; gap: 0.6rem; overflow-x: auto; padding: 1rem 1.2rem;
  -webkit-overflow-scrolling: touch;
}
.wf28a-filter-tab {
  white-space: nowrap; padding: 0.6rem 1.2rem; border-radius: 20px;
  background: var(--wf28a-card); color: var(--wf28a-white);
  font-size: 1.3rem; font-weight: 600; cursor: pointer; border: 1px solid #445;
}
.wf28a-filter-tab.wf28a-active { background: var(--wf28a-gold); color: #2D2D2D; }

/* ============== Game Grid ============== */
.wf28a-game-group { margin-bottom: 1.6rem; }
.wf28a-group-title {
  font-size: 1.7rem; font-weight: 800; color: var(--wf28a-gold);
  padding: 0 1.2rem; margin-bottom: 1rem;
}
.wf28a-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; padding: 0 1.2rem;
}
.wf28a-game-card {
  background: var(--wf28a-card); border-radius: var(--wf28a-radius);
  overflow: hidden; cursor: pointer; transition: transform 0.15s ease;
  box-shadow: var(--wf28a-shadow); text-align: center;
}
.wf28a-game-card:active { transform: scale(0.95); }
.wf28a-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #111; }
.wf28a-game-name {
  font-size: 1.15rem; color: var(--wf28a-white); padding: 0.5rem 0.3rem;
  font-weight: 600; line-height: 1.3rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}

/* ============== Feature / Info Cards ============== */
.wf28a-card {
  background: var(--wf28a-card); border-radius: var(--wf28a-radius);
  padding: 1.4rem; margin-bottom: 1.2rem; box-shadow: var(--wf28a-shadow);
}
.wf28a-card h3 { font-size: 1.6rem; color: var(--wf28a-gold); margin-bottom: 0.8rem; }
.wf28a-card p { font-size: 1.35rem; color: var(--wf28a-text-mute); line-height: 1.8rem; margin-bottom: 0.8rem; }
.wf28a-card a { color: var(--wf28a-gold); font-weight: 700; }
.wf28a-card .wf28a-link-btn {
  display: inline-block; margin-top: 0.6rem; background: linear-gradient(135deg, var(--wf28a-gold), #b8860b);
  color: #2D2D2D; padding: 0.7rem 1.4rem; border-radius: 20px; font-weight: 800; font-size: 1.3rem;
}

/* ============== RTP / Stats compact ============== */
.wf28a-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; padding: 0 1.2rem; }
.wf28a-stat {
  background: var(--wf28a-card); border-radius: 10px; padding: 1rem; text-align: center;
}
.wf28a-stat .num { font-size: 2rem; font-weight: 800; color: var(--wf28a-gold); }
.wf28a-stat .lbl { font-size: 1.2rem; color: var(--wf28a-text-mute); }

/* ============== Testimonials ============== */
.wf28a-testi { background: var(--wf28a-card); border-radius: 10px; padding: 1.2rem; margin: 0 1.2rem 1rem; }
.wf28a-testi .who { font-weight: 800; color: var(--wf28a-gold); font-size: 1.4rem; }
.wf28a-testi .stars { color: var(--wf28a-gold); font-size: 1.3rem; }
.wf28a-testi p { font-size: 1.3rem; color: var(--wf28a-text-mute); margin-top: 0.4rem; }

/* ============== Payment / Winners ============== */
.wf28a-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0 1.2rem; }
.wf28a-chip {
  background: var(--wf28a-card); color: var(--wf28a-white); padding: 0.6rem 1rem;
  border-radius: 20px; font-size: 1.2rem; font-weight: 600;
}
.wf28a-winners li {
  display: flex; justify-content: space-between; padding: 0.7rem 1.2rem;
  border-bottom: 1px solid #3a3a3a; font-size: 1.3rem;
}
.wf28a-winners .amt { color: var(--wf28a-gold); font-weight: 800; }

/* ============== SEO content block ============== */
.wf28a-seo { padding: 0 1.2rem; font-size: 1.35rem; color: var(--wf28a-text-mute); line-height: 1.8rem; }
.wf28a-seo h2 { font-size: 1.8rem; color: var(--wf28a-white); margin: 1.4rem 0 0.6rem; font-weight: 800; }
.wf28a-seo h3 { font-size: 1.5rem; color: var(--wf28a-gold); margin: 1rem 0 0.4rem; font-weight: 700; }
.wf28a-seo p { margin-bottom: 0.8rem; }
.wf28a-seo a { color: var(--wf28a-gold); font-weight: 700; }

/* ============== Promo CTA banner ============== */
.wf28a-cta {
  margin: 1.4rem 1.2rem; padding: 1.4rem; border-radius: var(--wf28a-radius);
  background: linear-gradient(135deg, var(--wf28a-primary), #2c3e50);
  text-align: center; box-shadow: var(--wf28a-shadow);
}
.wf28a-cta h3 { color: var(--wf28a-gold); font-size: 1.7rem; margin-bottom: 0.6rem; }
.wf28a-cta p { color: var(--wf28a-white); font-size: 1.3rem; margin-bottom: 1rem; }
.wf28a-cta .wf28a-btn { font-size: 1.4rem; padding: 0.9rem 2rem; }

/* ============== Footer ============== */
.wf28a-footer {
  background: var(--wf28a-mid); padding: 2rem 1.2rem 1rem;
  border-top: 1px solid #444; color: var(--wf28a-text-mute);
}
.wf28a-footer p { font-size: 1.25rem; line-height: 1.7rem; margin-bottom: 1rem; }
.wf28a-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1.2rem; }
.wf28a-footer-links a { color: var(--wf28a-text-mute); font-size: 1.25rem; }
.wf28a-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.wf28a-footer-promo button {
  background: linear-gradient(135deg, var(--wf28a-gold), #b8860b); color: #2D2D2D;
  border: none; border-radius: 18px; padding: 0.6rem 1.1rem; font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
.wf28a-footer-copy { font-size: 1.15rem; color: #999; border-top: 1px solid #3a3a3a; padding-top: 1rem; }

/* ============== Mobile Bottom Nav ============== */
.wf28a-bnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--wf28a-bnav-h);
  background: var(--wf28a-mid); border-top: 1px solid #444;
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.wf28a-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: none; border: none; color: var(--wf28a-text-mute);
  cursor: pointer; gap: 2px; transition: color 0.15s ease, transform 0.15s ease;
  position: relative;
}
.wf28a-bnav-btn:active { transform: scale(0.9); }
.wf28a-bnav-btn .ic { font-size: 24px; line-height: 1; }
.wf28a-bnav-btn .tx { font-size: 1.05rem; font-weight: 600; }
.wf28a-bnav-btn.wf28a-current { color: var(--wf28a-gold); }
.wf28a-bnav-btn.wf28a-current::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 3px;
  background: var(--wf28a-gold); border-radius: 0 0 4px 4px;
}

/* Back to top */
.wf28a-totop {
  position: fixed; right: 1rem; bottom: calc(var(--wf28a-bnav-h) + 1rem);
  width: 40px; height: 40px; border-radius: 50%; background: var(--wf28a-primary);
  color: var(--wf28a-white); border: none; font-size: 1.8rem; cursor: pointer; z-index: 900;
  box-shadow: var(--wf28a-shadow);
}

/* ============== Desktop: hide bottom nav ============== */
@media (min-width: 769px) {
  .wf28a-bnav { display: none; }
  .wf28a-main { padding-bottom: 2rem; }
  .wf28a-totop { display: none; }
}

/* ============== Desktop nav visible alongside header ============== */
@media (min-width: 769px) {
  .wf28a-header { max-width: 430px; }
  body { max-width: 430px; }
}
