/* ak77-homes base stylesheet. All custom classes use s6d8- prefix. */
/* Palette: #0C0C0C bg / #FFFACD soft / #008B8B teal / #DAA520 gold / #F0E68C khaki */
/* Comments in English per project convention. */

:root {
  --s6d8-primary: #DAA520;
  --s6d8-secondary: #008B8B;
  --s6d8-bg: #0C0C0C;
  --s6d8-bg2: #161616;
  --s6d8-text: #FFFACD;
  --s6d8-khaki: #F0E68C;
  --s6d8-muted: #b9b08a;
  --s6d8-border: rgba(218, 165, 32, 0.25);
  --s6d8-radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--s6d8-bg);
  color: var(--s6d8-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--s6d8-khaki); text-decoration: none; }
a:hover { color: var(--s6d8-primary); }

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

/* ============ Layout wrappers ============ */
.s6d8-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

.s6d8-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.s6d8-main {
  flex: 1;
  padding-bottom: 84px;
}

/* ============ Header ============ */
.s6d8-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a, #0C0C0C);
  border-bottom: 1px solid var(--s6d8-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

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

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

.s6d8-brand img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.s6d8-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--s6d8-primary);
  letter-spacing: 0.5px;
}

.s6d8-brand-tag {
  font-size: 0.65rem;
  color: var(--s6d8-khaki);
  display: block;
  line-height: 1;
}

.s6d8-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s6d8-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  font-family: inherit;
}
.s6d8-btn:active { transform: scale(0.95); }

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

.s6d8-btn-register {
  background: linear-gradient(135deg, #DAA520, #FFD24A);
  color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(218,165,32,0.35);
}

.s6d8-menu-btn {
  background: transparent;
  border: 1px solid var(--s6d8-border);
  color: var(--s6d8-khaki);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============ Mobile nav drawer ============ */
.s6d8-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #111;
  border-left: 1px solid var(--s6d8-border);
  padding: 70px 16px 24px;
  z-index: 9999;
  transition: right .25s ease;
  overflow-y: auto;
}

.s6d8-mobile-nav.s6d8-nav-open { right: 0; }

.s6d8-mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(218,165,32,0.12);
  color: var(--s6d8-text);
  font-weight: 600;
}

.s6d8-mobile-nav a:hover { background: rgba(218,165,32,0.08); }

.s6d8-nav-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--s6d8-khaki);
  font-size: 1.4rem;
  cursor: pointer;
}

.s6d8-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
}
.s6d8-overlay.s6d8-nav-open { display: block; }

/* ============ Hero / Carousel ============ */
.s6d8-hero {
  margin-top: 12px;
}

.s6d8-carousel {
  position: relative;
  border-radius: var(--s6d8-radius);
  overflow: hidden;
  border: 1px solid var(--s6d8-border);
  background: #111;
}

.s6d8-slide {
  position: relative;
  cursor: pointer;
}

.s6d8-slide img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.s6d8-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: var(--s6d8-khaki);
  font-weight: 700;
}

/* ============ Section headings ============ */
.s6d8-section {
  margin: 22px 0 6px;
}

.s6d8-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--s6d8-primary);
  font-weight: 800;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--s6d8-border);
}

.s6d8-section-title .s6d8-bar {
  width: 4px; height: 18px; background: var(--s6d8-primary); border-radius: 2px;
}

.s6d8-cat-label {
  font-size: 0.78rem;
  color: var(--s6d8-secondary);
  font-weight: 700;
  margin: 14px 0 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.s6d8-game {
  background: var(--s6d8-bg2);
  border-radius: 10px;
  border: 1px solid var(--s6d8-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s;
  display: block;
  text-align: center;
  padding-bottom: 6px;
}
.s6d8-game:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.5); }
.s6d8-game:active { transform: scale(0.97); }

.s6d8-game img {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.s6d8-game-name {
  font-size: 0.72rem;
  color: var(--s6d8-text);
  padding: 4px 4px 2px;
  line-height: 1.25;
  min-height: 28px;
}

/* ============ Cards / generic blocks ============ */
.s6d8-card {
  background: var(--s6d8-bg2);
  border: 1px solid var(--s6d8-border);
  border-radius: var(--s6d8-radius);
  padding: 14px;
  margin-bottom: 12px;
}

.s6d8-card h2, .s6d8-card h3 {
  color: var(--s6d8-primary);
  margin: 0 0 8px;
}

.s6d8-card p {
  color: var(--s6d8-text);
  font-size: 0.88rem;
  margin: 0 0 8px;
}

.s6d8-cta {
  display: inline-block;
  margin-top: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #008B8B, #00b3b3);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

.s6d8-cta-gold {
  background: linear-gradient(135deg, #DAA520, #FFD24A);
  color: #1a1a1a;
}

/* ============ RTP table ============ */
.s6d8-rtp {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.s6d8-rtp th, .s6d8-rtp td {
  border: 1px solid var(--s6d8-border);
  padding: 6px 8px;
  text-align: left;
}
.s6d8-rtp th { background: rgba(218,165,32,0.12); color: var(--s6d8-khaki); }
.s6d8-rtp td.num { color: var(--s6d8-primary); font-weight: 700; }

/* ============ Testimonial ============ */
.s6d8-quote {
  border-left: 3px solid var(--s6d8-primary);
  padding: 6px 0 6px 10px;
  margin-bottom: 10px;
  font-size: 0.84rem;
  color: var(--s6d8-text);
}
.s6d8-quote .who { color: var(--s6d8-khaki); font-weight: 700; font-size: 0.78rem; }

/* ============ Payment / app ============ */
.s6d8-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.s6d8-chip {
  background: rgba(0,139,139,0.15);
  border: 1px solid var(--s6d8-border);
  color: var(--s6d8-text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* ============ Footer ============ */
.s6d8-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--s6d8-border);
  padding: 20px 12px 16px;
  color: var(--s6d8-muted);
  font-size: 0.78rem;
}

.s6d8-footer-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.s6d8-footer h4 {
  color: var(--s6d8-primary);
  margin: 14px 0 6px;
  font-size: 0.85rem;
}

.s6d8-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}
.s6d8-footer-links a { color: var(--s6d8-text); font-size: 0.76rem; }

.s6d8-footer-brand { margin: 8px 0 10px; line-height: 1.5; }

.s6d8-promo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.s6d8-promo-row .s6d8-btn {
  padding: 6px 10px;
  font-size: 0.72rem;
}

.s6d8-copy {
  border-top: 1px solid rgba(218,165,32,0.12);
  padding-top: 10px;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--s6d8-muted);
  text-align: center;
}

/* ============ Mobile bottom nav ============ */
.s6d8-bnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 62px;
  background: #0a0a0a;
  border-top: 1px solid var(--s6d8-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.55);
}

.s6d8-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s6d8-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.62rem;
  cursor: pointer;
  padding: 4px 2px;
  font-family: inherit;
  transition: color .15s ease, transform .12s;
}

.s6d8-bnav-btn:active { transform: scale(0.92); }

.s6d8-bnav-btn .s6d8-ico {
  font-size: 22px;
  line-height: 1;
}

.s6d8-bnav-btn .material-icons,
.s6d8-bnav-btn .bi { font-size: 22px; }

.s6d8-bnav-btn.s6d8-bnav-active {
  color: var(--s6d8-primary);
}

.s6d8-bnav-btn.s6d8-bnav-promo {
  color: var(--s6d8-khaki);
}

.s6d8-bnav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 28px);
  background: #e23b3b;
  color: #fff;
  border-radius: 999px;
  font-size: 9px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s6d8-bnav-btn { position: relative; }

/* ============ Back to top ============ */
.s6d8-to-top {
  position: fixed;
  right: 14px;
  bottom: 74px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--s6d8-primary);
  color: #1a1a1a;
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  display: none;
}

/* ============ Desktop: hide bottom nav, widen container ============ */
@media (min-width: 769px) {
  .s6d8-bnav { display: none; }
  main.s6d8-main { padding-bottom: 24px; }
  .s6d8-to-top { display: inline-block; }
  .s6d8-container { max-width: 430px; }
}

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

@media (max-width: 360px) {
  .s6d8-grid { grid-template-columns: repeat(2, 1fr); }
  .s6d8-game img { height: 100px; }
}
