/**
 * Xber Theme Stylesheet
 * File: css/theme-5d3b.css
 * Prefix: w5d3b-
 * Palette: #696969, #2C2C2C, #BDC3C7, #DEE2E6, #2F2F2F
 */

/* === CSS Variables === */
:root {
  --w5d3b-primary: #696969;
  --w5d3b-bg: #2C2C2C;
  --w5d3b-text: #BDC3C7;
  --w5d3b-light: #DEE2E6;
  --w5d3b-dark: #2F2F2F;
  --w5d3b-accent: #8B9467;
  --w5d3b-accent2: #C9A96E;
  --w5d3b-gold: #D4AF37;
  --w5d3b-radius: 8px;
  --w5d3b-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --w5d3b-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  color: var(--w5d3b-text);
  background: var(--w5d3b-bg);
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w5d3b-accent2); text-decoration: none; }
a:hover { color: var(--w5d3b-gold); }
img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.w5d3b-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--w5d3b-dark), var(--w5d3b-bg));
  border-bottom: 1px solid rgba(189, 195, 199, 0.15);
  max-width: 430px; margin: 0 auto;
  padding: 0 1.2rem; height: 5.6rem;
  display: flex; align-items: center; justify-content: space-between;
}
.w5d3b-logo-area {
  display: flex; align-items: center; gap: 0.8rem;
}
.w5d3b-logo-area img { width: 3rem; height: 3rem; border-radius: 6px; }
.w5d3b-logo-area span {
  font-size: 2rem; font-weight: 700; color: var(--w5d3b-light);
  letter-spacing: 1px;
}
.w5d3b-header-actions {
  display: flex; align-items: center; gap: 0.6rem;
}
.w5d3b-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem; border-radius: var(--w5d3b-radius);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--w5d3b-transition);
  min-height: 3.6rem; min-width: 4.4rem;
}
.w5d3b-btn-primary {
  background: linear-gradient(135deg, var(--w5d3b-accent), #6B7A3E);
  color: #fff;
}
.w5d3b-btn-primary:hover { background: linear-gradient(135deg, #6B7A3E, var(--w5d3b-accent)); transform: scale(1.05); }
.w5d3b-btn-secondary {
  background: transparent; color: var(--w5d3b-light);
  border: 1px solid var(--w5d3b-primary);
}
.w5d3b-btn-secondary:hover { border-color: var(--w5d3b-accent2); color: var(--w5d3b-accent2); }
.w5d3b-menu-toggle {
  background: none; border: none; color: var(--w5d3b-light);
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem;
}

/* === Mobile Menu === */
.w5d3b-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--w5d3b-dark); z-index: 9999;
  transition: right 0.35s ease; padding-top: 6rem;
  border-left: 1px solid rgba(189, 195, 199, 0.1);
}
.w5d3b-menu-active { right: 0; }
.w5d3b-mobile-menu a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.4rem 2rem; color: var(--w5d3b-text);
  font-size: 1.5rem; border-bottom: 1px solid rgba(189, 195, 199, 0.08);
  transition: var(--w5d3b-transition);
}
.w5d3b-mobile-menu a:hover { background: rgba(189, 195, 199, 0.08); color: var(--w5d3b-accent2); }
.w5d3b-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: var(--w5d3b-transition);
}
.w5d3b-overlay-active { opacity: 1; visibility: visible; }

/* === Main Content === */
.w5d3b-main { padding-top: 5.6rem; }

/* === Carousel === */
.w5d3b-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 0 0 var(--w5d3b-radius) var(--w5d3b-radius);
}
.w5d3b-slide {
  display: none; width: 100%; cursor: pointer;
}
.w5d3b-slide-active { display: block; }
.w5d3b-slide img { width: 100%; height: auto; }
.w5d3b-dots {
  position: absolute; bottom: 1rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 0.6rem;
}
.w5d3b-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(189, 195, 199, 0.4); cursor: pointer;
  transition: var(--w5d3b-transition); border: none;
}
.w5d3b-dot-active { background: var(--w5d3b-accent2); transform: scale(1.2); }

/* === Sections === */
.w5d3b-section {
  padding: 2.4rem 1.6rem;
}
.w5d3b-section-title {
  font-size: 2rem; font-weight: 700; color: var(--w5d3b-light);
  margin-bottom: 1.6rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--w5d3b-accent);
}

/* === Game Grid === */
.w5d3b-game-category-title {
  font-size: 1.6rem; font-weight: 600; color: var(--w5d3b-accent2);
  margin: 1.6rem 0 1rem; padding-left: 0.8rem;
  border-left: 3px solid var(--w5d3b-accent);
}
.w5d3b-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.w5d3b-game-item {
  text-align: center; cursor: pointer;
  transition: var(--w5d3b-transition);
}
.w5d3b-game-item:hover { transform: translateY(-3px); }
.w5d3b-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--w5d3b-radius);
  border: 1px solid rgba(189, 195, 199, 0.12);
}
.w5d3b-game-item span {
  display: block; font-size: 1.1rem; color: var(--w5d3b-text);
  margin-top: 0.4rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* === Content Cards === */
.w5d3b-card {
  background: var(--w5d3b-dark); border-radius: var(--w5d3b-radius);
  padding: 2rem; margin-bottom: 1.6rem;
  border: 1px solid rgba(189, 195, 199, 0.08);
}
.w5d3b-card h3 {
  font-size: 1.7rem; color: var(--w5d3b-light); margin-bottom: 1rem;
}
.w5d3b-card p {
  font-size: 1.4rem; line-height: 1.6; color: var(--w5d3b-text);
  margin-bottom: 1rem;
}

/* === Promo Link Styles === */
.w5d3b-promo-text {
  color: var(--w5d3b-accent2); font-weight: 700; cursor: pointer;
  text-decoration: underline; transition: var(--w5d3b-transition);
}
.w5d3b-promo-text:hover { color: var(--w5d3b-gold); }
.w5d3b-promo-btn {
  display: block; width: 100%; padding: 1.2rem;
  background: linear-gradient(135deg, var(--w5d3b-accent), #6B7A3E);
  color: #fff; text-align: center; font-size: 1.6rem;
  font-weight: 700; border-radius: var(--w5d3b-radius);
  cursor: pointer; border: none; margin: 1.6rem 0;
  transition: var(--w5d3b-transition);
}
.w5d3b-promo-btn:hover { transform: scale(1.02); box-shadow: var(--w5d3b-shadow); }

/* === Footer === */
.w5d3b-footer {
  background: var(--w5d3b-dark); padding: 2.4rem 1.6rem 8rem;
  border-top: 1px solid rgba(189, 195, 199, 0.1);
}
.w5d3b-footer-brand {
  font-size: 1.3rem; color: var(--w5d3b-primary); line-height: 1.6;
  margin-bottom: 1.6rem;
}
.w5d3b-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.w5d3b-footer-links a {
  font-size: 1.2rem; color: var(--w5d3b-text); padding: 0.4rem 0.8rem;
  background: rgba(189, 195, 199, 0.06); border-radius: 4px;
  transition: var(--w5d3b-transition);
}
.w5d3b-footer-links a:hover { color: var(--w5d3b-accent2); background: rgba(189, 195, 199, 0.12); }
.w5d3b-footer-copy {
  font-size: 1.2rem; color: var(--w5d3b-primary); text-align: center;
  padding-top: 1.2rem; border-top: 1px solid rgba(189, 195, 199, 0.08);
}

/* === Bottom Navigation === */
.w5d3b-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--w5d3b-dark), #1A1A1A);
  border-top: 1px solid rgba(189, 195, 199, 0.12);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; max-width: 430px; margin: 0 auto;
}
.w5d3b-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.3rem;
  min-width: 6rem; min-height: 5.2rem;
  background: none; border: none; cursor: pointer;
  color: var(--w5d3b-primary); transition: var(--w5d3b-transition);
  padding: 0.4rem;
}
.w5d3b-bottom-btn:hover { color: var(--w5d3b-accent2); }
.w5d3b-bottom-btn-active { color: var(--w5d3b-accent2) !important; }
.w5d3b-bottom-btn-active .w5d3b-bnav-icon { transform: scale(1.1); }
.w5d3b-bnav-icon { font-size: 2.4rem; line-height: 1; }
.w5d3b-bnav-label { font-size: 1rem; font-weight: 500; }

/* === Utility Classes === */
.w5d3b-container { max-width: 430px; margin: 0 auto; padding: 0 1.6rem; }
.w5d3b-text-center { text-align: center; }
.w5d3b-mt-1 { margin-top: 0.8rem; }
.w5d3b-mt-2 { margin-top: 1.6rem; }
.w5d3b-mb-1 { margin-bottom: 0.8rem; }
.w5d3b-mb-2 { margin-bottom: 1.6rem; }
.w5d3b-hidden { display: none; }

/* === FAQ Accordion === */
.w5d3b-faq-item {
  border: 1px solid rgba(189, 195, 199, 0.1);
  border-radius: var(--w5d3b-radius); margin-bottom: 1rem;
  overflow: hidden;
}
.w5d3b-faq-q {
  padding: 1.2rem 1.6rem; font-weight: 600; color: var(--w5d3b-light);
  cursor: pointer; background: rgba(189, 195, 199, 0.04);
  font-size: 1.4rem;
}
.w5d3b-faq-a {
  padding: 1.2rem 1.6rem; color: var(--w5d3b-text);
  font-size: 1.3rem; line-height: 1.6;
}

/* === Feature List === */
.w5d3b-feature-list {
  list-style: none; padding: 0;
}
.w5d3b-feature-list li {
  padding: 1rem 0; border-bottom: 1px solid rgba(189, 195, 199, 0.06);
  font-size: 1.4rem; color: var(--w5d3b-text);
  display: flex; align-items: flex-start; gap: 0.8rem;
}
.w5d3b-feature-list li:last-child { border-bottom: none; }
.w5d3b-check-icon { color: var(--w5d3b-accent); font-size: 1.6rem; flex-shrink: 0; margin-top: 0.2rem; }

/* === Stats Grid === */
.w5d3b-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.w5d3b-stat-item {
  background: rgba(189, 195, 199, 0.04); padding: 1.2rem;
  border-radius: var(--w5d3b-radius); text-align: center;
  border: 1px solid rgba(189, 195, 199, 0.08);
}
.w5d3b-stat-num {
  font-size: 2rem; font-weight: 700; color: var(--w5d3b-accent2);
}
.w5d3b-stat-label {
  font-size: 1.1rem; color: var(--w5d3b-primary); margin-top: 0.4rem;
}

/* === Winner List === */
.w5d3b-winner-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(189, 195, 199, 0.06);
}
.w5d3b-winner-item:last-child { border-bottom: none; }
.w5d3b-winner-avatar {
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: var(--w5d3b-primary); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--w5d3b-light); font-weight: 700;
}
.w5d3b-winner-info { flex: 1; }
.w5d3b-winner-name { font-size: 1.3rem; color: var(--w5d3b-light); font-weight: 600; }
.w5d3b-winner-game { font-size: 1.1rem; color: var(--w5d3b-primary); }
.w5d3b-winner-amount { font-size: 1.5rem; color: var(--w5d3b-accent2); font-weight: 700; }

/* === Payment Icons === */
.w5d3b-payment-row {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.w5d3b-payment-item {
  background: rgba(189, 195, 199, 0.06); padding: 0.6rem 1.2rem;
  border-radius: 6px; font-size: 1.2rem; color: var(--w5d3b-text);
  border: 1px solid rgba(189, 195, 199, 0.1);
}

/* === Responsive === */
@media (min-width: 769px) {
  .w5d3b-bottom-nav { display: none; }
  .w5d3b-header { max-width: 100%; }
  body { max-width: 100%; }
  .w5d3b-footer { padding-bottom: 2.4rem; }
}
@media (max-width: 768px) {
  .w5d3b-main { padding-bottom: 8rem; }
  .w5d3b-footer { padding-bottom: 8rem; }
}
