/**
 * 9666.homes - Core Stylesheet
 * Prefix: uie5-
 * Palette: #FF9800 (primary/amber) | #A9A9A9 (muted/silver) | #1A1A2E (dark bg)
 * Mobile-first, max-width 430px, rem units (root 62.5%)
 */

:root {
  --uie5-primary: #ff9800;
  --uie5-primary-dark: #e08600;
  --uie5-muted: #a9a9a9;
  --uie5-bg: #1a1a2e;
  --uie5-bg-soft: #232347;
  --uie5-bg-card: #20203b;
  --uie5-text: #f5f5f7;
  --uie5-text-soft: #c9c9d6;
  --uie5-accent: #ffd24d;
  --uie5-border: rgba(255, 152, 0, 0.25);
  --uie5-radius: 12px;
  --uie5-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

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

html { font-size: 62.5%; }

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", sans-serif;
  background: var(--uie5-bg);
  color: var(--uie5-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

.uie5-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ============ Header ============ */
.uie5-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #16162b 0%, #1a1a2e 100%);
  border-bottom: 1px solid var(--uie5-border);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.uie5-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.uie5-brand img {
  width: 2.8rem; height: 2.8rem;
  border-radius: 6px;
}
.uie5-brand .uie5-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--uie5-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.uie5-brand .uie5-brand-sub {
  font-size: 1.0rem;
  color: var(--uie5-muted);
  display: block;
  line-height: 1.2rem;
}

.uie5-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.uie5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.uie5-btn:active { transform: scale(0.95); }
.uie5-btn-register {
  background: linear-gradient(135deg, var(--uie5-primary), var(--uie5-primary-dark));
  color: #1a1a2e;
}
.uie5-btn-login {
  background: transparent;
  color: var(--uie5-primary);
  border: 1px solid var(--uie5-primary);
}
.uie5-menu-btn {
  background: transparent;
  border: none;
  color: var(--uie5-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

/* ============ Mobile Menu (expandable) ============ */
.uie5-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #14142a;
  border-bottom: 1px solid var(--uie5-border);
  padding: 6rem 1rem 1.2rem;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.28s ease;
  max-height: 80vh;
  overflow-y: auto;
}
.uie5-mobile-menu.uie5-menu-open { transform: translateY(0); }
.uie5-mobile-menu a {
  display: block;
  padding: 1.1rem 1rem;
  color: var(--uie5-text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.4rem;
  font-weight: 600;
}
.uie5-mobile-menu a:active { background: rgba(255,152,0,0.12); }
.uie5-mobile-menu .uie5-menu-title {
  font-size: 1.2rem;
  color: var(--uie5-muted);
  text-transform: uppercase;
  padding: 0.8rem 1rem 0.4rem;
  letter-spacing: 1px;
}

/* ============ Main content ============ */
main.uie5-main {
  padding-top: 6rem;
  padding-bottom: 8rem;
}
.uie5-container {
  width: 100%;
  padding: 1rem;
}

/* ============ Carousel ============ */
.uie5-carousel {
  position: relative;
  width: 100%;
  height: 18rem;
  border-radius: var(--uie5-radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: var(--uie5-shadow);
}
.uie5-slides { position: relative; width: 100%; height: 100%; }
.uie5-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.uie5-slide img { width: 100%; height: 100%; object-fit: cover; }
.uie5-slide.uie5-slide-active { opacity: 1; }
.uie5-slide .uie5-slide-cap {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(26,26,46,0.78);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--uie5-primary);
}
.uie5-dots {
  position: absolute;
  bottom: 0.8rem; right: 1rem;
  display: flex; gap: 0.4rem;
}
.uie5-dot {
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
}
.uie5-dot.uie5-dot-active { background: var(--uie5-primary); }

/* ============ Section headings ============ */
.uie5-section {
  margin-bottom: 1.8rem;
}
.uie5-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--uie5-primary);
  margin: 0.4rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--uie5-primary);
}
.uie5-h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0.6rem 0 1rem;
  line-height: 2.8rem;
}
.uie5-h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--uie5-primary);
  margin: 1.2rem 0 0.8rem;
}
.uie5-h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--uie5-accent);
  margin: 1rem 0 0.5rem;
}
.uie5-lead {
  color: var(--uie5-text-soft);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* ============ Game grid ============ */
.uie5-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.4rem 0 0.8rem;
}
.uie5-cat-head .uie5-cat-icon {
  color: var(--uie5-primary);
  font-size: 2rem;
}
.uie5-cat-head h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}
.uie5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.uie5-game-card {
  background: var(--uie5-bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.uie5-game-card:active {
  transform: scale(0.96);
  border-color: var(--uie5-primary);
}
.uie5-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.uie5-game-card .uie5-game-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--uie5-text);
  text-align: center;
  padding: 0.4rem 0.2rem 0.5rem;
  line-height: 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Cards / generic blocks ============ */
.uie5-card {
  background: var(--uie5-bg-card);
  border-radius: var(--uie5-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.05);
}
.uie5-card p { color: var(--uie5-text-soft); margin-bottom: 0.6rem; }
.uie5-card p:last-child { margin-bottom: 0; }

.uie5-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.uie5-feature-item {
  background: var(--uie5-bg-soft);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.uie5-feature-item .uie5-fi-icon {
  font-size: 2.4rem;
  color: var(--uie5-primary);
  margin-bottom: 0.4rem;
}
.uie5-feature-item h3 {
  font-size: 1.3rem; color: #fff; margin-bottom: 0.3rem;
}
.uie5-feature-item p { font-size: 1.1rem; color: var(--uie5-muted); }

/* Inline promo link (text) */
.uie5-promo-link {
  color: var(--uie5-primary);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--uie5-primary);
}
.uie5-promo-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--uie5-primary), var(--uie5-primary-dark));
  color: #1a1a2e;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 1.1rem;
  border-radius: 10px;
  margin: 1rem 0;
  border: none;
  cursor: pointer;
}
.uie5-promo-btn:active { transform: scale(0.97); }

/* Winners strip */
.uie5-winners {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}
.uie5-winner {
  flex: 0 0 auto;
  background: var(--uie5-bg-soft);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 1.1rem;
  white-space: nowrap;
}
.uie5-winner b { color: var(--uie5-accent); }

/* Payment chips */
.uie5-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.uie5-chip {
  background: var(--uie5-bg-soft);
  border: 1px solid var(--uie5-border);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 1.1rem;
  color: var(--uie5-text);
}

/* Testimonials */
.uie5-testimonial {
  background: var(--uie5-bg-card);
  border-left: 3px solid var(--uie5-primary);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
}
.uie5-testimonial .uie5-tstars { color: var(--uie5-accent); font-size: 1.2rem; }
.uie5-testimonial p { color: var(--uie5-text-soft); font-size: 1.25rem; margin: 0.3rem 0; }
.uie5-testimonial .uie5-tauthor { color: var(--uie5-muted); font-size: 1.1rem; }

/* RTP compact table */
.uie5-rtp-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.25rem;
}
.uie5-rtp-row span:last-child { color: var(--uie5-primary); font-weight: 700; }

/* FAQ */
.uie5-faq-item {
  background: var(--uie5-bg-card);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
}
.uie5-faq-item h3 { margin-bottom: 0.3rem; }
.uie5-faq-item p { color: var(--uie5-text-soft); font-size: 1.25rem; }

/* ============ Footer ============ */
.uie5-footer {
  background: #14142a;
  border-top: 1px solid var(--uie5-border);
  padding: 1.4rem 1rem 2rem;
  margin-top: 1rem;
}
.uie5-footer .uie5-foot-brand {
  color: var(--uie5-muted);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.6rem;
}
.uie5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-bottom: 1rem;
}
.uie5-footer-links a {
  color: var(--uie5-text-soft);
  font-size: 1.15rem;
}
.uie5-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.uie5-footer-promos button {
  flex: 1 1 40%;
  background: var(--uie5-bg-soft);
  border: 1px solid var(--uie5-border);
  color: var(--uie5-primary);
  border-radius: 6px;
  padding: 0.7rem;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.uie5-footer-promos button:active { background: rgba(255,152,0,0.15); }
.uie5-copyright {
  color: var(--uie5-muted);
  font-size: 1.1rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.9rem;
}

/* ============ Mobile bottom nav (fixed) ============ */
.uie5-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: linear-gradient(180deg, #1d1d38 0%, #14142a 100%);
  border-top: 1px solid var(--uie5-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.uie5-bottom-nav button,
.uie5-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--uie5-muted);
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.uie5-bottom-nav button:active,
.uie5-bottom-nav a:active { transform: scale(0.9); }
.uie5-bottom-nav .uie5-bn-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.uie5-bottom-nav .uie5-bn-label {
  font-size: 1.0rem;
  font-weight: 600;
}
.uie5-bottom-nav .uie5-bn-active {
  color: var(--uie5-primary);
}
.uie5-bottom-nav .uie5-bn-badge {
  position: absolute;
  top: 0.6rem;
  background: #ff3b3b;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 50%;
  width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.uie5-bn-item { position: relative; }

/* ============ Desktop: hide bottom nav ============ */
@media (min-width: 769px) {
  .uie5-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  main.uie5-main { padding-bottom: 8rem; }
}

/* Utility */
.uie5-text-center { text-align: center; }
.uie5-mt-1 { margin-top: 1rem; }
.uie5-mb-1 { margin-bottom: 1rem; }
