/* ============================================================
   jlpub.homes - layout stylesheet
   All custom class names use the "pg83-" prefix.
   Palette: #D3D3D3 | #228B22 | #9AFF9A | #333333 | #2E8B57
   Mobile-first, max-width 430px container.
   ============================================================ */

:root {
  --pg83-primary: #228B22;
  --pg83-bg: #333333;
  --pg83-text: #D3D3D3;
  --pg83-accent: #9AFF9A;
  --pg83-deep: #2E8B57;
  --pg83-dark: #1e1e1e;
  --pg83-darker: #141414;
  --pg83-card: #2a2a2a;
  --pg83-border: #3d3d3d;
  --pg83-shadow: 0 4px 16px rgba(0,0,0,0.45);
  --pg83-radius: 12px;
  --pg83-header-h: 56px;
  --pg83-bottomnav-h: 60px;
}

* { 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", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  background: var(--pg83-darker);
  color: var(--pg83-text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--pg83-accent); text-decoration: none; }
a:hover { color: var(--pg83-text); }
img { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.pg83-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg83-wrapper { padding: 1.6rem 0; }

/* ---------- Header ---------- */
.pg83-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--pg83-header-h);
  background: linear-gradient(90deg, var(--pg83-primary), var(--pg83-deep));
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
}
.pg83-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.pg83-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.pg83-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg83-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pg83-logo-text span { color: var(--pg83-accent); }
.pg83-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pg83-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  min-height: 36px;
  line-height: 1;
}
.pg83-btn:hover { transform: translateY(-1px); }
.pg83-btn-register { background: #fff; color: var(--pg83-primary); }
.pg83-btn-login { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.pg83-btn-primary { background: var(--pg83-accent); color: #0d2b0d; }
.pg83-btn-deep { background: var(--pg83-deep); color: #fff; }

.pg83-menu-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  color: #fff;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.pg83-toggle-active { background: rgba(255,255,255,0.2); }

/* ---------- Mobile slide menu ---------- */
.pg83-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--pg83-dark);
  z-index: 9999;
  padding: 6rem 1.4rem 2rem;
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--pg83-border);
}
.pg83-menu-open { right: 0; }
.pg83-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease;
}
.pg83-menu-open ~ .pg83-menu-backdrop { opacity: 1; visibility: visible; }
.pg83-mobile-menu h3 {
  color: var(--pg83-accent);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.6rem 0 0.8rem;
  border-bottom: 1px solid var(--pg83-border);
  padding-bottom: 0.4rem;
}
.pg83-mobile-menu a {
  display: block;
  padding: 0.9rem 0.6rem;
  color: var(--pg83-text);
  font-size: 1.4rem;
  border-bottom: 1px dashed var(--pg83-border);
}
.pg83-mobile-menu a:hover { color: var(--pg83-accent); }
.pg83-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent; border: none; color: #fff;
  font-size: 2rem; cursor: pointer;
}

/* ---------- Main content padding ---------- */
main { padding-top: calc(var(--pg83-header-h) + 6px); }
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--pg83-bottomnav-h) + 20px); }
}

/* ---------- Hero carousel ---------- */
.pg83-carousel {
  position: relative;
  margin: 1.2rem 0;
  border-radius: var(--pg83-radius);
  overflow: hidden;
  box-shadow: var(--pg83-shadow);
}
.pg83-carousel-track { position: relative; height: 180px; }
.pg83-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  cursor: pointer;
}
.pg83-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg83-slide-active { opacity: 1; }
.pg83-carousel-caption {
  position: absolute;
  left: 1rem; bottom: 1.4rem;
  background: rgba(0,0,0,0.55);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
}
.pg83-carousel-dots {
  position: absolute;
  bottom: 0.6rem; right: 1rem;
  display: flex; gap: 0.4rem;
}
.pg83-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
}
.pg83-dot-active { background: var(--pg83-accent); }

/* ---------- Section titles ---------- */
.pg83-section { padding: 1.6rem 0; }
.pg83-section-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
  border-left: 4px solid var(--pg83-accent);
  padding-left: 0.8rem;
  font-weight: 700;
}
.pg83-section-sub {
  color: var(--pg83-accent);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.pg83-intro {
  color: var(--pg83-text);
  margin-bottom: 1rem;
  font-size: 1.45rem;
  line-height: 1.55;
}

/* ---------- Filter tabs ---------- */
.pg83-filter-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.6rem 0;
  margin-bottom: 0.8rem;
  -webkit-overflow-scrolling: touch;
}
.pg83-filter-tab {
  flex: 0 0 auto;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  background: var(--pg83-card);
  color: var(--pg83-text);
  font-size: 1.25rem;
  border: 1px solid var(--pg83-border);
  cursor: pointer;
  white-space: nowrap;
}
.pg83-filter-active {
  background: var(--pg83-primary);
  color: #fff;
  border-color: var(--pg83-accent);
}

/* ---------- Game grid ---------- */
.pg83-game-block { margin: 1.4rem 0; }
.pg83-game-block-title {
  font-size: 1.7rem;
  color: var(--pg83-accent);
  margin-bottom: 0.8rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
}
.pg83-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.pg83-game-card {
  background: var(--pg83-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--pg83-border);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.pg83-game-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(154,255,154,0.15); }
.pg83-game-card img { width: 100%; height: 88px; object-fit: cover; }
.pg83-game-card .pg83-game-name {
  font-size: 1.15rem;
  color: var(--pg83-text);
  padding: 0.35rem 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards ---------- */
.pg83-card {
  background: var(--pg83-card);
  border-radius: var(--pg83-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pg83-border);
  box-shadow: var(--pg83-shadow);
}
.pg83-card h3 { color: var(--pg83-accent); font-size: 1.6rem; margin-bottom: 0.5rem; }
.pg83-card p { font-size: 1.4rem; color: var(--pg83-text); line-height: 1.5; }

/* ---------- Feature grid ---------- */
.pg83-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.pg83-feature {
  background: var(--pg83-card);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--pg83-border);
  text-align: center;
}
.pg83-feature .pg83-feature-icon { font-size: 2.4rem; color: var(--pg83-accent); margin-bottom: 0.4rem; }
.pg83-feature h4 { color: #fff; font-size: 1.35rem; margin-bottom: 0.3rem; }
.pg83-feature p { color: var(--pg83-text); font-size: 1.2rem; line-height: 1.4; }

/* ---------- RTP table ---------- */
.pg83-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
  background: var(--pg83-card);
  border-radius: 8px;
  overflow: hidden;
}
.pg83-rtp-table th, .pg83-rtp-table td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--pg83-border);
}
.pg83-rtp-table th { background: var(--pg83-primary); color: #fff; font-size: 1.25rem; }
.pg83-rtp-table td { color: var(--pg83-text); }
.pg83-rtp-table tr:last-child td { border-bottom: none; }
.pg83-rtp-bar {
  display: inline-block;
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--pg83-primary), var(--pg83-accent));
  vertical-align: middle;
}

/* ---------- Testimonials ---------- */
.pg83-testimonials { display: grid; gap: 0.8rem; }
.pg83-testimonial {
  background: var(--pg83-card);
  border-radius: 10px;
  padding: 1rem;
  border-left: 3px solid var(--pg83-accent);
}
.pg83-testimonial .pg83-testi-name { color: #fff; font-weight: 700; font-size: 1.35rem; }
.pg83-testimonial .pg83-testi-stars { color: #ffd700; font-size: 1.2rem; margin: 0.2rem 0; }
.pg83-testimonial p { color: var(--pg83-text); font-size: 1.3rem; }

/* ---------- Payment ---------- */
.pg83-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.pg83-pay-item {
  background: var(--pg83-card);
  border-radius: 8px;
  padding: 0.7rem 0.3rem;
  text-align: center;
  border: 1px solid var(--pg83-border);
  font-size: 1.1rem;
  color: var(--pg83-text);
}
.pg83-pay-item .pg83-pay-icon { font-size: 2rem; color: var(--pg83-accent); }

/* ---------- Winners ---------- */
.pg83-winner-list { display: grid; gap: 0.5rem; }
.pg83-winner {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--pg83-card);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--pg83-border);
}
.pg83-winner .pg83-win-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--pg83-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
}
.pg83-winner .pg83-win-info { flex: 1; min-width: 0; }
.pg83-winner .pg83-win-name { color: #fff; font-size: 1.25rem; font-weight: 600; }
.pg83-winner .pg83-win-amount { color: var(--pg83-accent); font-size: 1.15rem; }
.pg83-winner .pg83-win-game { color: var(--pg83-text); font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.pg83-faq-item {
  background: var(--pg83-card);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  border: 1px solid var(--pg83-border);
  overflow: hidden;
}
.pg83-faq-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1rem;
  cursor: pointer;
  background: transparent;
  width: 100%;
  border: none;
  text-align: left;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
}
.pg83-faq-icon { color: var(--pg83-accent); font-size: 1.6rem; transition: transform .2s ease; }
.pg83-faq-icon-open { transform: rotate(45deg); }
.pg83-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 1rem;
  color: var(--pg83-text);
  font-size: 1.3rem;
  line-height: 1.5;
}
.pg83-faq-open .pg83-faq-answer { padding-bottom: 0.9rem; }

/* ---------- CTA ---------- */
.pg83-cta {
  background: linear-gradient(135deg, var(--pg83-primary), var(--pg83-deep));
  border-radius: var(--pg83-radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  margin: 1.4rem 0;
  box-shadow: var(--pg83-shadow);
}
.pg83-cta h3 { color: #fff; font-size: 2rem; margin-bottom: 0.5rem; }
.pg83-cta p { color: rgba(255,255,255,0.9); margin-bottom: 1rem; font-size: 1.35rem; }
.pg83-cta .pg83-btn { font-size: 1.4rem; padding: 0.9rem 1.6rem; }

/* ---------- Promo link inline ---------- */
.pg83-promo-link {
  color: var(--pg83-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- App download CTA ---------- */
.pg83-app-cta {
  display: flex; align-items: center; gap: 1rem;
  background: var(--pg83-card);
  padding: 1rem; border-radius: var(--pg83-radius);
  border: 1px solid var(--pg83-border);
  margin-bottom: 1rem;
}
.pg83-app-cta .pg83-app-icon { font-size: 3rem; color: var(--pg83-accent); }
.pg83-app-cta .pg83-app-text { flex: 1; }
.pg83-app-cta h4 { color: #fff; font-size: 1.5rem; }
.pg83-app-cta p { color: var(--pg83-text); font-size: 1.25rem; }

/* ---------- Footer ---------- */
.pg83-footer {
  background: var(--pg83-dark);
  border-top: 3px solid var(--pg83-primary);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.6rem;
}
.pg83-footer-brand { color: var(--pg83-text); font-size: 1.35rem; line-height: 1.5; margin-bottom: 1rem; }
.pg83-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1rem;
}
.pg83-footer-links a {
  padding: 0.4rem 0.7rem;
  background: var(--pg83-card);
  border-radius: 6px;
  font-size: 1.2rem;
  color: var(--pg83-text);
  border: 1px solid var(--pg83-border);
}
.pg83-footer-links a:hover { color: var(--pg83-accent); border-color: var(--pg83-accent); }
.pg83-footer-copy {
  color: #888; font-size: 1.2rem;
  border-top: 1px solid var(--pg83-border);
  padding-top: 0.8rem;
  text-align: center;
}

/* ---------- Mobile bottom navigation ---------- */
.pg83-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pg83-bottomnav-h);
  background: var(--pg83-dark);
  border-top: 2px solid var(--pg83-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.pg83-bottomnav a, .pg83-bottomnav button {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg83-text);
  font-size: 1.05rem;
  text-decoration: none;
  gap: 0.2rem;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.pg83-bottomnav .pg83-bn-icon { font-size: 2.2rem; line-height: 1; }
.pg83-bottomnav .pg83-bn-label { font-size: 1.05rem; line-height: 1; }
.pg83-bottomnav a:hover, .pg83-bottomnav button:hover { color: var(--pg83-accent); background: rgba(34,139,34,0.12); }
.pg83-bottomnav a:active, .pg83-bottomnav button:active { transform: scale(0.94); }
.pg83-bn-active { color: var(--pg83-accent) !important; }
.pg83-bn-active::before {
  content: "";
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  background: var(--pg83-accent);
  border-radius: 0 0 4px 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg83-bottomnav { display: none; }
  .pg83-container { max-width: 760px; }
  .pg83-game-grid { grid-template-columns: repeat(5, 1fr); }
  .pg83-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .pg83-carousel-track { height: 260px; }
}