/* ============================================================
 * jilipark.homes stylesheet
 * All custom classes use the w02fd- prefix.
 * Mobile-first: base styles target max-width 430px, with
 * progressive enhancements up to desktop.
 * Palette: #EEE8AA / #FAFAD2 / #80CBC4 / #26A69A / #141414
 * ============================================================ */

:root {
  --w02fd-bg: #141414;
  --w02fd-bg-soft: #1f1f1f;
  --w02fd-bg-card: #232323;
  --w02fd-primary: #26A69A;
  --w02fd-primary-light: #80CBC4;
  --w02fd-gold: #EEE8AA;
  --w02fd-cream: #FAFAD2;
  --w02fd-text: #FAFAD2;
  --w02fd-text-dim: #EEE8AA;
  --w02fd-text-muted: #b8b8a8;
  --w02fd-border: rgba(238, 232, 170, 0.16);
  --w02fd-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --w02fd-radius: 14px;
  --w02fd-radius-sm: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--w02fd-bg);
  color: var(--w02fd-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

a { color: var(--w02fd-gold); text-decoration: none; }
a:hover { color: var(--w02fd-cream); }

.w02fd-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

main { padding-bottom: 90px; }

/* ===================== Header ===================== */
.w02fd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20,20,20,0.96), rgba(20,20,20,0.88));
  border-bottom: 1px solid var(--w02fd-border);
  backdrop-filter: blur(8px);
}

.w02fd-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  gap: 8px;
}

.w02fd-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.w02fd-brand img {
  width: 28px; height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.w02fd-brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--w02fd-gold);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.w02fd-brand-tag {
  font-size: 0.65rem;
  color: var(--w02fd-primary-light);
  font-weight: 600;
  letter-spacing: 1px;
}

.w02fd-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.w02fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.w02fd-btn-login {
  background: transparent;
  color: var(--w02fd-cream);
  border: 1px solid var(--w02fd-primary-light);
}

.w02fd-btn-register {
  background: linear-gradient(135deg, var(--w02fd-primary), #1f8a80);
  color: #fff;
  box-shadow: 0 4px 12px rgba(38, 166, 154, 0.35);
}

.w02fd-btn:hover { transform: translateY(-1px); }
.w02fd-btn:active { transform: scale(0.97); }

.w02fd-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w02fd-gold);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}

/* ===================== Mobile menu ===================== */
.w02fd-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--w02fd-bg-soft);
  z-index: 9999;
  padding: 70px 18px 24px;
  transform: translateX(110%);
  transition: transform 0.28s ease;
  border-left: 1px solid var(--w02fd-border);
  overflow-y: auto;
}

.w02fd-mobile-menu.w02fd-menu-open { transform: translateX(0); }

.w02fd-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.w02fd-mobile-menu.w02fd-menu-open ~ .w02fd-menu-overlay {
  opacity: 1; visibility: visible;
}

.w02fd-mobile-menu a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid var(--w02fd-border);
  color: var(--w02fd-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.w02fd-mobile-menu a:hover { color: var(--w02fd-gold); }

.w02fd-menu-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: none;
  color: var(--w02fd-gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===================== Hero carousel ===================== */
.w02fd-hero {
  margin-top: 58px;
  padding: 14px 0 0;
}

.w02fd-carousel {
  position: relative;
  border-radius: var(--w02fd-radius);
  overflow: hidden;
  box-shadow: var(--w02fd-shadow);
}

.w02fd-slide {
  position: relative;
  display: none;
}

.w02fd-slide-active { display: block; }

.w02fd-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.w02fd-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  color: var(--w02fd-cream);
}

.w02fd-slide-caption h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--w02fd-gold);
}

.w02fd-slide-caption p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--w02fd-text-dim);
}

.w02fd-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.w02fd-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(250, 250, 210, 0.4);
  cursor: pointer;
}

.w02fd-dot-active { background: var(--w02fd-gold); }

/* ===================== Sections ===================== */
.w02fd-section {
  padding: 22px 0 8px;
}

.w02fd-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--w02fd-gold);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--w02fd-primary);
}

.w02fd-section-title i {
  color: var(--w02fd-primary-light);
  font-size: 1.1rem;
}

.w02fd-subtitle {
  color: var(--w02fd-primary-light);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 18px 0 10px;
}

.w02fd-text p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--w02fd-text-muted);
}

.w02fd-text strong { color: var(--w02fd-gold); }

/* ===================== Game grid ===================== */
.w02fd-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.w02fd-game-card {
  display: block;
  background: var(--w02fd-bg-card);
  border-radius: var(--w02fd-radius-sm);
  overflow: hidden;
  border: 1px solid var(--w02fd-border);
  text-align: center;
  padding: 6px;
  transition: transform 0.15s ease, border-color 0.2s ease;
  cursor: pointer;
}

.w02fd-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--w02fd-primary);
}

.w02fd-game-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.w02fd-game-name {
  font-size: 0.72rem;
  color: var(--w02fd-text);
  font-weight: 600;
  line-height: 1.2;
  min-height: 1.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===================== CTA banner ===================== */
.w02fd-cta {
  background: linear-gradient(135deg, var(--w02fd-primary), #1b756c);
  border-radius: var(--w02fd-radius);
  padding: 18px;
  text-align: center;
  color: #fff;
  margin: 18px 0;
  box-shadow: var(--w02fd-shadow);
}

.w02fd-cta h3 {
  margin: 0 0 6px;
  color: var(--w02fd-cream);
  font-size: 1.1rem;
}

.w02fd-cta p { margin: 0 0 12px; font-size: 0.85rem; color: rgba(255,255,255,0.9); }

.w02fd-cta-btn {
  display: inline-block;
  background: var(--w02fd-gold);
  color: var(--w02fd-bg);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

/* ===================== Cards ===================== */
.w02fd-card {
  background: var(--w02fd-bg-card);
  border-radius: var(--w02fd-radius);
  padding: 16px;
  border: 1px solid var(--w02fd-border);
  margin-bottom: 12px;
}

.w02fd-card-title {
  font-weight: 700;
  color: var(--w02fd-gold);
  margin: 0 0 8px;
  font-size: 1rem;
}

.w02fd-feature-list {
  list-style: none;
  padding: 0; margin: 0;
}

.w02fd-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--w02fd-border);
  font-size: 0.88rem;
}

.w02fd-feature-list li:last-child { border-bottom: none; }

.w02fd-feature-list i { color: var(--w02fd-primary-light); margin-top: 2px; }

/* ===================== Stats / RTP ===================== */
.w02fd-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.w02fd-stat {
  background: var(--w02fd-bg-soft);
  padding: 12px;
  border-radius: var(--w02fd-radius-sm);
  text-align: center;
  border: 1px solid var(--w02fd-border);
}

.w02fd-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--w02fd-primary-light);
}

.w02fd-stat-label {
  font-size: 0.72rem;
  color: var(--w02fd-text-muted);
  margin-top: 2px;
}

/* ===================== Testimonials ===================== */
.w02fd-testimonial {
  background: var(--w02fd-bg-soft);
  border-left: 3px solid var(--w02fd-primary);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.w02fd-testimonial-text {
  font-size: 0.85rem;
  color: var(--w02fd-text);
  font-style: italic;
}

.w02fd-testimonial-author {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--w02fd-gold);
  font-weight: 700;
}

/* ===================== Payment chips ===================== */
.w02fd-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.w02fd-payment-chip {
  background: var(--w02fd-bg-soft);
  border: 1px solid var(--w02fd-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--w02fd-text-dim);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===================== Winners ===================== */
.w02fd-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--w02fd-bg-soft);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.w02fd-winner-name { color: var(--w02fd-cream); font-weight: 600; }
.w02fd-winner-amount { color: var(--w02fd-gold); font-weight: 800; }

/* ===================== Reveal animation ===================== */
.w02fd-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.w02fd-revealed { opacity: 1; transform: translateY(0); }

/* ===================== Footer ===================== */
.w02fd-footer {
  background: var(--w02fd-bg-soft);
  border-top: 1px solid var(--w02fd-border);
  padding: 24px 0 100px;
  margin-top: 24px;
}

.w02fd-footer-brand {
  color: var(--w02fd-text-muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.w02fd-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.w02fd-footer-links a {
  background: var(--w02fd-bg-card);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.75rem;
  border: 1px solid var(--w02fd-border);
}

.w02fd-footer-copy {
  color: var(--w02fd-text-muted);
  font-size: 0.72rem;
  text-align: center;
  border-top: 1px solid var(--w02fd-border);
  padding-top: 14px;
}

/* ===================== Bottom nav ===================== */
.w02fd-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #1c1c1c, #111111);
  border-top: 1px solid var(--w02fd-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 4px 0;
}

.w02fd-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 54px;
  background: transparent;
  border: none;
  color: var(--w02fd-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.66rem;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.w02fd-bottom-nav-btn i,
.w02fd-bottom-nav-btn span.material-icons-outlined,
.w02fd-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.w02fd-bottom-nav-btn ion-icon { font-size: 24px; }

.w02fd-bottom-nav-btn:hover { color: var(--w02fd-gold); transform: translateY(-1px); }
.w02fd-bottom-nav-btn:active { transform: scale(0.92); }

.w02fd-bottom-nav-btn.w02fd-nav-current {
  color: var(--w02fd-primary-light);
}

.w02fd-bottom-nav-btn.w02fd-nav-promo {
  color: var(--w02fd-gold);
}

.w02fd-bottom-nav-btn.w02fd-nav-promo i { filter: drop-shadow(0 0 4px rgba(238,232,170,0.5)); }

/* ===================== Desktop ===================== */
@media (min-width: 769px) {
  .w02fd-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .w02fd-wrapper { max-width: 760px; }
  .w02fd-header-inner { max-width: 760px; }
  .w02fd-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w02fd-slide img { height: 320px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .w02fd-game-grid { grid-template-columns: repeat(4, 1fr); }
}
