/* jl99.homes - Core CSS module
 * Prefix: s686-
 * Palette: #FF7F50 (coral), #CCCCCC (light gray), #273746 (dark slate),
 *          #0097A7 (teal), #FFC0CB (pink), #0000FF (blue)
 * Dark = background, light = text. Mobile-first, max-width 430px.
 * Root font 62.5% (1rem = 10px). Comments in English.
 */

:root {
  --s686-primary: #FF7F50;
  --s686-secondary: #0097A7;
  --s686-accent: #FFC0CB;
  --s686-blue: #0000FF;
  --s686-bg: #273746;
  --s686-bg-dark: #1c2832;
  --s686-bg-deep: #0f1820;
  --s686-text: #CCCCCC;
  --s686-text-light: #f4f6f8;
  --s686-text-muted: #9aa8b3;
  --s686-border: rgba(255,255,255,0.08);
  --s686-card: #21303d;
  --s686-shadow: 0 4px 18px rgba(0,0,0,0.35);
  --s686-radius: 12px;
  --s686-radius-lg: 18px;
  --s686-header-h: 56px;
  --s686-bottomnav-h: 62px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--s686-bg-deep);
  color: var(--s686-text-light);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: var(--s686-primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.s686-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.s686-wrapper { width: 100%; }

/* ===== HEADER ===== */
.s686-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--s686-header-h);
  background: linear-gradient(180deg, #1c2832 0%, #273746 100%);
  border-bottom: 1px solid var(--s686-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  transition: box-shadow .25s ease;
  max-width: 430px;
  margin: 0 auto;
}
.s686-header.s686-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,0.5); }

.s686-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--s686-text-light);
  font-weight: 800;
  font-size: 1.8rem;
  text-decoration: none;
}
.s686-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s686-logo .s686-logo-text {
  background: linear-gradient(90deg, var(--s686-primary), var(--s686-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.s686-header-actions { display: flex; align-items: center; gap: .5rem; }

.s686-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: none;
  border-radius: 999px;
  padding: .7rem 1.3rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  min-height: 36px;
  text-decoration: none;
  line-height: 1;
}
.s686-btn:active { transform: scale(.95); }

.s686-btn-register {
  background: linear-gradient(135deg, var(--s686-primary), #ff9d6c);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255,127,80,.35);
}
.s686-btn-login {
  background: transparent;
  color: var(--s686-text-light);
  border: 1.5px solid var(--s686-secondary);
}
.s686-btn-login:active { background: rgba(0,151,167,.15); }

.s686-menu-btn {
  background: transparent;
  border: none;
  color: var(--s686-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: .4rem;
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

/* ===== MOBILE MENU ===== */
.s686-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s;
  z-index: 9998;
}
.s686-menu-backdrop.s686-show { opacity: 1; visibility: visible; }

.s686-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 78%; max-width: 320px;
  height: 100vh;
  background: var(--s686-bg-dark);
  z-index: 9999;
  padding: 2rem 1.5rem;
  transition: right .3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--s686-border);
}
.s686-mobile-menu.s686-open { right: 0; }
.s686-mobile-menu h3 {
  color: var(--s686-primary);
  font-size: 1.5rem;
  margin: 1.5rem 0 .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.s686-mobile-menu a {
  display: block;
  padding: 1rem .8rem;
  color: var(--s686-text-light);
  border-bottom: 1px solid var(--s686-border);
  font-size: 1.4rem;
}
.s686-mobile-menu a:hover { color: var(--s686-primary); background: rgba(255,127,80,.08); text-decoration: none; }
.s686-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none; color: #fff;
  font-size: 2.4rem; cursor: pointer; min-width: 44px; min-height: 44px;
}

/* ===== MAIN ===== */
.s686-main {
  padding-top: var(--s686-header-h);
  padding-bottom: calc(var(--s686-bottomnav-h) + 20px);
}

/* ===== CAROUSEL ===== */
.s686-carousel {
  position: relative;
  width: 100%;
  margin: 1rem 0;
  border-radius: var(--s686-radius-lg);
  overflow: hidden;
  box-shadow: var(--s686-shadow);
  aspect-ratio: 16/9;
}
.s686-slides { position: relative; width: 100%; height: 100%; }
.s686-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.s686-slide.s686-active { opacity: 1; }
.s686-slide img { width: 100%; height: 100%; object-fit: cover; }
.s686-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(15,24,32,.85), transparent);
  color: #fff;
}
.s686-slide-overlay h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.s686-slide-overlay p { font-size: 1.2rem; opacity: .9; }

.s686-carousel-dots {
  position: absolute; bottom: .8rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 5;
}
.s686-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer; transition: background .2s, width .2s;
  border: none;
}
.s686-dot.s686-active { background: var(--s686-primary); width: 22px; border-radius: 4px; }

/* ===== SECTION TITLES ===== */
.s686-section {
  padding: 1.5rem 0;
}
.s686-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--s686-text-light);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.s686-section-title::before {
  content: "";
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--s686-primary), var(--s686-accent));
  border-radius: 2px;
}
.s686-section-sub {
  color: var(--s686-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ===== GAME GRID ===== */
.s686-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.s686-game-tile {
  background: var(--s686-card);
  border-radius: var(--s686-radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform .15s, box-shadow .2s;
  border: 1px solid var(--s686-border);
}
.s686-game-tile:active { transform: scale(.96); }
.s686-game-tile img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
}
.s686-game-name {
  padding: .5rem .4rem;
  font-size: 1.1rem;
  color: var(--s686-text-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(15,24,32,.6);
}
.s686-game-tile:hover .s686-game-name { color: var(--s686-primary); }

/* Category chip on section header */
.s686-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(0,151,167,.15);
  color: var(--s686-secondary);
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== FILTER TABS ===== */
.s686-filter-tabs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.s686-filter-tab {
  flex: 0 0 auto;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  background: var(--s686-card);
  color: var(--s686-text);
  font-size: 1.2rem;
  cursor: pointer;
  border: 1px solid var(--s686-border);
  white-space: nowrap;
}
.s686-filter-tab.s686-active {
  background: linear-gradient(135deg, var(--s686-primary), #ff9d6c);
  color: #fff;
  border-color: transparent;
}

/* ===== CARDS / GENERIC ===== */
.s686-card {
  background: var(--s686-card);
  border-radius: var(--s686-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--s686-border);
  box-shadow: var(--s686-shadow);
}
.s686-card h3 { color: var(--s686-primary); font-size: 1.6rem; margin-bottom: .6rem; }
.s686-card p { color: var(--s686-text); font-size: 1.35rem; line-height: 1.5; }
.s686-card a { color: var(--s686-secondary); font-weight: 600; }

/* Feature list */
.s686-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.s686-feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--s686-card); padding: 1rem;
  border-radius: var(--s686-radius); border: 1px solid var(--s686-border);
}
.s686-feature-icon {
  flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--s686-primary), var(--s686-accent));
  color: #fff; font-size: 2rem;
}
.s686-feature-text h4 { color: var(--s686-text-light); font-size: 1.4rem; margin-bottom: .3rem; }
.s686-feature-text p { color: var(--s686-text-muted); font-size: 1.25rem; }

/* Steps */
.s686-steps { counter-reset: step; }
.s686-step {
  position: relative;
  padding: .8rem 0 .8rem 3.2rem;
  margin-bottom: .8rem;
  border-left: 2px solid var(--s686-secondary);
  margin-left: 1rem;
  padding-left: 1.5rem;
}
.s686-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: -1.4rem; top: .5rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--s686-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
}
.s686-step h4 { font-size: 1.35rem; color: var(--s686-text-light); margin-bottom: .2rem; }
.s686-step p { font-size: 1.25rem; color: var(--s686-text-muted); }

/* Promo CTA banner */
.s686-cta {
  background: linear-gradient(135deg, var(--s686-primary), var(--s686-accent));
  border-radius: var(--s686-radius-lg);
  padding: 1.4rem;
  text-align: center;
  margin: 1rem 0;
  color: #fff;
}
.s686-cta h3 { font-size: 1.7rem; margin-bottom: .3rem; }
.s686-cta p { font-size: 1.25rem; opacity: .95; margin-bottom: .8rem; }
.s686-cta .s686-btn {
  background: #fff; color: var(--s686-primary);
  font-size: 1.4rem; padding: .8rem 2rem;
}

/* Promo link inline (text link style) */
.s686-promo-link {
  color: var(--s686-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.s686-promo-link:hover { color: var(--s686-accent); }

/* Winners showcase */
.s686-winner {
  display: flex; align-items: center; gap: .8rem;
  background: var(--s686-card); padding: .8rem;
  border-radius: var(--s686-radius); margin-bottom: .6rem;
  border: 1px solid var(--s686-border);
}
.s686-winner-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--s686-secondary), var(--s686-primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.4rem;
}
.s686-winner-info { flex: 1; }
.s686-winner-name { font-size: 1.3rem; color: var(--s686-text-light); font-weight: 600; }
.s686-winner-game { font-size: 1.15rem; color: var(--s686-text-muted); }
.s686-winner-amount { color: var(--s686-primary); font-weight: 800; font-size: 1.4rem; }

/* Testimonials */
.s686-testimonial {
  background: var(--s686-card); padding: 1.1rem;
  border-radius: var(--s686-radius); margin-bottom: .8rem;
  border: 1px solid var(--s686-border);
}
.s686-testimonial-stars { color: #ffd54f; font-size: 1.2rem; margin-bottom: .3rem; }
.s686-testimonial-text { font-size: 1.3rem; color: var(--s686-text); margin-bottom: .5rem; }
.s686-testimonial-author { font-size: 1.15rem; color: var(--s686-text-muted); }

/* Payment methods */
.s686-pay-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
}
.s686-pay-item {
  background: var(--s686-card); border-radius: 10px;
  padding: .8rem; text-align: center; border: 1px solid var(--s686-border);
  font-size: 1.1rem; color: var(--s686-text);
}
.s686-pay-item .s686-pay-icon { font-size: 2rem; color: var(--s686-secondary); margin-bottom: .3rem; }

/* App download */
.s686-app-cta {
  background: linear-gradient(135deg, var(--s686-bg), var(--s686-bg-dark));
  border-radius: var(--s686-radius-lg);
  padding: 1.4rem; text-align: center;
  border: 1px solid var(--s686-border); margin: 1rem 0;
}
.s686-app-cta h3 { color: var(--s686-primary); font-size: 1.7rem; margin-bottom: .3rem; }
.s686-app-cta p { color: var(--s686-text); font-size: 1.25rem; margin-bottom: .8rem; }
.s686-app-buttons { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.s686-app-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; color: #111;
  padding: .7rem 1.2rem; border-radius: 8px;
  font-weight: 700; font-size: 1.25rem; cursor: pointer; min-height: 44px;
}
.s686-app-btn:active { transform: scale(.96); }

/* FAQ */
.s686-faq-item {
  background: var(--s686-card); border-radius: var(--s686-radius);
  margin-bottom: .6rem; border: 1px solid var(--s686-border);
  overflow: hidden;
}
.s686-faq-q {
  width: 100%; text-align: left;
  background: transparent; border: none; color: var(--s686-text-light);
  padding: 1rem 1.2rem; font-size: 1.35rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  min-height: 44px;
}
.s686-faq-q .s686-faq-icon { color: var(--s686-primary); font-size: 1.4rem; transition: transform .2s; }
.s686-faq-item.s686-open .s686-faq-icon { transform: rotate(45deg); }
.s686-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 1.2rem;
  color: var(--s686-text); font-size: 1.3rem;
}
.s686-faq-item.s686-open .s686-faq-a { max-height: 400px; padding: 0 1.2rem 1rem; }

/* Payments / security badges */
.s686-badge-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.s686-badge {
  background: rgba(0,151,167,.15); color: var(--s686-secondary);
  padding: .4rem .9rem; border-radius: 999px;
  font-size: 1.15rem; font-weight: 600;
}

/* ===== FOOTER ===== */
.s686-footer {
  background: var(--s686-bg-dark);
  border-top: 1px solid var(--s686-border);
  padding: 1.5rem 1.2rem 2rem;
  margin-top: 1rem;
}
.s686-footer-brand {
  color: var(--s686-primary); font-weight: 800; font-size: 1.6rem; margin-bottom: .5rem;
}
.s686-footer-desc { color: var(--s686-text-muted); font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.5; }
.s686-footer-links {
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-bottom: 1rem;
}
.s686-footer-links a { color: var(--s686-text); font-size: 1.2rem; }
.s686-footer-links a:hover { color: var(--s686-primary); }
.s686-footer-promo {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem;
}
.s686-footer-promo .s686-btn { font-size: 1.15rem; padding: .55rem 1rem; }
.s686-footer-copy {
  color: var(--s686-text-muted); font-size: 1.1rem;
  border-top: 1px solid var(--s686-border); padding-top: .8rem;
}

/* ===== BOTTOM NAV ===== */
.s686-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--s686-bottomnav-h);
  background: linear-gradient(180deg, #1c2832, #0f1820);
  border-top: 1px solid var(--s686-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -2px 14px rgba(0,0,0,.4);
}
.s686-bottomnav-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none;
  color: var(--s686-text-muted);
  font-size: 1rem;
  min-width: 60px; min-height: 60px;
  padding: .3rem;
  cursor: pointer;
  text-decoration: none;
  gap: .2rem;
  transition: color .2s, transform .15s;
  position: relative;
}
.s686-bottomnav-btn .s686-nav-icon { font-size: 2.2rem; line-height: 1; }
.s686-bottomnav-btn .s686-nav-label { font-size: 1rem; line-height: 1; }
.s686-bottomnav-btn:active { transform: scale(.92); }
.s686-bottomnav-btn.s686-current {
  color: var(--s686-primary);
}
.s686-bottomnav-btn.s686-current::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--s686-primary);
}
.s686-bottomnav-btn.s686-promo {
  color: var(--s686-accent);
}
.s686-bottomnav-btn.s686-promo .s686-nav-icon {
  background: linear-gradient(135deg, var(--s686-primary), var(--s686-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Desktop: hide bottom nav and limit header width */
@media (min-width: 769px) {
  .s686-bottomnav { display: none; }
  body { max-width: 430px; }
  .s686-main { padding-bottom: 2rem; }
}

/* Small phone tweaks */
@media (max-width: 360px) {
  .s686-game-grid { grid-template-columns: repeat(2, 1fr); }
  .s686-section-title { font-size: 1.7rem; }
  .s686-pay-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Utility */
.s686-text-center { text-align: center; }
.s686-mt-1 { margin-top: 1rem; }
.s686-mb-1 { margin-bottom: 1rem; }
.s686-hidden { display: none !important; }
.s686-prose p { margin-bottom: .8rem; color: var(--s686-text); font-size: 1.35rem; line-height: 1.6; }
.s686-prose h2 { color: var(--s686-text-light); font-size: 1.7rem; margin: 1.2rem 0 .6rem; }
.s686-prose h3 { color: var(--s686-primary); font-size: 1.45rem; margin: 1rem 0 .4rem; }
.s686-prose ul { margin: .5rem 0 .8rem 1.5rem; color: var(--s686-text); font-size: 1.3rem; }
.s686-prose li { margin-bottom: .3rem; }
