/* ============================================================
 * windream link - theme-b2d9.css
 * All custom classes use the `wb2d9-` prefix.
 * Mobile-first design, max-width 430px viewport.
 * ============================================================ */

:root {
  --wb2d9-bg: #0a0e1f;
  --wb2d9-bg-2: #111735;
  --wb2d9-bg-3: #1a2348;
  --wb2d9-card: #151c3c;
  --wb2d9-card-2: #1d2853;
  --wb2d9-primary: #ff5a3c;
  --wb2d9-primary-2: #ff8a3d;
  --wb2d9-accent: #ffd23f;
  --wb2d9-gold: #f5b945;
  --wb2d9-text: #f4f6ff;
  --wb2d9-text-dim: #aab3d6;
  --wb2d9-text-mute: #6b7497;
  --wb2d9-border: #283163;
  --wb2d9-success: #28d17c;
  --wb2d9-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --wb2d9-radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #1a2348 0%, transparent 60%),
              radial-gradient(900px 500px at 100% 0%, #2a1e4a 0%, transparent 55%),
              var(--wb2d9-bg);
  color: var(--wb2d9-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.wb2d9-noscroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wb2d9-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ===================== Header ===================== */
.wb2d9-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10, 14, 31, 0.96) 0%, rgba(17, 23, 53, 0.96) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wb2d9-border);
}

.wb2d9-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  max-width: 430px;
  margin: 0 auto;
}

.wb2d9-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: var(--wb2d9-text);
}

.wb2d9-logo .wb2d9-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--wb2d9-primary) 0%, var(--wb2d9-primary-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(255, 90, 60, 0.45);
}

.wb2d9-logo span.wb2d9-logo-accent { color: var(--wb2d9-accent); }

.wb2d9-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb2d9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}

.wb2d9-btn:active { transform: translateY(1px) scale(0.98); }

.wb2d9-btn-login {
  background: var(--wb2d9-bg-3);
  border: 1px solid var(--wb2d9-border);
}

.wb2d9-btn-register {
  background: linear-gradient(135deg, var(--wb2d9-primary) 0%, var(--wb2d9-primary-2) 100%);
  box-shadow: 0 6px 16px rgba(255, 90, 60, 0.4);
}

.wb2d9-btn-ghost {
  background: transparent;
  border: 1px solid var(--wb2d9-border);
  color: var(--wb2d9-text);
}

.wb2d9-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--wb2d9-bg-3);
  border: 1px solid var(--wb2d9-border);
  color: var(--wb2d9-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===================== Hero ===================== */
.wb2d9-hero {
  padding: 18px 14px 10px;
}

.wb2d9-hero-card {
  border-radius: var(--wb2d9-radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1c2450 0%, #2a1b50 100%);
  border: 1px solid var(--wb2d9-border);
  box-shadow: var(--wb2d9-shadow);
}

.wb2d9-slider { position: relative; }

.wb2d9-slide {
  display: none;
  position: relative;
  min-height: 200px;
}

.wb2d9-slide.wb2d9-active { display: block; animation: wb2d9fade 0.6s ease; }

@keyframes wb2d9fade {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.wb2d9-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.wb2d9-slide-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 31, 0.92) 75%);
  color: #fff;
}

.wb2d9-slide-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
}

.wb2d9-slide-desc {
  font-size: 12px;
  color: var(--wb2d9-text-dim);
  margin: 0 0 10px;
}

.wb2d9-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 8px 0;
}

.wb2d9-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wb2d9-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wb2d9-dot.wb2d9-active {
  background: var(--wb2d9-primary);
  width: 20px;
  border-radius: 4px;
}

/* ===================== Hero CTA ===================== */
.wb2d9-cta {
  display: flex;
  gap: 8px;
  padding: 0 14px;
  margin-top: 10px;
}

.wb2d9-cta .wb2d9-btn { flex: 1; padding: 12px 10px; font-size: 14px; }

.wb2d9-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
  margin-top: 6px;
}

.wb2d9-stat {
  background: var(--wb2d9-card);
  border: 1px solid var(--wb2d9-border);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.wb2d9-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--wb2d9-accent);
}

.wb2d9-stat-label {
  font-size: 11px;
  color: var(--wb2d9-text-dim);
}

/* ===================== Section ===================== */
.wb2d9-section {
  padding: 22px 14px 8px;
}

.wb2d9-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wb2d9-section-title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb2d9-section-title .wb2d9-bar {
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--wb2d9-primary), var(--wb2d9-accent));
  border-radius: 2px;
}

.wb2d9-more {
  font-size: 12px;
  color: var(--wb2d9-accent);
}

/* ===================== Filter ===================== */
.wb2d9-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.wb2d9-filter::-webkit-scrollbar { display: none; }

.wb2d9-filter-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--wb2d9-card);
  border: 1px solid var(--wb2d9-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--wb2d9-text-dim);
  cursor: pointer;
  white-space: nowrap;
}

.wb2d9-filter-tab.wb2d9-active {
  background: linear-gradient(135deg, var(--wb2d9-primary), var(--wb2d9-primary-2));
  color: #fff;
  border-color: transparent;
}

/* ===================== Game Grid ===================== */
.wb2d9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wb2d9-game {
  background: var(--wb2d9-card);
  border: 1px solid var(--wb2d9-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.wb2d9-game:active { transform: scale(0.97); }

.wb2d9-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0d1330;
}

.wb2d9-game-name {
  font-size: 11px;
  text-align: center;
  padding: 6px 4px;
  color: var(--wb2d9-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.wb2d9-game-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(255, 90, 60, 0.92);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.wb2d9-game-tag.hot { background: linear-gradient(135deg, #ff3d6e, #ff8a3d); }

/* ===================== Cards / Promo ===================== */
.wb2d9-promo-card {
  border-radius: var(--wb2d9-radius);
  padding: 16px;
  margin: 8px 0;
  background: linear-gradient(135deg, #2a1450 0%, #1a2348 100%);
  border: 1px solid var(--wb2d9-border);
  position: relative;
  overflow: hidden;
}

.wb2d9-promo-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--wb2d9-accent);
}

.wb2d9-promo-text {
  font-size: 13px;
  color: var(--wb2d9-text-dim);
  margin: 0 0 12px;
}

/* ===================== Features ===================== */
.wb2d9-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.wb2d9-feature {
  background: var(--wb2d9-card);
  border: 1px solid var(--wb2d9-border);
  border-radius: 12px;
  padding: 12px;
}

.wb2d9-feature .wb2d9-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 90, 60, 0.15);
  color: var(--wb2d9-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
}

.wb2d9-feature h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.wb2d9-feature p {
  font-size: 12px;
  color: var(--wb2d9-text-dim);
  margin: 0;
}

/* ===================== SEO Content ===================== */
.wb2d9-content {
  padding: 18px 14px;
}

.wb2d9-content h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb2d9-content h2 .wb2d9-bar {
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--wb2d9-primary), var(--wb2d9-accent));
  border-radius: 2px;
}

.wb2d9-content h3 {
  font-size: 15px;
  margin: 14px 0 6px;
  color: var(--wb2d9-accent);
}

.wb2d9-content p {
  font-size: 13.5px;
  color: var(--wb2d9-text-dim);
  margin: 0 0 10px;
}

.wb2d9-content ul {
  font-size: 13px;
  color: var(--wb2d9-text-dim);
  padding-left: 18px;
  margin: 0 0 12px;
}

.wb2d9-content li { margin-bottom: 6px; }

.wb2d9-content a {
  color: var(--wb2d9-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===================== Steps ===================== */
.wb2d9-steps {
  display: grid;
  gap: 10px;
}

.wb2d9-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--wb2d9-card);
  border: 1px solid var(--wb2d9-border);
  border-radius: 12px;
  padding: 12px;
}

.wb2d9-step-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wb2d9-primary), var(--wb2d9-primary-2));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb2d9-step-body h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.wb2d9-step-body p {
  margin: 0;
  font-size: 12.5px;
  color: var(--wb2d9-text-dim);
}

/* ===================== FAQ ===================== */
.wb2d9-faq-item {
  background: var(--wb2d9-card);
  border: 1px solid var(--wb2d9-border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.wb2d9-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--wb2d9-text);
  padding: 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wb2d9-faq-q .wb2d9-faq-icon {
  color: var(--wb2d9-accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.wb2d9-faq-item.wb2d9-open .wb2d9-faq-icon { transform: rotate(45deg); }

.wb2d9-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 14px;
  color: var(--wb2d9-text-dim);
  font-size: 13px;
}

.wb2d9-faq-item.wb2d9-open .wb2d9-faq-panel {
  padding-bottom: 14px;
}

/* ===================== Footer ===================== */
.wb2d9-footer {
  margin-top: 20px;
  background: linear-gradient(180deg, var(--wb2d9-bg-2) 0%, var(--wb2d9-bg) 100%);
  border-top: 1px solid var(--wb2d9-border);
  padding: 24px 14px 110px;
}

.wb2d9-footer h4 {
  font-size: 14px;
  color: var(--wb2d9-text);
  margin: 14px 0 8px;
}

.wb2d9-footer p {
  font-size: 12.5px;
  color: var(--wb2d9-text-dim);
  margin: 0 0 6px;
}

.wb2d9-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.wb2d9-footer-links a {
  font-size: 12.5px;
  color: var(--wb2d9-text-dim);
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wb2d9-footer-links a:hover { color: var(--wb2d9-accent); }

.wb2d9-footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--wb2d9-border);
  font-size: 11.5px;
  color: var(--wb2d9-text-mute);
  text-align: center;
}

.wb2d9-18plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wb2d9-border);
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 800;
  color: var(--wb2d9-accent);
  margin-bottom: 8px;
}

/* ===================== Mobile Menu ===================== */
.wb2d9-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.wb2d9-overlay.wb2d9-show {
  opacity: 1;
  visibility: visible;
}

.wb2d9-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 84%;
  max-width: 360px;
  height: 100%;
  background: linear-gradient(180deg, #131a38 0%, #0a0e1f 100%);
  border-left: 1px solid var(--wb2d9-border);
  transform: translateX(110%);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 18px 16px;
  overflow-y: auto;
}

.wb2d9-mobile-menu.wb2d9-open { transform: translateX(0); }

.wb2d9-mm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.wb2d9-mm-close {
  background: var(--wb2d9-bg-3);
  border: 1px solid var(--wb2d9-border);
  color: var(--wb2d9-text);
  width: 36px; height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

.wb2d9-mm-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.wb2d9-mm-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--wb2d9-card);
  border: 1px solid var(--wb2d9-border);
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--wb2d9-text);
}

.wb2d9-mm-links a:hover { border-color: var(--wb2d9-primary); color: var(--wb2d9-accent); }

.wb2d9-mm-links .material-symbols-outlined,
.wb2d9-mm-links .bi {
  color: var(--wb2d9-primary-2);
  font-size: 20px;
}

/* ===================== Bottom Nav ===================== */
.wb2d9-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, rgba(17, 23, 53, 0.98) 0%, rgba(10, 14, 31, 1) 100%);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--wb2d9-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 6px 4px;
}

.wb2d9-bottom-nav .wb2d9-nav-item {
  flex: 1;
  min-width: 60px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--wb2d9-text-dim);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  border-radius: 10px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.wb2d9-bottom-nav .wb2d9-nav-item:active { transform: scale(0.92); }

.wb2d9-bottom-nav .wb2d9-nav-item .wb2d9-nav-ico {
  font-size: 22px;
  line-height: 1;
}

.wb2d9-bottom-nav .wb2d9-nav-item .wb2d9-nav-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.wb2d9-bottom-nav .wb2d9-nav-item.wb2d9-cta-center {
  background: linear-gradient(135deg, var(--wb2d9-primary), var(--wb2d9-primary-2));
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  margin-top: -18px;
  box-shadow: 0 6px 18px rgba(255, 90, 60, 0.55);
  flex: 0 0 auto;
  min-width: 56px;
}

.wb2d9-bottom-nav .wb2d9-nav-item.wb2d9-cta-center .wb2d9-nav-ico { font-size: 24px; }

.wb2d9-bottom-nav .wb2d9-nav-item.wb2d9-cta-center .wb2d9-nav-label {
  font-size: 9px;
}

.wb2d9-bottom-nav .wb2d9-nav-item.wb2d9-active { color: var(--wb2d9-accent); }

.wb2d9-bottom-nav .wb2d9-nav-item.wb2d9-active::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--wb2d9-accent);
}

/* ===================== Reveal ===================== */
.wb2d9-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.wb2d9-reveal.wb2d9-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Desktop ===================== */
@media (min-width: 769px) {
  .wb2d9-bottom-nav { display: none; }
  .wb2d9-wrap { max-width: 430px; }
  body { padding-bottom: 0; }
  main { padding-bottom: 0 !important; }
}

/* ===================== Mobile padding ===================== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

@media (max-width: 430px) {
  .wb2d9-header-inner,
  .wb2d9-cta,
  .wb2d9-stats,
  .wb2d9-section,
  .wb2d9-content,
  .wb2d9-hero {
    padding-left: 12px;
    padding-right: 12px;
  }
}
