/* ok play game - core stylesheet (basefiles)
   All custom classes use pgfd- prefix */

:root {
  --pgfd-primary: #FF8C00;
  --pgfd-primary-dark: #BF360C;
  --pgfd-bg: #0C0C0C;
  --pgfd-bg-2: #161616;
  --pgfd-bg-3: #1f1c19;
  --pgfd-text: #f5efe6;
  --pgfd-text-muted: #c9bfae;
  --pgfd-accent: #ffd089;
  --pgfd-line: rgba(255, 140, 0, 0.22);
  --pgfd-radius: 14px;
  --pgfd-shadow: 0 8px 24px rgba(0,0,0,0.45);
  --pgfd-header-h: 58px;
  --pgfd-bottomnav-h: 62px;
}

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

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--pgfd-bg);
  color: var(--pgfd-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

/* ===== Header ===== */
.pgfd-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pgfd-header-h);
  background: linear-gradient(180deg, #1a1408 0%, var(--pgfd-bg) 100%);
  border-bottom: 2px solid var(--pgfd-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; z-index: 1000; box-shadow: var(--pgfd-shadow);
}
.pgfd-logo { display: flex; align-items: center; gap: 8px; }
.pgfd-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pgfd-logo-text { font-weight: 800; font-size: 1.5rem; color: var(--pgfd-primary); letter-spacing: .3px; line-height: 1.2rem; }
.pgfd-logo-text small { display: block; font-size: 0.95rem; color: var(--pgfd-text-muted); font-weight: 500; letter-spacing: .2px; }
.pgfd-header-actions { display: flex; align-items: center; gap: 8px; }
.pgfd-btn { display: inline-flex; align-items: center; gap: 4px; border: none; cursor: pointer; font-weight: 700; border-radius: 10px; padding: 8px 14px; font-size: 1.25rem; min-height: 38px; transition: transform .15s, background .2s; }
.pgfd-btn:active { transform: scale(.96); }
.pgfd-btn-register { background: linear-gradient(135deg, var(--pgfd-primary) 0%, var(--pgfd-primary-dark) 100%); color: #fff; }
.pgfd-btn-login { background: transparent; border: 1.5px solid var(--pgfd-primary); color: var(--pgfd-primary); }
.pgfd-menu-btn { background: transparent; border: none; color: var(--pgfd-text); font-size: 1.8rem; cursor: pointer; padding: 6px; min-width: 38px; min-height: 38px; display: flex; align-items: center; justify-content: center; }
.pgfd-menu-btn .bar { display: block; width: 22px; height: 2px; background: var(--pgfd-primary); position: relative; }
.pgfd-menu-btn .bar::before, .pgfd-menu-btn .bar::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--pgfd-primary); }
.pgfd-menu-btn .bar::before { top: -7px; }
.pgfd-menu-btn .bar::after { top: 7px; }

/* ===== Mobile Menu ===== */
.pgfd-mobile-menu { position: fixed; top: var(--pgfd-header-h); left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; background: var(--pgfd-bg-2); border-bottom: 2px solid var(--pgfd-primary); z-index: 9999; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.pgfd-mobile-menu.pgfd-active { max-height: 480px; }
.pgfd-mobile-menu ul { list-style: none; padding: 8px 14px; }
.pgfd-mobile-menu li a { display: flex; align-items: center; gap: 10px; padding: 12px 6px; color: var(--pgfd-text); border-bottom: 1px dashed var(--pgfd-line); font-size: 1.35rem; font-weight: 600; }
.pgfd-mobile-menu li a i, .pgfd-mobile-menu li a span.material-icons-outlined { color: var(--pgfd-primary); font-size: 1.6rem; }
.pgfd-mobile-menu li:last-child a { border-bottom: none; }

/* ===== Layout ===== */
main { padding-top: calc(var(--pgfd-header-h) + 8px); padding-bottom: 16px; }
.pgfd-container { width: 100%; padding: 0 12px; }
.pgfd-section { padding: 22px 0; }
.pgfd-section-title { font-size: 1.7rem; font-weight: 800; color: var(--pgfd-primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pgfd-section-title::before { content: ''; width: 4px; height: 22px; background: var(--pgfd-primary); border-radius: 3px; display: inline-block; }
.pgfd-section-desc { color: var(--pgfd-text-muted); font-size: 1.3rem; margin-bottom: 14px; }
.pgfd-h1 { font-size: 2.1rem; font-weight: 900; color: #fff; line-height: 2.2rem; margin-bottom: 8px; }
.pgfd-h1 span { color: var(--pgfd-primary); }
.pgfd-lead { font-size: 1.35rem; color: var(--pgfd-text-muted); margin-bottom: 12px; }

/* ===== Carousel ===== */
.pgfd-carousel { position: relative; width: 100%; height: 200px; border-radius: var(--pgfd-radius); overflow: hidden; box-shadow: var(--pgfd-shadow); margin-bottom: 6px; background: #000; }
.pgfd-carousel-track { position: relative; width: 100%; height: 100%; }
.pgfd-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.pgfd-carousel-slide.pgfd-active { opacity: 1; }
.pgfd-carousel-slide a { display: block; width: 100%; height: 100%; }
.pgfd-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pgfd-carousel-caption { position: absolute; left: 0; bottom: 0; width: 100%; padding: 22px 14px 12px; background: linear-gradient(0deg, rgba(12,12,12,.92) 0%, rgba(12,12,12,0) 100%); color: #fff; font-size: 1.3rem; font-weight: 700; }
.pgfd-carousel-caption strong { color: var(--pgfd-primary); display: block; font-size: 1.45rem; }
.pgfd-carousel-prev, .pgfd-carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(12,12,12,.6); color: #fff; border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.pgfd-carousel-prev { left: 8px; } .pgfd-carousel-next { right: 8px; }
.pgfd-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.pgfd-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; cursor: pointer; }
.pgfd-carousel-dot.pgfd-active { background: var(--pgfd-primary); width: 18px; border-radius: 4px; }

/* ===== Quick CTA bar ===== */
.pgfd-quickbar { display: flex; gap: 8px; margin: 10px 0 4px; }
.pgfd-quickbar .pgfd-btn { flex: 1; justify-content: center; }

/* ===== Game grid (compact) ===== */
.pgfd-cat-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.pgfd-cat-head h2 { font-size: 1.55rem; color: var(--pgfd-primary); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.pgfd-cat-head h2 i { font-size: 1.7rem; }
.pgfd-cat-head .pgfd-cat-more { font-size: 1.2rem; color: var(--pgfd-accent); font-weight: 700; }
.pgfd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pgfd-game-card { background: var(--pgfd-bg-2); border: 1px solid var(--pgfd-line); border-radius: 10px; overflow: hidden; transition: transform .15s, box-shadow .2s; cursor: pointer; }
.pgfd-game-card:active { transform: scale(.96); box-shadow: 0 0 0 2px var(--pgfd-primary); }
.pgfd-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #000; }
.pgfd-game-card .pgfd-game-name { padding: 5px 6px; font-size: 1.05rem; text-align: center; color: var(--pgfd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pgfd-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Info / feature cards ===== */
.pgfd-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pgfd-feature-card { background: linear-gradient(160deg, var(--pgfd-bg-3) 0%, var(--pgfd-bg-2) 100%); border: 1px solid var(--pgfd-line); border-radius: var(--pgfd-radius); padding: 14px; text-align: center; }
.pgfd-feature-card .pgfd-ic { font-size: 2.2rem; color: var(--pgfd-primary); margin-bottom: 6px; }
.pgfd-feature-card h3 { font-size: 1.35rem; color: #fff; margin-bottom: 4px; }
.pgfd-feature-card p { font-size: 1.15rem; color: var(--pgfd-text-muted); line-height: 1.35rem; }

/* ===== RTP / data list (compact) ===== */
.pgfd-rtp-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pgfd-rtp-item { background: var(--pgfd-bg-2); border: 1px solid var(--pgfd-line); border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; }
.pgfd-rtp-item .pgfd-rtp-name { font-size: 1.15rem; color: var(--pgfd-text); font-weight: 600; }
.pgfd-rtp-item .pgfd-rtp-val { font-size: 1.3rem; color: var(--pgfd-primary); font-weight: 800; }

/* ===== VIP / club ===== */
.pgfd-vip { background: linear-gradient(135deg, #2a1c08 0%, var(--pgfd-bg-2) 100%); border: 1px solid var(--pgfd-primary); border-radius: var(--pgfd-radius); padding: 16px; margin-top: 10px; }
.pgfd-vip h3 { color: var(--pgfd-accent); font-size: 1.5rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pgfd-vip-tier { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pgfd-vip-tier span { background: rgba(255,140,0,.15); border: 1px solid var(--pgfd-primary); color: var(--pgfd-accent); padding: 5px 12px; border-radius: 20px; font-size: 1.1rem; font-weight: 700; }

/* ===== Promotions ===== */
.pgfd-promo-list { display: grid; gap: 10px; }
.pgfd-promo-card { background: var(--pgfd-bg-2); border-left: 4px solid var(--pgfd-primary); border-radius: 10px; padding: 12px 14px; }
.pgfd-promo-card h3 { color: var(--pgfd-primary); font-size: 1.4rem; margin-bottom: 4px; }
.pgfd-promo-card p { color: var(--pgfd-text-muted); font-size: 1.2rem; }

/* ===== Security / trust ===== */
.pgfd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.pgfd-trust .pgfd-trust-item { background: var(--pgfd-bg-2); border-radius: 10px; padding: 12px 6px; border: 1px solid var(--pgfd-line); }
.pgfd-trust .pgfd-ic { font-size: 1.9rem; color: var(--pgfd-primary); }
.pgfd-trust .pgfd-trust-item span { display: block; font-size: 1.05rem; color: var(--pgfd-text); margin-top: 4px; font-weight: 600; }

/* ===== Winners ===== */
.pgfd-winners { background: var(--pgfd-bg-2); border-radius: var(--pgfd-radius); padding: 10px; border: 1px solid var(--pgfd-line); }
.pgfd-winner-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--pgfd-line); font-size: 1.2rem; }
.pgfd-winner-row:last-child { border-bottom: none; }
.pgfd-winner-row .pgfd-w-name { color: var(--pgfd-text); }
.pgfd-winner-row .pgfd-w-game { color: var(--pgfd-text-muted); font-size: 1.05rem; }
.pgfd-winner-row .pgfd-w-amount { color: var(--pgfd-primary); font-weight: 800; }

/* ===== Testimonials ===== */
.pgfd-testimonials { display: grid; gap: 10px; }
.pgfd-testi { background: var(--pgfd-bg-2); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--pgfd-line); }
.pgfd-testi .pgfd-testi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pgfd-testi .pgfd-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--pgfd-primary), var(--pgfd-primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.pgfd-testi .pgfd-testi-name { font-weight: 700; color: #fff; font-size: 1.25rem; }
.pgfd-testi .pgfd-stars { color: #ffc83d; font-size: 1.15rem; }
.pgfd-testi p { color: var(--pgfd-text-muted); font-size: 1.2rem; }

/* ===== Payments ===== */
.pgfd-payments { display: flex; flex-wrap: wrap; gap: 8px; }
.pgfd-pay { background: var(--pgfd-bg-2); border: 1px solid var(--pgfd-line); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; min-width: 100px; flex: 1 1 30%; }
.pgfd-pay i { color: var(--pgfd-primary); font-size: 1.6rem; }
.pgfd-pay span { font-size: 1.15rem; color: var(--pgfd-text); font-weight: 600; }

/* ===== App download CTA ===== */
.pgfd-app-cta { background: linear-gradient(135deg, var(--pgfd-primary-dark) 0%, #3a1c08 100%); border-radius: var(--pgfd-radius); padding: 16px; text-align: center; margin-top: 8px; }
.pgfd-app-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.pgfd-app-cta p { color: #ffe7c2; font-size: 1.2rem; margin-bottom: 12px; }
.pgfd-app-cta .pgfd-app-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pgfd-app-cta .pgfd-app-btn { background: #0C0C0C; color: var(--pgfd-primary); border: 1px solid var(--pgfd-primary); padding: 10px 16px; border-radius: 10px; font-weight: 800; font-size: 1.25rem; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* ===== Play Now CTA ===== */
.pgfd-playnow { text-align: center; background: linear-gradient(135deg, var(--pgfd-primary) 0%, var(--pgfd-primary-dark) 100%); border-radius: var(--pgfd-radius); padding: 18px; margin-top: 10px; }
.pgfd-playnow h3 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.pgfd-playnow p { color: #fff5e0; font-size: 1.25rem; margin-bottom: 12px; }
.pgfd-playnow .pgfd-btn { background: #0C0C0C; color: var(--pgfd-primary); font-size: 1.4rem; padding: 12px 26px; }

/* ===== FAQ ===== */
.pgfd-faq-item { background: var(--pgfd-bg-2); border: 1px solid var(--pgfd-line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.pgfd-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; font-weight: 700; color: #fff; font-size: 1.3rem; }
.pgfd-faq-q .pgfd-faq-icon { color: var(--pgfd-primary); transition: transform .2s; }
.pgfd-faq-item.pgfd-active .pgfd-faq-icon { transform: rotate(180deg); }
.pgfd-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 14px; color: var(--pgfd-text-muted); font-size: 1.2rem; }
.pgfd-faq-item.pgfd-active .pgfd-faq-a { max-height: 220px; padding-bottom: 12px; }

/* ===== Footer ===== */
.pgfd-footer { background: var(--pgfd-bg-2); border-top: 2px solid var(--pgfd-primary); padding: 18px 12px 20px; margin-top: 18px; }
.pgfd-footer-brand { color: var(--pgfd-text-muted); font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4rem; }
.pgfd-footer-brand strong { color: var(--pgfd-primary); }
.pgfd-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pgfd-footer-links a { background: var(--pgfd-bg); border: 1px solid var(--pgfd-line); color: var(--pgfd-text); padding: 6px 10px; border-radius: 8px; font-size: 1.1rem; font-weight: 600; }
.pgfd-footer-links a:hover { color: var(--pgfd-primary); border-color: var(--pgfd-primary); }
.pgfd-footer-copy { text-align: center; color: var(--pgfd-text-muted); font-size: 1.1rem; padding-top: 10px; border-top: 1px dashed var(--pgfd-line); }

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

/* ===== Mobile bottom nav ===== */
.pgfd-bottomnav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; height: var(--pgfd-bottomnav-h); background: #0a0a0a; border-top: 2px solid var(--pgfd-primary); display: flex; justify-content: space-around; align-items: stretch; z-index: 1000; box-shadow: 0 -4px 14px rgba(0,0,0,.5); }
.pgfd-bottomnav-btn { flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none; color: var(--pgfd-text-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 4px 2px; transition: color .2s, transform .15s; }
.pgfd-bottomnav-btn i, .pgfd-bottomnav-btn span.material-icons-outlined, .pgfd-bottomnav-btn span.material-icons { font-size: 22px; }
.pgfd-bottomnav-btn span.pgfd-bn-label { font-size: 10px; font-weight: 600; }
.pgfd-bottomnav-btn:active { transform: scale(.92); }
.pgfd-bottomnav-btn.pgfd-current, .pgfd-bottomnav-btn:hover { color: var(--pgfd-primary); }
.pgfd-bottomnav-btn.pgfd-promo { color: var(--pgfd-accent); }

/* desktop adjustments */
@media (min-width: 769px) {
  .pgfd-bottomnav { display: none; }
  .pgfd-menu-btn { display: none; }
}
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--pgfd-bottomnav-h) + 14px); }
}
