/* =====================================================
   2jl casino - Theme Stylesheet (theme.css)
   All classes use prefix "w8410-".
   Palette: #E6E6FA | #E0E0E0 | #2D2D2D | #DAA520 | #FFCC33 | #FAFAD2
   ===================================================== */

:root {
  --w8410-bg: #2D2D2D;
  --w8410-bg-2: #1c1c1c;
  --w8410-bg-3: #3a3a3a;
  --w8410-text: #E6E6FA;
  --w8410-text-soft: #E0E0E0;
  --w8410-primary: #DAA520;
  --w8410-accent: #FFCC33;
  --w8410-accent-2: #FAFAD2;
  --w8410-border: rgba(218, 165, 32, 0.25);
  --w8410-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --w8410-radius: 14px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #3a3a3a 0%, #2D2D2D 55%, #1c1c1c 100%);
  color: var(--w8410-text);
  line-height: 1.5rem;
  min-height: 100vh;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--w8410-accent); text-decoration: none; }

.w8410-wrapper {
  width: 100%;
  padding: 0 1.2rem;
}

/* ============ Header ============ */
.w8410-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(28,28,28,0.96), rgba(45,45,45,0.92));
  border-bottom: 1px solid var(--w8410-border);
  backdrop-filter: blur(8px);
  transition: padding .25s ease, background .25s ease;
}
.w8410-header-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.w8410-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;
}
.w8410-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.w8410-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w8410-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--w8410-accent);
  letter-spacing: .2px;
  white-space: nowrap;
}
.w8410-brand-name span { color: var(--w8410-accent-2); }

.w8410-actions { display: flex; align-items: center; gap: 0.5rem; }

.w8410-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.w8410-btn:active { transform: scale(0.96); }
.w8410-btn-login {
  background: transparent;
  color: var(--w8410-text);
  border: 1px solid var(--w8410-border);
}
.w8410-btn-register {
  background: linear-gradient(135deg, #FFCC33, #DAA520);
  color: #2D2D2D;
  box-shadow: 0 4px 12px rgba(218,165,32,.45);
}

.w8410-menu-toggle {
  background: transparent;
  border: 1px solid var(--w8410-border);
  color: var(--w8410-accent);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Expandable menu */
.w8410-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: #1c1c1c;
  border-top: 1px solid var(--w8410-border);
}
.w8410-mobile-menu.w8410-menu-open { max-height: 520px; }
.w8410-mobile-menu ul { list-style: none; margin: 0; padding: .4rem 1.2rem 1rem; }
.w8410-mobile-menu li { padding: .55rem 0; border-bottom: 1px dashed rgba(230,230,250,.08); }
.w8410-mobile-menu a { display: block; color: var(--w8410-text-soft); font-size: 1.3rem; font-weight: 600; }
.w8410-mobile-menu a i { color: var(--w8410-accent); margin-right: .6rem; }

/* ============ Main content ============ */
main {
  padding-top: 64px;
  padding-bottom: 90px;
}

.w8410-section { padding: 2rem 0; }
.w8410-container { padding: 0 1.2rem; }

.w8410-h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin: 1.4rem 0 .6rem;
  color: var(--w8410-accent-2);
  font-weight: 800;
}
.w8410-h2 {
  font-size: 1.7rem;
  margin: 2rem 0 .8rem;
  color: var(--w8410-accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.w8410-h3 {
  font-size: 1.4rem;
  margin: 1.2rem 0 .5rem;
  color: var(--w8410-text);
  font-weight: 700;
}
.w8410-lead { color: var(--w8410-text-soft); font-size: 1.28rem; }
.w8410-text-link { color: var(--w8410-accent); font-weight: 700; }

/* ============ Hero / Carousel ============ */
.w8410-hero {
  position: relative;
  border-radius: var(--w8410-radius);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--w8410-shadow);
}
.w8410-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.w8410-hero-slide.w8410-hero-active { opacity: 1; position: relative; }
.w8410-hero-slide img { width: 100%; height: 180px; object-fit: cover; }
.w8410-hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .8rem 1rem;
  background: linear-gradient(0deg, rgba(28,28,28,.92), transparent);
  color: var(--w8410-accent-2);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ============ Game grid ============ */
.w8410-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.w8410-card {
  background: var(--w8410-bg-3);
  border: 1px solid var(--w8410-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform .15s ease, box-shadow .2s ease;
  cursor: pointer;
}
.w8410-card:hover { transform: translateY(-3px); box-shadow: var(--w8410-shadow); }
.w8410-card img { width: 100%; height: 84px; object-fit: cover; }
.w8410-card-name {
  font-size: 1.05rem;
  color: var(--w8410-text-soft);
  padding: .35rem .2rem .55rem;
  font-weight: 600;
  line-height: 1.15rem;
  min-height: 30px;
}

/* ============ Features / cards ============ */
.w8410-feature {
  background: var(--w8410-bg-3);
  border: 1px solid var(--w8410-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: .8rem;
}
.w8410-feature .w8410-ico { font-size: 2rem; color: var(--w8410-accent); }
.w8410-feature h3 { margin: 0 0 .2rem; font-size: 1.3rem; color: var(--w8410-text); }
.w8410-feature p { margin: 0; font-size: 1.15rem; color: var(--w8410-text-soft); }

/* ============ Stats / RTP ============ */
.w8410-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.w8410-stat {
  background: var(--w8410-bg-3);
  border-radius: 10px;
  padding: .8rem;
  border: 1px solid var(--w8410-border);
  text-align: center;
}
.w8410-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--w8410-accent); }
.w8410-stat .lbl { font-size: 1.1rem; color: var(--w8410-text-soft); }

/* ============ CTA banner ============ */
.w8410-cta {
  background: linear-gradient(135deg, #DAA520, #FFCC33);
  color: #2D2D2D;
  border-radius: var(--w8410-radius);
  padding: 1.2rem 1.3rem;
  margin: 1rem 0;
  text-align: center;
  box-shadow: var(--w8410-shadow);
}
.w8410-cta h3 { color: #2D2D2D; margin: 0 0 .3rem; font-size: 1.5rem; }
.w8410-cta p { margin: 0 0 .8rem; font-size: 1.15rem; color: #2D2D2D; }
.w8410-cta-dark {
  display: inline-block;
  background: #2D2D2D;
  color: var(--w8410-accent);
  padding: .7rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.25rem;
}

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

/* ============ Footer ============ */
.w8410-footer {
  background: #1c1c1c;
  border-top: 1px solid var(--w8410-border);
  padding: 2rem 1.2rem 6rem;
  color: var(--w8410-text-soft);
}
.w8410-footer p { font-size: 1.15rem; color: var(--w8410-text-soft); }
.w8410-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}
.w8410-footer-links a {
  display: inline-block;
  padding: .4rem .9rem;
  border: 1px solid var(--w8410-border);
  border-radius: 999px;
  font-size: 1.1rem;
  color: var(--w8410-text-soft);
}
.w8410-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}
.w8410-footer-promo button {
  background: linear-gradient(135deg, #FFCC33, #DAA520);
  color: #2D2D2D;
  border: 0;
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.w8410-copy {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  color: rgba(230,230,250,.55);
  border-top: 1px dashed rgba(230,230,250,.1);
  padding-top: 1rem;
}

/* ============ Mobile bottom nav ============ */
.w8410-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #2D2D2D, #1c1c1c);
  border-top: 1px solid var(--w8410-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,.35);
}
.w8410-bottomnav a, .w8410-bottomnav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: 0;
  color: var(--w8410-text-soft);
  font-size: 1rem;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  padding: 4px 2px;
  transition: color .2s ease, transform .15s ease;
}
.w8410-bottomnav a:active, .w8410-bottomnav button:active { transform: scale(.9); }
.w8410-bottomnav .w8410-ico-wrap { font-size: 2.2rem; line-height: 1; }
.w8410-bottomnav .w8410-ico-wrap.material-icons { font-size: 2.2rem; }
.w8410-bottomnav .w8410-ico-promo { color: var(--w8410-accent); }
.w8410-bottomnav .w8410-ico-active { color: var(--w8410-accent); }

/* ============ Desktop hide / responsive ============ */
@media (min-width: 769px) {
  .w8410-bottomnav { display: none; }
  body { max-width: 430px; }
}

/* ============ Mobile-first small screens ============ */
@media (max-width: 430px) {
  .w8410-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .w8410-card img { height: 72px; }
  .w8410-h1 { font-size: 2rem; }
  .w8410-h2 { font-size: 1.55rem; }
  .w8410-hero-slide img { height: 160px; }
}

@media (max-width: 360px) {
  .w8410-grid { grid-template-columns: repeat(2, 1fr); }
  .w8410-brand-name { font-size: 1.4rem; }
}
