/* ph222 login password - core theme styles. */
/* All custom classes use the pg5d- prefix for namespace isolation. */

:root {
  --pg5d-primary: #FFAA00;
  --pg5d-secondary: #D2691E;
  --pg5d-bg: #2D2D2D;
  --pg5d-text: #F4A460;
  --pg5d-accent: #00FFFF;
  --pg5d-dark: #1a1a1a;
  --pg5d-darker: #121212;
  --pg5d-card: #3a3a3a;
  --pg5d-light: #ffffff;
  --pg5d-muted: #b8b8b8;
  --pg5d-success: #2ecc71;
  --pg5d-radius: 12px;
  --pg5d-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--pg5d-bg);
  color: var(--pg5d-light);
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pg5d-accent); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* Header */
.pg5d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(20,20,20,0.95), rgba(45,45,45,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,170,0,0.25);
  padding: 8px 0;
}
.pg5d-header.pg5d-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.45); }
.pg5d-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; gap: 6px;
}
.pg5d-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: 1; min-width: 0; }
.pg5d-logo img { width: 28px; height: 28px; border-radius: 4px; }
.pg5d-logo-text {
  font-size: 1.4rem; font-weight: 800; color: var(--pg5d-primary);
  letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.pg5d-header-actions { display: flex; align-items: center; gap: 6px; }
.pg5d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 1.25rem; font-weight: 700; border-radius: 999px;
  padding: 7px 12px; min-height: 32px; border: none;
  transition: transform .15s ease, filter .15s ease;
}
.pg5d-btn:active { transform: scale(0.96); }
.pg5d-btn-register {
  background: linear-gradient(135deg, var(--pg5d-primary), var(--pg5d-secondary));
  color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(255,170,0,0.4);
}
.pg5d-btn-login {
  background: transparent; color: var(--pg5d-accent);
  border: 1.5px solid var(--pg5d-accent);
}
.pg5d-menu-toggle {
  background: transparent; border: none; color: var(--pg5d-primary);
  font-size: 1.8rem; padding: 4px 6px; display: inline-flex; align-items: center;
}

/* Mobile drawer */
.pg5d-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
  height: 100vh; background: var(--pg5d-darker); z-index: 9999;
  transition: right .3s ease; padding: 60px 16px 24px; overflow-y: auto;
  border-left: 1px solid rgba(255,170,0,0.25);
}
.pg5d-mobile-menu.pg5d-active { right: 0; box-shadow: -8px 0 30px rgba(0,0,0,0.5); }
.pg5d-mobile-menu h3 {
  color: var(--pg5d-primary); font-size: 1.25rem; margin: 12px 0 6px;
  text-transform: uppercase; letter-spacing: 1px;
}
.pg5d-mobile-menu ul { list-style: none; margin-bottom: 6px; }
.pg5d-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.pg5d-mobile-menu a {
  display: block; padding: 10px 6px; color: #ddd; font-size: 1.3rem;
}
.pg5d-mobile-menu a:hover { color: var(--pg5d-primary); background: rgba(255,170,0,0.05); }
.pg5d-menu-close {
  position: absolute; top: 10px; right: 10px; background: transparent;
  border: none; color: #fff; font-size: 2rem; padding: 4px 8px;
}
.pg5d-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.pg5d-overlay.pg5d-active { opacity: 1; pointer-events: all; }

/* Main layout */
.pg5d-main { padding-top: 58px; }
.pg5d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; position: relative; }
.pg5d-section { padding: 18px 0; }

/* Carousel */
.pg5d-carousel {
  position: relative; width: 100%; border-radius: var(--pg5d-radius);
  overflow: hidden; box-shadow: var(--pg5d-shadow); background: #111;
}
.pg5d-slide { display: none; position: relative; cursor: pointer; }
.pg5d-slide.pg5d-active { display: block; }
.pg5d-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg5d-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.88));
}
.pg5d-slide-overlay h2 { font-size: 1.55rem; color: var(--pg5d-primary); margin-bottom: 2px; }
.pg5d-slide-overlay p { font-size: 1.15rem; color: var(--pg5d-text); }

.pg5d-carousel-arrows {
  position: absolute; top: 45%; left: 6px; right: 6px;
  display: flex; justify-content: space-between; pointer-events: none;
}
.pg5d-arrow {
  background: rgba(0,0,0,0.55); color: #fff; border: none; width: 28px; height: 28px;
  border-radius: 50%; pointer-events: all; font-size: 1.1rem;
}
.pg5d-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.pg5d-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; padding: 0;
}
.pg5d-dot.pg5d-active { background: var(--pg5d-primary); }

/* Section headers */
.pg5d-section-title {
  font-size: 1.65rem; font-weight: 800; margin-bottom: 10px;
  color: var(--pg5d-primary); border-left: 4px solid var(--pg5d-accent);
  padding-left: 10px; line-height: 1.3;
}
.pg5d-section-subtitle {
  color: var(--pg5d-text); font-size: 1.3rem; margin-bottom: 10px;
}

/* Game grid */
.pg5d-game-group { margin-bottom: 22px; }
.pg5d-game-group-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; padding: 0 2px;
}
.pg5d-game-group-title {
  font-size: 1.4rem; color: var(--pg5d-primary); font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
}
.pg5d-game-group-count {
  font-size: 1.1rem; color: var(--pg5d-muted); background: rgba(255,170,0,0.08);
  padding: 2px 8px; border-radius: 10px;
}
.pg5d-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.pg5d-game-card {
  background: var(--pg5d-card); border-radius: 10px; overflow: hidden;
  text-align: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid rgba(255,170,0,0.08); display: block;
}
.pg5d-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
  border-color: rgba(255,170,0,0.35);
}
.pg5d-game-card img { width: 100%; height: 84px; object-fit: cover; }
.pg5d-game-card-name {
  font-size: 1.05rem; color: var(--pg5d-light); padding: 5px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cards & info blocks */
.pg5d-card {
  background: var(--pg5d-card); border-radius: var(--pg5d-radius); padding: 14px;
  box-shadow: var(--pg5d-shadow); border: 1px solid rgba(255,170,0,0.08);
  margin-bottom: 12px;
}
.pg5d-card h3 { color: var(--pg5d-primary); font-size: 1.4rem; margin-bottom: 6px; }
.pg5d-card p { color: #ddd; font-size: 1.25rem; line-height: 1.55; margin-bottom: 6px; }
.pg5d-card p:last-child { margin-bottom: 0; }
.pg5d-card a { color: var(--pg5d-accent); font-weight: 700; }

.pg5d-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg5d-list { list-style: none; }
.pg5d-list li {
  padding: 6px 0 6px 24px; position: relative;
  font-size: 1.25rem; color: #ddd; line-height: 1.5;
}
.pg5d-list li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--pg5d-primary); position: absolute; left: 0; top: 6px;
}

/* Prominent CTA */
.pg5d-cta {
  background: linear-gradient(135deg, var(--pg5d-primary), var(--pg5d-secondary));
  color: #1a1a1a; padding: 13px 18px; border-radius: var(--pg5d-radius);
  text-align: center; font-weight: 800; font-size: 1.4rem; display: block;
  box-shadow: 0 4px 14px rgba(255,170,0,0.45); margin: 14px 0;
  border: none; width: 100%;
}
.pg5d-cta:hover { filter: brightness(1.08); }
.pg5d-cta-outline {
  background: transparent; color: var(--pg5d-accent);
  border: 2px solid var(--pg5d-accent); box-shadow: none;
}

/* Inline promo link */
.pg5d-promo-link {
  color: var(--pg5d-accent); font-weight: 800; cursor: pointer;
  border-bottom: 2px dashed var(--pg5d-primary);
}

/* Steps (How to Play) */
.pg5d-step { display: flex; gap: 10px; margin-bottom: 10px; }
.pg5d-step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pg5d-primary), var(--pg5d-secondary));
  color: #1a1a1a; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.pg5d-step-body { flex: 1; }
.pg5d-step-body h4 { color: var(--pg5d-primary); font-size: 1.3rem; margin-bottom: 3px; }
.pg5d-step-body p { color: #ddd; font-size: 1.2rem; line-height: 1.5; }

/* Testimonials */
.pg5d-testimonial {
  background: var(--pg5d-card); border-left: 4px solid var(--pg5d-primary);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 8px;
}
.pg5d-testimonial p { color: #ddd; font-size: 1.2rem; font-style: italic; }
.pg5d-testimonial cite {
  display: block; color: var(--pg5d-primary); font-size: 1.1rem;
  margin-top: 4px; font-style: normal; font-weight: 700;
}

/* Winners list */
.pg5d-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.2rem;
}
.pg5d-winner-name { color: var(--pg5d-light); font-weight: 700; min-width: 80px; }
.pg5d-winner-game { color: var(--pg5d-text); flex: 1; padding: 0 8px; }
.pg5d-winner-amount { color: var(--pg5d-primary); font-weight: 800; }

/* Payment grid */
.pg5d-pay-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px;
}
.pg5d-pay-item {
  background: var(--pg5d-card); border-radius: 8px; padding: 8px 4px;
  text-align: center; font-size: 1rem; color: var(--pg5d-light);
  border: 1px solid rgba(255,170,0,0.08);
}
.pg5d-pay-item i { font-size: 1.8rem; color: var(--pg5d-primary); display: block; margin-bottom: 4px; }

/* Compact feature grid */
.pg5d-feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pg5d-feature-item {
  background: var(--pg5d-card); border-radius: 10px; padding: 10px;
  text-align: center; border: 1px solid rgba(255,170,0,0.08);
}
.pg5d-feature-item i { font-size: 2rem; color: var(--pg5d-primary); margin-bottom: 4px; }
.pg5d-feature-item .material-icons,
.pg5d-feature-item .ion { font-size: 2rem; color: var(--pg5d-primary); margin-bottom: 4px; }
.pg5d-feature-item h4 { color: var(--pg5d-primary); font-size: 1.2rem; margin-bottom: 4px; }
.pg5d-feature-item p { color: #ddd; font-size: 1.1rem; line-height: 1.4; }

/* Footer */
.pg5d-footer {
  background: var(--pg5d-darker); padding: 22px 12px 14px; margin-top: 18px;
  border-top: 2px solid var(--pg5d-primary);
}
.pg5d-footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px;
}
.pg5d-footer-col h4 {
  color: var(--pg5d-primary); font-size: 1.3rem; margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,170,0,0.2); padding-bottom: 4px;
}
.pg5d-footer-col ul { list-style: none; }
.pg5d-footer-col li { padding: 3px 0; }
.pg5d-footer-col a { color: #ccc; font-size: 1.15rem; }
.pg5d-footer-col a:hover { color: var(--pg5d-primary); }
.pg5d-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pg5d-footer-promos .pg5d-btn { flex: 1; min-width: 80px; padding: 7px 10px; font-size: 1.15rem; }
.pg5d-footer-brand p { color: #aaa; font-size: 1.15rem; margin-bottom: 6px; line-height: 1.5; }
.pg5d-copyright {
  text-align: center; color: #888; font-size: 1.1rem; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Bottom navigation */
.pg5d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 60px; z-index: 1000;
  background: linear-gradient(180deg, var(--pg5d-bg), var(--pg5d-darker));
  border-top: 1px solid rgba(255,170,0,0.25);
  display: flex; justify-content: space-around; align-items: center; padding: 4px 0;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.45);
}
.pg5d-bottom-nav-link {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #aaa; font-size: 1rem; text-decoration: none; padding: 4px 0; gap: 2px;
  background: transparent; border: none;
  transition: color .15s ease, transform .15s ease;
  min-width: 60px; min-height: 56px;
}
.pg5d-bottom-nav-link:hover { color: var(--pg5d-primary); }
.pg5d-bottom-nav-link.pg5d-current { color: var(--pg5d-primary); }
.pg5d-bottom-nav-link i,
.pg5d-bottom-nav-link .material-icons { font-size: 22px; }
.pg5d-bottom-nav-link:active { transform: scale(0.9); }

/* Desktop: hide the mobile bottom nav */
@media (min-width: 769px) {
  .pg5d-bottom-nav { display: none; }
}

/* Mobile: ensure content clears the bottom nav */
@media (max-width: 768px) {
  .pg5d-main { padding-bottom: 80px; }
}

/* Utility helpers */
.pg5d-text-center { text-align: center; }
.pg5d-mt-12 { margin-top: 12px; }
.pg5d-mb-12 { margin-bottom: 12px; }
.pg5d-hidden { display: none !important; }
.pg5d-trust-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(46,204,113,0.12); color: var(--pg5d-success);
  border: 1px solid rgba(46,204,113,0.4);
  padding: 3px 10px; border-radius: 999px; font-size: 1.1rem; font-weight: 700;
}
