/* ============================================================
   SR88 layout stylesheet - mobile-first (max-width 430px)
   All custom classes use the "sce5-" prefix
   Color palette: #FDF5E6 | #FF8000 | #FFEB3B | #2C2C2C
   ============================================================ */

:root {
  --sce5-bg: #2C2C2C;
  --sce5-bg-2: #1c1c1c;
  --sce5-bg-3: #3a3a3a;
  --sce5-text: #FDF5E6;
  --sce5-text-muted: #c9c0b1;
  --sce5-primary: #FF8000;
  --sce5-secondary: #FFEB3B;
  --sce5-accent: #FDF5E6;
  --sce5-border: rgba(253, 245, 230, 0.12);
  --sce5-radius: 1.2rem;
  --sce5-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45);
  --sce5-header-h: 5.6rem;
  --sce5-bottom-h: 6.4rem;
}

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

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

body {
  font-family: "Segoe UI", "Be Vietnam Pro", "Roboto", system-ui, sans-serif;
  background: var(--sce5-bg);
  color: var(--sce5-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

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

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

/* ---------- Layout primitives ---------- */
.sce5-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.sce5-wrapper { padding-top: var(--sce5-header-h); }
.sce5-grid { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Header ---------- */
.sce5-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--sce5-header-h);
  background: linear-gradient(180deg, #1c1c1c 0%, #2C2C2C 100%);
  border-bottom: 0.2rem solid var(--sce5-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  box-shadow: var(--sce5-shadow);
}
.sce5-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.sce5-brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  object-fit: cover;
}
.sce5-brand-name {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.05rem;
  color: var(--sce5-secondary);
  text-shadow: 0 0 0.6rem rgba(255, 128, 0, 0.55);
}
.sce5-brand-name span { color: var(--sce5-primary); }

.sce5-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sce5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.4rem;
  padding: 0 1.3rem;
  border-radius: 2.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
}
.sce5-btn:active { transform: scale(0.95); }
.sce5-btn-primary {
  background: linear-gradient(135deg, #FF8000 0%, #FFEB3B 100%);
  color: #2C2C2C;
  box-shadow: 0 0.4rem 1rem rgba(255, 128, 0, 0.45);
}
.sce5-btn-outline {
  background: transparent;
  color: var(--sce5-text);
  border: 0.15rem solid var(--sce5-primary);
}
.sce5-btn-block {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.5rem;
}

.sce5-menu-btn {
  background: transparent;
  border: none;
  color: var(--sce5-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

/* ---------- Mobile drawer menu ---------- */
.sce5-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: var(--sce5-bg-2);
  z-index: 9999;
  padding: 6rem 1.6rem 2rem;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 0.15rem solid var(--sce5-primary);
}
.sce5-menu-open { right: 0; }
.sce5-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sce5-menu-open + .sce5-menu-overlay,
.sce5-mobile-menu.sce5-menu-open ~ .sce5-menu-overlay { opacity: 1; pointer-events: auto; }

.sce5-menu-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--sce5-text);
  font-size: 2rem;
  cursor: pointer;
}
.sce5-menu-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sce5-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}
.sce5-menu-link {
  display: block;
  padding: 1.1rem 0.6rem;
  border-bottom: 0.1rem solid var(--sce5-border);
  color: var(--sce5-text);
  font-size: 1.4rem;
  font-weight: 500;
}
.sce5-menu-link:hover { color: var(--sce5-primary); padding-left: 1rem; }
.sce5-menu-cta {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ---------- Hero carousel ---------- */
.sce5-hero {
  position: relative;
  width: 100%;
  height: 19rem;
  overflow: hidden;
  border-radius: var(--sce5-radius);
  margin: 1.2rem 0;
  box-shadow: var(--sce5-shadow);
}
.sce5-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.sce5-slide img { width: 100%; height: 100%; object-fit: cover; }
.sce5-slide-active { opacity: 1; }
.sce5-slide-cap {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0));
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  color: var(--sce5-text);
  font-weight: 700;
  font-size: 1.3rem;
}
.sce5-dots {
  position: absolute;
  bottom: 0.6rem; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.sce5-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(253, 245, 230, 0.4);
  border: none;
  cursor: pointer;
}
.sce5-dot-active { background: var(--sce5-primary); width: 2rem; border-radius: 0.6rem; }

/* ---------- Section / titles ---------- */
.sce5-section {
  padding: 1.8rem 0;
}
.sce5-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.sce5-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--sce5-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sce5-section-title i { color: var(--sce5-primary); }
.sce5-section-more {
  font-size: 1.2rem;
  color: var(--sce5-primary);
  font-weight: 600;
}

/* ---------- Filter tabs ---------- */
.sce5-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.sce5-filter::-webkit-scrollbar { display: none; }
.sce5-filter-tab {
  flex: 0 0 auto;
  padding: 0.7rem 1.2rem;
  border-radius: 2rem;
  background: var(--sce5-bg-3);
  color: var(--sce5-text);
  font-size: 1.2rem;
  font-weight: 600;
  border: 0.1rem solid transparent;
  cursor: pointer;
}
.sce5-filter-active {
  background: linear-gradient(135deg, #FF8000, #FFEB3B);
  color: #2C2C2C;
}

/* ---------- Game grid ---------- */
.sce5-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.sce5-game-card {
  background: var(--sce5-bg-3);
  border-radius: 0.9rem;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s;
  border: 0.1rem solid var(--sce5-border);
}
.sce5-game-card:hover { transform: translateY(-0.3rem); box-shadow: var(--sce5-shadow); border-color: var(--sce5-primary); }
.sce5-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.sce5-game-name {
  display: block;
  padding: 0.5rem 0.3rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sce5-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sce5-game-card:hover .sce5-game-name { color: var(--sce5-primary); }

/* ---------- Cards / panels ---------- */
.sce5-card {
  background: var(--sce5-bg-3);
  border-radius: var(--sce5-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 0.1rem solid var(--sce5-border);
}
.sce5-card h2, .sce5-card h3 { color: var(--sce5-secondary); margin-bottom: 0.6rem; }
.sce5-card h2 { font-size: 1.6rem; }
.sce5-card h3 { font-size: 1.4rem; }
.sce5-card p { color: var(--sce5-text-muted); margin-bottom: 0.6rem; font-size: 1.3rem; line-height: 1.6; }
.sce5-card a { font-weight: 700; }
.sce5-card ul { padding-left: 1.4rem; color: var(--sce5-text-muted); }
.sce5-card li { margin-bottom: 0.4rem; font-size: 1.3rem; line-height: 1.6; }

/* ---------- Inline promo text link ---------- */
.sce5-promo-link {
  color: var(--sce5-primary);
  font-weight: 800;
  border-bottom: 0.15rem dashed var(--sce5-secondary);
  cursor: pointer;
}
.sce5-promo-link:hover { color: var(--sce5-secondary); }

/* ---------- Steps / FAQ ---------- */
.sce5-steps { display: flex; flex-direction: column; gap: 0.8rem; }
.sce5-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--sce5-bg-2);
  padding: 1rem;
  border-radius: 0.8rem;
  border-left: 0.3rem solid var(--sce5-primary);
}
.sce5-step-num {
  flex: 0 0 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--sce5-primary);
  color: #2C2C2C;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.sce5-step-body { font-size: 1.3rem; color: var(--sce5-text-muted); line-height: 1.5; }
.sce5-step-body strong { color: var(--sce5-text); }

.sce5-faq-item {
  border-bottom: 0.1rem solid var(--sce5-border);
  padding: 0.8rem 0;
}
.sce5-faq-q { font-weight: 700; color: var(--sce5-secondary); font-size: 1.35rem; margin-bottom: 0.3rem; }
.sce5-faq-a { color: var(--sce5-text-muted); font-size: 1.25rem; line-height: 1.5; }

/* ---------- Stats / winners ---------- */
.sce5-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.sce5-stat {
  background: var(--sce5-bg-2);
  border-radius: 0.8rem;
  padding: 0.9rem;
  text-align: center;
}
.sce5-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--sce5-primary); }
.sce5-stat-lbl { font-size: 1.1rem; color: var(--sce5-text-muted); }

.sce5-winners li { display: flex; justify-content: space-between; font-size: 1.25rem; padding: 0.5rem 0; border-bottom: 0.1rem dashed var(--sce5-border); }
.sce5-winners .amt { color: var(--sce5-secondary); font-weight: 700; }

/* ---------- Payment grid ---------- */
.sce5-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.sce5-pay {
  background: var(--sce5-bg-2);
  border-radius: 0.6rem;
  padding: 0.8rem 0.4rem;
  text-align: center;
  font-size: 1rem;
  color: var(--sce5-text-muted);
}
.sce5-pay i { font-size: 1.8rem; color: var(--sce5-secondary); display: block; margin-bottom: 0.3rem; }

/* ---------- Testimonials ---------- */
.sce5-quote {
  background: var(--sce5-bg-2);
  border-radius: 0.8rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 0.3rem solid var(--sce5-secondary);
}
.sce5-quote p { font-size: 1.25rem; color: var(--sce5-text); font-style: italic; margin-bottom: 0.4rem; }
.sce5-quote span { font-size: 1.1rem; color: var(--sce5-primary); font-weight: 700; }

/* ---------- App CTA ---------- */
.sce5-app-cta {
  background: linear-gradient(135deg, rgba(255,128,0,0.18), rgba(255,235,59,0.12));
  border-radius: var(--sce5-radius);
  padding: 1.4rem;
  text-align: center;
  border: 0.15rem solid var(--sce5-primary);
}
.sce5-app-cta h3 { color: var(--sce5-secondary); margin-bottom: 0.6rem; }
.sce5-app-cta p { color: var(--sce5-text-muted); font-size: 1.25rem; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.sce5-footer {
  background: var(--sce5-bg-2);
  padding: 2rem 1.4rem calc(var(--sce5-bottom-h) + 1.5rem);
  margin-top: 2rem;
  border-top: 0.2rem solid var(--sce5-primary);
}
.sce5-footer-brand { color: var(--sce5-text-muted); font-size: 1.25rem; line-height: 1.6; margin-bottom: 1.2rem; }
.sce5-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.sce5-footer-promos .sce5-btn { padding: 0.6rem 1rem; font-size: 1.2rem; min-height: 3rem; }
.sce5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.sce5-footer-links a { color: var(--sce5-text-muted); font-size: 1.2rem; }
.sce5-footer-links a:hover { color: var(--sce5-primary); }
.sce5-footer-copy {
  border-top: 0.1rem solid var(--sce5-border);
  padding-top: 1rem;
  font-size: 1.1rem;
  color: var(--sce5-text-muted);
}

/* ---------- Bottom navigation bar ---------- */
.sce5-bottombar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--sce5-bottom-h);
  background: linear-gradient(0deg, #1c1c1c 0%, #2C2C2C 100%);
  border-top: 0.2rem solid var(--sce5-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.45);
}
.sce5-bottombar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--sce5-text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  position: relative;
  transition: color 0.2s, transform 0.15s;
}
.sce5-bottombar-btn:active { transform: scale(0.9); }
.sce5-bottombar-btn i,
.sce5-bottombar-btn .material-icons,
.sce5-bottombar-btn ion-icon {
  font-size: 2.3rem;
}
.sce5-bottombar-btn span { font-size: 1.05rem; }
.sce5-bottombar-btn:hover { color: var(--sce5-secondary); }
.sce5-bottombar-active { color: var(--sce5-primary); }
.sce5-bottombar-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 2.4rem;
  height: 0.25rem;
  border-radius: 0 0 0.4rem 0.4rem;
  background: var(--sce5-primary);
}
.sce5-bottombar-center {
  position: relative;
  transform: translateY(-1.4rem);
}
.sce5-bottombar-center i,
.sce5-bottombar-center .material-icons {
  background: linear-gradient(135deg, #FF8000, #FFEB3B);
  color: #2C2C2C !important;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem !important;
  box-shadow: 0 0.4rem 1rem rgba(255,128,0,0.5);
}

/* ---------- Reveal animation ---------- */
.sce5-reveal { opacity: 0; transform: translateY(2rem); transition: opacity 0.5s ease, transform 0.5s ease; }
.sce5-inview { opacity: 1; transform: translateY(0); }

/* ---------- Main padding for bottom nav clearance ---------- */
main { padding-bottom: calc(var(--sce5-bottom-h) + 1.2rem); }

/* ---------- Desktop: hide bottom bar, expand canvas ---------- */
@media (min-width: 769px) {
  .sce5-bottombar { display: none; }
  body { max-width: 430px; }
  main { padding-bottom: 2rem; }
  .sce5-footer { padding-bottom: 2rem; }
}
