/* D188 - theme-b53d.css
   Palette: #999999 | #00CED1 (accent) | #0A0A0A (bg) | #F0FDFF (light) | #004D40 (deep green)
   All custom classes use the wb53d- prefix.
   Mobile-first, max-width 430px design. */
:root {
  --wb53d-bg: #0A0A0A;
  --wb53d-bg-2: #111817;
  --wb53d-card: #141d1c;
  --wb53d-card-2: #1a2423;
  --wb53d-text: #F0FDFF;
  --wb53d-muted: #999999;
  --wb53d-accent: #00CED1;
  --wb53d-accent-2: #004D40;
  --wb53d-border: #1f2b29;
  --wb53d-gold: #f5c451;
  --wb53d-radius: 14px;
  --wb53d-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --wb53d-header-h: 60px;
  --wb53d-bottom-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--wb53d-bg);
  color: var(--wb53d-text);
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--wb53d-accent); text-decoration: none; }
a:hover { color: #5fe6e8; }

.wb53d-wrap {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* ===== Header ===== */
.wb53d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10,10,10,0.98), rgba(10,15,15,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wb53d-border);
  height: var(--wb53d-header-h);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}
.wb53d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--wb53d-text);
}
.wb53d-brand .wb53d-logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--wb53d-accent), var(--wb53d-accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #001818;
}
.wb53d-brand .wb53d-dot { color: var(--wb53d-accent); }

.wb53d-header-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}
.wb53d-btn {
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.wb53d-btn:active { transform: scale(0.95); }
.wb53d-btn-ghost {
  background: transparent;
  color: var(--wb53d-text);
  border: 1px solid var(--wb53d-border);
}
.wb53d-btn-primary {
  background: linear-gradient(135deg, var(--wb53d-accent), #14e0e3);
  color: #001515;
  box-shadow: 0 4px 14px rgba(0, 206, 209, 0.35);
}
.wb53d-btn-gold {
  background: linear-gradient(135deg, #f5c451, #ff9f1c);
  color: #2a1500;
}
.wb53d-btn-sm { padding: 7px 12px; font-size: 12px; }

.wb53d-menu-btn {
  background: transparent;
  color: var(--wb53d-text);
  border: 1px solid var(--wb53d-border);
  border-radius: 10px;
  width: 40px; height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Hero ===== */
.wb53d-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  margin-bottom: 18px;
}
.wb53d-hero-track { position: relative; height: 230px; }
.wb53d-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 16px;
  background-size: cover;
  background-position: center;
  color: var(--wb53d-text);
}
.wb53d-hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.1), rgba(10,10,10,0.85));
}
.wb53d-hero-slide > * { position: relative; z-index: 1; }
.wb53d-hero-slide.wb53d-active { opacity: 1; }
.wb53d-hero-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.wb53d-hero-sub {
  color: var(--wb53d-text);
  opacity: 0.92;
  margin: 0 0 12px;
  font-size: 14px;
}
.wb53d-hero-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--wb53d-accent), #14e0e3);
  color: #001515;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.wb53d-hero-dots {
  position: absolute;
  bottom: 10px; right: 14px;
  z-index: 2;
  display: flex; gap: 6px;
}
.wb53d-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(240,253,255,0.4);
  cursor: pointer;
}
.wb53d-hero-dot.wb53d-active { background: var(--wb53d-accent); width: 22px; border-radius: 4px; }

/* ===== Section base ===== */
.wb53d-section {
  padding: 18px 14px 6px;
}
.wb53d-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 800; margin: 0 0 12px;
  color: var(--wb53d-text);
}
.wb53d-section-title .wb53d-ico { color: var(--wb53d-accent); font-size: 22px; }
.wb53d-section-title .wb53d-link-more {
  margin-left: auto;
  font-size: 12px; color: var(--wb53d-muted); font-weight: 600;
}
.wb53d-section-title .wb53d-link-more:hover { color: var(--wb53d-accent); }

/* ===== Quick category icons ===== */
.wb53d-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 4px 2px 8px;
}
.wb53d-cat {
  background: var(--wb53d-card);
  border: 1px solid var(--wb53d-border);
  border-radius: var(--wb53d-radius);
  padding: 12px 6px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.wb53d-cat:active { transform: scale(0.96); }
.wb53d-cat:hover { border-color: var(--wb53d-accent); }
.wb53d-cat-ico {
  width: 44px; height: 44px; margin: 0 auto 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wb53d-accent-2), #0a6f63);
  color: var(--wb53d-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.wb53d-cat-name { font-size: 12px; font-weight: 700; color: var(--wb53d-text); }

/* ===== Promo banner ===== */
.wb53d-promo-banner {
  background: linear-gradient(135deg, var(--wb53d-accent-2), #0a8377);
  border-radius: var(--wb53d-radius);
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(0,206,209,0.25);
  margin-bottom: 6px;
}
.wb53d-promo-banner .wb53d-promo-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0,206,209,0.18);
  color: var(--wb53d-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.wb53d-promo-text { flex: 1; }
.wb53d-promo-text h3 { margin: 0 0 2px; font-size: 15px; color: var(--wb53d-text); }
.wb53d-promo-text p { margin: 0; font-size: 12px; color: var(--wb53d-text); opacity: 0.85; }

/* ===== Tabs ===== */
.wb53d-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 6px 0 12px;
  scrollbar-width: none;
}
.wb53d-tabs::-webkit-scrollbar { display: none; }
.wb53d-tab {
  flex: 0 0 auto;
  background: var(--wb53d-card);
  border: 1px solid var(--wb53d-border);
  color: var(--wb53d-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.wb53d-tab.wb53d-tab-active {
  background: linear-gradient(135deg, var(--wb53d-accent), #14e0e3);
  color: #001515;
  border-color: transparent;
}

/* ===== Game grid ===== */
.wb53d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wb53d-card {
  background: var(--wb53d-card);
  border: 1px solid var(--wb53d-border);
  border-radius: var(--wb53d-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  position: relative;
}
.wb53d-card:hover { border-color: var(--wb53d-accent); transform: translateY(-2px); }
.wb53d-card:active { transform: scale(0.97); }
.wb53d-card-img {
  aspect-ratio: 1 / 1;
  background: #0d1413;
  background-size: cover;
  background-position: center;
  position: relative;
}
.wb53d-card-tag {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,206,209,0.9);
  color: #001515;
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 6px;
  text-transform: uppercase;
}
.wb53d-card-tag.wb53d-tag-hot { background: linear-gradient(135deg, #ff6b3d, #ff2d55); color: #fff; }
.wb53d-card-name {
  padding: 8px 8px 10px;
  font-size: 12px; font-weight: 700;
  text-align: center;
  color: var(--wb53d-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wb53d-card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
  background: rgba(10,10,10,0.45);
}
.wb53d-card:hover .wb53d-card-play { opacity: 1; }
.wb53d-card-play span {
  background: linear-gradient(135deg, var(--wb53d-accent), #14e0e3);
  color: #001515;
  font-size: 12px; font-weight: 800;
  padding: 6px 12px; border-radius: 999px;
}

/* ===== Featured row (horizontal scroll) ===== */
.wb53d-row {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.wb53d-row::-webkit-scrollbar { display: none; }
.wb53d-row .wb53d-card {
  flex: 0 0 130px;
  scroll-snap-align: start;
}

/* ===== Stats ===== */
.wb53d-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.wb53d-stat {
  background: var(--wb53d-card);
  border: 1px solid var(--wb53d-border);
  border-radius: var(--wb53d-radius);
  padding: 14px;
  text-align: center;
}
.wb53d-stat-num {
  font-size: 24px; font-weight: 900;
  color: var(--wb53d-accent);
}
.wb53d-stat-label { font-size: 12px; color: var(--wb53d-muted); margin-top: 4px; }

/* ===== SEO content ===== */
.wb53d-seo {
  background: var(--wb53d-card);
  border: 1px solid var(--wb53d-border);
  border-radius: var(--wb53d-radius);
  padding: 16px;
  color: var(--wb53d-text);
  font-size: 14px;
  line-height: 1.7;
}
.wb53d-seo h2 { font-size: 18px; margin: 0 0 10px; color: var(--wb53d-text); }
.wb53d-seo h3 { font-size: 15px; margin: 14px 0 6px; color: var(--wb53d-accent); }
.wb53d-seo p { margin: 0 0 10px; color: #d8eef0; }
.wb53d-seo ul { margin: 0 0 10px; padding-left: 20px; color: #d8eef0; }
.wb53d-seo ol { margin: 0 0 10px; padding-left: 20px; color: #d8eef0; }
.wb53d-seo a { color: var(--wb53d-accent); text-decoration: underline; text-underline-offset: 2px; }

/* ===== FAQ ===== */
.wb53d-faq-item {
  background: var(--wb53d-card);
  border: 1px solid var(--wb53d-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.wb53d-faq-q {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  color: var(--wb53d-text);
}
.wb53d-faq-q .wb53d-faq-icon { color: var(--wb53d-accent); transition: transform .2s ease; }
.wb53d-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 14px;
  color: #cde6e8;
  font-size: 13px;
}
.wb53d-faq-item.wb53d-faq-open .wb53d-faq-a { max-height: 320px; padding: 0 14px 12px; }
.wb53d-faq-item.wb53d-faq-open .wb53d-faq-icon { transform: rotate(45deg); }

/* ===== Footer ===== */
.wb53d-footer {
  margin-top: 24px;
  background: var(--wb53d-bg-2);
  border-top: 1px solid var(--wb53d-border);
  padding: 22px 14px 18px;
}
.wb53d-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.wb53d-footer-col h4 {
  font-size: 13px; color: var(--wb53d-accent);
  margin: 0 0 8px; text-transform: uppercase; letter-spacing: 1px;
}
.wb53d-footer-col a {
  display: block;
  font-size: 12px;
  color: var(--wb53d-muted);
  padding: 3px 0;
}
.wb53d-footer-col a:hover { color: var(--wb53d-accent); }
.wb53d-footer-bottom {
  border-top: 1px solid var(--wb53d-border);
  padding-top: 12px;
  font-size: 11px;
  color: var(--wb53d-muted);
  text-align: center;
}
.wb53d-footer-pay {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 10px 0;
}
.wb53d-footer-pay span {
  background: var(--wb53d-card);
  border: 1px solid var(--wb53d-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  color: var(--wb53d-muted);
}

/* ===== Mobile menu ===== */
.wb53d-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.6);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.wb53d-mobile-menu.wb53d-menu-open { opacity: 1; pointer-events: auto; }
.wb53d-mobile-menu-panel {
  position: absolute;
  top: 0; left: 0;
  width: 78%; max-width: 320px;
  height: 100%;
  background: var(--wb53d-bg-2);
  padding: 18px 16px;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.wb53d-mobile-menu.wb53d-menu-open .wb53d-mobile-menu-panel { transform: translateX(0); }
.wb53d-mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.wb53d-mobile-menu a {
  display: block;
  padding: 11px 8px;
  color: var(--wb53d-text);
  border-bottom: 1px solid var(--wb53d-border);
  font-size: 14px;
}
.wb53d-mobile-menu a:hover { color: var(--wb53d-accent); }

/* ===== Bottom nav ===== */
.wb53d-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: var(--wb53d-bottom-h);
  background: linear-gradient(180deg, rgba(15,20,20,0.98), rgba(8,12,12,0.99));
  border-top: 1px solid var(--wb53d-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  max-width: 430px;
  margin: 0 auto;
}
.wb53d-bottom-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--wb53d-muted);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
}
.wb53d-bottom-btn .wb53d-bn-ico { font-size: 22px; line-height: 1; }
.wb53d-bottom-btn.wb53d-bn-active { color: var(--wb53d-accent); }
.wb53d-bottom-btn.wb53d-bn-active::before {
  content: "";
  position: absolute; top: 0;
  width: 30px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--wb53d-accent);
}
.wb53d-bottom-btn:active { color: var(--wb53d-accent); }
.wb53d-bottom-btn.wb53d-bn-cta {
  background: linear-gradient(135deg, var(--wb53d-accent), #14e0e3);
  color: #001515;
  border-radius: 16px 16px 0 0;
  margin-top: -14px;
  height: calc(var(--wb53d-bottom-h) + 14px);
  font-weight: 800;
}
.wb53d-bottom-btn.wb53d-bn-cta .wb53d-bn-ico { font-size: 24px; }

/* ===== Back to top ===== */
.wb53d-back-top {
  position: fixed;
  right: 14px; bottom: calc(var(--wb53d-bottom-h) + 12px);
  z-index: 900;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--wb53d-card);
  border: 1px solid var(--wb53d-accent);
  color: var(--wb53d-accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.wb53d-back-top.wb53d-show { opacity: 1; pointer-events: auto; }
.wb53d-back-top:active { transform: scale(0.9); }

/* ===== Mobile padding for bottom nav ===== */
main { padding-bottom: 10px; }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .wb53d-bottom-nav { display: none; }
  .wb53d-wrap { max-width: 960px; }
  .wb53d-grid { grid-template-columns: repeat(5, 1fr); }
  .wb53d-row { flex-wrap: wrap; }
  .wb53d-row .wb53d-card { flex: 0 0 180px; }
  .wb53d-cats { grid-template-columns: repeat(8, 1fr); }
  .wb53d-footer-grid { grid-template-columns: repeat(4, 1fr); }
  .wb53d-hero-track { height: 320px; }
  .wb53d-hero-title { font-size: 34px; }
  main { padding-bottom: 0; }
}
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--wb53d-bottom-h) + 16px); }
  .wb53d-back-top { bottom: calc(var(--wb53d-bottom-h) + 12px); }
}

/* ===== Page hero (help / sub pages) ===== */
.wb53d-page-hero { padding: 22px 14px 8px; }
.wb53d-page-hero h1 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 900;
  color: var(--wb53d-text);
}
.wb53d-lead { color: #cfe8ea; font-size: 14px; margin: 0 0 12px; }

/* ===== Trust badges ===== */
.wb53d-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wb53d-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--wb53d-card);
  border: 1px solid var(--wb53d-border);
  color: #bfeff0;
  font-size: 11px; font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}
.wb53d-badge i { color: var(--wb53d-accent); }

/* ===== CTA row & banner image ===== */
.wb53d-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.wb53d-img-banner {
  display: block;
  border-radius: var(--wb53d-radius);
  border: 1px solid var(--wb53d-border);
  overflow: hidden;
  cursor: pointer;
  margin: 6px 0 0;
  transition: transform .15s ease, border-color .15s ease;
}
.wb53d-img-banner:hover { border-color: var(--wb53d-accent); }
.wb53d-img-banner:active { transform: scale(0.98); }

/* ===== Note boxes ===== */
.wb53d-note {
  background: rgba(0, 206, 209, 0.08);
  border: 1px solid rgba(0, 206, 209, 0.3);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  color: #d8f4f5;
  margin: 10px 0;
}
.wb53d-note.wb53d-note-warn {
  background: rgba(245, 196, 81, 0.08);
  border-color: rgba(245, 196, 81, 0.35);
  color: #f3e2b8;
}

/* ===== Footer promo button row ===== */
.wb53d-footer-cta {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 4px 0 14px;
}
