/* table game 5 - mobile-first layout */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

:root {
  --pgbb-primary: #00E5FF;
  --pgbb-secondary: #1E90FF;
  --pgbb-bg: #212F3D;
  --pgbb-dark: #15202b;
  --pgbb-accent: #00695C;
  --pgbb-mint: #B2DFDB;
  --pgbb-silver: #C0C0C0;
  --pgbb-text: #F5F7FA;
  --pgbb-muted: #A8B5C4;
  --pgbb-card: #2A3A4D;
  --pgbb-border: rgba(0, 229, 255, 0.22);
  --pgbb-header-h: 5.6rem;
  --pgbb-bottom-h: 6.2rem;
  --pgbb-max: 430px;
  --pgbb-radius: 1.2rem;
  --pgbb-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  background: var(--pgbb-bg);
  color: var(--pgbb-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--pgbb-primary);
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

.pgbb-wrapper {
  width: 100%;
  max-width: var(--pgbb-max);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, var(--pgbb-dark) 0%, var(--pgbb-bg) 40%, #1a2735 100%);
}

.pgbb-container {
  width: 100%;
  padding: 0 1.2rem;
}

/* Header */
.pgbb-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pgbb-max);
  height: var(--pgbb-header-h);
  z-index: 1000;
  background: rgba(21, 32, 43, 0.96);
  border-bottom: 1px solid var(--pgbb-border);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.pgbb-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.pgbb-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 1px solid var(--pgbb-border);
}

.pgbb-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pgbb-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

.pgbb-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pgbb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.4rem;
  min-width: 4.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pgbb-btn:active {
  transform: scale(0.96);
}

.pgbb-btn-primary {
  background: linear-gradient(135deg, var(--pgbb-primary), var(--pgbb-secondary));
  color: #0a1620;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 229, 255, 0.28);
}

.pgbb-btn-secondary {
  background: var(--pgbb-accent);
  color: var(--pgbb-mint);
  border: 1px solid rgba(178, 223, 219, 0.35);
}

.pgbb-btn-outline {
  background: transparent;
  color: var(--pgbb-primary);
  border: 1px solid var(--pgbb-primary);
}

.pgbb-btn-sm {
  min-height: 3.6rem;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
}

.pgbb-menu-toggle {
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pgbb-primary);
  font-size: 2.2rem;
}

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

.pgbb-overlay-show {
  opacity: 1;
  visibility: visible;
}

.pgbb-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 32rem);
  height: 100vh;
  background: linear-gradient(180deg, #15202b, #1c2a3a);
  z-index: 9999;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  padding: 1.6rem;
  overflow-y: auto;
  border-left: 1px solid var(--pgbb-border);
}

.pgbb-menu-open {
  transform: translateX(0);
}

.pgbb-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.pgbb-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pgbb-primary);
}

.pgbb-menu-close {
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pgbb-silver);
  font-size: 2.4rem;
}

.pgbb-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.8rem;
  color: var(--pgbb-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
  min-height: 4.4rem;
}

.pgbb-menu-list a:hover,
.pgbb-menu-list a:active {
  color: var(--pgbb-primary);
  background: rgba(0, 229, 255, 0.06);
}

.pgbb-menu-list i,
.pgbb-menu-list .material-icons,
.pgbb-menu-list ion-icon {
  font-size: 2rem;
  width: 2.4rem;
  color: var(--pgbb-secondary);
}

/* Main content */
.pgbb-main {
  padding-top: calc(var(--pgbb-header-h) + 1.2rem);
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .pgbb-main {
    padding-bottom: 8rem;
  }
}

/* Hero carousel */
.pgbb-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--pgbb-radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
  box-shadow: var(--pgbb-shadow);
  aspect-ratio: 16 / 9;
  background: var(--pgbb-card);
}

.pgbb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
}

.pgbb-slide-active {
  opacity: 1;
  z-index: 1;
}

.pgbb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgbb-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: rgba(21, 32, 43, 0.65);
  color: var(--pgbb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.pgbb-carousel-prev { left: 0.8rem; }
.pgbb-carousel-next { right: 0.8rem; }

.pgbb-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.6rem;
}

.pgbb-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(192, 192, 192, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}

.pgbb-dot-active {
  background: var(--pgbb-primary);
  transform: scale(1.2);
}

/* Sections */
.pgbb-section {
  margin-bottom: 2.4rem;
}

.pgbb-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgbb-primary);
  margin-bottom: 1.2rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pgbb-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--pgbb-text);
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, var(--pgbb-primary), var(--pgbb-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pgbb-lead {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--pgbb-muted);
  margin-bottom: 1.4rem;
}

.pgbb-text-block {
  font-size: 1.35rem;
  line-height: 1.65;
  color: var(--pgbb-silver);
  margin-bottom: 1.2rem;
}

.pgbb-text-block p {
  margin-bottom: 1rem;
}

.pgbb-text-block strong,
.pgbb-promo-link {
  color: var(--pgbb-primary);
  font-weight: 700;
  cursor: pointer;
}

/* Game grid */
.pgbb-category {
  margin-bottom: 2rem;
}

.pgbb-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pgbb-mint);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--pgbb-primary);
  text-transform: capitalize;
}

.pgbb-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.pgbb-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.18s ease;
  min-height: 4.4rem;
}

.pgbb-game-item:active {
  transform: scale(0.95);
}

.pgbb-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid var(--pgbb-border);
  background: var(--pgbb-card);
  box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.25);
}

.pgbb-game-name {
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  color: var(--pgbb-silver);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.5rem;
}

/* Cards / modules */
.pgbb-card {
  background: var(--pgbb-card);
  border: 1px solid var(--pgbb-border);
  border-radius: var(--pgbb-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--pgbb-shadow);
}

.pgbb-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pgbb-primary);
  margin-bottom: 0.8rem;
}

.pgbb-feature-list {
  display: grid;
  gap: 1rem;
}

.pgbb-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(0, 105, 92, 0.18);
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(178, 223, 219, 0.15);
}

.pgbb-feature-icon {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--pgbb-secondary), var(--pgbb-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

.pgbb-feature-body h3 {
  font-size: 1.35rem;
  color: var(--pgbb-mint);
  margin-bottom: 0.4rem;
}

.pgbb-feature-body p {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--pgbb-silver);
}

/* FAQ */
.pgbb-faq-item {
  border-bottom: 1px solid rgba(192, 192, 192, 0.12);
  padding: 1.2rem 0;
}

.pgbb-faq-q {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pgbb-primary);
  margin-bottom: 0.6rem;
}

.pgbb-faq-a {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--pgbb-silver);
}

/* Stats / RTP */
.pgbb-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.pgbb-stat {
  background: linear-gradient(145deg, rgba(30, 144, 255, 0.15), rgba(0, 105, 92, 0.25));
  border: 1px solid var(--pgbb-border);
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
}

.pgbb-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pgbb-primary);
  display: block;
  margin-bottom: 0.4rem;
}

.pgbb-stat-label {
  font-size: 1.1rem;
  color: var(--pgbb-muted);
}

/* CTA */
.pgbb-cta {
  text-align: center;
  padding: 2rem 1.4rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(30, 144, 255, 0.18));
  border: 1px solid var(--pgbb-border);
  border-radius: var(--pgbb-radius);
  margin-bottom: 2rem;
}

.pgbb-cta h2 {
  font-size: 1.7rem;
  color: var(--pgbb-primary);
  margin-bottom: 0.8rem;
}

.pgbb-cta p {
  font-size: 1.3rem;
  color: var(--pgbb-silver);
  margin-bottom: 1.4rem;
  line-height: 1.55;
}

.pgbb-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* Testimonials */
.pgbb-testimonial {
  background: var(--pgbb-card);
  border-radius: 1rem;
  padding: 1.2rem;
  border-left: 3px solid var(--pgbb-secondary);
  margin-bottom: 1rem;
}

.pgbb-testimonial p {
  font-size: 1.25rem;
  color: var(--pgbb-silver);
  line-height: 1.55;
  margin-bottom: 0.6rem;
  font-style: italic;
}

.pgbb-testimonial span {
  font-size: 1.1rem;
  color: var(--pgbb-mint);
  font-weight: 600;
}

/* Payment icons row */
.pgbb-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.pgbb-pay-badge {
  background: rgba(192, 192, 192, 0.1);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.15rem;
  color: var(--pgbb-silver);
  min-height: 4.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Explore more links */
.pgbb-explore {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pgbb-explore a {
  display: block;
  padding: 1rem 1.2rem;
  background: rgba(30, 144, 255, 0.1);
  border-radius: 0.8rem;
  color: var(--pgbb-mint);
  font-size: 1.3rem;
  border: 1px solid rgba(30, 144, 255, 0.2);
  min-height: 4.4rem;
}

.pgbb-explore a:hover {
  color: var(--pgbb-primary);
  border-color: var(--pgbb-primary);
}

/* Footer */
.pgbb-footer {
  background: var(--pgbb-dark);
  border-top: 1px solid var(--pgbb-border);
  padding: 2.4rem 1.2rem 2rem;
}

.pgbb-footer-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pgbb-primary);
  margin-bottom: 0.8rem;
}

.pgbb-footer-desc {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--pgbb-muted);
  margin-bottom: 1.4rem;
}

.pgbb-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.pgbb-seo-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin-bottom: 1.6rem;
}

.pgbb-seo-links a {
  font-size: 1.2rem;
  color: var(--pgbb-silver);
  min-height: 3.2rem;
  display: flex;
  align-items: center;
}

.pgbb-seo-links a:hover {
  color: var(--pgbb-primary);
}

.pgbb-copyright {
  font-size: 1.1rem;
  color: var(--pgbb-muted);
  text-align: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(192, 192, 192, 0.1);
}

/* Bottom navigation - unique cyan rail design */
.pgbb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pgbb-max);
  height: var(--pgbb-bottom-h);
  z-index: 1000;
  background: linear-gradient(180deg, #1a2735 0%, #0f1820 100%);
  border-top: 2px solid var(--pgbb-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -0.4rem 1.6rem rgba(0, 229, 255, 0.12);
  padding: 0 0.4rem;
}

.pgbb-bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 6rem;
  color: var(--pgbb-silver);
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.pgbb-bnav-item i,
.pgbb-bnav-item .material-icons,
.pgbb-bnav-item ion-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.pgbb-bnav-item .material-icons {
  font-size: 2.4rem;
}

.pgbb-bnav-item:active {
  transform: scale(0.92);
  color: var(--pgbb-primary);
}

.pgbb-bnav-item.pgbb-bnav-active {
  color: var(--pgbb-primary);
}

.pgbb-bnav-item.pgbb-bnav-active::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  width: 2rem;
  height: 0.3rem;
  border-radius: 1rem;
  background: var(--pgbb-primary);
  box-shadow: 0 0 0.8rem var(--pgbb-primary);
}

.pgbb-bnav-label {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
}

@media (min-width: 769px) {
  .pgbb-bottom-nav {
    display: none;
  }

  .pgbb-wrapper {
    max-width: 430px;
    box-shadow: 0 0 4rem rgba(0, 0, 0, 0.45);
  }

  body {
    background: #0b1219;
  }
}

/* Utility */
.pgbb-mt-1 { margin-top: 0.8rem; }
.pgbb-mt-2 { margin-top: 1.6rem; }
.pgbb-mb-1 { margin-bottom: 0.8rem; }
.pgbb-mb-2 { margin-bottom: 1.6rem; }
.pgbb-center { text-align: center; }
.pgbb-flex { display: flex; }
.pgbb-gap { gap: 0.8rem; }
.pgbb-hidden { display: none; }

.pgbb-badge {
  display: inline-block;
  background: var(--pgbb-accent);
  color: var(--pgbb-mint);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  vertical-align: middle;
}

.pgbb-winners {
  display: grid;
  gap: 0.8rem;
}

.pgbb-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 229, 255, 0.06);
  border-radius: 0.8rem;
  padding: 1rem;
  font-size: 1.2rem;
  min-height: 4.4rem;
}

.pgbb-winner-name { color: var(--pgbb-mint); font-weight: 600; }
.pgbb-winner-game { color: var(--pgbb-muted); }
.pgbb-winner-amt { color: var(--pgbb-primary); font-weight: 700; }
