/**
 * 7p77 Core Stylesheet
 * All classes use prefix "w29d2-" for namespace isolation
 * Color palette: #8FBC8F | #228B22 | #DDA0DD | #BA55D3 | #212F3D
 * Mobile-first design, max-width: 430px
 */

/* ========== CSS Variables ========== */
:root {
  --w29d2-primary: #228B22;
  --w29d2-primary-light: #8FBC8F;
  --w29d2-accent: #BA55D3;
  --w29d2-accent-light: #DDA0DD;
  --w29d2-bg: #212F3D;
  --w29d2-bg-light: #2C3E50;
  --w29d2-bg-card: #1A252F;
  --w29d2-text: #F0F0F0;
  --w29d2-text-muted: #B0BEC5;
  --w29d2-border: #34495E;
  --w29d2-gold: #FFD700;
  --w29d2-radius: 10px;
  --w29d2-radius-sm: 6px;
  --w29d2-shadow: 0 2px 12px rgba(0,0,0,0.3);
  font-size: 62.5%;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--w29d2-bg);
  color: var(--w29d2-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--w29d2-primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ========== Header ========== */
.w29d2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--w29d2-bg) 0%, var(--w29d2-bg-light) 100%);
  border-bottom: 2px solid var(--w29d2-primary);
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.w29d2-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w29d2-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.w29d2-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w29d2-gold);
  letter-spacing: 1px;
}
.w29d2-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w29d2-btn-register {
  background: var(--w29d2-primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--w29d2-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.w29d2-btn-register:hover { background: #1a7a1a; transform: scale(1.05); }
.w29d2-btn-login {
  background: transparent;
  color: var(--w29d2-primary-light);
  border: 1.5px solid var(--w29d2-primary-light);
  padding: 7px 14px;
  border-radius: var(--w29d2-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.w29d2-btn-login:hover { background: var(--w29d2-primary-light); color: var(--w29d2-bg); }
.w29d2-menu-toggle {
  background: none;
  border: none;
  color: var(--w29d2-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* ========== Mobile Menu ========== */
.w29d2-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  z-index: 9999;
  background: var(--w29d2-bg);
  border-left: 2px solid var(--w29d2-primary);
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.w29d2-menu-active { right: 0 !important; }
.w29d2-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.w29d2-overlay-active { display: block !important; }
.w29d2-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--w29d2-text);
  font-size: 2.4rem;
  cursor: pointer;
}
.w29d2-menu-links { margin-top: 2rem; }
.w29d2-menu-links a {
  display: block;
  padding: 1.2rem 1rem;
  color: var(--w29d2-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--w29d2-border);
  transition: all 0.2s;
}
.w29d2-menu-links a:hover {
  color: var(--w29d2-primary-light);
  padding-left: 1.5rem;
  background: var(--w29d2-bg-light);
}

/* ========== Main Content ========== */
.w29d2-main {
  margin-top: 56px;
  padding: 1rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .w29d2-main { padding-bottom: 80px; }
}

/* ========== Carousel ========== */
.w29d2-carousel {
  position: relative;
  border-radius: var(--w29d2-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--w29d2-shadow);
  cursor: pointer;
}
.w29d2-slide {
  display: none;
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.w29d2-slide-active { display: block; }
.w29d2-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.w29d2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
}
.w29d2-dot-active { background: var(--w29d2-gold); transform: scale(1.3); }

/* ========== Section Titles ========== */
.w29d2-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w29d2-gold);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--w29d2-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.w29d2-section-title i, .w29d2-section-title .material-icons {
  font-size: 2rem;
  color: var(--w29d2-accent);
}

/* ========== Game Grid ========== */
.w29d2-cat-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w29d2-primary-light);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--w29d2-accent);
}
.w29d2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}
.w29d2-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--w29d2-radius-sm);
  padding: 4px;
  background: var(--w29d2-bg-card);
}
.w29d2-game-item:hover { transform: scale(1.05); background: var(--w29d2-bg-light); }
.w29d2-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w29d2-radius-sm);
  object-fit: cover;
  margin-bottom: 4px;
}
.w29d2-game-name {
  font-size: 1rem;
  color: var(--w29d2-text-muted);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Content Cards ========== */
.w29d2-card {
  background: var(--w29d2-bg-card);
  border-radius: var(--w29d2-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--w29d2-border);
  box-shadow: var(--w29d2-shadow);
}
.w29d2-card h2 {
  font-size: 1.6rem;
  color: var(--w29d2-gold);
  margin-bottom: 1rem;
}
.w29d2-card h3 {
  font-size: 1.4rem;
  color: var(--w29d2-primary-light);
  margin: 1rem 0 0.5rem;
}
.w29d2-card p {
  color: var(--w29d2-text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
.w29d2-card ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.w29d2-card ul li {
  color: var(--w29d2-text-muted);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}
.w29d2-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--w29d2-primary);
}

/* ========== Promo Buttons ========== */
.w29d2-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--w29d2-primary) 0%, #1a7a1a 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--w29d2-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
}
.w29d2-promo-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(34,139,34,0.4); }
.w29d2-promo-link {
  color: var(--w29d2-accent-light);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 1px dashed var(--w29d2-accent-light);
}
.w29d2-promo-link:hover { color: var(--w29d2-accent); }

/* ========== Footer ========== */
.w29d2-footer {
  background: var(--w29d2-bg-card);
  border-top: 2px solid var(--w29d2-primary);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 2rem;
}
.w29d2-footer-brand {
  color: var(--w29d2-text-muted);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.w29d2-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.w29d2-footer-links a {
  color: var(--w29d2-primary-light);
  font-size: 1.1rem;
  padding: 4px 8px;
  transition: color 0.2s;
}
.w29d2-footer-links a:hover { color: var(--w29d2-gold); }
.w29d2-footer-copy {
  color: #607D8B;
  font-size: 1rem;
  margin-top: 1rem;
}

/* ========== Bottom Navigation ========== */
.w29d2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--w29d2-bg-light) 0%, var(--w29d2-bg) 100%);
  border-top: 2px solid var(--w29d2-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 4px;
}
.w29d2-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--w29d2-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px;
  border-radius: 8px;
  gap: 2px;
}
.w29d2-bottom-btn:hover {
  color: var(--w29d2-gold);
  background: rgba(255,215,0,0.08);
}
.w29d2-bottom-btn:active { transform: scale(0.92); }
.w29d2-bottom-btn i,
.w29d2-bottom-btn .material-icons,
.w29d2-bottom-btn ion-icon,
.w29d2-bottom-btn bi {
  font-size: 22px;
}
.w29d2-bottom-btn span {
  font-size: 1rem;
  line-height: 1.2;
}
.w29d2-bottom-active {
  color: var(--w29d2-gold) !important;
  position: relative;
}
.w29d2-bottom-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--w29d2-gold);
  border-radius: 0 0 3px 3px;
}

@media (min-width: 769px) {
  .w29d2-bottom-nav { display: none; }
}

/* ========== Utility ========== */
.w29d2-text-center { text-align: center; }
.w29d2-mt-1 { margin-top: 1rem; }
.w29d2-mb-1 { margin-bottom: 1rem; }
.w29d2-hidden { display: none; }
.w29d2-tag {
  display: inline-block;
  background: var(--w29d2-accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 1rem;
  margin: 2px;
}
.w29d2-highlight {
  color: var(--w29d2-gold);
  font-weight: 600;
}
.w29d2-divider {
  border: none;
  border-top: 1px solid var(--w29d2-border);
  margin: 1.5rem 0;
}

/* ========== FAQ Section ========== */
.w29d2-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--w29d2-border);
  border-radius: var(--w29d2-radius-sm);
  overflow: hidden;
}
.w29d2-faq-q {
  background: var(--w29d2-bg-light);
  padding: 1rem;
  font-weight: 600;
  color: var(--w29d2-primary-light);
  cursor: pointer;
}
.w29d2-faq-a {
  padding: 1rem;
  color: var(--w29d2-text-muted);
  line-height: 1.6;
}

/* ========== Winner Strip ========== */
.w29d2-winners {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 0.5rem 0;
}
.w29d2-winner-card {
  min-width: 140px;
  background: var(--w29d2-bg-light);
  border-radius: var(--w29d2-radius-sm);
  padding: 10px;
  text-align: center;
  border: 1px solid var(--w29d2-border);
}
.w29d2-winner-name {
  font-size: 1.1rem;
  color: var(--w29d2-text);
  font-weight: 600;
}
.w29d2-winner-amount {
  font-size: 1.3rem;
  color: var(--w29d2-gold);
  font-weight: 700;
}
.w29d2-winner-game {
  font-size: 1rem;
  color: var(--w29d2-text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 430px) {
  .w29d2-game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 431px) and (max-width: 768px) {
  .w29d2-game-grid { grid-template-columns: repeat(4, 1fr); }
}
