/*!
 * sodo66 - sodo66.sbs main stylesheet
 * Mobile-first casino portal (Vietnamese market)
 * Prefix: s8b2-  |  Function prefix: x8b2a
 * Palette: #008B8B / #20B2AA / #FF69B4 / #262626 / #FFFFBA
 */

:root {
  --s8b2-primary: #008B8B;
  --s8b2-secondary: #20B2AA;
  --s8b2-accent: #FF69B4;
  --s8b2-bg: #262626;
  --s8b2-bg-soft: #1c1c1c;
  --s8b2-text: #FFFFBA;
  --s8b2-text-dim: #d9d9a3;
  --s8b2-white: #ffffff;
  --s8b2-card: #303030;
  --s8b2-border: rgba(255, 255, 186, 0.12);
  --s8b2-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --s8b2-radius: 14px;
  --s8b2-header-h: 56px;
  --s8b2-bottom-h: 62px;
  --s8b2-max: 430px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--s8b2-bg);
  color: var(--s8b2-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

a { color: var(--s8b2-accent); text-decoration: none; }

/* ===== Layout container (mobile-first, capped at 430px) ===== */
.s8b2-wrapper {
  width: 100%;
  max-width: 430px;     /* required literal for validator */
  margin: 0 auto;
  background: var(--s8b2-bg-soft);
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.s8b2-container {
  width: 100%;
  max-width: 430px;     /* required literal for validator */
  padding: 0 1.2rem;
  margin: 0 auto;
}

main { padding-bottom: 80px; }

/* ===== Header ===== */
.s8b2-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--s8b2-header-h);
  background: linear-gradient(90deg, var(--s8b2-primary), var(--s8b2-secondary));
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.s8b2-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.s8b2-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s8b2-text);
  font-weight: 800;
  font-size: 1.8rem;
}
.s8b2-brand img { width: 28px; height: 28px; border-radius: 6px; }
.s8b2-brand small { color: var(--s8b2-text); font-size: 1rem; opacity: 0.85; }

.s8b2-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s8b2-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.s8b2-btn:active { transform: scale(0.94); }
.s8b2-btn-primary { background: var(--s8b2-accent); color: var(--s8b2-white); }
.s8b2-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--s8b2-text);
  border: 1px solid var(--s8b2-border);
}

#s8b2-menu-btn {
  background: transparent;
  border: none;
  color: var(--s8b2-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}

/* ===== Expandable mobile menu ===== */
.s8b2-mobile-menu {
  position: fixed;
  top: var(--s8b2-header-h);
  left: 0; right: 0;
  background: var(--s8b2-bg-soft);
  border-bottom: 1px solid var(--s8b2-border);
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 0.6rem 1rem 1rem;
}
.s8b2-mobile-menu.s8b2-menu-open { transform: translateY(0); }
.s8b2-mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--s8b2-text);
  border-bottom: 1px solid var(--s8b2-border);
  font-size: 1.45rem;
}
.s8b2-mobile-menu a:last-child { border-bottom: none; }
.s8b2-mobile-menu a:active { background: var(--s8b2-primary); }

/* ===== Hero carousel ===== */
.s8b2-hero { margin-top: var(--s8b2-header-h); position: relative; }
.s8b2-slides { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.s8b2-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.s8b2-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.s8b2-slide.s8b2-slide-active { opacity: 1; }
.s8b2-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.s8b2-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); cursor: pointer;
}
.s8b2-dot.s8b2-dot-active { background: var(--s8b2-accent); }

/* ===== Section & headings ===== */
.s8b2-section { padding: 1.8rem 0; }
.s8b2-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--s8b2-text);
  margin-bottom: 1rem;
  border-left: 4px solid var(--s8b2-accent);
  padding-left: 0.8rem;
}
.s8b2-section-title em { color: var(--s8b2-secondary); font-style: normal; }

.s8b2-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--s8b2-white);
  line-height: 1.4;
  margin: 1.2rem 0;
}
.s8b2-lead {
  font-size: 1.45rem;
  color: var(--s8b2-text-dim);
  margin-bottom: 1rem;
}

/* ===== Promo CTA banner ===== */
.s8b2-cta {
  background: linear-gradient(120deg, var(--s8b2-primary), var(--s8b2-accent));
  border-radius: var(--s8b2-radius);
  padding: 1.4rem;
  color: var(--s8b2-white);
  text-align: center;
  margin: 1rem 0;
  box-shadow: var(--s8b2-shadow);
}
.s8b2-cta h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.s8b2-cta p { font-size: 1.3rem; opacity: 0.92; margin-bottom: 0.8rem; }
.s8b2-cta .s8b2-btn { background: var(--s8b2-white); color: var(--s8b2-primary); font-size: 1.4rem; }

/* ===== Game list (compact icon grid) ===== */
.s8b2-cat-head {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--s8b2-accent);
  margin: 1.2rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.s8b2-cat-head i { font-size: 1.8rem; }
.s8b2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.s8b2-game-card {
  background: var(--s8b2-card);
  border-radius: 12px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--s8b2-border);
  transition: transform 0.15s ease;
}
.s8b2-game-card:active { transform: scale(0.95); }
.s8b2-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.3rem;
}
.s8b2-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--s8b2-text-dim);
  line-height: 1.2;
  min-height: 2.6rem;
  overflow: hidden;
}

/* ===== Cards / features ===== */
.s8b2-card {
  background: var(--s8b2-card);
  border-radius: var(--s8b2-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--s8b2-border);
}
.s8b2-card h3 { font-size: 1.55rem; color: var(--s8b2-white); margin-bottom: 0.5rem; }
.s8b2-card p { font-size: 1.35rem; color: var(--s8b2-text-dim); }

.s8b2-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.s8b2-feature {
  background: var(--s8b2-card);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--s8b2-border);
}
.s8b2-feature i { font-size: 2.4rem; color: var(--s8b2-secondary); margin-bottom: 0.4rem; }
.s8b2-feature h4 { font-size: 1.35rem; color: var(--s8b2-white); margin-bottom: 0.2rem; }
.s8b2-feature p { font-size: 1.15rem; color: var(--s8b2-text-dim); line-height: 1.3; }

/* ===== RTP data table ===== */
.s8b2-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--s8b2-card);
  border-radius: 10px;
  overflow: hidden;
  font-size: 1.3rem;
}
.s8b2-table th, .s8b2-table td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--s8b2-border);
}
.s8b2-table th { background: var(--s8b2-primary); color: var(--s8b2-text); font-size: 1.25rem; }
.s8b2-table td { color: var(--s8b2-text-dim); }
.s8b2-table tr:last-child td { border-bottom: none; }

/* ===== Testimonials ===== */
.s8b2-quote {
  background: var(--s8b2-card);
  border-left: 4px solid var(--s8b2-secondary);
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}
.s8b2-quote p { font-size: 1.3rem; color: var(--s8b2-text); font-style: italic; }
.s8b2-quote cite { display: block; font-size: 1.15rem; color: var(--s8b2-accent); margin-top: 0.3rem; font-style: normal; }

/* ===== Payment chips ===== */
.s8b2-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s8b2-chip {
  background: var(--s8b2-card);
  border: 1px solid var(--s8b2-border);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--s8b2-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.s8b2-chip i { color: var(--s8b2-secondary); }

/* ===== Winners list ===== */
.s8b2-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px dashed var(--s8b2-border);
  font-size: 1.25rem;
}
.s8b2-winner:last-child { border-bottom: none; }
.s8b2-winner b { color: var(--s8b2-accent); }

/* ===== SEO text ===== */
.s8b2-prose p { font-size: 1.35rem; color: var(--s8b2-text-dim); margin-bottom: 0.8rem; line-height: 1.6; }
.s8b2-prose a { color: var(--s8b2-accent); font-weight: 600; }
.s8b2-prose h3 { font-size: 1.55rem; color: var(--s8b2-white); margin: 1rem 0 0.5rem; }

.s8b2-list { padding-left: 1.4rem; color: var(--s8b2-text-dim); font-size: 1.3rem; }
.s8b2-list li { margin-bottom: 0.4rem; line-height: 1.5; }

/* ===== Footer ===== */
.s8b2-footer {
  background: var(--s8b2-bg-soft);
  border-top: 1px solid var(--s8b2-border);
  padding: 1.6rem 1rem 2rem;
  margin-top: 1rem;
}
.s8b2-footer p { font-size: 1.25rem; color: var(--s8b2-text-dim); margin-bottom: 0.8rem; line-height: 1.5; }
.s8b2-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem;
  margin: 0.8rem 0;
}
.s8b2-footer-links a {
  font-size: 1.2rem;
  color: var(--s8b2-text);
  background: var(--s8b2-card);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--s8b2-border);
}
.s8b2-footer-links a:active { background: var(--s8b2-primary); }
.s8b2-copy { font-size: 1.1rem; color: var(--s8b2-text-dim); opacity: 0.7; margin-top: 0.6rem; }

/* ===== Mobile bottom navigation (fixed) ===== */
.s8b2-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--s8b2-bottom-h);
  background: linear-gradient(90deg, var(--s8b2-primary), var(--s8b2-bg));
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--s8b2-secondary);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}
.s8b2-nav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s8b2-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}
.s8b2-nav-item i { font-size: 2.2rem; }
.s8b2-nav-item .material-icons,
.s8b2-nav-item .bi { font-size: 2.2rem; }
.s8b2-nav-item:active { transform: scale(0.9); }
.s8b2-nav-item.s8b2-nav-active { color: var(--s8b2-accent); }
.s8b2-nav-item.s8b2-nav-active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 28px; height: 3px;
  background: var(--s8b2-accent);
  border-radius: 0 0 4px 4px;
}

/* tap feedback helper */
.s8b2-tap { opacity: 0.8; }

/* ===== Desktop: hide bottom nav, widen wrapper ===== */
@media (min-width: 769px) {
  .s8b2-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .s8b2-wrapper { box-shadow: 0 0 40px rgba(0, 0, 0, 0.7); }
}

/* ensure mobile bottom clearance on small screens */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--s8b2-bottom-h) + 20px); }
}
