/* ============================================================
 * cm88m.click - layout-ec95.css
 * All custom classes use the "pgec-" prefix per project rule.
 * Palette reference: #2D2D2D (dark bg) | #F5F5F5 (light text)
 *                   #E6E6FA (lavender accent)
 * Mobile-first: target width max 430px, expand upward.
 * ============================================================ */

:root {
  --pgec-bg: #2D2D2D;
  --pgec-bg-soft: #353535;
  --pgec-bg-elev: #3F3F3F;
  --pgec-text: #F5F5F5;
  --pgec-text-dim: #B8B8B8;
  --pgec-accent: #E6E6FA;
  --pgec-accent-deep: #C9C2EA;
  --pgec-gold: #F2C14E;
  --pgec-success: #4CC38A;
  --pgec-danger: #E96A6A;
  --pgec-line: rgba(245, 245, 245, 0.08);
  --pgec-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --pgec-radius: 14px;
  --pgec-radius-lg: 20px;
  --pgec-header-h: 60px;
  --pgec-bottomnav-h: 62px;
}

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

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

body {
  font-family: "Be Vietnam Pro", "Segoe UI", "Roboto", system-ui, sans-serif;
  background: var(--pgec-bg);
  color: var(--pgec-text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pgec-accent); text-decoration: none; }
a:hover { color: var(--pgec-accent-deep); text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.pgec-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.pgec-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 14px; }
.pgec-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.pgec-main { flex: 1 0 auto; width: 100%; }
@media (max-width: 768px) {
  .pgec-main { padding-bottom: calc(var(--pgec-bottomnav-h) + 18px); }
}

/* ---------- Top Header ---------- */
.pgec-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--pgec-header-h);
  background: linear-gradient(180deg, #1f1f1f 0%, #2D2D2D 100%);
  border-bottom: 1px solid var(--pgec-line);
  z-index: 1000; display: flex; align-items: center;
}
.pgec-header__inner {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pgec-brand { display: flex; align-items: center; gap: 8px; color: var(--pgec-text); }
.pgec-brand:hover { text-decoration: none; }
.pgec-brand__logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--pgec-accent), var(--pgec-gold));
  display: grid; place-items: center; color: #1f1f1f; font-weight: 800; font-size: 15px;
}
.pgec-brand__name { font-size: 18px; font-weight: 800; letter-spacing: 0.4px; }
.pgec-brand__tld { color: var(--pgec-accent); }

.pgec-header__actions { display: flex; align-items: center; gap: 8px; }
.pgec-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  min-height: 38px; line-height: 1; white-space: nowrap;
}
.pgec-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pgec-btn--primary { background: var(--pgec-accent); color: #1f1f1f; }
.pgec-btn--primary:hover { background: var(--pgec-accent-deep); color: #1f1f1f; }
.pgec-btn--ghost { background: transparent; color: var(--pgec-text); border: 1px solid var(--pgec-line); }
.pgec-btn--ghost:hover { border-color: var(--pgec-accent); color: var(--pgec-accent); }
.pgec-btn--gold { background: var(--pgec-gold); color: #1f1f1f; }
.pgec-btn--lg { padding: 13px 26px; font-size: 15px; min-height: 46px; }
.pgec-btn--block { width: 100%; }

/* Desktop nav */
.pgec-desktop-nav { display: none; align-items: center; gap: 18px; }
.pgec-desktop-nav a { color: var(--pgec-text-dim); font-size: 14px; font-weight: 600; }
.pgec-desktop-nav a:hover { color: var(--pgec-accent); text-decoration: none; }
@media (min-width: 900px) {
  .pgec-desktop-nav { display: flex; }
}

/* Hamburger (mobile only) */
.pgec-burger {
  display: inline-flex; flex-direction: column; gap: 5px; width: 38px; height: 38px;
  border-radius: 10px; background: var(--pgec-bg-elev); align-items: center; justify-content: center;
}
.pgec-burger span { width: 18px; height: 2px; background: var(--pgec-text); border-radius: 2px; transition: .25s; }
.pgec-burger.pgec-is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pgec-burger.pgec-is-active span:nth-child(2) { opacity: 0; }
.pgec-burger.pgec-is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .pgec-burger { display: none; } }

/* Spacer to offset fixed header */
.pgec-header-spacer { height: var(--pgec-header-h); }

/* ---------- Mobile Menu Drawer ---------- */
.pgec-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 84%; max-width: 340px;
  height: 100vh; background: #232323; z-index: 9999; padding: 20px 18px;
  transition: right .28s ease; overflow-y: auto; box-shadow: var(--pgec-shadow);
}
.pgec-mobile-menu.pgec-is-open { right: 0; }
.pgec-mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pgec-mobile-menu__close { font-size: 22px; color: var(--pgec-text-dim); width: 36px; height: 36px; }
.pgec-mobile-menu a {
  display: block; padding: 12px 12px; border-bottom: 1px solid var(--pgec-line);
  color: var(--pgec-text); font-weight: 600;
}
.pgec-mobile-menu a:hover { color: var(--pgec-accent); text-decoration: none; }
.pgec-mobile-menu__cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.pgec-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.pgec-overlay.pgec-is-open { opacity: 1; pointer-events: auto; }
.pgec-no-scroll { overflow: hidden; }

/* ---------- Hero / Carousel ---------- */
.pgec-hero { padding: 18px 0 6px; }
.pgec-carousel {
  position: relative; border-radius: var(--pgec-radius-lg); overflow: hidden;
  box-shadow: var(--pgec-shadow); background: #1c1c1c;
}
.pgec-carousel__viewport { position: relative; aspect-ratio: 16 / 9; max-height: 360px; }
.pgec-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: flex; align-items: flex-end;
}
.pgec-carousel-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pgec-carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
}
.pgec-carousel-slide.pgec-is-active { opacity: 1; z-index: 2; }
.pgec-carousel-caption {
  position: relative; z-index: 3; padding: 18px; color: #fff; width: 100%;
}
.pgec-carousel-caption h2 { font-size: 20px; margin-bottom: 6px; font-weight: 800; }
.pgec-carousel-caption p { font-size: 13px; color: #f0f0f0; margin-bottom: 10px; max-width: 480px; }
.pgec-carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0; z-index: 4;
  display: flex; gap: 6px; justify-content: center;
}
.pgec-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(245,245,245,0.4);
  cursor: pointer; transition: .2s;
}
.pgec-carousel-dot.pgec-is-active { background: var(--pgec-accent); width: 22px; border-radius: 4px; }
.pgec-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.45);
  color: #fff; font-size: 18px; display: grid; place-items: center;
}
.pgec-carousel-arrow:hover { background: rgba(0,0,0,0.7); }
.pgec-carousel-arrow--prev { left: 10px; }
.pgec-carousel-arrow--next { right: 10px; }

/* ---------- Section primitives ---------- */
.pgec-section { padding: 22px 0; }
.pgec-section--alt { background: #262626; }
.pgec-section__head { margin-bottom: 14px; }
.pgec-section__title {
  font-size: 20px; font-weight: 800; color: var(--pgec-text);
  display: flex; align-items: center; gap: 8px;
}
.pgec-section__title .material-icons-outlined,
.pgec-section__title i { color: var(--pgec-accent); font-size: 22px; }
.pgec-section__subtitle { color: var(--pgec-text-dim); font-size: 13px; margin-top: 4px; }
.pgec-section__more { float: right; font-size: 12px; color: var(--pgec-accent); font-weight: 700; }

/* ---------- Filter chips ---------- */
.pgec-filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; }
.pgec-filters::-webkit-scrollbar { display: none; }
.pgec-filter-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--pgec-bg-elev);
  color: var(--pgec-text-dim); font-size: 12px; font-weight: 700; border: 1px solid transparent;
}
.pgec-filter-chip.pgec-is-active { background: var(--pgec-accent); color: #1f1f1f; }

/* ---------- Game grid ---------- */
.pgec-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 560px) { .pgec-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 900px) { .pgec-grid { grid-template-columns: repeat(6, 1fr); } }

.pgec-card {
  background: var(--pgec-bg-soft); border-radius: var(--pgec-radius); overflow: hidden;
  border: 1px solid var(--pgec-line); transition: transform .15s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.pgec-card:hover { transform: translateY(-3px); border-color: var(--pgec-accent); }
.pgec-card__media { position: relative; aspect-ratio: 1 / 1; background: #1c1c1c; }
.pgec-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pgec-card__badge {
  position: absolute; top: 6px; left: 6px; background: var(--pgec-gold); color: #1f1f1f;
  font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 6px; letter-spacing: .4px;
}
.pgec-card__badge--hot { background: var(--pgec-danger); color: #fff; }
.pgec-card__body { padding: 8px 10px 10px; }
.pgec-card__title {
  font-size: 12px; font-weight: 700; color: var(--pgec-text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 32px;
}
.pgec-card__meta { font-size: 10px; color: var(--pgec-text-dim); margin-top: 4px; }

/* ---------- Featured / promo blocks ---------- */
.pgec-feature {
  display: grid; gap: 12px; grid-template-columns: 1fr;
  background: linear-gradient(135deg, #3a2f4a 0%, #2D2D2D 100%);
  border-radius: var(--pgec-radius-lg); padding: 18px; border: 1px solid var(--pgec-line);
}
@media (min-width: 720px) { .pgec-feature { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.pgec-feature h3 { font-size: 18px; margin-bottom: 6px; }
.pgec-feature p { color: var(--pgec-text-dim); font-size: 13px; margin-bottom: 12px; }

.pgec-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .pgec-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.pgec-stat {
  background: var(--pgec-bg-soft); border-radius: var(--pgec-radius); padding: 14px;
  text-align: center; border: 1px solid var(--pgec-line);
}
.pgec-stat__num { font-size: 22px; font-weight: 800; color: var(--pgec-accent); }
.pgec-stat__label { font-size: 11px; color: var(--pgec-text-dim); margin-top: 4px; }

/* ---------- Steps / how-to ---------- */
.pgec-steps { display: grid; gap: 12px; }
@media (min-width: 760px) { .pgec-steps { grid-template-columns: repeat(4, 1fr); } }
.pgec-step {
  background: var(--pgec-bg-soft); border-radius: var(--pgec-radius); padding: 16px;
  border: 1px solid var(--pgec-line); position: relative;
}
.pgec-step__num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--pgec-accent); color: #1f1f1f;
  font-weight: 800; display: grid; place-items: center; margin-bottom: 10px;
}
.pgec-step h4 { font-size: 14px; margin-bottom: 4px; }
.pgec-step p { font-size: 12px; color: var(--pgec-text-dim); }

/* ---------- FAQ accordion ---------- */
.pgec-faq-item {
  background: var(--pgec-bg-soft); border: 1px solid var(--pgec-line); border-radius: var(--pgec-radius);
  margin-bottom: 10px; overflow: hidden;
}
.pgec-faq-q {
  width: 100%; text-align: left; padding: 14px 16px; font-weight: 700; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--pgec-text);
}
.pgec-faq-q .pgec-faq-icon { transition: transform .2s ease; color: var(--pgec-accent); }
.pgec-faq-item.pgec-is-open .pgec-faq-icon { transform: rotate(45deg); }
.pgec-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 16px; color: var(--pgec-text-dim); font-size: 13px; }
.pgec-faq-item.pgec-is-open .pgec-faq-a { max-height: 360px; padding: 0 16px 14px; }

/* ---------- Testimonials ---------- */
.pgec-reviews { display: grid; gap: 12px; }
@media (min-width: 720px) { .pgec-reviews { grid-template-columns: repeat(3, 1fr); } }
.pgec-review {
  background: var(--pgec-bg-soft); border-radius: var(--pgec-radius); padding: 16px;
  border: 1px solid var(--pgec-line);
}
.pgec-review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pgec-review__avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--pgec-accent); color: #1f1f1f;
  font-weight: 800; display: grid; place-items: center;
}
.pgec-review__name { font-size: 13px; font-weight: 700; }
.pgec-review__stars { color: var(--pgec-gold); font-size: 12px; }
.pgec-review__text { font-size: 13px; color: var(--pgec-text-dim); }

/* ---------- Winners ticker ---------- */
.pgec-winners {
  background: #1f1f1f; border-radius: var(--pgec-radius); border: 1px solid var(--pgec-line);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.pgec-winner { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.pgec-winner__user { color: var(--pgec-accent); font-weight: 700; }
.pgec-winner__amount { color: var(--pgec-gold); font-weight: 800; }

/* ---------- Payments ---------- */
.pgec-payments { display: flex; flex-wrap: wrap; gap: 10px; }
.pgec-pay {
  flex: 1 1 calc(33.333% - 10px); min-width: 90px; background: var(--pgec-bg-soft);
  border: 1px solid var(--pgec-line); border-radius: var(--pgec-radius); padding: 12px;
  text-align: center; font-size: 12px; font-weight: 700; color: var(--pgec-text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pgec-pay i, .pgec-pay .material-icons-outlined { font-size: 22px; color: var(--pgec-accent); }

/* ---------- Long-form SEO text ---------- */
.pgec-prose { font-size: 14px; color: #d6d6d6; line-height: 1.75; }
.pgec-prose h2 { font-size: 19px; color: var(--pgec-text); margin: 18px 0 8px; font-weight: 800; }
.pgec-prose h3 { font-size: 16px; color: var(--pgec-accent); margin: 14px 0 6px; }
.pgec-prose p { margin-bottom: 10px; }
.pgec-prose a { color: var(--pgec-accent); font-weight: 600; text-decoration: underline; }
.pgec-prose strong { color: var(--pgec-text); }

/* ---------- App download CTA ---------- */
.pgec-app-cta {
  background: linear-gradient(135deg, #2d2d3a 0%, #3a2f4a 100%);
  border-radius: var(--pgec-radius-lg); padding: 20px; border: 1px solid var(--pgec-line);
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 700px) { .pgec-app-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.pgec-app-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.pgec-footer { background: #1c1c1c; border-top: 1px solid var(--pgec-line); padding: 26px 0 20px; }
.pgec-footer__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pgec-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.pgec-footer__col h4 { font-size: 13px; color: var(--pgec-accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.pgec-footer__col a, .pgec-footer__col p { display: block; color: var(--pgec-text-dim); font-size: 13px; padding: 4px 0; }
.pgec-footer__col a:hover { color: var(--pgec-accent); }
.pgec-footer__promo-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pgec-footer__brand-line { font-size: 12px; color: var(--pgec-text-dim); margin: 12px 0; line-height: 1.7; }
.pgec-footer__bottom {
  border-top: 1px solid var(--pgec-line); margin-top: 14px; padding-top: 14px;
  display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--pgec-text-dim);
}
.pgec-footer__18 { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--pgec-line); border-radius: 8px; font-weight: 700; }

/* ---------- Back to top ---------- */
.pgec-backtop {
  position: fixed; right: 14px; bottom: calc(var(--pgec-bottomnav-h) + 12px); z-index: 1100;
  width: 42px; height: 42px; border-radius: 50%; background: var(--pgec-accent); color: #1f1f1f;
  display: grid; place-items: center; font-size: 20px; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .2s ease;
}
.pgec-backtop.pgec-is-visible { opacity: 1; pointer-events: auto; }
@media (min-width: 769px) { .pgec-backtop { bottom: 18px; } }

/* ---------- Bottom mobile nav ---------- */
.pgec-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--pgec-bottomnav-h);
  background: linear-gradient(180deg, #232323 0%, #1a1a1a 100%);
  border-top: 1px solid var(--pgec-line); z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch; padding: 4px 0;
}
.pgec-bottom-nav__btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--pgec-text-dim); font-size: 10px; font-weight: 700;
  min-width: 60px; min-height: 54px; transition: color .2s ease, transform .15s ease;
  border-top: 3px solid transparent;
}
.pgec-bottom-nav__btn i,
.pgec-bottom-nav__btn .material-icons-outlined,
.pgec-bottom-nav__btn ion-icon { font-size: 22px; }
.pgec-bottom-nav__btn ion-icon { --ionicon-stroke-width: 40px; }
.pgec-bottom-nav__btn.pgec-is-current { color: var(--pgec-accent); border-top-color: var(--pgec-accent); }
.pgec-bottom-nav__btn:active { transform: scale(0.92); }
.pgec-bottom-nav__btn--promo { color: var(--pgec-gold); }
.pgec-bottom-nav__btn--promo .pgec-nav-label { color: var(--pgec-gold); }
@media (min-width: 769px) { .pgec-bottom-nav { display: none; } }

/* ---------- Utility ---------- */
.pgec-text-center { text-align: center; }
.pgec-mt-12 { margin-top: 12px; } .pgec-mt-16 { margin-top: 16px; } .pgec-mt-20 { margin-top: 20px; }
.pgec-mb-08 { margin-bottom: 8px; } .pgec-mb-12 { margin-bottom: 12px; } .pgec-mb-16 { margin-bottom: 16px; }
.pgec-hide-mobile { display: none; }
@media (min-width: 769px) { .pgec-hide-mobile { display: initial; } .pgec-hide-desktop { display: none; } }
