/* ============================================================
   kuwin02.sbs - theme.css
   All classes use prefix "wb6d3-" for namespace isolation.
   Palette: #FA8072 (primary/accent) | #0E1621 (dark bg)
   Mobile-first. rem units, root font 62.5%.
   ============================================================ */

:root {
  --wb6d3-primary: #FA8072;
  --wb6d3-primary-dark: #e8675a;
  --wb6d3-bg: #0E1621;
  --wb6d3-bg-2: #14202e;
  --wb6d3-bg-3: #1b293a;
  --wb6d3-text: #f3f5f8;
  --wb6d3-text-muted: #9aa7b8;
  --wb6d3-gold: #f5c451;
  --wb6d3-green: #4cd0a0;
  --wb6d3-radius: 12px;
  --wb6d3-header-h: 56px;
  --wb6d3-bnav-h: 62px;
  --wb6d3-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

* { 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;
  background: var(--wb6d3-bg);
  color: var(--wb6d3-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

.wb6d3-container { width: 100%; padding: 0 1.2rem; }
.wb6d3-wrapper { max-width: 430px; margin: 0 auto; }

/* ---------- Header ---------- */
.wb6d3-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--wb6d3-header-h);
  background: linear-gradient(90deg, #0E1621, #1b293a);
  border-bottom: 1px solid rgba(250, 128, 114, 0.25);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  max-width: 430px; margin: 0 auto;
}
.wb6d3-logo { display: flex; align-items: center; gap: 0.6rem; }
.wb6d3-logo img { width: 28px; height: 28px; border-radius: 6px; }
.wb6d3-logo .wb6d3-brand {
  font-size: 1.7rem; font-weight: 800; color: var(--wb6d3-primary);
  letter-spacing: 0.5px;
}
.wb6d3-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.wb6d3-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.1rem; border-radius: 20px; font-size: 1.3rem;
  font-weight: 700; border: none; cursor: pointer; min-height: 36px;
  transition: transform 0.15s, background 0.2s;
}
.wb6d3-btn:active { transform: scale(0.94); }
.wb6d3-btn-login {
  background: transparent; color: var(--wb6d3-text);
  border: 1px solid var(--wb6d3-text-muted);
}
.wb6d3-btn-register {
  background: var(--wb6d3-primary); color: #fff;
  box-shadow: 0 3px 10px rgba(250, 128, 114, 0.4);
}
.wb6d3-btn-register:hover { background: var(--wb6d3-primary-dark); }

.wb6d3-menu-btn {
  background: transparent; border: none; color: var(--wb6d3-text);
  font-size: 1.8rem; cursor: pointer; padding: 0.4rem 0.6rem;
  min-width: 40px; min-height: 40px;
}
.wb6d3-menu-btn-active { color: var(--wb6d3-primary); }

/* ---------- Mobile expandable menu ---------- */
.wb6d3-mobile-menu {
  position: fixed; top: var(--wb6d3-header-h); left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: var(--wb6d3-bg-2);
  border-bottom: 1px solid rgba(250, 128, 114, 0.2);
  max-height: 0; overflow: hidden; z-index: 9999;
  transition: max-height 0.3s ease;
}
.wb6d3-menu-open { max-height: 480px; box-shadow: var(--wb6d3-shadow); }
.wb6d3-mobile-menu a {
  display: block; padding: 1.1rem 1.4rem; color: var(--wb6d3-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 1.4rem;
}
.wb6d3-mobile-menu a:hover, .wb6d3-mobile-menu a:active {
  background: var(--wb6d3-bg-3); color: var(--wb6d3-primary);
}

/* ---------- Main content ---------- */
.wb6d3-main { padding-top: calc(var(--wb6d3-header-h) + 4px); }

/* ---------- Carousel ---------- */
.wb6d3-carousel {
  position: relative; width: 100%; height: 180px;
  border-radius: var(--wb6d3-radius); overflow: hidden; margin: 1rem 0;
}
.wb6d3-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s;
  cursor: pointer;
}
.wb6d3-slide img { width: 100%; height: 100%; object-fit: cover; }
.wb6d3-slide-active { opacity: 1; }
.wb6d3-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: rgba(14, 22, 33, 0.75); padding: 0.5rem 0.9rem;
  border-radius: 8px; font-size: 1.3rem; font-weight: 700; color: #fff;
}
.wb6d3-dots {
  position: absolute; bottom: 0.6rem; right: 1rem; z-index: 3;
  display: flex; gap: 0.4rem;
}
.wb6d3-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); cursor: pointer;
}
.wb6d3-dot-active { background: var(--wb6d3-primary); }

/* ---------- Section titles ---------- */
.wb6d3-section { padding: 1.4rem 0; }
.wb6d3-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--wb6d3-primary);
  margin-bottom: 0.8rem; padding-left: 0.8rem;
  border-left: 4px solid var(--wb6d3-primary);
}
.wb6d3-h1 {
  font-size: 2rem; font-weight: 800; color: #fff;
  margin: 1rem 0; line-height: 1.35;
}
.wb6d3-h1 span { color: var(--wb6d3-primary); }
.wb6d3-subtitle { color: var(--wb6d3-text-muted); margin-bottom: 1rem; font-size: 1.35rem; }

/* ---------- Category tabs ---------- */
.wb6d3-cattabs {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.wb6d3-cattabs button {
  flex: 0 0 auto; padding: 0.5rem 1rem; border-radius: 16px;
  background: var(--wb6d3-bg-2); color: var(--wb6d3-text);
  border: 1px solid rgba(255, 255, 255, 0.08); font-size: 1.2rem;
  cursor: pointer; white-space: nowrap;
}
.wb6d3-cattabs button:hover { color: var(--wb6d3-primary); border-color: var(--wb6d3-primary); }

/* ---------- Game grid ---------- */
.wb6d3-game-cat { margin-bottom: 1.6rem; }
.wb6d3-cat-title {
  font-size: 1.5rem; font-weight: 700; color: var(--wb6d3-gold);
  margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem;
}
.wb6d3-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.wb6d3-game-card {
  background: var(--wb6d3-bg-2); border-radius: 10px; padding: 0.4rem;
  text-align: center; cursor: pointer; transition: transform 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.wb6d3-game-card:active { transform: scale(0.95); }
.wb6d3-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
}
.wb6d3-game-name {
  font-size: 1.05rem; color: var(--wb6d3-text); margin-top: 0.4rem;
  line-height: 1.25; min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Info / content blocks ---------- */
.wb6d3-card {
  background: var(--wb6d3-bg-2); border-radius: var(--wb6d3-radius);
  padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--wb6d3-shadow);
}
.wb6d3-card h2 {
  font-size: 1.6rem; color: var(--wb6d3-primary); margin-bottom: 0.6rem;
}
.wb6d3-card h3 { font-size: 1.4rem; color: var(--wb6d3-gold); margin: 0.6rem 0 0.4rem; }
.wb6d3-card p { margin-bottom: 0.6rem; color: var(--wb6d3-text); }
.wb6d3-card ul { padding-left: 1.4rem; margin-bottom: 0.6rem; }
.wb6d3-card li { margin-bottom: 0.3rem; }

.wb6d3-promo-link {
  color: var(--wb6d3-primary); font-weight: 700; cursor: pointer;
}
.wb6d3-promo-link:hover { text-decoration: underline; }

.wb6d3-play-btn {
  display: block; width: 100%; text-align: center;
  background: linear-gradient(90deg, var(--wb6d3-primary), var(--wb6d3-primary-dark));
  color: #fff; font-weight: 800; font-size: 1.5rem;
  padding: 1rem; border-radius: 10px; border: none; cursor: pointer;
  margin: 1rem 0; box-shadow: 0 4px 14px rgba(250, 128, 114, 0.45);
}
.wb6d3-play-btn:active { transform: scale(0.97); }

/* ---------- Testimonials ---------- */
.wb6d3-testimonials { display: grid; gap: 0.7rem; }
.wb6d3-testimonial {
  background: var(--wb6d3-bg-3); border-radius: 10px; padding: 0.9rem;
  border-left: 3px solid var(--wb6d3-green);
}
.wb6d3-testimonial .wb6d3-t-name { font-weight: 700; color: var(--wb6d3-gold); font-size: 1.2rem; }
.wb6d3-testimonial .wb6d3-t-stars { color: var(--wb6d3-gold); font-size: 1.1rem; }

/* ---------- Payment ---------- */
.wb6d3-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.wb6d3-pay-chip {
  background: var(--wb6d3-bg-3); border: 1px solid rgba(255,255,255,0.08);
  padding: 0.4rem 0.8rem; border-radius: 14px; font-size: 1.15rem; color: var(--wb6d3-text);
}

/* ---------- Winners ---------- */
.wb6d3-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--wb6d3-bg-3); padding: 0.6rem 0.9rem; border-radius: 8px;
  margin-bottom: 0.5rem; font-size: 1.2rem;
}
.wb6d3-winner .wb6d3-w-amt { color: var(--wb6d3-green); font-weight: 800; }

/* ---------- App download CTA ---------- */
.wb6d3-app-cta {
  background: linear-gradient(135deg, #1b293a, #0E1621);
  border: 1px solid var(--wb6d3-primary); border-radius: var(--wb6d3-radius);
  padding: 1.2rem; text-align: center; margin: 1rem 0;
}
.wb6d3-app-cta h3 { color: var(--wb6d3-primary); margin-bottom: 0.5rem; }
.wb6d3-app-cta p { color: var(--wb6d3-text-muted); margin-bottom: 0.8rem; }
.wb6d3-app-cta .wb6d3-btn { margin: 0 0.3rem; }

/* ---------- Footer ---------- */
.wb6d3-footer {
  background: var(--wb6d3-bg-2); padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.4rem; border-top: 1px solid rgba(250, 128, 114, 0.2);
}
.wb6d3-footer p { color: var(--wb6d3-text-muted); font-size: 1.2rem; margin-bottom: 0.8rem; }
.wb6d3-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.8rem 0;
}
.wb6d3-footer-links a { color: var(--wb6d3-text); font-size: 1.2rem; }
.wb6d3-footer-links a:hover { color: var(--wb6d3-primary); }
.wb6d3-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0;
}
.wb6d3-footer-promo button {
  background: var(--wb6d3-primary); color: #fff; border: none;
  padding: 0.5rem 0.9rem; border-radius: 16px; font-size: 1.15rem;
  font-weight: 700; cursor: pointer;
}
.wb6d3-footer-copy { font-size: 1.1rem; color: var(--wb6d3-text-muted); margin-top: 0.6rem; }

/* ---------- Bottom nav (mobile only) ---------- */
.wb6d3-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--wb6d3-bnav-h);
  background: linear-gradient(180deg, #14202e, #0E1621);
  border-top: 1px solid rgba(250, 128, 114, 0.3);
  display: flex; justify-content: space-around; align-items: center;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}
.wb6d3-bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; min-width: 60px; min-height: 60px;
  background: none; border: none; cursor: pointer; color: var(--wb6d3-text-muted);
  text-decoration: none; transition: color 0.2s, transform 0.15s;
}
.wb6d3-bnav-item .wb6d3-bnav-icon { font-size: 22px; line-height: 1; }
.wb6d3-bnav-item .wb6d3-bnav-label { font-size: 1rem; line-height: 1; }
.wb6d3-bnav-item:active { transform: scale(0.9); }
.wb6d3-bnav-active { color: var(--wb6d3-primary); }
.wb6d3-bnav-active .wb6d3-bnav-icon { color: var(--wb6d3-primary); }

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

/* ---------- Desktop: hide bottom nav, show desktop nav ---------- */
@media (min-width: 769px) {
  .wb6d3-bnav { display: none; }
  body { max-width: 768px; }
  .wb6d3-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Mobile bottom padding clearance ---------- */
@media (max-width: 768px) {
  .wb6d3-main { padding-bottom: calc(var(--wb6d3-bnav-h) + 16px); }
  .wb6d3-footer { padding-bottom: calc(var(--wb6d3-bnav-h) + 16px); }
}
