/* CS168 Theme: all custom classes use s0e4- prefix; palette #FF4500/#273746/#FF6347/#E0F2F1/#FFCC02. */
:root {
  --s0e4-primary: #FF4500;
  --s0e4-secondary: #FF6347;
  --s0e4-accent: #FFCC02;
  --s0e4-bg: #273746;
  --s0e4-bg-deep: #1c2832;
  --s0e4-bg-soft: #324757;
  --s0e4-text: #E0F2F1;
  --s0e4-text-dim: #b9cdd0;
  --s0e4-border: rgba(224, 242, 241, 0.12);
  --s0e4-radius: 12px;
  --s0e4-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  --s0e4-header-h: 56px;
  --s0e4-bottom-h: 62px;
}

* { 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", "Roboto", "Noto Sans", Arial, sans-serif;
  background: var(--s0e4-bg);
  color: var(--s0e4-text);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--s0e4-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.s0e4-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.s0e4-wrapper { padding: 14px 12px; }
.s0e4-no-scroll { overflow: hidden; }

/* ===== Header ===== */
.s0e4-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--s0e4-bg-deep), var(--s0e4-bg));
  border-bottom: 1px solid var(--s0e4-border);
  box-shadow: var(--s0e4-shadow);
}
.s0e4-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--s0e4-header-h);
  padding: 0 10px;
}
.s0e4-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--s0e4-accent);
}
.s0e4-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s0e4-logo span { color: var(--s0e4-text); }
.s0e4-header-actions { display: flex; align-items: center; gap: 6px; }
.s0e4-icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 18px; color: var(--s0e4-text);
}
.s0e4-icon-btn:active { background: rgba(255, 255, 255, 0.08); }

.s0e4-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700; font-size: 1.35rem;
  min-height: 38px;
  transition: transform .15s ease, opacity .15s ease;
}
.s0e4-btn:active { transform: scale(0.96); }
.s0e4-btn-register {
  background: linear-gradient(135deg, var(--s0e4-primary), var(--s0e4-secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}
.s0e4-btn-login {
  background: transparent;
  color: var(--s0e4-accent);
  border: 1px solid var(--s0e4-accent);
}
.s0e4-btn-ghost {
  background: var(--s0e4-bg-soft);
  color: var(--s0e4-text);
  padding: 10px 16px;
}

/* ===== Mobile menu (drawer) ===== */
.s0e4-mobile-menu {
  position: fixed;
  top: 0; left: -100%;
  width: 82%; max-width: 320px;
  height: 100%;
  background: var(--s0e4-bg-deep);
  z-index: 9999;
  padding: 20px 16px;
  transition: left .28s ease;
  overflow-y: auto;
  border-right: 1px solid var(--s0e4-border);
}
.s0e4-mobile-menu.s0e4-menu-open { left: 0; }
.s0e4-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  display: none;
}
.s0e4-menu-overlay.s0e4-menu-open { display: block; }
.s0e4-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--s0e4-border);
}
.s0e4-menu-head h3 { font-size: 1.8rem; color: var(--s0e4-accent); }
.s0e4-menu-close { font-size: 22px; color: var(--s0e4-text); }
.s0e4-menu-list { list-style: none; }
.s0e4-menu-list li { margin-bottom: 6px; }
.s0e4-menu-list a {
  display: block; padding: 12px 12px;
  color: var(--s0e4-text);
  border-radius: 8px;
  font-size: 1.5rem;
}
.s0e4-menu-list a:active { background: var(--s0e4-bg-soft); }
.s0e4-menu-list .material-icons,
.s0e4-menu-list i { vertical-align: middle; margin-right: 8px; color: var(--s0e4-accent); }

/* ===== Carousel ===== */
.s0e4-carousel {
  position: relative;
  border-radius: var(--s0e4-radius);
  overflow: hidden;
  margin: 12px 0;
  box-shadow: var(--s0e4-shadow);
}
.s0e4-slide {
  position: relative; display: none;
}
.s0e4-slide.s0e4-slide-active { display: block; }
.s0e4-slide img { width: 100%; height: 180px; object-fit: cover; }
.s0e4-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.65) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
}
.s0e4-slide-title { color: #fff; font-size: 1.9rem; font-weight: 800; margin-bottom: 4px; }
.s0e4-slide-sub { color: var(--s0e4-text); font-size: 1.3rem; margin-bottom: 8px; }
.s0e4-slide-cta {
  display: inline-block; align-self: flex-start;
  background: linear-gradient(135deg, var(--s0e4-primary), var(--s0e4-accent));
  color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 1.3rem;
}
.s0e4-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.4); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.s0e4-carousel-arrow.prev { left: 8px; }
.s0e4-carousel-arrow.next { right: 8px; }
.s0e4-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.s0e4-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.s0e4-dot.s0e4-dot-active { background: var(--s0e4-accent); }

/* ===== Section titles ===== */
.s0e4-section { margin: 18px 0; }
.s0e4-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.8rem; font-weight: 800; color: var(--s0e4-accent);
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--s0e4-border);
}
.s0e4-section-title .material-icons,
.s0e4-section-title i { color: var(--s0e4-primary); font-size: 22px; }

/* ===== H1 ===== */
.s0e4-h1 {
  font-size: 2.1rem; font-weight: 800; color: var(--s0e4-text);
  line-height: 1.3; margin: 8px 0 6px;
}
.s0e4-lead { color: var(--s0e4-text-dim); font-size: 1.45rem; margin-bottom: 8px; }

/* ===== Game grid ===== */
.s0e4-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.s0e4-game-card {
  background: var(--s0e4-bg-soft);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--s0e4-border);
  transition: transform .15s ease;
}
.s0e4-game-card:active { transform: scale(0.97); }
.s0e4-game-card img {
  width: 100%; height: 92px; object-fit: cover;
  background: #0e1820;
}
.s0e4-game-name {
  padding: 6px 6px 8px;
  font-size: 1.2rem; text-align: center; color: var(--s0e4-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600;
}
.s0e4-game-card.hot { position: relative; }
.s0e4-game-card.hot::after {
  content: "HOT";
  position: absolute; top: 4px; left: 4px;
  background: var(--s0e4-primary); color: #fff;
  font-size: 0.95rem; font-weight: 800;
  padding: 2px 6px; border-radius: 6px;
}

/* ===== Promo CTA banners ===== */
.s0e4-promo-banner {
  background: linear-gradient(135deg, var(--s0e4-primary), var(--s0e4-secondary));
  border-radius: var(--s0e4-radius);
  padding: 14px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0;
  box-shadow: var(--s0e4-shadow);
}
.s0e4-promo-banner h3 { font-size: 1.7rem; margin-bottom: 4px; }
.s0e4-promo-banner p { font-size: 1.3rem; opacity: .95; }
.s0e4-promo-banner .s0e4-btn {
  background: #fff; color: var(--s0e4-primary); font-weight: 800;
}

/* ===== Feature cards / category highlights ===== */
.s0e4-cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.s0e4-cat-card {
  background: var(--s0e4-bg-soft);
  border: 1px solid var(--s0e4-border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.s0e4-cat-card .material-icons,
.s0e4-cat-card i {
  font-size: 30px; color: var(--s0e4-accent); margin-bottom: 6px;
}
.s0e4-cat-card h4 { font-size: 1.5rem; color: var(--s0e4-text); margin-bottom: 4px; }
.s0e4-cat-card p { font-size: 1.25rem; color: var(--s0e4-text-dim); }

/* ===== Winners ticker ===== */
.s0e4-winners {
  background: var(--s0e4-bg-deep);
  border: 1px solid var(--s0e4-border);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 12px 0;
  overflow: hidden;
}
.s0e4-winners-head {
  display: flex; align-items: center; gap: 6px;
  color: var(--s0e4-accent); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 6px;
}
.s0e4-winners-list { list-style: none; }
.s0e4-winner-row {
  display: flex; justify-content: space-between;
  padding: 4px 0; font-size: 1.25rem; color: var(--s0e4-text-dim);
  border-top: 1px dashed var(--s0e4-border);
}
.s0e4-winner-row .s0e4-amount { color: var(--s0e4-accent); font-weight: 700; }

/* ===== Testimonials ===== */
.s0e4-testimonial {
  background: var(--s0e4-bg-soft);
  border-left: 3px solid var(--s0e4-primary);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.s0e4-testimonial p { font-size: 1.35rem; color: var(--s0e4-text); font-style: italic; margin-bottom: 6px; }
.s0e4-testimonial .s0e4-author { font-size: 1.2rem; color: var(--s0e4-accent); font-weight: 700; }

/* ===== Payment grid ===== */
.s0e4-pay-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.s0e4-pay-item {
  background: var(--s0e4-bg-soft);
  border: 1px solid var(--s0e4-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.25rem; color: var(--s0e4-text);
  display: inline-flex; align-items: center; gap: 6px;
}
.s0e4-pay-item i, .s0e4-pay-item .material-icons { color: var(--s0e4-accent); }

/* ===== App download CTA ===== */
.s0e4-app-cta {
  background: linear-gradient(135deg, var(--s0e4-bg-soft), var(--s0e4-bg-deep));
  border: 1px solid var(--s0e4-border);
  border-radius: var(--s0e4-radius);
  padding: 14px;
  margin: 14px 0;
  display: flex; align-items: center; gap: 12px;
}
.s0e4-app-cta .material-icons { font-size: 38px; color: var(--s0e4-primary); }
.s0e4-app-cta h3 { font-size: 1.6rem; color: var(--s0e4-text); margin-bottom: 4px; }
.s0e4-app-cta p { font-size: 1.3rem; color: var(--s0e4-text-dim); margin-bottom: 8px; }

/* ===== Content prose (SEO text blocks) ===== */
.s0e4-prose { color: var(--s0e4-text); font-size: 1.4rem; line-height: 1.6; }
.s0e4-prose h2 { font-size: 1.8rem; color: var(--s0e4-accent); margin: 14px 0 6px; }
.s0e4-prose h3 { font-size: 1.55rem; color: var(--s0e4-secondary); margin: 10px 0 4px; }
.s0e4-prose p { margin-bottom: 8px; }
.s0e4-prose ul { padding-left: 18px; margin-bottom: 8px; }
.s0e4-prose li { margin-bottom: 4px; }
.s0e4-prose a { color: var(--s0e4-accent); border-bottom: 1px dashed var(--s0e4-accent); }

.s0e4-text-link {
  color: var(--s0e4-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--s0e4-primary);
}

/* ===== Footer ===== */
.s0e4-footer {
  background: var(--s0e4-bg-deep);
  border-top: 1px solid var(--s0e4-border);
  padding: 18px 12px 90px;
  margin-top: 20px;
}
.s0e4-footer-brand { color: var(--s0e4-text-dim); font-size: 1.3rem; margin-bottom: 10px; line-height: 1.5; }
.s0e4-footer-promos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0;
}
.s0e4-footer-promos .s0e4-btn { width: 100%; }
.s0e4-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0;
}
.s0e4-footer-links a { color: var(--s0e4-text-dim); font-size: 1.25rem; }
.s0e4-footer-links a:hover { color: var(--s0e4-accent); }
.s0e4-footer-copy {
  font-size: 1.15rem; color: var(--s0e4-text-dim); margin-top: 10px; text-align: center;
}

/* ===== Mobile bottom nav ===== */
.s0e4-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--s0e4-bottom-h);
  background: linear-gradient(180deg, var(--s0e4-bg-deep), #11181e);
  border-top: 1px solid var(--s0e4-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}
.s0e4-bottom-nav a {
  flex: 1;
  min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--s0e4-text-dim);
  font-size: 1.05rem;
  transition: color .15s ease, transform .15s ease;
}
.s0e4-bottom-nav a .material-icons,
.s0e4-bottom-nav a i {
  font-size: 22px;
}
.s0e4-bottom-nav a:active { transform: scale(0.92); }
.s0e4-bottom-nav a.s0e4-nav-active { color: var(--s0e4-accent); }
.s0e4-bottom-nav a.s0e4-nav-active .material-icons,
.s0e4-bottom-nav a.s0e4-nav-active i { color: var(--s0e4-primary); }
.s0e4-nav-promo {
  position: relative;
}
.s0e4-nav-promo::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--s0e4-primary), var(--s0e4-secondary));
  box-shadow: 0 4px 10px rgba(255,69,0,.45);
  z-index: -1;
}
.s0e4-nav-promo .material-icons,
.s0e4-nav-promo i { color: #fff; }
.s0e4-nav-promo span { color: var(--s0e4-accent); }

@media (min-width: 769px) {
  .s0e4-bottom-nav { display: none; }
  body { max-width: 768px; }
}
@media (max-width: 768px) {
  .s0e4-footer { padding-bottom: 90px; }
  main, .s0e4-main { padding-bottom: 80px; }
}
.s0e4-main { padding-bottom: 80px; }
.s0e4-hidden { display: none; }
.s0e4-center { text-align: center; }
