/* ============================================================
   66win app - Core stylesheet (mobile-first)
   Prefix: pgb0-
   Palette: #D3D3D3 | #40E0D0 | #0D1117 | #F0F8FF | #5F9EA0
   ============================================================ */

:root {
  --pgb0-bg: #0D1117;
  --pgb0-bg-soft: #11181f;
  --pgb0-bg-card: #151c24;
  --pgb0-text: #F0F8FF;
  --pgb0-text-muted: #D3D3D3;
  --pgb0-primary: #40E0D0;
  --pgb0-primary-dark: #2bb5a7;
  --pgb0-accent: #5F9EA0;
  --pgb0-border: rgba(64, 224, 208, 0.22);
  --pgb0-gold: #ffd479;
  --pgb0-danger: #ff6b6b;
  --pgb0-radius: 14px;
  --pgb0-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --pgb0-header-h: 58px;
  --pgb0-bottomnav-h: 62px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #0e1722 0%, var(--pgb0-bg) 60%);
  color: var(--pgb0-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pgb0-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* Layout helpers */
.pgb0-wrapper, .pgb0-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.pgb0-section { padding: 22px 0; }
.pgb0-section-title {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  color: var(--pgb0-text);
}
.pgb0-section-title i { color: var(--pgb0-primary); }
.pgb0-eyebrow {
  display: inline-block; font-size: 1.1rem; font-weight: 700; letter-spacing: 1.2px;
  color: var(--pgb0-primary); text-transform: uppercase; margin-bottom: 6px;
}

/* Header */
.pgb0-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pgb0-header-h);
  background: linear-gradient(90deg, rgba(13,17,23,0.96), rgba(17,24,31,0.96));
  border-bottom: 1px solid var(--pgb0-border);
  backdrop-filter: blur(10px);
}
.pgb0-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pgb0-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.6rem; color: var(--pgb0-text); }
.pgb0-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pgb0-brand span b { color: var(--pgb0-primary); }
.pgb0-header-actions { display: flex; align-items: center; gap: 8px; }
.pgb0-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 1.3rem; font-weight: 700;
  min-height: 36px; transition: transform .15s ease, box-shadow .15s ease;
}
.pgb0-btn:active { transform: scale(0.96); }
.pgb0-btn-primary {
  background: linear-gradient(135deg, var(--pgb0-primary), var(--pgb0-accent));
  color: #06120f; box-shadow: 0 4px 12px rgba(64, 224, 208, 0.35);
}
.pgb0-btn-ghost {
  background: transparent; border: 1px solid var(--pgb0-border); color: var(--pgb0-text);
}
.pgb0-menu-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(64, 224, 208, 0.12); color: var(--pgb0-primary); font-size: 1.8rem;
}

/* Mobile menu drawer */
.pgb0-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 340px; height: 100vh;
  background: var(--pgb0-bg-soft); z-index: 9999; padding: 80px 18px 30px;
  transition: right .28s ease; overflow-y: auto; border-left: 1px solid var(--pgb0-border);
}
.pgb0-menu.open { right: 0; }
.pgb0-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.pgb0-menu-overlay.open { opacity: 1; pointer-events: auto; }
.pgb0-menu h4 { color: var(--pgb0-primary); margin: 16px 0 8px; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px; }
.pgb0-menu a {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--pgb0-text);
  font-size: 1.35rem; margin-bottom: 4px; background: rgba(255,255,255,0.03);
  transition: background .15s;
}
.pgb0-menu a:hover { background: rgba(64, 224, 208, 0.15); }
.pgb0-menu-close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px;
  background: rgba(255,255,255,0.06); border-radius: 50%; color: var(--pgb0-text); font-size: 1.6rem;
}

/* Hero / Carousel */
.pgb0-hero { margin-top: calc(var(--pgb0-header-h) + 12px); }
.pgb0-carousel { position: relative; border-radius: var(--pgb0-radius); overflow: hidden; box-shadow: var(--pgb0-shadow); }
.pgb0-carousel-track { display: flex; transition: transform .45s ease; }
.pgb0-carousel-slide { min-width: 100%; position: relative; }
.pgb0-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.pgb0-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  display: flex; flex-direction: column; gap: 8px;
}
.pgb0-carousel-cap h2 { font-size: 1.8rem; font-weight: 800; }
.pgb0-carousel-dots { position: absolute; bottom: 10px; right: 12px; display: flex; gap: 5px; }
.pgb0-carousel-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer;
}
.pgb0-carousel-dots span.active { background: var(--pgb0-primary); width: 18px; border-radius: 4px; }

/* Hero CTA banner */
.pgb0-cta-banner {
  background: linear-gradient(135deg, rgba(64,224,208,0.18), rgba(95,158,160,0.18));
  border: 1px solid var(--pgb0-border); border-radius: var(--pgb0-radius);
  padding: 16px; margin: 16px 0; text-align: center;
}
.pgb0-cta-banner h3 { font-size: 1.7rem; margin-bottom: 6px; color: var(--pgb0-primary); }
.pgb0-cta-banner p { color: var(--pgb0-text-muted); margin-bottom: 10px; font-size: 1.25rem; }

/* Game grid */
.pgb0-cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.pgb0-cat-tabs::-webkit-scrollbar { display: none; }
.pgb0-cat-tab, .pgb0-cat-link {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.05);
  color: var(--pgb0-text-muted); font-size: 1.2rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.pgb0-cat-tab.active, .pgb0-cat-link.active { background: var(--pgb0-primary); color: #06120f; }
.pgb0-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pgb0-game-card {
  background: var(--pgb0-bg-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.pgb0-game-card:hover { transform: translateY(-2px); border-color: var(--pgb0-primary); box-shadow: 0 6px 16px rgba(64,224,208,0.18); }
.pgb0-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0b1218; }
.pgb0-game-card .pgb0-game-name {
  padding: 6px 8px; font-size: 1.1rem; text-align: center; color: var(--pgb0-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pgb0-game-badge {
  position: absolute; top: 6px; left: 6px; background: var(--pgb0-gold); color: #1a1300;
  font-size: 0.95rem; font-weight: 800; padding: 2px 7px; border-radius: 6px;
}
.pgb0-game-badge.hot { background: var(--pgb0-danger); color: #fff; }

/* Info blocks / Features */
.pgb0-grid-2, .pgb0-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pgb0-card, .pgb0-info-card {
  background: var(--pgb0-bg-card); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--pgb0-radius);
  padding: 14px; transition: border-color .15s;
}
.pgb0-info-card:hover { border-color: var(--pgb0-border); }
.pgb0-info-card .pgb0-icon-circle {
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; background: rgba(64,224,208,0.15);
  color: var(--pgb0-primary); margin-bottom: 10px; font-size: 2rem;
}
.pgb0-info-card h3 { font-size: 1.35rem; margin-bottom: 6px; color: var(--pgb0-text); }
.pgb0-info-card p { font-size: 1.18rem; color: var(--pgb0-text-muted); }

/* RTP / data table */
.pgb0-rtp-table { width: 100%; border-collapse: collapse; background: var(--pgb0-bg-card); border-radius: 12px; overflow: hidden; }
.pgb0-rtp-table th, .pgb0-rtp-table td { padding: 10px 12px; text-align: left; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pgb0-rtp-table th { background: rgba(64,224,208,0.12); color: var(--pgb0-primary); font-weight: 700; }
.pgb0-rtp-bar { display: inline-block; width: 60px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.pgb0-rtp-bar i { display: block; height: 100%; background: var(--pgb0-primary); }

/* Testimonial */
.pgb0-testimonial {
  background: var(--pgb0-bg-card); border-radius: 12px; padding: 14px; margin-bottom: 10px;
  border-left: 3px solid var(--pgb0-primary);
}
.pgb0-testimonial .pgb0-stars { color: var(--pgb0-gold); margin-bottom: 6px; font-size: 1.2rem; }
.pgb0-testimonial p { font-size: 1.2rem; color: var(--pgb0-text-muted); margin-bottom: 6px; }
.pgb0-testimonial cite { font-style: normal; color: var(--pgb0-primary); font-weight: 700; font-size: 1.15rem; }

/* Payment methods */
.pgb0-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pgb0-pay-chip {
  padding: 8px 12px; background: var(--pgb0-bg-card); border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px; font-size: 1.15rem; color: var(--pgb0-text);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Winners list */
.pgb0-winner-list { background: var(--pgb0-bg-card); border-radius: 12px; overflow: hidden; }
.pgb0-winner-row { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 1.18rem; }
.pgb0-winner-row:last-child { border-bottom: none; }
.pgb0-winner-row b { color: var(--pgb0-gold); }

/* App download CTA */
.pgb0-app-cta {
  background: linear-gradient(135deg, #0f2a26, #0b1f1c); border: 1px solid var(--pgb0-border);
  border-radius: var(--pgb0-radius); padding: 18px; text-align: center;
}
.pgb0-app-cta h3 { color: var(--pgb0-primary); font-size: 1.7rem; margin-bottom: 6px; }
.pgb0-app-cta .pgb0-app-btns { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }

/* FAQ */
.pgb0-faq-item { background: var(--pgb0-bg-card); border-radius: 10px; margin-bottom: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.04); }
.pgb0-faq-q { padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.pgb0-faq-q .pgb0-faq-icon { transition: transform .2s; color: var(--pgb0-primary); }
.pgb0-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 14px; color: var(--pgb0-text-muted); font-size: 1.18rem; }
.pgb0-faq-item.open .pgb0-faq-a { max-height: 300px; padding: 0 14px 12px; }
.pgb0-faq-item.open .pgb0-faq-icon { transform: rotate(45deg); }

/* Promo link inline */
.pgb0-promo-link {
  color: var(--pgb0-primary); font-weight: 800; cursor: pointer; border-bottom: 2px dotted var(--pgb0-primary);
}
.pgb0-promo-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(90deg, rgba(64,224,208,0.15), transparent);
  border-left: 4px solid var(--pgb0-primary); padding: 10px 14px; border-radius: 8px; margin: 8px 0;
}
.pgb0-promo-box p { font-size: 1.2rem; color: var(--pgb0-text); }

/* Footer */
.pgb0-footer {
  background: #080d12; border-top: 1px solid var(--pgb0-border);
  padding: 24px 12px calc(var(--pgb0-bottomnav-h) + 24px); margin-top: 20px;
}
.pgb0-footer-inner { max-width: 430px; margin: 0 auto; }
.pgb0-footer h4 { color: var(--pgb0-primary); margin-bottom: 10px; font-size: 1.35rem; }
.pgb0-footer p { color: var(--pgb0-text-muted); font-size: 1.18rem; margin-bottom: 10px; }
.pgb0-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 14px; }
.pgb0-footer-links a { color: var(--pgb0-text-muted); font-size: 1.15rem; }
.pgb0-footer-links a:hover { color: var(--pgb0-primary); }
.pgb0-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pgb0-footer-copy { font-size: 1.1rem; color: var(--pgb0-text-muted); opacity: 0.7; margin-top: 12px; text-align: center; }

/* Mobile bottom nav */
.pgb0-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--pgb0-bottomnav-h);
  background: linear-gradient(180deg, rgba(13,17,23,0.98), rgba(8,13,18,1));
  border-top: 1px solid var(--pgb0-border); z-index: 1000;
  display: flex; justify-content: space-around; align-items: center;
  padding: 4px 0;
}
.pgb0-bottomnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--pgb0-text-muted); font-size: 1rem; gap: 2px; min-width: 60px; min-height: 54px;
  transition: color .15s, transform .15s; position: relative;
}
.pgb0-bottomnav-item i { font-size: 2.2rem; }
.pgb0-bottomnav-item .material-icons,
.pgb0-bottomnav-item .bi { font-size: 2.2rem; }
.pgb0-bottomnav-item.active { color: var(--pgb0-primary); }
.pgb0-bottomnav-item.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px; border-radius: 2px; background: var(--pgb0-primary);
}
.pgb0-bottomnav-item:active { transform: scale(0.92); }
.pgb0-bottomnav-item .pgb0-badge {
  position: absolute; top: 4px; right: 18px; background: var(--pgb0-danger); color: #fff;
  font-size: 0.85rem; padding: 1px 5px; border-radius: 8px; font-weight: 700;
}

/* Desktop hide bottom nav, adjust padding */
@media (min-width: 769px) {
  .pgb0-bottomnav { display: none; }
  .pgb0-footer { padding-bottom: 24px; }
  .pgb0-wrapper { max-width: 760px; }
}

/* Mobile safe-area padding */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Utility */
.pgb0-text-center { text-align: center; }
.pgb0-mt-12 { margin-top: 12px; }
.pgb0-mt-16 { margin-top: 16px; }
.pgb0-mb-12 { margin-bottom: 12px; }
.pgb0-hidden-mobile { display: none; }
@media (min-width: 769px) {
  .pgb0-hidden-mobile { display: block; }
  .pgb0-hidden-desktop { display: none; }
}
