/* bf777 main stylesheet | class prefix: pga9- | CSS vars: --pga9- */
/* Color palette: #0E1621 bg | #E0FFFF cyan-light | #7FFF00 lime | #66CDAA mint | #FFCCCB accent */

:root {
  --pga9-bg: #0E1621;
  --pga9-bg2: #14202E;
  --pga9-bg3: #1A2A3E;
  --pga9-primary: #66CDAA;
  --pga9-primary-dark: #3DAA85;
  --pga9-lime: #7FFF00;
  --pga9-cyan: #E0FFFF;
  --pga9-accent: #FFCCCB;
  --pga9-text: #D0EEE0;
  --pga9-text2: #7ABEA0;
  --pga9-border: #1E3A4A;
  --pga9-gold: #FFD700;
  --pga9-success: #00E676;
  --pga9-max-w: 430px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.4rem;
  background: var(--pga9-bg);
  color: var(--pga9-text);
  max-width: var(--pga9-max-w);
  margin: 0 auto;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ============================
   HEADER
   ============================ */
.pga9-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pga9-max-w);
  z-index: 1000;
  background: rgba(14,22,33,0.95);
  border-bottom: 1px solid var(--pga9-border);
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}
.pga9-header-scrolled { background: rgba(14,22,33,0.99); }
.pga9-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 54px;
  gap: 10px;
}

/* Logo */
.pga9-logo { text-decoration: none; display: flex; align-items: center; gap: 6px; }
.pga9-logo a { text-decoration: none; display: flex; align-items: center; }
.pga9-logo-text {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pga9-lime);
  letter-spacing: -0.5px;
  text-shadow: 0 0 12px rgba(127,255,0,0.5);
}
.pga9-logo-text span { color: var(--pga9-primary); }

/* Hamburger */
.pga9-hamburger {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}
.pga9-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--pga9-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.pga9-hamburger-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pga9-hamburger-active span:nth-child(2) { opacity: 0; }
.pga9-hamburger-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header buttons */
.pga9-header-btns { display: flex; gap: 6px; flex-shrink: 0; }
.pga9-btn-register {
  background: var(--pga9-lime);
  color: #0E1621;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pga9-btn-login {
  background: transparent;
  color: var(--pga9-lime);
  border: 1px solid var(--pga9-lime);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================
   OVERLAY
   ============================ */
.pga9-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
}
.pga9-overlay-show { display: block; }

/* ============================
   MOBILE MENU
   ============================ */
.pga9-mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--pga9-bg2);
  border-right: 1px solid var(--pga9-border);
  z-index: 9999;
  overflow-y: auto;
  transition: left 0.3s ease;
  padding-bottom: 80px;
}
.pga9-menu-open { left: 0; }
.pga9-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--pga9-border);
  background: var(--pga9-bg3);
}
.pga9-menu-title { font-size: 1.6rem; font-weight: 700; color: var(--pga9-lime); }
.pga9-menu-close { background: none; border: none; color: var(--pga9-text2); font-size: 1.8rem; cursor: pointer; }
.pga9-menu-section { padding: 8px 0; border-bottom: 1px solid var(--pga9-border); }
.pga9-menu-label { font-size: 1rem; color: var(--pga9-text2); text-transform: uppercase; letter-spacing: 1px; padding: 8px 16px 4px; }
.pga9-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--pga9-text);
  text-decoration: none;
  font-size: 1.3rem;
  transition: background 0.2s;
}
.pga9-menu-link:hover { background: var(--pga9-bg3); color: var(--pga9-primary); }
.pga9-menu-link i, .pga9-menu-link .material-icons { font-size: 1.6rem; color: var(--pga9-primary); width: 20px; }
.pga9-menu-cta { padding: 16px; }

/* ============================
   MAIN CONTENT
   ============================ */
.pga9-main { padding-top: 54px; }
@media (max-width: 768px) { .pga9-main { padding-bottom: 80px; } }

/* ============================
   CAROUSEL
   ============================ */
.pga9-carousel { position: relative; width: 100%; overflow: hidden; }
.pga9-slide { display: none; position: relative; }
.pga9-slide-active { display: block; }
.pga9-slide img { width: 100%; height: 180px; object-fit: cover; display: block; cursor: pointer; }
.pga9-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.pga9-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(224,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}
.pga9-dot-active { background: var(--pga9-lime); width: 20px; border-radius: 4px; }

/* ============================
   SECTION LABELS
   ============================ */
.pga9-cat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 6px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pga9-cyan);
  border-bottom: 1px solid var(--pga9-border);
  background: linear-gradient(90deg, rgba(102,205,170,0.08), transparent);
}

/* ============================
   GAME GRID
   ============================ */
.pga9-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pga9-game-card {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: var(--pga9-bg2);
  transition: transform 0.2s;
}
.pga9-game-card:active { transform: scale(0.95); }
.pga9-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pga9-game-name {
  font-size: 0.9rem;
  color: var(--pga9-text2);
  padding: 3px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--pga9-bg3);
}

/* ============================
   CTA BUTTONS
   ============================ */
.pga9-cta-btn {
  background: linear-gradient(135deg, var(--pga9-primary), var(--pga9-primary-dark));
  color: #0E1621;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.pga9-cta-btn:active { opacity: 0.85; }
.pga9-cta-btn-full { width: 100%; justify-content: center; }
.pga9-lime-btn {
  background: var(--pga9-lime);
  color: #0E1621;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

/* ============================
   FAQ
   ============================ */
.pga9-faq-item {
  background: var(--pga9-bg2);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--pga9-border);
}
.pga9-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--pga9-cyan);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.pga9-faq-icon {
  font-size: 1.8rem;
  color: var(--pga9-lime);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.pga9-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pga9-faq-body {
  padding: 0 16px 14px;
  font-size: 1.25rem;
  color: var(--pga9-text2);
  line-height: 1.6;
}

/* ============================
   RTP TABLE
   ============================ */
.pga9-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  background: var(--pga9-bg2);
  border-radius: 8px;
  overflow: hidden;
}
.pga9-rtp-table th {
  background: var(--pga9-bg3);
  color: var(--pga9-lime);
  padding: 10px 12px;
  text-align: left;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pga9-rtp-table td {
  padding: 10px 12px;
  color: var(--pga9-text);
  border-bottom: 1px solid var(--pga9-border);
}
.pga9-rtp-table tr:last-child td { border-bottom: none; }
.pga9-rtp-table tr:nth-child(even) td { background: var(--pga9-bg3); }
.pga9-rtp-highlight { color: var(--pga9-lime); font-weight: 700; }

/* ============================
   FEATURES GRID
   ============================ */
.pga9-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pga9-feature-card {
  background: var(--pga9-bg2);
  border: 1px solid var(--pga9-border);
  border-radius: 10px;
  padding: 14px 12px;
  border-top: 2px solid var(--pga9-primary);
}
.pga9-fc-icon { font-size: 2rem; color: var(--pga9-lime); margin-bottom: 6px; }
.pga9-fc-title { font-size: 1.2rem; font-weight: 700; color: var(--pga9-cyan); margin-bottom: 4px; }
.pga9-fc-desc { font-size: 1.1rem; color: var(--pga9-text2); line-height: 1.4; }

/* ============================
   FOOTER
   ============================ */
.pga9-footer {
  background: var(--pga9-bg2);
  border-top: 2px solid var(--pga9-border);
  padding: 20px 14px;
  text-align: center;
}
.pga9-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
.pga9-footer-partners img { height: 28px; width: auto; filter: brightness(0.7) grayscale(0.3); }
.pga9-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}
.pga9-footer-nav a {
  color: var(--pga9-text2);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.pga9-footer-nav a:hover { color: var(--pga9-primary); }
.pga9-footer-promo {
  font-size: 1.1rem;
  color: var(--pga9-text2);
  margin-bottom: 10px;
  line-height: 1.5;
}
.pga9-footer-copy { font-size: 1.1rem; color: var(--pga9-text2); }

/* ============================
   BOTTOM NAV
   ============================ */
.pga9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pga9-max-w);
  height: 60px;
  background: var(--pga9-bg2);
  border-top: 2px solid var(--pga9-lime);
  display: flex;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(127,255,0,0.15);
}
@media (min-width: 769px) { .pga9-bottom-nav { display: none; } }
.pga9-bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pga9-text2);
  font-size: 1rem;
  transition: all 0.2s;
  min-height: 60px;
  padding: 4px 2px;
  position: relative;
}
.pga9-bnav-item:active { transform: scale(0.92); }
.pga9-bnav-item i, .pga9-bnav-item .material-icons { font-size: 2.2rem; }
.pga9-bnav-item span:last-child { font-size: 1rem; }
.pga9-bnav-active { color: var(--pga9-lime); }
.pga9-bnav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--pga9-lime);
  border-radius: 0 0 3px 3px;
}
