/* ============================================================
   sugarplay.homes - sugarplay.css
   Mobile-first (max-width: 430px) PH online casino styling.
   All custom classes / variables use the "pg14-" prefix.
   Palette: #E9ECEF | #708090 | #2F2F2F | #273746
   ============================================================ */

:root {
  --pg14-bg:        #273746;
  --pg14-bg-2:      #2F2F2F;
  --pg14-slate:     #708090;
  --pg14-text:      #E9ECEF;
  --pg14-primary:   #F2B441;
  --pg14-primary-2: #E94560;
  --pg14-accent:    #4DD0E1;
  --pg14-card:      #324154;
  --pg14-card-2:    #3A4A5C;
  --pg14-border:    rgba(233,236,239,0.12);
  --pg14-radius:    14px;
  --pg14-shadow:    0 6px 22px rgba(0,0,0,0.32);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pg14-text);
  background:
    radial-gradient(circle at 12% -10%, rgba(242,180,65,0.12), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(233,69,96,0.12), transparent 50%),
    linear-gradient(180deg, var(--pg14-bg) 0%, var(--pg14-bg-2) 100%);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--pg14-accent); text-decoration: none; }

.pg14-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ===================== HEADER ===================== */
.pg14-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(39,55,70,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--pg14-border);
}
.pg14-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.pg14-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--pg14-text);
  letter-spacing: .3px;
}
.pg14-logo img { width: 28px; height: 28px; border-radius: 8px; }
.pg14-logo .pg14-brand-accent { color: var(--pg14-primary); }

.pg14-spacer { flex: 1; }

.pg14-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  color: #1b1b1b;
}
.pg14-btn:hover { transform: translateY(-1px); }
.pg14-btn-primary { background: linear-gradient(135deg, #F2B441, #F7C948); box-shadow: 0 4px 14px rgba(242,180,65,0.35); }
.pg14-btn-ghost   { background: transparent; color: var(--pg14-text); border: 1px solid var(--pg14-border); }
.pg14-btn-danger  { background: linear-gradient(135deg, #E94560, #FF7A8A); color: #fff; box-shadow: 0 4px 14px rgba(233,69,96,0.35); }
.pg14-btn-sm { min-height: 32px; padding: 0 10px; font-size: 1.25rem; }

.pg14-menu-btn {
  background: transparent;
  border: 1px solid var(--pg14-border);
  color: var(--pg14-text);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ===================== MOBILE MENU ===================== */
.pg14-mobilemenu {
  position: fixed;
  top: 0; right: -86%;
  width: 78%;
  max-width: 360px;
  height: 100vh;
  background: linear-gradient(180deg, #243140, #1f2733);
  z-index: 9999;
  padding: 70px 18px 24px;
  transition: right .28s ease;
  overflow-y: auto;
  box-shadow: -8px 0 28px rgba(0,0,0,0.45);
}
.pg14-mobilemenu.pg14-open { right: 0; }
.pg14-mobilemenu ul { list-style: none; padding: 0; margin: 0; }
.pg14-mobilemenu li { margin: 6px 0; }
.pg14-mobilemenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--pg14-text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--pg14-border);
  font-weight: 600;
}
.pg14-mobilemenu a:hover { background: rgba(242,180,65,0.12); }
.pg14-menu-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; color: var(--pg14-text);
  font-size: 1.8rem; cursor: pointer;
}
.pg14-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
}
.pg14-overlay.pg14-open { opacity: 1; visibility: visible; }

/* ===================== HERO ===================== */
.pg14-main { padding-top: 64px; }
.pg14-hero {
  position: relative;
  margin: 12px;
  border-radius: var(--pg14-radius);
  overflow: hidden;
  box-shadow: var(--pg14-shadow);
  background: var(--pg14-card);
}
.pg14-slides { position: relative; }
.pg14-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.pg14-slide.pg14-active { display: block; }
.pg14-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.pg14-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
}
.pg14-slide-cap h2 {
  margin: 0 0 4px;
  font-size: 1.7rem;
  color: #fff;
}
.pg14-slide-cap p { margin: 0; font-size: 1.25rem; color: var(--pg14-text); }

.pg14-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  text-align: center;
}
.pg14-dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin: 0 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.pg14-dot.pg14-active { background: var(--pg14-primary); transform: scale(1.25); }

/* ===================== SECTION ===================== */
.pg14-section {
  padding: 16px 12px 8px;
}
.pg14-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 12px;
  font-size: 1.7rem;
  font-weight: 800;
}
.pg14-section-title .material-symbols-outlined,
.pg14-section-title i { color: var(--pg14-primary); font-size: 22px; }
.pg14-section-sub { font-size: 1.25rem; color: var(--pg14-slate); margin-bottom: 10px; }

/* ===================== GAME GRID ===================== */
.pg14-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pg14-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pg14-card {
  background: var(--pg14-card);
  border: 1px solid var(--pg14-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pg14-card:hover { transform: translateY(-2px); box-shadow: var(--pg14-shadow); }
.pg14-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #1d2935;
}
.pg14-card-name {
  padding: 6px 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pg14-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg14-card-badge {
  display: inline-block;
  font-size: 1rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--pg14-primary-2);
  color: #fff;
  margin-bottom: 4px;
}

/* ===================== FILTER ===================== */
.pg14-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.pg14-filter::-webkit-scrollbar { display: none; }
.pg14-filter-btn {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--pg14-border);
  background: var(--pg14-card);
  color: var(--pg14-text);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pg14-filter-btn.pg14-active {
  background: linear-gradient(135deg, var(--pg14-primary), #F7C948);
  color: #1b1b1b;
  border-color: transparent;
}

/* ===================== CTA ===================== */
.pg14-cta {
  margin: 18px 12px;
  padding: 18px 14px;
  border-radius: var(--pg14-radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(233,69,96,0.30), transparent 45%),
    linear-gradient(135deg, #2b3c4e, #1f2935);
  border: 1px solid var(--pg14-border);
  text-align: center;
  box-shadow: var(--pg14-shadow);
}
.pg14-cta h3 { margin: 0 0 6px; font-size: 1.8rem; color: #fff; }
.pg14-cta p { margin: 0 0 12px; font-size: 1.25rem; color: var(--pg14-text); }
.pg14-cta-buttons { display: flex; gap: 8px; justify-content: center; }

/* ===================== INFO / FEATURES ===================== */
.pg14-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pg14-feature {
  background: var(--pg14-card);
  border: 1px solid var(--pg14-border);
  border-radius: 12px;
  padding: 14px 12px;
}
.pg14-feature i, .pg14-feature .material-symbols-outlined {
  color: var(--pg14-primary); font-size: 26px;
}
.pg14-feature h4 { margin: 8px 0 4px; font-size: 1.35rem; }
.pg14-feature p { margin: 0; font-size: 1.18rem; color: var(--pg14-slate); line-height: 1.5; }

.pg14-text-block {
  background: var(--pg14-card);
  border: 1px solid var(--pg14-border);
  border-radius: 12px;
  padding: 14px;
  margin: 8px 0;
}
.pg14-text-block h3 { margin: 4px 0 8px; font-size: 1.55rem; color: #fff; }
.pg14-text-block p { margin: 0 0 8px; font-size: 1.22rem; color: var(--pg14-text); line-height: 1.5; }

/* ===================== WINNERS ===================== */
.pg14-winners {
  background: var(--pg14-card);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--pg14-border);
}
.pg14-winner-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--pg14-border);
}
.pg14-winner-row:last-child { border-bottom: none; }
.pg14-winner-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #F2B441, #E94560);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.2rem;
}
.pg14-winner-name { flex: 1; font-size: 1.18rem; color: var(--pg14-text); }
.pg14-winner-amount { font-size: 1.25rem; font-weight: 700; color: var(--pg14-primary); }

/* ===================== PAY ===================== */
.pg14-pay-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pg14-pay-item {
  background: var(--pg14-card);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  border: 1px solid var(--pg14-border);
  font-size: 1.1rem;
  color: var(--pg14-text);
}
.pg14-pay-item i { color: var(--pg14-accent); font-size: 22px; }

/* ===================== TESTIMONIAL ===================== */
.pg14-testimonial {
  background: var(--pg14-card);
  border-left: 3px solid var(--pg14-primary);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.pg14-testimonial p { margin: 0 0 6px; font-size: 1.2rem; color: var(--pg14-text); line-height: 1.5; }
.pg14-testimonial .pg14-stars { color: var(--pg14-primary); font-size: 1.1rem; }
.pg14-testimonial cite { font-size: 1.1rem; color: var(--pg14-slate); font-style: normal; }

/* ===================== FAQ ===================== */
.pg14-faq { margin: 6px 0; }
.pg14-faq-item {
  background: var(--pg14-card);
  border: 1px solid var(--pg14-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.pg14-faq-q {
  padding: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}
.pg14-faq-a {
  padding: 0 12px 12px;
  font-size: 1.18rem;
  color: var(--pg14-text);
  line-height: 1.5;
}

/* ===================== ACHIEVEMENTS / STATS ===================== */
.pg14-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.pg14-stat {
  background: var(--pg14-card);
  border-radius: 10px;
  padding: 12px 6px;
  border: 1px solid var(--pg14-border);
}
.pg14-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--pg14-primary); }
.pg14-stat-label { font-size: 1.05rem; color: var(--pg14-slate); }

/* ===================== FOOTER ===================== */
.pg14-footer {
  margin-top: 24px;
  padding: 20px 14px 30px;
  background: #1c2632;
  border-top: 1px solid var(--pg14-border);
}
.pg14-footer h4 { color: #fff; margin: 0 0 8px; font-size: 1.35rem; }
.pg14-footer p { font-size: 1.18rem; color: var(--pg14-slate); line-height: 1.5; margin: 0 0 12px; }
.pg14-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.pg14-footer-links a {
  background: var(--pg14-card);
  border: 1px solid var(--pg14-border);
  color: var(--pg14-text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 1.15rem;
}
.pg14-footer-links a:hover { color: var(--pg14-primary); }
.pg14-copy { text-align: center; font-size: 1.1rem; color: var(--pg14-slate); margin-top: 12px; }

/* ===================== BOTTOM NAV ===================== */
.pg14-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #2b3c4e, #1f2935);
  border-top: 1px solid var(--pg14-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.32);
}
.pg14-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--pg14-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  position: relative;
  transition: color .15s, transform .15s;
}
.pg14-bottomnav-btn i,
.pg14-bottomnav-btn .material-symbols-outlined {
  font-size: 22px;
}
.pg14-bottomnav-btn span.pg14-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .2px;
}
.pg14-bottomnav-btn:hover { transform: translateY(-2px); }
.pg14-bottomnav-btn:active { color: var(--pg14-primary); transform: scale(0.94); }
.pg14-bottomnav-btn.pg14-current { color: var(--pg14-primary); }
.pg14-bottomnav-btn.pg14-current::after {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 3px;
  background: var(--pg14-primary);
}
.pg14-nav-badge {
  position: absolute;
  top: 6px; right: calc(50% - 24px);
  background: var(--pg14-primary-2);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 5px;
  min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* mobile content clearance for bottom nav */
@media (max-width: 768px) {
  main.pg14-main { padding-bottom: 88px; }
}

/* hide bottom nav on desktop */
@media (min-width: 769px) {
  .pg14-bottomnav { display: none; }
  main.pg14-main { padding-bottom: 30px; }
}

/* reveal animations */
.pg14-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.pg14-reveal.pg14-visible { opacity: 1; transform: translateY(0); }

/* desktop center column for larger screens */
@media (min-width: 431px) {
  body { background-attachment: fixed; }
}

/* utility */
.pg14-mt-8 { margin-top: 8px; }
.pg14-mt-16 { margin-top: 16px; }
.pg14-center { text-align: center; }
.pg14-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pg14-link-text { color: var(--pg14-primary); font-weight: 700; }
.pg14-link-text:hover { text-decoration: underline; }
