/* ============================================================
   ABC Link - layout-4906.css
   Mobile-first HTML5 casino landing stylesheet.
   All custom classes use the pg49- namespace.
   Palette: #FFFACD | #006400 | #E9ECEF | #1A1A2E
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --pg49-bg: #1A1A2E;
  --pg49-bg-soft: #20203c;
  --pg49-bg-deep: #12121f;
  --pg49-card: #262648;
  --pg49-card-alt: #2f2f56;
  --pg49-primary: #006400;
  --pg49-primary-bright: #1f9d2c;
  --pg49-primary-deep: #004a00;
  --pg49-gold: #FFFACD;
  --pg49-gold-strong: #ffd84d;
  --pg49-cream: #FFFACD;
  --pg49-gray: #E9ECEF;
  --pg49-gray-dim: #a9adbb;
  --pg49-text: #FFFACD;
  --pg49-text-soft: #E9ECEF;
  --pg49-border: rgba(255, 250, 205, 0.14);
  --pg49-border-strong: rgba(255, 250, 205, 0.28);
  --pg49-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --pg49-radius: 14px;
  --pg49-radius-sm: 10px;
  --pg49-maxw: 430px;
  --pg49-header-h: 58px;
  --pg49-bottomnav-h: 64px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--pg49-bg);
  color: var(--pg49-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--pg49-gold-strong); text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout primitives ---------- */
.pg49-wrapper { width: 100%; max-width: var(--pg49-maxw); margin: 0 auto; background: var(--pg49-bg); min-height: 100vh; position: relative; }
.pg49-container { width: 100%; padding: 0 1.4rem; }
.pg49-section { padding: 2.4rem 0 1.6rem; }
.pg49-section--alt { background: linear-gradient(180deg, var(--pg49-bg-soft) 0%, var(--pg49-bg) 100%); }

/* ---------- Typography ---------- */
.pg49-h1 { font-size: 2.4rem; line-height: 3rem; font-weight: 800; color: var(--pg49-gold-strong); letter-spacing: 0.3px; margin-bottom: 1rem; }
.pg49-h2 { font-size: 2rem; line-height: 2.6rem; font-weight: 700; color: var(--pg49-gold); margin-bottom: 1.2rem; position: relative; padding-left: 1.2rem; }
.pg49-h2::before { content: ""; position: absolute; left: 0; top: 0.3rem; bottom: 0.3rem; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--pg49-gold-strong), var(--pg49-primary-bright)); }
.pg49-h3 { font-size: 1.7rem; line-height: 2.2rem; font-weight: 700; color: var(--pg49-cream); margin: 1.4rem 0 0.8rem; }
.pg49-text { color: var(--pg49-text-soft); font-size: 1.4rem; line-height: 2.2rem; }
.pg49-text--muted { color: var(--pg49-gray-dim); font-size: 1.3rem; }
.pg49-eyebrow { display: inline-block; font-size: 1.15rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--pg49-gold-strong); font-weight: 700; margin-bottom: 0.6rem; }

/* ---------- Buttons / promo links ---------- */
.pg49-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1.4rem; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.pg49-btn:active { transform: scale(0.96); }
.pg49-btn--primary { background: linear-gradient(135deg, var(--pg49-primary-bright), var(--pg49-primary)); color: var(--pg49-gold); box-shadow: 0 6px 16px rgba(0, 100, 0, 0.45); }
.pg49-btn--gold { background: linear-gradient(135deg, var(--pg49-gold-strong), #ffba2e); color: var(--pg49-bg-deep); box-shadow: 0 6px 16px rgba(255, 216, 77, 0.35); }
.pg49-btn--ghost { background: transparent; border: 1.5px solid var(--pg49-border-strong); color: var(--pg49-cream); }
.pg49-btn--block { display: flex; width: 100%; }
.pg49-link-text { color: var(--pg49-gold-strong); font-weight: 700; border-bottom: 1.5px dashed rgba(255, 216, 77, 0.55); padding-bottom: 1px; transition: color 0.18s; }
.pg49-link-text:active { color: var(--pg49-gold); }
.pg49-promo-pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1.1rem; border-radius: 999px; background: rgba(0, 100, 0, 0.28); color: var(--pg49-gold); border: 1px solid rgba(255, 250, 205, 0.25); font-size: 1.3rem; font-weight: 600; }

/* ---------- Header ---------- */
.pg49-header { position: sticky; top: 0; z-index: 1000; background: rgba(18, 18, 31, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pg49-border); }
.pg49-header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--pg49-header-h); padding: 0 1.2rem; gap: 0.8rem; }
.pg49-brand { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.pg49-brand-logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--pg49-gold-strong), var(--pg49-primary-bright)); display: flex; align-items: center; justify-content: center; color: var(--pg49-bg-deep); font-weight: 900; font-size: 1.5rem; }
.pg49-brand-name { font-size: 1.6rem; font-weight: 800; color: var(--pg49-gold-strong); white-space: nowrap; }
.pg49-brand-name span { color: var(--pg49-text-soft); font-weight: 500; font-size: 1.2rem; }
.pg49-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pg49-icon-btn { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 250, 205, 0.06); border: 1px solid var(--pg49-border); color: var(--pg49-cream); font-size: 2rem; }
.pg49-icon-btn:active { background: rgba(255, 250, 205, 0.12); }
.pg49-btn-login { padding: 0 1rem; height: 36px; border-radius: 999px; border: 1.5px solid var(--pg49-gold-strong); color: var(--pg49-gold-strong); font-weight: 700; font-size: 1.25rem; }
.pg49-btn-register { padding: 0 1rem; height: 36px; border-radius: 999px; background: linear-gradient(135deg, var(--pg49-gold-strong), #ffba2e); color: var(--pg49-bg-deep); font-weight: 800; font-size: 1.25rem; box-shadow: 0 4px 10px rgba(255, 216, 77, 0.3); }

/* ---------- Mobile menu ---------- */
.pg49-menu-overlay { position: fixed; inset: 0; background: rgba(8, 8, 16, 0.7); z-index: 9998; opacity: 0; visibility: hidden; transition: opacity 0.25s; }
.pg49-menu-overlay.pg49-is-open { opacity: 1; visibility: visible; }
.pg49-menu { position: fixed; top: 0; right: -80%; width: 80%; max-width: 320px; height: 100vh; background: var(--pg49-bg-deep); z-index: 9999; transition: right 0.3s ease; padding: 1.6rem; overflow-y: auto; border-left: 1px solid var(--pg49-border); }
.pg49-menu.pg49-is-open { right: 0; }
.pg49-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.pg49-menu-title { font-size: 1.6rem; font-weight: 800; color: var(--pg49-gold-strong); }
.pg49-menu-close { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 250, 205, 0.08); color: var(--pg49-cream); font-size: 1.8rem; }
.pg49-menu-link { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1rem; border-radius: var(--pg49-radius-sm); color: var(--pg49-text-soft); font-weight: 600; font-size: 1.35rem; border-bottom: 1px solid var(--pg49-border); }
.pg49-menu-link:active { background: rgba(0, 100, 0, 0.25); }
.pg49-menu-link i { color: var(--pg49-gold-strong); }
.pg49-menu-cta { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* ---------- Hero carousel ---------- */
.pg49-hero { padding: 1.2rem 0 0.4rem; }
.pg49-carousel { position: relative; border-radius: var(--pg49-radius); overflow: hidden; box-shadow: var(--pg49-shadow); }
.pg49-carousel-track { display: flex; transition: transform 0.45s ease; }
.pg49-slide { min-width: 100%; position: relative; }
.pg49-slide-img { width: 100%; height: 200px; object-fit: cover; }
.pg49-slide-cap { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%); padding: 1.6rem 1rem 0.8rem; border-radius: 0 0 var(--pg49-radius) var(--pg49-radius); }
.pg49-slide-cap h2 { color: var(--pg49-gold-strong); font-size: 1.8rem; margin: 0 0 0.3rem; padding: 0; }
.pg49-slide-cap h2::before { display: none; }
.pg49-slide-cap p { color: var(--pg49-cream); font-size: 1.2rem; }
.pg49-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.9rem 0 0.2rem; }
.pg49-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 250, 205, 0.3); transition: all 0.25s; }
.pg49-dot.pg49-active { width: 22px; border-radius: 5px; background: var(--pg49-gold-strong); }

/* ---------- Stats bar ---------- */
.pg49-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 1.2rem; }
.pg49-stat { background: var(--pg49-card); border: 1px solid var(--pg49-border); border-radius: var(--pg49-radius-sm); padding: 0.9rem 0.6rem; text-align: center; }
.pg49-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--pg49-gold-strong); }
.pg49-stat-label { font-size: 1.1rem; color: var(--pg49-gray-dim); margin-top: 0.2rem; }

/* ---------- Game grid ---------- */
.pg49-cat-head { display: flex; align-items: center; justify-content: space-between; margin: 1.8rem 0 1rem; }
.pg49-cat-head h2 { margin: 0; }
.pg49-cat-tag { font-size: 1.1rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(0, 100, 0, 0.3); color: var(--pg49-gold); border: 1px solid rgba(255, 250, 205, 0.2); }
.pg49-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.pg49-game-card { background: var(--pg49-card); border: 1px solid var(--pg49-border); border-radius: var(--pg49-radius-sm); overflow: hidden; transition: transform 0.18s, box-shadow 0.18s; position: relative; }
.pg49-game-card:active { transform: scale(0.96); box-shadow: 0 6px 14px rgba(0, 100, 0, 0.35); }
.pg49-game-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--pg49-bg-deep); }
.pg49-game-name { padding: 0.5rem 0.4rem; font-size: 1.1rem; font-weight: 600; text-align: center; color: var(--pg49-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg49-game-badge { position: absolute; top: 5px; left: 5px; background: linear-gradient(135deg, #ff5b5b, #b30000); color: #fff; font-size: 0.95rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 6px; }

/* ---------- Generic cards ---------- */
.pg49-card { background: var(--pg49-card); border: 1px solid var(--pg49-border); border-radius: var(--pg49-radius); padding: 1.4rem; box-shadow: var(--pg49-shadow); }
.pg49-card-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pg49-feature-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: var(--pg49-radius-sm); background: rgba(255, 250, 205, 0.04); border: 1px solid var(--pg49-border); }
.pg49-feature-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, var(--pg49-primary-bright), var(--pg49-primary)); display: flex; align-items: center; justify-content: center; color: var(--pg49-gold); font-size: 2rem; }
.pg49-feature-row h3 { margin: 0 0 0.3rem; font-size: 1.4rem; }
.pg49-feature-row p { margin: 0; font-size: 1.25rem; color: var(--pg49-text-soft); line-height: 1.9rem; }

/* ---------- Steps ---------- */
.pg49-steps { display: grid; gap: 0.8rem; counter-reset: step; }
.pg49-step { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: var(--pg49-radius-sm); background: var(--pg49-card); border: 1px solid var(--pg49-border); }
.pg49-step-num { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--pg49-gold-strong), var(--pg49-primary-bright)); color: var(--pg49-bg-deep); font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
.pg49-step h3 { margin: 0 0 0.2rem; font-size: 1.35rem; }
.pg49-step p { margin: 0; font-size: 1.2rem; color: var(--pg49-text-soft); line-height: 1.8rem; }

/* ---------- Winners ticker ---------- */
.pg49-winner-list { display: grid; gap: 0.6rem; }
.pg49-winner { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem; border-radius: var(--pg49-radius-sm); background: var(--pg49-card); border: 1px solid var(--pg49-border); }
.pg49-winner-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--pg49-gold-strong), var(--pg49-primary-bright)); display: flex; align-items: center; justify-content: center; color: var(--pg49-bg-deep); font-weight: 800; font-size: 1.2rem; }
.pg49-winner-meta { flex: 1; min-width: 0; }
.pg49-winner-name { font-size: 1.2rem; font-weight: 700; color: var(--pg49-cream); }
.pg49-winner-game { font-size: 1.05rem; color: var(--pg49-gray-dim); }
.pg49-winner-amount { font-size: 1.3rem; font-weight: 800; color: var(--pg49-gold-strong); }

/* ---------- RTP bars ---------- */
.pg49-rtp-row { margin-bottom: 1rem; }
.pg49-rtp-top { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 0.3rem; }
.pg49-rtp-name { color: var(--pg49-cream); font-weight: 600; }
.pg49-rtp-val { color: var(--pg49-gold-strong); font-weight: 700; }
.pg49-rtp-bar { height: 8px; border-radius: 5px; background: rgba(255, 250, 205, 0.1); overflow: hidden; }
.pg49-rtp-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--pg49-primary-bright), var(--pg49-gold-strong)); }

/* ---------- Testimonials ---------- */
.pg49-testimonial { padding: 1.1rem; border-radius: var(--pg49-radius-sm); background: var(--pg49-card); border: 1px solid var(--pg49-border); margin-bottom: 0.9rem; }
.pg49-testi-stars { color: var(--pg49-gold-strong); font-size: 1.3rem; margin-bottom: 0.4rem; }
.pg49-testi-text { font-size: 1.25rem; color: var(--pg49-text-soft); line-height: 1.9rem; font-style: italic; }
.pg49-testi-author { margin-top: 0.6rem; font-size: 1.15rem; color: var(--pg49-gold); font-weight: 600; }

/* ---------- Payment chips ---------- */
.pg49-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.pg49-pay-chip { background: var(--pg49-card); border: 1px solid var(--pg49-border); border-radius: var(--pg49-radius-sm); padding: 0.9rem 0.5rem; text-align: center; font-size: 1.15rem; color: var(--pg49-text-soft); font-weight: 600; }
.pg49-pay-chip i { display: block; font-size: 2rem; color: var(--pg49-gold-strong); margin-bottom: 0.3rem; }

/* ---------- FAQ ---------- */
.pg49-faq { background: var(--pg49-card); border: 1px solid var(--pg49-border); border-radius: var(--pg49-radius-sm); margin-bottom: 0.7rem; overflow: hidden; }
.pg49-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 1rem 1.2rem; font-size: 1.3rem; font-weight: 700; color: var(--pg49-cream); text-align: left; }
.pg49-faq-q i { color: var(--pg49-gold-strong); transition: transform 0.25s; }
.pg49-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.2rem; }
.pg49-faq-a-inner { padding-bottom: 1rem; font-size: 1.2rem; color: var(--pg49-text-soft); line-height: 1.9rem; }
.pg49-faq.pg49-is-open .pg49-faq-a { max-height: 320px; }
.pg49-faq.pg49-is-open .pg49-faq-q i { transform: rotate(45deg); }

/* ---------- CTA banner ---------- */
.pg49-cta { background: linear-gradient(135deg, var(--pg49-primary) 0%, var(--pg49-bg-soft) 100%); border: 1px solid var(--pg49-border-strong); border-radius: var(--pg49-radius); padding: 1.6rem; text-align: center; }
.pg49-cta h3 { color: var(--pg49-gold-strong); margin-top: 0; }
.pg49-cta p { color: var(--pg49-cream); margin-bottom: 1.2rem; font-size: 1.25rem; }

/* ---------- Footer ---------- */
.pg49-footer { background: var(--pg49-bg-deep); border-top: 1px solid var(--pg49-border); padding: 2.4rem 0 calc(var(--pg49-bottomnav-h) + 2.4rem); margin-top: 2.4rem; }
.pg49-footer-brand { font-size: 1.6rem; font-weight: 800; color: var(--pg49-gold-strong); margin-bottom: 0.6rem; }
.pg49-footer-desc { font-size: 1.2rem; color: var(--pg49-gray-dim); line-height: 1.8rem; margin-bottom: 1.2rem; }
.pg49-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.pg49-footer-links a { font-size: 1.15rem; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--pg49-card); border: 1px solid var(--pg49-border); color: var(--pg49-text-soft); }
.pg49-footer-links a:active { background: rgba(0, 100, 0, 0.3); }
.pg49-footer-copy { font-size: 1.1rem; color: var(--pg49-gray-dim); border-top: 1px solid var(--pg49-border); padding-top: 1rem; line-height: 1.7rem; }

/* ---------- Mobile bottom nav ---------- */
.pg49-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; height: var(--pg49-bottomnav-h); background: linear-gradient(180deg, rgba(18, 18, 31, 0.98), rgba(8, 8, 16, 1)); border-top: 1px solid var(--pg49-border); display: flex; justify-content: space-around; align-items: stretch; padding-bottom: env(safe-area-inset-bottom); }
.pg49-bottomnav-btn { flex: 1; min-width: 60px; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; color: var(--pg49-gray-dim); transition: color 0.2s, transform 0.18s; position: relative; }
.pg49-bottomnav-btn i { font-size: 22px; }
.pg49-bottomnav-btn span { font-size: 10px; font-weight: 600; }
.pg49-bottomnav-btn:active { transform: scale(0.92); }
.pg49-bottomnav-btn.pg49-active { color: var(--pg49-gold-strong); }
.pg49-bottomnav-btn.pg49-active::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--pg49-gold-strong); }
.pg49-bottomnav-btn--promo { color: var(--pg49-gold); }
.pg49-bottomnav-btn--promo i { background: linear-gradient(135deg, var(--pg49-gold-strong), var(--pg49-primary-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Helpers ---------- */
.pg49-mt-8 { margin-top: 0.8rem; }
.pg49-mt-12 { margin-top: 1.2rem; }
.pg49-mt-16 { margin-top: 1.6rem; }
.pg49-center { text-align: center; }
.pg49-row { display: flex; gap: 0.8rem; align-items: center; }
.pg49-row--between { justify-content: space-between; }
.pg49-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

/* ---------- Desktop / wider screens ---------- */
@media (min-width: 769px) {
  .pg49-bottomnav { display: none; }
  .pg49-footer { padding-bottom: 2.4rem; }
  .pg49-wrapper { max-width: 960px; box-shadow: 0 0 40px rgba(0, 0, 0, 0.5); }
  .pg49-game-grid { grid-template-columns: repeat(6, 1fr); }
  .pg49-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .pg49-pay-grid { grid-template-columns: repeat(6, 1fr); }
  body { background: #0c0c18; }
}

/* Mobile bottom padding so content is not hidden behind nav */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .pg49-footer { padding-bottom: calc(var(--pg49-bottomnav-h) + 2.4rem); }
}
