/* ===========================================================
   bgd99.cyou - core stylesheet (basefiles)
   All custom classes use the "s89e-" prefix.
   Palette: #0D1117 (bg) | #FFD700 (gold) | #FF4500 (orange)
           #FFF176 (highlight) | #0B0F14 (deep bg) | #F5F5F5 (text)
   Mobile-first. Designed for max-width: 430px first, then up.
   =========================================================== */

:root {
  --s89e-bg: #0d1117;
  --s89e-bg-deep: #0b0f14;
  --s89e-bg-soft: #161d26;
  --s89e-gold: #ffd700;
  --s89e-orange: #ff4500;
  --s89e-highlight: #fff176;
  --s89e-text: #f5f5f5;
  --s89e-muted: #9aa6b2;
  --s89e-line: rgba(255, 215, 0, 0.18);
  --s89e-radius: 14px;
  --s89e-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --s89e-header-h: 58px;
  --s89e-nav-h: 62px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui,
    sans-serif;
  background: var(--s89e-bg);
  color: var(--s89e-text);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--s89e-gold);
  text-decoration: none;
}

a:hover {
  color: var(--s89e-highlight);
}

.s89e-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ---------------- Header ---------------- */
.s89e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--s89e-header-h);
  z-index: 1000;
  background: linear-gradient(180deg, #0b0f14 0%, #11181f 100%);
  border-bottom: 1px solid var(--s89e-line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.s89e-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.s89e-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.s89e-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, #ffd700, #ff4500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f14;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.s89e-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--s89e-gold);
  white-space: nowrap;
}

.s89e-brand-name span {
  color: var(--s89e-orange);
}

.s89e-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.s89e-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.s89e-btn:active {
  transform: scale(0.95);
}

.s89e-btn-login {
  background: transparent;
  color: var(--s89e-gold);
  border: 1px solid var(--s89e-gold);
}

.s89e-btn-register {
  background: linear-gradient(90deg, #ff4500, #ffd700);
  color: #0b0f14;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.45);
}

.s89e-btn-promo {
  background: linear-gradient(90deg, #ffd700, #fff176);
  color: #0b0f14;
}

.s89e-menu-btn {
  background: transparent;
  border: 1px solid var(--s89e-line);
  color: var(--s89e-text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.s89e-menu-btn.s89e-active {
  background: rgba(255, 215, 0, 0.12);
  color: var(--s89e-gold);
}

/* ---------------- Mobile menu ---------------- */
.s89e-mobile-menu {
  position: fixed;
  top: var(--s89e-header-h);
  left: 0;
  right: 0;
  background: var(--s89e-bg-deep);
  border-bottom: 1px solid var(--s89e-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}

.s89e-mobile-menu.s89e-open {
  max-height: 460px;
  overflow-y: auto;
}

.s89e-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 6px 12px;
}

.s89e-mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  color: var(--s89e-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 14px;
}

.s89e-mobile-menu li a i {
  color: var(--s89e-gold);
  width: 22px;
  text-align: center;
}

/* ---------------- Main layout ---------------- */
main {
  padding-top: calc(var(--s89e-header-h) + 8px);
  padding-bottom: 24px;
}

/* ---------------- Hero carousel ---------------- */
.s89e-hero {
  position: relative;
  border-radius: var(--s89e-radius);
  overflow: hidden;
  box-shadow: var(--s89e-shadow);
  margin: 8px 0 14px;
}

.s89e-hero-track {
  position: relative;
  height: 200px;
}

.s89e-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: flex-end;
}

.s89e-hero-slide.s89e-active {
  opacity: 1;
}

.s89e-hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s89e-hero-caption {
  position: relative;
  z-index: 2;
  padding: 14px;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.85) 30%,
    rgba(0, 0, 0, 0) 100%
  );
  width: 100%;
}

.s89e-hero-caption h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--s89e-highlight);
}

.s89e-hero-caption p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--s89e-text);
}

.s89e-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 5px;
}

.s89e-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  padding: 0;
}

.s89e-hero-dot.s89e-active {
  background: var(--s89e-gold);
  width: 18px;
  border-radius: 4px;
}

/* ---------------- Section ---------------- */
.s89e-section {
  margin: 18px 0;
}

.s89e-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

.s89e-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--s89e-gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.s89e-section-title i {
  color: var(--s89e-orange);
}

.s89e-more {
  font-size: 12px;
  color: var(--s89e-muted);
}

/* ---------------- Category tabs ---------------- */
.s89e-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}

.s89e-cat-tabs::-webkit-scrollbar {
  display: none;
}

.s89e-cat-tab {
  flex: 0 0 auto;
  background: var(--s89e-bg-soft);
  border: 1px solid var(--s89e-line);
  color: var(--s89e-text);
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.s89e-cat-tab.s89e-active {
  background: linear-gradient(90deg, #ff4500, #ffd700);
  color: #0b0f14;
  border-color: transparent;
  font-weight: 700;
}

/* ---------------- Game grid ---------------- */
.s89e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.s89e-card {
  background: var(--s89e-bg-soft);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.s89e-card:active {
  transform: scale(0.97);
}

.s89e-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #000;
}

.s89e-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s89e-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--s89e-gold);
  font-size: 22px;
}

.s89e-card:hover .s89e-card-play,
.s89e-card:active .s89e-card-play {
  opacity: 1;
}

.s89e-card-title {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--s89e-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s89e-card-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--s89e-orange);
  color: #0b0f14;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  z-index: 2;
}

/* ---------------- Promo / feature banner ---------------- */
.s89e-cta {
  background: linear-gradient(120deg, #ff4500 0%, #ffd700 100%);
  border-radius: var(--s89e-radius);
  padding: 16px;
  color: #0b0f14;
  margin: 14px 0;
  box-shadow: var(--s89e-shadow);
  text-align: center;
}

.s89e-cta h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.s89e-cta p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #1a1a1a;
}

.s89e-cta .s89e-btn {
  background: #0b0f14;
  color: var(--s89e-gold);
  padding: 10px 22px;
  font-size: 14px;
}

/* ---------------- Feature list ---------------- */
.s89e-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.s89e-feature {
  background: var(--s89e-bg-soft);
  border: 1px solid var(--s89e-line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.s89e-feature i {
  font-size: 26px;
  color: var(--s89e-gold);
  margin-bottom: 6px;
}

.s89e-feature h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--s89e-highlight);
}

.s89e-feature p {
  margin: 0;
  font-size: 11px;
  color: var(--s89e-muted);
}

/* ---------------- Winners ---------------- */
.s89e-winners {
  background: var(--s89e-bg-soft);
  border-radius: 12px;
  border: 1px solid var(--s89e-line);
  padding: 10px 12px;
}

.s89e-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.s89e-winner:last-child {
  border-bottom: none;
}

.s89e-winner .s89e-user {
  color: var(--s89e-text);
  font-weight: 600;
}

.s89e-winner .s89e-amount {
  color: var(--s89e-gold);
  font-weight: 800;
}

/* ---------------- FAQ accordion ---------------- */
.s89e-faq-item {
  background: var(--s89e-bg-soft);
  border: 1px solid var(--s89e-line);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.s89e-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--s89e-text);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.s89e-faq-q i {
  color: var(--s89e-gold);
  transition: transform 0.2s ease;
}

.s89e-faq-item.s89e-open .s89e-faq-q i {
  transform: rotate(45deg);
}

.s89e-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 14px;
  color: var(--s89e-muted);
  font-size: 12px;
}

.s89e-faq-item.s89e-open .s89e-faq-a {
  max-height: 260px;
  padding: 0 14px 12px;
}

/* ---------------- SEO content ---------------- */
.s89e-prose {
  background: var(--s89e-bg-soft);
  border-radius: 12px;
  border: 1px solid var(--s89e-line);
  padding: 14px;
  font-size: 13px;
  color: var(--s89e-text);
}

.s89e-prose h3 {
  margin: 14px 0 6px;
  font-size: 15px;
  color: var(--s89e-gold);
}

.s89e-prose h3:first-child {
  margin-top: 0;
}

.s89e-prose p {
  margin: 0 0 10px;
  color: var(--s89e-muted);
  font-size: 12.5px;
}

.s89e-prose a {
  color: var(--s89e-gold);
  text-decoration: underline;
}

/* ---------------- Footer ---------------- */
.s89e-footer {
  background: var(--s89e-bg-deep);
  border-top: 1px solid var(--s89e-line);
  padding: 18px 0 calc(var(--s89e-nav-h) + 18px);
  margin-top: 18px;
}

.s89e-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.s89e-footer h5 {
  font-size: 13px;
  color: var(--s89e-gold);
  margin: 0 0 8px;
}

.s89e-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.s89e-footer li {
  margin-bottom: 5px;
}

.s89e-footer a {
  color: var(--s89e-muted);
  font-size: 12px;
}

.s89e-footer a:hover {
  color: var(--s89e-highlight);
}

.s89e-footer-copy {
  text-align: center;
  color: var(--s89e-muted);
  font-size: 11px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------------- Mobile bottom nav ---------------- */
.s89e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--s89e-nav-h);
  background: linear-gradient(180deg, #11181f 0%, #0b0f14 100%);
  border-top: 1px solid var(--s89e-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.55);
}

.s89e-nav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  border: none;
  background: transparent;
  color: var(--s89e-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  padding: 4px 2px;
  position: relative;
  transition: color 0.15s ease;
}

.s89e-nav-item i,
.s89e-nav-item span.material-icons-outlined,
.s89e-nav-item ion-icon {
  font-size: 22px;
}

.s89e-nav-item ion-icon {
  line-height: 1;
}

.s89e-nav-item.s89e-promo-center {
  background: linear-gradient(180deg, #ff4500, #ffd700);
  color: #0b0f14;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(255, 69, 0, 0.55);
  font-weight: 800;
}

.s89e-nav-item.s89e-promo-center i,
.s89e-nav-item.s89e-promo-center span {
  font-size: 22px;
}

.s89e-nav-item:hover,
.s89e-nav-item:focus {
  color: var(--s89e-gold);
}

.s89e-nav-item.s89e-active {
  color: var(--s89e-gold);
}

.s89e-nav-item.s89e-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--s89e-gold);
}

/* ---------------- Back to top ---------------- */
.s89e-to-top {
  position: fixed;
  right: 12px;
  bottom: calc(var(--s89e-nav-h) + 12px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--s89e-gold);
  color: #0b0f14;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: var(--s89e-shadow);
}

.s89e-to-top.s89e-visible {
  display: flex;
}

/* ---------------- Mobile bottom padding ---------------- */
@media (max-width: 768px) {
  main {
    padding-bottom: calc(var(--s89e-nav-h) + 16px);
  }
}

/* ---------------- Desktop adaptations ---------------- */
@media (min-width: 769px) {
  body {
    background: #07090c;
  }

  .s89e-header-inner,
  .s89e-container,
  .s89e-mobile-menu {
    max-width: 430px;
  }

  .s89e-bottom-nav {
    display: none;
  }

  .s89e-footer {
    padding-bottom: 18px;
  }

  .s89e-menu-btn {
    display: none;
  }

  .s89e-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .s89e-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .s89e-footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }

  main {
    padding-bottom: 24px;
  }
}
