/* =========================================================
 * 36Win Casino - Core Stylesheet (design-d61f.css)
 * All classes use the vf82- prefix for namespace isolation.
 * Mobile-first design. Root font 62.5% => 1rem = 10px.
 * Palette: #0F0F23 #20B2AA #F5F5F5 #D2B48C #98FB98 #90EE90
 * ======================================================= */

:root {
  --vf82-bg: #0F0F23;
  --vf82-bg-soft: #171734;
  --vf82-bg-card: #1f1f4a;
  --vf82-primary: #20B2AA;
  --vf82-primary-dark: #15908c;
  --vf82-gold: #D2B48C;
  --vf82-text: #F5F5F5;
  --vf82-text-muted: #b6b6cf;
  --vf82-green: #98FB98;
  --vf82-green-soft: #90EE90;
  --vf82-danger: #ff5b6b;
  --vf82-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45);
  --vf82-radius: 1.2rem;
  --vf82-radius-sm: 0.8rem;
  --vf82-max: 430px;
}

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

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

body {
  font-family: "Segoe UI", "Inter", "Roboto", system-ui, -apple-system, sans-serif;
  background: var(--vf82-bg);
  background-image: radial-gradient(circle at 20% 0%, rgba(32, 178, 170, 0.18), transparent 55%),
                    radial-gradient(circle at 90% 15%, rgba(210, 180, 140, 0.14), transparent 50%);
  background-attachment: fixed;
  color: var(--vf82-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  padding-bottom: 7.2rem;
}

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

a { color: var(--vf82-green-soft); text-decoration: none; }

.vf82-wrapper { width: 100%; max-width: var(--vf82-max); margin: 0 auto; padding: 0 1.2rem; }

/* ---------- Header ---------- */
.vf82-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 15, 35, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 0.1rem solid rgba(32, 178, 170, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.vf82-header-scrolled { background: rgba(10, 10, 25, 0.98); box-shadow: var(--vf82-shadow); }
.vf82-header-inner {
  max-width: var(--vf82-max); margin: 0 auto; padding: 0.7rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.vf82-logo { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.vf82-logo img { width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0.15rem solid var(--vf82-primary); }
.vf82-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--vf82-text); white-space: nowrap; }
.vf82-logo-text span { color: var(--vf82-primary); }

.vf82-header-btns { display: flex; align-items: center; gap: 0.5rem; }
.vf82-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.4rem; padding: 0 1.2rem; border: none; border-radius: 2rem;
  font-size: 1.25rem; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.vf82-btn:active { transform: scale(0.95); }
.vf82-btn-login {
  background: transparent; color: var(--vf82-text);
  border: 0.15rem solid var(--vf82-primary);
}
.vf82-btn-register {
  background: linear-gradient(135deg, var(--vf82-primary), var(--vf82-green-soft));
  color: #07221f; box-shadow: 0 0.4rem 1rem rgba(32, 178, 170, 0.45);
}
.vf82-menu-toggle {
  background: transparent; border: none; color: var(--vf82-text); font-size: 1.8rem; cursor: pointer;
  width: 3.4rem; height: 3.4rem; display: flex; align-items: center; justify-content: center;
}

/* ---------- Mobile menu + overlay ---------- */
.vf82-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
}
.vf82-overlay-active { opacity: 1; visibility: visible; }
.vf82-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 80%; max-width: 30rem; height: 100vh;
  background: var(--vf82-bg-soft); z-index: 9999; padding: 2rem 1.6rem;
  transform: translateX(0); transition: right 0.3s ease; overflow-y: auto;
  border-left: 0.15rem solid rgba(32, 178, 170, 0.3);
}
.vf82-menu-open { right: 0; }
.vf82-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.vf82-menu-title { font-size: 1.6rem; font-weight: 800; color: var(--vf82-primary); }
.vf82-menu-close { background: transparent; border: none; color: var(--vf82-text); font-size: 1.8rem; cursor: pointer; }
.vf82-menu-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.vf82-menu-list a {
  display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.2rem;
  background: var(--vf82-bg-card); border-radius: var(--vf82-radius-sm);
  color: var(--vf82-text); font-size: 1.3rem; font-weight: 600;
}
.vf82-menu-list a:active { background: var(--vf82-primary-dark); }
.vf82-menu-list i, .vf82-menu-list span.mi { color: var(--vf82-primary); font-size: 1.6rem; }
.vf82-menu-cta { margin-top: 1.6rem; }

/* ---------- Carousel ---------- */
.vf82-carousel { position: relative; margin-top: 6rem; border-radius: var(--vf82-radius); overflow: hidden; box-shadow: var(--vf82-shadow); }
.vf82-slide {
  position: relative; display: none; cursor: pointer; aspect-ratio: 16 / 9;
}
.vf82-slide-active { display: block; }
.vf82-slide img { width: 100%; height: 100%; object-fit: cover; }
.vf82-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem;
  background: linear-gradient(0deg, rgba(15, 15, 35, 0.92), transparent);
}
.vf82-slide-caption h2 { font-size: 1.6rem; color: var(--vf82-gold); font-weight: 800; }
.vf82-slide-caption p { font-size: 1.1rem; color: var(--vf82-text); margin-top: 0.2rem; }
.vf82-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 3rem; height: 3rem; border-radius: 50%; border: none;
  background: rgba(15, 15, 35, 0.6); color: var(--vf82-text); font-size: 1.4rem; cursor: pointer;
}
.vf82-carousel-prev { left: 0.6rem; }
.vf82-carousel-next { right: 0.6rem; }
.vf82-carousel-dots { position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 5; }
.vf82-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(245, 245, 245, 0.4); border: none; cursor: pointer; }
.vf82-dot-active { background: var(--vf82-primary); width: 2rem; border-radius: 0.4rem; }

/* ---------- Sections ---------- */
.vf82-section { padding: 2rem 0; }
.vf82-section-alt { background: var(--vf82-bg-soft); border-radius: var(--vf82-radius); padding: 1.6rem; margin: 1.2rem 0; }
.vf82-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.8rem;
  background: linear-gradient(120deg, var(--vf82-gold), var(--vf82-green-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.vf82-h2 {
  font-size: 1.7rem; font-weight: 800; color: var(--vf82-text); margin-bottom: 1rem;
  padding-left: 0.8rem; border-left: 0.3rem solid var(--vf82-primary);
}
.vf82-h3 { font-size: 1.4rem; font-weight: 700; color: var(--vf82-gold); margin: 1rem 0 0.5rem; }
.vf82-intro { color: var(--vf82-text-muted); font-size: 1.3rem; }
.vf82-text-link { color: var(--vf82-gold); font-weight: 700; text-decoration: underline; }

/* ---------- Filter buttons ---------- */
.vf82-filter-bar { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.6rem 0 1rem; -webkit-overflow-scrolling: touch; }
.vf82-filter-bar::-webkit-scrollbar { display: none; }
.vf82-filter-btn {
  flex-shrink: 0; padding: 0.7rem 1.2rem; border-radius: 2rem; border: 0.1rem solid rgba(32, 178, 170, 0.4);
  background: var(--vf82-bg-card); color: var(--vf82-text); font-size: 1.2rem; font-weight: 600; cursor: pointer;
}
.vf82-filter-active { background: linear-gradient(135deg, var(--vf82-primary), var(--vf82-green-soft)); color: #07221f; border-color: transparent; }

/* ---------- Game grid ---------- */
.vf82-game-section { margin-bottom: 2rem; }
.vf82-game-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.vf82-game-section-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.5rem; font-weight: 800; color: var(--vf82-text); }
.vf82-game-section-title i { color: var(--vf82-primary); }
.vf82-game-section-more { font-size: 1.15rem; color: var(--vf82-gold); font-weight: 600; }
.vf82-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.vf82-card {
  background: var(--vf82-bg-card); border-radius: var(--vf82-radius-sm); overflow: hidden; cursor: pointer;
  border: 0.1rem solid rgba(32, 178, 170, 0.18); transition: transform 0.15s ease, border-color 0.2s ease; position: relative;
}
.vf82-card:active { transform: scale(0.96); border-color: var(--vf82-primary); }
.vf82-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #0a0a1c; }
.vf82-card-name { padding: 0.5rem 0.4rem; font-size: 1.05rem; color: var(--vf82-text); text-align: center; line-height: 1.2; min-height: 2.6rem; display: flex; align-items: center; justify-content: center; }
.vf82-card-badge { position: absolute; top: 0.3rem; left: 0.3rem; background: var(--vf82-danger); color: #fff; font-size: 0.9rem; padding: 0.1rem 0.5rem; border-radius: 0.4rem; font-weight: 700; }
.vf82-card-badge-hot { background: linear-gradient(135deg, #ff8a3d, #ff5b6b); }

/* ---------- Feature / step cards ---------- */
.vf82-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.vf82-feature-card { background: var(--vf82-bg-card); padding: 1.2rem 0.8rem; border-radius: var(--vf82-radius-sm); text-align: center; border: 0.1rem solid rgba(32, 178, 170, 0.15); }
.vf82-feature-card i, .vf82-feature-icon { font-size: 2.2rem; color: var(--vf82-primary); margin-bottom: 0.5rem; }
.vf82-feature-card h4 { font-size: 1.15rem; color: var(--vf82-text); margin-bottom: 0.3rem; }
.vf82-feature-card p { font-size: 1.05rem; color: var(--vf82-text-muted); line-height: 1.3; }

.vf82-step-list { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 0.8rem; }
.vf82-step-item { background: var(--vf82-bg-card); padding: 1rem 1.2rem; border-radius: var(--vf82-radius-sm); position: relative; padding-left: 3.4rem; }
.vf82-step-item::before { counter-increment: step; content: counter(step); position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; background: linear-gradient(135deg, var(--vf82-primary), var(--vf82-green-soft)); color: #07221f; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.vf82-step-item h4 { font-size: 1.2rem; color: var(--vf82-gold); margin-bottom: 0.2rem; }
.vf82-step-item p { font-size: 1.1rem; color: var(--vf82-text-muted); }

/* ---------- RTP table ---------- */
.vf82-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.vf82-rtp-table th, .vf82-rtp-table td { padding: 0.7rem 0.6rem; text-align: left; border-bottom: 0.1rem solid rgba(32, 178, 170, 0.18); }
.vf82-rtp-table th { color: var(--vf82-gold); font-weight: 700; }
.vf82-rtp-bar { height: 0.6rem; background: rgba(245, 245, 245, 0.1); border-radius: 0.3rem; overflow: hidden; margin-top: 0.3rem; }
.vf82-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--vf82-primary), var(--vf82-green-soft)); }

/* ---------- Promo CTA ---------- */
.vf82-cta-box { background: linear-gradient(135deg, var(--vf82-primary-dark), var(--vf82-bg-card)); padding: 1.6rem; border-radius: var(--vf82-radius); text-align: center; border: 0.15rem solid var(--vf82-primary); margin: 1.2rem 0; }
.vf82-cta-box h3 { font-size: 1.6rem; color: var(--vf82-gold); margin-bottom: 0.5rem; }
.vf82-cta-box p { color: var(--vf82-text); margin-bottom: 1rem; font-size: 1.2rem; }
.vf82-cta-btn { display: inline-block; padding: 1rem 2rem; background: linear-gradient(135deg, var(--vf82-gold), #f0d49a); color: #2a1f0a; font-weight: 800; font-size: 1.3rem; border-radius: 2rem; cursor: pointer; border: none; }
.vf82-cta-btn:active { transform: scale(0.96); }

/* ---------- Payment / winners / testimonials ---------- */
.vf82-chip-row { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0; }
.vf82-chip-row::-webkit-scrollbar { display: none; }
.vf82-chip { flex-shrink: 0; background: var(--vf82-bg-card); border: 0.1rem solid rgba(210, 180, 140, 0.35); border-radius: 0.8rem; padding: 0.7rem 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; color: var(--vf82-text); }
.vf82-chip i { color: var(--vf82-gold); }
.vf82-winner-card, .vf82-review-card { background: var(--vf82-bg-card); border-radius: var(--vf82-radius-sm); padding: 1rem 1.2rem; border-left: 0.3rem solid var(--vf82-primary); margin-bottom: 0.8rem; }
.vf82-winner-card .vf82-who { color: var(--vf82-green-soft); font-weight: 700; font-size: 1.15rem; }
.vf82-winner-card .vf82-amt { color: var(--vf82-gold); font-weight: 800; font-size: 1.3rem; }
.vf82-review-stars { color: var(--vf82-gold); margin-bottom: 0.3rem; }
.vf82-review-author { color: var(--vf82-primary); font-weight: 700; font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.vf82-faq-item { background: var(--vf82-bg-card); border-radius: var(--vf82-radius-sm); margin-bottom: 0.8rem; overflow: hidden; border: 0.1rem solid rgba(32, 178, 170, 0.15); }
.vf82-faq-q { padding: 1.1rem 1.2rem; font-weight: 700; font-size: 1.2rem; color: var(--vf82-text); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.vf82-faq-q i { color: var(--vf82-primary); transition: transform 0.2s ease; }
.vf82-faq-a { max-height: 0; overflow: hidden; padding: 0 1.2rem; color: var(--vf82-text-muted); font-size: 1.15rem; transition: max-height 0.25s ease, padding 0.25s ease; }
.vf82-faq-open .vf82-q-icon { transform: rotate(45deg); }
.vf82-faq-open .vf82-faq-a { max-height: 30rem; padding: 0 1.2rem 1.1rem; }

/* ---------- App download ---------- */
.vf82-app-box { background: linear-gradient(135deg, var(--vf82-bg-soft), var(--vf82-bg-card)); border-radius: var(--vf82-radius); padding: 1.6rem; display: flex; align-items: center; gap: 1rem; border: 0.1rem solid var(--vf82-primary); }
.vf82-app-box .vf82-app-icon { width: 5rem; height: 5rem; border-radius: 1rem; background: linear-gradient(135deg, var(--vf82-primary), var(--vf82-green-soft)); display: flex; align-items: center; justify-content: center; color: #07221f; font-size: 2.4rem; flex-shrink: 0; }
.vf82-app-box h3 { margin: 0; font-size: 1.4rem; color: var(--vf82-text); }
.vf82-app-box p { font-size: 1.1rem; color: var(--vf82-text-muted); margin: 0.3rem 0 0.6rem; }
.vf82-app-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.vf82-app-pill { background: var(--vf82-primary); color: #07221f; padding: 0.5rem 1rem; border-radius: 1.5rem; font-size: 1.05rem; font-weight: 700; }

/* ---------- Footer ---------- */
.vf82-footer { background: var(--vf82-bg-soft); padding: 2.2rem 1.2rem 2rem; margin-top: 2rem; border-top: 0.15rem solid rgba(32, 178, 170, 0.25); }
.vf82-footer-inner { max-width: var(--vf82-max); margin: 0 auto; }
.vf82-footer-brand { color: var(--vf82-text-muted); font-size: 1.15rem; margin-bottom: 1.2rem; line-height: 1.5; }
.vf82-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.vf82-footer-promo button { background: var(--vf82-bg-card); color: var(--vf82-gold); border: 0.1rem solid rgba(210, 180, 140, 0.4); padding: 0.6rem 1rem; border-radius: 1.5rem; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.vf82-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1.2rem; }
.vf82-footer-links a { color: var(--vf82-text-muted); font-size: 1.1rem; text-decoration: underline; }
.vf82-footer-copy { color: var(--vf82-text-muted); font-size: 1.05rem; border-top: 0.1rem solid rgba(245, 245, 245, 0.1); padding-top: 1rem; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.vf82-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; height: 6.2rem;
  background: linear-gradient(180deg, rgba(23, 23, 52, 0.98), rgba(15, 15, 35, 1));
  border-top: 0.12rem solid var(--vf82-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -0.4rem 1.4rem rgba(0, 0, 0, 0.5);
}
.vf82-bottom-btn {
  flex: 1; min-width: 6rem; min-height: 6rem; background: transparent; border: none; color: var(--vf82-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; cursor: pointer;
  font-size: 1rem; font-weight: 600; position: relative; transition: color 0.2s ease, transform 0.15s ease;
}
.vf82-bottom-btn i, .vf82-bottom-btn .material-icons-outlined, .vf82-bottom-btn ion-icon { font-size: 2.2rem; }
.vf82-bottom-btn ion-icon { width: 2.4rem; height: 2.4rem; }
.vf82-bottom-btn:active { transform: scale(0.92); }
.vf82-bottom-btn.vf82-bottom-active { color: var(--vf82-primary); }
.vf82-bottom-btn.vf82-bottom-active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2.6rem; height: 0.25rem; background: var(--vf82-primary); border-radius: 0 0 0.3rem 0.3rem; }
.vf82-bottom-btn.vf82-bottom-promo { color: var(--vf82-gold); }
.vf82-bottom-btn.vf82-bottom-promo i, .vf82-bottom-btn.vf82-bottom-promo .material-icons-outlined { color: var(--vf82-gold); }
.vf82-bottom-badge { position: absolute; top: 0.7rem; right: 1.3rem; min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem; background: var(--vf82-danger); color: #fff; border-radius: 0.7rem; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- Back to top ---------- */
.vf82-back-top { position: fixed; right: 1.2rem; bottom: 7.4rem; z-index: 900; width: 3.8rem; height: 3.8rem; border-radius: 50%; border: none; background: var(--vf82-primary); color: #07221f; font-size: 1.6rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease; box-shadow: var(--vf82-shadow); }
.vf82-back-top-show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Desktop / larger screens ---------- */
@media (min-width: 769px) {
  .vf82-bottom-nav { display: none; }
  body { padding-bottom: 2rem; }
  .vf82-wrapper { max-width: 760px; }
  .vf82-header-inner { max-width: 760px; }
  .vf82-grid { grid-template-columns: repeat(5, 1fr); }
  .vf82-feature-grid { grid-template-columns: repeat(4, 1fr); }
}
