/* ============================================================
 * fb 777 link - theme-42a7.css
 * All custom classes use pg42- prefix for namespace isolation.
 * Mobile-first design, max viewport 430px, root font 62.5%.
 * ============================================================ */

/* CSS Variables - palette from site spec with dice-gold accent */
:root {
  --pg42-bg: #1B263B;
  --pg42-bg-alt: #3C3C3C;
  --pg42-bg-dark: #0F1727;
  --pg42-bg-card: #243049;
  --pg42-text: #F8F9FA;
  --pg42-text-muted: #696969;
  --pg42-text-soft: #B8C0CC;
  --pg42-primary: #F5C518;
  --pg42-primary-dark: #C29400;
  --pg42-accent: #E63946;
  --pg42-accent-blue: #2A9DF4;
  --pg42-border: rgba(245, 197, 24, 0.25);
  --pg42-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --pg42-radius: 12px;
  --pg42-radius-sm: 8px;
  --pg42-header-h: 60px;
  --pg42-bottom-nav-h: 64px;
  --pg42-max-w: 430px;
}

/* Reset */
*, *::before, *::after { 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', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--pg42-bg); color: var(--pg42-text); font-size: 1.5rem; line-height: 1.5; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--pg42-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.95rem; } h3 { font-size: 1.7rem; } h4 { font-size: 1.45rem; }
p { margin-bottom: 1rem; }

/* Layout helpers */
.pg42-container { width: 100%; max-width: var(--pg42-max-w); margin: 0 auto; padding: 0 1.2rem; }
.pg42-wrapper { max-width: var(--pg42-max-w); margin: 0 auto; }
.pg42-section { padding: 2.2rem 0; }
.pg42-section-title { font-size: 1.9rem; margin-bottom: 1.2rem; color: var(--pg42-primary); display: flex; align-items: center; gap: 0.8rem; }
.pg42-section-title::before { content: ''; display: inline-block; width: 4px; height: 1.9rem; background: var(--pg42-primary); border-radius: 2px; }

/* Header */
.pg42-header { position: fixed; top: 0; left: 0; right: 0; height: var(--pg42-header-h); background: linear-gradient(180deg, var(--pg42-bg-dark), var(--pg42-bg)); border-bottom: 1px solid var(--pg42-border); z-index: 1000; box-shadow: var(--pg42-shadow); }
.pg42-header-inner { max-width: var(--pg42-max-w); margin: 0 auto; height: 100%; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pg42-logo { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.7rem; color: var(--pg42-primary); flex-shrink: 0; }
.pg42-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg42-logo small { color: var(--pg42-text); font-weight: 600; font-size: 1.1rem; display: block; line-height: 1.1; }
.pg42-header-actions { display: flex; align-items: center; gap: 0.45rem; }

/* Buttons */
.pg42-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem 1.2rem; border-radius: var(--pg42-radius-sm); font-size: 1.35rem; font-weight: 700; min-height: 38px; transition: transform 0.15s, background 0.2s, box-shadow 0.2s; cursor: pointer; text-decoration: none; }
.pg42-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pg42-btn-primary { background: linear-gradient(135deg, var(--pg42-primary), var(--pg42-primary-dark)); color: #1B263B; box-shadow: 0 3px 0 rgba(0,0,0,0.25); }
.pg42-btn-secondary { background: transparent; color: var(--pg42-text); border: 1px solid var(--pg42-primary); }
.pg42-btn-accent { background: linear-gradient(135deg, var(--pg42-accent), #FF6B6B); color: white; }
.pg42-btn-lg { padding: 1.1rem 1.8rem; font-size: 1.6rem; min-height: 48px; }
.pg42-btn-block { width: 100%; display: flex; }
.pg42-menu-toggle { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--pg42-text); font-size: 2rem; }

/* Mobile menu */
.pg42-menu-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.25s; z-index: 9998; }
.pg42-menu-overlay.pg42-active { opacity: 1; visibility: visible; }
.pg42-mobile-menu { position: fixed; top: 0; right: -82%; width: 82%; max-width: 320px; height: 100vh; background: var(--pg42-bg-dark); padding: 4.5rem 1.5rem 2rem; z-index: 9999; transition: right 0.3s ease; overflow-y: auto; }
.pg42-mobile-menu.pg42-menu-open { right: 0; }
.pg42-mobile-menu-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; color: var(--pg42-text); font-size: 1.9rem; }
.pg42-mobile-menu h3 { color: var(--pg42-primary); margin: 1.4rem 0 0.7rem; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--pg42-border); padding-bottom: 0.4rem; }
.pg42-mobile-menu a { display: block; padding: 0.85rem 0.4rem; color: var(--pg42-text); border-bottom: 1px solid rgba(245, 197, 24, 0.08); font-size: 1.4rem; }
.pg42-mobile-menu a:hover { background: rgba(245, 197, 24, 0.08); text-decoration: none; }

/* Main */
.pg42-main { padding-top: calc(var(--pg42-header-h) + 0.8rem); padding-bottom: 2rem; min-height: 60vh; }

/* Hero carousel */
.pg42-carousel { position: relative; border-radius: var(--pg42-radius); overflow: hidden; box-shadow: var(--pg42-shadow); margin-bottom: 1.5rem; }
.pg42-carousel-track { position: relative; height: 185px; }
.pg42-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.55s ease; cursor: pointer; }
.pg42-carousel-slide.pg42-active { opacity: 1; }
.pg42-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg42-carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.85rem 1rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85)); color: var(--pg42-text); font-size: 1.4rem; font-weight: 700; }
.pg42-carousel-caption span { color: var(--pg42-primary); }
.pg42-carousel-dots { position: absolute; bottom: 0.7rem; right: 0.8rem; display: flex; gap: 0.4rem; z-index: 2; }
.pg42-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.2s, width 0.25s; }
.pg42-carousel-dot.pg42-active { background: var(--pg42-primary); width: 22px; border-radius: 4px; }
.pg42-carousel-prev, .pg42-carousel-next { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.45); color: white; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; z-index: 2; }
.pg42-carousel-prev { left: 0.6rem; } .pg42-carousel-next { right: 0.6rem; }

/* Promo banner */
.pg42-promo-banner { background: linear-gradient(135deg, var(--pg42-accent), #FF6B6B); padding: 1.3rem 1.5rem; border-radius: var(--pg42-radius); display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.pg42-promo-banner-text { color: white; font-weight: 700; font-size: 1.45rem; line-height: 1.3; }
.pg42-promo-banner-text small { display: block; font-weight: 500; font-size: 1.15rem; opacity: 0.9; }

/* Grids */
.pg42-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.pg42-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pg42-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Game card */
.pg42-game-card { background: var(--pg42-bg-card); border-radius: var(--pg42-radius-sm); padding: 0.5rem; text-align: center; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s; border: 1px solid transparent; display: block; color: var(--pg42-text); }
.pg42-game-card:hover { transform: translateY(-2px); box-shadow: var(--pg42-shadow); border-color: var(--pg42-border); text-decoration: none; }
.pg42-game-card img { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; margin-bottom: 0.35rem; background: #0F1727; }
.pg42-game-card-name { font-size: 1.15rem; color: var(--pg42-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pg42-game-category-header { display: flex; align-items: center; justify-content: space-between; margin: 1.8rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--pg42-border); }
.pg42-game-category-header h2 { color: var(--pg42-primary); font-size: 1.75rem; display: flex; align-items: center; gap: 0.5rem; }
.pg42-game-category-header .pg42-cat-link { font-size: 1.2rem; color: var(--pg42-text-soft); }

/* Generic card */
.pg42-card { background: var(--pg42-bg-card); border-radius: var(--pg42-radius); padding: 1.4rem; margin-bottom: 1rem; border: 1px solid var(--pg42-border); }
.pg42-card h3 { color: var(--pg42-primary); margin-bottom: 0.6rem; }
.pg42-card p { color: var(--pg42-text-soft); font-size: 1.35rem; }

/* Feature grid */
.pg42-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.pg42-feature { background: var(--pg42-bg-card); padding: 1.1rem 0.8rem; border-radius: var(--pg42-radius-sm); text-align: center; border: 1px solid var(--pg42-border); }
.pg42-feature .pg42-feature-icon { font-size: 2.3rem; color: var(--pg42-primary); margin-bottom: 0.4rem; }
.pg42-feature h3 { font-size: 1.3rem; margin-bottom: 0.3rem; color: var(--pg42-text); }
.pg42-feature p { font-size: 1.2rem; color: var(--pg42-text-muted); margin: 0; line-height: 1.4; }

/* Steps */
.pg42-steps li { display: flex; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pg42-steps li:last-child { border-bottom: none; }
.pg42-step-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--pg42-primary); color: var(--pg42-bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; }
.pg42-step-content h4 { font-size: 1.4rem; margin-bottom: 0.25rem; color: var(--pg42-primary); }
.pg42-step-content p { font-size: 1.3rem; color: var(--pg42-text-soft); margin: 0; }

/* FAQ */
.pg42-faq-item { background: var(--pg42-bg-card); border-radius: var(--pg42-radius-sm); margin-bottom: 0.6rem; padding: 0.95rem 1.1rem; border-left: 3px solid var(--pg42-primary); }
.pg42-faq-item h4 { color: var(--pg42-primary); margin-bottom: 0.35rem; font-size: 1.3rem; }
.pg42-faq-item p { font-size: 1.28rem; color: var(--pg42-text); margin: 0; line-height: 1.5; }

/* Testimonials */
.pg42-testimonial { background: var(--pg42-bg-card); padding: 1.1rem; border-radius: var(--pg42-radius-sm); margin-bottom: 0.7rem; border-left: 3px solid var(--pg42-accent); }
.pg42-testimonial-stars { color: var(--pg42-primary); font-size: 1.2rem; margin-bottom: 0.3rem; }
.pg42-testimonial-quote { font-size: 1.3rem; font-style: italic; margin-bottom: 0.5rem; color: var(--pg42-text); }
.pg42-testimonial-author { font-size: 1.18rem; color: var(--pg42-text-muted); font-weight: 700; }

/* RTP rows */
.pg42-rpt-list { background: var(--pg42-bg-card); border-radius: var(--pg42-radius-sm); padding: 0.4rem 1.1rem; }
.pg42-rtp-row { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 1.3rem; }
.pg42-rtp-row:last-child { border-bottom: none; }
.pg42-rtp-row .pg42-rtp-name { flex: 1; color: var(--pg42-text); }
.pg42-rtp-row .pg42-rtp-value { color: var(--pg42-primary); font-weight: 800; }
.pg42-rtp-bar { flex: 0 0 70px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin: 0 0.8rem; overflow: hidden; }
.pg42-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--pg42-accent), var(--pg42-primary)); border-radius: 3px; }

/* Winners */
.pg42-winner { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pg42-winner:last-child { border-bottom: none; }
.pg42-winner-name { font-weight: 700; color: var(--pg42-text); font-size: 1.3rem; }
.pg42-winner-game { color: var(--pg42-text-muted); font-size: 1.18rem; }
.pg42-winner-amount { color: var(--pg42-primary); font-weight: 800; font-size: 1.3rem; }

/* Payment grid */
.pg42-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.pg42-payment { background: var(--pg42-bg-card); border-radius: var(--pg42-radius-sm); padding: 0.9rem 0.4rem; text-align: center; font-size: 1.15rem; border: 1px solid var(--pg42-border); color: var(--pg42-text-soft); }
.pg42-payment i, .pg42-payment .material-icons { font-size: 2.1rem; color: var(--pg42-primary); margin-bottom: 0.25rem; }

/* App download CTA */
.pg42-app-cta { background: linear-gradient(135deg, var(--pg42-bg-card), var(--pg42-bg-dark)); padding: 1.6rem; border-radius: var(--pg42-radius); text-align: center; border: 1px solid var(--pg42-border); margin-bottom: 1rem; }
.pg42-app-cta h3 { color: var(--pg42-primary); margin-bottom: 0.5rem; font-size: 1.7rem; }
.pg42-app-cta p { color: var(--pg42-text-soft); font-size: 1.3rem; }
.pg42-app-buttons { display: flex; gap: 0.55rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }

/* Inline promo link */
.pg42-promo-link { color: var(--pg42-primary); font-weight: 700; cursor: pointer; text-decoration: underline; }
.pg42-promo-link:hover { color: var(--pg42-accent); }

/* Icon list */
.pg42-icon-list { display: flex; flex-direction: column; gap: 0.5rem; }
.pg42-icon-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 1.3rem; color: var(--pg42-text-soft); }
.pg42-icon-list i, .pg42-icon-list .material-icons { color: var(--pg42-primary); font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }

/* Footer */
.pg42-footer { background: var(--pg42-bg-dark); padding: 2rem 1.2rem 1rem; margin-top: 2rem; border-top: 1px solid var(--pg42-border); }
.pg42-footer-brand { font-size: 1.3rem; color: var(--pg42-text-soft); margin-bottom: 1rem; line-height: 1.6; }
.pg42-footer h4 { color: var(--pg42-primary); margin: 1.2rem 0 0.5rem; font-size: 1.3rem; }
.pg42-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.pg42-footer-links a { color: var(--pg42-text); font-size: 1.22rem; padding: 0.25rem 0; }
.pg42-footer-promos { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.pg42-footer-promos .pg42-btn { font-size: 1.18rem; padding: 0.5rem 0.8rem; }
.pg42-footer-copy { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem; font-size: 1.12rem; color: var(--pg42-text-muted); text-align: center; }

/* Bottom navigation */
.pg42-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--pg42-bottom-nav-h); background: linear-gradient(180deg, var(--pg42-bg-dark), #050A15); border-top: 1px solid var(--pg42-border); display: flex; justify-content: space-around; align-items: stretch; z-index: 1000; box-shadow: 0 -4px 20px rgba(0,0,0,0.4); }
.pg42-bottom-nav-btn { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--pg42-text-muted); font-size: 1rem; font-weight: 600; min-width: 60px; transition: color 0.2s, transform 0.15s; border-top: 3px solid transparent; text-decoration: none; padding: 0; }
.pg42-bottom-nav-btn i, .pg42-bottom-nav-btn .material-icons, .pg42-bottom-nav-btn .material-icons-outlined, .pg42-bottom-nav-btn .material-icons-two-tone, .pg42-bottom-nav-btn ion-icon { font-size: 2.2rem; }
.pg42-bottom-nav-btn:hover { color: var(--pg42-text); transform: scale(1.05); text-decoration: none; }
.pg42-bottom-nav-btn.pg42-nav-current { color: var(--pg42-primary); border-top-color: var(--pg42-primary); }

/* Responsive media queries */
@media (min-width: 769px) { .pg42-bottom-nav { display: none; } }
@media (max-width: 768px) {
  .pg42-main { padding-bottom: calc(var(--pg42-bottom-nav-h) + 1.5rem); }
  .pg42-footer { padding-bottom: calc(var(--pg42-bottom-nav-h) + 1rem); }
}
@media (max-width: 360px) {
  .pg42-grid { grid-template-columns: repeat(2, 1fr); }
  .pg42-header-actions .pg42-btn { padding: 0.5rem 0.8rem; font-size: 1.2rem; }
  .pg42-carousel-track { height: 160px; }
}

/* Reveal-on-scroll animation */
.pg42-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.pg42-reveal.pg42-visible { opacity: 1; transform: translateY(0); }

/* Utilities */
.pg42-text-center { text-align: center; }
.pg42-text-primary { color: var(--pg42-primary); }
.pg42-text-accent { color: var(--pg42-accent); }
.pg42-text-muted { color: var(--pg42-text-muted); }
.pg42-text-soft { color: var(--pg42-text-soft); }
.pg42-mt-1 { margin-top: 0.5rem; } .pg42-mt-2 { margin-top: 1rem; } .pg42-mt-3 { margin-top: 1.5rem; }
.pg42-mb-0 { margin-bottom: 0; } .pg42-mb-1 { margin-bottom: 0.5rem; } .pg42-mb-2 { margin-bottom: 1rem; }
.pg42-hidden { display: none; }
.pg42-badge { display: inline-block; background: var(--pg42-accent); color: white; padding: 0.18rem 0.55rem; border-radius: 10px; font-size: 1.05rem; font-weight: 700; }
.pg42-badge-gold { background: var(--pg42-primary); color: var(--pg42-bg); }
