/* ==========================================================================
   ah3.click core stylesheet
   All custom classes use the s95d- prefix.
   Palette: #2E4057 / #FFF8DC / #F5F5F5 / #EEE8AA / #FFFACD / #FAFAFA
   ========================================================================== */

:root {
  --s95d-primary: #2E4057;
  --s95d-bg: #FAFAFA;
  --s95d-text: #2E4057;
  --s95d-cream: #FFF8DC;
  --s95d-light: #F5F5F5;
  --s95d-gold: #EEE8AA;
  --s95d-soft: #FFFACD;
  --s95d-accent: #D4A24E;
  --s95d-accent-2: #B0742F;
  --s95d-header-h: 56px;
  --s95d-bottomnav-h: 60px;
  --s95d-radius: 12px;
  --s95d-shadow: 0 4px 16px rgba(46, 64, 87, 0.18);
  --s95d-maxw: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--s95d-bg);
  color: var(--s95d-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: var(--s95d-maxw);
  margin-left: auto;
  margin-right: auto;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--s95d-primary); margin: 0 0 1rem; line-height: 1.25; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1.2rem; }

/* ---------- Layout containers ---------- */
.s95d-container { width: 100%; max-width: var(--s95d-maxw); margin: 0 auto; padding: 0 1.2rem; }
.s95d-wrapper { padding: 1.2rem; }
.s95d-section { padding: 2.4rem 1.2rem; }
.s95d-section--alt { background: var(--s95d-cream); }
.s95d-section--dark { background: var(--s95d-primary); color: #FFF8DC; }
.s95d-section--dark h2, .s95d-section--dark h3 { color: #FFFACD; }
.s95d-section--soft { background: var(--s95d-soft); }

/* ---------- Header ---------- */
.s95d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--s95d-header-h);
  background: var(--s95d-primary);
  color: #FFF8DC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.s95d-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.8rem; color: #FFFACD; }
.s95d-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s95d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s95d-menu-btn {
  background: transparent;
  border: 1px solid #FFFACD;
  color: #FFFACD;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.s95d-btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 40px;
}
.s95d-btn:hover { transform: translateY(-1px); }
.s95d-btn--register { background: linear-gradient(135deg, #EEE8AA, #D4A24E); color: #2E4057; }
.s95d-btn--login { background: transparent; color: #FFF8DC; border: 1.5px solid #EEE8AA; }
.s95d-btn--cta {
  background: linear-gradient(135deg, #D4A24E, #B0742F);
  color: #FFF8DC;
  padding: 1rem 2.4rem;
  font-size: 1.6rem;
  box-shadow: var(--s95d-shadow);
}
.s95d-btn--ghost {
  background: var(--s95d-light);
  color: var(--s95d-primary);
  border: 1px solid var(--s95d-gold);
}
.s95d-link-text {
  color: var(--s95d-accent-2);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Mobile slide menu ---------- */
.s95d-mobile-menu {
  position: fixed;
  top: var(--s95d-header-h);
  left: 0; right: 0;
  background: #FFF8DC;
  border-bottom: 2px solid var(--s95d-gold);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.s95d-mobile-menu.s95d-menu-open { max-height: 480px; }
.s95d-mobile-menu ul { list-style: none; margin: 0; padding: 0.6rem 1.2rem; }
.s95d-mobile-menu li { border-bottom: 1px solid var(--s95d-gold); }
.s95d-mobile-menu li:last-child { border-bottom: none; }
.s95d-mobile-menu a {
  display: block;
  padding: 1rem 0.4rem;
  color: var(--s95d-primary);
  font-weight: 600;
}

/* ---------- Main ---------- */
.s95d-main {
  margin-top: var(--s95d-header-h);
  padding-bottom: calc(var(--s95d-bottomnav-h) + 16px);
}

/* ---------- Carousel ---------- */
.s95d-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--s95d-radius);
  margin: 1.2rem 0;
}
.s95d-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.s95d-slide-active { display: block; }
.s95d-slide img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--s95d-radius); }
.s95d-slide-caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(46, 64, 87, 0.8);
  color: #FFFACD;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}
.s95d-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
}
.s95d-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--s95d-gold);
  cursor: pointer;
}
.s95d-dot-active { background: var(--s95d-accent-2); }

/* ---------- Game grid ---------- */
.s95d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.s95d-grid--4 { grid-template-columns: repeat(4, 1fr); }
.s95d-card {
  background: #fff;
  border-radius: var(--s95d-radius);
  box-shadow: var(--s95d-shadow);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  display: block;
}
.s95d-card:hover { transform: translateY(-2px); }
.s95d-card img { width: 100%; height: 90px; object-fit: cover; }
.s95d-card-name {
  padding: 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--s95d-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s95d-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.s95d-section-title h2 { margin: 0; }
.s95d-section-title .s95d-more { font-size: 1.3rem; color: var(--s95d-accent-2); font-weight: 700; }

/* ---------- Hero ---------- */
.s95d-hero {
  background: linear-gradient(135deg, #2E4057, #4a6385);
  color: #FFFACD;
  padding: 2rem 1.2rem;
  text-align: center;
  border-radius: var(--s95d-radius);
  margin: 1.2rem 0;
}
.s95d-hero h1 { color: #FFFACD; }
.s95d-hero p { color: #FFF8DC; }

/* ---------- Generic content ---------- */
.s95d-content p { font-size: 1.5rem; color: #3a4a60; }
.s95d-list { padding-left: 1.8rem; margin: 0 0 1.2rem; }
.s95d-list li { margin-bottom: 0.6rem; }

/* ---------- FAQ ---------- */
.s95d-faq-item {
  background: #fff;
  border: 1px solid var(--s95d-gold);
  border-radius: var(--s95d-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.s95d-faq-item h3 { font-size: 1.5rem; color: var(--s95d-accent-2); margin-bottom: 0.4rem; }

/* ---------- Testimonials ---------- */
.s95d-testimonial {
  background: #fff;
  border-left: 4px solid var(--s95d-accent);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--s95d-shadow);
}
.s95d-testimonial .s95d-author { font-weight: 700; color: var(--s95d-primary); font-size: 1.3rem; margin-top: 0.4rem; }

/* ---------- Payment ---------- */
.s95d-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  text-align: center;
}
.s95d-payment {
  background: #fff;
  border: 1px solid var(--s95d-gold);
  border-radius: 8px;
  padding: 0.8rem 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--s95d-primary);
}

/* ---------- Winner showcase ---------- */
.s95d-winner {
  display: flex;
  justify-content: space-between;
  background: var(--s95d-soft);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.s95d-winner b { color: var(--s95d-accent-2); }

/* ---------- Stats ---------- */
.s95d-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  text-align: center;
  margin: 1rem 0;
}
.s95d-stat {
  background: #fff;
  border: 1px solid var(--s95d-gold);
  border-radius: 8px;
  padding: 0.8rem 0.4rem;
}
.s95d-stat b { display: block; font-size: 1.8rem; color: var(--s95d-accent-2); }
.s95d-stat span { font-size: 1.1rem; color: var(--s95d-text); }

/* ---------- App download CTA ---------- */
.s95d-app-cta {
  background: linear-gradient(135deg, #EEE8AA, #FFFACD);
  border-radius: var(--s95d-radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  margin: 1.2rem 0;
}
.s95d-app-cta h3 { color: var(--s95d-primary); }
.s95d-app-cta img { width: 100%; max-width: 320px; margin: 0 auto 1rem; border-radius: 8px; }

/* ---------- Footer ---------- */
.s95d-footer {
  background: var(--s95d-primary);
  color: #FFF8DC;
  padding: 2rem 1.2rem 3rem;
  text-align: center;
}
.s95d-footer h3 { color: #FFFACD; }
.s95d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
  margin: 1rem 0;
}
.s95d-footer-links a { color: #EEE8AA; font-size: 1.3rem; }
.s95d-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0;
}
.s95d-footer-copy { font-size: 1.2rem; color: #FFF8DC; opacity: 0.85; margin-top: 1rem; }

/* ---------- Bottom navigation ---------- */
.s95d-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--s95d-bottomnav-h);
  background: var(--s95d-primary);
  border-top: 2px solid var(--s95d-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: var(--s95d-maxw);
  margin: 0 auto;
}
.s95d-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFF8DC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  gap: 2px;
}
.s95d-bottomnav-btn:active { transform: scale(0.92); color: #FFFACD; }
.s95d-bottomnav-btn.s95d-active { color: #EEE8AA; }
.s95d-bottomnav-btn .material-icons,
.s95d-bottomnav-btn .fas,
.s95d-bottomnav-btn .far,
.s95d-bottomnav-btn .bi,
.s95d-bottomnav-btn ion-icon { font-size: 22px; }
.s95d-bottomnav-btn ion-icon { font-size: 24px; }
.s95d-bottomnav-badge {
  position: absolute;
  top: 4px; right: 18px;
  background: #D4A24E;
  color: #2E4057;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
}

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .s95d-bottomnav { display: none; }
  .s95d-menu-btn { display: none; }
  body { max-width: 760px; }
}
@media (max-width: 768px) {
  .s95d-main { padding-bottom: calc(var(--s95d-bottomnav-h) + 16px); }
}
@media (max-width: 360px) {
  .s95d-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2rem; }
}

.s95d-text-center { text-align: center; }
.s95d-mt-1 { margin-top: 1rem; }
.s95d-mb-1 { margin-bottom: 1rem; }
.s95d-hide { display: none; }
