/* ============================================================
 * Super Ace - design-9851.css
 * All custom class names use the "w9851-" prefix.
 * Palette: #A0522D | #FF9500 | #212F3D | #D2691E
 * Mobile-first, max-width 430px, rem root 62.5%.
 * ============================================================ */

:root {
  --w9851-primary: #FF9500;
  --w9851-primary-2: #D2691E;
  --w9851-brown: #A0522D;
  --w9851-bg: #212F3D;
  --w9851-bg-2: #1a2530;
  --w9851-bg-3: #0f1822;
  --w9851-text: #f5f0e8;
  --w9851-text-soft: #d8cbb8;
  --w9851-muted: #9aa7b4;
  --w9851-card: #283747;
  --w9851-card-2: #2f4154;
  --w9851-gold: #FFD27A;
  --w9851-shadow: 0 6px 22px rgba(0,0,0,.35);
  --w9851-radius: 14px;
  --w9851-radius-sm: 10px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #2a3c4d 0%, var(--w9851-bg) 55%, var(--w9851-bg-3) 100%);
  color: var(--w9851-text);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--w9851-gold); text-decoration: none; }
a:hover { color: var(--w9851-primary); }

/* ---------- Layout ---------- */
.w9851-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.w9851-wrapper { width: 100%; }

main { display: block; padding-bottom: 92px; }

/* ---------- Header ---------- */
.w9851-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(33,47,61,.96), rgba(15,24,34,.96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,149,0,.25);
  box-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.w9851-header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; min-height: 52px; max-width: 430px; margin: 0 auto;
}
.w9851-logo { display: flex; align-items: center; gap: 8px; }
.w9851-logo img { width: 30px; height: 30px; border-radius: 8px; }
.w9851-logo-text { font-weight: 800; font-size: 1.7rem; color: var(--w9851-primary); letter-spacing: .3px; }
.w9851-logo-text span { color: var(--w9851-text); }
.w9851-header-actions { display: flex; align-items: center; gap: 8px; }

.w9851-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 1.35rem; border: none; cursor: pointer;
  border-radius: 999px; padding: 8px 16px; min-height: 38px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  color: #fff; text-decoration: none;
}
.w9851-btn:hover { transform: translateY(-1px); }
.w9851-btn-primary { background: linear-gradient(135deg, var(--w9851-primary), var(--w9851-primary-2)); box-shadow: 0 4px 14px rgba(255,149,0,.4); }
.w9851-btn-ghost { background: transparent; border: 1px solid rgba(255,210,122,.5); color: var(--w9851-gold); }
.w9851-btn-block { width: 100%; padding: 12px; font-size: 1.5rem; }
.w9851-btn-lg { padding: 12px 22px; font-size: 1.55rem; }

.w9851-menu-btn {
  background: transparent; border: none; color: var(--w9851-text); font-size: 2rem;
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
}
.w9851-menu-btn:hover, .w9851-menu-btn.w9851-active { background: rgba(255,149,0,.15); }

/* ---------- Mobile slide menu ---------- */
.w9851-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
  background: linear-gradient(180deg, var(--w9851-bg-2), var(--w9851-bg-3));
  z-index: 9999; padding: 70px 18px 30px; transition: right .28s ease;
  border-left: 1px solid rgba(255,149,0,.25); overflow-y: auto;
}
.w9851-mobile-menu.w9851-menu-open { right: 0; box-shadow: -8px 0 32px rgba(0,0,0,.5); }
.w9851-mobile-menu h4 { color: var(--w9851-primary); font-size: 1.4rem; margin: 16px 4px 8px; text-transform: uppercase; letter-spacing: 1px; }
.w9851-mobile-menu a {
  display: block; padding: 11px 12px; color: var(--w9851-text); font-size: 1.45rem;
  border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 8px;
}
.w9851-mobile-menu a:hover { background: rgba(255,149,0,.1); color: var(--w9851-primary); }
.w9851-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.w9851-overlay.w9851-menu-open { opacity: 1; pointer-events: auto; }
.w9851-menu-close {
  position: absolute; top: 14px; right: 14px; background: transparent; border: none;
  color: var(--w9851-text); font-size: 2.2rem; cursor: pointer;
}

/* ---------- Hero / Carousel ---------- */
.w9851-hero { padding: 14px 0 6px; }
.w9851-carousel { position: relative; border-radius: var(--w9851-radius); overflow: hidden; box-shadow: var(--w9851-shadow); }
.w9851-slides { position: relative; }
.w9851-slide {
  position: relative; display: none; aspect-ratio: 16/9; background: var(--w9851-card);
}
.w9851-slide img { width: 100%; height: 100%; object-fit: cover; }
.w9851-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(15,24,34,.92));
  color: #fff;
}
.w9851-slide-caption h2 { font-size: 1.8rem; color: var(--w9851-primary); margin-bottom: 4px; }
.w9851-slide-caption p { font-size: 1.3rem; color: var(--w9851-text-soft); }
.w9851-slide.w9851-slide-active { display: block; animation: w9851-fade .6s ease; }
@keyframes w9851-fade { from { opacity: .4; } to { opacity: 1; } }

.w9851-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(15,24,34,.6); color: #fff; border: none; width: 34px; height: 34px;
  border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.w9851-carousel-arrow:hover { background: var(--w9851-primary); }
.w9851-prev { left: 8px; } .w9851-next { right: 8px; }

.w9851-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
.w9851-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); border: none; cursor: pointer; }
.w9851-dot.w9851-dot-active { background: var(--w9851-primary); width: 22px; border-radius: 6px; }

/* ---------- Section / Title ---------- */
.w9851-section { padding: 18px 0; }
.w9851-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.w9851-section-title {
  font-size: 1.75rem; font-weight: 800; color: var(--w9851-text);
  border-left: 4px solid var(--w9851-primary); padding-left: 10px;
}
.w9851-section-title em { color: var(--w9851-primary); font-style: normal; }
.w9851-section-more { font-size: 1.3rem; color: var(--w9851-gold); }

.w9851-h1 { font-size: 2rem; font-weight: 800; margin: 6px 0 4px; line-height: 1.25; }
.w9851-h1 span { color: var(--w9851-primary); }
.w9851-sub { color: var(--w9851-text-soft); font-size: 1.4rem; margin-bottom: 8px; }

/* ---------- Chips / Filters ---------- */
.w9851-chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px; scrollbar-width: none; }
.w9851-chips::-webkit-scrollbar { display: none; }
.w9851-chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 1.3rem; font-weight: 600;
  background: var(--w9851-card); color: var(--w9851-text-soft); border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
}
.w9851-chip.w9851-chip-active { background: linear-gradient(135deg, var(--w9851-primary), var(--w9851-primary-2)); color: #fff; border-color: transparent; }

/* ---------- Game grid ---------- */
.w9851-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w9851-card {
  background: var(--w9851-card); border-radius: var(--w9851-radius-sm); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06); transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.w9851-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(255,149,0,.25); }
.w9851-card-img { position: relative; aspect-ratio: 1/1; background: var(--w9851-bg-2); }
.w9851-card-img img { width: 100%; height: 100%; object-fit: cover; }
.w9851-card-tag {
  position: absolute; top: 6px; left: 6px; background: rgba(255,149,0,.92); color: #fff;
  font-size: 1rem; padding: 2px 7px; border-radius: 6px; font-weight: 700; text-transform: uppercase;
}
.w9851-card-name { padding: 7px 8px; font-size: 1.25rem; font-weight: 600; text-align: center; color: var(--w9851-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Two-column compact grid (live/cards) ---------- */
.w9851-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* ---------- Feature blocks ---------- */
.w9851-feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.w9851-feature {
  background: var(--w9851-card); border-radius: var(--w9851-radius-sm); padding: 14px;
  border-top: 3px solid var(--w9851-primary);
}
.w9851-feature .w9851-icon { font-size: 2.2rem; color: var(--w9851-primary); margin-bottom: 6px; }
.w9851-feature h3 { font-size: 1.4rem; margin-bottom: 4px; color: var(--w9851-text); }
.w9851-feature p { font-size: 1.25rem; color: var(--w9851-muted); }

/* ---------- Stats ---------- */
.w9851-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; background: linear-gradient(135deg, var(--w9851-brown), var(--w9851-primary-2)); border-radius: var(--w9851-radius); padding: 16px 8px; }
.w9851-stat { text-align: center; color: #fff; }
.w9851-stat .num { font-size: 1.9rem; font-weight: 800; display: block; }
.w9851-stat .lbl { font-size: 1.15rem; opacity: .9; }

/* ---------- Testimonials ---------- */
.w9851-testi { background: var(--w9851-card); border-radius: var(--w9851-radius-sm); padding: 14px; margin-bottom: 10px; border-left: 3px solid var(--w9851-primary); }
.w9851-testi .stars { color: var(--w9851-gold); margin-bottom: 4px; font-size: 1.2rem; }
.w9851-testi p { font-size: 1.3rem; color: var(--w9851-text-soft); }
.w9851-testi .who { font-size: 1.2rem; color: var(--w9851-muted); margin-top: 6px; }

/* ---------- Winners ---------- */
.w9851-winner { display: flex; align-items: center; gap: 10px; background: var(--w9851-card); padding: 10px; border-radius: var(--w9851-radius-sm); margin-bottom: 8px; }
.w9851-winner .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--w9851-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; }
.w9851-winner .info { flex: 1; }
.w9851-winner .game { font-size: 1.3rem; font-weight: 600; }
.w9851-winner .amt { color: var(--w9851-primary); font-weight: 800; font-size: 1.4rem; }
.w9851-winner small { color: var(--w9851-muted); font-size: 1.1rem; }

/* ---------- Payments ---------- */
.w9851-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.w9851-pay span { background: var(--w9851-card); padding: 8px 12px; border-radius: 8px; font-size: 1.2rem; font-weight: 600; color: var(--w9851-text-soft); border: 1px solid rgba(255,255,255,.08); }

/* ---------- RTP table ---------- */
.w9851-rtp { width: 100%; border-collapse: collapse; background: var(--w9851-card); border-radius: var(--w9851-radius-sm); overflow: hidden; }
.w9851-rtp th, .w9851-rtp td { padding: 9px 10px; font-size: 1.25rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.w9851-rtp th { background: var(--w9851-bg-2); color: var(--w9851-primary); font-size: 1.2rem; text-transform: uppercase; }
.w9851-rtp td.rtp-val { color: var(--w9851-gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.w9851-faq-item { background: var(--w9851-card); border-radius: var(--w9851-radius-sm); margin-bottom: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.w9851-faq-q { padding: 12px 14px; font-weight: 700; font-size: 1.35rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.w9851-faq-q .ico { color: var(--w9851-primary); transition: transform .2s ease; }
.w9851-faq-item.w9851-faq-open .w9851-faq-q .ico { transform: rotate(45deg); }
.w9851-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 14px; color: var(--w9851-text-soft); font-size: 1.3rem; }
.w9851-faq-item.w9851-faq-open .w9851-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ---------- SEO long text ---------- */
.w9851-prose { color: var(--w9851-text-soft); font-size: 1.35rem; line-height: 1.7; }
.w9851-prose h2 { color: var(--w9851-text); font-size: 1.7rem; margin: 14px 0 6px; }
.w9851-prose h3 { color: var(--w9851-primary); font-size: 1.45rem; margin: 12px 0 4px; }
.w9851-prose p { margin-bottom: 8px; }
.w9851-prose strong { color: var(--w9851-gold); }
.w9851-prose a { color: var(--w9851-primary); text-decoration: underline; }

/* ---------- CTA banner ---------- */
.w9851-cta {
  background: linear-gradient(135deg, var(--w9851-brown), var(--w9851-primary-2));
  border-radius: var(--w9851-radius); padding: 18px 14px; text-align: center; color: #fff;
  box-shadow: var(--w9851-shadow); margin: 10px 0;
}
.w9851-cta h3 { font-size: 1.7rem; margin-bottom: 4px; }
.w9851-cta p { font-size: 1.3rem; opacity: .92; margin-bottom: 10px; }
.w9851-cta .w9851-btn { background: #fff; color: var(--w9851-primary-2); }

/* ---------- App download ---------- */
.w9851-app { display: flex; align-items: center; gap: 12px; background: var(--w9851-card); border-radius: var(--w9851-radius); padding: 14px; }
.w9851-app .ico { font-size: 3rem; color: var(--w9851-primary); }
.w9851-app .info h4 { font-size: 1.45rem; color: var(--w9851-text); }
.w9851-app .info p { font-size: 1.25rem; color: var(--w9851-muted); }
.w9851-app-btns { display: flex; flex-direction: column; gap: 6px; margin-left: auto; }

/* ---------- Footer ---------- */
.w9851-footer { background: var(--w9851-bg-3); border-top: 1px solid rgba(255,149,0,.2); padding: 22px 14px 18px; margin-top: 10px; }
.w9851-footer h4 { color: var(--w9851-primary); font-size: 1.35rem; margin: 12px 0 6px; }
.w9851-footer p { color: var(--w9851-text-soft); font-size: 1.3rem; margin-bottom: 8px; }
.w9851-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.w9851-footer-links a { color: var(--w9851-text-soft); font-size: 1.25rem; padding: 4px 0; }
.w9851-footer-links a:hover { color: var(--w9851-primary); }
.w9851-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.w9851-footer-promos .w9851-btn { font-size: 1.2rem; padding: 7px 12px; }
.w9851-footer-bottom { text-align: center; color: var(--w9851-muted); font-size: 1.15rem; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 12px; }

/* ---------- Reveal animation ---------- */
.w9851-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.w9851-revealed { opacity: 1; transform: none; }

/* ---------- Back to top ---------- */
.w9851-totop {
  position: fixed; right: 12px; bottom: 96px; z-index: 999;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--w9851-primary), var(--w9851-primary-2));
  color: #fff; font-size: 1.8rem; cursor: pointer; box-shadow: var(--w9851-shadow);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Mobile bottom nav ---------- */
.w9851-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(33,47,61,.98), rgba(15,24,34,.99));
  border-top: 1px solid rgba(255,149,0,.3);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; padding: 4px 0;
  box-shadow: 0 -3px 14px rgba(0,0,0,.45);
}
.w9851-bottomnav a, .w9851-bottomnav button {
  flex: 1; min-width: 60px; min-height: 54px;
  background: transparent; border: none; color: var(--w9851-text-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 1.05rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.w9851-bottomnav .material-icons,
.w9851-bottomnav .fas,
.w9851-bottomnav .far,
.w9851-bottomnav .ion { font-size: 22px; }
.w9851-bottomnav a:hover, .w9851-bottomnav button:hover { color: var(--w9851-primary); transform: translateY(-2px); }
.w9851-bottomnav .w9851-active { color: var(--w9851-primary); }
.w9851-bottomnav .w9851-bn-promo { color: var(--w9851-gold); }

/* ---------- Desktop: hide bottom nav, widen container ---------- */
@media (min-width: 769px) {
  .w9851-bottomnav { display: none; }
  main { padding-bottom: 30px; }
  .w9851-container { max-width: 960px; }
  .w9851-grid { grid-template-columns: repeat(5, 1fr); }
  .w9851-grid-2 { grid-template-columns: repeat(4, 1fr); }
  .w9851-feature-grid { grid-template-columns: repeat(4,1fr); }
  .w9851-footer-links { grid-template-columns: repeat(3,1fr); }
  .w9851-header-row { max-width: 960px; }
}

/* ---------- Small screens fine-tune ---------- */
@media (max-width: 360px) {
  .w9851-grid { grid-template-columns: repeat(2, 1fr); }
  .w9851-logo-text { font-size: 1.5rem; }
  .w9851-btn { padding: 7px 12px; font-size: 1.25rem; }
}
