/* ============================================================
 * casino-app.cfd - base stylesheet
 * All custom classes use the wb416- prefix.
 * Palette: #F5DEB3 | #FFFFFF | #008000 | #DEB887 | #34495E | #9AFF9A
 * Dark shades are backgrounds, light shades are text.
 * Mobile-first: max-width 430px, root font 62.5%.
 * ============================================================ */

:root {
  --wb416-bg: #34495E;
  --wb416-bg-deep: #243341;
  --wb416-bg-card: #2c3e50;
  --wb416-gold: #DEB887;
  --wb416-gold-light: #F5DEB3;
  --wb416-green: #008000;
  --wb416-green-light: #9AFF9A;
  --wb416-white: #FFFFFF;
  --wb416-muted: #b9c6d4;
  --wb416-border: rgba(245, 222, 179, 0.22);
  --wb416-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  --wb416-radius: 1.2rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #2c3e50 0%, #34495E 40%, #243341 100%);
  color: var(--wb416-white);
  line-height: 1.5;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--wb416-gold-light); text-decoration: none; }
a:hover { color: var(--wb416-green-light); }
img { max-width: 100%; display: block; }

.wb416-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* ---------- Header ---------- */
.wb416-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(36, 51, 65, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wb416-border);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.wb416-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  gap: 1rem;
}
.wb416-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--wb416-gold-light);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.5px;
}
.wb416-logo .wb416-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #DEB887, #008000);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 3px 10px rgba(0, 128, 0, 0.45);
}
.wb416-logo small {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--wb416-muted);
}
.wb416-btn-group { display: flex; gap: 0.8rem; align-items: center; }
.wb416-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-size: 1.35rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.wb416-btn:active { transform: scale(0.96); }
.wb416-btn-login {
  background: transparent;
  color: var(--wb416-gold-light);
  border: 1px solid var(--wb416-gold);
}
.wb416-btn-login:hover { background: rgba(222, 184, 135, 0.12); }
.wb416-btn-register {
  background: linear-gradient(135deg, #008000, #9AFF9A);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 128, 0, 0.5);
}
.wb416-btn-register:hover { filter: brightness(1.08); }
.wb416-menu-btn {
  background: transparent;
  border: 1px solid var(--wb416-border);
  color: var(--wb416-gold-light);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ---------- Mobile slide-in menu ---------- */
.wb416-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--wb416-bg-deep);
  z-index: 9999;
  padding: 2rem 1.6rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 1px solid var(--wb416-border);
}
.wb416-mobile-menu.wb416-menu-open { right: 0; }
.wb416-menu-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.wb416-menu-mask.wb416-mask-show { opacity: 1; pointer-events: auto; }
.wb416-menu-title {
  font-size: 1.8rem;
  color: var(--wb416-gold-light);
  font-weight: 700;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--wb416-border);
  padding-bottom: 1rem;
}
.wb416-menu-link {
  display: block;
  padding: 1.1rem 0.6rem;
  color: var(--wb416-white);
  border-bottom: 1px dashed rgba(245, 222, 179, 0.15);
  font-size: 1.4rem;
}
.wb416-menu-link:hover { background: rgba(154, 255, 154, 0.08); color: var(--wb416-green-light); }

/* ---------- Hero ---------- */
.wb416-hero {
  margin: 1.4rem 0;
  border-radius: var(--wb416-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--wb416-shadow);
}
.wb416-hero-track { position: relative; width: 100%; }
.wb416-hero-slide {
  display: none;
  position: relative;
  background: linear-gradient(135deg, #1f2d3a, #2c3e50 60%, #008000);
}
.wb416-hero-slide.wb416-slide-active { display: block; }
.wb416-hero-slide-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem;
  min-height: 180px;
}
.wb416-hero-text { flex: 1; }
.wb416-hero-title {
  font-size: 2.2rem;
  color: var(--wb416-gold-light);
  font-weight: 800;
  margin: 0 0 0.6rem;
  line-height: 1.25;
}
.wb416-hero-sub {
  font-size: 1.3rem;
  color: var(--wb416-muted);
  margin: 0 0 1.2rem;
}
.wb416-hero-cta {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: linear-gradient(135deg, #DEB887, #F5DEB3);
  color: #243341;
  font-weight: 800;
  border-radius: 999px;
  font-size: 1.3rem;
}
.wb416-hero-img {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.wb416-hero-dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  padding: 0.8rem 0;
  background: rgba(0, 0, 0, 0.25);
}
.wb416-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245, 222, 179, 0.4);
  cursor: pointer;
}
.wb416-hero-dot.wb416-dot-active { background: var(--wb416-green-light); width: 20px; border-radius: 4px; }

/* ---------- Stats strip ---------- */
.wb416-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.4rem 0;
}
.wb416-stat {
  background: var(--wb416-bg-card);
  border: 1px solid var(--wb416-border);
  border-radius: 1rem;
  padding: 1rem 0.6rem;
  text-align: center;
}
.wb416-stat-num {
  font-size: 1.8rem;
  color: var(--wb416-green-light);
  font-weight: 800;
}
.wb416-stat-label {
  font-size: 1.1rem;
  color: var(--wb416-muted);
  margin-top: 0.3rem;
}

/* ---------- Section heading ---------- */
.wb416-section { margin: 2rem 0; }
.wb416-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.wb416-section-title {
  font-size: 1.8rem;
  color: var(--wb416-gold-light);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wb416-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #DEB887, #008000);
  border-radius: 4px;
}
.wb416-section-more {
  font-size: 1.2rem;
  color: var(--wb416-green-light);
}

/* ---------- Filter tabs ---------- */
.wb416-tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.wb416-tabs::-webkit-scrollbar { display: none; }
.wb416-tab {
  flex: 0 0 auto;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--wb416-border);
  background: var(--wb416-bg-card);
  color: var(--wb416-muted);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.wb416-tab.wb416-tab-active {
  background: linear-gradient(135deg, #008000, #9AFF9A);
  color: #fff;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.wb416-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.wb416-game-card {
  background: var(--wb416-bg-card);
  border: 1px solid var(--wb416-border);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.wb416-game-card:active { transform: scale(0.97); }
.wb416-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1a2530;
}
.wb416-game-card .wb416-game-name {
  padding: 0.5rem 0.6rem 0.7rem;
  font-size: 1.1rem;
  color: var(--wb416-white);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wb416-game-card .wb416-play-overlay {
  position: absolute;
  inset: 0 0 28px 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wb416-game-card:hover .wb416-play-overlay { opacity: 1; }
.wb416-play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #DEB887, #008000);
  color: #fff; display: grid; place-items: center;
  font-size: 1.6rem; border: none; cursor: pointer;
}
.wb416-hidden { display: none !important; }

/* ---------- Featured / promo block ---------- */
.wb416-feature {
  background: linear-gradient(135deg, #243341, #2c3e50);
  border: 1px solid var(--wb416-border);
  border-radius: var(--wb416-radius);
  padding: 1.6rem;
  margin: 1.6rem 0;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.wb416-feature-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, #DEB887, #008000);
  display: grid; place-items: center;
  color: #fff; font-size: 2.4rem; flex-shrink: 0;
}
.wb416-feature-body h3 {
  margin: 0 0 0.4rem;
  color: var(--wb416-gold-light);
  font-size: 1.5rem;
}
.wb416-feature-body p {
  margin: 0 0 0.8rem;
  color: var(--wb416-muted);
  font-size: 1.25rem;
}
.wb416-link-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #008000, #9AFF9A);
  color: #fff !important;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------- SEO article ---------- */
.wb416-article {
  background: var(--wb416-bg-card);
  border: 1px solid var(--wb416-border);
  border-radius: var(--wb416-radius);
  padding: 1.6rem;
  margin: 1.6rem 0;
}
.wb416-article h2 {
  color: var(--wb416-gold-light);
  font-size: 1.7rem;
  margin: 1.4rem 0 0.8rem;
}
.wb416-article h2:first-child { margin-top: 0; }
.wb416-article h3 {
  color: var(--wb416-green-light);
  font-size: 1.4rem;
  margin: 1.2rem 0 0.6rem;
}
.wb416-article p {
  color: var(--wb416-muted);
  font-size: 1.3rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}
.wb416-article ul { color: var(--wb416-muted); font-size: 1.3rem; padding-left: 1.6rem; }
.wb416-article li { margin-bottom: 0.5rem; line-height: 1.55; }
.wb416-article strong { color: var(--wb416-gold-light); }
.wb416-article a { color: var(--wb416-green-light); border-bottom: 1px dashed rgba(154,255,154,0.4); }

/* ---------- FAQ ---------- */
.wb416-faq-item {
  background: var(--wb416-bg-card);
  border: 1px solid var(--wb416-border);
  border-radius: 1rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.wb416-faq-q {
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--wb416-gold-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  gap: 1rem;
}
.wb416-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.3rem;
  color: var(--wb416-muted);
  font-size: 1.25rem;
  line-height: 1.55;
}
.wb416-faq-item.wb416-faq-open .wb416-faq-a {
  max-height: 500px;
  padding: 0 1.3rem 1.1rem;
}

/* ---------- Footer ---------- */
.wb416-footer {
  background: var(--wb416-bg-deep);
  border-top: 1px solid var(--wb416-border);
  padding: 2.2rem 1.4rem 7rem;
  margin-top: 2rem;
}
.wb416-footer h4 {
  color: var(--wb416-gold-light);
  font-size: 1.4rem;
  margin: 0 0 0.8rem;
}
.wb416-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.wb416-footer a {
  display: block;
  padding: 0.4rem 0;
  color: var(--wb416-muted);
  font-size: 1.2rem;
}
.wb416-footer a:hover { color: var(--wb416-green-light); }
.wb416-footer-bottom {
  border-top: 1px solid var(--wb416-border);
  padding-top: 1rem;
  text-align: center;
  color: var(--wb416-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* ---------- Bottom nav (mobile) ---------- */
.wb416-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 62px;
  background: rgba(36, 51, 65, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--wb416-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}
.wb416-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--wb416-muted);
  cursor: pointer;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s ease, transform 0.15s ease;
}
.wb416-nav-item .wb416-nav-icon { font-size: 22px; line-height: 1; }
.wb416-nav-item .wb416-nav-label { font-size: 11px; }
.wb416-nav-item.active { color: var(--wb416-green-light); }
.wb416-nav-item:hover { color: var(--wb416-gold-light); transform: translateY(-2px); }
.wb416-nav-item.wb416-nav-cta {
  position: relative;
  top: -14px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #008000, #9AFF9A);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,128,0,0.5);
  flex: 0 0 auto;
}
.wb416-nav-item.wb416-nav-cta .wb416-nav-icon { font-size: 26px; }
.wb416-nav-item.wb416-nav-cta .wb416-nav-label { display: none; }

/* ---------- Back to top ---------- */
.wb416-to-top {
  position: fixed;
  right: 14px; bottom: 78px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--wb416-gold);
  color: #243341;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}
.wb416-to-top.wb416-to-top-show { opacity: 1; pointer-events: auto; }

/* ---------- Desktop / tablet overrides ---------- */
@media (min-width: 769px) {
  .wb416-bottom-nav { display: none; }
  .wb416-menu-btn { display: none; }
  .wb416-container { max-width: 960px; }
  .wb416-game-grid { grid-template-columns: repeat(6, 1fr); }
  .wb416-footer-cols { grid-template-columns: repeat(4, 1fr); }
  body { font-size: 1.65rem; }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (max-width: 380px) {
  .wb416-game-grid { grid-template-columns: repeat(2, 1fr); }
  .wb416-hero-title { font-size: 1.9rem; }
}
