/* ===========================================================
   33win04 - Common Stylesheet (Vietnamese market)
   Class prefix: s629-
   Palette: #FF91A4 | #2D2D2D | #CCCCCC | #BAFFC9 | #34495E | #F8F8FF
   Mobile-first: max-width 430px baseline.
   =========================================================== */

:root {
  --s629-primary: #FF91A4;        /* hot pink accent */
  --s629-bg: #2D2D2D;             /* main dark background */
  --s629-bg-soft: #34495E;        /* secondary dark surface */
  --s629-text: #F8F8FF;           /* light text */
  --s629-muted: #CCCCCC;          /* muted text */
  --s629-mint: #BAFFC9;           /* fresh mint highlight */
  --s629-card: rgba(248, 248, 255, 0.06);
  --s629-border: rgba(255, 145, 164, 0.25);
  --s629-radius: 14px;
  --s629-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --s629-header-h: 56px;
  --s629-bottom-h: 62px;
}

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

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

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--s629-bg);
  color: var(--s629-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Layout ---------- */
.s629-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s629-wrapper { padding: 1.4rem 1.2rem; }
.s629-section { padding: 2rem 0; }
.s629-section--alt { background: var(--s629-bg-soft); }
.s629-grid { display: grid; gap: 1rem; }
.s629-grid--tiles { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.s629-grid--cards { grid-template-columns: 1fr; gap: 1.1rem; }

/* ---------- Header ---------- */
.s629-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s629-header-h);
  background: linear-gradient(135deg, #2D2D2D 0%, #34495E 100%);
  border-bottom: 1px solid var(--s629-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.s629-header-left { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.s629-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--s629-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.3rem;
  flex-shrink: 0;
}
.s629-logo i { font-size: 1.8rem; color: #fff; }
.s629-brand {
  font-size: 1.5rem; font-weight: 800; color: var(--s629-text);
  white-space: nowrap; letter-spacing: 0.3px;
}
.s629-brand span { color: var(--s629-primary); }
.s629-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s629-icon-btn {
  background: transparent; border: none; color: var(--s629-text);
  font-size: 2rem; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 8px;
}
.s629-icon-btn:active { background: rgba(255, 145, 164, 0.18); }

/* ---------- Buttons ---------- */
.s629-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; cursor: pointer; font-weight: 700;
  padding: 0.7rem 1rem; font-size: 1.25rem; border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none; min-height: 36px;
}
.s629-btn:active { transform: scale(0.96); }
.s629-btn--register { background: var(--s629-primary); color: #fff; box-shadow: 0 4px 12px rgba(255, 145, 164, 0.4); }
.s629-btn--login { background: transparent; color: var(--s629-text); border: 1.5px solid var(--s629-primary); }
.s629-btn--cta { background: linear-gradient(135deg, var(--s629-primary) 0%, #ff5e7e 100%); color: #fff; padding: 1rem 1.6rem; font-size: 1.4rem; box-shadow: var(--s629-shadow); }
.s629-btn--ghost { background: var(--s629-card); color: var(--s629-text); border: 1px solid var(--s629-border); }
.s629-btn-block { display: flex; width: 100%; }

/* ---------- Nav drawer ---------- */
.s629-nav-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 9998;
}
.s629-nav-overlay--show { opacity: 1; pointer-events: auto; }
.s629-nav-drawer {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px; height: 100vh;
  background: var(--s629-bg-soft); padding: 1.5rem 1.2rem;
  transform: translateX(0); transition: right 0.3s ease; z-index: 9999;
  overflow-y: auto;
}
.s629-nav-drawer--open { right: 0; }
.s629-nav-drawer h4 { font-size: 1.3rem; color: var(--s629-muted); margin: 1.2rem 0 0.6rem; text-transform: uppercase; letter-spacing: 1px; }
.s629-nav-drawer a {
  display: block; padding: 0.8rem 0.4rem; color: var(--s629-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 1.3rem;
}
.s629-nav-drawer a:active { color: var(--s629-primary); }
.s629-nav-close { position: absolute; top: 0.8rem; right: 0.8rem; font-size: 2rem; color: var(--s629-text); background: none; border: none; cursor: pointer; }

/* ---------- Body offset for fixed header ---------- */
.s629-main { padding-top: calc(var(--s629-header-h) + 6px); }
@media (max-width: 768px) { .s629-main { padding-bottom: calc(var(--s629-bottom-h) + 18px); } }

/* ---------- Hero / Carousel ---------- */
.s629-carousel {
  position: relative; border-radius: var(--s629-radius); overflow: hidden;
  box-shadow: var(--s629-shadow); margin: 1rem 0;
}
.s629-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #1c1c1c; }
.s629-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  display: flex; align-items: flex-end;
}
.s629-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s629-carousel-slide--active { opacity: 1; }
.s629-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem; background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
  color: #fff; font-size: 1.2rem;
}
.s629-carousel-caption strong { color: var(--s629-mint); display: block; font-size: 1.35rem; }
.s629-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.s629-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45); border: none; cursor: pointer;
}
.s629-carousel-dot--active { background: var(--s629-primary); width: 22px; border-radius: 4px; }

/* ---------- Headings ---------- */
.s629-h1 { font-size: 2rem; font-weight: 800; line-height: 1.35; margin-bottom: 0.6rem; }
.s629-h1 span { color: var(--s629-primary); }
.s629-h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.6rem; }
.s629-h2 i { color: var(--s629-primary); font-size: 1.9rem; }
.s629-h3 { font-size: 1.45rem; font-weight: 700; margin: 1rem 0 0.4rem; color: var(--s629-mint); }
.s629-lead { color: var(--s629-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.s629-pill {
  display: inline-block; padding: 0.25rem 0.8rem; border-radius: 999px;
  background: rgba(186, 255, 201, 0.15); color: var(--s629-mint);
  font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem;
}

/* ---------- Filter chips ---------- */
.s629-filter-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem; -ms-overflow-style: none; scrollbar-width: none; }
.s629-filter-bar::-webkit-scrollbar { display: none; }
.s629-filter-btn {
  flex-shrink: 0; background: var(--s629-card); border: 1px solid var(--s629-border);
  color: var(--s629-text); padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
.s629-filter-btn--active { background: var(--s629-primary); color: #fff; border-color: var(--s629-primary); }

/* ---------- Game tiles ---------- */
.s629-game-tile {
  background: var(--s629-card); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
}
.s629-game-tile:active { transform: scale(0.96); box-shadow: 0 6px 16px rgba(255, 145, 164, 0.3); }
.s629-game-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.s629-game-tile .s629-game-name {
  padding: 0.4rem 0.45rem 0.5rem; font-size: 1.05rem; text-align: center;
  color: var(--s629-text); line-height: 1.2rem; min-height: 2.4rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Cards ---------- */
.s629-card {
  background: var(--s629-card); border-radius: var(--s629-radius);
  padding: 1.2rem; border: 1px solid var(--s629-border);
  box-shadow: var(--s629-shadow);
}
.s629-card p { color: var(--s629-muted); margin-bottom: 0.6rem; font-size: 1.25rem; }
.s629-feature-row { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 0.9rem; }
.s629-feature-row i { color: var(--s629-primary); font-size: 1.8rem; flex-shrink: 0; margin-top: 0.2rem; }
.s629-feature-row .s629-feature-title { font-weight: 700; font-size: 1.3rem; color: var(--s629-text); }
.s629-feature-row p { margin: 0.2rem 0 0; }

/* ---------- Testimonials ---------- */
.s629-quote {
  border-left: 3px solid var(--s629-primary); padding: 0.6rem 1rem; margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.03); border-radius: 0 8px 8px 0;
}
.s629-quote .s629-quote-author { display: block; margin-top: 0.4rem; font-size: 1.15rem; color: var(--s629-mint); font-weight: 700; }

/* ---------- Winners ticker ---------- */
.s629-winners {
  background: linear-gradient(135deg, rgba(255, 145, 164, 0.15), rgba(186, 255, 201, 0.1));
  border-radius: var(--s629-radius); padding: 0.9rem 1.1rem; margin: 1rem 0;
}
.s629-winner-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 1.2rem; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.s629-winner-row:last-child { border-bottom: none; }
.s629-winner-row strong { color: var(--s629-mint); }

/* ---------- Payment ---------- */
.s629-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.s629-pay-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem;
  border-radius: 8px; background: var(--s629-card); border: 1px solid var(--s629-border);
  font-size: 1.15rem; color: var(--s629-text);
}
.s629-pay-chip i { color: var(--s629-mint); font-size: 1.5rem; }

/* ---------- CTA strip ---------- */
.s629-cta {
  background: linear-gradient(135deg, var(--s629-primary) 0%, #ff5e7e 100%);
  border-radius: var(--s629-radius); padding: 1.4rem 1.2rem; text-align: center; color: #fff;
  margin: 1.2rem 0; box-shadow: var(--s629-shadow);
}
.s629-cta h3 { color: #fff; margin-top: 0; }
.s629-cta p { color: rgba(255, 255, 255, 0.92); margin: 0.4rem 0 1rem; font-size: 1.25rem; }
.s629-cta .s629-btn { background: #fff; color: var(--s629-primary); }

/* ---------- App download ---------- */
.s629-app-card { display: flex; align-items: center; gap: 1rem; background: var(--s629-card); padding: 1rem; border-radius: var(--s629-radius); border: 1px solid var(--s629-border); }
.s629-app-card .s629-app-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--s629-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.s629-app-card .s629-app-icon i { font-size: 3rem; color: #fff; }
.s629-app-card h4 { font-size: 1.4rem; color: var(--s629-text); }
.s629-app-card p { font-size: 1.15rem; color: var(--s629-muted); margin: 0.2rem 0 0.6rem; }

/* ---------- Footer ---------- */
.s629-footer {
  background: #1c1c1c; border-top: 1px solid var(--s629-border);
  padding: 1.8rem 1.2rem 2rem; margin-top: 1.5rem;
}
.s629-footer p { color: var(--s629-muted); font-size: 1.2rem; margin-bottom: 0.8rem; }
.s629-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin: 0.6rem 0 1rem; }
.s629-footer-links a { color: var(--s629-muted); font-size: 1.15rem; text-decoration: underline; }
.s629-footer-links a:active { color: var(--s629-primary); }
.s629-footer-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 0.8rem 0 1.2rem; }
.s629-footer-copy { text-align: center; font-size: 1.1rem; color: rgba(204, 204, 204, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 1rem; }

/* ---------- Mobile bottom nav ---------- */
.s629-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  height: var(--s629-bottom-h);
  background: linear-gradient(180deg, #b81d36 0%, #8c0f24 100%);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000; box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.45);
  border-top: 2px solid rgba(255, 145, 164, 0.4);
}
.s629-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 4px 2px;
  transition: transform 0.15s ease, background 0.2s ease;
  position: relative;
}
.s629-bottom-nav-btn i, .s629-bottom-nav-btn .material-icons-outlined,
.s629-bottom-nav-btn ion-icon { font-size: 2.2rem; color: #fff; }
.s629-bottom-nav-btn .s629-bottom-label { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1; }
.s629-bottom-nav-btn:active { transform: scale(0.9); background: rgba(255, 255, 255, 0.12); }
.s629-bottom-nav-btn--center {
  background: #fff; border-radius: 50%; width: 56px; height: 56px;
  margin-top: -22px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--s629-primary);
  align-self: flex-start; flex: 0 0 auto;
}
.s629-bottom-nav-btn--center i, .s629-bottom-nav-btn--center .material-icons-outlined { color: var(--s629-primary); font-size: 2.6rem; }
.s629-bottom-nav-btn--active::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; background: var(--s629-mint); border-radius: 0 0 4px 4px;
}

/* ---------- Help / article pages ---------- */
.s629-article-hero {
  background: radial-gradient(circle at top left, rgba(255,145,164,0.24), transparent 45%), var(--s629-card);
  border: 1px solid var(--s629-border); border-radius: var(--s629-radius);
  padding: 1.4rem; box-shadow: var(--s629-shadow); margin: 1rem 0;
}
.s629-step-list { display: grid; gap: 0.8rem; margin: 1rem 0; }
.s629-step-item {
  display: flex; gap: 0.8rem; align-items: flex-start; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,145,164,0.18); border-radius: 12px; padding: 0.9rem;
}
.s629-step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--s629-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.s629-faq-item { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.s629-faq-item:last-child { border-bottom: none; }
.s629-faq-item h3 { color: var(--s629-mint); font-size: 1.35rem; margin-bottom: 0.35rem; }
.s629-note {
  border-left: 3px solid var(--s629-mint); background: rgba(186,255,201,0.08);
  border-radius: 0 10px 10px 0; padding: 0.9rem; color: var(--s629-muted); margin: 1rem 0;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .s629-container { max-width: 1200px; }
  .s629-header { max-width: 100%; }
  .s629-bottom-nav { display: none; }
  .s629-grid--tiles { grid-template-columns: repeat(6, 1fr); }
  .s629-grid--cards { grid-template-columns: repeat(2, 1fr); }
  .s629-footer-buttons { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Helpers ---------- */
.s629-text-center { text-align: center; }
.s629-mt-1 { margin-top: 0.6rem; } .s629-mt-2 { margin-top: 1.2rem; }
.s629-mb-1 { margin-bottom: 0.6rem; } .s629-mb-2 { margin-bottom: 1.2rem; }
.s629-hidden { display: none; }
.s629-promo-text { color: var(--s629-mint); font-weight: 700; text-decoration: underline; }
