/* Shooter Game - Core Stylesheet */
/* All classes use ui54- prefix for namespace isolation */
/* Color Palette: #2C3E50 (dark bg), #F0F0F0 (light text), #BA55D3 (accent) */

:root {
  --ui54-primary: #BA55D3;
  --ui54-primary-dark: #9370DB;
  --ui54-primary-light: #DDA0DD;
  --ui54-bg: #2C3E50;
  --ui54-bg-dark: #1a252f;
  --ui54-bg-card: #34495e;
  --ui54-text: #F0F0F0;
  --ui54-text-muted: #bdc3c7;
  --ui54-text-dark: #7f8c8d;
  --ui54-border: #4a6278;
  --ui54-accent: #E74C3C;
  --ui54-success: #2ECC71;
  --ui54-gold: #F1C40F;
  --ui54-gradient: linear-gradient(135deg, #BA55D3 0%, #9370DB 50%, #6A0DAD 100%);
}

/* Reset and base */
*, *::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: var(--ui54-bg);
  color: var(--ui54-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* === HEADER === */
.ui54-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  background: var(--ui54-bg-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 2px solid var(--ui54-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.ui54-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.ui54-logo-wrap img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.ui54-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ui54-text);
  letter-spacing: 0.5px;
}

.ui54-logo-text span {
  color: var(--ui54-primary);
}

.ui54-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ui54-btn-register, .ui54-btn-login {
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.ui54-btn-register {
  background: var(--ui54-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(186,85,211,0.4);
}

.ui54-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(186,85,211,0.6);
}

.ui54-btn-login {
  background: transparent;
  color: var(--ui54-text);
  border: 1.5px solid var(--ui54-primary);
}

.ui54-btn-login:hover {
  background: var(--ui54-primary);
  color: #fff;
}

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

/* === MOBILE MENU === */
.ui54-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.ui54-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: var(--ui54-bg-dark);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

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

.ui54-menu-links {
  list-style: none;
}

.ui54-menu-links li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ui54-menu-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.5rem;
  color: var(--ui54-text);
  font-size: 1.4rem;
  transition: all 0.2s;
}

.ui54-menu-links a:hover {
  color: var(--ui54-primary);
  padding-left: 1rem;
  background: rgba(186,85,211,0.08);
}

.ui54-menu-links a i, .ui54-menu-links a .material-icons {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

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

/* === CAROUSEL === */
.ui54-carousel {
  position: relative;
  overflow: hidden;
  background: var(--ui54-bg-dark);
}

.ui54-slide {
  display: none;
  cursor: pointer;
}

.ui54-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

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

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

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

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

.ui54-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ui54-text);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ui54-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ui54-section-title i, .ui54-section-title .material-icons {
  color: var(--ui54-primary);
  font-size: 2rem;
}

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

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

.ui54-game-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ui54-bg-card);
  padding: 0.5rem;
}

.ui54-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(186,85,211,0.3);
}

.ui54-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

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

/* === PROMO BUTTONS & LINKS === */
.ui54-promo-btn {
  display: inline-block;
  background: var(--ui54-gradient);
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: 25px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(186,85,211,0.35);
}

.ui54-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(186,85,211,0.5);
}

.ui54-promo-text {
  color: var(--ui54-primary);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--ui54-primary);
  transition: color 0.2s;
}

.ui54-promo-text:hover {
  color: var(--ui54-primary-light);
}

/* === INFO CARDS === */
.ui54-card {
  background: var(--ui54-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--ui54-border);
  transition: border-color 0.3s;
}

.ui54-card:hover {
  border-color: var(--ui54-primary);
}

.ui54-card h3 {
  font-size: 1.5rem;
  color: var(--ui54-primary-light);
  margin-bottom: 0.8rem;
}

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

/* === FAQ === */
.ui54-faq-item {
  background: var(--ui54-bg-card);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--ui54-primary);
}

.ui54-faq-q {
  font-weight: 700;
  color: var(--ui54-primary-light);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.ui54-faq-a {
  color: var(--ui54-text-muted);
  font-size: 1.2rem;
  line-height: 1.5rem;
}

/* === WINNERS TABLE === */
.ui54-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--ui54-bg-card);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.ui54-winner-name { color: var(--ui54-gold); font-weight: 700; }
.ui54-winner-game { color: var(--ui54-text-muted); }
.ui54-winner-amount { color: var(--ui54-success); font-weight: 700; }

/* === TESTIMONIALS === */
.ui54-testimonial {
  background: var(--ui54-bg-card);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--ui54-border);
}

.ui54-testimonial-user {
  font-weight: 700;
  color: var(--ui54-primary);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.ui54-testimonial-text {
  color: var(--ui54-text-muted);
  font-size: 1.2rem;
  line-height: 1.5rem;
}

.ui54-testimonial-stars {
  color: var(--ui54-gold);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

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

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

/* === FEATURES LIST === */
.ui54-feature-list {
  list-style: none;
}

.ui54-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ui54-feature-list li:last-child { border-bottom: none; }

.ui54-feature-list li i {
  color: var(--ui54-primary);
  font-size: 1.6rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.ui54-feature-list li span {
  color: var(--ui54-text-muted);
  font-size: 1.3rem;
  line-height: 1.5rem;
}

/* === CTA BANNER === */
.ui54-cta-banner {
  background: var(--ui54-gradient);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.ui54-cta-banner h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.ui54-cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

/* === FOOTER === */
.ui54-footer {
  background: var(--ui54-bg-dark);
  padding: 2rem 1.2rem 1.5rem;
  border-top: 2px solid var(--ui54-primary);
}

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

.ui54-footer-brand p {
  color: var(--ui54-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
  max-width: 320px;
  margin: 0 auto;
}

.ui54-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.ui54-footer-links a {
  background: var(--ui54-bg-card);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 1.1rem;
  color: var(--ui54-text-muted);
  border: 1px solid var(--ui54-border);
  transition: all 0.2s;
}

.ui54-footer-links a:hover {
  color: var(--ui54-primary);
  border-color: var(--ui54-primary);
}

.ui54-footer-promos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.ui54-footer-copy {
  text-align: center;
  color: var(--ui54-text-dark);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* === BOTTOM NAV === */
.ui54-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: var(--ui54-bg-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--ui54-primary);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}

.ui54-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--ui54-text-muted);
  cursor: pointer;
  transition: all 0.25s;
  padding: 0.4rem;
  border-radius: 8px;
  position: relative;
}

.ui54-bnav-btn:hover, .ui54-bnav-active {
  color: var(--ui54-primary);
  background: rgba(186,85,211,0.1);
}

.ui54-bnav-btn i, .ui54-bnav-btn .material-icons, .ui54-bnav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.ui54-bnav-label {
  font-size: 1rem;
  font-weight: 600;
}

.ui54-bnav-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--ui54-primary);
  border-radius: 2px;
}

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

/* === REVEAL ANIMATION === */
.ui54-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ui54-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === DESKTOP: hide bottom nav === */
@media (min-width: 769px) {
  .ui54-bnav { display: none; }
}

/* === MOBILE: add bottom padding === */
@media (max-width: 768px) {
  .ui54-main { padding-bottom: 80px; }
  .ui54-footer { padding-bottom: 80px; }
}
