/* pp881 layout stylesheet - all classes use w84f6- prefix */
/* English comments per project standard */

:root {
  --w84f6-primary: #DEB887;      /* burlywood - accent */
  --w84f6-secondary: #8B4513;    /* saddle brown - deep */
  --w84f6-tertiary: #F4A460;     /* sandy brown - highlight */
  --w84f6-dark: #34495E;         /* dark slate - background */
  --w84f6-bg: #1d2b3a;           /* deeper background */
  --w84f6-bg2: #243647;          /* card background */
  --w84f6-text: #f5efe3;         /* light text */
  --w84f6-muted: #c9bca5;        /* muted text */
  --w84f6-gold: #DEB887;
  --w84f6-danger: #c0392b;
  --w84f6-success: #27ae60;
  --w84f6-radius: 12px;
  --w84f6-shadow: 0 4px 14px rgba(0,0,0,0.35);
  --w84f6-header-h: 56px;
  --w84f6-bottomnav-h: 60px;
}

/* base */
html { font-size: 62.5%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--w84f6-bg);
  color: var(--w84f6-text);
  line-height: 1.5;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--w84f6-primary); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.3; color: var(--w84f6-text); }

.w84f6-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background: var(--w84f6-bg);
}

/* ===== Header ===== */
.w84f6-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w84f6-header-h);
  background: linear-gradient(90deg, var(--w84f6-secondary), var(--w84f6-dark));
  border-bottom: 2px solid var(--w84f6-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  transition: box-shadow .2s ease;
}
.w84f6-header.w84f6-scrolled { box-shadow: var(--w84f6-shadow); }
.w84f6-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--w84f6-primary); font-weight: 700; font-size: 1.8rem;
}
.w84f6-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w84f6-brand span { letter-spacing: .5px; }
.w84f6-headbtns { display: flex; gap: 8px; align-items: center; }
.w84f6-menubtn {
  background: transparent; border: 0; color: var(--w84f6-primary);
  font-size: 2.2rem; width: 40px; height: 40px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.w84f6-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px; font-size: 1.3rem; font-weight: 600;
  cursor: pointer; border: 0; min-height: 36px; transition: transform .15s, filter .15s;
}
.w84f6-btn:active { transform: scale(.96); }
.w84f6-btn-primary { background: linear-gradient(90deg, var(--w84f6-tertiary), var(--w84f6-primary)); color: #2a1a08; }
.w84f6-btn-secondary { background: transparent; color: var(--w84f6-primary); border: 1px solid var(--w84f6-primary); }
.w84f6-btn-gold { background: var(--w84f6-gold); color: #2a1a08; }

/* ===== Mobile menu ===== */
.w84f6-mobilemenu {
  position: fixed; top: var(--w84f6-header-h); left: 0; right: 0;
  background: var(--w84f6-bg2); border-bottom: 1px solid var(--w84f6-primary);
  z-index: 9999; max-height: 0; overflow: hidden;
  transition: max-height .28s ease; box-shadow: var(--w84f6-shadow);
}
.w84f6-mobilemenu.w84f6-active { max-height: 80vh; overflow-y: auto; }
.w84f6-mobilemenu-inner { display: flex; flex-direction: column; padding: 6px 14px 14px; }
.w84f6-mobilemenu a {
  padding: 12px 6px; border-bottom: 1px solid rgba(222,184,135,.18);
  color: var(--w84f6-text); font-size: 1.5rem;
}
.w84f6-mobilemenu a:active { color: var(--w84f6-primary); }

/* ===== Main ===== */
.w84f6-main { padding-top: var(--w84f6-header-h); }

/* ===== Carousel ===== */
.w84f6-carousel {
  position: relative; width: 100%; overflow: hidden; border-radius: 0 0 14px 14px;
  margin-bottom: 14px;
}
.w84f6-slides { position: relative; width: 100%; aspect-ratio: 16/8; }
.w84f6-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  cursor: pointer;
}
.w84f6-slide.w84f6-active { opacity: 1; }
.w84f6-slide img { width: 100%; height: 100%; object-fit: cover; }
.w84f6-slide-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: rgba(52,73,94,.78); padding: 8px 12px; border-radius: 8px;
  font-size: 1.3rem; color: var(--w84f6-primary); font-weight: 600;
}
.w84f6-dots {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.w84f6-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245,239,227,.45); border: 0; cursor: pointer;
}
.w84f6-dot.w84f6-active { background: var(--w84f6-primary); }

/* ===== Sections ===== */
.w84f6-section { padding: 16px 14px; }
.w84f6-section-title {
  font-size: 1.8rem; color: var(--w84f6-primary); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
  border-left: 4px solid var(--w84f6-tertiary); padding-left: 8px;
}
.w84f6-section-title i, .w84f6-section-title .material-icons,
.w84f6-section-title .ion { font-size: 2rem; }

/* ===== Hero ===== */
.w84f6-hero { padding: 14px; text-align: center; background: linear-gradient(180deg, var(--w84f6-dark), var(--w84f6-bg)); }
.w84f6-hero h1 { font-size: 2.4rem; color: var(--w84f6-primary); margin-bottom: 8px; }
.w84f6-hero p { color: var(--w84f6-muted); font-size: 1.4rem; margin: 0 0 12px; }
.w84f6-hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== Game grid ===== */
.w84f6-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w84f6-gamecard {
  background: var(--w84f6-bg2); border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(222,184,135,.15); cursor: pointer;
  transition: transform .15s, border-color .15s; text-align: center;
}
.w84f6-gamecard:active { transform: scale(.95); border-color: var(--w84f6-primary); }
.w84f6-gamecard-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.w84f6-gamecard-name {
  font-size: 1.15rem; color: var(--w84f6-text); padding: 6px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w84f6-catlabel {
  font-size: 1.3rem; color: var(--w84f6-tertiary); margin: 14px 0 8px;
  text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
}

/* ===== Cards / content ===== */
.w84f6-card {
  background: var(--w84f6-bg2); border-radius: var(--w84f6-radius);
  padding: 14px; box-shadow: var(--w84f6-shadow); margin-bottom: 12px;
  border: 1px solid rgba(222,184,135,.12);
}
.w84f6-card h2 { font-size: 1.8rem; color: var(--w84f6-primary); }
.w84f6-card h3 { font-size: 1.5rem; color: var(--w84f6-tertiary); }
.w84f6-card p { color: var(--w84f6-muted); font-size: 1.4rem; margin: 0 0 8px; }
.w84f6-card ul { padding-left: 18px; margin: 6px 0; color: var(--w84f6-muted); }
.w84f6-card li { margin-bottom: 5px; font-size: 1.4rem; }

/* feature list */
.w84f6-features { display: grid; grid-template-columns: 1fr; gap: 10px; }
.w84f6-feature {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--w84f6-bg2); padding: 12px; border-radius: 10px;
  border: 1px solid rgba(222,184,135,.12);
}
.w84f6-feature .w84f6-ico {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--w84f6-secondary), var(--w84f6-tertiary));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.w84f6-feature h3 { margin: 0 0 4px; font-size: 1.5rem; color: var(--w84f6-primary); }
.w84f6-feature p { margin: 0; font-size: 1.3rem; color: var(--w84f6-muted); }

/* steps */
.w84f6-steps { counter-reset: step; padding: 0; list-style: none; }
.w84f6-step {
  position: relative; padding: 10px 12px 10px 44px; margin-bottom: 8px;
  background: var(--w84f6-bg2); border-radius: 10px; counter-increment: step;
  border-left: 3px solid var(--w84f6-tertiary);
}
.w84f6-step::before {
  content: counter(step); position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%;
  background: var(--w84f6-primary); color: #2a1a08; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.w84f6-step h3 { margin: 0 0 3px; font-size: 1.45rem; color: var(--w84f6-primary); }
.w84f6-step p { margin: 0; font-size: 1.3rem; color: var(--w84f6-muted); }

/* RTP table compact */
.w84f6-rtp { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.w84f6-rtp th, .w84f6-rtp td { padding: 7px 8px; border-bottom: 1px solid rgba(222,184,135,.15); text-align: left; }
.w84f6-rtp th { color: var(--w84f6-tertiary); }
.w84f6-rtp td { color: var(--w84f6-muted); }
.w84f6-rtp tr:last-child td { border-bottom: 0; }

/* testimonials */
.w84f6-testi { background: var(--w84f6-bg2); border-radius: 10px; padding: 12px; margin-bottom: 10px; border: 1px solid rgba(222,184,135,.12); }
.w84f6-testi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.w84f6-testi-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--w84f6-tertiary); display: flex; align-items: center; justify-content: center; color: #2a1a08; font-weight: 700; }
.w84f6-testi-name { font-size: 1.4rem; color: var(--w84f6-primary); font-weight: 600; }
.w84f6-testi-stars { color: var(--w84f6-gold); font-size: 1.3rem; }
.w84f6-testi p { margin: 0; font-size: 1.3rem; color: var(--w84f6-muted); }

/* winners */
.w84f6-winners { display: flex; flex-direction: column; gap: 8px; }
.w84f6-winner { display: flex; justify-content: space-between; align-items: center; background: var(--w84f6-bg2); padding: 8px 12px; border-radius: 8px; font-size: 1.3rem; border-left: 3px solid var(--w84f6-success); }
.w84f6-winner span:first-child { color: var(--w84f6-primary); }
.w84f6-winner span:last-child { color: var(--w84f6-success); font-weight: 700; }

/* payments */
.w84f6-payments { display: flex; flex-wrap: wrap; gap: 10px; }
.w84f6-pay {
  flex: 1 1 80px; background: var(--w84f6-bg2); border-radius: 10px; padding: 10px;
  text-align: center; border: 1px solid rgba(222,184,135,.12);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.w84f6-pay i, .w84f6-pay .material-icons { font-size: 2.2rem; color: var(--w84f6-primary); }
.w84f6-pay span { font-size: 1.2rem; color: var(--w84f6-muted); }

/* promo cta banner */
.w84f6-ctabanner {
  background: linear-gradient(135deg, var(--w84f6-secondary), var(--w84f6-tertiary));
  border-radius: var(--w84f6-radius); padding: 16px; text-align: center; margin: 12px 0;
}
.w84f6-ctabanner h2 { color: #fff; margin-bottom: 6px; }
.w84f6-ctabanner p { color: rgba(255,255,255,.9); margin: 0 0 12px; font-size: 1.4rem; }

/* inline promo link */
.w84f6-promolink { color: var(--w84f6-primary); font-weight: 700; cursor: pointer; border-bottom: 1px dashed var(--w84f6-primary); }
.w84f6-promolink:hover { color: var(--w84f6-tertiary); border-color: var(--w84f6-tertiary); }

/* app download */
.w84f6-appdl { display: flex; flex-direction: column; gap: 10px; }
.w84f6-appdl-img { width: 100%; border-radius: 10px; margin-bottom: 6px; }
.w84f6-appdl-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* FAQ */
.w84f6-faq-item { border-bottom: 1px solid rgba(222,184,135,.15); padding: 10px 0; }
.w84f6-faq-item h3 { font-size: 1.4rem; color: var(--w84f6-tertiary); margin-bottom: 4px; }
.w84f6-faq-item p { margin: 0; font-size: 1.3rem; color: var(--w84f6-muted); }

/* ===== Footer ===== */
.w84f6-footer { background: var(--w84f6-bg2); padding: 16px 14px 18px; border-top: 2px solid var(--w84f6-primary); }
.w84f6-footer p { font-size: 1.3rem; color: var(--w84f6-muted); margin: 0 0 10px; }
.w84f6-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.w84f6-footer-links a {
  font-size: 1.25rem; padding: 6px 10px; border-radius: 14px;
  background: var(--w84f6-dark); color: var(--w84f6-primary);
  border: 1px solid rgba(222,184,135,.2);
}
.w84f6-footer-copy { font-size: 1.2rem; color: var(--w84f6-muted); text-align: center; padding-top: 8px; border-top: 1px solid rgba(222,184,135,.1); }

/* ===== Bottom nav ===== */
.w84f6-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--w84f6-bottomnav-h);
  background: linear-gradient(90deg, var(--w84f6-secondary), var(--w84f6-dark));
  border-top: 2px solid var(--w84f6-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 12px rgba(0,0,0,.35);
}
.w84f6-bottomnav-btn {
  flex: 1; background: transparent; border: 0; color: var(--w84f6-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 60px; min-height: 60px; cursor: pointer;
  font-size: 1.1rem; padding: 4px 0; transition: transform .15s, color .15s; position: relative;
}
.w84f6-bottomnav-btn i, .w84f6-bottomnav-btn .material-icons,
.w84f6-bottomnav-btn .ion { font-size: 22px; }
.w84f6-bottomnav-btn:active { transform: scale(.9); }
.w84f6-bottomnav-btn.w84f6-current { color: var(--w84f6-primary); }
.w84f6-bottomnav-btn.w84f6-current::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--w84f6-primary); border-radius: 0 0 3px 3px;
}
.w84f6-bottomnav-btn.w84f6-promo { color: var(--w84f6-tertiary); }
.w84f6-badge {
  position: absolute; top: 4px; right: 18px; min-width: 16px; height: 16px;
  background: var(--w84f6-danger); color: #fff; font-size: 1rem; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .w84f6-main { padding-bottom: calc(var(--w84f6-bottomnav-h) + 16px); }
}
@media (min-width: 769px) {
  .w84f6-bottomnav { display: none; }
  .w84f6-wrapper { max-width: 430px; box-shadow: 0 0 30px rgba(0,0,0,.4); }
}
