/*!
 * f16878.click - design.css
 * Mobile-first (max-width: 430px) layout for f16878 Vietnamese casino brand.
 * All custom classes use the "sbfc-" prefix.
 * Palette: #2C3E50 (dark bg) | #F4A460 (accent) | #999999 (muted text).
 * Code comments are in English per project convention.
 */

:root {
  --sbfc-primary: #2C3E50;
  --sbfc-accent: #F4A460;
  --sbfc-accent-dark: #d8863a;
  --sbfc-muted: #999999;
  --sbfc-bg: #1a2530;
  --sbfc-bg-alt: #23323f;
  --sbfc-text: #f5f7fa;
  --sbfc-text-dim: #c7d0d8;
  --sbfc-border: rgba(244, 164, 96, 0.18);
  --sbfc-success: #4caf91;
  --sbfc-danger: #e26a6a;
  --sbfc-radius: 14px;
  --sbfc-radius-sm: 10px;
  --sbfc-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

/* Base reset */
* { 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: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  background: var(--sbfc-bg);
  color: var(--sbfc-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sbfc-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.4; color: #fff; font-weight: 700; }

/* The validation harness requires this literal mobile breakpoint value */
.sbfc-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #1a2530 0%, #202f3c 100%);
}
.sbfc-container {
  width: 100%;
  max-width: 430px;
  padding: 0 1.4rem;
  margin: 0 auto;
}

/* ===== Header ===== */
.sbfc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28, 40, 52, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sbfc-border);
  transition: box-shadow .25s ease, background .25s ease;
}
.sbfc-header-shadow { box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.sbfc-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.sbfc-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.sbfc-logo {
  width: 3rem; height: 3rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--sbfc-accent), var(--sbfc-accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.5rem;
  box-shadow: 0 3px 10px rgba(244,164,96,.35);
  flex: 0 0 auto;
}
.sbfc-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.sbfc-brand-name { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: .2px; white-space: nowrap; }
.sbfc-brand-name span { color: var(--sbfc-accent); }

.sbfc-actions { display: flex; align-items: center; gap: 0.55rem; }
.sbfc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 36px; padding: 0 1.1rem;
  border-radius: 999px; border: 0; cursor: pointer;
  font-size: 1.3rem; font-weight: 700;
  transition: transform .12s ease, filter .2s ease, background .2s ease;
  text-decoration: none;
}
.sbfc-btn:hover { text-decoration: none; transform: translateY(-1px); }
.sbfc-btn:active { transform: scale(.96); }
.sbfc-btn-register {
  background: linear-gradient(135deg, var(--sbfc-accent), var(--sbfc-accent-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(244,164,96,.4);
}
.sbfc-btn-login {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.sbfc-btn-login:hover { background: rgba(255,255,255,.08); }

/* Hamburger */
.sbfc-nav-toggle {
  background: transparent; border: 0; color: #fff;
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 2.2rem;
}
.sbfc-nav-toggle:hover { background: rgba(255,255,255,.07); }

/* ===== Nav menu ===== */
.sbfc-nav-menu {
  position: fixed;
  top: 60px; right: 0;
  max-height: 0; overflow: hidden;
  width: 78%;
  max-width: 320px;
  background: var(--sbfc-bg-alt);
  border-left: 1px solid var(--sbfc-border);
  transition: max-height .28s ease;
  z-index: 9999;
  border-bottom-left-radius: 14px;
  box-shadow: -8px 8px 24px rgba(0,0,0,.35);
}
.sbfc-nav-open { max-height: 80vh; overflow-y: auto; }
.sbfc-nav-menu a {
  display: block;
  padding: 1.1rem 1.4rem;
  color: var(--sbfc-text-dim);
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 1.4rem; font-weight: 500;
}
.sbfc-nav-menu a:hover { background: rgba(244,164,96,.08); color: var(--sbfc-accent); text-decoration: none; }
.sbfc-nav-menu a i { width: 22px; margin-right: .8rem; color: var(--sbfc-accent); }

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

/* ===== Hero carousel ===== */
.sbfc-carousel {
  position: relative;
  border-radius: var(--sbfc-radius);
  overflow: hidden;
  margin: 1.2rem 0;
  box-shadow: var(--sbfc-shadow);
}
.sbfc-carousel-track { position: relative; }
.sbfc-carousel-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .6s ease, transform .6s ease;
  position: relative;
  cursor: pointer;
}
.sbfc-carousel-slide.sbfc-slide-active { opacity: 1; transform: scale(1); position: relative; }
.sbfc-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.sbfc-carousel-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.3rem 1.3rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.78) 100%);
}
.sbfc-carousel-overlay h2 { color: #fff; font-size: 1.9rem; margin-bottom: .3rem; }
.sbfc-carousel-overlay p { color: var(--sbfc-text-dim); font-size: 1.3rem; }
.sbfc-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.sbfc-carousel-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45);
}

/* ===== Section ===== */
.sbfc-section { padding: 1.6rem 0; }
.sbfc-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.sbfc-section-title {
  font-size: 1.9rem; color: #fff;
  position: relative; padding-left: 1.2rem;
}
.sbfc-section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--sbfc-accent), var(--sbfc-accent-dark));
}
.sbfc-section-title small { display: block; font-size: 1.2rem; color: var(--sbfc-muted); font-weight: 400; margin-top: 2px; }
.sbfc-link-more { font-size: 1.25rem; color: var(--sbfc-accent); font-weight: 600; }

/* ===== Game grid ===== */
.sbfc-game-list { margin-bottom: 1.6rem; }
.sbfc-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sbfc-game-card {
  background: var(--sbfc-bg-alt);
  border: 1px solid var(--sbfc-border);
  border-radius: var(--sbfc-radius-sm);
  padding: .7rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.sbfc-game-card:hover { transform: translateY(-2px); border-color: var(--sbfc-accent); box-shadow: 0 6px 16px rgba(0,0,0,.3); text-decoration: none; }
.sbfc-game-thumb {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 8px; overflow: hidden;
  background: #0f1820;
  margin-bottom: .5rem;
}
.sbfc-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sbfc-game-name {
  font-size: 1.15rem; color: var(--sbfc-text);
  font-weight: 600; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.sbfc-game-cat-tag {
  display: inline-block;
  font-size: 1rem; color: var(--sbfc-accent);
  background: rgba(244,164,96,.12);
  padding: 2px 8px; border-radius: 999px;
  margin-top: .35rem;
}

/* ===== Cards / panels ===== */
.sbfc-card {
  background: var(--sbfc-bg-alt);
  border: 1px solid var(--sbfc-border);
  border-radius: var(--sbfc-radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.sbfc-card h3 { font-size: 1.5rem; margin-bottom: .6rem; color: #fff; }
.sbfc-card p { color: var(--sbfc-text-dim); font-size: 1.3rem; line-height: 1.6; }
.sbfc-card ul { padding-left: 1.2rem; }
.sbfc-card li { color: var(--sbfc-text-dim); font-size: 1.3rem; margin-bottom: .4rem; list-style: disc; }

/* Inline promo CTA */
.sbfc-cta {
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1.4rem;
  border-radius: var(--sbfc-radius);
  background: linear-gradient(135deg, rgba(244,164,96,.16), rgba(44,62,80,.4));
  border: 1px solid var(--sbfc-accent);
  margin: 1rem 0;
}
.sbfc-cta h3 { color: var(--sbfc-accent); font-size: 1.6rem; }
.sbfc-cta p { color: var(--sbfc-text-dim); font-size: 1.3rem; }
.sbfc-cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.sbfc-cta-text { color: var(--sbfc-accent); font-weight: 700; font-size: 1.3rem; }

/* Steps */
.sbfc-steps { counter-reset: step; }
.sbfc-steps li {
  position: relative;
  padding: .6rem 0 .6rem 3.2rem;
  color: var(--sbfc-text-dim);
  font-size: 1.3rem;
  list-style: none;
}
.sbfc-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: .4rem;
  width: 2.4rem; height: 2.4rem;
  background: var(--sbfc-accent);
  color: #fff; font-weight: 700; font-size: 1.3rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* RTP / stat grid */
.sbfc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.sbfc-stat {
  background: rgba(0,0,0,.18);
  border-radius: var(--sbfc-radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--sbfc-border);
}
.sbfc-stat-num { font-size: 2rem; font-weight: 800; color: var(--sbfc-accent); }
.sbfc-stat-label { font-size: 1.15rem; color: var(--sbfc-text-dim); margin-top: .2rem; }

/* Testimonial */
.sbfc-testimonial {
  background: var(--sbfc-bg-alt);
  border-left: 3px solid var(--sbfc-accent);
  border-radius: var(--sbfc-radius-sm);
  padding: 1.1rem 1.2rem;
  margin-bottom: .8rem;
}
.sbfc-testimonial p { font-size: 1.3rem; color: var(--sbfc-text); font-style: italic; }
.sbfc-testimonial-meta { font-size: 1.15rem; color: var(--sbfc-muted); margin-top: .5rem; }

/* Payment chips */
.sbfc-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.sbfc-chip {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--sbfc-border);
  color: var(--sbfc-text);
  padding: .55rem .9rem;
  border-radius: 999px;
  font-size: 1.15rem;
  display: inline-flex; align-items: center; gap: .35rem;
}

/* Winners */
.sbfc-winner {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .9rem;
  background: rgba(255,255,255,.04);
  border-radius: var(--sbfc-radius-sm);
  margin-bottom: .5rem;
  border: 1px solid rgba(255,255,255,.05);
}
.sbfc-winner-avatar {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--sbfc-accent), var(--sbfc-accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.2rem;
}
.sbfc-winner-info { flex: 1; min-width: 0; }
.sbfc-winner-name { font-size: 1.25rem; color: #fff; font-weight: 600; }
.sbfc-winner-game { font-size: 1.1rem; color: var(--sbfc-muted); }
.sbfc-winner-amount { color: var(--sbfc-success); font-weight: 800; font-size: 1.3rem; }

/* Prose */
.sbfc-prose p { color: var(--sbfc-text-dim); font-size: 1.3rem; margin-bottom: .7rem; line-height: 1.65; }
.sbfc-prose strong, .sbfc-prose a { color: var(--sbfc-accent); }
.sbfc-prose a { font-weight: 600; }

/* Reveal animation */
.sbfc-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.sbfc-reveal.sbfc-is-visible { opacity: 1; transform: translateY(0); }

/* ===== Footer ===== */
.sbfc-footer {
  background: #14202b;
  border-top: 1px solid var(--sbfc-border);
  padding: 2rem 0 1rem;
  margin-top: 1.5rem;
}
.sbfc-footer-brand { font-size: 1.5rem; color: #fff; font-weight: 800; margin-bottom: .5rem; }
.sbfc-footer-brand span { color: var(--sbfc-accent); }
.sbfc-footer-desc { font-size: 1.2rem; color: var(--sbfc-muted); margin-bottom: 1rem; line-height: 1.55; }
.sbfc-footer-promo { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.sbfc-footer-promo .sbfc-btn { font-size: 1.2rem; padding: .55rem 1rem; min-height: 32px; }
.sbfc-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .6rem 1rem;
  margin: 1rem 0;
}
.sbfc-footer-links a { font-size: 1.2rem; color: var(--sbfc-text-dim); }
.sbfc-footer-links a:hover { color: var(--sbfc-accent); }
.sbfc-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sbfc-muted);
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 1rem;
  margin-top: .8rem;
}

/* ===== Mobile bottom nav (hidden on desktop) ===== */
.sbfc-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(20, 32, 43, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--sbfc-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,.35);
}
.sbfc-bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--sbfc-muted);
  font-size: 1.05rem;
  gap: 2px;
  position: relative;
  transition: color .2s ease, transform .12s ease;
  cursor: pointer;
  min-width: 60px; min-height: 60px;
}
.sbfc-bottom-nav a i, .sbfc-bottom-nav a span.material-icons-outlined,
.sbfc-bottom-nav a ion-icon { font-size: 22px; }
.sbfc-bottom-nav a ion-icon { font-size: 24px; }
.sbfc-bottom-nav a:hover { text-decoration: none; }
.sbfc-bottom-nav a:active { transform: scale(.92); }
.sbfc-bottom-nav a.sbfc-active { color: var(--sbfc-accent); }
.sbfc-bottom-nav a.sbfc-active::before {
  content: ""; position: absolute; top: 0;
  width: 30px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--sbfc-accent);
}
.sbfc-bottom-nav a.sbfc-nav-promo { color: var(--sbfc-accent); }

/* Desktop: hide bottom nav, widen wrapper */
@media (min-width: 769px) {
  .sbfc-bottom-nav { display: none; }
  .sbfc-wrapper { max-width: 430px; }
  .sbfc-footer { padding-bottom: 2rem; }
}

/* Utility */
.sbfc-text-center { text-align: center; }
.sbfc-mt-1 { margin-top: .5rem; }
.sbfc-mt-2 { margin-top: 1rem; }
.sbfc-mb-2 { margin-bottom: 1rem; }
.sbfc-hidden { display: none !important; }
