/**
 * Spentime Website Core Stylesheet
 * All classes use g9b1- prefix for namespace isolation
 * Color palette: #9966CC | #9932CC | #0A0A0A | #E65100
 * Mobile-first design, max-width: 430px
 */

/* CSS Variables */
:root {
  --g9b1-primary: #9966CC;
  --g9b1-secondary: #9932CC;
  --g9b1-bg: #0A0A0A;
  --g9b1-accent: #E65100;
  --g9b1-text: #F0E6FF;
  --g9b1-text-muted: #BFA8D8;
  --g9b1-card-bg: #1A1A2E;
  --g9b1-card-border: #2A2A4A;
  --g9b1-radius: 8px;
  --g9b1-radius-lg: 12px;
  --g9b1-shadow: 0 4px 15px rgba(153, 102, 204, 0.15);
}

/* Reset and Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--g9b1-bg);
  color: var(--g9b1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}

/* Container */
.g9b1-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.g9b1-wrapper { padding: 1.2rem 0; }

/* Header */
.g9b1-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A2E 100%);
  border-bottom: 2px solid var(--g9b1-primary);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.g9b1-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.g9b1-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.g9b1-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--g9b1-primary), var(--g9b1-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g9b1-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g9b1-menu-toggle {
  background: none;
  border: none;
  color: var(--g9b1-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.g9b1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--g9b1-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  min-height: 36px;
  gap: 0.4rem;
}
.g9b1-btn-primary {
  background: linear-gradient(135deg, var(--g9b1-accent), #FF6D00);
  color: #fff;
}
.g9b1-btn-primary:hover { transform: scale(1.03); box-shadow: 0 0 12px rgba(230, 81, 0, 0.4); }
.g9b1-btn-secondary {
  background: linear-gradient(135deg, var(--g9b1-primary), var(--g9b1-secondary));
  color: #fff;
}
.g9b1-btn-secondary:hover { transform: scale(1.03); box-shadow: 0 0 12px rgba(153, 102, 204, 0.4); }
.g9b1-btn-outline {
  background: transparent;
  border: 1.5px solid var(--g9b1-primary);
  color: var(--g9b1-primary);
}
.g9b1-btn-outline:hover { background: var(--g9b1-primary); color: #fff; }

/* Mobile Menu */
.g9b1-mobile-menu {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #12122A;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-bottom: 2px solid var(--g9b1-primary);
}
.g9b1-mobile-menu.g9b1-menu-active { max-height: 500px; }
.g9b1-menu-list {
  list-style: none;
  padding: 1rem 0;
}
.g9b1-menu-list li { border-bottom: 1px solid rgba(153, 102, 204, 0.15); }
.g9b1-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.6rem;
  color: var(--g9b1-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.2s;
}
.g9b1-menu-list a:hover { background: rgba(153, 102, 204, 0.1); }
.g9b1-menu-list .material-icons { font-size: 20px; color: var(--g9b1-primary); }

/* Carousel */
.g9b1-carousel {
  position: relative;
  margin-top: 56px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.g9b1-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.g9b1-carousel-slide {
  min-width: 100%;
  aspect-ratio: 16/9;
}
.g9b1-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g9b1-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.g9b1-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
}
.g9b1-carousel-dot.g9b1-dot-active { background: var(--g9b1-accent); width: 20px; border-radius: 4px; }

/* Section titles */
.g9b1-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g9b1-text);
  margin: 2rem 0 1rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--g9b1-accent);
}
.g9b1-section-title span { color: var(--g9b1-primary); }

/* Game Grid */
.g9b1-game-section { padding: 0.8rem 0; }
.g9b1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 0.4rem;
}
.g9b1-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}
.g9b1-game-card:hover { transform: scale(1.05); }
.g9b1-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g9b1-radius);
  object-fit: cover;
  border: 2px solid var(--g9b1-card-border);
  transition: border-color 0.2s;
}
.g9b1-game-card:hover .g9b1-game-img { border-color: var(--g9b1-primary); }
.g9b1-game-name {
  font-size: 1.1rem;
  color: var(--g9b1-text-muted);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Card / Panel */
.g9b1-card {
  background: var(--g9b1-card-bg);
  border: 1px solid var(--g9b1-card-border);
  border-radius: var(--g9b1-radius-lg);
  padding: 1.4rem;
  margin: 1rem 0;
}
.g9b1-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g9b1-primary);
  margin-bottom: 0.8rem;
}

/* Content area */
.g9b1-content { padding: 1rem 0 2rem; }
.g9b1-content h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--g9b1-primary), var(--g9b1-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g9b1-content h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--g9b1-primary);
  margin: 1.6rem 0 0.8rem;
}
.g9b1-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g9b1-accent);
  margin: 1.2rem 0 0.6rem;
}
.g9b1-content p {
  color: var(--g9b1-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.g9b1-content a { color: var(--g9b1-accent); text-decoration: underline; }
.g9b1-content ul, .g9b1-content ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--g9b1-text-muted);
}
.g9b1-content li { margin-bottom: 0.5rem; }

/* Affiliate text link */
.g9b1-affiliate-link {
  color: var(--g9b1-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.g9b1-affiliate-link:hover { color: #FF6D00; text-decoration: underline; }

/* Promo banner strip */
.g9b1-promo-strip {
  background: linear-gradient(90deg, var(--g9b1-accent), var(--g9b1-secondary));
  padding: 1rem 1.2rem;
  border-radius: var(--g9b1-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
  cursor: pointer;
}
.g9b1-promo-strip-text { color: #fff; font-weight: 600; font-size: 1.3rem; }

/* Bottom Navigation */
.g9b1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #12122A 0%, #0A0A1A 100%);
  border-top: 1.5px solid var(--g9b1-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}
.g9b1-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--g9b1-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
}
.g9b1-bottom-nav-btn .g9b1-nav-icon { font-size: 24px; }
.g9b1-bottom-nav-btn .g9b1-nav-label { font-size: 1rem; font-weight: 500; }
.g9b1-bottom-nav-btn:hover,
.g9b1-bottom-nav-btn.g9b1-nav-active {
  color: var(--g9b1-accent);
}
.g9b1-bottom-nav-btn.g9b1-nav-active .g9b1-nav-icon {
  transform: scale(1.15);
}
.g9b1-bottom-nav-btn:active { transform: scale(0.92); }

/* Footer */
.g9b1-footer {
  background: #08081A;
  padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--g9b1-card-border);
}
.g9b1-footer-brand {
  font-size: 1.3rem;
  color: var(--g9b1-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.g9b1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.g9b1-footer-links a {
  color: var(--g9b1-primary);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--g9b1-card-border);
  border-radius: 4px;
  transition: all 0.2s;
}
.g9b1-footer-links a:hover { background: var(--g9b1-primary); color: #fff; }
.g9b1-footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #1A1A2E;
}

/* Responsive */
@media (min-width: 769px) {
  .g9b1-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  main, .g9b1-content, .g9b1-main { padding-bottom: 80px; }
}

/* Utility */
.g9b1-text-center { text-align: center; }
.g9b1-text-accent { color: var(--g9b1-accent); }
.g9b1-text-primary { color: var(--g9b1-primary); }
.g9b1-mt-1 { margin-top: 0.8rem; }
.g9b1-mt-2 { margin-top: 1.6rem; }
.g9b1-mb-1 { margin-bottom: 0.8rem; }
.g9b1-mb-2 { margin-bottom: 1.6rem; }
.g9b1-flex-center { display: flex; align-items: center; justify-content: center; }
.g9b1-hidden { display: none; }

/* Partners strip */
.g9b1-partners {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0;
  opacity: 0.6;
}

/* Feature list */
.g9b1-feature-list {
  list-style: none;
  padding: 0;
}
.g9b1-feature-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(153, 102, 204, 0.1);
  color: var(--g9b1-text-muted);
  font-size: 1.3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.g9b1-feature-list li i { color: var(--g9b1-accent); margin-top: 2px; }

/* FAQ accordion */
.g9b1-faq-item { border-bottom: 1px solid var(--g9b1-card-border); }
.g9b1-faq-q {
  font-weight: 600;
  color: var(--g9b1-text);
  padding: 0.8rem 0;
  font-size: 1.3rem;
}
.g9b1-faq-a {
  color: var(--g9b1-text-muted);
  padding-bottom: 0.8rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Touch device adjustments */
.g9b1-touch-device .g9b1-btn { min-height: 44px; }
.g9b1-touch-device .g9b1-bottom-nav-btn { min-height: 56px; }
