/* ==========================================================================
   x777 link - design-4775.css
   All custom classes use the w4775- prefix.
   Mobile-first, max-width 430px reference viewport.
   ========================================================================== */

:root {
  --w4775-primary: #008000;       /* deep green */
  --w4775-accent: #00FF00;        /* electric green */
  --w4775-soft: #90EE90;          /* light green */
  --w4775-rose: #FFCCCB;          /* light pink */
  --w4775-bg: #1B263B;            /* dark navy background */
  --w4775-bg-2: #13203a;          /* darker panel */
  --w4775-text: #f3fff5;          /* near-white text */
  --w4775-muted: #b9c7d6;         /* muted text */
  --w4775-card: #1f2d4a;          /* card surface */
  --w4775-border: rgba(144, 238, 144, 0.18);
  --w4775-radius: 14px;
  --w4775-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #213561 0%, var(--w4775-bg) 55%, #0d1729 100%);
  color: var(--w4775-text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; }

/* ---------- Layout helpers ---------- */
.w4775-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.w4775-wrapper { padding: 2rem 0; }
.w4775-grid { display: grid; gap: 1rem; }

/* ---------- Header ---------- */
.w4775-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(13, 23, 41, 0.96), rgba(27, 38, 59, 0.96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--w4775-border);
}
.w4775-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.w4775-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--w4775-text);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.4px;
}
.w4775-logo img { width: 28px; height: 28px; border-radius: 8px; }
.w4775-logo .w4775-logo-x {
  color: var(--w4775-accent);
  text-shadow: 0 0 12px rgba(0, 255, 0, 0.45);
}
.w4775-header-actions { display: flex; gap: 0.5rem; align-items: center; }

/* ---------- Buttons ---------- */
.w4775-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.w4775-btn:hover { text-decoration: none; transform: translateY(-1px); }
.w4775-btn-primary {
  background: linear-gradient(135deg, var(--w4775-primary), var(--w4775-accent));
  color: #04140a;
  box-shadow: 0 4px 14px rgba(0, 255, 0, 0.28);
}
.w4775-btn-ghost {
  background: rgba(144, 238, 144, 0.10);
  color: var(--w4775-soft);
  border: 1px solid var(--w4775-border);
}
.w4775-btn-rose {
  background: linear-gradient(135deg, #ff8a8a, var(--w4775-rose));
  color: #4a0d0d;
  box-shadow: 0 4px 14px rgba(255, 140, 140, 0.25);
}

/* Hamburger */
.w4775-menu-btn {
  background: transparent;
  border: 1px solid var(--w4775-border);
  color: var(--w4775-text);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- Mobile dropdown menu ---------- */
.w4775-mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--w4775-bg-2);
  border-bottom: 1px solid var(--w4775-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  z-index: 9999;
}
.w4775-mobile-menu.w4775-menu-open { max-height: 80vh; overflow-y: auto; }
.w4775-mobile-menu-inner { padding: 1rem 1.4rem 1.4rem; display: grid; gap: 0.6rem; }
.w4775-mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(144, 238, 144, 0.06);
  color: var(--w4775-text);
  font-size: 1.35rem;
}
.w4775-mobile-menu a:hover { background: rgba(0, 255, 0, 0.12); text-decoration: none; }

/* ---------- Main / hero spacing ---------- */
.w4775-main { padding-top: 74px; padding-bottom: 90px; }

.w4775-hero {
  position: relative;
  border-radius: var(--w4775-radius);
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: var(--w4775-shadow);
}
.w4775-carousel { position: relative; }
.w4775-carousel-track { position: relative; height: 200px; }
.w4775-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease;
  background-size: cover; background-position: center;
}
.w4775-carousel-slide.w4775-active { opacity: 1; }
.w4775-carousel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 23, 41, 0.05) 30%, rgba(13, 23, 41, 0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem;
}
.w4775-carousel-title {
  font-size: 1.8rem; font-weight: 800; color: #fff; margin: 0 0 0.3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.w4775-carousel-sub {
  font-size: 1.2rem; color: var(--w4775-soft); margin: 0 0 0.8rem;
}
.w4775-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.w4775-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45); cursor: pointer; border: none; padding: 0;
}
.w4775-carousel-dot.w4775-active { background: var(--w4775-accent); width: 18px; border-radius: 4px; }

/* ---------- Section headings ---------- */
.w4775-section { margin: 2rem 0; }
.w4775-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: 0.8rem;
}
.w4775-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--w4775-text);
  display: flex; align-items: center; gap: 0.5rem;
}
.w4775-section-title .w4775-bar {
  width: 4px; height: 18px; background: var(--w4775-accent); border-radius: 2px;
  display: inline-block;
}
.w4775-section-link { font-size: 1.15rem; color: var(--w4775-soft); }

/* ---------- Category pill rail ---------- */
.w4775-category-rail {
  display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.w4775-category-rail::-webkit-scrollbar { display: none; }
.w4775-category-pill {
  flex: 0 0 auto;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(144, 238, 144, 0.08);
  border: 1px solid var(--w4775-border);
  color: var(--w4775-text);
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Game grid ---------- */
.w4775-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.w4775-game-card {
  background: var(--w4775-card);
  border: 1px solid var(--w4775-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.w4775-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--w4775-accent);
  box-shadow: 0 6px 18px rgba(0, 255, 0, 0.18);
}
.w4775-game-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0b1426;
}
.w4775-game-name {
  font-size: 1.05rem;
  padding: 0.45rem 0.5rem 0.55rem;
  color: var(--w4775-text);
  text-align: center;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Feature / promo cards ---------- */
.w4775-card {
  background: var(--w4775-card);
  border: 1px solid var(--w4775-border);
  border-radius: var(--w4775-radius);
  padding: 1.2rem;
  box-shadow: var(--w4775-shadow);
}
.w4775-card h3 { font-size: 1.4rem; color: var(--w4775-accent); }
.w4775-card p { color: var(--w4775-muted); font-size: 1.25rem; margin: 0 0 0.6rem; }

.w4775-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.w4775-feature {
  background: linear-gradient(160deg, rgba(0, 128, 0, 0.18), rgba(31, 45, 74, 0.7));
  border: 1px solid var(--w4775-border);
  border-radius: 12px;
  padding: 1rem;
}
.w4775-feature .w4775-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(0, 255, 0, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--w4775-accent); font-size: 1.9rem;
  margin-bottom: 0.6rem;
}
.w4775-feature h4 { margin: 0 0 0.3rem; font-size: 1.25rem; color: var(--w4775-text); }
.w4775-feature p { margin: 0; font-size: 1.15rem; color: var(--w4775-muted); }

/* ---------- Testimonials ---------- */
.w4775-testimonial {
  background: var(--w4775-card);
  border-left: 3px solid var(--w4775-accent);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
}
.w4775-testimonial p { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--w4775-text); }
.w4775-testimonial .w4775-stars { color: #ffd166; font-size: 1.1rem; }
.w4775-testimonial .w4775-author { font-size: 1.1rem; color: var(--w4775-soft); }

/* ---------- Winners ---------- */
.w4775-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.8rem; border-bottom: 1px dashed var(--w4775-border);
  font-size: 1.2rem;
}
.w4775-winner-row:last-child { border-bottom: none; }
.w4775-winner-name { color: var(--w4775-text); font-weight: 600; }
.w4775-winner-amount { color: var(--w4775-accent); font-weight: 800; }

/* ---------- Payment chips ---------- */
.w4775-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w4775-pay-chip {
  background: rgba(144, 238, 144, 0.08);
  border: 1px solid var(--w4775-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 1.15rem;
  color: var(--w4775-text);
  display: inline-flex; align-items: center; gap: 0.35rem;
}

/* ---------- FAQ ---------- */
.w4775-faq-item {
  background: var(--w4775-card);
  border: 1px solid var(--w4775-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
}
.w4775-faq-item h4 { margin: 0 0 0.4rem; font-size: 1.25rem; color: var(--w4775-accent); }
.w4775-faq-item p { margin: 0; font-size: 1.18rem; color: var(--w4775-muted); }

/* ---------- SEO prose ---------- */
.w4775-prose p { font-size: 1.25rem; color: var(--w4775-muted); margin: 0 0 0.8rem; }
.w4775-prose strong { color: var(--w4775-soft); }
.w4775-prose a { color: var(--w4775-accent); }

/* ---------- CTA band ---------- */
.w4775-cta {
  background: linear-gradient(135deg, var(--w4775-primary), var(--w4775-accent));
  color: #04140a;
  border-radius: var(--w4775-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.6rem 0;
  box-shadow: 0 8px 22px rgba(0, 255, 0, 0.28);
}
.w4775-cta h3 { margin: 0 0 0.4rem; font-size: 1.6rem; color: #04140a; }
.w4775-cta p { margin: 0 0 1rem; font-size: 1.25rem; color: #08280f; }
.w4775-cta .w4775-btn { background: #04140a; color: var(--w4775-accent); }

/* ---------- Footer ---------- */
.w4775-footer {
  background: var(--w4775-bg-2);
  border-top: 1px solid var(--w4775-border);
  padding: 2rem 0 1.4rem;
}
.w4775-footer-brand { font-weight: 800; font-size: 1.5rem; color: var(--w4775-text); margin-bottom: 0.6rem; }
.w4775-footer p { color: var(--w4775-muted); font-size: 1.18rem; }
.w4775-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0;
}
.w4775-footer-links a {
  background: rgba(144, 238, 144, 0.08);
  border: 1px solid var(--w4775-border);
  color: var(--w4775-text);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 1.15rem;
}
.w4775-footer-links a:hover { background: rgba(0, 255, 0, 0.14); text-decoration: none; }
.w4775-footer-copy { font-size: 1.1rem; color: var(--w4775-muted); margin-top: 1rem; }

/* ---------- Bottom navigation ---------- */
.w4775-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(13, 23, 41, 0.98), rgba(13, 23, 41, 1));
  border-top: 1px solid var(--w4775-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.32);
}
.w4775-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w4775-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}
.w4775-bottom-nav-btn .w4775-ico { font-size: 2.2rem; line-height: 1; }
.w4775-bottom-nav-btn:hover { color: var(--w4775-soft); transform: translateY(-1px); }
.w4775-bottom-nav-btn.w4775-active { color: var(--w4775-accent); }
.w4775-bottom-nav-btn.w4775-active .w4775-ico { text-shadow: 0 0 10px rgba(0, 255, 0, 0.5); }

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

/* ---------- Desktop: hide bottom nav, widen container ---------- */
@media (min-width: 769px) {
  .w4775-bottom-nav { display: none; }
  .w4775-container { max-width: 960px; }
  .w4775-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w4775-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .w4775-carousel-track { height: 320px; }
  .w4775-main { padding-bottom: 2rem; }
}

/* Mobile bottom padding clearance handled via .w4775-main padding-bottom */
