/**
 * Super Ace App - Layout Stylesheet
 * Class prefix: pg96-
 * Color palette: #FAFAFA #2C3E50 #8A2BE2 #8B008B #4682B4 #00BFFF
 */

:root {
  --pg96-primary: #8A2BE2;
  --pg96-secondary: #8B008B;
  --pg96-accent: #00BFFF;
  --pg96-dark: #2C3E50;
  --pg96-light: #FAFAFA;
  --pg96-blue: #4682B4;
  --pg96-bg: #1a1028;
  --pg96-card-bg: #251a3a;
  --pg96-card-border: #3d2a5c;
  --pg96-text: #FAFAFA;
  --pg96-text-muted: #b0a0c8;
  --pg96-gradient: linear-gradient(135deg, #8A2BE2 0%, #8B008B 50%, #4682B4 100%);
  --pg96-radius: 1.2rem;
  --pg96-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}

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

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--pg96-bg);
  color: var(--pg96-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* === HEADER === */
.pg96-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1028 0%, #251a3a 100%);
  border-bottom: 1px solid var(--pg96-card-border);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.pg96-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg96-logo {
  width: 32px;
  height: 32px;
  border-radius: 0.6rem;
  object-fit: contain;
}

.pg96-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg96-accent);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

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

.pg96-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
  min-width: 70px;
  text-decoration: none;
}

.pg96-btn-register {
  background: var(--pg96-gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(138, 43, 226, 0.4);
}

.pg96-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(138, 43, 226, 0.6);
}

.pg96-btn-login {
  background: transparent;
  color: var(--pg96-accent);
  border: 1.5px solid var(--pg96-accent);
}

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

.pg96-menu-toggle {
  background: none;
  border: none;
  color: var(--pg96-accent);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === MOBILE MENU === */
.pg96-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: #1e1230;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.pg96-menu-active { right: 0 !important; }

.pg96-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}

.pg96-overlay-active { display: block !important; }

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

.pg96-menu-links {
  list-style: none;
  margin-top: 3rem;
}

.pg96-menu-links li {
  margin-bottom: 0.8rem;
}

.pg96-menu-links a {
  color: var(--pg96-text);
  text-decoration: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.8rem;
  transition: background 0.2s;
}

.pg96-menu-links a:hover {
  background: rgba(138, 43, 226, 0.2);
}

/* === MAIN CONTENT === */
.pg96-main {
  padding-top: 56px;
}

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

.pg96-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === CAROUSEL === */
.pg96-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pg96-radius);
  margin: 1rem;
  box-shadow: var(--pg96-shadow);
}

.pg96-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.pg96-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--pg96-radius);
}

.pg96-slide-active { display: block !important; }

.pg96-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}

.pg96-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pg96-card-border);
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

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

/* === SECTIONS === */
.pg96-section {
  padding: 1.5rem 1rem;
}

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

.pg96-section-title i {
  margin-right: 0.5rem;
}

/* === GAME GRID === */
.pg96-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg96-light);
  margin: 1.2rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.pg96-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.pg96-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  object-fit: cover;
  border: 2px solid var(--pg96-card-border);
  transition: border-color 0.2s;
}

.pg96-game-item:hover img {
  border-color: var(--pg96-primary);
}

.pg96-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--pg96-text-muted);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.pg96-card h3 {
  font-size: 1.5rem;
  color: var(--pg96-accent);
  margin-bottom: 0.8rem;
}

.pg96-card p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--pg96-text-muted);
}

/* === PROMO BUTTONS === */
.pg96-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.2rem;
  background: var(--pg96-gradient);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  margin: 1rem 0;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(138, 43, 226, 0.4);
}

.pg96-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(138, 43, 226, 0.6);
}

/* === PROMO TEXT LINK === */
.pg96-promo-link {
  color: var(--pg96-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--pg96-accent);
  cursor: pointer;
  transition: color 0.2s;
}

.pg96-promo-link:hover {
  color: var(--pg96-primary);
}

/* === CONTENT TEXT === */
.pg96-content p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--pg96-text-muted);
  margin-bottom: 1rem;
}

.pg96-content h2 {
  font-size: 1.7rem;
  color: var(--pg96-accent);
  margin: 1.5rem 0 0.8rem;
}

.pg96-content h3 {
  font-size: 1.5rem;
  color: var(--pg96-light);
  margin: 1.2rem 0 0.6rem;
}

/* === FOOTER === */
.pg96-footer {
  background: #120b1e;
  padding: 2rem 1rem;
  border-top: 1px solid var(--pg96-card-border);
}

.pg96-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pg96-footer-brand p {
  font-size: 1.2rem;
  color: var(--pg96-text-muted);
  line-height: 1.6rem;
}

.pg96-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.pg96-footer-links a {
  color: var(--pg96-accent);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--pg96-card-border);
  border-radius: 0.6rem;
  transition: all 0.2s;
}

.pg96-footer-links a:hover {
  background: rgba(138, 43, 226, 0.2);
  border-color: var(--pg96-primary);
}

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

/* === BOTTOM NAV === */
.pg96-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #251a3a 0%, #1a1028 100%);
  border-top: 1px solid var(--pg96-card-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.pg96-bottom-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(--pg96-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem;
}

.pg96-bottom-nav-btn i,
.pg96-bottom-nav-btn .material-icons-outlined {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg96-bottom-nav-btn span {
  font-size: 10px;
  white-space: nowrap;
}

.pg96-bottom-nav-btn:hover {
  color: var(--pg96-accent);
  transform: scale(1.08);
}

.pg96-nav-active {
  color: var(--pg96-accent) !important;
}

.pg96-nav-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pg96-accent);
  border-radius: 1px;
  margin-top: 2px;
}

/* === UTILITIES === */
.pg96-text-center { text-align: center; }
.pg96-mt-1 { margin-top: 1rem; }
.pg96-mb-1 { margin-bottom: 1rem; }
.pg96-mt-2 { margin-top: 2rem; }
.pg96-hidden { display: none; }

.pg96-badge {
  display: inline-block;
  background: var(--pg96-primary);
  color: #fff;
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  margin-left: 0.4rem;
}

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

.pg96-faq-item h4 {
  font-size: 1.4rem;
  color: var(--pg96-accent);
  margin-bottom: 0.5rem;
}

.pg96-faq-item p {
  font-size: 1.2rem;
  color: var(--pg96-text-muted);
  line-height: 1.6rem;
}

/* === STATS GRID === */
.pg96-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.pg96-stat-card {
  background: var(--pg96-card-bg);
  border: 1px solid var(--pg96-card-border);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.pg96-stat-card .pg96-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg96-accent);
}

.pg96-stat-card .pg96-stat-label {
  font-size: 1.1rem;
  color: var(--pg96-text-muted);
}

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

.pg96-testimonial p {
  font-size: 1.2rem;
  color: var(--pg96-text-muted);
  font-style: italic;
}

.pg96-testimonial cite {
  font-size: 1.1rem;
  color: var(--pg96-accent);
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
}

/* === WINNER SCROLL === */
.pg96-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pg96-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pg96-card-bg);
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  font-size: 1.2rem;
}

.pg96-winner-item .pg96-winner-name {
  color: var(--pg96-accent);
  font-weight: 600;
}

.pg96-winner-item .pg96-winner-amount {
  color: #4ade80;
  font-weight: 700;
}

/* === RESPONSIVE === */
@media (min-width: 769px) {
  .pg96-bottom-nav { display: none; }
  .pg96-menu-toggle { display: none; }
  .pg96-header { max-width: 430px; }
}

@media (max-width: 768px) {
  .pg96-game-grid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
}
