/* ============================================================
 * 777 casino - core stylesheet
 * All custom classes use the v0c9- prefix for namespace isolation.
 * Palette: #FF8A80 | #C9C9FF | #3A3A3A | #F08080
 * Dark tone as background, light tone as text/accents.
 * Code comments are in English.
 * ============================================================ */

:root {
  --v0c9-bg: #3A3A3A;
  --v0c9-bg-deep: #262626;
  --v0c9-bg-card: #454545;
  --v0c9-primary: #FF8A80;
  --v0c9-secondary: #C9C9FF;
  --v0c9-accent: #F08080;
  --v0c9-text: #f6f6f6;
  --v0c9-text-muted: #d2d2d2;
  --v0c9-gold: #ffd27d;
  --v0c9-radius: 12px;
  --v0c9-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --v0c9-header-h: 56px;
  --v0c9-bottom-h: 62px;
  --v0c9-font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--v0c9-font);
  background: radial-gradient(circle at 20% -10%, #3a2a2a 0%, var(--v0c9-bg-deep) 55%, var(--v0c9-bg) 100%);
  color: var(--v0c9-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--v0c9-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.v0c9-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }

/* ---------- Header ---------- */
.v0c9-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--v0c9-header-h);
  background: rgba(38, 38, 38, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 138, 128, 0.28);
  z-index: 1000;
}
.v0c9-header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; max-width: 430px; margin: 0 auto;
}
.v0c9-brand { display: flex; align-items: center; gap: 0.55rem; }
.v0c9-brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 10px rgba(255, 138, 128, 0.5); }
.v0c9-brand-name { font-size: 1.65rem; font-weight: 800; color: var(--v0c9-primary); letter-spacing: 0.4px; }
.v0c9-header-actions { display: flex; align-items: center; gap: 0.45rem; }
.v0c9-btn {
  border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 1.22rem;
  border-radius: 20px; padding: 0.55rem 1.1rem; min-height: 36px;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.v0c9-btn:active { transform: scale(0.93); }
.v0c9-btn-primary { background: linear-gradient(135deg, var(--v0c9-primary), var(--v0c9-accent)); color: #2a1010; }
.v0c9-btn-secondary { background: transparent; color: var(--v0c9-secondary); border: 1px solid var(--v0c9-secondary); }
.v0c9-btn-gold { background: linear-gradient(135deg, var(--v0c9-gold), #ff9f43); color: #2a1c00; }
.v0c9-btn-block { display: block; width: 100%; padding: 0.9rem; font-size: 1.35rem; border-radius: 10px; }
.v0c9-menu-toggle {
  background: transparent; border: none; color: var(--v0c9-text); font-size: 1.9rem;
  cursor: pointer; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Mobile menu drawer ---------- */
.v0c9-mobile-menu {
  position: fixed; top: var(--v0c9-header-h); left: 0; right: 0;
  background: var(--v0c9-bg-deep);
  border-bottom: 1px solid rgba(201, 201, 255, 0.2);
  transform: translateY(-160%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-height: calc(100vh - var(--v0c9-header-h));
  overflow-y: auto;
}
.v0c9-mobile-menu.v0c9-menu-open { transform: translateY(0); }
.v0c9-mobile-menu a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1.1rem 1.4rem; color: var(--v0c9-text); font-size: 1.32rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.v0c9-mobile-menu a i { color: var(--v0c9-secondary); font-size: 1.6rem; width: 20px; }
.v0c9-mobile-menu a:hover { background: rgba(255, 138, 128, 0.12); color: var(--v0c9-primary); }

/* ---------- Main wrapper ---------- */
.v0c9-main {
  padding-top: calc(var(--v0c9-header-h) + 8px);
  padding-bottom: calc(var(--v0c9-bottom-h) + 18px);
  min-height: 100vh;
}

/* ---------- Carousel ---------- */
.v0c9-carousel {
  position: relative; border-radius: 14px; overflow: hidden;
  margin: 1.2rem 0 0.6rem; box-shadow: var(--v0c9-shadow);
  aspect-ratio: 16 / 9; cursor: pointer;
}
.v0c9-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.v0c9-carousel-slide.v0c9-slide-active { opacity: 1; }
.v0c9-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v0c9-carousel-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.2rem 1.6rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
}
.v0c9-carousel-overlay h2 { font-size: 1.75rem; color: #fff; margin-bottom: 0.3rem; }
.v0c9-carousel-overlay p { font-size: 1.15rem; color: var(--v0c9-secondary); }
.v0c9-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.v0c9-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; border: none; padding: 0; }
.v0c9-carousel-dot.v0c9-dot-active { background: var(--v0c9-primary); width: 18px; border-radius: 4px; }

/* ---------- Section + headings ---------- */
.v0c9-section { margin: 2rem 0; }
.v0c9-section-title {
  display: flex; align-items: center; gap: 0.6rem; font-size: 1.7rem; font-weight: 700;
  margin-bottom: 1rem; padding-left: 0.8rem; border-left: 4px solid var(--v0c9-primary);
}
.v0c9-section-title i { color: var(--v0c9-secondary); font-size: 2rem; }
.v0c9-h1 {
  font-size: 2.15rem; font-weight: 800; margin: 1.4rem 0 0.8rem; line-height: 1.3;
  background: linear-gradient(135deg, var(--v0c9-primary), var(--v0c9-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Game grid ---------- */
.v0c9-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.v0c9-game-card {
  background: var(--v0c9-bg-card); border-radius: 10px; padding: 0.55rem; text-align: center;
  cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.v0c9-game-card:active { transform: scale(0.94); }
.v0c9-game-card:hover { box-shadow: 0 4px 16px rgba(255, 138, 128, 0.3); border-color: var(--v0c9-primary); }
.v0c9-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.v0c9-game-card-name { font-size: 1.12rem; color: var(--v0c9-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Generic card ---------- */
.v0c9-card {
  background: var(--v0c9-bg-card); border-radius: var(--v0c9-radius); padding: 1.35rem;
  margin-bottom: 1rem; box-shadow: var(--v0c9-shadow); border: 1px solid rgba(255, 255, 255, 0.04);
}
.v0c9-card h2 { font-size: 1.55rem; color: var(--v0c9-secondary); margin-bottom: 0.6rem; }
.v0c9-card h3 { font-size: 1.38rem; color: var(--v0c9-primary); margin: 0.9rem 0 0.4rem; }
.v0c9-card p { margin-bottom: 0.7rem; color: var(--v0c9-text-muted); }
.v0c9-card ul li { padding-left: 1.3rem; position: relative; margin-bottom: 0.4rem; color: var(--v0c9-text-muted); }
.v0c9-card ul li::before { content: '\f005'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--v0c9-gold); position: absolute; left: 0; font-size: 0.95rem; }

/* ---------- Promo CTA + inline promo link ---------- */
.v0c9-cta {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: linear-gradient(135deg, rgba(255,138,128,0.2), rgba(201,201,255,0.12));
  border: 1px solid rgba(255, 138, 128, 0.4); border-radius: var(--v0c9-radius);
  padding: 1.4rem; text-align: center; margin: 1rem 0;
}
.v0c9-cta h3 { font-size: 1.7rem; color: var(--v0c9-primary); }
.v0c9-cta p { color: var(--v0c9-text-muted); font-size: 1.22rem; }
.v0c9-promo-link {
  color: var(--v0c9-primary); font-weight: 700;
  border-bottom: 1px dashed var(--v0c9-primary); cursor: pointer;
}

/* ---------- Feature grid ---------- */
.v0c9-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.v0c9-feature { background: var(--v0c9-bg-card); border-radius: 10px; padding: 1rem; text-align: center; border: 1px solid rgba(201,201,255,0.14); }
.v0c9-feature i { font-size: 2.6rem; color: var(--v0c9-primary); margin-bottom: 0.5rem; }
.v0c9-feature h4 { font-size: 1.25rem; color: var(--v0c9-secondary); margin-bottom: 0.3rem; }
.v0c9-feature p { font-size: 1.1rem; color: var(--v0c9-text-muted); }

/* ---------- RTP compact bars ---------- */
.v0c9-rtp-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.65rem; }
.v0c9-rtp-name { flex: 0 0 42%; font-size: 1.15rem; }
.v0c9-rtp-bar { flex: 1; height: 9px; background: rgba(255,255,255,0.1); border-radius: 5px; overflow: hidden; }
.v0c9-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--v0c9-primary), var(--v0c9-gold)); }
.v0c9-rtp-val { flex: 0 0 42px; text-align: right; font-size: 1.15rem; color: var(--v0c9-gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.v0c9-testimonial { background: var(--v0c9-bg-card); border-left: 3px solid var(--v0c9-secondary); border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 0.7rem; }
.v0c9-testimonial p { font-size: 1.2rem; color: var(--v0c9-text); font-style: italic; }
.v0c9-testimonial span { display: block; margin-top: 0.4rem; font-size: 1.08rem; color: var(--v0c9-primary); font-weight: 600; }

/* ---------- Payment ---------- */
.v0c9-payment-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v0c9-payment { flex: 1 1 30%; background: var(--v0c9-bg-card); border-radius: 8px; padding: 0.7rem; text-align: center; font-size: 1.1rem; border: 1px solid rgba(255,255,255,0.05); }
.v0c9-payment i { font-size: 1.9rem; color: var(--v0c9-secondary); display: block; margin-bottom: 0.3rem; }

/* ---------- Winners ---------- */
.v0c9-winner { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px dashed rgba(255,255,255,0.08); font-size: 1.2rem; }
.v0c9-winner:last-child { border-bottom: none; }
.v0c9-winner-amount { color: var(--v0c9-gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.v0c9-faq-item { background: var(--v0c9-bg-card); border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 0.6rem; border: 1px solid rgba(255,255,255,0.04); }
.v0c9-faq-item h3 { font-size: 1.25rem; color: var(--v0c9-primary); margin-bottom: 0.3rem; }
.v0c9-faq-item p { font-size: 1.16rem; color: var(--v0c9-text-muted); }

/* ---------- Footer ---------- */
.v0c9-footer { background: var(--v0c9-bg-deep); border-top: 1px solid rgba(255, 138, 128, 0.28); padding: 2rem 1.2rem calc(var(--v0c9-bottom-h) + 2rem); margin-top: 2rem; }
.v0c9-footer-inner { max-width: 430px; margin: 0 auto; }
.v0c9-footer-brand { font-size: 1.28rem; color: var(--v0c9-text-muted); margin-bottom: 1rem; line-height: 1.6; }
.v0c9-footer h4 { color: var(--v0c9-secondary); font-size: 1.32rem; margin: 0.8rem 0 0.5rem; }
.v0c9-footer-links { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.v0c9-footer-links a { font-size: 1.18rem; color: var(--v0c9-text); display: flex; align-items: center; gap: 0.5rem; }
.v0c9-footer-links a:hover { color: var(--v0c9-primary); }
.v0c9-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.v0c9-footer-promo button { font-size: 1.12rem; padding: 0.5rem 0.95rem; }
.v0c9-footer-copy { font-size: 1.1rem; color: var(--v0c9-text-muted); text-align: center; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* ---------- Bottom nav ---------- */
.v0c9-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--v0c9-bottom-h);
  background: linear-gradient(180deg, rgba(38,38,38,0.98), rgba(20,20,20,0.99));
  border-top: 1px solid rgba(255, 138, 128, 0.32);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 18px rgba(0,0,0,0.4);
}
.v0c9-bottom-nav-btn {
  flex: 1; background: transparent; border: none; color: var(--v0c9-text-muted);
  font-family: inherit; font-size: 1rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; min-height: 60px; cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.v0c9-bottom-nav-btn i { font-size: 2.1rem; }
.v0c9-bottom-nav-btn:active { transform: scale(0.9); }
.v0c9-bottom-nav-btn:hover, .v0c9-bottom-nav-btn.v0c9-nav-active { color: var(--v0c9-primary); }

/* ---------- Reveal animation ---------- */
.v0c9-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.v0c9-reveal.v0c9-revealed { opacity: 1; transform: translateY(0); }
.v0c9-hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .v0c9-bottom-nav { display: none; }
  .v0c9-container, .v0c9-header-inner, .v0c9-footer-inner { max-width: 760px; }
  .v0c9-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v0c9-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  .v0c9-main { padding-bottom: calc(var(--v0c9-bottom-h) + 20px); }
}
@media (max-width: 360px) {
  .v0c9-game-grid { grid-template-columns: repeat(2, 1fr); }
  .v0c9-brand-name { font-size: 1.45rem; }
}
