/* ============================================
   EA33 Gaming Platform - Theme Stylesheet
   File: css/theme-0588.css
   Prefix: s058-
   Palette: #DEB887 | #0D1117 | #DEE2E6
   ============================================ */

/* --- CSS Variables --- */
:root {
  --s058-primary: #DEB887;
  --s058-bg: #0D1117;
  --s058-text: #DEE2E6;
  --s058-accent: #D4A76A;
  --s058-dark: #0a0e14;
  --s058-card: #161b22;
  --s058-border: #21262d;
  --s058-hover: #1c2333;
  --s058-gold: #FFD700;
  --s058-green: #2ea043;
  --s058-red: #f85149;
  --s058-radius: 8px;
  --s058-radius-lg: 12px;
  --s058-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --s058-transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--s058-bg);
  color: var(--s058-text);
  line-height: 1.6rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--s058-primary); text-decoration: none; transition: var(--s058-transition); }
a:hover { color: var(--s058-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Header --- */
.s058-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--s058-dark);
  border-bottom: 1px solid var(--s058-border);
  z-index: 1000;
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s058-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s058-primary);
}
.s058-logo img { width: 28px; height: 28px; border-radius: 4px; }
.s058-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s058-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--s058-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--s058-transition);
  text-align: center;
  min-height: 32px;
}
.s058-btn-register {
  background: var(--s058-primary);
  color: var(--s058-dark);
}
.s058-btn-register:hover { background: var(--s058-gold); transform: scale(1.03); }
.s058-btn-login {
  background: transparent;
  color: var(--s058-primary);
  border: 1px solid var(--s058-primary);
}
.s058-btn-login:hover { background: var(--s058-primary); color: var(--s058-dark); }
.s058-btn-promo {
  background: linear-gradient(135deg, var(--s058-primary), var(--s058-gold));
  color: var(--s058-dark);
  font-size: 1.4rem;
  padding: 0.7rem 2rem;
  border-radius: var(--s058-radius-lg);
  font-weight: 700;
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 1rem auto;
  text-align: center;
}
.s058-btn-promo:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(222,184,135,0.4); }
.s058-btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  border-radius: 6px;
}

/* --- Hamburger --- */
.s058-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.s058-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--s058-primary);
  transition: var(--s058-transition);
}

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

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

/* --- Main Content --- */
.s058-main {
  padding-top: 56px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* --- Carousel --- */
.s058-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--s058-radius) var(--s058-radius);
}
.s058-slide {
  width: 100%;
  cursor: pointer;
  position: relative;
}
.s058-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.s058-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.s058-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}
.s058-dot-active { background: var(--s058-primary); }

/* --- Section --- */
.s058-section {
  padding: 1.5rem 1rem;
}
.s058-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s058-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--s058-border);
}
.s058-section-title i { margin-right: 0.5rem; }

/* --- Game Grid --- */
.s058-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.s058-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--s058-transition);
  padding: 0.4rem;
  border-radius: var(--s058-radius);
}
.s058-game-item:hover {
  background: var(--s058-hover);
  transform: translateY(-2px);
}
.s058-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--s058-radius);
  object-fit: cover;
  margin-bottom: 0.3rem;
}
.s058-game-name {
  font-size: 1.1rem;
  color: var(--s058-text);
  text-align: center;
  line-height: 1.3;
  max-height: 2.8rem;
  overflow: hidden;
  word-break: break-word;
}

/* --- Category Label --- */
.s058-cat-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--s058-primary), var(--s058-accent));
  color: var(--s058-dark);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* --- Card --- */
.s058-card {
  background: var(--s058-card);
  border-radius: var(--s058-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--s058-border);
}
.s058-card h3 {
  font-size: 1.5rem;
  color: var(--s058-primary);
  margin-bottom: 0.8rem;
}
.s058-card p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--s058-text);
  margin-bottom: 0.6rem;
}

/* --- Features Grid --- */
.s058-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.s058-feature-item {
  background: var(--s058-card);
  border-radius: var(--s058-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--s058-border);
  cursor: pointer;
  transition: var(--s058-transition);
}
.s058-feature-item:hover { border-color: var(--s058-primary); }
.s058-feature-item i { font-size: 2.4rem; color: var(--s058-primary); margin-bottom: 0.5rem; display: block; }
.s058-feature-item span { font-size: 1.2rem; color: var(--s058-text); }

/* --- FAQ --- */
.s058-faq-item {
  background: var(--s058-card);
  border-radius: var(--s058-radius);
  padding: 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--s058-border);
}
.s058-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--s058-primary);
  margin-bottom: 0.4rem;
}
.s058-faq-a {
  font-size: 1.3rem;
  color: var(--s058-text);
  line-height: 1.6rem;
}

/* --- Stats --- */
.s058-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  text-align: center;
}
.s058-stat-item {
  background: var(--s058-card);
  border-radius: var(--s058-radius);
  padding: 0.8rem;
  border: 1px solid var(--s058-border);
}
.s058-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s058-primary);
}
.s058-stat-label {
  font-size: 1.1rem;
  color: var(--s058-text);
  margin-top: 0.2rem;
}

/* --- Testimonial --- */
.s058-testimonial {
  background: var(--s058-card);
  border-radius: var(--s058-radius-lg);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--s058-primary);
}
.s058-testimonial p { font-size: 1.3rem; line-height: 1.6rem; font-style: italic; margin-bottom: 0.4rem; }
.s058-testimonial strong { color: var(--s058-primary); font-size: 1.2rem; }

/* --- Payment Icons --- */
.s058-payment-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.s058-pay-icon {
  background: var(--s058-card);
  border-radius: var(--s058-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--s058-text);
  border: 1px solid var(--s058-border);
}

/* --- Winner Marquee --- */
.s058-winners {
  background: var(--s058-card);
  border-radius: var(--s058-radius);
  padding: 0.8rem 1rem;
  overflow: hidden;
}
.s058-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--s058-border);
  font-size: 1.2rem;
}
.s058-winner-item:last-child { border-bottom: none; }
.s058-winner-name { color: var(--s058-primary); font-weight: 600; }
.s058-winner-amount { color: var(--s058-green); font-weight: 700; }

/* --- Footer --- */
.s058-footer {
  background: var(--s058-dark);
  border-top: 1px solid var(--s058-border);
  padding: 1.5rem 1rem;
  text-align: center;
  padding-bottom: 80px;
}
.s058-footer-desc {
  font-size: 1.2rem;
  color: var(--s058-text);
  line-height: 1.6rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}
.s058-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.s058-footer-links a {
  background: var(--s058-card);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 1.1rem;
  color: var(--s058-text);
  border: 1px solid var(--s058-border);
}
.s058-footer-links a:hover { border-color: var(--s058-primary); color: var(--s058-primary); }
.s058-copyright {
  font-size: 1.1rem;
  color: var(--s058-text);
  opacity: 0.5;
  margin-top: 0.8rem;
}

/* --- Bottom Navigation --- */
.s058-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--s058-dark);
  border-top: 1px solid var(--s058-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}
.s058-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--s058-text);
  cursor: pointer;
  transition: var(--s058-transition);
  border-radius: var(--s058-radius);
  padding: 0.3rem;
  position: relative;
}
.s058-bnav-btn i, .s058-bnav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
  transition: var(--s058-transition);
}
.s058-bnav-btn span {
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}
.s058-bnav-btn:hover, .s058-bnav-active {
  color: var(--s058-primary);
}
.s058-bnav-btn:hover i, .s058-bnav-active i,
.s058-bnav-btn:hover .material-icons, .s058-bnav-active .material-icons {
  transform: scale(1.15);
  color: var(--s058-primary);
}
.s058-bnav-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--s058-primary);
  border-radius: 2px;
}

/* --- Text Utilities --- */
.s058-text-gold { color: var(--s058-gold); }
.s058-text-primary { color: var(--s058-primary); }
.s058-text-green { color: var(--s058-green); }
.s058-text-center { text-align: center; }
.s058-mt-1 { margin-top: 1rem; }
.s058-mb-1 { margin-bottom: 1rem; }
.s058-p-1 { padding: 1rem; }

/* --- Promo Link --- */
.s058-promo-link {
  color: var(--s058-primary);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--s058-primary);
  transition: var(--s058-transition);
}
.s058-promo-link:hover { color: var(--s058-gold); border-color: var(--s058-gold); }

/* --- Desktop Hidden --- */
@media (min-width: 769px) {
  .s058-bottom-nav { display: none; }
  .s058-hamburger { display: none; }
  body { max-width: 430px; }
  .s058-main { padding-bottom: 2rem; }
  .s058-footer { padding-bottom: 2rem; }
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  .s058-main { padding-bottom: 80px; }
  .s058-footer { padding-bottom: 80px; }
}
