/* cv222.sbs - Main Stylesheet */
/* All classes prefixed with g88a- for namespace isolation */
/* Color palette: #00CED1 | #3A3A3A | #B2DFDB | #CD853F */

:root {
  --g88a-primary: #00CED1;
  --g88a-bg: #3A3A3A;
  --g88a-text: #B2DFDB;
  --g88a-accent: #CD853F;
  --g88a-dark: #2a2a2a;
  --g88a-darker: #1e1e1e;
  --g88a-light: #f5f5f5;
  --g88a-white: #ffffff;
  --g88a-border: #4a4a4a;
  --g88a-card-bg: #333333;
  --g88a-gradient: linear-gradient(135deg, #00CED1, #CD853F);
}

*, *::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(--g88a-darker);
  color: var(--g88a-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--g88a-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.g88a-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--g88a-darker);
  border-bottom: 2px solid var(--g88a-primary);
  max-width: 430px; margin: 0 auto;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.g88a-header-logo {
  display: flex; align-items: center; gap: 0.6rem;
}
.g88a-header-logo img { width: 28px; height: 28px; border-radius: 4px; }
.g88a-header-logo span { color: var(--g88a-primary); font-size: 1.6rem; font-weight: 700; }
.g88a-header-actions {
  display: flex; align-items: center; gap: 0.6rem;
}
.g88a-btn-register, .g88a-btn-login {
  padding: 0.5rem 1.2rem; border-radius: 2rem; font-size: 1.2rem; font-weight: 600;
  cursor: pointer; border: none; outline: none;
}
.g88a-btn-register {
  background: var(--g88a-gradient); color: var(--g88a-darker);
}
.g88a-btn-login {
  background: transparent; color: var(--g88a-primary);
  border: 1.5px solid var(--g88a-primary);
}
.g88a-menu-toggle {
  background: none; border: none; color: var(--g88a-primary);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
}

/* === MOBILE MENU === */
.g88a-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--g88a-darker); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto;
  border-left: 2px solid var(--g88a-primary);
}
.g88a-menu-active { right: 0 !important; }
.g88a-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(0,0,0,0.6); z-index: 9998;
  display: none; cursor: pointer;
}
.g88a-overlay-active { display: block !important; }
.g88a-menu-header {
  padding: 1.5rem; border-bottom: 1px solid var(--g88a-border);
  display: flex; justify-content: space-between; align-items: center;
}
.g88a-menu-header span { color: var(--g88a-primary); font-size: 1.6rem; font-weight: 700; }
.g88a-menu-close {
  background: none; border: none; color: var(--g88a-light);
  font-size: 2rem; cursor: pointer;
}
.g88a-menu-nav { padding: 1rem 0; }
.g88a-menu-link {
  display: block; padding: 1rem 1.5rem; color: var(--g88a-light);
  font-size: 1.4rem; border-bottom: 1px solid var(--g88a-border);
  transition: background 0.2s;
}
.g88a-menu-link:hover { background: var(--g88a-card-bg); color: var(--g88a-primary); }

/* === MAIN CONTENT === */
.g88a-main { padding-top: 56px; }
@media (max-width: 768px) {
  .g88a-main { padding-bottom: 72px; }
}

/* === CAROUSEL === */
.g88a-carousel {
  position: relative; width: 100%; overflow: hidden;
  aspect-ratio: 16/7; background: var(--g88a-dark);
}
.g88a-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.g88a-slide-active { opacity: 1 !important; }
.g88a-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

/* === SECTIONS === */
.g88a-section {
  padding: 1.5rem 1.2rem;
}
.g88a-section-title {
  font-size: 1.6rem; font-weight: 700; color: var(--g88a-primary);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g88a-accent);
}
.g88a-section-text {
  font-size: 1.3rem; line-height: 1.8rem; color: var(--g88a-light);
}

/* === GAME GRID === */
.g88a-cat-title {
  font-size: 1.5rem; font-weight: 700; color: var(--g88a-accent);
  margin: 1.5rem 0 1rem; padding-left: 0.5rem;
  border-left: 3px solid var(--g88a-primary);
}
.g88a-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0.5rem 0;
}
.g88a-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
}
.g88a-game-item:hover { transform: scale(1.05); }
.g88a-game-item img {
  width: 100%; aspect-ratio: 1/1; border-radius: 0.8rem;
  border: 2px solid var(--g88a-border); object-fit: cover;
}
.g88a-game-item span {
  display: block; font-size: 1rem; color: var(--g88a-text);
  margin-top: 0.3rem; line-height: 1.3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* === CARDS === */
.g88a-card {
  background: var(--g88a-card-bg); border-radius: 1rem;
  padding: 1.2rem; margin-bottom: 1rem;
  border: 1px solid var(--g88a-border);
}
.g88a-card-title {
  font-size: 1.4rem; font-weight: 700; color: var(--g88a-primary);
  margin-bottom: 0.8rem;
}

/* === PROMO BUTTONS === */
.g88a-promo-btn {
  display: inline-block; padding: 0.8rem 2rem;
  background: var(--g88a-gradient); color: var(--g88a-darker);
  font-size: 1.3rem; font-weight: 700; border-radius: 2.5rem;
  border: none; cursor: pointer; text-align: center;
  transition: opacity 0.2s, transform 0.2s;
}
.g88a-promo-btn:hover { opacity: 0.9; transform: scale(1.03); }
.g88a-promo-link {
  color: var(--g88a-accent); font-weight: 600;
  text-decoration: underline; cursor: pointer;
}
.g88a-promo-link:hover { color: var(--g88a-primary); }

/* === FAQ === */
.g88a-faq-item {
  margin-bottom: 1rem; padding: 1rem;
  background: var(--g88a-card-bg); border-radius: 0.8rem;
  border-left: 3px solid var(--g88a-accent);
}
.g88a-faq-q {
  font-size: 1.3rem; font-weight: 700; color: var(--g88a-primary);
  margin-bottom: 0.4rem;
}
.g88a-faq-a {
  font-size: 1.2rem; color: var(--g88a-light); line-height: 1.6rem;
}

/* === TESTIMONIAL === */
.g88a-testimonial {
  background: var(--g88a-card-bg); border-radius: 1rem;
  padding: 1rem; margin-bottom: 0.8rem; border: 1px solid var(--g88a-border);
}
.g88a-testimonial-name {
  font-size: 1.2rem; font-weight: 700; color: var(--g88a-accent);
}
.g88a-testimonial-text {
  font-size: 1.2rem; color: var(--g88a-light); margin-top: 0.4rem;
}

/* === WINNER SHOWCASE === */
.g88a-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--g88a-border);
  font-size: 1.1rem;
}
.g88a-winner-name { color: var(--g88a-primary); }
.g88a-winner-game { color: var(--g88a-text); }
.g88a-winner-amount { color: var(--g88a-accent); font-weight: 700; }

/* === PAYMENT === */
.g88a-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center; padding: 0.5rem 0;
}
.g88a-payment-item {
  background: var(--g88a-card-bg); border-radius: 0.6rem;
  padding: 0.6rem 1.2rem; font-size: 1.1rem; color: var(--g88a-text);
  border: 1px solid var(--g88a-border);
}

/* === FOOTER === */
.g88a-footer {
  background: var(--g88a-dark); padding: 2rem 1.2rem 1rem;
  border-top: 2px solid var(--g88a-primary);
}
.g88a-footer-brand {
  font-size: 1.2rem; color: var(--g88a-text); line-height: 1.6rem;
  margin-bottom: 1.2rem;
}
.g88a-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center; margin-bottom: 1.2rem;
}
.g88a-footer-link {
  padding: 0.4rem 1rem; background: var(--g88a-card-bg);
  border-radius: 2rem; font-size: 1rem; color: var(--g88a-text);
  border: 1px solid var(--g88a-border); transition: color 0.2s;
}
.g88a-footer-link:hover { color: var(--g88a-primary); }
.g88a-footer-copy {
  text-align: center; font-size: 1rem; color: var(--g88a-text);
  padding-top: 1rem; border-top: 1px solid var(--g88a-border);
}

/* === BOTTOM NAV === */
.g88a-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--g88a-darker); border-top: 2px solid var(--g88a-primary);
  max-width: 430px; margin: 0 auto; height: 60px;
  display: none; align-items: center; justify-content: space-around;
  padding: 0 0.3rem;
}
.g88a-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 60px;
  background: none; border: none; color: var(--g88a-text);
  cursor: pointer; transition: color 0.2s, transform 0.2s;
  gap: 0.2rem;
}
.g88a-bottom-btn:hover, .g88a-bottom-btn:focus { color: var(--g88a-primary); transform: scale(1.1); }
.g88a-bottom-btn .g88a-bnav-icon { font-size: 2.2rem; }
.g88a-bottom-btn .g88a-bnav-text { font-size: 1rem; }
.g88a-bottom-btn.g88a-bnav-active { color: var(--g88a-accent); }

/* === DESKTOP === */
@media (min-width: 769px) {
  .g88a-bottom-nav { display: none !important; }
  .g88a-header { max-width: 430px; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .g88a-bottom-nav { display: flex; }
}

/* === UTILITIES === */
.g88a-text-center { text-align: center; }
.g88a-mb-1 { margin-bottom: 1rem; }
.g88a-mb-2 { margin-bottom: 2rem; }
.g88a-mt-1 { margin-top: 1rem; }
.g88a-hidden { display: none !important; }
.g88a-flex-center {
  display: flex; align-items: center; justify-content: center;
}
.g88a-img-banner {
  width: 100%; border-radius: 0.8rem; margin-bottom: 1rem;
  cursor: pointer;
}

/* === H TAGS === */
h1.g88a-h1 {
  font-size: 2rem; color: var(--g88a-primary); font-weight: 800;
  line-height: 2.4rem; margin-bottom: 1rem;
}
h2.g88a-h2 {
  font-size: 1.7rem; color: var(--g88a-accent); font-weight: 700;
  margin-bottom: 0.8rem; margin-top: 1.5rem;
}
h3.g88a-h3 {
  font-size: 1.4rem; color: var(--g88a-primary); font-weight: 600;
  margin-bottom: 0.6rem; margin-top: 1rem;
}

/* === INTERNAL LINK === */
.g88a-internal-link {
  color: var(--g88a-primary); text-decoration: underline;
  font-weight: 500;
}
.g88a-internal-link:hover { color: var(--g88a-accent); }

/* === RTP BAR === */
.g88a-rtp-bar {
  background: var(--g88a-card-bg); border-radius: 0.6rem;
  padding: 0.6rem 1rem; margin-bottom: 0.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.g88a-rtp-name { font-size: 1.1rem; color: var(--g88a-text); }
.g88a-rtp-val { font-size: 1.2rem; font-weight: 700; color: var(--g88a-accent); }

/* === FEATURES GRID === */
.g88a-feat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
}
.g88a-feat-item {
  background: var(--g88a-card-bg); border-radius: 0.8rem;
  padding: 1rem; text-align: center; border: 1px solid var(--g88a-border);
}
.g88a-feat-icon { font-size: 2.4rem; color: var(--g88a-primary); margin-bottom: 0.5rem; }
.g88a-feat-label { font-size: 1.1rem; color: var(--g88a-text); }

/* === APP CTA === */
.g88a-app-cta {
  background: var(--g88a-gradient); border-radius: 1rem;
  padding: 1.5rem; text-align: center; margin: 1rem 0;
}
.g88a-app-cta-title { font-size: 1.6rem; font-weight: 700; color: var(--g88a-darker); }
.g88a-app-cta-text { font-size: 1.2rem; color: var(--g88a-dark); margin: 0.5rem 0; }

/* === TRICKS LIST === */
.g88a-trick-item {
  display: flex; gap: 0.8rem; margin-bottom: 0.8rem;
  align-items: flex-start;
}
.g88a-trick-num {
  min-width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--g88a-primary); color: var(--g88a-darker);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
}
.g88a-trick-text { font-size: 1.2rem; color: var(--g88a-light); line-height: 1.6rem; }
