/* ============================================================
 * JL MMM - design-e50e.css
 * Mobile-first responsive design (max 430px width target)
 * All class names use the we50e- prefix.
 * Palette: #00CED1 cyan | #4169E1 royal | #5F9EA0 cadet | #212F3D deep ink
 * ========================================================== */

:root {
  --we50e-primary: #00CED1;
  --we50e-royal: #4169E1;
  --we50e-cadet: #5F9EA0;
  --we50e-bg: #0E1B26;
  --we50e-bg-2: #142536;
  --we50e-ink: #212F3D;
  --we50e-card: #1A2C3E;
  --we50e-text: #EAF6F7;
  --we50e-muted: #9FB3C0;
  --we50e-gold: #F5C451;
  --we50e-border: rgba(0, 206, 209, 0.22);
  --we50e-radius: 14px;
  --we50e-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --we50e-header-h: 56px;
  --we50e-nav-h: 64px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  background: linear-gradient(180deg, var(--we50e-bg) 0%, var(--we50e-ink) 100%);
  color: var(--we50e-text);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

.we50e-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.we50e-wrapper { width: 100%; }

/* ---------------- Header ---------------- */
.we50e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--we50e-header-h);
  background: linear-gradient(90deg, #0c1722 0%, #16304a 100%);
  border-bottom: 1px solid var(--we50e-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.we50e-header .we50e-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}
.we50e-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.7rem;
  color: #fff; letter-spacing: 0.3px;
}
.we50e-brand .we50e-logo {
  width: 30px; height: 30px;
  background: radial-gradient(circle at 30% 30%, var(--we50e-primary), var(--we50e-royal));
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #06222a; font-weight: 900; font-size: 1.4rem;
  box-shadow: 0 0 12px rgba(0,206,209,0.6);
}
.we50e-brand span { color: var(--we50e-primary); }

.we50e-header-actions { display: flex; align-items: center; gap: 8px; }
.we50e-btn {
  border: none; cursor: pointer;
  font-weight: 700; font-size: 1.3rem;
  padding: 8px 14px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px;
}
.we50e-btn:active { transform: scale(0.96); }
.we50e-btn-login {
  background: transparent;
  color: var(--we50e-primary);
  border: 1px solid var(--we50e-primary);
}
.we50e-btn-register {
  background: linear-gradient(90deg, var(--we50e-gold), #ff8a3c);
  color: #2a1a02;
  box-shadow: 0 4px 14px rgba(245,196,81,0.35);
}
.we50e-menu-toggle {
  background: transparent; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; padding: 4px 6px;
  display: inline-flex; align-items: center;
}

/* ---------------- Mobile menu ---------------- */
.we50e-mobile-menu {
  position: fixed;
  top: var(--we50e-header-h); left: 0; right: 0;
  background: #0c1722;
  border-bottom: 1px solid var(--we50e-border);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.we50e-mobile-menu.we50e-open { max-height: 460px; }
.we50e-mobile-menu .we50e-container { padding: 8px 14px 16px; }
.we50e-mobile-menu a {
  display: block;
  padding: 12px 10px;
  color: var(--we50e-text);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.45rem;
}
.we50e-mobile-menu a:last-child { border-bottom: none; }
.we50e-mobile-menu a i { margin-right: 10px; color: var(--we50e-primary); }

/* ---------------- Main ---------------- */
main { padding-top: calc(var(--we50e-header-h) + 8px); padding-bottom: 16px; }

/* ---------------- Hero / Carousel ---------------- */
.we50e-hero {
  position: relative;
  border-radius: var(--we50e-radius);
  overflow: hidden;
  margin-top: 12px;
  box-shadow: var(--we50e-shadow);
  border: 1px solid var(--we50e-border);
}
.we50e-hero-track { position: relative; }
.we50e-hero-art { width: 100%; max-height: 110px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; opacity: .88; }
.we50e-hero-slide {
  display: none;
  position: relative;
  padding: 22px 18px 26px;
  min-height: 180px;
  background: linear-gradient(120deg, #13314f 0%, #1f5d8c 60%, #00CED1 130%);
}
.we50e-hero-slide.we50e-active { display: block; }
.we50e-hero-slide.alt {
  background: linear-gradient(120deg, #2a1a52 0%, #5b2a86 60%, #4169E1 130%);
}
.we50e-hero-slide.alt2 {
  background: linear-gradient(120deg, #143a2a 0%, #1f6d4a 60%, #5F9EA0 130%);
}
.we50e-hero h2 {
  font-size: 2rem; color: #fff; margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.we50e-hero p { color: #eafdfd; font-size: 1.35rem; margin-bottom: 12px; }
.we50e-hero .we50e-btn-cta {
  background: var(--we50e-gold); color: #2a1a02;
  font-weight: 800; padding: 9px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.we50e-hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; display: flex; justify-content: space-between;
  pointer-events: none;
}
.we50e-hero-prev, .we50e-hero-next {
  pointer-events: auto;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.4); color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.6rem; margin: 0 8px;
}
.we50e-hero-dots {
  display: flex; gap: 6px; justify-content: center;
  padding: 8px 0 4px; background: rgba(0,0,0,0.25);
}
.we50e-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.we50e-hero-dot.we50e-active { background: var(--we50e-primary); width: 18px; border-radius: 6px; }

/* ---------------- Section / titles ---------------- */
.we50e-section { margin: 22px 0; }
.we50e-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.we50e-section-title {
  font-size: 1.75rem; font-weight: 800; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.we50e-section-title i { color: var(--we50e-primary); }
.we50e-section-more {
  font-size: 1.25rem; color: var(--we50e-primary);
}

/* ---------------- Filter tabs ---------------- */
.we50e-filter {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 6px 0 12px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.we50e-filter::-webkit-scrollbar { display: none; }
.we50e-filter-tab {
  flex: 0 0 auto;
  padding: 7px 14px; border-radius: 999px;
  background: var(--we50e-card);
  color: var(--we50e-muted);
  border: 1px solid var(--we50e-border);
  font-size: 1.25rem; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.we50e-filter-tab.we50e-active {
  background: linear-gradient(90deg, var(--we50e-primary), var(--we50e-royal));
  color: #06222a; border-color: transparent;
}

/* ---------------- Game grid ---------------- */
.we50e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.we50e-card {
  background: var(--we50e-card);
  border: 1px solid var(--we50e-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.we50e-card:active { transform: scale(0.97); }
.we50e-card-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: #0b1620;
}
.we50e-card-body { padding: 6px 8px 9px; }
.we50e-card-name {
  font-size: 1.15rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.we50e-card-tag {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,206,209,0.9); color: #06222a;
  font-size: 1rem; font-weight: 700;
  padding: 2px 6px; border-radius: 6px;
}
.we50e-card-tag.hot { background: #ff5a5a; color: #fff; }

/* ---------------- Feature blocks ---------------- */
.we50e-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.we50e-feature {
  background: var(--we50e-card);
  border: 1px solid var(--we50e-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.we50e-feature i { font-size: 2.4rem; color: var(--we50e-primary); margin-bottom: 6px; }
.we50e-feature h3 { font-size: 1.35rem; color: #fff; margin-bottom: 4px; }
.we50e-feature p { font-size: 1.2rem; color: var(--we50e-muted); }

/* ---------------- SEO content blocks ---------------- */
.we50e-prose {
  background: var(--we50e-bg-2);
  border: 1px solid var(--we50e-border);
  border-radius: var(--we50e-radius);
  padding: 16px;
  margin: 18px 0;
}
.we50e-prose h2 {
  font-size: 1.7rem; color: #fff; margin-bottom: 8px;
}
.we50e-prose h3 {
  font-size: 1.4rem; color: var(--we50e-primary); margin: 12px 0 6px;
}
.we50e-prose p {
  font-size: 1.3rem; color: var(--we50e-text); margin-bottom: 10px;
  line-height: 1.6;
}
.we50e-prose ul { padding-left: 18px; margin-bottom: 10px; }
.we50e-prose li { font-size: 1.3rem; color: var(--we50e-text); margin-bottom: 5px; line-height: 1.55; }
.we50e-prose a { color: var(--we50e-primary); text-decoration: underline; font-weight: 600; }

/* ---------------- Steps ---------------- */
.we50e-steps { display: grid; gap: 10px; }
.we50e-step {
  display: flex; gap: 10px;
  background: var(--we50e-card);
  border: 1px solid var(--we50e-border);
  border-radius: 12px; padding: 12px;
}
.we50e-step-num {
  flex: 0 0 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--we50e-primary), var(--we50e-royal));
  color: #06222a; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.we50e-step h4 { font-size: 1.35rem; color: #fff; margin-bottom: 3px; }
.we50e-step p { font-size: 1.2rem; color: var(--we50e-muted); }

/* ---------------- FAQ ---------------- */
.we50e-faq-item {
  background: var(--we50e-card);
  border: 1px solid var(--we50e-border);
  border-radius: 10px; margin-bottom: 8px;
  overflow: hidden;
}
.we50e-faq-head {
  width: 100%; text-align: left;
  background: transparent; border: none; cursor: pointer;
  padding: 12px 14px;
  color: #fff; font-size: 1.35rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.we50e-faq-head i { color: var(--we50e-primary); transition: transform .2s; }
.we50e-faq-item.we50e-open .we50e-faq-head i { transform: rotate(45deg); }
.we50e-faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
}
.we50e-faq-item.we50e-open .we50e-faq-body {
  max-height: 360px; padding: 0 14px 12px;
}
.we50e-faq-body p { font-size: 1.25rem; color: var(--we50e-muted); line-height: 1.55; }

/* ---------------- CTA strip ---------------- */
.we50e-cta {
  background: linear-gradient(120deg, #4169E1 0%, #00CED1 130%);
  border-radius: var(--we50e-radius);
  padding: 18px; text-align: center;
  margin: 20px 0;
  box-shadow: var(--we50e-shadow);
}
.we50e-cta h3 { font-size: 1.7rem; color: #06222a; margin-bottom: 6px; }
.we50e-cta p { font-size: 1.3rem; color: #0e2b3a; margin-bottom: 12px; }
.we50e-cta .we50e-btn-cta {
  background: #06222a; color: var(--we50e-primary);
  font-weight: 800; padding: 10px 22px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------------- Footer ---------------- */
.we50e-footer {
  background: #0a141d;
  border-top: 1px solid var(--we50e-border);
  padding: 20px 14px 24px;
  margin-top: 20px;
}
.we50e-footer .we50e-container { max-width: 100%; }
.we50e-footer-about { font-size: 1.2rem; color: var(--we50e-muted); margin-bottom: 14px; line-height: 1.55; }
.we50e-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px; margin-bottom: 14px;
}
.we50e-footer-links a {
  font-size: 1.2rem; color: var(--we50e-muted);
}
.we50e-footer-links a:hover { color: var(--we50e-primary); }
.we50e-promo-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.we50e-promo-btn {
  background: linear-gradient(90deg, var(--we50e-gold), #ff8a3c);
  color: #2a1a02; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  font-size: 1.2rem; border: none; cursor: pointer;
}
.we50e-promo-btn.alt {
  background: linear-gradient(90deg, var(--we50e-primary), var(--we50e-royal));
  color: #06222a;
}
.we50e-copyright {
  text-align: center; font-size: 1.15rem; color: var(--we50e-muted);
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px;
}

/* ---------------- Bottom nav ---------------- */
.we50e-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--we50e-nav-h);
  background: linear-gradient(180deg, #0e1f2e 0%, #0a141d 100%);
  border-top: 1px solid var(--we50e-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.we50e-bottom-nav-btn {
  flex: 1;
  background: transparent; border: none;
  color: var(--we50e-muted);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; cursor: pointer;
  min-width: 60px; min-height: 60px;
  font-size: 1.05rem;
  transition: color .15s ease, transform .15s ease;
  position: relative;
}
.we50e-bottom-nav-btn i, .we50e-bottom-nav-btn .material-icons,
.we50e-bottom-nav-btn ion-icon {
  font-size: 24px;
}
.we50e-bottom-nav-btn ion-icon { font-size: 26px; }
.we50e-bottom-nav-btn .material-icons { font-size: 24px; }
.we50e-bottom-nav-btn:hover { color: #fff; }
.we50e-bottom-nav-btn:active { transform: scale(0.92); }
.we50e-bottom-nav-btn.active { color: var(--we50e-primary); }
.we50e-bottom-nav-btn.active::before {
  content: ''; position: absolute; top: 0;
  width: 30px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--we50e-primary);
}
.we50e-bottom-nav-btn.is-promo { color: var(--we50e-gold); }
.we50e-bottom-nav-btn.is-promo ion-icon { filter: drop-shadow(0 0 6px rgba(245,196,81,0.6)); }

/* ---------------- Responsive ---------------- */
@media (min-width: 431px) {
  .we50e-container { max-width: 760px; }
  .we50e-grid { grid-template-columns: repeat(4, 1fr); }
  .we50e-features { grid-template-columns: repeat(4, 1fr); }
  .we50e-footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 769px) {
  .we50e-bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .we50e-menu-toggle { display: none; }
  .we50e-grid { grid-template-columns: repeat(6, 1fr); }
  .we50e-hero-slide { min-height: 240px; padding: 36px 28px; }
  .we50e-hero h2 { font-size: 2.6rem; }
}
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--we50e-nav-h) + 16px); }
}

/* ---------------- Helpers ---------------- */
.we50e-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;
}
.we50e-divider {
  height: 1px; background: var(--we50e-border);
  margin: 18px 0; border: none;
}
.we50e-badge-row {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px;
}
.we50e-badge {
  background: rgba(0,206,209,0.12);
  color: var(--we50e-primary);
  border: 1px solid var(--we50e-border);
  padding: 4px 10px; border-radius: 999px;
  font-size: 1.1rem; font-weight: 600;
}
.we50e-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin: 12px 0;
}
.we50e-stat {
  background: var(--we50e-card);
  border: 1px solid var(--we50e-border);
  border-radius: 10px; padding: 10px; text-align: center;
}
.we50e-stat-num {
  font-size: 1.7rem; font-weight: 800; color: var(--we50e-primary);
}
.we50e-stat-label { font-size: 1.05rem; color: var(--we50e-muted); }
