/* ============================================================
 * ok bet - design-ab42.css
 * Mobile-first responsive styles. All classes use pgab- prefix.
 * Color palette: #F0F8FF (light) | #0D1117 (dark bg)
 * ========================================================== */

:root {
  --pgab-bg: #0D1117;
  --pgab-bg-2: #11181f;
  --pgab-bg-3: #161f29;
  --pgab-text: #F0F8FF;
  --pgab-text-muted: #9fb2c4;
  --pgab-primary: #ffb020;
  --pgab-primary-2: #ff7a18;
  --pgab-accent: #2ecc71;
  --pgab-accent-2: #1aa7e0;
  --pgab-border: rgba(240, 248, 255, 0.10);
  --pgab-radius: 14px;
  --pgab-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  --pgab-header-h: 58px;
  --pgab-bottomnav-h: 62px;
}

/* ---------- Base reset ---------- */
* { box-sizing: border-box; }
html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--pgab-bg);
  color: var(--pgab-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem * 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pgab-primary); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6rem; line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1rem; }

.pgab-skip {
  position: absolute; left: -9999px; top: 0;
}
.pgab-skip:focus { left: 1rem; top: 1rem; z-index: 9999; background: var(--pgab-primary); color: #000; padding: .6rem 1rem; border-radius: 8px; }

/* ---------- Layout ---------- */
.pgab-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.pgab-wrapper { min-height: 100vh; }
main { display: block; padding-bottom: calc(var(--pgab-bottomnav-h) + 1.6rem); }

/* ---------- Header ---------- */
.pgab-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pgab-header-h);
  background: linear-gradient(180deg, #0b1117 0%, #0d1117 100%);
  border-bottom: 1px solid var(--pgab-border);
  z-index: 1000;
}
.pgab-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: .6rem;
}
.pgab-brand {
  display: flex; align-items: center; gap: .55rem;
  color: var(--pgab-text);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: .3px;
}
.pgab-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pgab-brand span b { color: var(--pgab-primary); }

.pgab-header-actions { display: flex; align-items: center; gap: .4rem; }
.pgab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform .12s ease, filter .12s ease;
}
.pgab-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.pgab-btn-primary {
  background: linear-gradient(135deg, var(--pgab-primary) 0%, var(--pgab-primary-2) 100%);
  color: #1a1206;
}
.pgab-btn-outline {
  background: transparent;
  border: 1.5px solid var(--pgab-primary);
  color: var(--pgab-primary);
}
.pgab-btn-block {
  width: 100%;
  min-height: 46px;
  font-size: 1.55rem;
}
.pgab-btn-sm { min-height: 30px; padding: 0 .8rem; font-size: 1.2rem; }

.pgab-menu-btn {
  background: transparent;
  border: 0;
  color: var(--pgab-text);
  font-size: 2rem;
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- Mobile menu ---------- */
.pgab-mobile-menu {
  position: fixed;
  top: var(--pgab-header-h);
  left: 0; right: 0;
  background: var(--pgab-bg-2);
  border-bottom: 1px solid var(--pgab-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  z-index: 9999;
}
.pgab-menu-open { max-height: 80vh; overflow-y: auto; }
.pgab-mobile-menu ul { list-style: none; margin: 0; padding: .6rem 1rem; }
.pgab-mobile-menu li { border-bottom: 1px solid var(--pgab-border); }
.pgab-mobile-menu li:last-child { border-bottom: 0; }
.pgab-mobile-menu a {
  display: flex; align-items: center; gap: .7rem;
  padding: 1rem .4rem;
  color: var(--pgab-text);
  font-size: 1.45rem;
}
.pgab-mobile-menu a i { color: var(--pgab-primary); width: 22px; text-align: center; }

/* ---------- Hero carousel ---------- */
.pgab-hero {
  margin-top: calc(var(--pgab-header-h) + 1rem);
  border-radius: var(--pgab-radius);
  overflow: hidden;
  box-shadow: var(--pgab-shadow);
}
.pgab-hero-viewport { overflow: hidden; border-radius: var(--pgab-radius); }
.pgab-hero-track {
  display: flex;
  width: 100%;
  transition: transform .45s ease;
}
.pgab-hero-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.pgab-hero-slide img { width: 100%; height: 180px; object-fit: cover; }
.pgab-hero-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}
.pgab-hero-cap h2 { font-size: 1.7rem; margin: 0 0 .25rem; color: #fff; }
.pgab-hero-cap p { margin: 0; font-size: 1.25rem; color: #f6f6f6; }
.pgab-hero-dots {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: .6rem;
}
.pgab-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(240,248,255,.3);
  border: 0; padding: 0; cursor: pointer;
}
.pgab-hero-dot-active { background: var(--pgab-primary); width: 22px; border-radius: 4px; }

/* ---------- Section ---------- */
.pgab-section { padding: 1.6rem 0; }
.pgab-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.pgab-section-head h2 { font-size: 1.8rem; }
.pgab-section-head .pgab-link { font-size: 1.25rem; color: var(--pgab-primary); }

/* ---------- Promo text links ---------- */
.pgab-promo-link {
  color: var(--pgab-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pgab-promo-link:hover { color: var(--pgab-primary-2); }

/* ---------- Game grid ---------- */
.pgab-filter-row {
  display: flex; gap: .5rem; overflow-x: auto;
  padding-bottom: .6rem;
  margin-bottom: .8rem;
  scrollbar-width: none;
}
.pgab-filter-row::-webkit-scrollbar { display: none; }
.pgab-filter-btn {
  flex: 0 0 auto;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--pgab-border);
  background: var(--pgab-bg-2);
  color: var(--pgab-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  white-space: nowrap;
}
.pgab-filter-btn-active {
  background: linear-gradient(135deg, var(--pgab-primary), var(--pgab-primary-2));
  color: #1a1206;
  border-color: transparent;
  font-weight: 700;
}

.pgab-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.pgab-game-card {
  background: var(--pgab-bg-2);
  border: 1px solid var(--pgab-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  display: block;
  text-align: center;
}
.pgab-game-card:hover { transform: translateY(-2px); box-shadow: var(--pgab-shadow); }
.pgab-game-card .pgab-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.pgab-game-card .pgab-game-name {
  padding: .45rem .35rem .55rem;
  font-size: 1.1rem;
  color: var(--pgab-text);
  line-height: 1.25;
  min-height: 32px;
  word-break: break-word;
}

/* ---------- Category title ---------- */
.pgab-cat-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.55rem;
  margin: 1.4rem 0 .8rem;
  color: var(--pgab-text);
}
.pgab-cat-title i { color: var(--pgab-primary); }

/* ---------- Feature / info cards ---------- */
.pgab-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.pgab-info-card {
  background: var(--pgab-bg-2);
  border: 1px solid var(--pgab-border);
  border-radius: var(--pgab-radius);
  padding: 1.1rem;
}
.pgab-info-card .pgab-ico {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,176,32,.15);
  color: var(--pgab-primary);
  margin-bottom: .6rem;
}
.pgab-info-card h3 { font-size: 1.35rem; }
.pgab-info-card p { font-size: 1.22rem; color: var(--pgab-text-muted); margin: 0; }

/* ---------- Steps ---------- */
.pgab-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.pgab-steps li {
  position: relative;
  padding: .8rem 0 .8rem 3rem;
  border-bottom: 1px solid var(--pgab-border);
  counter-increment: step;
  font-size: 1.3rem;
}
.pgab-steps li:last-child { border-bottom: 0; }
.pgab-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .8rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pgab-primary), var(--pgab-primary-2));
  color: #1a1206;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Testimonials ---------- */
.pgab-testi {
  background: var(--pgab-bg-2);
  border-left: 3px solid var(--pgab-primary);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: .8rem;
}
.pgab-testi p { margin: 0 0 .4rem; font-size: 1.25rem; }
.pgab-testi .pgab-testi-name { color: var(--pgab-primary); font-weight: 700; font-size: 1.15rem; }
.pgab-stars { color: #ffc83d; letter-spacing: 2px; }

/* ---------- Payment / winners ---------- */
.pgab-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pgab-chip {
  background: var(--pgab-bg-2);
  border: 1px solid var(--pgab-border);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: 1.15rem;
  color: var(--pgab-text);
  display: inline-flex; align-items: center; gap: .35rem;
}
.pgab-winners {
  background: var(--pgab-bg-2);
  border-radius: 12px;
  border: 1px solid var(--pgab-border);
  padding: .5rem .9rem;
}
.pgab-winners div {
  display: flex; justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--pgab-border);
  font-size: 1.2rem;
}
.pgab-winners div:last-child { border-bottom: 0; }
.pgab-winners b { color: var(--pgab-accent); }

/* ---------- FAQ ---------- */
.pgab-faq-item {
  background: var(--pgab-bg-2);
  border: 1px solid var(--pgab-border);
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-bottom: .6rem;
}
.pgab-faq-item h3 { color: var(--pgab-primary); font-size: 1.3rem; margin-bottom: .35rem; }
.pgab-faq-item p { margin: 0; font-size: 1.22rem; color: var(--pgab-text-muted); }

/* ---------- CTA banner ---------- */
.pgab-cta {
  background: linear-gradient(135deg, #1a2330 0%, #2a1d0a 100%);
  border: 1px solid rgba(255,176,32,.35);
  border-radius: var(--pgab-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
}
.pgab-cta h2 { color: var(--pgab-primary); font-size: 1.9rem; }
.pgab-cta p { color: var(--pgab-text); font-size: 1.25rem; }

/* ---------- Footer ---------- */
.pgab-footer {
  background: #0a0e13;
  border-top: 1px solid var(--pgab-border);
  padding: 1.6rem 0 1rem;
  margin-top: 1.4rem;
}
.pgab-footer-brand { font-size: 1.3rem; color: var(--pgab-text-muted); margin-bottom: .8rem; }
.pgab-footer-links {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  margin: .8rem 0;
}
.pgab-footer-links a {
  color: var(--pgab-text-muted);
  font-size: 1.15rem;
}
.pgab-footer-links a:hover { color: var(--pgab-primary); }
.pgab-footer-promos {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: .8rem 0;
}
.pgab-footer-promos .pgab-btn { flex: 1 1 auto; }
.pgab-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pgab-text-muted);
  padding-top: .8rem;
  border-top: 1px solid var(--pgab-border);
}

/* ---------- Bottom nav ---------- */
.pgab-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pgab-bottomnav-h);
  background: linear-gradient(180deg, #0b1117 0%, #05080c 100%);
  border-top: 1px solid var(--pgab-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.pgab-bottomnav-btn {
  flex: 1 1 0;
  background: transparent;
  border: 0;
  color: var(--pgab-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  font-size: 1.05rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  padding: 0;
  position: relative;
  transition: color .15s ease, transform .12s ease;
}
.pgab-bottomnav-btn .material-icons,
.pgab-bottomnav-btn i { font-size: 22px; }
.pgab-bottomnav-btn ion-icon { font-size: 22px; }
.pgab-bottomnav-btn:hover { color: var(--pgab-primary); transform: translateY(-1px); }
.pgab-bottomnav-active { color: var(--pgab-primary); }
.pgab-bottomnav-active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--pgab-primary);
}
.pgab-bottomnav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: #e94560;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ---------- Back to top ---------- */
.pgab-to-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--pgab-bottomnav-h) + 12px);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--pgab-primary);
  color: #1a1206;
  border: 0;
  cursor: pointer;
  font-size: 1.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
}
.pgab-to-top-show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Prose for SEO text ---------- */
.pgab-prose { font-size: 1.3rem; color: var(--pgab-text); }
.pgab-prose p { margin: 0 0 .9rem; line-height: 1.65; color: var(--pgab-text-muted); }
.pgab-prose h3 { color: var(--pgab-text); margin-top: 1.2rem; }
.pgab-prose ul { padding-left: 1.4rem; color: var(--pgab-text-muted); }
.pgab-prose li { margin-bottom: .4rem; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pgab-bottomnav { display: none; }
  .pgab-menu-btn { display: none; }
  .pgab-container { max-width: 960px; }
  .pgab-header-inner { max-width: 960px; }
  .pgab-game-grid { grid-template-columns: repeat(6, 1fr); }
  .pgab-cards-row { grid-template-columns: repeat(4, 1fr); }
  main { padding-bottom: 2rem; }
}

/* ---------- Small phone tweaks ---------- */
@media (max-width: 360px) {
  .pgab-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pgab-cards-row { grid-template-columns: 1fr; }
}
