/*
 * wk777 club - core layout stylesheet
 * Class prefix: pg17-
 * Palette: #FFFFBA | #141414 | #00FF7F | #FFDFBA | #FF69B4
 * Dark background, light text, mobile-first (max 430px).
 */

:root {
  --pg17-bg: #141414;
  --pg17-bg-2: #1c1c1c;
  --pg17-bg-3: #262626;
  --pg17-text: #FFFFBA;
  --pg17-text-soft: #FFDFBA;
  --pg17-primary: #00FF7F;
  --pg17-accent: #FF69B4;
  --pg17-line: #2e2e2e;
  --pg17-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --pg17-radius: 14px;
}

/* Root font scaling for rem-based spacing */
html { font-size: 62.5%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  background: var(--pg17-bg);
  color: var(--pg17-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem * 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--pg17-primary); text-decoration: none; }

/* Layout primitives */
.pg17-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg17-wrapper { padding-top: 6.2rem; padding-bottom: 8.5rem; }
.pg17-grid { display: grid; gap: 1rem; }

/* Header */
.pg17-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1b1b1b 0%, #141414 100%);
  border-bottom: 1px solid var(--pg17-line);
  box-shadow: var(--pg17-shadow);
}
.pg17-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem;
}
.pg17-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--pg17-text); }
.pg17-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pg17-brand-name { font-weight: 800; font-size: 1.6rem; letter-spacing: 0.3px; }
.pg17-brand-name b { color: var(--pg17-primary); }

/* Header buttons */
.pg17-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pg17-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700;
  padding: 0.7rem 1.1rem; min-height: 40px;
  border: none; border-radius: 999px;
  cursor: pointer; transition: transform .15s ease, opacity .15s ease;
  color: #141414;
}
.pg17-btn:active { transform: scale(0.96); }
.pg17-btn-login { background: var(--pg17-text-soft); }
.pg17-btn-register { background: var(--pg17-primary); }
.pg17-btn-ghost { background: transparent; border: 1px solid var(--pg17-primary); color: var(--pg17-primary); }
.pg17-menu-toggle {
  background: transparent; border: none; color: var(--pg17-text);
  font-size: 1.8rem; cursor: pointer; padding: 0.4rem 0.6rem; min-height: 40px;
}

/* Expandable mobile menu */
.pg17-mobile-menu {
  max-height: 0; overflow: hidden;
  background: var(--pg17-bg-2);
  transition: max-height .28s ease;
  border-top: 1px solid var(--pg17-line);
}
.pg17-mobile-menu.pg17-menu-open { max-height: 420px; }
.pg17-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 0.6rem 1rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pg17-mobile-menu-inner a {
  color: var(--pg17-text); font-size: 1.35rem; padding: 0.7rem 0.8rem;
  background: var(--pg17-bg-3); border-radius: 10px; border: 1px solid var(--pg17-line);
  display: flex; align-items: center; gap: 0.5rem;
}
.pg17-mobile-menu-inner a:active { background: #2f2f2f; }

/* Hero / Carousel */
.pg17-carousel { position: relative; border-radius: var(--pg17-radius); overflow: hidden; box-shadow: var(--pg17-shadow); margin-bottom: 1.4rem; }
.pg17-carousel-track { position: relative; }
.pg17-carousel-slide { display: none; cursor: pointer; position: relative; }
.pg17-carousel-slide.pg17-active { display: block; }
.pg17-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg17-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: var(--pg17-text); font-weight: 700; font-size: 1.5rem;
}
.pg17-carousel-dots { display: flex; gap: 0.5rem; padding: 0.6rem; justify-content: center; }
.pg17-carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: #555; cursor: pointer; border: none; }
.pg17-carousel-dot.pg17-active { background: var(--pg17-primary); }

/* Section titles */
.pg17-section { margin: 1.6rem 0; }
.pg17-h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.25; margin: 0.4rem 0 0.8rem; color: var(--pg17-text); }
.pg17-h1 b, .pg17-h2 b { color: var(--pg17-primary); }
.pg17-h2 { font-size: 1.8rem; font-weight: 800; margin: 1.4rem 0 0.7rem; color: var(--pg17-text); }
.pg17-h3 { font-size: 1.55rem; font-weight: 700; margin: 1.1rem 0 0.5rem; color: var(--pg17-text-soft); }
.pg17-lead { color: var(--pg17-text-soft); font-size: 1.4rem; line-height: 2.2rem; }
.pg17-text b { color: var(--pg17-primary); }
.pg17-text a { font-weight: 700; }

/* Promo CTA banner */
.pg17-cta {
  background: linear-gradient(135deg, rgba(0,255,127,0.16), rgba(255,105,180,0.16));
  border: 1px solid var(--pg17-line);
  border-radius: var(--pg17-radius);
  padding: 1.1rem 1.2rem; margin: 1.2rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.pg17-cta-text { font-size: 1.45rem; font-weight: 700; color: var(--pg17-text); }
.pg17-cta-text small { display: block; color: var(--pg17-text-soft); font-weight: 500; margin-top: 0.2rem; }
.pg17-pulse { transform: scale(0.94); }

/* Game grid (compact icons) */
.pg17-cat-title { font-size: 1.5rem; font-weight: 800; margin: 1.3rem 0 0.7rem; color: var(--pg17-accent); display: flex; align-items: center; gap: 0.5rem; }
.pg17-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.pg17-game-card { background: var(--pg17-bg-2); border: 1px solid var(--pg17-line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .15s ease; }
.pg17-game-card:active { transform: scale(0.96); }
.pg17-game-card img { width: 100%; height: 92px; object-fit: cover; background: #000; }
.pg17-game-name { font-size: 1.15rem; color: var(--pg17-text); text-align: center; padding: 0.35rem 0.2rem 0.5rem; line-height: 1.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Feature / info cards */
.pg17-cards { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.pg17-card {
  background: var(--pg17-bg-2); border: 1px solid var(--pg17-line);
  border-radius: var(--pg17-radius); padding: 1rem 1.1rem;
}
.pg17-card-title { font-size: 1.5rem; font-weight: 800; color: var(--pg17-primary); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.pg17-card p { margin: 0.4rem 0; color: var(--pg17-text-soft); font-size: 1.35rem; line-height: 2rem; }

/* Two-column compact tiles */
.pg17-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.pg17-tile { background: var(--pg17-bg-3); border: 1px solid var(--pg17-line); border-radius: 12px; padding: 0.9rem; }
.pg17-tile-num { font-size: 2rem; font-weight: 800; color: var(--pg17-accent); }
.pg17-tile-label { color: var(--pg17-text-soft); font-size: 1.25rem; }

/* Testimonials */
.pg17-testimonial { background: var(--pg17-bg-2); border-left: 3px solid var(--pg17-primary); border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 0.7rem; }
.pg17-testimonial p { margin: 0 0 0.4rem; color: var(--pg17-text); font-size: 1.35rem; line-height: 2rem; }
.pg17-testimonial cite { color: var(--pg17-text-soft); font-style: normal; font-size: 1.2rem; }

/* Payment chips */
.pg17-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg17-chip { background: var(--pg17-bg-3); border: 1px solid var(--pg17-line); color: var(--pg17-text); padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 1.25rem; display: inline-flex; align-items: center; gap: 0.35rem; }

/* Winner list */
.pg17-winners { background: var(--pg17-bg-2); border: 1px solid var(--pg17-line); border-radius: var(--pg17-radius); padding: 0.6rem 1rem; }
.pg17-winner-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed var(--pg17-line); font-size: 1.3rem; color: var(--pg17-text-soft); }
.pg17-winner-row:last-child { border-bottom: none; }
.pg17-winner-row b { color: var(--pg17-primary); }

/* Footer */
.pg17-footer { background: var(--pg17-bg-2); border-top: 1px solid var(--pg17-line); padding: 1.6rem 1.2rem 2.4rem; color: var(--pg17-text-soft); }
.pg17-footer-brand { font-weight: 800; color: var(--pg17-text); font-size: 1.6rem; margin-bottom: 0.5rem; }
.pg17-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin: 0.9rem 0; }
.pg17-footer-links a { color: var(--pg17-text-soft); font-size: 1.25rem; }
.pg17-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.pg17-footer-copy { font-size: 1.15rem; color: #888; margin-top: 0.8rem; }

/* Bottom navigation (mobile) */
.pg17-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1b1b1b, #0d0d0d);
  border-top: 1px solid var(--pg17-line);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
}
.pg17-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--pg17-text-soft); cursor: pointer;
  font-size: 1.1rem; font-weight: 600;
  transition: color .15s ease, transform .15s ease;
}
.pg17-bottomnav-btn .pg17-ico { font-size: 22px; line-height: 1; }
.pg17-bottomnav-btn:active { transform: scale(0.92); }
.pg17-bottomnav-btn.pg17-current { color: var(--pg17-primary); }
.pg17-bottomnav-btn.pg17-promo { color: var(--pg17-accent); }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pg17-bottomnav { display: none; }
  body { padding-bottom: 0; }
}
/* Mobile bottom padding for content clearance */
@media (max-width: 768px) {
  .pg17-wrapper { padding-bottom: 8.5rem; }
}

/* Utility */
.pg17-mt { margin-top: 1.2rem; }
.pg17-center { text-align: center; }
.pg17-divider { height: 1px; background: var(--pg17-line); margin: 1.4rem 0; border: none; }
