/* ============================================
   kg999.click - Theme Stylesheet
   Prefix: w6335-
   Colors: #1C2833 (bg) #E9967A (accent) #808080 (primary)
   ============================================ */

:root {
  --w6335-primary: #808080;
  --w6335-accent: #E9967A;
  --w6335-bg: #1C2833;
  --w6335-bg-light: #2C3E50;
  --w6335-text: #F0F0F0;
  --w6335-text-muted: #B0B0B0;
  --w6335-card-bg: #243342;
  --w6335-border: #3A4F5F;
  --w6335-shadow: rgba(0,0,0,0.3);
  --w6335-radius: 8px;
  --w6335-font: 'Hind Siliguri', sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--w6335-font);
  background: var(--w6335-bg);
  color: var(--w6335-text);
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w6335-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #F4B8A8; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.w6335-header {
  position: fixed; top: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: linear-gradient(135deg, var(--w6335-bg) 0%, var(--w6335-bg-light) 100%);
  z-index: 1000; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--w6335-accent);
  box-shadow: 0 2px 12px var(--w6335-shadow);
}
.w6335-logo { display: flex; align-items: center; gap: 8px; }
.w6335-logo img { width: 36px; height: 36px; border-radius: 50%; }
.w6335-logo span { font-size: 20px; font-weight: 700; color: var(--w6335-accent); letter-spacing: 1px; }
.w6335-header-btns { display: flex; gap: 8px; }
.w6335-btn-register, .w6335-btn-login {
  padding: 7px 16px; border-radius: 20px; border: none;
  font-family: var(--w6335-font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
}
.w6335-btn-register {
  background: linear-gradient(135deg, #E9967A, #D4765C);
  color: #fff; box-shadow: 0 2px 8px rgba(233,150,122,0.4);
}
.w6335-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 14px rgba(233,150,122,0.6); }
.w6335-btn-login {
  background: transparent; color: var(--w6335-accent);
  border: 1.5px solid var(--w6335-accent);
}
.w6335-btn-login:hover { background: rgba(233,150,122,0.12); }

/* Hamburger menu trigger */
.w6335-menu-trigger {
  display: none; background: none; border: none;
  color: var(--w6335-accent); font-size: 22px; cursor: pointer; padding: 4px;
}
@media (max-width: 768px) { .w6335-menu-trigger { display: block; } }

/* Overlay */
.w6335-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}

/* Mobile Menu */
.w6335-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 260px; background: var(--w6335-bg-light);
  z-index: 9999; transform: translateX(-100%);
  transition: transform 0.3s ease; overflow-y: auto;
  border-right: 2px solid var(--w6335-accent);
}
.w6335-mobile-menu-header {
  padding: 20px; background: var(--w6335-bg);
  border-bottom: 1px solid var(--w6335-border);
  display: flex; align-items: center; justify-content: space-between;
}
.w6335-mobile-menu-header span { font-size: 18px; font-weight: 700; color: var(--w6335-accent); }
.w6335-menu-close { background: none; border: none; color: var(--w6335-text); font-size: 22px; cursor: pointer; }
.w6335-mobile-menu ul { list-style: none; }
.w6335-mobile-menu li a {
  display: block; padding: 14px 20px;
  color: var(--w6335-text); border-bottom: 1px solid var(--w6335-border);
  transition: all 0.2s; font-size: 14px;
}
.w6335-mobile-menu li a:hover { background: rgba(233,150,122,0.1); color: var(--w6335-accent); }

/* Main content spacing */
.w6335-main { padding-top: 60px; }
@media (max-width: 768px) { .w6335-main { padding-bottom: 80px; } }

/* Carousel */
.w6335-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--w6335-radius); margin-bottom: 16px;
}
.pro579-slide { display: none; }
.pro579-slide img { width: 100%; height: 200px; object-fit: cover; }
.w6335-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.pro579-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; border: none;
}
.pro579-dot-active { background: var(--w6335-accent); transform: scale(1.3); }

/* Section title */
.w6335-section-title {
  font-size: 18px; font-weight: 700; color: var(--w6335-accent);
  margin: 20px 16px 12px; padding-left: 10px;
  border-left: 4px solid var(--w6335-accent);
}

/* Category tabs */
.w6335-tabs {
  display: flex; gap: 6px; padding: 0 12px; overflow-x: auto;
  scrollbar-width: none; margin-bottom: 12px;
}
.w6335-tabs::-webkit-scrollbar { display: none; }
.pro579-tab-btn {
  padding: 8px 16px; border-radius: 20px;
  background: var(--w6335-card-bg); color: var(--w6335-text-muted);
  border: 1px solid var(--w6335-border); font-size: 13px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: all 0.25s;
  font-family: var(--w6335-font);
}
.pro579-tab-btn:hover { border-color: var(--w6335-accent); color: var(--w6335-accent); }
.pro579-tab-active {
  background: linear-gradient(135deg, #E9967A, #D4765C) !important;
  color: #fff !important; border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(233,150,122,0.4);
}

/* Game grid */
.pro579-game-panel { display: none; }
.pro579-panel-active { display: grid !important; }
.w6335-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 0 12px;
}
.w6335-game-card {
  background: var(--w6335-card-bg); border-radius: var(--w6335-radius);
  overflow: hidden; cursor: pointer; transition: all 0.25s;
  border: 1px solid transparent;
}
.w6335-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--w6335-accent);
  box-shadow: 0 4px 12px var(--w6335-shadow);
}
.w6335-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.w6335-game-card p {
  font-size: 11px; color: var(--w6335-text-muted);
  padding: 6px 4px; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Content sections */
.w6335-content-section { padding: 16px; }
.w6335-content-section h2 {
  font-size: 18px; color: var(--w6335-accent); margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--w6335-border);
}
.w6335-content-section p {
  font-size: 14px; color: var(--w6335-text-muted); line-height: 1.8; margin-bottom: 12px;
}
.w6335-content-section ul { padding-left: 20px; margin-bottom: 12px; }
.w6335-content-section li { font-size: 14px; color: var(--w6335-text-muted); margin-bottom: 6px; }

/* CTA Banner */
.w6335-cta {
  background: linear-gradient(135deg, rgba(233,150,122,0.15), rgba(233,150,122,0.05));
  border: 1px solid var(--w6335-accent); border-radius: var(--w6335-radius);
  padding: 20px 16px; text-align: center; margin: 20px 12px;
}
.w6335-cta h3 { font-size: 16px; color: var(--w6335-accent); margin-bottom: 8px; }
.w6335-cta p { font-size: 13px; color: var(--w6335-text-muted); margin-bottom: 14px; }
.w6335-cta-btn {
  display: inline-block; padding: 10px 28px;
  background: linear-gradient(135deg, #E9967A, #D4765C);
  color: #fff; border-radius: 24px; font-weight: 600;
  font-size: 14px; cursor: pointer; border: none;
  transition: all 0.25s; box-shadow: 0 2px 10px rgba(233,150,122,0.4);
}
.w6335-cta-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(233,150,122,0.6); }

/* Partners */
.w6335-partners { padding: 16px; text-align: center; }
.w6335-partner-logos {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px;
}
.w6335-partner-logos span {
  padding: 6px 14px; background: var(--w6335-card-bg); border-radius: 16px;
  font-size: 12px; color: var(--w6335-text-muted); border: 1px solid var(--w6335-border);
}

/* Footer */
.w6335-footer {
  background: var(--w6335-bg-light); padding: 20px 16px;
  border-top: 2px solid var(--w6335-accent);
}
.w6335-footer-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.w6335-footer-links a {
  font-size: 12px; color: var(--w6335-text-muted);
  padding: 4px 10px; background: var(--w6335-card-bg); border-radius: 12px;
}
.w6335-footer-links a:hover { color: var(--w6335-accent); }
.w6335-footer-copy { text-align: center; font-size: 12px; color: var(--w6335-primary); }

/* Bottom Navigation */
.w6335-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: linear-gradient(180deg, var(--w6335-bg-light), var(--w6335-bg));
  border-top: 2px solid var(--w6335-accent);
  z-index: 1000; height: 60px;
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 12px var(--w6335-shadow);
}
.w6335-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(--w6335-text-muted); cursor: pointer; transition: all 0.25s;
  font-family: var(--w6335-font); gap: 3px;
}
.w6335-nav-btn:hover, .w6335-nav-btn:focus { color: var(--w6335-accent); transform: scale(1.08); }
.w6335-nav-btn span { font-size: 10px; font-weight: 600; }
.w6335-nav-btn i, .w6335-nav-btn .material-icons, .w6335-nav-btn bi { font-size: 22px; }
.w6335-nav-active { color: var(--w6335-accent) !important; }

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

/* Scroll to top */
.pro579-scroll-top {
  display: none; position: fixed; bottom: 72px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--w6335-accent); color: #fff; border: none;
  font-size: 18px; cursor: pointer; z-index: 999;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(233,150,122,0.5);
  transition: transform 0.2s;
}
.pro579-scroll-top:hover { transform: scale(1.1); }

/* Help page styles */
.w6335-help-section { padding: 16px; }
.w6335-faq-item {
  background: var(--w6335-card-bg); border-radius: var(--w6335-radius);
  margin-bottom: 10px; overflow: hidden; border: 1px solid var(--w6335-border);
}
.w6335-faq-q {
  padding: 14px 16px; font-weight: 600; color: var(--w6335-text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.w6335-faq-a {
  padding: 0 16px 14px; font-size: 13px; color: var(--w6335-text-muted);
  line-height: 1.7;
}
.w6335-guide-step {
  display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start;
}
.w6335-step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #E9967A, #D4765C);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.w6335-step-text { font-size: 14px; color: var(--w6335-text-muted); line-height: 1.7; }
.w6335-step-text strong { color: var(--w6335-accent); }

/* Desktop adjustments */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .w6335-header { max-width: 100%; }
  .w6335-bottom-nav { display: none; }
  .w6335-main { padding-bottom: 0; }
}
