/* ============================================================
 * ph356.click theme stylesheet
 * All custom classes use the pg3d- prefix.
 * Palette: #00FA9A | #F8F8FF | #7B68EE | #2C2C2C | #6A5ACD
 * Mobile-first layout, viewport capped at max-width: 430px.
 * ============================================================ */

:root {
  --pg3d-primary: #00FA9A;
  --pg3d-secondary: #7B68EE;
  --pg3d-accent: #6A5ACD;
  --pg3d-text: #F8F8FF;
  --pg3d-bg: #2C2C2C;
  --pg3d-bg-soft: #1c1c1c;
  --pg3d-bg-elev: #3a3a3a;
  --pg3d-line: rgba(248, 248, 255, 0.10);
  --pg3d-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --pg3d-radius: 14px;
  --pg3d-radius-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #3a3457 0%, var(--pg3d-bg) 55%, var(--pg3d-bg-soft) 100%);
  color: var(--pg3d-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pg3d-primary); text-decoration: none; }
a:hover { color: #5dffba; }

.pg3d-skip {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Layout containers ---------- */
.pg3d-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  min-height: 100vh;
}

.pg3d-container {
  width: 100%;
  padding: 0 14px;
}

main.pg3d-main { padding-bottom: 96px; }

/* ---------- Header ---------- */
.pg3d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(123,104,238,0.95), rgba(106,90,205,0.95));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,250,154,0.35);
  box-shadow: var(--pg3d-shadow);
}

.pg3d-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  min-height: 54px;
}

.pg3d-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--pg3d-text); font-weight: 800; letter-spacing: .3px;
  flex: 1; min-width: 0;
}
.pg3d-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pg3d-brand-name { font-size: 1.5rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg3d-brand-name b { color: var(--pg3d-primary); }

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

.pg3d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 1.3rem; line-height: 1;
  padding: 9px 14px; border-radius: 999px;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 38px; text-align: center;
}
.pg3d-btn:hover { transform: translateY(-1px); }
.pg3d-btn-primary {
  background: linear-gradient(135deg, var(--pg3d-primary), #18d488);
  color: #08251a; box-shadow: 0 6px 16px rgba(0,250,154,0.35);
}
.pg3d-btn-ghost {
  background: rgba(248,248,255,0.12);
  color: var(--pg3d-text); border: 1px solid rgba(248,248,255,0.25);
}
.pg3d-btn-block { width: 100%; padding: 14px; font-size: 1.5rem; }

.pg3d-burger {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(248,248,255,0.12); border: 1px solid rgba(248,248,255,0.2);
  color: var(--pg3d-text); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.pg3d-burger i { font-size: 22px; }

/* ---------- Mobile slide-in menu ---------- */
.pg3d-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 9998;
}
.pg3d-menu-overlay.pg3d-is-visible { opacity: 1; visibility: visible; }

#pg3d-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px;
  height: 100%; background: linear-gradient(180deg, #241c3b, #1a1a1a);
  z-index: 9999; transition: right .28s ease; padding: 18px 16px; overflow-y: auto;
  border-left: 1px solid rgba(0,250,154,0.25);
}
#pg3d-mobile-menu.pg3d-is-open { right: 0; }

.pg3d-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pg3d-menu-title { font-weight: 800; font-size: 1.7rem; color: var(--pg3d-primary); }
.pg3d-menu-close {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(248,248,255,0.2);
  background: transparent; color: var(--pg3d-text); cursor: pointer;
}
.pg3d-menu-list { list-style: none; padding: 0; margin: 0; }
.pg3d-menu-list li { border-bottom: 1px solid var(--pg3d-line); }
.pg3d-menu-list a {
  display: flex; align-items: center; gap: 12px;
  color: var(--pg3d-text); padding: 13px 6px; font-size: 1.45rem; font-weight: 600;
}
.pg3d-menu-list a i { color: var(--pg3d-primary); font-size: 18px; }
.pg3d-menu-list a:hover { background: rgba(0,250,154,0.08); padding-left: 12px; }

.pg3d-menu-cta { margin-top: 18px; display: grid; gap: 8px; }

/* ---------- Carousel ---------- */
.pg3d-carousel {
  position: relative; width: 100%; overflow: hidden; border-radius: var(--pg3d-radius-lg);
  box-shadow: var(--pg3d-shadow); margin: 12px 0;
}
.pg3d-carousel-track { display: flex; transition: transform .5s ease; }
.pg3d-carousel-slide { min-width: 100%; position: relative; }
.pg3d-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg3d-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  padding: 30px 14px 12px; color: var(--pg3d-text);
}
.pg3d-carousel-cap h2 { margin: 0 0 4px; font-size: 1.7rem; color: var(--pg3d-primary); }
.pg3d-carousel-cap p { margin: 0; font-size: 1.25rem; }
.pg3d-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.pg3d-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(248,248,255,0.45); border: none; cursor: pointer; padding: 0;
}
.pg3d-carousel-dot.pg3d-dot-active { background: var(--pg3d-primary); width: 22px; border-radius: 5px; }

/* ---------- Section primitives ---------- */
.pg3d-section { padding: 18px 14px; }
.pg3d-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pg3d-section-head h2 { font-size: 1.75rem; margin: 0; color: var(--pg3d-text); }
.pg3d-section-head h2 span { color: var(--pg3d-primary); }
.pg3d-section-link { font-size: 1.25rem; font-weight: 600; color: var(--pg3d-primary); }

.pg3d-card {
  background: linear-gradient(160deg, rgba(123,104,238,0.14), rgba(0,0,0,0.25));
  border: 1px solid var(--pg3d-line); border-radius: var(--pg3d-radius);
  padding: 14px; box-shadow: var(--pg3d-shadow);
}

/* ---------- Hero ---------- */
.pg3d-hero { padding: 18px 14px 8px; text-align: center; }
.pg3d-hero h1 {
  font-size: 2.4rem; line-height: 1.2; margin: 0 0 8px;
  background: linear-gradient(90deg, var(--pg3d-primary), var(--pg3d-text));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg3d-hero p { margin: 0 auto 14px; max-width: 380px; color: rgba(248,248,255,0.85); font-size: 1.35rem; }
.pg3d-hero-cta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.pg3d-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0 4px; }
.pg3d-pill {
  background: rgba(0,250,154,0.10); color: var(--pg3d-primary);
  border: 1px solid rgba(0,250,154,0.35); padding: 5px 11px; border-radius: 999px;
  font-size: 1.15rem; font-weight: 600;
}

/* ---------- Game grid ---------- */
.pg3d-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pg3d-game {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: rgba(248,248,255,0.04); border: 1px solid var(--pg3d-line);
  border-radius: var(--pg3d-radius); padding: 8px 6px 10px; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.pg3d-game:hover { transform: translateY(-2px); border-color: rgba(0,250,154,0.5); background: rgba(0,250,154,0.06); }
.pg3d-game img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; margin-bottom: 6px; }
.pg3d-game-name { font-size: 1.1rem; font-weight: 600; color: var(--pg3d-text); line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }

/* ---------- Category banner ---------- */
.pg3d-cat-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--pg3d-radius);
  background: linear-gradient(135deg, rgba(106,90,205,0.35), rgba(0,250,154,0.18));
  border: 1px solid rgba(0,250,154,0.25); margin-bottom: 10px;
}
.pg3d-cat-banner i { font-size: 24px; color: var(--pg3d-primary); }
.pg3d-cat-banner h3 { margin: 0; font-size: 1.55rem; color: var(--pg3d-text); }
.pg3d-cat-banner span { margin-left: auto; font-size: 1.15rem; color: rgba(248,248,255,0.7); }

/* ---------- Feature list / steps ---------- */
.pg3d-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pg3d-steps li {
  position: relative; padding: 10px 12px 10px 44px; border-radius: 12px;
  background: rgba(248,248,255,0.04); border: 1px solid var(--pg3d-line);
}
.pg3d-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pg3d-primary); color: #08251a; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.pg3d-steps strong { color: var(--pg3d-primary); }

/* ---------- Feature cards ---------- */
.pg3d-features { display: grid; gap: 10px; }
.pg3d-feature {
  display: flex; gap: 12px; padding: 12px; border-radius: 14px;
  background: rgba(123,104,238,0.10); border: 1px solid var(--pg3d-line);
}
.pg3d-feature .pg3d-ico {
  flex: 0 0 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--pg3d-secondary), var(--pg3d-accent));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.pg3d-feature .pg3d-ico i { font-size: 22px; }
.pg3d-feature h3 { margin: 0 0 3px; font-size: 1.45rem; color: var(--pg3d-text); }
.pg3d-feature p { margin: 0; font-size: 1.2rem; color: rgba(248,248,255,0.78); }

/* ---------- Winners / testimonials ---------- */
.pg3d-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.pg3d-table th, .pg3d-table td { padding: 8px 6px; border-bottom: 1px solid var(--pg3d-line); text-align: left; }
.pg3d-table th { color: var(--pg3d-primary); font-weight: 700; }
.pg3d-table td.pg3d-win { color: var(--pg3d-primary); font-weight: 700; }

.pg3d-testimonials { display: grid; gap: 10px; }
.pg3d-testimonial { padding: 12px; border-radius: 14px; background: rgba(248,248,255,0.04); border: 1px solid var(--pg3d-line); }
.pg3d-testimonial-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pg3d-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#7B68EE,#00FA9A); display: flex; align-items: center; justify-content: center; color: #08251a; font-weight: 800; }
.pg3d-testimonial-name { font-weight: 700; font-size: 1.3rem; color: var(--pg3d-text); }
.pg3d-stars { color: #ffd166; font-size: 1.1rem; }
.pg3d-testimonial p { margin: 0; font-size: 1.2rem; color: rgba(248,248,255,0.85); }

/* ---------- Payment grid ---------- */
.pg3d-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg3d-pay {
  background: rgba(248,248,255,0.05); border: 1px solid var(--pg3d-line);
  border-radius: 12px; padding: 12px 6px; text-align: center;
}
.pg3d-pay i { font-size: 26px; color: var(--pg3d-primary); }
.pg3d-pay span { display: block; margin-top: 6px; font-size: 1.15rem; color: var(--pg3d-text); }

/* ---------- RTP / data bars ---------- */
.pg3d-rtp-row { margin-bottom: 10px; }
.pg3d-rtp-row .pg3d-rtp-head { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 4px; }
.pg3d-rtp-bar { height: 8px; border-radius: 6px; background: rgba(248,248,255,0.10); overflow: hidden; }
.pg3d-rtp-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--pg3d-secondary), var(--pg3d-primary)); }

/* ---------- CTA strip ---------- */
.pg3d-cta {
  margin: 14px; padding: 18px; border-radius: var(--pg3d-radius-lg); text-align: center;
  background: linear-gradient(135deg, rgba(0,250,154,0.18), rgba(123,104,238,0.28));
  border: 1px solid rgba(0,250,154,0.4);
}
.pg3d-cta h2 { margin: 0 0 8px; color: var(--pg3d-text); font-size: 1.9rem; }
.pg3d-cta p { margin: 0 auto 14px; color: rgba(248,248,255,0.85); font-size: 1.25rem; max-width: 320px; }

/* ---------- FAQ ---------- */
.pg3d-faq { display: grid; gap: 8px; }
.pg3d-faq details {
  background: rgba(248,248,255,0.04); border: 1px solid var(--pg3d-line);
  border-radius: 12px; padding: 10px 12px;
}
.pg3d-faq summary { font-weight: 700; font-size: 1.3rem; color: var(--pg3d-text); cursor: pointer; list-style: none; }
.pg3d-faq summary::-webkit-details-marker { display: none; }
.pg3d-faq summary::before { content: "+ "; color: var(--pg3d-primary); font-weight: 800; }
.pg3d-faq details[open] summary::before { content: "– "; }
.pg3d-faq p { margin: 8px 0 0; font-size: 1.2rem; color: rgba(248,248,255,0.82); }

/* ---------- Prose / SEO text ---------- */
.pg3d-prose p { font-size: 1.25rem; color: rgba(248,248,255,0.85); margin: 0 0 10px; }
.pg3d-prose h3 { font-size: 1.5rem; color: var(--pg3d-primary); margin: 14px 0 6px; }
.pg3d-prose a { font-weight: 600; border-bottom: 1px dashed rgba(0,250,154,0.5); }

/* ---------- Footer ---------- */
.pg3d-footer {
  background: linear-gradient(180deg, #1a1a1a, #111);
  border-top: 1px solid rgba(0,250,154,0.25);
  padding: 22px 14px 18px;
  color: rgba(248,248,255,0.7);
}
.pg3d-footer h3 { color: var(--pg3d-text); font-size: 1.4rem; margin: 14px 0 8px; }
.pg3d-footer p { font-size: 1.2rem; line-height: 1.6; }
.pg3d-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 10px 0; }
.pg3d-footer-links a { color: rgba(248,248,255,0.78); font-size: 1.2rem; }
.pg3d-footer-links a:hover { color: var(--pg3d-primary); }
.pg3d-promo-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pg3d-promo-row .pg3d-btn { flex: 1 1 auto; min-width: 120px; font-size: 1.2rem; padding: 8px 10px; }
.pg3d-copy { text-align: center; font-size: 1.1rem; color: rgba(248,248,255,0.55); border-top: 1px solid var(--pg3d-line); padding-top: 12px; margin-top: 10px; }

/* ---------- Mobile bottom nav ---------- */
.pg3d-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px; z-index: 1000;
  background: linear-gradient(180deg, rgba(36,28,59,0.98), rgba(20,20,20,0.98));
  border-top: 1px solid rgba(0,250,154,0.35);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.45);
}
.pg3d-bottom-nav button, .pg3d-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(248,248,255,0.7); font-size: 1.05rem; gap: 2px;
  background: transparent; border: none; cursor: pointer; min-width: 60px; min-height: 60px;
  position: relative; transition: color .15s ease, transform .15s ease;
  text-decoration: none;
}
.pg3d-bottom-nav button i, .pg3d-bottom-nav a i { font-size: 22px; }
.pg3d-bottom-nav button:hover, .pg3d-bottom-nav a:hover { color: var(--pg3d-primary); transform: translateY(-1px); }
.pg3d-bottom-nav .pg3d-active { color: var(--pg3d-primary); }
.pg3d-bottom-nav .pg3d-active::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--pg3d-primary);
}
.pg3d-bottom-nav .pg3d-badge {
  position: absolute; top: 6px; right: 22%; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #ff4d6d; color: #fff; font-size: .9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pg3d-bottom-nav .pg3d-nav-promo {
  background: linear-gradient(135deg, var(--pg3d-primary), #18d488); color: #08251a;
  border-radius: 14px; margin: 6px 4px; box-shadow: 0 4px 12px rgba(0,250,154,0.4);
}

body.pg3d-lock-scroll { overflow: hidden; }

/* ---------- Reveal animation ---------- */
.pg3d-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.pg3d-reveal.pg3d-revealed { opacity: 1; transform: none; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg3d-bottom-nav { display: none; }
  main.pg3d-main { padding-bottom: 32px; }
  body { font-size: 1.6rem; }
}

@media (max-width: 768px) {
  main.pg3d-main { padding-bottom: 86px; }
}
