/* dbbet core stylesheet - prefix s301- */
:root {
  --s301-primary: #FF4500;
  --s301-secondary: #FF7F50;
  --s301-accent: #A0522D;
  --s301-bg: #1E1E1E;
  --s301-bg2: #262626;
  --s301-bg3: #303030;
  --s301-green: #00FF00;
  --s301-text: #F5F5F5;
  --s301-muted: #B0B0B0;
  --s301-radius: 1.2rem;
  --s301-shadow: 0 0.4rem 1.2rem rgba(0,0,0,.45);
}

* { 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",system-ui,Arial,sans-serif;
  background: var(--s301-bg);
  color: var(--s301-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

.s301-container { width: 100%; padding: 0 1.2rem; }
.s301-wrapper { max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.s301-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg,#1E1E1E,#2b1a14);
  border-bottom: 0.2rem solid var(--s301-primary);
  max-width: 430px; margin: 0 auto;
}
.s301-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem; gap: 0.6rem;
}
.s301-logo { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.s301-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.5rem; }
.s301-logo-text {
  font-size: 1.6rem; font-weight: 800; color: var(--s301-primary);
  letter-spacing: .03em;
}
.s301-logo-text span { color: var(--s301-secondary); }
.s301-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s301-btn {
  font-family: inherit; cursor: pointer; border: none;
  padding: 0.6rem 1rem; border-radius: 2rem; font-size: 1.2rem;
  font-weight: 700; min-height: 3.2rem; transition: transform .15s, box-shadow .15s;
}
.s301-btn:active { transform: scale(.96); }
.s301-btn-login {
  background: transparent; color: var(--s301-text);
  border: 0.15rem solid var(--s301-secondary);
}
.s301-btn-register {
  background: linear-gradient(90deg,var(--s301-primary),var(--s301-secondary));
  color: #fff; box-shadow: 0 0.3rem 0.8rem rgba(255,69,0,.35);
}
.s301-menu-toggle {
  background: transparent; border: none; color: var(--s301-text);
  font-size: 2rem; cursor: pointer; padding: 0 0.4rem; min-width: 4.4rem; min-height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Nav menu (expandable) ===== */
.s301-nav {
  max-height: 0; overflow: hidden;
  background: var(--s301-bg2); transition: max-height .3s ease;
}
.s301-nav-open { max-height: 60rem; }
.s301-nav-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; padding: 0.8rem;
}
.s301-nav-list a {
  display: block; padding: 0.8rem 0.9rem; color: var(--s301-text);
  font-size: 1.2rem; border-radius: 0.6rem; background: var(--s301-bg3);
  border-left: 0.25rem solid var(--s301-primary);
}
.s301-nav-list a:active { background: var(--s301-primary); color: #fff; }

/* ===== Main ===== */
.s301-main { padding-top: 6rem; padding-bottom: 8rem; }

/* ===== Hero / Carousel ===== */
.s301-hero { margin: 1rem 0 1.5rem; }
.s301-carousel {
  position: relative; border-radius: var(--s301-radius); overflow: hidden;
  box-shadow: var(--s301-shadow); background: #111;
}
.s301-slide {
  display: none; position: relative; cursor: pointer;
}
.s301-slide-active { display: block; }
.s301-slide img { width: 100%; height: 17rem; object-fit: cover; }
.s301-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem; background: linear-gradient(transparent,rgba(0,0,0,.85));
  color: #fff; font-size: 1.3rem; font-weight: 700;
}
.s301-slide-cap span { color: var(--s301-green); }
.s301-dots {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.4rem;
}
.s301-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255,255,255,.4);
}
.s301-dot-active { background: var(--s301-primary); }

/* ===== Sections ===== */
.s301-section { margin: 1.8rem 0; }
.s301-section-title {
  font-size: 1.6rem; font-weight: 800; color: var(--s301-primary);
  margin: 0 0 1rem; padding-left: 0.8rem; border-left: 0.3rem solid var(--s301-secondary);
}
.s301-section-title small { color: var(--s301-muted); font-size: 1.1rem; font-weight: 500; }
.s301-intro { font-size: 1.3rem; color: var(--s301-muted); line-height: 1.7rem; margin-bottom: 1rem; }

/* H1 */
.s301-h1 {
  font-size: 1.9rem; font-weight: 800; line-height: 2.2rem;
  color: #fff; margin: 1rem 0;
  text-shadow: 0 0.2rem 0.4rem rgba(255,69,0,.4);
}
.s301-h1 span { color: var(--s301-primary); }

/* ===== Game grid ===== */
.s301-cat-title {
  font-size: 1.4rem; font-weight: 700; color: var(--s301-secondary);
  margin: 1.2rem 0 0.7rem; display: flex; align-items: center; gap: 0.5rem;
}
.s301-cat-title i { color: var(--s301-green); font-size: 1.6rem; }
.s301-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0.7rem;
}
.s301-card {
  background: var(--s301-bg2); border-radius: 0.8rem; overflow: hidden;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  border: 0.1rem solid #3a3a3a;
}
.s301-card:active { transform: scale(.95); box-shadow: 0 0 0.8rem var(--s301-primary); }
.s301-card-img { width: 100%; height: 7.2rem; object-fit: cover; }
.s301-card-name {
  font-size: 1rem; color: var(--s301-text); padding: 0.4rem 0.3rem;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600;
}
.s301-card-tag {
  font-size: 0.85rem; color: var(--s301-green); padding: 0 0 0.4rem; text-align: center;
}

/* ===== Promo CTA ===== */
.s301-cta {
  display: block; text-align: center; padding: 1.1rem; margin: 1.4rem 0;
  background: linear-gradient(90deg,var(--s301-primary),var(--s301-accent));
  color: #fff; font-weight: 800; font-size: 1.4rem; border-radius: var(--s301-radius);
  box-shadow: var(--s301-shadow); cursor: pointer;
}
.s301-cta:active { transform: scale(.98); }
.s301-cta-text { color: var(--s301-green); font-weight: 700; }
.s301-cta-text:hover { text-decoration: underline; }

/* ===== Feature/info blocks ===== */
.s301-block {
  background: var(--s301-bg2); border-radius: var(--s301-radius);
  padding: 1.1rem; margin: 1rem 0; box-shadow: var(--s301-shadow);
}
.s301-block h2 { font-size: 1.5rem; color: var(--s301-secondary); margin-bottom: 0.6rem; }
.s301-block h3 { font-size: 1.3rem; color: var(--s301-primary); margin: 0.8rem 0 0.4rem; }
.s301-block p { font-size: 1.2rem; color: var(--s301-muted); margin-bottom: 0.6rem; line-height: 1.7rem; }
.s301-block ul { list-style: none; padding-left: 0; }
.s301-block li { font-size: 1.2rem; color: var(--s301-text); padding: 0.3rem 0 0.3rem 1.4rem; position: relative; }
.s301-block li::before { content: "▸"; color: var(--s301-green); position: absolute; left: 0; }

.s301-faq-item { border-bottom: 0.1rem solid #333; padding: 0.6rem 0; }
.s301-faq-q { font-weight: 700; color: var(--s301-secondary); font-size: 1.2rem; }
.s301-faq-a { color: var(--s301-muted); font-size: 1.15rem; margin-top: 0.3rem; }

.s301-rtp-row { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 0.1rem solid #333; font-size: 1.15rem; }
.s301-rtp-row span:first-child { color: var(--s301-text); }
.s301-rtp-row span:last-child { color: var(--s301-green); font-weight: 700; }

.s301-testi { background: var(--s301-bg3); border-radius: 0.8rem; padding: 0.8rem; margin: 0.5rem 0; }
.s301-testi-name { color: var(--s301-primary); font-weight: 700; font-size: 1.1rem; }
.s301-testi-text { color: var(--s301-muted); font-size: 1.1rem; margin-top: 0.2rem; }

.s301-pay { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s301-pay span { background: var(--s301-bg3); padding: 0.4rem 0.8rem; border-radius: 0.5rem; font-size: 1.05rem; color: var(--s301-text); border: 0.1rem solid var(--s301-accent); }

.s301-winner { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 0.1rem dashed #444; font-size: 1.1rem; }
.s301-winner span:last-child { color: var(--s301-green); font-weight: 700; }

/* ===== Footer ===== */
.s301-footer {
  background: #161616; border-top: 0.2rem solid var(--s301-primary);
  padding: 1.5rem 1rem 5.5rem; margin-top: 2rem;
}
.s301-footer-brand { font-size: 1.15rem; color: var(--s301-muted); line-height: 1.7rem; margin-bottom: 1rem; }
.s301-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 1rem; }
.s301-footer-links a { color: var(--s301-text); font-size: 1.05rem; padding: 0.3rem 0; }
.s301-footer-links a:hover { color: var(--s301-secondary); }
.s301-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.s301-footer-promo button {
  flex: 1 1 40%; background: var(--s301-primary); color: #fff; border: none;
  padding: 0.7rem; border-radius: 0.6rem; font-weight: 700; font-size: 1.1rem; cursor: pointer;
}
.s301-footer-copy { color: #777; font-size: 1rem; text-align: center; margin-top: 0.8rem; }

/* ===== Bottom nav ===== */
.s301-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: 6rem; background: #1a1a1a; border-top: 0.15rem solid var(--s301-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,.5);
}
.s301-bottomnav-btn {
  flex: 1; background: transparent; border: none; color: var(--s301-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; min-width: 6rem; min-height: 6rem;
  font-size: 1rem; font-family: inherit; transition: color .15s, transform .15s;
}
.s301-bottomnav-btn i, .s301-bottomnav-btn .material-icons-outlined,
.s301-bottomnav-btn .ionicon { font-size: 2.2rem; }
.s301-bottomnav-btn:active { transform: scale(.9); color: var(--s301-primary); }
.s301-bottomnav-active { color: var(--s301-green); }
.s301-bottomnav-active i, .s301-bottomnav-active .material-icons-outlined,
.s301-bottomnav-active .ionicon { color: var(--s301-primary); }
.s301-badge {
  position: absolute; top: 0.6rem; right: 1.6rem; background: var(--s301-primary);
  color: #fff; font-size: 0.8rem; border-radius: 1rem; padding: 0 0.4rem; min-width: 1.4rem; text-align: center;
}
.s301-bottomnav-btn { position: relative; }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .s301-bottomnav { display: none; }
  body { max-width: 768px; }
  .s301-header, .s301-bottomnav { max-width: 768px; }
  .s301-grid { grid-template-columns: repeat(5,1fr); }
  .s301-footer { padding-bottom: 2rem; }
  .s301-main { padding-bottom: 2rem; }
}

@media (max-width: 768px) {
  .s301-main { padding-bottom: 8rem; }
}

/* Utility */
.s301-center { text-align: center; }
.s301-mt1 { margin-top: 1rem; }
.s301-mb1 { margin-bottom: 1rem; }
.s301-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
