:root {
  --accent1: #33CC66;
  --accent2: #0066CC;
  --gold: #f5c84c;
  --bg: #070708;
  --panel: #101115;
  --panel-2: #131313;
  --panel-3: #0d0e12;
  --stroke: rgba(255, 255, 255, .08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .72);
  --muted-2: rgba(255, 255, 255, .54);
  --ok: #27ae60;
  --warn: #f39c12;
  --danger: #ff5c5c;
  --blue: #1e90ff;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --page-max: 1440px;
  --badge-w: 46px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(51, 204, 102, .08), transparent 24%),
    radial-gradient(circle at top right, rgba(0, 102, 204, .11), transparent 26%),
    var(--bg);
  color: var(--text);
}

button,
select,
input {
  font: inherit;
}

.brand-bg {
  position: relative;
}

.logo-background {
  position: fixed;
  inset: 0;
  background: url('../assets/imagenes/imagotipo.png') no-repeat center center;
  background-size: min(28vw, 340px);
  opacity: .045;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(245, 200, 76, .15));
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(var(--page-max), calc(100% - 28px));
  margin: 14px auto 0;
  min-height: 72px;
  border-radius: 18px;
  background: rgba(19, 19, 19, .92);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .55), 0 0 18px rgba(51, 204, 102, .14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(14px);
}

.logo-container,
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.live-logo {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  background-color: #000;
  color: var(--accent1);
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid #0c8532;
  box-shadow: inset 0 0 10px rgba(51, 204, 102, .15);
}

.lab-shell {
  width: min(var(--page-max), calc(100% - 28px));
  margin: 18px auto 28px;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.hero-card,
.panel {
  background: linear-gradient(180deg, rgba(19, 19, 19, .94), rgba(12, 13, 17, .98));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-glow {
  box-shadow: var(--shadow), 0 0 0 1px rgba(51, 204, 102, .05), 0 0 22px rgba(0, 102, 204, .08);
}

.hero-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 1.35fr .95fr;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent1);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.hero-copy,
.muted,
.explanation-copy p,
.lesson-list p,
.glossary-list p,
.quiz-result,
label span,
.panel p,
.math-table,
.risk-list {
  color: var(--muted);
}

.hero-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.hero-controls label {
  display: grid;
  gap: 8px;
}

.hero-controls select,
.stake-input-wrap input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .32);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.btn-brand,
.btn-ghost,
.btn-small,
.chip-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

.btn-brand:hover,
.btn-ghost:hover,
.btn-small:hover,
.chip-btn:hover {
  transform: translateY(-1px);
}

.btn-brand {
  background: linear-gradient(90deg, rgba(51, 204, 102, .56), rgba(0, 102, 204, .38)), rgba(0, 0, 0, .35);
  color: #fff;
}

.btn-ghost,
.btn-small,
.chip-btn {
  background: rgba(255, 255, 255, .04);
  color: #fff;
}

.btn-small {
  min-height: 36px;
  min-width: 42px;
  border-radius: 12px;
}

.workspace-grid,
.insights-grid {
  display: grid;
  gap: 18px;
}

.workspace-grid {
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, .95fr);
  align-items: start;
}

.left-rail,
.right-rail,
.insights-grid {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 18px;
}

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

.panel[id^="sec-"] {
  scroll-margin-top: 152px;
}

.section-nav-panel {
  position: sticky;
  top: 86px;
  z-index: 42;
  padding: 12px 14px;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-link {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.section-link:hover {
  transform: translateY(-1px);
  border-color: rgba(51, 204, 102, .35);
}

.section-link.active {
  background: linear-gradient(180deg, rgba(51, 204, 102, .16), rgba(51, 204, 102, .07));
  border-color: rgba(51, 204, 102, .52);
  color: #dcffe9;
}

.card-mount {
  display: grid;
  place-items: center;
  min-height: 340px;
}

.card-stage {
  position: sticky;
  top: 96px;
}

.card-tools,
.card-action-row,
.quiz-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-action-row {
  margin-top: 14px;
}

.state-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-item {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .26);
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 600;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot--live {
  background: #27ae60;
  box-shadow: 0 0 0 4px rgba(39, 174, 96, .2);
}

.legend-dot--timeout {
  background: #1e90ff;
  box-shadow: 0 0 0 4px rgba(30, 144, 255, .2);
}

.legend-dot--hunt {
  background: #f5c84c;
  box-shadow: 0 0 0 4px rgba(245, 200, 76, .2);
}

.chip-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
}

.chip-btn.active {
  background: rgba(51, 204, 102, .12);
  border-color: rgba(51, 204, 102, .45);
  color: #d8ffe6;
}

.btn-pin {
  min-width: 82px;
}

.btn-small.is-active {
  background: rgba(51, 204, 102, .16);
  border-color: rgba(51, 204, 102, .52);
  color: #dcffe9;
}

.btn-small:disabled,
.btn-brand:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

.mini-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mini-pill {
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .08);
}

.status-pill--demo {
  background: rgba(245, 200, 76, .14);
  color: #ffe7a3;
  border: 1px solid rgba(245, 200, 76, .32);
}

.status-pill--live,
.status-pill--ok {
  background: rgba(39, 174, 96, .14);
  color: #d6ffea;
  border: 1px solid rgba(39, 174, 96, .34);
}

.status-pill--warn {
  background: rgba(243, 156, 18, .16);
  color: #ffe6c2;
  border: 1px solid rgba(243, 156, 18, .35);
}

.status-pill--bad {
  background: rgba(255, 92, 92, .14);
  color: #ffd7d7;
  border: 1px solid rgba(255, 92, 92, .35);
}

.anatomy-grid,
.glossary-list,
.risk-list,
.math-table,
.quiz-form {
  display: grid;
  gap: 12px;
}

.anatomy-item,
.glossary-item,
.risk-item,
.math-row,
.quiz-card,
.lesson-step,
.formula-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  padding: 14px;
}

.anatomy-item h3,
.glossary-item h3,
.risk-item h3,
.quiz-card h3,
.formula-card .formula-title {
  margin-bottom: 8px;
  font-size: 15px;
}

.anatomy-item p,
.glossary-item p,
.risk-item p,
.quiz-card p,
.lesson-step p,
.formula-card p {
  margin-bottom: 0;
}

.explanation-copy,
.lesson-list {
  display: grid;
  gap: 10px;
}

.lesson-step {
  position: relative;
  padding-left: 16px;
}

.lesson-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent1), var(--accent2));
}

.math-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 16px;
}

.math-formula {
  display: grid;
  gap: 12px;
}

.formula-card code {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .35);
  color: #d9ebff;
  margin-bottom: 10px;
}

.stake-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.math-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.math-row.math-row--head {
  color: #d4dff1;
  font-weight: 700;
}

.math-row strong {
  color: #fff;
}

.quiz-card legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 12px;
  border-radius: 14px;
}

.quiz-option.correct {
  border-color: rgba(39, 174, 96, .48);
  background: rgba(39, 174, 96, .12);
}

.quiz-option.wrong {
  border-color: rgba(255, 92, 92, .5);
  background: rgba(255, 92, 92, .10);
}

.quiz-option input {
  accent-color: var(--accent1);
  margin-top: 3px;
}

.quiz-result {
  min-height: 24px;
  margin-top: 12px;
}

/* =========================
   Tarjeta estilo BetScanner
   ========================= */
.surebet-card {
  position: relative;
  width: min(100%, 530px);
  background: linear-gradient(180deg, #0f1116, #13151b);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;
}

.surebet-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, rgba(var(--ribbon-color, 39 174 96), .92), rgba(var(--ribbon-color, 39 174 96), .22));
}

.surebet-card.highlight-percentage .surebet-percentage,
.surebet-card.highlight-market .surebet-market,
.surebet-card.highlight-scope .surebet-team,
.surebet-card.highlight-score .surebet-score-container,
.surebet-card.highlight-odds .odd-value {
  outline: 2px solid rgba(245, 200, 76, .9);
  box-shadow: 0 0 0 4px rgba(245, 200, 76, .12);
}

.surebet-card [data-focus-el] {
  border-radius: 12px;
  transition: outline .18s ease, box-shadow .18s ease;
}

.surebet-time-badge {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 3;
  width: var(--badge-w);
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(39, 174, 96, .18), rgba(39, 174, 96, .06));
  color: #e4ffee;
  font-weight: 800;
  letter-spacing: .04em;
}

.surebet-time-badge.timeout {
  background: linear-gradient(180deg, rgba(30, 144, 255, .22), rgba(30, 144, 255, .08));
  color: #ddf0ff;
}

.surebet-header,
.surebet-body {
  padding-left: 20px;
  padding-right: calc(var(--badge-w) + 22px);
}

.surebet-header {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.surebet-body {
  padding-top: 14px;
  padding-bottom: 16px;
  display: grid;
  gap: 10px;
}

.surebet-row {
  display: grid;
  grid-template-columns: 76px 74px minmax(0, 1fr) 130px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
}

.surebet-score-container {
  min-height: 68px;
  background: rgba(0, 0, 0, .24);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 8px;
  display: grid;
  align-items: center;
}

.score-mini {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.score-mini .score-status {
  color: var(--muted-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.score-mini .score-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #f4f7fb;
}

.score-mini .score-line span:last-child {
  color: #b8d4ff;
  font-weight: 700;
}

.surebet-house {
  display: grid;
  place-items: center;
  min-height: 64px;
  background: rgba(255, 255, 255, .02);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .04);
}

.img-surebet {
  max-width: 62px;
  max-height: 28px;
  object-fit: contain;
}

.house-fallback {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.surebet-team {
  font-weight: 700;
  color: #fff;
  display: grid;
  gap: 6px;
}

.team-sub {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}

.surebet-odds {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.odd-value {
  min-width: 72px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(51, 204, 102, .13);
  border: 1px solid rgba(51, 204, 102, .28);
  color: #e3ffec;
  font-weight: 800;
}

.surebet-original-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.copy-icon-lite {
  color: #6fb9ff;
  font-size: 13px;
}

.surebet-percentage,
.surebet-sport,
.surebet-championship,
.surebet-market {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.surebet-percentage.en-juego {
  color: #deffeb;
  background: rgba(39, 174, 96, .14);
  border: 1px solid rgba(39, 174, 96, .34);
}

.surebet-percentage.tiempo-muerto {
  color: #e0f2ff;
  background: rgba(30, 144, 255, .14);
  border: 1px solid rgba(30, 144, 255, .35);
}

.surebet-percentage.cazar-sure {
  color: #fff2d0;
  background: rgba(245, 200, 76, .16);
  border: 1px solid rgba(245, 200, 76, .35);
}

.surebet-sport,
.surebet-championship {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}

.surebet-market {
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(255, 255, 255, .08);
}

.surebet-market.en-juego {
  color: #dfffea;
}

.surebet-market.tiempo-muerto {
  color: #dcedff;
}

.surebet-market.cazar-sure {
  color: #fff1d0;
}

@media (max-width: 1180px) {

  .workspace-grid,
  .insights-grid,
  .math-layout,
  .hero-card {
    grid-template-columns: 1fr;
  }

  .card-stage {
    position: static;
  }
}

@media (max-width: 760px) {

  .top-bar,
  .lab-shell {
    width: min(var(--page-max), calc(100% - 16px));
  }

  .top-bar {
    padding: 12px;
    flex-wrap: wrap;
  }

  .hero-card,
  .panel {
    padding: 16px;
  }

  .section-nav-panel {
    position: static;
    top: auto;
    padding: 10px 12px;
  }

  .section-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .state-legend {
    gap: 6px;
  }

  .legend-item {
    width: 100%;
    justify-content: flex-start;
  }

  .surebet-header,
  .surebet-body {
    padding-right: 18px;
  }

  .surebet-time-badge {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    width: auto;
    min-height: 34px;
    margin: 0 18px 0 20px;
  }

  .surebet-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .surebet-odds {
    justify-items: start;
  }

  .math-row {
    grid-template-columns: 1fr;
  }
}

.top-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* =========================================================
   HIGHLIGHTS NUEVOS · ACADEMY LAB
   sport / championship / freshness
========================================================= */

/* transición suave para los elementos resaltables */
.surebet-card [data-focus-el] {
  transition:
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease,
    transform .18s ease,
    opacity .18s ease;
  border-radius: 14px;
}

/* estado base cuando hay un highlight activo */
.surebet-card[class*="highlight-"] [data-focus-el] {
  opacity: .52;
}

/* el elemento enfocado vuelve a verse full */
.surebet-card.highlight-percentage [data-focus-el="percentage"],
.surebet-card.highlight-sport [data-focus-el="sport"],
.surebet-card.highlight-championship [data-focus-el="championship"],
.surebet-card.highlight-market [data-focus-el="market"],
.surebet-card.highlight-scope [data-focus-el="scope"],
.surebet-card.highlight-freshness [data-focus-el="freshness"],
.surebet-card.highlight-score [data-focus-el="score"],
.surebet-card.highlight-odds [data-focus-el="odds"] {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 0 0 2px rgba(51, 204, 102, .30),
    0 10px 28px rgba(0, 0, 0, .28);
}

/* ===== PORCENTAJE ===== */
.surebet-card.highlight-percentage [data-focus-el="percentage"] {
  background: linear-gradient(180deg, rgba(51, 204, 102, .18), rgba(51, 204, 102, .08));
}

/* ===== DEPORTE ===== */
.surebet-card.highlight-sport [data-focus-el="sport"] {
  background: linear-gradient(180deg, rgba(0, 102, 204, .20), rgba(0, 102, 204, .08));
  border: 1px solid rgba(0, 102, 204, .45);
}

/* ===== CAMPEONATO ===== */
.surebet-card.highlight-championship [data-focus-el="championship"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .18);
}

/* ===== MERCADO ===== */
.surebet-card.highlight-market [data-focus-el="market"] {
  background: linear-gradient(180deg, rgba(245, 200, 76, .18), rgba(245, 200, 76, .07));
  border: 1px solid rgba(245, 200, 76, .55);
}

/* ===== SCOPE ===== */
.surebet-card.highlight-scope [data-focus-el="scope"] {
  background: linear-gradient(180deg, rgba(51, 204, 102, .16), rgba(51, 204, 102, .06));
  border: 1px solid rgba(51, 204, 102, .45);
}

/* ===== FRESHNESS / TIEMPO ===== */
.surebet-card.highlight-freshness [data-focus-el="freshness"] {
  background: linear-gradient(180deg, rgba(0, 180, 140, .18), rgba(0, 180, 140, .07));
  border: 1px solid rgba(0, 180, 140, .42);
}

/* ===== SCORE ===== */
.surebet-card.highlight-score [data-focus-el="score"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .18);
}

/* ===== ODDS ===== */
.surebet-card.highlight-odds [data-focus-el="odds"] {
  background: linear-gradient(180deg, rgba(51, 204, 102, .18), rgba(51, 204, 102, .06));
  border: 1px solid rgba(51, 204, 102, .48);
}

/* si el badge de tiempo además viene en timeout, que conserve presencia */
.surebet-card.highlight-freshness .surebet-time-badge.timeout[data-focus-el="freshness"] {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 0 0 2px rgba(0, 102, 204, .34),
    0 10px 28px rgba(0, 0, 0, .30);
}

/* responsive suave */
@media (max-width: 768px) {

  .surebet-card.highlight-percentage [data-focus-el="percentage"],
  .surebet-card.highlight-sport [data-focus-el="sport"],
  .surebet-card.highlight-championship [data-focus-el="championship"],
  .surebet-card.highlight-market [data-focus-el="market"],
  .surebet-card.highlight-scope [data-focus-el="scope"],
  .surebet-card.highlight-freshness [data-focus-el="freshness"],
  .surebet-card.highlight-score [data-focus-el="score"],
  .surebet-card.highlight-odds [data-focus-el="odds"] {
    transform: none;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .07),
      0 0 0 2px rgba(51, 204, 102, .24);
  }
}

/* =========================================================
   AJUSTE LIVE-LIKE · FILA CON EVENTO / EQUIPO A LA DERECHA
========================================================= */

.surebet-row {
  display: grid;
  grid-template-columns: 86px 76px minmax(150px, 1.4fr) 108px minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
}

.surebet-pick {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.surebet-pick-main {
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.surebet-event {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.surebet-event-name {
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.18;
  color: rgba(255, 255, 255, .92);
  word-break: break-word;
}

.surebet-event .surebet-original-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: rgba(120, 190, 255, .95);
  opacity: .95;
  line-height: 1.1;
  word-break: break-word;
}

.surebet-odds {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.surebet-odds .odd-value {
  min-width: 92px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  border: 2px solid rgba(245, 200, 76, .92);
  background:
    linear-gradient(180deg, rgba(51, 204, 102, .14), rgba(51, 204, 102, .05)),
    rgba(15, 20, 28, .96);
  box-shadow:
    inset 0 0 0 1px rgba(51, 204, 102, .22),
    0 0 0 1px rgba(255, 255, 255, .03);
}

.surebet-house {
  display: flex;
  align-items: center;
  justify-content: center;
}

.surebet-house .img-surebet {
  max-width: 70px;
  max-height: 34px;
  object-fit: contain;
}

.house-fallback {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
  text-align: center;
  line-height: 1.05;
}

.surebet-team {
  display: none;
}

/* highlight nuevo para evento si luego agregas chip */
.surebet-card.highlight-event [data-focus-el="event"] {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 0 0 2px rgba(120, 190, 255, .28),
    0 10px 28px rgba(0, 0, 0, .28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(120, 190, 255, .10), rgba(120, 190, 255, .03));
}

/* tablet */
@media (max-width: 980px) {
  .surebet-row {
    grid-template-columns: 78px 70px minmax(120px, 1.3fr) 92px minmax(100px, 1fr);
    gap: 10px;
  }

  .surebet-pick-main {
    font-size: .96rem;
  }

  .surebet-event-name {
    font-size: .84rem;
  }
}

/* mobile */
@media (max-width: 700px) {
  .surebet-row {
    grid-template-columns: 70px 58px 1fr 84px;
    grid-template-areas:
      "score house pick odds"
      "score house event event";
    align-items: center;
    gap: 8px 10px;
  }

  .surebet-score-container {
    grid-area: score;
  }

  .surebet-house {
    grid-area: house;
  }

  .surebet-pick {
    grid-area: pick;
  }

  .surebet-odds {
    grid-area: odds;
  }

  .surebet-event {
    grid-area: event;
    padding-top: 2px;
  }

  .surebet-odds .odd-value {
    min-width: 74px;
    padding: 10px 10px;
    font-size: .92rem;
    border-radius: 15px;
  }

  .surebet-pick-main {
    font-size: .92rem;
  }

  .surebet-event-name {
    font-size: .80rem;
  }

  .surebet-event .surebet-original-inline {
    font-size: .72rem;
  }
}

/* =========================================================
   SCORE · CASAS · EVENTO · DIMENSIONES LIVE-LIKE
========================================================= */

.card-mount {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.surebet-card {
  width: min(100%, 560px);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.surebet-header {
  padding-right: 72px;
}

.surebet-body {
  padding-right: 76px;
}

.surebet-row {
  display: grid;
  grid-template-columns: 86px 76px minmax(0, 1.35fr) 94px minmax(0, .95fr);
  align-items: center;
  gap: 12px;
}

.surebet-row>* {
  min-width: 0;
}

.surebet-score-container {
  width: 86px;
  min-width: 86px;
  align-self: stretch;
}

.score-mini {
  min-height: 136px;
  border-radius: 18px;
  padding: 12px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.score-status {
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
  letter-spacing: .02em;
}

.score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .98rem;
  font-weight: 700;
  color: #dfe7f5;
}

.score-line span:last-child {
  color: #b9d4ff;
}

.score-line--main {
  font-size: 1.06rem;
  font-weight: 900;
}

.score-line--empty {
  opacity: .6;
}

.surebet-house {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.surebet-house .img-surebet {
  max-width: 72px;
  max-height: 34px;
  object-fit: contain;
}

.house-fallback {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
  text-align: center;
  line-height: 1.05;
}

.surebet-pick {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.surebet-pick-main {
  font-size: 1rem;
  line-height: 1.14;
  font-weight: 900;
  color: #fff;
  word-break: break-word;
}

.surebet-odds {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.surebet-odds .odd-value {
  min-width: 88px;
  padding: 12px 12px;
  border-radius: 18px;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  border: 2px solid rgba(245, 200, 76, .92);
  background:
    linear-gradient(180deg, rgba(51, 204, 102, .14), rgba(51, 204, 102, .05)),
    rgba(15, 20, 28, .96);
  box-shadow:
    inset 0 0 0 1px rgba(51, 204, 102, .22),
    0 0 0 1px rgba(255, 255, 255, .03);
}

.surebet-event {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.surebet-event-name {
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.12;
  color: rgba(255, 255, 255, .92);
  word-break: break-word;
}

.surebet-event .surebet-original-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  line-height: 1.08;
  color: rgba(120, 190, 255, .92);
  opacity: .9;
  word-break: break-word;
}

/* highlights nuevos */
.surebet-card.highlight-house [data-focus-el="house"],
.surebet-card.highlight-event [data-focus-el="event"] {
  opacity: 1;
  transform: translateY(-1px);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 0 0 2px rgba(51, 204, 102, .28),
    0 10px 28px rgba(0, 0, 0, .24);
}

.surebet-card.highlight-house [data-focus-el="house"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
}

.surebet-card.highlight-event [data-focus-el="event"] {
  background: linear-gradient(180deg, rgba(120, 190, 255, .09), rgba(120, 190, 255, .03));
}

/* mobile */
@media (max-width: 700px) {
  .surebet-card {
    width: 100%;
  }

  .surebet-header {
    padding-right: 64px;
  }

  .surebet-body {
    padding-right: 14px;
  }

  .surebet-row {
    grid-template-columns: 70px 58px 1fr 84px;
    grid-template-areas:
      "score house pick odds"
      "score house event event";
    gap: 8px 10px;
  }

  .surebet-score-container {
    grid-area: score;
    width: 70px;
    min-width: 70px;
  }

  .surebet-house {
    grid-area: house;
  }

  .surebet-pick {
    grid-area: pick;
  }

  .surebet-odds {
    grid-area: odds;
  }

  .surebet-event {
    grid-area: event;
  }

  .score-mini {
    min-height: 118px;
    padding: 10px 8px;
  }

  .score-status {
    font-size: .73rem;
  }

  .score-line {
    font-size: .88rem;
  }

  .score-line--main {
    font-size: .96rem;
  }

  .surebet-pick-main {
    font-size: .92rem;
  }

  .surebet-event-name {
    font-size: .80rem;
  }

  .surebet-event .surebet-original-inline {
    font-size: .69rem;
  }

  .surebet-odds .odd-value {
    min-width: 74px;
    padding: 10px 10px;
    font-size: .92rem;
    border-radius: 15px;
  }
}

/* =========================================================
   ACADEMY LAB · LIVE-LIKE CARD OVERRIDES
========================================================= */
.card-mount .surebet-card {
  border: 1px solid #333;
  border-radius: 16px;
  background: #1a1a1a;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .44);
  overflow: hidden;
}

.card-mount .surebet-card .surebet-time-badge {
  left: 8px;
  right: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  writing-mode: horizontal-tb;
  min-height: auto;
  width: auto;
  padding: 6px 10px;
  border-radius: 12px;
  z-index: 4;
}

.card-mount .surebet-card .surebet-header,
.card-mount .surebet-card .surebet-body {
  padding-left: 74px;
  padding-right: 14px;
}

.card-mount .surebet-card .surebet-header {
  background: #111;
  border-bottom: 1px solid #333;
  border-radius: 12px;
  margin: 10px 10px 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.card-mount .surebet-card .surebet-market {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow: 0 0 5px rgba(247, 247, 247, .35);
}

.card-mount .surebet-card .surebet-body {
  margin: 8px 10px 10px;
  border: 1px solid #333;
  border-radius: 12px;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.card-mount .surebet-card .surebet-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(var(--ribbon-color, 39 174 96) / .22);
  -webkit-mask: url('/assets/imagenes/cinta.png') no-repeat left center / 100% 100%;
  mask: url('/assets/imagenes/cinta.png') no-repeat left center / 100% 100%;
  pointer-events: none;
  z-index: 1;
}

.card-mount .surebet-card .surebet-body>* {
  position: relative;
  z-index: 2;
}

.card-mount .surebet-card .surebet-row {
  grid-template-columns: 86px 78px minmax(170px, 1fr) 92px minmax(170px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
}

.card-mount .surebet-card .surebet-score-container {
  width: 86px;
  min-width: 86px;
  background: transparent;
  border: 0;
  padding: 0;
}

.card-mount .surebet-card .score-mini {
  min-height: 126px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
}

.card-mount .surebet-card .surebet-house {
  min-height: 62px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .22);
}

.card-mount .surebet-card .img-surebet {
  max-width: 66px;
  max-height: 30px;
}

.card-mount .surebet-card .surebet-pick {
  min-width: 0;
}

.card-mount .surebet-card .surebet-pick-main {
  border: 1px solid rgba(245, 200, 76, .55);
  border-radius: 16px;
  padding: 10px 12px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, .26);
  font-weight: 800;
}

.card-mount .surebet-card .surebet-odds {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.card-mount .surebet-card .surebet-odds .odd-value {
  min-width: 84px;
  border-radius: 16px;
  border: 2px solid rgba(245, 200, 76, .9);
}

.card-mount .surebet-card .surebet-original-inline {
  margin-left: 0;
  min-height: 56px;
  width: 100%;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 8px 10px;
  color: rgba(120, 190, 255, .95);
  background: rgba(0, 0, 0, .22);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.12;
}

.card-mount .surebet-card .surebet-event {
  min-width: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 760px) {
  .card-mount .surebet-card .surebet-time-badge {
    position: static;
    transform: none;
    margin: 10px 10px 0;
  }

  .card-mount .surebet-card .surebet-header,
  .card-mount .surebet-card .surebet-body {
    padding-left: 14px;
  }

  .card-mount .surebet-card .surebet-row {
    grid-template-columns: 70px 58px 1fr 84px;
    grid-template-areas:
      "score house pick odds"
      "score house event event";
  }

  .card-mount .surebet-card .surebet-score-container {
    grid-area: score;
    width: 70px;
    min-width: 70px;
  }

  .card-mount .surebet-card .surebet-house {
    grid-area: house;
  }

  .card-mount .surebet-card .surebet-odds {
    grid-area: odds;
    justify-content: flex-start;
  }

  .card-mount .surebet-card .surebet-pick {
    grid-area: pick;
  }

  .card-mount .surebet-card .surebet-event {
    grid-area: event;
  }

  .card-mount .surebet-card .score-mini {
    min-height: 112px;
  }

  .card-mount .surebet-card .surebet-original-inline {
    max-width: 100%;
    min-height: 40px;
  }
}

/* =========================================================
   LAYOUT FIX · TARJETA FULL + TEXTO DEBAJO
========================================================= */
.workspace-grid {
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "card"
    "details"
    "anatomy";
  align-items: start;
}

.left-rail {
  display: contents;
}

.card-stage {
  grid-area: card;
  position: static !important;
  top: auto !important;
  width: 100%;
}

.right-rail {
  grid-area: details;
  width: 100%;
}

.anatomy-panel {
  grid-area: anatomy;
  width: 100%;
}

.card-mount {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: block;
  min-height: unset;
}

.card-mount .surebet-card {
  width: min(100%, 960px);
  margin: 0 auto;
}

/* =========================================================
   SCORE MATCH · SUREBETSLIVE2
========================================================= */
.card-mount .surebet-card .surebet-row {
  grid-template-columns: 74px 78px minmax(170px, 1fr) 92px minmax(170px, 1fr);
}

.card-mount .surebet-card .surebet-score-container {
  width: 74px;
  min-width: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
}

.card-mount .surebet-card .scoreboard-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.card-mount .surebet-card .scoreboard-minimal .score-row {
  display: flex;
  gap: 4px;
}

.card-mount .surebet-card .scoreboard-minimal .score-cell {
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(7, 9, 12, .6);
  color: rgba(244, 248, 255, .94);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 760px) {
  .card-mount .surebet-card .surebet-row {
    grid-template-columns: 64px 58px 1fr 84px;
    grid-template-areas:
      "score house pick odds"
      "score house event event";
  }

  .card-mount .surebet-card .surebet-score-container {
    grid-area: score;
    width: 64px;
    min-width: 64px;
  }

  .card-mount .surebet-card .scoreboard-minimal .score-cell:not(:first-child) {
    display: none;
  }
}

/* =========================
   MOBILE FIX - TARJETA SUREBET
   Mantiene el formato horizontal original
   ========================= */
@media (max-width: 640px) {
  /* tarjeta general */
  .sure-card,
  .real-sure-card,
  .bet-card {
    border-radius: 18px;
    padding: 8px;
  }

  /* encabezado superior */
  .sure-card__header,
  .card-top,
  .bet-card__top {
    padding: 8px 10px;
    border-radius: 14px;
  }

  .sure-card__badges,
  .top-badges,
  .card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .sure-badge,
  .badge,
  .pill {
    font-size: 11px;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .sure-badge--percent,
  .badge-percent {
    min-width: 72px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
  }

  /* contenedor interior con barra de tiempo + legs */
  .sure-card__body,
  .card-body,
  .bet-card__body {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    align-items: stretch;
  }

  /* barra lateral verde de tiempo */
  .sure-card__time-rail,
  .time-rail,
  .live-age-rail {
    width: 26px;
    min-width: 26px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 800;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    overflow: hidden;
  }

  /* lista de filas */
  .sure-card__legs,
  .legs-wrap,
  .bet-legs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  /* CADA FILA DE CASA */
  .sure-leg,
  .bet-leg,
  .odd-row {
    display: grid !important;
    grid-template-columns:
      20px   /* iconitos */
      52px   /* CasaA / CasaB */
      92px   /* [con prórroga] */
      76px   /* cuota */
      minmax(0, 1fr); /* evento */
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 16px;
  }

  .sure-leg > *,
  .bet-leg > *,
  .odd-row > * {
    min-width: 0;
  }

  /* iconos del lado izquierdo */
  .sure-leg__icons,
  .leg-icons,
  .row-icons {
    width: 20px;
    min-width: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
  }

  .sure-leg__icons .icon,
  .leg-icons .icon,
  .row-icons .icon {
    width: 14px;
    height: 14px;
    display: block;
  }

  /* caja casa */
  .sure-leg__house,
  .leg-house,
  .book-cell {
    height: 46px;
    min-width: 52px;
    padding: 0 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
  }

  /* mercado: evitar que se parta vertical */
  .sure-leg__market,
  .leg-market,
  .market-cell {
    height: 46px;
    min-width: 92px;
    padding: 0 10px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* cuota */
  .sure-leg__odd,
  .leg-odd,
  .odd-cell {
    height: 46px;
    min-width: 76px;
    padding: 0 8px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
  }

  /* evento / equipo */
  .sure-leg__event,
  .leg-event,
  .event-cell {
    height: 46px;
    padding: 0 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    min-width: 0;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* separadores de bloque */
  .sure-card__section,
  .bet-card__section,
  .inner-panel {
    border-radius: 16px;
    padding: 8px;
  }

  /* fila de filtros/chips debajo de la demo */
  .filters-row,
  .demo-chips,
  .chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filters-row .chip,
  .demo-chips .chip,
  .chip-list .chip {
    font-size: 11px;
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
  }
}
/* =========================================================
   MOBILE STICKY SECTION NAV
   - la barra Tarjeta / Qué ves / ... queda siempre visible
   - se compacta y pasa arriba del hero en mobile
   - mantiene scroll horizontal discreto
   ========================================================= */
@media (max-width: 760px) {
  :root {
    --mobile-topbar-offset: 116px;
  }

  .lab-shell {
    gap: 14px;
  }

  .section-nav-panel {
    order: -1;
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--mobile-topbar-offset));
    z-index: 46;
    margin-top: -4px;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(16, 17, 21, .92);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .42), 0 0 0 1px rgba(51, 204, 102, .05);
  }

  .section-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-bottom: 1px;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-link {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .hero-card {
    padding: 15px;
  }

  .eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
  }

  h1 {
    margin-bottom: 8px;
    font-size: clamp(22px, 7vw, 34px);
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.45;
  }

  .panel[id^="sec-"] {
    scroll-margin-top: 200px;
  }
}

@media (max-width: 430px) {
  :root {
    --mobile-topbar-offset: 108px;
  }

  .section-nav-panel {
    padding: 7px 8px;
  }

  .section-nav {
    gap: 5px;
  }

  .section-link {
    min-height: 28px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .hero-card {
    padding: 14px;
  }
}



/* =========================================================
   MOBILE FIX v2.1
   - header siempre visible en mobile
   - nav de secciones siempre visible debajo del header
   - elimina overflow horizontal que ensancha la vista
   ========================================================= */
html, body {
  overflow-x: clip;
}

@media (max-width: 760px) {
  :root {
    --mobile-header-height: 112px;
    --mobile-nav-height: 50px;
    --mobile-shell-top-gap: 12px;
  }

  body {
    overflow-x: clip;
  }

  .top-bar {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    margin: 0;
    z-index: 70;
    min-height: auto;
    padding: 10px 12px;
  }

  .logo-container,
  .top-actions {
    min-width: 0;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .top-actions > * {
    min-width: 0;
  }

  .top-menu-link,
  .status-pill,
  #btnRandom {
    min-height: 40px;
    padding-inline: 12px;
  }

  .status-pill {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #btnRandom {
    white-space: nowrap;
  }

  .lab-shell {
    width: auto;
    max-width: none;
    margin: 0;
    padding: calc(env(safe-area-inset-top, 0px) + var(--mobile-header-height) + var(--mobile-nav-height) + var(--mobile-shell-top-gap)) 8px 24px;
    gap: 14px;
    overflow-x: clip;
  }

  .section-nav-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--mobile-header-height));
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    z-index: 68;
    margin: 0;
    padding: 6px 8px;
    border-radius: 14px;
  }

  .section-nav {
    gap: 5px;
    padding-bottom: 0;
  }

  .section-link {
    min-height: 28px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .hero-card,
  .panel,
  .workspace-grid,
  .left-rail,
  .right-rail,
  .insights-grid,
  .card-stage,
  .card-mount {
    min-width: 0;
    max-width: 100%;
  }

  .panel[id^="sec-"] {
    scroll-margin-top: calc(var(--mobile-header-height) + var(--mobile-nav-height) + 18px);
  }
}

@media (max-width: 430px) {
  :root {
    --mobile-header-height: 108px;
    --mobile-nav-height: 46px;
  }

  .top-bar {
    left: 6px;
    right: 6px;
    padding: 9px 10px;
  }

  .lab-shell {
    padding: calc(env(safe-area-inset-top, 0px) + var(--mobile-header-height) + var(--mobile-nav-height) + 10px) 6px 22px;
  }

  .section-nav-panel {
    left: 6px;
    right: 6px;
    padding: 6px 7px;
  }

  .logo-container {
    gap: 8px;
  }

  .brand-logo {
    height: 28px;
  }

  .live-logo {
    font-size: 11px;
    padding: 3px 7px;
  }

  .top-menu-link,
  .status-pill,
  #btnRandom {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 11px;
  }
}

/* =========================================================
   MOBILE CARD FINAL v3
   - mantiene header superior como ya quedó
   - compacta SOLO las filas internas para que todo entre
   - score | casa | pick | cuota | evento en una sola fila
   ========================================================= */
@media (max-width: 760px) {
  .card-mount {
    overflow-x: hidden !important;
  }

  .card-mount .surebet-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .card-mount .surebet-card .surebet-body {
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  .card-mount .surebet-card .surebet-row {
    display: grid !important;
    grid-template-columns: 34px 50px 54px 62px minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 2px !important;
  }

  .card-mount .surebet-card .surebet-row > * {
    grid-area: auto !important;
    min-width: 0 !important;
  }

  .card-mount .surebet-card .surebet-score-container {
    width: 34px !important;
    min-width: 34px !important;
    justify-self: center !important;
  }

  .card-mount .surebet-card .score-mini,
  .card-mount .surebet-card .scoreboard-minimal {
    min-height: 58px !important;
    border-radius: 12px !important;
  }

  .card-mount .surebet-card .scoreboard-minimal {
    gap: 2px !important;
  }

  .card-mount .surebet-card .scoreboard-minimal .score-row {
    gap: 2px !important;
  }

  .card-mount .surebet-card .scoreboard-minimal .score-cell {
    min-width: 13px !important;
    width: 13px !important;
    height: 13px !important;
    padding: 0 !important;
    font-size: 8px !important;
    border-radius: 3px !important;
  }

  .card-mount .surebet-card .surebet-house {
    min-height: 48px !important;
    border-radius: 12px !important;
    padding: 0 4px !important;
  }

  .card-mount .surebet-card .img-surebet {
    max-width: 42px !important;
    max-height: 18px !important;
  }

  .card-mount .surebet-card .house-fallback {
    font-size: 9px !important;
    line-height: 1 !important;
  }

  .card-mount .surebet-card .surebet-pick-main {
    min-height: 48px !important;
    padding: 6px 4px !important;
    border-radius: 14px !important;
    font-size: 9.5px !important;
    line-height: 1.02 !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .card-mount .surebet-card .surebet-odds {
    justify-content: center !important;
  }

  .card-mount .surebet-card .surebet-odds .odd-value {
    min-width: 62px !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    border-radius: 14px !important;
  }

  .card-mount .surebet-card .surebet-event {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  .card-mount .surebet-card .surebet-original-inline {
    min-height: 48px !important;
    padding: 6px 7px !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
    border-radius: 12px !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    gap: 4px !important;
  }

  .card-mount .surebet-card .copy-icon-lite {
    flex: 0 0 auto !important;
    font-size: 9px !important;
  }
}

@media (max-width: 430px) {
  .card-mount .surebet-card .surebet-header {
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 4px !important;
  }

  .card-mount .surebet-card .surebet-percentage,
  .card-mount .surebet-card .surebet-sport,
  .card-mount .surebet-card .surebet-championship,
  .card-mount .surebet-card .surebet-market {
    min-height: 28px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .card-mount .surebet-card .surebet-row {
    grid-template-columns: 32px 46px 50px 58px minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  .card-mount .surebet-card .surebet-score-container {
    width: 32px !important;
    min-width: 32px !important;
  }

  .card-mount .surebet-card .scoreboard-minimal .score-cell {
    min-width: 12px !important;
    width: 12px !important;
    height: 12px !important;
    font-size: 7.5px !important;
  }

  .card-mount .surebet-card .surebet-house {
    min-height: 44px !important;
  }

  .card-mount .surebet-card .img-surebet {
    max-width: 38px !important;
    max-height: 16px !important;
  }

  .card-mount .surebet-card .surebet-pick-main,
  .card-mount .surebet-card .surebet-original-inline {
    min-height: 44px !important;
    font-size: 8.5px !important;
  }

  .card-mount .surebet-card .surebet-odds .odd-value {
    min-width: 58px !important;
    font-size: 10.5px !important;
  }
}

/* =========================================================
   MOBILE · FORZAR HEADER EN UNA SOLA FILA
   porcentaje + deporte + championship + mercado
   ========================================================= */
@media (max-width: 760px) {
  .card-mount .surebet-card .surebet-header {
    display: grid !important;
    grid-template-columns: max-content max-content minmax(0, 1fr) max-content !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px 8px !important;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
  }

  .card-mount .surebet-card .surebet-percentage,
  .card-mount .surebet-card .surebet-sport,
  .card-mount .surebet-card .surebet-market {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .card-mount .surebet-card .surebet-championship {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 7px !important;
    font-size: 8.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    justify-content: flex-start !important;
  }

  .card-mount .surebet-card .surebet-market {
    justify-self: end !important;
  }
}