/**
 * sg771.click - Core Stylesheet
 * All classes use s427- prefix for namespace isolation
 * Color palette: #2E4057 (dark) | #999999 (mid) | #880E4F (accent)
 */

/* CSS Variables */
:root {
  --s427-primary: #880E4F;
  --s427-bg: #2E4057;
  --s427-bg-light: #3a5270;
  --s427-bg-dark: #1e2d3d;
  --s427-text: #f0f0f0;
  --s427-text-muted: #999999;
  --s427-accent: #880E4F;
  --s427-accent-light: #ad1457;
  --s427-gold: #FFD700;
  --s427-success: #4CAF50;
  --s427-card-bg: #354b64;
  --s427-radius: 8px;
  --s427-radius-lg: 12px;
  --s427-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --s427-shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
}

/* Base Reset */
*, *::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, 'Helvetica Neue', Arial, sans-serif;
  background: var(--s427-bg);
  color: var(--s427-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Header */
.s427-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--s427-bg-dark);
  border-bottom: 1px solid rgba(136,14,79,0.3);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}
.s427-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.s427-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.s427-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.s427-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s427-gold);
  letter-spacing: 0.5px;
}
.s427-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s427-btn-register, .s427-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--s427-radius);
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.s427-btn-register {
  background: var(--s427-accent);
  color: #fff;
}
.s427-btn-register:hover { background: var(--s427-accent-light); }
.s427-btn-login {
  background: transparent;
  color: var(--s427-gold);
  border: 1px solid var(--s427-gold);
}
.s427-btn-login:hover { background: rgba(255,215,0,0.1); }
.s427-menu-toggle {
  background: none;
  border: none;
  color: var(--s427-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu Overlay */
.s427-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.s427-overlay-active { opacity: 1; visibility: visible; }

/* Mobile Slide Menu */
.s427-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100%;
  background: var(--s427-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.s427-menu-active { right: 0; }
.s427-menu-close {
  background: none;
  border: none;
  color: var(--s427-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.s427-menu-links {
  list-style: none;
  margin-top: 3rem;
}
.s427-menu-links li {
  margin-bottom: 0.4rem;
}
.s427-menu-links a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--s427-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-radius: var(--s427-radius);
  transition: background 0.2s;
}
.s427-menu-links a:hover {
  background: var(--s427-bg-light);
  color: var(--s427-gold);
}

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

/* Carousel */
.s427-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--s427-radius-lg);
  margin-bottom: 1.5rem;
  cursor: pointer;
}
.s427-slide {
  display: none;
  width: 100%;
}
.s427-slide-active { display: block; }
.s427-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--s427-radius-lg);
}
.s427-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.s427-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}
.s427-dot-active { background: var(--s427-gold); }

/* Section Titles */
.s427-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s427-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--s427-accent);
}
.s427-section-title i {
  margin-right: 0.5rem;
}

/* Game Grid */
.s427-game-section {
  margin-bottom: 2rem;
}
.s427-game-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--s427-gold);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.s427-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
@media (max-width: 360px) {
  .s427-game-grid { grid-template-columns: repeat(3, 1fr); }
}
.s427-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.s427-game-item:hover { transform: scale(1.05); }
.s427-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--s427-radius);
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.s427-game-item:hover img { border-color: var(--s427-accent); }
.s427-game-name {
  font-size: 1.1rem;
  color: var(--s427-text);
  margin-top: 0.3rem;
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Promo Buttons & Links */
.s427-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--s427-accent), var(--s427-accent-light));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--s427-radius-lg);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
}
.s427-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--s427-shadow-lg);
}
.s427-promo-link {
  color: var(--s427-gold);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Content Blocks */
.s427-content-block {
  background: var(--s427-card-bg);
  border-radius: var(--s427-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--s427-shadow);
}
.s427-content-block h2 {
  font-size: 1.7rem;
  color: var(--s427-gold);
  margin-bottom: 0.8rem;
}
.s427-content-block h3 {
  font-size: 1.4rem;
  color: var(--s427-accent-light);
  margin: 1rem 0 0.5rem;
}
.s427-content-block p {
  color: var(--s427-text-muted);
  line-height: 1.6rem;
  margin-bottom: 0.8rem;
}
.s427-content-block ul {
  list-style: none;
  padding: 0;
}
.s427-content-block li {
  padding: 0.5rem 0;
  color: var(--s427-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.s427-content-block li:last-child { border-bottom: none; }

/* Card Grid */
.s427-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.s427-card {
  background: var(--s427-card-bg);
  border-radius: var(--s427-radius-lg);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--s427-shadow);
  transition: transform 0.2s;
}
.s427-card:hover { transform: translateY(-2px); }
.s427-card-icon {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}
.s427-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--s427-gold);
  margin-bottom: 0.3rem;
}
.s427-card-desc {
  font-size: 1.1rem;
  color: var(--s427-text-muted);
}

/* Footer */
.s427-footer {
  background: var(--s427-bg-dark);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 2px solid var(--s427-accent);
}
.s427-footer-inner {
  max-width: 430px;
  margin: 0 auto;
}
.s427-footer-brand {
  font-size: 1.3rem;
  color: var(--s427-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6rem;
}
.s427-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.s427-footer-links a {
  background: var(--s427-bg-light);
  color: var(--s427-text);
  padding: 0.5rem 1rem;
  border-radius: var(--s427-radius);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.2s;
}
.s427-footer-links a:hover {
  background: var(--s427-accent);
  color: #fff;
}
.s427-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--s427-text-muted);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Bottom Navigation */
.s427-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--s427-bg-dark);
  border-top: 1px solid rgba(136,14,79,0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.5rem;
}
@media (min-width: 769px) {
  .s427-bottom-nav { display: none; }
}
.s427-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--s427-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--s427-radius);
  position: relative;
}
.s427-bnav-btn:hover,
.s427-bnav-active {
  color: var(--s427-gold);
}
.s427-bnav-btn:active {
  transform: scale(0.92);
}
.s427-bnav-icon {
  font-size: 22px;
  margin-bottom: 2px;
  transition: transform 0.2s;
}
.s427-bnav-btn:hover .s427-bnav-icon {
  transform: scale(1.15);
}
.s427-bnav-label {
  font-size: 10px;
  font-weight: 500;
}

/* Badge */
.s427-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--s427-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}

/* Responsive helpers */
.s427-hide-mobile { display: none; }
@media (min-width: 769px) {
  .s427-hide-mobile { display: block; }
  .s427-hide-desktop { display: none; }
}

/* Winner item */
.s427-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.s427-winner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--s427-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
}
.s427-winner-info {
  flex: 1;
}
.s427-winner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--s427-text);
}
.s427-winner-game {
  font-size: 1rem;
  color: var(--s427-text-muted);
}
.s427-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--s427-success);
}

/* FAQ item */
.s427-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
}
.s427-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--s427-gold);
  margin-bottom: 0.4rem;
}
.s427-faq-a {
  font-size: 1.2rem;
  color: var(--s427-text-muted);
  line-height: 1.5rem;
}

/* Testimonial */
.s427-testimonial {
  background: rgba(255,255,255,0.03);
  border-radius: var(--s427-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.s427-testimonial-text {
  font-size: 1.2rem;
  color: var(--s427-text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.s427-testimonial-author {
  font-size: 1.1rem;
  color: var(--s427-gold);
  font-weight: 600;
}

/* Payment row */
.s427-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
}
.s427-payment-icon {
  background: var(--s427-bg-light);
  border-radius: var(--s427-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--s427-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* App download section */
.s427-app-cta {
  background: linear-gradient(135deg, var(--s427-bg-light), var(--s427-accent));
  border-radius: var(--s427-radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.s427-app-cta h3 {
  font-size: 1.6rem;
  color: var(--s427-gold);
  margin-bottom: 0.5rem;
}
.s427-app-cta p {
  font-size: 1.2rem;
  color: var(--s427-text);
  margin-bottom: 1rem;
}

/* Text helpers */
.s427-text-gold { color: var(--s427-gold); }
.s427-text-accent { color: var(--s427-accent-light); }
.s427-text-center { text-align: center; }
.s427-mt-1 { margin-top: 1rem; }
.s427-mb-1 { margin-bottom: 1rem; }
.s427-mt-2 { margin-top: 2rem; }
.s427-mb-2 { margin-bottom: 2rem; }

/* Desktop nav */
.s427-desktop-nav {
  display: none;
}
@media (min-width: 769px) {
  .s427-desktop-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  .s427-desktop-nav a {
    color: var(--s427-text);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.2s;
  }
  .s427-desktop-nav a:hover {
    color: var(--s427-gold);
  }
}
