/* ============================================================
 * Sic bo - core base stylesheet
 * All custom class names use the w569d- prefix.
 * Palette: #FFA500 | #2E4057 | #778899 | #B8860B | #FFB347
 * Mobile-first. Root font 62.5% for rem scaling.
 * ============================================================ */

:root {
  --w569d-primary: #FFA500;
  --w569d-primary-soft: #FFB347;
  --w569d-deep: #2E4057;
  --w569d-muted: #778899;
  --w569d-gold: #B8860B;
  --w569d-bg: #0f1a24;
  --w569d-bg-2: #16263a;
  --w569d-card: #1c3047;
  --w569d-text: #f4f7fb;
  --w569d-text-soft: #c4d0de;
  --w569d-line: rgba(255, 165, 0, 0.18);
  --w569d-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  --w569d-radius: 14px;
}

* { box-sizing: border-box; }

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

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

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

h1, h2, h3, h4 { margin: 0 0 .8rem; line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; color: var(--w569d-primary); }
h3 { font-size: 1.6rem; color: var(--w569d-primary-soft); }
p  { margin: 0 0 1rem; color: var(--w569d-text-soft); }

.w569d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.w569d-wrapper { width: 100%; }

/* ---------- Header ---------- */
.w569d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(15,26,36,.96), rgba(15,26,36,.86));
  border-bottom: 1px solid var(--w569d-line);
  backdrop-filter: blur(8px);
}
.w569d-header-inner {
  max-width: 430px; margin: 0 auto; padding: 8px 14px;
  display: flex; align-items: center; gap: 10px; min-height: 54px;
}
.w569d-logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.w569d-logo img { width: 30px; height: 30px; border-radius: 6px; }
.w569d-logo-text { font-weight: 800; color: var(--w569d-primary); font-size: 1.6rem; letter-spacing: .3px; white-space: nowrap; }
.w569d-logo-text small { color: var(--w569d-text-soft); font-weight: 500; font-size: 1rem; }

.w569d-header-actions { display: flex; align-items: center; gap: 8px; }
.w569d-btn {
  border: 0; cursor: pointer; font-weight: 700; border-radius: 10px;
  padding: 8px 14px; font-size: 1.28rem; line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.w569d-btn:active { transform: scale(.95); }
.w569d-btn-primary { background: linear-gradient(180deg, var(--w569d-primary), var(--w569d-gold)); color: #1a1206; box-shadow: 0 6px 16px rgba(255,165,0,.35); }
.w569d-btn-ghost { background: rgba(255,255,255,.06); color: var(--w569d-text); border: 1px solid var(--w569d-line); }

.w569d-menu-btn {
  background: transparent; border: 1px solid var(--w569d-line); color: var(--w569d-text);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.w569d-menu-btn.w569d-active { background: rgba(255,165,0,.16); }

/* ---------- Mobile slide-in menu ---------- */
#w569dMobileMenu {
  position: fixed; top: 0; right: -86%; width: 80%; max-width: 320px;
  height: 100vh; z-index: 9999; padding: 70px 18px 30px;
  background: linear-gradient(180deg, #142233, #0d1722);
  border-left: 1px solid var(--w569d-line);
  transform: translateX(0); transition: right .28s ease; overflow-y: auto;
}
#w569dMobileMenu.w569d-menu-open { right: 0; }
#w569dMenuBackdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
#w569dMenuBackdrop.w569d-backdrop-show { opacity: 1; pointer-events: auto; }
.w569d-menu-close {
  position: absolute; top: 14px; right: 14px; background: transparent;
  border: 1px solid var(--w569d-line); color: var(--w569d-text); width: 34px; height: 34px;
  border-radius: 8px; cursor: pointer; font-size: 1.5rem;
}
.w569d-menu-section { margin-bottom: 18px; }
.w569d-menu-title { font-size: 1.15rem; color: var(--w569d-muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.w569d-menu-section a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--w569d-text);
  border: 1px solid transparent; margin-bottom: 4px; font-size: 1.32rem;
}
.w569d-menu-section a:hover { background: rgba(255,165,0,.08); border-color: var(--w569d-line); color: var(--w569d-primary); }

/* ---------- Hero / carousel ---------- */
.w569d-main { padding-top: 64px; }
.w569d-hero { position: relative; margin: 14px 0 6px; border-radius: var(--w569d-radius); overflow: hidden; box-shadow: var(--w569d-shadow); }
.w569d-slides { position: relative; }
.w569d-slide {
  position: relative; display: none; height: 200px;
}
.w569d-slide.w569d-active { display: block; animation: w569d-fade .6s ease; }
.w569d-slide img { width: 100%; height: 100%; object-fit: cover; }
.w569d-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; top: 0;
  background: linear-gradient(180deg, rgba(15,26,36,0) 35%, rgba(15,26,36,.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.w569d-slide-title { font-size: 1.7rem; font-weight: 800; color: #fff; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.w569d-slide-sub { font-size: 1.2rem; color: var(--w569d-text-soft); margin-bottom: 8px; }
@keyframes w569d-fade { from { opacity: 0; } to { opacity: 1; } }

.w569d-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0; }
.w569d-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: background .2s ease; }
.w569d-dot.w569d-active { background: var(--w569d-primary); width: 22px; border-radius: 6px; }

/* ---------- Section base ---------- */
.w569d-section { padding: 18px 0; }
.w569d-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.w569d-section-head h2 { margin: 0; }
.w569d-section-head .w569d-link-more { font-size: 1.2rem; color: var(--w569d-primary-soft); }

.w569d-intro p { color: var(--w569d-text-soft); font-size: 1.32rem; }
.w569d-text-link { color: var(--w569d-primary); font-weight: 600; border-bottom: 1px dashed rgba(255,165,0,.5); }
.w569d-text-link:hover { color: var(--w569d-primary-soft); }

/* ---------- Category nav chips ---------- */
.w569d-cats { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; scrollbar-width: none; }
.w569d-cats::-webkit-scrollbar { display: none; }
.w569d-cat-chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 1.2rem; font-weight: 600;
  background: rgba(255,255,255,.05); color: var(--w569d-text-soft); border: 1px solid var(--w569d-line);
  white-space: nowrap;
}

/* ---------- Game grid ---------- */
.w569d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w569d-grid.w569d-grid-4 { grid-template-columns: repeat(4, 1fr); }
.w569d-card {
  background: var(--w569d-card); border: 1px solid var(--w569d-line); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.w569d-card:hover { transform: translateY(-3px); box-shadow: var(--w569d-shadow); border-color: rgba(255,165,0,.4); }
.w569d-card-img { position: relative; aspect-ratio: 1/1; background: #0c1620; }
.w569d-card-img img { width: 100%; height: 100%; object-fit: cover; }
.w569d-card-badge {
  position: absolute; top: 6px; left: 6px; background: linear-gradient(180deg, var(--w569d-primary), var(--w569d-gold));
  color: #1a1206; font-size: 1rem; font-weight: 700; padding: 2px 7px; border-radius: 6px;
}
.w569d-card-body { padding: 6px 8px 9px; }
.w569d-card-title { font-size: 1.15rem; font-weight: 600; color: var(--w569d-text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 30px; }

/* ---------- Features / highlight blocks ---------- */
.w569d-feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w569d-feat {
  background: linear-gradient(160deg, var(--w569d-card), var(--w569d-bg-2));
  border: 1px solid var(--w569d-line); border-radius: 12px; padding: 14px;
}
.w569d-feat .w569d-feat-ico { font-size: 2.2rem; color: var(--w569d-primary); margin-bottom: 6px; }
.w569d-feat h3 { margin-bottom: 4px; font-size: 1.35rem; }
.w569d-feat p { font-size: 1.2rem; margin: 0; color: var(--w569d-text-soft); }

/* ---------- Promo / CTA blocks ---------- */
.w569d-cta {
  background: linear-gradient(120deg, rgba(255,165,0,.16), rgba(184,134,11,.08));
  border: 1px solid var(--w569d-line); border-radius: var(--w569d-radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.w569d-cta h3 { color: var(--w569d-primary); margin-bottom: 2px; }
.w569d-cta p { margin: 0; font-size: 1.25rem; }
.w569d-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- RTP / stats ---------- */
.w569d-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w569d-stat {
  background: var(--w569d-card); border: 1px solid var(--w569d-line); border-radius: 12px;
  padding: 12px; text-align: center;
}
.w569d-stat-num { font-size: 2rem; font-weight: 800; color: var(--w569d-primary); }
.w569d-stat-label { font-size: 1.15rem; color: var(--w569d-text-soft); }

/* ---------- Testimonials ---------- */
.w569d-reviews { display: grid; gap: 10px; }
.w569d-review {
  background: var(--w569d-card); border: 1px solid var(--w569d-line); border-radius: 12px; padding: 14px;
}
.w569d-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.w569d-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(180deg, var(--w569d-primary), var(--w569d-gold));
  color: #1a1206; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.w569d-review-name { font-weight: 700; font-size: 1.3rem; color: var(--w569d-text); }
.w569d-stars { color: var(--w569d-primary); font-size: 1.1rem; }
.w569d-review p { font-size: 1.22rem; margin: 0; }

/* ---------- Winners ticker ---------- */
.w569d-winners { background: var(--w569d-card); border: 1px solid var(--w569d-line); border-radius: 12px; overflow: hidden; }
.w569d-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-bottom: 1px dashed rgba(255,255,255,.06); font-size: 1.2rem;
}
.w569d-winner-row:last-child { border-bottom: 0; }
.w569d-winner-name { color: var(--w569d-text); font-weight: 600; }
.w569d-winner-game { color: var(--w569d-text-soft); }
.w569d-winner-amount { color: var(--w569d-primary); font-weight: 800; }

/* ---------- Payment methods ---------- */
.w569d-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.w569d-pay-item {
  flex: 1 1 28%; min-width: 90px; text-align: center; padding: 10px 6px;
  background: var(--w569d-card); border: 1px solid var(--w569d-line); border-radius: 10px;
  font-size: 1.15rem; color: var(--w569d-text-soft);
}
.w569d-pay-item .material-icons, .w569d-pay-item i { color: var(--w569d-primary-soft); font-size: 2rem; display: block; margin-bottom: 4px; }

/* ---------- App download ---------- */
.w569d-app {
  background: linear-gradient(140deg, #1c3047, #0f1a24);
  border: 1px solid var(--w569d-line); border-radius: var(--w569d-radius); padding: 16px;
}
.w569d-app-grid { display: flex; gap: 10px; align-items: center; }
.w569d-app-text { flex: 1; }
.w569d-app-text h3 { color: var(--w569d-primary); margin-bottom: 4px; }
.w569d-app-text p { font-size: 1.22rem; margin: 0 0 8px; }

/* ---------- FAQ ---------- */
.w569d-faq-item {
  background: var(--w569d-card); border: 1px solid var(--w569d-line); border-radius: 10px;
  margin-bottom: 8px; overflow: hidden;
}
.w569d-faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--w569d-text);
  font-weight: 600; font-size: 1.3rem; padding: 12px 14px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.w569d-faq-q .w569d-faq-icon { color: var(--w569d-primary); transition: transform .2s ease; }
.w569d-faq-item.w569d-faq-open .w569d-faq-icon { transform: rotate(45deg); }
.w569d-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 14px; }
.w569d-faq-item.w569d-faq-open .w569d-faq-a { max-height: 360px; padding: 0 14px 12px; }
.w569d-faq-a p { font-size: 1.2rem; margin: 0; }

/* ---------- Footer ---------- */
.w569d-footer {
  background: linear-gradient(180deg, #0d1722, #060d15);
  border-top: 1px solid var(--w569d-line); margin-top: 20px; padding: 20px 0 90px;
}
.w569d-footer h4 { color: var(--w569d-primary); font-size: 1.3rem; margin-bottom: 8px; }
.w569d-footer p { font-size: 1.18rem; color: var(--w569d-text-soft); margin-bottom: 12px; }
.w569d-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 14px; }
.w569d-footer-links a { font-size: 1.18rem; color: var(--w569d-text-soft); }
.w569d-footer-links a:hover { color: var(--w569d-primary); }
.w569d-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.w569d-footer-bottom { font-size: 1.1rem; color: var(--w569d-muted); text-align: center; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.05); }

/* ---------- Mobile bottom nav ---------- */
.w569d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(20,34,51,.98), rgba(10,18,28,.99));
  border-top: 1px solid var(--w569d-line);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; padding: 4px 0 6px;
}
.w569d-bottom-nav .w569d-nav-btn {
  flex: 1; min-width: 60px; min-height: 52px; background: transparent; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--w569d-text-soft); transition: color .18s ease, transform .18s ease;
}
.w569d-bottom-nav .w569d-nav-btn:active { transform: scale(.92); }
.w569d-bottom-nav .w569d-nav-btn .w569d-nav-ico { font-size: 22px; line-height: 1; color: var(--w569d-text-soft); }
.w569d-bottom-nav .w569d-nav-btn .w569d-nav-label { font-size: 11px; line-height: 1; }
.w569d-bottom-nav .w569d-nav-btn.w569d-active .w569d-nav-ico,
.w569d-bottom-nav .w569d-nav-btn.w569d-active .w569d-nav-label { color: var(--w569d-primary); }
.w569d-bottom-nav .w569d-nav-btn.w569d-promo .w569d-nav-ico { color: var(--w569d-primary); }
.w569d-bottom-nav .w569d-nav-btn.w569d-promo .w569d-nav-label { color: var(--w569d-primary-soft); }

/* ---------- Helpers ---------- */
.w569d-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.w569d-reveal.w569d-visible { opacity: 1; transform: none; }
.w569d-pb { padding-bottom: 80px; }
.w569d-mt { margin-top: 14px; }
.w569d-divider { height: 1px; background: var(--w569d-line); margin: 16px 0; border: 0; }

/* ---------- Responsive: desktop ---------- */
@media (min-width: 768px) {
  body { background: radial-gradient(1400px 700px at 50% -10%, #1f3a5c 0%, var(--w569d-bg) 60%); }
  .w569d-container { max-width: 960px; }
  .w569d-grid { grid-template-columns: repeat(6, 1fr); }
  .w569d-grid.w569d-grid-4 { grid-template-columns: repeat(8, 1fr); }
  .w569d-feat-grid { grid-template-columns: repeat(4, 1fr); }
  .w569d-stats { grid-template-columns: repeat(4, 1fr); }
  .w569d-bottom-nav { display: none; }
  .w569d-footer { padding-bottom: 30px; }
  .w569d-slide { height: 320px; }
  .w569d-desktop-hide { display: none !important; }
}
@media (max-width: 768px) {
  .w569d-main { padding-bottom: 80px; }
  .w569d-mobile-hide { display: none !important; }
}
