/* ============================================================
   JL44 Site Core Stylesheet
   All custom classes use the "pg7d-" prefix.
   Mobile-first design, max-width 430px on the main container.
   English comments only.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --pg7d-bg-dark: #1a1a1a;
  --pg7d-bg-darker: #111111;
  --pg7d-bg-card: #262626;
  --pg7d-bg-secondary: #333333;
  --pg7d-primary: #FF4500;
  --pg7d-primary-dark: #B03060;
  --pg7d-pink: #FF69B4;
  --pg7d-pink-light: #FFC0CB;
  --pg7d-text: #BBBBBB;
  --pg7d-text-light: #FFFFFF;
  --pg7d-border: rgba(255, 105, 180, 0.18);
  --pg7d-gradient: linear-gradient(135deg, #FF4500 0%, #B03060 100%);
  --pg7d-gradient-pink: linear-gradient(135deg, #FF69B4 0%, #FFC0CB 100%);
  --pg7d-radius: 12px;
  --pg7d-radius-sm: 8px;
  --pg7d-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --pg7d-header-h: 60px;
  --pg7d-bottom-h: 62px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--pg7d-bg-dark);
  color: var(--pg7d-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pg7d-pink-light); text-decoration: none; }
a:hover { color: var(--pg7d-pink); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout ---------- */
.pg7d-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg7d-bg-dark);
  min-height: 100vh;
  position: relative;
}
.pg7d-container { width: 100%; padding: 0 1.2rem; }

/* ---------- Header ---------- */
.pg7d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pg7d-border);
  box-shadow: var(--pg7d-shadow);
}
.pg7d-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg7d-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}
.pg7d-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--pg7d-text-light);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.5px;
}
.pg7d-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg7d-logo .pg7d-logo-accent {
  background: var(--pg7d-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pg7d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg7d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  transition: transform 0.15s ease, filter 0.2s ease;
  min-height: 38px;
}
.pg7d-btn:active { transform: scale(0.95); }
.pg7d-btn-primary { background: var(--pg7d-gradient); color: #fff; box-shadow: 0 3px 10px rgba(255, 69, 0, 0.4); }
.pg7d-btn-outline { background: transparent; color: var(--pg7d-pink-light); border: 1.5px solid var(--pg7d-pink); }
.pg7d-btn-primary:hover { filter: brightness(1.08); color: #fff; }
.pg7d-btn-outline:hover { background: rgba(255, 105, 180, 0.12); color: var(--pg7d-pink); }

.pg7d-menu-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--pg7d-text-light); font-size: 2rem;
  border-radius: 8px;
}
.pg7d-menu-btn.pg7d-active { background: var(--pg7d-bg-secondary); }

/* ---------- Mobile expandable menu ---------- */
.pg7d-mobile-menu {
  position: fixed;
  top: var(--pg7d-header-h); left: 0; right: 0;
  z-index: 9999;
  background: var(--pg7d-bg-darker);
  border-bottom: 1px solid var(--pg7d-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.pg7d-mobile-menu.pg7d-menu-open { max-height: 520px; box-shadow: var(--pg7d-shadow); }
.pg7d-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 1rem 1.2rem 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.pg7d-mobile-menu a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1rem; border-radius: var(--pg7d-radius-sm);
  background: var(--pg7d-bg-card); color: var(--pg7d-text-light);
  font-size: 1.3rem; font-weight: 600;
  border: 1px solid transparent;
}
.pg7d-mobile-menu a:hover { border-color: var(--pg7d-primary); color: var(--pg7d-pink-light); }
.pg7d-mobile-menu a i { color: var(--pg7d-primary); font-size: 1.6rem; }

/* ---------- Main ---------- */
.pg7d-main { padding-top: calc(var(--pg7d-header-h) + 4px); padding-bottom: 80px; }

/* ---------- Carousel ---------- */
.pg7d-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--pg7d-radius);
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: var(--pg7d-shadow);
}
.pg7d-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 7; }
.pg7d-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.pg7d-carousel-slide.pg7d-slide-active { opacity: 1; }
.pg7d-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg7d-carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.pg7d-carousel-caption {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2; color: #fff;
  font-size: 1.5rem; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.pg7d-carousel-cta {
  display: inline-block; margin-top: 0.5rem; padding: 0.5rem 1.2rem;
  background: var(--pg7d-gradient); border-radius: 999px; font-size: 1.2rem; font-weight: 700;
}
.pg7d-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.pg7d-carousel-arrow.pg7d-prev { left: 0.8rem; }
.pg7d-carousel-arrow.pg7d-next { right: 0.8rem; }
.pg7d-carousel-dots { position: absolute; bottom: 0.6rem; right: 1rem; z-index: 3; display: flex; gap: 0.5rem; }
.pg7d-carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.pg7d-carousel-dot.pg7d-dot-active { background: var(--pg7d-primary); width: 18px; border-radius: 999px; }

/* ---------- Section ---------- */
.pg7d-section { margin: 1.6rem 0; }
.pg7d-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.7rem; font-weight: 800; color: var(--pg7d-text-light);
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg7d-bg-secondary);
}
.pg7d-section-title i { color: var(--pg7d-primary); font-size: 2rem; }
.pg7d-section-title .pg7d-hl { color: var(--pg7d-pink); }

/* ---------- Hero H1 ---------- */
.pg7d-hero { text-align: center; padding: 0.6rem 0 0.4rem; }
.pg7d-hero h1 {
  font-size: 2.2rem; line-height: 1.25; font-weight: 900;
  background: var(--pg7d-gradient-pink);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}
.pg7d-hero p { color: var(--pg7d-text); font-size: 1.35rem; }

/* ---------- Category tabs ---------- */
.pg7d-cat-tabs { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.2rem 0 0.8rem; -webkit-overflow-scrolling: touch; }
.pg7d-cat-tabs::-webkit-scrollbar { display: none; }
.pg7d-cat-tab {
  flex: 0 0 auto; padding: 0.55rem 1.2rem; border-radius: 999px;
  background: var(--pg7d-bg-card); color: var(--pg7d-text);
  font-size: 1.25rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.pg7d-cat-tab.pg7d-cat-active { background: var(--pg7d-gradient); color: #fff; border-color: var(--pg7d-primary); }

/* ---------- Game grid ---------- */
.pg7d-game-section { margin-bottom: 1.6rem; }
.pg7d-game-section h2 { font-size: 1.6rem; font-weight: 800; color: var(--pg7d-pink-light); margin-bottom: 0.8rem; display:flex; align-items:center; gap:0.5rem; }
.pg7d-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.pg7d-game-card {
  display: block; background: var(--pg7d-bg-card); border-radius: var(--pg7d-radius-sm);
  overflow: hidden; text-align: center; border: 1px solid var(--pg7d-border);
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.pg7d-game-card:hover { transform: translateY(-3px); border-color: var(--pg7d-primary); }
.pg7d-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.pg7d-game-card span {
  display: block; padding: 0.5rem 0.3rem; font-size: 1.1rem; font-weight: 600;
  color: var(--pg7d-text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Card / module ---------- */
.pg7d-card {
  background: var(--pg7d-bg-card); border-radius: var(--pg7d-radius);
  padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--pg7d-border);
}
.pg7d-card h3 { font-size: 1.45rem; color: var(--pg7d-pink); margin-bottom: 0.6rem; font-weight: 800; }
.pg7d-card p { color: var(--pg7d-text); font-size: 1.28rem; line-height: 1.55; margin-bottom: 0.6rem; }
.pg7d-card p:last-child { margin-bottom: 0; }
.pg7d-card .pg7d-inline-link { color: var(--pg7d-primary); font-weight: 700; }
.pg7d-card .pg7d-inline-link:hover { text-decoration: underline; }

/* ---------- Features list ---------- */
.pg7d-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.pg7d-feature-item {
  background: var(--pg7d-bg-secondary); border-radius: var(--pg7d-radius-sm);
  padding: 1rem 0.8rem; text-align: center; border: 1px solid var(--pg7d-border);
}
.pg7d-feature-item i { font-size: 2.4rem; color: var(--pg7d-primary); margin-bottom: 0.4rem; }
.pg7d-feature-item span { display: block; font-weight: 700; font-size: 1.2rem; color: var(--pg7d-text-light); }
.pg7d-feature-item small { color: var(--pg7d-text); font-size: 1.05rem; }

/* ---------- RTP bars ---------- */
.pg7d-rtp-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.pg7d-rtp-name { flex: 0 0 95px; font-size: 1.15rem; color: var(--pg7d-text-light); font-weight: 600; }
.pg7d-rtp-track { flex: 1; height: 9px; background: var(--pg7d-bg-darker); border-radius: 999px; overflow: hidden; }
.pg7d-rtp-fill { height: 100%; background: var(--pg7d-gradient); }
.pg7d-rtp-val { flex: 0 0 48px; text-align: right; font-size: 1.15rem; font-weight: 700; color: var(--pg7d-pink); }

/* ---------- Testimonials ---------- */
.pg7d-testimonials { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.pg7d-testimonial { background: var(--pg7d-bg-secondary); border-radius: var(--pg7d-radius-sm); padding: 1rem; border-left: 3px solid var(--pg7d-primary); }
.pg7d-testimonial-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.pg7d-testimonial-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pg7d-gradient); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:1.3rem; }
.pg7d-testimonial-name { font-weight: 700; color: var(--pg7d-text-light); font-size: 1.25rem; }
.pg7d-testimonial-stars { color: #FFD700; font-size: 1.1rem; margin-left: auto; }
.pg7d-testimonial p { color: var(--pg7d-text); font-size: 1.18rem; }

/* ---------- Winners ---------- */
.pg7d-winners { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.pg7d-winner { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; background: var(--pg7d-bg-secondary); border-radius: var(--pg7d-radius-sm); }
.pg7d-winner i { color: #FFD700; font-size: 1.5rem; }
.pg7d-winner b { color: var(--pg7d-pink-light); }
.pg7d-winner span { margin-left: auto; color: var(--pg7d-primary); font-weight: 700; }

/* ---------- Payment icons ---------- */
.pg7d-payment { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pg7d-pay-pill { display:inline-flex; align-items:center; gap:0.4rem; padding:0.55rem 1rem; background: var(--pg7d-bg-secondary); border-radius: 999px; border: 1px solid var(--pg7d-border); font-size: 1.15rem; color: var(--pg7d-text-light); font-weight:600; }
.pg7d-pay-pill i { color: var(--pg7d-pink); }

/* ---------- App CTA ---------- */
.pg7d-app-cta { background: var(--pg7d-gradient); border-radius: var(--pg7d-radius); padding: 1.4rem; text-align: center; color: #fff; margin-bottom: 1rem; }
.pg7d-app-cta h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.pg7d-app-cta p { font-size: 1.2rem; margin-bottom: 0.8rem; opacity: 0.95; }
.pg7d-app-cta .pg7d-btn { background: #fff; color: var(--pg7d-primary-dark); }

/* ---------- FAQ ---------- */
.pg7d-faq-item { background: var(--pg7d-bg-card); border-radius: var(--pg7d-radius-sm); margin-bottom: 0.6rem; overflow: hidden; border: 1px solid var(--pg7d-border); }
.pg7d-faq-q { width: 100%; text-align: left; padding: 1rem 1.1rem; font-weight: 700; font-size: 1.3rem; color: var(--pg7d-text-light); display: flex; justify-content: space-between; align-items: center; }
.pg7d-faq-q .pg7d-faq-icon { color: var(--pg7d-primary); transition: transform 0.2s ease; }
.pg7d-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 1.1rem; color: var(--pg7d-text); font-size: 1.22rem; }
.pg7d-faq-item.pg7d-faq-open .pg7d-faq-a { max-height: 220px; padding-bottom: 1rem; }
.pg7d-faq-item.pg7d-faq-open .pg7d-faq-icon { transform: rotate(45deg); }

/* ---------- CTA banner ---------- */
.pg7d-cta-banner { background: var(--pg7d-gradient-pink); border-radius: var(--pg7d-radius); padding: 1.4rem; text-align: center; color: #2a0a18; margin: 1rem 0; }
.pg7d-cta-banner h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.pg7d-cta-banner p { font-size: 1.25rem; margin-bottom: 0.8rem; font-weight: 600; }
.pg7d-cta-banner .pg7d-btn { background: #2a0a18; color: #fff; }

/* ---------- Footer ---------- */
.pg7d-footer { background: var(--pg7d-bg-darker); border-top: 1px solid var(--pg7d-border); padding: 1.6rem 1.2rem 2rem; margin-top: 1.2rem; }
.pg7d-footer-brand { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.6rem; }
.pg7d-footer-brand .pg7d-logo-accent { color: var(--pg7d-primary); }
.pg7d-footer p { color: var(--pg7d-text); font-size: 1.18rem; line-height: 1.5; margin-bottom: 1rem; }
.pg7d-footer-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.2rem; }
.pg7d-footer-promos button { background: var(--pg7d-gradient); color: #fff; padding: 0.7rem 0.5rem; border-radius: var(--pg7d-radius-sm); font-weight: 700; font-size: 1.15rem; }
.pg7d-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.pg7d-footer-links a { color: var(--pg7d-text); font-size: 1.15rem; }
.pg7d-footer-links a:hover { color: var(--pg7d-pink); }
.pg7d-footer-copy { text-align: center; color: var(--pg7d-text); font-size: 1.1rem; border-top: 1px solid var(--pg7d-border); padding-top: 0.9rem; }

/* ---------- Mobile bottom nav ---------- */
.pg7d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pg7d-bottom-h);
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--pg7d-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.pg7d-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--pg7d-text); font-size: 1rem; min-width: 60px; min-height: 60px;
  transition: color 0.2s ease, transform 0.15s ease;
}
.pg7d-bottom-nav-btn i { font-size: 22px; }
.pg7d-bottom-nav-btn:active { transform: scale(0.92); }
.pg7d-bottom-nav-btn.pg7d-nav-current { color: var(--pg7d-primary); }
.pg7d-bottom-nav-btn:hover { color: var(--pg7d-pink); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg7d-bottom-nav { display: none; }
  .pg7d-menu-btn { display: none; }
  .pg7d-wrapper { max-width: 760px; box-shadow: var(--pg7d-shadow); }
  .pg7d-header-inner, .pg7d-mobile-menu-inner { max-width: 760px; }
  .pg7d-mobile-menu { position: static; max-height: none; display: none; }
}
@media (max-width: 768px) {
  .pg7d-main, body { padding-bottom: 80px; }
}
