/* ============================================================
   pp99.homes - Core stylesheet (design.css)
   All classes use s7a3- prefix for namespace isolation
   Palette: #273746 (deep) | #FF91A4 (pink accent) | #FFCCCB (soft pink)
   Mobile-first | root font 62.5% -> 1rem = 10px
   ============================================================ */

:root {
  --s7a3-primary: #FF91A4;
  --s7a3-primary-dark: #e8788c;
  --s7a3-soft: #FFCCCB;
  --s7a3-bg: #273746;
  --s7a3-bg-deep: #1d2a35;
  --s7a3-bg-light: #324656;
  --s7a3-text: #f5f7fa;
  --s7a3-text-muted: #c9d3dc;
  --s7a3-gold: #f4c869;
  --s7a3-green: #5ad19a;
  --s7a3-radius: 14px;
  --s7a3-shadow: 0 6px 20px rgba(0,0,0,0.28);
  --s7a3-header-h: 56px;
  --s7a3-bottom-h: 62px;
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background: var(--s7a3-bg);
  color: var(--s7a3-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--s7a3-primary); text-decoration: none; }
a:hover { color: var(--s7a3-soft); }

.s7a3-no-scroll { overflow: hidden; }

/* ---------- Layout ---------- */
.s7a3-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.s7a3-wrapper { min-height: 100vh; padding-bottom: 70px; }

main { padding-top: calc(var(--s7a3-header-h) + 4px); }

/* ---------- Header ---------- */
.s7a3-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--s7a3-header-h);
  background: linear-gradient(90deg, var(--s7a3-bg-deep) 0%, var(--s7a3-bg-light) 100%);
  border-bottom: 2px solid var(--s7a3-primary);
  display: flex; align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.s7a3-header-inner { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; }
.s7a3-logo { display: flex; align-items: center; gap: 0.6rem; }
.s7a3-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s7a3-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--s7a3-primary); letter-spacing: 0.5px; }
.s7a3-logo-text span { color: var(--s7a3-soft); }
.s7a3-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s7a3-menu-toggle { background: transparent; border: 0; color: var(--s7a3-text); font-size: 2rem; cursor: pointer; padding: 0.4rem; line-height: 1; }

.s7a3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border: 0; border-radius: 20px; padding: 0.6rem 1.2rem; font-size: 1.25rem; font-weight: 700; cursor: pointer; transition: transform .15s, background .2s; min-height: 36px; }
.s7a3-btn:active { transform: scale(0.96); }
.s7a3-btn-login { background: transparent; color: var(--s7a3-text); border: 1.5px solid var(--s7a3-primary); }
.s7a3-btn-register { background: linear-gradient(90deg, var(--s7a3-primary), var(--s7a3-primary-dark)); color: #2a1a1f; box-shadow: 0 3px 10px rgba(255,145,164,0.45); }
.s7a3-btn-register:hover { color: #2a1a1f; filter: brightness(1.08); }
.s7a3-btn-ghost { background: rgba(255,145,164,0.12); color: var(--s7a3-primary); border: 1px solid rgba(255,145,164,0.4); }

/* ---------- Mobile expandable menu ---------- */
.s7a3-mobile-menu {
  position: fixed; top: var(--s7a3-header-h); left: 0; right: 0; z-index: 9999;
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  background: var(--s7a3-bg-deep); border-bottom: 2px solid var(--s7a3-primary);
  width: 100%; max-width: 430px; margin: 0 auto;
}
.s7a3-menu-open { max-height: 480px; box-shadow: 0 10px 24px rgba(0,0,0,0.45); }
.s7a3-mobile-menu ul { list-style: none; padding: 0.6rem 1rem 1rem; }
.s7a3-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.s7a3-mobile-menu a { display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 0.4rem; color: var(--s7a3-text); font-size: 1.4rem; font-weight: 600; }
.s7a3-mobile-menu a i { color: var(--s7a3-primary); width: 22px; text-align: center; }
.s7a3-mobile-menu a:hover { color: var(--s7a3-soft); }

/* ---------- Carousel ---------- */
.s7a3-carousel { position: relative; width: 100%; max-width: 430px; margin: 0 auto 1.6rem; border-radius: var(--s7a3-radius); overflow: hidden; box-shadow: var(--s7a3-shadow); }
.s7a3-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; cursor: pointer; }
.s7a3-slide img { width: 100%; height: 200px; object-fit: cover; }
.s7a3-slide-active { opacity: 1; position: relative; }
.s7a3-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(39,55,70,0.92)); color: #fff; }
.s7a3-slide-cap h2 { font-size: 1.6rem; margin-bottom: 0.2rem; color: var(--s7a3-soft); }
.s7a3-slide-cap p { font-size: 1.15rem; color: var(--s7a3-text-muted); }
.s7a3-carousel-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.s7a3-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: 0; cursor: pointer; padding: 0; }
.s7a3-dot-active { background: var(--s7a3-primary); width: 22px; border-radius: 4px; }

/* ---------- Section & headings ---------- */
.s7a3-section { padding: 1.6rem 0; }
.s7a3-section-title { font-size: 1.9rem; font-weight: 800; color: var(--s7a3-soft); margin-bottom: 0.4rem; padding-left: 0.8rem; border-left: 4px solid var(--s7a3-primary); }
.s7a3-section-sub { font-size: 1.2rem; color: var(--s7a3-text-muted); margin-bottom: 1.2rem; padding-left: 0.8rem; }

h1.s7a3-h1 { font-size: 2.1rem; font-weight: 800; color: var(--s7a3-soft); line-height: 1.4; margin: 0.4rem 0 1rem; }
h2.s7a3-h2 { font-size: 1.7rem; font-weight: 700; color: var(--s7a3-soft); margin: 1.4rem 0 0.6rem; }
h3.s7a3-h3 { font-size: 1.45rem; font-weight: 700; color: var(--s7a3-primary); margin: 1rem 0 0.4rem; }
p.s7a3-lead { color: var(--s7a3-text-muted); margin-bottom: 0.8rem; }

/* ---------- Game grid ---------- */
.s7a3-cat-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem; scrollbar-width: none; }
.s7a3-cat-tabs::-webkit-scrollbar { display: none; }
.s7a3-cat-tab { flex: 0 0 auto; padding: 0.5rem 1.1rem; border-radius: 18px; background: var(--s7a3-bg-light); color: var(--s7a3-text-muted); font-size: 1.2rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.s7a3-cat-tab.s7a3-tab-active { background: var(--s7a3-primary); color: #2a1a1f; }

.s7a3-cat-block { margin-bottom: 1.8rem; }
.s7a3-cat-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.s7a3-cat-head i { color: var(--s7a3-primary); font-size: 2rem; }
.s7a3-cat-head h2 { font-size: 1.6rem; color: var(--s7a3-soft); }

.s7a3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.s7a3-game-card { background: var(--s7a3-bg-light); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .2s; border: 1px solid rgba(255,145,164,0.12); }
.s7a3-game-card:active { transform: scale(0.95); }
.s7a3-game-card:hover { box-shadow: 0 6px 16px rgba(255,145,164,0.25); border-color: var(--s7a3-primary); }
.s7a3-game-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #1d2a35; }
.s7a3-game-name { padding: 0.5rem 0.4rem; font-size: 1.05rem; text-align: center; color: var(--s7a3-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

/* ---------- Feature cards ---------- */
.s7a3-card { background: var(--s7a3-bg-light); border-radius: var(--s7a3-radius); padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--s7a3-shadow); border: 1px solid rgba(255,145,164,0.1); }
.s7a3-card h3 { color: var(--s7a3-soft); }
.s7a3-card-icon { font-size: 2.2rem; color: var(--s7a3-primary); margin-bottom: 0.5rem; }
.s7a3-card ul { list-style: none; margin-top: 0.5rem; }
.s7a3-card li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; color: var(--s7a3-text-muted); }
.s7a3-card li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--s7a3-green); position: absolute; left: 0; font-size: 1.1rem; }

/* ---------- CTA banner ---------- */
.s7a3-cta { background: linear-gradient(120deg, var(--s7a3-primary), var(--s7a3-primary-dark)); border-radius: var(--s7a3-radius); padding: 1.4rem; text-align: center; margin: 1.6rem 0; color: #2a1a1f; box-shadow: 0 8px 22px rgba(255,145,164,0.4); }
.s7a3-cta h2 { color: #2a1a1f; margin-bottom: 0.4rem; }
.s7a3-cta p { color: rgba(42,26,31,0.85); margin-bottom: 0.9rem; }
.s7a3-cta .s7a3-btn { background: #2a1a1f; color: #fff; font-size: 1.4rem; padding: 0.8rem 1.8rem; }
.s7a3-cta .s7a3-btn:hover { color: #fff; filter: brightness(1.2); }

/* ---------- Promo link inline ---------- */
.s7a3-link { color: var(--s7a3-primary); font-weight: 700; cursor: pointer; }
.s7a3-link:hover { color: var(--s7a3-soft); text-decoration: underline; }
.s7a3-promo-btn { display: inline-block; background: linear-gradient(90deg, var(--s7a3-primary), var(--s7a3-primary-dark)); color: #2a1a1f; font-weight: 700; padding: 0.7rem 1.6rem; border-radius: 22px; cursor: pointer; margin: 0.6rem 0; }
.s7a3-promo-btn:hover { color: #2a1a1f; filter: brightness(1.08); }

/* ---------- Testimonials ---------- */
.s7a3-testimonial { background: var(--s7a3-bg-light); border-radius: 12px; padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--s7a3-primary); }
.s7a3-testimonial .s7a3-stars { color: var(--s7a3-gold); margin-bottom: 0.3rem; font-size: 1.1rem; }
.s7a3-testimonial p { font-size: 1.2rem; color: var(--s7a3-text-muted); margin-bottom: 0.3rem; }
.s7a3-testimonial .s7a3-author { font-size: 1.1rem; color: var(--s7a3-soft); font-weight: 600; }

/* ---------- Payment / winners ---------- */
.s7a3-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s7a3-chip { background: var(--s7a3-bg-light); border: 1px solid rgba(255,145,164,0.25); border-radius: 20px; padding: 0.5rem 1rem; font-size: 1.15rem; color: var(--s7a3-text-muted); display: flex; align-items: center; gap: 0.4rem; }
.s7a3-chip i { color: var(--s7a3-primary); }

.s7a3-winner { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; background: var(--s7a3-bg-light); border-radius: 10px; margin-bottom: 0.5rem; }
.s7a3-winner .s7a3-w-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--s7a3-primary); color: #2a1a1f; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.s7a3-winner .s7a3-w-name { font-size: 1.15rem; color: var(--s7a3-text); font-weight: 600; }
.s7a3-winner .s7a3-w-amount { font-size: 1.2rem; color: var(--s7a3-gold); font-weight: 700; margin-left: auto; }

/* ---------- Footer ---------- */
.s7a3-footer { background: var(--s7a3-bg-deep); border-top: 2px solid var(--s7a3-primary); padding: 1.6rem 1.2rem 2rem; margin-top: 2rem; }
.s7a3-footer-brand { font-size: 1.3rem; color: var(--s7a3-text-muted); margin-bottom: 1rem; line-height: 1.6; }
.s7a3-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.s7a3-footer-links a { background: var(--s7a3-bg-light); color: var(--s7a3-text); padding: 0.4rem 0.9rem; border-radius: 16px; font-size: 1.1rem; }
.s7a3-footer-links a:hover { background: var(--s7a3-primary); color: #2a1a1f; }
.s7a3-footer-copy { font-size: 1.1rem; color: var(--s7a3-text-muted); border-top: 1px solid rgba(255,255,255,0.08); padding-top: 0.8rem; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.s7a3-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--s7a3-bottom-h);
  background: linear-gradient(180deg, var(--s7a3-bg-light), var(--s7a3-bg-deep));
  border-top: 2px solid var(--s7a3-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
  max-width: 430px; margin: 0 auto;
}
.s7a3-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; color: var(--s7a3-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; padding: 0.3rem; transition: color .2s, transform .15s;
  font-size: 1.05rem; font-weight: 600;
}
.s7a3-bottom-nav-btn i, .s7a3-bottom-nav-btn .material-icons-outlined, .s7a3-bottom-nav-btn ion-icon { font-size: 24px; }
.s7a3-bottom-nav-btn:active { transform: scale(0.9); }
.s7a3-bottom-nav-btn:hover { color: var(--s7a3-soft); }
.s7a3-nav-active { color: var(--s7a3-primary); }
.s7a3-nav-active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; background: var(--s7a3-primary); border-radius: 0 0 4px 4px; }
.s7a3-bottom-nav-btn { position: relative; }

/* ---------- Back to top ---------- */
#s7a3-back-top { position: fixed; right: 14px; bottom: calc(var(--s7a3-bottom-h) + 14px); z-index: 999; width: 42px; height: 42px; border-radius: 50%; background: var(--s7a3-primary); color: #2a1a1f; border: 0; font-size: 1.8rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; box-shadow: var(--s7a3-shadow); }
.s7a3-back-visible { opacity: 1 !important; pointer-events: auto !important; }

/* ---------- FAQ ---------- */
.s7a3-faq-item { background: var(--s7a3-bg-light); border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden; }
.s7a3-faq-q { width: 100%; text-align: left; background: transparent; border: 0; padding: 1rem; color: var(--s7a3-text); font-size: 1.25rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.s7a3-faq-icon { color: var(--s7a3-primary); font-size: 1.5rem; font-weight: 800; }
.s7a3-faq-a { display: none; padding: 0 1rem 1rem; color: var(--s7a3-text-muted); font-size: 1.2rem; }

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .s7a3-bottom-nav { display: none; }
  .s7a3-menu-toggle { display: none; }
  .s7a3-container, .s7a3-header-inner, .s7a3-carousel, .s7a3-mobile-menu, .s7a3-footer { max-width: 760px; }
  .s7a3-grid { grid-template-columns: repeat(6, 1fr); }
  .s7a3-wrapper { padding-bottom: 0; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .s7a3-slide img { height: 180px; }
}
@media (max-width: 360px) {
  .s7a3-grid { grid-template-columns: repeat(2, 1fr); }
  .s7a3-logo-text { font-size: 1.5rem; }
}
