/* nk888.cyou - common stylesheet
   Class prefix: sfda-
   Palette: #0C0C0C | #4DB6AC | #FFBF00 | #00CED1 | #FFA500
   Mobile-first, max-width 430px, rem units (root 62.5%)
*/
:root {
  --sfda-bg: #0C0C0C;
  --sfda-bg-soft: #151515;
  --sfda-bg-card: #1c1c1c;
  --sfda-primary: #4DB6AC;
  --sfda-gold: #FFBF00;
  --sfda-cyan: #00CED1;
  --sfda-orange: #FFA500;
  --sfda-text: #f5f5f5;
  --sfda-text-dim: #b9b9b9;
  --sfda-border: #2a2a2a;
  --sfda-radius: 10px;
  --sfda-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--sfda-bg);
  color: var(--sfda-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

a { color: var(--sfda-cyan); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.sfda-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  background: linear-gradient(90deg, #111 0%, #0C0C0C 100%);
  border-bottom: 2px solid var(--sfda-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
.sfda-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--sfda-gold); font-weight: 800; font-size: 1.8rem;
  letter-spacing: 0.5px;
}
.sfda-logo img { width: 28px; height: 28px; border-radius: 6px; }
.sfda-logo span { color: var(--sfda-gold); }
.sfda-logo small { color: var(--sfda-cyan); font-size: 1.1rem; font-weight: 600; }

.sfda-head-actions { display: flex; align-items: center; gap: 8px; }
.sfda-menu-btn {
  background: none; border: 1px solid var(--sfda-border);
  color: var(--sfda-text); width: 38px; height: 38px;
  border-radius: 8px; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sfda-btn {
  border: none; border-radius: 8px; cursor: pointer;
  font-weight: 700; font-size: 1.25rem; padding: 8px 14px;
  min-height: 36px; transition: transform 0.15s, opacity 0.15s;
}
.sfda-btn:active { transform: scale(0.95); }
.sfda-btn-register {
  background: linear-gradient(90deg, var(--sfda-orange), var(--sfda-gold));
  color: #1a1a1a;
}
.sfda-btn-login {
  background: linear-gradient(90deg, var(--sfda-primary), var(--sfda-cyan));
  color: #0C0C0C;
}

/* ===== Mobile menu drawer ===== */
.sfda-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden; transition: opacity 0.25s;
  z-index: 9998; max-width: 430px; margin: 0 auto;
}
.sfda-overlay-show { opacity: 1; visibility: visible; }
.sfda-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 270px; height: 100%;
  background: var(--sfda-bg-soft); z-index: 9999;
  transition: right 0.3s ease; padding: 70px 14px 20px;
  overflow-y: auto; max-width: 430px;
}
.sfda-menu-open { right: 0; }
.sfda-mobile-menu a {
  display: block; padding: 12px 14px; color: var(--sfda-text);
  border-bottom: 1px solid var(--sfda-border); font-size: 1.4rem;
}
.sfda-mobile-menu a:hover { color: var(--sfda-gold); }
.sfda-menu-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--sfda-text);
  font-size: 2.2rem; cursor: pointer;
}

/* ===== Layout ===== */
.sfda-main { padding-top: 56px; }
.sfda-container { padding: 14px 12px; }
.sfda-section { margin-bottom: 24px; }
.sfda-section-title {
  font-size: 1.7rem; color: var(--sfda-gold); font-weight: 800;
  margin-bottom: 10px; padding-left: 10px;
  border-left: 4px solid var(--sfda-primary);
}

/* ===== Carousel ===== */
.sfda-carousel {
  position: relative; border-radius: var(--sfda-radius);
  overflow: hidden; margin-bottom: 18px; box-shadow: var(--sfda-shadow);
}
.sfda-slide {
  display: none; position: relative; cursor: pointer;
}
.sfda-slide img { width: 100%; height: 170px; object-fit: cover; }
.sfda-slide-active { display: block; }
.sfda-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 28px 12px 12px; color: #fff; font-weight: 700; font-size: 1.35rem;
}
.sfda-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.sfda-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
}
.sfda-dot-active { background: var(--sfda-gold); }

/* ===== Hero ===== */
.sfda-hero {
  background: radial-gradient(circle at 30% 20%, #1a2a28 0%, #0C0C0C 70%);
  padding: 20px 14px; border-radius: var(--sfda-radius); margin-bottom: 18px;
  border: 1px solid var(--sfda-border);
}
.sfda-hero h1 { font-size: 2.0rem; color: var(--sfda-gold); line-height: 1.4; margin-bottom: 8px; }
.sfda-hero p { color: var(--sfda-text-dim); font-size: 1.3rem; margin-bottom: 12px; }
.sfda-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.sfda-hero-cta .sfda-btn { flex: 1; min-width: 130px; }

/* ===== Game grid ===== */
.sfda-cat-head {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 10px; font-size: 1.5rem; font-weight: 800;
  color: var(--sfda-cyan);
}
.sfda-cat-head i { color: var(--sfda-gold); }
.sfda-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.sfda-game {
  background: var(--sfda-bg-card); border: 1px solid var(--sfda-border);
  border-radius: 8px; padding: 6px; text-align: center; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.sfda-game:active { transform: scale(0.95); border-color: var(--sfda-primary); }
.sfda-game img { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; }
.sfda-game-name {
  font-size: 1.05rem; color: var(--sfda-text); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== Cards / features ===== */
.sfda-card {
  background: var(--sfda-bg-card); border: 1px solid var(--sfda-border);
  border-radius: var(--sfda-radius); padding: 14px; margin-bottom: 12px;
}
.sfda-card h3 { color: var(--sfda-gold); font-size: 1.5rem; margin-bottom: 8px; }
.sfda-card p { color: var(--sfda-text-dim); font-size: 1.25rem; }
.sfda-card .sfda-btn { margin-top: 10px; }

.sfda-features { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.sfda-feature {
  background: var(--sfda-bg-card); border-radius: 8px; padding: 12px; text-align: center;
  border: 1px solid var(--sfda-border);
}
.sfda-feature i { font-size: 2.4rem; color: var(--sfda-cyan); margin-bottom: 6px; }
.sfda-feature h4 { color: var(--sfda-gold); font-size: 1.25rem; margin-bottom: 4px; }
.sfda-feature p { color: var(--sfda-text-dim); font-size: 1.1rem; }

/* ===== RTP compact ===== */
.sfda-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed var(--sfda-border); font-size: 1.2rem;
}
.sfda-rtp-row:last-child { border-bottom: none; }
.sfda-rtp-bar {
  flex: 1; height: 6px; background: #222; border-radius: 3px; margin: 0 10px; overflow: hidden;
}
.sfda-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--sfda-primary), var(--sfda-cyan)); }
.sfda-rtp-val { color: var(--sfda-gold); font-weight: 700; min-width: 50px; text-align: right; }

/* ===== Testimonials ===== */
.sfda-testi {
  background: var(--sfda-bg-card); border-left: 3px solid var(--sfda-orange);
  border-radius: 8px; padding: 12px; margin-bottom: 10px;
}
.sfda-testi p { font-style: italic; color: var(--sfda-text); font-size: 1.2rem; }
.sfda-testi span { color: var(--sfda-cyan); font-size: 1.1rem; }

/* ===== Winners ===== */
.sfda-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; background: var(--sfda-bg-card); border-radius: 8px;
  margin-bottom: 6px; font-size: 1.15rem;
}
.sfda-winner .sfda-amount { color: var(--sfda-gold); font-weight: 800; }

/* ===== Payment / app CTA ===== */
.sfda-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.sfda-pay span {
  background: var(--sfda-bg-card); border: 1px solid var(--sfda-border);
  border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; color: var(--sfda-cyan);
}
.sfda-app-cta {
  background: linear-gradient(90deg, #1a1a1a, #2a2010);
  border: 1px solid var(--sfda-gold); border-radius: var(--sfda-radius);
  padding: 16px; text-align: center;
}
.sfda-app-cta h3 { color: var(--sfda-gold); margin-bottom: 8px; }
.sfda-app-cta p { color: var(--sfda-text-dim); margin-bottom: 12px; }

/* ===== FAQ ===== */
.sfda-faq-item {
  background: var(--sfda-bg-card); border-radius: 8px; padding: 10px 12px;
  margin-bottom: 8px; border: 1px solid var(--sfda-border);
}
.sfda-faq-item h4 { color: var(--sfda-cyan); font-size: 1.3rem; margin-bottom: 4px; }
.sfda-faq-item p { color: var(--sfda-text-dim); font-size: 1.2rem; }

/* ===== Inline promo link ===== */
.sfda-promo-link {
  color: var(--sfda-gold); font-weight: 800; cursor: pointer;
  text-decoration: underline;
}
.sfda-promo-link:hover { color: var(--sfda-orange); }

/* ===== Footer ===== */
.sfda-footer {
  background: #0a0a0a; border-top: 2px solid var(--sfda-primary);
  padding: 18px 14px 90px; margin-top: 20px;
}
.sfda-footer p { color: var(--sfda-text-dim); font-size: 1.15rem; margin-bottom: 10px; }
.sfda-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sfda-footer-links a {
  background: var(--sfda-bg-card); border: 1px solid var(--sfda-border);
  border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; color: var(--sfda-cyan);
}
.sfda-footer-promo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sfda-footer-promo button {
  background: linear-gradient(90deg, var(--sfda-orange), var(--sfda-gold));
  color: #1a1a1a; border: none; border-radius: 6px; padding: 8px 12px;
  font-weight: 700; font-size: 1.15rem; cursor: pointer;
}
.sfda-footer-copy { color: #777; font-size: 1.05rem; text-align: center; }

/* ===== Mobile bottom nav ===== */
.sfda-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  height: 60px; background: #0a0a0a;
  border-top: 2px solid var(--sfda-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.sfda-bottomnav-btn {
  background: none; border: none; color: var(--sfda-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; cursor: pointer; gap: 2px;
  transition: color 0.2s, transform 0.15s;
}
.sfda-bottomnav-btn i, .sfda-bottomnav-btn .material-icons-outlined,
.sfda-bottomnav-btn .ion-icon { font-size: 22px; }
.sfda-bottomnav-btn span { font-size: 1.0rem; }
.sfda-bottomnav-btn:active { transform: scale(0.92); }
.sfda-bottomnav-active { color: var(--sfda-gold); }
.sfda-bottomnav-active i { color: var(--sfda-gold); }

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

/* ===== Mobile: bottom padding clearance ===== */
@media (max-width: 768px) {
  .sfda-main { padding-bottom: 80px; }
  body { max-width: 430px; }
}

/* ===== Utility ===== */
.sfda-text-gold { color: var(--sfda-gold); font-weight: 700; }
.sfda-text-cyan { color: var(--sfda-cyan); }
.sfda-mt-10 { margin-top: 10px; }
.sfda-center { text-align: center; }
