/* =========================================================
   jl69.homes - Core theme stylesheet
   Mobile-first HTML5 casino layout (max-width 430px)
   Prefix: s729-
   Palette: #0C0C0C (dark bg) | #F5DEB3 (wheat text)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --s729-bg: #0C0C0C;
  --s729-bg-soft: #151310;
  --s729-bg-card: #1b1812;
  --s729-text: #F5DEB3;
  --s729-text-dim: rgba(245, 222, 179, 0.72);
  --s729-text-faint: rgba(245, 222, 179, 0.45);
  --s729-primary: #F5DEB3;
  --s729-gold: #E8B660;
  --s729-gold-bright: #FFD56B;
  --s729-red: #E0435B;
  --s729-cyan: #2BB6C9;
  --s729-green: #4FB477;
  --s729-purple: #9B6BD8;
  --s729-border: rgba(245, 222, 179, 0.14);
  --s729-border-strong: rgba(245, 222, 179, 0.28);
  --s729-shadow: 0 0.6rem 2.4rem rgba(0, 0, 0, 0.55);
  --s729-radius: 1.2rem;
  --s729-radius-sm: 0.8rem;
  --s729-header-h: 6rem;
  --s729-bottom-h: 6.4rem;
  --s729-gradient-gold: linear-gradient(135deg, #FFD56B 0%, #E8B660 50%, #B9842A 100%);
  --s729-gradient-red: linear-gradient(135deg, #FF6B81 0%, #E0435B 100%);
  --s729-gradient-dark: linear-gradient(180deg, #1b1812 0%, #0C0C0C 100%);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--s729-bg);
  color: var(--s729-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--s729-gold); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.s729-wrapper { max-width: 430px; margin: 0 auto; position: relative; min-height: 100vh; }
.s729-main { padding-top: var(--s729-header-h); padding-bottom: calc(var(--s729-bottom-h) + 2rem); }
.s729-container { padding: 0 1.2rem; }
.s729-section { padding: 2.4rem 1.2rem; }
.s729-section-alt { background: var(--s729-bg-soft); }

/* ---------- Header ---------- */
.s729-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(1rem);
  border-bottom: 1px solid var(--s729-border);
}
.s729-header-inner {
  max-width: 430px; margin: 0 auto;
  height: var(--s729-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; gap: 0.8rem;
}
.s729-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.s729-brand-logo {
  width: 3.4rem; height: 3.4rem; border-radius: 0.8rem;
  border: 1px solid var(--s729-border-strong);
  object-fit: cover;
}
.s729-brand-name { font-size: 1.9rem; font-weight: 800; letter-spacing: 0.05rem; color: var(--s729-gold-bright); white-space: nowrap; }
.s729-brand-name span { color: var(--s729-text); }
.s729-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s729-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; font-size: 1.3rem; padding: 0.8rem 1.4rem;
  border-radius: 2rem; min-height: 3.6rem; transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.s729-btn:active { transform: scale(0.96); }
.s729-btn-login { background: transparent; border: 1px solid var(--s729-border-strong); color: var(--s729-text); }
.s729-btn-register { background: var(--s729-gradient-gold); color: #1a1206; box-shadow: 0 0.4rem 1.2rem rgba(232, 182, 96, 0.3); }
.s729-menu-toggle {
  width: 3.6rem; height: 3.6rem; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 0.45rem;
  border-radius: 0.8rem; border: 1px solid var(--s729-border);
}
.s729-menu-toggle span { display: block; width: 1.8rem; height: 0.18rem; background: var(--s729-text); border-radius: 0.2rem; transition: 0.25s; }
.s729-menu-toggle.is-open span:nth-child(1) { transform: translateY(0.63rem) rotate(45deg); }
.s729-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.s729-menu-toggle.is-open span:nth-child(3) { transform: translateY(-0.63rem) rotate(-45deg); }

/* ---------- Mobile dropdown menu ---------- */
.s729-mobile-menu {
  position: fixed; top: var(--s729-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--s729-bg-soft);
  border-bottom: 1px solid var(--s729-border);
  max-height: 0; overflow: hidden; transition: max-height 0.32s ease;
}
.s729-mobile-menu.is-open { max-height: 60rem; }
.s729-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 1rem 1.2rem 1.6rem; }
.s729-mobile-menu a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1rem; font-size: 1.5rem; font-weight: 600;
  border-bottom: 1px solid var(--s729-border); color: var(--s729-text);
}
.s729-mobile-menu a i, .s729-mobile-menu a .material-icons { font-size: 2rem; color: var(--s729-gold); width: 2.4rem; text-align: center; }
.s729-mobile-menu a:active { background: rgba(245, 222, 179, 0.06); }

/* ---------- Hero carousel ---------- */
.s729-carousel { position: relative; overflow: hidden; border-radius: 0 0 1.6rem 1.6rem; }
.s729-carousel-track { display: flex; transition: transform 0.55s ease; }
.s729-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.s729-carousel-slide img { width: 100%; height: 20rem; object-fit: cover; }
.s729-carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12,12,12,0.85) 100%);
}
.s729-carousel-caption {
  position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.2rem; z-index: 2;
}
.s729-carousel-caption h2 { font-size: 2rem; font-weight: 800; color: #fff; text-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.6); }
.s729-carousel-caption p { font-size: 1.25rem; color: var(--s729-text-dim); margin-top: 0.3rem; }
.s729-carousel-dots { position: absolute; bottom: 0.8rem; right: 1.4rem; display: flex; gap: 0.5rem; z-index: 3; }
.s729-carousel-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(245,222,179,0.4); transition: 0.25s; }
.s729-carousel-dot.is-active { background: var(--s729-gold-bright); width: 2rem; border-radius: 0.4rem; }

/* ---------- Headings ---------- */
.s729-h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.25; color: var(--s729-text); }
.s729-h1 span { color: var(--s729-gold-bright); }
.s729-section-title {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 1.8rem; font-weight: 800; margin-bottom: 1.4rem; color: var(--s729-text);
}
.s729-section-title i, .s729-section-title .material-icons { color: var(--s729-gold-bright); font-size: 2.2rem; }
.s729-section-title em { font-style: normal; color: var(--s729-gold); }
.s729-subtitle { font-size: 1.4rem; color: var(--s729-text-dim); margin-bottom: 1.2rem; }
.s729-anchor-target { scroll-margin-top: calc(var(--s729-header-h) + 1rem); }

/* ---------- Game grid ---------- */
.s729-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.s729-game-card {
  background: var(--s729-bg-card); border: 1px solid var(--s729-border);
  border-radius: var(--s729-radius-sm); overflow: hidden; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease; position: relative;
}
.s729-game-card:active { transform: scale(0.96); border-color: var(--s729-border-strong); }
.s729-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.s729-game-card-name { font-size: 1.15rem; line-height: 1.3; padding: 0.5rem 0.4rem 0.7rem; text-align: center; color: var(--s729-text); min-height: 3.2rem; display: flex; align-items: center; justify-content: center; }
.s729-game-badge { position: absolute; top: 0.4rem; left: 0.4rem; background: var(--s729-red); color: #fff; font-size: 0.95rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 0.4rem; }
.s729-cat-header { display: flex; align-items: center; justify-content: space-between; margin: 1.6rem 0 1rem; }
.s729-cat-header h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.6rem; font-weight: 800; }
.s729-cat-header h3 i, .s729-cat-header h3 .material-icons { color: var(--s729-gold-bright); font-size: 2rem; }
.s729-cat-tag { font-size: 1.1rem; color: var(--s729-text-faint); }

/* ---------- Promo link / inline link ---------- */
.s729-link { color: var(--s729-gold-bright); font-weight: 700; cursor: pointer; }
.s729-link-strong { color: var(--s729-gold-bright); font-weight: 800; text-decoration: underline; cursor: pointer; }
.s729-cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.s729-cta { flex: 1; min-width: 14rem; }

/* ---------- Cards ---------- */
.s729-card {
  background: var(--s729-bg-card); border: 1px solid var(--s729-border);
  border-radius: var(--s729-radius); padding: 1.6rem; margin-bottom: 1.2rem;
}
.s729-card h3 { font-size: 1.55rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--s729-gold-bright); }
.s729-card p { color: var(--s729-text-dim); font-size: 1.35rem; }
.s729-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.s729-feature-item { background: var(--s729-bg-card); border: 1px solid var(--s729-border); border-radius: var(--s729-radius-sm); padding: 1.2rem; text-align: center; }
.s729-feature-item i, .s729-feature-item .material-icons { font-size: 2.4rem; color: var(--s729-gold-bright); }
.s729-feature-item strong { display: block; margin-top: 0.5rem; font-size: 1.3rem; color: var(--s729-text); }
.s729-feature-item span { display: block; font-size: 1.15rem; color: var(--s729-text-dim); margin-top: 0.2rem; }

/* ---------- RTP table ---------- */
.s729-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.s729-rtp-table th, .s729-rtp-table td { padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--s729-border); text-align: left; }
.s729-rtp-table th { color: var(--s729-gold-bright); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.05rem; }
.s729-rtp-table td:last-child { color: var(--s729-green); font-weight: 700; text-align: right; }
.s729-rtp-bar { height: 0.6rem; background: rgba(245,222,179,0.1); border-radius: 0.3rem; overflow: hidden; margin-top: 0.4rem; }
.s729-rtp-bar span { display: block; height: 100%; background: var(--s729-gradient-gold); }

/* ---------- Testimonials ---------- */
.s729-testimonial { background: var(--s729-bg-card); border: 1px solid var(--s729-border); border-radius: var(--s729-radius-sm); padding: 1.2rem; margin-bottom: 0.9rem; }
.s729-testimonial-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.s729-avatar { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--s729-gradient-gold); display: flex; align-items: center; justify-content: center; color: #1a1206; font-weight: 800; font-size: 1.4rem; }
.s729-testimonial-head strong { font-size: 1.35rem; color: var(--s729-text); }
.s729-stars { color: var(--s729-gold-bright); font-size: 1.1rem; }
.s729-testimonial p { font-size: 1.25rem; color: var(--s729-text-dim); }

/* ---------- Payment / winners ---------- */
.s729-chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s729-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; background: var(--s729-bg-card); border: 1px solid var(--s729-border); border-radius: 2rem; font-size: 1.2rem; font-weight: 600; }
.s729-chip i, .s729-chip .material-icons { color: var(--s729-gold-bright); font-size: 1.6rem; }
.s729-winner-row { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--s729-border); }
.s729-winner-row:last-child { border-bottom: none; }
.s729-winner-name { font-size: 1.3rem; font-weight: 600; }
.s729-winner-name span { display: block; font-size: 1.1rem; color: var(--s729-text-faint); }
.s729-winner-amount { color: var(--s729-green); font-weight: 800; font-size: 1.4rem; }

/* ---------- App CTA ---------- */
.s729-app-cta { background: var(--s729-gradient-dark); border: 1px solid var(--s729-border-strong); border-radius: var(--s729-radius); padding: 1.6rem; text-align: center; }
.s729-app-cta h3 { font-size: 1.7rem; color: var(--s729-gold-bright); margin-bottom: 0.4rem; }
.s729-app-cta p { color: var(--s729-text-dim); font-size: 1.3rem; margin-bottom: 1.2rem; }
.s729-app-btns { display: flex; flex-direction: column; gap: 0.7rem; }

/* ---------- FAQ ---------- */
.s729-faq-item { background: var(--s729-bg-card); border: 1px solid var(--s729-border); border-radius: var(--s729-radius-sm); margin-bottom: 0.8rem; overflow: hidden; }
.s729-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem; font-size: 1.35rem; font-weight: 700; cursor: pointer; }
.s729-faq-q i { color: var(--s729-gold-bright); transition: transform 0.25s; }
.s729-faq-item.is-open .s729-faq-q i { transform: rotate(180deg); }
.s729-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.2rem; color: var(--s729-text-dim); font-size: 1.25rem; }
.s729-faq-item.is-open .s729-faq-a { max-height: 30rem; padding: 0 1.2rem 1.2rem; }

/* ---------- Footer ---------- */
.s729-footer { background: var(--s729-bg-soft); border-top: 1px solid var(--s729-border); padding: 2.4rem 1.2rem; }
.s729-footer-brand { font-size: 1.3rem; color: var(--s729-text-dim); margin-bottom: 1.4rem; }
.s729-footer-promos { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.6rem; }
.s729-footer-promos .s729-btn { width: 100%; }
.s729-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1.4rem; }
.s729-footer-links a { color: var(--s729-text-dim); font-size: 1.2rem; }
.s729-footer-links a:hover { color: var(--s729-gold-bright); }
.s729-copy { font-size: 1.1rem; color: var(--s729-text-faint); border-top: 1px solid var(--s729-border); padding-top: 1.2rem; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.s729-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--s729-bottom-h);
  background: rgba(12, 12, 12, 0.98);
  border-top: 1px solid var(--s729-border-strong);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -0.4rem 1.6rem rgba(0,0,0,0.5);
}
.s729-bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.25rem; color: var(--s729-text-dim); font-size: 1.05rem; font-weight: 600;
  position: relative; transition: color 0.2s ease; min-width: 6rem;
}
.s729-bottom-nav-item i, .s729-bottom-nav-item .material-icons, .s729-bottom-nav-item ion-icon { font-size: 2.2rem; transition: transform 0.2s ease; }
.s729-bottom-nav-item:active { color: var(--s729-gold-bright); }
.s729-bottom-nav-item:active i, .s729-bottom-nav-item:active .material-icons, .s729-bottom-nav-item:active ion-icon { transform: scale(1.15); }
.s729-bottom-nav-item.is-active { color: var(--s729-gold-bright); }
.s729-bottom-nav-item.is-active::before { content: ""; position: absolute; top: 0; width: 2.4rem; height: 0.25rem; background: var(--s729-gold-bright); border-radius: 0 0 0.3rem 0.3rem; }
.s729-bottom-nav-badge { position: absolute; top: 0.5rem; right: calc(50% - 1.6rem); background: var(--s729-red); color: #fff; font-size: 0.9rem; font-weight: 700; min-width: 1.5rem; height: 1.5rem; padding: 0 0.3rem; border-radius: 0.8rem; display: flex; align-items: center; justify-content: center; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .s729-bottom-nav { display: none; }
  .s729-wrapper { max-width: 768px; }
  .s729-header-inner { max-width: 768px; }
  .s729-mobile-menu-inner { max-width: 768px; }
  .s729-main { padding-bottom: 3rem; }
  .s729-game-grid { grid-template-columns: repeat(5, 1fr); }
  .s729-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .s729-carousel-slide img { height: 28rem; }
}
@media (max-width: 768px) {
  .s729-main { padding-bottom: calc(var(--s729-bottom-h) + 1.6rem); }
}

/* ---------- Utilities ---------- */
.s729-text-center { text-align: center; }
.s729-mt-8 { margin-top: 0.8rem; }
.s729-mt-16 { margin-top: 1.6rem; }
.s729-hide-mobile { display: none; }
@media (min-width: 769px) { .s729-hide-mobile { display: block; } .s729-hide-desktop { display: none; } }
