/* ============================================================
 * nustar apk - design-de92.css
 * All custom classes use prefix: sde9-
 * Palette: #BDC3C7 | #708090 | #0C0C0C | #CD5C5C
 * Mobile-first, max-width 430px
 * ============================================================ */

:root {
  --sde9-primary: #CD5C5C;
  --sde9-secondary: #708090;
  --sde9-bg: #0C0C0C;
  --sde9-bg-soft: #161616;
  --sde9-bg-card: #1f1f1f;
  --sde9-text: #BDC3C7;
  --sde9-text-bright: #ffffff;
  --sde9-accent: #CD5C5C;
  --sde9-border: #2a2a2a;
  --sde9-gold: #f0c040;
  --sde9-radius: 12px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--sde9-primary); text-decoration: none; }
a:hover { color: var(--sde9-gold); }
img { max-width: 100%; display: block; }

h1, h2, h3 { color: var(--sde9-text-bright); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.2rem; margin: 1.2rem 0; }
h2 { font-size: 1.9rem; margin: 1rem 0; }
h3 { font-size: 1.6rem; margin: 0.8rem 0; }
p  { margin: 0.6rem 0; }

/* ---------- Header ---------- */
.sde9-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1a1a1a 0%, #0C0C0C 100%);
  border-bottom: 1px solid var(--sde9-border);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sde9-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--sde9-text-bright); font-weight: 800; font-size: 1.6rem;
}
.sde9-brand img { width: 28px; height: 28px; border-radius: 6px; }
.sde9-brand span { color: var(--sde9-primary); }

.sde9-head-actions { display: flex; align-items: center; gap: 0.5rem; }
.sde9-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 1rem;
  border-radius: 8px; border: none; cursor: pointer;
  font-size: 1.3rem; font-weight: 700;
  transition: transform .15s ease, background .2s ease;
}
.sde9-btn:active { transform: scale(0.96); }
.sde9-btn-register {
  background: linear-gradient(135deg, #CD5C5C, #a4433f);
  color: #fff;
}
.sde9-btn-login {
  background: transparent; color: var(--sde9-text-bright);
  border: 1px solid var(--sde9-secondary);
}
.sde9-menu-toggle {
  background: transparent; border: none; color: var(--sde9-text-bright);
  font-size: 2rem; cursor: pointer; padding: 0 0.4rem;
}

/* ---------- Mobile slide-down menu ---------- */
.sde9-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: #121212;
  border-bottom: 1px solid var(--sde9-border);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.sde9-mobile-menu.sde9-menu-open { max-height: 480px; }
.sde9-mobile-menu a {
  display: block; padding: 1rem 1.4rem;
  color: var(--sde9-text); border-bottom: 1px solid #1f1f1f;
  font-size: 1.4rem;
}
.sde9-mobile-menu a:hover { background: #1c1c1c; color: var(--sde9-primary); }

/* ---------- Layout ---------- */
.sde9-main { padding-top: 64px; padding-bottom: 80px; }
.sde9-container { padding: 1rem; }
.sde9-section { margin: 1.4rem 0; }
.sde9-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--sde9-text-bright); font-size: 1.7rem;
  margin-bottom: 0.8rem; border-left: 4px solid var(--sde9-primary);
  padding-left: 0.8rem;
}

/* ---------- Hero / Carousel ---------- */
.sde9-hero {
  position: relative; overflow: hidden;
  border-radius: var(--sde9-radius); margin: 1rem 0;
}
.sde9-slide {
  display: none; cursor: pointer; position: relative;
}
.sde9-slide.sde9-slide-active { display: block; }
.sde9-slide img { width: 100%; border-radius: var(--sde9-radius); }
.sde9-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
  font-size: 1.4rem; font-weight: 600;
}
.sde9-dots {
  display: flex; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 0;
}
.sde9-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #444; cursor: pointer;
}
.sde9-dot.sde9-dot-active { background: var(--sde9-primary); }

/* ---------- Promo strip / CTA ---------- */
.sde9-cta {
  display: block; text-align: center;
  background: linear-gradient(135deg, #CD5C5C, #708090);
  color: #fff; font-weight: 800; font-size: 1.5rem;
  padding: 1.1rem; border-radius: 10px; margin: 1rem 0;
}
.sde9-cta:hover { opacity: .92; color: #fff; }
.sde9-promo-text a { font-weight: 700; color: var(--sde9-primary); }

/* ---------- Game grid ---------- */
.sde9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.sde9-game {
  display: block; background: var(--sde9-bg-card);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--sde9-border);
  transition: transform .15s ease, border-color .2s ease;
}
.sde9-game:hover { transform: translateY(-2px); border-color: var(--sde9-primary); }
.sde9-game img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.sde9-game-name {
  font-size: 1.15rem; color: var(--sde9-text);
  padding: 0.4rem 0.3rem 0.5rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Cards ---------- */
.sde9-card {
  background: var(--sde9-bg-card);
  border: 1px solid var(--sde9-border);
  border-radius: var(--sde9-radius);
  padding: 1rem; margin: 0.6rem 0;
}
.sde9-card h3 { color: var(--sde9-primary); }
.sde9-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.sde9-feature {
  background: #181818; border-radius: 8px; padding: 0.8rem;
  text-align: center;
}
.sde9-feature i, .sde9-feature .material-icons,
.sde9-feature ion-icon { font-size: 24px; color: var(--sde9-primary); }
.sde9-feature-title { color: var(--sde9-text-bright); font-weight: 700; font-size: 1.25rem; margin-top: 0.3rem; }
.sde9-feature-desc { font-size: 1.1rem; color: var(--sde9-secondary); }

/* ---------- RTP table ---------- */
.sde9-table {
  width: 100%; border-collapse: collapse; font-size: 1.3rem;
}
.sde9-table th, .sde9-table td {
  border: 1px solid var(--sde9-border); padding: 0.5rem; text-align: center;
}
.sde9-table th { background: #1a1a1a; color: var(--sde9-text-bright); }
.sde9-table td:first-child { text-align: left; color: var(--sde9-text-bright); }

/* ---------- Testimonials ---------- */
.sde9-testimonial {
  background: #181818; border-left: 3px solid var(--sde9-gold);
  padding: 0.8rem 1rem; border-radius: 8px; margin: 0.5rem 0;
  font-style: italic;
}
.sde9-testimonial span { display: block; margin-top: 0.4rem; color: var(--sde9-primary); font-weight: 700; font-style: normal; }

/* ---------- Payment / winners ---------- */
.sde9-pay-row, .sde9-winner-row {
  display: flex; align-items: center; gap: 0.6rem;
  background: #181818; padding: 0.6rem 0.8rem; border-radius: 8px;
  margin: 0.4rem 0; font-size: 1.25rem;
}
.sde9-pay-row i, .sde9-pay-row ion-icon { color: var(--sde9-gold); font-size: 22px; }
.sde9-winner-row b { color: var(--sde9-gold); }

/* ---------- FAQ ---------- */
.sde9-faq { margin: 0.5rem 0; }
.sde9-faq h3 { color: var(--sde9-text-bright); font-size: 1.35rem; }

/* ---------- Footer ---------- */
.sde9-footer {
  background: #060606; border-top: 1px solid var(--sde9-border);
  padding: 1.2rem 1rem 2rem; margin-top: 1.4rem;
}
.sde9-footer p { font-size: 1.25rem; color: var(--sde9-secondary); }
.sde9-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin: 0.8rem 0;
}
.sde9-footer-links a {
  font-size: 1.2rem; color: var(--sde9-text);
  background: #181818; padding: 0.3rem 0.7rem; border-radius: 6px;
}
.sde9-footer-buttons {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: 0.8rem 0;
}
.sde9-footer-buttons .sde9-btn { width: 100%; }
.sde9-copy { font-size: 1.1rem; color: #555; text-align: center; margin-top: 0.8rem; }

/* ---------- Mobile bottom nav ---------- */
.sde9-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #1a1a1a, #0C0C0C);
  border-top: 1px solid var(--sde9-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.sde9-navbtn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--sde9-secondary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; font-size: 1rem;
  transition: color .2s ease, transform .15s ease;
}
.sde9-navbtn i, .sde9-navbtn .material-icons,
.sde9-navbtn ion-icon { font-size: 22px; }
.sde9-navbtn:hover, .sde9-navbtn:focus { color: var(--sde9-primary); }
.sde9-navbtn:active { transform: scale(0.92); }
.sde9-navbtn-active { color: var(--sde9-primary) !important; }
.sde9-navbtn .sde9-badge {
  position: absolute; transform: translate(8px, -10px);
  background: var(--sde9-primary); color: #fff;
  font-size: 0.9rem; padding: 0 4px; border-radius: 8px;
}
.sde9-navbtn { position: relative; }

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