/* ninogaming apk - layout CSS (prefix: v716-)
 * Palette: #0D1117 (bg) | #ADFF2F (accent) | #DEE2E6 (text)
 * Mobile-first; root font 62.5% (1rem = 10px).
 */
:root {
  --v716-bg: #0D1117;
  --v716-bg-2: #131A22;
  --v716-bg-3: #1B232D;
  --v716-accent: #ADFF2F;
  --v716-accent-2: #8FE01F;
  --v716-text: #DEE2E6;
  --v716-muted: #9AA6B2;
  --v716-border: #25313C;
  --v716-gold: #FFD66B;
  --v716-danger: #FF6B6B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

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

a { color: var(--v716-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.v716-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v716-border);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.v716-header-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  background: rgba(13, 17, 23, 1);
}
.v716-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  gap: 0.8rem;
}
.v716-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0.2px;
}
.v716-logo .v716-logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--v716-accent), var(--v716-accent-2));
  display: flex; align-items: center; justify-content: center;
  color: var(--v716-bg);
  font-weight: 900;
  font-size: 1.6rem;
}
.v716-logo span { color: var(--v716-accent); }

.v716-header-actions {
  display: flex; align-items: center; gap: 0.6rem;
}
.v716-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.v716-btn:active { transform: scale(0.96); }
.v716-btn-primary {
  background: linear-gradient(135deg, var(--v716-accent), var(--v716-accent-2));
  color: var(--v716-bg);
  box-shadow: 0 4px 14px rgba(173, 255, 47, 0.32);
}
.v716-btn-ghost {
  background: transparent;
  color: var(--v716-text);
  border: 1px solid var(--v716-border);
}
.v716-btn-gold {
  background: linear-gradient(135deg, #FFD66B, #F2A93B);
  color: #1B1206;
}
.v716-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--v716-bg-3);
  border: 1px solid var(--v716-border);
  color: var(--v716-text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.7rem;
}

/* ===== Mobile menu / overlay ===== */
.v716-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.v716-overlay-show { opacity: 1; visibility: visible; }
.v716-mobile-menu {
  position: fixed; top: 0; right: -85%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--v716-bg-2);
  z-index: 9999;
  padding: 2rem 1.6rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 1px solid var(--v716-border);
}
.v716-menu-open { right: 0; }
.v716-mobile-menu h4 {
  color: var(--v716-accent);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.6rem 0 0.8rem;
}
.v716-mobile-menu a {
  display: block;
  padding: 0.85rem 0.4rem;
  color: var(--v716-text);
  border-bottom: 1px solid var(--v716-border);
  font-size: 1.4rem;
}
.v716-mobile-menu a:hover { color: var(--v716-accent); }

/* ===== Hero ===== */
.v716-hero {
  position: relative;
  margin: 1rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.v716-slides { position: relative; }
.v716-slide {
  display: none;
  position: relative;
  min-height: 230px;
  background: linear-gradient(135deg, #1B232D, #0D1117);
  padding: 1.8rem;
  overflow: hidden;
}
.v716-slide-active { display: block; }
.v716-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(173,255,47,0.25), transparent 60%);
}
.v716-slide-tag {
  display: inline-block;
  background: rgba(173,255,47,0.18);
  color: var(--v716-accent);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  position: relative;
}
.v716-slide h2 {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  position: relative;
}
.v716-slide p {
  color: var(--v716-text);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  position: relative;
}
.v716-slide .v716-btn { position: relative; }
.v716-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v716-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer; border: none;
}
.v716-dot-active { background: var(--v716-accent); width: 22px; border-radius: 4px; }

/* ===== Section title ===== */
.v716-section {
  margin: 2.2rem 1rem;
}
.v716-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.v716-section-title h3 {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; gap: 0.5rem;
}
.v716-section-title h3 i { color: var(--v716-accent); }
.v716-section-title a { font-size: 1.25rem; }

/* ===== Filter tabs ===== */
.v716-filters {
  display: flex; gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
  scrollbar-width: none;
}
.v716-filters::-webkit-scrollbar { display: none; }
.v716-filter-tab {
  flex: 0 0 auto;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: var(--v716-bg-3);
  color: var(--v716-text);
  font-size: 1.3rem;
  font-weight: 600;
  border: 1px solid var(--v716-border);
  cursor: pointer;
}
.v716-filter-active {
  background: var(--v716-accent);
  color: var(--v716-bg);
  border-color: var(--v716-accent);
}

/* ===== Game grid ===== */
.v716-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.v716-card {
  background: var(--v716-bg-2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--v716-border);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.v716-card:hover, .v716-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(173,255,47,0.15);
  border-color: var(--v716-accent);
}
.v716-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1B232D, #131A22);
  overflow: hidden;
}
.v716-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.v716-card-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--v716-accent);
  color: var(--v716-bg);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}
.v716-card-hot {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--v716-danger);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.v716-card-body { padding: 0.5rem 0.6rem 0.7rem; }
.v716-card-name {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v716-card-play {
  display: block;
  text-align: center;
  margin-top: 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--v716-accent);
  background: rgba(173,255,47,0.1);
  border-radius: 6px;
  padding: 0.3rem;
}

/* ===== Featured blocks ===== */
.v716-feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.v716-feature {
  background: linear-gradient(135deg, var(--v716-bg-2), var(--v716-bg-3));
  border: 1px solid var(--v716-border);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex; gap: 1rem; align-items: center;
}
.v716-feature .v716-feature-ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(173,255,47,0.15);
  color: var(--v716-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  flex: 0 0 auto;
}
.v716-feature h4 { color: #fff; font-size: 1.5rem; margin-bottom: 0.2rem; }
.v716-feature p { color: var(--v716-muted); font-size: 1.25rem; }

/* ===== Promo banner ===== */
.v716-promo-banner {
  margin: 2rem 1rem;
  padding: 1.8rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(173,255,47,0.18), rgba(173,255,47,0.04));
  border: 1px solid rgba(173,255,47,0.4);
  text-align: center;
}
.v716-promo-banner h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.v716-promo-banner p { color: var(--v716-text); font-size: 1.3rem; margin-bottom: 1rem; }
.v716-promo-text-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--v716-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ===== SEO long text ===== */
.v716-seo-text {
  margin: 2rem 1rem;
  background: var(--v716-bg-2);
  border-radius: 14px;
  padding: 1.6rem;
  border: 1px solid var(--v716-border);
}
.v716-seo-text h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--v716-accent);
  padding-left: 0.8rem;
}
.v716-seo-text h4 {
  color: var(--v716-accent);
  font-size: 1.45rem;
  margin: 1.4rem 0 0.5rem;
}
.v716-seo-text p {
  color: var(--v716-text);
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.v716-seo-text ol, .v716-seo-text ul {
  margin: 0.4rem 0 1rem 1.4rem;
  color: var(--v716-text);
  font-size: 1.32rem;
  line-height: 1.7;
}
.v716-seo-text strong { color: var(--v716-accent); }
.v716-seo-text a { color: var(--v716-gold); }

/* ===== FAQ ===== */
.v716-faq-item {
  background: var(--v716-bg-2);
  border: 1px solid var(--v716-border);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.v716-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.8rem;
  font-family: inherit;
}
.v716-faq-q .v716-faq-ic { color: var(--v716-accent); transition: transform 0.25s ease; }
.v716-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--v716-text);
  font-size: 1.28rem;
  line-height: 1.6;
  padding: 0 1.2rem;
}
.v716-faq-open .v716-faq-a {
  max-height: 600px;
  padding: 0 1.2rem 1rem;
}
.v716-faq-open .v716-faq-ic { transform: rotate(45deg); }

/* ===== Footer ===== */
.v716-footer {
  background: var(--v716-bg-2);
  border-top: 1px solid var(--v716-border);
  padding: 2rem 1.2rem 1rem;
  margin-top: 1.5rem;
}
.v716-footer h4 {
  color: var(--v716-accent);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.v716-footer p { color: var(--v716-muted); font-size: 1.25rem; margin-bottom: 1rem; }
.v716-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1.4rem;
}
.v716-footer-links a {
  color: var(--v716-text);
  font-size: 1.22rem;
}
.v716-footer-links a:hover { color: var(--v716-accent); }
.v716-footer-bottom {
  border-top: 1px solid var(--v716-border);
  padding-top: 1rem;
  text-align: center;
  color: var(--v716-muted);
  font-size: 1.15rem;
}

/* ===== Mobile bottom nav ===== */
.v716-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(13,17,23,0.98);
  border-top: 1px solid var(--v716-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  height: 62px;
  backdrop-filter: blur(10px);
}
.v716-bottom-nav button, .v716-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--v716-muted);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 2px;
  transition: color 0.2s ease, transform 0.18s ease;
  font-family: inherit;
  cursor: pointer;
}
.v716-bottom-nav button:active, .v716-bottom-nav a:active { transform: scale(0.92); }
.v716-bottom-nav .v716-bn-ic { font-size: 2.1rem; line-height: 1; }
.v716-bottom-nav .v716-bn-center .v716-bn-ic {
  background: linear-gradient(135deg, var(--v716-accent), var(--v716-accent-2));
  color: var(--v716-bg);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 14px rgba(173,255,47,0.4);
  font-size: 2.2rem;
}
.v716-bottom-nav .v716-bn-active { color: var(--v716-accent); }

main { padding-bottom: 80px; }

/* ===== Utility ===== */
.v716-container { padding: 0 1rem; }
.v716-hide-desktop { display: block; }
.v716-text-accent { color: var(--v716-accent); }
.v716-center { text-align: center; }
.v716-mt-1 { margin-top: 0.6rem; }
.v716-mt-2 { margin-top: 1.2rem; }

/* ===== Desktop / tablet adjustments ===== */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .v716-bottom-nav { display: none; }
}
