/* okkinh.cfd - core stylesheet
   All custom classes use the s9d2- prefix for namespace isolation.
   Palette: #800080 | #FFB3FF | #8470FF | #DEE2E6 | #DA70D6 | #1E1E1E
   Dark = background, light = text. Mobile-first, max-width 430px. */
:root {
  --s9d2-primary: #800080;
  --s9d2-secondary: #DA70D6;
  --s9d2-accent: #8470FF;
  --s9d2-light: #FFB3FF;
  --s9d2-muted: #DEE2E6;
  --s9d2-bg: #1E1E1E;
  --s9d2-bg-soft: #2a1f2d;
  --s9d2-bg-card: #2e2330;
  --s9d2-text: #FFFFFF;
  --s9d2-text-dim: #d9cfe0;
  --s9d2-border: rgba(218, 112, 214, 0.25);
  --s9d2-gold: #FFB3FF;
  --s9d2-radius: 14px;
  --s9d2-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --s9d2-transition: 0.25s ease;
}

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

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

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #2a1230 0%, var(--s9d2-bg) 60%);
  color: var(--s9d2-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--s9d2-light); text-decoration: none; transition: color var(--s9d2-transition); }
a:hover { color: var(--s9d2-secondary); }

.s9d2-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.s9d2-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.s9d2-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.96), rgba(128, 0, 128, 0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s9d2-border);
  box-shadow: var(--s9d2-shadow);
}
.s9d2-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem; min-height: 56px;
}
.s9d2-logo {
  display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0;
}
.s9d2-logo img { width: 30px; height: 30px; border-radius: 8px; }
.s9d2-logo-text {
  font-size: 1.7rem; font-weight: 800; color: var(--s9d2-light);
  letter-spacing: 0.5px; text-shadow: 0 0 12px rgba(255, 179, 255, 0.5);
}
.s9d2-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s9d2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.25rem; font-weight: 700; border: none; border-radius: 30px;
  padding: 0.55rem 1.1rem; cursor: pointer; transition: all var(--s9d2-transition);
  min-height: 36px; line-height: 1;
}
.s9d2-btn-register {
  background: linear-gradient(135deg, var(--s9d2-secondary), var(--s9d2-primary));
  color: #fff; box-shadow: 0 4px 14px rgba(218, 112, 214, 0.45);
}
.s9d2-btn-register:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(218, 112, 214, 0.6); }
.s9d2-btn-login {
  background: transparent; color: var(--s9d2-light);
  border: 1.5px solid var(--s9d2-accent);
}
.s9d2-btn-login:hover { background: rgba(132, 112, 255, 0.15); }
.s9d2-menu-icon {
  background: transparent; border: none; color: var(--s9d2-light);
  font-size: 2.2rem; cursor: pointer; padding: 0.2rem 0.4rem;
  display: inline-flex; align-items: center;
}

/* ===== Mobile Menu (slide-in) ===== */
.s9d2-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity var(--s9d2-transition);
}
.s9d2-overlay-show { opacity: 1; pointer-events: auto; }
.s9d2-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: linear-gradient(160deg, #2a1230, #1E1E1E);
  z-index: 9999; padding: 5rem 1.5rem 2rem; transition: right 0.3s ease;
  overflow-y: auto; box-shadow: -6px 0 24px rgba(0, 0, 0, 0.5);
}
.s9d2-menu-open { right: 0; }
.s9d2-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none; color: var(--s9d2-light);
  font-size: 2rem; cursor: pointer;
}
.s9d2-mobile-menu h3 {
  color: var(--s9d2-light); font-size: 1.3rem; margin: 1.2rem 0 0.6rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.s9d2-mobile-menu ul { list-style: none; }
.s9d2-mobile-menu li { margin-bottom: 0.4rem; }
.s9d2-mobile-menu a {
  display: block; padding: 0.7rem 0.8rem; border-radius: 8px;
  color: var(--s9d2-text-dim); font-size: 1.3rem;
  border-left: 3px solid transparent;
}
.s9d2-mobile-menu a:hover { background: rgba(218, 112, 214, 0.15); color: var(--s9d2-light); border-left-color: var(--s9d2-secondary); }

/* ===== Main content ===== */
.s9d2-main { padding-top: 70px; padding-bottom: 0; }
@media (max-width: 768px) { .s9d2-main { padding-bottom: 80px; } }

/* ===== Carousel ===== */
.s9d2-carousel {
  position: relative; width: 100%; max-width: 430px; margin: 1rem auto;
  border-radius: var(--s9d2-radius); overflow: hidden; box-shadow: var(--s9d2-shadow);
  aspect-ratio: 16 / 9;
}
.s9d2-slides { position: relative; width: 100%; height: 100%; }
.s9d2-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.s9d2-slide img { width: 100%; height: 100%; object-fit: cover; }
.s9d2-slide-active { opacity: 1; }
.s9d2-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem; background: linear-gradient(to top, rgba(30, 30, 30, 0.92), transparent);
  color: #fff;
}
.s9d2-slide-overlay h2 { font-size: 1.6rem; color: var(--s9d2-light); margin-bottom: 0.3rem; }
.s9d2-slide-overlay p { font-size: 1.2rem; color: var(--s9d2-muted); }
.s9d2-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(128, 0, 128, 0.6); color: #fff; border: none;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.s9d2-carousel-arrow:hover { background: var(--s9d2-primary); }
#s9d2-prev { left: 8px; }
#s9d2-next { right: 8px; }
.s9d2-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.s9d2-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; }
.s9d2-dot-active { background: var(--s9d2-light); width: 22px; border-radius: 4px; }

/* ===== Section & headings ===== */
.s9d2-section { padding: 1.6rem 1.2rem; max-width: 430px; margin: 0 auto; }
.s9d2-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--s9d2-light);
  margin-bottom: 0.8rem; padding-left: 0.8rem;
  border-left: 4px solid var(--s9d2-secondary);
}
.s9d2-section-sub {
  font-size: 1.3rem; color: var(--s9d2-text-dim); margin-bottom: 1rem;
}
.s9d2-h1 {
  font-size: 2rem; font-weight: 900; color: #fff;
  text-align: center; margin: 1rem 0; line-height: 1.3;
  text-shadow: 0 0 18px rgba(218, 112, 214, 0.45);
}
.s9d2-h2 {
  font-size: 1.7rem; font-weight: 800; color: var(--s9d2-light);
  margin: 1.2rem 0 0.6rem;
}

/* ===== Game grid ===== */
.s9d2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.s9d2-game-card {
  background: var(--s9d2-bg-card); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--s9d2-border); cursor: pointer;
  transition: transform var(--s9d2-transition), box-shadow var(--s9d2-transition);
  position: relative;
}
.s9d2-game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(128, 0, 128, 0.4); }
.s9d2-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.s9d2-game-name {
  padding: 0.5rem 0.4rem; font-size: 1.1rem; color: var(--s9d2-text);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(to top, rgba(30,30,30,0.95), transparent);
}
.s9d2-game-badge {
  position: absolute; top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--s9d2-primary), var(--s9d2-secondary));
  color: #fff; font-size: 0.95rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 10px;
}
.s9d2-game-type-title {
  font-size: 1.45rem; color: var(--s9d2-secondary); margin: 1.4rem 0 0.7rem;
  font-weight: 800; padding-bottom: 0.4rem; border-bottom: 1px dashed var(--s9d2-border);
}

/* ===== Info / feature blocks ===== */
.s9d2-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.s9d2-feature {
  background: var(--s9d2-bg-card); border: 1px solid var(--s9d2-border);
  border-radius: 12px; padding: 1rem; text-align: center;
}
.s9d2-feature i, .s9d2-feature .material-icons, .s9d2-feature .ion {
  font-size: 2.4rem; color: var(--s9d2-light); margin-bottom: 0.5rem; display: block;
}
.s9d2-feature h3 { font-size: 1.3rem; color: #fff; margin-bottom: 0.3rem; }
.s9d2-feature p { font-size: 1.15rem; color: var(--s9d2-text-dim); line-height: 1.4; }

.s9d2-card {
  background: var(--s9d2-bg-card); border: 1px solid var(--s9d2-border);
  border-radius: var(--s9d2-radius); padding: 1.2rem; margin-bottom: 1rem;
}
.s9d2-card h3 { color: var(--s9d2-light); font-size: 1.4rem; margin-bottom: 0.5rem; }
.s9d2-card p { color: var(--s9d2-text-dim); font-size: 1.2rem; line-height: 1.55; margin-bottom: 0.5rem; }
.s9d2-card ul { padding-left: 1.4rem; color: var(--s9d2-text-dim); font-size: 1.2rem; }
.s9d2-card li { margin-bottom: 0.3rem; line-height: 1.5; }

.s9d2-promo-link {
  color: var(--s9d2-light); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--s9d2-secondary);
}
.s9d2-promo-link:hover { color: var(--s9d2-secondary); }

.s9d2-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--s9d2-secondary), var(--s9d2-primary));
  color: #fff; font-weight: 800; font-size: 1.35rem; padding: 0.8rem 1.6rem;
  border-radius: 30px; cursor: pointer; border: none; margin: 0.6rem 0;
  box-shadow: 0 4px 16px rgba(218, 112, 214, 0.5);
  transition: transform var(--s9d2-transition);
}
.s9d2-cta:hover { transform: scale(1.04); }

/* ===== Testimonials ===== */
.s9d2-testimonials { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.s9d2-testimonial {
  background: var(--s9d2-bg-card); border-left: 3px solid var(--s9d2-accent);
  border-radius: 10px; padding: 1rem;
}
.s9d2-testimonial p { color: var(--s9d2-text-dim); font-size: 1.2rem; font-style: italic; margin-bottom: 0.5rem; }
.s9d2-testimonial span { color: var(--s9d2-light); font-size: 1.1rem; font-weight: 700; }

/* ===== Winners ===== */
.s9d2-winners { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.5rem; }
.s9d2-winner {
  flex: 0 0 auto; background: var(--s9d2-bg-card); border: 1px solid var(--s9d2-border);
  border-radius: 10px; padding: 0.6rem 0.9rem; min-width: 160px;
}
.s9d2-winner .s9d2-winner-name { color: var(--s9d2-light); font-size: 1.15rem; font-weight: 700; }
.s9d2-winner .s9d2-winner-game { color: var(--s9d2-text-dim); font-size: 1.05rem; }
.s9d2-winner .s9d2-winner-amount { color: var(--s9d2-gold); font-size: 1.3rem; font-weight: 800; }

/* ===== Payment ===== */
.s9d2-payments { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.s9d2-payment {
  background: var(--s9d2-bg-card); border: 1px solid var(--s9d2-border);
  border-radius: 8px; padding: 0.5rem 0.9rem; font-size: 1.1rem; color: var(--s9d2-muted);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ===== Partners ===== */
.s9d2-partners { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; align-items: center; }
.s9d2-partners img { width: 60px; height: 24px; object-fit: contain; opacity: 0.85; border-radius: 4px; }

/* ===== FAQ ===== */
.s9d2-faq-item {
  background: var(--s9d2-bg-card); border: 1px solid var(--s9d2-border);
  border-radius: 10px; padding: 1rem; margin-bottom: 0.7rem;
}
.s9d2-faq-item h4 { color: var(--s9d2-light); font-size: 1.25rem; margin-bottom: 0.4rem; }
.s9d2-faq-item p { color: var(--s9d2-text-dim); font-size: 1.2rem; line-height: 1.5; }

/* ===== Footer ===== */
.s9d2-footer {
  background: linear-gradient(180deg, #2a1230, #1E1E1E);
  border-top: 1px solid var(--s9d2-border); padding: 2rem 1.2rem 1.5rem; margin-top: 2rem;
}
.s9d2-footer-inner { max-width: 430px; margin: 0 auto; }
.s9d2-footer-brand { color: var(--s9d2-text-dim); font-size: 1.2rem; line-height: 1.55; margin-bottom: 1rem; }
.s9d2-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.s9d2-footer-links a { color: var(--s9d2-muted); font-size: 1.15rem; }
.s9d2-footer-links a:hover { color: var(--s9d2-light); }
.s9d2-footer-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.s9d2-footer-copy { color: var(--s9d2-text-dim); font-size: 1.1rem; border-top: 1px solid var(--s9d2-border); padding-top: 0.8rem; }

/* ===== Mobile bottom nav ===== */
.s9d2-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 62px; z-index: 1000;
  background: linear-gradient(180deg, #2a1230, #1E1E1E);
  border-top: 1px solid var(--s9d2-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}
.s9d2-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--s9d2-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; transition: all var(--s9d2-transition); position: relative;
  font-size: 1.05rem; padding: 4px 2px;
}
.s9d2-bottom-nav-btn i, .s9d2-bottom-nav-btn .material-icons, .s9d2-bottom-nav-btn .ion {
  font-size: 22px;
}
.s9d2-bottom-nav-btn:hover { color: var(--s9d2-light); transform: translateY(-2px); }
.s9d2-bottom-nav-btn.s9d2-nav-active { color: var(--s9d2-light); }
.s9d2-bottom-nav-btn.s9d2-nav-active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; background: var(--s9d2-secondary); border-radius: 0 0 4px 4px;
}

/* Back-to-top floating button */
.s9d2-top-btn {
  position: fixed; right: 14px; bottom: 76px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--s9d2-secondary), var(--s9d2-primary));
  color: #fff; border: none; cursor: pointer; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(128, 0, 128, 0.5);
}

/* ===== Desktop: hide bottom nav & widen container ===== */
@media (min-width: 769px) {
  .s9d2-bottom-nav { display: none; }
  .s9d2-container, .s9d2-section, .s9d2-header-inner, .s9d2-footer-inner, .s9d2-carousel { max-width: 720px; }
  .s9d2-grid { grid-template-columns: repeat(5, 1fr); }
  .s9d2-features { grid-template-columns: repeat(4, 1fr); }
}

/* Utility */
.s9d2-text-center { text-align: center; }
.s9d2-mt-1 { margin-top: 1rem; }
.s9d2-mb-1 { margin-bottom: 1rem; }
.s9d2-hidden { display: none; }
