/*!
 * pkwin.cyou - Core layout stylesheet
 * Mobile-first HTML5 casino portal, max-width 430px
 * All custom classes use the pgb1- prefix.
 * Palette: #4DB6AC | #1B263B | #8A2BE2 | #F0FDFF | #DDA0DD
 * Dark colors are backgrounds, light colors are text.
 */

:root {
  --pgb1-primary: #4DB6AC;
  --pgb1-bg: #1B263B;
  --pgb1-accent: #8A2BE2;
  --pgb1-text-light: #F0FDFF;
  --pgb1-text-pink: #DDA0DD;
  --pgb1-bg-deep: #131c2e;
  --pgb1-bg-soft: #233047;
  --pgb1-gold: #f4c542;
  --pgb1-radius: 14px;
  --pgb1-radius-sm: 10px;
  --pgb1-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --pgb1-transition: 0.25s ease;
  font-size: 62.5%;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--pgb1-bg);
  color: var(--pgb1-text-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

body.pgb1-no-scroll { overflow: hidden; }

a { color: var(--pgb1-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.pgb1-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}

.pgb1-wrapper { width: 100%; }

/* ===== Header ===== */
.pgb1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1B263B 0%, #131c2e 100%);
  border-bottom: 2px solid var(--pgb1-primary);
  box-shadow: var(--pgb1-shadow);
}

.pgb1-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  min-height: 58px;
}

.pgb1-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--pgb1-text-light);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.pgb1-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.pgb1-logo .pgb1-logo-accent { color: var(--pgb1-primary); }

.pgb1-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pgb1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--pgb1-radius-sm);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.7rem 1.1rem;
  min-height: 40px;
  cursor: pointer;
  transition: transform var(--pgb1-transition), background var(--pgb1-transition), box-shadow var(--pgb1-transition);
  color: var(--pgb1-text-light);
  text-align: center;
}

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

.pgb1-btn-login {
  background: transparent;
  border: 1.5px solid var(--pgb1-primary);
  color: var(--pgb1-primary);
}

.pgb1-btn-register {
  background: linear-gradient(135deg, var(--pgb1-accent), #b35cf0);
  color: var(--pgb1-text-light);
  box-shadow: 0 4px 14px rgba(138, 43, 226, 0.45);
}

.pgb1-btn-register:hover { box-shadow: 0 6px 18px rgba(138, 43, 226, 0.6); }

.pgb1-menu-toggle {
  background: transparent;
  border: none;
  color: var(--pgb1-text-light);
  font-size: 2.1rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}

.pgb1-menu-toggle:hover { background: var(--pgb1-bg-soft); }

/* ===== Mobile slide-down menu ===== */
.pgb1-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--pgb1-bg-deep);
  border-bottom: 2px solid var(--pgb1-accent);
  transform: translateY(-110%);
  transition: transform 0.35s ease;
  padding: 4.5rem 1.2rem 1.4rem;
  max-height: 100vh;
  overflow-y: auto;
}

.pgb1-mobile-menu.pgb1-menu-open { transform: translateY(0); }

.pgb1-mobile-menu-close {
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--pgb1-text-light);
  font-size: 2.4rem;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.pgb1-menu-list { list-style: none; }

.pgb1-menu-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.6rem;
  border-bottom: 1px solid rgba(77, 182, 172, 0.18);
  color: var(--pgb1-text-light);
  font-size: 1.4rem;
  font-weight: 600;
}

.pgb1-menu-item i { color: var(--pgb1-primary); font-size: 1.8rem; width: 24px; text-align: center; }

.pgb1-menu-item:hover { background: var(--pgb1-bg-soft); color: var(--pgb1-primary); }

/* ===== Main / Hero ===== */
main {
  padding-top: 76px;
  padding-bottom: 0;
}

.pgb1-hero {
  position: relative;
  margin: 1rem 0 0.4rem;
  border-radius: var(--pgb1-radius);
  overflow: hidden;
  box-shadow: var(--pgb1-shadow);
}

.pgb1-slides { position: relative; width: 100%; height: 200px; }

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

.pgb1-slide.pgb1-slide-active { opacity: 1; }

.pgb1-slide img { width: 100%; height: 200px; object-fit: cover; }

.pgb1-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(transparent, rgba(19, 28, 46, 0.92));
  color: var(--pgb1-text-light);
  font-size: 1.3rem;
  font-weight: 700;
}

.pgb1-slide-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  display: flex;
  gap: 0.35rem;
}

.pgb1-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 253, 255, 0.5);
  border: none;
  cursor: pointer;
}

.pgb1-slide-dot.pgb1-dot-active { background: var(--pgb1-primary); }

/* ===== Sections ===== */
.pgb1-section {
  margin: 1.4rem 0;
  padding: 1.2rem;
  background: var(--pgb1-bg-soft);
  border-radius: var(--pgb1-radius);
  border-left: 4px solid var(--pgb1-primary);
}

.pgb1-section-accent { border-left-color: var(--pgb1-accent); }
.pgb1-section-gold { border-left-color: var(--pgb1-gold); }

.pgb1-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pgb1-text-light);
  margin-bottom: 0.8rem;
}

.pgb1-section-title i { color: var(--pgb1-primary); font-size: 2rem; }

.pgb1-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0.8rem 0;
  color: var(--pgb1-text-light);
}

.pgb1-h1 .pgb1-h1-accent { color: var(--pgb1-primary); }

.pgb1-lead {
  font-size: 1.35rem;
  color: var(--pgb1-text-pink);
  margin-bottom: 0.8rem;
}

.pgb1-p { margin-bottom: 0.8rem; color: rgba(240, 253, 255, 0.92); }

/* ===== Game grid ===== */
.pgb1-game-group { margin-bottom: 1.2rem; }

.pgb1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.pgb1-grid-4 { grid-template-columns: repeat(4, 1fr); }

.pgb1-card {
  background: var(--pgb1-bg-deep);
  border-radius: var(--pgb1-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(77, 182, 172, 0.2);
  transition: transform var(--pgb1-transition), border-color var(--pgb1-transition);
  display: block;
  text-align: center;
}

.pgb1-card:hover { transform: translateY(-3px); border-color: var(--pgb1-primary); }
.pgb1-card:active { transform: scale(0.97); }

.pgb1-card img { width: 100%; height: 78px; object-fit: cover; }

.pgb1-card-name {
  font-size: 1.05rem;
  padding: 0.35rem 0.3rem 0.5rem;
  color: var(--pgb1-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.pgb1-card-tag {
  display: inline-block;
  font-size: 0.95rem;
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  background: var(--pgb1-accent);
  color: var(--pgb1-text-light);
  margin-bottom: 0.4rem;
}

/* ===== CTA / promo text link ===== */
.pgb1-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.pgb1-cta-btn {
  flex: 1 1 auto;
  min-width: 140px;
  background: linear-gradient(135deg, var(--pgb1-primary), #6dd5cd);
  color: var(--pgb1-bg-deep);
  font-weight: 800;
  padding: 0.9rem 1.2rem;
  border-radius: var(--pgb1-radius-sm);
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
}

.pgb1-cta-btn-accent { background: linear-gradient(135deg, var(--pgb1-accent), #b35cf0); color: var(--pgb1-text-light); }

.pgb1-text-link {
  color: var(--pgb1-text-pink);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.pgb1-text-link:hover { color: var(--pgb1-primary); }

/* ===== Feature list ===== */
.pgb1-feature-list { list-style: none; display: grid; gap: 0.6rem; }

.pgb1-feature-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  background: var(--pgb1-bg-deep);
  border-radius: var(--pgb1-radius-sm);
}

.pgb1-feature-item i { color: var(--pgb1-primary); font-size: 1.8rem; margin-top: 0.2rem; }

/* ===== Testimonials ===== */
.pgb1-testimonial {
  background: var(--pgb1-bg-deep);
  border-radius: var(--pgb1-radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  border-left: 3px solid var(--pgb1-text-pink);
}

.pgb1-testimonial-name { color: var(--pgb1-primary); font-weight: 700; margin-bottom: 0.3rem; }

/* ===== Payment / winners ===== */
.pgb1-chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.pgb1-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 30px;
  background: var(--pgb1-bg-deep);
  border: 1px solid rgba(77, 182, 172, 0.3);
  font-size: 1.15rem;
  color: var(--pgb1-text-light);
}

.pgb1-chip i { color: var(--pgb1-gold); }

.pgb1-winner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: var(--pgb1-bg-deep);
  border-radius: var(--pgb1-radius-sm);
  margin-bottom: 0.45rem;
}

.pgb1-winner i { color: var(--pgb1-gold); font-size: 1.5rem; }

.pgb1-winner-name { flex: 1; font-size: 1.15rem; }
.pgb1-winner-amount { color: var(--pgb1-gold); font-weight: 700; }

/* ===== Footer ===== */
.pgb1-footer {
  margin-top: 1.5rem;
  padding: 1.4rem 1.2rem 1rem;
  background: var(--pgb1-bg-deep);
  border-top: 2px solid var(--pgb1-primary);
}

.pgb1-footer-brand { color: var(--pgb1-text-pink); font-size: 1.2rem; margin-bottom: 0.8rem; }

.pgb1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0.6rem 0 1rem;
}

.pgb1-footer-links a {
  color: var(--pgb1-text-light);
  font-size: 1.15rem;
  text-decoration: underline;
}

.pgb1-footer-links a:hover { color: var(--pgb1-primary); }

.pgb1-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0;
}

.pgb1-footer-promo button {
  background: var(--pgb1-bg-soft);
  color: var(--pgb1-primary);
  border: 1px solid var(--pgb1-primary);
  border-radius: var(--pgb1-radius-sm);
  padding: 0.5rem 0.8rem;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
}

.pgb1-copyright {
  border-top: 1px solid rgba(77, 182, 172, 0.2);
  padding-top: 0.8rem;
  font-size: 1.1rem;
  color: rgba(240, 253, 255, 0.7);
  text-align: center;
}

/* ===== Mobile bottom navigation ===== */
.pgb1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(135deg, #1B263B, #131c2e);
  border-top: 2px solid var(--pgb1-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.4);
}

.pgb1-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pgb1-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  cursor: pointer;
  font-size: 1rem;
  transition: transform var(--pgb1-transition), color var(--pgb1-transition);
  position: relative;
}

.pgb1-bottom-nav-btn i { font-size: 22px; }
.pgb1-bottom-nav-btn .material-symbols-outlined { font-size: 24px; }

.pgb1-bottom-nav-btn:active { transform: scale(0.92); }

.pgb1-bottom-nav-btn:hover { color: var(--pgb1-primary); }

.pgb1-bottom-nav-btn.pgb1-nav-active { color: var(--pgb1-primary); }

.pgb1-bottom-nav-btn.pgb1-nav-active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 30px;
  height: 3px;
  background: var(--pgb1-primary);
  border-radius: 0 0 4px 4px;
}

.pgb1-nav-badge {
  position: absolute;
  top: 6px;
  right: 14px;
  background: var(--pgb1-gold);
  color: var(--pgb1-bg-deep);
  font-size: 0.85rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Back to top ===== */
.pgb1-to-top {
  position: fixed;
  right: 1rem;
  bottom: 76px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pgb1-accent);
  color: var(--pgb1-text-light);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--pgb1-transition);
}

.pgb1-to-top.pgb1-to-top-show { opacity: 1; pointer-events: auto; }

/* ===== Mobile bottom padding for nav clearance ===== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .pgb1-footer { padding-bottom: 1rem; }
}

/* ===== Desktop: hide bottom nav, widen container ===== */
@media (min-width: 769px) {
  .pgb1-bottom-nav { display: none; }
  .pgb1-header-inner { max-width: 760px; }
  .pgb1-container { max-width: 760px; }
  .pgb1-slides, .pgb1-slide img { height: 280px; }
  .pgb1-grid { grid-template-columns: repeat(5, 1fr); }
  .pgb1-grid-4 { grid-template-columns: repeat(6, 1fr); }
  main { padding-bottom: 0; }
}
