/**
 * kkkkjj - Main Stylesheet
 * All classes use g490- prefix for namespace isolation
 * Color scheme: #34495E (primary bg) | #6495ED (accent)
 */

:root {
  --g490-primary: #34495E;
  --g490-primary-dark: #2C3E50;
  --g490-primary-light: #3D566E;
  --g490-accent: #6495ED;
  --g490-accent-dark: #4A7BD4;
  --g490-accent-light: #8AB4F7;
  --g490-bg: #1A252F;
  --g490-bg-card: #2A3A4A;
  --g490-bg-light: #34495E;
  --g490-text: #FFFFFF;
  --g490-text-muted: #B0BEC5;
  --g490-text-dim: #78909C;
  --g490-border: #3D566E;
  --g490-success: #2ECC71;
  --g490-warning: #F39C12;
  --g490-danger: #E74C3C;
  --g490-gold: #FFD700;
  --g490-radius: 8px;
  --g490-radius-lg: 12px;
  --g490-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --g490-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
  font-size: 62.5%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--g490-text);
  background: var(--g490-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--g490-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--g490-accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.g490-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Header */
.g490-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--g490-primary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}

.g490-header-scrolled {
  background: var(--g490-primary-dark);
  box-shadow: var(--g490-shadow-lg);
}

.g490-header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.g490-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.g490-header-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g490-text);
  letter-spacing: 0.5px;
}

.g490-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g490-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--g490-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.g490-btn-register {
  background: var(--g490-accent);
  color: #fff;
}

.g490-btn-register:hover {
  background: var(--g490-accent-dark);
  transform: translateY(-1px);
}

.g490-btn-login {
  background: transparent;
  color: var(--g490-accent);
  border: 1.5px solid var(--g490-accent);
}

.g490-btn-login:hover {
  background: rgba(100, 149, 237, 0.1);
}

.g490-btn-promo {
  background: linear-gradient(135deg, var(--g490-accent), var(--g490-accent-dark));
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  border-radius: var(--g490-radius-lg);
  box-shadow: var(--g490-shadow);
  display: block;
  width: 100%;
  text-align: center;
}

.g490-btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: var(--g490-shadow-lg);
}

.g490-btn-outline {
  background: transparent;
  color: var(--g490-accent);
  border: 1.5px solid var(--g490-accent);
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.g490-btn-outline:hover {
  background: rgba(100, 149, 237, 0.1);
}

.g490-menu-toggle {
  background: none;
  border: none;
  color: var(--g490-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.g490-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: opacity 0.3s, visibility 0.3s;
}

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

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

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

.g490-mobile-menu .g490-menu-close {
  background: none;
  border: none;
  color: var(--g490-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

.g490-mobile-menu nav {
  margin-top: 3rem;
}

.g490-mobile-menu nav a {
  display: block;
  padding: 1rem 0;
  color: var(--g490-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--g490-border);
  transition: color 0.2s, padding-left 0.2s;
}

.g490-mobile-menu nav a:hover {
  color: var(--g490-accent);
  padding-left: 0.8rem;
}

/* Carousel */
.g490-carousel {
  position: relative;
  margin-top: 52px;
  overflow: hidden;
  border-radius: 0 0 var(--g490-radius-lg) var(--g490-radius-lg);
}

.g490-carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/8;
}

.g490-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.g490-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g490-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

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

.g490-dot-active {
  background: var(--g490-accent);
}

/* Main content */
.g490-main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .g490-main {
    padding-bottom: 80px;
  }
}

/* Sections */
.g490-section {
  padding: 2rem 0;
}

.g490-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g490-text);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g490-section-title i,
.g490-section-title .material-icons {
  color: var(--g490-accent);
}

/* Game Grid */
.g490-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g490-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--g490-accent);
}

.g490-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.g490-game-card {
  background: var(--g490-bg-card);
  border-radius: var(--g490-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.g490-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--g490-shadow);
}

.g490-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.g490-game-card span {
  display: block;
  padding: 0.4rem 0.2rem;
  font-size: 1.1rem;
  color: var(--g490-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info Cards */
.g490-info-card {
  background: var(--g490-bg-card);
  border-radius: var(--g490-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--g490-border);
}

.g490-info-card h3 {
  font-size: 1.5rem;
  color: var(--g490-accent);
  margin-bottom: 0.8rem;
}

.g490-info-card p {
  color: var(--g490-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

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

.g490-info-card li {
  padding: 0.5rem 0;
  color: var(--g490-text-muted);
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(61, 86, 110, 0.3);
}

.g490-info-card li:last-child {
  border-bottom: none;
}

/* Highlights */
.g490-highlight {
  background: linear-gradient(135deg, var(--g490-primary), var(--g490-primary-light));
  border-radius: var(--g490-radius-lg);
  padding: 1.6rem;
  margin: 1rem 0;
  border: 1px solid var(--g490-accent);
}

.g490-highlight h3 {
  color: var(--g490-accent);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.g490-highlight p {
  color: var(--g490-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* Promo banner */
.g490-promo-banner {
  background: linear-gradient(135deg, var(--g490-accent-dark), var(--g490-accent));
  border-radius: var(--g490-radius-lg);
  padding: 1.6rem;
  margin: 1.5rem 0;
  text-align: center;
  color: #fff;
}

.g490-promo-banner h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.g490-promo-banner p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.g490-promo-banner .g490-btn-promo {
  background: #fff;
  color: var(--g490-accent-dark);
}

/* Testimonials */
.g490-testimonial {
  background: var(--g490-bg-card);
  border-radius: var(--g490-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--g490-accent);
}

.g490-testimonial p {
  font-style: italic;
  color: var(--g490-text-muted);
  font-size: 1.2rem;
}

.g490-testimonial cite {
  display: block;
  margin-top: 0.4rem;
  color: var(--g490-accent);
  font-size: 1.1rem;
  font-style: normal;
}

/* Payment methods */
.g490-payment-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.g490-payment-item {
  background: var(--g490-bg-card);
  border-radius: var(--g490-radius);
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  color: var(--g490-text-muted);
  border: 1px solid var(--g490-border);
}

/* Footer */
.g490-footer {
  background: var(--g490-primary-dark);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
}

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

.g490-footer-brand h4 {
  font-size: 1.6rem;
  color: var(--g490-accent);
  margin-bottom: 0.5rem;
}

.g490-footer-brand p {
  font-size: 1.2rem;
  color: var(--g490-text-dim);
  line-height: 1.5;
}

.g490-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.g490-footer-links a {
  color: var(--g490-text-muted);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: var(--g490-bg-card);
  border-radius: var(--g490-radius);
  transition: background 0.2s;
}

.g490-footer-links a:hover {
  background: var(--g490-primary-light);
  color: var(--g490-accent);
}

.g490-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.g490-footer-promo .g490-btn {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}

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

/* Bottom Navigation */
.g490-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--g490-primary-dark);
  border-top: 1px solid var(--g490-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.4rem;
}

.g490-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--g490-text-dim);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  gap: 2px;
  border-radius: 8px;
}

.g490-bottom-nav-item:hover,
.g490-bottom-nav-item:focus {
  color: var(--g490-accent);
  transform: scale(1.05);
}

.g490-bottom-nav-item.active {
  color: var(--g490-accent);
}

.g490-bottom-nav-item i,
.g490-bottom-nav-item .material-icons {
  font-size: 22px;
}

.g490-bottom-nav-item span {
  font-size: 10px;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g490-bottom-nav {
    display: none;
  }
}

/* Responsive helpers */
@media (max-width: 768px) {
  .g490-header-name {
    font-size: 1.4rem;
  }
  .g490-btn-register,
  .g490-btn-login {
    padding: 0.5rem 0.8rem;
    font-size: 1.1rem;
  }
  .g490-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }
  .g490-section-title {
    font-size: 1.6rem;
  }
}

/* Utility classes */
.g490-text-accent { color: var(--g490-accent); }
.g490-text-muted { color: var(--g490-text-muted); }
.g490-text-center { text-align: center; }
.g490-mt-1 { margin-top: 1rem; }
.g490-mt-2 { margin-top: 2rem; }
.g490-mb-1 { margin-bottom: 1rem; }
.g490-mb-2 { margin-bottom: 2rem; }
.g490-hidden { display: none; }

/* Winners list */
.g490-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(61, 86, 110, 0.3);
}

.g490-winner-item:last-child {
  border-bottom: none;
}

.g490-winner-name {
  color: var(--g490-accent);
  font-weight: 600;
  font-size: 1.2rem;
}

.g490-winner-amount {
  color: var(--g490-success);
  font-weight: 700;
  font-size: 1.3rem;
}

.g490-winner-game {
  color: var(--g490-text-dim);
  font-size: 1.1rem;
}

/* Achievement badges */
.g490-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--g490-bg-card);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  color: var(--g490-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Tricks list */
.g490-trick-item {
  background: var(--g490-bg-card);
  border-radius: var(--g490-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--g490-accent);
}

.g490-trick-item h4 {
  color: var(--g490-accent);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.g490-trick-item p {
  color: var(--g490-text-muted);
  font-size: 1.2rem;
}
