/**
 * jljl9 - Main Stylesheet
 * Prefix: s08f-
 * Colors: #FF8C00 | #7FFF00 | #EEE8AA | #2E4057
 */

:root {
  --s08f-primary: #FF8C00;
  --s08f-accent: #7FFF00;
  --s08f-text: #EEE8AA;
  --s08f-bg: #2E4057;
  --s08f-bg-light: #3a5470;
  --s08f-bg-dark: #1e2d3d;
  --s08f-border: #4a6a8a;
  --s08f-radius: 8px;
  --s08f-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 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, sans-serif;
  background: var(--s08f-bg);
  color: var(--s08f-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--s08f-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.s08f-container { width: 100%; padding: 0 1.2rem; }
.s08f-wrapper { padding: 1.2rem 0; }

/* Header */
.s08f-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--s08f-bg-dark);
  z-index: 1000;
  border-bottom: 2px solid var(--s08f-primary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s08f-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s08f-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.s08f-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s08f-primary);
}
.s08f-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s08f-btn-register {
  background: var(--s08f-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--s08f-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  min-width: 44px;
}
.s08f-btn-login {
  background: transparent;
  color: var(--s08f-accent);
  border: 1.5px solid var(--s08f-accent);
  padding: 0.5rem 1rem;
  border-radius: var(--s08f-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  min-width: 44px;
}
.s08f-menu-toggle {
  background: none;
  border: none;
  color: var(--s08f-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Carousel */
.s08f-carousel {
  position: relative;
  width: 100%;
  margin-top: 5rem;
  overflow: hidden;
  border-radius: 0 0 var(--s08f-radius) var(--s08f-radius);
}
.s08f-carousel-inner { position: relative; width: 100%; height: 180px; }
.s08f-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.s08f-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s08f-slide-active { opacity: 1; }
.s08f-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.s08f-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(238,232,170,0.4);
  cursor: pointer;
  border: none;
}
.s08f-dot-active { background: var(--s08f-primary); }

/* Sections */
.s08f-section {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid var(--s08f-border);
}
.s08f-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s08f-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--s08f-accent);
}

/* Game Grid */
.s08f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.s08f-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
}
.s08f-game-item img {
  width: 64px; height: 64px;
  border-radius: var(--s08f-radius);
  border: 1.5px solid var(--s08f-border);
  margin-bottom: 0.3rem;
}
.s08f-game-item span {
  font-size: 1rem;
  color: var(--s08f-text);
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s08f-game-item:hover img { border-color: var(--s08f-primary); }
.s08f-category-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--s08f-accent);
  margin: 1rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Content Modules */
.s08f-card {
  background: var(--s08f-bg-light);
  border-radius: var(--s08f-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--s08f-shadow);
}
.s08f-card h3 {
  color: var(--s08f-primary);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.s08f-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.s08f-card ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}
.s08f-card li {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

/* CTA Button */
.s08f-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--s08f-primary), #e67600);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255,140,0,0.4);
  min-height: 44px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.s08f-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,140,0,0.5);
}
.s08f-text-link {
  color: var(--s08f-primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--s08f-primary);
}

/* Testimonial */
.s08f-testimonial {
  background: var(--s08f-bg-light);
  border-left: 3px solid var(--s08f-accent);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-radius: 0 var(--s08f-radius) var(--s08f-radius) 0;
}
.s08f-testimonial p { font-size: 1.2rem; font-style: italic; }
.s08f-testimonial cite {
  display: block;
  font-size: 1.1rem;
  color: var(--s08f-primary);
  margin-top: 0.4rem;
}

/* Payment Icons */
.s08f-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
.s08f-payment-badge {
  background: var(--s08f-bg-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--s08f-radius);
  font-size: 1.1rem;
  color: var(--s08f-text);
  border: 1px solid var(--s08f-border);
}

/* Winner Display */
.s08f-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(74,106,138,0.3);
}
.s08f-winner-name { font-size: 1.2rem; color: var(--s08f-accent); }
.s08f-winner-game { font-size: 1.1rem; color: var(--s08f-text); }
.s08f-winner-amount { font-size: 1.3rem; color: var(--s08f-primary); font-weight: 700; }

/* Footer */
.s08f-footer {
  background: var(--s08f-bg-dark);
  padding: 2rem 1.2rem;
  margin-bottom: 60px;
  border-top: 2px solid var(--s08f-primary);
}
.s08f-footer-brand {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  color: var(--s08f-text);
}
.s08f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.s08f-footer-links a {
  background: var(--s08f-bg-light);
  padding: 0.4rem 0.8rem;
  border-radius: var(--s08f-radius);
  font-size: 1.1rem;
  color: var(--s08f-text);
  border: 1px solid var(--s08f-border);
}
.s08f-footer-links a:hover { color: var(--s08f-primary); border-color: var(--s08f-primary); }
.s08f-footer-copy {
  font-size: 1.1rem;
  color: rgba(238,232,170,0.6);
  text-align: center;
  margin-top: 1rem;
}

/* Bottom Navigation */
.s08f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--s08f-bg-dark);
  border-top: 2px solid var(--s08f-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.s08f-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--s08f-text);
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  padding: 0.3rem;
}
.s08f-nav-btn:active { transform: scale(0.9); }
.s08f-nav-btn .s08f-nav-icon { font-size: 22px; margin-bottom: 2px; }
.s08f-nav-btn .s08f-nav-label { font-size: 1rem; line-height: 1.2; }
.s08f-nav-btn.s08f-nav-active { color: var(--s08f-primary); }
.s08f-nav-btn:hover { color: var(--s08f-primary); }

/* FAQ Accordion */
.s08f-faq-item { margin-bottom: 0.6rem; }
.s08f-faq-q {
  background: var(--s08f-bg-light);
  padding: 0.8rem 1rem;
  border-radius: var(--s08f-radius);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--s08f-primary);
  margin-bottom: 0.3rem;
}
.s08f-faq-a {
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--s08f-text);
}

/* Responsive */
@media (min-width: 769px) {
  .s08f-bottom-nav { display: none; }
  .s08f-header { max-width: 430px; }
  .s08f-menu-toggle { display: none; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Utility */
.s08f-mt-1 { margin-top: 0.8rem; }
.s08f-mb-1 { margin-bottom: 0.8rem; }
.s08f-text-center { text-align: center; }
.s08f-text-primary { color: var(--s08f-primary); }
.s08f-text-accent { color: var(--s08f-accent); }
.s08f-bold { font-weight: 700; }
.s08f-hidden { display: none; }
