/* jili333 game - layout styles
   All classes use pg62- prefix.
   Palette: #F4A460 | #A0522D | #FFEFD5 | #3A3A3A | #00FFFF
   Mobile-first; root font-size handled in HTML (62.5%). */

:root {
  --pg62-primary: #F4A460;
  --pg62-secondary: #A0522D;
  --pg62-light: #FFEFD5;
  --pg62-bg: #3A3A3A;
  --pg62-bg-deep: #2a2a2a;
  --pg62-accent: #00FFFF;
  --pg62-text: #FFEFD5;
  --pg62-text-soft: #d9c7a8;
  --pg62-border: rgba(244, 164, 96, 0.35);
  --pg62-radius: 1.2rem;
  --pg62-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
  --pg62-header-h: 5.6rem;
  --pg62-bottomnav-h: 6.4rem;
  --pg62-maxw: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: linear-gradient(180deg, #2a2a2a 0%, #3A3A3A 60%, #2a2a2a 100%);
  color: var(--pg62-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--pg62-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--pg62-accent); }

h1, h2, h3, h4 {
  font-family: "Poppins", "Montserrat", "Segoe UI", sans-serif;
  color: var(--pg62-light);
  margin: 0 0 1rem;
  line-height: 1.3;
}

p { margin: 0 0 1rem; }

/* ---------------- Header ---------------- */
.pg62-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg62-header-h);
  background: linear-gradient(90deg, #A0522D 0%, #3A3A3A 100%);
  border-bottom: 0.2rem solid var(--pg62-primary);
  box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  max-width: var(--pg62-maxw);
  margin: 0 auto;
}
.pg62-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; color: var(--pg62-light);
  font-size: 1.5rem;
}
.pg62-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.pg62-logo .pg62-logo-badge {
  background: var(--pg62-accent); color: var(--pg62-bg-deep);
  font-size: 1rem; padding: 0.1rem 0.4rem; border-radius: 0.4rem;
}
.pg62-header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.pg62-btn {
  border: none; cursor: pointer; border-radius: 1rem;
  padding: 0.7rem 1.2rem; font-weight: 700; font-size: 1.2rem;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pg62-btn:hover { transform: translateY(-1px); }
.pg62-btn:active { transform: scale(0.97); }
.pg62-btn-login { background: transparent; color: var(--pg62-light); border: 0.15rem solid var(--pg62-primary); }
.pg62-btn-register {
  background: linear-gradient(180deg, #F4A460 0%, #A0522D 100%);
  color: #fff; box-shadow: 0 0.3rem 0.6rem rgba(0,0,0,0.4);
}
.pg62-menu-toggle {
  background: transparent; border: 0.15rem solid var(--pg62-primary);
  color: var(--pg62-primary); width: 3.6rem; height: 3.6rem;
  border-radius: 0.8rem; font-size: 1.6rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------------- Mobile slide-in menu ---------------- */
.pg62-mobile-menu {
  position: fixed; top: 0; right: -85%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--pg62-bg-deep); border-left: 0.2rem solid var(--pg62-primary);
  padding: 7rem 1.6rem 2rem; z-index: 9999;
  transform: translateX(0);
  transition: right 0.3s ease;
  overflow-y: auto;
}
.pg62-mobile-menu.pg62-menu-open { right: 0; }
.pg62-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; display: none;
}
.pg62-mobile-menu.pg62-menu-open ~ .pg62-menu-overlay { display: block; }
.pg62-mobile-menu h3 {
  color: var(--pg62-primary); font-size: 1.4rem;
  text-transform: uppercase; letter-spacing: 0.1rem;
  border-bottom: 0.1rem dashed var(--pg62-border);
  padding-bottom: 0.6rem; margin-bottom: 1rem;
}
.pg62-mobile-menu ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.pg62-mobile-menu li { margin-bottom: 0.6rem; }
.pg62-mobile-menu a {
  display: block; padding: 0.8rem 1rem;
  background: rgba(244,164,96,0.08);
  border-radius: 0.8rem; color: var(--pg62-text);
  font-weight: 600;
}
.pg62-mobile-menu a:hover { background: var(--pg62-secondary); color: #fff; }

/* ---------------- Layout helpers ---------------- */
.pg62-container {
  width: 100%; max-width: var(--pg62-maxw);
  margin: 0 auto; padding: 0 1rem;
}
.pg62-main {
  padding-top: calc(var(--pg62-header-h) + 1rem);
  padding-bottom: calc(var(--pg62-bottomnav-h) + 1.5rem);
  min-height: 100vh;
}
section { margin-bottom: 2.4rem; }

/* ---------------- Hero / Carousel ---------------- */
.pg62-carousel {
  position: relative;
  border-radius: var(--pg62-radius);
  overflow: hidden;
  box-shadow: var(--pg62-shadow);
  background: #1a1a1a;
}
.pg62-carousel-track { display: flex; flex-direction: column; }
.pg62-carousel-slide {
  display: none; position: relative;
}
.pg62-carousel-slide.pg62-slide-active { display: block; }
.pg62-carousel-slide img {
  width: 100%; height: 20rem; object-fit: cover;
}
.pg62-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.4rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: var(--pg62-light);
}
.pg62-carousel-caption h2 { margin: 0 0 0.3rem; font-size: 1.6rem; color: var(--pg62-primary); }
.pg62-carousel-caption p { margin: 0; font-size: 1.15rem; }
.pg62-carousel-dots {
  position: absolute; bottom: 0.6rem; right: 0.8rem;
  display: flex; gap: 0.4rem;
}
.pg62-carousel-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; padding: 0;
  cursor: pointer;
}
.pg62-carousel-dot.pg62-dot-active { background: var(--pg62-accent); }
.pg62-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: #fff; border: none;
  font-size: 1.6rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.pg62-carousel-nav.pg62-prev { left: 0.6rem; }
.pg62-carousel-nav.pg62-next { right: 0.6rem; }

/* ---------------- Filter bar ---------------- */
.pg62-filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  padding: 0.6rem 0;
  justify-content: center;
}
.pg62-filter-tab {
  padding: 0.6rem 1.1rem; border-radius: 2rem;
  background: rgba(244,164,96,0.12);
  color: var(--pg62-text-soft); border: 0.12rem solid var(--pg62-border);
  cursor: pointer; font-size: 1.2rem; font-weight: 600;
}
.pg62-filter-tab.pg62-filter-active {
  background: var(--pg62-primary); color: #fff;
  border-color: var(--pg62-primary);
}

/* ---------------- Section heading ---------------- */
.pg62-section-title {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 0.15rem solid var(--pg62-border);
}
.pg62-section-title .pg62-title-bar {
  width: 0.5rem; height: 2.4rem; border-radius: 0.3rem;
  background: linear-gradient(180deg, var(--pg62-primary), var(--pg62-accent));
}
.pg62-section-title h2 { margin: 0; font-size: 1.7rem; flex: 1; }

/* ---------------- Game grid ---------------- */
.pg62-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pg62-game-card {
  background: var(--pg62-bg-deep);
  border: 0.1rem solid var(--pg62-border);
  border-radius: 0.9rem;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pg62-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.4rem 1rem rgba(244,164,96,0.35);
  border-color: var(--pg62-accent);
}
.pg62-game-card img {
  width: 100%; height: 8.5rem; object-fit: cover;
  background: #111;
}
.pg62-game-card .pg62-game-name {
  font-size: 1.05rem; padding: 0.4rem 0.3rem 0.6rem;
  color: var(--pg62-text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- Info module ---------------- */
.pg62-module {
  background: rgba(58,58,58,0.6);
  border-left: 0.3rem solid var(--pg62-primary);
  border-radius: 0.8rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.6rem;
}
.pg62-module h3 { color: var(--pg62-primary); margin-bottom: 0.6rem; }
.pg62-module ul { padding-left: 1.4rem; }
.pg62-module li { margin-bottom: 0.4rem; }

/* Compact RTP grid */
.pg62-rtp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.pg62-rtp-item {
  background: var(--pg62-bg-deep); padding: 0.8rem;
  border-radius: 0.6rem; border: 0.1rem solid var(--pg62-border);
}
.pg62-rtp-item strong { color: var(--pg62-accent); }

/* Testimonials */
.pg62-testimonial {
  background: var(--pg62-bg-deep); border-radius: 0.8rem; padding: 1rem;
  margin-bottom: 0.8rem; border-left: 0.3rem solid var(--pg62-accent);
}
.pg62-testimonial .pg62-stars { color: #FFD700; letter-spacing: 0.2rem; }
.pg62-testimonial cite { display: block; margin-top: 0.4rem; color: var(--pg62-text-soft); font-style: normal; font-size: 1.1rem; }

/* Payment grid */
.pg62-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.pg62-pay-item {
  background: var(--pg62-bg-deep); border: 0.1rem solid var(--pg62-border);
  border-radius: 0.6rem; padding: 0.8rem 0.5rem;
  text-align: center; font-weight: 600; color: var(--pg62-text);
}
.pg62-pay-item i, .pg62-pay-item .material-icons { font-size: 1.8rem; color: var(--pg62-accent); }

/* Winners ticker */
.pg62-winner-list { list-style: none; padding: 0; margin: 0; }
.pg62-winner-list li {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 0.1rem dashed var(--pg62-border);
}
.pg62-winner-list li:last-child { border-bottom: none; }
.pg62-winner-list .pg62-amount { color: var(--pg62-accent); font-weight: 700; }

/* Inline CTA */
.pg62-cta-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0;
}
.pg62-cta-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--pg62-primary); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 1.5rem;
  font-weight: 700; cursor: pointer; border: none;
  font-size: 1.2rem;
}
.pg62-cta-btn:hover { background: var(--pg62-accent); color: var(--pg62-bg-deep); }
.pg62-cta-link {
  color: var(--pg62-primary); font-weight: 700;
  border-bottom: 0.1rem dashed var(--pg62-primary);
}

/* ---------------- Footer ---------------- */
.pg62-footer {
  background: var(--pg62-bg-deep);
  border-top: 0.3rem solid var(--pg62-primary);
  padding: 2rem 1rem 7rem;
  color: var(--pg62-text-soft);
}
.pg62-footer h4 { color: var(--pg62-primary); margin-bottom: 0.6rem; }
.pg62-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin: 1rem 0;
}
.pg62-footer-links a { color: var(--pg62-text); font-size: 1.15rem; }
.pg62-footer .pg62-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0;
}
.pg62-footer .pg62-footer-promo button {
  background: var(--pg62-secondary); color: #fff;
  border: none; padding: 0.7rem 1.1rem; border-radius: 1rem;
  font-weight: 700; cursor: pointer; font-size: 1.15rem;
}
.pg62-footer-copy {
  margin-top: 1.5rem; font-size: 1.1rem; color: var(--pg62-text-soft);
  text-align: center; border-top: 0.1rem dashed var(--pg62-border);
  padding-top: 1rem;
}

/* ---------------- Bottom mobile nav ---------------- */
.pg62-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--pg62-bottomnav-h);
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-top: 0.25rem solid var(--pg62-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  max-width: var(--pg62-maxw); margin: 0 auto;
}
.pg62-bottomnav button, .pg62-bottomnav a {
  flex: 1; min-width: 6rem; min-height: 6rem;
  background: transparent; border: none; color: var(--pg62-text-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; text-decoration: none;
  font-size: 1.05rem; font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.pg62-bottomnav button i,
.pg62-bottomnav button .material-icons,
.pg62-bottomnav a i,
.pg62-bottomnav a .material-icons,
.pg62-bottomnav button ion-icon,
.pg62-bottomnav a ion-icon { font-size: 2.4rem; }
.pg62-bottomnav button:hover, .pg62-bottomnav a:hover { color: var(--pg62-accent); transform: translateY(-2px); }
.pg62-bottomnav .pg62-nav-active { color: var(--pg62-primary); }
.pg62-bottomnav .pg62-nav-active::after {
  content: ""; position: absolute; top: -0.25rem; left: 30%; right: 30%;
  height: 0.25rem; background: var(--pg62-accent); border-radius: 0 0 0.4rem 0.4rem;
}
.pg62-nav-badge {
  position: absolute; top: 0.4rem; right: 1.4rem;
  background: #ff3b3b; color: #fff; font-size: 0.85rem;
  border-radius: 1rem; padding: 0.05rem 0.4rem;
}

/* ---------------- Back to top ---------------- */
.pg62-backtop {
  position: fixed; right: 1.2rem; bottom: calc(var(--pg62-bottomnav-h) + 1.2rem);
  width: 3.8rem; height: 3.8rem; border-radius: 50%;
  background: var(--pg62-secondary); color: #fff; border: none;
  cursor: pointer; font-size: 1.8rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}
.pg62-backtop.pg62-backtop-show { opacity: 1; pointer-events: auto; }
.pg62-backtop:hover { transform: translateY(-3px); background: var(--pg62-primary); }

/* ---------------- Desktop (>=769px) ---------------- */
@media (min-width: 769px) {
  body { background: #1a1a1a; }
  .pg62-header, .pg62-bottomnav { max-width: var(--pg62-maxw); }
  .pg62-bottomnav { display: none; }
  .pg62-main { padding-bottom: 2rem; }
  .pg62-footer { padding-bottom: 2rem; }
}
