/* =========================================================
   mm88b core stylesheet - base files
   Class prefix: ui9f-
   Palette: #004D40 | #B2DFDB | #00695C | #9370DB | #273746
   Mobile-first. Root font 62.5% (1rem = 10px).
   ========================================================= */

:root {
  --ui9f-primary: #004D40;
  --ui9f-accent: #9370DB;
  --ui9f-deep: #00695C;
  --ui9f-light: #B2DFDB;
  --ui9f-bg: #273746;
  --ui9f-bg-dark: #1c2733;
  --ui9f-text: #ECEFF1;
  --ui9f-muted: #B0BEC5;
  --ui9f-gold: #FFD54F;
  --ui9f-card: #2e3f50;
  --ui9f-border: rgba(178, 223, 219, 0.18);
  --ui9f-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

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

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

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--ui9f-bg-dark);
  color: var(--ui9f-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
.ui9f-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--ui9f-primary), var(--ui9f-deep));
  border-bottom: 1px solid var(--ui9f-border);
  z-index: 1000;
  padding: 0 1.2rem;
  height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--ui9f-shadow);
}
.ui9f-brand { display: flex; align-items: center; gap: 0.8rem; }
.ui9f-logo {
  width: 3.2rem; height: 3.2rem;
  border-radius: 0.6rem;
  background: var(--ui9f-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--ui9f-primary); font-weight: 800; font-size: 1.6rem;
}
.ui9f-brand-text { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: 0.05rem; }
.ui9f-brand-text span { color: var(--ui9f-gold); }

.ui9f-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.ui9f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  min-height: 4rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.ui9f-btn:active { transform: scale(0.95); }
.ui9f-btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid var(--ui9f-light);
}
.ui9f-btn-register {
  background: linear-gradient(135deg, var(--ui9f-gold), #ffae42);
  color: var(--ui9f-primary);
}
.ui9f-menu-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 4rem;
  min-height: 4rem;
}

/* ---------- Mobile expandable menu ---------- */
.ui9f-mobile-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--ui9f-bg-dark);
  border-bottom: 1px solid var(--ui9f-border);
  padding: 1rem 1.2rem;
  z-index: 9999;
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  max-height: 70vh;
  overflow-y: auto;
}
.ui9f-mobile-menu.ui9f-open { transform: translateY(0); }
.ui9f-mobile-menu a {
  display: block;
  padding: 1.1rem 1rem;
  font-size: 1.35rem;
  color: var(--ui9f-text);
  border-bottom: 1px solid rgba(178, 223, 219, 0.08);
}
.ui9f-mobile-menu a:hover { background: rgba(147, 112, 219, 0.15); color: var(--ui9f-gold); }

/* ---------- Layout ---------- */
.ui9f-main { padding-top: 5.6rem; }
.ui9f-container { padding: 1.4rem 1.2rem; }
.ui9f-section { margin: 1.8rem 0; }
.ui9f-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ui9f-gold);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ui9f-section-title i { color: var(--ui9f-accent); }

/* ---------- Hero carousel ---------- */
.ui9f-carousel {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--ui9f-shadow);
  margin: 1rem 0;
}
.ui9f-slides { position: relative; width: 100%; aspect-ratio: 16/9; }
.ui9f-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.ui9f-slide.ui9f-active { opacity: 1; }
.ui9f-slide img { width: 100%; height: 100%; object-fit: cover; }
.ui9f-dots {
  position: absolute;
  bottom: 0.8rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem;
}
.ui9f-dot {
  width: 0.8rem; height: 0.8rem;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}
.ui9f-dot.ui9f-active { background: var(--ui9f-gold); }

/* ---------- H1 / hero text ---------- */
.ui9f-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 1.4rem 0 0.6rem;
}
.ui9f-hero-sub {
  font-size: 1.35rem;
  color: var(--ui9f-muted);
  margin-bottom: 1rem;
}

/* ---------- CTA promo ---------- */
.ui9f-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--ui9f-accent), #7b57c4);
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  padding: 1rem 1.8rem;
  border-radius: 0.8rem;
  margin: 0.6rem 0.4rem 0.6rem 0;
  min-height: 4.4rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}
.ui9f-cta:active { transform: scale(0.96); }
.ui9f-cta-gold { background: linear-gradient(135deg, var(--ui9f-gold), #ffae42); color: var(--ui9f-primary); }
.ui9f-text-link {
  color: var(--ui9f-gold);
  font-weight: 700;
  border-bottom: 1px dotted var(--ui9f-gold);
}

/* ---------- Game grid ---------- */
.ui9f-cat-anchor { scroll-margin-top: 6rem; }
.ui9f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 0.6rem 0;
}
.ui9f-game-card {
  background: var(--ui9f-card);
  border-radius: 0.8rem;
  border: 1px solid var(--ui9f-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
  text-align: center;
}
.ui9f-game-card:active { transform: scale(0.94); border-color: var(--ui9f-gold); }
.ui9f-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #000;
}
.ui9f-game-name {
  font-size: 1.05rem;
  color: var(--ui9f-light);
  padding: 0.4rem 0.2rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Card / panel ---------- */
.ui9f-card {
  background: var(--ui9f-card);
  border: 1px solid var(--ui9f-border);
  border-radius: 1rem;
  padding: 1.2rem;
  margin: 0.8rem 0;
  box-shadow: var(--ui9f-shadow);
}
.ui9f-card h2, .ui9f-card h3 { color: var(--ui9f-gold); margin-bottom: 0.5rem; }
.ui9f-card p { font-size: 1.25rem; color: var(--ui9f-text); margin-bottom: 0.6rem; }

/* ---------- Stats / RTP ---------- */
.ui9f-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 0.6rem 0;
}
.ui9f-stat {
  background: linear-gradient(135deg, var(--ui9f-primary), var(--ui9f-deep));
  border-radius: 0.8rem;
  padding: 0.9rem;
  text-align: center;
}
.ui9f-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--ui9f-gold); }
.ui9f-stat-label { font-size: 1.1rem; color: var(--ui9f-light); }

/* ---------- Testimonials ---------- */
.ui9f-testi {
  background: var(--ui9f-card);
  border-left: 3px solid var(--ui9f-accent);
  border-radius: 0.6rem;
  padding: 1rem;
  margin: 0.6rem 0;
  font-size: 1.2rem;
}
.ui9f-testi-author { color: var(--ui9f-gold); font-weight: 700; font-size: 1.15rem; margin-top: 0.4rem; }

/* ---------- Payment ---------- */
.ui9f-pay {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.ui9f-pay span {
  background: var(--ui9f-card);
  border: 1px solid var(--ui9f-border);
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
  font-size: 1.15rem;
  color: var(--ui9f-light);
}

/* ---------- FAQ accordion ---------- */
.ui9f-faq { border-top: 1px solid var(--ui9f-border); }
.ui9f-faq-item { border-bottom: 1px solid var(--ui9f-border); }
.ui9f-faq-q {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ui9f-text);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1rem 0.4rem;
  cursor: pointer;
}
.ui9f-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 1.2rem;
  color: var(--ui9f-muted);
  padding: 0 0.4rem;
}
.ui9f-faq-item.ui9f-open .ui9f-faq-a { max-height: 30rem; padding-bottom: 1rem; }

/* ---------- Winners strip ---------- */
.ui9f-winner {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--ui9f-card);
  padding: 0.7rem; border-radius: 0.6rem;
  margin: 0.4rem 0; font-size: 1.15rem;
}
.ui9f-winner b { color: var(--ui9f-gold); }

/* ---------- Footer ---------- */
.ui9f-footer {
  background: var(--ui9f-bg-dark);
  border-top: 1px solid var(--ui9f-border);
  padding: 1.6rem 1.2rem 9rem;
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--ui9f-muted);
}
.ui9f-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin: 0.8rem 0;
}
.ui9f-footer-links a { color: var(--ui9f-light); font-size: 1.15rem; }
.ui9f-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 0.8rem 0;
}
.ui9f-footer-promo button, .ui9f-footer-promo a {
  background: linear-gradient(135deg, var(--ui9f-accent), #7b57c4);
  color: #fff; font-weight: 700; font-size: 1.15rem;
  padding: 0.6rem 1rem; border-radius: 0.6rem; border: none;
  cursor: pointer; text-decoration: none;
}
.ui9f-copyright { font-size: 1.1rem; color: var(--ui9f-muted); margin-top: 1rem; }

/* ---------- Mobile bottom nav ---------- */
.ui9f-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: linear-gradient(135deg, var(--ui9f-primary), var(--ui9f-deep));
  border-top: 1px solid var(--ui9f-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.4);
}
.ui9f-navbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 5.6rem;
  background: none;
  border: none;
  color: var(--ui9f-light);
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  flex: 1;
  transition: color 0.2s, transform 0.15s;
}
.ui9f-navbtn i, .ui9f-navbtn .material-icons, .ui9f-navbtn .ion {
  font-size: 2.4rem;
}
.ui9f-navbtn:active { transform: scale(0.9); }
.ui9f-navbtn:hover { color: var(--ui9f-gold); }
.ui9f-navbtn.ui9f-active { color: var(--ui9f-gold); }
.ui9f-navbtn.ui9f-active::after {
  content: '';
  display: block;
  width: 2.4rem; height: 0.25rem;
  background: var(--ui9f-gold);
  border-radius: 0.2rem;
  margin-top: 0.15rem;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .ui9f-bottomnav { display: none; }
  body { max-width: 430px; }
  .ui9f-footer { padding-bottom: 1.6rem; }
}

/* Mobile bottom padding for content clearance */
@media (max-width: 768px) {
  .ui9f-main { padding-bottom: 7rem; }
}
