/* 299bad - layout.css
   All custom classes use the vc20- prefix.
   Palette: #DEB887 | #F5DEB3 | #3CB371 | #F0F8FF | #3A3A3A
   Dark colors as backgrounds, light colors as text.
   Mobile-first: max-width 430px primary.
   Root font 62.5% so 1rem = 10px.
*/

:root {
  --vc20-primary: #DEB887;
  --vc20-secondary: #F5DEB3;
  --vc20-accent: #3CB371;
  --vc20-light: #F0F8FF;
  --vc20-dark: #3A3A3A;
  --vc20-bg: #2a2a2a;
  --vc20-text: #F0F8FF;
  --vc20-muted: #d9c9a6;
  --vc20-header-h: 5.4rem;
  --vc20-bottomnav-h: 6.2rem;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  background: var(--vc20-bg);
  color: var(--vc20-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

a { color: var(--vc20-primary); text-decoration: none; }
a:hover { color: var(--vc20-accent); }

/* Layout containers */
.vc20-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.vc20-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* Header */
.vc20-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--vc20-header-h);
  background: linear-gradient(90deg, #3A3A3A 0%, #2a2a2a 100%);
  border-bottom: 2px solid var(--vc20-primary);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.vc20-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--vc20-secondary); font-weight: 700; font-size: 1.8rem;
}
.vc20-logo img { width: 28px; height: 28px; border-radius: 6px; }
.vc20-logo span { color: var(--vc20-primary); }

.vc20-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.vc20-btn {
  border: none; border-radius: 2.2rem; padding: 0.7rem 1.4rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  min-height: 36px; transition: transform .15s ease, box-shadow .15s ease;
}
.vc20-btn:active { transform: scale(0.96); }
.vc20-btn-register {
  background: linear-gradient(90deg, #3CB371, #2e8b57);
  color: #fff; box-shadow: 0 2px 8px rgba(60,179,113,.35);
}
.vc20-btn-login {
  background: var(--vc20-primary); color: var(--vc20-dark);
  box-shadow: 0 2px 8px rgba(222,184,135,.35);
}
.vc20-menu-btn {
  background: transparent; border: 1px solid var(--vc20-primary);
  color: var(--vc20-primary); border-radius: 0.8rem;
  width: 36px; height: 36px; font-size: 1.8rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Navigation menu (expandable) */
.vc20-nav-menu {
  position: fixed; top: var(--vc20-header-h); right: 0;
  width: 70%; max-width: 320px; max-height: 80vh; overflow-y: auto;
  background: #2f2f2f; border-left: 2px solid var(--vc20-primary);
  transform: translateX(100%); transition: transform .25s ease;
  z-index: 9999; padding: 1.4rem 1rem;
}
.vc20-nav-menu.vc20-open { transform: translateX(0); }
.vc20-nav-menu a {
  display: block; padding: 1rem 0.8rem; color: var(--vc20-secondary);
  border-bottom: 1px solid rgba(222,184,135,.2); font-size: 1.4rem;
}
.vc20-nav-menu a:hover { background: rgba(222,184,135,.1); color: var(--vc20-accent); }

.vc20-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 9998; display: none;
}
.vc20-nav-menu.vc20-open ~ .vc20-overlay { display: block; }

/* Main content spacing for fixed header */
.vc20-main { padding-top: var(--vc20-header-h); padding-bottom: var(--vc20-bottomnav-h); }

/* Hero carousel */
.vc20-hero { position: relative; margin: 1rem 0 1.4rem; border-radius: 1rem; overflow: hidden; }
.vc20-slides { position: relative; height: 180px; }
.vc20-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
}
.vc20-slide.vc20-active { opacity: 1; }
.vc20-slide img { width: 100%; height: 180px; object-fit: cover; }
.vc20-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 1.2rem 1rem 1rem; color: var(--vc20-light);
}
.vc20-slide-cap h2 { margin: 0 0 .4rem; font-size: 1.7rem; color: var(--vc20-primary); }
.vc20-slide-cap p { margin: 0; font-size: 1.2rem; }
.vc20-slide-cap a { color: var(--vc20-secondary); font-weight: 700; }

.vc20-dots { display: flex; gap: .5rem; justify-content: center; margin-top: .6rem; }
.vc20-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(240,248,255,.4); border: none; cursor: pointer; }
.vc20-dot.vc20-active { background: var(--vc20-accent); }

/* Section headings */
.vc20-section { margin: 1.6rem 0; }
.vc20-section-title {
  font-size: 1.8rem; color: var(--vc20-primary); margin: 0 0 1rem;
  border-left: 4px solid var(--vc20-accent); padding-left: .8rem;
}
.vc20-h1 {
  font-size: 2rem; line-height: 1.3; color: var(--vc20-secondary);
  margin: 1rem 0; text-align: center;
}
.vc20-h1 span { color: var(--vc20-accent); }
.vc20-lead {
  font-size: 1.4rem; color: var(--vc20-muted); text-align: center;
  padding: 0 1rem; margin-bottom: 1.4rem;
}

/* Game grid (compact icon layout) */
.vc20-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.vc20-card {
  background: #333; border: 1px solid rgba(222,184,135,.25);
  border-radius: 0.8rem; overflow: hidden; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vc20-card:active { transform: scale(0.97); }
.vc20-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #222; }
.vc20-card-name {
  font-size: 1.15rem; color: var(--vc20-secondary);
  padding: 0.5rem 0.4rem; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Category label chips */
.vc20-cat-label {
  display: inline-block; background: var(--vc20-accent); color: #fff;
  font-size: 1.1rem; padding: .25rem .8rem; border-radius: 1rem;
  margin-bottom: .8rem;
}

/* Info / feature blocks */
.vc20-info-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.vc20-info-card {
  background: #333; border: 1px solid rgba(222,184,135,.2);
  border-radius: 0.8rem; padding: 1.2rem;
}
.vc20-info-card h3 { margin: 0 0 .6rem; color: var(--vc20-primary); font-size: 1.5rem; }
.vc20-info-card p { margin: 0; font-size: 1.3rem; color: var(--vc20-muted); }
.vc20-info-card .vc20-promo-link { color: var(--vc20-accent); font-weight: 700; }

.vc20-cta {
  display: block; text-align: center; margin: 1.4rem auto; max-width: 280px;
  padding: 1rem; border-radius: 2.4rem; font-weight: 700; font-size: 1.4rem;
  background: linear-gradient(90deg, #3CB371, #2e8b57); color: #fff;
  cursor: pointer; border: none;
}

.vc20-winners {
  background: #2f2f2f; border-radius: .8rem; padding: 1rem; margin: 1rem 0;
  border: 1px solid rgba(60,179,113,.3);
}
.vc20-winners li { list-style: none; padding: .4rem 0; font-size: 1.25rem; color: var(--vc20-secondary); border-bottom: 1px dashed rgba(222,184,135,.15); }
.vc20-winners li:last-child { border-bottom: none; }

/* Payment methods */
.vc20-payments { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0; }
.vc20-payments span {
  background: #333; border: 1px solid var(--vc20-primary); color: var(--vc20-secondary);
  padding: .5rem 1rem; border-radius: 1.4rem; font-size: 1.2rem;
}

/* Testimonials */
.vc20-testimonial {
  background: #333; border-left: 4px solid var(--vc20-accent);
  padding: 1rem; margin: .8rem 0; border-radius: .6rem;
}
.vc20-testimonial p { margin: 0 0 .4rem; font-size: 1.3rem; color: var(--vc20-muted); }
.vc20-testimonial cite { color: var(--vc20-primary); font-style: normal; font-size: 1.2rem; }

/* FAQ */
.vc20-faq-item { margin: .8rem 0; background: #2f2f2f; border-radius: .6rem; padding: 1rem; }
.vc20-faq-item h3 { margin: 0 0 .5rem; color: var(--vc20-primary); font-size: 1.4rem; }
.vc20-faq-item p { margin: 0; font-size: 1.3rem; color: var(--vc20-muted); }

/* Footer */
.vc20-footer {
  background: #262626; border-top: 2px solid var(--vc20-primary);
  padding: 2rem 1.2rem calc(var(--vc20-bottomnav-h) + 1.4rem);
  text-align: center;
}
.vc20-footer p { font-size: 1.25rem; color: var(--vc20-muted); margin: .4rem 0; }
.vc20-footer-links { display: flex; flex-wrap: wrap; gap: .5rem .8rem; justify-content: center; margin: 1rem 0; }
.vc20-footer-links a {
  color: var(--vc20-secondary); font-size: 1.2rem;
  background: #333; padding: .4rem .8rem; border-radius: 1.2rem;
  border: 1px solid rgba(222,184,135,.2);
}
.vc20-footer-promo {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0;
}
.vc20-footer-promo button {
  background: linear-gradient(90deg, var(--vc20-primary), #c9a06a);
  color: var(--vc20-dark); border: none; border-radius: 2rem;
  padding: .7rem 1.2rem; font-weight: 700; font-size: 1.2rem; cursor: pointer;
}
.vc20-copyright { font-size: 1.1rem; color: #888; margin-top: .8rem; }

/* Mobile bottom navigation */
.vc20-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--vc20-bottomnav-h);
  background: #1f1f1f; border-top: 2px solid var(--vc20-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.vc20-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--vc20-secondary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; cursor: pointer; transition: color .15s ease, transform .15s ease;
  font-size: 1.05rem;
}
.vc20-bottomnav-btn i, .vc20-bottomnav-btn .material-icons-outlined,
.vc20-bottomnav-btn ion-icon { font-size: 22px; }
.vc20-bottomnav-btn:active { transform: scale(0.9); color: var(--vc20-accent); }
.vc20-bottomnav-btn.vc20-active { color: var(--vc20-accent); }
.vc20-bottomnav-btn.vc20-active::after {
  content: ""; width: 24px; height: 3px; background: var(--vc20-accent);
  border-radius: 2px; margin-top: 2px;
}

/* Desktop: hide bottom nav, show top nav menu inline, widen container */
@media (min-width: 769px) {
  .vc20-bottomnav { display: none; }
  .vc20-container, .vc20-wrapper { max-width: 960px; }
  .vc20-main { padding-bottom: 2rem; }
  .vc20-nav-menu {
    position: static; transform: none; width: auto; max-width: none;
    max-height: none; border: none; background: transparent; padding: 0;
    display: flex; flex-wrap: wrap; gap: .4rem;
  }
  .vc20-nav-menu a { border: none; padding: .5rem .8rem; }
  .vc20-menu-btn { display: none; }
  .vc20-grid { grid-template-columns: repeat(6, 1fr); }
  .vc20-info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: ensure bottom padding so content clears fixed bottom nav */
@media (max-width: 768px) {
  .vc20-main { padding-bottom: calc(var(--vc20-bottomnav-h) + 1.2rem); }
}
