/**
 * 47777 pet - Theme Stylesheet
 * All classes use g243- prefix for namespace isolation
 * Color palette: #FFFFFF, #A0522D, #333333, #BA55D3, #FFF8DC, #B22222
 * @version 1.0.0
 */

/* ===== CSS Variables ===== */
:root {
  --g243-primary: #B22222;
  --g243-secondary: #A0522D;
  --g243-accent: #BA55D3;
  --g243-bg: #333333;
  --g243-bg-dark: #1a1a1a;
  --g243-bg-card: #2a2a2a;
  --g243-text: #FFFFFF;
  --g243-text-light: #FFF8DC;
  --g243-text-muted: #b0b0b0;
  --g243-border: #444444;
  --g243-success: #4CAF50;
  --g243-warning: #FF9800;
  --g243-radius: 8px;
  --g243-radius-lg: 12px;
  --g243-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --g243-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--g243-bg);
  color: var(--g243-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Container ===== */
.g243-container { max-width: 430px; margin: 0 auto; padding: 0 1rem; }
.g243-wrapper { width: 100%; padding: 1rem 0; }

/* ===== Header ===== */
.g243-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--g243-bg-dark), var(--g243-bg));
  border-bottom: 2px solid var(--g243-primary);
  height: 56px;
}
.g243-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.g243-logo-area { display: flex; align-items: center; gap: 8px; }
.g243-logo-img { width: 28px; height: 28px; border-radius: 4px; }
.g243-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--g243-text-light); white-space: nowrap; }
.g243-header-actions { display: flex; align-items: center; gap: 8px; }
.g243-btn-register, .g243-btn-login {
  padding: 6px 14px; border: none; border-radius: var(--g243-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: var(--g243-transition); white-space: nowrap;
}
.g243-btn-register {
  background: linear-gradient(135deg, var(--g243-primary), #d63031);
  color: var(--g243-text);
}
.g243-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(178,34,34,0.5); }
.g243-btn-login {
  background: transparent; color: var(--g243-text-light);
  border: 1px solid var(--g243-accent);
}
.g243-btn-login:hover { background: var(--g243-accent); color: #fff; }
.g243-menu-toggle {
  background: none; border: none; color: var(--g243-text-light);
  font-size: 2rem; cursor: pointer; padding: 4px; display: flex; align-items: center;
}

/* ===== Mobile Menu ===== */
.g243-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: var(--g243-transition);
}
.g243-overlay-active { opacity: 1; visibility: visible; }
.g243-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--g243-bg-dark); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto;
  border-left: 2px solid var(--g243-primary);
}
.g243-menu-active { right: 0; }
.g243-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem; border-bottom: 1px solid var(--g243-border);
}
.g243-menu-title { font-size: 1.6rem; font-weight: 700; color: var(--g243-text-light); }
.g243-menu-close { background: none; border: none; color: var(--g243-text); font-size: 2rem; cursor: pointer; }
.g243-menu-links { padding: 1rem 0; }
.g243-menu-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; color: var(--g243-text-light);
  font-size: 1.3rem; transition: var(--g243-transition); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.g243-menu-link:hover { background: rgba(186,85,211,0.15); color: var(--g243-accent); }
.g243-menu-link i, .g243-menu-link .material-icons { font-size: 2rem; width: 24px; text-align: center; }

/* ===== Main Content ===== */
.g243-main { padding-top: 56px; }

/* ===== Carousel / Slider ===== */
.g243-slider {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--g243-radius); margin-bottom: 1.5rem;
  aspect-ratio: 16/7;
}
.g243-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.8s ease;
}
.g243-slide img { width: 100%; height: 100%; object-fit: cover; }
.g243-slide-active { opacity: 1; }

/* ===== Section Titles ===== */
.g243-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--g243-text-light);
  margin: 2rem 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g243-primary);
}
.g243-section-title i { margin-right: 0.5rem; color: var(--g243-accent); }

/* ===== Category Label ===== */
.g243-cat-label {
  font-size: 1.6rem; font-weight: 700; color: var(--g243-accent);
  margin: 1.5rem 0 0.8rem; padding-left: 0.8rem;
  border-left: 3px solid var(--g243-primary);
}

/* ===== Game Grid ===== */
.g243-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 1rem;
}
.g243-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--g243-transition);
  border-radius: var(--g243-radius); padding: 4px;
}
.g243-game-item:hover { transform: translateY(-2px); background: rgba(186,85,211,0.1); }
.g243-game-img {
  width: 100%; aspect-ratio: 1; border-radius: var(--g243-radius);
  object-fit: cover; border: 2px solid var(--g243-border);
  transition: var(--g243-transition);
}
.g243-game-item:hover .g243-game-img { border-color: var(--g243-accent); }
.g243-game-name {
  font-size: 1rem; color: var(--g243-text-muted); text-align: center;
  margin-top: 4px; line-height: 1.2rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; width: 100%;
}

/* ===== Cards ===== */
.g243-card {
  background: var(--g243-bg-card); border-radius: var(--g243-radius-lg);
  padding: 1.5rem; margin-bottom: 1.2rem;
  border: 1px solid var(--g243-border); box-shadow: var(--g243-shadow);
}
.g243-card-title {
  font-size: 1.6rem; font-weight: 700; color: var(--g243-text-light);
  margin-bottom: 0.8rem;
}

/* ===== Buttons ===== */
.g243-btn-promo {
  display: inline-block; padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--g243-primary), #d63031);
  color: var(--g243-text); font-weight: 700; font-size: 1.4rem;
  border: none; border-radius: var(--g243-radius-lg); cursor: pointer;
  transition: var(--g243-transition); text-align: center;
  box-shadow: 0 4px 15px rgba(178,34,34,0.4);
}
.g243-btn-promo:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(178,34,34,0.6); }
.g243-btn-secondary {
  display: inline-block; padding: 0.8rem 1.6rem;
  background: linear-gradient(135deg, var(--g243-accent), #9b59b6);
  color: #fff; font-weight: 600; font-size: 1.3rem;
  border: none; border-radius: var(--g243-radius); cursor: pointer;
  transition: var(--g243-transition);
}
.g243-btn-secondary:hover { transform: scale(1.05); }

/* ===== Text Content ===== */
.g243-text-content p { margin-bottom: 1rem; color: var(--g243-text-muted); line-height: 1.8rem; }
.g243-text-content strong { color: var(--g243-text-light); }
.g243-highlight { color: var(--g243-accent); font-weight: 600; }
.g243-promo-text { color: var(--g243-primary); font-weight: 700; cursor: pointer; }
.g243-promo-text:hover { text-decoration: underline; }

/* ===== Info List ===== */
.g243-info-list { padding: 0; }
.g243-info-list li {
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--g243-text-muted); font-size: 1.3rem;
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.g243-info-list li i { color: var(--g243-accent); margin-top: 3px; flex-shrink: 0; }

/* ===== Footer ===== */
.g243-footer {
  background: var(--g243-bg-dark); padding: 2rem 1rem 1rem;
  border-top: 2px solid var(--g243-primary); text-align: center;
}
.g243-footer-brand { color: var(--g243-text-muted); font-size: 1.2rem; margin-bottom: 1rem; line-height: 1.6rem; }
.g243-footer-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1rem; }
.g243-footer-link {
  padding: 6px 12px; background: var(--g243-bg-card); border-radius: var(--g243-radius);
  color: var(--g243-text-light); font-size: 1.1rem; transition: var(--g243-transition);
  border: 1px solid var(--g243-border);
}
.g243-footer-link:hover { border-color: var(--g243-accent); color: var(--g243-accent); }
.g243-footer-copy { color: var(--g243-text-muted); font-size: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--g243-border); }

/* ===== Bottom Navigation ===== */
.g243-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--g243-bg-dark), #0d0d0d);
  border-top: 2px solid var(--g243-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 4px;
}
.g243-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--g243-text-muted); cursor: pointer; transition: var(--g243-transition);
  padding: 4px 0; position: relative;
}
.g243-bottom-nav-btn i,
.g243-bottom-nav-btn .material-icons,
.g243-bottom-nav-btn ion-icon { font-size: 22px; margin-bottom: 2px; }
.g243-bottom-nav-btn span { font-size: 1rem; white-space: nowrap; }
.g243-bottom-nav-btn:hover, .g243-bottom-nav-btn:active { color: var(--g243-accent); transform: scale(1.1); }
.g243-bottom-nav-btn.g243-nav-current { color: var(--g243-primary); }
.g243-bottom-nav-btn.g243-nav-current::after {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--g243-primary); border-radius: 2px;
}

/* ===== Testimonials ===== */
.g243-testimonial {
  background: var(--g243-bg-card); border-radius: var(--g243-radius);
  padding: 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--g243-accent);
}
.g243-testimonial-name { font-weight: 700; color: var(--g243-text-light); font-size: 1.3rem; }
.g243-testimonial-text { color: var(--g243-text-muted); font-size: 1.2rem; margin-top: 0.5rem; }
.g243-testimonial-stars { color: #FFD700; margin: 0.3rem 0; }

/* ===== Payment Icons ===== */
.g243-payment-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; }
.g243-payment-item {
  background: var(--g243-bg-card); padding: 0.8rem 1.2rem;
  border-radius: var(--g243-radius); font-size: 1.2rem;
  color: var(--g243-text-light); border: 1px solid var(--g243-border);
}

/* ===== Winners ===== */
.g243-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.g243-winner-name { color: var(--g243-text-light); font-weight: 600; font-size: 1.2rem; }
.g243-winner-game { color: var(--g243-text-muted); font-size: 1.1rem; }
.g243-winner-amount { color: var(--g243-success); font-weight: 700; font-size: 1.3rem; }

/* ===== RTP Table ===== */
.g243-rtp-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.g243-rtp-table th {
  background: var(--g243-primary); color: var(--g243-text);
  padding: 0.8rem; font-size: 1.2rem; text-align: left;
}
.g243-rtp-table td {
  padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--g243-border);
  color: var(--g243-text-muted); font-size: 1.2rem;
}
.g243-rtp-table tr:hover td { background: rgba(186,85,211,0.1); }

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

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .g243-bottom-nav { display: none; }
  .g243-header { position: relative; }
  .g243-main { padding-top: 0; }
  .g243-container { max-width: 430px; }
}
@media (max-width: 768px) {
  .g243-main { padding-bottom: 80px; }
  .g243-game-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}
@media (max-width: 360px) {
  .g243-game-grid { grid-template-columns: repeat(3, 1fr); }
  .g243-logo-text { font-size: 1.3rem; }
}
