/**
 * PH Scatter - Layout Stylesheet
 * All classes use g944- prefix for namespace isolation
 * Color palette: #FFF176 | #3A3A3A | #EE82EE | #9400D3 | #DEE2E6 | #8470FF
 */

/* CSS Variables */
:root {
  --g944-primary: #9400D3;
  --g944-secondary: #8470FF;
  --g944-accent: #EE82EE;
  --g944-bg: #3A3A3A;
  --g944-bg-dark: #2a2a2a;
  --g944-bg-card: #333333;
  --g944-text: #DEE2E6;
  --g944-text-bright: #FFF176;
  --g944-border: rgba(238, 130, 238, 0.2);
  --g944-radius: 8px;
  --g944-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  font-size: 62.5%;
}

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

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

/* Header */
.g944-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: var(--g944-bg-dark);
  border-bottom: 2px solid var(--g944-primary);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.g944-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.g944-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.g944-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g944-text-bright);
  letter-spacing: 0.5px;
}
.g944-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.g944-btn-register, .g944-btn-login {
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.g944-btn-register {
  background: linear-gradient(135deg, var(--g944-primary), var(--g944-secondary));
  color: #fff;
}
.g944-btn-register:hover { opacity: 0.9; transform: scale(1.03); }
.g944-btn-login {
  background: transparent;
  color: var(--g944-accent);
  border: 1.5px solid var(--g944-accent);
}
.g944-btn-login:hover { background: rgba(238, 130, 238, 0.1); }
.g944-menu-toggle {
  background: none;
  border: none;
  color: var(--g944-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.g944-mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--g944-bg-dark);
  border-bottom: 2px solid var(--g944-primary);
  z-index: 9999;
  padding: 1rem 0;
  animation: g944_slideDown 0.3s ease;
}
@keyframes g944_slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.g944-mobile-menu a {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--g944-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}
.g944-mobile-menu a:hover {
  background: rgba(148, 0, 211, 0.15);
  color: var(--g944-text-bright);
  padding-left: 2.5rem;
}

/* Main Content */
.g944-main {
  padding-top: 56px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .g944-main { padding-bottom: 80px; }
}

/* Carousel */
.g944-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--g944-bg-dark);
}
.g944-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g944-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}
.g944-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.g944-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.g944-dot-active {
  background: var(--g944-text-bright);
  transform: scale(1.2);
}

/* Sections */
.g944-section {
  padding: 2rem 1.2rem;
}
.g944-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g944-text-bright);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--g944-primary);
}
.g944-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g944-accent);
  margin-bottom: 1rem;
}

/* Game Grid */
.g944-category-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--g944-text-bright);
  margin: 1.5rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--g944-primary);
}
.g944-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.g944-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.g944-game-item:hover { transform: translateY(-3px); }
.g944-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g944-radius);
  border: 2px solid transparent;
  transition: border-color 0.2s;
  object-fit: cover;
}
.g944-game-item:hover img { border-color: var(--g944-accent); }
.g944-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--g944-text);
  margin-top: 0.4rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cards */
.g944-card {
  background: var(--g944-bg-card);
  border-radius: var(--g944-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--g944-border);
  transition: border-color 0.2s;
}
.g944-card:hover { border-color: var(--g944-primary); }
.g944-card h3 {
  font-size: 1.6rem;
  color: var(--g944-text-bright);
  margin-bottom: 0.8rem;
}
.g944-card p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g944-text);
}

/* Promo Buttons */
.g944-promo-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--g944-primary), var(--g944-secondary));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
}
.g944-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(148, 0, 211, 0.4);
  color: #fff;
}
.g944-promo-text {
  color: var(--g944-text-bright);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.g944-promo-text:hover { color: var(--g944-accent); }

/* Testimonials */
.g944-testimonial {
  background: var(--g944-bg-card);
  border-radius: var(--g944-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--g944-primary);
}
.g944-testimonial p {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.g944-testimonial cite {
  font-size: 1.2rem;
  color: var(--g944-accent);
  font-style: normal;
}

/* Payment Methods */
.g944-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.g944-payment-item {
  background: var(--g944-bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--g944-radius);
  font-size: 1.3rem;
  color: var(--g944-text);
  border: 1px solid var(--g944-border);
}

/* Winners */
.g944-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.g944-winner-name {
  font-size: 1.3rem;
  color: var(--g944-text);
}
.g944-winner-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g944-text-bright);
}

/* RTP Table */
.g944-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}
.g944-rtp-table th {
  background: var(--g944-primary);
  color: #fff;
  padding: 0.8rem;
  text-align: left;
  font-weight: 600;
}
.g944-rtp-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--g944-text);
}
.g944-rtp-table tr:nth-child(even) td {
  background: rgba(148, 0, 211, 0.05);
}

/* Footer */
.g944-footer {
  background: var(--g944-bg-dark);
  padding: 2rem 1.2rem 1rem;
  border-top: 2px solid var(--g944-primary);
}
.g944-footer-brand {
  font-size: 1.3rem;
  color: var(--g944-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.g944-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.g944-footer-links a {
  padding: 0.6rem 1.2rem;
  background: var(--g944-bg-card);
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--g944-text);
  border: 1px solid var(--g944-border);
  transition: all 0.2s;
}
.g944-footer-links a:hover {
  background: var(--g944-primary);
  color: #fff;
  border-color: var(--g944-primary);
}
.g944-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Bottom Navigation */
.g944-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--g944-bg-dark);
  border-top: 2px solid var(--g944-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.5rem;
}
.g944-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--g944-text);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem;
  border-radius: 8px;
}
.g944-bottom-nav-btn:hover,
.g944-btn-active {
  color: var(--g944-text-bright);
  background: rgba(148, 0, 211, 0.15);
}
.g944-bottom-nav-btn .g944-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.g944-bottom-nav-btn .g944-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Features list */
.g944-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.g944-feature-item {
  background: var(--g944-bg-card);
  border-radius: var(--g944-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--g944-border);
}
.g944-feature-item i, .g944-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--g944-text-bright);
  margin-bottom: 0.5rem;
  display: block;
}
.g944-feature-item h4 {
  font-size: 1.3rem;
  color: var(--g944-text-bright);
  margin-bottom: 0.4rem;
}
.g944-feature-item p {
  font-size: 1.1rem;
  color: var(--g944-text);
  line-height: 1.4;
}

/* FAQ */
.g944-faq-item {
  background: var(--g944-bg-card);
  border-radius: var(--g944-radius);
  margin-bottom: 1rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--g944-border);
}
.g944-faq-item h4 {
  font-size: 1.4rem;
  color: var(--g944-text-bright);
  margin-bottom: 0.5rem;
}
.g944-faq-item p {
  font-size: 1.3rem;
  color: var(--g944-text);
  line-height: 1.5;
}

/* Promo Link Inline */
.g944-inline-link {
  color: var(--g944-text-bright);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* App Download Section */
.g944-app-section {
  background: linear-gradient(135deg, rgba(148, 0, 211, 0.2), rgba(132, 112, 255, 0.2));
  border-radius: var(--g944-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--g944-border);
}
.g944-app-section h3 {
  font-size: 1.8rem;
  color: var(--g944-text-bright);
  margin-bottom: 1rem;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .g944-bottom-nav { display: none; }
}

/* Utility */
.g944-text-center { text-align: center; }
.g944-mt-1 { margin-top: 1rem; }
.g944-mt-2 { margin-top: 2rem; }
.g944-mb-1 { margin-bottom: 1rem; }
.g944-mb-2 { margin-bottom: 2rem; }
.g944-py-1 { padding-top: 1rem; padding-bottom: 1rem; }
