/**
 * ninong.sbs - Core Stylesheet
 * All classes use prefix pg13- for namespace isolation
 * Color palette: #00FF00 | #0F0F23 | #20B2AA | #AFEEEE | #8B7355
 * Mobile-first responsive design (max-width: 430px viewport)
 */

/* ===== CSS Variables ===== */
:root {
  --pg13-primary: #00FF00;
  --pg13-bg: #0F0F23;
  --pg13-accent: #20B2AA;
  --pg13-light: #AFEEEE;
  --pg13-gold: #8B7355;
  --pg13-white: #FFFFFF;
  --pg13-text: #E0E0E0;
  --pg13-text-dim: #999999;
  --pg13-radius: 8px;
  --pg13-shadow: 0 2px 12px rgba(0, 255, 0, 0.15);
  --pg13-transition: all 0.3s ease;
}

/* ===== 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, Oxygen, sans-serif;
  background: var(--pg13-bg);
  color: var(--pg13-text);
  line-height: 1.6;
  font-size: 1.6rem;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: var(--pg13-accent); transition: var(--pg13-transition); }
a:hover { color: var(--pg13-primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ===== Header ===== */
.pg13-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #0a0a1a 0%, var(--pg13-bg) 100%);
  border-bottom: 1px solid rgba(0, 255, 0, 0.15);
  transition: var(--pg13-transition);
  height: 56px;
}
.pg13-header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 255, 0, 0.2);
  border-bottom-color: rgba(0, 255, 0, 0.3);
}
.pg13-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 1.2rem; max-width: 430px; margin: 0 auto;
}
.pg13-logo {
  display: flex; align-items: center; gap: 0.8rem; cursor: pointer;
}
.pg13-logo img { width: 28px; height: 28px; border-radius: 4px; }
.pg13-logo-text {
  font-size: 1.8rem; font-weight: 700; color: var(--pg13-primary);
  letter-spacing: 1px;
}
.pg13-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg13-btn-register {
  background: var(--pg13-primary); color: var(--pg13-bg);
  border: none; border-radius: var(--pg13-radius);
  padding: 0.5rem 1.2rem; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; transition: var(--pg13-transition);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pg13-btn-register:hover { background: #33ff33; transform: scale(1.05); }
.pg13-btn-login {
  background: transparent; color: var(--pg13-primary);
  border: 1px solid var(--pg13-primary); border-radius: var(--pg13-radius);
  padding: 0.5rem 1.2rem; font-size: 1.2rem; font-weight: 600;
  cursor: pointer; transition: var(--pg13-transition);
}
.pg13-btn-login:hover { background: rgba(0, 255, 0, 0.1); }
.pg13-menu-btn {
  background: none; border: none; color: var(--pg13-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Mobile Menu ===== */
.pg13-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; opacity: 0; visibility: hidden; transition: var(--pg13-transition);
}
.pg13-overlay-active { opacity: 1; visibility: visible; }
.pg13-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: linear-gradient(180deg, #0a0a1a, var(--pg13-bg));
  z-index: 9999; transition: right 0.35s ease;
  padding: 2rem 0; overflow-y: auto;
  border-left: 1px solid rgba(0, 255, 0, 0.2);
}
.pg13-menu-active { right: 0; }
.pg13-mobile-menu .pg13-menu-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; color: var(--pg13-light);
  font-size: 2.4rem; cursor: pointer;
}
.pg13-menu-nav { padding: 3rem 1.5rem; }
.pg13-menu-nav a {
  display: block; padding: 1.2rem 0; color: var(--pg13-light);
  font-size: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--pg13-transition);
}
.pg13-menu-nav a:hover { color: var(--pg13-primary); padding-left: 0.8rem; }

/* ===== Carousel ===== */
.pg13-carousel {
  position: relative; overflow: hidden; border-radius: var(--pg13-radius);
  margin-top: 1.2rem; cursor: pointer;
}
.pg13-slide {
  display: none; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--pg13-radius);
}
.pg13-slide-active { display: block; }
.pg13-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.pg13-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
}
.pg13-dot-active { background: var(--pg13-primary); }

/* ===== Main Content ===== */
main { padding-top: 64px; padding-bottom: 1rem; }
.pg13-section {
  padding: 2rem 1.6rem; max-width: 430px; margin: 0 auto;
}
.pg13-section-title {
  font-size: 2rem; font-weight: 700; color: var(--pg13-white);
  margin-bottom: 1.5rem; position: relative; padding-left: 1.2rem;
}
.pg13-section-title::before {
  content: ''; position: absolute; left: 0; top: 0.3rem;
  width: 4px; height: 2.2rem; background: var(--pg13-primary);
  border-radius: 2px;
}
.pg13-section-subtitle {
  font-size: 1.6rem; color: var(--pg13-light);
  margin-bottom: 1rem; font-weight: 600;
}

/* ===== Game Grid ===== */
.pg13-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pg13-game-item {
  text-align: center; cursor: pointer;
  transition: var(--pg13-transition); border-radius: var(--pg13-radius);
  padding: 0.6rem 0.2rem;
}
.pg13-game-item:hover { transform: translateY(-3px); }
.pg13-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--pg13-radius);
  border: 2px solid rgba(0, 255, 0, 0.15);
  transition: var(--pg13-transition);
}
.pg13-game-item:hover img { border-color: var(--pg13-primary); }
.pg13-game-name {
  font-size: 1.1rem; color: var(--pg13-text); margin-top: 0.4rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}

/* ===== Category Header ===== */
.pg13-category-header {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 2rem 0 1rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(0, 255, 0, 0.2);
}
.pg13-category-icon {
  font-size: 2.2rem; color: var(--pg13-primary);
}
.pg13-category-title {
  font-size: 1.8rem; font-weight: 700; color: var(--pg13-white);
}

/* ===== Cards ===== */
.pg13-card {
  background: linear-gradient(135deg, rgba(15,15,35,0.9), rgba(32,178,170,0.08));
  border: 1px solid rgba(0, 255, 0, 0.12); border-radius: var(--pg13-radius);
  padding: 1.6rem; margin-bottom: 1.2rem; transition: var(--pg13-transition);
}
.pg13-card:hover { border-color: var(--pg13-primary); box-shadow: var(--pg13-shadow); }
.pg13-card-title {
  font-size: 1.6rem; font-weight: 700; color: var(--pg13-white);
  margin-bottom: 0.8rem;
}
.pg13-card-text { font-size: 1.4rem; color: var(--pg13-text); line-height: 1.7; }

/* ===== Buttons ===== */
.pg13-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 1rem 2rem; border-radius: var(--pg13-radius);
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  transition: var(--pg13-transition); border: none; text-transform: uppercase;
}
.pg13-btn-primary {
  background: linear-gradient(135deg, var(--pg13-primary), #33ff33);
  color: var(--pg13-bg);
}
.pg13-btn-primary:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(0,255,0,0.4); }
.pg13-btn-accent {
  background: linear-gradient(135deg, var(--pg13-accent), #2dd4bf);
  color: var(--pg13-bg);
}
.pg13-btn-accent:hover { transform: scale(1.05); }
.pg13-btn-outline {
  background: transparent; border: 2px solid var(--pg13-primary);
  color: var(--pg13-primary);
}
.pg13-btn-outline:hover { background: rgba(0,255,0,0.1); }

/* ===== Promo Link ===== */
.pg13-promo-link {
  color: var(--pg13-primary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--pg13-primary);
  transition: var(--pg13-transition);
}
.pg13-promo-link:hover { color: #33ff33; border-bottom-color: #33ff33; }

/* ===== Feature Grid ===== */
.pg13-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.pg13-feature-item {
  background: rgba(0, 255, 0, 0.04); border: 1px solid rgba(0,255,0,0.1);
  border-radius: var(--pg13-radius); padding: 1.4rem; text-align: center;
  transition: var(--pg13-transition);
}
.pg13-feature-item:hover { border-color: var(--pg13-primary); }
.pg13-feature-icon { font-size: 2.8rem; color: var(--pg13-primary); margin-bottom: 0.8rem; }
.pg13-feature-title { font-size: 1.4rem; font-weight: 700; color: var(--pg13-white); margin-bottom: 0.4rem; }
.pg13-feature-desc { font-size: 1.2rem; color: var(--pg13-text-dim); }

/* ===== Winner Marquee ===== */
.pg13-winner-bar {
  background: rgba(0,255,0,0.06); border-radius: var(--pg13-radius);
  padding: 1rem 1.4rem; overflow: hidden; margin-bottom: 1rem;
}
.pg13-winner-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem 0; font-size: 1.3rem; color: var(--pg13-light);
}
.pg13-winner-name { color: var(--pg13-primary); font-weight: 700; }
.pg13-winner-amount { color: var(--pg13-gold); font-weight: 700; }

/* ===== Footer ===== */
.pg13-footer {
  background: linear-gradient(180deg, var(--pg13-bg), #050510);
  border-top: 1px solid rgba(0,255,0,0.1);
  padding: 3rem 1.6rem 2rem; margin-top: 2rem;
}
.pg13-footer-inner { max-width: 430px; margin: 0 auto; }
.pg13-footer-brand { text-align: center; margin-bottom: 2rem; }
.pg13-footer-brand-name {
  font-size: 2.2rem; font-weight: 700; color: var(--pg13-primary);
  margin-bottom: 0.6rem;
}
.pg13-footer-desc { font-size: 1.3rem; color: var(--pg13-text-dim); line-height: 1.6; }
.pg13-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin: 1.5rem 0;
}
.pg13-footer-links a {
  color: var(--pg13-light); font-size: 1.3rem; padding: 0.4rem 0.8rem;
  border-radius: 4px; transition: var(--pg13-transition);
}
.pg13-footer-links a:hover { color: var(--pg13-primary); background: rgba(0,255,0,0.06); }
.pg13-footer-promos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  margin: 1.5rem 0;
}
.pg13-footer-promos button {
  background: rgba(0,255,0,0.08); border: 1px solid rgba(0,255,0,0.2);
  color: var(--pg13-primary); padding: 0.6rem 1.4rem; border-radius: var(--pg13-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: var(--pg13-transition);
}
.pg13-footer-promos button:hover { background: rgba(0,255,0,0.15); }
.pg13-footer-copy {
  text-align: center; font-size: 1.2rem; color: var(--pg13-text-dim);
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== Bottom Navigation ===== */
.pg13-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(15,15,35,0.95), #050510);
  border-top: 1px solid rgba(0,255,0,0.2);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.4rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pg13-bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 52px;
  background: none; border: none; cursor: pointer;
  color: var(--pg13-text-dim); transition: var(--pg13-transition);
  padding: 0.4rem; border-radius: 8px; position: relative;
}
.pg13-bottom-nav-item:hover,
.pg13-bottom-nav-item.pg13-nav-active {
  color: var(--pg13-primary); transform: scale(1.08);
}
.pg13-bottom-nav-item.pg13-nav-active::after {
  content: ''; position: absolute; top: -2px;
  width: 20px; height: 3px; background: var(--pg13-primary);
  border-radius: 0 0 3px 3px;
}
.pg13-bottom-nav-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 2px; }
.pg13-bottom-nav-label { font-size: 1rem; font-weight: 600; letter-spacing: 0.3px; }

/* ===== FAQ Section ===== */
.pg13-faq-item {
  background: rgba(0,255,0,0.03); border: 1px solid rgba(0,255,0,0.1);
  border-radius: var(--pg13-radius); margin-bottom: 1rem; overflow: hidden;
}
.pg13-faq-q {
  padding: 1.2rem 1.4rem; font-size: 1.4rem; font-weight: 700;
  color: var(--pg13-white); cursor: pointer; display: flex;
  align-items: center; gap: 0.8rem;
}
.pg13-faq-a {
  padding: 0 1.4rem 1.2rem; font-size: 1.3rem; color: var(--pg13-text);
  line-height: 1.7;
}

/* ===== Testimonials ===== */
.pg13-testimonial {
  background: rgba(32,178,170,0.06); border-left: 3px solid var(--pg13-accent);
  border-radius: 0 var(--pg13-radius) var(--pg13-radius) 0;
  padding: 1.4rem; margin-bottom: 1rem;
}
.pg13-testimonial-text { font-size: 1.3rem; color: var(--pg13-text); font-style: italic; line-height: 1.6; }
.pg13-testimonial-author { font-size: 1.2rem; color: var(--pg13-primary); margin-top: 0.6rem; font-weight: 600; }

/* ===== H1 Styling ===== */
.pg13-h1 {
  font-size: 2.2rem; font-weight: 800; color: var(--pg13-white);
  margin-bottom: 1.2rem; line-height: 1.3;
}
.pg13-h1 span { color: var(--pg13-primary); }

/* ===== Utilities ===== */
.pg13-text-center { text-align: center; }
.pg13-text-primary { color: var(--pg13-primary); }
.pg13-text-gold { color: var(--pg13-gold); }
.pg13-text-accent { color: var(--pg13-accent); }
.pg13-mb-1 { margin-bottom: 1rem; }
.pg13-mb-2 { margin-bottom: 2rem; }
.pg13-mt-1 { margin-top: 1rem; }
.pg13-mt-2 { margin-top: 2rem; }

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  .pg13-bottom-nav { display: none; }
  .pg13-container, .pg13-wrapper { max-width: 768px; }
  .pg13-header-inner { max-width: 768px; }
  .pg13-footer-inner { max-width: 768px; }
  .pg13-section { max-width: 768px; }
}

/* ===== Mobile bottom padding ===== */
@media (max-width: 768px) {
  main { padding-bottom: 72px; }
  .pg13-footer { padding-bottom: 80px; }
}
