/* ============================================================
 * OKK Homes - Core stylesheet (design-124f.css)
 * All custom classes use the "w124f-" prefix.
 * Palette: #DEB887 | #D2B48C | #1A1A2E | #CCCCCC | #FFE4B5
 * Dark = background, light = text/accent.
 * Mobile-first. Root font 62.5% -> 1rem = 10px.
 * ============================================================ */

:root {
  --w124f-primary: #DEB887;
  --w124f-secondary: #D2B48C;
  --w124f-bg: #1A1A2E;
  --w124f-bg-soft: #21213a;
  --w124f-bg-deep: #14142a;
  --w124f-text: #CCCCCC;
  --w124f-text-strong: #FFE4B5;
  --w124f-line: rgba(222, 184, 135, 0.18);
  --w124f-gold: #DEB887;
  --w124f-gold-soft: #FFE4B5;
  --w124f-danger: #e0413e;
  --w124f-success: #2ecc71;
  --w124f-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --w124f-radius: 14px;
  --w124f-radius-sm: 10px;
}

/* ---------- Reset ---------- */
*, *::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: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--w124f-bg);
  color: var(--w124f-text);
  font-size: 1.5rem;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--w124f-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.w124f-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.w124f-wrapper { width: 100%; }
.w124f-hidden { display: none !important; }
.w124f-text-gold { color: var(--w124f-text-strong); font-weight: 700; }

/* ---------- Header ---------- */
.w124f-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1f1f38 0%, #1A1A2E 100%);
  border-bottom: 1px solid var(--w124f-line);
  box-shadow: var(--w124f-shadow);
}
.w124f-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.7rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.w124f-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.w124f-brand-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.w124f-brand-name { font-size: 1.8rem; font-weight: 800; color: var(--w124f-text-strong); letter-spacing: 0.5px; }
.w124f-brand-name span { color: var(--w124f-primary); }
.w124f-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w124f-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.35rem; font-weight: 700; padding: 0.7rem 1.2rem;
  border-radius: 999px; min-height: 36px; transition: transform .15s ease, filter .15s ease;
}
.w124f-btn:active { transform: scale(0.96); }
.w124f-btn-login { background: transparent; color: var(--w124f-text-strong); border: 1.5px solid var(--w124f-primary); }
.w124f-btn-register { background: linear-gradient(135deg, #DEB887, #D2B48C); color: #1A1A2E; box-shadow: 0 4px 12px rgba(222,184,135,0.35); }
.w124f-btn-block { display: flex; width: 100%; padding: 1.1rem; font-size: 1.5rem; }
.w124f-menu-toggle {
  width: 40px; height: 40px; border-radius: 10px; display: none;
  align-items: center; justify-content: center; color: var(--w124f-text-strong);
  background: rgba(222, 184, 135, 0.12);
}
.w124f-menu-toggle i { font-size: 2rem; }

/* ---------- Mobile menu (slide-down) ---------- */
.w124f-mobile-menu {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 9999;
  background: var(--w124f-bg-deep); border-bottom: 1px solid var(--w124f-line);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.w124f-mobile-menu.w124f-active { max-height: 80vh; overflow-y: auto; box-shadow: var(--w124f-shadow); }
.w124f-mobile-menu ul { padding: 0.6rem 1.2rem 1rem; }
.w124f-mobile-menu li a, .w124f-mobile-menu li button {
  display: flex; align-items: center; gap: 0.8rem; width: 100%;
  padding: 1rem 0.4rem; font-size: 1.45rem; color: var(--w124f-text);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.w124f-mobile-menu li a:active { color: var(--w124f-text-strong); }
.w124f-mobile-menu li i { color: var(--w124f-primary); font-size: 1.7rem; width: 24px; text-align: center; }

/* ---------- Body lock when menu open ---------- */
body.w124f-lock { overflow: hidden; }

/* ---------- Main / sections ---------- */
main { padding-top: 64px; }
.w124f-section { padding: 2rem 0; }
.w124f-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.w124f-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--w124f-text-strong);
  display: flex; align-items: center; gap: 0.6rem;
}
.w124f-section-title i { color: var(--w124f-primary); font-size: 2rem; }
.w124f-section-link { font-size: 1.3rem; color: var(--w124f-primary); font-weight: 600; }

/* ---------- Hero / Carousel ---------- */
.w124f-hero { padding-top: 1.2rem; }
.w124f-carousel {
  position: relative; border-radius: var(--w124f-radius); overflow: hidden;
  box-shadow: var(--w124f-shadow); background: var(--w124f-bg-soft);
}
.w124f-slide {
  position: relative; display: none; cursor: pointer;
}
.w124f-slide.w124f-active { display: block; }
.w124f-slide img { width: 100%; height: 180px; object-fit: cover; }
.w124f-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(20,20,42,0.92));
}
.w124f-slide-title { font-size: 1.6rem; font-weight: 800; color: var(--w124f-text-strong); margin-bottom: 0.3rem; }
.w124f-slide-sub { font-size: 1.25rem; color: var(--w124f-primary); }
.w124f-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.w124f-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: all .2s; }
.w124f-dot.w124f-active { background: var(--w124f-primary); width: 22px; border-radius: 999px; }

/* ---------- H1 headline ---------- */
.w124f-headline { padding: 1.4rem 0 0.4rem; text-align: center; }
.w124f-headline h1 {
  font-size: 2.3rem; font-weight: 900; color: var(--w124f-text-strong); line-height: 1.25;
}
.w124f-headline h1 span { color: var(--w124f-primary); }
.w124f-headline p { margin-top: 0.6rem; font-size: 1.35rem; color: var(--w124f-text); }

/* ---------- Promo CTA bar ---------- */
.w124f-cta-bar {
  display: flex; gap: 0.7rem; margin: 1rem 0 0.4rem;
}
.w124f-cta-bar .w124f-btn { flex: 1; }

/* ---------- Game grid ---------- */
.w124f-game-group { margin-bottom: 2.2rem; }
.w124f-cat-head {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 1px dashed var(--w124f-line);
}
.w124f-cat-badge {
  font-size: 1.25rem; font-weight: 800; padding: 0.3rem 0.9rem; border-radius: 999px;
  background: rgba(222,184,135,0.15); color: var(--w124f-text-strong); display: inline-flex; align-items: center; gap: 0.4rem;
}
.w124f-cat-badge i { font-size: 1.5rem; color: var(--w124f-primary); }
.w124f-cat-count { font-size: 1.2rem; color: var(--w124f-text); opacity: 0.7; }
.w124f-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.w124f-game-card {
  background: var(--w124f-bg-soft); border: 1px solid var(--w124f-line); border-radius: var(--w124f-radius-sm);
  padding: 0.5rem; text-align: center; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.w124f-game-card:active { transform: scale(0.95); box-shadow: 0 6px 14px rgba(222,184,135,0.25); }
.w124f-game-thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover; background: #0d0d1d;
}
.w124f-game-name {
  font-size: 1.1rem; font-weight: 600; color: var(--w124f-text-strong); line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%;
}

/* ---------- Cards / features ---------- */
.w124f-card {
  background: var(--w124f-bg-soft); border: 1px solid var(--w124f-line); border-radius: var(--w124f-radius);
  padding: 1.3rem; box-shadow: var(--w124f-shadow);
}
.w124f-card h2, .w124f-card h3 { color: var(--w124f-text-strong); }
.w124f-card h2 { font-size: 1.7rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.w124f-card h2 i { color: var(--w124f-primary); }
.w124f-card p { font-size: 1.35rem; color: var(--w124f-text); margin-bottom: 0.6rem; }
.w124f-card ul { padding-left: 1.2rem; }
.w124f-card li { font-size: 1.35rem; margin-bottom: 0.4rem; color: var(--w124f-text); position: relative; padding-left: 1rem; }
.w124f-card li::before { content: "•"; color: var(--w124f-primary); position: absolute; left: 0; }

/* ---------- Steps ---------- */
.w124f-steps { display: flex; flex-direction: column; gap: 0.9rem; }
.w124f-step { display: flex; gap: 0.9rem; align-items: flex-start; }
.w124f-step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #DEB887, #D2B48C); color: #1A1A2E;
  font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
}
.w124f-step-body h4 { font-size: 1.4rem; color: var(--w124f-text-strong); margin-bottom: 0.2rem; }
.w124f-step-body p { font-size: 1.3rem; color: var(--w124f-text); }

/* ---------- Feature grid ---------- */
.w124f-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.w124f-feature {
  background: var(--w124f-bg-soft); border: 1px solid var(--w124f-line); border-radius: var(--w124f-radius-sm);
  padding: 1rem; text-align: center;
}
.w124f-feature i { font-size: 2.4rem; color: var(--w124f-primary); margin-bottom: 0.4rem; }
.w124f-feature h4 { font-size: 1.35rem; color: var(--w124f-text-strong); margin-bottom: 0.3rem; }
.w124f-feature p { font-size: 1.2rem; color: var(--w124f-text); }

/* ---------- RTP stat strip ---------- */
.w124f-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.8rem; }
.w124f-stat { background: var(--w124f-bg-deep); border-radius: var(--w124f-radius-sm); padding: 0.9rem; text-align: center; border: 1px solid var(--w124f-line); }
.w124f-stat-num { font-size: 1.9rem; font-weight: 900; color: var(--w124f-text-strong); }
.w124f-stat-num span { color: var(--w124f-primary); }
.w124f-stat-label { font-size: 1.15rem; color: var(--w124f-text); opacity: 0.8; margin-top: 0.2rem; }

/* ---------- FAQ ---------- */
.w124f-faq-item { background: var(--w124f-bg-soft); border: 1px solid var(--w124f-line); border-radius: var(--w124f-radius-sm); margin-bottom: 0.7rem; overflow: hidden; }
.w124f-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem; font-size: 1.4rem; font-weight: 700; color: var(--w124f-text-strong); text-align: left; }
.w124f-faq-q i { color: var(--w124f-primary); transition: transform .2s; }
.w124f-faq-item.w124f-open .w124f-faq-q i { transform: rotate(45deg); }
.w124f-faq-a { max-height: 0; overflow: hidden; padding: 0 1.1rem; transition: max-height .25s ease, padding .25s ease; color: var(--w124f-text); font-size: 1.3rem; }
.w124f-faq-item.w124f-open .w124f-faq-a { max-height: 320px; padding: 0 1.1rem 1.1rem; }

/* ---------- Testimonial ---------- */
.w124f-review { background: var(--w124f-bg-soft); border: 1px solid var(--w124f-line); border-radius: var(--w124f-radius-sm); padding: 1rem; margin-bottom: 0.7rem; }
.w124f-review-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.w124f-review-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #DEB887, #D2B48C); color: #1A1A2E; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.w124f-review-name { font-size: 1.3rem; font-weight: 700; color: var(--w124f-text-strong); }
.w124f-review-stars { color: #f5c542; font-size: 1.2rem; }
.w124f-review p { font-size: 1.3rem; color: var(--w124f-text); }

/* ---------- Payment chips ---------- */
.w124f-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.w124f-pay { background: var(--w124f-bg-deep); border: 1px solid var(--w124f-line); border-radius: 999px; padding: 0.5rem 1rem; font-size: 1.25rem; color: var(--w124f-text-strong); display: inline-flex; align-items: center; gap: 0.4rem; }
.w124f-pay i { color: var(--w124f-primary); }

/* ---------- Winners ---------- */
.w124f-winner { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.w124f-winner:last-child { border-bottom: none; }
.w124f-winner-name { font-size: 1.3rem; color: var(--w124f-text); }
.w124f-winner-name strong { color: var(--w124f-text-strong); }
.w124f-winner-amount { font-size: 1.4rem; font-weight: 800; color: var(--w124f-primary); }

/* ---------- App download CTA ---------- */
.w124f-app-cta { background: linear-gradient(135deg, #211d3a, #2a2342); border: 1px solid var(--w124f-line); border-radius: var(--w124f-radius); padding: 1.4rem; text-align: center; }
.w124f-app-cta h3 { color: var(--w124f-text-strong); font-size: 1.6rem; margin-bottom: 0.5rem; }
.w124f-app-cta p { font-size: 1.3rem; color: var(--w124f-text); margin-bottom: 1rem; }
.w124f-app-buttons { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.w124f-footer {
  background: var(--w124f-bg-deep); border-top: 1px solid var(--w124f-line); padding: 2rem 0 120px; margin-top: 2rem;
}
.w124f-footer-brand { font-size: 1.5rem; font-weight: 800; color: var(--w124f-text-strong); margin-bottom: 0.5rem; }
.w124f-footer-brand span { color: var(--w124f-primary); }
.w124f-footer-desc { font-size: 1.25rem; color: var(--w124f-text); opacity: 0.85; margin-bottom: 1rem; line-height: 1.5; }
.w124f-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.w124f-footer-links a { font-size: 1.2rem; color: var(--w124f-primary); text-decoration: underline; }
.w124f-footer-copy { font-size: 1.15rem; color: var(--w124f-text); opacity: 0.7; padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* ---------- Mobile bottom nav ---------- */
.w124f-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1f1f38 0%, #14142a 100%);
  border-top: 1px solid var(--w124f-line); display: flex; justify-content: space-around;
  height: 60px; padding: 0 0.3rem; padding-bottom: env(safe-area-inset-bottom, 0);
}
.w124f-bnav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 60px; min-height: 60px; color: var(--w124f-text); position: relative;
  transition: color .15s ease, transform .15s ease;
}
.w124f-bnav-btn i { font-size: 22px; }
.w124f-bnav-btn span { font-size: 1.05rem; font-weight: 600; }
.w124f-bnav-btn:active { transform: scale(0.92); }
.w124f-bnav-btn.w124f-current { color: var(--w124f-text-strong); }
.w124f-bnav-btn.w124f-current::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #DEB887, #FFE4B5);
}
.w124f-bnav-btn.w124f-bnav-promo { color: var(--w124f-text-strong); }
.w124f-bnav-btn.w124f-bnav-promo i { color: var(--w124f-primary); }

/* ---------- Desktop: hide mobile chrome ---------- */
@media (min-width: 769px) {
  .w124f-bnav { display: none; }
  .w124f-menu-toggle { display: none; }
  .w124f-container { max-width: 760px; }
  .w124f-header-inner { max-width: 760px; }
}

/* ---------- Mobile bottom padding so content is not covered ---------- */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .w124f-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Small phones ---------- */
@media (max-width: 360px) {
  .w124f-grid { grid-template-columns: repeat(2, 1fr); }
  .w124f-headline h1 { font-size: 2rem; }
}
