/* KO666 - Base CSS. Prefix: s793-. Vietnamese mobile-first design. */
/* Palette: #3A3A3A (bg dark) | #DC143C (primary crimson) | #FF7F50 (accent coral) | #999999 (muted text) */

:root {
  --s793-bg: #3A3A3A;
  --s793-bg-2: #2a2a2a;
  --s793-bg-3: #1f1f1f;
  --s793-primary: #DC143C;
  --s793-accent: #FF7F50;
  --s793-text: #f5f5f5;
  --s793-muted: #999999;
  --s793-border: rgba(255,255,255,0.08);
  --s793-radius: 10px;
  --s793-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--s793-bg);
  color: var(--s793-text);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  word-break: break-word;
}

a { color: var(--s793-accent); text-decoration: none; }
a:hover { color: #fff; }

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

h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; color: #fff; }
h1 { font-size: 2.2rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.8rem; }
p { margin: 0 0 1em; line-height: 2.4rem; }

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

/* ============ Header ============ */
.s793-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1f1f1f 0%, #2a2a2a 100%);
  border-bottom: 2px solid var(--s793-primary);
  box-shadow: var(--s793-shadow);
}
.s793-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .8rem;
  min-height: 52px;
}
.s793-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.8rem;
}
.s793-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s793-logo .s793-brand { background: var(--s793-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

.s793-header-actions { display: flex; align-items: center; gap: .4rem; }
.s793-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-height: 36px;
  padding: 0 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.s793-btn:active { transform: scale(.96); }
.s793-btn-reg {
  background: var(--s793-primary);
  color: #fff;
  box-shadow: 0 2px 0 #8c0c25;
}
.s793-btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid var(--s793-accent);
}
.s793-btn-login:hover { background: rgba(255,127,80,0.12); }
.s793-menu-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: .4rem .6rem;
}

/* ============ Mobile Expandable Navigation Menu ============ */
.s793-mobile-menu {
  position: fixed;
  top: 52px; left: 0; right: 0;
  z-index: 9999;
  background: var(--s793-bg-3);
  border-bottom: 2px solid var(--s793-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.s793-mobile-menu.s793-menu-open { max-height: 360px; }
.s793-mobile-menu ul { list-style: none; margin: 0; padding: .4rem 0; }
.s793-mobile-menu li a {
  display: block;
  padding: .8rem 1.2rem;
  color: var(--s793-text);
  border-bottom: 1px solid var(--s793-border);
  font-size: 1.5rem;
}
.s793-mobile-menu li a:hover { background: rgba(220,20,60,0.15); color:#fff; }

/* ============ Main ============ */
main.s793-main {
  padding-top: 60px;
  padding-bottom: 0;
}
@media (max-width: 768px) {
  main.s793-main { padding-bottom: 80px; }
}

/* ============ Hero Carousel ============ */
.s793-hero {
  position: relative;
  margin: .8rem 0;
  border-radius: var(--s793-radius);
  overflow: hidden;
  box-shadow: var(--s793-shadow);
}
.s793-slides { position: relative; }
.s793-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.s793-slide.s793-active { display: block; }
.s793-slide img { width: 100%; height: 200px; object-fit: cover; }
.s793-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  padding: 1.2rem 1rem 1rem;
  color: #fff;
}
.s793-slide-caption h2 { margin: 0 0 .3rem; font-size: 1.8rem; }
.s793-slide-caption p { margin: 0; font-size: 1.3rem; color: var(--s793-accent); }
.s793-dots {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.s793-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
}
.s793-dot.s793-active { background: var(--s793-primary); }

/* === Section === */
.s793-section {
  margin: 1.4rem 0;
  padding: 1rem;
  background: var(--s793-bg-2);
  border-radius: var(--s793-radius);
  border: 1px solid var(--s793-border);
}
.s793-section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-size: 1.8rem;
  border-left: 4px solid var(--s793-primary);
  padding-left: .8rem;
  margin: 0 0 1rem;
}
.s793-section-title i { color: var(--s793-accent); }

.s793-lead {
  font-size: 1.5rem;
  color: var(--s793-muted);
  margin: 0 0 1rem;
}

/* === Game grid === */
.s793-cat-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--s793-accent);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 1.2rem 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 1px dashed var(--s793-border);
}
.s793-cat-head i { color: var(--s793-primary); }

.s793-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.s793-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--s793-bg-3);
  border-radius: 8px;
  padding: .6rem .3rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}
.s793-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--s793-primary);
  box-shadow: 0 4px 14px rgba(220,20,60,0.25);
}
.s793-game-card img {
  width: 64px; height: 64px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: .4rem;
}
.s793-game-name {
  font-size: 1.25rem;
  color: var(--s793-text);
  line-height: 1.3rem;
  height: 2.6rem;
  overflow: hidden;
  word-break: break-word;
}

/* === Promo CTA === */
.s793-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin: 1rem 0;
}
.s793-cta .s793-btn { flex: 1; min-width: 140px; }
.s793-text-link {
  color: var(--s793-accent);
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
}
.s793-text-link:hover { text-decoration: underline; color: #fff; }

/* === Info list / cards === */
.s793-info-list {
  list-style: none;
  margin: 0; padding: 0;
}
.s793-info-list li {
  padding: .6rem .8rem;
  margin: .4rem 0;
  background: var(--s793-bg-3);
  border-left: 3px solid var(--s793-accent);
  border-radius: 6px;
  font-size: 1.4rem;
  line-height: 2.2rem;
}

.s793-card {
  background: var(--s793-bg-3);
  border-radius: 8px;
  padding: 1rem;
  margin: .6rem 0;
  border: 1px solid var(--s793-border);
}
.s793-card h3 { color: var(--s793-accent); margin: 0 0 .5rem; font-size: 1.6rem; }

/* === Testimonials / winners === */
.s793-quote {
  background: var(--s793-bg-3);
  border-radius: 8px;
  padding: .9rem 1rem;
  margin: .5rem 0;
  border-left: 3px solid var(--s793-primary);
  font-size: 1.35rem;
}
.s793-quote b { color: var(--s793-accent); }

.s793-win-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .8rem;
  background: var(--s793-bg-3);
  border-radius: 6px;
  margin: .4rem 0;
  font-size: 1.35rem;
}
.s793-win-row .s793-amt { color: var(--s793-accent); font-weight: 700; }

/* === Payment methods === */
.s793-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.s793-pay-grid .s793-pay {
  background: var(--s793-bg-3);
  border-radius: 6px;
  padding: .6rem .2rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--s793-muted);
  border: 1px solid var(--s793-border);
}
.s793-pay i { display: block; font-size: 2.2rem; color: var(--s793-accent); margin-bottom: .2rem; }

/* === Footer === */
.s793-footer {
  background: var(--s793-bg-3);
  border-top: 2px solid var(--s793-primary);
  padding: 1.2rem 1rem 1.4rem;
  margin-top: 1.2rem;
  color: var(--s793-muted);
  font-size: 1.3rem;
}
.s793-footer h3 { color: var(--s793-accent); font-size: 1.5rem; margin: 0 0 .5rem; }
.s793-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  margin: .6rem 0;
}
.s793-footer-links a {
  color: var(--s793-muted);
  font-size: 1.3rem;
}
.s793-footer-links a:hover { color: var(--s793-accent); }
.s793-footer-promo {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0;
}
.s793-footer-promo .s793-btn { flex: 1; min-width: 120px; padding: 0 .6rem; min-height: 34px; font-size: 1.3rem; }
.s793-footer-copy { margin-top: .8rem; font-size: 1.2rem; color: #666; text-align: center; }

/* === Mobile Bottom Nav (hidden on desktop) === */
.s793-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-top: 2px solid var(--s793-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.45);
}
.s793-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s793-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.s793-bottomnav-btn i {
  font-size: 22px;
  color: var(--s793-muted);
}
.s793-bottomnav-btn:hover i,
.s793-bottomnav-btn.s793-active i { color: var(--s793-accent); }
.s793-bottomnav-btn:active { transform: scale(.92); }
.s793-bottomnav-btn.s793-active { color: var(--s793-accent); }
.s793-bottomnav-btn .s793-badge {
  position: absolute; top: 2px; right: 20%;
  background: var(--s793-primary); color: #fff;
  font-size: 1rem; min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.s793-bottomnav-btn { position: relative; }

@media (min-width: 769px) {
  .s793-bottomnav { display: none; }
  .s793-container { max-width: 760px; }
  .s793-game-grid { grid-template-columns: repeat(6, 1fr); }
}

/* === Utility (compacted) === */
.s793-tag { display: inline-block; background: rgba(255,127,80,0.15); color: var(--s793-accent); border: 1px solid var(--s793-accent); border-radius: 4px; padding: 0 .4rem; font-size: 1.1rem; margin-right: .3rem; }
.s793-hot { position: absolute; top: 4px; right: 4px; background: var(--s793-primary); color: #fff; font-size: 1rem; padding: 0 4px; border-radius: 3px; }
.s793-game-card { position: relative; }