/* 777 slots theme - theme-f82c.css
   All classes use the pgf8- prefix for namespace isolation.
   Palette: #262626 / #2C3E50 / #CC99FF / #696969 / #778899
   Dark backgrounds, light text, mobile-first (max 430px). */

/* ---- Design tokens ---- */
:root {
  --pgf8-bg: #262626;
  --pgf8-bg-alt: #2C3E50;
  --pgf8-card: #303a47;
  --pgf8-card-2: #1f242c;
  --pgf8-primary: #CC99FF;
  --pgf8-primary-dark: #a974d8;
  --pgf8-accent: #FFD580;
  --pgf8-muted: #778899;
  --pgf8-gray: #696969;
  --pgf8-text: #f3f3f7;
  --pgf8-text-dim: #c9c9d4;
  --pgf8-success: #4cd964;
  --pgf8-border: rgba(204, 153, 255, 0.18);
  --pgf8-radius: 14px;
  --pgf8-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --pgf8-shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ---- Base reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  background: var(--pgf8-bg);
  color: var(--pgf8-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pgf8-primary); text-decoration: none; }
h1, h2, h3 { line-height: 1.3; font-weight: 700; }
button { font-family: inherit; }

/* ---- Header ---- */
.pgf8-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2C3E50 100%);
  border-bottom: 1px solid var(--pgf8-border);
  box-shadow: var(--pgf8-shadow-soft);
}
.pgf8-brand { display: flex; align-items: center; gap: 8px; color: var(--pgf8-text); }
.pgf8-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pgf8-brand-name {
  font-size: 1.7rem; font-weight: 800;
  background: linear-gradient(90deg, #CC99FF, #FFD580);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pgf8-header-actions { display: flex; align-items: center; gap: 6px; }
.pgf8-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer; font-weight: 700; font-size: 1.3rem;
  padding: 8px 14px; border-radius: 30px; min-height: 36px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.pgf8-btn:active { transform: scale(0.96); }
.pgf8-btn-primary {
  background: linear-gradient(135deg, #CC99FF 0%, #a974d8 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(204, 153, 255, 0.45);
}
.pgf8-btn-ghost {
  background: rgba(204, 153, 255, 0.12);
  color: var(--pgf8-primary);
  border: 1px solid var(--pgf8-border);
}
.pgf8-iconbtn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pgf8-border);
  color: var(--pgf8-text);
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.8rem;
}

/* ---- Mobile menu ---- */
.pgf8-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55); z-index: 9999; display: none;
}
.pgf8-mobile-menu.pgf8-menu-open { display: block; }
.pgf8-menu-panel {
  background: linear-gradient(180deg, #1a1a1a, #2C3E50);
  margin-top: 58px; padding: 12px;
  border-bottom: 1px solid var(--pgf8-border);
  border-radius: 0 0 18px 18px;
}
.pgf8-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; color: var(--pgf8-text);
  border-radius: 10px; font-size: 1.5rem; font-weight: 600;
  cursor: pointer;
}
.pgf8-menu-link:active { background: rgba(204,153,255,0.12); }
.pgf8-menu-link i, .pgf8-menu-link .material-icons, .pgf8-menu-link .bi {
  font-size: 20px; color: var(--pgf8-primary); width: 22px; text-align: center;
}

/* ---- Layout ---- */
.pgf8-main { padding: 0; }
.pgf8-container { padding: 14px; }
.pgf8-section {
  margin: 18px 0; padding: 14px;
  background: var(--pgf8-card);
  border-radius: var(--pgf8-radius);
  box-shadow: var(--pgf8-shadow-soft);
  border: 1px solid var(--pgf8-border);
}
.pgf8-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.9rem; color: var(--pgf8-text); margin-bottom: 12px;
}
.pgf8-section-title .material-icons,
.pgf8-section-title i,
.pgf8-section-title .bi { color: var(--pgf8-primary); font-size: 22px; }
.pgf8-text { color: var(--pgf8-text-dim); font-size: 1.45rem; line-height: 1.6; }
.pgf8-text p { margin-bottom: 8px; }
.pgf8-tag {
  display: inline-block; padding: 3px 10px;
  border-radius: 12px; font-size: 1.15rem; font-weight: 700;
  background: rgba(204,153,255,0.18); color: var(--pgf8-primary); margin-right: 6px;
}

/* ---- Hero / Carousel ---- */
.pgf8-carousel {
  position: relative; margin: 12px 0;
  border-radius: 16px; overflow: hidden; box-shadow: var(--pgf8-shadow);
}
.pgf8-slide { display: none; position: relative; cursor: pointer; }
.pgf8-slide.pgf8-slide-active { display: block; }
.pgf8-slide img { width: 100%; height: 200px; object-fit: cover; }
.pgf8-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.78) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.pgf8-slide-title { color: #fff; font-size: 2rem; font-weight: 800; }
.pgf8-slide-sub { color: var(--pgf8-accent); font-size: 1.3rem; margin-top: 4px; }
.pgf8-dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 6px; }
.pgf8-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.pgf8-dot.pgf8-dot-active { background: var(--pgf8-primary); width: 22px; border-radius: 4px; }

/* ---- Game grid ---- */
.pgf8-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 10px;
}
.pgf8-game-tile {
  background: var(--pgf8-card-2); border-radius: 12px;
  overflow: hidden; text-align: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid rgba(255,255,255,0.05);
}
.pgf8-game-tile:active { transform: scale(0.96); box-shadow: 0 4px 14px rgba(204,153,255,0.4); }
.pgf8-game-tile img {
  width: 100%; height: 84px; object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pgf8-game-name {
  font-size: 1.18rem; color: var(--pgf8-text); padding: 6px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}

/* ---- Cards / Steps ---- */
.pgf8-card {
  background: var(--pgf8-card-2); border-radius: 12px;
  padding: 12px; margin-bottom: 10px;
  border: 1px solid rgba(204,153,255,0.1);
}
.pgf8-card-title {
  font-size: 1.6rem; color: var(--pgf8-primary);
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.pgf8-steps { list-style: none; counter-reset: step; }
.pgf8-steps li {
  counter-increment: step; position: relative;
  padding: 10px 10px 10px 42px; margin-bottom: 8px;
  background: rgba(255,255,255,0.04); border-radius: 10px;
  color: var(--pgf8-text-dim); font-size: 1.4rem;
}
.pgf8-steps li::before {
  content: counter(step); position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #CC99FF, #a974d8); color: #1a1a1a;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* ---- CTA banner ---- */
.pgf8-cta {
  background: linear-gradient(135deg, #2C3E50, #CC99FF);
  padding: 18px; border-radius: 16px; text-align: center;
  color: #fff; margin: 18px 0; box-shadow: var(--pgf8-shadow);
}
.pgf8-cta h2 { color: #fff; font-size: 2.1rem; margin-bottom: 6px; }
.pgf8-cta p { color: #f3f3f7; font-size: 1.4rem; margin-bottom: 12px; }

/* ---- Testimonials / winners ---- */
.pgf8-testimonial {
  background: var(--pgf8-card-2); padding: 12px;
  border-radius: 12px; margin-bottom: 8px;
  border-left: 3px solid var(--pgf8-primary);
}
.pgf8-testimonial-name { color: var(--pgf8-primary); font-weight: 700; font-size: 1.4rem; }
.pgf8-stars { color: var(--pgf8-accent); font-size: 1.3rem; letter-spacing: 1px; }
.pgf8-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--pgf8-card-2); padding: 10px 12px;
  border-radius: 10px; margin-bottom: 6px; font-size: 1.35rem;
}
.pgf8-winner-amount { color: var(--pgf8-accent); font-weight: 800; }

/* ---- Pills / rows ---- */
.pgf8-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pgf8-pill {
  background: rgba(255,255,255,0.06); padding: 8px 12px; border-radius: 30px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.3rem; color: var(--pgf8-text); border: 1px solid var(--pgf8-border);
}
.pgf8-pill i, .pgf8-pill .material-icons, .pgf8-pill .bi { color: var(--pgf8-primary); }

/* ---- Inline promo link ---- */
.pgf8-promo {
  color: var(--pgf8-primary); font-weight: 800; cursor: pointer;
  border-bottom: 1px dashed var(--pgf8-primary);
}

/* ---- Search box ---- */
.pgf8-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--pgf8-border);
  border-radius: 30px; padding: 6px 12px; margin-bottom: 8px;
}
.pgf8-search input {
  flex: 1; background: none; border: none; color: var(--pgf8-text);
  font-size: 1.35rem; outline: none;
}

/* ---- FAQ ---- */
.pgf8-faq { margin-bottom: 8px; background: var(--pgf8-card-2); border-radius: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.05); }
.pgf8-faq-q { font-size: 1.45rem; color: var(--pgf8-primary); font-weight: 700; margin-bottom: 4px; }
.pgf8-faq-a { color: var(--pgf8-text-dim); font-size: 1.35rem; line-height: 1.55; }

/* ---- Footer ---- */
.pgf8-footer {
  background: #1a1a1a; padding: 20px 14px 110px;
  border-top: 1px solid var(--pgf8-border);
  color: var(--pgf8-text-dim); font-size: 1.35rem;
}
.pgf8-footer-brand {
  background: linear-gradient(90deg, #CC99FF, #FFD580);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800; font-size: 1.8rem; margin-bottom: 8px;
}
.pgf8-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pgf8-footer-link {
  color: var(--pgf8-text-dim); padding: 4px 10px;
  border: 1px solid var(--pgf8-border); border-radius: 16px;
  font-size: 1.25rem; cursor: pointer;
}
.pgf8-footer-link:hover { color: var(--pgf8-primary); }
.pgf8-copyright { margin-top: 12px; color: var(--pgf8-muted); font-size: 1.2rem; text-align: center; }

/* ---- Bottom nav ---- */
.pgf8-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, #1a1a1a, #0e0e0e);
  border-top: 1px solid var(--pgf8-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 62px; z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.5);
}
.pgf8-navbtn {
  flex: 1; background: none; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--pgf8-text-dim); font-size: 1.05rem; font-weight: 600;
  min-width: 60px; min-height: 60px; gap: 2px; cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.pgf8-navbtn i, .pgf8-navbtn .material-icons, .pgf8-navbtn .bi {
  font-size: 22px;
}
.pgf8-navbtn:active { transform: scale(0.9); }
.pgf8-navbtn-active { color: var(--pgf8-primary); }
.pgf8-navbtn-promo { color: var(--pgf8-accent); }

/* ---- Back to top ---- */
.pgf8-topbtn {
  position: fixed; right: 14px; bottom: 80px;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #CC99FF, #a974d8);
  color: #1a1a1a; border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease; z-index: 999; font-size: 1.8rem;
}
.pgf8-topbtn.pgf8-topbtn-show { opacity: 1; pointer-events: auto; }

/* ---- Desktop: hide bottom nav ---- */
@media (min-width: 769px) {
  .pgf8-bottomnav { display: none; }
  .pgf8-footer { padding-bottom: 30px; }
}

/* ---- Mobile bottom padding for content clearance ---- */
@media (max-width: 768px) {
  .pgf8-main { padding-bottom: 80px; }
}
