/* ==========================================================================
   bc777.click - Core stylesheet (basefiles)
   All custom classes / variables use the `g81c-` prefix.
   Palette: #2C2C2C / #6495ED / #BAE1FF / #5F9EA0 / #FFB3FF
   Canvas: 320-430px mobile-first; centered phone canvas on wider screens.
   ========================================================================== */

:root {
  --g81c-bg: #2C2C2C;
  --g81c-bg-2: #1f1f1f;
  --g81c-bg-3: #3a3a3a;
  --g81c-primary: #6495ED;
  --g81c-primary-dark: #4a78d0;
  --g81c-light: #BAE1FF;
  --g81c-teal: #5F9EA0;
  --g81c-pink: #FFB3FF;
  --g81c-text: #f4f7ff;
  --g81c-text-muted: #b9c2d4;
  --g81c-text-dim: #8c93a6;
  --g81c-border: rgba(186, 225, 255, 0.14);
  --g81c-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --g81c-radius: 14px;
  --g81c-radius-sm: 10px;
  --g81c-maxw: 480px;
  --g81c-header-h: 58px;
  --g81c-bottom-h: 64px;
  --g81c-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 50% -120px, rgba(100, 149, 237, 0.22), transparent 60%),
    radial-gradient(700px 400px at 110% 10%, rgba(255, 179, 255, 0.10), transparent 60%),
    var(--g81c-bg);
  /* Reserve space for fixed top header + bottom dock */
  padding-top: var(--g81c-header-h);
  padding-bottom: calc(var(--g81c-bottom-h) + 24px + var(--g81c-safe-bottom));
}

a { color: var(--g81c-light); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--g81c-pink); outline-offset: 2px; border-radius: 4px; }

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

/* Centered phone canvas on wider screens */
.g81c-shell {
  width: 100%;
  max-width: var(--g81c-maxw);
  margin: 0 auto;
  padding: 0 12px;
}

/* ===================== Header (minimal action band) ===================== */
.g81c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--g81c-header-h);
  z-index: 60;
  background: linear-gradient(180deg, rgba(31,31,31,0.97) 0%, rgba(44,44,44,0.93) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g81c-border);
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.g81c-header__inner {
  max-width: var(--g81c-maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

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

.g81c-brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--g81c-bg-3);
  border: 1px solid var(--g81c-border);
  flex: 0 0 auto;
}

.g81c-brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.g81c-brand__name b {
  font-size: 16px;
  letter-spacing: 0.4px;
  color: var(--g81c-text);
  white-space: nowrap;
}
.g81c-brand__name span {
  font-size: 10px;
  color: var(--g81c-light);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.g81c-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.g81c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.g81c-btn:active { transform: translateY(1px) scale(0.98); }
.g81c-btn--primary {
  background: linear-gradient(135deg, var(--g81c-primary) 0%, var(--g81c-teal) 100%);
  color: #0c1226;
  box-shadow: 0 6px 16px rgba(100,149,237,0.35);
}
.g81c-btn--ghost {
  background: rgba(186, 225, 255, 0.08);
  color: var(--g81c-light);
  border-color: var(--g81c-border);
}
.g81c-btn--pink {
  background: linear-gradient(135deg, var(--g81c-pink) 0%, #d27ad8 100%);
  color: #2a0e2e;
  box-shadow: 0 6px 16px rgba(255, 179, 255, 0.32);
}

.g81c-iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(186,225,255,0.08);
  border: 1px solid var(--g81c-border);
  color: var(--g81c-light);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.2s ease, transform 0.12s ease;
}
.g81c-iconbtn:active { transform: scale(0.95); }
.g81c-iconbtn svg { width: 18px; height: 18px; }

/* ===================== Compact route panel (menu) ===================== */
.g81c-menu {
  position: fixed;
  top: var(--g81c-header-h);
  right: 0;
  width: min(82vw, 320px);
  background: linear-gradient(180deg, rgba(31,31,31,0.99) 0%, rgba(40,40,40,0.99) 100%);
  border-left: 1px solid var(--g81c-border);
  border-bottom: 1px solid var(--g81c-border);
  border-radius: 0 0 0 18px;
  padding: 14px 12px 18px;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  z-index: 55;
  box-shadow: var(--g81c-shadow);
  max-height: calc(100vh - var(--g81c-header-h));
  overflow-y: auto;
}
.g81c-menu--open { transform: translateX(0); }

.g81c-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.g81c-menu__head b { color: var(--g81c-light); font-size: 14px; letter-spacing: 0.6px; }

.g81c-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.g81c-menu__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: var(--g81c-radius-sm);
  background: rgba(186,225,255,0.05);
  border: 1px solid var(--g81c-border);
  color: var(--g81c-text);
  font-size: 13px;
  font-weight: 600;
  min-height: 56px;
}
.g81c-menu__item em {
  font-style: normal;
  font-size: 10px;
  color: var(--g81c-text-dim);
  font-weight: 500;
}
.g81c-menu__item:active { background: rgba(100,149,237,0.18); }
.g81c-menu__item--promo {
  background: linear-gradient(135deg, rgba(100,149,237,0.22), rgba(255,179,255,0.18));
  color: #fff;
}
.g81c-menu__promo-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.g81c-menu__promo-row .g81c-btn { flex: 1; }

/* ===================== Carousel ===================== */
.g81c-carousel {
  position: relative;
  border-radius: var(--g81c-radius);
  overflow: hidden;
  box-shadow: var(--g81c-shadow);
  margin: 14px 0 6px;
  background: var(--g81c-bg-2);
}
.g81c-carousel__viewport {
  overflow: hidden;
  border-radius: var(--g81c-radius);
}
.g81c-carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.g81c-carousel__slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.g81c-carousel__slide img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}
.g81c-carousel__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  padding: 24px 12px 10px;
  border-radius: 0 0 var(--g81c-radius) var(--g81c-radius);
  color: #fff;
}
.g81c-carousel__caption b {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--g81c-light);
}
.g81c-carousel__caption span {
  font-size: 11px;
  color: var(--g81c-text-muted);
}

.g81c-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  z-index: 2;
}
.g81c-carousel__nav--prev { left: 8px; }
.g81c-carousel__nav--next { right: 8px; }

.g81c-carousel__dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.g81c-carousel__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}
.g81c-carousel__dot--active {
  background: var(--g81c-pink);
  width: 18px;
  border-radius: 4px;
}

/* ===================== Category nav ===================== */
.g81c-catnav {
  position: sticky;
  top: var(--g81c-header-h);
  z-index: 30;
  background: linear-gradient(180deg, rgba(44,44,44,0.96) 0%, rgba(44,44,44,0.88) 100%);
  backdrop-filter: blur(6px);
  margin: 8px -12px 6px;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--g81c-border);
}
.g81c-catnav::-webkit-scrollbar { display: none; }
.g81c-catnav__btn {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(186,225,255,0.06);
  border: 1px solid var(--g81c-border);
  color: var(--g81c-text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.g81c-catnav__btn--active {
  background: var(--g81c-primary);
  color: #0c1226;
  border-color: transparent;
}

/* ===================== Section heading ===================== */
.g81c-section {
  margin: 18px 0 6px;
}
.g81c-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.g81c-section__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--g81c-text);
  position: relative;
  padding-left: 10px;
  letter-spacing: 0.2px;
}
.g81c-section__title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--g81c-pink), var(--g81c-primary));
}
.g81c-section__more {
  font-size: 12px;
  color: var(--g81c-light);
  font-weight: 600;
}

/* ===================== Game grid ===================== */
.g81c-gamegrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.g81c-gamecard {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(186,225,255,0.05);
  border: 1px solid var(--g81c-border);
  border-radius: var(--g81c-radius-sm);
  padding: 6px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
  min-width: 0;
}
.g81c-gamecard:active {
  transform: scale(0.97);
  border-color: var(--g81c-primary);
  background: rgba(100,149,237,0.15);
}
.g81c-gamecard__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--g81c-bg-3);
  margin-bottom: 5px;
}
.g81c-gamecard__name {
  font-size: 11px;
  line-height: 1.25;
  color: var(--g81c-text);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
  word-break: break-word;
}
.g81c-cat-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--g81c-teal);
  background: rgba(95,158,160,0.16);
  border-radius: 999px;
  padding: 1px 8px;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ===================== Promo modules ===================== */
.g81c-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.g81c-promo-card {
  padding: 12px;
  border-radius: var(--g81c-radius);
  background: linear-gradient(135deg, rgba(100,149,237,0.18) 0%, rgba(255,179,255,0.14) 100%);
  border: 1px solid var(--g81c-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.g81c-promo-card:active { transform: scale(0.97); }
.g81c-promo-card b { color: #fff; font-size: 14px; }
.g81c-promo-card span { color: var(--g81c-text-muted); font-size: 11px; }
.g81c-promo-card .g81c-btn { align-self: flex-start; margin-top: 4px; padding: 5px 12px; font-size: 12px; }

/* Payment / partner strip */
.g81c-paystrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.g81c-paystrip__item {
  background: rgba(186,225,255,0.05);
  border: 1px solid var(--g81c-border);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--g81c-light);
}

/* Testimonials */
.g81c-review {
  padding: 12px;
  border-radius: var(--g81c-radius);
  background: rgba(186,225,255,0.05);
  border: 1px solid var(--g81c-border);
  margin-bottom: 8px;
}
.g81c-review__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.g81c-review__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g81c-primary), var(--g81c-pink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0c1226;
  font-weight: 800;
  font-size: 14px;
}
.g81c-review__name { font-size: 13px; color: var(--g81c-text); font-weight: 700; }
.g81c-review__stars { color: var(--g81c-pink); font-size: 12px; }
.g81c-review__text { font-size: 13px; color: var(--g81c-text-muted); margin: 0; }

/* How to play steps */
.g81c-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g81c-step {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(186,225,255,0.04);
  border: 1px solid var(--g81c-border);
  border-radius: var(--g81c-radius-sm);
}
.g81c-step__num {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--g81c-primary);
  color: #0c1226;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.g81c-step b { color: var(--g81c-text); font-size: 14px; display: block; margin-bottom: 2px; }
.g81c-step p { margin: 0; color: var(--g81c-text-muted); font-size: 12px; }

/* App download */
.g81c-appcard {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--g81c-radius);
  background: linear-gradient(135deg, rgba(95,158,160,0.18) 0%, rgba(100,149,237,0.22) 100%);
  border: 1px solid var(--g81c-border);
}
.g81c-appcard__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex: 0 0 auto;
}
.g81c-appcard__body { flex: 1; min-width: 0; }
.g81c-appcard__body b { color: #fff; font-size: 15px; display: block; }
.g81c-appcard__body span { color: var(--g81c-text-muted); font-size: 12px; }

/* ===================== Extended footer ===================== */
.g81c-extfooter {
  margin-top: 22px;
  padding: 18px 14px 6px;
  background: rgba(31,31,31,0.7);
  border: 1px solid var(--g81c-border);
  border-radius: var(--g81c-radius) var(--g81c-radius) 0 0;
}
.g81c-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.g81c-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  background: rgba(186,225,255,0.05);
  border: 1px solid var(--g81c-border);
  border-radius: 10px;
  font-size: 11px;
  color: var(--g81c-light);
  text-align: center;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.2s ease;
}
.g81c-shortcut:active { transform: scale(0.96); background: rgba(100,149,237,0.18); }
.g81c-shortcut svg { width: 18px; height: 18px; color: var(--g81c-pink); }

.g81c-brand-block {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: var(--g81c-radius-sm);
  background: rgba(186,225,255,0.04);
  border: 1px solid var(--g81c-border);
}
.g81c-brand-block b { color: var(--g81c-light); font-size: 14px; }
.g81c-brand-block p { margin: 4px 0 0; color: var(--g81c-text-muted); font-size: 12px; }

.g81c-promo-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.g81c-promo-actions .g81c-btn { width: 100%; padding: 8px 6px; font-size: 12px; }

.g81c-disclaimer {
  font-size: 11px;
  color: var(--g81c-text-dim);
  background: rgba(0,0,0,0.25);
  padding: 10px;
  border-radius: 8px;
  border-left: 3px solid var(--g81c-pink);
  margin-bottom: 6px;
}

/* ===================== Bottom dock ===================== */
.g81c-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--g81c-bottom-h) + var(--g81c-safe-bottom));
  padding-bottom: var(--g81c-safe-bottom);
  background: linear-gradient(180deg, rgba(31,31,31,0.98) 0%, rgba(20,20,20,1) 100%);
  border-top: 1px solid var(--g81c-border);
  display: flex;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.g81c-bottom__inner {
  max-width: var(--g81c-maxw);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: stretch;
}
.g81c-navbtn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--g81c-text-dim);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 2px;
  transition: color 0.2s ease, transform 0.12s ease;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.g81c-navbtn:active { transform: scale(0.94); }
.g81c-navbtn svg { width: 22px; height: 22px; }
.g81c-navbtn--active {
  color: var(--g81c-light);
}
.g81c-navbtn--active svg { color: var(--g81c-pink); }
.g81c-navbtn--promo {
  position: relative;
}
.g81c-navbtn--promo::after {
  content: "";
  position: absolute;
  top: 4px; right: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--g81c-pink);
  box-shadow: 0 0 0 2px rgba(255,179,255,0.25);
}
.g81c-navbtn--center {
  position: relative;
  top: -12px;
  background: linear-gradient(135deg, var(--g81c-primary), var(--g81c-teal));
  color: #0c1226;
  border-radius: 18px;
  margin: 0 6px;
  box-shadow: 0 6px 14px rgba(100,149,237,0.4);
  height: 52px;
}
.g81c-navbtn--center svg { width: 24px; height: 24px; color: #0c1226; }

/* ===================== Footer copyright ===================== */
.g81c-copyright {
  text-align: center;
  font-size: 11px;
  color: var(--g81c-text-dim);
  padding: 6px 8px 4px;
  line-height: 1.5;
}
.g81c-copyright a { color: var(--g81c-text-muted); }

/* ===================== Press micro-interaction ===================== */
.g81c-press { transform: scale(0.96); opacity: 0.92; }

/* ===================== Utility ===================== */
.g81c-lede {
  font-size: 13px;
  color: var(--g81c-text-muted);
  margin: 0 0 4px;
  line-height: 1.6;
}
.g81c-prose {
  font-size: 13px;
  color: var(--g81c-text-muted);
  line-height: 1.7;
}
.g81c-prose a { color: var(--g81c-light); border-bottom: 1px dashed rgba(186,225,255,0.4); }
.g81c-prose h2 {
  color: var(--g81c-text);
  font-size: 16px;
  margin: 16px 0 6px;
  font-weight: 800;
}
.g81c-prose h3 {
  color: var(--g81c-light);
  font-size: 14px;
  margin: 12px 0 4px;
  font-weight: 700;
}
.g81c-prose p { margin: 0 0 8px; }
.g81c-prose ul { margin: 0 0 8px; padding-left: 18px; }
.g81c-prose li { margin-bottom: 3px; }

/* Slightly wider grids on 375-430px screens */
@media (min-width: 360px) {
  .g81c-gamegrid { gap: 9px; }
}
@media (min-width: 400px) {
  .g81c-gamegrid { grid-template-columns: repeat(5, 1fr); }
  .g81c-promo-grid { grid-template-columns: repeat(3, 1fr); }
  .g81c-promo-actions { grid-template-columns: repeat(3, 1fr); }
  .g81c-shortcuts { grid-template-columns: repeat(6, 1fr); }
  .g81c-carousel__slide img { height: 188px; }
  body { font-size: 15.5px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
