/* ============================================================
   77i77.click - Shared stylesheet (Bengali / bn-BD)
   All custom classes use the "pg24-" prefix.
   Mobile-first. Root font-size = 62.5% (1rem = 10px).
   Hard viewport cap: max-width: 430px.
   ============================================================ */

:root {
  --pg24-primary: #00B8D4;   /* brand cyan */
  --pg24-accent: #00FFFF;    /* light cyan text accent */
  --pg24-bg: #0F0F23;        /* deep midnight background */
  --pg24-hot: #FF4500;       /* orange-red CTA */
  --pg24-pink: #FF69B4;      /* promotional pink */
  --pg24-bg-2: #14142b;
  --pg24-card: #1b1b3a;
  --pg24-text: #f4f6fb;
  --pg24-muted: #a7adcf;
  --pg24-line: rgba(0, 184, 212, 0.22);
  --pg24-radius: 14px;
  --pg24-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  --pg24-header-h: 58px;
  --pg24-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1c1c44 0%, var(--pg24-bg) 60%);
  color: var(--pg24-text);
  line-height: 1.55;
  font-size: 1.6rem;
  overflow-x: hidden;
}

html, body { max-width: 430px; margin-left: auto; margin-right: auto; position: relative; }

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: #fff; }
h1 { font-size: 2.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.pg24-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.pg24-wrapper { padding: 14px 0 30px; }
.pg24-section { margin: 26px 0; }
.pg24-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.9rem; font-weight: 700; color: #fff;
  border-left: 4px solid var(--pg24-primary);
  padding-left: 10px; margin-bottom: 12px;
}
.pg24-section-title .pg24-title-badge {
  font-size: 1.1rem; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--pg24-hot), var(--pg24-pink));
  color: #fff;
}

/* ---------- Header ---------- */
.pg24-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(90deg, #0c0c20 0%, #16163a 100%);
  border-bottom: 1px solid var(--pg24-line);
  box-shadow: var(--pg24-shadow);
}
.pg24-header-row {
  display: flex; align-items: center; gap: 8px;
  height: var(--pg24-header-h); padding: 0 10px;
}
.pg24-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1.8rem; }
.pg24-logo img { width: 30px; height: 30px; border-radius: 8px; }
.pg24-logo .pg24-logo-pip { color: var(--pg24-pink); }
.pg24-spacer { flex: 1; }
.pg24-icon-btn {
  background: rgba(0, 184, 212, 0.12); border: 1px solid var(--pg24-line);
  color: var(--pg24-accent); border-radius: 10px;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
}
.pg24-icon-btn:hover { background: rgba(255, 105, 180, 0.18); color: var(--pg24-pink); }

.pg24-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px; border: 0; border-radius: 10px;
  font-weight: 700; font-size: 1.45rem; cursor: pointer; color: #fff;
  transition: transform .15s ease, filter .15s ease;
}
.pg24-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pg24-btn-register { background: linear-gradient(90deg, var(--pg24-hot), var(--pg24-pink)); }
.pg24-btn-login { background: linear-gradient(90deg, var(--pg24-primary), #0e7d92); }

/* ---------- Mobile slide-down menu ---------- */
.pg24-mobile-menu {
  position: absolute; top: var(--pg24-header-h); left: 0; right: 0;
  background: #10102a; border-bottom: 1px solid var(--pg24-line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 10px 12px;
  transform: translateY(-130%); transition: transform .28s ease;
  z-index: 9999;
}
.pg24-mobile-menu.pg24-menu-open { transform: translateY(0); }
.pg24-mobile-menu a {
  color: var(--pg24-text); padding: 9px 10px; border-radius: 8px;
  background: rgba(0, 184, 212, 0.08); border: 1px solid var(--pg24-line);
  font-size: 1.35rem; display: flex; align-items: center; gap: 8px;
}
.pg24-mobile-menu a:hover { background: rgba(255, 105, 180, 0.18); color: #fff; }

/* Desktop nav (hidden on mobile, shown >= 769px in practice not used at 430 cap) */
.pg24-desktop-nav { display: none; }

/* ---------- Hero / Carousel ---------- */
.pg24-hero { margin: 14px 0 4px; }
.pg24-carousel { position: relative; border-radius: var(--pg24-radius); overflow: hidden; box-shadow: var(--pg24-shadow); }
.pg24-slide {
  position: relative; display: none; cursor: pointer;
}
.pg24-slide.pg24-slide-active { display: block; }
.pg24-slide img { width: 100%; height: 190px; object-fit: cover; }
.pg24-slide-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: linear-gradient(0deg, rgba(15,15,35,.92), rgba(15,15,35,0));
  padding: 18px 10px 8px; color: #fff;
}
.pg24-slide-cap strong { color: var(--pg24-pink); font-size: 1.7rem; display: block; }
.pg24-slide-cap span { font-size: 1.25rem; color: var(--pg24-accent); }
.pg24-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
.pg24-dot {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3);
  border: 0; cursor: pointer;
}
.pg24-dot.pg24-dot-active { background: var(--pg24-pink); width: 22px; border-radius: 6px; }

/* ---------- Promo strip ---------- */
.pg24-promo-strip {
  background: linear-gradient(90deg, rgba(255,69,0,.16), rgba(255,105,180,.16));
  border: 1px solid var(--pg24-line); border-radius: var(--pg24-radius);
  padding: 12px; margin: 14px 0; display: flex; align-items: center; gap: 10px;
}
.pg24-promo-strip .pg24-strip-icon { font-size: 24px; color: var(--pg24-pink); }
.pg24-promo-strip p { margin: 0; flex: 1; font-size: 1.35rem; color: #fff; }
.pg24-promo-strip strong { color: var(--pg24-accent); }

/* ---------- Game grid + cards ---------- */
.pg24-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pg24-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pg24-card {
  background: var(--pg24-card); border: 1px solid var(--pg24-line);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pg24-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,184,212,.25); }
.pg24-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0b0b22; }
.pg24-card-name {
  font-size: 1.15rem; padding: 5px 6px 7px; text-align: center; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pg24-card-tag {
  position: absolute; top: 6px; left: 6px;
  font-size: 1rem; padding: 1px 6px; border-radius: 6px;
  background: rgba(0,0,0,.55); color: var(--pg24-pink);
}
.pg24-card-wrap { position: relative; }

/* ---------- Category chips ---------- */
.pg24-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.pg24-chips::-webkit-scrollbar { display: none; }
.pg24-chip {
  white-space: nowrap; padding: 7px 12px; border-radius: 999px;
  background: rgba(0,184,212,.1); border: 1px solid var(--pg24-line); color: #fff;
  font-size: 1.25rem;
}

/* ---------- Feature / info cards ---------- */
.pg24-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg24-feature {
  background: var(--pg24-card); border: 1px solid var(--pg24-line);
  border-radius: 12px; padding: 12px;
}
.pg24-feature .pg24-feature-ico { font-size: 26px; color: var(--pg24-pink); }
.pg24-feature h3 { font-size: 1.4rem; margin: 6px 0 4px; }
.pg24-feature p { font-size: 1.25rem; margin: 0; color: var(--pg24-muted); }

/* ---------- RTP table ---------- */
.pg24-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.pg24-rtp-table th, .pg24-rtp-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--pg24-line); }
.pg24-rtp-table th { color: var(--pg24-accent); }
.pg24-rtp-table tr:hover td { background: rgba(0,184,212,.06); }
.pg24-rtp-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.pg24-rtp-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--pg24-primary), var(--pg24-pink)); }

/* ---------- Testimonials ---------- */
.pg24-testi { background: var(--pg24-card); border: 1px solid var(--pg24-line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.pg24-testi-stars { color: #ffd166; margin-bottom: 4px; }
.pg24-testi-meta { color: var(--pg24-muted); font-size: 1.15rem; }

/* ---------- Winners ---------- */
.pg24-winner-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--pg24-line); }
.pg24-winner-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--pg24-primary), var(--pg24-pink)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pg24-winner-amt { margin-left: auto; color: var(--pg24-accent); font-weight: 700; }

/* ---------- Payment ---------- */
.pg24-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg24-pay {
  background: #fff; color: #111; border-radius: 10px; padding: 8px;
  text-align: center; font-weight: 700; font-size: 1.2rem; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- CTA banner ---------- */
.pg24-cta {
  background: linear-gradient(135deg, var(--pg24-hot), var(--pg24-pink));
  border-radius: var(--pg24-radius); padding: 16px; text-align: center; color: #fff;
  box-shadow: var(--pg24-shadow);
}
.pg24-cta h3 { color: #fff; margin-bottom: 6px; font-size: 1.8rem; }
.pg24-cta p { margin-bottom: 10px; font-size: 1.3rem; }
.pg24-cta .pg24-btn { background: #0F0F23; color: #fff; }

/* ---------- SEO content paragraphs ---------- */
.pg24-prose p { color: #d7dcf2; font-size: 1.4rem; }
.pg24-prose a { font-weight: 700; color: var(--pg24-pink); border-bottom: 1px dashed var(--pg24-pink); }
.pg24-prose h3 { color: var(--pg24-accent); margin-top: 18px; }
.pg24-faq details { background: var(--pg24-card); border: 1px solid var(--pg24-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.pg24-faq summary { cursor: pointer; font-weight: 700; color: #fff; }
.pg24-faq details[open] summary { color: var(--pg24-pink); }

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

/* ---------- Toast ---------- */
.pg24-toast {
  position: fixed; left: 50%; bottom: calc(var(--pg24-bottomnav-h) + 14px);
  transform: translate(-50%, 20px); opacity: 0;
  background: rgba(15,15,35,.95); color: #fff; padding: 10px 14px;
  border-radius: 10px; border: 1px solid var(--pg24-line); z-index: 1500;
  transition: opacity .25s ease, transform .25s ease; pointer-events: none; font-size: 1.3rem;
}
.pg24-toast.pg24-toast-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.pg24-footer {
  background: #0b0b1f; border-top: 1px solid var(--pg24-line);
  padding: 20px 14px calc(var(--pg24-bottomnav-h) + 18px);
  margin-top: 20px; color: var(--pg24-muted);
}
.pg24-footer h4 { color: #fff; margin: 12px 0 6px; font-size: 1.5rem; }
.pg24-footer p { font-size: 1.25rem; }
.pg24-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.pg24-footer-links a { color: var(--pg24-accent); font-size: 1.2rem; padding: 4px 0; }
.pg24-footer-promo { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pg24-footer-promo button, .pg24-footer-promo a {
  flex: 1 1 45%; min-height: 38px; border-radius: 8px; border: 0; cursor: pointer;
  font-weight: 700; color: #fff; font-size: 1.2rem; padding: 8px;
  background: linear-gradient(90deg, var(--pg24-primary), #0e7d92);
}
.pg24-footer-promo .pg24-footer-hot { background: linear-gradient(90deg, var(--pg24-hot), var(--pg24-pink)); }
.pg24-copyright { font-size: 1.15rem; color: #6b7299; text-align: center; margin-top: 10px; }

/* ---------- Bottom navigation ---------- */
.pg24-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  height: var(--pg24-bottomnav-h);
  background: linear-gradient(90deg, #0c0c20, #16163a);
  border-top: 1px solid var(--pg24-line);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -6px 18px rgba(0,0,0,.45);
}
.pg24-bottomnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--pg24-muted); font-size: 1.05rem; gap: 2px;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.pg24-bottomnav-item .pg24-bottomnav-ico { font-size: 22px; }
.pg24-bottomnav-item:hover { color: var(--pg24-pink); transform: translateY(-2px); }
.pg24-bottomnav-item.pg24-bottomnav-active { color: var(--pg24-accent); }
.pg24-bottomnav-item.pg24-bottomnav-active .pg24-bottomnav-ico { color: var(--pg24-pink); }
.pg24-bottomnav-item .pg24-bottomnav-badge {
  position: absolute; top: 6px; right: 50%; margin-right: -22px;
  background: var(--pg24-hot); color: #fff; border-radius: 999px;
  font-size: .9rem; padding: 0 5px; line-height: 14px;
}
.pg24-bottomnav-item { position: relative; }

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

/* ---------- Desktop: hide bottom nav, show desktop nav ---------- */
@media (min-width: 769px) {
  .pg24-bottomnav { display: none; }
  body { padding-bottom: 0; }
  main { padding-bottom: 30px !important; }
}
