/* 789p5 vip - common stylesheet
   Prefix: w158e-
   Palette: #E5E5E5 (light text) | #FF4500 (primary orange) | #D4AF37 (gold)
            #FFEB3B (yellow) | #141414 (dark bg) | #FF8A80 (warm accent)
   Mobile-first; rem units with root font 62.5%.
*/

:root {
  --w158e-bg: #141414;
  --w158e-bg-soft: #1d1d1d;
  --w158e-bg-card: #232323;
  --w158e-text: #E5E5E5;
  --w158e-text-mute: #b8b8b8;
  --w158e-primary: #FF4500;
  --w158e-gold: #D4AF37;
  --w158e-yellow: #FFEB3B;
  --w158e-accent: #FF8A80;
  --w158e-border: rgba(212, 175, 55, 0.25);
  --w158e-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --w158e-radius: 14px;
  --w158e-max: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: radial-gradient(120% 60% at 50% -10%, #2a1810 0%, var(--w158e-bg) 60%);
  color: var(--w158e-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

a { color: var(--w158e-gold); text-decoration: none; }
a:hover { color: var(--w158e-yellow); }
img { max-width: 100%; display: block; }

.w158e-container {
  width: 100%;
  max-width: var(--w158e-max);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.w158e-wrapper { width: 100%; }

/* ===== Header ===== */
.w158e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20,20,20,0.96) 0%, rgba(20,20,20,0.88) 100%);
  border-bottom: 1px solid var(--w158e-border);
  backdrop-filter: blur(8px);
  transition: box-shadow .25s ease;
}
.w158e-header.w158e-scrolled { box-shadow: var(--w158e-shadow); }

.w158e-header-inner {
  max-width: var(--w158e-max);
  margin: 0 auto;
  padding: .55rem 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}

.w158e-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
  min-width: 0;
}
.w158e-brand img { width: 30px; height: 30px; border-radius: 8px; }
.w158e-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(90deg, var(--w158e-gold), var(--w158e-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.w158e-brand-name span { color: var(--w158e-primary); -webkit-text-fill-color: var(--w158e-primary); }

.w158e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 36px;
  padding: 0 1.1rem;
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease;
}
.w158e-btn i, .w158e-btn span.material-icons-outlined { font-size: 16px; }
.w158e-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

.w158e-btn-login {
  background: transparent;
  color: var(--w158e-text);
  border: 1px solid var(--w158e-gold);
}
.w158e-btn-register {
  background: linear-gradient(90deg, var(--w158e-primary), #ff6a2b);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 69, 0, .35);
}

.w158e-menu-btn {
  background: transparent;
  border: 1px solid var(--w158e-border);
  color: var(--w158e-text);
  border-radius: 10px;
  width: 38px; height: 38px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile dropdown menu */
.w158e-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: #161616;
  border-bottom: 1px solid var(--w158e-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  z-index: 9999;
}
.w158e-mobile-menu.w158e-open { max-height: 80vh; overflow-y: auto; }
.w158e-mobile-menu a {
  display: block;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--w158e-text);
  font-size: 1.4rem;
}
.w158e-mobile-menu a:hover { background: #202020; color: var(--w158e-yellow); padding-left: 1.8rem; }

/* ===== Hero / Carousel ===== */
.w158e-main { padding-top: 60px; }

.w158e-carousel {
  position: relative;
  margin: 1rem auto 1.4rem;
  max-width: var(--w158e-max);
  border-radius: var(--w158e-radius);
  overflow: hidden;
  box-shadow: var(--w158e-shadow);
}
.w158e-slides { position: relative; }
.w158e-slide {
  display: none;
  position: relative;
}
.w158e-slide.w158e-active { display: block; }
.w158e-slide img { width: 100%; height: 180px; object-fit: cover; }
.w158e-slide-cta {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--w158e-gold);
  color: var(--w158e-yellow);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 700;
}
.w158e-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.w158e-carousel-arrow.w158e-prev { left: 6px; }
.w158e-carousel-arrow.w158e-next { right: 6px; }

.w158e-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.w158e-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none; cursor: pointer; padding: 0;
}
.w158e-dot.w158e-active { background: var(--w158e-primary); width: 18px; border-radius: 5px; }

/* ===== Headings / Sections ===== */
.w158e-section {
  margin: 1.6rem 0;
}
.w158e-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 .9rem;
  padding-left: .8rem;
  border-left: 4px solid var(--w158e-primary);
  color: var(--w158e-text);
}
.w158e-section-title em { color: var(--w158e-gold); font-style: normal; }

.w158e-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 1.2rem 0 .8rem;
  color: var(--w158e-text);
}
.w158e-h1 span { color: var(--w158e-primary); }

.w158e-lead {
  font-size: 1.4rem;
  color: var(--w158e-text-mute);
  margin: 0 0 1.2rem;
}

.w158e-paragraph {
  margin: 0 0 1rem;
  font-size: 1.42rem;
  color: var(--w158e-text-mute);
}

/* ===== Game grid ===== */
.w158e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
.w158e-game {
  background: var(--w158e-bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  display: block;
  text-align: center;
}
.w158e-game:hover {
  transform: translateY(-3px);
  border-color: var(--w158e-gold);
  box-shadow: 0 8px 20px rgba(212, 175, 55, .18);
}
.w158e-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.w158e-game-name {
  font-size: 1.2rem;
  color: var(--w158e-text);
  padding: .4rem .35rem .55rem;
  line-height: 1.25;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w158e-cat-heading {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.4rem 0 .8rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--w158e-text);
}
.w158e-cat-heading i, .w158e-cat-heading .material-icons {
  color: var(--w158e-gold);
  font-size: 22px;
}
.w158e-cat-heading .w158e-tag {
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--w158e-primary);
  background: rgba(255, 69, 0, .12);
  padding: .15rem .55rem;
  border-radius: 999px;
}

/* ===== Feature / cards ===== */
.w158e-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
}
.w158e-card {
  background: linear-gradient(180deg, var(--w158e-bg-card), #1a1a1a);
  border: 1px solid var(--w158e-border);
  border-radius: var(--w158e-radius);
  padding: 1.2rem;
  box-shadow: var(--w158e-shadow);
}
.w158e-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
  color: var(--w158e-yellow);
  display: flex; align-items: center; gap: .5rem;
}
.w158e-card h3 i { color: var(--w158e-primary); }
.w158e-card p { margin: 0; color: var(--w158e-text-mute); font-size: 1.38rem; }

.w158e-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
}
.w158e-feature {
  background: var(--w158e-bg-card);
  border-radius: 12px;
  padding: 1rem .8rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
}
.w158e-feature .w158e-ic {
  width: 42px; height: 42px;
  margin: 0 auto .5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 69, 0, .12);
  color: var(--w158e-primary);
  font-size: 20px;
}
.w158e-feature h4 { margin: 0 0 .3rem; font-size: 1.3rem; color: var(--w158e-text); }
.w158e-feature p { margin: 0; font-size: 1.2rem; color: var(--w158e-text-mute); }

/* CTA row */
.w158e-cta-row {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin: 1rem 0;
}
.w158e-cta-row .w158e-btn { flex: 1 1 auto; min-width: 120px; }

/* Testimonials */
.w158e-testimonials { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.w158e-testimonial {
  background: var(--w158e-bg-card);
  border-left: 3px solid var(--w158e-gold);
  border-radius: 10px;
  padding: .9rem 1rem;
}
.w158e-testimonial p { margin: 0 0 .4rem; font-size: 1.35rem; color: var(--w158e-text); }
.w158e-testimonial .w158e-author { font-size: 1.2rem; color: var(--w158e-yellow); }

/* Winners ticker */
.w158e-winners {
  background: linear-gradient(90deg, #1a1a1a, #2a1d10, #1a1a1a);
  border: 1px solid var(--w158e-border);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: 1.3rem;
  display: flex; align-items: center; gap: .6rem;
  overflow: hidden;
}
.w158e-winners b { color: var(--w158e-gold); }
.w158e-winners .w158e-pill {
  background: rgba(212, 175, 55, .15);
  color: var(--w158e-yellow);
  border-radius: 999px;
  padding: .1rem .6rem;
  font-size: 1.15rem;
}

/* Payment row */
.w158e-pay-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.w158e-pay {
  background: #1f1f1f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: .5rem .9rem;
  font-size: 1.2rem;
  color: var(--w158e-text);
  display: inline-flex; align-items: center; gap: .35rem;
}
.w158e-pay i { color: var(--w158e-gold); }

/* App download CTA */
.w158e-app-cta {
  background: radial-gradient(120% 80% at 0% 0%, #3a1d0d 0%, #141414 70%);
  border: 1px solid var(--w158e-border);
  border-radius: var(--w158e-radius);
  padding: 1.2rem;
  display: flex; align-items: center; gap: 1rem;
}
.w158e-app-cta .w158e-app-ic {
  font-size: 38px; color: var(--w158e-gold);
}
.w158e-app-cta h3 { margin: 0 0 .25rem; font-size: 1.5rem; color: var(--w158e-yellow); }
.w158e-app-cta p { margin: 0 0 .6rem; font-size: 1.3rem; color: var(--w158e-text-mute); }

/* Reveal animation */
.w158e-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.w158e-reveal.w158e-visible { opacity: 1; transform: none; }

/* Inline SEO link styles */
.w158e-seo a { color: var(--w158e-yellow); font-weight: 600; }
.w158e-seo a:hover { color: var(--w158e-primary); }

/* ===== Footer ===== */
.w158e-footer {
  margin-top: 2rem;
  background: #0e0e0e;
  border-top: 1px solid var(--w158e-border);
  padding: 1.6rem 0 1rem;
}
.w158e-footer .w158e-container { padding-bottom: 90px; }
.w158e-footer-brand { font-size: 1.32rem; color: var(--w158e-text-mute); margin: 0 0 1rem; }
.w158e-footer-brand b { color: var(--w158e-gold); }
.w158e-footer-promos {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem;
}
.w158e-footer-promos .w158e-btn { flex: 1 1 auto; min-width: 110px; }
.w158e-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem .8rem;
  margin-bottom: 1rem;
}
.w158e-footer-links a { font-size: 1.22rem; color: var(--w158e-text-mute); }
.w158e-footer-links a:hover { color: var(--w158e-yellow); }
.w158e-copy { font-size: 1.15rem; color: #777; text-align: center; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* ===== Mobile bottom navigation ===== */
.w158e-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, #b8240a 0%, #8f1300 100%);
  border-top: 1px solid var(--w158e-gold);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.5);
}
.w158e-nav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 0;
  transition: transform .15s ease, background-color .2s ease;
}
.w158e-nav-item i, .w158e-nav-item .material-icons-outlined {
  font-size: 22px;
  line-height: 1;
}
.w158e-nav-item span:not(.material-icons-outlined) {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .2px;
}
.w158e-nav-item:hover { transform: translateY(-2px); }
.w158e-nav-item.w158e-current {
  background: rgba(0,0,0,0.18);
  color: var(--w158e-yellow);
}

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .w158e-bottom-nav { display: none; }
  .w158e-footer .w158e-container { padding-bottom: 1rem; }
  .w158e-header-inner, .w158e-carousel, .w158e-container {
    max-width: 960px;
  }
  .w158e-grid { grid-template-columns: repeat(6, 1fr); }
  .w158e-features { grid-template-columns: repeat(4, 1fr); }
  .w158e-testimonials { grid-template-columns: repeat(3, 1fr); }
}

/* Ensure clearance for bottom nav on mobile */
@media (max-width: 768px) {
  .w158e-main { padding-bottom: 80px; }
}
