/**
 * 999bt - Main Stylesheet
 * All classes use pg91- prefix for namespace isolation
 * Color palette: #004D40 | #C9C9FF | #FF5722 | #FFFFFF | #2C3E50 | #00695C
 * Mobile-first design, max-width 430px
 */

:root {
  --pg91-primary: #004D40;
  --pg91-secondary: #00695C;
  --pg91-accent: #FF5722;
  --pg91-light: #C9C9FF;
  --pg91-white: #FFFFFF;
  --pg91-dark: #2C3E50;
  --pg91-bg: #004D40;
  --pg91-text: #FFFFFF;
  --pg91-card-bg: #00332E;
  --pg91-border: #00695C;
  --pg91-hover: #FF7043;
  --pg91-gold: #FFD700;
  --pg91-radius: 8px;
  --pg91-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Base reset */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  color: var(--pg91-text);
  background: var(--pg91-bg);
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Header */
.pg91-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg91-primary), var(--pg91-secondary));
  border-bottom: 2px solid var(--pg91-accent);
  max-width: 430px;
  margin: 0 auto;
}
.pg91-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  height: 52px;
}
.pg91-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.pg91-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.pg91-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pg91-gold);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.pg91-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg91-btn-register {
  background: var(--pg91-accent);
  color: var(--pg91-white);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 34px;
}
.pg91-btn-register:hover {
  background: var(--pg91-hover);
  transform: scale(1.05);
}
.pg91-btn-login {
  background: transparent;
  color: var(--pg91-light);
  border: 1.5px solid var(--pg91-light);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 34px;
}
.pg91-btn-login:hover {
  background: rgba(201,201,255,0.15);
}
.pg91-menu-toggle {
  background: none;
  border: none;
  color: var(--pg91-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile menu */
.pg91-mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  background: var(--pg91-card-bg);
  border-bottom: 2px solid var(--pg91-border);
}
.pg91-mobile-menu-active {
  max-height: 400px;
  opacity: 1;
}
.pg91-mobile-menu ul {
  list-style: none;
  padding: 0.5rem 0;
}
.pg91-mobile-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pg91-mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--pg91-white);
  text-decoration: none;
  font-size: 1.3rem;
  transition: background 0.2s;
}
.pg91-mobile-menu a:hover {
  background: rgba(255,87,34,0.2);
}

/* Main content */
.pg91-main {
  padding-top: 56px;
  padding-bottom: 1rem;
}

/* Slider / Carousel */
.pg91-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--pg91-radius) var(--pg91-radius);
}
.pg91-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.pg91-slide-active {
  display: block;
}
.pg91-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.pg91-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.pg91-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
}
.pg91-slider-dot.pg91-dot-active {
  background: var(--pg91-accent);
}

/* Section titles */
.pg91-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg91-gold);
  margin: 1.5rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--pg91-accent);
}

/* Game grid */
.pg91-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}
.pg91-game-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--pg91-card-bg);
  border-radius: var(--pg91-radius);
  padding: 0.6rem 0.3rem;
}
.pg91-game-card:hover {
  transform: translateY(-2px);
}
.pg91-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}
.pg91-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--pg91-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Category label */
.pg91-cat-label {
  display: inline-block;
  background: var(--pg91-secondary);
  color: var(--pg91-gold);
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.2rem 0 0.6rem;
}

/* Content sections */
.pg91-content-block {
  background: var(--pg91-card-bg);
  border-radius: var(--pg91-radius);
  padding: 1.2rem;
  margin: 0.8rem 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.pg91-content-block h2 {
  font-size: 1.5rem;
  color: var(--pg91-gold);
  margin-bottom: 0.6rem;
}
.pg91-content-block h3 {
  font-size: 1.3rem;
  color: var(--pg91-light);
  margin: 0.8rem 0 0.4rem;
}
.pg91-content-block p {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--pg91-white);
  margin-bottom: 0.6rem;
}
.pg91-content-block ul {
  padding-left: 1.5rem;
  margin: 0.4rem 0;
}
.pg91-content-block li {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--pg91-white);
  margin-bottom: 0.3rem;
}

/* Promo link text */
.pg91-promo-text {
  color: var(--pg91-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.pg91-promo-text:hover {
  color: var(--pg91-hover);
}

/* Buttons */
.pg91-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg91-accent), #E64A19);
  color: var(--pg91-white);
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 3px 10px rgba(255,87,34,0.4);
}
.pg91-btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,87,34,0.5);
}

/* CTA area */
.pg91-cta-area {
  text-align: center;
  padding: 1.5rem 0;
  margin: 1rem 0;
  background: linear-gradient(135deg, var(--pg91-card-bg), rgba(255,87,34,0.15));
  border-radius: var(--pg91-radius);
  border: 1px solid rgba(255,87,34,0.3);
}

/* Stats grid */
.pg91-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 0.8rem 0;
}
.pg91-stat-card {
  background: linear-gradient(135deg, var(--pg91-secondary), var(--pg91-primary));
  border-radius: var(--pg91-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--pg91-border);
}
.pg91-stat-card .pg91-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg91-gold);
}
.pg91-stat-card .pg91-stat-label {
  font-size: 1.1rem;
  color: var(--pg91-light);
  margin-top: 0.3rem;
}

/* Testimonial */
.pg91-testimonial {
  background: var(--pg91-card-bg);
  border-radius: var(--pg91-radius);
  padding: 1rem 1.2rem;
  margin: 0.6rem 0;
  border-left: 3px solid var(--pg91-accent);
}
.pg91-testimonial p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--pg91-white);
  font-style: italic;
}
.pg91-testimonial .pg91-testi-author {
  font-size: 1.1rem;
  color: var(--pg91-gold);
  margin-top: 0.4rem;
  font-style: normal;
}

/* Payment methods */
.pg91-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.pg91-payment-item {
  background: var(--pg91-secondary);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 1.1rem;
  color: var(--pg91-white);
  border: 1px solid var(--pg91-border);
}

/* Footer */
.pg91-footer {
  background: var(--pg91-dark);
  padding: 1.5rem 1rem;
  margin-top: 1.5rem;
  border-top: 2px solid var(--pg91-accent);
}
.pg91-footer-brand {
  font-size: 1.2rem;
  color: var(--pg91-light);
  line-height: 1.8rem;
  margin-bottom: 1rem;
}
.pg91-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.pg91-footer-links a {
  color: var(--pg91-accent);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255,87,34,0.1);
  border-radius: 4px;
  transition: background 0.2s;
}
.pg91-footer-links a:hover {
  background: rgba(255,87,34,0.25);
}
.pg91-footer-copy {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.8rem;
  text-align: center;
}

/* Bottom nav - mobile only */
.pg91-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pg91-primary), #00261F);
  border-top: 2px solid var(--pg91-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0.3rem;
}
.pg91-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--pg91-light);
  font-size: 1rem;
  cursor: pointer;
  min-width: 58px;
  min-height: 56px;
  transition: all 0.2s;
  padding: 0.3rem;
}
.pg91-bottom-nav button:hover,
.pg91-bottom-nav button.pg91-nav-active {
  color: var(--pg91-accent);
  transform: scale(1.08);
}
.pg91-bottom-nav button .pg91-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.1rem;
}

/* Winner showcase */
.pg91-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pg91-winner-item:last-child {
  border-bottom: none;
}
.pg91-winner-name {
  font-size: 1.2rem;
  color: var(--pg91-white);
}
.pg91-winner-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pg91-gold);
}

/* Responsive: hide bottom nav on desktop */
@media (min-width: 769px) {
  .pg91-bottom-nav {
    display: none;
  }
}
/* Mobile bottom padding */
@media (max-width: 768px) {
  .pg91-main {
    padding-bottom: 76px;
  }
}

/* App download CTA */
.pg91-app-cta {
  background: linear-gradient(135deg, rgba(255,87,34,0.2), rgba(0,105,92,0.3));
  border: 1px solid var(--pg91-accent);
  border-radius: var(--pg91-radius);
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 0;
}
.pg91-app-cta h3 {
  color: var(--pg91-gold);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.pg91-app-cta p {
  font-size: 1.2rem;
  color: var(--pg91-white);
  margin-bottom: 0.8rem;
}

/* Winner animation */
@keyframes pg91-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.pg91-live-badge {
  display: inline-block;
  background: #E53935;
  color: white;
  font-size: 1rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  animation: pg91-pulse 2s infinite;
}

/* FAQ section */
.pg91-faq-item {
  margin: 0.6rem 0;
  padding: 0.8rem;
  background: rgba(0,77,64,0.5);
  border-radius: 6px;
  border-left: 3px solid var(--pg91-accent);
}
.pg91-faq-item strong {
  display: block;
  color: var(--pg91-gold);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.pg91-faq-item p {
  color: var(--pg91-white);
  font-size: 1.2rem;
  line-height: 1.7rem;
}

/* Utility classes */
.pg91-text-center { text-align: center; }
.pg91-mt-1 { margin-top: 0.8rem; }
.pg91-mt-2 { margin-top: 1.6rem; }
.pg91-mb-1 { margin-bottom: 0.8rem; }
.pg91-hidden { display: none; }
