/*!
 * ck44 betapp - mobile-first gaming UI
 * Class prefix: pgbc-
 * Palette: #333333 base / #2F2F2F surface + warm gold accents
 * Canvas: 320-430px. Wider screens keep the mobile canvas centered.
 */

:root {
  --pgbc-bg: #333333;
  --pgbc-bg-deep: #2a2a2a;
  --pgbc-surface: #2F2F2F;
  --pgbc-surface-2: #3a3a3a;
  --pgbc-line: #434343;
  --pgbc-text: #f6f1e7;
  --pgbc-text-soft: #c9c1b3;
  --pgbc-text-mute: #9a9488;
  --pgbc-gold: #e7c873;
  --pgbc-gold-soft: #c9a35a;
  --pgbc-amber: #ff9f43;
  --pgbc-rose: #d65b6a;
  --pgbc-emerald: #4bae7f;
  --pgbc-radius: 14px;
  --pgbc-radius-sm: 10px;
  --pgbc-header-h: 116px;
  --pgbc-bottom-h: 64px;
  --pgbc-spy-h: 50px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--pgbc-bg);
  color: var(--pgbc-text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  /* Mobile canvas lock on wide screens */
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pgbc-gold); text-decoration: none; }
a:hover, a:focus { color: var(--pgbc-amber); }

.pgbc-lock { overflow: hidden; }

/* ============ HEADER ============ */
.pgbc-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #3a3a3a 0%, var(--pgbc-bg) 100%);
  border-bottom: 1px solid var(--pgbc-line);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.pgbc-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}
.pgbc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.pgbc-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--pgbc-surface-2);
  border: 1px solid var(--pgbc-gold-soft);
  flex-shrink: 0;
}
.pgbc-brand-text { min-width: 0; }
.pgbc-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--pgbc-gold);
  letter-spacing: .2px;
  line-height: 1.1;
}
.pgbc-brand-tag {
  font-size: 11px;
  color: var(--pgbc-text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pgbc-header-actions { display: flex; gap: 6px; }
.pgbc-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  color: var(--pgbc-text);
  background: var(--pgbc-surface-2);
}
.pgbc-btn:active { transform: scale(.95); }
.pgbc-btn--ghost { background: transparent; border: 1px solid var(--pgbc-line); color: var(--pgbc-text-soft); }
.pgbc-btn--gold {
  background: linear-gradient(135deg, var(--pgbc-gold) 0%, var(--pgbc-gold-soft) 100%);
  color: #2a1d05;
  box-shadow: 0 4px 10px rgba(231,200,115,.25);
}
.pgbc-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  background: var(--pgbc-surface-2);
  border: 1px solid var(--pgbc-line);
  color: var(--pgbc-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pgbc-icon-btn svg { width: 20px; height: 20px; }

/* Second row: nav strip + menu toggle (two-layer action header) */
.pgbc-header-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pgbc-header-strip::-webkit-scrollbar { display: none; }
.pgbc-strip-link {
  font-size: 12.5px;
  color: var(--pgbc-text-soft);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pgbc-strip-link:hover { background: var(--pgbc-surface-2); color: var(--pgbc-gold); }
.pgbc-menu-toggle {
  margin-left: auto;
  flex-shrink: 0;
}

/* ============ SIDE DRAWER ============ */
.pgbc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 80;
}
.pgbc-overlay--on { opacity: 1; pointer-events: auto; }
.pgbc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 82%;
  max-width: 320px;
  background: var(--pgbc-surface);
  z-index: 90;
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.22,.65,.36,1);
  padding: 18px 16px;
  overflow-y: auto;
  border-left: 1px solid var(--pgbc-line);
  box-shadow: -10px 0 30px rgba(0,0,0,.4);
}
.pgbc-drawer--open { transform: translateX(0); }
.pgbc-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.pgbc-drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--pgbc-gold);
  margin: 0;
  flex: 1;
}
.pgbc-drawer-section { margin: 10px 0 18px; }
.pgbc-drawer-sec-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--pgbc-text-mute);
  margin: 0 0 8px;
}
.pgbc-drawer-link {
  display: block;
  padding: 11px 12px;
  border-radius: var(--pgbc-radius-sm);
  color: var(--pgbc-text);
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
}
.pgbc-drawer-link:hover {
  background: var(--pgbc-surface-2);
  border-color: var(--pgbc-line);
}
.pgbc-drawer-cta {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.pgbc-drawer-cta .pgbc-btn { flex: 1; }

/* ============ MAIN ============ */
.pgbc-main {
  padding-bottom: calc(var(--pgbc-bottom-h) + 18px);
}
.pgbc-section {
  padding: 18px 12px 6px;
}
.pgbc-section-head {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}
.pgbc-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--pgbc-gold);
  margin: 0;
  line-height: 1.2;
  position: relative;
  padding-left: 12px;
}
.pgbc-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--pgbc-gold), var(--pgbc-gold-soft));
}
.pgbc-section-sub {
  font-size: 12px;
  color: var(--pgbc-text-mute);
  margin: 2px 0 0;
}

/* ============ HERO CAROUSEL ============ */
.pgbc-hero-wrap {
  padding: 12px 12px 4px;
}
.pgbc-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pgbc-surface);
  border: 1px solid var(--pgbc-line);
}
.pgbc-hero-track {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 220px;
}
.pgbc-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  cursor: pointer;
}
.pgbc-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pgbc-hero-slide--active { opacity: 1; }
.pgbc-hero-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.78) 100%);
  color: #fff;
  padding: 26px 12px 10px;
  border-radius: 0 0 14px 14px;
  pointer-events: none;
}
.pgbc-hero-caption strong {
  display: block;
  font-size: 16px;
  color: var(--pgbc-gold);
  line-height: 1.25;
}
.pgbc-hero-caption span { font-size: 12px; color: var(--pgbc-text-soft); }

.pgbc-hero-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 0 4px;
  position: relative;
}
.pgbc-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pgbc-line);
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.pgbc-hero-dot--active {
  background: var(--pgbc-gold);
  width: 22px;
  border-radius: 4px;
}
/* Sliding indicator micro-interaction */
.pgbc-hero-indicator-wrap {
  position: relative;
  height: 4px;
  width: 80px;
  margin: 0 auto 8px;
  background: var(--pgbc-line);
  border-radius: 2px;
  overflow: hidden;
}
.pgbc-hero-indicator {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--pgbc-gold), var(--pgbc-amber));
  transition: transform .45s cubic-bezier(.22,.65,.36,1);
  will-change: transform;
}

/* ============ SPY CHIPS ============ */
.pgbc-spy-bar {
  position: sticky;
  top: var(--pgbc-header-h);
  z-index: 30;
  background: var(--pgbc-bg-deep);
  border-top: 1px solid var(--pgbc-line);
  border-bottom: 1px solid var(--pgbc-line);
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  height: var(--pgbc-spy-h);
  align-items: center;
}
.pgbc-spy-bar::-webkit-scrollbar { display: none; }
.pgbc-spy-chip {
  flex-shrink: 0;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pgbc-text-soft);
  background: var(--pgbc-surface-2);
  border-radius: 999px;
  border: 1px solid var(--pgbc-line);
  cursor: pointer;
  white-space: nowrap;
}
.pgbc-spy-chip--active {
  background: linear-gradient(135deg, var(--pgbc-gold), var(--pgbc-gold-soft));
  color: #2a1d05;
  border-color: var(--pgbc-gold);
}

/* ============ GAME GRID ============ */
.pgbc-game-block { padding: 14px 10px 4px; }
.pgbc-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 2px 10px;
}
.pgbc-block-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--pgbc-gold);
  margin: 0;
}
.pgbc-block-pill {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(231,200,115,.12);
  color: var(--pgbc-gold);
  border: 1px solid rgba(231,200,115,.25);
  white-space: nowrap;
}
.pgbc-block-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--pgbc-text-soft);
}
.pgbc-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pgbc-game-card {
  background: var(--pgbc-surface);
  border: 1px solid var(--pgbc-line);
  border-radius: var(--pgbc-radius-sm);
  padding: 6px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pgbc-game-card:hover, .pgbc-game-card:focus {
  transform: translateY(-2px);
  border-color: var(--pgbc-gold-soft);
  background: var(--pgbc-surface-2);
}
.pgbc-game-card:active { transform: scale(.96); }
.pgbc-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--pgbc-bg-deep);
  border: 1px solid var(--pgbc-line);
}
.pgbc-game-name {
  font-size: 11.5px;
  color: var(--pgbc-text-soft);
  font-weight: 500;
  line-height: 1.2;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pgbc-hot-badge {
  position: relative;
}
.pgbc-hot-badge::after {
  content: "HOT";
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--pgbc-rose);
  color: #fff;
  letter-spacing: .04em;
}

/* 5-col on slightly wider mobile canvas */
@media (min-width: 360px) {
  .pgbc-game-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 395px) {
  .pgbc-game-grid { grid-template-columns: repeat(5, 1fr); }
  .pgbc-game-name { font-size: 11px; }
}

/* ============ PROMO BANNER STRIP ============ */
.pgbc-promo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 4px 0 8px;
}
.pgbc-promo-tile {
  position: relative;
  border-radius: var(--pgbc-radius);
  overflow: hidden;
  background: var(--pgbc-surface);
  border: 1px solid var(--pgbc-line);
  padding: 12px;
  cursor: pointer;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pgbc-promo-tile strong { font-size: 14px; color: var(--pgbc-gold); line-height: 1.25; }
.pgbc-promo-tile span { font-size: 11px; color: var(--pgbc-text-mute); }
.pgbc-promo-tile .pgbc-tile-cta {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--pgbc-amber);
  margin-top: 6px;
}

/* ============ INFO CARDS ============ */
.pgbc-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pgbc-info-card {
  background: var(--pgbc-surface);
  border: 1px solid var(--pgbc-line);
  border-radius: var(--pgbc-radius);
  padding: 12px;
}
.pgbc-info-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--pgbc-gold);
}
.pgbc-info-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--pgbc-text-soft);
  line-height: 1.5;
}

.pgbc-prose {
  background: var(--pgbc-surface);
  border: 1px solid var(--pgbc-line);
  border-radius: var(--pgbc-radius);
  padding: 14px;
  margin: 6px 0 10px;
}
.pgbc-prose h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--pgbc-gold);
}
.pgbc-prose p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--pgbc-text-soft);
  line-height: 1.65;
}
.pgbc-prose p:last-child { margin-bottom: 0; }
.pgbc-prose a { color: var(--pgbc-amber); border-bottom: 1px dashed rgba(255,159,67,.4); }

/* ============ TESTIMONIALS ============ */
.pgbc-reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pgbc-review {
  background: var(--pgbc-surface);
  border: 1px solid var(--pgbc-line);
  border-radius: var(--pgbc-radius-sm);
  padding: 10px;
}
.pgbc-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.pgbc-review-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pgbc-gold), var(--pgbc-amber));
  display: flex; align-items: center; justify-content: center;
  color: #2a1d05; font-weight: 800; font-size: 12px;
}
.pgbc-review-name { font-size: 12px; font-weight: 700; color: var(--pgbc-text); }
.pgbc-review-stars { color: var(--pgbc-gold); font-size: 11px; margin-left: auto; }
.pgbc-review-text { font-size: 12px; color: var(--pgbc-text-soft); line-height: 1.5; }

/* ============ GUIDE STEPS ============ */
.pgbc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pgbc-step {
  display: flex;
  gap: 10px;
  background: var(--pgbc-surface);
  border: 1px solid var(--pgbc-line);
  border-radius: var(--pgbc-radius-sm);
  padding: 10px 12px;
  align-items: flex-start;
}
.pgbc-step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pgbc-gold), var(--pgbc-gold-soft));
  color: #2a1d05;
  font-weight: 800;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.pgbc-step-body { font-size: 12.5px; color: var(--pgbc-text-soft); line-height: 1.5; }
.pgbc-step-body strong { color: var(--pgbc-text); display: block; font-size: 13px; margin-bottom: 2px; }

/* ============ EXTENDED FOOTER ============ */
.pgbc-ext-footer {
  margin: 14px 10px 6px;
  background: var(--pgbc-surface);
  border: 1px solid var(--pgbc-line);
  border-radius: var(--pgbc-radius);
  padding: 14px;
}
.pgbc-ext-block { margin-bottom: 14px; }
.pgbc-ext-block:last-child { margin-bottom: 0; }
.pgbc-ext-block h4 {
  font-size: 13px;
  color: var(--pgbc-gold);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pgbc-ext-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.pgbc-ext-list li a {
  display: block;
  font-size: 12px;
  color: var(--pgbc-text-soft);
  padding: 6px 8px;
  background: var(--pgbc-bg-deep);
  border: 1px solid var(--pgbc-line);
  border-radius: 8px;
  line-height: 1.3;
}
.pgbc-ext-list li a:hover { color: var(--pgbc-gold); border-color: var(--pgbc-gold-soft); }
.pgbc-ext-brand p {
  font-size: 12.5px;
  color: var(--pgbc-text-soft);
  line-height: 1.6;
  margin: 0;
}
.pgbc-promo-cta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.pgbc-promo-cta-row .pgbc-btn { font-size: 12px; padding: 8px 10px; min-height: 38px; }
.pgbc-disclaimer {
  font-size: 11px;
  color: var(--pgbc-text-mute);
  line-height: 1.55;
  padding-top: 10px;
  border-top: 1px dashed var(--pgbc-line);
}

/* ============ FOOTER COPYRIGHT ============ */
.pgbc-footer {
  padding: 14px 14px calc(var(--pgbc-bottom-h) + 14px);
  text-align: center;
  font-size: 11.5px;
  color: var(--pgbc-text-mute);
}
.pgbc-footer-brand { color: var(--pgbc-gold); font-weight: 700; }

/* ============ BOTTOM NAV (outlined functional bar) ============ */
.pgbc-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: var(--pgbc-bottom-h);
  background: linear-gradient(180deg, var(--pgbc-bg-deep) 0%, #1f1f1f 100%);
  border-top: 1px solid var(--pgbc-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 70;
  /* outlined functional bar: inner stroke ring */
  box-shadow: 0 -6px 18px rgba(0,0,0,.35);
}
.pgbc-bottom::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  top: 6px; bottom: 6px;
  border: 1px solid var(--pgbc-line);
  border-radius: 14px;
  pointer-events: none;
}
.pgbc-bottom-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--pgbc-text-mute);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 2px;
  min-height: 44px;
  z-index: 1;
}
.pgbc-bottom-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.pgbc-bottom-btn--promo svg { fill: currentColor; stroke: none; }
.pgbc-bottom-btn--active {
  color: var(--pgbc-gold);
}
/* Active = background carrier block */
.pgbc-bottom-btn--active::after {
  content: "";
  position: absolute;
  inset: 4px 8px;
  background: rgba(231,200,115,.14);
  border: 1px solid rgba(231,200,115,.35);
  border-radius: 10px;
  z-index: -1;
}
.pgbc-bottom-btn:active { transform: scale(.94); }
.pgbc-bottom-label { line-height: 1; }
.pgbc-bottom-btn--promo .pgbc-bottom-label { color: var(--pgbc-amber); }

/* ============ UTILITIES ============ */
.pgbc-container { padding: 0 12px; }
.pgbc-hidden { display: none !important; }
.pgbc-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.pgbc-pill-link {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--pgbc-surface-2);
  color: var(--pgbc-gold);
  border: 1px solid var(--pgbc-line);
}
