/*
 * sz777 link app - style-abcd.css
 * Mobile-first PH casino layout. All custom classes use the sabc- prefix.
 * Palette: #2C3E50 deep slate | #F0FDFF ivory text | #B2DFDB mint accent
 * Supporting tones: #E6B94A gold | #C0392B neon red | #1B2632 deep ink
 */

:root {
  --sabc-bg: #2C3E50;
  --sabc-bg-deep: #1B2632;
  --sabc-bg-soft: #34495E;
  --sabc-text: #F0FDFF;
  --sabc-muted: #B7C5D0;
  --sabc-accent: #B2DFDB;
  --sabc-gold: #E6B94A;
  --sabc-red: #E74C3C;
  --sabc-green: #2ECC71;
  --sabc-card: rgba(240, 253, 255, 0.04);
  --sabc-border: rgba(178, 223, 219, 0.22);
  --sabc-radius: 14px;
}

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

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

body {
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  background: var(--sabc-bg);
  color: var(--sabc-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--sabc-accent); text-decoration: none; }

/* ===== Header ===== */
.sabc-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--sabc-bg-deep);
  border-bottom: 1px solid var(--sabc-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.sabc-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.sabc-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.sabc-brand-text { font-weight: 700; font-size: 1.5rem; color: var(--sabc-text); white-space: nowrap; }
.sabc-brand-text span { color: var(--sabc-gold); }

.sabc-head-actions { display: flex; align-items: center; gap: 0.6rem; }
.sabc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.sabc-btn:active { transform: scale(0.95); }
.sabc-btn-register {
  background: linear-gradient(135deg, #E6B94A, #D4A017);
  color: #1B2632;
  box-shadow: 0 4px 14px rgba(230,185,74,0.4);
}
.sabc-btn-login {
  background: transparent;
  color: var(--sabc-text);
  border: 1px solid var(--sabc-accent);
}
.sabc-icon-btn {
  background: transparent;
  border: none;
  color: var(--sabc-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem;
  display: inline-flex;
}

/* ===== Mobile dropdown menu ===== */
.sabc-mobile-menu {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -100%);
  width: 100%;
  max-width: 430px;
  background: var(--sabc-bg-deep);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  padding: 6rem 1.4rem 1.6rem;
  z-index: 9999;
  transition: transform .3s ease;
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}
.sabc-mobile-menu.sabc-menu-open { transform: translate(-50%, 0); }
.sabc-mobile-menu ul { list-style: none; }
.sabc-mobile-menu li { border-bottom: 1px solid rgba(178,223,219,0.12); }
.sabc-mobile-menu a {
  display: block;
  padding: 1.2rem 0.4rem;
  color: var(--sabc-text);
  font-size: 1.4rem;
  font-weight: 500;
}
.sabc-mobile-menu a:hover { color: var(--sabc-accent); }
.sabc-menu-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--sabc-text);
  font-size: 2rem;
  cursor: pointer;
}

/* ===== Main wrapper ===== */
.sabc-main {
  padding-top: 6rem;
  padding-bottom: 8rem; /* clear bottom nav */
}
.sabc-section { padding: 2rem 1.2rem; }
.sabc-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--sabc-text);
  border-left: 4px solid var(--sabc-gold);
  padding-left: 0.8rem;
}
.sabc-section-title em { font-style: normal; color: var(--sabc-accent); }

/* ===== Hero carousel ===== */
.sabc-hero {
  position: relative;
  border-radius: var(--sabc-radius);
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.sabc-hero-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.sabc-hero-slide.sabc-slide-active { display: block; }
.sabc-hero-slide img {
  width: 100%;
  height: 17rem;
  object-fit: cover;
  border-radius: var(--sabc-radius);
}
.sabc-hero-caption {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(0deg, rgba(27,38,50,0.92), rgba(27,38,50,0));
  padding: 1rem;
  border-radius: 12px;
}
.sabc-hero-caption h2 { font-size: 1.6rem; color: var(--sabc-gold); margin-bottom: 0.3rem; }
.sabc-hero-caption p { font-size: 1.2rem; color: var(--sabc-text); }
.sabc-hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.sabc-hero-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(178,223,219,0.35);
  cursor: pointer;
  border: none;
}
.sabc-hero-dot.sabc-dot-active { background: var(--sabc-gold); }

/* ===== CTA buttons ===== */
.sabc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #E6B94A, #D4A017);
  color: #1B2632;
  font-weight: 700;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(230,185,74,0.45);
}
.sabc-cta-text { color: var(--sabc-gold); font-weight: 700; text-decoration: underline; }

/* ===== Game grid ===== */
.sabc-game-block { margin-bottom: 2rem; }
.sabc-cat-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.sabc-cat-head .sabc-cat-icon {
  width: 3.2rem; height: 3.2rem;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sabc-bg-soft);
  color: var(--sabc-gold);
  font-size: 1.8rem;
}
.sabc-cat-head h2 { font-size: 1.5rem; font-weight: 700; color: var(--sabc-text); }
.sabc-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.sabc-game-tile {
  background: var(--sabc-card);
  border: 1px solid var(--sabc-border);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sabc-game-tile:active { transform: scale(0.96); }
.sabc-game-tile:hover { border-color: var(--sabc-gold); }
.sabc-game-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}
.sabc-game-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--sabc-text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Info / content cards ===== */
.sabc-card {
  background: var(--sabc-card);
  border: 1px solid var(--sabc-border);
  border-radius: var(--sabc-radius);
  padding: 1.4rem;
  margin-bottom: 1.4rem;
}
.sabc-card h3 {
  font-size: 1.5rem;
  color: var(--sabc-gold);
  margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.sabc-card p { color: var(--sabc-muted); margin-bottom: 0.6rem; font-size: 1.3rem; }
.sabc-card ul { padding-left: 1.4rem; color: var(--sabc-muted); }
.sabc-card li { margin-bottom: 0.4rem; font-size: 1.3rem; }

/* ===== RTP compact table ===== */
.sabc-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.sabc-rtp-table th, .sabc-rtp-table td { padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--sabc-border); text-align: left; }
.sabc-rtp-table th { color: var(--sabc-gold); }
.sabc-rtp-table td { color: var(--sabc-text); }
.sabc-rtp-high { color: var(--sabc-green); font-weight: 700; }

/* ===== Testimonials ===== */
.sabc-testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.sabc-testimonial { background: var(--sabc-card); border-left: 3px solid var(--sabc-gold); border-radius: 10px; padding: 1rem; }
.sabc-testimonial p { font-size: 1.2rem; color: var(--sabc-text); margin-bottom: 0.4rem; }
.sabc-testimonial .sabc-author { font-size: 1.1rem; color: var(--sabc-accent); }

/* ===== Payment chips ===== */
.sabc-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sabc-pay-chip {
  background: var(--sabc-card);
  border: 1px solid var(--sabc-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--sabc-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ===== Winners showcase ===== */
.sabc-winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.sabc-winner { background: var(--sabc-card); border: 1px solid var(--sabc-border); border-radius: 10px; padding: 0.8rem; text-align: center; }
.sabc-winner .sabc-winner-name { font-size: 1.15rem; color: var(--sabc-accent); font-weight: 600; }
.sabc-winner .sabc-winner-game { font-size: 1rem; color: var(--sabc-muted); }
.sabc-winner .sabc-winner-amount { font-size: 1.3rem; color: var(--sabc-gold); font-weight: 700; }

/* ===== Footer ===== */
.sabc-footer {
  background: var(--sabc-bg-deep);
  border-top: 1px solid var(--sabc-border);
  padding: 2rem 1.2rem 1.4rem;
  margin-top: 1.5rem;
}
.sabc-footer-brand { font-size: 1.3rem; color: var(--sabc-muted); margin-bottom: 1rem; }
.sabc-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.sabc-footer-promos .sabc-btn {
  padding: 0.5rem 1rem; font-size: 1.15rem;
}
.sabc-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}
.sabc-footer-links a {
  font-size: 1.2rem;
  color: var(--sabc-muted);
}
.sabc-footer-links a:hover { color: var(--sabc-accent); }
.sabc-footer-copy {
  font-size: 1.1rem;
  color: var(--sabc-muted);
  border-top: 1px solid var(--sabc-border);
  padding-top: 0.8rem;
  text-align: center;
}

/* ===== Mobile bottom nav ===== */
.sabc-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: 6rem;
  background: var(--sabc-bg-deep);
  border-top: 1px solid var(--sabc-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.35);
}
.sabc-navbtn {
  flex: 1;
  background: transparent; border: none;
  color: var(--sabc-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem;
  min-width: 6rem; min-height: 6rem;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
  transition: color .2s ease, transform .15s ease;
}
.sabc-navbtn:active { transform: scale(0.92); }
.sabc-navbtn .sabc-nav-icon { font-size: 2.1rem; line-height: 1; }
.sabc-navbtn .sabc-nav-label { font-size: 1rem; }
.sabc-navbtn.sabc-navbtn-active { color: var(--sabc-gold); }
.sabc-navbtn-promo { color: var(--sabc-gold); }
.sabc-navbtn-promo .sabc-nav-icon { background: linear-gradient(135deg,#E6B94A,#D4A017); color:#1B2632; border-radius: 50%; padding: 0.3rem; }

/* ===== Reveal animation ===== */
.sabc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.sabc-reveal.sabc-revealed { opacity: 1; transform: none; }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  body { max-width: 960px; }
  .sabc-bottom-nav { display: none; }
  .sabc-main { padding-bottom: 2rem; }
  .sabc-game-grid { grid-template-columns: repeat(6, 1fr); }
  .sabc-hero-slide img { height: 26rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .sabc-game-grid { grid-template-columns: repeat(4, 1fr); }
  .sabc-winners { grid-template-columns: repeat(3, 1fr); }
}
