/* ============================================================
   jiligames-casino.css
   Shared stylesheet for jiligames-casino.click
   All classes use the "v4b1-" prefix
   ============================================================ */

:root {
  --v4b1-bg: #1A1A1A;
  --v4b1-bg-soft: #232323;
  --v4b1-bg-card: #2A2520;
  --v4b1-primary: #FF8C00;
  --v4b1-primary-dark: #E07A00;
  --v4b1-accent: #BDB76B;
  --v4b1-accent-soft: #EEE8AA;
  --v4b1-cream: #FFEFD5;
  --v4b1-text: #FFEFD5;
  --v4b1-text-muted: #BDB76B;
  --v4b1-border: rgba(189, 183, 107, 0.25);
  --v4b1-radius: 12px;
  --v4b1-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --v4b1-header-h: 60px;
  --v4b1-bottom-h: 62px;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 30% 0%, #2a2018 0%, var(--v4b1-bg) 55%);
  color: var(--v4b1-text);
  font-size: 1.5rem;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Layout helpers ---------- */
.v4b1-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.v4b1-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.v4b1-grid { display: grid; gap: 10px; }
.v4b1-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.v4b1-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v4b1-header-h);
  background: linear-gradient(180deg, rgba(26,26,26,0.98), rgba(26,26,26,0.92));
  border-bottom: 1px solid var(--v4b1-border);
  backdrop-filter: blur(6px);
  transition: box-shadow .25s ease;
}
.v4b1-header-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.55); }
.v4b1-header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; max-width: 430px; margin: 0 auto;
}
.v4b1-logo { display: flex; align-items: center; gap: 8px; color: var(--v4b1-cream); font-weight: 700; font-size: 1.5rem; }
.v4b1-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v4b1-logo-text { line-height: 1.1; }
.v4b1-logo-text small { display: block; font-size: 1rem; color: var(--v4b1-accent); font-weight: 500; }
.v4b1-header-actions { display: flex; align-items: center; gap: 6px; }
.v4b1-menu-btn {
  background: transparent; border: 1px solid var(--v4b1-border); color: var(--v4b1-cream);
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 1.6rem;
}

/* ---------- Buttons ---------- */
.v4b1-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 1.3rem;
  border: none; cursor: pointer; transition: transform .15s ease, background .2s ease;
  text-transform: uppercase; letter-spacing: .3px;
}
.v4b1-btn:active { transform: scale(.96); }
.v4b1-btn-primary { background: linear-gradient(180deg, var(--v4b1-primary), var(--v4b1-primary-dark)); color: #1A1A1A; }
.v4b1-btn-primary:hover { filter: brightness(1.05); color: #1A1A1A; }
.v4b1-btn-outline { background: transparent; color: var(--v4b1-accent-soft); border: 1.5px solid var(--v4b1-accent); }
.v4b1-btn-block { display: flex; width: 100%; padding: 12px 14px; font-size: 1.45rem; min-height: 44px; }
.v4b1-link-text { color: var(--v4b1-primary); font-weight: 700; }
.v4b1-link-text:hover { color: var(--v4b1-accent-soft); }

/* ---------- Mobile menu panel ---------- */
.v4b1-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 84%; max-width: 360px; height: 100vh;
  background: var(--v4b1-bg-soft); z-index: 9999; transition: right .28s ease;
  padding: 70px 16px 24px; overflow-y: auto; box-shadow: var(--v4b1-shadow);
}
.v4b1-mobile-menu.v4b1-menu-open { right: 0; }
.v4b1-mobile-menu .v4b1-close {
  position: absolute; top: 14px; right: 14px; background: transparent; border: none; color: var(--v4b1-cream);
  font-size: 2rem; cursor: pointer;
}
.v4b1-mobile-menu h4 { color: var(--v4b1-accent); font-size: 1.3rem; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 1px; }
.v4b1-mobile-menu a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--v4b1-cream); font-size: 1.4rem;
  border-bottom: 1px solid rgba(189,183,107,0.12);
}
.v4b1-mobile-menu a:hover { background: rgba(255,140,0,0.12); color: var(--v4b1-primary); }
.v4b1-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.v4b1-overlay.v4b1-menu-open { opacity: 1; pointer-events: auto; }

/* ---------- Page spacing ---------- */
.v4b1-main { padding-top: calc(var(--v4b1-header-h) + 8px); padding-bottom: 24px; }
@media (max-width: 768px) {
  .v4b1-main { padding-bottom: calc(var(--v4b1-bottom-h) + 16px); }
}

/* ---------- Section ---------- */
.v4b1-section { padding: 18px 0; }
.v4b1-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.v4b1-section-title {
  font-size: 1.7rem; color: var(--v4b1-cream); font-weight: 800; margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.v4b1-section-title .v4b1-bar { width: 4px; height: 18px; background: var(--v4b1-primary); border-radius: 4px; }
.v4b1-section-sub { color: var(--v4b1-text-muted); font-size: 1.25rem; }

/* ---------- Hero carousel ---------- */
.v4b1-carousel { position: relative; border-radius: var(--v4b1-radius); overflow: hidden; box-shadow: var(--v4b1-shadow); }
.v4b1-carousel-track { position: relative; height: 180px; }
.v4b1-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease;
  cursor: pointer;
}
.v4b1-carousel-slide.v4b1-slide-active { opacity: 1; }
.v4b1-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v4b1-carousel-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px; color: #fff;
  font-size: 1.4rem; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.v4b1-carousel-dots { display: flex; gap: 6px; justify-content: center; padding: 6px 0; }
.v4b1-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; }
.v4b1-carousel-dot.v4b1-dot-active { background: var(--v4b1-primary); width: 18px; border-radius: 4px; }

/* ---------- Category filter tabs ---------- */
.v4b1-filter { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.v4b1-filter::-webkit-scrollbar { display: none; }
.v4b1-filter-tab {
  white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 1.25rem; font-weight: 600;
  background: var(--v4b1-bg-card); color: var(--v4b1-cream); border: 1px solid var(--v4b1-border); cursor: pointer;
}
.v4b1-filter-tab.v4b1-filter-active { background: var(--v4b1-primary); color: #1A1A1A; border-color: transparent; }

/* ---------- Game grid ---------- */
.v4b1-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (min-width: 380px) { .v4b1-game-grid { gap: 12px; } }
.v4b1-game-card {
  background: var(--v4b1-bg-card); border-radius: 10px; padding: 6px; text-align: center;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, border-color .2s ease;
  overflow: hidden;
}
.v4b1-game-card:hover { transform: translateY(-3px); border-color: var(--v4b1-primary); }
.v4b1-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; background: #000; }
.v4b1-game-card-name {
  margin-top: 6px; font-size: 1.15rem; color: var(--v4b1-cream); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v4b1-game-card-tag {
  display: inline-block; font-size: 1rem; color: var(--v4b1-accent); margin-top: 2px;
  text-transform: uppercase; letter-spacing: .4px;
}

/* ---------- Info / promo cards ---------- */
.v4b1-card {
  background: var(--v4b1-bg-card); border: 1px solid var(--v4b1-border); border-radius: var(--v4b1-radius);
  padding: 14px; box-shadow: var(--v4b1-shadow);
}
.v4b1-card h3 { margin: 0 0 8px; color: var(--v4b1-cream); font-size: 1.45rem; }
.v4b1-card p { margin: 0 0 8px; color: var(--v4b1-text); font-size: 1.3rem; line-height: 1.55; }
.v4b1-card-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 380px) { .v4b1-card-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- RTP / stats grid ---------- */
.v4b1-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.v4b1-stat {
  background: linear-gradient(180deg, #2a2520, #1f1a14); border: 1px solid var(--v4b1-border);
  border-radius: 10px; padding: 10px; text-align: center;
}
.v4b1-stat .v4b1-num { font-size: 1.9rem; font-weight: 800; color: var(--v4b1-primary); }
.v4b1-stat .v4b1-lbl { font-size: 1.1rem; color: var(--v4b1-text-muted); text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Testimonial ---------- */
.v4b1-testi {
  background: var(--v4b1-bg-card); border-left: 3px solid var(--v4b1-primary); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px;
}
.v4b1-testi p { margin: 0 0 6px; font-size: 1.25rem; color: var(--v4b1-cream); font-style: italic; }
.v4b1-testi .v4b1-author { font-size: 1.1rem; color: var(--v4b1-accent); font-weight: 700; }

/* ---------- Payment row ---------- */
.v4b1-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v4b1-pay {
  flex: 1 1 30%; min-width: 80px; background: var(--v4b1-bg-card); border: 1px solid var(--v4b1-border);
  border-radius: 8px; padding: 8px; text-align: center; font-size: 1.15rem; color: var(--v4b1-cream);
}
.v4b1-pay .material-icons, .v4b1-pay i { font-size: 22px; color: var(--v4b1-primary); }

/* ---------- Winner ticker ---------- */
.v4b1-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--v4b1-bg-card); border: 1px solid var(--v4b1-border); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 6px;
}
.v4b1-winner .v4b1-wname { color: var(--v4b1-cream); font-weight: 600; font-size: 1.2rem; }
.v4b1-winner .v4b1-wamount { color: var(--v4b1-primary); font-weight: 800; font-size: 1.3rem; }
.v4b1-winner .v4b1-wgame { color: var(--v4b1-text-muted); font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.v4b1-faq-item { background: var(--v4b1-bg-card); border: 1px solid var(--v4b1-border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.v4b1-faq-q { width: 100%; background: transparent; border: none; padding: 12px; text-align: left; cursor: pointer; color: var(--v4b1-cream); font-weight: 700; font-size: 1.3rem; display: flex; justify-content: space-between; align-items: center; }
.v4b1-faq-icon { transition: transform .25s ease; color: var(--v4b1-primary); }
.v4b1-faq-icon-open { transform: rotate(45deg); }
.v4b1-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 12px; color: var(--v4b1-text); font-size: 1.25rem; }
.v4b1-faq-open .v4b1-faq-a { max-height: 280px; padding: 0 12px 12px; }

/* ---------- Achievements ---------- */
.v4b1-achv { display: flex; align-items: center; gap: 10px; background: var(--v4b1-bg-card); border-radius: 8px; padding: 10px; margin-bottom: 8px; border-left: 3px solid var(--v4b1-accent); }
.v4b1-achv .v4b1-icon { font-size: 24px; color: var(--v4b1-primary); }
.v4b1-achv .v4b1-atitle { font-weight: 700; color: var(--v4b1-cream); font-size: 1.3rem; }
.v4b1-achv .v4b1-adesc { color: var(--v4b1-text-muted); font-size: 1.15rem; }

/* ---------- Tricks list ---------- */
.v4b1-trick { display: flex; gap: 10px; margin-bottom: 10px; }
.v4b1-trick-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--v4b1-primary); color: #1A1A1A; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.v4b1-trick p { margin: 0; font-size: 1.25rem; color: var(--v4b1-text); }

/* ---------- App CTA ---------- */
.v4b1-app-cta { background: linear-gradient(135deg, #2a2018, #3a2e1a); border: 1px solid var(--v4b1-primary); border-radius: var(--v4b1-radius); padding: 14px; text-align: center; }
.v4b1-app-cta h3 { color: var(--v4b1-primary); margin: 0 0 6px; font-size: 1.6rem; }
.v4b1-app-cta p { color: var(--v4b1-cream); margin: 0 0 10px; font-size: 1.25rem; }

/* ---------- Reveal animation ---------- */
.v4b1-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.v4b1-reveal.v4b1-visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.v4b1-footer { background: #141210; border-top: 1px solid var(--v4b1-border); padding: 20px 12px 16px; margin-top: 12px; }
.v4b1-footer-brand { color: var(--v4b1-cream); font-size: 1.35rem; line-height: 1.55; margin-bottom: 10px; }
.v4b1-footer-brand strong { color: var(--v4b1-primary); }
.v4b1-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.v4b1-footer-promos .v4b1-btn { flex: 1 1 45%; font-size: 1.2rem; padding: 8px 10px; }
.v4b1-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 12px; }
.v4b1-footer-links a { color: var(--v4b1-accent); font-size: 1.15rem; }
.v4b1-footer-copy { border-top: 1px solid var(--v4b1-border); padding-top: 10px; color: var(--v4b1-text-muted); font-size: 1.1rem; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.v4b1-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--v4b1-bottom-h);
  background: linear-gradient(180deg, #1f1a14, #141210);
  border-top: 1px solid var(--v4b1-primary);
  display: flex; justify-content: space-around; align-items: stretch; z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.6);
}
.v4b1-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--v4b1-text-muted); cursor: pointer;
  font-size: 1rem; padding: 4px 2px; min-width: 60px; min-height: 60px;
  transition: color .2s ease, transform .15s ease;
  text-decoration: none;
}
.v4b1-bottom-nav-btn:active { transform: scale(.92); }
.v4b1-bottom-nav-btn .material-icons,
.v4b1-bottom-nav-btn i { font-size: 24px; margin-bottom: 2px; color: var(--v4b1-cream); }
.v4b1-bottom-nav-btn span.v4b1-label { font-size: 1rem; color: var(--v4b1-text-muted); letter-spacing: .3px; }
.v4b1-bottom-nav-btn.v4b1-nav-current { background: rgba(255,140,0,0.12); }
.v4b1-bottom-nav-btn.v4b1-nav-current .material-icons,
.v4b1-bottom-nav-btn.v4b1-nav-current i,
.v4b1-bottom-nav-btn.v4b1-nav-current .v4b1-label { color: var(--v4b1-primary); }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .v4b1-bottom-nav { display: none; }
  .v4b1-main { padding-bottom: 24px; }
}

/* Desktop-only navigation shown on wider screens */
.v4b1-desktop-nav { display: none; }
@media (min-width: 769px) {
  .v4b1-desktop-nav { display: flex; gap: 16px; align-items: center; }
  .v4b1-desktop-nav a { color: var(--v4b1-cream); font-size: 1.25rem; }
  .v4b1-desktop-nav a:hover { color: var(--v4b1-primary); }
  .v4b1-container, .v4b1-wrapper { max-width: 960px; }
  .v4b1-header-inner { max-width: 960px; }
  .v4b1-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v4b1-card-grid { grid-template-columns: repeat(3, 1fr); }
  .v4b1-carousel-track { height: 320px; }
}

/* ---------- Utility ---------- */
.v4b1-text-center { text-align: center; }
.v4b1-mt-8 { margin-top: 8px; }
.v4b1-mt-12 { margin-top: 12px; }
.v4b1-mt-16 { margin-top: 16px; }
.v4b1-mb-8 { margin-bottom: 8px; }
.v4b1-mb-12 { margin-bottom: 12px; }
.v4b1-hide-mobile { display: none; }
@media (min-width: 769px) { .v4b1-hide-mobile { display: initial; } .v4b1-hide-desktop { display: none; } }
