/*!
 * nino games - core stylesheet
 * Site: ninogames.homes
 * All custom classes use the "vec4-" prefix for namespace isolation
 * Palette: #CC99FF | #DEB887 | #1A1A2E | #D2691E | #9932CC | #6C757D
 * Mobile-first HTML5 casino design (max-width: 430px)
 * Code comments in English only
 */

/* ===== Root variables ===== */
:root {
  --vec4-bg: #1A1A2E;
  --vec4-bg-2: #232347;
  --vec4-bg-3: #12121f;
  --vec4-bg-card: #20203a;
  --vec4-primary: #9932CC;
  --vec4-primary-light: #CC99FF;
  --vec4-accent: #D2691E;
  --vec4-gold: #DEB887;
  --vec4-text: #CC99FF;
  --vec4-text-light: #ECE3FA;
  --vec4-muted: #6C757D;
  --vec4-white: #ffffff;
  --vec4-border: rgba(204, 153, 255, 0.16);
  --vec4-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
  --vec4-radius: 14px;
  --vec4-radius-sm: 10px;
  --vec4-gradient: linear-gradient(135deg, #9932CC 0%, #D2691E 100%);
  --vec4-gradient-soft: linear-gradient(135deg, rgba(153, 50, 204, 0.22), rgba(210, 105, 30, 0.18));
  --vec4-header-h: 6rem;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--vec4-bg);
  color: var(--vec4-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--vec4-gold); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.4rem; font-weight: 700; }
h1 { font-size: 2.4rem; color: var(--vec4-white); }
h2 { font-size: 2rem; color: var(--vec4-primary-light); }
h3 { font-size: 1.7rem; color: var(--vec4-gold); }
p { margin: 0 0 1.2rem; }

/* ===== Layout containers ===== */
.vec4-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.vec4-container { width: 100%; padding: 0 1.2rem; }
.vec4-section { padding: 2.4rem 0; }
.vec4-section-alt { background: var(--vec4-bg-2); }

/* ===== Header ===== */
.vec4-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(18, 18, 31, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vec4-border);
  transition: box-shadow .25s ease, background .25s ease;
}
.vec4-header-scrolled { box-shadow: var(--vec4-shadow); background: rgba(18, 18, 31, 1); }
.vec4-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; gap: 0.6rem;
}
.vec4-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.vec4-brand img { width: 3rem; height: 3rem; border-radius: 8px; }
.vec4-brand-name {
  font-size: 1.7rem; font-weight: 800; color: var(--vec4-white);
  letter-spacing: 0.3px; white-space: nowrap;
}
.vec4-brand-name span { color: var(--vec4-gold); }
.vec4-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.vec4-menu-btn {
  background: none; border: 0; color: var(--vec4-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Buttons ===== */
.vec4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  font-size: 1.25rem; font-weight: 700; cursor: pointer;
  border: 0; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  min-height: 40px; text-align: center; line-height: 1;
}
.vec4-btn:active { transform: scale(0.96); }
.vec4-btn-primary { background: var(--vec4-gradient); color: var(--vec4-white); box-shadow: 0 6px 16px rgba(153, 50, 204, 0.45); }
.vec4-btn-primary:hover { filter: brightness(1.08); }
.vec4-btn-gold { background: linear-gradient(135deg, #DEB887, #D2691E); color: #1A1A2E; box-shadow: 0 6px 16px rgba(210, 105, 30, 0.4); }
.vec4-btn-ghost { background: transparent; color: var(--vec4-primary-light); border: 1px solid var(--vec4-border); }
.vec4-btn-block { width: 100%; }
.vec4-btn-lg { padding: 1rem 1.4rem; font-size: 1.4rem; min-height: 48px; }

/* ===== Mobile menu ===== */
.vec4-mobile-menu {
  position: fixed; top: 0; right: 0; width: 80%; max-width: 320px; height: 100vh;
  background: var(--vec4-bg-3); z-index: 9999;
  transform: translateX(105%); transition: transform .28s ease;
  padding: 6rem 1.4rem 2rem; overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 1px solid var(--vec4-border);
}
.vec4-menu-open { transform: translateX(0); }
.vec4-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.vec4-menu-open + .vec4-menu-overlay, .vec4-menu-overlay.vec4-show { opacity: 1; pointer-events: auto; }
.vec4-mobile-menu h4 { color: var(--vec4-gold); font-size: 1.3rem; margin: 1.2rem 0 0.6rem; text-transform: uppercase; letter-spacing: 1px; }
.vec4-mobile-menu a {
  display: block; padding: 0.9rem 0.6rem; color: var(--vec4-text-light);
  border-bottom: 1px solid var(--vec4-border); font-size: 1.35rem;
}
.vec4-mobile-menu a:hover, .vec4-mobile-menu a:focus { color: var(--vec4-gold); background: var(--vec4-bg-2); }
.vec4-menu-close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: var(--vec4-white); font-size: 2.2rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.vec4-menu-cta { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.4rem; }

/* ===== Hero / Carousel ===== */
main { padding-top: var(--vec4-header-h); }
.vec4-carousel {
  position: relative; overflow: hidden; border-radius: 0 0 22px 22px;
  box-shadow: var(--vec4-shadow); background: var(--vec4-bg-3);
}
.vec4-carousel-track { display: flex; transition: transform .55s cubic-bezier(.4,.0,.2,1); }
.vec4-slide { min-width: 100%; position: relative; }
.vec4-slide img { width: 100%; height: 200px; object-fit: cover; }
.vec4-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem;
  background: linear-gradient(180deg, rgba(18,18,31,0) 0%, rgba(18,18,31,0.92) 100%);
}
.vec4-slide-title { font-size: 1.8rem; font-weight: 800; color: var(--vec4-white); margin: 0 0 0.3rem; }
.vec4-slide-sub { font-size: 1.2rem; color: var(--vec4-gold); margin: 0 0 0.6rem; }
.vec4-carousel-dots { display: flex; gap: 0.5rem; justify-content: center; padding: 0.6rem 0; }
.vec4-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(204,153,255,0.35); border: 0; cursor: pointer; padding: 0; }
.vec4-dot-active { background: var(--vec4-gold); width: 18px; border-radius: 4px; transition: all .25s ease; }

/* ===== Section heading ===== */
.vec4-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; gap: 0.8rem; }
.vec4-section-head h2 { margin: 0; font-size: 1.7rem; }
.vec4-section-head .vec4-link { font-size: 1.2rem; color: var(--vec4-gold); font-weight: 600; }

/* ===== Game filter ===== */
.vec4-filter-row { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem; -webkit-overflow-scrolling: touch; }
.vec4-filter-row::-webkit-scrollbar { display: none; }
.vec4-filter-btn {
  flex: 0 0 auto; padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--vec4-bg-2); color: var(--vec4-text-light);
  font-size: 1.2rem; font-weight: 600; border: 1px solid var(--vec4-border);
  cursor: pointer; white-space: nowrap; transition: all .2s ease;
}
.vec4-filter-btn:hover { color: var(--vec4-gold); }
.vec4-filter-active { background: var(--vec4-gradient); color: var(--vec4-white); border-color: transparent; }

/* ===== Game grid ===== */
.vec4-group-title {
  font-size: 1.45rem; color: var(--vec4-gold); font-weight: 800;
  margin: 1.6rem 0 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.vec4-group-title i { font-size: 1.6rem; }
.vec4-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.vec4-game-card {
  background: var(--vec4-bg-card); border-radius: var(--vec4-radius-sm);
  overflow: hidden; cursor: pointer; position: relative;
  border: 1px solid var(--vec4-border); transition: transform .18s ease, box-shadow .2s ease;
}
.vec4-game-card:hover, .vec4-game-card:active { transform: translateY(-3px); box-shadow: var(--vec4-shadow); border-color: var(--vec4-gold); }
.vec4-game-thumb { position: relative; aspect-ratio: 1/1; background: #0e0e1c; }
.vec4-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vec4-game-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(18,18,31,0.55); opacity: 0; transition: opacity .2s ease;
}
.vec4-game-card:hover .vec4-game-overlay, .vec4-game-card:active .vec4-game-overlay { opacity: 1; }
.vec4-game-overlay i { color: var(--vec4-white); font-size: 2.4rem; }
.vec4-game-name {
  padding: 0.5rem 0.4rem; font-size: 1.05rem; color: var(--vec4-text-light);
  text-align: center; line-height: 1.2; min-height: 3rem;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.vec4-game-tag {
  position: absolute; top: 0.4rem; left: 0.4rem; z-index: 2;
  background: var(--vec4-accent); color: var(--vec4-white);
  font-size: 0.9rem; padding: 0.15rem 0.5rem; border-radius: 6px; font-weight: 700;
}

/* ===== Cards & misc ===== */
.vec4-card {
  background: var(--vec4-bg-card); border-radius: var(--vec4-radius);
  padding: 1.4rem; border: 1px solid var(--vec4-border); box-shadow: var(--vec4-shadow);
}
.vec4-card-title { color: var(--vec4-gold); font-size: 1.45rem; margin: 0 0 0.6rem; font-weight: 700; }
.vec4-card p { color: var(--vec4-text-light); font-size: 1.25rem; line-height: 1.7; }
.vec4-features { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.vec4-feature {
  display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem;
  background: var(--vec4-bg-2); border-radius: var(--vec4-radius-sm); border-left: 3px solid var(--vec4-primary);
}
.vec4-feature i { color: var(--vec4-gold); font-size: 1.9rem; flex-shrink: 0; }
.vec4-feature h3 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.vec4-feature p { margin: 0; font-size: 1.15rem; color: var(--vec4-text-light); }

/* ===== Promo link inline (text links) ===== */
.vec4-promo-link {
  color: var(--vec4-gold); font-weight: 800; cursor: pointer;
  border-bottom: 2px dotted var(--vec4-accent);
}
.vec4-promo-link:hover { color: var(--vec4-primary-light); }

/* ===== FAQ ===== */
.vec4-faq-item { background: var(--vec4-bg-card); border-radius: var(--vec4-radius-sm); margin-bottom: 0.8rem; border: 1px solid var(--vec4-border); overflow: hidden; }
.vec4-faq-q { padding: 1rem 1.2rem; font-weight: 700; color: var(--vec4-primary-light); font-size: 1.25rem; cursor: pointer; display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.vec4-faq-a { padding: 0 1.2rem 1rem; color: var(--vec4-text-light); font-size: 1.18rem; line-height: 1.6; }

/* ===== Testimonials ===== */
.vec4-testi-row { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
.vec4-testi-row::-webkit-scrollbar { display: none; }
.vec4-testi { flex: 0 0 85%; background: var(--vec4-bg-card); border-radius: var(--vec4-radius); padding: 1.1rem; border: 1px solid var(--vec4-border); }
.vec4-testi-stars { color: var(--vec4-gold); margin-bottom: 0.4rem; font-size: 1.1rem; }
.vec4-testi p { margin: 0 0 0.5rem; font-size: 1.18rem; color: var(--vec4-text-light); }
.vec4-testi-meta { font-size: 1.05rem; color: var(--vec4-muted); }

/* ===== Payment row ===== */
.vec4-pay-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.vec4-pay { background: var(--vec4-bg-2); padding: 0.7rem 1rem; border-radius: 10px; border: 1px solid var(--vec4-border); font-size: 1.1rem; color: var(--vec4-text-light); display: inline-flex; align-items: center; gap: 0.4rem; }

/* ===== Winners ===== */
.vec4-winner-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.vec4-winner { background: var(--vec4-bg-2); border-radius: var(--vec4-radius-sm); padding: 0.8rem; border: 1px solid var(--vec4-border); }
.vec4-winner-name { color: var(--vec4-gold); font-weight: 700; font-size: 1.15rem; }
.vec4-winner-amt { color: var(--vec4-primary-light); font-weight: 800; font-size: 1.3rem; margin: 0.2rem 0; }
.vec4-winner-game { color: var(--vec4-muted); font-size: 1.05rem; }

/* ===== RTP mini ===== */
.vec4-rtp-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.vec4-rtp-name { flex: 0 0 42%; font-size: 1.1rem; color: var(--vec4-text-light); }
.vec4-rtp-bar { flex: 1; height: 0.8rem; background: var(--vec4-bg-3); border-radius: 6px; overflow: hidden; }
.vec4-rtp-fill { height: 100%; background: var(--vec4-gradient); border-radius: 6px; }
.vec4-rtp-val { flex: 0 0 14%; text-align: right; font-weight: 700; color: var(--vec4-gold); font-size: 1.1rem; }

/* ===== CTA banner ===== */
.vec4-cta-banner { background: var(--vec4-gradient-soft); border: 1px solid var(--vec4-border); border-radius: var(--vec4-radius); padding: 1.6rem 1.2rem; text-align: center; }
.vec4-cta-banner h3 { margin-bottom: 0.4rem; font-size: 1.6rem; }
.vec4-cta-banner p { color: var(--vec4-text-light); margin-bottom: 1rem; font-size: 1.2rem; }

/* ===== Footer ===== */
.vec4-footer { background: var(--vec4-bg-3); border-top: 1px solid var(--vec4-border); padding: 2.4rem 0 9rem; }
.vec4-footer-brand { color: var(--vec4-text-light); font-size: 1.2rem; line-height: 1.6; margin-bottom: 1.2rem; }
.vec4-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.vec4-footer-promos .vec4-btn { font-size: 1.1rem; padding: 0.55rem 0.9rem; }
.vec4-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.8rem; margin-bottom: 1.2rem; }
.vec4-footer-links a { color: var(--vec4-text); font-size: 1.12rem; }
.vec4-footer-links a:hover { color: var(--vec4-gold); }
.vec4-footer-copy { color: var(--vec4-muted); font-size: 1.05rem; border-top: 1px solid var(--vec4-border); padding-top: 1rem; text-align: center; }

/* ===== Mobile bottom navigation ===== */
.vec4-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(18, 18, 31, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--vec4-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; padding: 0 0.3rem;
}
.vec4-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--vec4-text); font-size: 1rem; font-weight: 600;
  min-width: 60px; min-height: 60px; text-decoration: none;
  transition: color .2s ease, transform .15s ease; position: relative;
}
.vec4-bottom-nav a i, .vec4-bottom-nav a .material-icons-outlined,
.vec4-bottom-nav a ion-icon { font-size: 2.2rem; line-height: 1; }
.vec4-bottom-nav a:active { transform: scale(0.9); }
.vec4-bottom-nav a:hover { color: var(--vec4-primary-light); }
.vec4-bottom-nav a.vec4-nav-current { color: var(--vec4-gold); }
.vec4-bottom-nav a.vec4-nav-current::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--vec4-gold);
}
.vec4-nav-badge {
  position: absolute; top: 6px; right: 18%; background: var(--vec4-accent);
  color: var(--vec4-white); font-size: 0.8rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}
.vec4-nav-promo { color: var(--vec4-gold); }

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

/* ===== Utility ===== */
.vec4-text-gold { color: var(--vec4-gold); }
.vec4-text-purple { color: var(--vec4-primary-light); }
.vec4-center { text-align: center; }
.vec4-mt-1 { margin-top: 0.6rem; }
.vec4-mt-2 { margin-top: 1.2rem; }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .vec4-bottom-nav { display: none; }
  .vec4-wrapper { max-width: 760px; }
  .vec4-header-inner { max-width: 760px; }
  .vec4-grid { grid-template-columns: repeat(5, 1fr); }
  main { padding-bottom: 0; }
}

/* ===== Mobile bottom padding so content isn't hidden behind nav ===== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  body { padding-bottom: 0; }
}
