/**
 * 88 Lucky PH - Core Stylesheet
 * Class prefix: w88f4-
 * Color palette: #A0522D | #FFEFD5 | #4A4A4A | #0C0C0C | #F4A460
 */

/* CSS Variables */
:root {
  --w88f4-primary: #A0522D;
  --w88f4-accent: #F4A460;
  --w88f4-light: #FFEFD5;
  --w88f4-dark: #0C0C0C;
  --w88f4-muted: #4A4A4A;
  --w88f4-gold: #DAA520;
  --w88f4-danger: #C0392B;
  --w88f4-success: #27AE60;
  --w88f4-bg: #0C0C0C;
  --w88f4-bg-card: #1A1510;
  --w88f4-bg-header: #110D08;
  --w88f4-text: #FFEFD5;
  --w88f4-text-muted: #A09888;
  --w88f4-border: #2A2018;
  --w88f4-radius: 8px;
  --w88f4-radius-lg: 12px;
  --w88f4-shadow: 0 2px 8px rgba(0,0,0,0.4);
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--w88f4-text);
  background: var(--w88f4-bg);
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--w88f4-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.w88f4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w88f4-bg-header);
  border-bottom: 1px solid var(--w88f4-border);
  max-width: 430px;
  margin: 0 auto;
}
.w88f4-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  height: 52px;
}
.w88f4-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w88f4-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.w88f4-logo-area span { font-size: 1.5rem; font-weight: 700; color: var(--w88f4-accent); white-space: nowrap; }
.w88f4-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.w88f4-btn-register, .w88f4-btn-login {
  padding: 6px 14px;
  border: none;
  border-radius: var(--w88f4-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  min-height: 32px;
}
.w88f4-btn-register {
  background: linear-gradient(135deg, var(--w88f4-gold), var(--w88f4-accent));
  color: var(--w88f4-dark);
}
.w88f4-btn-login {
  background: transparent;
  border: 1.5px solid var(--w88f4-accent);
  color: var(--w88f4-accent);
}
.w88f4-btn-register:active, .w88f4-btn-login:active { transform: scale(0.95); }
.w88f4-menu-toggle {
  background: none;
  border: none;
  color: var(--w88f4-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Mobile Menu */
.w88f4-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--w88f4-bg-header);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px 16px;
  overflow-y: auto;
}
.w88f4-menu-active { right: 0; }
.w88f4-menu-close {
  background: none;
  border: none;
  color: var(--w88f4-text);
  font-size: 2.2rem;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-bottom: 16px;
}
.w88f4-menu-list { list-style: none; }
.w88f4-menu-list li {
  border-bottom: 1px solid var(--w88f4-border);
}
.w88f4-menu-list a {
  display: block;
  padding: 12px 8px;
  color: var(--w88f4-text);
  font-size: 1.4rem;
  transition: color 0.2s;
}
.w88f4-menu-list a:hover { color: var(--w88f4-accent); text-decoration: none; }

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

/* Main Content */
.w88f4-main { padding-top: 60px; }

/* Carousel */
.w88f4-carousel {
  position: relative;
  overflow: hidden;
  margin: 0;
}
.w88f4-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.w88f4-slide-active { display: block; }
.w88f4-slide img { width: 100%; height: auto; }
.w88f4-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.w88f4-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.w88f4-dot-active { background: var(--w88f4-accent); }

/* Sections */
.w88f4-section {
  padding: 16px 12px;
}
.w88f4-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w88f4-accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--w88f4-primary);
}
.w88f4-section-title i { margin-right: 8px; }

/* Game Grid */
.w88f4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.w88f4-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
  border-radius: var(--w88f4-radius);
  overflow: hidden;
}
.w88f4-game-item:active { transform: scale(0.95); }
.w88f4-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w88f4-radius);
  border: 1px solid var(--w88f4-border);
}
.w88f4-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--w88f4-text);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Heading */
.w88f4-cat-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w88f4-gold);
  margin: 16px 0 8px;
  padding-left: 8px;
  border-left: 3px solid var(--w88f4-accent);
}

/* Content Blocks */
.w88f4-content-block {
  background: var(--w88f4-bg-card);
  border-radius: var(--w88f4-radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--w88f4-border);
}
.w88f4-content-block h2 {
  font-size: 1.7rem;
  color: var(--w88f4-accent);
  margin-bottom: 10px;
}
.w88f4-content-block h3 {
  font-size: 1.5rem;
  color: var(--w88f4-gold);
  margin: 10px 0 6px;
}
.w88f4-content-block p {
  font-size: 1.3rem;
  color: var(--w88f4-text);
  line-height: 1.6;
  margin-bottom: 8px;
}
.w88f4-content-block ul, .w88f4-content-block ol {
  padding-left: 18px;
  margin-bottom: 8px;
}
.w88f4-content-block li {
  font-size: 1.3rem;
  color: var(--w88f4-text);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* Promo Button */
.w88f4-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--w88f4-primary), var(--w88f4-accent));
  color: var(--w88f4-dark);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 10px 24px;
  border-radius: var(--w88f4-radius);
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
  text-align: center;
}
.w88f4-promo-btn:active { transform: scale(0.95); }
.w88f4-promo-btn-lg {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 1.6rem;
  text-align: center;
  margin: 12px 0;
}
.w88f4-promo-link {
  color: var(--w88f4-accent);
  font-weight: 700;
  cursor: pointer;
}
.w88f4-promo-link:hover { text-decoration: underline; }

/* Footer */
.w88f4-footer {
  background: var(--w88f4-bg-header);
  border-top: 1px solid var(--w88f4-border);
  padding: 20px 12px;
  text-align: center;
}
.w88f4-footer-desc {
  font-size: 1.2rem;
  color: var(--w88f4-text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.w88f4-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.w88f4-footer-links a {
  font-size: 1.2rem;
  color: var(--w88f4-accent);
  padding: 4px 8px;
}
.w88f4-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}
.w88f4-partners img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.w88f4-partners img:hover { opacity: 1; }
.w88f4-site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 12px 0;
}
.w88f4-site-links a { font-size: 1.1rem; color: var(--w88f4-text-muted); }
.w88f4-site-links a:hover { color: var(--w88f4-accent); }
.w88f4-copyright {
  font-size: 1.1rem;
  color: var(--w88f4-text-muted);
  margin-top: 12px;
}

/* Bottom Navigation */
.w88f4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w88f4-bg-header);
  border-top: 1px solid var(--w88f4-border);
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 4px;
}
.w88f4-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--w88f4-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 4px 0;
}
.w88f4-nav-btn:active { transform: scale(0.9); }
.w88f4-nav-btn .w88f4-nav-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 2px; }
.w88f4-nav-btn .w88f4-nav-label { font-size: 1rem; white-space: nowrap; }
.w88f4-nav-btn-active { color: var(--w88f4-accent); }
.w88f4-nav-btn-active .w88f4-nav-icon { color: var(--w88f4-gold); }

/* Testimonials */
.w88f4-testimonial {
  background: var(--w88f4-bg-card);
  border-radius: var(--w88f4-radius);
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--w88f4-accent);
}
.w88f4-testimonial p { font-size: 1.2rem; color: var(--w88f4-text); font-style: italic; margin-bottom: 4px; }
.w88f4-testimonial cite { font-size: 1.1rem; color: var(--w88f4-text-muted); }

/* Winner showcase */
.w88f4-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--w88f4-border);
  font-size: 1.2rem;
}
.w88f4-winner-row:last-child { border-bottom: none; }
.w88f4-winner-name { color: var(--w88f4-accent); font-weight: 600; }
.w88f4-winner-game { color: var(--w88f4-text-muted); }
.w88f4-winner-amount { color: var(--w88f4-success); font-weight: 700; }

/* Payment methods */
.w88f4-payment-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.w88f4-payment-item {
  background: var(--w88f4-bg-card);
  border: 1px solid var(--w88f4-border);
  border-radius: var(--w88f4-radius);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--w88f4-text);
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  .w88f4-main { padding-bottom: 76px; }
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .w88f4-bottom-nav { display: none; }
}
