/* ============================================
   ba99.click - Core Stylesheet
   All classes use pg86- prefix
   Color palette: #141414 (bg) | #FFFACD (text)
   ============================================ */

/* CSS Variables */
:root {
  --pg86-bg: #141414;
  --pg86-bg-alt: #1e1e1e;
  --pg86-bg-card: #252525;
  --pg86-bg-hover: #2e2e2e;
  --pg86-text: #FFFACD;
  --pg86-text-dim: #c8c89a;
  --pg86-text-muted: #8a8a6e;
  --pg86-accent: #FFD700;
  --pg86-accent-alt: #FFA500;
  --pg86-accent-red: #e74c3c;
  --pg86-accent-green: #27ae60;
  --pg86-border: #333333;
  --pg86-shadow: rgba(255, 215, 0, 0.15);
  --pg86-radius: 8px;
  --pg86-radius-lg: 16px;
  --pg86-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--pg86-font);
  background-color: var(--pg86-bg);
  color: var(--pg86-text);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--pg86-accent); text-decoration: none; }
a:hover { color: var(--pg86-accent-alt); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

.pg86-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.pg86-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg86-accent);
  letter-spacing: 0.5px;
}

.pg86-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg86-btn-register {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #141414;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pg86-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px var(--pg86-shadow);
}

.pg86-btn-login {
  background: transparent;
  color: var(--pg86-accent);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--pg86-accent);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pg86-btn-login:hover {
  background: rgba(255, 215, 0, 0.1);
}

.pg86-menu-btn {
  background: none;
  border: none;
  color: var(--pg86-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ============ MOBILE MENU ============ */
.pg86-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pg86-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pg86-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #1a1a1a;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

.pg86-menu-active {
  right: 0;
}

.pg86-menu-close {
  background: none;
  border: none;
  color: var(--pg86-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.pg86-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg86-accent);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pg86-border);
}

.pg86-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--pg86-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}

.pg86-menu-link:hover {
  color: var(--pg86-accent);
}

/* ============ MAIN CONTENT ============ */
.pg86-main {
  padding-top: 56px;
  min-height: 100vh;
}

/* ============ CAROUSEL ============ */
.pg86-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.pg86-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.pg86-slide-active {
  opacity: 1;
}

.pg86-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg86-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.pg86-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.pg86-dot-active {
  background: var(--pg86-accent);
  width: 20px;
  border-radius: 4px;
}

/* ============ SECTIONS ============ */
.pg86-section {
  padding: 2rem 1.2rem;
}

.pg86-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg86-accent);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg86-section-title .material-icons {
  font-size: 2.2rem;
}

.pg86-section-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--pg86-text-dim);
  margin-bottom: 1rem;
}

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

.pg86-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.pg86-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--pg86-radius);
  padding: 0.4rem;
}

.pg86-game-item:hover {
  transform: scale(1.05);
}

.pg86-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg86-radius);
  margin-bottom: 0.3rem;
  object-fit: cover;
}

.pg86-game-name {
  font-size: 1.05rem;
  color: var(--pg86-text-dim);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.pg86-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg86-accent);
  margin-bottom: 0.8rem;
}

.pg86-card-text {
  font-size: 1.35rem;
  color: var(--pg86-text-dim);
  line-height: 1.6;
}

/* ============ CTA BUTTONS ============ */
.pg86-cta {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #141414;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 1rem 2.4rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
}

.pg86-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--pg86-shadow);
}

.pg86-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--pg86-accent);
  font-weight: 600;
  font-size: 1.4rem;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  border: 2px solid var(--pg86-accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg86-cta-outline:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* ============ PROMO LINK ============ */
.pg86-promo-link {
  color: var(--pg86-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.pg86-promo-link:hover {
  color: var(--pg86-accent-alt);
}

/* ============ TESTIMONIALS ============ */
.pg86-testimonial {
  background: var(--pg86-bg-card);
  border-radius: var(--pg86-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg86-accent);
}

.pg86-testimonial-user {
  font-weight: 700;
  color: var(--pg86-accent);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.pg86-testimonial-text {
  font-size: 1.3rem;
  color: var(--pg86-text-dim);
  line-height: 1.5;
}

/* ============ WINNERS ============ */
.pg86-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--pg86-bg-card);
  border-radius: var(--pg86-radius);
  margin-bottom: 0.5rem;
}

.pg86-winner-name {
  font-weight: 600;
  color: var(--pg86-accent);
  font-size: 1.3rem;
}

.pg86-winner-amount {
  font-weight: 700;
  color: var(--pg86-accent-alt);
  font-size: 1.4rem;
}

/* ============ PAYMENT ============ */
.pg86-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.pg86-payment-item {
  background: var(--pg86-bg-card);
  border-radius: var(--pg86-radius);
  padding: 0.8rem 1.4rem;
  font-size: 1.2rem;
  color: var(--pg86-text-dim);
  border: 1px solid var(--pg86-border);
}

/* ============ FOOTER ============ */
.pg86-footer {
  background: #0d0d0d;
  padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--pg86-border);
}

.pg86-footer-brand {
  font-size: 1.3rem;
  color: var(--pg86-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pg86-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pg86-footer-link {
  background: var(--pg86-bg-card);
  color: var(--pg86-text);
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--pg86-border);
  cursor: pointer;
  transition: all 0.2s;
}

.pg86-footer-link:hover {
  border-color: var(--pg86-accent);
  color: var(--pg86-accent);
}

.pg86-footer-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--pg86-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--pg86-border);
}

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

.pg86-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(--pg86-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.4rem;
  border-radius: 12px;
  position: relative;
}

.pg86-nav-btn:hover,
.pg86-nav-btn.pg86-nav-active {
  color: var(--pg86-accent);
}

.pg86-nav-btn:active {
  transform: scale(0.9);
}

.pg86-nav-btn i,
.pg86-nav-btn .material-icons {
  font-size: 2.2rem;
}

.pg86-nav-label {
  font-size: 1rem;
  margin-top: 0.2rem;
  font-weight: 500;
}

.pg86-nav-btn.pg86-nav-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--pg86-accent);
  border-radius: 0 0 3px 3px;
}

/* ============ FAQ ============ */
.pg86-faq-item {
  background: var(--pg86-bg-card);
  border-radius: var(--pg86-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--pg86-border);
}

.pg86-faq-q {
  padding: 1.2rem;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--pg86-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg86-faq-a {
  padding: 0 1.2rem 1.2rem;
  font-size: 1.3rem;
  color: var(--pg86-text-dim);
  line-height: 1.5;
}

/* ============ REVIEW STARS ============ */
.pg86-stars {
  color: var(--pg86-accent);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

/* ============ RTP BAR ============ */
.pg86-rtp-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.pg86-rtp-label {
  font-size: 1.2rem;
  color: var(--pg86-text-dim);
  min-width: 80px;
}

.pg86-rtp-track {
  flex: 1;
  height: 8px;
  background: var(--pg86-bg-hover);
  border-radius: 4px;
  overflow: hidden;
}

.pg86-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pg86-accent), var(--pg86-accent-alt));
  border-radius: 4px;
}

.pg86-rtp-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pg86-accent);
  min-width: 40px;
  text-align: right;
}

/* ============ RESPONSIVE ============ */
@media (min-width: 769px) {
  .pg86-bottom-nav {
    display: none;
  }
}

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

/* ============ UTILITY ============ */
.pg86-text-center { text-align: center; }
.pg86-text-accent { color: var(--pg86-accent); }
.pg86-mb-1 { margin-bottom: 0.8rem; }
.pg86-mb-2 { margin-bottom: 1.6rem; }
.pg86-mt-1 { margin-top: 0.8rem; }
.pg86-mt-2 { margin-top: 1.6rem; }
.pg86-flex-center { display: flex; justify-content: center; align-items: center; }
.pg86-gap-1 { gap: 0.8rem; }
