/*!
 * me777 com ph - Mobile-first base stylesheet
 * Palette: #FFE4B5 | #DEB887 | #FF9500 | #3A3A3A (dark = bg, light = text)
 * Every custom class uses the s2bc- prefix to avoid collisions.
 */
:root {
  --s2bc-primary: #FF9500;
  --s2bc-accent: #FFE4B5;
  --s2bc-soft: #DEB887;
  --s2bc-dark: #3A3A3A;
  --s2bc-darker: #232323;
  --s2bc-text: #FFE4B5;
  --s2bc-muted: #d8c4a6;
  --s2bc-card: #2c2724;
  --s2bc-card-border: rgba(255, 228, 181, 0.12);
  --s2bc-radius: 14px;
  --s2bc-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --s2bc-gradient: linear-gradient(135deg, #FF9500 0%, #DEB887 100%);
  --s2bc-header-h: 64px;
  --s2bc-bottom-h: 62px;
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 50% 0%, #4a3a2a 0%, var(--s2bc-darker) 60%, #1a1410 100%);
  color: var(--s2bc-text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--s2bc-primary); text-decoration: none; }
a:hover, a:focus { color: var(--s2bc-accent); }

/* ===== Layout containers ===== */
.s2bc-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.s2bc-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.s2bc-main { flex: 1 0 auto; padding-top: calc(var(--s2bc-header-h) + 1rem); }

/* ===== Header ===== */
.s2bc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--s2bc-header-h);
  background: linear-gradient(180deg, rgba(35,35,35,0.98) 0%, rgba(35,35,35,0.92) 100%);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
  border-bottom: 1px solid var(--s2bc-card-border);
}
.s2bc-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.s2bc-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--s2bc-accent);
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}
.s2bc-logo img { width: 30px; height: 30px; border-radius: 8px; }
.s2bc-logo span { background: var(--s2bc-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.s2bc-header__actions { display: flex; align-items: center; gap: 0.6rem; }
.s2bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 38px;
  line-height: 1;
}
.s2bc-btn--primary { background: var(--s2bc-gradient); color: #2a1a05; box-shadow: 0 4px 12px rgba(255,149,0,0.4); }
.s2bc-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,149,0,0.55); }
.s2bc-btn--ghost { background: transparent; color: var(--s2bc-text); border: 1.5px solid var(--s2bc-primary); }
.s2bc-btn--ghost:hover { background: rgba(255,149,0,0.12); }
.s2bc-btn--block { display: flex; width: 100%; padding: 1rem; font-size: 1.5rem; }

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

/* ===== Mobile menu drawer ===== */
.s2bc-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--s2bc-darker);
  border-left: 1px solid var(--s2bc-card-border);
  z-index: 9999;
  padding: 2rem 1.6rem;
  transform: translateX(0);
  transition: right 0.3s ease;
  overflow-y: auto;
}
.s2bc-mobile-menu.s2bc-is-open { right: 0; }
.s2bc-mobile-menu__close {
  background: transparent; border: none; color: var(--s2bc-accent);
  font-size: 2rem; cursor: pointer; float: right;
}
.s2bc-mobile-menu h3 { color: var(--s2bc-primary); font-size: 1.4rem; margin: 1.5rem 0 0.8rem; }
.s2bc-mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.s2bc-mobile-menu li { border-bottom: 1px solid var(--s2bc-card-border); }
.s2bc-mobile-menu a {
  display: block; padding: 1.1rem 0.4rem;
  color: var(--s2bc-text); font-size: 1.4rem;
}
.s2bc-mobile-menu a:hover { color: var(--s2bc-primary); padding-left: 1rem; }

.s2bc-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.s2bc-menu-overlay.s2bc-is-visible { opacity: 1; pointer-events: auto; }

/* ===== Hero carousel ===== */
.s2bc-hero {
  position: relative;
  border-radius: var(--s2bc-radius);
  overflow: hidden;
  box-shadow: var(--s2bc-shadow);
  margin: 1.2rem 0;
}
.s2bc-slides { position: relative; width: 100%; height: 200px; }
.s2bc-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease;
  display: flex; align-items: flex-end;
}
.s2bc-slide.s2bc-is-active { opacity: 1; }
.s2bc-slide img { width: 100%; height: 100%; object-fit: cover; }
.s2bc-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
}
.s2bc-slide__caption {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  color: #fff; font-size: 1.5rem; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.s2bc-dots {
  position: absolute; bottom: 8px; right: 10px;
  display: flex; gap: 6px; z-index: 3;
}
.s2bc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,228,181,0.5); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.s2bc-dot.s2bc-is-active { background: var(--s2bc-primary); transform: scale(1.2); }

/* ===== Sections and titles ===== */
.s2bc-section { margin: 2.2rem 0; }
.s2bc-section__title {
  font-size: 1.85rem; font-weight: 800;
  color: var(--s2bc-accent);
  border-left: 4px solid var(--s2bc-primary);
  padding-left: 0.8rem;
  margin: 0 0 1.2rem;
}
.s2bc-section__subtitle {
  font-size: 1.4rem; font-weight: 600; color: var(--s2bc-soft);
  margin: 1.6rem 0 0.8rem;
}
.s2bc-text { font-size: 1.35rem; color: var(--s2bc-muted); margin: 0.6rem 0; }
.s2bc-text strong { color: var(--s2bc-primary); font-weight: 700; }

/* ===== Game grid ===== */
.s2bc-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.s2bc-game-card {
  background: var(--s2bc-card);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--s2bc-card-border);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.s2bc-game-card:hover { transform: translateY(-3px); border-color: var(--s2bc-primary); box-shadow: 0 6px 16px rgba(255,149,0,0.25); }
.s2bc-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.s2bc-game-card__name { font-size: 1.15rem; color: var(--s2bc-text); padding: 0.5rem 0.3rem; font-weight: 600; }

/* ===== Generic cards ===== */
.s2bc-card {
  background: var(--s2bc-card);
  border-radius: var(--s2bc-radius);
  padding: 1.4rem;
  border: 1px solid var(--s2bc-card-border);
  margin: 1rem 0;
  box-shadow: var(--s2bc-shadow);
}
.s2bc-card h3 { color: var(--s2bc-accent); font-size: 1.5rem; margin: 0 0 0.6rem; }
.s2bc-card p { margin: 0.4rem 0; font-size: 1.3rem; color: var(--s2bc-muted); }

.s2bc-list { list-style: none; padding: 0; margin: 0.6rem 0; }
.s2bc-list li { padding: 0.6rem 0 0.6rem 2rem; position: relative; font-size: 1.3rem; color: var(--s2bc-muted); }
.s2bc-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 0.6rem; color: var(--s2bc-primary); font-size: 1.1rem;
}

/* ===== Inline promotional anchor ===== */
.s2bc-promo-link {
  color: var(--s2bc-primary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--s2bc-primary);
}
.s2bc-promo-link:hover { color: var(--s2bc-accent); }

/* ===== Stat strip ===== */
.s2bc-stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 1rem 0; }
.s2bc-stat {
  background: var(--s2bc-card); border-radius: 12px; padding: 1rem;
  text-align: center; border: 1px solid var(--s2bc-card-border);
}
.s2bc-stat__num { font-size: 1.9rem; font-weight: 800; color: var(--s2bc-primary); display: block; }
.s2bc-stat__label { font-size: 1.15rem; color: var(--s2bc-muted); margin-top: 0.3rem; display: block; }

/* ===== Testimonial ===== */
.s2bc-testimonial {
  background: var(--s2bc-card); border-radius: 12px; padding: 1.2rem;
  margin: 0.8rem 0; border-left: 3px solid var(--s2bc-primary);
  border: 1px solid var(--s2bc-card-border);
}
.s2bc-testimonial__quote { font-size: 1.3rem; color: var(--s2bc-text); font-style: italic; }
.s2bc-testimonial__author { font-size: 1.15rem; color: var(--s2bc-soft); margin-top: 0.6rem; font-weight: 600; }

/* ===== Payment badges ===== */
.s2bc-payment-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1rem 0; }
.s2bc-payment-badge {
  background: var(--s2bc-card); padding: 0.6rem 1rem; border-radius: 8px;
  border: 1px solid var(--s2bc-card-border); font-size: 1.2rem; color: var(--s2bc-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ===== Winner ticker ===== */
.s2bc-winner {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--s2bc-card); padding: 0.8rem; border-radius: 10px;
  margin: 0.5rem 0; border: 1px solid var(--s2bc-card-border);
}
.s2bc-winner__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--s2bc-gradient); display: inline-flex; align-items: center; justify-content: center; color: #2a1a05; font-weight: 700; }
.s2bc-winner__info { flex: 1; font-size: 1.2rem; color: var(--s2bc-muted); }
.s2bc-winner__amount { color: var(--s2bc-primary); font-weight: 700; }

/* ===== Footer ===== */
.s2bc-footer {
  background: var(--s2bc-darker);
  border-top: 1px solid var(--s2bc-card-border);
  padding: 2.2rem 1.4rem 8rem;
  margin-top: 2rem;
  color: var(--s2bc-muted);
  font-size: 1.25rem;
}
.s2bc-footer__brand { color: var(--s2bc-accent); font-weight: 700; margin-bottom: 0.8rem; font-size: 1.5rem; }
.s2bc-footer__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 1rem 0; }
.s2bc-footer__links a { color: var(--s2bc-muted); font-size: 1.2rem; }
.s2bc-footer__promo-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.s2bc-footer__copy { margin-top: 1.2rem; font-size: 1.1rem; color: var(--s2bc-soft); }

/* ===== Mobile bottom navigation ===== */
.s2bc-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--s2bc-bottom-h);
  background: linear-gradient(180deg, rgba(35,35,35,0.98) 0%, rgba(20,15,10,1) 100%);
  border-top: 1px solid var(--s2bc-card-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.45);
}
.s2bc-bottom-nav__item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  color: var(--s2bc-muted); cursor: pointer;
  font-size: 1.05rem; font-weight: 600;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  padding: 0.4rem 0;
}
.s2bc-bottom-nav__item i, .s2bc-bottom-nav__item .material-icons-outlined {
  font-size: 22px; margin-bottom: 2px;
}
.s2bc-bottom-nav__item:hover { color: var(--s2bc-accent); transform: translateY(-1px); }
.s2bc-bottom-nav__item.s2bc-is-current { color: var(--s2bc-primary); }
.s2bc-bottom-nav__item.s2bc-is-current i { color: var(--s2bc-primary); }

/* ===== Reveal animation ===== */
.s2bc-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.s2bc-reveal.s2bc-is-visible { opacity: 1; transform: translateY(0); }

/* ===== Hero CTA banner ===== */
.s2bc-cta {
  background: var(--s2bc-gradient);
  color: #2a1a05;
  border-radius: var(--s2bc-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: var(--s2bc-shadow);
}
.s2bc-cta h3 { margin: 0 0 0.5rem; font-size: 1.7rem; color: #2a1a05; }
.s2bc-cta p { margin: 0 0 1rem; color: #3a2705; font-size: 1.3rem; }
.s2bc-cta .s2bc-btn { background: #2a1a05; color: var(--s2bc-accent); }

/* ===== Responsive: hide bottom nav on desktop, pad main on mobile ===== */
@media (min-width: 769px) {
  .s2bc-bottom-nav { display: none; }
  .s2bc-container { max-width: 760px; }
  .s2bc-game-grid { grid-template-columns: repeat(5, 1fr); }
  .s2bc-footer { padding-bottom: 2.2rem; }
}
@media (max-width: 768px) {
  .s2bc-main { padding-bottom: calc(var(--s2bc-bottom-h) + 1.5rem); }
  .s2bc-footer { padding-bottom: calc(var(--s2bc-bottom-h) + 2rem); }
}
