/* Menu lateral (zip 143) — quem liga: _menu-lateral.php (classe msb-on no <html>; msb-min = fechada no computador;
   msb-open = gaveta aberta no celular; msb-adopt = a coluna de esportes da home/jogos está dentro da barra).
   COMPUTADOR (a partir de 1181 px): barra fixa à esquerda.   CELULAR (até 720 px): gaveta pela esquerda (botão Menu).
   TABLET (721 a 1180 px): nada disto aparece.
   Cores ligadas às cores de marca da dash › Cores (mesmas variáveis --kX-rrggbb do resto do site). */
.msb, .msb-burger, .msb-tip, .msb-ov, .msb-head { display: none; }

/* ---------- itens (valem no computador e na gaveta do celular) ---------- */
.msb-i { position: relative; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; height: 40px; padding: 0 12px; border-radius: 10px; color: rgb(var(--kt-f5f7fa, 245,247,250)); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s; }
.msb-i:hover { background: rgba(255,255,255,.06); color: #fff; }
.msb-i:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: -2px; }
/* ícones em amarelo (a cor do botão Depositar na dash › Cores, a mesma dos ícones do menu do perfil) */
.msb-ic { flex: 0 0 20px; width: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: rgb(var(--kd-fdc719, 253,199,25)); }
/* fase 2 (17/11): ícones de linha na cor do texto secundário; na página atual e no passar do mouse, na cor do texto.
   O amarelo fica só para o Depositar (um CTA amarelo só na tela). */
.ln { width: 1em; height: 1em; display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
.msb-ic:has(> .ln) { color: rgb(var(--ks-9aa3b2, 154,163,178)); }
.msb-ic > .ln { width: 20px; height: 20px; }
.msb-i:hover .msb-ic:has(> .ln) { color: rgb(var(--kt-f5f7fa, 245,247,250)); }
.msb-i.on .msb-ic:has(> .ln) { color: rgb(var(--kp-f87171, 248,113,113)); } /* igual ao item atual da barra de baixo */
.msb-tx { overflow: hidden; text-overflow: ellipsis; transition: opacity .15s; }
/* número ao lado do item (jogos ao vivo, prêmios para resgatar) */
.msb-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.08); color: rgb(var(--kt-f5f7fa, 245,247,250)); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.msb-n[hidden] { display: none; }
.msb-i[data-k="recompensas"] .msb-n { background: rgb(var(--kp-dc2626, 220,38,38)); color: #fff; }
/* página atual: fundo vermelho suave, ícone vermelho claro e um risquinho à esquerda */
.msb-i.on { background: rgba(var(--kp-b91c1c, 185,28,28), .2); color: #fff; }
.msb-i.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: rgb(var(--kp-b91c1c, 185,28,28)); }
/* bolinha vermelha pulsante do "Ao vivo" (igual à do celular) */
.msb-live { width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--kp-e63c12, 230,60,18)); animation: msbLive 1.4s ease-in-out infinite; }
@keyframes msbLive { 0%, 100% { box-shadow: 0 0 0 2px rgba(var(--kp-ff5a36, 255,90,54), .4); } 50% { box-shadow: 0 0 0 6px rgba(var(--kp-ff5a36, 255,90,54), 0); } }
.msb-sep { flex: 0 0 auto; height: 1px; margin: 8px 6px; background: rgba(255,255,255,.08); }
.msb-slot-sep { display: none; }
html.msb-adopt .msb-slot-sep { display: block; }

/* ---------- coluna de esportes da home e de /jogos dentro da barra (mesmo jeito dos outros itens) ---------- */
.msb .side { position: static; top: auto; display: flex; flex-direction: column; gap: 2px; max-height: none; overflow: visible; padding: 0; }
.msb .side-dup { display: none; } /* "Ao vivo agora", "Jogos de hoje" e "Calendário de 7 dias" já estão no alto da barra (Ao vivo, Jogos de hoje, Próximos jogos) */
.msb .side-link { position: relative; height: 40px; gap: 12px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; color: rgb(var(--kt-f5f7fa, 245,247,250)); cursor: pointer; }
.msb .side-link:hover { background: rgba(255,255,255,.06); }
.msb .side-link.active { background: rgba(var(--kp-b91c1c, 185,28,28), .2); }
.msb .side-link .ico { width: 20px; height: 20px; flex: 0 0 20px; }
.msb .side-link .n { font-size: 12px; } /* fase 2: texto de apoio nunca abaixo de 12 px */
.msb .side-title { margin: 12px 12px 4px; font-size: 12px; line-height: 15px; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msb .side-competition { gap: 12px; padding: 7px 12px; border-radius: 10px; }
.msb .side-competition .flag { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 0; }
.msb .side-competition-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.msb .side-competition-name small { font-weight: 450; overflow: hidden; text-overflow: ellipsis; }
.msb .side-competition .n { flex: 0 0 auto; }
/* "Sem competições principais agora" (quando não há competição) quebrava em duas linhas na barra: frase curta, uma linha */
.msb #sideComps > div.side-link { height: 32px; font-size: 0 !important; padding: 0 12px !important; cursor: default; }
.msb #sideComps > div.side-link::after { content: "Nenhuma no momento"; font-size: 12.5px; font-weight: 450; white-space: nowrap; color: rgb(var(--ks-a7aebb, 167,174,187)); }
/* Esportes e Ligas em destaque: 3 primeiros + "Ver mais" (o resto abre e fecha devagar). Só na barra: no tablet a coluna mostra tudo */
.msb #sideSports > *, .msb #sideComps > * { overflow: hidden; transition: max-height .3s ease, opacity .22s ease, padding .3s ease, visibility 0s, background .15s; max-height: 64px; }
.msb #sideSports:not(.msb-open-list) > :nth-child(n+4):not(.active), .msb #sideComps:not(.msb-open-list) > :nth-child(n+4):not(.active) { max-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; opacity: 0; visibility: hidden; pointer-events: none; transition: max-height .3s ease, opacity .15s ease, padding .3s ease, visibility 0s linear .3s; }
.msb-more { display: none; }
.msb .msb-more { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; width: 100%; height: 32px; margin: 0 0 2px; padding: 0 12px 0 44px; border: 0; border-radius: 10px; background: none; color: rgb(var(--kd-fdc719, 253,199,25)); font: inherit; font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; transition: background .15s; }
.msb .msb-more[hidden] { display: none; }
.msb .msb-more:hover { background: rgba(255,255,255,.05); }
.msb .msb-more:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: -2px; }
.msb .msb-more svg { flex: 0 0 auto; transition: transform .25s ease; }
.msb .msb-more.on svg { transform: rotate(180deg); }
.msb .side-footer { margin-top: 10px; padding: 12px 12px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.msb .side-footer a { color: rgb(var(--kt-f5f7fa, 245,247,250)); }
/* rodapé em duas linhas certas (antes o "+18" caía sozinho): "+18 · Regras · Afiliados" e embaixo "© ano site" */
.msb .side-footer { flex-wrap: wrap; column-gap: 14px; row-gap: 8px; }
.msb .side-footer .age { order: -1; }
.msb .side-footer > span:not(.age) { order: 5; flex-basis: 100%; white-space: nowrap; }

/* ================= COMPUTADOR ================= */
@media (min-width: 1181px) {
  html.msb-on { --msb-w: 220px; }
  html.msb-on.msb-min { --msb-w: 64px; }

  /* o conteúdo do site anda para a direita na largura da barra; o topo e as faixas de cima continuam de ponta a ponta */
  html.msb-on body { padding-left: var(--msb-w) !important; }
  html.msb-on header.topbar, html.msb-on header.main-header, html.msb-on .eg-instbar, html.msb-on .eg-notice { margin-left: calc(-1 * var(--msb-w)) !important; }
  html.msb-anim body { transition: padding-left .2s ease; }
  html.msb-anim header.topbar, html.msb-anim header.main-header, html.msb-anim .eg-instbar, html.msb-anim .eg-notice { transition: margin-left .2s ease; }
  /* home e /jogos: a coluna de esportes foi para a barra, então o centro volta à largura de antes (odds sem apertar) */
  html.msb-adopt .shell { grid-template-columns: minmax(0, 1fr); }

  /* os links do topo passaram para a barra */
  html.msb-on .topnav, html.msb-on .tnav { display: none !important; }
  /* menu do perfil (canto de cima): só Meu perfil, Minhas apostas, Depositar, Sacar, Transações, Instalar aplicativo
     e Sair — o resto está na barra */
  html.msb-on .dd-side { display: none !important; }

  /* botão ☰ ao lado da logo */
  html.msb-on .msb-burger { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; margin-right: -4px; padding: 0; border: 0; border-radius: 10px; background: rgba(0,0,0,.2); color: #fff; cursor: pointer; transition: background .15s; }
  html.msb-on .msb-burger:hover { background: rgba(0,0,0,.32); }
  html.msb-on .msb-burger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  html.msb-on .msb-burger svg { display: block; }
  html.msb-on header.main-header .msb-burger { margin-right: 14px; }

  /* a barra: presa à esquerda, logo abaixo do topo (a altura certa vem do _menu-lateral.php) */
  html.msb-on .msb { display: flex; flex-direction: column; gap: 2px; position: fixed; z-index: 39; left: 0; top: var(--msb-top, 60px); bottom: 0; width: var(--msb-w); padding: 12px 10px 16px; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; background: rgb(var(--kc-13131a, 19,19,26)); border-right: 1px solid rgba(255,255,255,.06); font-family: inherit; }
  html.msb-on .msb::-webkit-scrollbar { display: none; }
  html.msb-anim .msb { transition: width .2s ease; }

  /* fechada: só os ícones (o nome aparece num balãozinho ao passar o mouse) */
  html.msb-min .msb { padding-left: 8px; padding-right: 8px; }
  html.msb-min .msb-i, html.msb-min .msb .side-link, html.msb-min .msb .side-competition { justify-content: center; gap: 0; padding: 0; }
  html.msb-min .msb-tx, html.msb-min .msb-n { width: 0; opacity: 0; display: none; }
  html.msb-min .msb-sep { margin-left: 4px; margin-right: 4px; }
  html.msb-min .msb .side-link { font-size: 0; }
  html.msb-min .msb #sideComps > div.side-link, html.msb-min .msb .side-link .n, html.msb-min .msb .side-title, html.msb-min .msb .side-competition-name, html.msb-min .msb .side-competition .n, html.msb-min .msb .side-footer { display: none; }
  html.msb-min .msb .side-competition { height: 40px; align-items: center; }
  html.msb-min .msb .msb-more { justify-content: center; padding: 0; }
  html.msb-min .msb .msb-more-tx { display: none; }
  html.msb-on .msb-tip { display: block; position: fixed; z-index: 100001; pointer-events: none; padding: 7px 11px; border-radius: 8px; background: rgb(var(--kt-f5f7fa, 245,247,250)); color: rgb(var(--kc-13131a, 19,19,26)); font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.35); opacity: 0; transform: translateX(-4px); transition: opacity .12s, transform .12s; }
  html.msb-on .msb-tip.on { opacity: 1; transform: none; }

  /* barrinha "Minhas apostas" (canto de baixo à esquerda) fica ao lado da barra, não por baixo dela */
  html.msb-on .bt-wrap { left: calc(var(--msb-w) + 16px); }
}

/* ================= CELULAR ================= */
@media (max-width: 720px) {
  /* gaveta: abre da esquerda para a direita, pouco mais da metade da tela, até a barra de baixo (que continua visível) */
  html.msb-on .msb { display: flex; flex-direction: column; gap: 2px; position: fixed; z-index: 99981; left: 0; top: 0; bottom: calc(60px + env(safe-area-inset-bottom)); width: clamp(244px, 66vw, 300px); padding: 0 10px 16px; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: rgb(var(--kc-13131a, 19,19,26)); border-right: 1px solid rgba(255,255,255,.08); box-shadow: 8px 0 28px rgba(0,0,0,.45); transform: translateX(-105%); visibility: hidden; transition: transform .26s ease, visibility 0s linear .26s; font-family: inherit; }
  html.msb-open .msb { transform: none; visibility: visible; transition: transform .26s ease, visibility 0s; }
  html.msb-on .msb-ov { display: block; position: fixed; z-index: 99980; left: 0; right: 0; top: 0; bottom: calc(60px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .26s ease; }
  html.msb-open .msb-ov { opacity: 1; pointer-events: auto; }
  html.msb-open, html.msb-open body { overflow: hidden; }
  /* topo da gaveta: logo e o × para fechar */
  html.msb-on .msb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 2; flex: 0 0 auto; height: 60px; margin: 0 -10px 6px; padding: 0 8px 0 14px; background: rgb(var(--kc-13131a, 19,19,26)); border-bottom: 1px solid rgba(255,255,255,.08); }
  .msb-logo { display: flex; align-items: center; min-width: 0; height: 40px; }
  .msb-logo img { height: 34px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
  .msb-logo span { color: #fff; font-weight: 800; font-size: 20px; }
  .msb-x { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
  .msb-i, .msb .side-link { height: 42px; }
  .msb .side-title { margin-top: 10px; }
  /* menu do perfil (canto de cima): igual ao do computador — o resto está no Menu */
  html.msb-on .dd-side { display: none !important; }
  /* ícone do perfil 3 px maior que antes (18 → 21 px), nos dois topos */
  .uw-user .fa-user-circle, .user-btn .user-icon { font-size: 21px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.msb-anim body, html.msb-anim .msb, html.msb-anim header.topbar, html.msb-anim header.main-header, html.msb-on .msb, html.msb-on .msb-ov { transition: none !important; }
  .msb-live { animation: none; }
}

/* ================= MOLDURA (zip 224, lote G) — vale nas páginas novas e nas antigas (este arquivo entra em todas) ================= */
/* foco do teclado que aparece em qualquer fundo, inclusive no topo e nos botões vermelhos: branco por dentro, escuro por fora */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px rgb(var(--kf-0f1013, 15,16,19)); }
.msb-i:focus-visible, .msb .msb-more:focus-visible { outline: 2px solid #fff; outline-offset: -2px; box-shadow: none; }

/* topo novo: "Entrar" e "Criar conta" do visitante maiores (40 px no computador, 36 px no celular, letra 13/12,5 px) */
.topbar .btn-topo { height: 40px; padding: 0 18px; border-radius: 20px; font-size: 13px; font-weight: 700; letter-spacing: .4px; }
.topbar .btn-topo.white { box-shadow: 0 3px 10px rgba(0,0,0,.22); }
.topbar .right:has(.btn-topo) { gap: 8px; }
@media (max-width: 720px) {
  .topbar .btn-topo { height: 36px; padding: 0 13px; font-size: 12.5px; letter-spacing: .2px; }
}
@media (max-width: 420px) {
  .topbar .btn-topo { padding: 0 12px; }
}

/* chamada do visitante no alto da barra (computador) e da gaveta (celular): oferta curta + Criar conta grátis + Entrar */
.msb-cta { display: none; }
@media (min-width: 1181px), (max-width: 720px) {
  html.msb-on .msb-cta { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; margin: 2px 0 10px; padding: 14px 12px 12px; border-radius: 12px; position: relative; overflow: hidden;
    background: radial-gradient(120% 90% at 100% 0%, rgba(var(--kp-dc2626, 220,38,38), .38) 0%, transparent 62%), rgb(var(--kc-1e2128, 30,33,40));
    border: 1px solid rgba(var(--kp-dc2626, 220,38,38), .45); }
  html.msb-min .msb-cta { display: none; }
}
.msb-cta-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--kv-f3c14a, 243,193,74)); }
.msb-cta-t { font: italic 700 21px/1.05 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.msb-cta-c, .msb-cta-e { display: flex; align-items: center; justify-content: center; width: 100%; border-radius: 10px; font-family: inherit; font-weight: 700; cursor: pointer; }
.msb-cta-c { height: 44px; border: 0; background: rgb(var(--kp-dc2626, 220,38,38)); color: #fff; font-size: 15px; box-shadow: 0 6px 16px rgba(var(--kp-b91c1c, 185,28,28), .45); }
.msb-cta-c:hover { filter: brightness(1.08); }
.msb-cta-c:active { transform: scale(.98); }
.msb-cta-e { height: 38px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; font-size: 13.5px; }
.msb-cta-e:hover { background: rgba(255,255,255,.06); }
.msb-cta-r { align-self: center; margin-top: 2px; font-size: 12px; color: rgb(var(--ks-a7aebb, 167,174,187)); text-decoration: underline; text-underline-offset: 2px; }
.msb-cta-r:hover { color: #fff; }
/* regra 35 do plano: no computador, na home (que já abre com a oferta grande, .hm-hero) o cartão da barra não repete a oferta */
@media (min-width: 1181px) {
  html.msb-on:has(.hm-hero) .msb-cta { display: none; }
}
