/* ============================================================
   eeca.click  -  Core Base Stylesheet (theme-d767.css)
   Prefix: wd767-  |  Palette: #4B0082 / #1A1A1A
   Mobile-first HTML5 casino layout (max 430px primary)
   ============================================================ */

:root {
  --wd767-primary: #4B0082;
  --wd767-primary-soft: #6a1ab8;
  --wd767-primary-deep: #2f005a;
  --wd767-bg: #1A1A1A;
  --wd767-bg-2: #141014;
  --wd767-bg-3: #201627;
  --wd767-surface: #241830;
  --wd767-surface-2: #2d1f3d;
  --wd767-text: #f3eafc;
  --wd767-text-muted: #b7a6cf;
  --wd767-accent: #ffb020;
  --wd767-accent-2: #ff5a8a;
  --wd767-success: #28d17c;
  --wd767-border: rgba(180, 140, 230, 0.18);
  --wd767-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --wd767-radius: 14px;
  --wd767-radius-sm: 9px;
  --wd767-header-h: 58px;
  --wd767-bottomnav-h: 62px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, var(--wd767-primary-deep) 0%, var(--wd767-bg) 55%, var(--wd767-bg-2) 100%);
  color: var(--wd767-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wd767-text); text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout helpers ---------- */
.wd767-wrapper { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.wd767-container { width: 100%; max-width: 430px; margin: 0 auto; }
.wd767-section { padding: 22px 0 14px; }
.wd767-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.65rem; font-weight: 800; margin: 6px 0 12px;
  color: var(--wd767-text);
}
.wd767-section-title .wd767-bar {
  width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--wd767-accent), var(--wd767-primary-soft));
}
.wd767-eyebrow {
  display: inline-block; font-size: 1.15rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--wd767-accent);
  padding: 4px 10px; border: 1px solid var(--wd767-border); border-radius: 20px;
  margin-bottom: 8px;
}

/* ---------- Header ---------- */
.wd767-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--wd767-header-h);
  background: linear-gradient(90deg, var(--wd767-primary-deep), var(--wd767-primary) 60%, var(--wd767-primary-deep));
  border-bottom: 1px solid var(--wd767-border);
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.wd767-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.wd767-brand { display: flex; align-items: center; gap: 8px; }
.wd767-brand img { width: 30px; height: 30px; border-radius: 7px; }
.wd767-brand-name { font-size: 1.55rem; font-weight: 900; letter-spacing: 0.04em; color: #fff; }
.wd767-brand-tag { font-size: 0.95rem; color: var(--wd767-accent); }

.wd767-header-actions { display: flex; align-items: center; gap: 7px; }
.wd767-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 14px;
  font-size: 1.25rem; font-weight: 800; border-radius: 22px;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.wd767-btn:active { transform: scale(0.95); }
.wd767-btn-login {
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
}
.wd767-btn-register {
  background: linear-gradient(135deg, var(--wd767-accent), var(--wd767-accent-2));
  color: #1A1A1A;
  box-shadow: 0 4px 14px rgba(255, 90, 138, 0.45);
}

.wd767-menu-toggle {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border: 1px solid var(--wd767-border);
  color: #fff; font-size: 1.5rem;
}

/* ---------- Mobile dropdown menu ---------- */
.wd767-mobile-menu {
  position: fixed; top: var(--wd767-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--wd767-surface);
  border-bottom: 1px solid var(--wd767-border);
  max-height: 0; overflow: hidden;
  transition: max-height 0.32s ease;
}
.wd767-mobile-menu.wd767-open { max-height: 520px; }
.wd767-mobile-menu ul { padding: 10px 14px 18px; }
.wd767-mobile-menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px; font-size: 1.35rem; font-weight: 700;
  border-bottom: 1px dashed rgba(180,140,230,0.14);
  color: var(--wd767-text);
}
.wd767-mobile-menu li a i { color: var(--wd767-accent); font-size: 1.5rem; }
.wd767-mobile-menu li a:active { background: rgba(255,176,32,0.08); }

/* ---------- Hero / Carousel ---------- */
.wd767-main { padding-top: calc(var(--wd767-header-h) + 8px); }
@media (max-width: 768px) { .wd767-main { padding-bottom: calc(var(--wd767-bottomnav-h) + 14px); } }

.wd767-carousel { position: relative; border-radius: var(--wd767-radius); overflow: hidden; box-shadow: var(--wd767-shadow); }
.wd767-carousel-track { display: flex; transition: transform 0.45s ease; }
.wd767-slide { min-width: 100%; position: relative; cursor: pointer; }
.wd767-slide img { width: 100%; height: 200px; object-fit: cover; }
.wd767-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(20,8,30,0.92));
}
.wd767-slide-title { font-size: 1.6rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.wd767-slide-sub { font-size: 1.15rem; color: var(--wd767-text-muted); margin-bottom: 8px; }
.wd767-slide-cta {
  display: inline-block; padding: 6px 14px; border-radius: 18px;
  background: linear-gradient(135deg, var(--wd767-accent), var(--wd767-accent-2));
  color: #1A1A1A; font-weight: 800; font-size: 1.15rem;
}
.wd767-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.wd767-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: all 0.2s; }
.wd767-dot.wd767-active { background: var(--wd767-accent); width: 22px; border-radius: 5px; }

/* ---------- H1 / Intro ---------- */
.wd767-h1 {
  font-size: 2.4rem; line-height: 1.35; font-weight: 900;
  margin: 18px 0 8px;
  background: linear-gradient(90deg, #fff, var(--wd767-accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wd767-intro { color: var(--wd767-text-muted); font-size: 1.3rem; margin-bottom: 6px; }
.wd767-text-link { color: var(--wd767-accent); font-weight: 800; border-bottom: 1px dashed var(--wd767-accent); }

/* ---------- Game grid ---------- */
.wd767-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 10px;
}
.wd767-cat-head h2 { font-size: 1.55rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.wd767-cat-head h2 i { color: var(--wd767-accent); font-size: 1.8rem; }
.wd767-cat-link { font-size: 1.15rem; color: var(--wd767-accent); font-weight: 700; }

.wd767-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wd767-card {
  background: var(--wd767-surface);
  border: 1px solid var(--wd767-border);
  border-radius: var(--wd767-radius-sm);
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.wd767-card:active { transform: scale(0.96); border-color: var(--wd767-accent); }
.wd767-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 7px;
}
.wd767-card-name {
  font-size: 1.05rem; font-weight: 600; color: var(--wd767-text);
  margin-top: 4px; line-height: 1.2; min-height: 2.6em;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ---------- Feature / info blocks ---------- */
.wd767-card-block {
  background: var(--wd767-surface);
  border: 1px solid var(--wd767-border);
  border-radius: var(--wd767-radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--wd767-shadow);
}
.wd767-card-block h3 {
  font-size: 1.45rem; font-weight: 800; margin-bottom: 8px;
  color: #fff; display: flex; align-items: center; gap: 8px;
}
.wd767-card-block h3 i { color: var(--wd767-accent); }
.wd767-card-block p { color: var(--wd767-text-muted); font-size: 1.25rem; line-height: 1.65; margin-bottom: 8px; }

/* ---------- Steps ---------- */
.wd767-steps { display: flex; flex-direction: column; gap: 10px; }
.wd767-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; background: var(--wd767-surface-2); border-radius: 10px;
  border-left: 3px solid var(--wd767-accent);
}
.wd767-step-no {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wd767-primary-soft), var(--wd767-accent));
  color: #fff; font-weight: 900; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.wd767-step-body strong { color: #fff; font-size: 1.3rem; }
.wd767-step-body span { display: block; color: var(--wd767-text-muted); font-size: 1.15rem; margin-top: 2px; }

/* ---------- FAQ ---------- */
.wd767-faq-item {
  border: 1px solid var(--wd767-border);
  border-radius: 10px; margin-bottom: 8px; overflow: hidden;
  background: var(--wd767-surface-2);
}
.wd767-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; font-weight: 700; font-size: 1.3rem; color: #fff;
  cursor: pointer;
}
.wd767-faq-q .wd767-faq-icon { color: var(--wd767-accent); transition: transform 0.2s; }
.wd767-faq-item.wd767-open .wd767-faq-icon { transform: rotate(45deg); }
.wd767-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  padding: 0 14px;
}
.wd767-faq-item.wd767-open .wd767-faq-a { max-height: 300px; padding-bottom: 14px; }
.wd767-faq-a p { color: var(--wd767-text-muted); font-size: 1.2rem; line-height: 1.6; }

/* ---------- Badges & pills ---------- */
.wd767-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.wd767-pill {
  font-size: 1.1rem; padding: 4px 10px; border-radius: 16px;
  background: rgba(106, 26, 184, 0.25); border: 1px solid var(--wd767-border);
  color: var(--wd767-text);
}
.wd767-pill i { color: var(--wd767-accent); margin-right: 3px; }

/* ---------- RTP table ---------- */
.wd767-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.wd767-rtp-table th, .wd767-rtp-table td {
  padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--wd767-border);
}
.wd767-rtp-table th { color: var(--wd767-accent); font-weight: 800; font-size: 1.1rem; }
.wd767-rtp-table td.wd767-rt-num { color: var(--wd767-success); font-weight: 800; }

/* ---------- Testimonial ---------- */
.wd767-testimonials { display: grid; grid-template-columns: 1fr; gap: 10px; }
.wd767-testi {
  background: var(--wd767-surface-2); border-radius: 10px; padding: 12px;
  border: 1px solid var(--wd767-border);
}
.wd767-testi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wd767-testi-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wd767-primary-soft), var(--wd767-accent-2));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900;
}
.wd767-testi-name { font-weight: 800; color: #fff; font-size: 1.25rem; }
.wd767-testi-stars { color: var(--wd767-accent); font-size: 1rem; }
.wd767-testi p { color: var(--wd767-text-muted); font-size: 1.15rem; line-height: 1.55; }

/* ---------- CTA banner ---------- */
.wd767-cta {
  background: linear-gradient(135deg, var(--wd767-primary), var(--wd767-accent-2));
  border-radius: var(--wd767-radius); padding: 18px;
  text-align: center; color: #fff; margin: 16px 0;
  box-shadow: 0 8px 22px rgba(255, 90, 138, 0.3);
}
.wd767-cta h3 { font-size: 1.7rem; font-weight: 900; margin-bottom: 6px; }
.wd767-cta p { font-size: 1.2rem; color: rgba(255,255,255,0.88); margin-bottom: 12px; }
.wd767-cta .wd767-btn {
  background: #fff; color: var(--wd767-primary);
  padding: 10px 22px; font-size: 1.3rem;
}

/* ---------- Winners list ---------- */
.wd767-winners {
  background: var(--wd767-surface-2); border-radius: 10px;
  padding: 10px 12px; border: 1px solid var(--wd767-border);
}
.wd767-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px dashed rgba(180,140,230,0.14);
  font-size: 1.15rem;
}
.wd767-winner-row:last-child { border-bottom: none; }
.wd767-winner-name { color: #fff; font-weight: 700; }
.wd767-winner-game { color: var(--wd767-text-muted); }
.wd767-winner-amt { color: var(--wd767-success); font-weight: 800; }

/* ---------- Payment grid ---------- */
.wd767-pay-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.wd767-pay {
  background: var(--wd767-surface-2); border: 1px solid var(--wd767-border);
  border-radius: 10px; padding: 10px 4px; text-align: center;
  font-size: 1.05rem; font-weight: 700; color: var(--wd767-text);
}
.wd767-pay i { font-size: 1.8rem; color: var(--wd767-accent); display: block; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.wd767-footer {
  background: var(--wd767-bg-2);
  border-top: 1px solid var(--wd767-border);
  padding: 22px 14px calc(var(--wd767-bottomnav-h) + 22px);
  margin-top: 20px;
}
@media (min-width: 769px) { .wd767-footer { padding-bottom: 28px; } }
.wd767-footer-brand { font-size: 1.6rem; font-weight: 900; margin-bottom: 6px; color: #fff; }
.wd767-footer p { color: var(--wd767-text-muted); font-size: 1.15rem; margin-bottom: 10px; line-height: 1.6; }
.wd767-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0;
}
.wd767-footer-links a {
  font-size: 1.15rem; color: var(--wd767-text-muted);
}
.wd767-footer-links a:hover { color: var(--wd767-accent); }
.wd767-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px;
}
.wd767-footer-promo button {
  flex: 1 1 30%; min-height: 38px;
  border-radius: 22px; font-weight: 800; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--wd767-primary-soft), var(--wd767-primary));
  color: #fff; border: 1px solid var(--wd767-border);
}
.wd767-footer-copy { font-size: 1.05rem; color: rgba(183,166,207,0.7); margin-top: 12px; border-top: 1px dashed var(--wd767-border); padding-top: 10px; }

/* ---------- Mobile bottom nav ---------- */
.wd767-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--wd767-bottomnav-h);
  background: linear-gradient(180deg, var(--wd767-primary-deep), var(--wd767-bg));
  border-top: 1px solid var(--wd767-border);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.4);
}
.wd767-bottomnav button, .wd767-bottomnav a {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--wd767-text-muted); font-weight: 700;
  gap: 2px; text-decoration: none;
  position: relative;
}
.wd767-bottomnav .wd767-bn-ico {
  font-size: 2rem; line-height: 1; color: var(--wd767-text-muted);
  transition: transform 0.2s, color 0.2s;
}
.wd767-bottomnav button:active, .wd767-bottomnav a:active { transform: scale(0.92); }
.wd767-bottomnav .wd767-active .wd767-bn-ico,
.wd767-bottomnav .wd767-active { color: var(--wd767-accent); }
.wd767-bn-badge {
  position: absolute; top: 6px; right: 22%;
  background: var(--wd767-accent-2); color: #fff;
  font-size: 0.9rem; font-weight: 800;
  padding: 0 5px; border-radius: 9px; line-height: 1.5;
}

/* ---------- Desktop nav (hidden on mobile) ---------- */
.wd767-desktop-nav { display: none; }
@media (min-width: 769px) {
  .wd767-bottomnav { display: none; }
  .wd767-desktop-nav {
    display: flex; gap: 14px; align-items: center;
  }
  .wd767-desktop-nav a {
    color: #fff; font-size: 1.25rem; font-weight: 700;
  }
  .wd767-desktop-nav a:hover { color: var(--wd767-accent); }
}

/* ---------- Misc utilities ---------- */
.wd767-hide { display: none !important; }
.wd767-mt-8 { margin-top: 8px; }
.wd767-mt-16 { margin-top: 16px; }
.wd767-text-accent { color: var(--wd767-accent); }
.wd767-text-success { color: var(--wd767-success); }
.wd767-bold { font-weight: 800; }
.wd767-lead { font-size: 1.3rem; color: var(--wd767-text); }

/* ---------- Achievement grid ---------- */
.wd767-ach-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.wd767-ach {
  background: var(--wd767-surface-2); border-radius: 10px; padding: 10px;
  border: 1px solid var(--wd767-border); text-align: center;
}
.wd767-ach i { font-size: 1.9rem; color: var(--wd767-accent); }
.wd767-ach strong { display: block; color: #fff; font-size: 1.25rem; margin-top: 4px; }
.wd767-ach span { font-size: 1.05rem; color: var(--wd767-text-muted); }

/* ---------- Trick list ---------- */
.wd767-trick {
  display: flex; gap: 10px; padding: 10px;
  background: var(--wd767-surface-2); border-radius: 10px;
  margin-bottom: 8px; border-left: 3px solid var(--wd767-accent);
}
.wd767-trick i { color: var(--wd767-accent); font-size: 1.7rem; flex-shrink: 0; }
.wd767-trick p { color: var(--wd767-text-muted); font-size: 1.18rem; line-height: 1.55; }
.wd767-trick strong { color: #fff; }
