/* ============================================================
 * Play Time - theme.css
 * Mobile-first (max-width: 430px) layout system.
 * All custom classes use the "ve8f-" prefix.
 * Palette: #00FF7F (mint accent) | #0E1621 (deep bg)
 *          #006400 (forest)     | #20B2AA (sea green)
 * ============================================================ */

/* ---------- CSS variables ---------- */
:root {
  --ve8f-primary: #00FF7F;
  --ve8f-primary-dark: #006400;
  --ve8f-accent: #20B2AA;
  --ve8f-bg: #0E1621;
  --ve8f-bg-2: #111c2a;
  --ve8f-bg-3: #15243a;
  --ve8f-text: #eafff4;
  --ve8f-text-dim: #9fc8b6;
  --ve8f-border: #1f3b32;
  --ve8f-gold: #ffd35c;
  --ve8f-danger: #ff5d6c;
  --ve8f-radius: 14px;
  --ve8f-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --ve8f-shadow-mint: 0 8px 30px rgba(0, 255, 127, 0.25);
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--ve8f-bg);
  color: var(--ve8f-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ve8f-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.ve8f-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.ve8f-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ---------- Header ---------- */
.ve8f-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14, 22, 33, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ve8f-border);
}
.ve8f-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; max-width: 430px; margin: 0 auto;
}
.ve8f-brand { display: flex; align-items: center; gap: 8px; }
.ve8f-brand img { width: 30px; height: 30px; border-radius: 8px; }
.ve8f-brand-name {
  font-size: 1.7rem; font-weight: 800; color: var(--ve8f-primary);
  letter-spacing: 0.3px;
}
.ve8f-brand-name span { color: var(--ve8f-text); font-weight: 500; }
.ve8f-header-actions { display: flex; align-items: center; gap: 6px; }
.ve8f-icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ve8f-bg-3); color: var(--ve8f-text);
  font-size: 18px;
}
.ve8f-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  font-size: 1.3rem; font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ve8f-btn:active { transform: scale(0.96); }
.ve8f-btn-primary {
  background: linear-gradient(135deg, var(--ve8f-primary), var(--ve8f-accent));
  color: var(--ve8f-primary-dark); box-shadow: var(--ve8f-shadow-mint);
}
.ve8f-btn-outline {
  background: transparent; color: var(--ve8f-primary);
  border: 1.5px solid var(--ve8f-primary);
}
.ve8f-btn-ghost { background: var(--ve8f-bg-3); color: var(--ve8f-text); }
.ve8f-btn-block { display: flex; width: 100%; padding: 12px; font-size: 1.5rem; }

/* ---------- Mobile slide-down menu ---------- */
.ve8f-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  z-index: 9998; opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
}
.ve8f-overlay-show { opacity: 1; visibility: visible; }
.ve8f-mobile-menu {
  position: fixed; top: 0; right: -80%; bottom: 0; width: 80%;
  background: var(--ve8f-bg-2); z-index: 9999;
  transform: translateX(0); transition: transform 0.28s ease;
  padding: 70px 18px 30px; overflow-y: auto;
}
.ve8f-mobile-menu.ve8f-menu-open { right: 0; }
.ve8f-menu-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ve8f-bg-3); color: var(--ve8f-text); font-size: 16px;
}
.ve8f-mobile-menu h4 {
  font-size: 1.3rem; text-transform: uppercase; color: var(--ve8f-text-dim);
  margin: 16px 0 8px; letter-spacing: 1px;
}
.ve8f-mobile-menu a {
  display: block; padding: 11px 12px; border-radius: 10px;
  font-size: 1.4rem; color: var(--ve8f-text);
  border-bottom: 1px solid var(--ve8f-border);
}
.ve8f-mobile-menu a:active { background: var(--ve8f-bg-3); }

/* ---------- Main padding ---------- */
.ve8f-main { padding-top: 62px; }
@media (max-width: 768px) {
  .ve8f-main { padding-bottom: 86px; }
}

/* ---------- Hero / Carousel ---------- */
.ve8f-carousel {
  position: relative; overflow: hidden; border-radius: var(--ve8f-radius);
  margin: 14px 0;
}
.ve8f-carousel-track { display: flex; transition: transform 0.5s ease; }
.ve8f-carousel-slide {
  min-width: 100%; position: relative;
}
.ve8f-carousel-slide img {
  width: 100%; height: 180px; object-fit: cover; border-radius: var(--ve8f-radius);
}
.ve8f-slide-caption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; padding: 18px 12px 10px;
  border-radius: 0 0 var(--ve8f-radius) var(--ve8f-radius);
}
.ve8f-slide-caption h2 { font-size: 1.8rem; font-weight: 800; }
.ve8f-slide-caption p { font-size: 1.2rem; color: var(--ve8f-primary); margin-top: 4px; }
.ve8f-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  z-index: 5;
}
.ve8f-carousel-arrow.ve8f-prev { left: 8px; }
.ve8f-carousel-arrow.ve8f-next { right: 8px; }
.ve8f-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.ve8f-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45);
  transition: background 0.2s ease, width 0.2s ease;
}
.ve8f-dot-active { background: var(--ve8f-primary); width: 20px; border-radius: 4px; }

/* ---------- Section title ---------- */
.ve8f-section { margin: 22px 0; }
.ve8f-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.ve8f-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--ve8f-text);
  display: flex; align-items: center; gap: 8px;
}
.ve8f-section-title i { color: var(--ve8f-primary); font-size: 20px; }
.ve8f-section-link { font-size: 1.2rem; color: var(--ve8f-accent); }

/* ---------- Category tabs ---------- */
.ve8f-cat-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px;
  scrollbar-width: none;
}
.ve8f-cat-tabs::-webkit-scrollbar { display: none; }
.ve8f-cat-tab {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 20px;
  background: var(--ve8f-bg-3); color: var(--ve8f-text-dim);
  font-size: 1.25rem; font-weight: 600;
  border: 1px solid var(--ve8f-border);
  transition: all 0.2s ease;
}
.ve8f-cat-tab-active {
  background: linear-gradient(135deg, var(--ve8f-primary), var(--ve8f-accent));
  color: var(--ve8f-primary-dark); border-color: transparent;
}

/* ---------- Game grid ---------- */
.ve8f-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ve8f-card {
  background: var(--ve8f-bg-2); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--ve8f-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.ve8f-card:active { transform: scale(0.96); box-shadow: var(--ve8f-shadow-mint); }
.ve8f-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0a0f17; }
.ve8f-card-name {
  padding: 6px 8px; font-size: 1.1rem; text-align: center; color: var(--ve8f-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}
.ve8f-card-tag {
  position: absolute; top: 6px; left: 6px;
  background: var(--ve8f-gold); color: #1a1a1a;
  font-size: 0.95rem; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}
.ve8f-card-wrap { position: relative; }

/* ---------- Promotional band ---------- */
.ve8f-promo {
  background: linear-gradient(135deg, var(--ve8f-primary-dark), var(--ve8f-accent));
  border-radius: var(--ve8f-radius); padding: 16px; margin: 16px 0;
  text-align: center; color: var(--ve8f-text);
}
.ve8f-promo h3 { color: var(--ve8f-primary); font-size: 1.8rem; margin-bottom: 6px; }
.ve8f-promo p { font-size: 1.25rem; color: #eafff4; margin-bottom: 12px; }

/* ---------- Info / content cards ---------- */
.ve8f-info-card {
  background: var(--ve8f-bg-2); border-radius: var(--ve8f-radius);
  padding: 16px; margin: 12px 0; border: 1px solid var(--ve8f-border);
}
.ve8f-info-card h3 { color: var(--ve8f-primary); font-size: 1.55rem; margin-bottom: 8px; }
.ve8f-info-card p { font-size: 1.3rem; line-height: 2.1rem; color: var(--ve8f-text); }
.ve8f-info-card ul { margin-top: 6px; }
.ve8f-info-card li {
  font-size: 1.25rem; line-height: 2rem; padding-left: 18px; position: relative;
  color: var(--ve8f-text);
}
.ve8f-info-card li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; color: var(--ve8f-primary); font-size: 10px; top: 7px;
}

/* ---------- Steps ---------- */
.ve8f-steps { counter-reset: step; }
.ve8f-step {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--ve8f-border);
}
.ve8f-step-num {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ve8f-primary-dark); color: var(--ve8f-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem;
}
.ve8f-step-text { font-size: 1.3rem; line-height: 2rem; }
.ve8f-step-text strong { color: var(--ve8f-accent); }

/* ---------- RTP / data table ---------- */
.ve8f-table {
  width: 100%; border-collapse: collapse; margin: 8px 0;
}
.ve8f-table th, .ve8f-table td {
  padding: 9px 8px; font-size: 1.2rem; text-align: left;
  border-bottom: 1px solid var(--ve8f-border);
}
.ve8f-table th { color: var(--ve8f-primary); font-weight: 700; }
.ve8f-table td .ve8f-pill {
  background: var(--ve8f-primary-dark); color: var(--ve8f-primary);
  padding: 2px 8px; border-radius: 10px; font-weight: 700;
}

/* ---------- FAQ accordion ---------- */
.ve8f-faq-item {
  background: var(--ve8f-bg-2); border-radius: 12px;
  margin-bottom: 8px; overflow: hidden; border: 1px solid var(--ve8f-border);
}
.ve8f-faq-q {
  width: 100%; text-align: left; padding: 12px 14px;
  font-size: 1.35rem; font-weight: 700; color: var(--ve8f-text);
  display: flex; justify-content: space-between; align-items: center;
}
.ve8f-faq-q i { color: var(--ve8f-primary); transition: transform 0.25s ease; }
.ve8f-faq-open .ve8f-faq-q i { transform: rotate(45deg); }
.ve8f-faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding: 0 14px;
}
.ve8f-faq-answer p {
  font-size: 1.2rem; line-height: 1.9rem; color: var(--ve8f-text-dim);
  padding-bottom: 12px;
}

/* ---------- Testimonials ---------- */
.ve8f-review {
  background: var(--ve8f-bg-2); border-radius: 12px; padding: 12px;
  margin-bottom: 8px; border: 1px solid var(--ve8f-border);
}
.ve8f-review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ve8f-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ve8f-primary), var(--ve8f-accent));
  color: var(--ve8f-primary-dark); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}
.ve8f-review-name { font-size: 1.3rem; font-weight: 700; color: var(--ve8f-text); }
.ve8f-stars { color: var(--ve8f-gold); font-size: 1.1rem; }
.ve8f-review-text { font-size: 1.2rem; color: var(--ve8f-text-dim); line-height: 1.8rem; }

/* ---------- Payment methods ---------- */
.ve8f-pay-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.ve8f-pay-item {
  background: var(--ve8f-bg-2); border-radius: 10px; padding: 10px 4px;
  text-align: center; border: 1px solid var(--ve8f-border);
  font-size: 1rem; color: var(--ve8f-text-dim); font-weight: 600;
}
.ve8f-pay-item i { font-size: 22px; color: var(--ve8f-primary); display: block; margin-bottom: 4px; }

/* ---------- Winners showcase ---------- */
.ve8f-winner {
  display: flex; align-items: center; gap: 10px;
  background: var(--ve8f-bg-2); border-radius: 10px; padding: 10px;
  margin-bottom: 6px; border: 1px solid var(--ve8f-border);
}
.ve8f-winner-img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.ve8f-winner-info { flex: 1; }
.ve8f-winner-name { font-size: 1.25rem; font-weight: 700; color: var(--ve8f-text); }
.ve8f-winner-game { font-size: 1.05rem; color: var(--ve8f-text-dim); }
.ve8f-winner-amount { color: var(--ve8f-gold); font-weight: 800; font-size: 1.35rem; }

/* ---------- Achievements / tricks ---------- */
.ve8f-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ve8f-badge {
  background: var(--ve8f-bg-3); border: 1px solid var(--ve8f-border);
  border-radius: 20px; padding: 6px 12px; font-size: 1.15rem; color: var(--ve8f-text);
}
.ve8f-badge i { color: var(--ve8f-gold); margin-right: 4px; }

/* ---------- App download CTA ---------- */
.ve8f-app-cta {
  background: linear-gradient(135deg, var(--ve8f-bg-3), var(--ve8f-primary-dark));
  border-radius: var(--ve8f-radius); padding: 18px; margin: 16px 0;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--ve8f-border);
}
.ve8f-app-cta-icon { font-size: 42px; color: var(--ve8f-primary); }
.ve8f-app-cta-text { flex: 1; }
.ve8f-app-cta-text h3 { color: var(--ve8f-primary); font-size: 1.55rem; margin-bottom: 4px; }
.ve8f-app-cta-text p { font-size: 1.15rem; color: var(--ve8f-text-dim); }

/* ---------- Footer ---------- */
.ve8f-footer {
  background: #060c14; padding: 24px 14px 18px; margin-top: 28px;
  border-top: 2px solid var(--ve8f-primary-dark);
}
.ve8f-footer-brand { color: var(--ve8f-primary); font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.ve8f-footer-desc { font-size: 1.2rem; line-height: 1.9rem; color: var(--ve8f-text-dim); margin-bottom: 14px; }
.ve8f-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.ve8f-footer-links a {
  font-size: 1.15rem; padding: 6px 10px; border-radius: 8px;
  background: var(--ve8f-bg-3); color: var(--ve8f-text);
  border: 1px solid var(--ve8f-border);
}
.ve8f-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px;
}
.ve8f-footer-promos button, .ve8f-footer-promos a {
  flex: 1 1 auto; text-align: center; font-size: 1.2rem; font-weight: 700;
  padding: 8px 10px; border-radius: 8px;
  background: var(--ve8f-primary-dark); color: var(--ve8f-primary);
}
.ve8f-footer-meta { font-size: 1.05rem; color: var(--ve8f-text-dim); border-top: 1px solid var(--ve8f-border); padding-top: 12px; }

/* ---------- Mobile bottom navigation ---------- */
.ve8f-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 64px; background: rgba(6, 12, 20, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ve8f-border);
  display: flex; justify-content: space-around; align-items: center;
}
.ve8f-bottom-nav-item {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--ve8f-text-dim); font-size: 1rem; font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}
.ve8f-bottom-nav-item i, .ve8f-bottom-nav-item .material-icons-outlined,
.ve8f-bottom-nav-item ion-icon {
  font-size: 22px;
}
.ve8f-bottom-nav-item ion-icon { font-size: 24px; }
.ve8f-bottom-nav-item:active { transform: scale(0.9); }
.ve8f-bottom-nav-item.active { color: var(--ve8f-primary); }
.ve8f-bottom-nav-item.promo { color: var(--ve8f-gold); }
.ve8f-bottom-nav-badge {
  position: absolute; top: 8px; right: 22px;
  background: var(--ve8f-danger); color: #fff;
  font-size: 0.9rem; padding: 0 5px; border-radius: 8px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.ve8f-bottom-nav-item { position: relative; }

/* ---------- Back to top button ---------- */
.ve8f-top-btn {
  position: fixed; right: 14px; bottom: 76px; z-index: 900;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ve8f-primary); color: var(--ve8f-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--ve8f-shadow-mint);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ve8f-top-show { opacity: 1; visibility: visible; }

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .ve8f-bottom-nav { display: none; }
  .ve8f-container, .ve8f-wrapper, .ve8f-header-inner { max-width: 720px; }
  .ve8f-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Utility ---------- */
.ve8f-text-mint { color: var(--ve8f-primary); }
.ve8f-text-gold { color: var(--ve8f-gold); }
.ve8f-mt-12 { margin-top: 12px; }
.ve8f-center { text-align: center; }
.ve8f-hidden-mobile { display: none; }
@media (min-width: 769px) { .ve8f-hidden-mobile { display: block; } }
