/* MajorBet mobile-first homepage
   Desktop (>=992px) is left to the existing theme. */
:root {
  --mb-bg: #0a0608;
  --mb-card: #141012;
  --mb-line: rgba(255,255,255,.08);
  --mb-gold: #c9a227;
  --mb-gold-2: #e3c56b;
  --mb-text: #f4efe8;
  --mb-mute: rgba(244,239,232,.58);
  --mb-nav: 68px;
}

@media (max-width: 991px) {
  html body.welcome-theme,
  html body.welcome-theme .wrapper,
  html body.welcome-theme .main-content,
  html body.welcome-theme #page-wrapper {
    background: var(--mb-bg) !important;
    color: var(--mb-text) !important;
  }
  html body.welcome-theme {
    padding-left: 0 !important;
    padding-bottom: calc(var(--mb-nav) + 10px) !important;
  }

  body .betcio-announce,
  body .betcio-nav,
  body .mb-legacy-home,
  body .mobile-quick-grid,
  body .nv-social-lang,
  body .bh-btn-yellow,
  body .bh-btn-outline,
  body .bh-icon-btn,
  body .bh-lang,
  body .bh-clock,
  body .bh-notif-badge,
  body .bh-hamburger,
  body #menu-button-right,
  body .td-dropdown,
  body .bh-logo img,
  body .footer-rstyle,
  body .bc-ft {
    display: none !important;
  }

  body .mb-mhome { display: block !important; }

  body .betcio-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    background: rgba(10,6,8,.88) !important;
    border-bottom: 1px solid var(--mb-line) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  body .bh-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  body .bh-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    width: auto !important;
    height: auto !important;
  }
  body .mb-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  body .mb-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--mb-gold-2), var(--mb-gold));
    color: #1a1208 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    letter-spacing: 0;
  }
  body .mb-word {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
  }
  body .bh-btn.bh-btn-login,
  body .bh-user-box {
    background: #1b1614 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #fff !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  body .bh-btn.bh-btn-login i { display: none !important; }
  body .mb-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px;
    height: 36px;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 18px !important;
    padding: 0 !important;
    cursor: pointer;
  }

  body .mb-hero {
    position: relative;
    margin: 10px 12px 0 !important;
    height: min(58vh, 420px);
    border-radius: 22px;
    overflow: hidden;
    background: #1a0c0e;
  }
  body .mb-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 20%;
  }
  body .mb-hero-shade {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(10,6,8,.15) 20%, rgba(10,6,8,.72) 62%, rgba(10,6,8,.96) 100%),
      linear-gradient(90deg, rgba(10,6,8,.55) 0%, rgba(10,6,8,0) 55%);
  }
  body .mb-hero-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 22px;
    z-index: 2;
  }
  body .mb-hero-kicker {
    display: block;
    color: var(--mb-gold) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .14em !important;
    margin-bottom: 8px;
  }
  body .mb-hero-title {
    margin: 0 0 8px;
    color: #fff !important;
    font-size: 30px !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
  }
  body .mb-hero-sub {
    margin: 0 0 16px;
    color: var(--mb-mute) !important;
    font-size: 13px !important;
  }
  body .mb-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--mb-gold);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: rgba(201,162,39,.08);
  }

  body .mb-sports {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px 12px 6px;
  }
  body .mb-sport {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px 10px;
    background: #12100f !important;
    border: 1px solid var(--mb-line);
    border-radius: 16px;
    text-decoration: none !important;
    color: #fff !important;
  }
  body .mb-sport i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1c1816;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #efe6d6 !important;
    font-size: 14px;
  }
  body .mb-sport span {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,.78) !important;
  }

  body .mb-block { padding: 10px 12px 6px; }
  body .mb-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  body .mb-block-head h2 {
    margin: 0;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
  }
  body .mb-block-head a {
    color: var(--mb-gold) !important;
    font-size: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
  }
  body .mb-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
  }
  body .mb-tabs button,
  body .mb-tabs a {
    border: 0;
    background: transparent;
    color: var(--mb-mute) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 2px;
    text-decoration: none !important;
  }
  body .mb-tabs .is-on {
    color: var(--mb-gold) !important;
    box-shadow: inset 0 -2px 0 var(--mb-gold);
  }

  body .mb-match {
    display: block;
    background: var(--mb-card) !important;
    border: 1px solid var(--mb-line);
    border-radius: 18px;
    padding: 14px;
    text-decoration: none !important;
    color: inherit !important;
  }
  body .mb-match-meta {
    display: flex;
    justify-content: space-between;
    color: var(--mb-mute) !important;
    font-size: 11px !important;
    margin-bottom: 12px;
  }
  body .mb-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
  }
  body .mb-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  body .mb-team-r { justify-content: flex-end; }
  body .mb-team img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }
  body .mb-team strong {
    font-size: 14px !important;
    color: #fff !important;
    font-weight: 700 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body .mb-vs {
    color: var(--mb-mute) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }
  body .mb-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  body .mb-odds span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1c1715;
    border-radius: 10px;
    padding: 9px 10px;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }
  body .mb-odds em {
    font-style: normal;
    color: var(--mb-mute) !important;
    font-weight: 600 !important;
    font-size: 11px !important;
  }
  body .mb-match-empty {
    margin: 0;
    color: var(--mb-mute) !important;
    font-size: 13px !important;
  }

  body .mb-casino {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  body .mb-game {
    display: block;
    text-decoration: none !important;
    color: #fff !important;
  }
  body .mb-game img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    background: #1a1412;
    display: block;
  }
  body .mb-game span {
    display: block;
    margin-top: 8px;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,.86) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body .mb-game-empty {
    min-height: 150px;
    border-radius: 16px;
    background: #161210;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body .major-bnav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    height: var(--mb-nav) !important;
    padding: 6px 4px 10px !important;
    background: #0d0a0b !important;
    border-top: 1px solid var(--mb-line) !important;
    box-shadow: none !important;
  }
  body .major-bnav a {
    gap: 4px !important;
    color: rgba(255,255,255,.42) !important;
  }
  body .major-bnav a i {
    font-size: 18px !important;
    color: inherit !important;
  }
  body .major-bnav a span {
    font-size: 10px !important;
    color: inherit !important;
    font-weight: 600 !important;
  }
  body .major-bnav a.is-on,
  body .major-bnav a.is-on i,
  body .major-bnav a.is-on span {
    color: var(--mb-gold) !important;
  }
  body .major-bnav .bn-menu-center,
  body .major-bnav .bn-menu-center img {
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    background: none !important;
  }

  body #lc-btn { display: none !important; }

  html body #menu-panel-left,
  html body #menu-panel-left:not(.open) {
    width: min(86vw, 320px) !important;
    max-width: 320px !important;
    transform: translateX(-105%) !important;
    left: 0 !important;
    z-index: 100000 !important;
    visibility: visible !important;
  }
  html body #menu-panel-left.nv-menu-open,
  html body #menu-panel-left.open {
    transform: none !important;
    width: min(86vw, 320px) !important;
    display: block !important;
    visibility: visible !important;
  }
}

@media (min-width: 992px) {
  body .mb-mhome,
  body .mb-brand,
  body .mb-menu-btn { display: none !important; }
}
