/* cv9996.homes - core base stylesheet
 * CSS class prefix: pg0d-
 * Palette: #CD5C5C | #E9967A | #4A4A4A | #FFFFBA | #1C2833
 * Dark = backgrounds, light = text
 */
:root {
  --pg0d-primary: #CD5C5C;
  --pg0d-accent: #E9967A;
  --pg0d-muted: #4A4A4A;
  --pg0d-soft: #FFFFBA;
  --pg0d-bg: #1C2833;
  --pg0d-bg-2: #243447;
  --pg0d-bg-3: #2e4156;
  --pg0d-text: #f3f4f6;
  --pg0d-text-dim: #c7cbd1;
  --pg0d-gold: #FFD24A;
  --pg0d-radius: 1.2rem;
  --pg0d-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pg0d-bg);
  color: var(--pg0d-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pg0d-soft); text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6rem; font-weight: 700; }
h1 { font-size: 2.1rem; color: var(--pg0d-soft); }
h2 { font-size: 1.8rem; color: var(--pg0d-accent); }
h3 { font-size: 1.55rem; color: var(--pg0d-primary); }
p { margin: 0 0 1rem; }

.pg0d-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.pg0d-container { width: 100%; padding: 0 1.2rem; }

/* ===== Header ===== */
.pg0d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1C2833 0%, #243447 100%);
  border-bottom: 0.2rem solid var(--pg0d-primary);
  box-shadow: var(--pg0d-shadow);
}
.pg0d-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem; gap: 0.6rem;
}
.pg0d-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.pg0d-logo { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; object-fit: cover; }
.pg0d-brand-name { font-size: 1.6rem; font-weight: 800; color: var(--pg0d-soft); letter-spacing: .02em; white-space: nowrap; }
.pg0d-brand-name span { color: var(--pg0d-primary); }
.pg0d-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pg0d-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 0; border-radius: 1rem; padding: 0.7rem 1.1rem;
  font-size: 1.25rem; font-weight: 700; cursor: pointer;
  min-height: 3.6rem; line-height: 1; transition: transform .12s ease, background .2s ease;
}
.pg0d-btn:active { transform: scale(0.96); }
.pg0d-btn-primary { background: linear-gradient(135deg, #CD5C5C, #E9967A); color: #1C2833; }
.pg0d-btn-ghost { background: transparent; color: var(--pg0d-soft); border: 0.15rem solid var(--pg0d-primary); }
.pg0d-icon-btn {
  background: transparent; border: 0; color: var(--pg0d-soft);
  width: 3.6rem; height: 3.6rem; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 0.8rem; font-size: 2rem;
}

/* ===== Mobile expandable menu ===== */
.pg0d-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
  height: 100vh; z-index: 9999; background: #1C2833;
  padding: 6rem 1.2rem 2rem; transition: right .28s ease;
  border-left: 0.2rem solid var(--pg0d-primary); box-shadow: -0.5rem 0 1.5rem rgba(0,0,0,.5);
  overflow-y: auto;
}
.pg0d-mobile-menu.pg0d-menu-open { right: 0; }
.pg0d-mobile-menu h3 { color: var(--pg0d-accent); margin: 1rem 0 0.5rem; font-size: 1.4rem; }
.pg0d-mobile-menu a {
  display: block; padding: 1rem 1rem; border-bottom: 0.1rem solid #2e4156;
  color: var(--pg0d-text); font-size: 1.35rem;
}
.pg0d-mobile-menu a:active { background: var(--pg0d-bg-2); }
.pg0d-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.pg0d-menu-overlay.pg0d-menu-open { opacity: 1; visibility: visible; }

/* ===== Hero slider ===== */
.pg0d-main { padding-top: 6.2rem; }
.pg0d-hero { position: relative; width: 100%; max-width: 430px; margin: 0 auto; overflow: hidden; }
.pg0d-slider { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #243447; }
.pg0d-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  display: flex; align-items: stretch; cursor: pointer;
}
.pg0d-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg0d-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem; background: linear-gradient(0deg, rgba(28,40,51,.9), transparent);
  color: var(--pg0d-soft); font-weight: 700; font-size: 1.4rem;
}
.pg0d-slide-active { opacity: 1; }
.pg0d-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(28,40,51,.6); color: #fff; border: 0; width: 3rem; height: 3rem;
  border-radius: 50%; font-size: 1.6rem; cursor: pointer; z-index: 2;
}
.pg0d-slider-arrow.pg0d-prev { left: 0.6rem; }
.pg0d-slider-arrow.pg0d-next { right: 0.6rem; }
.pg0d-dots { position: absolute; bottom: 0.6rem; left: 0; right: 0; text-align: center; z-index: 3; }
.pg0d-dot {
  display: inline-block; width: 0.8rem; height: 0.8rem; margin: 0 0.3rem;
  border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer;
}
.pg0d-dot-active { background: var(--pg0d-primary); width: 2rem; border-radius: 0.6rem; }

/* ===== Section ===== */
.pg0d-section { padding: 1.4rem 0; }
.pg0d-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pg0d-section-head h2 { margin: 0; }
.pg0d-more { font-size: 1.2rem; color: var(--pg0d-accent); }

/* ===== Game grid ===== */
.pg0d-cat-title {
  display: flex; align-items: center; gap: 0.6rem; margin: 1.4rem 0 0.8rem;
  font-size: 1.55rem; font-weight: 700; color: var(--pg0d-soft);
  border-left: 0.3rem solid var(--pg0d-primary); padding-left: 0.7rem;
}
.pg0d-cat-title i { color: var(--pg0d-gold); font-size: 1.8rem; }
.pg0d-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem;
}
.pg0d-game-card {
  background: var(--pg0d-bg-2); border-radius: 0.8rem; overflow: hidden;
  border: 0.1rem solid #2e4156; cursor: pointer; transition: transform .12s ease, border-color .2s;
  display: flex; flex-direction: column; align-items: center;
}
.pg0d-game-card:active { transform: scale(0.96); border-color: var(--pg0d-primary); }
.pg0d-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #243447; }
.pg0d-game-name {
  font-size: 1.05rem; text-align: center; color: var(--pg0d-text-dim);
  padding: 0.4rem 0.2rem 0.5rem; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 380px) { .pg0d-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Promo CTA / features ===== */
.pg0d-cta {
  background: linear-gradient(135deg, #CD5C5C, #E9967A);
  color: #1C2833; padding: 1.4rem; border-radius: var(--pg0d-radius); text-align: center; margin: 1.4rem 0;
}
.pg0d-cta h2 { color: #1C2833; }
.pg0d-cta p { color: #2a2a2a; margin-bottom: 1rem; }
.pg0d-cta .pg0d-btn { background: #1C2833; color: var(--pg0d-soft); }

.pg0d-card {
  background: var(--pg0d-bg-2); border-radius: var(--pg0d-radius); padding: 1.2rem;
  margin-bottom: 1rem; border: 0.1rem solid #2e4156;
}
.pg0d-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.pg0d-feature {
  background: var(--pg0d-bg-2); border-radius: 0.8rem; padding: 1rem; text-align: center;
  border: 0.1rem solid #2e4156;
}
.pg0d-feature i { font-size: 2.2rem; color: var(--pg0d-primary); }
.pg0d-feature h3 { font-size: 1.3rem; margin: 0.4rem 0 0.2rem; }
.pg0d-feature p { font-size: 1.15rem; color: var(--pg0d-text-dim); margin: 0; }

.pg0d-faq { border-bottom: 0.1rem solid #2e4156; padding: 0.8rem 0; }
.pg0d-faq q { display: block; font-weight: 700; color: var(--pg0d-soft); margin-bottom: 0.3rem; }
.pg0d-faq a { font-weight: 700; color: var(--pg0d-primary); }

.pg0d-rtp-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 0.1rem solid #2e4156; font-size: 1.25rem; }
.pg0d-rtp-row span:last-child { color: var(--pg0d-gold); font-weight: 700; }

.pg0d-testi { background: var(--pg0d-bg-2); border-radius: 0.8rem; padding: 1rem; margin-bottom: 0.8rem; }
.pg0d-testi b { color: var(--pg0d-accent); }

.pg0d-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pg0d-pay span { background: var(--pg0d-bg-2); border: 0.1rem solid #2e4156; border-radius: 0.6rem; padding: 0.5rem 0.9rem; font-size: 1.2rem; }

.pg0d-winners { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; }
.pg0d-winner { background: var(--pg0d-bg-2); border-radius: 0.6rem; padding: 0.6rem; font-size: 1.15rem; border: 0.1rem solid #2e4156; }
.pg0d-winner b { color: var(--pg0d-gold); }

.pg0d-promo-link { font-weight: 700; color: var(--pg0d-primary); border-bottom: 0.12rem dotted var(--pg0d-primary); }
.pg0d-btn-link { background: var(--pg0d-bg-3); color: var(--pg0d-soft); border: 0.1rem solid var(--pg0d-primary); padding: 0.6rem 1rem; border-radius: 1rem; font-weight: 700; display: inline-block; }

/* ===== Footer ===== */
.pg0d-footer {
  background: #16202b; padding: 2rem 1.2rem 6rem; margin-top: 1.5rem;
  border-top: 0.2rem solid var(--pg0d-primary);
}
.pg0d-footer h3 { color: var(--pg0d-accent); margin-bottom: 0.6rem; }
.pg0d-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.6rem 0 1rem; }
.pg0d-footer-links a { color: var(--pg0d-text-dim); font-size: 1.2rem; }
.pg0d-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.pg0d-footer-promo .pg0d-btn { font-size: 1.15rem; padding: 0.6rem 0.9rem; }
.pg0d-copy { color: var(--pg0d-text-dim); font-size: 1.1rem; border-top: 0.1rem solid #2e4156; padding-top: 0.8rem; margin-top: 0.8rem; }

/* ===== Mobile bottom nav ===== */
.pg0d-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #243447, #1C2833);
  border-top: 0.15rem solid var(--pg0d-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 6rem; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,.4);
}
.pg0d-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--pg0d-text-dim); cursor: pointer;
  font-size: 1.05rem; gap: 0.2rem; transition: color .2s ease, transform .12s ease;
  text-decoration: none; padding: 0.3rem 0;
}
.pg0d-bottomnav-btn i, .pg0d-bottomnav-btn .material-icons-outlined,
.pg0d-bottomnav-btn ion-icon { font-size: 2.2rem; }
.pg0d-bottomnav-btn ion-icon { font-size: 2.2rem; }
.pg0d-bottomnav-btn span { font-size: 1.05rem; }
.pg0d-bottomnav-btn:active { transform: scale(0.92); }
.pg0d-bottomnav-active { color: var(--pg0d-primary); }
.pg0d-bottomnav-active span { color: var(--pg0d-soft); font-weight: 700; }

@media (min-width: 769px) {
  .pg0d-bottomnav { display: none; }
  .pg0d-wrapper { max-width: 760px; }
  .pg0d-header-inner { max-width: 760px; }
  .pg0d-hero { max-width: 760px; }
  .pg0d-grid { grid-template-columns: repeat(6, 1fr); }
  .pg0d-features { grid-template-columns: repeat(4, 1fr); }
  .pg0d-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  .pg0d-main { padding-bottom: 7.5rem; }
}
