/* ==========================================================================
   dk win apk - mobile-first design system
   Palette: #FAF0E6 (cream) | #DEB887 (gold) | #1A1A1A (ink) | #006400 (deep green)
   All custom classes use the g4b1- prefix.
   ========================================================================== */

:root {
  --g4b1-cream: #faf0e6;
  --g4b1-gold: #deb887;
  --g4b1-gold-deep: #c2955f;
  --g4b1-ink: #1a1a1a;
  --g4b1-ink-soft: #232323;
  --g4b1-green: #006400;
  --g4b1-green-bright: #1f8a3d;
  --g4b1-line: rgba(250, 240, 230, 0.12);
  --g4b1-line-strong: rgba(222, 184, 135, 0.45);
  --g4b1-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --g4b1-radius: 14px;
  --g4b1-radius-sm: 10px;
  --g4b1-header-h: 56px;
  --g4b1-bottom-h: 64px;
  --g4b1-max: 430px;
}

* {
  box-sizing: border-box;
}

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

body {
  max-width: var(--g4b1-max);
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #14210f 0%, #1a1a1a 38%, #1a1a1a 100%);
}

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

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

a:hover,
a:focus {
  color: var(--g4b1-cream);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 8px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--g4b1-cream);
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

/* Page frame */
.g4b1-page {
  padding: var(--g4b1-header-h) 0 calc(var(--g4b1-bottom-h) + 24px);
  min-height: 100vh;
}

.g4b1-wrap {
  padding: 0 14px;
}

/* ============================ HEADER ============================ */
.g4b1-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--g4b1-max);
  height: var(--g4b1-header-h);
  background: linear-gradient(180deg, #0d1508 0%, #1a1a1a 100%);
  border-bottom: 1px solid var(--g4b1-line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 100;
}

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

.g4b1-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--g4b1-gold);
  flex-shrink: 0;
  background: var(--g4b1-cream);
}

.g4b1-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.g4b1-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--g4b1-cream);
  letter-spacing: 0.3px;
  line-height: 1.05;
  white-space: nowrap;
}

.g4b1-brand-tag {
  font-size: 10px;
  color: var(--g4b1-gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}

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

.g4b1-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
  min-height: 40px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.g4b1-btn:active {
  transform: scale(0.96);
}

.g4b1-btn-login {
  background: transparent;
  color: var(--g4b1-cream);
  border: 1px solid var(--g4b1-line-strong);
}

.g4b1-btn-register {
  background: linear-gradient(135deg, var(--g4b1-green-bright), var(--g4b1-green));
  color: var(--g4b1-cream);
  box-shadow: 0 4px 14px rgba(0, 100, 0, 0.45);
}

.g4b1-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(250, 240, 230, 0.08);
  border: 1px solid var(--g4b1-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--g4b1-cream);
  flex-shrink: 0;
}

.g4b1-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===================== SIDE MENU LAYER ===================== */
.g4b1-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}

.g4b1-scrim[data-app354-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.g4b1-side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 82%;
  max-width: 340px;
  background: linear-gradient(180deg, #131c0c 0%, #1a1a1a 100%);
  border-left: 1px solid var(--g4b1-line-strong);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  z-index: 210;
  padding: 16px 18px calc(var(--g4b1-bottom-h) + 24px);
  overflow-y: auto;
}

.g4b1-side-menu[data-app354-open="true"] {
  transform: translateX(0);
}

.g4b1-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--g4b1-line);
}

.g4b1-menu-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--g4b1-gold);
}

.g4b1-menu-close {
  background: transparent;
  border: none;
  color: var(--g4b1-cream);
  font-size: 22px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  line-height: 1;
}

.g4b1-menu-cta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.g4b1-menu-cta .g4b1-btn {
  flex: 1;
}

.g4b1-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g4b1-menu-list li {
  border-bottom: 1px solid var(--g4b1-line);
}

.g4b1-menu-list a {
  display: block;
  padding: 13px 6px;
  color: var(--g4b1-cream);
  font-size: 14px;
  font-weight: 600;
}

.g4b1-menu-list a:active {
  color: var(--g4b1-gold);
}

/* ============================ HERO ============================ */
.g4b1-hero {
  position: relative;
  margin: 12px 0 4px;
}

.g4b1-carousel {
  position: relative;
  border-radius: var(--g4b1-radius);
  overflow: hidden;
  box-shadow: var(--g4b1-shadow);
  aspect-ratio: 16 / 9;
  background: #0d1508;
}

.g4b1-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.g4b1-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g4b1-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.g4b1-slide-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--g4b1-cream);
  margin: 0 0 4px;
}

.g4b1-slide-sub {
  font-size: 12px;
  color: var(--g4b1-gold);
  margin: 0 0 10px;
}

.g4b1-slide-cta {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--g4b1-green-bright), var(--g4b1-green));
  color: var(--g4b1-cream);
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 100, 0, 0.55);
}

.g4b1-slide-cta:active {
  transform: scale(0.96);
}

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

.g4b1-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(250, 240, 230, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}

.g4b1-dot[data-app354-dot-active="true"] {
  background: var(--g4b1-gold);
  width: 18px;
  border-radius: 4px;
}

/* ============================ SECTIONS ============================ */
.g4b1-section {
  margin: 22px 0 8px;
}

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

.g4b1-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--g4b1-cream);
  position: relative;
  padding-left: 12px;
}

.g4b1-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--g4b1-gold), var(--g4b1-green-bright));
}

.g4b1-section-link {
  font-size: 12px;
  color: var(--g4b1-gold);
  font-weight: 600;
}

.g4b1-cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--g4b1-green-bright);
  margin-bottom: 6px;
  padding: 0 14px;
}

/* ============================ GAME GRID ============================ */
.g4b1-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 14px;
}

.g4b1-card {
  background: linear-gradient(180deg, #1f2a14 0%, #161616 100%);
  border: 1px solid var(--g4b1-line);
  border-radius: var(--g4b1-radius-sm);
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
  overflow: hidden;
}

.g4b1-card:active {
  transform: scale(0.94);
  border-color: var(--g4b1-gold);
}

.g4b1-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #0d1508;
  margin-bottom: 5px;
}

.g4b1-card-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--g4b1-cream);
  line-height: 1.2;
  min-height: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g4b1-card-tag {
  display: inline-block;
  font-size: 9px;
  background: rgba(31, 138, 61, 0.25);
  color: var(--g4b1-green-bright);
  padding: 1px 6px;
  border-radius: 999px;
  margin-top: 3px;
}

/* ============================ CONTENT BLOCKS ============================ */
.g4b1-card-block {
  background: rgba(250, 240, 230, 0.04);
  border: 1px solid var(--g4b1-line);
  border-radius: var(--g4b1-radius);
  padding: 14px;
  margin: 0 14px 12px;
}

.g4b1-card-block h2 {
  font-size: 16px;
}

.g4b1-card-block h3 {
  font-size: 14px;
  color: var(--g4b1-gold);
  margin-top: 10px;
}

.g4b1-card-block p {
  font-size: 13.5px;
  color: rgba(250, 240, 230, 0.88);
}

.g4b1-prose {
  padding: 0 14px;
  font-size: 13.5px;
  color: rgba(250, 240, 230, 0.88);
}

.g4b1-prose h2 {
  font-size: 16px;
  margin-top: 18px;
}

.g4b1-prose h3 {
  font-size: 14px;
  color: var(--g4b1-gold);
  margin-top: 12px;
}

.g4b1-prose p {
  margin-bottom: 10px;
}

.g4b1-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px;
  margin-bottom: 10px;
}

.g4b1-pill {
  font-size: 11px;
  font-weight: 600;
  background: rgba(222, 184, 135, 0.14);
  color: var(--g4b1-gold);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(222, 184, 135, 0.3);
}

.g4b1-check-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.g4b1-check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: rgba(250, 240, 230, 0.9);
}

.g4b1-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--g4b1-green-bright);
  font-weight: 800;
}

.g4b1-step {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.g4b1-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g4b1-gold), var(--g4b1-gold-deep));
  color: var(--g4b1-ink);
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.g4b1-step-body {
  font-size: 13.5px;
  color: rgba(250, 240, 230, 0.9);
}

.g4b1-step-body strong {
  color: var(--g4b1-cream);
}

/* FAQ */
.g4b1-faq {
  border: 1px solid var(--g4b1-line);
  border-radius: var(--g4b1-radius);
  padding: 12px 14px;
  margin: 0 14px 10px;
  background: rgba(250, 240, 230, 0.03);
}

.g4b1-faq h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--g4b1-gold);
}

.g4b1-faq p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(250, 240, 230, 0.88);
}

/* Inline CTA banner */
.g4b1-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 14px;
  padding: 12px 14px;
  border-radius: var(--g4b1-radius);
  background: linear-gradient(135deg, rgba(0, 100, 0, 0.55), rgba(222, 184, 135, 0.25));
  border: 1px solid var(--g4b1-line-strong);
}

.g4b1-inline-cta-text {
  font-size: 13px;
  color: var(--g4b1-cream);
  font-weight: 600;
}

.g4b1-inline-cta-text small {
  display: block;
  color: var(--g4b1-gold);
  font-weight: 500;
  font-size: 11px;
}

.g4b1-inline-cta button {
  background: var(--g4b1-gold);
  color: var(--g4b1-ink);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.g4b1-inline-cta button:active {
  transform: scale(0.95);
}

/* Promo action grid */
.g4b1-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 14px;
  margin-top: 8px;
}

.g4b1-promo-tile {
  background: linear-gradient(180deg, #1f2a14, #161616);
  border: 1px solid var(--g4b1-line);
  border-radius: var(--g4b1-radius-sm);
  padding: 10px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.g4b1-promo-tile:active {
  transform: scale(0.96);
  border-color: var(--g4b1-gold);
}

.g4b1-promo-tile-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--g4b1-cream);
}

.g4b1-promo-tile-desc {
  font-size: 11px;
  color: var(--g4b1-gold);
  line-height: 1.3;
}

/* Directory */
.g4b1-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 0 14px;
  margin-top: 8px;
}

.g4b1-directory a {
  display: block;
  padding: 8px 10px;
  background: rgba(250, 240, 230, 0.05);
  border: 1px solid var(--g4b1-line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--g4b1-cream);
  font-weight: 600;
}

.g4b1-directory a:active {
  background: rgba(222, 184, 135, 0.15);
  color: var(--g4b1-gold);
}

.g4b1-directory small {
  display: block;
  color: var(--g4b1-gold);
  font-weight: 500;
  font-size: 10.5px;
  margin-top: 2px;
}

/* Disclaimer */
.g4b1-disclaimer {
  margin: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--g4b1-gold);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 11.5px;
  color: rgba(250, 240, 230, 0.7);
}

/* Brand intro */
.g4b1-brand-intro {
  margin: 14px;
  padding: 14px;
  border-radius: var(--g4b1-radius);
  background: linear-gradient(135deg, rgba(0, 100, 0, 0.25), rgba(0, 0, 0, 0.2));
  border: 1px solid var(--g4b1-line-strong);
}

.g4b1-brand-intro h2 {
  font-size: 16px;
}

.g4b1-brand-intro p {
  font-size: 13px;
  color: rgba(250, 240, 230, 0.85);
  margin-bottom: 0;
}

/* ============================ FOOTER ============================ */
.g4b1-footer {
  margin-top: 24px;
  padding: 16px 14px 8px;
  border-top: 1px solid var(--g4b1-line);
  background: #0d1508;
  text-align: center;
}

.g4b1-footer-copy {
  font-size: 11px;
  color: rgba(250, 240, 230, 0.55);
  margin: 0;
}

/* ====================== BOTTOM NAVIGATION ====================== */
.g4b1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--g4b1-max);
  height: var(--g4b1-bottom-h);
  background: linear-gradient(180deg, #131c0c 0%, #0a0f06 100%);
  border-top: 1px solid var(--g4b1-line-strong);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 95;
  padding: 4px 0 env(safe-area-inset-bottom);
}

.g4b1-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(250, 240, 230, 0.62);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 2px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  position: relative;
  transition: color 0.12s ease, transform 0.12s ease;
}

.g4b1-nav-item:active {
  transform: scale(0.92);
}

.g4b1-nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.g4b1-nav-item[data-app354-current="true"] {
  color: var(--g4b1-gold);
}

.g4b1-nav-item[data-app354-current="true"] svg {
  fill: var(--g4b1-gold);
}

.g4b1-nav-item[data-app354-current="true"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--g4b1-gold);
}

.g4b1-nav-item[data-app354-role="promo"] {
  color: var(--g4b1-green-bright);
}

.g4b1-nav-item[data-app354-role="promo"] svg {
  fill: var(--g4b1-green-bright);
}

.g4b1-nav-label {
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

/* Utility */
.g4b1-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Wider phones get a 5th column for game grids */
@media (min-width: 375px) {
  .g4b1-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  body {
    font-size: 15.5px;
  }
}

@media (min-width: 414px) {
  .g4b1-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
