/**
 * ninogame.css - Core Stylesheet for ninogame.cfd
 * All classes use prefix "v88b-" for namespace isolation
 * Color palette: #95A5A6 | #D3D3D3 | #FFDEAD | #2D2D2D
 * Mobile-first design, max-width: 430px
 */

/* ===== CSS Variables ===== */
:root {
  --v88b-primary: #FFDEAD;
  --v88b-secondary: #95A5A6;
  --v88b-accent: #D3D3D3;
  --v88b-bg: #2D2D2D;
  --v88b-bg-dark: #1A1A1A;
  --v88b-bg-card: #3A3A3A;
  --v88b-text: #D3D3D3;
  --v88b-text-light: #F5F5F5;
  --v88b-text-muted: #95A5A6;
  --v88b-border: #4A4A4A;
  --v88b-gold: #FFDEAD;
  --v88b-gold-dark: #D4A854;
  --v88b-radius: 8px;
  --v88b-radius-lg: 12px;
  --v88b-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --v88b-transition: all 0.3s ease;
  --v88b-header-h: 56px;
  --v88b-bottom-h: 60px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--v88b-bg);
  color: var(--v88b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--v88b-gold);
  text-decoration: none;
  transition: var(--v88b-transition);
}

a:hover {
  color: var(--v88b-text-light);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Layout ===== */
.v88b-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v88b-wrapper {
  width: 100%;
  overflow: hidden;
}

.v88b-grid {
  display: grid;
  gap: 1rem;
}

.v88b-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.v88b-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.v88b-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== Header ===== */
.v88b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v88b-header-h);
  background: var(--v88b-bg-dark);
  border-bottom: 1px solid var(--v88b-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}

.v88b-header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.v88b-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v88b-header-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v88b-gold);
  letter-spacing: 0.5px;
}

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

.v88b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--v88b-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--v88b-transition);
  text-decoration: none;
  min-height: 36px;
  min-width: 44px;
}

.v88b-btn-register {
  background: var(--v88b-gold);
  color: var(--v88b-bg-dark);
}

.v88b-btn-register:hover {
  background: var(--v88b-gold-dark);
  color: var(--v88b-bg-dark);
  transform: scale(1.05);
}

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

.v88b-btn-login:hover {
  background: var(--v88b-gold);
  color: var(--v88b-bg-dark);
}

.v88b-btn-menu {
  background: transparent;
  color: var(--v88b-text);
  border: none;
  font-size: 2rem;
  padding: 0.4rem;
  cursor: pointer;
  line-height: 1;
}

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

.v88b-overlay-active {
  display: block;
}

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

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

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

.v88b-menu-list {
  list-style: none;
  margin-top: 3rem;
}

.v88b-menu-list li {
  border-bottom: 1px solid var(--v88b-border);
}

.v88b-menu-list a {
  display: block;
  padding: 1.2rem 0;
  color: var(--v88b-text);
  font-size: 1.4rem;
  transition: var(--v88b-transition);
}

.v88b-menu-list a:hover {
  color: var(--v88b-gold);
  padding-left: 0.5rem;
}

/* ===== Carousel ===== */
.v88b-carousel-wrap {
  position: relative;
  margin-top: var(--v88b-header-h);
  overflow: hidden;
}

.v88b-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.v88b-slide img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.v88b-slide-active {
  display: block;
}

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

.v88b-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--v88b-transition);
  border: none;
}

.v88b-dot-active {
  background: var(--v88b-gold);
  transform: scale(1.2);
}

/* ===== Section Styling ===== */
.v88b-section {
  padding: 2rem 0;
}

.v88b-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v88b-text-light);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v88b-gold);
}

.v88b-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v88b-gold);
  margin-bottom: 0.8rem;
}

/* ===== Game Grid ===== */
.v88b-game-section {
  margin-bottom: 1.5rem;
}

.v88b-game-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v88b-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.v88b-game-card {
  text-align: center;
  cursor: pointer;
  transition: var(--v88b-transition);
  border-radius: var(--v88b-radius);
  padding: 0.4rem;
}

.v88b-game-card:hover {
  background: var(--v88b-bg-card);
  transform: translateY(-2px);
}

.v88b-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--v88b-radius);
  margin-bottom: 0.3rem;
}

.v88b-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--v88b-text);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Content Cards ===== */
.v88b-card {
  background: var(--v88b-bg-card);
  border-radius: var(--v88b-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--v88b-border);
}

.v88b-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v88b-gold);
  margin-bottom: 0.8rem;
}

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

/* ===== Promo Button ===== */
.v88b-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--v88b-gold), var(--v88b-gold-dark));
  color: var(--v88b-bg-dark);
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--v88b-transition);
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(255,222,173,0.3);
}

.v88b-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255,222,173,0.5);
  color: var(--v88b-bg-dark);
  text-decoration: none;
}

/* ===== Stats / Info Box ===== */
.v88b-info-box {
  background: var(--v88b-bg-card);
  border-left: 3px solid var(--v88b-gold);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--v88b-radius) var(--v88b-radius) 0;
  margin-bottom: 1rem;
}

.v88b-info-box h4 {
  color: var(--v88b-gold);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.v88b-info-box p {
  color: var(--v88b-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* ===== List Styling ===== */
.v88b-list {
  list-style: none;
  padding: 0;
}

.v88b-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--v88b-border);
  color: var(--v88b-text);
  font-size: 1.3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.v88b-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--v88b-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ===== Footer ===== */
.v88b-footer {
  background: var(--v88b-bg-dark);
  border-top: 1px solid var(--v88b-border);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
}

.v88b-footer-brand {
  font-size: 1.3rem;
  color: var(--v88b-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.v88b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.v88b-footer-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--v88b-bg-card);
  color: var(--v88b-text);
  border-radius: var(--v88b-radius);
  font-size: 1.1rem;
  transition: var(--v88b-transition);
  text-decoration: none;
  border: 1px solid var(--v88b-border);
}

.v88b-footer-link:hover {
  color: var(--v88b-gold);
  border-color: var(--v88b-gold);
  text-decoration: none;
}

.v88b-footer-copy {
  text-align: center;
  color: var(--v88b-text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* ===== Bottom Navigation ===== */
.v88b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v88b-bottom-h);
  background: var(--v88b-bg-dark);
  border-top: 1px solid var(--v88b-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
  max-width: 430px;
  margin: 0 auto;
}

.v88b-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--v88b-text-muted);
  cursor: pointer;
  transition: var(--v88b-transition);
  padding: 0.3rem 0.2rem;
  text-decoration: none;
}

.v88b-bottom-btn:hover,
.v88b-bottom-btn:focus {
  color: var(--v88b-gold);
  transform: scale(1.08);
}

.v88b-bottom-btn .v88b-bnav-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.v88b-bottom-btn .v88b-bnav-label {
  font-size: 1rem;
  line-height: 1.2;
}

.v88b-bottom-btn.v88b-bnav-active {
  color: var(--v88b-gold);
}

.v88b-bottom-btn.v88b-bnav-active .v88b-bnav-icon {
  filter: drop-shadow(0 0 4px rgba(255,222,173,0.5));
}

/* ===== Utilities ===== */
.v88b-text-center { text-align: center; }
.v88b-text-gold { color: var(--v88b-gold); }
.v88b-text-muted { color: var(--v88b-text-muted); }
.v88b-mt-1 { margin-top: 1rem; }
.v88b-mt-2 { margin-top: 2rem; }
.v88b-mb-1 { margin-bottom: 1rem; }
.v88b-mb-2 { margin-bottom: 2rem; }
.v88b-p-1 { padding: 1rem; }
.v88b-hidden { display: none; }

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

.v88b-testimonial-text {
  font-style: italic;
  color: var(--v88b-text);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.v88b-testimonial-author {
  color: var(--v88b-gold);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== Payment Methods ===== */
.v88b-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
}

.v88b-payment-item {
  background: var(--v88b-bg-card);
  border: 1px solid var(--v88b-border);
  border-radius: var(--v88b-radius);
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: var(--v88b-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== Winner Showcase ===== */
.v88b-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--v88b-border);
}

.v88b-winner-name {
  color: var(--v88b-gold);
  font-weight: 600;
  font-size: 1.2rem;
}

.v88b-winner-amount {
  color: var(--v88b-text-light);
  font-weight: 700;
  font-size: 1.3rem;
}

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

/* ===== FAQ ===== */
.v88b-faq-item {
  background: var(--v88b-bg-card);
  border-radius: var(--v88b-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--v88b-border);
}

.v88b-faq-q {
  font-weight: 700;
  color: var(--v88b-gold);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

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

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .v88b-bottom-nav {
    display: none;
  }
  .v88b-container {
    max-width: 430px;
  }
  .v88b-header {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
  }
  .v88b-mobile-menu {
    max-width: 430px;
  }
}

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

@media (max-width: 360px) {
  .v88b-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .v88b-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1.1rem;
  }
}

/* ===== Inline link style for SEO ===== */
.v88b-inline-link {
  color: var(--v88b-gold);
  text-decoration: underline;
  font-weight: 500;
  transition: var(--v88b-transition);
}

.v88b-inline-link:hover {
  color: var(--v88b-text-light);
}

/* ===== App Download CTA ===== */
.v88b-cta-box {
  background: linear-gradient(135deg, var(--v88b-bg-card), var(--v88b-bg-dark));
  border: 2px solid var(--v88b-gold);
  border-radius: var(--v88b-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.v88b-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v88b-gold);
  margin-bottom: 0.8rem;
}

.v88b-cta-text {
  color: var(--v88b-text);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* ===== Category Highlight ===== */
.v88b-cat-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--v88b-bg-card);
  border-radius: var(--v88b-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--v88b-border);
  transition: var(--v88b-transition);
}

.v88b-cat-highlight:hover {
  border-color: var(--v88b-gold);
}

.v88b-cat-highlight .v88b-cat-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.v88b-cat-highlight h4 {
  color: var(--v88b-gold);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.v88b-cat-highlight p {
  color: var(--v88b-text-muted);
  font-size: 1.1rem;
}
