/*!
 * fb001.cyou - Core Stylesheet
 * Mobile-first gaming platform design (max-width: 430px viewport)
 * All classes use s010- prefix for namespace isolation
 * Palette: #8B008B | #4B0082 | #00B8D4 | #ADB5BD | #B2DFDB | #1B263B
 */

/* CSS variables - palette tokens */
:root {
  --s010-primary: #8B008B;
  --s010-secondary: #4B0082;
  --s010-accent: #00B8D4;
  --s010-bg: #1B263B;
  --s010-bg-alt: #0f1623;
  --s010-text: #B2DFDB;
  --s010-text-muted: #ADB5BD;
  --s010-card-bg: #243049;
  --s010-card-border: #324057;
  --s010-gold: #FFD700;
  --s010-radius: 12px;
  --s010-header-h: 56px;
  --s010-bottomnav-h: 60px;
}

/* Base reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--s010-bg-alt) 0%, var(--s010-bg) 100%);
  color: var(--s010-text); line-height: 1.5rem; font-size: 1.5rem;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--s010-accent); text-decoration: none; }

/* Container / wrapper */
.s010-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.s010-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.s010-header {
  position: fixed; top: 0; left: 0; right: 0; max-width: 430px; margin: 0 auto;
  height: var(--s010-header-h);
  background: linear-gradient(90deg, var(--s010-primary) 0%, var(--s010-secondary) 100%);
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.2rem;
  z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.4); transition: box-shadow .3s ease;
}
.s010-header-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.6); }
.s010-logo { display: flex; align-items: center; gap: 0.6rem; }
.s010-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s010-logo-text { font-size: 1.8rem; font-weight: 800; color: #fff; letter-spacing: .5px; }
.s010-header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Buttons */
.s010-btn {
  border: none; cursor: pointer; font-weight: 700; border-radius: 8px;
  transition: all .25s ease; font-size: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.s010-btn-register {
  background: var(--s010-gold); color: var(--s010-secondary);
  padding: 0.7rem 1.4rem; box-shadow: 0 2px 8px rgba(255,215,0,.4);
}
.s010-btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,215,0,.6); }
.s010-btn-login {
  background: transparent; color: #fff; padding: 0.7rem 1.4rem;
  border: 2px solid var(--s010-accent);
}
.s010-btn-login:hover { background: var(--s010-accent); color: var(--s010-bg); }
.s010-menu-toggle {
  background: transparent; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; padding: 0.4rem 0.8rem; display: flex; align-items: center;
}

/* Mobile menu */
.s010-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--s010-bg-alt); z-index: 9999; transition: right .3s ease;
  padding: 2rem 1.5rem; overflow-y: auto; border-left: 1px solid var(--s010-card-border);
}
.s010-menu-active { right: 0; }
.s010-menu-close {
  position: absolute; top: 1rem; right: 1.5rem; background: transparent;
  border: none; color: #fff; font-size: 2.4rem; cursor: pointer;
}
.s010-mobile-menu h3 {
  color: var(--s010-accent); font-size: 1.6rem; margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--s010-card-border);
}
.s010-mobile-menu a {
  display: block; color: var(--s010-text); padding: 0.9rem 0.5rem;
  font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.05); transition: color .2s;
}
.s010-mobile-menu a:hover { color: var(--s010-accent); padding-left: 1rem; }
.s010-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6); z-index: 9998; opacity: 0;
  pointer-events: none; transition: opacity .3s;
}
.s010-overlay-active { opacity: 1; pointer-events: auto; }

/* Main content */
.s010-main { flex: 1; padding-top: var(--s010-header-h); }

/* Carousel */
.s010-carousel { position: relative; overflow: hidden; border-radius: var(--s010-radius); margin: 1rem 0; }
.s010-carousel-track { position: relative; width: 100%; height: 180px; }
.s010-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .6s ease; cursor: pointer;
}
.s010-slide-active { opacity: 1; }
.s010-carousel-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--s010-radius); }
.s010-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 2;
}
.s010-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; }
.s010-dot-active { background: var(--s010-accent); width: 20px; border-radius: 4px; }

/* Section + titles */
.s010-section { margin: 2rem 0; }
.s010-section-title {
  font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem; padding-left: 0.8rem;
  border-left: 4px solid var(--s010-accent);
}
.s010-section-title i, .s010-section-title .material-icons { color: var(--s010-gold); }
.s010-h1 { font-size: 2.4rem; font-weight: 800; color: #fff; text-align: center; margin: 1.5rem 0; line-height: 1.3; }
.s010-h1 span { color: var(--s010-gold); }

/* Promo CTA */
.s010-promo-cta {
  background: linear-gradient(90deg, var(--s010-primary), var(--s010-secondary));
  border-radius: var(--s010-radius); padding: 1.5rem; text-align: center;
  margin: 1.5rem 0; border: 1px solid var(--s010-accent);
}
.s010-promo-cta h2 { color: var(--s010-gold); font-size: 1.8rem; margin-bottom: 0.5rem; }
.s010-promo-cta p { color: #fff; font-size: 1.3rem; margin-bottom: 1rem; }
.s010-promo-cta .s010-btn { background: var(--s010-gold); color: var(--s010-secondary); padding: 1rem 2.4rem; font-size: 1.5rem; }

/* Filter tabs */
.s010-filter-bar {
  display: flex; gap: 0.8rem; overflow-x: auto; padding: 1rem 0;
  margin-bottom: 1rem; -webkit-overflow-scrolling: touch;
}
.s010-filter-tab {
  background: var(--s010-card-bg); color: var(--s010-text-muted);
  border: 1px solid var(--s010-card-border); padding: 0.6rem 1.4rem;
  border-radius: 20px; font-size: 1.3rem; white-space: nowrap; cursor: pointer; transition: all .2s;
}
.s010-tab-active, .s010-filter-tab:hover { background: var(--s010-accent); color: var(--s010-bg); border-color: var(--s010-accent); }

/* Game grid */
.s010-game-section { margin-bottom: 2rem; }
.s010-game-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.s010-game-section-head h2 { font-size: 1.7rem; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.s010-section-count { color: var(--s010-text-muted); font-size: 1.2rem; }
.s010-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.s010-game-card {
  background: var(--s010-card-bg); border: 1px solid var(--s010-card-border);
  border-radius: 10px; overflow: hidden; text-align: center; cursor: pointer;
  transition: transform .2s, box-shadow .2s; display: block;
}
.s010-game-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,184,212,.3); border-color: var(--s010-accent); }
.s010-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.s010-game-card-name {
  font-size: 1.1rem; color: var(--s010-text); padding: 0.5rem 0.3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}

/* Content cards */
.s010-card {
  background: var(--s010-card-bg); border: 1px solid var(--s010-card-border);
  border-radius: var(--s010-radius); padding: 1.5rem; margin-bottom: 1.2rem;
}
.s010-card h2 { color: var(--s010-accent); font-size: 1.8rem; margin-bottom: 0.8rem; font-weight: 700; }
.s010-card h3 { color: var(--s010-gold); font-size: 1.5rem; margin: 1rem 0 0.5rem; font-weight: 700; }
.s010-card p { color: var(--s010-text); font-size: 1.35rem; line-height: 1.6; margin-bottom: 0.8rem; }
.s010-card ul { list-style: none; padding-left: 0; }
.s010-card ul li {
  color: var(--s010-text); font-size: 1.3rem; padding: 0.5rem 0 0.5rem 1.8rem; position: relative;
}
.s010-card ul li::before {
  content: '\f005'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--s010-gold); position: absolute; left: 0; font-size: 1.1rem;
}

/* Promo text links */
.s010-link-text { color: var(--s010-accent); font-weight: 700; cursor: pointer; text-decoration: underline; }
.s010-link-text:hover { color: var(--s010-gold); }

/* RTP grid */
.s010-rtp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.s010-rtp-item { background: rgba(0,184,212,.08); border: 1px solid var(--s010-card-border); border-radius: 8px; padding: 0.8rem; text-align: center; }
.s010-rtp-game { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; }
.s010-rtp-value { color: var(--s010-gold); font-size: 1.6rem; font-weight: 800; }
.s010-rtp-label { color: var(--s010-text-muted); font-size: 1.1rem; }

/* Features grid */
.s010-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.s010-feature-item { background: rgba(139,0,139,.1); border: 1px solid var(--s010-card-border); border-radius: 10px; padding: 1.2rem; text-align: center; }
.s010-feature-item i, .s010-feature-item .material-icons { font-size: 2.4rem; color: var(--s010-accent); margin-bottom: 0.6rem; }
.s010-feature-item ion-icon { font-size: 2.4rem; color: var(--s010-accent); margin-bottom: 0.6rem; }
.s010-feature-item h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.4rem; }
.s010-feature-item p { color: var(--s010-text-muted); font-size: 1.2rem; margin: 0; }

/* Testimonials */
.s010-testimonial { background: var(--s010-card-bg); border-left: 4px solid var(--s010-gold); border-radius: 8px; padding: 1.2rem; margin-bottom: 1rem; }
.s010-testimonial-text { color: var(--s010-text); font-size: 1.3rem; font-style: italic; margin-bottom: 0.6rem; }
.s010-testimonial-author { color: var(--s010-accent); font-size: 1.2rem; font-weight: 700; }

/* Payment */
.s010-payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.s010-payment-item {
  background: #fff; border-radius: 8px; padding: 0.8rem 0.4rem; text-align: center;
  color: var(--s010-bg); font-size: 1.1rem; font-weight: 700; border: 1px solid var(--s010-card-border);
}
.s010-payment-item i { font-size: 1.8rem; display: block; margin-bottom: 0.3rem; color: var(--s010-primary); }

/* Winners */
.s010-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--s010-card-bg); border: 1px solid var(--s010-card-border);
  border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 0.6rem;
}
.s010-winner-name { color: #fff; font-size: 1.3rem; font-weight: 700; }
.s010-winner-game { color: var(--s010-text-muted); font-size: 1.1rem; }
.s010-winner-amount { color: var(--s010-gold); font-size: 1.5rem; font-weight: 800; }

/* VIP card */
.s010-vip-card {
  background: linear-gradient(135deg, var(--s010-primary), var(--s010-secondary));
  border-radius: var(--s010-radius); padding: 1.5rem; text-align: center;
  border: 2px solid var(--s010-gold); margin-bottom: 1.2rem;
}
.s010-vip-card h2 { color: var(--s010-gold); font-size: 1.9rem; margin-bottom: 0.5rem; }
.s010-vip-card p { color: #fff; font-size: 1.3rem; margin-bottom: 1rem; }

/* App CTA */
.s010-app-cta {
  background: linear-gradient(90deg, var(--s010-secondary), var(--s010-primary));
  border-radius: var(--s010-radius); padding: 1.5rem; text-align: center; border: 1px solid var(--s010-accent);
}
.s010-app-cta h2 { color: #fff; font-size: 1.8rem; margin-bottom: 0.5rem; }
.s010-app-cta p { color: var(--s010-text-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.s010-app-buttons { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.s010-app-btn {
  background: #fff; color: var(--s010-bg); padding: 0.8rem 1.5rem;
  border-radius: 8px; font-weight: 700; font-size: 1.3rem;
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
}

/* FAQ */
.s010-faq-item { background: var(--s010-card-bg); border: 1px solid var(--s010-card-border); border-radius: 8px; margin-bottom: 0.8rem; overflow: hidden; }
.s010-faq-question { padding: 1rem 1.2rem; color: #fff; font-size: 1.4rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.s010-faq-answer { padding: 0 1.2rem 1rem; color: var(--s010-text); font-size: 1.3rem; line-height: 1.6; display: none; }

/* Footer */
.s010-footer { background: var(--s010-bg-alt); border-top: 1px solid var(--s010-card-border); padding: 2rem 1.2rem 1rem; margin-top: 2rem; }
.s010-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.s010-footer-brand h3 { color: var(--s010-gold); font-size: 1.8rem; margin-bottom: 0.5rem; }
.s010-footer-brand p { color: var(--s010-text-muted); font-size: 1.2rem; line-height: 1.5; }
.s010-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.5rem; }
.s010-footer-promo button, .s010-footer-promo a {
  background: var(--s010-primary); color: #fff; border: none; padding: 0.6rem 1.2rem;
  border-radius: 20px; font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: background .2s;
}
.s010-footer-promo button:hover, .s010-footer-promo a:hover { background: var(--s010-accent); color: var(--s010-bg); }
.s010-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1.5rem; }
.s010-footer-links a { color: var(--s010-text-muted); font-size: 1.2rem; transition: color .2s; }
.s010-footer-links a:hover { color: var(--s010-accent); }
.s010-footer-copyright { text-align: center; color: var(--s010-text-muted); font-size: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--s010-card-border); }

/* Mobile bottom nav */
.s010-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 430px; margin: 0 auto;
  height: var(--s010-bottomnav-h);
  background: linear-gradient(180deg, var(--s010-secondary), var(--s010-bg-alt));
  border-top: 2px solid var(--s010-accent);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 16px rgba(0,0,0,.4);
}
.s010-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none;
  color: var(--s010-text-muted); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.2rem; cursor: pointer;
  font-size: 1rem; font-weight: 600; transition: all .2s; position: relative;
}
.s010-bottom-nav-btn i, .s010-bottom-nav-btn .material-icons { font-size: 2.2rem; transition: transform .2s; }
.s010-bottom-nav-btn ion-icon { font-size: 2.4rem; transition: transform .2s; }
.s010-bottom-nav-btn:active i, .s010-bottom-nav-btn:active .material-icons, .s010-bottom-nav-btn:active ion-icon { transform: scale(1.2); }
.s010-bottom-nav-btn:hover { color: var(--s010-accent); }
.s010-nav-active { color: var(--s010-gold); }
.s010-nav-active::before { content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%); width: 30px; height: 3px; background: var(--s010-gold); border-radius: 0 0 4px 4px; }
.s010-nav-badge { position: absolute; top: 6px; right: 20%; background: #e74c3c; color: #fff; font-size: 0.9rem; padding: 0 5px; border-radius: 8px; font-weight: 700; }

/* Desktop - hide bottom nav, widen container */
@media (min-width: 769px) {
  .s010-bottom-nav { display: none; }
  .s010-container, .s010-header, .s010-footer { max-width: 768px; }
}

/* Mobile - bottom padding for nav clearance */
@media (max-width: 768px) {
  .s010-main, .s010-footer { padding-bottom: 80px; }
}

@media (max-width: 430px) {
  .s010-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .s010-game-card-name { font-size: 1rem; }
}
