/* ph799 styles - prefix: pg79- */
/* Palette: bg #1B263B | text #ECF0F1 | accent #DEB887 | muted #95A5A6 | subtle #D3D3D3 */

:root {
  --pg79-primary: #1B263B;
  --pg79-bg: #1B263B;
  --pg79-bg-soft: #243049;
  --pg79-bg-card: #2c3a57;
  --pg79-text: #ECF0F1;
  --pg79-text-muted: #95A5A6;
  --pg79-accent: #DEB887;
  --pg79-accent-dark: #c29d68;
  --pg79-subtle: #D3D3D3;
  --pg79-border: #3a4a6b;
  --pg79-success: #2ecc71;
  --pg79-danger: #e74c3c;
  --pg79-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --pg79-radius: 14px;
}

/* Root font sizing - 62.5% base for rem units */
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pg79-text);
  background: var(--pg79-bg);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pg79-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pg79-text); }
button { font-family: inherit; cursor: pointer; border: none; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--pg79-text); }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* ============ Layout ============ */
.pg79-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg79-wrapper { padding: 1rem 1.2rem; }
.pg79-section { padding: 2rem 1.2rem; }
.pg79-section--alt { background: var(--pg79-bg-soft); }

/* ============ Header ============ */
.pg79-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, rgba(27, 38, 59, 0.98), rgba(27, 38, 59, 0.92));
  border-bottom: 1px solid var(--pg79-border);
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.pg79-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; gap: 0.6rem;
}
.pg79-logo { display: flex; align-items: center; gap: 0.55rem; color: var(--pg79-text); }
.pg79-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg79-logo-text { font-size: 1.7rem; font-weight: 800; letter-spacing: 0.5px; color: var(--pg79-accent); }
.pg79-logo-text span { color: var(--pg79-text); }
.pg79-header-actions { display: flex; align-items: center; gap: 0.45rem; }
.pg79-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.1rem; border-radius: 999px;
  font-size: 1.35rem; font-weight: 700; min-height: 36px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.pg79-btn:active { transform: scale(0.94); }
.pg79-btn--login { background: transparent; color: var(--pg79-text); border: 1.5px solid var(--pg79-accent); }
.pg79-btn--register {
  background: linear-gradient(135deg, var(--pg79-accent), var(--pg79-accent-dark));
  color: var(--pg79-primary); box-shadow: 0 3px 10px rgba(222, 184, 135, 0.35);
}
.pg79-menu-toggle {
  background: transparent; color: var(--pg79-text);
  width: 38px; height: 38px; font-size: 2rem; display: flex; align-items: center; justify-content: center;
}

/* ============ Mobile dropdown menu ============ */
.pg79-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
  height: 100vh; background: var(--pg79-bg-soft);
  padding: 5rem 1.5rem 2rem; z-index: 9999;
  transition: right .3s ease; overflow-y: auto;
  border-left: 1px solid var(--pg79-border);
}
.pg79-mobile-menu.pg79-open { right: 0; }
.pg79-mobile-menu h4 { color: var(--pg79-accent); margin: 1.2rem 0 0.6rem; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px; }
.pg79-mobile-menu a {
  display: block; padding: 0.85rem 0.5rem;
  color: var(--pg79-text); border-bottom: 1px solid var(--pg79-border);
  font-size: 1.4rem;
}
.pg79-mobile-menu a:hover { color: var(--pg79-accent); padding-left: 1rem; }
.pg79-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.pg79-menu-overlay.pg79-show { opacity: 1; visibility: visible; }
.pg79-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; color: var(--pg79-text); font-size: 2.4rem; line-height: 1;
}

/* ============ Hero Carousel ============ */
.pg79-carousel {
  position: relative; margin-top: 56px; overflow: hidden;
  border-bottom: 1px solid var(--pg79-border);
}
.pg79-slide {
  position: relative; display: none; cursor: pointer;
}
.pg79-slide.pg79-active { display: block; }
.pg79-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pg79-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.2rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(27, 38, 59, 0.92));
}
.pg79-slide-overlay h2 { font-size: 2rem; color: var(--pg79-accent); margin-bottom: 0.3rem; }
.pg79-slide-overlay p { font-size: 1.3rem; color: var(--pg79-text); margin-bottom: 0; }
.pg79-dots {
  position: absolute; bottom: 0.6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem; z-index: 2;
}
.pg79-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(236, 240, 241, 0.4); transition: all .25s ease; cursor: pointer;
}
.pg79-dot.pg79-active { background: var(--pg79-accent); width: 22px; border-radius: 4px; }

/* ============ Main / Sections ============ */
main { padding-bottom: 80px; }
.pg79-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.pg79-section-title h2 { font-size: 1.9rem; display: flex; align-items: center; gap: 0.6rem; }
.pg79-section-title h2 i { color: var(--pg79-accent); }
.pg79-section-title .pg79-more { font-size: 1.25rem; color: var(--pg79-accent); }

/* ============ Game grid ============ */
.pg79-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pg79-game-card {
  background: var(--pg79-bg-card); border-radius: var(--pg79-radius);
  overflow: hidden; cursor: pointer;
  border: 1px solid var(--pg79-border);
  transition: transform .15s ease, box-shadow .2s ease;
  position: relative;
}
.pg79-game-card:active { transform: scale(0.95); }
.pg79-game-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #1a2236;
}
.pg79-game-name {
  padding: 0.5rem 0.6rem; font-size: 1.15rem; font-weight: 600;
  color: var(--pg79-text); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pg79-game-card:hover .pg79-game-name { color: var(--pg79-accent); }
.pg79-game-badge {
  position: absolute; top: 0.35rem; left: 0.35rem;
  background: var(--pg79-accent); color: var(--pg79-primary);
  font-size: 0.95rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 6px; z-index: 1;
}
.pg79-cat-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 2.2rem 0 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg79-accent);
}
.pg79-cat-header i { font-size: 1.8rem; color: var(--pg79-accent); }
.pg79-cat-header h3 { font-size: 1.7rem; color: var(--pg79-text); }
.pg79-cat-header small { color: var(--pg79-text-muted); font-size: 1.15rem; margin-left: auto; }

/* ============ Cards / content ============ */
.pg79-card {
  background: var(--pg79-bg-card); border-radius: var(--pg79-radius);
  padding: 1.3rem; border: 1px solid var(--pg79-border);
  box-shadow: var(--pg79-shadow);
}
.pg79-card h3 { color: var(--pg79-accent); margin-bottom: 0.6rem; }
.pg79-card p { color: var(--pg79-subtle); font-size: 1.35rem; }

.pg79-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
.pg79-feature {
  background: var(--pg79-bg-soft); border-radius: 10px; padding: 1rem;
  text-align: center; border: 1px solid var(--pg79-border);
}
.pg79-feature .pg79-feature-icon {
  width: 44px; height: 44px; margin: 0 auto 0.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(222, 184, 135, 0.15);
  color: var(--pg79-accent); font-size: 2rem;
}
.pg79-feature h4 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.pg79-feature p { font-size: 1.15rem; color: var(--pg79-text-muted); margin: 0; }

/* ============ CTA banner ============ */
.pg79-cta {
  background: linear-gradient(135deg, var(--pg79-accent), var(--pg79-accent-dark));
  border-radius: var(--pg79-radius); padding: 1.6rem 1.3rem;
  text-align: center; color: var(--pg79-primary);
  box-shadow: var(--pg79-shadow);
}
.pg79-cta h3 { color: var(--pg79-primary); margin-bottom: 0.4rem; font-size: 1.9rem; }
.pg79-cta p { color: rgba(27, 38, 59, 0.85); margin-bottom: 1rem; font-size: 1.3rem; }
.pg79-cta .pg79-btn { background: var(--pg79-primary); color: var(--pg79-text); }
.pg79-cta .pg79-btn:hover { color: var(--pg79-accent); }

/* ============ Promo text link ============ */
.pg79-text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--pg79-accent); font-weight: 700; cursor: pointer;
  border-bottom: 1.5px solid transparent; padding-bottom: 1px;
}
.pg79-text-link:hover { border-bottom-color: var(--pg79-accent); color: var(--pg79-text); }

/* ============ FAQ ============ */
.pg79-faq-item {
  background: var(--pg79-bg-card); border-radius: 10px;
  margin-bottom: 0.7rem; overflow: hidden; border: 1px solid var(--pg79-border);
}
.pg79-faq-item summary {
  padding: 1rem 1.2rem; cursor: pointer; font-weight: 600;
  color: var(--pg79-text); list-style: none; font-size: 1.35rem;
  display: flex; justify-content: space-between; align-items: center;
}
.pg79-faq-item summary::-webkit-details-marker { display: none; }
.pg79-faq-item summary::after { content: '+'; color: var(--pg79-accent); font-size: 1.8rem; line-height: 1; }
.pg79-faq-item[open] summary::after { content: '−'; }
.pg79-faq-item p { padding: 0 1.2rem 1rem; color: var(--pg79-subtle); font-size: 1.3rem; margin: 0; }

/* ============ Testimonials ============ */
.pg79-testimonials { display: grid; gap: 0.8rem; }
.pg79-testimonial {
  background: var(--pg79-bg-card); border-radius: 10px; padding: 1rem 1.2rem;
  border-left: 3px solid var(--pg79-accent); border-top: 1px solid var(--pg79-border);
  border-right: 1px solid var(--pg79-border); border-bottom: 1px solid var(--pg79-border);
}
.pg79-testimonial .pg79-stars { color: var(--pg79-accent); font-size: 1.2rem; margin-bottom: 0.4rem; }
.pg79-testimonial p { font-size: 1.3rem; color: var(--pg79-subtle); margin-bottom: 0.5rem; }
.pg79-testimonial .pg79-author { font-size: 1.15rem; color: var(--pg79-text-muted); font-weight: 600; }

/* ============ Payment / app download ============ */
.pg79-pay-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pg79-pay-chip {
  background: var(--pg79-bg-soft); border: 1px solid var(--pg79-border);
  border-radius: 8px; padding: 0.6rem 0.9rem; font-size: 1.2rem; color: var(--pg79-subtle);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.pg79-app-cta {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  background: var(--pg79-bg-soft); border-radius: var(--pg79-radius); padding: 1.3rem;
  border: 1px solid var(--pg79-border);
}
.pg79-app-cta .pg79-app-text { flex: 1; min-width: 60%; }
.pg79-app-cta h3 { color: var(--pg79-accent); margin-bottom: 0.3rem; }
.pg79-app-cta p { font-size: 1.25rem; color: var(--pg79-subtle); margin-bottom: 0.8rem; }
.pg79-app-buttons { display: flex; flex-direction: column; gap: 0.5rem; }
.pg79-app-btn {
  background: var(--pg79-primary); color: var(--pg79-text);
  border: 1px solid var(--pg79-border); border-radius: 8px;
  padding: 0.6rem 1rem; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 0.5rem;
}

/* ============ Winners ticker ============ */
.pg79-winners { background: var(--pg79-bg-soft); border-radius: 10px; padding: 0.6rem 1rem; border: 1px solid var(--pg79-border); }
.pg79-winner-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 1.25rem; border-bottom: 1px dashed var(--pg79-border); }
.pg79-winner-row:last-child { border-bottom: none; }
.pg79-winner-name { color: var(--pg79-text); font-weight: 600; }
.pg79-winner-amount { color: var(--pg79-accent); font-weight: 700; }

/* ============ Footer ============ */
.pg79-footer {
  background: #141c2e; border-top: 1px solid var(--pg79-border);
  padding: 2rem 1.2rem 1.5rem;
}
.pg79-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-bottom: 1.5rem; }
.pg79-footer-col h4 { color: var(--pg79-accent); margin-bottom: 0.7rem; font-size: 1.3rem; }
.pg79-footer-col a { display: block; padding: 0.3rem 0; color: var(--pg79-subtle); font-size: 1.2rem; }
.pg79-footer-col a:hover { color: var(--pg79-accent); }
.pg79-footer-brand { color: var(--pg79-text-muted); font-size: 1.2rem; margin-bottom: 1rem; line-height: 1.6; }
.pg79-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0;
}
.pg79-footer-promo .pg79-btn { padding: 0.5rem 0.9rem; font-size: 1.15rem; }
.pg79-footer-bottom {
  text-align: center; padding-top: 1rem; border-top: 1px solid var(--pg79-border);
  color: var(--pg79-text-muted); font-size: 1.1rem;
}

/* ============ Mobile bottom navigation ============ */
.pg79-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: rgba(20, 28, 46, 0.98);
  border-top: 1px solid var(--pg79-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000; backdrop-filter: blur(8px);
}
.pg79-nav-btn {
  flex: 1; background: transparent; color: var(--pg79-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 60px; min-height: 60px; padding: 0.3rem;
  transition: color .2s ease, transform .15s ease; position: relative;
}
.pg79-nav-btn i, .pg79-nav-btn span.material-icons-outlined, .pg79-nav-btn ion-icon { font-size: 22px; }
.pg79-nav-btn .pg79-nav-label { font-size: 1.05rem; line-height: 1; }
.pg79-nav-btn:active { transform: scale(0.9); }
.pg79-nav-btn.pg79-current { color: var(--pg79-accent); }
.pg79-nav-btn.pg79-current::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; background: var(--pg79-accent); border-radius: 0 0 3px 3px;
}
.pg79-nav-btn--promo {
  color: var(--pg79-accent); background: rgba(222, 184, 135, 0.08);
}

/* ============ Reveal animation ============ */
.pg79-reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.pg79-reveal.pg79-visible { opacity: 1; transform: translateY(0); }

/* ============ Desktop: hide bottom nav ============ */
@media (min-width: 769px) {
  .pg79-bottom-nav { display: none; }
  body { max-width: 430px; }
  main { padding-bottom: 2rem; }
}

/* ============ Small screens fine-tune ============ */
@media (max-width: 360px) {
  .pg79-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .pg79-game-name { font-size: 1rem; padding: 0.35rem 0.3rem; }
  h1 { font-size: 2rem; }
}
