/* ace65.homes basefiles stylesheet - class prefix: w515f- */
:root {
  --w515f-bg: #1B263B;
  --w515f-surface: #23314d;
  --w515f-surface-2: #2b3c5e;
  --w515f-text: #E0F2F1;
  --w515f-muted: #AFEEEE;
  --w515f-accent: #00CED1;
  --w515f-accent-2: #ADFF2F;
  --w515f-gold: #FFD369;
  --w515f-border: rgba(175, 238, 238, 0.18);
  --w515f-radius: 14px;
  --w515f-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(160deg, #16203a 0%, #1B263B 60%, #23314d 100%);
  color: var(--w515f-text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
}

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

/* ---------- Layout ---------- */
.w515f-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.w515f-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ---------- Header ---------- */
.w515f-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27, 38, 59, 0.96);
  border-bottom: 1px solid var(--w515f-border);
  backdrop-filter: blur(8px);
}
.w515f-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.w515f-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--w515f-text);
  flex: 1;
  min-width: 0;
}
.w515f-logo .w515f-logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--w515f-accent), var(--w515f-accent-2));
  color: var(--w515f-bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  flex: 0 0 auto;
}
.w515f-logo span { color: var(--w515f-accent); }
.w515f-header-btns { display: flex; gap: 6px; align-items: center; }
.w515f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 36px;
}
.w515f-btn:active { transform: scale(0.96); }
.w515f-btn-login {
  background: transparent;
  color: var(--w515f-text);
  border: 1px solid var(--w515f-border);
}
.w515f-btn-login:hover { border-color: var(--w515f-accent); color: var(--w515f-accent); }
.w515f-btn-register {
  background: linear-gradient(135deg, var(--w515f-accent), var(--w515f-accent-2));
  color: var(--w515f-bg);
  box-shadow: 0 4px 12px rgba(0, 206, 209, 0.35);
}
.w515f-menu-btn {
  background: transparent;
  border: 1px solid var(--w515f-border);
  color: var(--w515f-text);
  border-radius: 8px;
  width: 36px; height: 36px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Expandable Mobile Menu ---------- */
.w515f-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--w515f-surface);
  border-bottom: 1px solid var(--w515f-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.w515f-mobile-menu.w515f-menu-open { max-height: 80vh; overflow-y: auto; }
.w515f-mobile-menu .w515f-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px 18px;
}
.w515f-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(175, 238, 238, 0.06);
  color: var(--w515f-text);
  font-size: 13px;
  border: 1px solid var(--w515f-border);
}
.w515f-mobile-menu a:hover { background: rgba(0, 206, 209, 0.15); color: var(--w515f-accent); }

/* ---------- Spacer under fixed header ---------- */
.w515f-header-spacer { height: 56px; }

/* ---------- Main ---------- */
main.w515f-main { padding-bottom: 90px; padding-top: 6px; }
.w515f-section { margin: 18px 0; }
.w515f-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--w515f-text);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w515f-section-title .material-icons-outlined,
.w515f-section-title i { color: var(--w515f-accent-2); font-size: 22px; }

/* ---------- Carousel ---------- */
.w515f-carousel {
  position: relative;
  border-radius: var(--w515f-radius);
  overflow: hidden;
  box-shadow: var(--w515f-shadow);
  margin-top: 10px;
}
.w515f-carousel-slide {
  display: none;
  position: relative;
}
.w515f-carousel-slide:first-child { display: block; }
.w515f-carousel-slide img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.w515f-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-weight: 700;
  font-size: 13px;
}
.w515f-carousel-caption a {
  color: var(--w515f-accent-2);
  font-weight: 800;
}
.w515f-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.w515f-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(224, 242, 241, 0.5);
  cursor: pointer;
}
.w515f-carousel-dot.w515f-dot-active { background: var(--w515f-accent-2); }

/* ---------- Hero CTA ---------- */
.w515f-hero {
  text-align: center;
  padding: 16px 6px 6px;
}
.w515f-hero h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--w515f-text);
}
.w515f-hero h1 em { color: var(--w515f-accent-2); font-style: normal; }
.w515f-hero p {
  font-size: 13px;
  color: var(--w515f-muted);
  margin: 0 auto 14px;
  max-width: 360px;
}
.w515f-cta-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.w515f-cta-row .w515f-btn { padding: 10px 22px; font-size: 14px; }

/* ---------- Game grid ---------- */
.w515f-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 10px;
}
.w515f-cat-head h2 {
  font-size: 16px;
  margin: 0;
  color: var(--w515f-text);
  display: flex; align-items: center; gap: 7px;
}
.w515f-cat-head h2 i { color: var(--w515f-accent); }
.w515f-cat-head .w515f-more { font-size: 12px; color: var(--w515f-accent-2); }

.w515f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.w515f-card {
  background: var(--w515f-surface);
  border: 1px solid var(--w515f-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  display: flex;
  flex-direction: column;
}
.w515f-card:hover { transform: translateY(-3px); border-color: var(--w515f-accent); box-shadow: var(--w515f-shadow); }
.w515f-card-img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  background: #0f1626;
}
.w515f-card-name {
  font-size: 11px;
  padding: 6px 7px;
  text-align: center;
  color: var(--w515f-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Info / feature / promo blocks ---------- */
.w515f-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w515f-info-card {
  background: var(--w515f-surface);
  border: 1px solid var(--w515f-border);
  border-radius: 12px;
  padding: 12px;
}
.w515f-info-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--w515f-accent-2);
  display: flex; align-items: center; gap: 6px;
}
.w515f-info-card p { margin: 0; font-size: 12px; color: var(--w515f-muted); }

.w515f-text-block {
  background: var(--w515f-surface);
  border: 1px solid var(--w515f-border);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: var(--w515f-text);
}
.w515f-text-block h3 { color: var(--w515f-accent-2); margin: 14px 0 6px; font-size: 15px; }
.w515f-text-block h3:first-child { margin-top: 0; }
.w515f-text-block p { color: var(--w515f-muted); margin: 0 0 10px; }
.w515f-text-block a { color: var(--w515f-accent); }

.w515f-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--w515f-surface);
  border: 1px solid var(--w515f-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.w515f-feature .w515f-feature-ico {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0, 206, 209, 0.15);
  color: var(--w515f-accent);
  display: flex; align-items: center; justify-content: center;
}
.w515f-feature h4 { margin: 0 0 4px; font-size: 14px; color: var(--w515f-text); }
.w515f-feature p { margin: 0; font-size: 12px; color: var(--w515f-muted); }

.w515f-testimonial {
  background: var(--w515f-surface);
  border-left: 3px solid var(--w515f-accent-2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--w515f-text);
}
.w515f-testimonial strong { color: var(--w515f-accent); display: block; margin-bottom: 3px; }

.w515f-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.w515f-payment-row span {
  background: var(--w515f-surface);
  border: 1px solid var(--w515f-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--w515f-muted);
}

/* ---------- Footer ---------- */
.w515f-footer {
  background: #142037;
  border-top: 1px solid var(--w515f-border);
  padding: 22px 0 10px;
  margin-top: 24px;
}
.w515f-footer .w515f-footer-brand { font-size: 13px; color: var(--w515f-muted); margin-bottom: 14px; }
.w515f-footer h4 { color: var(--w515f-accent-2); font-size: 14px; margin: 14px 0 8px; }
.w515f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.w515f-footer-links a {
  font-size: 12px;
  color: var(--w515f-muted);
  padding: 5px 10px;
  border: 1px solid var(--w515f-border);
  border-radius: 999px;
  background: rgba(175,238,238,0.05);
}
.w515f-footer-links a:hover { color: var(--w515f-accent-2); border-color: var(--w515f-accent); }
.w515f-footer-copyright {
  font-size: 11px;
  color: rgba(175, 238, 238, 0.6);
  text-align: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--w515f-border);
}

/* ---------- Mobile Bottom Nav ---------- */
.w515f-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(20, 32, 55, 0.98);
  border-top: 1px solid var(--w515f-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.4);
}
.w515f-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w515f-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.w515f-bottomnav-btn i,
.w515f-bottomnav-btn .material-icons-outlined {
  font-size: 22px;
}
.w515f-bottomnav-btn:active { transform: scale(0.92); }
.w515f-bottomnav-btn.w515f-bottomnav-active,
.w515f-bottomnav-btn:hover { color: var(--w515f-accent-2); }
.w515f-bottomnav-btn.w515f-bottomnav-promo {
  color: var(--w515f-accent-2);
}
.w515f-bottomnav-btn.w515f-bottomnav-promo i { color: var(--w515f-gold); }

/* ---------- Desktop: hide bottom nav, widen container ---------- */
@media (min-width: 769px) {
  .w515f-bottomnav { display: none; }
  main.w515f-main { padding-bottom: 30px; }
  .w515f-container,
  .w515f-wrapper,
  .w515f-header-inner { max-width: 430px; }
}

/* ---------- Mobile bottom padding clearance ---------- */
@media (max-width: 768px) {
  main.w515f-main { padding-bottom: 80px; }
}
