/*!
 * kuving.sbs core stylesheet
 * Prefix: s2e4-
 * Palette: #0E1621 (bg) | #00CED1 (primary) | #0000FF (secondary)
 *          #E5E5E5 (text) | #87CEFA (accent) | #FAFAD2 (highlight)
 * Mobile-first, max viewport 430px. Root font 62.5% -> 1rem = 10px.
 */

:root {
  --s2e4-bg: #0E1621;
  --s2e4-bg-alt: #131f30;
  --s2e4-card: #18253a;
  --s2e4-primary: #00CED1;
  --s2e4-secondary: #0000FF;
  --s2e4-text: #E5E5E5;
  --s2e4-accent: #87CEFA;
  --s2e4-highlight: #FAFAD2;
  --s2e4-muted: #9fb0c6;
  --s2e4-border: rgba(0, 206, 209, 0.22);
  --s2e4-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --s2e4-radius: 14px;
}

* { 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", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(120% 60% at 50% 0%, #16243a 0%, var(--s2e4-bg) 60%);
  color: var(--s2e4-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--s2e4-accent); text-decoration: none; }

/* ============ Layout containers ============ */
.s2e4-wrapper { width: 100%; padding: 0 1.2rem; }
.s2e4-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s2e4-section { padding: 2.4rem 0; }
.s2e4-section-alt { background: var(--s2e4-bg-alt); }

/* ============ Header ============ */
.s2e4-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14, 22, 33, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s2e4-border);
}
.s2e4-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; gap: 0.8rem;
}
.s2e4-logo { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.s2e4-logo img { width: 2.8rem; height: 2.8rem; border-radius: 8px; }
.s2e4-logo span {
  font-size: 1.8rem; font-weight: 800; color: var(--s2e4-primary);
  letter-spacing: 0.3px; text-transform: lowercase;
}
.s2e4-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s2e4-menu-btn {
  background: transparent; border: 1px solid var(--s2e4-border);
  color: var(--s2e4-text); width: 3.6rem; height: 3.6rem;
  border-radius: 10px; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Buttons ============ */
.s2e4-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; min-height: 4.4rem; padding: 0 1.4rem;
  border: none; border-radius: 999px; cursor: pointer;
  font-size: 1.35rem; font-weight: 700; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.s2e4-btn:active { transform: scale(0.96); }
.s2e4-btn-primary {
  background: linear-gradient(135deg, var(--s2e4-primary), #00a3a6);
  color: #062028;
  box-shadow: 0 4px 14px rgba(0, 206, 209, 0.35);
}
.s2e4-btn-secondary {
  background: linear-gradient(135deg, var(--s2e4-secondary), #4b6bff);
  color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 255, 0.35);
}
.s2e4-btn-ghost {
  background: transparent; color: var(--s2e4-text);
  border: 1px solid var(--s2e4-border);
}
.s2e4-btn-sm { min-height: 3.6rem; padding: 0 1rem; font-size: 1.2rem; }
.s2e4-btn-block { display: flex; width: 100%; }
.s2e4-text-link {
  color: var(--s2e4-primary); font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px;
}
.s2e4-highlight { color: var(--s2e4-highlight); font-weight: 700; }

/* ============ Mobile menu ============ */
.s2e4-mobile-menu {
  position: fixed; top: 5.2rem; left: 0; right: 0;
  z-index: 9999;
  background: var(--s2e4-bg-alt);
  border-bottom: 1px solid var(--s2e4-border);
  padding: 0.6rem 1.2rem 1rem;
  transform: translateY(-140%); transition: transform 0.28s ease;
  box-shadow: var(--s2e4-shadow);
}
.s2e4-mobile-menu.s2e4-menu-open { transform: translateY(0); }
.s2e4-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 0.6rem; font-size: 1.4rem; color: var(--s2e4-text);
  border-bottom: 1px dashed rgba(135, 206, 250, 0.18);
}
.s2e4-mobile-menu a:last-child { border-bottom: none; }
.s2e4-mobile-menu a i { color: var(--s2e4-primary); font-size: 1.6rem; }

/* ============ Hero / Carousel ============ */
.s2e4-main { padding-top: 5.6rem; }
.s2e4-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--s2e4-radius); box-shadow: var(--s2e4-shadow);
}
.s2e4-slide {
  position: relative; display: none; cursor: pointer;
}
.s2e4-slide.s2e4-slide-active { display: block; }
.s2e4-slide img { width: 100%; height: 18rem; object-fit: cover; border-radius: var(--s2e4-radius); }
.s2e4-slide-caption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(14, 22, 33, 0.75); padding: 0.8rem 1rem;
  border-radius: 10px; border-left: 3px solid var(--s2e4-primary);
}
.s2e4-slide-caption strong { color: var(--s2e4-highlight); font-size: 1.4rem; display: block; }
.s2e4-slide-caption span { color: var(--s2e4-accent); font-size: 1.15rem; }
.s2e4-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 0 0;
}
.s2e4-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(135, 206, 250, 0.4); cursor: pointer;
}
.s2e4-dot.s2e4-dot-active { background: var(--s2e4-primary); width: 2rem; border-radius: 999px; }

/* ============ Section titles ============ */
.s2e4-title {
  font-size: 1.8rem; font-weight: 800; color: var(--s2e4-text);
  margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem;
}
.s2e4-title i { color: var(--s2e4-primary); font-size: 2rem; }
.s2e4-subtitle { color: var(--s2e4-muted); font-size: 1.3rem; margin-bottom: 1.2rem; }
.s2e4-title-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.s2e4-title-bar .s2e4-text-link { font-size: 1.2rem; }

/* ============ Hero banner ============ */
.s2e4-hero {
  background: linear-gradient(135deg, rgba(0, 206, 209, 0.15), rgba(0, 0, 255, 0.12));
  border-radius: var(--s2e4-radius); padding: 1.6rem;
  border: 1px solid var(--s2e4-border); margin-bottom: 1.2rem;
}
.s2e4-hero h1 {
  font-size: 2.2rem; line-height: 1.35; color: var(--s2e4-highlight);
  margin-bottom: 0.8rem; font-weight: 800;
}
.s2e4-hero p { color: var(--s2e4-text); font-size: 1.3rem; margin-bottom: 1.2rem; }
.s2e4-hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============ Game grid ============ */
.s2e4-filter-row {
  display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.8rem;
  margin-bottom: 1rem; scrollbar-width: none;
}
.s2e4-filter-row::-webkit-scrollbar { display: none; }
.s2e4-filter-btn {
  flex: 0 0 auto; min-height: 3.6rem; padding: 0 1.2rem;
  background: var(--s2e4-card); border: 1px solid var(--s2e4-border);
  color: var(--s2e4-text); border-radius: 999px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.s2e4-filter-btn.s2e4-filter-active {
  background: linear-gradient(135deg, var(--s2e4-primary), #00a3a6);
  color: #062028; border-color: transparent;
}
.s2e4-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.s2e4-card {
  background: var(--s2e4-card); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--s2e4-border); cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.s2e4-card:active { transform: scale(0.96); }
.s2e4-card-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: #0a1320;
}
.s2e4-card-name {
  padding: 0.6rem 0.5rem; font-size: 1.1rem; color: var(--s2e4-text);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600;
}
.s2e4-card-type {
  display: block; text-align: center; font-size: 0.95rem;
  color: var(--s2e4-primary); padding: 0 0 0.5rem; font-weight: 700;
}

/* ============ Info / features blocks ============ */
.s2e4-card-box {
  background: var(--s2e4-card); border-radius: var(--s2e4-radius);
  padding: 1.4rem; border: 1px solid var(--s2e4-border); margin-bottom: 1rem;
}
.s2e4-card-box h3 { color: var(--s2e4-highlight); font-size: 1.5rem; margin-bottom: 0.6rem; }
.s2e4-card-box p { color: var(--s2e4-text); font-size: 1.25rem; margin-bottom: 0.6rem; }
.s2e4-card-box ul { list-style: none; padding: 0; }
.s2e4-card-box li {
  padding: 0.5rem 0 0.5rem 1.8rem; position: relative;
  font-size: 1.2rem; color: var(--s2e4-text);
}
.s2e4-card-box li::before {
  content: "▸"; position: absolute; left: 0.4rem; color: var(--s2e4-primary); font-weight: 800;
}

/* ============ Promo / stat strips ============ */
.s2e4-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
  margin: 1rem 0;
}
.s2e4-stat {
  background: var(--s2e4-card); border-radius: 10px; padding: 0.8rem;
  text-align: center; border: 1px solid var(--s2e4-border);
}
.s2e4-stat b { display: block; color: var(--s2e4-primary); font-size: 1.6rem; }
.s2e4-stat span { color: var(--s2e4-muted); font-size: 1rem; }

.s2e4-promo-strip {
  background: linear-gradient(135deg, #1c2c44, #102542);
  border-radius: var(--s2e4-radius); padding: 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  border: 1px solid var(--s2e4-border); margin-bottom: 1rem;
}
.s2e4-promo-strip div h4 { color: var(--s2e4-highlight); font-size: 1.35rem; }
.s2e4-promo-strip div p { color: var(--s2e4-muted); font-size: 1.05rem; }

/* ============ Testimonials ============ */
.s2e4-review {
  background: var(--s2e4-card); border-radius: 12px; padding: 1rem;
  border-left: 3px solid var(--s2e4-primary); margin-bottom: 0.8rem;
}
.s2e4-review-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.s2e4-review-head b { color: var(--s2e4-highlight); font-size: 1.2rem; }
.s2e4-review-stars { color: var(--s2e4-highlight); font-size: 1.1rem; }
.s2e4-review p { color: var(--s2e4-text); font-size: 1.2rem; }

/* ============ Payment ============ */
.s2e4-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s2e4-pay {
  background: var(--s2e4-card); padding: 0.6rem 1rem; border-radius: 10px;
  border: 1px solid var(--s2e4-border); font-size: 1.1rem; color: var(--s2e4-text);
  display: flex; align-items: center; gap: 0.4rem;
}
.s2e4-pay i { color: var(--s2e4-primary); }

/* ============ FAQ ============ */
.s2e4-faq-item {
  background: var(--s2e4-card); border-radius: 10px; padding: 0.8rem 1rem;
  margin-bottom: 0.6rem; border: 1px solid var(--s2e4-border);
}
.s2e4-faq-item h4 { color: var(--s2e4-highlight); font-size: 1.25rem; margin-bottom: 0.4rem; }
.s2e4-faq-item p { color: var(--s2e4-text); font-size: 1.15rem; }

/* ============ Footer ============ */
.s2e4-footer {
  background: #0a111c; border-top: 1px solid var(--s2e4-border);
  padding: 2rem 0 8.5rem; margin-top: 1.5rem;
}
.s2e4-footer p { color: var(--s2e4-muted); font-size: 1.15rem; margin-bottom: 1rem; }
.s2e4-footer h4 { color: var(--s2e4-primary); font-size: 1.3rem; margin: 0.8rem 0 0.5rem; }
.s2e4-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem;
}
.s2e4-footer-links a {
  font-size: 1.1rem; color: var(--s2e4-text);
  background: var(--s2e4-card); padding: 0.4rem 0.8rem; border-radius: 8px;
  border: 1px solid var(--s2e4-border);
}
.s2e4-footer-copy { color: var(--s2e4-muted); font-size: 1.05rem; border-top: 1px dashed var(--s2e4-border); padding-top: 0.8rem; }

/* ============ Mobile bottom nav ============ */
.s2e4-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 6rem; background: rgba(10, 17, 28, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--s2e4-border);
  display: flex; justify-content: space-around; align-items: stretch;
}
.s2e4-bottom-btn {
  flex: 1; min-width: 6rem; min-height: 6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; background: transparent; border: none; cursor: pointer;
  color: var(--s2e4-muted); font-size: 1rem; font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
}
.s2e4-bottom-btn i, .s2e4-bottom-btn span.material-symbols-outlined,
.s2e4-bottom-btn ion-icon { font-size: 2.2rem; }
.s2e4-bottom-btn ion-icon { font-size: 2.4rem; }
.s2e4-bottom-btn:active { transform: scale(0.92); }
.s2e4-bottom-btn.s2e4-active { color: var(--s2e4-primary); }
.s2e4-bottom-btn.s2e4-promo { color: var(--s2e4-highlight); }
.s2e4-bottom-btn.s2e4-promo i { color: var(--s2e4-highlight); }

/* ============ Back to top ============ */
.s2e4-top-btn {
  position: fixed; right: 1.2rem; bottom: 7rem; z-index: 900;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--s2e4-primary); color: #062028; border: none;
  font-size: 1.8rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease; box-shadow: var(--s2e4-shadow);
}
.s2e4-top-btn.s2e4-top-visible { opacity: 1; pointer-events: auto; }

/* ============ Desktop ============ */
@media (min-width: 769px) {
  body { max-width: 430px; box-shadow: 0 0 40px rgba(0, 0, 0, 0.4); }
  .s2e4-bottom-nav { display: none; }
  .s2e4-footer { padding-bottom: 2rem; }
}

/* Mobile clearance for fixed bottom nav */
@media (max-width: 768px) {
  .s2e4-main, main { padding-bottom: 8rem; }
}
