/**
 * JL898 - Main Stylesheet
 * Prefix: we9e0-
 * Colors: #0D1117 (bg), #FFEFD5/#FFDFBA (text), #FF5722 (accent), #A0522D (secondary), #808080 (neutral)
 */

/* CSS Variables */
:root {
  --we9e0-primary: #FF5722;
  --we9e0-bg: #0D1117;
  --we9e0-bg-light: #161B22;
  --we9e0-bg-card: #1C2333;
  --we9e0-text: #FFEFD5;
  --we9e0-text-light: #FFDFBA;
  --we9e0-secondary: #A0522D;
  --we9e0-neutral: #808080;
  --we9e0-accent: #FF5722;
  --we9e0-border: #2D333B;
  --we9e0-radius: 8px;
  --we9e0-radius-lg: 12px;
  --we9e0-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --we9e0-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--we9e0-bg);
  color: var(--we9e0-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--we9e0-accent);
  text-decoration: none;
  transition: var(--we9e0-transition);
}

a:hover {
  color: var(--we9e0-text-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.we9e0-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 52px;
  background: var(--we9e0-bg-light);
  border-bottom: 1px solid var(--we9e0-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}

.we9e0-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.we9e0-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.we9e0-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--we9e0-accent);
  letter-spacing: 0.5px;
}

.we9e0-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.we9e0-btn-register,
.we9e0-btn-login {
  padding: 6px 14px;
  border-radius: var(--we9e0-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--we9e0-transition);
  min-height: 32px;
}

.we9e0-btn-register {
  background: var(--we9e0-accent);
  color: #fff;
}

.we9e0-btn-register:hover {
  background: #E64A19;
  transform: scale(1.05);
}

.we9e0-btn-login {
  background: transparent;
  color: var(--we9e0-text);
  border: 1px solid var(--we9e0-accent);
}

.we9e0-btn-login:hover {
  background: var(--we9e0-accent);
  color: #fff;
}

.we9e0-menu-btn {
  background: none;
  border: none;
  color: var(--we9e0-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Mobile Menu */
.we9e0-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.we9e0-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: var(--we9e0-bg-light);
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid var(--we9e0-border);
}

.we9e0-mobile-menu.we9e0-menu-open {
  transform: translateX(0);
  visibility: visible;
}

.we9e0-menu-header {
  padding: 16px;
  border-bottom: 1px solid var(--we9e0-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.we9e0-menu-header img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.we9e0-menu-header span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--we9e0-accent);
}

.we9e0-menu-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--we9e0-neutral);
  font-size: 2rem;
  cursor: pointer;
}

.we9e0-menu-links {
  padding: 8px 0;
}

.we9e0-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--we9e0-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(45, 51, 59, 0.5);
  transition: var(--we9e0-transition);
}

.we9e0-menu-links a:hover {
  background: var(--we9e0-bg-card);
  color: var(--we9e0-accent);
}

.we9e0-menu-links a i,
.we9e0-menu-links a .material-icons {
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* Carousel */
.we9e0-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 52px;
  border-radius: 0 0 var(--we9e0-radius-lg) var(--we9e0-radius-lg);
}

.we9e0-carousel-track {
  position: relative;
  width: 100%;
  height: 180px;
}

.we9e0-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.we9e0-carousel-slide.we9e0-active {
  opacity: 1;
}

.we9e0-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.we9e0-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.we9e0-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--we9e0-transition);
}

.we9e0-carousel-dot.we9e0-active {
  background: var(--we9e0-accent);
  width: 20px;
  border-radius: 4px;
}

/* Main Content */
.we9e0-main {
  padding: 16px;
  padding-bottom: 80px;
}

.we9e0-section {
  margin-bottom: 24px;
}

.we9e0-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--we9e0-text-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--we9e0-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.we9e0-section-title i,
.we9e0-section-title .material-icons {
  color: var(--we9e0-accent);
}

/* Game Grid */
.we9e0-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.we9e0-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--we9e0-transition);
  border-radius: var(--we9e0-radius);
  padding: 6px;
}

.we9e0-game-item:hover {
  background: var(--we9e0-bg-card);
  transform: translateY(-2px);
}

.we9e0-game-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--we9e0-radius);
  margin-bottom: 4px;
  border: 1px solid var(--we9e0-border);
}

.we9e0-game-name {
  font-size: 1rem;
  color: var(--we9e0-text);
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Category Label */
.we9e0-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--we9e0-accent);
  margin-bottom: 10px;
  padding: 4px 10px;
  background: rgba(255, 87, 34, 0.12);
  border-radius: 20px;
  border: 1px solid rgba(255, 87, 34, 0.25);
}

/* Content Blocks */
.we9e0-content-block {
  background: var(--we9e0-bg-card);
  border-radius: var(--we9e0-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--we9e0-border);
}

.we9e0-content-block h2 {
  font-size: 1.7rem;
  color: var(--we9e0-text-light);
  margin-bottom: 10px;
}

.we9e0-content-block h3 {
  font-size: 1.5rem;
  color: var(--we9e0-text-light);
  margin-bottom: 8px;
}

.we9e0-content-block p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--we9e0-text);
  margin-bottom: 10px;
}

/* Promo CTA */
.we9e0-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--we9e0-accent), var(--we9e0-secondary));
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--we9e0-radius);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--we9e0-transition);
  min-height: 44px;
  line-height: 24px;
}

.we9e0-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.4);
  color: #fff;
}

.we9e0-text-link {
  color: var(--we9e0-accent);
  font-weight: 600;
  border-bottom: 1px dashed var(--we9e0-accent);
}

.we9e0-text-link:hover {
  color: var(--we9e0-text-light);
  border-bottom-color: var(--we9e0-text-light);
}

/* Winner List */
.we9e0-winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(45, 51, 59, 0.5);
}

.we9e0-winner-item:last-child {
  border-bottom: none;
}

.we9e0-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--we9e0-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.we9e0-winner-info {
  flex: 1;
}

.we9e0-winner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--we9e0-text-light);
}

.we9e0-winner-game {
  font-size: 1.1rem;
  color: var(--we9e0-neutral);
}

.we9e0-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--we9e0-accent);
}

/* Testimonial */
.we9e0-testimonial {
  background: var(--we9e0-bg-light);
  border-radius: var(--we9e0-radius);
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--we9e0-accent);
}

.we9e0-testimonial-text {
  font-size: 1.2rem;
  color: var(--we9e0-text);
  font-style: italic;
  margin-bottom: 6px;
}

.we9e0-testimonial-author {
  font-size: 1.1rem;
  color: var(--we9e0-neutral);
}

/* FAQ */
.we9e0-faq-item {
  margin-bottom: 12px;
}

.we9e0-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--we9e0-accent);
  margin-bottom: 4px;
}

.we9e0-faq-a {
  font-size: 1.2rem;
  color: var(--we9e0-text);
  padding-left: 12px;
  border-left: 2px solid var(--we9e0-border);
}

/* Footer */
.we9e0-footer {
  background: var(--we9e0-bg-light);
  border-top: 1px solid var(--we9e0-border);
  padding: 20px 16px 24px;
  margin-bottom: 56px;
}

.we9e0-footer-brand {
  font-size: 1.3rem;
  color: var(--we9e0-neutral);
  line-height: 1.6rem;
  margin-bottom: 16px;
}

.we9e0-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.we9e0-footer-links a {
  padding: 6px 12px;
  background: var(--we9e0-bg-card);
  border-radius: var(--we9e0-radius);
  font-size: 1.2rem;
  color: var(--we9e0-text);
  border: 1px solid var(--we9e0-border);
  transition: var(--we9e0-transition);
}

.we9e0-footer-links a:hover {
  border-color: var(--we9e0-accent);
  color: var(--we9e0-accent);
}

.we9e0-footer-copy {
  font-size: 1.1rem;
  color: var(--we9e0-neutral);
  text-align: center;
}

/* Bottom Navigation */
.we9e0-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 58px;
  background: var(--we9e0-bg-light);
  border-top: 1px solid var(--we9e0-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}

.we9e0-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  color: var(--we9e0-neutral);
  text-decoration: none;
  transition: var(--we9e0-transition);
  border-radius: var(--we9e0-radius);
  padding: 4px;
  cursor: pointer;
}

.we9e0-bottom-nav-btn i,
.we9e0-bottom-nav-btn .material-icons,
.we9e0-bottom-nav-btn .bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.we9e0-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

.we9e0-bottom-nav-btn:hover,
.we9e0-bottom-nav-btn.we9e0-nav-active {
  color: var(--we9e0-accent);
}

.we9e0-bottom-nav-btn.we9e0-nav-active {
  background: rgba(255, 87, 34, 0.1);
}

/* Utility Classes */
.we9e0-text-center { text-align: center; }
.we9e0-mt-8 { margin-top: 8px; }
.we9e0-mt-16 { margin-top: 16px; }
.we9e0-mb-8 { margin-bottom: 8px; }
.we9e0-mb-16 { margin-bottom: 16px; }
.we9e0-hidden { display: none; }

/* Responsive */
@media (min-width: 769px) {
  body {
    max-width: 430px;
  }
  .we9e0-bottom-nav {
    display: none;
  }
  .we9e0-main {
    padding-bottom: 24px;
  }
  .we9e0-footer {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .we9e0-main {
    padding-bottom: 80px;
  }
}
