/* =====================================================================
   AO 88 - style.css (mobile-first, max-width: 430px)
   Palette: #FFB3FF | #0E1621 | #FFDFBA | #FF91A4
   All custom classes use the pg76- prefix.
   ===================================================================== */

:root {
  --pg76-primary: #FF91A4;     /* pink accent */
  --pg76-secondary: #FFB3FF;   /* light pink */
  --pg76-cream: #FFDFBA;       /* warm cream */
  --pg76-bg: #0E1621;          /* dark navy background */
  --pg76-bg-soft: #16202E;
  --pg76-text: #FFFFFF;
  --pg76-text-muted: #C7D0DC;
  --pg76-border: #243245;
  --pg76-success: #4ADE80;
  --pg76-gold: #FFD56B;
  --pg76-radius: 14px;
  --pg76-header-h: 56px;
  --pg76-bottom-nav-h: 62px;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--pg76-bg);
  color: var(--pg76-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

a { color: var(--pg76-secondary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Page container (mobile-first 430px cap) ---------- */
.pg76-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg76-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.pg76-container {
  width: 100%;
  max-width: 430px;
  padding: 0 1.4rem;
}

main { padding-bottom: 84px; } /* clearance for fixed bottom nav */

/* ---------- Header ---------- */
.pg76-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--pg76-bg-soft), #1a1322);
  border-bottom: 1px solid var(--pg76-border);
}

.pg76-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg76-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  gap: 0.8rem;
}

.pg76-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--pg76-text);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.3px;
}
.pg76-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg76-logo b { color: var(--pg76-primary); }

.pg76-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg76-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1.2rem;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  color: #1a0b10;
  background: var(--pg76-primary);
}
.pg76-btn:active { transform: scale(0.94); }
.pg76-btn-login { background: var(--pg76-secondary); color: #2a0830; }
.pg76-btn-ghost {
  background: transparent;
  border: 1px solid var(--pg76-secondary);
  color: var(--pg76-secondary);
}
.pg76-btn-block {
  display: flex;
  width: 100%;
  min-height: 44px;
  font-size: 1.5rem;
}

.pg76-menu-toggle {
  background: transparent;
  border: none;
  color: var(--pg76-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  display: inline-flex;
  align-items: center;
}

/* ---------- Mobile slide-down menu ---------- */
.pg76-mobile-menu {
  position: fixed;
  top: var(--pg76-header-h);
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg76-bg-soft);
  border-bottom: 1px solid var(--pg76-border);
  padding: 1rem 1.4rem 1.4rem;
  z-index: 9999;
  transform: translateY(-130%);
  transition: transform 0.25s ease;
  max-height: 75vh;
  overflow-y: auto;
}
.pg76-mobile-menu.pg76-menu-open { transform: translateY(0); }
.pg76-mobile-menu a {
  display: block;
  padding: 1rem 0.8rem;
  border-bottom: 1px solid var(--pg76-border);
  color: var(--pg76-text);
  font-size: 1.4rem;
}
.pg76-mobile-menu a:active { background: rgba(255,145,164,0.12); }

/* ---------- Carousel ---------- */
.pg76-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  border-radius: var(--pg76-radius);
  overflow: hidden;
  margin-top: 1rem;
}
.pg76-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.pg76-slide.pg76-slide-active { display: block; }
.pg76-slide img { width: 100%; height: 190px; object-fit: cover; }
.pg76-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(14,22,33,0.92));
  font-size: 1.3rem;
  font-weight: 600;
}
.pg76-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.pg76-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.pg76-dot.pg76-dot-active { background: var(--pg76-primary); }

/* ---------- Section ---------- */
.pg76-section {
  padding: 1.6rem 0;
}
.pg76-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--pg76-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg76-section-title i { color: var(--pg76-primary); }
.pg76-section-title small {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--pg76-text-muted);
}

.pg76-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 1.2rem 0 0.8rem;
  color: var(--pg76-text);
}
.pg76-h1 b { color: var(--pg76-primary); }

.pg76-lead {
  font-size: 1.4rem;
  color: var(--pg76-text-muted);
  margin-bottom: 1rem;
}

/* ---------- Hero CTA ---------- */
.pg76-hero {
  background: radial-gradient(circle at top right, rgba(255,179,255,0.18), transparent 60%),
              linear-gradient(180deg, #1a1322, var(--pg76-bg));
  padding: 1.6rem 1.4rem;
  border-radius: var(--pg76-radius);
  margin: 1rem 0;
}
.pg76-hero p { color: var(--pg76-text-muted); margin: 0.6rem 0 1rem; font-size: 1.35rem; }

/* ---------- Game grid ---------- */
.pg76-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.6rem 0 0.8rem;
}
.pg76-cat-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pg76-primary);
}
.pg76-cat-head .pg76-cat-tag {
  font-size: 1.1rem;
  color: var(--pg76-text-muted);
  background: rgba(255,145,164,0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.pg76-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pg76-grid-cols4 { grid-template-columns: repeat(4, 1fr); }

.pg76-game-card {
  background: var(--pg76-bg-soft);
  border: 1px solid var(--pg76-border);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.pg76-game-card:active {
  transform: scale(0.95);
  border-color: var(--pg76-primary);
}
.pg76-game-card img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}
.pg76-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--pg76-text);
  line-height: 1.25;
  min-height: 2.6em;
  overflow: hidden;
}

/* ---------- Feature / card list ---------- */
.pg76-card {
  background: var(--pg76-bg-soft);
  border: 1px solid var(--pg76-border);
  border-radius: var(--pg76-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.pg76-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--pg76-cream);
  margin-bottom: 0.5rem;
}
.pg76-card p { font-size: 1.3rem; color: var(--pg76-text-muted); }
.pg76-card .pg76-inline-link {
  color: var(--pg76-primary);
  font-weight: 700;
}

.pg76-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.pg76-feature {
  background: var(--pg76-bg-soft);
  border: 1px solid var(--pg76-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.pg76-feature i { font-size: 2.2rem; color: var(--pg76-primary); }
.pg76-feature h4 { font-size: 1.25rem; margin: 0.4rem 0 0.2rem; color: var(--pg76-text); }
.pg76-feature p { font-size: 1.1rem; color: var(--pg76-text-muted); }

/* ---------- RTP table ---------- */
.pg76-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
}
.pg76-rtp-table th, .pg76-rtp-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--pg76-border);
  text-align: left;
}
.pg76-rtp-table th { color: var(--pg76-cream); font-weight: 700; }
.pg76-rtp-table td.pg76-rtp-high { color: var(--pg76-success); font-weight: 700; }

/* ---------- Testimonials ---------- */
.pg76-testimonial {
  background: var(--pg76-bg-soft);
  border-left: 3px solid var(--pg76-primary);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.pg76-testimonial p { font-size: 1.25rem; color: var(--pg76-text); font-style: italic; }
.pg76-testimonial .pg76-author { font-size: 1.1rem; color: var(--pg76-text-muted); margin-top: 0.4rem; }

/* ---------- Payment / winners ---------- */
.pg76-pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg76-pill {
  background: var(--pg76-bg-soft);
  border: 1px solid var(--pg76-border);
  color: var(--pg76-text);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pg76-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  background: var(--pg76-bg-soft);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.pg76-winner b { color: var(--pg76-gold); }

/* ---------- Text promo link ---------- */
.pg76-text-link {
  color: var(--pg76-primary);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.pg76-footer {
  background: var(--pg76-bg-soft);
  border-top: 1px solid var(--pg76-border);
  padding: 1.6rem 1.4rem 2rem;
  margin-top: 1.6rem;
}
.pg76-footer p { color: var(--pg76-text-muted); font-size: 1.2rem; margin-bottom: 0.8rem; }
.pg76-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin: 0.6rem 0 1rem;
}
.pg76-footer-links a {
  color: var(--pg76-text);
  font-size: 1.15rem;
  background: var(--pg76-bg);
  border: 1px solid var(--pg76-border);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}
.pg76-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.pg76-footer-copy { font-size: 1.1rem; color: var(--pg76-text-muted); }

/* ---------- Bottom fixed nav (mobile) ---------- */
.pg76-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg76-bottom-nav-h);
  background: linear-gradient(180deg, #1a1322, #0b1018);
  border-top: 1px solid var(--pg76-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pg76-bottom-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--pg76-text-muted);
  font-size: 1.05rem;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pg76-bottom-nav-link i {
  font-size: 22px;
}
.pg76-bottom-nav-link:active { transform: scale(0.9); }
.pg76-bottom-nav-link.pg76-nav-current { color: var(--pg76-primary); }
.pg76-bottom-nav-link.pg76-nav-promo { color: var(--pg76-gold); }
.pg76-bottom-nav-link.pg76-nav-promo i { filter: drop-shadow(0 0 6px rgba(255,213,107,0.6)); }

/* ---------- Utilities ---------- */
.pg76-text-center { text-align: center; }
.pg76-mt-1 { margin-top: 0.6rem; }
.pg76-mt-2 { margin-top: 1.2rem; }
.pg76-hidden { display: none !important; }
.pg76-divider { height: 1px; background: var(--pg76-border); margin: 1rem 0; }

/* ---------- Desktop: hide bottom nav, expand wrapper ---------- */
@media (min-width: 769px) {
  .pg76-bottom-nav { display: none; }
  main { padding-bottom: 24px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 360px) {
  .pg76-grid { grid-template-columns: repeat(2, 1fr); }
  .pg76-h1 { font-size: 1.8rem; }
}
