/* ============================================================
   rk11.click - layout-a99f.css
   Mobile-first (max-width: 430px) gaming portal styles
   All custom classes use prefix `wa99f-`
   Color palette: #FFCCCB | #1C2833 | #FF9800 | #E9ECEF | #FFE4B5 | #FF4500
   ============================================================ */

:root {
  --wa99f-bg: #1C2833;
  --wa99f-bg-alt: #232f3e;
  --wa99f-card: #2b3a4d;
  --wa99f-primary: #FF9800;
  --wa99f-accent: #FF4500;
  --wa99f-text: #FFE4B5;
  --wa99f-text-soft: #FFCCCB;
  --wa99f-muted: #E9ECEF;
  --wa99f-border: rgba(255, 152, 0, 0.25);
  --wa99f-radius: 12px;
  --wa99f-header-h: 56px;
  --wa99f-bottom-h: 62px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #1C2833 0%, #202b3a 100%);
  color: var(--wa99f-muted);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--wa99f-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.wa99f-no-scroll { overflow: hidden; }

/* ---------- Layout ---------- */
.wa99f-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--wa99f-bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}
.wa99f-main { padding-bottom: 80px; }

/* ---------- Header ---------- */
.wa99f-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: var(--wa99f-header-h);
  background: linear-gradient(90deg, #1C2833 0%, #2b3a4d 100%);
  border-bottom: 1px solid var(--wa99f-border);
}
.wa99f-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wa99f-text);
  font-weight: 800;
  font-size: 1.8rem;
}
.wa99f-logo img { width: 28px; height: 28px; border-radius: 6px; }
.wa99f-logo span { color: var(--wa99f-primary); }

.wa99f-header-actions { display: flex; align-items: center; gap: 8px; }
.wa99f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa99f-btn:active { transform: scale(0.95); }
.wa99f-btn-register {
  background: linear-gradient(135deg, #FF9800 0%, #FF4500 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 69, 0, 0.35);
}
.wa99f-btn-login {
  background: transparent;
  color: var(--wa99f-text);
  border: 1px solid var(--wa99f-primary);
}
.wa99f-menu-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--wa99f-card);
  color: var(--wa99f-primary);
  font-size: 1.8rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Mobile menu drawer ---------- */
.wa99f-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--wa99f-bg-alt);
  z-index: 9999;
  padding: 70px 18px 30px;
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--wa99f-border);
}
.wa99f-mobile-menu.wa99f-menu-open { right: 0; box-shadow: -8px 0 30px rgba(0,0,0,0.5); }
.wa99f-menu-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  color: var(--wa99f-primary);
  font-size: 1.8rem;
}
.wa99f-mobile-menu h4 {
  color: var(--wa99f-text);
  font-size: 1.3rem;
  margin: 14px 4px 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.wa99f-mobile-menu ul li a {
  display: block;
  padding: 10px 12px;
  color: var(--wa99f-muted);
  border-radius: 8px;
  font-size: 1.4rem;
}
.wa99f-mobile-menu ul li a:hover,
.wa99f-mobile-menu ul li a:focus { background: var(--wa99f-card); color: var(--wa99f-primary); }
.wa99f-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.wa99f-menu-overlay.wa99f-menu-open { opacity: 1; pointer-events: auto; }

/* ---------- Hero carousel ---------- */
.wa99f-hero {
  position: relative;
  margin: 10px;
  border-radius: var(--wa99f-radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.wa99f-slides { position: relative; }
.wa99f-slide {
  display: block;
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--wa99f-carousel-transition, 480ms) ease;
}
.wa99f-slide img { width: 100%; height: 170px; object-fit: cover; }
.wa99f-slide.wa99f-slide-active { position: relative; opacity: 1; }
.wa99f-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(28,40,51,0.92), transparent);
  color: var(--wa99f-text);
  font-size: 1.3rem;
  font-weight: 600;
}
.wa99f-dots {
  display: flex; gap: 6px;
  justify-content: center;
  padding: 6px 0;
  background: rgba(0,0,0,0.2);
}
.wa99f-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,228,181,0.4);
}
.wa99f-dot.wa99f-dot-active { background: var(--wa99f-primary); width: 18px; border-radius: 4px; }

/* ---------- Sections ---------- */
.wa99f-section { padding: 14px 12px; }
.wa99f-section-title {
  display: flex; align-items: center; gap: 8px;
  color: var(--wa99f-text);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.wa99f-section-title i { color: var(--wa99f-primary); font-size: 1.8rem; }
.wa99f-section-title small { margin-left: auto; color: var(--wa99f-text-soft); font-size: 1.1rem; font-weight: 500; }

/* ---------- H1 ---------- */
.wa99f-h1 {
  color: var(--wa99f-text);
  font-size: 2rem;
  font-weight: 800;
  padding: 6px 12px 0;
  line-height: 1.4;
}
.wa99f-h1 span { color: var(--wa99f-primary); }
.wa99f-intro { padding: 8px 12px 4px; color: var(--wa99f-muted); font-size: 1.35rem; }

/* ---------- Filter chips ---------- */
.wa99f-chips {
  display: flex; gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wa99f-chips::-webkit-scrollbar { display: none; }
.wa99f-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--wa99f-card);
  color: var(--wa99f-text-soft);
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.wa99f-chip.wa99f-chip-active {
  background: linear-gradient(135deg, #FF9800, #FF4500);
  color: #fff;
  border-color: var(--wa99f-primary);
}

/* ---------- Game grid ---------- */
.wa99f-game-section h3 {
  color: var(--wa99f-primary);
  font-size: 1.5rem;
  margin: 14px 12px 8px;
  font-weight: 700;
}
.wa99f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px;
}
.wa99f-game-card {
  background: var(--wa99f-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform .15s ease, border-color .15s ease;
  cursor: pointer;
}
.wa99f-game-card:active { transform: scale(0.96); border-color: var(--wa99f-primary); }
.wa99f-game-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: #0f1620;
}
.wa99f-game-card span {
  display: block;
  padding: 4px 5px;
  font-size: 1.05rem;
  color: var(--wa99f-text-soft);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 22px;
}

/* ---------- Cards ---------- */
.wa99f-card {
  background: var(--wa99f-card);
  border-radius: var(--wa99f-radius);
  padding: 14px;
  margin: 10px 12px;
  border: 1px solid var(--wa99f-border);
}
.wa99f-card h3 {
  color: var(--wa99f-primary);
  font-size: 1.55rem;
  margin-bottom: 8px;
}
.wa99f-card p { color: var(--wa99f-muted); font-size: 1.3rem; margin-bottom: 6px; }
.wa99f-card .wa99f-cta-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}

/* ---------- Feature list ---------- */
.wa99f-feature-list { display: grid; gap: 10px; }
.wa99f-feature-item {
  display: flex; gap: 10px;
  background: var(--wa99f-bg-alt);
  padding: 10px;
  border-radius: 10px;
  align-items: flex-start;
}
.wa99f-feature-item .wa99f-icon {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: rgba(255,152,0,0.15);
  color: var(--wa99f-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.wa99f-feature-item h4 { color: var(--wa99f-text); font-size: 1.4rem; margin-bottom: 2px; }
.wa99f-feature-item p { color: var(--wa99f-muted); font-size: 1.2rem; }

/* ---------- RTP table ---------- */
.wa99f-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.wa99f-rtp-table th, .wa99f-rtp-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--wa99f-border);
  text-align: left;
}
.wa99f-rtp-table th { color: var(--wa99f-primary); font-weight: 700; }
.wa99f-rtp-table td.wa99f-rt-num { color: var(--wa99f-text); font-weight: 700; }

/* ---------- Testimonials ---------- */
.wa99f-testimonials { display: grid; gap: 10px; }
.wa99f-testimonial {
  background: var(--wa99f-bg-alt);
  border-left: 3px solid var(--wa99f-primary);
  border-radius: 8px;
  padding: 10px 12px;
}
.wa99f-testimonial p { color: var(--wa99f-muted); font-size: 1.25rem; font-style: italic; }
.wa99f-testimonial .wa99f-stars { color: #FFD700; font-size: 1.2rem; margin: 4px 0; }
.wa99f-testimonial cite { color: var(--wa99f-text-soft); font-size: 1.15rem; }

/* ---------- Winners ---------- */
.wa99f-winners {
  display: grid; gap: 6px;
}
.wa99f-winner {
  display: flex; justify-content: space-between;
  background: var(--wa99f-bg-alt);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 1.2rem;
}
.wa99f-winner b { color: var(--wa99f-primary); }

/* ---------- Payment ---------- */
.wa99f-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.wa99f-pay-item {
  background: var(--wa99f-bg-alt);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  color: var(--wa99f-text-soft);
  font-size: 1.1rem;
}
.wa99f-pay-item i { display: block; color: var(--wa99f-primary); font-size: 1.8rem; margin-bottom: 2px; }

/* ---------- App CTA ---------- */
.wa99f-app-cta {
  background: linear-gradient(135deg, rgba(255,152,0,0.18), rgba(255,69,0,0.18));
  border-radius: var(--wa99f-radius);
  padding: 14px;
  margin: 10px 12px;
  border: 1px solid var(--wa99f-border);
  display: flex; gap: 12px; align-items: center;
}
.wa99f-app-cta img { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; flex: 0 0 90px; }
.wa99f-app-cta h3 { color: var(--wa99f-text); font-size: 1.5rem; margin-bottom: 4px; }
.wa99f-app-cta p { color: var(--wa99f-muted); font-size: 1.2rem; margin-bottom: 8px; }
.wa99f-app-cta .wa99f-btn { width: 100%; }

/* ---------- FAQ ---------- */
.wa99f-faq-item {
  background: var(--wa99f-card);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--wa99f-border);
}
.wa99f-faq-q {
  width: 100%;
  text-align: left;
  padding: 12px;
  color: var(--wa99f-text);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.wa99f-faq-q .wa99f-plus { color: var(--wa99f-primary); font-size: 1.6rem; transition: transform .2s; }
.wa99f-faq-item.wa99f-faq-open .wa99f-plus { transform: rotate(45deg); }
.wa99f-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 12px;
  color: var(--wa99f-muted);
  font-size: 1.25rem;
}
.wa99f-faq-item.wa99f-faq-open .wa99f-faq-a { max-height: 400px; padding: 0 12px 12px; }

/* ---------- Promo text link ---------- */
.wa99f-promo-link {
  color: var(--wa99f-primary);
  font-weight: 700;
  text-decoration: underline;
}
.wa99f-promo-link:hover { color: var(--wa99f-accent); }

/* ---------- Footer ---------- */
.wa99f-footer {
  background: #0f1620;
  padding: 18px 12px 90px;
  margin-top: 14px;
  border-top: 2px solid var(--wa99f-primary);
}
.wa99f-footer h4 { color: var(--wa99f-primary); font-size: 1.35rem; margin-bottom: 8px; }
.wa99f-footer p { color: var(--wa99f-muted); font-size: 1.2rem; margin-bottom: 10px; }
.wa99f-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 8px 0 12px;
}
.wa99f-footer-links a {
  color: var(--wa99f-text-soft);
  font-size: 1.2rem;
}
.wa99f-footer-links a:hover { color: var(--wa99f-primary); }
.wa99f-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 12px;
}
.wa99f-footer-promos .wa99f-btn { padding: 0 12px; min-height: 32px; font-size: 1.15rem; }
.wa99f-footer-copy {
  text-align: center;
  color: rgba(255,204,203,0.6);
  font-size: 1.1rem;
  margin-top: 10px;
  border-top: 1px dashed rgba(255,204,203,0.15);
  padding-top: 10px;
}

/* ---------- Bottom nav ---------- */
.wa99f-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2b3a4d 0%, #1C2833 100%);
  border-top: 1px solid var(--wa99f-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: var(--wa99f-bottom-h);
  padding: 4px 0;
}
.wa99f-bottom-nav-btn {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  color: var(--wa99f-text-soft);
  font-size: 1.05rem;
  min-width: 60px;
  min-height: 54px;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}
.wa99f-bottom-nav-btn i { font-size: 2rem; }
.wa99f-bottom-nav-btn:active { transform: scale(0.9); }
.wa99f-bottom-nav-btn.wa99f-nav-current { color: var(--wa99f-primary); }
.wa99f-bottom-nav-btn.wa99f-nav-current::after {
  content: '';
  position: absolute; top: 0;
  width: 28px; height: 3px;
  background: var(--wa99f-primary);
  border-radius: 0 0 4px 4px;
}
.wa99f-nav-badge {
  position: absolute; top: 4px; right: calc(50% - 22px);
  background: var(--wa99f-accent);
  color: #fff;
  font-size: 0.9rem;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Back to top ---------- */
.wa99f-totop {
  position: fixed;
  right: 14px; bottom: calc(var(--wa99f-bottom-h) + 14px);
  z-index: 999;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--wa99f-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255,152,0,0.45);
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .wa99f-bottom-nav { display: none; }
  .wa99f-main { padding-bottom: 30px; }
  .wa99f-totop { bottom: 24px; }
  .wa99f-wrapper { box-shadow: 0 0 60px rgba(0,0,0,0.5); }
}

/* ---------- Mobile small fine-tuning ---------- */
@media (max-width: 360px) {
  .wa99f-game-grid { grid-template-columns: repeat(3, 1fr); }
  .wa99f-pay-grid { grid-template-columns: repeat(3, 1fr); }
  .wa99f-h1 { font-size: 1.8rem; }
}

/* ---------- Material Icons sizing helpers ---------- */
.material-icons { font-feature-settings: 'liga'; vertical-align: middle; }
