/**
 * kkeb.click - Main Stylesheet
 * All classes use sa77- prefix for namespace isolation
 * Color Palette: #0E1621 | #4682B4 | #FFB347 | #B8860B | #EEE8AA
 */

:root {
  --sa77-bg: #0E1621;
  --sa77-primary: #4682B4;
  --sa77-accent: #FFB347;
  --sa77-secondary: #B8860B;
  --sa77-highlight: #EEE8AA;
  --sa77-text: #EEE8AA;
  --sa77-text-light: #c8d6e5;
  --sa77-card-bg: #162230;
  --sa77-card-border: #1e3348;
  --sa77-dark-surface: #111d2b;
}

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

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

body {
  font-family: 'Hind Siliguri', sans-serif;
  background-color: var(--sa77-bg);
  color: var(--sa77-text-light);
  font-size: 1.6rem;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

/* === HEADER === */
.sa77-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(180deg, #0E1621 0%, #162230 100%);
  border-bottom: 2px solid var(--sa77-primary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sa77-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.sa77-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.sa77-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sa77-accent);
  letter-spacing: 1px;
}

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

.sa77-btn-register,
.sa77-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.sa77-btn-register {
  background: linear-gradient(135deg, var(--sa77-accent), var(--sa77-secondary));
  color: #0E1621;
}

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

.sa77-btn-register:hover,
.sa77-btn-login:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.sa77-menu-toggle {
  background: none;
  border: none;
  color: var(--sa77-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* === MOBILE MENU === */
.sa77-mobile-menu {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--sa77-dark-surface);
  z-index: 9999;
  border-bottom: 2px solid var(--sa77-primary);
}

.sa77-mobile-menu ul {
  list-style: none;
  padding: 0.5rem 0;
}

.sa77-mobile-menu li {
  border-bottom: 1px solid var(--sa77-card-border);
}

.sa77-mobile-menu li:last-child {
  border-bottom: none;
}

.sa77-mobile-menu a {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--sa77-text-light);
  text-decoration: none;
  font-size: 1.5rem;
  transition: background 0.2s;
}

.sa77-mobile-menu a:hover {
  background: rgba(70, 130, 180, 0.15);
  color: var(--sa77-accent);
}

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

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

.sa77-container {
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

/* === CAROUSEL === */
.sa77-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

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

.sa77-slide-active {
  display: block;
}

.sa77-slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.sa77-dots {
  text-align: center;
  padding: 0.8rem 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.sa77-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sa77-card-border);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

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

/* === SECTION HEADINGS === */
.sa77-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sa77-accent);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sa77-primary);
}

.sa77-section-title i {
  margin-right: 0.5rem;
}

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

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

.sa77-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.5rem;
  border-radius: 8px;
  background: var(--sa77-card-bg);
  border: 1px solid var(--sa77-card-border);
}

.sa77-game-item:hover {
  transform: scale(1.05);
  border-color: var(--sa77-primary);
}

.sa77-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.sa77-game-name {
  font-size: 1.1rem;
  color: var(--sa77-text-light);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.sa77-card h3 {
  color: var(--sa77-accent);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.sa77-card p {
  color: var(--sa77-text-light);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

/* === PROMO BUTTONS === */
.sa77-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sa77-accent), var(--sa77-secondary));
  color: #0E1621;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: center;
}

.sa77-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
}

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

.sa77-promo-link:hover {
  color: var(--sa77-highlight);
}

/* === BOTTOM NAVIGATION === */
.sa77-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(180deg, #162230, #0E1621);
  border-top: 2px solid var(--sa77-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
}

.sa77-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(--sa77-text-light);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.3rem;
  border-radius: 8px;
}

.sa77-bottom-nav-btn:hover {
  color: var(--sa77-accent);
}

.sa77-bottom-nav-btn .sa77-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

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

.sa77-nav-active {
  color: var(--sa77-accent) !important;
  background: rgba(255, 179, 71, 0.1);
}

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

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

.sa77-footer-brand {
  color: var(--sa77-accent);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.sa77-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.sa77-footer-links a {
  color: var(--sa77-primary);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--sa77-card-border);
  border-radius: 4px;
  transition: all 0.2s;
}

.sa77-footer-links a:hover {
  color: var(--sa77-accent);
  border-color: var(--sa77-primary);
}

.sa77-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  justify-content: center;
}

.sa77-partners span {
  font-size: 1.2rem;
  color: var(--sa77-text-light);
  padding: 0.3rem 0.6rem;
  background: var(--sa77-card-bg);
  border-radius: 4px;
  border: 1px solid var(--sa77-card-border);
}

.sa77-copyright {
  text-align: center;
  color: #5a6e82;
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sa77-card-border);
}

/* === FAQ === */
.sa77-faq-item {
  border-bottom: 1px solid var(--sa77-card-border);
  padding: 1.2rem 0;
}

.sa77-faq-item:last-child {
  border-bottom: none;
}

.sa77-faq-q {
  font-weight: 600;
  color: var(--sa77-accent);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.sa77-faq-a {
  color: var(--sa77-text-light);
  font-size: 1.4rem;
  line-height: 1.6;
}

/* === TIPS LIST === */
.sa77-tips-list {
  list-style: none;
  padding: 0;
}

.sa77-tips-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--sa77-card-border);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.sa77-tips-list li:last-child {
  border-bottom: none;
}

.sa77-tip-icon {
  color: var(--sa77-accent);
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.sa77-tip-text {
  font-size: 1.4rem;
  line-height: 1.6;
}

/* === WINNER SHOWCASE === */
.sa77-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--sa77-card-border);
  font-size: 1.3rem;
}

.sa77-winner-name {
  color: var(--sa77-highlight);
  font-weight: 600;
}

.sa76-winner-amount {
  color: var(--sa77-accent);
  font-weight: 700;
}

.sa77-winner-game {
  color: var(--sa77-text-light);
}

/* === UTILITY === */
.sa77-text-center {
  text-align: center;
}

.sa77-mt-1 {
  margin-top: 0.8rem;
}

.sa77-mt-2 {
  margin-top: 1.6rem;
}

.sa77-mb-1 {
  margin-bottom: 0.8rem;
}

.sa77-mb-2 {
  margin-bottom: 1.6rem;
}

/* === RESPONSIVE === */
@media (min-width: 769px) {
  body {
    max-width: 430px;
    border-left: 1px solid var(--sa77-card-border);
    border-right: 1px solid var(--sa77-card-border);
  }
}
