/* ============================================================
   jili333 - layout-86ea.css
   Every custom class uses the pg86- prefix.
   Palette: #6495ED | #1A1A2E | #4169E1 | #C9C9FF
   ============================================================ */

:root {
  --pg86-primary: #6495ED;
  --pg86-deep: #1A1A2E;
  --pg86-accent: #4169E1;
  --pg86-soft: #C9C9FF;
  --pg86-bg: #14142a;
  --pg86-bg-2: #1f1f3d;
  --pg86-text: #f4f5ff;
  --pg86-muted: #b9bce0;
  --pg86-gold: #ffd56b;
  --pg86-success: #4cd964;
  --pg86-border: rgba(201, 201, 255, 0.15);
  --pg86-radius: 14px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 0%, #20204a 0%, var(--pg86-bg) 55%, #0d0d1f 100%);
  color: var(--pg86-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--pg86-soft); text-decoration: none; }

.pg86-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

main { padding-bottom: 80px; }

/* ---------------- Header ---------------- */
.pg86-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26,26,46,0.98), rgba(20,20,42,0.92));
  border-bottom: 1px solid var(--pg86-border);
  backdrop-filter: blur(8px);
}
.pg86-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.pg86-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pg86-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pg86-brand-name {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.4px;
  color: var(--pg86-soft);
}
.pg86-brand-name span { color: var(--pg86-primary); }

.pg86-header-actions { display: flex; align-items: center; gap: 6px; }

.pg86-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.35rem;
  border-radius: 999px;
  padding: 8px 14px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 36px;
}
.pg86-btn:active { transform: scale(0.95); }
.pg86-btn-primary {
  background: linear-gradient(135deg, var(--pg86-primary), var(--pg86-accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(100,149,237,0.45);
}
.pg86-btn-ghost {
  background: rgba(201,201,255,0.12);
  color: var(--pg86-soft);
  border: 1px solid var(--pg86-border);
}
.pg86-btn-gold {
  background: linear-gradient(135deg, var(--pg86-gold), #ff9a3c);
  color: #2a1a00;
}
.pg86-btn-block { width: 100%; padding: 12px; font-size: 1.5rem; }

.pg86-menu-btn {
  background: transparent;
  border: 1px solid var(--pg86-border);
  color: var(--pg86-soft);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------------- Mobile menu ---------------- */
.pg86-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--pg86-deep);
  border-top: 1px solid var(--pg86-border);
}
.pg86-menu-open { max-height: 480px; }
.pg86-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 6px 12px;
}
.pg86-mobile-menu li { border-bottom: 1px solid var(--pg86-border); }
.pg86-mobile-menu li:last-child { border-bottom: 0; }
.pg86-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  color: var(--pg86-text);
  font-weight: 600;
}
.pg86-mobile-menu a i { color: var(--pg86-primary); width: 22px; text-align: center; }

/* ---------------- Sections ---------------- */
.pg86-section {
  padding: 22px 14px 6px;
}
.pg86-section-alt { background: rgba(31,31,61,0.55); }
.pg86-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--pg86-text);
}
.pg86-section-title span { color: var(--pg86-primary); }
.pg86-section-sub {
  color: var(--pg86-muted);
  font-size: 1.35rem;
  margin: 0 0 14px;
}
.pg86-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 6px 0 8px;
}
.pg86-h1 span { color: var(--pg86-primary); }

/* ---------------- Hero / Carousel ---------------- */
.pg86-hero { padding-top: 64px; }
.pg86-carousel {
  position: relative;
  border-radius: var(--pg86-radius);
  overflow: hidden;
  margin: 14px 0 6px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.pg86-carousel-track { position: relative; height: 180px; }
.pg86-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.pg86-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg86-slide-active { opacity: 1; }
.pg86-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  font-size: 1.35rem;
  font-weight: 700;
}
.pg86-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.pg86-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(201,201,255,0.35);
  border: none;
  cursor: pointer;
}
.pg86-dot-active { background: var(--pg86-primary); }

/* ---------------- Filter tabs ---------------- */
.pg86-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.pg86-filter-tab {
  flex: 0 0 auto;
  border: 1px solid var(--pg86-border);
  background: rgba(201,201,255,0.08);
  color: var(--pg86-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}
.pg86-filter-active {
  background: linear-gradient(135deg, var(--pg86-primary), var(--pg86-accent));
  color: #fff;
  border-color: transparent;
}

/* ---------------- Game grid ---------------- */
.pg86-game-group { margin: 6px 0 18px; }
.pg86-game-group h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg86-soft);
}
.pg86-game-group h3 i { color: var(--pg86-gold); }
.pg86-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pg86-card {
  background: linear-gradient(160deg, var(--pg86-bg-2), #14142a);
  border: 1px solid var(--pg86-border);
  border-radius: 12px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.pg86-card:active { transform: scale(0.96); }
.pg86-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #0c0c20;
}
.pg86-card-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 4px;
  color: var(--pg86-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- Feature / Info cards ---------------- */
.pg86-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pg86-info-card {
  background: linear-gradient(160deg, var(--pg86-bg-2), #16163a);
  border: 1px solid var(--pg86-border);
  border-radius: 12px;
  padding: 12px;
}
.pg86-info-card .pg86-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(100,149,237,0.18);
  color: var(--pg86-primary);
  font-size: 2rem;
  margin-bottom: 6px;
}
.pg86-info-card h4 { margin: 0 0 4px; font-size: 1.4rem; color: var(--pg86-soft); }
.pg86-info-card p { margin: 0; font-size: 1.2rem; color: var(--pg86-muted); }

/* ---------------- Testimonials ---------------- */
.pg86-testimonial {
  background: linear-gradient(160deg, var(--pg86-bg-2), #14142a);
  border: 1px solid var(--pg86-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.pg86-testimonial-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pg86-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg86-primary), var(--pg86-gold));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #1a1a2e;
}
.pg86-testimonial-name { font-weight: 700; font-size: 1.3rem; }
.pg86-stars { color: var(--pg86-gold); font-size: 1.2rem; }
.pg86-testimonial p { margin: 0; font-size: 1.25rem; color: var(--pg86-muted); }

/* ---------------- Winners ---------------- */
.pg86-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(31,31,61,0.55);
  border: 1px solid var(--pg86-border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.pg86-winner-name { font-weight: 700; font-size: 1.3rem; }
.pg86-winner-game { color: var(--pg86-muted); font-size: 1.15rem; }
.pg86-winner-prize { color: var(--pg86-gold); font-weight: 800; font-size: 1.4rem; }

/* ---------------- Payment ---------------- */
.pg86-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg86-pay {
  flex: 1 1 30%;
  text-align: center;
  background: rgba(201,201,255,0.06);
  border: 1px solid var(--pg86-border);
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 1.15rem;
  color: var(--pg86-soft);
}
.pg86-pay i { font-size: 1.9rem; color: var(--pg86-primary); display: block; margin-bottom: 4px; }

/* ---------------- CTA banner ---------------- */
.pg86-cta {
  background: linear-gradient(135deg, var(--pg86-accent), var(--pg86-primary));
  border-radius: var(--pg86-radius);
  padding: 16px;
  text-align: center;
  margin: 12px 0;
  box-shadow: 0 8px 22px rgba(65,105,225,0.4);
}
.pg86-cta h3 { margin: 0 0 6px; font-size: 1.7rem; color: #fff; }
.pg86-cta p { margin: 0 0 10px; color: #e8eaff; font-size: 1.25rem; }

/* ---------------- FAQ ---------------- */
.pg86-faq { border: 1px solid var(--pg86-border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; background: rgba(31,31,61,0.5); }
.pg86-faq summary {
  padding: 10px 12px;
  font-weight: 700;
  font-size: 1.35rem;
  cursor: pointer;
  list-style: none;
}
.pg86-faq summary::-webkit-details-marker { display: none; }
.pg86-faq p { padding: 0 12px 12px; margin: 0; color: var(--pg86-muted); font-size: 1.25rem; }

/* ---------------- Footer ---------------- */
.pg86-footer {
  background: #0d0d1f;
  border-top: 1px solid var(--pg86-border);
  padding: 18px 14px 24px;
  margin-top: 12px;
}
.pg86-footer p { color: var(--pg86-muted); font-size: 1.2rem; line-height: 1.5; }
.pg86-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0;
}
.pg86-footer-links a {
  flex: 1 1 45%;
  background: rgba(201,201,255,0.08);
  border: 1px solid var(--pg86-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.2rem;
  color: var(--pg86-soft);
}
.pg86-footer-copy { font-size: 1.1rem; color: var(--pg86-muted); margin-top: 8px; }

/* ---------------- Bottom nav ---------------- */
.pg86-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(180deg, rgba(26,26,46,0.98), #0d0d1f);
  border-top: 1px solid var(--pg86-border);
  backdrop-filter: blur(8px);
}
.pg86-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--pg86-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  gap: 2px;
  transition: color .15s ease, transform .15s ease;
}
.pg86-bottom-nav-btn:active { transform: scale(0.9); }
.pg86-bottom-nav-btn .material-icons,
.pg86-bottom-nav-btn i { font-size: 24px; }
.pg86-bottom-nav-btn span { font-size: 1rem; }
.pg86-bottom-nav-btn.pg86-nav-active { color: var(--pg86-primary); }
.pg86-bottom-nav-btn.pg86-nav-promo { color: var(--pg86-gold); }

/* ---------------- Utilities ---------------- */
.pg86-hidden { display: none !important; }
.pg86-text-link {
  color: var(--pg86-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--pg86-primary);
}
.pg86-note { font-size: 1.2rem; color: var(--pg86-muted); }

/* ---------------- Desktop ---------------- */
@media (min-width: 769px) {
  .pg86-bottom-nav { display: none; }
  main { padding-bottom: 24px; }
  .pg86-wrapper { max-width: 430px; }
}
