/**
 * SS77 Main Stylesheet - style-843a.css
 * All classes use prefix "w843a-" for namespace isolation
 * Color palette: #EE82EE | #CCCCCC | #8470FF | #DDA0DD | #2D2D2D | #48D1CC
 * Mobile-first design, max-width: 430px
 */

:root {
  --w843a-primary: #8470FF;
  --w843a-secondary: #EE82EE;
  --w843a-accent: #48D1CC;
  --w843a-bg: #2D2D2D;
  --w843a-bg-dark: #1A1A2E;
  --w843a-bg-card: #3A3A4E;
  --w843a-text: #CCCCCC;
  --w843a-text-light: #FFFFFF;
  --w843a-border: #4A4A5E;
  --w843a-pink: #DDA0DD;
  --w843a-gradient: linear-gradient(135deg, #8470FF, #EE82EE);
  --w843a-radius: 12px;
  --w843a-radius-sm: 8px;
  --w843a-shadow: 0 4px 15px rgba(132, 112, 255, 0.3);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--w843a-bg-dark);
  color: var(--w843a-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--w843a-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============ HEADER ============ */
.w843a-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: var(--w843a-bg-dark);
  border-bottom: 2px solid var(--w843a-primary);
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.w843a-header-scrolled {
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 0 2px 12px rgba(132, 112, 255, 0.25);
}

.w843a-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.w843a-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.w843a-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--w843a-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w843a-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.w843a-btn-register {
  background: var(--w843a-gradient);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.w843a-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(132, 112, 255, 0.5);
}

.w843a-btn-login {
  background: transparent;
  color: var(--w843a-accent);
  border: 1.5px solid var(--w843a-accent);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.w843a-btn-login:hover {
  background: rgba(72, 209, 204, 0.15);
}

.w843a-menu-toggle {
  background: none;
  border: none;
  color: var(--w843a-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* ============ MOBILE MENU ============ */
.w843a-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.w843a-overlay-active {
  opacity: 1;
  visibility: visible;
}

.w843a-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--w843a-bg-dark);
  z-index: 9999;
  padding: 2rem 1.5rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--w843a-primary);
}

.w843a-menu-active {
  right: 0;
}

.w843a-mobile-menu h3 {
  font-size: 1.6rem;
  color: var(--w843a-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--w843a-border);
}

.w843a-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--w843a-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(74, 74, 94, 0.5);
  transition: color 0.2s;
}

.w843a-mobile-menu a:hover {
  color: var(--w843a-primary);
}

.w843a-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--w843a-text);
  font-size: 2rem;
  cursor: pointer;
}

/* ============ CAROUSEL ============ */
.w843a-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--w843a-radius) var(--w843a-radius);
}

.w843a-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.w843a-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
}

.w843a-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.w843a-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.w843a-dot-active {
  background: var(--w843a-secondary);
  transform: scale(1.2);
}

/* ============ MAIN CONTENT ============ */
main {
  padding-top: 56px;
}

.w843a-section {
  padding: 1.5rem 1rem;
}

.w843a-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w843a-text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--w843a-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.w843a-section-title i {
  color: var(--w843a-secondary);
}

/* ============ GAME GRID ============ */
.w843a-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w843a-secondary);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--w843a-primary);
}

.w843a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.w843a-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 4px;
  border-radius: var(--w843a-radius-sm);
  background: var(--w843a-bg-card);
}

.w843a-game-item:hover {
  transform: scale(1.05);
}

.w843a-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w843a-radius-sm);
  margin-bottom: 4px;
}

.w843a-game-item span {
  display: block;
  font-size: 1rem;
  color: var(--w843a-text);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ CONTENT CARDS ============ */
.w843a-card {
  background: var(--w843a-bg-card);
  border-radius: var(--w843a-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--w843a-border);
}

.w843a-card h3 {
  font-size: 1.5rem;
  color: var(--w843a-secondary);
  margin-bottom: 0.8rem;
}

.w843a-card p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--w843a-text);
  margin-bottom: 0.5rem;
}

.w843a-card ul {
  list-style: none;
  padding: 0;
}

.w843a-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.3rem;
  color: var(--w843a-text);
}

.w843a-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--w843a-primary);
}

/* ============ PROMO BUTTONS ============ */
.w843a-promo-btn {
  display: inline-block;
  background: var(--w843a-gradient);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  text-decoration: none;
}

.w843a-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(132, 112, 255, 0.5);
}

.w843a-promo-text {
  color: var(--w843a-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.w843a-promo-text:hover {
  color: var(--w843a-secondary);
}

/* ============ FAQ SECTION ============ */
.w843a-faq-item {
  background: var(--w843a-bg-card);
  border-radius: var(--w843a-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--w843a-primary);
}

.w843a-faq-item strong {
  color: var(--w843a-secondary);
  font-size: 1.3rem;
}

.w843a-faq-item p {
  color: var(--w843a-text);
  font-size: 1.2rem;
  margin-top: 0.4rem;
  line-height: 1.6rem;
}

/* ============ FOOTER ============ */
.w843a-footer {
  background: var(--w843a-bg);
  padding: 2rem 1rem;
  border-top: 2px solid var(--w843a-primary);
}

.w843a-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.w843a-footer-brand p {
  font-size: 1.2rem;
  color: var(--w843a-text);
  line-height: 1.6rem;
  margin-bottom: 0.3rem;
}

.w843a-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.w843a-footer-links a {
  background: var(--w843a-bg-card);
  color: var(--w843a-text);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 1.1rem;
  transition: all 0.2s;
  border: 1px solid var(--w843a-border);
}

.w843a-footer-links a:hover {
  background: var(--w843a-primary);
  color: #fff;
}

.w843a-footer-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.w843a-footer-promo button {
  background: var(--w843a-gradient);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.w843a-footer-promo button:hover {
  transform: scale(1.05);
}

.w843a-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: #888;
  padding-top: 1rem;
  border-top: 1px solid var(--w843a-border);
}

/* ============ BOTTOM NAVIGATION ============ */
.w843a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--w843a-bg);
  border-top: 2px solid var(--w843a-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}

.w843a-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--w843a-text);
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 10px;
  padding: 4px;
}

.w843a-bottom-nav-btn:hover,
.w843a-bottom-nav-btn:active {
  color: var(--w843a-secondary);
  background: rgba(238, 130, 238, 0.1);
}

.w843a-bottom-nav-btn.active {
  color: var(--w843a-primary);
}

.w843a-bottom-nav-btn i,
.w843a-bottom-nav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}

.w843a-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* ============ WINNERS TABLE ============ */
.w843a-winners-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.w843a-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--w843a-bg-card);
  border-radius: var(--w843a-radius-sm);
  font-size: 1.2rem;
}

.w843a-winner-name {
  color: var(--w843a-accent);
  font-weight: 600;
}

.w843a-winner-game {
  color: var(--w843a-text);
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
}

.w843a-winner-amount {
  color: var(--w843a-secondary);
  font-weight: 700;
}

/* ============ TESTIMONIALS ============ */
.w843a-testimonial {
  background: var(--w843a-bg-card);
  border-radius: var(--w843a-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--w843a-secondary);
}

.w843a-testimonial p {
  font-size: 1.2rem;
  line-height: 1.6rem;
  font-style: italic;
  color: var(--w843a-text);
}

.w843a-testimonial strong {
  color: var(--w843a-primary);
  font-size: 1.1rem;
}

/* ============ PAYMENT METHODS ============ */
.w843a-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.w843a-payment-item {
  background: var(--w843a-bg-card);
  border-radius: var(--w843a-radius-sm);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--w843a-text);
  border: 1px solid var(--w843a-border);
}

/* ============ CTA SECTION ============ */
.w843a-cta-section {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(132, 112, 255, 0.15), rgba(238, 130, 238, 0.15));
  border-radius: var(--w843a-radius);
  margin: 1rem;
}

.w843a-cta-section h3 {
  font-size: 1.6rem;
  color: var(--w843a-text-light);
  margin-bottom: 0.8rem;
}

.w843a-cta-section p {
  font-size: 1.3rem;
  color: var(--w843a-text);
  margin-bottom: 1.2rem;
}

/* ============ FEATURES GRID ============ */
.w843a-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.w843a-feature-item {
  background: var(--w843a-bg-card);
  border-radius: var(--w843a-radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--w843a-border);
}

.w843a-feature-item i {
  font-size: 2.4rem;
  color: var(--w843a-primary);
  margin-bottom: 6px;
}

.w843a-feature-item h4 {
  font-size: 1.2rem;
  color: var(--w843a-secondary);
  margin-bottom: 4px;
}

.w843a-feature-item p {
  font-size: 1.1rem;
  color: var(--w843a-text);
  line-height: 1.4rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .w843a-bottom-nav {
    display: none;
  }
}
