/* ============================================================
 * PH Play - Core base CSS
 * Prefix : v3b7-  (all custom classes & CSS variables)
 * Palette : #FFD700 | #BAE1FF | #E91E63 | #495057 | #FFCCCB | #1C2833
 * Mobile-first, max-width 430px, root font 62.5%
 * ============================================================ */

:root {
  --v3b7-primary: #FFD700;
  --v3b7-secondary: #BAE1FF;
  --v3b7-accent: #E91E63;
  --v3b7-muted: #495057;
  --v3b7-soft: #FFCCCB;
  --v3b7-bg: #1C2833;
  --v3b7-bg-alt: #16202b;
  --v3b7-bg-card: #22303d;
  --v3b7-text: #f5f7fa;
  --v3b7-text-dim: #b8c2cc;
  --v3b7-radius: 10px;
  --v3b7-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--v3b7-bg);
  color: var(--v3b7-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

/* ---------- Layout ---------- */
.v3b7-container { width: 100%; padding: 0 1.2rem; }
.v3b7-wrapper { max-width: 430px; margin: 0 auto; }
.v3b7-grid { display: grid; gap: 1rem; }
.v3b7-section { padding: 2rem 0; }
.v3b7-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v3b7-primary);
  margin-bottom: 1rem; padding-left: 0.6rem; border-left: 4px solid var(--v3b7-accent);
}
.v3b7-subtitle { font-size: 1.5rem; font-weight: 600; color: var(--v3b7-secondary); margin: 1rem 0 0.6rem; }

/* ---------- Header ---------- */
.v3b7-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: var(--v3b7-bg-alt);
  border-bottom: 2px solid var(--v3b7-primary);
  box-shadow: var(--v3b7-shadow);
}
.v3b7-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; min-height: 5rem;
}
.v3b7-logo { display: flex; align-items: center; gap: 0.6rem; }
.v3b7-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v3b7-logo .v3b7-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--v3b7-primary); }
.v3b7-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v3b7-menu-toggle {
  background: transparent; border: 1px solid var(--v3b7-primary);
  color: var(--v3b7-primary); border-radius: 8px;
  width: 36px; height: 36px; font-size: 1.6rem; cursor: pointer;
}

/* ---------- Buttons ---------- */
.v3b7-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: var(--v3b7-radius);
  font-weight: 700; font-size: 1.3rem; cursor: pointer; border: none;
  min-height: 44px; transition: transform 0.15s, opacity 0.15s;
}
.v3b7-btn:active { transform: scale(0.96); }
.v3b7-btn-register { background: var(--v3b7-primary); color: var(--v3b7-bg); }
.v3b7-btn-login { background: var(--v3b7-accent); color: #fff; }
.v3b7-btn-promo { background: var(--v3b7-accent); color: #fff; padding: 0.9rem 1.4rem; width: 100%; }
.v3b7-btn-gold { background: var(--v3b7-primary); color: var(--v3b7-bg); }
.v3b7-link-bold { color: var(--v3b7-primary); font-weight: 700; }
.v3b7-link-accent { color: var(--v3b7-accent); font-weight: 700; }

/* ---------- Mobile menu ---------- */
.v3b7-mobile-menu {
  display: none; position: fixed; top: 5rem; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: var(--v3b7-bg-alt);
  border-bottom: 2px solid var(--v3b7-primary); z-index: 9999;
  padding: 0.8rem 1rem;
}
.v3b7-mobile-menu.v3b7-menu-open { display: block; }
.v3b7-menu-link {
  display: block; padding: 1rem 0.6rem; color: var(--v3b7-text);
  border-bottom: 1px solid #2c3a48; font-size: 1.4rem;
}
.v3b7-menu-link:hover { color: var(--v3b7-primary); text-decoration: none; }

/* ---------- Hero / Carousel ---------- */
.v3b7-carousel {
  position: relative; margin-top: 5rem; width: 100%; overflow: hidden;
}
.v3b7-slides { position: relative; width: 100%; height: 200px; }
.v3b7-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s;
  cursor: pointer;
}
.v3b7-slide img { width: 100%; height: 200px; object-fit: cover; }
.v3b7-slide.v3b7-slide-active { opacity: 1; }
.v3b7-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(28, 40, 51, 0.8); padding: 0.6rem 0.9rem; border-radius: 8px;
  font-size: 1.3rem; color: var(--v3b7-primary); font-weight: 700;
}
.v3b7-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.6rem 0; }
.v3b7-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #4b5a6a; cursor: pointer;
}
.v3b7-dot.v3b7-dot-active { background: var(--v3b7-primary); }

/* ---------- H1 ---------- */
.v3b7-h1 {
  font-size: 2rem; font-weight: 800; color: var(--v3b7-primary);
  text-align: center; padding: 1.2rem 1rem; line-height: 1.3;
}

/* ---------- Game grid ---------- */
.v3b7-game-cat-title {
  font-size: 1.6rem; font-weight: 700; color: var(--v3b7-secondary);
  margin: 1.4rem 0 0.8rem; padding-left: 0.4rem;
  border-left: 4px solid var(--v3b7-primary);
}
.v3b7-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.v3b7-game-card {
  background: var(--v3b7-bg-card); border-radius: 10px; overflow: hidden;
  cursor: pointer; transition: transform 0.15s; text-align: center;
  min-height: 44px;
}
.v3b7-game-card:active { transform: scale(0.96); }
.v3b7-game-card img { width: 100%; height: 78px; object-fit: cover; }
.v3b7-game-name {
  font-size: 1.1rem; padding: 0.4rem 0.2rem; color: var(--v3b7-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Cards / generic ---------- */
.v3b7-card {
  background: var(--v3b7-bg-card); border-radius: 12px; padding: 1.2rem;
  box-shadow: var(--v3b7-shadow); margin-bottom: 1rem;
}
.v3b7-card p { margin-bottom: 0.6rem; color: var(--v3b7-text-dim); }
.v3b7-card p strong { color: var(--v3b7-primary); }

/* ---------- Feature list ---------- */
.v3b7-feature-list { list-style: none; }
.v3b7-feature-list li {
  padding: 0.8rem 0; border-bottom: 1px solid #2c3a48; color: var(--v3b7-text-dim);
  display: flex; align-items: center; gap: 0.8rem;
}
.v3b7-feature-list li i { color: var(--v3b7-primary); font-size: 1.8rem; }

/* ---------- Testimonials ---------- */
.v3b7-testi { background: var(--v3b7-bg-card); border-radius: 12px; padding: 1rem; margin-bottom: 0.8rem; }
.v3b7-testi-name { font-weight: 700; color: var(--v3b7-primary); font-size: 1.3rem; }
.v3b7-testi-stars { color: var(--v3b7-primary); font-size: 1.2rem; margin: 0.2rem 0; }
.v3b7-testi-text { color: var(--v3b7-text-dim); font-size: 1.25rem; }

/* ---------- Winners ---------- */
.v3b7-winner {
  display: flex; justify-content: space-between; padding: 0.6rem 0.4rem;
  border-bottom: 1px solid #2c3a48; font-size: 1.25rem;
}
.v3b7-winner-name { color: var(--v3b7-secondary); }
.v3b7-winner-amount { color: var(--v3b7-primary); font-weight: 700; }

/* ---------- Payment ---------- */
.v3b7-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v3b7-pay-chip {
  background: var(--v3b7-bg-card); border: 1px solid var(--v3b7-primary);
  border-radius: 20px; padding: 0.5rem 1rem; font-size: 1.2rem; color: var(--v3b7-text);
}

/* ---------- App download CTA ---------- */
.v3b7-app-cta {
  background: linear-gradient(135deg, var(--v3b7-accent), #b3174d);
  border-radius: 14px; padding: 1.4rem; text-align: center; color: #fff;
}
.v3b7-app-cta h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.v3b7-app-cta p { color: #ffe; margin-bottom: 1rem; }

/* ---------- Promo banner ---------- */
.v3b7-promo-banner {
  background: linear-gradient(135deg, var(--v3b7-primary), #f0c040);
  color: var(--v3b7-bg); border-radius: 12px; padding: 1.2rem; text-align: center;
  margin-bottom: 1rem;
}
.v3b7-promo-banner h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.v3b7-promo-banner p { font-size: 1.25rem; margin-bottom: 0.8rem; }

/* ---------- FAQ ---------- */
.v3b7-faq-item { border-bottom: 1px solid #2c3a48; padding: 0.8rem 0; }
.v3b7-faq-q { font-weight: 700; color: var(--v3b7-secondary); font-size: 1.3rem; }
.v3b7-faq-a { color: var(--v3b7-text-dim); font-size: 1.25rem; margin-top: 0.3rem; }

/* ---------- Footer ---------- */
.v3b7-footer {
  background: var(--v3b7-bg-alt); border-top: 2px solid var(--v3b7-primary);
  padding: 1.6rem 1.2rem; margin-top: 1rem;
}
.v3b7-footer-brand { color: var(--v3b7-text-dim); font-size: 1.2rem; margin-bottom: 0.8rem; }
.v3b7-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 0.8rem; }
.v3b7-footer-links a { color: var(--v3b7-secondary); font-size: 1.2rem; }
.v3b7-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.v3b7-footer-promos .v3b7-btn { flex: 1 1 40%; min-width: 120px; }
.v3b7-footer-copy { color: #6b7785; font-size: 1.1rem; text-align: center; padding-top: 0.6rem; border-top: 1px solid #2c3a48; }

/* ---------- Bottom navigation ---------- */
.v3b7-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px; z-index: 1000;
  background: var(--v3b7-bg-alt); border-top: 2px solid var(--v3b7-primary);
  display: flex; justify-content: space-around; align-items: center;
}
.v3b7-bottomnav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: transparent; border: none;
  color: var(--v3b7-text-dim); font-size: 1rem; cursor: pointer;
  transition: color 0.15s, transform 0.15s; text-decoration: none;
}
.v3b7-bottomnav-item:active { transform: scale(0.92); }
.v3b7-bottomnav-item i, .v3b7-bottomnav-item .material-icons-outlined,
.v3b7-bottomnav-item .ion { font-size: 22px; margin-bottom: 2px; }
.v3b7-bottomnav-item span { font-size: 1rem; }
.v3b7-bottomnav-active { color: var(--v3b7-primary); }
.v3b7-bottomnav-active .v3b7-badge { background: var(--v3b7-accent); }
.v3b7-badge {
  position: absolute; top: 6px; right: 18px; background: var(--v3b7-accent);
  color: #fff; border-radius: 10px; font-size: 0.9rem; padding: 0 5px; min-width: 16px;
}
.v3b7-bottomnav-item { position: relative; }

/* ---------- Content spacing ---------- */
main { padding-bottom: 80px; }
.v3b7-content { padding: 0 1.2rem; }
.v3b7-content p { margin-bottom: 0.8rem; color: var(--v3b7-text-dim); }
.v3b7-content h2 { color: var(--v3b7-primary); margin: 1rem 0 0.5rem; font-size: 1.7rem; }
.v3b7-content h3 { color: var(--v3b7-secondary); margin: 0.8rem 0 0.4rem; font-size: 1.4rem; }

/* ---------- Desktop: hide bottom nav, show wider layout ---------- */
@media (min-width: 769px) {
  .v3b7-bottomnav { display: none; }
  main { padding-bottom: 1rem; }
}
