/* ==========================================================================
   nino games - Core Stylesheet
   Website: ninogames.cyou
   All custom classes use the dynamic prefix "v8fc-" for namespace isolation.
   Mobile-first design (max-width: 430px base), responsive up to desktop.
   Color palette: #BAE1FF | #778899 | #FF91A4 | #1B263B | #2F2F2F
   ========================================================================== */

:root {
  --v8fc-primary: #FF91A4;
  --v8fc-primary-dark: #e57086;
  --v8fc-secondary: #778899;
  --v8fc-accent: #BAE1FF;
  --v8fc-bg: #1B263B;
  --v8fc-bg-dark: #11192a;
  --v8fc-bg-card: #2F2F2F;
  --v8fc-text: #ffffff;
  --v8fc-text-muted: #BAE1FF;
  --v8fc-text-dim: #9aa6b8;
  --v8fc-border: rgba(186, 225, 255, 0.14);
  --v8fc-gold: #ffd27a;
  --v8fc-success: #5ad19a;
  --v8fc-radius: 14px;
  --v8fc-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --v8fc-header-h: 56px;
  --v8fc-bottomnav-h: 62px;
}

/* Reset and base typography */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--v8fc-bg);
  color: var(--v8fc-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--v8fc-accent); text-decoration: none; }
a:hover { color: var(--v8fc-primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ==========================================================================
   Layout containers
   ========================================================================== */
.v8fc-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.v8fc-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

main { padding-top: calc(var(--v8fc-header-h) + 6px); }

@media (max-width: 768px) {
  main { padding-bottom: calc(var(--v8fc-bottomnav-h) + 18px); }
}

/* ==========================================================================
   Header / Top navigation
   ========================================================================== */
.v8fc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v8fc-header-h);
  background: linear-gradient(90deg, var(--v8fc-bg-dark), var(--v8fc-bg));
  border-bottom: 1px solid var(--v8fc-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.v8fc-header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v8fc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.v8fc-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.v8fc-brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v8fc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v8fc-brand-name span { color: var(--v8fc-primary); }

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

.v8fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.v8fc-btn:active { transform: scale(0.96); }

.v8fc-btn-register {
  background: linear-gradient(135deg, var(--v8fc-primary), var(--v8fc-primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 145, 164, 0.35);
}

.v8fc-btn-login {
  background: var(--v8fc-accent);
  color: var(--v8fc-bg-dark);
}

.v8fc-btn-ghost {
  background: transparent;
  color: var(--v8fc-text);
  border: 1px solid var(--v8fc-border);
}

.v8fc-menu-toggle {
  background: transparent;
  border: 1px solid var(--v8fc-border);
  color: var(--v8fc-text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Desktop menu links */
.v8fc-desktop-nav {
  display: none;
  align-items: center;
  gap: 18px;
}
.v8fc-desktop-nav a {
  color: var(--v8fc-text-muted);
  font-size: 1.3rem;
  font-weight: 500;
}
.v8fc-desktop-nav a:hover { color: var(--v8fc-primary); }

@media (min-width: 769px) {
  .v8fc-menu-toggle { display: none; }
  .v8fc-desktop-nav { display: flex; }
  .v8fc-brand-name { font-size: 2rem; }
}

/* ==========================================================================
   Mobile slide-out menu
   ========================================================================== */
.v8fc-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.v8fc-overlay-active { opacity: 1; visibility: visible; }

.v8fc-mobile-menu {
  position: fixed;
  top: 0; right: -78%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: var(--v8fc-bg-dark);
  padding: 70px 18px 24px;
  z-index: 9999;
  transition: right 0.28s ease;
  overflow-y: auto;
}
.v8fc-menu-open { right: 0; }

.v8fc-mobile-menu a {
  display: block;
  padding: 12px 14px;
  color: var(--v8fc-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--v8fc-border);
}
.v8fc-mobile-menu a:hover { color: var(--v8fc-primary); background: rgba(255, 145, 164, 0.08); }

.v8fc-mobile-menu-cta {
  margin-top: 16px;
  width: 100%;
}

/* ==========================================================================
   Carousel / Hero
   ========================================================================== */
.v8fc-carousel {
  position: relative;
  border-radius: var(--v8fc-radius);
  overflow: hidden;
  margin: 12px 0 18px;
  box-shadow: var(--v8fc-shadow);
}

.v8fc-carousel-viewport {
  overflow: hidden;
}

.v8fc-carousel-track {
  display: flex;
  transition: transform 0.55s ease;
  width: 100%;
}

.v8fc-carousel-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}

.v8fc-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
@media (min-width: 769px) { .v8fc-carousel-slide img { height: 360px; } }

.v8fc-carousel-caption {
  position: absolute;
  left: 16px; bottom: 18px;
  background: rgba(17, 25, 42, 0.78);
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 75%;
}
.v8fc-carousel-caption h3 { font-size: 1.5rem; color: var(--v8fc-primary); margin-bottom: 4px; }
.v8fc-carousel-caption p { font-size: 1.15rem; color: var(--v8fc-accent); }

.v8fc-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.v8fc-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none; cursor: pointer;
}
.v8fc-dot-active { background: var(--v8fc-primary); width: 22px; border-radius: 4px; }

/* ==========================================================================
   Sections & headings
   ========================================================================== */
.v8fc-section {
  padding: 22px 0;
}
.v8fc-section-alt { background: var(--v8fc-bg-dark); }

.v8fc-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--v8fc-text);
}
.v8fc-section-title span { color: var(--v8fc-primary); }

.v8fc-section-sub {
  font-size: 1.25rem;
  color: var(--v8fc-text-dim);
  margin-bottom: 14px;
}

.v8fc-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 14px 0 8px;
  color: var(--v8fc-text);
}
.v8fc-h1 span { color: var(--v8fc-primary); }

.v8fc-lead {
  font-size: 1.3rem;
  color: var(--v8fc-text-muted);
  margin-bottom: 12px;
}

/* ==========================================================================
   Game grid
   ========================================================================== */
.v8fc-game-block { margin-bottom: 18px; }

.v8fc-game-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.v8fc-game-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--v8fc-primary);
}
.v8fc-game-block-title i { font-size: 2rem; }

.v8fc-game-block-link {
  font-size: 1.15rem;
  color: var(--v8fc-accent);
  font-weight: 600;
}

.v8fc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 560px) { .v8fc-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 769px) { .v8fc-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }

.v8fc-card {
  background: var(--v8fc-bg-card);
  border: 1px solid var(--v8fc-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.v8fc-card:hover {
  transform: translateY(-3px);
  border-color: var(--v8fc-primary);
  box-shadow: 0 8px 20px rgba(255, 145, 164, 0.25);
}
.v8fc-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.v8fc-card-name {
  padding: 6px 8px;
  font-size: 1.05rem;
  color: var(--v8fc-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Promo / CTA banner
   ========================================================================== */
.v8fc-cta {
  background: linear-gradient(135deg, var(--v8fc-primary), #b85c79);
  border-radius: var(--v8fc-radius);
  padding: 18px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  box-shadow: 0 6px 20px rgba(255, 145, 164, 0.35);
}
.v8fc-cta h3 { font-size: 1.7rem; font-weight: 700; }
.v8fc-cta p { font-size: 1.2rem; opacity: 0.95; }
.v8fc-cta .v8fc-btn { background: #fff; color: var(--v8fc-primary-dark); align-self: flex-start; }

.v8fc-promo-link {
  color: var(--v8fc-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   Info / features / lists
   ========================================================================== */
.v8fc-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) { .v8fc-info-grid { grid-template-columns: 1fr 1fr; } }

.v8fc-info-card {
  background: var(--v8fc-bg-card);
  border: 1px solid var(--v8fc-border);
  border-radius: 12px;
  padding: 14px;
}
.v8fc-info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.45rem;
  color: var(--v8fc-primary);
  margin-bottom: 8px;
}
.v8fc-info-card p { font-size: 1.2rem; color: var(--v8fc-text-dim); }

.v8fc-list { padding-left: 18px; }
.v8fc-list li { margin-bottom: 6px; font-size: 1.22rem; color: var(--v8fc-text-muted); list-style: disc; }

.v8fc-steps {
  counter-reset: v8fc-step;
  display: grid;
  gap: 10px;
}
.v8fc-step {
  position: relative;
  padding: 12px 12px 12px 48px;
  background: var(--v8fc-bg-card);
  border-radius: 12px;
  border: 1px solid var(--v8fc-border);
  counter-increment: v8fc-step;
}
.v8fc-step::before {
  content: counter(v8fc-step);
  position: absolute;
  left: 12px; top: 12px;
  width: 26px; height: 26px;
  background: var(--v8fc-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.v8fc-step h4 { font-size: 1.3rem; color: var(--v8fc-text); margin-bottom: 3px; }
.v8fc-step p { font-size: 1.15rem; color: var(--v8fc-text-dim); }

/* ==========================================================================
   RTP table
   ========================================================================== */
.v8fc-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--v8fc-bg-card);
  border-radius: 12px;
  overflow: hidden;
}
.v8fc-rtp-table th, .v8fc-rtp-table td {
  padding: 9px 12px;
  text-align: left;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--v8fc-border);
}
.v8fc-rtp-table th { background: rgba(255, 145, 164, 0.18); color: var(--v8fc-primary); }
.v8fc-rtp-table td:last-child { color: var(--v8fc-gold); font-weight: 700; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.v8fc-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) { .v8fc-testimonials { grid-template-columns: 1fr 1fr; } }

.v8fc-testimonial {
  background: var(--v8fc-bg-card);
  border-radius: 12px;
  padding: 14px;
  border-left: 3px solid var(--v8fc-primary);
}
.v8fc-testimonial p { font-size: 1.18rem; color: var(--v8fc-text-muted); margin-bottom: 8px; }
.v8fc-testimonial-author { display: flex; align-items: center; gap: 8px; }
.v8fc-testimonial-author .v8fc-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--v8fc-primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.v8fc-testimonial-author span { font-size: 1.1rem; color: var(--v8fc-text-dim); }

/* ==========================================================================
   Winners ticker
   ========================================================================== */
.v8fc-winners {
  background: var(--v8fc-bg-card);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--v8fc-border);
}
.v8fc-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--v8fc-border);
  font-size: 1.15rem;
}
.v8fc-winner-row:last-child { border-bottom: none; }
.v8fc-winner-name { color: var(--v8fc-accent); font-weight: 600; }
.v8fc-winner-amount { color: var(--v8fc-gold); font-weight: 700; }

/* ==========================================================================
   Payment methods
   ========================================================================== */
.v8fc-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.v8fc-payment {
  flex: 1 1 30%;
  min-width: 90px;
  background: var(--v8fc-bg-card);
  border: 1px solid var(--v8fc-border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.v8fc-payment i { font-size: 2.2rem; color: var(--v8fc-accent); margin-bottom: 4px; }
.v8fc-payment span { display: block; font-size: 1.1rem; color: var(--v8fc-text-dim); }

/* ==========================================================================
   App download
   ========================================================================== */
.v8fc-app {
  background: linear-gradient(135deg, var(--v8fc-bg-dark), #1f3050);
  border: 1px solid var(--v8fc-border);
  border-radius: var(--v8fc-radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.v8fc-app h3 { font-size: 1.7rem; color: var(--v8fc-primary); }
.v8fc-app p { font-size: 1.2rem; color: var(--v8fc-text-muted); }
.v8fc-app-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.v8fc-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--v8fc-bg-dark);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
}
.v8fc-app-btn i { font-size: 1.8rem; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.v8fc-faq-item {
  background: var(--v8fc-bg-card);
  border: 1px solid var(--v8fc-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.v8fc-faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: var(--v8fc-text);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.v8fc-faq-question .v8fc-faq-icon { transition: transform 0.2s ease; color: var(--v8fc-primary); }
.v8fc-faq-open .v8fc-faq-question .v8fc-faq-icon { transform: rotate(45deg); }
.v8fc-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 14px;
  color: var(--v8fc-text-dim);
  font-size: 1.16rem;
}
.v8fc-faq-open .v8fc-faq-answer {
  max-height: 320px;
  padding: 0 14px 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.v8fc-footer {
  background: var(--v8fc-bg-dark);
  border-top: 1px solid var(--v8fc-border);
  padding: 24px 0 18px;
  margin-top: 22px;
}
.v8fc-footer-brand { font-size: 1.3rem; color: var(--v8fc-text-muted); margin-bottom: 12px; }
.v8fc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.v8fc-footer-links a {
  flex: 1 1 30%;
  min-width: 90px;
  background: var(--v8fc-bg-card);
  border: 1px solid var(--v8fc-border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--v8fc-text-muted);
}
.v8fc-footer-links a:hover { color: var(--v8fc-primary); border-color: var(--v8fc-primary); }

.v8fc-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v8fc-text-dim);
  padding-top: 10px;
  border-top: 1px solid var(--v8fc-border);
}

/* ==========================================================================
   Mobile bottom navigation
   ========================================================================== */
.v8fc-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v8fc-bottomnav-h);
  background: var(--v8fc-bg-dark);
  border-top: 1px solid var(--v8fc-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
}

.v8fc-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v8fc-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
  position: relative;
}
.v8fc-bottom-nav-btn i { font-size: 22px; }
.v8fc-bottom-nav-btn span { font-size: 1.0rem; }
.v8fc-bottom-nav-btn:active { transform: scale(0.92); }
.v8fc-bottom-nav-btn:hover { color: var(--v8fc-primary); }
.v8fc-nav-active { color: var(--v8fc-primary); }
.v8fc-nav-active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 24px; height: 3px;
  background: var(--v8fc-primary);
  border-radius: 2px;
}

/* Highlight promo buttons */
.v8fc-bottom-nav-btn.v8fc-nav-promo {
  color: var(--v8fc-primary);
}

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

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.v8fc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.v8fc-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.v8fc-text-center { text-align: center; }
.v8fc-mt-12 { margin-top: 12px; }
.v8fc-mt-18 { margin-top: 18px; }
.v8fc-flex-center { display: flex; align-items: center; justify-content: center; }
