/* ===========================================================
   dk game - design.css (Core base stylesheet)
   Mobile-first HTML5 gaming site for Bangladesh (bn-BD)
   Class prefix: v3d4-  |  Max width: 430px
   =========================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --v3d4-primary: #4682B4;     /* Steel Blue */
  --v3d4-accent: #FA8072;      /* Salmon CTA */
  --v3d4-dark: #34495E;        /* Dark Slate */
  --v3d4-darker: #3A3A3A;      /* Dark Gray */
  --v3d4-muted: #808080;       /* Gray */
  --v3d4-bg: #232a36;          /* Page background */
  --v3d4-text: #f4f7fb;        /* Light text */
  --v3d4-text-dim: #c3cdda;
  --v3d4-card: #384458;
  --v3d4-card-2: #41506a;
  --v3d4-border: #4a5870;
  --v3d4-gold: #f6c544;
  --v3d4-green: #4cd3a5;
  --v3d4-radius: 1.2rem;
  --v3d4-shadow: 0 .4rem 1.2rem rgba(0,0,0,.35);
  --v3d4-header-h: 5.6rem;
  --v3d4-bottomnav-h: 6.4rem;
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
  background: var(--v3d4-bg);
  color: var(--v3d4-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v3d4-primary); text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.v3d4-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v3d4-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.v3d4-section { padding: 1.6rem 0; }
.v3d4-section-title {
  font-size: 1.9rem; font-weight: 700; margin: 1.4rem 0 1rem;
  display: flex; align-items: center; gap: .6rem; color: var(--v3d4-text);
}
.v3d4-section-title::before {
  content: ""; width: .4rem; height: 1.9rem;
  background: linear-gradient(180deg, var(--v3d4-accent), var(--v3d4-gold));
  border-radius: .2rem;
}
.v3d4-text-accent { color: var(--v3d4-accent); font-weight: 700; }
.v3d4-text-gold { color: var(--v3d4-gold); font-weight: 700; }

/* ---------- Header ---------- */
.v3d4-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--v3d4-dark), var(--v3d4-darker));
  border-bottom: .1rem solid var(--v3d4-border);
  box-shadow: var(--v3d4-shadow);
}
.v3d4-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0 1rem;
  height: var(--v3d4-header-h);
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.v3d4-logo { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.7rem; color: var(--v3d4-text); }
.v3d4-logo img { width: 3rem; height: 3rem; border-radius: .5rem; }
.v3d4-logo .v3d4-logo-text {
  background: linear-gradient(90deg, var(--v3d4-primary), var(--v3d4-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v3d4-header-actions { display: flex; align-items: center; gap: .45rem; }
.v3d4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  font-weight: 700; font-size: 1.25rem; padding: .7rem 1.1rem;
  border-radius: 2rem; border: none; cursor: pointer; min-height: 3.4rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.v3d4-btn:active { transform: scale(.95); }
.v3d4-btn-login { background: transparent; color: var(--v3d4-text); border: .15rem solid var(--v3d4-primary); }
.v3d4-btn-register {
  background: linear-gradient(90deg, var(--v3d4-accent), #ff6a59);
  color: #fff; box-shadow: 0 .3rem .8rem rgba(250,128,114,.4);
}
.v3d4-menu-toggle {
  background: transparent; border: none; color: var(--v3d4-text);
  font-size: 2.1rem; cursor: pointer; padding: .4rem .5rem; min-width: 3.4rem; min-height: 3.4rem;
}

/* ---------- Mobile slide menu ---------- */
.v3d4-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 82%; max-width: 320px;
  height: 100vh; background: var(--v3d4-dark); z-index: 9999;
  transition: right .3s ease; padding: calc(var(--v3d4-header-h) + 1rem) 1.2rem 2rem;
  overflow-y: auto; box-shadow: -.4rem 0 1.2rem rgba(0,0,0,.4);
}
.v3d4-mobile-menu.v3d4-open { right: 0; }
.v3d4-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9998; display: none; }
.v3d4-menu-overlay.v3d4-open { display: block; }
.v3d4-menu-close {
  position: absolute; top: 1rem; right: 1rem; background: transparent;
  border: none; color: var(--v3d4-text); font-size: 2.4rem; cursor: pointer;
}
.v3d4-menu-title { font-size: 1.5rem; color: var(--v3d4-text-dim); margin-bottom: .8rem; font-weight: 600; }
.v3d4-menu-item {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1rem;
  color: var(--v3d4-text); font-size: 1.45rem; font-weight: 600;
  border-bottom: .1rem solid var(--v3d4-border); cursor: pointer; min-height: 4.4rem;
}
.v3d4-menu-item:active { background: var(--v3d4-card); }
.v3d4-menu-item i, .v3d4-menu-item .material-icons, .v3d4-menu-item .bi {
  font-size: 2rem; color: var(--v3d4-accent); width: 2.4rem; text-align: center;
}

/* ---------- Main content ---------- */
.v3d4-main { padding-top: var(--v3d4-header-h); padding-bottom: var(--v3d4-bottomnav-h); }
@media (min-width: 769px) { .v3d4-main { padding-bottom: 2rem; } }

/* ---------- Hero carousel ---------- */
.v3d4-carousel { position: relative; overflow: hidden; border-radius: var(--v3d4-radius); margin: 1rem 0 1.2rem; box-shadow: var(--v3d4-shadow); }
.v3d4-carousel-track { display: flex; transition: transform .45s ease; }
.v3d4-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.v3d4-carousel-slide img { width: 100%; height: 17rem; object-fit: cover; }
.v3d4-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.78));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem;
}
.v3d4-slide-title { color: #fff; font-weight: 800; font-size: 1.7rem; line-height: 1.25; }
.v3d4-slide-sub { color: #ffe7c2; font-size: 1.2rem; margin-top: .2rem; }
.v3d4-carousel-dots { position: absolute; bottom: .7rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.v3d4-carousel-dot { width: .8rem; height: .8rem; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; }
.v3d4-carousel-dot.v3d4-active { background: var(--v3d4-accent); width: 2rem; border-radius: .4rem; }

/* ---------- H1 / headings ---------- */
.v3d4-h1 { font-size: 2.1rem; font-weight: 800; margin: 1rem 0 .6rem; line-height: 1.3; }
.v3d4-h1 span { color: var(--v3d4-accent); }
.v3d4-h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: .6rem; color: var(--v3d4-text); }
.v3d4-h3 { font-size: 1.55rem; font-weight: 700; margin-bottom: .5rem; color: var(--v3d4-text); }
.v3d4-lead { color: var(--v3d4-text-dim); font-size: 1.4rem; margin-bottom: 1rem; }

/* ---------- Category label ---------- */
.v3d4-cat-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.7rem; font-weight: 700; margin: 1.6rem 0 .9rem; color: var(--v3d4-gold);
}
.v3d4-cat-label i, .v3d4-cat-label .material-icons, .v3d4-cat-label .bi {
  font-size: 2.1rem; color: var(--v3d4-accent);
}

/* ---------- Game grid ---------- */
.v3d4-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.v3d4-game-card {
  background: var(--v3d4-card); border-radius: .8rem; overflow: hidden;
  border: .1rem solid var(--v3d4-border); cursor: pointer; position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.v3d4-game-card:active { transform: scale(.95); border-color: var(--v3d4-accent); }
.v3d4-game-card img { width: 100%; height: 7.6rem; object-fit: cover; background: #1c2230; }
.v3d4-game-name {
  padding: .45rem .3rem; font-size: 1.08rem; text-align: center;
  color: var(--v3d4-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v3d4-game-tag {
  position: absolute; top: .35rem; left: .35rem; background: var(--v3d4-accent);
  color: #fff; font-size: .9rem; font-weight: 700; padding: .1rem .4rem; border-radius: .4rem;
}

/* ---------- Generic card ---------- */
.v3d4-card {
  background: var(--v3d4-card); border-radius: var(--v3d4-radius); padding: 1.3rem;
  border: .1rem solid var(--v3d4-border); box-shadow: var(--v3d4-shadow); margin-bottom: 1.1rem;
}
.v3d4-card p { color: var(--v3d4-text-dim); margin-bottom: .7rem; font-size: 1.35rem; line-height: 1.55; }
.v3d4-card p:last-child { margin-bottom: 0; }

/* ---------- Promo links & buttons ---------- */
.v3d4-promo-link { color: var(--v3d4-accent); font-weight: 700; cursor: pointer; text-decoration: underline; }
.v3d4-promo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(90deg, var(--v3d4-accent), #ff6a59);
  color: #fff; padding: 1rem 2rem; border-radius: 2.4rem; font-weight: 800; font-size: 1.45rem;
  border: none; cursor: pointer; min-height: 4.4rem;
  box-shadow: 0 .3rem .9rem rgba(250,128,114,.45); margin: .4rem 0;
}
.v3d4-promo-btn:active { transform: scale(.97); }
.v3d4-promo-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }
.v3d4-promo-chip {
  background: rgba(70,130,180,.18); color: var(--v3d4-primary); border: .1rem solid var(--v3d4-primary);
  padding: .55rem 1.1rem; border-radius: 1.6rem; font-size: 1.25rem; font-weight: 700; cursor: pointer;
  min-height: 3.4rem; display: inline-flex; align-items: center; gap: .35rem;
}

/* ---------- Steps (How to play) ---------- */
.v3d4-steps { display: grid; gap: .8rem; }
.v3d4-step { display: flex; gap: .9rem; align-items: flex-start; background: var(--v3d4-darker); padding: 1rem; border-radius: .8rem; }
.v3d4-step-num {
  min-width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--v3d4-primary), var(--v3d4-accent));
  color: #fff; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.v3d4-step-text { font-size: 1.3rem; color: var(--v3d4-text-dim); }
.v3d4-step-text b { color: var(--v3d4-text); }

/* ---------- Features ---------- */
.v3d4-feature-list { display: grid; gap: .8rem; }
.v3d4-feature-item { display: flex; gap: .9rem; align-items: flex-start; background: var(--v3d4-darker); padding: 1rem; border-radius: .8rem; }
.v3d4-feature-icon {
  width: 3.6rem; height: 3.6rem; min-width: 3.6rem; border-radius: .7rem;
  background: rgba(70,130,180,.2); display: flex; align-items: center; justify-content: center;
  color: var(--v3d4-primary); font-size: 2rem;
}
.v3d4-feature-icon i, .v3d4-feature-icon .material-icons, .v3d4-feature-icon .bi { font-size: 2rem; }
.v3d4-feature-text h4 { font-size: 1.4rem; color: var(--v3d4-text); margin-bottom: .25rem; }
.v3d4-feature-text p { font-size: 1.2rem; color: var(--v3d4-text-dim); margin: 0; }

/* ---------- RTP data ---------- */
.v3d4-rtp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.v3d4-rtp-item { background: var(--v3d4-darker); padding: .9rem; border-radius: .8rem; border-left: .3rem solid var(--v3d4-primary); }
.v3d4-rtp-name { font-size: 1.15rem; color: var(--v3d4-text-dim); margin-bottom: .2rem; }
.v3d4-rtp-value { font-size: 1.7rem; font-weight: 800; color: var(--v3d4-gold); }
.v3d4-rtp-bar { height: .5rem; background: #1c2230; border-radius: .3rem; margin-top: .4rem; overflow: hidden; }
.v3d4-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--v3d4-primary), var(--v3d4-green)); }

/* ---------- FAQ ---------- */
.v3d4-faq-item { background: var(--v3d4-card); border-radius: .8rem; margin-bottom: .7rem; overflow: hidden; border: .1rem solid var(--v3d4-border); }
.v3d4-faq-q { padding: 1.1rem 1rem; font-weight: 700; color: var(--v3d4-text); display: flex; justify-content: space-between; align-items: center; gap: .6rem; cursor: pointer; font-size: 1.35rem; }
.v3d4-faq-q .v3d4-faq-icon { color: var(--v3d4-accent); font-size: 1.6rem; transition: transform .2s; }
.v3d4-faq-item.v3d4-open .v3d4-faq-icon { transform: rotate(45deg); }
.v3d4-faq-a { padding: 0 1rem 1.1rem; color: var(--v3d4-text-dim); font-size: 1.3rem; line-height: 1.55; display: none; }
.v3d4-faq-item.v3d4-open .v3d4-faq-a { display: block; }

/* ---------- Payment methods ---------- */
.v3d4-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.v3d4-pay-item { background: var(--v3d4-darker); border-radius: .7rem; padding: .9rem .5rem; text-align: center; border: .1rem solid var(--v3d4-border); }
.v3d4-pay-item .material-icons, .v3d4-pay-item i, .v3d4-pay-item .bi { font-size: 2.2rem; color: var(--v3d4-primary); }
.v3d4-pay-item span { display: block; font-size: 1.05rem; color: var(--v3d4-text-dim); margin-top: .3rem; }

/* ---------- Winners ---------- */
.v3d4-winner-list { display: grid; gap: .6rem; }
.v3d4-winner { display: flex; align-items: center; justify-content: space-between; background: var(--v3d4-darker); padding: .8rem 1rem; border-radius: .7rem; }
.v3d4-winner-info { display: flex; align-items: center; gap: .7rem; }
.v3d4-winner-avatar { width: 3rem; height: 3rem; border-radius: 50%; background: linear-gradient(135deg, var(--v3d4-primary), var(--v3d4-accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.3rem; }
.v3d4-winner-name { font-size: 1.25rem; color: var(--v3d4-text); }
.v3d4-winner-game { font-size: 1.05rem; color: var(--v3d4-text-dim); }
.v3d4-winner-amount { color: var(--v3d4-green); font-weight: 800; font-size: 1.35rem; }

/* ---------- CTA banner ---------- */
.v3d4-cta-banner {
  background: linear-gradient(135deg, var(--v3d4-dark), var(--v3d4-primary));
  border-radius: var(--v3d4-radius); padding: 1.5rem 1.2rem; text-align: center;
  margin: 1.2rem 0; border: .1rem solid var(--v3d4-border);
}
.v3d4-cta-banner h3 { color: #fff; font-size: 1.7rem; margin-bottom: .5rem; }
.v3d4-cta-banner p { color: #e6edf5; font-size: 1.25rem; margin-bottom: .8rem; }

/* ---------- Footer ---------- */
.v3d4-footer { background: var(--v3d4-darker); padding: 2rem 0 1rem; border-top: .1rem solid var(--v3d4-border); margin-top: 1.5rem; }
.v3d4-footer-brand { color: var(--v3d4-text-dim); font-size: 1.25rem; line-height: 1.6; margin-bottom: 1.1rem; }
.v3d4-footer-promos { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.v3d4-footer-promos button, .v3d4-footer-promos a {
  background: linear-gradient(90deg, var(--v3d4-accent), #ff6a59); color: #fff;
  padding: .55rem 1rem; border-radius: 1.6rem; font-size: 1.2rem; font-weight: 700;
  border: none; cursor: pointer; min-height: 3.2rem; display: inline-flex; align-items: center; gap: .35rem;
}
.v3d4-footer-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.v3d4-footer-links a {
  background: var(--v3d4-card); color: var(--v3d4-text-dim);
  padding: .45rem .9rem; border-radius: 1.4rem; font-size: 1.15rem; border: .1rem solid var(--v3d4-border);
}
.v3d4-footer-copy { text-align: center; color: var(--v3d4-muted); font-size: 1.1rem; padding-top: 1rem; border-top: .1rem solid var(--v3d4-border); }

/* ---------- Mobile bottom nav ---------- */
.v3d4-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v3d4-bottomnav-h);
  background: linear-gradient(180deg, var(--v3d4-dark), var(--v3d4-darker));
  border-top: .1rem solid var(--v3d4-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -.3rem 1rem rgba(0,0,0,.3);
}
.v3d4-nav-btn {
  position: relative; flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; background: transparent; border: none; color: var(--v3d4-text-dim);
  cursor: pointer; font-size: 1rem; font-weight: 600; padding: .4rem;
  transition: color .15s ease, transform .15s ease; text-decoration: none;
}
.v3d4-nav-btn:active { transform: scale(.9); }
.v3d4-nav-btn .material-icons, .v3d4-nav-btn i, .v3d4-nav-btn ion-icon, .v3d4-nav-btn .bi { font-size: 2.3rem; line-height: 1; }
.v3d4-nav-btn.v3d4-active { color: var(--v3d4-accent); }
.v3d4-nav-btn.v3d4-promo { color: var(--v3d4-gold); }
.v3d4-nav-btn.v3d4-promo .material-icons, .v3d4-nav-btn.v3d4-promo i, .v3d4-nav-btn.v3d4-promo ion-icon, .v3d4-nav-btn.v3d4-promo .bi { filter: drop-shadow(0 0 .3rem rgba(246,197,68,.6)); }
.v3d4-nav-badge {
  position: absolute; top: .35rem; right: 50%; transform: translateX(1.4rem);
  background: var(--v3d4-accent); color: #fff; font-size: .85rem; font-weight: 700;
  padding: 0 .35rem; border-radius: .8rem; min-width: 1.5rem; line-height: 1.4rem;
}

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .v3d4-bottom-nav { display: none; }
  .v3d4-menu-toggle { display: none; }
  .v3d4-header-inner, .v3d4-container, .v3d4-wrapper { max-width: 430px; }
}

/* ---------- Utility ---------- */
.v3d4-hide { display: none !important; }
.v3d4-center { text-align: center; }
.v3d4-mt { margin-top: 1rem; }
