/* ============================================================
 * a58win theme stylesheet (theme-10fd)
 * All custom classes use the ui0f- prefix.
 * Palette: #34495E | #5F9EA0 | #AFEEEE | #4682B4 | #2D2D2D
 * Mobile-first, max 430px design width.
 * ============================================================ */

:root {
  --ui0f-bg: #2D2D2D;
  --ui0f-surface: #34495E;
  --ui0f-primary: #4682B4;
  --ui0f-accent: #5F9EA0;
  --ui0f-light: #AFEEEE;
  --ui0f-text: #F5FAFC;
  --ui0f-muted: #C7D6DD;
  --ui0f-gold: #F5C26B;
  --ui0f-danger: #E0644A;
  --ui0f-success: #4CC18A;
  --ui0f-radius: 12px;
  --ui0f-header-h: 56px;
  --ui0f-bottom-h: 62px;
  --ui0f-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(circle at top, #38506b 0%, var(--ui0f-bg) 60%);
  color: var(--ui0f-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

.ui0f-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* ---------- Header ---------- */
.ui0f-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ui0f-header-h);
  background: linear-gradient(90deg, var(--ui0f-surface), var(--ui0f-primary));
  border-bottom: 2px solid var(--ui0f-accent);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: var(--ui0f-shadow);
}
.ui0f-wrapper > .ui0f-header { max-width: 430px; }
.ui0f-brand { display: flex; align-items: center; gap: 8px; }
.ui0f-brand img { width: 28px; height: 28px; border-radius: 6px; }
.ui0f-brand-name {
  font-size: 1.7rem; font-weight: 800; color: var(--ui0f-light);
  letter-spacing: 0.5px;
}
.ui0f-header-actions { display: flex; align-items: center; gap: 6px; }
.ui0f-btn {
  border: none; border-radius: 999px; padding: 8px 14px;
  font-weight: 700; font-size: 1.3rem; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  min-height: 36px; display: inline-flex; align-items: center; gap: 6px;
}
.ui0f-btn:active { transform: scale(0.96); }
.ui0f-btn-register {
  background: linear-gradient(90deg, var(--ui0f-gold), #ff8a3d);
  color: #2D2D2D;
}
.ui0f-btn-login {
  background: var(--ui0f-accent);
  color: #0d1722;
}
.ui0f-menu-btn {
  background: transparent; border: none; color: var(--ui0f-light);
  font-size: 1.8rem; cursor: pointer; padding: 6px 8px; border-radius: 8px;
}
.ui0f-menu-btn.ui0f-active { background: rgba(255,255,255,0.15); }

/* ---------- Mobile menu ---------- */
.ui0f-mobile-menu {
  position: fixed;
  top: var(--ui0f-header-h); left: 0; right: 0;
  background: var(--ui0f-surface);
  border-bottom: 2px solid var(--ui0f-accent);
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
  z-index: 9999;
}
.ui0f-mobile-menu.ui0f-menu-open { max-height: 480px; }
.ui0f-mobile-menu ul { list-style: none; margin: 0; padding: 8px 14px; }
.ui0f-mobile-menu li { border-bottom: 1px solid rgba(175,238,238,0.12); }
.ui0f-mobile-menu li:last-child { border-bottom: none; }
.ui0f-mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 6px; color: var(--ui0f-light); font-size: 1.4rem;
}
.ui0f-mobile-menu a i { width: 22px; text-align: center; }

/* ---------- Layout ---------- */
.ui0f-main { padding-top: calc(var(--ui0f-header-h) + 10px); padding-bottom: 80px; }
.ui0f-section { padding: 18px 14px; }
.ui0f-section-title {
  font-size: 1.75rem; font-weight: 800; color: var(--ui0f-light);
  margin: 0 0 4px; display: flex; align-items: center; gap: 8px;
}
.ui0f-section-title i { color: var(--ui0f-gold); }
.ui0f-section-sub { color: var(--ui0f-muted); font-size: 1.3rem; margin: 0 0 12px; }

/* ---------- Hero carousel ---------- */
.ui0f-hero { padding: 8px 14px 0; }
.ui0f-carousel {
  position: relative; border-radius: var(--ui0f-radius); overflow: hidden;
  box-shadow: var(--ui0f-shadow);
}
.ui0f-slide {
  display: none; position: relative; cursor: pointer;
}
.ui0f-slide.ui0f-active { display: block; animation: ui0ffade .5s ease; }
@keyframes ui0ffade { from { opacity: 0.3; } to { opacity: 1; } }
.ui0f-slide img { width: 100%; height: 180px; object-fit: cover; }
.ui0f-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 22px 12px 10px; color: #fff;
}
.ui0f-slide-cap h2 { margin: 0 0 4px; font-size: 1.7rem; }
.ui0f-slide-cap p { margin: 0; font-size: 1.2rem; color: var(--ui0f-light); }
.ui0f-dots {
  position: absolute; bottom: 8px; right: 10px; display: flex; gap: 6px;
}
.ui0f-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
}
.ui0f-dot.ui0f-active { background: var(--ui0f-gold); }

/* ---------- Category chips ---------- */
.ui0f-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 4px;
  scrollbar-width: none;
}
.ui0f-chips::-webkit-scrollbar { display: none; }
.ui0f-cat-chip {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px;
  background: var(--ui0f-surface); color: var(--ui0f-light);
  font-size: 1.25rem; border: 1px solid rgba(175,238,238,0.25);
  cursor: pointer; white-space: nowrap;
}
.ui0f-cat-chip.ui0f-chip-active {
  background: var(--ui0f-primary); color: #fff; border-color: var(--ui0f-gold);
}

/* ---------- Game grid ---------- */
.ui0f-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ui0f-card {
  background: linear-gradient(160deg, #3b536e, #2c3e54);
  border: 1px solid rgba(175,238,238,0.18);
  border-radius: var(--ui0f-radius);
  overflow: hidden; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block; text-align: center;
}
.ui0f-card:active { transform: scale(0.97); }
.ui0f-card-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: #1c2733;
}
.ui0f-card-name {
  font-size: 1.2rem; color: var(--ui0f-light); padding: 6px 4px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui0f-card-hot {
  position: relative;
}
.ui0f-card-hot::after {
  content: "HOT"; position: absolute; top: 6px; left: 6px;
  background: var(--ui0f-danger); color: #fff; font-size: 0.95rem;
  font-weight: 800; padding: 2px 6px; border-radius: 6px;
}

/* ---------- Feature / promo blocks ---------- */
.ui0f-panel {
  background: rgba(52,73,94,0.55);
  border: 1px solid rgba(175,238,238,0.15);
  border-radius: var(--ui0f-radius);
  padding: 14px;
}
.ui0f-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.ui0f-feature {
  background: linear-gradient(160deg, #3c5878, #2a3c52);
  padding: 12px; border-radius: var(--ui0f-radius);
  text-align: center;
}
.ui0f-feature i { font-size: 2.4rem; color: var(--ui0f-gold); }
.ui0f-feature h3 { margin: 6px 0 4px; font-size: 1.35rem; color: var(--ui0f-light); }
.ui0f-feature p { margin: 0; font-size: 1.15rem; color: var(--ui0f-muted); }

.ui0f-cta {
  display: block; text-align: center;
  background: linear-gradient(90deg, var(--ui0f-gold), #ff8a3d);
  color: #2D2D2D; font-weight: 800; font-size: 1.5rem;
  padding: 12px; border-radius: 999px; margin: 14px 0;
  box-shadow: var(--ui0f-shadow);
}
.ui0f-text-link { color: var(--ui0f-gold); font-weight: 700; }
.ui0f-text-link:hover { text-decoration: underline; }

/* ---------- Testimonials ---------- */
.ui0f-testimonial {
  background: #2f4660; padding: 12px; border-radius: var(--ui0f-radius);
  border-left: 4px solid var(--ui0f-gold); margin-bottom: 10px;
}
.ui0f-testimonial p { margin: 0 0 6px; font-size: 1.25rem; }
.ui0f-testimonial span { color: var(--ui0f-gold); font-size: 1.15rem; }

/* ---------- Winners ---------- */
.ui0f-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px; border-bottom: 1px dashed rgba(175,238,238,0.15);
  font-size: 1.2rem;
}
.ui0f-winner-row:last-child { border-bottom: none; }
.ui0f-winner-name { color: var(--ui0f-light); }
.ui0f-winner-amount { color: var(--ui0f-gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.ui0f-faq-item {
  background: #2f4660; border-radius: var(--ui0f-radius);
  margin-bottom: 8px; overflow: hidden;
}
.ui0f-faq-q {
  width: 100%; text-align: left; background: transparent; border: none;
  color: var(--ui0f-light); padding: 12px; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.ui0f-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  padding: 0 12px; color: var(--ui0f-muted); font-size: 1.2rem;
}
.ui0f-faq-item.ui0f-faq-open .ui0f-faq-a { max-height: 320px; padding: 0 12px 12px; }

/* ---------- Payment ---------- */
.ui0f-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ui0f-pay-chip {
  background: #2f4660; padding: 8px 12px; border-radius: 8px;
  font-size: 1.15rem; color: var(--ui0f-light);
  border: 1px solid rgba(175,238,238,0.18);
}

/* ---------- SEO content ---------- */
.ui0f-seo { color: var(--ui0f-muted); font-size: 1.25rem; }
.ui0f-seo h2, .ui0f-seo h3 { color: var(--ui0f-light); }
.ui0f-seo p { margin: 0 0 10px; }
.ui0f-seo strong { color: var(--ui0f-gold); }
.ui0f-seo ul { padding-left: 18px; }
.ui0f-seo li { margin-bottom: 4px; }

/* ---------- Footer ---------- */
.ui0f-footer {
  background: #1f2c3c; padding: 18px 14px 24px;
  border-top: 2px solid var(--ui0f-accent); color: var(--ui0f-muted);
}
.ui0f-footer h4 { color: var(--ui0f-light); margin: 8px 0; font-size: 1.3rem; }
.ui0f-footer p { font-size: 1.2rem; margin: 0 0 10px; }
.ui0f-footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ui0f-footer-links a {
  background: #2c4054; padding: 6px 10px; border-radius: 8px;
  font-size: 1.15rem; color: var(--ui0f-light);
}
.ui0f-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.ui0f-footer-promo button {
  flex: 1 1 45%; background: var(--ui0f-primary); color: #fff;
  border: none; border-radius: 8px; padding: 10px; font-size: 1.2rem;
  font-weight: 700; cursor: pointer;
}
.ui0f-copy { text-align: center; font-size: 1.1rem; color: var(--ui0f-muted); margin-top: 12px; }

/* ---------- Bottom navigation ---------- */
.ui0f-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--ui0f-bottom-h);
  background: linear-gradient(90deg, var(--ui0f-surface), var(--ui0f-primary));
  border-top: 2px solid var(--ui0f-gold);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.ui0f-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--ui0f-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; font-size: 1rem; padding: 4px;
  transition: transform .15s ease, color .15s ease;
}
.ui0f-nav-btn:active { transform: scale(0.92); }
.ui0f-nav-btn .material-icons,
.ui0f-nav-btn ion-icon,
.ui0f-nav-btn i { font-size: 24px; }
.ui0f-nav-btn span { font-size: 1rem; color: var(--ui0f-light); }
.ui0f-nav-btn:hover { color: var(--ui0f-gold); }
.ui0f-nav-current { color: var(--ui0f-gold) !important; }
.ui0f-nav-current span { color: var(--ui0f-gold); }
.ui0f-nav-badge {
  position: relative;
}
.ui0f-nav-badge::after {
  content: ""; position: absolute; top: 8px; right: 18px;
  width: 8px; height: 8px; background: var(--ui0f-danger);
  border-radius: 50%; border: 1px solid #fff;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .ui0f-bottom-nav { display: none; }
  .ui0f-main { padding-bottom: 30px; }
}
@media (min-width: 600px) and (max-width: 768px) {
  body { font-size: 1.6rem; }
}
