/* ============================================================
   bd-games.click - compact mobile visuals
   Prefix: ca09c1-
   Palette: #C9C9FF | #FFB3FF | #C71585 | #FFCCCB | #2E4057
   Deep colour = background, light colours = text/accent.
   Mobile-first canvas (320-430px). Wide screens keep the
   phone canvas centred. Breakpoint literal 430 is used below.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ca09c1-bg: #2E4057;
  --ca09c1-bg-deep: #243345;
  --ca09c1-bg-soft: #36506b;
  --ca09c1-surface: #3a5670;
  --ca09c1-surface-2: #436281;
  --ca09c1-line: rgba(201, 201, 255, 0.16);

  --ca09c1-text: #FFCCCB;
  --ca09c1-text-soft: #f3e2e4;
  --ca09c1-text-mute: #c9bfc4;

  --ca09c1-acc: #C71585;       /* raspberry - primary brand */
  --ca09c1-acc-2: #FFB3FF;     /* pink - secondary accent */
  --ca09c1-acc-3: #C9C9FF;     /* lavender - tertiary accent */

  --ca09c1-good: #8ad9a8;
  --ca09c1-warn: #ffd27a;

  --ca09c1-radius-btn: 999px;
  --ca09c1-radius-card: 6px;
  --ca09c1-radius-tile: 10px;

  --ca09c1-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.28);
  --ca09c1-shadow-pop: 0 12px 28px rgba(0, 0, 0, 0.36);

  --ca09c1-header-h: 60px;
  --ca09c1-bottomnav-h: 64px;

  --ca09c1-font-bn: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ca09c1-bg-deep);
  color: var(--ca09c1-text);
  font-family: var(--ca09c1-font-bn);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body { overflow-x: hidden; }

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

a {
  color: var(--ca09c1-acc-2);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ca09c1-acc-3);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ca09c1-acc-3);
  letter-spacing: -0.01em;
}

p { margin: 0 0 0.85rem; color: var(--ca09c1-text-soft); }

ul, ol { margin: 0 0 0.85rem; padding-left: 1.15rem; }
li { margin-bottom: 0.35rem; color: var(--ca09c1-text-soft); }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* ---------- Phone canvas shell ---------- */
.ca09c1-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  background: var(--ca09c1-bg);
  min-height: 100vh;
  box-shadow: var(--ca09c1-shadow-pop);
  padding-bottom: calc(var(--ca09c1-bottomnav-h) + 14px);
}

/* ---------- Top header ---------- */
.ca09c1-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  min-height: var(--ca09c1-header-h);
  background: linear-gradient(180deg, #2b425d 0%, var(--ca09c1-bg) 100%);
  border-bottom: 1px solid var(--ca09c1-line);
}

.ca09c1-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.ca09c1-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  background: var(--ca09c1-bg-soft);
}

.ca09c1-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.ca09c1-brand-name strong {
  font-size: 1.02rem;
  color: var(--ca09c1-acc-3);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ca09c1-brand-name span {
  font-size: 0.68rem;
  color: var(--ca09c1-text-mute);
  white-space: nowrap;
}

.ca09c1-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.ca09c1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--ca09c1-radius-btn);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}

.ca09c1-btn:active { transform: scale(0.97); }

.ca09c1-btn-login {
  background: transparent;
  color: var(--ca09c1-acc-3);
  border: 1px solid var(--ca09c1-acc-3);
}

.ca09c1-btn-login:active {
  background: rgba(201, 201, 255, 0.14);
}

.ca09c1-btn-register {
  background: linear-gradient(135deg, var(--ca09c1-acc) 0%, #e23a9c 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(199, 21, 133, 0.35);
}

.ca09c1-btn-register:active {
  background: linear-gradient(135deg, #a90f6c 0%, var(--ca09c1-acc) 100%);
}

.ca09c1-menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ca09c1-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ca09c1-menu-toggle svg { width: 22px; height: 22px; color: var(--ca09c1-acc-3); }

/* ---------- Expandable mobile menu ---------- */
.ca09c1-menu {
  position: sticky;
  top: var(--ca09c1-header-h);
  z-index: 40;
  background: var(--ca09c1-bg-deep);
  border-bottom: 1px solid var(--ca09c1-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.ca09c1-menu[data-open="true"] { max-height: 520px; }

.ca09c1-menu-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
}

.ca09c1-menu-inner a {
  display: block;
  padding: 10px 12px;
  background: var(--ca09c1-surface);
  border-radius: var(--ca09c1-radius-card);
  color: var(--ca09c1-text);
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--ca09c1-line);
}

.ca09c1-menu-inner a:active { background: var(--ca09c1-surface-2); }

/* ---------- Hero carousel ---------- */
.ca09c1-hero {
  margin: 12px;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ca09c1-bg-deep);
  box-shadow: var(--ca09c1-shadow-soft);
}

.ca09c1-carousel {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 14px;
}

.ca09c1-track {
  display: flex;
  width: 100%;
  transition: transform 0.42s ease;
}

.ca09c1-slide {
  flex: 0 0 100%;
  position: relative;
}

.ca09c1-slide img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}

.ca09c1-slide-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 64, 87, 0) 30%, rgba(36, 51, 69, 0.72) 100%);
}

.ca09c1-slide-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
}

.ca09c1-slide-cap strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.ca09c1-slide-cap span {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--ca09c1-acc-2);
}

.ca09c1-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.ca09c1-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.ca09c1-dot[data-active="true"] {
  background: var(--ca09c1-acc-2);
  transform: scale(1.25);
}

/* ---------- Page hero CTA bar ---------- */
.ca09c1-hero-cta {
  margin: 0 12px 14px;
  display: flex;
  gap: 8px;
}

.ca09c1-hero-cta .ca09c1-btn { flex: 1; }

/* ---------- Main / sections ---------- */
.ca09c1-main { padding: 0 12px; }

.ca09c1-section { margin: 22px 0; }

.ca09c1-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ca09c1-line);
}

.ca09c1-section-head h2 {
  margin: 0;
  font-size: 1.06rem;
  color: var(--ca09c1-acc-3);
}

.ca09c1-section-head em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ca09c1-text-mute);
}

.ca09c1-intro {
  background: var(--ca09c1-bg-soft);
  border-left: 3px solid var(--ca09c1-acc);
  border-radius: 0 var(--ca09c1-radius-card) var(--ca09c1-radius-card) 0;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.ca09c1-intro p { margin: 0; font-size: 0.9rem; color: var(--ca09c1-text-soft); }

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

.ca09c1-game {
  display: flex;
  flex-direction: column;
  background: var(--ca09c1-surface);
  border-radius: var(--ca09c1-radius-card);
  overflow: hidden;
  border: 1px solid var(--ca09c1-line);
  transition: transform 0.12s ease, border-color 0.18s ease;
}

.ca09c1-game:active {
  transform: scale(0.96);
  border-color: var(--ca09c1-acc-2);
}

.ca09c1-game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1d2c3c;
  overflow: hidden;
}

.ca09c1-game-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ca09c1-game-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(199, 21, 133, 0.88);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ca09c1-game-name {
  font-size: 0.68rem;
  line-height: 1.18;
  color: var(--ca09c1-text);
  font-weight: 600;
  padding: 5px 6px 6px;
  text-align: center;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Info / content modules ---------- */
.ca09c1-prose {
  background: var(--ca09c1-surface);
  border-radius: var(--ca09c1-radius-tile);
  padding: 14px 14px;
  border: 1px solid var(--ca09c1-line);
}

.ca09c1-prose p { font-size: 0.88rem; }

.ca09c1-prose h3 {
  font-size: 0.98rem;
  margin-top: 0.4rem;
  color: var(--ca09c1-acc-2);
}

.ca09c1-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ca09c1-tile {
  background: var(--ca09c1-surface);
  border-radius: var(--ca09c1-radius-tile);
  padding: 10px 12px;
  border: 1px solid var(--ca09c1-line);
}

.ca09c1-tile h3 { margin: 0 0 4px; font-size: 0.9rem; color: var(--ca09c1-acc-2); }
.ca09c1-tile p { margin: 0; font-size: 0.78rem; color: var(--ca09c1-text-soft); }

/* Testimonials */
.ca09c1-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ca09c1-testimonial {
  background: var(--ca09c1-surface);
  border-radius: var(--ca09c1-radius-tile);
  padding: 12px 14px;
  border: 1px solid var(--ca09c1-line);
  border-left: 3px solid var(--ca09c1-acc-3);
}

.ca09c1-testimonial-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ca09c1-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ca09c1-acc) 0%, var(--ca09c1-acc-2) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ca09c1-testimonial-head strong {
  font-size: 0.86rem;
  color: var(--ca09c1-acc-3);
}

.ca09c1-stars { color: var(--ca09c1-warn); font-size: 0.78rem; margin-left: auto; }

.ca09c1-testimonial p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ca09c1-text-soft);
}

/* Comparison table-like rows */
.ca09c1-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ca09c1-compare-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--ca09c1-surface);
  border-radius: var(--ca09c1-radius-card);
  padding: 10px 12px;
  border: 1px solid var(--ca09c1-line);
}

.ca09c1-compare-row strong {
  font-size: 0.82rem;
  color: var(--ca09c1-acc-2);
}

.ca09c1-compare-row p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ca09c1-text-soft);
}

/* Checklist */
.ca09c1-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.ca09c1-checklist li {
  position: relative;
  padding: 8px 10px 8px 30px;
  background: var(--ca09c1-surface);
  border-radius: var(--ca09c1-radius-card);
  font-size: 0.84rem;
  color: var(--ca09c1-text-soft);
  border: 1px solid var(--ca09c1-line);
}

.ca09c1-checklist li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ca09c1-good);
  box-shadow: 0 0 0 3px rgba(138, 217, 168, 0.18);
}

/* ---------- Extended footer (index only) ---------- */
.ca09c1-extended {
  margin: 26px 12px 16px;
  background: var(--ca09c1-bg-deep);
  border: 1px solid var(--ca09c1-line);
  border-radius: 14px;
  padding: 16px;
}

.ca09c1-extended-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ca09c1-extended-brand .ca09c1-logo {
  width: 44px;
  height: 44px;
}

.ca09c1-extended-brand p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ca09c1-text-soft);
}

.ca09c1-extended h3 {
  margin: 14px 0 8px;
  font-size: 0.92rem;
  color: var(--ca09c1-acc-3);
}

.ca09c1-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.ca09c1-directory a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--ca09c1-surface);
  border-radius: var(--ca09c1-radius-card);
  font-size: 0.78rem;
  color: var(--ca09c1-text);
  border: 1px solid var(--ca09c1-line);
}

.ca09c1-directory a svg { width: 14px; height: 14px; color: var(--ca09c1-acc-2); flex-shrink: 0; }

.ca09c1-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ca09c1-promo-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(199, 21, 133, 0.22) 0%, rgba(255, 179, 255, 0.12) 100%);
  border-radius: var(--ca09c1-radius-card);
  border: 1px solid rgba(255, 179, 255, 0.3);
  color: var(--ca09c1-acc-2);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
}

.ca09c1-promo-entry:active { background: rgba(199, 21, 133, 0.3); }

.ca09c1-promo-entry svg { width: 16px; height: 16px; flex-shrink: 0; }

.ca09c1-disclaimer {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(255, 210, 122, 0.1);
  border-left: 3px solid var(--ca09c1-warn);
  border-radius: 0 var(--ca09c1-radius-card) var(--ca09c1-radius-card) 0;
  font-size: 0.76rem;
  color: var(--ca09c1-text-mute);
}

/* ---------- Copyright bar ---------- */
.ca09c1-copyright {
  text-align: center;
  font-size: 0.74rem;
  color: var(--ca09c1-text-mute);
  padding: 14px 16px calc(var(--ca09c1-bottomnav-h) + 18px);
  margin: 0 12px;
  border-top: 1px solid var(--ca09c1-line);
}

/* ---------- Mobile bottom nav (fixed) ---------- */
.ca09c1-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, var(--ca09c1-bg) 0%, var(--ca09c1-bg-deep) 100%);
  border-top: 1px solid var(--ca09c1-line);
  z-index: 60;
  padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 6px);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.28);
}

.ca09c1-bottomnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 4px 2px;
  color: var(--ca09c1-text-mute);
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.ca09c1-bottomnav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.ca09c1-bottomnav-item:active { background: rgba(201, 201, 255, 0.1); }

.ca09c1-bottomnav-item[data-active="true"] {
  color: var(--ca09c1-acc-2);
}

.ca09c1-bottomnav-item[data-role="promo"] {
  color: var(--ca09c1-acc-2);
}

.ca09c1-bottomnav-item[data-role="promo"] svg {
  fill: var(--ca09c1-acc);
  stroke: var(--ca09c1-acc);
}

/* ---------- Wide screen: keep phone canvas, breathe layout ---------- */
@media (min-width: 430px) {
  .ca09c1-shell {
    margin-top: 16px;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    min-height: calc(100vh - 32px);
  }

  .ca09c1-bottomnav {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .ca09c1-slide img { height: 200px; }
}

@media (min-width: 360px) {
  .ca09c1-game-name { font-size: 0.72rem; }
}

/* ---------- Utility ---------- */
.ca09c1-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;
}

.ca09c1-nowrap { white-space: nowrap; }
