/* ============================================================
 * w188apk.click - layout-f489.css
 * All custom classes use the pgf4- prefix.
 * Mobile-first: max-width 430px primary target.
 * Palette: #AD1457 (brand) | #333333 (dark) | #4DB6AC (accent)
 * ============================================================ */

:root {
  --pgf4-primary: #AD1457;
  --pgf4-brand: #AD1457;
  --pgf4-brand-dark: #7a0d3b;
  --pgf4-brand-light: #f06292;
  --pgf4-dark: #333333;
  --pgf4-darker: #1f1f25;
  --pgf4-darkest: #14141a;
  --pgf4-accent: #4DB6AC;
  --pgf4-accent-dark: #00897b;
  --pgf4-gold: #ffd54f;
  --pgf4-bg: #1b1b22;
  --pgf4-card: #26262f;
  --pgf4-card-2: #2f2f3a;
  --pgf4-text: #f5f5f7;
  --pgf4-muted: #b6b6c2;
  --pgf4-border: rgba(255, 255, 255, 0.08);
  --pgf4-radius: 14px;
  --pgf4-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --pgf4-header-h: 58px;
  --pgf4-bottom-h: 62px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #2a0a1e 0%, var(--pgf4-darkest) 55%, #0c0c11 100%);
  color: var(--pgf4-text);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--pgf4-accent); text-decoration: none; }
a:hover { color: var(--pgf4-brand-light); }

/* ============== Header ============== */
.pgf4-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--pgf4-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: linear-gradient(90deg, var(--pgf4-darker), #221220 60%, var(--pgf4-darker));
  border-bottom: 1px solid var(--pgf4-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.pgf4-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pgf4-menu-btn {
  background: transparent;
  border: 0;
  color: var(--pgf4-text);
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pgf4-menu-btn:hover { background: rgba(255,255,255,0.07); }

.pgf4-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.4px;
  color: var(--pgf4-text);
}
.pgf4-logo .pgf4-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pgf4-brand), var(--pgf4-brand-light));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(173, 20, 87, 0.5);
}
.pgf4-logo .pgf4-logo-text span { color: var(--pgf4-accent); }

.pgf4-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgf4-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.pgf4-btn:hover { transform: translateY(-1px); }
.pgf4-btn:active { transform: translateY(0); }

.pgf4-btn-login {
  background: transparent;
  color: var(--pgf4-text);
  border: 1px solid rgba(255,255,255,0.22);
}
.pgf4-btn-login:hover { background: rgba(255,255,255,0.08); }

.pgf4-btn-register {
  background: linear-gradient(135deg, var(--pgf4-brand), var(--pgf4-brand-light));
  color: #fff;
  box-shadow: 0 6px 16px rgba(173, 20, 87, 0.55);
}
.pgf4-btn-register:hover { filter: brightness(1.08); }

/* ============== Mobile menu drawer ============== */
.pgf4-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.pgf4-menu-overlay.pgf4-overlay-show { opacity: 1; visibility: visible; }

.pgf4-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 84%;
  max-width: 320px;
  background: linear-gradient(180deg, #1d1d24, #16161c);
  border-right: 1px solid var(--pgf4-border);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 18px 16px;
  overflow-y: auto;
}
.pgf4-mobile-menu.pgf4-menu-open { transform: translateX(0); }

.pgf4-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.pgf4-menu-close {
  background: rgba(255,255,255,0.08);
  border: 0;
  color: var(--pgf4-text);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}
.pgf4-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.pgf4-menu-cta .pgf4-btn { justify-content: center; width: 100%; padding: 12px; }

.pgf4-menu-section-title {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  color: var(--pgf4-muted);
  margin: 14px 6px 8px;
}
.pgf4-menu-list { list-style: none; margin: 0; padding: 0; }
.pgf4-menu-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--pgf4-text);
  font-weight: 600;
  font-size: 14px;
}
.pgf4-menu-list li a:hover { background: rgba(173,20,87,0.18); color: var(--pgf4-brand-light); }
.pgf4-menu-list li a i { width: 22px; text-align: center; color: var(--pgf4-accent); }

/* ============== Layout ============== */
.pgf4-wrap {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}
.pgf4-section { padding: 22px 0 8px; }
.pgf4-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}
.pgf4-section-title h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pgf4-section-title h2 i { color: var(--pgf4-brand-light); }
.pgf4-section-title .pgf4-more { font-size: 13px; color: var(--pgf4-accent); font-weight: 600; }

/* ============== Hero carousel ============== */
.pgf4-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 12px 0 6px;
  box-shadow: var(--pgf4-shadow);
}
.pgf4-hero-viewport { overflow: hidden; }
.pgf4-hero-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.pgf4-hero-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 190px;
  padding: 18px;
}
.pgf4-hero-slide-1 {
  background: linear-gradient(120deg, #4a0d2a 0%, #AD1457 60%, #ff6b9d 100%);
}
.pgf4-hero-slide-2 {
  background: linear-gradient(120deg, #0d3b3a 0%, #00897b 55%, #4DB6AC 100%);
}
.pgf4-hero-slide-3 {
  background: linear-gradient(120deg, #2a1a05 0%, #b8860b 55%, #ffd54f 100%);
}
.pgf4-hero-slide-4 {
  background: linear-gradient(120deg, #1a1230 0%, #4a148c 55%, #7e57c2 100%);
}
.pgf4-hero-content { position: relative; z-index: 2; max-width: 88%; }
.pgf4-hero-tag {
  display: inline-block;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pgf4-hero-content h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.pgf4-hero-content p {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}
.pgf4-hero-content .pgf4-btn { background: #fff; color: var(--pgf4-brand-dark); }
.pgf4-hero-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.pgf4-hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.pgf4-hero-dots button.pgf4-dot-active { background: #fff; width: 22px; border-radius: 999px; }

/* ============== Quick stats ============== */
.pgf4-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 4px;
}
.pgf4-stat {
  background: var(--pgf4-card);
  border: 1px solid var(--pgf4-border);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.pgf4-stat .pgf4-stat-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--pgf4-gold);
}
.pgf4-stat .pgf4-stat-lbl { font-size: 11px; color: var(--pgf4-muted); }

/* ============== Category chips ============== */
.pgf4-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pgf4-cats::-webkit-scrollbar { display: none; }
.pgf4-cat-chip {
  flex: 0 0 auto;
  background: var(--pgf4-card);
  border: 1px solid var(--pgf4-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pgf4-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pgf4-cat-chip i { color: var(--pgf4-accent); }
.pgf4-cat-chip:hover { border-color: var(--pgf4-brand); color: var(--pgf4-brand-light); }

/* ============== Filter tabs ============== */
.pgf4-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: none;
}
.pgf4-filter-bar::-webkit-scrollbar { display: none; }
.pgf4-filter-tab {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--pgf4-border);
  color: var(--pgf4-muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pgf4-filter-tab.pgf4-filter-active {
  background: var(--pgf4-brand);
  color: #fff;
  border-color: var(--pgf4-brand);
}

/* ============== Game grid ============== */
.pgf4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pgf4-card {
  background: var(--pgf4-card);
  border: 1px solid var(--pgf4-border);
  border-radius: var(--pgf4-radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.pgf4-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.5);
  border-color: rgba(173,20,87,0.5);
}
.pgf4-card .pgf4-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0e0e13;
}
.pgf4-card .pgf4-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pgf4-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, var(--pgf4-brand), var(--pgf4-brand-light));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}
.pgf4-card-badge.pgf4-badge-hot { background: linear-gradient(135deg, #ff5722, #ff8a65); }
.pgf4-card-badge.pgf4-badge-new { background: linear-gradient(135deg, var(--pgf4-accent-dark), var(--pgf4-accent)); }
.pgf4-card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pgf4-card:hover .pgf4-card-play { opacity: 1; }
.pgf4-card-play button {
  background: #fff;
  color: var(--pgf4-brand-dark);
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pgf4-card-name {
  padding: 8px 8px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============== Featured / promo blocks ============== */
.pgf4-banner {
  background: linear-gradient(120deg, #2a0a1e, var(--pgf4-brand-dark));
  border: 1px solid var(--pgf4-border);
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0 6px;
  position: relative;
  overflow: hidden;
}
.pgf4-banner::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,213,79,0.25), transparent 70%);
}
.pgf4-banner h3 { margin: 0 0 6px; font-size: 18px; color: var(--pgf4-gold); }
.pgf4-banner p { margin: 0 0 12px; font-size: 13px; color: rgba(255,255,255,0.85); }
.pgf4-banner .pgf4-btn-register { padding: 11px 22px; }

.pgf4-feature-list {
  display: grid;
  gap: 10px;
  margin: 8px 0;
}
.pgf4-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--pgf4-card);
  border: 1px solid var(--pgf4-border);
  border-radius: 12px;
  padding: 12px;
}
.pgf4-feature .pgf4-feature-ic {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pgf4-brand-dark), var(--pgf4-brand));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}
.pgf4-feature h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.pgf4-feature p { margin: 0; font-size: 12.5px; color: var(--pgf4-muted); }

/* ============== SEO content ============== */
.pgf4-seo {
  background: var(--pgf4-card);
  border: 1px solid var(--pgf4-border);
  border-radius: 14px;
  padding: 16px;
  margin: 10px 0;
}
.pgf4-seo h2 { margin: 0 0 10px; font-size: 18px; }
.pgf4-seo h3 { margin: 16px 0 6px; font-size: 15px; color: var(--pgf4-brand-light); }
.pgf4-seo p { font-size: 13.5px; color: var(--pgf4-muted); margin: 0 0 10px; }
.pgf4-seo ul { margin: 0 0 10px; padding-left: 20px; color: var(--pgf4-muted); font-size: 13.5px; }
.pgf4-seo li { margin-bottom: 5px; }
.pgf4-seo a { color: var(--pgf4-accent); font-weight: 600; }

/* ============== FAQ ============== */
.pgf4-faq { margin: 8px 0; }
.pgf4-faq-item {
  background: var(--pgf4-card);
  border: 1px solid var(--pgf4-border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.pgf4-faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--pgf4-text);
  text-align: left;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.pgf4-faq-q .pgf4-faq-ic { color: var(--pgf4-brand-light); transition: transform 0.2s; }
.pgf4-faq-item.pgf4-faq-open .pgf4-faq-ic { transform: rotate(45deg); }
.pgf4-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 14px;
}
.pgf4-faq-item.pgf4-faq-open .pgf4-faq-a { max-height: 360px; padding-bottom: 14px; }
.pgf4-faq-a p { margin: 0; font-size: 13px; color: var(--pgf4-muted); }

/* ============== Footer ============== */
.pgf4-footer {
  margin-top: 26px;
  background: linear-gradient(180deg, #16161c, #0d0d12);
  border-top: 1px solid var(--pgf4-border);
  padding: 22px 12px calc(var(--pgf4-bottom-h) + 24px);
}
.pgf4-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.pgf4-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--pgf4-brand-light);
  margin: 0 0 10px;
}
.pgf4-footer ul { list-style: none; margin: 0; padding: 0; }
.pgf4-footer li { margin-bottom: 7px; }
.pgf4-footer a { color: var(--pgf4-muted); font-size: 13px; }
.pgf4-footer a:hover { color: var(--pgf4-accent); }
.pgf4-footer-bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--pgf4-border);
  text-align: center;
  color: var(--pgf4-muted);
  font-size: 12px;
}
.pgf4-18plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--pgf4-muted);
  font-weight: 800;
  font-size: 12px;
  margin-right: 6px;
}

/* ============== Bottom nav ============== */
.pgf4-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--pgf4-bottom-h);
  background: linear-gradient(180deg, #1b1b22, #0e0e13);
  border-top: 1px solid var(--pgf4-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pgf4-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  background: transparent;
  border: 0;
  color: var(--pgf4-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 2px;
  position: relative;
}
.pgf4-bottom-nav-btn i,
.pgf4-bottom-nav-btn .material-icons-outlined,
.pgf4-bottom-nav-btn .material-symbols-outlined {
  font-size: 22px;
}
.pgf4-bottom-nav-btn.pgf4-nav-active { color: var(--pgf4-brand-light); }
.pgf4-bottom-nav-btn.pgf4-nav-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 30px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--pgf4-brand);
}
.pgf4-bottom-nav-btn:hover { color: var(--pgf4-text); }
.pgf4-bottom-nav-btn.pgf4-nav-promo {
  color: var(--pgf4-gold);
}
.pgf4-bottom-nav-btn.pgf4-nav-promo i { font-size: 24px; }

/* ============== Back to top ============== */
.pgf4-to-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--pgf4-bottom-h) + 14px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pgf4-brand);
  color: #fff;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--pgf4-shadow);
  z-index: 999;
  display: grid;
  place-items: center;
}

main { padding-bottom: 0; }

/* ============== Desktop / large screens ============== */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .pgf4-bottom-nav { display: none; }
  .pgf4-wrap { max-width: 960px; padding: 0 20px; }
  .pgf4-grid { grid-template-columns: repeat(5, 1fr); }
  .pgf4-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .pgf4-footer { padding-bottom: 28px; }
  .pgf4-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .pgf4-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
  main { padding-bottom: calc(var(--pgf4-bottom-h) + 16px); }
}
