/* 9999bet core stylesheet - prefix g305- */
:root {
  --g305-primary: #FF8C00;
  --g305-accent: #FFA500;
  --g305-deep: #E65100;
  --g305-bg: #0A0A0A;
  --g305-bg2: #141414;
  --g305-bg3: #1e1e1e;
  --g305-text: #F0F0F0;
  --g305-pink: #FFB3BA;
  --g305-border: rgba(255, 140, 0, 0.25);
  --g305-radius: 1.2rem;
}

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

img { max-width: 100%; display: block; }

a { color: var(--g305-primary); text-decoration: none; }

/* ===== Header ===== */
.g305-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #0a0a0a 0%, #1a1208 100%);
  border-bottom: 1px solid var(--g305-border);
  max-width: 430px;
  margin: 0 auto;
}
.g305-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}
.g305-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.g305-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.g305-brand b { color: var(--g305-primary); font-size: 1.6rem; letter-spacing: 0.5px; white-space: nowrap; }
.g305-brand small { color: var(--g305-pink); font-size: 1rem; }
.g305-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.g305-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1rem;
  border-radius: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.g305-btn:active { transform: scale(0.96); }
.g305-btn-register {
  background: linear-gradient(90deg, var(--g305-deep), var(--g305-primary));
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,140,0,.35);
}
.g305-btn-login {
  background: transparent;
  color: var(--g305-primary);
  border: 1px solid var(--g305-primary);
}
.g305-menu-btn {
  background: transparent;
  border: none;
  color: var(--g305-text);
  font-size: 2rem;
  min-width: 3.2rem;
  min-height: 3.2rem;
  cursor: pointer;
}

/* ===== Mobile menu ===== */
.g305-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: #121212;
  border-top: 1px solid var(--g305-border);
  transition: max-height .25s ease;
}
.g305-mobile-menu.g305-menu-open { max-height: 480px; }
.g305-mobile-menu ul { list-style: none; padding: 0.4rem 1rem; }
.g305-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.06); }
.g305-mobile-menu li:last-child { border-bottom: none; }
.g305-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.4rem;
  color: var(--g305-text);
  font-size: 1.4rem;
}
.g305-mobile-menu a i { color: var(--g305-primary); width: 2rem; text-align: center; }

/* ===== Layout ===== */
.g305-wrapper { padding: 6rem 1rem 8rem; }
.g305-section { margin: 1.6rem 0; }
.g305-section h2 {
  font-size: 1.8rem;
  color: var(--g305-primary);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--g305-accent);
  padding-left: 0.8rem;
}
.g305-section h3 { font-size: 1.4rem; color: var(--g305-accent); margin: 0.8rem 0; }
.g305-section p { font-size: 1.3rem; color: var(--g305-text); margin-bottom: 0.8rem; }

/* ===== Hero carousel ===== */
.g305-carousel {
  position: relative;
  border-radius: var(--g305-radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.g305-slides { position: relative; }
.g305-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.g305-slide.g305-active { display: block; }
.g305-slide img { width: 100%; height: 180px; object-fit: cover; }
.g305-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,.8), transparent);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.g305-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  display: flex;
  gap: 0.4rem;
}
.g305-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer;
}
.g305-dot.g305-active { background: var(--g305-primary); }

/* ===== Game grid ===== */
.g305-cat-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  color: var(--g305-accent);
  margin: 1.4rem 0 0.8rem;
}
.g305-cat-title i { color: var(--g305-primary); }
.g305-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.g305-card {
  background: var(--g305-bg2);
  border: 1px solid var(--g305-border);
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.g305-card:active { transform: scale(0.95); border-color: var(--g305-primary); }
.g305-card img { width: 100%; height: 70px; object-fit: cover; }
.g305-card-name {
  font-size: 1rem;
  color: var(--g305-text);
  text-align: center;
  padding: 0.3rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.2rem;
}

/* ===== Promo / info modules ===== */
.g305-cta {
  background: linear-gradient(90deg, var(--g305-deep), var(--g305-primary));
  color: #fff;
  text-align: center;
  padding: 1.4rem 1rem;
  border-radius: var(--g305-radius);
  margin: 1.2rem 0;
  font-size: 1.4rem;
  font-weight: 700;
}
.g305-cta a { color: #fff; text-decoration: underline; font-weight: 800; }
.g305-card-box {
  background: var(--g305-bg2);
  border: 1px solid var(--g305-border);
  border-radius: var(--g305-radius);
  padding: 1rem;
  margin: 1rem 0;
}
.g305-card-box h3 { color: var(--g305-primary); margin-bottom: 0.5rem; }
.g305-features { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; }
.g305-feature {
  background: var(--g305-bg3);
  border-radius: 0.8rem;
  padding: 0.8rem;
  text-align: center;
  font-size: 1.1rem;
}
.g305-feature i { color: var(--g305-accent); font-size: 1.8rem; display: block; margin-bottom: 0.3rem; }
.g305-testimonial {
  background: var(--g305-bg2);
  border-left: 3px solid var(--g305-primary);
  border-radius: 0.6rem;
  padding: 0.8rem;
  margin: 0.6rem 0;
  font-size: 1.2rem;
}
.g305-testimonial b { color: var(--g305-pink); }
.g305-rtp-row {
  display: flex; justify-content: space-between;
  padding: 0.4rem 0; font-size: 1.2rem;
  border-bottom: 1px dashed rgba(255,255,255,.1);
}
.g305-rtp-row span:last-child { color: var(--g305-accent); font-weight: 700; }
.g305-pay {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.g305-pay span {
  background: var(--g305-bg3);
  border: 1px solid var(--g305-border);
  border-radius: 0.6rem;
  padding: 0.4rem 0.8rem;
  font-size: 1.1rem;
}
.g305-link-text { color: var(--g305-primary); font-weight: 700; text-decoration: underline; }

/* ===== Footer ===== */
.g305-footer {
  background: #060606;
  border-top: 1px solid var(--g305-border);
  padding: 1.6rem 1rem 8rem;
  font-size: 1.2rem;
}
.g305-footer h4 { color: var(--g305-primary); margin: 0.8rem 0 0.4rem; font-size: 1.3rem; }
.g305-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; }
.g305-footer-links a { color: var(--g305-text); font-size: 1.1rem; }
.g305-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.g305-footer-promo button {
  background: linear-gradient(90deg, var(--g305-deep), var(--g305-primary));
  color: #fff; border: none; border-radius: 0.6rem;
  padding: 0.5rem 0.9rem; font-size: 1.1rem; font-weight: 700; cursor: pointer;
}
.g305-copy { color: #888; margin-top: 0.8rem; font-size: 1rem; text-align: center; }

/* ===== Bottom navigation ===== */
.g305-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: #0a0a0a;
  border-top: 1px solid var(--g305-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.g305-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g305-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.g305-bottomnav-btn i { font-size: 2.2rem; }
.g305-bottomnav-btn .material-icons-outlined,
.g305-bottomnav-btn .material-icons { font-size: 2.2rem; }
.g305-bottomnav-btn span { font-size: 1rem; }
.g305-bottomnav-btn:active { transform: scale(0.9); color: var(--g305-primary); }
.g305-nav-active { color: var(--g305-primary); }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .g305-bottomnav { display: none; }
  body { max-width: 768px; }
  .g305-wrapper { padding-bottom: 3rem; }
}
@media (max-width: 768px) {
  .g305-wrapper { padding-bottom: 8rem; }
}
@media (max-width: 360px) {
  .g305-grid { grid-template-columns: repeat(3, 1fr); }
  .g305-features { grid-template-columns: 1fr; }
}
