/* ============================================================
   color game - Base stylesheet (Core Basefiles)
   Prefix: pgfd-
   Palette: #0D1117 | #DEB887 | #FF5722 | #F0E68C | #FFA500
   Mobile-first HTML5 casino / gaming site (PH English)
   ============================================================ */

:root {
  --pgfd-bg: #0D1117;
  --pgfd-bg-alt: #161B22;
  --pgfd-bg-card: #1C2230;
  --pgfd-primary: #DEB887;
  --pgfd-accent: #FF5722;
  --pgfd-accent-2: #FFA500;
  --pgfd-text: #F0E68C;
  --pgfd-text-light: #F5F5F5;
  --pgfd-text-muted: #A8A29E;
  --pgfd-border: #2A2F3A;
  --pgfd-success: #22C55E;
  --pgfd-warning: #FACC15;
  --pgfd-radius: 1.2rem;
  --pgfd-radius-sm: 0.8rem;
  --pgfd-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --pgfd-shadow-glow: 0 0 20px rgba(255, 87, 34, 0.35);
  --pgfd-transition: 0.25s ease;
}

* { 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", Roboto, Arial, sans-serif;
  background: var(--pgfd-bg);
  color: var(--pgfd-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pgfd-primary); text-decoration: none; transition: color var(--pgfd-transition); }
a:hover { color: var(--pgfd-accent-2); }

/* ============ Layout containers ============ */
.pgfd-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.pgfd-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ============ Header / Top nav ============ */
.pgfd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0D1117 0%, #161B22 100%);
  border-bottom: 1px solid var(--pgfd-border);
  box-shadow: var(--pgfd-shadow);
}
.pgfd-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  min-height: 5.6rem;
}
.pgfd-logo { display: flex; align-items: center; gap: 0.8rem; }
.pgfd-logo img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.pgfd-logo-text {
  font-size: 1.6rem; font-weight: 800; color: var(--pgfd-primary);
  letter-spacing: 0.5px; line-height: 1.2;
}
.pgfd-logo-text small { display: block; font-size: 1rem; color: var(--pgfd-text-muted); font-weight: 400; }

.pgfd-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pgfd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700;
  padding: 0.7rem 1.2rem; border-radius: var(--pgfd-radius-sm);
  border: none; cursor: pointer;
  transition: transform var(--pgfd-transition), box-shadow var(--pgfd-transition), background var(--pgfd-transition);
  min-height: 3.6rem; min-width: 7rem;
  text-align: center;
}
.pgfd-btn:active { transform: scale(0.96); }
.pgfd-btn-login { background: transparent; color: var(--pgfd-primary); border: 1px solid var(--pgfd-primary); }
.pgfd-btn-login:hover { background: rgba(222, 184, 135, 0.12); }
.pgfd-btn-register {
  background: linear-gradient(135deg, var(--pgfd-accent) 0%, var(--pgfd-accent-2) 100%);
  color: #fff; box-shadow: var(--pgfd-shadow-glow);
}
.pgfd-btn-register:hover { filter: brightness(1.08); }

.pgfd-menu-toggle {
  background: transparent; border: none; color: var(--pgfd-primary);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem; min-width: 4.4rem; min-height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Mobile menu (drop-down) ============ */
.pgfd-mobile-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  background: var(--pgfd-bg-alt);
  border-bottom: 1px solid var(--pgfd-border);
  z-index: 9999;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.pgfd-mobile-menu.pgfd-open { max-height: 60rem; }
.pgfd-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 1rem 1.2rem; }
.pgfd-mobile-menu a {
  display: block; padding: 1rem 1.2rem;
  color: var(--pgfd-text-light); font-size: 1.4rem; font-weight: 500;
  border-radius: var(--pgfd-radius-sm);
  border-left: 3px solid transparent;
  transition: background var(--pgfd-transition), border-color var(--pgfd-transition);
}
.pgfd-mobile-menu a:hover, .pgfd-mobile-menu a:focus {
  background: rgba(222, 184, 135, 0.08);
  border-left-color: var(--pgfd-accent);
}
.pgfd-mobile-menu a i { margin-right: 0.8rem; color: var(--pgfd-primary); }

/* ============ Main content ============ */
.pgfd-main { padding-top: 6.4rem; padding-bottom: 1rem; }
@media (max-width: 768px) { .pgfd-main { padding-bottom: 8rem; } }

/* ============ Hero / Carousel ============ */
.pgfd-hero { position: relative; margin: 1rem 0 1.4rem; border-radius: var(--pgfd-radius); overflow: hidden; box-shadow: var(--pgfd-shadow); }
.pgfd-carousel { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.pgfd-carousel-track { display: flex; transition: transform 0.5s ease; width: 100%; }
.pgfd-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.pgfd-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pgfd-carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0) 40%, rgba(13,17,23,0.7) 100%);
}
.pgfd-carousel-caption {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2;
  color: var(--pgfd-text-light); font-size: 1.4rem; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.pgfd-carousel-dots { position: absolute; bottom: 0.8rem; right: 1.2rem; z-index: 3; display: flex; gap: 0.4rem; }
.pgfd-carousel-dots span {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); transition: background var(--pgfd-transition);
}
.pgfd-carousel-dots span.pgfd-active { background: var(--pgfd-accent); }

/* ============ Section titles ============ */
.pgfd-section { margin: 2rem 0; }
.pgfd-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--pgfd-primary);
  margin-bottom: 1rem; padding-left: 1rem;
  border-left: 4px solid var(--pgfd-accent);
  display: flex; align-items: center; gap: 0.6rem;
}
.pgfd-section-title i { color: var(--pgfd-accent-2); }
.pgfd-section-sub { font-size: 1.4rem; color: var(--pgfd-text-muted); margin-bottom: 1rem; }

/* ============ H1 ============ */
.pgfd-h1 {
  font-size: 2.2rem; font-weight: 900; color: var(--pgfd-text);
  line-height: 1.3; margin: 1rem 0 1.2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.pgfd-h1 span { color: var(--pgfd-accent); }

/* ============ Game grid ============ */
.pgfd-cat-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.6rem 0 1rem;
}
.pgfd-cat-title { font-size: 1.6rem; font-weight: 800; color: var(--pgfd-primary); display: flex; align-items: center; gap: 0.5rem; }
.pgfd-cat-title i { color: var(--pgfd-accent-2); font-size: 2rem; }
.pgfd-cat-tag { font-size: 1.1rem; color: var(--pgfd-text-muted); background: var(--pgfd-bg-card); padding: 0.2rem 0.8rem; border-radius: 999px; }

.pgfd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
@media (min-width: 360px) { .pgfd-grid { grid-template-columns: repeat(4, 1fr); } }

.pgfd-game-card {
  background: var(--pgfd-bg-card);
  border: 1px solid var(--pgfd-border);
  border-radius: var(--pgfd-radius-sm);
  overflow: hidden; cursor: pointer;
  transition: transform var(--pgfd-transition), border-color var(--pgfd-transition), box-shadow var(--pgfd-transition);
  display: flex; flex-direction: column;
}
.pgfd-game-card:hover, .pgfd-game-card:focus {
  transform: translateY(-2px);
  border-color: var(--pgfd-accent);
  box-shadow: var(--pgfd-shadow-glow);
}
.pgfd-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.pgfd-game-name {
  font-size: 1.1rem; color: var(--pgfd-text-light); font-weight: 600;
  padding: 0.5rem 0.4rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}

/* ============ Info / content blocks ============ */
.pgfd-card {
  background: var(--pgfd-bg-card);
  border: 1px solid var(--pgfd-border);
  border-radius: var(--pgfd-radius);
  padding: 1.4rem; margin-bottom: 1.2rem;
  box-shadow: var(--pgfd-shadow);
}
.pgfd-card h2 { font-size: 1.7rem; color: var(--pgfd-primary); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.pgfd-card h2 i { color: var(--pgfd-accent-2); }
.pgfd-card h3 { font-size: 1.4rem; color: var(--pgfd-text); margin: 1rem 0 0.5rem; }
.pgfd-card p { color: var(--pgfd-text-light); margin-bottom: 0.8rem; font-size: 1.35rem; line-height: 1.6; }
.pgfd-card ul { padding-left: 1.6rem; color: var(--pgfd-text-light); }
.pgfd-card li { margin-bottom: 0.4rem; font-size: 1.3rem; line-height: 1.5; }
.pgfd-card a { color: var(--pgfd-accent-2); font-weight: 700; }
.pgfd-card strong { color: var(--pgfd-primary); }

/* ============ Promo CTA strip ============ */
.pgfd-cta {
  background: linear-gradient(135deg, #FF5722 0%, #FFA500 100%);
  border-radius: var(--pgfd-radius);
  padding: 1.2rem 1.4rem; margin: 1.2rem 0;
  color: #fff; font-weight: 800; font-size: 1.5rem;
  text-align: center; cursor: pointer;
  box-shadow: var(--pgfd-shadow-glow);
  transition: transform var(--pgfd-transition);
}
.pgfd-cta:active { transform: scale(0.97); }
.pgfd-cta small { display: block; font-weight: 500; font-size: 1.1rem; opacity: 0.9; margin-top: 0.3rem; }

/* ============ Feature list / steps ============ */
.pgfd-features { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.pgfd-feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--pgfd-bg-card); border: 1px solid var(--pgfd-border);
  border-radius: var(--pgfd-radius-sm); padding: 1rem;
}
.pgfd-feature-icon {
  flex: 0 0 4rem; height: 4rem; border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255,87,34,0.2), rgba(255,165,0,0.2));
  display: flex; align-items: center; justify-content: center;
  color: var(--pgfd-accent-2); font-size: 2rem;
}
.pgfd-feature-text h3 { font-size: 1.35rem; color: var(--pgfd-primary); margin-bottom: 0.3rem; }
.pgfd-feature-text p { font-size: 1.25rem; color: var(--pgfd-text-light); line-height: 1.4; }

/* ============ Steps ============ */
.pgfd-steps { counter-reset: step; }
.pgfd-step {
  position: relative; padding: 1rem 1rem 1rem 3.6rem;
  background: var(--pgfd-bg-card); border-radius: var(--pgfd-radius-sm);
  margin-bottom: 0.7rem; border-left: 3px solid var(--pgfd-accent);
}
.pgfd-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0.8rem; top: 0.9rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--pgfd-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}
.pgfd-step h3 { font-size: 1.3rem; color: var(--pgfd-primary); margin-bottom: 0.2rem; }
.pgfd-step p { font-size: 1.25rem; color: var(--pgfd-text-light); }

/* ============ Testimonials ============ */
.pgfd-testimonials { display: grid; gap: 0.8rem; }
.pgfd-testimonial {
  background: var(--pgfd-bg-card); border-radius: var(--pgfd-radius-sm);
  padding: 1rem; border: 1px solid var(--pgfd-border);
}
.pgfd-testimonial-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.pgfd-testimonial-avatar {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--pgfd-accent), var(--pgfd-accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.3rem;
}
.pgfd-testimonial-name { font-size: 1.3rem; color: var(--pgfd-primary); font-weight: 700; }
.pgfd-testimonial-stars { color: #FACC15; font-size: 1.1rem; }
.pgfd-testimonial-text { font-size: 1.25rem; color: var(--pgfd-text-light); line-height: 1.4; }

/* ============ Payment / winners ============ */
.pgfd-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pgfd-chip {
  background: var(--pgfd-bg-card); border: 1px solid var(--pgfd-border);
  border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 1.2rem; color: var(--pgfd-text-light);
  display: flex; align-items: center; gap: 0.4rem;
}
.pgfd-chip i { color: var(--pgfd-accent-2); }

.pgfd-winners { display: grid; gap: 0.5rem; }
.pgfd-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--pgfd-bg-card); border-radius: var(--pgfd-radius-sm);
  padding: 0.7rem 1rem; border: 1px solid var(--pgfd-border);
}
.pgfd-winner-name { font-size: 1.25rem; color: var(--pgfd-text-light); }
.pgfd-winner-game { font-size: 1.1rem; color: var(--pgfd-text-muted); }
.pgfd-winner-amount { font-size: 1.3rem; color: var(--pgfd-success); font-weight: 800; }

/* ============ Footer ============ */
.pgfd-footer {
  background: var(--pgfd-bg-alt);
  border-top: 1px solid var(--pgfd-border);
  padding: 2rem 1.2rem 1rem;
  margin-top: 2rem;
}
.pgfd-footer-inner { max-width: 430px; margin: 0 auto; }
.pgfd-footer-brand { font-size: 1.3rem; color: var(--pgfd-text-muted); margin-bottom: 1rem; line-height: 1.5; }
.pgfd-footer-brand strong { color: var(--pgfd-primary); }
.pgfd-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.pgfd-footer-link {
  background: var(--pgfd-bg-card); border: 1px solid var(--pgfd-border);
  border-radius: var(--pgfd-radius-sm); padding: 0.5rem 0.9rem;
  font-size: 1.15rem; color: var(--pgfd-text-light);
}
.pgfd-footer-link:hover { color: var(--pgfd-accent-2); border-color: var(--pgfd-accent); }
.pgfd-footer-copy { font-size: 1.1rem; color: var(--pgfd-text-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--pgfd-border); }

/* ============ Mobile bottom nav ============ */
.pgfd-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 6rem; z-index: 1000;
  background: linear-gradient(180deg, #161B22 0%, #0D1117 100%);
  border-top: 1px solid var(--pgfd-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.5);
}
.pgfd-bottom-nav-btn {
  flex: 1; min-width: 6rem; min-height: 6rem;
  background: transparent; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--pgfd-text-muted);
  transition: color var(--pgfd-transition), transform var(--pgfd-transition);
  padding: 0.4rem;
}
.pgfd-bottom-nav-btn:active { transform: scale(0.92); }
.pgfd-bottom-nav-btn i { font-size: 2.2rem; }
.pgfd-bottom-nav-btn .material-symbols-outlined,
.pgfd-bottom-nav-btn .material-icons { font-size: 2.4rem; }
.pgfd-bottom-nav-btn .bi { font-size: 2.25rem; }
.pgfd-bottom-nav-btn .pgfd-duo-icon { color: var(--pgfd-primary); text-shadow: 1px 1px 0 var(--pgfd-accent); }
.pgfd-bottom-nav-btn span.pgfd-nav-label { font-size: 1rem; line-height: 1.1; }
.pgfd-bottom-nav-btn.pgfd-active { color: var(--pgfd-accent); }
.pgfd-bottom-nav-btn.pgfd-active i { color: var(--pgfd-accent-2); }
.pgfd-bottom-nav-btn:hover { color: var(--pgfd-primary); }
.pgfd-bottom-nav-btn .pgfd-badge {
  position: absolute; top: 0.6rem; right: 1.2rem;
  background: var(--pgfd-accent); color: #fff;
  font-size: 0.9rem; font-weight: 700;
  border-radius: 999px; min-width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center; padding: 0 0.4rem;
}

/* ============ Desktop: hide bottom nav ============ */
@media (min-width: 769px) {
  .pgfd-bottom-nav { display: none; }
  .pgfd-header-inner, .pgfd-mobile-menu-inner, .pgfd-footer-inner { max-width: 768px; }
  .pgfd-container, .pgfd-wrapper { max-width: 768px; }
}

/* ============ Utility ============ */
.pgfd-text-link { color: var(--pgfd-accent-2); font-weight: 700; }
.pgfd-text-link:hover { color: var(--pgfd-accent); text-decoration: underline; }
.pgfd-pill {
  display: inline-block; background: rgba(255,87,34,0.15);
  color: var(--pgfd-accent-2); font-size: 1.1rem; font-weight: 700;
  padding: 0.2rem 0.8rem; border-radius: 999px;
}
.pgfd-hidden { display: none !important; }
.pgfd-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
