/* "Super Odd's / Aumentadas" (includes/brava/super-odds.php) no visual da casa: card escuro com brilho na cor
   do tema (--primary-color), selo "Super Odd", odd turbinada numa pílula inclinada como os botões do header. */
section.so, .so-gaveta {
  --so-acc: rgb(var(--primary-color, 22 82 240));
  --so-txt: rgb(var(--text-color, 252 252 252));
  --so-txt-2: rgb(var(--text-muted-color, 150 150 165));
  --so-linha: rgba(255, 255, 255, .08);
}
section.so *, .so-gaveta * { box-sizing: border-box; }
section.so .so-head { display: flex; align-items: center; margin-bottom: 14px; }
section.so .so-head .so-raio { width: 20px; height: 20px; color: var(--c-title-icon, var(--so-acc)); }
section.so .so-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
section.so .so-strip::-webkit-scrollbar { display: none; }

/* card: foto do estádio à noite (estadio-superodd.jpg) com véu escuro, brilho do tema no canto, raio apagado ao fundo */
section.so .so-card {
  position: relative; flex: 0 0 calc(100% - 44px); max-width: 420px; scroll-snap-align: start; isolation: isolate;
  padding: 12px 14px 14px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--so-linha);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--so-acc) 30%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(11, 13, 24, .45) 0%, rgba(11, 13, 24, .55) 55%, rgba(11, 13, 24, .88) 100%),
    #0d0f19 url(estadio-superodd.jpg) center 40% / cover no-repeat;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
section.so .so-card::after {
  content: ""; position: absolute; right: -18px; top: 30px; width: 150px; height: 150px; z-index: -1; opacity: .06;
  background: currentColor; color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 2 4 13.5h6.5L9 22l10-12h-6.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 2 4 13.5h6.5L9 22l10-12h-6.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
section.so .so-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
section.so .so-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 6px; transform: skewX(-10deg);
  background: var(--so-acc); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
section.so .so-tag .so-raio { width: 12px; height: 12px; }
section.so .so-data { padding: 4px 9px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }

section.so .so-jogo { display: grid; grid-template-columns: 1fr .8fr 1fr; align-items: center; gap: 6px; margin-bottom: 14px; }
section.so .so-time { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; }
section.so .so-escudo { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
section.so span.so-escudo { font-size: 20px !important; }
section.so .so-nome {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--so-txt); font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
section.so .so-meio { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
section.so .so-liga-logo { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .35)); }
section.so .so-x { width: 9px; height: 9px; color: var(--so-acc); }
section.so .so-liga {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  color: rgba(255, 255, 255, .75); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

/* barra da aposta: seleção à esquerda; odd normal riscada + pílula inclinada com a turbinada */
section.so .so-barra {
  width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 6px 0 14px; border-radius: 10px; cursor: pointer; text-align: left;
  border: 1px solid color-mix(in srgb, var(--so-acc) 45%, transparent);
  background: rgba(0, 0, 0, .35); transition: border-color .15s, background .15s;
}
section.so .so-barra:hover { border-color: var(--so-acc); }
section.so .so-barra:active { background: color-mix(in srgb, var(--so-acc) 14%, rgba(0, 0, 0, .35)); }
section.so .so-sel {
  min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.2;
  padding: 6px 0; color: var(--so-txt); font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
section.so .so-odds { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--so-txt); }
section.so .so-odds s { color: var(--so-txt-2); font-size: 13px; font-weight: 600; }
section.so .so-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px; border-radius: 8px; transform: skewX(-10deg);
  background: var(--so-acc); box-shadow: 0 4px 14px color-mix(in srgb, var(--so-acc) 45%, transparent);
}
section.so .so-pill > * { transform: skewX(10deg); }
section.so .so-pill .so-raio { width: 14px; height: 14px; color: #fff; }
section.so .so-pill b { color: #fff; font-size: 18px; font-weight: 800; }
section.so .so-barra--dentro { cursor: default; padding-right: 14px; border-color: color-mix(in srgb, var(--so-acc) 70%, transparent); background: color-mix(in srgb, var(--so-acc) 12%, rgba(0, 0, 0, .35)); }
section.so .so-barra--dentro .so-sel { color: var(--so-acc); }
section.so .so-barra--dentro .so-odds { font-size: 13px; }
section.so .so-barra--dentro .so-odds b { font-size: 15px; }

@media (min-width: 640px) {
  section.so .so-card { flex-basis: 380px; }
}

/* gaveta de aposta (montada pelo super-odds.js, fora da section) */
.so-gaveta { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .65); }
.so-gaveta[hidden] { display: none; }
.so-gav {
  width: 100%; max-width: 440px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0;
  background:
    radial-gradient(100% 60% at 0% 0%, color-mix(in srgb, var(--so-acc) 26%, transparent), transparent 65%),
    #121521;
  color: var(--so-txt); border: 1px solid var(--so-linha); border-bottom: 0;
  font-family: var(--font, Montserrat), sans-serif; animation: so-sobe .22s cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 640px) { .so-gaveta { align-items: center; } .so-gav { border-radius: 18px; border-bottom: 1px solid var(--so-linha); } }
@keyframes so-sobe { from { transform: translateY(40px); opacity: 0; } }
.so-gav-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.so-gav-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px 6px 9px; border-radius: 6px; transform: skewX(-10deg);
  background: var(--so-acc); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.so-gav-tag svg { width: 13px; height: 13px; }
.so-gav-fechar { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.so-gav-jogo { color: var(--so-txt-2); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.so-gav-sel { font-size: 17px; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }
.so-gav-odd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--so-linha); }
.so-gav-odd s { color: var(--so-txt-2); font-size: 15px; }
.so-gav-odd svg { width: 16px; height: 16px; color: var(--so-acc); }
.so-gav-odd b { font-size: 24px; font-weight: 800; color: #fff; }
.so-gav-odd small { margin-left: auto; color: var(--so-txt-2); font-size: 11.5px; text-align: right; }
.so-gav-val { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.so-gav-val:focus-within { border-color: var(--so-acc); }
.so-gav-val span { color: var(--so-txt-2); font-weight: 700; }
.so-gav-val input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: #fff; font-size: 20px; font-weight: 800; }
.so-gav-chips { display: flex; gap: 8px; margin: 10px 0 12px; }
.so-gav-chips button { flex: 1; height: 36px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.so-gav-chips button:hover { border-color: var(--so-acc); }
.so-gav-ret { display: flex; justify-content: space-between; margin-bottom: 14px; color: var(--so-txt-2); font-size: 13.5px; }
.so-gav-ret b { color: #fff; font-size: 16px; }
.so-gav-ir {
  width: 100%; height: 52px; border: 0; border-radius: 10px; background: var(--so-acc); color: #fff; cursor: pointer;
  font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 18px color-mix(in srgb, var(--so-acc) 40%, transparent);
}
.so-gav-ir:disabled { opacity: .55; cursor: default; }
.so-gav-msg { min-height: 18px; margin-top: 10px; font-size: 13px; font-weight: 600; text-align: center; }
.so-gav-msg.erro { color: #ff8a80; }
.so-gav-msg.ok { color: #7ee08a; }
.so-gav-regras { margin-top: 6px; color: var(--so-txt-2); opacity: .7; font-size: 11px; text-align: center; }
