/**
 * JL26 Layout Stylesheet
 * All classes use w9551- prefix for namespace isolation
 * Color palette: #FFEBCD (light) | #B8860B (accent) | #0D1117 (dark bg)
 */

/* CSS Variables */
:root {
  --w9551-primary: #B8860B;
  --w9551-primary-light: #DAA520;
  --w9551-primary-dark: #8B6914;
  --w9551-bg: #0D1117;
  --w9551-bg-light: #161B22;
  --w9551-bg-card: #1C2333;
  --w9551-text: #FFEBCD;
  --w9551-text-muted: #A89070;
  --w9551-text-dim: #7A6A55;
  --w9551-border: #2D333B;
  --w9551-accent: #FFD700;
  --w9551-success: #2EA043;
  --w9551-danger: #DA3633;
  --w9551-radius: 8px;
  --w9551-radius-lg: 12px;
  --w9551-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --w9551-header-h: 56px;
  --w9551-bottom-h: 60px;
}

/* 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(--w9551-bg);
  color: var(--w9551-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(--w9551-primary-light); text-decoration: none; }
a:hover { color: var(--w9551-accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.w9551-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--w9551-bg-light);
  border-bottom: 1px solid var(--w9551-border);
  height: var(--w9551-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
  max-width: 430px; margin: 0 auto;
}
.w9551-header-left { display: flex; align-items: center; gap: 0.8rem; }
.w9551-header-logo { width: 28px; height: 28px; border-radius: 4px; }
.w9551-header-brand { font-size: 1.8rem; font-weight: 700; color: var(--w9551-accent); }
.w9551-header-right { display: flex; align-items: center; gap: 0.6rem; }
.w9551-header-menu-btn {
  background: none; border: none; color: var(--w9551-text); font-size: 2.2rem;
  cursor: pointer; padding: 0.4rem; display: flex; align-items: center;
}

/* Buttons */
.w9551-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem; border-radius: var(--w9551-radius);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s ease; min-height: 36px;
}
.w9551-btn-register {
  background: linear-gradient(135deg, var(--w9551-primary), var(--w9551-primary-light));
  color: var(--w9551-bg); font-weight: 700;
}
.w9551-btn-register:hover { transform: scale(1.03); box-shadow: 0 0 12px rgba(184, 134, 11, 0.4); }
.w9551-btn-login {
  background: transparent; color: var(--w9551-accent);
  border: 1.5px solid var(--w9551-primary);
}
.w9551-btn-login:hover { background: rgba(184, 134, 11, 0.1); }
.w9551-btn-promo {
  background: linear-gradient(135deg, var(--w9551-primary-dark), var(--w9551-primary));
  color: var(--w9551-text); padding: 0.8rem 2rem; font-size: 1.4rem;
  border-radius: var(--w9551-radius-lg); width: 100%;
  box-shadow: var(--w9551-shadow);
}
.w9551-btn-promo:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3); }
.w9551-text-link {
  color: var(--w9551-primary-light); font-weight: 700;
  cursor: pointer; text-decoration: underline;
  font-size: 1.4rem;
}
.w9551-text-link:hover { color: var(--w9551-accent); }

/* Mobile Menu */
.w9551-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.w9551-overlay-active { opacity: 1; visibility: visible; }
.w9551-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--w9551-bg-light); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.6rem;
  overflow-y: auto;
}
.w9551-menu-active { right: 0; }
.w9551-menu-close {
  background: none; border: none; color: var(--w9551-text);
  font-size: 2.4rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1.2rem;
}
.w9551-menu-nav { list-style: none; margin-top: 3rem; }
.w9551-menu-nav li { margin-bottom: 0.4rem; }
.w9551-menu-nav a {
  display: block; padding: 1rem 1.2rem; color: var(--w9551-text);
  font-size: 1.5rem; border-radius: var(--w9551-radius);
  transition: background 0.2s ease;
}
.w9551-menu-nav a:hover { background: rgba(184, 134, 11, 0.15); color: var(--w9551-accent); }

/* Carousel */
.w9551-carousel { position: relative; overflow: hidden; border-radius: var(--w9551-radius-lg); margin-top: calc(var(--w9551-header-h) + 0.8rem); }
.w9551-carousel-slide {
  display: none; cursor: pointer; width: 100%;
  aspect-ratio: 16/7;
}
.w9551-slide-active { display: block; }
.w9551-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.w9551-carousel-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px;
}
.w9551-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 235, 205, 0.4); cursor: pointer;
  border: none; transition: all 0.2s ease;
}
.w9551-dot-active { background: var(--w9551-accent); width: 20px; border-radius: 4px; }

/* Sections */
.w9551-section { padding: 2rem 1.2rem; }
.w9551-section-title {
  font-size: 2rem; font-weight: 700; color: var(--w9551-accent);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--w9551-primary);
}
.w9551-section-subtitle {
  font-size: 1.6rem; font-weight: 600; color: var(--w9551-primary-light);
  margin: 1.4rem 0 0.8rem;
}

/* Game Grid */
.w9551-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.w9551-game-item {
  text-align: center; cursor: pointer;
  background: var(--w9551-bg-card); border-radius: var(--w9551-radius);
  padding: 0.6rem; border: 1px solid var(--w9551-border);
  transition: all 0.2s ease;
}
.w9551-game-item:hover {
  border-color: var(--w9551-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
}
.w9551-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px; margin-bottom: 0.4rem;
}
.w9551-game-item span {
  font-size: 1.1rem; color: var(--w9551-text-muted);
  display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; line-height: 1.3rem;
}

/* Card */
.w9551-card {
  background: var(--w9551-bg-card); border-radius: var(--w9551-radius-lg);
  padding: 1.6rem; border: 1px solid var(--w9551-border);
  margin-bottom: 1.2rem;
}

/* Grid */
.w9551-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.w9551-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; }

/* Content Text */
.w9551-content-text { font-size: 1.4rem; line-height: 2.2rem; color: var(--w9551-text-muted); margin-bottom: 1rem; }
.w9551-content-text strong { color: var(--w9551-text); }
.w9551-highlight { color: var(--w9551-accent); font-weight: 600; }

/* Footer */
.w9551-footer {
  background: var(--w9551-bg-light); border-top: 1px solid var(--w9551-border);
  padding: 2rem 1.2rem 2.8rem; margin-top: 2rem;
}
.w9551-footer-brand { font-size: 1.2rem; color: var(--w9551-text-dim); line-height: 1.8rem; margin-bottom: 1.4rem; }
.w9551-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.w9551-footer-links a {
  color: var(--w9551-text-muted); font-size: 1.2rem;
  padding: 0.4rem 0.8rem; border: 1px solid var(--w9551-border);
  border-radius: var(--w9551-radius); transition: all 0.2s ease;
}
.w9551-footer-links a:hover { color: var(--w9551-accent); border-color: var(--w9551-primary); }
.w9551-footer-copy { font-size: 1.1rem; color: var(--w9551-text-dim); text-align: center; padding-top: 1rem; border-top: 1px solid var(--w9551-border); }

/* Bottom Navigation */
.w9551-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--w9551-bg-light); border-top: 1px solid var(--w9551-border);
  height: var(--w9551-bottom-h);
  display: flex; align-items: center; justify-content: space-around;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}
.w9551-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 52px;
  background: none; border: none; color: var(--w9551-text-dim);
  cursor: pointer; font-size: 1rem; gap: 2px;
  transition: all 0.2s ease; padding: 0.4rem;
}
.w9551-bottom-btn:hover, .w9551-bottom-btn:focus { color: var(--w9551-accent); transform: scale(1.05); }
.w9551-bottom-btn .w9551-bnav-icon { font-size: 2.2rem; line-height: 1; }
.w9551-bottom-btn .w9551-bnav-text { font-size: 1rem; line-height: 1.2rem; }
.w9551-bottom-btn.w9551-bnav-active { color: var(--w9551-accent); }

/* Utility */
.w9551-mt-1 { margin-top: 0.8rem; }
.w9551-mb-1 { margin-bottom: 0.8rem; }
.w9551-text-center { text-align: center; }
.w9551-text-gold { color: var(--w9551-accent); }
.w9551-badge {
  display: inline-block; padding: 0.2rem 0.6rem;
  background: var(--w9551-primary); color: var(--w9551-bg);
  font-size: 1rem; font-weight: 600; border-radius: 4px;
}

/* FAQ Accordion */
.w9551-faq-item { border-bottom: 1px solid var(--w9551-border); padding: 1rem 0; }
.w9551-faq-q { font-size: 1.4rem; font-weight: 600; color: var(--w9551-text); cursor: pointer; }
.w9551-faq-a { font-size: 1.3rem; color: var(--w9551-text-muted); line-height: 2rem; margin-top: 0.6rem; display: none; }
.w9551-faq-item.w9551-faq-open .w9551-faq-a { display: block; }

/* Feature Grid */
.w9551-feature-item {
  background: var(--w9551-bg-card); border-radius: var(--w9551-radius);
  padding: 1.2rem; border: 1px solid var(--w9551-border);
  text-align: center;
}
.w9551-feature-icon { font-size: 2.8rem; color: var(--w9551-accent); margin-bottom: 0.6rem; }
.w9551-feature-title { font-size: 1.3rem; font-weight: 600; color: var(--w9551-text); margin-bottom: 0.4rem; }
.w9551-feature-desc { font-size: 1.2rem; color: var(--w9551-text-muted); line-height: 1.6rem; }

/* Winner List */
.w9551-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0; border-bottom: 1px solid var(--w9551-border);
}
.w9551-winner-name { font-size: 1.2rem; color: var(--w9551-text); }
.w9551-winner-game { font-size: 1.1rem; color: var(--w9551-text-dim); }
.w9551-winner-amount { font-size: 1.3rem; font-weight: 700; color: var(--w9551-accent); }

/* Testimonial */
.w9551-testimonial {
  background: var(--w9551-bg-card); border-radius: var(--w9551-radius);
  padding: 1.2rem; border-left: 3px solid var(--w9551-primary);
  margin-bottom: 1rem;
}
.w9551-testimonial-text { font-size: 1.3rem; color: var(--w9551-text-muted); font-style: italic; line-height: 1.8rem; }
.w9551-testimonial-author { font-size: 1.2rem; color: var(--w9551-primary-light); margin-top: 0.6rem; }

/* Payment Icons Row */
.w9551-payment-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.w9551-payment-item {
  background: var(--w9551-bg-card); border-radius: var(--w9551-radius);
  padding: 0.6rem 1.2rem; border: 1px solid var(--w9551-border);
  font-size: 1.2rem; color: var(--w9551-text-muted);
}

/* Responsive */
@media (min-width: 769px) {
  .w9551-bottom-nav { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--w9551-bottom-h) + 1rem); }
}
