/* ============================================================
   BD 999 - bd999.cyou - Core stylesheet (prefix: gded-)
   Bengali (bn-BD) mobile-first casino gaming site.
   Palette: #212F3D | #6F4E37 | #F5DEB3 | #CCCCCC
   ============================================================ */

:root {
  /* Palette - deep = background, light = text */
  --gded-bg: #212F3D;
  --gded-bg-deep: #18242F;
  --gded-bg-soft: #28384A;
  --gded-surface: #2C3E50;
  --gded-surface-2: #34495E;
  --gded-primary: #6F4E37;
  --gded-primary-soft: #8A6549;
  --gded-accent: #F5DEB3;
  --gded-gold: #D4AF37;
  --gded-gold-2: #E8C56C;
  --gded-text: #CCCCCC;
  --gded-text-2: #E6E6E6;
  --gded-text-bright: #F5DEB3;
  --gded-white: #FFFFFF;
  --gded-success: #27AE60;
  --gded-warning: #E67E22;
  --gded-danger: #C0392B;
  --gded-line: rgba(245, 222, 179, 0.14);
  --gded-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --gded-shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.5);
  --gded-radius: 1.2rem;
  --gded-radius-sm: 0.8rem;
  --gded-radius-lg: 1.8rem;
  --gded-header-h: 5.6rem;
  --gded-bottom-h: 6.4rem;
  --gded-wrap: 430px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'SolaimanLipi', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #243447 0%, var(--gded-bg) 55%, var(--gded-bg-deep) 100%);
  background-attachment: fixed;
  color: var(--gded-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: var(--gded-wrap);
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: var(--gded-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout helpers ---------- */
.gded-container { width: 100%; max-width: var(--gded-wrap); margin: 0 auto; padding: 0 1.2rem; }
.gded-wrapper { padding-top: var(--gded-header-h); padding-bottom: calc(var(--gded-bottom-h) + 1rem); }
.gded-section { margin: 2.4rem 0; }
.gded-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.gded-section-title {
  font-size: 1.9rem; font-weight: 700; color: var(--gded-accent);
  display: flex; align-items: center; gap: 0.6rem; line-height: 1.3;
}
.gded-section-title::before {
  content: ""; width: 0.4rem; height: 2rem; border-radius: 0.4rem;
  background: linear-gradient(180deg, var(--gded-gold), var(--gded-primary));
}
.gded-section-more { font-size: 1.3rem; color: var(--gded-text-bright); font-weight: 600; }
.gded-grid { display: grid; gap: 1rem; }

/* ---------- Header ---------- */
.gded-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--gded-wrap); z-index: 1000;
  height: var(--gded-header-h);
  background: linear-gradient(180deg, rgba(24, 36, 47, 0.98), rgba(33, 47, 61, 0.95));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gded-line);
  box-shadow: var(--gded-shadow);
}
.gded-header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; gap: 0.8rem;
}
.gded-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.gded-brand-logo {
  width: 3.2rem; height: 3.2rem; border-radius: 0.7rem; object-fit: cover;
  border: 2px solid var(--gded-gold); box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}
.gded-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.gded-brand-name { font-size: 1.8rem; font-weight: 800; color: var(--gded-accent); letter-spacing: 0.04em; }
.gded-brand-sub { font-size: 1rem; color: var(--gded-text); opacity: 0.8; }
.gded-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.gded-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; border-radius: 2rem; padding: 0.8rem 1.4rem; font-size: 1.3rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  min-height: 3.6rem; white-space: nowrap;
}
.gded-btn:active { transform: scale(0.96); }
.gded-btn-login {
  background: transparent; border: 1.5px solid var(--gded-accent); color: var(--gded-accent);
}
.gded-btn-register {
  background: linear-gradient(135deg, var(--gded-gold), var(--gded-gold-2));
  color: #2A1A06; box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.gded-btn-promo {
  background: linear-gradient(135deg, var(--gded-primary), var(--gded-primary-soft));
  color: var(--gded-accent); border: 1px solid var(--gded-accent);
}
.gded-btn-ghost { background: rgba(245, 222, 179, 0.08); color: var(--gded-accent); border: 1px solid var(--gded-line); }
.gded-menu-btn {
  width: 3.6rem; height: 3.6rem; border-radius: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245, 222, 179, 0.08); color: var(--gded-accent); font-size: 1.8rem;
}

/* ---------- Mobile slide menu ---------- */
.gded-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 9998;
}
.gded-menu-backdrop.gded-open { opacity: 1; visibility: visible; }
.gded-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 340px;
  height: 100%; background: linear-gradient(180deg, var(--gded-bg-deep), var(--gded-bg));
  z-index: 9999; transition: right 0.3s ease; padding: 2rem 1.6rem; overflow-y: auto;
  border-left: 1px solid var(--gded-line); box-shadow: var(--gded-shadow-lg);
}
.gded-mobile-menu.gded-open { right: 0; }
.gded-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--gded-line); }
.gded-menu-head .gded-brand-name { font-size: 2rem; }
.gded-menu-close { width: 3.4rem; height: 3.4rem; border-radius: 0.6rem; background: rgba(245,222,179,0.1); color: var(--gded-accent); font-size: 1.8rem; }
.gded-menu-list { display: flex; flex-direction: column; gap: 0.4rem; }
.gded-menu-link {
  display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1rem;
  border-radius: 0.8rem; color: var(--gded-text-2); font-size: 1.5rem; font-weight: 600;
  transition: background 0.2s ease;
}
.gded-menu-link i, .gded-menu-link span.material-symbols-outlined, .gded-menu-link ion-icon, .gded-menu-link bi { color: var(--gded-accent); font-size: 1.9rem; }
.gded-menu-link:hover, .gded-menu-link:active { background: rgba(245, 222, 179, 0.08); }
.gded-menu-cta { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* ---------- Hero carousel ---------- */
.gded-carousel { position: relative; border-radius: var(--gded-radius); overflow: hidden; box-shadow: var(--gded-shadow); }
.gded-carousel-track { display: flex; transition: transform 0.5s ease; }
.gded-slide { min-width: 100%; position: relative; }
.gded-slide img { width: 100%; height: 17rem; object-fit: cover; }
.gded-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
}
.gded-slide-title { font-size: 1.9rem; font-weight: 800; color: var(--gded-accent); margin-bottom: 0.4rem; }
.gded-slide-sub { font-size: 1.25rem; color: var(--gded-text-2); margin-bottom: 0.8rem; }
.gded-dots { position: absolute; bottom: 0.8rem; right: 1.2rem; display: flex; gap: 0.4rem; }
.gded-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(245,222,179,0.4); transition: all 0.2s ease; }
.gded-dot.gded-active { background: var(--gded-gold); width: 2rem; border-radius: 0.5rem; }

/* ---------- Marquee strip ---------- */
.gded-marquee {
  background: linear-gradient(90deg, var(--gded-primary), var(--gded-bg-soft));
  color: var(--gded-accent); padding: 0.8rem 1rem; margin: 1.2rem 0;
  border-radius: var(--gded-radius-sm); font-size: 1.25rem; font-weight: 600;
  overflow: hidden; white-space: nowrap; display: flex; align-items: center; gap: 0.6rem;
}
.gded-marquee i { color: var(--gded-gold); }

/* ---------- Quick category chips ---------- */
.gded-chips { display: flex; gap: 0.7rem; overflow-x: auto; padding: 0.4rem 0 1rem; -webkit-overflow-scrolling: touch; }
.gded-chips::-webkit-scrollbar { display: none; }
.gded-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 2rem; font-size: 1.25rem; font-weight: 600;
  background: var(--gded-surface); color: var(--gded-text-2); border: 1px solid var(--gded-line);
}
.gded-chip i, .gded-chip span.material-symbols-outlined { color: var(--gded-accent); font-size: 1.6rem; }

/* ---------- Game grid ---------- */
.gded-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.gded-game-card {
  background: var(--gded-surface); border-radius: var(--gded-radius-sm); overflow: hidden;
  border: 1px solid var(--gded-line); transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative;
}
.gded-game-card:active { transform: scale(0.96); }
.gded-game-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--gded-bg-deep); }
.gded-game-name {
  font-size: 1.15rem; font-weight: 600; color: var(--gded-text-2); text-align: center;
  padding: 0.5rem 0.4rem; line-height: 1.25; min-height: 3rem;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.gded-game-badge {
  position: absolute; top: 0.4rem; left: 0.4rem; background: var(--gded-danger);
  color: #fff; font-size: 0.95rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 0.4rem;
}
.gded-game-badge.gded-hot { background: linear-gradient(135deg, #E74C3C, #C0392B); }
.gded-game-badge.gded-new { background: linear-gradient(135deg, #27AE60, #1E8449); }

/* ---------- Cards ---------- */
.gded-card {
  background: linear-gradient(160deg, var(--gded-surface), var(--gded-bg-soft));
  border: 1px solid var(--gded-line); border-radius: var(--gded-radius);
  padding: 1.4rem; box-shadow: var(--gded-shadow);
}
.gded-card-title { font-size: 1.6rem; font-weight: 700; color: var(--gded-accent); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem; }
.gded-card-text { font-size: 1.35rem; color: var(--gded-text-2); line-height: 1.55; }
.gded-card-text strong { color: var(--gded-accent); }
.gded-card-text a { color: var(--gded-gold-2); font-weight: 700; }

/* ---------- Feature list ---------- */
.gded-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.gded-feature-item {
  background: var(--gded-surface); border: 1px solid var(--gded-line); border-radius: var(--gded-radius-sm);
  padding: 1.1rem 0.9rem; text-align: center;
}
.gded-feature-icon {
  width: 4rem; height: 4rem; border-radius: 50%; margin: 0 auto 0.6rem;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  background: linear-gradient(135deg, var(--gded-primary), var(--gded-bg-soft)); color: var(--gded-accent);
}
.gded-feature-title { font-size: 1.25rem; font-weight: 700; color: var(--gded-text-bright); margin-bottom: 0.2rem; }
.gded-feature-desc { font-size: 1.1rem; color: var(--gded-text); line-height: 1.3; }

/* ---------- RTP table ---------- */
.gded-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.gded-rtp-table th, .gded-rtp-table td { padding: 0.8rem 0.6rem; text-align: left; border-bottom: 1px solid var(--gded-line); }
.gded-rtp-table th { color: var(--gded-accent); font-weight: 700; font-size: 1.2rem; }
.gded-rtp-table td { color: var(--gded-text-2); }
.gded-rtp-value { color: var(--gded-success); font-weight: 700; }

/* ---------- Testimonials ---------- */
.gded-testimonials { display: flex; flex-direction: column; gap: 0.9rem; }
.gded-testimonial { background: var(--gded-surface); border-left: 3px solid var(--gded-gold); border-radius: var(--gded-radius-sm); padding: 1rem 1.1rem; }
.gded-testimonial-text { font-size: 1.25rem; color: var(--gded-text-2); font-style: italic; margin-bottom: 0.6rem; }
.gded-testimonial-meta { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; }
.gded-testimonial-avatar { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: linear-gradient(135deg, var(--gded-gold), var(--gded-primary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.2rem; }
.gded-stars { color: var(--gded-gold); font-size: 1.1rem; }

/* ---------- Payment methods ---------- */
.gded-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.gded-pay-item {
  background: var(--gded-surface); border-radius: var(--gded-radius-sm); padding: 1rem 0.4rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; border: 1px solid var(--gded-line);
}
.gded-pay-icon { font-size: 2.2rem; color: var(--gded-accent); }
.gded-pay-name { font-size: 1.1rem; color: var(--gded-text-2); text-align: center; font-weight: 600; }

/* ---------- Winners ---------- */
.gded-winner-list { display: flex; flex-direction: column; gap: 0.5rem; }
.gded-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gded-surface); padding: 0.8rem 1rem; border-radius: var(--gded-radius-sm); border: 1px solid var(--gded-line);
}
.gded-winner-name { font-size: 1.25rem; font-weight: 600; color: var(--gded-text-2); }
.gded-winner-game { font-size: 1.1rem; color: var(--gded-text); }
.gded-winner-prize { font-size: 1.3rem; font-weight: 800; color: var(--gded-gold); }

/* ---------- App download CTA ---------- */
.gded-app-cta {
  background: linear-gradient(135deg, var(--gded-primary), var(--gded-bg-soft));
  border-radius: var(--gded-radius); padding: 1.6rem; text-align: center;
  border: 1px solid var(--gded-accent); box-shadow: var(--gded-shadow);
}
.gded-app-cta h3 { font-size: 1.7rem; color: var(--gded-accent); margin-bottom: 0.5rem; }
.gded-app-cta p { font-size: 1.25rem; color: var(--gded-text-2); margin-bottom: 1rem; }
.gded-app-buttons { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.gded-app-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.3rem;
  background: rgba(0,0,0,0.35); border: 1px solid var(--gded-accent); border-radius: 0.8rem; color: var(--gded-accent);
  font-size: 1.2rem; font-weight: 600;
}

/* ---------- FAQ accordion ---------- */
.gded-faq-item { background: var(--gded-surface); border-radius: var(--gded-radius-sm); margin-bottom: 0.7rem; border: 1px solid var(--gded-line); overflow: hidden; }
.gded-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.2rem; font-size: 1.35rem; font-weight: 700; color: var(--gded-text-bright); }
.gded-faq-q i { color: var(--gded-accent); transition: transform 0.2s ease; }
.gded-faq-item.gded-open .gded-faq-q i { transform: rotate(45deg); }
.gded-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.2rem; }
.gded-faq-item.gded-open .gded-faq-a { max-height: 400px; padding: 0 1.2rem 1.1rem; }
.gded-faq-a p { font-size: 1.25rem; color: var(--gded-text-2); line-height: 1.55; }

/* ---------- Promo banner ---------- */
.gded-promo-banner {
  background: linear-gradient(135deg, #6F4E37, #212F3D);
  border-radius: var(--gded-radius); padding: 1.5rem 1.3rem; color: var(--gded-accent);
  border: 1px solid var(--gded-gold); display: flex; gap: 1rem; align-items: center;
  box-shadow: var(--gded-shadow);
}
.gded-promo-banner i { font-size: 3rem; color: var(--gded-gold); }
.gded-promo-banner h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.gded-promo-banner p { font-size: 1.2rem; color: var(--gded-text-2); margin-bottom: 0.8rem; }

/* ---------- Footer ---------- */
.gded-footer {
  background: var(--gded-bg-deep); border-top: 1px solid var(--gded-line);
  padding: 2rem 1.2rem 1.5rem; margin-top: 2rem;
}
.gded-footer-brand { font-size: 1.8rem; font-weight: 800; color: var(--gded-accent); margin-bottom: 0.5rem; }
.gded-footer-desc { font-size: 1.2rem; color: var(--gded-text); line-height: 1.5; margin-bottom: 1.2rem; }
.gded-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.gded-footer-promos .gded-btn { font-size: 1.15rem; padding: 0.6rem 1rem; min-height: 3rem; }
.gded-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1.2rem; }
.gded-footer-links a { font-size: 1.2rem; color: var(--gded-text-2); padding: 0.4rem 0; border-bottom: 1px dashed var(--gded-line); }
.gded-footer-links a:hover { color: var(--gded-accent); }
.gded-footer-copy { font-size: 1.1rem; color: var(--gded-text); opacity: 0.7; text-align: center; padding-top: 1rem; border-top: 1px solid var(--gded-line); }

/* ---------- Bottom nav ---------- */
.gded-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--gded-wrap); height: var(--gded-bottom-h);
  background: linear-gradient(180deg, rgba(33, 47, 61, 0.98), rgba(24, 36, 47, 1));
  backdrop-filter: blur(12px); border-top: 1px solid var(--gded-line);
  display: flex; justify-content: space-around; align-items: stretch; z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}
.gded-bottom-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--gded-text); font-size: 1.05rem; font-weight: 600;
  position: relative; transition: color 0.2s ease, transform 0.2s ease; min-width: 60px;
}
.gded-bottom-btn i, .gded-bottom-btn span.material-symbols-outlined, .gded-bottom-btn ion-icon {
  font-size: 2.4rem; transition: transform 0.2s ease;
}
.gded-bottom-btn:active { transform: scale(0.92); }
.gded-bottom-btn.gded-active { color: var(--gded-accent); }
.gded-bottom-btn.gded-active i, .gded-bottom-btn.gded-active span.material-symbols-outlined, .gded-bottom-btn.gded-active ion-icon { color: var(--gded-gold); transform: translateY(-2px); }
.gded-bottom-btn.gded-promo-center {
  position: relative;
}
.gded-bottom-btn.gded-promo-center::before {
  content: ""; position: absolute; top: -1.4rem; width: 4.4rem; height: 4.4rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--gded-gold), var(--gded-primary));
  border: 3px solid var(--gded-bg); box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}
.gded-bottom-btn.gded-promo-center i, .gded-bottom-btn.gded-promo-center span.material-symbols-outlined {
  position: relative; z-index: 2; color: #fff; font-size: 2.2rem; margin-top: -1.4rem;
}
.gded-bottom-btn.gded-promo-center span.gded-bottom-label { position: relative; z-index: 2; margin-top: 0.9rem; color: var(--gded-accent); }
.gded-bottom-badge {
  position: absolute; top: 0.3rem; right: 30%; min-width: 1.6rem; height: 1.6rem; padding: 0 0.4rem;
  background: var(--gded-danger); color: #fff; font-size: 1rem; font-weight: 700;
  border-radius: 0.8rem; display: flex; align-items: center; justify-content: center; z-index: 3;
}

/* ---------- Utility ---------- */
.gded-text-center { text-align: center; }
.gded-mt-1 { margin-top: 0.8rem; } .gded-mt-2 { margin-top: 1.6rem; } .gded-mt-3 { margin-top: 2.4rem; }
.gded-hidden { display: none !important; }
.gded-promo-link { color: var(--gded-gold-2); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .gded-bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .gded-wrapper { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  .gded-wrapper { padding-bottom: calc(var(--gded-bottom-h) + 1.2rem); }
}
@media (max-width: 360px) {
  .gded-game-grid { grid-template-columns: repeat(2, 1fr); }
  .gded-brand-sub { display: none; }
  .gded-btn { padding: 0.7rem 1rem; font-size: 1.2rem; }
}

/* Mobile overflow guard */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { min-width: 0; }
.gded-wrapper, .gded-container, .gded-header, .gded-bottom-nav { max-width: min(var(--gded-wrap), 100vw); }
img, video, iframe, table { max-width: 100%; }
@media (max-width: 768px) {
  body { max-width: 100vw !important; }
  .gded-wrapper, .gded-container, .gded-header, .gded-bottom-nav, .gded-carousel, .gded-slider, .gded-slides { width: 100% !important; max-width: 100vw !important; }
  .gded-carousel, .gded-slider, .gded-slides, .gded-carousel-track { overflow: hidden !important; contain: paint; }
  .gded-carousel-track { display: block !important; }
  .gded-slide { display: none; min-width: 0 !important; width: 100% !important; }
  .gded-slide:first-child, .gded-slide.gded-active, .gded-slide.active { display: block; }
  .gded-mobile-menu:not(.gded-open) { display: none !important; }
}
