/*!
 * JL555 master layout (basefiles)
 * Brand palette: #FFD700 gold | #0D1117 charcoal | #FF7F50 coral | #FFB74D amber | #7FFF00 lime
 * Class prefix: sb3d-
 * Mobile-first, max-width 430px, root font 62.5%.
 */
:root {
  --sb3d-primary: #FFD700;
  --sb3d-bg: #0D1117;
  --sb3d-coral: #FF7F50;
  --sb3d-amber: #FFB74D;
  --sb3d-lime: #7FFF00;
  --sb3d-text: #f5f5f5;
  --sb3d-muted: #9aa3b2;
  --sb3d-card: #161c26;
  --sb3d-card-2: #1b2330;
  --sb3d-border: #2a3340;
  --sb3d-grad: linear-gradient(135deg, #FFD700 0%, #FF7F50 50%, #FFB74D 100%);
  --sb3d-grad-lime: linear-gradient(135deg, #7FFF00 0%, #FFD700 100%);
  --sb3d-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --sb3d-radius: 14px;
  --sb3d-header-h: 6rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--sb3d-bg);
  color: var(--sb3d-text);
  line-height: 1.5;
  font-size: 1.6rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sb3d-amber); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout helpers ---------- */
.sb3d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.4rem; position: relative; }
.sb3d-wrapper { max-width: 430px; margin: 0 auto; background: var(--sb3d-bg); min-height: 100vh; }
.sb3d-section { padding: 3.2rem 0 2.4rem; }
.sb3d-hidden { display: none !important; }
.sb3d-no-scroll { overflow: hidden; }

/* ---------- Header ---------- */
.sb3d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--sb3d-header-h);
  background: rgba(13, 17, 23, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sb3d-border);
  transition: box-shadow .25s ease;
}
.sb3d-header.sb3d-scrolled { box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.sb3d-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.sb3d-brand { display: flex; align-items: center; gap: .8rem; }
.sb3d-brand-logo {
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--sb3d-grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #0D1117; font-size: 1.5rem;
  box-shadow: 0 0 0 2px rgba(255,215,0,.35);
}
.sb3d-brand-name { font-size: 1.9rem; font-weight: 800; color: var(--sb3d-primary); letter-spacing: .5px; }
.sb3d-brand-name span { color: var(--sb3d-text); font-weight: 500; font-size: 1.2rem; display: block; line-height: 1.1; }
.sb3d-header-actions { display: flex; align-items: center; gap: .6rem; }
.sb3d-menu-btn {
  width: 3.8rem; height: 3.8rem; border-radius: 10px;
  background: var(--sb3d-card); color: var(--sb3d-primary);
  font-size: 2rem; display: flex; align-items: center; justify-content: center;
}

/* ---------- Auth buttons ---------- */
.sb3d-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; font-weight: 700; font-size: 1.3rem; padding: .8rem 1.4rem; transition: transform .15s ease, box-shadow .2s ease; min-height: 4rem; }
.sb3d-btn:active { transform: scale(.96); }
.sb3d-btn-login { background: var(--sb3d-card); color: var(--sb3d-primary); border: 1px solid var(--sb3d-primary); }
.sb3d-btn-register { background: var(--sb3d-grad); color: #0D1117; box-shadow: 0 4px 14px rgba(255,127,80,.35); }
.sb3d-btn-cta { background: var(--sb3d-grad-lime); color: #0D1117; padding: 1.2rem 2.4rem; font-size: 1.5rem; }
.sb3d-btn-ghost { background: transparent; color: var(--sb3d-primary); border: 1px solid var(--sb3d-primary); }
.sb3d-btn-block { display: flex; width: 100%; }

/* ---------- Mobile menu drawer ---------- */
.sb3d-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.sb3d-overlay.sb3d-show { opacity: 1; visibility: visible; }
.sb3d-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px;
  height: 100vh; background: var(--sb3d-card); z-index: 9999;
  padding: 2rem 1.6rem; transition: right .3s ease;
  overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,.5);
}
.sb3d-mobile-menu.sb3d-open { right: 0; }
.sb3d-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--sb3d-border); }
.sb3d-menu-head h3 { color: var(--sb3d-primary); font-size: 1.8rem; }
.sb3d-menu-close { width: 3.4rem; height: 3.4rem; border-radius: 8px; background: var(--sb3d-card-2); color: var(--sb3d-text); font-size: 1.8rem; }
.sb3d-menu-link { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border-radius: 10px; color: var(--sb3d-text); font-size: 1.4rem; font-weight: 600; transition: background .2s ease; }
.sb3d-menu-link:active { background: var(--sb3d-card-2); }
.sb3d-menu-link i { color: var(--sb3d-coral); font-size: 1.7rem; }
.sb3d-menu-cta { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }

/* ---------- Hero ---------- */
.sb3d-main { padding-top: var(--sb3d-header-h); padding-bottom: 9rem; }
.sb3d-hero { position: relative; overflow: hidden; }
.sb3d-carousel { position: relative; border-radius: 0 0 18px 18px; overflow: hidden; }
.sb3d-slide { position: relative; display: none; }
.sb3d-slide.sb3d-active { display: block; animation: sb3dfade .6s ease; }
@keyframes sb3dfade { from { opacity: 0; } to { opacity: 1; } }
.sb3d-slide img { width: 100%; height: 220px; object-fit: cover; }
.sb3d-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem; background: linear-gradient(transparent, rgba(13,17,23,.92));
}
.sb3d-slide-cap h2 { color: var(--sb3d-primary); font-size: 1.8rem; margin-bottom: .4rem; }
.sb3d-slide-cap p { color: var(--sb3d-text); font-size: 1.25rem; }
.sb3d-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; z-index: 5; }
.sb3d-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all .2s; }
.sb3d-dot.sb3d-active { background: var(--sb3d-primary); width: 22px; border-radius: 4px; }

/* ---------- Section headings ---------- */
.sb3d-sec-head { text-align: center; margin-bottom: 1.8rem; }
.sb3d-sec-head h2 { font-size: 2.2rem; color: var(--sb3d-primary); margin-bottom: .4rem; }
.sb3d-sec-head p { color: var(--sb3d-muted); font-size: 1.3rem; }
.sb3d-h1 { font-size: 2.4rem; line-height: 1.25; color: var(--sb3d-text); margin: 2rem 0 1rem; }
.sb3d-h1 b { color: var(--sb3d-primary); }

/* ---------- Filter chips ---------- */
.sb3d-filters { display: flex; gap: .6rem; overflow-x: auto; padding: .6rem 0 1.2rem; -webkit-overflow-scrolling: touch; }
.sb3d-filter-chip { flex: 0 0 auto; padding: .7rem 1.4rem; border-radius: 999px; background: var(--sb3d-card); color: var(--sb3d-text); font-size: 1.25rem; font-weight: 600; border: 1px solid var(--sb3d-border); }
.sb3d-filter-chip.sb3d-active { background: var(--sb3d-grad); color: #0D1117; border-color: transparent; }

/* ---------- Game grid ---------- */
.sb3d-cat-title { display: flex; align-items: center; gap: .8rem; margin: 2rem 0 1.2rem; }
.sb3d-cat-title .sb3d-cat-icon { width: 3.4rem; height: 3.4rem; border-radius: 8px; background: var(--sb3d-grad); color: #0D1117; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.sb3d-cat-title h3 { font-size: 1.7rem; color: var(--sb3d-text); }
.sb3d-cat-title h3 span { color: var(--sb3d-primary); }
.sb3d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.sb3d-card {
  background: var(--sb3d-card); border: 1px solid var(--sb3d-border);
  border-radius: var(--sb3d-radius); overflow: hidden; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sb3d-card:active { transform: scale(.97); box-shadow: var(--sb3d-shadow); }
.sb3d-card-img { position: relative; aspect-ratio: 1/1; background: var(--sb3d-card-2); }
.sb3d-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sb3d-card-name { padding: .7rem .6rem; font-size: 1.1rem; text-align: center; color: var(--sb3d-text); font-weight: 600; line-height: 1.25; min-height: 3.4rem; display: flex; align-items: center; justify-content: center; }
.sb3d-card-tag { position: absolute; top: 6px; left: 6px; background: var(--sb3d-coral); color: #fff; font-size: 1rem; padding: .15rem .5rem; border-radius: 5px; font-weight: 700; }

/* ---------- Info / SEO blocks ---------- */
.sb3d-prose { color: var(--sb3d-text); font-size: 1.4rem; line-height: 1.7; }
.sb3d-prose p { margin-bottom: 1rem; }
.sb3d-prose h2 { color: var(--sb3d-primary); font-size: 1.9rem; margin: 1.6rem 0 .8rem; }
.sb3d-prose h3 { color: var(--sb3d-amber); font-size: 1.6rem; margin: 1.4rem 0 .6rem; }
.sb3d-prose strong { color: var(--sb3d-lime); }
.sb3d-prose a { color: var(--sb3d-amber); text-decoration: underline; }

.sb3d-card-info { background: var(--sb3d-card); border: 1px solid var(--sb3d-border); border-radius: var(--sb3d-radius); padding: 1.6rem; margin-bottom: 1.2rem; }
.sb3d-card-info h3 { color: var(--sb3d-primary); font-size: 1.6rem; margin-bottom: .6rem; }

/* ---------- Feature grid ---------- */
.sb3d-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.sb3d-feature { background: var(--sb3d-card); border: 1px solid var(--sb3d-border); border-radius: var(--sb3d-radius); padding: 1.4rem; text-align: center; }
.sb3d-feature i { font-size: 2.6rem; color: var(--sb3d-primary); margin-bottom: .6rem; }
.sb3d-feature h4 { color: var(--sb3d-amber); font-size: 1.35rem; margin-bottom: .4rem; }
.sb3d-feature p { color: var(--sb3d-muted); font-size: 1.15rem; line-height: 1.4; }

/* ---------- Testimonials ---------- */
.sb3d-testimonials { display: flex; flex-direction: column; gap: 1rem; }
.sb3d-testimonial { background: var(--sb3d-card); border-left: 4px solid var(--sb3d-coral); border-radius: 10px; padding: 1.4rem; opacity: .55; transition: opacity .3s; }
.sb3d-testimonial.sb3d-active { opacity: 1; border-left-color: var(--sb3d-lime); }
.sb3d-testimonial p { color: var(--sb3d-text); font-size: 1.3rem; margin-bottom: .6rem; font-style: italic; }
.sb3d-testimonial .sb3d-stars { color: var(--sb3d-primary); font-size: 1.2rem; margin-bottom: .4rem; }
.sb3d-testimonial cite { color: var(--sb3d-amber); font-size: 1.2rem; font-weight: 700; font-style: normal; }

/* ---------- Winners ticker ---------- */
.sb3d-winners { background: var(--sb3d-card); border-radius: var(--sb3d-radius); padding: 1rem 1.2rem; border: 1px solid var(--sb3d-border); }
.sb3d-winner-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--sb3d-border); font-size: 1.25rem; }
.sb3d-winner-row:last-child { border-bottom: none; }
.sb3d-winner-row .sb3d-wname { color: var(--sb3d-amber); font-weight: 600; }
.sb3d-winner-row .sb3d-wgame { color: var(--sb3d-muted); }
.sb3d-winner-row .sb3d-wamt { color: var(--sb3d-lime); font-weight: 700; }

/* ---------- Payment chips ---------- */
.sb3d-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.sb3d-pay { background: var(--sb3d-card); border: 1px solid var(--sb3d-border); border-radius: 10px; padding: 1rem .5rem; text-align: center; font-size: 1.15rem; color: var(--sb3d-text); font-weight: 600; }
.sb3d-pay i { display: block; font-size: 2rem; color: var(--sb3d-primary); margin-bottom: .4rem; }

/* ---------- FAQ ---------- */
.sb3d-faq-item { background: var(--sb3d-card); border: 1px solid var(--sb3d-border); border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: .8rem; }
.sb3d-faq-item h4 { color: var(--sb3d-primary); font-size: 1.35rem; margin-bottom: .5rem; }
.sb3d-faq-item p { color: var(--sb3d-text); font-size: 1.25rem; line-height: 1.55; }

/* ---------- CTA banner ---------- */
.sb3d-cta-banner {
  background: var(--sb3d-grad);
  border-radius: var(--sb3d-radius);
  padding: 2rem 1.4rem; text-align: center; color: #0D1117; margin: 2rem 0;
}
.sb3d-cta-banner h3 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.sb3d-cta-banner p { font-size: 1.3rem; margin-bottom: 1rem; font-weight: 600; }

/* ---------- Footer ---------- */
.sb3d-footer { background: #080b10; padding: 2.4rem 1.4rem 9rem; border-top: 1px solid var(--sb3d-border); }
.sb3d-footer-brand { color: var(--sb3d-primary); font-size: 1.8rem; font-weight: 800; margin-bottom: .6rem; }
.sb3d-footer p { color: var(--sb3d-muted); font-size: 1.2rem; line-height: 1.5; margin-bottom: 1rem; }
.sb3d-footer-links { display: flex; flex-wrap: wrap; gap: .6rem .8rem; margin: 1.2rem 0; }
.sb3d-footer-links a { color: var(--sb3d-amber); font-size: 1.15rem; text-decoration: underline; }
.sb3d-footer-promo { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.sb3d-footer-copy { color: var(--sb3d-muted); font-size: 1.1rem; border-top: 1px solid var(--sb3d-border); padding-top: 1.2rem; margin-top: 1rem; }

/* ---------- Bottom nav ---------- */
.sb3d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 6.2rem; background: rgba(8, 11, 16, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--sb3d-border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 .4rem;
}
.sb3d-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5.6rem; gap: .25rem;
  color: var(--sb3d-muted); font-size: 1.05rem; font-weight: 600;
  transition: color .2s ease, transform .15s ease;
  flex: 1;
}
.sb3d-nav-btn i { font-size: 2.2rem; }
.sb3d-nav-btn:active { transform: scale(.9); }
.sb3d-nav-btn.sb3d-active { color: var(--sb3d-primary); }
.sb3d-nav-btn.sb3d-nav-promo { color: var(--sb3d-coral); }
.sb3d-nav-btn.sb3d-nav-promo i { background: var(--sb3d-grad); color: #0D1117; width: 3.6rem; height: 3.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; box-shadow: 0 4px 12px rgba(255,127,80,.4); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .sb3d-bottom-nav { display: none; }
  .sb3d-wrapper { max-width: 768px; }
  .sb3d-container { max-width: 768px; }
  .sb3d-header-inner { max-width: 768px; }
  .sb3d-main { padding-bottom: 3rem; }
  .sb3d-grid { grid-template-columns: repeat(5, 1fr); }
  .sb3d-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .sb3d-footer { padding-bottom: 2.4rem; }
  .sb3d-slide img { height: 320px; }
}
