/* ==========================================================================
   jili com login - design.css
   Mobile-first casino styles. All custom classes use the uif5- prefix.
   Palette: #CD5C5C | #87CEEB | #F08080 | #0C0C0C | #DC143C
   Comments are in English per project convention.
   ========================================================================== */

:root {
  --uif5-primary: #DC143C;
  --uif5-primary-2: #CD5C5C;
  --uif5-accent: #87CEEB;
  --uif5-soft: #F08080;
  --uif5-bg: #0C0C0C;
  --uif5-bg-2: #141414;
  --uif5-bg-3: #1d1213;
  --uif5-text: #ffffff;
  --uif5-muted: #b9b3b3;
  --uif5-gold: #ffd76a;
  --uif5-radius: 14px;
  --uif5-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --uif5-gradient: linear-gradient(135deg, #DC143C 0%, #CD5C5C 50%, #F08080 100%);
  --uif5-grad-blue: linear-gradient(135deg, #87CEEB 0%, #CD5C5C 100%);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #2a0d12 0%, var(--uif5-bg) 55%);
  color: var(--uif5-text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.uif5-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.uif5-wrapper { padding: 70px 0 30px; }
.uif5-main { display: block; }

/* ============ Header ============ */
.uif5-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 20, 60, 0.35);
  transition: background 0.3s ease;
}
.uif5-header-scrolled {
  background: rgba(8, 8, 8, 0.98);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
.uif5-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.uif5-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.uif5-brand img { width: 28px; height: 28px; border-radius: 6px; }
.uif5-brand-name {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--uif5-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uif5-brand-name span { color: var(--uif5-primary); }

.uif5-header-actions { display: flex; align-items: center; gap: 6px; }
.uif5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  min-height: 38px;
}
.uif5-btn:active { transform: scale(0.96); }
.uif5-btn-login {
  background: transparent;
  color: var(--uif5-text);
  border: 1px solid rgba(135, 206, 235, 0.6);
}
.uif5-btn-register {
  background: var(--uif5-gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(220, 20, 60, 0.45);
}

.uif5-menu-toggle {
  background: transparent;
  border: 0;
  color: var(--uif5-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* Slide-down mobile menu */
.uif5-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 9999;
  background: var(--uif5-bg-2);
  border-bottom: 1px solid rgba(220, 20, 60, 0.35);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.uif5-mobile-menu.uif5-menu-open { max-height: 460px; }
.uif5-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.uif5-mobile-menu a {
  display: block;
  padding: 10px 12px;
  background: rgba(220, 20, 60, 0.12);
  border-radius: 10px;
  color: var(--uif5-text);
  font-size: 1.35rem;
  font-weight: 600;
}
.uif5-mobile-menu a:hover { background: rgba(135, 206, 235, 0.18); }

/* ============ Hero / Carousel ============ */
.uif5-hero {
  margin-top: 12px;
  border-radius: var(--uif5-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--uif5-shadow);
}
.uif5-carousel { position: relative; }
.uif5-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.uif5-slide img { width: 100%; height: 190px; object-fit: cover; }
.uif5-slide.uif5-slide-active { display: block; }
.uif5-slide-caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  padding: 18px 6px 6px;
}
.uif5-slide-caption strong { font-size: 1.6rem; color: var(--uif5-gold); }
.uif5-car-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.uif5-car-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 0; padding: 0; cursor: pointer;
}
.uif5-car-dot.uif5-car-dot-active { background: var(--uif5-primary); width: 18px; border-radius: 5px; }

/* ============ Section titles ============ */
.uif5-section { margin: 22px 0; }
.uif5-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.uif5-h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 4px 0;
  line-height: 1.4rem;
}
.uif5-h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--uif5-text);
  border-left: 4px solid var(--uif5-primary);
  padding-left: 10px;
}
.uif5-h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 12px 0 6px;
  color: var(--uif5-accent);
}
.uif5-muted { color: var(--uif5-muted); font-size: 1.3rem; }

.uif5-more { font-size: 1.25rem; color: var(--uif5-accent); font-weight: 700; }

/* ============ Game grid ============ */
.uif5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.uif5-game {
  background: var(--uif5-bg-2);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(220, 20, 60, 0.18);
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.uif5-game:hover { transform: translateY(-2px); border-color: var(--uif5-accent); }
.uif5-game img { width: 100%; height: 86px; object-fit: cover; }
.uif5-game-name {
  font-size: 1.15rem;
  color: var(--uif5-text);
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Cards ============ */
.uif5-card {
  background: var(--uif5-bg-2);
  border-radius: var(--uif5-radius);
  padding: 14px;
  border: 1px solid rgba(220, 20, 60, 0.18);
  margin-bottom: 12px;
}
.uif5-card-accent { border-left: 4px solid var(--uif5-accent); }
.uif5-card p { margin: 6px 0; color: var(--uif5-muted); font-size: 1.3rem; line-height: 2rem; }
.uif5-card ul { margin: 6px 0; padding-left: 18px; color: var(--uif5-muted); }
.uif5-card li { font-size: 1.3rem; line-height: 2rem; }

/* Inline promo text link */
.uif5-link {
  color: var(--uif5-gold);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}
.uif5-link:hover { color: var(--uif5-soft); }

/* Big CTA banner */
.uif5-cta {
  background: var(--uif5-gradient);
  border-radius: var(--uif5-radius);
  padding: 18px;
  text-align: center;
  color: #fff;
  margin: 18px 0;
  box-shadow: var(--uif5-shadow);
}
.uif5-cta h3 { color: #fff; margin: 0 0 6px; font-size: 1.7rem; }
.uif5-cta p { margin: 0 0 12px; font-size: 1.3rem; opacity: 0.92; }
.uif5-cta .uif5-btn { background: #fff; color: var(--uif5-primary); }

/* ============ RTP / stats ============ */
.uif5-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.uif5-stat {
  background: var(--uif5-bg-3);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}
.uif5-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--uif5-accent); }
.uif5-stat-label { font-size: 1.15rem; color: var(--uif5-muted); }

.uif5-bar { height: 8px; border-radius: 5px; background: rgba(255,255,255,0.1); overflow: hidden; margin-top: 4px; }
.uif5-bar-fill { height: 100%; background: var(--uif5-gradient); }

/* ============ Payment / winners ============ */
.uif5-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.uif5-chip {
  background: rgba(135, 206, 235, 0.14);
  color: var(--uif5-accent);
  border: 1px solid rgba(135, 206, 235, 0.4);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.uif5-winners { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.uif5-winner {
  background: var(--uif5-bg-3);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.uif5-winner img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.uif5-winner b { color: var(--uif5-gold); font-size: 1.25rem; }
.uif5-winner span { display: block; font-size: 1.1rem; color: var(--uif5-muted); }

/* Testimonials */
.uif5-testi {
  background: var(--uif5-bg-2);
  border-left: 4px solid var(--uif5-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.uif5-testi p { margin: 0 0 6px; font-size: 1.25rem; color: var(--uif5-text); }
.uif5-testi small { color: var(--uif5-accent); font-weight: 700; }

/* Steps list */
.uif5-steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.uif5-steps li {
  position: relative;
  padding: 8px 10px 8px 42px;
  font-size: 1.3rem;
  color: var(--uif5-muted);
  line-height: 2rem;
}
.uif5-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 8px; top: 8px;
  width: 26px; height: 26px;
  background: var(--uif5-gradient);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-weight: 800;
  font-size: 1.2rem;
}

/* FAQ */
.uif5-faq { margin-bottom: 8px; }
.uif5-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--uif5-text);
  padding: 10px 12px;
  background: var(--uif5-bg-3);
  border-radius: 10px;
  list-style: none;
}
.uif5-faq[open] summary { border-bottom: 2px solid var(--uif5-primary); }
.uif5-faq p { padding: 8px 12px; color: var(--uif5-muted); font-size: 1.25rem; line-height: 2rem; }

/* Footer */
.uif5-footer {
  background: var(--uif5-bg-2);
  border-top: 1px solid rgba(220, 20, 60, 0.3);
  padding: 22px 14px 30px;
  margin-top: 22px;
}
.uif5-footer p { color: var(--uif5-muted); font-size: 1.25rem; line-height: 2rem; margin: 4px 0; }
.uif5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 10px 0;
}
.uif5-footer-links a {
  font-size: 1.2rem;
  color: var(--uif5-accent);
  text-decoration: underline;
}
.uif5-footer-copy { font-size: 1.15rem; color: var(--uif5-muted); margin-top: 8px; }

/* Desktop footer promo buttons */
.uif5-footer-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.uif5-footer-cta .uif5-btn { font-size: 1.2rem; padding: 8px 14px; }

/* ============ Bottom mobile navigation ============ */
.uif5-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(12, 12, 12, 0.98);
  border-top: 1px solid rgba(220, 20, 60, 0.45);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
}
.uif5-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  color: var(--uif5-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s ease, transform 0.15s ease;
}
.uif5-bnav-btn:active { transform: scale(0.9); }
.uif5-bnav-btn .material-icons,
.uif5-bnav-btn ion-icon { font-size: 24px; }
.uif5-bnav-btn .uif5-bnav-ico { font-size: 24px; }
.uif5-bnav-label { font-size: 1.05rem; font-weight: 700; }
.uif5-bnav-btn.uif5-bnav-active { color: var(--uif5-primary); }
.uif5-bnav-btn:hover { color: var(--uif5-accent); }
.uif5-bnav-promo { color: var(--uif5-gold); }

/* Reveal animation */
.uif5-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.uif5-revealed { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 430px) {
  .uif5-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .uif5-game img { height: 76px; }
  .uif5-slide img { height: 170px; }
  .uif5-h1 { font-size: 1.8rem; }
  body { font-size: 1.4rem; }
}

@media (min-width: 431px) and (max-width: 768px) {
  .uif5-container { max-width: 430px; }
}

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

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  .uif5-bnav { display: none; }
  .uif5-container { max-width: 760px; }
  .uif5-header-inner { max-width: 760px; }
  .uif5-mobile-menu-inner { max-width: 760px; grid-template-columns: repeat(4, 1fr); }
  .uif5-grid { grid-template-columns: repeat(6, 1fr); }
  .uif5-winners { grid-template-columns: repeat(4, 1fr); }
  .uif5-main { padding-bottom: 30px; }
}
