/* =========================================================
 * jl777.homes - style.css
 * All custom classes use the "wd48a-" prefix.
 * Palette: #CD853F (gold) | #262626 (dark) | #8B0000 (deep red)
 * Mobile-first. Desktop wrapper capped at literal max-width: 430px.
 * ======================================================= */

:root {
  --wd48a-primary: #CD853F;      /* gold */
  --wd48a-bg: #262626;           /* dark */
  --wd48a-deep: #8B0000;         /* deep red */
  --wd48a-text: #f5e9d6;         /* warm light text */
  --wd48a-text-soft: #d8c7a6;
  --wd48a-surface: #1c1c1c;
  --wd48a-surface-2: #303030;
  --wd48a-border: rgba(205,133,63,0.28);
  --wd48a-shadow: 0 6px 22px rgba(0,0,0,0.45);
  --wd48a-radius: 12px;
  --wd48a-radius-lg: 18px;
  --wd48a-transition: 220ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--wd48a-bg);
  color: var(--wd48a-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.wd48a-no-scroll { overflow: hidden; }
a { color: var(--wd48a-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- app shell (mobile-first, literal max-width: 430px) ---------- */
.wd48a-wrapper {
  width: 100%;
  max-width: 430px;          /* mobile-first hard cap (literal) */
  margin: 0 auto;
  background: var(--wd48a-bg);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  position: relative;
  min-height: 100vh;
}

main.wd48a-main {
  padding-bottom: 80px;      /* clear mobile bottom nav */
}

/* ---------- header ---------- */
.wd48a-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #1a1a1a 0%, #262626 100%);
  border-bottom: 2px solid var(--wd48a-primary);
  transition: box-shadow var(--wd48a-transition);
}
.wd48a-header-scrolled { box-shadow: 0 6px 18px rgba(0,0,0,0.6); }
.wd48a-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wd48a-brand img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.wd48a-brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--wd48a-primary);
  letter-spacing: 0.5px;
  line-height: 1;
}
.wd48a-brand-text small {
  display: block;
  font-size: 0.62rem;
  color: var(--wd48a-text-soft);
  font-weight: 500;
  letter-spacing: 0.4px;
}
.wd48a-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wd48a-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--wd48a-border);
  color: var(--wd48a-primary);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}
.wd48a-menu-btn:hover { background: rgba(205,133,63,0.12); }

/* ---------- buttons ---------- */
.wd48a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: transform var(--wd48a-transition), background var(--wd48a-transition), box-shadow var(--wd48a-transition);
  text-decoration: none;
  white-space: nowrap;
}
.wd48a-btn:hover { text-decoration: none; transform: translateY(-1px); }
.wd48a-btn:active { transform: scale(0.97); }
.wd48a-btn-primary {
  background: linear-gradient(135deg, #d68b3c 0%, #8B0000 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139,0,0,0.35);
}
.wd48a-btn-ghost {
  background: transparent;
  color: var(--wd48a-primary);
  border: 1px solid var(--wd48a-primary);
}
.wd48a-btn-block { width: 100%; }
.wd48a-btn-lg { padding: 12px 22px; font-size: 1rem; }

/* ---------- mobile slide-in menu ---------- */
.wd48a-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  transition: opacity var(--wd48a-transition);
}
.wd48a-overlay-on { opacity: 1; visibility: visible; }
.wd48a-mobile-menu {
  position: fixed;
  top: 0; right: -82%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: #1b1b1b;
  z-index: 9999;
  padding: 20px 18px;
  overflow-y: auto;
  transition: right 280ms ease;
  border-left: 1px solid var(--wd48a-border);
}
.wd48a-menu-open { right: 0; }
.wd48a-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wd48a-menu-head h3 { color: var(--wd48a-primary); font-size: 1.1rem; }
.wd48a-menu-close {
  background: transparent;
  border: none;
  color: var(--wd48a-text);
  font-size: 1.4rem;
  cursor: pointer;
}
.wd48a-menu-section-title {
  margin: 14px 4px 6px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--wd48a-text-soft);
}
.wd48a-menu-list li { margin-bottom: 2px; }
.wd48a-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--wd48a-text);
  font-size: 0.95rem;
  transition: background var(--wd48a-transition);
}
.wd48a-menu-list a:hover { background: rgba(205,133,63,0.12); text-decoration: none; }
.wd48a-menu-list .material-icons-outlined,
.wd48a-menu-list .material-icons { font-size: 20px; color: var(--wd48a-primary); }
.wd48a-menu-cta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- section primitives ---------- */
.wd48a-section {
  padding: 22px 14px 8px;
}
.wd48a-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.wd48a-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--wd48a-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wd48a-section-title i { color: var(--wd48a-deep); }
.wd48a-section-more {
  font-size: 0.78rem;
  color: var(--wd48a-text-soft);
}
.wd48a-section-sub {
  color: var(--wd48a-text-soft);
  font-size: 0.86rem;
  margin-bottom: 12px;
}

/* ---------- hero carousel ---------- */
.wd48a-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.wd48a-carousel-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}
.wd48a-slide {
  min-width: 100%;
  position: relative;
}
.wd48a-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.wd48a-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}
.wd48a-slide-overlay h2 {
  font-size: 1.2rem;
  color: var(--wd48a-primary);
  margin-bottom: 4px;
}
.wd48a-slide-overlay p {
  font-size: 0.82rem;
  color: var(--wd48a-text-soft);
}
.wd48a-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.wd48a-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
}
.wd48a-dot-active { background: var(--wd48a-primary); }

/* ---------- hero CTA strip ---------- */
.wd48a-hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(139,0,0,0.25), rgba(205,133,63,0.18));
}
.wd48a-hero-cta .wd48a-btn { width: 100%; }

/* ---------- game grid ---------- */
.wd48a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wd48a-game-card {
  position: relative;
  background: var(--wd48a-surface);
  border-radius: var(--wd48a-radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform var(--wd48a-transition), box-shadow var(--wd48a-transition);
}
.wd48a-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wd48a-shadow);
}
.wd48a-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.wd48a-game-card-name {
  padding: 6px 8px;
  font-size: 0.74rem;
  text-align: center;
  color: var(--wd48a-text);
  background: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd48a-game-card-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--wd48a-deep);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- category chip rail ---------- */
.wd48a-category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 14px 10px;
  scrollbar-width: none;
}
.wd48a-category-rail::-webkit-scrollbar { display: none; }
.wd48a-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--wd48a-surface-2);
  color: var(--wd48a-text);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}
.wd48a-chip a { color: inherit; }
.wd48a-chip-primary {
  background: linear-gradient(135deg, var(--wd48a-primary), var(--wd48a-deep));
  color: #fff;
}

/* ---------- info / feature cards ---------- */
.wd48a-card {
  background: var(--wd48a-surface);
  border-radius: var(--wd48a-radius);
  padding: 14px;
  border: 1px solid var(--wd48a-border);
}
.wd48a-card h3 {
  color: var(--wd48a-primary);
  font-size: 1rem;
  margin-bottom: 6px;
}
.wd48a-card p {
  color: var(--wd48a-text-soft);
  font-size: 0.86rem;
}
.wd48a-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.wd48a-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.wd48a-feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--wd48a-surface);
  padding: 12px;
  border-radius: var(--wd48a-radius);
  border-left: 3px solid var(--wd48a-primary);
}
.wd48a-feature-item .material-icons,
.wd48a-feature-item i { color: var(--wd48a-primary); font-size: 22px; }
.wd48a-feature-item h4 { color: var(--wd48a-text); font-size: 0.92rem; margin-bottom: 3px; }
.wd48a-feature-item p { color: var(--wd48a-text-soft); font-size: 0.8rem; }

/* ---------- prose ---------- */
.wd48a-prose p {
  color: var(--wd48a-text-soft);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.wd48a-prose strong { color: var(--wd48a-primary); }
.wd48a-prose a { color: var(--wd48a-primary); font-weight: 600; }

/* ---------- RTP table ---------- */
.wd48a-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wd48a-surface);
  border-radius: var(--wd48a-radius);
  overflow: hidden;
}
.wd48a-rtp-table th, .wd48a-rtp-table td {
  padding: 9px 10px;
  font-size: 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wd48a-rtp-table th { background: var(--wd48a-deep); color: #fff; font-weight: 700; }
.wd48a-rtp-table td:last-child { color: var(--wd48a-primary); font-weight: 700; }

/* ---------- winners showcase ---------- */
.wd48a-winners {
  position: relative;
  background: linear-gradient(135deg, rgba(139,0,0,0.22), rgba(38,38,38,1));
  padding: 14px;
  border-radius: var(--wd48a-radius-lg);
  border: 1px solid var(--wd48a-border);
}
.wd48a-winners-list { position: relative; min-height: 120px; }
.wd48a-winners-group { display: none; }
.wd48a-winners-active { display: block; }
.wd48a-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  font-size: 0.82rem;
}
.wd48a-winner-row:last-child { border-bottom: none; }
.wd48a-winner-name { color: var(--wd48a-text); font-weight: 600; }
.wd48a-winner-amount { color: var(--wd48a-primary); font-weight: 800; }

/* ---------- testimonials ---------- */
.wd48a-testimonial {
  background: var(--wd48a-surface);
  border-radius: var(--wd48a-radius);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--wd48a-deep);
}
.wd48a-testimonial-stars { color: #f5b301; font-size: 0.82rem; margin-bottom: 4px; }
.wd48a-testimonial p { color: var(--wd48a-text-soft); font-size: 0.86rem; font-style: italic; }
.wd48a-testimonial .wd48a-author {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--wd48a-primary);
  font-weight: 700;
}

/* ---------- payments ---------- */
.wd48a-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.wd48a-pay-item {
  background: var(--wd48a-surface);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--wd48a-text-soft);
  border: 1px solid var(--wd48a-border);
}
.wd48a-pay-item i { font-size: 22px; color: var(--wd48a-primary); display: block; margin-bottom: 4px; }

/* ---------- app download CTA ---------- */
.wd48a-app-cta {
  background: linear-gradient(135deg, #1c1c1c, #303030);
  border-radius: var(--wd48a-radius-lg);
  padding: 16px;
  border: 1px solid var(--wd48a-border);
  text-align: center;
}
.wd48a-app-cta h3 { color: var(--wd48a-primary); margin-bottom: 4px; }
.wd48a-app-cta p { color: var(--wd48a-text-soft); font-size: 0.84rem; margin-bottom: 12px; }
.wd48a-app-btns { display: flex; flex-direction: column; gap: 8px; }

/* ---------- faq ---------- */
.wd48a-faq-item {
  background: var(--wd48a-surface);
  border-radius: var(--wd48a-radius);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--wd48a-border);
}
.wd48a-faq-item summary {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--wd48a-text);
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
}
.wd48a-faq-item summary::-webkit-details-marker { display: none; }
.wd48a-faq-item summary::before {
  content: '+';
  color: var(--wd48a-primary);
  font-weight: 800;
  margin-right: 8px;
}
.wd48a-faq-item[open] summary::before { content: '-'; }
.wd48a-faq-item p {
  padding: 0 14px 12px;
  color: var(--wd48a-text-soft);
  font-size: 0.84rem;
}

/* ---------- footer ---------- */
.wd48a-footer {
  background: #161616;
  padding: 22px 14px 16px;
  border-top: 2px solid var(--wd48a-primary);
}
.wd48a-footer-brand {
  color: var(--wd48a-primary);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.wd48a-footer-intro {
  color: var(--wd48a-text-soft);
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.wd48a-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 14px;
}
.wd48a-footer-links a {
  color: var(--wd48a-text-soft);
  font-size: 0.82rem;
}
.wd48a-footer-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.wd48a-footer-legal {
  font-size: 0.72rem;
  color: #8a7d65;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 10px;
  text-align: center;
}

/* ---------- mobile bottom nav ---------- */
.wd48a-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: #141414;
  border-top: 2px solid var(--wd48a-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.wd48a-nav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--wd48a-text-soft);
  text-decoration: none;
  font-size: 0.66rem;
  cursor: pointer;
  position: relative;
  transition: color var(--wd48a-transition), transform var(--wd48a-transition);
}
.wd48a-nav-item i,
.wd48a-nav-item .material-icons,
.wd48a-nav-item .material-icons-outlined {
  font-size: 22px;
}
.wd48a-nav-item:hover { color: var(--wd48a-primary); transform: translateY(-2px); text-decoration: none; }
.wd48a-nav-item:active { transform: scale(0.94); }
.wd48a-nav-item.is-active { color: var(--wd48a-primary); }
.wd48a-nav-item.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--wd48a-primary);
}
.wd48a-nav-item-promo {
  background: linear-gradient(180deg, rgba(205,133,63,0.15), transparent);
  color: var(--wd48a-primary);
}

/* ---------- back to top ---------- */
.wd48a-back-top {
  position: fixed;
  right: 14px;
  bottom: 76px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wd48a-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: opacity var(--wd48a-transition), visibility var(--wd48a-transition);
  box-shadow: var(--wd48a-shadow);
}
.wd48a-back-top-show { opacity: 1; visibility: visible; }

/* ---------- toast ---------- */
.wd48a-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translate(-50%, 20px);
  background: rgba(38,38,38,0.97);
  color: var(--wd48a-primary);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--wd48a-border);
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  transition: opacity 250ms ease, transform 250ms ease;
  max-width: 90%;
  text-align: center;
}
.wd48a-toast-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- helpers ---------- */
.wd48a-text-center { text-align: center; }
.wd48a-mt-8 { margin-top: 8px; }
.wd48a-mt-12 { margin-top: 12px; }
.wd48a-promise-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 14px;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.74rem;
  color: var(--wd48a-text-soft);
}
.wd48a-promise-bar span { display: inline-flex; align-items: center; gap: 6px; }
.wd48a-promise-bar i { color: var(--wd48a-primary); font-size: 16px; }

/* ---------- desktop ---------- */
@media (min-width: 769px) {
  .wd48a-bottom-nav { display: none; }
  main.wd48a-main { padding-bottom: 24px; }
  .wd48a-slide img { height: 260px; }
  .wd48a-grid { grid-template-columns: repeat(6, 1fr); }
  .wd48a-grid-2 { grid-template-columns: repeat(4, 1fr); }
  .wd48a-pay-grid { grid-template-columns: repeat(6, 1fr); }
}

/* small phones fine-tune */
@media (max-width: 360px) {
  .wd48a-grid { grid-template-columns: repeat(2, 1fr); }
  .wd48a-brand-text { font-size: 1rem; }
}
