/* ============================================================
 * 123b link 123b - design-0376.css
 * Palette: #0D1117 (bg) | #BA55D3 (brand) | #CC99FF (accent)
 * All classes use the w0376- prefix
 * ============================================================ */

:root {
  --w0376-bg: #0D1117;
  --w0376-bg-2: #15131f;
  --w0376-bg-3: #1b1730;
  --w0376-brand: #BA55D3;
  --w0376-accent: #CC99FF;
  --w0376-text: #f3ecff;
  --w0376-muted: #b6a8d4;
  --w0376-line: rgba(204, 153, 255, 0.18);
  --w0376-gold: #ffcf5c;
  --w0376-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1f1640 0%, var(--w0376-bg) 60%);
  color: var(--w0376-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--w0376-accent); text-decoration: none; }

/* ---------- Layout ---------- */
.w0376-wrapper { width: 100%; padding: 0 12px; }
.w0376-container { padding: 18px 12px 24px; }
.w0376-section { padding: 22px 12px; }
.w0376-section-alt { background: linear-gradient(180deg, rgba(186,85,211,0.10), rgba(13,17,23,0)); }

/* ---------- Header ---------- */
.w0376-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w0376-line);
}
.w0376-header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; gap: 8px;
}
.w0376-brand { display: flex; align-items: center; gap: 8px; }
.w0376-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--w0376-brand), var(--w0376-accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #1a0f2e; font-size: 1.6rem;
}
.w0376-brand-name { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.3px; }
.w0376-brand-name span { color: var(--w0376-accent); }
.w0376-actions { display: flex; align-items: center; gap: 6px; }
.w0376-icon-btn {
  background: transparent; border: 0; color: var(--w0376-text);
  font-size: 2rem; padding: 6px; cursor: pointer;
}
.w0376-btn {
  border: 0; border-radius: 999px; padding: 9px 16px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.w0376-btn-login {
  background: transparent; color: var(--w0376-text);
  border: 1px solid var(--w0376-line);
}
.w0376-btn-register {
  background: linear-gradient(135deg, var(--w0376-brand), var(--w0376-accent));
  color: #1a0f2e; box-shadow: 0 6px 18px rgba(186,85,211,0.45);
}
.w0376-btn:hover, .w0376-btn:focus { transform: translateY(-1px); }

/* ---------- Mobile menu overlay ---------- */
.w0376-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 9998;
}
.w0376-overlay-show { opacity: 1; pointer-events: auto; }
.w0376-mobile-menu {
  position: fixed; top: 0; right: -86%; height: 100vh; width: 80%;
  max-width: 320px; background: var(--w0376-bg-2); z-index: 9999;
  transition: right .3s ease; padding: 70px 16px 20px; overflow-y: auto;
  border-left: 1px solid var(--w0376-line);
}
.w0376-menu-open { right: 0; }
.w0376-menu-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: 0; color: var(--w0376-text); font-size: 2rem; cursor: pointer;
}
.w0376-mobile-menu h4 {
  font-size: 1.2rem; color: var(--w0376-muted);
  text-transform: uppercase; letter-spacing: 1px; margin: 14px 4px 6px;
}
.w0376-mobile-menu a {
  display: block; padding: 11px 12px; border-radius: 10px;
  color: var(--w0376-text); font-size: 1.4rem; font-weight: 600;
  border-bottom: 1px solid var(--w0376-line);
}
.w0376-mobile-menu a:hover { background: rgba(186,85,211,0.15); }
.w0376-menu-cta {
  display: flex; gap: 8px; margin-top: 16px;
}
.w0376-menu-cta .w0376-btn { flex: 1; text-align: center; }

/* ---------- Hero / Carousel ---------- */
.w0376-carousel {
  position: relative; overflow: hidden; border-radius: 16px;
  margin: 12px; box-shadow: var(--w0376-shadow);
}
.w0376-carousel-track { display: flex; transition: transform .45s ease; }
.w0376-carousel-slide { position: relative; min-width: 100%; }
.w0376-carousel-slide img { width: 100%; height: 190px; object-fit: cover; }
.w0376-carousel-slide a { display: block; }
.w0376-carousel-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: #fff; padding: 22px 10px 8px; border-radius: 0 0 16px 16px;
  font-size: 1.3rem; font-weight: 700;
}
.w0376-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.w0376-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: 0; cursor: pointer;
}
.w0376-dot-active { background: var(--w0376-accent); transform: scale(1.25); }

/* ---------- H1 / titles ---------- */
.w0376-h1 {
  font-size: 2.2rem; line-height: 1.35; font-weight: 800;
  margin: 14px 12px 6px;
}
.w0376-h1 span { color: var(--w0376-accent); }
.w0376-subtitle {
  font-size: 1.4rem; color: var(--w0376-muted); margin: 0 12px 8px;
}
.w0376-section-title {
  font-size: 1.8rem; font-weight: 800; margin: 6px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.w0376-section-title i { color: var(--w0376-brand); }
.w0376-eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: rgba(186,85,211,0.18); color: var(--w0376-accent);
  font-size: 1.15rem; font-weight: 700; margin-bottom: 8px;
}

/* ---------- Promo CTA bar ---------- */
.w0376-cta-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 12px;
}
.w0376-cta-bar .w0376-btn { flex: 1 1 45%; text-align: center; }
.w0376-cta-primary {
  background: linear-gradient(135deg, var(--w0376-brand), var(--w0376-accent));
  color: #1a0f2e; padding: 12px 18px; font-size: 1.4rem; font-weight: 800;
  border-radius: 12px; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 22px rgba(186,85,211,0.5); cursor: pointer; border: 0;
}

/* ---------- Filter chips ---------- */
.w0376-filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 10px;
  scrollbar-width: none;
}
.w0376-filter-bar::-webkit-scrollbar { display: none; }
.w0376-filter-btn {
  white-space: nowrap; border: 1px solid var(--w0376-line);
  background: rgba(186,85,211,0.08); color: var(--w0376-text);
  padding: 7px 14px; border-radius: 999px; font-size: 1.25rem;
  font-weight: 700; cursor: pointer;
}
.w0376-filter-active {
  background: linear-gradient(135deg, var(--w0376-brand), var(--w0376-accent));
  color: #1a0f2e; border-color: transparent;
}

/* ---------- Game grid ---------- */
.w0376-game-section { padding: 10px 12px 4px; }
.w0376-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.w0376-card {
  background: var(--w0376-bg-2); border: 1px solid var(--w0376-line);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  display: flex; flex-direction: column;
}
.w0376-card:hover, .w0376-card:focus {
  transform: translateY(-3px);
  border-color: var(--w0376-brand);
  box-shadow: 0 10px 22px rgba(186,85,211,0.35);
}
.w0376-card-img { aspect-ratio: 1 / 1; background: #0a0a14; }
.w0376-card-img img { width: 100%; height: 100%; object-fit: cover; }
.w0376-card-name {
  font-size: 1.15rem; font-weight: 600; padding: 6px 8px;
  text-align: center; color: var(--w0376-text); line-height: 1.25;
  min-height: 34px; display: flex; align-items: center; justify-content: center;
}
.w0376-card-tag {
  font-size: 1rem; color: var(--w0376-gold); text-align: center;
  padding: 0 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---------- Content blocks ---------- */
.w0376-prose { font-size: 1.35rem; color: var(--w0376-text); line-height: 1.65; }
.w0376-prose p { margin-bottom: 10px; }
.w0376-prose h3 { font-size: 1.55rem; color: var(--w0376-accent); margin: 14px 0 6px; }
.w0376-prose ul { padding-left: 18px; margin-bottom: 10px; }
.w0376-prose li { margin-bottom: 4px; }
.w0376-prose a { color: var(--w0376-accent); font-weight: 600; border-bottom: 1px dashed rgba(204,153,255,0.4); }
.w0376-callout {
  background: rgba(186,85,211,0.10); border-left: 3px solid var(--w0376-brand);
  padding: 10px 12px; border-radius: 8px; margin: 10px 0;
  font-size: 1.3rem; color: var(--w0376-muted);
}

/* ---------- Feature cards ---------- */
.w0376-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w0376-feature {
  background: var(--w0376-bg-2); border: 1px solid var(--w0376-line);
  border-radius: 12px; padding: 12px;
}
.w0376-feature i { font-size: 2.2rem; color: var(--w0376-accent); margin-bottom: 6px; }
.w0376-feature h4 { font-size: 1.35rem; margin-bottom: 4px; }
.w0376-feature p { font-size: 1.2rem; color: var(--w0376-muted); line-height: 1.4; }

/* ---------- Testimonials ---------- */
.w0376-testi { display: flex; flex-direction: column; gap: 10px; }
.w0376-testi-item {
  background: var(--w0376-bg-2); border: 1px solid var(--w0376-line);
  border-radius: 12px; padding: 12px;
}
.w0376-testi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.w0376-testi-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--w0376-brand), var(--w0376-accent));
  color: #1a0f2e; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.w0376-testi-name { font-weight: 700; font-size: 1.3rem; }
.w0376-testi-stars { color: var(--w0376-gold); font-size: 1.1rem; }
.w0376-testi-text { font-size: 1.25rem; color: var(--w0376-muted); }

/* ---------- Winners ---------- */
.w0376-winners {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.w0376-winner {
  background: var(--w0376-bg-2); border: 1px solid var(--w0376-line);
  border-radius: 10px; padding: 8px 10px; font-size: 1.2rem;
}
.w0376-winner b { color: var(--w0376-gold); display: block; font-size: 1.4rem; }

/* ---------- Payment ---------- */
.w0376-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.w0376-pay-item {
  background: var(--w0376-bg-2); border: 1px solid var(--w0376-line);
  border-radius: 10px; padding: 8px 12px; font-size: 1.2rem; font-weight: 600;
}
.w0376-pay-item i { color: var(--w0376-accent); margin-right: 4px; }

/* ---------- App CTA ---------- */
.w0376-app-cta {
  background: linear-gradient(135deg, rgba(186,85,211,0.22), rgba(13,17,23,0.4));
  border: 1px solid var(--w0376-line); border-radius: 16px;
  padding: 16px; display: flex; gap: 12px; align-items: center;
}
.w0376-app-cta img { width: 110px; border-radius: 12px; }
.w0376-app-cta-body { flex: 1; }
.w0376-app-cta h4 { font-size: 1.45rem; margin-bottom: 4px; }
.w0376-app-cta p { font-size: 1.2rem; color: var(--w0376-muted); margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.w0376-faq-item {
  background: var(--w0376-bg-2); border: 1px solid var(--w0376-line);
  border-radius: 10px; margin-bottom: 8px; overflow: hidden;
}
.w0376-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: 1.3rem;
}
.w0376-faq-q i { transition: transform .2s; color: var(--w0376-accent); }
.w0376-faq-item.w0376-faq-open .w0376-faq-q i { transform: rotate(45deg); }
.w0376-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  padding: 0 14px; font-size: 1.25rem; color: var(--w0376-muted); line-height: 1.55;
}
.w0376-faq-open .w0376-faq-a { max-height: 280px; padding: 0 14px 12px; }

/* ---------- Footer ---------- */
.w0376-footer {
  background: var(--w0376-bg-2); border-top: 1px solid var(--w0376-line);
  padding: 22px 14px 96px;
}
.w0376-footer-about {
  font-size: 1.25rem; color: var(--w0376-muted); margin: 8px 0 14px; line-height: 1.55;
}
.w0376-footer h5 {
  font-size: 1.3rem; color: var(--w0376-accent);
  margin: 14px 0 8px; font-weight: 700;
}
.w0376-footer ul { list-style: none; }
.w0376-footer li { margin-bottom: 6px; }
.w0376-footer a { color: var(--w0376-muted); font-size: 1.2rem; }
.w0376-footer a:hover { color: var(--w0376-accent); }
.w0376-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px;
}
.w0376-footer-promo .w0376-btn { flex: 1 1 40%; text-align: center; font-size: 1.15rem; }
.w0376-footer-bottom {
  border-top: 1px solid var(--w0376-line); margin-top: 14px; padding-top: 10px;
  font-size: 1.1rem; color: var(--w0376-muted); text-align: center;
}

/* ---------- Bottom navigation ---------- */
.w0376-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px; z-index: 1000;
  background: rgba(13,17,23,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--w0376-line);
  display: flex; justify-content: space-around; align-items: stretch;
}
.w0376-nav-btn {
  flex: 1; background: transparent; border: 0; color: var(--w0376-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; font-size: 1.05rem; font-weight: 600;
  min-width: 60px; min-height: 60px; transition: color .15s ease, transform .15s ease;
}
.w0376-nav-btn i, .w0376-nav-btn span.material-icons-outlined,
.w0376-nav-btn ion-icon { font-size: 22px; }
.w0376-nav-btn ion-icon { font-size: 24px; }
.w0376-nav-btn:hover { color: var(--w0376-text); transform: translateY(-1px); }
.w0376-nav-current { color: var(--w0376-accent); }
.w0376-nav-current::after {
  content: ""; display: block; width: 26px; height: 3px;
  background: linear-gradient(90deg, var(--w0376-brand), var(--w0376-accent));
  border-radius: 3px; margin-top: 2px;
}

main { padding-bottom: 80px; }

/* ---------- Back to top ---------- */
.w0376-totop {
  position: fixed; right: 14px; bottom: 74px; z-index: 1001;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--w0376-brand), var(--w0376-accent));
  color: #1a0f2e; font-size: 1.8rem; cursor: pointer; box-shadow: var(--w0376-shadow);
}

/* ---------- Desktop layout ---------- */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .w0376-grid { grid-template-columns: repeat(5, 1fr); }
  .w0376-features { grid-template-columns: repeat(4, 1fr); }
  .w0376-winners { grid-template-columns: repeat(4, 1fr); }
  .w0376-bottom-nav { display: none; }
  main { padding-bottom: 24px; }
  .w0376-footer { padding-bottom: 24px; }
  .w0376-carousel-slide img { height: 320px; }
}
