/* 2777bd layout CSS - prefix: wce90- */
/* English comments only */

:root {
  --wce90-primary: #5F9EA0;
  --wce90-blue: #0000FF;
  --wce90-bg: #1C2833;
  --wce90-bg-2: #22303d;
  --wce90-text: #f3f7f7;
  --wce90-muted: #b8c5cc;
  --wce90-accent: #5F9EA0;
  --wce90-gold: #e8c46b;
  --wce90-radius: 10px;
  --wce90-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

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

html { font-size: 62.5%; }

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

a { color: var(--wce90-primary); text-decoration: none; }
a:hover { color: var(--wce90-gold); }
img { max-width: 100%; display: block; }

.wce90-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.wce90-wrapper { width: 100%; }

/* ===== Header ===== */
.wce90-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #1C2833, #233a44);
  border-bottom: 2px solid var(--wce90-primary);
  box-shadow: var(--wce90-shadow);
}
.wce90-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.2rem; min-height: 52px;
}
.wce90-logo { display: flex; align-items: center; gap: 0.6rem; }
.wce90-logo img { width: 28px; height: 28px; border-radius: 6px; }
.wce90-logo-text { font-size: 1.5rem; font-weight: 700; color: var(--wce90-text); letter-spacing: 0.5px; }
.wce90-logo-text span { color: var(--wce90-primary); }
.wce90-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.wce90-menu-btn {
  background: transparent; border: 0; color: var(--wce90-text);
  font-size: 2.0rem; cursor: pointer; padding: 0.2rem 0.4rem; line-height: 1;
}
.wce90-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.0rem; border-radius: 20px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .2s;
}
.wce90-btn:active { transform: scale(0.95); }
.wce90-btn-register { background: var(--wce90-blue); color: #fff; border-color: var(--wce90-blue); }
.wce90-btn-login { background: transparent; color: var(--wce90-text); border-color: var(--wce90-primary); }
.wce90-btn-promo { background: linear-gradient(90deg, var(--wce90-primary), #2fb1b5); color: #fff; }

/* ===== Mobile menu (drawer) ===== */
.wce90-mobile-menu {
  position: fixed; top: 52px; left: 0; right: 0; z-index: 9999;
  background: #1b2733; border-bottom: 2px solid var(--wce90-primary);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.wce90-mobile-menu.wce90-open { max-height: 80vh; overflow-y: auto; }
.wce90-mobile-menu ul { list-style: none; padding: 0.6rem 1.2rem 1.0rem; }
.wce90-mobile-menu li { border-bottom: 1px solid rgba(95,158,160,0.18); }
.wce90-mobile-menu li a {
  display: block; padding: 0.9rem 0.4rem; color: var(--wce90-text); font-size: 1.4rem;
}

/* ===== Main ===== */
main { padding-top: 64px; }
@media (max-width: 768px) { main { padding-bottom: 84px; } }

/* ===== Carousel ===== */
.wce90-carousel { position: relative; margin: 1.0rem 0; border-radius: var(--wce90-radius); overflow: hidden; }
.wce90-slides { position: relative; }
.wce90-slide { display: none; cursor: pointer; }
.wce90-slide.wce90-active { display: block; }
.wce90-slide img { width: 100%; height: 160px; object-fit: cover; }
.wce90-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 1.6rem 1.0rem 0.8rem; color: #fff; font-size: 1.3rem; font-weight: 600;
}
.wce90-dots { display: flex; gap: 0.4rem; justify-content: center; padding: 0.6rem 0; }
.wce90-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; }
.wce90-dot.wce90-active { background: var(--wce90-primary); }

/* ===== Section ===== */
.wce90-section { margin: 1.6rem 0; }
.wce90-section-title {
  font-size: 1.7rem; font-weight: 700; margin-bottom: 0.8rem;
  border-left: 4px solid var(--wce90-primary); padding-left: 0.8rem; color: var(--wce90-text);
}
.wce90-section-title small { display: block; font-size: 1.1rem; color: var(--wce90-muted); font-weight: 400; }
.wce90-lead { font-size: 1.3rem; color: var(--wce90-muted); margin-bottom: 0.8rem; }
.wce90-text { font-size: 1.3rem; color: var(--wce90-text); margin-bottom: 0.8rem; }
.wce90-text a { color: var(--wce90-gold); font-weight: 600; }

/* ===== Category tabs / chips ===== */
.wce90-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.wce90-chip {
  background: var(--wce90-bg-2); color: var(--wce90-text);
  padding: 0.4rem 0.9rem; border-radius: 14px; font-size: 1.1rem; border: 1px solid rgba(95,158,160,0.3);
}

/* ===== Game grid ===== */
.wce90-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.wce90-card {
  background: var(--wce90-bg-2); border-radius: var(--wce90-radius); overflow: hidden;
  border: 1px solid rgba(95,158,160,0.2); cursor: pointer; transition: transform .15s;
  display: flex; flex-direction: column;
}
.wce90-card:active { transform: scale(0.96); }
.wce90-card-img { width: 100%; height: 84px; object-fit: cover; background: #0f1820; }
.wce90-card-name {
  font-size: 1.05rem; padding: 0.35rem 0.4rem; text-align: center;
  color: var(--wce90-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wce90-card-cat { font-size: 0.95rem; color: var(--wce90-primary); text-align: center; padding-bottom: 0.4rem; }

/* ===== Feature / highlight blocks ===== */
.wce90-feature {
  background: var(--wce90-bg-2); border-radius: var(--wce90-radius); padding: 1.0rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--wce90-primary);
}
.wce90-feature h3 { font-size: 1.4rem; margin-bottom: 0.4rem; color: var(--wce90-gold); }
.wce90-feature p { font-size: 1.2rem; color: var(--wce90-muted); }

.wce90-list { list-style: none; padding-left: 0; }
.wce90-list li { padding: 0.5rem 0 0.5rem 1.6rem; position: relative; font-size: 1.2rem; color: var(--wce90-text); }
.wce90-list li::before { content: "▸"; position: absolute; left: 0.2rem; color: var(--wce90-primary); }

/* ===== Testimonials ===== */
.wce90-testi { background: var(--wce90-bg-2); border-radius: var(--wce90-radius); padding: 1.0rem; margin-bottom: 0.7rem; }
.wce90-testi .wce90-testi-name { font-size: 1.2rem; font-weight: 700; color: var(--wce90-gold); }
.wce90-testi .wce90-testi-stars { color: #f2c744; font-size: 1.1rem; margin: 0.2rem 0; }
.wce90-testi p { font-size: 1.15rem; color: var(--wce90-muted); }

/* ===== Winners strip ===== */
.wce90-winner { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed rgba(95,158,160,0.25); font-size: 1.15rem; }
.wce90-winner span:last-child { color: var(--wce90-gold); font-weight: 600; }

/* ===== Payment ===== */
.wce90-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wce90-pay span { background: var(--wce90-bg-2); padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 1.1rem; border: 1px solid rgba(95,158,160,0.3); }

/* ===== CTA ===== */
.wce90-cta {
  background: linear-gradient(90deg, var(--wce90-blue), var(--wce90-primary));
  border-radius: var(--wce90-radius); padding: 1.2rem; text-align: center; margin: 1.0rem 0;
}
.wce90-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.wce90-cta p { color: #eaf6f6; font-size: 1.2rem; margin-bottom: 0.8rem; }
.wce90-cta .wce90-btn { background: #fff; color: var(--wce90-blue); }

/* ===== Footer ===== */
.wce90-footer { background: #16202b; padding: 1.4rem 0 2.0rem; margin-top: 1.6rem; border-top: 2px solid var(--wce90-primary); }
.wce90-footer-brand { font-size: 1.3rem; color: var(--wce90-muted); margin-bottom: 0.8rem; }
.wce90-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; margin-bottom: 0.8rem; }
.wce90-footer-links a { color: var(--wce90-muted); font-size: 1.1rem; }
.wce90-footer-copy { font-size: 1.0rem; color: #7d8a91; }

/* ===== Bottom nav ===== */
.wce90-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: #16202b; border-top: 2px solid var(--wce90-primary);
  height: 60px; display: flex; justify-content: space-around; align-items: center;
}
.wce90-bottomnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: transparent; border: 0; color: var(--wce90-muted);
  cursor: pointer; font-size: 1.0rem; gap: 0.2rem; transition: color .2s, transform .15s;
}
.wce90-bottomnav-btn .material-icons,
.wce90-bottomnav-btn ion-icon,
.wce90-bottomnav-btn i { font-size: 22px; }
.wce90-bottomnav-btn:active { transform: scale(0.9); }
.wce90-bottomnav-btn.wce90-current { color: var(--wce90-primary); }
.wce90-bottomnav-btn.wce90-promo { color: var(--wce90-gold); }

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .wce90-bottomnav { display: none; }
  .wce90-container { max-width: 960px; }
  .wce90-header-inner { max-width: 960px; }
  .wce90-grid { grid-template-columns: repeat(6, 1fr); }
  .wce90-slide img { height: 300px; }
}
