/**
 * wagi777.cfd - Core Stylesheet
 * All classes use g938- prefix for namespace isolation
 * Color palette: #2C3E50 (dark bg) | #5F9EA0 (accent/teal) | #ECF0F1 (light text)
 */

/* Root variables */
:root {
  --g938-primary: #5F9EA0;
  --g938-primary-dark: #4A8A8C;
  --g938-primary-light: #7BBFC1;
  --g938-bg: #1A252F;
  --g938-bg-card: #2C3E50;
  --g938-bg-light: #34495E;
  --g938-text: #ECF0F1;
  --g938-text-muted: #BDC3C7;
  --g938-accent-gold: #F1C40F;
  --g938-accent-orange: #E67E22;
  --g938-accent-red: #E74C3C;
  --g938-accent-green: #2ECC71;
  --g938-border: #3D566E;
  --g938-radius: 1.2rem;
  --g938-radius-sm: 0.8rem;
  --g938-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
  --g938-transition: all 0.3s ease;
}

/* Reset & 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, 'Helvetica Neue', Arial, sans-serif;
  background: var(--g938-bg);
  color: var(--g938-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g938-primary-light); text-decoration: none; transition: var(--g938-transition); }
a:hover { color: var(--g938-accent-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.g938-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}
.g938-wrapper {
  padding-top: 6rem;
  padding-bottom: 2rem;
}

/* Header */
.g938-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1A252F 0%, #2C3E50 100%);
  border-bottom: 0.2rem solid var(--g938-primary-dark);
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.4);
}
.g938-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  height: 5.6rem;
}
.g938-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.g938-logo-area img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
}
.g938-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g938-accent-gold);
  letter-spacing: 0.1rem;
}
.g938-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g938-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--g938-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g938-transition);
  text-decoration: none;
  white-space: nowrap;
}
.g938-btn-register {
  background: linear-gradient(135deg, var(--g938-accent-gold), var(--g938-accent-orange));
  color: #1A252F;
}
.g938-btn-register:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1.2rem rgba(241, 196, 15, 0.4);
  color: #1A252F;
}
.g938-btn-login {
  background: transparent;
  border: 0.2rem solid var(--g938-primary);
  color: var(--g938-primary-light);
}
.g938-btn-login:hover {
  background: var(--g938-primary);
  color: var(--g938-bg);
}
.g938-menu-btn {
  background: none;
  border: none;
  color: var(--g938-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu Overlay */
.g938-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: var(--g938-transition);
}
.g938-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.g938-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--g938-bg-card);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem;
  overflow-y: auto;
}
.g938-menu-active {
  right: 0;
}
.g938-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--g938-text);
  font-size: 2.4rem;
  cursor: pointer;
}
.g938-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g938-accent-gold);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 0.2rem solid var(--g938-border);
}
.g938-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  font-size: 1.4rem;
  color: var(--g938-text);
  border-bottom: 0.1rem solid var(--g938-border);
  transition: var(--g938-transition);
}
.g938-menu-nav a:hover {
  color: var(--g938-accent-gold);
  padding-left: 0.5rem;
}
.g938-menu-nav a .material-icons {
  font-size: 2rem;
  color: var(--g938-primary);
}

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

/* Section titles */
.g938-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g938-accent-gold);
  margin: 2rem 0 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 0.2rem solid var(--g938-primary-dark);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.g938-section-title .material-icons,
.g938-section-title .fas,
.g938-section-title .far {
  font-size: 2rem;
  color: var(--g938-primary);
}

/* Game Grid */
.g938-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g938-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--g938-transition);
  padding: 0.6rem;
  border-radius: var(--g938-radius-sm);
}
.g938-game-item:hover {
  background: var(--g938-bg-light);
  transform: translateY(-0.2rem);
}
.g938-game-item:active,
.g938-touch-active {
  transform: scale(0.95);
}
.g938-game-item img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--g938-radius-sm);
  margin-bottom: 0.4rem;
  border: 0.15rem solid var(--g938-border);
}
.g938-game-item span {
  font-size: 1.1rem;
  color: var(--g938-text-muted);
  text-align: center;
  line-height: 1.3rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cards */
.g938-card {
  background: var(--g938-bg-card);
  border-radius: var(--g938-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 0.1rem solid var(--g938-border);
  box-shadow: var(--g938-shadow);
}
.g938-card h2 {
  font-size: 1.6rem;
  color: var(--g938-accent-gold);
  margin-bottom: 1rem;
}
.g938-card h3 {
  font-size: 1.4rem;
  color: var(--g938-primary-light);
  margin-bottom: 0.8rem;
}
.g938-card p {
  color: var(--g938-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* Affiliate link styling */
.g938-affiliate-link {
  display: inline-block;
  color: var(--g938-accent-gold);
  font-weight: 700;
  cursor: pointer;
  transition: var(--g938-transition);
  border-bottom: 0.1rem dashed var(--g938-accent-gold);
}
.g938-affiliate-link:hover {
  color: var(--g938-accent-orange);
  border-bottom-color: var(--g938-accent-orange);
}

/* Promo banner */
.g938-promo-banner {
  background: linear-gradient(135deg, var(--g938-primary-dark), var(--g938-bg-card));
  border-radius: var(--g938-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 0.2rem solid var(--g938-primary);
  cursor: pointer;
  transition: var(--g938-transition);
}
.g938-promo-banner:hover {
  border-color: var(--g938-accent-gold);
  box-shadow: 0 0 2rem rgba(95, 158, 160, 0.3);
}
.g938-promo-banner h3 {
  color: var(--g938-accent-gold);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.g938-promo-banner p {
  color: var(--g938-text-muted);
  font-size: 1.2rem;
}

/* Stats grid */
.g938-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.g938-stat-item {
  background: var(--g938-bg-light);
  border-radius: var(--g938-radius-sm);
  padding: 1rem;
  text-align: center;
}
.g938-stat-item .g938-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g938-accent-gold);
}
.g938-stat-item .g938-stat-label {
  font-size: 1.1rem;
  color: var(--g938-text-muted);
}

/* Winners list */
.g938-winners-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.g938-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--g938-bg-light);
  border-radius: var(--g938-radius-sm);
  font-size: 1.2rem;
}
.g938-winner-item .g938-winner-name {
  color: var(--g938-primary-light);
  font-weight: 600;
}
.g938-winner-item .g938-winner-amount {
  color: var(--g938-accent-gold);
  font-weight: 700;
}

/* Footer */
.g938-footer {
  background: var(--g938-bg-card);
  padding: 2rem 1.2rem 8rem;
  border-top: 0.2rem solid var(--g938-primary-dark);
  margin-top: 2rem;
}
.g938-footer-inner {
  max-width: 430px;
  margin: 0 auto;
}
.g938-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.g938-footer-brand p {
  font-size: 1.2rem;
  color: var(--g938-text-muted);
  line-height: 1.6rem;
}
.g938-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.g938-footer-links a {
  font-size: 1.2rem;
  padding: 0.4rem 1rem;
  background: var(--g938-bg-light);
  border-radius: var(--g938-radius-sm);
  color: var(--g938-text-muted);
  transition: var(--g938-transition);
}
.g938-footer-links a:hover {
  background: var(--g938-primary);
  color: #fff;
}
.g938-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g938-text-muted);
  opacity: 0.7;
}

/* Bottom Navigation - Fixed Mobile Nav */
.g938-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2C3E50, #1A252F);
  border-top: 0.2rem solid var(--g938-primary-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  box-shadow: 0 -0.2rem 1rem rgba(0, 0, 0, 0.5);
}
.g938-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(--g938-text-muted);
  cursor: pointer;
  transition: var(--g938-transition);
  gap: 0.2rem;
  padding: 0.4rem;
}
.g938-bottom-nav-btn:hover,
.g938-bottom-nav-btn:focus {
  color: var(--g938-accent-gold);
  transform: scale(1.1);
}
.g938-bottom-nav-btn:active {
  transform: scale(0.92);
}
.g938-bottom-nav-btn .g938-nav-icon {
  font-size: 22px;
  line-height: 1;
}
.g938-bottom-nav-btn .g938-nav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03rem;
}
.g938-bottom-nav-btn.g938-active-nav {
  color: var(--g938-accent-gold);
}
.g938-bottom-nav-btn.g938-active-nav .g938-nav-icon {
  filter: drop-shadow(0 0 4px rgba(241, 196, 15, 0.5));
}

/* FAQ */
.g938-faq-item {
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--g938-bg-light);
  border-radius: var(--g938-radius-sm);
  border-left: 0.3rem solid var(--g938-primary);
}
.g938-faq-item h3 {
  font-size: 1.3rem;
  color: var(--g938-primary-light);
  margin-bottom: 0.5rem;
}
.g938-faq-item p {
  font-size: 1.2rem;
  color: var(--g938-text-muted);
  line-height: 1.6rem;
}

/* Step list */
.g938-step-list {
  counter-reset: g938-step;
}
.g938-step-item {
  counter-increment: g938-step;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--g938-bg-light);
  border-radius: var(--g938-radius-sm);
}
.g938-step-item::before {
  content: counter(g938-step);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  background: var(--g938-primary);
  color: var(--g938-bg);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.3rem;
}
.g938-step-item p {
  font-size: 1.3rem;
  color: var(--g938-text-muted);
  line-height: 1.6rem;
}

/* Responsive */
@media (min-width: 769px) {
  .g938-bottom-nav { display: none; }
  .g938-container { max-width: 430px; }
  .g938-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  .g938-wrapper { padding-bottom: 80px; }
}

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