/* ============================================================
 * kuya-king.homes - design-240f.css
 * All custom classes use the pg24- prefix.
 * Palette: #495057 | #000080 | #0F0F23 | #ECF0F1 | #708090 | #191970
 * Mobile-first layout (max-width 430px), rem units, root 62.5%.
 * ============================================================ */

:root {
  --pg24-primary: #000080;
  --pg24-deep: #0F0F23;
  --pg24-night: #191970;
  --pg24-slate: #495057;
  --pg24-mist: #708090;
  --pg24-light: #ECF0F1;
  --pg24-accent: #FFD166;
  --pg24-accent2: #06D6A0;
  --pg24-danger: #EF476F;
  --pg24-bg: #0F0F23;
  --pg24-text: #ECF0F1;
  --pg24-muted: #708090;
  --pg24-card: #161634;
  --pg24-card2: #1c1c44;
  --pg24-border: rgba(236, 240, 241, 0.12);
  --pg24-radius: 12px;
  --pg24-radius-lg: 18px;
  --pg24-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --pg24-header-h: 58px;
  --pg24-bottomnav-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pg24-text);
  background: linear-gradient(160deg, #0F0F23 0%, #131342 55%, #191970 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--pg24-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--pg24-light); font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin-bottom: 1.2rem; color: var(--pg24-light); }

/* ---------- Layout helpers ---------- */
.pg24-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.pg24-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.pg24-section {
  padding: 2.4rem 0;
}
.pg24-section-alt {
  background: rgba(0, 0, 128, 0.18);
  border-top: 1px solid var(--pg24-border);
  border-bottom: 1px solid var(--pg24-border);
}
.pg24-center { text-align: center; }
.pg24-hidden { display: none !important; }
.pg24-mt { margin-top: 1.6rem; }
.pg24-mb { margin-bottom: 1.6rem; }

/* ---------- Header ---------- */
.pg24-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg24-header-h);
  background: linear-gradient(90deg, #0F0F23 0%, #000080 100%);
  border-bottom: 1px solid var(--pg24-border);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.pg24-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 0.6rem;
}
.pg24-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--pg24-light);
  font-weight: 800;
  font-size: 1.7rem;
}
.pg24-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.pg24-logo .pg24-logo-mark {
  color: var(--pg24-accent);
}
.pg24-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pg24-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 20px;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
  color: #0F0F23;
  background: var(--pg24-accent);
}
.pg24-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pg24-btn-secondary {
  background: transparent;
  color: var(--pg24-light);
  border: 1.5px solid var(--pg24-light);
}
.pg24-btn-ghost {
  background: rgba(236, 240, 241, 0.1);
  color: var(--pg24-light);
  border: 1px solid var(--pg24-border);
}
.pg24-btn-lg {
  min-height: 48px;
  padding: 0 2rem;
  font-size: 1.6rem;
  border-radius: 26px;
}
.pg24-menu-toggle {
  background: transparent;
  border: none;
  color: var(--pg24-light);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pg24-menu-toggle:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Mobile menu ---------- */
.pg24-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.pg24-overlay-active {
  opacity: 1;
  visibility: visible;
}
.pg24-mobile-menu {
  position: fixed;
  top: 0; right: -82%;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  background: linear-gradient(180deg, #131342 0%, #0F0F23 100%);
  border-left: 1px solid var(--pg24-border);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 1.6rem 1.4rem;
  overflow-y: auto;
}
.pg24-menu-active { right: 0; }
.pg24-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pg24-border);
}
.pg24-menu-head h3 { color: var(--pg24-accent); font-size: 1.8rem; }
.pg24-menu-close {
  background: transparent;
  border: none;
  color: var(--pg24-light);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}
.pg24-mobile-menu ul li { margin-bottom: 0.4rem; }
.pg24-mobile-menu ul li a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--pg24-light);
  font-size: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
}
.pg24-mobile-menu ul li a:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--pg24-accent);
  text-decoration: none;
}
.pg24-menu-cta {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ---------- Hero carousel ---------- */
.pg24-main {
  padding-top: calc(var(--pg24-header-h) + 1rem);
}
.pg24-hero {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  border-radius: var(--pg24-radius-lg);
  overflow: hidden;
  box-shadow: var(--pg24-shadow);
  background: #000;
}
.pg24-hero-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.pg24-slide-active { display: block; }
.pg24-hero-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.95;
}
.pg24-hero-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 35, 0.95) 100%);
  color: var(--pg24-light);
}
.pg24-hero-cap h2 {
  color: var(--pg24-accent);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}
.pg24-hero-cap p { font-size: 1.3rem; margin: 0; }
.pg24-hero-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.pg24-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(236, 240, 241, 0.4);
  cursor: pointer;
  border: none;
}
.pg24-dot-active { background: var(--pg24-accent); }
.pg24-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: var(--pg24-light);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  z-index: 5;
}
.pg24-hero-arrow.prev { left: 8px; }
.pg24-hero-arrow.next { right: 8px; }

/* ---------- Section heading ---------- */
.pg24-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  gap: 1rem;
}
.pg24-section-head h2 {
  font-size: 1.9rem;
  color: var(--pg24-light);
  border-left: 4px solid var(--pg24-accent);
  padding-left: 0.8rem;
}
.pg24-section-head .pg24-more {
  font-size: 1.3rem;
  color: var(--pg24-accent);
}
.pg24-lead {
  font-size: 1.5rem;
  color: var(--pg24-light);
  margin-bottom: 1.4rem;
}

/* ---------- Filter bar (visual only) ---------- */
.pg24-filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.pg24-filter-bar::-webkit-scrollbar { display: none; }
.pg24-filter-tab {
  flex: 0 0 auto;
  padding: 0.5rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--pg24-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg24-light);
  font-size: 1.3rem;
  cursor: pointer;
  white-space: nowrap;
}
.pg24-filter-active {
  background: var(--pg24-accent);
  color: #0F0F23;
  border-color: var(--pg24-accent);
  font-weight: 700;
}

/* ---------- Game grid (compact) ---------- */
.pg24-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pg24-game-card {
  background: var(--pg24-card);
  border-radius: var(--pg24-radius);
  overflow: hidden;
  border: 1px solid var(--pg24-border);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
  text-align: center;
}
.pg24-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}
.pg24-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #20204a;
}
.pg24-game-name {
  font-size: 1.2rem;
  color: var(--pg24-light);
  padding: 0.4rem 0.3rem 0.5rem;
  line-height: 1.2;
  min-height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Feature card grid ---------- */
.pg24-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.pg24-feature-card {
  background: var(--pg24-card);
  border: 1px solid var(--pg24-border);
  border-radius: var(--pg24-radius);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pg24-feature-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255, 209, 102, 0.12);
  color: var(--pg24-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.pg24-feature-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.pg24-feature-body p {
  font-size: 1.35rem;
  color: var(--pg24-light);
  margin: 0;
}

/* ---------- Promo CTA banner ---------- */
.pg24-cta {
  background: linear-gradient(120deg, #000080 0%, #191970 60%, #06D6A0 140%);
  border-radius: var(--pg24-radius-lg);
  padding: 1.8rem 1.4rem;
  text-align: center;
  border: 1px solid var(--pg24-border);
  box-shadow: var(--pg24-shadow);
}
.pg24-cta h2 {
  color: var(--pg24-accent);
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.pg24-cta p {
  color: var(--pg24-light);
  margin-bottom: 1.2rem;
}

/* ---------- Testimonial ---------- */
.pg24-testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.pg24-testi {
  background: var(--pg24-card);
  border-left: 3px solid var(--pg24-accent2);
  border-radius: var(--pg24-radius);
  padding: 1.2rem 1.4rem;
}
.pg24-testi p {
  font-style: italic;
  color: var(--pg24-light);
  margin-bottom: 0.8rem;
}
.pg24-testi-author {
  font-size: 1.3rem;
  color: var(--pg24-accent);
  font-weight: 700;
}
.pg24-stars { color: var(--pg24-accent); font-size: 1.3rem; letter-spacing: 2px; }

/* ---------- Payment row ---------- */
.pg24-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.pg24-pay-chip {
  background: var(--pg24-card);
  border: 1px solid var(--pg24-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 1.25rem;
  color: var(--pg24-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Winners list ---------- */
.pg24-winner-list {
  background: var(--pg24-card);
  border-radius: var(--pg24-radius);
  border: 1px solid var(--pg24-border);
  overflow: hidden;
}
.pg24-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--pg24-border);
  font-size: 1.35rem;
}
.pg24-winner-row:last-child { border-bottom: none; }
.pg24-winner-name { color: var(--pg24-light); font-weight: 600; }
.pg24-winner-game { color: var(--pg24-muted); font-size: 1.25rem; }
.pg24-winner-amt { color: var(--pg24-accent2); font-weight: 700; }

/* ---------- RTP table ---------- */
.pg24-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pg24-card);
  border-radius: var(--pg24-radius);
  overflow: hidden;
  border: 1px solid var(--pg24-border);
  font-size: 1.35rem;
}
.pg24-rtp-table th, .pg24-rtp-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--pg24-border);
}
.pg24-rtp-table th {
  background: rgba(0, 0, 128, 0.45);
  color: var(--pg24-accent);
  font-weight: 700;
}
.pg24-rtp-table td { color: var(--pg24-light); }
.pg24-rtp-pill {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.18);
  color: var(--pg24-accent2);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.pg24-faq-item {
  background: var(--pg24-card);
  border: 1px solid var(--pg24-border);
  border-radius: var(--pg24-radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.8rem;
}
.pg24-faq-item h3 {
  color: var(--pg24-accent);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.pg24-faq-item p { color: var(--pg24-light); margin: 0; font-size: 1.4rem; }

/* ---------- Category highlights ---------- */
.pg24-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.pg24-cat-card {
  background: var(--pg24-card);
  border: 1px solid var(--pg24-border);
  border-radius: var(--pg24-radius);
  padding: 1.2rem;
  text-align: center;
}
.pg24-cat-card .pg24-cat-ic {
  font-size: 2.6rem;
  color: var(--pg24-accent);
  margin-bottom: 0.4rem;
}
.pg24-cat-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.pg24-cat-card p {
  font-size: 1.25rem;
  color: var(--pg24-muted);
  margin: 0;
}

/* ---------- App download ---------- */
.pg24-app-box {
  background: linear-gradient(120deg, #191970 0%, #000080 100%);
  border: 1px solid var(--pg24-border);
  border-radius: var(--pg24-radius-lg);
  padding: 1.6rem;
  text-align: center;
}
.pg24-app-btns {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.pg24-footer {
  background: #08081a;
  border-top: 1px solid var(--pg24-border);
  padding: 2.4rem 0 calc(var(--pg24-bottomnav-h) + 2rem);
  margin-top: 2rem;
}
.pg24-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.pg24-footer h4 {
  color: var(--pg24-accent);
  font-size: 1.5rem;
  margin: 1.2rem 0 0.6rem;
}
.pg24-footer-brand p {
  font-size: 1.3rem;
  color: var(--pg24-light);
  margin-bottom: 1rem;
}
.pg24-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}
.pg24-footer-links a {
  font-size: 1.3rem;
  color: var(--pg24-light);
}
.pg24-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}
.pg24-footer-promos .pg24-btn {
  font-size: 1.2rem;
  min-height: 32px;
  padding: 0 0.9rem;
}
.pg24-footer-copy {
  border-top: 1px solid var(--pg24-border);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--pg24-muted);
  text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.pg24-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pg24-bottomnav-h);
  background: linear-gradient(90deg, #0F0F23 0%, #000080 100%);
  border-top: 1px solid var(--pg24-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.55);
}
.pg24-bottom-nav-btn {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg24-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 4px 2px;
}
.pg24-bottom-nav-btn .pg24-nav-ic {
  font-size: 22px;
  line-height: 1;
}
.pg24-bottom-nav-btn:hover { transform: translateY(-2px); }
.pg24-bottom-nav-btn:active { transform: scale(0.92); }
.pg24-bottom-nav-btn.pg24-nav-current {
  color: var(--pg24-accent);
}
.pg24-nav-badge {
  position: absolute;
  top: 6px;
  right: 18px;
  background: var(--pg24-danger);
  color: #fff;
  font-size: 0.9rem;
  padding: 1px 5px;
  border-radius: 999px;
}
.pg24-nav-btn-wrap { position: relative; }

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .pg24-bottom-nav { display: none; }
  .pg24-header-inner,
  .pg24-container,
  .pg24-wrapper,
  .pg24-footer-inner,
  .pg24-hero { max-width: 760px; }
  .pg24-game-grid { grid-template-columns: repeat(5, 1fr); }
  .pg24-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pg24-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .pg24-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .pg24-footer { padding-bottom: 2.4rem; }
}

/* Mobile bottom padding so content is not covered */
@media (max-width: 768px) {
  .pg24-main { padding-bottom: calc(var(--pg24-bottomnav-h) + 1rem); }
  .pg24-footer { padding-bottom: calc(var(--pg24-bottomnav-h) + 2rem); }
}
