/* ============================================================
   Legendlink - style-0873.css
   Mobile-first casino gaming styles, max-width 430px
   All custom classes use the w0873- prefix
   Palette: #1E1E1E | #FF1493 | #A0522D | #6F4E37 | #FF4500
   ============================================================ */

:root {
  --w0873-bg: #1E1E1E;
  --w0873-primary: #FF1493;
  --w0873-accent: #FF4500;
  --w0873-brown: #A0522D;
  --w0873-coffee: #6F4E37;
  --w0873-text: #FFFFFF;
  --w0873-text-muted: #B5A89A;
  --w0873-card: #2A2422;
  --w0873-card-alt: #332B27;
  --w0873-border: rgba(255,20,147,0.25);
  --w0873-gold: #FFD27A;
  --w0873-green: #3DD68C;
  --w0873-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  font-size: 62.5%;
  background: var(--w0873-bg);
  color: var(--w0873-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}
body { max-width: 430px; margin: 0 auto; position: relative; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--w0873-primary); text-decoration: none; }
ul, ol { list-style: none; }

/* Layout primitives */
.w0873-container { width: 100%; padding: 0 1.2rem; }
.w0873-wrapper { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w0873-grid { display: grid; gap: 1rem; }
.w0873-hidden { display: none !important; }

/* ===== Header ===== */
.w0873-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  background: linear-gradient(90deg, #1E1E1E 0%, #2A1A1F 100%);
  border-bottom: 2px solid var(--w0873-primary);
  box-shadow: var(--w0873-shadow);
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.w0873-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.8rem; font-weight: 800; color: var(--w0873-text);
  letter-spacing: 0.5px;
}
.w0873-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w0873-logo .w0873-logo-mark { color: var(--w0873-primary); }
.w0873-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w0873-btn {
  font-size: 1.3rem; font-weight: 700; border: none;
  padding: 0.7rem 1.3rem; border-radius: 20px;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 36px; display: inline-flex; align-items: center; gap: 0.4rem;
}
.w0873-btn:active { transform: scale(0.96); }
.w0873-btn-primary {
  background: linear-gradient(90deg, var(--w0873-primary), var(--w0873-accent));
  color: #fff; box-shadow: 0 4px 12px rgba(255,20,147,0.4);
}
.w0873-btn-ghost {
  background: transparent; color: var(--w0873-text);
  border: 1px solid var(--w0873-primary);
}
.w0873-menu-toggle {
  background: transparent; border: none; color: var(--w0873-text);
  font-size: 2rem; cursor: pointer; padding: 0.2rem 0.4rem; line-height: 1;
}

/* ===== Mobile slide-down menu ===== */
.w0873-mobile-menu {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: #241A1F; border-bottom: 2px solid var(--w0873-primary);
  transform: translateY(-130%); transition: transform 0.3s ease;
  padding: 1rem 1.2rem 1.4rem;
}
.w0873-mobile-menu.w0873-menu-open { transform: translateY(0); }
.w0873-mobile-menu a {
  display: block; padding: 1rem 1.2rem; color: var(--w0873-text);
  font-size: 1.4rem; border-bottom: 1px solid rgba(255,20,147,0.18);
  border-radius: 6px; margin-bottom: 0.2rem;
}
.w0873-mobile-menu a:active { background: rgba(255,20,147,0.12); }
.w0873-mobile-menu a i { color: var(--w0873-primary); margin-right: 0.8rem; width: 22px; }

/* ===== Hero / Carousel ===== */
.w0873-carousel {
  position: relative; overflow: hidden; border-radius: 14px;
  margin: 6rem 1.2rem 1rem; box-shadow: var(--w0873-shadow);
}
.w0873-carousel-track { display: flex; transition: transform 0.5s ease; }
.w0873-carousel-slide {
  min-width: 100%; position: relative; cursor: pointer;
}
.w0873-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.w0873-carousel-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: linear-gradient(90deg, rgba(30,30,30,0.85), rgba(255,20,147,0.6));
  padding: 0.8rem 1rem; border-radius: 10px;
}
.w0873-carousel-caption h3 { font-size: 1.6rem; color: #fff; margin-bottom: 0.2rem; }
.w0873-carousel-caption p { font-size: 1.2rem; color: #fff; }
.w0873-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(30,30,30,0.6); color: #fff; border: none;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
}
.w0873-carousel-prev { left: 8px; }
.w0873-carousel-next { right: 8px; }
.w0873-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.w0873-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
}
.w0873-carousel-dot.w0873-dot-active { background: var(--w0873-primary); width: 20px; border-radius: 4px; }

/* ===== Section / Headings ===== */
.w0873-section { padding: 1.6rem 1.2rem; }
.w0873-section-alt { background: var(--w0873-card); }
.w0873-section-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 1rem;
  color: var(--w0873-text); position: relative; padding-left: 1rem;
}
.w0873-section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px; background: var(--w0873-primary);
}
.w0873-section-title .w0873-mark { color: var(--w0873-primary); }
.w0873-lead { font-size: 1.35rem; color: var(--w0873-text-muted); margin-bottom: 1rem; }
.w0873-p { font-size: 1.3rem; color: var(--w0873-text-muted); margin-bottom: 0.8rem; }

/* H1 hero title */
.w0873-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.3;
  padding: 1.2rem 1.2rem 0.4rem; color: var(--w0873-text);
}
.w0873-h1 .w0873-mark { color: var(--w0873-primary); }
.w0873-subtitle { font-size: 1.3rem; color: var(--w0873-text-muted); padding: 0 1.2rem 1rem; }

/* ===== Filter tabs ===== */
.w0873-filters {
  display: flex; gap: 0.6rem; padding: 0.4rem 1.2rem 1rem;
  overflow-x: auto; scrollbar-width: none;
}
.w0873-filters::-webkit-scrollbar { display: none; }
.w0873-filter-tab {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; font-size: 1.2rem; font-weight: 600;
  background: var(--w0873-card); color: var(--w0873-text-muted);
  border: 1px solid var(--w0873-border); border-radius: 18px;
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.w0873-filter-tab.w0873-tab-active {
  background: linear-gradient(90deg, var(--w0873-primary), var(--w0873-accent));
  color: #fff; border-color: transparent;
}

/* ===== Game grid ===== */
.w0873-game-group { margin-bottom: 1.4rem; }
.w0873-game-group-title {
  font-size: 1.5rem; font-weight: 700; color: var(--w0873-gold);
  margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem;
}
.w0873-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.w0873-game-card {
  background: var(--w0873-card); border: 1px solid var(--w0873-border);
  border-radius: 10px; padding: 0.6rem; text-align: center;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w0873-game-card:active { transform: scale(0.95); box-shadow: 0 4px 14px rgba(255,20,147,0.3); }
.w0873-game-card img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.w0873-game-card .w0873-game-name {
  font-size: 1.1rem; color: var(--w0873-text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== Feature cards ===== */
.w0873-feature-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.w0873-feature-card {
  background: var(--w0873-card); border-radius: 12px; padding: 1.2rem;
  border-left: 4px solid var(--w0873-primary);
}
.w0873-feature-card h3 { font-size: 1.4rem; color: var(--w0873-text); margin-bottom: 0.4rem; }
.w0873-feature-card p { font-size: 1.25rem; color: var(--w0873-text-muted); }
.w0873-feature-card .w0873-feature-icon { font-size: 1.8rem; color: var(--w0873-primary); margin-bottom: 0.4rem; }

/* ===== Promo CTA banner ===== */
.w0873-cta {
  background: linear-gradient(120deg, #FF1493, #FF4500);
  border-radius: 14px; padding: 1.4rem; text-align: center; margin: 1rem 1.2rem;
  box-shadow: 0 6px 18px rgba(255,69,0,0.4);
}
.w0873-cta h3 { font-size: 1.8rem; color: #fff; margin-bottom: 0.4rem; }
.w0873-cta p { font-size: 1.3rem; color: #fff; margin-bottom: 1rem; }
.w0873-cta .w0873-btn { background: #fff; color: var(--w0873-primary); font-size: 1.4rem; }

/* ===== Payment grid ===== */
.w0873-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.w0873-pay-item {
  background: var(--w0873-card); border-radius: 8px; padding: 0.8rem 0.4rem;
  text-align: center; font-size: 1rem; color: var(--w0873-text-muted);
  border: 1px solid var(--w0873-border);
}
.w0873-pay-item i { font-size: 1.8rem; color: var(--w0873-primary); display: block; margin-bottom: 0.2rem; }

/* ===== Testimonials ===== */
.w0873-testimonial {
  background: var(--w0873-card-alt); border-radius: 12px; padding: 1.2rem;
  margin-bottom: 0.8rem; border: 1px solid var(--w0873-border);
}
.w0873-testimonial .w0873-stars { color: var(--w0873-gold); font-size: 1.2rem; margin-bottom: 0.4rem; }
.w0873-testimonial p { font-size: 1.25rem; color: var(--w0873-text); margin-bottom: 0.6rem; }
.w0873-testimonial .w0873-author { font-size: 1.1rem; color: var(--w0873-text-muted); }

/* ===== Winners list ===== */
.w0873-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--w0873-card); border-radius: 10px; padding: 0.8rem 1rem;
  margin-bottom: 0.6rem; border-left: 3px solid var(--w0873-green);
}
.w0873-winner .w0873-winner-name { font-size: 1.25rem; color: var(--w0873-text); font-weight: 600; }
.w0873-winner .w0873-winner-game { font-size: 1.1rem; color: var(--w0873-text-muted); }
.w0873-winner .w0873-winner-amount { font-size: 1.3rem; color: var(--w0873-green); font-weight: 800; }

/* ===== App download ===== */
.w0873-app-card {
  background: linear-gradient(120deg, #2A2422, #3A2A2F);
  border-radius: 14px; padding: 1.4rem; text-align: center;
  border: 1px solid var(--w0873-border);
}
.w0873-app-card h3 { font-size: 1.6rem; color: var(--w0873-text); margin-bottom: 0.4rem; }
.w0873-app-card p { font-size: 1.25rem; color: var(--w0873-text-muted); margin-bottom: 1rem; }
.w0873-app-buttons { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.w0873-app-buttons .w0873-btn { font-size: 1.3rem; }

/* ===== FAQ ===== */
.w0873-faq-item {
  background: var(--w0873-card); border-radius: 10px; margin-bottom: 0.6rem;
  overflow: hidden; border: 1px solid var(--w0873-border);
}
.w0873-faq-item details { padding: 0.8rem 1rem; }
.w0873-faq-item summary {
  font-size: 1.3rem; font-weight: 700; color: var(--w0873-text);
  cursor: pointer; list-style: none; position: relative; padding-right: 1.6rem;
}
.w0873-faq-item summary::after {
  content: "+"; position: absolute; right: 0; color: var(--w0873-primary); font-size: 1.6rem;
}
.w0873-faq-item details[open] summary::after { content: "-"; }
.w0873-faq-item p { font-size: 1.2rem; color: var(--w0873-text-muted); margin-top: 0.6rem; }

/* ===== Promo link inline ===== */
.w0873-link {
  color: var(--w0873-primary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--w0873-primary);
}

/* ===== Footer ===== */
.w0873-footer {
  background: #161013; padding: 1.6rem 1.2rem 5.5rem;
  border-top: 2px solid var(--w0873-primary); margin-top: 1.4rem;
}
.w0873-footer-brand { font-size: 1.6rem; font-weight: 800; color: var(--w0873-text); margin-bottom: 0.4rem; }
.w0873-footer-brand .w0873-mark { color: var(--w0873-primary); }
.w0873-footer-desc { font-size: 1.2rem; color: var(--w0873-text-muted); margin-bottom: 1rem; }
.w0873-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.w0873-footer-links a {
  background: var(--w0873-card); color: var(--w0873-text);
  padding: 0.5rem 0.9rem; border-radius: 16px; font-size: 1.1rem;
  border: 1px solid var(--w0873-border);
}
.w0873-footer-links a:active { background: rgba(255,20,147,0.2); }
.w0873-footer-copy { font-size: 1.1rem; color: var(--w0873-text-muted); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.8rem; }

/* ===== Mobile bottom nav ===== */
.w0873-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: 62px; display: flex; justify-content: space-around; align-items: center;
  background: linear-gradient(180deg, #1E1E1E, #161013);
  border-top: 2px solid var(--w0873-primary);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.5);
}
.w0873-nav-btn {
  flex: 1; background: transparent; border: none; color: var(--w0873-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 60px; min-height: 60px; cursor: pointer;
  font-size: 1rem; font-weight: 600; transition: color 0.2s ease, transform 0.15s ease;
}
.w0873-nav-btn i, .w0873-nav-btn .material-icons-outlined,
.w0873-nav-btn .ion-icon { font-size: 22px; }
.w0873-nav-btn:active { transform: scale(0.92); }
.w0873-nav-btn.w0873-active { color: var(--w0873-primary); }
.w0873-nav-btn.w0873-promo { color: var(--w0873-gold); }
.w0873-nav-btn.w0873-promo i { color: var(--w0873-gold); }

/* Desktop: hide bottom nav, show wider header padding */
@media (min-width: 769px) {
  .w0873-bottom-nav { display: none; }
}

/* Mobile: bottom padding so content is not hidden behind nav */
@media (max-width: 768px) {
  main, .w0873-main { padding-bottom: 80px; }
}

/* Desktop wider layout */
@media (min-width: 431px) {
  .w0873-game-grid { grid-template-columns: repeat(4, 1fr); }
  .w0873-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .w0873-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
