/* ============================================================
   mp66.homes - style.css
   Every custom class uses the "pg64-" prefix to isolate it
   from generic library styles. Color tokens are stored in
   CSS variables prefixed with --pg64-.
   ============================================================ */

:root {
  --pg64-bg: #212F3D;          /* deep navy (page background) */
  --pg64-bg-alt: #18222E;      /* darker section band */
  --pg64-bg-card: #2A3B4D;     /* card surface */
  --pg64-primary: #880E4F;     /* brand magenta */
  --pg64-primary-2: #B41265;   /* lighter magenta gradient */
  --pg64-pink: #FFB3BA;        /* soft pink accent */
  --pg64-pink-2: #FFB3FF;      /* candy pink accent */
  --pg64-light: #F8F9FA;       /* near-white text */
  --pg64-muted: #B7C2CE;       /* secondary text */
  --pg64-border: rgba(255,179,186,0.18);
  --pg64-gold: #FFD36E;
  --pg64-radius: 14px;
  --pg64-radius-sm: 9px;
  --pg64-shadow: 0 8px 26px rgba(0,0,0,0.35);
  --pg64-header-h: 56px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Roboto", "Noto Sans", Arial, sans-serif;
  background: var(--pg64-bg);
  color: var(--pg64-light);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pg64-pink); text-decoration: none; }
a:hover { color: var(--pg64-pink-2); }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.pg64-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.pg64-wrapper { padding-top: calc(var(--pg64-header-h) + 6px); padding-bottom: 80px; }
.pg64-section { padding: 26px 0; }
.pg64-section-alt { background: var(--pg64-bg-alt); }
.pg64-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.pg64-revealed { opacity: 1; transform: none; }

/* ---------- Headings ---------- */
.pg64-h1 { font-size: 1.55rem; line-height: 1.25; margin: 14px 0 8px; color: #fff; }
.pg64-h2 {
  font-size: 1.25rem; margin: 6px 0 14px; color: var(--pg64-light);
  border-left: 4px solid var(--pg64-primary); padding-left: 10px;
  text-transform: uppercase; letter-spacing: .3px;
}
.pg64-h3 { font-size: 1.05rem; margin: 14px 0 6px; color: var(--pg64-pink); }
.pg64-lead { color: var(--pg64-muted); margin-bottom: 14px; }

/* ---------- Header ---------- */
.pg64-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--pg64-header-h);
  background: linear-gradient(135deg, #18222E 0%, #212F3D 100%);
  border-bottom: 1px solid var(--pg64-border);
  display: flex; align-items: center; z-index: 1000;
  transition: box-shadow .25s ease, background .25s ease;
}
.pg64-header-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.45); }
.pg64-header .pg64-container {
  display: flex; align-items: center; justify-content: space-between; max-width: 768px;
}
.pg64-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; font-size: 1.1rem; }
.pg64-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pg64-brand .pg64-brand-accent { color: var(--pg64-pink); }

.pg64-header-actions { display: flex; align-items: center; gap: 8px; }
.pg64-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  min-height: 36px;
}
.pg64-btn:hover { transform: translateY(-1px); }
.pg64-btn:active { transform: translateY(1px) scale(.98); }
.pg64-btn-primary { background: linear-gradient(135deg, var(--pg64-primary), var(--pg64-primary-2)); color: #fff; box-shadow: 0 4px 14px rgba(136,14,79,.45); }
.pg64-btn-ghost { background: transparent; color: var(--pg64-pink); border: 1px solid var(--pg64-border); }
.pg64-btn-block { display: flex; width: 100%; padding: 12px 16px; font-size: 1rem; }
.pg64-btn-lg { padding: 12px 22px; font-size: 1rem; }

.pg64-menu-btn {
  background: transparent; border: 1px solid var(--pg64-border); color: var(--pg64-light);
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
}

/* ---------- Mobile dropdown menu ---------- */
.pg64-mobile-menu {
  position: fixed; top: var(--pg64-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--pg64-bg-alt); border-bottom: 1px solid var(--pg64-border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.pg64-menu-open { max-height: 460px; box-shadow: var(--pg64-shadow); }
.pg64-mobile-menu ul { padding: 8px 14px 14px; }
.pg64-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.pg64-mobile-menu li a {
  display: block; padding: 12px 4px; color: var(--pg64-light); font-size: 1rem;
}
.pg64-mobile-menu li a:hover { color: var(--pg64-pink); padding-left: 8px; }

/* ---------- Hero carousel ---------- */
.pg64-hero {
  position: relative; border-radius: var(--pg64-radius); overflow: hidden; margin: 10px 0 18px;
  box-shadow: var(--pg64-shadow); aspect-ratio: 16/9;
}
.pg64-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; cursor: pointer;
}
.pg64-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg64-slide-active { opacity: 1; }
.pg64-slide-caption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); padding: 18px 8px 6px;
  color: #fff; font-weight: 700; font-size: 1.05rem;
}
.pg64-dots { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; }
.pg64-dot {
  display: inline-block; width: 8px; height: 8px; margin: 0 3px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.pg64-dot-active { background: var(--pg64-pink); transform: scale(1.25); }

/* ---------- Game grid ---------- */
.pg64-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pg64-card {
  background: var(--pg64-bg-card); border-radius: var(--pg64-radius-sm);
  border: 1px solid var(--pg64-border); overflow: hidden; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pg64-card:hover { transform: translateY(-3px); box-shadow: var(--pg64-shadow); border-color: var(--pg64-pink); }
.pg64-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #0e1722; }
.pg64-card-name {
  font-size: .76rem; text-align: center; padding: 6px 4px; color: var(--pg64-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}
.pg64-badge {
  display: inline-block; background: var(--pg64-primary); color: #fff; font-size: .65rem;
  padding: 2px 7px; border-radius: 999px; margin: 6px 0 0 6px; font-weight: 700; letter-spacing: .4px;
}
.pg64-hot-tag {
  position: absolute; top: 6px; right: 6px; background: linear-gradient(135deg, #ff5f6d, #ffc371);
  color: #fff; font-size: .6rem; padding: 2px 6px; border-radius: 6px; font-weight: 800;
}
.pg64-card-wrap { position: relative; }

/* ---------- Section title strip ---------- */
.pg64-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.pg64-section-head .pg64-h2 { margin: 0; }
.pg64-more { color: var(--pg64-pink); font-size: .82rem; font-weight: 600; }

/* ---------- Feature / info blocks ---------- */
.pg64-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pg64-feature {
  background: var(--pg64-bg-card); border: 1px solid var(--pg64-border); border-radius: var(--pg64-radius-sm);
  padding: 14px; text-align: center;
}
.pg64-feature .pg64-ico { font-size: 1.6rem; color: var(--pg64-pink); margin-bottom: 6px; display: block; }
.pg64-feature h3 { font-size: .92rem; margin-bottom: 4px; color: #fff; }
.pg64-feature p { font-size: .78rem; color: var(--pg64-muted); }

/* ---------- Steps ---------- */
.pg64-steps { counter-reset: step; padding-left: 0; }
.pg64-steps li {
  position: relative; padding: 10px 10px 10px 42px; margin-bottom: 8px;
  background: var(--pg64-bg-card); border-radius: var(--pg64-radius-sm); border: 1px solid var(--pg64-border);
}
.pg64-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pg64-primary), var(--pg64-primary-2)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem;
}

/* ---------- Table (RTP) ---------- */
.pg64-table { width: 100%; border-collapse: collapse; background: var(--pg64-bg-card); border-radius: var(--pg64-radius-sm); overflow: hidden; }
.pg64-table th, .pg64-table td { padding: 9px 10px; font-size: .82rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); }
.pg64-table th { background: rgba(136,14,79,.45); color: #fff; font-weight: 700; }
.pg64-table tr:last-child td { border-bottom: none; }
.pg64-table .pg64-bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--pg64-pink); vertical-align: middle; }

/* ---------- Testimonial ---------- */
.pg64-testimonials { display: grid; gap: 10px; }
.pg64-quote {
  background: var(--pg64-bg-card); border-left: 3px solid var(--pg64-pink);
  padding: 12px 14px; border-radius: var(--pg64-radius-sm);
}
.pg64-quote p { font-size: .85rem; margin-bottom: 6px; }
.pg64-quote .pg64-author { font-size: .75rem; color: var(--pg64-muted); font-weight: 700; }
.pg64-stars { color: var(--pg64-gold); font-size: .82rem; margin-bottom: 4px; }

/* ---------- Winners strip ---------- */
.pg64-winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pg64-winner {
  background: var(--pg64-bg-card); padding: 10px; border-radius: var(--pg64-radius-sm);
  border: 1px solid var(--pg64-border); font-size: .78rem;
}
.pg64-winner b { color: var(--pg64-pink); display: block; }

/* ---------- Payment chips ---------- */
.pg64-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg64-chip {
  background: var(--pg64-bg-card); border: 1px solid var(--pg64-border); color: var(--pg64-light);
  padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
}

/* ---------- App download CTA ---------- */
.pg64-app-cta {
  background: linear-gradient(135deg, var(--pg64-primary), var(--pg64-primary-2));
  border-radius: var(--pg64-radius); padding: 18px; text-align: center; color: #fff;
}
.pg64-app-cta h3 { color: #fff; margin-bottom: 6px; }
.pg64-app-cta p { font-size: .85rem; margin-bottom: 12px; color: rgba(255,255,255,.9); }
.pg64-app-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pg64-app-btn {
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3);
  padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: .82rem; cursor: pointer;
}

/* ---------- FAQ ---------- */
.pg64-faq-item {
  background: var(--pg64-bg-card); border: 1px solid var(--pg64-border);
  border-radius: var(--pg64-radius-sm); padding: 12px 14px; margin-bottom: 8px;
}
.pg64-faq-item h3 { color: var(--pg64-pink); font-size: .92rem; margin-bottom: 4px; }
.pg64-faq-item p { font-size: .84rem; color: var(--pg64-muted); }

/* ---------- SEO article ---------- */
.pg64-article p { margin-bottom: 10px; color: var(--pg64-muted); font-size: .9rem; }
.pg64-article strong { color: var(--pg64-light); }
.pg64-article a { font-weight: 600; }
.pg64-pill-link {
  display: inline-block; background: var(--pg64-bg-card); border: 1px solid var(--pg64-border);
  padding: 4px 10px; border-radius: 999px; font-size: .78rem; margin: 2px 4px 2px 0;
}

/* ---------- Promo text-link row ---------- */
.pg64-promo-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pg64-promo-link {
  color: var(--pg64-pink); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--pg64-pink); padding-bottom: 1px;
}

/* ---------- Footer ---------- */
.pg64-footer { background: #0e1722; padding: 24px 0 84px; border-top: 1px solid var(--pg64-border); }
.pg64-footer h4 { color: var(--pg64-pink); font-size: .95rem; margin-bottom: 10px; }
.pg64-footer p { font-size: .82rem; color: var(--pg64-muted); margin-bottom: 10px; }
.pg64-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; margin-bottom: 14px; }
.pg64-footer-links a { color: var(--pg64-light); font-size: .8rem; }
.pg64-footer-links a:hover { color: var(--pg64-pink); }
.pg64-footer-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pg64-copy { font-size: .74rem; color: var(--pg64-muted); border-top: 1px solid rgba(255,255,255,.05); padding-top: 12px; }

/* ---------- Bottom nav (mobile) ---------- */
.pg64-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; height: 62px; z-index: 1000;
  background: linear-gradient(180deg, #18222E, #0e1722);
  border-top: 1px solid var(--pg64-border);
  display: flex; justify-content: space-around; align-items: stretch;
}
.pg64-bottom-nav button {
  flex: 1; min-width: 60px; background: transparent; border: none; color: var(--pg64-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; padding: 4px 0; transition: color .2s ease, transform .2s ease;
}
.pg64-bottom-nav button .pg64-nav-ico { font-size: 22px; line-height: 1; }
.pg64-bottom-nav button .pg64-nav-label { font-size: 10px; font-weight: 600; }
.pg64-bottom-nav button:active { transform: scale(.92); color: var(--pg64-pink); }
.pg64-bottom-nav button.pg64-nav-active { color: var(--pg64-pink); }
.pg64-bottom-nav .pg64-nav-promo {
  position: relative; color: var(--pg64-pink);
}
.pg64-bottom-nav .pg64-nav-promo::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; border-radius: 0 0 6px 6px; background: var(--pg64-pink);
}

/* ---------- Back to top ---------- */
.pg64-to-top {
  position: fixed; right: 14px; bottom: 74px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--pg64-primary); color: #fff; border: none; cursor: pointer; z-index: 999;
  box-shadow: var(--pg64-shadow); display: flex; align-items: center; justify-content: center;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: var(--pg64-bg); }
  .pg64-container { max-width: 960px; }
  .pg64-header .pg64-container { max-width: 960px; }
  .pg64-bottom-nav { display: none; }
  .pg64-wrapper { padding-bottom: 30px; }
  .pg64-grid { grid-template-columns: repeat(6, 1fr); }
  .pg64-features { grid-template-columns: repeat(4, 1fr); }
  .pg64-winners { grid-template-columns: repeat(4, 1fr); }
  .pg64-mobile-menu { display: none; }
  .pg64-desktop-nav { display: flex; gap: 18px; }
  .pg64-desktop-nav a { color: var(--pg64-light); font-size: .9rem; }
  .pg64-desktop-nav a:hover { color: var(--pg64-pink); }
  .pg64-footer-links { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .pg64-desktop-nav { display: none; }
  main { padding-bottom: 80px; }
}
.pg64-text-center { text-align: center; }
.pg64-mt-12 { margin-top: 12px; }
.pg64-mt-20 { margin-top: 20px; }
.pg64-mb-12 { margin-bottom: 12px; }
