/* mm66 core basefile CSS - English comments only */
/* All custom classes use s599- prefix */

:root {
  --s599-primary: #C71585;
  --s599-secondary: #F08080;
  --s599-bg: #2C3E50;
  --s599-bg-dark: #1f2c38;
  --s599-bg-light: #34495e;
  --s599-text: #f5f5f5;
  --s599-text-muted: #b8c2cc;
  --s599-accent: #F08080;
  --s599-gold: #ffd700;
  --s599-border: #3d5066;
}

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

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--s599-bg);
  color: var(--s599-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

a { color: var(--s599-secondary); text-decoration: none; }
a:hover { color: var(--s599-gold); }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.s599-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--s599-bg-dark), var(--s599-bg-light));
  border-bottom: 2px solid var(--s599-primary);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s599-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s599-gold);
}
.s599-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s599-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s599-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 36px;
}
.s599-btn:hover { transform: scale(1.05); }
.s599-btn-register { background: linear-gradient(135deg, var(--s599-primary), var(--s599-secondary)); color: #fff; box-shadow: 0 2px 8px rgba(199,21,133,0.4); }
.s599-btn-login { background: transparent; color: var(--s599-text); border: 1.5px solid var(--s599-secondary); }
.s599-menu-btn {
  background: transparent;
  border: none;
  color: var(--s599-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

/* ===== Mobile menu ===== */
.s599-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s599-bg-dark);
  border-bottom: 2px solid var(--s599-primary);
  z-index: 9999;
  padding: 5rem 1rem 1rem;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.3s ease;
}
.s599-mobile-menu.s599-menu-open { max-height: 480px; padding-bottom: 2rem; pointer-events: auto; }
.s599-mobile-menu a {
  display: block;
  padding: 1rem;
  color: var(--s599-text);
  border-bottom: 1px solid var(--s599-border);
  font-size: 1.4rem;
}
.s599-mobile-menu a:hover { background: var(--s599-bg-light); color: var(--s599-gold); }

/* ===== Main ===== */
.s599-main { padding-top: 5.5rem; padding-bottom: 1rem; }
@media (max-width: 768px) {
  .s599-main { padding-bottom: 80px; }
}

/* ===== Carousel ===== */
.s599-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  margin-bottom: 1.5rem;
}
.s599-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.s599-slide.s599-slide-active { opacity: 1; }
.s599-slide img { width: 100%; height: 100%; object-fit: cover; }
.s599-slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 1rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.s599-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.s599-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}
.s599-dot.s599-dot-active { background: var(--s599-gold); }

/* ===== Section ===== */
.s599-section {
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
}
.s599-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s599-gold);
  margin-bottom: 1rem;
  border-left: 4px solid var(--s599-primary);
  padding-left: 0.8rem;
}
.s599-section-title i { margin-right: 0.5rem; color: var(--s599-secondary); }

.s599-intro {
  background: var(--s599-bg-dark);
  border-radius: 12px;
  padding: 1.2rem;
  color: var(--s599-text-muted);
  font-size: 1.3rem;
  line-height: 1.6rem;
}
.s599-intro strong { color: var(--s599-gold); }

/* ===== Game grid ===== */
.s599-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s599-secondary);
  margin: 1.2rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.s599-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.s599-game-card {
  background: var(--s599-bg-dark);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  transition: transform 0.15s;
  cursor: pointer;
  border: 1px solid var(--s599-border);
}
.s599-game-card:hover { transform: translateY(-3px); border-color: var(--s599-primary); }
.s599-game-card img { width: 100%; height: 70px; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.s599-game-name {
  font-size: 1rem;
  color: var(--s599-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Feature/CTA cards ===== */
.s599-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.s599-feature-card {
  background: linear-gradient(135deg, var(--s599-bg-dark), var(--s599-bg-light));
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--s599-border);
}
.s599-feature-card i { font-size: 2.4rem; color: var(--s599-gold); margin-bottom: 0.5rem; }
.s599-feature-card h3 { font-size: 1.3rem; color: var(--s599-text); margin-bottom: 0.4rem; }
.s599-feature-card p { font-size: 1.1rem; color: var(--s599-text-muted); line-height: 1.4rem; }

.s599-cta {
  background: linear-gradient(135deg, var(--s599-primary), var(--s599-secondary));
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 1rem;
  color: #fff;
}
.s599-cta h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.s599-cta p { font-size: 1.2rem; margin-bottom: 1rem; }
.s599-cta .s599-btn { background: #fff; color: var(--s599-primary); font-size: 1.4rem; padding: 0.8rem 2rem; }

/* ===== Testimonials ===== */
.s599-testimonial {
  background: var(--s599-bg-dark);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--s599-gold);
}
.s599-testimonial p { font-size: 1.2rem; color: var(--s599-text); margin-bottom: 0.5rem; }
.s599-testimonial .s599-author { font-size: 1.1rem; color: var(--s599-secondary); }

/* ===== Winners ===== */
.s599-winner-list { list-style: none; }
.s599-winner-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem;
  background: var(--s599-bg-dark);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.s599-winner-list .s599-amount { color: var(--s599-gold); font-weight: 700; }

/* ===== Payment ===== */
.s599-pay-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s599-pay-item {
  background: var(--s599-bg-dark);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: var(--s599-text);
  border: 1px solid var(--s599-border);
  display: flex; align-items: center; gap: 0.4rem;
}
.s599-pay-item i { color: var(--s599-secondary); }

/* ===== FAQ ===== */
.s599-faq-item {
  background: var(--s599-bg-dark);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.6rem;
}
.s599-faq-item h3 { font-size: 1.3rem; color: var(--s599-gold); margin-bottom: 0.4rem; }
.s599-faq-item p { font-size: 1.2rem; color: var(--s599-text-muted); }

/* ===== Promo text link ===== */
.s599-promo-link {
  color: var(--s599-gold);
  font-weight: 700;
  cursor: pointer;
}
.s599-promo-link:hover { color: var(--s599-secondary); text-decoration: underline; }

/* ===== Footer ===== */
.s599-footer {
  background: var(--s599-bg-dark);
  padding: 1.5rem 1rem 2rem;
  border-top: 2px solid var(--s599-primary);
}
.s599-footer-brand { font-size: 1.3rem; color: var(--s599-text-muted); margin-bottom: 1rem; line-height: 1.6rem; }
.s599-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.s599-footer-links a {
  background: var(--s599-bg-light);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 1.1rem;
  color: var(--s599-text);
}
.s599-footer-links a:hover { color: var(--s599-gold); }
.s599-footer-copy { font-size: 1.1rem; color: var(--s599-text-muted); text-align: center; border-top: 1px solid var(--s599-border); padding-top: 1rem; }

/* ===== Bottom nav ===== */
.s599-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(135deg, var(--s599-bg-dark), var(--s599-bg-light));
  border-top: 2px solid var(--s599-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.s599-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s599-text-muted);
  cursor: pointer;
  font-size: 1rem;
  gap: 2px;
  transition: color 0.2s, transform 0.15s;
}
.s599-bottom-nav-item i { font-size: 22px; }
.s599-bottom-nav-item .material-icons-outlined { font-size: 24px; }
.s599-bottom-nav-item:hover, .s599-bottom-nav-item.s599-active { color: var(--s599-gold); transform: scale(1.08); }

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

/* ===== Back to top ===== */
.s599-back-top {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--s599-primary);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 900;
}
.s599-back-top.s599-back-top-show { opacity: 1; pointer-events: auto; }

/* ===== App download ===== */
.s599-app-box {
  background: var(--s599-bg-dark);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  margin: 1rem;
}
.s599-app-box h3 { color: var(--s599-gold); font-size: 1.5rem; margin-bottom: 0.5rem; }
.s599-app-box p { color: var(--s599-text-muted); font-size: 1.2rem; margin-bottom: 0.8rem; }

/* ===== RTP table ===== */
.s599-rpt-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.s599-rpt-table th, .s599-rpt-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--s599-border);
  text-align: left;
}
.s599-rpt-table th { color: var(--s599-gold); }
.s599-rpt-table td { color: var(--s599-text-muted); }
.s599-rpt-table .s599-rpt-high { color: #4caf50; font-weight: 700; }
