/**
 * Table Game - Layout Stylesheet
 * All classes use s01c- prefix for namespace isolation
 * Color Palette: #FF0000 | #2D2D2D | #8B0000 | #DC143C
 * Mobile-first design: max-width 430px
 */

/* === CSS Custom Properties === */
:root {
  --s01c-primary: #DC143C;
  --s01c-secondary: #FF0000;
  --s01c-dark: #2D2D2D;
  --s01c-deep: #8B0000;
  --s01c-bg: #1a1a1a;
  --s01c-surface: #242424;
  --s01c-card-bg: #2a2a2a;
  --s01c-text: #f0f0f0;
  --s01c-text-muted: #b0b0b0;
  --s01c-accent: #FF4444;
  --s01c-gold: #FFD700;
  --s01c-border: #3a3a3a;
  --s01c-radius: 8px;
  --s01c-radius-lg: 12px;
  --s01c-shadow: 0 4px 12px rgba(0,0,0,0.4);
  --s01c-header-h: 56px;
  --s01c-bnav-h: 60px;
  --s01c-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  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: var(--s01c-font);
  background: var(--s01c-bg);
  color: var(--s01c-text);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.s01c-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s01c-header-h);
  background: linear-gradient(135deg, var(--s01c-deep) 0%, var(--s01c-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 2px solid var(--s01c-primary);
  box-shadow: 0 2px 10px rgba(220,20,60,0.3);
}
.s01c-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.s01c-logo-wrap img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.s01c-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(90deg, #fff, var(--s01c-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.s01c-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.s01c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--s01c-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.s01c-btn-register {
  background: linear-gradient(135deg, var(--s01c-primary), var(--s01c-secondary));
  color: #fff;
  box-shadow: 0 2px 8px rgba(220,20,60,0.4);
}
.s01c-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 14px rgba(220,20,60,0.6); }
.s01c-btn-login {
  background: transparent;
  color: var(--s01c-gold);
  border: 1.5px solid var(--s01c-gold);
}
.s01c-btn-login:hover { background: rgba(255,215,0,0.1); }
.s01c-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* === Mobile Menu === */
.s01c-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.s01c-overlay-active { opacity: 1; visibility: visible; }
.s01c-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--s01c-deep), var(--s01c-dark));
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  padding: 20px 0;
  overflow-y: auto;
}
.s01c-menu-active { right: 0; }
.s01c-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.s01c-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}
.s01c-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}
.s01c-menu-links {
  padding: 12px 0;
}
.s01c-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--s01c-text);
  font-size: 1.5rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.s01c-menu-link:hover, .s01c-menu-link:focus {
  background: rgba(220,20,60,0.15);
  border-left-color: var(--s01c-primary);
  color: #fff;
}
.s01c-menu-link i, .s01c-menu-link .material-icons {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* === Main Content === */
.s01c-main {
  padding-top: calc(var(--s01c-header-h) + 4px);
  min-height: 100vh;
}
@media (max-width: 768px) {
  .s01c-main { padding-bottom: calc(var(--s01c-bnav-h) + 16px); }
}

/* === Carousel === */
.s01c-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0 0 var(--s01c-radius-lg) var(--s01c-radius-lg);
}
.s01c-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--s01c-carousel-transition, 0.4s) ease;
  cursor: pointer;
}
.s01c-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s01c-slide-active { opacity: 1; z-index: 1; }
.s01c-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.s01c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.s01c-dot-active {
  background: var(--s01c-gold);
  width: 20px;
  border-radius: 4px;
}

/* === Section Styles === */
.s01c-section {
  padding: 20px 14px;
}
.s01c-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--s01c-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.s01c-section-title .material-icons {
  font-size: 2.2rem;
  color: var(--s01c-primary);
}

/* === Game Grid === */
.s01c-game-category {
  margin-bottom: 24px;
}
.s01c-cat-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--s01c-gold);
  margin-bottom: 10px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.s01c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.s01c-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}
.s01c-game-item:hover { transform: translateY(-3px); }
.s01c-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--s01c-radius);
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.s01c-game-item:hover img { border-color: var(--s01c-primary); }
.s01c-game-name {
  font-size: 1.1rem;
  color: var(--s01c-text-muted);
  margin-top: 4px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === Content Modules === */
.s01c-card {
  background: var(--s01c-card-bg);
  border-radius: var(--s01c-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--s01c-border);
}
.s01c-card h3 {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 10px;
}
.s01c-card p, .s01c-card li {
  font-size: 1.4rem;
  color: var(--s01c-text-muted);
  line-height: 1.6;
}
.s01c-card ul { padding-left: 16px; }
.s01c-card li { margin-bottom: 6px; list-style: disc; }
.s01c-promo-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--s01c-primary), var(--s01c-secondary));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--s01c-radius);
  cursor: pointer;
  border: none;
  margin: 12px 0;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(220,20,60,0.4);
}
.s01c-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220,20,60,0.6);
}
.s01c-promo-text {
  color: var(--s01c-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}
.s01c-promo-text:hover { color: var(--s01c-gold); }

/* === FAQ Module === */
.s01c-faq-item {
  background: var(--s01c-surface);
  border-radius: var(--s01c-radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left: 3px solid var(--s01c-primary);
}
.s01c-faq-item strong {
  color: var(--s01c-gold);
  font-size: 1.4rem;
}
.s01c-faq-item p {
  margin-top: 6px;
  color: var(--s01c-text-muted);
  font-size: 1.3rem;
}

/* === Winners Showcase === */
.s01c-winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--s01c-surface);
  border-radius: var(--s01c-radius);
  margin-bottom: 8px;
}
.s01c-winner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s01c-primary), var(--s01c-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.s01c-winner-info { flex: 1; }
.s01c-winner-name { font-size: 1.3rem; color: #fff; font-weight: 600; }
.s01c-winner-game { font-size: 1.1rem; color: var(--s01c-text-muted); }
.s01c-winner-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s01c-gold);
}

/* === Testimonials === */
.s01c-testimonial {
  background: var(--s01c-surface);
  border-radius: var(--s01c-radius);
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--s01c-border);
}
.s01c-testimonial-text {
  font-size: 1.3rem;
  color: var(--s01c-text-muted);
  font-style: italic;
  margin-bottom: 8px;
}
.s01c-testimonial-author {
  font-size: 1.2rem;
  color: var(--s01c-gold);
  font-weight: 600;
}

/* === Features Grid === */
.s01c-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.s01c-feature-item {
  background: var(--s01c-surface);
  border-radius: var(--s01c-radius);
  padding: 14px;
  text-align: center;
  border: 1px solid var(--s01c-border);
  transition: border-color 0.2s;
}
.s01c-feature-item:hover { border-color: var(--s01c-primary); }
.s01c-feature-item i, .s01c-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--s01c-primary);
  margin-bottom: 6px;
}
.s01c-feature-item h4 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 4px;
}
.s01c-feature-item p {
  font-size: 1.1rem;
  color: var(--s01c-text-muted);
}

/* === Payment Methods === */
.s01c-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.s01c-payment-item {
  background: var(--s01c-surface);
  padding: 8px 14px;
  border-radius: var(--s01c-radius);
  font-size: 1.2rem;
  color: var(--s01c-text-muted);
  border: 1px solid var(--s01c-border);
}

/* === Footer === */
.s01c-footer {
  background: linear-gradient(180deg, var(--s01c-dark), #111);
  padding: 24px 14px;
  margin-top: 20px;
  border-top: 2px solid var(--s01c-deep);
}
.s01c-footer-brand {
  font-size: 1.4rem;
  color: var(--s01c-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.s01c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.s01c-footer-link {
  padding: 6px 12px;
  background: var(--s01c-surface);
  border-radius: var(--s01c-radius);
  font-size: 1.2rem;
  color: var(--s01c-text-muted);
  transition: all 0.2s;
  border: 1px solid var(--s01c-border);
}
.s01c-footer-link:hover { color: #fff; border-color: var(--s01c-primary); }
.s01c-footer-copy {
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--s01c-border);
}

/* === Bottom Navigation === */
.s01c-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s01c-bnav-h);
  background: linear-gradient(180deg, var(--s01c-dark), #111);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--s01c-deep);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
.s01c-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--s01c-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 4px 2px;
  border-radius: 8px;
  position: relative;
}
.s01c-bnav-btn i, .s01c-bnav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
  transition: transform 0.2s, color 0.2s;
}
.s01c-bnav-btn span {
  font-size: 1rem;
  white-space: nowrap;
}
.s01c-bnav-btn:hover, .s01c-bnav-active {
  color: var(--s01c-primary);
  background: rgba(220,20,60,0.1);
}
.s01c-bnav-btn:hover i, .s01c-bnav-active i,
.s01c-bnav-btn:hover .material-icons, .s01c-bnav-active .material-icons {
  transform: scale(1.15);
  color: var(--s01c-primary);
}
.s01c-bnav-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--s01c-primary);
  border-radius: 0 0 3px 3px;
}

/* === Desktop: Hide bottom nav === */
@media (min-width: 769px) {
  .s01c-bnav { display: none; }
  .s01c-main { padding-bottom: 20px; }
}

/* === Help Page Styles === */
.s01c-help-section {
  padding: 20px 14px;
}
.s01c-help-card {
  background: var(--s01c-card-bg);
  border-radius: var(--s01c-radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--s01c-border);
}
.s01c-help-card h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--s01c-border);
}
.s01c-help-card h3 {
  font-size: 1.5rem;
  color: var(--s01c-gold);
  margin: 12px 0 6px;
}
.s01c-help-card p {
  font-size: 1.4rem;
  color: var(--s01c-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.s01c-help-card ol, .s01c-help-card ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.s01c-help-card li {
  font-size: 1.4rem;
  color: var(--s01c-text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
  list-style: decimal;
}

/* === Internal Link Style === */
.s01c-internal-link {
  color: var(--s01c-primary);
  text-decoration: underline;
  transition: color 0.2s;
}
.s01c-internal-link:hover { color: var(--s01c-gold); }

/* === Badge === */
.s01c-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--s01c-primary);
  color: #fff;
  font-size: 1rem;
  border-radius: 10px;
  font-weight: 600;
}

/* === Utility === */
.s01c-text-center { text-align: center; }
.s01c-mt-10 { margin-top: 10px; }
.s01c-mb-10 { margin-bottom: 10px; }
.s01c-hidden { display: none; }
