/* ============================================================
   win 18 (win-18.click) - Common stylesheet
   Prefix: pgdb-
   Palette: #6495ED | #0F0F23 | #8B7355 | #A0522D | #D3D3D3 | #DEB887
   ============================================================ */

:root {
  --pgdb-primary: #6495ED;
  --pgdb-bg: #0F0F23;
  --pgdb-bg-2: #161635;
  --pgdb-card: #1c1c40;
  --pgdb-brown: #8B7355;
  --pgdb-sienna: #A0522D;
  --pgdb-silver: #D3D3D3;
  --pgdb-sand: #DEB887;
  --pgdb-text: #F4F4FF;
  --pgdb-text-dim: #b6b6d6;
  --pgdb-accent: #DEB887;
  --pgdb-gold: #E6C489;
  --pgdb-border: rgba(100, 149, 237, 0.25);
  --pgdb-radius: 14px;
  --pgdb-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --pgdb-maxw: 430px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1b1b45 0%, var(--pgdb-bg) 60%);
  color: var(--pgdb-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

a { color: var(--pgdb-primary); text-decoration: none; }
a:hover { color: var(--pgdb-sand); }
img { max-width: 100%; display: block; }

.pgdb-container { width: 100%; max-width: var(--pgdb-maxw); margin: 0 auto; padding: 0 14px; }
.pgdb-wrapper { padding-bottom: 16px; }

/* ===================== Header ===================== */
.pgdb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(15,15,35,0.98) 0%, rgba(15,15,35,0.88) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pgdb-border);
}
.pgdb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 58px;
}
.pgdb-brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.pgdb-brand-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--pgdb-primary), var(--pgdb-sand));
  display: flex; align-items: center; justify-content: center;
  color: #0F0F23; font-weight: 800; font-size: 1.4rem;
}
.pgdb-brand-name { font-weight: 800; font-size: 1.7rem; letter-spacing: .3px; color: #fff; }
.pgdb-brand-name b { color: var(--pgdb-sand); }
.pgdb-header-actions { display: flex; align-items: center; gap: 8px; }

.pgdb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: none; cursor: pointer;
  font-weight: 700; font-size: 1.35rem; border-radius: 999px;
  padding: 8px 16px; transition: transform .15s ease, filter .2s ease;
  min-height: 36px; line-height: 1;
}
.pgdb-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pgdb-btn-primary { background: linear-gradient(135deg, var(--pgdb-sand), var(--pgdb-sienna)); color: #1a1208; }
.pgdb-btn-ghost { background: transparent; color: var(--pgdb-text); border: 1px solid var(--pgdb-border); }
.pgdb-btn-block { width: 100%; padding: 12px 16px; font-size: 1.5rem; }

.pgdb-icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(100,149,237,0.12); color: var(--pgdb-text);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--pgdb-border); cursor: pointer;
}
.pgdb-icon-btn:hover { background: rgba(100,149,237,0.22); }

/* ===================== Mobile drawer ===================== */
.pgdb-nav-drawer {
  position: fixed; top: 0; right: -86%;
  width: 86%; max-width: 320px; height: 100vh;
  background: var(--pgdb-bg-2);
  border-left: 1px solid var(--pgdb-border);
  transform: translateX(0);
  transition: right .28s ease;
  z-index: 9999; padding: 18px 16px; overflow-y: auto;
}
.pgdb-nav-drawer.pgdb-is-open { right: 0; }
.pgdb-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
  z-index: 9998;
}
.pgdb-nav-overlay.pgdb-is-visible { opacity: 1; visibility: visible; }
.pgdb-drawer-title {
  font-size: 1.6rem; color: var(--pgdb-sand); font-weight: 800;
  margin: 6px 0 12px;
}
.pgdb-drawer-section { margin-bottom: 18px; }
.pgdb-drawer-section h4 {
  font-size: 1.25rem; color: var(--pgdb-silver);
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px;
}
.pgdb-drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--pgdb-text); font-size: 1.35rem;
}
.pgdb-drawer-link:hover { background: rgba(100,149,237,0.12); color: var(--pgdb-sand); }
.pgdb-drawer-link i { color: var(--pgdb-primary); font-size: 18px; }

/* ===================== Hero / Carousel ===================== */
.pgdb-section { padding: 18px 0; }
.pgdb-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.pgdb-section-title {
  font-size: 1.75rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.pgdb-section-title i { color: var(--pgdb-sand); font-size: 22px; }
.pgdb-section-link { font-size: 1.25rem; color: var(--pgdb-sand); font-weight: 700; }

.pgdb-carousel {
  position: relative; border-radius: var(--pgdb-radius); overflow: hidden;
  box-shadow: var(--pgdb-shadow); background: var(--pgdb-card);
}
.pgdb-carousel-track {
  display: flex; transition: transform .45s ease;
}
.pgdb-carousel-slide {
  flex: 0 0 100%; position: relative; cursor: pointer;
}
.pgdb-carousel-slide img {
  width: 100%; height: 190px; object-fit: cover; display: block;
}
.pgdb-carousel-cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: linear-gradient(180deg, rgba(15,15,35,0) 0%, rgba(15,15,35,0.85) 100%);
  padding: 18px 12px 10px; border-radius: 10px; color: #fff;
}
.pgdb-carousel-cap h2 { font-size: 1.6rem; margin: 0 0 4px; font-weight: 800; }
.pgdb-carousel-cap p { margin: 0; font-size: 1.2rem; color: var(--pgdb-text-dim); }
.pgdb-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.pgdb-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
}
.pgdb-carousel-dot.pgdb-active { background: var(--pgdb-sand); width: 18px; border-radius: 4px; }

/* ===================== Game grid ===================== */
.pgdb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pgdb-tile {
  background: var(--pgdb-card); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--pgdb-border); position: relative; cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
}
.pgdb-tile:hover { transform: translateY(-2px); border-color: var(--pgdb-sand); }
.pgdb-tile-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #0b0b1e; }
.pgdb-tile-name {
  font-size: 1.15rem; padding: 6px 8px; color: var(--pgdb-text);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pgdb-tile-badge {
  position: absolute; top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--pgdb-sienna), var(--pgdb-sand));
  color: #1a1208; font-size: 1rem; font-weight: 800;
  padding: 2px 6px; border-radius: 6px;
}
.pgdb-cat-head {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--pgdb-border);
}
.pgdb-cat-head h3 {
  font-size: 1.55rem; margin: 0; color: var(--pgdb-sand); font-weight: 800;
}
.pgdb-cat-head i { color: var(--pgdb-primary); font-size: 20px; }

.pgdb-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.pgdb-chip {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px;
  background: var(--pgdb-card); border: 1px solid var(--pgdb-border);
  color: var(--pgdb-text-dim); font-size: 1.2rem; cursor: pointer;
}
.pgdb-chip.pgdb-active { background: var(--pgdb-primary); color: #fff; border-color: transparent; }

/* ===================== Cards ===================== */
.pgdb-card {
  background: var(--pgdb-card); border: 1px solid var(--pgdb-border);
  border-radius: var(--pgdb-radius); padding: 16px; margin-bottom: 12px;
  box-shadow: var(--pgdb-shadow);
}
.pgdb-card h3 { margin: 0 0 8px; font-size: 1.6rem; color: var(--pgdb-sand); }
.pgdb-card p { margin: 0 0 8px; color: var(--pgdb-text-dim); font-size: 1.3rem; }
.pgdb-card ul { padding-left: 18px; margin: 0; color: var(--pgdb-text-dim); font-size: 1.3rem; }
.pgdb-card li { margin-bottom: 4px; }

.pgdb-feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.pgdb-feature {
  background: var(--pgdb-card); border: 1px solid var(--pgdb-border);
  border-radius: 12px; padding: 12px; text-align: center;
}
.pgdb-feature i { font-size: 26px; color: var(--pgdb-sand); margin-bottom: 6px; }
.pgdb-feature b { display: block; font-size: 1.3rem; color: #fff; margin-bottom: 4px; }
.pgdb-feature span { font-size: 1.15rem; color: var(--pgdb-text-dim); }

.pgdb-promo-cta {
  background: linear-gradient(135deg, var(--pgdb-sienna), var(--pgdb-sand));
  border-radius: var(--pgdb-radius); padding: 16px; color: #1a1208;
  text-align: center; margin: 14px 0; box-shadow: var(--pgdb-shadow);
}
.pgdb-promo-cta h3 { margin: 0 0 4px; font-size: 1.7rem; color: #1a1208; }
.pgdb-promo-cta p { margin: 0 0 10px; font-size: 1.3rem; color: #2a1c0c; }
.pgdb-promo-cta .pgdb-btn { background: #0F0F23; color: #fff; }

.pgdb-winners {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
}
.pgdb-winner {
  flex: 0 0 160px; background: var(--pgdb-card); border-radius: 10px;
  padding: 10px; border: 1px solid var(--pgdb-border);
}
.pgdb-winner b { display: block; color: var(--pgdb-sand); font-size: 1.25rem; }
.pgdb-winner span { color: var(--pgdb-text-dim); font-size: 1.15rem; }

.pgdb-testimonial {
  background: var(--pgdb-card); border-left: 3px solid var(--pgdb-sand);
  padding: 12px 14px; border-radius: 10px; margin-bottom: 10px;
}
.pgdb-testimonial p { margin: 0 0 6px; color: var(--pgdb-text); font-size: 1.3rem; font-style: italic; }
.pgdb-testimonial small { color: var(--pgdb-text-dim); }

.pgdb-pay-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.pgdb-pay-item {
  background: var(--pgdb-card); border: 1px solid var(--pgdb-border);
  border-radius: 8px; padding: 8px; text-align: center;
  font-size: 1.1rem; color: var(--pgdb-text-dim);
}
.pgdb-pay-item i { display: block; color: var(--pgdb-sand); font-size: 22px; margin-bottom: 4px; }

.pgdb-faq-item {
  border-bottom: 1px solid var(--pgdb-border); padding: 10px 0;
}
.pgdb-faq-item h4 { margin: 0 0 4px; font-size: 1.35rem; color: var(--pgdb-sand); }
.pgdb-faq-item p { margin: 0; color: var(--pgdb-text-dim); font-size: 1.25rem; }

.pgdb-prose { color: var(--pgdb-text-dim); font-size: 1.3rem; line-height: 1.6; }
.pgdb-prose h2 { color: #fff; font-size: 1.7rem; margin: 16px 0 6px; }
.pgdb-prose h3 { color: var(--pgdb-sand); font-size: 1.4rem; margin: 12px 0 4px; }
.pgdb-prose strong { color: var(--pgdb-text); }

/* ===================== Footer ===================== */
.pgdb-footer {
  background: var(--pgdb-bg-2); border-top: 1px solid var(--pgdb-border);
  padding: 22px 0 96px; margin-top: 18px;
}
.pgdb-footer h4 { color: var(--pgdb-sand); font-size: 1.4rem; margin: 12px 0 8px; }
.pgdb-footer p { color: var(--pgdb-text-dim); font-size: 1.25rem; margin: 0 0 8px; }
.pgdb-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0 12px;
}
.pgdb-footer-links a {
  color: var(--pgdb-text-dim); font-size: 1.2rem; text-decoration: underline;
  text-underline-offset: 3px;
}
.pgdb-footer-links a:hover { color: var(--pgdb-sand); }
.pgdb-cta-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 10px 0; }
.pgdb-copyright { font-size: 1.15rem; color: var(--pgdb-text-dim); margin-top: 10px; text-align: center; }

/* ===================== Bottom Nav ===================== */
.pgdb-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 62px; z-index: 1000;
  background: linear-gradient(180deg, rgba(22,22,53,0.98), rgba(15,15,35,1));
  border-top: 1px solid var(--pgdb-border);
  display: flex; justify-content: space-around; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom);
}
.pgdb-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--pgdb-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; transition: color .15s ease, transform .15s ease;
}
.pgdb-bottomnav-btn i { font-size: 22px; }
.pgdb-bottomnav-btn span { font-size: 1.05rem; }
.pgdb-bottomnav-btn:active { transform: scale(0.92); }
.pgdb-bottomnav-btn:hover { color: var(--pgdb-primary); }
.pgdb-bottomnav-btn.pgdb-current { color: var(--pgdb-sand); }
.pgdb-bottomnav-btn.pgdb-current i { transform: translateY(-1px); }
.pgdb-bottomnav-btn.pgdb-promo { color: var(--pgdb-sand); }
.pgdb-bottomnav-btn.pgdb-promo i {
  background: linear-gradient(135deg, var(--pgdb-sand), var(--pgdb-sienna));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===================== Back to top ===================== */
.pgdb-totop {
  position: fixed; right: 14px; bottom: 76px; z-index: 999;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pgdb-primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--pgdb-shadow); cursor: pointer;
}

/* ===================== Responsive / Desktop ===================== */
@media (min-width: 768px) {
  body { background: radial-gradient(1400px 700px at 50% -10%, #1b1b45 0%, var(--pgdb-bg) 60%); }
  .pgdb-container { max-width: 960px; }
  .pgdb-grid { grid-template-columns: repeat(6,1fr); }
  .pgdb-feature-grid { grid-template-columns: repeat(4,1fr); }
  .pgdb-pay-grid { grid-template-columns: repeat(8,1fr); }
  .pgdb-carousel-slide img { height: 340px; }
  .pgdb-bottomnav { display: none; }
  .pgdb-footer { padding-bottom: 28px; }
  main { padding-bottom: 24px !important; }
}

@media (max-width: 768px) {
  main { padding-bottom: 84px; }
}
