/* 789b1 core stylesheet - prefix wd4f2- */
:root {
  --wd4f2-bg: #2C2C2C;
  --wd4f2-bg2: #1f1f1f;
  --wd4f2-primary: #FF8000;
  --wd4f2-accent: #FFB347;
  --wd4f2-warm: #FF9800;
  --wd4f2-text: #ffffff;
  --wd4f2-muted: #cfcfcf;
  --wd4f2-card: #3a3a3a;
  --wd4f2-border: rgba(255, 152, 0, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--wd4f2-bg);
  color: var(--wd4f2-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--wd4f2-accent); text-decoration: none; }
a:hover { color: var(--wd4f2-primary); }

.wd4f2-container { width: 100%; padding: 0 1.2rem; }
.wd4f2-wrapper { max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.wd4f2-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a, #2C2C2C);
  border-bottom: 2px solid var(--wd4f2-primary);
  max-width: 430px; margin: 0 auto;
}
.wd4f2-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 5.2rem; padding: 0 1.2rem;
}
.wd4f2-brand { display: flex; align-items: center; gap: 0.6rem; }
.wd4f2-brand img { width: 3rem; height: 3rem; border-radius: 0.5rem; }
.wd4f2-brand-name {
  font-size: 1.7rem; font-weight: 800; color: var(--wd4f2-primary);
  letter-spacing: 0.5px;
}
.wd4f2-brand-name span { color: var(--wd4f2-accent); }

.wd4f2-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.wd4f2-btn {
  border: none; border-radius: 2rem; padding: 0.7rem 1.4rem;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 3.6rem; display: inline-flex; align-items: center; gap: 0.4rem;
}
.wd4f2-btn:active { transform: scale(0.96); }
.wd4f2-btn-login {
  background: transparent; color: var(--wd4f2-text);
  border: 1.5px solid var(--wd4f2-warm);
}
.wd4f2-btn-register {
  background: linear-gradient(90deg, var(--wd4f2-primary), var(--wd4f2-warm));
  color: #1a1a1a; box-shadow: 0 4px 10px rgba(255, 128, 0, 0.35);
}
.wd4f2-menubtn {
  background: transparent; border: none; color: var(--wd4f2-text);
  font-size: 1.8rem; cursor: pointer; min-width: 3rem; min-height: 3rem;
}

/* ===== Nav menu ===== */
.wd4f2-navmenu {
  position: fixed; top: 5.2rem; left: 0; right: 0; z-index: 9999;
  background: #232323; border-bottom: 2px solid var(--wd4f2-primary);
  max-width: 430px; margin: 0 auto;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.wd4f2-navopen { max-height: 60rem; }
.wd4f2-navmenu ul { list-style: none; padding: 0.6rem 1.2rem 1.2rem; }
.wd4f2-navmenu li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.wd4f2-navmenu li:last-child { border-bottom: none; }
.wd4f2-navmenu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 0.4rem; color: var(--wd4f2-text); font-size: 1.35rem;
}
.wd4f2-navmenu a i { color: var(--wd4f2-warm); width: 2rem; text-align: center; }
.wd4f2-navmenu a:hover { color: var(--wd4f2-accent); }

/* ===== Main / hero ===== */
main { padding-top: 5.2rem; }

.wd4f2-hero {
  position: relative; overflow: hidden;
  margin: 1rem 0; border-radius: 1rem;
}
.wd4f2-carousel { position: relative; }
.wd4f2-slide {
  display: none; position: relative; cursor: pointer;
}
.wd4f2-slide.wd4f2-active { display: block; }
.wd4f2-slide img {
  width: 100%; height: 18rem; object-fit: cover; border-radius: 1rem;
}
.wd4f2-slide-cap {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: rgba(0,0,0,0.55); padding: 0.8rem 1rem; border-radius: 0.6rem;
}
.wd4f2-slide-cap h3 { font-size: 1.5rem; color: var(--wd4f2-accent); }
.wd4f2-slide-cap p { font-size: 1.15rem; color: var(--wd4f2-muted); }
.wd4f2-dots {
  position: absolute; bottom: 0.6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem;
}
.wd4f2-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.wd4f2-dot.wd4f2-active { background: var(--wd4f2-primary); }

/* ===== Sections ===== */
.wd4f2-section { padding: 1.6rem 1.2rem; }
.wd4f2-section-title {
  font-size: 1.7rem; font-weight: 800; margin-bottom: 0.4rem;
  color: var(--wd4f2-text);
}
.wd4f2-section-title em { color: var(--wd4f2-primary); font-style: normal; }
.wd4f2-section-sub { color: var(--wd4f2-muted); font-size: 1.2rem; margin-bottom: 1rem; }

.wd4f2-h1 {
  font-size: 1.9rem; line-height: 2.4rem; font-weight: 800;
  padding: 1rem 1.2rem 0.2rem; color: var(--wd4f2-text);
}
.wd4f2-h1 em { color: var(--wd4f2-primary); font-style: normal; }

/* ===== Filter tabs ===== */
.wd4f2-filter {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 1.2rem 1rem;
  scrollbar-width: none;
}
.wd4f2-filter::-webkit-scrollbar { display: none; }
.wd4f2-ftab {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 2rem;
  background: var(--wd4f2-card); color: var(--wd4f2-muted);
  font-size: 1.15rem; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.wd4f2-ftabon {
  background: linear-gradient(90deg, var(--wd4f2-primary), var(--wd4f2-warm));
  color: #1a1a1a; font-weight: 700;
}

/* ===== Game grid ===== */
.wd4f2-cat-head {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 1.2rem 1.2rem 0.6rem; font-size: 1.5rem; font-weight: 700;
  color: var(--wd4f2-accent);
}
.wd4f2-cat-head i { color: var(--wd4f2-primary); }
.wd4f2-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; padding: 0 1.2rem;
}
.wd4f2-gcard {
  background: var(--wd4f2-card); border-radius: 0.7rem;
  overflow: hidden; cursor: pointer; text-align: center;
  border: 1px solid transparent; transition: transform 0.12s ease, border-color 0.12s;
}
.wd4f2-gcard:active { transform: scale(0.95); border-color: var(--wd4f2-primary); }
.wd4f2-gcard img { width: 100%; height: 6.2rem; object-fit: cover; }
.wd4f2-gcard span {
  display: block; font-size: 1rem; color: var(--wd4f2-text);
  padding: 0.3rem 0.2rem 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Cards / features ===== */
.wd4f2-card {
  background: var(--wd4f2-card); border-radius: 0.8rem;
  padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--wd4f2-border);
}
.wd4f2-card h3 { font-size: 1.4rem; color: var(--wd4f2-accent); margin-bottom: 0.5rem; }
.wd4f2-card p { font-size: 1.2rem; color: var(--wd4f2-muted); }

.wd4f2-features { display: grid; gap: 0.8rem; }
.wd4f2-feature {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--wd4f2-card); padding: 1rem; border-radius: 0.7rem;
}
.wd4f2-feature .wd4f2-fi {
  flex: 0 0 3.2rem; height: 3.2rem; border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--wd4f2-primary), var(--wd4f2-warm));
  display: flex; align-items: center; justify-content: center; color: #1a1a1a;
  font-size: 1.6rem;
}
.wd4f2-feature h4 { font-size: 1.3rem; color: var(--wd4f2-text); margin-bottom: 0.2rem; }
.wd4f2-feature p { font-size: 1.15rem; color: var(--wd4f2-muted); }

/* ===== Promo CTA ===== */
.wd4f2-cta {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, #ff8000, #ff9800);
  color: #1a1a1a; padding: 1.4rem; border-radius: 1rem; margin: 1rem 1.2rem;
  text-align: center;
}
.wd4f2-cta h3 { font-size: 1.6rem; }
.wd4f2-cta p { font-size: 1.2rem; }
.wd4f2-cta-btn {
  background: #1a1a1a; color: var(--wd4f2-accent); border: none;
  padding: 0.9rem 2rem; border-radius: 2rem; font-size: 1.3rem; font-weight: 800;
  cursor: pointer;
}

.wd4f2-promolink {
  color: var(--wd4f2-primary); font-weight: 800; cursor: pointer;
  text-decoration: underline;
}
.wd4f2-promolink:hover { color: var(--wd4f2-accent); }

/* ===== RTP table ===== */
.wd4f2-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.wd4f2-table th, .wd4f2-table td {
  padding: 0.7rem 0.6rem; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wd4f2-table th { color: var(--wd4f2-accent); }
.wd4f2-table td .wd4f2-bar {
  height: 0.6rem; border-radius: 0.4rem; background: #555; overflow: hidden;
}
.wd4f2-table td .wd4f2-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--wd4f2-primary), var(--wd4f2-warm));
}

/* ===== Testimonials ===== */
.wd4f2-testi {
  background: var(--wd4f2-card); border-radius: 0.8rem; padding: 1rem;
  margin-bottom: 0.8rem; border-left: 3px solid var(--wd4f2-primary);
}
.wd4f2-testi .wd4f2-stars { color: var(--wd4f2-warm); font-size: 1.1rem; margin-bottom: 0.3rem; }
.wd4f2-testi p { font-size: 1.2rem; color: var(--wd4f2-muted); margin-bottom: 0.3rem; }
.wd4f2-testi .wd4f2-author { font-size: 1.05rem; color: var(--wd4f2-accent); font-weight: 700; }

/* ===== Payment / winners ===== */
.wd4f2-payrow, .wd4f2-winrow {
  display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.5rem 0; scrollbar-width: none;
}
.wd4f2-payrow::-webkit-scrollbar, .wd4f2-winrow::-webkit-scrollbar { display: none; }
.wd4f2-pay {
  flex: 0 0 auto; background: var(--wd4f2-card); border-radius: 0.6rem;
  padding: 0.6rem 1rem; font-size: 1.1rem; color: var(--wd4f2-text);
  border: 1px solid var(--wd4f2-border);
}
.wd4f2-win {
  flex: 0 0 auto; background: var(--wd4f2-card); border-radius: 0.6rem;
  padding: 0.7rem 1rem; min-width: 12rem;
}
.wd4f2-win .wd4f2-winname { font-size: 1.15rem; color: var(--wd4f2-text); font-weight: 700; }
.wd4f2-win .wd4f2-winamt { font-size: 1.3rem; color: var(--wd4f2-primary); font-weight: 800; }
.wd4f2-win .wd4f2-wingame { font-size: 1rem; color: var(--wd4f2-muted); }

/* ===== App download ===== */
.wd4f2-app {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, #232323, #3a3a3a);
  border-radius: 1rem; padding: 1.2rem; margin: 1rem 1.2rem;
  border: 1px solid var(--wd4f2-border);
}
.wd4f2-app .wd4f2-appicon {
  font-size: 3rem; color: var(--wd4f2-primary);
}
.wd4f2-app h3 { font-size: 1.4rem; color: var(--wd4f2-text); }
.wd4f2-app p { font-size: 1.15rem; color: var(--wd4f2-muted); }
.wd4f2-appbtns { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.wd4f2-appbtn {
  background: var(--wd4f2-primary); color: #1a1a1a; border: none;
  padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
}

/* ===== Footer ===== */
.wd4f2-footer {
  background: #1a1a1a; padding: 1.6rem 1.2rem 8rem;
  border-top: 2px solid var(--wd4f2-primary);
}
.wd4f2-footer-brand {
  font-size: 1.3rem; color: var(--wd4f2-muted); margin-bottom: 1rem; line-height: 1.7rem;
}
.wd4f2-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.wd4f2-footer-promo .wd4f2-btn { padding: 0.6rem 1rem; font-size: 1.1rem; }
.wd4f2-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 0.8rem;
  margin-bottom: 1rem;
}
.wd4f2-footer-links a { font-size: 1.1rem; color: var(--wd4f2-muted); }
.wd4f2-footer-copy {
  font-size: 1rem; color: #888; border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.8rem; text-align: center;
}

/* ===== Bottom nav ===== */
.wd4f2-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto; height: 6rem;
  background: linear-gradient(180deg, #2C2C2C, #161616);
  border-top: 2px solid var(--wd4f2-primary);
  display: flex; justify-content: space-around; align-items: stretch;
}
.wd4f2-bnav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; background: transparent; border: none; color: var(--wd4f2-muted);
  cursor: pointer; min-width: 60px; min-height: 60px; padding: 0.4rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.wd4f2-bnav-btn:active { transform: scale(0.92); }
.wd4f2-bnav-btn i, .wd4f2-bnav-btn .material-icons-outlined,
.wd4f2-bnav-btn .ion-icon { font-size: 2.2rem; }
.wd4f2-bnav-btn span { font-size: 1rem; }
.wd4f2-bnav-active { color: var(--wd4f2-primary); }
.wd4f2-bnav-btn.wd4f2-bnav-promo { color: var(--wd4f2-accent); }
.wd4f2-bnav-btn.wd4f2-bnav-promo span { font-weight: 700; }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .wd4f2-bnav { display: none; }
  .wd4f2-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  main { padding-bottom: 7rem; }
}
@media (max-width: 360px) {
  .wd4f2-grid { grid-template-columns: repeat(3, 1fr); }
  .wd4f2-gcard img { height: 5.4rem; }
}
