/* ============================================================
 * gk444.cyou - mobile stylesheet
 * Prefix: g865-  | Palette: #191970 #273746 #C0C0C0 #696969
 * Mobile canvas 320-430px; desktop keeps centered mobile canvas.
 * ============================================================ */

:root {
  --g865-bg: #0f1638;
  --g865-bg-deep: #0a0f24;
  --g865-blue: #191970;
  --g865-slate: #273746;
  --g865-slate-2: #1f2c37;
  --g865-silver: #C0C0C0;
  --g865-gray: #696969;
  --g865-gold: #d9b667;
  --g865-gold-soft: #f0d290;
  --g865-text: #e8e8ee;
  --g865-text-dim: #9aa0ad;
  --g865-line: rgba(192, 192, 192, 0.16);
  --g865-card: #1a2540;
  --g865-card-2: #21304a;
  --g865-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --g865-radius: 14px;
  --g865-radius-sm: 10px;
  --g865-max: 460px;
}

* { box-sizing: border-box; }

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

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

/* Centered mobile canvas on wider screens */
body {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(25, 25, 112, 0.55), transparent 70%),
    var(--g865-bg-deep);
  min-height: 100vh;
}

.g865-shell {
  max-width: var(--g865-max);
  margin: 0 auto;
  background: var(--g865-bg);
  position: relative;
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* ============================================================
 * Header - centered identity bar
 * ============================================================ */
.g865-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #142044 0%, #101a3a 100%);
  border-bottom: 1px solid var(--g865-line);
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
}

.g865-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-column: 2;
  text-align: center;
}
.g865-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(217, 182, 103, 0.45);
  background: #fff;
}
.g865-brand-name {
  font-weight: 700;
  color: #fff;
  font-size: 17px;
  letter-spacing: 0.4px;
}
.g865-brand-name span { color: var(--g865-gold); }

.g865-header-actions {
  grid-column: 3;
  display: flex;
  gap: 6px;
  align-items: center;
}
.g865-btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  min-height: 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.g865-btn:active { transform: translateY(1px); }
.g865-btn--primary {
  background: linear-gradient(135deg, #d9b667 0%, #b8923f 100%);
  color: #1a1208;
  box-shadow: 0 3px 10px rgba(217, 182, 103, 0.35);
}
.g865-btn--primary:hover { color: #1a1208; filter: brightness(1.05); }
.g865-btn--ghost {
  background: transparent;
  color: var(--g865-silver);
  border: 1px solid var(--g865-line);
}
.g865-btn--ghost:hover { color: #fff; border-color: var(--g865-gold); }

/* Menu button (left) */
.g865-menu-btn {
  grid-column: 1;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(192, 192, 192, 0.08);
  border: 1px solid var(--g865-line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--g865-silver);
}
.g865-menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--g865-silver);
  position: relative;
}
.g865-menu-btn span:before, .g865-menu-btn span:after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--g865-silver);
}
.g865-menu-btn span:before { top: -6px; }
.g865-menu-btn span:after { top: 6px; }

/* ============================================================
 * Sectioned menu page (off-canvas)
 * ============================================================ */
.g865-mask {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.g865-mask--show { opacity: 1; visibility: visible; }

.g865-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 84%;
  max-width: 360px;
  background: linear-gradient(180deg, #142044 0%, #0f1830 100%);
  z-index: 100;
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding: 16px 14px 28px;
}
.g865-menu--open { transform: translateX(0); }
.g865-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--g865-line);
}
.g865-menu-head img {
  width: 28px; height: 28px; border-radius: 7px; background: #fff;
}
.g865-menu-head strong { color: #fff; font-size: 16px; }
.g865-menu-close {
  background: transparent;
  border: 1px solid var(--g865-line);
  color: var(--g865-silver);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.g865-menu-section {
  margin-bottom: 18px;
}
.g865-menu-section h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g865-gold);
  font-weight: 700;
}
.g865-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--g865-text);
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.g865-menu-link:hover, .g865-menu-link:focus {
  background: rgba(192, 192, 192, 0.08);
  color: #fff;
  transform: translateX(2px);
}
.g865-menu-link .g865-dot-ico {
  width: 8px; height: 8px;
  background: var(--g865-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
 * Hero carousel
 * ============================================================ */
.g865-carousel {
  position: relative;
  margin: 12px 12px 4px;
  border-radius: var(--g865-radius);
  overflow: hidden;
  background: var(--g865-slate);
  box-shadow: var(--g865-shadow);
}
.g865-track { position: relative; height: 170px; }
.g865-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.g865-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.g865-slide--active { opacity: 1; }
.g865-slide-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: linear-gradient(180deg, rgba(10, 15, 36, 0) 0%, rgba(10, 15, 36, 0.85) 100%);
  color: #fff;
  padding: 24px 12px 8px;
  border-radius: 0 0 8px 8px;
  right: 12px;
}
.g865-slide-caption strong {
  display: block;
  font-size: 16px;
  color: var(--g865-gold-soft);
  margin-bottom: 2px;
}
.g865-slide-caption span { font-size: 12px; color: var(--g865-silver); }

.g865-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(10, 15, 36, 0.55);
  border: 1px solid var(--g865-line);
  color: #fff;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.g865-arrow--prev { left: 8px; }
.g865-arrow--next { right: 8px; }

.g865-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 3;
}
.g865-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(192, 192, 192, 0.5);
  cursor: pointer;
  transition: width 0.2s ease;
}
.g865-dot--active { background: var(--g865-gold); width: 18px; border-radius: 4px; }

/* ============================================================
 * Quick category chips
 * ============================================================ */
.g865-chips {
  display: flex;
  gap: 8px;
  padding: 8px 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.g865-chips::-webkit-scrollbar { display: none; }
.g865-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(192, 192, 192, 0.08);
  border: 1px solid var(--g865-line);
  color: var(--g865-silver);
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.g865-chip:hover { color: #fff; }
.g865-chip:active { transform: translateY(-1px); }

/* ============================================================
 * Main content
 * ============================================================ */
.g865-main { padding: 8px 12px 90px; }

.g865-section {
  margin: 18px 0 6px;
}
.g865-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--g865-line);
}
.g865-section-head h2 {
  margin: 0;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.g865-section-head h2 .g865-mark { color: var(--g865-gold); }
.g865-section-head .g865-more { font-size: 12px; color: var(--g865-text-dim); }

/* ============================================================
 * Game grid
 * ============================================================ */
.g865-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.g865-game {
  background: var(--g865-card);
  border: 1px solid var(--g865-line);
  border-radius: var(--g865-radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.g865-game:hover, .g865-game:focus {
  transform: translateY(-2px);
  border-color: rgba(217, 182, 103, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.g865-game-img {
  aspect-ratio: 1 / 1;
  background: #0c1428;
  overflow: hidden;
}
.g865-game-img img { width: 100%; height: 100%; object-fit: cover; }
.g865-game-name {
  padding: 5px 6px 6px;
  font-size: 11px;
  color: var(--g865-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.g865-game--more { display: none; }

.g865-loadmore {
  margin: 12px auto 4px;
  display: block;
  background: rgba(192, 192, 192, 0.06);
  border: 1px dashed var(--g865-line);
  color: var(--g865-silver);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

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

/* ============================================================
 * Info / SEO content cards
 * ============================================================ */
.g865-card {
  background: var(--g865-card);
  border: 1px solid var(--g865-line);
  border-radius: var(--g865-radius);
  padding: 14px;
  margin: 10px 0;
}
.g865-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--g865-gold-soft);
  font-weight: 700;
}
.g865-card p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--g865-text);
  line-height: 1.6;
}
.g865-card ul { margin: 6px 0 0; padding-left: 18px; }
.g865-card li { font-size: 13px; margin-bottom: 5px; color: var(--g865-text-dim); }

.g865-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}
.g865-info-tile {
  background: var(--g865-card-2);
  border: 1px solid var(--g865-line);
  border-radius: var(--g865-radius-sm);
  padding: 10px;
}
.g865-info-tile .g865-tile-ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(217, 182, 103, 0.25), rgba(192, 192, 192, 0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--g865-gold);
  margin-bottom: 6px;
}
.g865-info-tile strong { display: block; color: #fff; font-size: 13px; margin-bottom: 3px; }
.g865-info-tile span { font-size: 11.5px; color: var(--g865-text-dim); }

/* ============================================================
 * CTA band
 * ============================================================ */
.g865-cta {
  background: linear-gradient(135deg, #1f2c5a 0%, #142042 100%);
  border: 1px solid rgba(217, 182, 103, 0.35);
  border-radius: var(--g865-radius);
  padding: 14px;
  margin: 14px 0;
  text-align: center;
}
.g865-cta h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 15px;
}
.g865-cta p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--g865-silver);
}
.g865-cta .g865-btn {
  padding: 10px 24px;
  font-size: 13px;
}

/* ============================================================
 * Extended footer (homepage exclusive)
 * ============================================================ */
.g865-ext-footer {
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--g865-line);
}
.g865-ext-footer .g865-ef-block {
  margin-bottom: 14px;
}
.g865-ext-footer h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--g865-gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.g865-ext-footer p {
  font-size: 12.5px;
  color: var(--g865-text-dim);
  margin: 0 0 6px;
  line-height: 1.6;
}
.g865-ef-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.g865-ef-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  background: rgba(192, 192, 192, 0.05);
  border: 1px solid var(--g865-line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--g865-text);
  transition: transform 0.15s ease, background 0.15s ease;
}
.g865-ef-list a:hover { color: #fff; background: rgba(217, 182, 103, 0.08); transform: translateX(2px); }
.g865-ef-list a .g865-ef-ico {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(217, 182, 103, 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--g865-gold);
}

.g865-ef-promos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.g865-ef-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px;
  background: rgba(192, 192, 192, 0.05);
  border: 1px solid var(--g865-line);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.g865-ef-promo:hover { transform: translateY(-2px); border-color: rgba(217, 182, 103, 0.45); }
.g865-ef-promo .g865-ef-pico {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(217, 182, 103, 0.35), rgba(192, 192, 192, 0.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: #fff;
}
.g865-ef-promo span { font-size: 10px; color: var(--g865-silver); line-height: 1.2; }

.g865-disclaimer {
  font-size: 11.5px;
  color: var(--g865-text-dim);
  background: rgba(105, 105, 105, 0.15);
  border-left: 3px solid var(--g865-gray);
  padding: 10px 12px;
  border-radius: 6px;
  line-height: 1.55;
}

/* ============================================================
 * Footer (universal)
 * ============================================================ */
.g865-footer {
  padding: 14px 12px 18px;
  text-align: center;
  border-top: 1px solid var(--g865-line);
  background: var(--g865-bg-deep);
}
.g865-footer p {
  margin: 0;
  font-size: 11.5px;
  color: var(--g865-text-dim);
}

/* ============================================================
 * Bottom navigation - outlined functional bar
 * ============================================================ */
.g865-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(20, 28, 56, 0.98) 0%, rgba(10, 15, 36, 1) 100%);
  border-top: 1px solid var(--g865-line);
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  max-width: var(--g865-max);
  margin: 0 auto;
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.45);
}
.g865-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 2px 2px;
  color: var(--g865-text-dim);
  font-size: 10px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  transition: transform 0.18s ease, color 0.18s ease;
}
.g865-nav-item:hover { color: #fff; }
.g865-nav-item:active { transform: translateY(-1px); }
.g865-nav-ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(192, 192, 192, 0.08);
  border: 1px solid var(--g865-line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.g865-nav-ico svg { width: 16px; height: 16px; display: block; }
.g865-nav-label { font-weight: 600; letter-spacing: 0.2px; }
.g865-nav-item--active {
  color: #fff;
}
.g865-nav-item--active .g865-nav-ico {
  background: linear-gradient(135deg, rgba(217, 182, 103, 0.32), rgba(192, 192, 192, 0.12));
  border-color: rgba(217, 182, 103, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(217, 182, 103, 0.25);
}

/* ============================================================
 * Helpers
 * ============================================================ */
.g865-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;
}
.g865-h1 {
  font-size: 20px;
  color: #fff;
  margin: 10px 2px 6px;
  font-weight: 800;
  line-height: 1.3;
}
.g865-h1 span { color: var(--g865-gold); }
.g865-lead {
  font-size: 13px;
  color: var(--g865-text-dim);
  margin: 0 2px 12px;
  line-height: 1.6;
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--g865-gold);
  outline-offset: 2px;
}
