/* ============================================================
 * Super Ace Jili - design-3ccc.css
 * Mobile-first stylesheet (max-width: 430px baseline)
 * All custom classes use prefix: s3cc-
 * Palette: #1E90FF | #2D2D2D | #ADD8E6 | #4682B4
 * ============================================================ */

:root {
  --s3cc-primary: #1E90FF;
  --s3cc-bg: #2D2D2D;
  --s3cc-text: #ADD8E6;
  --s3cc-accent: #4682B4;
  --s3cc-dark: #1c1c1c;
  --s3cc-darker: #141414;
  --s3cc-light: #ffffff;
  --s3cc-muted: #b8c4d4;
  --s3cc-gold: #FFD36E;
  --s3cc-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --s3cc-radius: 14px;
  --s3cc-radius-lg: 20px;
  --s3cc-header-h: 56px;
  --s3cc-bottom-h: 62px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--s3cc-darker);
  color: var(--s3cc-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--s3cc-text);
  text-decoration: none;
}

.s3cc-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--s3cc-primary);
  color: #fff;
  padding: 10px 14px;
  z-index: 99999;
}
.s3cc-skip:focus { left: 8px; top: 8px; }

/* ---------- Layout primitives ---------- */
.s3cc-container {
  width: 100%;
  max-width: 430px;
  padding: 0 16px;
  margin: 0 auto;
}
.s3cc-wrapper { padding: 18px 0; }
.s3cc-section {
  padding: 22px 0;
  border-top: 1px solid rgba(173, 216, 230, 0.08);
}

/* ---------- Header / Top nav ---------- */
.s3cc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s3cc-header-h);
  background: linear-gradient(90deg, #1f2126, #2D2D2D 60%, #1f3a55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.s3cc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--s3cc-light);
  font-weight: 700;
  font-size: 1.4rem;
}
.s3cc-brand .s3cc-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--s3cc-primary), var(--s3cc-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}
.s3cc-brand .s3cc-brand-sub {
  display: block;
  font-size: 1.0rem;
  font-weight: 400;
  color: var(--s3cc-text);
}

.s3cc-actions { display: flex; align-items: center; gap: 6px; }

.s3cc-btn {
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.s3cc-btn:active { transform: scale(.96); }
.s3cc-btn-primary {
  background: linear-gradient(135deg, var(--s3cc-primary), var(--s3cc-accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 144, 255, 0.35);
}
.s3cc-btn-outline {
  background: transparent;
  color: var(--s3cc-text);
  border: 1.5px solid var(--s3cc-accent);
}
.s3cc-btn-gold {
  background: linear-gradient(135deg, #FFD36E, #ffb74d);
  color: #2D2D2D;
}
.s3cc-btn-block {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 1.4rem;
}

.s3cc-icon-btn {
  background: transparent;
  border: none;
  color: var(--s3cc-text);
  font-size: 1.8rem;
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Mobile slide-down menu ---------- */
.s3cc-mobile-menu {
  position: fixed;
  top: var(--s3cc-header-h);
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #20242b;
  border-bottom: 1px solid rgba(173, 216, 230, 0.12);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.s3cc-mobile-menu.s3cc-open { max-height: 480px; }
.s3cc-mobile-menu .s3cc-menu-col {
  padding: 12px 16px;
}
.s3cc-mobile-menu h4 {
  margin: 8px 0 4px;
  color: var(--s3cc-primary);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.s3cc-mobile-menu a {
  display: block;
  padding: 8px 4px;
  font-size: 1.25rem;
  color: var(--s3cc-text);
  border-bottom: 1px dashed rgba(173, 216, 230, 0.08);
}
.s3cc-mobile-menu a:active { color: var(--s3cc-light); }

/* ---------- Hero / Carousel ---------- */
main { padding-top: var(--s3cc-header-h); padding-bottom: 0; }

.s3cc-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--s3cc-radius);
  overflow: hidden;
  margin: 14px 0;
  background: #111;
}
.s3cc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.s3cc-slide.s3cc-active { opacity: 1; }
.s3cc-slide img { width: 100%; height: 100%; object-fit: cover; }
.s3cc-slide-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 10px;
  border-radius: 10px;
  color: #fff;
}
.s3cc-slide-overlay strong { font-size: 1.4rem; }
.s3cc-slide-overlay p { margin: 4px 0 0; font-size: 1.1rem; color: var(--s3cc-text); }
.s3cc-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.s3cc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
}
.s3cc-dot.s3cc-active { background: var(--s3cc-primary); width: 18px; border-radius: 4px; }

/* ---------- Headings ---------- */
.s3cc-page-title {
  font-size: 2.0rem;
  line-height: 2.6rem;
  margin: 18px 0 8px;
  color: var(--s3cc-light);
}
.s3cc-page-title span { color: var(--s3cc-primary); }

.s3cc-section-title {
  font-size: 1.6rem;
  margin: 14px 0 10px;
  color: var(--s3cc-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.s3cc-section-title i { color: var(--s3cc-primary); }
.s3cc-section-title .s3cc-more {
  margin-left: auto;
  font-size: 1.15rem;
  color: var(--s3cc-text);
  font-weight: 400;
}

.s3cc-lead {
  color: var(--s3cc-muted);
  font-size: 1.25rem;
  margin: 6px 0 14px;
}

/* ---------- Game grid ---------- */
.s3cc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s3cc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.s3cc-grid-2 { grid-template-columns: repeat(2, 1fr); }

.s3cc-game-card {
  background: #23262d;
  border-radius: var(--s3cc-radius);
  overflow: hidden;
  border: 1px solid rgba(173, 216, 230, 0.08);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  position: relative;
}
.s3cc-game-card:active {
  transform: scale(.97);
  border-color: var(--s3cc-primary);
}
.s3cc-game-card .s3cc-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #111;
}
.s3cc-game-card .s3cc-name {
  font-size: 1.05rem;
  padding: 6px 8px;
  text-align: center;
  color: var(--s3cc-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s3cc-game-card .s3cc-hot {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #ff5b5b, #ff2d55);
  color: #fff;
  font-size: .95rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}

/* ---------- Category badges ---------- */
.s3cc-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 10px;
}
.s3cc-cats a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: #23262d;
  color: var(--s3cc-text);
  font-size: 1.15rem;
  border: 1px solid rgba(173, 216, 230, 0.1);
  white-space: nowrap;
}
.s3cc-cats a.s3cc-cat-on {
  background: var(--s3cc-primary);
  color: #fff;
  border-color: var(--s3cc-primary);
}

/* ---------- Feature / Info blocks ---------- */
.s3cc-card {
  background: linear-gradient(160deg, #23262d, #1b1e24);
  border: 1px solid rgba(173, 216, 230, 0.08);
  border-radius: var(--s3cc-radius-lg);
  padding: 14px;
  margin: 10px 0;
}
.s3cc-card h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: var(--s3cc-light);
}
.s3cc-card p { color: var(--s3cc-muted); font-size: 1.2rem; margin: 4px 0; }

.s3cc-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.s3cc-feature {
  background: #23262d;
  border-radius: var(--s3cc-radius);
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(173, 216, 230, 0.08);
}
.s3cc-feature i {
  font-size: 2.4rem;
  color: var(--s3cc-primary);
  margin-bottom: 6px;
}
.s3cc-feature h4 {
  margin: 4px 0;
  font-size: 1.25rem;
  color: var(--s3cc-light);
}
.s3cc-feature p { font-size: 1.1rem; color: var(--s3cc-muted); margin: 0; }

/* ---------- Steps list ---------- */
.s3cc-steps { counter-reset: step; padding: 0; list-style: none; margin: 8px 0; }
.s3cc-steps li {
  position: relative;
  padding: 10px 10px 10px 44px;
  margin-bottom: 8px;
  background: #23262d;
  border-radius: var(--s3cc-radius);
  font-size: 1.2rem;
  color: var(--s3cc-muted);
}
.s3cc-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--s3cc-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s3cc-steps strong { color: var(--s3cc-light); }

/* ---------- RTP compact table ---------- */
.s3cc-rtp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #23262d;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 1.15rem;
}
.s3cc-rtp-row .s3cc-rtp-name { color: var(--s3cc-light); font-weight: 600; }
.s3cc-rtp-row .s3cc-rtp-bar {
  flex: 1;
  height: 6px;
  background: #14171c;
  border-radius: 6px;
  margin: 0 10px;
  overflow: hidden;
}
.s3cc-rtp-row .s3cc-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--s3cc-primary), var(--s3cc-gold));
}
.s3cc-rtp-row .s3cc-rtp-value { color: var(--s3cc-gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.s3cc-testi {
  background: #23262d;
  border-radius: var(--s3cc-radius);
  padding: 12px;
  margin-bottom: 10px;
}
.s3cc-testi .s3cc-stars { color: var(--s3cc-gold); font-size: 1.1rem; }
.s3cc-testi p { color: var(--s3cc-muted); font-size: 1.2rem; margin: 6px 0; }
.s3cc-testi .s3cc-author { font-size: 1.05rem; color: var(--s3cc-text); }

/* ---------- Winners ---------- */
.s3cc-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #23262d;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 1.15rem;
}
.s3cc-winner .s3cc-amount { color: var(--s3cc-gold); font-weight: 700; }

/* ---------- Payment ---------- */
.s3cc-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.s3cc-pay {
  flex: 1 1 30%;
  text-align: center;
  padding: 10px;
  background: #23262d;
  border-radius: 10px;
  border: 1px solid rgba(173, 216, 230, 0.08);
  font-size: 1.1rem;
  color: var(--s3cc-text);
}
.s3cc-pay i { font-size: 2rem; color: var(--s3cc-primary); display: block; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.s3cc-faq-item {
  background: #23262d;
  border-radius: var(--s3cc-radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.s3cc-faq-head {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px;
  color: var(--s3cc-light);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.s3cc-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 12px;
  color: var(--s3cc-muted);
  font-size: 1.15rem;
}
.s3cc-faq-item.s3cc-open .s3cc-faq-body { max-height: 260px; padding: 0 12px 12px; }

/* ---------- Promo CTA banner ---------- */
.s3cc-cta {
  background: linear-gradient(135deg, var(--s3cc-primary), var(--s3cc-accent));
  border-radius: var(--s3cc-radius-lg);
  padding: 16px;
  margin: 14px 0;
  color: #fff;
  text-align: center;
}
.s3cc-cta h3 { margin: 0 0 6px; font-size: 1.5rem; }
.s3cc-cta p { margin: 0 0 10px; font-size: 1.15rem; opacity: .92; }

/* ---------- Article / SEO body ---------- */
.s3cc-prose {
  color: var(--s3cc-muted);
  font-size: 1.2rem;
}
.s3cc-prose h2 { color: var(--s3cc-light); font-size: 1.5rem; margin: 16px 0 8px; }
.s3cc-prose h3 { color: var(--s3cc-text); font-size: 1.3rem; margin: 12px 0 6px; }
.s3cc-prose p { margin: 8px 0; }
.s3cc-prose a { color: var(--s3cc-primary); text-decoration: underline; }
.s3cc-prose ul { padding-left: 18px; }
.s3cc-prose li { margin: 4px 0; }

/* ---------- Footer ---------- */
.s3cc-footer {
  background: #1a1c20;
  padding: 24px 16px 14px;
  margin-top: 20px;
  border-top: 1px solid rgba(173, 216, 230, 0.08);
}
.s3cc-footer h4 {
  color: var(--s3cc-light);
  font-size: 1.3rem;
  margin: 12px 0 6px;
}
.s3cc-footer p { color: var(--s3cc-muted); font-size: 1.15rem; line-height: 1.7rem; }
.s3cc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.s3cc-footer-links a {
  flex: 1 1 45%;
  padding: 8px 10px;
  background: #23262d;
  border-radius: 8px;
  font-size: 1.1rem;
  text-align: center;
  border: 1px solid rgba(173, 216, 230, 0.08);
}
.s3cc-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.s3cc-footer-promos .s3cc-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 8px;
  font-size: 1.15rem;
}
.s3cc-footer-bottom {
  text-align: center;
  font-size: 1.05rem;
  color: var(--s3cc-muted);
  padding-top: 12px;
  border-top: 1px solid rgba(173, 216, 230, 0.06);
}

/* ---------- Mobile bottom navigation ---------- */
.s3cc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s3cc-bottom-h);
  background: #1a1c20;
  border-top: 1px solid rgba(173, 216, 230, 0.12);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
}
.s3cc-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--s3cc-muted);
  font-size: 1.0rem;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  position: relative;
  transition: color .15s ease;
}
.s3cc-bottom-nav a i,
.s3cc-bottom-nav a .material-icons,
.s3cc-bottom-nav a ion-icon {
  font-size: 22px;
}
.s3cc-bottom-nav a:active { color: var(--s3cc-primary); transform: scale(.95); }
.s3cc-bottom-nav a.s3cc-current { color: var(--s3cc-primary); }
.s3cc-bottom-nav a.s3cc-current::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--s3cc-primary);
}
.s3cc-bottom-nav a.s3cc-promo {
  color: var(--s3cc-gold);
}

/* Mobile bottom padding to clear bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--s3cc-bottom-h) + 16px); }
  .s3cc-footer { padding-bottom: calc(var(--s3cc-bottom-h) + 16px); }
}

/* ---------- Desktop: hide bottom nav, allow wider canvas ---------- */
@media (min-width: 769px) {
  .s3cc-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* ---------- Utility ---------- */
.s3cc-text-center { text-align: center; }
.s3cc-mt-8 { margin-top: 8px; }
.s3cc-mt-16 { margin-top: 16px; }
.s3cc-hidden { display: none !important; }
.s3cc-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(30, 144, 255, .15);
  color: var(--s3cc-primary);
  border-radius: 999px;
  font-size: 1.0rem;
  margin-right: 4px;
}
