/* ljc.homes layout CSS - all classes prefixed with s140- */
/* Color palette: #262626 | #EEEEEE | #26A69A | #4DB6AC | #E0FFFF | #FFEF94 */
/* English comments only */

:root {
  --s140-bg: #262626;
  --s140-bg-alt: #1f1f1f;
  --s140-surface: #2e2e2e;
  --s140-text: #EEEEEE;
  --s140-text-muted: #bdbdbd;
  --s140-primary: #26A69A;
  --s140-primary-light: #4DB6AC;
  --s140-accent: #E0FFFF;
  --s140-gold: #FFEF94;
  --s140-border: #3a3a3a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--s140-bg);
  color: var(--s140-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

a { color: var(--s140-primary-light); text-decoration: none; }
a:hover { color: var(--s140-accent); }

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

.s140-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s140-gold);
  font-weight: 700;
  font-size: 1.8rem;
}
.s140-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }

.s140-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.s140-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  min-height: 4rem;
  transition: transform 0.15s, background 0.15s;
}
.s140-btn:active { transform: scale(0.96); }

.s140-btn-register {
  background: linear-gradient(135deg, var(--s140-primary), var(--s140-primary-light));
  color: #fff;
}
.s140-btn-register:hover { background: var(--s140-primary-light); color: #fff; }

.s140-btn-login {
  background: transparent;
  color: var(--s140-accent);
  border: 1px solid var(--s140-primary);
}
.s140-btn-login:hover { background: var(--s140-surface); color: var(--s140-accent); }

.s140-menu-toggle {
  background: transparent;
  border: none;
  color: var(--s140-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}

/* ===== Mobile expandable menu ===== */
.s140-mobile-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s140-bg-alt);
  border-bottom: 1px solid var(--s140-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.s140-menu-open { max-height: 50rem; }
.s140-mobile-menu ul { list-style: none; padding: 0.5rem 1rem; }
.s140-mobile-menu li { border-bottom: 1px solid var(--s140-border); }
.s140-mobile-menu li:last-child { border-bottom: none; }
.s140-mobile-menu a {
  display: block;
  padding: 1.2rem 0.5rem;
  color: var(--s140-text);
  font-size: 1.4rem;
}
.s140-mobile-menu a:hover { color: var(--s140-gold); }

/* ===== Main ===== */
.s140-main { padding-top: 5.6rem; padding-bottom: 8rem; }

/* ===== Carousel ===== */
.s140-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 1.2rem 1.2rem;
}
.s140-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.s140-carousel-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.s140-carousel-slide img { width: 100%; height: 20rem; object-fit: cover; }
.s140-carousel-caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(0,0,0,0.55);
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  color: var(--s140-gold);
}
.s140-carousel-dots {
  position: absolute;
  bottom: 0.8rem; right: 1rem;
  display: flex; gap: 0.4rem;
}
.s140-carousel-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
}
.s140-dot-active { background: var(--s140-gold); }

/* ===== Section layout ===== */
.s140-section { padding: 1.5rem 1rem; }
.s140-section-title {
  font-size: 1.8rem;
  color: var(--s140-gold);
  margin-bottom: 1rem;
  border-left: 4px solid var(--s140-primary);
  padding-left: 0.8rem;
}
.s140-section-title h1,
.s140-section-title h2,
.s140-section-title h3 { color: var(--s140-gold); }

.s140-intro { color: var(--s140-text-muted); margin-bottom: 1.2rem; }

/* ===== Game grid ===== */
.s140-cat-title {
  font-size: 1.6rem;
  color: var(--s140-primary-light);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.s140-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.s140-game-card {
  background: var(--s140-surface);
  border: 1px solid var(--s140-border);
  border-radius: 0.8rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.s140-game-card:hover { transform: translateY(-2px); border-color: var(--s140-primary); }
.s140-game-card img { width: 100%; height: 5.2rem; object-fit: cover; border-radius: 0.5rem; }
.s140-game-name {
  font-size: 1rem;
  color: var(--s140-text);
  margin-top: 0.4rem;
  line-height: 1.2rem;
  height: 2.4rem;
  overflow: hidden;
}

/* ===== Info cards ===== */
.s140-card {
  background: var(--s140-surface);
  border: 1px solid var(--s140-border);
  border-radius: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.s140-card h2, .s140-card h3 { color: var(--s140-gold); margin-bottom: 0.6rem; }
.s140-card p { color: var(--s140-text-muted); margin-bottom: 0.6rem; }
.s140-card ul { padding-left: 1.5rem; color: var(--s140-text-muted); }
.s140-card li { margin-bottom: 0.4rem; }

.s140-promo-link {
  color: var(--s140-gold);
  font-weight: 700;
}
.s140-promo-link:hover { color: var(--s140-accent); text-decoration: underline; }

.s140-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--s140-primary), var(--s140-primary-light));
  color: #fff;
  padding: 1rem 1.8rem;
  border-radius: 1rem;
  font-weight: 700;
  margin: 0.8rem 0;
}
.s140-cta:active { transform: scale(0.96); }

/* ===== Testimonials ===== */
.s140-testimonial {
  background: var(--s140-surface);
  border-left: 3px solid var(--s140-gold);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-radius: 0.6rem;
}
.s140-testimonial-name { color: var(--s140-primary-light); font-weight: 700; }

/* ===== Payment icons row ===== */
.s140-pay-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.s140-pay-item {
  background: var(--s140-surface);
  border: 1px solid var(--s140-border);
  border-radius: 0.6rem;
  padding: 0.6rem 0.9rem;
  font-size: 1.2rem;
  color: var(--s140-text);
}

/* ===== Winners showcase ===== */
.s140-winner {
  display: flex; justify-content: space-between;
  background: var(--s140-surface);
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.s140-winner span:last-child { color: var(--s140-gold); font-weight: 700; }

/* ===== Back to top ===== */
.s140-back-top {
  position: fixed;
  bottom: 7rem; right: 1.2rem;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--s140-primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
}
.s140-back-show { opacity: 1; pointer-events: auto; }

/* ===== Footer ===== */
.s140-footer {
  background: var(--s140-bg-alt);
  border-top: 1px solid var(--s140-border);
  padding: 1.5rem 1rem 2rem;
  color: var(--s140-text-muted);
  font-size: 1.2rem;
}
.s140-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin: 0.8rem 0;
}
.s140-footer-links a { color: var(--s140-text); font-size: 1.2rem; }
.s140-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0;
}
.s140-footer-promo .s140-cta { margin: 0; padding: 0.6rem 1rem; font-size: 1.2rem; }
.s140-footer-copy { margin-top: 0.8rem; color: var(--s140-text-muted); }

/* ===== Mobile bottom nav ===== */
.s140-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: var(--s140-bg-alt);
  border-top: 1px solid var(--s140-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.s140-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s140-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  gap: 0.2rem;
  transition: color 0.15s, transform 0.15s;
}
.s140-nav-btn:active { transform: scale(0.92); }
.s140-nav-btn .s140-nav-icon { font-size: 2.4rem; line-height: 1; }
.s140-nav-btn:hover { color: var(--s140-primary-light); }
.s140-nav-active { color: var(--s140-gold); }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .s140-bottom-nav { display: none; }
  .s140-menu-toggle { display: none; }
  body { max-width: 768px; }
  .s140-header { max-width: 768px; }
}
