/* ph465 - design.css
   Mobile-first gaming website styles.
   All custom classes use the g13a- prefix.
   Color palette: #FF69B4 (primary) | #2E4057 (dark bg) | #FFC0CB | #F5F5F5 | #FFDFBA
*/

:root {
  --g13a-primary: #FF69B4;
  --g13a-bg: #2E4057;
  --g13a-soft: #FFC0CB;
  --g13a-light: #F5F5F5;
  --g13a-gold: #FFDFBA;
  --g13a-dark2: #243648;
  --g13a-text: #F5F5F5;
  --g13a-muted: #c9d4e0;
  --g13a-radius: 12px;
  --g13a-header-h: 56px;
  --g13a-bnav-h: 60px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  background: var(--g13a-bg);
  color: var(--g13a-text);
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Layout ---------- */
.g13a-wrapper { max-width: 430px; margin: 0 auto; position: relative; }
.g13a-container { width: 100%; padding: 0 1.2rem; }
.g13a-section { padding: 2rem 0; }
.g13a-section-alt { background: var(--g13a-dark2); }

main { padding-bottom: calc(var(--g13a-bnav-h) + 24px); }

/* ---------- Header ---------- */
.g13a-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--g13a-header-h);
  background: linear-gradient(90deg, var(--g13a-bg), var(--g13a-dark2));
  border-bottom: 2px solid var(--g13a-primary);
  z-index: 1000;
  display: flex; align-items: center;
}
.g13a-header-inner {
  max-width: 430px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.g13a-brand { display: flex; align-items: center; gap: 0.6rem; }
.g13a-logo { width: 28px; height: 28px; border-radius: 6px; }
.g13a-brand-name {
  font-size: 1.8rem; font-weight: 800; color: var(--g13a-primary);
  letter-spacing: 0.5px;
}
.g13a-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.g13a-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 20px; padding: 0.7rem 1.3rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  min-height: 36px; transition: transform 0.15s, opacity 0.15s;
}
.g13a-btn:active { transform: scale(0.95); }
.g13a-btn-primary { background: var(--g13a-primary); color: #fff; }
.g13a-btn-outline {
  background: transparent; color: var(--g13a-light);
  border: 1.5px solid var(--g13a-primary);
}
.g13a-btn-gold { background: var(--g13a-gold); color: var(--g13a-bg); }
.g13a-btn-lg { padding: 1rem 2rem; font-size: 1.5rem; border-radius: 26px; }
.g13a-text-link {
  color: var(--g13a-primary); font-weight: 700; cursor: pointer;
}
.g13a-menu-btn {
  background: transparent; border: none; color: var(--g13a-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem 0.6rem;
}

/* ---------- Mobile expandable menu ---------- */
.g13a-mobile-menu {
  position: fixed; top: var(--g13a-header-h); left: 0; right: 0;
  background: var(--g13a-dark2);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  z-index: 9999; border-bottom: 2px solid var(--g13a-primary);
}
.g13a-mobile-menu.g13a-menu-open { max-height: 460px; }
.g13a-mobile-menu ul { list-style: none; margin: 0; padding: 0.4rem 0; }
.g13a-mobile-menu li a {
  display: block; padding: 1.1rem 1.4rem; color: var(--g13a-light);
  font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.g13a-mobile-menu li a:active { background: rgba(255,105,180,0.15); }

/* ---------- Carousel ---------- */
.g13a-carousel {
  position: relative; margin-top: var(--g13a-header-h);
  width: 100%; overflow: hidden; aspect-ratio: 16/9;
  background: var(--g13a-dark2);
}
.g13a-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s;
  display: flex; align-items: center; justify-content: center;
}
.g13a-slide img { width: 100%; height: 100%; object-fit: cover; }
.g13a-slide.g13a-slide-active { opacity: 1; }
.g13a-slide-cta {
  position: absolute; bottom: 12%; left: 8%; right: 8%;
  background: rgba(46,64,87,0.78); padding: 0.8rem 1rem; border-radius: 10px;
  border: 1px solid var(--g13a-primary); color: #fff; font-size: 1.3rem;
  font-weight: 600; text-align: center;
}
.g13a-dots {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.g13a-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
}
.g13a-dot.g13a-dot-active { background: var(--g13a-primary); }

/* ---------- Headings ---------- */
.g13a-h1 {
  font-size: 2.2rem; font-weight: 800; color: var(--g13a-light);
  margin: 1.6rem 0 0.6rem; line-height: 1.4;
}
.g13a-h2 {
  font-size: 1.9rem; font-weight: 700; color: var(--g13a-primary);
  margin: 1.6rem 0 0.8rem; line-height: 1.4;
  border-left: 4px solid var(--g13a-gold); padding-left: 0.8rem;
}
.g13a-h3 {
  font-size: 1.6rem; font-weight: 700; color: var(--g13a-gold);
  margin: 1.2rem 0 0.4rem;
}
.g13a-lead { color: var(--g13a-muted); font-size: 1.4rem; line-height: 1.6; }
.g13a-p { color: var(--g13a-muted); font-size: 1.4rem; line-height: 1.6; margin: 0.6rem 0; }

/* ---------- Category filter chips ---------- */
.g13a-cat-bar {
  display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.8rem 0;
  scrollbar-width: none;
}
.g13a-cat-bar::-webkit-scrollbar { display: none; }
.g13a-cat-btn {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 18px;
  background: var(--g13a-dark2); color: var(--g13a-light);
  border: 1px solid rgba(255,105,180,0.3); font-size: 1.2rem; font-weight: 600;
  cursor: pointer;
}
.g13a-cat-btn.g13a-cat-btn-active {
  background: var(--g13a-primary); color: #fff; border-color: var(--g13a-primary);
}

/* ---------- Game grid ---------- */
.g13a-cat-group { margin: 1.2rem 0; }
.g13a-cat-title {
  font-size: 1.5rem; font-weight: 700; color: var(--g13a-gold);
  margin: 1rem 0 0.6rem; display: flex; align-items: center; gap: 0.5rem;
}
.g13a-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.g13a-game {
  display: flex; flex-direction: column; align-items: center;
  background: var(--g13a-dark2); border-radius: 10px; padding: 0.5rem;
  cursor: pointer; transition: transform 0.15s, border-color 0.15s;
  border: 1px solid rgba(255,255,255,0.05);
}
.g13a-game:active { transform: scale(0.95); border-color: var(--g13a-primary); }
.g13a-game img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.g13a-game-name {
  font-size: 1rem; color: var(--g13a-light); text-align: center;
  margin-top: 0.3rem; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}

/* ---------- Cards ---------- */
.g13a-card {
  background: var(--g13a-dark2); border-radius: var(--g13a-radius);
  padding: 1.2rem; margin: 0.8rem 0;
  border: 1px solid rgba(255,105,180,0.15);
}
.g13a-card-accent { border-left: 4px solid var(--g13a-primary); }
.g13a-card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem;
}
.g13a-mini-card {
  background: rgba(255,255,255,0.04); border-radius: 10px; padding: 0.8rem;
  text-align: center;
}
.g13a-mini-card .label { font-size: 1.1rem; color: var(--g13a-muted); }
.g13a-mini-card .value { font-size: 1.6rem; font-weight: 800; color: var(--g13a-primary); }

/* ---------- Feature list ---------- */
.g13a-feature {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.g13a-feature .icon { color: var(--g13a-primary); font-size: 2rem; flex: 0 0 auto; }
.g13a-feature .title { font-weight: 700; color: var(--g13a-light); font-size: 1.3rem; }
.g13a-feature .desc { color: var(--g13a-muted); font-size: 1.2rem; line-height: 1.5; }

/* ---------- Testimonials ---------- */
.g13a-testimonial {
  background: var(--g13a-dark2); border-radius: 10px; padding: 1rem;
  margin: 0.6rem 0; border-left: 3px solid var(--g13a-gold);
}
.g13a-testimonial .who { color: var(--g13a-primary); font-weight: 700; font-size: 1.2rem; }
.g13a-testimonial .stars { color: var(--g13a-gold); font-size: 1.2rem; }
.g13a-testimonial .quote { color: var(--g13a-muted); font-size: 1.3rem; line-height: 1.5; margin-top: 0.3rem; }

/* ---------- Payment / winners ---------- */
.g13a-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.g13a-pill {
  background: var(--g13a-dark2); border: 1px solid var(--g13a-primary);
  color: var(--g13a-light); border-radius: 16px; padding: 0.5rem 1rem;
  font-size: 1.2rem; font-weight: 600;
}
.g13a-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,223,186,0.08); border-radius: 8px; padding: 0.6rem 0.9rem;
  margin: 0.4rem 0; font-size: 1.2rem;
}
.g13a-winner .name { color: var(--g13a-light); font-weight: 600; }
.g13a-winner .amt { color: var(--g13a-gold); font-weight: 800; }

/* ---------- CTA strip ---------- */
.g13a-cta {
  background: linear-gradient(135deg, var(--g13a-primary), #ff8fc7);
  border-radius: 14px; padding: 1.4rem; text-align: center; margin: 1.2rem 0;
}
.g13a-cta h3 { color: #fff; margin: 0 0 0.4rem; font-size: 1.7rem; }
.g13a-cta p { color: rgba(255,255,255,0.92); margin: 0 0 0.8rem; font-size: 1.3rem; }
.g13a-cta .g13a-btn { background: #fff; color: var(--g13a-primary); }

/* ---------- Footer ---------- */
.g13a-footer {
  background: var(--g13a-dark2); padding: 2rem 0 1.5rem;
  border-top: 2px solid var(--g13a-primary); margin-top: 1.5rem;
}
.g13a-footer-brand { color: var(--g13a-muted); font-size: 1.25rem; line-height: 1.6; margin-bottom: 1rem; }
.g13a-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.8rem 0;
}
.g13a-footer-links a { color: var(--g13a-light); font-size: 1.2rem; }
.g13a-footer-links a:hover { color: var(--g13a-primary); }
.g13a-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0;
}
.g13a-footer-copy { color: var(--g13a-muted); font-size: 1.1rem; margin-top: 0.8rem; }

/* ---------- Bottom nav ---------- */
.g13a-bnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--g13a-bnav-h);
  background: linear-gradient(180deg, var(--g13a-dark2), #1a2837);
  border-top: 2px solid var(--g13a-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; max-width: 430px; margin: 0 auto;
}
.g13a-bnav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: none; border: none; color: var(--g13a-muted);
  font-size: 1rem; cursor: pointer; min-width: 60px; min-height: 60px;
  transition: color 0.15s, transform 0.15s;
}
.g13a-bnav-btn .ic { font-size: 22px; }
.g13a-bnav-btn:active { transform: scale(0.9); }
.g13a-bnav-btn.g13a-bnav-active { color: var(--g13a-primary); }
.g13a-bnav-btn.g13a-bnav-active .ic { color: var(--g13a-gold); }
.g13a-bnav-badge {
  position: absolute; top: 6px; right: 18px; background: var(--g13a-primary);
  color: #fff; font-size: 0.9rem; border-radius: 10px; padding: 0 5px; min-width: 16px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .g13a-bnav { display: none; }
  main { padding-bottom: 24px; }
  .g13a-wrapper { max-width: 900px; }
  .g13a-grid { grid-template-columns: repeat(6, 1fr); }
  .g13a-card-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Utility */
.g13a-center { text-align: center; }
.g13a-mt { margin-top: 1.2rem; }
.g13a-mb { margin-bottom: 1.2rem; }
.g13a-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
