/**
 * JL66 Gaming Platform - Core Stylesheet
 * Website: jl66.cfd
 * All classes use s99d- prefix for namespace isolation
 * Color palette: #0A0A0A | #FF5722 | #FFC0CB | #FFB3FF | #CED4DA
 */

/* === CSS Variables === */
:root {
  --s99d-bg: #0A0A0A;
  --s99d-bg-card: #141414;
  --s99d-bg-section: #1A1A1A;
  --s99d-primary: #FF5722;
  --s99d-primary-dark: #D84315;
  --s99d-pink: #FFC0CB;
  --s99d-lavender: #FFB3FF;
  --s99d-gray: #CED4DA;
  --s99d-text: #E8E8E8;
  --s99d-text-muted: #9E9E9E;
  --s99d-radius: 10px;
  --s99d-radius-sm: 6px;
  --s99d-radius-lg: 16px;
  --s99d-shadow: 0 4px 20px rgba(255, 87, 34, 0.15);
  --s99d-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; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  background: var(--s99d-bg);
  color: var(--s99d-text);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--s99d-primary); text-decoration: none; transition: var(--s99d-transition); }
a:hover { color: var(--s99d-pink); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.s99d-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  border-bottom: 1px solid rgba(255, 87, 34, 0.2);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}
.s99d-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.s99d-logo-area img { width: 32px; height: 32px; border-radius: 6px; }
.s99d-logo-area span {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--s99d-primary), var(--s99d-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.s99d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s99d-btn-register {
  background: linear-gradient(135deg, var(--s99d-primary), #FF7043);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--s99d-transition);
  white-space: nowrap;
}
.s99d-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 87, 34, 0.4); }
.s99d-btn-login {
  background: transparent;
  color: var(--s99d-pink);
  border: 1px solid var(--s99d-pink);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s99d-transition);
  white-space: nowrap;
}
.s99d-btn-login:hover { background: rgba(255, 192, 203, 0.1); }
.s99d-menu-toggle {
  background: none;
  border: none;
  color: var(--s99d-gray);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Mobile Menu === */
.s99d-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}
.s99d-mobile-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(calc(-50% - 430px));
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: #111;
  z-index: 9999;
  transition: transform 0.35s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}
.s99d-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 87, 34, 0.2);
}
.s99d-mobile-menu-header span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s99d-primary);
}
.s99d-menu-close {
  background: none;
  border: none;
  color: var(--s99d-gray);
  font-size: 2.4rem;
  cursor: pointer;
}
.s99d-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1rem;
  color: var(--s99d-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--s99d-transition);
}
.s99d-mobile-menu a:hover {
  color: var(--s99d-primary);
  background: rgba(255, 87, 34, 0.08);
  padding-left: 1.5rem;
}
.s99d-mobile-menu a i,
.s99d-mobile-menu a .material-icons-outlined {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* === Carousel === */
.s99d-carousel {
  position: relative;
  margin-top: 56px;
  overflow: hidden;
  border-radius: 0 0 var(--s99d-radius) var(--s99d-radius);
}
.s99d-slide {
  display: none;
  cursor: pointer;
  width: 100%;
}
.s99d-slide img { width: 100%; height: 200px; object-fit: cover; }
.s99d-slide-active { display: block; animation: s99dfade 0.5s ease; }
@keyframes s99dfade { from { opacity: 0.4; } to { opacity: 1; } }
.s99d-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.s99d-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--s99d-transition);
  border: none;
}
.s99d-dot-active { background: var(--s99d-primary); transform: scale(1.3); }

/* === Main Content === */
.s99d-main { padding: 1.5rem 1.2rem; }
.s99d-section { margin-bottom: 2.5rem; }
.s99d-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--s99d-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.s99d-section-title i,
.s99d-section-title .material-icons-outlined { color: var(--s99d-primary); font-size: 2.2rem; }

/* === Game Grid === */
.s99d-cat-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: var(--s99d-lavender);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s99d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.s99d-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--s99d-transition);
  border-radius: var(--s99d-radius-sm);
  padding: 0.5rem;
}
.s99d-game-item:hover { transform: translateY(-3px); background: rgba(255, 87, 34, 0.08); }
.s99d-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--s99d-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.3rem;
}
.s99d-game-item span {
  font-size: 1.1rem;
  color: var(--s99d-text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Cards === */
.s99d-card {
  background: var(--s99d-bg-card);
  border-radius: var(--s99d-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--s99d-transition);
}
.s99d-card:hover { border-color: rgba(255, 87, 34, 0.3); }
.s99d-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--s99d-pink);
}

/* === Promo Button === */
.s99d-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--s99d-primary), #FF7043);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--s99d-transition);
  text-align: center;
}
.s99d-promo-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 87, 34, 0.4); }
.s99d-promo-link {
  color: var(--s99d-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--s99d-primary);
}

/* === Footer === */
.s99d-footer {
  background: var(--s99d-bg-section);
  padding: 2rem 1.2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 87, 34, 0.15);
}
.s99d-footer-brand { margin-bottom: 1.5rem; }
.s99d-footer-brand p { font-size: 1.3rem; color: var(--s99d-text-muted); line-height: 1.6; margin-top: 0.5rem; }
.s99d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.s99d-footer-links a {
  background: rgba(255, 87, 34, 0.1);
  color: var(--s99d-pink);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  border: 1px solid rgba(255, 87, 34, 0.2);
  transition: var(--s99d-transition);
}
.s99d-footer-links a:hover { background: rgba(255, 87, 34, 0.2); }
.s99d-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.s99d-footer-partners img { height: 28px; opacity: 0.7; transition: var(--s99d-transition); }
.s99d-footer-partners img:hover { opacity: 1; }
.s99d-footer-copy { font-size: 1.2rem; color: var(--s99d-text-muted); margin-top: 1rem; }

/* === Bottom Navigation (Mobile) === */
.s99d-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(180deg, #1A1A1A, #0D0D0D);
  border-top: 1px solid rgba(255, 87, 34, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
}
.s99d-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--s99d-text-muted);
  cursor: pointer;
  transition: var(--s99d-transition);
  padding: 0.4rem 0;
  position: relative;
}
.s99d-bnav-btn i,
.s99d-bnav-btn .material-icons-outlined,
.s99d-bnav-btn ion-icon { font-size: 22px; margin-bottom: 2px; }
.s99d-bnav-btn span { font-size: 1rem; white-space: nowrap; }
.s99d-bnav-btn:hover,
.s99d-bnav-active { color: var(--s99d-primary); }
.s99d-bnav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--s99d-primary);
  border-radius: 0 0 3px 3px;
}
.s99d-bnav-btn:active { transform: scale(0.9); }

/* === Utilities === */
.s99d-text-center { text-align: center; }
.s99d-mt-1 { margin-top: 0.5rem; }
.s99d-mt-2 { margin-top: 1rem; }
.s99d-mt-3 { margin-top: 1.5rem; }
.s99d-mb-1 { margin-bottom: 0.5rem; }
.s99d-mb-2 { margin-bottom: 1rem; }
.s99d-mb-3 { margin-bottom: 1.5rem; }
.s99d-py-2 { padding: 1rem 0; }
.s99d-hidden { display: none !important; }

/* === Winner Showcase === */
.s99d-winner-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
}
.s99d-winner-scroll::-webkit-scrollbar { display: none; }
.s99d-winner-card {
  flex-shrink: 0;
  width: 140px;
  background: var(--s99d-bg-card);
  border-radius: var(--s99d-radius-sm);
  padding: 0.8rem;
  text-align: center;
  border: 1px solid rgba(255, 87, 34, 0.1);
}
.s99d-winner-card img { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 0.5rem; object-fit: cover; }
.s99d-winner-name { font-size: 1.2rem; color: var(--s99d-lavender); font-weight: 600; }
.s99d-winner-amount { font-size: 1.3rem; color: var(--s99d-primary); font-weight: 700; }
.s99d-winner-game { font-size: 1rem; color: var(--s99d-text-muted); }

/* === Payment Methods === */
.s99d-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.s99d-payment-item {
  background: var(--s99d-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--s99d-radius-sm);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--s99d-gray);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === Testimonials === */
.s99d-testimonial {
  background: var(--s99d-bg-card);
  border-radius: var(--s99d-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--s99d-primary);
}
.s99d-testimonial-text { font-size: 1.3rem; color: var(--s99d-text); font-style: italic; margin-bottom: 0.6rem; line-height: 1.5; }
.s99d-testimonial-author { font-size: 1.2rem; color: var(--s99d-lavender); font-weight: 600; }
.s99d-testimonial-stars { color: #FFD700; font-size: 1.2rem; margin-bottom: 0.4rem; }

/* === Mobile App CTA === */
.s99d-app-cta {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15), rgba(255, 179, 255, 0.1));
  border-radius: var(--s99d-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 87, 34, 0.2);
}
.s99d-app-cta h3 { font-size: 1.8rem; color: var(--s99d-pink); margin-bottom: 0.8rem; }
.s99d-app-cta p { font-size: 1.3rem; color: var(--s99d-text-muted); margin-bottom: 1.2rem; }

/* === Responsive === */
@media (min-width: 769px) {
  .s99d-bnav { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .s99d-main { padding-bottom: 80px; }
}
