/**
 * nustae.click - Core Stylesheet
 * All classes use gb9d- prefix for namespace isolation
 * Color palette: #262626 (bg) | #AFEEEE (primary) | #FFF176 (accent) | #C0C0C0 (secondary text)
 */

:root {
  --gb9d-bg: #262626;
  --gb9d-bg-light: #2e2e2e;
  --gb9d-bg-card: #333333;
  --gb9d-primary: #AFEEEE;
  --gb9d-accent: #FFF176;
  --gb9d-text: #C0C0C0;
  --gb9d-text-light: #E8E8E8;
  --gb9d-text-dark: #999999;
  --gb9d-border: #444444;
  --gb9d-success: #66BB6A;
  --gb9d-danger: #EF5350;
  --gb9d-radius: 8px;
  --gb9d-radius-lg: 12px;
  --gb9d-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  background-color: var(--gb9d-bg);
  color: var(--gb9d-text);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ===== HEADER ===== */
.gb9d-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--gb9d-bg);
  border-bottom: 1px solid var(--gb9d-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.gb9d-header-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.gb9d-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.gb9d-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

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

.gb9d-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gb9d-btn-register,
.gb9d-btn-login {
  padding: 6px 14px;
  border-radius: var(--gb9d-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.gb9d-btn-register {
  background: var(--gb9d-accent);
  color: #262626;
}

.gb9d-btn-register:hover {
  background: #FFF59D;
  transform: scale(1.05);
}

.gb9d-btn-login {
  background: transparent;
  color: var(--gb9d-primary);
  border: 1px solid var(--gb9d-primary);
}

.gb9d-btn-login:hover {
  background: rgba(175, 238, 238, 0.1);
}

.gb9d-menu-btn {
  background: none;
  border: none;
  color: var(--gb9d-primary);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.gb9d-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: all 0.3s ease;
}

.gb9d-overlay-active {
  opacity: 1;
  visibility: visible;
}

.gb9d-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--gb9d-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 60px 20px 20px;
}

.gb9d-menu-active {
  right: 0;
}

.gb9d-mobile-menu .gb9d-menu-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gb9d-text);
  font-size: 24px;
  cursor: pointer;
}

.gb9d-mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gb9d-border);
  color: var(--gb9d-text-light);
  font-size: 1.4rem;
  transition: color 0.2s;
}

.gb9d-mobile-menu nav a:hover {
  color: var(--gb9d-accent);
}

.gb9d-mobile-menu nav a .material-icons {
  font-size: 20px;
  color: var(--gb9d-primary);
}

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

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

/* ===== CAROUSEL ===== */
.gb9d-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--gb9d-radius-lg);
  margin: 12px;
}

.gb9d-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gb9d-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.gb9d-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--gb9d-radius-lg);
}

.gb9d-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

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

.gb9d-dot-active {
  background: var(--gb9d-accent);
  transform: scale(1.3);
}

/* ===== SECTIONS ===== */
.gb9d-section {
  padding: 16px 12px;
}

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

.gb9d-section-title .material-icons {
  font-size: 22px;
  color: var(--gb9d-accent);
}

/* ===== GAME GRID ===== */
.gb9d-game-category-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gb9d-accent);
  margin: 16px 0 8px;
  padding-left: 4px;
}

.gb9d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gb9d-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

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

.gb9d-game-item img {
  width: 72px;
  height: 72px;
  border-radius: var(--gb9d-radius);
  object-fit: cover;
  border: 2px solid var(--gb9d-border);
  margin-bottom: 4px;
}

.gb9d-game-item span {
  font-size: 1.1rem;
  color: var(--gb9d-text);
  line-height: 1.2;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CARDS ===== */
.gb9d-card {
  background: var(--gb9d-bg-card);
  border-radius: var(--gb9d-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--gb9d-border);
}

.gb9d-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gb9d-primary);
  margin-bottom: 8px;
}

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

/* ===== PROMO CTA BUTTONS ===== */
.gb9d-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gb9d-accent);
  color: #262626;
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: var(--gb9d-radius);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.gb9d-cta:hover {
  background: #FFF59D;
  transform: scale(1.03);
}

.gb9d-cta-outline {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: var(--gb9d-primary);
  font-weight: 600;
  font-size: 1.4rem;
  border-radius: var(--gb9d-radius);
  cursor: pointer;
  border: 2px solid var(--gb9d-primary);
  transition: all 0.2s ease;
  text-align: center;
}

.gb9d-cta-outline:hover {
  background: rgba(175, 238, 238, 0.1);
}

.gb9d-text-link {
  color: var(--gb9d-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.gb9d-text-link:hover {
  color: #FFF59D;
}

/* ===== FOOTER ===== */
.gb9d-footer {
  background: var(--gb9d-bg-light);
  padding: 20px 12px;
  border-top: 1px solid var(--gb9d-border);
}

.gb9d-footer-brand {
  font-size: 1.3rem;
  color: var(--gb9d-text-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}

.gb9d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gb9d-footer-links a {
  padding: 6px 12px;
  background: var(--gb9d-bg-card);
  border-radius: var(--gb9d-radius);
  font-size: 1.2rem;
  color: var(--gb9d-text-light);
  border: 1px solid var(--gb9d-border);
  transition: all 0.2s;
}

.gb9d-footer-links a:hover {
  color: var(--gb9d-accent);
  border-color: var(--gb9d-accent);
}

.gb9d-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.gb9d-footer-promo .gb9d-cta {
  padding: 8px 16px;
  font-size: 1.2rem;
}

.gb9d-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gb9d-text-dark);
  padding-top: 12px;
  border-top: 1px solid var(--gb9d-border);
}

/* ===== BOTTOM NAV ===== */
.gb9d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--gb9d-bg-light);
  border-top: 1px solid var(--gb9d-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}

.gb9d-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--gb9d-radius);
  position: relative;
}

.gb9d-bottom-nav-btn:hover {
  background: rgba(175, 238, 238, 0.08);
}

.gb9d-bottom-nav-btn:active {
  transform: scale(0.92);
}

.gb9d-bottom-nav-btn .gb9d-nav-icon {
  font-size: 22px;
  color: var(--gb9d-text-dark);
  margin-bottom: 2px;
  transition: color 0.2s;
}

.gb9d-bottom-nav-btn .gb9d-nav-label {
  font-size: 1rem;
  color: var(--gb9d-text-dark);
  transition: color 0.2s;
}

.gb9d-nav-active .gb9d-nav-icon,
.gb9d-nav-active .gb9d-nav-label {
  color: var(--gb9d-accent);
}

.gb9d-nav-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--gb9d-accent);
  border-radius: 0 0 3px 3px;
}

@media (min-width: 769px) {
  .gb9d-bottom-nav { display: none; }
}

/* ===== FAQ / REVIEW ===== */
.gb9d-faq-item {
  border-bottom: 1px solid var(--gb9d-border);
  padding: 12px 0;
}

.gb9d-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gb9d-primary);
  margin-bottom: 6px;
}

.gb9d-faq-a {
  font-size: 1.3rem;
  color: var(--gb9d-text);
  line-height: 1.6;
}

/* ===== FEATURE LIST ===== */
.gb9d-feature-list {
  list-style: none;
}

.gb9d-feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gb9d-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.3rem;
  color: var(--gb9d-text);
  line-height: 1.6;
}

.gb9d-feature-list li .material-icons {
  font-size: 18px;
  color: var(--gb9d-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ===== TESTIMONIALS ===== */
.gb9d-testimonial {
  background: var(--gb9d-bg-card);
  border-radius: var(--gb9d-radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--gb9d-accent);
}

.gb9d-testimonial-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gb9d-accent);
  margin-bottom: 4px;
}

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

/* ===== WINNER SHOWCASE ===== */
.gb9d-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gb9d-border);
}

.gb9d-winner-name {
  font-size: 1.3rem;
  color: var(--gb9d-primary);
  font-weight: 600;
}

.gb9d-winner-game {
  font-size: 1.1rem;
  color: var(--gb9d-text-dark);
}

.gb9d-winner-amount {
  font-size: 1.3rem;
  color: var(--gb9d-accent);
  font-weight: 700;
}

/* ===== PAYMENT ICONS ===== */
.gb9d-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.gb9d-payment-item {
  background: var(--gb9d-bg-card);
  border: 1px solid var(--gb9d-border);
  border-radius: var(--gb9d-radius);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--gb9d-text-light);
  text-align: center;
}

/* ===== APP DOWNLOAD CTA ===== */
.gb9d-app-cta {
  background: linear-gradient(135deg, var(--gb9d-bg-card), #1a3a3a);
  border-radius: var(--gb9d-radius-lg);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--gb9d-primary);
}

.gb9d-app-cta h3 {
  font-size: 1.6rem;
  color: var(--gb9d-primary);
  margin-bottom: 8px;
}

.gb9d-app-cta p {
  font-size: 1.3rem;
  color: var(--gb9d-text);
  margin-bottom: 14px;
}

/* ===== UTILITY ===== */
.gb9d-text-center { text-align: center; }
.gb9d-mt-8 { margin-top: 8px; }
.gb9d-mt-12 { margin-top: 12px; }
.gb9d-mb-8 { margin-bottom: 8px; }
.gb9d-mb-12 { margin-bottom: 12px; }
.gb9d-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* Desktop-only header nav */
@media (min-width: 769px) {
  .gb9d-header {
    max-width: 100%;
  }
  .gb9d-main {
    max-width: 430px;
    margin: 0 auto;
  }
  .gb9d-footer {
    max-width: 430px;
    margin: 0 auto;
  }
}
