/**
 * 999bt.click - Core Stylesheet
 * All classes prefixed with "pg5d-" for namespace isolation
 * Color palette: #2D2D2D | #B03060 | #FF6347 | #CCCCCC | #C71585
 */

/* CSS Variables */
:root {
  --pg5d-primary: #B03060;
  --pg5d-secondary: #C71585;
  --pg5d-accent: #FF6347;
  --pg5d-bg: #2D2D2D;
  --pg5d-bg-light: #3A3A3A;
  --pg5d-bg-card: #363636;
  --pg5d-text: #CCCCCC;
  --pg5d-text-light: #E8E8E8;
  --pg5d-text-white: #FFFFFF;
  --pg5d-border: #4A4A4A;
  --pg5d-gradient: linear-gradient(135deg, #B03060 0%, #C71585 50%, #FF6347 100%);
  --pg5d-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --pg5d-radius: 8px;
  --pg5d-radius-lg: 12px;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--pg5d-bg);
  color: var(--pg5d-text);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--pg5d-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pg5d-text-white); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.pg5d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--pg5d-bg);
  border-bottom: 2px solid var(--pg5d-primary);
  max-width: 430px; margin: 0 auto;
}
.pg5d-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; min-height: 52px;
}
.pg5d-logo { display: flex; align-items: center; gap: 0.6rem; }
.pg5d-logo img { width: 28px; height: 28px; }
.pg5d-logo-text { color: var(--pg5d-text-white); font-size: 1.8rem; font-weight: 700; }
.pg5d-header-btns { display: flex; gap: 0.5rem; }
.pg5d-btn-reg {
  background: var(--pg5d-gradient); color: var(--pg5d-text-white);
  border: none; padding: 0.5rem 1.2rem; border-radius: var(--pg5d-radius);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.pg5d-btn-reg:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(176,48,96,0.5); }
.pg5d-btn-login {
  background: transparent; color: var(--pg5d-accent);
  border: 1.5px solid var(--pg5d-accent); padding: 0.5rem 1.2rem;
  border-radius: var(--pg5d-radius); font-size: 1.3rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.pg5d-btn-login:hover { background: rgba(255,99,71,0.15); }
.pg5d-menu-toggle {
  background: none; border: none; color: var(--pg5d-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.2rem;
  display: flex; align-items: center;
}

/* Mobile Menu Overlay */
.pg5d-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.pg5d-overlay-active { display: block; }

/* Mobile Menu */
.pg5d-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100%;
  background: var(--pg5d-bg-light); z-index: 9999;
  transition: right 0.3s ease; padding: 1.5rem 0; overflow-y: auto;
}
.pg5d-menu-active { right: 0; }
.pg5d-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 1.5rem 1.2rem; border-bottom: 1px solid var(--pg5d-border);
}
.pg5d-menu-title { color: var(--pg5d-primary); font-size: 1.8rem; font-weight: 700; }
.pg5d-menu-close {
  background: none; border: none; color: var(--pg5d-text); font-size: 2rem; cursor: pointer;
}
.pg5d-menu-links { padding: 1rem 0; }
.pg5d-menu-link {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.5rem; color: var(--pg5d-text);
  font-size: 1.5rem; transition: background 0.2s;
}
.pg5d-menu-link:hover { background: var(--pg5d-bg-card); color: var(--pg5d-accent); }

/* Main Content */
main { padding-top: 60px; }
.pg5d-container { padding: 0 1rem; }

/* Carousel */
.pg5d-carousel { position: relative; overflow: hidden; margin-bottom: 1.5rem; }
.pg5d-slide {
  display: none; width: 100%; cursor: pointer;
}
.pg5d-slide-active { display: block; }
.pg5d-slide img { width: 100%; border-radius: 0; }
.pg5d-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.pg5d-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.2s;
}
.pg5d-dot-active { background: var(--pg5d-accent); }

/* Section Titles */
.pg5d-section-title {
  font-size: 2rem; font-weight: 700; color: var(--pg5d-text-white);
  padding: 1.5rem 1rem 0.8rem; position: relative;
}
.pg5d-section-title::after {
  content: ''; position: absolute; bottom: 0; left: 1rem;
  width: 40px; height: 3px; background: var(--pg5d-gradient); border-radius: 2px;
}

/* Game Grid */
.pg5d-game-section { margin-bottom: 2rem; }
.pg5d-cat-title {
  font-size: 1.6rem; font-weight: 600; color: var(--pg5d-primary);
  padding: 1rem 1rem 0.5rem; border-left: 3px solid var(--pg5d-accent);
  margin-left: 1rem;
}
.pg5d-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; padding: 0.8rem 1rem;
}
.pg5d-game-item { text-align: center; cursor: pointer; transition: transform 0.15s; }
.pg5d-game-item:hover { transform: scale(1.05); }
.pg5d-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--pg5d-radius);
  object-fit: cover; border: 1px solid var(--pg5d-border);
}
.pg5d-game-name {
  font-size: 1.1rem; color: var(--pg5d-text); margin-top: 0.3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Content Sections */
.pg5d-content-section {
  padding: 1.5rem 1rem; margin-bottom: 1rem;
  background: var(--pg5d-bg-card); border-radius: var(--pg5d-radius-lg);
  margin-left: 0.5rem; margin-right: 0.5rem;
}
.pg5d-content-section h2 {
  font-size: 1.8rem; color: var(--pg5d-primary); margin-bottom: 1rem;
}
.pg5d-content-section h3 {
  font-size: 1.5rem; color: var(--pg5d-accent); margin: 1rem 0 0.5rem;
}
.pg5d-content-section p {
  font-size: 1.4rem; line-height: 1.6; margin-bottom: 0.8rem; color: var(--pg5d-text);
}
.pg5d-content-section ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.pg5d-content-section li {
  font-size: 1.4rem; line-height: 1.6; margin-bottom: 0.4rem;
  list-style: disc; color: var(--pg5d-text);
}
.pg5d-promo-link {
  display: inline-block; color: var(--pg5d-accent); font-weight: 600;
  text-decoration: underline; cursor: pointer; font-size: 1.4rem;
}
.pg5d-promo-link:hover { color: var(--pg5d-text-white); }

/* CTA Button */
.pg5d-cta {
  display: block; width: 90%; margin: 1.5rem auto; padding: 1.2rem;
  background: var(--pg5d-gradient); color: var(--pg5d-text-white);
  border: none; border-radius: var(--pg5d-radius-lg);
  font-size: 1.8rem; font-weight: 700; cursor: pointer;
  text-align: center; transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(176,48,96,0.4);
}
.pg5d-cta:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(176,48,96,0.6); }

/* Footer */
.pg5d-footer {
  background: var(--pg5d-bg-light); padding: 2rem 1rem 6rem;
  border-top: 2px solid var(--pg5d-primary);
}
.pg5d-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.pg5d-footer-brand p { font-size: 1.3rem; color: var(--pg5d-text); line-height: 1.6; }
.pg5d-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.pg5d-footer-link {
  display: inline-block; padding: 0.4rem 0.8rem;
  background: var(--pg5d-bg-card); color: var(--pg5d-text);
  border-radius: var(--pg5d-radius); font-size: 1.2rem;
  transition: all 0.2s;
}
.pg5d-footer-link:hover { background: var(--pg5d-primary); color: var(--pg5d-text-white); }
.pg5d-footer-copy {
  text-align: center; font-size: 1.2rem; color: var(--pg5d-text);
  opacity: 0.7; padding-top: 1rem; border-top: 1px solid var(--pg5d-border);
}

/* Bottom Navigation */
.pg5d-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px; background: var(--pg5d-bg-light);
  border-top: 2px solid var(--pg5d-primary); z-index: 1000;
  max-width: 430px; margin: 0 auto;
  justify-content: space-around; align-items: center;
  padding: 0 0.3rem;
}
.pg5d-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; min-height: 56px; background: none; border: none;
  color: var(--pg5d-text); cursor: pointer; transition: all 0.2s;
  border-radius: 8px; position: relative;
}
.pg5d-bottom-btn:hover { color: var(--pg5d-accent); }
.pg5d-bottom-btn:active { transform: scale(0.92); }
.pg5d-bottom-btn .pg5d-bnav-icon { font-size: 22px; margin-bottom: 2px; }
.pg5d-bottom-btn .pg5d-bnav-text { font-size: 1rem; line-height: 1.2; }
.pg5d-bottom-btn.pg5d-bnav-active { color: var(--pg5d-primary); }
.pg5d-bottom-btn.pg5d-bnav-active::before {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--pg5d-accent); border-radius: 0 0 3px 3px;
}

/* FAQ Accordion */
.pg5d-faq-item { margin-bottom: 0.8rem; border: 1px solid var(--pg5d-border); border-radius: var(--pg5d-radius); overflow: hidden; }
.pg5d-faq-q {
  padding: 1rem; background: var(--pg5d-bg-light); font-weight: 600;
  color: var(--pg5d-text-white); font-size: 1.4rem; cursor: pointer;
}
.pg5d-faq-a {
  padding: 0.8rem 1rem; font-size: 1.3rem; color: var(--pg5d-text);
  line-height: 1.5; display: none;
}
.pg5d-faq-item.pg5d-faq-open .pg5d-faq-a { display: block; }

/* Responsive */
@media (min-width: 769px) {
  .pg5d-bottom-nav { display: none !important; }
}
@media (max-width: 768px) {
  .pg5d-bottom-nav { display: flex; }
  main { padding-bottom: 80px; }
}

/* Utility */
.pg5d-text-center { text-align: center; }
.pg5d-mt-1 { margin-top: 0.5rem; }
.pg5d-mt-2 { margin-top: 1rem; }
.pg5d-mb-2 { margin-bottom: 1rem; }
.pg5d-hidden { display: none; }
