/* ============================================================
   c188.homes - Core Stylesheet (basefiles)
   Class prefix: pg05-
   Palette: #D2B48C | #FFDEAD | #FFB6C1 | #1E1E1E
   ============================================================ */

:root {
  --pg05-primary: #D2B48C;
  --pg05-light: #FFDEAD;
  --pg05-accent: #FFB6C1;
  --pg05-bg: #1E1E1E;
  --pg05-bg-soft: #2a2622;
  --pg05-bg-card: #322c27;
  --pg05-text: #FFDEAD;
  --pg05-text-dim: #c9b89a;
  --pg05-white: #fff7ec;
  --pg05-gold: #e8c98a;
  --pg05-radius: 14px;
  --pg05-shadow: 0 6px 18px rgba(0,0,0,.35);
  --pg05-header-h: 58px;
  --pg05-bottomnav-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--pg05-bg);
  color: var(--pg05-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
.pg05-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg05-header-h);
  background: linear-gradient(90deg, #1E1E1E, #2a2622);
  border-bottom: 2px solid var(--pg05-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: var(--pg05-shadow);
}
.pg05-logo {
  display: flex; align-items: center; gap: .6rem;
  color: var(--pg05-light); font-weight: 800; font-size: 1.8rem;
}
.pg05-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg05-logo .pg05-badge {
  font-size: 1rem; color: var(--pg05-accent); font-weight: 600;
}
.pg05-header-actions { display: flex; align-items: center; gap: .5rem; }
.pg05-menu-btn {
  background: transparent; border: 1px solid var(--pg05-primary);
  color: var(--pg05-light); width: 38px; height: 38px;
  border-radius: 8px; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pg05-btn {
  border: none; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 1.3rem; padding: .7rem 1.1rem;
  transition: transform .12s ease, filter .12s ease;
  min-height: 38px;
}
.pg05-btn:active { transform: scale(.95); }
.pg05-btn-register {
  background: linear-gradient(90deg, var(--pg05-accent), #ff8fa3);
  color: #1E1E1E;
}
.pg05-btn-login {
  background: linear-gradient(90deg, var(--pg05-primary), var(--pg05-gold));
  color: #1E1E1E;
}

/* ---------- Mobile Menu ---------- */
.pg05-mobile-menu {
  position: fixed; top: var(--pg05-header-h); left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: var(--pg05-bg-soft);
  border-bottom: 2px solid var(--pg05-primary);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  z-index: 9999;
}
.pg05-menu-open { max-height: 520px; }
.pg05-mobile-menu ul { list-style: none; padding: .4rem 0; }
.pg05-mobile-menu li a {
  display: block; padding: 1.1rem 1.6rem; color: var(--pg05-light);
  font-weight: 600; border-bottom: 1px solid rgba(210,180,140,.12);
}
.pg05-mobile-menu li a:active { background: rgba(210,180,140,.12); }

/* ---------- Layout ---------- */
.pg05-main { padding-top: calc(var(--pg05-header-h) + 6px); }
.pg05-section {
  padding: 1.6rem 1.2rem;
}
.pg05-section h2 {
  font-size: 1.9rem; color: var(--pg05-light); margin-bottom: .8rem;
  border-left: 4px solid var(--pg05-accent); padding-left: .8rem;
}
.pg05-section h3 { font-size: 1.5rem; color: var(--pg05-gold); margin: 1rem 0 .5rem; }
.pg05-section p { margin-bottom: .8rem; color: var(--pg05-text-dim); }

/* ---------- Carousel ---------- */
.pg05-carousel {
  position: relative; width: 100%; height: 180px;
  border-radius: var(--pg05-radius); overflow: hidden; margin-bottom: 1rem;
  box-shadow: var(--pg05-shadow);
}
.pg05-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  cursor: pointer;
}
.pg05-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg05-slide-active { opacity: 1; }
.pg05-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(30,30,30,.6); color: var(--pg05-light);
  padding: .5rem .8rem; border-radius: 8px; font-size: 1.2rem; font-weight: 600;
}
.pg05-dots {
  position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem;
}
.pg05-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
}
.pg05-dot-active { background: var(--pg05-accent); }

/* ---------- Filter chips ---------- */
.pg05-chips { display: flex; gap: .6rem; overflow-x: auto; padding: .4rem 0 1rem; }
.pg05-chip {
  padding: .5rem 1rem; border-radius: 20px; white-space: nowrap;
  background: var(--pg05-bg-card); color: var(--pg05-text-dim);
  border: 1px solid var(--pg05-primary); cursor: pointer; font-size: 1.2rem;
}
.pg05-chip-active { background: var(--pg05-primary); color: #1E1E1E; font-weight: 700; }

/* ---------- Game grid ---------- */
.pg05-game-section { margin-bottom: 1.4rem; }
.pg05-game-section-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.6rem; color: var(--pg05-light); margin-bottom: .8rem;
}
.pg05-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
}
.pg05-game-item {
  background: var(--pg05-bg-card); border-radius: 10px; padding: .4rem;
  text-align: center; cursor: pointer; transition: transform .12s ease;
  border: 1px solid rgba(210,180,140,.18);
}
.pg05-game-item:active { transform: scale(.94); }
.pg05-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
}
.pg05-game-item span {
  display: block; font-size: 1rem; color: var(--pg05-light);
  margin-top: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Cards / features ---------- */
.pg05-card {
  background: var(--pg05-bg-card); border-radius: var(--pg05-radius);
  padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--pg05-shadow);
  border: 1px solid rgba(210,180,140,.15);
}
.pg05-card h3 { color: var(--pg05-gold); margin-bottom: .5rem; }
.pg05-feature-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem;
}
.pg05-feature {
  background: var(--pg05-bg-soft); border-radius: 10px; padding: .9rem;
  text-align: center; border: 1px solid rgba(255,182,193,.2);
}
.pg05-feature i { font-size: 2.2rem; color: var(--pg05-accent); margin-bottom: .4rem; }
.pg05-feature span { display: block; color: var(--pg05-light); font-weight: 600; font-size: 1.2rem; }

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

/* ---------- Winners ---------- */
.pg05-winner-list { list-style: none; }
.pg05-winner-list li {
  display: flex; justify-content: space-between; padding: .6rem 0;
  border-bottom: 1px dashed rgba(210,180,140,.2); font-size: 1.2rem;
}
.pg05-winner-list .pg05-amt { color: var(--pg05-accent); font-weight: 700; }

/* ---------- Testimonials ---------- */
.pg05-testimonial {
  background: var(--pg05-bg-soft); border-left: 3px solid var(--pg05-primary);
  padding: .8rem 1rem; margin-bottom: .8rem; border-radius: 8px;
  font-size: 1.2rem; color: var(--pg05-text-dim);
}
.pg05-testimonial b { color: var(--pg05-light); display: block; margin-bottom: .3rem; }

/* ---------- Payment ---------- */
.pg05-pay-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pg05-pay {
  background: var(--pg05-bg-soft); border-radius: 8px; padding: .6rem .9rem;
  font-size: 1.1rem; color: var(--pg05-light); border: 1px solid var(--pg05-primary);
}

/* ---------- CTA ---------- */
.pg05-cta {
  display: block; text-align: center; padding: 1.1rem;
  background: linear-gradient(90deg, var(--pg05-accent), var(--pg05-primary));
  color: #1E1E1E; font-weight: 800; border-radius: 12px; margin: 1rem 0;
}

/* ---------- Footer ---------- */
.pg05-footer {
  background: var(--pg05-bg-soft); padding: 1.6rem 1.2rem;
  border-top: 2px solid var(--pg05-primary); margin-top: 1rem;
}
.pg05-footer p { color: var(--pg05-text-dim); font-size: 1.2rem; margin-bottom: .8rem; }
.pg05-footer-links {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem;
}
.pg05-footer-links a {
  background: var(--pg05-bg-card); padding: .4rem .8rem; border-radius: 6px;
  font-size: 1.1rem; color: var(--pg05-light); border: 1px solid var(--pg05-primary);
}
.pg05-footer-promo { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.pg05-footer-promo button {
  flex: 1 1 45%; background: var(--pg05-primary); color: #1E1E1E;
  border: none; border-radius: 8px; padding: .7rem; font-weight: 700; cursor: pointer;
}
.pg05-copyright { font-size: 1.1rem; color: var(--pg05-text-dim); text-align: center; }

/* ---------- Bottom Nav ---------- */
.pg05-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  height: var(--pg05-bottomnav-h);
  background: linear-gradient(180deg, #2a2622, #1E1E1E);
  border-top: 2px solid var(--pg05-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 14px rgba(0,0,0,.4);
}
.pg05-bottomnav-btn {
  background: transparent; border: none; color: var(--pg05-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; cursor: pointer; gap: .2rem;
  transition: color .15s ease, transform .12s ease; flex: 1;
}
.pg05-bottomnav-btn i, .pg05-bottomnav-btn .material-icons-outlined,
.pg05-bottomnav-btn ion-icon { font-size: 24px; }
.pg05-bottomnav-btn span { font-size: 11px; }
.pg05-bottomnav-btn:active { transform: scale(.9); }
.pg05-bottomnav-active { color: var(--pg05-accent); }
.pg05-bottomnav-active i, .pg05-bottomnav-active .material-icons-outlined,
.pg05-bottomnav-active ion-icon { color: var(--pg05-accent); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .pg05-bottomnav { display: none; }
  .pg05-menu-btn { display: none; }
  .pg05-desktop-nav { display: flex !important; }
}
.pg05-desktop-nav { display: none; gap: 1rem; }
.pg05-desktop-nav a { color: var(--pg05-light); font-size: 1.2rem; font-weight: 600; }

/* Mobile bottom padding for fixed nav clearance */
@media (max-width: 768px) {
  .pg05-main { padding-bottom: calc(var(--pg05-bottomnav-h) + 12px); }
  .pg05-footer { padding-bottom: calc(var(--pg05-bottomnav-h) + 16px); }
}
