/* ============================================
   Lucky Spin - style.css
   All custom classes use the w7982- prefix.
   Palette: #1B263B #F8F8FF #A0522D #808080 #36454F
   Mobile-first, container max-width 430px.
   ============================================ */

:root {
  --w7982-bg: #1B263B;
  --w7982-bg-2: #36454F;
  --w7982-text: #F8F8FF;
  --w7982-accent: #A0522D;
  --w7982-muted: #808080;
  --w7982-primary: #A0522D;
  --w7982-card: #23324a;
  --w7982-card-2: #2c3e58;
  --w7982-gold: #e0b15e;
  --w7982-green: #4caf50;
  --w7982-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

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

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

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w7982-bg);
  color: var(--w7982-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.w7982-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

.w7982-wrapper { padding: 0 1.2rem; }

main { padding-bottom: 96px; }

/* ===== Header ===== */
.w7982-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a2740 0%, #1B263B 100%);
  border-bottom: 1px solid rgba(160, 82, 45, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.w7982-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  gap: 0.6rem;
}
.w7982-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.w7982-logo img { width: 30px; height: 30px; border-radius: 7px; }
.w7982-logo-text {
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--w7982-text);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.w7982-logo-text span { color: var(--w7982-gold); }

.w7982-header-actions { display: flex; align-items: center; gap: 0.45rem; }

.w7982-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  min-height: 38px;
  text-align: center;
  line-height: 1;
}
.w7982-btn:active { transform: scale(0.96); }
.w7982-btn-register {
  background: linear-gradient(135deg, #b35e34, #A0522D);
  color: #fff;
  box-shadow: 0 3px 10px rgba(160, 82, 45, 0.45);
}
.w7982-btn-login {
  background: transparent;
  color: var(--w7982-text);
  border: 1.5px solid rgba(248, 248, 255, 0.55);
}
.w7982-btn-login:active { background: rgba(248, 248, 255, 0.08); }
.w7982-btn-gold {
  background: linear-gradient(135deg, #f0c674, #d49a3f);
  color: #1B263B;
  font-weight: 800;
}
.w7982-btn-block { width: 100%; padding: 1rem; font-size: 1.5rem; }

.w7982-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w7982-text);
  font-size: 2rem;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== Mobile slide-down menu ===== */
.w7982-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--w7982-bg-2);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 5rem 1.2rem 2rem;
  overflow-y: auto;
  box-shadow: -4px 0 18px rgba(0, 0, 0, 0.5);
}
.w7982-menu-open { transform: translateX(0); }
.w7982-mobile-menu h3 {
  font-size: 1.4rem;
  color: var(--w7982-muted);
  margin: 1.2rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.w7982-mobile-menu a {
  display: block;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid rgba(248, 248, 255, 0.08);
  color: var(--w7982-text);
  font-size: 1.45rem;
}
.w7982-mobile-menu a:active { background: rgba(160, 82, 45, 0.18); }
.w7982-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  color: var(--w7982-text);
  font-size: 2rem;
  cursor: pointer;
}
.w7982-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.w7982-menu-open + .w7982-menu-overlay,
body.w7982-noscroll .w7982-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}
.w7982-noscroll { overflow: hidden; }

/* ===== Hero ===== */
.w7982-hero {
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}
.w7982-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.w7982-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.w7982-slide img { width: 100%; height: 200px; object-fit: cover; }
.w7982-slide.w7982-active { opacity: 1; }
.w7982-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0));
}
.w7982-slide-overlay h2 { font-size: 1.7rem; color: #fff; font-weight: 800; }
.w7982-slide-overlay p { font-size: 1.2rem; color: #f0f0f0; margin-top: 0.2rem; }
.w7982-slide-dots {
  position: absolute;
  bottom: 8px; right: 12px;
  display: flex; gap: 6px;
  z-index: 2;
}
.w7982-slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}
.w7982-slide-dot.w7982-active { background: var(--w7982-gold); }

/* ===== Section / titles ===== */
.w7982-section { padding: 1.4rem 1.2rem; }
.w7982-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.w7982-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w7982-text);
  display: flex; align-items: center; gap: 0.5rem;
}
.w7982-section-title i { color: var(--w7982-gold); }
.w7982-section-more { color: var(--w7982-gold); font-size: 1.25rem; font-weight: 600; }

h1.w7982-h1 {
  font-size: 1.9rem;
  font-weight: 800;
  padding: 1.2rem 1.2rem 0.4rem;
  line-height: 1.3;
}
h2.w7982-h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 1.2rem 0 0.6rem;
  padding: 0 1.2rem;
}
h3.w7982-h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.8rem 0 0.4rem;
  padding: 0 1.2rem;
}
.w7982-lead { padding: 0 1.2rem; color: #d8d8e6; font-size: 1.35rem; line-height: 2.2rem; }

/* ===== Game grid ===== */
.w7982-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1.2rem 0.8rem;
  scrollbar-width: none;
}
.w7982-chips::-webkit-scrollbar { display: none; }
.w7982-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--w7982-card);
  color: var(--w7982-text);
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}
.w7982-chip-active {
  background: var(--w7982-accent);
  color: #fff;
}
.w7982-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 0 1.2rem;
}
.w7982-game-card {
  background: var(--w7982-card);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  border: 1px solid rgba(255,255,255,0.05);
}
.w7982-game-card:active { transform: scale(0.95); }
.w7982-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #0e1726;
}
.w7982-game-name {
  font-size: 1.15rem;
  color: var(--w7982-text);
  padding: 0.4rem 0.3rem 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ===== Category header ===== */
.w7982-cat-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.4rem 1.2rem 0.6rem;
}
.w7982-cat-head i {
  font-size: 2rem;
  color: var(--w7982-gold);
  width: 28px; text-align: center;
}
.w7982-cat-head h2 { font-size: 1.55rem; font-weight: 800; }

/* ===== Cards / panels ===== */
.w7982-card {
  background: var(--w7982-card);
  border-radius: 12px;
  padding: 1.1rem;
  margin: 0 1.2rem 0.9rem;
  box-shadow: var(--w7982-shadow);
}
.w7982-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--w7982-gold);
}
.w7982-card p {
  color: #d8d8e6;
  font-size: 1.3rem;
  line-height: 2.1rem;
}
.w7982-card p a { color: var(--w7982-gold); font-weight: 600; text-decoration: underline; }

/* ===== Feature list ===== */
.w7982-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  padding: 0 1.2rem;
}
.w7982-feature {
  background: var(--w7982-card);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}
.w7982-feature i {
  font-size: 2.4rem;
  color: var(--w7982-gold);
  margin-bottom: 0.35rem;
  display: inline-block;
}
.w7982-feature h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.w7982-feature p { font-size: 1.15rem; color: #c8c8d8; line-height: 1.7rem; }

/* ===== FAQ ===== */
.w7982-faq-item {
  background: var(--w7982-card);
  border-radius: 10px;
  margin: 0 1.2rem 0.55rem;
  overflow: hidden;
}
.w7982-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--w7982-text);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 1rem 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.w7982-faq-q .w7982-faq-icon { color: var(--w7982-gold); font-size: 1.6rem; transition: transform 0.2s; }
.w7982-faq-item.w7982-faq-open .w7982-faq-icon { transform: rotate(45deg); }
.w7982-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.1rem;
  color: #c8c8d8;
  font-size: 1.25rem;
  line-height: 2rem;
}
.w7982-faq-item.w7982-faq-open .w7982-faq-a {
  max-height: 320px;
  padding: 0 1.1rem 1rem;
}

/* ===== Steps ===== */
.w7982-steps { padding: 0 1.2rem; }
.w7982-step {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  align-items: flex-start;
}
.w7982-step-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--w7982-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
}
.w7982-step-body h4 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.15rem; }
.w7982-step-body p { color: #c8c8d8; font-size: 1.25rem; line-height: 1.9rem; }

/* ===== Winners / Testimonials ===== */
.w7982-winners {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0 1.2rem;
  scrollbar-width: none;
}
.w7982-winners::-webkit-scrollbar { display: none; }
.w7982-winner {
  flex: 0 0 160px;
  background: var(--w7982-card);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
}
.w7982-winner .w7982-winner-name { font-weight: 700; font-size: 1.25rem; }
.w7982-winner .w7982-winner-amount { color: var(--w7982-gold); font-weight: 800; font-size: 1.5rem; margin-top: 0.2rem; }
.w7982-winner .w7982-winner-game { font-size: 1.1rem; color: var(--w7982-muted); margin-top: 0.15rem; }

/* ===== Payments ===== */
.w7982-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1.2rem;
}
.w7982-pay {
  flex: 1 1 30%;
  background: var(--w7982-card);
  border-radius: 8px;
  padding: 0.7rem 0.4rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
}
.w7982-pay i { color: var(--w7982-gold); font-size: 1.8rem; display: block; margin-bottom: 0.2rem; }

/* ===== Promo CTA banner ===== */
.w7982-cta {
  background: linear-gradient(135deg, #A0522D, #6e3a20);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1rem 1.2rem;
  text-align: center;
  box-shadow: var(--w7982-shadow);
}
.w7982-cta h3 { color: #fff; font-size: 1.55rem; margin-bottom: 0.3rem; }
.w7982-cta p { color: #fbe7d6; font-size: 1.25rem; margin-bottom: 0.7rem; }

/* ===== Stats ===== */
.w7982-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0 1.2rem;
  text-align: center;
}
.w7982-stat {
  background: var(--w7982-card);
  border-radius: 10px;
  padding: 0.9rem 0.4rem;
}
.w7982-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--w7982-gold); }
.w7982-stat-label { font-size: 1.1rem; color: #c8c8d8; margin-top: 0.15rem; }

/* ===== Testimonials ===== */
.w7982-testi {
  background: var(--w7982-card);
  border-radius: 10px;
  padding: 1rem;
  margin: 0 1.2rem 0.6rem;
}
.w7982-testi-stars { color: var(--w7982-gold); margin-bottom: 0.3rem; font-size: 1.2rem; }
.w7982-testi p { font-size: 1.25rem; line-height: 1.9rem; color: #d8d8e6; }
.w7982-testi .w7982-testi-author { font-size: 1.15rem; color: var(--w7982-muted); margin-top: 0.35rem; font-weight: 600; }

/* ===== Footer ===== */
.w7982-footer {
  background: #0f1830;
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(160, 82, 45, 0.3);
}
.w7982-footer-brand { font-weight: 800; font-size: 1.6rem; margin-bottom: 0.3rem; }
.w7982-footer-brand span { color: var(--w7982-gold); }
.w7982-footer p { color: #b8b8c8; font-size: 1.2rem; line-height: 1.8rem; margin-bottom: 0.7rem; }
.w7982-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0.6rem 0 0.9rem;
}
.w7982-footer-links a {
  color: #c8c8d8;
  font-size: 1.2rem;
  text-decoration: underline;
}
.w7982-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin: 0.8rem 0;
}
.w7982-footer-promos button {
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  border: none;
  background: var(--w7982-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
}
.w7982-copyright {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  color: var(--w7982-muted);
  font-size: 1.15rem;
  text-align: center;
}

/* ===== Mobile bottom nav ===== */
.w7982-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: #0f1830;
  border-top: 1px solid rgba(160, 82, 45, 0.35);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}
.w7982-bn-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w7982-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.15s, transform 0.15s;
}
.w7982-bn-item:active { transform: scale(0.9); }
.w7982-bn-item .w7982-bn-icon { font-size: 22px; line-height: 1; }
.w7982-bn-item .w7982-bn-label { font-size: 1rem; }
.w7982-bn-active { color: var(--w7982-gold); }
.w7982-bn-badge {
  position: absolute;
  top: 6px; right: calc(50% - 24px);
  background: #e34a4a;
  color: #fff;
  font-size: 0.9rem;
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ===== Back to top ===== */
.w7982-to-top {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--w7982-accent);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 999;
  box-shadow: var(--w7982-shadow);
}
.w7982-to-top.w7982-show { opacity: 1; pointer-events: auto; }
.w7982-to-top:active { transform: scale(0.9); }

/* ===== App download ===== */
.w7982-app-dl {
  display: flex;
  gap: 0.6rem;
  padding: 0 1.2rem;
  flex-wrap: wrap;
}
.w7982-app-dl button {
  flex: 1 1 45%;
  background: var(--w7982-card);
  color: var(--w7982-text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.8rem;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}

/* ===== Desktop rules ===== */
@media (min-width: 769px) {
  .w7982-bottom-nav { display: none; }
  .w7982-menu-toggle { display: none; }
  main { padding-bottom: 30px; }
  .w7982-header-inner { max-width: 960px; }
  .w7982-container { max-width: 960px; }
  .w7982-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .w7982-grid { grid-template-columns: repeat(2, 1fr); }
  .w7982-feature-grid { grid-template-columns: 1fr; }
}
