/* MegaPerya core stylesheet - mobile-first, max-width 430px.
   All custom classes use the w7f69- prefix. Palette:
   #BAFFC9 mint | #6A5ACD purple | #F08080 coral
   #CED4DA grey | #1E1E1E dark | #BAE1FF sky */

:root {
  --w7f69-primary: #6A5ACD;
  --w7f69-accent: #F08080;
  --w7f69-mint: #BAFFC9;
  --w7f69-sky: #BAE1FF;
  --w7f69-grey: #CED4DA;
  --w7f69-bg: #1E1E1E;
  --w7f69-bg-soft: #2a2a2a;
  --w7f69-text: #BAFFC9;
  --w7f69-text-light: #ffffff;
  --w7f69-muted: #CED4DA;
  --w7f69-radius: 12px;
}

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

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w7f69-bg);
  color: var(--w7f69-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--w7f69-sky); text-decoration: none; }

.w7f69-container { width: 100%; padding: 0 1.2rem; }
.w7f69-wrapper { padding: 1.5rem 1.2rem; }

/* ---------- Header ---------- */
.w7f69-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1E1E1E, #2a2a2a);
  border-bottom: 2px solid var(--w7f69-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  height: 5.6rem;
}
.w7f69-logo { display: flex; align-items: center; gap: 0.6rem; }
.w7f69-logo img { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.w7f69-logo span {
  font-size: 1.6rem; font-weight: 800; color: var(--w7f69-mint);
  letter-spacing: 0.5px;
}
.w7f69-logo b { color: var(--w7f69-accent); }

.w7f69-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.w7f69-btn {
  border: none; cursor: pointer; font-weight: 700;
  border-radius: 999px; padding: 0.7rem 1.3rem;
  font-size: 1.25rem; line-height: 1; transition: transform .15s, opacity .15s;
  min-height: 36px;
}
.w7f69-btn:active { transform: scale(0.94); }
.w7f69-btn-login {
  background: transparent; color: var(--w7f69-sky);
  border: 1.5px solid var(--w7f69-sky);
}
.w7f69-btn-register {
  background: linear-gradient(135deg, var(--w7f69-primary), var(--w7f69-accent));
  color: #fff;
  box-shadow: 0 3px 10px rgba(106,90,205,.4);
}

.w7f69-menu-btn {
  background: transparent; border: none; color: var(--w7f69-mint);
  font-size: 2rem; cursor: pointer; padding: 0.2rem 0.4rem;
}

/* ---------- Mobile expandable menu ---------- */
.w7f69-mobile-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: #161616;
  border-bottom: 2px solid var(--w7f69-primary);
  z-index: 9999;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.w7f69-mobile-menu.w7f69-open { max-height: 480px; }
.w7f69-mobile-menu a {
  display: block; padding: 1.1rem 1.5rem;
  color: var(--w7f69-text-light); font-size: 1.35rem;
  border-bottom: 1px solid rgba(206,212,218,.12);
}
.w7f69-mobile-menu a:active { background: rgba(106,90,205,.2); }

/* ---------- Main content ---------- */
.w7f69-main { padding-top: 5.6rem; }

/* ---------- Hero carousel ---------- */
.w7f69-hero {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 0 0 var(--w7f69-radius) var(--w7f69-radius);
}
.w7f69-slide {
  display: none; position: relative; cursor: pointer;
}
.w7f69-slide.w7f69-active { display: block; }
.w7f69-slide img { width: 100%; height: 200px; object-fit: cover; }
.w7f69-slide-caption {
  position: absolute; left: 1rem; bottom: 1.2rem;
  background: rgba(30,30,30,.6); padding: 0.6rem 1rem;
  border-radius: 8px; font-size: 1.3rem; color: var(--w7f69-mint); font-weight: 700;
}
.w7f69-dots {
  position: absolute; bottom: 0.6rem; right: 1rem;
  display: flex; gap: 0.5rem;
}
.w7f69-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
}
.w7f69-dot.w7f69-active { background: var(--w7f69-accent); }

/* ---------- Section headings ---------- */
.w7f69-section { padding: 1.6rem 1.2rem; }
.w7f69-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--w7f69-mint);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
  border-left: 4px solid var(--w7f69-accent); padding-left: 0.8rem;
}
.w7f69-section-title i { color: var(--w7f69-accent); }
.w7f69-lead { font-size: 1.3rem; color: var(--w7f69-muted); margin-bottom: 1rem; }

/* ---------- Filter chips ---------- */
.w7f69-chips { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.6rem; }
.w7f69-chip {
  flex: 0 0 auto; padding: 0.5rem 1.1rem; border-radius: 999px;
  background: var(--w7f69-bg-soft); color: var(--w7f69-muted);
  font-size: 1.2rem; border: 1px solid var(--w7f69-grey); cursor: pointer;
}
.w7f69-chip-active {
  background: var(--w7f69-primary); color: #fff; border-color: var(--w7f69-primary);
}

/* ---------- Game grid ---------- */
.w7f69-game-section h2 {
  font-size: 1.5rem; color: var(--w7f69-sky); margin: 1.4rem 0 0.8rem;
}
.w7f69-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.w7f69-game-card {
  background: var(--w7f69-bg-soft); border-radius: 10px;
  overflow: hidden; cursor: pointer; transition: transform .15s;
  border: 1px solid rgba(206,212,218,.1);
}
.w7f69-game-card:active { transform: scale(0.96); }
.w7f69-game-card img { width: 100%; height: 88px; object-fit: cover; }
.w7f69-game-card .w7f69-game-name {
  font-size: 1.05rem; padding: 0.4rem 0.5rem; text-align: center;
  color: var(--w7f69-text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Feature / info cards ---------- */
.w7f69-card {
  background: var(--w7f69-bg-soft); border-radius: var(--w7f69-radius);
  padding: 1.2rem; margin-bottom: 1rem;
  border: 1px solid rgba(106,90,205,.25);
}
.w7f69-card h3 {
  font-size: 1.4rem; color: var(--w7f69-mint); margin-bottom: 0.6rem;
}
.w7f69-card p { font-size: 1.2rem; color: var(--w7f69-muted); }
.w7f69-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
.w7f69-feature {
  background: var(--w7f69-bg-soft); border-radius: 10px; padding: 1rem;
  text-align: center;
}
.w7f69-feature i { font-size: 2.4rem; color: var(--w7f69-accent); margin-bottom: 0.5rem; }
.w7f69-feature b { display: block; color: var(--w7f69-mint); font-size: 1.2rem; margin-bottom: 0.3rem; }
.w7f69-feature span { font-size: 1.05rem; color: var(--w7f69-muted); }

/* ---------- Promo link styling ---------- */
.w7f69-promo-link {
  color: var(--w7f69-accent); font-weight: 800; cursor: pointer;
  text-decoration: underline;
}
.w7f69-cta {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--w7f69-primary), var(--w7f69-accent));
  color: #fff; font-weight: 800; font-size: 1.4rem;
  padding: 1.1rem; border-radius: 999px; margin: 1.2rem 0;
  box-shadow: 0 4px 14px rgba(240,128,128,.35); cursor: pointer;
}

/* ---------- Testimonials ---------- */
.w7f69-testimonial {
  background: var(--w7f69-bg-soft); border-left: 3px solid var(--w7f69-mint);
  padding: 1rem; border-radius: 8px; margin-bottom: 0.8rem;
}
.w7f69-testimonial b { color: var(--w7f69-sky); font-size: 1.2rem; }
.w7f69-testimonial p { font-size: 1.15rem; color: var(--w7f69-muted); margin-top: 0.3rem; }

/* ---------- Payment methods ---------- */
.w7f69-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.w7f69-pay {
  background: #fff; border-radius: 8px; padding: 0.8rem 0.4rem;
  text-align: center; font-size: 1rem; color: #1E1E1E; font-weight: 700;
}

/* ---------- Winners ---------- */
.w7f69-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--w7f69-bg-soft); padding: 0.8rem 1rem; border-radius: 8px;
  margin-bottom: 0.5rem;
}
.w7f69-winner b { color: var(--w7f69-mint); font-size: 1.15rem; }
.w7f69-winner span { color: var(--w7f69-accent); font-weight: 800; font-size: 1.2rem; }

/* ---------- Footer ---------- */
.w7f69-footer {
  background: #161616; padding: 2rem 1.2rem 1rem;
  border-top: 2px solid var(--w7f69-primary);
}
.w7f69-footer-about { font-size: 1.15rem; color: var(--w7f69-muted); margin-bottom: 1rem; }
.w7f69-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem;
}
.w7f69-footer-links a { font-size: 1.15rem; color: var(--w7f69-sky); }
.w7f69-footer-copy { font-size: 1.05rem; color: #777; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.w7f69-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  height: 60px; background: #161616;
  border-top: 2px solid var(--w7f69-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.w7f69-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--w7f69-muted);
  cursor: pointer; text-decoration: none;
  transition: color .15s, transform .15s;
}
.w7f69-nav-btn:active { transform: scale(0.9); }
.w7f69-nav-btn .w7f69-nav-ico { font-size: 22px; line-height: 1; }
.w7f69-nav-btn .w7f69-nav-label { font-size: 11px; line-height: 1; }
.w7f69-nav-btn.w7f69-active { color: var(--w7f69-mint); }
.w7f69-nav-btn-promo { color: var(--w7f69-accent); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w7f69-bottom-nav { display: none; }
}

/* Mobile clearance for bottom nav */
@media (max-width: 768px) {
  .w7f69-main { padding-bottom: 80px; }
}
