/**
 * mgame.click - Theme Stylesheet
 * All classes use ga87- prefix for namespace isolation
 * Color Palette: #FF6347 | #FF7F50 | #AFEEEE | #0097A7 | #1B263B
 * @version 1.0.0
 */

:root {
  --ga87-primary: #FF6347;
  --ga87-secondary: #FF7F50;
  --ga87-accent: #AFEEEE;
  --ga87-teal: #0097A7;
  --ga87-bg: #1B263B;
  --ga87-bg-light: #243352;
  --ga87-bg-card: #1e2f4d;
  --ga87-text: #AFEEEE;
  --ga87-text-light: #e0f4f4;
  --ga87-text-muted: #8ba7b8;
  --ga87-border: #2d4463;
  --ga87-shadow: rgba(0, 0, 0, 0.3);
  --ga87-radius: 8px;
  --ga87-radius-lg: 12px;
}

/* Base reset */
*, *::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-color: var(--ga87-bg);
  color: var(--ga87-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ga87-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ga87-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.ga87-container { width: 100%; padding: 0 1.2rem; }
.ga87-wrapper { max-width: 430px; margin: 0 auto; }
.ga87-section { padding: 2rem 1.2rem; }

/* ========== HEADER ========== */
.ga87-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ga87-bg);
  border-bottom: 1px solid var(--ga87-border);
  max-width: 430px;
  margin: 0 auto;
}
.ga87-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  height: 52px;
}
.ga87-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.ga87-logo img { width: 28px; height: 28px; border-radius: 4px; }
.ga87-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ga87-primary);
  letter-spacing: -0.5px;
}
.ga87-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.ga87-btn-register {
  background: var(--ga87-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--ga87-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 34px;
}
.ga87-btn-register:hover { background: var(--ga87-secondary); transform: scale(1.02); }
.ga87-btn-login {
  background: transparent;
  color: var(--ga87-accent);
  border: 1px solid var(--ga87-accent);
  padding: 0.5rem 1.2rem;
  border-radius: var(--ga87-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 34px;
}
.ga87-btn-login:hover { background: var(--ga87-accent); color: var(--ga87-bg); }
.ga87-menu-toggle {
  background: none;
  border: none;
  color: var(--ga87-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ========== MOBILE MENU ========== */
.ga87-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--ga87-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.ga87-menu-active { right: 0 !important; }
.ga87-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ga87-overlay-active { opacity: 1; pointer-events: auto; }
.ga87-menu-close {
  background: none;
  border: none;
  color: var(--ga87-accent);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}
.ga87-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ga87-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--ga87-border);
}
.ga87-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--ga87-text-light);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--ga87-border);
  transition: color 0.2s;
}
.ga87-menu-link:hover { color: var(--ga87-primary); }

/* ========== CAROUSEL ========== */
.ga87-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 52px;
  border-radius: 0 0 var(--ga87-radius-lg) var(--ga87-radius-lg);
}
.ga87-carousel-track { position: relative; width: 100%; aspect-ratio: 16/9; }
.ga87-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.ga87-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.ga87-slide-active { opacity: 1; }
.ga87-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.ga87-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.ga87-dot-active { background: var(--ga87-primary); width: 20px; border-radius: 4px; }

/* ========== GAME GRID ========== */
.ga87-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ga87-text-light);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ga87-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ga87-section-title i { color: var(--ga87-primary); font-size: 1.8rem; }
.ga87-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.ga87-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.ga87-game-item:hover { transform: translateY(-3px); }
.ga87-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--ga87-radius);
  border: 2px solid var(--ga87-border);
  overflow: hidden;
  transition: border-color 0.2s;
  background: var(--ga87-bg-card);
}
.ga87-game-item:hover .ga87-game-img { border-color: var(--ga87-primary); }
.ga87-game-img img { width: 100%; height: 100%; object-fit: cover; }
.ga87-game-name {
  font-size: 1.1rem;
  color: var(--ga87-text-muted);
  margin-top: 0.4rem;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== CONTENT CARDS ========== */
.ga87-card {
  background: var(--ga87-bg-card);
  border-radius: var(--ga87-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--ga87-border);
}
.ga87-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ga87-primary);
  margin-bottom: 1rem;
}
.ga87-card-text {
  font-size: 1.3rem;
  color: var(--ga87-text);
  line-height: 1.6;
}
.ga87-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--ga87-primary), var(--ga87-secondary));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--ga87-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.ga87-promo-btn:hover { transform: scale(1.03); box-shadow: 0 4px 12px var(--ga87-shadow); }
.ga87-promo-text {
  color: var(--ga87-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}
.ga87-promo-text:hover { color: var(--ga87-secondary); }

/* ========== CTA BANNER ========== */
.ga87-cta-banner {
  background: linear-gradient(135deg, var(--ga87-primary), var(--ga87-secondary));
  border-radius: var(--ga87-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.ga87-cta-banner h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.8rem;
}
.ga87-cta-banner p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
}
.ga87-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--ga87-primary);
  padding: 1rem 2.5rem;
  border-radius: var(--ga87-radius);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}
.ga87-cta-btn:hover { transform: scale(1.05); }

/* ========== RTP TABLE ========== */
.ga87-rtp-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.ga87-rtp-table th {
  background: var(--ga87-bg-light);
  color: var(--ga87-accent);
  padding: 0.8rem 0.6rem;
  font-size: 1.2rem;
  text-align: left;
  border-bottom: 2px solid var(--ga87-primary);
}
.ga87-rtp-table td {
  padding: 0.7rem 0.6rem;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--ga87-border);
  color: var(--ga87-text);
}
.ga87-rtp-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--ga87-bg);
  overflow: hidden;
  margin-top: 4px;
}
.ga87-rtp-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ga87-teal), var(--ga87-primary));
}

/* ========== TESTIMONIALS ========== */
.ga87-testimonial {
  background: var(--ga87-bg-light);
  border-radius: var(--ga87-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--ga87-primary);
}
.ga87-testimonial-author {
  font-weight: 700;
  color: var(--ga87-secondary);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.ga87-testimonial-text {
  font-size: 1.2rem;
  color: var(--ga87-text-muted);
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.ga87-footer {
  background: var(--ga87-bg-light);
  padding: 2rem 1.2rem 1.5rem;
  border-top: 1px solid var(--ga87-border);
}
.ga87-footer-brand {
  font-size: 1.3rem;
  color: var(--ga87-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.ga87-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.ga87-footer-link {
  color: var(--ga87-text-muted);
  font-size: 1.2rem;
  transition: color 0.2s;
}
.ga87-footer-link:hover { color: var(--ga87-primary); }
.ga87-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.ga87-footer-promo-btn {
  background: var(--ga87-bg-card);
  border: 1px solid var(--ga87-border);
  color: var(--ga87-text);
  padding: 0.5rem 1rem;
  border-radius: var(--ga87-radius);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ga87-footer-promo-btn:hover { border-color: var(--ga87-primary); color: var(--ga87-primary); }
.ga87-footer-copy {
  font-size: 1.1rem;
  color: var(--ga87-text-muted);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--ga87-border);
}

/* ========== BOTTOM NAV ========== */
.ga87-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ga87-bg-light);
  border-top: 1px solid var(--ga87-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -2px 10px var(--ga87-shadow);
}
.ga87-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--ga87-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem;
  border-radius: var(--ga87-radius);
}
.ga87-bottom-nav-btn:hover { color: var(--ga87-primary); }
.ga87-bottom-nav-btn.ga87-nav-active { color: var(--ga87-primary); }
.ga87-bottom-nav-btn .ga87-nav-icon { font-size: 2.2rem; line-height: 1; }
.ga87-bottom-nav-btn .ga87-nav-label { font-size: 1rem; margin-top: 2px; }
.ga87-btn-pressed { transform: scale(0.92); opacity: 0.8; }

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

/* Mobile bottom padding */
@media (max-width: 768px) {
  .ga87-main-content { padding-bottom: 80px; }
}

/* ========== HELP PAGE STYLES ========== */
.ga87-help-section { margin-bottom: 1.5rem; }
.ga87-help-section h2 {
  font-size: 1.6rem;
  color: var(--ga87-primary);
  margin-bottom: 0.8rem;
}
.ga87-help-section p {
  font-size: 1.3rem;
  color: var(--ga87-text);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.ga87-help-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.ga87-help-list li {
  font-size: 1.3rem;
  color: var(--ga87-text);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  position: relative;
}
.ga87-help-list li::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ga87-primary);
}
.ga87-faq-item {
  background: var(--ga87-bg-card);
  border-radius: var(--ga87-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--ga87-border);
}
.ga87-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ga87-secondary);
  margin-bottom: 0.6rem;
}
.ga87-faq-a {
  font-size: 1.3rem;
  color: var(--ga87-text);
  line-height: 1.6;
}

/* ========== WINNERS SHOWCASE ========== */
.ga87-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--ga87-bg-light);
  border-radius: var(--ga87-radius);
  margin-bottom: 0.6rem;
}
.ga87-winner-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ga87-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.ga87-winner-info { flex: 1; }
.ga87-winner-name { font-size: 1.2rem; color: var(--ga87-text-light); font-weight: 600; }
.ga87-winner-game { font-size: 1rem; color: var(--ga87-text-muted); }
.ga87-winner-amount { font-size: 1.3rem; color: var(--ga87-primary); font-weight: 700; }

/* ========== PAYMENT METHODS ========== */
.ga87-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}
.ga87-payment-item {
  background: var(--ga87-bg-light);
  border-radius: var(--ga87-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--ga87-text-muted);
  border: 1px solid var(--ga87-border);
}

/* ========== APP DOWNLOAD CTA ========== */
.ga87-app-cta {
  background: linear-gradient(135deg, var(--ga87-teal), var(--ga87-bg-light));
  border-radius: var(--ga87-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.ga87-app-cta h3 { font-size: 1.6rem; color: var(--ga87-accent); margin-bottom: 0.6rem; }
.ga87-app-cta p { font-size: 1.2rem; color: var(--ga87-text-muted); margin-bottom: 1rem; }
.ga87-app-btns { display: flex; gap: 0.8rem; justify-content: center; }
.ga87-app-btn {
  background: var(--ga87-primary);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--ga87-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.ga87-app-btn:hover { transform: scale(1.04); }

/* ========== TRICKS SECTION ========== */
.ga87-trick-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--ga87-bg-light);
  border-radius: var(--ga87-radius);
}
.ga87-trick-num {
  width: 32px; height: 32px;
  background: var(--ga87-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ga87-trick-text {
  font-size: 1.2rem;
  color: var(--ga87-text);
  line-height: 1.5;
}
.ga87-trick-text strong { color: var(--ga87-secondary); }

/* Utility */
.ga87-text-center { text-align: center; }
.ga87-mt-1 { margin-top: 1rem; }
.ga87-mb-1 { margin-bottom: 1rem; }
.ga87-mb-2 { margin-bottom: 2rem; }
.ga87-hidden { display: none; }
.ga87-inline-link { color: var(--ga87-primary); text-decoration: underline; }
.ga87-inline-link:hover { color: var(--ga87-secondary); }
