/**
 * xbet game - Layout Stylesheet
 * Class prefix: wd9b9-
 * Color palette: #778899 | #1C2833 | #FF69B4 | #880E4F
 */

/* === CSS Variables === */
:root {
  --wd9b9-primary: #778899;
  --wd9b9-bg: #1C2833;
  --wd9b9-accent: #FF69B4;
  --wd9b9-accent2: #880E4F;
  --wd9b9-text: #e8eaed;
  --wd9b9-text-muted: #a0aab5;
  --wd9b9-card-bg: #243342;
  --wd9b9-card-border: #2f4456;
  --wd9b9-hover: #FF85C8;
  --wd9b9-radius: 8px;
  --wd9b9-shadow: 0 2px 12px rgba(0,0,0,0.3);
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--wd9b9-bg);
  color: var(--wd9b9-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wd9b9-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--wd9b9-hover); }
img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.wd9b9-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--wd9b9-bg) 0%, #0f1923 100%);
  border-bottom: 2px solid var(--wd9b9-accent2);
  max-width: 430px; margin: 0 auto;
}
.wd9b9-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; height: 56px;
}
.wd9b9-logo-area {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; flex-shrink: 0;
}
.wd9b9-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.wd9b9-logo-text { font-size: 1.5rem; font-weight: 700; color: var(--wd9b9-accent); white-space: nowrap; }
.wd9b9-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.wd9b9-btn-register, .wd9b9-btn-login {
  border: none; border-radius: 20px; padding: 6px 14px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.wd9b9-btn-register {
  background: linear-gradient(135deg, var(--wd9b9-accent), var(--wd9b9-accent2));
  color: #fff;
}
.wd9b9-btn-login {
  background: transparent; color: var(--wd9b9-accent);
  border: 1.5px solid var(--wd9b9-accent);
}
.wd9b9-btn-register:hover, .wd9b9-btn-login:hover {
  transform: scale(1.05); box-shadow: 0 2px 8px rgba(255,105,180,0.4);
}
.wd9b9-menu-toggle {
  background: none; border: none; color: var(--wd9b9-text);
  font-size: 2rem; cursor: pointer; padding: 4px 8px;
  display: flex; align-items: center;
}

/* === Mobile Menu === */
.wd9b9-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.wd9b9-overlay-active { opacity: 1; pointer-events: auto; }
.wd9b9-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--wd9b9-bg); z-index: 9999;
  transition: right .3s ease; overflow-y: auto;
  border-left: 2px solid var(--wd9b9-accent2);
}
.wd9b9-menu-open { right: 0; }
.wd9b9-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--wd9b9-card-border);
}
.wd9b9-menu-header span { font-size: 1.6rem; font-weight: 700; color: var(--wd9b9-accent); }
.wd9b9-menu-close { background: none; border: none; color: var(--wd9b9-text); font-size: 2rem; cursor: pointer; }
.wd9b9-menu-links { list-style: none; padding: 1rem 0; }
.wd9b9-menu-links li { border-bottom: 1px solid var(--wd9b9-card-border); }
.wd9b9-menu-links a {
  display: block; padding: 1.2rem 1.6rem; color: var(--wd9b9-text);
  font-size: 1.3rem; transition: background .2s, color .2s;
}
.wd9b9-menu-links a:hover { background: var(--wd9b9-card-bg); color: var(--wd9b9-accent); }

/* === Main Content === */
.wd9b9-main { padding-top: 56px; min-height: 100vh; }
@media (max-width: 768px) {
  .wd9b9-main { padding-bottom: 76px; }
}

/* === Carousel === */
.wd9b9-carousel { position: relative; width: 100%; overflow: hidden; cursor: pointer; }
.wd9b9-carousel-slide {
  display: none; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 0;
}
.wd9b9-slide-active { display: block; }
.wd9b9-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.wd9b9-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: background .2s;
}
.wd9b9-dot-active { background: var(--wd9b9-accent); }

/* === Section Styles === */
.wd9b9-section { padding: 2rem 1.2rem; }
.wd9b9-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--wd9b9-accent);
  margin-bottom: 1.2rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--wd9b9-accent2);
}
.wd9b9-section-title i { margin-right: 8px; }

/* === Game Grid === */
.wd9b9-game-category-title {
  font-size: 1.5rem; font-weight: 600; color: var(--wd9b9-primary);
  margin: 1.6rem 0 1rem; padding-left: .6rem;
  border-left: 3px solid var(--wd9b9-accent);
}
.wd9b9-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.wd9b9-game-item {
  text-align: center; cursor: pointer; transition: transform .15s;
  border-radius: var(--wd9b9-radius); padding: 4px;
}
.wd9b9-game-item:hover { transform: scale(1.05); }
.wd9b9-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--wd9b9-radius); border: 1px solid var(--wd9b9-card-border);
}
.wd9b9-game-item span {
  display: block; font-size: 1.1rem; color: var(--wd9b9-text-muted);
  margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* === Cards & Blocks === */
.wd9b9-card {
  background: var(--wd9b9-card-bg); border: 1px solid var(--wd9b9-card-border);
  border-radius: var(--wd9b9-radius); padding: 1.4rem; margin-bottom: 1.2rem;
  box-shadow: var(--wd9b9-shadow);
}
.wd9b9-card h3 { font-size: 1.4rem; color: var(--wd9b9-accent); margin-bottom: .8rem; }
.wd9b9-card p { font-size: 1.2rem; color: var(--wd9b9-text-muted); line-height: 1.6; }

/* === Promo Buttons === */
.wd9b9-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--wd9b9-accent), var(--wd9b9-accent2));
  color: #fff; font-weight: 700; font-size: 1.3rem; padding: 10px 24px;
  border-radius: 24px; border: none; cursor: pointer; text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.wd9b9-promo-btn:hover {
  transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,105,180,0.5);
  color: #fff;
}
.wd9b9-promo-text {
  color: var(--wd9b9-accent); font-weight: 600; cursor: pointer;
  border-bottom: 1px dashed var(--wd9b9-accent); transition: color .2s;
}
.wd9b9-promo-text:hover { color: var(--wd9b9-hover); }

/* === Footer === */
.wd9b9-footer {
  background: linear-gradient(180deg, var(--wd9b9-bg), #0a1018);
  padding: 2rem 1.2rem 3rem; border-top: 2px solid var(--wd9b9-accent2);
}
.wd9b9-footer-intro { font-size: 1.2rem; color: var(--wd9b9-text-muted); margin-bottom: 1.4rem; line-height: 1.6; }
.wd9b9-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.4rem;
}
.wd9b9-footer-links a {
  font-size: 1.1rem; color: var(--wd9b9-primary); padding: 4px 10px;
  border: 1px solid var(--wd9b9-card-border); border-radius: 16px;
  transition: all .2s;
}
.wd9b9-footer-links a:hover { color: var(--wd9b9-accent); border-color: var(--wd9b9-accent); }
.wd9b9-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.4rem; justify-content: center;
}
.wd9b9-footer-copy {
  text-align: center; font-size: 1.1rem; color: var(--wd9b9-text-muted);
  border-top: 1px solid var(--wd9b9-card-border); padding-top: 1rem;
}

/* === Bottom Navigation === */
.wd9b9-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a2a38, var(--wd9b9-bg));
  border-top: 2px solid var(--wd9b9-accent2);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
}
@media (min-width: 769px) {
  .wd9b9-bottom-nav { display: none; }
}
.wd9b9-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--wd9b9-primary); cursor: pointer; transition: color .2s, transform .15s;
  font-size: 1rem; gap: 2px;
}
.wd9b9-bottom-nav-btn i, .wd9b9-bottom-nav-btn .material-icons,
.wd9b9-bottom-nav-btn ion-icon { font-size: 22px; }
.wd9b9-bottom-nav-btn span { font-size: 1rem; }
.wd9b9-bottom-nav-btn:hover, .wd9b9-bottom-nav-btn.wd9b9-nav-active {
  color: var(--wd9b9-accent); transform: scale(1.08);
}
.wd9b9-nav-active { position: relative; }
.wd9b9-nav-active::after {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--wd9b9-accent); border-radius: 2px;
}

/* === Utility === */
.wd9b9-text-center { text-align: center; }
.wd9b9-mt-1 { margin-top: .8rem; }
.wd9b9-mt-2 { margin-top: 1.6rem; }
.wd9b9-mb-1 { margin-bottom: .8rem; }
.wd9b9-mb-2 { margin-bottom: 1.6rem; }
.wd9b9-hidden { display: none; }
.wd9b9-content-block { padding: 1.2rem; margin-bottom: 1rem; background: var(--wd9b9-card-bg); border-radius: var(--wd9b9-radius); }
.wd9b9-content-block h2 { font-size: 1.6rem; color: var(--wd9b9-accent); margin-bottom: .8rem; }
.wd9b9-content-block h3 { font-size: 1.4rem; color: var(--wd9b9-primary); margin-bottom: .6rem; }
.wd9b9-content-block p { font-size: 1.2rem; color: var(--wd9b9-text-muted); line-height: 1.7; margin-bottom: .6rem; }
.wd9b9-content-block ul { padding-left: 1.6rem; margin-bottom: .8rem; }
.wd9b9-content-block li { font-size: 1.2rem; color: var(--wd9b9-text-muted); line-height: 1.6; margin-bottom: .4rem; }

/* === Winner List === */
.wd9b9-winner-list { display: flex; flex-direction: column; gap: 8px; }
.wd9b9-winner-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--wd9b9-card-bg); border-radius: var(--wd9b9-radius); padding: 8px 12px;
}
.wd9b9-winner-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--wd9b9-accent2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; font-weight: 700;
}
.wd9b9-winner-info { flex: 1; }
.wd9b9-winner-name { font-size: 1.2rem; font-weight: 600; color: var(--wd9b9-text); }
.wd9b9-winner-game { font-size: 1rem; color: var(--wd9b9-text-muted); }
.wd9b9-winner-amount { font-size: 1.3rem; font-weight: 700; color: var(--wd9b9-accent); }

/* === Testimonial === */
.wd9b9-testimonial {
  background: var(--wd9b9-card-bg); border-left: 3px solid var(--wd9b9-accent);
  border-radius: var(--wd9b9-radius); padding: 1.2rem; margin-bottom: 1rem;
}
.wd9b9-testimonial p { font-size: 1.2rem; color: var(--wd9b9-text-muted); font-style: italic; margin-bottom: .6rem; }
.wd9b9-testimonial cite { font-size: 1.1rem; color: var(--wd9b9-accent); font-style: normal; }

/* === Payment Icons === */
.wd9b9-payment-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.wd9b9-payment-item {
  background: var(--wd9b9-card-bg); border: 1px solid var(--wd9b9-card-border);
  border-radius: var(--wd9b9-radius); padding: 8px 14px;
  font-size: 1.2rem; color: var(--wd9b9-primary); font-weight: 600;
}

/* === App Download CTA === */
.wd9b9-app-cta {
  background: linear-gradient(135deg, var(--wd9b9-accent2), #1a0011);
  border-radius: var(--wd9b9-radius); padding: 1.8rem 1.2rem;
  text-align: center;
}
.wd9b9-app-cta h3 { font-size: 1.6rem; color: var(--wd9b9-accent); margin-bottom: .8rem; }
.wd9b9-app-cta p { font-size: 1.2rem; color: var(--wd9b9-text-muted); margin-bottom: 1rem; }
