/* 222jl core stylesheet - basefiles */
/* All custom classes use the s008- prefix. */

:root {
  --s008-primary: #FFBF00;
  --s008-blue: #BAE1FF;
  --s008-dark: #3A3A3A;
  --s008-cream: #FFDFBA;
  --s008-mint: #BAFFC9;
  --s008-bg: #2a2a2a;
  --s008-bg-soft: #3A3A3A;
  --s008-text: #FFDFBA;
  --s008-text-light: #BAE1FF;
  --s008-white: #ffffff;
  --s008-accent: #FFBF00;
  --s008-border: rgba(255, 191, 0, 0.25);
  --s008-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--s008-bg);
  color: var(--s008-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

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

/* ===== Header ===== */
.s008-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s008-dark);
  border-bottom: 0.2rem solid var(--s008-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  height: 5.2rem;
}
.s008-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s008-primary);
  font-weight: 800;
  font-size: 1.8rem;
}
.s008-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }
.s008-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s008-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.1rem;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background 0.2s;
}
.s008-btn:active { transform: scale(0.96); }
.s008-btn-register { background: var(--s008-primary); color: var(--s008-dark); }
.s008-btn-login { background: transparent; color: var(--s008-primary); border: 0.15rem solid var(--s008-primary); }
.s008-menu-btn {
  background: transparent;
  border: none;
  color: var(--s008-primary);
  font-size: 2rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile expandable menu ===== */
.s008-mobile-menu {
  position: fixed;
  top: 5.2rem; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s008-dark);
  border-bottom: 0.2rem solid var(--s008-primary);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.s008-mobile-menu.s008-menu-open { max-height: 60rem; }
.s008-mobile-menu ul { list-style: none; padding: 0.5rem 0; }
.s008-mobile-menu li a {
  display: block;
  padding: 1.1rem 1.5rem;
  color: var(--s008-text-light);
  font-size: 1.4rem;
  border-bottom: 0.1rem solid rgba(255,191,0,0.08);
}
.s008-mobile-menu li a:hover { background: rgba(255,191,0,0.08); color: var(--s008-primary); text-decoration: none; }

/* ===== Main wrapper ===== */
.s008-main {
  padding-top: 5.2rem;
  padding-bottom: 0;
}
.s008-section { padding: 1.6rem 1rem; }
.s008-section-title {
  font-size: 1.7rem;
  color: var(--s008-primary);
  margin-bottom: 0.8rem;
  font-weight: 800;
  border-left: 0.4rem solid var(--s008-primary);
  padding-left: 0.7rem;
}
.s008-lead { color: var(--s008-text); font-size: 1.4rem; margin-bottom: 1rem; }

/* ===== Hero / Carousel ===== */
.s008-carousel {
  position: relative;
  width: 100%;
  border-radius: 0.8rem;
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: var(--s008-shadow);
}
.s008-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.s008-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.s008-carousel-slide.s008-slide-active { opacity: 1; }
.s008-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s008-carousel-caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(0,0,0,0.55);
  color: var(--s008-primary);
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.3rem;
}
.s008-carousel-dots {
  position: absolute;
  right: 1rem; bottom: 1rem;
  display: flex; gap: 0.5rem;
}
.s008-carousel-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.s008-carousel-dot.s008-dot-active { background: var(--s008-primary); }

/* ===== Promo link ===== */
.s008-promo-link {
  color: var(--s008-primary);
  font-weight: 800;
  cursor: pointer;
}
.s008-promo-box {
  background: linear-gradient(135deg, var(--s008-dark), #4a4a4a);
  border: 0.15rem solid var(--s008-primary);
  border-radius: 0.8rem;
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 0;
}
.s008-promo-box .s008-btn { margin-top: 0.6rem; }

/* ===== Game grid ===== */
.s008-game-section { margin-bottom: 1.4rem; }
.s008-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.s008-game-card {
  background: var(--s008-bg-soft);
  border-radius: 0.6rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
  border: 0.1rem solid var(--s008-border);
}
.s008-game-card:active { transform: scale(0.95); }
.s008-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.s008-game-name {
  font-size: 1rem;
  color: var(--s008-text-light);
  text-align: center;
  padding: 0.3rem 0.1rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Cards / info blocks ===== */
.s008-card {
  background: var(--s008-bg-soft);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 0.3rem solid var(--s008-primary);
}
.s008-card h3 { color: var(--s008-primary); font-size: 1.5rem; margin-bottom: 0.5rem; }
.s008-card p { color: var(--s008-text); font-size: 1.3rem; margin-bottom: 0.5rem; }
.s008-card ul { padding-left: 1.6rem; color: var(--s008-text); }
.s008-card li { font-size: 1.3rem; margin-bottom: 0.3rem; }

.s008-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.s008-stat {
  background: var(--s008-bg-soft);
  border-radius: 0.6rem;
  padding: 0.8rem;
  text-align: center;
}
.s008-stat-num { font-size: 1.8rem; color: var(--s008-primary); font-weight: 800; }
.s008-stat-label { font-size: 1.1rem; color: var(--s008-text-light); }

/* ===== Testimonials ===== */
.s008-testimonial {
  background: var(--s008-bg-soft);
  border-radius: 0.6rem;
  padding: 1rem;
  margin-bottom: 0.7rem;
  border-left: 0.3rem solid var(--s008-mint);
}
.s008-testimonial-name { color: var(--s008-primary); font-weight: 700; font-size: 1.2rem; }
.s008-testimonial-text { color: var(--s008-text); font-size: 1.2rem; margin-top: 0.3rem; }

/* ===== Payment / winners ===== */
.s008-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.s008-pay-chip {
  background: var(--s008-bg-soft);
  border: 0.1rem solid var(--s008-border);
  border-radius: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 1.1rem;
  color: var(--s008-text-light);
}
.s008-winner-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 0.1rem solid rgba(255,191,0,0.1);
  font-size: 1.2rem;
}
.s008-winner-name { color: var(--s008-text-light); }
.s008-winner-amount { color: var(--s008-primary); font-weight: 700; }

/* ===== Footer ===== */
.s008-footer {
  background: var(--s008-dark);
  border-top: 0.2rem solid var(--s008-primary);
  padding: 1.4rem 1rem 2rem;
  color: var(--s008-text);
  font-size: 1.2rem;
}
.s008-footer-brand { margin-bottom: 0.8rem; color: var(--s008-text-light); }
.s008-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin: 0.6rem 0;
}
.s008-footer-links a { color: var(--s008-text-light); font-size: 1.1rem; }
.s008-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0;
}
.s008-footer-promo .s008-btn { flex: 1 1 auto; }
.s008-footer-copy { margin-top: 0.8rem; color: var(--s008-text-light); font-size: 1.1rem; }

/* ===== Mobile bottom nav ===== */
.s008-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: var(--s008-dark);
  border-top: 0.2rem solid var(--s008-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.s008-bottomnav-btn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--s008-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.15s;
}
.s008-bottomnav-btn:active { transform: scale(0.92); }
.s008-bottomnav-btn .s008-nav-icon { font-size: 2.2rem; line-height: 1; }
.s008-bottomnav-btn .s008-nav-label { font-size: 1rem; }
.s008-bottomnav-btn.s008-bottomnav-active { color: var(--s008-primary); }
.s008-bottomnav-promo { color: var(--s008-primary); }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .s008-bottomnav { display: none; }
  body { max-width: 768px; }
  .s008-header, .s008-mobile-menu { max-width: 768px; }
  .s008-game-grid { grid-template-columns: repeat(6, 1fr); }
  .s008-grid-2 { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Mobile: pad main content so bottom nav does not cover it ===== */
@media (max-width: 768px) {
  .s008-main { padding-bottom: 7rem; }
  .s008-footer { padding-bottom: 7rem; }
}
