/* ============================================================
   jili58 - layout-2ed3.css
   Prefix: s2ed-  |  All custom classes prefixed.
   Palette: #708090 (slate gray) + #0A0A0A (near-black bg)
   Mobile-first, max-width: 430px.
   ============================================================ */

:root {
  --s2ed-primary: #708090;
  --s2ed-primary-dark: #4f5b68;
  --s2ed-primary-light: #9aa8b5;
  --s2ed-bg: #0A0A0A;
  --s2ed-bg-soft: #141414;
  --s2ed-bg-card: #1c1c1c;
  --s2ed-text: #f1f3f5;
  --s2ed-text-muted: #9aa3ad;
  --s2ed-accent: #ffb020;
  --s2ed-accent-2: #ff5a3c;
  --s2ed-border: #2a2f36;
  --s2ed-radius: 12px;
  --s2ed-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --s2ed-gradient: linear-gradient(135deg, #708090 0%, #0A0A0A 100%);
}

/* Base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  background: var(--s2ed-bg);
  color: var(--s2ed-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--s2ed-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Mobile-first container: hard 430px cap */
.s2ed-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}
.s2ed-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.s2ed-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--s2ed-border);
  backdrop-filter: saturate(140%) blur(8px);
}
.s2ed-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.s2ed-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s2ed-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.s2ed-brand img { width: 28px; height: 28px; border-radius: 6px; }
.s2ed-brand .s2ed-badge {
  background: var(--s2ed-accent);
  color: #1a1206;
  font-size: 1rem;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
}
.s2ed-head-actions { display: flex; align-items: center; gap: 0.5rem; }
.s2ed-menu-btn {
  background: transparent;
  border: 1px solid var(--s2ed-border);
  color: var(--s2ed-text);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.s2ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.8rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.s2ed-btn:active { transform: scale(0.96); }
.s2ed-btn-login {
  background: transparent;
  color: var(--s2ed-text);
  border: 1px solid var(--s2ed-primary);
}
.s2ed-btn-register {
  background: var(--s2ed-gradient);
  color: #fff;
  box-shadow: var(--s2ed-shadow);
}
.s2ed-btn-cta {
  background: var(--s2ed-accent);
  color: #1a1206;
  box-shadow: var(--s2ed-shadow);
}
.s2ed-btn-ghost {
  background: transparent;
  color: var(--s2ed-text);
  border: 1px solid var(--s2ed-border);
}

/* Expandable nav menu */
.s2ed-nav-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: var(--s2ed-bg-soft);
  border-top: 1px solid var(--s2ed-border);
}
.s2ed-nav-menu.s2ed-open { max-height: 480px; }
.s2ed-nav-menu ul {
  max-width: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  padding: 0.8rem 1rem;
}
.s2ed-nav-menu a {
  display: block;
  padding: 1rem;
  border-radius: 8px;
  background: var(--s2ed-bg-card);
  color: var(--s2ed-text);
  border: 1px solid var(--s2ed-border);
  font-size: 1.35rem;
}

/* ===== Main / Hero ===== */
.s2ed-main { padding-top: 5.6rem; }
@media (max-width: 768px) {
  .s2ed-main { padding-bottom: 8rem; }
}
.s2ed-section { padding: 2rem 0; }
.s2ed-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s2ed-section-title i { color: var(--s2ed-accent); }
.s2ed-lead {
  color: var(--s2ed-text-muted);
  font-size: 1.4rem;
  line-height: 2.4rem;
  margin-bottom: 1rem;
}

/* Hero carousel */
.s2ed-carousel {
  position: relative;
  border-radius: var(--s2ed-radius);
  overflow: hidden;
  box-shadow: var(--s2ed-shadow);
  margin-bottom: 1.2rem;
}
.s2ed-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.s2ed-slide.s2ed-active { display: block; }
.s2ed-slide img { width: 100%; height: 180px; object-fit: cover; }
.s2ed-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
}
.s2ed-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
}
.s2ed-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}

/* Promo strip */
.s2ed-promo-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.s2ed-chip {
  flex: 0 0 auto;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--s2ed-bg-card);
  border: 1px solid var(--s2ed-border);
  color: var(--s2ed-text);
  font-size: 1.25rem;
  white-space: nowrap;
}

/* ===== Game grid ===== */
.s2ed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.s2ed-card {
  background: var(--s2ed-bg-card);
  border: 1px solid var(--s2ed-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
  display: block;
  color: var(--s2ed-text);
}
.s2ed-card:active { transform: scale(0.96); border-color: var(--s2ed-primary); }
.s2ed-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.s2ed-card-name {
  padding: 0.5rem 0.4rem 0.6rem;
  font-size: 1.15rem;
  text-align: center;
  color: var(--s2ed-text);
  line-height: 1.4rem;
  min-height: 2.8rem;
}
.s2ed-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.6rem 0 0.8rem;
}
.s2ed-cat-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
}
.s2ed-cat-tag {
  font-size: 1.15rem;
  color: var(--s2ed-primary-light);
}

/* Generic card / panel */
.s2ed-panel {
  background: var(--s2ed-bg-card);
  border: 1px solid var(--s2ed-border);
  border-radius: var(--s2ed-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.s2ed-panel h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.s2ed-panel p { color: var(--s2ed-text-muted); line-height: 2.2rem; font-size: 1.35rem; }

/* Stats grid */
.s2ed-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.s2ed-stat {
  background: var(--s2ed-bg-card);
  border: 1px solid var(--s2ed-border);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}
.s2ed-stat .s2ed-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--s2ed-accent);
}
.s2ed-stat .s2ed-lbl { font-size: 1.15rem; color: var(--s2ed-text-muted); }

/* Steps */
.s2ed-steps { counter-reset: step; }
.s2ed-step {
  position: relative;
  padding: 0.8rem 0 0.8rem 3.4rem;
  border-bottom: 1px dashed var(--s2ed-border);
}
.s2ed-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0.6rem;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--s2ed-gradient);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s2ed-step h4 { font-size: 1.35rem; margin-bottom: 0.2rem; }
.s2ed-step p { color: var(--s2ed-text-muted); font-size: 1.25rem; line-height: 2rem; }

/* Testimonials */
.s2ed-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.s2ed-tile {
  background: var(--s2ed-bg-card);
  border: 1px solid var(--s2ed-border);
  border-radius: 10px;
  padding: 0.8rem;
}
.s2ed-tile .s2ed-who { font-weight: 700; font-size: 1.25rem; }
.s2ed-tile .s2ed-stars { color: var(--s2ed-accent); font-size: 1.1rem; }
.s2ed-tile p { color: var(--s2ed-text-muted); font-size: 1.2rem; line-height: 1.8rem; margin-top: 0.3rem; }

/* Payments */
.s2ed-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.s2ed-pay .s2ed-pay-item {
  flex: 1 1 calc(33.33% - 0.5rem);
  background: var(--s2ed-bg-card);
  border: 1px solid var(--s2ed-border);
  border-radius: 8px;
  padding: 0.7rem;
  text-align: center;
  font-size: 1.15rem;
  color: var(--s2ed-text);
}
.s2ed-pay .s2ed-pay-item i { font-size: 2rem; color: var(--s2ed-primary-light); display: block; margin-bottom: 0.2rem; }

/* CTA band */
.s2ed-cta-band {
  background: var(--s2ed-gradient);
  border-radius: var(--s2ed-radius);
  padding: 1.4rem;
  text-align: center;
  color: #fff;
  margin: 1.2rem 0;
}
.s2ed-cta-band h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.s2ed-cta-band p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 0.8rem; }

/* Inline promo link (text style, not a button) */
.s2ed-text-link {
  color: var(--s2ed-accent);
  font-weight: 700;
  cursor: pointer;
}
.s2ed-text-link:hover { text-decoration: underline; }

/* ===== Footer ===== */
.s2ed-footer {
  background: var(--s2ed-bg-soft);
  border-top: 1px solid var(--s2ed-border);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}
.s2ed-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}
.s2ed-footer-links a {
  color: var(--s2ed-text-muted);
  font-size: 1.2rem;
  padding: 0.4rem 0;
}
.s2ed-footer-copy {
  color: var(--s2ed-text-muted);
  font-size: 1.1rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--s2ed-border);
}
.s2ed-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}

/* ===== Mobile bottom navigation ===== */
.s2ed-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 6rem;
  background: rgba(10, 10, 10, 0.98);
  border-top: 1px solid var(--s2ed-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  backdrop-filter: blur(8px);
}
.s2ed-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--s2ed-text-muted);
  font-size: 1.05rem;
  min-width: 60px;
  min-height: 60px;
  gap: 0.2rem;
  position: relative;
  cursor: pointer;
}
.s2ed-bottomnav a i,
.s2ed-bottomnav a span.material-icons-outlined {
  font-size: 22px;
}
.s2ed-bottomnav a.s2ed-current {
  color: var(--s2ed-accent);
}
.s2ed-bottomnav a.s2ed-current::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--s2ed-accent);
}
.s2ed-bottomnav a:active { transform: scale(0.92); }
.s2ed-bottomnav .s2ed-badge-num {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--s2ed-accent-2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 0.4rem;
  min-width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  text-align: center;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .s2ed-bottomnav { display: none; }
  .s2ed-main { padding-bottom: 0; }
}

/* Desktop guard: keep layout centered & narrow */
@media (min-width: 431px) {
  body { background: #050505; }
}

/* Utility */
.s2ed-center { text-align: center; }
.s2ed-mt { margin-top: 1.2rem; }
.s2ed-mb { margin-bottom: 1.2rem; }
.s2ed-hidden { display: none !important; }
