/**
 * okfun ph - Core Stylesheet
 * All classes use w7802- prefix for namespace isolation
 * Color palette: #0D1117 (bg), #90EE90 (primary), #7FFF00 (accent),
 *   #66CDAA (secondary), #FF8A80 (highlight)
 * Mobile-first: max-width 430px, root font 62.5%
 */

:root {
  --w7802-primary: #90EE90;
  --w7802-bg: #0D1117;
  --w7802-text: #e6edf3;
  --w7802-accent: #7FFF00;
  --w7802-secondary: #66CDAA;
  --w7802-highlight: #FF8A80;
  --w7802-card-bg: #161b22;
  --w7802-border: #30363d;
  --w7802-muted: #8b949e;
  --w7802-dark: #010409;
  --w7802-header-h: 5.6rem;
  --w7802-bottom-h: 6.0rem;
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  background: var(--w7802-bg);
  color: var(--w7802-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.w7802-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--w7802-header-h);
  background: var(--w7802-dark); border-bottom: 1px solid var(--w7802-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000;
}
.w7802-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.w7802-logo-area img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.w7802-logo-area span { font-size: 1.6rem; font-weight: 700; color: var(--w7802-primary); }
.w7802-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w7802-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem; border-radius: 0.8rem; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; text-decoration: none;
  transition: all 0.2s ease; min-height: 3.6rem; min-width: 4.4rem;
}
.w7802-btn-register {
  background: var(--w7802-accent); color: var(--w7802-bg);
}
.w7802-btn-register:hover { background: #6ee000; transform: scale(1.05); }
.w7802-btn-login {
  background: transparent; color: var(--w7802-primary);
  border: 1px solid var(--w7802-primary);
}
.w7802-btn-login:hover { background: rgba(144,238,144,0.1); }
.w7802-menu-toggle {
  background: none; border: none; color: var(--w7802-primary);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  min-width: 4.4rem; min-height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu Overlay */
.w7802-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 9998; display: none;
}
.app780-overlay-active { display: block; }

/* Mobile Menu */
.w7802-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--w7802-dark); z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 0; overflow-y: auto;
}
.app780-menu-active { right: 0; }
.w7802-mobile-menu .w7802-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 1.6rem 1.6rem; border-bottom: 1px solid var(--w7802-border);
}
.w7802-mobile-menu .w7802-menu-header span { font-size: 1.6rem; font-weight: 700; color: var(--w7802-primary); }
.w7802-mobile-menu .w7802-menu-close {
  background: none; border: none; color: var(--w7802-text); font-size: 2rem; cursor: pointer;
}
.w7802-mobile-menu ul { list-style: none; padding: 1rem 0; }
.w7802-mobile-menu li a {
  display: block; padding: 1.2rem 2rem; color: var(--w7802-text);
  text-decoration: none; font-size: 1.4rem; transition: all 0.2s;
  border-left: 3px solid transparent;
}
.w7802-mobile-menu li a:hover {
  background: rgba(144,238,144,0.08); color: var(--w7802-primary);
  border-left-color: var(--w7802-accent);
}

/* Bottom Navigation */
.w7802-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--w7802-bottom-h);
  background: var(--w7802-dark); border-top: 1px solid var(--w7802-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0 0.4rem;
}
.w7802-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5.6rem; background: none; border: none;
  color: var(--w7802-muted); cursor: pointer; transition: all 0.2s;
  padding: 0.4rem; text-decoration: none;
}
.w7802-bottom-btn:hover, .w7802-bottom-btn:focus {
  color: var(--w7802-primary); transform: scale(1.08);
}
.w7802-bottom-btn.active { color: var(--w7802-accent); }
.w7802-bottom-btn i, .w7802-bottom-btn .material-icons {
  font-size: 2.4rem; margin-bottom: 0.2rem;
}
.w7802-bottom-btn span { font-size: 1rem; font-weight: 500; }

/* Main Content */
.w7802-main { padding-top: var(--w7802-header-h); }
@media (max-width: 768px) {
  .w7802-main { padding-bottom: 8rem; }
}

/* Carousel / Slider */
.w7802-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 1.2rem; margin: 1.2rem 0;
}
.w7802-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
}
.w7802-slide img { width: 100%; height: auto; display: block; border-radius: 1.2rem; }
.w7802-slide:first-child { display: block; }
.w7802-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem;
}
.w7802-dot {
  width: 1rem; height: 1rem; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: all 0.3s;
}
.app780-dot-active { background: var(--w7802-accent); transform: scale(1.3); }

/* Grid Layouts */
.w7802-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0.8rem 0;
}
.w7802-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Game Cards */
.w7802-game-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--w7802-card-bg); border-radius: 1rem;
  padding: 0.6rem; cursor: pointer; transition: all 0.2s;
  border: 1px solid transparent;
}
.w7802-game-card:hover {
  border-color: var(--w7802-primary); transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144,238,144,0.15);
}
.w7802-game-card img {
  width: 100%; aspect-ratio: 1; border-radius: 0.8rem;
  object-fit: cover; margin-bottom: 0.4rem;
}
.w7802-game-card .w7802-game-name {
  font-size: 1.1rem; color: var(--w7802-text); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 100%; line-height: 1.3;
}

/* Section Headings */
.w7802-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--w7802-primary);
  margin: 1.6rem 0 1rem; padding-left: 1rem;
  border-left: 4px solid var(--w7802-accent);
}
.w7802-section-subtitle {
  font-size: 1.4rem; font-weight: 600; color: var(--w7802-secondary);
  margin: 1.2rem 0 0.6rem;
}

/* Content Cards */
.w7802-card {
  background: var(--w7802-card-bg); border-radius: 1.2rem;
  padding: 1.6rem; margin: 1rem 0; border: 1px solid var(--w7802-border);
}
.w7802-card h3 { font-size: 1.5rem; color: var(--w7802-primary); margin-bottom: 0.8rem; }
.w7802-card p { font-size: 1.3rem; color: var(--w7802-text); line-height: 1.8rem; }

/* Promo Link Styles */
.w7802-promo-link {
  color: var(--w7802-accent); font-weight: 600; cursor: pointer;
  text-decoration: none; transition: color 0.2s;
}
.w7802-promo-link:hover { color: var(--w7802-highlight); text-decoration: underline; }
.w7802-promo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.4rem; background: linear-gradient(135deg, var(--w7802-accent), var(--w7802-primary));
  color: var(--w7802-bg); font-size: 1.4rem; font-weight: 700;
  border-radius: 1rem; cursor: pointer; border: none;
  transition: all 0.3s; text-decoration: none;
  box-shadow: 0 4px 16px rgba(127,255,0,0.3);
}
.w7802-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(127,255,0,0.4); }

/* Footer */
.w7802-footer {
  background: var(--w7802-dark); padding: 2rem 1.2rem 3rem;
  border-top: 1px solid var(--w7802-border);
  margin-top: 2rem;
}
.w7802-footer-brand { text-align: center; margin-bottom: 1.6rem; }
.w7802-footer-brand p { font-size: 1.2rem; color: var(--w7802-muted); line-height: 1.7rem; }
.w7802-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.8rem; margin: 1.2rem 0;
}
.w7802-footer-links a {
  color: var(--w7802-primary); font-size: 1.2rem; text-decoration: none;
  padding: 0.4rem 0.8rem; border: 1px solid var(--w7802-border);
  border-radius: 0.6rem; transition: all 0.2s;
}
.w7802-footer-links a:hover { background: rgba(144,238,144,0.1); border-color: var(--w7802-primary); }
.w7802-footer-partners {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; margin: 1.2rem 0; padding: 1rem 0;
}
.w7802-footer-partners img { height: 2.4rem; opacity: 0.7; transition: opacity 0.2s; }
.w7802-footer-partners img:hover { opacity: 1; }
.w7802-footer-copy {
  text-align: center; font-size: 1.1rem; color: var(--w7802-muted);
  margin-top: 1.2rem; padding-top: 1.2rem;
  border-top: 1px solid var(--w7802-border);
}

/* Internal link style */
.w7802-internal-link {
  color: var(--w7802-secondary); text-decoration: underline;
  transition: color 0.2s;
}
.w7802-internal-link:hover { color: var(--w7802-highlight); }

/* FAQ Section */
.w7802-faq-item {
  background: var(--w7802-card-bg); border-radius: 1rem;
  padding: 1.2rem 1.4rem; margin: 0.8rem 0;
  border: 1px solid var(--w7802-border);
}
.w7802-faq-item strong { color: var(--w7802-primary); display: block; margin-bottom: 0.4rem; font-size: 1.3rem; }
.w7802-faq-item p { font-size: 1.2rem; color: var(--w7802-muted); line-height: 1.6rem; }

/* Feature List */
.w7802-feature-list { list-style: none; padding: 0; }
.w7802-feature-list li {
  padding: 0.8rem 0; border-bottom: 1px solid var(--w7802-border);
  display: flex; align-items: flex-start; gap: 0.8rem;
  font-size: 1.3rem; line-height: 1.6rem;
}
.w7802-feature-list li:last-child { border-bottom: none; }
.w7802-feature-list li i { color: var(--w7802-accent); font-size: 1.6rem; margin-top: 0.2rem; flex-shrink: 0; }

/* Winner showcase */
.w7802-winner-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem; background: var(--w7802-card-bg);
  border-radius: 0.8rem; margin: 0.5rem 0;
  border: 1px solid var(--w7802-border);
}
.w7802-winner-item .w7802-winner-avatar {
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--w7802-accent), var(--w7802-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: var(--w7802-bg); flex-shrink: 0;
}
.w7802-winner-item .w7802-winner-info { flex: 1; }
.w7802-winner-item .w7802-winner-name { font-size: 1.2rem; color: var(--w7802-text); font-weight: 600; }
.w7802-winner-item .w7802-winner-game { font-size: 1.1rem; color: var(--w7802-muted); }
.w7802-winner-item .w7802-winner-amount { font-size: 1.4rem; font-weight: 700; color: var(--w7802-highlight); }

/* Payment methods */
.w7802-payment-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; padding: 1rem 0;
}
.w7802-payment-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.8rem 1.2rem; background: var(--w7802-card-bg);
  border-radius: 0.8rem; border: 1px solid var(--w7802-border);
}
.w7802-payment-item i { font-size: 2.4rem; color: var(--w7802-primary); margin-bottom: 0.4rem; }
.w7802-payment-item span { font-size: 1.1rem; color: var(--w7802-muted); }

/* Testimonials */
.w7802-testimonial {
  background: var(--w7802-card-bg); border-radius: 1rem;
  padding: 1.4rem; margin: 0.8rem 0; border-left: 3px solid var(--w7802-accent);
}
.w7802-testimonial p { font-size: 1.3rem; color: var(--w7802-text); line-height: 1.7rem; font-style: italic; }
.w7802-testimonial .w7802-testimonial-author {
  font-size: 1.1rem; color: var(--w7802-muted); margin-top: 0.6rem; font-style: normal;
}

/* CTA Section */
.w7802-cta {
  background: linear-gradient(135deg, rgba(127,255,0,0.1), rgba(144,238,144,0.05));
  border: 1px solid var(--w7802-accent); border-radius: 1.2rem;
  padding: 2rem; text-align: center; margin: 1.6rem 0;
}
.w7802-cta h2 { font-size: 2rem; color: var(--w7802-accent); margin-bottom: 0.8rem; }
.w7802-cta p { font-size: 1.3rem; color: var(--w7802-text); margin-bottom: 1.4rem; }

/* Badge */
.w7802-badge {
  display: inline-block; padding: 0.2rem 0.6rem;
  background: var(--w7802-highlight); color: var(--w7802-bg);
  font-size: 1rem; font-weight: 600; border-radius: 0.4rem;
  margin-left: 0.4rem;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .w7802-bottom-nav { display: none; }
}
@media (min-width: 769px) {
  body { max-width: 430px; }
}
