/*
 * kkk.homes - core stylesheet
 * All custom classes use the pg69- prefix.
 * Color palette: #E0F2F1 | #E8F5E8 | #212F3D | #E0FFFF
 * Dark #212F3D is the background, light tones are text colors.
 */

:root {
  --pg69-primary: #212F3D;
  --pg69-secondary: #E0F2F1;
  --pg69-accent: #E8F5E8;
  --pg69-light: #E0FFFF;
  --pg69-text: #E0F2F1;
  --pg69-muted: #B0C4C4;
  --pg69-gold: #F0C674;
  --pg69-danger: #E57373;
  --pg69-success: #81C784;
  --pg69-radius: 1.2rem;
  --pg69-radius-sm: 0.8rem;
  --pg69-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45);
  --pg69-shadow-soft: 0 0.3rem 1rem rgba(0, 0, 0, 0.3);
}

/* Base reset */
* { 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, "PingFang SC", sans-serif;
  background: var(--pg69-primary);
  color: var(--pg69-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pg69-light); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Layout primitives */
.pg69-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg69-wrapper { padding: 2rem 1.2rem; }
.pg69-section { padding: 2.4rem 1.2rem; border-bottom: 1px solid rgba(224, 242, 241, 0.08); }
.pg69-section-alt { background: rgba(224, 242, 241, 0.04); }

/* Header */
.pg69-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; min-height: 5.6rem;
  background: rgba(33, 47, 61, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 242, 241, 0.1);
  transition: background 0.3s ease;
}
.pg69-header-solid { background: var(--pg69-primary); }
.pg69-logo { display: flex; align-items: center; gap: 0.8rem; }
.pg69-logo img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.pg69-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--pg69-light); letter-spacing: 0.05rem; }
.pg69-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg69-menu-btn {
  width: 4.4rem; height: 4.4rem; border-radius: 0.8rem;
  background: rgba(224, 242, 241, 0.08); color: var(--pg69-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; transition: background 0.2s ease;
}
.pg69-menu-btn:hover { background: rgba(224, 242, 241, 0.18); }

/* Buttons */
.pg69-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 1.6rem; border-radius: 2rem;
  font-size: 1.4rem; font-weight: 700; min-height: 4.4rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pg69-btn:active { transform: scale(0.96); }
.pg69-btn-login { background: rgba(224, 242, 241, 0.12); color: var(--pg69-light); border: 1px solid rgba(224, 242, 241, 0.4); }
.pg69-btn-login:hover { background: rgba(224, 242, 241, 0.22); }
.pg69-btn-register { background: var(--pg69-gold); color: var(--pg69-primary); box-shadow: 0 0.3rem 0.8rem rgba(240, 198, 116, 0.35); }
.pg69-btn-register:hover { box-shadow: 0 0.5rem 1.2rem rgba(240, 198, 116, 0.55); }
.pg69-btn-block { display: flex; width: 100%; }
.pg69-btn-cta { background: var(--pg69-success); color: var(--pg69-primary); font-size: 1.5rem; padding: 1.2rem 2rem; }

/* Mobile menu */
.pg69-mobile-menu {
  position: fixed; top: 5.6rem; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 9999;
  background: var(--pg69-primary);
  border-bottom: 1px solid rgba(224, 242, 241, 0.1);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.pg69-mobile-menu.pg69-menu-open { max-height: 60rem; }
.pg69-mobile-menu-inner { padding: 1rem 1.2rem 1.6rem; display: grid; gap: 0.4rem; }
.pg69-mobile-menu-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1rem; border-radius: 0.8rem;
  color: var(--pg69-text); font-size: 1.5rem; font-weight: 600;
}
.pg69-mobile-menu-item:hover { background: rgba(224, 242, 241, 0.08); }
.pg69-mobile-menu-item i { width: 2.4rem; text-align: center; color: var(--pg69-gold); }

/* Main content spacer for fixed header */
.pg69-main { padding-top: 5.6rem; padding-bottom: 8rem; }

/* Hero carousel */
.pg69-carousel { position: relative; width: 100%; height: 19rem; overflow: hidden; border-radius: 0 0 1.6rem 1.6rem; }
.pg69-carousel-track { position: relative; width: 100%; height: 100%; }
.pg69-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.pg69-carousel-slide.pg69-active { opacity: 1; }
.pg69-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg69-carousel-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.2rem 2rem;
  background: linear-gradient(to top, rgba(33, 47, 61, 0.95), rgba(33, 47, 61, 0));
}
.pg69-carousel-title { font-size: 2rem; font-weight: 800; color: var(--pg69-light); margin-bottom: 0.4rem; }
.pg69-carousel-sub { font-size: 1.3rem; color: var(--pg69-text); margin-bottom: 0.8rem; }
.pg69-carousel-dots {
  position: absolute; bottom: 0.8rem; right: 1.2rem;
  display: flex; gap: 0.5rem;
}
.pg69-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(224, 242, 241, 0.4); cursor: pointer; transition: background 0.2s ease;
}
.pg69-carousel-dot.pg69-active { background: var(--pg69-gold); }

/* Section heading */
.pg69-section-head { margin-bottom: 1.6rem; }
.pg69-section-title { font-size: 1.9rem; font-weight: 800; color: var(--pg69-light); margin-bottom: 0.4rem; }
.pg69-section-sub { font-size: 1.3rem; color: var(--pg69-muted); }

/* H1 main page title */
.pg69-h1 { font-size: 2.2rem; font-weight: 800; color: var(--pg69-light); line-height: 1.35; margin-bottom: 1rem; }
.pg69-h2 { font-size: 1.9rem; font-weight: 800; color: var(--pg69-light); margin: 1.6rem 0 0.8rem; }
.pg69-h3 { font-size: 1.6rem; font-weight: 700; color: var(--pg69-accent); margin: 1.2rem 0 0.6rem; }
.pg69-p { font-size: 1.4rem; color: var(--pg69-text); margin-bottom: 0.8rem; }
.pg69-p-muted { color: var(--pg69-muted); }
.pg69-strong { color: var(--pg69-gold); font-weight: 700; }

/* Promo link styles */
.pg69-promo-link { color: var(--pg69-gold); font-weight: 700; border-bottom: 1px dashed rgba(240, 198, 116, 0.6); cursor: pointer; }
.pg69-promo-link:hover { color: var(--pg69-light); border-bottom-color: var(--pg69-light); }
.pg69-anchor-link { color: var(--pg69-accent); border-bottom: 1px solid rgba(232, 245, 232, 0.4); }
.pg69-anchor-link:hover { color: var(--pg69-light); }

/* Game grid */
.pg69-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.pg69-game-card { position: relative; border-radius: var(--pg69-radius-sm); overflow: hidden; background: rgba(224, 242, 241, 0.06); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pg69-game-card:active { transform: scale(0.95); }
.pg69-game-card:hover { box-shadow: var(--pg69-shadow-soft); }
.pg69-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pg69-game-name { padding: 0.6rem 0.4rem; font-size: 1.1rem; text-align: center; color: var(--pg69-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Category label */
.pg69-cat-label { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 1rem; border-radius: 2rem; background: rgba(240, 198, 116, 0.15); color: var(--pg69-gold); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }

/* Cards */
.pg69-card { background: rgba(224, 242, 241, 0.05); border: 1px solid rgba(224, 242, 241, 0.1); border-radius: var(--pg69-radius); padding: 1.6rem; }
.pg69-card-title { font-size: 1.6rem; font-weight: 700; color: var(--pg69-light); margin-bottom: 0.6rem; }
.pg69-card-text { font-size: 1.35rem; color: var(--pg69-text); }

/* Steps */
.pg69-steps { display: grid; gap: 1rem; }
.pg69-step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border-radius: var(--pg69-radius-sm); background: rgba(224, 242, 241, 0.05); }
.pg69-step-num { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--pg69-gold); color: var(--pg69-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; flex-shrink: 0; }
.pg69-step-text { font-size: 1.35rem; color: var(--pg69-text); }

/* Features grid */
.pg69-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pg69-feature-item { padding: 1.4rem; border-radius: var(--pg69-radius-sm); background: rgba(232, 245, 232, 0.06); text-align: center; }
.pg69-feature-icon { font-size: 2.6rem; color: var(--pg69-gold); margin-bottom: 0.6rem; }
.pg69-feature-title { font-size: 1.4rem; font-weight: 700; color: var(--pg69-light); margin-bottom: 0.3rem; }
.pg69-feature-desc { font-size: 1.2rem; color: var(--pg69-muted); }

/* Promotions list */
.pg69-promo-list { display: grid; gap: 1rem; }
.pg69-promo-item { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--pg69-radius-sm); background: linear-gradient(135deg, rgba(240, 198, 116, 0.12), rgba(232, 245, 232, 0.05)); border: 1px solid rgba(240, 198, 116, 0.25); }
.pg69-promo-icon { font-size: 2.4rem; color: var(--pg69-gold); flex-shrink: 0; }
.pg69-promo-body h4 { font-size: 1.5rem; color: var(--pg69-light); margin-bottom: 0.3rem; }
.pg69-promo-body p { font-size: 1.25rem; color: var(--pg69-text); }

/* Winners showcase */
.pg69-winners { display: grid; gap: 0.8rem; }
.pg69-winner-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-radius: 0.8rem; background: rgba(224, 242, 241, 0.05); }
.pg69-winner-name { font-size: 1.3rem; color: var(--pg69-text); }
.pg69-winner-game { font-size: 1.1rem; color: var(--pg69-muted); }
.pg69-winner-amount { font-size: 1.4rem; color: var(--pg69-gold); font-weight: 800; }

/* Payment methods */
.pg69-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.pg69-payment-item { padding: 1.2rem 0.6rem; border-radius: 0.8rem; background: rgba(224, 242, 241, 0.05); text-align: center; }
.pg69-payment-icon { font-size: 2.4rem; color: var(--pg69-light); margin-bottom: 0.4rem; }
.pg69-payment-name { font-size: 1.15rem; color: var(--pg69-text); }

/* Testimonials */
.pg69-testi-grid { display: grid; gap: 1rem; }
.pg69-testi { padding: 1.4rem; border-radius: var(--pg69-radius-sm); background: rgba(232, 245, 232, 0.05); border-left: 3px solid var(--pg69-gold); }
.pg69-testi-text { font-size: 1.35rem; color: var(--pg69-text); margin-bottom: 0.6rem; font-style: italic; }
.pg69-testi-author { font-size: 1.2rem; color: var(--pg69-muted); }

/* App download CTA */
.pg69-app-cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem 1.6rem; border-radius: var(--pg69-radius); background: linear-gradient(135deg, rgba(33, 47, 61, 0.8), rgba(129, 199, 132, 0.2)); border: 1px solid rgba(129, 199, 132, 0.3); text-align: center; }
.pg69-app-cta-title { font-size: 1.8rem; font-weight: 800; color: var(--pg69-light); }
.pg69-app-cta-text { font-size: 1.3rem; color: var(--pg69-text); }
.pg69-app-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

/* FAQ */
.pg69-faq-list { display: grid; gap: 0.8rem; }
.pg69-faq-item { border-radius: 0.8rem; overflow: hidden; background: rgba(224, 242, 241, 0.05); border: 1px solid rgba(224, 242, 241, 0.1); }
.pg69-faq-q { width: 100%; text-align: left; padding: 1.2rem 1.4rem; font-size: 1.4rem; font-weight: 700; color: var(--pg69-light); display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
.pg69-faq-q i { transition: transform 0.3s ease; color: var(--pg69-gold); }
.pg69-faq-item.pg69-faq-open .pg69-faq-q i { transform: rotate(180deg); }
.pg69-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.4rem; }
.pg69-faq-item.pg69-faq-open .pg69-faq-a { max-height: 30rem; padding: 0 1.4rem 1.2rem; }
.pg69-faq-a p { font-size: 1.3rem; color: var(--pg69-text); }

/* Footer */
.pg69-footer { padding: 2.4rem 1.2rem 2rem; border-top: 1px solid rgba(224, 242, 241, 0.1); background: rgba(33, 47, 61, 0.9); }
.pg69-footer-brand { font-size: 1.4rem; color: var(--pg69-muted); margin-bottom: 1.2rem; }
.pg69-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1rem; margin-bottom: 1.6rem; }
.pg69-footer-link { font-size: 1.25rem; color: var(--pg69-text); padding: 0.4rem 0; }
.pg69-footer-link:hover { color: var(--pg69-gold); }
.pg69-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }
.pg69-footer-promo-btn { padding: 0.8rem 1.2rem; border-radius: 2rem; background: rgba(240, 198, 116, 0.15); color: var(--pg69-gold); font-size: 1.2rem; font-weight: 700; }
.pg69-footer-promo-btn:hover { background: rgba(240, 198, 116, 0.3); }
.pg69-footer-copy { font-size: 1.15rem; color: var(--pg69-muted); text-align: center; }

/* Mobile bottom nav */
.pg69-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 6.4rem; z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  background: rgba(33, 47, 61, 0.98);
  border-top: 1px solid rgba(240, 198, 116, 0.25);
  box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.4);
}
.pg69-bottom-nav-btn {
  flex: 1; min-width: 6rem; min-height: 6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--pg69-muted); background: none;
  transition: color 0.2s ease, transform 0.15s ease;
}
.pg69-bottom-nav-btn:active { transform: scale(0.92); }
.pg69-bottom-nav-btn i { font-size: 2.4rem; }
.pg69-bottom-nav-btn .material-icons-outlined,
.pg69-bottom-nav-btn .material-icons { font-size: 2.4rem; }
.pg69-bottom-nav-btn span { font-size: 1.05rem; }
.pg69-bottom-nav-btn:hover { color: var(--pg69-text); }
.pg69-bottom-nav-btn.pg69-nav-active { color: var(--pg69-gold); }
.pg69-bottom-nav-btn.pg69-nav-active i { color: var(--pg69-gold); }

/* Decorative badge for promo nav button */
.pg69-nav-badge {
  position: absolute; top: 0.6rem; right: calc(50% - 2.4rem);
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem;
  border-radius: 1rem; background: var(--pg69-danger);
  color: #fff; font-size: 0.9rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pg69-bottom-nav { display: none; }
  .pg69-main { padding-bottom: 2rem; }
  body { max-width: 430px; }
}

/* Responsive tweaks */
@media (max-width: 380px) {
  .pg69-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pg69-h1 { font-size: 1.9rem; }
  .pg69-carousel { height: 16rem; }
}
