/**
 * 8999 Pet - Theme Stylesheet
 * All classes use s496- prefix for namespace isolation
 * Color Palette: #B0E0E6 (powder blue) | #0E1621 (dark navy) | #F8F9FA (light gray)
 * Mobile-first responsive design, max-width 430px
 */

/* CSS Variables */
:root {
  --s496-primary: #B0E0E6;
  --s496-bg: #0E1621;
  --s496-text: #F8F9FA;
  --s496-accent: #4FC3F7;
  --s496-accent2: #FFD54F;
  --s496-card-bg: #162232;
  --s496-card-border: #1e3348;
  --s496-gradient-start: #0E1621;
  --s496-gradient-end: #1a2d42;
  --s496-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --s496-radius: 8px;
  --s496-radius-lg: 12px;
  --s496-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--s496-bg);
  color: var(--s496-text);
  font-size: 1.6rem;
  line-height: 1.5;
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--s496-accent); text-decoration: none; transition: var(--s496-transition); }
a:hover { color: var(--s496-primary); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.s496-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--s496-bg), var(--s496-gradient-end));
  border-bottom: 1px solid var(--s496-card-border);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s496-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.s496-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.s496-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s496-primary);
  letter-spacing: 0.5px;
}
.s496-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s496-btn-register, .s496-btn-login {
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s496-transition);
}
.s496-btn-register {
  background: linear-gradient(135deg, var(--s496-accent), #29B6F6);
  color: var(--s496-bg);
}
.s496-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(79,195,247,0.4); }
.s496-btn-login {
  background: transparent;
  color: var(--s496-primary);
  border: 1px solid var(--s496-primary);
}
.s496-btn-login:hover { background: rgba(176,224,230,0.15); }
.s496-menu-btn {
  background: none;
  border: none;
  color: var(--s496-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.s496-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--s496-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  border-left: 1px solid var(--s496-card-border);
}
.s496-menu-active { right: 0; }
.s496-mobile-menu a {
  display: block;
  padding: 1.2rem 0;
  color: var(--s496-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--s496-card-border);
  transition: var(--s496-transition);
}
.s496-mobile-menu a:hover { color: var(--s496-accent); padding-left: 1rem; }
.s496-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--s496-text);
  font-size: 2.4rem;
  cursor: pointer;
}
.s496-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.s496-overlay-active { display: block; }

/* Main Content */
.s496-main {
  padding-top: 56px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .s496-main { padding-bottom: 80px; }
}

/* Carousel */
.s496-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--s496-radius) var(--s496-radius);
}
.s496-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.s496-slide-active { display: block; }
.s496-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.s496-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.s496-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--s496-transition);
  border: none;
}
.s496-dot-active { background: var(--s496-accent); transform: scale(1.2); }

/* Section */
.s496-section {
  padding: 2rem 1.2rem;
}
.s496-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s496-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--s496-accent);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.s496-section-title i { font-size: 2rem; color: var(--s496-accent); }

/* Game Grid */
.s496-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.s496-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--s496-transition);
  border-radius: var(--s496-radius);
  padding: 0.4rem;
}
.s496-game-item:hover { transform: translateY(-2px); background: var(--s496-card-bg); }
.s496-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--s496-radius);
  margin-bottom: 0.4rem;
}
.s496-game-item span {
  font-size: 1.1rem;
  color: var(--s496-text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Category Label */
.s496-cat-label {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--s496-accent2);
  margin: 1.6rem 0 0.8rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--s496-accent2);
}

/* Card */
.s496-card {
  background: var(--s496-card-bg);
  border: 1px solid var(--s496-card-border);
  border-radius: var(--s496-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--s496-shadow);
}
.s496-card h3 {
  font-size: 1.6rem;
  color: var(--s496-primary);
  margin-bottom: 0.8rem;
}
.s496-card p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--s496-text);
  opacity: 0.9;
}

/* Promo Button */
.s496-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--s496-accent), #29B6F6);
  color: var(--s496-bg);
  padding: 1rem 2.4rem;
  border-radius: 25px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--s496-transition);
  text-align: center;
  margin: 0.8rem 0;
}
.s496-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(79,195,247,0.5);
}

/* Promo Link Text */
.s496-promo-link {
  color: var(--s496-accent2);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--s496-transition);
}
.s496-promo-link:hover { color: #FFE082; }

/* Footer */
.s496-footer {
  background: linear-gradient(180deg, var(--s496-bg), #060d15);
  padding: 2.4rem 1.2rem 1.2rem;
  border-top: 1px solid var(--s496-card-border);
}
.s496-footer-brand {
  font-size: 1.4rem;
  color: var(--s496-text);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.s496-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.s496-footer-links a {
  background: var(--s496-card-bg);
  color: var(--s496-text);
  padding: 0.5rem 1rem;
  border-radius: 16px;
  font-size: 1.2rem;
  border: 1px solid var(--s496-card-border);
  transition: var(--s496-transition);
}
.s496-footer-links a:hover {
  background: var(--s496-accent);
  color: var(--s496-bg);
}
.s496-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--s496-text);
  opacity: 0.5;
  padding-top: 1rem;
  border-top: 1px solid var(--s496-card-border);
}

/* Bottom Navigation */
.s496-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, #0a1220, #162232);
  border-top: 1px solid var(--s496-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.s496-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--s496-text);
  opacity: 0.6;
  cursor: pointer;
  transition: var(--s496-transition);
  padding: 0.4rem;
}
.s496-bottom-btn i, .s496-bottom-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}
.s496-bottom-btn span {
  font-size: 1rem;
  line-height: 1.2;
}
.s496-bottom-btn:hover {
  opacity: 1;
  color: var(--s496-accent);
}
.s496-bottom-active {
  opacity: 1 !important;
  color: var(--s496-accent) !important;
}
@media (min-width: 769px) {
  .s496-bottom-nav { display: none; }
}

/* Utilities */
.s496-container { width: 100%; padding: 0 1.2rem; }
.s496-wrapper { max-width: 430px; margin: 0 auto; }
.s496-text-center { text-align: center; }
.s496-mt-1 { margin-top: 0.8rem; }
.s496-mt-2 { margin-top: 1.6rem; }
.s496-mb-1 { margin-bottom: 0.8rem; }
.s496-mb-2 { margin-bottom: 1.6rem; }
.s496-flex { display: flex; }
.s496-flex-wrap { flex-wrap: wrap; }
.s496-gap-1 { gap: 0.8rem; }
.s496-hidden { display: none; }

/* Winner list */
.s496-winner-list { list-style: none; }
.s496-winner-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--s496-card-border);
  font-size: 1.3rem;
}
.s496-winner-name { color: var(--s496-accent); font-weight: 600; }
.s496-winner-amount { color: var(--s496-accent2); font-weight: 700; }

/* Testimonial */
.s496-testimonial {
  background: var(--s496-card-bg);
  border-radius: var(--s496-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--s496-accent);
}
.s496-testimonial-text {
  font-size: 1.3rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 0.6rem;
}
.s496-testimonial-author {
  font-size: 1.2rem;
  color: var(--s496-accent);
  font-weight: 600;
}

/* Payment icons */
.s496-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.s496-payment-item {
  background: var(--s496-card-bg);
  border: 1px solid var(--s496-card-border);
  border-radius: var(--s496-radius);
  padding: 0.8rem 1.2rem;
  font-size: 1.3rem;
  color: var(--s496-text);
  text-align: center;
}

/* FAQ */
.s496-faq-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--s496-card-bg);
  border-radius: var(--s496-radius);
}
.s496-faq-q {
  font-weight: 700;
  color: var(--s496-accent);
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}
.s496-faq-a {
  font-size: 1.3rem;
  opacity: 0.85;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .s496-game-grid { grid-template-columns: repeat(3, 1fr); }
  .s496-btn-register, .s496-btn-login { padding: 0.5rem 1rem; font-size: 1.2rem; }
}
@media (min-width: 769px) {
  .s496-main { padding-bottom: 0; }
}
