/* jl85.homes core stylesheet - all classes use s359- prefix */
/* Color palette: #1A1A1A bg | #FFC0CB accent | #999999 muted text */

:root {
  --s359-primary: #FFC0CB;
  --s359-bg: #1A1A1A;
  --s359-bg-soft: #242424;
  --s359-bg-card: #2a2a2a;
  --s359-text: #f5f5f5;
  --s359-muted: #999999;
  --s359-border: #3a3a3a;
  --s359-pink-deep: #e89aa6;
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

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

a { color: var(--s359-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* Header */
.s359-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--s359-bg);
  border-bottom: 1px solid var(--s359-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  min-height: 5rem;
}
.s359-logo { display: flex; align-items: center; gap: 0.6rem; }
.s359-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }
.s359-logo .s359-brand { font-size: 1.6rem; font-weight: 800; color: var(--s359-primary); letter-spacing: 0.5px; }
.s359-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s359-menu-btn {
  background: transparent; border: 1px solid var(--s359-border);
  color: var(--s359-text); width: 3.6rem; height: 3.6rem; border-radius: 0.5rem;
  font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Buttons */
.s359-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; cursor: pointer; font-weight: 700; border-radius: 0.6rem;
  padding: 0.7rem 1.2rem; font-size: 1.3rem; min-height: 3.6rem; transition: transform 0.15s, opacity 0.15s;
  font-family: inherit;
}
.s359-btn:active { transform: scale(0.96); }
.s359-btn-register { background: linear-gradient(135deg, var(--s359-primary), var(--s359-pink-deep)); color: #1A1A1A; }
.s359-btn-login { background: transparent; color: var(--s359-primary); border: 1px solid var(--s359-primary); }
.s359-btn-cta { background: linear-gradient(135deg, var(--s359-primary), var(--s359-pink-deep)); color: #1A1A1A; padding: 0.9rem 2rem; font-size: 1.4rem; width: 100%; }
.s359-btn-text { background: none; color: var(--s359-primary); padding: 0.2rem 0; font-weight: 600; cursor: pointer; border: none; font-family: inherit; font-size: 1.3rem; }

/* Nav menu */
.s359-nav-menu {
  display: none; position: absolute; top: 5rem; right: 0.6rem;
  background: var(--s359-bg-soft); border: 1px solid var(--s359-border);
  border-radius: 0.6rem; padding: 0.5rem 0; min-width: 16rem; z-index: 1000;
  box-shadow: 0 0.6rem 1.6rem rgba(0,0,0,0.5);
}
.s359-nav-open { display: block; }
.s359-nav-menu a { display: block; padding: 0.9rem 1.2rem; color: var(--s359-text); font-size: 1.3rem; border-bottom: 1px solid var(--s359-border); }
.s359-nav-menu a:last-child { border-bottom: none; }
.s359-nav-menu a:hover { background: var(--s359-bg-card); color: var(--s359-primary); text-decoration: none; }

/* Hero / Carousel */
.s359-carousel { position: relative; margin: 1rem 0; border-radius: 0.8rem; overflow: hidden; }
.s359-slides { position: relative; height: 18rem; }
.s359-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; cursor: pointer; }
.s359-slide img { width: 100%; height: 100%; object-fit: cover; }
.s359-slide-active { opacity: 1; }
.s359-slide-cap { position: absolute; left: 1rem; bottom: 1rem; background: rgba(26,26,26,0.7); color: var(--s359-primary); padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 1.3rem; font-weight: 700; }
.s359-dots { position: absolute; bottom: 0.6rem; right: 1rem; display: flex; gap: 0.4rem; }
.s359-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; }
.s359-dot-active { background: var(--s359-primary); }

/* Sections */
.s359-section { padding: 1.5rem 0; }
.s359-section-title { font-size: 1.8rem; font-weight: 800; color: var(--s359-primary); margin-bottom: 0.6rem; }
.s359-section-sub { color: var(--s359-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.s359-cat-title { font-size: 1.6rem; font-weight: 800; color: var(--s359-primary); margin: 1.5rem 0 0.8rem; border-left: 3px solid var(--s359-primary); padding-left: 0.8rem; }

/* Game grid - compact icon grid */
.s359-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.s359-game-card { background: var(--s359-bg-card); border: 1px solid var(--s359-border); border-radius: 0.6rem; overflow: hidden; cursor: pointer; transition: transform 0.15s; }
.s359-game-card:active { transform: scale(0.95); }
.s359-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.s359-game-name { padding: 0.4rem 0.3rem; font-size: 1.05rem; color: var(--s359-text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cards / content blocks */
.s359-card { background: var(--s359-bg-card); border: 1px solid var(--s359-border); border-radius: 0.8rem; padding: 1.2rem; margin-bottom: 1rem; }
.s359-card h3 { color: var(--s359-primary); font-size: 1.5rem; margin-bottom: 0.5rem; }
.s359-card p { color: var(--s359-text); font-size: 1.25rem; line-height: 1.6rem; }

/* FAQ */
.s359-faq-item { background: var(--s359-bg-card); border: 1px solid var(--s359-border); border-radius: 0.6rem; margin-bottom: 0.7rem; overflow: hidden; }
.s359-faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--s359-text); font-size: 1.3rem; font-weight: 700; padding: 1rem 1.2rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.s359-faq-q .s359-icon { color: var(--s359-primary); transition: transform 0.2s; }
.s359-faq-item.s359-faq-open .s359-icon { transform: rotate(45deg); }
.s359-faq-a { display: none; padding: 0 1.2rem 1rem; color: var(--s359-muted); font-size: 1.2rem; line-height: 1.6rem; }
.s359-faq-open .s359-faq-a { display: block; }

/* Testimonial */
.s359-testi { background: var(--s359-bg-card); border: 1px solid var(--s359-border); border-radius: 0.6rem; padding: 1rem; margin-bottom: 0.7rem; }
.s359-testi-name { color: var(--s359-primary); font-weight: 700; font-size: 1.25rem; }
.s359-testi-text { color: var(--s359-text); font-size: 1.2rem; margin-top: 0.3rem; }

/* Payment / winners list */
.s359-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s359-chip { background: var(--s359-bg-card); border: 1px solid var(--s359-border); border-radius: 1.2rem; padding: 0.4rem 0.9rem; font-size: 1.15rem; color: var(--s359-muted); }
.s359-winner { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--s359-border); font-size: 1.2rem; }
.s359-winner:last-child { border-bottom: none; }
.s359-winner .s359-amt { color: var(--s359-primary); font-weight: 700; }

/* CTA strip */
.s359-cta { background: linear-gradient(135deg, var(--s359-primary), var(--s359-pink-deep)); color: #1A1A1A; padding: 1.2rem; border-radius: 0.8rem; text-align: center; margin: 1.5rem 0; }
.s359-cta h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.s359-cta p { font-size: 1.2rem; margin-bottom: 0.8rem; }
.s359-cta .s359-btn { background: #1A1A1A; color: var(--s359-primary); }

/* Footer */
.s359-footer { background: var(--s359-bg-soft); border-top: 1px solid var(--s359-border); padding: 1.5rem 1.2rem 7rem; margin-top: 1.5rem; }
.s359-footer h4 { color: var(--s359-primary); font-size: 1.35rem; margin-bottom: 0.5rem; }
.s359-footer p { color: var(--s359-muted); font-size: 1.15rem; line-height: 1.6rem; margin-bottom: 0.8rem; }
.s359-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.6rem 0 1rem; }
.s359-footer-links a { color: var(--s359-text); font-size: 1.15rem; }
.s359-footer-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.s359-footer-btns .s359-btn { flex: 1 1 auto; }
.s359-copy { color: var(--s359-muted); font-size: 1.1rem; border-top: 1px solid var(--s359-border); padding-top: 0.8rem; margin-top: 0.8rem; text-align: center; }

/* Bottom nav */
.s359-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 6rem;
  background: #1a1a1a; border-top: 1px solid var(--s359-border);
  display: flex; justify-content: space-around; align-items: center; z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.4);
}
.s359-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5.6rem; background: none; border: none; cursor: pointer;
  color: var(--s359-muted); font-size: 1.05rem; gap: 0.2rem; font-family: inherit;
  transition: color 0.15s, transform 0.15s;
}
.s359-nav-item .material-icons, .s359-nav-item .fas, .s359-nav-item .far, .s359-nav-item .bi { font-size: 2.2rem; }
.s359-nav-item:hover { color: var(--s359-primary); }
.s359-nav-item:active { transform: scale(0.9); }
.s359-nav-item.s359-active { color: var(--s359-primary); }

/* Responsive */
@media (min-width: 769px) {
  .s359-bottom-nav { display: none; }
  body { max-width: 768px; }
  .s359-game-grid { grid-template-columns: repeat(5, 1fr); }
  .s359-slides { height: 24rem; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .s359-game-grid { grid-template-columns: repeat(2, 1fr); }
  .s359-section-title { font-size: 1.6rem; }
}
