/*!
 * me777 link - Core base stylesheet
 * All custom classes use the s35b- prefix per project convention.
 * Mobile-first: targets max-width 430px viewports, scales up for desktop.
 */

:root {
  --s35b-primary: #4169E1;
  --s35b-violet: #EE82EE;
  --s35b-slate: #6A5ACD;
  --s35b-sand: #F4A460;
  --s35b-bg: #2D2D2D;
  --s35b-bg-soft: #1c1c1c;
  --s35b-bg-elev: #3a3a3a;
  --s35b-text: #f4f4f8;
  --s35b-text-muted: #b9b9c9;
  --s35b-border: rgba(244, 244, 248, 0.12);
  --s35b-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --s35b-radius: 14px;
  --s35b-radius-sm: 10px;
  --s35b-grad: linear-gradient(135deg, #4169E1 0%, #6A5ACD 55%, #EE82EE 100%);
  --s35b-grad-sand: linear-gradient(135deg, #F4A460 0%, #EE82EE 100%);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Roboto", Arial, sans-serif;
  background: var(--s35b-bg);
  color: var(--s35b-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

a { color: var(--s35b-violet); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.25; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }

.s35b-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s35b-wrapper { padding: 1rem 0; }

/* ===================== Header ===================== */
.s35b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28, 28, 28, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s35b-border);
}
.s35b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  max-width: 430px;
  margin: 0 auto;
  gap: 0.6rem;
}
.s35b-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--s35b-text); font-weight: 700; font-size: 1.6rem;
}
.s35b-brand img { width: 30px; height: 30px; border-radius: 8px; }
.s35b-brand:hover { text-decoration: none; }
.s35b-brand-name {
  background: var(--s35b-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.s35b-menu-toggle {
  background: transparent; border: 0; color: var(--s35b-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.s35b-cta-group { display: flex; gap: 0.5rem; }
.s35b-btn {
  border: 0; cursor: pointer; font-weight: 700; font-size: 1.3rem;
  padding: 0.7rem 1.2rem; border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.s35b-btn:hover { transform: translateY(-1px); text-decoration: none; }
.s35b-btn-primary { background: var(--s35b-grad); color: #fff; box-shadow: var(--s35b-shadow); }
.s35b-btn-secondary { background: transparent; color: var(--s35b-text); border: 1px solid var(--s35b-border); }
.s35b-btn-sand { background: var(--s35b-grad-sand); color: #2D2D2D; }
.s35b-btn-block { width: 100%; padding: 1rem; font-size: 1.5rem; }

/* ===================== Mobile menu ===================== */
.s35b-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--s35b-bg-soft);
  z-index: 9999;
  padding: 6rem 1.5rem 2rem;
  transition: right 0.25s ease;
  overflow-y: auto;
  border-left: 1px solid var(--s35b-border);
}
.s35b-mobile-menu.s35b-menu-open { right: 0; }
.s35b-mobile-menu h4 {
  font-size: 1.2rem; color: var(--s35b-text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 1.5rem;
}
.s35b-mobile-menu a {
  display: block; color: var(--s35b-text);
  padding: 0.85rem 0; border-bottom: 1px solid var(--s35b-border);
  font-size: 1.45rem;
}
.s35b-mobile-menu a:hover { color: var(--s35b-violet); }
.s35b-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: 0; color: var(--s35b-text);
  font-size: 2rem; cursor: pointer; min-width: 44px; min-height: 44px;
}

/* ===================== Layout ===================== */
main { padding-top: 64px; }
@media (max-width: 768px) { main { padding-bottom: 84px; } }

.s35b-section { padding: 2rem 0; }
.s35b-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.s35b-section-head h2 { display: flex; align-items: center; gap: 0.5rem; }
.s35b-section-head .s35b-link-more { font-size: 1.3rem; color: var(--s35b-sand); }

/* ===================== Carousel ===================== */
.s35b-carousel {
  position: relative;
  border-radius: var(--s35b-radius);
  overflow: hidden;
  box-shadow: var(--s35b-shadow);
  margin-bottom: 1.5rem;
}
.s35b-slides { position: relative; }
.s35b-slide {
  display: none; cursor: pointer; position: relative;
}
.s35b-slide.s35b-active { display: block; }
.s35b-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.s35b-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff; font-size: 1.4rem; font-weight: 600;
}
.s35b-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 5;
}
.s35b-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); cursor: pointer; border: 0; padding: 0;
}
.s35b-dot.s35b-active { background: var(--s35b-sand); width: 22px; border-radius: 4px; }

/* ===================== Game grid ===================== */
.s35b-cat-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.7rem; margin: 1.8rem 0 1rem; color: var(--s35b-text);
}
.s35b-cat-title .s35b-cat-icon { color: var(--s35b-sand); font-size: 2.2rem; }

.s35b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.s35b-game {
  display: block; text-align: center; cursor: pointer;
  background: var(--s35b-bg-soft);
  border: 1px solid var(--s35b-border);
  border-radius: var(--s35b-radius-sm);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.s35b-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(65, 105, 225, 0.25);
  text-decoration: none;
}
.s35b-game img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
}
.s35b-game-name {
  font-size: 1.15rem; color: var(--s35b-text);
  padding: 0.4rem 0.2rem 0.6rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===================== Cards & modules ===================== */
.s35b-card {
  background: var(--s35b-bg-soft);
  border: 1px solid var(--s35b-border);
  border-radius: var(--s35b-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--s35b-shadow);
}
.s35b-card h3 { color: var(--s35b-violet); }
.s35b-card p { color: var(--s35b-text-muted); font-size: 1.4rem; }
.s35b-card a { color: var(--s35b-sand); font-weight: 600; }

.s35b-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
.s35b-feature {
  background: var(--s35b-bg-elev);
  border-radius: var(--s35b-radius-sm);
  padding: 1rem; text-align: center;
}
.s35b-feature .s35b-feature-icon {
  font-size: 2.4rem; color: var(--s35b-sand); margin-bottom: 0.4rem;
}
.s35b-feature h4 { margin: 0.3rem 0; color: var(--s35b-text); }
.s35b-feature p { margin: 0; font-size: 1.2rem; color: var(--s35b-text-muted); }

.s35b-list { list-style: none; padding: 0; margin: 0; }
.s35b-list li {
  position: relative; padding-left: 1.8rem; margin-bottom: 0.6rem;
  font-size: 1.4rem; color: var(--s35b-text-muted);
}
.s35b-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; color: var(--s35b-sand); font-size: 1.2rem;
}

.s35b-faq { margin-bottom: 0.8rem; border: 1px solid var(--s35b-border); border-radius: var(--s35b-radius-sm); overflow: hidden; }
.s35b-faq summary {
  cursor: pointer; padding: 1rem; font-weight: 600; color: var(--s35b-text);
  background: var(--s35b-bg-elev); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.s35b-faq summary::after { content: "+"; font-size: 1.8rem; color: var(--s35b-sand); }
.s35b-faq[open] summary::after { content: "\2212"; }
.s35b-faq-body { padding: 1rem; color: var(--s35b-text-muted); font-size: 1.35rem; }

/* ===================== Promo CTA ===================== */
.s35b-cta-banner {
  background: var(--s35b-grad);
  border-radius: var(--s35b-radius);
  padding: 1.8rem 1.2rem;
  text-align: center;
  color: #fff;
  margin: 1.5rem 0;
}
.s35b-cta-banner h3 { color: #fff; margin-bottom: 0.5rem; }
.s35b-cta-banner p { color: rgba(255, 255, 255, 0.88); margin-bottom: 1rem; font-size: 1.35rem; }

/* ===================== Footer ===================== */
.s35b-footer {
  background: var(--s35b-bg-soft);
  border-top: 1px solid var(--s35b-border);
  padding: 2rem 1.2rem 6rem;
  margin-top: 2rem;
  font-size: 1.3rem;
  color: var(--s35b-text-muted);
}
.s35b-footer h4 { color: var(--s35b-text); font-size: 1.5rem; margin-bottom: 0.8rem; }
.s35b-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin: 1rem 0;
}
.s35b-footer-links a { color: var(--s35b-text-muted); padding: 0.3rem 0; font-size: 1.25rem; }
.s35b-footer-links a:hover { color: var(--s35b-violet); }
.s35b-footer-buttons {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0;
}
.s35b-footer-buttons .s35b-btn { flex: 1 1 40%; font-size: 1.25rem; }
.s35b-copyright {
  border-top: 1px solid var(--s35b-border);
  padding-top: 1rem; margin-top: 1rem;
  text-align: center; font-size: 1.2rem;
}

/* ===================== Mobile bottom nav ===================== */
.s35b-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(28, 28, 28, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--s35b-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 62px; z-index: 1000;
  padding: 0 0.2rem;
}
.s35b-bottom-nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  background: transparent; border: 0;
  color: var(--s35b-text-muted); cursor: pointer;
  min-width: 60px; min-height: 60px;
  font-size: 1.1rem; line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}
.s35b-bottom-nav-item .material-icons,
.s35b-bottom-nav-item .fas,
.s35b-bottom-nav-item .far,
.s35b-bottom-nav-item ion-icon { font-size: 22px; }
.s35b-bottom-nav-item ion-icon { --ionicon-stroke-width: 40px; }
.s35b-bottom-nav-item:hover { color: var(--s35b-violet); transform: translateY(-1px); }
.s35b-bottom-nav-item.s35b-active { color: var(--s35b-sand); }
.s35b-bottom-nav-item.s35b-active::after {
  content: ""; display: block; width: 18px; height: 3px;
  background: var(--s35b-sand); border-radius: 2px; margin-top: 2px;
}
@media (min-width: 769px) { .s35b-bottom-nav { display: none; } }

/* ===================== Utilities ===================== */
.s35b-text-sand { color: var(--s35b-sand); font-weight: 700; }
.s35b-text-violet { color: var(--s35b-violet); font-weight: 700; }
.s35b-divider { height: 1px; background: var(--s35b-border); margin: 1.5rem 0; border: 0; }
.s35b-promo-inline { color: var(--s35b-sand); font-weight: 700; cursor: pointer; }

.s35b-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.s35b-reveal.s35b-visible { opacity: 1; transform: translateY(0); }

.s35b-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.s35b-tag {
  background: rgba(65, 105, 225, 0.18); color: #9db4ff;
  border: 1px solid rgba(65, 105, 225, 0.35);
  padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 1.15rem;
}

.s35b-testimonial {
  background: var(--s35b-bg-elev); border-radius: var(--s35b-radius-sm);
  padding: 1rem; margin-bottom: 0.8rem;
}
.s35b-testimonial-stars { color: var(--s35b-sand); font-size: 1.3rem; margin-bottom: 0.3rem; }
.s35b-testimonial p { margin: 0 0 0.4rem; font-size: 1.35rem; color: var(--s35b-text); }
.s35b-testimonial small { color: var(--s35b-text-muted); }

.s35b-winners {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.s35b-winner {
  background: var(--s35b-bg-elev); border-radius: var(--s35b-radius-sm);
  padding: 0.8rem; text-align: center;
}
.s35b-winner strong { color: var(--s35b-sand); display: block; font-size: 1.4rem; }
.s35b-winner small { color: var(--s35b-text-muted); }

.s35b-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.s35b-pay span {
  background: var(--s35b-bg-elev); border: 1px solid var(--s35b-border);
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 1.25rem; color: var(--s35b-text);
}
