/* ============================================================
   super ace app - style-4d37.css
   Prefix: s4d3-  (all classes and variables)
   Palette: #2D2D2D | #7FFF00 | #D2691E | #F5DEB3 | #FAF0E6
   Mobile-first, max-width 430px
   ============================================================ */

:root {
  --s4d3-dark: #2D2D2D;
  --s4d3-lime: #7FFF00;
  --s4d3-copper: #D2691E;
  --s4d3-wheat: #F5DEB3;
  --s4d3-cream: #FAF0E6;
  --s4d3-bg: #1c1c1c;
  --s4d3-surface: #262626;
  --s4d3-text: #F5DEB3;
  --s4d3-muted: #c9b89a;
  --s4d3-primary: #7FFF00;
  --s4d3-accent: #D2691E;
  --s4d3-radius: 14px;
  --s4d3-header-h: 56px;
  --s4d3-bottom-h: 62px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; font-size: 62.5%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--s4d3-bg);
  color: var(--s4d3-text);
  line-height: 1.5;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--s4d3-primary); text-decoration: none; }
a:focus, button:focus { outline: 2px solid var(--s4d3-lime); outline-offset: 2px; }

/* ---------- Layout ---------- */
.s4d3-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.s4d3-wrapper { padding: 14px 12px; }
.s4d3-section { padding: 22px 12px; }
.s4d3-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--s4d3-cream);
  margin-bottom: 12px; padding-left: 10px;
  border-left: 4px solid var(--s4d3-lime); line-height: 1.3;
}
.s4d3-section-title .s4d3-en {
  color: var(--s4d3-copper); font-size: 1.2rem; font-weight: 600; display: block;
}

/* ---------- Header ---------- */
.s4d3-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, #2D2D2D, #1f1f1f);
  border-bottom: 2px solid var(--s4d3-copper);
  height: var(--s4d3-header-h);
  display: flex; align-items: center;
  transition: box-shadow .25s ease;
}
.s4d3-header-scrolled { box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.s4d3-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto; padding: 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.s4d3-logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.s4d3-logo img { width: 30px; height: 30px; border-radius: 6px; }
.s4d3-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--s4d3-lime);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s4d3-logo-text small { display: block; font-size: 1rem; color: var(--s4d3-copper); font-weight: 600; }

.s4d3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer; font-weight: 700; border-radius: 999px;
  padding: 8px 14px; font-size: 1.3rem; min-height: 36px; transition: transform .15s ease, filter .15s ease; }
.s4d3-btn:active { transform: scale(.94); }
.s4d3-btn-register { background: var(--s4d3-lime); color: #1a1a1a; }
.s4d3-btn-register:hover { filter: brightness(1.05); }
.s4d3-btn-login { background: transparent; color: var(--s4d3-cream);
  border: 1.5px solid var(--s4d3-copper); }
.s4d3-btn-cta { background: linear-gradient(90deg, var(--s4d3-copper), #ff9a3d); color: #1a1a1a;
  padding: 12px 22px; font-size: 1.5rem; }

/* Hamburger */
.s4d3-menu-toggle {
  background: transparent; border: 0; color: var(--s4d3-cream);
  font-size: 1.8rem; cursor: pointer; padding: 6px 8px; min-width: 36px;
}

/* ---------- Mobile menu (drawer) ---------- */
.s4d3-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9990;
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.s4d3-backdrop-active { opacity: 1; visibility: visible; }
.s4d3-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 78%; max-width: 320px;
  height: 100%; background: var(--s4d3-surface);
  z-index: 9999; transition: right .28s ease; padding: 18px 16px; overflow-y: auto;
  border-left: 2px solid var(--s4d3-copper);
}
.s4d3-menu-active { right: 0; }
.s4d3-mobile-menu h3 { color: var(--s4d3-lime); font-size: 1.4rem; margin: 14px 0 8px;
  text-transform: uppercase; letter-spacing: .04em; }
.s4d3-mobile-menu a {
  display: block; padding: 11px 12px; border-radius: 10px; color: var(--s4d3-cream);
  font-size: 1.35rem; margin-bottom: 4px; background: rgba(255,255,255,.03);
}
.s4d3-mobile-menu a:active { background: rgba(127,255,0,.12); }
.s4d3-menu-close { position: absolute; top: 12px; right: 12px; background: transparent;
  border: 0; color: var(--s4d3-cream); font-size: 2rem; cursor: pointer; }

/* ---------- Carousel ---------- */
.s4d3-carousel { position: relative; overflow: hidden; border-radius: var(--s4d3-radius); margin: 12px 0; }
.s4d3-carousel-track { display: flex; transition: transform .5s ease; }
.s4d3-slide { min-width: 100%; position: relative; }
.s4d3-slide img { width: 100%; height: 180px; object-fit: cover; }
.s4d3-slide-cta {
  position: absolute; right: 12px; bottom: 12px;
  background: var(--s4d3-lime); color: #1a1a1a; font-weight: 800;
  padding: 8px 14px; border-radius: 999px; font-size: 1.25rem; cursor: pointer; border: 0;
}
.s4d3-dots { position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; }
.s4d3-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(245,222,179,.45);
  border: 0; cursor: pointer; padding: 0; }
.s4d3-dot-active { background: var(--s4d3-lime); width: 20px; border-radius: 4px; }

/* ---------- Hero ---------- */
.s4d3-hero { padding: 18px 12px; text-align: center; background:
  radial-gradient(circle at 50% 0%, rgba(127,255,0,.08), transparent 60%); }
.s4d3-hero h1 { font-size: 2.2rem; color: var(--s4d3-cream); line-height: 1.3;
  margin-bottom: 10px; font-weight: 800; }
.s4d3-hero p { color: var(--s4d3-muted); margin-bottom: 14px; font-size: 1.35rem; }
.s4d3-hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Game grid ---------- */
.s4d3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.s4d3-card {
  background: var(--s4d3-surface); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(210,105,30,.25); position: relative; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.s4d3-card:active { transform: scale(.96); border-color: var(--s4d3-lime); }
.s4d3-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #111; }
.s4d3-card-name { padding: 6px 8px; font-size: 1.15rem; color: var(--s4d3-cream);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s4d3-card-badge {
  position: absolute; top: 6px; left: 6px; background: var(--s4d3-copper);
  color: #fff; font-size: 1rem; padding: 2px 6px; border-radius: 6px; font-weight: 700;
}
.s4d3-game-block { margin-bottom: 24px; }
.s4d3-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.s4d3-block-head h2 { font-size: 1.7rem; color: var(--s4d3-lime); font-weight: 800; }
.s4d3-block-head a { font-size: 1.2rem; color: var(--s4d3-copper); }

/* ---------- Info / feature cards ---------- */
.s4d3-feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.s4d3-feature {
  background: var(--s4d3-surface); padding: 16px; border-radius: var(--s4d3-radius);
  border-left: 4px solid var(--s4d3-copper);
}
.s4d3-feature h3 { color: var(--s4d3-lime); font-size: 1.5rem; margin-bottom: 6px; }
.s4d3-feature p { color: var(--s4d3-muted); font-size: 1.25rem; line-height: 1.6; }

/* ---------- Testimonials ---------- */
.s4d3-testimonial { background: var(--s4d3-surface); border-radius: var(--s4d3-radius);
  padding: 14px; margin-bottom: 10px; border: 1px solid rgba(127,255,0,.18); }
.s4d3-stars { color: var(--s4d3-copper); font-size: 1.2rem; margin-bottom: 6px; }
.s4d3-testimonial p { color: var(--s4d3-cream); font-size: 1.25rem; line-height: 1.55; }
.s4d3-testimonial cite { display: block; margin-top: 8px; color: var(--s4d3-lime); font-style: normal; font-weight: 700; }

/* ---------- Winners ---------- */
.s4d3-winner-row { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--s4d3-surface); border-radius: 10px; margin-bottom: 8px;
  font-size: 1.25rem; }
.s4d3-winner-row strong { color: var(--s4d3-lime); }
.s4d3-winner-row .s4d3-amt { color: var(--s4d3-copper); font-weight: 800; }

/* ---------- Payment ---------- */
.s4d3-pay-row { display: flex; flex-wrap: wrap; gap: 10px; }
.s4d3-pay {
  flex: 1 1 30%; min-width: 90px; background: var(--s4d3-surface);
  border-radius: 10px; padding: 12px 6px; text-align: center; color: var(--s4d3-cream);
  border: 1px solid rgba(210,105,30,.3); font-size: 1.2rem; font-weight: 700;
}
.s4d3-pay i { display: block; color: var(--s4d3-lime); font-size: 2rem; margin-bottom: 4px; }

/* ---------- CTA block ---------- */
.s4d3-cta-block { background: linear-gradient(135deg, #2D2D2D, #3a2a1a);
  border: 1px solid var(--s4d3-copper); border-radius: var(--s4d3-radius);
  padding: 22px 16px; text-align: center; margin: 18px 0; }
.s4d3-cta-block h3 { color: var(--s4d3-lime); font-size: 1.7rem; margin-bottom: 8px; }
.s4d3-cta-block p { color: var(--s4d3-wheat); margin-bottom: 14px; font-size: 1.3rem; }

/* ---------- Footer ---------- */
.s4d3-footer { background: #1a1a1a; padding: 26px 14px 20px;
  border-top: 2px solid var(--s4d3-copper); margin-top: 18px; }
.s4d3-footer-brand { color: var(--s4d3-cream); font-size: 1.3rem; line-height: 1.7; margin-bottom: 14px; }
.s4d3-footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.s4d3-footer-links a { color: var(--s4d3-wheat); font-size: 1.2rem; text-decoration: underline; }
.s4d3-footer-promo { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.s4d3-footer-promo button { flex: 1 1 40%; }
.s4d3-footer-copy { color: var(--s4d3-muted); font-size: 1.1rem; border-top: 1px solid #333; padding-top: 12px; }

/* ---------- Bottom nav ---------- */
.s4d3-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--s4d3-bottom-h);
  background: linear-gradient(180deg, #2D2D2D, #161616);
  border-top: 2px solid var(--s4d3-copper);
  display: flex; justify-content: space-around; align-items: center; z-index: 1000;
  padding: 4px 0;
}
.s4d3-navbtn {
  flex: 1; background: transparent; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 60px; min-width: 60px; color: var(--s4d3-wheat);
  font-size: 1rem; transition: color .15s ease, transform .15s ease;
}
.s4d3-navbtn i, .s4d3-navbtn .material-icons-outlined, .s4d3-navbtn .material-icons,
.s4d3-navbtn ion-icon { font-size: 22px; }
.s4d3-navbtn .material-icons { font-size: 24px; }
.s4d3-navbtn ion-icon { font-size: 24px; }
.s4d3-navbtn:active { transform: scale(.92); }
.s4d3-navbtn-active { color: var(--s4d3-lime); }
.s4d3-navbtn-promo { color: var(--s4d3-lime); position: relative; }
.s4d3-navbtn-promo::after {
  content: ""; position: absolute; top: 2px; right: 18%;
  width: 7px; height: 7px; border-radius: 50%; background: var(--s4d3-copper);
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .s4d3-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  body { padding-bottom: calc(var(--s4d3-bottom-h) + 10px); }
}

/* ---------- Misc utility ---------- */
.s4d3-lead { color: var(--s4d3-muted); font-size: 1.3rem; line-height: 1.7; margin-bottom: 12px; }
.s4d3-seo-text { color: var(--s4d3-muted); font-size: 1.2rem; line-height: 1.8; padding: 6px 4px; }
.s4d3-seo-text a { color: var(--s4d3-copper); text-decoration: underline; }
.s4d3-anchor-row { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 8px 4px; }
.s4d3-anchor-row a { color: var(--s4d3-lime); font-size: 1.15rem; }
.s4d3-back-top {
  position: fixed; right: 14px; bottom: calc(var(--s4d3-bottom-h) + 12px); z-index: 995;
  background: var(--s4d3-copper); color: #fff; border: 0; border-radius: 50%;
  width: 42px; height: 42px; font-size: 1.8rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
