/* =========================================================
   FBM Play (fbm-play.click) - design-0507.css
   All custom classes use the pg05- prefix.
   Palette: deep navy base, electric gold accent, soft ivory text.
   ========================================================= */

:root {
  --pg05-bg: #0b1020;
  --pg05-bg2: #121a33;
  --pg05-bg3: #1a2444;
  --pg05-gold: #f5c542;
  --pg05-gold2: #ff9e2c;
  --pg05-red: #e8413a;
  --pg05-green: #1fc97a;
  --pg05-blue: #3a8dff;
  --pg05-text: #f3f4f8;
  --pg05-muted: #aeb6cc;
  --pg05-border: rgba(255,255,255,0.10);
  --pg05-radius: 14px;
  --pg05-shadow: 0 10px 30px rgba(0,0,0,0.45);
  --pg05-max: 430px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #18224a 0%, var(--pg05-bg) 60%);
  color: var(--pg05-text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
}
a { color: var(--pg05-gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.25; }
p { margin: 0 0 12px; color: var(--pg05-muted); }

.pg05-wrap {
  max-width: var(--pg05-max);
  margin: 0 auto;
  background: var(--pg05-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--pg05-shadow);
}

/* ---------- Header ---------- */
.pg05-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, #0e1530, #0b1020cc);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pg05-border);
}
.pg05-brand { display: flex; align-items: center; gap: 10px; }
.pg05-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--pg05-gold), var(--pg05-gold2));
  display: grid; place-items: center;
  color: #1a1206; font-weight: 800; font-size: 16px;
  box-shadow: 0 6px 18px rgba(245,197,66,0.35);
}
.pg05-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.pg05-brand-text strong { color: var(--pg05-text); font-size: 16px; letter-spacing: 0.3px; }
.pg05-brand-text span { color: var(--pg05-muted); font-size: 11px; }
.pg05-head-actions { display: flex; align-items: center; gap: 8px; }
.pg05-btn {
  border: 0; cursor: pointer; border-radius: 999px;
  font-weight: 700; padding: 9px 16px; font-size: 13px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.pg05-btn:active { transform: scale(0.96); }
.pg05-btn-login {
  background: transparent;
  color: var(--pg05-text);
  border: 1px solid var(--pg05-border);
}
.pg05-btn-register {
  background: linear-gradient(135deg, var(--pg05-gold), var(--pg05-gold2));
  color: #1a1206;
  box-shadow: 0 8px 20px rgba(245,197,66,0.30);
}
.pg05-icon-btn {
  background: transparent; border: 1px solid var(--pg05-border);
  color: var(--pg05-text); width: 38px; height: 38px;
  border-radius: 10px; display: grid; place-items: center; cursor: pointer;
}

/* ---------- Top sub-nav (desktop friendly) ---------- */
.pg05-topnav {
  display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto;
  background: var(--pg05-bg2); border-bottom: 1px solid var(--pg05-border);
  white-space: nowrap; scrollbar-width: none;
}
.pg05-topnav::-webkit-scrollbar { display: none; }
.pg05-topnav a {
  color: var(--pg05-muted); font-size: 13px; padding: 6px 10px;
  border-radius: 8px; flex: 0 0 auto;
}
.pg05-topnav a:hover { color: var(--pg05-gold); background: rgba(245,197,66,0.08); text-decoration: none; }

/* ---------- Main ---------- */
main.pg05-main { padding: 14px 12px 96px; }

/* ---------- Hero carousel ---------- */
.pg05-carousel {
  position: relative; border-radius: var(--pg05-radius); overflow: hidden;
  box-shadow: var(--pg05-shadow); margin-bottom: 16px; background: #000;
}
.pg05-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; min-height: 188px;
}
.pg05-slide-active { opacity: 1; position: relative; }
.pg05-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; z-index: 0; }
.pg05-slide-inner { position: relative; z-index: 1; }
.pg05-slide h2 { font-size: 22px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
.pg05-slide p { color: #e9ecf8; font-size: 13px; margin-bottom: 10px; }
.pg05-slide .pg05-btn-register { display: inline-block; }
.pg05-dots { position: relative; z-index: 2; display: flex; gap: 6px; justify-content: center; padding: 8px; }
.pg05-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35);
  cursor: pointer; border: 0;
}
.pg05-dot-active { background: var(--pg05-gold); width: 22px; border-radius: 6px; }

/* ---------- Marquee notice ---------- */
.pg05-marquee {
  background: linear-gradient(90deg, rgba(245,197,66,0.15), rgba(232,65,58,0.15));
  border: 1px solid var(--pg05-border);
  border-radius: 10px; padding: 8px 12px; margin-bottom: 16px;
  font-size: 12.5px; color: var(--pg05-gold);
  display: flex; align-items: center; gap: 8px;
}

/* ---------- Section ---------- */
.pg05-section { margin-bottom: 22px; }
.pg05-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.pg05-section-head h2 {
  font-size: 18px; color: var(--pg05-text);
  display: flex; align-items: center; gap: 8px;
}
.pg05-section-head h2 .pg05-bar {
  width: 4px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--pg05-gold), var(--pg05-gold2));
}
.pg05-more { font-size: 12px; color: var(--pg05-muted); }
.pg05-more:hover { color: var(--pg05-gold); }

/* ---------- Filter tabs ---------- */
.pg05-filters {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  margin-bottom: 14px; scrollbar-width: none;
}
.pg05-filters::-webkit-scrollbar { display: none; }
.pg05-filter-tab {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  background: var(--pg05-bg2); color: var(--pg05-muted);
  font-size: 13px; border: 1px solid var(--pg05-border); cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.pg05-filter-active {
  background: linear-gradient(135deg, var(--pg05-gold), var(--pg05-gold2));
  color: #1a1206; border-color: transparent; font-weight: 700;
}

/* ---------- Game grid ---------- */
.pg05-game-group { margin-bottom: 18px; }
.pg05-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pg05-card {
  background: var(--pg05-bg2); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--pg05-border); position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pg05-card:hover { transform: translateY(-3px); box-shadow: var(--pg05-shadow); }
.pg05-card-img {
  aspect-ratio: 1 / 1; background: #000; position: relative; overflow: hidden;
}
.pg05-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pg05-card-overlay {
  position: absolute; inset: 0; background: rgba(7,11,28,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
}
.pg05-card:hover .pg05-card-overlay { opacity: 1; }
.pg05-play-btn {
  background: linear-gradient(135deg, var(--pg05-gold), var(--pg05-gold2));
  color: #1a1206; border: 0; border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: 12px; cursor: pointer;
}
.pg05-card-title {
  padding: 7px 8px; font-size: 11.5px; text-align: center;
  color: var(--pg05-text); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.pg05-card-hot {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: var(--pg05-red); color: #fff;
  font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
  letter-spacing: 0.5px;
}

/* ---------- Featured grid (2 cols) ---------- */
.pg05-featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg05-feature {
  border-radius: 14px; padding: 14px; min-height: 110px;
  border: 1px solid var(--pg05-border); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.pg05-feature h3 { font-size: 15px; color: #fff; }
.pg05-feature p { font-size: 11.5px; margin: 0; color: var(--pg05-muted); }
.pg05-feature.f1 { background: linear-gradient(135deg, #2a1a55, #5a2a8a); }
.pg05-feature.f2 { background: linear-gradient(135deg, #1a3a55, #2a7aaa); }
.pg05-feature.f3 { background: linear-gradient(135deg, #553a1a, #c8862a); }
.pg05-feature.f4 { background: linear-gradient(135deg, #1a4a3a, #2aaa7a); }

/* ---------- Promo banner CTA ---------- */
.pg05-promo-cta {
  background: linear-gradient(135deg, #2a1230, #6a1f3a);
  border: 1px solid var(--pg05-border);
  border-radius: 16px; padding: 18px; margin: 18px 0;
  text-align: center; position: relative; overflow: hidden;
}
.pg05-promo-cta h3 { color: var(--pg05-gold); font-size: 20px; }
.pg05-promo-cta p { color: #f0d8e4; font-size: 13px; }
.pg05-promo-cta .pg05-btn-register { margin-top: 6px; }

/* ---------- SEO content ---------- */
.pg05-seo {
  background: var(--pg05-bg2); border: 1px solid var(--pg05-border);
  border-radius: 14px; padding: 16px; margin-bottom: 18px;
}
.pg05-seo h2 { font-size: 18px; color: var(--pg05-text); margin-top: 14px; }
.pg05-seo h2:first-child { margin-top: 0; }
.pg05-seo h3 { font-size: 15px; color: var(--pg05-gold); margin-top: 12px; }
.pg05-seo p { font-size: 13.5px; }
.pg05-seo ul { margin: 0 0 12px; padding-left: 20px; }
.pg05-seo li { color: var(--pg05-muted); font-size: 13.5px; margin-bottom: 5px; }
.pg05-seo a { color: var(--pg05-gold); }

/* ---------- FAQ ---------- */
.pg05-faq-list { display: flex; flex-direction: column; gap: 8px; }
.pg05-faq-item {
  background: var(--pg05-bg2); border: 1px solid var(--pg05-border);
  border-radius: 10px; overflow: hidden;
}
.pg05-faq-q {
  padding: 12px 14px; cursor: pointer; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--pg05-text); font-size: 13.5px;
}
.pg05-faq-q .pg05-ico { color: var(--pg05-gold); transition: transform 0.2s; }
.pg05-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px; color: var(--pg05-muted); font-size: 13px;
}
.pg05-faq-open .pg05-faq-a { max-height: 320px; padding: 0 14px 12px; }
.pg05-faq-open .pg05-ico { transform: rotate(45deg); }

/* ---------- Footer ---------- */
.pg05-footer {
  background: #070b1c; border-top: 1px solid var(--pg05-border);
  padding: 22px 14px 24px; margin-top: 10px;
}
.pg05-footer h4 { color: var(--pg05-gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.pg05-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg05-footer-cols ul { list-style: none; padding: 0; margin: 0; }
.pg05-footer-cols li { margin-bottom: 7px; }
.pg05-footer-cols a { color: var(--pg05-muted); font-size: 12.5px; }
.pg05-footer-cols a:hover { color: var(--pg05-gold); }
.pg05-footer-bottom {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--pg05-border);
  text-align: center; color: var(--pg05-muted); font-size: 11.5px;
}
.pg05-payments {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0;
  justify-content: center;
}
.pg05-payments span {
  background: var(--pg05-bg2); border: 1px solid var(--pg05-border);
  border-radius: 6px; padding: 4px 9px; font-size: 11px; color: var(--pg05-muted);
}
.pg05-responsible { color: var(--pg05-muted); font-size: 11px; text-align: center; margin-top: 10px; }

/* ---------- Mobile slide menu ---------- */
#pg05MobileMenu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px;
  height: 100%; z-index: 9999; background: #0a1024;
  border-left: 1px solid var(--pg05-border);
  transform: translateX(0); transition: right 0.3s ease;
  overflow-y: auto; padding: 16px;
}
#pg05MobileMenu.pg05-menu-open { right: 0; }
.pg05-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pg05-menu-head strong { color: var(--pg05-gold); font-size: 18px; }
.pg05-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pg05-menu-actions .pg05-btn { width: 100%; padding: 12px; font-size: 14px; text-align: center; }
.pg05-menu-nav a {
  display: block; padding: 12px 10px; border-bottom: 1px solid var(--pg05-border);
  color: var(--pg05-text); font-size: 14px;
}
.pg05-menu-nav a:hover { color: var(--pg05-gold); text-decoration: none; }
#pg05Overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
#pg05Overlay.pg05-overlay-show { opacity: 1; pointer-events: auto; }

/* ---------- Bottom nav (mobile) ---------- */
.pg05-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: var(--pg05-max); margin: 0 auto;
  background: linear-gradient(180deg, #0e1530, #070b1c);
  border-top: 1px solid var(--pg05-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; padding: 4px 0;
}
.pg05-nav-btn {
  flex: 1; min-width: 60px; min-height: 54px;
  background: transparent; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--pg05-muted); transition: color 0.15s, transform 0.15s;
}
.pg05-nav-btn:active { transform: scale(0.92); }
.pg05-nav-btn .pg05-nav-ico { font-size: 22px; line-height: 1; }
.pg05-nav-btn .pg05-nav-label { font-size: 10px; line-height: 1; }
.pg05-nav-btn.pg05-nav-promo { color: var(--pg05-gold); }
.pg05-nav-btn.pg05-nav-current { color: var(--pg05-gold); }
.pg05-nav-center {
  background: linear-gradient(135deg, var(--pg05-gold), var(--pg05-gold2));
  width: 50px; height: 50px; border-radius: 50%;
  margin-top: -22px; box-shadow: 0 8px 18px rgba(245,197,66,0.4);
  display: grid; place-items: center; color: #1a1206; border: 3px solid #0e1530;
}
.pg05-nav-center .pg05-nav-ico { font-size: 24px; }

/* ---------- Back to top ---------- */
#pg05BackTop {
  position: fixed; right: 14px; bottom: 78px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pg05-gold), var(--pg05-gold2));
  color: #1a1206; border: 0; cursor: pointer; font-size: 18px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  display: grid; place-items: center;
}
#pg05BackTop.pg05-back-show { opacity: 1; pointer-events: auto; }

/* ---------- Trust badges ---------- */
.pg05-trust {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px;
}
.pg05-trust span {
  background: var(--pg05-bg2); border: 1px solid var(--pg05-border);
  border-radius: 8px; padding: 5px 9px; font-size: 11px; color: var(--pg05-muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.pg05-trust span i { color: var(--pg05-green); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg05-bottom-nav { display: none; }
  main.pg05-main { padding-bottom: 30px; }
  .pg05-wrap { box-shadow: 0 0 50px rgba(0,0,0,0.6); }
}
@media (min-width: 600px) and (max-width: 768px) {
  .pg05-grid { grid-template-columns: repeat(4, 1fr); }
}
