/* ============================================================
 * mm88 c9m - design-fd9f.css
 * Palette: #0E1621 bg | #FFF8DC text | #D4AF37 / #FFD700 gold | #006400 green
 * All custom classes use the sfd9- prefix.
 * ============================================================ */

:root {
  --sfd9-bg: #0E1621;
  --sfd9-bg-soft: #14202e;
  --sfd9-bg-card: #18283a;
  --sfd9-text: #FFF8DC;
  --sfd9-text-soft: #c8c0a4;
  --sfd9-primary: #D4AF37;
  --sfd9-accent: #FFD700;
  --sfd9-green: #006400;
  --sfd9-border: rgba(212, 175, 55, 0.25);
  --sfd9-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --sfd9-radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #16243a 0%, var(--sfd9-bg) 70%);
  color: var(--sfd9-text);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

/* ---------- Header ---------- */
.sfd9-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(14,22,33,0.96), rgba(14,22,33,0.88));
  border-bottom: 1px solid var(--sfd9-border);
  backdrop-filter: blur(8px);
}
.sfd9-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sfd9-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.sfd9-logo img { width: 30px; height: 30px; border-radius: 6px; }
.sfd9-logo-title {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: var(--sfd9-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sfd9-logo-title span { color: var(--sfd9-text); font-weight: 600; }

.sfd9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 36px;
}
.sfd9-btn:active { transform: scale(0.96); }
.sfd9-btn-register {
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  color: #1a1206;
  box-shadow: 0 3px 10px rgba(255,215,0,0.35);
}
.sfd9-btn-login {
  background: transparent;
  color: var(--sfd9-text);
  border: 1px solid var(--sfd9-primary);
}
.sfd9-menu-btn {
  background: transparent;
  color: var(--sfd9-accent);
  border: 1px solid var(--sfd9-border);
  border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Mobile menu ---------- */
.sfd9-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--sfd9-bg-soft);
  border-top: 1px solid var(--sfd9-border);
}
.sfd9-mobile-menu.sfd9-menu-open { max-height: 480px; }
.sfd9-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sfd9-mobile-menu-inner a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--sfd9-bg-card);
  color: var(--sfd9-text);
  font-size: 13px;
  border: 1px solid transparent;
}
.sfd9-mobile-menu-inner a:active { border-color: var(--sfd9-primary); }

/* ---------- Hero carousel ---------- */
.sfd9-main { padding-top: 60px; padding-bottom: 84px; }
.sfd9-hero {
  position: relative;
  margin: 12px 0 18px;
  border-radius: var(--sfd9-radius);
  overflow: hidden;
  box-shadow: var(--sfd9-shadow);
}
.sfd9-hero-track {
  display: flex;
  transition: transform 0.55s ease;
}
.sfd9-hero-slide {
  min-width: 100%;
  position: relative;
}
.sfd9-hero-slide img { width: 100%; height: 200px; object-fit: cover; }
.sfd9-hero-slide a { display: block; }
.sfd9-hero-cta {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(0,0,0,0.55);
  color: var(--sfd9-accent);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--sfd9-primary);
}
.sfd9-hero-dots {
  position: absolute;
  bottom: 8px; right: 12px;
  display: flex; gap: 5px;
}
.sfd9-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,248,220,0.45);
  border: none; cursor: pointer;
}
.sfd9-hero-dot.sfd9-dot-active { background: var(--sfd9-accent); }

/* ---------- Section ---------- */
.sfd9-section { margin: 22px 0; }
.sfd9-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--sfd9-accent);
  margin: 0 0 4px;
  display: flex; align-items: center; gap: 8px;
}
.sfd9-section-sub {
  font-size: 12px;
  color: var(--sfd9-text-soft);
  margin: 0 0 12px;
}
.sfd9-h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--sfd9-text);
}
.sfd9-h1 b { color: var(--sfd9-accent); }
.sfd9-lead { font-size: 13px; color: var(--sfd9-text-soft); margin: 0 0 14px; }

/* ---------- Game grid ---------- */
.sfd9-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.sfd9-filter-row::-webkit-scrollbar { display: none; }
.sfd9-filter-tab {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  background: var(--sfd9-bg-card);
  color: var(--sfd9-text-soft);
  border: 1px solid var(--sfd9-border);
  cursor: pointer;
}
.sfd9-filter-tab.sfd9-filter-active {
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  color: #1a1206;
  border-color: transparent;
}

.sfd9-game-block { margin-bottom: 18px; }
.sfd9-cat-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--sfd9-accent);
  margin: 0 0 8px;
  border-left: 4px solid var(--sfd9-primary);
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sfd9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sfd9-game-card {
  background: var(--sfd9-bg-card);
  border: 1px solid var(--sfd9-border);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  display: block;
  color: var(--sfd9-text);
}
.sfd9-game-card:active { transform: scale(0.95); border-color: var(--sfd9-primary); }
.sfd9-game-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
}
.sfd9-game-card-name {
  font-size: 11px;
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
  color: var(--sfd9-text);
}

/* ---------- Info / feature cards ---------- */
.sfd9-card {
  background: var(--sfd9-bg-card);
  border: 1px solid var(--sfd9-border);
  border-radius: var(--sfd9-radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--sfd9-shadow);
}
.sfd9-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--sfd9-accent);
  display: flex; align-items: center; gap: 8px;
}
.sfd9-card p { margin: 0 0 8px; font-size: 13px; color: var(--sfd9-text-soft); }
.sfd9-card p:last-child { margin-bottom: 0; }

.sfd9-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sfd9-feature {
  background: var(--sfd9-bg-card);
  border: 1px solid var(--sfd9-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.sfd9-feature .sfd9-ico {
  font-size: 26px;
  color: var(--sfd9-accent);
  margin-bottom: 6px;
}
.sfd9-feature h4 { margin: 0 0 4px; font-size: 13px; color: var(--sfd9-text); }
.sfd9-feature p { margin: 0; font-size: 11px; color: var(--sfd9-text-soft); }

/* ---------- RTP table ---------- */
.sfd9-rtp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--sfd9-border);
  font-size: 13px;
}
.sfd9-rtp-row:last-child { border-bottom: none; }
.sfd9-rtp-bar {
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 8px;
}
.sfd9-rtp-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--sfd9-green), var(--sfd9-accent)); }
.sfd9-rtp-val { color: var(--sfd9-accent); font-weight: 800; }

/* ---------- Testimonials ---------- */
.sfd9-quote {
  background: var(--sfd9-bg-card);
  border-left: 3px solid var(--sfd9-primary);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--sfd9-text-soft);
}
.sfd9-quote b { color: var(--sfd9-text); display: block; margin-top: 4px; font-size: 12px; }

/* ---------- Winners ---------- */
.sfd9-winner {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--sfd9-bg-card);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.sfd9-winner b { color: var(--sfd9-accent); }

/* ---------- Payment ---------- */
.sfd9-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sfd9-pay {
  flex: 1 1 30%;
  background: var(--sfd9-bg-card);
  border: 1px solid var(--sfd9-border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--sfd9-text-soft);
}
.sfd9-pay .sfd9-ico { font-size: 20px; color: var(--sfd9-accent); }

/* ---------- FAQ ---------- */
.sfd9-faq-item {
  background: var(--sfd9-bg-card);
  border: 1px solid var(--sfd9-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.sfd9-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--sfd9-text);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sfd9-faq-q::after { content: "+"; color: var(--sfd9-accent); font-size: 18px; }
.sfd9-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 14px;
  font-size: 12px;
  color: var(--sfd9-text-soft);
}
.sfd9-faq-item.sfd9-faq-open .sfd9-faq-a { max-height: 220px; padding-bottom: 12px; }
.sfd9-faq-item.sfd9-faq-open .sfd9-faq-q::after { content: "-"; }

/* ---------- Play CTA ---------- */
.sfd9-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  color: #1a1206;
  font-weight: 800;
  padding: 14px;
  border-radius: 30px;
  font-size: 15px;
  margin: 16px 0;
  box-shadow: 0 6px 20px rgba(255,215,0,0.35);
}
.sfd9-cta:active { transform: scale(0.97); }

/* ---------- App download ---------- */
.sfd9-app-card {
  background: linear-gradient(135deg, #14283f, #0c1925);
  border: 1px solid var(--sfd9-primary);
  border-radius: var(--sfd9-radius);
  padding: 16px;
  text-align: center;
}
.sfd9-app-card h3 { color: var(--sfd9-accent); margin: 0 0 6px; font-size: 16px; }
.sfd9-app-card p { font-size: 12px; color: var(--sfd9-text-soft); margin: 0 0 10px; }
.sfd9-app-btns { display: flex; gap: 8px; justify-content: center; }

/* ---------- Footer ---------- */
.sfd9-footer {
  background: #0a121d;
  border-top: 1px solid var(--sfd9-border);
  padding: 22px 14px 16px;
  margin-top: 24px;
}
.sfd9-footer-inner { max-width: 430px; margin: 0 auto; }
.sfd9-footer-brand { font-size: 13px; color: var(--sfd9-text-soft); margin-bottom: 14px; }
.sfd9-footer-brand b { color: var(--sfd9-accent); }
.sfd9-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
.sfd9-footer-links a {
  font-size: 12px;
  color: var(--sfd9-text-soft);
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.sfd9-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.sfd9-footer-promo button, .sfd9-footer-promo a {
  flex: 1 1 30%;
  min-width: 90px;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 18px;
  background: var(--sfd9-bg-card);
  color: var(--sfd9-accent);
  border: 1px solid var(--sfd9-border);
  text-align: center;
  cursor: pointer;
}
.sfd9-footer-copy { font-size: 11px; color: #6f7a86; text-align: center; }

/* ---------- Bottom nav ---------- */
.sfd9-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #14202e, #0a121d);
  border-top: 1px solid var(--sfd9-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.sfd9-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--sfd9-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.sfd9-bottomnav-btn .sfd9-ico { font-size: 22px; line-height: 1; }
.sfd9-bottomnav-btn:active { transform: scale(0.92); color: var(--sfd9-accent); }
.sfd9-bottomnav-active { color: var(--sfd9-accent); }
.sfd9-bottomnav-active::before {
  content: "";
  position: absolute;
  top: 0; width: 36px; height: 3px;
  background: var(--sfd9-accent);
  border-radius: 0 0 4px 4px;
}
.sfd9-bottomnav-btn { position: relative; }

/* ---------- Back to top ---------- */
.sfd9-to-top {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #D4AF37);
  color: #1a1206;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}
.sfd9-to-top.sfd9-show { opacity: 1; pointer-events: auto; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: #0E1621; }
  .sfd9-container, .sfd9-header-inner, .sfd9-mobile-menu-inner, .sfd9-footer-inner {
    max-width: 720px;
  }
  .sfd9-grid { grid-template-columns: repeat(6, 1fr); }
  .sfd9-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .sfd9-bottomnav { display: none; }
  .sfd9-main { padding-bottom: 30px; }
}

@media (max-width: 768px) {
  .sfd9-main { padding-bottom: 84px; }
}
