/**
 * Wapol - Theme Stylesheet
 * Prefix: v221-
 * Color palette: #8FBC8F | #262626 | #F8F9FA | #228B22
 * Dark bg, light text, green accents
 */

:root {
  --v221-primary: #228B22;
  --v221-primary-dark: #1a6b1a;
  --v221-primary-light: #8FBC8F;
  --v221-bg: #262626;
  --v221-bg-dark: #1a1a1a;
  --v221-bg-card: #2d2d2d;
  --v221-text: #F8F9FA;
  --v221-text-muted: #a0a0a0;
  --v221-accent: #8FBC8F;
  --v221-gold: #DAA520;
  --v221-border: #3a3a3a;
  --v221-shadow: rgba(0, 0, 0, 0.3);
  --v221-radius: 10px;
  --v221-radius-sm: 6px;
}

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

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

/* Header */
.v221-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(135deg, var(--v221-bg-dark), var(--v221-bg));
  border-bottom: 2px solid var(--v221-primary);
  padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.v221-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.v221-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.v221-logo-area span { font-size: 1.6rem; font-weight: 800; color: var(--v221-accent); letter-spacing: 0.5px; }
.v221-header-btns { display: flex; gap: 0.5rem; align-items: center; }
.v221-btn-reg {
  background: linear-gradient(135deg, var(--v221-primary), var(--v221-primary-light));
  color: #fff; border: none; padding: 0.5rem 1.2rem; border-radius: 20px;
  font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.v221-btn-reg:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(34,139,34,0.4); }
.v221-btn-login {
  background: transparent; color: var(--v221-accent); border: 1.5px solid var(--v221-accent);
  padding: 0.5rem 1rem; border-radius: 20px; font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.v221-btn-login:hover { background: rgba(143,188,143,0.15); }
.v221-menu-btn {
  background: none; border: none; color: var(--v221-text); font-size: 2rem; cursor: pointer;
  padding: 0.4rem; line-height: 1;
}

/* Mobile Menu */
.v221-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.v221-mobile-menu {
  display: none; flex-direction: column; position: fixed; top: 0; right: 0;
  width: 260px; height: 100%; background: var(--v221-bg-dark); z-index: 9999;
  padding: 2rem 1.5rem; transform: translateX(100%); transition: transform 0.3s ease;
}
.v221-mobile-menu.v221-menu-active { transform: translateX(0); display: flex; }
.v221-mobile-menu a {
  display: block; padding: 1rem 0; color: var(--v221-text); font-size: 1.4rem;
  border-bottom: 1px solid var(--v221-border); transition: color 0.2s;
}
.v221-mobile-menu a:hover { color: var(--v221-primary); }
.v221-menu-close { background: none; border: none; color: var(--v221-text); font-size: 2.2rem; cursor: pointer; margin-bottom: 1rem; text-align: right; }

/* Main Content */
.v221-main { padding-top: 5.5rem; }

/* Carousel */
.v221-carousel { position: relative; overflow: hidden; border-radius: var(--v221-radius); margin: 1rem 0; }
.v221-slide { display: none; width: 100%; cursor: pointer; }
.v221-slide-active { display: block; animation: v221-fadeIn 0.5s ease; }
.v221-slide img { width: 100%; border-radius: var(--v221-radius); }
.v221-carousel-dots { display: flex; justify-content: center; gap: 0.6rem; padding: 0.8rem 0; }
.v221-slide-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--v221-border);
  cursor: pointer; transition: all 0.3s;
}
.v221-dot-active { background: var(--v221-primary); transform: scale(1.3); }

/* Section Titles */
.v221-section-title {
  font-size: 1.8rem; font-weight: 800; margin: 1.5rem 0 1rem;
  padding-left: 1rem; border-left: 3px solid var(--v221-primary);
  color: var(--v221-text);
}
.v221-section-title span { color: var(--v221-accent); }

/* Game Grid */
.v221-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
  padding: 0.5rem 0;
}
.v221-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  background: var(--v221-bg-card); border-radius: var(--v221-radius-sm); padding: 0.6rem;
}
.v221-game-item:hover { transform: translateY(-3px); box-shadow: 0 4px 12px var(--v221-shadow); }
.v221-game-item img { width: 100%; aspect-ratio: 1; border-radius: var(--v221-radius-sm); margin-bottom: 0.4rem; }
.v221-game-name {
  font-size: 1rem; color: var(--v221-text-muted); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; line-height: 1.3;
}

/* Category Label */
.v221-cat-label {
  font-size: 1.4rem; font-weight: 700; color: var(--v221-primary-light);
  margin: 1.2rem 0 0.6rem; display: flex; align-items: center; gap: 0.5rem;
}

/* Cards & Content */
.v221-card {
  background: var(--v221-bg-card); border-radius: var(--v221-radius);
  padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--v221-border);
}
.v221-card h3 { font-size: 1.5rem; color: var(--v221-accent); margin-bottom: 0.6rem; }
.v221-card p { font-size: 1.3rem; color: var(--v221-text-muted); line-height: 1.8; }

/* Promo Buttons */
.v221-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--v221-primary), #2ea82e);
  color: #fff; padding: 0.7rem 1.8rem; border-radius: 25px; font-weight: 700;
  font-size: 1.3rem; cursor: pointer; border: none; transition: all 0.2s; text-align: center;
}
.v221-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(34,139,34,0.5); }
.v221-promo-text { color: var(--v221-primary); font-weight: 700; cursor: pointer; }
.v221-promo-text:hover { text-decoration: underline; }

/* CTA Banner */
.v221-cta-banner {
  background: linear-gradient(135deg, var(--v221-primary-dark), var(--v221-primary));
  border-radius: var(--v221-radius); padding: 1.5rem; text-align: center; margin: 1.5rem 0;
}
.v221-cta-banner h3 { font-size: 1.6rem; color: #fff; margin-bottom: 0.5rem; }
.v221-cta-banner p { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.v221-cta-banner .v221-promo-btn {
  background: #fff; color: var(--v221-primary); font-size: 1.4rem;
  padding: 0.8rem 2.5rem;
}

/* Testimonials */
.v221-testimonial {
  background: var(--v221-bg-card); border-radius: var(--v221-radius);
  padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--v221-primary);
}
.v221-testimonial p { font-size: 1.2rem; color: var(--v221-text-muted); font-style: italic; }
.v221-testimonial strong { color: var(--v221-accent); font-size: 1.1rem; }

/* Features Grid */
.v221-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.v221-feature-item {
  background: var(--v221-bg-card); border-radius: var(--v221-radius-sm);
  padding: 1rem; text-align: center; border: 1px solid var(--v221-border);
}
.v221-feature-item .material-icons { font-size: 2.8rem; color: var(--v221-primary); margin-bottom: 0.4rem; }
.v221-feature-item h4 { font-size: 1.2rem; color: var(--v221-text); margin-bottom: 0.3rem; }
.v221-feature-item p { font-size: 1rem; color: var(--v221-text-muted); }

/* Payment Methods */
.v221-payment-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.v221-payment-item {
  background: var(--v221-bg-card); padding: 0.6rem 1.2rem; border-radius: 20px;
  border: 1px solid var(--v221-border); font-size: 1.1rem; color: var(--v221-text-muted);
}

/* Winners */
.v221-winner-row {
  display: flex; justify-content: space-between; padding: 0.6rem 0;
  border-bottom: 1px solid var(--v221-border); font-size: 1.2rem;
}
.v221-winner-name { color: var(--v221-accent); font-weight: 600; }
.v221-winner-amount { color: var(--v221-gold); font-weight: 700; }
.v221-winner-game { color: var(--v221-text-muted); font-size: 1rem; }

/* Footer */
.v221-footer {
  background: var(--v221-bg-dark); padding: 2rem 1rem 1.5rem;
  border-top: 2px solid var(--v221-primary); margin-top: 2rem;
}
.v221-footer-brand { text-align: center; margin-bottom: 1.2rem; }
.v221-footer-brand p { font-size: 1.1rem; color: var(--v221-text-muted); line-height: 1.6; }
.v221-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1rem; }
.v221-footer-links a {
  background: var(--v221-bg-card); padding: 0.4rem 0.8rem; border-radius: 15px;
  font-size: 1rem; color: var(--v221-text-muted); border: 1px solid var(--v221-border);
}
.v221-footer-links a:hover { color: var(--v221-primary); border-color: var(--v221-primary); }
.v221-footer-copy { text-align: center; font-size: 1rem; color: #666; padding-top: 0.8rem; border-top: 1px solid var(--v221-border); }

/* Bottom Navigation */
.v221-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-top: 2px solid var(--v221-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.3rem;
}
.v221-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 48px; background: none; border: none;
  color: var(--v221-text-muted); cursor: pointer; transition: all 0.2s; padding: 0.4rem;
}
.v221-bottom-btn i, .v221-bottom-btn .material-icons { font-size: 2.2rem; margin-bottom: 0.2rem; }
.v221-bottom-btn span { font-size: 1rem; }
.v221-bottom-btn:hover { color: var(--v221-primary); }
.v221-bottom-active { color: var(--v221-primary) !important; }
.v221-bottom-active i, .v221-bottom-active .material-icons { color: var(--v221-primary-light); }

/* Help Page Styles */
.v221-help-section { margin-bottom: 1.5rem; }
.v221-help-section h2 {
  font-size: 1.6rem; color: var(--v221-accent); margin-bottom: 0.6rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--v221-border);
}
.v221-help-section p, .v221-help-section li {
  font-size: 1.3rem; color: var(--v221-text-muted); line-height: 1.8;
}
.v221-help-section ul { padding-left: 1.5rem; }
.v221-help-section li { margin-bottom: 0.4rem; }

/* FAQ Accordion */
.v221-faq-item { border-bottom: 1px solid var(--v221-border); }
.v221-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--v221-text);
  padding: 0.8rem 0; cursor: pointer; display: flex; justify-content: space-between;
}
.v221-faq-a {
  font-size: 1.2rem; color: var(--v221-text-muted); line-height: 1.7;
  padding: 0 0 0.8rem; display: none;
}

/* Animation */
@keyframes v221-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes v221-slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .v221-bottom-nav { display: none; }
}
/* Mobile: add bottom padding */
@media (max-width: 768px) {
  .v221-main { padding-bottom: 75px; }
}
/* Responsive adjustments */
@media (max-width: 360px) {
  .v221-game-grid { grid-template-columns: repeat(3, 1fr); }
  .v221-features-grid { grid-template-columns: 1fr; }
}
